@qualtrics/ui-react 2.85.2 → 2.85.4
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 +17 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +14 -3
- package/dist/__node_modules/@radix-ui/primitive/dist/internal/is-development.false.js +4 -0
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +7 -4
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +58 -39
- package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +8 -1
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +35 -12
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +10 -3
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +172 -41
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +58 -61
- package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -6
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +33 -9
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +107 -79
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +79 -38
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -6
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +71 -12
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +36 -12
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +85 -54
- package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +6 -1
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +14 -4
- package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +6 -1
- package/dist/__node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +37 -0
- package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +6 -0
- package/dist/__shared/cjs/{index-e03dac36.js → index-08198ff4.js} +140 -136
- package/dist/__shared/cjs/{index-507024ee.js → index-e51bbd75.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +6 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/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/design-tokens/less/typography.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/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/useFlyoutNode.js +48 -0
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +4 -3
- package/dist/next/Menu/MenuItem.js +3 -2
- package/dist/next/Menu/MenuPane.js +17 -16
- package/dist/next/Menu/PaneChildren.js +15 -10
- package/dist/next/Menu/SubMenu.js +17 -16
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +1055 -519
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +4 -4
- package/next/package.json +5 -5
- package/package.json +14 -14
- package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -23
package/dist/next/index.js
CHANGED
|
@@ -7,8 +7,8 @@ var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var classNames = require('classnames');
|
|
9
9
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
10
|
-
var index = require('../__shared/cjs/index-
|
|
11
|
-
var icons_index = require('../__shared/cjs/index-
|
|
10
|
+
var index = require('../__shared/cjs/index-08198ff4.js');
|
|
11
|
+
var icons_index = require('../__shared/cjs/index-e51bbd75.js');
|
|
12
12
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
13
13
|
var core = require('@dnd-kit/core');
|
|
14
14
|
var modifiers = require('@dnd-kit/modifiers');
|
|
@@ -54,13 +54,12 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
54
54
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
55
55
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
56
56
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
57
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
58
57
|
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_includesInstanceProperty);
|
|
59
58
|
var ReactFocusLock__default = /*#__PURE__*/_interopDefaultLegacy(ReactFocusLock);
|
|
60
59
|
|
|
61
|
-
var css_248z$k = ".
|
|
62
|
-
var styles$e = {"advancedTable":"
|
|
63
|
-
var stylesheet$k=".
|
|
60
|
+
var css_248z$k = "._HZg1C{overflow:auto;position:relative;max-width:100%;max-height:100%}._HZg1C,._kQhaB{background-color:#fff}._kQhaB{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._PuilH{margin-bottom:4px}._4L1tH{position:-webkit-sticky;position:sticky;top:0;z-index:100}._-52Ri{display:flex}._-52Ri:focus{outline:none}._-52Ri:focus-visible ._ZKalG: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}._-52Ri:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._-52Ri:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._-52Ri:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:1px}._ONNMq{padding-right:3px}._GnuJ3{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._W78M0{display:flex}._W78M0._u-0sQ ._BC0o7,._W78M0._u-0sQ ._ZKalG{cursor:pointer}._W78M0._9Hl2L ._BC0o7,._W78M0._9Hl2L ._ZKalG{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._W78M0._9Hl2L ._BC0o7._xlbKU,._W78M0._9Hl2L ._ZKalG._xlbKU{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._W78M0._9Hl2L ._BC0o7._xlbKU ._0KztY,._W78M0._9Hl2L ._BC0o7._xlbKU ._BC0o7,._W78M0._9Hl2L ._BC0o7._xlbKU ._OAV6E,._W78M0._9Hl2L ._ZKalG._xlbKU ._0KztY,._W78M0._9Hl2L ._ZKalG._xlbKU ._BC0o7,._W78M0._9Hl2L ._ZKalG._xlbKU ._OAV6E{background-color:rgba(11,110,208,.08)}._W78M0._u-0sQ:hover:not(._9Hl2L) ._BC0o7,._W78M0._u-0sQ:hover:not(._9Hl2L) ._ZKalG{background-color:#f9f9f9}._W78M0._u-0sQ:active:not(._9Hl2L):not(._W78M0._u-0sQ:active:not(._9Hl2L):has(._OAV6E:active)) ._BC0o7,._W78M0._u-0sQ:active:not(._9Hl2L):not(._W78M0._u-0sQ:active:not(._9Hl2L):has(._OAV6E:active)) ._ZKalG{background-color:#f3f3f3}._W78M0:focus{outline:none}._W78M0:focus-visible ._ZKalG: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}._W78M0:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._W78M0:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._W78M0:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:0}._W78M0:last-of-type:focus{outline:none}._W78M0:last-of-type:focus-visible ._ZKalG: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}._W78M0:last-of-type:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._W78M0:last-of-type:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._W78M0:last-of-type:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:1px}._W78M0:last-of-type ._0KztY:focus{outline:none}._W78M0:last-of-type ._0KztY._FY6id:focus-visible:after,._W78M0:last-of-type ._0KztY: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}._W78M0:first-of-type:focus{outline:none}._W78M0:first-of-type:focus-visible ._ZKalG: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}._W78M0:first-of-type:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._W78M0:first-of-type:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._W78M0:first-of-type:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:0}._W78M0:first-of-type ._0KztY:focus{outline:none}._W78M0:first-of-type ._0KztY._FY6id:focus-visible:after,._W78M0:first-of-type ._0KztY: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}._okxhF{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}._okxhF._C-wms{flex-grow:1}._okxhF._nHZhr{cursor:pointer}._okxhF._nHZhr:hover:not(._-3LgW){background-color:#f9f9f9;border-bottom-color:#6a6d70}._okxhF._nHZhr:active:not(._-3LgW){background-color:#f3f3f3}._okxhF._5-spm:not(._-3LgW){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._okxhF._-3LgW{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._okxhF ._MEKd-{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._okxhF ._MEKd-._RTMdo{left:-1px}._okxhF ._MEKd-._GMhXJ{right:0}._okxhF ._gOf8o{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._okxhF ._gOf8o._RTMdo{left:-2px}._okxhF ._gOf8o._GMhXJ{right:-1px}._okxhF:first-of-type ._RTMdo._MEKd-{left:0;width:2px;border-left:1px solid #fff}._okxhF:first-of-type ._RTMdo._gOf8o{left:0}._okxhF:last-of-type ._GMhXJ._MEKd-{right:0;width:2px;border-right:1px solid #fff}._okxhF:last-of-type ._GMhXJ._gOf8o{right:0}._okxhF ._O4hXD{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._okxhF ._O4hXD ._kMLhX{position:absolute;width:2px;right:2px;top:0;bottom:0}._okxhF ._O4hXD ._kMLhX._m-01D{background-color:#0a6ed1}._okxhF ._O4hXD:hover ._kMLhX:not(._m-01D){background-color:#d9d9d9}._okxhF ._4-gTJ{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._okxhF ._4-gTJ._l5DmO{flex-direction:row-reverse;justify-content:flex-start}._okxhF ._4-gTJ._l5DmO ._bPpi4{margin:1px 7px 1px 1px}._okxhF ._4-gTJ ._Y32XL{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._okxhF ._4-gTJ ._bPpi4{margin:1px 1px 1px 7px;flex-shrink:0}._okxhF ._XtE04{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._okxhF ._J9G4V{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._okxhF:focus{outline:none}._okxhF._FY6id:focus-visible:after,._okxhF: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}._8DiE3{margin-right:6px}._xlbKU{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._xlbKU:focus-within{z-index:30}._0KztY{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}._0KztY ._9A8UM{width:100%;padding:12px 12px 11px;overflow:hidden}._0KztY._-3LgW{background-color:#efefef;border-bottom-color:#dfdfe1}._0KztY._C-wms{flex-grow:1}._0KztY:focus{outline:none}._0KztY._FY6id:focus-visible:after,._0KztY: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}._BC0o7{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._BC0o7._LPpxC{border-bottom-color:#d9d9d9;background-color:#fff}._OAV6E{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}._OAV6E._LPpxC{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._OAV6E:focus input~span,._OAV6E:hover input~span{border-color:#0b6ed0}._zIjsI{justify-content:flex-start}._WfNrO{justify-content:center;text-align:center}._l5DmO{justify-content:flex-end;text-align:right}._pQebU{display:none}._KO5Wi{position:absolute;opacity:0;height:0;width:0;overflow:hidden}._oX-CD{background-color:rgba(11,110,208,.08);position:absolute;border-radius:4px;z-index:1000}._Mk3Tk,._oX-CD{cursor:move;pointer-events:none}._KbSYU{max-width:250px;min-width:150px!important}";
|
|
61
|
+
var styles$e = {"advancedTable":"_HZg1C","advancedTablePaginationContainer":"_kQhaB","advancedTablePagination":"_PuilH","advancedTableColumnHeadersRowGroup":"_4L1tH","advancedTableColumnHeaders":"_-52Ri","advancedTableRowChild":"_ZKalG","pinnedContainer":"_xlbKU","advancedTableRowGroup":"_ONNMq","advancedTableRowRestrictedWidth":"_GnuJ3","advancedTableRow":"_W78M0","hasRowAction":"_u-0sQ","advancedTableExpandRowSpacer":"_BC0o7","isSelected":"_9Hl2L","advancedTableCheckbox":"_OAV6E","advancedTableCell":"_0KztY","showFocusRing":"_FY6id","advancedTableColumnHeader":"_okxhF","fillRemainingSpace":"_C-wms","isSortable":"_nHZhr","isDragging":"_-3LgW","isSorted":"_5-spm","dropTargetLine":"_MEKd-","dropTargetLeft":"_RTMdo","dropTargetRight":"_GMhXJ","dropTargetMarker":"_gOf8o","resizeHandle":"_O4hXD","resizeLine":"_kMLhX","isResizing":"_m-01D","advancedTableColumnHeaderLabel":"_4-gTJ","rightAligned":"_l5DmO","sortIcon":"_bPpi4","advancedTableColumnHeaderLabelText":"_Y32XL","advancedTableColumnHeaderMenu":"_XtE04","advancedTableColumnHeaderMenuHiddenAnchor":"_J9G4V","advancedTableColumnHeaderMenuItemIcon":"_8DiE3","advancedTableCellContainer":"_9A8UM","header":"_LPpxC","leftAligned":"_zIjsI","centerAligned":"_WfNrO","hiddenDescription":"_pQebU","hiddenLiveRegion":"_KO5Wi","dragPreview":"_oX-CD","isColumnDragging":"_Mk3Tk","rowActionMenuPane":"_KbSYU"};
|
|
62
|
+
var stylesheet$k="._HZg1C{overflow:auto;position:relative;max-width:100%;max-height:100%}._HZg1C,._kQhaB{background-color:#fff}._kQhaB{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._PuilH{margin-bottom:4px}._4L1tH{position:-webkit-sticky;position:sticky;top:0;z-index:100}._-52Ri{display:flex}._-52Ri:focus{outline:none}._-52Ri:focus-visible ._ZKalG: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}._-52Ri:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._-52Ri:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._-52Ri:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:1px}._ONNMq{padding-right:3px}._GnuJ3{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._W78M0{display:flex}._W78M0._u-0sQ ._BC0o7,._W78M0._u-0sQ ._ZKalG{cursor:pointer}._W78M0._9Hl2L ._BC0o7,._W78M0._9Hl2L ._ZKalG{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._W78M0._9Hl2L ._BC0o7._xlbKU,._W78M0._9Hl2L ._ZKalG._xlbKU{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._W78M0._9Hl2L ._BC0o7._xlbKU ._0KztY,._W78M0._9Hl2L ._BC0o7._xlbKU ._BC0o7,._W78M0._9Hl2L ._BC0o7._xlbKU ._OAV6E,._W78M0._9Hl2L ._ZKalG._xlbKU ._0KztY,._W78M0._9Hl2L ._ZKalG._xlbKU ._BC0o7,._W78M0._9Hl2L ._ZKalG._xlbKU ._OAV6E{background-color:rgba(11,110,208,.08)}._W78M0._u-0sQ:hover:not(._9Hl2L) ._BC0o7,._W78M0._u-0sQ:hover:not(._9Hl2L) ._ZKalG{background-color:#f9f9f9}._W78M0._u-0sQ:active:not(._9Hl2L):not(._W78M0._u-0sQ:active:not(._9Hl2L):has(._OAV6E:active)) ._BC0o7,._W78M0._u-0sQ:active:not(._9Hl2L):not(._W78M0._u-0sQ:active:not(._9Hl2L):has(._OAV6E:active)) ._ZKalG{background-color:#f3f3f3}._W78M0:focus{outline:none}._W78M0:focus-visible ._ZKalG: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}._W78M0:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._W78M0:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._W78M0:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:0}._W78M0:last-of-type:focus{outline:none}._W78M0:last-of-type:focus-visible ._ZKalG: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}._W78M0:last-of-type:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._W78M0:last-of-type:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._W78M0:last-of-type:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:1px}._W78M0:last-of-type ._0KztY:focus{outline:none}._W78M0:last-of-type ._0KztY._FY6id:focus-visible:after,._W78M0:last-of-type ._0KztY: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}._W78M0:first-of-type:focus{outline:none}._W78M0:first-of-type:focus-visible ._ZKalG: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}._W78M0:first-of-type:focus-visible ._ZKalG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._W78M0:first-of-type:focus-visible ._ZKalG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._W78M0:first-of-type:focus-visible ._ZKalG._xlbKU:after{right:-3px;bottom:0}._W78M0:first-of-type ._0KztY:focus{outline:none}._W78M0:first-of-type ._0KztY._FY6id:focus-visible:after,._W78M0:first-of-type ._0KztY: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}._okxhF{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}._okxhF._C-wms{flex-grow:1}._okxhF._nHZhr{cursor:pointer}._okxhF._nHZhr:hover:not(._-3LgW){background-color:#f9f9f9;border-bottom-color:#6a6d70}._okxhF._nHZhr:active:not(._-3LgW){background-color:#f3f3f3}._okxhF._5-spm:not(._-3LgW){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._okxhF._-3LgW{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._okxhF ._MEKd-{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._okxhF ._MEKd-._RTMdo{left:-1px}._okxhF ._MEKd-._GMhXJ{right:0}._okxhF ._gOf8o{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._okxhF ._gOf8o._RTMdo{left:-2px}._okxhF ._gOf8o._GMhXJ{right:-1px}._okxhF:first-of-type ._RTMdo._MEKd-{left:0;width:2px;border-left:1px solid #fff}._okxhF:first-of-type ._RTMdo._gOf8o{left:0}._okxhF:last-of-type ._GMhXJ._MEKd-{right:0;width:2px;border-right:1px solid #fff}._okxhF:last-of-type ._GMhXJ._gOf8o{right:0}._okxhF ._O4hXD{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._okxhF ._O4hXD ._kMLhX{position:absolute;width:2px;right:2px;top:0;bottom:0}._okxhF ._O4hXD ._kMLhX._m-01D{background-color:#0a6ed1}._okxhF ._O4hXD:hover ._kMLhX:not(._m-01D){background-color:#d9d9d9}._okxhF ._4-gTJ{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._okxhF ._4-gTJ._l5DmO{flex-direction:row-reverse;justify-content:flex-start}._okxhF ._4-gTJ._l5DmO ._bPpi4{margin:1px 7px 1px 1px}._okxhF ._4-gTJ ._Y32XL{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._okxhF ._4-gTJ ._bPpi4{margin:1px 1px 1px 7px;flex-shrink:0}._okxhF ._XtE04{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._okxhF ._J9G4V{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._okxhF:focus{outline:none}._okxhF._FY6id:focus-visible:after,._okxhF: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}._8DiE3{margin-right:6px}._xlbKU{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._xlbKU:focus-within{z-index:30}._0KztY{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}._0KztY ._9A8UM{width:100%;padding:12px 12px 11px;overflow:hidden}._0KztY._-3LgW{background-color:#efefef;border-bottom-color:#dfdfe1}._0KztY._C-wms{flex-grow:1}._0KztY:focus{outline:none}._0KztY._FY6id:focus-visible:after,._0KztY: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}._BC0o7{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._BC0o7._LPpxC{border-bottom-color:#d9d9d9;background-color:#fff}._OAV6E{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}._OAV6E._LPpxC{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._OAV6E:focus input~span,._OAV6E:hover input~span{border-color:#0b6ed0}._zIjsI{justify-content:flex-start}._WfNrO{justify-content:center;text-align:center}._l5DmO{justify-content:flex-end;text-align:right}._pQebU{display:none}._KO5Wi{position:absolute;opacity:0;height:0;width:0;overflow:hidden}._oX-CD{background-color:rgba(11,110,208,.08);position:absolute;border-radius:4px;z-index:1000}._Mk3Tk,._oX-CD{cursor:move;pointer-events:none}._KbSYU{max-width:250px;min-width:150px!important}";
|
|
64
63
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$k);}
|
|
65
64
|
|
|
66
65
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -2144,9 +2143,9 @@ function getExternalRowsWithUpdatedRow(extRows, rowId, depth, updatedRow) {
|
|
|
2144
2143
|
|
|
2145
2144
|
/* eslint-disable import/prefer-default-export */
|
|
2146
2145
|
|
|
2147
|
-
var css_248z$j = ".
|
|
2148
|
-
var styles$d = {"collapsibleSearchInput":"
|
|
2149
|
-
var stylesheet$j=".
|
|
2146
|
+
var css_248z$j = "._Jg7gd{display:inline-block;width:36px;transition:width .25s ease-out}._QNFmS{width:100%}._iZlps>input{padding-right:0!important}._MXK94>svg{fill:#515559}";
|
|
2147
|
+
var styles$d = {"collapsibleSearchInput":"_Jg7gd","searchInput":"_QNFmS","searchInputCollapsed":"_iZlps","iconButton":"_MXK94"};
|
|
2148
|
+
var stylesheet$j="._Jg7gd{display:inline-block;width:36px;transition:width .25s ease-out}._QNFmS{width:100%}._iZlps>input{padding-right:0!important}._MXK94>svg{fill:#515559}";
|
|
2150
2149
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$j);}
|
|
2151
2150
|
|
|
2152
2151
|
const _excluded$s = ["tooltipContent", "tooltipPlacement"];
|
|
@@ -3008,9 +3007,9 @@ function Combobox(_ref) {
|
|
|
3008
3007
|
}, children);
|
|
3009
3008
|
}
|
|
3010
3009
|
|
|
3011
|
-
var css_248z$i = ".
|
|
3012
|
-
var styles$c = {"loadingSpinner":"
|
|
3013
|
-
var stylesheet$i=".
|
|
3010
|
+
var css_248z$i = "._nMAs- :after{background-color:#515559!important}._agG-K>input:focus{box-shadow:none!important;border:1px solid #898989!important}._6vbRU{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}._6vbRU ._v-F31 ._y9S-d{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}._6vbRU ._v-F31:first-child ._tENEP{display:none}._6vbRU ._blnb4{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._6vbRU ._blnb4:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._6vbRU ._blnb4:hover._I-3V3{background-color:#e4effa}._6vbRU ._blnb4._I-3V3{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._6vbRU ._blnb4:active:not(._I-3V3){background-color:#e8e9e9}";
|
|
3011
|
+
var styles$c = {"loadingSpinner":"_nMAs-","ignoreFocusStyle":"_agG-K","flyout":"_6vbRU","group":"_v-F31","header":"_y9S-d","divider":"_tENEP","option":"_blnb4","selected":"_I-3V3"};
|
|
3012
|
+
var stylesheet$i="._nMAs- :after{background-color:#515559!important}._agG-K>input:focus{box-shadow:none!important;border:1px solid #898989!important}._6vbRU{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}._6vbRU ._v-F31 ._y9S-d{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}._6vbRU ._v-F31:first-child ._tENEP{display:none}._6vbRU ._blnb4{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._6vbRU ._blnb4:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._6vbRU ._blnb4:hover._I-3V3{background-color:#e4effa}._6vbRU ._blnb4._I-3V3{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._6vbRU ._blnb4:active:not(._I-3V3){background-color:#e8e9e9}";
|
|
3014
3013
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$i);}
|
|
3015
3014
|
|
|
3016
3015
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3310,9 +3309,9 @@ function ComboboxOption(_ref) {
|
|
|
3310
3309
|
}, label);
|
|
3311
3310
|
}
|
|
3312
3311
|
|
|
3313
|
-
var css_248z$h = ".
|
|
3314
|
-
var styles$b = {"overlay":"
|
|
3315
|
-
var stylesheet$h=".
|
|
3312
|
+
var css_248z$h = "._cnjdq{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;place-items:left;overflow-y:auto}._t0AAu{visibility:hidden}._ePLP7{position:fixed}._6b9hL{overflow:hidden!important}";
|
|
3313
|
+
var styles$b = {"overlay":"_cnjdq","hidden":"_t0AAu","anchoredToBody":"_ePLP7","blockedScroll":"_6b9hL"};
|
|
3314
|
+
var stylesheet$h="._cnjdq{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;place-items:left;overflow-y:auto}._t0AAu{visibility:hidden}._ePLP7{position:fixed}._6b9hL{overflow:hidden!important}";
|
|
3316
3315
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$h);}
|
|
3317
3316
|
|
|
3318
3317
|
const STATUS_MESSAGE_SELECTOR = '[aria-live], [role="status"], output';
|
|
@@ -3386,9 +3385,9 @@ const useOverlay = _ref => {
|
|
|
3386
3385
|
}, [containerRef, isVisible, ignoreIds, overlayId, disableScrollLock]);
|
|
3387
3386
|
};
|
|
3388
3387
|
|
|
3389
|
-
var css_248z$g = ".
|
|
3390
|
-
var styles$a = {"drawer":"
|
|
3391
|
-
var stylesheet$g=".
|
|
3388
|
+
var css_248z$g = "._pkXfw{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}._sKTI2{visibility:hidden}._UcHcL{position:fixed}._Frt7Q{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._Ged50{padding-top:8px}._Vya-2{margin-left:12px}";
|
|
3389
|
+
var styles$a = {"drawer":"_pkXfw","hidden":"_sKTI2","anchoredToBody":"_UcHcL","header":"_Frt7Q","title":"_Ged50","closeButton":"_Vya-2"};
|
|
3390
|
+
var stylesheet$g="._pkXfw{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}._sKTI2{visibility:hidden}._UcHcL{position:fixed}._Frt7Q{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._Ged50{padding-top:8px}._Vya-2{margin-left:12px}";
|
|
3392
3391
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$g);}
|
|
3393
3392
|
|
|
3394
3393
|
const Drawer = _ref => {
|
|
@@ -3528,9 +3527,9 @@ const Drawer = _ref => {
|
|
|
3528
3527
|
};
|
|
3529
3528
|
Drawer.displayName = 'Drawer';
|
|
3530
3529
|
|
|
3531
|
-
var css_248z$f = ".
|
|
3532
|
-
var styles$9 = {"button":"
|
|
3533
|
-
var stylesheet$f=".
|
|
3530
|
+
var css_248z$f = "._Cr-Xo{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}._Cr-Xo:hover:not(._nNx0Z){background-color:rgba(50,54,58,.08)}._Cr-Xo:hover:not(._nNx0Z)._57Ya2{border-color:#085caf;background-color:rgba(11,110,208,.04)}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._J8DZ1{color:#32363a}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._tUty-{fill:#32363a}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._V0R2A{fill:#085caf}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._jQMiK{background-color:rgba(11,110,208,.11)}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._jQMiK ._IMhdt{color:#085caf}._Cr-Xo:active:not(._nNx0Z){background-color:#e8e9e9}._Cr-Xo:active:not(._nNx0Z)._57Ya2{background-color:rgba(11,110,208,.11);border-color:#0854a1}._Cr-Xo:active:not(._nNx0Z)._57Ya2 ._V0R2A{fill:#0854a1}._Cr-Xo:active:not(._nNx0Z)._57Ya2 ._jQMiK{background-color:rgba(11,110,208,.11)}._Cr-Xo:active:not(._nNx0Z)._57Ya2 ._jQMiK ._IMhdt{color:#0854a1}._Cr-Xo._nNx0Z{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._Cr-Xo._57Ya2{border-color:#0b6ed0}._tUty-{fill:#515559}._dqH6o,._tUty-{margin-right:4px}._J8DZ1{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._J8DZ1+._jQMiK{margin-left:6px}._J8DZ1._nNx0Z{color:#74777a}._jQMiK{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}._IMhdt{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._V0R2A{fill:#515559}._V0R2A._nNx0Z,._V0R2A._nNx0Z._57Ya2{fill:rgba(116,119,122,.4)}._V0R2A._57Ya2{fill:#0b6ed0}._V0R2A._-cSl3{transform:rotate(-180deg)}._Cr-Xo:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3531
|
+
var styles$9 = {"button":"_Cr-Xo","disabled":"_nNx0Z","selected":"_57Ya2","label":"_J8DZ1","lockIcon":"_tUty-","chevronIcon":"_V0R2A","selectedFiltersContainer":"_jQMiK","selectedFilters":"_IMhdt","lockIconWrapper":"_dqH6o","open":"_-cSl3"};
|
|
3532
|
+
var stylesheet$f="._Cr-Xo{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}._Cr-Xo:hover:not(._nNx0Z){background-color:rgba(50,54,58,.08)}._Cr-Xo:hover:not(._nNx0Z)._57Ya2{border-color:#085caf;background-color:rgba(11,110,208,.04)}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._J8DZ1{color:#32363a}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._tUty-{fill:#32363a}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._V0R2A{fill:#085caf}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._jQMiK{background-color:rgba(11,110,208,.11)}._Cr-Xo:hover:not(._nNx0Z)._57Ya2 ._jQMiK ._IMhdt{color:#085caf}._Cr-Xo:active:not(._nNx0Z){background-color:#e8e9e9}._Cr-Xo:active:not(._nNx0Z)._57Ya2{background-color:rgba(11,110,208,.11);border-color:#0854a1}._Cr-Xo:active:not(._nNx0Z)._57Ya2 ._V0R2A{fill:#0854a1}._Cr-Xo:active:not(._nNx0Z)._57Ya2 ._jQMiK{background-color:rgba(11,110,208,.11)}._Cr-Xo:active:not(._nNx0Z)._57Ya2 ._jQMiK ._IMhdt{color:#0854a1}._Cr-Xo._nNx0Z{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._Cr-Xo._57Ya2{border-color:#0b6ed0}._tUty-{fill:#515559}._dqH6o,._tUty-{margin-right:4px}._J8DZ1{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._J8DZ1+._jQMiK{margin-left:6px}._J8DZ1._nNx0Z{color:#74777a}._jQMiK{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}._IMhdt{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._V0R2A{fill:#515559}._V0R2A._nNx0Z,._V0R2A._nNx0Z._57Ya2{fill:rgba(116,119,122,.4)}._V0R2A._57Ya2{fill:#0b6ed0}._V0R2A._-cSl3{transform:rotate(-180deg)}._Cr-Xo:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3534
3533
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$f);}
|
|
3535
3534
|
|
|
3536
3535
|
const _excluded$r = ["label", "selectedFilters", "isOpen", "onClick", "onKeyDown", "isLocked", "lockedIcon", "isDisabled", "isLoading", "aria-labelledby", "loadingSpinnerAriaLabel", "className", "data-testid"];
|
|
@@ -4000,9 +3999,9 @@ const LayoutGridItem = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
4000
3999
|
});
|
|
4001
4000
|
LayoutGridItem.displayName = 'LayoutGridItem';
|
|
4002
4001
|
|
|
4003
|
-
var css_248z$e = ".
|
|
4004
|
-
var styles$8 = {"spinnerContainer":"
|
|
4005
|
-
var stylesheet$e=".
|
|
4002
|
+
var css_248z$e = "._A0d10{position:relative;display:inline-block}._A0d10._DA96F{min-height:20px;min-width:20px}._A0d10._OrSjN{min-height:25px;min-width:25px}._A0d10._9kIkm{min-height:40px;min-width:40px}._A0d10._p2anV{min-height:64px;min-width:64px}._A0d10 ._Po2Hu{display:inline-block;background-color:initial;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._A0d10 ._Po2Hu._MqNB9{display:none}._A0d10 ._Po2Hu div{position:absolute;transform:rotate(20deg)}._A0d10 ._Po2Hu div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_Po2Hu .9s linear infinite}._A0d10 ._Po2Hu div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._A0d10 ._Po2Hu div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._A0d10 ._Po2Hu div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._A0d10 ._Po2Hu div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._A0d10 ._Po2Hu div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._A0d10 ._Po2Hu div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._A0d10 ._Po2Hu div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._A0d10 ._Po2Hu div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._A0d10 ._Po2Hu div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._A0d10 ._Po2Hu div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._A0d10 ._p2anV div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._A0d10 ._DA96F div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._A0d10 ._OrSjN div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._A0d10 ._IZp8t div div:nth-child(-n+9):after{background:#fff}._A0d10 ._3ORk8{width:100%;height:100%}._A0d10 ._3ORk8._fx3uC{pointer-events:none}._A0d10 ._3ORk8._MqNB9{opacity:0}._A0d10 ._3ORk8._0lpck{opacity:.8}@keyframes _Po2Hu{0%{opacity:1}to{opacity:0}}";
|
|
4003
|
+
var styles$8 = {"spinnerContainer":"_A0d10","xs":"_DA96F","small":"_OrSjN","medium":"_9kIkm","large":"_p2anV","spinnerComponent":"_Po2Hu","hide":"_MqNB9","inverted":"_IZp8t","spinnerContent":"_3ORk8","disablePointerEvents":"_fx3uC","fade":"_0lpck"};
|
|
4004
|
+
var stylesheet$e="._A0d10{position:relative;display:inline-block}._A0d10._DA96F{min-height:20px;min-width:20px}._A0d10._OrSjN{min-height:25px;min-width:25px}._A0d10._9kIkm{min-height:40px;min-width:40px}._A0d10._p2anV{min-height:64px;min-width:64px}._A0d10 ._Po2Hu{display:inline-block;background-color:initial;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._A0d10 ._Po2Hu._MqNB9{display:none}._A0d10 ._Po2Hu div{position:absolute;transform:rotate(20deg)}._A0d10 ._Po2Hu div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_Po2Hu .9s linear infinite}._A0d10 ._Po2Hu div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._A0d10 ._Po2Hu div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._A0d10 ._Po2Hu div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._A0d10 ._Po2Hu div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._A0d10 ._Po2Hu div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._A0d10 ._Po2Hu div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._A0d10 ._Po2Hu div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._A0d10 ._Po2Hu div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._A0d10 ._Po2Hu div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._A0d10 ._Po2Hu div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._A0d10 ._p2anV div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._A0d10 ._DA96F div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._A0d10 ._OrSjN div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._A0d10 ._IZp8t div div:nth-child(-n+9):after{background:#fff}._A0d10 ._3ORk8{width:100%;height:100%}._A0d10 ._3ORk8._fx3uC{pointer-events:none}._A0d10 ._3ORk8._MqNB9{opacity:0}._A0d10 ._3ORk8._0lpck{opacity:.8}@keyframes _Po2Hu{0%{opacity:1}to{opacity:0}}";
|
|
4006
4005
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$e);}
|
|
4007
4006
|
|
|
4008
4007
|
const _excluded$p = ["background", "children", "className", "inverted", "show", "size", "role", "aria-label", "aria-labelledby", "aria-live", "aria-hidden"];
|
|
@@ -4056,19 +4055,26 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
4056
4055
|
});
|
|
4057
4056
|
LoadingSpinner.displayName = 'LoadingSpinner';
|
|
4058
4057
|
|
|
4058
|
+
var __defProp$m = Object.defineProperty;
|
|
4059
|
+
var __name$m = (target, value) => __defProp$m(target, "name", {
|
|
4060
|
+
value,
|
|
4061
|
+
configurable: true
|
|
4062
|
+
});
|
|
4063
|
+
|
|
4059
4064
|
// src/primitive.tsx
|
|
4060
4065
|
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
4061
4066
|
function composeEventHandlers(originalEventHandler, ourEventHandler) {
|
|
4062
4067
|
let _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
4063
4068
|
_ref$checkForDefaultP = _ref.checkForDefaultPrevented,
|
|
4064
4069
|
checkForDefaultPrevented = _ref$checkForDefaultP === void 0 ? true : _ref$checkForDefaultP;
|
|
4065
|
-
return function handleEvent(event) {
|
|
4070
|
+
return /* @__PURE__ */__name$m(function handleEvent(event) {
|
|
4066
4071
|
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
4067
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
|
4072
|
+
if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) {
|
|
4068
4073
|
return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
4069
4074
|
}
|
|
4070
|
-
};
|
|
4075
|
+
}, "handleEvent");
|
|
4071
4076
|
}
|
|
4077
|
+
__name$m(composeEventHandlers, "composeEventHandlers");
|
|
4072
4078
|
function getOwnerWindow(element) {
|
|
4073
4079
|
var _element$ownerDocumen, _element$ownerDocumen2;
|
|
4074
4080
|
if (!canUseDOM) {
|
|
@@ -4076,6 +4082,7 @@ function getOwnerWindow(element) {
|
|
|
4076
4082
|
}
|
|
4077
4083
|
return (_element$ownerDocumen = element === null || element === void 0 || (_element$ownerDocumen2 = element.ownerDocument) === null || _element$ownerDocumen2 === void 0 ? void 0 : _element$ownerDocumen2.defaultView) !== null && _element$ownerDocumen !== void 0 ? _element$ownerDocumen : window;
|
|
4078
4084
|
}
|
|
4085
|
+
__name$m(getOwnerWindow, "getOwnerWindow");
|
|
4079
4086
|
function getOwnerDocument(element) {
|
|
4080
4087
|
var _element$ownerDocumen3;
|
|
4081
4088
|
if (!canUseDOM) {
|
|
@@ -4083,6 +4090,7 @@ function getOwnerDocument(element) {
|
|
|
4083
4090
|
}
|
|
4084
4091
|
return (_element$ownerDocumen3 = element === null || element === void 0 ? void 0 : element.ownerDocument) !== null && _element$ownerDocumen3 !== void 0 ? _element$ownerDocumen3 : document;
|
|
4085
4092
|
}
|
|
4093
|
+
__name$m(getOwnerDocument, "getOwnerDocument");
|
|
4086
4094
|
function getActiveElement(node) {
|
|
4087
4095
|
let activeDescendant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4088
4096
|
const _getOwnerDocument = getOwnerDocument(node),
|
|
@@ -4104,18 +4112,25 @@ function getActiveElement(node) {
|
|
|
4104
4112
|
}
|
|
4105
4113
|
return activeElement;
|
|
4106
4114
|
}
|
|
4115
|
+
__name$m(getActiveElement, "getActiveElement");
|
|
4107
4116
|
function isFrame(element) {
|
|
4108
4117
|
return element.tagName === "IFRAME";
|
|
4109
4118
|
}
|
|
4119
|
+
__name$m(isFrame, "isFrame");
|
|
4110
4120
|
|
|
4111
|
-
|
|
4112
|
-
|
|
4121
|
+
var __defProp$l = Object.defineProperty;
|
|
4122
|
+
var __name$l = (target, value) => __defProp$l(target, "name", {
|
|
4123
|
+
value,
|
|
4124
|
+
configurable: true
|
|
4125
|
+
});
|
|
4126
|
+
function setRef$1(ref, value) {
|
|
4113
4127
|
if (typeof ref === "function") {
|
|
4114
4128
|
return ref(value);
|
|
4115
4129
|
} else if (ref !== null && ref !== void 0) {
|
|
4116
4130
|
ref.current = value;
|
|
4117
4131
|
}
|
|
4118
4132
|
}
|
|
4133
|
+
__name$l(setRef$1, "setRef");
|
|
4119
4134
|
function composeRefs() {
|
|
4120
4135
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4121
4136
|
refs[_key] = arguments[_key];
|
|
@@ -4123,7 +4138,7 @@ function composeRefs() {
|
|
|
4123
4138
|
return node => {
|
|
4124
4139
|
let hasCleanup = false;
|
|
4125
4140
|
const cleanups = refs.map(ref => {
|
|
4126
|
-
const cleanup = setRef(ref, node);
|
|
4141
|
+
const cleanup = setRef$1(ref, node);
|
|
4127
4142
|
if (!hasCleanup && typeof cleanup == "function") {
|
|
4128
4143
|
hasCleanup = true;
|
|
4129
4144
|
}
|
|
@@ -4136,25 +4151,34 @@ function composeRefs() {
|
|
|
4136
4151
|
if (typeof cleanup == "function") {
|
|
4137
4152
|
cleanup();
|
|
4138
4153
|
} else {
|
|
4139
|
-
setRef(refs[i], null);
|
|
4154
|
+
setRef$1(refs[i], null);
|
|
4140
4155
|
}
|
|
4141
4156
|
}
|
|
4142
4157
|
};
|
|
4143
4158
|
}
|
|
4144
4159
|
};
|
|
4145
4160
|
}
|
|
4161
|
+
__name$l(composeRefs, "composeRefs");
|
|
4146
4162
|
function useComposedRefs() {
|
|
4147
4163
|
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
4148
4164
|
refs[_key2] = arguments[_key2];
|
|
4149
4165
|
}
|
|
4150
4166
|
return React__namespace.useCallback(composeRefs(...refs), refs);
|
|
4151
4167
|
}
|
|
4168
|
+
__name$l(useComposedRefs, "useComposedRefs");
|
|
4152
4169
|
|
|
4153
4170
|
const _excluded$o = ["children"],
|
|
4154
|
-
_excluded2$
|
|
4171
|
+
_excluded2$6 = ["scope", "children"];
|
|
4172
|
+
var __defProp$k = Object.defineProperty;
|
|
4173
|
+
var __name$k = (target, value) => __defProp$k(target, "name", {
|
|
4174
|
+
value,
|
|
4175
|
+
configurable: true
|
|
4176
|
+
});
|
|
4177
|
+
// @__NO_SIDE_EFFECTS__
|
|
4155
4178
|
function createContext2(rootComponentName, defaultContext) {
|
|
4156
4179
|
const Context = /*#__PURE__*/React__namespace.createContext(defaultContext);
|
|
4157
|
-
|
|
4180
|
+
Context.displayName = rootComponentName + "Context";
|
|
4181
|
+
const Provider = /* @__PURE__ */__name$k(props => {
|
|
4158
4182
|
const children = props.children,
|
|
4159
4183
|
context = _objectWithoutProperties__default["default"](props, _excluded$o);
|
|
4160
4184
|
const value = React__namespace.useMemo(() => context, Object.values(context));
|
|
@@ -4162,51 +4186,65 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
4162
4186
|
value,
|
|
4163
4187
|
children
|
|
4164
4188
|
});
|
|
4165
|
-
};
|
|
4189
|
+
}, "Provider");
|
|
4166
4190
|
Provider.displayName = rootComponentName + "Provider";
|
|
4167
4191
|
function useContext2(consumerName) {
|
|
4192
|
+
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4193
|
+
const _options$optional = options.optional,
|
|
4194
|
+
optional = _options$optional === void 0 ? false : _options$optional;
|
|
4168
4195
|
const context = React__namespace.useContext(Context);
|
|
4169
4196
|
if (context) return context;
|
|
4170
4197
|
if (defaultContext !== void 0) return defaultContext;
|
|
4198
|
+
if (optional) return void 0;
|
|
4171
4199
|
throw new Error("`".concat(consumerName, "` must be used within `").concat(rootComponentName, "`"));
|
|
4172
4200
|
}
|
|
4201
|
+
__name$k(useContext2, "useContext");
|
|
4173
4202
|
return [Provider, useContext2];
|
|
4174
4203
|
}
|
|
4204
|
+
__name$k(createContext2, "createContext");
|
|
4205
|
+
// @__NO_SIDE_EFFECTS__
|
|
4175
4206
|
function createContextScope(scopeName) {
|
|
4176
4207
|
let createContextScopeDeps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
4177
4208
|
let defaultContexts = [];
|
|
4178
4209
|
function createContext3(rootComponentName, defaultContext) {
|
|
4179
4210
|
const BaseContext = /*#__PURE__*/React__namespace.createContext(defaultContext);
|
|
4211
|
+
BaseContext.displayName = rootComponentName + "Context";
|
|
4180
4212
|
const index = defaultContexts.length;
|
|
4181
4213
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
4182
|
-
const Provider = props => {
|
|
4214
|
+
const Provider = /* @__PURE__ */__name$k(props => {
|
|
4183
4215
|
var _scope$scopeName;
|
|
4184
4216
|
const scope = props.scope,
|
|
4185
4217
|
children = props.children,
|
|
4186
|
-
context = _objectWithoutProperties__default["default"](props, _excluded2$
|
|
4218
|
+
context = _objectWithoutProperties__default["default"](props, _excluded2$6);
|
|
4187
4219
|
const Context = (scope === null || scope === void 0 || (_scope$scopeName = scope[scopeName]) === null || _scope$scopeName === void 0 ? void 0 : _scope$scopeName[index]) || BaseContext;
|
|
4188
4220
|
const value = React__namespace.useMemo(() => context, Object.values(context));
|
|
4189
4221
|
return /* @__PURE__ */React__namespace.createElement(Context.Provider, {
|
|
4190
4222
|
value,
|
|
4191
4223
|
children
|
|
4192
4224
|
});
|
|
4193
|
-
};
|
|
4225
|
+
}, "Provider");
|
|
4194
4226
|
Provider.displayName = rootComponentName + "Provider";
|
|
4195
4227
|
function useContext2(consumerName, scope) {
|
|
4196
4228
|
var _scope$scopeName2;
|
|
4229
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
4230
|
+
const _options$optional2 = options.optional,
|
|
4231
|
+
optional = _options$optional2 === void 0 ? false : _options$optional2;
|
|
4197
4232
|
const Context = (scope === null || scope === void 0 || (_scope$scopeName2 = scope[scopeName]) === null || _scope$scopeName2 === void 0 ? void 0 : _scope$scopeName2[index]) || BaseContext;
|
|
4198
4233
|
const context = React__namespace.useContext(Context);
|
|
4199
4234
|
if (context) return context;
|
|
4200
4235
|
if (defaultContext !== void 0) return defaultContext;
|
|
4236
|
+
if (optional) return void 0;
|
|
4201
4237
|
throw new Error("`".concat(consumerName, "` must be used within `").concat(rootComponentName, "`"));
|
|
4202
4238
|
}
|
|
4239
|
+
__name$k(useContext2, "useContext");
|
|
4203
4240
|
return [Provider, useContext2];
|
|
4204
4241
|
}
|
|
4205
|
-
|
|
4242
|
+
__name$k(createContext3, "createContext");
|
|
4243
|
+
const createScope = /* @__PURE__ */__name$k(() => {
|
|
4206
4244
|
const scopeContexts = defaultContexts.map(defaultContext => {
|
|
4207
4245
|
return /*#__PURE__*/React__namespace.createContext(defaultContext);
|
|
4208
4246
|
});
|
|
4209
|
-
return function useScope(scope) {
|
|
4247
|
+
return /* @__PURE__ */__name$k(function useScope(scope) {
|
|
4210
4248
|
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
|
|
4211
4249
|
return React__namespace.useMemo(() => ({
|
|
4212
4250
|
["__scope".concat(scopeName)]: {
|
|
@@ -4214,23 +4252,24 @@ function createContextScope(scopeName) {
|
|
|
4214
4252
|
[scopeName]: contexts
|
|
4215
4253
|
}
|
|
4216
4254
|
}), [scope, contexts]);
|
|
4217
|
-
};
|
|
4218
|
-
};
|
|
4255
|
+
}, "useScope");
|
|
4256
|
+
}, "createScope");
|
|
4219
4257
|
createScope.scopeName = scopeName;
|
|
4220
4258
|
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
4221
4259
|
}
|
|
4260
|
+
__name$k(createContextScope, "createContextScope");
|
|
4222
4261
|
function composeContextScopes() {
|
|
4223
4262
|
for (var _len = arguments.length, scopes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4224
4263
|
scopes[_key] = arguments[_key];
|
|
4225
4264
|
}
|
|
4226
4265
|
const baseScope = scopes[0];
|
|
4227
4266
|
if (scopes.length === 1) return baseScope;
|
|
4228
|
-
const createScope = () => {
|
|
4267
|
+
const createScope = /* @__PURE__ */__name$k(() => {
|
|
4229
4268
|
const scopeHooks = scopes.map(createScope2 => ({
|
|
4230
4269
|
useScope: createScope2(),
|
|
4231
4270
|
scopeName: createScope2.scopeName
|
|
4232
4271
|
}));
|
|
4233
|
-
return function useComposedScopes(overrideScopes) {
|
|
4272
|
+
return /* @__PURE__ */__name$k(function useComposedScopes(overrideScopes) {
|
|
4234
4273
|
const nextScopes = scopeHooks.reduce((nextScopes2, _ref) => {
|
|
4235
4274
|
let useScope = _ref.useScope,
|
|
4236
4275
|
scopeName = _ref.scopeName;
|
|
@@ -4244,16 +4283,24 @@ function composeContextScopes() {
|
|
|
4244
4283
|
return React__namespace.useMemo(() => ({
|
|
4245
4284
|
["__scope".concat(baseScope.scopeName)]: nextScopes
|
|
4246
4285
|
}), [nextScopes]);
|
|
4247
|
-
};
|
|
4248
|
-
};
|
|
4286
|
+
}, "useComposedScopes");
|
|
4287
|
+
}, "createScope");
|
|
4249
4288
|
createScope.scopeName = baseScope.scopeName;
|
|
4250
4289
|
return createScope;
|
|
4251
4290
|
}
|
|
4291
|
+
__name$k(composeContextScopes, "composeContextScopes");
|
|
4252
4292
|
|
|
4253
|
-
//
|
|
4293
|
+
// src/internal/is-development.false.ts
|
|
4294
|
+
var IS_DEVELOPMENT = false;
|
|
4295
|
+
|
|
4296
|
+
// src/use-layout-effect.tsx
|
|
4254
4297
|
var useLayoutEffect2 = globalThis !== null && globalThis !== void 0 && globalThis.document ? React__namespace.useLayoutEffect : () => {};
|
|
4255
4298
|
|
|
4256
|
-
|
|
4299
|
+
var __defProp$j = Object.defineProperty;
|
|
4300
|
+
var __name$j = (target, value) => __defProp$j(target, "name", {
|
|
4301
|
+
value,
|
|
4302
|
+
configurable: true
|
|
4303
|
+
});
|
|
4257
4304
|
var useReactEffectEvent = React__namespace[" useEffectEvent ".trim().toString()];
|
|
4258
4305
|
var useReactInsertionEffect = React__namespace[" useInsertionEffect ".trim().toString()];
|
|
4259
4306
|
function useEffectEvent(callback) {
|
|
@@ -4280,13 +4327,19 @@ function useEffectEvent(callback) {
|
|
|
4280
4327
|
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.call(ref, ...args);
|
|
4281
4328
|
}, []);
|
|
4282
4329
|
}
|
|
4330
|
+
__name$j(useEffectEvent, "useEffectEvent");
|
|
4283
4331
|
|
|
4332
|
+
var __defProp$i = Object.defineProperty;
|
|
4333
|
+
var __name$i = (target, value) => __defProp$i(target, "name", {
|
|
4334
|
+
value,
|
|
4335
|
+
configurable: true
|
|
4336
|
+
});
|
|
4284
4337
|
var useInsertionEffect = React__namespace[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
4285
4338
|
function useControllableState(_ref) {
|
|
4286
4339
|
let prop = _ref.prop,
|
|
4287
4340
|
defaultProp = _ref.defaultProp,
|
|
4288
4341
|
_ref$onChange = _ref.onChange,
|
|
4289
|
-
onChange = _ref$onChange === void 0 ? () => {} : _ref$onChange,
|
|
4342
|
+
onChange = _ref$onChange === void 0 ? /* @__PURE__ */__name$i(() => {}, "onChange") : _ref$onChange,
|
|
4290
4343
|
caller = _ref.caller;
|
|
4291
4344
|
const _useUncontrolledState = useUncontrolledState({
|
|
4292
4345
|
defaultProp,
|
|
@@ -4298,7 +4351,7 @@ function useControllableState(_ref) {
|
|
|
4298
4351
|
onChangeRef = _useUncontrolledState2[2];
|
|
4299
4352
|
const isControlled = prop !== void 0;
|
|
4300
4353
|
const value = isControlled ? prop : uncontrolledProp;
|
|
4301
|
-
if (
|
|
4354
|
+
if (IS_DEVELOPMENT) {
|
|
4302
4355
|
const isControlledRef = React__namespace.useRef(prop !== void 0);
|
|
4303
4356
|
React__namespace.useEffect(() => {
|
|
4304
4357
|
const wasControlled = isControlledRef.current;
|
|
@@ -4323,6 +4376,7 @@ function useControllableState(_ref) {
|
|
|
4323
4376
|
}, [isControlled, prop, setUncontrolledProp, onChangeRef]);
|
|
4324
4377
|
return [value, setValue];
|
|
4325
4378
|
}
|
|
4379
|
+
__name$i(useControllableState, "useControllableState");
|
|
4326
4380
|
function useUncontrolledState(_ref2) {
|
|
4327
4381
|
let defaultProp = _ref2.defaultProp,
|
|
4328
4382
|
onChange = _ref2.onChange;
|
|
@@ -4344,9 +4398,11 @@ function useUncontrolledState(_ref2) {
|
|
|
4344
4398
|
}, [value, prevValueRef]);
|
|
4345
4399
|
return [value, setValue, onChangeRef];
|
|
4346
4400
|
}
|
|
4401
|
+
__name$i(useUncontrolledState, "useUncontrolledState");
|
|
4347
4402
|
function isFunction(value) {
|
|
4348
4403
|
return typeof value === "function";
|
|
4349
4404
|
}
|
|
4405
|
+
__name$i(isFunction, "isFunction");
|
|
4350
4406
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
4351
4407
|
function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
4352
4408
|
const controlledState = userArgs.prop,
|
|
@@ -4355,7 +4411,7 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
|
4355
4411
|
caller = userArgs.caller;
|
|
4356
4412
|
const isControlled = controlledState !== void 0;
|
|
4357
4413
|
const onChange = useEffectEvent(onChangeProp);
|
|
4358
|
-
if (
|
|
4414
|
+
if (IS_DEVELOPMENT) {
|
|
4359
4415
|
const isControlledRef = React__namespace.useRef(controlledState !== void 0);
|
|
4360
4416
|
React__namespace.useEffect(() => {
|
|
4361
4417
|
const wasControlled = isControlledRef.current;
|
|
@@ -4399,7 +4455,7 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
|
4399
4455
|
onChange(uncontrolledState);
|
|
4400
4456
|
}
|
|
4401
4457
|
}
|
|
4402
|
-
}, [
|
|
4458
|
+
}, [uncontrolledState, prevValueRef, isControlled]);
|
|
4403
4459
|
const state = React__namespace.useMemo(() => {
|
|
4404
4460
|
const isControlled2 = controlledState !== void 0;
|
|
4405
4461
|
if (isControlled2) {
|
|
@@ -4420,78 +4476,88 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
|
4420
4476
|
}, [controlledState, internalState.state, isControlled]);
|
|
4421
4477
|
return [state, dispatch];
|
|
4422
4478
|
}
|
|
4479
|
+
__name$i(useControllableStateReducer, "useControllableStateReducer");
|
|
4423
4480
|
|
|
4424
|
-
const _excluded$n = ["children"]
|
|
4425
|
-
|
|
4481
|
+
const _excluded$n = ["children"];
|
|
4482
|
+
var __defProp$h = Object.defineProperty;
|
|
4483
|
+
var __name$h = (target, value) => __defProp$h(target, "name", {
|
|
4484
|
+
value,
|
|
4485
|
+
configurable: true
|
|
4486
|
+
});
|
|
4426
4487
|
// @__NO_SIDE_EFFECTS__
|
|
4427
4488
|
function createSlot(ownerName) {
|
|
4428
|
-
const SlotClone = /* @__PURE__ */createSlotClone(ownerName);
|
|
4429
4489
|
const Slot2 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
4430
|
-
|
|
4490
|
+
var _slottableElement$pro;
|
|
4491
|
+
let children = props.children,
|
|
4431
4492
|
slotProps = _objectWithoutProperties__default["default"](props, _excluded$n);
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4493
|
+
let slottableElement = null;
|
|
4494
|
+
let hasSlottable = false;
|
|
4495
|
+
const newChildren = [];
|
|
4496
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
4497
|
+
children = use(children._payload);
|
|
4498
|
+
}
|
|
4499
|
+
React__namespace.Children.forEach(children, maybeSlottable => {
|
|
4500
|
+
if (isSlottable(maybeSlottable)) {
|
|
4501
|
+
var _slottableElement;
|
|
4502
|
+
hasSlottable = true;
|
|
4503
|
+
const slottable = maybeSlottable;
|
|
4504
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
4505
|
+
if (isLazyComponent(child) && typeof use === "function") {
|
|
4506
|
+
child = use(child._payload);
|
|
4442
4507
|
}
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
});
|
|
4449
|
-
}
|
|
4450
|
-
return /* @__PURE__ */React__namespace.createElement(SlotClone, {
|
|
4451
|
-
...slotProps,
|
|
4452
|
-
ref: forwardedRef,
|
|
4453
|
-
children
|
|
4508
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
4509
|
+
newChildren.push((_slottableElement = slottableElement) === null || _slottableElement === void 0 || (_slottableElement = _slottableElement.props) === null || _slottableElement === void 0 ? void 0 : _slottableElement.children);
|
|
4510
|
+
} else {
|
|
4511
|
+
newChildren.push(maybeSlottable);
|
|
4512
|
+
}
|
|
4454
4513
|
});
|
|
4514
|
+
if (slottableElement) {
|
|
4515
|
+
slottableElement = /*#__PURE__*/React__namespace.cloneElement(slottableElement, void 0, newChildren);
|
|
4516
|
+
} else if (
|
|
4517
|
+
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
4518
|
+
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
4519
|
+
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
4520
|
+
// itself as the slot target — throw a descriptive error below instead.
|
|
4521
|
+
!hasSlottable && React__namespace.Children.count(children) === 1 && /*#__PURE__*/React__namespace.isValidElement(children)) {
|
|
4522
|
+
slottableElement = children;
|
|
4523
|
+
}
|
|
4524
|
+
const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
|
|
4525
|
+
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
4526
|
+
if (!slottableElement) {
|
|
4527
|
+
if (children || children === 0) {
|
|
4528
|
+
throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
4529
|
+
}
|
|
4530
|
+
return children;
|
|
4531
|
+
}
|
|
4532
|
+
const mergedProps = mergeProps(slotProps, (_slottableElement$pro = slottableElement.props) !== null && _slottableElement$pro !== void 0 ? _slottableElement$pro : {});
|
|
4533
|
+
if (slottableElement.type !== React__namespace.Fragment) {
|
|
4534
|
+
mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
4535
|
+
}
|
|
4536
|
+
return /*#__PURE__*/React__namespace.cloneElement(slottableElement, mergedProps);
|
|
4455
4537
|
});
|
|
4456
4538
|
Slot2.displayName = "".concat(ownerName, ".Slot");
|
|
4457
4539
|
return Slot2;
|
|
4458
4540
|
}
|
|
4541
|
+
__name$h(createSlot, "createSlot");
|
|
4459
4542
|
var Slot$1 = /* @__PURE__ */createSlot("Slot");
|
|
4460
|
-
|
|
4461
|
-
function createSlotClone(ownerName) {
|
|
4462
|
-
const SlotClone = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
4463
|
-
const children = props.children,
|
|
4464
|
-
slotProps = _objectWithoutProperties__default["default"](props, _excluded2$6);
|
|
4465
|
-
if (/*#__PURE__*/React__namespace.isValidElement(children)) {
|
|
4466
|
-
const childrenRef = getElementRef$1(children);
|
|
4467
|
-
const props2 = mergeProps(slotProps, children.props);
|
|
4468
|
-
if (children.type !== React__namespace.Fragment) {
|
|
4469
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
4470
|
-
}
|
|
4471
|
-
return /*#__PURE__*/React__namespace.cloneElement(children, props2);
|
|
4472
|
-
}
|
|
4473
|
-
return React__namespace.Children.count(children) > 1 ? React__namespace.Children.only(null) : null;
|
|
4474
|
-
});
|
|
4475
|
-
SlotClone.displayName = "".concat(ownerName, ".SlotClone");
|
|
4476
|
-
return SlotClone;
|
|
4477
|
-
}
|
|
4478
|
-
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
4543
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
4479
4544
|
// @__NO_SIDE_EFFECTS__
|
|
4480
4545
|
function createSlottable(ownerName) {
|
|
4481
|
-
const Slottable2 =
|
|
4482
|
-
let children = _ref.children;
|
|
4483
|
-
return /* @__PURE__ */React__namespace.createElement(React__namespace.Fragment, {
|
|
4484
|
-
children
|
|
4485
|
-
});
|
|
4486
|
-
};
|
|
4546
|
+
const Slottable2 = /* @__PURE__ */__name$h(props => "child" in props ? props.children(props.child) : props.children, "Slottable");
|
|
4487
4547
|
Slottable2.displayName = "".concat(ownerName, ".Slottable");
|
|
4488
4548
|
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
4489
4549
|
return Slottable2;
|
|
4490
4550
|
}
|
|
4551
|
+
__name$h(createSlottable, "createSlottable");
|
|
4491
4552
|
var Slottable = /* @__PURE__ */createSlottable("Slottable");
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4553
|
+
var getSlottableElementFromSlottable = /* @__PURE__ */__name$h((slottable, child) => {
|
|
4554
|
+
if ("child" in slottable.props) {
|
|
4555
|
+
const child2 = slottable.props.child;
|
|
4556
|
+
if (! /*#__PURE__*/React__namespace.isValidElement(child2)) return null;
|
|
4557
|
+
return /*#__PURE__*/React__namespace.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
4558
|
+
}
|
|
4559
|
+
return /*#__PURE__*/React__namespace.isValidElement(child) ? child : null;
|
|
4560
|
+
}, "getSlottableElementFromSlottable");
|
|
4495
4561
|
function mergeProps(slotProps, childProps) {
|
|
4496
4562
|
const overrideProps = {
|
|
4497
4563
|
...childProps
|
|
@@ -4524,6 +4590,7 @@ function mergeProps(slotProps, childProps) {
|
|
|
4524
4590
|
...overrideProps
|
|
4525
4591
|
};
|
|
4526
4592
|
}
|
|
4593
|
+
__name$h(mergeProps, "mergeProps");
|
|
4527
4594
|
function getElementRef$1(element) {
|
|
4528
4595
|
var _Object$getOwnPropert, _Object$getOwnPropert2;
|
|
4529
4596
|
let getter = (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(element.props, "ref")) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.get;
|
|
@@ -4538,8 +4605,34 @@ function getElementRef$1(element) {
|
|
|
4538
4605
|
}
|
|
4539
4606
|
return element.props.ref || element.ref;
|
|
4540
4607
|
}
|
|
4608
|
+
__name$h(getElementRef$1, "getElementRef");
|
|
4609
|
+
function isSlottable(child) {
|
|
4610
|
+
return /*#__PURE__*/React__namespace.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
4611
|
+
}
|
|
4612
|
+
__name$h(isSlottable, "isSlottable");
|
|
4613
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
4614
|
+
function isLazyComponent(element) {
|
|
4615
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
4616
|
+
}
|
|
4617
|
+
__name$h(isLazyComponent, "isLazyComponent");
|
|
4618
|
+
function isPromiseLike(value) {
|
|
4619
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
4620
|
+
}
|
|
4621
|
+
__name$h(isPromiseLike, "isPromiseLike");
|
|
4622
|
+
var createSlotError = /* @__PURE__ */__name$h(ownerName => {
|
|
4623
|
+
return "".concat(ownerName, " failed to slot onto its children. Expected a single React element child or `Slottable`.");
|
|
4624
|
+
}, "createSlotError");
|
|
4625
|
+
var createSlottableError = /* @__PURE__ */__name$h(ownerName => {
|
|
4626
|
+
return "".concat(ownerName, " failed to slot onto its `Slottable`. Expected `Slottable` to receive a single React element child.");
|
|
4627
|
+
}, "createSlottableError");
|
|
4628
|
+
var use = React__namespace[" use ".trim().toString()];
|
|
4541
4629
|
|
|
4542
4630
|
const _excluded$m = ["asChild"];
|
|
4631
|
+
var __defProp$g = Object.defineProperty;
|
|
4632
|
+
var __name$g = (target, value) => __defProp$g(target, "name", {
|
|
4633
|
+
value,
|
|
4634
|
+
configurable: true
|
|
4635
|
+
});
|
|
4543
4636
|
var NODES = ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "select", "span", "svg", "ul"];
|
|
4544
4637
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
4545
4638
|
const Slot = createSlot("Primitive.".concat(node));
|
|
@@ -4564,10 +4657,11 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
4564
4657
|
function dispatchDiscreteCustomEvent(target, event) {
|
|
4565
4658
|
if (target) ReactDOM__namespace.flushSync(() => target.dispatchEvent(event));
|
|
4566
4659
|
}
|
|
4660
|
+
__name$g(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
4567
4661
|
var Root$6 = Primitive;
|
|
4568
4662
|
|
|
4569
4663
|
"use client";
|
|
4570
|
-
var _keys;
|
|
4664
|
+
var _OrderedDict2, _keys;
|
|
4571
4665
|
const _excluded$l = ["scope", "children"],
|
|
4572
4666
|
_excluded2$5 = ["state"],
|
|
4573
4667
|
_excluded3$3 = ["scope", "children"];
|
|
@@ -4576,6 +4670,12 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
4576
4670
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
4577
4671
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
4578
4672
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
4673
|
+
var __defProp$f = Object.defineProperty;
|
|
4674
|
+
var __name$f = (target, value) => __defProp$f(target, "name", {
|
|
4675
|
+
value,
|
|
4676
|
+
configurable: true
|
|
4677
|
+
});
|
|
4678
|
+
// @__NO_SIDE_EFFECTS__
|
|
4579
4679
|
function createCollection(name) {
|
|
4580
4680
|
const PROVIDER_NAME = name + "CollectionProvider";
|
|
4581
4681
|
const _createContextScope = createContextScope(PROVIDER_NAME),
|
|
@@ -4591,27 +4691,27 @@ function createCollection(name) {
|
|
|
4591
4691
|
_createCollectionCont2 = _slicedToArray__default["default"](_createCollectionCont, 2),
|
|
4592
4692
|
CollectionProviderImpl = _createCollectionCont2[0],
|
|
4593
4693
|
useCollectionContext = _createCollectionCont2[1];
|
|
4594
|
-
const CollectionProvider = props => {
|
|
4694
|
+
const CollectionProvider = /* @__PURE__ */__name$f(props => {
|
|
4595
4695
|
const scope = props.scope,
|
|
4596
4696
|
children = props.children;
|
|
4597
|
-
const ref =
|
|
4598
|
-
const itemMap =
|
|
4599
|
-
return /* @__PURE__ */
|
|
4697
|
+
const ref = React__namespace.useRef(null);
|
|
4698
|
+
const itemMap = React__namespace.useRef(/* @__PURE__ */new Map()).current;
|
|
4699
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionProviderImpl, {
|
|
4600
4700
|
scope,
|
|
4601
4701
|
itemMap,
|
|
4602
4702
|
collectionRef: ref,
|
|
4603
4703
|
children
|
|
4604
4704
|
});
|
|
4605
|
-
};
|
|
4705
|
+
}, "CollectionProvider");
|
|
4606
4706
|
CollectionProvider.displayName = PROVIDER_NAME;
|
|
4607
4707
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
4608
4708
|
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
4609
|
-
const CollectionSlot = /*#__PURE__*/
|
|
4709
|
+
const CollectionSlot = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
4610
4710
|
const scope = props.scope,
|
|
4611
4711
|
children = props.children;
|
|
4612
4712
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
4613
4713
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
4614
|
-
return /* @__PURE__ */
|
|
4714
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionSlotImpl, {
|
|
4615
4715
|
ref: composedRefs,
|
|
4616
4716
|
children
|
|
4617
4717
|
});
|
|
@@ -4620,21 +4720,21 @@ function createCollection(name) {
|
|
|
4620
4720
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
4621
4721
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
4622
4722
|
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
4623
|
-
const CollectionItemSlot = /*#__PURE__*/
|
|
4723
|
+
const CollectionItemSlot = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
4624
4724
|
const scope = props.scope,
|
|
4625
4725
|
children = props.children,
|
|
4626
4726
|
itemData = _objectWithoutProperties__default["default"](props, _excluded$l);
|
|
4627
|
-
const ref =
|
|
4727
|
+
const ref = React__namespace.useRef(null);
|
|
4628
4728
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
4629
4729
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
4630
|
-
|
|
4730
|
+
React__namespace.useEffect(() => {
|
|
4631
4731
|
context.itemMap.set(ref, {
|
|
4632
4732
|
ref,
|
|
4633
4733
|
...itemData
|
|
4634
4734
|
});
|
|
4635
4735
|
return () => void context.itemMap.delete(ref);
|
|
4636
4736
|
});
|
|
4637
|
-
return /* @__PURE__ */
|
|
4737
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionItemSlotImpl, {
|
|
4638
4738
|
...{
|
|
4639
4739
|
[ITEM_DATA_ATTR]: ""
|
|
4640
4740
|
},
|
|
@@ -4645,7 +4745,7 @@ function createCollection(name) {
|
|
|
4645
4745
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
4646
4746
|
function useCollection(scope) {
|
|
4647
4747
|
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
4648
|
-
const getItems =
|
|
4748
|
+
const getItems = React__namespace.useCallback(() => {
|
|
4649
4749
|
const collectionNode = context.collectionRef.current;
|
|
4650
4750
|
if (!collectionNode) return [];
|
|
4651
4751
|
const orderedNodes = Array.from(collectionNode.querySelectorAll("[".concat(ITEM_DATA_ATTR, "]")));
|
|
@@ -4655,16 +4755,18 @@ function createCollection(name) {
|
|
|
4655
4755
|
}, [context.collectionRef, context.itemMap]);
|
|
4656
4756
|
return getItems;
|
|
4657
4757
|
}
|
|
4758
|
+
__name$f(useCollection, "useCollection");
|
|
4658
4759
|
return [{
|
|
4659
4760
|
Provider: CollectionProvider,
|
|
4660
4761
|
Slot: CollectionSlot,
|
|
4661
4762
|
ItemSlot: CollectionItemSlot
|
|
4662
4763
|
}, useCollection, createCollectionScope];
|
|
4663
4764
|
}
|
|
4765
|
+
__name$f(createCollection, "createCollection");
|
|
4664
4766
|
|
|
4665
4767
|
// src/ordered-dictionary.ts
|
|
4666
4768
|
var __instanciated = /* @__PURE__ */new WeakMap();
|
|
4667
|
-
var OrderedDict = (_keys = /*#__PURE__*/new WeakMap(), class _OrderedDict extends Map {
|
|
4769
|
+
var OrderedDict = (_keys = /*#__PURE__*/new WeakMap(), _OrderedDict2 = class _OrderedDict extends Map {
|
|
4668
4770
|
constructor(entries) {
|
|
4669
4771
|
super(entries);
|
|
4670
4772
|
_classPrivateFieldInitSpec(this, _keys, void 0);
|
|
@@ -4957,7 +5059,7 @@ var OrderedDict = (_keys = /*#__PURE__*/new WeakMap(), class _OrderedDict extend
|
|
|
4957
5059
|
}
|
|
4958
5060
|
return false;
|
|
4959
5061
|
}
|
|
4960
|
-
});
|
|
5062
|
+
}, __name$f(_OrderedDict2, "OrderedDict"), _OrderedDict2);
|
|
4961
5063
|
function at(array, index) {
|
|
4962
5064
|
if ("at" in Array.prototype) {
|
|
4963
5065
|
return Array.prototype.at.call(array, index);
|
|
@@ -4965,18 +5067,22 @@ function at(array, index) {
|
|
|
4965
5067
|
const actualIndex = toSafeIndex(array, index);
|
|
4966
5068
|
return actualIndex === -1 ? void 0 : array[actualIndex];
|
|
4967
5069
|
}
|
|
5070
|
+
__name$f(at, "at");
|
|
4968
5071
|
function toSafeIndex(array, index) {
|
|
4969
5072
|
const length = array.length;
|
|
4970
5073
|
const relativeIndex = toSafeInteger(index);
|
|
4971
5074
|
const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
|
|
4972
5075
|
return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
|
|
4973
5076
|
}
|
|
5077
|
+
__name$f(toSafeIndex, "toSafeIndex");
|
|
4974
5078
|
function toSafeInteger(number) {
|
|
4975
5079
|
return number !== number || number === 0 ? 0 : Math.trunc(number);
|
|
4976
5080
|
}
|
|
5081
|
+
__name$f(toSafeInteger, "toSafeInteger");
|
|
4977
5082
|
|
|
4978
5083
|
// src/collection.tsx
|
|
4979
5084
|
|
|
5085
|
+
// @__NO_SIDE_EFFECTS__
|
|
4980
5086
|
function createCollection2(name) {
|
|
4981
5087
|
const PROVIDER_NAME = name + "CollectionProvider";
|
|
4982
5088
|
const _createContextScope3 = createContextScope(PROVIDER_NAME),
|
|
@@ -4992,36 +5098,36 @@ function createCollection2(name) {
|
|
|
4992
5098
|
current: null
|
|
4993
5099
|
},
|
|
4994
5100
|
itemMap: new OrderedDict(),
|
|
4995
|
-
setItemMap: () => void 0
|
|
5101
|
+
setItemMap: /* @__PURE__ */__name$f(() => void 0, "setItemMap")
|
|
4996
5102
|
}),
|
|
4997
5103
|
_createCollectionCont4 = _slicedToArray__default["default"](_createCollectionCont3, 2),
|
|
4998
5104
|
CollectionContextProvider = _createCollectionCont4[0],
|
|
4999
5105
|
useCollectionContext = _createCollectionCont4[1];
|
|
5000
|
-
const CollectionProvider = _ref => {
|
|
5106
|
+
const CollectionProvider = /* @__PURE__ */__name$f(_ref => {
|
|
5001
5107
|
let state = _ref.state,
|
|
5002
5108
|
props = _objectWithoutProperties__default["default"](_ref, _excluded2$5);
|
|
5003
|
-
return state ? /* @__PURE__ */
|
|
5109
|
+
return state ? /* @__PURE__ */React__namespace.createElement(CollectionProviderImpl, {
|
|
5004
5110
|
...props,
|
|
5005
5111
|
state
|
|
5006
|
-
}) : /* @__PURE__ */
|
|
5112
|
+
}) : /* @__PURE__ */React__namespace.createElement(CollectionInit, {
|
|
5007
5113
|
...props
|
|
5008
5114
|
});
|
|
5009
|
-
};
|
|
5115
|
+
}, "CollectionProvider");
|
|
5010
5116
|
CollectionProvider.displayName = PROVIDER_NAME;
|
|
5011
|
-
const CollectionInit = props => {
|
|
5117
|
+
const CollectionInit = /* @__PURE__ */__name$f(props => {
|
|
5012
5118
|
const state = useInitCollection();
|
|
5013
|
-
return /* @__PURE__ */
|
|
5119
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionProviderImpl, {
|
|
5014
5120
|
...props,
|
|
5015
5121
|
state
|
|
5016
5122
|
});
|
|
5017
|
-
};
|
|
5123
|
+
}, "CollectionInit");
|
|
5018
5124
|
CollectionInit.displayName = PROVIDER_NAME + "Init";
|
|
5019
|
-
const CollectionProviderImpl = props => {
|
|
5125
|
+
const CollectionProviderImpl = /* @__PURE__ */__name$f(props => {
|
|
5020
5126
|
const scope = props.scope,
|
|
5021
5127
|
children = props.children,
|
|
5022
5128
|
state = props.state;
|
|
5023
|
-
const ref =
|
|
5024
|
-
const _React2$useState =
|
|
5129
|
+
const ref = React__namespace.useRef(null);
|
|
5130
|
+
const _React2$useState = React__namespace.useState(null),
|
|
5025
5131
|
_React2$useState2 = _slicedToArray__default["default"](_React2$useState, 2),
|
|
5026
5132
|
collectionElement = _React2$useState2[0],
|
|
5027
5133
|
setCollectionElement = _React2$useState2[1];
|
|
@@ -5029,7 +5135,7 @@ function createCollection2(name) {
|
|
|
5029
5135
|
const _state = _slicedToArray__default["default"](state, 2),
|
|
5030
5136
|
itemMap = _state[0],
|
|
5031
5137
|
setItemMap = _state[1];
|
|
5032
|
-
|
|
5138
|
+
React__namespace.useEffect(() => {
|
|
5033
5139
|
if (!collectionElement) return;
|
|
5034
5140
|
const observer = getChildListObserver(() => {});
|
|
5035
5141
|
observer.observe(collectionElement, {
|
|
@@ -5040,7 +5146,7 @@ function createCollection2(name) {
|
|
|
5040
5146
|
observer.disconnect();
|
|
5041
5147
|
};
|
|
5042
5148
|
}, [collectionElement]);
|
|
5043
|
-
return /* @__PURE__ */
|
|
5149
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionContextProvider, {
|
|
5044
5150
|
scope,
|
|
5045
5151
|
itemMap,
|
|
5046
5152
|
setItemMap,
|
|
@@ -5049,16 +5155,16 @@ function createCollection2(name) {
|
|
|
5049
5155
|
collectionElement,
|
|
5050
5156
|
children
|
|
5051
5157
|
});
|
|
5052
|
-
};
|
|
5158
|
+
}, "CollectionProviderImpl");
|
|
5053
5159
|
CollectionProviderImpl.displayName = PROVIDER_NAME + "Impl";
|
|
5054
5160
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
5055
5161
|
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
5056
|
-
const CollectionSlot = /*#__PURE__*/
|
|
5162
|
+
const CollectionSlot = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
5057
5163
|
const scope = props.scope,
|
|
5058
5164
|
children = props.children;
|
|
5059
5165
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
5060
5166
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
5061
|
-
return /* @__PURE__ */
|
|
5167
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionSlotImpl, {
|
|
5062
5168
|
ref: composedRefs,
|
|
5063
5169
|
children
|
|
5064
5170
|
});
|
|
@@ -5067,24 +5173,24 @@ function createCollection2(name) {
|
|
|
5067
5173
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
5068
5174
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
5069
5175
|
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
5070
|
-
const CollectionItemSlot = /*#__PURE__*/
|
|
5176
|
+
const CollectionItemSlot = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
5071
5177
|
const scope = props.scope,
|
|
5072
5178
|
children = props.children,
|
|
5073
5179
|
itemData = _objectWithoutProperties__default["default"](props, _excluded3$3);
|
|
5074
|
-
const ref =
|
|
5075
|
-
const _React2$useState3 =
|
|
5180
|
+
const ref = React__namespace.useRef(null);
|
|
5181
|
+
const _React2$useState3 = React__namespace.useState(null),
|
|
5076
5182
|
_React2$useState4 = _slicedToArray__default["default"](_React2$useState3, 2),
|
|
5077
5183
|
element = _React2$useState4[0],
|
|
5078
5184
|
setElement = _React2$useState4[1];
|
|
5079
5185
|
const composedRefs = useComposedRefs(forwardedRef, ref, setElement);
|
|
5080
5186
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
5081
5187
|
const setItemMap = context.setItemMap;
|
|
5082
|
-
const itemDataRef =
|
|
5188
|
+
const itemDataRef = React__namespace.useRef(itemData);
|
|
5083
5189
|
if (!shallowEqual(itemDataRef.current, itemData)) {
|
|
5084
5190
|
itemDataRef.current = itemData;
|
|
5085
5191
|
}
|
|
5086
5192
|
const memoizedItemData = itemDataRef.current;
|
|
5087
|
-
|
|
5193
|
+
React__namespace.useEffect(() => {
|
|
5088
5194
|
const itemData2 = memoizedItemData;
|
|
5089
5195
|
setItemMap(map => {
|
|
5090
5196
|
if (!element) {
|
|
@@ -5112,7 +5218,7 @@ function createCollection2(name) {
|
|
|
5112
5218
|
});
|
|
5113
5219
|
};
|
|
5114
5220
|
}, [element, memoizedItemData, setItemMap]);
|
|
5115
|
-
return /* @__PURE__ */
|
|
5221
|
+
return /* @__PURE__ */React__namespace.createElement(CollectionItemSlotImpl, {
|
|
5116
5222
|
...{
|
|
5117
5223
|
[ITEM_DATA_ATTR]: ""
|
|
5118
5224
|
},
|
|
@@ -5122,13 +5228,15 @@ function createCollection2(name) {
|
|
|
5122
5228
|
});
|
|
5123
5229
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
5124
5230
|
function useInitCollection() {
|
|
5125
|
-
return
|
|
5231
|
+
return React__namespace.useState(new OrderedDict());
|
|
5126
5232
|
}
|
|
5233
|
+
__name$f(useInitCollection, "useInitCollection");
|
|
5127
5234
|
function useCollection(scope) {
|
|
5128
5235
|
const _useCollectionContext = useCollectionContext(name + "CollectionConsumer", scope),
|
|
5129
5236
|
itemMap = _useCollectionContext.itemMap;
|
|
5130
5237
|
return itemMap;
|
|
5131
5238
|
}
|
|
5239
|
+
__name$f(useCollection, "useCollection");
|
|
5132
5240
|
const functions = {
|
|
5133
5241
|
createCollectionScope,
|
|
5134
5242
|
useCollection,
|
|
@@ -5140,6 +5248,7 @@ function createCollection2(name) {
|
|
|
5140
5248
|
ItemSlot: CollectionItemSlot
|
|
5141
5249
|
}, functions];
|
|
5142
5250
|
}
|
|
5251
|
+
__name$f(createCollection2, "createCollection");
|
|
5143
5252
|
function shallowEqual(a, b) {
|
|
5144
5253
|
if (a === b) return true;
|
|
5145
5254
|
if (typeof a !== "object" || typeof b !== "object") return false;
|
|
@@ -5153,12 +5262,15 @@ function shallowEqual(a, b) {
|
|
|
5153
5262
|
}
|
|
5154
5263
|
return true;
|
|
5155
5264
|
}
|
|
5265
|
+
__name$f(shallowEqual, "shallowEqual");
|
|
5156
5266
|
function isElementPreceding(a, b) {
|
|
5157
5267
|
return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
5158
5268
|
}
|
|
5269
|
+
__name$f(isElementPreceding, "isElementPreceding");
|
|
5159
5270
|
function sortByDocumentPosition(a, b) {
|
|
5160
5271
|
return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;
|
|
5161
5272
|
}
|
|
5273
|
+
__name$f(sortByDocumentPosition, "sortByDocumentPosition");
|
|
5162
5274
|
function getChildListObserver(callback) {
|
|
5163
5275
|
const observer = new MutationObserver(mutationsList => {
|
|
5164
5276
|
for (const mutation of mutationsList) {
|
|
@@ -5170,24 +5282,36 @@ function getChildListObserver(callback) {
|
|
|
5170
5282
|
});
|
|
5171
5283
|
return observer;
|
|
5172
5284
|
}
|
|
5285
|
+
__name$f(getChildListObserver, "getChildListObserver");
|
|
5173
5286
|
|
|
5174
|
-
|
|
5287
|
+
"use client";
|
|
5288
|
+
|
|
5289
|
+
var __defProp$e = Object.defineProperty;
|
|
5290
|
+
var __name$e = (target, value) => __defProp$e(target, "name", {
|
|
5291
|
+
value,
|
|
5292
|
+
configurable: true
|
|
5293
|
+
});
|
|
5175
5294
|
var DirectionContext = /*#__PURE__*/React__namespace.createContext(void 0);
|
|
5176
|
-
var DirectionProvider = props => {
|
|
5295
|
+
var DirectionProvider = /* @__PURE__ */__name$e(props => {
|
|
5177
5296
|
const dir = props.dir,
|
|
5178
5297
|
children = props.children;
|
|
5179
5298
|
return /* @__PURE__ */React__namespace.createElement(DirectionContext.Provider, {
|
|
5180
5299
|
value: dir,
|
|
5181
5300
|
children
|
|
5182
5301
|
});
|
|
5183
|
-
};
|
|
5302
|
+
}, "DirectionProvider");
|
|
5184
5303
|
function useDirection(localDir) {
|
|
5185
5304
|
const globalDir = React__namespace.useContext(DirectionContext);
|
|
5186
5305
|
return localDir || globalDir || "ltr";
|
|
5187
5306
|
}
|
|
5307
|
+
__name$e(useDirection, "useDirection");
|
|
5188
5308
|
var Provider = DirectionProvider;
|
|
5189
5309
|
|
|
5190
|
-
|
|
5310
|
+
var __defProp$d = Object.defineProperty;
|
|
5311
|
+
var __name$d = (target, value) => __defProp$d(target, "name", {
|
|
5312
|
+
value,
|
|
5313
|
+
configurable: true
|
|
5314
|
+
});
|
|
5191
5315
|
function useCallbackRef$1(callback) {
|
|
5192
5316
|
const callbackRef = React__namespace.useRef(callback);
|
|
5193
5317
|
React__namespace.useEffect(() => {
|
|
@@ -5201,29 +5325,15 @@ function useCallbackRef$1(callback) {
|
|
|
5201
5325
|
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
5202
5326
|
}, []);
|
|
5203
5327
|
}
|
|
5204
|
-
|
|
5205
|
-
// packages/react/use-escape-keydown/src/use-escape-keydown.tsx
|
|
5206
|
-
function useEscapeKeydown(onEscapeKeyDownProp) {
|
|
5207
|
-
let ownerDocument = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
|
|
5208
|
-
const onEscapeKeyDown = useCallbackRef$1(onEscapeKeyDownProp);
|
|
5209
|
-
React__namespace.useEffect(() => {
|
|
5210
|
-
const handleKeyDown = event => {
|
|
5211
|
-
if (event.key === "Escape") {
|
|
5212
|
-
onEscapeKeyDown(event);
|
|
5213
|
-
}
|
|
5214
|
-
};
|
|
5215
|
-
ownerDocument.addEventListener("keydown", handleKeyDown, {
|
|
5216
|
-
capture: true
|
|
5217
|
-
});
|
|
5218
|
-
return () => ownerDocument.removeEventListener("keydown", handleKeyDown, {
|
|
5219
|
-
capture: true
|
|
5220
|
-
});
|
|
5221
|
-
}, [onEscapeKeyDown, ownerDocument]);
|
|
5222
|
-
}
|
|
5328
|
+
__name$d(useCallbackRef$1, "useCallbackRef");
|
|
5223
5329
|
|
|
5224
5330
|
"use client";
|
|
5225
|
-
const _excluded$k = ["disableOutsidePointerEvents", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onInteractOutside", "onDismiss"];
|
|
5226
|
-
var
|
|
5331
|
+
const _excluded$k = ["disableOutsidePointerEvents", "deferPointerDownOutside", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onInteractOutside", "onDismiss"];
|
|
5332
|
+
var __defProp$c = Object.defineProperty;
|
|
5333
|
+
var __name$c = (target, value) => __defProp$c(target, "name", {
|
|
5334
|
+
value,
|
|
5335
|
+
configurable: true
|
|
5336
|
+
});
|
|
5227
5337
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
5228
5338
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
5229
5339
|
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
@@ -5231,12 +5341,23 @@ var originalBodyPointerEvents;
|
|
|
5231
5341
|
var DismissableLayerContext = /*#__PURE__*/React__namespace.createContext({
|
|
5232
5342
|
layers: /* @__PURE__ */new Set(),
|
|
5233
5343
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */new Set(),
|
|
5234
|
-
branches: /* @__PURE__ */new Set()
|
|
5344
|
+
branches: /* @__PURE__ */new Set(),
|
|
5345
|
+
// Outside elements that belong to a layer's own dismiss affordance (eg, a
|
|
5346
|
+
// dialog overlay). Pressing them should dismiss the layer regardless of
|
|
5347
|
+
// whether or not they stop propagation.
|
|
5348
|
+
//
|
|
5349
|
+
// See https://github.com/radix-ui/primitives/issues/3346
|
|
5350
|
+
dismissableSurfaces: /* @__PURE__ */new Set()
|
|
5235
5351
|
});
|
|
5236
|
-
var DismissableLayer =
|
|
5352
|
+
var DismissableLayer = /* @__PURE__ */React__namespace.forwardRef(
|
|
5353
|
+
// blank line to reduce diff noise
|
|
5354
|
+
/* @__PURE__ */
|
|
5355
|
+
__name$c(function DismissableLayer2(props, forwardedRef) {
|
|
5237
5356
|
var _node$ownerDocument;
|
|
5238
5357
|
const _props$disableOutside = props.disableOutsidePointerEvents,
|
|
5239
5358
|
disableOutsidePointerEvents = _props$disableOutside === void 0 ? false : _props$disableOutside,
|
|
5359
|
+
_props$deferPointerDo = props.deferPointerDownOutside,
|
|
5360
|
+
deferPointerDownOutside = _props$deferPointerDo === void 0 ? false : _props$deferPointerDo,
|
|
5240
5361
|
onEscapeKeyDown = props.onEscapeKeyDown,
|
|
5241
5362
|
onPointerDownOutside = props.onPointerDownOutside,
|
|
5242
5363
|
onFocusOutside = props.onFocusOutside,
|
|
@@ -5252,24 +5373,37 @@ var DismissableLayer = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
5252
5373
|
const _React$useState3 = React__namespace.useState({}),
|
|
5253
5374
|
_React$useState4 = _slicedToArray__default["default"](_React$useState3, 2),
|
|
5254
5375
|
force = _React$useState4[1];
|
|
5255
|
-
const composedRefs = useComposedRefs(forwardedRef,
|
|
5376
|
+
const composedRefs = useComposedRefs(forwardedRef, setNode);
|
|
5256
5377
|
const layers = Array.from(context.layers);
|
|
5257
5378
|
const _slice = [...context.layersWithOutsidePointerEventsDisabled].slice(-1),
|
|
5258
5379
|
_slice2 = _slicedToArray__default["default"](_slice, 1),
|
|
5259
5380
|
highestLayerWithOutsidePointerEventsDisabled = _slice2[0];
|
|
5260
|
-
const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
|
5381
|
+
const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;
|
|
5261
5382
|
const index = node ? layers.indexOf(node) : -1;
|
|
5262
5383
|
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
5263
5384
|
const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
5385
|
+
const isDeferredPointerDownOutsideRef = React__namespace.useRef(false);
|
|
5264
5386
|
const pointerDownOutside = usePointerDownOutside(event => {
|
|
5265
|
-
const target = event.target;
|
|
5266
|
-
const isPointerDownOnBranch = [...context.branches].some(branch => branch.contains(target));
|
|
5267
|
-
if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
|
|
5268
5387
|
onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
|
|
5269
5388
|
onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
|
|
5270
5389
|
if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
5271
|
-
},
|
|
5390
|
+
}, {
|
|
5391
|
+
ownerDocument,
|
|
5392
|
+
deferPointerDownOutside,
|
|
5393
|
+
isDeferredPointerDownOutsideRef,
|
|
5394
|
+
dismissableSurfaces: context.dismissableSurfaces,
|
|
5395
|
+
shouldHandlePointerDownOutside: React__namespace.useCallback(target => {
|
|
5396
|
+
if (!(target instanceof Node)) {
|
|
5397
|
+
return false;
|
|
5398
|
+
}
|
|
5399
|
+
const isPointerDownOnBranch = [...context.branches].some(branch => branch.contains(target));
|
|
5400
|
+
return isPointerEventsEnabled && !isPointerDownOnBranch;
|
|
5401
|
+
}, [context.branches, isPointerEventsEnabled])
|
|
5402
|
+
});
|
|
5272
5403
|
const focusOutside = useFocusOutside(event => {
|
|
5404
|
+
if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) {
|
|
5405
|
+
return;
|
|
5406
|
+
}
|
|
5273
5407
|
const target = event.target;
|
|
5274
5408
|
const isFocusInBranch = [...context.branches].some(branch => branch.contains(target));
|
|
5275
5409
|
if (isFocusInBranch) return;
|
|
@@ -5277,15 +5411,28 @@ var DismissableLayer = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
5277
5411
|
onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
|
|
5278
5412
|
if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
5279
5413
|
}, ownerDocument);
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
if (
|
|
5414
|
+
const isHighestLayer = node ? index === layers.length - 1 : false;
|
|
5415
|
+
const handleKeyDown = useCallbackRef$1(event => {
|
|
5416
|
+
if (event.key !== "Escape") {
|
|
5417
|
+
return;
|
|
5418
|
+
}
|
|
5283
5419
|
onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
|
|
5284
5420
|
if (!event.defaultPrevented && onDismiss) {
|
|
5285
5421
|
event.preventDefault();
|
|
5286
5422
|
onDismiss();
|
|
5287
5423
|
}
|
|
5288
|
-
}
|
|
5424
|
+
});
|
|
5425
|
+
React__namespace.useEffect(() => {
|
|
5426
|
+
if (!isHighestLayer) {
|
|
5427
|
+
return;
|
|
5428
|
+
}
|
|
5429
|
+
ownerDocument.addEventListener("keydown", handleKeyDown, {
|
|
5430
|
+
capture: true
|
|
5431
|
+
});
|
|
5432
|
+
return () => ownerDocument.removeEventListener("keydown", handleKeyDown, {
|
|
5433
|
+
capture: true
|
|
5434
|
+
});
|
|
5435
|
+
}, [ownerDocument, isHighestLayer, handleKeyDown]);
|
|
5289
5436
|
React__namespace.useEffect(() => {
|
|
5290
5437
|
if (!node) return;
|
|
5291
5438
|
if (disableOutsidePointerEvents) {
|
|
@@ -5298,8 +5445,11 @@ var DismissableLayer = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
5298
5445
|
context.layers.add(node);
|
|
5299
5446
|
dispatchUpdate();
|
|
5300
5447
|
return () => {
|
|
5301
|
-
if (disableOutsidePointerEvents
|
|
5302
|
-
|
|
5448
|
+
if (disableOutsidePointerEvents) {
|
|
5449
|
+
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
5450
|
+
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
5451
|
+
ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
|
|
5452
|
+
}
|
|
5303
5453
|
}
|
|
5304
5454
|
};
|
|
5305
5455
|
}, [node, ownerDocument, disableOutsidePointerEvents, context]);
|
|
@@ -5312,7 +5462,7 @@ var DismissableLayer = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
5312
5462
|
};
|
|
5313
5463
|
}, [node, context]);
|
|
5314
5464
|
React__namespace.useEffect(() => {
|
|
5315
|
-
const handleUpdate = () => force({});
|
|
5465
|
+
const handleUpdate = /* @__PURE__ */__name$c(() => force({}), "handleUpdate");
|
|
5316
5466
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
5317
5467
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
5318
5468
|
}, []);
|
|
@@ -5327,10 +5477,8 @@ var DismissableLayer = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
5327
5477
|
onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
|
|
5328
5478
|
onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
|
|
5329
5479
|
});
|
|
5330
|
-
});
|
|
5331
|
-
|
|
5332
|
-
var BRANCH_NAME = "DismissableLayerBranch";
|
|
5333
|
-
var DismissableLayerBranch = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
5480
|
+
}, "DismissableLayer"));
|
|
5481
|
+
var DismissableLayerBranch = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$c(function DismissableLayerBranch2(props, forwardedRef) {
|
|
5334
5482
|
const context = React__namespace.useContext(DismissableLayerContext);
|
|
5335
5483
|
const ref = React__namespace.useRef(null);
|
|
5336
5484
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -5347,39 +5495,121 @@ var DismissableLayerBranch = /*#__PURE__*/React__namespace.forwardRef((props, fo
|
|
|
5347
5495
|
...props,
|
|
5348
5496
|
ref: composedRefs
|
|
5349
5497
|
});
|
|
5350
|
-
});
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5498
|
+
}, "DismissableLayerBranch"));
|
|
5499
|
+
function useDismissableLayerSurface() {
|
|
5500
|
+
const context = React__namespace.useContext(DismissableLayerContext);
|
|
5501
|
+
const _React$useState5 = React__namespace.useState(null),
|
|
5502
|
+
_React$useState6 = _slicedToArray__default["default"](_React$useState5, 2),
|
|
5503
|
+
node = _React$useState6[0],
|
|
5504
|
+
setNode = _React$useState6[1];
|
|
5505
|
+
React__namespace.useEffect(() => {
|
|
5506
|
+
if (!node) {
|
|
5507
|
+
return;
|
|
5508
|
+
}
|
|
5509
|
+
context.dismissableSurfaces.add(node);
|
|
5510
|
+
return () => {
|
|
5511
|
+
context.dismissableSurfaces.delete(node);
|
|
5512
|
+
};
|
|
5513
|
+
}, [node, context.dismissableSurfaces]);
|
|
5514
|
+
return setNode;
|
|
5515
|
+
}
|
|
5516
|
+
__name$c(useDismissableLayerSurface, "useDismissableLayerSurface");
|
|
5517
|
+
var IS_TRUE = /* @__PURE__ */__name$c(() => true, "IS_TRUE");
|
|
5518
|
+
function usePointerDownOutside(onPointerDownOutside, args) {
|
|
5519
|
+
const _args$ownerDocument = args.ownerDocument,
|
|
5520
|
+
ownerDocument = _args$ownerDocument === void 0 ? globalThis === null || globalThis === void 0 ? void 0 : globalThis.document : _args$ownerDocument,
|
|
5521
|
+
_args$deferPointerDow = args.deferPointerDownOutside,
|
|
5522
|
+
deferPointerDownOutside = _args$deferPointerDow === void 0 ? false : _args$deferPointerDow,
|
|
5523
|
+
isDeferredPointerDownOutsideRef = args.isDeferredPointerDownOutsideRef,
|
|
5524
|
+
dismissableSurfaces = args.dismissableSurfaces,
|
|
5525
|
+
_args$shouldHandlePoi = args.shouldHandlePointerDownOutside,
|
|
5526
|
+
shouldHandlePointerDownOutside = _args$shouldHandlePoi === void 0 ? IS_TRUE : _args$shouldHandlePoi;
|
|
5354
5527
|
const handlePointerDownOutside = useCallbackRef$1(onPointerDownOutside);
|
|
5355
5528
|
const isPointerInsideReactTreeRef = React__namespace.useRef(false);
|
|
5529
|
+
const isPointerDownOutsideRef = React__namespace.useRef(false);
|
|
5530
|
+
const interceptedOutsideInteractionEventsRef = React__namespace.useRef(/* @__PURE__ */new Map());
|
|
5356
5531
|
const handleClickRef = React__namespace.useRef(() => {});
|
|
5357
5532
|
React__namespace.useEffect(() => {
|
|
5358
|
-
|
|
5533
|
+
function resetOutsideInteraction() {
|
|
5534
|
+
isPointerDownOutsideRef.current = false;
|
|
5535
|
+
isDeferredPointerDownOutsideRef.current = false;
|
|
5536
|
+
interceptedOutsideInteractionEventsRef.current.clear();
|
|
5537
|
+
}
|
|
5538
|
+
__name$c(resetOutsideInteraction, "resetOutsideInteraction");
|
|
5539
|
+
function isOutsideInteractionIntercepted() {
|
|
5540
|
+
return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);
|
|
5541
|
+
}
|
|
5542
|
+
__name$c(isOutsideInteractionIntercepted, "isOutsideInteractionIntercepted");
|
|
5543
|
+
function handleInteractionCapture(event) {
|
|
5544
|
+
if (!isPointerDownOutsideRef.current) {
|
|
5545
|
+
return;
|
|
5546
|
+
}
|
|
5547
|
+
const target = event.target;
|
|
5548
|
+
const isDismissableSurface = target instanceof Node && [...dismissableSurfaces].some(surface => surface.contains(target));
|
|
5549
|
+
if (!isDismissableSurface) {
|
|
5550
|
+
interceptedOutsideInteractionEventsRef.current.set(event.type, true);
|
|
5551
|
+
}
|
|
5552
|
+
if (event.type === "click") {
|
|
5553
|
+
window.setTimeout(() => {
|
|
5554
|
+
if (isPointerDownOutsideRef.current) {
|
|
5555
|
+
handleClickRef.current();
|
|
5556
|
+
}
|
|
5557
|
+
}, 0);
|
|
5558
|
+
}
|
|
5559
|
+
}
|
|
5560
|
+
__name$c(handleInteractionCapture, "handleInteractionCapture");
|
|
5561
|
+
function handleInteractionBubble(event) {
|
|
5562
|
+
if (isPointerDownOutsideRef.current) {
|
|
5563
|
+
interceptedOutsideInteractionEventsRef.current.set(event.type, false);
|
|
5564
|
+
}
|
|
5565
|
+
}
|
|
5566
|
+
__name$c(handleInteractionBubble, "handleInteractionBubble");
|
|
5567
|
+
const handlePointerDown = /* @__PURE__ */__name$c(event => {
|
|
5359
5568
|
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
5360
5569
|
let handleAndDispatchPointerDownOutsideEvent2 = function () {
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5570
|
+
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
5571
|
+
const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();
|
|
5572
|
+
resetOutsideInteraction();
|
|
5573
|
+
if (!wasOutsideInteractionIntercepted) {
|
|
5574
|
+
handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
|
|
5575
|
+
discrete: true
|
|
5576
|
+
});
|
|
5577
|
+
}
|
|
5364
5578
|
};
|
|
5365
5579
|
var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;
|
|
5580
|
+
__name$c(handleAndDispatchPointerDownOutsideEvent2, "handleAndDispatchPointerDownOutsideEvent");
|
|
5581
|
+
if (!shouldHandlePointerDownOutside(event.target)) {
|
|
5582
|
+
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
5583
|
+
resetOutsideInteraction();
|
|
5584
|
+
isPointerInsideReactTreeRef.current = false;
|
|
5585
|
+
return;
|
|
5586
|
+
}
|
|
5366
5587
|
const eventDetail = {
|
|
5367
5588
|
originalEvent: event
|
|
5368
5589
|
};
|
|
5369
|
-
|
|
5590
|
+
isPointerDownOutsideRef.current = true;
|
|
5591
|
+
isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;
|
|
5592
|
+
interceptedOutsideInteractionEventsRef.current.clear();
|
|
5593
|
+
if (!deferPointerDownOutside || event.button !== 0) {
|
|
5594
|
+
handleAndDispatchPointerDownOutsideEvent2();
|
|
5595
|
+
} else {
|
|
5370
5596
|
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
5371
5597
|
handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
|
|
5372
5598
|
ownerDocument.addEventListener("click", handleClickRef.current, {
|
|
5373
5599
|
once: true
|
|
5374
5600
|
});
|
|
5375
|
-
} else {
|
|
5376
|
-
handleAndDispatchPointerDownOutsideEvent2();
|
|
5377
5601
|
}
|
|
5378
5602
|
} else {
|
|
5379
5603
|
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
5604
|
+
resetOutsideInteraction();
|
|
5380
5605
|
}
|
|
5381
5606
|
isPointerInsideReactTreeRef.current = false;
|
|
5382
|
-
};
|
|
5607
|
+
}, "handlePointerDown");
|
|
5608
|
+
const outsideInteractionEvents = ["pointerup", "mousedown", "mouseup", "touchstart", "touchend", "click"];
|
|
5609
|
+
for (const eventName of outsideInteractionEvents) {
|
|
5610
|
+
ownerDocument.addEventListener(eventName, handleInteractionCapture, true);
|
|
5611
|
+
ownerDocument.addEventListener(eventName, handleInteractionBubble);
|
|
5612
|
+
}
|
|
5383
5613
|
const timerId = window.setTimeout(() => {
|
|
5384
5614
|
ownerDocument.addEventListener("pointerdown", handlePointerDown);
|
|
5385
5615
|
}, 0);
|
|
@@ -5387,19 +5617,24 @@ function usePointerDownOutside(onPointerDownOutside) {
|
|
|
5387
5617
|
window.clearTimeout(timerId);
|
|
5388
5618
|
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
|
5389
5619
|
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
5620
|
+
for (const eventName of outsideInteractionEvents) {
|
|
5621
|
+
ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);
|
|
5622
|
+
ownerDocument.removeEventListener(eventName, handleInteractionBubble);
|
|
5623
|
+
}
|
|
5390
5624
|
};
|
|
5391
|
-
}, [ownerDocument, handlePointerDownOutside]);
|
|
5625
|
+
}, [ownerDocument, handlePointerDownOutside, deferPointerDownOutside, isDeferredPointerDownOutsideRef, dismissableSurfaces, shouldHandlePointerDownOutside]);
|
|
5392
5626
|
return {
|
|
5393
5627
|
// ensures we check React component tree (not just DOM tree)
|
|
5394
|
-
onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
|
|
5628
|
+
onPointerDownCapture: /* @__PURE__ */__name$c(() => isPointerInsideReactTreeRef.current = true, "onPointerDownCapture")
|
|
5395
5629
|
};
|
|
5396
5630
|
}
|
|
5631
|
+
__name$c(usePointerDownOutside, "usePointerDownOutside");
|
|
5397
5632
|
function useFocusOutside(onFocusOutside) {
|
|
5398
5633
|
let ownerDocument = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
|
|
5399
5634
|
const handleFocusOutside = useCallbackRef$1(onFocusOutside);
|
|
5400
5635
|
const isFocusInsideReactTreeRef = React__namespace.useRef(false);
|
|
5401
5636
|
React__namespace.useEffect(() => {
|
|
5402
|
-
const handleFocus = event => {
|
|
5637
|
+
const handleFocus = /* @__PURE__ */__name$c(event => {
|
|
5403
5638
|
if (event.target && !isFocusInsideReactTreeRef.current) {
|
|
5404
5639
|
const eventDetail = {
|
|
5405
5640
|
originalEvent: event
|
|
@@ -5408,19 +5643,21 @@ function useFocusOutside(onFocusOutside) {
|
|
|
5408
5643
|
discrete: false
|
|
5409
5644
|
});
|
|
5410
5645
|
}
|
|
5411
|
-
};
|
|
5646
|
+
}, "handleFocus");
|
|
5412
5647
|
ownerDocument.addEventListener("focusin", handleFocus);
|
|
5413
5648
|
return () => ownerDocument.removeEventListener("focusin", handleFocus);
|
|
5414
5649
|
}, [ownerDocument, handleFocusOutside]);
|
|
5415
5650
|
return {
|
|
5416
|
-
onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
|
|
5417
|
-
onBlurCapture: () => isFocusInsideReactTreeRef.current = false
|
|
5651
|
+
onFocusCapture: /* @__PURE__ */__name$c(() => isFocusInsideReactTreeRef.current = true, "onFocusCapture"),
|
|
5652
|
+
onBlurCapture: /* @__PURE__ */__name$c(() => isFocusInsideReactTreeRef.current = false, "onBlurCapture")
|
|
5418
5653
|
};
|
|
5419
5654
|
}
|
|
5655
|
+
__name$c(useFocusOutside, "useFocusOutside");
|
|
5420
5656
|
function dispatchUpdate() {
|
|
5421
5657
|
const event = new CustomEvent(CONTEXT_UPDATE);
|
|
5422
5658
|
document.dispatchEvent(event);
|
|
5423
5659
|
}
|
|
5660
|
+
__name$c(dispatchUpdate, "dispatchUpdate");
|
|
5424
5661
|
function handleAndDispatchCustomEvent(name, handler, detail, _ref) {
|
|
5425
5662
|
let discrete = _ref.discrete;
|
|
5426
5663
|
const target = detail.originalEvent.target;
|
|
@@ -5438,30 +5675,54 @@ function handleAndDispatchCustomEvent(name, handler, detail, _ref) {
|
|
|
5438
5675
|
target.dispatchEvent(event);
|
|
5439
5676
|
}
|
|
5440
5677
|
}
|
|
5678
|
+
__name$c(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
|
|
5441
5679
|
var Root$5 = DismissableLayer;
|
|
5442
5680
|
var Branch = DismissableLayerBranch;
|
|
5443
5681
|
|
|
5444
5682
|
"use client";
|
|
5683
|
+
|
|
5684
|
+
var __defProp$b = Object.defineProperty;
|
|
5685
|
+
var __name$b = (target, value) => __defProp$b(target, "name", {
|
|
5686
|
+
value,
|
|
5687
|
+
configurable: true
|
|
5688
|
+
});
|
|
5445
5689
|
var count$1 = 0;
|
|
5690
|
+
var guards = null;
|
|
5446
5691
|
function FocusGuards(props) {
|
|
5447
5692
|
useFocusGuards();
|
|
5448
5693
|
return props.children;
|
|
5449
5694
|
}
|
|
5695
|
+
__name$b(FocusGuards, "FocusGuards");
|
|
5450
5696
|
function useFocusGuards() {
|
|
5451
5697
|
React__namespace.useEffect(() => {
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5698
|
+
if (!guards) {
|
|
5699
|
+
guards = {
|
|
5700
|
+
start: createFocusGuard(),
|
|
5701
|
+
end: createFocusGuard()
|
|
5702
|
+
};
|
|
5703
|
+
}
|
|
5704
|
+
const _guards = guards,
|
|
5705
|
+
start = _guards.start,
|
|
5706
|
+
end = _guards.end;
|
|
5707
|
+
if (document.body.firstElementChild !== start) {
|
|
5708
|
+
document.body.insertAdjacentElement("afterbegin", start);
|
|
5709
|
+
}
|
|
5710
|
+
if (document.body.lastElementChild !== end) {
|
|
5711
|
+
document.body.insertAdjacentElement("beforeend", end);
|
|
5712
|
+
}
|
|
5456
5713
|
count$1++;
|
|
5457
5714
|
return () => {
|
|
5458
5715
|
if (count$1 === 1) {
|
|
5459
|
-
|
|
5716
|
+
var _guards2, _guards3;
|
|
5717
|
+
(_guards2 = guards) === null || _guards2 === void 0 || _guards2.start.remove();
|
|
5718
|
+
(_guards3 = guards) === null || _guards3 === void 0 || _guards3.end.remove();
|
|
5719
|
+
guards = null;
|
|
5460
5720
|
}
|
|
5461
|
-
count$1
|
|
5721
|
+
count$1 = Math.max(0, count$1 - 1);
|
|
5462
5722
|
};
|
|
5463
5723
|
}, []);
|
|
5464
5724
|
}
|
|
5725
|
+
__name$b(useFocusGuards, "useFocusGuards");
|
|
5465
5726
|
function createFocusGuard() {
|
|
5466
5727
|
const element = document.createElement("span");
|
|
5467
5728
|
element.setAttribute("data-radix-focus-guard", "");
|
|
@@ -5472,17 +5733,22 @@ function createFocusGuard() {
|
|
|
5472
5733
|
element.style.pointerEvents = "none";
|
|
5473
5734
|
return element;
|
|
5474
5735
|
}
|
|
5736
|
+
__name$b(createFocusGuard, "createFocusGuard");
|
|
5475
5737
|
|
|
5476
5738
|
"use client";
|
|
5477
5739
|
const _excluded$j = ["loop", "trapped", "onMountAutoFocus", "onUnmountAutoFocus"];
|
|
5740
|
+
var __defProp$a = Object.defineProperty;
|
|
5741
|
+
var __name$a = (target, value) => __defProp$a(target, "name", {
|
|
5742
|
+
value,
|
|
5743
|
+
configurable: true
|
|
5744
|
+
});
|
|
5478
5745
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
5479
5746
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
5480
5747
|
var EVENT_OPTIONS$1 = {
|
|
5481
5748
|
bubbles: false,
|
|
5482
5749
|
cancelable: true
|
|
5483
5750
|
};
|
|
5484
|
-
var
|
|
5485
|
-
var FocusScope = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
5751
|
+
var FocusScope = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$a(function FocusScope2(props, forwardedRef) {
|
|
5486
5752
|
const _props$loop = props.loop,
|
|
5487
5753
|
loop = _props$loop === void 0 ? false : _props$loop,
|
|
5488
5754
|
_props$trapped = props.trapped,
|
|
@@ -5497,7 +5763,7 @@ var FocusScope = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
5497
5763
|
const onMountAutoFocus = useCallbackRef$1(onMountAutoFocusProp);
|
|
5498
5764
|
const onUnmountAutoFocus = useCallbackRef$1(onUnmountAutoFocusProp);
|
|
5499
5765
|
const lastFocusedElementRef = React__namespace.useRef(null);
|
|
5500
|
-
const composedRefs = useComposedRefs(forwardedRef,
|
|
5766
|
+
const composedRefs = useComposedRefs(forwardedRef, setContainer);
|
|
5501
5767
|
const focusScope = React__namespace.useRef({
|
|
5502
5768
|
paused: false,
|
|
5503
5769
|
pause() {
|
|
@@ -5540,6 +5806,9 @@ var FocusScope = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
5540
5806
|
var handleFocusIn = handleFocusIn2,
|
|
5541
5807
|
handleFocusOut = handleFocusOut2,
|
|
5542
5808
|
handleMutations = handleMutations2;
|
|
5809
|
+
__name$a(handleFocusIn2, "handleFocusIn");
|
|
5810
|
+
__name$a(handleFocusOut2, "handleFocusOut");
|
|
5811
|
+
__name$a(handleMutations2, "handleMutations");
|
|
5543
5812
|
document.addEventListener("focusin", handleFocusIn2);
|
|
5544
5813
|
document.addEventListener("focusout", handleFocusOut2);
|
|
5545
5814
|
const mutationObserver = new MutationObserver(handleMutations2);
|
|
@@ -5624,8 +5893,7 @@ var FocusScope = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
5624
5893
|
ref: composedRefs,
|
|
5625
5894
|
onKeyDown: handleKeyDown
|
|
5626
5895
|
});
|
|
5627
|
-
});
|
|
5628
|
-
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
5896
|
+
}, "FocusScope"));
|
|
5629
5897
|
function focusFirst$2(candidates) {
|
|
5630
5898
|
let _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
5631
5899
|
_ref$select = _ref.select,
|
|
@@ -5638,31 +5906,43 @@ function focusFirst$2(candidates) {
|
|
|
5638
5906
|
if (document.activeElement !== previouslyFocusedElement) return;
|
|
5639
5907
|
}
|
|
5640
5908
|
}
|
|
5909
|
+
__name$a(focusFirst$2, "focusFirst");
|
|
5641
5910
|
function getTabbableEdges(container) {
|
|
5642
5911
|
const candidates = getTabbableCandidates(container);
|
|
5643
5912
|
const first = findVisible(candidates, container);
|
|
5644
5913
|
const last = findVisible(candidates.reverse(), container);
|
|
5645
5914
|
return [first, last];
|
|
5646
5915
|
}
|
|
5916
|
+
__name$a(getTabbableEdges, "getTabbableEdges");
|
|
5647
5917
|
function getTabbableCandidates(container) {
|
|
5648
5918
|
const nodes = [];
|
|
5649
5919
|
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
5650
|
-
acceptNode: node => {
|
|
5920
|
+
acceptNode: /* @__PURE__ */__name$a(node => {
|
|
5651
5921
|
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
5652
5922
|
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
5653
5923
|
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
5654
|
-
}
|
|
5924
|
+
}, "acceptNode")
|
|
5655
5925
|
});
|
|
5656
5926
|
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
5657
5927
|
return nodes;
|
|
5658
5928
|
}
|
|
5929
|
+
__name$a(getTabbableCandidates, "getTabbableCandidates");
|
|
5659
5930
|
function findVisible(elements, container) {
|
|
5931
|
+
const canUseCheckVisibility = typeof container.checkVisibility === "function" && container.checkVisibility({
|
|
5932
|
+
checkVisibilityCSS: true
|
|
5933
|
+
});
|
|
5660
5934
|
for (const element of elements) {
|
|
5661
|
-
|
|
5935
|
+
const hidden = canUseCheckVisibility ? !element.checkVisibility({
|
|
5936
|
+
checkVisibilityCSS: true
|
|
5937
|
+
}) : isHidden(element, {
|
|
5662
5938
|
upTo: container
|
|
5663
|
-
})
|
|
5939
|
+
});
|
|
5940
|
+
if (!hidden) {
|
|
5941
|
+
return element;
|
|
5942
|
+
}
|
|
5664
5943
|
}
|
|
5665
5944
|
}
|
|
5945
|
+
__name$a(findVisible, "findVisible");
|
|
5666
5946
|
function isHidden(node, _ref2) {
|
|
5667
5947
|
let upTo = _ref2.upTo;
|
|
5668
5948
|
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
@@ -5673,9 +5953,11 @@ function isHidden(node, _ref2) {
|
|
|
5673
5953
|
}
|
|
5674
5954
|
return false;
|
|
5675
5955
|
}
|
|
5956
|
+
__name$a(isHidden, "isHidden");
|
|
5676
5957
|
function isSelectableInput(element) {
|
|
5677
5958
|
return element instanceof HTMLInputElement && "select" in element;
|
|
5678
5959
|
}
|
|
5960
|
+
__name$a(isSelectableInput, "isSelectableInput");
|
|
5679
5961
|
function focus(element) {
|
|
5680
5962
|
let _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
5681
5963
|
_ref3$select = _ref3.select,
|
|
@@ -5688,6 +5970,7 @@ function focus(element) {
|
|
|
5688
5970
|
if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
|
|
5689
5971
|
}
|
|
5690
5972
|
}
|
|
5973
|
+
__name$a(focus, "focus");
|
|
5691
5974
|
var focusScopesStack = createFocusScopesStack();
|
|
5692
5975
|
function createFocusScopesStack() {
|
|
5693
5976
|
let stack = [];
|
|
@@ -5707,6 +5990,7 @@ function createFocusScopesStack() {
|
|
|
5707
5990
|
}
|
|
5708
5991
|
};
|
|
5709
5992
|
}
|
|
5993
|
+
__name$a(createFocusScopesStack, "createFocusScopesStack");
|
|
5710
5994
|
function arrayRemove(array, item) {
|
|
5711
5995
|
const updatedArray = [...array];
|
|
5712
5996
|
const index = updatedArray.indexOf(item);
|
|
@@ -5715,11 +5999,18 @@ function arrayRemove(array, item) {
|
|
|
5715
5999
|
}
|
|
5716
6000
|
return updatedArray;
|
|
5717
6001
|
}
|
|
6002
|
+
__name$a(arrayRemove, "arrayRemove");
|
|
5718
6003
|
function removeLinks(items) {
|
|
5719
6004
|
return items.filter(item => item.tagName !== "A");
|
|
5720
6005
|
}
|
|
6006
|
+
__name$a(removeLinks, "removeLinks");
|
|
5721
6007
|
var Root$4 = FocusScope;
|
|
5722
6008
|
|
|
6009
|
+
var __defProp$9 = Object.defineProperty;
|
|
6010
|
+
var __name$9 = (target, value) => __defProp$9(target, "name", {
|
|
6011
|
+
value,
|
|
6012
|
+
configurable: true
|
|
6013
|
+
});
|
|
5723
6014
|
var useReactId = React__namespace[" useId ".trim().toString()] || (() => void 0);
|
|
5724
6015
|
var count = 0;
|
|
5725
6016
|
function useId(deterministicId) {
|
|
@@ -5732,10 +6023,15 @@ function useId(deterministicId) {
|
|
|
5732
6023
|
}, [deterministicId]);
|
|
5733
6024
|
return deterministicId || (id ? "radix-".concat(id) : "");
|
|
5734
6025
|
}
|
|
6026
|
+
__name$9(useId, "useId");
|
|
5735
6027
|
|
|
5736
6028
|
const _excluded$i = ["children", "width", "height"];
|
|
5737
|
-
var
|
|
5738
|
-
var
|
|
6029
|
+
var __defProp$8 = Object.defineProperty;
|
|
6030
|
+
var __name$8 = (target, value) => __defProp$8(target, "name", {
|
|
6031
|
+
value,
|
|
6032
|
+
configurable: true
|
|
6033
|
+
});
|
|
6034
|
+
var Arrow$1 = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$8(function Arrow2(props, forwardedRef) {
|
|
5739
6035
|
const children = props.children,
|
|
5740
6036
|
_props$width = props.width,
|
|
5741
6037
|
width = _props$width === void 0 ? 10 : _props$width,
|
|
@@ -5753,10 +6049,14 @@ var Arrow$1 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
5753
6049
|
points: "0,0 30,0 15,10"
|
|
5754
6050
|
})
|
|
5755
6051
|
});
|
|
5756
|
-
});
|
|
5757
|
-
Arrow$1.displayName = NAME;
|
|
6052
|
+
}, "Arrow"));
|
|
5758
6053
|
var Root$3 = Arrow$1;
|
|
5759
6054
|
|
|
6055
|
+
var __defProp$7 = Object.defineProperty;
|
|
6056
|
+
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
6057
|
+
value,
|
|
6058
|
+
configurable: true
|
|
6059
|
+
});
|
|
5760
6060
|
function useSize(element) {
|
|
5761
6061
|
const _React$useState = React__namespace.useState(void 0),
|
|
5762
6062
|
_React$useState2 = _slicedToArray__default["default"](_React$useState, 2),
|
|
@@ -5802,11 +6102,17 @@ function useSize(element) {
|
|
|
5802
6102
|
}, [element]);
|
|
5803
6103
|
return size;
|
|
5804
6104
|
}
|
|
6105
|
+
__name$7(useSize, "useSize");
|
|
5805
6106
|
|
|
5806
6107
|
"use client";
|
|
5807
6108
|
const _excluded$h = ["__scopePopper", "virtualRef"],
|
|
5808
6109
|
_excluded2$4 = ["__scopePopper", "side", "sideOffset", "align", "alignOffset", "arrowPadding", "avoidCollisions", "collisionBoundary", "collisionPadding", "sticky", "hideWhenDetached", "updatePositionStrategy", "onPlaced"],
|
|
5809
6110
|
_excluded3$2 = ["__scopePopper"];
|
|
6111
|
+
var __defProp$6 = Object.defineProperty;
|
|
6112
|
+
var __name$6 = (target, value) => __defProp$6(target, "name", {
|
|
6113
|
+
value,
|
|
6114
|
+
configurable: true
|
|
6115
|
+
});
|
|
5810
6116
|
var SIDE_OPTIONS = ["top", "right", "bottom", "left"];
|
|
5811
6117
|
var ALIGN_OPTIONS = ["start", "center", "end"];
|
|
5812
6118
|
var POPPER_NAME = "Popper";
|
|
@@ -5818,50 +6124,69 @@ var _createPopperContext = createPopperContext(POPPER_NAME),
|
|
|
5818
6124
|
_createPopperContext2 = _slicedToArray__default["default"](_createPopperContext, 2),
|
|
5819
6125
|
PopperProvider = _createPopperContext2[0],
|
|
5820
6126
|
usePopperContext = _createPopperContext2[1];
|
|
5821
|
-
var Popper = props => {
|
|
6127
|
+
var Popper = /* @__PURE__ */__name$6(props => {
|
|
5822
6128
|
const __scopePopper = props.__scopePopper,
|
|
5823
6129
|
children = props.children;
|
|
5824
6130
|
const _React$useState = React__namespace.useState(null),
|
|
5825
6131
|
_React$useState2 = _slicedToArray__default["default"](_React$useState, 2),
|
|
5826
6132
|
anchor = _React$useState2[0],
|
|
5827
6133
|
setAnchor = _React$useState2[1];
|
|
6134
|
+
const _React$useState3 = React__namespace.useState(void 0),
|
|
6135
|
+
_React$useState4 = _slicedToArray__default["default"](_React$useState3, 2),
|
|
6136
|
+
placementState = _React$useState4[0],
|
|
6137
|
+
setPlacementState = _React$useState4[1];
|
|
5828
6138
|
return /* @__PURE__ */React__namespace.createElement(PopperProvider, {
|
|
5829
6139
|
scope: __scopePopper,
|
|
5830
6140
|
anchor,
|
|
5831
6141
|
onAnchorChange: setAnchor,
|
|
6142
|
+
placementState,
|
|
6143
|
+
setPlacementState,
|
|
5832
6144
|
children
|
|
5833
6145
|
});
|
|
5834
|
-
};
|
|
5835
|
-
|
|
5836
|
-
var
|
|
5837
|
-
var PopperAnchor = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
6146
|
+
}, "Popper");
|
|
6147
|
+
var ANCHOR_NAME = "PopperAnchor";
|
|
6148
|
+
var PopperAnchor = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$6(function PopperAnchor2(props, forwardedRef) {
|
|
5838
6149
|
const __scopePopper = props.__scopePopper,
|
|
5839
6150
|
virtualRef = props.virtualRef,
|
|
5840
6151
|
anchorProps = _objectWithoutProperties__default["default"](props, _excluded$h);
|
|
5841
|
-
const context = usePopperContext(ANCHOR_NAME
|
|
6152
|
+
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
5842
6153
|
const ref = React__namespace.useRef(null);
|
|
5843
|
-
const
|
|
6154
|
+
const onAnchorChange = context.onAnchorChange;
|
|
6155
|
+
const callbackRef = React__namespace.useCallback(node => {
|
|
6156
|
+
ref.current = node;
|
|
6157
|
+
if (node) {
|
|
6158
|
+
onAnchorChange(node);
|
|
6159
|
+
}
|
|
6160
|
+
}, [onAnchorChange]);
|
|
6161
|
+
const composedRefs = useComposedRefs(forwardedRef, callbackRef);
|
|
5844
6162
|
const anchorRef = React__namespace.useRef(null);
|
|
5845
6163
|
React__namespace.useEffect(() => {
|
|
6164
|
+
if (!virtualRef) {
|
|
6165
|
+
return;
|
|
6166
|
+
}
|
|
5846
6167
|
const previousAnchor = anchorRef.current;
|
|
5847
|
-
anchorRef.current =
|
|
6168
|
+
anchorRef.current = virtualRef.current;
|
|
5848
6169
|
if (previousAnchor !== anchorRef.current) {
|
|
5849
|
-
|
|
6170
|
+
onAnchorChange(anchorRef.current);
|
|
5850
6171
|
}
|
|
5851
6172
|
});
|
|
6173
|
+
const sideAndAlign = context.placementState && getSideAndAlignFromPlacement(context.placementState);
|
|
6174
|
+
const placedSide = sideAndAlign === null || sideAndAlign === void 0 ? void 0 : sideAndAlign[0];
|
|
6175
|
+
const placedAlign = sideAndAlign === null || sideAndAlign === void 0 ? void 0 : sideAndAlign[1];
|
|
5852
6176
|
return virtualRef ? null : /* @__PURE__ */React__namespace.createElement(Primitive.div, {
|
|
6177
|
+
"data-radix-popper-side": placedSide,
|
|
6178
|
+
"data-radix-popper-align": placedAlign,
|
|
5853
6179
|
...anchorProps,
|
|
5854
6180
|
ref: composedRefs
|
|
5855
6181
|
});
|
|
5856
|
-
});
|
|
5857
|
-
PopperAnchor.displayName = ANCHOR_NAME$1;
|
|
6182
|
+
}, "PopperAnchor"));
|
|
5858
6183
|
var CONTENT_NAME$2 = "PopperContent";
|
|
5859
6184
|
var _createPopperContext3 = createPopperContext(CONTENT_NAME$2),
|
|
5860
6185
|
_createPopperContext4 = _slicedToArray__default["default"](_createPopperContext3, 2),
|
|
5861
6186
|
PopperContentProvider = _createPopperContext4[0],
|
|
5862
6187
|
useContentContext = _createPopperContext4[1];
|
|
5863
|
-
var PopperContent =
|
|
5864
|
-
var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$trans, _middlewareData$trans2, _middlewareData$hide;
|
|
6188
|
+
var PopperContent = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$6(function PopperContent2(props, forwardedRef) {
|
|
6189
|
+
var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$trans, _middlewareData$trans2, _middlewareData$hide, _contentProps$style;
|
|
5865
6190
|
const __scopePopper = props.__scopePopper,
|
|
5866
6191
|
_props$side = props.side,
|
|
5867
6192
|
side = _props$side === void 0 ? "bottom" : _props$side,
|
|
@@ -5888,15 +6213,15 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5888
6213
|
onPlaced = props.onPlaced,
|
|
5889
6214
|
contentProps = _objectWithoutProperties__default["default"](props, _excluded2$4);
|
|
5890
6215
|
const context = usePopperContext(CONTENT_NAME$2, __scopePopper);
|
|
5891
|
-
const _React$useState3 = React__namespace.useState(null),
|
|
5892
|
-
_React$useState4 = _slicedToArray__default["default"](_React$useState3, 2),
|
|
5893
|
-
content = _React$useState4[0],
|
|
5894
|
-
setContent = _React$useState4[1];
|
|
5895
|
-
const composedRefs = useComposedRefs(forwardedRef, node => setContent(node));
|
|
5896
6216
|
const _React$useState5 = React__namespace.useState(null),
|
|
5897
6217
|
_React$useState6 = _slicedToArray__default["default"](_React$useState5, 2),
|
|
5898
|
-
|
|
5899
|
-
|
|
6218
|
+
content = _React$useState6[0],
|
|
6219
|
+
setContent = _React$useState6[1];
|
|
6220
|
+
const composedRefs = useComposedRefs(forwardedRef, setContent);
|
|
6221
|
+
const _React$useState7 = React__namespace.useState(null),
|
|
6222
|
+
_React$useState8 = _slicedToArray__default["default"](_React$useState7, 2),
|
|
6223
|
+
arrow = _React$useState8[0],
|
|
6224
|
+
setArrow = _React$useState8[1];
|
|
5900
6225
|
const arrowSize = useSize(arrow);
|
|
5901
6226
|
const arrowWidth = (_arrowSize$width = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.width) !== null && _arrowSize$width !== void 0 ? _arrowSize$width : 0;
|
|
5902
6227
|
const arrowHeight = (_arrowSize$height = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.height) !== null && _arrowSize$height !== void 0 ? _arrowSize$height : 0;
|
|
@@ -5920,7 +6245,7 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5920
6245
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5921
6246
|
strategy: "fixed",
|
|
5922
6247
|
placement: desiredPlacement,
|
|
5923
|
-
whileElementsMounted: function () {
|
|
6248
|
+
whileElementsMounted: /* @__PURE__ */__name$6(function () {
|
|
5924
6249
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5925
6250
|
args[_key] = arguments[_key];
|
|
5926
6251
|
}
|
|
@@ -5928,7 +6253,7 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5928
6253
|
animationFrame: updatePositionStrategy === "always"
|
|
5929
6254
|
});
|
|
5930
6255
|
return cleanup;
|
|
5931
|
-
},
|
|
6256
|
+
}, "whileElementsMounted"),
|
|
5932
6257
|
elements: {
|
|
5933
6258
|
reference: context.anchor
|
|
5934
6259
|
},
|
|
@@ -5944,7 +6269,7 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5944
6269
|
...detectOverflowOptions
|
|
5945
6270
|
}), reactDom.size({
|
|
5946
6271
|
...detectOverflowOptions,
|
|
5947
|
-
apply: _ref => {
|
|
6272
|
+
apply: /* @__PURE__ */__name$6(_ref => {
|
|
5948
6273
|
let elements = _ref.elements,
|
|
5949
6274
|
rects = _ref.rects,
|
|
5950
6275
|
availableWidth = _ref.availableWidth,
|
|
@@ -5957,7 +6282,7 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5957
6282
|
contentStyle.setProperty("--radix-popper-available-height", "".concat(availableHeight, "px"));
|
|
5958
6283
|
contentStyle.setProperty("--radix-popper-anchor-width", "".concat(anchorWidth, "px"));
|
|
5959
6284
|
contentStyle.setProperty("--radix-popper-anchor-height", "".concat(anchorHeight, "px"));
|
|
5960
|
-
}
|
|
6285
|
+
}, "apply")
|
|
5961
6286
|
}), arrow && reactDom.arrow({
|
|
5962
6287
|
element: arrow,
|
|
5963
6288
|
padding: arrowPadding
|
|
@@ -5966,7 +6291,15 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5966
6291
|
arrowHeight
|
|
5967
6292
|
}), hideWhenDetached && reactDom.hide({
|
|
5968
6293
|
strategy: "referenceHidden",
|
|
5969
|
-
...detectOverflowOptions
|
|
6294
|
+
...detectOverflowOptions,
|
|
6295
|
+
// `hide` detects whether the anchor (reference) is clipped, so when
|
|
6296
|
+
// no explicit `collisionBoundary` is set we fall back to Floating
|
|
6297
|
+
// UI's default clipping ancestors (e.g. a scrollable menu). This
|
|
6298
|
+
// lets an occluded submenu hide once its anchor scrolls out of view
|
|
6299
|
+
// (#3237). The collision/size middlewares deliberately keep the
|
|
6300
|
+
// viewport-based default to avoid clamping content rendered inside
|
|
6301
|
+
// transformed or overflow-clipping portal containers.
|
|
6302
|
+
boundary: hasExplicitBoundaries ? detectOverflowOptions.boundary : void 0
|
|
5970
6303
|
})]
|
|
5971
6304
|
}),
|
|
5972
6305
|
refs = _useFloating.refs,
|
|
@@ -5974,6 +6307,13 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5974
6307
|
placement = _useFloating.placement,
|
|
5975
6308
|
isPositioned = _useFloating.isPositioned,
|
|
5976
6309
|
middlewareData = _useFloating.middlewareData;
|
|
6310
|
+
const setPlacementState = context.setPlacementState;
|
|
6311
|
+
useLayoutEffect2(() => {
|
|
6312
|
+
setPlacementState(placement);
|
|
6313
|
+
return () => {
|
|
6314
|
+
setPlacementState(void 0);
|
|
6315
|
+
};
|
|
6316
|
+
}, [placement, setPlacementState]);
|
|
5977
6317
|
const _getSideAndAlignFromP = getSideAndAlignFromPlacement(placement),
|
|
5978
6318
|
_getSideAndAlignFromP2 = _slicedToArray__default["default"](_getSideAndAlignFromP, 2),
|
|
5979
6319
|
placedSide = _getSideAndAlignFromP2[0],
|
|
@@ -5987,10 +6327,10 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
5987
6327
|
const arrowX = (_middlewareData$arrow = middlewareData.arrow) === null || _middlewareData$arrow === void 0 ? void 0 : _middlewareData$arrow.x;
|
|
5988
6328
|
const arrowY = (_middlewareData$arrow2 = middlewareData.arrow) === null || _middlewareData$arrow2 === void 0 ? void 0 : _middlewareData$arrow2.y;
|
|
5989
6329
|
const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
|
|
5990
|
-
const _React$
|
|
5991
|
-
_React$
|
|
5992
|
-
contentZIndex = _React$
|
|
5993
|
-
setContentZIndex = _React$
|
|
6330
|
+
const _React$useState9 = React__namespace.useState(),
|
|
6331
|
+
_React$useState0 = _slicedToArray__default["default"](_React$useState9, 2),
|
|
6332
|
+
contentZIndex = _React$useState0[0],
|
|
6333
|
+
setContentZIndex = _React$useState0[1];
|
|
5994
6334
|
useLayoutEffect2(() => {
|
|
5995
6335
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
5996
6336
|
}, [content]);
|
|
@@ -6003,7 +6343,7 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
6003
6343
|
// keep off the page when measuring
|
|
6004
6344
|
minWidth: "max-content",
|
|
6005
6345
|
zIndex: contentZIndex,
|
|
6006
|
-
|
|
6346
|
+
"--radix-popper-transform-origin": [(_middlewareData$trans = middlewareData.transformOrigin) === null || _middlewareData$trans === void 0 ? void 0 : _middlewareData$trans.x, (_middlewareData$trans2 = middlewareData.transformOrigin) === null || _middlewareData$trans2 === void 0 ? void 0 : _middlewareData$trans2.y].join(" "),
|
|
6007
6347
|
// hide the content if using the hide middleware and should be hidden
|
|
6008
6348
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
6009
6349
|
// as if the PopperContent isn't there at all
|
|
@@ -6016,6 +6356,7 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
6016
6356
|
children: /* @__PURE__ */React__namespace.createElement(PopperContentProvider, {
|
|
6017
6357
|
scope: __scopePopper,
|
|
6018
6358
|
placedSide,
|
|
6359
|
+
placedAlign,
|
|
6019
6360
|
onArrowChange: setArrow,
|
|
6020
6361
|
arrowX,
|
|
6021
6362
|
arrowY,
|
|
@@ -6027,26 +6368,26 @@ var PopperContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
6027
6368
|
ref: composedRefs,
|
|
6028
6369
|
style: {
|
|
6029
6370
|
...contentProps.style,
|
|
6030
|
-
// if the PopperContent hasn't been placed yet (not all
|
|
6031
|
-
// we prevent animations so that users'
|
|
6032
|
-
|
|
6371
|
+
// if the PopperContent hasn't been placed yet (not all
|
|
6372
|
+
// measurements done) we prevent animations so that users'
|
|
6373
|
+
// animations don't kick in too early from the wrong sides.
|
|
6374
|
+
animation: !isPositioned ? "none" : (_contentProps$style = contentProps.style) === null || _contentProps$style === void 0 ? void 0 : _contentProps$style.animation
|
|
6033
6375
|
}
|
|
6034
6376
|
})
|
|
6035
6377
|
})
|
|
6036
6378
|
});
|
|
6037
|
-
});
|
|
6038
|
-
|
|
6039
|
-
var ARROW_NAME$2 = "PopperArrow";
|
|
6379
|
+
}, "PopperContent"));
|
|
6380
|
+
var ARROW_NAME = "PopperArrow";
|
|
6040
6381
|
var OPPOSITE_SIDE = {
|
|
6041
6382
|
top: "bottom",
|
|
6042
6383
|
right: "left",
|
|
6043
6384
|
bottom: "top",
|
|
6044
6385
|
left: "right"
|
|
6045
6386
|
};
|
|
6046
|
-
var PopperArrow =
|
|
6387
|
+
var PopperArrow = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$6(function PopperArrow2(props, forwardedRef) {
|
|
6047
6388
|
const __scopePopper = props.__scopePopper,
|
|
6048
6389
|
arrowProps = _objectWithoutProperties__default["default"](props, _excluded3$2);
|
|
6049
|
-
const contentContext = useContentContext(ARROW_NAME
|
|
6390
|
+
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
6050
6391
|
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
6051
6392
|
return (// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6052
6393
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6084,12 +6425,12 @@ var PopperArrow = /*#__PURE__*/React__namespace.forwardRef(function PopperArrow2
|
|
|
6084
6425
|
})
|
|
6085
6426
|
})
|
|
6086
6427
|
);
|
|
6087
|
-
});
|
|
6088
|
-
PopperArrow.displayName = ARROW_NAME$2;
|
|
6428
|
+
}, "PopperArrow"));
|
|
6089
6429
|
function isNotNull(value) {
|
|
6090
6430
|
return value !== null;
|
|
6091
6431
|
}
|
|
6092
|
-
|
|
6432
|
+
__name$6(isNotNull, "isNotNull");
|
|
6433
|
+
var transformOrigin = /* @__PURE__ */__name$6(options => ({
|
|
6093
6434
|
name: "transformOrigin",
|
|
6094
6435
|
options,
|
|
6095
6436
|
fn(data) {
|
|
@@ -6134,7 +6475,7 @@ var transformOrigin = options => ({
|
|
|
6134
6475
|
}
|
|
6135
6476
|
};
|
|
6136
6477
|
}
|
|
6137
|
-
});
|
|
6478
|
+
}), "transformOrigin");
|
|
6138
6479
|
function getSideAndAlignFromPlacement(placement) {
|
|
6139
6480
|
const _placement$split = placement.split("-"),
|
|
6140
6481
|
_placement$split2 = _slicedToArray__default["default"](_placement$split, 2),
|
|
@@ -6143,6 +6484,7 @@ function getSideAndAlignFromPlacement(placement) {
|
|
|
6143
6484
|
align = _placement$split2$ === void 0 ? "center" : _placement$split2$;
|
|
6144
6485
|
return [side, align];
|
|
6145
6486
|
}
|
|
6487
|
+
__name$6(getSideAndAlignFromPlacement, "getSideAndAlignFromPlacement");
|
|
6146
6488
|
var Root2$1 = Popper;
|
|
6147
6489
|
var Anchor = PopperAnchor;
|
|
6148
6490
|
var Content = PopperContent;
|
|
@@ -6150,8 +6492,12 @@ var Arrow = PopperArrow;
|
|
|
6150
6492
|
|
|
6151
6493
|
"use client";
|
|
6152
6494
|
const _excluded$g = ["container"];
|
|
6153
|
-
var
|
|
6154
|
-
var
|
|
6495
|
+
var __defProp$5 = Object.defineProperty;
|
|
6496
|
+
var __name$5 = (target, value) => __defProp$5(target, "name", {
|
|
6497
|
+
value,
|
|
6498
|
+
configurable: true
|
|
6499
|
+
});
|
|
6500
|
+
var Portal$1 = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$5(function Portal2(props, forwardedRef) {
|
|
6155
6501
|
var _globalThis$document;
|
|
6156
6502
|
const containerProp = props.container,
|
|
6157
6503
|
portalProps = _objectWithoutProperties__default["default"](props, _excluded$g);
|
|
@@ -6161,37 +6507,41 @@ var Portal$1 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
6161
6507
|
setMounted = _React$useState2[1];
|
|
6162
6508
|
useLayoutEffect2(() => setMounted(true), []);
|
|
6163
6509
|
const container = containerProp || mounted && (globalThis === null || globalThis === void 0 || (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body);
|
|
6164
|
-
return container ? /*#__PURE__*/
|
|
6510
|
+
return container ? /*#__PURE__*/ReactDOM__namespace.createPortal(/* @__PURE__ */React__namespace.createElement(Primitive.div, {
|
|
6165
6511
|
...portalProps,
|
|
6166
6512
|
ref: forwardedRef
|
|
6167
6513
|
}), container) : null;
|
|
6168
|
-
});
|
|
6169
|
-
Portal$1.displayName = PORTAL_NAME$2;
|
|
6514
|
+
}, "Portal"));
|
|
6170
6515
|
var Root$2 = Portal$1;
|
|
6171
6516
|
|
|
6172
6517
|
"use client";
|
|
6518
|
+
var __defProp$4 = Object.defineProperty;
|
|
6519
|
+
var __name$4 = (target, value) => __defProp$4(target, "name", {
|
|
6520
|
+
value,
|
|
6521
|
+
configurable: true
|
|
6522
|
+
});
|
|
6173
6523
|
function useStateMachine(initialState, machine) {
|
|
6174
6524
|
return React__namespace.useReducer((state, event) => {
|
|
6175
6525
|
const nextState = machine[state][event];
|
|
6176
6526
|
return nextState !== null && nextState !== void 0 ? nextState : state;
|
|
6177
6527
|
}, initialState);
|
|
6178
6528
|
}
|
|
6529
|
+
__name$4(useStateMachine, "useStateMachine");
|
|
6179
6530
|
|
|
6180
6531
|
// src/presence.tsx
|
|
6181
|
-
var Presence = props => {
|
|
6532
|
+
var Presence = /* @__PURE__ */__name$4(props => {
|
|
6182
6533
|
const present = props.present,
|
|
6183
6534
|
children = props.children;
|
|
6184
6535
|
const presence = usePresence(present);
|
|
6185
6536
|
const child = typeof children === "function" ? children({
|
|
6186
6537
|
present: presence.isPresent
|
|
6187
6538
|
}) : React__namespace.Children.only(children);
|
|
6188
|
-
const ref =
|
|
6539
|
+
const ref = useStableComposedRefs(presence.ref, getElementRef(child));
|
|
6189
6540
|
const forceMount = typeof children === "function";
|
|
6190
6541
|
return forceMount || presence.isPresent ? /*#__PURE__*/React__namespace.cloneElement(child, {
|
|
6191
6542
|
ref
|
|
6192
6543
|
}) : null;
|
|
6193
|
-
};
|
|
6194
|
-
Presence.displayName = "Presence";
|
|
6544
|
+
}, "Presence");
|
|
6195
6545
|
function usePresence(present) {
|
|
6196
6546
|
var _context;
|
|
6197
6547
|
const _React2$useState = React__namespace.useState(),
|
|
@@ -6201,6 +6551,7 @@ function usePresence(present) {
|
|
|
6201
6551
|
const stylesRef = React__namespace.useRef(null);
|
|
6202
6552
|
const prevPresentRef = React__namespace.useRef(present);
|
|
6203
6553
|
const prevAnimationNameRef = React__namespace.useRef("none");
|
|
6554
|
+
const mountAnimationNameRef = React__namespace.useRef(void 0);
|
|
6204
6555
|
const initialState = present ? "mounted" : "unmounted";
|
|
6205
6556
|
const _useStateMachine = useStateMachine(initialState, {
|
|
6206
6557
|
mounted: {
|
|
@@ -6219,8 +6570,13 @@ function usePresence(present) {
|
|
|
6219
6570
|
state = _useStateMachine2[0],
|
|
6220
6571
|
send = _useStateMachine2[1];
|
|
6221
6572
|
React__namespace.useEffect(() => {
|
|
6222
|
-
|
|
6223
|
-
|
|
6573
|
+
if (state === "mounted") {
|
|
6574
|
+
var _mountAnimationNameRe;
|
|
6575
|
+
prevAnimationNameRef.current = (_mountAnimationNameRe = mountAnimationNameRef.current) !== null && _mountAnimationNameRe !== void 0 ? _mountAnimationNameRe : getAnimationName(stylesRef.current);
|
|
6576
|
+
mountAnimationNameRef.current = void 0;
|
|
6577
|
+
} else {
|
|
6578
|
+
prevAnimationNameRef.current = "none";
|
|
6579
|
+
}
|
|
6224
6580
|
}, [state]);
|
|
6225
6581
|
useLayoutEffect2(() => {
|
|
6226
6582
|
const styles = stylesRef.current;
|
|
@@ -6230,6 +6586,7 @@ function usePresence(present) {
|
|
|
6230
6586
|
const prevAnimationName = prevAnimationNameRef.current;
|
|
6231
6587
|
const currentAnimationName = getAnimationName(styles);
|
|
6232
6588
|
if (present) {
|
|
6589
|
+
mountAnimationNameRef.current = currentAnimationName;
|
|
6233
6590
|
send("MOUNT");
|
|
6234
6591
|
} else if (currentAnimationName === "none" || (styles === null || styles === void 0 ? void 0 : styles.display) === "none") {
|
|
6235
6592
|
send("UNMOUNT");
|
|
@@ -6249,7 +6606,7 @@ function usePresence(present) {
|
|
|
6249
6606
|
var _node$ownerDocument$d;
|
|
6250
6607
|
let timeoutId;
|
|
6251
6608
|
const ownerWindow = (_node$ownerDocument$d = node.ownerDocument.defaultView) !== null && _node$ownerDocument$d !== void 0 ? _node$ownerDocument$d : window;
|
|
6252
|
-
const handleAnimationEnd = event => {
|
|
6609
|
+
const handleAnimationEnd = /* @__PURE__ */__name$4(event => {
|
|
6253
6610
|
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
6254
6611
|
const isCurrentAnimation = _includesInstanceProperty__default["default"](currentAnimationName).call(currentAnimationName, CSS.escape(event.animationName));
|
|
6255
6612
|
if (event.target === node && isCurrentAnimation) {
|
|
@@ -6264,12 +6621,12 @@ function usePresence(present) {
|
|
|
6264
6621
|
});
|
|
6265
6622
|
}
|
|
6266
6623
|
}
|
|
6267
|
-
};
|
|
6268
|
-
const handleAnimationStart = event => {
|
|
6624
|
+
}, "handleAnimationEnd");
|
|
6625
|
+
const handleAnimationStart = /* @__PURE__ */__name$4(event => {
|
|
6269
6626
|
if (event.target === node) {
|
|
6270
6627
|
prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
6271
6628
|
}
|
|
6272
|
-
};
|
|
6629
|
+
}, "handleAnimationStart");
|
|
6273
6630
|
node.addEventListener("animationstart", handleAnimationStart);
|
|
6274
6631
|
node.addEventListener("animationcancel", handleAnimationEnd);
|
|
6275
6632
|
node.addEventListener("animationend", handleAnimationEnd);
|
|
@@ -6286,14 +6643,61 @@ function usePresence(present) {
|
|
|
6286
6643
|
return {
|
|
6287
6644
|
isPresent: _includesInstanceProperty__default["default"](_context = ["mounted", "unmountSuspended"]).call(_context, state),
|
|
6288
6645
|
ref: React__namespace.useCallback(node2 => {
|
|
6289
|
-
|
|
6646
|
+
if (node2) {
|
|
6647
|
+
const styles = getComputedStyle(node2);
|
|
6648
|
+
stylesRef.current = styles;
|
|
6649
|
+
mountAnimationNameRef.current = getAnimationName(styles);
|
|
6650
|
+
} else {
|
|
6651
|
+
stylesRef.current = null;
|
|
6652
|
+
}
|
|
6290
6653
|
setNode(node2);
|
|
6291
6654
|
}, [])
|
|
6292
6655
|
};
|
|
6293
6656
|
}
|
|
6657
|
+
__name$4(usePresence, "usePresence");
|
|
6658
|
+
function setRef(ref, value) {
|
|
6659
|
+
if (typeof ref === "function") {
|
|
6660
|
+
return ref(value);
|
|
6661
|
+
} else if (ref !== null && ref !== void 0) {
|
|
6662
|
+
ref.current = value;
|
|
6663
|
+
}
|
|
6664
|
+
}
|
|
6665
|
+
__name$4(setRef, "setRef");
|
|
6666
|
+
function useStableComposedRefs() {
|
|
6667
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6668
|
+
refs[_key] = arguments[_key];
|
|
6669
|
+
}
|
|
6670
|
+
const refsRef = React__namespace.useRef(refs);
|
|
6671
|
+
refsRef.current = refs;
|
|
6672
|
+
return React__namespace.useCallback(node => {
|
|
6673
|
+
const currentRefs = refsRef.current;
|
|
6674
|
+
let hasCleanup = false;
|
|
6675
|
+
const cleanups = currentRefs.map(ref => {
|
|
6676
|
+
const cleanup = setRef(ref, node);
|
|
6677
|
+
if (!hasCleanup && typeof cleanup === "function") {
|
|
6678
|
+
hasCleanup = true;
|
|
6679
|
+
}
|
|
6680
|
+
return cleanup;
|
|
6681
|
+
});
|
|
6682
|
+
if (hasCleanup) {
|
|
6683
|
+
return () => {
|
|
6684
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
6685
|
+
const cleanup = cleanups[i];
|
|
6686
|
+
if (typeof cleanup === "function") {
|
|
6687
|
+
cleanup();
|
|
6688
|
+
} else {
|
|
6689
|
+
setRef(currentRefs[i], null);
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
};
|
|
6693
|
+
}
|
|
6694
|
+
}, []);
|
|
6695
|
+
}
|
|
6696
|
+
__name$4(useStableComposedRefs, "useStableComposedRefs");
|
|
6294
6697
|
function getAnimationName(styles) {
|
|
6295
6698
|
return (styles === null || styles === void 0 ? void 0 : styles.animationName) || "none";
|
|
6296
6699
|
}
|
|
6700
|
+
__name$4(getAnimationName, "getAnimationName");
|
|
6297
6701
|
function getElementRef(element) {
|
|
6298
6702
|
var _Object$getOwnPropert, _Object$getOwnPropert2;
|
|
6299
6703
|
let getter = (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(element.props, "ref")) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.get;
|
|
@@ -6308,31 +6712,73 @@ function getElementRef(element) {
|
|
|
6308
6712
|
}
|
|
6309
6713
|
return element.props.ref || element.ref;
|
|
6310
6714
|
}
|
|
6715
|
+
__name$4(getElementRef, "getElementRef");
|
|
6311
6716
|
var Root$1 = Presence;
|
|
6312
6717
|
|
|
6718
|
+
var __defProp$3 = Object.defineProperty;
|
|
6719
|
+
var __name$3 = (target, value) => __defProp$3(target, "name", {
|
|
6720
|
+
value,
|
|
6721
|
+
configurable: true
|
|
6722
|
+
});
|
|
6723
|
+
var _isHydrated = false;
|
|
6724
|
+
function useIsHydrated() {
|
|
6725
|
+
const _React$useState = React__namespace.useState(_isHydrated),
|
|
6726
|
+
_React$useState2 = _slicedToArray__default["default"](_React$useState, 2),
|
|
6727
|
+
isHydrated = _React$useState2[0],
|
|
6728
|
+
setIsHydrated = _React$useState2[1];
|
|
6729
|
+
React__namespace.useEffect(() => {
|
|
6730
|
+
if (!_isHydrated) {
|
|
6731
|
+
_isHydrated = true;
|
|
6732
|
+
setIsHydrated(true);
|
|
6733
|
+
}
|
|
6734
|
+
}, []);
|
|
6735
|
+
return isHydrated;
|
|
6736
|
+
}
|
|
6737
|
+
__name$3(useIsHydrated, "useIsHydrated");
|
|
6738
|
+
|
|
6739
|
+
// src/use-is-hydrated.tsx
|
|
6740
|
+
var useReactSyncExternalStore = React__namespace[" useSyncExternalStore ".trim().toString()];
|
|
6741
|
+
function subscribe() {
|
|
6742
|
+
return () => {};
|
|
6743
|
+
}
|
|
6744
|
+
__name$3(subscribe, "subscribe");
|
|
6745
|
+
function useIsHydratedModern() {
|
|
6746
|
+
return useReactSyncExternalStore(subscribe, () => true, () => false);
|
|
6747
|
+
}
|
|
6748
|
+
__name$3(useIsHydratedModern, "useIsHydratedModern");
|
|
6749
|
+
var useIsHydrated2 = typeof useReactSyncExternalStore === "function" ? useIsHydratedModern : useIsHydrated;
|
|
6750
|
+
|
|
6313
6751
|
"use client";
|
|
6314
6752
|
const _excluded$f = ["__scopeRovingFocusGroup", "orientation", "loop", "dir", "currentTabStopId", "defaultCurrentTabStopId", "onCurrentTabStopIdChange", "onEntryFocus", "preventScrollOnEntryFocus"],
|
|
6315
6753
|
_excluded2$3 = ["__scopeRovingFocusGroup", "focusable", "active", "tabStopId", "children"];
|
|
6754
|
+
var __defProp$2 = Object.defineProperty;
|
|
6755
|
+
var __name$2 = (target, value) => __defProp$2(target, "name", {
|
|
6756
|
+
value,
|
|
6757
|
+
configurable: true
|
|
6758
|
+
});
|
|
6316
6759
|
var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
|
|
6317
6760
|
var EVENT_OPTIONS = {
|
|
6318
6761
|
bubbles: false,
|
|
6319
6762
|
cancelable: true
|
|
6320
6763
|
};
|
|
6321
|
-
var GROUP_NAME
|
|
6322
|
-
var _createCollection$1 = createCollection(GROUP_NAME
|
|
6764
|
+
var GROUP_NAME = "RovingFocusGroup";
|
|
6765
|
+
var _createCollection$1 = createCollection(GROUP_NAME),
|
|
6323
6766
|
_createCollection2$1 = _slicedToArray__default["default"](_createCollection$1, 3),
|
|
6324
6767
|
Collection$1 = _createCollection2$1[0],
|
|
6325
6768
|
useCollection$1 = _createCollection2$1[1],
|
|
6326
6769
|
createCollectionScope$1 = _createCollection2$1[2];
|
|
6327
|
-
var _createContextScope$2 = createContextScope(GROUP_NAME
|
|
6770
|
+
var _createContextScope$2 = createContextScope(GROUP_NAME, [createCollectionScope$1]),
|
|
6328
6771
|
_createContextScope2$2 = _slicedToArray__default["default"](_createContextScope$2, 2),
|
|
6329
6772
|
createRovingFocusGroupContext = _createContextScope2$2[0],
|
|
6330
6773
|
createRovingFocusGroupScope = _createContextScope2$2[1];
|
|
6331
|
-
var _createRovingFocusGro = createRovingFocusGroupContext(GROUP_NAME
|
|
6774
|
+
var _createRovingFocusGro = createRovingFocusGroupContext(GROUP_NAME),
|
|
6332
6775
|
_createRovingFocusGro2 = _slicedToArray__default["default"](_createRovingFocusGro, 2),
|
|
6333
6776
|
RovingFocusProvider = _createRovingFocusGro2[0],
|
|
6334
6777
|
useRovingFocusContext = _createRovingFocusGro2[1];
|
|
6335
|
-
var RovingFocusGroup =
|
|
6778
|
+
var RovingFocusGroup = /* @__PURE__ */React__namespace.forwardRef(
|
|
6779
|
+
// blank line to reduce diff noise
|
|
6780
|
+
/* @__PURE__ */
|
|
6781
|
+
__name$2(function RovingFocusGroup2(props, forwardedRef) {
|
|
6336
6782
|
return /* @__PURE__ */React__namespace.createElement(Collection$1.Provider, {
|
|
6337
6783
|
scope: props.__scopeRovingFocusGroup,
|
|
6338
6784
|
children: /* @__PURE__ */React__namespace.createElement(Collection$1.Slot, {
|
|
@@ -6343,9 +6789,8 @@ var RovingFocusGroup = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
6343
6789
|
})
|
|
6344
6790
|
})
|
|
6345
6791
|
});
|
|
6346
|
-
});
|
|
6347
|
-
|
|
6348
|
-
var RovingFocusGroupImpl = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
6792
|
+
}, "RovingFocusGroup"));
|
|
6793
|
+
var RovingFocusGroupImpl = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$2(function RovingFocusGroupImpl2(props, forwardedRef) {
|
|
6349
6794
|
const __scopeRovingFocusGroup = props.__scopeRovingFocusGroup,
|
|
6350
6795
|
orientation = props.orientation,
|
|
6351
6796
|
_props$loop = props.loop,
|
|
@@ -6365,7 +6810,7 @@ var RovingFocusGroupImpl = /*#__PURE__*/React__namespace.forwardRef((props, forw
|
|
|
6365
6810
|
prop: currentTabStopIdProp,
|
|
6366
6811
|
defaultProp: defaultCurrentTabStopId !== null && defaultCurrentTabStopId !== void 0 ? defaultCurrentTabStopId : null,
|
|
6367
6812
|
onChange: onCurrentTabStopIdChange,
|
|
6368
|
-
caller: GROUP_NAME
|
|
6813
|
+
caller: GROUP_NAME
|
|
6369
6814
|
}),
|
|
6370
6815
|
_useControllableState2 = _slicedToArray__default["default"](_useControllableState, 2),
|
|
6371
6816
|
currentTabStopId = _useControllableState2[0],
|
|
@@ -6429,9 +6874,12 @@ var RovingFocusGroupImpl = /*#__PURE__*/React__namespace.forwardRef((props, forw
|
|
|
6429
6874
|
onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))
|
|
6430
6875
|
})
|
|
6431
6876
|
});
|
|
6432
|
-
});
|
|
6433
|
-
var ITEM_NAME$
|
|
6434
|
-
var RovingFocusGroupItem =
|
|
6877
|
+
}, "RovingFocusGroupImpl"));
|
|
6878
|
+
var ITEM_NAME$1 = "RovingFocusGroupItem";
|
|
6879
|
+
var RovingFocusGroupItem = /* @__PURE__ */React__namespace.forwardRef(
|
|
6880
|
+
// blank line to reduce diff noise
|
|
6881
|
+
/* @__PURE__ */
|
|
6882
|
+
__name$2(function RovingFocusGroupItem2(props, forwardedRef) {
|
|
6435
6883
|
const __scopeRovingFocusGroup = props.__scopeRovingFocusGroup,
|
|
6436
6884
|
_props$focusable = props.focusable,
|
|
6437
6885
|
focusable = _props$focusable === void 0 ? true : _props$focusable,
|
|
@@ -6442,18 +6890,27 @@ var RovingFocusGroupItem = /*#__PURE__*/React__namespace.forwardRef((props, forw
|
|
|
6442
6890
|
itemProps = _objectWithoutProperties__default["default"](props, _excluded2$3);
|
|
6443
6891
|
const autoId = useId();
|
|
6444
6892
|
const id = tabStopId || autoId;
|
|
6445
|
-
const context = useRovingFocusContext(ITEM_NAME$
|
|
6893
|
+
const context = useRovingFocusContext(ITEM_NAME$1, __scopeRovingFocusGroup);
|
|
6446
6894
|
const isCurrentTabStop = context.currentTabStopId === id;
|
|
6447
6895
|
const getItems = useCollection$1(__scopeRovingFocusGroup);
|
|
6448
6896
|
const onFocusableItemAdd = context.onFocusableItemAdd,
|
|
6449
6897
|
onFocusableItemRemove = context.onFocusableItemRemove,
|
|
6450
6898
|
currentTabStopId = context.currentTabStopId;
|
|
6899
|
+
const isHydrated = useIsHydrated2();
|
|
6900
|
+
useLayoutEffect2(() => {
|
|
6901
|
+
if (!isHydrated || !focusable) {
|
|
6902
|
+
return;
|
|
6903
|
+
}
|
|
6904
|
+
onFocusableItemAdd();
|
|
6905
|
+
return () => onFocusableItemRemove();
|
|
6906
|
+
}, [isHydrated, focusable, onFocusableItemAdd, onFocusableItemRemove]);
|
|
6451
6907
|
React__namespace.useEffect(() => {
|
|
6452
|
-
if (focusable) {
|
|
6453
|
-
|
|
6454
|
-
return () => onFocusableItemRemove();
|
|
6908
|
+
if (isHydrated || !focusable) {
|
|
6909
|
+
return;
|
|
6455
6910
|
}
|
|
6456
|
-
|
|
6911
|
+
onFocusableItemAdd();
|
|
6912
|
+
return () => onFocusableItemRemove();
|
|
6913
|
+
}, [isHydrated, focusable, onFocusableItemAdd, onFocusableItemRemove]);
|
|
6457
6914
|
return /* @__PURE__ */React__namespace.createElement(Collection$1.ItemSlot, {
|
|
6458
6915
|
scope: __scopeRovingFocusGroup,
|
|
6459
6916
|
id,
|
|
@@ -6494,8 +6951,7 @@ var RovingFocusGroupItem = /*#__PURE__*/React__namespace.forwardRef((props, forw
|
|
|
6494
6951
|
}) : children
|
|
6495
6952
|
})
|
|
6496
6953
|
});
|
|
6497
|
-
});
|
|
6498
|
-
RovingFocusGroupItem.displayName = ITEM_NAME$2;
|
|
6954
|
+
}, "RovingFocusGroupItem"));
|
|
6499
6955
|
var MAP_KEY_TO_FOCUS_INTENT = {
|
|
6500
6956
|
ArrowLeft: "prev",
|
|
6501
6957
|
ArrowUp: "prev",
|
|
@@ -6510,6 +6966,7 @@ function getDirectionAwareKey(key, dir) {
|
|
|
6510
6966
|
if (dir !== "rtl") return key;
|
|
6511
6967
|
return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
|
|
6512
6968
|
}
|
|
6969
|
+
__name$2(getDirectionAwareKey, "getDirectionAwareKey");
|
|
6513
6970
|
function getFocusIntent(event, orientation, dir) {
|
|
6514
6971
|
var _context, _context2;
|
|
6515
6972
|
const key = getDirectionAwareKey(event.key, dir);
|
|
@@ -6517,6 +6974,7 @@ function getFocusIntent(event, orientation, dir) {
|
|
|
6517
6974
|
if (orientation === "horizontal" && _includesInstanceProperty__default["default"](_context2 = ["ArrowUp", "ArrowDown"]).call(_context2, key)) return void 0;
|
|
6518
6975
|
return MAP_KEY_TO_FOCUS_INTENT[key];
|
|
6519
6976
|
}
|
|
6977
|
+
__name$2(getFocusIntent, "getFocusIntent");
|
|
6520
6978
|
function focusFirst$1(candidates) {
|
|
6521
6979
|
let preventScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
6522
6980
|
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
@@ -6528,9 +6986,11 @@ function focusFirst$1(candidates) {
|
|
|
6528
6986
|
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
6529
6987
|
}
|
|
6530
6988
|
}
|
|
6989
|
+
__name$2(focusFirst$1, "focusFirst");
|
|
6531
6990
|
function wrapArray$1(array, startIndex) {
|
|
6532
6991
|
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
6533
6992
|
}
|
|
6993
|
+
__name$2(wrapArray$1, "wrapArray");
|
|
6534
6994
|
var Root = RovingFocusGroup;
|
|
6535
6995
|
var Item = RovingFocusGroupItem;
|
|
6536
6996
|
|
|
@@ -8053,7 +8513,12 @@ const _excluded$e = ["__scopeMenu"],
|
|
|
8053
8513
|
_excluded1$1 = ["__scopeMenu", "forceMount"],
|
|
8054
8514
|
_excluded10$1 = ["__scopeMenu"],
|
|
8055
8515
|
_excluded11$1 = ["__scopeMenu"],
|
|
8056
|
-
_excluded12$1 = ["forceMount"];
|
|
8516
|
+
_excluded12$1 = ["forceMount", "align"];
|
|
8517
|
+
var __defProp$1 = Object.defineProperty;
|
|
8518
|
+
var __name$1 = (target, value) => __defProp$1(target, "name", {
|
|
8519
|
+
value,
|
|
8520
|
+
configurable: true
|
|
8521
|
+
});
|
|
8057
8522
|
var SELECTION_KEYS = ["Enter", " "];
|
|
8058
8523
|
var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
|
|
8059
8524
|
var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
|
|
@@ -8086,7 +8551,7 @@ var _createMenuContext3 = createMenuContext(MENU_NAME),
|
|
|
8086
8551
|
_createMenuContext4 = _slicedToArray__default["default"](_createMenuContext3, 2),
|
|
8087
8552
|
MenuRootProvider = _createMenuContext4[0],
|
|
8088
8553
|
useMenuRootContext = _createMenuContext4[1];
|
|
8089
|
-
var Menu$1 = props => {
|
|
8554
|
+
var Menu$1 = /* @__PURE__ */__name$1(props => {
|
|
8090
8555
|
const __scopeMenu = props.__scopeMenu,
|
|
8091
8556
|
_props$open = props.open,
|
|
8092
8557
|
open = _props$open === void 0 ? false : _props$open,
|
|
@@ -8104,7 +8569,7 @@ var Menu$1 = props => {
|
|
|
8104
8569
|
const handleOpenChange = useCallbackRef$1(onOpenChange);
|
|
8105
8570
|
const direction = useDirection(dir);
|
|
8106
8571
|
React__namespace.useEffect(() => {
|
|
8107
|
-
const handleKeyDown = () => {
|
|
8572
|
+
const handleKeyDown = /* @__PURE__ */__name$1(() => {
|
|
8108
8573
|
isUsingKeyboardRef.current = true;
|
|
8109
8574
|
document.addEventListener("pointerdown", handlePointer, {
|
|
8110
8575
|
capture: true,
|
|
@@ -8114,8 +8579,8 @@ var Menu$1 = props => {
|
|
|
8114
8579
|
capture: true,
|
|
8115
8580
|
once: true
|
|
8116
8581
|
});
|
|
8117
|
-
};
|
|
8118
|
-
const handlePointer = () => isUsingKeyboardRef.current = false;
|
|
8582
|
+
}, "handleKeyDown");
|
|
8583
|
+
const handlePointer = /* @__PURE__ */__name$1(() => isUsingKeyboardRef.current = false, "handlePointer");
|
|
8119
8584
|
document.addEventListener("keydown", handleKeyDown, {
|
|
8120
8585
|
capture: true
|
|
8121
8586
|
});
|
|
@@ -8131,6 +8596,14 @@ var Menu$1 = props => {
|
|
|
8131
8596
|
});
|
|
8132
8597
|
};
|
|
8133
8598
|
}, []);
|
|
8599
|
+
React__namespace.useEffect(() => {
|
|
8600
|
+
if (!open) {
|
|
8601
|
+
return;
|
|
8602
|
+
}
|
|
8603
|
+
const handleBlur = /* @__PURE__ */__name$1(() => handleOpenChange(false), "handleBlur");
|
|
8604
|
+
window.addEventListener("blur", handleBlur);
|
|
8605
|
+
return () => window.removeEventListener("blur", handleBlur);
|
|
8606
|
+
}, [open, handleOpenChange]);
|
|
8134
8607
|
return /* @__PURE__ */React__namespace.createElement(Root2$1, {
|
|
8135
8608
|
...popperScope,
|
|
8136
8609
|
children: /* @__PURE__ */React__namespace.createElement(MenuProvider, {
|
|
@@ -8149,10 +8622,8 @@ var Menu$1 = props => {
|
|
|
8149
8622
|
})
|
|
8150
8623
|
})
|
|
8151
8624
|
});
|
|
8152
|
-
};
|
|
8153
|
-
|
|
8154
|
-
var ANCHOR_NAME = "MenuAnchor";
|
|
8155
|
-
var MenuAnchor = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
8625
|
+
}, "Menu");
|
|
8626
|
+
var MenuAnchor = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuAnchor2(props, forwardedRef) {
|
|
8156
8627
|
const __scopeMenu = props.__scopeMenu,
|
|
8157
8628
|
anchorProps = _objectWithoutProperties__default["default"](props, _excluded$e);
|
|
8158
8629
|
const popperScope = usePopperScope(__scopeMenu);
|
|
@@ -8161,21 +8632,20 @@ var MenuAnchor = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
8161
8632
|
...anchorProps,
|
|
8162
8633
|
ref: forwardedRef
|
|
8163
8634
|
});
|
|
8164
|
-
});
|
|
8165
|
-
|
|
8166
|
-
var
|
|
8167
|
-
var _createMenuContext5 = createMenuContext(PORTAL_NAME$1, {
|
|
8635
|
+
}, "MenuAnchor"));
|
|
8636
|
+
var PORTAL_NAME = "MenuPortal";
|
|
8637
|
+
var _createMenuContext5 = createMenuContext(PORTAL_NAME, {
|
|
8168
8638
|
forceMount: void 0
|
|
8169
8639
|
}),
|
|
8170
8640
|
_createMenuContext6 = _slicedToArray__default["default"](_createMenuContext5, 2),
|
|
8171
8641
|
PortalProvider = _createMenuContext6[0],
|
|
8172
8642
|
usePortalContext = _createMenuContext6[1];
|
|
8173
|
-
var MenuPortal = props => {
|
|
8643
|
+
var MenuPortal = /* @__PURE__ */__name$1(props => {
|
|
8174
8644
|
const __scopeMenu = props.__scopeMenu,
|
|
8175
8645
|
forceMount = props.forceMount,
|
|
8176
8646
|
children = props.children,
|
|
8177
8647
|
container = props.container;
|
|
8178
|
-
const context = useMenuContext$1(PORTAL_NAME
|
|
8648
|
+
const context = useMenuContext$1(PORTAL_NAME, __scopeMenu);
|
|
8179
8649
|
return /* @__PURE__ */React__namespace.createElement(PortalProvider, {
|
|
8180
8650
|
scope: __scopeMenu,
|
|
8181
8651
|
forceMount,
|
|
@@ -8188,14 +8658,13 @@ var MenuPortal = props => {
|
|
|
8188
8658
|
})
|
|
8189
8659
|
})
|
|
8190
8660
|
});
|
|
8191
|
-
};
|
|
8192
|
-
MenuPortal.displayName = PORTAL_NAME$1;
|
|
8661
|
+
}, "MenuPortal");
|
|
8193
8662
|
var CONTENT_NAME$1 = "MenuContent";
|
|
8194
8663
|
var _createMenuContext7 = createMenuContext(CONTENT_NAME$1),
|
|
8195
8664
|
_createMenuContext8 = _slicedToArray__default["default"](_createMenuContext7, 2),
|
|
8196
8665
|
MenuContentProvider = _createMenuContext8[0],
|
|
8197
8666
|
useMenuContentContext = _createMenuContext8[1];
|
|
8198
|
-
var MenuContent =
|
|
8667
|
+
var MenuContent = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuContent2(props, forwardedRef) {
|
|
8199
8668
|
const portalContext = usePortalContext(CONTENT_NAME$1, props.__scopeMenu);
|
|
8200
8669
|
const _props$forceMount = props.forceMount,
|
|
8201
8670
|
forceMount = _props$forceMount === void 0 ? portalContext.forceMount : _props$forceMount,
|
|
@@ -8218,8 +8687,11 @@ var MenuContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
8218
8687
|
})
|
|
8219
8688
|
})
|
|
8220
8689
|
});
|
|
8221
|
-
});
|
|
8222
|
-
var MenuRootContentModal =
|
|
8690
|
+
}, "MenuContent"));
|
|
8691
|
+
var MenuRootContentModal = /* @__PURE__ */React__namespace.forwardRef(
|
|
8692
|
+
// blank line to reduce diff noise
|
|
8693
|
+
/* @__PURE__ */
|
|
8694
|
+
__name$1(function MenuRootContentModal2(props, forwardedRef) {
|
|
8223
8695
|
const context = useMenuContext$1(CONTENT_NAME$1, props.__scopeMenu);
|
|
8224
8696
|
const ref = React__namespace.useRef(null);
|
|
8225
8697
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -8238,8 +8710,8 @@ var MenuRootContentModal = /*#__PURE__*/React__namespace.forwardRef((props, forw
|
|
|
8238
8710
|
}),
|
|
8239
8711
|
onDismiss: () => context.onOpenChange(false)
|
|
8240
8712
|
});
|
|
8241
|
-
});
|
|
8242
|
-
var MenuRootContentNonModal =
|
|
8713
|
+
}, "MenuRootContentModal"));
|
|
8714
|
+
var MenuRootContentNonModal = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuRootContentNonModal2(props, forwardedRef) {
|
|
8243
8715
|
const context = useMenuContext$1(CONTENT_NAME$1, props.__scopeMenu);
|
|
8244
8716
|
return /* @__PURE__ */React__namespace.createElement(MenuContentImpl, {
|
|
8245
8717
|
...props,
|
|
@@ -8249,9 +8721,12 @@ var MenuRootContentNonModal = /*#__PURE__*/React__namespace.forwardRef((props, f
|
|
|
8249
8721
|
disableOutsideScroll: false,
|
|
8250
8722
|
onDismiss: () => context.onOpenChange(false)
|
|
8251
8723
|
});
|
|
8252
|
-
});
|
|
8724
|
+
}, "MenuRootContentNonModal"));
|
|
8253
8725
|
var Slot = createSlot("MenuContent.ScrollLock");
|
|
8254
|
-
var MenuContentImpl =
|
|
8726
|
+
var MenuContentImpl = /* @__PURE__ */React__namespace.forwardRef(
|
|
8727
|
+
// blank line to reduce diff noise
|
|
8728
|
+
/* @__PURE__ */
|
|
8729
|
+
__name$1(function MenuContentImpl2(props, forwardedRef) {
|
|
8255
8730
|
const __scopeMenu = props.__scopeMenu,
|
|
8256
8731
|
_props$loop = props.loop,
|
|
8257
8732
|
loop = _props$loop === void 0 ? false : _props$loop,
|
|
@@ -8289,7 +8764,7 @@ var MenuContentImpl = /*#__PURE__*/React__namespace.forwardRef((props, forwarded
|
|
|
8289
8764
|
as: Slot,
|
|
8290
8765
|
allowPinchZoom: true
|
|
8291
8766
|
} : void 0;
|
|
8292
|
-
const handleTypeaheadSearch = key => {
|
|
8767
|
+
const handleTypeaheadSearch = /* @__PURE__ */__name$1(key => {
|
|
8293
8768
|
var _items$find, _items$find2;
|
|
8294
8769
|
const search = searchRef.current + key;
|
|
8295
8770
|
const items = getItems().filter(item => !item.disabled);
|
|
@@ -8298,15 +8773,15 @@ var MenuContentImpl = /*#__PURE__*/React__namespace.forwardRef((props, forwarded
|
|
|
8298
8773
|
const values = items.map(item => item.textValue);
|
|
8299
8774
|
const nextMatch = getNextMatch(values, search, currentMatch);
|
|
8300
8775
|
const newItem = (_items$find2 = items.find(item => item.textValue === nextMatch)) === null || _items$find2 === void 0 ? void 0 : _items$find2.ref.current;
|
|
8301
|
-
(function updateSearch(value) {
|
|
8776
|
+
(/* @__PURE__ */__name$1(function updateSearch(value) {
|
|
8302
8777
|
searchRef.current = value;
|
|
8303
8778
|
window.clearTimeout(timerRef.current);
|
|
8304
8779
|
if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
|
|
8305
|
-
})(search);
|
|
8780
|
+
}, "updateSearch"))(search);
|
|
8306
8781
|
if (newItem) {
|
|
8307
8782
|
setTimeout(() => newItem.focus());
|
|
8308
8783
|
}
|
|
8309
|
-
};
|
|
8784
|
+
}, "handleTypeaheadSearch");
|
|
8310
8785
|
React__namespace.useEffect(() => {
|
|
8311
8786
|
return () => window.clearTimeout(timerRef.current);
|
|
8312
8787
|
}, []);
|
|
@@ -8420,10 +8895,8 @@ var MenuContentImpl = /*#__PURE__*/React__namespace.forwardRef((props, forwarded
|
|
|
8420
8895
|
})
|
|
8421
8896
|
})
|
|
8422
8897
|
});
|
|
8423
|
-
});
|
|
8424
|
-
|
|
8425
|
-
var GROUP_NAME$1 = "MenuGroup";
|
|
8426
|
-
var MenuGroup = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
8898
|
+
}, "MenuContentImpl"));
|
|
8899
|
+
var MenuGroup = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuGroup2(props, forwardedRef) {
|
|
8427
8900
|
const __scopeMenu = props.__scopeMenu,
|
|
8428
8901
|
groupProps = _objectWithoutProperties__default["default"](props, _excluded4$1);
|
|
8429
8902
|
return /* @__PURE__ */React__namespace.createElement(Primitive.div, {
|
|
@@ -8431,31 +8904,31 @@ var MenuGroup = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) =
|
|
|
8431
8904
|
...groupProps,
|
|
8432
8905
|
ref: forwardedRef
|
|
8433
8906
|
});
|
|
8434
|
-
});
|
|
8435
|
-
|
|
8436
|
-
var LABEL_NAME$1 = "MenuLabel";
|
|
8437
|
-
var MenuLabel = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
8907
|
+
}, "MenuGroup"));
|
|
8908
|
+
var MenuLabel = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuLabel2(props, forwardedRef) {
|
|
8438
8909
|
const __scopeMenu = props.__scopeMenu,
|
|
8439
8910
|
labelProps = _objectWithoutProperties__default["default"](props, _excluded5$1);
|
|
8440
8911
|
return /* @__PURE__ */React__namespace.createElement(Primitive.div, {
|
|
8441
8912
|
...labelProps,
|
|
8442
8913
|
ref: forwardedRef
|
|
8443
8914
|
});
|
|
8444
|
-
});
|
|
8445
|
-
|
|
8446
|
-
var ITEM_NAME$1 = "MenuItem";
|
|
8915
|
+
}, "MenuLabel"));
|
|
8916
|
+
var ITEM_NAME = "MenuItem";
|
|
8447
8917
|
var ITEM_SELECT = "menu.itemSelect";
|
|
8448
|
-
var MenuItem$2 =
|
|
8918
|
+
var MenuItem$2 = /* @__PURE__ */React__namespace.forwardRef(
|
|
8919
|
+
// blank line to reduce diff noise
|
|
8920
|
+
/* @__PURE__ */
|
|
8921
|
+
__name$1(function MenuItem2(props, forwardedRef) {
|
|
8449
8922
|
const _props$disabled = props.disabled,
|
|
8450
8923
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
8451
8924
|
onSelect = props.onSelect,
|
|
8452
8925
|
itemProps = _objectWithoutProperties__default["default"](props, _excluded6$1);
|
|
8453
8926
|
const ref = React__namespace.useRef(null);
|
|
8454
|
-
const rootContext = useMenuRootContext(ITEM_NAME
|
|
8455
|
-
const contentContext = useMenuContentContext(ITEM_NAME
|
|
8927
|
+
const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);
|
|
8928
|
+
const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);
|
|
8456
8929
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
8457
8930
|
const isPointerDownRef = React__namespace.useRef(false);
|
|
8458
|
-
const handleSelect = () => {
|
|
8931
|
+
const handleSelect = /* @__PURE__ */__name$1(() => {
|
|
8459
8932
|
const menuItem = ref.current;
|
|
8460
8933
|
if (!disabled && menuItem) {
|
|
8461
8934
|
const itemSelectEvent = new CustomEvent(ITEM_SELECT, {
|
|
@@ -8472,7 +8945,7 @@ var MenuItem$2 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
8472
8945
|
rootContext.onClose();
|
|
8473
8946
|
}
|
|
8474
8947
|
}
|
|
8475
|
-
};
|
|
8948
|
+
}, "handleSelect");
|
|
8476
8949
|
return /* @__PURE__ */React__namespace.createElement(MenuItemImpl, {
|
|
8477
8950
|
...itemProps,
|
|
8478
8951
|
ref: composedRefs,
|
|
@@ -8488,23 +8961,27 @@ var MenuItem$2 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef)
|
|
|
8488
8961
|
if (!isPointerDownRef.current) (_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 || _event$currentTarget.click();
|
|
8489
8962
|
}),
|
|
8490
8963
|
onKeyDown: composeEventHandlers(props.onKeyDown, event => {
|
|
8964
|
+
if (disabled || event.target !== event.currentTarget) {
|
|
8965
|
+
return;
|
|
8966
|
+
}
|
|
8491
8967
|
const isTypingAhead = contentContext.searchRef.current !== "";
|
|
8492
|
-
if (
|
|
8968
|
+
if (isTypingAhead && event.key === " ") {
|
|
8969
|
+
return;
|
|
8970
|
+
}
|
|
8493
8971
|
if (_includesInstanceProperty__default["default"](SELECTION_KEYS).call(SELECTION_KEYS, event.key)) {
|
|
8494
8972
|
event.currentTarget.click();
|
|
8495
8973
|
event.preventDefault();
|
|
8496
8974
|
}
|
|
8497
8975
|
})
|
|
8498
8976
|
});
|
|
8499
|
-
});
|
|
8500
|
-
|
|
8501
|
-
var MenuItemImpl = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
8977
|
+
}, "MenuItem"));
|
|
8978
|
+
var MenuItemImpl = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuItemImpl2(props, forwardedRef) {
|
|
8502
8979
|
const __scopeMenu = props.__scopeMenu,
|
|
8503
8980
|
_props$disabled2 = props.disabled,
|
|
8504
8981
|
disabled = _props$disabled2 === void 0 ? false : _props$disabled2,
|
|
8505
8982
|
textValue = props.textValue,
|
|
8506
8983
|
itemProps = _objectWithoutProperties__default["default"](props, _excluded7$1);
|
|
8507
|
-
const contentContext = useMenuContentContext(ITEM_NAME
|
|
8984
|
+
const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);
|
|
8508
8985
|
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
|
|
8509
8986
|
const ref = React__namespace.useRef(null);
|
|
8510
8987
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -8557,9 +9034,11 @@ var MenuItemImpl = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef
|
|
|
8557
9034
|
})
|
|
8558
9035
|
})
|
|
8559
9036
|
});
|
|
8560
|
-
});
|
|
8561
|
-
var
|
|
8562
|
-
|
|
9037
|
+
}, "MenuItemImpl"));
|
|
9038
|
+
var MenuCheckboxItem = /* @__PURE__ */React__namespace.forwardRef(
|
|
9039
|
+
// blank line to reduce diff noise
|
|
9040
|
+
/* @__PURE__ */
|
|
9041
|
+
__name$1(function MenuCheckboxItem2(props, forwardedRef) {
|
|
8563
9042
|
const _props$checked = props.checked,
|
|
8564
9043
|
checked = _props$checked === void 0 ? false : _props$checked,
|
|
8565
9044
|
onCheckedChange = props.onCheckedChange,
|
|
@@ -8578,17 +9057,16 @@ var MenuCheckboxItem = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
8578
9057
|
})
|
|
8579
9058
|
})
|
|
8580
9059
|
});
|
|
8581
|
-
});
|
|
8582
|
-
|
|
8583
|
-
var
|
|
8584
|
-
var _createMenuContext9 = createMenuContext(RADIO_GROUP_NAME$1, {
|
|
9060
|
+
}, "MenuCheckboxItem"));
|
|
9061
|
+
var RADIO_GROUP_NAME = "MenuRadioGroup";
|
|
9062
|
+
var _createMenuContext9 = createMenuContext(RADIO_GROUP_NAME, {
|
|
8585
9063
|
value: void 0,
|
|
8586
|
-
onValueChange: () => {}
|
|
9064
|
+
onValueChange: /* @__PURE__ */__name$1(() => {}, "onValueChange")
|
|
8587
9065
|
}),
|
|
8588
9066
|
_createMenuContext0 = _slicedToArray__default["default"](_createMenuContext9, 2),
|
|
8589
9067
|
RadioGroupProvider = _createMenuContext0[0],
|
|
8590
9068
|
useRadioGroupContext = _createMenuContext0[1];
|
|
8591
|
-
var MenuRadioGroup =
|
|
9069
|
+
var MenuRadioGroup = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuRadioGroup2(props, forwardedRef) {
|
|
8592
9070
|
const value = props.value,
|
|
8593
9071
|
onValueChange = props.onValueChange,
|
|
8594
9072
|
groupProps = _objectWithoutProperties__default["default"](props, _excluded9$1);
|
|
@@ -8602,13 +9080,12 @@ var MenuRadioGroup = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8602
9080
|
ref: forwardedRef
|
|
8603
9081
|
})
|
|
8604
9082
|
});
|
|
8605
|
-
});
|
|
8606
|
-
|
|
8607
|
-
var
|
|
8608
|
-
var MenuRadioItem = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9083
|
+
}, "MenuRadioGroup"));
|
|
9084
|
+
var RADIO_ITEM_NAME = "MenuRadioItem";
|
|
9085
|
+
var MenuRadioItem = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuRadioItem2(props, forwardedRef) {
|
|
8609
9086
|
const value = props.value,
|
|
8610
9087
|
radioItemProps = _objectWithoutProperties__default["default"](props, _excluded0$1);
|
|
8611
|
-
const context = useRadioGroupContext(RADIO_ITEM_NAME
|
|
9088
|
+
const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);
|
|
8612
9089
|
const checked = value === context.value;
|
|
8613
9090
|
return /* @__PURE__ */React__namespace.createElement(ItemIndicatorProvider, {
|
|
8614
9091
|
scope: props.__scopeMenu,
|
|
@@ -8627,8 +9104,7 @@ var MenuRadioItem = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
8627
9104
|
})
|
|
8628
9105
|
})
|
|
8629
9106
|
});
|
|
8630
|
-
});
|
|
8631
|
-
MenuRadioItem.displayName = RADIO_ITEM_NAME$1;
|
|
9107
|
+
}, "MenuRadioItem"));
|
|
8632
9108
|
var ITEM_INDICATOR_NAME = "MenuItemIndicator";
|
|
8633
9109
|
var _createMenuContext1 = createMenuContext(ITEM_INDICATOR_NAME, {
|
|
8634
9110
|
checked: false
|
|
@@ -8636,7 +9112,10 @@ var _createMenuContext1 = createMenuContext(ITEM_INDICATOR_NAME, {
|
|
|
8636
9112
|
_createMenuContext10 = _slicedToArray__default["default"](_createMenuContext1, 2),
|
|
8637
9113
|
ItemIndicatorProvider = _createMenuContext10[0],
|
|
8638
9114
|
useItemIndicatorContext = _createMenuContext10[1];
|
|
8639
|
-
var MenuItemIndicator =
|
|
9115
|
+
var MenuItemIndicator = /* @__PURE__ */React__namespace.forwardRef(
|
|
9116
|
+
// blank line to reduce diff noise
|
|
9117
|
+
/* @__PURE__ */
|
|
9118
|
+
__name$1(function MenuItemIndicator2(props, forwardedRef) {
|
|
8640
9119
|
const __scopeMenu = props.__scopeMenu,
|
|
8641
9120
|
forceMount = props.forceMount,
|
|
8642
9121
|
itemIndicatorProps = _objectWithoutProperties__default["default"](props, _excluded1$1);
|
|
@@ -8649,10 +9128,8 @@ var MenuItemIndicator = /*#__PURE__*/React__namespace.forwardRef((props, forward
|
|
|
8649
9128
|
"data-state": getCheckedState(indicatorContext.checked)
|
|
8650
9129
|
})
|
|
8651
9130
|
});
|
|
8652
|
-
});
|
|
8653
|
-
|
|
8654
|
-
var SEPARATOR_NAME$1 = "MenuSeparator";
|
|
8655
|
-
var MenuSeparator = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9131
|
+
}, "MenuItemIndicator"));
|
|
9132
|
+
var MenuSeparator = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuSeparator2(props, forwardedRef) {
|
|
8656
9133
|
const __scopeMenu = props.__scopeMenu,
|
|
8657
9134
|
separatorProps = _objectWithoutProperties__default["default"](props, _excluded10$1);
|
|
8658
9135
|
return /* @__PURE__ */React__namespace.createElement(Primitive.div, {
|
|
@@ -8661,10 +9138,8 @@ var MenuSeparator = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRe
|
|
|
8661
9138
|
...separatorProps,
|
|
8662
9139
|
ref: forwardedRef
|
|
8663
9140
|
});
|
|
8664
|
-
});
|
|
8665
|
-
|
|
8666
|
-
var ARROW_NAME$1 = "MenuArrow";
|
|
8667
|
-
var MenuArrow = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9141
|
+
}, "MenuSeparator"));
|
|
9142
|
+
var MenuArrow = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuArrow2(props, forwardedRef) {
|
|
8668
9143
|
const __scopeMenu = props.__scopeMenu,
|
|
8669
9144
|
arrowProps = _objectWithoutProperties__default["default"](props, _excluded11$1);
|
|
8670
9145
|
const popperScope = usePopperScope(__scopeMenu);
|
|
@@ -8673,14 +9148,13 @@ var MenuArrow = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) =
|
|
|
8673
9148
|
...arrowProps,
|
|
8674
9149
|
ref: forwardedRef
|
|
8675
9150
|
});
|
|
8676
|
-
});
|
|
8677
|
-
MenuArrow.displayName = ARROW_NAME$1;
|
|
9151
|
+
}, "MenuArrow"));
|
|
8678
9152
|
var SUB_NAME = "MenuSub";
|
|
8679
9153
|
var _createMenuContext11 = createMenuContext(SUB_NAME),
|
|
8680
9154
|
_createMenuContext12 = _slicedToArray__default["default"](_createMenuContext11, 2),
|
|
8681
9155
|
MenuSubProvider = _createMenuContext12[0],
|
|
8682
9156
|
useMenuSubContext = _createMenuContext12[1];
|
|
8683
|
-
var MenuSub = props => {
|
|
9157
|
+
var MenuSub = /* @__PURE__ */__name$1(props => {
|
|
8684
9158
|
const __scopeMenu = props.__scopeMenu,
|
|
8685
9159
|
children = props.children,
|
|
8686
9160
|
_props$open2 = props.open,
|
|
@@ -8719,14 +9193,13 @@ var MenuSub = props => {
|
|
|
8719
9193
|
})
|
|
8720
9194
|
})
|
|
8721
9195
|
});
|
|
8722
|
-
};
|
|
8723
|
-
|
|
8724
|
-
var
|
|
8725
|
-
|
|
8726
|
-
const
|
|
8727
|
-
const
|
|
8728
|
-
const
|
|
8729
|
-
const contentContext = useMenuContentContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
|
|
9196
|
+
}, "MenuSub");
|
|
9197
|
+
var SUB_TRIGGER_NAME = "MenuSubTrigger";
|
|
9198
|
+
var MenuSubTrigger = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuSubTrigger2(props, forwardedRef) {
|
|
9199
|
+
const context = useMenuContext$1(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
9200
|
+
const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
9201
|
+
const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
9202
|
+
const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
8730
9203
|
const openTimerRef = React__namespace.useRef(null);
|
|
8731
9204
|
const pointerGraceTimerRef = contentContext.pointerGraceTimerRef,
|
|
8732
9205
|
onPointerGraceIntentChange = contentContext.onPointerGraceIntentChange;
|
|
@@ -8745,6 +9218,7 @@ var MenuSubTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8745
9218
|
onPointerGraceIntentChange(null);
|
|
8746
9219
|
};
|
|
8747
9220
|
}, [pointerGraceTimerRef, onPointerGraceIntentChange]);
|
|
9221
|
+
const composedRefs = useComposedRefs(forwardedRef, subContext.onTriggerChange);
|
|
8748
9222
|
return /* @__PURE__ */React__namespace.createElement(MenuAnchor, {
|
|
8749
9223
|
asChild: true,
|
|
8750
9224
|
...scope,
|
|
@@ -8752,10 +9226,10 @@ var MenuSubTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8752
9226
|
id: subContext.triggerId,
|
|
8753
9227
|
"aria-haspopup": "menu",
|
|
8754
9228
|
"aria-expanded": context.open,
|
|
8755
|
-
"aria-controls": subContext.contentId,
|
|
9229
|
+
"aria-controls": context.open ? subContext.contentId : void 0,
|
|
8756
9230
|
"data-state": getOpenState(context.open),
|
|
8757
9231
|
...props,
|
|
8758
|
-
ref:
|
|
9232
|
+
ref: composedRefs,
|
|
8759
9233
|
onClick: event => {
|
|
8760
9234
|
var _props$onClick;
|
|
8761
9235
|
(_props$onClick = props.onClick) === null || _props$onClick === void 0 || _props$onClick.call(props, event);
|
|
@@ -8817,8 +9291,13 @@ var MenuSubTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8817
9291
|
})),
|
|
8818
9292
|
onKeyDown: composeEventHandlers(props.onKeyDown, event => {
|
|
8819
9293
|
var _context;
|
|
9294
|
+
if (props.disabled || event.target !== event.currentTarget) {
|
|
9295
|
+
return;
|
|
9296
|
+
}
|
|
8820
9297
|
const isTypingAhead = contentContext.searchRef.current !== "";
|
|
8821
|
-
if (
|
|
9298
|
+
if (isTypingAhead && event.key === " ") {
|
|
9299
|
+
return;
|
|
9300
|
+
}
|
|
8822
9301
|
if (_includesInstanceProperty__default["default"](_context = SUB_OPEN_KEYS[rootContext.dir]).call(_context, event.key)) {
|
|
8823
9302
|
var _context$content3;
|
|
8824
9303
|
context.onOpenChange(true);
|
|
@@ -8828,17 +9307,18 @@ var MenuSubTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8828
9307
|
})
|
|
8829
9308
|
})
|
|
8830
9309
|
});
|
|
8831
|
-
});
|
|
8832
|
-
|
|
8833
|
-
var
|
|
8834
|
-
var MenuSubContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9310
|
+
}, "MenuSubTrigger"));
|
|
9311
|
+
var SUB_CONTENT_NAME = "MenuSubContent";
|
|
9312
|
+
var MenuSubContent = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name$1(function MenuSubContent2(props, forwardedRef) {
|
|
8835
9313
|
const portalContext = usePortalContext(CONTENT_NAME$1, props.__scopeMenu);
|
|
8836
9314
|
const _props$forceMount2 = props.forceMount,
|
|
8837
9315
|
forceMount = _props$forceMount2 === void 0 ? portalContext.forceMount : _props$forceMount2,
|
|
9316
|
+
_props$align = props.align,
|
|
9317
|
+
align = _props$align === void 0 ? "start" : _props$align,
|
|
8838
9318
|
subContentProps = _objectWithoutProperties__default["default"](props, _excluded12$1);
|
|
8839
9319
|
const context = useMenuContext$1(CONTENT_NAME$1, props.__scopeMenu);
|
|
8840
9320
|
const rootContext = useMenuRootContext(CONTENT_NAME$1, props.__scopeMenu);
|
|
8841
|
-
const subContext = useMenuSubContext(SUB_CONTENT_NAME
|
|
9321
|
+
const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);
|
|
8842
9322
|
const ref = React__namespace.useRef(null);
|
|
8843
9323
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
8844
9324
|
return /* @__PURE__ */React__namespace.createElement(Collection.Provider, {
|
|
@@ -8852,7 +9332,7 @@ var MenuSubContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8852
9332
|
"aria-labelledby": subContext.triggerId,
|
|
8853
9333
|
...subContentProps,
|
|
8854
9334
|
ref: composedRefs,
|
|
8855
|
-
align
|
|
9335
|
+
align,
|
|
8856
9336
|
side: rootContext.dir === "rtl" ? "left" : "right",
|
|
8857
9337
|
disableOutsidePointerEvents: false,
|
|
8858
9338
|
disableOutsideScroll: false,
|
|
@@ -8885,17 +9365,19 @@ var MenuSubContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8885
9365
|
})
|
|
8886
9366
|
})
|
|
8887
9367
|
});
|
|
8888
|
-
});
|
|
8889
|
-
MenuSubContent.displayName = SUB_CONTENT_NAME$1;
|
|
9368
|
+
}, "MenuSubContent"));
|
|
8890
9369
|
function getOpenState(open) {
|
|
8891
9370
|
return open ? "open" : "closed";
|
|
8892
9371
|
}
|
|
9372
|
+
__name$1(getOpenState, "getOpenState");
|
|
8893
9373
|
function isIndeterminate(checked) {
|
|
8894
9374
|
return checked === "indeterminate";
|
|
8895
9375
|
}
|
|
9376
|
+
__name$1(isIndeterminate, "isIndeterminate");
|
|
8896
9377
|
function getCheckedState(checked) {
|
|
8897
9378
|
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
8898
9379
|
}
|
|
9380
|
+
__name$1(getCheckedState, "getCheckedState");
|
|
8899
9381
|
function focusFirst(candidates) {
|
|
8900
9382
|
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
8901
9383
|
for (const candidate of candidates) {
|
|
@@ -8904,9 +9386,11 @@ function focusFirst(candidates) {
|
|
|
8904
9386
|
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
8905
9387
|
}
|
|
8906
9388
|
}
|
|
9389
|
+
__name$1(focusFirst, "focusFirst");
|
|
8907
9390
|
function wrapArray(array, startIndex) {
|
|
8908
9391
|
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
8909
9392
|
}
|
|
9393
|
+
__name$1(wrapArray, "wrapArray");
|
|
8910
9394
|
function getNextMatch(values, search, currentMatch) {
|
|
8911
9395
|
const isRepeated = search.length > 1 && Array.from(search).every(char => char === search[0]);
|
|
8912
9396
|
const normalizedSearch = isRepeated ? search[0] : search;
|
|
@@ -8917,6 +9401,7 @@ function getNextMatch(values, search, currentMatch) {
|
|
|
8917
9401
|
const nextMatch = wrappedValues.find(value => value.toLowerCase().startsWith(normalizedSearch.toLowerCase()));
|
|
8918
9402
|
return nextMatch !== currentMatch ? nextMatch : void 0;
|
|
8919
9403
|
}
|
|
9404
|
+
__name$1(getNextMatch, "getNextMatch");
|
|
8920
9405
|
function isPointInPolygon(point, polygon) {
|
|
8921
9406
|
const x = point.x,
|
|
8922
9407
|
y = point.y;
|
|
@@ -8933,6 +9418,7 @@ function isPointInPolygon(point, polygon) {
|
|
|
8933
9418
|
}
|
|
8934
9419
|
return inside;
|
|
8935
9420
|
}
|
|
9421
|
+
__name$1(isPointInPolygon, "isPointInPolygon");
|
|
8936
9422
|
function isPointerInGraceArea(event, area) {
|
|
8937
9423
|
if (!area) return false;
|
|
8938
9424
|
const cursorPos = {
|
|
@@ -8941,9 +9427,11 @@ function isPointerInGraceArea(event, area) {
|
|
|
8941
9427
|
};
|
|
8942
9428
|
return isPointInPolygon(cursorPos, area);
|
|
8943
9429
|
}
|
|
9430
|
+
__name$1(isPointerInGraceArea, "isPointerInGraceArea");
|
|
8944
9431
|
function whenMouse(handler) {
|
|
8945
9432
|
return event => event.pointerType === "mouse" ? handler(event) : void 0;
|
|
8946
9433
|
}
|
|
9434
|
+
__name$1(whenMouse, "whenMouse");
|
|
8947
9435
|
var Root3 = Menu$1;
|
|
8948
9436
|
var Anchor2 = MenuAnchor;
|
|
8949
9437
|
var Portal = MenuPortal;
|
|
@@ -8976,6 +9464,11 @@ const _excluded$d = ["__scopeDropdownMenu", "disabled"],
|
|
|
8976
9464
|
_excluded10 = ["__scopeDropdownMenu"],
|
|
8977
9465
|
_excluded11 = ["__scopeDropdownMenu"],
|
|
8978
9466
|
_excluded12 = ["__scopeDropdownMenu"];
|
|
9467
|
+
var __defProp = Object.defineProperty;
|
|
9468
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
9469
|
+
value,
|
|
9470
|
+
configurable: true
|
|
9471
|
+
});
|
|
8979
9472
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
8980
9473
|
var _createContextScope = createContextScope(DROPDOWN_MENU_NAME, [createMenuScope]),
|
|
8981
9474
|
_createContextScope2 = _slicedToArray__default["default"](_createContextScope, 2),
|
|
@@ -8986,7 +9479,7 @@ var _createDropdownMenuCo = createDropdownMenuContext(DROPDOWN_MENU_NAME),
|
|
|
8986
9479
|
_createDropdownMenuCo2 = _slicedToArray__default["default"](_createDropdownMenuCo, 2),
|
|
8987
9480
|
DropdownMenuProvider = _createDropdownMenuCo2[0],
|
|
8988
9481
|
useDropdownMenuContext = _createDropdownMenuCo2[1];
|
|
8989
|
-
var DropdownMenu = props => {
|
|
9482
|
+
var DropdownMenu = /* @__PURE__ */__name(props => {
|
|
8990
9483
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
8991
9484
|
children = props.children,
|
|
8992
9485
|
dir = props.dir,
|
|
@@ -9024,16 +9517,19 @@ var DropdownMenu = props => {
|
|
|
9024
9517
|
children
|
|
9025
9518
|
})
|
|
9026
9519
|
});
|
|
9027
|
-
};
|
|
9028
|
-
DropdownMenu.displayName = DROPDOWN_MENU_NAME;
|
|
9520
|
+
}, "DropdownMenu");
|
|
9029
9521
|
var TRIGGER_NAME = "DropdownMenuTrigger";
|
|
9030
|
-
var DropdownMenuTrigger =
|
|
9522
|
+
var DropdownMenuTrigger = /* @__PURE__ */React__namespace.forwardRef(
|
|
9523
|
+
// blank line to reduce diff noise
|
|
9524
|
+
/* @__PURE__ */
|
|
9525
|
+
__name(function DropdownMenuTrigger2(props, forwardedRef) {
|
|
9031
9526
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9032
9527
|
_props$disabled = props.disabled,
|
|
9033
9528
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
9034
9529
|
triggerProps = _objectWithoutProperties__default["default"](props, _excluded$d);
|
|
9035
9530
|
const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
|
|
9036
9531
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
9532
|
+
const composedRefs = useComposedRefs(forwardedRef, context.triggerRef);
|
|
9037
9533
|
return /* @__PURE__ */React__namespace.createElement(Anchor2, {
|
|
9038
9534
|
asChild: true,
|
|
9039
9535
|
...menuScope,
|
|
@@ -9047,7 +9543,7 @@ var DropdownMenuTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwa
|
|
|
9047
9543
|
"data-disabled": disabled ? "" : void 0,
|
|
9048
9544
|
disabled,
|
|
9049
9545
|
...triggerProps,
|
|
9050
|
-
ref:
|
|
9546
|
+
ref: composedRefs,
|
|
9051
9547
|
onPointerDown: composeEventHandlers(props.onPointerDown, event => {
|
|
9052
9548
|
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
|
9053
9549
|
context.onOpenToggle();
|
|
@@ -9063,10 +9559,8 @@ var DropdownMenuTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwa
|
|
|
9063
9559
|
})
|
|
9064
9560
|
})
|
|
9065
9561
|
});
|
|
9066
|
-
});
|
|
9067
|
-
|
|
9068
|
-
var PORTAL_NAME = "DropdownMenuPortal";
|
|
9069
|
-
var DropdownMenuPortal = props => {
|
|
9562
|
+
}, "DropdownMenuTrigger"));
|
|
9563
|
+
var DropdownMenuPortal = /* @__PURE__ */__name(props => {
|
|
9070
9564
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9071
9565
|
portalProps = _objectWithoutProperties__default["default"](props, _excluded2$1);
|
|
9072
9566
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9074,10 +9568,12 @@ var DropdownMenuPortal = props => {
|
|
|
9074
9568
|
...menuScope,
|
|
9075
9569
|
...portalProps
|
|
9076
9570
|
});
|
|
9077
|
-
};
|
|
9078
|
-
DropdownMenuPortal.displayName = PORTAL_NAME;
|
|
9571
|
+
}, "DropdownMenuPortal");
|
|
9079
9572
|
var CONTENT_NAME = "DropdownMenuContent";
|
|
9080
|
-
var DropdownMenuContent =
|
|
9573
|
+
var DropdownMenuContent = /* @__PURE__ */React__namespace.forwardRef(
|
|
9574
|
+
// blank line to reduce diff noise
|
|
9575
|
+
/* @__PURE__ */
|
|
9576
|
+
__name(function DropdownMenuContent2(props, forwardedRef) {
|
|
9081
9577
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9082
9578
|
contentProps = _objectWithoutProperties__default["default"](props, _excluded3);
|
|
9083
9579
|
const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);
|
|
@@ -9113,10 +9609,11 @@ var DropdownMenuContent = /*#__PURE__*/React__namespace.forwardRef((props, forwa
|
|
|
9113
9609
|
}
|
|
9114
9610
|
}
|
|
9115
9611
|
});
|
|
9116
|
-
});
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9612
|
+
}, "DropdownMenuContent"));
|
|
9613
|
+
var DropdownMenuGroup = /* @__PURE__ */React__namespace.forwardRef(
|
|
9614
|
+
// blank line to reduce diff noise
|
|
9615
|
+
/* @__PURE__ */
|
|
9616
|
+
__name(function DropdownMenuGroup2(props, forwardedRef) {
|
|
9120
9617
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9121
9618
|
groupProps = _objectWithoutProperties__default["default"](props, _excluded4);
|
|
9122
9619
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9125,10 +9622,11 @@ var DropdownMenuGroup = /*#__PURE__*/React__namespace.forwardRef((props, forward
|
|
|
9125
9622
|
...groupProps,
|
|
9126
9623
|
ref: forwardedRef
|
|
9127
9624
|
});
|
|
9128
|
-
});
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9625
|
+
}, "DropdownMenuGroup"));
|
|
9626
|
+
var DropdownMenuLabel = /* @__PURE__ */React__namespace.forwardRef(
|
|
9627
|
+
// blank line to reduce diff noise
|
|
9628
|
+
/* @__PURE__ */
|
|
9629
|
+
__name(function DropdownMenuLabel2(props, forwardedRef) {
|
|
9132
9630
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9133
9631
|
labelProps = _objectWithoutProperties__default["default"](props, _excluded5);
|
|
9134
9632
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9137,10 +9635,11 @@ var DropdownMenuLabel = /*#__PURE__*/React__namespace.forwardRef((props, forward
|
|
|
9137
9635
|
...labelProps,
|
|
9138
9636
|
ref: forwardedRef
|
|
9139
9637
|
});
|
|
9140
|
-
});
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9638
|
+
}, "DropdownMenuLabel"));
|
|
9639
|
+
var DropdownMenuItem = /* @__PURE__ */React__namespace.forwardRef(
|
|
9640
|
+
// blank line to reduce diff noise
|
|
9641
|
+
/* @__PURE__ */
|
|
9642
|
+
__name(function DropdownMenuItem2(props, forwardedRef) {
|
|
9144
9643
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9145
9644
|
itemProps = _objectWithoutProperties__default["default"](props, _excluded6);
|
|
9146
9645
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9149,10 +9648,8 @@ var DropdownMenuItem = /*#__PURE__*/React__namespace.forwardRef((props, forwarde
|
|
|
9149
9648
|
...itemProps,
|
|
9150
9649
|
ref: forwardedRef
|
|
9151
9650
|
});
|
|
9152
|
-
});
|
|
9153
|
-
|
|
9154
|
-
var CHECKBOX_ITEM_NAME = "DropdownMenuCheckboxItem";
|
|
9155
|
-
var DropdownMenuCheckboxItem = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9651
|
+
}, "DropdownMenuItem"));
|
|
9652
|
+
var DropdownMenuCheckboxItem = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuCheckboxItem2(props, forwardedRef) {
|
|
9156
9653
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9157
9654
|
checkboxItemProps = _objectWithoutProperties__default["default"](props, _excluded7);
|
|
9158
9655
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9161,10 +9658,8 @@ var DropdownMenuCheckboxItem = /*#__PURE__*/React__namespace.forwardRef((props,
|
|
|
9161
9658
|
...checkboxItemProps,
|
|
9162
9659
|
ref: forwardedRef
|
|
9163
9660
|
});
|
|
9164
|
-
});
|
|
9165
|
-
|
|
9166
|
-
var RADIO_GROUP_NAME = "DropdownMenuRadioGroup";
|
|
9167
|
-
var DropdownMenuRadioGroup = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9661
|
+
}, "DropdownMenuCheckboxItem"));
|
|
9662
|
+
var DropdownMenuRadioGroup = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuRadioGroup2(props, forwardedRef) {
|
|
9168
9663
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9169
9664
|
radioGroupProps = _objectWithoutProperties__default["default"](props, _excluded8);
|
|
9170
9665
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9173,10 +9668,8 @@ var DropdownMenuRadioGroup = /*#__PURE__*/React__namespace.forwardRef((props, fo
|
|
|
9173
9668
|
...radioGroupProps,
|
|
9174
9669
|
ref: forwardedRef
|
|
9175
9670
|
});
|
|
9176
|
-
});
|
|
9177
|
-
|
|
9178
|
-
var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
|
|
9179
|
-
var DropdownMenuRadioItem = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9671
|
+
}, "DropdownMenuRadioGroup"));
|
|
9672
|
+
var DropdownMenuRadioItem = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuRadioItem2(props, forwardedRef) {
|
|
9180
9673
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9181
9674
|
radioItemProps = _objectWithoutProperties__default["default"](props, _excluded9);
|
|
9182
9675
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9185,10 +9678,8 @@ var DropdownMenuRadioItem = /*#__PURE__*/React__namespace.forwardRef((props, for
|
|
|
9185
9678
|
...radioItemProps,
|
|
9186
9679
|
ref: forwardedRef
|
|
9187
9680
|
});
|
|
9188
|
-
});
|
|
9189
|
-
|
|
9190
|
-
var INDICATOR_NAME = "DropdownMenuItemIndicator";
|
|
9191
|
-
var DropdownMenuItemIndicator = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9681
|
+
}, "DropdownMenuRadioItem"));
|
|
9682
|
+
var DropdownMenuItemIndicator = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuItemIndicator2(props, forwardedRef) {
|
|
9192
9683
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9193
9684
|
itemIndicatorProps = _objectWithoutProperties__default["default"](props, _excluded0);
|
|
9194
9685
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9197,10 +9688,8 @@ var DropdownMenuItemIndicator = /*#__PURE__*/React__namespace.forwardRef((props,
|
|
|
9197
9688
|
...itemIndicatorProps,
|
|
9198
9689
|
ref: forwardedRef
|
|
9199
9690
|
});
|
|
9200
|
-
});
|
|
9201
|
-
|
|
9202
|
-
var SEPARATOR_NAME = "DropdownMenuSeparator";
|
|
9203
|
-
var DropdownMenuSeparator = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9691
|
+
}, "DropdownMenuItemIndicator"));
|
|
9692
|
+
var DropdownMenuSeparator = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuSeparator2(props, forwardedRef) {
|
|
9204
9693
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9205
9694
|
separatorProps = _objectWithoutProperties__default["default"](props, _excluded1);
|
|
9206
9695
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9209,10 +9698,11 @@ var DropdownMenuSeparator = /*#__PURE__*/React__namespace.forwardRef((props, for
|
|
|
9209
9698
|
...separatorProps,
|
|
9210
9699
|
ref: forwardedRef
|
|
9211
9700
|
});
|
|
9212
|
-
});
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9701
|
+
}, "DropdownMenuSeparator"));
|
|
9702
|
+
var DropdownMenuArrow = /* @__PURE__ */React__namespace.forwardRef(
|
|
9703
|
+
// blank line to reduce diff noise
|
|
9704
|
+
/* @__PURE__ */
|
|
9705
|
+
__name(function DropdownMenuArrow2(props, forwardedRef) {
|
|
9216
9706
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9217
9707
|
arrowProps = _objectWithoutProperties__default["default"](props, _excluded10);
|
|
9218
9708
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9221,9 +9711,8 @@ var DropdownMenuArrow = /*#__PURE__*/React__namespace.forwardRef((props, forward
|
|
|
9221
9711
|
...arrowProps,
|
|
9222
9712
|
ref: forwardedRef
|
|
9223
9713
|
});
|
|
9224
|
-
});
|
|
9225
|
-
|
|
9226
|
-
var DropdownMenuSub = props => {
|
|
9714
|
+
}, "DropdownMenuArrow"));
|
|
9715
|
+
var DropdownMenuSub = /* @__PURE__ */__name(props => {
|
|
9227
9716
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9228
9717
|
children = props.children,
|
|
9229
9718
|
openProp = props.open,
|
|
@@ -9245,9 +9734,8 @@ var DropdownMenuSub = props => {
|
|
|
9245
9734
|
onOpenChange: setOpen,
|
|
9246
9735
|
children
|
|
9247
9736
|
});
|
|
9248
|
-
};
|
|
9249
|
-
var
|
|
9250
|
-
var DropdownMenuSubTrigger = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9737
|
+
}, "DropdownMenuSub");
|
|
9738
|
+
var DropdownMenuSubTrigger = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuSubTrigger2(props, forwardedRef) {
|
|
9251
9739
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9252
9740
|
subTriggerProps = _objectWithoutProperties__default["default"](props, _excluded11);
|
|
9253
9741
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9256,10 +9744,8 @@ var DropdownMenuSubTrigger = /*#__PURE__*/React__namespace.forwardRef((props, fo
|
|
|
9256
9744
|
...subTriggerProps,
|
|
9257
9745
|
ref: forwardedRef
|
|
9258
9746
|
});
|
|
9259
|
-
});
|
|
9260
|
-
|
|
9261
|
-
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
|
9262
|
-
var DropdownMenuSubContent = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
9747
|
+
}, "DropdownMenuSubTrigger"));
|
|
9748
|
+
var DropdownMenuSubContent = /* @__PURE__ */React__namespace.forwardRef(/* @__PURE__ */__name(function DropdownMenuSubContent2(props, forwardedRef) {
|
|
9263
9749
|
const __scopeDropdownMenu = props.__scopeDropdownMenu,
|
|
9264
9750
|
subContentProps = _objectWithoutProperties__default["default"](props, _excluded12);
|
|
9265
9751
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -9279,8 +9765,7 @@ var DropdownMenuSubContent = /*#__PURE__*/React__namespace.forwardRef((props, fo
|
|
|
9279
9765
|
}
|
|
9280
9766
|
}
|
|
9281
9767
|
});
|
|
9282
|
-
});
|
|
9283
|
-
DropdownMenuSubContent.displayName = SUB_CONTENT_NAME;
|
|
9768
|
+
}, "DropdownMenuSubContent"));
|
|
9284
9769
|
var Root2 = DropdownMenu;
|
|
9285
9770
|
var Trigger = DropdownMenuTrigger;
|
|
9286
9771
|
var Portal2 = DropdownMenuPortal;
|
|
@@ -9437,9 +9922,9 @@ class PointerEvent extends Event {
|
|
|
9437
9922
|
}
|
|
9438
9923
|
}
|
|
9439
9924
|
|
|
9440
|
-
var css_248z$d = ".
|
|
9441
|
-
var styles$7 = {"buttonContainer":"
|
|
9442
|
-
var stylesheet$d=".
|
|
9925
|
+
var css_248z$d = "._gS020{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._gS020>._AQL6P{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}._gS020>._AQL6P:hover:not([aria-disabled=true]){background-color:#f5f5f5}._gS020>._AQL6P:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._gS020>._AQL6P+._x-MFQ{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._gS020>._AQL6P[data-state=open]+._x-MFQ{transform:rotate(-180deg) translateY(50%)}._gS020>._AQL6P[aria-disabled=true]{color:#74777a;cursor:not-allowed}._gS020>._AQL6P[aria-disabled=true]+._x-MFQ{fill:#515559;opacity:.4}._NQKby>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;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}._NQKby>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._w4y0t{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)}._w4y0t ._Sb7Rw{height:100%;overflow-y:scroll}._w4y0t._cKgNz{margin-left:30px;opacity:0}._w4y0t._t44MD{margin-left:-30px}._-QsDx{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%}._-QsDx._Q-Vvy{cursor:unset}._-QsDx ._olMLr{fill:#32363a;margin-right:4px}._-QsDx:focus,._-QsDx:hover:not(._-QsDx._Q-Vvy){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._-QsDx[aria-disabled=true]{cursor:not-allowed;opacity:.65}._-QsDx._c6yCk{padding-right:32px}._-QsDx._c6yCk ._x-MFQ{position:absolute;height:100%;right:3px;fill:#515559}._-QsDx._Ej8LH{pointer-events:none}._Fq0cB{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._Fq0cB._Ne46C{padding-top:52px}._L90TJ{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._-yeJJ{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._-yeJJ._t44MD{opacity:0}._-yeJJ._t44MD>._igase{margin-left:-30px}._-yeJJ._cKgNz{opacity:0}._-yeJJ._cKgNz>._igase{margin-left:30px}._-yeJJ>._igase{transition:margin-left .35s;width:100%}._-yeJJ._Ej8LH{pointer-events:none}body.keyboard-user ._-QsDx:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
9926
|
+
var styles$7 = {"buttonContainer":"_gS020","button":"_AQL6P","rightIcon":"_x-MFQ","maskContainer":"_NQKby","flyout":"_w4y0t","scrollContainer":"_Sb7Rw","animatedRight":"_cKgNz","animatedLeft":"_t44MD","menuItem":"_-QsDx","noItems":"_Q-Vvy","backIcon":"_olMLr","subMenu":"_c6yCk","unresponsive":"_Ej8LH","stickyBox":"_Fq0cB","isSearchable":"_Ne46C","searchBoxesContainer":"_L90TJ","searchBox":"_-yeJJ","searchInput":"_igase"};
|
|
9927
|
+
var stylesheet$d="._gS020{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._gS020>._AQL6P{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}._gS020>._AQL6P:hover:not([aria-disabled=true]){background-color:#f5f5f5}._gS020>._AQL6P:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._gS020>._AQL6P+._x-MFQ{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._gS020>._AQL6P[data-state=open]+._x-MFQ{transform:rotate(-180deg) translateY(50%)}._gS020>._AQL6P[aria-disabled=true]{color:#74777a;cursor:not-allowed}._gS020>._AQL6P[aria-disabled=true]+._x-MFQ{fill:#515559;opacity:.4}._NQKby>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;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}._NQKby>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._w4y0t{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)}._w4y0t ._Sb7Rw{height:100%;overflow-y:scroll}._w4y0t._cKgNz{margin-left:30px;opacity:0}._w4y0t._t44MD{margin-left:-30px}._-QsDx{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%}._-QsDx._Q-Vvy{cursor:unset}._-QsDx ._olMLr{fill:#32363a;margin-right:4px}._-QsDx:focus,._-QsDx:hover:not(._-QsDx._Q-Vvy){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._-QsDx[aria-disabled=true]{cursor:not-allowed;opacity:.65}._-QsDx._c6yCk{padding-right:32px}._-QsDx._c6yCk ._x-MFQ{position:absolute;height:100%;right:3px;fill:#515559}._-QsDx._Ej8LH{pointer-events:none}._Fq0cB{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._Fq0cB._Ne46C{padding-top:52px}._L90TJ{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._-yeJJ{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._-yeJJ._t44MD{opacity:0}._-yeJJ._t44MD>._igase{margin-left:-30px}._-yeJJ._cKgNz{opacity:0}._-yeJJ._cKgNz>._igase{margin-left:30px}._-yeJJ>._igase{transition:margin-left .35s;width:100%}._-yeJJ._Ej8LH{pointer-events:none}body.keyboard-user ._-QsDx:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
9443
9928
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$d);}
|
|
9444
9929
|
|
|
9445
9930
|
/* eslint-disable import/prefer-default-export */
|
|
@@ -9495,6 +9980,7 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref
|
|
|
9495
9980
|
rootDataTestId = _useMenuContext.dataTestId,
|
|
9496
9981
|
isDisabled = _useMenuContext.isDisabled,
|
|
9497
9982
|
triggerRef = _useMenuContext.triggerRef;
|
|
9983
|
+
const mergedRef = React.useMemo(() => index.mergeRefs(triggerRef, ref), [triggerRef, ref]);
|
|
9498
9984
|
const isTruncated = index.useIsTruncated(triggerRef);
|
|
9499
9985
|
const withinSelect = useSelectContext(true) !== null;
|
|
9500
9986
|
|
|
@@ -9513,7 +9999,7 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref
|
|
|
9513
9999
|
[styles$7.button]: !asChild
|
|
9514
10000
|
}),
|
|
9515
10001
|
asChild: asChild,
|
|
9516
|
-
ref:
|
|
10002
|
+
ref: mergedRef,
|
|
9517
10003
|
"data-testid": index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BUTTON : index.DATA_TESTID_SUFFIXES.MENU_BUTTON),
|
|
9518
10004
|
onPointerDown: handlePointerDown
|
|
9519
10005
|
}), children), !asChild && /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
@@ -9892,9 +10378,9 @@ const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
9892
10378
|
});
|
|
9893
10379
|
SubSelect.displayName = 'SubSelect';
|
|
9894
10380
|
|
|
9895
|
-
var css_248z$c = ".
|
|
9896
|
-
var styles$6 = {"isInvalid":"
|
|
9897
|
-
var stylesheet$c=".
|
|
10381
|
+
var css_248z$c = "._nS9FO{box-shadow:inset 0 0 0 1px #b00!important}._GbKYb{margin-right:7px}._Mt7Vb{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
10382
|
+
var styles$6 = {"isInvalid":"_nS9FO","checkbox":"_GbKYb","selectedItem":"_Mt7Vb"};
|
|
10383
|
+
var stylesheet$c="._nS9FO{box-shadow:inset 0 0 0 1px #b00!important}._GbKYb{margin-right:7px}._Mt7Vb{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
9898
10384
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$c);}
|
|
9899
10385
|
|
|
9900
10386
|
const _excluded$a = ["isDisabled", "label", "value", "children", "className"];
|
|
@@ -9988,6 +10474,17 @@ const PaneChildren = _ref => {
|
|
|
9988
10474
|
setIsVirtualizationReady = _usePaneContext.setIsVirtualizationReady,
|
|
9989
10475
|
isVirtualized = _usePaneContext.isVirtualized;
|
|
9990
10476
|
const containerRef = React.useRef(null);
|
|
10477
|
+
const virtualIndexOffset = multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0;
|
|
10478
|
+
|
|
10479
|
+
// Virtuoso republishes every prop that changes identity, so keep them
|
|
10480
|
+
// stable to avoid feeding extra synchronous renders back into the pane.
|
|
10481
|
+
const data = React.useMemo(() => Array.isArray(children) ? children : [children], [children]);
|
|
10482
|
+
const startReached = React.useCallback(() => setIsVirtualizationReady === null || setIsVirtualizationReady === void 0 ? void 0 : setIsVirtualizationReady(true), [setIsVirtualizationReady]);
|
|
10483
|
+
const itemContent = React.useCallback((index, child) => ! /*#__PURE__*/React__default["default"].isValidElement(child) ? null : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
10484
|
+
value: {
|
|
10485
|
+
virtualIndex: index + virtualIndexOffset
|
|
10486
|
+
}
|
|
10487
|
+
}, child), [virtualIndexOffset]);
|
|
9991
10488
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9992
10489
|
ref: containerRef,
|
|
9993
10490
|
className: styles$7.scrollContainer,
|
|
@@ -9996,16 +10493,10 @@ const PaneChildren = _ref => {
|
|
|
9996
10493
|
}
|
|
9997
10494
|
}, isVirtualized ? /*#__PURE__*/React__default["default"].createElement(reactVirtuoso.Virtuoso, _extends__default["default"]({
|
|
9998
10495
|
ref: virtuoso,
|
|
9999
|
-
startReached:
|
|
10496
|
+
startReached: startReached,
|
|
10000
10497
|
customScrollParent: (_containerRef$current2 = containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : undefined,
|
|
10001
|
-
data:
|
|
10002
|
-
|
|
10003
|
-
,
|
|
10004
|
-
itemContent: (index, child) => ! /*#__PURE__*/React__default["default"].isValidElement(child) ? null : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
10005
|
-
value: {
|
|
10006
|
-
virtualIndex: index + (multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0)
|
|
10007
|
-
}
|
|
10008
|
-
}, child)
|
|
10498
|
+
data: data,
|
|
10499
|
+
itemContent: itemContent
|
|
10009
10500
|
}, index.VIRTUOSO_PROPS)) : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
10010
10501
|
value: {
|
|
10011
10502
|
virtualIndex: undefined
|
|
@@ -10068,6 +10559,50 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children, isVirtuali
|
|
|
10068
10559
|
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);
|
|
10069
10560
|
};
|
|
10070
10561
|
|
|
10562
|
+
/**
|
|
10563
|
+
* Tracks the pane's DOM node in state via a stable callback ref.
|
|
10564
|
+
*
|
|
10565
|
+
* Several Radix primitives the content is rendered through (Popper,
|
|
10566
|
+
* DismissableLayer, FocusScope) compose our ref with an inline arrow, so the
|
|
10567
|
+
* composed ref changes identity on every render. React then detaches
|
|
10568
|
+
* (`null`) and re-attaches (same node) the ref within a single commit.
|
|
10569
|
+
*
|
|
10570
|
+
* Calling `setState` for that churn schedules a synchronous re-render of the
|
|
10571
|
+
* pane. React cannot bail out of it while the pane has other pending updates
|
|
10572
|
+
* (e.g. descendant registration from a virtualized list), and re-rendering the
|
|
10573
|
+
* pane re-renders the Radix content, which churns the ref again — React throws
|
|
10574
|
+
* "Maximum update depth exceeded" (HOME-5488).
|
|
10575
|
+
*
|
|
10576
|
+
* To break the cycle, state is only updated when the node actually changes:
|
|
10577
|
+
* re-attaching the same node is ignored, and a `null` is only committed if the
|
|
10578
|
+
* ref is still detached once the current commit has finished.
|
|
10579
|
+
*/
|
|
10580
|
+
const useFlyoutNode = () => {
|
|
10581
|
+
const _useState = React.useState(null),
|
|
10582
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
10583
|
+
node = _useState2[0],
|
|
10584
|
+
setNode = _useState2[1];
|
|
10585
|
+
const latestNodeRef = React.useRef(null);
|
|
10586
|
+
const storedNodeRef = React.useRef(null);
|
|
10587
|
+
const ref = React.useCallback(nextNode => {
|
|
10588
|
+
latestNodeRef.current = nextNode;
|
|
10589
|
+
if (nextNode) {
|
|
10590
|
+
if (nextNode !== storedNodeRef.current) {
|
|
10591
|
+
storedNodeRef.current = nextNode;
|
|
10592
|
+
setNode(nextNode);
|
|
10593
|
+
}
|
|
10594
|
+
return;
|
|
10595
|
+
}
|
|
10596
|
+
queueMicrotask(() => {
|
|
10597
|
+
if (latestNodeRef.current === null && storedNodeRef.current !== null) {
|
|
10598
|
+
storedNodeRef.current = null;
|
|
10599
|
+
setNode(null);
|
|
10600
|
+
}
|
|
10601
|
+
});
|
|
10602
|
+
}, []);
|
|
10603
|
+
return [node, ref];
|
|
10604
|
+
};
|
|
10605
|
+
|
|
10071
10606
|
const _excluded$9 = ["placement", "children", "isSearchable", "searchValue", "onSearchValueChange", "isSearchFilteringDisabled", "className", "zIndex", "disableScrollLock", "style"],
|
|
10072
10607
|
_excluded2 = ["id"];
|
|
10073
10608
|
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -10090,11 +10625,11 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
10090
10625
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
10091
10626
|
items = _useState2[0],
|
|
10092
10627
|
setItems = _useState2[1];
|
|
10093
|
-
const
|
|
10094
|
-
|
|
10095
|
-
flyoutNode =
|
|
10096
|
-
|
|
10097
|
-
const
|
|
10628
|
+
const _useFlyoutNode = useFlyoutNode(),
|
|
10629
|
+
_useFlyoutNode2 = _slicedToArray__default["default"](_useFlyoutNode, 2),
|
|
10630
|
+
flyoutNode = _useFlyoutNode2[0],
|
|
10631
|
+
onRefChange = _useFlyoutNode2[1];
|
|
10632
|
+
const contentRef = React.useMemo(() => index.mergeRefs(ref, onRefChange), [ref, onRefChange]);
|
|
10098
10633
|
const stickyBoxRef = React.useRef(null);
|
|
10099
10634
|
const selectContext = useSelectContext(true);
|
|
10100
10635
|
const withinSelect = selectContext !== null;
|
|
@@ -10152,10 +10687,10 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
10152
10687
|
const paneBottomPadding = 4;
|
|
10153
10688
|
const maskContainerId = index.useId();
|
|
10154
10689
|
const maskContainer = document.getElementById(maskContainerId);
|
|
10155
|
-
const
|
|
10156
|
-
|
|
10157
|
-
transform =
|
|
10158
|
-
setTransform =
|
|
10690
|
+
const _useState3 = React.useState(''),
|
|
10691
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
10692
|
+
transform = _useState4[0],
|
|
10693
|
+
setTransform = _useState4[1];
|
|
10159
10694
|
const target = (_flyoutNode$parentNod = flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.parentNode) !== null && _flyoutNode$parentNod !== void 0 ? _flyoutNode$parentNod : undefined;
|
|
10160
10695
|
const _useMenuContext = useMenuContext(),
|
|
10161
10696
|
rootDataTestId = _useMenuContext.dataTestId,
|
|
@@ -10168,10 +10703,10 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
10168
10703
|
maskWidth = _useMenuContext.maskWidth,
|
|
10169
10704
|
isVirtualizationDisabled = _useMenuContext.isVirtualizationDisabled;
|
|
10170
10705
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
10171
|
-
const
|
|
10172
|
-
|
|
10173
|
-
isVirtualizationReady =
|
|
10174
|
-
setIsVirtualizationReady =
|
|
10706
|
+
const _useState5 = React.useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test'),
|
|
10707
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
10708
|
+
isVirtualizationReady = _useState6[0],
|
|
10709
|
+
setIsVirtualizationReady = _useState6[1];
|
|
10175
10710
|
const animatedLeft = React.useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
10176
10711
|
const dataTestId = index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
10177
10712
|
const _usePaneSearch = usePaneSearch({
|
|
@@ -10290,7 +10825,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
10290
10825
|
loop: !isSearchable,
|
|
10291
10826
|
side: side || defaultSide,
|
|
10292
10827
|
align: align || 'start',
|
|
10293
|
-
ref:
|
|
10828
|
+
ref: contentRef,
|
|
10294
10829
|
"data-testid": dataTestId,
|
|
10295
10830
|
className: classNames__default["default"](className, {
|
|
10296
10831
|
[styles$7.animatedLeft]: animatedLeft
|
|
@@ -10339,6 +10874,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
10339
10874
|
const withinSelect = selectContext !== null;
|
|
10340
10875
|
const multiselect = selectContext === null || selectContext === void 0 ? void 0 : selectContext.multiselect;
|
|
10341
10876
|
const itemRef = React.useRef(null);
|
|
10877
|
+
const mergedRef = React.useMemo(() => index.mergeRefs(ref, itemRef), [ref]);
|
|
10342
10878
|
const _usePaneContext = usePaneContext(itemRef),
|
|
10343
10879
|
menuParentDataTestId = _usePaneContext.dataTestId,
|
|
10344
10880
|
childIndex = _usePaneContext.childIndex,
|
|
@@ -10379,7 +10915,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
10379
10915
|
[styles$7.unresponsive]: !isInteractive
|
|
10380
10916
|
}),
|
|
10381
10917
|
"data-testid": dataTestId,
|
|
10382
|
-
ref:
|
|
10918
|
+
ref: mergedRef,
|
|
10383
10919
|
onKeyDown: e => {
|
|
10384
10920
|
var _context, _context2, _context3;
|
|
10385
10921
|
if (!isInteractive || multiselect && e.key === 'Enter') {
|
|
@@ -10449,11 +10985,11 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
10449
10985
|
setItems = _useState2[1];
|
|
10450
10986
|
const internalId = index.useId();
|
|
10451
10987
|
const triggerRef = React.useRef(null);
|
|
10452
|
-
const
|
|
10453
|
-
|
|
10454
|
-
flyoutNode =
|
|
10455
|
-
|
|
10456
|
-
const
|
|
10988
|
+
const _useFlyoutNode = useFlyoutNode(),
|
|
10989
|
+
_useFlyoutNode2 = _slicedToArray__default["default"](_useFlyoutNode, 2),
|
|
10990
|
+
flyoutNode = _useFlyoutNode2[0],
|
|
10991
|
+
onRefChange = _useFlyoutNode2[1];
|
|
10992
|
+
const contentRef = React.useMemo(() => index.mergeRefs(ref, onRefChange), [ref, onRefChange]);
|
|
10457
10993
|
const stickyBoxRef = React.useRef(null);
|
|
10458
10994
|
const backButtonRef = React.useRef(null);
|
|
10459
10995
|
const _usePaneContext = usePaneContext(triggerRef),
|
|
@@ -10475,18 +11011,18 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
10475
11011
|
isFocusVisible = _useIsFocusVisible.isFocusVisible;
|
|
10476
11012
|
const zIndex = React.useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
10477
11013
|
const thisPanesDepth = (_submenuDepths$intern = submenuDepths[internalId]) !== null && _submenuDepths$intern !== void 0 ? _submenuDepths$intern : Number.MAX_SAFE_INTEGER;
|
|
11014
|
+
const _useState3 = React.useState(false),
|
|
11015
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
11016
|
+
isPaneInDOM = _useState4[0],
|
|
11017
|
+
setIsPaneInDOM = _useState4[1];
|
|
10478
11018
|
const _useState5 = React.useState(false),
|
|
10479
11019
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
10480
|
-
|
|
10481
|
-
|
|
11020
|
+
isFrameAfterPaneAddedToDOM = _useState6[0],
|
|
11021
|
+
setIsFrameAfterPaneAddedToDOM = _useState6[1];
|
|
10482
11022
|
const _useState7 = React.useState(false),
|
|
10483
11023
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
const _useState9 = React.useState(false),
|
|
10487
|
-
_useState0 = _slicedToArray__default["default"](_useState9, 2),
|
|
10488
|
-
isTransitioningFromRight = _useState0[0],
|
|
10489
|
-
setIsTransitioningFromRight = _useState0[1];
|
|
11024
|
+
isTransitioningFromRight = _useState8[0],
|
|
11025
|
+
setIsTransitioningFromRight = _useState8[1];
|
|
10490
11026
|
const animatedLeft = React.useMemo(() => thisPanesDepth < totalOpenPaneDepth, [totalOpenPaneDepth, thisPanesDepth]);
|
|
10491
11027
|
const animatedRight = React.useMemo(() => thisPanesDepth > totalOpenPaneDepth || thisPanesDepth === totalOpenPaneDepth && !isPaneInDOM || isFrameAfterPaneAddedToDOM, [totalOpenPaneDepth, isFrameAfterPaneAddedToDOM, thisPanesDepth, isPaneInDOM]);
|
|
10492
11028
|
const paneDataTestId = index.getSubDataTestId(paneContainingTriggerDataTestId, index.getTestIdSegment(testIdSegment, triggerIndex));
|
|
@@ -10614,7 +11150,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
10614
11150
|
}, /*#__PURE__*/React__default["default"].createElement(SubContent2, _extends__default["default"]({}, rest, {
|
|
10615
11151
|
loop: !isSearchable,
|
|
10616
11152
|
"data-testid": paneDataTestId,
|
|
10617
|
-
ref:
|
|
11153
|
+
ref: contentRef,
|
|
10618
11154
|
onInteractOutside: onInteractOutside,
|
|
10619
11155
|
className: classNames__default["default"](className, styles$7.flyout, {
|
|
10620
11156
|
[styles$7.animatedRight]: animatedRight,
|
|
@@ -11039,9 +11575,9 @@ const RowDisplayCount = _ref => {
|
|
|
11039
11575
|
}));
|
|
11040
11576
|
};
|
|
11041
11577
|
|
|
11042
|
-
var css_248z$a = ".
|
|
11043
|
-
var styles$5 = {"input":"
|
|
11044
|
-
var stylesheet$a=".
|
|
11578
|
+
var css_248z$a = "._aAUPJ input{padding-left:76px!important}._RaMj- input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._RaMj- input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._RaMj- input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._8zR74{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._8zR74,._8zR74._RaMj-:hover{background-color:initial!important}._8zR74:hover{background-color:rgba(50,54,58,.08)!important}._8zR74:active{background-color:rgba(50,54,58,.11)!important}._8zR74 svg{top:2px!important}._pONQ0{position:relative}._Fj9DL{position:absolute;top:18px;left:12px;line-height:0px;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
11579
|
+
var styles$5 = {"input":"_aAUPJ","disabled":"_RaMj-","dropdown":"_8zR74","container":"_pONQ0","countryCode":"_Fj9DL"};
|
|
11580
|
+
var stylesheet$a="._aAUPJ input{padding-left:76px!important}._RaMj- input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._RaMj- input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._RaMj- input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._8zR74{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._8zR74,._8zR74._RaMj-:hover{background-color:initial!important}._8zR74:hover{background-color:rgba(50,54,58,.08)!important}._8zR74:active{background-color:rgba(50,54,58,.11)!important}._8zR74 svg{top:2px!important}._pONQ0{position:relative}._Fj9DL{position:absolute;top:18px;left:12px;line-height:0px;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
11045
11581
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$a);}
|
|
11046
11582
|
|
|
11047
11583
|
const removeNonNumericCharacters = value => (value === null || value === void 0 ? void 0 : value.replace(/\D/g, '')) || '';
|
|
@@ -11202,9 +11738,9 @@ const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
11202
11738
|
});
|
|
11203
11739
|
PhoneNumberInput.displayName = 'PhoneNumberInput';
|
|
11204
11740
|
|
|
11205
|
-
var css_248z$9 = ".
|
|
11206
|
-
var styles$4 = {"container":"
|
|
11207
|
-
var stylesheet$9=".
|
|
11741
|
+
var css_248z$9 = "._RqxV7{display:flex}._-2bKA{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._-2bKA._FdB61{background-color:#fff}._-2bKA._FdB61._xoK0R:focus-visible:not(._A3jeY){background-color:#0b6ed0}._-2bKA._FdB61._4q5LZ:not(._-2bKA._FdB61._P-BXf),._-2bKA._u4LHd{background-color:#0b6ed0}._-2bKA._u4LHd._A3jeY._P-BXf,._-2bKA._u4LHd._A3jeY._xoK0R,._-2bKA._u4LHd._P-BXf._4q5LZ{opacity:.4}._nzkWs{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._nzkWs:focus{z-index:1}._Y1rEW{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}._Y1rEW svg{margin-left:1px}._Y1rEW._FdB61{background-color:#0b6ed0;border-color:transparent}._Y1rEW._FdB61 svg{fill:#fff!important}._Y1rEW._FdB61:not(._IM6z5):hover{background-color:#085caf!important}._Y1rEW._FdB61:not(._IM6z5):active{background-color:#0854a1!important}._Y1rEW._FdB61._IM6z5{opacity:.4}._Y1rEW._FdB61._IM6z5 svg{background-color:initial}._Y1rEW._u4LHd{border-color:#0b6ed0;background-color:#fff}._Y1rEW._u4LHd svg{fill:#0b6ed0!important}._Y1rEW._u4LHd:not(._IM6z5):hover{background-color:#eef5fc!important}._Y1rEW._u4LHd:not(._IM6z5):active{background-color:#e1edf9!important}._Y1rEW._u4LHd._IM6z5{opacity:.4}._Y1rEW._u4LHd._IM6z5 svg{background-color:initial}._W2cZc{width:260px}";
|
|
11742
|
+
var styles$4 = {"container":"_RqxV7","divider":"_-2bKA","primary":"_FdB61","mainButtonFocus":"_xoK0R","mainButtonDisabled":"_A3jeY","dropdownButtonFocus":"_4q5LZ","dropdownButtonDisabled":"_P-BXf","secondary":"_u4LHd","mainButton":"_nzkWs","dropdownButton":"_Y1rEW","disabled":"_IM6z5","dropdownOption":"_W2cZc"};
|
|
11743
|
+
var stylesheet$9="._RqxV7{display:flex}._-2bKA{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._-2bKA._FdB61{background-color:#fff}._-2bKA._FdB61._xoK0R:focus-visible:not(._A3jeY){background-color:#0b6ed0}._-2bKA._FdB61._4q5LZ:not(._-2bKA._FdB61._P-BXf),._-2bKA._u4LHd{background-color:#0b6ed0}._-2bKA._u4LHd._A3jeY._P-BXf,._-2bKA._u4LHd._A3jeY._xoK0R,._-2bKA._u4LHd._P-BXf._4q5LZ{opacity:.4}._nzkWs{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._nzkWs:focus{z-index:1}._Y1rEW{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}._Y1rEW svg{margin-left:1px}._Y1rEW._FdB61{background-color:#0b6ed0;border-color:transparent}._Y1rEW._FdB61 svg{fill:#fff!important}._Y1rEW._FdB61:not(._IM6z5):hover{background-color:#085caf!important}._Y1rEW._FdB61:not(._IM6z5):active{background-color:#0854a1!important}._Y1rEW._FdB61._IM6z5{opacity:.4}._Y1rEW._FdB61._IM6z5 svg{background-color:initial}._Y1rEW._u4LHd{border-color:#0b6ed0;background-color:#fff}._Y1rEW._u4LHd svg{fill:#0b6ed0!important}._Y1rEW._u4LHd:not(._IM6z5):hover{background-color:#eef5fc!important}._Y1rEW._u4LHd:not(._IM6z5):active{background-color:#e1edf9!important}._Y1rEW._u4LHd._IM6z5{opacity:.4}._Y1rEW._u4LHd._IM6z5 svg{background-color:initial}._W2cZc{width:260px}";
|
|
11208
11744
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$9);}
|
|
11209
11745
|
|
|
11210
11746
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -11472,9 +12008,9 @@ const StackItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
11472
12008
|
});
|
|
11473
12009
|
StackItem.displayName = 'StackItem';
|
|
11474
12010
|
|
|
11475
|
-
var css_248z$8 = ".
|
|
11476
|
-
var styles$3 = {"timePickerContainer":"
|
|
11477
|
-
var stylesheet$8=".
|
|
12011
|
+
var css_248z$8 = "._OEXAH{display:inline-block;position:relative}._OEXAH ._ZlFWj{width:120px}._OEXAH ._ZlFWj ._LxrHM._cWnaR{transform:rotate(-180deg)}._OEXAH ._ZlFWj ._LxrHM._nivnE{fill:#9d9fa1;opacity:.4}._OEXAH ._iS5JX>input:focus{box-shadow:none!important;border:1px solid #898989!important}._OEXAH ._LxrHM{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._OEXAH ._LxrHM._cWnaR{transform:rotate(-180deg)}._5P35S{width:120px}._5P35S ._5d-kk._QrL7D{background-color:#efefef;border-radius:6px}";
|
|
12012
|
+
var styles$3 = {"timePickerContainer":"_OEXAH","input":"_ZlFWj","icon":"_LxrHM","open":"_cWnaR","disabled":"_nivnE","ignoreFocusStyle":"_iS5JX","timePickerFlyout":"_5P35S","option":"_5d-kk","exactMatch":"_QrL7D"};
|
|
12013
|
+
var stylesheet$8="._OEXAH{display:inline-block;position:relative}._OEXAH ._ZlFWj{width:120px}._OEXAH ._ZlFWj ._LxrHM._cWnaR{transform:rotate(-180deg)}._OEXAH ._ZlFWj ._LxrHM._nivnE{fill:#9d9fa1;opacity:.4}._OEXAH ._iS5JX>input:focus{box-shadow:none!important;border:1px solid #898989!important}._OEXAH ._LxrHM{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._OEXAH ._LxrHM._cWnaR{transform:rotate(-180deg)}._5P35S{width:120px}._5P35S ._5d-kk._QrL7D{background-color:#efefef;border-radius:6px}";
|
|
11478
12014
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$8);}
|
|
11479
12015
|
|
|
11480
12016
|
const TimeDropdown = _ref => {
|
|
@@ -12167,9 +12703,9 @@ const _createContextUtiliti$2 = index.createContextUtilities(null),
|
|
|
12167
12703
|
useToggleButtonGroupContext = _createContextUtiliti$2.useContext,
|
|
12168
12704
|
ToggleButtonGroupContextProvider = _createContextUtiliti$2.Provider;
|
|
12169
12705
|
|
|
12170
|
-
var css_248z$7 = ".
|
|
12171
|
-
var styles$2 = {"default":"
|
|
12172
|
-
var stylesheet$7=".
|
|
12706
|
+
var css_248z$7 = "._08Wbj{border-color:transparent;background-color:initial;color:#515559;cursor:pointer}._GaPzy{background-color:rgba(50,54,58,.08)}._8-gVQ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._PWHPo{color:rgba(81,85,89,.4);cursor:not-allowed}._no61a{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._KWBN1{color:#085caf;border-color:#085caf}._6NrSi,._KWBN1{background:rgba(11,110,208,.11)}._6NrSi{color:#0854a1;border-color:#0854a1}._n-BXS{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._Izno1{position:relative;display:inline-grid}._Izno1 svg{fill:currentColor}._Izno1 ._vugkA{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._Izno1 ._vugkA+._uRliT{background-color:initial;color:#515559;cursor:pointer;border-color:transparent;border-style:solid;border-width:1px;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}._Izno1 ._vugkA+._uRliT._WJuau{padding:5px;max-width:36px;min-width:36px}._Izno1 ._vugkA+._uRliT._teXkK{padding:0 16px}._Izno1 ._vugkA+._uRliT._thCM9{padding:0 16px 0 12px}._Izno1 ._vugkA:hover+._uRliT{background-color:rgba(50,54,58,.08)}._Izno1 ._vugkA:disabled+._uRliT{color:rgba(81,85,89,.4);cursor:not-allowed}._Izno1 ._vugkA:active+._uRliT,._Izno1 ._vugkA:focus:active+._uRliT{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._Izno1 ._vugkA:checked+._uRliT{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._Izno1 ._vugkA:checked:hover+._uRliT{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._Izno1 ._vugkA:checked:disabled+._uRliT{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._Izno1 ._vugkA:checked:active+._uRliT,._Izno1 ._vugkA:checked:focus:active+._uRliT{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._SUk-l{display:inline-flex;position:relative}._SUk-l:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._SUk-l>*{flex-shrink:0;flex-grow:0}._o5SEO{border:none;margin:0;padding:0}._o5SEO legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._Izno1 ._vugkA:focus-visible{outline:none}._Izno1 ._vugkA:focus-visible+._uRliT{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
12707
|
+
var styles$2 = {"default":"_08Wbj","hovered":"_GaPzy","pressed":"_8-gVQ","disabled":"_PWHPo","selectedDefault":"_no61a","selectedHovered":"_KWBN1","selectedPressed":"_6NrSi","selectedDisabled":"_n-BXS","toggleContainer":"_Izno1","toggleInput":"_vugkA","toggleButton":"_uRliT","iconOnly":"_WJuau","text":"_teXkK","iconText":"_thCM9","toggleButtonGroup":"_SUk-l","toggleButtonGroupFieldset":"_o5SEO"};
|
|
12708
|
+
var stylesheet$7="._08Wbj{border-color:transparent;background-color:initial;color:#515559;cursor:pointer}._GaPzy{background-color:rgba(50,54,58,.08)}._8-gVQ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._PWHPo{color:rgba(81,85,89,.4);cursor:not-allowed}._no61a{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._KWBN1{color:#085caf;border-color:#085caf}._6NrSi,._KWBN1{background:rgba(11,110,208,.11)}._6NrSi{color:#0854a1;border-color:#0854a1}._n-BXS{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._Izno1{position:relative;display:inline-grid}._Izno1 svg{fill:currentColor}._Izno1 ._vugkA{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._Izno1 ._vugkA+._uRliT{background-color:initial;color:#515559;cursor:pointer;border-color:transparent;border-style:solid;border-width:1px;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}._Izno1 ._vugkA+._uRliT._WJuau{padding:5px;max-width:36px;min-width:36px}._Izno1 ._vugkA+._uRliT._teXkK{padding:0 16px}._Izno1 ._vugkA+._uRliT._thCM9{padding:0 16px 0 12px}._Izno1 ._vugkA:hover+._uRliT{background-color:rgba(50,54,58,.08)}._Izno1 ._vugkA:disabled+._uRliT{color:rgba(81,85,89,.4);cursor:not-allowed}._Izno1 ._vugkA:active+._uRliT,._Izno1 ._vugkA:focus:active+._uRliT{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._Izno1 ._vugkA:checked+._uRliT{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._Izno1 ._vugkA:checked:hover+._uRliT{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._Izno1 ._vugkA:checked:disabled+._uRliT{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._Izno1 ._vugkA:checked:active+._uRliT,._Izno1 ._vugkA:checked:focus:active+._uRliT{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._SUk-l{display:inline-flex;position:relative}._SUk-l:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._SUk-l>*{flex-shrink:0;flex-grow:0}._o5SEO{border:none;margin:0;padding:0}._o5SEO legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._Izno1 ._vugkA:focus-visible{outline:none}._Izno1 ._vugkA:focus-visible+._uRliT{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
12173
12709
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$7);}
|
|
12174
12710
|
|
|
12175
12711
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -12714,9 +13250,9 @@ const ChatMessageList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
12714
13250
|
});
|
|
12715
13251
|
ChatMessageList.displayName = 'ChatMessageList';
|
|
12716
13252
|
|
|
12717
|
-
var css_248z$1 = ".
|
|
12718
|
-
var styles$1 = {"font-size-12":"
|
|
12719
|
-
var stylesheet$1=".
|
|
13253
|
+
var css_248z$1 = "._9MSt9{font-size:.75rem!important}._-a0Um{font-size:.875rem!important}._xwQgO{font-size:1rem!important}._QoVso{font-size:1.125rem!important}._lw-yY{font-size:1.25rem!important}._EERVS{font-size:1.5rem!important}._Qgp4t{font-size:1.75rem!important}._8A-ST{font-size:2.25rem!important}._o2YaN{font-size:2.5rem!important}._1mwfP{font-size:3rem!important}._gzZ-R{font-size:4rem!important}._Fe-vW{font-size:4.5rem!important}._zD4db{line-height:1rem!important}._mh3Hb{line-height:1.25rem!important}._8CuD6{line-height:1.5rem!important}._3B2aj{line-height:1.75rem!important}._wgs04{line-height:2rem!important}._UrU6A{line-height:2.188rem!important}._37T6h{line-height:2.5rem!important}._8PpdG{line-height:2.75rem!important}._SPeN-{line-height:3.125rem!important}._OYvF1{line-height:4.25rem!important}._qCBxl{line-height:4.5rem!important}._jLaoS{font-weight:100!important}._xnzos{font-weight:200!important}._TTf5d{font-weight:300!important}._ftkFF{font-weight:400!important}._D64P3{font-weight:500!important}._feW-W{font-weight:600!important}._poRBk{font-weight:700!important}._hQAY-{font-weight:800!important}._i-t1T{font-weight:900!important}._sYLbr{font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._Vpqcf{font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._TlWL8{font-family:\"72Condensed\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._2u2WW{font-family:\"72Mono\",monospace!important}._LpvNB{font-weight:700!important}._FvjlZ,._LpvNB{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._FvjlZ{font-weight:400!important}._CkLU0{font-weight:300!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._CkLU0,._rHqjq{font-size:4.5rem!important;line-height:4.5rem!important;color:#2a2a2a!important}._rHqjq{font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._Yx92Q{font-weight:400!important}._-YQv0,._Yx92Q{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._-YQv0{font-weight:700!important}._hQ6oW{font-weight:400!important}._HC1xM,._hQ6oW{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._HC1xM{font-weight:700!important}._ohsv7{font-weight:400!important}._aNWQb,._ohsv7{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._aNWQb{font-weight:700!important}._qoc6z{font-weight:400!important}._FEetB,._qoc6z{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._FEetB{font-weight:700!important}._e8xvk{font-weight:400!important}._Rn3CQ,._e8xvk{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._Rn3CQ{font-weight:700!important}._fUHH2{font-weight:400!important}._VT3PP,._fUHH2{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._VT3PP{font-weight:700!important}._3lgWy{font-weight:400!important}._3lgWy,._Eb3qw{font-size:2.25rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._Eb3qw{font-weight:700!important}._-6lsz{font-weight:400!important}._-6lsz,._pYPIo{font-size:1.75rem!important;line-height:2.188rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._pYPIo{font-weight:700!important}._oCCbJ{font-weight:400!important}._fFjEB,._oCCbJ{font-size:1.5rem!important;line-height:2rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._fFjEB{font-weight:700!important}._lCSGT{font-weight:400!important}._lCSGT,._lsnRF{font-size:1.25rem!important;line-height:1.75rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._lsnRF{font-weight:700!important}._0QzvD{font-weight:400!important}._0QzvD,._ok-VL{font-size:1.125rem!important;line-height:1.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._ok-VL{font-weight:700!important}._WYZ7p{font-weight:400!important}._Egg8e,._WYZ7p{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._Egg8e{font-weight:700!important}._CDPm1{font-weight:400!important}._CDPm1,._ercnK{font-size:.75rem!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#595959!important}._ercnK{font-weight:700!important}._0ioXf{font-size:.875rem!important;font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._0ioXf,._N5IYm{line-height:1.25rem!important;color:#2a2a2a!important}._N5IYm{font-size:1rem!important;font-weight:400!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._xdasO{color:#ba4f0d!important}._ML-BC,._xdasO{font-size:.75rem!important;font-weight:400!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._ML-BC{color:#da1c3d!important}";
|
|
13254
|
+
var styles$1 = {"font-size-12":"_9MSt9","font-size-14":"_-a0Um","font-size-16":"_xwQgO","font-size-18":"_QoVso","font-size-20":"_lw-yY","font-size-24":"_EERVS","font-size-28":"_Qgp4t","font-size-36":"_8A-ST","font-size-40":"_o2YaN","font-size-48":"_1mwfP","font-size-64":"_gzZ-R","font-size-72":"_Fe-vW","line-height-16":"_zD4db","line-height-20":"_mh3Hb","line-height-24":"_8CuD6","line-height-28":"_3B2aj","line-height-32":"_wgs04","line-height-35":"_UrU6A","line-height-40":"_37T6h","line-height-44":"_8PpdG","line-height-50":"_SPeN-","line-height-68":"_OYvF1","line-height-72":"_qCBxl","font-weight-thin":"_jLaoS","font-weight-extralight":"_xnzos","font-weight-light":"_TTf5d","font-weight-regular":"_ftkFF","font-weight-medium":"_D64P3","font-weight-demibold":"_feW-W","font-weight-bold":"_poRBk","font-weight-extrabold":"_hQAY-","font-weight-black":"_i-t1T","font-family-default":"_sYLbr","font-family-default-duplex":"_Vpqcf","font-family-default-condensed":"_TlWL8","font-family-code":"_2u2WW","body-text-bold":"_LpvNB","body-text-regular":"_FvjlZ","data-viz-large-number-light":"_CkLU0","data-viz-large-number-semibold":"_rHqjq","display-body-primary-regular":"_Yx92Q","display-body-primary-bold":"_-YQv0","display-body-secondary-regular":"_hQ6oW","display-body-secondary-bold":"_HC1xM","display-body-tertiary-regular":"_ohsv7","display-body-tertiary-bold":"_aNWQb","display-heading-primary-regular":"_qoc6z","display-heading-primary-bold":"_FEetB","display-heading-secondary-regular":"_e8xvk","display-heading-secondary-bold":"_Rn3CQ","display-heading-tertiary-regular":"_fUHH2","display-heading-tertiary-bold":"_VT3PP","heading-1-regular":"_3lgWy","heading-1-bold":"_Eb3qw","heading-2-regular":"_-6lsz","heading-2-bold":"_pYPIo","heading-3-regular":"_oCCbJ","heading-3-bold":"_fFjEB","heading-4-regular":"_lCSGT","heading-4-bold":"_lsnRF","heading-5-regular":"_0QzvD","heading-5-bold":"_ok-VL","heading-6-regular":"_WYZ7p","heading-6-bold":"_Egg8e","helper-text-regular":"_CDPm1","helper-text-bold":"_ercnK","input-label-bold":"_0ioXf","input-label-regular":"_N5IYm","warning-text-regular":"_xdasO","error-text-regular":"_ML-BC"};
|
|
13255
|
+
var stylesheet$1="._9MSt9{font-size:.75rem!important}._-a0Um{font-size:.875rem!important}._xwQgO{font-size:1rem!important}._QoVso{font-size:1.125rem!important}._lw-yY{font-size:1.25rem!important}._EERVS{font-size:1.5rem!important}._Qgp4t{font-size:1.75rem!important}._8A-ST{font-size:2.25rem!important}._o2YaN{font-size:2.5rem!important}._1mwfP{font-size:3rem!important}._gzZ-R{font-size:4rem!important}._Fe-vW{font-size:4.5rem!important}._zD4db{line-height:1rem!important}._mh3Hb{line-height:1.25rem!important}._8CuD6{line-height:1.5rem!important}._3B2aj{line-height:1.75rem!important}._wgs04{line-height:2rem!important}._UrU6A{line-height:2.188rem!important}._37T6h{line-height:2.5rem!important}._8PpdG{line-height:2.75rem!important}._SPeN-{line-height:3.125rem!important}._OYvF1{line-height:4.25rem!important}._qCBxl{line-height:4.5rem!important}._jLaoS{font-weight:100!important}._xnzos{font-weight:200!important}._TTf5d{font-weight:300!important}._ftkFF{font-weight:400!important}._D64P3{font-weight:500!important}._feW-W{font-weight:600!important}._poRBk{font-weight:700!important}._hQAY-{font-weight:800!important}._i-t1T{font-weight:900!important}._sYLbr{font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._Vpqcf{font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._TlWL8{font-family:\"72Condensed\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._2u2WW{font-family:\"72Mono\",monospace!important}._LpvNB{font-weight:700!important}._FvjlZ,._LpvNB{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._FvjlZ{font-weight:400!important}._CkLU0{font-weight:300!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._CkLU0,._rHqjq{font-size:4.5rem!important;line-height:4.5rem!important;color:#2a2a2a!important}._rHqjq{font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._Yx92Q{font-weight:400!important}._-YQv0,._Yx92Q{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._-YQv0{font-weight:700!important}._hQ6oW{font-weight:400!important}._HC1xM,._hQ6oW{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._HC1xM{font-weight:700!important}._ohsv7{font-weight:400!important}._aNWQb,._ohsv7{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._aNWQb{font-weight:700!important}._qoc6z{font-weight:400!important}._FEetB,._qoc6z{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._FEetB{font-weight:700!important}._e8xvk{font-weight:400!important}._Rn3CQ,._e8xvk{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._Rn3CQ{font-weight:700!important}._fUHH2{font-weight:400!important}._VT3PP,._fUHH2{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._VT3PP{font-weight:700!important}._3lgWy{font-weight:400!important}._3lgWy,._Eb3qw{font-size:2.25rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._Eb3qw{font-weight:700!important}._-6lsz{font-weight:400!important}._-6lsz,._pYPIo{font-size:1.75rem!important;line-height:2.188rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._pYPIo{font-weight:700!important}._oCCbJ{font-weight:400!important}._fFjEB,._oCCbJ{font-size:1.5rem!important;line-height:2rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._fFjEB{font-weight:700!important}._lCSGT{font-weight:400!important}._lCSGT,._lsnRF{font-size:1.25rem!important;line-height:1.75rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._lsnRF{font-weight:700!important}._0QzvD{font-weight:400!important}._0QzvD,._ok-VL{font-size:1.125rem!important;line-height:1.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._ok-VL{font-weight:700!important}._WYZ7p{font-weight:400!important}._Egg8e,._WYZ7p{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#2a2a2a!important}._Egg8e{font-weight:700!important}._CDPm1{font-weight:400!important}._CDPm1,._ercnK{font-size:.75rem!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important;color:#595959!important}._ercnK{font-weight:700!important}._0ioXf{font-size:.875rem!important;font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._0ioXf,._N5IYm{line-height:1.25rem!important;color:#2a2a2a!important}._N5IYm{font-size:1rem!important;font-weight:400!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._xdasO{color:#ba4f0d!important}._ML-BC,._xdasO{font-size:.75rem!important;font-weight:400!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui!important}._ML-BC{color:#da1c3d!important}";
|
|
12720
13256
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$1);}
|
|
12721
13257
|
|
|
12722
13258
|
const TypographyTypesMapper = {
|
|
@@ -12774,9 +13310,9 @@ const Typography = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
12774
13310
|
});
|
|
12775
13311
|
Typography.displayName = 'Typography';
|
|
12776
13312
|
|
|
12777
|
-
var css_248z = ".
|
|
12778
|
-
var styles = {"indicator":"
|
|
12779
|
-
var stylesheet=".
|
|
13313
|
+
var css_248z = "._OVvsf{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._OVvsf._ePO2C{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._OVvsf._CWvY4{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._OVvsf._rIhyX{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._OVvsf._Tmcoo{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._GEVWT{padding:1px 8px;max-height:24px}._j2EDq{padding:4px 8px}";
|
|
13314
|
+
var styles = {"indicator":"_OVvsf","warning":"_ePO2C","error":"_CWvY4","success":"_rIhyX","informational":"_Tmcoo","small":"_GEVWT","medium":"_j2EDq"};
|
|
13315
|
+
var stylesheet="._OVvsf{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._OVvsf._ePO2C{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._OVvsf._CWvY4{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._OVvsf._rIhyX{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._OVvsf._Tmcoo{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._GEVWT{padding:1px 8px;max-height:24px}._j2EDq{padding:4px 8px}";
|
|
12780
13316
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z);}
|
|
12781
13317
|
|
|
12782
13318
|
const _excluded = ["children", "size", "variant", "className", "hideIcon"];
|