@qualtrics/ui-react 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/__shared/cjs/{index-0ef0b03a.js → index-30148ada.js} +3 -3
- package/dist/__shared/cjs/{index-74ef768b.js → index-bb7befc3.js} +63 -50
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button2.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/index.js +1 -0
- package/dist/hooks/useOverlay/useOverlay.js +70 -0
- package/dist/hooks/useOverlay/useOverlay2.js +8 -0
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +88 -101
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer.js +138 -0
- package/dist/next/Drawer/Drawer2.js +8 -0
- package/dist/next/Drawer/index.js +1 -0
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.d.ts +19 -0
- package/dist/next/index.es.js +2 -0
- package/dist/next/index.js +335 -145
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +11 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2Ncei{overflow:auto;position:relative;max-width:100%;max-height:100%}._1cQOk,._2Ncei{background-color:#fff}._1cQOk{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3KjJ6{margin-bottom:4px}._3YOx6{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1OcSx{display:flex}._1OcSx:focus{outline:none}body.keyboard-user ._1OcSx:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._1OcSx:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._2Rozy{padding-right:3px}._3EHvj{display:flex}._3EHvj._s3590 ._1soIE,._3EHvj._s3590 ._-N4DU{cursor:pointer}._3EHvj._gUh68 ._1soIE,._3EHvj._gUh68 ._-N4DU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7,._3EHvj._gUh68 ._-N4DU._1UaW7{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._1soIE._1UaW7 ._-N4DU,._3EHvj._gUh68 ._1soIE._1UaW7 ._Q4R61,._3EHvj._gUh68 ._-N4DU._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._-N4DU._1UaW7 ._-N4DU,._3EHvj._gUh68 ._-N4DU._1UaW7 ._Q4R61{background-color:rgba(11,110,208,.08)}._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f9f9f9}._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f3f3f3}._3EHvj:focus{outline:none}body.keyboard-user ._3EHvj:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3EHvj:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:last-of-type:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._3EHvj:last-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:last-of-type ._Q4R61:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3EHvj:first-of-type:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:first-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:first-of-type ._Q4R61:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3waN3{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._3waN3._3KBnI{flex-grow:1}._3waN3._2D2iK{cursor:pointer}._3waN3._2D2iK:hover:not(._3feBE){background-color:#f9f9f9;border-bottom-color:#6a6d70}._3waN3._2D2iK:active:not(._3feBE){background-color:#f3f3f3}._3waN3._W3H3V:not(._3feBE){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._3waN3._3feBE{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._3waN3 ._11tWJ{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._3waN3 ._11tWJ._EvGit{left:-1px}._3waN3 ._11tWJ._2YUgn{right:0}._3waN3 ._6uIOl{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._3waN3 ._6uIOl._EvGit{left:-2px}._3waN3 ._6uIOl._2YUgn{right:-1px}._3waN3:first-of-type ._EvGit._11tWJ{left:0;width:2px;border-left:1px solid #fff}._3waN3:first-of-type ._EvGit._6uIOl{left:0}._3waN3:last-of-type ._2YUgn._11tWJ{right:0;width:2px;border-right:1px solid #fff}._3waN3:last-of-type ._2YUgn._6uIOl{right:0}._3waN3 ._CX4V_{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._3waN3 ._CX4V_ ._3hO27{position:absolute;width:2px;right:2px;top:0;bottom:0}._3waN3 ._CX4V_ ._3hO27._1gr-e{background-color:#0a6ed1}._3waN3 ._CX4V_:hover ._3hO27:not(._1gr-e){background-color:#d9d9d9}._3waN3 ._JIVw9{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._3waN3 ._JIVw9._3yGZi{flex-direction:row-reverse;justify-content:flex-start}._3waN3 ._JIVw9._3yGZi ._10kk3{margin:1px 7px 1px 1px}._3waN3 ._JIVw9 ._1grAv{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._3waN3 ._JIVw9 ._10kk3{margin:1px 1px 1px 7px;flex-shrink:0}._3waN3 ._vAUNY{margin-left:6px;margin-right:4px;flex-shrink:0}._3waN3 ._2A4ZW{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._3waN3:focus{outline:none}body.keyboard-user ._3waN3._3hCtD:after,body.keyboard-user ._3waN3:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1Oebn{margin-right:6px}._1UaW7{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1UaW7[focus-within]{z-index:30}._1UaW7:focus-within{z-index:30}._Q4R61{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._Q4R61 ._1sg8r{width:100%;padding:12px 12px 11px;overflow:hidden}._Q4R61._3feBE{background-color:#efefef;border-bottom-color:#dfdfe1}._Q4R61._3KBnI{flex-grow:1}._Q4R61:focus{outline:none}body.keyboard-user ._Q4R61._3hCtD:after,body.keyboard-user ._Q4R61:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._-N4DU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._-N4DU._SFCdv{border-bottom-color:#d9d9d9;background-color:#fff}._3Q2T5{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._3Q2T5._SFCdv{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._3Q2T5:focus input~span,._3Q2T5:hover input~span{border-color:#0b6ed0}._3Q2T5 ._1t4Ia{position:relative;display:inline-flex}._3Q2T5 ._1t4Ia ._2UyTY{margin:0!important}._3Q2T5 ._1t4Ia ._3Mq3x{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._14Vw4{justify-content:flex-start}._3kA0P{justify-content:center;text-align:center}._3yGZi{justify-content:flex-end;text-align:right}._1VQCv{display:none}._3NiHA{opacity:0;height:0;width:0;overflow:hidden}._3e7k1,._3NiHA{position:absolute}._3e7k1{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._1aVya{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_2Ncei","advancedTablePaginationContainer":"_1cQOk","advancedTablePagination":"_3KjJ6","advancedTableColumnHeadersRowGroup":"_3YOx6","advancedTableColumnHeaders":"_1OcSx","advancedTableRowChild":"_1soIE","pinnedContainer":"_1UaW7","advancedTableRowGroup":"_2Rozy","advancedTableRow":"_3EHvj","hasRowAction":"_s3590","advancedTableExpandRowSpacer":"_-N4DU","isSelected":"_gUh68","advancedTableCheckbox":"_3Q2T5","advancedTableCell":"_Q4R61","isCheckboxHovered":"_pgUX9","showFocusRing":"_3hCtD","advancedTableColumnHeader":"_3waN3","fillRemainingSpace":"_3KBnI","isSortable":"_2D2iK","isDragging":"_3feBE","isSorted":"_W3H3V","dropTargetLine":"_11tWJ","dropTargetLeft":"_EvGit","dropTargetRight":"_2YUgn","dropTargetMarker":"_6uIOl","resizeHandle":"_CX4V_","resizeLine":"_3hO27","isResizing":"_1gr-e","advancedTableColumnHeaderLabel":"_JIVw9","rightAligned":"_3yGZi","sortIcon":"_10kk3","advancedTableColumnHeaderLabelText":"_1grAv","advancedTableColumnHeaderMenu":"_vAUNY","advancedTableColumnHeaderMenuHiddenAnchor":"_2A4ZW","advancedTableColumnHeaderMenuItemIcon":"_1Oebn","advancedTableCellContainer":"_1sg8r","header":"_SFCdv","checkboxContainer":"_1t4Ia","checkbox":"_2UyTY","mixed":"_3Mq3x","leftAligned":"_14Vw4","centerAligned":"_3kA0P","hiddenDescription":"_1VQCv","hiddenLiveRegion":"_3NiHA","dragPreview":"_3e7k1","rowActionMenuPane":"_1aVya"};
|
|
5
|
+
var stylesheet="._2Ncei{overflow:auto;position:relative;max-width:100%;max-height:100%}._1cQOk,._2Ncei{background-color:#fff}._1cQOk{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3KjJ6{margin-bottom:4px}._3YOx6{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1OcSx{display:flex}._1OcSx:focus{outline:none}body.keyboard-user ._1OcSx:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._1OcSx:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1OcSx:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._2Rozy{padding-right:3px}._3EHvj{display:flex}._3EHvj._s3590 ._1soIE,._3EHvj._s3590 ._-N4DU{cursor:pointer}._3EHvj._gUh68 ._1soIE,._3EHvj._gUh68 ._-N4DU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7,._3EHvj._gUh68 ._-N4DU._1UaW7{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3EHvj._gUh68 ._1soIE._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._1soIE._1UaW7 ._-N4DU,._3EHvj._gUh68 ._1soIE._1UaW7 ._Q4R61,._3EHvj._gUh68 ._-N4DU._1UaW7 ._3Q2T5,._3EHvj._gUh68 ._-N4DU._1UaW7 ._-N4DU,._3EHvj._gUh68 ._-N4DU._1UaW7 ._Q4R61{background-color:rgba(11,110,208,.08)}._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:hover:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f9f9f9}._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._1soIE,._3EHvj._s3590:active:not(._gUh68):not(._pgUX9) ._-N4DU{background-color:#f3f3f3}._3EHvj:focus{outline:none}body.keyboard-user ._3EHvj:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3EHvj:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:last-of-type:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:last-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:1px}._3EHvj:last-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:last-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:last-of-type ._Q4R61:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3EHvj:first-of-type:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3EHvj:first-of-type:focus ._1soIE._1UaW7:after{right:-3px;bottom:0}._3EHvj:first-of-type ._Q4R61:focus{outline:none}body.keyboard-user ._3EHvj:first-of-type ._Q4R61._3hCtD:after,body.keyboard-user ._3EHvj:first-of-type ._Q4R61:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3waN3{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._3waN3._3KBnI{flex-grow:1}._3waN3._2D2iK{cursor:pointer}._3waN3._2D2iK:hover:not(._3feBE){background-color:#f9f9f9;border-bottom-color:#6a6d70}._3waN3._2D2iK:active:not(._3feBE){background-color:#f3f3f3}._3waN3._W3H3V:not(._3feBE){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._3waN3._3feBE{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._3waN3 ._11tWJ{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._3waN3 ._11tWJ._EvGit{left:-1px}._3waN3 ._11tWJ._2YUgn{right:0}._3waN3 ._6uIOl{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._3waN3 ._6uIOl._EvGit{left:-2px}._3waN3 ._6uIOl._2YUgn{right:-1px}._3waN3:first-of-type ._EvGit._11tWJ{left:0;width:2px;border-left:1px solid #fff}._3waN3:first-of-type ._EvGit._6uIOl{left:0}._3waN3:last-of-type ._2YUgn._11tWJ{right:0;width:2px;border-right:1px solid #fff}._3waN3:last-of-type ._2YUgn._6uIOl{right:0}._3waN3 ._CX4V_{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._3waN3 ._CX4V_ ._3hO27{position:absolute;width:2px;right:2px;top:0;bottom:0}._3waN3 ._CX4V_ ._3hO27._1gr-e{background-color:#0a6ed1}._3waN3 ._CX4V_:hover ._3hO27:not(._1gr-e){background-color:#d9d9d9}._3waN3 ._JIVw9{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._3waN3 ._JIVw9._3yGZi{flex-direction:row-reverse;justify-content:flex-start}._3waN3 ._JIVw9._3yGZi ._10kk3{margin:1px 7px 1px 1px}._3waN3 ._JIVw9 ._1grAv{text-overflow:ellipsis;overflow:hidden;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._3waN3 ._JIVw9 ._10kk3{margin:1px 1px 1px 7px;flex-shrink:0}._3waN3 ._vAUNY{margin-left:6px;margin-right:4px;flex-shrink:0}._3waN3 ._2A4ZW{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._3waN3:focus{outline:none}body.keyboard-user ._3waN3._3hCtD:after,body.keyboard-user ._3waN3:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1Oebn{margin-right:6px}._1UaW7{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1UaW7[focus-within]{z-index:30}._1UaW7:focus-within{z-index:30}._Q4R61{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._Q4R61 ._1sg8r{width:100%;padding:12px 12px 11px;overflow:hidden}._Q4R61._3feBE{background-color:#efefef;border-bottom-color:#dfdfe1}._Q4R61._3KBnI{flex-grow:1}._Q4R61:focus{outline:none}body.keyboard-user ._Q4R61._3hCtD:after,body.keyboard-user ._Q4R61:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._-N4DU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._-N4DU._SFCdv{border-bottom-color:#d9d9d9;background-color:#fff}._3Q2T5{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._3Q2T5._SFCdv{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._3Q2T5:focus input~span,._3Q2T5:hover input~span{border-color:#0b6ed0}._3Q2T5 ._1t4Ia{position:relative;display:inline-flex}._3Q2T5 ._1t4Ia ._2UyTY{margin:0!important}._3Q2T5 ._1t4Ia ._3Mq3x{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._14Vw4{justify-content:flex-start}._3kA0P{justify-content:center;text-align:center}._3yGZi{justify-content:flex-end;text-align:right}._1VQCv{display:none}._3NiHA{opacity:0;height:0;width:0;overflow:hidden}._3e7k1,._3NiHA{position:absolute}._3e7k1{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._1aVya{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Bz23q{display:inline-block;width:36px;transition:width .25s ease-out}._haKti{width:100%}._3JCr->input{padding-right:0!important}._Y_-Yl>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_Bz23q","searchInput":"_haKti","searchInputCollapsed":"_3JCr-","iconButton":"_Y_-Yl"};
|
|
5
|
+
var stylesheet="._Bz23q{display:inline-block;width:36px;transition:width .25s ease-out}._haKti{width:100%}._3JCr->input{padding-right:0!important}._Y_-Yl>svg{fill:#515559}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._36tbr :after{background-color:#515559!important}._2U9Ga>input:focus{box-shadow:none!important;border:1px solid #898989!important}._taZpG{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._taZpG ._p43Ug ._1hMOa{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._taZpG ._p43Ug:first-child ._1CBQ8{display:none}._taZpG ._r26E6{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._taZpG ._r26E6:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:hover._3uFTu{background-color:#e4effa}._taZpG ._r26E6._3uFTu{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:active:not(._3uFTu){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_36tbr","ignoreFocusStyle":"_2U9Ga","flyout":"_taZpG","group":"_p43Ug","header":"_1hMOa","divider":"_1CBQ8","option":"_r26E6","selected":"_3uFTu"};
|
|
5
|
+
var stylesheet="._36tbr :after{background-color:#515559!important}._2U9Ga>input:focus{box-shadow:none!important;border:1px solid #898989!important}._taZpG{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._taZpG ._p43Ug ._1hMOa{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._taZpG ._p43Ug:first-child ._1CBQ8{display:none}._taZpG ._r26E6{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._taZpG ._r26E6:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:hover._3uFTu{background-color:#e4effa}._taZpG ._r26E6._3uFTu{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._taZpG ._r26E6:active:not(._3uFTu){background-color:#e8e9e9}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import React__default, { useState, useEffect, useRef } from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import IconButton from '../../components/IconButton/IconButton.js';
|
|
5
|
+
import '../../components/UIProvider/index.js';
|
|
6
|
+
import '../../icons/index.es.js';
|
|
7
|
+
import '../../hooks/useId/index.js';
|
|
8
|
+
import '../../hooks/useControllableState/index.js';
|
|
9
|
+
import '../../hooks/useOverlay/index.js';
|
|
10
|
+
import '../../hooks/useDidUpdate/index.js';
|
|
11
|
+
import '../../utils/getSubDataTestId/index.js';
|
|
12
|
+
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
13
|
+
import styles from './Drawer2.js';
|
|
14
|
+
import useId from '../../hooks/useId/useId.js';
|
|
15
|
+
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
16
|
+
import useOverlay from '../../hooks/useOverlay/useOverlay.js';
|
|
17
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
18
|
+
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
19
|
+
import { PortalTargetProvider } from '../../components/UIProvider/PortalTargetContext.js';
|
|
20
|
+
import CloseIcon from '../../icons/components/CloseIcon.js';
|
|
21
|
+
|
|
22
|
+
const Drawer = _ref => {
|
|
23
|
+
var _containerRef$current;
|
|
24
|
+
|
|
25
|
+
let {
|
|
26
|
+
id,
|
|
27
|
+
isOpen: externalIsOpen,
|
|
28
|
+
onIsOpenChange,
|
|
29
|
+
title,
|
|
30
|
+
width = '292px',
|
|
31
|
+
zIndex = 1000,
|
|
32
|
+
elementRefToFocusOnClose,
|
|
33
|
+
containerRef,
|
|
34
|
+
'aria-label': ariaLabel,
|
|
35
|
+
'aria-labelledby': ariaLabelledby,
|
|
36
|
+
'aria-describedby': ariaDescribedby,
|
|
37
|
+
'data-testid': dataTestId,
|
|
38
|
+
children
|
|
39
|
+
} = _ref;
|
|
40
|
+
// waits to createPortal until after containerRef is in DOM
|
|
41
|
+
const [domReady, setDomReady] = useState(false);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
setDomReady(true);
|
|
44
|
+
}, [setDomReady]);
|
|
45
|
+
const [elementUsedToOpenModal, setElementUsedToOpenModal] = useState();
|
|
46
|
+
const drawerRef = useRef(null);
|
|
47
|
+
const drawerId = useId(id);
|
|
48
|
+
const [isOpen, setIsOpen] = useControllableState(externalIsOpen, onIsOpenChange, externalIsOpen);
|
|
49
|
+
const [isClosing, setIsClosing] = useState(false);
|
|
50
|
+
const [isHidden, setIsHidden] = useState(!isOpen);
|
|
51
|
+
const {
|
|
52
|
+
translate
|
|
53
|
+
} = useTranslation();
|
|
54
|
+
const closeButtonAriaLabel = translate('close');
|
|
55
|
+
const closeButtonRef = useRef(null);
|
|
56
|
+
|
|
57
|
+
const close = () => {
|
|
58
|
+
setIsOpen(false);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const handleKeyDown = e => {
|
|
62
|
+
if (e.key === 'Escape') close();
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
useOverlay({
|
|
66
|
+
containerRef,
|
|
67
|
+
isVisible: isOpen,
|
|
68
|
+
onClick: close,
|
|
69
|
+
ignoreIds: [drawerId],
|
|
70
|
+
zIndex: Number(zIndex) - 1,
|
|
71
|
+
dataTestId: getSubDataTestId(dataTestId, 'overlay')
|
|
72
|
+
});
|
|
73
|
+
useDidUpdate(() => {
|
|
74
|
+
if (isOpen) {
|
|
75
|
+
setIsClosing(false);
|
|
76
|
+
setIsHidden(false);
|
|
77
|
+
setElementUsedToOpenModal(document.activeElement);
|
|
78
|
+
} else {
|
|
79
|
+
var _elementRefToFocusOnC;
|
|
80
|
+
|
|
81
|
+
setIsClosing(true);
|
|
82
|
+
if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 ? void 0 : (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 ? void 0 : _elementRefToFocusOnC.focus();else elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 ? void 0 : elementUsedToOpenModal.focus();
|
|
83
|
+
}
|
|
84
|
+
}, [elementRefToFocusOnClose, isOpen]);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (isOpen && !isHidden) {
|
|
87
|
+
var _closeButtonRef$curre;
|
|
88
|
+
|
|
89
|
+
(_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0 ? void 0 : _closeButtonRef$curre.focus();
|
|
90
|
+
}
|
|
91
|
+
}, [isOpen, isHidden]);
|
|
92
|
+
|
|
93
|
+
const handleTransitionEnd = () => {
|
|
94
|
+
if (!isOpen) {
|
|
95
|
+
setIsClosing(false);
|
|
96
|
+
setIsHidden(true);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
return domReady ? /*#__PURE__*/createPortal( /*#__PURE__*/React__default.createElement("aside", {
|
|
103
|
+
id: drawerId,
|
|
104
|
+
className: classNames(styles.drawer, {
|
|
105
|
+
[styles.hidden]: isHidden,
|
|
106
|
+
[styles.closing]: isClosing
|
|
107
|
+
}),
|
|
108
|
+
style: {
|
|
109
|
+
width,
|
|
110
|
+
left: "".concat(isHidden || isClosing ? "-".concat(width) : '0'),
|
|
111
|
+
zIndex
|
|
112
|
+
},
|
|
113
|
+
onKeyDown: handleKeyDown,
|
|
114
|
+
onTransitionEnd: handleTransitionEnd,
|
|
115
|
+
"data-testid": dataTestId,
|
|
116
|
+
"aria-label": ariaLabel,
|
|
117
|
+
"aria-labelledby": ariaLabelledby,
|
|
118
|
+
"aria-describedby": ariaDescribedby,
|
|
119
|
+
ref: drawerRef
|
|
120
|
+
}, /*#__PURE__*/React__default.createElement(PortalTargetProvider, {
|
|
121
|
+
target: drawerRef.current
|
|
122
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
123
|
+
className: styles.header
|
|
124
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
125
|
+
className: styles.title,
|
|
126
|
+
"data-testid": getSubDataTestId(dataTestId, 'title')
|
|
127
|
+
}, title), /*#__PURE__*/React__default.createElement(IconButton, {
|
|
128
|
+
className: styles.closeButton,
|
|
129
|
+
onClick: close,
|
|
130
|
+
ref: closeButtonRef,
|
|
131
|
+
"data-testid": getSubDataTestId(dataTestId, 'close-button'),
|
|
132
|
+
"aria-label": closeButtonAriaLabel
|
|
133
|
+
}, /*#__PURE__*/React__default.createElement(CloseIcon, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
134
|
+
"data-testid": getSubDataTestId(dataTestId, 'body')
|
|
135
|
+
}, children))), (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body) : null;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export { Drawer as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "._1j90C{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._2XSDH{visibility:hidden}._3GujK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._1NhjW{padding-top:8px}._3V9yE{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_1j90C","hidden":"_2XSDH","header":"_3GujK","title":"_1NhjW","closeButton":"_3V9yE"};
|
|
5
|
+
var stylesheet="._1j90C{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._2XSDH{visibility:hidden}._3GujK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._1NhjW{padding-top:8px}._3V9yE{margin-left:12px}";
|
|
6
|
+
styleInject(css_248z);
|
|
7
|
+
|
|
8
|
+
export { styles as default, stylesheet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Drawer } from './Drawer.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._54bkl{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._54bkl:hover:not(._2YrMN){background-color:rgba(50,54,58,.08)}._54bkl:hover:not(._2YrMN)._OGbLK{border-color:#085caf;background-color:rgba(11,110,208,.04)}._54bkl:hover:not(._2YrMN)._OGbLK ._yatx0{color:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._3btVU{fill:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._2csIZ{fill:#085caf}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#085caf}._54bkl:active:not(._2YrMN){background-color:#e8e9e9}._54bkl:active:not(._2YrMN)._OGbLK{background-color:rgba(11,110,208,.11);border-color:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._2csIZ{fill:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#0854a1}._54bkl._2YrMN{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._54bkl._OGbLK{border-color:#0b6ed0}._3btVU{fill:#515559;margin-right:4px}._yatx0{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._yatx0+._VBT4p{margin-left:6px}._yatx0._2YrMN{color:#74777a}._VBT4p{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}.__RG3j{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2csIZ{fill:#515559}._2csIZ._2YrMN,._2csIZ._2YrMN._OGbLK{fill:rgba(116,119,122,.4)}._2csIZ._OGbLK{fill:#0b6ed0}._2csIZ._3lQew{transform:rotate(-180deg)}body.keyboard-user ._54bkl:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_54bkl","disabled":"_2YrMN","selected":"_OGbLK","label":"_yatx0","lockIcon":"_3btVU","chevronIcon":"_2csIZ","selectedFiltersContainer":"_VBT4p","selectedFilters":"__RG3j","open":"_3lQew"};
|
|
5
|
+
var stylesheet="._54bkl{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._54bkl:hover:not(._2YrMN){background-color:rgba(50,54,58,.08)}._54bkl:hover:not(._2YrMN)._OGbLK{border-color:#085caf;background-color:rgba(11,110,208,.04)}._54bkl:hover:not(._2YrMN)._OGbLK ._yatx0{color:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._3btVU{fill:#32363a}._54bkl:hover:not(._2YrMN)._OGbLK ._2csIZ{fill:#085caf}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:hover:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#085caf}._54bkl:active:not(._2YrMN){background-color:#e8e9e9}._54bkl:active:not(._2YrMN)._OGbLK{background-color:rgba(11,110,208,.11);border-color:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._2csIZ{fill:#0854a1}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p{background-color:rgba(11,110,208,.11)}._54bkl:active:not(._2YrMN)._OGbLK ._VBT4p .__RG3j{color:#0854a1}._54bkl._2YrMN{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._54bkl._OGbLK{border-color:#0b6ed0}._3btVU{fill:#515559;margin-right:4px}._yatx0{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._yatx0+._VBT4p{margin-left:6px}._yatx0._2YrMN{color:#74777a}._VBT4p{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}.__RG3j{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2csIZ{fill:#515559}._2csIZ._2YrMN,._2csIZ._2YrMN._OGbLK{fill:rgba(116,119,122,.4)}._2csIZ._OGbLK{fill:#0b6ed0}._2csIZ._3lQew{transform:rotate(-180deg)}body.keyboard-user ._54bkl:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2Dsdy{position:relative;display:inline-block;height:36px}._2u7bu{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._2u7bu:hover{cursor:pointer;background-color:#f5f5f5}._2u7bu:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._2u7bu:disabled,._2u7bu[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._2u7bu:disabled::-moz-placeholder,._2u7bu[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2u7bu:disabled::placeholder,._2u7bu[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2u7bu:invalid,._2u7bu[aria-invalid=true]{border-color:#b00}._2u7bu:invalid:focus,._2u7bu[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._2u7bu[type=number]{-moz-appearance:textfield}._2u7bu[type=number]::-webkit-inner-spin-button,._2u7bu[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._2u7bu::-moz-placeholder{color:#515559;opacity:1}._2u7bu::placeholder{color:#515559;opacity:1}._1NcJv{pointer-events:none;color:#515559;fill:#515559}._-uEgv{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._2HMrz{color:#515559;font-size:16px}._HofLi{left:0;margin-left:6px}._HofLi,._Ovac2{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Ovac2{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_2Dsdy","input":"_2u7bu","addOn":"_1NcJv","addOnVerticalCenter":"_-uEgv","addOnTextNode":"_2HMrz","leftAddOn":"_HofLi","rightAddOn":"_Ovac2"};
|
|
5
|
+
var stylesheet="._2Dsdy{position:relative;display:inline-block;height:36px}._2u7bu{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._2u7bu:hover{cursor:pointer;background-color:#f5f5f5}._2u7bu:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._2u7bu:disabled,._2u7bu[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._2u7bu:disabled::-moz-placeholder,._2u7bu[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2u7bu:disabled::placeholder,._2u7bu[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2u7bu:invalid,._2u7bu[aria-invalid=true]{border-color:#b00}._2u7bu:invalid:focus,._2u7bu[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._2u7bu[type=number]{-moz-appearance:textfield}._2u7bu[type=number]::-webkit-inner-spin-button,._2u7bu[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._2u7bu::-moz-placeholder{color:#515559;opacity:1}._2u7bu::placeholder{color:#515559;opacity:1}._1NcJv{pointer-events:none;color:#515559;fill:#515559}._-uEgv{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._2HMrz{color:#515559;font-size:16px}._HofLi{left:0;margin-left:6px}._HofLi,._Ovac2{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Ovac2{right:0;margin-right:6px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2TrXR{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._hnpt0{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;background-color:transparent;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559}._hnpt0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._hnpt0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._hnpt0+._oxFdd{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._hnpt0[data-state=open]+._oxFdd{transform:rotate(-180deg) translateY(50%)}._hnpt0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._hnpt0[aria-disabled=true]+._oxFdd{fill:#515559;opacity:.4}._1SBsU{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow:scroll}._3IYjR{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3IYjR[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._3IYjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3IYjR._3NliM{padding-right:32px}._3IYjR._3NliM ._oxFdd{position:absolute;top:8px;right:3px;fill:#515559}._dK2_4{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._GGTwI{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}";
|
|
4
|
+
var styles = {"buttonContainer":"_2TrXR","button":"_hnpt0","rightIcon":"_oxFdd","flyout":"_1SBsU","menuItem":"_3IYjR","subMenu":"_3NliM","searchBox":"_dK2_4","emptyOption":"_GGTwI"};
|
|
5
|
+
var stylesheet="._2TrXR{position:relative;display:inline-flex;height:36px;background-color:#fafafa;min-width:0;cursor:pointer;border-radius:4px}._hnpt0{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;background-color:transparent;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559}._hnpt0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._hnpt0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._hnpt0+._oxFdd{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._hnpt0[data-state=open]+._oxFdd{transform:rotate(-180deg) translateY(50%)}._hnpt0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._hnpt0[aria-disabled=true]+._oxFdd{fill:#515559;opacity:.4}._1SBsU{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow:scroll}._3IYjR{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3IYjR[data-highlighted]{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._3IYjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3IYjR._3NliM{padding-right:32px}._3IYjR._3NliM ._oxFdd{position:absolute;top:8px;right:3px;fill:#515559}._dK2_4{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._GGTwI{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6tLyR input{padding-left:76px!important}._3pFBN input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3pFBN input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3pFBN input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1J5W9{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1J5W9,._1J5W9._3pFBN:hover{background-color:transparent!important}._1J5W9:hover{background-color:rgba(50,54,58,.08)!important}._1J5W9:active{background-color:rgba(50,54,58,.11)!important}._1J5W9 svg{top:2px!important}._1pFPS{position:relative}._2j9Fg{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_6tLyR","disabled":"_3pFBN","dropdown":"_1J5W9","container":"_1pFPS","countryCode":"_2j9Fg"};
|
|
5
|
+
var stylesheet="._6tLyR input{padding-left:76px!important}._3pFBN input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3pFBN input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3pFBN input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1J5W9{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1J5W9,._1J5W9._3pFBN:hover{background-color:transparent!important}._1J5W9:hover{background-color:rgba(50,54,58,.08)!important}._1J5W9:active{background-color:rgba(50,54,58,.11)!important}._1J5W9 svg{top:2px!important}._1pFPS{position:relative}._2j9Fg{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._YktnG{display:flex}._gbOd2{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._gbOd2._3AQxg{background-color:#fff}._gbOd2._1OuIL,._gbOd2._3AQxg._2SRG9:not(._gbOd2._3AQxg._1aMJH),body.keyboard-user ._gbOd2._3AQxg._1txGG:not(._2e7Ah){background-color:#0b6ed0}._gbOd2._1OuIL._1aMJH._2SRG9,._gbOd2._1OuIL._2e7Ah._1aMJH,._gbOd2._1OuIL._2e7Ah._1txGG{opacity:.4}._3ICIq{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3ICIq:focus{z-index:1}._3GLZs{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._3GLZs svg{margin-left:1px}._3GLZs._3AQxg{background-color:#0b6ed0;border-color:transparent}._3GLZs._3AQxg svg{fill:#fff!important}._3GLZs._3AQxg:not(._tI76w):hover{background-color:#085caf!important}._3GLZs._3AQxg:not(._tI76w):active{background-color:#0854a1!important}._3GLZs._3AQxg._tI76w{opacity:.4}._3GLZs._3AQxg._tI76w svg{background-color:transparent}._3GLZs._1OuIL{border-color:#0b6ed0;background-color:#fff}._3GLZs._1OuIL svg{fill:#0b6ed0!important}._3GLZs._1OuIL:not(._tI76w):hover{background-color:#eef5fc!important}._3GLZs._1OuIL:not(._tI76w):active{background-color:#e1edf9!important}._3GLZs._1OuIL._tI76w{opacity:.4}._3GLZs._1OuIL._tI76w svg{background-color:transparent}._1cBQB{width:260px}";
|
|
4
|
+
var styles = {"container":"_YktnG","divider":"_gbOd2","primary":"_3AQxg","mainButtonFocus":"_1txGG","mainButtonDisabled":"_2e7Ah","dropdownButtonFocus":"_2SRG9","dropdownButtonDisabled":"_1aMJH","secondary":"_1OuIL","mainButton":"_3ICIq","dropdownButton":"_3GLZs","disabled":"_tI76w","dropdownOption":"_1cBQB"};
|
|
5
|
+
var stylesheet="._YktnG{display:flex}._gbOd2{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._gbOd2._3AQxg{background-color:#fff}._gbOd2._1OuIL,._gbOd2._3AQxg._2SRG9:not(._gbOd2._3AQxg._1aMJH),body.keyboard-user ._gbOd2._3AQxg._1txGG:not(._2e7Ah){background-color:#0b6ed0}._gbOd2._1OuIL._1aMJH._2SRG9,._gbOd2._1OuIL._2e7Ah._1aMJH,._gbOd2._1OuIL._2e7Ah._1txGG{opacity:.4}._3ICIq{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3ICIq:focus{z-index:1}._3GLZs{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._3GLZs svg{margin-left:1px}._3GLZs._3AQxg{background-color:#0b6ed0;border-color:transparent}._3GLZs._3AQxg svg{fill:#fff!important}._3GLZs._3AQxg:not(._tI76w):hover{background-color:#085caf!important}._3GLZs._3AQxg:not(._tI76w):active{background-color:#0854a1!important}._3GLZs._3AQxg._tI76w{opacity:.4}._3GLZs._3AQxg._tI76w svg{background-color:transparent}._3GLZs._1OuIL{border-color:#0b6ed0;background-color:#fff}._3GLZs._1OuIL svg{fill:#0b6ed0!important}._3GLZs._1OuIL:not(._tI76w):hover{background-color:#eef5fc!important}._3GLZs._1OuIL:not(._tI76w):active{background-color:#e1edf9!important}._3GLZs._1OuIL._tI76w{opacity:.4}._3GLZs._1OuIL._tI76w svg{background-color:transparent}._1cBQB{width:260px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type { InputHTMLAttributes } from 'react';
|
|
|
11
11
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
12
12
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
13
13
|
import { MouseEventHandler } from 'react';
|
|
14
|
+
import { MutableRefObject } from 'react';
|
|
14
15
|
import { default as React_2 } from 'react';
|
|
15
16
|
import { ReactNode } from 'react';
|
|
16
17
|
|
|
@@ -200,6 +201,24 @@ export declare interface ComboboxProps {
|
|
|
200
201
|
children: ReactNode;
|
|
201
202
|
}
|
|
202
203
|
|
|
204
|
+
export declare const Drawer: ({ id, isOpen: externalIsOpen, onIsOpenChange, title, width, zIndex, elementRefToFocusOnClose, containerRef, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "data-testid": dataTestId, children, }: DrawerProps) => React_2.ReactPortal | null;
|
|
205
|
+
|
|
206
|
+
export declare interface DrawerProps {
|
|
207
|
+
id?: string;
|
|
208
|
+
isOpen: boolean;
|
|
209
|
+
onIsOpenChange: (newIsOpen: boolean) => void;
|
|
210
|
+
title: ReactNode;
|
|
211
|
+
width?: CSSProperties['width'];
|
|
212
|
+
zIndex?: CSSProperties['zIndex'];
|
|
213
|
+
elementRefToFocusOnClose?: MutableRefObject<HTMLElement | null>;
|
|
214
|
+
containerRef?: MutableRefObject<HTMLElement | null>;
|
|
215
|
+
'aria-label'?: string;
|
|
216
|
+
'aria-labelledby'?: string;
|
|
217
|
+
'aria-describedby'?: string;
|
|
218
|
+
'data-testid'?: string;
|
|
219
|
+
children: ReactNode;
|
|
220
|
+
}
|
|
221
|
+
|
|
203
222
|
export declare const FilterAnchor: React_2.ForwardRefExoticComponent<FilterAnchorProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
204
223
|
|
|
205
224
|
export declare interface FilterAnchorProps extends Omit<AllHTMLAttributes<HTMLButtonElement>, 'type' | 'disabled' | 'aria-disabled'> {
|
package/dist/next/index.es.js
CHANGED
|
@@ -6,6 +6,7 @@ import './Combobox/index.js';
|
|
|
6
6
|
import './SplitButton/index.js';
|
|
7
7
|
import './FilterAnchor/index.js';
|
|
8
8
|
import './Menu/index.js';
|
|
9
|
+
import './Drawer/index.js';
|
|
9
10
|
export { AdvancedTable } from './AdvancedTable/AdvancedTable.js';
|
|
10
11
|
export { default as CollapsibleSearchInput } from './CollapsibleSearchInput/CollapsibleSearchInput.js';
|
|
11
12
|
export { default as Input } from './Input/Input.js';
|
|
@@ -23,5 +24,6 @@ export { MenuButton } from './Menu/MenuButton.js';
|
|
|
23
24
|
export { MenuPane } from './Menu/MenuPane.js';
|
|
24
25
|
export { MenuItem } from './Menu/MenuItem.js';
|
|
25
26
|
export { SubMenu } from './Menu/SubMenu.js';
|
|
27
|
+
export { default as Drawer } from './Drawer/Drawer.js';
|
|
26
28
|
|
|
27
29
|
/* eslint-disable camelcase */
|