@qualtrics/ui-react 2.8.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/dist/__shared/cjs/{index-763e59c2.js → index-0ef0b03a.js} +3 -3
- package/dist/__shared/cjs/{index-ce267a89.js → index-74ef768b.js} +71 -194
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button2.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox.js +21 -43
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxInput.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- 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/InlineInput.js +7 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +2 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +7 -2
- package/dist/components/NewMenu/parts/MenuItem.js +3 -1
- 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/Popover.js +6 -1
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +5 -0
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/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 +265 -138
- package/dist/next/AdvancedTable/AdvancedTable.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +4 -1
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +6 -2
- package/dist/next/Combobox/ComboboxOption.js +4 -1
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +71 -0
- package/dist/next/Menu/Menu2.js +8 -0
- package/dist/next/Menu/MenuButton.js +41 -0
- package/dist/next/Menu/MenuContext.js +41 -0
- package/dist/next/Menu/MenuItem.js +49 -0
- package/dist/next/Menu/MenuPane.js +64 -0
- package/dist/next/Menu/MenuSearch.js +105 -0
- package/dist/next/Menu/SubMenu.js +74 -0
- package/dist/next/Menu/constants.js +9 -0
- package/dist/next/Menu/index.js +5 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.d.ts +53 -0
- package/dist/next/index.es.js +6 -1
- package/dist/next/index.js +523 -138
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +1 -1
|
@@ -257,6 +257,7 @@ const AdvancedTable = _ref => {
|
|
|
257
257
|
depthSize,
|
|
258
258
|
depthIndex,
|
|
259
259
|
isExpanded: row.isExpanded,
|
|
260
|
+
rowProps: row.unsafe_rowProps,
|
|
260
261
|
rowPropReference: row
|
|
261
262
|
});
|
|
262
263
|
|
|
@@ -771,7 +772,8 @@ const AdvancedTable = _ref => {
|
|
|
771
772
|
depthSize,
|
|
772
773
|
depthIndex,
|
|
773
774
|
rowPropReference,
|
|
774
|
-
parentId
|
|
775
|
+
parentId,
|
|
776
|
+
rowProps
|
|
775
777
|
} = row;
|
|
776
778
|
const hasChildRows = rowPropReference.childRows && rowPropReference.childRows.length > 0;
|
|
777
779
|
const paginatedRowIndex = getPaginatedRowIndex(rowIndex);
|
|
@@ -794,7 +796,7 @@ const AdvancedTable = _ref => {
|
|
|
794
796
|
}
|
|
795
797
|
};
|
|
796
798
|
|
|
797
|
-
return /*#__PURE__*/React__default.createElement(AdvancedTableRow, {
|
|
799
|
+
return /*#__PURE__*/React__default.createElement(AdvancedTableRow, _extends({}, rowProps, {
|
|
798
800
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
799
801
|
,
|
|
800
802
|
"data-testid": dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined,
|
|
@@ -813,7 +815,7 @@ const AdvancedTable = _ref => {
|
|
|
813
815
|
"aria-setsize": hasExpandableRows ? depthSize : undefined,
|
|
814
816
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
815
817
|
|
|
816
|
-
}, hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
818
|
+
}), hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
817
819
|
className: classNames(styles.pinnedContainer, styles.advancedTableRowChild),
|
|
818
820
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
819
821
|
}, hasCheckboxColumn && /*#__PURE__*/React__default.createElement(AdvancedTableCheckbox, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._21wHW{overflow:auto;position:relative;max-width:100%;max-height:100%}._2rdPj,._21wHW{background-color:#fff}._2rdPj{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._1nMAj{margin-bottom:4px}._2O50c{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1O-SM{display:flex}._1O-SM:focus{outline:none}body.keyboard-user ._1O-SM:focus ._2F-wI: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}body.keyboard-user ._1O-SM:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1O-SM:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1O-SM:focus ._2F-wI._2w22E:after{right:-3px;bottom:1px}._lcW23{padding-right:3px}._J4DRO{display:flex}._J4DRO._2hPON ._2F-wI,._J4DRO._2hPON ._13KvU{cursor:pointer}._J4DRO._37SrH ._2F-wI,._J4DRO._37SrH ._13KvU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._J4DRO._37SrH ._2F-wI._2w22E,._J4DRO._37SrH ._13KvU._2w22E{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._J4DRO._37SrH ._2F-wI._2w22E ._2C4Fr,._J4DRO._37SrH ._2F-wI._2w22E ._13KvU,._J4DRO._37SrH ._2F-wI._2w22E ._oRO8C,._J4DRO._37SrH ._13KvU._2w22E ._2C4Fr,._J4DRO._37SrH ._13KvU._2w22E ._13KvU,._J4DRO._37SrH ._13KvU._2w22E ._oRO8C{background-color:rgba(11,110,208,.08)}._J4DRO._2hPON:hover:not(._37SrH):not(._1DRoh) ._2F-wI,._J4DRO._2hPON:hover:not(._37SrH):not(._1DRoh) ._13KvU{background-color:#f9f9f9}._J4DRO._2hPON:active:not(._37SrH):not(._1DRoh) ._2F-wI,._J4DRO._2hPON:active:not(._37SrH):not(._1DRoh) ._13KvU{background-color:#f3f3f3}._J4DRO:focus{outline:none}body.keyboard-user ._J4DRO:focus ._2F-wI: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}body.keyboard-user ._J4DRO:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._J4DRO:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._J4DRO:focus ._2F-wI._2w22E:after{right:-3px;bottom:0}._J4DRO:last-of-type:focus{outline:none}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI: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}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI._2w22E:after{right:-3px;bottom:1px}._J4DRO:last-of-type ._oRO8C:focus{outline:none}body.keyboard-user ._J4DRO:last-of-type ._oRO8C._VgOr9:after,body.keyboard-user ._J4DRO:last-of-type ._oRO8C:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._J4DRO:first-of-type:focus{outline:none}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI: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}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI._2w22E:after{right:-3px;bottom:0}._J4DRO:first-of-type ._oRO8C:focus{outline:none}body.keyboard-user ._J4DRO:first-of-type ._oRO8C._VgOr9:after,body.keyboard-user ._J4DRO:first-of-type ._oRO8C:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1dMAB{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}._1dMAB._3JhjN{flex-grow:1}._1dMAB._21REk{cursor:pointer}._1dMAB._21REk:hover:not(._1sa6n){background-color:#f9f9f9;border-bottom-color:#6a6d70}._1dMAB._21REk:active:not(._1sa6n){background-color:#f3f3f3}._1dMAB._3FV6e:not(._1sa6n){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._1dMAB._1sa6n{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._1dMAB ._yCtiz{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._1dMAB ._yCtiz._27efd{left:-1px}._1dMAB ._yCtiz._1HxLI{right:0}._1dMAB ._1a3qv{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._1dMAB ._1a3qv._27efd{left:-2px}._1dMAB ._1a3qv._1HxLI{right:-1px}._1dMAB:first-of-type ._27efd._yCtiz{left:0;width:2px;border-left:1px solid #fff}._1dMAB:first-of-type ._27efd._1a3qv{left:0}._1dMAB:last-of-type ._1HxLI._yCtiz{right:0;width:2px;border-right:1px solid #fff}._1dMAB:last-of-type ._1HxLI._1a3qv{right:0}._1dMAB ._2og_y{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._1dMAB ._2og_y ._1nT4K{position:absolute;width:2px;right:2px;top:0;bottom:0}._1dMAB ._2og_y ._1nT4K._31UTx{background-color:#0a6ed1}._1dMAB ._2og_y:hover ._1nT4K:not(._31UTx){background-color:#d9d9d9}._1dMAB ._3S4SY{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._1dMAB ._3S4SY._1jQSF{flex-direction:row-reverse;justify-content:flex-start}._1dMAB ._3S4SY._1jQSF ._7amXC{margin:1px 7px 1px 1px}._1dMAB ._3S4SY ._1obf7{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._1dMAB ._3S4SY ._7amXC{margin:1px 1px 1px 7px;flex-shrink:0}._1dMAB ._ZQzjq{margin-left:6px;margin-right:4px;flex-shrink:0}._1dMAB ._iIztX{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._1dMAB:focus{outline:none}body.keyboard-user ._1dMAB._VgOr9:after,body.keyboard-user ._1dMAB:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._2Gdhv{margin-right:6px}._2w22E{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._2w22E[focus-within]{z-index:30}._2w22E:focus-within{z-index:30}._oRO8C{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}._oRO8C ._2IyYF{width:100%;padding:12px 12px 11px;overflow:hidden}._oRO8C._1sa6n{background-color:#efefef;border-bottom-color:#dfdfe1}._oRO8C._3JhjN{flex-grow:1}._oRO8C:focus{outline:none}body.keyboard-user ._oRO8C._VgOr9:after,body.keyboard-user ._oRO8C:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._13KvU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._13KvU._1eWET{border-bottom-color:#d9d9d9;background-color:#fff}._2C4Fr{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}._2C4Fr._1eWET{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2C4Fr:focus input~span,._2C4Fr:hover input~span{border-color:#0b6ed0}._2C4Fr ._3rofU{position:relative;display:inline-flex}._2C4Fr ._3rofU ._3w9VN{margin:0!important}._2C4Fr ._3rofU ._RvInM{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._1bcY5{justify-content:flex-start}._2tQQy{justify-content:center;text-align:center}._1jQSF{justify-content:flex-end;text-align:right}._3eWUZ{display:none}._qG_R7{opacity:0;height:0;width:0;overflow:hidden}._25jra,._qG_R7{position:absolute}._25jra{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._Mf3y8{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_21wHW","advancedTablePaginationContainer":"_2rdPj","advancedTablePagination":"_1nMAj","advancedTableColumnHeadersRowGroup":"_2O50c","advancedTableColumnHeaders":"_1O-SM","advancedTableRowChild":"_2F-wI","pinnedContainer":"_2w22E","advancedTableRowGroup":"_lcW23","advancedTableRow":"_J4DRO","hasRowAction":"_2hPON","advancedTableExpandRowSpacer":"_13KvU","isSelected":"_37SrH","advancedTableCheckbox":"_2C4Fr","advancedTableCell":"_oRO8C","isCheckboxHovered":"_1DRoh","showFocusRing":"_VgOr9","advancedTableColumnHeader":"_1dMAB","fillRemainingSpace":"_3JhjN","isSortable":"_21REk","isDragging":"_1sa6n","isSorted":"_3FV6e","dropTargetLine":"_yCtiz","dropTargetLeft":"_27efd","dropTargetRight":"_1HxLI","dropTargetMarker":"_1a3qv","resizeHandle":"_2og_y","resizeLine":"_1nT4K","isResizing":"_31UTx","advancedTableColumnHeaderLabel":"_3S4SY","rightAligned":"_1jQSF","sortIcon":"_7amXC","advancedTableColumnHeaderLabelText":"_1obf7","advancedTableColumnHeaderMenu":"_ZQzjq","advancedTableColumnHeaderMenuHiddenAnchor":"_iIztX","advancedTableColumnHeaderMenuItemIcon":"_2Gdhv","advancedTableCellContainer":"_2IyYF","header":"_1eWET","checkboxContainer":"_3rofU","checkbox":"_3w9VN","mixed":"_RvInM","leftAligned":"_1bcY5","centerAligned":"_2tQQy","hiddenDescription":"_3eWUZ","hiddenLiveRegion":"_qG_R7","dragPreview":"_25jra","rowActionMenuPane":"_Mf3y8"};
|
|
5
|
+
var stylesheet="._21wHW{overflow:auto;position:relative;max-width:100%;max-height:100%}._2rdPj,._21wHW{background-color:#fff}._2rdPj{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._1nMAj{margin-bottom:4px}._2O50c{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1O-SM{display:flex}._1O-SM:focus{outline:none}body.keyboard-user ._1O-SM:focus ._2F-wI: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}body.keyboard-user ._1O-SM:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1O-SM:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1O-SM:focus ._2F-wI._2w22E:after{right:-3px;bottom:1px}._lcW23{padding-right:3px}._J4DRO{display:flex}._J4DRO._2hPON ._2F-wI,._J4DRO._2hPON ._13KvU{cursor:pointer}._J4DRO._37SrH ._2F-wI,._J4DRO._37SrH ._13KvU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._J4DRO._37SrH ._2F-wI._2w22E,._J4DRO._37SrH ._13KvU._2w22E{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._J4DRO._37SrH ._2F-wI._2w22E ._2C4Fr,._J4DRO._37SrH ._2F-wI._2w22E ._13KvU,._J4DRO._37SrH ._2F-wI._2w22E ._oRO8C,._J4DRO._37SrH ._13KvU._2w22E ._2C4Fr,._J4DRO._37SrH ._13KvU._2w22E ._13KvU,._J4DRO._37SrH ._13KvU._2w22E ._oRO8C{background-color:rgba(11,110,208,.08)}._J4DRO._2hPON:hover:not(._37SrH):not(._1DRoh) ._2F-wI,._J4DRO._2hPON:hover:not(._37SrH):not(._1DRoh) ._13KvU{background-color:#f9f9f9}._J4DRO._2hPON:active:not(._37SrH):not(._1DRoh) ._2F-wI,._J4DRO._2hPON:active:not(._37SrH):not(._1DRoh) ._13KvU{background-color:#f3f3f3}._J4DRO:focus{outline:none}body.keyboard-user ._J4DRO:focus ._2F-wI: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}body.keyboard-user ._J4DRO:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._J4DRO:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._J4DRO:focus ._2F-wI._2w22E:after{right:-3px;bottom:0}._J4DRO:last-of-type:focus{outline:none}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI: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}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._J4DRO:last-of-type:focus ._2F-wI._2w22E:after{right:-3px;bottom:1px}._J4DRO:last-of-type ._oRO8C:focus{outline:none}body.keyboard-user ._J4DRO:last-of-type ._oRO8C._VgOr9:after,body.keyboard-user ._J4DRO:last-of-type ._oRO8C:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._J4DRO:first-of-type:focus{outline:none}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI: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}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._J4DRO:first-of-type:focus ._2F-wI._2w22E:after{right:-3px;bottom:0}._J4DRO:first-of-type ._oRO8C:focus{outline:none}body.keyboard-user ._J4DRO:first-of-type ._oRO8C._VgOr9:after,body.keyboard-user ._J4DRO:first-of-type ._oRO8C:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1dMAB{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}._1dMAB._3JhjN{flex-grow:1}._1dMAB._21REk{cursor:pointer}._1dMAB._21REk:hover:not(._1sa6n){background-color:#f9f9f9;border-bottom-color:#6a6d70}._1dMAB._21REk:active:not(._1sa6n){background-color:#f3f3f3}._1dMAB._3FV6e:not(._1sa6n){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._1dMAB._1sa6n{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._1dMAB ._yCtiz{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._1dMAB ._yCtiz._27efd{left:-1px}._1dMAB ._yCtiz._1HxLI{right:0}._1dMAB ._1a3qv{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._1dMAB ._1a3qv._27efd{left:-2px}._1dMAB ._1a3qv._1HxLI{right:-1px}._1dMAB:first-of-type ._27efd._yCtiz{left:0;width:2px;border-left:1px solid #fff}._1dMAB:first-of-type ._27efd._1a3qv{left:0}._1dMAB:last-of-type ._1HxLI._yCtiz{right:0;width:2px;border-right:1px solid #fff}._1dMAB:last-of-type ._1HxLI._1a3qv{right:0}._1dMAB ._2og_y{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._1dMAB ._2og_y ._1nT4K{position:absolute;width:2px;right:2px;top:0;bottom:0}._1dMAB ._2og_y ._1nT4K._31UTx{background-color:#0a6ed1}._1dMAB ._2og_y:hover ._1nT4K:not(._31UTx){background-color:#d9d9d9}._1dMAB ._3S4SY{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._1dMAB ._3S4SY._1jQSF{flex-direction:row-reverse;justify-content:flex-start}._1dMAB ._3S4SY._1jQSF ._7amXC{margin:1px 7px 1px 1px}._1dMAB ._3S4SY ._1obf7{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._1dMAB ._3S4SY ._7amXC{margin:1px 1px 1px 7px;flex-shrink:0}._1dMAB ._ZQzjq{margin-left:6px;margin-right:4px;flex-shrink:0}._1dMAB ._iIztX{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._1dMAB:focus{outline:none}body.keyboard-user ._1dMAB._VgOr9:after,body.keyboard-user ._1dMAB:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._2Gdhv{margin-right:6px}._2w22E{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._2w22E[focus-within]{z-index:30}._2w22E:focus-within{z-index:30}._oRO8C{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}._oRO8C ._2IyYF{width:100%;padding:12px 12px 11px;overflow:hidden}._oRO8C._1sa6n{background-color:#efefef;border-bottom-color:#dfdfe1}._oRO8C._3JhjN{flex-grow:1}._oRO8C:focus{outline:none}body.keyboard-user ._oRO8C._VgOr9:after,body.keyboard-user ._oRO8C:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._13KvU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._13KvU._1eWET{border-bottom-color:#d9d9d9;background-color:#fff}._2C4Fr{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}._2C4Fr._1eWET{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2C4Fr:focus input~span,._2C4Fr:hover input~span{border-color:#0b6ed0}._2C4Fr ._3rofU{position:relative;display:inline-flex}._2C4Fr ._3rofU ._3w9VN{margin:0!important}._2C4Fr ._3rofU ._RvInM{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._1bcY5{justify-content:flex-start}._2tQQy{justify-content:center;text-align:center}._1jQSF{justify-content:flex-end;text-align:right}._3eWUZ{display:none}._qG_R7{opacity:0;height:0;width:0;overflow:hidden}._25jra,._qG_R7{position:absolute}._25jra{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._Mf3y8{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._20Zmx{display:inline-block;width:36px;transition:width .25s ease-out}._3uZPr{width:100%}._PGCFw>input{padding-right:0!important}._2i_3o>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_20Zmx","searchInput":"_3uZPr","searchInputCollapsed":"_PGCFw","iconButton":"_2i_3o"};
|
|
5
|
+
var stylesheet="._20Zmx{display:inline-block;width:36px;transition:width .25s ease-out}._3uZPr{width:100%}._PGCFw>input{padding-right:0!important}._2i_3o>svg{fill:#515559}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -28,6 +28,7 @@ function Combobox(_ref) {
|
|
|
28
28
|
const flyoutRef = useRef(null);
|
|
29
29
|
const flyoutId = useId();
|
|
30
30
|
const [isOpen, setIsOpen] = useState(false);
|
|
31
|
+
const [hoveredOption, setHoveredOption] = useState(null);
|
|
31
32
|
const [inputFocusRef, isComponentFocused] = useIsFocused();
|
|
32
33
|
const {
|
|
33
34
|
rawInputValue,
|
|
@@ -74,7 +75,9 @@ function Combobox(_ref) {
|
|
|
74
75
|
focusLast,
|
|
75
76
|
focusNext,
|
|
76
77
|
focusPrevious,
|
|
77
|
-
activeDescendantElement
|
|
78
|
+
activeDescendantElement,
|
|
79
|
+
hoveredOption,
|
|
80
|
+
setHoveredOption
|
|
78
81
|
}
|
|
79
82
|
}, children);
|
|
80
83
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2DwWc :after{background-color:#515559!important}._Tb0uT>input:focus{box-shadow:none!important;border:1px solid #898989!important}._1ZJtd{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}._1ZJtd ._RrsRB ._2vbkV{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}._1ZJtd ._RrsRB:first-child ._1Pvl3{display:none}._1ZJtd ._2vY2K{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._1ZJtd ._2vY2K:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._1ZJtd ._2vY2K:hover._1PuMA{background-color:#e4effa}._1ZJtd ._2vY2K._1PuMA{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._1ZJtd ._2vY2K:active:not(._1PuMA){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_2DwWc","ignoreFocusStyle":"_Tb0uT","flyout":"_1ZJtd","group":"_RrsRB","header":"_2vbkV","divider":"_1Pvl3","option":"_2vY2K","selected":"_1PuMA"};
|
|
5
|
+
var stylesheet="._2DwWc :after{background-color:#515559!important}._Tb0uT>input:focus{box-shadow:none!important;border:1px solid #898989!important}._1ZJtd{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}._1ZJtd ._RrsRB ._2vbkV{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}._1ZJtd ._RrsRB:first-child ._1Pvl3{display:none}._1ZJtd ._2vY2K{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._1ZJtd ._2vY2K:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._1ZJtd ._2vY2K:hover._1PuMA{background-color:#e4effa}._1ZJtd ._2vY2K._1PuMA{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._1ZJtd ._2vY2K:active:not(._1PuMA){background-color:#e8e9e9}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React__default, { forwardRef, useEffect } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import { useComboboxContext } from './ComboboxContext.js';
|
|
3
4
|
import '../../components/LoadingSpinner/index.js';
|
|
4
5
|
import '../../utils/index.js';
|
|
@@ -42,7 +43,8 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
42
43
|
isInvalid,
|
|
43
44
|
rootAriaLabel,
|
|
44
45
|
rootAriaLabelledBy,
|
|
45
|
-
flyoutId
|
|
46
|
+
flyoutId,
|
|
47
|
+
hoveredOption
|
|
46
48
|
} = useComboboxContext();
|
|
47
49
|
/*
|
|
48
50
|
* Creates a variation of selection follows focus.
|
|
@@ -120,7 +122,9 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
120
122
|
|
|
121
123
|
return /*#__PURE__*/React__default.createElement(Input, {
|
|
122
124
|
role: "combobox",
|
|
123
|
-
className: className,
|
|
125
|
+
className: classNames(className, {
|
|
126
|
+
[styles.ignoreFocusStyle]: hoveredOption || activeDescendantElement
|
|
127
|
+
}),
|
|
124
128
|
style: style,
|
|
125
129
|
id: id,
|
|
126
130
|
placeholder: placeholder,
|
|
@@ -22,7 +22,8 @@ function ComboboxOption(_ref) {
|
|
|
22
22
|
activeDescendantElement,
|
|
23
23
|
committedInputValue,
|
|
24
24
|
setCommittedInputValue,
|
|
25
|
-
rootDataTestId
|
|
25
|
+
rootDataTestId,
|
|
26
|
+
setHoveredOption
|
|
26
27
|
} = useComboboxContext();
|
|
27
28
|
const {
|
|
28
29
|
registerOption: registerGroupOption,
|
|
@@ -62,6 +63,8 @@ function ComboboxOption(_ref) {
|
|
|
62
63
|
setCommittedInputValue(label);
|
|
63
64
|
setIsOpen(false);
|
|
64
65
|
},
|
|
66
|
+
onMouseOver: () => setHoveredOption(containerElementRef.current),
|
|
67
|
+
onMouseLeave: () => setHoveredOption(null),
|
|
65
68
|
onMouseDown: e => e.preventDefault() // Prevents the input from getting blurred
|
|
66
69
|
,
|
|
67
70
|
"aria-selected": isOptionSelected,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._iWUoq{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}._iWUoq:hover:not(._dhb8L){background-color:rgba(50,54,58,.08)}._iWUoq:hover:not(._dhb8L)._3kcgi{border-color:#085caf;background-color:rgba(11,110,208,.04)}._iWUoq:hover:not(._dhb8L)._3kcgi ._1T604{color:#32363a}._iWUoq:hover:not(._dhb8L)._3kcgi ._1WFV2{fill:#32363a}._iWUoq:hover:not(._dhb8L)._3kcgi ._QnSTu{fill:#085caf}._iWUoq:hover:not(._dhb8L)._3kcgi ._12fhk{background-color:rgba(11,110,208,.11)}._iWUoq:hover:not(._dhb8L)._3kcgi ._12fhk ._2c06i{color:#085caf}._iWUoq:active:not(._dhb8L){background-color:#e8e9e9}._iWUoq:active:not(._dhb8L)._3kcgi{background-color:rgba(11,110,208,.11);border-color:#0854a1}._iWUoq:active:not(._dhb8L)._3kcgi ._QnSTu{fill:#0854a1}._iWUoq:active:not(._dhb8L)._3kcgi ._12fhk{background-color:rgba(11,110,208,.11)}._iWUoq:active:not(._dhb8L)._3kcgi ._12fhk ._2c06i{color:#0854a1}._iWUoq._dhb8L{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._iWUoq._3kcgi{border-color:#0b6ed0}._1WFV2{fill:#515559;margin-right:4px}._1T604{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1T604+._12fhk{margin-left:6px}._1T604._dhb8L{color:#74777a}._12fhk{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}._2c06i{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._QnSTu{fill:#515559}._QnSTu._dhb8L,._QnSTu._dhb8L._3kcgi{fill:rgba(116,119,122,.4)}._QnSTu._3kcgi{fill:#0b6ed0}._QnSTu._XKkLS{transform:rotate(-180deg)}body.keyboard-user ._iWUoq:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_iWUoq","disabled":"_dhb8L","selected":"_3kcgi","label":"_1T604","lockIcon":"_1WFV2","chevronIcon":"_QnSTu","selectedFiltersContainer":"_12fhk","selectedFilters":"_2c06i","open":"_XKkLS"};
|
|
5
|
+
var stylesheet="._iWUoq{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}._iWUoq:hover:not(._dhb8L){background-color:rgba(50,54,58,.08)}._iWUoq:hover:not(._dhb8L)._3kcgi{border-color:#085caf;background-color:rgba(11,110,208,.04)}._iWUoq:hover:not(._dhb8L)._3kcgi ._1T604{color:#32363a}._iWUoq:hover:not(._dhb8L)._3kcgi ._1WFV2{fill:#32363a}._iWUoq:hover:not(._dhb8L)._3kcgi ._QnSTu{fill:#085caf}._iWUoq:hover:not(._dhb8L)._3kcgi ._12fhk{background-color:rgba(11,110,208,.11)}._iWUoq:hover:not(._dhb8L)._3kcgi ._12fhk ._2c06i{color:#085caf}._iWUoq:active:not(._dhb8L){background-color:#e8e9e9}._iWUoq:active:not(._dhb8L)._3kcgi{background-color:rgba(11,110,208,.11);border-color:#0854a1}._iWUoq:active:not(._dhb8L)._3kcgi ._QnSTu{fill:#0854a1}._iWUoq:active:not(._dhb8L)._3kcgi ._12fhk{background-color:rgba(11,110,208,.11)}._iWUoq:active:not(._dhb8L)._3kcgi ._12fhk ._2c06i{color:#0854a1}._iWUoq._dhb8L{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._iWUoq._3kcgi{border-color:#0b6ed0}._1WFV2{fill:#515559;margin-right:4px}._1T604{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1T604+._12fhk{margin-left:6px}._1T604._dhb8L{color:#74777a}._12fhk{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}._2c06i{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._QnSTu{fill:#515559}._QnSTu._dhb8L,._QnSTu._dhb8L._3kcgi{fill:rgba(116,119,122,.4)}._QnSTu._3kcgi{fill:#0b6ed0}._QnSTu._XKkLS{transform:rotate(-180deg)}body.keyboard-user ._iWUoq:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._1kyG6{position:relative;display:inline-block;height:36px}._2EV81{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._2EV81:hover{cursor:pointer;background-color:#f5f5f5}._2EV81:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._2EV81:disabled,._2EV81[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._2EV81:disabled::-moz-placeholder,._2EV81[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2EV81:disabled::placeholder,._2EV81[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2EV81:invalid,._2EV81[aria-invalid=true]{border-color:#b00}._2EV81:invalid:focus,._2EV81[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._2EV81[type=number]{-moz-appearance:textfield}._2EV81[type=number]::-webkit-inner-spin-button,._2EV81[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._2EV81::-moz-placeholder{color:#515559;opacity:1}._2EV81::placeholder{color:#515559;opacity:1}._26G2D{pointer-events:none;color:#515559;fill:#515559}._2QJiX{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._l3RbD{color:#515559;font-size:16px}._3okfN{left:0;margin-left:6px}._3okfN,._AI66E{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._AI66E{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_1kyG6","input":"_2EV81","addOn":"_26G2D","addOnVerticalCenter":"_2QJiX","addOnTextNode":"_l3RbD","leftAddOn":"_3okfN","rightAddOn":"_AI66E"};
|
|
5
|
+
var stylesheet="._1kyG6{position:relative;display:inline-block;height:36px}._2EV81{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._2EV81:hover{cursor:pointer;background-color:#f5f5f5}._2EV81:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._2EV81:disabled,._2EV81[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._2EV81:disabled::-moz-placeholder,._2EV81[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2EV81:disabled::placeholder,._2EV81[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2EV81:invalid,._2EV81[aria-invalid=true]{border-color:#b00}._2EV81:invalid:focus,._2EV81[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._2EV81[type=number]{-moz-appearance:textfield}._2EV81[type=number]::-webkit-inner-spin-button,._2EV81[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._2EV81::-moz-placeholder{color:#515559;opacity:1}._2EV81::placeholder{color:#515559;opacity:1}._26G2D{pointer-events:none;color:#515559;fill:#515559}._2QJiX{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._l3RbD{color:#515559;font-size:16px}._3okfN{left:0;margin-left:6px}._3okfN,._AI66E{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._AI66E{right:0;margin-right:6px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Root } from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { MenuContextProvider } from './MenuContext.js';
|
|
4
|
+
import '../../hooks/index.js';
|
|
5
|
+
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
6
|
+
|
|
7
|
+
/* eslint-disable max-classes-per-file */
|
|
8
|
+
const Menu = _ref => {
|
|
9
|
+
var _process$env;
|
|
10
|
+
|
|
11
|
+
let {
|
|
12
|
+
'data-testid': dataTestId,
|
|
13
|
+
isOpen,
|
|
14
|
+
onIsOpenChange,
|
|
15
|
+
isDisabled,
|
|
16
|
+
children
|
|
17
|
+
} = _ref;
|
|
18
|
+
|
|
19
|
+
if (typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test' && window) {
|
|
20
|
+
var _window$ResizeObserve, _window$PointerEvent;
|
|
21
|
+
|
|
22
|
+
window.ResizeObserver = (_window$ResizeObserve = window.ResizeObserver) !== null && _window$ResizeObserve !== void 0 ? _window$ResizeObserve : ResizeObserver;
|
|
23
|
+
window.PointerEvent = (_window$PointerEvent = window.PointerEvent) !== null && _window$PointerEvent !== void 0 ? _window$PointerEvent : PointerEvent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const [open, setOpen] = useControllableState(isOpen, onIsOpenChange, isOpen);
|
|
27
|
+
return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
28
|
+
value: {
|
|
29
|
+
dataTestId,
|
|
30
|
+
isDisabled
|
|
31
|
+
}
|
|
32
|
+
}, /*#__PURE__*/React__default.createElement(Root, {
|
|
33
|
+
open: open,
|
|
34
|
+
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen)
|
|
35
|
+
}, children));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
class ResizeObserver {
|
|
39
|
+
constructor(cb) {
|
|
40
|
+
this.cb = cb;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
observe() {
|
|
44
|
+
this.cb([{
|
|
45
|
+
borderBoxSize: {
|
|
46
|
+
inlineSize: 0,
|
|
47
|
+
blockSize: 0
|
|
48
|
+
}
|
|
49
|
+
}]);
|
|
50
|
+
} // eslint-disable-next-line class-methods-use-this
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
unobserve() {} // eslint-disable-next-line class-methods-use-this
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
disconnect() {}
|
|
57
|
+
|
|
58
|
+
} // https://github.com/radix-ui/primitives/issues/1220#issuecomment-1087465026
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class PointerEvent extends Event {
|
|
62
|
+
constructor(type, props) {
|
|
63
|
+
super(type, props);
|
|
64
|
+
this.button = props.button || 0;
|
|
65
|
+
this.ctrlKey = props.ctrlKey || false;
|
|
66
|
+
this.pointerType = props.pointerType || 'mouse';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { Menu, Menu as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "._1VKky{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._2270H{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;background-color:transparent;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559}._2270H:hover:not([aria-disabled=true]){background-color:#f5f5f5}._2270H:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2270H+._3zQNq{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._2270H[data-state=open]+._3zQNq{transform:rotate(-180deg) translateY(50%)}._2270H[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._2270H[aria-disabled=true]+._3zQNq{fill:#515559;opacity:.4}._1IFp9{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#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:scroll}._23Nw5{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._23Nw5[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._23Nw5[aria-disabled=true]{cursor:not-allowed;opacity:.65}._23Nw5._1xqsx{padding-right:32px}._23Nw5._1xqsx ._3zQNq{position:absolute;top:8px;right:3px;fill:#515559}._2aSK3{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._19awZ{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}";
|
|
4
|
+
var styles = {"buttonContainer":"_1VKky","button":"_2270H","rightIcon":"_3zQNq","flyout":"_1IFp9","menuItem":"_23Nw5","subMenu":"_1xqsx","searchBox":"_2aSK3","emptyOption":"_19awZ"};
|
|
5
|
+
var stylesheet="._1VKky{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._2270H{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;background-color:transparent;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559}._2270H:hover:not([aria-disabled=true]){background-color:#f5f5f5}._2270H:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2270H+._3zQNq{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._2270H[data-state=open]+._3zQNq{transform:rotate(-180deg) translateY(50%)}._2270H[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._2270H[aria-disabled=true]+._3zQNq{fill:#515559;opacity:.4}._1IFp9{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#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:scroll}._23Nw5{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._23Nw5[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._23Nw5[aria-disabled=true]{cursor:not-allowed;opacity:.65}._23Nw5._1xqsx{padding-right:32px}._23Nw5._1xqsx ._3zQNq{position:absolute;top:8px;right:3px;fill:#515559}._2aSK3{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._19awZ{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}";
|
|
6
|
+
styleInject(css_248z);
|
|
7
|
+
|
|
8
|
+
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { Trigger } from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import '../../icons/index.es.js';
|
|
6
|
+
import styles from './Menu2.js';
|
|
7
|
+
import '../../utils/index.js';
|
|
8
|
+
import { useMenuContext } from './MenuContext.js';
|
|
9
|
+
import { DATA_TESTID_SUFFIXES } from './constants.js';
|
|
10
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
11
|
+
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
12
|
+
|
|
13
|
+
const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
14
|
+
let {
|
|
15
|
+
asChild,
|
|
16
|
+
children,
|
|
17
|
+
...rest
|
|
18
|
+
} = _ref;
|
|
19
|
+
const {
|
|
20
|
+
dataTestId: rootDataTestId,
|
|
21
|
+
isDisabled
|
|
22
|
+
} = useMenuContext();
|
|
23
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24
|
+
className: classNames({
|
|
25
|
+
[styles.buttonContainer]: !asChild
|
|
26
|
+
})
|
|
27
|
+
}, /*#__PURE__*/React__default.createElement(Trigger, _extends({}, rest, {
|
|
28
|
+
"aria-disabled": isDisabled,
|
|
29
|
+
className: classNames({
|
|
30
|
+
[styles.button]: !asChild
|
|
31
|
+
}),
|
|
32
|
+
asChild: asChild,
|
|
33
|
+
ref: ref,
|
|
34
|
+
"data-testid": getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
35
|
+
}), children), !asChild && /*#__PURE__*/React__default.createElement(ChevronDownIcon, {
|
|
36
|
+
className: styles.rightIcon,
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}));
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export { MenuButton, MenuButton as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import '../../utils/index.js';
|
|
3
|
+
import { ChildIndexProvider, useChildIndex } from '../../components/Dropdown/ChildIndexContext/index.js';
|
|
4
|
+
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
useContext: useMenuContext,
|
|
8
|
+
Provider: MenuContextProvider
|
|
9
|
+
} = createContextUtilities({});
|
|
10
|
+
const {
|
|
11
|
+
useContext: intermediaryUseMenuContext,
|
|
12
|
+
Provider: IntermediaryMenuContextProvider
|
|
13
|
+
} = createContextUtilities({});
|
|
14
|
+
|
|
15
|
+
const PaneContextProvider = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
items,
|
|
18
|
+
setItems,
|
|
19
|
+
value,
|
|
20
|
+
children
|
|
21
|
+
} = _ref;
|
|
22
|
+
return /*#__PURE__*/React__default.createElement(ChildIndexProvider, {
|
|
23
|
+
items: items,
|
|
24
|
+
setItems: setItems
|
|
25
|
+
}, /*#__PURE__*/React__default.createElement(IntermediaryMenuContextProvider, {
|
|
26
|
+
value: value
|
|
27
|
+
}, children));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const usePaneContext = childItemRef => {
|
|
31
|
+
const coreContext = intermediaryUseMenuContext();
|
|
32
|
+
const childIndex = useChildIndex({
|
|
33
|
+
element: childItemRef
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
childIndex,
|
|
37
|
+
...coreContext
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { MenuContextProvider, PaneContextProvider, useMenuContext, usePaneContext };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
|
+
import React__default, { useRef, useMemo } from 'react';
|
|
4
|
+
import { Item } from '@radix-ui/react-dropdown-menu';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import styles from './Menu2.js';
|
|
7
|
+
import { usePaneContext } from './MenuContext.js';
|
|
8
|
+
import '../../utils/index.js';
|
|
9
|
+
import { DATA_TESTID_SUFFIXES } from './constants.js';
|
|
10
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
11
|
+
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
12
|
+
|
|
13
|
+
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
14
|
+
let {
|
|
15
|
+
isDisabled,
|
|
16
|
+
asChild,
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
onSelect,
|
|
20
|
+
label,
|
|
21
|
+
...rest
|
|
22
|
+
} = _ref;
|
|
23
|
+
const itemRef = useRef(null);
|
|
24
|
+
const {
|
|
25
|
+
dataTestId: menuParentDataTestId,
|
|
26
|
+
childIndex: index,
|
|
27
|
+
searchValue,
|
|
28
|
+
isSearchFilteringDisabled
|
|
29
|
+
} = usePaneContext(itemRef);
|
|
30
|
+
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index));
|
|
31
|
+
const isVisible = useMemo(() => {
|
|
32
|
+
var _context;
|
|
33
|
+
|
|
34
|
+
const searchMatcher = label !== null && label !== void 0 ? label : typeof children === 'string' ? children : undefined;
|
|
35
|
+
return isSearchFilteringDisabled || !searchValue || (searchMatcher === null || searchMatcher === void 0 ? void 0 : _includesInstanceProperty(_context = searchMatcher.toLowerCase()).call(_context, searchValue.toLowerCase()));
|
|
36
|
+
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
37
|
+
return isVisible ? /*#__PURE__*/React__default.createElement(Item, _extends({}, rest, {
|
|
38
|
+
asChild: asChild,
|
|
39
|
+
"aria-disabled": isDisabled,
|
|
40
|
+
className: classNames(className, styles.menuItem),
|
|
41
|
+
"data-testid": dataTestId,
|
|
42
|
+
ref: mergeRefs(ref, itemRef) // stop radix from closing the menu on selection of disabled item
|
|
43
|
+
// other pointer and keyboard events still work, even when disabled
|
|
44
|
+
,
|
|
45
|
+
onSelect: e => isDisabled ? e.preventDefault() : onSelect === null || onSelect === void 0 ? void 0 : onSelect()
|
|
46
|
+
}), (!children || typeof children === 'string') && label ? label : children) : null;
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { MenuItem, MenuItem as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default, { useMemo, useState, useRef } from 'react';
|
|
3
|
+
import { Portal, Content } from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import styles from './Menu2.js';
|
|
5
|
+
import { usePortalTarget } from '../../components/UIProvider/PortalTargetContext.js';
|
|
6
|
+
import { useMenuContext, PaneContextProvider } from './MenuContext.js';
|
|
7
|
+
import '../../utils/index.js';
|
|
8
|
+
import { DATA_TESTID_SUFFIXES } from './constants.js';
|
|
9
|
+
import { MenuSearch } from './MenuSearch.js';
|
|
10
|
+
import '../../hooks/index.js';
|
|
11
|
+
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
12
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
13
|
+
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
14
|
+
|
|
15
|
+
const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
16
|
+
let {
|
|
17
|
+
placement,
|
|
18
|
+
children,
|
|
19
|
+
isSearchable,
|
|
20
|
+
searchValue: externalSearchValue,
|
|
21
|
+
onSearchValueChange,
|
|
22
|
+
isSearchFilteringDisabled = false,
|
|
23
|
+
...rest
|
|
24
|
+
} = _ref;
|
|
25
|
+
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
26
|
+
const portalTarget = usePortalTarget();
|
|
27
|
+
const [side, align] = useMemo(() => {
|
|
28
|
+
var _placement$split, _placement$split2;
|
|
29
|
+
|
|
30
|
+
return (_placement$split = placement === null || placement === void 0 ? void 0 : (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
|
|
31
|
+
}, [placement]);
|
|
32
|
+
const [items, setItems] = useState([]);
|
|
33
|
+
const {
|
|
34
|
+
dataTestId: rootDataTestId
|
|
35
|
+
} = useMenuContext();
|
|
36
|
+
const dataTestId = getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
37
|
+
const paneRef = useRef(null);
|
|
38
|
+
return /*#__PURE__*/React__default.createElement(PaneContextProvider, {
|
|
39
|
+
items: items,
|
|
40
|
+
setItems: setItems,
|
|
41
|
+
value: {
|
|
42
|
+
dataTestId,
|
|
43
|
+
searchValue: internalSearchValue,
|
|
44
|
+
paneRef,
|
|
45
|
+
isSearchFilteringDisabled
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/React__default.createElement(Portal, {
|
|
48
|
+
container: portalTarget || undefined
|
|
49
|
+
}, /*#__PURE__*/React__default.createElement(Content, _extends({}, rest, {
|
|
50
|
+
sideOffset: 6,
|
|
51
|
+
loop: true,
|
|
52
|
+
side: side || 'bottom',
|
|
53
|
+
align: align || 'start',
|
|
54
|
+
className: styles.flyout,
|
|
55
|
+
ref: mergeRefs(ref, paneRef),
|
|
56
|
+
"data-testid": dataTestId
|
|
57
|
+
}), isSearchable && /*#__PURE__*/React__default.createElement(MenuSearch, {
|
|
58
|
+
setSearchValue: setSearchValue,
|
|
59
|
+
items: items,
|
|
60
|
+
paneRef: paneRef
|
|
61
|
+
}), children)));
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export { MenuPane, MenuPane as default };
|