@qualtrics/ui-react 2.75.0 → 2.77.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/__node_modules/@radix-ui/primitive/dist/index.js +54 -0
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +28 -0
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +605 -0
- package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +45 -0
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +108 -0
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +21 -0
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +223 -0
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +350 -0
- package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +35 -0
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +248 -0
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +911 -0
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +325 -0
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +25 -0
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +141 -0
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +34 -0
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +216 -0
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +127 -0
- package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +18 -0
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +141 -0
- package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +32 -0
- package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +23 -0
- package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +48 -0
- package/dist/__node_modules/aria-hidden/dist/es2015/index.js +169 -0
- package/dist/__node_modules/detect-node-es/esm/node.js +4 -0
- package/dist/__node_modules/get-nonce/dist/es2015/index.js +15 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/SideEffect.js +169 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/index.js +1 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/__node_modules/tslib/tslib.es6.js +403 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/createRef.js +25 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/index.js +8 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/mergeRef.js +21 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/refToCallback.js +50 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/transformRef.js +17 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/useTransformRef.js +21 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/config.js +8 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/env.js +8 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/hoc.js +18 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/hook.js +44 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/index.js +6 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/medium.js +81 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/renderProp.js +38 -0
- package/dist/__shared/cjs/{index-98bc748b.js → index-58d973dc.js} +3 -3
- package/dist/__shared/cjs/{index-9f6415a6.js → index-fd8ffec5.js} +409 -372
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +3 -2
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -2
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker.js +7 -8
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox.js +9 -8
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxList.js +5 -6
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +10 -9
- package/dist/components/Dropdown/DropdownList.js +6 -7
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionSet.js +2 -2
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +4 -2
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +31 -25
- package/dist/components/NewMenu/Menu/Menu.js +1 -0
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +3 -1
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +10 -4
- package/dist/components/NewMenu/parts/MenuItem.js +1 -1
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover.js +8 -14
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/TabList.js +3 -2
- package/dist/components/Tabs/TabPanels.js +2 -1
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +6 -12
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +5 -6
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.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/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +2 -2
- 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 +18 -17
- package/dist/index.es.js +1 -1
- package/dist/index.js +4 -5
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +6 -6
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +1 -1
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +1 -1
- package/dist/next/Menu/Menu.js +5 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +1 -1
- package/dist/next/Menu/MenuItem.js +2 -2
- package/dist/next/Menu/MenuPane.js +14 -7
- package/dist/next/Menu/SubMenu.js +8 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +90 -41
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +4 -2
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimeDropdown.js +5 -6
- package/dist/next/TimePicker/TimeInput.js +104 -37
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +19 -13
- package/dist/next/index.js +5617 -330
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +2 -1
- package/dist/utils/Popper/Popper.js +149 -115
- package/dist/utils/Portal/Portal.js +3 -2
- package/dist/utils/Text/Text.js +3 -2
- package/dist/utils/filterChildren/filterChildren.js +3 -2
- package/dist/utils/index.js +1 -0
- package/icons/package.json +3 -4
- package/next/package.json +4 -5
- package/package.json +15 -16
|
@@ -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 = "._Q98ja{width:100%;display:flex;flex-direction:column}._Q98ja._Gg8xZ{grid-gap:20px;gap:20px}._vwwV3{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}._vwwV3 ._pgxiX{margin-top:-3px}._dE62-{flex:1}._KAYAo{padding:8px 16px 16px 24px;font-size:14px;line-height:20px;overflow:var(--accordion-panel-overflow,auto)}._qW0zB ._vwwV3{border-radius:4px}._qW0zB ._vwwV3:hover:not(._nGymw){background-color:rgba(50,54,58,.08)}._qW0zB ._vwwV3:active:not(._nGymw){background-color:rgba(50,54,58,.11)}._0Cijz ._vwwV3{font-weight:400;padding-left:12px;border-top:1px solid #eee}._0Cijz ._vwwV3:hover:not(._nGymw){background-color:rgba(50,54,58,.08)}._0Cijz ._vwwV3:active:not(._nGymw){background-color:rgba(50,54,58,.11)}._Gg8xZ ._PHC6z{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._Gg8xZ ._PHC6z._A49RV{box-shadow:none}._Gg8xZ ._PHC6z._A49RV ._vwwV3{border-radius:6px}._Gg8xZ ._vwwV3{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._Gg8xZ ._vwwV3 ._dE62-{padding-left:20px}._Gg8xZ ._vwwV3:hover:not(disabled){border:1px solid #c2c2c2}._Gg8xZ ._vwwV3:active:not(._nGymw){border:1px solid #898989}._Gg8xZ ._KAYAo{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._A49RV ._KAYAo{display:none}._nGymw{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._vwwV3.focus-visible,._vwwV3:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._vwwV3.focus-visible:before,._vwwV3:focus-visible:before{z-index:1}._0Cijz ._vwwV3.focus-visible,._0Cijz ._vwwV3:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_Q98ja","block-variant":"_Gg8xZ","header":"_vwwV3","headerIcon":"_pgxiX","title":"_dE62-","panel":"_KAYAo","default-variant":"_qW0zB","disabled":"_nGymw","outlined-variant":"_0Cijz","section":"_PHC6z","closed":"_A49RV"};
|
|
5
|
+
var stylesheet="._Q98ja{width:100%;display:flex;flex-direction:column}._Q98ja._Gg8xZ{grid-gap:20px;gap:20px}._vwwV3{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}._vwwV3 ._pgxiX{margin-top:-3px}._dE62-{flex:1}._KAYAo{padding:8px 16px 16px 24px;font-size:14px;line-height:20px;overflow:var(--accordion-panel-overflow,auto)}._qW0zB ._vwwV3{border-radius:4px}._qW0zB ._vwwV3:hover:not(._nGymw){background-color:rgba(50,54,58,.08)}._qW0zB ._vwwV3:active:not(._nGymw){background-color:rgba(50,54,58,.11)}._0Cijz ._vwwV3{font-weight:400;padding-left:12px;border-top:1px solid #eee}._0Cijz ._vwwV3:hover:not(._nGymw){background-color:rgba(50,54,58,.08)}._0Cijz ._vwwV3:active:not(._nGymw){background-color:rgba(50,54,58,.11)}._Gg8xZ ._PHC6z{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._Gg8xZ ._PHC6z._A49RV{box-shadow:none}._Gg8xZ ._PHC6z._A49RV ._vwwV3{border-radius:6px}._Gg8xZ ._vwwV3{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._Gg8xZ ._vwwV3 ._dE62-{padding-left:20px}._Gg8xZ ._vwwV3:hover:not(disabled){border:1px solid #c2c2c2}._Gg8xZ ._vwwV3:active:not(._nGymw){border:1px solid #898989}._Gg8xZ ._KAYAo{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._A49RV ._KAYAo{display:none}._nGymw{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._vwwV3.focus-visible,._vwwV3:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._vwwV3.focus-visible:before,._vwwV3:focus-visible:before{z-index:1}._0Cijz ._vwwV3.focus-visible,._0Cijz ._vwwV3: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 };
|
|
@@ -17,13 +17,14 @@ function BreakpointSwitch(_ref) {
|
|
|
17
17
|
if (element.type !== Breakpoint) {
|
|
18
18
|
throw new Error('BreakpointSwitch can only have Breakpoint children');
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const elementProps = element.props;
|
|
21
|
+
const currentSize = elementProps.size;
|
|
21
22
|
if (!currentSize) {
|
|
22
23
|
throw new Error('Breakpoint must have a size set.');
|
|
23
24
|
} else if (childList[currentSize]) {
|
|
24
25
|
throw new Error('BreakpointSwitch can only have one Breakpoint targeting each size');
|
|
25
26
|
} else {
|
|
26
|
-
childList[currentSize] =
|
|
27
|
+
childList[currentSize] = elementProps.children;
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
return /*#__PURE__*/React__default.createElement(BreakpointContextProvider, {
|
|
@@ -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 = "._u3cO7{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}._u3cO7._4S7Oc{padding:0 8px;height:26px;min-height:26px}._u3cO7._1daiM{display:block;width:100%}._u3cO7._65h0B{cursor:not-allowed}._u3cO7:active:focus,._u3cO7:focus{outline:none}._u3cO7._i5ZWh{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._u3cO7._i5ZWh:hover:not(._65h0B){background-color:#eee}._u3cO7._i5ZWh:active:not(._65h0B){background-color:#e5e5e5}._u3cO7._i5ZWh._65h0B{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)}._u3cO7._9AYPQ{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._u3cO7._9AYPQ:hover:not(._65h0B){background-color:#085caf;border-color:#085caf}._u3cO7._9AYPQ:active:not(._65h0B){background-color:#0854a1;border-color:#0854a1}._u3cO7._9AYPQ._65h0B{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._u3cO7._yG3F8{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._u3cO7._yG3F8:hover:not(._65h0B){background-color:#eef5fc}._u3cO7._yG3F8:active:not(._65h0B){background-color:#e1edf9}._u3cO7._yG3F8._65h0B{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)}._u3cO7._jVByz{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._u3cO7._jVByz:hover:not(._65h0B){background-color:#eef5fc;border-color:#eef5fc}._u3cO7._jVByz:active:not(._65h0B){background-color:#e1edf9;border-color:#e1edf9}._u3cO7._jVByz._65h0B{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)}._u3cO7._c-DmU{color:#0b6ed0;fill:#0b6ed0;padding:0}._u3cO7._c-DmU:hover:not(._65h0B){color:#085caf}._u3cO7._c-DmU:active:not(._65h0B){color:#0854a1}._u3cO7._c-DmU._65h0B{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._u3cO7._ChMAN{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._u3cO7._ChMAN:hover:not(._65h0B){background-color:#ffecec}._u3cO7._ChMAN:active:not(._65h0B){background-color:#ffdbdb}._u3cO7._ChMAN._65h0B{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)}._u3cO7.focus-visible,._u3cO7:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_u3cO7","small":"_4S7Oc","full":"_1daiM","disabled":"_65h0B","default":"_i5ZWh","primary":"_9AYPQ","secondary":"_yG3F8","tertiary":"_jVByz","link":"_c-DmU","danger":"_ChMAN"};
|
|
5
|
+
var stylesheet="._u3cO7{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}._u3cO7._4S7Oc{padding:0 8px;height:26px;min-height:26px}._u3cO7._1daiM{display:block;width:100%}._u3cO7._65h0B{cursor:not-allowed}._u3cO7:active:focus,._u3cO7:focus{outline:none}._u3cO7._i5ZWh{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._u3cO7._i5ZWh:hover:not(._65h0B){background-color:#eee}._u3cO7._i5ZWh:active:not(._65h0B){background-color:#e5e5e5}._u3cO7._i5ZWh._65h0B{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)}._u3cO7._9AYPQ{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._u3cO7._9AYPQ:hover:not(._65h0B){background-color:#085caf;border-color:#085caf}._u3cO7._9AYPQ:active:not(._65h0B){background-color:#0854a1;border-color:#0854a1}._u3cO7._9AYPQ._65h0B{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._u3cO7._yG3F8{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._u3cO7._yG3F8:hover:not(._65h0B){background-color:#eef5fc}._u3cO7._yG3F8:active:not(._65h0B){background-color:#e1edf9}._u3cO7._yG3F8._65h0B{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)}._u3cO7._jVByz{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._u3cO7._jVByz:hover:not(._65h0B){background-color:#eef5fc;border-color:#eef5fc}._u3cO7._jVByz:active:not(._65h0B){background-color:#e1edf9;border-color:#e1edf9}._u3cO7._jVByz._65h0B{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)}._u3cO7._c-DmU{color:#0b6ed0;fill:#0b6ed0;padding:0}._u3cO7._c-DmU:hover:not(._65h0B){color:#085caf}._u3cO7._c-DmU:active:not(._65h0B){color:#0854a1}._u3cO7._c-DmU._65h0B{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._u3cO7._ChMAN{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._u3cO7._ChMAN:hover:not(._65h0B){background-color:#ffecec}._u3cO7._ChMAN:active:not(._65h0B){background-color:#ffdbdb}._u3cO7._ChMAN._65h0B{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)}._u3cO7.focus-visible,._u3cO7: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 };
|
|
@@ -24,9 +24,10 @@ const ButtonGroup = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
24
24
|
console.warn("Warning: \"".concat(child, "\" is invalid child of ButtonGroup!"));
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const childProps = child.props;
|
|
28
|
+
const buttonElementClasses = classNames(childProps.className, styles.buttonGroupElement, {
|
|
28
29
|
[styles.full]: full,
|
|
29
|
-
[styles.primary]:
|
|
30
|
+
[styles.primary]: childProps.kind === 'primary'
|
|
30
31
|
});
|
|
31
32
|
const buttonElementProps = {
|
|
32
33
|
className: buttonElementClasses,
|
|
@@ -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 = "._GeIrz{display:inline-flex;align-items:stretch}._GeIrz._kXsYM{width:100%}._GeIrz ._vyxnn{margin:0;min-width:0}._GeIrz ._vyxnn:focus{z-index:20}._GeIrz ._vyxnn:hover{z-index:10}._GeIrz ._vyxnn._U-GZ8{border:none}._GeIrz ._vyxnn._kXsYM{display:inline-flex;width:auto;flex-grow:1}._GeIrz ._vyxnn: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}._GeIrz ._vyxnn:first-child._U-GZ8{border-right:1px solid #fff}._GeIrz ._vyxnn:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._GeIrz ._vyxnn:not(:last-child):not(:first-child)._U-GZ8{border-left:1px solid #fff;border-right:1px solid #fff}._GeIrz ._vyxnn:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._GeIrz ._vyxnn:last-child._U-GZ8{border-left:1px solid #fff}._GeIrz ._vyxnn: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":"_GeIrz","full":"_kXsYM","buttonGroupElement":"_vyxnn","primary":"_U-GZ8"};
|
|
5
|
+
var stylesheet="._GeIrz{display:inline-flex;align-items:stretch}._GeIrz._kXsYM{width:100%}._GeIrz ._vyxnn{margin:0;min-width:0}._GeIrz ._vyxnn:focus{z-index:20}._GeIrz ._vyxnn:hover{z-index:10}._GeIrz ._vyxnn._U-GZ8{border:none}._GeIrz ._vyxnn._kXsYM{display:inline-flex;width:auto;flex-grow:1}._GeIrz ._vyxnn: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}._GeIrz ._vyxnn:first-child._U-GZ8{border-right:1px solid #fff}._GeIrz ._vyxnn:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._GeIrz ._vyxnn:not(:last-child):not(:first-child)._U-GZ8{border-left:1px solid #fff;border-right:1px solid #fff}._GeIrz ._vyxnn:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._GeIrz ._vyxnn:last-child._U-GZ8{border-left:1px solid #fff}._GeIrz ._vyxnn: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 = "._fG0Va{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._fG0Va,._xwNor{cursor:pointer;height:16px;width:16px}._xwNor{position:absolute;opacity:0;z-index:10}._xwNor:disabled{cursor:not-allowed}._Gj6Hc{color:#32363a;display:flex;align-items:center;cursor:pointer}._CI-Im{cursor:auto;color:hsla(0,0%,53.7%,.4)}._FgwT4{margin-right:12px;flex-shrink:0}._GDC1R{position:absolute;top:0;left:0}._ERJa7{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._ERJa7:not(._Vo94p):hover._n4LYo,._xwNor:hover ._ERJa7:not(._Vo94p)._n4LYo{background-color:#085caf}._ERJa7:not(._Vo94p):hover:not(._n4LYo),._xwNor:hover ._ERJa7:not(._Vo94p):not(._n4LYo){border-color:#0b6ed0}._ERJa7 ._WZric{fill:#0b6ed0;fill-opacity:0}._ERJa7._n4LYo ._WZric{fill-opacity:1}._ERJa7._n4LYo:not(._Vo94p){border-color:transparent;background-color:#0b6ed0}._ERJa7._n4LYo:not(._Vo94p) ._WZric{fill:#fff}._ERJa7._Vo94p{opacity:.4}._ERJa7 ._y3kCv{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._mvBt9{color:#32363a;margin-left:12px}._jvpC6{display:flex;align-items:center}._jvpC6:has(input:disabled) ._mvBt9{color:rgba(50,54,58,.4)}._jvpC6:not(:has(input:disabled)) ._mvBt9{cursor:pointer}._xwNor.focus-visible~._GDC1R>._ERJa7,._xwNor:focus-visible~._GDC1R>._ERJa7{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_fG0Va","input":"_xwNor","label":"_Gj6Hc","labelDisabled":"_CI-Im","wrappedInput":"_FgwT4","visualCheck":"_GDC1R","check":"_ERJa7","disabled":"_Vo94p","checked":"_n4LYo","checkIcon":"_WZric","mixed":"_y3kCv","checkboxLabel":"_mvBt9","checkboxField":"_jvpC6"};
|
|
5
|
+
var stylesheet="._fG0Va{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._fG0Va,._xwNor{cursor:pointer;height:16px;width:16px}._xwNor{position:absolute;opacity:0;z-index:10}._xwNor:disabled{cursor:not-allowed}._Gj6Hc{color:#32363a;display:flex;align-items:center;cursor:pointer}._CI-Im{cursor:auto;color:hsla(0,0%,53.7%,.4)}._FgwT4{margin-right:12px;flex-shrink:0}._GDC1R{position:absolute;top:0;left:0}._ERJa7{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._ERJa7:not(._Vo94p):hover._n4LYo,._xwNor:hover ._ERJa7:not(._Vo94p)._n4LYo{background-color:#085caf}._ERJa7:not(._Vo94p):hover:not(._n4LYo),._xwNor:hover ._ERJa7:not(._Vo94p):not(._n4LYo){border-color:#0b6ed0}._ERJa7 ._WZric{fill:#0b6ed0;fill-opacity:0}._ERJa7._n4LYo ._WZric{fill-opacity:1}._ERJa7._n4LYo:not(._Vo94p){border-color:transparent;background-color:#0b6ed0}._ERJa7._n4LYo:not(._Vo94p) ._WZric{fill:#fff}._ERJa7._Vo94p{opacity:.4}._ERJa7 ._y3kCv{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._mvBt9{color:#32363a;margin-left:12px}._jvpC6{display:flex;align-items:center}._jvpC6:has(input:disabled) ._mvBt9{color:rgba(50,54,58,.4)}._jvpC6:not(:has(input:disabled)) ._mvBt9{cursor:pointer}._xwNor.focus-visible~._GDC1R>._ERJa7,._xwNor:focus-visible~._GDC1R>._ERJa7{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 };
|
|
@@ -26,10 +26,11 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
|
26
26
|
import Popper from '../../utils/Popper/Popper.js';
|
|
27
27
|
import hexToRgbaString from './utils/hexToRgbaString.js';
|
|
28
28
|
import CaretDownIcon from '../../icons/components/CaretDownIcon.js';
|
|
29
|
+
import { offset } from '@floating-ui/react-dom';
|
|
29
30
|
import Input from '../Input/Input.js';
|
|
30
31
|
|
|
31
32
|
function ColorPicker(_ref) {
|
|
32
|
-
var _color$name;
|
|
33
|
+
var _color$name, _ref6;
|
|
33
34
|
let {
|
|
34
35
|
color: externalColor,
|
|
35
36
|
onChange,
|
|
@@ -234,7 +235,7 @@ function ColorPicker(_ref) {
|
|
|
234
235
|
'aria-describedby': "".concat(anchorAriaDescription, " ").concat(ariaDescribedBy).trim(),
|
|
235
236
|
'aria-expanded': isOpen,
|
|
236
237
|
'aria-controls': isOpen ? flyoutId : undefined,
|
|
237
|
-
ref: mergeRefs(anchorRef, externalButtonRef !== null &&
|
|
238
|
+
ref: mergeRefs(anchorRef, (_ref6 = externalButtonRef) !== null && _ref6 !== void 0 ? _ref6 : null),
|
|
238
239
|
'data-testid': getSubDataTestId(dataTestId, 'anchor-button')
|
|
239
240
|
};
|
|
240
241
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -292,12 +293,10 @@ function ColorPicker(_ref) {
|
|
|
292
293
|
}),
|
|
293
294
|
size: "small"
|
|
294
295
|
})),
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
}]
|
|
296
|
+
middleware: [offset({
|
|
297
|
+
crossAxis: 0,
|
|
298
|
+
mainAxis: 3
|
|
299
|
+
})]
|
|
301
300
|
}), !hexInputHidden && /*#__PURE__*/React__default.createElement("div", {
|
|
302
301
|
className: styles.relativePositionContainer
|
|
303
302
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -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 = "._oJUwA{display:flex;line-height:1.15}._oJUwA ._epQxK{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._oJUwA ._epQxK:hover:not(._cXasV){background-color:#f5f5f5}._oJUwA ._epQxK._cXasV{cursor:not-allowed;fill:rgba(81,85,89,.4)}._oJUwA ._epQxK:active:not(._cXasV){background-color:#eee}._oJUwA ._CYb25{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._oJUwA ._CYb25._cXasV{border-color:#d9d9d9}._oJUwA ._68C5e{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}._oJUwA ._yldqc{width:36px;height:36px;border:1px solid #898989;border-right-width:0}._oJUwA ._yldqc._cXasV{border-color:#d9d9d9}._oJUwA ._C1o0v{height:36px;border:1px solid #898989;border-width:1px 0}._oJUwA ._C1o0v._cXasV{border-color:#d9d9d9}._oJUwA ._PwTp2{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._oJUwA ._XSfkj{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}._oJUwA ._XSfkj._0lZcx{color:#9d9fa1}._epQxK.focus-visible,._epQxK:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._PSeO-{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}._PSeO- ._1BYcA{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}._PSeO- ._cwQoj{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}._PSeO- ._PMhHd{display:flex;justify-content:space-between;margin:12px 0}._PSeO- ._PMhHd._fulF0{margin-bottom:0}._PSeO- ._a6wN1{display:flex}._PSeO- ._WM0gu{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._PSeO- ._IIS3r{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._PSeO- ._GegOE{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}._PSeO- ._QVzZi{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)}._PSeO- ._QVzZi._oULvj{height:16px;margin-bottom:6px}._PSeO- ._s8DVe{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}._PSeO- ._s8DVe._oULvj{height:16px}._PSeO- ._tXxrl{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}._PSeO- ._6jT3H{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._PSeO- ._5nUIK{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}._PSeO- ._-XGrh{display:flex;justify-content:space-between}._PSeO- ._1a-WE{display:flex;flex-direction:column;align-items:center}._PSeO- ._1a-WE._-KZtU{margin-left:4px}._PSeO- ._FnXXV{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}._PSeO- ._y-T1y{padding:3px 4px 3px 13px!important;width:78px}._PSeO- ._LoA2W{text-align:right;padding:3px 4px 3px 0!important;width:34px}._PSeO- ._Vn-1O{text-align:right;padding:3px 16px 3px 0!important;width:46px}._PSeO- ._QQ54T{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}._PSeO- ._DzLrr{line-height:22px}._PSeO- ._CgSU2{display:flex}._PSeO- ._6zzxT{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._PSeO- ._6zzxT._aKX-K{margin-top:0}._PSeO- ._5R1Dg{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._PSeO- ._737ho,._PSeO- ._oewJh{margin-top:12px}._8V1AX{position:relative}._ModeF{display:none}._VZDVU{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._cwQoj.focus-visible,._cwQoj: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}._5nUIK.focus-visible,._5nUIK:focus-visible,._5R1Dg.focus-visible,._5R1Dg:focus-visible,._s8DVe.focus-visible,._s8DVe:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_oJUwA","colorPickerButton":"_epQxK","disabledButton":"_cXasV","colorPickerButtonPreview":"_CYb25","alphaBackground":"_68C5e","colorPickerButtonAlphaPreview":"_yldqc","caretIcon":"_C1o0v","colorPickerInput":"_PwTp2","colorPickerInputDecoration":"_XSfkj","disabledDecoration":"_0lZcx","colorPickerFlyout":"_PSeO-","saturationGrid":"_1BYcA","saturationLoop":"_cwQoj","sliderGroup":"_PMhHd","removeBottomMargin":"_fulF0","sliderPreviewContainer":"_a6wN1","sliderPreview":"_WM0gu","sliderPreviewAlpha":"_IIS3r","sliderPreviewAlphaBackground":"_GegOE","hueSliderRail":"_QVzZi","alphaEnabled":"_oULvj","hueSliderThumb":"_s8DVe","alphaSliderRailBackground":"_tXxrl","alphaSliderRail":"_6jT3H","alphaSliderThumb":"_5nUIK","hexInputGroup":"_-XGrh","hexInputContainer":"_1a-WE","rgbInputContainer":"_-KZtU","hexInputDecoration":"_FnXXV","hexInput":"_y-T1y","rgbInput":"_LoA2W","alphaInput":"_Vn-1O","alphaInputDecoration":"_QQ54T","inputLabel":"_DzLrr","rgbContainer":"_CgSU2","palette":"_6zzxT","removeUpperMargin":"_aKX-K","swatch":"_5R1Dg","noColorButton":"_737ho","clearSelectionButton":"_oewJh","relativePositionContainer":"_8V1AX","hidden":"_ModeF","hiddenLiveRegion":"_VZDVU"};
|
|
5
|
+
var stylesheet="._oJUwA{display:flex;line-height:1.15}._oJUwA ._epQxK{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._oJUwA ._epQxK:hover:not(._cXasV){background-color:#f5f5f5}._oJUwA ._epQxK._cXasV{cursor:not-allowed;fill:rgba(81,85,89,.4)}._oJUwA ._epQxK:active:not(._cXasV){background-color:#eee}._oJUwA ._CYb25{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._oJUwA ._CYb25._cXasV{border-color:#d9d9d9}._oJUwA ._68C5e{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}._oJUwA ._yldqc{width:36px;height:36px;border:1px solid #898989;border-right-width:0}._oJUwA ._yldqc._cXasV{border-color:#d9d9d9}._oJUwA ._C1o0v{height:36px;border:1px solid #898989;border-width:1px 0}._oJUwA ._C1o0v._cXasV{border-color:#d9d9d9}._oJUwA ._PwTp2{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._oJUwA ._XSfkj{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}._oJUwA ._XSfkj._0lZcx{color:#9d9fa1}._epQxK.focus-visible,._epQxK:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._PSeO-{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}._PSeO- ._1BYcA{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}._PSeO- ._cwQoj{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}._PSeO- ._PMhHd{display:flex;justify-content:space-between;margin:12px 0}._PSeO- ._PMhHd._fulF0{margin-bottom:0}._PSeO- ._a6wN1{display:flex}._PSeO- ._WM0gu{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._PSeO- ._IIS3r{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._PSeO- ._GegOE{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}._PSeO- ._QVzZi{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)}._PSeO- ._QVzZi._oULvj{height:16px;margin-bottom:6px}._PSeO- ._s8DVe{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}._PSeO- ._s8DVe._oULvj{height:16px}._PSeO- ._tXxrl{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}._PSeO- ._6jT3H{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._PSeO- ._5nUIK{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}._PSeO- ._-XGrh{display:flex;justify-content:space-between}._PSeO- ._1a-WE{display:flex;flex-direction:column;align-items:center}._PSeO- ._1a-WE._-KZtU{margin-left:4px}._PSeO- ._FnXXV{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}._PSeO- ._y-T1y{padding:3px 4px 3px 13px!important;width:78px}._PSeO- ._LoA2W{text-align:right;padding:3px 4px 3px 0!important;width:34px}._PSeO- ._Vn-1O{text-align:right;padding:3px 16px 3px 0!important;width:46px}._PSeO- ._QQ54T{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}._PSeO- ._DzLrr{line-height:22px}._PSeO- ._CgSU2{display:flex}._PSeO- ._6zzxT{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._PSeO- ._6zzxT._aKX-K{margin-top:0}._PSeO- ._5R1Dg{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._PSeO- ._737ho,._PSeO- ._oewJh{margin-top:12px}._8V1AX{position:relative}._ModeF{display:none}._VZDVU{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._cwQoj.focus-visible,._cwQoj: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}._5nUIK.focus-visible,._5nUIK:focus-visible,._5R1Dg.focus-visible,._5R1Dg:focus-visible,._s8DVe.focus-visible,._s8DVe: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 };
|
|
@@ -172,12 +172,13 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
172
172
|
matcher: child => (child === null || child === void 0 ? void 0 : child.type) === ComboboxOption,
|
|
173
173
|
modifier: (child, index) => {
|
|
174
174
|
if (inputValue === selectedOptionLabel || isFilteringDisabled || doesOptionMatchFilter(child, currentHeaderTitle, inputValue)) {
|
|
175
|
-
var
|
|
175
|
+
var _optionElement$props$2;
|
|
176
176
|
headerCounts[currentHeaderTitle] += 1;
|
|
177
|
+
const optionElement = child;
|
|
177
178
|
return /*#__PURE__*/cloneElement(child, {
|
|
178
179
|
onSelect: e => {
|
|
179
|
-
var
|
|
180
|
-
|
|
180
|
+
var _optionElement$props, _optionElement$props$;
|
|
181
|
+
(_optionElement$props = optionElement.props) === null || _optionElement$props === void 0 || (_optionElement$props$ = _optionElement$props.onSelect) === null || _optionElement$props$ === void 0 || _optionElement$props$.call(_optionElement$props, e);
|
|
181
182
|
|
|
182
183
|
// Prevents form submission
|
|
183
184
|
if ((e === null || e === void 0 ? void 0 : e.key) === 'Enter') {
|
|
@@ -188,12 +189,12 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
188
189
|
}
|
|
189
190
|
handleSelect(child);
|
|
190
191
|
},
|
|
191
|
-
onMouseEnter: wrapEvent(
|
|
192
|
+
onMouseEnter: wrapEvent(optionElement.props.onMouseEnter, () => {
|
|
192
193
|
if (!isOptionSelectedOnKeyboardHighlight) {
|
|
193
194
|
setHighlightedIndex(index);
|
|
194
195
|
}
|
|
195
196
|
}),
|
|
196
|
-
onMouseLeave: wrapEvent(
|
|
197
|
+
onMouseLeave: wrapEvent(optionElement.props.onMouseLeave, () => {
|
|
197
198
|
if (!isOptionSelectedOnKeyboardHighlight) {
|
|
198
199
|
setHighlightedIndex(-1);
|
|
199
200
|
}
|
|
@@ -201,7 +202,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
201
202
|
isHighlightedOnHover: isOptionSelectedOnKeyboardHighlight,
|
|
202
203
|
isHighlighted: isOptionSelectedOnKeyboardHighlight ? false : index === highlightedIndex,
|
|
203
204
|
isSelected: isOptionSelectedOnKeyboardHighlight ? index === selectedIndex : selectedOptionValue === getOptionValue(child),
|
|
204
|
-
id: (
|
|
205
|
+
id: (_optionElement$props$2 = optionElement.props.id) !== null && _optionElement$props$2 !== void 0 ? _optionElement$props$2 : "".concat(listContainerId, "-option-").concat(index),
|
|
205
206
|
ref: node => {
|
|
206
207
|
optionRefs.current[Number(index)] = node;
|
|
207
208
|
}
|
|
@@ -219,8 +220,8 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
219
220
|
}, {
|
|
220
221
|
matcher: child => (child === null || child === void 0 ? void 0 : child.type) === ComboboxHeader,
|
|
221
222
|
modifier: child => {
|
|
222
|
-
var
|
|
223
|
-
return headerCounts[(
|
|
223
|
+
var _props2;
|
|
224
|
+
return headerCounts[(_props2 = child.props) === null || _props2 === void 0 ? void 0 : _props2.title] ? child : null;
|
|
224
225
|
}
|
|
225
226
|
}]), [headerCounts, listChildrenFilteredOptions]);
|
|
226
227
|
const keyboardHighlightOrSelectOption = (index, e) => {
|
|
@@ -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 = "._k1Dn1{position:relative;display:inline-block}._z4rLI{padding-right:36px}._z4rLI._kzc34{box-shadow:none!important;border:1px solid #898989!important}._hb-vp{margin-top:4px}._XZVb9{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._XZVb9:hover{background-color:rgba(50,54,58,.08)}._XZVb9:active{background-color:rgba(50,54,58,.11)}._XZVb9._h7wA9{transform:rotate(-180deg)}._XZVb9._Bf2Cu{opacity:.4}._MxCdN{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}._Bf2Cu{cursor:not-allowed}._Bf2Cu:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_k1Dn1","comboboxInput":"_z4rLI","ignoreFocusStyle":"_kzc34","labelledInput":"_hb-vp","comboboxIcon":"_XZVb9","open":"_h7wA9","disabled":"_Bf2Cu","comboboxEmpty":"_MxCdN"};
|
|
5
|
+
var stylesheet="._k1Dn1{position:relative;display:inline-block}._z4rLI{padding-right:36px}._z4rLI._kzc34{box-shadow:none!important;border:1px solid #898989!important}._hb-vp{margin-top:4px}._XZVb9{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._XZVb9:hover{background-color:rgba(50,54,58,.08)}._XZVb9:active{background-color:rgba(50,54,58,.11)}._XZVb9._h7wA9{transform:rotate(-180deg)}._XZVb9._Bf2Cu{opacity:.4}._MxCdN{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}._Bf2Cu{cursor:not-allowed}._Bf2Cu: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 };
|
|
@@ -3,6 +3,7 @@ import React__default, { forwardRef } from 'react';
|
|
|
3
3
|
import '../../utils/index.js';
|
|
4
4
|
import { useComboboxContext } from './ComboboxContext.js';
|
|
5
5
|
import Popper from '../../utils/Popper/Popper.js';
|
|
6
|
+
import { offset } from '@floating-ui/react-dom';
|
|
6
7
|
import { FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
|
|
7
8
|
import { Flyout } from '../../utils/Flyout/Flyout.js';
|
|
8
9
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
@@ -31,12 +32,10 @@ const ComboboxList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
31
32
|
return /*#__PURE__*/React__default.createElement(Popper, {
|
|
32
33
|
open: isOpen,
|
|
33
34
|
placement: placement,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
}],
|
|
35
|
+
middleware: [offset({
|
|
36
|
+
crossAxis: FLYOUT_POPPER_OFFSET[0],
|
|
37
|
+
mainAxis: FLYOUT_POPPER_OFFSET[1]
|
|
38
|
+
})],
|
|
40
39
|
portalTarget: portalTarget,
|
|
41
40
|
anchorNode: inputRef.current,
|
|
42
41
|
popper: /*#__PURE__*/React__default.createElement(Flyout, _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 = {"paneContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wC9BL{grid-area:configPane;position:relative;height:100%}._LqdaF{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #eee;box-sizing:border-box}._Pgp8c._GKS-F ._LqdaF,._Pgp8c:not(._2RoF3) ._LqdaF{-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)}._2RoF3 ._LqdaF{width:0}._GKS-F._2RoF3 ._LqdaF{width:30px;cursor:pointer}._ywOIl{height:100%;position:relative;width:292px}._2RoF3 ._ywOIl,._Pgp8c ._ywOIl{width:0}._GKS-F._2RoF3 ._ywOIl,._GKS-F._Pgp8c ._ywOIl{width:30px}._1XWp6 ._ywOIl{transition:width .5s}._n-LuG{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._2RoF3 ._n-LuG{visibility:hidden}._1XWp6 ._n-LuG{visibility:visible}._n-LuG ._zqTMQ{width:252px;margin-left:20px}._TdGnr{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._08xC8{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._08xC8 *{font-weight:400;font-size:16px;margin:0}._zCGyQ{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._2RoF3 ._zCGyQ{left:0}._GKS-F._2RoF3 ._zCGyQ{left:30px}._zCGyQ ._O-TS6{width:4px;height:100%}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._O-TS6,._zCGyQ:hover ._O-TS6{background-color:#9dc5ed}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA>span,._zCGyQ:hover ._gxVgA>span{background-color:#0b6ed0;border-color:#0b6ed0}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA>span>svg,._zCGyQ:hover ._gxVgA>span>svg{fill:#fff}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA:active>span,._zCGyQ:hover ._gxVgA:active>span{background-color:#0854a1;border-color:#0854a1}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA:active>span>svg,._zCGyQ:hover ._gxVgA:active>span>svg{fill:#fff}._zCGyQ ._gxVgA{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}._zCGyQ ._gxVgA:active>span{background-color:#0854a1;border-color:#0854a1}._zCGyQ ._gxVgA:active>span>svg{fill:#fff}._zCGyQ ._gxVgA>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._zCGyQ ._gxVgA>span>svg{fill:#515559;border-radius:50%}._gxVgA.focus-visible,._gxVgA:focus-visible{border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_wC9BL","paneContentContainer":"_LqdaF","unpinned":"_Pgp8c","hidden":"_2RoF3","preview":"_GKS-F","spacer":"_ywOIl","transitioning":"_1XWp6","paneContent":"_n-LuG","paneContentInner":"_zqTMQ","header":"_TdGnr","title":"_08xC8","clickableArea":"_zCGyQ","hoverBorder":"_O-TS6","toolbarPanelExpandCollapseButton":"_gxVgA"};
|
|
5
|
+
var stylesheet="._wC9BL{grid-area:configPane;position:relative;height:100%}._LqdaF{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #eee;box-sizing:border-box}._Pgp8c._GKS-F ._LqdaF,._Pgp8c:not(._2RoF3) ._LqdaF{-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)}._2RoF3 ._LqdaF{width:0}._GKS-F._2RoF3 ._LqdaF{width:30px;cursor:pointer}._ywOIl{height:100%;position:relative;width:292px}._2RoF3 ._ywOIl,._Pgp8c ._ywOIl{width:0}._GKS-F._2RoF3 ._ywOIl,._GKS-F._Pgp8c ._ywOIl{width:30px}._1XWp6 ._ywOIl{transition:width .5s}._n-LuG{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._2RoF3 ._n-LuG{visibility:hidden}._1XWp6 ._n-LuG{visibility:visible}._n-LuG ._zqTMQ{width:252px;margin-left:20px}._TdGnr{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._08xC8{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._08xC8 *{font-weight:400;font-size:16px;margin:0}._zCGyQ{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._2RoF3 ._zCGyQ{left:0}._GKS-F._2RoF3 ._zCGyQ{left:30px}._zCGyQ ._O-TS6{width:4px;height:100%}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._O-TS6,._zCGyQ:hover ._O-TS6{background-color:#9dc5ed}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA>span,._zCGyQ:hover ._gxVgA>span{background-color:#0b6ed0;border-color:#0b6ed0}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA>span>svg,._zCGyQ:hover ._gxVgA>span>svg{fill:#fff}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA:active>span,._zCGyQ:hover ._gxVgA:active>span{background-color:#0854a1;border-color:#0854a1}._GKS-F._2RoF3 ._LqdaF:hover+._zCGyQ ._gxVgA:active>span>svg,._zCGyQ:hover ._gxVgA:active>span>svg{fill:#fff}._zCGyQ ._gxVgA{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}._zCGyQ ._gxVgA:active>span{background-color:#0854a1;border-color:#0854a1}._zCGyQ ._gxVgA:active>span>svg{fill:#fff}._zCGyQ ._gxVgA>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._zCGyQ ._gxVgA>span>svg{fill:#515559;border-radius:50%}._gxVgA.focus-visible,._gxVgA:focus-visible{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 = "._VzGqU{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
+
var styles = {"divider":"_VzGqU"};
|
|
5
|
+
var stylesheet="._VzGqU{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 };
|
|
@@ -105,7 +105,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
105
105
|
// if the anchor is blurred without opening the flyout, or if the flyout
|
|
106
106
|
// is closed without focusing the anchor.
|
|
107
107
|
|
|
108
|
-
const focusRef = useRef();
|
|
108
|
+
const focusRef = useRef(null);
|
|
109
109
|
const onBlur = e => {
|
|
110
110
|
// Prevents incorrect validation caused by DropdownOptions inheriting this blur event
|
|
111
111
|
// note: relatedTarget in this context refers to where the focus is going after blur
|
|
@@ -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 = "._jUJI4{max-width:100%;position:relative;display:inline-block}._wPOSW{width:100%}._2Lxx8{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}._2Lxx8:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._2Lxx8:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._2Lxx8:disabled,._2Lxx8[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._2Lxx8._QDyyR{border-color:#b00}._2Lxx8._QDyyR:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._2Lxx8._C3ZA-{min-width:120px;padding:0 4px 0 12px}._2Lxx8._ZEuWs{margin-top:4px}._2Lxx8._oOVZE:not([aria-disabled=true]):not(:disabled){color:#32363a}._2Lxx8 ._VFiLm{min-height:10px}._2Lxx8 ._VFiLm._ZPH0a{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._2Lxx8 ._VFiLm._EeKEW{display:inline-flex;align-items:center}._2Lxx8 ._BXFHP{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._2Lxx8 ._BXFHP._qKTWe{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._2Lxx8 ._BXFHP._sQwMI{transform:rotate(-180deg)}._rsRKr[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._Q8Cbw{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}._a2kkX{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}._cG-Tm{fill:#515559}._S7fwh{margin:2px 12px 2px 0}._S7fwh._MhXT8>svg{border-color:#0b6ed0}._1NvXi{width:100%}";
|
|
4
|
+
var styles = {"container":"_jUJI4","formFieldWrapper":"_wPOSW","button":"_2Lxx8","invalid":"_QDyyR","hasText":"_C3ZA-","labelled":"_ZEuWs","selected":"_oOVZE","buttonLabel":"_VFiLm","isString":"_ZPH0a","isNode":"_EeKEW","icon":"_BXFHP","disabled":"_qKTWe","open":"_sQwMI","option":"_rsRKr","search":"_Q8Cbw","emptyOption":"_a2kkX","searchIcon":"_cG-Tm","checkbox":"_S7fwh","highlighted":"_MhXT8","searchInput":"_1NvXi"};
|
|
5
|
+
var stylesheet="._jUJI4{max-width:100%;position:relative;display:inline-block}._wPOSW{width:100%}._2Lxx8{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}._2Lxx8:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._2Lxx8:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._2Lxx8:disabled,._2Lxx8[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._2Lxx8._QDyyR{border-color:#b00}._2Lxx8._QDyyR:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._2Lxx8._C3ZA-{min-width:120px;padding:0 4px 0 12px}._2Lxx8._ZEuWs{margin-top:4px}._2Lxx8._oOVZE:not([aria-disabled=true]):not(:disabled){color:#32363a}._2Lxx8 ._VFiLm{min-height:10px}._2Lxx8 ._VFiLm._ZPH0a{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._2Lxx8 ._VFiLm._EeKEW{display:inline-flex;align-items:center}._2Lxx8 ._BXFHP{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._2Lxx8 ._BXFHP._qKTWe{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._2Lxx8 ._BXFHP._sQwMI{transform:rotate(-180deg)}._rsRKr[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._Q8Cbw{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}._a2kkX{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}._cG-Tm{fill:#515559}._S7fwh{margin:2px 12px 2px 0}._S7fwh._MhXT8>svg{border-color:#0b6ed0}._1NvXi{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 };
|
|
@@ -15,7 +15,7 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
|
15
15
|
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
16
16
|
|
|
17
17
|
const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
18
|
-
var _ref2, _children$props$aria, _children$props3, _ref3, _children$props$aria2, _children$props4,
|
|
18
|
+
var _ref2, _children$props$aria, _children$props3, _ref3, _children$props$aria2, _children$props4, _childProps$tabIndex, _childProps$role;
|
|
19
19
|
let {
|
|
20
20
|
children,
|
|
21
21
|
className,
|
|
@@ -113,12 +113,13 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
113
113
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
114
114
|
onKeyDownButton(e);
|
|
115
115
|
};
|
|
116
|
+
const childProps = children === null || children === void 0 ? void 0 : children.props;
|
|
116
117
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? (/*#__PURE__*/React__default.cloneElement(children, {
|
|
117
118
|
ref: mergeRefs(ref, children === null || children === void 0 ? void 0 : children.ref, buttonRef, dropdownButtonRef),
|
|
118
119
|
disabled: disabled || dropdownAriaDisabled,
|
|
119
120
|
'aria-disabled': dropdownAriaDisabled,
|
|
120
|
-
tabIndex: (
|
|
121
|
-
role: (
|
|
121
|
+
tabIndex: (_childProps$tabIndex = childProps === null || childProps === void 0 ? void 0 : childProps.tabIndex) !== null && _childProps$tabIndex !== void 0 ? _childProps$tabIndex : 0,
|
|
122
|
+
role: (_childProps$role = childProps === null || childProps === void 0 ? void 0 : childProps.role) !== null && _childProps$role !== void 0 ? _childProps$role : 'button',
|
|
122
123
|
'aria-expanded': isOpen,
|
|
123
124
|
'aria-haspopup': 'listbox',
|
|
124
125
|
'aria-controls': listboxId,
|
|
@@ -127,17 +128,17 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
127
128
|
'aria-describedby': ariaDescribedby,
|
|
128
129
|
id: buttonId,
|
|
129
130
|
onFocus: e => {
|
|
130
|
-
var
|
|
131
|
-
|
|
131
|
+
var _childProps$onFocus;
|
|
132
|
+
childProps === null || childProps === void 0 || (_childProps$onFocus = childProps.onFocus) === null || _childProps$onFocus === void 0 || _childProps$onFocus.call(childProps, e);
|
|
132
133
|
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
133
134
|
},
|
|
134
135
|
onBlur: e => {
|
|
135
|
-
var
|
|
136
|
-
|
|
136
|
+
var _childProps$onBlur;
|
|
137
|
+
childProps === null || childProps === void 0 || (_childProps$onBlur = childProps.onBlur) === null || _childProps$onBlur === void 0 || _childProps$onBlur.call(childProps, e);
|
|
137
138
|
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
138
139
|
},
|
|
139
|
-
onKeyDown: wrapEvent(
|
|
140
|
-
onClick: wrapEvent(
|
|
140
|
+
onKeyDown: wrapEvent(childProps === null || childProps === void 0 ? void 0 : childProps.onKeyDown, handleKeyDown),
|
|
141
|
+
onClick: wrapEvent(childProps === null || childProps === void 0 ? void 0 : childProps.onClick, handleClick)
|
|
141
142
|
})) : /*#__PURE__*/React__default.createElement("button", _extends({
|
|
142
143
|
role: "combobox"
|
|
143
144
|
}, rest, {
|
|
@@ -10,6 +10,7 @@ import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
|
10
10
|
import useScreenReaderAnnouncement from '../../hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js';
|
|
11
11
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
12
12
|
import Popper from '../../utils/Popper/Popper.js';
|
|
13
|
+
import { offset } from '@floating-ui/react-dom';
|
|
13
14
|
import { Flyout } from '../../utils/Flyout/Flyout.js';
|
|
14
15
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
15
16
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
@@ -21,7 +22,7 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
21
22
|
placement = 'bottom-start',
|
|
22
23
|
onKeyDown,
|
|
23
24
|
portalTarget,
|
|
24
|
-
private_offset:
|
|
25
|
+
private_offset: popperOffset = FLYOUT_POPPER_OFFSET,
|
|
25
26
|
// TODO: Delete or stabilize since no longer used by AdvancedTable
|
|
26
27
|
style = {},
|
|
27
28
|
'aria-label': externalAriaLabel,
|
|
@@ -66,12 +67,10 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
66
67
|
placement: placement,
|
|
67
68
|
anchorNode: buttonRef.current,
|
|
68
69
|
portalTarget: portalTarget,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
}],
|
|
70
|
+
middleware: [offset({
|
|
71
|
+
crossAxis: popperOffset[0],
|
|
72
|
+
mainAxis: popperOffset[1]
|
|
73
|
+
})],
|
|
75
74
|
popper: /*#__PURE__*/React__default.createElement(Flyout, _extends({}, rest, {
|
|
76
75
|
ref: mergeRefs(ref, listRef),
|
|
77
76
|
anchorRef: buttonRef,
|