@qualtrics/ui-react 2.31.0 → 2.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -13
- package/dist/__shared/cjs/{index-434a3b72.js → index-2694aefb.js} +297 -223
- package/dist/__shared/cjs/{index-c13fc74c.js → index-b8635002.js} +39 -4
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Banner/Banner.css.js +12 -13
- package/dist/components/Banner/Banner.css.ts.vanilla.js +3 -3
- package/dist/components/Banner/Banner.js +2 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox.js +0 -1
- 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 -2
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +2 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +9 -0
- package/dist/components/IconButton/IconButton.js +0 -1
- 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/Modal.js +1 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +13 -7
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +81 -38
- package/dist/components/NewMenu/parts/MenuItem.js +16 -5
- 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/SearchInput.js +0 -1
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -0
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tab.js +0 -2
- package/dist/components/Tabs/TabList.js +0 -4
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +1 -2
- 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/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/AIEntityIcon.js +6 -0
- package/dist/icons/components/AISparkIcon.js +6 -0
- package/dist/icons/components/ButtonSelectorIcon.js +6 -0
- package/dist/icons/components/DropListSelectorIcon.js +6 -0
- package/dist/icons/components/HeatMapDiscoverIcon.js +6 -0
- package/dist/icons/components/HighlightPenSwatchIcon.js +6 -0
- package/dist/icons/components/HighlightSwatchIcon.js +6 -0
- package/dist/icons/components/MetricWidgetIcon.js +6 -0
- package/dist/icons/components/SearchSelectorIcon.js +6 -0
- package/dist/icons/createIconComponent.js +0 -1
- package/dist/icons/index.d.ts +24 -0
- package/dist/icons/index.es.js +9 -0
- package/dist/icons/index.js +10 -1
- package/dist/index.d.ts +1308 -154
- package/dist/index.es.js +1 -1
- package/dist/index.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +0 -5
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +0 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +0 -1
- package/dist/next/Combobox/ComboboxInput.js +0 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +0 -1
- package/dist/next/Drawer/Drawer.js +0 -1
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input.js +0 -1
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/useCSSVariable.js +5 -5
- package/dist/next/Menu/Hooks/useMaskDimensions.js +10 -12
- package/dist/next/Menu/Hooks/usePaneSearch.js +2 -4
- package/dist/next/Menu/Menu.js +21 -8
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuPane.js +55 -18
- package/dist/next/Menu/PaneChildren.js +6 -3
- package/dist/next/Menu/SubMenu.js +11 -7
- package/dist/next/Menu/constants.js +4 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/StackItem.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 +531 -32
- package/dist/next/index.js +172 -149
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Text/Text.js +2 -2
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +0 -1
- package/dist/utils/constants.js +0 -1
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +8 -5
package/dist/next/index.js
CHANGED
|
@@ -8,8 +8,8 @@ var classNames = require('classnames');
|
|
|
8
8
|
var reactDnd = require('react-dnd');
|
|
9
9
|
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
10
10
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
11
|
-
var index = require('../__shared/cjs/index-
|
|
12
|
-
var icons_index = require('../__shared/cjs/index-
|
|
11
|
+
var index = require('../__shared/cjs/index-2694aefb.js');
|
|
12
|
+
var icons_index = require('../__shared/cjs/index-b8635002.js');
|
|
13
13
|
var ReactDOM = require('react-dom');
|
|
14
14
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
15
15
|
var resizeObserver = require('@juggle/resize-observer');
|
|
@@ -32,9 +32,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
32
32
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
33
33
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
34
34
|
|
|
35
|
-
var css_248z$c = ".
|
|
36
|
-
var styles$b = {"advancedTable":"
|
|
37
|
-
var stylesheet$c=".
|
|
35
|
+
var css_248z$c = "._zE2ga{overflow:auto;position:relative;max-width:100%;max-height:100%}._nC7aA,._zE2ga{background-color:#fff}._nC7aA{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._pdeF0{margin-bottom:4px}._geCQO{position:-webkit-sticky;position:sticky;top:0;z-index:100}._EvMIH{display:flex}._EvMIH:focus{outline:none}._EvMIH.focus-visible ._-ez-x:after,._EvMIH:focus-visible ._-ez-x: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}._EvMIH.focus-visible ._-ez-x:last-of-type:after,._EvMIH:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._EvMIH.focus-visible ._-ez-x:first-of-type:after,._EvMIH:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._EvMIH.focus-visible ._-ez-x._noajy:after,._EvMIH:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:1px}._DcWcK{padding-right:3px}._GriRO{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._xWYOp{display:flex}._xWYOp._kS0jJ ._-ez-x,._xWYOp._kS0jJ ._GH1m7{cursor:pointer}._xWYOp._-ob6g ._-ez-x,._xWYOp._-ob6g ._GH1m7{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._xWYOp._-ob6g ._-ez-x._noajy,._xWYOp._-ob6g ._GH1m7._noajy{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._xWYOp._-ob6g ._-ez-x._noajy ._68wds,._xWYOp._-ob6g ._-ez-x._noajy ._GH1m7,._xWYOp._-ob6g ._-ez-x._noajy ._VFrLv,._xWYOp._-ob6g ._GH1m7._noajy ._68wds,._xWYOp._-ob6g ._GH1m7._noajy ._GH1m7,._xWYOp._-ob6g ._GH1m7._noajy ._VFrLv{background-color:rgba(11,110,208,.08)}._xWYOp._kS0jJ:hover:not(._-ob6g) ._-ez-x,._xWYOp._kS0jJ:hover:not(._-ob6g) ._GH1m7{background-color:#f9f9f9}._xWYOp._kS0jJ:active:not(._-ob6g):not(._xWYOp._kS0jJ:active:not(._-ob6g):has(._VFrLv:active)) ._-ez-x,._xWYOp._kS0jJ:active:not(._-ob6g):not(._xWYOp._kS0jJ:active:not(._-ob6g):has(._VFrLv:active)) ._GH1m7{background-color:#f3f3f3}._xWYOp:focus{outline:none}._xWYOp.focus-visible ._-ez-x:after,._xWYOp:focus-visible ._-ez-x: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}._xWYOp.focus-visible ._-ez-x:last-of-type:after,._xWYOp:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._xWYOp.focus-visible ._-ez-x:first-of-type:after,._xWYOp:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._xWYOp.focus-visible ._-ez-x._noajy:after,._xWYOp:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:0}._xWYOp:last-of-type:focus{outline:none}._xWYOp:last-of-type.focus-visible ._-ez-x:after,._xWYOp:last-of-type:focus-visible ._-ez-x: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}._xWYOp:last-of-type.focus-visible ._-ez-x:last-of-type:after,._xWYOp:last-of-type:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._xWYOp:last-of-type.focus-visible ._-ez-x:first-of-type:after,._xWYOp:last-of-type:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._xWYOp:last-of-type.focus-visible ._-ez-x._noajy:after,._xWYOp:last-of-type:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:1px}._xWYOp:last-of-type ._68wds:focus{outline:none}._xWYOp:last-of-type ._68wds._8TKUd.focus-visible:after,._xWYOp:last-of-type ._68wds._8TKUd:focus-visible:after,._xWYOp:last-of-type ._68wds.focus-visible:after,._xWYOp:last-of-type ._68wds: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}._xWYOp:first-of-type:focus{outline:none}._xWYOp:first-of-type.focus-visible ._-ez-x:after,._xWYOp:first-of-type:focus-visible ._-ez-x: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}._xWYOp:first-of-type.focus-visible ._-ez-x:last-of-type:after,._xWYOp:first-of-type:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._xWYOp:first-of-type.focus-visible ._-ez-x:first-of-type:after,._xWYOp:first-of-type:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._xWYOp:first-of-type.focus-visible ._-ez-x._noajy:after,._xWYOp:first-of-type:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:0}._xWYOp:first-of-type ._68wds:focus{outline:none}._xWYOp:first-of-type ._68wds._8TKUd.focus-visible:after,._xWYOp:first-of-type ._68wds._8TKUd:focus-visible:after,._xWYOp:first-of-type ._68wds.focus-visible:after,._xWYOp:first-of-type ._68wds: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}._UPHYC{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}._UPHYC._H5mby{flex-grow:1}._UPHYC._zuyin{cursor:pointer}._UPHYC._zuyin:hover:not(._cO4yO){background-color:#f9f9f9;border-bottom-color:#6a6d70}._UPHYC._zuyin:active:not(._cO4yO){background-color:#f3f3f3}._UPHYC._qwtMN:not(._cO4yO){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._UPHYC._cO4yO{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._UPHYC ._Q0WzW{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._UPHYC ._Q0WzW._OioCQ{left:-1px}._UPHYC ._Q0WzW._p1b9x{right:0}._UPHYC ._Zzq7p{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._UPHYC ._Zzq7p._OioCQ{left:-2px}._UPHYC ._Zzq7p._p1b9x{right:-1px}._UPHYC:first-of-type ._OioCQ._Q0WzW{left:0;width:2px;border-left:1px solid #fff}._UPHYC:first-of-type ._OioCQ._Zzq7p{left:0}._UPHYC:last-of-type ._p1b9x._Q0WzW{right:0;width:2px;border-right:1px solid #fff}._UPHYC:last-of-type ._p1b9x._Zzq7p{right:0}._UPHYC ._FtPc2{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._UPHYC ._FtPc2 ._SsqOm{position:absolute;width:2px;right:2px;top:0;bottom:0}._UPHYC ._FtPc2 ._SsqOm._fHCql{background-color:#0a6ed1}._UPHYC ._FtPc2:hover ._SsqOm:not(._fHCql){background-color:#d9d9d9}._UPHYC ._uWFhc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._UPHYC ._uWFhc._tE3LE{flex-direction:row-reverse;justify-content:flex-start}._UPHYC ._uWFhc._tE3LE ._z-m5R{margin:1px 7px 1px 1px}._UPHYC ._uWFhc ._WvewV{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._UPHYC ._uWFhc ._z-m5R{margin:1px 1px 1px 7px;flex-shrink:0}._UPHYC ._DlPoZ{margin-left:6px;margin-right:4px;flex-shrink:0}._UPHYC ._kxBnQ{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._UPHYC:focus{outline:none}._UPHYC._8TKUd.focus-visible:after,._UPHYC._8TKUd:focus-visible:after,._UPHYC.focus-visible:after,._UPHYC: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}._ERPOt{margin-right:6px}._noajy{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._noajy[focus-within]{z-index:30}._noajy:focus-within{z-index:30}._68wds{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}._68wds ._MpMyI{width:100%;padding:12px 12px 11px;overflow:hidden}._68wds._cO4yO{background-color:#efefef;border-bottom-color:#dfdfe1}._68wds._H5mby{flex-grow:1}._68wds:focus{outline:none}._68wds._8TKUd.focus-visible:after,._68wds._8TKUd:focus-visible:after,._68wds.focus-visible:after,._68wds: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}._GH1m7{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._GH1m7._RUC6K{border-bottom-color:#d9d9d9;background-color:#fff}._VFrLv{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}._VFrLv._RUC6K{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._VFrLv:focus input~span,._VFrLv:hover input~span{border-color:#0b6ed0}._5qXTF{justify-content:flex-start}._Pj8hJ{justify-content:center;text-align:center}._tE3LE{justify-content:flex-end;text-align:right}._dR1TR{display:none}._-lsFc{opacity:0;height:0;width:0;overflow:hidden}._3zHEL,._-lsFc{position:absolute}._3zHEL{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._WNzZL{max-width:250px;min-width:150px!important}";
|
|
36
|
+
var styles$b = {"advancedTable":"_zE2ga","advancedTablePaginationContainer":"_nC7aA","advancedTablePagination":"_pdeF0","advancedTableColumnHeadersRowGroup":"_geCQO","advancedTableColumnHeaders":"_EvMIH","advancedTableRowChild":"_-ez-x","pinnedContainer":"_noajy","advancedTableRowGroup":"_DcWcK","advancedTableRowRestrictedWidth":"_GriRO","advancedTableRow":"_xWYOp","hasRowAction":"_kS0jJ","advancedTableExpandRowSpacer":"_GH1m7","isSelected":"_-ob6g","advancedTableCheckbox":"_VFrLv","advancedTableCell":"_68wds","showFocusRing":"_8TKUd","advancedTableColumnHeader":"_UPHYC","fillRemainingSpace":"_H5mby","isSortable":"_zuyin","isDragging":"_cO4yO","isSorted":"_qwtMN","dropTargetLine":"_Q0WzW","dropTargetLeft":"_OioCQ","dropTargetRight":"_p1b9x","dropTargetMarker":"_Zzq7p","resizeHandle":"_FtPc2","resizeLine":"_SsqOm","isResizing":"_fHCql","advancedTableColumnHeaderLabel":"_uWFhc","rightAligned":"_tE3LE","sortIcon":"_z-m5R","advancedTableColumnHeaderLabelText":"_WvewV","advancedTableColumnHeaderMenu":"_DlPoZ","advancedTableColumnHeaderMenuHiddenAnchor":"_kxBnQ","advancedTableColumnHeaderMenuItemIcon":"_ERPOt","advancedTableCellContainer":"_MpMyI","header":"_RUC6K","leftAligned":"_5qXTF","centerAligned":"_Pj8hJ","hiddenDescription":"_dR1TR","hiddenLiveRegion":"_-lsFc","dragPreview":"_3zHEL","rowActionMenuPane":"_WNzZL"};
|
|
37
|
+
var stylesheet$c="._zE2ga{overflow:auto;position:relative;max-width:100%;max-height:100%}._nC7aA,._zE2ga{background-color:#fff}._nC7aA{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._pdeF0{margin-bottom:4px}._geCQO{position:-webkit-sticky;position:sticky;top:0;z-index:100}._EvMIH{display:flex}._EvMIH:focus{outline:none}._EvMIH.focus-visible ._-ez-x:after,._EvMIH:focus-visible ._-ez-x: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}._EvMIH.focus-visible ._-ez-x:last-of-type:after,._EvMIH:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._EvMIH.focus-visible ._-ez-x:first-of-type:after,._EvMIH:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._EvMIH.focus-visible ._-ez-x._noajy:after,._EvMIH:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:1px}._DcWcK{padding-right:3px}._GriRO{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._xWYOp{display:flex}._xWYOp._kS0jJ ._-ez-x,._xWYOp._kS0jJ ._GH1m7{cursor:pointer}._xWYOp._-ob6g ._-ez-x,._xWYOp._-ob6g ._GH1m7{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._xWYOp._-ob6g ._-ez-x._noajy,._xWYOp._-ob6g ._GH1m7._noajy{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._xWYOp._-ob6g ._-ez-x._noajy ._68wds,._xWYOp._-ob6g ._-ez-x._noajy ._GH1m7,._xWYOp._-ob6g ._-ez-x._noajy ._VFrLv,._xWYOp._-ob6g ._GH1m7._noajy ._68wds,._xWYOp._-ob6g ._GH1m7._noajy ._GH1m7,._xWYOp._-ob6g ._GH1m7._noajy ._VFrLv{background-color:rgba(11,110,208,.08)}._xWYOp._kS0jJ:hover:not(._-ob6g) ._-ez-x,._xWYOp._kS0jJ:hover:not(._-ob6g) ._GH1m7{background-color:#f9f9f9}._xWYOp._kS0jJ:active:not(._-ob6g):not(._xWYOp._kS0jJ:active:not(._-ob6g):has(._VFrLv:active)) ._-ez-x,._xWYOp._kS0jJ:active:not(._-ob6g):not(._xWYOp._kS0jJ:active:not(._-ob6g):has(._VFrLv:active)) ._GH1m7{background-color:#f3f3f3}._xWYOp:focus{outline:none}._xWYOp.focus-visible ._-ez-x:after,._xWYOp:focus-visible ._-ez-x: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}._xWYOp.focus-visible ._-ez-x:last-of-type:after,._xWYOp:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._xWYOp.focus-visible ._-ez-x:first-of-type:after,._xWYOp:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._xWYOp.focus-visible ._-ez-x._noajy:after,._xWYOp:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:0}._xWYOp:last-of-type:focus{outline:none}._xWYOp:last-of-type.focus-visible ._-ez-x:after,._xWYOp:last-of-type:focus-visible ._-ez-x: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}._xWYOp:last-of-type.focus-visible ._-ez-x:last-of-type:after,._xWYOp:last-of-type:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._xWYOp:last-of-type.focus-visible ._-ez-x:first-of-type:after,._xWYOp:last-of-type:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._xWYOp:last-of-type.focus-visible ._-ez-x._noajy:after,._xWYOp:last-of-type:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:1px}._xWYOp:last-of-type ._68wds:focus{outline:none}._xWYOp:last-of-type ._68wds._8TKUd.focus-visible:after,._xWYOp:last-of-type ._68wds._8TKUd:focus-visible:after,._xWYOp:last-of-type ._68wds.focus-visible:after,._xWYOp:last-of-type ._68wds: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}._xWYOp:first-of-type:focus{outline:none}._xWYOp:first-of-type.focus-visible ._-ez-x:after,._xWYOp:first-of-type:focus-visible ._-ez-x: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}._xWYOp:first-of-type.focus-visible ._-ez-x:last-of-type:after,._xWYOp:first-of-type:focus-visible ._-ez-x:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._xWYOp:first-of-type.focus-visible ._-ez-x:first-of-type:after,._xWYOp:first-of-type:focus-visible ._-ez-x:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._xWYOp:first-of-type.focus-visible ._-ez-x._noajy:after,._xWYOp:first-of-type:focus-visible ._-ez-x._noajy:after{right:-3px;bottom:0}._xWYOp:first-of-type ._68wds:focus{outline:none}._xWYOp:first-of-type ._68wds._8TKUd.focus-visible:after,._xWYOp:first-of-type ._68wds._8TKUd:focus-visible:after,._xWYOp:first-of-type ._68wds.focus-visible:after,._xWYOp:first-of-type ._68wds: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}._UPHYC{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}._UPHYC._H5mby{flex-grow:1}._UPHYC._zuyin{cursor:pointer}._UPHYC._zuyin:hover:not(._cO4yO){background-color:#f9f9f9;border-bottom-color:#6a6d70}._UPHYC._zuyin:active:not(._cO4yO){background-color:#f3f3f3}._UPHYC._qwtMN:not(._cO4yO){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._UPHYC._cO4yO{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._UPHYC ._Q0WzW{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._UPHYC ._Q0WzW._OioCQ{left:-1px}._UPHYC ._Q0WzW._p1b9x{right:0}._UPHYC ._Zzq7p{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._UPHYC ._Zzq7p._OioCQ{left:-2px}._UPHYC ._Zzq7p._p1b9x{right:-1px}._UPHYC:first-of-type ._OioCQ._Q0WzW{left:0;width:2px;border-left:1px solid #fff}._UPHYC:first-of-type ._OioCQ._Zzq7p{left:0}._UPHYC:last-of-type ._p1b9x._Q0WzW{right:0;width:2px;border-right:1px solid #fff}._UPHYC:last-of-type ._p1b9x._Zzq7p{right:0}._UPHYC ._FtPc2{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._UPHYC ._FtPc2 ._SsqOm{position:absolute;width:2px;right:2px;top:0;bottom:0}._UPHYC ._FtPc2 ._SsqOm._fHCql{background-color:#0a6ed1}._UPHYC ._FtPc2:hover ._SsqOm:not(._fHCql){background-color:#d9d9d9}._UPHYC ._uWFhc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._UPHYC ._uWFhc._tE3LE{flex-direction:row-reverse;justify-content:flex-start}._UPHYC ._uWFhc._tE3LE ._z-m5R{margin:1px 7px 1px 1px}._UPHYC ._uWFhc ._WvewV{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._UPHYC ._uWFhc ._z-m5R{margin:1px 1px 1px 7px;flex-shrink:0}._UPHYC ._DlPoZ{margin-left:6px;margin-right:4px;flex-shrink:0}._UPHYC ._kxBnQ{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._UPHYC:focus{outline:none}._UPHYC._8TKUd.focus-visible:after,._UPHYC._8TKUd:focus-visible:after,._UPHYC.focus-visible:after,._UPHYC: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}._ERPOt{margin-right:6px}._noajy{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._noajy[focus-within]{z-index:30}._noajy:focus-within{z-index:30}._68wds{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}._68wds ._MpMyI{width:100%;padding:12px 12px 11px;overflow:hidden}._68wds._cO4yO{background-color:#efefef;border-bottom-color:#dfdfe1}._68wds._H5mby{flex-grow:1}._68wds:focus{outline:none}._68wds._8TKUd.focus-visible:after,._68wds._8TKUd:focus-visible:after,._68wds.focus-visible:after,._68wds: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}._GH1m7{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._GH1m7._RUC6K{border-bottom-color:#d9d9d9;background-color:#fff}._VFrLv{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}._VFrLv._RUC6K{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._VFrLv:focus input~span,._VFrLv:hover input~span{border-color:#0b6ed0}._5qXTF{justify-content:flex-start}._Pj8hJ{justify-content:center;text-align:center}._tE3LE{justify-content:flex-end;text-align:right}._dR1TR{display:none}._-lsFc{opacity:0;height:0;width:0;overflow:hidden}._3zHEL,._-lsFc{position:absolute}._3zHEL{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._WNzZL{max-width:250px;min-width:150px!important}";
|
|
38
38
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$c);}
|
|
39
39
|
|
|
40
40
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -690,7 +690,6 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
690
690
|
(_focusableElementRef$ = focusableElementRef.current) === null || _focusableElementRef$ === void 0 || _focusableElementRef$.focus();
|
|
691
691
|
e.preventDefault(); // Prevent click event from occurring on the focusable element
|
|
692
692
|
}
|
|
693
|
-
|
|
694
693
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
695
694
|
};
|
|
696
695
|
const handleFocus = e => {
|
|
@@ -997,7 +996,6 @@ const AdvancedTable = _ref => {
|
|
|
997
996
|
filteredRows = filteredRows.concat(mapExternalRowToInternalRows(row, rowsProp.length + 1, i + 1) // add 1 to account for table header
|
|
998
997
|
);
|
|
999
998
|
});
|
|
1000
|
-
|
|
1001
999
|
return filteredRows;
|
|
1002
1000
|
}, [rowsProp]);
|
|
1003
1001
|
const rowActionsColumnConfigId = index.useId();
|
|
@@ -1006,7 +1004,6 @@ const AdvancedTable = _ref => {
|
|
|
1006
1004
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1007
1005
|
[externalColumnConfigs, rows] // columnConfigs has an implicit dependency on rows because it is initially computed using rows data
|
|
1008
1006
|
);
|
|
1009
|
-
|
|
1010
1007
|
const [currentPage, setCurrentPage] = React.useState(initialPage !== null && initialPage !== void 0 ? initialPage : 1);
|
|
1011
1008
|
const [tableHeight, setTableHeight] = React.useState();
|
|
1012
1009
|
const getPaginatedRowIndex = React.useCallback(universalRowIndex => rowsPerPage ? universalRowIndex + rowsPerPage * (currentPage - 1) : universalRowIndex, [rowsPerPage, currentPage]);
|
|
@@ -1548,7 +1545,6 @@ const AdvancedTable = _ref => {
|
|
|
1548
1545
|
"aria-rowindex": hasExpandableRows ? undefined : 1,
|
|
1549
1546
|
"aria-level": hasExpandableRows ? 1 : undefined // aria-level is one-indexed
|
|
1550
1547
|
,
|
|
1551
|
-
|
|
1552
1548
|
"aria-setsize": hasExpandableRows ? rowsProp.length + 1 : undefined,
|
|
1553
1549
|
"aria-posinset": hasExpandableRows ? 1 : undefined // aria-posinset is one-indexed
|
|
1554
1550
|
,
|
|
@@ -1607,7 +1603,6 @@ const AdvancedTable = _ref => {
|
|
|
1607
1603
|
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableRow, _extends__default["default"]({}, rowProps, {
|
|
1608
1604
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
1609
1605
|
,
|
|
1610
|
-
|
|
1611
1606
|
"aria-expanded": hasChildRows ? !!isExpanded : undefined,
|
|
1612
1607
|
"data-testid": dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined,
|
|
1613
1608
|
hasOnRowSelect: hasOnRowSelect,
|
|
@@ -1621,7 +1616,6 @@ const AdvancedTable = _ref => {
|
|
|
1621
1616
|
ref: createRef(paginatedRowIndex, minColumnIndex),
|
|
1622
1617
|
"aria-level": hasExpandableRows ? depth + 1 : undefined // aria-level is one-indexed
|
|
1623
1618
|
,
|
|
1624
|
-
|
|
1625
1619
|
"aria-setsize": hasExpandableRows ? depthSize : undefined,
|
|
1626
1620
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
1627
1621
|
,
|
|
@@ -1843,9 +1837,9 @@ function mapExternalRowToInternalRows(row, depthSize, depthIndex, parentId) {
|
|
|
1843
1837
|
|
|
1844
1838
|
/* eslint-disable import/prefer-default-export */
|
|
1845
1839
|
|
|
1846
|
-
var css_248z$b = ".
|
|
1847
|
-
var styles$a = {"collapsibleSearchInput":"
|
|
1848
|
-
var stylesheet$b=".
|
|
1840
|
+
var css_248z$b = "._I3aS8{display:inline-block;width:36px;transition:width .25s ease-out}._KPFZx{width:100%}._pSCi4>input{padding-right:0!important}._b2ph1>svg{fill:#515559}";
|
|
1841
|
+
var styles$a = {"collapsibleSearchInput":"_I3aS8","searchInput":"_KPFZx","searchInputCollapsed":"_pSCi4","iconButton":"_b2ph1"};
|
|
1842
|
+
var stylesheet$b="._I3aS8{display:inline-block;width:36px;transition:width .25s ease-out}._KPFZx{width:100%}._pSCi4>input{padding-right:0!important}._b2ph1>svg{fill:#515559}";
|
|
1849
1843
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$b);}
|
|
1850
1844
|
|
|
1851
1845
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2587,7 +2581,6 @@ function useShouldRenderGroupHeader(filteredOptionsRef, committedInputValue) {
|
|
|
2587
2581
|
// This needs to be a ref to ensure that the effect doesn't run before options have a chance to register themselves
|
|
2588
2582
|
committedInputValue // Options will be registered/deregistered based on this value, so this effect needs to run every time this value changes
|
|
2589
2583
|
]);
|
|
2590
|
-
|
|
2591
2584
|
return shouldRenderHeader;
|
|
2592
2585
|
}
|
|
2593
2586
|
|
|
@@ -2667,9 +2660,9 @@ function Combobox(_ref) {
|
|
|
2667
2660
|
}, children);
|
|
2668
2661
|
}
|
|
2669
2662
|
|
|
2670
|
-
var css_248z$a = ".
|
|
2671
|
-
var styles$9 = {"loadingSpinner":"
|
|
2672
|
-
var stylesheet$a=".
|
|
2663
|
+
var css_248z$a = "._DLYKq :after{background-color:#515559!important}._RofTg>input:focus{box-shadow:none!important;border:1px solid #898989!important}._zrJZh{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}._zrJZh ._w-ap- ._b21w-{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}._zrJZh ._w-ap-:first-child ._G-89e{display:none}._zrJZh ._KOw06{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._zrJZh ._KOw06:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zrJZh ._KOw06:hover._CTHXo{background-color:#e4effa}._zrJZh ._KOw06._CTHXo{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zrJZh ._KOw06:active:not(._CTHXo){background-color:#e8e9e9}";
|
|
2664
|
+
var styles$9 = {"loadingSpinner":"_DLYKq","ignoreFocusStyle":"_RofTg","flyout":"_zrJZh","group":"_w-ap-","header":"_b21w-","divider":"_G-89e","option":"_KOw06","selected":"_CTHXo"};
|
|
2665
|
+
var stylesheet$a="._DLYKq :after{background-color:#515559!important}._RofTg>input:focus{box-shadow:none!important;border:1px solid #898989!important}._zrJZh{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}._zrJZh ._w-ap- ._b21w-{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}._zrJZh ._w-ap-:first-child ._G-89e{display:none}._zrJZh ._KOw06{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._zrJZh ._KOw06:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zrJZh ._KOw06:hover._CTHXo{background-color:#e4effa}._zrJZh ._KOw06._CTHXo{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zrJZh ._KOw06:active:not(._CTHXo){background-color:#e8e9e9}";
|
|
2673
2666
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$a);}
|
|
2674
2667
|
|
|
2675
2668
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2747,7 +2740,6 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2747
2740
|
commitCurrentRawInputValueAndCloseFlyout(); // If no value was previously committed, commit the current raw value
|
|
2748
2741
|
}
|
|
2749
2742
|
}
|
|
2750
|
-
|
|
2751
2743
|
break;
|
|
2752
2744
|
case 'ArrowUp':
|
|
2753
2745
|
e.preventDefault(); // Prevents cursor movement inside of input
|
|
@@ -2841,7 +2833,6 @@ const ComboboxFlyout = _ref => {
|
|
|
2841
2833
|
offset: [-index.FOCUS_RING_WIDTH, index.FLYOUT_POPPER_OFFSET[1]] // The -FOCUS_RING_WIDTH skidding accounts for the box-shadow focus ring on the left side of the anchor
|
|
2842
2834
|
}
|
|
2843
2835
|
}],
|
|
2844
|
-
|
|
2845
2836
|
anchorNode: inputRef.current,
|
|
2846
2837
|
popper: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2847
2838
|
role: "listbox",
|
|
@@ -2979,9 +2970,9 @@ function ComboboxOption(_ref) {
|
|
|
2979
2970
|
}, label);
|
|
2980
2971
|
}
|
|
2981
2972
|
|
|
2982
|
-
var css_248z$9 = ".
|
|
2983
|
-
var styles$8 = {"overlay":"
|
|
2984
|
-
var stylesheet$9=".
|
|
2973
|
+
var css_248z$9 = "._IWpF9{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}._bV-5f{visibility:hidden}._9OQjf{position:fixed}";
|
|
2974
|
+
var styles$8 = {"overlay":"_IWpF9","hidden":"_bV-5f","anchoredToBody":"_9OQjf"};
|
|
2975
|
+
var stylesheet$9="._IWpF9{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}._bV-5f{visibility:hidden}._9OQjf{position:fixed}";
|
|
2985
2976
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$9);}
|
|
2986
2977
|
|
|
2987
2978
|
/**
|
|
@@ -3047,9 +3038,9 @@ const useOverlay = _ref => {
|
|
|
3047
3038
|
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3048
3039
|
};
|
|
3049
3040
|
|
|
3050
|
-
var css_248z$8 = ".
|
|
3051
|
-
var styles$7 = {"drawer":"
|
|
3052
|
-
var stylesheet$8=".
|
|
3041
|
+
var css_248z$8 = "._LILre{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._vUf4d{visibility:hidden}._DkKHO{position:fixed}._Eojbu{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._E4-B-{padding-top:8px}._SZ4K2{margin-left:12px}";
|
|
3042
|
+
var styles$7 = {"drawer":"_LILre","hidden":"_vUf4d","anchoredToBody":"_DkKHO","header":"_Eojbu","title":"_E4-B-","closeButton":"_SZ4K2"};
|
|
3043
|
+
var stylesheet$8="._LILre{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._vUf4d{visibility:hidden}._DkKHO{position:fixed}._Eojbu{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._E4-B-{padding-top:8px}._SZ4K2{margin-left:12px}";
|
|
3053
3044
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$8);}
|
|
3054
3045
|
|
|
3055
3046
|
const Drawer = _ref => {
|
|
@@ -3094,7 +3085,6 @@ const Drawer = _ref => {
|
|
|
3094
3085
|
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
3095
3086
|
}
|
|
3096
3087
|
};
|
|
3097
|
-
|
|
3098
3088
|
useOverlay({
|
|
3099
3089
|
containerRef,
|
|
3100
3090
|
isVisible: isOpen,
|
|
@@ -3165,9 +3155,9 @@ const Drawer = _ref => {
|
|
|
3165
3155
|
}, children))), containerNode) : null;
|
|
3166
3156
|
};
|
|
3167
3157
|
|
|
3168
|
-
var css_248z$7 = ".
|
|
3169
|
-
var styles$6 = {"button":"
|
|
3170
|
-
var stylesheet$7=".
|
|
3158
|
+
var css_248z$7 = "._9aHGg{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}._9aHGg:hover:not(._oKloS){background-color:rgba(50,54,58,.08)}._9aHGg:hover:not(._oKloS)._nWSHr{border-color:#085caf;background-color:rgba(11,110,208,.04)}._9aHGg:hover:not(._oKloS)._nWSHr ._MS9GW{color:#32363a}._9aHGg:hover:not(._oKloS)._nWSHr ._v9J-R{fill:#32363a}._9aHGg:hover:not(._oKloS)._nWSHr ._8gSRL{fill:#085caf}._9aHGg:hover:not(._oKloS)._nWSHr ._7cAn7{background-color:rgba(11,110,208,.11)}._9aHGg:hover:not(._oKloS)._nWSHr ._7cAn7 ._MQoMU{color:#085caf}._9aHGg:active:not(._oKloS){background-color:#e8e9e9}._9aHGg:active:not(._oKloS)._nWSHr{background-color:rgba(11,110,208,.11);border-color:#0854a1}._9aHGg:active:not(._oKloS)._nWSHr ._8gSRL{fill:#0854a1}._9aHGg:active:not(._oKloS)._nWSHr ._7cAn7{background-color:rgba(11,110,208,.11)}._9aHGg:active:not(._oKloS)._nWSHr ._7cAn7 ._MQoMU{color:#0854a1}._9aHGg._oKloS{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._9aHGg._nWSHr{border-color:#0b6ed0}._v9J-R{fill:#515559;margin-right:4px}._MS9GW{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._MS9GW+._7cAn7{margin-left:6px}._MS9GW._oKloS{color:#74777a}._7cAn7{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}._MQoMU{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._8gSRL{fill:#515559}._8gSRL._oKloS,._8gSRL._oKloS._nWSHr{fill:rgba(116,119,122,.4)}._8gSRL._nWSHr{fill:#0b6ed0}._8gSRL._i48Bf{transform:rotate(-180deg)}._9aHGg.focus-visible,._9aHGg:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3159
|
+
var styles$6 = {"button":"_9aHGg","disabled":"_oKloS","selected":"_nWSHr","label":"_MS9GW","lockIcon":"_v9J-R","chevronIcon":"_8gSRL","selectedFiltersContainer":"_7cAn7","selectedFilters":"_MQoMU","open":"_i48Bf"};
|
|
3160
|
+
var stylesheet$7="._9aHGg{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}._9aHGg:hover:not(._oKloS){background-color:rgba(50,54,58,.08)}._9aHGg:hover:not(._oKloS)._nWSHr{border-color:#085caf;background-color:rgba(11,110,208,.04)}._9aHGg:hover:not(._oKloS)._nWSHr ._MS9GW{color:#32363a}._9aHGg:hover:not(._oKloS)._nWSHr ._v9J-R{fill:#32363a}._9aHGg:hover:not(._oKloS)._nWSHr ._8gSRL{fill:#085caf}._9aHGg:hover:not(._oKloS)._nWSHr ._7cAn7{background-color:rgba(11,110,208,.11)}._9aHGg:hover:not(._oKloS)._nWSHr ._7cAn7 ._MQoMU{color:#085caf}._9aHGg:active:not(._oKloS){background-color:#e8e9e9}._9aHGg:active:not(._oKloS)._nWSHr{background-color:rgba(11,110,208,.11);border-color:#0854a1}._9aHGg:active:not(._oKloS)._nWSHr ._8gSRL{fill:#0854a1}._9aHGg:active:not(._oKloS)._nWSHr ._7cAn7{background-color:rgba(11,110,208,.11)}._9aHGg:active:not(._oKloS)._nWSHr ._7cAn7 ._MQoMU{color:#0854a1}._9aHGg._oKloS{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._9aHGg._nWSHr{border-color:#0b6ed0}._v9J-R{fill:#515559;margin-right:4px}._MS9GW{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._MS9GW+._7cAn7{margin-left:6px}._MS9GW._oKloS{color:#74777a}._7cAn7{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}._MQoMU{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._8gSRL{fill:#515559}._8gSRL._oKloS,._8gSRL._oKloS._nWSHr{fill:rgba(116,119,122,.4)}._8gSRL._nWSHr{fill:#0b6ed0}._8gSRL._i48Bf{transform:rotate(-180deg)}._9aHGg.focus-visible,._9aHGg:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3171
3161
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$7);}
|
|
3172
3162
|
|
|
3173
3163
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3681,15 +3671,19 @@ const Menu = _ref => {
|
|
|
3681
3671
|
const virtuoso = React.useRef(null);
|
|
3682
3672
|
const [maskHeight, setMaskHeight] = React.useState(null);
|
|
3683
3673
|
const [maskWidth, setMaskWidth] = React.useState(null);
|
|
3684
|
-
const [
|
|
3674
|
+
const [submenuDepths, setSubmenuDepths] = React.useState({});
|
|
3685
3675
|
const triggerRef = React.useRef(null);
|
|
3686
|
-
const registerSubmenu = (submenuId, submenuIsOpen) => {
|
|
3687
|
-
|
|
3688
|
-
const clone =
|
|
3676
|
+
const registerSubmenu = (submenuId, submenuIsOpen, parentSubmenuId) => {
|
|
3677
|
+
setSubmenuDepths(subs => {
|
|
3678
|
+
const clone = {
|
|
3679
|
+
...subs
|
|
3680
|
+
};
|
|
3689
3681
|
if (submenuIsOpen) {
|
|
3690
|
-
clone
|
|
3682
|
+
const parentDepth = clone[parentSubmenuId];
|
|
3683
|
+
const submenuDepth = parentDepth ? parentDepth + 1 : 2;
|
|
3684
|
+
clone[submenuId] = submenuDepth;
|
|
3691
3685
|
} else {
|
|
3692
|
-
clone
|
|
3686
|
+
delete clone[submenuId];
|
|
3693
3687
|
}
|
|
3694
3688
|
return clone;
|
|
3695
3689
|
});
|
|
@@ -3704,7 +3698,15 @@ const Menu = _ref => {
|
|
|
3704
3698
|
e.preventDefault();
|
|
3705
3699
|
}
|
|
3706
3700
|
});
|
|
3707
|
-
const openPaneDepth = React.useMemo(() =>
|
|
3701
|
+
const openPaneDepth = React.useMemo(() => {
|
|
3702
|
+
if (Object.values(submenuDepths).length) {
|
|
3703
|
+
return Math.max(...Object.values(submenuDepths));
|
|
3704
|
+
}
|
|
3705
|
+
if (open) {
|
|
3706
|
+
return 1;
|
|
3707
|
+
}
|
|
3708
|
+
return 0;
|
|
3709
|
+
}, [submenuDepths, open]);
|
|
3708
3710
|
const [searchBarConfigs, setSearchBarConfigs] = React.useState([]);
|
|
3709
3711
|
return /*#__PURE__*/React__default["default"].createElement(MenuContextProvider, {
|
|
3710
3712
|
value: {
|
|
@@ -3721,7 +3723,8 @@ const Menu = _ref => {
|
|
|
3721
3723
|
maskWidth,
|
|
3722
3724
|
setMaskWidth,
|
|
3723
3725
|
virtuoso,
|
|
3724
|
-
isVirtualizationDisabled
|
|
3726
|
+
isVirtualizationDisabled,
|
|
3727
|
+
submenuDepths
|
|
3725
3728
|
}
|
|
3726
3729
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Root, {
|
|
3727
3730
|
open: open,
|
|
@@ -3740,29 +3743,11 @@ class PointerEvent extends Event {
|
|
|
3740
3743
|
}
|
|
3741
3744
|
}
|
|
3742
3745
|
|
|
3743
|
-
var css_248z$6 = ".
|
|
3744
|
-
var styles$5 = {"buttonContainer":"
|
|
3745
|
-
var stylesheet$6=".
|
|
3746
|
+
var css_248z$6 = "._EZy7s{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._EZy7s>._5bn0k{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}._EZy7s>._5bn0k:hover:not([aria-disabled=true]){background-color:#f5f5f5}._EZy7s>._5bn0k.focus-visible,._EZy7s>._5bn0k:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._EZy7s>._5bn0k+._rzYmq{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._EZy7s>._5bn0k[data-state=open]+._rzYmq{transform:rotate(-180deg) translateY(50%)}._EZy7s>._5bn0k[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._EZy7s>._5bn0k[aria-disabled=true]+._rzYmq{fill:#515559;opacity:.4}._exAdF>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._exAdF>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._fVNJN{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._fVNJN ._REdxS{height:100%;overflow-y:scroll}._fVNJN._w7Zbr{margin-left:30px;opacity:0}._fVNJN._1GI2U{margin-left:-30px}._7zoAD{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._7zoAD._ECDa-{cursor:unset}._7zoAD ._z--ya{fill:#32363a;margin-right:4px}._7zoAD:focus,._7zoAD:hover:not(._7zoAD._ECDa-){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7zoAD[aria-disabled=true]{cursor:not-allowed;opacity:.65}._7zoAD._E9anz{padding-right:32px}._7zoAD._E9anz ._rzYmq{position:absolute;height:100%;right:3px;fill:#515559}._7zoAD._KYWf0{pointer-events:none}._-IEIj{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._-IEIj._-C2po{padding-top:52px}._dtV1j{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vEk9C{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vEk9C._1GI2U{opacity:0}._vEk9C._1GI2U>._OdpvY{margin-left:-30px}._vEk9C._w7Zbr{opacity:0}._vEk9C._w7Zbr>._OdpvY{margin-left:30px}._vEk9C>._OdpvY{transition:margin-left .35s;width:100%}._vEk9C._KYWf0{pointer-events:none}body.keyboard-user ._7zoAD:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
3747
|
+
var styles$5 = {"buttonContainer":"_EZy7s","button":"_5bn0k","rightIcon":"_rzYmq","maskContainer":"_exAdF","flyout":"_fVNJN","scrollContainer":"_REdxS","animatedRight":"_w7Zbr","animatedLeft":"_1GI2U","menuItem":"_7zoAD","noItems":"_ECDa-","backIcon":"_z--ya","subMenu":"_E9anz","unresponsive":"_KYWf0","stickyBox":"_-IEIj","isSearchable":"_-C2po","searchBoxesContainer":"_dtV1j","searchBox":"_vEk9C","searchInput":"_OdpvY"};
|
|
3748
|
+
var stylesheet$6="._EZy7s{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._EZy7s>._5bn0k{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}._EZy7s>._5bn0k:hover:not([aria-disabled=true]){background-color:#f5f5f5}._EZy7s>._5bn0k.focus-visible,._EZy7s>._5bn0k:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._EZy7s>._5bn0k+._rzYmq{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._EZy7s>._5bn0k[data-state=open]+._rzYmq{transform:rotate(-180deg) translateY(50%)}._EZy7s>._5bn0k[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._EZy7s>._5bn0k[aria-disabled=true]+._rzYmq{fill:#515559;opacity:.4}._exAdF>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._exAdF>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._fVNJN{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._fVNJN ._REdxS{height:100%;overflow-y:scroll}._fVNJN._w7Zbr{margin-left:30px;opacity:0}._fVNJN._1GI2U{margin-left:-30px}._7zoAD{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._7zoAD._ECDa-{cursor:unset}._7zoAD ._z--ya{fill:#32363a;margin-right:4px}._7zoAD:focus,._7zoAD:hover:not(._7zoAD._ECDa-){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7zoAD[aria-disabled=true]{cursor:not-allowed;opacity:.65}._7zoAD._E9anz{padding-right:32px}._7zoAD._E9anz ._rzYmq{position:absolute;height:100%;right:3px;fill:#515559}._7zoAD._KYWf0{pointer-events:none}._-IEIj{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._-IEIj._-C2po{padding-top:52px}._dtV1j{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vEk9C{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vEk9C._1GI2U{opacity:0}._vEk9C._1GI2U>._OdpvY{margin-left:-30px}._vEk9C._w7Zbr{opacity:0}._vEk9C._w7Zbr>._OdpvY{margin-left:30px}._vEk9C>._OdpvY{transition:margin-left .35s;width:100%}._vEk9C._KYWf0{pointer-events:none}body.keyboard-user ._7zoAD:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
3746
3749
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$6);}
|
|
3747
3750
|
|
|
3748
|
-
/* eslint-disable import/prefer-default-export */
|
|
3749
|
-
const DATA_TESTID_SUFFIXES$1 = {
|
|
3750
|
-
MENU_PANE: 'menupane',
|
|
3751
|
-
MENU_ITEM: 'menuitem',
|
|
3752
|
-
MENU_BUTTON: 'menubutton',
|
|
3753
|
-
MENU_SEARCH: 'menusearch',
|
|
3754
|
-
MENU_BACK: 'menuback'
|
|
3755
|
-
};
|
|
3756
|
-
const KEYS$1 = {
|
|
3757
|
-
OPEN_SUBMENU: ['ArrowRight', 'Enter', ' '],
|
|
3758
|
-
CLOSE_SUBMENU: ['ArrowLeft'],
|
|
3759
|
-
NAVIGATE_UP: ['ArrowUp'],
|
|
3760
|
-
NAVIGATE_DOWN: ['ArrowDown'],
|
|
3761
|
-
NAVIGATE_TOP: ['Home'],
|
|
3762
|
-
NAVIIGATE_BOTTOM: ['End'],
|
|
3763
|
-
IGNORED_BY_SEARCH_INPUT: ['Tab']
|
|
3764
|
-
};
|
|
3765
|
-
|
|
3766
3751
|
/* eslint-disable import/prefer-default-export */
|
|
3767
3752
|
const DATA_TESTID_SUFFIXES = {
|
|
3768
3753
|
SELECT_PANE: 'selectpane',
|
|
@@ -3827,7 +3812,7 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref
|
|
|
3827
3812
|
}),
|
|
3828
3813
|
asChild: asChild,
|
|
3829
3814
|
ref: index.mergeRefs(triggerRef, ref),
|
|
3830
|
-
"data-testid": index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BUTTON : DATA_TESTID_SUFFIXES
|
|
3815
|
+
"data-testid": index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BUTTON : index.DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
3831
3816
|
}), children), !asChild && /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3832
3817
|
className: styles$5.rightIcon,
|
|
3833
3818
|
"aria-hidden": "true"
|
|
@@ -3920,7 +3905,6 @@ function usePaneSearch(_ref) {
|
|
|
3920
3905
|
} = _ref;
|
|
3921
3906
|
const withinSelect = useSelectContext(true) !== null;
|
|
3922
3907
|
const [internalSearchValue, setSearchValue] = index.useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
3923
|
-
const [zeroSearchResults, setZeroSearchResults] = React.useState();
|
|
3924
3908
|
const {
|
|
3925
3909
|
translate
|
|
3926
3910
|
} = index.useTranslation();
|
|
@@ -3938,7 +3922,6 @@ function usePaneSearch(_ref) {
|
|
|
3938
3922
|
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
|
|
3939
3923
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
3940
3924
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
3941
|
-
React.useEffect(() => setZeroSearchResults((items === null || items === void 0 ? void 0 : items.filter(item => item.element.current).length) === 0), [items, internalSearchValue]);
|
|
3942
3925
|
const searchRef = React.useRef(null);
|
|
3943
3926
|
const searchInput = (_searchRef$current$qu = (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : _searchRef$current.querySelector('input')) !== null && _searchRef$current$qu !== void 0 ? _searchRef$current$qu : null;
|
|
3944
3927
|
const getFirstVisibleItem = () => {
|
|
@@ -3952,7 +3935,7 @@ function usePaneSearch(_ref) {
|
|
|
3952
3935
|
);
|
|
3953
3936
|
};
|
|
3954
3937
|
index.useEventListener(flyoutRef, 'keydown', e => {
|
|
3955
|
-
if (KEYS
|
|
3938
|
+
if (index.KEYS.NAVIGATE_UP.includes(e.key) && e.target === getFirstVisibleItem() || index.KEYS.NAVIGATE_DOWN.includes(e.key) && e.target === getLastVisibleItem()) {
|
|
3956
3939
|
searchInput === null || searchInput === void 0 || searchInput.focus();
|
|
3957
3940
|
}
|
|
3958
3941
|
}, {
|
|
@@ -3963,7 +3946,7 @@ function usePaneSearch(_ref) {
|
|
|
3963
3946
|
index.useEventListener(searchInput, 'keydown', e => {
|
|
3964
3947
|
var _e$target;
|
|
3965
3948
|
lastestKeyPressedInSearchInput.current = e.key;
|
|
3966
|
-
if ([...KEYS
|
|
3949
|
+
if ([...index.KEYS.NAVIGATE_DOWN, ...index.KEYS.NAVIGATE_TOP].includes(e.key)) {
|
|
3967
3950
|
// prevent scrolling
|
|
3968
3951
|
e.preventDefault();
|
|
3969
3952
|
if (isVirtualized) {
|
|
@@ -3972,7 +3955,7 @@ function usePaneSearch(_ref) {
|
|
|
3972
3955
|
var _getFirstVisibleItem;
|
|
3973
3956
|
(_getFirstVisibleItem = getFirstVisibleItem()) === null || _getFirstVisibleItem === void 0 || _getFirstVisibleItem.focus();
|
|
3974
3957
|
}
|
|
3975
|
-
} else if ([...KEYS
|
|
3958
|
+
} else if ([...index.KEYS.NAVIGATE_UP, ...index.KEYS.NAVIIGATE_BOTTOM].includes(e.key)) {
|
|
3976
3959
|
// prevent scrolling
|
|
3977
3960
|
e.preventDefault();
|
|
3978
3961
|
if (isVirtualized) {
|
|
@@ -3981,14 +3964,14 @@ function usePaneSearch(_ref) {
|
|
|
3981
3964
|
var _getLastVisibleItem;
|
|
3982
3965
|
(_getLastVisibleItem = getLastVisibleItem()) === null || _getLastVisibleItem === void 0 || _getLastVisibleItem.focus();
|
|
3983
3966
|
}
|
|
3984
|
-
} else if (KEYS
|
|
3967
|
+
} else if (index.KEYS.CLOSE_SUBMENU.includes(e.key) && ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
|
|
3985
3968
|
closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
|
|
3986
|
-
} else if (KEYS
|
|
3969
|
+
} else if (index.KEYS.IGNORED_BY_SEARCH_INPUT.includes(e.key)) {
|
|
3987
3970
|
e.preventDefault();
|
|
3988
3971
|
}
|
|
3989
3972
|
});
|
|
3990
3973
|
index.useEventListener(searchInput, 'blur', () => {
|
|
3991
|
-
const refocus = ![...KEYS
|
|
3974
|
+
const refocus = ![...index.KEYS.NAVIGATE_DOWN, ...index.KEYS.NAVIGATE_UP, ...index.KEYS.NAVIGATE_TOP, ...index.KEYS.NAVIIGATE_BOTTOM].includes(lastestKeyPressedInSearchInput.current) && !animatedLeft && !animatedRight && searchInput;
|
|
3992
3975
|
lastestKeyPressedInSearchInput.current = undefined;
|
|
3993
3976
|
if (refocus) {
|
|
3994
3977
|
searchInput.focus();
|
|
@@ -4013,7 +3996,7 @@ function usePaneSearch(_ref) {
|
|
|
4013
3996
|
isInteractive: !animatedLeft && !animatedRight,
|
|
4014
3997
|
animatedLeft,
|
|
4015
3998
|
animatedRight,
|
|
4016
|
-
dataTestId: menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
3999
|
+
dataTestId: menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_SEARCH : index.DATA_TESTID_SUFFIXES.MENU_SEARCH),
|
|
4017
4000
|
setSearchValue,
|
|
4018
4001
|
ref: searchRef,
|
|
4019
4002
|
id,
|
|
@@ -4040,7 +4023,7 @@ function usePaneSearch(_ref) {
|
|
|
4040
4023
|
// Omitted dependencies because we only want this to run on unmount
|
|
4041
4024
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4042
4025
|
[]);
|
|
4043
|
-
const noSearchResultsNode =
|
|
4026
|
+
const noSearchResultsNode = filteredChildren.length === 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4044
4027
|
className: classNames__default["default"](styles$5.menuItem, styles$5.noItems),
|
|
4045
4028
|
"aria-live": "assertive"
|
|
4046
4029
|
}, noMatchesText);
|
|
@@ -4066,11 +4049,11 @@ const useMutationObserver = (target, options, onMutate) => React.useEffect(() =>
|
|
|
4066
4049
|
return () => observer.disconnect();
|
|
4067
4050
|
}, [target, options, onMutate]);
|
|
4068
4051
|
|
|
4069
|
-
const useCSSVariable = function (name, value) {
|
|
4070
|
-
let
|
|
4071
|
-
React.useEffect(() => {
|
|
4072
|
-
|
|
4073
|
-
}, [value, name, ...
|
|
4052
|
+
const useCSSVariable = function (name, value, scope) {
|
|
4053
|
+
let additionalDependencies = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
4054
|
+
return React.useEffect(() => {
|
|
4055
|
+
scope === null || scope === void 0 || scope.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
4056
|
+
}, [value, name, scope, ...additionalDependencies]);
|
|
4074
4057
|
};
|
|
4075
4058
|
|
|
4076
4059
|
const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -4155,9 +4138,9 @@ const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4155
4138
|
}, /*#__PURE__*/React__default["default"].createElement(SubMenu$1, sharedSubMenuProps, children));
|
|
4156
4139
|
});
|
|
4157
4140
|
|
|
4158
|
-
var css_248z$5 = ".
|
|
4159
|
-
var styles$4 = {"isInvalid":"
|
|
4160
|
-
var stylesheet$5=".
|
|
4141
|
+
var css_248z$5 = "._ax2r-{box-shadow:inset 0 0 0 1px #b00!important}._EOVE7{margin-right:7px}._HXHPS{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4142
|
+
var styles$4 = {"isInvalid":"_ax2r-","checkbox":"_EOVE7","selectedItem":"_HXHPS"};
|
|
4143
|
+
var stylesheet$5="._ax2r-{box-shadow:inset 0 0 0 1px #b00!important}._EOVE7{margin-right:7px}._HXHPS{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4161
4144
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$5);}
|
|
4162
4145
|
|
|
4163
4146
|
const SelectItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -4247,6 +4230,7 @@ const PaneChildren = _ref => {
|
|
|
4247
4230
|
} = (_useSelectContext = useSelectContext(true)) !== null && _useSelectContext !== void 0 ? _useSelectContext : {};
|
|
4248
4231
|
const {
|
|
4249
4232
|
closeSubmenu: containedWithinSubpane,
|
|
4233
|
+
setIsVirtualizationReady,
|
|
4250
4234
|
isVirtualized
|
|
4251
4235
|
} = usePaneContext();
|
|
4252
4236
|
const containerRef = React.useRef(null);
|
|
@@ -4256,9 +4240,9 @@ const PaneChildren = _ref => {
|
|
|
4256
4240
|
style: {
|
|
4257
4241
|
maxHeight: "calc(var(--flyout-max-height) -\n ".concat((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetTop, "px -\n var(--flyout-bottom-padding))")
|
|
4258
4242
|
}
|
|
4259
|
-
}, isVirtualized ? /*#__PURE__*/React__default["default"].createElement(reactVirtuoso.Virtuoso, {
|
|
4243
|
+
}, isVirtualized ? /*#__PURE__*/React__default["default"].createElement(reactVirtuoso.Virtuoso, _extends__default["default"]({
|
|
4260
4244
|
ref: virtuoso,
|
|
4261
|
-
|
|
4245
|
+
startReached: () => setIsVirtualizationReady === null || setIsVirtualizationReady === void 0 ? void 0 : setIsVirtualizationReady(true),
|
|
4262
4246
|
customScrollParent: (_containerRef$current2 = containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : undefined,
|
|
4263
4247
|
data: Array.isArray(children) ? children : [children],
|
|
4264
4248
|
itemContent: (index, child) => ! /*#__PURE__*/React__default["default"].isValidElement(child) ? null : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
@@ -4266,7 +4250,7 @@ const PaneChildren = _ref => {
|
|
|
4266
4250
|
virtualIndex: index + (multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0)
|
|
4267
4251
|
}
|
|
4268
4252
|
}, child)
|
|
4269
|
-
}) : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
4253
|
+
}, index.VIRTUOSO_PROPS)) : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
4270
4254
|
value: {
|
|
4271
4255
|
virtualIndex: undefined
|
|
4272
4256
|
}
|
|
@@ -4278,7 +4262,7 @@ const useIsVirtualized = function (children) {
|
|
|
4278
4262
|
return React.useMemo(() => !isVirtualizationDisabled && React__default["default"].Children.count(children) >= 25, [children, isVirtualizationDisabled]);
|
|
4279
4263
|
};
|
|
4280
4264
|
|
|
4281
|
-
const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
4265
|
+
const useMaskDimensions = (target, animatedLeft, paneDepth, children, isVirtualized, isVirtualizationReady) => {
|
|
4282
4266
|
var _process$env;
|
|
4283
4267
|
const {
|
|
4284
4268
|
setMaskHeight,
|
|
@@ -4287,21 +4271,19 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
4287
4271
|
openPaneDepth,
|
|
4288
4272
|
open
|
|
4289
4273
|
} = useMenuContext();
|
|
4290
|
-
const
|
|
4274
|
+
const auto = 'auto';
|
|
4275
|
+
const updateMaskDimensions = function () {
|
|
4276
|
+
let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
4291
4277
|
if (target) {
|
|
4292
|
-
setMaskHeight(target.clientHeight);
|
|
4293
|
-
setMaskWidth(target.clientWidth);
|
|
4278
|
+
setMaskHeight(reset ? auto : target.clientHeight);
|
|
4279
|
+
setMaskWidth(reset ? auto : target.clientWidth);
|
|
4294
4280
|
}
|
|
4295
4281
|
};
|
|
4296
|
-
const auto = 'auto';
|
|
4297
4282
|
|
|
4298
|
-
// resets dimensions on menu close
|
|
4283
|
+
// resets dimensions on menu close so that the top-level pane reopens immediately, rather than animating
|
|
4299
4284
|
React.useEffect(() => {
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
setMaskWidth(auto);
|
|
4303
|
-
}
|
|
4304
|
-
}, [open, setMaskHeight, setMaskWidth]);
|
|
4285
|
+
updateMaskDimensions(!open);
|
|
4286
|
+
}, [open]);
|
|
4305
4287
|
|
|
4306
4288
|
// handles async children adjustments by consumer
|
|
4307
4289
|
index.useDidUpdate(() => {
|
|
@@ -4327,11 +4309,11 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
4327
4309
|
});
|
|
4328
4310
|
|
|
4329
4311
|
// determines if the mask is ready
|
|
4330
|
-
return maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test';
|
|
4312
|
+
return (maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test') && (isVirtualized ? isVirtualizationReady : true);
|
|
4331
4313
|
};
|
|
4332
4314
|
|
|
4333
4315
|
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4334
|
-
var _flyoutRef$current$pa, _flyoutRef$current, _flyoutRef$current2;
|
|
4316
|
+
var _flyoutRef$current$pa, _flyoutRef$current, _process$env, _flyoutRef$current2;
|
|
4335
4317
|
let {
|
|
4336
4318
|
placement,
|
|
4337
4319
|
children,
|
|
@@ -4341,6 +4323,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4341
4323
|
isSearchFilteringDisabled = false,
|
|
4342
4324
|
className,
|
|
4343
4325
|
zIndex = 1000,
|
|
4326
|
+
style,
|
|
4344
4327
|
...rest
|
|
4345
4328
|
} = _ref;
|
|
4346
4329
|
const [items, setItems] = React.useState([]);
|
|
@@ -4358,9 +4341,48 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4358
4341
|
return (_placement$split = placement === null || placement === void 0 || (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
|
|
4359
4342
|
}, [placement]);
|
|
4360
4343
|
const thisPanesDepth = 1;
|
|
4361
|
-
const paneMaxHeight =
|
|
4344
|
+
const paneMaxHeight = React.useMemo(() => {
|
|
4345
|
+
let maxHeightString = '';
|
|
4346
|
+
const defaultPaneMaxHeight = 350;
|
|
4347
|
+
|
|
4348
|
+
// check `style`
|
|
4349
|
+
if (style !== null && style !== void 0 && style.maxHeight) {
|
|
4350
|
+
if (typeof style.maxHeight === 'number') {
|
|
4351
|
+
return style.maxHeight;
|
|
4352
|
+
}
|
|
4353
|
+
if (typeof style.maxHeight === 'string') {
|
|
4354
|
+
maxHeightString = style.maxHeight;
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
|
|
4358
|
+
// check `className`
|
|
4359
|
+
if (!maxHeightString && flyoutRef.current) {
|
|
4360
|
+
const computedString = window.getComputedStyle(flyoutRef.current).maxHeight;
|
|
4361
|
+
if (computedString !== 'none') {
|
|
4362
|
+
maxHeightString = computedString;
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
if (!maxHeightString) {
|
|
4366
|
+
return defaultPaneMaxHeight;
|
|
4367
|
+
}
|
|
4368
|
+
const maxHeightStringAsNumber = Number(maxHeightString);
|
|
4369
|
+
|
|
4370
|
+
// if it's not suffixed
|
|
4371
|
+
if (!Number.isNaN(maxHeightStringAsNumber)) {
|
|
4372
|
+
return maxHeightStringAsNumber;
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
// if it is suffixed
|
|
4376
|
+
if (maxHeightString.slice(-2) === 'px' && !Number.isNaN(Number(maxHeightString.slice(0, -2)))) {
|
|
4377
|
+
return Number(maxHeightString.slice(0, -2));
|
|
4378
|
+
}
|
|
4379
|
+
return defaultPaneMaxHeight;
|
|
4380
|
+
// `className` impacts computed style
|
|
4381
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4382
|
+
}, [style, className]);
|
|
4362
4383
|
const paneBottomPadding = 4;
|
|
4363
4384
|
const maskContainerId = index.useId();
|
|
4385
|
+
const maskContainer = document.getElementById(maskContainerId);
|
|
4364
4386
|
const [transform, setTransform] = React.useState('');
|
|
4365
4387
|
const target = (_flyoutRef$current$pa = (_flyoutRef$current = flyoutRef.current) === null || _flyoutRef$current === void 0 ? void 0 : _flyoutRef$current.parentNode) !== null && _flyoutRef$current$pa !== void 0 ? _flyoutRef$current$pa : undefined;
|
|
4366
4388
|
const {
|
|
@@ -4374,8 +4396,9 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4374
4396
|
isVirtualizationDisabled
|
|
4375
4397
|
} = useMenuContext();
|
|
4376
4398
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
4399
|
+
const [isVirtualizationReady, setIsVirtualizationReady] = React.useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test');
|
|
4377
4400
|
const animatedLeft = React.useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
4378
|
-
const dataTestId = index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4401
|
+
const dataTestId = index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
4379
4402
|
const {
|
|
4380
4403
|
noSearchResultsNode,
|
|
4381
4404
|
onInteractOutside,
|
|
@@ -4398,7 +4421,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4398
4421
|
const {
|
|
4399
4422
|
isFocusVisible
|
|
4400
4423
|
} = interactions.useFocusVisible();
|
|
4401
|
-
const maskIsReady = useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
4424
|
+
const maskIsReady = useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
|
|
4402
4425
|
index.useDidUpdate(() => {
|
|
4403
4426
|
if (maskIsReady && isFocusVisible) {
|
|
4404
4427
|
items[0].element.current.focus();
|
|
@@ -4410,19 +4433,13 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4410
4433
|
if (!rect) {
|
|
4411
4434
|
return 'bottom';
|
|
4412
4435
|
}
|
|
4413
|
-
let maxHeight = paneMaxHeight;
|
|
4414
|
-
if (flyoutRef.current) {
|
|
4415
|
-
const computedString = window.getComputedStyle(flyoutRef.current).maxHeight.slice(0, -2);
|
|
4416
|
-
if (computedString !== '' && !Number.isNaN(+computedString)) {
|
|
4417
|
-
maxHeight = +computedString;
|
|
4418
|
-
}
|
|
4419
|
-
}
|
|
4420
4436
|
const distanceToBottom = window.innerHeight - rect.bottom;
|
|
4421
4437
|
const distanceToTop = rect.top;
|
|
4422
|
-
|
|
4438
|
+
const paddedMaxHeight = paneMaxHeight + paneBottomPadding * 2;
|
|
4439
|
+
if (distanceToBottom > paddedMaxHeight) {
|
|
4423
4440
|
return 'bottom';
|
|
4424
4441
|
}
|
|
4425
|
-
if (distanceToTop >
|
|
4442
|
+
if (distanceToTop > paddedMaxHeight) {
|
|
4426
4443
|
return 'top';
|
|
4427
4444
|
}
|
|
4428
4445
|
return 'bottom';
|
|
@@ -4433,11 +4450,11 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4433
4450
|
|
|
4434
4451
|
// We use the top-level Radix container as a mask. Radix does not expose this container to consumers, except through CSS.
|
|
4435
4452
|
// These hooks dynamically update the style of that container using CSS variables.
|
|
4436
|
-
useCSSVariable('--mask-z-index', String(zIndex),
|
|
4437
|
-
useCSSVariable('--mask-width', Number.isNaN(Number(maskWidth)) ? "".concat(maskWidth) : "".concat(maskWidth, "px"));
|
|
4438
|
-
useCSSVariable('--mask-height', Number.isNaN(Number(maskHeight)) ? "".concat(maskHeight) : "".concat(maskHeight, "px"));
|
|
4439
|
-
useCSSVariable('--flyout-max-height', "".concat(paneMaxHeight, "px"));
|
|
4440
|
-
useCSSVariable('--flyout-bottom-padding', "".concat(paneBottomPadding, "px"));
|
|
4453
|
+
useCSSVariable('--mask-z-index', String(zIndex), maskContainer);
|
|
4454
|
+
useCSSVariable('--mask-width', Number.isNaN(Number(maskWidth)) ? "".concat(maskWidth) : "".concat(maskWidth, "px"), maskContainer);
|
|
4455
|
+
useCSSVariable('--mask-height', Number.isNaN(Number(maskHeight)) ? "".concat(maskHeight) : "".concat(maskHeight, "px"), maskContainer);
|
|
4456
|
+
useCSSVariable('--flyout-max-height', "".concat(paneMaxHeight, "px"), maskContainer);
|
|
4457
|
+
useCSSVariable('--flyout-bottom-padding', "".concat(paneBottomPadding, "px"), maskContainer);
|
|
4441
4458
|
useOverlay({
|
|
4442
4459
|
isVisible: open,
|
|
4443
4460
|
ignoreIds: [maskContainerId],
|
|
@@ -4461,7 +4478,8 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4461
4478
|
zIndex,
|
|
4462
4479
|
focusVirtualBoundary,
|
|
4463
4480
|
isVirtualized,
|
|
4464
|
-
maskIsReady
|
|
4481
|
+
maskIsReady,
|
|
4482
|
+
setIsVirtualizationReady
|
|
4465
4483
|
}
|
|
4466
4484
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Portal, {
|
|
4467
4485
|
container: portalTarget || undefined
|
|
@@ -4474,6 +4492,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4474
4492
|
opacity: maskIsReady ? 1 : 0
|
|
4475
4493
|
}
|
|
4476
4494
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Content, _extends__default["default"]({}, rest, {
|
|
4495
|
+
style: style,
|
|
4477
4496
|
onCloseAutoFocus: () => {
|
|
4478
4497
|
var _triggerRef$current2;
|
|
4479
4498
|
return triggerRef === null || triggerRef === void 0 || (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.focus();
|
|
@@ -4548,7 +4567,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4548
4567
|
} = interactions.useFocusVisible({
|
|
4549
4568
|
isTextInput: true
|
|
4550
4569
|
});
|
|
4551
|
-
const dataTestId = index.getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4570
|
+
const dataTestId = index.getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : index.DATA_TESTID_SUFFIXES.MENU_ITEM), String(index$1));
|
|
4552
4571
|
const handleFocus = () => {
|
|
4553
4572
|
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
4554
4573
|
var _stickyBoxRef$current, _stickyBoxRef$current2;
|
|
@@ -4574,12 +4593,12 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4574
4593
|
e.preventDefault();
|
|
4575
4594
|
return;
|
|
4576
4595
|
}
|
|
4577
|
-
if (KEYS
|
|
4596
|
+
if (index.KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
4578
4597
|
closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
|
|
4579
|
-
} else if (paneIsVirtualized && KEYS
|
|
4598
|
+
} else if (paneIsVirtualized && index.KEYS.NAVIGATE_TOP.includes(e.key)) {
|
|
4580
4599
|
e.preventDefault();
|
|
4581
4600
|
focusVirtualBoundary('top');
|
|
4582
|
-
} else if (paneIsVirtualized && KEYS
|
|
4601
|
+
} else if (paneIsVirtualized && index.KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
4583
4602
|
e.preventDefault();
|
|
4584
4603
|
focusVirtualBoundary('bottom');
|
|
4585
4604
|
}
|
|
@@ -4603,6 +4622,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4603
4622
|
var MenuItem$1 = MenuItem;
|
|
4604
4623
|
|
|
4605
4624
|
const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4625
|
+
var _submenuDepths$intern;
|
|
4606
4626
|
let {
|
|
4607
4627
|
children,
|
|
4608
4628
|
label,
|
|
@@ -4642,19 +4662,21 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4642
4662
|
closeSubmenu: closeSubmenuContainingTrigger,
|
|
4643
4663
|
zIndex: paneContainingTriggerZIndex,
|
|
4644
4664
|
focusVirtualBoundary: focusVirtualBoundaryWithinPaneContainingTrigger,
|
|
4645
|
-
isVirtualized: paneContainingTriggerIsVirtualized
|
|
4665
|
+
isVirtualized: paneContainingTriggerIsVirtualized,
|
|
4666
|
+
internalId: parentId
|
|
4646
4667
|
} = usePaneContext(triggerRef);
|
|
4647
4668
|
const triggerIndex = React.useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
|
|
4648
4669
|
const {
|
|
4649
4670
|
openPaneDepth: totalOpenPaneDepth,
|
|
4650
4671
|
registerSubmenu,
|
|
4651
|
-
isVirtualizationDisabled
|
|
4672
|
+
isVirtualizationDisabled,
|
|
4673
|
+
submenuDepths
|
|
4652
4674
|
} = useMenuContext();
|
|
4653
4675
|
const {
|
|
4654
4676
|
isFocusVisible
|
|
4655
4677
|
} = interactions.useFocusVisible();
|
|
4656
4678
|
const zIndex = React.useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
4657
|
-
const thisPanesDepth =
|
|
4679
|
+
const thisPanesDepth = (_submenuDepths$intern = submenuDepths[internalId]) !== null && _submenuDepths$intern !== void 0 ? _submenuDepths$intern : Number.MAX_SAFE_INTEGER;
|
|
4658
4680
|
const [isPaneInDOM, setIsPaneInDOM] = React.useState(false);
|
|
4659
4681
|
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = React.useState(false);
|
|
4660
4682
|
const [isTransitioningFromRight, setIsTransitioningFromRight] = React.useState(false);
|
|
@@ -4664,7 +4686,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4664
4686
|
const closeThisSubmenu = e => {
|
|
4665
4687
|
// prevent closing the entire menu, and Radix keyboard navigation
|
|
4666
4688
|
e.preventDefault();
|
|
4667
|
-
registerSubmenu(internalId, false);
|
|
4689
|
+
registerSubmenu(internalId, false, parentId);
|
|
4668
4690
|
};
|
|
4669
4691
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
4670
4692
|
const {
|
|
@@ -4688,8 +4710,8 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4688
4710
|
isVirtualized
|
|
4689
4711
|
});
|
|
4690
4712
|
const focusVirtualBoundaryInPane = useFocusVirtualBoundary(items, backButtonRef);
|
|
4691
|
-
const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4692
|
-
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4713
|
+
const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BACK : index.DATA_TESTID_SUFFIXES.MENU_BACK);
|
|
4714
|
+
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : index.DATA_TESTID_SUFFIXES.MENU_ITEM);
|
|
4693
4715
|
index.useDidUpdate(() => {
|
|
4694
4716
|
if (isPaneInDOM) {
|
|
4695
4717
|
setIsTransitioningFromRight(true);
|
|
@@ -4697,14 +4719,14 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4697
4719
|
setIsFrameAfterPaneAddedToDOM(true);
|
|
4698
4720
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
4699
4721
|
}
|
|
4700
|
-
registerSubmenu(internalId, isPaneInDOM);
|
|
4722
|
+
registerSubmenu(internalId, isPaneInDOM, parentId);
|
|
4701
4723
|
onIsOpenChange === null || onIsOpenChange === void 0 || onIsOpenChange(isPaneInDOM);
|
|
4702
4724
|
}, [isPaneInDOM]);
|
|
4703
4725
|
|
|
4704
4726
|
// Omitted dependencies because this should only run on unmount
|
|
4705
4727
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4706
4728
|
React.useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
4707
|
-
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
4729
|
+
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children, isVirtualized, true);
|
|
4708
4730
|
const handlePaneTransitionEnd = () => {
|
|
4709
4731
|
var _flyoutRef$current;
|
|
4710
4732
|
if (animatedLeft) {
|
|
@@ -4749,14 +4771,14 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4749
4771
|
onTriggerCheckboxSelect === null || onTriggerCheckboxSelect === void 0 || onTriggerCheckboxSelect();
|
|
4750
4772
|
return;
|
|
4751
4773
|
}
|
|
4752
|
-
if (!isDisabled && KEYS
|
|
4774
|
+
if (!isDisabled && index.KEYS.OPEN_SUBMENU.includes(e.key)) {
|
|
4753
4775
|
setIsPaneInDOM(true);
|
|
4754
|
-
} else if (KEYS
|
|
4776
|
+
} else if (index.KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
4755
4777
|
closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0 || closeSubmenuContainingTrigger(e);
|
|
4756
|
-
} else if (paneContainingTriggerIsVirtualized && KEYS
|
|
4778
|
+
} else if (paneContainingTriggerIsVirtualized && index.KEYS.NAVIGATE_TOP.includes(e.key)) {
|
|
4757
4779
|
e.preventDefault();
|
|
4758
4780
|
focusVirtualBoundaryWithinPaneContainingTrigger('top');
|
|
4759
|
-
} else if (paneContainingTriggerIsVirtualized && KEYS
|
|
4781
|
+
} else if (paneContainingTriggerIsVirtualized && index.KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
4760
4782
|
e.preventDefault();
|
|
4761
4783
|
focusVirtualBoundaryWithinPaneContainingTrigger('bottom');
|
|
4762
4784
|
}
|
|
@@ -4779,7 +4801,8 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4779
4801
|
stickyBoxRef,
|
|
4780
4802
|
zIndex,
|
|
4781
4803
|
focusVirtualBoundary: focusVirtualBoundaryInPane,
|
|
4782
|
-
isVirtualized
|
|
4804
|
+
isVirtualized,
|
|
4805
|
+
internalId
|
|
4783
4806
|
}
|
|
4784
4807
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
4785
4808
|
loop: !isSearchable,
|
|
@@ -4811,12 +4834,12 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4811
4834
|
onSelect: closeThisSubmenu,
|
|
4812
4835
|
ref: backButtonRef,
|
|
4813
4836
|
onKeyDown: e => {
|
|
4814
|
-
if (KEYS
|
|
4837
|
+
if (index.KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
4815
4838
|
closeThisSubmenu(e);
|
|
4816
|
-
} else if (isVirtualized && KEYS
|
|
4839
|
+
} else if (isVirtualized && index.KEYS.NAVIGATE_TOP.includes(e.key)) {
|
|
4817
4840
|
e.preventDefault();
|
|
4818
4841
|
focusVirtualBoundaryInPane('top');
|
|
4819
|
-
} else if (isVirtualized && KEYS
|
|
4842
|
+
} else if (isVirtualized && index.KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
4820
4843
|
e.preventDefault();
|
|
4821
4844
|
focusVirtualBoundaryInPane('bottom');
|
|
4822
4845
|
}
|
|
@@ -5195,9 +5218,9 @@ const RowDisplayCount = _ref => {
|
|
|
5195
5218
|
}));
|
|
5196
5219
|
};
|
|
5197
5220
|
|
|
5198
|
-
var css_248z$3 = ".
|
|
5199
|
-
var styles$3 = {"input":"
|
|
5200
|
-
var stylesheet$3=".
|
|
5221
|
+
var css_248z$3 = "._l7A4s input{padding-left:76px!important}._0eDO0 input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._0eDO0 input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._0eDO0 input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Ufz5E{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._Ufz5E,._Ufz5E._0eDO0:hover{background-color:transparent!important}._Ufz5E:hover{background-color:rgba(50,54,58,.08)!important}._Ufz5E:active{background-color:rgba(50,54,58,.11)!important}._Ufz5E svg{top:2px!important}._RCulj{position:relative}._tF4cP{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
5222
|
+
var styles$3 = {"input":"_l7A4s","disabled":"_0eDO0","dropdown":"_Ufz5E","container":"_RCulj","countryCode":"_tF4cP"};
|
|
5223
|
+
var stylesheet$3="._l7A4s input{padding-left:76px!important}._0eDO0 input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._0eDO0 input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._0eDO0 input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Ufz5E{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._Ufz5E,._Ufz5E._0eDO0:hover{background-color:transparent!important}._Ufz5E:hover{background-color:rgba(50,54,58,.08)!important}._Ufz5E:active{background-color:rgba(50,54,58,.11)!important}._Ufz5E svg{top:2px!important}._RCulj{position:relative}._tF4cP{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
5201
5224
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$3);}
|
|
5202
5225
|
|
|
5203
5226
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -5307,15 +5330,16 @@ const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5307
5330
|
})));
|
|
5308
5331
|
});
|
|
5309
5332
|
|
|
5310
|
-
var css_248z$2 = ".
|
|
5311
|
-
var styles$2 = {"container":"
|
|
5312
|
-
var stylesheet$2=".
|
|
5333
|
+
var css_248z$2 = "._S4ulW{display:flex}._Nne-Z{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._Nne-Z._4-wHl{background-color:#fff}._Nne-Z._4-wHl._Ep3Cb:not(._Nne-Z._4-wHl._92D7s),._Nne-Z._4-wHl._FQLGK.focus-visible:not(._iX0x8),._Nne-Z._4-wHl._FQLGK:focus-visible:not(._iX0x8),._Nne-Z._9SrAf{background-color:#0b6ed0}._Nne-Z._9SrAf._92D7s._Ep3Cb,._Nne-Z._9SrAf._iX0x8._92D7s,._Nne-Z._9SrAf._iX0x8._FQLGK{opacity:.4}._os4c7{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._os4c7:focus{z-index:1}._oLFg3{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}._oLFg3 svg{margin-left:1px}._oLFg3._4-wHl{background-color:#0b6ed0;border-color:transparent}._oLFg3._4-wHl svg{fill:#fff!important}._oLFg3._4-wHl:not(._8g4QV):hover{background-color:#085caf!important}._oLFg3._4-wHl:not(._8g4QV):active{background-color:#0854a1!important}._oLFg3._4-wHl._8g4QV{opacity:.4}._oLFg3._4-wHl._8g4QV svg{background-color:transparent}._oLFg3._9SrAf{border-color:#0b6ed0;background-color:#fff}._oLFg3._9SrAf svg{fill:#0b6ed0!important}._oLFg3._9SrAf:not(._8g4QV):hover{background-color:#eef5fc!important}._oLFg3._9SrAf:not(._8g4QV):active{background-color:#e1edf9!important}._oLFg3._9SrAf._8g4QV{opacity:.4}._oLFg3._9SrAf._8g4QV svg{background-color:transparent}._fEW22{width:260px}";
|
|
5334
|
+
var styles$2 = {"container":"_S4ulW","divider":"_Nne-Z","primary":"_4-wHl","mainButtonFocus":"_FQLGK","mainButtonDisabled":"_iX0x8","dropdownButtonFocus":"_Ep3Cb","dropdownButtonDisabled":"_92D7s","secondary":"_9SrAf","mainButton":"_os4c7","dropdownButton":"_oLFg3","disabled":"_8g4QV","dropdownOption":"_fEW22"};
|
|
5335
|
+
var stylesheet$2="._S4ulW{display:flex}._Nne-Z{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._Nne-Z._4-wHl{background-color:#fff}._Nne-Z._4-wHl._Ep3Cb:not(._Nne-Z._4-wHl._92D7s),._Nne-Z._4-wHl._FQLGK.focus-visible:not(._iX0x8),._Nne-Z._4-wHl._FQLGK:focus-visible:not(._iX0x8),._Nne-Z._9SrAf{background-color:#0b6ed0}._Nne-Z._9SrAf._92D7s._Ep3Cb,._Nne-Z._9SrAf._iX0x8._92D7s,._Nne-Z._9SrAf._iX0x8._FQLGK{opacity:.4}._os4c7{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._os4c7:focus{z-index:1}._oLFg3{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}._oLFg3 svg{margin-left:1px}._oLFg3._4-wHl{background-color:#0b6ed0;border-color:transparent}._oLFg3._4-wHl svg{fill:#fff!important}._oLFg3._4-wHl:not(._8g4QV):hover{background-color:#085caf!important}._oLFg3._4-wHl:not(._8g4QV):active{background-color:#0854a1!important}._oLFg3._4-wHl._8g4QV{opacity:.4}._oLFg3._4-wHl._8g4QV svg{background-color:transparent}._oLFg3._9SrAf{border-color:#0b6ed0;background-color:#fff}._oLFg3._9SrAf svg{fill:#0b6ed0!important}._oLFg3._9SrAf:not(._8g4QV):hover{background-color:#eef5fc!important}._oLFg3._9SrAf:not(._8g4QV):active{background-color:#e1edf9!important}._oLFg3._9SrAf._8g4QV{opacity:.4}._oLFg3._9SrAf._8g4QV svg{background-color:transparent}._fEW22{width:260px}";
|
|
5313
5336
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$2);}
|
|
5314
5337
|
|
|
5315
5338
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
5316
5339
|
let {
|
|
5317
5340
|
kind = 'primary',
|
|
5318
5341
|
label,
|
|
5342
|
+
onClick,
|
|
5319
5343
|
children,
|
|
5320
5344
|
isButtonDisabled = false,
|
|
5321
5345
|
isDropdownDisabled = false,
|
|
@@ -5324,8 +5348,7 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5324
5348
|
buttonAriaLabel,
|
|
5325
5349
|
buttonAriaLabelledBy,
|
|
5326
5350
|
dropdownAriaLabel,
|
|
5327
|
-
dropdownAriaLabelledBy
|
|
5328
|
-
onClick
|
|
5351
|
+
dropdownAriaLabelledBy
|
|
5329
5352
|
} = _ref;
|
|
5330
5353
|
const mainButtonRef = React.useRef(null);
|
|
5331
5354
|
const dropdownButtonRef = React.useRef(null);
|
|
@@ -5499,18 +5522,18 @@ const HStack = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React_
|
|
|
5499
5522
|
// Explicitly listed props to prevent arbitrary prop spreading
|
|
5500
5523
|
const StackItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
5501
5524
|
let {
|
|
5525
|
+
children,
|
|
5526
|
+
fillSpace,
|
|
5502
5527
|
width,
|
|
5503
5528
|
minWidth,
|
|
5504
5529
|
maxWidth,
|
|
5505
5530
|
height,
|
|
5506
5531
|
minHeight,
|
|
5507
5532
|
maxHeight,
|
|
5508
|
-
fillSpace,
|
|
5509
5533
|
'aria-label': ariaLabel,
|
|
5510
5534
|
'aria-labelledby': ariaLabelledBy,
|
|
5511
5535
|
'aria-describedby': ariaDescribedBy,
|
|
5512
|
-
'data-testid': dataTestId
|
|
5513
|
-
children
|
|
5536
|
+
'data-testid': dataTestId
|
|
5514
5537
|
} = _ref;
|
|
5515
5538
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5516
5539
|
ref: ref,
|
|
@@ -5530,9 +5553,9 @@ const StackItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5530
5553
|
}, children);
|
|
5531
5554
|
});
|
|
5532
5555
|
|
|
5533
|
-
var css_248z$1 = ".
|
|
5534
|
-
var styles$1 = {"timePickerContainer":"
|
|
5535
|
-
var stylesheet$1=".
|
|
5556
|
+
var css_248z$1 = "._xPmTx{display:inline-block;position:relative}._xPmTx ._BFu-s{width:120px}._xPmTx ._BFu-s ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._xPmTx ._BFu-s ._Bnn0J._Mw7Kf{fill:#9d9fa1;opacity:.4}._xPmTx ._kJ05U>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xPmTx ._Bnn0J{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._xPmTx ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._zKatd{width:120px}._zKatd ._ZSnL2._Qccg-{background-color:#efefef;border-radius:6px}";
|
|
5557
|
+
var styles$1 = {"timePickerContainer":"_xPmTx","input":"_BFu-s","icon":"_Bnn0J","open":"_QVc8Y","disabled":"_Mw7Kf","ignoreFocusStyle":"_kJ05U","timePickerFlyout":"_zKatd","option":"_ZSnL2","exactMatch":"_Qccg-"};
|
|
5558
|
+
var stylesheet$1="._xPmTx{display:inline-block;position:relative}._xPmTx ._BFu-s{width:120px}._xPmTx ._BFu-s ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._xPmTx ._BFu-s ._Bnn0J._Mw7Kf{fill:#9d9fa1;opacity:.4}._xPmTx ._kJ05U>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xPmTx ._Bnn0J{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._xPmTx ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._zKatd{width:120px}._zKatd ._ZSnL2._Qccg-{background-color:#efefef;border-radius:6px}";
|
|
5536
5559
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$1);}
|
|
5537
5560
|
|
|
5538
5561
|
const TimeDropdown = _ref => {
|
|
@@ -6112,9 +6135,9 @@ const {
|
|
|
6112
6135
|
Provider: ToggleButtonGroupContextProvider
|
|
6113
6136
|
} = index.createContextUtilities(null);
|
|
6114
6137
|
|
|
6115
|
-
var css_248z = ".
|
|
6116
|
-
var styles = {"default":"
|
|
6117
|
-
var stylesheet=".
|
|
6138
|
+
var css_248z = "._SZ9ql{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._1jns1{background-color:rgba(50,54,58,.08)}._MPKrN{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._j1dQn{color:rgba(81,85,89,.4);cursor:not-allowed}._7D5mJ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._eIMz1{color:#085caf;border-color:#085caf}._-F1NW,._eIMz1{background:rgba(11,110,208,.11)}._-F1NW{color:#0854a1;border-color:#0854a1}._zO0Jo{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb{position:relative;display:inline-grid}._yRbdb svg{fill:currentColor}._yRbdb ._PueOx{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._yRbdb ._PueOx+._qoRqC{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}._yRbdb ._PueOx+._qoRqC._92JUB{padding:5px;max-width:36px;min-width:36px}._yRbdb ._PueOx+._qoRqC._RlnLl{padding:0 16px}._yRbdb ._PueOx+._qoRqC._JYl5h{padding:0 16px 0 12px}._yRbdb ._PueOx:hover+._qoRqC{background-color:rgba(50,54,58,.08)}._yRbdb ._PueOx:disabled+._qoRqC{color:rgba(81,85,89,.4);cursor:not-allowed}._yRbdb ._PueOx:active+._qoRqC,._yRbdb ._PueOx:focus:active+._qoRqC{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._yRbdb ._PueOx:checked+._qoRqC{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._yRbdb ._PueOx:checked:hover+._qoRqC{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._yRbdb ._PueOx:checked:disabled+._qoRqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb ._PueOx:checked:active+._qoRqC,._yRbdb ._PueOx:checked:focus:active+._qoRqC{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._7tdBv{display:inline-flex;position:relative}._7tdBv:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._7tdBv>*{flex-shrink:0;flex-grow:0}._Ns1pj{border:none;margin:0;padding:0}._Ns1pj legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._yRbdb ._PueOx.focus-visible,._yRbdb ._PueOx:focus-visible{outline:none}._yRbdb ._PueOx.focus-visible+._qoRqC,._yRbdb ._PueOx:focus-visible+._qoRqC{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6139
|
+
var styles = {"default":"_SZ9ql","hovered":"_1jns1","pressed":"_MPKrN","disabled":"_j1dQn","selectedDefault":"_7D5mJ","selectedHovered":"_eIMz1","selectedPressed":"_-F1NW","selectedDisabled":"_zO0Jo","toggleContainer":"_yRbdb","toggleInput":"_PueOx","toggleButton":"_qoRqC","iconOnly":"_92JUB","text":"_RlnLl","iconText":"_JYl5h","toggleButtonGroup":"_7tdBv","toggleButtonGroupFieldset":"_Ns1pj"};
|
|
6140
|
+
var stylesheet="._SZ9ql{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._1jns1{background-color:rgba(50,54,58,.08)}._MPKrN{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._j1dQn{color:rgba(81,85,89,.4);cursor:not-allowed}._7D5mJ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._eIMz1{color:#085caf;border-color:#085caf}._-F1NW,._eIMz1{background:rgba(11,110,208,.11)}._-F1NW{color:#0854a1;border-color:#0854a1}._zO0Jo{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb{position:relative;display:inline-grid}._yRbdb svg{fill:currentColor}._yRbdb ._PueOx{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._yRbdb ._PueOx+._qoRqC{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}._yRbdb ._PueOx+._qoRqC._92JUB{padding:5px;max-width:36px;min-width:36px}._yRbdb ._PueOx+._qoRqC._RlnLl{padding:0 16px}._yRbdb ._PueOx+._qoRqC._JYl5h{padding:0 16px 0 12px}._yRbdb ._PueOx:hover+._qoRqC{background-color:rgba(50,54,58,.08)}._yRbdb ._PueOx:disabled+._qoRqC{color:rgba(81,85,89,.4);cursor:not-allowed}._yRbdb ._PueOx:active+._qoRqC,._yRbdb ._PueOx:focus:active+._qoRqC{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._yRbdb ._PueOx:checked+._qoRqC{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._yRbdb ._PueOx:checked:hover+._qoRqC{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._yRbdb ._PueOx:checked:disabled+._qoRqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb ._PueOx:checked:active+._qoRqC,._yRbdb ._PueOx:checked:focus:active+._qoRqC{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._7tdBv{display:inline-flex;position:relative}._7tdBv:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._7tdBv>*{flex-shrink:0;flex-grow:0}._Ns1pj{border:none;margin:0;padding:0}._Ns1pj legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._yRbdb ._PueOx.focus-visible,._yRbdb ._PueOx:focus-visible{outline:none}._yRbdb ._PueOx.focus-visible+._qoRqC,._yRbdb ._PueOx:focus-visible+._qoRqC{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6118
6141
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z);}
|
|
6119
6142
|
|
|
6120
6143
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|