@qualtrics/ui-react 2.19.1 → 2.21.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 +21 -20
- package/dist/__shared/cjs/{index-4a5425cc.js → index-0ae99de2.js} +3 -3
- package/dist/__shared/cjs/{index-384184bd.js → index-201e8786.js} +193 -263
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -2
- package/dist/components/Button/Button.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/Alpha.js +0 -7
- package/dist/components/ColorPicker/ColorPicker.js +5 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/Hue.js +0 -7
- package/dist/components/ColorPicker/Palette.js +6 -4
- package/dist/components/ColorPicker/Saturation.js +0 -9
- package/dist/components/Combobox/Combobox.js +8 -6
- 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/Dropdown.js +0 -5
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +2 -5
- package/dist/components/Dropdown/DropdownSearch.js +2 -5
- package/dist/components/FilePicker/FilePicker.js +0 -7
- 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/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +9 -8
- 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/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- 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/Tooltip.js +7 -5
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- 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/deprecated_Toolbar/ToolbarPanels.js +0 -27
- package/dist/hooks/useEventListener/useEventListener.js +3 -0
- package/dist/hooks/useOverlay/useOverlay.js +5 -2
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- 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.d.ts +5 -3
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +33 -45
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -2
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.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 +6 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +13 -6
- package/dist/next/Menu/MenuItem.js +10 -4
- package/dist/next/Menu/MenuPane.js +55 -37
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +54 -41
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +97 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +6 -4
- package/dist/next/index.js +387 -290
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/index.js +0 -1
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +3 -3
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -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 = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JQyp6{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._JQyp6:hover:not(._RDp-5){background-color:rgba(50,54,58,.08)}._JQyp6:hover:not(._RDp-5)._vwpWZ{border-color:#085caf;background-color:rgba(11,110,208,.04)}._JQyp6:hover:not(._RDp-5)._vwpWZ ._k3uWK{color:#32363a}._JQyp6:hover:not(._RDp-5)._vwpWZ ._kYSUg{fill:#32363a}._JQyp6:hover:not(._RDp-5)._vwpWZ ._oobN4{fill:#085caf}._JQyp6:hover:not(._RDp-5)._vwpWZ ._2f-as{background-color:rgba(11,110,208,.11)}._JQyp6:hover:not(._RDp-5)._vwpWZ ._2f-as ._tYXas{color:#085caf}._JQyp6:active:not(._RDp-5){background-color:#e8e9e9}._JQyp6:active:not(._RDp-5)._vwpWZ{background-color:rgba(11,110,208,.11);border-color:#0854a1}._JQyp6:active:not(._RDp-5)._vwpWZ ._oobN4{fill:#0854a1}._JQyp6:active:not(._RDp-5)._vwpWZ ._2f-as{background-color:rgba(11,110,208,.11)}._JQyp6:active:not(._RDp-5)._vwpWZ ._2f-as ._tYXas{color:#0854a1}._JQyp6._RDp-5{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._JQyp6._vwpWZ{border-color:#0b6ed0}._kYSUg{fill:#515559;margin-right:4px}._k3uWK{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._k3uWK+._2f-as{margin-left:6px}._k3uWK._RDp-5{color:#74777a}._2f-as{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._tYXas{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._oobN4{fill:#515559}._oobN4._RDp-5,._oobN4._RDp-5._vwpWZ{fill:rgba(116,119,122,.4)}._oobN4._vwpWZ{fill:#0b6ed0}._oobN4._NAibk{transform:rotate(-180deg)}._JQyp6.focus-visible,._JQyp6:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_JQyp6","disabled":"_RDp-5","selected":"_vwpWZ","label":"_k3uWK","lockIcon":"_kYSUg","chevronIcon":"_oobN4","selectedFiltersContainer":"_2f-as","selectedFilters":"_tYXas","open":"_NAibk"};
|
|
5
|
+
var stylesheet="._JQyp6{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._JQyp6:hover:not(._RDp-5){background-color:rgba(50,54,58,.08)}._JQyp6:hover:not(._RDp-5)._vwpWZ{border-color:#085caf;background-color:rgba(11,110,208,.04)}._JQyp6:hover:not(._RDp-5)._vwpWZ ._k3uWK{color:#32363a}._JQyp6:hover:not(._RDp-5)._vwpWZ ._kYSUg{fill:#32363a}._JQyp6:hover:not(._RDp-5)._vwpWZ ._oobN4{fill:#085caf}._JQyp6:hover:not(._RDp-5)._vwpWZ ._2f-as{background-color:rgba(11,110,208,.11)}._JQyp6:hover:not(._RDp-5)._vwpWZ ._2f-as ._tYXas{color:#085caf}._JQyp6:active:not(._RDp-5){background-color:#e8e9e9}._JQyp6:active:not(._RDp-5)._vwpWZ{background-color:rgba(11,110,208,.11);border-color:#0854a1}._JQyp6:active:not(._RDp-5)._vwpWZ ._oobN4{fill:#0854a1}._JQyp6:active:not(._RDp-5)._vwpWZ ._2f-as{background-color:rgba(11,110,208,.11)}._JQyp6:active:not(._RDp-5)._vwpWZ ._2f-as ._tYXas{color:#0854a1}._JQyp6._RDp-5{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._JQyp6._vwpWZ{border-color:#0b6ed0}._kYSUg{fill:#515559;margin-right:4px}._k3uWK{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._k3uWK+._2f-as{margin-left:6px}._k3uWK._RDp-5{color:#74777a}._2f-as{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._tYXas{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._oobN4{fill:#515559}._oobN4._RDp-5,._oobN4._RDp-5._vwpWZ{fill:rgba(116,119,122,.4)}._oobN4._vwpWZ{fill:#0b6ed0}._oobN4._NAibk{transform:rotate(-180deg)}._JQyp6.focus-visible,._JQyp6:focus-visible{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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._q0s77{position:relative;display:inline-block;height:36px}._NncE1{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._NncE1:hover{cursor:pointer;background-color:#f5f5f5}._NncE1:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._NncE1:disabled,._NncE1[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._NncE1:disabled::-moz-placeholder,._NncE1[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._NncE1:disabled::placeholder,._NncE1[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._NncE1:invalid,._NncE1[aria-invalid=true]{border-color:#b00}._NncE1:invalid:focus,._NncE1[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._NncE1[type=number]{-moz-appearance:textfield}._NncE1[type=number]::-webkit-inner-spin-button,._NncE1[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._NncE1::-moz-placeholder{color:#515559;opacity:1}._NncE1::placeholder{color:#515559;opacity:1}._EdTFG{pointer-events:none;color:#515559;fill:#515559}._z6jMw{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._dH-JZ{color:#515559;font-size:16px}._mHk6j{left:0;margin-left:6px}._2qzZo,._mHk6j{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._2qzZo{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_q0s77","input":"_NncE1","addOn":"_EdTFG","addOnVerticalCenter":"_z6jMw","addOnTextNode":"_dH-JZ","leftAddOn":"_mHk6j","rightAddOn":"_2qzZo"};
|
|
5
|
+
var stylesheet="._q0s77{position:relative;display:inline-block;height:36px}._NncE1{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._NncE1:hover{cursor:pointer;background-color:#f5f5f5}._NncE1:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._NncE1:disabled,._NncE1[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._NncE1:disabled::-moz-placeholder,._NncE1[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._NncE1:disabled::placeholder,._NncE1[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._NncE1:invalid,._NncE1[aria-invalid=true]{border-color:#b00}._NncE1:invalid:focus,._NncE1[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._NncE1[type=number]{-moz-appearance:textfield}._NncE1[type=number]::-webkit-inner-spin-button,._NncE1[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._NncE1::-moz-placeholder{color:#515559;opacity:1}._NncE1::placeholder{color:#515559;opacity:1}._EdTFG{pointer-events:none;color:#515559;fill:#515559}._z6jMw{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._dH-JZ{color:#515559;font-size:16px}._mHk6j{left:0;margin-left:6px}._2qzZo,._mHk6j{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._2qzZo{right:0;margin-right:6px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
package/dist/next/Menu/Menu.js
CHANGED
|
@@ -33,6 +33,7 @@ const Menu = _ref => {
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
const openPaneDepth = useMemo(() => open ? submenus.size + 1 : 0, [submenus, open]);
|
|
36
|
+
const [searchBarConfigs, setSearchBarConfigs] = useState([]);
|
|
36
37
|
return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
37
38
|
value: {
|
|
38
39
|
dataTestId,
|
|
@@ -42,11 +43,14 @@ const Menu = _ref => {
|
|
|
42
43
|
maskHeight,
|
|
43
44
|
setMaskHeight,
|
|
44
45
|
open,
|
|
45
|
-
triggerRef
|
|
46
|
+
triggerRef,
|
|
47
|
+
searchBarConfigs,
|
|
48
|
+
setSearchBarConfigs
|
|
46
49
|
}
|
|
47
50
|
}, /*#__PURE__*/React__default.createElement(Root, {
|
|
48
51
|
open: open,
|
|
49
|
-
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen)
|
|
52
|
+
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen),
|
|
53
|
+
modal: false
|
|
50
54
|
}, children));
|
|
51
55
|
};
|
|
52
56
|
|
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -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 = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._pkAUS{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._pkAUS>._5UFlu{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._pkAUS>._5UFlu:hover:not([aria-disabled=true]){background-color:#f5f5f5}._pkAUS>._5UFlu.focus-visible,._pkAUS>._5UFlu:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._pkAUS>._5UFlu+._4UUre{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._pkAUS>._5UFlu[data-state=open]+._4UUre{transform:rotate(-180deg) translateY(50%)}._pkAUS>._5UFlu[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._pkAUS>._5UFlu[aria-disabled=true]+._4UUre{fill:#515559;opacity:.4}._f5BWI>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:1!important}._f5BWI>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._90IdX{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._90IdX._G3bwe{margin-left:30px;opacity:0}._90IdX._aEjkI{margin-left:-30px}._3juCB{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._3juCB._ecSts{cursor:unset}._3juCB ._HjO31{fill:#32363a;margin-right:4px}._3juCB:focus,._3juCB:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._3juCB[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3juCB._zd1Fh{padding-right:32px}._3juCB._zd1Fh ._4UUre{position:absolute;height:100%;right:3px;fill:#515559}._3juCB._3cWmO{pointer-events:none}._wGUhl{position:sticky;top:0;background-color:#fff;z-index:1;border-bottom:1px solid #e8e8e8}._wGUhl._v1Svy{padding-top:49px}._Vx0A5{z-index:1;pointer-events:none;position:fixed;left:0;top:0}._kzTH1{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._kzTH1._aEjkI{opacity:0}._kzTH1._aEjkI>._T91Gm{margin-left:-30px}._kzTH1._G3bwe{opacity:0}._kzTH1._G3bwe>._T91Gm{margin-left:30px}._kzTH1>._T91Gm{transition:margin-left .35s;width:100%}._kzTH1._3cWmO{pointer-events:none}body.keyboard-user ._3juCB:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_pkAUS","button":"_5UFlu","rightIcon":"_4UUre","maskContainer":"_f5BWI","flyout":"_90IdX","animatedRight":"_G3bwe","animatedLeft":"_aEjkI","menuItem":"_3juCB","noItems":"_ecSts","backIcon":"_HjO31","subMenu":"_zd1Fh","unresponsive":"_3cWmO","stickyBox":"_wGUhl","isSearchable":"_v1Svy","searchBoxesContainer":"_Vx0A5","searchBox":"_kzTH1","searchInput":"_T91Gm"};
|
|
5
|
+
var stylesheet="._pkAUS{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._pkAUS>._5UFlu{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._pkAUS>._5UFlu:hover:not([aria-disabled=true]){background-color:#f5f5f5}._pkAUS>._5UFlu.focus-visible,._pkAUS>._5UFlu:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._pkAUS>._5UFlu+._4UUre{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._pkAUS>._5UFlu[data-state=open]+._4UUre{transform:rotate(-180deg) translateY(50%)}._pkAUS>._5UFlu[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._pkAUS>._5UFlu[aria-disabled=true]+._4UUre{fill:#515559;opacity:.4}._f5BWI>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:1!important}._f5BWI>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._90IdX{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._90IdX._G3bwe{margin-left:30px;opacity:0}._90IdX._aEjkI{margin-left:-30px}._3juCB{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._3juCB._ecSts{cursor:unset}._3juCB ._HjO31{fill:#32363a;margin-right:4px}._3juCB:focus,._3juCB:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._3juCB[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3juCB._zd1Fh{padding-right:32px}._3juCB._zd1Fh ._4UUre{position:absolute;height:100%;right:3px;fill:#515559}._3juCB._3cWmO{pointer-events:none}._wGUhl{position:sticky;top:0;background-color:#fff;z-index:1;border-bottom:1px solid #e8e8e8}._wGUhl._v1Svy{padding-top:49px}._Vx0A5{z-index:1;pointer-events:none;position:fixed;left:0;top:0}._kzTH1{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._kzTH1._aEjkI{opacity:0}._kzTH1._aEjkI>._T91Gm{margin-left:-30px}._kzTH1._G3bwe{opacity:0}._kzTH1._G3bwe>._T91Gm{margin-left:30px}._kzTH1>._T91Gm{transition:margin-left .35s;width:100%}._kzTH1._3cWmO{pointer-events:none}body.keyboard-user ._3juCB:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -11,22 +11,29 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
|
11
11
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
12
12
|
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const AsChildWrapper = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
asChild,
|
|
17
|
+
children
|
|
18
|
+
} = _ref;
|
|
19
|
+
return asChild ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement("div", {
|
|
20
|
+
className: styles.buttonContainer
|
|
21
|
+
}, children);
|
|
22
|
+
};
|
|
23
|
+
const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
15
24
|
let {
|
|
16
25
|
asChild,
|
|
17
26
|
children,
|
|
18
27
|
className,
|
|
19
28
|
...rest
|
|
20
|
-
} =
|
|
29
|
+
} = _ref2;
|
|
21
30
|
const {
|
|
22
31
|
dataTestId: rootDataTestId,
|
|
23
32
|
isDisabled,
|
|
24
33
|
triggerRef
|
|
25
34
|
} = useMenuContext();
|
|
26
|
-
return /*#__PURE__*/React__default.createElement(
|
|
27
|
-
|
|
28
|
-
[styles.buttonContainer]: !asChild
|
|
29
|
-
})
|
|
35
|
+
return /*#__PURE__*/React__default.createElement(AsChildWrapper, {
|
|
36
|
+
asChild: asChild
|
|
30
37
|
}, /*#__PURE__*/React__default.createElement(Trigger, _extends({}, rest, {
|
|
31
38
|
"aria-disabled": isDisabled,
|
|
32
39
|
className: classNames(className, {
|
|
@@ -3,12 +3,12 @@ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/ins
|
|
|
3
3
|
import React__default, { useRef, useMemo } from 'react';
|
|
4
4
|
import { Item } from '@radix-ui/react-dropdown-menu';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
+
import { useFocusVisible } from '@react-aria/interactions';
|
|
6
7
|
import styles from './Menu2.js';
|
|
7
8
|
import { usePaneContext } from './MenuContext.js';
|
|
8
9
|
import '../../utils/index.js';
|
|
9
10
|
import { DATA_TESTID_SUFFIXES, KEYS } from './constants.js';
|
|
10
11
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
11
|
-
import { getIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
12
12
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
13
13
|
|
|
14
14
|
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
@@ -29,16 +29,22 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
29
29
|
isSearchFilteringDisabled,
|
|
30
30
|
isInteractive,
|
|
31
31
|
closeSubmenu,
|
|
32
|
-
flyoutRef
|
|
32
|
+
flyoutRef,
|
|
33
|
+
stickyBoxRef
|
|
33
34
|
} = usePaneContext(itemRef);
|
|
35
|
+
const {
|
|
36
|
+
isFocusVisible
|
|
37
|
+
} = useFocusVisible({
|
|
38
|
+
isTextInput: true
|
|
39
|
+
});
|
|
34
40
|
const dataTestId = getSubDataTestId(menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index));
|
|
35
41
|
const isVisible = useMemo(() => {
|
|
36
42
|
const searchMatcher = label ?? (typeof children === 'string' ? children : undefined);
|
|
37
43
|
return isSearchFilteringDisabled || !searchValue || searchMatcher?.toLowerCase().includes(searchValue.toLowerCase());
|
|
38
44
|
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
39
45
|
const handleFocus = () => {
|
|
40
|
-
if (itemRef.current && flyoutRef.current &&
|
|
41
|
-
const stickyBoxHeight =
|
|
46
|
+
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
47
|
+
const stickyBoxHeight = stickyBoxRef.current?.clientHeight ?? 0;
|
|
42
48
|
|
|
43
49
|
// if the top of the focused menu item is beneath the sticky box
|
|
44
50
|
if (itemRef.current.offsetTop < flyoutRef.current.scrollTop + stickyBoxHeight) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
2
|
import React__default, { useState, useRef, useMemo } from 'react';
|
|
4
3
|
import { Portal, Content } from '@radix-ui/react-dropdown-menu';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -7,14 +6,15 @@ import styles from './Menu2.js';
|
|
|
7
6
|
import { usePortalTarget } from '../../components/UIProvider/PortalTargetContext.js';
|
|
8
7
|
import { useMenuContext, PaneContextProvider } from './MenuContext.js';
|
|
9
8
|
import '../../utils/index.js';
|
|
10
|
-
import { DATA_TESTID_SUFFIXES
|
|
9
|
+
import { DATA_TESTID_SUFFIXES } from './constants.js';
|
|
11
10
|
import MenuSearch from './MenuSearch.js';
|
|
12
11
|
import usePaneSearch from './usePaneSearch.js';
|
|
13
12
|
import '../../hooks/index.js';
|
|
14
|
-
import
|
|
13
|
+
import useMutationObserver from './useMutationObserver.js';
|
|
14
|
+
import useOverlay from '../../hooks/useOverlay/useOverlay.js';
|
|
15
15
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
16
|
+
import useId from '../../hooks/useId/useId.js';
|
|
17
|
+
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
18
18
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
19
19
|
|
|
20
20
|
const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
@@ -31,12 +31,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
31
31
|
} = _ref;
|
|
32
32
|
const [items, setItems] = useState([]);
|
|
33
33
|
const flyoutRef = useRef(null);
|
|
34
|
-
const
|
|
35
|
-
internalSearchValue,
|
|
36
|
-
setSearchValue,
|
|
37
|
-
zeroSearchResults,
|
|
38
|
-
noMatchesText
|
|
39
|
-
} = usePaneSearch(externalSearchValue, onSearchValueChange, items);
|
|
34
|
+
const stickyBoxRef = useRef(null);
|
|
40
35
|
const portalTarget = usePortalTarget();
|
|
41
36
|
const [side, align] = useMemo(() => placement?.split?.('-') ?? [], [placement]);
|
|
42
37
|
const {
|
|
@@ -45,14 +40,29 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
45
40
|
setMaskHeight,
|
|
46
41
|
maskHeight,
|
|
47
42
|
open,
|
|
48
|
-
triggerRef
|
|
43
|
+
triggerRef,
|
|
44
|
+
searchBarConfigs
|
|
49
45
|
} = useMenuContext();
|
|
46
|
+
const thisPanesDepth = 1;
|
|
47
|
+
const maskContainerId = 'maskContainer';
|
|
48
|
+
useOverlay({
|
|
49
|
+
isVisible: open,
|
|
50
|
+
ignoreIds: [maskContainerId],
|
|
51
|
+
opacity: 0
|
|
52
|
+
});
|
|
53
|
+
const animatedLeft = useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
54
|
+
const dataTestId = getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
55
|
+
const {
|
|
56
|
+
internalSearchValue,
|
|
57
|
+
noSearchResultsNode,
|
|
58
|
+
onInteractOutside
|
|
59
|
+
} = usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, false, dataTestId, useId(), flyoutRef);
|
|
50
60
|
|
|
51
61
|
// In order to preseve the css animation for vertical resizing, we cannot set the height of this pane to `auto`. It must be a pixel value.
|
|
52
62
|
// We cache the pixel value here, to use it later if the user returns to this pane from a submenu.
|
|
53
63
|
const initialHeightOfThisPane = useRef(null);
|
|
54
64
|
useDidUpdate(() => {
|
|
55
|
-
if (openPaneDepth ===
|
|
65
|
+
if (openPaneDepth === thisPanesDepth) {
|
|
56
66
|
if (initialHeightOfThisPane.current === null) {
|
|
57
67
|
window.requestAnimationFrame(() => {
|
|
58
68
|
initialHeightOfThisPane.current = flyoutRef.current?.clientHeight ?? null;
|
|
@@ -63,17 +73,6 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
63
73
|
}
|
|
64
74
|
}
|
|
65
75
|
}, [openPaneDepth]);
|
|
66
|
-
const dataTestId = getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
67
|
-
const animatedLeft = useMemo(() => openPaneDepth > 1, [openPaneDepth]);
|
|
68
|
-
useEventListener(flyoutRef, 'keydown', e => {
|
|
69
|
-
var _context;
|
|
70
|
-
return _includesInstanceProperty(_context = Object.values(KEYS).flat()).call(_context, e.key) && setIsKeyboardUser(true);
|
|
71
|
-
}, {
|
|
72
|
-
additionalDependencies: [openPaneDepth]
|
|
73
|
-
});
|
|
74
|
-
useEventListener(flyoutRef, 'pointerenter', () => setIsKeyboardUser(false), {
|
|
75
|
-
additionalDependencies: [openPaneDepth]
|
|
76
|
-
});
|
|
77
76
|
const defaultSide = useMemo(() => {
|
|
78
77
|
const rect = triggerRef?.current?.getBoundingClientRect();
|
|
79
78
|
if (!rect) {
|
|
@@ -98,6 +97,12 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
98
97
|
}
|
|
99
98
|
return 'bottom';
|
|
100
99
|
}, [open, triggerRef]);
|
|
100
|
+
const [transform, setTransform] = useState('');
|
|
101
|
+
const target = flyoutRef.current?.parentNode ?? undefined;
|
|
102
|
+
useMutationObserver(target, {
|
|
103
|
+
attributes: true,
|
|
104
|
+
attributeFilter: ['style']
|
|
105
|
+
}, () => setTransform(target?.style?.transform ?? ''));
|
|
101
106
|
return /*#__PURE__*/React__default.createElement(PaneContextProvider, {
|
|
102
107
|
items: items,
|
|
103
108
|
setItems: setItems,
|
|
@@ -106,35 +111,48 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
106
111
|
searchValue: internalSearchValue,
|
|
107
112
|
isSearchFilteringDisabled,
|
|
108
113
|
isInteractive: !animatedLeft,
|
|
109
|
-
flyoutRef
|
|
114
|
+
flyoutRef,
|
|
115
|
+
stickyBoxRef
|
|
110
116
|
}
|
|
111
117
|
}, /*#__PURE__*/React__default.createElement(Portal, {
|
|
112
118
|
container: portalTarget || undefined
|
|
113
119
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
114
|
-
className: styles.maskContainer
|
|
120
|
+
className: styles.maskContainer,
|
|
121
|
+
id: maskContainerId
|
|
115
122
|
}, /*#__PURE__*/React__default.createElement(Content, _extends({}, rest, {
|
|
123
|
+
onCloseAutoFocus: () => triggerRef?.current?.focus(),
|
|
116
124
|
sideOffset: 6,
|
|
117
|
-
loop:
|
|
125
|
+
loop: !isSearchable,
|
|
118
126
|
side: side || defaultSide,
|
|
119
127
|
align: align || 'start',
|
|
120
128
|
ref: mergeRefs(ref, flyoutRef),
|
|
121
129
|
"data-testid": dataTestId,
|
|
122
130
|
className: classNames(className, {
|
|
123
|
-
[styles.animatedLeft]: animatedLeft
|
|
124
|
-
[styles.containsStickyBox]: isSearchable
|
|
131
|
+
[styles.animatedLeft]: animatedLeft
|
|
125
132
|
}, styles.flyout),
|
|
133
|
+
onInteractOutside: onInteractOutside,
|
|
126
134
|
style: {
|
|
127
135
|
...style,
|
|
128
|
-
height: internalSearchValue && openPaneDepth ===
|
|
136
|
+
height: internalSearchValue && openPaneDepth === thisPanesDepth ? undefined : maskHeight ?? undefined
|
|
129
137
|
}
|
|
130
138
|
}), isSearchable && /*#__PURE__*/React__default.createElement("div", {
|
|
131
|
-
className: styles.stickyBox
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
className: classNames(styles.stickyBox, styles.isSearchable),
|
|
140
|
+
ref: stickyBoxRef
|
|
141
|
+
}), noSearchResultsNode, children), /*#__PURE__*/React__default.createElement("div", {
|
|
142
|
+
className: styles.searchBoxesContainer,
|
|
143
|
+
style: {
|
|
144
|
+
transform,
|
|
145
|
+
width: flyoutRef.current?.clientWidth
|
|
146
|
+
}
|
|
147
|
+
}, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
|
|
148
|
+
let {
|
|
149
|
+
id,
|
|
150
|
+
...config
|
|
151
|
+
} = _ref2;
|
|
152
|
+
return /*#__PURE__*/React__default.createElement(MenuSearch, _extends({
|
|
153
|
+
key: id
|
|
154
|
+
}, config));
|
|
155
|
+
}) : null))));
|
|
138
156
|
});
|
|
139
157
|
|
|
140
158
|
export { MenuPane as default };
|
|
@@ -1,92 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { useRef, useEffect, useState } from 'react';
|
|
3
|
-
import { Item } from '@radix-ui/react-dropdown-menu';
|
|
1
|
+
import React__default from 'react';
|
|
4
2
|
import classNames from 'classnames';
|
|
5
3
|
import styles from './Menu2.js';
|
|
6
4
|
import '../Input/index.js';
|
|
7
5
|
import '../../icons/index.es.js';
|
|
8
|
-
import '../../utils/index.js';
|
|
9
|
-
import { usePaneContext } from './MenuContext.js';
|
|
10
|
-
import { DATA_TESTID_SUFFIXES, KEYS } from './constants.js';
|
|
11
|
-
import '../../hooks/index.js';
|
|
12
|
-
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
13
|
-
import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
14
|
-
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
15
6
|
import Input from '../Input/Input.js';
|
|
16
7
|
import SearchIcon from '../../icons/components/SearchIcon.js';
|
|
17
8
|
|
|
18
9
|
const MenuSearch = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
19
10
|
let {
|
|
20
|
-
setSearchValue
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const {
|
|
25
|
-
translate
|
|
26
|
-
} = useTranslation();
|
|
27
|
-
const searchText = translate('searchText');
|
|
28
|
-
const {
|
|
29
|
-
dataTestId: menuParentDataTestId,
|
|
11
|
+
setSearchValue,
|
|
12
|
+
animatedLeft,
|
|
13
|
+
animatedRight,
|
|
14
|
+
dataTestId,
|
|
30
15
|
searchValue = '',
|
|
31
|
-
isInteractive,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const dataTestId = menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH);
|
|
36
|
-
useEffect(() => () => setSearchValue(''), [setSearchValue]);
|
|
37
|
-
const [previouslyFocusedElement, setPreviouslyFocusedElement] = useState();
|
|
38
|
-
|
|
39
|
-
// hack to keep focus on search input on mouse leave
|
|
40
|
-
useEventListener(flyoutRef, 'focus', e => {
|
|
41
|
-
if (e.target === e.currentTarget && previouslyFocusedElement === itemRef.current && isInteractive) {
|
|
42
|
-
inputRef.current?.focus();
|
|
43
|
-
}
|
|
44
|
-
setPreviouslyFocusedElement(e.target);
|
|
45
|
-
}, {
|
|
46
|
-
isCaptureEvent: true
|
|
47
|
-
});
|
|
48
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Item, {
|
|
16
|
+
isInteractive = false,
|
|
17
|
+
searchPlaceholder
|
|
18
|
+
} = _ref;
|
|
19
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
49
20
|
className: classNames(styles.searchBox, {
|
|
50
|
-
[styles.unresponsive]: !isInteractive
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
,
|
|
54
|
-
|
|
55
|
-
onFocus: () => inputRef.current?.focus(),
|
|
56
|
-
role: undefined,
|
|
57
|
-
ref: mergeRefs(itemRef, ref)
|
|
21
|
+
[styles.unresponsive]: !isInteractive,
|
|
22
|
+
[styles.animatedLeft]: animatedLeft,
|
|
23
|
+
[styles.animatedRight]: animatedRight
|
|
24
|
+
}),
|
|
25
|
+
ref: ref
|
|
58
26
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
59
27
|
"data-testid": dataTestId,
|
|
60
28
|
role: "searchbox",
|
|
61
29
|
value: searchValue,
|
|
62
30
|
onChange: e => setSearchValue(e.target.value),
|
|
63
|
-
placeholder:
|
|
64
|
-
onKeyDown: e => {
|
|
65
|
-
var _context, _context2;
|
|
66
|
-
// stop propagation to prevent typeAhead
|
|
67
|
-
e.stopPropagation();
|
|
68
|
-
|
|
69
|
-
// allow caret movement through text entry, but close searchable submenu if on the very left
|
|
70
|
-
if (e.target?.selectionStart === 0 && _includesInstanceProperty(_context = KEYS.CLOSE_SUBMENU).call(_context, e.key)) {
|
|
71
|
-
closeSubmenu?.(e);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// forward keypress directly to `Item` to let Radix handle keyboard navigation
|
|
76
|
-
if (_includesInstanceProperty(_context2 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context2, e.key)) {
|
|
77
|
-
// `view` types are incompatible
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
79
|
-
const {
|
|
80
|
-
view,
|
|
81
|
-
...eventClone
|
|
82
|
-
} = e;
|
|
83
|
-
itemRef?.current?.dispatchEvent(new KeyboardEvent('keydown', eventClone));
|
|
84
|
-
}
|
|
85
|
-
},
|
|
31
|
+
placeholder: searchPlaceholder,
|
|
86
32
|
leftAddOn: /*#__PURE__*/React__default.createElement(SearchIcon, null),
|
|
87
|
-
ref: inputRef,
|
|
88
33
|
className: styles.searchInput
|
|
89
|
-
}))
|
|
34
|
+
}));
|
|
90
35
|
});
|
|
91
36
|
|
|
92
37
|
export { MenuSearch as default };
|