@qualtrics/ui-react 2.16.0 → 2.17.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 +20 -0
- package/dist/__shared/cjs/{index-74e60b70.js → index-01a9a3bd.js} +143 -140
- package/dist/__shared/cjs/{index-8f2648af.js → index-a16a4f66.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +6 -54
- package/dist/components/Button/Button2.js +54 -6
- package/dist/components/Button/index.js +1 -1
- 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/FilePicker.js +2 -2
- 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/LoadingSpinner.js +1 -1
- 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/Pagination/PaginationNextButton.js +1 -1
- package/dist/components/Pagination/PaginationPreviousButton.js +1 -1
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +8 -6
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/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/SplitButton.js +1 -1
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/ToggleButton.js +79 -0
- package/dist/next/ToggleButton/ToggleButtonGroup.js +39 -0
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +9 -0
- package/dist/next/ToggleButton/index.js +2 -0
- package/dist/next/ToggleButton/styles.js +8 -0
- package/dist/next/index.d.ts +28 -0
- package/dist/next/index.es.js +3 -0
- package/dist/next/index.js +286 -174
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +2 -2
package/dist/next/index.js
CHANGED
|
@@ -9,8 +9,8 @@ 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-01a9a3bd.js');
|
|
13
|
+
var icons_index = require('../__shared/cjs/index-a16a4f66.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');
|
|
@@ -31,10 +31,10 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
31
31
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
32
32
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
33
33
|
|
|
34
|
-
var css_248z$
|
|
35
|
-
var styles$
|
|
36
|
-
var stylesheet$
|
|
37
|
-
icons_index.styleInject(css_248z$
|
|
34
|
+
var css_248z$a = "._HZUbk{overflow:auto;position:relative;max-width:100%;max-height:100%}._HZUbk,._OzzTb{background-color:#fff}._OzzTb{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._2epzN{margin-bottom:4px}._1kLjL{position:-webkit-sticky;position:sticky;top:0;z-index:100}._2Yc3x{display:flex}._2Yc3x:focus{outline:none}body.keyboard-user ._2Yc3x:focus ._1IAwk: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 ._2Yc3x:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._2Yc3x:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._2Yc3x:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:1px}._wnw4A{padding-right:3px}._3XzFa{display:flex}._3XzFa._Gd0nI ._1hifR,._3XzFa._Gd0nI ._1IAwk{cursor:pointer}._3XzFa._3B5uY ._1hifR,._3XzFa._3B5uY ._1IAwk{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3XzFa._3B5uY ._1hifR._ttlOZ,._3XzFa._3B5uY ._1IAwk._ttlOZ{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3XzFa._3B5uY ._1hifR._ttlOZ ._1hifR,._3XzFa._3B5uY ._1hifR._ttlOZ ._1jdYt,._3XzFa._3B5uY ._1hifR._ttlOZ ._2QCHI,._3XzFa._3B5uY ._1IAwk._ttlOZ ._1hifR,._3XzFa._3B5uY ._1IAwk._ttlOZ ._1jdYt,._3XzFa._3B5uY ._1IAwk._ttlOZ ._2QCHI{background-color:rgba(11,110,208,.08)}._3XzFa._Gd0nI:hover:not(._3B5uY):not(._2rMON) ._1hifR,._3XzFa._Gd0nI:hover:not(._3B5uY):not(._2rMON) ._1IAwk{background-color:#f9f9f9}._3XzFa._Gd0nI:active:not(._3B5uY):not(._2rMON) ._1hifR,._3XzFa._Gd0nI:active:not(._3B5uY):not(._2rMON) ._1IAwk{background-color:#f3f3f3}._3XzFa:focus{outline:none}body.keyboard-user ._3XzFa:focus ._1IAwk: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 ._3XzFa:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3XzFa:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3XzFa:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:0}._3XzFa:last-of-type:focus{outline:none}body.keyboard-user ._3XzFa:last-of-type:focus ._1IAwk: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 ._3XzFa:last-of-type:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3XzFa:last-of-type:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3XzFa:last-of-type:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:1px}._3XzFa:last-of-type ._1jdYt:focus{outline:none}body.keyboard-user ._3XzFa:last-of-type ._1jdYt._3clm7:after,body.keyboard-user ._3XzFa:last-of-type ._1jdYt: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}._3XzFa:first-of-type:focus{outline:none}body.keyboard-user ._3XzFa:first-of-type:focus ._1IAwk: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 ._3XzFa:first-of-type:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3XzFa:first-of-type:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3XzFa:first-of-type:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:0}._3XzFa:first-of-type ._1jdYt:focus{outline:none}body.keyboard-user ._3XzFa:first-of-type ._1jdYt._3clm7:after,body.keyboard-user ._3XzFa:first-of-type ._1jdYt: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}._1BWkx{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}._1BWkx._gSZKU{flex-grow:1}._1BWkx._3Jqs8{cursor:pointer}._1BWkx._3Jqs8:hover:not(._PmBcy){background-color:#f9f9f9;border-bottom-color:#6a6d70}._1BWkx._3Jqs8:active:not(._PmBcy){background-color:#f3f3f3}._1BWkx._3ZR6f:not(._PmBcy){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._1BWkx._PmBcy{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._1BWkx ._2vo6Y{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._1BWkx ._2vo6Y._1GGQH{left:-1px}._1BWkx ._2vo6Y._1xvQT{right:0}._1BWkx ._3lHzm{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._1BWkx ._3lHzm._1GGQH{left:-2px}._1BWkx ._3lHzm._1xvQT{right:-1px}._1BWkx:first-of-type ._1GGQH._2vo6Y{left:0;width:2px;border-left:1px solid #fff}._1BWkx:first-of-type ._1GGQH._3lHzm{left:0}._1BWkx:last-of-type ._1xvQT._2vo6Y{right:0;width:2px;border-right:1px solid #fff}._1BWkx:last-of-type ._1xvQT._3lHzm{right:0}._1BWkx ._1bzdH{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._1BWkx ._1bzdH ._3FEdx{position:absolute;width:2px;right:2px;top:0;bottom:0}._1BWkx ._1bzdH ._3FEdx._YjFig{background-color:#0a6ed1}._1BWkx ._1bzdH:hover ._3FEdx:not(._YjFig){background-color:#d9d9d9}._1BWkx ._3Svcx{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._1BWkx ._3Svcx._2hMtR{flex-direction:row-reverse;justify-content:flex-start}._1BWkx ._3Svcx._2hMtR ._GSbHF{margin:1px 7px 1px 1px}._1BWkx ._3Svcx ._1C96D{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._1BWkx ._3Svcx ._GSbHF{margin:1px 1px 1px 7px;flex-shrink:0}._1BWkx ._17SJF{margin-left:6px;margin-right:4px;flex-shrink:0}._1BWkx ._3SzoT{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._1BWkx:focus{outline:none}body.keyboard-user ._1BWkx._3clm7:after,body.keyboard-user ._1BWkx: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}._sQUAD{margin-right:6px}._ttlOZ{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ttlOZ[focus-within]{z-index:30}._ttlOZ:focus-within{z-index:30}._1jdYt{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}._1jdYt ._2lOPZ{width:100%;padding:12px 12px 11px;overflow:hidden}._1jdYt._PmBcy{background-color:#efefef;border-bottom-color:#dfdfe1}._1jdYt._gSZKU{flex-grow:1}._1jdYt:focus{outline:none}body.keyboard-user ._1jdYt._3clm7:after,body.keyboard-user ._1jdYt: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}._1hifR{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._1hifR._2aBfV{border-bottom-color:#d9d9d9;background-color:#fff}._2QCHI{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}._2QCHI._2aBfV{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2QCHI:focus input~span,._2QCHI:hover input~span{border-color:#0b6ed0}._2QCHI ._U1JZg{position:relative;display:inline-flex}._2QCHI ._U1JZg ._2Mwg9{margin:0!important}._2QCHI ._U1JZg ._1HgmM{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._n57NX{justify-content:flex-start}._2EyLS{justify-content:center;text-align:center}._2hMtR{justify-content:flex-end;text-align:right}._1WOBm{display:none}._IzRPk{opacity:0;height:0;width:0;overflow:hidden}._2TZ7R,._IzRPk{position:absolute}._2TZ7R{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._3jniL{width:246px}";
|
|
35
|
+
var styles$a = {"advancedTable":"_HZUbk","advancedTablePaginationContainer":"_OzzTb","advancedTablePagination":"_2epzN","advancedTableColumnHeadersRowGroup":"_1kLjL","advancedTableColumnHeaders":"_2Yc3x","advancedTableRowChild":"_1IAwk","pinnedContainer":"_ttlOZ","advancedTableRowGroup":"_wnw4A","advancedTableRow":"_3XzFa","hasRowAction":"_Gd0nI","advancedTableExpandRowSpacer":"_1hifR","isSelected":"_3B5uY","advancedTableCheckbox":"_2QCHI","advancedTableCell":"_1jdYt","isCheckboxHovered":"_2rMON","showFocusRing":"_3clm7","advancedTableColumnHeader":"_1BWkx","fillRemainingSpace":"_gSZKU","isSortable":"_3Jqs8","isDragging":"_PmBcy","isSorted":"_3ZR6f","dropTargetLine":"_2vo6Y","dropTargetLeft":"_1GGQH","dropTargetRight":"_1xvQT","dropTargetMarker":"_3lHzm","resizeHandle":"_1bzdH","resizeLine":"_3FEdx","isResizing":"_YjFig","advancedTableColumnHeaderLabel":"_3Svcx","rightAligned":"_2hMtR","sortIcon":"_GSbHF","advancedTableColumnHeaderLabelText":"_1C96D","advancedTableColumnHeaderMenu":"_17SJF","advancedTableColumnHeaderMenuHiddenAnchor":"_3SzoT","advancedTableColumnHeaderMenuItemIcon":"_sQUAD","advancedTableCellContainer":"_2lOPZ","header":"_2aBfV","checkboxContainer":"_U1JZg","checkbox":"_2Mwg9","mixed":"_1HgmM","leftAligned":"_n57NX","centerAligned":"_2EyLS","hiddenDescription":"_1WOBm","hiddenLiveRegion":"_IzRPk","dragPreview":"_2TZ7R","rowActionMenuPane":"_3jniL"};
|
|
36
|
+
var stylesheet$a="._HZUbk{overflow:auto;position:relative;max-width:100%;max-height:100%}._HZUbk,._OzzTb{background-color:#fff}._OzzTb{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._2epzN{margin-bottom:4px}._1kLjL{position:-webkit-sticky;position:sticky;top:0;z-index:100}._2Yc3x{display:flex}._2Yc3x:focus{outline:none}body.keyboard-user ._2Yc3x:focus ._1IAwk: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 ._2Yc3x:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._2Yc3x:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._2Yc3x:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:1px}._wnw4A{padding-right:3px}._3XzFa{display:flex}._3XzFa._Gd0nI ._1hifR,._3XzFa._Gd0nI ._1IAwk{cursor:pointer}._3XzFa._3B5uY ._1hifR,._3XzFa._3B5uY ._1IAwk{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3XzFa._3B5uY ._1hifR._ttlOZ,._3XzFa._3B5uY ._1IAwk._ttlOZ{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3XzFa._3B5uY ._1hifR._ttlOZ ._1hifR,._3XzFa._3B5uY ._1hifR._ttlOZ ._1jdYt,._3XzFa._3B5uY ._1hifR._ttlOZ ._2QCHI,._3XzFa._3B5uY ._1IAwk._ttlOZ ._1hifR,._3XzFa._3B5uY ._1IAwk._ttlOZ ._1jdYt,._3XzFa._3B5uY ._1IAwk._ttlOZ ._2QCHI{background-color:rgba(11,110,208,.08)}._3XzFa._Gd0nI:hover:not(._3B5uY):not(._2rMON) ._1hifR,._3XzFa._Gd0nI:hover:not(._3B5uY):not(._2rMON) ._1IAwk{background-color:#f9f9f9}._3XzFa._Gd0nI:active:not(._3B5uY):not(._2rMON) ._1hifR,._3XzFa._Gd0nI:active:not(._3B5uY):not(._2rMON) ._1IAwk{background-color:#f3f3f3}._3XzFa:focus{outline:none}body.keyboard-user ._3XzFa:focus ._1IAwk: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 ._3XzFa:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3XzFa:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3XzFa:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:0}._3XzFa:last-of-type:focus{outline:none}body.keyboard-user ._3XzFa:last-of-type:focus ._1IAwk: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 ._3XzFa:last-of-type:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3XzFa:last-of-type:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3XzFa:last-of-type:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:1px}._3XzFa:last-of-type ._1jdYt:focus{outline:none}body.keyboard-user ._3XzFa:last-of-type ._1jdYt._3clm7:after,body.keyboard-user ._3XzFa:last-of-type ._1jdYt: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}._3XzFa:first-of-type:focus{outline:none}body.keyboard-user ._3XzFa:first-of-type:focus ._1IAwk: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 ._3XzFa:first-of-type:focus ._1IAwk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3XzFa:first-of-type:focus ._1IAwk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3XzFa:first-of-type:focus ._1IAwk._ttlOZ:after{right:-3px;bottom:0}._3XzFa:first-of-type ._1jdYt:focus{outline:none}body.keyboard-user ._3XzFa:first-of-type ._1jdYt._3clm7:after,body.keyboard-user ._3XzFa:first-of-type ._1jdYt: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}._1BWkx{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}._1BWkx._gSZKU{flex-grow:1}._1BWkx._3Jqs8{cursor:pointer}._1BWkx._3Jqs8:hover:not(._PmBcy){background-color:#f9f9f9;border-bottom-color:#6a6d70}._1BWkx._3Jqs8:active:not(._PmBcy){background-color:#f3f3f3}._1BWkx._3ZR6f:not(._PmBcy){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._1BWkx._PmBcy{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._1BWkx ._2vo6Y{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._1BWkx ._2vo6Y._1GGQH{left:-1px}._1BWkx ._2vo6Y._1xvQT{right:0}._1BWkx ._3lHzm{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._1BWkx ._3lHzm._1GGQH{left:-2px}._1BWkx ._3lHzm._1xvQT{right:-1px}._1BWkx:first-of-type ._1GGQH._2vo6Y{left:0;width:2px;border-left:1px solid #fff}._1BWkx:first-of-type ._1GGQH._3lHzm{left:0}._1BWkx:last-of-type ._1xvQT._2vo6Y{right:0;width:2px;border-right:1px solid #fff}._1BWkx:last-of-type ._1xvQT._3lHzm{right:0}._1BWkx ._1bzdH{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._1BWkx ._1bzdH ._3FEdx{position:absolute;width:2px;right:2px;top:0;bottom:0}._1BWkx ._1bzdH ._3FEdx._YjFig{background-color:#0a6ed1}._1BWkx ._1bzdH:hover ._3FEdx:not(._YjFig){background-color:#d9d9d9}._1BWkx ._3Svcx{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._1BWkx ._3Svcx._2hMtR{flex-direction:row-reverse;justify-content:flex-start}._1BWkx ._3Svcx._2hMtR ._GSbHF{margin:1px 7px 1px 1px}._1BWkx ._3Svcx ._1C96D{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._1BWkx ._3Svcx ._GSbHF{margin:1px 1px 1px 7px;flex-shrink:0}._1BWkx ._17SJF{margin-left:6px;margin-right:4px;flex-shrink:0}._1BWkx ._3SzoT{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._1BWkx:focus{outline:none}body.keyboard-user ._1BWkx._3clm7:after,body.keyboard-user ._1BWkx: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}._sQUAD{margin-right:6px}._ttlOZ{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ttlOZ[focus-within]{z-index:30}._ttlOZ:focus-within{z-index:30}._1jdYt{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}._1jdYt ._2lOPZ{width:100%;padding:12px 12px 11px;overflow:hidden}._1jdYt._PmBcy{background-color:#efefef;border-bottom-color:#dfdfe1}._1jdYt._gSZKU{flex-grow:1}._1jdYt:focus{outline:none}body.keyboard-user ._1jdYt._3clm7:after,body.keyboard-user ._1jdYt: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}._1hifR{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._1hifR._2aBfV{border-bottom-color:#d9d9d9;background-color:#fff}._2QCHI{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}._2QCHI._2aBfV{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2QCHI:focus input~span,._2QCHI:hover input~span{border-color:#0b6ed0}._2QCHI ._U1JZg{position:relative;display:inline-flex}._2QCHI ._U1JZg ._2Mwg9{margin:0!important}._2QCHI ._U1JZg ._1HgmM{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._n57NX{justify-content:flex-start}._2EyLS{justify-content:center;text-align:center}._2hMtR{justify-content:flex-end;text-align:right}._1WOBm{display:none}._IzRPk{opacity:0;height:0;width:0;overflow:hidden}._2TZ7R,._IzRPk{position:absolute}._2TZ7R{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._3jniL{width:246px}";
|
|
37
|
+
icons_index.styleInject(css_248z$a);
|
|
38
38
|
|
|
39
39
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
40
40
|
// Also Alignment, etc can be defined directly and have AdvancedTableColumnConfig use them instead of the reverse like now.
|
|
@@ -99,7 +99,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
99
99
|
"date-testid": menuItemDataTestId
|
|
100
100
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
101
101
|
size: "small",
|
|
102
|
-
className: styles$
|
|
102
|
+
className: styles$a.advancedTableColumnHeaderMenuItemIcon,
|
|
103
103
|
"aria-hidden": "true"
|
|
104
104
|
}), label);
|
|
105
105
|
};
|
|
@@ -153,7 +153,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
153
153
|
"data-testid": index.getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index$1, "-").concat(SortDirections.Ascending))
|
|
154
154
|
}, /*#__PURE__*/React__default["default"].createElement(AscendingIconComponent, {
|
|
155
155
|
size: "small",
|
|
156
|
-
className: styles$
|
|
156
|
+
className: styles$a.advancedTableColumnHeaderMenuItemIcon,
|
|
157
157
|
"aria-hidden": "true"
|
|
158
158
|
}), ascendingLabel), /*#__PURE__*/React__default["default"].createElement(index.MenuItem, {
|
|
159
159
|
key: descendingValue,
|
|
@@ -162,7 +162,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
162
162
|
"data-testid": index.getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index$1, "-").concat(SortDirections.Descending))
|
|
163
163
|
}, /*#__PURE__*/React__default["default"].createElement(DescendingIconComponent, {
|
|
164
164
|
size: "small",
|
|
165
|
-
className: styles$
|
|
165
|
+
className: styles$a.advancedTableColumnHeaderMenuItemIcon,
|
|
166
166
|
"aria-hidden": "true"
|
|
167
167
|
}), descendingLabel)];
|
|
168
168
|
}), (sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length) && (onIsPinnedChange || onMoveLeft || onMoveRight) && /*#__PURE__*/React__default["default"].createElement(index.Divider, null), pinItem, onMoveLeft && getActionMenuItem({
|
|
@@ -415,7 +415,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
415
415
|
const selectedSortIcon = isSorted ? /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
416
416
|
"aria-hidden": "true",
|
|
417
417
|
focusable: "false",
|
|
418
|
-
className: styles$
|
|
418
|
+
className: styles$a.sortIcon,
|
|
419
419
|
width: "10",
|
|
420
420
|
height: "10",
|
|
421
421
|
viewBox: "0 0 10 10",
|
|
@@ -609,28 +609,28 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
609
609
|
onFocus: onFocus,
|
|
610
610
|
onClick: isSortable ? handleClick : undefined,
|
|
611
611
|
tabIndex: isFocused ? 0 : -1,
|
|
612
|
-
className: classNames__default["default"](styles$
|
|
613
|
-
[styles$
|
|
612
|
+
className: classNames__default["default"](styles$a.advancedTableColumnHeader, {
|
|
613
|
+
[styles$a.advancedTableRowChild]: !isPinned,
|
|
614
614
|
// if nested inside of pinned container, not a direct row child
|
|
615
|
-
[styles$
|
|
616
|
-
[styles$
|
|
617
|
-
[styles$
|
|
618
|
-
[styles$
|
|
619
|
-
[styles$
|
|
615
|
+
[styles$a.isSortable]: isSortable,
|
|
616
|
+
[styles$a.isSorted]: isSorted,
|
|
617
|
+
[styles$a.showFocusRing]: isHiddenMenuOpen,
|
|
618
|
+
[styles$a.isDragging]: isDragging,
|
|
619
|
+
[styles$a.fillRemainingSpace]: width === undefined
|
|
620
620
|
}),
|
|
621
621
|
style: {
|
|
622
622
|
width: computedWidth
|
|
623
623
|
},
|
|
624
624
|
ref: index.mergeRefs(columnHeaderRef, dragRef, dropRef, ref)
|
|
625
625
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
626
|
-
className: classNames__default["default"](styles$
|
|
627
|
-
[styles$
|
|
628
|
-
[styles$
|
|
629
|
-
[styles$
|
|
626
|
+
className: classNames__default["default"](styles$a.advancedTableColumnHeaderLabel, {
|
|
627
|
+
[styles$a.leftAligned]: alignment === 'left',
|
|
628
|
+
[styles$a.centerAligned]: alignment === 'center',
|
|
629
|
+
[styles$a.rightAligned]: alignment === 'right'
|
|
630
630
|
}),
|
|
631
631
|
ref: labelContainerRef
|
|
632
632
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
633
|
-
className: styles$
|
|
633
|
+
className: styles$a.advancedTableColumnHeaderLabelText,
|
|
634
634
|
style: {
|
|
635
635
|
WebkitLineClamp: headerMaxLines
|
|
636
636
|
},
|
|
@@ -641,7 +641,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
641
641
|
anchor: /*#__PURE__*/React__default["default"].createElement(index.IconButton, {
|
|
642
642
|
tabIndex: -1,
|
|
643
643
|
"aria-hidden": "true",
|
|
644
|
-
className: styles$
|
|
644
|
+
className: styles$a.advancedTableColumnHeaderMenu
|
|
645
645
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, null))
|
|
646
646
|
})), /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeaderMenu, _extends__default["default"]({}, commonMenuProps, {
|
|
647
647
|
isOpen: isHiddenMenuOpen,
|
|
@@ -656,31 +656,31 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
656
656
|
|
|
657
657
|
(_columnHeaderRef$curr5 = columnHeaderRef.current) === null || _columnHeaderRef$curr5 === void 0 ? void 0 : _columnHeaderRef$curr5.focus();
|
|
658
658
|
},
|
|
659
|
-
className: styles$
|
|
659
|
+
className: styles$a.advancedTableColumnHeaderMenuHiddenAnchor
|
|
660
660
|
})
|
|
661
661
|
}))), dropTargetSide && !isRowActionMenuColumn && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
662
|
-
className: classNames__default["default"](styles$
|
|
663
|
-
[styles$
|
|
664
|
-
[styles$
|
|
662
|
+
className: classNames__default["default"](styles$a.dropTargetLine, {
|
|
663
|
+
[styles$a.dropTargetLeft]: dropTargetSide === 'left',
|
|
664
|
+
[styles$a.dropTargetRight]: dropTargetSide === 'right'
|
|
665
665
|
}),
|
|
666
666
|
style: {
|
|
667
667
|
height: tableHeight
|
|
668
668
|
}
|
|
669
669
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
670
|
-
className: classNames__default["default"](styles$
|
|
671
|
-
[styles$
|
|
672
|
-
[styles$
|
|
670
|
+
className: classNames__default["default"](styles$a.dropTargetMarker, {
|
|
671
|
+
[styles$a.dropTargetLeft]: dropTargetSide === 'left',
|
|
672
|
+
[styles$a.dropTargetRight]: dropTargetSide === 'right'
|
|
673
673
|
})
|
|
674
674
|
})), onWidthChange && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
675
675
|
"aria-hidden": true,
|
|
676
|
-
className: styles$
|
|
676
|
+
className: styles$a.resizeHandle,
|
|
677
677
|
style: {
|
|
678
678
|
height: tableHeight
|
|
679
679
|
},
|
|
680
680
|
onMouseDown: handleMouseDown
|
|
681
681
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
682
|
-
className: classNames__default["default"](styles$
|
|
683
|
-
[styles$
|
|
682
|
+
className: classNames__default["default"](styles$a.resizeLine, {
|
|
683
|
+
[styles$a.isResizing]: isResizing
|
|
684
684
|
})
|
|
685
685
|
}))));
|
|
686
686
|
});
|
|
@@ -761,19 +761,19 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
761
761
|
onFocus: handleFocus,
|
|
762
762
|
onBlur: handleBlur,
|
|
763
763
|
tabIndex: isFocused && !isEditing ? 0 : -1,
|
|
764
|
-
className: classNames__default["default"](className, styles$
|
|
765
|
-
[styles$
|
|
766
|
-
[styles$
|
|
767
|
-
[styles$
|
|
768
|
-
[styles$
|
|
769
|
-
[styles$
|
|
764
|
+
className: classNames__default["default"](className, styles$a.advancedTableCell, {
|
|
765
|
+
[styles$a.leftAligned]: alignment === Alignments.Left,
|
|
766
|
+
[styles$a.centerAligned]: alignment === Alignments.Center,
|
|
767
|
+
[styles$a.rightAligned]: alignment === Alignments.Right,
|
|
768
|
+
[styles$a.isDragging]: isDragging,
|
|
769
|
+
[styles$a.fillRemainingSpace]: width === undefined
|
|
770
770
|
}),
|
|
771
771
|
style: {
|
|
772
772
|
width: computedWidth
|
|
773
773
|
},
|
|
774
774
|
ref: index.mergeRefs(ref, cellRef)
|
|
775
775
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
776
|
-
className: styles$
|
|
776
|
+
className: styles$a.advancedTableCellContainer
|
|
777
777
|
}, typeof renderCellContent === 'function' ? renderCellContent({
|
|
778
778
|
value,
|
|
779
779
|
setValue,
|
|
@@ -809,10 +809,10 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
809
809
|
onKeyDown: isFocusable ? onKeyDown : undefined,
|
|
810
810
|
onFocus: isFocusable ? onFocus : undefined,
|
|
811
811
|
onClick: hasOnRowSelect ? onClick : undefined,
|
|
812
|
-
className: classNames__default["default"](styles$
|
|
813
|
-
[styles$
|
|
814
|
-
[styles$
|
|
815
|
-
[styles$
|
|
812
|
+
className: classNames__default["default"](styles$a.advancedTableRow, {
|
|
813
|
+
[styles$a.hasRowAction]: hasOnRowSelect,
|
|
814
|
+
[styles$a.isSelected]: hasOnRowSelect && isSelected,
|
|
815
|
+
[styles$a.isCheckboxHovered]: isCheckboxHovered
|
|
816
816
|
}),
|
|
817
817
|
ref: isFocusable ? ref : undefined
|
|
818
818
|
}), children);
|
|
@@ -832,7 +832,7 @@ const AdvancedTableColumnHeaders = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
832
832
|
tabIndex: isFocusable ? isFocused ? 0 : -1 : undefined,
|
|
833
833
|
onKeyDown: isFocusable ? onKeyDown : undefined,
|
|
834
834
|
onFocus: isFocusable ? onFocus : undefined,
|
|
835
|
-
className: styles$
|
|
835
|
+
className: styles$a.advancedTableColumnHeaders,
|
|
836
836
|
ref: ref
|
|
837
837
|
}), children);
|
|
838
838
|
});
|
|
@@ -861,17 +861,17 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
861
861
|
onClick: onClick,
|
|
862
862
|
onMouseEnter: onMouseEnter,
|
|
863
863
|
onMouseLeave: onMouseLeave,
|
|
864
|
-
className: classNames__default["default"](styles$
|
|
865
|
-
[styles$
|
|
864
|
+
className: classNames__default["default"](styles$a.advancedTableCheckbox, {
|
|
865
|
+
[styles$a.header]: variant === 'header'
|
|
866
866
|
}),
|
|
867
867
|
"aria-live": isRowFocused ? 'polite' : undefined,
|
|
868
868
|
"aria-relevant": "text"
|
|
869
869
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
870
|
-
className: styles$
|
|
870
|
+
className: styles$a.hiddenLiveRegion
|
|
871
871
|
}, labels[state]), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
872
|
-
className: styles$
|
|
872
|
+
className: styles$a.checkboxContainer
|
|
873
873
|
}, /*#__PURE__*/React__default["default"].createElement(index.Checkbox, {
|
|
874
|
-
className: styles$
|
|
874
|
+
className: styles$a.checkbox,
|
|
875
875
|
"aria-hidden": true,
|
|
876
876
|
checked: state === 'true',
|
|
877
877
|
onChange: () => {
|
|
@@ -883,7 +883,7 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
883
883
|
onFocus
|
|
884
884
|
}
|
|
885
885
|
}), state === 'mixed' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
886
|
-
className: styles$
|
|
886
|
+
className: styles$a.mixed
|
|
887
887
|
})));
|
|
888
888
|
};
|
|
889
889
|
|
|
@@ -896,7 +896,7 @@ const AdvancedTableHiddenDescription = _ref => {
|
|
|
896
896
|
translate
|
|
897
897
|
} = index.useTranslation();
|
|
898
898
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
899
|
-
className: styles$
|
|
899
|
+
className: styles$a.hiddenDescription,
|
|
900
900
|
id: id
|
|
901
901
|
}, translate(messageKey));
|
|
902
902
|
};
|
|
@@ -920,7 +920,7 @@ const AdvancedTableDragPreview = _ref => {
|
|
|
920
920
|
const top = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.y) || 0;
|
|
921
921
|
const left = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.x) || 0;
|
|
922
922
|
return /*#__PURE__*/React__default["default"].createElement(index.Portal, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
923
|
-
className: styles$
|
|
923
|
+
className: styles$a.dragPreview,
|
|
924
924
|
style: {
|
|
925
925
|
height,
|
|
926
926
|
width,
|
|
@@ -952,9 +952,9 @@ const AdvancedTablePagination = _ref => {
|
|
|
952
952
|
};
|
|
953
953
|
|
|
954
954
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
955
|
-
className: styles$
|
|
955
|
+
className: styles$a.advancedTablePaginationContainer
|
|
956
956
|
}, /*#__PURE__*/React__default["default"].createElement(index.Pagination, {
|
|
957
|
-
className: styles$
|
|
957
|
+
className: styles$a.advancedTablePagination,
|
|
958
958
|
"aria-label": ariaLabel,
|
|
959
959
|
numPages: Math.max(Math.ceil(rows.length / rowsPerPage), 1),
|
|
960
960
|
currentPage: currentPage,
|
|
@@ -1098,7 +1098,7 @@ const AdvancedTable = _ref => {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default["default"].createElement(index.DropdownList, {
|
|
1101
|
-
className: styles$
|
|
1101
|
+
className: styles$a.rowActionMenuPane
|
|
1102
1102
|
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
1103
1103
|
var _actionGroup$actions;
|
|
1104
1104
|
|
|
@@ -1625,8 +1625,8 @@ const AdvancedTable = _ref => {
|
|
|
1625
1625
|
const getExpandableRowsSpacer = function (width, inHeader) {
|
|
1626
1626
|
let children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
1627
1627
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1628
|
-
className: classNames__default["default"](styles$
|
|
1629
|
-
[styles$
|
|
1628
|
+
className: classNames__default["default"](styles$a.advancedTableExpandRowSpacer, {
|
|
1629
|
+
[styles$a.header]: inHeader
|
|
1630
1630
|
}),
|
|
1631
1631
|
style: {
|
|
1632
1632
|
width
|
|
@@ -1674,7 +1674,7 @@ const AdvancedTable = _ref => {
|
|
|
1674
1674
|
return /*#__PURE__*/React__default["default"].createElement(reactDnd.DndProvider, {
|
|
1675
1675
|
backend: reactDndHtml5Backend.HTML5Backend
|
|
1676
1676
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1677
|
-
className: styles$
|
|
1677
|
+
className: styles$a.advancedTable,
|
|
1678
1678
|
role: hasExpandableRows ? 'treegrid' : 'grid',
|
|
1679
1679
|
"aria-multiselectable": hasExpandableRows && hasCheckboxColumn ? true : undefined,
|
|
1680
1680
|
"aria-rowcount": rows ? rows.length + 1 : 0,
|
|
@@ -1698,7 +1698,7 @@ const AdvancedTable = _ref => {
|
|
|
1698
1698
|
messageKey: "advancedTable.rowCheckboxDescription"
|
|
1699
1699
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1700
1700
|
role: "rowgroup",
|
|
1701
|
-
className: classNames__default["default"](styles$
|
|
1701
|
+
className: classNames__default["default"](styles$a.advancedTableColumnHeadersRowGroup, styles$a.advancedTableRowGroup)
|
|
1702
1702
|
}, /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeaders, {
|
|
1703
1703
|
"aria-rowindex": hasExpandableRows ? undefined : 1,
|
|
1704
1704
|
"aria-level": hasExpandableRows ? 1 : undefined // aria-level is one-indexed
|
|
@@ -1713,7 +1713,7 @@ const AdvancedTable = _ref => {
|
|
|
1713
1713
|
ref: createRef(headerRowIndex, -1)
|
|
1714
1714
|
}, hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1715
1715
|
role: "presentation",
|
|
1716
|
-
className: classNames__default["default"](styles$
|
|
1716
|
+
className: classNames__default["default"](styles$a.pinnedContainer, styles$a.advancedTableRowChild),
|
|
1717
1717
|
ref: createPinnedContainerRef(headerRowIndex)
|
|
1718
1718
|
}, hasCheckboxColumn && /*#__PURE__*/React__default["default"].createElement(AdvancedTableCheckbox, {
|
|
1719
1719
|
state: checkedRowIds.length === totalRowsCountWithExpansion ? 'true' : checkedRowIds.length === 0 ? 'false' : 'mixed',
|
|
@@ -1729,7 +1729,7 @@ const AdvancedTable = _ref => {
|
|
|
1729
1729
|
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeader, props);
|
|
1730
1730
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1731
1731
|
role: "rowgroup",
|
|
1732
|
-
className: styles$
|
|
1732
|
+
className: styles$a.advancedTableRowGroup
|
|
1733
1733
|
}, ((_ref5 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref5 !== void 0 ? _ref5 : []).map((row, rowIndex) => {
|
|
1734
1734
|
const {
|
|
1735
1735
|
id: rowId,
|
|
@@ -1783,7 +1783,7 @@ const AdvancedTable = _ref => {
|
|
|
1783
1783
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
1784
1784
|
|
|
1785
1785
|
}), hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1786
|
-
className: classNames__default["default"](styles$
|
|
1786
|
+
className: classNames__default["default"](styles$a.pinnedContainer, styles$a.advancedTableRowChild),
|
|
1787
1787
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
1788
1788
|
}, hasCheckboxColumn && /*#__PURE__*/React__default["default"].createElement(AdvancedTableCheckbox, {
|
|
1789
1789
|
state: getCheckboxStateForRow(row),
|
|
@@ -1811,7 +1811,7 @@ const AdvancedTable = _ref => {
|
|
|
1811
1811
|
})) : undefined, hasExpandableRows && !pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth * (depth + 1), "px"), false, hasChildRows ? getAdvancedTableRowExpandButton(rowId, isExpanded, rowIndex) : undefined) : undefined, unpinnedColumnConfigs.map((c, i) => {
|
|
1812
1812
|
const props = getCellProps(c, i + pinnedColumnConfigs.length, data, paginatedRowIndex, rowId, depth);
|
|
1813
1813
|
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableCell, _extends__default["default"]({}, props, {
|
|
1814
|
-
className: styles$
|
|
1814
|
+
className: styles$a.advancedTableRowChild,
|
|
1815
1815
|
"aria-rowindex": hasExpandableRows ? undefined : rowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
1816
1816
|
,
|
|
1817
1817
|
"aria-colindex": i + 1 // aria-colindex is one-indexed
|
|
@@ -1993,10 +1993,10 @@ function useFocusState(_ref8) {
|
|
|
1993
1993
|
|
|
1994
1994
|
/* eslint-disable import/prefer-default-export */
|
|
1995
1995
|
|
|
1996
|
-
var css_248z$
|
|
1997
|
-
var styles$
|
|
1998
|
-
var stylesheet$
|
|
1999
|
-
icons_index.styleInject(css_248z$
|
|
1996
|
+
var css_248z$9 = "._1JvAP{display:inline-block;width:36px;transition:width .25s ease-out}._2fUKl{width:100%}._1iRwc>input{padding-right:0!important}._pVwpN>svg{fill:#515559}";
|
|
1997
|
+
var styles$9 = {"collapsibleSearchInput":"_1JvAP","searchInput":"_2fUKl","searchInputCollapsed":"_1iRwc","iconButton":"_pVwpN"};
|
|
1998
|
+
var stylesheet$9="._1JvAP{display:inline-block;width:36px;transition:width .25s ease-out}._2fUKl{width:100%}._1iRwc>input{padding-right:0!important}._pVwpN>svg{fill:#515559}";
|
|
1999
|
+
icons_index.styleInject(css_248z$9);
|
|
2000
2000
|
|
|
2001
2001
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
2002
2002
|
let {
|
|
@@ -2009,7 +2009,7 @@ const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, re
|
|
|
2009
2009
|
} = index.useTranslation();
|
|
2010
2010
|
const label = translate('collapsibleSearchInput.openSearchField');
|
|
2011
2011
|
return /*#__PURE__*/React__default["default"].createElement(index.IconButton, _extends__default["default"]({}, rest, {
|
|
2012
|
-
className: styles$
|
|
2012
|
+
className: styles$9.iconButton,
|
|
2013
2013
|
"aria-label": label,
|
|
2014
2014
|
tooltipContent: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : label,
|
|
2015
2015
|
tooltipPlacement: tooltipPlacement,
|
|
@@ -2123,7 +2123,7 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2123
2123
|
onFocus: handleContainerFocus,
|
|
2124
2124
|
onBlur: handleContainerBlur,
|
|
2125
2125
|
onTransitionEnd: handleContainerTransitionEnd,
|
|
2126
|
-
className: styles$
|
|
2126
|
+
className: styles$9.collapsibleSearchInput,
|
|
2127
2127
|
style: {
|
|
2128
2128
|
width: externalIsExpanded ? widthWhenExpanded : undefined
|
|
2129
2129
|
},
|
|
@@ -2137,8 +2137,8 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2137
2137
|
"aria-label": searchInputAriaLabel,
|
|
2138
2138
|
"aria-labelledby": searchInputAriaLabelledBy,
|
|
2139
2139
|
"aria-describedby": searchInputAriaDescribedBy,
|
|
2140
|
-
className: classNames__default["default"](styles$
|
|
2141
|
-
[styles$
|
|
2140
|
+
className: classNames__default["default"](styles$9.searchInput, {
|
|
2141
|
+
[styles$9.searchInputCollapsed]: internalExpandedState !== expandedStates.EXPANDED
|
|
2142
2142
|
}),
|
|
2143
2143
|
"data-testid": index.getSubDataTestId(dataTestId, 'SearchInput'),
|
|
2144
2144
|
ref: searchInputRef
|
|
@@ -2149,10 +2149,10 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2149
2149
|
}));
|
|
2150
2150
|
});
|
|
2151
2151
|
|
|
2152
|
-
var css_248z$
|
|
2153
|
-
var styles$
|
|
2154
|
-
var stylesheet$
|
|
2155
|
-
icons_index.styleInject(css_248z$
|
|
2152
|
+
var css_248z$8 = "._3UaTS input{padding-left:76px!important}._3b7FU input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3b7FU input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3b7FU input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._xRvSs{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._xRvSs,._xRvSs._3b7FU:hover{background-color:transparent!important}._xRvSs:hover{background-color:rgba(50,54,58,.08)!important}._xRvSs:active{background-color:rgba(50,54,58,.11)!important}._xRvSs svg{top:2px!important}._NDWBO{position:relative}._3i76i{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2153
|
+
var styles$8 = {"input":"_3UaTS","disabled":"_3b7FU","dropdown":"_xRvSs","container":"_NDWBO","countryCode":"_3i76i"};
|
|
2154
|
+
var stylesheet$8="._3UaTS input{padding-left:76px!important}._3b7FU input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3b7FU input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3b7FU input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._xRvSs{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._xRvSs,._xRvSs._3b7FU:hover{background-color:transparent!important}._xRvSs:hover{background-color:rgba(50,54,58,.08)!important}._xRvSs:active{background-color:rgba(50,54,58,.11)!important}._xRvSs svg{top:2px!important}._NDWBO{position:relative}._3i76i{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2155
|
+
icons_index.styleInject(css_248z$8);
|
|
2156
2156
|
|
|
2157
2157
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
2158
2158
|
let {
|
|
@@ -2218,21 +2218,21 @@ const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2218
2218
|
onChange === null || onChange === void 0 ? void 0 : onChange(internationalNumber, isValidLength, countryCode, value);
|
|
2219
2219
|
};
|
|
2220
2220
|
|
|
2221
|
-
const inputClassNames = classNames__default["default"](styles$
|
|
2222
|
-
[styles$
|
|
2221
|
+
const inputClassNames = classNames__default["default"](styles$8.input, {
|
|
2222
|
+
[styles$8.disabled]: isDisabled
|
|
2223
2223
|
});
|
|
2224
2224
|
const dropdownLabel = React.useMemo(() => countryCode ? "+".concat(libphonenumberJs.getCountryCallingCode(countryCode)) : undefined, [countryCode]);
|
|
2225
2225
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2226
|
-
className: styles$
|
|
2226
|
+
className: styles$8.container,
|
|
2227
2227
|
"data-testid": dataTestId
|
|
2228
2228
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2229
|
-
className: styles$
|
|
2229
|
+
className: styles$8.countryCode
|
|
2230
2230
|
}, dropdownLabel), /*#__PURE__*/React__default["default"].createElement(index.SelectMenu, {
|
|
2231
2231
|
label: " ",
|
|
2232
2232
|
defaultValue: countryCode,
|
|
2233
2233
|
onChange: value => setCountryCode(value),
|
|
2234
|
-
className: classNames__default["default"](styles$
|
|
2235
|
-
[styles$
|
|
2234
|
+
className: classNames__default["default"](styles$8.dropdown, {
|
|
2235
|
+
[styles$8.disabled]: isDisabled
|
|
2236
2236
|
}),
|
|
2237
2237
|
searchable: true,
|
|
2238
2238
|
disabled: isDisabled,
|
|
@@ -2894,10 +2894,10 @@ function Combobox(_ref) {
|
|
|
2894
2894
|
}, children);
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
2897
|
-
var css_248z$
|
|
2898
|
-
var styles$
|
|
2899
|
-
var stylesheet$
|
|
2900
|
-
icons_index.styleInject(css_248z$
|
|
2897
|
+
var css_248z$7 = "._365jK :after{background-color:#515559!important}._19i7V>input:focus{box-shadow:none!important;border:1px solid #898989!important}._2zCxU{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}._2zCxU ._3noB9 ._2M_Jd{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}._2zCxU ._3noB9:first-child ._XuVM0{display:none}._2zCxU ._3qGXL{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2zCxU ._3qGXL:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2zCxU ._3qGXL:hover._1ts3j{background-color:#e4effa}._2zCxU ._3qGXL._1ts3j{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2zCxU ._3qGXL:active:not(._1ts3j){background-color:#e8e9e9}";
|
|
2898
|
+
var styles$7 = {"loadingSpinner":"_365jK","ignoreFocusStyle":"_19i7V","flyout":"_2zCxU","group":"_3noB9","header":"_2M_Jd","divider":"_XuVM0","option":"_3qGXL","selected":"_1ts3j"};
|
|
2899
|
+
var stylesheet$7="._365jK :after{background-color:#515559!important}._19i7V>input:focus{box-shadow:none!important;border:1px solid #898989!important}._2zCxU{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}._2zCxU ._3noB9 ._2M_Jd{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}._2zCxU ._3noB9:first-child ._XuVM0{display:none}._2zCxU ._3qGXL{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2zCxU ._3qGXL:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2zCxU ._3qGXL:hover._1ts3j{background-color:#e4effa}._2zCxU ._3qGXL._1ts3j{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2zCxU ._3qGXL:active:not(._1ts3j){background-color:#e8e9e9}";
|
|
2900
|
+
icons_index.styleInject(css_248z$7);
|
|
2901
2901
|
|
|
2902
2902
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
2903
2903
|
let {
|
|
@@ -3014,7 +3014,7 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3014
3014
|
return /*#__PURE__*/React__default["default"].createElement(index.Input$1, {
|
|
3015
3015
|
role: "combobox",
|
|
3016
3016
|
className: classNames__default["default"](className, {
|
|
3017
|
-
[styles$
|
|
3017
|
+
[styles$7.ignoreFocusStyle]: hoveredOption || activeDescendantElement
|
|
3018
3018
|
}),
|
|
3019
3019
|
style: style,
|
|
3020
3020
|
id: id,
|
|
@@ -3027,7 +3027,7 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3027
3027
|
},
|
|
3028
3028
|
leftAddOn: leftAddOn,
|
|
3029
3029
|
rightAddOn: isLoading ? /*#__PURE__*/React__default["default"].createElement(index.LoadingSpinner, {
|
|
3030
|
-
className: styles$
|
|
3030
|
+
className: styles$7.loadingSpinner,
|
|
3031
3031
|
size: "xs",
|
|
3032
3032
|
show: isLoading,
|
|
3033
3033
|
"aria-hidden": true
|
|
@@ -3084,7 +3084,7 @@ const ComboboxFlyout = _ref => {
|
|
|
3084
3084
|
popper: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3085
3085
|
role: "listbox",
|
|
3086
3086
|
id: flyoutId,
|
|
3087
|
-
className: styles$
|
|
3087
|
+
className: styles$7.flyout,
|
|
3088
3088
|
style: flyoutDimensions,
|
|
3089
3089
|
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : rootAriaLabel,
|
|
3090
3090
|
"aria-labelledby": ariaLabelledBy !== null && ariaLabelledBy !== void 0 ? ariaLabelledBy : rootAriaLabelledBy,
|
|
@@ -3136,16 +3136,16 @@ function ComboboxGroup(_ref) {
|
|
|
3136
3136
|
}, children);
|
|
3137
3137
|
return hasFilteredOptions ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3138
3138
|
role: "group",
|
|
3139
|
-
className: styles$
|
|
3139
|
+
className: styles$7.group,
|
|
3140
3140
|
"aria-labelledby": headerElementId,
|
|
3141
3141
|
"aria-describedby": ariaDescribedBy,
|
|
3142
3142
|
"data-testid": index.getSubDataTestId(rootDataTestId, "group-".concat(label))
|
|
3143
3143
|
}, /*#__PURE__*/React__default["default"].createElement(index.Divider, {
|
|
3144
|
-
className: styles$
|
|
3144
|
+
className: styles$7.divider
|
|
3145
3145
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3146
3146
|
"aria-hidden": "true",
|
|
3147
3147
|
id: headerElementId,
|
|
3148
|
-
className: styles$
|
|
3148
|
+
className: styles$7.header
|
|
3149
3149
|
}, 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
|
|
3150
3150
|
;
|
|
3151
3151
|
}
|
|
@@ -3198,8 +3198,8 @@ function ComboboxOption(_ref) {
|
|
|
3198
3198
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3199
3199
|
role: "option",
|
|
3200
3200
|
id: containerId,
|
|
3201
|
-
className: classNames__default["default"](styles$
|
|
3202
|
-
[styles$
|
|
3201
|
+
className: classNames__default["default"](styles$7.option, {
|
|
3202
|
+
[styles$7.selected]: isOptionSelected
|
|
3203
3203
|
}),
|
|
3204
3204
|
onClick: () => {
|
|
3205
3205
|
setCommittedInputValue(label);
|
|
@@ -3216,10 +3216,10 @@ function ComboboxOption(_ref) {
|
|
|
3216
3216
|
}, label);
|
|
3217
3217
|
}
|
|
3218
3218
|
|
|
3219
|
-
var css_248z$
|
|
3220
|
-
var styles$
|
|
3221
|
-
var stylesheet$
|
|
3222
|
-
icons_index.styleInject(css_248z$
|
|
3219
|
+
var css_248z$6 = "._2jVhE{display:flex}._3ciZn{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._3ciZn._1MsH2{background-color:#fff}._3ciZn._1MsH2._ugv_G:not(._3ciZn._1MsH2._3W_OO),._3ciZn._DTqL2,body.keyboard-user ._3ciZn._1MsH2._1X-Qo:not(._3a3Ir){background-color:#0b6ed0}._3ciZn._DTqL2._3a3Ir._1X-Qo,._3ciZn._DTqL2._3a3Ir._3W_OO,._3ciZn._DTqL2._3W_OO._ugv_G{opacity:.4}._3Dtsg{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3Dtsg:focus{z-index:1}._TCx8M{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}._TCx8M svg{margin-left:1px}._TCx8M._1MsH2{background-color:#0b6ed0;border-color:transparent}._TCx8M._1MsH2 svg{fill:#fff!important}._TCx8M._1MsH2:not(._2l3d5):hover{background-color:#085caf!important}._TCx8M._1MsH2:not(._2l3d5):active{background-color:#0854a1!important}._TCx8M._1MsH2._2l3d5{opacity:.4}._TCx8M._1MsH2._2l3d5 svg{background-color:transparent}._TCx8M._DTqL2{border-color:#0b6ed0;background-color:#fff}._TCx8M._DTqL2 svg{fill:#0b6ed0!important}._TCx8M._DTqL2:not(._2l3d5):hover{background-color:#eef5fc!important}._TCx8M._DTqL2:not(._2l3d5):active{background-color:#e1edf9!important}._TCx8M._DTqL2._2l3d5{opacity:.4}._TCx8M._DTqL2._2l3d5 svg{background-color:transparent}._1_GdT{width:260px}";
|
|
3220
|
+
var styles$6 = {"container":"_2jVhE","divider":"_3ciZn","primary":"_1MsH2","mainButtonFocus":"_1X-Qo","mainButtonDisabled":"_3a3Ir","dropdownButtonFocus":"_ugv_G","dropdownButtonDisabled":"_3W_OO","secondary":"_DTqL2","mainButton":"_3Dtsg","dropdownButton":"_TCx8M","disabled":"_2l3d5","dropdownOption":"_1_GdT"};
|
|
3221
|
+
var stylesheet$6="._2jVhE{display:flex}._3ciZn{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._3ciZn._1MsH2{background-color:#fff}._3ciZn._1MsH2._ugv_G:not(._3ciZn._1MsH2._3W_OO),._3ciZn._DTqL2,body.keyboard-user ._3ciZn._1MsH2._1X-Qo:not(._3a3Ir){background-color:#0b6ed0}._3ciZn._DTqL2._3a3Ir._1X-Qo,._3ciZn._DTqL2._3a3Ir._3W_OO,._3ciZn._DTqL2._3W_OO._ugv_G{opacity:.4}._3Dtsg{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3Dtsg:focus{z-index:1}._TCx8M{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}._TCx8M svg{margin-left:1px}._TCx8M._1MsH2{background-color:#0b6ed0;border-color:transparent}._TCx8M._1MsH2 svg{fill:#fff!important}._TCx8M._1MsH2:not(._2l3d5):hover{background-color:#085caf!important}._TCx8M._1MsH2:not(._2l3d5):active{background-color:#0854a1!important}._TCx8M._1MsH2._2l3d5{opacity:.4}._TCx8M._1MsH2._2l3d5 svg{background-color:transparent}._TCx8M._DTqL2{border-color:#0b6ed0;background-color:#fff}._TCx8M._DTqL2 svg{fill:#0b6ed0!important}._TCx8M._DTqL2:not(._2l3d5):hover{background-color:#eef5fc!important}._TCx8M._DTqL2:not(._2l3d5):active{background-color:#e1edf9!important}._TCx8M._DTqL2._2l3d5{opacity:.4}._TCx8M._DTqL2._2l3d5 svg{background-color:transparent}._1_GdT{width:260px}";
|
|
3222
|
+
icons_index.styleInject(css_248z$6);
|
|
3223
3223
|
|
|
3224
3224
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
3225
3225
|
let {
|
|
@@ -3253,14 +3253,14 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3253
3253
|
});
|
|
3254
3254
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3255
3255
|
"data-testid": dataTestId,
|
|
3256
|
-
className: classNames__default["default"](styles$
|
|
3256
|
+
className: classNames__default["default"](styles$6.container, className),
|
|
3257
3257
|
ref: ref
|
|
3258
3258
|
}, /*#__PURE__*/React__default["default"].createElement(index.Button, {
|
|
3259
3259
|
kind: kind,
|
|
3260
3260
|
"data-testid": index.getSubDataTestId(dataTestId, 'button'),
|
|
3261
|
-
className: classNames__default["default"](styles$
|
|
3262
|
-
[styles$
|
|
3263
|
-
[styles$
|
|
3261
|
+
className: classNames__default["default"](styles$6.mainButton, {
|
|
3262
|
+
[styles$6.disabled]: isButtonDisabled,
|
|
3263
|
+
[styles$6.primary]: kind === 'primary'
|
|
3264
3264
|
}),
|
|
3265
3265
|
onClick: onClick,
|
|
3266
3266
|
disabled: isButtonDisabled,
|
|
@@ -3271,13 +3271,13 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3271
3271
|
onFocus: () => setMainButtonHasFocus(true),
|
|
3272
3272
|
onBlur: () => setMainButtonHasFocus(false)
|
|
3273
3273
|
}, label), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3274
|
-
className: classNames__default["default"](styles$
|
|
3275
|
-
[styles$
|
|
3276
|
-
[styles$
|
|
3277
|
-
[styles$
|
|
3278
|
-
[styles$
|
|
3279
|
-
[styles$
|
|
3280
|
-
[styles$
|
|
3274
|
+
className: classNames__default["default"](styles$6.divider, {
|
|
3275
|
+
[styles$6.primary]: kind === 'primary',
|
|
3276
|
+
[styles$6.secondary]: kind === 'secondary',
|
|
3277
|
+
[styles$6.mainButtonFocus]: mainButtonHasFocus,
|
|
3278
|
+
[styles$6.dropdownButtonFocus]: dropdownButtonHasFocus,
|
|
3279
|
+
[styles$6.mainButtonDisabled]: isButtonDisabled,
|
|
3280
|
+
[styles$6.dropdownButtonDisabled]: isDropdownDisabled
|
|
3281
3281
|
})
|
|
3282
3282
|
}), /*#__PURE__*/React__default["default"].createElement(index.Dropdown, {
|
|
3283
3283
|
"data-testid": index.getSubDataTestId(dataTestId, 'dropdown'),
|
|
@@ -3288,10 +3288,10 @@ const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3288
3288
|
}, /*#__PURE__*/React__default["default"].createElement(index.DropdownButton // `label` of type `string` adds Dropdown's `isString` class, which causes a css bug in Safari
|
|
3289
3289
|
, {
|
|
3290
3290
|
label: /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null),
|
|
3291
|
-
className: classNames__default["default"](styles$
|
|
3292
|
-
[styles$
|
|
3293
|
-
[styles$
|
|
3294
|
-
[styles$
|
|
3291
|
+
className: classNames__default["default"](styles$6.dropdownButton, {
|
|
3292
|
+
[styles$6.disabled]: isDropdownDisabled,
|
|
3293
|
+
[styles$6.primary]: kind === 'primary',
|
|
3294
|
+
[styles$6.secondary]: kind === 'secondary'
|
|
3295
3295
|
}),
|
|
3296
3296
|
ref: dropdownButtonRef,
|
|
3297
3297
|
tabIndex: -1,
|
|
@@ -3313,15 +3313,15 @@ const SplitButtonOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3313
3313
|
label: "",
|
|
3314
3314
|
disabled: isDisabled,
|
|
3315
3315
|
onSelect: onClick,
|
|
3316
|
-
className: styles$
|
|
3316
|
+
className: styles$6.dropdownOption,
|
|
3317
3317
|
ref: ref
|
|
3318
3318
|
}, children);
|
|
3319
3319
|
});
|
|
3320
3320
|
|
|
3321
|
-
var css_248z$
|
|
3322
|
-
var styles$
|
|
3323
|
-
var stylesheet$
|
|
3324
|
-
icons_index.styleInject(css_248z$
|
|
3321
|
+
var css_248z$5 = "._3RFgl{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}._3RFgl:hover:not(._2hkLI){background-color:rgba(50,54,58,.08)}._3RFgl:hover:not(._2hkLI)._DUYIC{border-color:#085caf;background-color:rgba(11,110,208,.04)}._3RFgl:hover:not(._2hkLI)._DUYIC ._D1LWN{color:#32363a}._3RFgl:hover:not(._2hkLI)._DUYIC ._1On4y{fill:#32363a}._3RFgl:hover:not(._2hkLI)._DUYIC ._2Iizd{fill:#085caf}._3RFgl:hover:not(._2hkLI)._DUYIC ._3eZgt{background-color:rgba(11,110,208,.11)}._3RFgl:hover:not(._2hkLI)._DUYIC ._3eZgt ._rVw97{color:#085caf}._3RFgl:active:not(._2hkLI){background-color:#e8e9e9}._3RFgl:active:not(._2hkLI)._DUYIC{background-color:rgba(11,110,208,.11);border-color:#0854a1}._3RFgl:active:not(._2hkLI)._DUYIC ._2Iizd{fill:#0854a1}._3RFgl:active:not(._2hkLI)._DUYIC ._3eZgt{background-color:rgba(11,110,208,.11)}._3RFgl:active:not(._2hkLI)._DUYIC ._3eZgt ._rVw97{color:#0854a1}._3RFgl._2hkLI{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._3RFgl._DUYIC{border-color:#0b6ed0}._1On4y{fill:#515559;margin-right:4px}._D1LWN{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._D1LWN+._3eZgt{margin-left:6px}._D1LWN._2hkLI{color:#74777a}._3eZgt{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}._rVw97{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2Iizd{fill:#515559}._2Iizd._2hkLI,._2Iizd._2hkLI._DUYIC{fill:rgba(116,119,122,.4)}._2Iizd._DUYIC{fill:#0b6ed0}._2Iizd._3HD0e{transform:rotate(-180deg)}body.keyboard-user ._3RFgl:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3322
|
+
var styles$5 = {"button":"_3RFgl","disabled":"_2hkLI","selected":"_DUYIC","label":"_D1LWN","lockIcon":"_1On4y","chevronIcon":"_2Iizd","selectedFiltersContainer":"_3eZgt","selectedFilters":"_rVw97","open":"_3HD0e"};
|
|
3323
|
+
var stylesheet$5="._3RFgl{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}._3RFgl:hover:not(._2hkLI){background-color:rgba(50,54,58,.08)}._3RFgl:hover:not(._2hkLI)._DUYIC{border-color:#085caf;background-color:rgba(11,110,208,.04)}._3RFgl:hover:not(._2hkLI)._DUYIC ._D1LWN{color:#32363a}._3RFgl:hover:not(._2hkLI)._DUYIC ._1On4y{fill:#32363a}._3RFgl:hover:not(._2hkLI)._DUYIC ._2Iizd{fill:#085caf}._3RFgl:hover:not(._2hkLI)._DUYIC ._3eZgt{background-color:rgba(11,110,208,.11)}._3RFgl:hover:not(._2hkLI)._DUYIC ._3eZgt ._rVw97{color:#085caf}._3RFgl:active:not(._2hkLI){background-color:#e8e9e9}._3RFgl:active:not(._2hkLI)._DUYIC{background-color:rgba(11,110,208,.11);border-color:#0854a1}._3RFgl:active:not(._2hkLI)._DUYIC ._2Iizd{fill:#0854a1}._3RFgl:active:not(._2hkLI)._DUYIC ._3eZgt{background-color:rgba(11,110,208,.11)}._3RFgl:active:not(._2hkLI)._DUYIC ._3eZgt ._rVw97{color:#0854a1}._3RFgl._2hkLI{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._3RFgl._DUYIC{border-color:#0b6ed0}._1On4y{fill:#515559;margin-right:4px}._D1LWN{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._D1LWN+._3eZgt{margin-left:6px}._D1LWN._2hkLI{color:#74777a}._3eZgt{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}._rVw97{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2Iizd{fill:#515559}._2Iizd._2hkLI,._2Iizd._2hkLI._DUYIC{fill:rgba(116,119,122,.4)}._2Iizd._DUYIC{fill:#0b6ed0}._2Iizd._3HD0e{transform:rotate(-180deg)}body.keyboard-user ._3RFgl:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3324
|
+
icons_index.styleInject(css_248z$5);
|
|
3325
3325
|
|
|
3326
3326
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
3327
3327
|
let {
|
|
@@ -3346,9 +3346,9 @@ const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3346
3346
|
} = index.useTranslation();
|
|
3347
3347
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends__default["default"]({}, rest, {
|
|
3348
3348
|
type: "button",
|
|
3349
|
-
className: classNames__default["default"](className, styles$
|
|
3350
|
-
[styles$
|
|
3351
|
-
[styles$
|
|
3349
|
+
className: classNames__default["default"](className, styles$5.button, {
|
|
3350
|
+
[styles$5.disabled]: isDisabled,
|
|
3351
|
+
[styles$5.selected]: !!selectedFilters
|
|
3352
3352
|
}),
|
|
3353
3353
|
onClick: e => {
|
|
3354
3354
|
if (isDisabled) {
|
|
@@ -3373,33 +3373,33 @@ const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3373
3373
|
}), isLocked && /*#__PURE__*/React__default["default"].createElement(icons_index.LockIcon, {
|
|
3374
3374
|
size: "small",
|
|
3375
3375
|
id: lockIconElementId,
|
|
3376
|
-
className: styles$
|
|
3376
|
+
className: styles$5.lockIcon // @ts-ignore - 'locked' is not in the current list of translations
|
|
3377
3377
|
,
|
|
3378
3378
|
"aria-label": translate('locked')
|
|
3379
3379
|
}), label && /*#__PURE__*/React__default["default"].createElement(index.TextOverflowTooltip, {
|
|
3380
3380
|
lightTheme: true
|
|
3381
3381
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3382
3382
|
id: labelElementId,
|
|
3383
|
-
className: classNames__default["default"](styles$
|
|
3384
|
-
[styles$
|
|
3383
|
+
className: classNames__default["default"](styles$5.label, {
|
|
3384
|
+
[styles$5.disabled]: isDisabled
|
|
3385
3385
|
})
|
|
3386
3386
|
}, label)), isLoading ? /*#__PURE__*/React__default["default"].createElement(index.LoadingSpinner, {
|
|
3387
3387
|
show: true,
|
|
3388
3388
|
size: "xs",
|
|
3389
3389
|
"aria-label": loadingSpinnerAriaLabel !== null && loadingSpinnerAriaLabel !== void 0 ? loadingSpinnerAriaLabel : translate('loading')
|
|
3390
3390
|
}) : selectedFilters && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3391
|
-
className: styles$
|
|
3391
|
+
className: styles$5.selectedFiltersContainer
|
|
3392
3392
|
}, /*#__PURE__*/React__default["default"].createElement(index.TextOverflowTooltip, {
|
|
3393
3393
|
lightTheme: true
|
|
3394
3394
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3395
3395
|
id: selectedFiltersElementId,
|
|
3396
|
-
className: styles$
|
|
3396
|
+
className: styles$5.selectedFilters
|
|
3397
3397
|
}, selectedFilters))), /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3398
3398
|
size: "medium",
|
|
3399
|
-
className: classNames__default["default"](styles$
|
|
3400
|
-
[styles$
|
|
3401
|
-
[styles$
|
|
3402
|
-
[styles$
|
|
3399
|
+
className: classNames__default["default"](styles$5.chevronIcon, {
|
|
3400
|
+
[styles$5.disabled]: isDisabled,
|
|
3401
|
+
[styles$5.selected]: !!selectedFilters,
|
|
3402
|
+
[styles$5.open]: isOpen
|
|
3403
3403
|
}),
|
|
3404
3404
|
"aria-hidden": true
|
|
3405
3405
|
}));
|
|
@@ -3504,10 +3504,10 @@ class PointerEvent extends Event {
|
|
|
3504
3504
|
|
|
3505
3505
|
}
|
|
3506
3506
|
|
|
3507
|
-
var css_248z$
|
|
3508
|
-
var styles$
|
|
3509
|
-
var stylesheet$
|
|
3510
|
-
icons_index.styleInject(css_248z$
|
|
3507
|
+
var css_248z$4 = "._2ynkK{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._2NlpA{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}._2NlpA:hover:not([aria-disabled=true]){background-color:#f5f5f5}._2NlpA:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2NlpA+._3Ko_V{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._2NlpA[data-state=open]+._3Ko_V{transform:rotate(-180deg) translateY(50%)}._2NlpA[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._2NlpA[aria-disabled=true]+._3Ko_V{fill:#515559;opacity:.4}._2rhdM{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}._4hZuK{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._4hZuK[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._4hZuK[aria-disabled=true]{cursor:not-allowed;opacity:.65}._4hZuK._1hndv{padding-right:32px}._4hZuK._1hndv ._3Ko_V{position:absolute;top:8px;right:3px;fill:#515559}._2sPaq{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._37RTl{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}";
|
|
3508
|
+
var styles$4 = {"buttonContainer":"_2ynkK","button":"_2NlpA","rightIcon":"_3Ko_V","flyout":"_2rhdM","menuItem":"_4hZuK","subMenu":"_1hndv","searchBox":"_2sPaq","emptyOption":"_37RTl"};
|
|
3509
|
+
var stylesheet$4="._2ynkK{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._2NlpA{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}._2NlpA:hover:not([aria-disabled=true]){background-color:#f5f5f5}._2NlpA:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2NlpA+._3Ko_V{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._2NlpA[data-state=open]+._3Ko_V{transform:rotate(-180deg) translateY(50%)}._2NlpA[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._2NlpA[aria-disabled=true]+._3Ko_V{fill:#515559;opacity:.4}._2rhdM{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}._4hZuK{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._4hZuK[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._4hZuK[aria-disabled=true]{cursor:not-allowed;opacity:.65}._4hZuK._1hndv{padding-right:32px}._4hZuK._1hndv ._3Ko_V{position:absolute;top:8px;right:3px;fill:#515559}._2sPaq{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._37RTl{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}";
|
|
3510
|
+
icons_index.styleInject(css_248z$4);
|
|
3511
3511
|
|
|
3512
3512
|
/* eslint-disable import/prefer-default-export */
|
|
3513
3513
|
const DATA_TESTID_SUFFIXES = {
|
|
@@ -3529,18 +3529,18 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
3529
3529
|
} = useMenuContext();
|
|
3530
3530
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3531
3531
|
className: classNames__default["default"]({
|
|
3532
|
-
[styles$
|
|
3532
|
+
[styles$4.buttonContainer]: !asChild
|
|
3533
3533
|
})
|
|
3534
3534
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Trigger, _extends__default["default"]({}, rest, {
|
|
3535
3535
|
"aria-disabled": isDisabled,
|
|
3536
3536
|
className: classNames__default["default"]({
|
|
3537
|
-
[styles$
|
|
3537
|
+
[styles$4.button]: !asChild
|
|
3538
3538
|
}),
|
|
3539
3539
|
asChild: asChild,
|
|
3540
3540
|
ref: ref,
|
|
3541
3541
|
"data-testid": index.getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
3542
3542
|
}), children), !asChild && /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3543
|
-
className: styles$
|
|
3543
|
+
className: styles$4.rightIcon,
|
|
3544
3544
|
"aria-hidden": "true"
|
|
3545
3545
|
}));
|
|
3546
3546
|
});
|
|
@@ -3583,7 +3583,7 @@ const MenuSearch = _ref => {
|
|
|
3583
3583
|
isCaptureEvent: true
|
|
3584
3584
|
});
|
|
3585
3585
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, {
|
|
3586
|
-
className: styles$
|
|
3586
|
+
className: styles$4.searchBox // prevents dropdown from closing
|
|
3587
3587
|
,
|
|
3588
3588
|
onSelect: e => e.preventDefault(),
|
|
3589
3589
|
onFocus: () => {
|
|
@@ -3626,7 +3626,7 @@ const MenuSearch = _ref => {
|
|
|
3626
3626
|
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, null),
|
|
3627
3627
|
ref: inputRef
|
|
3628
3628
|
})), zeroSearchResults && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3629
|
-
className: styles$
|
|
3629
|
+
className: styles$4.emptyOption // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
3630
3630
|
,
|
|
3631
3631
|
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
3632
3632
|
,
|
|
@@ -3673,7 +3673,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3673
3673
|
loop: true,
|
|
3674
3674
|
side: side || 'bottom',
|
|
3675
3675
|
align: align || 'start',
|
|
3676
|
-
className: styles$
|
|
3676
|
+
className: styles$4.flyout,
|
|
3677
3677
|
ref: index.mergeRefs(ref, paneRef),
|
|
3678
3678
|
"data-testid": dataTestId
|
|
3679
3679
|
}), isSearchable && /*#__PURE__*/React__default["default"].createElement(MenuSearch, {
|
|
@@ -3710,7 +3710,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3710
3710
|
return isVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, _extends__default["default"]({}, rest, {
|
|
3711
3711
|
asChild: asChild,
|
|
3712
3712
|
"aria-disabled": isDisabled,
|
|
3713
|
-
className: classNames__default["default"](className, styles$
|
|
3713
|
+
className: classNames__default["default"](className, styles$4.menuItem),
|
|
3714
3714
|
"data-testid": dataTestId,
|
|
3715
3715
|
ref: index.mergeRefs(ref, itemRef) // stop radix from closing the menu on selection of disabled item
|
|
3716
3716
|
// other pointer and keyboard events still work, even when disabled
|
|
@@ -3748,13 +3748,13 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3748
3748
|
return isSearchFilteringDisabledForTrigger || !triggerMenuParentSearchValue || typeof label === 'string' && _includesInstanceProperty__default["default"](_context = label.toLowerCase()).call(_context, triggerMenuParentSearchValue.toLowerCase());
|
|
3749
3749
|
}, [triggerMenuParentSearchValue, label, isSearchFilteringDisabledForTrigger]);
|
|
3750
3750
|
return isVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Sub, null, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubTrigger, {
|
|
3751
|
-
className: classNames__default["default"](styles$
|
|
3751
|
+
className: classNames__default["default"](styles$4.menuItem, styles$4.subMenu),
|
|
3752
3752
|
"data-testid": triggerDataTestId,
|
|
3753
3753
|
"aria-disabled": isDisabled,
|
|
3754
3754
|
disabled: isDisabled,
|
|
3755
3755
|
ref: itemRef
|
|
3756
3756
|
}, label, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronRightIcon, {
|
|
3757
|
-
className: styles$
|
|
3757
|
+
className: styles$4.rightIcon
|
|
3758
3758
|
})), /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3759
3759
|
items: items,
|
|
3760
3760
|
setItems: setItems,
|
|
@@ -3764,7 +3764,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3764
3764
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren
|
|
3765
3765
|
}
|
|
3766
3766
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
3767
|
-
className: styles$
|
|
3767
|
+
className: styles$4.flyout,
|
|
3768
3768
|
loop: true,
|
|
3769
3769
|
"data-testid": paneDataTestId,
|
|
3770
3770
|
ref: index.mergeRefs(ref, paneRef)
|
|
@@ -3775,10 +3775,10 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3775
3775
|
}), children))) : null;
|
|
3776
3776
|
});
|
|
3777
3777
|
|
|
3778
|
-
var css_248z$
|
|
3779
|
-
var styles$
|
|
3780
|
-
var stylesheet$
|
|
3781
|
-
icons_index.styleInject(css_248z$
|
|
3778
|
+
var css_248z$3 = "._1mj3N{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}._24QVG{visibility:hidden}";
|
|
3779
|
+
var styles$3 = {"overlay":"_1mj3N","hidden":"_24QVG"};
|
|
3780
|
+
var stylesheet$3="._1mj3N{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}._24QVG{visibility:hidden}";
|
|
3781
|
+
icons_index.styleInject(css_248z$3);
|
|
3782
3782
|
|
|
3783
3783
|
/**
|
|
3784
3784
|
* Adds an overlay to an area that obscures visibility and disables background elements.
|
|
@@ -3805,10 +3805,10 @@ const useOverlay = _ref => {
|
|
|
3805
3805
|
const containerNode = (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body;
|
|
3806
3806
|
const overlay = document.createElement('div');
|
|
3807
3807
|
overlay.id = overlayId;
|
|
3808
|
-
overlay.classList.add(styles$
|
|
3808
|
+
overlay.classList.add(styles$3.overlay);
|
|
3809
3809
|
if (onClick) overlay.addEventListener('click', onClick);
|
|
3810
3810
|
if (dataTestId) overlay.dataset.testid = dataTestId;
|
|
3811
|
-
if (!isVisible) overlay.classList.add(styles$
|
|
3811
|
+
if (!isVisible) overlay.classList.add(styles$3.hidden);
|
|
3812
3812
|
if (zIndex) overlay.style.zIndex = zIndex.toString();
|
|
3813
3813
|
containerNode.appendChild(overlay);
|
|
3814
3814
|
containerNode.style.position = 'relative';
|
|
@@ -3827,12 +3827,12 @@ const useOverlay = _ref => {
|
|
|
3827
3827
|
Array.from(containerNode.children).forEach(child => {
|
|
3828
3828
|
if (!_includesInstanceProperty__default["default"](ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
3829
3829
|
});
|
|
3830
|
-
overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.classList.remove(styles$
|
|
3830
|
+
overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.classList.remove(styles$3.hidden);
|
|
3831
3831
|
} else {
|
|
3832
3832
|
Array.from(containerNode.children).forEach(child => {
|
|
3833
3833
|
child.removeAttribute('inert');
|
|
3834
3834
|
});
|
|
3835
|
-
overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.classList.add(styles$
|
|
3835
|
+
overlayNode === null || overlayNode === void 0 ? void 0 : overlayNode.classList.add(styles$3.hidden);
|
|
3836
3836
|
}
|
|
3837
3837
|
|
|
3838
3838
|
return () => {
|
|
@@ -3843,10 +3843,10 @@ const useOverlay = _ref => {
|
|
|
3843
3843
|
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3844
3844
|
};
|
|
3845
3845
|
|
|
3846
|
-
var css_248z$
|
|
3847
|
-
var styles$
|
|
3848
|
-
var stylesheet$
|
|
3849
|
-
icons_index.styleInject(css_248z$
|
|
3846
|
+
var css_248z$2 = "._2gO2J{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}._1z0in{visibility:hidden}._71Hx6{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._1o4Hy{padding-top:8px}._2WiY-{margin-left:12px}";
|
|
3847
|
+
var styles$2 = {"drawer":"_2gO2J","hidden":"_1z0in","header":"_71Hx6","title":"_1o4Hy","closeButton":"_2WiY-"};
|
|
3848
|
+
var stylesheet$2="._2gO2J{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}._1z0in{visibility:hidden}._71Hx6{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._1o4Hy{padding-top:8px}._2WiY-{margin-left:12px}";
|
|
3849
|
+
icons_index.styleInject(css_248z$2);
|
|
3850
3850
|
|
|
3851
3851
|
const Drawer = _ref => {
|
|
3852
3852
|
var _containerRef$current;
|
|
@@ -3930,9 +3930,9 @@ const Drawer = _ref => {
|
|
|
3930
3930
|
|
|
3931
3931
|
return domReady ? /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default["default"].createElement("aside", {
|
|
3932
3932
|
id: drawerId,
|
|
3933
|
-
className: classNames__default["default"](styles$
|
|
3934
|
-
[styles$
|
|
3935
|
-
[styles$
|
|
3933
|
+
className: classNames__default["default"](styles$2.drawer, {
|
|
3934
|
+
[styles$2.hidden]: isHidden,
|
|
3935
|
+
[styles$2.closing]: isClosing
|
|
3936
3936
|
}),
|
|
3937
3937
|
style: {
|
|
3938
3938
|
width,
|
|
@@ -3949,12 +3949,12 @@ const Drawer = _ref => {
|
|
|
3949
3949
|
}, /*#__PURE__*/React__default["default"].createElement(index.PortalTargetProvider, {
|
|
3950
3950
|
target: drawerRef.current
|
|
3951
3951
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3952
|
-
className: styles$
|
|
3952
|
+
className: styles$2.header
|
|
3953
3953
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3954
|
-
className: styles$
|
|
3954
|
+
className: styles$2.title,
|
|
3955
3955
|
"data-testid": index.getSubDataTestId(dataTestId, 'title')
|
|
3956
3956
|
}, title), /*#__PURE__*/React__default["default"].createElement(index.IconButton, {
|
|
3957
|
-
className: styles$
|
|
3957
|
+
className: styles$2.closeButton,
|
|
3958
3958
|
onClick: close,
|
|
3959
3959
|
ref: closeButtonRef,
|
|
3960
3960
|
"data-testid": index.getSubDataTestId(dataTestId, 'close-button'),
|
|
@@ -3964,10 +3964,10 @@ const Drawer = _ref => {
|
|
|
3964
3964
|
}, children))), (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body) : null;
|
|
3965
3965
|
};
|
|
3966
3966
|
|
|
3967
|
-
var css_248z = ".
|
|
3968
|
-
var styles = {"container":"
|
|
3969
|
-
var stylesheet=".
|
|
3970
|
-
icons_index.styleInject(css_248z);
|
|
3967
|
+
var css_248z$1 = "._2KENN{display:inline-block;position:relative}._trLAO{width:120px}._trLAO ._2lZVN._25PKA{transform:rotate(-180deg)}._trLAO ._2lZVN._BYWbu{fill:#9d9fa1;opacity:.4}._33O-V>input:focus{box-shadow:none!important;border:1px solid #898989!important}._jI5I9{width:120px}._jI5I9 ._2nvTS._3ubVg{background-color:#efefef;border-radius:6px}._2lZVN{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._2lZVN._25PKA{transform:rotate(-180deg)}";
|
|
3968
|
+
var styles$1 = {"container":"_2KENN","input":"_trLAO","icon":"_2lZVN","open":"_25PKA","disabled":"_BYWbu","ignoreFocusStyle":"_33O-V","flyout":"_jI5I9","option":"_2nvTS","exactMatch":"_3ubVg"};
|
|
3969
|
+
var stylesheet$1="._2KENN{display:inline-block;position:relative}._trLAO{width:120px}._trLAO ._2lZVN._25PKA{transform:rotate(-180deg)}._trLAO ._2lZVN._BYWbu{fill:#9d9fa1;opacity:.4}._33O-V>input:focus{box-shadow:none!important;border:1px solid #898989!important}._jI5I9{width:120px}._jI5I9 ._2nvTS._3ubVg{background-color:#efefef;border-radius:6px}._2lZVN{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._2lZVN._25PKA{transform:rotate(-180deg)}";
|
|
3970
|
+
icons_index.styleInject(css_248z$1);
|
|
3971
3971
|
|
|
3972
3972
|
const TimeDropdown = _ref => {
|
|
3973
3973
|
let {
|
|
@@ -4008,7 +4008,7 @@ const TimeDropdown = _ref => {
|
|
|
4008
4008
|
"aria-labelledby": ariaLabelledBy,
|
|
4009
4009
|
"aria-describedby": ariaDescribedBy,
|
|
4010
4010
|
"data-testid": dataTestId && "".concat(dataTestId, "-dropdown"),
|
|
4011
|
-
className: styles.flyout,
|
|
4011
|
+
className: styles$1.flyout,
|
|
4012
4012
|
onMouseOver: () => setIsOptionHovered(true),
|
|
4013
4013
|
onMouseLeave: () => setIsOptionHovered(false)
|
|
4014
4014
|
}, items.map((item, index$1) => /*#__PURE__*/React__default["default"].createElement(index.FlyoutOption, {
|
|
@@ -4024,8 +4024,8 @@ const TimeDropdown = _ref => {
|
|
|
4024
4024
|
},
|
|
4025
4025
|
onClick: () => onClick(index$1),
|
|
4026
4026
|
"data-testid": dataTestId && "".concat(dataTestId, "-option-").concat(index$1),
|
|
4027
|
-
className: classNames__default["default"](styles.option, {
|
|
4028
|
-
[styles.exactMatch]: (scrolledToItem === null || scrolledToItem === void 0 ? void 0 : scrolledToItem.index) === index$1 && scrolledToItem.isExactMatch && !isOptionHovered
|
|
4027
|
+
className: classNames__default["default"](styles$1.option, {
|
|
4028
|
+
[styles$1.exactMatch]: (scrolledToItem === null || scrolledToItem === void 0 ? void 0 : scrolledToItem.index) === index$1 && scrolledToItem.isExactMatch && !isOptionHovered
|
|
4029
4029
|
})
|
|
4030
4030
|
}, item.label))),
|
|
4031
4031
|
anchorNode: inputRef.current,
|
|
@@ -4328,8 +4328,8 @@ const TimeInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4328
4328
|
"aria-expanded": ariaExpanded,
|
|
4329
4329
|
"aria-controls": ariaControls,
|
|
4330
4330
|
ref: ref,
|
|
4331
|
-
className: classNames__default["default"](styles.input, {
|
|
4332
|
-
[styles.ignoreFocusStyle]: !!ariaActiveDescendant || isOptionHovered
|
|
4331
|
+
className: classNames__default["default"](styles$1.input, {
|
|
4332
|
+
[styles$1.ignoreFocusStyle]: !!ariaActiveDescendant || isOptionHovered
|
|
4333
4333
|
}),
|
|
4334
4334
|
"aria-invalid": isInvalid,
|
|
4335
4335
|
onKeyDown: handleKeyDown,
|
|
@@ -4354,8 +4354,8 @@ const TimePickerIcon = _ref => {
|
|
|
4354
4354
|
"aria-hidden": "true",
|
|
4355
4355
|
tabIndex: -1,
|
|
4356
4356
|
disabled: isDisabled,
|
|
4357
|
-
className: classNames__default["default"](styles.icon, {
|
|
4358
|
-
[styles.open]: isOpen
|
|
4357
|
+
className: classNames__default["default"](styles$1.icon, {
|
|
4358
|
+
[styles$1.open]: isOpen
|
|
4359
4359
|
})
|
|
4360
4360
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
4361
4361
|
onClick: !isDisabled ? () => {
|
|
@@ -4559,7 +4559,7 @@ const TimePicker = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4559
4559
|
|
|
4560
4560
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4561
4561
|
id: timePickerId,
|
|
4562
|
-
className: styles.container
|
|
4562
|
+
className: styles$1.container
|
|
4563
4563
|
}, /*#__PURE__*/React__default["default"].createElement(TimeInput, {
|
|
4564
4564
|
id: inputId,
|
|
4565
4565
|
dataTestId: dataTestId,
|
|
@@ -4602,6 +4602,116 @@ const TimePicker = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4602
4602
|
}));
|
|
4603
4603
|
});
|
|
4604
4604
|
|
|
4605
|
+
const {
|
|
4606
|
+
useContext: useToggleButtonGroupContext,
|
|
4607
|
+
Provider: ToggleButtonGroupContextProvider
|
|
4608
|
+
} = index.createContextUtilities(null);
|
|
4609
|
+
|
|
4610
|
+
var css_248z = "._3q8IV{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._IqcC7{background-color:rgba(50,54,58,.08)}._JSEbi{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._2K-u5{color:rgba(81,85,89,.4);cursor:not-allowed}._3xUZy{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._1MDFM{color:#085caf;border-color:#085caf}._1MDFM,._D6YvD{background:rgba(11,110,208,.11)}._D6YvD{color:#0854a1;border-color:#0854a1}._3agHc{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._3c9Wt{position:relative;display:inline-grid}._3c9Wt svg{fill:currentColor}._3c9Wt ._12VoI{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._3c9Wt ._12VoI+._uQfxW{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3c9Wt ._12VoI+._uQfxW._CeE7N{padding:5px;max-width:36px;min-width:36px}._3c9Wt ._12VoI+._uQfxW._NywqO{padding:0 16px}._3c9Wt ._12VoI+._uQfxW._3AEEw{padding:0 16px 0 12px}._3c9Wt ._12VoI:hover+._uQfxW{background-color:rgba(50,54,58,.08)}._3c9Wt ._12VoI:disabled+._uQfxW{color:rgba(81,85,89,.4);cursor:not-allowed}._3c9Wt ._12VoI:active+._uQfxW,._3c9Wt ._12VoI:focus:active+._uQfxW{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._3c9Wt ._12VoI:checked+._uQfxW{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._3c9Wt ._12VoI:checked:hover+._uQfxW{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._3c9Wt ._12VoI:checked:disabled+._uQfxW{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._3c9Wt ._12VoI:checked:active+._uQfxW,._3c9Wt ._12VoI:checked:focus:active+._uQfxW{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._3XpyM{display:inline-flex;position:relative}._3XpyM:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._3XpyM>*{flex-shrink:0;flex-grow:0}._3LV_L{border:none;margin:0;padding:0}._3LV_L legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}body.keyboard-user ._3c9Wt ._12VoI:active:focus+._uQfxW,body.keyboard-user ._3c9Wt ._12VoI:focus+._uQfxW{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4611
|
+
var styles = {"default":"_3q8IV","hovered":"_IqcC7","pressed":"_JSEbi","disabled":"_2K-u5","selectedDefault":"_3xUZy","selectedHovered":"_1MDFM","selectedPressed":"_D6YvD","selectedDisabled":"_3agHc","toggleContainer":"_3c9Wt","toggleInput":"_12VoI","toggleButton":"_uQfxW","iconOnly":"_CeE7N","text":"_NywqO","iconText":"_3AEEw","toggleButtonGroup":"_3XpyM","toggleButtonGroupFieldset":"_3LV_L"};
|
|
4612
|
+
var stylesheet="._3q8IV{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._IqcC7{background-color:rgba(50,54,58,.08)}._JSEbi{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._2K-u5{color:rgba(81,85,89,.4);cursor:not-allowed}._3xUZy{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._1MDFM{color:#085caf;border-color:#085caf}._1MDFM,._D6YvD{background:rgba(11,110,208,.11)}._D6YvD{color:#0854a1;border-color:#0854a1}._3agHc{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._3c9Wt{position:relative;display:inline-grid}._3c9Wt svg{fill:currentColor}._3c9Wt ._12VoI{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._3c9Wt ._12VoI+._uQfxW{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3c9Wt ._12VoI+._uQfxW._CeE7N{padding:5px;max-width:36px;min-width:36px}._3c9Wt ._12VoI+._uQfxW._NywqO{padding:0 16px}._3c9Wt ._12VoI+._uQfxW._3AEEw{padding:0 16px 0 12px}._3c9Wt ._12VoI:hover+._uQfxW{background-color:rgba(50,54,58,.08)}._3c9Wt ._12VoI:disabled+._uQfxW{color:rgba(81,85,89,.4);cursor:not-allowed}._3c9Wt ._12VoI:active+._uQfxW,._3c9Wt ._12VoI:focus:active+._uQfxW{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._3c9Wt ._12VoI:checked+._uQfxW{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._3c9Wt ._12VoI:checked:hover+._uQfxW{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._3c9Wt ._12VoI:checked:disabled+._uQfxW{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._3c9Wt ._12VoI:checked:active+._uQfxW,._3c9Wt ._12VoI:checked:focus:active+._uQfxW{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._3XpyM{display:inline-flex;position:relative}._3XpyM:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._3XpyM>*{flex-shrink:0;flex-grow:0}._3LV_L{border:none;margin:0;padding:0}._3LV_L legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}body.keyboard-user ._3c9Wt ._12VoI:active:focus+._uQfxW,body.keyboard-user ._3c9Wt ._12VoI:focus+._uQfxW{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4613
|
+
icons_index.styleInject(css_248z);
|
|
4614
|
+
|
|
4615
|
+
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
4616
|
+
let {
|
|
4617
|
+
children,
|
|
4618
|
+
value,
|
|
4619
|
+
onChange,
|
|
4620
|
+
name,
|
|
4621
|
+
label,
|
|
4622
|
+
isDisabled,
|
|
4623
|
+
'aria-label': ariaLabel,
|
|
4624
|
+
'aria-labelledby': ariaLabelledby
|
|
4625
|
+
} = _ref;
|
|
4626
|
+
const backupName = index.useId();
|
|
4627
|
+
return /*#__PURE__*/React__default["default"].createElement(ToggleButtonGroupContextProvider, {
|
|
4628
|
+
value: {
|
|
4629
|
+
value,
|
|
4630
|
+
onChange,
|
|
4631
|
+
name: name || backupName,
|
|
4632
|
+
isDisabled
|
|
4633
|
+
}
|
|
4634
|
+
}, /*#__PURE__*/React__default["default"].createElement("fieldset", {
|
|
4635
|
+
className: styles.toggleButtonGroupFieldset,
|
|
4636
|
+
disabled: isDisabled // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
|
|
4637
|
+
,
|
|
4638
|
+
role: "radiogroup",
|
|
4639
|
+
"aria-label": ariaLabel,
|
|
4640
|
+
"aria-labelledby": ariaLabelledby,
|
|
4641
|
+
ref: ref
|
|
4642
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("legend", null, label), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4643
|
+
className: styles.toggleButtonGroup
|
|
4644
|
+
}, children)));
|
|
4645
|
+
});
|
|
4646
|
+
|
|
4647
|
+
const ToggleButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4648
|
+
let {
|
|
4649
|
+
children,
|
|
4650
|
+
isActivated,
|
|
4651
|
+
onChange,
|
|
4652
|
+
value,
|
|
4653
|
+
isDisabled,
|
|
4654
|
+
kind = 'icon-text',
|
|
4655
|
+
'aria-label': ariaLabel,
|
|
4656
|
+
'aria-labelledby': ariaLabelledby,
|
|
4657
|
+
name: inputName,
|
|
4658
|
+
dataTestId
|
|
4659
|
+
} = _ref;
|
|
4660
|
+
const id = index.useId();
|
|
4661
|
+
const groupContext = useToggleButtonGroupContext();
|
|
4662
|
+
const inGroup = groupContext !== null;
|
|
4663
|
+
let checked = isActivated;
|
|
4664
|
+
let disabled = isDisabled;
|
|
4665
|
+
let name = inputName;
|
|
4666
|
+
|
|
4667
|
+
let handleChange = () => {
|
|
4668
|
+
if (onChange) {
|
|
4669
|
+
onChange(checked);
|
|
4670
|
+
}
|
|
4671
|
+
};
|
|
4672
|
+
|
|
4673
|
+
if (inGroup) {
|
|
4674
|
+
checked = value === groupContext.value;
|
|
4675
|
+
disabled = groupContext.isDisabled || isDisabled;
|
|
4676
|
+
name = groupContext.name;
|
|
4677
|
+
|
|
4678
|
+
handleChange = () => {
|
|
4679
|
+
if (onChange) {
|
|
4680
|
+
onChange(checked);
|
|
4681
|
+
}
|
|
4682
|
+
|
|
4683
|
+
groupContext.onChange(value);
|
|
4684
|
+
};
|
|
4685
|
+
}
|
|
4686
|
+
|
|
4687
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4688
|
+
ref: ref,
|
|
4689
|
+
className: styles.toggleContainer
|
|
4690
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4691
|
+
type: inGroup ? 'radio' : 'checkbox',
|
|
4692
|
+
name: name,
|
|
4693
|
+
checked: checked,
|
|
4694
|
+
onChange: handleChange,
|
|
4695
|
+
id: id,
|
|
4696
|
+
disabled: disabled,
|
|
4697
|
+
value: value,
|
|
4698
|
+
className: styles.toggleInput,
|
|
4699
|
+
"data-testid": index.getSubDataTestId(dataTestId, 'input'),
|
|
4700
|
+
role: inGroup ? undefined : 'button',
|
|
4701
|
+
"aria-pressed": inGroup ? undefined : checked,
|
|
4702
|
+
"aria-label": ariaLabel,
|
|
4703
|
+
"aria-labelledby": ariaLabelledby
|
|
4704
|
+
}), /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4705
|
+
htmlFor: id,
|
|
4706
|
+
className: classNames__default["default"]([index.buttonStyles.btn, styles.toggleButton], {
|
|
4707
|
+
[styles.iconOnly]: kind === 'icon',
|
|
4708
|
+
[styles.textOnly]: kind === 'text',
|
|
4709
|
+
[styles.iconText]: kind === 'icon-text'
|
|
4710
|
+
}),
|
|
4711
|
+
"data-testid": index.getSubDataTestId(dataTestId, 'label')
|
|
4712
|
+
}, children));
|
|
4713
|
+
});
|
|
4714
|
+
|
|
4605
4715
|
/* eslint-disable camelcase */
|
|
4606
4716
|
|
|
4607
4717
|
exports.Input = index.Input$1;
|
|
@@ -4623,3 +4733,5 @@ exports.SplitButton = SplitButton;
|
|
|
4623
4733
|
exports.SplitButtonOption = SplitButtonOption;
|
|
4624
4734
|
exports.SubMenu = SubMenu;
|
|
4625
4735
|
exports.TimePicker = TimePicker;
|
|
4736
|
+
exports.ToggleButton = ToggleButton;
|
|
4737
|
+
exports.ToggleButtonGroup = ToggleButtonGroup;
|