@qualtrics/ui-react 2.24.2 → 2.26.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 +18 -0
- package/dist/__shared/cjs/{index-8f52588d.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-b7a35c2e.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- 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/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- 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/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.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 +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- 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 +15 -7
- package/dist/index.es.js +2 -1
- package/dist/index.js +4 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +1 -1
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +76 -34
- package/dist/next/Menu/Menu.js +22 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +5 -2
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +38 -16
- package/dist/next/Menu/MenuPane.js +90 -55
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +95 -49
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +118 -0
- package/dist/next/Select/Select2.js +8 -0
- package/dist/next/Select/SelectButton.js +46 -0
- package/dist/next/Select/SelectContext.js +16 -0
- package/dist/next/Select/SelectItem.js +46 -0
- package/dist/next/Select/SelectPane.js +43 -0
- package/dist/next/Select/SelectedItems.js +45 -0
- package/dist/next/Select/SubSelect.js +90 -0
- package/dist/next/Select/constants.js +13 -0
- package/dist/next/Select/index.js +5 -0
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +68 -6
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +1009 -372
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +6 -3
|
@@ -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 = "._jTGS5{width:100%;display:flex;flex-direction:column}._jTGS5._7-A6j{grid-gap:20px;gap:20px}._ydo58{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}._ydo58 ._JHx9P{margin-top:-3px}._nDnvp{flex:1}._cmSkG{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._b-Gry ._ydo58{border-radius:4px}._b-Gry ._ydo58:hover:not(._PDxGR){background-color:rgba(50,54,58,.08)}._b-Gry ._ydo58:active:not(._PDxGR){background-color:rgba(50,54,58,.11)}._Nqlf3 ._ydo58{font-weight:400;padding-left:12px;border-top:1px solid #eee}._Nqlf3 ._ydo58:hover:not(._PDxGR){background-color:rgba(50,54,58,.08)}._Nqlf3 ._ydo58:active:not(._PDxGR){background-color:rgba(50,54,58,.11)}._7-A6j ._sO2UX{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._7-A6j ._sO2UX._nccg-{box-shadow:none}._7-A6j ._sO2UX._nccg- ._ydo58{border-radius:6px}._7-A6j ._ydo58{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._7-A6j ._ydo58 ._nDnvp{padding-left:20px}._7-A6j ._ydo58:hover:not(disabled){border:1px solid #c2c2c2}._7-A6j ._ydo58:active:not(._PDxGR){border:1px solid #898989}._7-A6j ._cmSkG{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._nccg- ._cmSkG{display:none}._PDxGR{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._ydo58.focus-visible,._ydo58:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._ydo58.focus-visible:before,._ydo58:focus-visible:before{z-index:1}._Nqlf3 ._ydo58.focus-visible,._Nqlf3 ._ydo58:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_jTGS5","block-variant":"_7-A6j","header":"_ydo58","headerIcon":"_JHx9P","title":"_nDnvp","panel":"_cmSkG","default-variant":"_b-Gry","disabled":"_PDxGR","outlined-variant":"_Nqlf3","section":"_sO2UX","closed":"_nccg-"};
|
|
5
|
+
var stylesheet="._jTGS5{width:100%;display:flex;flex-direction:column}._jTGS5._7-A6j{grid-gap:20px;gap:20px}._ydo58{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}._ydo58 ._JHx9P{margin-top:-3px}._nDnvp{flex:1}._cmSkG{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._b-Gry ._ydo58{border-radius:4px}._b-Gry ._ydo58:hover:not(._PDxGR){background-color:rgba(50,54,58,.08)}._b-Gry ._ydo58:active:not(._PDxGR){background-color:rgba(50,54,58,.11)}._Nqlf3 ._ydo58{font-weight:400;padding-left:12px;border-top:1px solid #eee}._Nqlf3 ._ydo58:hover:not(._PDxGR){background-color:rgba(50,54,58,.08)}._Nqlf3 ._ydo58:active:not(._PDxGR){background-color:rgba(50,54,58,.11)}._7-A6j ._sO2UX{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._7-A6j ._sO2UX._nccg-{box-shadow:none}._7-A6j ._sO2UX._nccg- ._ydo58{border-radius:6px}._7-A6j ._ydo58{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._7-A6j ._ydo58 ._nDnvp{padding-left:20px}._7-A6j ._ydo58:hover:not(disabled){border:1px solid #c2c2c2}._7-A6j ._ydo58:active:not(._PDxGR){border:1px solid #898989}._7-A6j ._cmSkG{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._nccg- ._cmSkG{display:none}._PDxGR{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._ydo58.focus-visible,._ydo58:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._ydo58.focus-visible:before,._ydo58:focus-visible:before{z-index:1}._Nqlf3 ._ydo58.focus-visible,._Nqlf3 ._ydo58:focus-visible{border-color:transparent}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._D-mXb{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}._D-mXb._0a5-H{padding:0 8px;height:26px;min-height:26px}._D-mXb._cnAD7{display:block;width:100%}._D-mXb._0tUfg{cursor:not-allowed}._D-mXb:active:focus,._D-mXb:focus{outline:none}._D-mXb._hrKJd{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._D-mXb._hrKJd:hover:not(._0tUfg){background-color:#eee}._D-mXb._hrKJd:active:not(._0tUfg){background-color:#e5e5e5}._D-mXb._hrKJd._0tUfg{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)}._D-mXb._qcaGL{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._D-mXb._qcaGL:hover:not(._0tUfg){background-color:#085caf;border-color:#085caf}._D-mXb._qcaGL:active:not(._0tUfg){background-color:#0854a1;border-color:#0854a1}._D-mXb._qcaGL._0tUfg{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._D-mXb._EtacC{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._D-mXb._EtacC:hover:not(._0tUfg){background-color:#eef5fc}._D-mXb._EtacC:active:not(._0tUfg){background-color:#e1edf9}._D-mXb._EtacC._0tUfg{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)}._D-mXb._4-wtL{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._D-mXb._4-wtL:hover:not(._0tUfg){background-color:#eef5fc;border-color:#eef5fc}._D-mXb._4-wtL:active:not(._0tUfg){background-color:#e1edf9;border-color:#e1edf9}._D-mXb._4-wtL._0tUfg{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)}._D-mXb._VQzop{color:#0b6ed0;fill:#0b6ed0;padding:0}._D-mXb._VQzop:hover:not(._0tUfg){color:#085caf}._D-mXb._VQzop:active:not(._0tUfg){color:#0854a1}._D-mXb._VQzop._0tUfg{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._D-mXb._RfVAW{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._D-mXb._RfVAW:hover:not(._0tUfg){background-color:#ffecec}._D-mXb._RfVAW:active:not(._0tUfg){background-color:#ffdbdb}._D-mXb._RfVAW._0tUfg{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)}._D-mXb.focus-visible,._D-mXb:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_D-mXb","small":"_0a5-H","full":"_cnAD7","disabled":"_0tUfg","default":"_hrKJd","primary":"_qcaGL","secondary":"_EtacC","tertiary":"_4-wtL","link":"_VQzop","danger":"_RfVAW"};
|
|
5
|
+
var stylesheet="._D-mXb{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}._D-mXb._0a5-H{padding:0 8px;height:26px;min-height:26px}._D-mXb._cnAD7{display:block;width:100%}._D-mXb._0tUfg{cursor:not-allowed}._D-mXb:active:focus,._D-mXb:focus{outline:none}._D-mXb._hrKJd{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._D-mXb._hrKJd:hover:not(._0tUfg){background-color:#eee}._D-mXb._hrKJd:active:not(._0tUfg){background-color:#e5e5e5}._D-mXb._hrKJd._0tUfg{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)}._D-mXb._qcaGL{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._D-mXb._qcaGL:hover:not(._0tUfg){background-color:#085caf;border-color:#085caf}._D-mXb._qcaGL:active:not(._0tUfg){background-color:#0854a1;border-color:#0854a1}._D-mXb._qcaGL._0tUfg{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._D-mXb._EtacC{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._D-mXb._EtacC:hover:not(._0tUfg){background-color:#eef5fc}._D-mXb._EtacC:active:not(._0tUfg){background-color:#e1edf9}._D-mXb._EtacC._0tUfg{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)}._D-mXb._4-wtL{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._D-mXb._4-wtL:hover:not(._0tUfg){background-color:#eef5fc;border-color:#eef5fc}._D-mXb._4-wtL:active:not(._0tUfg){background-color:#e1edf9;border-color:#e1edf9}._D-mXb._4-wtL._0tUfg{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)}._D-mXb._VQzop{color:#0b6ed0;fill:#0b6ed0;padding:0}._D-mXb._VQzop:hover:not(._0tUfg){color:#085caf}._D-mXb._VQzop:active:not(._0tUfg){color:#0854a1}._D-mXb._VQzop._0tUfg{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._D-mXb._RfVAW{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._D-mXb._RfVAW:hover:not(._0tUfg){background-color:#ffecec}._D-mXb._RfVAW:active:not(._0tUfg){background-color:#ffdbdb}._D-mXb._RfVAW._0tUfg{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)}._D-mXb.focus-visible,._D-mXb:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { buttonStyles as default, stylesheet };
|
|
@@ -30,7 +30,7 @@ const Button = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
30
30
|
// stops form submission for type="submit"
|
|
31
31
|
return e.preventDefault();
|
|
32
32
|
}
|
|
33
|
-
onClick === null || onClick === void 0
|
|
33
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
34
34
|
};
|
|
35
35
|
const keyDownHandler = disabled ? undefined : onKeyDown;
|
|
36
36
|
return (
|
|
@@ -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 = "._AKiDB{display:inline-flex;align-items:stretch}._AKiDB._3aUIa{width:100%}._AKiDB ._jLzHQ{margin:0;min-width:0}._AKiDB ._jLzHQ:focus{z-index:20}._AKiDB ._jLzHQ:hover{z-index:10}._AKiDB ._jLzHQ._lxXmg{border:none}._AKiDB ._jLzHQ._3aUIa{display:inline-flex;width:auto;flex-grow:1}._AKiDB ._jLzHQ: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}._AKiDB ._jLzHQ:first-child._lxXmg{border-right:1px solid #fff}._AKiDB ._jLzHQ:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._AKiDB ._jLzHQ:not(:last-child):not(:first-child)._lxXmg{border-left:1px solid #fff;border-right:1px solid #fff}._AKiDB ._jLzHQ:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._AKiDB ._jLzHQ:last-child._lxXmg{border-left:1px solid #fff}._AKiDB ._jLzHQ: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":"_AKiDB","full":"_3aUIa","buttonGroupElement":"_jLzHQ","primary":"_lxXmg"};
|
|
5
|
+
var stylesheet="._AKiDB{display:inline-flex;align-items:stretch}._AKiDB._3aUIa{width:100%}._AKiDB ._jLzHQ{margin:0;min-width:0}._AKiDB ._jLzHQ:focus{z-index:20}._AKiDB ._jLzHQ:hover{z-index:10}._AKiDB ._jLzHQ._lxXmg{border:none}._AKiDB ._jLzHQ._3aUIa{display:inline-flex;width:auto;flex-grow:1}._AKiDB ._jLzHQ: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}._AKiDB ._jLzHQ:first-child._lxXmg{border-right:1px solid #fff}._AKiDB ._jLzHQ:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._AKiDB ._jLzHQ:not(:last-child):not(:first-child)._lxXmg{border-left:1px solid #fff;border-right:1px solid #fff}._AKiDB ._jLzHQ:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._AKiDB ._jLzHQ:last-child._lxXmg{border-left:1px solid #fff}._AKiDB ._jLzHQ: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
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._Jos7e{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._Jos7e,._Ng24y{cursor:pointer;height:16px;width:16px}._Ng24y{position:absolute;opacity:0;z-index:10}._Ng24y:checked~._qwE6p>._XTg1R{fill-opacity:1}._Ng24y:checked:enabled~._qwE6p{border-color:transparent;background-color:#0b6ed0}._Ng24y:checked:enabled~._qwE6p>._XTg1R{fill:#fff}._Ng24y:checked:enabled:hover~._qwE6p{background-color:#085caf}._Ng24y:not(:checked):enabled:hover~._qwE6p{border-color:#0b6ed0}._Ng24y:disabled{cursor:not-allowed}._Ng24y:disabled~._qwE6p{opacity:.4}._bgkMh{color:#32363a;display:flex;align-items:center;cursor:pointer}._dA22r{cursor:auto;color:hsla(0,0%,53.7%,.4)}._-dxan{margin-right:12px;flex-shrink:0}._qwE6p{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}._XTg1R{fill:#0b6ed0;fill-opacity:0}._Ng24y.focus-visible~._qwE6p,._Ng24y:focus-visible~._qwE6p{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_Jos7e","input":"_Ng24y","check":"_qwE6p","checkIcon":"_XTg1R","label":"_bgkMh","labelDisabled":"_dA22r","wrappedInput":"_-dxan"};
|
|
5
|
+
var stylesheet="._Jos7e{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._Jos7e,._Ng24y{cursor:pointer;height:16px;width:16px}._Ng24y{position:absolute;opacity:0;z-index:10}._Ng24y:checked~._qwE6p>._XTg1R{fill-opacity:1}._Ng24y:checked:enabled~._qwE6p{border-color:transparent;background-color:#0b6ed0}._Ng24y:checked:enabled~._qwE6p>._XTg1R{fill:#fff}._Ng24y:checked:enabled:hover~._qwE6p{background-color:#085caf}._Ng24y:not(:checked):enabled:hover~._qwE6p{border-color:#0b6ed0}._Ng24y:disabled{cursor:not-allowed}._Ng24y:disabled~._qwE6p{opacity:.4}._bgkMh{color:#32363a;display:flex;align-items:center;cursor:pointer}._dA22r{cursor:auto;color:hsla(0,0%,53.7%,.4)}._-dxan{margin-right:12px;flex-shrink:0}._qwE6p{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}._XTg1R{fill:#0b6ed0;fill-opacity:0}._Ng24y.focus-visible~._qwE6p,._Ng24y:focus-visible~._qwE6p{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._LYuHI{display:inline-flex;position:relative}._gvHab,._LYuHI{cursor:pointer;height:16px;width:16px}._gvHab{position:absolute;opacity:0;z-index:10}._gvHab._KCTTc~._Kx4-2>._yW7-n{fill-opacity:1}._gvHab._KCTTc~._Kx4-2{border-color:transparent;background-color:#0b6ed0}._gvHab._KCTTc~._Kx4-2>._yW7-n{fill:#fff}._gvHab._KCTTc:hover~._Kx4-2{background-color:#085caf}._gvHab:not(._KCTTc):hover~._Kx4-2{border-color:#0b6ed0}._gvHab._FWXbu{cursor:not-allowed}._gvHab._FWXbu~._Kx4-2{opacity:.4}._Kx4-2{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}._yW7-n{fill:#0b6ed0;fill-opacity:0}";
|
|
4
|
+
var styles = {"checkbox":"_LYuHI","input":"_gvHab","checked":"_KCTTc","check":"_Kx4-2","checkIcon":"_yW7-n","disabled":"_FWXbu"};
|
|
5
|
+
var stylesheet="._LYuHI{display:inline-flex;position:relative}._gvHab,._LYuHI{cursor:pointer;height:16px;width:16px}._gvHab{position:absolute;opacity:0;z-index:10}._gvHab._KCTTc~._Kx4-2>._yW7-n{fill-opacity:1}._gvHab._KCTTc~._Kx4-2{border-color:transparent;background-color:#0b6ed0}._gvHab._KCTTc~._Kx4-2>._yW7-n{fill:#fff}._gvHab._KCTTc:hover~._Kx4-2{background-color:#085caf}._gvHab:not(._KCTTc):hover~._Kx4-2{border-color:#0b6ed0}._gvHab._FWXbu{cursor:not-allowed}._gvHab._FWXbu~._Kx4-2{opacity:.4}._Kx4-2{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}._yW7-n{fill:#0b6ed0;fill-opacity:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -80,7 +80,7 @@ function Alpha(_ref) {
|
|
|
80
80
|
var _thumbRef$current;
|
|
81
81
|
// prevent text highlighting while dragging
|
|
82
82
|
e.preventDefault();
|
|
83
|
-
(_thumbRef$current = thumbRef.current) === null || _thumbRef$current === void 0
|
|
83
|
+
(_thumbRef$current = thumbRef.current) === null || _thumbRef$current === void 0 || _thumbRef$current.focus();
|
|
84
84
|
handleMouseDown(e);
|
|
85
85
|
},
|
|
86
86
|
"data-testid": getSubDataTestId(dataTestId, 'alpha-rail'),
|
|
@@ -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 = "._3dEbO{display:flex;line-height:1.15}._3dEbO ._BOIV-{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._3dEbO ._BOIV-:hover:not(._yD6R2){background-color:#f5f5f5}._3dEbO ._BOIV-._yD6R2{cursor:not-allowed;fill:rgba(81,85,89,.4)}._3dEbO ._BOIV-:active:not(._yD6R2){background-color:#eee}._3dEbO ._K6-ED{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._3dEbO ._K6-ED._yD6R2{border-color:#d9d9d9}._3dEbO ._R2olH{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}._3dEbO ._FXoBQ{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._3dEbO ._FXoBQ._yD6R2{border-color:#d9d9d9}._3dEbO ._2rBUT{height:36px;border:1px solid #898989;border-width:1px 0}._3dEbO ._2rBUT._yD6R2{border-color:#d9d9d9}._3dEbO ._X2-rd{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._3dEbO ._-RFwv{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}._3dEbO ._-RFwv._ACv2k{color:#9d9fa1}._BOIV-.focus-visible,._BOIV-:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._G-n9k{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}._G-n9k ._8WNjm{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}._G-n9k ._ZKKsO{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}._G-n9k ._fQMYf{display:flex;justify-content:space-between;margin:12px 0}._G-n9k ._fQMYf._pJtXp{margin-bottom:0}._G-n9k ._DM-bK{display:flex}._G-n9k ._LN4kM{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._G-n9k ._YcX-r{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._G-n9k ._TuPsm{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}._G-n9k ._wYIbB{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)}._G-n9k ._wYIbB._BOLTQ{height:16px;margin-bottom:6px}._G-n9k ._p2lsU{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}._G-n9k ._p2lsU._BOLTQ{height:16px}._G-n9k ._CBJK4{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}._G-n9k ._OjWG7{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._G-n9k ._geGsT{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}._G-n9k ._Fl633{display:flex;justify-content:space-between}._G-n9k ._R8XFD{display:flex;flex-direction:column;align-items:center}._G-n9k ._R8XFD._z0ULr{margin-left:4px}._G-n9k ._bum2B{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}._G-n9k ._C0qPu{padding:3px 4px 3px 13px!important;width:78px}._G-n9k ._Ry3Dy{text-align:right;padding:3px 4px 3px 0!important;width:34px}._G-n9k ._3cypl{text-align:right;padding:3px 16px 3px 0!important;width:46px}._G-n9k ._Zoeoc{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}._G-n9k ._SDqXh{line-height:22px}._G-n9k ._EkMqw{display:flex}._G-n9k ._1AvX-{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._G-n9k ._1AvX-._rfehu{margin-top:0}._G-n9k ._Zsai-{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._bV3Y9{position:relative}._VE7I6{display:none}._1PgJG{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._ZKKsO.focus-visible,._ZKKsO: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}._geGsT.focus-visible,._geGsT:focus-visible,._p2lsU.focus-visible,._p2lsU:focus-visible,._Zsai-.focus-visible,._Zsai-:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_3dEbO","colorPickerButton":"_BOIV-","disabledButton":"_yD6R2","colorPickerButtonPreview":"_K6-ED","alphaBackground":"_R2olH","colorPickerButtonAlphaPreview":"_FXoBQ","caretIcon":"_2rBUT","colorPickerInput":"_X2-rd","colorPickerInputDecoration":"_-RFwv","disabledDecoration":"_ACv2k","colorPickerFlyout":"_G-n9k","saturationGrid":"_8WNjm","saturationLoop":"_ZKKsO","sliderGroup":"_fQMYf","removeBottomMargin":"_pJtXp","sliderPreviewContainer":"_DM-bK","sliderPreview":"_LN4kM","sliderPreviewAlpha":"_YcX-r","sliderPreviewAlphaBackground":"_TuPsm","hueSliderRail":"_wYIbB","alphaEnabled":"_BOLTQ","hueSliderThumb":"_p2lsU","alphaSliderRailBackground":"_CBJK4","alphaSliderRail":"_OjWG7","alphaSliderThumb":"_geGsT","hexInputGroup":"_Fl633","hexInputContainer":"_R8XFD","rgbInputContainer":"_z0ULr","hexInputDecoration":"_bum2B","hexInput":"_C0qPu","rgbInput":"_Ry3Dy","alphaInput":"_3cypl","alphaInputDecoration":"_Zoeoc","inputLabel":"_SDqXh","rgbContainer":"_EkMqw","palette":"_1AvX-","removeUpperMargin":"_rfehu","swatch":"_Zsai-","relativePositionContainer":"_bV3Y9","hidden":"_VE7I6","hiddenLiveRegion":"_1PgJG"};
|
|
5
|
+
var stylesheet="._3dEbO{display:flex;line-height:1.15}._3dEbO ._BOIV-{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._3dEbO ._BOIV-:hover:not(._yD6R2){background-color:#f5f5f5}._3dEbO ._BOIV-._yD6R2{cursor:not-allowed;fill:rgba(81,85,89,.4)}._3dEbO ._BOIV-:active:not(._yD6R2){background-color:#eee}._3dEbO ._K6-ED{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._3dEbO ._K6-ED._yD6R2{border-color:#d9d9d9}._3dEbO ._R2olH{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}._3dEbO ._FXoBQ{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._3dEbO ._FXoBQ._yD6R2{border-color:#d9d9d9}._3dEbO ._2rBUT{height:36px;border:1px solid #898989;border-width:1px 0}._3dEbO ._2rBUT._yD6R2{border-color:#d9d9d9}._3dEbO ._X2-rd{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._3dEbO ._-RFwv{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}._3dEbO ._-RFwv._ACv2k{color:#9d9fa1}._BOIV-.focus-visible,._BOIV-:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._G-n9k{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}._G-n9k ._8WNjm{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}._G-n9k ._ZKKsO{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}._G-n9k ._fQMYf{display:flex;justify-content:space-between;margin:12px 0}._G-n9k ._fQMYf._pJtXp{margin-bottom:0}._G-n9k ._DM-bK{display:flex}._G-n9k ._LN4kM{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._G-n9k ._YcX-r{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._G-n9k ._TuPsm{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}._G-n9k ._wYIbB{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)}._G-n9k ._wYIbB._BOLTQ{height:16px;margin-bottom:6px}._G-n9k ._p2lsU{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}._G-n9k ._p2lsU._BOLTQ{height:16px}._G-n9k ._CBJK4{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}._G-n9k ._OjWG7{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._G-n9k ._geGsT{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}._G-n9k ._Fl633{display:flex;justify-content:space-between}._G-n9k ._R8XFD{display:flex;flex-direction:column;align-items:center}._G-n9k ._R8XFD._z0ULr{margin-left:4px}._G-n9k ._bum2B{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}._G-n9k ._C0qPu{padding:3px 4px 3px 13px!important;width:78px}._G-n9k ._Ry3Dy{text-align:right;padding:3px 4px 3px 0!important;width:34px}._G-n9k ._3cypl{text-align:right;padding:3px 16px 3px 0!important;width:46px}._G-n9k ._Zoeoc{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}._G-n9k ._SDqXh{line-height:22px}._G-n9k ._EkMqw{display:flex}._G-n9k ._1AvX-{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._G-n9k ._1AvX-._rfehu{margin-top:0}._G-n9k ._Zsai-{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._bV3Y9{position:relative}._VE7I6{display:none}._1PgJG{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._ZKKsO.focus-visible,._ZKKsO: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}._geGsT.focus-visible,._geGsT:focus-visible,._p2lsU.focus-visible,._p2lsU:focus-visible,._Zsai-.focus-visible,._Zsai-:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -79,7 +79,7 @@ function Hue(_ref) {
|
|
|
79
79
|
var _thumbRef$current;
|
|
80
80
|
// prevent text highlighting while dragging
|
|
81
81
|
e.preventDefault();
|
|
82
|
-
(_thumbRef$current = thumbRef.current) === null || _thumbRef$current === void 0
|
|
82
|
+
(_thumbRef$current = thumbRef.current) === null || _thumbRef$current === void 0 || _thumbRef$current.focus();
|
|
83
83
|
handleMouseDown(e);
|
|
84
84
|
},
|
|
85
85
|
"data-testid": getSubDataTestId(dataTestId, 'hue-rail'),
|
|
@@ -71,7 +71,7 @@ function Palette(_ref2) {
|
|
|
71
71
|
setFocusedSwatchIndex(prevFocusedSwatchIndex => {
|
|
72
72
|
var _swatchRefs$current;
|
|
73
73
|
const targetId = calculateTargetId(prevFocusedSwatchIndex, palette.length, direction);
|
|
74
|
-
(_swatchRefs$current = swatchRefs.current) === null || _swatchRefs$current === void 0 || (_swatchRefs$current = _swatchRefs$current[targetId]) === null || _swatchRefs$current === void 0
|
|
74
|
+
(_swatchRefs$current = swatchRefs.current) === null || _swatchRefs$current === void 0 || (_swatchRefs$current = _swatchRefs$current[targetId]) === null || _swatchRefs$current === void 0 || _swatchRefs$current.focus();
|
|
75
75
|
return targetId;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -97,7 +97,7 @@ function Saturation(_ref) {
|
|
|
97
97
|
var _loopRef$current;
|
|
98
98
|
// prevent text highlighting while dragging
|
|
99
99
|
e.preventDefault();
|
|
100
|
-
(_loopRef$current = loopRef.current) === null || _loopRef$current === void 0
|
|
100
|
+
(_loopRef$current = loopRef.current) === null || _loopRef$current === void 0 || _loopRef$current.focus();
|
|
101
101
|
handleMouseDown(e);
|
|
102
102
|
},
|
|
103
103
|
"data-testid": getSubDataTestId(dataTestId, 'saturation-grid'),
|
|
@@ -179,7 +179,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
179
179
|
return /*#__PURE__*/cloneElement(child, {
|
|
180
180
|
onSelect: e => {
|
|
181
181
|
var _props2, _props2$onSelect;
|
|
182
|
-
child === null || child === void 0 || (_props2 = child.props) === null || _props2 === void 0 || (_props2$onSelect = _props2.onSelect) === null || _props2$onSelect === void 0
|
|
182
|
+
child === null || child === void 0 || (_props2 = child.props) === null || _props2 === void 0 || (_props2$onSelect = _props2.onSelect) === null || _props2$onSelect === void 0 || _props2$onSelect.call(_props2, e);
|
|
183
183
|
|
|
184
184
|
// Prevents form submission
|
|
185
185
|
if ((e === null || e === void 0 ? void 0 : e.key) === 'Enter') {
|
|
@@ -229,7 +229,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
229
229
|
if (isOptionSelectedOnKeyboardHighlight) {
|
|
230
230
|
var _filteredOptions$inde, _filteredOptions$inde2;
|
|
231
231
|
setSelectedIndex(index);
|
|
232
|
-
(_filteredOptions$inde = filteredOptions[index]) === null || _filteredOptions$inde === void 0 || (_filteredOptions$inde = _filteredOptions$inde.props) === null || _filteredOptions$inde === void 0 || (_filteredOptions$inde2 = _filteredOptions$inde.onSelect) === null || _filteredOptions$inde2 === void 0
|
|
232
|
+
(_filteredOptions$inde = filteredOptions[index]) === null || _filteredOptions$inde === void 0 || (_filteredOptions$inde = _filteredOptions$inde.props) === null || _filteredOptions$inde === void 0 || (_filteredOptions$inde2 = _filteredOptions$inde.onSelect) === null || _filteredOptions$inde2 === void 0 || _filteredOptions$inde2.call(_filteredOptions$inde, e);
|
|
233
233
|
} else {
|
|
234
234
|
setHighlightedIndex(index);
|
|
235
235
|
}
|
|
@@ -288,7 +288,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
288
288
|
if (isFlyoutOpen) {
|
|
289
289
|
if (!isOptionSelectedOnKeyboardHighlight && filteredOptions.length > 0 && filteredOptions[highlightedIndex] !== undefined) {
|
|
290
290
|
var _filteredOptions$high, _filteredOptions$high2;
|
|
291
|
-
(_filteredOptions$high = filteredOptions[highlightedIndex]) === null || _filteredOptions$high === void 0 || (_filteredOptions$high = _filteredOptions$high.props) === null || _filteredOptions$high === void 0 || (_filteredOptions$high2 = _filteredOptions$high.onSelect) === null || _filteredOptions$high2 === void 0
|
|
291
|
+
(_filteredOptions$high = filteredOptions[highlightedIndex]) === null || _filteredOptions$high === void 0 || (_filteredOptions$high = _filteredOptions$high.props) === null || _filteredOptions$high === void 0 || (_filteredOptions$high2 = _filteredOptions$high.onSelect) === null || _filteredOptions$high2 === void 0 || _filteredOptions$high2.call(_filteredOptions$high, e);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
setIsFlyoutOpen(false);
|
|
@@ -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 = "._rc1-F{position:relative;display:inline-block}._-BNMl{padding-right:36px}._-BNMl._cvuOU{box-shadow:none!important;border:1px solid #898989!important}._QeJaO{margin-top:4px}._1m8wM{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._1m8wM:hover{background-color:rgba(50,54,58,.08)}._1m8wM:active{background-color:rgba(50,54,58,.11)}._1m8wM._5oF-r{transform:rotate(-180deg)}._1m8wM._I-YYx{opacity:.4}._58jsS{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}._I-YYx{cursor:not-allowed}._I-YYx:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_rc1-F","comboboxInput":"_-BNMl","ignoreFocusStyle":"_cvuOU","labelledInput":"_QeJaO","comboboxIcon":"_1m8wM","open":"_5oF-r","disabled":"_I-YYx","comboboxEmpty":"_58jsS"};
|
|
5
|
+
var stylesheet="._rc1-F{position:relative;display:inline-block}._-BNMl{padding-right:36px}._-BNMl._cvuOU{box-shadow:none!important;border:1px solid #898989!important}._QeJaO{margin-top:4px}._1m8wM{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._1m8wM:hover{background-color:rgba(50,54,58,.08)}._1m8wM:active{background-color:rgba(50,54,58,.11)}._1m8wM._5oF-r{transform:rotate(-180deg)}._1m8wM._I-YYx{opacity:.4}._58jsS{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}._I-YYx{cursor:not-allowed}._I-YYx:hover{background-color:transparent}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -35,7 +35,7 @@ const ComboboxIcon = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
35
35
|
setIsOpen(!isOpen);
|
|
36
36
|
} else {
|
|
37
37
|
var _inputRef$current;
|
|
38
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
38
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
39
39
|
}
|
|
40
40
|
}) : undefined,
|
|
41
41
|
onMouseDown: wrapEvent(onMouseDown, e => e === null || e === void 0 ? void 0 : e.preventDefault()),
|
|
@@ -75,7 +75,7 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
75
75
|
setHighlightedIndex(0);
|
|
76
76
|
}
|
|
77
77
|
setIsOpen(true);
|
|
78
|
-
onClick === null || onClick === void 0
|
|
78
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
79
79
|
},
|
|
80
80
|
role: "combobox",
|
|
81
81
|
"aria-autocomplete": isFilteringDisabled ? 'none' : 'list',
|
|
@@ -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 = "._4GjxI{grid-area:configPane;position:relative;height:100%}._nyEOn{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}._mDhSy._lCwkE ._nyEOn,._mDhSy:not(._nuX5f) ._nyEOn{-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)}._nuX5f ._nyEOn{width:0}._lCwkE._nuX5f ._nyEOn{width:30px;cursor:pointer}._SpBRa ._nyEOn{border-right-color:#eee}._-N-9f{height:100%;position:relative;width:292px}._mDhSy ._-N-9f,._nuX5f ._-N-9f{width:0}._lCwkE._mDhSy ._-N-9f,._lCwkE._nuX5f ._-N-9f{width:30px}._65EXu ._-N-9f{transition:width .5s}._SUcOA{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._nuX5f ._SUcOA{visibility:hidden}._65EXu ._SUcOA{visibility:visible}._SUcOA ._oOQmU{width:252px;margin-left:20px}._9Cjdj{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._fsIhs{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._fsIhs *{font-weight:400;font-size:16px;margin:0}._Q4w74{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._nuX5f ._Q4w74{left:0}._lCwkE._nuX5f ._Q4w74{left:30px}._Q4w74 ._bXerc{width:4px;height:100%}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._bXerc,._Q4w74:hover ._bXerc{background-color:#9dc5ed}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU>span,._Q4w74:hover ._IFerU>span{background-color:#0b6ed0;border-color:#0b6ed0}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU>span>svg,._Q4w74:hover ._IFerU>span>svg{fill:#fff}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU:active>span,._Q4w74:hover ._IFerU:active>span{background-color:#0854a1;border-color:#0854a1}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU:active>span>svg,._Q4w74:hover ._IFerU:active>span>svg{fill:#fff}._Q4w74 ._IFerU{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}._Q4w74 ._IFerU._T5Gsr._T5Gsr._T5Gsr{opacity:1}._Q4w74 ._IFerU._zezqs._zezqs._zezqs{opacity:0}._Q4w74 ._IFerU:active>span{background-color:#0854a1;border-color:#0854a1}._Q4w74 ._IFerU:active>span>svg{fill:#fff}._Q4w74 ._IFerU>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._Q4w74 ._IFerU>span>svg{fill:#515559;border-radius:50%}._nuX5f ._Q4w74 ._IFerU,._nyEOn:hover+._Q4w74 ._IFerU,._Q4w74:hover ._IFerU{opacity:1}._IFerU.focus-visible,._IFerU:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_4GjxI","paneContentContainer":"_nyEOn","unpinned":"_mDhSy","hidden":"_nuX5f","preview":"_lCwkE","openHidden":"_SpBRa","spacer":"_-N-9f","transitioning":"_65EXu","paneContent":"_SUcOA","paneContentInner":"_oOQmU","header":"_9Cjdj","title":"_fsIhs","clickableArea":"_Q4w74","hoverBorder":"_bXerc","toolbarPanelExpandCollapseButton":"_IFerU","overrideShow":"_T5Gsr","overrideHide":"_zezqs"};
|
|
5
|
+
var stylesheet="._4GjxI{grid-area:configPane;position:relative;height:100%}._nyEOn{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}._mDhSy._lCwkE ._nyEOn,._mDhSy:not(._nuX5f) ._nyEOn{-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)}._nuX5f ._nyEOn{width:0}._lCwkE._nuX5f ._nyEOn{width:30px;cursor:pointer}._SpBRa ._nyEOn{border-right-color:#eee}._-N-9f{height:100%;position:relative;width:292px}._mDhSy ._-N-9f,._nuX5f ._-N-9f{width:0}._lCwkE._mDhSy ._-N-9f,._lCwkE._nuX5f ._-N-9f{width:30px}._65EXu ._-N-9f{transition:width .5s}._SUcOA{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._nuX5f ._SUcOA{visibility:hidden}._65EXu ._SUcOA{visibility:visible}._SUcOA ._oOQmU{width:252px;margin-left:20px}._9Cjdj{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._fsIhs{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._fsIhs *{font-weight:400;font-size:16px;margin:0}._Q4w74{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._nuX5f ._Q4w74{left:0}._lCwkE._nuX5f ._Q4w74{left:30px}._Q4w74 ._bXerc{width:4px;height:100%}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._bXerc,._Q4w74:hover ._bXerc{background-color:#9dc5ed}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU>span,._Q4w74:hover ._IFerU>span{background-color:#0b6ed0;border-color:#0b6ed0}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU>span>svg,._Q4w74:hover ._IFerU>span>svg{fill:#fff}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU:active>span,._Q4w74:hover ._IFerU:active>span{background-color:#0854a1;border-color:#0854a1}._lCwkE._nuX5f ._nyEOn:hover+._Q4w74 ._IFerU:active>span>svg,._Q4w74:hover ._IFerU:active>span>svg{fill:#fff}._Q4w74 ._IFerU{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}._Q4w74 ._IFerU._T5Gsr._T5Gsr._T5Gsr{opacity:1}._Q4w74 ._IFerU._zezqs._zezqs._zezqs{opacity:0}._Q4w74 ._IFerU:active>span{background-color:#0854a1;border-color:#0854a1}._Q4w74 ._IFerU:active>span>svg{fill:#fff}._Q4w74 ._IFerU>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._Q4w74 ._IFerU>span>svg{fill:#515559;border-radius:50%}._nuX5f ._Q4w74 ._IFerU,._nyEOn:hover+._Q4w74 ._IFerU,._Q4w74:hover ._IFerU{opacity:1}._IFerU.focus-visible,._IFerU:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"divider":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._oPlxK{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
+
var styles = {"divider":"_oPlxK"};
|
|
5
|
+
var stylesheet="._oPlxK{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -102,7 +102,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
102
102
|
const selectHighlightedItem = e => {
|
|
103
103
|
var _option$handleSelect;
|
|
104
104
|
const option = options[highlightedIndex];
|
|
105
|
-
option === null || option === void 0 || (_option$handleSelect = option.handleSelect) === null || _option$handleSelect === void 0
|
|
105
|
+
option === null || option === void 0 || (_option$handleSelect = option.handleSelect) === null || _option$handleSelect === void 0 || _option$handleSelect.call(option, e);
|
|
106
106
|
};
|
|
107
107
|
useClickOutside([buttonRef, listRef], handleClose);
|
|
108
108
|
useEffect(() => {
|
|
@@ -125,7 +125,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
125
125
|
var _buttonRef$current;
|
|
126
126
|
setValue(newValue);
|
|
127
127
|
handleClose();
|
|
128
|
-
(_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0
|
|
128
|
+
(_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 || _buttonRef$current.focus();
|
|
129
129
|
}
|
|
130
130
|
}, [isMultiSelect, handleClose, setValue]);
|
|
131
131
|
const onKeyDownButton = e => {
|
|
@@ -205,13 +205,13 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
205
205
|
// close, focus button, and don't let event bubble up
|
|
206
206
|
e.stopPropagation();
|
|
207
207
|
handleClose();
|
|
208
|
-
(_buttonRef$current2 = buttonRef.current) === null || _buttonRef$current2 === void 0
|
|
208
|
+
(_buttonRef$current2 = buttonRef.current) === null || _buttonRef$current2 === void 0 || _buttonRef$current2.focus();
|
|
209
209
|
e.preventDefault(); // prevent Safari from exiting full-screen mode
|
|
210
210
|
break;
|
|
211
211
|
case 'Tab':
|
|
212
212
|
// close and focus next focusable element
|
|
213
213
|
handleClose();
|
|
214
|
-
(_buttonRef$current3 = buttonRef.current) === null || _buttonRef$current3 === void 0
|
|
214
|
+
(_buttonRef$current3 = buttonRef.current) === null || _buttonRef$current3 === void 0 || _buttonRef$current3.focus();
|
|
215
215
|
break;
|
|
216
216
|
case 'PageUp':
|
|
217
217
|
case 'Home':
|
|
@@ -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 = "._WMXJO{max-width:100%;position:relative;display:inline-block}._0yaEO{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._0yaEO:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._0yaEO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._0yaEO:disabled,._0yaEO[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._0yaEO._kWur-{border-color:#b00}._0yaEO._kWur-:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._0yaEO._GZ61p{min-width:120px;padding:0 4px 0 12px}._0yaEO._gOjbb{margin-top:4px}._0yaEO._v3k3z:not([aria-disabled=true]):not(:disabled){color:#32363a}._0yaEO ._11Kwy{min-height:10px}._0yaEO ._11Kwy._MaEiD{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._0yaEO ._11Kwy._GoThi{display:inline-flex;align-items:center}._0yaEO ._T0BSM{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._0yaEO ._T0BSM._NbtTb{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._0yaEO ._T0BSM._c7Gcl{transform:rotate(-180deg)}._Giy-o[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._TJa8L{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._zJOEi{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}._CMi4i{fill:#515559}._5UoN8{margin:2px 12px 2px 0}._5UoN8._qsa6H>svg{border-color:#0b6ed0}._3W4Wd{width:100%}";
|
|
4
|
+
var styles = {"container":"_WMXJO","button":"_0yaEO","invalid":"_kWur-","hasText":"_GZ61p","labelled":"_gOjbb","selected":"_v3k3z","buttonLabel":"_11Kwy","isString":"_MaEiD","isNode":"_GoThi","icon":"_T0BSM","disabled":"_NbtTb","open":"_c7Gcl","option":"_Giy-o","search":"_TJa8L","emptyOption":"_zJOEi","searchIcon":"_CMi4i","checkbox":"_5UoN8","highlighted":"_qsa6H","searchInput":"_3W4Wd"};
|
|
5
|
+
var stylesheet="._WMXJO{max-width:100%;position:relative;display:inline-block}._0yaEO{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._0yaEO:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._0yaEO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._0yaEO:disabled,._0yaEO[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._0yaEO._kWur-{border-color:#b00}._0yaEO._kWur-:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._0yaEO._GZ61p{min-width:120px;padding:0 4px 0 12px}._0yaEO._gOjbb{margin-top:4px}._0yaEO._v3k3z:not([aria-disabled=true]):not(:disabled){color:#32363a}._0yaEO ._11Kwy{min-height:10px}._0yaEO ._11Kwy._MaEiD{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._0yaEO ._11Kwy._GoThi{display:inline-flex;align-items:center}._0yaEO ._T0BSM{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._0yaEO ._T0BSM._NbtTb{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._0yaEO ._T0BSM._c7Gcl{transform:rotate(-180deg)}._Giy-o[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._TJa8L{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._zJOEi{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}._CMi4i{fill:#515559}._5UoN8{margin:2px 12px 2px 0}._5UoN8._qsa6H>svg{border-color:#0b6ed0}._3W4Wd{width:100%}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -82,7 +82,7 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
82
82
|
const isInvalid = isInvalidProp !== undefined ? isInvalidProp : dropdownIsInvalid;
|
|
83
83
|
const handleClick = e => {
|
|
84
84
|
if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
|
|
85
|
-
onClick === null || onClick === void 0
|
|
85
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
86
86
|
// Needed because some browsers don't focus on click
|
|
87
87
|
e.currentTarget.focus();
|
|
88
88
|
setIsOpen(currentIsOpen => {
|
|
@@ -92,7 +92,7 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
92
92
|
};
|
|
93
93
|
const handleKeyDown = e => {
|
|
94
94
|
if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
|
|
95
|
-
onKeyDown === null || onKeyDown === void 0
|
|
95
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
96
96
|
onKeyDownButton(e);
|
|
97
97
|
};
|
|
98
98
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? /*#__PURE__*/React__default.cloneElement(children, {
|
|
@@ -110,13 +110,13 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
110
110
|
id: buttonId,
|
|
111
111
|
onFocus: e => {
|
|
112
112
|
var _children$props5, _children$props5$onFo;
|
|
113
|
-
(_children$props5 = children.props) === null || _children$props5 === void 0 || (_children$props5$onFo = _children$props5.onFocus) === null || _children$props5$onFo === void 0
|
|
114
|
-
onFocus === null || onFocus === void 0
|
|
113
|
+
(_children$props5 = children.props) === null || _children$props5 === void 0 || (_children$props5$onFo = _children$props5.onFocus) === null || _children$props5$onFo === void 0 || _children$props5$onFo.call(_children$props5, e);
|
|
114
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
115
115
|
},
|
|
116
116
|
onBlur: e => {
|
|
117
117
|
var _children$props6, _children$props6$onBl;
|
|
118
|
-
(_children$props6 = children.props) === null || _children$props6 === void 0 || (_children$props6$onBl = _children$props6.onBlur) === null || _children$props6$onBl === void 0
|
|
119
|
-
onBlur === null || onBlur === void 0
|
|
118
|
+
(_children$props6 = children.props) === null || _children$props6 === void 0 || (_children$props6$onBl = _children$props6.onBlur) === null || _children$props6$onBl === void 0 || _children$props6$onBl.call(_children$props6, e);
|
|
119
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
120
120
|
},
|
|
121
121
|
onKeyDown: wrapEvent((_children$props7 = children.props) === null || _children$props7 === void 0 ? void 0 : _children$props7.onKeyDown, handleKeyDown),
|
|
122
122
|
onClick: wrapEvent((_children$props8 = children.props) === null || _children$props8 === void 0 ? void 0 : _children$props8.onClick, handleClick)
|
|
@@ -81,7 +81,7 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
81
81
|
"aria-labelledby": ariaLabelledby,
|
|
82
82
|
hidden: !isOpen,
|
|
83
83
|
onKeyDown: e => {
|
|
84
|
-
onKeyDown === null || onKeyDown === void 0
|
|
84
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
85
85
|
onKeyDownList(e);
|
|
86
86
|
},
|
|
87
87
|
style: {
|
|
@@ -43,7 +43,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
43
43
|
} = useDropdownHeaderContext();
|
|
44
44
|
const isVisible = useMemo(() => isSearchFilteringDisabled || !label || !searchValue || typeof label === 'string' && label.toLowerCase().includes(searchValue.toLowerCase()), [isSearchFilteringDisabled, label, searchValue]);
|
|
45
45
|
useEffect(() => {
|
|
46
|
-
setVisibleChildIds === null || setVisibleChildIds === void 0
|
|
46
|
+
setVisibleChildIds === null || setVisibleChildIds === void 0 || setVisibleChildIds(visibleChildIds => {
|
|
47
47
|
const duplicateSet = new Set(visibleChildIds);
|
|
48
48
|
if (isVisible) {
|
|
49
49
|
return duplicateSet.add(value);
|
|
@@ -80,7 +80,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
80
80
|
listRef.current.scrollTop = internalRef.current.offsetTop - (isSearchable ? searchHeight : 0);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
(_internalRef$current = internalRef.current) === null || _internalRef$current === void 0
|
|
83
|
+
(_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 || _internalRef$current.focus({
|
|
84
84
|
preventScroll: true
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -42,14 +42,14 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
42
42
|
// for keyboard navigation
|
|
43
43
|
if (isHighlighted) {
|
|
44
44
|
var _inputRef$current2;
|
|
45
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0
|
|
45
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
46
46
|
}
|
|
47
47
|
}, [isHighlighted]);
|
|
48
48
|
useEffect(() => {
|
|
49
49
|
// for initial open with mouse
|
|
50
50
|
if (isHighlighted && isOpen) {
|
|
51
51
|
var _inputRef$current3;
|
|
52
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0
|
|
52
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
53
53
|
}
|
|
54
54
|
// Omitted `isHighlighted` because we don't want to focus the input on mouse enter.
|
|
55
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|