@qualtrics/ui-react 2.6.1 → 2.7.1
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/CHANGELOG.md +29 -0
- package/dist/__shared/cjs/{index-c8142113.js → index-68af2c28.js} +552 -196
- package/dist/__shared/cjs/{index-d447e6d9.js → index-7f94d375.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button2.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/Controls.js +4 -4
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Menu/Menu.js +112 -0
- package/dist/components/Menu/MenuContext.js +11 -0
- package/dist/components/Menu/index.js +1 -0
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +4 -4
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +1 -1
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/{NewMenu → SelectMenu}/BaseMenu.js +1 -1
- package/dist/components/{NewMenu/SelectMenu → SelectMenu}/SelectMenu.js +1 -1
- package/dist/components/SelectMenu/SelectMenu2.js +8 -0
- package/dist/components/{NewMenu → SelectMenu}/index.js +1 -2
- package/dist/components/{NewMenu → SelectMenu}/parts/MenuAnchor.js +1 -1
- package/dist/components/SelectMenu/parts/MenuItem.js +76 -0
- package/dist/components/{NewMenu → SelectMenu}/parts/MenuSearchBox.js +1 -1
- package/dist/components/{NewMenu → SelectMenu}/parts/MenuSpinner.js +1 -1
- package/dist/components/{NewMenu → SelectMenu}/parts/SubmenuAnchor.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/PortalTargetContext.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/index.js +2 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.js +202 -103
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +28 -0
- package/dist/next/Menu/Menu2.js +8 -0
- package/dist/next/Menu/MenuButton.js +44 -0
- package/dist/next/Menu/MenuContext.js +41 -0
- package/dist/next/Menu/MenuItem.js +55 -0
- package/dist/next/Menu/MenuPane.js +72 -0
- package/dist/next/Menu/MenuSearch.js +105 -0
- package/dist/next/Menu/SubMenu.js +84 -0
- package/dist/next/Menu/constants.js +9 -0
- package/dist/next/Menu/index.js +5 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.js +21 -20
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +1 -1
- package/dist/components/NewMenu/Menu/Menu.js +0 -24
- package/dist/components/NewMenu/Menu/index.js +0 -1
- package/dist/components/NewMenu/NewMenu.js +0 -8
- package/dist/components/NewMenu/SelectMenu/index.js +0 -1
- package/dist/components/NewMenu/parts/MenuItem.js +0 -63
- /package/dist/components/{NewMenu → SelectMenu}/parts/ArrowNav/ArrowNav.js +0 -0
- /package/dist/components/{NewMenu → SelectMenu}/parts/ArrowNav/index.js +0 -0
- /package/dist/components/{NewMenu → SelectMenu}/parts/MenuContext.js +0 -0
- /package/dist/components/{NewMenu → SelectMenu}/parts/index.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._iEunL{position:relative;display:inline-block}._iEunL._1yKN7{min-height:20px;min-width:20px}._iEunL._7VoiG{min-height:25px;min-width:25px}._iEunL._GybS7{min-height:40px;min-width:40px}._iEunL._1Y8co{min-height:64px;min-width:64px}._iEunL ._1VSua{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._iEunL ._1VSua._1dM19{visibility:hidden}._iEunL ._1VSua div{position:absolute;transform:rotate(20deg)}._iEunL ._1VSua div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_1VSua .8s linear infinite;animation:_1VSua .8s linear infinite}._iEunL ._1VSua div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._iEunL ._1VSua div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._iEunL ._1VSua div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._iEunL ._1VSua div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._iEunL ._1VSua div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._iEunL ._1VSua div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._iEunL ._1VSua div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._iEunL ._1VSua div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._iEunL ._1VSua div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._iEunL ._1VSua div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._iEunL ._1Y8co div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._iEunL ._1yKN7 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._iEunL ._7VoiG div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._iEunL ._3L74i div div:nth-child(-n+9):after{background:#fff}._iEunL ._1qmLT{width:100%;height:100%}._iEunL ._1qmLT._3m2m9{pointer-events:none}._iEunL ._1qmLT._1dM19{opacity:0}._iEunL ._1qmLT._Nrs3K{opacity:.5}@-webkit-keyframes _1VSua{0%{opacity:1}to{opacity:0}}@keyframes _1VSua{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_iEunL","xs":"_1yKN7","small":"_7VoiG","medium":"_GybS7","large":"_1Y8co","spinnerComponent":"_1VSua","hide":"_1dM19","inverted":"_3L74i","spinnerContent":"_1qmLT","disablePointerEvents":"_3m2m9","fade":"_Nrs3K"};
|
|
5
|
+
var stylesheet="._iEunL{position:relative;display:inline-block}._iEunL._1yKN7{min-height:20px;min-width:20px}._iEunL._7VoiG{min-height:25px;min-width:25px}._iEunL._GybS7{min-height:40px;min-width:40px}._iEunL._1Y8co{min-height:64px;min-width:64px}._iEunL ._1VSua{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._iEunL ._1VSua._1dM19{visibility:hidden}._iEunL ._1VSua div{position:absolute;transform:rotate(20deg)}._iEunL ._1VSua div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_1VSua .8s linear infinite;animation:_1VSua .8s linear infinite}._iEunL ._1VSua div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._iEunL ._1VSua div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._iEunL ._1VSua div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._iEunL ._1VSua div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._iEunL ._1VSua div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._iEunL ._1VSua div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._iEunL ._1VSua div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._iEunL ._1VSua div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._iEunL ._1VSua div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._iEunL ._1VSua div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._iEunL ._1Y8co div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._iEunL ._1yKN7 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._iEunL ._7VoiG div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._iEunL ._3L74i div div:nth-child(-n+9):after{background:#fff}._iEunL ._1qmLT{width:100%;height:100%}._iEunL ._1qmLT._3m2m9{pointer-events:none}._iEunL ._1qmLT._1dM19{opacity:0}._iEunL ._1qmLT._Nrs3K{opacity:.5}@-webkit-keyframes _1VSua{0%{opacity:1}to{opacity:0}}@keyframes _1VSua{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -2,13 +2,13 @@ import React__default from 'react';
|
|
|
2
2
|
import styles from './LogicEditor2.js';
|
|
3
3
|
import '../../icons/index.es.js';
|
|
4
4
|
import { newCondition, LOGIC_TYPE_SET, newConditionSet } from './utils.js';
|
|
5
|
-
import '../
|
|
5
|
+
import '../SelectMenu/index.js';
|
|
6
|
+
import BaseMenu from '../SelectMenu/BaseMenu.js';
|
|
6
7
|
import '../IconButton/index.js';
|
|
7
8
|
import { useLogicEditorContext } from './LogicEditorContext.js';
|
|
8
|
-
import Menu from '../NewMenu/Menu/Menu.js';
|
|
9
9
|
import IconButton from '../IconButton/IconButton.js';
|
|
10
10
|
import EllipsisHorizontalIcon from '../../icons/components/EllipsisHorizontalIcon.js';
|
|
11
|
-
import MenuItem from '../
|
|
11
|
+
import MenuItem from '../SelectMenu/parts/MenuItem.js';
|
|
12
12
|
import AddItemIcon from '../../icons/components/AddItemIcon.js';
|
|
13
13
|
import FilterIcon from '../../icons/components/FilterIcon.js';
|
|
14
14
|
import RemoveItemIcon from '../../icons/components/RemoveItemIcon.js';
|
|
@@ -32,7 +32,7 @@ const Controls = function Controls(_ref) {
|
|
|
32
32
|
maxNestedSets,
|
|
33
33
|
maxConditions
|
|
34
34
|
} = useLogicEditorContext();
|
|
35
|
-
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(
|
|
35
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(BaseMenu, {
|
|
36
36
|
anchor: /*#__PURE__*/React__default.createElement(IconButton, {
|
|
37
37
|
"aria-label": translations.conditionActions,
|
|
38
38
|
className: styles.controls,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"set":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2mnTD{width:100%}._31Efz{display:flex;align-items:center}._1Tj-u,._3QpWQ{display:grid;flex-grow:1}._3QpWQ{grid-gap:4px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}@media (-ms-high-contrast:active),(-ms-high-contrast:none){._3QpWQ>*{vertical-align:top;display:inline-block}._3QpWQ>*+*{margin-left:4px}}._2UjZk{position:relative;padding-left:32px;padding-top:16px;display:flex}._3EiX7 ._2UjZk{padding-top:0;padding-left:16px}._3EiX7 ._2UjZk+._2UjZk{margin-top:16px}._2yC-z{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._3EiX7 ._2UjZk:first-of-type ._2yC-z{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._3EiX7 ._2yC-z{top:-16px;left:0}._3EiX7 ._2UjZk:not(:first-of-type):not(:last-of-type) ._2yC-z{border-bottom-left-radius:0}._2xHBb{margin:0 2px 0 4px}body._3ftke ._2xHBb{outline-width:2px}._2_tF7{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_2mnTD","setWrapper":"_31Efz","conditionContainer":"_1Tj-u","condition":"_3QpWQ","branch":"_2UjZk","fixedSet":"_3EiX7","connection":"_2yC-z","controls":"_2xHBb","keyboard-user":"_3ftke","controlMenuItem":"_2_tF7"};
|
|
5
|
+
var stylesheet="._2mnTD{width:100%}._31Efz{display:flex;align-items:center}._1Tj-u,._3QpWQ{display:grid;flex-grow:1}._3QpWQ{grid-gap:4px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}@media (-ms-high-contrast:active),(-ms-high-contrast:none){._3QpWQ>*{vertical-align:top;display:inline-block}._3QpWQ>*+*{margin-left:4px}}._2UjZk{position:relative;padding-left:32px;padding-top:16px;display:flex}._3EiX7 ._2UjZk{padding-top:0;padding-left:16px}._3EiX7 ._2UjZk+._2UjZk{margin-top:16px}._2yC-z{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._3EiX7 ._2UjZk:first-of-type ._2yC-z{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._3EiX7 ._2yC-z{top:-16px;left:0}._3EiX7 ._2UjZk:not(:first-of-type):not(:last-of-type) ._2yC-z{border-bottom-left-radius:0}._2xHBb{margin:0 2px 0 4px}body._3ftke ._2xHBb{outline-width:2px}._2_tF7{margin-left:4px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import '../../next/Menu/index.js';
|
|
4
|
+
import { useMenuContext, MenuContextProvider } from './MenuContext.js';
|
|
5
|
+
import '../../hooks/index.js';
|
|
6
|
+
import '../UIProvider/index.js';
|
|
7
|
+
import useId from '../../hooks/useId/useId.js';
|
|
8
|
+
import { SubMenu } from '../../next/Menu/SubMenu.js';
|
|
9
|
+
import { Menu as Menu$1 } from '../../next/Menu/Menu.js';
|
|
10
|
+
import { MenuButton } from '../../next/Menu/MenuButton.js';
|
|
11
|
+
import { PortalTargetProvider } from '../UIProvider/PortalTargetContext.js';
|
|
12
|
+
import { MenuPane } from '../../next/Menu/MenuPane.js';
|
|
13
|
+
|
|
14
|
+
const Menu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
15
|
+
var _anchor$props$id, _anchor$props, _anchor$props$ariaLa, _anchor$props2, _anchor$props$ariaLa2, _anchor$props3;
|
|
16
|
+
|
|
17
|
+
let {
|
|
18
|
+
anchor,
|
|
19
|
+
children,
|
|
20
|
+
className,
|
|
21
|
+
flyoutClassName,
|
|
22
|
+
disabled,
|
|
23
|
+
id,
|
|
24
|
+
label,
|
|
25
|
+
maxHeight,
|
|
26
|
+
onIsOpenChange,
|
|
27
|
+
isOpen,
|
|
28
|
+
placement = 'bottom-start',
|
|
29
|
+
portalTarget,
|
|
30
|
+
searchable = false,
|
|
31
|
+
isSearchFilteringDisabled = false,
|
|
32
|
+
searchValue,
|
|
33
|
+
onSearchValueChange,
|
|
34
|
+
zIndex = 1000,
|
|
35
|
+
'aria-label': externalAriaLabel,
|
|
36
|
+
'aria-labelledby': externalAriaLabelledBy,
|
|
37
|
+
onKeyDown,
|
|
38
|
+
onClick,
|
|
39
|
+
...rest
|
|
40
|
+
} = _ref;
|
|
41
|
+
const {
|
|
42
|
+
isChildOfMenu
|
|
43
|
+
} = useMenuContext();
|
|
44
|
+
const anchorId = useId((_anchor$props$id = anchor === null || anchor === void 0 ? void 0 : (_anchor$props = anchor.props) === null || _anchor$props === void 0 ? void 0 : _anchor$props.id) !== null && _anchor$props$id !== void 0 ? _anchor$props$id : id);
|
|
45
|
+
const paneId = "".concat(anchorId, "-menu");
|
|
46
|
+
const ariaLabelledBy = (_anchor$props$ariaLa = anchor === null || anchor === void 0 ? void 0 : (_anchor$props2 = anchor.props) === null || _anchor$props2 === void 0 ? void 0 : _anchor$props2['aria-labelledby']) !== null && _anchor$props$ariaLa !== void 0 ? _anchor$props$ariaLa : externalAriaLabelledBy ? "".concat(externalAriaLabelledBy, " ").concat(anchorId) : undefined;
|
|
47
|
+
const ariaLabel = (_anchor$props$ariaLa2 = anchor === null || anchor === void 0 ? void 0 : (_anchor$props3 = anchor.props) === null || _anchor$props3 === void 0 ? void 0 : _anchor$props3['aria-label']) !== null && _anchor$props$ariaLa2 !== void 0 ? _anchor$props$ariaLa2 : externalAriaLabel && typeof label === 'string' ? "".concat(externalAriaLabel, " ").concat(label) : externalAriaLabel;
|
|
48
|
+
return isChildOfMenu ? /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
49
|
+
value: {
|
|
50
|
+
isChildOfMenu: true,
|
|
51
|
+
onIsOpenChange,
|
|
52
|
+
subMenuTriggerProps: { ...rest,
|
|
53
|
+
className,
|
|
54
|
+
id: anchorId,
|
|
55
|
+
onClick,
|
|
56
|
+
onKeyDown,
|
|
57
|
+
'aria-controls': paneId
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/React__default.createElement(SubMenu, {
|
|
61
|
+
isDisabled: disabled,
|
|
62
|
+
label: label,
|
|
63
|
+
className: flyoutClassName,
|
|
64
|
+
isSearchable: searchable,
|
|
65
|
+
"aria-labelledby": anchorId,
|
|
66
|
+
id: paneId,
|
|
67
|
+
style: {
|
|
68
|
+
maxHeight,
|
|
69
|
+
zIndex
|
|
70
|
+
},
|
|
71
|
+
isSearchFilteringDisabled: isSearchFilteringDisabled,
|
|
72
|
+
searchValue: searchValue,
|
|
73
|
+
onSearchValueChange: onSearchValueChange
|
|
74
|
+
}, children)) : /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
75
|
+
value: {
|
|
76
|
+
isChildOfMenu: true
|
|
77
|
+
}
|
|
78
|
+
}, /*#__PURE__*/React__default.createElement(Menu$1, {
|
|
79
|
+
isOpen: isOpen,
|
|
80
|
+
onIsOpenChange: onIsOpenChange,
|
|
81
|
+
isDisabled: disabled
|
|
82
|
+
}, /*#__PURE__*/React__default.createElement(MenuButton, _extends({}, rest, {
|
|
83
|
+
id: anchorId,
|
|
84
|
+
className: className,
|
|
85
|
+
ref: ref,
|
|
86
|
+
asChild: Boolean(anchor),
|
|
87
|
+
"aria-labelledby": ariaLabelledBy,
|
|
88
|
+
"aria-label": ariaLabel,
|
|
89
|
+
onClick: onClick,
|
|
90
|
+
onKeyDown: onKeyDown,
|
|
91
|
+
"aria-controls": paneId,
|
|
92
|
+
role: anchor ? 'button' : undefined,
|
|
93
|
+
tabIndex: anchor ? 0 : undefined
|
|
94
|
+
}), anchor !== null && anchor !== void 0 ? anchor : label), /*#__PURE__*/React__default.createElement(PortalTargetProvider, {
|
|
95
|
+
target: portalTarget
|
|
96
|
+
}, /*#__PURE__*/React__default.createElement(MenuPane, {
|
|
97
|
+
className: flyoutClassName,
|
|
98
|
+
isSearchable: searchable,
|
|
99
|
+
isSearchFilteringDisabled: isSearchFilteringDisabled,
|
|
100
|
+
"aria-labelledby": anchorId,
|
|
101
|
+
id: paneId,
|
|
102
|
+
style: {
|
|
103
|
+
maxHeight,
|
|
104
|
+
zIndex
|
|
105
|
+
},
|
|
106
|
+
placement: placement,
|
|
107
|
+
searchValue: searchValue,
|
|
108
|
+
onSearchValueChange: onSearchValueChange
|
|
109
|
+
}, children))));
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export { Menu as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '../../utils/index.js';
|
|
2
|
+
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
useContext: useMenuContext,
|
|
6
|
+
Provider: MenuContextProvider
|
|
7
|
+
} = createContextUtilities({
|
|
8
|
+
isChildOfMenu: false
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { MenuContextProvider, useMenuContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Menu } from './Menu.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"backdrop":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2DKvS{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._2DKvS,._239XC{display:flex;overflow:auto}._239XC{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._1Im32)._2wCXS{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._2wCXS{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._1Im32)._2XLkE{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._2XLkE{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1Im32)._2XLkE{max-width:700px}}:not(._1Im32)._UFe8h{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._UFe8h{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1Im32)._UFe8h{max-width:700px}}@media screen and (min-width:1024px){:not(._1Im32)._UFe8h{max-width:1000px}}:not(._1Im32)._3F1S_{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._3F1S_{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1Im32)._3F1S_{max-width:700px}}@media screen and (min-width:1024px){:not(._1Im32)._3F1S_{max-width:1000px}}@media screen and (min-width:1632px){:not(._1Im32)._3F1S_{max-width:1600px;max-height:calc(100vh - 32px)}}._1Im32{min-width:200px;width:calc(100% - 48px)}._1Im32,._1Im32._2wCXS{max-height:calc(100vh - 80px)}._1Im32._2wCXS{max-width:480px;border-radius:8px}._1Im32._2XLkE{max-width:700px}._1Im32._UFe8h{max-width:1000px}._1Im32._3F1S_{max-width:1600px;max-height:calc(100vh - 32px)}._2SbH2{height:calc(100vh - 80px)}@media screen and (max-width:479px){._2SbH2{height:100vh}}@media screen and (min-width:1632px){._2SbH2{height:calc(100vh - 32px)}}._xOav0{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._bPcJv{padding-right:64px}._3Iqxj{position:absolute;top:14px;right:14px}._Lix7I{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._2aPAl,._Lix7I{padding:20px 24px}._2aPAl{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._2aPAl>*{margin:0 4px}._2aPAl>:first-child{margin-left:0}._2aPAl>:last-child{margin-right:0}@-webkit-keyframes _3EVkM{0%{opacity:0}}@keyframes _3EVkM{0%{opacity:0}}._3EVkM{-webkit-animation:_3EVkM ease-in both;animation:_3EVkM ease-in both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _PLHJ8{to{opacity:0}}@keyframes _PLHJ8{to{opacity:0}}._PLHJ8{-webkit-animation:_PLHJ8 ease-out both;animation:_PLHJ8 ease-out both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1Af2l{0%{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _1Af2l{0%{transform:scale3d(.7,.7,.7);opacity:0}}._1Af2l{-webkit-animation:_1Af2l both;animation:_1Af2l both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _2GPGd{to{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _2GPGd{to{transform:scale3d(.7,.7,.7);opacity:0}}._2GPGd{-webkit-animation:_2GPGd both;animation:_2GPGd both;-webkit-animation-duration:.2s;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_2DKvS","modal":"_239XC","responsive":"_1Im32","dialogSmall":"_2wCXS","dialogMedium":"_2XLkE","dialogLarge":"_UFe8h","dialogExtraLarge":"_3F1S_","growToMaxHeight":"_2SbH2","modalHeader":"_xOav0","modalHeaderWithCloseButton":"_bPcJv","modalHeaderCloseButton":"_3Iqxj","modalBody":"_Lix7I","modalFooter":"_2aPAl","fadeEnter":"_3EVkM","fadeLeave":"_PLHJ8","zoomEnter":"_1Af2l","zoomLeave":"_2GPGd"};
|
|
5
|
+
var stylesheet="._2DKvS{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._2DKvS,._239XC{display:flex;overflow:auto}._239XC{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._1Im32)._2wCXS{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._2wCXS{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._1Im32)._2XLkE{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._2XLkE{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1Im32)._2XLkE{max-width:700px}}:not(._1Im32)._UFe8h{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._UFe8h{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1Im32)._UFe8h{max-width:700px}}@media screen and (min-width:1024px){:not(._1Im32)._UFe8h{max-width:1000px}}:not(._1Im32)._3F1S_{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1Im32)._3F1S_{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1Im32)._3F1S_{max-width:700px}}@media screen and (min-width:1024px){:not(._1Im32)._3F1S_{max-width:1000px}}@media screen and (min-width:1632px){:not(._1Im32)._3F1S_{max-width:1600px;max-height:calc(100vh - 32px)}}._1Im32{min-width:200px;width:calc(100% - 48px)}._1Im32,._1Im32._2wCXS{max-height:calc(100vh - 80px)}._1Im32._2wCXS{max-width:480px;border-radius:8px}._1Im32._2XLkE{max-width:700px}._1Im32._UFe8h{max-width:1000px}._1Im32._3F1S_{max-width:1600px;max-height:calc(100vh - 32px)}._2SbH2{height:calc(100vh - 80px)}@media screen and (max-width:479px){._2SbH2{height:100vh}}@media screen and (min-width:1632px){._2SbH2{height:calc(100vh - 32px)}}._xOav0{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._bPcJv{padding-right:64px}._3Iqxj{position:absolute;top:14px;right:14px}._Lix7I{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._2aPAl,._Lix7I{padding:20px 24px}._2aPAl{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._2aPAl>*{margin:0 4px}._2aPAl>:first-child{margin-left:0}._2aPAl>:last-child{margin-right:0}@-webkit-keyframes _3EVkM{0%{opacity:0}}@keyframes _3EVkM{0%{opacity:0}}._3EVkM{-webkit-animation:_3EVkM ease-in both;animation:_3EVkM ease-in both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _PLHJ8{to{opacity:0}}@keyframes _PLHJ8{to{opacity:0}}._PLHJ8{-webkit-animation:_PLHJ8 ease-out both;animation:_PLHJ8 ease-out both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1Af2l{0%{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _1Af2l{0%{transform:scale3d(.7,.7,.7);opacity:0}}._1Af2l{-webkit-animation:_1Af2l both;animation:_1Af2l both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _2GPGd{to{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _2GPGd{to{transform:scale3d(.7,.7,.7);opacity:0}}._2GPGd{-webkit-animation:_2GPGd both;animation:_2GPGd both;-webkit-animation-duration:.2s;animation-duration:.2s}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"numberStepperContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._1GNCU{display:inline-flex;width:127px}._XIPO8{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._XIPO8:hover:not(._3WKl2){cursor:pointer;background:#f5f5f5}._XIPO8._A9Rgq{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._XIPO8._3WKl2{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._XIPO8._3WKl2>svg{opacity:.4}._XIPO8::-webkit-inner-spin-button,._XIPO8::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._XIPO8:focus{z-index:0;border:none;border-radius:4px}._XIPO8:focus:not(._A9Rgq){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3SMTg,._XIPO8:focus:not(._3WKl2){background:#fafafa}._3SMTg{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._3SMTg:hover:not(._3WKl2){cursor:pointer;background:#f5f5f5}._3SMTg:active:not(._3WKl2){background:#e5e5e5}._3SMTg._3WKl2{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._3SMTg._3WKl2>svg{opacity:.4}._1FWk2{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._1FWk2:hover:not(._3WKl2){cursor:pointer;background:#f5f5f5}._1FWk2:active:not(._3WKl2){background:#e5e5e5}._1FWk2._3WKl2{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1FWk2._3WKl2>svg{opacity:.4}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_1GNCU","numberStepperInput":"_XIPO8","disabled":"_3WKl2","invalid":"_A9Rgq","decrementBtn":"_3SMTg","incrementBtn":"_1FWk2"};
|
|
5
|
+
var stylesheet="._1GNCU{display:inline-flex;width:127px}._XIPO8{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._XIPO8:hover:not(._3WKl2){cursor:pointer;background:#f5f5f5}._XIPO8._A9Rgq{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._XIPO8._3WKl2{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._XIPO8._3WKl2>svg{opacity:.4}._XIPO8::-webkit-inner-spin-button,._XIPO8::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._XIPO8:focus{z-index:0;border:none;border-radius:4px}._XIPO8:focus:not(._A9Rgq){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3SMTg,._XIPO8:focus:not(._3WKl2){background:#fafafa}._3SMTg{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._3SMTg:hover:not(._3WKl2){cursor:pointer;background:#f5f5f5}._3SMTg:active:not(._3WKl2){background:#e5e5e5}._3SMTg._3WKl2{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._3SMTg._3WKl2>svg{opacity:.4}._1FWk2{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._1FWk2:hover:not(._3WKl2){cursor:pointer;background:#f5f5f5}._1FWk2:active:not(._3WKl2){background:#e5e5e5}._1FWk2._3WKl2{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1FWk2._3WKl2>svg{opacity:.4}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"pageContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Edw_5{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._3d5Yi{grid-area:pageHeader}._3ifoT{grid-area:mainContent;height:100%;overflow:auto}";
|
|
4
|
+
var styles = {"pageContainer":"_Edw_5","pageHeader":"_3d5Yi","mainContent":"_3ifoT"};
|
|
5
|
+
var stylesheet="._Edw_5{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._3d5Yi{grid-area:pageHeader}._3ifoT{grid-area:mainContent;height:100%;overflow:auto}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"pagination":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._3yaqR{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._2kikr{margin-right:8px}._1f0H5{margin-left:8px}._2505Z{margin:-10px -15px}._2zlxu{width:100%;text-align:center}";
|
|
4
|
+
var styles = {"pagination":"_3yaqR","previousButton":"_2kikr","nextButton":"_1f0H5","btnIcon":"_2505Z","input":"_2zlxu"};
|
|
5
|
+
var stylesheet="._3yaqR{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._2kikr{margin-right:8px}._1f0H5{margin-left:8px}._2505Z{margin:-10px -15px}._2zlxu{width:100%;text-align:center}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"popover":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._v-bOi{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._v-bOi:focus{outline:none}._1k76J,._1k76J>div{position:absolute;width:8px;height:8px;background:inherit}._1k76J{visibility:hidden;z-index:1000}._1k76J>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._1k76J{bottom:-4px}[data-popper-placement^=top]>._1k76J>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._1k76J{left:-5px}[data-popper-placement^=right]>._1k76J>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._1k76J{top:-5px}[data-popper-placement^=bottom]>._1k76J>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._1k76J{right:-4px}[data-popper-placement^=left]>._1k76J>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_v-bOi","arrow":"_1k76J"};
|
|
5
|
+
var stylesheet="._v-bOi{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._v-bOi:focus{outline:none}._1k76J,._1k76J>div{position:absolute;width:8px;height:8px;background:inherit}._1k76J{visibility:hidden;z-index:1000}._1k76J>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._1k76J{bottom:-4px}[data-popper-placement^=top]>._1k76J>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._1k76J{left:-5px}[data-popper-placement^=right]>._1k76J>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._1k76J{top:-5px}[data-popper-placement^=bottom]>._1k76J>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._1k76J{right:-4px}[data-popper-placement^=left]>._1k76J>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { forwardRef, useState, useRef } from 'react';
|
|
3
3
|
import styles from './QuickSearch2.js';
|
|
4
|
-
import '../
|
|
4
|
+
import '../SelectMenu/index.js';
|
|
5
|
+
import BaseMenu from '../SelectMenu/BaseMenu.js';
|
|
5
6
|
import '../LoadingSpinner/index.js';
|
|
6
7
|
import QuickSearchInput from './QuickSearchInput.js';
|
|
7
8
|
import '../../utils/index.js';
|
|
8
9
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
9
|
-
import Menu from '../NewMenu/Menu/Menu.js';
|
|
10
10
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
11
11
|
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner.js';
|
|
12
|
-
import MenuItem from '../
|
|
12
|
+
import MenuItem from '../SelectMenu/parts/MenuItem.js';
|
|
13
13
|
|
|
14
14
|
const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
15
15
|
var _anchorRef$current;
|
|
@@ -33,7 +33,7 @@ const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
33
33
|
const {
|
|
34
34
|
translate
|
|
35
35
|
} = useTranslation();
|
|
36
|
-
return /*#__PURE__*/React__default.createElement(
|
|
36
|
+
return /*#__PURE__*/React__default.createElement(BaseMenu, _extends({}, menuProps, {
|
|
37
37
|
private_isFirstElementHighlightedOnUserActivatedOpen: false,
|
|
38
38
|
private_isClosedMenuOpenedOnAnchorClick: false,
|
|
39
39
|
maxHeight: externalMaxHeight === undefined ? maxHeight : externalMaxHeight,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._33jSB{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_33jSB"};
|
|
5
|
+
var stylesheet="._33jSB{display:flex;height:32px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -2,7 +2,7 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import React__default, { forwardRef, useState, useCallback } from 'react';
|
|
3
3
|
import { debounce, throttle } from 'throttle-debounce';
|
|
4
4
|
import '../../hooks/index.js';
|
|
5
|
-
import { useMenuContext } from '../
|
|
5
|
+
import { useMenuContext } from '../SelectMenu/parts/MenuContext.js';
|
|
6
6
|
import '../Input/index.js';
|
|
7
7
|
import '../../utils/index.js';
|
|
8
8
|
import useMounted from '../../hooks/useMounted/useMounted.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"radio":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2aacV{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._2aacV,._2tWat{cursor:pointer;height:16px;width:16px}._2tWat{position:absolute;opacity:0;z-index:10}._2tWat:checked~._1Z73p>._3NW1g{fill-opacity:1}._2tWat:checked:enabled~._1Z73p{border-color:transparent;background-color:#0b6ed0}._2tWat:checked:enabled~._1Z73p>._3NW1g{fill:#fff}._2tWat:checked:enabled:hover~._1Z73p{background-color:#085caf}._2tWat:not(:checked):enabled:hover~._1Z73p{border-color:#0b6ed0}._2tWat:disabled{cursor:not-allowed}._2tWat:disabled~._1Z73p{opacity:.4}._2tWat:checked~._1Z73p:after{content:\"\"}._1WEeG{color:#32363a;display:flex;align-items:center;cursor:pointer}._2pevT{cursor:auto;color:hsla(0,0%,53.7%,.4)}._1w6Rj{margin-right:12px;flex-shrink:0}._1Z73p{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._3NW1g{fill:#0b6ed0;fill-opacity:0}._1Z73p:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._23XeS{border:none;padding:0;margin:0}._2na1g{padding:0;margin:0 0 14px;color:#01213f}body.keyboard-user ._2tWat:active:focus~._1Z73p,body.keyboard-user ._2tWat:focus~._1Z73p{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_2aacV","input":"_2tWat","check":"_1Z73p","checkIcon":"_3NW1g","label":"_1WEeG","labelDisabled":"_2pevT","wrappedInput":"_1w6Rj","radioGroup":"_23XeS","legend":"_2na1g"};
|
|
5
|
+
var stylesheet="._2aacV{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._2aacV,._2tWat{cursor:pointer;height:16px;width:16px}._2tWat{position:absolute;opacity:0;z-index:10}._2tWat:checked~._1Z73p>._3NW1g{fill-opacity:1}._2tWat:checked:enabled~._1Z73p{border-color:transparent;background-color:#0b6ed0}._2tWat:checked:enabled~._1Z73p>._3NW1g{fill:#fff}._2tWat:checked:enabled:hover~._1Z73p{background-color:#085caf}._2tWat:not(:checked):enabled:hover~._1Z73p{border-color:#0b6ed0}._2tWat:disabled{cursor:not-allowed}._2tWat:disabled~._1Z73p{opacity:.4}._2tWat:checked~._1Z73p:after{content:\"\"}._1WEeG{color:#32363a;display:flex;align-items:center;cursor:pointer}._2pevT{cursor:auto;color:hsla(0,0%,53.7%,.4)}._1w6Rj{margin-right:12px;flex-shrink:0}._1Z73p{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._3NW1g{fill:#0b6ed0;fill-opacity:0}._1Z73p:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._23XeS{border:none;padding:0;margin:0}._2na1g{padding:0;margin:0 0 14px;color:#01213f}body.keyboard-user ._2tWat:active:focus~._1Z73p,body.keyboard-user ._2tWat:focus~._1Z73p{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"searchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2VAUs{display:inline-block;position:relative}._3GFDc._3GFDc{padding-left:36px;padding-right:36px;width:100%}._3GFDc._3GFDc:disabled+._O-Ukn{fill-opacity:.6}._O-Ukn{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._O-Ukn._2KEdr{z-index:20}._34Spo{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._34Spo:hover{cursor:pointer}._34Spo:hover>._VtSp4{fill:#32363a}._34Spo:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._VtSp4{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_2VAUs","searchInputInput":"_3GFDc","searchInputSearchIcon":"_O-Ukn","usedWithinInputGroup":"_2KEdr","searchInputClearButton":"_34Spo","searchInputClearButtonIcon":"_VtSp4"};
|
|
5
|
+
var stylesheet="._2VAUs{display:inline-block;position:relative}._3GFDc._3GFDc{padding-left:36px;padding-right:36px;width:100%}._3GFDc._3GFDc:disabled+._O-Ukn{fill-opacity:.6}._O-Ukn{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._O-Ukn._2KEdr{z-index:20}._34Spo{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._34Spo:hover{cursor:pointer}._34Spo:hover>._VtSp4{fill:#32363a}._34Spo:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._VtSp4{fill:#515559}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -2,7 +2,7 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
3
|
import React__default, { useRef, useState, useEffect, useCallback, isValidElement } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from './
|
|
5
|
+
import styles from './SelectMenu2.js';
|
|
6
6
|
import '../../utils/index.js';
|
|
7
7
|
import '../../hooks/index.js';
|
|
8
8
|
import './parts/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import BaseMenu from '
|
|
3
|
+
import BaseMenu from './BaseMenu.js';
|
|
4
4
|
|
|
5
5
|
const SelectMenu = /*#__PURE__*/React__default.forwardRef(function SelectMenu(_ref, ref) {
|
|
6
6
|
let {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "._3_BnN._3_BnN{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._3_BnN._3_BnN,._3_BnN._3_BnN ._Whm5p{display:inline-flex;align-items:center}._3_BnN._3_BnN ._Whm5p{overflow:hidden;text-overflow:ellipsis}._3_BnN._3_BnN._1OJuF{min-height:26px;height:26px}._3_BnN._3_BnN._1l2k1{color:#32363a}._3_BnN._3_BnN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._3_BnN._3_BnN:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3_BnN._3_BnN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._3_BnN._3_BnN[aria-disabled=true]>svg{fill:#515559;opacity:.4}._3_BnN._3_BnN._wiAws{padding-left:0}._3_BnN._3_BnN._1tJEE{margin-top:4px}._3_BnN._3_BnN ._2A6cr{fill:#515559}._3_BnN._3_BnN ._2A6cr._1OJuF{top:0}._3_BnN._3_BnN ._2A6cr._1NYGS{transform:rotate(-180deg)}._2U7xq{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._1Vq7q{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000}._1Vq7q::-webkit-scrollbar,._1Vq7q::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._1Vq7q::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._1Vq7q::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb,._1Vq7q[focus-within]::-webkit-scrollbar,._1Vq7q[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._1Vq7q:focus-within::-webkit-scrollbar,._1Vq7q:focus-within::-webkit-scrollbar-thumb,._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb{visibility:visible}._1p7HF{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1p7HF[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1p7HF._laC2N{background-color:#efefef}._1p7HF._1l2k1{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._1p7HF._1l2k1._laC2N{background-color:#e4effa}._1p7HF._iuo1I{cursor:default}._1p7HF:active:not(._2kZ0L):not(._1l2k1):not([aria-disabled=true]):not(._iuo1I){background-color:#e8e9e9}._2kZ0L{padding-right:32px}._2kZ0L ._2A6cr{position:absolute;top:8px;right:3px;fill:#515559}._2ulCK{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._2uJ2R{position:absolute;top:13px;left:13px}._1peIY._1peIY{padding-left:32px}._1QIos{margin:2px 12px 2px 0;flex-shrink:0}._1QIos._3h-jq>svg{border-color:#0b6ed0}._X3MYI{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var styles = {"menuBtn":"_3_BnN","menuBtnLabel":"_Whm5p","small":"_1OJuF","selected":"_1l2k1","unlabelledButton":"_wiAws","formLabelled":"_1tJEE","rightIcon":"_2A6cr","open":"_1NYGS","menuItemContainer":"_2U7xq","contentPane":"_1Vq7q","menuItem":"_1p7HF","focus":"_laC2N","noMenuItems":"_iuo1I","subMenu":"_2kZ0L","searchBox":"_2ulCK","searchBoxIcon":"_2uJ2R","searchBoxInput":"_1peIY","checkbox":"_1QIos","highlighted":"_3h-jq","menuSpinner":"_X3MYI"};
|
|
5
|
+
var stylesheet="._3_BnN._3_BnN{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._3_BnN._3_BnN,._3_BnN._3_BnN ._Whm5p{display:inline-flex;align-items:center}._3_BnN._3_BnN ._Whm5p{overflow:hidden;text-overflow:ellipsis}._3_BnN._3_BnN._1OJuF{min-height:26px;height:26px}._3_BnN._3_BnN._1l2k1{color:#32363a}._3_BnN._3_BnN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._3_BnN._3_BnN:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3_BnN._3_BnN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._3_BnN._3_BnN[aria-disabled=true]>svg{fill:#515559;opacity:.4}._3_BnN._3_BnN._wiAws{padding-left:0}._3_BnN._3_BnN._1tJEE{margin-top:4px}._3_BnN._3_BnN ._2A6cr{fill:#515559}._3_BnN._3_BnN ._2A6cr._1OJuF{top:0}._3_BnN._3_BnN ._2A6cr._1NYGS{transform:rotate(-180deg)}._2U7xq{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._1Vq7q{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000}._1Vq7q::-webkit-scrollbar,._1Vq7q::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._1Vq7q::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._1Vq7q::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb,._1Vq7q[focus-within]::-webkit-scrollbar,._1Vq7q[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._1Vq7q:focus-within::-webkit-scrollbar,._1Vq7q:focus-within::-webkit-scrollbar-thumb,._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb{visibility:visible}._1p7HF{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1p7HF[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1p7HF._laC2N{background-color:#efefef}._1p7HF._1l2k1{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._1p7HF._1l2k1._laC2N{background-color:#e4effa}._1p7HF._iuo1I{cursor:default}._1p7HF:active:not(._2kZ0L):not(._1l2k1):not([aria-disabled=true]):not(._iuo1I){background-color:#e8e9e9}._2kZ0L{padding-right:32px}._2kZ0L ._2A6cr{position:absolute;top:8px;right:3px;fill:#515559}._2ulCK{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._2uJ2R{position:absolute;top:13px;left:13px}._1peIY._1peIY{padding-left:32px}._1QIos{margin:2px 12px 2px 0;flex-shrink:0}._1QIos._3h-jq>svg{border-color:#0b6ed0}._X3MYI{display:flex;justify-self:center;margin:8px}";
|
|
6
|
+
styleInject(css_248z);
|
|
7
|
+
|
|
8
|
+
export { styles as default, stylesheet };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import styles from '../
|
|
4
|
+
import styles from '../SelectMenu2.js';
|
|
5
5
|
import '../../../icons/index.es.js';
|
|
6
6
|
import { useInputGroupContext } from '../../InputGroup/InputGroupProvider.js';
|
|
7
7
|
import { useFormFieldControl } from '../../FormField/FormFieldContext.js';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import styles from '../SelectMenu2.js';
|
|
5
|
+
import '../../../utils/index.js';
|
|
6
|
+
import VisualCheckbox from '../../Checkbox/VisualCheckbox.js';
|
|
7
|
+
import { useMenuContext } from '../../Menu/MenuContext.js';
|
|
8
|
+
import '../../../next/Menu/index.js';
|
|
9
|
+
import { MenuItem as MenuItem$1 } from '../../../next/Menu/MenuItem.js';
|
|
10
|
+
import wrapEvent from '../../../utils/wrapEvent/wrapEvent.js';
|
|
11
|
+
|
|
12
|
+
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
13
|
+
let {
|
|
14
|
+
role,
|
|
15
|
+
tabIndex = -1,
|
|
16
|
+
children,
|
|
17
|
+
className,
|
|
18
|
+
disabled,
|
|
19
|
+
onSelect,
|
|
20
|
+
onKeyDown,
|
|
21
|
+
onClick,
|
|
22
|
+
isSelected = false,
|
|
23
|
+
isHighlighted = false,
|
|
24
|
+
isMultiSelect = false,
|
|
25
|
+
isSelectable = false,
|
|
26
|
+
label,
|
|
27
|
+
...rest
|
|
28
|
+
} = _ref;
|
|
29
|
+
const defaultRole = isSelectable ? isMultiSelect ? 'menuitemcheckbox' : 'menuitemradio' : 'menuitem';
|
|
30
|
+
|
|
31
|
+
const handleSelect = e => {
|
|
32
|
+
if (typeof onSelect === 'function' && !disabled) {
|
|
33
|
+
onSelect(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const {
|
|
38
|
+
isChildOfMenu
|
|
39
|
+
} = useMenuContext();
|
|
40
|
+
return isChildOfMenu ? /*#__PURE__*/React__default.createElement(MenuItem$1, {
|
|
41
|
+
onSelect: onSelect,
|
|
42
|
+
isDisabled: disabled,
|
|
43
|
+
label: label
|
|
44
|
+
}, children) :
|
|
45
|
+
/*#__PURE__*/
|
|
46
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
47
|
+
React__default.createElement("div", _extends({}, rest, {
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
49
|
+
// @ts-ignore: despite `label` not being a valid attribute for `div`, base menu uses this attribute for search within the `filterItems` function
|
|
50
|
+
label: label,
|
|
51
|
+
ref: ref,
|
|
52
|
+
role: role !== null && role !== void 0 ? role : defaultRole,
|
|
53
|
+
tabIndex: tabIndex,
|
|
54
|
+
"aria-disabled": disabled,
|
|
55
|
+
"aria-checked": isSelectable ? isSelected : undefined,
|
|
56
|
+
className: classNames(className, styles.menuItem, {
|
|
57
|
+
[styles.focus]: isHighlighted,
|
|
58
|
+
[styles.selected]: isSelected
|
|
59
|
+
}),
|
|
60
|
+
onKeyDown: wrapEvent(onKeyDown, e => {
|
|
61
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
62
|
+
handleSelect(e);
|
|
63
|
+
e.preventDefault(); // prevent scroll
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
onClick: wrapEvent(onClick, handleSelect)
|
|
67
|
+
}), isMultiSelect && /*#__PURE__*/React__default.createElement(VisualCheckbox, {
|
|
68
|
+
className: classNames(styles.checkbox, {
|
|
69
|
+
[styles.highlighted]: isHighlighted && !isSelected
|
|
70
|
+
}),
|
|
71
|
+
checked: isSelected,
|
|
72
|
+
disabled: disabled
|
|
73
|
+
}), children);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export { MenuItem as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import styles from '../
|
|
3
|
+
import styles from '../SelectMenu2.js';
|
|
4
4
|
import '../../Input/index.js';
|
|
5
5
|
import '../../../icons/index.es.js';
|
|
6
6
|
import '../../../utils/index.js';
|