@qualtrics/ui-react 2.20.0 → 2.21.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 -38
- package/dist/__shared/cjs/{index-579c4690.js → index-0ae99de2.js} +3 -3
- package/dist/__shared/cjs/{index-90d4069b.js → index-201e8786.js} +188 -260
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.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/Alpha.js +0 -7
- package/dist/components/ColorPicker/ColorPicker.js +5 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/Hue.js +0 -7
- package/dist/components/ColorPicker/Palette.js +6 -4
- package/dist/components/ColorPicker/Saturation.js +0 -9
- package/dist/components/Combobox/Combobox.js +8 -6
- 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/Dropdown.js +0 -5
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +2 -5
- package/dist/components/Dropdown/DropdownSearch.js +2 -5
- package/dist/components/FilePicker/FilePicker.js +0 -7
- 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/NewMenu/parts/ArrowNav/ArrowNav.js +9 -8
- 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/Tooltip.js +6 -4
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +0 -27
- package/dist/hooks/useEventListener/useEventListener.js +3 -0
- package/dist/hooks/useOverlay/useOverlay.js +5 -2
- 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.d.ts +3 -1
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +33 -45
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -2
- 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/Menu.js +6 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +10 -4
- package/dist/next/Menu/MenuPane.js +55 -37
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +54 -41
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +97 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.js +374 -284
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/index.js +0 -1
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +3 -3
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -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 AccordionStyles = {"accordion":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._AuD-T{width:100%;display:flex;flex-direction:column}._AuD-T._pwzXx{grid-gap:20px;gap:20px}._A6ldv{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._A6ldv ._wo6hb{margin-top:-3px}._bfpU4{flex:1}._XZVJe{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._6HKW- ._A6ldv{border-radius:4px}._6HKW- ._A6ldv:hover:not(._krXe9){background-color:rgba(50,54,58,.08)}._6HKW- ._A6ldv:active:not(._krXe9){background-color:rgba(50,54,58,.11)}._OUFeC ._A6ldv{font-weight:400;padding-left:12px;border-top:1px solid #eee}._OUFeC ._A6ldv:hover:not(._krXe9){background-color:rgba(50,54,58,.08)}._OUFeC ._A6ldv:active:not(._krXe9){background-color:rgba(50,54,58,.11)}._pwzXx ._75CV1{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._pwzXx ._75CV1._rYdJ7{box-shadow:none}._pwzXx ._75CV1._rYdJ7 ._A6ldv{border-radius:6px}._pwzXx ._A6ldv{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._pwzXx ._A6ldv ._bfpU4{padding-left:20px}._pwzXx ._A6ldv:hover:not(disabled){border:1px solid #c2c2c2}._pwzXx ._A6ldv:active:not(._krXe9){border:1px solid #898989}._pwzXx ._XZVJe{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._rYdJ7 ._XZVJe{display:none}._krXe9{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._A6ldv.focus-visible,._A6ldv:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._A6ldv.focus-visible:before,._A6ldv:focus-visible:before{z-index:1}._OUFeC ._A6ldv.focus-visible,._OUFeC ._A6ldv:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_AuD-T","block-variant":"_pwzXx","header":"_A6ldv","headerIcon":"_wo6hb","title":"_bfpU4","panel":"_XZVJe","default-variant":"_6HKW-","disabled":"_krXe9","outlined-variant":"_OUFeC","section":"_75CV1","closed":"_rYdJ7"};
|
|
5
|
+
var stylesheet="._AuD-T{width:100%;display:flex;flex-direction:column}._AuD-T._pwzXx{grid-gap:20px;gap:20px}._A6ldv{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._A6ldv ._wo6hb{margin-top:-3px}._bfpU4{flex:1}._XZVJe{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._6HKW- ._A6ldv{border-radius:4px}._6HKW- ._A6ldv:hover:not(._krXe9){background-color:rgba(50,54,58,.08)}._6HKW- ._A6ldv:active:not(._krXe9){background-color:rgba(50,54,58,.11)}._OUFeC ._A6ldv{font-weight:400;padding-left:12px;border-top:1px solid #eee}._OUFeC ._A6ldv:hover:not(._krXe9){background-color:rgba(50,54,58,.08)}._OUFeC ._A6ldv:active:not(._krXe9){background-color:rgba(50,54,58,.11)}._pwzXx ._75CV1{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._pwzXx ._75CV1._rYdJ7{box-shadow:none}._pwzXx ._75CV1._rYdJ7 ._A6ldv{border-radius:6px}._pwzXx ._A6ldv{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._pwzXx ._A6ldv ._bfpU4{padding-left:20px}._pwzXx ._A6ldv:hover:not(disabled){border:1px solid #c2c2c2}._pwzXx ._A6ldv:active:not(._krXe9){border:1px solid #898989}._pwzXx ._XZVJe{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._rYdJ7 ._XZVJe{display:none}._krXe9{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._A6ldv.focus-visible,._A6ldv:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._A6ldv.focus-visible:before,._A6ldv:focus-visible:before{z-index:1}._OUFeC ._A6ldv.focus-visible,._OUFeC ._A6ldv:focus-visible{border-color:transparent}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { AccordionStyles 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 buttonStyles = {"btn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wqJF7{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._wqJF7._ZQLpb{padding:0 8px;height:26px;min-height:26px}._wqJF7._BUZJd{display:block;width:100%}._wqJF7._gxDnv{cursor:not-allowed}._wqJF7:active:focus,._wqJF7:focus{outline:none}._wqJF7._BZntL{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._wqJF7._BZntL:hover:not(._gxDnv){background-color:#eee}._wqJF7._BZntL:active:not(._gxDnv){background-color:#e5e5e5}._wqJF7._BZntL._gxDnv{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._wqJF7._IDOC2{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._wqJF7._IDOC2:hover:not(._gxDnv){background-color:#085caf;border-color:#085caf}._wqJF7._IDOC2:active:not(._gxDnv){background-color:#0854a1;border-color:#0854a1}._wqJF7._IDOC2._gxDnv{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._wqJF7._39Z-n{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._wqJF7._39Z-n:hover:not(._gxDnv){background-color:#eef5fc}._wqJF7._39Z-n:active:not(._gxDnv){background-color:#e1edf9}._wqJF7._39Z-n._gxDnv{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._wqJF7._9oWiU{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._wqJF7._9oWiU:hover:not(._gxDnv){background-color:#eef5fc;border-color:#eef5fc}._wqJF7._9oWiU:active:not(._gxDnv){background-color:#e1edf9;border-color:#e1edf9}._wqJF7._9oWiU._gxDnv{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._wqJF7._JkpkT{color:#0b6ed0;fill:#0b6ed0;padding:0}._wqJF7._JkpkT:hover:not(._gxDnv){color:#085caf}._wqJF7._JkpkT:active:not(._gxDnv){color:#0854a1}._wqJF7._JkpkT._gxDnv{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._wqJF7._9p88V{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._wqJF7._9p88V:hover:not(._gxDnv){background-color:#ffecec}._wqJF7._9p88V:active:not(._gxDnv){background-color:#ffdbdb}._wqJF7._9p88V._gxDnv{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._wqJF7.focus-visible,._wqJF7:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_wqJF7","small":"_ZQLpb","full":"_BUZJd","disabled":"_gxDnv","default":"_BZntL","primary":"_IDOC2","secondary":"_39Z-n","tertiary":"_9oWiU","link":"_JkpkT","danger":"_9p88V"};
|
|
5
|
+
var stylesheet="._wqJF7{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._wqJF7._ZQLpb{padding:0 8px;height:26px;min-height:26px}._wqJF7._BUZJd{display:block;width:100%}._wqJF7._gxDnv{cursor:not-allowed}._wqJF7:active:focus,._wqJF7:focus{outline:none}._wqJF7._BZntL{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._wqJF7._BZntL:hover:not(._gxDnv){background-color:#eee}._wqJF7._BZntL:active:not(._gxDnv){background-color:#e5e5e5}._wqJF7._BZntL._gxDnv{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._wqJF7._IDOC2{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._wqJF7._IDOC2:hover:not(._gxDnv){background-color:#085caf;border-color:#085caf}._wqJF7._IDOC2:active:not(._gxDnv){background-color:#0854a1;border-color:#0854a1}._wqJF7._IDOC2._gxDnv{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._wqJF7._39Z-n{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._wqJF7._39Z-n:hover:not(._gxDnv){background-color:#eef5fc}._wqJF7._39Z-n:active:not(._gxDnv){background-color:#e1edf9}._wqJF7._39Z-n._gxDnv{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._wqJF7._9oWiU{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._wqJF7._9oWiU:hover:not(._gxDnv){background-color:#eef5fc;border-color:#eef5fc}._wqJF7._9oWiU:active:not(._gxDnv){background-color:#e1edf9;border-color:#e1edf9}._wqJF7._9oWiU._gxDnv{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._wqJF7._JkpkT{color:#0b6ed0;fill:#0b6ed0;padding:0}._wqJF7._JkpkT:hover:not(._gxDnv){color:#085caf}._wqJF7._JkpkT:active:not(._gxDnv){color:#0854a1}._wqJF7._JkpkT._gxDnv{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._wqJF7._9p88V{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._wqJF7._9p88V:hover:not(._gxDnv){background-color:#ffecec}._wqJF7._9p88V:active:not(._gxDnv){background-color:#ffdbdb}._wqJF7._9p88V._gxDnv{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._wqJF7.focus-visible,._wqJF7:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { buttonStyles 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 = {"buttonGroup":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._w-sCb{display:inline-flex;align-items:stretch}._w-sCb._DQAx-{width:100%}._w-sCb ._OcsdK{margin:0;min-width:0}._w-sCb ._OcsdK:focus{z-index:20}._w-sCb ._OcsdK:hover{z-index:10}._w-sCb ._OcsdK._QsUd4{border:none}._w-sCb ._OcsdK._DQAx-{display:inline-flex;width:auto;flex-grow:1}._w-sCb ._OcsdK:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._w-sCb ._OcsdK:first-child._QsUd4{border-right:1px solid #fff}._w-sCb ._OcsdK:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._w-sCb ._OcsdK:not(:last-child):not(:first-child)._QsUd4{border-left:1px solid #fff;border-right:1px solid #fff}._w-sCb ._OcsdK:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._w-sCb ._OcsdK:last-child._QsUd4{border-left:1px solid #fff}._w-sCb ._OcsdK:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
4
|
+
var styles = {"buttonGroup":"_w-sCb","full":"_DQAx-","buttonGroupElement":"_OcsdK","primary":"_QsUd4"};
|
|
5
|
+
var stylesheet="._w-sCb{display:inline-flex;align-items:stretch}._w-sCb._DQAx-{width:100%}._w-sCb ._OcsdK{margin:0;min-width:0}._w-sCb ._OcsdK:focus{z-index:20}._w-sCb ._OcsdK:hover{z-index:10}._w-sCb ._OcsdK._QsUd4{border:none}._w-sCb ._OcsdK._DQAx-{display:inline-flex;width:auto;flex-grow:1}._w-sCb ._OcsdK:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._w-sCb ._OcsdK:first-child._QsUd4{border-right:1px solid #fff}._w-sCb ._OcsdK:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._w-sCb ._OcsdK:not(:last-child):not(:first-child)._QsUd4{border-left:1px solid #fff;border-right:1px solid #fff}._w-sCb ._OcsdK:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._w-sCb ._OcsdK:last-child._QsUd4{border-left:1px solid #fff}._w-sCb ._OcsdK:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
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 = {"checkbox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6u7F-{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._6u7F-,._9XH3M{cursor:pointer;height:16px;width:16px}._9XH3M{position:absolute;opacity:0;z-index:10}._9XH3M:checked~._IkGPA>._VnIAn{fill-opacity:1}._9XH3M:checked:enabled~._IkGPA{border-color:transparent;background-color:#0b6ed0}._9XH3M:checked:enabled~._IkGPA>._VnIAn{fill:#fff}._9XH3M:checked:enabled:hover~._IkGPA{background-color:#085caf}._9XH3M:not(:checked):enabled:hover~._IkGPA{border-color:#0b6ed0}._9XH3M:disabled{cursor:not-allowed}._9XH3M:disabled~._IkGPA{opacity:.4}._ZC4v9{color:#32363a;display:flex;align-items:center;cursor:pointer}._4UX-A{cursor:auto;color:hsla(0,0%,53.7%,.4)}._j4shH{margin-right:12px;flex-shrink:0}._IkGPA{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._VnIAn{fill:#0b6ed0;fill-opacity:0}._9XH3M.focus-visible~._IkGPA,._9XH3M:focus-visible~._IkGPA{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_6u7F-","input":"_9XH3M","check":"_IkGPA","checkIcon":"_VnIAn","label":"_ZC4v9","labelDisabled":"_4UX-A","wrappedInput":"_j4shH"};
|
|
5
|
+
var stylesheet="._6u7F-{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._6u7F-,._9XH3M{cursor:pointer;height:16px;width:16px}._9XH3M{position:absolute;opacity:0;z-index:10}._9XH3M:checked~._IkGPA>._VnIAn{fill-opacity:1}._9XH3M:checked:enabled~._IkGPA{border-color:transparent;background-color:#0b6ed0}._9XH3M:checked:enabled~._IkGPA>._VnIAn{fill:#fff}._9XH3M:checked:enabled:hover~._IkGPA{background-color:#085caf}._9XH3M:not(:checked):enabled:hover~._IkGPA{border-color:#0b6ed0}._9XH3M:disabled{cursor:not-allowed}._9XH3M:disabled~._IkGPA{opacity:.4}._ZC4v9{color:#32363a;display:flex;align-items:center;cursor:pointer}._4UX-A{cursor:auto;color:hsla(0,0%,53.7%,.4)}._j4shH{margin-right:12px;flex-shrink:0}._IkGPA{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._VnIAn{fill:#0b6ed0;fill-opacity:0}._9XH3M.focus-visible~._IkGPA,._9XH3M:focus-visible~._IkGPA{border-color:#0b6ed0;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 styles = {"checkbox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._nurP6{display:inline-flex;position:relative}._nurP6,._VUSRk{cursor:pointer;height:16px;width:16px}._VUSRk{position:absolute;opacity:0;z-index:10}._VUSRk._Hedea~._UGVjo>._Qxa0e{fill-opacity:1}._VUSRk._Hedea~._UGVjo{border-color:transparent;background-color:#0b6ed0}._VUSRk._Hedea~._UGVjo>._Qxa0e{fill:#fff}._VUSRk._Hedea:hover~._UGVjo{background-color:#085caf}._VUSRk:not(._Hedea):hover~._UGVjo{border-color:#0b6ed0}._VUSRk._l1AtS{cursor:not-allowed}._VUSRk._l1AtS~._UGVjo{opacity:.4}._UGVjo{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._Qxa0e{fill:#0b6ed0;fill-opacity:0}";
|
|
4
|
+
var styles = {"checkbox":"_nurP6","input":"_VUSRk","checked":"_Hedea","check":"_UGVjo","checkIcon":"_Qxa0e","disabled":"_l1AtS"};
|
|
5
|
+
var stylesheet="._nurP6{display:inline-flex;position:relative}._nurP6,._VUSRk{cursor:pointer;height:16px;width:16px}._VUSRk{position:absolute;opacity:0;z-index:10}._VUSRk._Hedea~._UGVjo>._Qxa0e{fill-opacity:1}._VUSRk._Hedea~._UGVjo{border-color:transparent;background-color:#0b6ed0}._VUSRk._Hedea~._UGVjo>._Qxa0e{fill:#fff}._VUSRk._Hedea:hover~._UGVjo{background-color:#085caf}._VUSRk:not(._Hedea):hover~._UGVjo{border-color:#0b6ed0}._VUSRk._l1AtS{cursor:not-allowed}._VUSRk._l1AtS~._UGVjo{opacity:.4}._UGVjo{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._Qxa0e{fill:#0b6ed0;fill-opacity:0}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -8,7 +8,6 @@ import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
|
8
8
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
9
9
|
import getMousePosition from './utils/getMousePosition.js';
|
|
10
10
|
import useMouseDrag from '../../hooks/useMouseDrag/useMouseDrag.js';
|
|
11
|
-
import { setIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
12
11
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
13
12
|
|
|
14
13
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
@@ -41,33 +40,27 @@ function Alpha(_ref) {
|
|
|
41
40
|
case 'ArrowDown':
|
|
42
41
|
case 'ArrowLeft':
|
|
43
42
|
e.preventDefault(); // prevent page scroll
|
|
44
|
-
setIsKeyboardUser(true);
|
|
45
43
|
onAlphaChange(Math.min((color.alpha ?? MAX_ALPHA) + 1, MAX_ALPHA));
|
|
46
44
|
break;
|
|
47
45
|
case 'ArrowUp':
|
|
48
46
|
case 'ArrowRight':
|
|
49
47
|
e.preventDefault(); // prevent page scroll
|
|
50
|
-
setIsKeyboardUser(true);
|
|
51
48
|
onAlphaChange(Math.max((color.alpha ?? MAX_ALPHA) - 1, MIN_ALPHA));
|
|
52
49
|
break;
|
|
53
50
|
case 'End':
|
|
54
51
|
e.preventDefault(); // prevent page scroll
|
|
55
|
-
setIsKeyboardUser(true);
|
|
56
52
|
onAlphaChange(MIN_ALPHA);
|
|
57
53
|
break;
|
|
58
54
|
case 'Home':
|
|
59
55
|
e.preventDefault(); // prevent page scroll
|
|
60
|
-
setIsKeyboardUser(true);
|
|
61
56
|
onAlphaChange(MAX_ALPHA);
|
|
62
57
|
break;
|
|
63
58
|
case 'PageDown':
|
|
64
59
|
e.preventDefault(); // prevent page scroll
|
|
65
|
-
setIsKeyboardUser(true);
|
|
66
60
|
onAlphaChange(Math.min((color.alpha ?? MAX_ALPHA) + 10, MAX_ALPHA));
|
|
67
61
|
break;
|
|
68
62
|
case 'PageUp':
|
|
69
63
|
e.preventDefault(); // prevent page scroll
|
|
70
|
-
setIsKeyboardUser(true);
|
|
71
64
|
onAlphaChange(Math.max((color.alpha ?? MAX_ALPHA) - 10, MIN_ALPHA));
|
|
72
65
|
break;
|
|
73
66
|
default:
|
|
@@ -33,6 +33,8 @@ function ColorPicker(_ref) {
|
|
|
33
33
|
onChange,
|
|
34
34
|
palette = DEFAULT_COLOR_PALETTE,
|
|
35
35
|
isAlphaEnabled = false,
|
|
36
|
+
hideHSVSelector = false,
|
|
37
|
+
hideFlyoutInputs = false,
|
|
36
38
|
isDisabled = false,
|
|
37
39
|
id,
|
|
38
40
|
buttonRef: externalButtonRef,
|
|
@@ -233,7 +235,9 @@ function ColorPicker(_ref) {
|
|
|
233
235
|
zIndex: zIndex,
|
|
234
236
|
onHexBlur: handleHexBlur,
|
|
235
237
|
onKeyDown: handleFlyoutKeyDown,
|
|
236
|
-
dataTestId: dataTestId
|
|
238
|
+
dataTestId: dataTestId,
|
|
239
|
+
hideHSVSelector: hideHSVSelector,
|
|
240
|
+
hideFlyoutInputs: hideFlyoutInputs
|
|
237
241
|
}),
|
|
238
242
|
anchor: /*#__PURE__*/React__default.createElement("button", {
|
|
239
243
|
type: "button",
|
|
@@ -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 = {"colorPicker":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._oDGNx{display:flex;line-height:1.15}._oDGNx ._-N2Iw{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._oDGNx ._-N2Iw:hover:not(._Lz5Du){background-color:#f5f5f5}._oDGNx ._-N2Iw._Lz5Du{cursor:not-allowed;fill:rgba(81,85,89,.4)}._oDGNx ._-N2Iw:active:not(._Lz5Du){background-color:#eee}._oDGNx ._VNaN-{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._oDGNx ._VNaN-._Lz5Du{border-color:#d9d9d9}._oDGNx ._2NBL2{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._oDGNx ._onMpA{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._oDGNx ._onMpA._Lz5Du{border-color:#d9d9d9}._oDGNx ._WhjJr{height:36px;border:1px solid #898989;border-width:1px 0}._oDGNx ._WhjJr._Lz5Du{border-color:#d9d9d9}._oDGNx ._0rAs2{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._oDGNx ._-MDIU{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._oDGNx ._-MDIU._gJauS{color:#9d9fa1}._-N2Iw.focus-visible,._-N2Iw:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._GNK26{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._GNK26 ._KwUBE{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._GNK26 ._SJMK3{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._GNK26 ._GtjqQ{display:flex;justify-content:space-between;margin:12px 0}._GNK26 ._GtjqQ._1ncwT{margin-bottom:0}._GNK26 ._-i7if{display:flex}._GNK26 ._Egmen{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._GNK26 ._-PP08{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._GNK26 ._FqB-I{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._GNK26 ._Dy8jh{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._GNK26 ._Dy8jh._qfqo6{height:16px;margin-bottom:6px}._GNK26 ._EB-jK{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._GNK26 ._EB-jK._qfqo6{height:16px}._GNK26 ._cjT3e{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._GNK26 ._lY9Pm{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._GNK26 ._qE76F{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._GNK26 ._SvXBw{display:flex;justify-content:space-between}._GNK26 ._Q9gDx{display:flex;flex-direction:column;align-items:center}._GNK26 ._Q9gDx._ZpdUa{margin-left:4px}._GNK26 ._K2xkw{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._GNK26 ._QEgsD{padding:3px 4px 3px 13px!important;width:78px}._GNK26 ._p7N2N{text-align:right;padding:3px 4px 3px 0!important;width:34px}._GNK26 ._iv5dX{text-align:right;padding:3px 16px 3px 0!important;width:46px}._GNK26 ._c5Ndn{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._GNK26 ._WrZWh{line-height:22px}._GNK26 ._keHVK{display:flex}._GNK26 ._go4-D{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._GNK26 ._go4-D._-rPRr{margin-top:0}._GNK26 ._AmVq3{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._iHdwG{position:relative}._ST9Ng{display:none}._0Fiw5{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._SJMK3.focus-visible,._SJMK3:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._AmVq3.focus-visible,._AmVq3:focus-visible,._EB-jK.focus-visible,._EB-jK:focus-visible,._qE76F.focus-visible,._qE76F:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_oDGNx","colorPickerButton":"_-N2Iw","disabledButton":"_Lz5Du","colorPickerButtonPreview":"_VNaN-","alphaBackground":"_2NBL2","colorPickerButtonAlphaPreview":"_onMpA","caretIcon":"_WhjJr","colorPickerInput":"_0rAs2","colorPickerInputDecoration":"_-MDIU","disabledDecoration":"_gJauS","colorPickerFlyout":"_GNK26","saturationGrid":"_KwUBE","saturationLoop":"_SJMK3","sliderGroup":"_GtjqQ","removeBottomMargin":"_1ncwT","sliderPreviewContainer":"_-i7if","sliderPreview":"_Egmen","sliderPreviewAlpha":"_-PP08","sliderPreviewAlphaBackground":"_FqB-I","hueSliderRail":"_Dy8jh","alphaEnabled":"_qfqo6","hueSliderThumb":"_EB-jK","alphaSliderRailBackground":"_cjT3e","alphaSliderRail":"_lY9Pm","alphaSliderThumb":"_qE76F","hexInputGroup":"_SvXBw","hexInputContainer":"_Q9gDx","rgbInputContainer":"_ZpdUa","hexInputDecoration":"_K2xkw","hexInput":"_QEgsD","rgbInput":"_p7N2N","alphaInput":"_iv5dX","alphaInputDecoration":"_c5Ndn","inputLabel":"_WrZWh","rgbContainer":"_keHVK","palette":"_go4-D","removeUpperMargin":"_-rPRr","swatch":"_AmVq3","relativePositionContainer":"_iHdwG","hidden":"_ST9Ng","hiddenLiveRegion":"_0Fiw5"};
|
|
5
|
+
var stylesheet="._oDGNx{display:flex;line-height:1.15}._oDGNx ._-N2Iw{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._oDGNx ._-N2Iw:hover:not(._Lz5Du){background-color:#f5f5f5}._oDGNx ._-N2Iw._Lz5Du{cursor:not-allowed;fill:rgba(81,85,89,.4)}._oDGNx ._-N2Iw:active:not(._Lz5Du){background-color:#eee}._oDGNx ._VNaN-{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._oDGNx ._VNaN-._Lz5Du{border-color:#d9d9d9}._oDGNx ._2NBL2{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._oDGNx ._onMpA{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._oDGNx ._onMpA._Lz5Du{border-color:#d9d9d9}._oDGNx ._WhjJr{height:36px;border:1px solid #898989;border-width:1px 0}._oDGNx ._WhjJr._Lz5Du{border-color:#d9d9d9}._oDGNx ._0rAs2{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._oDGNx ._-MDIU{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._oDGNx ._-MDIU._gJauS{color:#9d9fa1}._-N2Iw.focus-visible,._-N2Iw:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._GNK26{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._GNK26 ._KwUBE{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._GNK26 ._SJMK3{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._GNK26 ._GtjqQ{display:flex;justify-content:space-between;margin:12px 0}._GNK26 ._GtjqQ._1ncwT{margin-bottom:0}._GNK26 ._-i7if{display:flex}._GNK26 ._Egmen{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._GNK26 ._-PP08{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._GNK26 ._FqB-I{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._GNK26 ._Dy8jh{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._GNK26 ._Dy8jh._qfqo6{height:16px;margin-bottom:6px}._GNK26 ._EB-jK{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._GNK26 ._EB-jK._qfqo6{height:16px}._GNK26 ._cjT3e{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._GNK26 ._lY9Pm{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._GNK26 ._qE76F{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._GNK26 ._SvXBw{display:flex;justify-content:space-between}._GNK26 ._Q9gDx{display:flex;flex-direction:column;align-items:center}._GNK26 ._Q9gDx._ZpdUa{margin-left:4px}._GNK26 ._K2xkw{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._GNK26 ._QEgsD{padding:3px 4px 3px 13px!important;width:78px}._GNK26 ._p7N2N{text-align:right;padding:3px 4px 3px 0!important;width:34px}._GNK26 ._iv5dX{text-align:right;padding:3px 16px 3px 0!important;width:46px}._GNK26 ._c5Ndn{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._GNK26 ._WrZWh{line-height:22px}._GNK26 ._keHVK{display:flex}._GNK26 ._go4-D{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._GNK26 ._go4-D._-rPRr{margin-top:0}._GNK26 ._AmVq3{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._iHdwG{position:relative}._ST9Ng{display:none}._0Fiw5{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._SJMK3.focus-visible,._SJMK3:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._AmVq3.focus-visible,._AmVq3:focus-visible,._EB-jK.focus-visible,._EB-jK:focus-visible,._qE76F.focus-visible,._qE76F:focus-visible{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 };
|
|
@@ -30,6 +30,8 @@ const ColorPickerFlyout = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
30
30
|
onColorSwatchClick,
|
|
31
31
|
zIndex,
|
|
32
32
|
dataTestId,
|
|
33
|
+
hideHSVSelector,
|
|
34
|
+
hideFlyoutInputs,
|
|
33
35
|
...rest
|
|
34
36
|
} = _ref;
|
|
35
37
|
const {
|
|
@@ -46,13 +48,15 @@ const ColorPickerFlyout = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
46
48
|
zIndex
|
|
47
49
|
},
|
|
48
50
|
"data-testid": getSubDataTestId(dataTestId, 'flyout')
|
|
49
|
-
}), /*#__PURE__*/React__default.createElement(Saturation, {
|
|
51
|
+
}), !hideHSVSelector && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Saturation, {
|
|
50
52
|
hsv: hsv,
|
|
51
53
|
onSaturationChange: onSaturationChange,
|
|
52
54
|
containerId: containerId,
|
|
53
55
|
dataTestId: dataTestId
|
|
54
56
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
55
|
-
className: styles.sliderGroup
|
|
57
|
+
className: classNames(styles.sliderGroup, {
|
|
58
|
+
[styles.removeBottomMargin]: hideFlyoutInputs && !palette.length
|
|
59
|
+
})
|
|
56
60
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
57
61
|
className: styles.sliderPreviewContainer,
|
|
58
62
|
"data-testid": getSubDataTestId(dataTestId, 'flyout-color-preview')
|
|
@@ -77,7 +81,7 @@ const ColorPickerFlyout = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
77
81
|
color: color,
|
|
78
82
|
onAlphaChange: onAlphaChange,
|
|
79
83
|
dataTestId: dataTestId
|
|
80
|
-
}))), /*#__PURE__*/React__default.createElement(ColorPickerFlyoutInputs, {
|
|
84
|
+
})))), !hideFlyoutInputs && /*#__PURE__*/React__default.createElement(ColorPickerFlyoutInputs, {
|
|
81
85
|
color: color,
|
|
82
86
|
onHexBlur: onHexBlur,
|
|
83
87
|
onAlphaBlur: onAlphaChange,
|
|
@@ -88,7 +92,8 @@ const ColorPickerFlyout = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
88
92
|
onColorSwatchClick: onColorSwatchClick,
|
|
89
93
|
palette: palette,
|
|
90
94
|
containerId: containerId,
|
|
91
|
-
dataTestId: dataTestId
|
|
95
|
+
dataTestId: dataTestId,
|
|
96
|
+
removeUpperMargin: hideHSVSelector && hideFlyoutInputs
|
|
92
97
|
}));
|
|
93
98
|
});
|
|
94
99
|
|
|
@@ -10,7 +10,6 @@ import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
|
10
10
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
11
11
|
import getMousePosition from './utils/getMousePosition.js';
|
|
12
12
|
import useMouseDrag from '../../hooks/useMouseDrag/useMouseDrag.js';
|
|
13
|
-
import { setIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
14
13
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
15
14
|
|
|
16
15
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
@@ -45,33 +44,27 @@ function Hue(_ref) {
|
|
|
45
44
|
case 'ArrowUp':
|
|
46
45
|
case 'ArrowRight':
|
|
47
46
|
e.preventDefault(); // prevent page scroll
|
|
48
|
-
setIsKeyboardUser(true);
|
|
49
47
|
onHueChange(Math.min(hue + 3, 359));
|
|
50
48
|
break;
|
|
51
49
|
case 'ArrowDown':
|
|
52
50
|
case 'ArrowLeft':
|
|
53
51
|
e.preventDefault(); // prevent page scroll
|
|
54
|
-
setIsKeyboardUser(true);
|
|
55
52
|
onHueChange(Math.max(hue - 3, 0));
|
|
56
53
|
break;
|
|
57
54
|
case 'End':
|
|
58
55
|
e.preventDefault(); // prevent page scroll
|
|
59
|
-
setIsKeyboardUser(true);
|
|
60
56
|
onHueChange(359);
|
|
61
57
|
break;
|
|
62
58
|
case 'Home':
|
|
63
59
|
e.preventDefault(); // prevent page scroll
|
|
64
|
-
setIsKeyboardUser(true);
|
|
65
60
|
onHueChange(0);
|
|
66
61
|
break;
|
|
67
62
|
case 'PageUp':
|
|
68
63
|
e.preventDefault(); // prevent page scroll
|
|
69
|
-
setIsKeyboardUser(true);
|
|
70
64
|
onHueChange(Math.min(hue + 30, 359));
|
|
71
65
|
break;
|
|
72
66
|
case 'PageDown':
|
|
73
67
|
e.preventDefault(); // prevent page scroll
|
|
74
|
-
setIsKeyboardUser(true);
|
|
75
68
|
onHueChange(Math.max(hue - 30, 0));
|
|
76
69
|
break;
|
|
77
70
|
default:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import styles from './ColorPicker2.js';
|
|
3
4
|
import './utils/index.js';
|
|
4
5
|
import '../../utils/index.js';
|
|
5
6
|
import '../../utils/getSubDataTestId/index.js';
|
|
6
7
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
7
8
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
8
|
-
import { setIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
9
9
|
import calculateTargetId from './utils/calculateTargetId.js';
|
|
10
10
|
|
|
11
11
|
const Swatch = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
@@ -43,7 +43,8 @@ function Palette(_ref2) {
|
|
|
43
43
|
onColorSwatchClick,
|
|
44
44
|
palette,
|
|
45
45
|
containerId,
|
|
46
|
-
dataTestId
|
|
46
|
+
dataTestId,
|
|
47
|
+
removeUpperMargin
|
|
47
48
|
} = _ref2;
|
|
48
49
|
const [focusedSwatchIndex, setFocusedSwatchIndex] = useState(0);
|
|
49
50
|
const {
|
|
@@ -66,7 +67,6 @@ function Palette(_ref2) {
|
|
|
66
67
|
}, [palette]);
|
|
67
68
|
function updateFocusedSwatchIndex(e, direction) {
|
|
68
69
|
e.preventDefault(); // prevents scroll
|
|
69
|
-
setIsKeyboardUser(true);
|
|
70
70
|
setFocusedSwatchIndex(prevFocusedSwatchIndex => {
|
|
71
71
|
const targetId = calculateTargetId(prevFocusedSwatchIndex, palette.length, direction);
|
|
72
72
|
swatchRefs.current?.[targetId]?.focus();
|
|
@@ -99,7 +99,9 @@ function Palette(_ref2) {
|
|
|
99
99
|
React__default.createElement("div", {
|
|
100
100
|
role: "grid",
|
|
101
101
|
"aria-label": paletteAriaLabel,
|
|
102
|
-
className: styles.palette,
|
|
102
|
+
className: classNames(styles.palette, {
|
|
103
|
+
[styles.removeUpperMargin]: removeUpperMargin
|
|
104
|
+
}),
|
|
103
105
|
onKeyDown: handleKeyDown,
|
|
104
106
|
"data-testid": getSubDataTestId(dataTestId, 'palette')
|
|
105
107
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -9,7 +9,6 @@ import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
|
9
9
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
10
10
|
import getMousePosition from './utils/getMousePosition.js';
|
|
11
11
|
import useMouseDrag from '../../hooks/useMouseDrag/useMouseDrag.js';
|
|
12
|
-
import { setIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
13
12
|
import hsvToHex from './utils/hsvToHex.js';
|
|
14
13
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
15
14
|
|
|
@@ -51,42 +50,34 @@ function Saturation(_ref) {
|
|
|
51
50
|
switch (e.key) {
|
|
52
51
|
case 'ArrowUp':
|
|
53
52
|
e.preventDefault(); // prevent page scroll
|
|
54
|
-
setIsKeyboardUser(true);
|
|
55
53
|
onSaturationChange(hsv.s, Math.min(hsv.v + 0.01, 1));
|
|
56
54
|
break;
|
|
57
55
|
case 'ArrowDown':
|
|
58
56
|
e.preventDefault(); // prevent page scroll
|
|
59
|
-
setIsKeyboardUser(true);
|
|
60
57
|
onSaturationChange(hsv.s, Math.max(hsv.v - 0.01, 0));
|
|
61
58
|
break;
|
|
62
59
|
case 'ArrowLeft':
|
|
63
60
|
e.preventDefault(); // prevent page scroll
|
|
64
|
-
setIsKeyboardUser(true);
|
|
65
61
|
onSaturationChange(Math.max(hsv.s - 0.01, 0), hsv.v);
|
|
66
62
|
break;
|
|
67
63
|
case 'ArrowRight':
|
|
68
64
|
e.preventDefault(); // prevent page scroll
|
|
69
|
-
setIsKeyboardUser(true);
|
|
70
65
|
onSaturationChange(Math.min(hsv.s + 0.01, 1), hsv.v);
|
|
71
66
|
break;
|
|
72
67
|
case 'Home':
|
|
73
68
|
e.preventDefault(); // prevent page scroll
|
|
74
|
-
setIsKeyboardUser(true);
|
|
75
69
|
onSaturationChange(0, hsv.v);
|
|
76
70
|
break;
|
|
77
71
|
case 'End':
|
|
78
72
|
e.preventDefault(); // prevent page scroll
|
|
79
|
-
setIsKeyboardUser(true);
|
|
80
73
|
onSaturationChange(1, hsv.v);
|
|
81
74
|
break;
|
|
82
75
|
case 'PageUp':
|
|
83
76
|
e.preventDefault(); // prevent page scroll
|
|
84
|
-
setIsKeyboardUser(true);
|
|
85
77
|
onSaturationChange(hsv.s, 1);
|
|
86
78
|
break;
|
|
87
79
|
case 'PageDown':
|
|
88
80
|
e.preventDefault(); // prevent page scroll
|
|
89
|
-
setIsKeyboardUser(true);
|
|
90
81
|
onSaturationChange(hsv.s, 0);
|
|
91
82
|
break;
|
|
92
83
|
default:
|
|
@@ -2,6 +2,7 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
3
|
import React__default, { forwardRef, useMemo, useRef, useState, useCallback, useEffect, cloneElement } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
+
import { useFocusVisible } from '@react-aria/interactions';
|
|
5
6
|
import styles from './Combobox2.js';
|
|
6
7
|
import ComboboxInput from './ComboboxInput.js';
|
|
7
8
|
import ComboboxList from './ComboboxList.js';
|
|
@@ -57,6 +58,11 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
57
58
|
} = useTranslation();
|
|
58
59
|
const isOptionSelectedOnKeyboardHighlight = unstable_isOptionSelectedOnKeyboardHighlight;
|
|
59
60
|
const isFilteringDisabled = isOptionSelectedOnKeyboardHighlight || externalIsFilteringDisabled;
|
|
61
|
+
const {
|
|
62
|
+
isFocusVisible
|
|
63
|
+
} = useFocusVisible({
|
|
64
|
+
isTextInput: true
|
|
65
|
+
});
|
|
60
66
|
let comboboxInput = /*#__PURE__*/React__default.createElement(ComboboxInput, null);
|
|
61
67
|
let comboboxList = /*#__PURE__*/React__default.createElement(ComboboxList, null);
|
|
62
68
|
|
|
@@ -87,7 +93,6 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
87
93
|
const inputRef = useRef(null);
|
|
88
94
|
const iconRef = useRef(null);
|
|
89
95
|
const [isFlyoutOpen, setIsFlyoutOpen] = useControllableState(false, onIsOpenChange, externalIsOpen);
|
|
90
|
-
const [isKeyboardUser, setIsKeyboardUser] = useState(false);
|
|
91
96
|
|
|
92
97
|
// Highlighted index is only used when isOptionSelectedOnKeyboardHighlight is set to false
|
|
93
98
|
const [highlightedIndex, setHighlightedIndex] = useState(-1);
|
|
@@ -178,13 +183,11 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
178
183
|
if (!isOptionSelectedOnKeyboardHighlight) {
|
|
179
184
|
setHighlightedIndex(index);
|
|
180
185
|
}
|
|
181
|
-
setIsKeyboardUser(false);
|
|
182
186
|
}),
|
|
183
187
|
onMouseLeave: wrapEvent(child.props.onMouseLeave, () => {
|
|
184
188
|
if (!isOptionSelectedOnKeyboardHighlight) {
|
|
185
189
|
setHighlightedIndex(-1);
|
|
186
190
|
}
|
|
187
|
-
setIsKeyboardUser(false);
|
|
188
191
|
}),
|
|
189
192
|
isHighlightedOnHover: isOptionSelectedOnKeyboardHighlight,
|
|
190
193
|
isHighlighted: isOptionSelectedOnKeyboardHighlight ? false : index === highlightedIndex,
|
|
@@ -209,7 +212,6 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
209
212
|
modifier: child => headerCounts[child.props?.title] ? child : null
|
|
210
213
|
}]), [headerCounts, listChildrenFilteredOptions]);
|
|
211
214
|
const keyboardHighlightOrSelectOption = (index, e) => {
|
|
212
|
-
setIsKeyboardUser(true);
|
|
213
215
|
if (isOptionSelectedOnKeyboardHighlight) {
|
|
214
216
|
setSelectedIndex(index);
|
|
215
217
|
filteredOptions[index]?.props?.onSelect?.(e);
|
|
@@ -331,7 +333,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
331
333
|
useEffect(() => {
|
|
332
334
|
const currentIndex = isOptionSelectedOnKeyboardHighlight ? selectedIndex : highlightedIndex;
|
|
333
335
|
const optionRef = optionRefs.current[currentIndex];
|
|
334
|
-
if (
|
|
336
|
+
if (isFocusVisible && isFlyoutOpen && optionRef && listRef?.current) {
|
|
335
337
|
if (currentIndex === 0) {
|
|
336
338
|
// Scrolls the first header into view if one exists
|
|
337
339
|
listRef.current.scrollTop = 0;
|
|
@@ -345,7 +347,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
345
347
|
}
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
|
-
}, [
|
|
350
|
+
}, [isFocusVisible, highlightedIndex, selectedIndex, isOptionSelectedOnKeyboardHighlight, isFlyoutOpen]);
|
|
349
351
|
|
|
350
352
|
// Updates the selected option label and selected option index based on the new selected option value
|
|
351
353
|
useEffect(() => {
|
|
@@ -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 = {"combobox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._tJ35a{position:relative;display:inline-block}._ziKOn{padding-right:36px}._ziKOn._rJb-f{box-shadow:none!important;border:1px solid #898989!important}._CuXIj{margin-top:4px}._s76e0{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._s76e0:hover{background-color:rgba(50,54,58,.08)}._s76e0:active{background-color:rgba(50,54,58,.11)}._s76e0._USuOw{transform:rotate(-180deg)}._s76e0._PDmsy{opacity:.4}._l4O6R{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}._PDmsy{cursor:not-allowed}._PDmsy:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_tJ35a","comboboxInput":"_ziKOn","ignoreFocusStyle":"_rJb-f","labelledInput":"_CuXIj","comboboxIcon":"_s76e0","open":"_USuOw","disabled":"_PDmsy","comboboxEmpty":"_l4O6R"};
|
|
5
|
+
var stylesheet="._tJ35a{position:relative;display:inline-block}._ziKOn{padding-right:36px}._ziKOn._rJb-f{box-shadow:none!important;border:1px solid #898989!important}._CuXIj{margin-top:4px}._s76e0{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._s76e0:hover{background-color:rgba(50,54,58,.08)}._s76e0:active{background-color:rgba(50,54,58,.11)}._s76e0._USuOw{transform:rotate(-180deg)}._s76e0._PDmsy{opacity:.4}._l4O6R{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}._PDmsy{cursor:not-allowed}._PDmsy:hover{background-color:transparent}";
|
|
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 = {"paneContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._hrRPh{grid-area:configPane;position:relative;height:100%}._WJn4X{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._-G6pY._y1EB- ._WJn4X,._-G6pY:not(._HeTXq) ._WJn4X{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._HeTXq ._WJn4X{width:0}._y1EB-._HeTXq ._WJn4X{width:30px;cursor:pointer}._yL-96 ._WJn4X{border-right-color:#eee}._hvicM{height:100%;position:relative;width:292px}._-G6pY ._hvicM,._HeTXq ._hvicM{width:0}._y1EB-._-G6pY ._hvicM,._y1EB-._HeTXq ._hvicM{width:30px}._Y1-bq ._hvicM{transition:width .5s}._9Fxcd{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._HeTXq ._9Fxcd{visibility:hidden}._Y1-bq ._9Fxcd{visibility:visible}._9Fxcd ._ACaF2{width:252px;margin-left:20px}._XTRrv{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._-6dwa{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._-6dwa *{font-weight:400;font-size:16px;margin:0}._KxMb1{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._HeTXq ._KxMb1{left:0}._y1EB-._HeTXq ._KxMb1{left:30px}._KxMb1 ._PEcd-{width:4px;height:100%}._KxMb1:hover ._PEcd-,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._PEcd-{background-color:#9dc5ed}._KxMb1:hover ._Z6aNM>span,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM>span{background-color:#0b6ed0;border-color:#0b6ed0}._KxMb1:hover ._Z6aNM>span>svg,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM>span>svg{fill:#fff}._KxMb1:hover ._Z6aNM:active>span,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM:active>span{background-color:#0854a1;border-color:#0854a1}._KxMb1:hover ._Z6aNM:active>span>svg,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM:active>span>svg{fill:#fff}._KxMb1 ._Z6aNM{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._KxMb1 ._Z6aNM._fW5Ff._fW5Ff._fW5Ff{opacity:1}._KxMb1 ._Z6aNM._AkcIZ._AkcIZ._AkcIZ{opacity:0}._KxMb1 ._Z6aNM:active>span{background-color:#0854a1;border-color:#0854a1}._KxMb1 ._Z6aNM:active>span>svg{fill:#fff}._KxMb1 ._Z6aNM>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._KxMb1 ._Z6aNM>span>svg{fill:#515559;border-radius:50%}._HeTXq ._KxMb1 ._Z6aNM,._KxMb1:hover ._Z6aNM,._WJn4X:hover+._KxMb1 ._Z6aNM{opacity:1}._Z6aNM.focus-visible,._Z6aNM:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_hrRPh","paneContentContainer":"_WJn4X","unpinned":"_-G6pY","hidden":"_HeTXq","preview":"_y1EB-","openHidden":"_yL-96","spacer":"_hvicM","transitioning":"_Y1-bq","paneContent":"_9Fxcd","paneContentInner":"_ACaF2","header":"_XTRrv","title":"_-6dwa","clickableArea":"_KxMb1","hoverBorder":"_PEcd-","toolbarPanelExpandCollapseButton":"_Z6aNM","overrideShow":"_fW5Ff","overrideHide":"_AkcIZ"};
|
|
5
|
+
var stylesheet="._hrRPh{grid-area:configPane;position:relative;height:100%}._WJn4X{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._-G6pY._y1EB- ._WJn4X,._-G6pY:not(._HeTXq) ._WJn4X{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._HeTXq ._WJn4X{width:0}._y1EB-._HeTXq ._WJn4X{width:30px;cursor:pointer}._yL-96 ._WJn4X{border-right-color:#eee}._hvicM{height:100%;position:relative;width:292px}._-G6pY ._hvicM,._HeTXq ._hvicM{width:0}._y1EB-._-G6pY ._hvicM,._y1EB-._HeTXq ._hvicM{width:30px}._Y1-bq ._hvicM{transition:width .5s}._9Fxcd{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._HeTXq ._9Fxcd{visibility:hidden}._Y1-bq ._9Fxcd{visibility:visible}._9Fxcd ._ACaF2{width:252px;margin-left:20px}._XTRrv{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._-6dwa{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._-6dwa *{font-weight:400;font-size:16px;margin:0}._KxMb1{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._HeTXq ._KxMb1{left:0}._y1EB-._HeTXq ._KxMb1{left:30px}._KxMb1 ._PEcd-{width:4px;height:100%}._KxMb1:hover ._PEcd-,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._PEcd-{background-color:#9dc5ed}._KxMb1:hover ._Z6aNM>span,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM>span{background-color:#0b6ed0;border-color:#0b6ed0}._KxMb1:hover ._Z6aNM>span>svg,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM>span>svg{fill:#fff}._KxMb1:hover ._Z6aNM:active>span,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM:active>span{background-color:#0854a1;border-color:#0854a1}._KxMb1:hover ._Z6aNM:active>span>svg,._y1EB-._HeTXq ._WJn4X:hover+._KxMb1 ._Z6aNM:active>span>svg{fill:#fff}._KxMb1 ._Z6aNM{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._KxMb1 ._Z6aNM._fW5Ff._fW5Ff._fW5Ff{opacity:1}._KxMb1 ._Z6aNM._AkcIZ._AkcIZ._AkcIZ{opacity:0}._KxMb1 ._Z6aNM:active>span{background-color:#0854a1;border-color:#0854a1}._KxMb1 ._Z6aNM:active>span>svg{fill:#fff}._KxMb1 ._Z6aNM>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._KxMb1 ._Z6aNM>span>svg{fill:#515559;border-radius:50%}._HeTXq ._KxMb1 ._Z6aNM,._KxMb1:hover ._Z6aNM,._WJn4X:hover+._KxMb1 ._Z6aNM{opacity:1}._Z6aNM.focus-visible,._Z6aNM:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|