@qualtrics/ui-react 2.6.0 → 2.7.0
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 +31 -0
- package/dist/__shared/cjs/{index-9ce19e39.js → index-3e06b39f.js} +558 -200
- package/dist/__shared/cjs/{index-0b32024d.js → index-e73f4ed3.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/ArrowNav/ArrowNav.js +0 -0
- package/dist/components/{NewMenu → SelectMenu}/parts/ArrowNav/index.js +0 -0
- package/dist/components/{NewMenu → SelectMenu}/parts/MenuAnchor.js +1 -1
- package/dist/components/{NewMenu → SelectMenu}/parts/MenuContext.js +0 -0
- 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/{NewMenu → SelectMenu}/parts/index.js +0 -0
- 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/dist/utils/Translation/useTranslation.js +6 -4
- 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
|
@@ -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 = "._13uaN{position:relative;display:inline-block}._13uaN._1WVPl{min-height:20px;min-width:20px}._13uaN._Sizs3{min-height:25px;min-width:25px}._13uaN._3rV8v{min-height:40px;min-width:40px}._13uaN._3_mt0{min-height:64px;min-width:64px}._13uaN ._f3RDA{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._13uaN ._f3RDA._3kdXp{visibility:hidden}._13uaN ._f3RDA div{position:absolute;transform:rotate(20deg)}._13uaN ._f3RDA div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_f3RDA .8s linear infinite;animation:_f3RDA .8s linear infinite}._13uaN ._f3RDA 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}._13uaN ._f3RDA div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._13uaN ._f3RDA div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._13uaN ._f3RDA div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._13uaN ._f3RDA div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._13uaN ._f3RDA div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._13uaN ._f3RDA div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._13uaN ._f3RDA div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._13uaN ._f3RDA div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._13uaN ._f3RDA div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._13uaN ._3_mt0 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._13uaN ._1WVPl div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._13uaN ._Sizs3 div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._13uaN ._1yxEf div div:nth-child(-n+9):after{background:#fff}._13uaN ._2G29T{width:100%;height:100%}._13uaN ._2G29T._3WfB-{pointer-events:none}._13uaN ._2G29T._3kdXp{opacity:0}._13uaN ._2G29T._3agrH{opacity:.5}@-webkit-keyframes _f3RDA{0%{opacity:1}to{opacity:0}}@keyframes _f3RDA{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_13uaN","xs":"_1WVPl","small":"_Sizs3","medium":"_3rV8v","large":"_3_mt0","spinnerComponent":"_f3RDA","hide":"_3kdXp","inverted":"_1yxEf","spinnerContent":"_2G29T","disablePointerEvents":"_3WfB-","fade":"_3agrH"};
|
|
5
|
+
var stylesheet="._13uaN{position:relative;display:inline-block}._13uaN._1WVPl{min-height:20px;min-width:20px}._13uaN._Sizs3{min-height:25px;min-width:25px}._13uaN._3rV8v{min-height:40px;min-width:40px}._13uaN._3_mt0{min-height:64px;min-width:64px}._13uaN ._f3RDA{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._13uaN ._f3RDA._3kdXp{visibility:hidden}._13uaN ._f3RDA div{position:absolute;transform:rotate(20deg)}._13uaN ._f3RDA div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_f3RDA .8s linear infinite;animation:_f3RDA .8s linear infinite}._13uaN ._f3RDA 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}._13uaN ._f3RDA div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._13uaN ._f3RDA div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._13uaN ._f3RDA div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._13uaN ._f3RDA div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._13uaN ._f3RDA div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._13uaN ._f3RDA div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._13uaN ._f3RDA div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._13uaN ._f3RDA div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._13uaN ._f3RDA div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._13uaN ._3_mt0 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._13uaN ._1WVPl div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._13uaN ._Sizs3 div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._13uaN ._1yxEf div div:nth-child(-n+9):after{background:#fff}._13uaN ._2G29T{width:100%;height:100%}._13uaN ._2G29T._3WfB-{pointer-events:none}._13uaN ._2G29T._3kdXp{opacity:0}._13uaN ._2G29T._3agrH{opacity:.5}@-webkit-keyframes _f3RDA{0%{opacity:1}to{opacity:0}}@keyframes _f3RDA{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 = "._2Twih{width:100%}._1lRog{display:flex;align-items:center}._1xZlp,._3LFVR{display:grid;flex-grow:1}._1xZlp{grid-gap:4px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}@media (-ms-high-contrast:active),(-ms-high-contrast:none){._1xZlp>*{vertical-align:top;display:inline-block}._1xZlp>*+*{margin-left:4px}}._2z5Ek{position:relative;padding-left:32px;padding-top:16px;display:flex}._3uXeh ._2z5Ek{padding-top:0;padding-left:16px}._3uXeh ._2z5Ek+._2z5Ek{margin-top:16px}._3D1_2{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}._3uXeh ._2z5Ek:first-of-type ._3D1_2{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._3uXeh ._3D1_2{top:-16px;left:0}._3uXeh ._2z5Ek:not(:first-of-type):not(:last-of-type) ._3D1_2{border-bottom-left-radius:0}._2-BHg{margin:0 2px 0 4px}body._1ZJL1 ._2-BHg{outline-width:2px}._1o4PO{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_2Twih","setWrapper":"_1lRog","conditionContainer":"_3LFVR","condition":"_1xZlp","branch":"_2z5Ek","fixedSet":"_3uXeh","connection":"_3D1_2","controls":"_2-BHg","keyboard-user":"_1ZJL1","controlMenuItem":"_1o4PO"};
|
|
5
|
+
var stylesheet="._2Twih{width:100%}._1lRog{display:flex;align-items:center}._1xZlp,._3LFVR{display:grid;flex-grow:1}._1xZlp{grid-gap:4px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}@media (-ms-high-contrast:active),(-ms-high-contrast:none){._1xZlp>*{vertical-align:top;display:inline-block}._1xZlp>*+*{margin-left:4px}}._2z5Ek{position:relative;padding-left:32px;padding-top:16px;display:flex}._3uXeh ._2z5Ek{padding-top:0;padding-left:16px}._3uXeh ._2z5Ek+._2z5Ek{margin-top:16px}._3D1_2{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}._3uXeh ._2z5Ek:first-of-type ._3D1_2{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._3uXeh ._3D1_2{top:-16px;left:0}._3uXeh ._2z5Ek:not(:first-of-type):not(:last-of-type) ._3D1_2{border-bottom-left-radius:0}._2-BHg{margin:0 2px 0 4px}body._1ZJL1 ._2-BHg{outline-width:2px}._1o4PO{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 = "._1eHDH{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._1eHDH,._18IPp{display:flex;overflow:auto}._18IPp{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(._1pOp6)._3LLmL{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._3LLmL{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._1pOp6)._3-rQT{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._3-rQT{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1pOp6)._3-rQT{max-width:700px}}:not(._1pOp6)._36LtK{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._36LtK{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1pOp6)._36LtK{max-width:700px}}@media screen and (min-width:1024px){:not(._1pOp6)._36LtK{max-width:1000px}}:not(._1pOp6)._EW8sg{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._EW8sg{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1pOp6)._EW8sg{max-width:700px}}@media screen and (min-width:1024px){:not(._1pOp6)._EW8sg{max-width:1000px}}@media screen and (min-width:1632px){:not(._1pOp6)._EW8sg{max-width:1600px;max-height:calc(100vh - 32px)}}._1pOp6{min-width:200px;width:calc(100% - 48px)}._1pOp6,._1pOp6._3LLmL{max-height:calc(100vh - 80px)}._1pOp6._3LLmL{max-width:480px;border-radius:8px}._1pOp6._3-rQT{max-width:700px}._1pOp6._36LtK{max-width:1000px}._1pOp6._EW8sg{max-width:1600px;max-height:calc(100vh - 32px)}._18ufV{height:calc(100vh - 80px)}@media screen and (max-width:479px){._18ufV{height:100vh}}@media screen and (min-width:1632px){._18ufV{height:calc(100vh - 32px)}}._22LLy{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}._RwO2D{padding-right:64px}._3FRuR{position:absolute;top:14px;right:14px}._2o6Vo{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._2o6Vo,._3I51m{padding:20px 24px}._3I51m{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._3I51m>*{margin:0 4px}._3I51m>:first-child{margin-left:0}._3I51m>:last-child{margin-right:0}@-webkit-keyframes _Asloe{0%{opacity:0}}@keyframes _Asloe{0%{opacity:0}}._Asloe{-webkit-animation:_Asloe ease-in both;animation:_Asloe ease-in both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1gzGj{to{opacity:0}}@keyframes _1gzGj{to{opacity:0}}._1gzGj{-webkit-animation:_1gzGj ease-out both;animation:_1gzGj ease-out both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _3M8v1{0%{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _3M8v1{0%{transform:scale3d(.7,.7,.7);opacity:0}}._3M8v1{-webkit-animation:_3M8v1 both;animation:_3M8v1 both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1cGTd{to{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _1cGTd{to{transform:scale3d(.7,.7,.7);opacity:0}}._1cGTd{-webkit-animation:_1cGTd both;animation:_1cGTd both;-webkit-animation-duration:.2s;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_1eHDH","modal":"_18IPp","responsive":"_1pOp6","dialogSmall":"_3LLmL","dialogMedium":"_3-rQT","dialogLarge":"_36LtK","dialogExtraLarge":"_EW8sg","growToMaxHeight":"_18ufV","modalHeader":"_22LLy","modalHeaderWithCloseButton":"_RwO2D","modalHeaderCloseButton":"_3FRuR","modalBody":"_2o6Vo","modalFooter":"_3I51m","fadeEnter":"_Asloe","fadeLeave":"_1gzGj","zoomEnter":"_3M8v1","zoomLeave":"_1cGTd"};
|
|
5
|
+
var stylesheet="._1eHDH{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._1eHDH,._18IPp{display:flex;overflow:auto}._18IPp{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(._1pOp6)._3LLmL{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._3LLmL{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._1pOp6)._3-rQT{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._3-rQT{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1pOp6)._3-rQT{max-width:700px}}:not(._1pOp6)._36LtK{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._36LtK{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1pOp6)._36LtK{max-width:700px}}@media screen and (min-width:1024px){:not(._1pOp6)._36LtK{max-width:1000px}}:not(._1pOp6)._EW8sg{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._1pOp6)._EW8sg{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._1pOp6)._EW8sg{max-width:700px}}@media screen and (min-width:1024px){:not(._1pOp6)._EW8sg{max-width:1000px}}@media screen and (min-width:1632px){:not(._1pOp6)._EW8sg{max-width:1600px;max-height:calc(100vh - 32px)}}._1pOp6{min-width:200px;width:calc(100% - 48px)}._1pOp6,._1pOp6._3LLmL{max-height:calc(100vh - 80px)}._1pOp6._3LLmL{max-width:480px;border-radius:8px}._1pOp6._3-rQT{max-width:700px}._1pOp6._36LtK{max-width:1000px}._1pOp6._EW8sg{max-width:1600px;max-height:calc(100vh - 32px)}._18ufV{height:calc(100vh - 80px)}@media screen and (max-width:479px){._18ufV{height:100vh}}@media screen and (min-width:1632px){._18ufV{height:calc(100vh - 32px)}}._22LLy{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}._RwO2D{padding-right:64px}._3FRuR{position:absolute;top:14px;right:14px}._2o6Vo{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._2o6Vo,._3I51m{padding:20px 24px}._3I51m{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._3I51m>*{margin:0 4px}._3I51m>:first-child{margin-left:0}._3I51m>:last-child{margin-right:0}@-webkit-keyframes _Asloe{0%{opacity:0}}@keyframes _Asloe{0%{opacity:0}}._Asloe{-webkit-animation:_Asloe ease-in both;animation:_Asloe ease-in both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1gzGj{to{opacity:0}}@keyframes _1gzGj{to{opacity:0}}._1gzGj{-webkit-animation:_1gzGj ease-out both;animation:_1gzGj ease-out both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _3M8v1{0%{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _3M8v1{0%{transform:scale3d(.7,.7,.7);opacity:0}}._3M8v1{-webkit-animation:_3M8v1 both;animation:_3M8v1 both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1cGTd{to{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _1cGTd{to{transform:scale3d(.7,.7,.7);opacity:0}}._1cGTd{-webkit-animation:_1cGTd both;animation:_1cGTd 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 = "._OiZJ7{display:inline-flex;width:127px}._1i0zm{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}._1i0zm:hover:not(._27XLV){cursor:pointer;background:#f5f5f5}._1i0zm._3tgQ7{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._1i0zm._27XLV{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1i0zm._27XLV>svg{opacity:.4}._1i0zm::-webkit-inner-spin-button,._1i0zm::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._1i0zm:focus{z-index:0;border:none;border-radius:4px}._1i0zm:focus:not(._3tgQ7){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1i0zm:focus:not(._27XLV),._1tAZM{background:#fafafa}._1tAZM{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}._1tAZM:hover:not(._27XLV){cursor:pointer;background:#f5f5f5}._1tAZM:active:not(._27XLV){background:#e5e5e5}._1tAZM._27XLV{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1tAZM._27XLV>svg{opacity:.4}._1aQ7D{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}._1aQ7D:hover:not(._27XLV){cursor:pointer;background:#f5f5f5}._1aQ7D:active:not(._27XLV){background:#e5e5e5}._1aQ7D._27XLV{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1aQ7D._27XLV>svg{opacity:.4}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_OiZJ7","numberStepperInput":"_1i0zm","disabled":"_27XLV","invalid":"_3tgQ7","decrementBtn":"_1tAZM","incrementBtn":"_1aQ7D"};
|
|
5
|
+
var stylesheet="._OiZJ7{display:inline-flex;width:127px}._1i0zm{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}._1i0zm:hover:not(._27XLV){cursor:pointer;background:#f5f5f5}._1i0zm._3tgQ7{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._1i0zm._27XLV{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1i0zm._27XLV>svg{opacity:.4}._1i0zm::-webkit-inner-spin-button,._1i0zm::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._1i0zm:focus{z-index:0;border:none;border-radius:4px}._1i0zm:focus:not(._3tgQ7){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1i0zm:focus:not(._27XLV),._1tAZM{background:#fafafa}._1tAZM{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}._1tAZM:hover:not(._27XLV){cursor:pointer;background:#f5f5f5}._1tAZM:active:not(._27XLV){background:#e5e5e5}._1tAZM._27XLV{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1tAZM._27XLV>svg{opacity:.4}._1aQ7D{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}._1aQ7D:hover:not(._27XLV){cursor:pointer;background:#f5f5f5}._1aQ7D:active:not(._27XLV){background:#e5e5e5}._1aQ7D._27XLV{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1aQ7D._27XLV>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 = "._1HBvw{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\"}._21Xv5{grid-area:pageHeader}._2ah7O{grid-area:mainContent;height:100%;overflow:auto}";
|
|
4
|
+
var styles = {"pageContainer":"_1HBvw","pageHeader":"_21Xv5","mainContent":"_2ah7O"};
|
|
5
|
+
var stylesheet="._1HBvw{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\"}._21Xv5{grid-area:pageHeader}._2ah7O{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 = "._3R3Rn{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._1LvfQ{margin-right:8px}._pAk6b{margin-left:8px}._KN4fB{margin:-10px -15px}._1-_Xn{width:100%;text-align:center}";
|
|
4
|
+
var styles = {"pagination":"_3R3Rn","previousButton":"_1LvfQ","nextButton":"_pAk6b","btnIcon":"_KN4fB","input":"_1-_Xn"};
|
|
5
|
+
var stylesheet="._3R3Rn{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._1LvfQ{margin-right:8px}._pAk6b{margin-left:8px}._KN4fB{margin:-10px -15px}._1-_Xn{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 = "._2niVR{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}._2niVR:focus{outline:none}._1132e,._1132e>div{position:absolute;width:8px;height:8px;background:inherit}._1132e{visibility:hidden;z-index:1000}._1132e>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._1132e{bottom:-4px}[data-popper-placement^=top]>._1132e>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._1132e{left:-5px}[data-popper-placement^=right]>._1132e>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._1132e{top:-5px}[data-popper-placement^=bottom]>._1132e>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._1132e{right:-4px}[data-popper-placement^=left]>._1132e>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_2niVR","arrow":"_1132e"};
|
|
5
|
+
var stylesheet="._2niVR{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}._2niVR:focus{outline:none}._1132e,._1132e>div{position:absolute;width:8px;height:8px;background:inherit}._1132e{visibility:hidden;z-index:1000}._1132e>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._1132e{bottom:-4px}[data-popper-placement^=top]>._1132e>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._1132e{left:-5px}[data-popper-placement^=right]>._1132e>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._1132e{top:-5px}[data-popper-placement^=bottom]>._1132e>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._1132e{right:-4px}[data-popper-placement^=left]>._1132e>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 = "._1bBtA{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_1bBtA"};
|
|
5
|
+
var stylesheet="._1bBtA{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 = "._1chZ4{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._1chZ4,._3VY9y{cursor:pointer;height:16px;width:16px}._3VY9y{position:absolute;opacity:0;z-index:10}._3VY9y:checked~._3aoqS>._2hcbG{fill-opacity:1}._3VY9y:checked:enabled~._3aoqS{border-color:transparent;background-color:#0b6ed0}._3VY9y:checked:enabled~._3aoqS>._2hcbG{fill:#fff}._3VY9y:checked:enabled:hover~._3aoqS{background-color:#085caf}._3VY9y:not(:checked):enabled:hover~._3aoqS{border-color:#0b6ed0}._3VY9y:disabled{cursor:not-allowed}._3VY9y:disabled~._3aoqS{opacity:.4}._3VY9y:checked~._3aoqS:after{content:\"\"}._eaGt8{color:#32363a;display:flex;align-items:center;cursor:pointer}._2Mdnh{cursor:auto;color:hsla(0,0%,53.7%,.4)}._32l_b{margin-right:12px;flex-shrink:0}._3aoqS{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}._2hcbG{fill:#0b6ed0;fill-opacity:0}._3aoqS:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._1VQ61{border:none;padding:0;margin:0}._HxdiQ{padding:0;margin:0 0 14px;color:#01213f}body.keyboard-user ._3VY9y:active:focus~._3aoqS,body.keyboard-user ._3VY9y:focus~._3aoqS{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_1chZ4","input":"_3VY9y","check":"_3aoqS","checkIcon":"_2hcbG","label":"_eaGt8","labelDisabled":"_2Mdnh","wrappedInput":"_32l_b","radioGroup":"_1VQ61","legend":"_HxdiQ"};
|
|
5
|
+
var stylesheet="._1chZ4{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._1chZ4,._3VY9y{cursor:pointer;height:16px;width:16px}._3VY9y{position:absolute;opacity:0;z-index:10}._3VY9y:checked~._3aoqS>._2hcbG{fill-opacity:1}._3VY9y:checked:enabled~._3aoqS{border-color:transparent;background-color:#0b6ed0}._3VY9y:checked:enabled~._3aoqS>._2hcbG{fill:#fff}._3VY9y:checked:enabled:hover~._3aoqS{background-color:#085caf}._3VY9y:not(:checked):enabled:hover~._3aoqS{border-color:#0b6ed0}._3VY9y:disabled{cursor:not-allowed}._3VY9y:disabled~._3aoqS{opacity:.4}._3VY9y:checked~._3aoqS:after{content:\"\"}._eaGt8{color:#32363a;display:flex;align-items:center;cursor:pointer}._2Mdnh{cursor:auto;color:hsla(0,0%,53.7%,.4)}._32l_b{margin-right:12px;flex-shrink:0}._3aoqS{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}._2hcbG{fill:#0b6ed0;fill-opacity:0}._3aoqS:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._1VQ61{border:none;padding:0;margin:0}._HxdiQ{padding:0;margin:0 0 14px;color:#01213f}body.keyboard-user ._3VY9y:active:focus~._3aoqS,body.keyboard-user ._3VY9y:focus~._3aoqS{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 = "._3SVrc{display:inline-block;position:relative}._juT86._juT86{padding-left:36px;padding-right:36px;width:100%}._juT86._juT86:disabled+._1QlWH{fill-opacity:.6}._1QlWH{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._1QlWH._2aseG{z-index:20}._3uytH{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._3uytH:hover{cursor:pointer}._3uytH:hover>._1ksa8{fill:#32363a}._3uytH:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1ksa8{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_3SVrc","searchInputInput":"_juT86","searchInputSearchIcon":"_1QlWH","usedWithinInputGroup":"_2aseG","searchInputClearButton":"_3uytH","searchInputClearButtonIcon":"_1ksa8"};
|
|
5
|
+
var stylesheet="._3SVrc{display:inline-block;position:relative}._juT86._juT86{padding-left:36px;padding-right:36px;width:100%}._juT86._juT86:disabled+._1QlWH{fill-opacity:.6}._1QlWH{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._1QlWH._2aseG{z-index:20}._3uytH{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._3uytH:hover{cursor:pointer}._3uytH:hover>._1ksa8{fill:#32363a}._3uytH:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1ksa8{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 = "._39edJ._39edJ{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}._39edJ._39edJ,._39edJ._39edJ ._1WS2f{display:inline-flex;align-items:center}._39edJ._39edJ ._1WS2f{overflow:hidden;text-overflow:ellipsis}._39edJ._39edJ._3oMJ5{min-height:26px;height:26px}._39edJ._39edJ._1_Pby{color:#32363a}._39edJ._39edJ:hover:not([aria-disabled=true]){background-color:#f5f5f5}._39edJ._39edJ:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._39edJ._39edJ[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._39edJ._39edJ[aria-disabled=true]>svg{fill:#515559;opacity:.4}._39edJ._39edJ._AyyKW{padding-left:0}._39edJ._39edJ._25Omd{margin-top:4px}._39edJ._39edJ ._97UN8{fill:#515559}._39edJ._39edJ ._97UN8._3oMJ5{top:0}._39edJ._39edJ ._97UN8._24O_n{transform:rotate(-180deg)}._2eH2l{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._31l-s{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}._31l-s::-webkit-scrollbar,._31l-s::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._31l-s::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._31l-s::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._31l-s:hover::-webkit-scrollbar,._31l-s:hover::-webkit-scrollbar-thumb,._31l-s[focus-within]::-webkit-scrollbar,._31l-s[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._31l-s:focus-within::-webkit-scrollbar,._31l-s:focus-within::-webkit-scrollbar-thumb,._31l-s:hover::-webkit-scrollbar,._31l-s:hover::-webkit-scrollbar-thumb{visibility:visible}._1yHdJ{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1yHdJ[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1yHdJ._3d1Bw{background-color:#efefef}._1yHdJ._1_Pby{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._1yHdJ._1_Pby._3d1Bw{background-color:#e4effa}._1yHdJ._2siYE{cursor:default}._1yHdJ:active:not(._-gwxW):not(._1_Pby):not([aria-disabled=true]):not(._2siYE){background-color:#e8e9e9}._-gwxW{padding-right:32px}._-gwxW ._97UN8{position:absolute;top:8px;right:3px;fill:#515559}._1Xmin{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._3vHA8{position:absolute;top:13px;left:13px}._3CHDx._3CHDx{padding-left:32px}._1-HfW{margin:2px 12px 2px 0;flex-shrink:0}._1-HfW._qtZhJ>svg{border-color:#0b6ed0}._3lWdm{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var styles = {"menuBtn":"_39edJ","menuBtnLabel":"_1WS2f","small":"_3oMJ5","selected":"_1_Pby","unlabelledButton":"_AyyKW","formLabelled":"_25Omd","rightIcon":"_97UN8","open":"_24O_n","menuItemContainer":"_2eH2l","contentPane":"_31l-s","menuItem":"_1yHdJ","focus":"_3d1Bw","noMenuItems":"_2siYE","subMenu":"_-gwxW","searchBox":"_1Xmin","searchBoxIcon":"_3vHA8","searchBoxInput":"_3CHDx","checkbox":"_1-HfW","highlighted":"_qtZhJ","menuSpinner":"_3lWdm"};
|
|
5
|
+
var stylesheet="._39edJ._39edJ{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}._39edJ._39edJ,._39edJ._39edJ ._1WS2f{display:inline-flex;align-items:center}._39edJ._39edJ ._1WS2f{overflow:hidden;text-overflow:ellipsis}._39edJ._39edJ._3oMJ5{min-height:26px;height:26px}._39edJ._39edJ._1_Pby{color:#32363a}._39edJ._39edJ:hover:not([aria-disabled=true]){background-color:#f5f5f5}._39edJ._39edJ:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._39edJ._39edJ[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._39edJ._39edJ[aria-disabled=true]>svg{fill:#515559;opacity:.4}._39edJ._39edJ._AyyKW{padding-left:0}._39edJ._39edJ._25Omd{margin-top:4px}._39edJ._39edJ ._97UN8{fill:#515559}._39edJ._39edJ ._97UN8._3oMJ5{top:0}._39edJ._39edJ ._97UN8._24O_n{transform:rotate(-180deg)}._2eH2l{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._31l-s{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}._31l-s::-webkit-scrollbar,._31l-s::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._31l-s::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._31l-s::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._31l-s:hover::-webkit-scrollbar,._31l-s:hover::-webkit-scrollbar-thumb,._31l-s[focus-within]::-webkit-scrollbar,._31l-s[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._31l-s:focus-within::-webkit-scrollbar,._31l-s:focus-within::-webkit-scrollbar-thumb,._31l-s:hover::-webkit-scrollbar,._31l-s:hover::-webkit-scrollbar-thumb{visibility:visible}._1yHdJ{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1yHdJ[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1yHdJ._3d1Bw{background-color:#efefef}._1yHdJ._1_Pby{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._1yHdJ._1_Pby._3d1Bw{background-color:#e4effa}._1yHdJ._2siYE{cursor:default}._1yHdJ:active:not(._-gwxW):not(._1_Pby):not([aria-disabled=true]):not(._2siYE){background-color:#e8e9e9}._-gwxW{padding-right:32px}._-gwxW ._97UN8{position:absolute;top:8px;right:3px;fill:#515559}._1Xmin{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._3vHA8{position:absolute;top:13px;left:13px}._3CHDx._3CHDx{padding-left:32px}._1-HfW{margin:2px 12px 2px 0;flex-shrink:0}._1-HfW._qtZhJ>svg{border-color:#0b6ed0}._3lWdm{display:flex;justify-self:center;margin:8px}";
|
|
6
|
+
styleInject(css_248z);
|
|
7
|
+
|
|
8
|
+
export { styles as default, stylesheet };
|
|
File without changes
|
|
File without changes
|
|
@@ -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';
|
|
File without changes
|
|
@@ -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';
|