@qualtrics/ui-react 2.7.1 → 2.8.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 +16 -0
- package/dist/__shared/cjs/{index-7f94d375.js → index-763e59c2.js} +3 -3
- package/dist/__shared/cjs/{index-68af2c28.js → index-ce267a89.js} +195 -551
- 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/Controls.js +4 -4
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/{SelectMenu → NewMenu}/BaseMenu.js +1 -1
- package/dist/components/NewMenu/Menu/Menu.js +24 -0
- package/dist/components/NewMenu/Menu/index.js +1 -0
- package/dist/components/NewMenu/NewMenu.js +8 -0
- package/dist/components/{SelectMenu → NewMenu/SelectMenu}/SelectMenu.js +1 -1
- package/dist/components/NewMenu/SelectMenu/index.js +1 -0
- package/dist/components/{SelectMenu → NewMenu}/index.js +2 -1
- package/dist/components/{SelectMenu → NewMenu}/parts/MenuAnchor.js +1 -1
- package/dist/components/NewMenu/parts/MenuItem.js +63 -0
- package/dist/components/{SelectMenu → NewMenu}/parts/MenuSearchBox.js +1 -1
- package/dist/components/{SelectMenu → NewMenu}/parts/MenuSpinner.js +1 -1
- package/dist/components/{SelectMenu → NewMenu}/parts/SubmenuAnchor.js +1 -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/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +4 -4
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +1 -1
- 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/components/index.js +1 -2
- 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 +4 -4
- package/dist/index.js +103 -202
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.js +20 -21
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +1 -1
- package/dist/components/Menu/Menu.js +0 -112
- package/dist/components/Menu/MenuContext.js +0 -11
- package/dist/components/Menu/index.js +0 -1
- package/dist/components/SelectMenu/SelectMenu2.js +0 -8
- package/dist/components/SelectMenu/parts/MenuItem.js +0 -76
- package/dist/next/Menu/Menu.js +0 -28
- package/dist/next/Menu/Menu2.js +0 -8
- package/dist/next/Menu/MenuButton.js +0 -44
- package/dist/next/Menu/MenuContext.js +0 -41
- package/dist/next/Menu/MenuItem.js +0 -55
- package/dist/next/Menu/MenuPane.js +0 -72
- package/dist/next/Menu/MenuSearch.js +0 -105
- package/dist/next/Menu/SubMenu.js +0 -84
- package/dist/next/Menu/constants.js +0 -9
- package/dist/next/Menu/index.js +0 -5
- /package/dist/components/{SelectMenu → NewMenu}/parts/ArrowNav/ArrowNav.js +0 -0
- /package/dist/components/{SelectMenu → NewMenu}/parts/ArrowNav/index.js +0 -0
- /package/dist/components/{SelectMenu → NewMenu}/parts/MenuContext.js +0 -0
- /package/dist/components/{SelectMenu → NewMenu}/parts/index.js +0 -0
package/dist/next/index.js
CHANGED
|
@@ -9,11 +9,10 @@ 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-ce267a89.js');
|
|
13
|
+
var icons_index = require('../__shared/cjs/index-763e59c2.js');
|
|
14
14
|
var libphonenumberJs = require('libphonenumber-js');
|
|
15
15
|
var InputMask = require('react-input-mask');
|
|
16
|
-
require('@radix-ui/react-dropdown-menu');
|
|
17
16
|
require('throttle-debounce');
|
|
18
17
|
require('react-popper');
|
|
19
18
|
require('@popperjs/core');
|
|
@@ -30,9 +29,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
30
29
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
31
30
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
32
31
|
|
|
33
|
-
var css_248z$5 = ".
|
|
34
|
-
var styles$5 = {"advancedTable":"
|
|
35
|
-
var stylesheet$5=".
|
|
32
|
+
var css_248z$5 = "._34mJV{overflow:auto;position:relative;max-width:100%;max-height:100%}._1Relt,._34mJV{background-color:#fff}._1Relt{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3H0Na{margin-bottom:4px}._2wstm{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1NxAK{display:flex}._1NxAK:focus{outline:none}body.keyboard-user ._1NxAK:focus ._1-usY: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 ._1NxAK:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1NxAK:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1NxAK:focus ._1-usY._2uR8T:after{right:-3px;bottom:1px}._3qCXM{padding-right:3px}._1-ue0{display:flex}._1-ue0._1Ryw3 ._1-TRb,._1-ue0._1Ryw3 ._1-usY{cursor:pointer}._1-ue0._3aaqn ._1-TRb,._1-ue0._3aaqn ._1-usY{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._1-ue0._3aaqn ._1-TRb._2uR8T,._1-ue0._3aaqn ._1-usY._2uR8T{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._1-ue0._3aaqn ._1-TRb._2uR8T ._1-TRb,._1-ue0._3aaqn ._1-TRb._2uR8T ._2Q9pG,._1-ue0._3aaqn ._1-TRb._2uR8T ._3CAnJ,._1-ue0._3aaqn ._1-usY._2uR8T ._1-TRb,._1-ue0._3aaqn ._1-usY._2uR8T ._2Q9pG,._1-ue0._3aaqn ._1-usY._2uR8T ._3CAnJ{background-color:rgba(11,110,208,.08)}._1-ue0._1Ryw3:hover:not(._3aaqn):not(._3yL4b) ._1-TRb,._1-ue0._1Ryw3:hover:not(._3aaqn):not(._3yL4b) ._1-usY{background-color:#f9f9f9}._1-ue0._1Ryw3:active:not(._3aaqn):not(._3yL4b) ._1-TRb,._1-ue0._1Ryw3:active:not(._3aaqn):not(._3yL4b) ._1-usY{background-color:#f3f3f3}._1-ue0:focus{outline:none}body.keyboard-user ._1-ue0:focus ._1-usY: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 ._1-ue0:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1-ue0:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1-ue0:focus ._1-usY._2uR8T:after{right:-3px;bottom:0}._1-ue0:last-of-type:focus{outline:none}body.keyboard-user ._1-ue0:last-of-type:focus ._1-usY: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 ._1-ue0:last-of-type:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1-ue0:last-of-type:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1-ue0:last-of-type:focus ._1-usY._2uR8T:after{right:-3px;bottom:1px}._1-ue0:last-of-type ._3CAnJ:focus{outline:none}body.keyboard-user ._1-ue0:last-of-type ._3CAnJ._pf7DG:after,body.keyboard-user ._1-ue0:last-of-type ._3CAnJ: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}._1-ue0:first-of-type:focus{outline:none}body.keyboard-user ._1-ue0:first-of-type:focus ._1-usY: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 ._1-ue0:first-of-type:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1-ue0:first-of-type:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1-ue0:first-of-type:focus ._1-usY._2uR8T:after{right:-3px;bottom:0}._1-ue0:first-of-type ._3CAnJ:focus{outline:none}body.keyboard-user ._1-ue0:first-of-type ._3CAnJ._pf7DG:after,body.keyboard-user ._1-ue0:first-of-type ._3CAnJ: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}._34bV1{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}._34bV1._2Az37{flex-grow:1}._34bV1._1ab0A{cursor:pointer}._34bV1._1ab0A:hover:not(._1yUBC){background-color:#f9f9f9;border-bottom-color:#6a6d70}._34bV1._1ab0A:active:not(._1yUBC){background-color:#f3f3f3}._34bV1._35WQF:not(._1yUBC){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._34bV1._1yUBC{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._34bV1 ._2UoNh{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._34bV1 ._2UoNh._MjjGC{left:-1px}._34bV1 ._2UoNh._3bdvp{right:0}._34bV1 ._IO5gf{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._34bV1 ._IO5gf._MjjGC{left:-2px}._34bV1 ._IO5gf._3bdvp{right:-1px}._34bV1:first-of-type ._MjjGC._2UoNh{left:0;width:2px;border-left:1px solid #fff}._34bV1:first-of-type ._MjjGC._IO5gf{left:0}._34bV1:last-of-type ._3bdvp._2UoNh{right:0;width:2px;border-right:1px solid #fff}._34bV1:last-of-type ._3bdvp._IO5gf{right:0}._34bV1 ._2pEyc{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._34bV1 ._2pEyc ._QgxXI{position:absolute;width:2px;right:2px;top:0;bottom:0}._34bV1 ._2pEyc ._QgxXI._3uowa{background-color:#0a6ed1}._34bV1 ._2pEyc:hover ._QgxXI:not(._3uowa){background-color:#d9d9d9}._34bV1 ._2Gtr9{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._34bV1 ._2Gtr9._1zjtb{flex-direction:row-reverse;justify-content:flex-start}._34bV1 ._2Gtr9._1zjtb ._3UKiI{margin:1px 7px 1px 1px}._34bV1 ._2Gtr9 ._FRofI{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._34bV1 ._2Gtr9 ._3UKiI{margin:1px 1px 1px 7px;flex-shrink:0}._34bV1 ._1MK6h{margin-left:6px;margin-right:4px;flex-shrink:0}._34bV1 ._3dD70{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._34bV1:focus{outline:none}body.keyboard-user ._34bV1._pf7DG:after,body.keyboard-user ._34bV1: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}._1tHaF{margin-right:6px}._2uR8T{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._2uR8T[focus-within]{z-index:30}._2uR8T:focus-within{z-index:30}._3CAnJ{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}._3CAnJ ._1Mv7t{width:100%;padding:12px 12px 11px;overflow:hidden}._3CAnJ._1yUBC{background-color:#efefef;border-bottom-color:#dfdfe1}._3CAnJ._2Az37{flex-grow:1}._3CAnJ:focus{outline:none}body.keyboard-user ._3CAnJ._pf7DG:after,body.keyboard-user ._3CAnJ: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}._1-TRb{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._1-TRb._3eQV2{border-bottom-color:#d9d9d9;background-color:#fff}._2Q9pG{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}._2Q9pG._3eQV2{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2Q9pG:focus input~span,._2Q9pG:hover input~span{border-color:#0b6ed0}._2Q9pG ._3VzEX{position:relative;display:inline-flex}._2Q9pG ._3VzEX ._3wYxf{margin:0!important}._2Q9pG ._3VzEX ._1G0IN{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._34ueg{justify-content:flex-start}._3ofNK{justify-content:center;text-align:center}._1zjtb{justify-content:flex-end;text-align:right}._1-xpS{display:none}._1BiPb{opacity:0;height:0;width:0;overflow:hidden}._1BiPb,._1nzdJ{position:absolute}._1nzdJ{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._3vJjk{width:246px}";
|
|
33
|
+
var styles$5 = {"advancedTable":"_34mJV","advancedTablePaginationContainer":"_1Relt","advancedTablePagination":"_3H0Na","advancedTableColumnHeadersRowGroup":"_2wstm","advancedTableColumnHeaders":"_1NxAK","advancedTableRowChild":"_1-usY","pinnedContainer":"_2uR8T","advancedTableRowGroup":"_3qCXM","advancedTableRow":"_1-ue0","hasRowAction":"_1Ryw3","advancedTableExpandRowSpacer":"_1-TRb","isSelected":"_3aaqn","advancedTableCheckbox":"_2Q9pG","advancedTableCell":"_3CAnJ","isCheckboxHovered":"_3yL4b","showFocusRing":"_pf7DG","advancedTableColumnHeader":"_34bV1","fillRemainingSpace":"_2Az37","isSortable":"_1ab0A","isDragging":"_1yUBC","isSorted":"_35WQF","dropTargetLine":"_2UoNh","dropTargetLeft":"_MjjGC","dropTargetRight":"_3bdvp","dropTargetMarker":"_IO5gf","resizeHandle":"_2pEyc","resizeLine":"_QgxXI","isResizing":"_3uowa","advancedTableColumnHeaderLabel":"_2Gtr9","rightAligned":"_1zjtb","sortIcon":"_3UKiI","advancedTableColumnHeaderLabelText":"_FRofI","advancedTableColumnHeaderMenu":"_1MK6h","advancedTableColumnHeaderMenuHiddenAnchor":"_3dD70","advancedTableColumnHeaderMenuItemIcon":"_1tHaF","advancedTableCellContainer":"_1Mv7t","header":"_3eQV2","checkboxContainer":"_3VzEX","checkbox":"_3wYxf","mixed":"_1G0IN","leftAligned":"_34ueg","centerAligned":"_3ofNK","hiddenDescription":"_1-xpS","hiddenLiveRegion":"_1BiPb","dragPreview":"_1nzdJ","rowActionMenuPane":"_3vJjk"};
|
|
34
|
+
var stylesheet$5="._34mJV{overflow:auto;position:relative;max-width:100%;max-height:100%}._1Relt,._34mJV{background-color:#fff}._1Relt{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3H0Na{margin-bottom:4px}._2wstm{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1NxAK{display:flex}._1NxAK:focus{outline:none}body.keyboard-user ._1NxAK:focus ._1-usY: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 ._1NxAK:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1NxAK:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1NxAK:focus ._1-usY._2uR8T:after{right:-3px;bottom:1px}._3qCXM{padding-right:3px}._1-ue0{display:flex}._1-ue0._1Ryw3 ._1-TRb,._1-ue0._1Ryw3 ._1-usY{cursor:pointer}._1-ue0._3aaqn ._1-TRb,._1-ue0._3aaqn ._1-usY{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._1-ue0._3aaqn ._1-TRb._2uR8T,._1-ue0._3aaqn ._1-usY._2uR8T{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._1-ue0._3aaqn ._1-TRb._2uR8T ._1-TRb,._1-ue0._3aaqn ._1-TRb._2uR8T ._2Q9pG,._1-ue0._3aaqn ._1-TRb._2uR8T ._3CAnJ,._1-ue0._3aaqn ._1-usY._2uR8T ._1-TRb,._1-ue0._3aaqn ._1-usY._2uR8T ._2Q9pG,._1-ue0._3aaqn ._1-usY._2uR8T ._3CAnJ{background-color:rgba(11,110,208,.08)}._1-ue0._1Ryw3:hover:not(._3aaqn):not(._3yL4b) ._1-TRb,._1-ue0._1Ryw3:hover:not(._3aaqn):not(._3yL4b) ._1-usY{background-color:#f9f9f9}._1-ue0._1Ryw3:active:not(._3aaqn):not(._3yL4b) ._1-TRb,._1-ue0._1Ryw3:active:not(._3aaqn):not(._3yL4b) ._1-usY{background-color:#f3f3f3}._1-ue0:focus{outline:none}body.keyboard-user ._1-ue0:focus ._1-usY: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 ._1-ue0:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1-ue0:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1-ue0:focus ._1-usY._2uR8T:after{right:-3px;bottom:0}._1-ue0:last-of-type:focus{outline:none}body.keyboard-user ._1-ue0:last-of-type:focus ._1-usY: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 ._1-ue0:last-of-type:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1-ue0:last-of-type:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1-ue0:last-of-type:focus ._1-usY._2uR8T:after{right:-3px;bottom:1px}._1-ue0:last-of-type ._3CAnJ:focus{outline:none}body.keyboard-user ._1-ue0:last-of-type ._3CAnJ._pf7DG:after,body.keyboard-user ._1-ue0:last-of-type ._3CAnJ: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}._1-ue0:first-of-type:focus{outline:none}body.keyboard-user ._1-ue0:first-of-type:focus ._1-usY: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 ._1-ue0:first-of-type:focus ._1-usY:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1-ue0:first-of-type:focus ._1-usY:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1-ue0:first-of-type:focus ._1-usY._2uR8T:after{right:-3px;bottom:0}._1-ue0:first-of-type ._3CAnJ:focus{outline:none}body.keyboard-user ._1-ue0:first-of-type ._3CAnJ._pf7DG:after,body.keyboard-user ._1-ue0:first-of-type ._3CAnJ: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}._34bV1{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}._34bV1._2Az37{flex-grow:1}._34bV1._1ab0A{cursor:pointer}._34bV1._1ab0A:hover:not(._1yUBC){background-color:#f9f9f9;border-bottom-color:#6a6d70}._34bV1._1ab0A:active:not(._1yUBC){background-color:#f3f3f3}._34bV1._35WQF:not(._1yUBC){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._34bV1._1yUBC{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._34bV1 ._2UoNh{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._34bV1 ._2UoNh._MjjGC{left:-1px}._34bV1 ._2UoNh._3bdvp{right:0}._34bV1 ._IO5gf{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._34bV1 ._IO5gf._MjjGC{left:-2px}._34bV1 ._IO5gf._3bdvp{right:-1px}._34bV1:first-of-type ._MjjGC._2UoNh{left:0;width:2px;border-left:1px solid #fff}._34bV1:first-of-type ._MjjGC._IO5gf{left:0}._34bV1:last-of-type ._3bdvp._2UoNh{right:0;width:2px;border-right:1px solid #fff}._34bV1:last-of-type ._3bdvp._IO5gf{right:0}._34bV1 ._2pEyc{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._34bV1 ._2pEyc ._QgxXI{position:absolute;width:2px;right:2px;top:0;bottom:0}._34bV1 ._2pEyc ._QgxXI._3uowa{background-color:#0a6ed1}._34bV1 ._2pEyc:hover ._QgxXI:not(._3uowa){background-color:#d9d9d9}._34bV1 ._2Gtr9{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._34bV1 ._2Gtr9._1zjtb{flex-direction:row-reverse;justify-content:flex-start}._34bV1 ._2Gtr9._1zjtb ._3UKiI{margin:1px 7px 1px 1px}._34bV1 ._2Gtr9 ._FRofI{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._34bV1 ._2Gtr9 ._3UKiI{margin:1px 1px 1px 7px;flex-shrink:0}._34bV1 ._1MK6h{margin-left:6px;margin-right:4px;flex-shrink:0}._34bV1 ._3dD70{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._34bV1:focus{outline:none}body.keyboard-user ._34bV1._pf7DG:after,body.keyboard-user ._34bV1: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}._1tHaF{margin-right:6px}._2uR8T{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._2uR8T[focus-within]{z-index:30}._2uR8T:focus-within{z-index:30}._3CAnJ{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}._3CAnJ ._1Mv7t{width:100%;padding:12px 12px 11px;overflow:hidden}._3CAnJ._1yUBC{background-color:#efefef;border-bottom-color:#dfdfe1}._3CAnJ._2Az37{flex-grow:1}._3CAnJ:focus{outline:none}body.keyboard-user ._3CAnJ._pf7DG:after,body.keyboard-user ._3CAnJ: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}._1-TRb{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._1-TRb._3eQV2{border-bottom-color:#d9d9d9;background-color:#fff}._2Q9pG{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}._2Q9pG._3eQV2{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2Q9pG:focus input~span,._2Q9pG:hover input~span{border-color:#0b6ed0}._2Q9pG ._3VzEX{position:relative;display:inline-flex}._2Q9pG ._3VzEX ._3wYxf{margin:0!important}._2Q9pG ._3VzEX ._1G0IN{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._34ueg{justify-content:flex-start}._3ofNK{justify-content:center;text-align:center}._1zjtb{justify-content:flex-end;text-align:right}._1-xpS{display:none}._1BiPb{opacity:0;height:0;width:0;overflow:hidden}._1BiPb,._1nzdJ{position:absolute}._1nzdJ{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._3vJjk{width:246px}";
|
|
36
35
|
icons_index.styleInject(css_248z$5);
|
|
37
36
|
|
|
38
37
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -1982,9 +1981,9 @@ function useFocusState(_ref8) {
|
|
|
1982
1981
|
|
|
1983
1982
|
/* eslint-disable import/prefer-default-export */
|
|
1984
1983
|
|
|
1985
|
-
var css_248z$4 = ".
|
|
1986
|
-
var styles$4 = {"collapsibleSearchInput":"
|
|
1987
|
-
var stylesheet$4=".
|
|
1984
|
+
var css_248z$4 = "._1XOgo{display:inline-block;width:36px;transition:width .25s ease-out}._cIegR{width:100%}._32SmZ>input{padding-right:0!important}.__t8Kc>svg{fill:#515559}";
|
|
1985
|
+
var styles$4 = {"collapsibleSearchInput":"_1XOgo","searchInput":"_cIegR","searchInputCollapsed":"_32SmZ","iconButton":"__t8Kc"};
|
|
1986
|
+
var stylesheet$4="._1XOgo{display:inline-block;width:36px;transition:width .25s ease-out}._cIegR{width:100%}._32SmZ>input{padding-right:0!important}.__t8Kc>svg{fill:#515559}";
|
|
1988
1987
|
icons_index.styleInject(css_248z$4);
|
|
1989
1988
|
|
|
1990
1989
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2138,9 +2137,9 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2138
2137
|
}));
|
|
2139
2138
|
});
|
|
2140
2139
|
|
|
2141
|
-
var css_248z$3 = ".
|
|
2142
|
-
var styles$3 = {"input":"
|
|
2143
|
-
var stylesheet$3=".
|
|
2140
|
+
var css_248z$3 = "._3hMLK input{padding-left:76px!important}._3E2Gf input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3E2Gf input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3E2Gf input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._McJxP{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._McJxP,._McJxP._3E2Gf:hover{background-color:transparent!important}._McJxP:hover{background-color:rgba(50,54,58,.08)!important}._McJxP:active{background-color:rgba(50,54,58,.11)!important}._McJxP svg{top:2px!important}._39qWE{position:relative}._3VRK-{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2141
|
+
var styles$3 = {"input":"_3hMLK","disabled":"_3E2Gf","dropdown":"_McJxP","container":"_39qWE","countryCode":"_3VRK-"};
|
|
2142
|
+
var stylesheet$3="._3hMLK input{padding-left:76px!important}._3E2Gf input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3E2Gf input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3E2Gf input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._McJxP{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._McJxP,._McJxP._3E2Gf:hover{background-color:transparent!important}._McJxP:hover{background-color:rgba(50,54,58,.08)!important}._McJxP:active{background-color:rgba(50,54,58,.11)!important}._McJxP svg{top:2px!important}._39qWE{position:relative}._3VRK-{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2144
2143
|
icons_index.styleInject(css_248z$3);
|
|
2145
2144
|
|
|
2146
2145
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2880,9 +2879,9 @@ function Combobox(_ref) {
|
|
|
2880
2879
|
}, children);
|
|
2881
2880
|
}
|
|
2882
2881
|
|
|
2883
|
-
var css_248z$2 = ".
|
|
2884
|
-
var styles$2 = {"loadingSpinner":"
|
|
2885
|
-
var stylesheet$2=".
|
|
2882
|
+
var css_248z$2 = "._7FEik :after{background-color:#515559!important}._2FYdq{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}._2FYdq ._25a0c ._2Wjpz{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}._2FYdq ._25a0c:first-child ._3Uj2-{display:none}._2FYdq ._1to3R{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2FYdq ._1to3R:hover{background-color:#efefef}._2FYdq ._1to3R:hover._1W9qB{background-color:#e4effa}._2FYdq ._1to3R._1W9qB{background-color:#ebf3fb}._2FYdq ._1to3R:active:not(._1W9qB){background-color:#e8e9e9}";
|
|
2883
|
+
var styles$2 = {"loadingSpinner":"_7FEik","flyout":"_2FYdq","group":"_25a0c","header":"_2Wjpz","divider":"_3Uj2-","option":"_1to3R","selected":"_1W9qB"};
|
|
2884
|
+
var stylesheet$2="._7FEik :after{background-color:#515559!important}._2FYdq{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}._2FYdq ._25a0c ._2Wjpz{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}._2FYdq ._25a0c:first-child ._3Uj2-{display:none}._2FYdq ._1to3R{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2FYdq ._1to3R:hover{background-color:#efefef}._2FYdq ._1to3R:hover._1W9qB{background-color:#e4effa}._2FYdq ._1to3R._1W9qB{background-color:#ebf3fb}._2FYdq ._1to3R:active:not(._1W9qB){background-color:#e8e9e9}";
|
|
2886
2885
|
icons_index.styleInject(css_248z$2);
|
|
2887
2886
|
|
|
2888
2887
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3193,9 +3192,9 @@ function ComboboxOption(_ref) {
|
|
|
3193
3192
|
}, label);
|
|
3194
3193
|
}
|
|
3195
3194
|
|
|
3196
|
-
var css_248z$1 = ".
|
|
3197
|
-
var styles$1 = {"container":"
|
|
3198
|
-
var stylesheet$1=".
|
|
3195
|
+
var css_248z$1 = "._1Gs2d{display:flex}._SVQG1{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._SVQG1._3lQhu{background-color:#fff}._SVQG1._2z_0d,._SVQG1._3lQhu._2-5SR:not(._SVQG1._3lQhu._1ztdO),body.keyboard-user ._SVQG1._3lQhu._1Z4hR:not(._4fwMD){background-color:#0b6ed0}._SVQG1._2z_0d._1ztdO._2-5SR,._SVQG1._2z_0d._4fwMD._1Z4hR,._SVQG1._2z_0d._4fwMD._1ztdO{opacity:.4}._2P6z2{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._2P6z2:focus{z-index:1}._nwK51{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}._nwK51 svg{margin-left:1px}._nwK51._3lQhu{background-color:#0b6ed0;border-color:transparent}._nwK51._3lQhu svg{fill:#fff!important}._nwK51._3lQhu:not(._NaMzr):hover{background-color:#085caf!important}._nwK51._3lQhu:not(._NaMzr):active{background-color:#0854a1!important}._nwK51._3lQhu._NaMzr{opacity:.4}._nwK51._3lQhu._NaMzr svg{background-color:transparent}._nwK51._2z_0d{border-color:#0b6ed0;background-color:#fff}._nwK51._2z_0d svg{fill:#0b6ed0!important}._nwK51._2z_0d:not(._NaMzr):hover{background-color:#eef5fc!important}._nwK51._2z_0d:not(._NaMzr):active{background-color:#e1edf9!important}._nwK51._2z_0d._NaMzr{opacity:.4}._nwK51._2z_0d._NaMzr svg{background-color:transparent}._p4fSu{width:260px}";
|
|
3196
|
+
var styles$1 = {"container":"_1Gs2d","divider":"_SVQG1","primary":"_3lQhu","mainButtonFocus":"_1Z4hR","mainButtonDisabled":"_4fwMD","dropdownButtonFocus":"_2-5SR","dropdownButtonDisabled":"_1ztdO","secondary":"_2z_0d","mainButton":"_2P6z2","dropdownButton":"_nwK51","disabled":"_NaMzr","dropdownOption":"_p4fSu"};
|
|
3197
|
+
var stylesheet$1="._1Gs2d{display:flex}._SVQG1{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._SVQG1._3lQhu{background-color:#fff}._SVQG1._2z_0d,._SVQG1._3lQhu._2-5SR:not(._SVQG1._3lQhu._1ztdO),body.keyboard-user ._SVQG1._3lQhu._1Z4hR:not(._4fwMD){background-color:#0b6ed0}._SVQG1._2z_0d._1ztdO._2-5SR,._SVQG1._2z_0d._4fwMD._1Z4hR,._SVQG1._2z_0d._4fwMD._1ztdO{opacity:.4}._2P6z2{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._2P6z2:focus{z-index:1}._nwK51{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}._nwK51 svg{margin-left:1px}._nwK51._3lQhu{background-color:#0b6ed0;border-color:transparent}._nwK51._3lQhu svg{fill:#fff!important}._nwK51._3lQhu:not(._NaMzr):hover{background-color:#085caf!important}._nwK51._3lQhu:not(._NaMzr):active{background-color:#0854a1!important}._nwK51._3lQhu._NaMzr{opacity:.4}._nwK51._3lQhu._NaMzr svg{background-color:transparent}._nwK51._2z_0d{border-color:#0b6ed0;background-color:#fff}._nwK51._2z_0d svg{fill:#0b6ed0!important}._nwK51._2z_0d:not(._NaMzr):hover{background-color:#eef5fc!important}._nwK51._2z_0d:not(._NaMzr):active{background-color:#e1edf9!important}._nwK51._2z_0d._NaMzr{opacity:.4}._nwK51._2z_0d._NaMzr svg{background-color:transparent}._p4fSu{width:260px}";
|
|
3199
3198
|
icons_index.styleInject(css_248z$1);
|
|
3200
3199
|
|
|
3201
3200
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3295,9 +3294,9 @@ const SplitButtonOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3295
3294
|
}, children);
|
|
3296
3295
|
});
|
|
3297
3296
|
|
|
3298
|
-
var css_248z = ".
|
|
3299
|
-
var styles = {"button":"
|
|
3300
|
-
var stylesheet=".
|
|
3297
|
+
var css_248z = "._sn-eh{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}._sn-eh:hover:not(._pgiTH){background-color:rgba(50,54,58,.08)}._sn-eh:hover:not(._pgiTH)._3-yP7{border-color:#085caf;background-color:rgba(11,110,208,.04)}._sn-eh:hover:not(._pgiTH)._3-yP7 ._xFDqG{color:#32363a}._sn-eh:hover:not(._pgiTH)._3-yP7 ._3Oll-{fill:#32363a}._sn-eh:hover:not(._pgiTH)._3-yP7 ._1Nbdj{fill:#085caf}._sn-eh:hover:not(._pgiTH)._3-yP7 ._20giS{background-color:rgba(11,110,208,.11)}._sn-eh:hover:not(._pgiTH)._3-yP7 ._20giS ._yIVlr{color:#085caf}._sn-eh:active:not(._pgiTH){background-color:#e8e9e9}._sn-eh:active:not(._pgiTH)._3-yP7{background-color:rgba(11,110,208,.11);border-color:#0854a1}._sn-eh:active:not(._pgiTH)._3-yP7 ._1Nbdj{fill:#0854a1}._sn-eh:active:not(._pgiTH)._3-yP7 ._20giS{background-color:rgba(11,110,208,.11)}._sn-eh:active:not(._pgiTH)._3-yP7 ._20giS ._yIVlr{color:#0854a1}._sn-eh._pgiTH{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._sn-eh._3-yP7{border-color:#0b6ed0}._3Oll-{fill:#515559;margin-right:4px}._xFDqG{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._xFDqG+._20giS{margin-left:6px}._xFDqG._pgiTH{color:#74777a}._20giS{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}._yIVlr{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1Nbdj{fill:#515559}._1Nbdj._pgiTH,._1Nbdj._pgiTH._3-yP7{fill:rgba(116,119,122,.4)}._1Nbdj._3-yP7{fill:#0b6ed0}._1Nbdj._2kLCj{transform:rotate(-180deg)}body.keyboard-user ._sn-eh:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3298
|
+
var styles = {"button":"_sn-eh","disabled":"_pgiTH","selected":"_3-yP7","label":"_xFDqG","lockIcon":"_3Oll-","chevronIcon":"_1Nbdj","selectedFiltersContainer":"_20giS","selectedFilters":"_yIVlr","open":"_2kLCj"};
|
|
3299
|
+
var stylesheet="._sn-eh{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}._sn-eh:hover:not(._pgiTH){background-color:rgba(50,54,58,.08)}._sn-eh:hover:not(._pgiTH)._3-yP7{border-color:#085caf;background-color:rgba(11,110,208,.04)}._sn-eh:hover:not(._pgiTH)._3-yP7 ._xFDqG{color:#32363a}._sn-eh:hover:not(._pgiTH)._3-yP7 ._3Oll-{fill:#32363a}._sn-eh:hover:not(._pgiTH)._3-yP7 ._1Nbdj{fill:#085caf}._sn-eh:hover:not(._pgiTH)._3-yP7 ._20giS{background-color:rgba(11,110,208,.11)}._sn-eh:hover:not(._pgiTH)._3-yP7 ._20giS ._yIVlr{color:#085caf}._sn-eh:active:not(._pgiTH){background-color:#e8e9e9}._sn-eh:active:not(._pgiTH)._3-yP7{background-color:rgba(11,110,208,.11);border-color:#0854a1}._sn-eh:active:not(._pgiTH)._3-yP7 ._1Nbdj{fill:#0854a1}._sn-eh:active:not(._pgiTH)._3-yP7 ._20giS{background-color:rgba(11,110,208,.11)}._sn-eh:active:not(._pgiTH)._3-yP7 ._20giS ._yIVlr{color:#0854a1}._sn-eh._pgiTH{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._sn-eh._3-yP7{border-color:#0b6ed0}._3Oll-{fill:#515559;margin-right:4px}._xFDqG{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._xFDqG+._20giS{margin-left:6px}._xFDqG._pgiTH{color:#74777a}._20giS{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}._yIVlr{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1Nbdj{fill:#515559}._1Nbdj._pgiTH,._1Nbdj._pgiTH._3-yP7{fill:rgba(116,119,122,.4)}._1Nbdj._3-yP7{fill:#0b6ed0}._1Nbdj._2kLCj{transform:rotate(-180deg)}body.keyboard-user ._sn-eh:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3301
3300
|
icons_index.styleInject(css_248z);
|
|
3302
3301
|
|
|
3303
3302
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -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 = {"flyout":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._TQ4cq{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._3zWFF{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._3zWFF._3DP54,._3zWFF._ixNNu._3zWFF:hover{background-color:#efefef}._3zWFF._24YWA{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._3zWFF._24YWA._3DP54,._3zWFF._24YWA._ixNNu._3zWFF._24YWA:hover{background-color:#e4effa}._3zWFF:active:not(._24YWA):not([aria-disabled=true]){background-color:#e8e9e9}._1wXbT ._12HRH{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._1wXbT ._3tQnP{display:none}._1wXbT:not(:first-child) ._3tQnP{display:block;margin:3.5px 0}._16uPn{width:100%;height:40px}";
|
|
4
|
+
var styles = {"flyout":"_TQ4cq","flyoutOption":"_3zWFF","highlighted":"_3DP54","hoverHighlight":"_ixNNu","selected":"_24YWA","flyoutHeader":"_1wXbT","headerContent":"_12HRH","headerDivider":"_3tQnP","flyoutSpinner":"_16uPn"};
|
|
5
|
+
var stylesheet="._TQ4cq{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._3zWFF{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._3zWFF._3DP54,._3zWFF._ixNNu._3zWFF:hover{background-color:#efefef}._3zWFF._24YWA{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._3zWFF._24YWA._3DP54,._3zWFF._24YWA._ixNNu._3zWFF._24YWA:hover{background-color:#e4effa}._3zWFF:active:not(._24YWA):not([aria-disabled=true]){background-color:#e8e9e9}._1wXbT ._12HRH{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._1wXbT ._3tQnP{display:none}._1wXbT:not(:first-child) ._3tQnP{display:block;margin:3.5px 0}._16uPn{width:100%;height:40px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/package.json
CHANGED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import '../../next/Menu/index.js';
|
|
4
|
-
import { useMenuContext, MenuContextProvider } from './MenuContext.js';
|
|
5
|
-
import '../../hooks/index.js';
|
|
6
|
-
import '../UIProvider/index.js';
|
|
7
|
-
import useId from '../../hooks/useId/useId.js';
|
|
8
|
-
import { SubMenu } from '../../next/Menu/SubMenu.js';
|
|
9
|
-
import { Menu as Menu$1 } from '../../next/Menu/Menu.js';
|
|
10
|
-
import { MenuButton } from '../../next/Menu/MenuButton.js';
|
|
11
|
-
import { PortalTargetProvider } from '../UIProvider/PortalTargetContext.js';
|
|
12
|
-
import { MenuPane } from '../../next/Menu/MenuPane.js';
|
|
13
|
-
|
|
14
|
-
const Menu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
15
|
-
var _anchor$props$id, _anchor$props, _anchor$props$ariaLa, _anchor$props2, _anchor$props$ariaLa2, _anchor$props3;
|
|
16
|
-
|
|
17
|
-
let {
|
|
18
|
-
anchor,
|
|
19
|
-
children,
|
|
20
|
-
className,
|
|
21
|
-
flyoutClassName,
|
|
22
|
-
disabled,
|
|
23
|
-
id,
|
|
24
|
-
label,
|
|
25
|
-
maxHeight,
|
|
26
|
-
onIsOpenChange,
|
|
27
|
-
isOpen,
|
|
28
|
-
placement = 'bottom-start',
|
|
29
|
-
portalTarget,
|
|
30
|
-
searchable = false,
|
|
31
|
-
isSearchFilteringDisabled = false,
|
|
32
|
-
searchValue,
|
|
33
|
-
onSearchValueChange,
|
|
34
|
-
zIndex = 1000,
|
|
35
|
-
'aria-label': externalAriaLabel,
|
|
36
|
-
'aria-labelledby': externalAriaLabelledBy,
|
|
37
|
-
onKeyDown,
|
|
38
|
-
onClick,
|
|
39
|
-
...rest
|
|
40
|
-
} = _ref;
|
|
41
|
-
const {
|
|
42
|
-
isChildOfMenu
|
|
43
|
-
} = useMenuContext();
|
|
44
|
-
const anchorId = useId((_anchor$props$id = anchor === null || anchor === void 0 ? void 0 : (_anchor$props = anchor.props) === null || _anchor$props === void 0 ? void 0 : _anchor$props.id) !== null && _anchor$props$id !== void 0 ? _anchor$props$id : id);
|
|
45
|
-
const paneId = "".concat(anchorId, "-menu");
|
|
46
|
-
const ariaLabelledBy = (_anchor$props$ariaLa = anchor === null || anchor === void 0 ? void 0 : (_anchor$props2 = anchor.props) === null || _anchor$props2 === void 0 ? void 0 : _anchor$props2['aria-labelledby']) !== null && _anchor$props$ariaLa !== void 0 ? _anchor$props$ariaLa : externalAriaLabelledBy ? "".concat(externalAriaLabelledBy, " ").concat(anchorId) : undefined;
|
|
47
|
-
const ariaLabel = (_anchor$props$ariaLa2 = anchor === null || anchor === void 0 ? void 0 : (_anchor$props3 = anchor.props) === null || _anchor$props3 === void 0 ? void 0 : _anchor$props3['aria-label']) !== null && _anchor$props$ariaLa2 !== void 0 ? _anchor$props$ariaLa2 : externalAriaLabel && typeof label === 'string' ? "".concat(externalAriaLabel, " ").concat(label) : externalAriaLabel;
|
|
48
|
-
return isChildOfMenu ? /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
49
|
-
value: {
|
|
50
|
-
isChildOfMenu: true,
|
|
51
|
-
onIsOpenChange,
|
|
52
|
-
subMenuTriggerProps: { ...rest,
|
|
53
|
-
className,
|
|
54
|
-
id: anchorId,
|
|
55
|
-
onClick,
|
|
56
|
-
onKeyDown,
|
|
57
|
-
'aria-controls': paneId
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}, /*#__PURE__*/React__default.createElement(SubMenu, {
|
|
61
|
-
isDisabled: disabled,
|
|
62
|
-
label: label,
|
|
63
|
-
className: flyoutClassName,
|
|
64
|
-
isSearchable: searchable,
|
|
65
|
-
"aria-labelledby": anchorId,
|
|
66
|
-
id: paneId,
|
|
67
|
-
style: {
|
|
68
|
-
maxHeight,
|
|
69
|
-
zIndex
|
|
70
|
-
},
|
|
71
|
-
isSearchFilteringDisabled: isSearchFilteringDisabled,
|
|
72
|
-
searchValue: searchValue,
|
|
73
|
-
onSearchValueChange: onSearchValueChange
|
|
74
|
-
}, children)) : /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
75
|
-
value: {
|
|
76
|
-
isChildOfMenu: true
|
|
77
|
-
}
|
|
78
|
-
}, /*#__PURE__*/React__default.createElement(Menu$1, {
|
|
79
|
-
isOpen: isOpen,
|
|
80
|
-
onIsOpenChange: onIsOpenChange,
|
|
81
|
-
isDisabled: disabled
|
|
82
|
-
}, /*#__PURE__*/React__default.createElement(MenuButton, _extends({}, rest, {
|
|
83
|
-
id: anchorId,
|
|
84
|
-
className: className,
|
|
85
|
-
ref: ref,
|
|
86
|
-
asChild: Boolean(anchor),
|
|
87
|
-
"aria-labelledby": ariaLabelledBy,
|
|
88
|
-
"aria-label": ariaLabel,
|
|
89
|
-
onClick: onClick,
|
|
90
|
-
onKeyDown: onKeyDown,
|
|
91
|
-
"aria-controls": paneId,
|
|
92
|
-
role: anchor ? 'button' : undefined,
|
|
93
|
-
tabIndex: anchor ? 0 : undefined
|
|
94
|
-
}), anchor !== null && anchor !== void 0 ? anchor : label), /*#__PURE__*/React__default.createElement(PortalTargetProvider, {
|
|
95
|
-
target: portalTarget
|
|
96
|
-
}, /*#__PURE__*/React__default.createElement(MenuPane, {
|
|
97
|
-
className: flyoutClassName,
|
|
98
|
-
isSearchable: searchable,
|
|
99
|
-
isSearchFilteringDisabled: isSearchFilteringDisabled,
|
|
100
|
-
"aria-labelledby": anchorId,
|
|
101
|
-
id: paneId,
|
|
102
|
-
style: {
|
|
103
|
-
maxHeight,
|
|
104
|
-
zIndex
|
|
105
|
-
},
|
|
106
|
-
placement: placement,
|
|
107
|
-
searchValue: searchValue,
|
|
108
|
-
onSearchValueChange: onSearchValueChange
|
|
109
|
-
}, children))));
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
export { Menu as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import '../../utils/index.js';
|
|
2
|
-
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
|
-
|
|
4
|
-
const {
|
|
5
|
-
useContext: useMenuContext,
|
|
6
|
-
Provider: MenuContextProvider
|
|
7
|
-
} = createContextUtilities({
|
|
8
|
-
isChildOfMenu: false
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export { MenuContextProvider, useMenuContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Menu } from './Menu.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = "._3_BnN._3_BnN{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._3_BnN._3_BnN,._3_BnN._3_BnN ._Whm5p{display:inline-flex;align-items:center}._3_BnN._3_BnN ._Whm5p{overflow:hidden;text-overflow:ellipsis}._3_BnN._3_BnN._1OJuF{min-height:26px;height:26px}._3_BnN._3_BnN._1l2k1{color:#32363a}._3_BnN._3_BnN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._3_BnN._3_BnN:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3_BnN._3_BnN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._3_BnN._3_BnN[aria-disabled=true]>svg{fill:#515559;opacity:.4}._3_BnN._3_BnN._wiAws{padding-left:0}._3_BnN._3_BnN._1tJEE{margin-top:4px}._3_BnN._3_BnN ._2A6cr{fill:#515559}._3_BnN._3_BnN ._2A6cr._1OJuF{top:0}._3_BnN._3_BnN ._2A6cr._1NYGS{transform:rotate(-180deg)}._2U7xq{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._1Vq7q{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}._1Vq7q::-webkit-scrollbar,._1Vq7q::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._1Vq7q::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._1Vq7q::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb,._1Vq7q[focus-within]::-webkit-scrollbar,._1Vq7q[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._1Vq7q:focus-within::-webkit-scrollbar,._1Vq7q:focus-within::-webkit-scrollbar-thumb,._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb{visibility:visible}._1p7HF{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1p7HF[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1p7HF._laC2N{background-color:#efefef}._1p7HF._1l2k1{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._1p7HF._1l2k1._laC2N{background-color:#e4effa}._1p7HF._iuo1I{cursor:default}._1p7HF:active:not(._2kZ0L):not(._1l2k1):not([aria-disabled=true]):not(._iuo1I){background-color:#e8e9e9}._2kZ0L{padding-right:32px}._2kZ0L ._2A6cr{position:absolute;top:8px;right:3px;fill:#515559}._2ulCK{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._2uJ2R{position:absolute;top:13px;left:13px}._1peIY._1peIY{padding-left:32px}._1QIos{margin:2px 12px 2px 0;flex-shrink:0}._1QIos._3h-jq>svg{border-color:#0b6ed0}._X3MYI{display:flex;justify-self:center;margin:8px}";
|
|
4
|
-
var styles = {"menuBtn":"_3_BnN","menuBtnLabel":"_Whm5p","small":"_1OJuF","selected":"_1l2k1","unlabelledButton":"_wiAws","formLabelled":"_1tJEE","rightIcon":"_2A6cr","open":"_1NYGS","menuItemContainer":"_2U7xq","contentPane":"_1Vq7q","menuItem":"_1p7HF","focus":"_laC2N","noMenuItems":"_iuo1I","subMenu":"_2kZ0L","searchBox":"_2ulCK","searchBoxIcon":"_2uJ2R","searchBoxInput":"_1peIY","checkbox":"_1QIos","highlighted":"_3h-jq","menuSpinner":"_X3MYI"};
|
|
5
|
-
var stylesheet="._3_BnN._3_BnN{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._3_BnN._3_BnN,._3_BnN._3_BnN ._Whm5p{display:inline-flex;align-items:center}._3_BnN._3_BnN ._Whm5p{overflow:hidden;text-overflow:ellipsis}._3_BnN._3_BnN._1OJuF{min-height:26px;height:26px}._3_BnN._3_BnN._1l2k1{color:#32363a}._3_BnN._3_BnN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._3_BnN._3_BnN:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3_BnN._3_BnN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._3_BnN._3_BnN[aria-disabled=true]>svg{fill:#515559;opacity:.4}._3_BnN._3_BnN._wiAws{padding-left:0}._3_BnN._3_BnN._1tJEE{margin-top:4px}._3_BnN._3_BnN ._2A6cr{fill:#515559}._3_BnN._3_BnN ._2A6cr._1OJuF{top:0}._3_BnN._3_BnN ._2A6cr._1NYGS{transform:rotate(-180deg)}._2U7xq{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._1Vq7q{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}._1Vq7q::-webkit-scrollbar,._1Vq7q::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._1Vq7q::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._1Vq7q::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb,._1Vq7q[focus-within]::-webkit-scrollbar,._1Vq7q[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._1Vq7q:focus-within::-webkit-scrollbar,._1Vq7q:focus-within::-webkit-scrollbar-thumb,._1Vq7q:hover::-webkit-scrollbar,._1Vq7q:hover::-webkit-scrollbar-thumb{visibility:visible}._1p7HF{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1p7HF[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1p7HF._laC2N{background-color:#efefef}._1p7HF._1l2k1{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._1p7HF._1l2k1._laC2N{background-color:#e4effa}._1p7HF._iuo1I{cursor:default}._1p7HF:active:not(._2kZ0L):not(._1l2k1):not([aria-disabled=true]):not(._iuo1I){background-color:#e8e9e9}._2kZ0L{padding-right:32px}._2kZ0L ._2A6cr{position:absolute;top:8px;right:3px;fill:#515559}._2ulCK{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._2uJ2R{position:absolute;top:13px;left:13px}._1peIY._1peIY{padding-left:32px}._1QIos{margin:2px 12px 2px 0;flex-shrink:0}._1QIos._3h-jq>svg{border-color:#0b6ed0}._X3MYI{display:flex;justify-self:center;margin:8px}";
|
|
6
|
-
styleInject(css_248z);
|
|
7
|
-
|
|
8
|
-
export { styles as default, stylesheet };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import styles from '../SelectMenu2.js';
|
|
5
|
-
import '../../../utils/index.js';
|
|
6
|
-
import VisualCheckbox from '../../Checkbox/VisualCheckbox.js';
|
|
7
|
-
import { useMenuContext } from '../../Menu/MenuContext.js';
|
|
8
|
-
import '../../../next/Menu/index.js';
|
|
9
|
-
import { MenuItem as MenuItem$1 } from '../../../next/Menu/MenuItem.js';
|
|
10
|
-
import wrapEvent from '../../../utils/wrapEvent/wrapEvent.js';
|
|
11
|
-
|
|
12
|
-
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
13
|
-
let {
|
|
14
|
-
role,
|
|
15
|
-
tabIndex = -1,
|
|
16
|
-
children,
|
|
17
|
-
className,
|
|
18
|
-
disabled,
|
|
19
|
-
onSelect,
|
|
20
|
-
onKeyDown,
|
|
21
|
-
onClick,
|
|
22
|
-
isSelected = false,
|
|
23
|
-
isHighlighted = false,
|
|
24
|
-
isMultiSelect = false,
|
|
25
|
-
isSelectable = false,
|
|
26
|
-
label,
|
|
27
|
-
...rest
|
|
28
|
-
} = _ref;
|
|
29
|
-
const defaultRole = isSelectable ? isMultiSelect ? 'menuitemcheckbox' : 'menuitemradio' : 'menuitem';
|
|
30
|
-
|
|
31
|
-
const handleSelect = e => {
|
|
32
|
-
if (typeof onSelect === 'function' && !disabled) {
|
|
33
|
-
onSelect(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const {
|
|
38
|
-
isChildOfMenu
|
|
39
|
-
} = useMenuContext();
|
|
40
|
-
return isChildOfMenu ? /*#__PURE__*/React__default.createElement(MenuItem$1, {
|
|
41
|
-
onSelect: onSelect,
|
|
42
|
-
isDisabled: disabled,
|
|
43
|
-
label: label
|
|
44
|
-
}, children) :
|
|
45
|
-
/*#__PURE__*/
|
|
46
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
47
|
-
React__default.createElement("div", _extends({}, rest, {
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
49
|
-
// @ts-ignore: despite `label` not being a valid attribute for `div`, base menu uses this attribute for search within the `filterItems` function
|
|
50
|
-
label: label,
|
|
51
|
-
ref: ref,
|
|
52
|
-
role: role !== null && role !== void 0 ? role : defaultRole,
|
|
53
|
-
tabIndex: tabIndex,
|
|
54
|
-
"aria-disabled": disabled,
|
|
55
|
-
"aria-checked": isSelectable ? isSelected : undefined,
|
|
56
|
-
className: classNames(className, styles.menuItem, {
|
|
57
|
-
[styles.focus]: isHighlighted,
|
|
58
|
-
[styles.selected]: isSelected
|
|
59
|
-
}),
|
|
60
|
-
onKeyDown: wrapEvent(onKeyDown, e => {
|
|
61
|
-
if (e.key === ' ' || e.key === 'Enter') {
|
|
62
|
-
handleSelect(e);
|
|
63
|
-
e.preventDefault(); // prevent scroll
|
|
64
|
-
}
|
|
65
|
-
}),
|
|
66
|
-
onClick: wrapEvent(onClick, handleSelect)
|
|
67
|
-
}), isMultiSelect && /*#__PURE__*/React__default.createElement(VisualCheckbox, {
|
|
68
|
-
className: classNames(styles.checkbox, {
|
|
69
|
-
[styles.highlighted]: isHighlighted && !isSelected
|
|
70
|
-
}),
|
|
71
|
-
checked: isSelected,
|
|
72
|
-
disabled: disabled
|
|
73
|
-
}), children);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
export { MenuItem as default };
|
package/dist/next/Menu/Menu.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
const Menu = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
'data-testid': dataTestId,
|
|
10
|
-
isOpen,
|
|
11
|
-
onIsOpenChange,
|
|
12
|
-
isDisabled,
|
|
13
|
-
children
|
|
14
|
-
} = _ref;
|
|
15
|
-
const [open, setOpen] = useControllableState(isOpen, onIsOpenChange, isOpen);
|
|
16
|
-
return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
17
|
-
value: {
|
|
18
|
-
dataTestId,
|
|
19
|
-
isDisabled,
|
|
20
|
-
setOpen
|
|
21
|
-
}
|
|
22
|
-
}, /*#__PURE__*/React__default.createElement(Root, {
|
|
23
|
-
open: open,
|
|
24
|
-
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen)
|
|
25
|
-
}, children));
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { Menu, Menu as default };
|
package/dist/next/Menu/Menu2.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = "._P64UM{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._2U9R0{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}._2U9R0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._2U9R0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2U9R0+._EAwHK{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._2U9R0[data-state=open]+._EAwHK{transform:rotate(-180deg) translateY(50%)}._2U9R0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._2U9R0[aria-disabled=true]+._EAwHK{fill:#515559;opacity:.4}._2mZkU{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}._3hgv9{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3hgv9[data-highlighted]{background-color:#efefef}._3hgv9[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3hgv9._3uFjB{padding-right:32px}._3hgv9._3uFjB ._EAwHK{position:absolute;top:8px;right:3px;fill:#515559}._3QJOO{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._2sytQ{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":"_P64UM","button":"_2U9R0","rightIcon":"_EAwHK","flyout":"_2mZkU","menuItem":"_3hgv9","subMenu":"_3uFjB","searchBox":"_3QJOO","emptyOption":"_2sytQ"};
|
|
5
|
-
var stylesheet="._P64UM{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._2U9R0{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}._2U9R0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._2U9R0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2U9R0+._EAwHK{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._2U9R0[data-state=open]+._EAwHK{transform:rotate(-180deg) translateY(50%)}._2U9R0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._2U9R0[aria-disabled=true]+._EAwHK{fill:#515559;opacity:.4}._2mZkU{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}._3hgv9{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3hgv9[data-highlighted]{background-color:#efefef}._3hgv9[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3hgv9._3uFjB{padding-right:32px}._3hgv9._3uFjB ._EAwHK{position:absolute;top:8px;right:3px;fill:#515559}._3QJOO{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._2sytQ{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 };
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
style,
|
|
18
|
-
className,
|
|
19
|
-
...rest
|
|
20
|
-
} = _ref;
|
|
21
|
-
const {
|
|
22
|
-
dataTestId: rootDataTestId,
|
|
23
|
-
isDisabled
|
|
24
|
-
} = useMenuContext();
|
|
25
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
26
|
-
className: classNames(className, {
|
|
27
|
-
[styles.buttonContainer]: !asChild
|
|
28
|
-
}),
|
|
29
|
-
style: style
|
|
30
|
-
}, /*#__PURE__*/React__default.createElement(Trigger, _extends({}, rest, {
|
|
31
|
-
"aria-disabled": isDisabled,
|
|
32
|
-
className: classNames({
|
|
33
|
-
[styles.button]: !asChild
|
|
34
|
-
}),
|
|
35
|
-
asChild: asChild,
|
|
36
|
-
ref: ref,
|
|
37
|
-
"data-testid": getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
38
|
-
}), children), !asChild && /*#__PURE__*/React__default.createElement(ChevronDownIcon, {
|
|
39
|
-
className: styles.rightIcon,
|
|
40
|
-
"aria-hidden": "true"
|
|
41
|
-
}));
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export { MenuButton, MenuButton as default };
|