@qualtrics/ui-react 2.19.1 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -20
- package/dist/__shared/cjs/{index-4a5425cc.js → index-0ae99de2.js} +3 -3
- package/dist/__shared/cjs/{index-384184bd.js → index-201e8786.js} +193 -263
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -2
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +0 -7
- package/dist/components/ColorPicker/ColorPicker.js +5 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/Hue.js +0 -7
- package/dist/components/ColorPicker/Palette.js +6 -4
- package/dist/components/ColorPicker/Saturation.js +0 -9
- package/dist/components/Combobox/Combobox.js +8 -6
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +0 -5
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +2 -5
- package/dist/components/Dropdown/DropdownSearch.js +2 -5
- package/dist/components/FilePicker/FilePicker.js +0 -7
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +9 -8
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +7 -5
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +0 -27
- package/dist/hooks/useEventListener/useEventListener.js +3 -0
- package/dist/hooks/useOverlay/useOverlay.js +5 -2
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +33 -45
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -2
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +6 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +13 -6
- package/dist/next/Menu/MenuItem.js +10 -4
- package/dist/next/Menu/MenuPane.js +55 -37
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +54 -41
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +97 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +6 -4
- package/dist/next/index.js +387 -290
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/index.js +0 -1
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +3 -3
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
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,25 +3295,36 @@ 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
|
-
const
|
|
3305
|
+
const AsChildWrapper = _ref => {
|
|
3306
|
+
let {
|
|
3307
|
+
asChild,
|
|
3308
|
+
children
|
|
3309
|
+
} = _ref;
|
|
3310
|
+
return asChild ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3311
|
+
className: styles$4.buttonContainer
|
|
3312
|
+
}, children);
|
|
3313
|
+
};
|
|
3314
|
+
const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref) => {
|
|
3308
3315
|
let {
|
|
3309
3316
|
asChild,
|
|
3310
3317
|
children,
|
|
3311
3318
|
className,
|
|
3312
3319
|
...rest
|
|
3313
|
-
} =
|
|
3320
|
+
} = _ref2;
|
|
3314
3321
|
const {
|
|
3315
3322
|
dataTestId: rootDataTestId,
|
|
3316
3323
|
isDisabled,
|
|
3317
3324
|
triggerRef
|
|
3318
3325
|
} = useMenuContext();
|
|
3319
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
3320
|
-
|
|
3321
|
-
[styles$4.buttonContainer]: !asChild
|
|
3322
|
-
})
|
|
3326
|
+
return /*#__PURE__*/React__default["default"].createElement(AsChildWrapper, {
|
|
3327
|
+
asChild: asChild
|
|
3323
3328
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Trigger, _extends__default["default"]({}, rest, {
|
|
3324
3329
|
"aria-disabled": isDisabled,
|
|
3325
3330
|
className: classNames__default["default"](className, {
|
|
@@ -3336,97 +3341,213 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
3336
3341
|
|
|
3337
3342
|
const MenuSearch = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3338
3343
|
let {
|
|
3339
|
-
setSearchValue
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
const {
|
|
3344
|
-
translate
|
|
3345
|
-
} = index.useTranslation();
|
|
3346
|
-
const searchText = translate('searchText');
|
|
3347
|
-
const {
|
|
3348
|
-
dataTestId: menuParentDataTestId,
|
|
3344
|
+
setSearchValue,
|
|
3345
|
+
animatedLeft,
|
|
3346
|
+
animatedRight,
|
|
3347
|
+
dataTestId,
|
|
3349
3348
|
searchValue = '',
|
|
3350
|
-
isInteractive,
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
const dataTestId = menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH);
|
|
3355
|
-
React.useEffect(() => () => setSearchValue(''), [setSearchValue]);
|
|
3356
|
-
const [previouslyFocusedElement, setPreviouslyFocusedElement] = React.useState();
|
|
3357
|
-
|
|
3358
|
-
// hack to keep focus on search input on mouse leave
|
|
3359
|
-
index.useEventListener(flyoutRef, 'focus', e => {
|
|
3360
|
-
if (e.target === e.currentTarget && previouslyFocusedElement === itemRef.current && isInteractive) {
|
|
3361
|
-
inputRef.current?.focus();
|
|
3362
|
-
}
|
|
3363
|
-
setPreviouslyFocusedElement(e.target);
|
|
3364
|
-
}, {
|
|
3365
|
-
isCaptureEvent: true
|
|
3366
|
-
});
|
|
3367
|
-
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", {
|
|
3368
3353
|
className: classNames__default["default"](styles$4.searchBox, {
|
|
3369
|
-
[styles$4.unresponsive]: !isInteractive
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
,
|
|
3373
|
-
|
|
3374
|
-
onFocus: () => inputRef.current?.focus(),
|
|
3375
|
-
role: undefined,
|
|
3376
|
-
ref: index.mergeRefs(itemRef, ref)
|
|
3354
|
+
[styles$4.unresponsive]: !isInteractive,
|
|
3355
|
+
[styles$4.animatedLeft]: animatedLeft,
|
|
3356
|
+
[styles$4.animatedRight]: animatedRight
|
|
3357
|
+
}),
|
|
3358
|
+
ref: ref
|
|
3377
3359
|
}, /*#__PURE__*/React__default["default"].createElement(index.Input$1, {
|
|
3378
3360
|
"data-testid": dataTestId,
|
|
3379
3361
|
role: "searchbox",
|
|
3380
3362
|
value: searchValue,
|
|
3381
3363
|
onChange: e => setSearchValue(e.target.value),
|
|
3382
|
-
placeholder:
|
|
3383
|
-
onKeyDown: e => {
|
|
3384
|
-
var _context, _context2;
|
|
3385
|
-
// stop propagation to prevent typeAhead
|
|
3386
|
-
e.stopPropagation();
|
|
3387
|
-
|
|
3388
|
-
// allow caret movement through text entry, but close searchable submenu if on the very left
|
|
3389
|
-
if (e.target?.selectionStart === 0 && _includesInstanceProperty__default["default"](_context = KEYS.CLOSE_SUBMENU).call(_context, e.key)) {
|
|
3390
|
-
closeSubmenu?.(e);
|
|
3391
|
-
return;
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
// forward keypress directly to `Item` to let Radix handle keyboard navigation
|
|
3395
|
-
if (_includesInstanceProperty__default["default"](_context2 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context2, e.key)) {
|
|
3396
|
-
// `view` types are incompatible
|
|
3397
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3398
|
-
const {
|
|
3399
|
-
view,
|
|
3400
|
-
...eventClone
|
|
3401
|
-
} = e;
|
|
3402
|
-
itemRef?.current?.dispatchEvent(new KeyboardEvent('keydown', eventClone));
|
|
3403
|
-
}
|
|
3404
|
-
},
|
|
3364
|
+
placeholder: searchPlaceholder,
|
|
3405
3365
|
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, null),
|
|
3406
|
-
ref: inputRef,
|
|
3407
3366
|
className: styles$4.searchInput
|
|
3408
|
-
}))
|
|
3367
|
+
}));
|
|
3409
3368
|
});
|
|
3410
3369
|
|
|
3411
3370
|
// abstracts the logic required for searching by both `MenuPane` and `SubMenu`
|
|
3412
|
-
|
|
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;
|
|
3413
3376
|
const [internalSearchValue, setSearchValue] = index.useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
3414
3377
|
const [zeroSearchResults, setZeroSearchResults] = React.useState();
|
|
3415
3378
|
const {
|
|
3416
3379
|
translate
|
|
3417
3380
|
} = index.useTranslation();
|
|
3418
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]);
|
|
3419
3426
|
React.useEffect(() => {
|
|
3420
|
-
|
|
3421
|
-
|
|
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);
|
|
3422
3465
|
return {
|
|
3423
3466
|
internalSearchValue,
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
noMatchesText
|
|
3467
|
+
noSearchResultsNode,
|
|
3468
|
+
onInteractOutside
|
|
3427
3469
|
};
|
|
3428
3470
|
}
|
|
3429
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
|
+
|
|
3430
3551
|
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3431
3552
|
let {
|
|
3432
3553
|
placement,
|
|
@@ -3441,12 +3562,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3441
3562
|
} = _ref;
|
|
3442
3563
|
const [items, setItems] = React.useState([]);
|
|
3443
3564
|
const flyoutRef = React.useRef(null);
|
|
3444
|
-
const
|
|
3445
|
-
internalSearchValue,
|
|
3446
|
-
setSearchValue,
|
|
3447
|
-
zeroSearchResults,
|
|
3448
|
-
noMatchesText
|
|
3449
|
-
} = usePaneSearch(externalSearchValue, onSearchValueChange, items);
|
|
3565
|
+
const stickyBoxRef = React.useRef(null);
|
|
3450
3566
|
const portalTarget = index.usePortalTarget();
|
|
3451
3567
|
const [side, align] = React.useMemo(() => placement?.split?.('-') ?? [], [placement]);
|
|
3452
3568
|
const {
|
|
@@ -3455,14 +3571,29 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3455
3571
|
setMaskHeight,
|
|
3456
3572
|
maskHeight,
|
|
3457
3573
|
open,
|
|
3458
|
-
triggerRef
|
|
3574
|
+
triggerRef,
|
|
3575
|
+
searchBarConfigs
|
|
3459
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);
|
|
3460
3591
|
|
|
3461
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.
|
|
3462
3593
|
// We cache the pixel value here, to use it later if the user returns to this pane from a submenu.
|
|
3463
3594
|
const initialHeightOfThisPane = React.useRef(null);
|
|
3464
3595
|
index.useDidUpdate(() => {
|
|
3465
|
-
if (openPaneDepth ===
|
|
3596
|
+
if (openPaneDepth === thisPanesDepth) {
|
|
3466
3597
|
if (initialHeightOfThisPane.current === null) {
|
|
3467
3598
|
window.requestAnimationFrame(() => {
|
|
3468
3599
|
initialHeightOfThisPane.current = flyoutRef.current?.clientHeight ?? null;
|
|
@@ -3473,17 +3604,6 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3473
3604
|
}
|
|
3474
3605
|
}
|
|
3475
3606
|
}, [openPaneDepth]);
|
|
3476
|
-
const dataTestId = index.getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
3477
|
-
const animatedLeft = React.useMemo(() => openPaneDepth > 1, [openPaneDepth]);
|
|
3478
|
-
index.useEventListener(flyoutRef, 'keydown', e => {
|
|
3479
|
-
var _context;
|
|
3480
|
-
return _includesInstanceProperty__default["default"](_context = Object.values(KEYS).flat()).call(_context, e.key) && index.setIsKeyboardUser(true);
|
|
3481
|
-
}, {
|
|
3482
|
-
additionalDependencies: [openPaneDepth]
|
|
3483
|
-
});
|
|
3484
|
-
index.useEventListener(flyoutRef, 'pointerenter', () => index.setIsKeyboardUser(false), {
|
|
3485
|
-
additionalDependencies: [openPaneDepth]
|
|
3486
|
-
});
|
|
3487
3607
|
const defaultSide = React.useMemo(() => {
|
|
3488
3608
|
const rect = triggerRef?.current?.getBoundingClientRect();
|
|
3489
3609
|
if (!rect) {
|
|
@@ -3508,6 +3628,12 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3508
3628
|
}
|
|
3509
3629
|
return 'bottom';
|
|
3510
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 ?? ''));
|
|
3511
3637
|
return /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3512
3638
|
items: items,
|
|
3513
3639
|
setItems: setItems,
|
|
@@ -3516,35 +3642,48 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3516
3642
|
searchValue: internalSearchValue,
|
|
3517
3643
|
isSearchFilteringDisabled,
|
|
3518
3644
|
isInteractive: !animatedLeft,
|
|
3519
|
-
flyoutRef
|
|
3645
|
+
flyoutRef,
|
|
3646
|
+
stickyBoxRef
|
|
3520
3647
|
}
|
|
3521
3648
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Portal, {
|
|
3522
3649
|
container: portalTarget || undefined
|
|
3523
3650
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3524
|
-
className: styles$4.maskContainer
|
|
3651
|
+
className: styles$4.maskContainer,
|
|
3652
|
+
id: maskContainerId
|
|
3525
3653
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Content, _extends__default["default"]({}, rest, {
|
|
3654
|
+
onCloseAutoFocus: () => triggerRef?.current?.focus(),
|
|
3526
3655
|
sideOffset: 6,
|
|
3527
|
-
loop:
|
|
3656
|
+
loop: !isSearchable,
|
|
3528
3657
|
side: side || defaultSide,
|
|
3529
3658
|
align: align || 'start',
|
|
3530
3659
|
ref: index.mergeRefs(ref, flyoutRef),
|
|
3531
3660
|
"data-testid": dataTestId,
|
|
3532
3661
|
className: classNames__default["default"](className, {
|
|
3533
|
-
[styles$4.animatedLeft]: animatedLeft
|
|
3534
|
-
[styles$4.containsStickyBox]: isSearchable
|
|
3662
|
+
[styles$4.animatedLeft]: animatedLeft
|
|
3535
3663
|
}, styles$4.flyout),
|
|
3664
|
+
onInteractOutside: onInteractOutside,
|
|
3536
3665
|
style: {
|
|
3537
3666
|
...style,
|
|
3538
|
-
height: internalSearchValue && openPaneDepth ===
|
|
3667
|
+
height: internalSearchValue && openPaneDepth === thisPanesDepth ? undefined : maskHeight ?? undefined
|
|
3539
3668
|
}
|
|
3540
3669
|
}), isSearchable && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3541
|
-
className: styles$4.stickyBox
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
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))));
|
|
3548
3687
|
});
|
|
3549
3688
|
|
|
3550
3689
|
const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -3565,16 +3704,22 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3565
3704
|
isSearchFilteringDisabled,
|
|
3566
3705
|
isInteractive,
|
|
3567
3706
|
closeSubmenu,
|
|
3568
|
-
flyoutRef
|
|
3707
|
+
flyoutRef,
|
|
3708
|
+
stickyBoxRef
|
|
3569
3709
|
} = usePaneContext(itemRef);
|
|
3710
|
+
const {
|
|
3711
|
+
isFocusVisible
|
|
3712
|
+
} = interactions.useFocusVisible({
|
|
3713
|
+
isTextInput: true
|
|
3714
|
+
});
|
|
3570
3715
|
const dataTestId = index.getSubDataTestId(menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index$1));
|
|
3571
3716
|
const isVisible = React.useMemo(() => {
|
|
3572
3717
|
const searchMatcher = label ?? (typeof children === 'string' ? children : undefined);
|
|
3573
3718
|
return isSearchFilteringDisabled || !searchValue || searchMatcher?.toLowerCase().includes(searchValue.toLowerCase());
|
|
3574
3719
|
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
3575
3720
|
const handleFocus = () => {
|
|
3576
|
-
if (itemRef.current && flyoutRef.current &&
|
|
3577
|
-
const stickyBoxHeight =
|
|
3721
|
+
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
3722
|
+
const stickyBoxHeight = stickyBoxRef.current?.clientHeight ?? 0;
|
|
3578
3723
|
|
|
3579
3724
|
// if the top of the focused menu item is beneath the sticky box
|
|
3580
3725
|
if (itemRef.current.offsetTop < flyoutRef.current.scrollTop + stickyBoxHeight) {
|
|
@@ -3620,19 +3765,14 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3620
3765
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren = false,
|
|
3621
3766
|
className,
|
|
3622
3767
|
style,
|
|
3768
|
+
onIsOpenChange,
|
|
3623
3769
|
...rest
|
|
3624
3770
|
} = _ref;
|
|
3625
3771
|
const [items, setItems] = React.useState([]);
|
|
3626
|
-
const {
|
|
3627
|
-
internalSearchValue,
|
|
3628
|
-
setSearchValue,
|
|
3629
|
-
zeroSearchResults,
|
|
3630
|
-
noMatchesText
|
|
3631
|
-
} = usePaneSearch(externalSearchValue, onSearchValueChange, items);
|
|
3632
3772
|
const internalId = index.useId();
|
|
3633
3773
|
const triggerRef = React.useRef(null);
|
|
3634
3774
|
const flyoutRef = React.useRef(null);
|
|
3635
|
-
const
|
|
3775
|
+
const stickyBoxRef = React.useRef(null);
|
|
3636
3776
|
const backButtonRef = React.useRef(null);
|
|
3637
3777
|
const {
|
|
3638
3778
|
dataTestId: paneContainingTriggerDataTestId,
|
|
@@ -3647,17 +3787,32 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3647
3787
|
registerSubmenu,
|
|
3648
3788
|
setMaskHeight
|
|
3649
3789
|
} = useMenuContext();
|
|
3790
|
+
const {
|
|
3791
|
+
isFocusVisible
|
|
3792
|
+
} = interactions.useFocusVisible();
|
|
3650
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]);
|
|
3651
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);
|
|
3652
3810
|
const backButtonDataTestId = paneDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_BACK);
|
|
3653
3811
|
const triggerDataTestId = paneDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM);
|
|
3654
3812
|
const triggerIsVisible = React.useMemo(() => {
|
|
3655
3813
|
var _context;
|
|
3656
3814
|
return isSearchFilteringDisabledForPaneContainingTrigger || !paneContainingTriggerSearchValue || typeof label === 'string' && _includesInstanceProperty__default["default"](_context = label.toLowerCase()).call(_context, paneContainingTriggerSearchValue.toLowerCase());
|
|
3657
3815
|
}, [paneContainingTriggerSearchValue, label, isSearchFilteringDisabledForPaneContainingTrigger]);
|
|
3658
|
-
const [isPaneInDOM, setIsPaneInDOM] = React.useState(false);
|
|
3659
|
-
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = React.useState(false);
|
|
3660
|
-
const [isTransitioningFromRight, setIsTransitioningFromRight] = React.useState(false);
|
|
3661
3816
|
index.useDidUpdate(() => {
|
|
3662
3817
|
if (isPaneInDOM) {
|
|
3663
3818
|
setIsTransitioningFromRight(true);
|
|
@@ -3666,13 +3821,19 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3666
3821
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
3667
3822
|
}
|
|
3668
3823
|
registerSubmenu(internalId, isPaneInDOM);
|
|
3824
|
+
onIsOpenChange?.(isPaneInDOM);
|
|
3669
3825
|
}, [isPaneInDOM]);
|
|
3826
|
+
|
|
3827
|
+
// Omitted dependencies because this should only run on unmount
|
|
3828
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3670
3829
|
React.useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
}
|
|
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]);
|
|
3676
3837
|
index.useDidUpdate(() => {
|
|
3677
3838
|
if (thisPanesDepth === totalOpenPaneDepth) {
|
|
3678
3839
|
window.requestAnimationFrame(() => {
|
|
@@ -3680,28 +3841,27 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3680
3841
|
});
|
|
3681
3842
|
}
|
|
3682
3843
|
}, [totalOpenPaneDepth, internalSearchValue]);
|
|
3683
|
-
const animatedLeft = React.useMemo(() => thisPanesDepth < totalOpenPaneDepth, [totalOpenPaneDepth]);
|
|
3684
|
-
const animatedRight = React.useMemo(() => thisPanesDepth > totalOpenPaneDepth || isFrameAfterPaneAddedToDOM, [totalOpenPaneDepth, isFrameAfterPaneAddedToDOM]);
|
|
3685
3844
|
const handlePaneTransitionEnd = () => {
|
|
3686
3845
|
if (animatedLeft) {
|
|
3687
3846
|
return;
|
|
3688
3847
|
}
|
|
3689
3848
|
if (animatedRight) {
|
|
3690
3849
|
setIsPaneInDOM(false);
|
|
3691
|
-
if (
|
|
3850
|
+
if (isFocusVisible) {
|
|
3692
3851
|
triggerRef.current?.focus();
|
|
3693
3852
|
}
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
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();
|
|
3702
3862
|
}
|
|
3703
|
-
setIsTransitioningFromRight(false);
|
|
3704
3863
|
}
|
|
3864
|
+
setIsTransitioningFromRight(false);
|
|
3705
3865
|
};
|
|
3706
3866
|
return triggerIsVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Sub, {
|
|
3707
3867
|
open: isPaneInDOM
|
|
@@ -3736,13 +3896,15 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3736
3896
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
|
|
3737
3897
|
isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
|
|
3738
3898
|
closeSubmenu: closeThisSubmenu,
|
|
3739
|
-
flyoutRef
|
|
3899
|
+
flyoutRef,
|
|
3900
|
+
stickyBoxRef
|
|
3740
3901
|
}
|
|
3741
3902
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
3742
|
-
loop:
|
|
3903
|
+
loop: !isSearchable,
|
|
3743
3904
|
"data-testid": paneDataTestId,
|
|
3744
3905
|
ref: index.mergeRefs(ref, flyoutRef),
|
|
3745
|
-
|
|
3906
|
+
onInteractOutside: onInteractOutside,
|
|
3907
|
+
className: classNames__default["default"](className, styles$4.flyout, {
|
|
3746
3908
|
[styles$4.animatedRight]: animatedRight,
|
|
3747
3909
|
[styles$4.animatedLeft]: animatedLeft
|
|
3748
3910
|
}),
|
|
@@ -3752,11 +3914,11 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3752
3914
|
zIndex: thisPanesDepth
|
|
3753
3915
|
}
|
|
3754
3916
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3755
|
-
className: styles$4.stickyBox
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
ref:
|
|
3759
|
-
}
|
|
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, {
|
|
3760
3922
|
className: classNames__default["default"](styles$4.menuItem, {
|
|
3761
3923
|
[styles$4.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
|
|
3762
3924
|
}),
|
|
@@ -3772,77 +3934,12 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3772
3934
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.ArrowLeftIcon, {
|
|
3773
3935
|
size: "small",
|
|
3774
3936
|
className: styles$4.backIcon
|
|
3775
|
-
}), label)),
|
|
3776
|
-
className: classNames__default["default"](styles$4.menuItem, styles$4.noItems),
|
|
3777
|
-
"aria-live": "assertive"
|
|
3778
|
-
}, noMatchesText), children))) : null;
|
|
3937
|
+
}), label)), noSearchResultsNode, children))) : null;
|
|
3779
3938
|
});
|
|
3780
3939
|
|
|
3781
|
-
var css_248z$
|
|
3782
|
-
var styles$
|
|
3783
|
-
var stylesheet$
|
|
3784
|
-
icons_index.styleInject(css_248z$3);
|
|
3785
|
-
|
|
3786
|
-
/**
|
|
3787
|
-
* Adds an overlay to an area that obscures visibility and disables background elements.
|
|
3788
|
-
* @param {MutableRefObject} containerRef - A ref pointing to the DOM element to be filled by the overlay.
|
|
3789
|
-
* @param {boolean} isVisible - When true, displays overlay and disables all element behind it.
|
|
3790
|
-
* @param {React.MouseEventHandler} onClick - A function to be called when the overlay recieves a click event.
|
|
3791
|
-
* @param {string[]} ignoreIds - An array of ids belonging to elements that should not become inert when isInert is true.
|
|
3792
|
-
* @param {CSSProperties['zIndex']} zIndex - The zIndex of the overlay.
|
|
3793
|
-
* @param {string} dataTestId - A string to be added to the overlay element as a data-testid.
|
|
3794
|
-
*/
|
|
3795
|
-
const useOverlay = _ref => {
|
|
3796
|
-
let {
|
|
3797
|
-
containerRef,
|
|
3798
|
-
isVisible,
|
|
3799
|
-
onClick,
|
|
3800
|
-
ignoreIds = [],
|
|
3801
|
-
zIndex,
|
|
3802
|
-
dataTestId
|
|
3803
|
-
} = _ref;
|
|
3804
|
-
const overlayId = index.useId();
|
|
3805
|
-
React.useEffect(() => {
|
|
3806
|
-
const containerNode = containerRef?.current ?? document.body;
|
|
3807
|
-
const overlay = document.createElement('div');
|
|
3808
|
-
overlay.id = overlayId;
|
|
3809
|
-
overlay.classList.add(styles$3.overlay);
|
|
3810
|
-
if (onClick) overlay.addEventListener('click', onClick);
|
|
3811
|
-
if (dataTestId) overlay.dataset.testid = dataTestId;
|
|
3812
|
-
if (!isVisible) overlay.classList.add(styles$3.hidden);
|
|
3813
|
-
if (zIndex) overlay.style.zIndex = zIndex.toString();
|
|
3814
|
-
containerNode.appendChild(overlay);
|
|
3815
|
-
containerNode.style.position = 'relative';
|
|
3816
|
-
return () => {
|
|
3817
|
-
containerNode.style.position = 'static';
|
|
3818
|
-
containerNode.removeChild(overlay);
|
|
3819
|
-
};
|
|
3820
|
-
}, [containerRef, overlayId, isVisible, onClick, dataTestId, zIndex]);
|
|
3821
|
-
React.useEffect(() => {
|
|
3822
|
-
const containerNode = containerRef?.current ?? document.body;
|
|
3823
|
-
const overlayNode = document.getElementById(overlayId);
|
|
3824
|
-
if (isVisible) {
|
|
3825
|
-
Array.from(containerNode.children).forEach(child => {
|
|
3826
|
-
if (!_includesInstanceProperty__default["default"](ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
3827
|
-
});
|
|
3828
|
-
overlayNode?.classList.remove(styles$3.hidden);
|
|
3829
|
-
} else {
|
|
3830
|
-
Array.from(containerNode.children).forEach(child => {
|
|
3831
|
-
child.removeAttribute('inert');
|
|
3832
|
-
});
|
|
3833
|
-
overlayNode?.classList.add(styles$3.hidden);
|
|
3834
|
-
}
|
|
3835
|
-
return () => {
|
|
3836
|
-
Array.from(containerNode.children).forEach(child => {
|
|
3837
|
-
child.removeAttribute('inert');
|
|
3838
|
-
});
|
|
3839
|
-
};
|
|
3840
|
-
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3841
|
-
};
|
|
3842
|
-
|
|
3843
|
-
var css_248z$2 = "._J7cVG{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}._9XV1R{visibility:hidden}._Mdjdm{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._XhETZ{padding-top:8px}._RT7Ji{margin-left:12px}";
|
|
3844
|
-
var styles$2 = {"drawer":"_J7cVG","hidden":"_9XV1R","header":"_Mdjdm","title":"_XhETZ","closeButton":"_RT7Ji"};
|
|
3845
|
-
var stylesheet$2="._J7cVG{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}._9XV1R{visibility:hidden}._Mdjdm{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._XhETZ{padding-top:8px}._RT7Ji{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}";
|
|
3846
3943
|
icons_index.styleInject(css_248z$2);
|
|
3847
3944
|
|
|
3848
3945
|
const Drawer = _ref => {
|
|
@@ -3950,9 +4047,9 @@ const Drawer = _ref => {
|
|
|
3950
4047
|
}, children))), containerRef?.current ?? document.body) : null;
|
|
3951
4048
|
};
|
|
3952
4049
|
|
|
3953
|
-
var css_248z$1 = ".
|
|
3954
|
-
var styles$1 = {"container":"
|
|
3955
|
-
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)}";
|
|
3956
4053
|
icons_index.styleInject(css_248z$1);
|
|
3957
4054
|
|
|
3958
4055
|
const TimeDropdown = _ref => {
|
|
@@ -4531,9 +4628,9 @@ const {
|
|
|
4531
4628
|
Provider: ToggleButtonGroupContextProvider
|
|
4532
4629
|
} = index.createContextUtilities(null);
|
|
4533
4630
|
|
|
4534
|
-
var css_248z = ".
|
|
4535
|
-
var styles = {"default":"
|
|
4536
|
-
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}";
|
|
4537
4634
|
icons_index.styleInject(css_248z);
|
|
4538
4635
|
|
|
4539
4636
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|