@qualtrics/ui-react 2.25.0 → 2.27.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 +32 -0
- package/dist/__shared/cjs/{index-610a1e02.js → index-88aa3bce.js} +267 -256
- package/dist/__shared/cjs/{index-5b3b3406.js → index-e6893573.js} +23 -3
- 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/Icon/IconTypes.js +5 -0
- 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 +2 -2
- 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/components/AIChatbotIcon.js +6 -0
- package/dist/icons/components/LinesIcon.js +6 -0
- package/dist/icons/components/RobotConversationalIcon.js +6 -0
- package/dist/icons/components/ScatterPlotIcon.js +6 -0
- package/dist/icons/components/UnmoderatedUserTestingIcon.js +6 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.es.js +5 -0
- package/dist/icons/index.js +6 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +36 -8
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- 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/CollectionGrid/CollectionGrid.js +34 -0
- package/dist/next/CollectionGrid/CollectionGridItem.js +18 -0
- package/dist/next/CollectionGrid/index.js +2 -0
- 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/LayoutGrid/LayoutGrid.js +38 -0
- package/dist/next/LayoutGrid/LayoutGridItem.js +23 -0
- package/dist/next/LayoutGrid/index.js +2 -0
- 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} +61 -24
- package/dist/next/Menu/Menu.js +19 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +21 -14
- package/dist/next/Menu/MenuPane.js +73 -54
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +57 -39
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +10 -6
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SubSelect.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/Stack.js +1 -18
- 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 +57 -3
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +614 -268
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +30 -0
- package/dist/utils/GridChildrenWrapper/index.js +1 -0
- 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 +3 -1
- package/next/package.json +4 -2
- package/package.json +5 -3
- /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
|
@@ -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 = {"searchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._vSIAt{display:inline-block;position:relative}._Enovm._Enovm{padding-left:36px;padding-right:36px;width:100%}._Enovm._Enovm:disabled+._kiG8Z{fill-opacity:.6}._kiG8Z{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._kiG8Z._kG-wr{z-index:20}._5JjAA{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._5JjAA:hover{cursor:pointer}._5JjAA:hover>._Exa2Y{fill:#32363a}._5JjAA:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Exa2Y{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_vSIAt","searchInputInput":"_Enovm","searchInputSearchIcon":"_kiG8Z","usedWithinInputGroup":"_kG-wr","searchInputClearButton":"_5JjAA","searchInputClearButtonIcon":"_Exa2Y"};
|
|
5
|
+
var stylesheet="._vSIAt{display:inline-block;position:relative}._Enovm._Enovm{padding-left:36px;padding-right:36px;width:100%}._Enovm._Enovm:disabled+._kiG8Z{fill-opacity:.6}._kiG8Z{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._kiG8Z._kG-wr{z-index:20}._5JjAA{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._5JjAA:hover{cursor:pointer}._5JjAA:hover>._Exa2Y{fill:#32363a}._5JjAA:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Exa2Y{fill:#515559}";
|
|
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 SidebarNav = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
35
35
|
useEffect(() => {
|
|
36
36
|
if (isExpandCollapseButtonFocused) {
|
|
37
37
|
var _expandCollapseButton;
|
|
38
|
-
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0
|
|
38
|
+
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0 || _expandCollapseButton.focus();
|
|
39
39
|
}
|
|
40
40
|
}, [isCollapsed, isExpandCollapseButtonFocused]);
|
|
41
41
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -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 = {"sideBarNav":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._bWJBl{grid-area:sidebarNav;height:100%;display:flex;flex-direction:column;align-items:center;min-width:165px;max-width:240px;background-color:#fff;border-right:1px solid #eee;overflow:hidden}._bWJBl._9jTaa{width:69px;min-width:auto;max-width:none}._3IFF8{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._KNzN7{margin-bottom:12px;background-color:transparent!important}._KNzN7:hover{background-color:#efefef!important}._KNzN7:hover ._gSG0J{fill:#32363a}._KNzN7:hover ._Ma9t1{color:#32363a}._KNzN7:active{background-color:rgba(11,110,208,.12)!important}._KNzN7:active ._gSG0J{fill:#0854a1}._KNzN7:active ._Ma9t1{color:#0854a1}._KNzN7._mbrKO{background-color:rgba(11,110,208,.08)!important}._KNzN7._mbrKO ._gSG0J{fill:#0b6ed0}._KNzN7._mbrKO ._Ma9t1{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._KNzN7._mbrKO:hover{background-color:rgba(11,110,208,.15)!important}._KNzN7._mbrKO:hover ._gSG0J{fill:#085caf}._KNzN7._mbrKO:hover ._Ma9t1{color:#085caf}._KNzN7._mbrKO:active{background-color:rgba(11,110,208,.12)!important}._KNzN7._mbrKO:active ._gSG0J{fill:#0854a1}._KNzN7._mbrKO:active ._Ma9t1{color:#0854a1}._QCumD{border-radius:6px}._QCumD ._gSG0J{display:block;fill:#515559}._3nH-A{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._gvRQ2,._XqDaQ{width:100%;display:flex;align-items:start;border:1px solid transparent;border-radius:6px;outline:none;cursor:pointer;padding:5px 11px 5px 5px;text-decoration:none}._gvRQ2 ._gSG0J,._XqDaQ ._gSG0J{fill:#515559}._gvRQ2 ._Ma9t1,._XqDaQ ._Ma9t1{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._KNzN7.focus-visible,._KNzN7:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"sideBarNav":"_bWJBl","collapsed":"_9jTaa","navItems":"_3IFF8","sidebarNavItem":"_KNzN7","icon":"_gSG0J","label":"_Ma9t1","selected":"_mbrKO","sidebarNavItemIconButton":"_QCumD","expandCollapseButtonContainer":"_3nH-A","navLink":"_XqDaQ","iconButtonWithLabel":"_gvRQ2"};
|
|
5
|
+
var stylesheet="._bWJBl{grid-area:sidebarNav;height:100%;display:flex;flex-direction:column;align-items:center;min-width:165px;max-width:240px;background-color:#fff;border-right:1px solid #eee;overflow:hidden}._bWJBl._9jTaa{width:69px;min-width:auto;max-width:none}._3IFF8{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._KNzN7{margin-bottom:12px;background-color:transparent!important}._KNzN7:hover{background-color:#efefef!important}._KNzN7:hover ._gSG0J{fill:#32363a}._KNzN7:hover ._Ma9t1{color:#32363a}._KNzN7:active{background-color:rgba(11,110,208,.12)!important}._KNzN7:active ._gSG0J{fill:#0854a1}._KNzN7:active ._Ma9t1{color:#0854a1}._KNzN7._mbrKO{background-color:rgba(11,110,208,.08)!important}._KNzN7._mbrKO ._gSG0J{fill:#0b6ed0}._KNzN7._mbrKO ._Ma9t1{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._KNzN7._mbrKO:hover{background-color:rgba(11,110,208,.15)!important}._KNzN7._mbrKO:hover ._gSG0J{fill:#085caf}._KNzN7._mbrKO:hover ._Ma9t1{color:#085caf}._KNzN7._mbrKO:active{background-color:rgba(11,110,208,.12)!important}._KNzN7._mbrKO:active ._gSG0J{fill:#0854a1}._KNzN7._mbrKO:active ._Ma9t1{color:#0854a1}._QCumD{border-radius:6px}._QCumD ._gSG0J{display:block;fill:#515559}._3nH-A{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._gvRQ2,._XqDaQ{width:100%;display:flex;align-items:start;border:1px solid transparent;border-radius:6px;outline:none;cursor:pointer;padding:5px 11px 5px 5px;text-decoration:none}._gvRQ2 ._gSG0J,._XqDaQ ._gSG0J{fill:#515559}._gvRQ2 ._Ma9t1,._XqDaQ ._Ma9t1{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._KNzN7.focus-visible,._KNzN7: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 };
|
|
@@ -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 = {"slider":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._EdmAO{height:auto;width:200px;padding:5px 10px}._ZnEm5{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._GmYf0{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._GDzzX,._GmYf0{position:absolute}._GDzzX{top:-5px;left:-10px;border:1px solid #007ac0;overflow:visible;width:18px;height:18px;padding:0;margin:0;border-radius:9px;cursor:pointer;display:inline-block;text-align:center;background:#fff;text-decoration:none;outline:none}._GDzzX:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._GDzzX.focus-visible,._GDzzX:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"slider":"_EdmAO","track":"_ZnEm5","fill":"_GmYf0","button":"_GDzzX"};
|
|
5
|
+
var stylesheet="._EdmAO{height:auto;width:200px;padding:5px 10px}._ZnEm5{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._GmYf0{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._GDzzX,._GmYf0{position:absolute}._GDzzX{top:-5px;left:-10px;border:1px solid #007ac0;overflow:visible;width:18px;height:18px;padding:0;margin:0;border-radius:9px;cursor:pointer;display:inline-block;text-align:center;background:#fff;text-decoration:none;outline:none}._GDzzX:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._GDzzX.focus-visible,._GDzzX: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 };
|
|
@@ -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 = {"switch":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6CQ66{cursor:pointer;display:inline-flex;position:relative;align-items:center;margin-top:6px;margin-bottom:6px}._6CQ66._mXjpY{cursor:not-allowed}._0iyMm{cursor:pointer;position:absolute;top:0;opacity:0;height:16px;width:32px;border-radius:34px;z-index:10}._0iyMm:disabled{cursor:not-allowed}._0iyMm:disabled~._SSvh-{opacity:.4}._0iyMm:checked~._SSvh-{background-color:#0b6ed0}._0iyMm:checked~._SSvh-:before{transform:translateX(16px);background-color:#fff;border-color:#0b6ed0}._0iyMm:hover:not(:disabled):not(:checked)~._SSvh-{background-color:#6a6a6a}._0iyMm:hover:not(:disabled):checked~._SSvh-{background-color:#085caf}._0iyMm:hover:not(:disabled):checked~._SSvh-:before{border-color:#085caf}._SSvh-{width:32px;background-color:#898989;border-radius:34px}._SSvh-,._SSvh-:before{height:16px;transition:.2s}._SSvh-:before{box-sizing:border-box;position:absolute;left:0;content:\"\";width:16px;background-color:#fff;border-radius:50%;border:1px solid #898989;z-index:0}._4vyLj{color:#32363a;display:flex;align-items:center;cursor:pointer}._trzrp{cursor:auto;color:hsla(0,0%,53.7%,.4)}._wijKL{margin-right:12px;flex-shrink:0}._0iyMm.focus-visible~._SSvh-,._0iyMm:focus-visible~._SSvh-{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"switch":"_6CQ66","disabled":"_mXjpY","input":"_0iyMm","slider":"_SSvh-","label":"_4vyLj","labelDisabled":"_trzrp","wrappedInput":"_wijKL"};
|
|
5
|
+
var stylesheet="._6CQ66{cursor:pointer;display:inline-flex;position:relative;align-items:center;margin-top:6px;margin-bottom:6px}._6CQ66._mXjpY{cursor:not-allowed}._0iyMm{cursor:pointer;position:absolute;top:0;opacity:0;height:16px;width:32px;border-radius:34px;z-index:10}._0iyMm:disabled{cursor:not-allowed}._0iyMm:disabled~._SSvh-{opacity:.4}._0iyMm:checked~._SSvh-{background-color:#0b6ed0}._0iyMm:checked~._SSvh-:before{transform:translateX(16px);background-color:#fff;border-color:#0b6ed0}._0iyMm:hover:not(:disabled):not(:checked)~._SSvh-{background-color:#6a6a6a}._0iyMm:hover:not(:disabled):checked~._SSvh-{background-color:#085caf}._0iyMm:hover:not(:disabled):checked~._SSvh-:before{border-color:#085caf}._SSvh-{width:32px;background-color:#898989;border-radius:34px}._SSvh-,._SSvh-:before{height:16px;transition:.2s}._SSvh-:before{box-sizing:border-box;position:absolute;left:0;content:\"\";width:16px;background-color:#fff;border-radius:50%;border:1px solid #898989;z-index:0}._4vyLj{color:#32363a;display:flex;align-items:center;cursor:pointer}._trzrp{cursor:auto;color:hsla(0,0%,53.7%,.4)}._wijKL{margin-right:12px;flex-shrink:0}._0iyMm.focus-visible~._SSvh-,._0iyMm:focus-visible~._SSvh-{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 = {"table":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._PFPlK{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._PFPlK ._qSh-Z:first-child,._PFPlK ._RqRLp:first-child{padding-left:16px}._WL9oK{font-size:12px}._RqRLp{padding:12px 8px;text-align:left;font-weight:700}._l0tBw ._arrI4{border-top:1px solid #ededed}._l0tBw ._arrI4:hover{background-color:#fafafa}._arrI4{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._qSh-Z{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
4
|
+
var styles = {"table":"_PFPlK","tableCell":"_qSh-Z","tableHeaderCell":"_RqRLp","tableHead":"_WL9oK","tableBody":"_l0tBw","tableRow":"_arrI4"};
|
|
5
|
+
var stylesheet="._PFPlK{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._PFPlK ._qSh-Z:first-child,._PFPlK ._RqRLp:first-child{padding-left:16px}._WL9oK{font-size:12px}._RqRLp{padding:12px 8px;text-align:left;font-weight:700}._l0tBw ._arrI4{border-top:1px solid #ededed}._l0tBw ._arrI4:hover{background-color:#fafafa}._arrI4{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._qSh-Z{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
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 = {"tablist":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._qroyD{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._qroyD._mcJx6 ._Rck2U{flex:1 1 0px;max-width:none}._Rck2U{background:inherit;font-family:inherit;font-size:100%;line-height:1.15;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._Rck2U:hover{color:#32363a}._Rck2U._IsKWR{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._HUGuL{padding-top:32px}._HUGuL._CJIyr{display:none}._Rck2U.focus-visible,._Rck2U:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tablist":"_qroyD","grow":"_mcJx6","tab":"_Rck2U","selected":"_IsKWR","tabpanel":"_HUGuL","inactive":"_CJIyr"};
|
|
5
|
+
var stylesheet="._qroyD{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._qroyD._mcJx6 ._Rck2U{flex:1 1 0px;max-width:none}._Rck2U{background:inherit;font-family:inherit;font-size:100%;line-height:1.15;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._Rck2U:hover{color:#32363a}._Rck2U._IsKWR{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._HUGuL{padding-top:32px}._HUGuL._CJIyr{display:none}._Rck2U.focus-visible,._Rck2U: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 };
|
|
@@ -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 = {"tooltip":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-OD5K{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._-OD5K._toUoh{color:#32363a;background-color:#fff}._etBBA{opacity:1;pointer-events:all}._g1d-a,._g1d-a>div{position:absolute;width:8px;height:8px;background:inherit}._g1d-a{visibility:hidden;z-index:2000}._g1d-a>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._g1d-a{bottom:-4px}[data-popper-placement^=top]>._g1d-a>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._g1d-a{left:-5px}[data-popper-placement^=right]>._g1d-a>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._g1d-a{top:-5px}[data-popper-placement^=bottom]>._g1d-a>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._g1d-a{right:-4px}[data-popper-placement^=left]>._g1d-a>div{border-bottom-color:transparent;border-left-color:transparent}._bWKD2{position:absolute}[data-popper-placement^=top]>._bWKD2{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._bWKD2{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._bWKD2{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._bWKD2{top:0;right:-13px;width:17px;height:100%}";
|
|
4
|
+
var styles = {"tooltip":"_-OD5K","lightTheme":"_toUoh","visible":"_etBBA","arrow":"_g1d-a","offsetBackplate":"_bWKD2"};
|
|
5
|
+
var stylesheet="._-OD5K{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._-OD5K._toUoh{color:#32363a;background-color:#fff}._etBBA{opacity:1;pointer-events:all}._g1d-a,._g1d-a>div{position:absolute;width:8px;height:8px;background:inherit}._g1d-a{visibility:hidden;z-index:2000}._g1d-a>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._g1d-a{bottom:-4px}[data-popper-placement^=top]>._g1d-a>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._g1d-a{left:-5px}[data-popper-placement^=right]>._g1d-a>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._g1d-a{top:-5px}[data-popper-placement^=bottom]>._g1d-a>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._g1d-a{right:-4px}[data-popper-placement^=left]>._g1d-a>div{border-bottom-color:transparent;border-left-color:transparent}._bWKD2{position:absolute}[data-popper-placement^=top]>._bWKD2{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._bWKD2{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._bWKD2{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._bWKD2{top:0;right:-13px;width:17px;height: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 };
|
|
@@ -51,13 +51,13 @@ const Alpha = function Alpha(_ref) {
|
|
|
51
51
|
const containerRef = React__default.useRef(null);
|
|
52
52
|
const handleChange = useEventCallback(e => {
|
|
53
53
|
const change = getMouseChange(e, hsl, alpha, containerRef.current);
|
|
54
|
-
onChange === null || onChange === void 0
|
|
54
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
55
55
|
});
|
|
56
56
|
const handleMouseDown = useMouseDrag(handleChange);
|
|
57
57
|
function handleKeyDown(e) {
|
|
58
58
|
if (Object.keys(KEY_CHANGES).indexOf(e.key) > -1) {
|
|
59
59
|
const change = getKeyChange(e, hsl);
|
|
60
|
-
onChange === null || onChange === void 0
|
|
60
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -46,7 +46,7 @@ const ColorPicker = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
46
46
|
function handleChange(rawColor, e) {
|
|
47
47
|
const nextColor = new Color(rawColor);
|
|
48
48
|
setColor(nextColor);
|
|
49
|
-
onChange === null || onChange === void 0
|
|
49
|
+
onChange === null || onChange === void 0 || onChange(nextColor.getValue(), e);
|
|
50
50
|
}
|
|
51
51
|
let alpha;
|
|
52
52
|
let width = 136;
|
|
@@ -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 = {"colorPickerBtnColor":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._r-PWB{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._YQeGA{margin-right:-12px;margin-left:4px}._n0Jo3{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._JTTBz{margin:8px 8px 0;display:flex}._pE7fO,._zt1xA{margin-left:4px}._A2Tum{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._MrUIR{margin:0 4px 4px 0}._MrUIR:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._WPnFY{margin:4px 8px 8px}._3iLUF{position:relative;width:96px;height:96px;outline:0}._3iLUF.focus-visible ._yInwR,._3iLUF:focus-visible ._yInwR{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wJygl{background:linear-gradient(90deg,#fff,transparent)}._aR5q3,._wJygl{position:absolute;top:0;right:0;bottom:0;left:0}._aR5q3{background:linear-gradient(0deg,#000,transparent)}._yInwR{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._Sj-5y{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._Sj-5y.focus-visible ._Yz2uy,._Sj-5y:focus-visible ._Yz2uy{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Yz2uy{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._NezoC{position:relative;width:16px;height:96px}._Goa4y{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._Goa4y,._Rgh39{position:absolute}._Rgh39{top:0;right:0;bottom:0;left:0;outline:0}._Rgh39.focus-visible ._Goa4y,._Rgh39:focus-visible ._Goa4y{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._7LPcY{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._nW1H2{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._nW1H2.focus-visible,._nW1H2:focus-visible{outline:none}._nW1H2.focus-visible,._nW1H2:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._J-E8S{display:flex}._J-E8S ._oKhEu{position:relative;flex-shrink:0;width:26px;height:26px}._J-E8S ._bWzTR{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._J-E8S ._Eb8-E{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
4
|
+
var styles = {"colorPickerBtnColor":"_r-PWB","colorPickerBtnIcon":"_YQeGA","colorPicker":"_n0Jo3","colorPickerSliderContainer":"_JTTBz","colorPickerHue":"_zt1xA","colorPickerAlpha":"_pE7fO","colorPickerSwatches":"_A2Tum","colorPickerSwatch":"_MrUIR","colorPickerHex":"_WPnFY","saturation":"_3iLUF","saturationCircle":"_yInwR","saturationWhite":"_wJygl","saturationBlack":"_aR5q3","hue":"_Sj-5y","hueSlider":"_Yz2uy","alpha":"_NezoC","alphaSlider":"_Goa4y","alphaGradient":"_Rgh39","alphaCheckerboard":"_7LPcY","swatch":"_nW1H2","hex":"_J-E8S","hexSwatch":"_oKhEu","hexSwatchColor":"_bWzTR","hexInput":"_Eb8-E"};
|
|
5
|
+
var stylesheet="._r-PWB{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._YQeGA{margin-right:-12px;margin-left:4px}._n0Jo3{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._JTTBz{margin:8px 8px 0;display:flex}._pE7fO,._zt1xA{margin-left:4px}._A2Tum{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._MrUIR{margin:0 4px 4px 0}._MrUIR:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._WPnFY{margin:4px 8px 8px}._3iLUF{position:relative;width:96px;height:96px;outline:0}._3iLUF.focus-visible ._yInwR,._3iLUF:focus-visible ._yInwR{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wJygl{background:linear-gradient(90deg,#fff,transparent)}._aR5q3,._wJygl{position:absolute;top:0;right:0;bottom:0;left:0}._aR5q3{background:linear-gradient(0deg,#000,transparent)}._yInwR{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._Sj-5y{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._Sj-5y.focus-visible ._Yz2uy,._Sj-5y:focus-visible ._Yz2uy{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Yz2uy{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._NezoC{position:relative;width:16px;height:96px}._Goa4y{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._Goa4y,._Rgh39{position:absolute}._Rgh39{top:0;right:0;bottom:0;left:0;outline:0}._Rgh39.focus-visible ._Goa4y,._Rgh39:focus-visible ._Goa4y{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._7LPcY{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._nW1H2{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._nW1H2.focus-visible,._nW1H2:focus-visible{outline:none}._nW1H2.focus-visible,._nW1H2:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._J-E8S{display:flex}._J-E8S ._oKhEu{position:relative;flex-shrink:0;width:26px;height:26px}._J-E8S ._bWzTR{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._J-E8S ._Eb8-E{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius: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 };
|
|
@@ -33,7 +33,7 @@ const HexInput = function HexInput(_ref) {
|
|
|
33
33
|
function handleChange(e) {
|
|
34
34
|
setValue(e.target.value);
|
|
35
35
|
if (isValid(e.target.value)) {
|
|
36
|
-
onChange === null || onChange === void 0
|
|
36
|
+
onChange === null || onChange === void 0 || onChange(e.target.value, e);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
function handleBlur() {
|
|
@@ -51,13 +51,13 @@ const Hue = function Hue(_ref) {
|
|
|
51
51
|
const containerRef = React__default.useRef(null);
|
|
52
52
|
const handleChange = useEventCallback(e => {
|
|
53
53
|
const change = getMouseChange(e, hsb, containerRef.current);
|
|
54
|
-
onChange === null || onChange === void 0
|
|
54
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
55
55
|
});
|
|
56
56
|
const handleMouseDown = useMouseDrag(handleChange);
|
|
57
57
|
function handleKeyDown(e) {
|
|
58
58
|
if (Object.keys(KEY_CHANGES).indexOf(e.key) > -1) {
|
|
59
59
|
const change = getKeyChange(e, hsb);
|
|
60
|
-
onChange === null || onChange === void 0
|
|
60
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return (
|
|
@@ -78,13 +78,13 @@ const Saturation = function Saturation(_ref) {
|
|
|
78
78
|
} = _ref;
|
|
79
79
|
const containerRef = React__default.useRef(null);
|
|
80
80
|
const handleChange = useEventCallback(e => {
|
|
81
|
-
onChange === null || onChange === void 0
|
|
81
|
+
onChange === null || onChange === void 0 || onChange(getMouseChange(e, hsb, containerRef.current), e);
|
|
82
82
|
});
|
|
83
83
|
const handleMouseDown = useMouseDrag(handleChange);
|
|
84
84
|
function handleKeyDown(e) {
|
|
85
85
|
if (Object.keys(KEY_CHANGES).indexOf(e.key) > -1) {
|
|
86
86
|
const change = getKeyChange(e, hsb);
|
|
87
|
-
onChange === null || onChange === void 0
|
|
87
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return (
|
|
@@ -12,7 +12,7 @@ const Swatch = function Swatch(_ref) {
|
|
|
12
12
|
...rest
|
|
13
13
|
} = _ref;
|
|
14
14
|
function handleClick(e) {
|
|
15
|
-
onClick === null || onClick === void 0
|
|
15
|
+
onClick === null || onClick === void 0 || onClick(color, e);
|
|
16
16
|
}
|
|
17
17
|
const handleKeyDown = e => e.keyCode === ENTER && (onClick === null || onClick === void 0 ? void 0 : onClick(color, e));
|
|
18
18
|
return /*#__PURE__*/React__default.createElement("span", _extends({}, rest, {
|
|
@@ -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 = {"numberStepperContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._fpmZ9{display:inline-flex}._w4Yvj{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._w4Yvj:hover:not(._HQPUF){cursor:pointer;background:#f5f5f5}._w4Yvj._ylYK0{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._w4Yvj._HQPUF{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._w4Yvj._HQPUF>svg{opacity:.4}._w4Yvj::-webkit-inner-spin-button,._w4Yvj::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._w4Yvj:focus{z-index:0;border:none;border-radius:4px}._w4Yvj:focus:not(._ylYK0){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._sqgfG,._w4Yvj:focus:not(._HQPUF){background:#fafafa}._sqgfG{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._sqgfG:hover:not(._HQPUF){cursor:pointer;background:#f5f5f5}._sqgfG:active:not(._HQPUF){background:#e5e5e5}._sqgfG._HQPUF{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._sqgfG._HQPUF>svg{opacity:.4}._4hA1L{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._4hA1L:hover:not(._HQPUF){cursor:pointer;background:#f5f5f5}._4hA1L:active:not(._HQPUF){background:#e5e5e5}._4hA1L._HQPUF{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._4hA1L._HQPUF>svg{opacity:.4}._awlbI{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_fpmZ9","numberStepperInput":"_w4Yvj","disabled":"_HQPUF","invalid":"_ylYK0","decrementBtn":"_sqgfG","incrementBtn":"_4hA1L","inputValueAlert":"_awlbI"};
|
|
5
|
+
var stylesheet="._fpmZ9{display:inline-flex}._w4Yvj{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._w4Yvj:hover:not(._HQPUF){cursor:pointer;background:#f5f5f5}._w4Yvj._ylYK0{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._w4Yvj._HQPUF{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._w4Yvj._HQPUF>svg{opacity:.4}._w4Yvj::-webkit-inner-spin-button,._w4Yvj::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._w4Yvj:focus{z-index:0;border:none;border-radius:4px}._w4Yvj:focus:not(._ylYK0){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._sqgfG,._w4Yvj:focus:not(._HQPUF){background:#fafafa}._sqgfG{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._sqgfG:hover:not(._HQPUF){cursor:pointer;background:#f5f5f5}._sqgfG:active:not(._HQPUF){background:#e5e5e5}._sqgfG._HQPUF{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._sqgfG._HQPUF>svg{opacity:.4}._4hA1L{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._4hA1L:hover:not(._HQPUF){cursor:pointer;background:#f5f5f5}._4hA1L:active:not(._HQPUF){background:#e5e5e5}._4hA1L._HQPUF{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._4hA1L._HQPUF>svg{opacity:.4}._awlbI{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
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 };
|
|
@@ -47,7 +47,7 @@ const NumberStepperDecrement = /*#__PURE__*/React__default.forwardRef((_ref, ref
|
|
|
47
47
|
*/
|
|
48
48
|
const handleClick = e => {
|
|
49
49
|
if (!isDisabled) {
|
|
50
|
-
onClick === null || onClick === void 0
|
|
50
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
51
51
|
decrement(true);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
@@ -47,7 +47,7 @@ const NumberStepperIncrement = /*#__PURE__*/React__default.forwardRef((_ref, ref
|
|
|
47
47
|
*/
|
|
48
48
|
const handleClick = e => {
|
|
49
49
|
if (!isDisabled) {
|
|
50
|
-
onClick === null || onClick === void 0
|
|
50
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
51
51
|
increment(true);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
@@ -66,7 +66,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
66
66
|
* depending on the key that was pressed.
|
|
67
67
|
*/
|
|
68
68
|
const handleKeyDown = e => {
|
|
69
|
-
onKeyDown === null || onKeyDown === void 0
|
|
69
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
70
70
|
if (isExternallyDisabled) return;
|
|
71
71
|
if (e.key === 'ArrowUp') {
|
|
72
72
|
// Prevents browser's default increment
|
|
@@ -101,7 +101,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
101
101
|
* Selects the DOM element
|
|
102
102
|
*/
|
|
103
103
|
const handleFocus = e => {
|
|
104
|
-
onFocus === null || onFocus === void 0
|
|
104
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
105
105
|
if (isExternallyDisabled) return;
|
|
106
106
|
e.target.select();
|
|
107
107
|
};
|
|
@@ -111,7 +111,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
111
111
|
* Calls `handleInputBlur`
|
|
112
112
|
*/
|
|
113
113
|
const handleBlur = e => {
|
|
114
|
-
onBlur === null || onBlur === void 0
|
|
114
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
115
115
|
if (isExternallyDisabled) return;
|
|
116
116
|
handleInputBlur(e);
|
|
117
117
|
};
|
|
@@ -41,7 +41,7 @@ const Tabs = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
41
41
|
setTabIndexOfActiveTab(0);
|
|
42
42
|
};
|
|
43
43
|
const handleSelect = key => {
|
|
44
|
-
onChange === null || onChange === void 0
|
|
44
|
+
onChange === null || onChange === void 0 || onChange(key);
|
|
45
45
|
};
|
|
46
46
|
const handleKeyDown = (event, tabElementKey, index) => {
|
|
47
47
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -82,12 +82,12 @@ const Tabs = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
82
82
|
}),
|
|
83
83
|
onKeyDown: event => {
|
|
84
84
|
var _child$props$onKeyDow, _child$props;
|
|
85
|
-
(_child$props$onKeyDow = (_child$props = child.props).onKeyDown) === null || _child$props$onKeyDow === void 0
|
|
85
|
+
(_child$props$onKeyDow = (_child$props = child.props).onKeyDown) === null || _child$props$onKeyDow === void 0 || _child$props$onKeyDow.call(_child$props);
|
|
86
86
|
handleKeyDown(event, key, index);
|
|
87
87
|
},
|
|
88
88
|
onClick: () => {
|
|
89
89
|
var _child$props$onClick, _child$props2;
|
|
90
|
-
(_child$props$onClick = (_child$props2 = child.props).onClick) === null || _child$props$onClick === void 0
|
|
90
|
+
(_child$props$onClick = (_child$props2 = child.props).onClick) === null || _child$props$onClick === void 0 || _child$props$onClick.call(_child$props2);
|
|
91
91
|
handleSelect(key);
|
|
92
92
|
},
|
|
93
93
|
'aria-controls': tabPanelIdPrefix + key
|
|
@@ -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 = {"tabs":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._dzpF2{display:block}._BCQNF{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._myTIx{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._myTIx:hover{color:#32363a}._myTIx:focus{outline:none}._myTIx._pQspM{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._tfVt7{padding-top:32px}._tfVt7._t-Vyr{display:none}._myTIx.focus-visible,._myTIx:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tabs":"_dzpF2","bar":"_BCQNF","tab":"_myTIx","active":"_pQspM","panel":"_tfVt7","inactive":"_t-Vyr"};
|
|
5
|
+
var stylesheet="._dzpF2{display:block}._BCQNF{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._myTIx{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._myTIx:hover{color:#32363a}._myTIx:focus{outline:none}._myTIx._pQspM{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._tfVt7{padding-top:32px}._tfVt7._t-Vyr{display:none}._myTIx.focus-visible,._myTIx: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 };
|
|
@@ -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 = {"toolbar":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._FJJXW,._ykPku{display:flex}._ykPku{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._8idcH{width:69px;min-width:auto;max-width:none}._P39gZ{width:100%}._MGGWv{margin-bottom:12px;background-color:transparent!important}._MGGWv:hover{background-color:rgba(11,110,208,.08)!important}._MGGWv:hover>svg{fill:#085caf}._MGGWv:hover>span{color:#085caf}._MGGWv:active{background-color:rgba(11,110,208,.12)!important}._MGGWv:active>svg{fill:#0854a1}._MGGWv:active>span{color:#0854a1}._MGGWv._BcmfY{background-color:rgba(11,110,208,.08)!important}._MGGWv._BcmfY>svg{fill:#0b6ed0}._MGGWv._BcmfY>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._MGGWv._BcmfY:hover{background-color:rgba(11,110,208,.08)!important}._MGGWv._BcmfY:hover>svg{fill:#085caf}._MGGWv._BcmfY:hover>span{color:#085caf}._MGGWv._BcmfY:active{background-color:rgba(11,110,208,.12)!important}._MGGWv._BcmfY:active>svg{fill:#0854a1}._MGGWv._BcmfY:active>span{color:#0854a1}._80z2l{border-radius:6px}._80z2l>._c1jIG{display:block;fill:#515559}._-a-Q4{margin-top:auto;margin-bottom:0}._Ra7aY{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._Ra7aY:hover>._-9RIr{opacity:1}._RK1ur{width:0;border-width:0;padding:0}._JGvXU{border-radius:4px;min-width:100%;min-height:100%;outline:none}._GU8qD{width:36px;height:36px;position:absolute;top:48px;right:-18px;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}._-9RIr{opacity:0}._6Dta-,._-9RIr:hover,._GU8qD._Nu6Ti._Nu6Ti{opacity:1}._GU8qD._gLF5d._gLF5d{opacity:0}._GU8qD>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._GU8qD>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._GU8qD>span:hover>svg{fill:#fff}._GU8qD>span:active{background-color:#0854a1;border-color:#0854a1}._GU8qD>span:active>svg{fill:#fff}._GU8qD>span>svg{fill:#515559;border-radius:50%}._JGvXU._VH2dE{display:none!important}._W1pry{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._yWTcO{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._CPo66{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._nQqIF{fill:#515559}._fmKx7{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._CPo66.focus-visible,._CPo66:focus-visible,._JGvXU.focus-visible,._JGvXU:focus-visible,._W1pry.focus-visible,._W1pry:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._GU8qD.focus-visible,._GU8qD:focus-visible{border-color:#0a3f88}._GU8qD:active>span{background-color:#0854a1;border-color:#0854a1}._GU8qD:active>span>svg{fill:#fff}._-9RIr.focus-visible,._-9RIr:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_FJJXW","toolbarNav":"_ykPku","toolbarNavCollapsed":"_8idcH","toolbarTabs":"_P39gZ","toolbarTab":"_MGGWv","selected":"_BcmfY","toolbarTabIconButton":"_80z2l","icon":"_c1jIG","tabsExpandCollapseButton":"_-a-Q4","toolbarPanels":"_Ra7aY","toolbarPanelExpandCollapseButtonDefaultHidden":"_-9RIr","toolbarPanelsCollapsed":"_RK1ur","toolbarPanel":"_JGvXU","toolbarPanelExpandCollapseButton":"_GU8qD","toolbarPanelExpandCollapseButtonDefaultShown":"_6Dta-","overrideShow":"_Nu6Ti","overrideHide":"_gLF5d","notSelected":"_VH2dE","buttonWithLabel":"_W1pry","buttonWithLabelLabel":"_yWTcO","iconButtonWithLabel":"_CPo66","iconButtonWithLabelIcon":"_nQqIF","iconButtonWithLabelLabel":"_fmKx7"};
|
|
5
|
+
var stylesheet="._FJJXW,._ykPku{display:flex}._ykPku{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._8idcH{width:69px;min-width:auto;max-width:none}._P39gZ{width:100%}._MGGWv{margin-bottom:12px;background-color:transparent!important}._MGGWv:hover{background-color:rgba(11,110,208,.08)!important}._MGGWv:hover>svg{fill:#085caf}._MGGWv:hover>span{color:#085caf}._MGGWv:active{background-color:rgba(11,110,208,.12)!important}._MGGWv:active>svg{fill:#0854a1}._MGGWv:active>span{color:#0854a1}._MGGWv._BcmfY{background-color:rgba(11,110,208,.08)!important}._MGGWv._BcmfY>svg{fill:#0b6ed0}._MGGWv._BcmfY>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._MGGWv._BcmfY:hover{background-color:rgba(11,110,208,.08)!important}._MGGWv._BcmfY:hover>svg{fill:#085caf}._MGGWv._BcmfY:hover>span{color:#085caf}._MGGWv._BcmfY:active{background-color:rgba(11,110,208,.12)!important}._MGGWv._BcmfY:active>svg{fill:#0854a1}._MGGWv._BcmfY:active>span{color:#0854a1}._80z2l{border-radius:6px}._80z2l>._c1jIG{display:block;fill:#515559}._-a-Q4{margin-top:auto;margin-bottom:0}._Ra7aY{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._Ra7aY:hover>._-9RIr{opacity:1}._RK1ur{width:0;border-width:0;padding:0}._JGvXU{border-radius:4px;min-width:100%;min-height:100%;outline:none}._GU8qD{width:36px;height:36px;position:absolute;top:48px;right:-18px;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}._-9RIr{opacity:0}._6Dta-,._-9RIr:hover,._GU8qD._Nu6Ti._Nu6Ti{opacity:1}._GU8qD._gLF5d._gLF5d{opacity:0}._GU8qD>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._GU8qD>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._GU8qD>span:hover>svg{fill:#fff}._GU8qD>span:active{background-color:#0854a1;border-color:#0854a1}._GU8qD>span:active>svg{fill:#fff}._GU8qD>span>svg{fill:#515559;border-radius:50%}._JGvXU._VH2dE{display:none!important}._W1pry{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._yWTcO{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._CPo66{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._nQqIF{fill:#515559}._fmKx7{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._CPo66.focus-visible,._CPo66:focus-visible,._JGvXU.focus-visible,._JGvXU:focus-visible,._W1pry.focus-visible,._W1pry:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._GU8qD.focus-visible,._GU8qD:focus-visible{border-color:#0a3f88}._GU8qD:active>span{background-color:#0854a1;border-color:#0854a1}._GU8qD:active>span>svg{fill:#fff}._-9RIr.focus-visible,._-9RIr:focus-visible{opacity:1}";
|
|
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 };
|
|
@@ -104,7 +104,7 @@ const ToolbarPanels = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
104
104
|
*/
|
|
105
105
|
if (wasExpandCollapseButtonClicked) {
|
|
106
106
|
var _expandCollapseButton;
|
|
107
|
-
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0
|
|
107
|
+
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0 || _expandCollapseButton.focus();
|
|
108
108
|
setWasExpandCollapseButtonClicked(false);
|
|
109
109
|
}
|
|
110
110
|
}, [wasExpandCollapseButtonClicked]);
|
|
@@ -43,7 +43,7 @@ const ToolbarTab = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
43
43
|
const isFocused = focusedIndex === index;
|
|
44
44
|
const isSelected = selectedIndex === index;
|
|
45
45
|
const handleSelect = () => {
|
|
46
|
-
setSelectedIndex === null || setSelectedIndex === void 0
|
|
46
|
+
setSelectedIndex === null || setSelectedIndex === void 0 || setSelectedIndex(Number(index));
|
|
47
47
|
};
|
|
48
48
|
const handleClick = e => {
|
|
49
49
|
/*
|
|
@@ -62,22 +62,22 @@ const ToolbarTab = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
62
62
|
case 'ArrowDown':
|
|
63
63
|
case 'ArrowRight':
|
|
64
64
|
e.preventDefault(); // Prevent page scroll
|
|
65
|
-
focusTab === null || focusTab === void 0
|
|
65
|
+
focusTab === null || focusTab === void 0 || focusTab(getNextIndex(focusedIndex, numTabs));
|
|
66
66
|
break;
|
|
67
67
|
case 'ArrowUp':
|
|
68
68
|
case 'ArrowLeft':
|
|
69
69
|
e.preventDefault(); // Prevent page scroll
|
|
70
|
-
focusTab === null || focusTab === void 0
|
|
70
|
+
focusTab === null || focusTab === void 0 || focusTab(getPrevIndex(focusedIndex, numTabs));
|
|
71
71
|
break;
|
|
72
72
|
case 'PageUp':
|
|
73
73
|
case 'Home':
|
|
74
74
|
e.preventDefault(); // Prevent page scroll
|
|
75
|
-
focusTab === null || focusTab === void 0
|
|
75
|
+
focusTab === null || focusTab === void 0 || focusTab(0);
|
|
76
76
|
break;
|
|
77
77
|
case 'PageDown':
|
|
78
78
|
case 'End':
|
|
79
79
|
e.preventDefault(); // Prevent page scroll
|
|
80
|
-
focusTab === null || focusTab === void 0
|
|
80
|
+
focusTab === null || focusTab === void 0 || focusTab(Number(numTabs) - 1);
|
|
81
81
|
break;
|
|
82
82
|
default:
|
|
83
83
|
}
|
|
@@ -52,10 +52,10 @@ const ToolbarTabs = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
52
52
|
if (isExpandCollapseButtonFocused) {
|
|
53
53
|
if (isCollapsed) {
|
|
54
54
|
var _expandToolbarTabsIco;
|
|
55
|
-
(_expandToolbarTabsIco = expandToolbarTabsIconButtonRef.current) === null || _expandToolbarTabsIco === void 0
|
|
55
|
+
(_expandToolbarTabsIco = expandToolbarTabsIconButtonRef.current) === null || _expandToolbarTabsIco === void 0 || _expandToolbarTabsIco.focus();
|
|
56
56
|
} else {
|
|
57
57
|
var _collapseToolbarTabsI;
|
|
58
|
-
(_collapseToolbarTabsI = collapseToolbarTabsIconButtonWithLabelRef.current) === null || _collapseToolbarTabsI === void 0
|
|
58
|
+
(_collapseToolbarTabsI = collapseToolbarTabsIconButtonWithLabelRef.current) === null || _collapseToolbarTabsI === void 0 || _collapseToolbarTabsI.focus();
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}, [isCollapsed, isExpandCollapseButtonFocused]);
|
|
@@ -69,7 +69,7 @@ const ToolbarTabs = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
69
69
|
const numTabs = React__default.Children.count(children);
|
|
70
70
|
const focusTab = index => {
|
|
71
71
|
var _tabRefs$current;
|
|
72
|
-
(_tabRefs$current = tabRefs.current) === null || _tabRefs$current === void 0 || (_tabRefs$current = _tabRefs$current[index]) === null || _tabRefs$current === void 0
|
|
72
|
+
(_tabRefs$current = tabRefs.current) === null || _tabRefs$current === void 0 || (_tabRefs$current = _tabRefs$current[index]) === null || _tabRefs$current === void 0 || _tabRefs$current.focus();
|
|
73
73
|
setFocusedIndex(index);
|
|
74
74
|
};
|
|
75
75
|
|
|
@@ -58,7 +58,7 @@ function useControllableState(initialState, onChange, externalState) {
|
|
|
58
58
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
59
59
|
args[_key - 1] = arguments[_key];
|
|
60
60
|
}
|
|
61
|
-
(_onChangeRef$current = onChangeRef.current) === null || _onChangeRef$current === void 0
|
|
61
|
+
(_onChangeRef$current = onChangeRef.current) === null || _onChangeRef$current === void 0 || _onChangeRef$current.call(onChangeRef, nextState, ...args);
|
|
62
62
|
}
|
|
63
63
|
}, [onChangeRef, externalStateRef, internalStateRef]);
|
|
64
64
|
const actualState = externalState === undefined ? state : externalState;
|
|
@@ -50,12 +50,12 @@ const useOverlay = _ref => {
|
|
|
50
50
|
Array.from(containerNode.children).forEach(child => {
|
|
51
51
|
if (!ignoreIds.includes(child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
52
52
|
});
|
|
53
|
-
overlayNode === null || overlayNode === void 0
|
|
53
|
+
overlayNode === null || overlayNode === void 0 || overlayNode.classList.remove(styles.hidden);
|
|
54
54
|
} else {
|
|
55
55
|
Array.from(containerNode.children).forEach(child => {
|
|
56
56
|
child.removeAttribute('inert');
|
|
57
57
|
});
|
|
58
|
-
overlayNode === null || overlayNode === void 0
|
|
58
|
+
overlayNode === null || overlayNode === void 0 || overlayNode.classList.add(styles.hidden);
|
|
59
59
|
}
|
|
60
60
|
return () => {
|
|
61
61
|
Array.from(containerNode.children).forEach(child => {
|