@qualtrics/ui-react 2.20.0 → 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 +10 -38
- package/dist/__shared/cjs/{index-579c4690.js → index-0ae99de2.js} +3 -3
- package/dist/__shared/cjs/{index-90d4069b.js → index-201e8786.js} +188 -260
- package/dist/components/Accordion/Accordion2.js +3 -3
- 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 +6 -4
- 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 +3 -1
- 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/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 +1 -0
- package/dist/next/index.js +374 -284
- 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
package/dist/next/index.js
CHANGED
|
@@ -9,11 +9,12 @@ var classNames = require('classnames');
|
|
|
9
9
|
var reactDnd = require('react-dnd');
|
|
10
10
|
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
11
11
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
12
|
-
var index = require('../__shared/cjs/index-
|
|
13
|
-
var icons_index = require('../__shared/cjs/index-
|
|
12
|
+
var index = require('../__shared/cjs/index-201e8786.js');
|
|
13
|
+
var icons_index = require('../__shared/cjs/index-0ae99de2.js');
|
|
14
14
|
var libphonenumberJs = require('libphonenumber-js');
|
|
15
15
|
var InputMask = require('react-input-mask');
|
|
16
16
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
17
|
+
var interactions = require('@react-aria/interactions');
|
|
17
18
|
var ReactDOM = require('react-dom');
|
|
18
19
|
require('react-popper');
|
|
19
20
|
require('@popperjs/core');
|
|
@@ -31,9 +32,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
31
32
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
32
33
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
33
34
|
|
|
34
|
-
var css_248z$a = ".
|
|
35
|
-
var styles$a = {"advancedTable":"
|
|
36
|
-
var stylesheet$a=".
|
|
35
|
+
var css_248z$a = "._7PNPm{overflow:auto;position:relative;max-width:100%;max-height:100%}._7PNPm,._PKFfX{background-color:#fff}._PKFfX{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:sticky;left:0}._Wk3YR{margin-bottom:4px}._zrc9C{position:sticky;top:0;z-index:100}._tDGix{display:flex}._tDGix:focus{outline:none}._tDGix.focus-visible ._ZMkm9:after,._tDGix:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._tDGix.focus-visible ._ZMkm9:last-of-type:after,._tDGix:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9:first-of-type:after,._tDGix:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9._Ugmo0:after,._tDGix:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._hVuE5{padding-right:3px}._5OLws{display:flex}._5OLws._gsmDP ._OChfn,._5OLws._gsmDP ._ZMkm9{cursor:pointer}._5OLws._xCdSd ._OChfn,._5OLws._xCdSd ._ZMkm9{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0,._5OLws._xCdSd ._ZMkm9._Ugmo0{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0 ._OChfn,._5OLws._xCdSd ._OChfn._Ugmo0 ._p4Mup,._5OLws._xCdSd ._OChfn._Ugmo0 ._WEK5T,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._OChfn,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._p4Mup,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._WEK5T{background-color:rgba(11,110,208,.08)}._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f9f9f9}._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f3f3f3}._5OLws:focus{outline:none}._5OLws.focus-visible ._ZMkm9:after,._5OLws:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._5OLws.focus-visible ._ZMkm9:last-of-type:after,._5OLws:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9:first-of-type:after,._5OLws:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:last-of-type:focus{outline:none}._5OLws:last-of-type.focus-visible ._ZMkm9:after,._5OLws:last-of-type:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._5OLws:last-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:last-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._5OLws:last-of-type ._WEK5T:focus{outline:none}._5OLws:last-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:last-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:last-of-type ._WEK5T.focus-visible:after,._5OLws:last-of-type ._WEK5T:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._5OLws:first-of-type:focus{outline:none}._5OLws:first-of-type.focus-visible ._ZMkm9:after,._5OLws:first-of-type:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._5OLws:first-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:first-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:first-of-type ._WEK5T:focus{outline:none}._5OLws:first-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:first-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:first-of-type ._WEK5T.focus-visible:after,._5OLws:first-of-type ._WEK5T:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._9XJ45{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._9XJ45._i7fpo{flex-grow:1}._9XJ45._PSQcw{cursor:pointer}._9XJ45._PSQcw:hover:not(._N6Kdw){background-color:#f9f9f9;border-bottom-color:#6a6d70}._9XJ45._PSQcw:active:not(._N6Kdw){background-color:#f3f3f3}._9XJ45._t7sis:not(._N6Kdw){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._9XJ45._N6Kdw{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._9XJ45 ._Pql1N{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._9XJ45 ._Pql1N._1k-uc{left:-1px}._9XJ45 ._Pql1N._miZX2{right:0}._9XJ45 ._ZGC4f{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._9XJ45 ._ZGC4f._1k-uc{left:-2px}._9XJ45 ._ZGC4f._miZX2{right:-1px}._9XJ45:first-of-type ._1k-uc._Pql1N{left:0;width:2px;border-left:1px solid #fff}._9XJ45:first-of-type ._1k-uc._ZGC4f{left:0}._9XJ45:last-of-type ._miZX2._Pql1N{right:0;width:2px;border-right:1px solid #fff}._9XJ45:last-of-type ._miZX2._ZGC4f{right:0}._9XJ45 ._LLRc2{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._9XJ45 ._LLRc2 ._rW-zY{position:absolute;width:2px;right:2px;top:0;bottom:0}._9XJ45 ._LLRc2 ._rW-zY._BTYN3{background-color:#0a6ed1}._9XJ45 ._LLRc2:hover ._rW-zY:not(._BTYN3){background-color:#d9d9d9}._9XJ45 ._JKZ-w{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._9XJ45 ._JKZ-w._A20bj{flex-direction:row-reverse;justify-content:flex-start}._9XJ45 ._JKZ-w._A20bj ._KPYkO{margin:1px 7px 1px 1px}._9XJ45 ._JKZ-w ._kDk72{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._9XJ45 ._JKZ-w ._KPYkO{margin:1px 1px 1px 7px;flex-shrink:0}._9XJ45 ._tiDig{margin-left:6px;margin-right:4px;flex-shrink:0}._9XJ45 ._Iwmpo{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._9XJ45:focus{outline:none}._9XJ45._DzzHO.focus-visible:after,._9XJ45._DzzHO:focus-visible:after,._9XJ45.focus-visible:after,._9XJ45:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._0TRt-{margin-right:6px}._Ugmo0{display:flex;border-right:3px solid #e5e5e5;position:sticky;left:0;background-color:#fff;z-index:20}._Ugmo0[focus-within]{z-index:30}._Ugmo0:focus-within{z-index:30}._WEK5T{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._WEK5T ._LaYfH{width:100%;padding:12px 12px 11px;overflow:hidden}._WEK5T._N6Kdw{background-color:#efefef;border-bottom-color:#dfdfe1}._WEK5T._i7fpo{flex-grow:1}._WEK5T:focus{outline:none}._WEK5T._DzzHO.focus-visible:after,._WEK5T._DzzHO:focus-visible:after,._WEK5T.focus-visible:after,._WEK5T:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._OChfn{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._OChfn._g3FVD{border-bottom-color:#d9d9d9;background-color:#fff}._p4Mup{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._p4Mup._g3FVD{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._p4Mup:focus input~span,._p4Mup:hover input~span{border-color:#0b6ed0}._p4Mup ._lN2D9{position:relative;display:inline-flex}._p4Mup ._lN2D9 ._--5ai{margin:0!important}._p4Mup ._lN2D9 ._nBxBg{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._qaInU{justify-content:flex-start}._5eZFM{justify-content:center;text-align:center}._A20bj{justify-content:flex-end;text-align:right}._akRqx{display:none}._CDbWs{opacity:0;height:0;width:0;overflow:hidden}._CDbWs,._ewNL4{position:absolute}._ewNL4{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._VwY6U{width:246px}";
|
|
36
|
+
var styles$a = {"advancedTable":"_7PNPm","advancedTablePaginationContainer":"_PKFfX","advancedTablePagination":"_Wk3YR","advancedTableColumnHeadersRowGroup":"_zrc9C","advancedTableColumnHeaders":"_tDGix","advancedTableRowChild":"_ZMkm9","pinnedContainer":"_Ugmo0","advancedTableRowGroup":"_hVuE5","advancedTableRow":"_5OLws","hasRowAction":"_gsmDP","advancedTableExpandRowSpacer":"_OChfn","isSelected":"_xCdSd","advancedTableCheckbox":"_p4Mup","advancedTableCell":"_WEK5T","isCheckboxHovered":"_xQgNo","showFocusRing":"_DzzHO","advancedTableColumnHeader":"_9XJ45","fillRemainingSpace":"_i7fpo","isSortable":"_PSQcw","isDragging":"_N6Kdw","isSorted":"_t7sis","dropTargetLine":"_Pql1N","dropTargetLeft":"_1k-uc","dropTargetRight":"_miZX2","dropTargetMarker":"_ZGC4f","resizeHandle":"_LLRc2","resizeLine":"_rW-zY","isResizing":"_BTYN3","advancedTableColumnHeaderLabel":"_JKZ-w","rightAligned":"_A20bj","sortIcon":"_KPYkO","advancedTableColumnHeaderLabelText":"_kDk72","advancedTableColumnHeaderMenu":"_tiDig","advancedTableColumnHeaderMenuHiddenAnchor":"_Iwmpo","advancedTableColumnHeaderMenuItemIcon":"_0TRt-","advancedTableCellContainer":"_LaYfH","header":"_g3FVD","checkboxContainer":"_lN2D9","checkbox":"_--5ai","mixed":"_nBxBg","leftAligned":"_qaInU","centerAligned":"_5eZFM","hiddenDescription":"_akRqx","hiddenLiveRegion":"_CDbWs","dragPreview":"_ewNL4","rowActionMenuPane":"_VwY6U"};
|
|
37
|
+
var stylesheet$a="._7PNPm{overflow:auto;position:relative;max-width:100%;max-height:100%}._7PNPm,._PKFfX{background-color:#fff}._PKFfX{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:sticky;left:0}._Wk3YR{margin-bottom:4px}._zrc9C{position:sticky;top:0;z-index:100}._tDGix{display:flex}._tDGix:focus{outline:none}._tDGix.focus-visible ._ZMkm9:after,._tDGix:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._tDGix.focus-visible ._ZMkm9:last-of-type:after,._tDGix:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9:first-of-type:after,._tDGix:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9._Ugmo0:after,._tDGix:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._hVuE5{padding-right:3px}._5OLws{display:flex}._5OLws._gsmDP ._OChfn,._5OLws._gsmDP ._ZMkm9{cursor:pointer}._5OLws._xCdSd ._OChfn,._5OLws._xCdSd ._ZMkm9{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0,._5OLws._xCdSd ._ZMkm9._Ugmo0{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0 ._OChfn,._5OLws._xCdSd ._OChfn._Ugmo0 ._p4Mup,._5OLws._xCdSd ._OChfn._Ugmo0 ._WEK5T,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._OChfn,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._p4Mup,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._WEK5T{background-color:rgba(11,110,208,.08)}._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f9f9f9}._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f3f3f3}._5OLws:focus{outline:none}._5OLws.focus-visible ._ZMkm9:after,._5OLws:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._5OLws.focus-visible ._ZMkm9:last-of-type:after,._5OLws:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9:first-of-type:after,._5OLws:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:last-of-type:focus{outline:none}._5OLws:last-of-type.focus-visible ._ZMkm9:after,._5OLws:last-of-type:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._5OLws:last-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:last-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._5OLws:last-of-type ._WEK5T:focus{outline:none}._5OLws:last-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:last-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:last-of-type ._WEK5T.focus-visible:after,._5OLws:last-of-type ._WEK5T:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._5OLws:first-of-type:focus{outline:none}._5OLws:first-of-type.focus-visible ._ZMkm9:after,._5OLws:first-of-type:focus-visible ._ZMkm9:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._5OLws:first-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:first-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:first-of-type ._WEK5T:focus{outline:none}._5OLws:first-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:first-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:first-of-type ._WEK5T.focus-visible:after,._5OLws:first-of-type ._WEK5T:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._9XJ45{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._9XJ45._i7fpo{flex-grow:1}._9XJ45._PSQcw{cursor:pointer}._9XJ45._PSQcw:hover:not(._N6Kdw){background-color:#f9f9f9;border-bottom-color:#6a6d70}._9XJ45._PSQcw:active:not(._N6Kdw){background-color:#f3f3f3}._9XJ45._t7sis:not(._N6Kdw){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._9XJ45._N6Kdw{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._9XJ45 ._Pql1N{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._9XJ45 ._Pql1N._1k-uc{left:-1px}._9XJ45 ._Pql1N._miZX2{right:0}._9XJ45 ._ZGC4f{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._9XJ45 ._ZGC4f._1k-uc{left:-2px}._9XJ45 ._ZGC4f._miZX2{right:-1px}._9XJ45:first-of-type ._1k-uc._Pql1N{left:0;width:2px;border-left:1px solid #fff}._9XJ45:first-of-type ._1k-uc._ZGC4f{left:0}._9XJ45:last-of-type ._miZX2._Pql1N{right:0;width:2px;border-right:1px solid #fff}._9XJ45:last-of-type ._miZX2._ZGC4f{right:0}._9XJ45 ._LLRc2{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._9XJ45 ._LLRc2 ._rW-zY{position:absolute;width:2px;right:2px;top:0;bottom:0}._9XJ45 ._LLRc2 ._rW-zY._BTYN3{background-color:#0a6ed1}._9XJ45 ._LLRc2:hover ._rW-zY:not(._BTYN3){background-color:#d9d9d9}._9XJ45 ._JKZ-w{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._9XJ45 ._JKZ-w._A20bj{flex-direction:row-reverse;justify-content:flex-start}._9XJ45 ._JKZ-w._A20bj ._KPYkO{margin:1px 7px 1px 1px}._9XJ45 ._JKZ-w ._kDk72{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._9XJ45 ._JKZ-w ._KPYkO{margin:1px 1px 1px 7px;flex-shrink:0}._9XJ45 ._tiDig{margin-left:6px;margin-right:4px;flex-shrink:0}._9XJ45 ._Iwmpo{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._9XJ45:focus{outline:none}._9XJ45._DzzHO.focus-visible:after,._9XJ45._DzzHO:focus-visible:after,._9XJ45.focus-visible:after,._9XJ45:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._0TRt-{margin-right:6px}._Ugmo0{display:flex;border-right:3px solid #e5e5e5;position:sticky;left:0;background-color:#fff;z-index:20}._Ugmo0[focus-within]{z-index:30}._Ugmo0:focus-within{z-index:30}._WEK5T{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._WEK5T ._LaYfH{width:100%;padding:12px 12px 11px;overflow:hidden}._WEK5T._N6Kdw{background-color:#efefef;border-bottom-color:#dfdfe1}._WEK5T._i7fpo{flex-grow:1}._WEK5T:focus{outline:none}._WEK5T._DzzHO.focus-visible:after,._WEK5T._DzzHO:focus-visible:after,._WEK5T.focus-visible:after,._WEK5T:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._OChfn{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._OChfn._g3FVD{border-bottom-color:#d9d9d9;background-color:#fff}._p4Mup{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._p4Mup._g3FVD{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._p4Mup:focus input~span,._p4Mup:hover input~span{border-color:#0b6ed0}._p4Mup ._lN2D9{position:relative;display:inline-flex}._p4Mup ._lN2D9 ._--5ai{margin:0!important}._p4Mup ._lN2D9 ._nBxBg{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._qaInU{justify-content:flex-start}._5eZFM{justify-content:center;text-align:center}._A20bj{justify-content:flex-end;text-align:right}._akRqx{display:none}._CDbWs{opacity:0;height:0;width:0;overflow:hidden}._CDbWs,._ewNL4{position:absolute}._ewNL4{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._VwY6U{width:246px}";
|
|
37
38
|
icons_index.styleInject(css_248z$a);
|
|
38
39
|
|
|
39
40
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -1334,7 +1335,6 @@ const AdvancedTable = _ref => {
|
|
|
1334
1335
|
switch (e.key) {
|
|
1335
1336
|
case 'ArrowUp':
|
|
1336
1337
|
e.preventDefault(); // prevent scroll
|
|
1337
|
-
index.setIsKeyboardUser(true);
|
|
1338
1338
|
newFocusedRowIndex = updateRowFocusIndex(rowIndex === minRowIndex ? headerRowIndex : rowIndex - 1);
|
|
1339
1339
|
if (e.shiftKey) {
|
|
1340
1340
|
multiUpdateCheckedRowIds(rowIndex, newFocusedRowIndex);
|
|
@@ -1342,7 +1342,6 @@ const AdvancedTable = _ref => {
|
|
|
1342
1342
|
break;
|
|
1343
1343
|
case 'ArrowDown':
|
|
1344
1344
|
e.preventDefault(); // prevent scroll
|
|
1345
|
-
index.setIsKeyboardUser(true);
|
|
1346
1345
|
newFocusedRowIndex = updateRowFocusIndex(rowIndex === headerRowIndex ? minRowIndex : rowIndex + 1);
|
|
1347
1346
|
if (e.shiftKey) {
|
|
1348
1347
|
multiUpdateCheckedRowIds(rowIndex, newFocusedRowIndex);
|
|
@@ -1350,7 +1349,6 @@ const AdvancedTable = _ref => {
|
|
|
1350
1349
|
break;
|
|
1351
1350
|
case 'ArrowLeft':
|
|
1352
1351
|
e.preventDefault(); // prevent scroll
|
|
1353
|
-
index.setIsKeyboardUser(true);
|
|
1354
1352
|
// If the row is expanded and on the first cell, collapse the row
|
|
1355
1353
|
if (e.shiftKey || rowOrFirstColumnIsFocused && rowCanCollapse) {
|
|
1356
1354
|
updateExpandedRowIds(rowIndex, false);
|
|
@@ -1360,7 +1358,6 @@ const AdvancedTable = _ref => {
|
|
|
1360
1358
|
break;
|
|
1361
1359
|
case 'ArrowRight':
|
|
1362
1360
|
e.preventDefault(); // prevent scroll
|
|
1363
|
-
index.setIsKeyboardUser(true);
|
|
1364
1361
|
// If the row is collapsed and on the first cell, expand the row
|
|
1365
1362
|
if (e.shiftKey || rowOrFirstColumnIsFocused && rowCanExpand) {
|
|
1366
1363
|
updateExpandedRowIds(rowIndex, true);
|
|
@@ -1370,17 +1367,14 @@ const AdvancedTable = _ref => {
|
|
|
1370
1367
|
break;
|
|
1371
1368
|
case 'PageUp':
|
|
1372
1369
|
e.preventDefault(); // prevent scroll
|
|
1373
|
-
index.setIsKeyboardUser(true);
|
|
1374
1370
|
updateRowFocusIndex(headerRowIndex);
|
|
1375
1371
|
break;
|
|
1376
1372
|
case 'PageDown':
|
|
1377
1373
|
e.preventDefault(); // prevent scroll
|
|
1378
|
-
index.setIsKeyboardUser(true);
|
|
1379
1374
|
updateRowFocusIndex(maxRowIndex);
|
|
1380
1375
|
break;
|
|
1381
1376
|
case 'Home':
|
|
1382
1377
|
e.preventDefault(); // prevent scroll
|
|
1383
|
-
index.setIsKeyboardUser(true);
|
|
1384
1378
|
updateColumnFocusIndex(minColumnIndex);
|
|
1385
1379
|
if (e.ctrlKey) {
|
|
1386
1380
|
updateRowFocusIndex(headerRowIndex);
|
|
@@ -1388,7 +1382,6 @@ const AdvancedTable = _ref => {
|
|
|
1388
1382
|
break;
|
|
1389
1383
|
case 'End':
|
|
1390
1384
|
e.preventDefault(); // prevent scroll
|
|
1391
|
-
index.setIsKeyboardUser(true);
|
|
1392
1385
|
updateColumnFocusIndex(maxColumnIndex);
|
|
1393
1386
|
if (e.ctrlKey) {
|
|
1394
1387
|
updateRowFocusIndex(maxRowIndex);
|
|
@@ -1396,7 +1389,6 @@ const AdvancedTable = _ref => {
|
|
|
1396
1389
|
break;
|
|
1397
1390
|
case ' ':
|
|
1398
1391
|
e.preventDefault(); // prevent scroll
|
|
1399
|
-
index.setIsKeyboardUser(true);
|
|
1400
1392
|
if (rowIndex === headerRowIndex) {
|
|
1401
1393
|
handleColumnHeaderCheckboxToggle();
|
|
1402
1394
|
} else if (e.shiftKey) {
|
|
@@ -1743,46 +1735,44 @@ function useFocusState(_ref7) {
|
|
|
1743
1735
|
};
|
|
1744
1736
|
const focusCell = index.useEventCallback(cell => {
|
|
1745
1737
|
// Manually scroll cells/rows into view if needed
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
if (
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
tableRef.current.scrollTop += cellPos.bottom - tablePos.bottom;
|
|
1763
|
-
}
|
|
1738
|
+
const tablePos = tableRef.current?.getBoundingClientRect();
|
|
1739
|
+
const header = cellRefs.current?.[headerRowIndex]?.[-1];
|
|
1740
|
+
const headerPos = header?.getBoundingClientRect();
|
|
1741
|
+
let cellPos = cell?.getBoundingClientRect();
|
|
1742
|
+
|
|
1743
|
+
// Vertical scroll
|
|
1744
|
+
if (cell !== header && !header.contains(cell)) {
|
|
1745
|
+
if (cellPos.top < headerPos.top + headerPos.height) {
|
|
1746
|
+
// Scroll down if cell covered by header
|
|
1747
|
+
tableRef.current.scrollTop -= headerPos.top + headerPos.height - cellPos.top;
|
|
1748
|
+
} else if (cellPos.top < tablePos.top) {
|
|
1749
|
+
// Scroll down if cell out of view above table
|
|
1750
|
+
tableRef.current.scrollTop -= tablePos.top - cellPos.top;
|
|
1751
|
+
} else if (cellPos.bottom > tablePos.bottom) {
|
|
1752
|
+
// Scroll up if cell out of view below table
|
|
1753
|
+
tableRef.current.scrollTop += cellPos.bottom - tablePos.bottom;
|
|
1764
1754
|
}
|
|
1755
|
+
}
|
|
1765
1756
|
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1757
|
+
// Horizontal scroll
|
|
1758
|
+
// Scroll left if an entire row is focused
|
|
1759
|
+
if (minColumnIndex === -1 && focusedColumnIndex === minColumnIndex) {
|
|
1760
|
+
tableRef.current.scrollLeft -= tablePos.left - cellPos.left;
|
|
1761
|
+
} else {
|
|
1762
|
+
if (cellPos.left < tablePos.left) {
|
|
1763
|
+
// Scroll right if cell out of view to the left of the table
|
|
1769
1764
|
tableRef.current.scrollLeft -= tablePos.left - cellPos.left;
|
|
1770
|
-
} else {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
}
|
|
1778
|
-
const pinnedContainer = pinnedContainersRef.current?.[focusedRowIndex];
|
|
1779
|
-
const pinnedContainerPos = pinnedContainer?.getBoundingClientRect();
|
|
1780
|
-
cellPos = cell?.getBoundingClientRect();
|
|
1765
|
+
} else if (cellPos.right > tablePos.right) {
|
|
1766
|
+
// Scroll left if cell out of view to the right of the table
|
|
1767
|
+
tableRef.current.scrollLeft += cellPos.right - tablePos.right;
|
|
1768
|
+
}
|
|
1769
|
+
const pinnedContainer = pinnedContainersRef.current?.[focusedRowIndex];
|
|
1770
|
+
const pinnedContainerPos = pinnedContainer?.getBoundingClientRect();
|
|
1771
|
+
cellPos = cell?.getBoundingClientRect();
|
|
1781
1772
|
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
}
|
|
1773
|
+
// Scroll right if cell covered by pinned columns
|
|
1774
|
+
if (pinnedContainer && cellPos.left < pinnedContainerPos.left + pinnedContainerPos.width && !pinnedContainer.contains(cell)) {
|
|
1775
|
+
tableRef.current.scrollLeft -= pinnedContainerPos.left + pinnedContainerPos.width - cellPos.left;
|
|
1786
1776
|
}
|
|
1787
1777
|
}
|
|
1788
1778
|
cell?.focus();
|
|
@@ -1827,9 +1817,9 @@ function useFocusState(_ref7) {
|
|
|
1827
1817
|
|
|
1828
1818
|
/* eslint-disable import/prefer-default-export */
|
|
1829
1819
|
|
|
1830
|
-
var css_248z$9 = ".
|
|
1831
|
-
var styles$9 = {"collapsibleSearchInput":"
|
|
1832
|
-
var stylesheet$9=".
|
|
1820
|
+
var css_248z$9 = "._lIAh-{display:inline-block;width:36px;transition:width .25s ease-out}._zAZPU{width:100%}._idMkm>input{padding-right:0!important}._QBtP->svg{fill:#515559}";
|
|
1821
|
+
var styles$9 = {"collapsibleSearchInput":"_lIAh-","searchInput":"_zAZPU","searchInputCollapsed":"_idMkm","iconButton":"_QBtP-"};
|
|
1822
|
+
var stylesheet$9="._lIAh-{display:inline-block;width:36px;transition:width .25s ease-out}._zAZPU{width:100%}._idMkm>input{padding-right:0!important}._QBtP->svg{fill:#515559}";
|
|
1833
1823
|
icons_index.styleInject(css_248z$9);
|
|
1834
1824
|
|
|
1835
1825
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -1931,7 +1921,7 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1931
1921
|
* Handles use-case when user clicks on search input to enter text and the component is collapsed while focus is still on the search input.
|
|
1932
1922
|
* This will show the focus ring on the icon button and allow the tooltip to appear.
|
|
1933
1923
|
*/
|
|
1934
|
-
|
|
1924
|
+
|
|
1935
1925
|
iconButtonRef.current?.focus();
|
|
1936
1926
|
break;
|
|
1937
1927
|
default:
|
|
@@ -1968,9 +1958,9 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1968
1958
|
}));
|
|
1969
1959
|
});
|
|
1970
1960
|
|
|
1971
|
-
var css_248z$8 = ".
|
|
1972
|
-
var styles$8 = {"input":"
|
|
1973
|
-
var stylesheet$8=".
|
|
1961
|
+
var css_248z$8 = "._u34bj input{padding-left:76px!important}._-wpOY input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._-wpOY input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-wpOY input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-Tx0t{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._-Tx0t,._-Tx0t._-wpOY:hover{background-color:transparent!important}._-Tx0t:hover{background-color:rgba(50,54,58,.08)!important}._-Tx0t:active{background-color:rgba(50,54,58,.11)!important}._-Tx0t svg{top:2px!important}._NX2Nw{position:relative}._8HkYQ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
1962
|
+
var styles$8 = {"input":"_u34bj","disabled":"_-wpOY","dropdown":"_-Tx0t","container":"_NX2Nw","countryCode":"_8HkYQ"};
|
|
1963
|
+
var stylesheet$8="._u34bj input{padding-left:76px!important}._-wpOY input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._-wpOY input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-wpOY input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-Tx0t{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._-Tx0t,._-Tx0t._-wpOY:hover{background-color:transparent!important}._-Tx0t:hover{background-color:rgba(50,54,58,.08)!important}._-Tx0t:active{background-color:rgba(50,54,58,.11)!important}._-Tx0t svg{top:2px!important}._NX2Nw{position:relative}._8HkYQ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
1974
1964
|
icons_index.styleInject(css_248z$8);
|
|
1975
1965
|
|
|
1976
1966
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2682,9 +2672,9 @@ function Combobox(_ref) {
|
|
|
2682
2672
|
}, children);
|
|
2683
2673
|
}
|
|
2684
2674
|
|
|
2685
|
-
var css_248z$7 = ".
|
|
2686
|
-
var styles$7 = {"loadingSpinner":"
|
|
2687
|
-
var stylesheet$7=".
|
|
2675
|
+
var css_248z$7 = "._U6KWN :after{background-color:#515559!important}._JY3M7>input:focus{box-shadow:none!important;border:1px solid #898989!important}._yPnof{max-width:500px;padding:4px 0;background-color:#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;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._yPnof ._6M8Pd ._98jqN{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._yPnof ._6M8Pd:first-child ._P2YoP{display:none}._yPnof ._t1H4e{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._yPnof ._t1H4e:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:hover._POrrt{background-color:#e4effa}._yPnof ._t1H4e._POrrt{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:active:not(._POrrt){background-color:#e8e9e9}";
|
|
2676
|
+
var styles$7 = {"loadingSpinner":"_U6KWN","ignoreFocusStyle":"_JY3M7","flyout":"_yPnof","group":"_6M8Pd","header":"_98jqN","divider":"_P2YoP","option":"_t1H4e","selected":"_POrrt"};
|
|
2677
|
+
var stylesheet$7="._U6KWN :after{background-color:#515559!important}._JY3M7>input:focus{box-shadow:none!important;border:1px solid #898989!important}._yPnof{max-width:500px;padding:4px 0;background-color:#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;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._yPnof ._6M8Pd ._98jqN{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._yPnof ._6M8Pd:first-child ._P2YoP{display:none}._yPnof ._t1H4e{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._yPnof ._t1H4e:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:hover._POrrt{background-color:#e4effa}._yPnof ._t1H4e._POrrt{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:active:not(._POrrt){background-color:#e8e9e9}";
|
|
2688
2678
|
icons_index.styleInject(css_248z$7);
|
|
2689
2679
|
|
|
2690
2680
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2990,9 +2980,9 @@ function ComboboxOption(_ref) {
|
|
|
2990
2980
|
}, label);
|
|
2991
2981
|
}
|
|
2992
2982
|
|
|
2993
|
-
var css_248z$6 = ".
|
|
2994
|
-
var styles$6 = {"container":"
|
|
2995
|
-
var stylesheet$6=".
|
|
2983
|
+
var css_248z$6 = "._NmeBb{display:flex}._I-Enc{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._I-Enc._iGxXp{background-color:#fff}._I-Enc._iGxXp._fNSh2.focus-visible:not(._ntuew),._I-Enc._iGxXp._fNSh2:focus-visible:not(._ntuew),._I-Enc._iGxXp._o2UHQ:not(._I-Enc._iGxXp._21iUU),._I-Enc._wKzVZ{background-color:#0b6ed0}._I-Enc._wKzVZ._21iUU._o2UHQ,._I-Enc._wKzVZ._ntuew._21iUU,._I-Enc._wKzVZ._ntuew._fNSh2{opacity:.4}._HBerZ{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._HBerZ:focus{z-index:1}._OZZIq{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._OZZIq svg{margin-left:1px}._OZZIq._iGxXp{background-color:#0b6ed0;border-color:transparent}._OZZIq._iGxXp svg{fill:#fff!important}._OZZIq._iGxXp:not(._cYVes):hover{background-color:#085caf!important}._OZZIq._iGxXp:not(._cYVes):active{background-color:#0854a1!important}._OZZIq._iGxXp._cYVes{opacity:.4}._OZZIq._iGxXp._cYVes svg{background-color:transparent}._OZZIq._wKzVZ{border-color:#0b6ed0;background-color:#fff}._OZZIq._wKzVZ svg{fill:#0b6ed0!important}._OZZIq._wKzVZ:not(._cYVes):hover{background-color:#eef5fc!important}._OZZIq._wKzVZ:not(._cYVes):active{background-color:#e1edf9!important}._OZZIq._wKzVZ._cYVes{opacity:.4}._OZZIq._wKzVZ._cYVes svg{background-color:transparent}._5QWht{width:260px}";
|
|
2984
|
+
var styles$6 = {"container":"_NmeBb","divider":"_I-Enc","primary":"_iGxXp","mainButtonFocus":"_fNSh2","mainButtonDisabled":"_ntuew","dropdownButtonFocus":"_o2UHQ","dropdownButtonDisabled":"_21iUU","secondary":"_wKzVZ","mainButton":"_HBerZ","dropdownButton":"_OZZIq","disabled":"_cYVes","dropdownOption":"_5QWht"};
|
|
2985
|
+
var stylesheet$6="._NmeBb{display:flex}._I-Enc{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._I-Enc._iGxXp{background-color:#fff}._I-Enc._iGxXp._fNSh2.focus-visible:not(._ntuew),._I-Enc._iGxXp._fNSh2:focus-visible:not(._ntuew),._I-Enc._iGxXp._o2UHQ:not(._I-Enc._iGxXp._21iUU),._I-Enc._wKzVZ{background-color:#0b6ed0}._I-Enc._wKzVZ._21iUU._o2UHQ,._I-Enc._wKzVZ._ntuew._21iUU,._I-Enc._wKzVZ._ntuew._fNSh2{opacity:.4}._HBerZ{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._HBerZ:focus{z-index:1}._OZZIq{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._OZZIq svg{margin-left:1px}._OZZIq._iGxXp{background-color:#0b6ed0;border-color:transparent}._OZZIq._iGxXp svg{fill:#fff!important}._OZZIq._iGxXp:not(._cYVes):hover{background-color:#085caf!important}._OZZIq._iGxXp:not(._cYVes):active{background-color:#0854a1!important}._OZZIq._iGxXp._cYVes{opacity:.4}._OZZIq._iGxXp._cYVes svg{background-color:transparent}._OZZIq._wKzVZ{border-color:#0b6ed0;background-color:#fff}._OZZIq._wKzVZ svg{fill:#0b6ed0!important}._OZZIq._wKzVZ:not(._cYVes):hover{background-color:#eef5fc!important}._OZZIq._wKzVZ:not(._cYVes):active{background-color:#e1edf9!important}._OZZIq._wKzVZ._cYVes{opacity:.4}._OZZIq._wKzVZ._cYVes svg{background-color:transparent}._5QWht{width:260px}";
|
|
2996
2986
|
icons_index.styleInject(css_248z$6);
|
|
2997
2987
|
|
|
2998
2988
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3086,9 +3076,9 @@ const SplitButtonOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3086
3076
|
}, children);
|
|
3087
3077
|
});
|
|
3088
3078
|
|
|
3089
|
-
var css_248z$5 = ".
|
|
3090
|
-
var styles$5 = {"button":"
|
|
3091
|
-
var stylesheet$5=".
|
|
3079
|
+
var css_248z$5 = "._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}";
|
|
3080
|
+
var styles$5 = {"button":"_JQyp6","disabled":"_RDp-5","selected":"_vwpWZ","label":"_k3uWK","lockIcon":"_kYSUg","chevronIcon":"_oobN4","selectedFiltersContainer":"_2f-as","selectedFilters":"_tYXas","open":"_NAibk"};
|
|
3081
|
+
var stylesheet$5="._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}";
|
|
3092
3082
|
icons_index.styleInject(css_248z$5);
|
|
3093
3083
|
|
|
3094
3084
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3237,6 +3227,7 @@ const Menu = _ref => {
|
|
|
3237
3227
|
});
|
|
3238
3228
|
};
|
|
3239
3229
|
const openPaneDepth = React.useMemo(() => open ? submenus.size + 1 : 0, [submenus, open]);
|
|
3230
|
+
const [searchBarConfigs, setSearchBarConfigs] = React.useState([]);
|
|
3240
3231
|
return /*#__PURE__*/React__default["default"].createElement(MenuContextProvider, {
|
|
3241
3232
|
value: {
|
|
3242
3233
|
dataTestId,
|
|
@@ -3246,11 +3237,14 @@ const Menu = _ref => {
|
|
|
3246
3237
|
maskHeight,
|
|
3247
3238
|
setMaskHeight,
|
|
3248
3239
|
open,
|
|
3249
|
-
triggerRef
|
|
3240
|
+
triggerRef,
|
|
3241
|
+
searchBarConfigs,
|
|
3242
|
+
setSearchBarConfigs
|
|
3250
3243
|
}
|
|
3251
3244
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Root, {
|
|
3252
3245
|
open: open,
|
|
3253
|
-
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen)
|
|
3246
|
+
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen),
|
|
3247
|
+
modal: false
|
|
3254
3248
|
}, children));
|
|
3255
3249
|
};
|
|
3256
3250
|
|
|
@@ -3285,9 +3279,9 @@ class PointerEvent extends Event {
|
|
|
3285
3279
|
}
|
|
3286
3280
|
}
|
|
3287
3281
|
|
|
3288
|
-
var css_248z$4 = ".
|
|
3289
|
-
var styles$4 = {"buttonContainer":"
|
|
3290
|
-
var stylesheet$4=".
|
|
3282
|
+
var css_248z$4 = "._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}";
|
|
3283
|
+
var styles$4 = {"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"};
|
|
3284
|
+
var stylesheet$4="._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}";
|
|
3291
3285
|
icons_index.styleInject(css_248z$4);
|
|
3292
3286
|
|
|
3293
3287
|
/* eslint-disable import/prefer-default-export */
|
|
@@ -3301,7 +3295,11 @@ const DATA_TESTID_SUFFIXES = {
|
|
|
3301
3295
|
const KEYS = {
|
|
3302
3296
|
OPEN_SUBMENU: ['ArrowRight', 'Enter', ' '],
|
|
3303
3297
|
CLOSE_SUBMENU: ['ArrowLeft'],
|
|
3304
|
-
|
|
3298
|
+
NAVIGATE_UP: ['ArrowUp'],
|
|
3299
|
+
NAVIGATE_DOWN: ['ArrowDown'],
|
|
3300
|
+
NAVIGATE_TOP: ['Home'],
|
|
3301
|
+
NAVIIGATE_BOTTOM: ['End'],
|
|
3302
|
+
IGNORED_BY_SEARCH_INPUT: ['Tab']
|
|
3305
3303
|
};
|
|
3306
3304
|
|
|
3307
3305
|
const AsChildWrapper = _ref => {
|
|
@@ -3343,97 +3341,213 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref
|
|
|
3343
3341
|
|
|
3344
3342
|
const MenuSearch = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3345
3343
|
let {
|
|
3346
|
-
setSearchValue
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
const {
|
|
3351
|
-
translate
|
|
3352
|
-
} = index.useTranslation();
|
|
3353
|
-
const searchText = translate('searchText');
|
|
3354
|
-
const {
|
|
3355
|
-
dataTestId: menuParentDataTestId,
|
|
3344
|
+
setSearchValue,
|
|
3345
|
+
animatedLeft,
|
|
3346
|
+
animatedRight,
|
|
3347
|
+
dataTestId,
|
|
3356
3348
|
searchValue = '',
|
|
3357
|
-
isInteractive,
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
const dataTestId = menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH);
|
|
3362
|
-
React.useEffect(() => () => setSearchValue(''), [setSearchValue]);
|
|
3363
|
-
const [previouslyFocusedElement, setPreviouslyFocusedElement] = React.useState();
|
|
3364
|
-
|
|
3365
|
-
// hack to keep focus on search input on mouse leave
|
|
3366
|
-
index.useEventListener(flyoutRef, 'focus', e => {
|
|
3367
|
-
if (e.target === e.currentTarget && previouslyFocusedElement === itemRef.current && isInteractive) {
|
|
3368
|
-
inputRef.current?.focus();
|
|
3369
|
-
}
|
|
3370
|
-
setPreviouslyFocusedElement(e.target);
|
|
3371
|
-
}, {
|
|
3372
|
-
isCaptureEvent: true
|
|
3373
|
-
});
|
|
3374
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, {
|
|
3349
|
+
isInteractive = false,
|
|
3350
|
+
searchPlaceholder
|
|
3351
|
+
} = _ref;
|
|
3352
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3375
3353
|
className: classNames__default["default"](styles$4.searchBox, {
|
|
3376
|
-
[styles$4.unresponsive]: !isInteractive
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
,
|
|
3380
|
-
|
|
3381
|
-
onFocus: () => inputRef.current?.focus(),
|
|
3382
|
-
role: undefined,
|
|
3383
|
-
ref: index.mergeRefs(itemRef, ref)
|
|
3354
|
+
[styles$4.unresponsive]: !isInteractive,
|
|
3355
|
+
[styles$4.animatedLeft]: animatedLeft,
|
|
3356
|
+
[styles$4.animatedRight]: animatedRight
|
|
3357
|
+
}),
|
|
3358
|
+
ref: ref
|
|
3384
3359
|
}, /*#__PURE__*/React__default["default"].createElement(index.Input$1, {
|
|
3385
3360
|
"data-testid": dataTestId,
|
|
3386
3361
|
role: "searchbox",
|
|
3387
3362
|
value: searchValue,
|
|
3388
3363
|
onChange: e => setSearchValue(e.target.value),
|
|
3389
|
-
placeholder:
|
|
3390
|
-
onKeyDown: e => {
|
|
3391
|
-
var _context, _context2;
|
|
3392
|
-
// stop propagation to prevent typeAhead
|
|
3393
|
-
e.stopPropagation();
|
|
3394
|
-
|
|
3395
|
-
// allow caret movement through text entry, but close searchable submenu if on the very left
|
|
3396
|
-
if (e.target?.selectionStart === 0 && _includesInstanceProperty__default["default"](_context = KEYS.CLOSE_SUBMENU).call(_context, e.key)) {
|
|
3397
|
-
closeSubmenu?.(e);
|
|
3398
|
-
return;
|
|
3399
|
-
}
|
|
3400
|
-
|
|
3401
|
-
// forward keypress directly to `Item` to let Radix handle keyboard navigation
|
|
3402
|
-
if (_includesInstanceProperty__default["default"](_context2 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context2, e.key)) {
|
|
3403
|
-
// `view` types are incompatible
|
|
3404
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3405
|
-
const {
|
|
3406
|
-
view,
|
|
3407
|
-
...eventClone
|
|
3408
|
-
} = e;
|
|
3409
|
-
itemRef?.current?.dispatchEvent(new KeyboardEvent('keydown', eventClone));
|
|
3410
|
-
}
|
|
3411
|
-
},
|
|
3364
|
+
placeholder: searchPlaceholder,
|
|
3412
3365
|
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, null),
|
|
3413
|
-
ref: inputRef,
|
|
3414
3366
|
className: styles$4.searchInput
|
|
3415
|
-
}))
|
|
3367
|
+
}));
|
|
3416
3368
|
});
|
|
3417
3369
|
|
|
3418
3370
|
// abstracts the logic required for searching by both `MenuPane` and `SubMenu`
|
|
3419
|
-
|
|
3371
|
+
// creates a searchBarConfig, which maps to an instance of `MenuSearch`
|
|
3372
|
+
// returns values that are necessary for use within pane
|
|
3373
|
+
function usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, animatedRight, menuParentDataTestId, id, flyoutRef) {
|
|
3374
|
+
let backButtonRef = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : undefined;
|
|
3375
|
+
let closeSubmenu = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : undefined;
|
|
3420
3376
|
const [internalSearchValue, setSearchValue] = index.useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
3421
3377
|
const [zeroSearchResults, setZeroSearchResults] = React.useState();
|
|
3422
3378
|
const {
|
|
3423
3379
|
translate
|
|
3424
3380
|
} = index.useTranslation();
|
|
3425
3381
|
const noMatchesText = translate('menu.noItemsToDisplay');
|
|
3382
|
+
const searchPlaceholder = translate('searchText');
|
|
3383
|
+
React.useEffect(() => setZeroSearchResults(items?.filter(item => item.element.current).length === 0), [items, internalSearchValue]);
|
|
3384
|
+
const {
|
|
3385
|
+
isFocusVisible
|
|
3386
|
+
} = interactions.useFocusVisible({
|
|
3387
|
+
isTextInput: true
|
|
3388
|
+
});
|
|
3389
|
+
const searchRef = React.useRef(null);
|
|
3390
|
+
const searchInput = searchRef.current?.querySelector('input') ?? null;
|
|
3391
|
+
const getFirstNonNullItem = () => backButtonRef?.current ?? items.find(item => item.element.current)?.element.current;
|
|
3392
|
+
const getLastNonNullItem = () =>
|
|
3393
|
+
// our tsconfig does not target a recent enough version to use `Array.prototype.findLast`
|
|
3394
|
+
items.findLast(item => item.element.current)?.element.current ?? backButtonRef?.current;
|
|
3395
|
+
index.useEventListener(flyoutRef, 'keydown', e => {
|
|
3396
|
+
var _context, _context2;
|
|
3397
|
+
if (_includesInstanceProperty__default["default"](_context = KEYS.NAVIGATE_UP).call(_context, e.key) && e.target === getFirstNonNullItem() || _includesInstanceProperty__default["default"](_context2 = KEYS.NAVIGATE_DOWN).call(_context2, e.key) && e.target === getLastNonNullItem()) {
|
|
3398
|
+
searchInput?.focus();
|
|
3399
|
+
}
|
|
3400
|
+
}, {
|
|
3401
|
+
additionalDependencies: [flyoutRef.current],
|
|
3402
|
+
isDisabled: !isSearchable
|
|
3403
|
+
});
|
|
3404
|
+
index.useEventListener(searchInput, 'keydown', e => {
|
|
3405
|
+
var _context3, _context4, _context5, _context6;
|
|
3406
|
+
if (_includesInstanceProperty__default["default"](_context3 = [...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP]).call(_context3, e.key)) {
|
|
3407
|
+
// prevent scrolling
|
|
3408
|
+
e.preventDefault();
|
|
3409
|
+
getFirstNonNullItem()?.focus();
|
|
3410
|
+
} else if (_includesInstanceProperty__default["default"](_context4 = [...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM]).call(_context4, e.key)) {
|
|
3411
|
+
// prevent scrolling
|
|
3412
|
+
e.preventDefault();
|
|
3413
|
+
getLastNonNullItem()?.focus();
|
|
3414
|
+
} else if (_includesInstanceProperty__default["default"](_context5 = KEYS.CLOSE_SUBMENU).call(_context5, e.key) && e.target?.selectionStart === 0) {
|
|
3415
|
+
closeSubmenu?.(e);
|
|
3416
|
+
} else if (_includesInstanceProperty__default["default"](_context6 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context6, e.key)) {
|
|
3417
|
+
e.preventDefault();
|
|
3418
|
+
}
|
|
3419
|
+
});
|
|
3420
|
+
index.useEventListener(searchInput, 'blur', () => !isFocusVisible && !animatedLeft && !animatedRight && searchInput?.focus());
|
|
3421
|
+
const {
|
|
3422
|
+
searchBarConfigs,
|
|
3423
|
+
setSearchBarConfigs
|
|
3424
|
+
} = useMenuContext();
|
|
3425
|
+
const onInteractOutside = React.useCallback(e => searchBarConfigs.some(config => config.ref.current?.contains(e.target)) && e.preventDefault(), [searchBarConfigs]);
|
|
3426
3426
|
React.useEffect(() => {
|
|
3427
|
-
|
|
3428
|
-
|
|
3427
|
+
if (!isSearchable) {
|
|
3428
|
+
return undefined;
|
|
3429
|
+
}
|
|
3430
|
+
setSearchBarConfigs(configs => {
|
|
3431
|
+
const configsClone = [...configs];
|
|
3432
|
+
const updatedConfig = {
|
|
3433
|
+
searchValue: internalSearchValue,
|
|
3434
|
+
isInteractive: !animatedLeft && !animatedRight,
|
|
3435
|
+
animatedLeft,
|
|
3436
|
+
animatedRight,
|
|
3437
|
+
dataTestId: menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH),
|
|
3438
|
+
setSearchValue,
|
|
3439
|
+
ref: searchRef,
|
|
3440
|
+
id,
|
|
3441
|
+
searchPlaceholder
|
|
3442
|
+
};
|
|
3443
|
+
const configIndex = configs.findIndex(config => config.id === id);
|
|
3444
|
+
if (configIndex === -1) {
|
|
3445
|
+
configsClone.push(updatedConfig);
|
|
3446
|
+
} else {
|
|
3447
|
+
configsClone[configIndex] = updatedConfig;
|
|
3448
|
+
}
|
|
3449
|
+
return configsClone;
|
|
3450
|
+
});
|
|
3451
|
+
return () => setSearchBarConfigs(configs => {
|
|
3452
|
+
const configIndex = configs.findIndex(config => config.id === id);
|
|
3453
|
+
if (configIndex === -1) {
|
|
3454
|
+
return configs;
|
|
3455
|
+
}
|
|
3456
|
+
const configsClone = [...configs];
|
|
3457
|
+
configsClone.splice(configIndex, 1);
|
|
3458
|
+
return configsClone;
|
|
3459
|
+
});
|
|
3460
|
+
}, [isSearchable, searchPlaceholder, setSearchBarConfigs, internalSearchValue, animatedLeft, animatedRight, menuParentDataTestId, setSearchValue, searchRef, id]);
|
|
3461
|
+
const noSearchResultsNode = zeroSearchResults && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3462
|
+
className: classNames__default["default"](styles$4.menuItem, styles$4.noItems),
|
|
3463
|
+
"aria-live": "assertive"
|
|
3464
|
+
}, noMatchesText);
|
|
3429
3465
|
return {
|
|
3430
3466
|
internalSearchValue,
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
noMatchesText
|
|
3467
|
+
noSearchResultsNode,
|
|
3468
|
+
onInteractOutside
|
|
3434
3469
|
};
|
|
3435
3470
|
}
|
|
3436
3471
|
|
|
3472
|
+
const useMutationObserver = (target, options, onMutate) => React.useEffect(() => {
|
|
3473
|
+
if (!target) {
|
|
3474
|
+
return undefined;
|
|
3475
|
+
}
|
|
3476
|
+
const observer = new MutationObserver(function () {
|
|
3477
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3478
|
+
args[_key] = arguments[_key];
|
|
3479
|
+
}
|
|
3480
|
+
onMutate?.(...args);
|
|
3481
|
+
});
|
|
3482
|
+
observer.observe(target, options);
|
|
3483
|
+
return () => observer.disconnect();
|
|
3484
|
+
}, [target, options, onMutate]);
|
|
3485
|
+
|
|
3486
|
+
var css_248z$3 = "._zIGpU{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._yz842{visibility:hidden}";
|
|
3487
|
+
var styles$3 = {"overlay":"_zIGpU","hidden":"_yz842"};
|
|
3488
|
+
var stylesheet$3="._zIGpU{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._yz842{visibility:hidden}";
|
|
3489
|
+
icons_index.styleInject(css_248z$3);
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* Adds an overlay to an area that obscures visibility and disables background elements.
|
|
3493
|
+
* @param {MutableRefObject} containerRef - A ref pointing to the DOM element to be filled by the overlay.
|
|
3494
|
+
* @param {boolean} isVisible - When true, displays overlay and disables all element behind it.
|
|
3495
|
+
* @param {React.MouseEventHandler} onClick - A function to be called when the overlay recieves a click event.
|
|
3496
|
+
* @param {string[]} ignoreIds - An array of ids belonging to elements that should not become inert when isInert is true.
|
|
3497
|
+
* @param {CSSProperties['zIndex']} zIndex - The zIndex of the overlay.
|
|
3498
|
+
* @param {string} dataTestId - A string to be added to the overlay element as a data-testid.
|
|
3499
|
+
* @param {number} opacity - The opacity of the overlay.
|
|
3500
|
+
*/
|
|
3501
|
+
const useOverlay = _ref => {
|
|
3502
|
+
let {
|
|
3503
|
+
containerRef,
|
|
3504
|
+
isVisible,
|
|
3505
|
+
onClick,
|
|
3506
|
+
ignoreIds = [],
|
|
3507
|
+
zIndex,
|
|
3508
|
+
dataTestId,
|
|
3509
|
+
opacity
|
|
3510
|
+
} = _ref;
|
|
3511
|
+
const overlayId = index.useId();
|
|
3512
|
+
React.useEffect(() => {
|
|
3513
|
+
const containerNode = containerRef?.current ?? document.body;
|
|
3514
|
+
const overlay = document.createElement('div');
|
|
3515
|
+
overlay.id = overlayId;
|
|
3516
|
+
overlay.classList.add(styles$3.overlay);
|
|
3517
|
+
if (onClick) overlay.addEventListener('click', onClick);
|
|
3518
|
+
if (dataTestId) overlay.dataset.testid = dataTestId;
|
|
3519
|
+
if (!isVisible) overlay.classList.add(styles$3.hidden);
|
|
3520
|
+
if (zIndex || zIndex === 0) overlay.style.zIndex = zIndex.toString();
|
|
3521
|
+
if (opacity || opacity === 0) overlay.style.opacity = opacity.toString();
|
|
3522
|
+
containerNode.appendChild(overlay);
|
|
3523
|
+
containerNode.style.position = 'relative';
|
|
3524
|
+
return () => {
|
|
3525
|
+
containerNode.style.position = 'static';
|
|
3526
|
+
containerNode.removeChild(overlay);
|
|
3527
|
+
};
|
|
3528
|
+
}, [containerRef, overlayId, isVisible, onClick, dataTestId, zIndex]);
|
|
3529
|
+
React.useEffect(() => {
|
|
3530
|
+
const containerNode = containerRef?.current ?? document.body;
|
|
3531
|
+
const overlayNode = document.getElementById(overlayId);
|
|
3532
|
+
if (isVisible) {
|
|
3533
|
+
Array.from(containerNode.children).forEach(child => {
|
|
3534
|
+
if (!_includesInstanceProperty__default["default"](ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
3535
|
+
});
|
|
3536
|
+
overlayNode?.classList.remove(styles$3.hidden);
|
|
3537
|
+
} else {
|
|
3538
|
+
Array.from(containerNode.children).forEach(child => {
|
|
3539
|
+
child.removeAttribute('inert');
|
|
3540
|
+
});
|
|
3541
|
+
overlayNode?.classList.add(styles$3.hidden);
|
|
3542
|
+
}
|
|
3543
|
+
return () => {
|
|
3544
|
+
Array.from(containerNode.children).forEach(child => {
|
|
3545
|
+
child.removeAttribute('inert');
|
|
3546
|
+
});
|
|
3547
|
+
};
|
|
3548
|
+
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3549
|
+
};
|
|
3550
|
+
|
|
3437
3551
|
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3438
3552
|
let {
|
|
3439
3553
|
placement,
|
|
@@ -3448,12 +3562,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3448
3562
|
} = _ref;
|
|
3449
3563
|
const [items, setItems] = React.useState([]);
|
|
3450
3564
|
const flyoutRef = React.useRef(null);
|
|
3451
|
-
const
|
|
3452
|
-
internalSearchValue,
|
|
3453
|
-
setSearchValue,
|
|
3454
|
-
zeroSearchResults,
|
|
3455
|
-
noMatchesText
|
|
3456
|
-
} = usePaneSearch(externalSearchValue, onSearchValueChange, items);
|
|
3565
|
+
const stickyBoxRef = React.useRef(null);
|
|
3457
3566
|
const portalTarget = index.usePortalTarget();
|
|
3458
3567
|
const [side, align] = React.useMemo(() => placement?.split?.('-') ?? [], [placement]);
|
|
3459
3568
|
const {
|
|
@@ -3462,14 +3571,29 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3462
3571
|
setMaskHeight,
|
|
3463
3572
|
maskHeight,
|
|
3464
3573
|
open,
|
|
3465
|
-
triggerRef
|
|
3574
|
+
triggerRef,
|
|
3575
|
+
searchBarConfigs
|
|
3466
3576
|
} = useMenuContext();
|
|
3577
|
+
const thisPanesDepth = 1;
|
|
3578
|
+
const maskContainerId = 'maskContainer';
|
|
3579
|
+
useOverlay({
|
|
3580
|
+
isVisible: open,
|
|
3581
|
+
ignoreIds: [maskContainerId],
|
|
3582
|
+
opacity: 0
|
|
3583
|
+
});
|
|
3584
|
+
const animatedLeft = React.useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
3585
|
+
const dataTestId = index.getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
3586
|
+
const {
|
|
3587
|
+
internalSearchValue,
|
|
3588
|
+
noSearchResultsNode,
|
|
3589
|
+
onInteractOutside
|
|
3590
|
+
} = usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, false, dataTestId, index.useId(), flyoutRef);
|
|
3467
3591
|
|
|
3468
3592
|
// 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.
|
|
3469
3593
|
// We cache the pixel value here, to use it later if the user returns to this pane from a submenu.
|
|
3470
3594
|
const initialHeightOfThisPane = React.useRef(null);
|
|
3471
3595
|
index.useDidUpdate(() => {
|
|
3472
|
-
if (openPaneDepth ===
|
|
3596
|
+
if (openPaneDepth === thisPanesDepth) {
|
|
3473
3597
|
if (initialHeightOfThisPane.current === null) {
|
|
3474
3598
|
window.requestAnimationFrame(() => {
|
|
3475
3599
|
initialHeightOfThisPane.current = flyoutRef.current?.clientHeight ?? null;
|
|
@@ -3480,17 +3604,6 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3480
3604
|
}
|
|
3481
3605
|
}
|
|
3482
3606
|
}, [openPaneDepth]);
|
|
3483
|
-
const dataTestId = index.getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
3484
|
-
const animatedLeft = React.useMemo(() => openPaneDepth > 1, [openPaneDepth]);
|
|
3485
|
-
index.useEventListener(flyoutRef, 'keydown', e => {
|
|
3486
|
-
var _context;
|
|
3487
|
-
return _includesInstanceProperty__default["default"](_context = Object.values(KEYS).flat()).call(_context, e.key) && index.setIsKeyboardUser(true);
|
|
3488
|
-
}, {
|
|
3489
|
-
additionalDependencies: [openPaneDepth]
|
|
3490
|
-
});
|
|
3491
|
-
index.useEventListener(flyoutRef, 'pointerenter', () => index.setIsKeyboardUser(false), {
|
|
3492
|
-
additionalDependencies: [openPaneDepth]
|
|
3493
|
-
});
|
|
3494
3607
|
const defaultSide = React.useMemo(() => {
|
|
3495
3608
|
const rect = triggerRef?.current?.getBoundingClientRect();
|
|
3496
3609
|
if (!rect) {
|
|
@@ -3515,6 +3628,12 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3515
3628
|
}
|
|
3516
3629
|
return 'bottom';
|
|
3517
3630
|
}, [open, triggerRef]);
|
|
3631
|
+
const [transform, setTransform] = React.useState('');
|
|
3632
|
+
const target = flyoutRef.current?.parentNode ?? undefined;
|
|
3633
|
+
useMutationObserver(target, {
|
|
3634
|
+
attributes: true,
|
|
3635
|
+
attributeFilter: ['style']
|
|
3636
|
+
}, () => setTransform(target?.style?.transform ?? ''));
|
|
3518
3637
|
return /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3519
3638
|
items: items,
|
|
3520
3639
|
setItems: setItems,
|
|
@@ -3523,35 +3642,48 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3523
3642
|
searchValue: internalSearchValue,
|
|
3524
3643
|
isSearchFilteringDisabled,
|
|
3525
3644
|
isInteractive: !animatedLeft,
|
|
3526
|
-
flyoutRef
|
|
3645
|
+
flyoutRef,
|
|
3646
|
+
stickyBoxRef
|
|
3527
3647
|
}
|
|
3528
3648
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Portal, {
|
|
3529
3649
|
container: portalTarget || undefined
|
|
3530
3650
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3531
|
-
className: styles$4.maskContainer
|
|
3651
|
+
className: styles$4.maskContainer,
|
|
3652
|
+
id: maskContainerId
|
|
3532
3653
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Content, _extends__default["default"]({}, rest, {
|
|
3654
|
+
onCloseAutoFocus: () => triggerRef?.current?.focus(),
|
|
3533
3655
|
sideOffset: 6,
|
|
3534
|
-
loop:
|
|
3656
|
+
loop: !isSearchable,
|
|
3535
3657
|
side: side || defaultSide,
|
|
3536
3658
|
align: align || 'start',
|
|
3537
3659
|
ref: index.mergeRefs(ref, flyoutRef),
|
|
3538
3660
|
"data-testid": dataTestId,
|
|
3539
3661
|
className: classNames__default["default"](className, {
|
|
3540
|
-
[styles$4.animatedLeft]: animatedLeft
|
|
3541
|
-
[styles$4.containsStickyBox]: isSearchable
|
|
3662
|
+
[styles$4.animatedLeft]: animatedLeft
|
|
3542
3663
|
}, styles$4.flyout),
|
|
3664
|
+
onInteractOutside: onInteractOutside,
|
|
3543
3665
|
style: {
|
|
3544
3666
|
...style,
|
|
3545
|
-
height: internalSearchValue && openPaneDepth ===
|
|
3667
|
+
height: internalSearchValue && openPaneDepth === thisPanesDepth ? undefined : maskHeight ?? undefined
|
|
3546
3668
|
}
|
|
3547
3669
|
}), isSearchable && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3548
|
-
className: styles$4.stickyBox
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3670
|
+
className: classNames__default["default"](styles$4.stickyBox, styles$4.isSearchable),
|
|
3671
|
+
ref: stickyBoxRef
|
|
3672
|
+
}), noSearchResultsNode, children), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3673
|
+
className: styles$4.searchBoxesContainer,
|
|
3674
|
+
style: {
|
|
3675
|
+
transform,
|
|
3676
|
+
width: flyoutRef.current?.clientWidth
|
|
3677
|
+
}
|
|
3678
|
+
}, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
|
|
3679
|
+
let {
|
|
3680
|
+
id,
|
|
3681
|
+
...config
|
|
3682
|
+
} = _ref2;
|
|
3683
|
+
return /*#__PURE__*/React__default["default"].createElement(MenuSearch, _extends__default["default"]({
|
|
3684
|
+
key: id
|
|
3685
|
+
}, config));
|
|
3686
|
+
}) : null))));
|
|
3555
3687
|
});
|
|
3556
3688
|
|
|
3557
3689
|
const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -3572,16 +3704,22 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3572
3704
|
isSearchFilteringDisabled,
|
|
3573
3705
|
isInteractive,
|
|
3574
3706
|
closeSubmenu,
|
|
3575
|
-
flyoutRef
|
|
3707
|
+
flyoutRef,
|
|
3708
|
+
stickyBoxRef
|
|
3576
3709
|
} = usePaneContext(itemRef);
|
|
3710
|
+
const {
|
|
3711
|
+
isFocusVisible
|
|
3712
|
+
} = interactions.useFocusVisible({
|
|
3713
|
+
isTextInput: true
|
|
3714
|
+
});
|
|
3577
3715
|
const dataTestId = index.getSubDataTestId(menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index$1));
|
|
3578
3716
|
const isVisible = React.useMemo(() => {
|
|
3579
3717
|
const searchMatcher = label ?? (typeof children === 'string' ? children : undefined);
|
|
3580
3718
|
return isSearchFilteringDisabled || !searchValue || searchMatcher?.toLowerCase().includes(searchValue.toLowerCase());
|
|
3581
3719
|
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
3582
3720
|
const handleFocus = () => {
|
|
3583
|
-
if (itemRef.current && flyoutRef.current &&
|
|
3584
|
-
const stickyBoxHeight =
|
|
3721
|
+
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
3722
|
+
const stickyBoxHeight = stickyBoxRef.current?.clientHeight ?? 0;
|
|
3585
3723
|
|
|
3586
3724
|
// if the top of the focused menu item is beneath the sticky box
|
|
3587
3725
|
if (itemRef.current.offsetTop < flyoutRef.current.scrollTop + stickyBoxHeight) {
|
|
@@ -3627,19 +3765,14 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3627
3765
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren = false,
|
|
3628
3766
|
className,
|
|
3629
3767
|
style,
|
|
3768
|
+
onIsOpenChange,
|
|
3630
3769
|
...rest
|
|
3631
3770
|
} = _ref;
|
|
3632
3771
|
const [items, setItems] = React.useState([]);
|
|
3633
|
-
const {
|
|
3634
|
-
internalSearchValue,
|
|
3635
|
-
setSearchValue,
|
|
3636
|
-
zeroSearchResults,
|
|
3637
|
-
noMatchesText
|
|
3638
|
-
} = usePaneSearch(externalSearchValue, onSearchValueChange, items);
|
|
3639
3772
|
const internalId = index.useId();
|
|
3640
3773
|
const triggerRef = React.useRef(null);
|
|
3641
3774
|
const flyoutRef = React.useRef(null);
|
|
3642
|
-
const
|
|
3775
|
+
const stickyBoxRef = React.useRef(null);
|
|
3643
3776
|
const backButtonRef = React.useRef(null);
|
|
3644
3777
|
const {
|
|
3645
3778
|
dataTestId: paneContainingTriggerDataTestId,
|
|
@@ -3654,17 +3787,32 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3654
3787
|
registerSubmenu,
|
|
3655
3788
|
setMaskHeight
|
|
3656
3789
|
} = useMenuContext();
|
|
3790
|
+
const {
|
|
3791
|
+
isFocusVisible
|
|
3792
|
+
} = interactions.useFocusVisible();
|
|
3657
3793
|
const thisPanesDepth = React.useRef(totalOpenPaneDepth + 1).current;
|
|
3794
|
+
const [isPaneInDOM, setIsPaneInDOM] = React.useState(false);
|
|
3795
|
+
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = React.useState(false);
|
|
3796
|
+
const [isTransitioningFromRight, setIsTransitioningFromRight] = React.useState(false);
|
|
3797
|
+
const animatedLeft = React.useMemo(() => thisPanesDepth < totalOpenPaneDepth, [totalOpenPaneDepth, thisPanesDepth]);
|
|
3798
|
+
const animatedRight = React.useMemo(() => thisPanesDepth > totalOpenPaneDepth || isFrameAfterPaneAddedToDOM, [totalOpenPaneDepth, isFrameAfterPaneAddedToDOM, thisPanesDepth]);
|
|
3658
3799
|
const paneDataTestId = index.getSubDataTestId(paneContainingTriggerDataTestId, String(triggerIndex));
|
|
3800
|
+
const closeThisSubmenu = e => {
|
|
3801
|
+
// prevent closing the entire menu, and Radix keyboard navigation
|
|
3802
|
+
e.preventDefault();
|
|
3803
|
+
registerSubmenu(internalId, false);
|
|
3804
|
+
};
|
|
3805
|
+
const {
|
|
3806
|
+
internalSearchValue,
|
|
3807
|
+
noSearchResultsNode,
|
|
3808
|
+
onInteractOutside
|
|
3809
|
+
} = usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, animatedRight, paneDataTestId, internalId, flyoutRef, backButtonRef, closeThisSubmenu);
|
|
3659
3810
|
const backButtonDataTestId = paneDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_BACK);
|
|
3660
3811
|
const triggerDataTestId = paneDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM);
|
|
3661
3812
|
const triggerIsVisible = React.useMemo(() => {
|
|
3662
3813
|
var _context;
|
|
3663
3814
|
return isSearchFilteringDisabledForPaneContainingTrigger || !paneContainingTriggerSearchValue || typeof label === 'string' && _includesInstanceProperty__default["default"](_context = label.toLowerCase()).call(_context, paneContainingTriggerSearchValue.toLowerCase());
|
|
3664
3815
|
}, [paneContainingTriggerSearchValue, label, isSearchFilteringDisabledForPaneContainingTrigger]);
|
|
3665
|
-
const [isPaneInDOM, setIsPaneInDOM] = React.useState(false);
|
|
3666
|
-
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = React.useState(false);
|
|
3667
|
-
const [isTransitioningFromRight, setIsTransitioningFromRight] = React.useState(false);
|
|
3668
3816
|
index.useDidUpdate(() => {
|
|
3669
3817
|
if (isPaneInDOM) {
|
|
3670
3818
|
setIsTransitioningFromRight(true);
|
|
@@ -3673,13 +3821,19 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3673
3821
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
3674
3822
|
}
|
|
3675
3823
|
registerSubmenu(internalId, isPaneInDOM);
|
|
3824
|
+
onIsOpenChange?.(isPaneInDOM);
|
|
3676
3825
|
}, [isPaneInDOM]);
|
|
3826
|
+
|
|
3827
|
+
// Omitted dependencies because this should only run on unmount
|
|
3828
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3677
3829
|
React.useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
}
|
|
3830
|
+
index.useDidUpdate(() => {
|
|
3831
|
+
if (thisPanesDepth === totalOpenPaneDepth) {
|
|
3832
|
+
setMaskHeight(flyoutRef.current?.clientHeight ?? null);
|
|
3833
|
+
}
|
|
3834
|
+
},
|
|
3835
|
+
// ignoring other dependencies because this should only run when the children change
|
|
3836
|
+
[children]);
|
|
3683
3837
|
index.useDidUpdate(() => {
|
|
3684
3838
|
if (thisPanesDepth === totalOpenPaneDepth) {
|
|
3685
3839
|
window.requestAnimationFrame(() => {
|
|
@@ -3687,28 +3841,27 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3687
3841
|
});
|
|
3688
3842
|
}
|
|
3689
3843
|
}, [totalOpenPaneDepth, internalSearchValue]);
|
|
3690
|
-
const animatedLeft = React.useMemo(() => thisPanesDepth < totalOpenPaneDepth, [totalOpenPaneDepth]);
|
|
3691
|
-
const animatedRight = React.useMemo(() => thisPanesDepth > totalOpenPaneDepth || isFrameAfterPaneAddedToDOM, [totalOpenPaneDepth, isFrameAfterPaneAddedToDOM]);
|
|
3692
3844
|
const handlePaneTransitionEnd = () => {
|
|
3693
3845
|
if (animatedLeft) {
|
|
3694
3846
|
return;
|
|
3695
3847
|
}
|
|
3696
3848
|
if (animatedRight) {
|
|
3697
3849
|
setIsPaneInDOM(false);
|
|
3698
|
-
if (
|
|
3850
|
+
if (isFocusVisible) {
|
|
3699
3851
|
triggerRef.current?.focus();
|
|
3700
3852
|
}
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3853
|
+
return;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
// if the newly closed submenu doesn't place the focus on its trigger due to mouse events
|
|
3857
|
+
if (!flyoutRef.current?.contains(document.activeElement) && isFocusVisible) {
|
|
3858
|
+
if (triggerRef.current && paneContainingTriggerIsInteractive) {
|
|
3859
|
+
triggerRef.current.focus();
|
|
3860
|
+
} else if (backButtonRef.current) {
|
|
3861
|
+
backButtonRef.current.focus();
|
|
3709
3862
|
}
|
|
3710
|
-
setIsTransitioningFromRight(false);
|
|
3711
3863
|
}
|
|
3864
|
+
setIsTransitioningFromRight(false);
|
|
3712
3865
|
};
|
|
3713
3866
|
return triggerIsVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Sub, {
|
|
3714
3867
|
open: isPaneInDOM
|
|
@@ -3743,13 +3896,15 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3743
3896
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
|
|
3744
3897
|
isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
|
|
3745
3898
|
closeSubmenu: closeThisSubmenu,
|
|
3746
|
-
flyoutRef
|
|
3899
|
+
flyoutRef,
|
|
3900
|
+
stickyBoxRef
|
|
3747
3901
|
}
|
|
3748
3902
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
3749
|
-
loop:
|
|
3903
|
+
loop: !isSearchable,
|
|
3750
3904
|
"data-testid": paneDataTestId,
|
|
3751
3905
|
ref: index.mergeRefs(ref, flyoutRef),
|
|
3752
|
-
|
|
3906
|
+
onInteractOutside: onInteractOutside,
|
|
3907
|
+
className: classNames__default["default"](className, styles$4.flyout, {
|
|
3753
3908
|
[styles$4.animatedRight]: animatedRight,
|
|
3754
3909
|
[styles$4.animatedLeft]: animatedLeft
|
|
3755
3910
|
}),
|
|
@@ -3759,11 +3914,11 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3759
3914
|
zIndex: thisPanesDepth
|
|
3760
3915
|
}
|
|
3761
3916
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3762
|
-
className: styles$4.stickyBox
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
ref:
|
|
3766
|
-
}
|
|
3917
|
+
className: classNames__default["default"](styles$4.stickyBox, {
|
|
3918
|
+
[styles$4.isSearchable]: isSearchable
|
|
3919
|
+
}),
|
|
3920
|
+
ref: stickyBoxRef
|
|
3921
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, {
|
|
3767
3922
|
className: classNames__default["default"](styles$4.menuItem, {
|
|
3768
3923
|
[styles$4.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
|
|
3769
3924
|
}),
|
|
@@ -3779,77 +3934,12 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3779
3934
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.ArrowLeftIcon, {
|
|
3780
3935
|
size: "small",
|
|
3781
3936
|
className: styles$4.backIcon
|
|
3782
|
-
}), label)),
|
|
3783
|
-
className: classNames__default["default"](styles$4.menuItem, styles$4.noItems),
|
|
3784
|
-
"aria-live": "assertive"
|
|
3785
|
-
}, noMatchesText), children))) : null;
|
|
3937
|
+
}), label)), noSearchResultsNode, children))) : null;
|
|
3786
3938
|
});
|
|
3787
3939
|
|
|
3788
|
-
var css_248z$
|
|
3789
|
-
var styles$
|
|
3790
|
-
var stylesheet$
|
|
3791
|
-
icons_index.styleInject(css_248z$3);
|
|
3792
|
-
|
|
3793
|
-
/**
|
|
3794
|
-
* Adds an overlay to an area that obscures visibility and disables background elements.
|
|
3795
|
-
* @param {MutableRefObject} containerRef - A ref pointing to the DOM element to be filled by the overlay.
|
|
3796
|
-
* @param {boolean} isVisible - When true, displays overlay and disables all element behind it.
|
|
3797
|
-
* @param {React.MouseEventHandler} onClick - A function to be called when the overlay recieves a click event.
|
|
3798
|
-
* @param {string[]} ignoreIds - An array of ids belonging to elements that should not become inert when isInert is true.
|
|
3799
|
-
* @param {CSSProperties['zIndex']} zIndex - The zIndex of the overlay.
|
|
3800
|
-
* @param {string} dataTestId - A string to be added to the overlay element as a data-testid.
|
|
3801
|
-
*/
|
|
3802
|
-
const useOverlay = _ref => {
|
|
3803
|
-
let {
|
|
3804
|
-
containerRef,
|
|
3805
|
-
isVisible,
|
|
3806
|
-
onClick,
|
|
3807
|
-
ignoreIds = [],
|
|
3808
|
-
zIndex,
|
|
3809
|
-
dataTestId
|
|
3810
|
-
} = _ref;
|
|
3811
|
-
const overlayId = index.useId();
|
|
3812
|
-
React.useEffect(() => {
|
|
3813
|
-
const containerNode = containerRef?.current ?? document.body;
|
|
3814
|
-
const overlay = document.createElement('div');
|
|
3815
|
-
overlay.id = overlayId;
|
|
3816
|
-
overlay.classList.add(styles$3.overlay);
|
|
3817
|
-
if (onClick) overlay.addEventListener('click', onClick);
|
|
3818
|
-
if (dataTestId) overlay.dataset.testid = dataTestId;
|
|
3819
|
-
if (!isVisible) overlay.classList.add(styles$3.hidden);
|
|
3820
|
-
if (zIndex) overlay.style.zIndex = zIndex.toString();
|
|
3821
|
-
containerNode.appendChild(overlay);
|
|
3822
|
-
containerNode.style.position = 'relative';
|
|
3823
|
-
return () => {
|
|
3824
|
-
containerNode.style.position = 'static';
|
|
3825
|
-
containerNode.removeChild(overlay);
|
|
3826
|
-
};
|
|
3827
|
-
}, [containerRef, overlayId, isVisible, onClick, dataTestId, zIndex]);
|
|
3828
|
-
React.useEffect(() => {
|
|
3829
|
-
const containerNode = containerRef?.current ?? document.body;
|
|
3830
|
-
const overlayNode = document.getElementById(overlayId);
|
|
3831
|
-
if (isVisible) {
|
|
3832
|
-
Array.from(containerNode.children).forEach(child => {
|
|
3833
|
-
if (!_includesInstanceProperty__default["default"](ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
3834
|
-
});
|
|
3835
|
-
overlayNode?.classList.remove(styles$3.hidden);
|
|
3836
|
-
} else {
|
|
3837
|
-
Array.from(containerNode.children).forEach(child => {
|
|
3838
|
-
child.removeAttribute('inert');
|
|
3839
|
-
});
|
|
3840
|
-
overlayNode?.classList.add(styles$3.hidden);
|
|
3841
|
-
}
|
|
3842
|
-
return () => {
|
|
3843
|
-
Array.from(containerNode.children).forEach(child => {
|
|
3844
|
-
child.removeAttribute('inert');
|
|
3845
|
-
});
|
|
3846
|
-
};
|
|
3847
|
-
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3848
|
-
};
|
|
3849
|
-
|
|
3850
|
-
var css_248z$2 = "._qjffl{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._HItSr{visibility:hidden}._G-q2r{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._iiyNj{padding-top:8px}._bPPA8{margin-left:12px}";
|
|
3851
|
-
var styles$2 = {"drawer":"_qjffl","hidden":"_HItSr","header":"_G-q2r","title":"_iiyNj","closeButton":"_bPPA8"};
|
|
3852
|
-
var stylesheet$2="._qjffl{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._HItSr{visibility:hidden}._G-q2r{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._iiyNj{padding-top:8px}._bPPA8{margin-left:12px}";
|
|
3940
|
+
var css_248z$2 = "._KISov{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._saVLD{visibility:hidden}._7HFKK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._u8-E-{padding-top:8px}._PE2Wu{margin-left:12px}";
|
|
3941
|
+
var styles$2 = {"drawer":"_KISov","hidden":"_saVLD","header":"_7HFKK","title":"_u8-E-","closeButton":"_PE2Wu"};
|
|
3942
|
+
var stylesheet$2="._KISov{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._saVLD{visibility:hidden}._7HFKK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._u8-E-{padding-top:8px}._PE2Wu{margin-left:12px}";
|
|
3853
3943
|
icons_index.styleInject(css_248z$2);
|
|
3854
3944
|
|
|
3855
3945
|
const Drawer = _ref => {
|
|
@@ -3957,9 +4047,9 @@ const Drawer = _ref => {
|
|
|
3957
4047
|
}, children))), containerRef?.current ?? document.body) : null;
|
|
3958
4048
|
};
|
|
3959
4049
|
|
|
3960
|
-
var css_248z$1 = ".
|
|
3961
|
-
var styles$1 = {"container":"
|
|
3962
|
-
var stylesheet$1=".
|
|
4050
|
+
var css_248z$1 = "._HhWjR{display:inline-block;position:relative}._sItyq{width:120px}._sItyq ._HybLy._0wq1a{transform:rotate(-180deg)}._sItyq ._HybLy._MxBz9{fill:#9d9fa1;opacity:.4}._441Gw>input:focus{box-shadow:none!important;border:1px solid #898989!important}._YpFV8{width:120px}._YpFV8 ._DJO7p._aJeLD{background-color:#efefef;border-radius:6px}._HybLy{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HybLy._0wq1a{transform:rotate(-180deg)}";
|
|
4051
|
+
var styles$1 = {"container":"_HhWjR","input":"_sItyq","icon":"_HybLy","open":"_0wq1a","disabled":"_MxBz9","ignoreFocusStyle":"_441Gw","flyout":"_YpFV8","option":"_DJO7p","exactMatch":"_aJeLD"};
|
|
4052
|
+
var stylesheet$1="._HhWjR{display:inline-block;position:relative}._sItyq{width:120px}._sItyq ._HybLy._0wq1a{transform:rotate(-180deg)}._sItyq ._HybLy._MxBz9{fill:#9d9fa1;opacity:.4}._441Gw>input:focus{box-shadow:none!important;border:1px solid #898989!important}._YpFV8{width:120px}._YpFV8 ._DJO7p._aJeLD{background-color:#efefef;border-radius:6px}._HybLy{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HybLy._0wq1a{transform:rotate(-180deg)}";
|
|
3963
4053
|
icons_index.styleInject(css_248z$1);
|
|
3964
4054
|
|
|
3965
4055
|
const TimeDropdown = _ref => {
|
|
@@ -4538,9 +4628,9 @@ const {
|
|
|
4538
4628
|
Provider: ToggleButtonGroupContextProvider
|
|
4539
4629
|
} = index.createContextUtilities(null);
|
|
4540
4630
|
|
|
4541
|
-
var css_248z = ".
|
|
4542
|
-
var styles = {"default":"
|
|
4543
|
-
var stylesheet=".
|
|
4631
|
+
var css_248z = "._ya96d{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._xzvja{background-color:rgba(50,54,58,.08)}._tLW0s{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._EeQGX{color:rgba(81,85,89,.4);cursor:not-allowed}._8WUNr{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._HOvAe{color:#085caf;border-color:#085caf}._672ty,._HOvAe{background:rgba(11,110,208,.11)}._672ty{color:#0854a1;border-color:#0854a1}._vMjAP{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q{position:relative;display:inline-grid}._UKJ9Q svg{fill:currentColor}._UKJ9Q ._5N4wo{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._UKJ9Q ._5N4wo+._wE2Ld{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._UKJ9Q ._5N4wo+._wE2Ld._gAgzU{padding:5px;max-width:36px;min-width:36px}._UKJ9Q ._5N4wo+._wE2Ld._cTtDz{padding:0 16px}._UKJ9Q ._5N4wo+._wE2Ld._7qhIS{padding:0 16px 0 12px}._UKJ9Q ._5N4wo:hover+._wE2Ld{background-color:rgba(50,54,58,.08)}._UKJ9Q ._5N4wo:disabled+._wE2Ld{color:rgba(81,85,89,.4);cursor:not-allowed}._UKJ9Q ._5N4wo:active+._wE2Ld,._UKJ9Q ._5N4wo:focus:active+._wE2Ld{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._UKJ9Q ._5N4wo:checked+._wE2Ld{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._UKJ9Q ._5N4wo:checked:hover+._wE2Ld{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._UKJ9Q ._5N4wo:checked:disabled+._wE2Ld{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q ._5N4wo:checked:active+._wE2Ld,._UKJ9Q ._5N4wo:checked:focus:active+._wE2Ld{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._0bnrO{display:inline-flex;position:relative}._0bnrO:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._0bnrO>*{flex-shrink:0;flex-grow:0}._Dc5B1{border:none;margin:0;padding:0}._Dc5B1 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._UKJ9Q ._5N4wo.focus-visible+._wE2Ld,._UKJ9Q ._5N4wo:focus-visible+._wE2Ld{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4632
|
+
var styles = {"default":"_ya96d","hovered":"_xzvja","pressed":"_tLW0s","disabled":"_EeQGX","selectedDefault":"_8WUNr","selectedHovered":"_HOvAe","selectedPressed":"_672ty","selectedDisabled":"_vMjAP","toggleContainer":"_UKJ9Q","toggleInput":"_5N4wo","toggleButton":"_wE2Ld","iconOnly":"_gAgzU","text":"_cTtDz","iconText":"_7qhIS","toggleButtonGroup":"_0bnrO","toggleButtonGroupFieldset":"_Dc5B1"};
|
|
4633
|
+
var stylesheet="._ya96d{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._xzvja{background-color:rgba(50,54,58,.08)}._tLW0s{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._EeQGX{color:rgba(81,85,89,.4);cursor:not-allowed}._8WUNr{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._HOvAe{color:#085caf;border-color:#085caf}._672ty,._HOvAe{background:rgba(11,110,208,.11)}._672ty{color:#0854a1;border-color:#0854a1}._vMjAP{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q{position:relative;display:inline-grid}._UKJ9Q svg{fill:currentColor}._UKJ9Q ._5N4wo{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._UKJ9Q ._5N4wo+._wE2Ld{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._UKJ9Q ._5N4wo+._wE2Ld._gAgzU{padding:5px;max-width:36px;min-width:36px}._UKJ9Q ._5N4wo+._wE2Ld._cTtDz{padding:0 16px}._UKJ9Q ._5N4wo+._wE2Ld._7qhIS{padding:0 16px 0 12px}._UKJ9Q ._5N4wo:hover+._wE2Ld{background-color:rgba(50,54,58,.08)}._UKJ9Q ._5N4wo:disabled+._wE2Ld{color:rgba(81,85,89,.4);cursor:not-allowed}._UKJ9Q ._5N4wo:active+._wE2Ld,._UKJ9Q ._5N4wo:focus:active+._wE2Ld{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._UKJ9Q ._5N4wo:checked+._wE2Ld{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._UKJ9Q ._5N4wo:checked:hover+._wE2Ld{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._UKJ9Q ._5N4wo:checked:disabled+._wE2Ld{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q ._5N4wo:checked:active+._wE2Ld,._UKJ9Q ._5N4wo:checked:focus:active+._wE2Ld{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._0bnrO{display:inline-flex;position:relative}._0bnrO:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._0bnrO>*{flex-shrink:0;flex-grow:0}._Dc5B1{border:none;margin:0;padding:0}._Dc5B1 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._UKJ9Q ._5N4wo.focus-visible+._wE2Ld,._UKJ9Q ._5N4wo:focus-visible+._wE2Ld{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4544
4634
|
icons_index.styleInject(css_248z);
|
|
4545
4635
|
|
|
4546
4636
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|