@dreamcommerce/aurora 0.3.9 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/components/header.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/item_with_hover.js +40 -0
- package/build/cjs/packages/aurora/src/components/dropdown/components/item_with_hover.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/dropdown/components/label.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/link.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/list.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/option.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/option_multiple.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/search.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/css_classes.js +2 -0
- package/build/cjs/packages/aurora/src/components/dropdown/css_classes.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/hoc/multiselect/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/hoc/select/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/index.js +8 -6
- package/build/cjs/packages/aurora/src/components/dropdown/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/utilities.js +1 -1
- package/build/cjs/packages/aurora/src/css/dropdown/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/components/header.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/item_with_hover.d.ts +10 -0
- package/build/esm/packages/aurora/src/components/dropdown/components/item_with_hover.js +32 -0
- package/build/esm/packages/aurora/src/components/dropdown/components/item_with_hover.js.map +1 -0
- package/build/esm/packages/aurora/src/components/dropdown/components/label.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/link.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/list.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/option.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/option_multiple.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/search.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/css_classes.d.ts +1 -0
- package/build/esm/packages/aurora/src/components/dropdown/css_classes.js +2 -1
- package/build/esm/packages/aurora/src/components/dropdown/css_classes.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/hoc/multiselect/index.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/hoc/select/index.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/index.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/index.js +8 -6
- package/build/esm/packages/aurora/src/components/dropdown/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/types.d.ts +9 -0
- package/build/esm/packages/aurora/src/components/dropdown/utilities.js +1 -1
- package/build/esm/packages/aurora/src/css/dropdown/main.module.less.js +2 -2
- package/package.json +1 -1
|
@@ -10,11 +10,11 @@ var use_screen_detect = require('../../../hooks/use_screen_detect.js');
|
|
|
10
10
|
var with_translation = require('../../../utilities/translation/with_translation.js');
|
|
11
11
|
var main_module$1 = require('../../../css/icons/main.module.less.js');
|
|
12
12
|
var classNames = require('../../../utilities/styles/classNames.js');
|
|
13
|
-
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
14
|
-
var use_click_outside = require('../../../hooks/use_click_outside.js');
|
|
15
13
|
var reactDom = require('react-dom');
|
|
16
14
|
var reactTransitionGroup = require('react-transition-group');
|
|
17
15
|
var css_classes = require('../css_classes.js');
|
|
16
|
+
var use_click_outside = require('../../../hooks/use_click_outside.js');
|
|
17
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
18
18
|
var icon_arrow = require('../../../assets/icon_arrow.js');
|
|
19
19
|
var utilities = require('../utilities.js');
|
|
20
20
|
var constants = require('../constants.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
7
6
|
var css_classes = require('../css_classes.js');
|
|
7
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
8
8
|
var main_module$1 = require('../../../css/heading/main.module.less.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var index = require('../context/index.js');
|
|
7
|
+
var css_classes = require('../css_classes.js');
|
|
8
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Dropdown.ItemWithHover component. Generic dropdown item with hover state
|
|
16
|
+
* @component
|
|
17
|
+
* @example
|
|
18
|
+
* <Dropdown.ItemWithHover> ... </Dropdown.ItemWithHover>
|
|
19
|
+
*/
|
|
20
|
+
var ItemWithHover = function (_a) {
|
|
21
|
+
var
|
|
22
|
+
/**
|
|
23
|
+
* children nodes
|
|
24
|
+
*/
|
|
25
|
+
children = _a.children,
|
|
26
|
+
/**
|
|
27
|
+
* Custom className
|
|
28
|
+
*/
|
|
29
|
+
cssClass = _a.cssClass,
|
|
30
|
+
/**
|
|
31
|
+
* on click callback
|
|
32
|
+
*/
|
|
33
|
+
onClick = _a.onClick;
|
|
34
|
+
var toggleDropdown = index.useDropdownContext().toggleDropdown;
|
|
35
|
+
var itemCssClass = "".concat(main_module['default'][css_classes.cssDropdownItemWithHover], " ").concat(cssClass);
|
|
36
|
+
return (React__default['default'].createElement("div", { className: itemCssClass, onClick: function (ev) { return onClick && onClick({ ev: ev, toggleDropdown: toggleDropdown }); } }, children));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.default = ItemWithHover;
|
|
40
|
+
//# sourceMappingURL=item_with_hover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index = require('../context/index.js');
|
|
7
|
-
var use_keyboard_open_close = require('../hooks/use_keyboard_open_close.js');
|
|
8
7
|
var constants = require('../constants.js');
|
|
8
|
+
var use_keyboard_open_close = require('../hooks/use_keyboard_open_close.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _tslib = require('../../../../../../_virtual/_tslib.js');
|
|
7
|
-
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
8
7
|
var css_classes = require('../css_classes.js');
|
|
8
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
|
-
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
8
7
|
var css_classes = require('../css_classes.js');
|
|
8
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
|
-
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
8
7
|
var css_classes = require('../css_classes.js');
|
|
8
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
9
9
|
var item = require('./item.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
7
|
var index = require('../../controls/hoc/control_checkbox/index.js');
|
|
8
|
-
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
9
8
|
var css_classes = require('../css_classes.js');
|
|
9
|
+
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
10
10
|
var item = require('./item.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var input = require('../../controls/components/input.js');
|
|
7
7
|
var index = require('../context/index.js');
|
|
8
|
+
var css_classes = require('../css_classes.js');
|
|
8
9
|
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
9
10
|
var use_keyboard_open_close = require('../hooks/use_keyboard_open_close.js');
|
|
10
|
-
var css_classes = require('../css_classes.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index = require('../context/index.js');
|
|
7
7
|
var main_module = require('../../../css/dropdown/main.module.less.js');
|
|
8
|
-
var input_wrapper = require('../../controls/components/input_wrapper.js');
|
|
9
8
|
var use_keyboard_open_close = require('../hooks/use_keyboard_open_close.js');
|
|
9
|
+
var input_wrapper = require('../../controls/components/input_wrapper.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
@@ -8,6 +8,7 @@ var cssDropdownContentRight = "".concat(cssDropdownContent, "_right");
|
|
|
8
8
|
var cssDropdownHeader = "".concat(cssDropdown, "__header");
|
|
9
9
|
var cssDropdownHeaderTitle = "".concat(cssDropdown, "__header-title");
|
|
10
10
|
var cssDropdownHeaderContent = "".concat(cssDropdown, "__header-content");
|
|
11
|
+
var cssDropdownItemWithHover = "".concat(cssDropdown, "__item-with-hover");
|
|
11
12
|
var cssDropdownList = "".concat(cssDropdown, "__list");
|
|
12
13
|
var cssDropdownSearch = "".concat(cssDropdown, "__search");
|
|
13
14
|
var cssDropdownWithScroll = "".concat(cssDropdown, "__list_with-scroll");
|
|
@@ -24,6 +25,7 @@ exports.cssDropdownContentRight = cssDropdownContentRight;
|
|
|
24
25
|
exports.cssDropdownHeader = cssDropdownHeader;
|
|
25
26
|
exports.cssDropdownHeaderContent = cssDropdownHeaderContent;
|
|
26
27
|
exports.cssDropdownHeaderTitle = cssDropdownHeaderTitle;
|
|
28
|
+
exports.cssDropdownItemWithHover = cssDropdownItemWithHover;
|
|
27
29
|
exports.cssDropdownList = cssDropdownList;
|
|
28
30
|
exports.cssDropdownListHead = cssDropdownListHead;
|
|
29
31
|
exports.cssDropdownListItem = cssDropdownListItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index = require('../../context/index.js');
|
|
7
|
+
var css_classes = require('../../css_classes.js');
|
|
7
8
|
var main_module = require('../../../../css/dropdown/main.module.less.js');
|
|
9
|
+
var utilities = require('../../utilities.js');
|
|
8
10
|
var use_values = require('../../hooks/use_values.js');
|
|
9
11
|
var use_toggle = require('../../hooks/use_toggle.js');
|
|
10
12
|
var use_set_options_on_close = require('../../hooks/use_set_options_on_close.js');
|
|
11
|
-
var css_classes = require('../../css_classes.js');
|
|
12
|
-
var utilities = require('../../utilities.js');
|
|
13
13
|
var index$1 = require('../../index.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index = require('../../context/index.js');
|
|
7
|
+
var css_classes = require('../../css_classes.js');
|
|
7
8
|
var main_module = require('../../../../css/dropdown/main.module.less.js');
|
|
9
|
+
var utilities = require('../../utilities.js');
|
|
8
10
|
var use_value = require('../../hooks/use_value.js');
|
|
9
11
|
var use_toggle = require('../../hooks/use_toggle.js');
|
|
10
12
|
var use_set_options_on_close = require('../../hooks/use_set_options_on_close.js');
|
|
11
|
-
var css_classes = require('../../css_classes.js');
|
|
12
|
-
var utilities = require('../../utilities.js');
|
|
13
13
|
var index$1 = require('../../index.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -5,18 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index = require('./context/index.js');
|
|
7
7
|
var main_module = require('../../css/dropdown/main.module.less.js');
|
|
8
|
-
var use_toggle = require('./hooks/use_toggle.js');
|
|
9
|
-
var select = require('./components/select.js');
|
|
10
8
|
var content = require('./components/content.js');
|
|
11
|
-
var
|
|
9
|
+
var custom_label = require('./components/custom_label.js');
|
|
12
10
|
var header = require('./components/header.js');
|
|
13
11
|
var item = require('./components/item.js');
|
|
12
|
+
var item_with_hover = require('./components/item_with_hover.js');
|
|
13
|
+
var label = require('./components/label.js');
|
|
14
|
+
var link = require('./components/link.js');
|
|
15
|
+
var list = require('./components/list.js');
|
|
14
16
|
var option = require('./components/option.js');
|
|
15
17
|
var option_multiple = require('./components/option_multiple.js');
|
|
16
|
-
var link = require('./components/link.js');
|
|
17
|
-
var label = require('./components/label.js');
|
|
18
18
|
var search = require('./components/search.js');
|
|
19
|
-
var
|
|
19
|
+
var select = require('./components/select.js');
|
|
20
|
+
var use_toggle = require('./hooks/use_toggle.js');
|
|
20
21
|
|
|
21
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
23
|
|
|
@@ -54,6 +55,7 @@ var Dropdown = function (_a) {
|
|
|
54
55
|
};
|
|
55
56
|
Dropdown.Select = select['default'];
|
|
56
57
|
Dropdown.Content = content['default'];
|
|
58
|
+
Dropdown.ItemWithHover = item_with_hover['default'];
|
|
57
59
|
Dropdown.Search = search['default'];
|
|
58
60
|
Dropdown.List = list['default'];
|
|
59
61
|
Dropdown.Header = header['default'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('react');
|
|
6
|
-
var main_module = require('../../css/dropdown/main.module.less.js');
|
|
7
6
|
var css_classes = require('./css_classes.js');
|
|
7
|
+
var main_module = require('../../css/dropdown/main.module.less.js');
|
|
8
8
|
var fuzzy_search = require('../../utilities/fuzzy_search/fuzzy_search.js');
|
|
9
9
|
var main_module$1 = require('../../css/modal/main.module.less.js');
|
|
10
10
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var styleInject_es = require('../../../../../external/style-inject/dist/style-inject.es.js');
|
|
6
6
|
|
|
7
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n/** Form Variables */\n/** Errors */\n@media (max-width: 576px) {\n .main-module_dropdown__content__X9kz_ {\n display: flex;\n flex-direction: column;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n .main-module_dropdown__header__kvhNn {\n display: block;\n }\n .main-module_dropdown__header-title__7NXxw {\n margin-left: 0.5rem;\n }\n}\n@media (min-width: 576px) {\n .main-module_dropdown__header__kvhNn {\n display: none;\n }\n}\n.main-module_dropdown__36KKf {\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.main-module_dropdown__content__X9kz_ {\n flex: 0 0 auto;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1200;\n width: auto;\n padding: 0.5rem 0;\n background-color: #ffffff;\n border-radius: 3px;\n box-shadow: 0 0px 25px 0 rgba(0, 0, 0, 0.2);\n}\n.main-module_dropdown__content__X9kz_::before {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n left: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__content_right__Rp4hR::before {\n display: none;\n}\n.main-module_dropdown__content_right__Rp4hR::after {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n right: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__list__2bd_r {\n flex: 0 0 auto;\n padding: 0;\n width: 100%;\n min-width: 20rem;\n text-align: left;\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_dropdown__list__2bd_r > li {\n list-style: none;\n}\n.main-module_dropdown__list-head__2Uyb0 {\n padding: 0.5rem 0 0.5rem 1rem;\n}\n.main-module_dropdown__list_with-scroll__KP9yO {\n scrollbar-color: #79829c #ffffff;\n scrollbar-width: thin;\n max-height: 280px;\n overflow-y: auto;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar {\n width: 7px;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track {\n background-color: #ffffff;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track:hover {\n background-color: #f3f4f8;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb {\n background-color: #5c657e;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb:hover {\n background-color: #2d3748;\n}\n.main-module_dropdown__list-item__1u185 {\n display: block;\n padding: 0.5rem 1rem;\n cursor: default;\n}\n.main-module_dropdown__list-item__1u185:hover {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_selected__2GYQr {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_disabled__1Psh7 {\n color: #abb4cd;\n}\n.main-module_dropdown__list-item_readonly__3bbj0 {\n color: #abb4cd;\n}\n.main-module_dropdown__search__1Moob {\n padding: 0.5rem 1rem 0.5rem;\n}\n.main-module_dropdown__header__kvhNn {\n margin: calc(1rem * 0.5) 1rem;\n}\n.main-module_dropdown__header-content__10Zg9 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.main-module_dropdown__header-icon__30vfb {\n margin-right: 1rem;\n color: #abb4cd;\n font-size: 10px;\n font-size: 0.7142857142857143rem;\n}\n.main-module_dropdown__header-title__7NXxw {\n font-weight: 600;\n color: #5c657e;\n}\n.main-module_select__1ocPo {\n position: relative;\n display: flex;\n flex: 0 2 auto;\n align-items: center;\n width: 100%;\n}\n.main-module_select__1ocPo::after {\n content: '';\n position: absolute;\n display: block;\n right: 0.715em;\n width: 7px;\n height: 7px;\n margin-top: -2px;\n transform: rotate(-45deg);\n border-width: 0 0 1px 1px;\n border-style: solid;\n border-color: #3c83ec;\n}\n.main-module_select__1ocPo input {\n text-overflow: ellipsis;\n}\n.main-module_dropdown-enter__2RGtd,\n.main-module_modal-enter__I5ELD {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n}\n.main-module_mask-enter__32s5F {\n opacity: 0;\n}\n.main-module_dropdown-enter-active__ob1fb,\n.main-module_modal-enter-active__3BMYq {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-enter-active__1WgVf {\n opacity: 1;\n transition: opacity 0.1s;\n}\n.main-module_dropdown-exit__3b2wX,\n.main-module_modal-exit__y2N_F {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n}\n.main-module_mask-exit__325a4 {\n opacity: 1;\n}\n.main-module_dropdown-exit-active__22rth,\n.main-module_modal-exit-active__ID7ce {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-exit-active__2qs-r {\n opacity: 0;\n transition: opacity 0.1s;\n}\n";
|
|
8
|
-
var cssClasses = {"dropdown__content":"main-module_dropdown__content__X9kz_","dropdown__header":"main-module_dropdown__header__kvhNn","dropdown__header-title":"main-module_dropdown__header-title__7NXxw","dropdown":"main-module_dropdown__36KKf","dropdown__content_right":"main-module_dropdown__content_right__Rp4hR","dropdown__list":"main-module_dropdown__list__2bd_r","dropdown__list-head":"main-module_dropdown__list-head__2Uyb0","dropdown__list_with-scroll":"main-module_dropdown__list_with-scroll__KP9yO","dropdown__list-item":"main-module_dropdown__list-item__1u185","dropdown__list-item_selected":"main-module_dropdown__list-item_selected__2GYQr","dropdown__list-item_disabled":"main-module_dropdown__list-item_disabled__1Psh7","dropdown__list-item_readonly":"main-module_dropdown__list-item_readonly__3bbj0","dropdown__search":"main-module_dropdown__search__1Moob","dropdown__header-content":"main-module_dropdown__header-content__10Zg9","dropdown__header-icon":"main-module_dropdown__header-icon__30vfb","select":"main-module_select__1ocPo","dropdown-enter":"main-module_dropdown-enter__2RGtd","modal-enter":"main-module_modal-enter__I5ELD","mask-enter":"main-module_mask-enter__32s5F","dropdown-enter-active":"main-module_dropdown-enter-active__ob1fb","modal-enter-active":"main-module_modal-enter-active__3BMYq","mask-enter-active":"main-module_mask-enter-active__1WgVf","dropdown-exit":"main-module_dropdown-exit__3b2wX","modal-exit":"main-module_modal-exit__y2N_F","mask-exit":"main-module_mask-exit__325a4","dropdown-exit-active":"main-module_dropdown-exit-active__22rth","modal-exit-active":"main-module_modal-exit-active__ID7ce","mask-exit-active":"main-module_mask-exit-active__2qs-r"};
|
|
7
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n/** Form Variables */\n/** Errors */\n@media (max-width: 576px) {\n .main-module_dropdown__content__X9kz_ {\n display: flex;\n flex-direction: column;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n .main-module_dropdown__header__kvhNn {\n display: block;\n }\n .main-module_dropdown__header-title__7NXxw {\n margin-left: 0.5rem;\n }\n}\n@media (min-width: 576px) {\n .main-module_dropdown__header__kvhNn {\n display: none;\n }\n}\n.main-module_dropdown__36KKf {\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.main-module_dropdown__content__X9kz_ {\n flex: 0 0 auto;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1200;\n width: auto;\n padding: 0.5rem 0;\n background-color: #ffffff;\n border-radius: 3px;\n box-shadow: 0 0px 25px 0 rgba(0, 0, 0, 0.2);\n}\n.main-module_dropdown__content__X9kz_::before {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n left: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__content_right__Rp4hR::before {\n display: none;\n}\n.main-module_dropdown__content_right__Rp4hR::after {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n right: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__item-with-hover__3g-Za:hover {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list__2bd_r {\n flex: 0 0 auto;\n padding: 0;\n width: 100%;\n min-width: 20rem;\n text-align: left;\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_dropdown__list__2bd_r > li {\n list-style: none;\n}\n.main-module_dropdown__list-head__2Uyb0 {\n padding: 0.5rem 0 0.5rem 1rem;\n}\n.main-module_dropdown__list_with-scroll__KP9yO {\n scrollbar-color: #79829c #ffffff;\n scrollbar-width: thin;\n max-height: 280px;\n overflow-y: auto;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar {\n width: 7px;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track {\n background-color: #ffffff;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track:hover {\n background-color: #f3f4f8;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb {\n background-color: #5c657e;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb:hover {\n background-color: #2d3748;\n}\n.main-module_dropdown__list-item__1u185 {\n display: block;\n padding: 0.5rem 1rem;\n cursor: default;\n}\n.main-module_dropdown__list-item__1u185:hover {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_selected__2GYQr {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_disabled__1Psh7 {\n color: #abb4cd;\n}\n.main-module_dropdown__list-item_readonly__3bbj0 {\n color: #abb4cd;\n}\n.main-module_dropdown__search__1Moob {\n padding: 0.5rem 1rem 0.5rem;\n}\n.main-module_dropdown__header__kvhNn {\n margin: calc(1rem * 0.5) 1rem;\n}\n.main-module_dropdown__header-content__10Zg9 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.main-module_dropdown__header-icon__30vfb {\n margin-right: 1rem;\n color: #abb4cd;\n font-size: 10px;\n font-size: 0.7142857142857143rem;\n}\n.main-module_dropdown__header-title__7NXxw {\n font-weight: 600;\n color: #5c657e;\n}\n.main-module_select__1ocPo {\n position: relative;\n display: flex;\n flex: 0 2 auto;\n align-items: center;\n width: 100%;\n}\n.main-module_select__1ocPo::after {\n content: '';\n position: absolute;\n display: block;\n right: 0.715em;\n width: 7px;\n height: 7px;\n margin-top: -2px;\n transform: rotate(-45deg);\n border-width: 0 0 1px 1px;\n border-style: solid;\n border-color: #3c83ec;\n}\n.main-module_select__1ocPo input {\n text-overflow: ellipsis;\n}\n.main-module_dropdown-enter__2RGtd,\n.main-module_modal-enter__I5ELD {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n}\n.main-module_mask-enter__32s5F {\n opacity: 0;\n}\n.main-module_dropdown-enter-active__ob1fb,\n.main-module_modal-enter-active__3BMYq {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-enter-active__1WgVf {\n opacity: 1;\n transition: opacity 0.1s;\n}\n.main-module_dropdown-exit__3b2wX,\n.main-module_modal-exit__y2N_F {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n}\n.main-module_mask-exit__325a4 {\n opacity: 1;\n}\n.main-module_dropdown-exit-active__22rth,\n.main-module_modal-exit-active__ID7ce {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-exit-active__2qs-r {\n opacity: 0;\n transition: opacity 0.1s;\n}\n";
|
|
8
|
+
var cssClasses = {"dropdown__content":"main-module_dropdown__content__X9kz_","dropdown__header":"main-module_dropdown__header__kvhNn","dropdown__header-title":"main-module_dropdown__header-title__7NXxw","dropdown":"main-module_dropdown__36KKf","dropdown__content_right":"main-module_dropdown__content_right__Rp4hR","dropdown__item-with-hover":"main-module_dropdown__item-with-hover__3g-Za","dropdown__list":"main-module_dropdown__list__2bd_r","dropdown__list-head":"main-module_dropdown__list-head__2Uyb0","dropdown__list_with-scroll":"main-module_dropdown__list_with-scroll__KP9yO","dropdown__list-item":"main-module_dropdown__list-item__1u185","dropdown__list-item_selected":"main-module_dropdown__list-item_selected__2GYQr","dropdown__list-item_disabled":"main-module_dropdown__list-item_disabled__1Psh7","dropdown__list-item_readonly":"main-module_dropdown__list-item_readonly__3bbj0","dropdown__search":"main-module_dropdown__search__1Moob","dropdown__header-content":"main-module_dropdown__header-content__10Zg9","dropdown__header-icon":"main-module_dropdown__header-icon__30vfb","select":"main-module_select__1ocPo","dropdown-enter":"main-module_dropdown-enter__2RGtd","modal-enter":"main-module_modal-enter__I5ELD","mask-enter":"main-module_mask-enter__32s5F","dropdown-enter-active":"main-module_dropdown-enter-active__ob1fb","modal-enter-active":"main-module_modal-enter-active__3BMYq","mask-enter-active":"main-module_mask-enter-active__1WgVf","dropdown-exit":"main-module_dropdown-exit__3b2wX","modal-exit":"main-module_modal-exit__y2N_F","mask-exit":"main-module_mask-exit__325a4","dropdown-exit-active":"main-module_dropdown-exit-active__22rth","modal-exit-active":"main-module_modal-exit-active__ID7ce","mask-exit-active":"main-module_mask-exit-active__2qs-r"};
|
|
9
9
|
styleInject_es['default'](css_248z);
|
|
10
10
|
|
|
11
11
|
exports.default = cssClasses;
|
|
@@ -6,11 +6,11 @@ import { useScreenDetect } from '../../../hooks/use_screen_detect.js';
|
|
|
6
6
|
import withTranslation from '../../../utilities/translation/with_translation.js';
|
|
7
7
|
import iconCssClasses from '../../../css/icons/main.module.less.js';
|
|
8
8
|
import { classNames } from '../../../utilities/styles/classNames.js';
|
|
9
|
-
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
10
|
-
import { useClickOutside } from '../../../hooks/use_click_outside.js';
|
|
11
9
|
import { createPortal } from 'react-dom';
|
|
12
10
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
13
11
|
import { cssDropdownContent, cssDropdownContentRight, cssDropdownHeader, cssDropdownHeaderContent, cssDropdownHeaderTitle } from '../css_classes.js';
|
|
12
|
+
import { useClickOutside } from '../../../hooks/use_click_outside.js';
|
|
13
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
14
14
|
import IconArrow from '../../../assets/icon_arrow.js';
|
|
15
15
|
import { getXYModifiersForNestedDropdowns, isChildOfModal } from '../utilities.js';
|
|
16
16
|
import { DROPDOWN_Z_INDEX, DROPDOWN_ON_MODAL_Z_INDEX } from '../constants.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
3
2
|
import { cssDropdownListHead } from '../css_classes.js';
|
|
3
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
4
4
|
import cssClasses$1 from '../../../css/heading/main.module.less.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDropdownItemWithHover } from '../types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Dropdown.ItemWithHover component. Generic dropdown item with hover state
|
|
5
|
+
* @component
|
|
6
|
+
* @example
|
|
7
|
+
* <Dropdown.ItemWithHover> ... </Dropdown.ItemWithHover>
|
|
8
|
+
*/
|
|
9
|
+
declare const ItemWithHover: React.FC<IDropdownItemWithHover>;
|
|
10
|
+
export default ItemWithHover;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDropdownContext } from '../context/index.js';
|
|
3
|
+
import { cssDropdownItemWithHover } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Dropdown.ItemWithHover component. Generic dropdown item with hover state
|
|
8
|
+
* @component
|
|
9
|
+
* @example
|
|
10
|
+
* <Dropdown.ItemWithHover> ... </Dropdown.ItemWithHover>
|
|
11
|
+
*/
|
|
12
|
+
var ItemWithHover = function (_a) {
|
|
13
|
+
var
|
|
14
|
+
/**
|
|
15
|
+
* children nodes
|
|
16
|
+
*/
|
|
17
|
+
children = _a.children,
|
|
18
|
+
/**
|
|
19
|
+
* Custom className
|
|
20
|
+
*/
|
|
21
|
+
cssClass = _a.cssClass,
|
|
22
|
+
/**
|
|
23
|
+
* on click callback
|
|
24
|
+
*/
|
|
25
|
+
onClick = _a.onClick;
|
|
26
|
+
var toggleDropdown = useDropdownContext().toggleDropdown;
|
|
27
|
+
var itemCssClass = "".concat(cssClasses[cssDropdownItemWithHover], " ").concat(cssClass);
|
|
28
|
+
return (React.createElement("div", { className: itemCssClass, onClick: function (ev) { return onClick && onClick({ ev: ev, toggleDropdown: toggleDropdown }); } }, children));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default ItemWithHover;
|
|
32
|
+
//# sourceMappingURL=item_with_hover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useDropdownContext } from '../context/index.js';
|
|
3
|
-
import { useKeyboardOpenClose } from '../hooks/use_keyboard_open_close.js';
|
|
4
3
|
import { DROPDOWN_TEST_ID } from '../constants.js';
|
|
4
|
+
import { useKeyboardOpenClose } from '../hooks/use_keyboard_open_close.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Dropdown.Label component. Use it for togglable element, if You dont need selectable values
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { __rest, __assign } from '../../../../../../_virtual/_tslib.js';
|
|
3
|
-
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
4
3
|
import { cssDropdownListItem } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Dropdown.Link component. Should be only used within Dropdown.List.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
4
3
|
import { cssDropdownList, cssDropdownWithScroll, cssDropdownListWithGroup } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Dropdown.List component. Displays list.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
4
3
|
import { cssDropdownListItem, cssDropdownListItemSelected, cssDropdownListItemDisabled, cssDropdownListItemReadonly } from '../css_classes.js';
|
|
4
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
5
5
|
import Item from './item.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import ControlCheckbox from '../../controls/hoc/control_checkbox/index.js';
|
|
4
|
-
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
5
4
|
import { cssDropdownListItem, cssDropdownListItemSelected, cssDropdownListItemDisabled, cssDropdownListItemReadonly } from '../css_classes.js';
|
|
5
|
+
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
6
6
|
import Item from './item.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import Input from '../../controls/components/input.js';
|
|
3
3
|
import { useDropdownContext } from '../context/index.js';
|
|
4
|
+
import { cssDropdownSearch } from '../css_classes.js';
|
|
4
5
|
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
5
6
|
import { useKeyboardOpenClose } from '../hooks/use_keyboard_open_close.js';
|
|
6
|
-
import { cssDropdownSearch } from '../css_classes.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Dropdown.Search component. Displays search control.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useDropdownContext } from '../context/index.js';
|
|
3
3
|
import cssClasses from '../../../css/dropdown/main.module.less.js';
|
|
4
|
-
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
5
4
|
import { useKeyboardOpenClose } from '../hooks/use_keyboard_open_close.js';
|
|
5
|
+
import InputWrapper from '../../controls/components/input_wrapper.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Dropdown.Select component. Displays select like control. Use it only if you have selectable values.
|
|
@@ -5,6 +5,7 @@ export declare const cssDropdownHeader: string;
|
|
|
5
5
|
export declare const cssDropdownHeaderIcon: string;
|
|
6
6
|
export declare const cssDropdownHeaderTitle: string;
|
|
7
7
|
export declare const cssDropdownHeaderContent: string;
|
|
8
|
+
export declare const cssDropdownItemWithHover: string;
|
|
8
9
|
export declare const cssDropdownInput: string;
|
|
9
10
|
export declare const cssDropdownList: string;
|
|
10
11
|
export declare const cssDropdownSearch: string;
|
|
@@ -4,6 +4,7 @@ var cssDropdownContentRight = "".concat(cssDropdownContent, "_right");
|
|
|
4
4
|
var cssDropdownHeader = "".concat(cssDropdown, "__header");
|
|
5
5
|
var cssDropdownHeaderTitle = "".concat(cssDropdown, "__header-title");
|
|
6
6
|
var cssDropdownHeaderContent = "".concat(cssDropdown, "__header-content");
|
|
7
|
+
var cssDropdownItemWithHover = "".concat(cssDropdown, "__item-with-hover");
|
|
7
8
|
var cssDropdownList = "".concat(cssDropdown, "__list");
|
|
8
9
|
var cssDropdownSearch = "".concat(cssDropdown, "__search");
|
|
9
10
|
var cssDropdownWithScroll = "".concat(cssDropdown, "__list_with-scroll");
|
|
@@ -14,5 +15,5 @@ var cssDropdownListItemSelected = "".concat(cssDropdown, "__list-item_selected")
|
|
|
14
15
|
var cssDropdownListItemDisabled = "".concat(cssDropdown, "__list-item_disabled");
|
|
15
16
|
var cssDropdownListItemReadonly = "".concat(cssDropdown, "__list-item_readonly");
|
|
16
17
|
|
|
17
|
-
export { cssDropdown, cssDropdownContent, cssDropdownContentRight, cssDropdownHeader, cssDropdownHeaderContent, cssDropdownHeaderTitle, cssDropdownList, cssDropdownListHead, cssDropdownListItem, cssDropdownListItemDisabled, cssDropdownListItemReadonly, cssDropdownListItemSelected, cssDropdownListWithGroup, cssDropdownSearch, cssDropdownWithScroll };
|
|
18
|
+
export { cssDropdown, cssDropdownContent, cssDropdownContentRight, cssDropdownHeader, cssDropdownHeaderContent, cssDropdownHeaderTitle, cssDropdownItemWithHover, cssDropdownList, cssDropdownListHead, cssDropdownListItem, cssDropdownListItemDisabled, cssDropdownListItemReadonly, cssDropdownListItemSelected, cssDropdownListWithGroup, cssDropdownSearch, cssDropdownWithScroll };
|
|
18
19
|
//# sourceMappingURL=css_classes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
2
|
import { DropdownContext } from '../../context/index.js';
|
|
3
|
+
import { cssDropdown } from '../../css_classes.js';
|
|
3
4
|
import cssClasses from '../../../../css/dropdown/main.module.less.js';
|
|
5
|
+
import { handleSearchKeyUp, isSelected, handleItemClick } from '../../utilities.js';
|
|
4
6
|
import { useValues } from '../../hooks/use_values.js';
|
|
5
7
|
import { useToggle } from '../../hooks/use_toggle.js';
|
|
6
8
|
import { useSetOptionsOnClose } from '../../hooks/use_set_options_on_close.js';
|
|
7
|
-
import { cssDropdown } from '../../css_classes.js';
|
|
8
|
-
import { handleSearchKeyUp, isSelected, handleItemClick } from '../../utilities.js';
|
|
9
9
|
import Dropdown from '../../index.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
2
|
import { DropdownContext } from '../../context/index.js';
|
|
3
|
+
import { cssDropdown } from '../../css_classes.js';
|
|
3
4
|
import cssClasses from '../../../../css/dropdown/main.module.less.js';
|
|
5
|
+
import { handleSearchKeyUp, isSelected, handleItemClick } from '../../utilities.js';
|
|
4
6
|
import { useValue } from '../../hooks/use_value.js';
|
|
5
7
|
import { useToggle } from '../../hooks/use_toggle.js';
|
|
6
8
|
import { useSetOptionsOnClose } from '../../hooks/use_set_options_on_close.js';
|
|
7
|
-
import { cssDropdown } from '../../css_classes.js';
|
|
8
|
-
import { handleSearchKeyUp, isSelected, handleItemClick } from '../../utilities.js';
|
|
9
9
|
import Dropdown from '../../index.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IDropdownComposition, IDropdownProps } from './types';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import { IDropdownProps, IDropdownComposition } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Dropdown composition component. Provides several Dropdown dependant components which can be composed to create
|
|
5
5
|
* selects, multiselects or dropdowns.
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { DropdownContext } from './context/index.js';
|
|
3
3
|
import cssClasses from '../../css/dropdown/main.module.less.js';
|
|
4
|
-
import { useToggle } from './hooks/use_toggle.js';
|
|
5
|
-
import Select from './components/select.js';
|
|
6
4
|
import Content from './components/content.js';
|
|
7
|
-
import
|
|
5
|
+
import CustomLabel from './components/custom_label.js';
|
|
8
6
|
import Header from './components/header.js';
|
|
9
7
|
import Item from './components/item.js';
|
|
8
|
+
import ItemWithHover from './components/item_with_hover.js';
|
|
9
|
+
import Label from './components/label.js';
|
|
10
|
+
import Link from './components/link.js';
|
|
11
|
+
import List from './components/list.js';
|
|
10
12
|
import Option from './components/option.js';
|
|
11
13
|
import OptionMultiple from './components/option_multiple.js';
|
|
12
|
-
import Link from './components/link.js';
|
|
13
|
-
import Label from './components/label.js';
|
|
14
14
|
import Search from './components/search.js';
|
|
15
|
-
import
|
|
15
|
+
import Select from './components/select.js';
|
|
16
|
+
import { useToggle } from './hooks/use_toggle.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Dropdown composition component. Provides several Dropdown dependant components which can be composed to create
|
|
@@ -46,6 +47,7 @@ var Dropdown = function (_a) {
|
|
|
46
47
|
};
|
|
47
48
|
Dropdown.Select = Select;
|
|
48
49
|
Dropdown.Content = Content;
|
|
50
|
+
Dropdown.ItemWithHover = ItemWithHover;
|
|
49
51
|
Dropdown.Search = Search;
|
|
50
52
|
Dropdown.List = List;
|
|
51
53
|
Dropdown.Header = Header;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -12,6 +12,7 @@ export interface IDropdownComposition {
|
|
|
12
12
|
Label: React.FC<IDropdownLabelProps>;
|
|
13
13
|
CustomLabel: React.FC<IDropdownCustomLabelProps>;
|
|
14
14
|
Content: React.FC<IDropdownContentProps>;
|
|
15
|
+
ItemWithHover: React.FC<IDropdownItemWithHover>;
|
|
15
16
|
Search: React.FC<IDropdownSearchProps>;
|
|
16
17
|
Header: React.FC<IDropdownHeaderProps>;
|
|
17
18
|
List: React.FC<IDropdownListProps>;
|
|
@@ -41,6 +42,14 @@ export interface IDropdownContentProps {
|
|
|
41
42
|
portalContainer?: RefObject<HTMLElement>;
|
|
42
43
|
arrowSide?: 'left' | 'right';
|
|
43
44
|
}
|
|
45
|
+
export interface IDropdownItemWithHover {
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
cssClass?: string;
|
|
48
|
+
onClick?: (obj: {
|
|
49
|
+
ev: React.MouseEvent;
|
|
50
|
+
toggleDropdown: undefined | (() => void);
|
|
51
|
+
}) => void;
|
|
52
|
+
}
|
|
44
53
|
export interface IDropdownSearchProps {
|
|
45
54
|
onKeyUp: (ev: React.KeyboardEvent<Element>) => void;
|
|
46
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import cssClasses from '../../css/dropdown/main.module.less.js';
|
|
3
2
|
import { cssDropdownContent } from './css_classes.js';
|
|
3
|
+
import cssClasses from '../../css/dropdown/main.module.less.js';
|
|
4
4
|
import { fuzzySearch } from '../../utilities/fuzzy_search/fuzzy_search.js';
|
|
5
5
|
import cssClasses$1 from '../../css/modal/main.module.less.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n/** Form Variables */\n/** Errors */\n@media (max-width: 576px) {\n .main-module_dropdown__content__X9kz_ {\n display: flex;\n flex-direction: column;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n .main-module_dropdown__header__kvhNn {\n display: block;\n }\n .main-module_dropdown__header-title__7NXxw {\n margin-left: 0.5rem;\n }\n}\n@media (min-width: 576px) {\n .main-module_dropdown__header__kvhNn {\n display: none;\n }\n}\n.main-module_dropdown__36KKf {\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.main-module_dropdown__content__X9kz_ {\n flex: 0 0 auto;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1200;\n width: auto;\n padding: 0.5rem 0;\n background-color: #ffffff;\n border-radius: 3px;\n box-shadow: 0 0px 25px 0 rgba(0, 0, 0, 0.2);\n}\n.main-module_dropdown__content__X9kz_::before {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n left: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__content_right__Rp4hR::before {\n display: none;\n}\n.main-module_dropdown__content_right__Rp4hR::after {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n right: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__list__2bd_r {\n flex: 0 0 auto;\n padding: 0;\n width: 100%;\n min-width: 20rem;\n text-align: left;\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_dropdown__list__2bd_r > li {\n list-style: none;\n}\n.main-module_dropdown__list-head__2Uyb0 {\n padding: 0.5rem 0 0.5rem 1rem;\n}\n.main-module_dropdown__list_with-scroll__KP9yO {\n scrollbar-color: #79829c #ffffff;\n scrollbar-width: thin;\n max-height: 280px;\n overflow-y: auto;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar {\n width: 7px;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track {\n background-color: #ffffff;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track:hover {\n background-color: #f3f4f8;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb {\n background-color: #5c657e;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb:hover {\n background-color: #2d3748;\n}\n.main-module_dropdown__list-item__1u185 {\n display: block;\n padding: 0.5rem 1rem;\n cursor: default;\n}\n.main-module_dropdown__list-item__1u185:hover {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_selected__2GYQr {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_disabled__1Psh7 {\n color: #abb4cd;\n}\n.main-module_dropdown__list-item_readonly__3bbj0 {\n color: #abb4cd;\n}\n.main-module_dropdown__search__1Moob {\n padding: 0.5rem 1rem 0.5rem;\n}\n.main-module_dropdown__header__kvhNn {\n margin: calc(1rem * 0.5) 1rem;\n}\n.main-module_dropdown__header-content__10Zg9 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.main-module_dropdown__header-icon__30vfb {\n margin-right: 1rem;\n color: #abb4cd;\n font-size: 10px;\n font-size: 0.7142857142857143rem;\n}\n.main-module_dropdown__header-title__7NXxw {\n font-weight: 600;\n color: #5c657e;\n}\n.main-module_select__1ocPo {\n position: relative;\n display: flex;\n flex: 0 2 auto;\n align-items: center;\n width: 100%;\n}\n.main-module_select__1ocPo::after {\n content: '';\n position: absolute;\n display: block;\n right: 0.715em;\n width: 7px;\n height: 7px;\n margin-top: -2px;\n transform: rotate(-45deg);\n border-width: 0 0 1px 1px;\n border-style: solid;\n border-color: #3c83ec;\n}\n.main-module_select__1ocPo input {\n text-overflow: ellipsis;\n}\n.main-module_dropdown-enter__2RGtd,\n.main-module_modal-enter__I5ELD {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n}\n.main-module_mask-enter__32s5F {\n opacity: 0;\n}\n.main-module_dropdown-enter-active__ob1fb,\n.main-module_modal-enter-active__3BMYq {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-enter-active__1WgVf {\n opacity: 1;\n transition: opacity 0.1s;\n}\n.main-module_dropdown-exit__3b2wX,\n.main-module_modal-exit__y2N_F {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n}\n.main-module_mask-exit__325a4 {\n opacity: 1;\n}\n.main-module_dropdown-exit-active__22rth,\n.main-module_modal-exit-active__ID7ce {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-exit-active__2qs-r {\n opacity: 0;\n transition: opacity 0.1s;\n}\n";
|
|
4
|
-
var cssClasses = {"dropdown__content":"main-module_dropdown__content__X9kz_","dropdown__header":"main-module_dropdown__header__kvhNn","dropdown__header-title":"main-module_dropdown__header-title__7NXxw","dropdown":"main-module_dropdown__36KKf","dropdown__content_right":"main-module_dropdown__content_right__Rp4hR","dropdown__list":"main-module_dropdown__list__2bd_r","dropdown__list-head":"main-module_dropdown__list-head__2Uyb0","dropdown__list_with-scroll":"main-module_dropdown__list_with-scroll__KP9yO","dropdown__list-item":"main-module_dropdown__list-item__1u185","dropdown__list-item_selected":"main-module_dropdown__list-item_selected__2GYQr","dropdown__list-item_disabled":"main-module_dropdown__list-item_disabled__1Psh7","dropdown__list-item_readonly":"main-module_dropdown__list-item_readonly__3bbj0","dropdown__search":"main-module_dropdown__search__1Moob","dropdown__header-content":"main-module_dropdown__header-content__10Zg9","dropdown__header-icon":"main-module_dropdown__header-icon__30vfb","select":"main-module_select__1ocPo","dropdown-enter":"main-module_dropdown-enter__2RGtd","modal-enter":"main-module_modal-enter__I5ELD","mask-enter":"main-module_mask-enter__32s5F","dropdown-enter-active":"main-module_dropdown-enter-active__ob1fb","modal-enter-active":"main-module_modal-enter-active__3BMYq","mask-enter-active":"main-module_mask-enter-active__1WgVf","dropdown-exit":"main-module_dropdown-exit__3b2wX","modal-exit":"main-module_modal-exit__y2N_F","mask-exit":"main-module_mask-exit__325a4","dropdown-exit-active":"main-module_dropdown-exit-active__22rth","modal-exit-active":"main-module_modal-exit-active__ID7ce","mask-exit-active":"main-module_mask-exit-active__2qs-r"};
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n/** Form Variables */\n/** Errors */\n@media (max-width: 576px) {\n .main-module_dropdown__content__X9kz_ {\n display: flex;\n flex-direction: column;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n .main-module_dropdown__header__kvhNn {\n display: block;\n }\n .main-module_dropdown__header-title__7NXxw {\n margin-left: 0.5rem;\n }\n}\n@media (min-width: 576px) {\n .main-module_dropdown__header__kvhNn {\n display: none;\n }\n}\n.main-module_dropdown__36KKf {\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.main-module_dropdown__content__X9kz_ {\n flex: 0 0 auto;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1200;\n width: auto;\n padding: 0.5rem 0;\n background-color: #ffffff;\n border-radius: 3px;\n box-shadow: 0 0px 25px 0 rgba(0, 0, 0, 0.2);\n}\n.main-module_dropdown__content__X9kz_::before {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n left: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__content_right__Rp4hR::before {\n display: none;\n}\n.main-module_dropdown__content_right__Rp4hR::after {\n content: '';\n display: block;\n position: absolute;\n top: -14px;\n right: 7px;\n border-width: 7px;\n border-style: solid;\n border-color: transparent transparent #ffffff transparent;\n}\n.main-module_dropdown__item-with-hover__3g-Za:hover {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list__2bd_r {\n flex: 0 0 auto;\n padding: 0;\n width: 100%;\n min-width: 20rem;\n text-align: left;\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_dropdown__list__2bd_r > li {\n list-style: none;\n}\n.main-module_dropdown__list-head__2Uyb0 {\n padding: 0.5rem 0 0.5rem 1rem;\n}\n.main-module_dropdown__list_with-scroll__KP9yO {\n scrollbar-color: #79829c #ffffff;\n scrollbar-width: thin;\n max-height: 280px;\n overflow-y: auto;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar {\n width: 7px;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track {\n background-color: #ffffff;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-track:hover {\n background-color: #f3f4f8;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb {\n background-color: #5c657e;\n}\n.main-module_dropdown__list_with-scroll__KP9yO::-webkit-scrollbar-thumb:hover {\n background-color: #2d3748;\n}\n.main-module_dropdown__list-item__1u185 {\n display: block;\n padding: 0.5rem 1rem;\n cursor: default;\n}\n.main-module_dropdown__list-item__1u185:hover {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_selected__2GYQr {\n background-color: #f5f7ff;\n}\n.main-module_dropdown__list-item_disabled__1Psh7 {\n color: #abb4cd;\n}\n.main-module_dropdown__list-item_readonly__3bbj0 {\n color: #abb4cd;\n}\n.main-module_dropdown__search__1Moob {\n padding: 0.5rem 1rem 0.5rem;\n}\n.main-module_dropdown__header__kvhNn {\n margin: calc(1rem * 0.5) 1rem;\n}\n.main-module_dropdown__header-content__10Zg9 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.main-module_dropdown__header-icon__30vfb {\n margin-right: 1rem;\n color: #abb4cd;\n font-size: 10px;\n font-size: 0.7142857142857143rem;\n}\n.main-module_dropdown__header-title__7NXxw {\n font-weight: 600;\n color: #5c657e;\n}\n.main-module_select__1ocPo {\n position: relative;\n display: flex;\n flex: 0 2 auto;\n align-items: center;\n width: 100%;\n}\n.main-module_select__1ocPo::after {\n content: '';\n position: absolute;\n display: block;\n right: 0.715em;\n width: 7px;\n height: 7px;\n margin-top: -2px;\n transform: rotate(-45deg);\n border-width: 0 0 1px 1px;\n border-style: solid;\n border-color: #3c83ec;\n}\n.main-module_select__1ocPo input {\n text-overflow: ellipsis;\n}\n.main-module_dropdown-enter__2RGtd,\n.main-module_modal-enter__I5ELD {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n}\n.main-module_mask-enter__32s5F {\n opacity: 0;\n}\n.main-module_dropdown-enter-active__ob1fb,\n.main-module_modal-enter-active__3BMYq {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-enter-active__1WgVf {\n opacity: 1;\n transition: opacity 0.1s;\n}\n.main-module_dropdown-exit__3b2wX,\n.main-module_modal-exit__y2N_F {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n}\n.main-module_mask-exit__325a4 {\n opacity: 1;\n}\n.main-module_dropdown-exit-active__22rth,\n.main-module_modal-exit-active__ID7ce {\n opacity: 0;\n transform: translate3d(0, -2rem, 0);\n transition: transform 0.2s, opacity 0.2s;\n}\n.main-module_mask-exit-active__2qs-r {\n opacity: 0;\n transition: opacity 0.1s;\n}\n";
|
|
4
|
+
var cssClasses = {"dropdown__content":"main-module_dropdown__content__X9kz_","dropdown__header":"main-module_dropdown__header__kvhNn","dropdown__header-title":"main-module_dropdown__header-title__7NXxw","dropdown":"main-module_dropdown__36KKf","dropdown__content_right":"main-module_dropdown__content_right__Rp4hR","dropdown__item-with-hover":"main-module_dropdown__item-with-hover__3g-Za","dropdown__list":"main-module_dropdown__list__2bd_r","dropdown__list-head":"main-module_dropdown__list-head__2Uyb0","dropdown__list_with-scroll":"main-module_dropdown__list_with-scroll__KP9yO","dropdown__list-item":"main-module_dropdown__list-item__1u185","dropdown__list-item_selected":"main-module_dropdown__list-item_selected__2GYQr","dropdown__list-item_disabled":"main-module_dropdown__list-item_disabled__1Psh7","dropdown__list-item_readonly":"main-module_dropdown__list-item_readonly__3bbj0","dropdown__search":"main-module_dropdown__search__1Moob","dropdown__header-content":"main-module_dropdown__header-content__10Zg9","dropdown__header-icon":"main-module_dropdown__header-icon__30vfb","select":"main-module_select__1ocPo","dropdown-enter":"main-module_dropdown-enter__2RGtd","modal-enter":"main-module_modal-enter__I5ELD","mask-enter":"main-module_mask-enter__32s5F","dropdown-enter-active":"main-module_dropdown-enter-active__ob1fb","modal-enter-active":"main-module_modal-enter-active__3BMYq","mask-enter-active":"main-module_mask-enter-active__1WgVf","dropdown-exit":"main-module_dropdown-exit__3b2wX","modal-exit":"main-module_modal-exit__y2N_F","mask-exit":"main-module_mask-exit__325a4","dropdown-exit-active":"main-module_dropdown-exit-active__22rth","modal-exit-active":"main-module_modal-exit-active__ID7ce","mask-exit-active":"main-module_mask-exit-active__2qs-r"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export default cssClasses;
|