@qualtrics/ui-react 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/__shared/cjs/{index-0ef0b03a.js → index-30148ada.js} +3 -3
- package/dist/__shared/cjs/{index-74ef768b.js → index-bb7befc3.js} +63 -50
- 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/Combobox2.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/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/hooks/useOverlay/index.js +1 -0
- package/dist/hooks/useOverlay/useOverlay.js +70 -0
- package/dist/hooks/useOverlay/useOverlay2.js +8 -0
- 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 +88 -101
- 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/Drawer.js +138 -0
- package/dist/next/Drawer/Drawer2.js +8 -0
- package/dist/next/Drawer/index.js +1 -0
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.d.ts +19 -0
- package/dist/next/index.es.js +2 -0
- package/dist/next/index.js +335 -145
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +11 -10
package/dist/next/index.js
CHANGED
|
@@ -9,15 +9,15 @@ var classNames = require('classnames');
|
|
|
9
9
|
var reactDnd = require('react-dnd');
|
|
10
10
|
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
11
11
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
12
|
-
var index = require('../__shared/cjs/index-
|
|
13
|
-
var icons_index = require('../__shared/cjs/index-
|
|
12
|
+
var index = require('../__shared/cjs/index-bb7befc3.js');
|
|
13
|
+
var icons_index = require('../__shared/cjs/index-30148ada.js');
|
|
14
14
|
var libphonenumberJs = require('libphonenumber-js');
|
|
15
15
|
var InputMask = require('react-input-mask');
|
|
16
16
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
17
|
+
var ReactDOM = require('react-dom');
|
|
17
18
|
require('react-popper');
|
|
18
19
|
require('@popperjs/core');
|
|
19
20
|
require('react-focus-lock');
|
|
20
|
-
require('react-dom');
|
|
21
21
|
require('uuid');
|
|
22
22
|
|
|
23
23
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -29,10 +29,10 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
29
29
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
30
30
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
31
31
|
|
|
32
|
-
var css_248z$
|
|
33
|
-
var styles$
|
|
34
|
-
var stylesheet$
|
|
35
|
-
icons_index.styleInject(css_248z$
|
|
32
|
+
var css_248z$8 = "._2Ncei{overflow:auto;position:relative;max-width:100%;max-height:100%}._1cQOk,._2Ncei{background-color:#fff}._1cQOk{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3KjJ6{margin-bottom:4px}._3YOx6{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1OcSx{display:flex}._1OcSx:focus{outline:none}body.keyboard-user ._1OcSx:focus ._1soIE: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 ._1OcSx:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._2Rozy{padding-right:3px}._3EHvj{display:flex}._3EHvj._s3590 ._1soIE,._3EHvj._s3590 ._-N4DU{cursor:pointer}._3EHvj._gUh68 ._1soIE,._3EHvj._gUh68 ._-N4DU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7,._3EHvj._gUh68 ._-N4DU._1UaW7{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._1soIE._1UaW7 ._-N4DU,._3EHvj._gUh68 ._1soIE._1UaW7 ._Q4R61,._3EHvj._gUh68 ._-N4DU._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._-N4DU._1UaW7 ._-N4DU,._3EHvj._gUh68 ._-N4DU._1UaW7 ._Q4R61{background-color:rgba(11,110,208,.08)}._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f9f9f9}._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f3f3f3}._3EHvj:focus{outline:none}body.keyboard-user ._3EHvj:focus ._1soIE: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 ._3EHvj:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:last-of-type:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE: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 ._3EHvj:last-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._3EHvj:last-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:last-of-type ._Q4R61: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}._3EHvj:first-of-type:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE: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 ._3EHvj:first-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:first-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:first-of-type ._Q4R61: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}._3waN3{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}._3waN3._3KBnI{flex-grow:1}._3waN3._2D2iK{cursor:pointer}._3waN3._2D2iK:hover:not(._3feBE){background-color:#f9f9f9;border-bottom-color:#6a6d70}._3waN3._2D2iK:active:not(._3feBE){background-color:#f3f3f3}._3waN3._W3H3V:not(._3feBE){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._3waN3._3feBE{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._3waN3 ._11tWJ{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._3waN3 ._11tWJ._EvGit{left:-1px}._3waN3 ._11tWJ._2YUgn{right:0}._3waN3 ._6uIOl{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._3waN3 ._6uIOl._EvGit{left:-2px}._3waN3 ._6uIOl._2YUgn{right:-1px}._3waN3:first-of-type ._EvGit._11tWJ{left:0;width:2px;border-left:1px solid #fff}._3waN3:first-of-type ._EvGit._6uIOl{left:0}._3waN3:last-of-type ._2YUgn._11tWJ{right:0;width:2px;border-right:1px solid #fff}._3waN3:last-of-type ._2YUgn._6uIOl{right:0}._3waN3 ._CX4V_{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._3waN3 ._CX4V_ ._3hO27{position:absolute;width:2px;right:2px;top:0;bottom:0}._3waN3 ._CX4V_ ._3hO27._1gr-e{background-color:#0a6ed1}._3waN3 ._CX4V_:hover ._3hO27:not(._1gr-e){background-color:#d9d9d9}._3waN3 ._JIVw9{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._3waN3 ._JIVw9._3yGZi{flex-direction:row-reverse;justify-content:flex-start}._3waN3 ._JIVw9._3yGZi ._10kk3{margin:1px 7px 1px 1px}._3waN3 ._JIVw9 ._1grAv{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._3waN3 ._JIVw9 ._10kk3{margin:1px 1px 1px 7px;flex-shrink:0}._3waN3 ._vAUNY{margin-left:6px;margin-right:4px;flex-shrink:0}._3waN3 ._2A4ZW{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._3waN3:focus{outline:none}body.keyboard-user ._3waN3._3hCtD:after,body.keyboard-user ._3waN3: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}._1Oebn{margin-right:6px}._1UaW7{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1UaW7[focus-within]{z-index:30}._1UaW7:focus-within{z-index:30}._Q4R61{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}._Q4R61 ._1sg8r{width:100%;padding:12px 12px 11px;overflow:hidden}._Q4R61._3feBE{background-color:#efefef;border-bottom-color:#dfdfe1}._Q4R61._3KBnI{flex-grow:1}._Q4R61:focus{outline:none}body.keyboard-user ._Q4R61._3hCtD:after,body.keyboard-user ._Q4R61: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}._-N4DU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._-N4DU._SFCdv{border-bottom-color:#d9d9d9;background-color:#fff}._3Q2T5{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}._3Q2T5._SFCdv{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._3Q2T5:focus input~span,._3Q2T5:hover input~span{border-color:#0b6ed0}._3Q2T5 ._1t4Ia{position:relative;display:inline-flex}._3Q2T5 ._1t4Ia ._2UyTY{margin:0!important}._3Q2T5 ._1t4Ia ._3Mq3x{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._14Vw4{justify-content:flex-start}._3kA0P{justify-content:center;text-align:center}._3yGZi{justify-content:flex-end;text-align:right}._1VQCv{display:none}._3NiHA{opacity:0;height:0;width:0;overflow:hidden}._3e7k1,._3NiHA{position:absolute}._3e7k1{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._1aVya{width:246px}";
|
|
33
|
+
var styles$8 = {"advancedTable":"_2Ncei","advancedTablePaginationContainer":"_1cQOk","advancedTablePagination":"_3KjJ6","advancedTableColumnHeadersRowGroup":"_3YOx6","advancedTableColumnHeaders":"_1OcSx","advancedTableRowChild":"_1soIE","pinnedContainer":"_1UaW7","advancedTableRowGroup":"_2Rozy","advancedTableRow":"_3EHvj","hasRowAction":"_s3590","advancedTableExpandRowSpacer":"_-N4DU","isSelected":"_gUh68","advancedTableCheckbox":"_3Q2T5","advancedTableCell":"_Q4R61","isCheckboxHovered":"_pgUX9","showFocusRing":"_3hCtD","advancedTableColumnHeader":"_3waN3","fillRemainingSpace":"_3KBnI","isSortable":"_2D2iK","isDragging":"_3feBE","isSorted":"_W3H3V","dropTargetLine":"_11tWJ","dropTargetLeft":"_EvGit","dropTargetRight":"_2YUgn","dropTargetMarker":"_6uIOl","resizeHandle":"_CX4V_","resizeLine":"_3hO27","isResizing":"_1gr-e","advancedTableColumnHeaderLabel":"_JIVw9","rightAligned":"_3yGZi","sortIcon":"_10kk3","advancedTableColumnHeaderLabelText":"_1grAv","advancedTableColumnHeaderMenu":"_vAUNY","advancedTableColumnHeaderMenuHiddenAnchor":"_2A4ZW","advancedTableColumnHeaderMenuItemIcon":"_1Oebn","advancedTableCellContainer":"_1sg8r","header":"_SFCdv","checkboxContainer":"_1t4Ia","checkbox":"_2UyTY","mixed":"_3Mq3x","leftAligned":"_14Vw4","centerAligned":"_3kA0P","hiddenDescription":"_1VQCv","hiddenLiveRegion":"_3NiHA","dragPreview":"_3e7k1","rowActionMenuPane":"_1aVya"};
|
|
34
|
+
var stylesheet$8="._2Ncei{overflow:auto;position:relative;max-width:100%;max-height:100%}._1cQOk,._2Ncei{background-color:#fff}._1cQOk{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3KjJ6{margin-bottom:4px}._3YOx6{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1OcSx{display:flex}._1OcSx:focus{outline:none}body.keyboard-user ._1OcSx:focus ._1soIE: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 ._1OcSx:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._2Rozy{padding-right:3px}._3EHvj{display:flex}._3EHvj._s3590 ._1soIE,._3EHvj._s3590 ._-N4DU{cursor:pointer}._3EHvj._gUh68 ._1soIE,._3EHvj._gUh68 ._-N4DU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7,._3EHvj._gUh68 ._-N4DU._1UaW7{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._1soIE._1UaW7 ._-N4DU,._3EHvj._gUh68 ._1soIE._1UaW7 ._Q4R61,._3EHvj._gUh68 ._-N4DU._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._-N4DU._1UaW7 ._-N4DU,._3EHvj._gUh68 ._-N4DU._1UaW7 ._Q4R61{background-color:rgba(11,110,208,.08)}._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f9f9f9}._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f3f3f3}._3EHvj:focus{outline:none}body.keyboard-user ._3EHvj:focus ._1soIE: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 ._3EHvj:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:last-of-type:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE: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 ._3EHvj:last-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._3EHvj:last-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:last-of-type ._Q4R61: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}._3EHvj:first-of-type:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE: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 ._3EHvj:first-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:first-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:first-of-type ._Q4R61: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}._3waN3{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}._3waN3._3KBnI{flex-grow:1}._3waN3._2D2iK{cursor:pointer}._3waN3._2D2iK:hover:not(._3feBE){background-color:#f9f9f9;border-bottom-color:#6a6d70}._3waN3._2D2iK:active:not(._3feBE){background-color:#f3f3f3}._3waN3._W3H3V:not(._3feBE){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._3waN3._3feBE{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._3waN3 ._11tWJ{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._3waN3 ._11tWJ._EvGit{left:-1px}._3waN3 ._11tWJ._2YUgn{right:0}._3waN3 ._6uIOl{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._3waN3 ._6uIOl._EvGit{left:-2px}._3waN3 ._6uIOl._2YUgn{right:-1px}._3waN3:first-of-type ._EvGit._11tWJ{left:0;width:2px;border-left:1px solid #fff}._3waN3:first-of-type ._EvGit._6uIOl{left:0}._3waN3:last-of-type ._2YUgn._11tWJ{right:0;width:2px;border-right:1px solid #fff}._3waN3:last-of-type ._2YUgn._6uIOl{right:0}._3waN3 ._CX4V_{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._3waN3 ._CX4V_ ._3hO27{position:absolute;width:2px;right:2px;top:0;bottom:0}._3waN3 ._CX4V_ ._3hO27._1gr-e{background-color:#0a6ed1}._3waN3 ._CX4V_:hover ._3hO27:not(._1gr-e){background-color:#d9d9d9}._3waN3 ._JIVw9{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._3waN3 ._JIVw9._3yGZi{flex-direction:row-reverse;justify-content:flex-start}._3waN3 ._JIVw9._3yGZi ._10kk3{margin:1px 7px 1px 1px}._3waN3 ._JIVw9 ._1grAv{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._3waN3 ._JIVw9 ._10kk3{margin:1px 1px 1px 7px;flex-shrink:0}._3waN3 ._vAUNY{margin-left:6px;margin-right:4px;flex-shrink:0}._3waN3 ._2A4ZW{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._3waN3:focus{outline:none}body.keyboard-user ._3waN3._3hCtD:after,body.keyboard-user ._3waN3: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}._1Oebn{margin-right:6px}._1UaW7{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1UaW7[focus-within]{z-index:30}._1UaW7:focus-within{z-index:30}._Q4R61{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}._Q4R61 ._1sg8r{width:100%;padding:12px 12px 11px;overflow:hidden}._Q4R61._3feBE{background-color:#efefef;border-bottom-color:#dfdfe1}._Q4R61._3KBnI{flex-grow:1}._Q4R61:focus{outline:none}body.keyboard-user ._Q4R61._3hCtD:after,body.keyboard-user ._Q4R61: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}._-N4DU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._-N4DU._SFCdv{border-bottom-color:#d9d9d9;background-color:#fff}._3Q2T5{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}._3Q2T5._SFCdv{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._3Q2T5:focus input~span,._3Q2T5:hover input~span{border-color:#0b6ed0}._3Q2T5 ._1t4Ia{position:relative;display:inline-flex}._3Q2T5 ._1t4Ia ._2UyTY{margin:0!important}._3Q2T5 ._1t4Ia ._3Mq3x{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._14Vw4{justify-content:flex-start}._3kA0P{justify-content:center;text-align:center}._3yGZi{justify-content:flex-end;text-align:right}._1VQCv{display:none}._3NiHA{opacity:0;height:0;width:0;overflow:hidden}._3e7k1,._3NiHA{position:absolute}._3e7k1{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._1aVya{width:246px}";
|
|
35
|
+
icons_index.styleInject(css_248z$8);
|
|
36
36
|
|
|
37
37
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
38
38
|
// Also Alignment, etc can be defined directly and have AdvancedTableColumnConfig use them instead of the reverse like now.
|
|
@@ -97,7 +97,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
97
97
|
"date-testid": menuItemDataTestId
|
|
98
98
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
99
99
|
size: "small",
|
|
100
|
-
className: styles$
|
|
100
|
+
className: styles$8.advancedTableColumnHeaderMenuItemIcon,
|
|
101
101
|
"aria-hidden": "true"
|
|
102
102
|
}), label);
|
|
103
103
|
};
|
|
@@ -151,7 +151,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
151
151
|
"data-testid": index.getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index$1, "-").concat(SortDirections.Ascending))
|
|
152
152
|
}, /*#__PURE__*/React__default["default"].createElement(AscendingIconComponent, {
|
|
153
153
|
size: "small",
|
|
154
|
-
className: styles$
|
|
154
|
+
className: styles$8.advancedTableColumnHeaderMenuItemIcon,
|
|
155
155
|
"aria-hidden": "true"
|
|
156
156
|
}), ascendingLabel), /*#__PURE__*/React__default["default"].createElement(index.MenuItem, {
|
|
157
157
|
key: descendingValue,
|
|
@@ -160,7 +160,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
160
160
|
"data-testid": index.getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index$1, "-").concat(SortDirections.Descending))
|
|
161
161
|
}, /*#__PURE__*/React__default["default"].createElement(DescendingIconComponent, {
|
|
162
162
|
size: "small",
|
|
163
|
-
className: styles$
|
|
163
|
+
className: styles$8.advancedTableColumnHeaderMenuItemIcon,
|
|
164
164
|
"aria-hidden": "true"
|
|
165
165
|
}), descendingLabel)];
|
|
166
166
|
}), (sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length) && (onIsPinnedChange || onMoveLeft || onMoveRight) && /*#__PURE__*/React__default["default"].createElement(index.Divider, null), pinItem, onMoveLeft && getActionMenuItem({
|
|
@@ -413,7 +413,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
413
413
|
const selectedSortIcon = isSorted ? /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
414
414
|
"aria-hidden": "true",
|
|
415
415
|
focusable: "false",
|
|
416
|
-
className: styles$
|
|
416
|
+
className: styles$8.sortIcon,
|
|
417
417
|
width: "10",
|
|
418
418
|
height: "10",
|
|
419
419
|
viewBox: "0 0 10 10",
|
|
@@ -607,28 +607,28 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
607
607
|
onFocus: onFocus,
|
|
608
608
|
onClick: isSortable ? handleClick : undefined,
|
|
609
609
|
tabIndex: isFocused ? 0 : -1,
|
|
610
|
-
className: classNames__default["default"](styles$
|
|
611
|
-
[styles$
|
|
610
|
+
className: classNames__default["default"](styles$8.advancedTableColumnHeader, {
|
|
611
|
+
[styles$8.advancedTableRowChild]: !isPinned,
|
|
612
612
|
// if nested inside of pinned container, not a direct row child
|
|
613
|
-
[styles$
|
|
614
|
-
[styles$
|
|
615
|
-
[styles$
|
|
616
|
-
[styles$
|
|
617
|
-
[styles$
|
|
613
|
+
[styles$8.isSortable]: isSortable,
|
|
614
|
+
[styles$8.isSorted]: isSorted,
|
|
615
|
+
[styles$8.showFocusRing]: isHiddenMenuOpen,
|
|
616
|
+
[styles$8.isDragging]: isDragging,
|
|
617
|
+
[styles$8.fillRemainingSpace]: width === undefined
|
|
618
618
|
}),
|
|
619
619
|
style: {
|
|
620
620
|
width: computedWidth
|
|
621
621
|
},
|
|
622
622
|
ref: index.mergeRefs(columnHeaderRef, dragRef, dropRef, ref)
|
|
623
623
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
624
|
-
className: classNames__default["default"](styles$
|
|
625
|
-
[styles$
|
|
626
|
-
[styles$
|
|
627
|
-
[styles$
|
|
624
|
+
className: classNames__default["default"](styles$8.advancedTableColumnHeaderLabel, {
|
|
625
|
+
[styles$8.leftAligned]: alignment === 'left',
|
|
626
|
+
[styles$8.centerAligned]: alignment === 'center',
|
|
627
|
+
[styles$8.rightAligned]: alignment === 'right'
|
|
628
628
|
}),
|
|
629
629
|
ref: labelContainerRef
|
|
630
630
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
631
|
-
className: styles$
|
|
631
|
+
className: styles$8.advancedTableColumnHeaderLabelText,
|
|
632
632
|
style: {
|
|
633
633
|
WebkitLineClamp: headerMaxLines
|
|
634
634
|
},
|
|
@@ -639,7 +639,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
639
639
|
anchor: /*#__PURE__*/React__default["default"].createElement(index.IconButton, {
|
|
640
640
|
tabIndex: -1,
|
|
641
641
|
"aria-hidden": "true",
|
|
642
|
-
className: styles$
|
|
642
|
+
className: styles$8.advancedTableColumnHeaderMenu
|
|
643
643
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, null))
|
|
644
644
|
})), /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeaderMenu, _extends__default["default"]({}, commonMenuProps, {
|
|
645
645
|
isOpen: isHiddenMenuOpen,
|
|
@@ -654,31 +654,31 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
654
654
|
|
|
655
655
|
(_columnHeaderRef$curr5 = columnHeaderRef.current) === null || _columnHeaderRef$curr5 === void 0 ? void 0 : _columnHeaderRef$curr5.focus();
|
|
656
656
|
},
|
|
657
|
-
className: styles$
|
|
657
|
+
className: styles$8.advancedTableColumnHeaderMenuHiddenAnchor
|
|
658
658
|
})
|
|
659
659
|
}))), dropTargetSide && !isRowActionMenuColumn && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
660
|
-
className: classNames__default["default"](styles$
|
|
661
|
-
[styles$
|
|
662
|
-
[styles$
|
|
660
|
+
className: classNames__default["default"](styles$8.dropTargetLine, {
|
|
661
|
+
[styles$8.dropTargetLeft]: dropTargetSide === 'left',
|
|
662
|
+
[styles$8.dropTargetRight]: dropTargetSide === 'right'
|
|
663
663
|
}),
|
|
664
664
|
style: {
|
|
665
665
|
height: tableHeight
|
|
666
666
|
}
|
|
667
667
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
668
|
-
className: classNames__default["default"](styles$
|
|
669
|
-
[styles$
|
|
670
|
-
[styles$
|
|
668
|
+
className: classNames__default["default"](styles$8.dropTargetMarker, {
|
|
669
|
+
[styles$8.dropTargetLeft]: dropTargetSide === 'left',
|
|
670
|
+
[styles$8.dropTargetRight]: dropTargetSide === 'right'
|
|
671
671
|
})
|
|
672
672
|
})), onWidthChange && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
673
673
|
"aria-hidden": true,
|
|
674
|
-
className: styles$
|
|
674
|
+
className: styles$8.resizeHandle,
|
|
675
675
|
style: {
|
|
676
676
|
height: tableHeight
|
|
677
677
|
},
|
|
678
678
|
onMouseDown: handleMouseDown
|
|
679
679
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
680
|
-
className: classNames__default["default"](styles$
|
|
681
|
-
[styles$
|
|
680
|
+
className: classNames__default["default"](styles$8.resizeLine, {
|
|
681
|
+
[styles$8.isResizing]: isResizing
|
|
682
682
|
})
|
|
683
683
|
}))));
|
|
684
684
|
});
|
|
@@ -759,19 +759,19 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
759
759
|
onFocus: handleFocus,
|
|
760
760
|
onBlur: handleBlur,
|
|
761
761
|
tabIndex: isFocused && !isEditing ? 0 : -1,
|
|
762
|
-
className: classNames__default["default"](className, styles$
|
|
763
|
-
[styles$
|
|
764
|
-
[styles$
|
|
765
|
-
[styles$
|
|
766
|
-
[styles$
|
|
767
|
-
[styles$
|
|
762
|
+
className: classNames__default["default"](className, styles$8.advancedTableCell, {
|
|
763
|
+
[styles$8.leftAligned]: alignment === Alignments.Left,
|
|
764
|
+
[styles$8.centerAligned]: alignment === Alignments.Center,
|
|
765
|
+
[styles$8.rightAligned]: alignment === Alignments.Right,
|
|
766
|
+
[styles$8.isDragging]: isDragging,
|
|
767
|
+
[styles$8.fillRemainingSpace]: width === undefined
|
|
768
768
|
}),
|
|
769
769
|
style: {
|
|
770
770
|
width: computedWidth
|
|
771
771
|
},
|
|
772
772
|
ref: index.mergeRefs(ref, cellRef)
|
|
773
773
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
774
|
-
className: styles$
|
|
774
|
+
className: styles$8.advancedTableCellContainer
|
|
775
775
|
}, typeof renderCellContent === 'function' ? renderCellContent({
|
|
776
776
|
value,
|
|
777
777
|
setValue,
|
|
@@ -807,10 +807,10 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
807
807
|
onKeyDown: isFocusable ? onKeyDown : undefined,
|
|
808
808
|
onFocus: isFocusable ? onFocus : undefined,
|
|
809
809
|
onClick: hasOnRowSelect ? onClick : undefined,
|
|
810
|
-
className: classNames__default["default"](styles$
|
|
811
|
-
[styles$
|
|
812
|
-
[styles$
|
|
813
|
-
[styles$
|
|
810
|
+
className: classNames__default["default"](styles$8.advancedTableRow, {
|
|
811
|
+
[styles$8.hasRowAction]: hasOnRowSelect,
|
|
812
|
+
[styles$8.isSelected]: hasOnRowSelect && isSelected,
|
|
813
|
+
[styles$8.isCheckboxHovered]: isCheckboxHovered
|
|
814
814
|
}),
|
|
815
815
|
ref: isFocusable ? ref : undefined
|
|
816
816
|
}), children);
|
|
@@ -830,7 +830,7 @@ const AdvancedTableColumnHeaders = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
830
830
|
tabIndex: isFocusable ? isFocused ? 0 : -1 : undefined,
|
|
831
831
|
onKeyDown: isFocusable ? onKeyDown : undefined,
|
|
832
832
|
onFocus: isFocusable ? onFocus : undefined,
|
|
833
|
-
className: styles$
|
|
833
|
+
className: styles$8.advancedTableColumnHeaders,
|
|
834
834
|
ref: ref
|
|
835
835
|
}), children);
|
|
836
836
|
});
|
|
@@ -859,17 +859,17 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
859
859
|
onClick: onClick,
|
|
860
860
|
onMouseEnter: onMouseEnter,
|
|
861
861
|
onMouseLeave: onMouseLeave,
|
|
862
|
-
className: classNames__default["default"](styles$
|
|
863
|
-
[styles$
|
|
862
|
+
className: classNames__default["default"](styles$8.advancedTableCheckbox, {
|
|
863
|
+
[styles$8.header]: variant === 'header'
|
|
864
864
|
}),
|
|
865
865
|
"aria-live": isRowFocused ? 'polite' : undefined,
|
|
866
866
|
"aria-relevant": "text"
|
|
867
867
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
868
|
-
className: styles$
|
|
868
|
+
className: styles$8.hiddenLiveRegion
|
|
869
869
|
}, labels[state]), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
870
|
-
className: styles$
|
|
870
|
+
className: styles$8.checkboxContainer
|
|
871
871
|
}, /*#__PURE__*/React__default["default"].createElement(index.Checkbox, {
|
|
872
|
-
className: styles$
|
|
872
|
+
className: styles$8.checkbox,
|
|
873
873
|
"aria-hidden": true,
|
|
874
874
|
checked: state === 'true',
|
|
875
875
|
onChange: () => {
|
|
@@ -881,7 +881,7 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
881
881
|
onFocus
|
|
882
882
|
}
|
|
883
883
|
}), state === 'mixed' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
884
|
-
className: styles$
|
|
884
|
+
className: styles$8.mixed
|
|
885
885
|
})));
|
|
886
886
|
};
|
|
887
887
|
|
|
@@ -894,7 +894,7 @@ const AdvancedTableHiddenDescription = _ref => {
|
|
|
894
894
|
translate
|
|
895
895
|
} = index.useTranslation();
|
|
896
896
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
897
|
-
className: styles$
|
|
897
|
+
className: styles$8.hiddenDescription,
|
|
898
898
|
id: id
|
|
899
899
|
}, translate(messageKey));
|
|
900
900
|
};
|
|
@@ -918,7 +918,7 @@ const AdvancedTableDragPreview = _ref => {
|
|
|
918
918
|
const top = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.y) || 0;
|
|
919
919
|
const left = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.x) || 0;
|
|
920
920
|
return /*#__PURE__*/React__default["default"].createElement(index.Portal, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
921
|
-
className: styles$
|
|
921
|
+
className: styles$8.dragPreview,
|
|
922
922
|
style: {
|
|
923
923
|
height,
|
|
924
924
|
width,
|
|
@@ -950,9 +950,9 @@ const AdvancedTablePagination = _ref => {
|
|
|
950
950
|
};
|
|
951
951
|
|
|
952
952
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
953
|
-
className: styles$
|
|
953
|
+
className: styles$8.advancedTablePaginationContainer
|
|
954
954
|
}, /*#__PURE__*/React__default["default"].createElement(index.Pagination, {
|
|
955
|
-
className: styles$
|
|
955
|
+
className: styles$8.advancedTablePagination,
|
|
956
956
|
"aria-label": ariaLabel,
|
|
957
957
|
numPages: Math.max(Math.ceil(rows.length / rowsPerPage), 1),
|
|
958
958
|
currentPage: currentPage,
|
|
@@ -1088,7 +1088,7 @@ const AdvancedTable = _ref => {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default["default"].createElement(index.DropdownList, {
|
|
1091
|
-
className: styles$
|
|
1091
|
+
className: styles$8.rowActionMenuPane
|
|
1092
1092
|
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
1093
1093
|
var _actionGroup$actions;
|
|
1094
1094
|
|
|
@@ -1615,8 +1615,8 @@ const AdvancedTable = _ref => {
|
|
|
1615
1615
|
const getExpandableRowsSpacer = function (width, inHeader) {
|
|
1616
1616
|
let children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
1617
1617
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1618
|
-
className: classNames__default["default"](styles$
|
|
1619
|
-
[styles$
|
|
1618
|
+
className: classNames__default["default"](styles$8.advancedTableExpandRowSpacer, {
|
|
1619
|
+
[styles$8.header]: inHeader
|
|
1620
1620
|
}),
|
|
1621
1621
|
style: {
|
|
1622
1622
|
width
|
|
@@ -1664,7 +1664,7 @@ const AdvancedTable = _ref => {
|
|
|
1664
1664
|
return /*#__PURE__*/React__default["default"].createElement(reactDnd.DndProvider, {
|
|
1665
1665
|
backend: reactDndHtml5Backend.HTML5Backend
|
|
1666
1666
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1667
|
-
className: styles$
|
|
1667
|
+
className: styles$8.advancedTable,
|
|
1668
1668
|
role: hasExpandableRows ? 'treegrid' : 'grid',
|
|
1669
1669
|
"aria-multiselectable": hasExpandableRows && hasCheckboxColumn ? true : undefined,
|
|
1670
1670
|
"aria-rowcount": rows ? rows.length + 1 : 0,
|
|
@@ -1688,7 +1688,7 @@ const AdvancedTable = _ref => {
|
|
|
1688
1688
|
messageKey: "advancedTable.rowCheckboxDescription"
|
|
1689
1689
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1690
1690
|
role: "rowgroup",
|
|
1691
|
-
className: classNames__default["default"](styles$
|
|
1691
|
+
className: classNames__default["default"](styles$8.advancedTableColumnHeadersRowGroup, styles$8.advancedTableRowGroup)
|
|
1692
1692
|
}, /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeaders, {
|
|
1693
1693
|
"aria-rowindex": hasExpandableRows ? undefined : 1,
|
|
1694
1694
|
"aria-level": hasExpandableRows ? 1 : undefined // aria-level is one-indexed
|
|
@@ -1703,7 +1703,7 @@ const AdvancedTable = _ref => {
|
|
|
1703
1703
|
ref: createRef(headerRowIndex, -1)
|
|
1704
1704
|
}, hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1705
1705
|
role: "presentation",
|
|
1706
|
-
className: classNames__default["default"](styles$
|
|
1706
|
+
className: classNames__default["default"](styles$8.pinnedContainer, styles$8.advancedTableRowChild),
|
|
1707
1707
|
ref: createPinnedContainerRef(headerRowIndex)
|
|
1708
1708
|
}, hasCheckboxColumn && /*#__PURE__*/React__default["default"].createElement(AdvancedTableCheckbox, {
|
|
1709
1709
|
state: checkedRowIds.length === totalRowsCountWithExpansion ? 'true' : checkedRowIds.length === 0 ? 'false' : 'mixed',
|
|
@@ -1719,7 +1719,7 @@ const AdvancedTable = _ref => {
|
|
|
1719
1719
|
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeader, props);
|
|
1720
1720
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1721
1721
|
role: "rowgroup",
|
|
1722
|
-
className: styles$
|
|
1722
|
+
className: styles$8.advancedTableRowGroup
|
|
1723
1723
|
}, ((_ref5 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref5 !== void 0 ? _ref5 : []).map((row, rowIndex) => {
|
|
1724
1724
|
const {
|
|
1725
1725
|
id: rowId,
|
|
@@ -1773,7 +1773,7 @@ const AdvancedTable = _ref => {
|
|
|
1773
1773
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
1774
1774
|
|
|
1775
1775
|
}), hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1776
|
-
className: classNames__default["default"](styles$
|
|
1776
|
+
className: classNames__default["default"](styles$8.pinnedContainer, styles$8.advancedTableRowChild),
|
|
1777
1777
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
1778
1778
|
}, hasCheckboxColumn && /*#__PURE__*/React__default["default"].createElement(AdvancedTableCheckbox, {
|
|
1779
1779
|
state: getCheckboxStateForRow(row),
|
|
@@ -1801,7 +1801,7 @@ const AdvancedTable = _ref => {
|
|
|
1801
1801
|
})) : undefined, hasExpandableRows && !pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth * (depth + 1), "px"), false, hasChildRows ? getAdvancedTableRowExpandButton(rowId, isExpanded, rowIndex) : undefined) : undefined, unpinnedColumnConfigs.map((c, i) => {
|
|
1802
1802
|
const props = getCellProps(c, i + pinnedColumnConfigs.length, data, paginatedRowIndex, rowId, depth);
|
|
1803
1803
|
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableCell, _extends__default["default"]({}, props, {
|
|
1804
|
-
className: styles$
|
|
1804
|
+
className: styles$8.advancedTableRowChild,
|
|
1805
1805
|
"aria-rowindex": hasExpandableRows ? undefined : rowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
1806
1806
|
,
|
|
1807
1807
|
"aria-colindex": i + 1 // aria-colindex is one-indexed
|
|
@@ -1983,10 +1983,10 @@ function useFocusState(_ref8) {
|
|
|
1983
1983
|
|
|
1984
1984
|
/* eslint-disable import/prefer-default-export */
|
|
1985
1985
|
|
|
1986
|
-
var css_248z$
|
|
1987
|
-
var styles$
|
|
1988
|
-
var stylesheet$
|
|
1989
|
-
icons_index.styleInject(css_248z$
|
|
1986
|
+
var css_248z$7 = "._Bz23q{display:inline-block;width:36px;transition:width .25s ease-out}._haKti{width:100%}._3JCr->input{padding-right:0!important}._Y_-Yl>svg{fill:#515559}";
|
|
1987
|
+
var styles$7 = {"collapsibleSearchInput":"_Bz23q","searchInput":"_haKti","searchInputCollapsed":"_3JCr-","iconButton":"_Y_-Yl"};
|
|
1988
|
+
var stylesheet$7="._Bz23q{display:inline-block;width:36px;transition:width .25s ease-out}._haKti{width:100%}._3JCr->input{padding-right:0!important}._Y_-Yl>svg{fill:#515559}";
|
|
1989
|
+
icons_index.styleInject(css_248z$7);
|
|
1990
1990
|
|
|
1991
1991
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1992
1992
|
let {
|
|
@@ -1999,7 +1999,7 @@ const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, re
|
|
|
1999
1999
|
} = index.useTranslation();
|
|
2000
2000
|
const label = translate('collapsibleSearchInput.openSearchField');
|
|
2001
2001
|
return /*#__PURE__*/React__default["default"].createElement(index.IconButton, _extends__default["default"]({}, rest, {
|
|
2002
|
-
className: styles$
|
|
2002
|
+
className: styles$7.iconButton,
|
|
2003
2003
|
"aria-label": label,
|
|
2004
2004
|
tooltipContent: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label,
|
|
2005
2005
|
tooltipPlacement: tooltipPlacement,
|
|
@@ -2113,7 +2113,7 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2113
2113
|
onFocus: handleContainerFocus,
|
|
2114
2114
|
onBlur: handleContainerBlur,
|
|
2115
2115
|
onTransitionEnd: handleContainerTransitionEnd,
|
|
2116
|
-
className: styles$
|
|
2116
|
+
className: styles$7.collapsibleSearchInput,
|
|
2117
2117
|
style: {
|
|
2118
2118
|
width: externalIsExpanded ? widthWhenExpanded : undefined
|
|
2119
2119
|
},
|
|
@@ -2127,8 +2127,8 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2127
2127
|
"aria-label": searchInputAriaLabel,
|
|
2128
2128
|
"aria-labelledby": searchInputAriaLabelledBy,
|
|
2129
2129
|
"aria-describedby": searchInputAriaDescribedBy,
|
|
2130
|
-
className: classNames__default["default"](styles$
|
|
2131
|
-
[styles$
|
|
2130
|
+
className: classNames__default["default"](styles$7.searchInput, {
|
|
2131
|
+
[styles$7.searchInputCollapsed]: internalExpandedState !== expandedStates.EXPANDED
|
|
2132
2132
|
}),
|
|
2133
2133
|
"data-testid": index.getSubDataTestId(dataTestId, 'SearchInput'),
|
|
2134
2134
|
ref: searchInputRef
|
|
@@ -2139,10 +2139,10 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2139
2139
|
}));
|
|
2140
2140
|
});
|
|
2141
2141
|
|
|
2142
|
-
var css_248z$
|
|
2143
|
-
var styles$
|
|
2144
|
-
var stylesheet$
|
|
2145
|
-
icons_index.styleInject(css_248z$
|
|
2142
|
+
var css_248z$6 = "._6tLyR input{padding-left:76px!important}._3pFBN input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3pFBN input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3pFBN input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1J5W9{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1J5W9,._1J5W9._3pFBN:hover{background-color:transparent!important}._1J5W9:hover{background-color:rgba(50,54,58,.08)!important}._1J5W9:active{background-color:rgba(50,54,58,.11)!important}._1J5W9 svg{top:2px!important}._1pFPS{position:relative}._2j9Fg{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2143
|
+
var styles$6 = {"input":"_6tLyR","disabled":"_3pFBN","dropdown":"_1J5W9","container":"_1pFPS","countryCode":"_2j9Fg"};
|
|
2144
|
+
var stylesheet$6="._6tLyR input{padding-left:76px!important}._3pFBN input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3pFBN input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3pFBN input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1J5W9{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1J5W9,._1J5W9._3pFBN:hover{background-color:transparent!important}._1J5W9:hover{background-color:rgba(50,54,58,.08)!important}._1J5W9:active{background-color:rgba(50,54,58,.11)!important}._1J5W9 svg{top:2px!important}._1pFPS{position:relative}._2j9Fg{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2145
|
+
icons_index.styleInject(css_248z$6);
|
|
2146
2146
|
|
|
2147
2147
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
2148
2148
|
let {
|
|
@@ -2208,21 +2208,21 @@ const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2208
2208
|
onChange === null || onChange === void 0 ? void 0 : onChange(internationalNumber, isValidLength, countryCode, value);
|
|
2209
2209
|
};
|
|
2210
2210
|
|
|
2211
|
-
const inputClassNames = classNames__default["default"](styles$
|
|
2212
|
-
[styles$
|
|
2211
|
+
const inputClassNames = classNames__default["default"](styles$6.input, {
|
|
2212
|
+
[styles$6.disabled]: isDisabled
|
|
2213
2213
|
});
|
|
2214
2214
|
const dropdownLabel = React.useMemo(() => countryCode ? "+".concat(libphonenumberJs.getCountryCallingCode(countryCode)) : undefined, [countryCode]);
|
|
2215
2215
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2216
|
-
className: styles$
|
|
2216
|
+
className: styles$6.container,
|
|
2217
2217
|
"data-testid": dataTestId
|
|
2218
2218
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2219
|
-
className: styles$
|
|
2219
|
+
className: styles$6.countryCode
|
|
2220
2220
|
}, dropdownLabel), /*#__PURE__*/React__default["default"].createElement(index.SelectMenu, {
|
|
2221
2221
|
label: " ",
|
|
2222
2222
|
defaultValue: countryCode,
|
|
2223
2223
|
onChange: value => setCountryCode(value),
|
|
2224
|
-
className: classNames__default["default"](styles$
|
|
2225
|
-
[styles$
|
|
2224
|
+
className: classNames__default["default"](styles$6.dropdown, {
|
|
2225
|
+
[styles$6.disabled]: isDisabled
|
|
2226
2226
|
}),
|
|
2227
2227
|
searchable: true,
|
|
2228
2228
|
disabled: isDisabled,
|
|
@@ -2884,10 +2884,10 @@ function Combobox(_ref) {
|
|
|
2884
2884
|
}, children);
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
|
-
var css_248z$
|
|
2888
|
-
var styles$
|
|
2889
|
-
var stylesheet$
|
|
2890
|
-
icons_index.styleInject(css_248z$
|
|
2887
|
+
var css_248z$5 = "._36tbr :after{background-color:#515559!important}._2U9Ga>input:focus{box-shadow:none!important;border:1px solid #898989!important}._taZpG{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}._taZpG ._p43Ug ._1hMOa{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}._taZpG ._p43Ug:first-child ._1CBQ8{display:none}._taZpG ._r26E6{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._taZpG ._r26E6:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:hover._3uFTu{background-color:#e4effa}._taZpG ._r26E6._3uFTu{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:active:not(._3uFTu){background-color:#e8e9e9}";
|
|
2888
|
+
var styles$5 = {"loadingSpinner":"_36tbr","ignoreFocusStyle":"_2U9Ga","flyout":"_taZpG","group":"_p43Ug","header":"_1hMOa","divider":"_1CBQ8","option":"_r26E6","selected":"_3uFTu"};
|
|
2889
|
+
var stylesheet$5="._36tbr :after{background-color:#515559!important}._2U9Ga>input:focus{box-shadow:none!important;border:1px solid #898989!important}._taZpG{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}._taZpG ._p43Ug ._1hMOa{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}._taZpG ._p43Ug:first-child ._1CBQ8{display:none}._taZpG ._r26E6{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._taZpG ._r26E6:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:hover._3uFTu{background-color:#e4effa}._taZpG ._r26E6._3uFTu{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:active:not(._3uFTu){background-color:#e8e9e9}";
|
|
2890
|
+
icons_index.styleInject(css_248z$5);
|
|
2891
2891
|
|
|
2892
2892
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
2893
2893
|
let {
|
|
@@ -3002,7 +3002,7 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3002
3002
|
return /*#__PURE__*/React__default["default"].createElement(index.Input$1, {
|
|
3003
3003
|
role: "combobox",
|
|
3004
3004
|
className: classNames__default["default"](className, {
|
|
3005
|
-
[styles$
|
|
3005
|
+
[styles$5.ignoreFocusStyle]: hoveredOption || activeDescendantElement
|
|
3006
3006
|
}),
|
|
3007
3007
|
style: style,
|
|
3008
3008
|
id: id,
|
|
@@ -3015,7 +3015,7 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3015
3015
|
},
|
|
3016
3016
|
leftAddOn: leftAddOn,
|
|
3017
3017
|
rightAddOn: isLoading ? /*#__PURE__*/React__default["default"].createElement(index.LoadingSpinner, {
|
|
3018
|
-
className: styles$
|
|
3018
|
+
className: styles$5.loadingSpinner,
|
|
3019
3019
|
size: "xs",
|
|
3020
3020
|
show: isLoading,
|
|
3021
3021
|
"aria-hidden": true
|
|
@@ -3072,7 +3072,7 @@ const ComboboxFlyout = _ref => {
|
|
|
3072
3072
|
popper: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3073
3073
|
role: "listbox",
|
|
3074
3074
|
id: flyoutId,
|
|
3075
|
-
className: styles$
|
|
3075
|
+
className: styles$5.flyout,
|
|
3076
3076
|
style: flyoutDimensions,
|
|
3077
3077
|
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : rootAriaLabel,
|
|
3078
3078
|
"aria-labelledby": ariaLabelledBy !== null && ariaLabelledBy !== void 0 ? ariaLabelledBy : rootAriaLabelledBy,
|
|
@@ -3124,16 +3124,16 @@ function ComboboxGroup(_ref) {
|
|
|
3124
3124
|
}, children);
|
|
3125
3125
|
return hasFilteredOptions ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3126
3126
|
role: "group",
|
|
3127
|
-
className: styles$
|
|
3127
|
+
className: styles$5.group,
|
|
3128
3128
|
"aria-labelledby": headerElementId,
|
|
3129
3129
|
"aria-describedby": ariaDescribedBy,
|
|
3130
3130
|
"data-testid": index.getSubDataTestId(rootDataTestId, "group-".concat(label))
|
|
3131
3131
|
}, /*#__PURE__*/React__default["default"].createElement(index.Divider, {
|
|
3132
|
-
className: styles$
|
|
3132
|
+
className: styles$5.divider
|
|
3133
3133
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3134
3134
|
"aria-hidden": "true",
|
|
3135
3135
|
id: headerElementId,
|
|
3136
|
-
className: styles$
|
|
3136
|
+
className: styles$5.header
|
|
3137
3137
|
}, label), childrenWithContext) : childrenWithContext // Even if the group currently has no filtered children, the children (i.e. options) still need the context so that they can register themselves later on if the input value changes
|
|
3138
3138
|
;
|
|
3139
3139
|
}
|
|
@@ -3186,8 +3186,8 @@ function ComboboxOption(_ref) {
|
|
|
3186
3186
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3187
3187
|
role: "option",
|
|
3188
3188
|
id: containerId,
|
|
3189
|
-
className: classNames__default["default"](styles$
|
|
3190
|
-
[styles$
|
|
3189
|
+
className: classNames__default["default"](styles$5.option, {
|
|
3190
|
+
[styles$5.selected]: isOptionSelected
|
|
3191
3191
|
}),
|
|
3192
3192
|
onClick: () => {
|
|
3193
3193
|
setCommittedInputValue(label);
|
|
@@ -3203,10 +3203,10 @@ function ComboboxOption(_ref) {
|
|
|
3203
3203
|
}, label);
|
|
3204
3204
|
}
|
|
3205
3205
|
|
|
3206
|
-
var css_248z$
|
|
3207
|
-
var styles$
|
|
3208
|
-
var stylesheet$
|
|
3209
|
-
icons_index.styleInject(css_248z$
|
|
3206
|
+
var css_248z$4 = "._YktnG{display:flex}._gbOd2{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._gbOd2._3AQxg{background-color:#fff}._gbOd2._1OuIL,._gbOd2._3AQxg._2SRG9:not(._gbOd2._3AQxg._1aMJH),body.keyboard-user ._gbOd2._3AQxg._1txGG:not(._2e7Ah){background-color:#0b6ed0}._gbOd2._1OuIL._1aMJH._2SRG9,._gbOd2._1OuIL._2e7Ah._1aMJH,._gbOd2._1OuIL._2e7Ah._1txGG{opacity:.4}._3ICIq{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3ICIq:focus{z-index:1}._3GLZs{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}._3GLZs svg{margin-left:1px}._3GLZs._3AQxg{background-color:#0b6ed0;border-color:transparent}._3GLZs._3AQxg svg{fill:#fff!important}._3GLZs._3AQxg:not(._tI76w):hover{background-color:#085caf!important}._3GLZs._3AQxg:not(._tI76w):active{background-color:#0854a1!important}._3GLZs._3AQxg._tI76w{opacity:.4}._3GLZs._3AQxg._tI76w svg{background-color:transparent}._3GLZs._1OuIL{border-color:#0b6ed0;background-color:#fff}._3GLZs._1OuIL svg{fill:#0b6ed0!important}._3GLZs._1OuIL:not(._tI76w):hover{background-color:#eef5fc!important}._3GLZs._1OuIL:not(._tI76w):active{background-color:#e1edf9!important}._3GLZs._1OuIL._tI76w{opacity:.4}._3GLZs._1OuIL._tI76w svg{background-color:transparent}._1cBQB{width:260px}";
|
|
3207
|
+
var styles$4 = {"container":"_YktnG","divider":"_gbOd2","primary":"_3AQxg","mainButtonFocus":"_1txGG","mainButtonDisabled":"_2e7Ah","dropdownButtonFocus":"_2SRG9","dropdownButtonDisabled":"_1aMJH","secondary":"_1OuIL","mainButton":"_3ICIq","dropdownButton":"_3GLZs","disabled":"_tI76w","dropdownOption":"_1cBQB"};
|
|
3208
|
+
var stylesheet$4="._YktnG{display:flex}._gbOd2{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._gbOd2._3AQxg{background-color:#fff}._gbOd2._1OuIL,._gbOd2._3AQxg._2SRG9:not(._gbOd2._3AQxg._1aMJH),body.keyboard-user ._gbOd2._3AQxg._1txGG:not(._2e7Ah){background-color:#0b6ed0}._gbOd2._1OuIL._1aMJH._2SRG9,._gbOd2._1OuIL._2e7Ah._1aMJH,._gbOd2._1OuIL._2e7Ah._1txGG{opacity:.4}._3ICIq{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3ICIq:focus{z-index:1}._3GLZs{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}._3GLZs svg{margin-left:1px}._3GLZs._3AQxg{background-color:#0b6ed0;border-color:transparent}._3GLZs._3AQxg svg{fill:#fff!important}._3GLZs._3AQxg:not(._tI76w):hover{background-color:#085caf!important}._3GLZs._3AQxg:not(._tI76w):active{background-color:#0854a1!important}._3GLZs._3AQxg._tI76w{opacity:.4}._3GLZs._3AQxg._tI76w svg{background-color:transparent}._3GLZs._1OuIL{border-color:#0b6ed0;background-color:#fff}._3GLZs._1OuIL svg{fill:#0b6ed0!important}._3GLZs._1OuIL:not(._tI76w):hover{background-color:#eef5fc!important}._3GLZs._1OuIL:not(._tI76w):active{background-color:#e1edf9!important}._3GLZs._1OuIL._tI76w{opacity:.4}._3GLZs._1OuIL._tI76w svg{background-color:transparent}._1cBQB{width:260px}";
|
|
3209
|
+
icons_index.styleInject(css_248z$4);
|
|
3210
3210
|
|
|
3211
3211
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
3212
3212
|
let {
|
|
@@ -3240,14 +3240,14 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3240
3240
|
});
|
|
3241
3241
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3242
3242
|
"data-testid": dataTestId,
|
|
3243
|
-
className: classNames__default["default"](styles$
|
|
3243
|
+
className: classNames__default["default"](styles$4.container, className),
|
|
3244
3244
|
ref: ref
|
|
3245
3245
|
}, /*#__PURE__*/React__default["default"].createElement(index.Button, {
|
|
3246
3246
|
kind: kind,
|
|
3247
3247
|
"data-testid": index.getSubDataTestId(dataTestId, 'button'),
|
|
3248
|
-
className: classNames__default["default"](styles$
|
|
3249
|
-
[styles$
|
|
3250
|
-
[styles$
|
|
3248
|
+
className: classNames__default["default"](styles$4.mainButton, {
|
|
3249
|
+
[styles$4.disabled]: isButtonDisabled,
|
|
3250
|
+
[styles$4.primary]: kind === 'primary'
|
|
3251
3251
|
}),
|
|
3252
3252
|
onClick: onClick,
|
|
3253
3253
|
disabled: isButtonDisabled,
|
|
@@ -3258,13 +3258,13 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3258
3258
|
onFocus: () => setMainButtonHasFocus(true),
|
|
3259
3259
|
onBlur: () => setMainButtonHasFocus(false)
|
|
3260
3260
|
}, label), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3261
|
-
className: classNames__default["default"](styles$
|
|
3262
|
-
[styles$
|
|
3263
|
-
[styles$
|
|
3264
|
-
[styles$
|
|
3265
|
-
[styles$
|
|
3266
|
-
[styles$
|
|
3267
|
-
[styles$
|
|
3261
|
+
className: classNames__default["default"](styles$4.divider, {
|
|
3262
|
+
[styles$4.primary]: kind === 'primary',
|
|
3263
|
+
[styles$4.secondary]: kind === 'secondary',
|
|
3264
|
+
[styles$4.mainButtonFocus]: mainButtonHasFocus,
|
|
3265
|
+
[styles$4.dropdownButtonFocus]: dropdownButtonHasFocus,
|
|
3266
|
+
[styles$4.mainButtonDisabled]: isButtonDisabled,
|
|
3267
|
+
[styles$4.dropdownButtonDisabled]: isDropdownDisabled
|
|
3268
3268
|
})
|
|
3269
3269
|
}), /*#__PURE__*/React__default["default"].createElement(index.Dropdown, {
|
|
3270
3270
|
"data-testid": index.getSubDataTestId(dataTestId, 'dropdown'),
|
|
@@ -3275,10 +3275,10 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3275
3275
|
}, /*#__PURE__*/React__default["default"].createElement(index.DropdownButton // `label` of type `string` adds Dropdown's `isString` class, which causes a css bug in Safari
|
|
3276
3276
|
, {
|
|
3277
3277
|
label: /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null),
|
|
3278
|
-
className: classNames__default["default"](styles$
|
|
3279
|
-
[styles$
|
|
3280
|
-
[styles$
|
|
3281
|
-
[styles$
|
|
3278
|
+
className: classNames__default["default"](styles$4.dropdownButton, {
|
|
3279
|
+
[styles$4.disabled]: isDropdownDisabled,
|
|
3280
|
+
[styles$4.primary]: kind === 'primary',
|
|
3281
|
+
[styles$4.secondary]: kind === 'secondary'
|
|
3282
3282
|
}),
|
|
3283
3283
|
ref: dropdownButtonRef,
|
|
3284
3284
|
tabIndex: -1,
|
|
@@ -3300,15 +3300,15 @@ const SplitButtonOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3300
3300
|
label: "",
|
|
3301
3301
|
disabled: isDisabled,
|
|
3302
3302
|
onSelect: onClick,
|
|
3303
|
-
className: styles$
|
|
3303
|
+
className: styles$4.dropdownOption,
|
|
3304
3304
|
ref: ref
|
|
3305
3305
|
}, children);
|
|
3306
3306
|
});
|
|
3307
3307
|
|
|
3308
|
-
var css_248z$
|
|
3309
|
-
var styles$
|
|
3310
|
-
var stylesheet$
|
|
3311
|
-
icons_index.styleInject(css_248z$
|
|
3308
|
+
var css_248z$3 = "._54bkl{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}._54bkl:hover:not(._2YrMN){background-color:rgba(50,54,58,.08)}._54bkl:hover:not(._2YrMN)._OGbLK{border-color:#085caf;background-color:rgba(11,110,208,.04)}._54bkl:hover:not(._2YrMN)._OGbLK ._yatx0{color:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._3btVU{fill:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._2csIZ{fill:#085caf}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#085caf}._54bkl:active:not(._2YrMN){background-color:#e8e9e9}._54bkl:active:not(._2YrMN)._OGbLK{background-color:rgba(11,110,208,.11);border-color:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._2csIZ{fill:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#0854a1}._54bkl._2YrMN{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._54bkl._OGbLK{border-color:#0b6ed0}._3btVU{fill:#515559;margin-right:4px}._yatx0{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._yatx0+._VBT4p{margin-left:6px}._yatx0._2YrMN{color:#74777a}._VBT4p{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}.__RG3j{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2csIZ{fill:#515559}._2csIZ._2YrMN,._2csIZ._2YrMN._OGbLK{fill:rgba(116,119,122,.4)}._2csIZ._OGbLK{fill:#0b6ed0}._2csIZ._3lQew{transform:rotate(-180deg)}body.keyboard-user ._54bkl:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3309
|
+
var styles$3 = {"button":"_54bkl","disabled":"_2YrMN","selected":"_OGbLK","label":"_yatx0","lockIcon":"_3btVU","chevronIcon":"_2csIZ","selectedFiltersContainer":"_VBT4p","selectedFilters":"__RG3j","open":"_3lQew"};
|
|
3310
|
+
var stylesheet$3="._54bkl{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}._54bkl:hover:not(._2YrMN){background-color:rgba(50,54,58,.08)}._54bkl:hover:not(._2YrMN)._OGbLK{border-color:#085caf;background-color:rgba(11,110,208,.04)}._54bkl:hover:not(._2YrMN)._OGbLK ._yatx0{color:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._3btVU{fill:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._2csIZ{fill:#085caf}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#085caf}._54bkl:active:not(._2YrMN){background-color:#e8e9e9}._54bkl:active:not(._2YrMN)._OGbLK{background-color:rgba(11,110,208,.11);border-color:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._2csIZ{fill:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#0854a1}._54bkl._2YrMN{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._54bkl._OGbLK{border-color:#0b6ed0}._3btVU{fill:#515559;margin-right:4px}._yatx0{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._yatx0+._VBT4p{margin-left:6px}._yatx0._2YrMN{color:#74777a}._VBT4p{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}.__RG3j{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2csIZ{fill:#515559}._2csIZ._2YrMN,._2csIZ._2YrMN._OGbLK{fill:rgba(116,119,122,.4)}._2csIZ._OGbLK{fill:#0b6ed0}._2csIZ._3lQew{transform:rotate(-180deg)}body.keyboard-user ._54bkl:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3311
|
+
icons_index.styleInject(css_248z$3);
|
|
3312
3312
|
|
|
3313
3313
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
3314
3314
|
let {
|
|
@@ -3333,9 +3333,9 @@ const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3333
3333
|
} = index.useTranslation();
|
|
3334
3334
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends__default["default"]({}, rest, {
|
|
3335
3335
|
type: "button",
|
|
3336
|
-
className: classNames__default["default"](className, styles$
|
|
3337
|
-
[styles$
|
|
3338
|
-
[styles$
|
|
3336
|
+
className: classNames__default["default"](className, styles$3.button, {
|
|
3337
|
+
[styles$3.disabled]: isDisabled,
|
|
3338
|
+
[styles$3.selected]: !!selectedFilters
|
|
3339
3339
|
}),
|
|
3340
3340
|
onClick: e => {
|
|
3341
3341
|
if (isDisabled) {
|
|
@@ -3360,33 +3360,33 @@ const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3360
3360
|
}), isLocked && /*#__PURE__*/React__default["default"].createElement(icons_index.LockIcon, {
|
|
3361
3361
|
size: "small",
|
|
3362
3362
|
id: lockIconElementId,
|
|
3363
|
-
className: styles$
|
|
3363
|
+
className: styles$3.lockIcon // @ts-ignore - 'locked' is not in the current list of translations
|
|
3364
3364
|
,
|
|
3365
3365
|
"aria-label": translate('locked')
|
|
3366
3366
|
}), label && /*#__PURE__*/React__default["default"].createElement(index.TextOverflowTooltip, {
|
|
3367
3367
|
lightTheme: true
|
|
3368
3368
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3369
3369
|
id: labelElementId,
|
|
3370
|
-
className: classNames__default["default"](styles$
|
|
3371
|
-
[styles$
|
|
3370
|
+
className: classNames__default["default"](styles$3.label, {
|
|
3371
|
+
[styles$3.disabled]: isDisabled
|
|
3372
3372
|
})
|
|
3373
3373
|
}, label)), isLoading ? /*#__PURE__*/React__default["default"].createElement(index.LoadingSpinner, {
|
|
3374
3374
|
show: true,
|
|
3375
3375
|
size: "xs",
|
|
3376
3376
|
"aria-label": loadingSpinnerAriaLabel !== null && loadingSpinnerAriaLabel !== void 0 ? loadingSpinnerAriaLabel : translate('loading')
|
|
3377
3377
|
}) : selectedFilters && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3378
|
-
className: styles$
|
|
3378
|
+
className: styles$3.selectedFiltersContainer
|
|
3379
3379
|
}, /*#__PURE__*/React__default["default"].createElement(index.TextOverflowTooltip, {
|
|
3380
3380
|
lightTheme: true
|
|
3381
3381
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3382
3382
|
id: selectedFiltersElementId,
|
|
3383
|
-
className: styles$
|
|
3383
|
+
className: styles$3.selectedFilters
|
|
3384
3384
|
}, selectedFilters))), /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3385
3385
|
size: "medium",
|
|
3386
|
-
className: classNames__default["default"](styles$
|
|
3387
|
-
[styles$
|
|
3388
|
-
[styles$
|
|
3389
|
-
[styles$
|
|
3386
|
+
className: classNames__default["default"](styles$3.chevronIcon, {
|
|
3387
|
+
[styles$3.disabled]: isDisabled,
|
|
3388
|
+
[styles$3.selected]: !!selectedFilters,
|
|
3389
|
+
[styles$3.open]: isOpen
|
|
3390
3390
|
}),
|
|
3391
3391
|
"aria-hidden": true
|
|
3392
3392
|
}));
|
|
@@ -3491,10 +3491,10 @@ class PointerEvent extends Event {
|
|
|
3491
3491
|
|
|
3492
3492
|
}
|
|
3493
3493
|
|
|
3494
|
-
var css_248z = ".
|
|
3495
|
-
var styles = {"buttonContainer":"
|
|
3496
|
-
var stylesheet=".
|
|
3497
|
-
icons_index.styleInject(css_248z);
|
|
3494
|
+
var css_248z$2 = "._2TrXR{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._hnpt0{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}._hnpt0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._hnpt0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._hnpt0+._oxFdd{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._hnpt0[data-state=open]+._oxFdd{transform:rotate(-180deg) translateY(50%)}._hnpt0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._hnpt0[aria-disabled=true]+._oxFdd{fill:#515559;opacity:.4}._1SBsU{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}._3IYjR{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3IYjR[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._3IYjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3IYjR._3NliM{padding-right:32px}._3IYjR._3NliM ._oxFdd{position:absolute;top:8px;right:3px;fill:#515559}._dK2_4{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._GGTwI{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}";
|
|
3495
|
+
var styles$2 = {"buttonContainer":"_2TrXR","button":"_hnpt0","rightIcon":"_oxFdd","flyout":"_1SBsU","menuItem":"_3IYjR","subMenu":"_3NliM","searchBox":"_dK2_4","emptyOption":"_GGTwI"};
|
|
3496
|
+
var stylesheet$2="._2TrXR{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._hnpt0{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}._hnpt0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._hnpt0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._hnpt0+._oxFdd{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._hnpt0[data-state=open]+._oxFdd{transform:rotate(-180deg) translateY(50%)}._hnpt0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._hnpt0[aria-disabled=true]+._oxFdd{fill:#515559;opacity:.4}._1SBsU{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}._3IYjR{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3IYjR[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._3IYjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3IYjR._3NliM{padding-right:32px}._3IYjR._3NliM ._oxFdd{position:absolute;top:8px;right:3px;fill:#515559}._dK2_4{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._GGTwI{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}";
|
|
3497
|
+
icons_index.styleInject(css_248z$2);
|
|
3498
3498
|
|
|
3499
3499
|
/* eslint-disable import/prefer-default-export */
|
|
3500
3500
|
const DATA_TESTID_SUFFIXES = {
|
|
@@ -3516,18 +3516,18 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
3516
3516
|
} = useMenuContext();
|
|
3517
3517
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3518
3518
|
className: classNames__default["default"]({
|
|
3519
|
-
[styles.buttonContainer]: !asChild
|
|
3519
|
+
[styles$2.buttonContainer]: !asChild
|
|
3520
3520
|
})
|
|
3521
3521
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Trigger, _extends__default["default"]({}, rest, {
|
|
3522
3522
|
"aria-disabled": isDisabled,
|
|
3523
3523
|
className: classNames__default["default"]({
|
|
3524
|
-
[styles.button]: !asChild
|
|
3524
|
+
[styles$2.button]: !asChild
|
|
3525
3525
|
}),
|
|
3526
3526
|
asChild: asChild,
|
|
3527
3527
|
ref: ref,
|
|
3528
3528
|
"data-testid": index.getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
3529
3529
|
}), children), !asChild && /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3530
|
-
className: styles.rightIcon,
|
|
3530
|
+
className: styles$2.rightIcon,
|
|
3531
3531
|
"aria-hidden": "true"
|
|
3532
3532
|
}));
|
|
3533
3533
|
});
|
|
@@ -3570,7 +3570,7 @@ const MenuSearch = _ref => {
|
|
|
3570
3570
|
isCaptureEvent: true
|
|
3571
3571
|
});
|
|
3572
3572
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, {
|
|
3573
|
-
className: styles.searchBox // prevents dropdown from closing
|
|
3573
|
+
className: styles$2.searchBox // prevents dropdown from closing
|
|
3574
3574
|
,
|
|
3575
3575
|
onSelect: e => e.preventDefault(),
|
|
3576
3576
|
onFocus: () => {
|
|
@@ -3613,7 +3613,7 @@ const MenuSearch = _ref => {
|
|
|
3613
3613
|
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, null),
|
|
3614
3614
|
ref: inputRef
|
|
3615
3615
|
})), zeroSearchResults && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3616
|
-
className: styles.emptyOption // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
3616
|
+
className: styles$2.emptyOption // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
3617
3617
|
,
|
|
3618
3618
|
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
3619
3619
|
,
|
|
@@ -3660,7 +3660,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3660
3660
|
loop: true,
|
|
3661
3661
|
side: side || 'bottom',
|
|
3662
3662
|
align: align || 'start',
|
|
3663
|
-
className: styles.flyout,
|
|
3663
|
+
className: styles$2.flyout,
|
|
3664
3664
|
ref: index.mergeRefs(ref, paneRef),
|
|
3665
3665
|
"data-testid": dataTestId
|
|
3666
3666
|
}), isSearchable && /*#__PURE__*/React__default["default"].createElement(MenuSearch, {
|
|
@@ -3697,7 +3697,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3697
3697
|
return isVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, _extends__default["default"]({}, rest, {
|
|
3698
3698
|
asChild: asChild,
|
|
3699
3699
|
"aria-disabled": isDisabled,
|
|
3700
|
-
className: classNames__default["default"](className, styles.menuItem),
|
|
3700
|
+
className: classNames__default["default"](className, styles$2.menuItem),
|
|
3701
3701
|
"data-testid": dataTestId,
|
|
3702
3702
|
ref: index.mergeRefs(ref, itemRef) // stop radix from closing the menu on selection of disabled item
|
|
3703
3703
|
// other pointer and keyboard events still work, even when disabled
|
|
@@ -3735,13 +3735,13 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3735
3735
|
return isSearchFilteringDisabledForTrigger || !triggerMenuParentSearchValue || typeof label === 'string' && _includesInstanceProperty__default["default"](_context = label.toLowerCase()).call(_context, triggerMenuParentSearchValue.toLowerCase());
|
|
3736
3736
|
}, [triggerMenuParentSearchValue, label, isSearchFilteringDisabledForTrigger]);
|
|
3737
3737
|
return isVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Sub, null, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubTrigger, {
|
|
3738
|
-
className: classNames__default["default"](styles.menuItem, styles.subMenu),
|
|
3738
|
+
className: classNames__default["default"](styles$2.menuItem, styles$2.subMenu),
|
|
3739
3739
|
"data-testid": triggerDataTestId,
|
|
3740
3740
|
"aria-disabled": isDisabled,
|
|
3741
3741
|
disabled: isDisabled,
|
|
3742
3742
|
ref: itemRef
|
|
3743
3743
|
}, label, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronRightIcon, {
|
|
3744
|
-
className: styles.rightIcon
|
|
3744
|
+
className: styles$2.rightIcon
|
|
3745
3745
|
})), /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3746
3746
|
items: items,
|
|
3747
3747
|
setItems: setItems,
|
|
@@ -3751,7 +3751,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3751
3751
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren
|
|
3752
3752
|
}
|
|
3753
3753
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
3754
|
-
className: styles.flyout,
|
|
3754
|
+
className: styles$2.flyout,
|
|
3755
3755
|
loop: true,
|
|
3756
3756
|
"data-testid": paneDataTestId,
|
|
3757
3757
|
ref: index.mergeRefs(ref, paneRef)
|
|
@@ -3762,6 +3762,195 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3762
3762
|
}), children))) : null;
|
|
3763
3763
|
});
|
|
3764
3764
|
|
|
3765
|
+
var css_248z$1 = "._LxXO1{background-color:rgba(0,0,0,.5);width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._eDAdr{visibility:hidden}";
|
|
3766
|
+
var styles$1 = {"overlay":"_LxXO1","hidden":"_eDAdr"};
|
|
3767
|
+
var stylesheet$1="._LxXO1{background-color:rgba(0,0,0,.5);width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._eDAdr{visibility:hidden}";
|
|
3768
|
+
icons_index.styleInject(css_248z$1);
|
|
3769
|
+
|
|
3770
|
+
/**
|
|
3771
|
+
* Adds an overlay to an area that obscures visibility and disables background elements.
|
|
3772
|
+
* @param {MutableRefObject} containerRef - A ref pointing to the DOM element to be filled by the overlay.
|
|
3773
|
+
* @param {boolean} isVisible - When true, displays overlay and disables all element behind it.
|
|
3774
|
+
* @param {React.MouseEventHandler} onClick - A function to be called when the overlay recieves a click event.
|
|
3775
|
+
* @param {string[]} ignoreIds - An array of ids belonging to elements that should not become inert when isInert is true.
|
|
3776
|
+
* @param {CSSProperties['zIndex']} zIndex - The zIndex of the overlay.
|
|
3777
|
+
* @param {string} dataTestId - A string to be added to the overlay element as a data-testid.
|
|
3778
|
+
*/
|
|
3779
|
+
const useOverlay = _ref => {
|
|
3780
|
+
let {
|
|
3781
|
+
containerRef,
|
|
3782
|
+
isVisible,
|
|
3783
|
+
onClick,
|
|
3784
|
+
ignoreIds = [],
|
|
3785
|
+
zIndex,
|
|
3786
|
+
dataTestId
|
|
3787
|
+
} = _ref;
|
|
3788
|
+
const overlayId = index.useId();
|
|
3789
|
+
React.useEffect(() => {
|
|
3790
|
+
var _containerRef$current;
|
|
3791
|
+
|
|
3792
|
+
const containerNode = (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body;
|
|
3793
|
+
const overlay = document.createElement('div');
|
|
3794
|
+
overlay.id = overlayId;
|
|
3795
|
+
overlay.classList.add(styles$1.overlay);
|
|
3796
|
+
if (onClick) overlay.addEventListener('click', onClick);
|
|
3797
|
+
if (dataTestId) overlay.dataset.testid = dataTestId;
|
|
3798
|
+
if (!isVisible) overlay.classList.add(styles$1.hidden);
|
|
3799
|
+
if (zIndex) overlay.style.zIndex = zIndex.toString();
|
|
3800
|
+
containerNode.appendChild(overlay);
|
|
3801
|
+
containerNode.style.position = 'relative';
|
|
3802
|
+
return () => {
|
|
3803
|
+
containerNode.style.position = 'static';
|
|
3804
|
+
containerNode.removeChild(overlay);
|
|
3805
|
+
};
|
|
3806
|
+
}, [containerRef, overlayId, isVisible, onClick, dataTestId, zIndex]);
|
|
3807
|
+
React.useEffect(() => {
|
|
3808
|
+
var _containerRef$current2;
|
|
3809
|
+
|
|
3810
|
+
const containerNode = (_containerRef$current2 = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : document.body;
|
|
3811
|
+
const overlayNode = document.getElementById(overlayId);
|
|
3812
|
+
|
|
3813
|
+
if (isVisible) {
|
|
3814
|
+
Array.from(containerNode.children).forEach(child => {
|
|
3815
|
+
if (!_includesInstanceProperty__default["default"](ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
3816
|
+
});
|
|
3817
|
+
overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.classList.remove(styles$1.hidden);
|
|
3818
|
+
} else {
|
|
3819
|
+
Array.from(containerNode.children).forEach(child => {
|
|
3820
|
+
child.removeAttribute('inert');
|
|
3821
|
+
});
|
|
3822
|
+
overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.classList.add(styles$1.hidden);
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
return () => {
|
|
3826
|
+
Array.from(containerNode.children).forEach(child => {
|
|
3827
|
+
child.removeAttribute('inert');
|
|
3828
|
+
});
|
|
3829
|
+
};
|
|
3830
|
+
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3831
|
+
};
|
|
3832
|
+
|
|
3833
|
+
var css_248z = "._1j90C{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._2XSDH{visibility:hidden}._3GujK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._1NhjW{padding-top:8px}._3V9yE{margin-left:12px}";
|
|
3834
|
+
var styles = {"drawer":"_1j90C","hidden":"_2XSDH","header":"_3GujK","title":"_1NhjW","closeButton":"_3V9yE"};
|
|
3835
|
+
var stylesheet="._1j90C{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._2XSDH{visibility:hidden}._3GujK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._1NhjW{padding-top:8px}._3V9yE{margin-left:12px}";
|
|
3836
|
+
icons_index.styleInject(css_248z);
|
|
3837
|
+
|
|
3838
|
+
const Drawer = _ref => {
|
|
3839
|
+
var _containerRef$current;
|
|
3840
|
+
|
|
3841
|
+
let {
|
|
3842
|
+
id,
|
|
3843
|
+
isOpen: externalIsOpen,
|
|
3844
|
+
onIsOpenChange,
|
|
3845
|
+
title,
|
|
3846
|
+
width = '292px',
|
|
3847
|
+
zIndex = 1000,
|
|
3848
|
+
elementRefToFocusOnClose,
|
|
3849
|
+
containerRef,
|
|
3850
|
+
'aria-label': ariaLabel,
|
|
3851
|
+
'aria-labelledby': ariaLabelledby,
|
|
3852
|
+
'aria-describedby': ariaDescribedby,
|
|
3853
|
+
'data-testid': dataTestId,
|
|
3854
|
+
children
|
|
3855
|
+
} = _ref;
|
|
3856
|
+
// waits to createPortal until after containerRef is in DOM
|
|
3857
|
+
const [domReady, setDomReady] = React.useState(false);
|
|
3858
|
+
React.useEffect(() => {
|
|
3859
|
+
setDomReady(true);
|
|
3860
|
+
}, [setDomReady]);
|
|
3861
|
+
const [elementUsedToOpenModal, setElementUsedToOpenModal] = React.useState();
|
|
3862
|
+
const drawerRef = React.useRef(null);
|
|
3863
|
+
const drawerId = index.useId(id);
|
|
3864
|
+
const [isOpen, setIsOpen] = index.useControllableState(externalIsOpen, onIsOpenChange, externalIsOpen);
|
|
3865
|
+
const [isClosing, setIsClosing] = React.useState(false);
|
|
3866
|
+
const [isHidden, setIsHidden] = React.useState(!isOpen);
|
|
3867
|
+
const {
|
|
3868
|
+
translate
|
|
3869
|
+
} = index.useTranslation();
|
|
3870
|
+
const closeButtonAriaLabel = translate('close');
|
|
3871
|
+
const closeButtonRef = React.useRef(null);
|
|
3872
|
+
|
|
3873
|
+
const close = () => {
|
|
3874
|
+
setIsOpen(false);
|
|
3875
|
+
};
|
|
3876
|
+
|
|
3877
|
+
const handleKeyDown = e => {
|
|
3878
|
+
if (e.key === 'Escape') close();
|
|
3879
|
+
};
|
|
3880
|
+
|
|
3881
|
+
useOverlay({
|
|
3882
|
+
containerRef,
|
|
3883
|
+
isVisible: isOpen,
|
|
3884
|
+
onClick: close,
|
|
3885
|
+
ignoreIds: [drawerId],
|
|
3886
|
+
zIndex: Number(zIndex) - 1,
|
|
3887
|
+
dataTestId: index.getSubDataTestId(dataTestId, 'overlay')
|
|
3888
|
+
});
|
|
3889
|
+
index.useDidUpdate(() => {
|
|
3890
|
+
if (isOpen) {
|
|
3891
|
+
setIsClosing(false);
|
|
3892
|
+
setIsHidden(false);
|
|
3893
|
+
setElementUsedToOpenModal(document.activeElement);
|
|
3894
|
+
} else {
|
|
3895
|
+
var _elementRefToFocusOnC;
|
|
3896
|
+
|
|
3897
|
+
setIsClosing(true);
|
|
3898
|
+
if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 ? void 0 : (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 ? void 0 : _elementRefToFocusOnC.focus();else elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 ? void 0 : elementUsedToOpenModal.focus();
|
|
3899
|
+
}
|
|
3900
|
+
}, [elementRefToFocusOnClose, isOpen]);
|
|
3901
|
+
React.useEffect(() => {
|
|
3902
|
+
if (isOpen && !isHidden) {
|
|
3903
|
+
var _closeButtonRef$curre;
|
|
3904
|
+
|
|
3905
|
+
(_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0 ? void 0 : _closeButtonRef$curre.focus();
|
|
3906
|
+
}
|
|
3907
|
+
}, [isOpen, isHidden]);
|
|
3908
|
+
|
|
3909
|
+
const handleTransitionEnd = () => {
|
|
3910
|
+
if (!isOpen) {
|
|
3911
|
+
setIsClosing(false);
|
|
3912
|
+
setIsHidden(true);
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
return domReady ? /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default["default"].createElement("aside", {
|
|
3919
|
+
id: drawerId,
|
|
3920
|
+
className: classNames__default["default"](styles.drawer, {
|
|
3921
|
+
[styles.hidden]: isHidden,
|
|
3922
|
+
[styles.closing]: isClosing
|
|
3923
|
+
}),
|
|
3924
|
+
style: {
|
|
3925
|
+
width,
|
|
3926
|
+
left: "".concat(isHidden || isClosing ? "-".concat(width) : '0'),
|
|
3927
|
+
zIndex
|
|
3928
|
+
},
|
|
3929
|
+
onKeyDown: handleKeyDown,
|
|
3930
|
+
onTransitionEnd: handleTransitionEnd,
|
|
3931
|
+
"data-testid": dataTestId,
|
|
3932
|
+
"aria-label": ariaLabel,
|
|
3933
|
+
"aria-labelledby": ariaLabelledby,
|
|
3934
|
+
"aria-describedby": ariaDescribedby,
|
|
3935
|
+
ref: drawerRef
|
|
3936
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.PortalTargetProvider, {
|
|
3937
|
+
target: drawerRef.current
|
|
3938
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3939
|
+
className: styles.header
|
|
3940
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3941
|
+
className: styles.title,
|
|
3942
|
+
"data-testid": index.getSubDataTestId(dataTestId, 'title')
|
|
3943
|
+
}, title), /*#__PURE__*/React__default["default"].createElement(index.IconButton, {
|
|
3944
|
+
className: styles.closeButton,
|
|
3945
|
+
onClick: close,
|
|
3946
|
+
ref: closeButtonRef,
|
|
3947
|
+
"data-testid": index.getSubDataTestId(dataTestId, 'close-button'),
|
|
3948
|
+
"aria-label": closeButtonAriaLabel
|
|
3949
|
+
}, /*#__PURE__*/React__default["default"].createElement(icons_index.CloseIcon, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3950
|
+
"data-testid": index.getSubDataTestId(dataTestId, 'body')
|
|
3951
|
+
}, children))), (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body) : null;
|
|
3952
|
+
};
|
|
3953
|
+
|
|
3765
3954
|
/* eslint-disable camelcase */
|
|
3766
3955
|
|
|
3767
3956
|
exports.Input = index.Input$1;
|
|
@@ -3772,6 +3961,7 @@ exports.ComboboxFlyout = ComboboxFlyout;
|
|
|
3772
3961
|
exports.ComboboxGroup = ComboboxGroup;
|
|
3773
3962
|
exports.ComboboxInput = ComboboxInput;
|
|
3774
3963
|
exports.ComboboxOption = ComboboxOption;
|
|
3964
|
+
exports.Drawer = Drawer;
|
|
3775
3965
|
exports.FilterAnchor = FilterAnchor;
|
|
3776
3966
|
exports.Menu = Menu;
|
|
3777
3967
|
exports.MenuButton = MenuButton;
|