Revert early Select periphery code.

This commit is contained in:
Graham Fairweather 2018-03-08 08:24:38 +01:00
parent f7825eabe4
commit e31d3b0578
14 changed files with 75 additions and 214 deletions

View file

@ -1 +0,0 @@
export default 'FormItem';

View file

@ -1 +0,0 @@
export default 'iForm';

View file

@ -1 +0,0 @@
export default 'Drop';

View file

@ -1 +0,0 @@
export default 'OptionGroup';

View file

@ -1 +0,0 @@
export default 'iOption';

View file

@ -1 +0,0 @@
export default 'iSelect';

View file

@ -321,5 +321,3 @@ export function setMatchMedia () {
window.matchMedia = window.matchMedia || matchMediaPolyfill;
}
}
export const kebabJoin = (...args) => args.map(arg => `${arg}`).join('-');

View file

@ -1,53 +0,0 @@
export const ARROW = 'arrow';
export const APPEND = 'append';
export const AUTO = 'auto';
export const BODY = 'body';
export const BOTTOM = 'bottom';
export const CHANGE = 'change';
export const CLEAR = 'clear';
export const CLOSE = 'close';
export const COMPLETE = 'complete';
export const DEFAULT = 'default';
export const DESTROY = 'destroy';
export const DISABLED = 'disabled';
export const DOWN = 'down';
export const DROPDOWN = 'dropdown';
export const EMPTY_STRING = '';
export const FOCUS = 'focus';
export const FOCUSED = 'focused';
export const FORM = 'form';
export const FOUND = 'found';
export const GROUP = 'group';
export const INPUT = 'input';
export const ITEM = 'item';
export const IVU = 'ivu';
export const LARGE = 'large';
export const LIST = 'list';
export const LOADING = 'loading';
export const MULTIPLE = 'multiple';
export const NEXT = 'next';
export const NONE = 'none';
export const NOT = 'not';
export const ON = 'on';
export const PLACEHOLDER = 'placeholder';
export const POPPER = 'popper';
export const PREV = 'prev';
export const QUERY = 'query';
export const REMOVE = 'remove';
export const SELECT = 'select';
export const SELECTED = 'selected';
export const SELECTION = 'selection';
export const SHOW = 'show';
export const SINGLE = 'single';
export const SLIDE = 'slide';
export const SMALL = 'small';
export const START = 'start';
export const TITLE = 'title';
export const TOP = 'top';
export const TRANSFER = 'transfer';
export const UP = 'up';
export const UPDATE = 'update';
export const VALUE = 'value';
export const VISIBLE = 'visible';
export const WIDTH = 'width';
export const WRAP = 'wrap';

View file

@ -1,40 +0,0 @@
import {
BOTTOM,
DEFAULT,
LARGE,
SMALL,
TOP
} from './constants';
import {
ALT,
ARROWLEFT,
ARROWRIGHT,
CAPSLOCK,
CONTROL,
ENTER,
META,
SHIFT,
TAB,
} from './kbEventKeys';
export const PLACEMENT_LIST = Object.freeze([BOTTOM, TOP]);
export const PLACEMENT_MAP = Object.freeze({
[BOTTOM]: TOP,
[TOP]: BOTTOM,
});
export const SMALL_LARGE_DEFAULT_LIST = Object.freeze([SMALL, LARGE, DEFAULT]);
export const STRING_NUMBER_LIST = Object.freeze([String, Number]);
export const STRING_NUMBER_ARRAY_LIST = Object.freeze([String, Number, Array]);
export const IGNORE_KEY_LIST = Object.freeze([
ALT,
ARROWLEFT,
ARROWRIGHT,
CAPSLOCK,
CONTROL,
ENTER,
META,
SHIFT,
TAB,
]);

View file

@ -1,27 +0,0 @@
import {
APPEND,
CHANGE,
CLOSE,
DESTROY,
FORM,
ON,
POPPER,
QUERY,
REMOVE,
SELECT,
SELECTED,
UPDATE,
} from './constants';
import {
kebabJoin,
} from './assist';
export const EVENT_APPEND = kebabJoin(APPEND);
export const EVENT_ON_CHANGE = kebabJoin(ON, CHANGE);
export const EVENT_ON_DESTROY_POPPER = kebabJoin(ON, DESTROY, POPPER);
export const EVENT_ON_FORM_CHANGE = kebabJoin(ON, FORM, CHANGE);
export const EVENT_ON_QUERY_CHANGE = kebabJoin(ON, QUERY, CHANGE);
export const EVENT_ON_SELECT_CLOSE = kebabJoin(ON, SELECT, CLOSE);
export const EVENT_ON_SELECT_SELECTED = kebabJoin(ON, SELECT, SELECTED);
export const EVENT_ON_UPDATE_POPPER = kebabJoin(ON, UPDATE, POPPER);
export const EVENT_REMOVE = kebabJoin(REMOVE);

View file

@ -1,9 +0,0 @@
export const ALT = 'Alt';
export const ARROWLEFT = 'ArrowLeft';
export const ARROWRIGHT = 'ArrowRight';
export const CAPSLOCK = 'CapsLock';
export const CONTROL = 'Control';
export const ENTER = 'Enter';
export const META = 'Meta';
export const SHIFT = 'Shift';
export const TAB = 'Tab';