@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 filePickerStyles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6gRuT{position:relative}._6gRuT[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6gRuT:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._ZzG-C{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._dwVzW{margin-left:16px;font-size:14px;color:#32363a}._dwVzW ._4wfx5{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_6gRuT","fileInput":"_ZzG-C","fileDetails":"_dwVzW","fileName":"_4wfx5"};
|
|
5
|
+
var stylesheet="._6gRuT{position:relative}._6gRuT[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6gRuT:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._ZzG-C{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._dwVzW{margin-left:16px;font-size:14px;color:#32363a}._dwVzW ._4wfx5{margin-right:16px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { filePickerStyles 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 = {"caption":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._71wzI{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._KXECW{color:#6a6d70;fill:#6a6d70}._tNzEt{color:#b00;fill:#b00}._TKEp9,._Ur6S9{margin-left:-2px;margin-right:3px}";
|
|
4
|
+
var styles = {"caption":"_71wzI","helperText":"_KXECW","errorText":"_tNzEt","errorIcon":"_Ur6S9","readOnlyIcon":"_TKEp9"};
|
|
5
|
+
var stylesheet="._71wzI{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._KXECW{color:#6a6d70;fill:#6a6d70}._tNzEt{color:#b00;fill:#b00}._TKEp9,._Ur6S9{margin-left:-2px;margin-right:3px}";
|
|
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 = {"formField":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._K2qBI{display:flex;flex-direction:column;align-items:flex-start}._z9E2h{margin-top:6px;max-width:100%}._z9E2h *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_K2qBI","captionContainer":"_z9E2h"};
|
|
5
|
+
var stylesheet="._K2qBI{display:flex;flex-direction:column;align-items:flex-start}._z9E2h{margin-top:6px;max-width:100%}._z9E2h *+*{margin-top: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 = {"dialog":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._OukCH{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _uQ8pd{0%{transform:scale3d(.7,.7,.7);opacity:0}}._6Y-B0{animation:_uQ8pd both;animation-duration:.2s}@keyframes _m2Pdh{to{transform:scale3d(.7,.7,.7);opacity:0}}._VIRdz{animation:_m2Pdh both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_OukCH","transitionIn":"_6Y-B0","showAnimation":"_uQ8pd","transitionOut":"_VIRdz","hideAnimation":"_m2Pdh"};
|
|
5
|
+
var stylesheet="._OukCH{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _uQ8pd{0%{transform:scale3d(.7,.7,.7);opacity:0}}._6Y-B0{animation:_uQ8pd both;animation-duration:.2s}@keyframes _m2Pdh{to{transform:scale3d(.7,.7,.7);opacity:0}}._VIRdz{animation:_m2Pdh both;animation-duration:.2s}";
|
|
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 iconButtonStyles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._DFsiu{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._DFsiu:focus{outline:none}._DFsiu:hover:not(._SpOYH){background-color:rgba(50,54,58,.08)}._DFsiu._hJjcZ:not(._SpOYH),._DFsiu:active:not(._SpOYH){background-color:rgba(50,54,58,.11);stroke-width:2}._DFsiu._SpOYH{cursor:not-allowed;fill:rgba(81,85,89,.6)}._DFsiu.focus-visible,._DFsiu:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var iconButtonStyles = {"button":"_DFsiu","disabled":"_SpOYH","active":"_hJjcZ"};
|
|
5
|
+
var stylesheet="._DFsiu{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._DFsiu:focus{outline:none}._DFsiu:hover:not(._SpOYH){background-color:rgba(50,54,58,.08)}._DFsiu._hJjcZ:not(._SpOYH),._DFsiu:active:not(._SpOYH){background-color:rgba(50,54,58,.11);stroke-width:2}._DFsiu._SpOYH{cursor:not-allowed;fill:rgba(81,85,89,.6)}._DFsiu.focus-visible,._DFsiu: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 { iconButtonStyles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._o8Vl9{display:inline-block}._vw3xu{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._vw3xu::-moz-selection{background-color:rgba(11,110,208,.11)}._vw3xu::selection{background-color:rgba(11,110,208,.11)}._vw3xu:focus,._vw3xu:hover{background-color:#f5f5f5}._vw3xu:focus{border:2px solid #0a3f88;padding:3px}._vw3xu:focus._ncH-Q{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
4
|
+
var styles = {"container":"_o8Vl9","inlineInput":"_vw3xu","isEditing":"_ncH-Q"};
|
|
5
|
+
var stylesheet="._o8Vl9{display:inline-block}._vw3xu{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._vw3xu::-moz-selection{background-color:rgba(11,110,208,.11)}._vw3xu::selection{background-color:rgba(11,110,208,.11)}._vw3xu:focus,._vw3xu:hover{background-color:#f5f5f5}._vw3xu:focus{border:2px solid #0a3f88;padding:3px}._vw3xu:focus._ncH-Q{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
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 = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._AxBYb{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._AxBYb::-moz-placeholder{color:#515559;opacity:1}._AxBYb::placeholder{color:#515559;opacity:1}._AxBYb:hover{cursor:pointer;background-color:#f5f5f5}._AxBYb:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._AxBYb._Qu3NE{border-color:#b00}._AxBYb._Qu3NE:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._AxBYb:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._AxBYb:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AxBYb:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AxBYb._rAoCu{height:auto}._AxBYb._rAoCu::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._AxBYb._hlz-W{display:block;width:100%}._AxBYb._42Qpj{padding:4px 8px}input._AxBYb._42Qpj{height:26px;min-height:26px}[type=number]._AxBYb{-moz-appearance:textfield}[type=number]._AxBYb::-webkit-inner-spin-button,[type=number]._AxBYb::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._uv93d{line-height:20px;color:#515559;display:flex;flex-direction:column;align-items:flex-start}._uv93d:hover{cursor:pointer}._uv93d._CxN-7{color:#0b6ed0}._Z5C21{margin-top:4px}";
|
|
4
|
+
var styles = {"input":"_AxBYb","invalid":"_Qu3NE","multiline":"_rAoCu","full":"_hlz-W","small":"_42Qpj","label":"_uv93d","focused":"_CxN-7","wrappedInput":"_Z5C21"};
|
|
5
|
+
var stylesheet="._AxBYb{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._AxBYb::-moz-placeholder{color:#515559;opacity:1}._AxBYb::placeholder{color:#515559;opacity:1}._AxBYb:hover{cursor:pointer;background-color:#f5f5f5}._AxBYb:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._AxBYb._Qu3NE{border-color:#b00}._AxBYb._Qu3NE:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._AxBYb:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._AxBYb:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AxBYb:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AxBYb._rAoCu{height:auto}._AxBYb._rAoCu::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._AxBYb._hlz-W{display:block;width:100%}._AxBYb._42Qpj{padding:4px 8px}input._AxBYb._42Qpj{height:26px;min-height:26px}[type=number]._AxBYb{-moz-appearance:textfield}[type=number]._AxBYb::-webkit-inner-spin-button,[type=number]._AxBYb::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._uv93d{line-height:20px;color:#515559;display:flex;flex-direction:column;align-items:flex-start}._uv93d:hover{cursor:pointer}._uv93d._CxN-7{color:#0b6ed0}._Z5C21{margin-top: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 = {"addon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._p32Gh{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._p32Gh._ZRx-g{height:26px;min-height:26px;padding:5px 8px}._HMQH9{display:flex;align-items:stretch}._HMQH9._KeN5V{width:100%}._HMQH9 ._50dkp{margin:0;position:relative;flex-shrink:0;z-index:10}._HMQH9 ._50dkp: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}._HMQH9 ._50dkp:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._HMQH9 ._50dkp:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._HMQH9 ._50dkp:last-child,._HMQH9 ._50dkp:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._HMQH9 ._50dkp:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._HMQH9 ._50dkp._kCvYm{flex-shrink:1;min-width:40px;z-index:0}._HMQH9 ._50dkp._kCvYm._KeN5V{flex-grow:1}._HMQH9 ._50dkp:focus{z-index:20}";
|
|
4
|
+
var styles = {"addon":"_p32Gh","small":"_ZRx-g","inputGroup":"_HMQH9","full":"_KeN5V","inputGroupElement":"_50dkp","input":"_kCvYm"};
|
|
5
|
+
var stylesheet="._p32Gh{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._p32Gh._ZRx-g{height:26px;min-height:26px;padding:5px 8px}._HMQH9{display:flex;align-items:stretch}._HMQH9._KeN5V{width:100%}._HMQH9 ._50dkp{margin:0;position:relative;flex-shrink:0;z-index:10}._HMQH9 ._50dkp: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}._HMQH9 ._50dkp:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._HMQH9 ._50dkp:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._HMQH9 ._50dkp:last-child,._HMQH9 ._50dkp:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._HMQH9 ._50dkp:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._HMQH9 ._50dkp._kCvYm{flex-shrink:1;min-width:40px;z-index:0}._HMQH9 ._50dkp._kCvYm._KeN5V{flex-grow:1}._HMQH9 ._50dkp:focus{z-index:20}";
|
|
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 = {"label":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._32WpG{font-size:14px}._Fn7Xf{color:#515559;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._RkA9w{color:#0b6ed0}";
|
|
4
|
+
var styles = {"label":"_32WpG","control":"_Fn7Xf","focused":"_RkA9w"};
|
|
5
|
+
var stylesheet="._32WpG{font-size:14px}._Fn7Xf{color:#515559;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._RkA9w{color:#0b6ed0}";
|
|
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 = {"link":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ek2kL{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._ek2kL:active:focus,._ek2kL:focus{outline:none}._ek2kL:visited{color:#0854a1}._ek2kL:hover{color:#085caf}._ek2kL:active{color:#0854a1}._ek2kL.focus-visible,._ek2kL:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"link":"_ek2kL"};
|
|
5
|
+
var stylesheet="._ek2kL{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._ek2kL:active:focus,._ek2kL:focus{outline:none}._ek2kL:visited{color:#0854a1}._ek2kL:hover{color:#085caf}._ek2kL:active{color:#0854a1}._ek2kL.focus-visible,._ek2kL: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 = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._neP81{position:relative;display:inline-block}._neP81._2JVcc{min-height:20px;min-width:20px}._neP81._EE6sY{min-height:25px;min-width:25px}._neP81._--ljF{min-height:40px;min-width:40px}._neP81._8snIK{min-height:64px;min-width:64px}._neP81 ._4NeWT{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._neP81 ._4NeWT._6OpZu{display:none}._neP81 ._4NeWT div{position:absolute;transform:rotate(20deg)}._neP81 ._4NeWT div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_4NeWT .9s linear infinite}._neP81 ._4NeWT div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._neP81 ._4NeWT div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._neP81 ._4NeWT div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._neP81 ._4NeWT div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._neP81 ._4NeWT div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._neP81 ._4NeWT div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._neP81 ._4NeWT div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._neP81 ._4NeWT div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._neP81 ._4NeWT div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._neP81 ._4NeWT div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._neP81 ._8snIK div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._neP81 ._2JVcc div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._neP81 ._EE6sY div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._neP81 ._x3fmW div div:nth-child(-n+9):after{background:#fff}._neP81 ._A4wPw{width:100%;height:100%}._neP81 ._A4wPw._Fkd1A{pointer-events:none}._neP81 ._A4wPw._6OpZu{opacity:0}._neP81 ._A4wPw._xZ03J{opacity:.5}@keyframes _4NeWT{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_neP81","xs":"_2JVcc","small":"_EE6sY","medium":"_--ljF","large":"_8snIK","spinnerComponent":"_4NeWT","hide":"_6OpZu","inverted":"_x3fmW","spinnerContent":"_A4wPw","disablePointerEvents":"_Fkd1A","fade":"_xZ03J"};
|
|
5
|
+
var stylesheet="._neP81{position:relative;display:inline-block}._neP81._2JVcc{min-height:20px;min-width:20px}._neP81._EE6sY{min-height:25px;min-width:25px}._neP81._--ljF{min-height:40px;min-width:40px}._neP81._8snIK{min-height:64px;min-width:64px}._neP81 ._4NeWT{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._neP81 ._4NeWT._6OpZu{display:none}._neP81 ._4NeWT div{position:absolute;transform:rotate(20deg)}._neP81 ._4NeWT div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_4NeWT .9s linear infinite}._neP81 ._4NeWT div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._neP81 ._4NeWT div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._neP81 ._4NeWT div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._neP81 ._4NeWT div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._neP81 ._4NeWT div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._neP81 ._4NeWT div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._neP81 ._4NeWT div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._neP81 ._4NeWT div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._neP81 ._4NeWT div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._neP81 ._4NeWT div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._neP81 ._8snIK div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._neP81 ._2JVcc div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._neP81 ._EE6sY div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._neP81 ._x3fmW div div:nth-child(-n+9):after{background:#fff}._neP81 ._A4wPw{width:100%;height:100%}._neP81 ._A4wPw._Fkd1A{pointer-events:none}._neP81 ._A4wPw._6OpZu{opacity:0}._neP81 ._A4wPw._xZ03J{opacity:.5}@keyframes _4NeWT{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -36,8 +36,8 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
36
36
|
index
|
|
37
37
|
}), [parent, index]);
|
|
38
38
|
const conditionRef = React__default.useRef(null);
|
|
39
|
-
const lastConnectionRef = React__default.useRef();
|
|
40
|
-
const lastItemRef = React__default.useRef();
|
|
39
|
+
const lastConnectionRef = React__default.useRef(null);
|
|
40
|
+
const lastItemRef = React__default.useRef(null);
|
|
41
41
|
function setupLastLine() {
|
|
42
42
|
if (lastConnectionRef.current && conditionRef.current && lastItemRef.current) {
|
|
43
43
|
let {
|
|
@@ -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 = {"set":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._yQL2S{width:100%}._iiaf6{display:flex;align-items:center}._Xwdn0{display:flex;flex-wrap:wrap;grid-gap:4px}._Xwdn0._qwGz3>:nth-last-child(2){margin-right:42px;max-width:calc(100% - 42px)}._cMAjC{position:relative;padding-left:32px;padding-top:16px}._b2n82 ._cMAjC{padding-top:0;padding-left:16px}._b2n82 ._cMAjC+._cMAjC{margin-top:16px}._KZGW1{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._b2n82 ._cMAjC:first-of-type ._KZGW1{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._b2n82 ._KZGW1{top:-16px;left:0}._b2n82 ._cMAjC:not(:first-of-type):not(:last-of-type) ._KZGW1{border-bottom-left-radius:0}._8gl3y{margin-left:-46px}._a6yJZ{margin:0 2px 0 4px}._a6yJZ.focus-visible,._a6yJZ:focus-visible{outline-width:2px}._WG861{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_yQL2S","setWrapper":"_iiaf6","condition":"_Xwdn0","readOnly":"_qwGz3","branch":"_cMAjC","fixedSet":"_b2n82","connection":"_KZGW1","conditionControlsContainer":"_8gl3y","controls":"_a6yJZ","controlMenuItem":"_WG861"};
|
|
5
|
+
var stylesheet="._yQL2S{width:100%}._iiaf6{display:flex;align-items:center}._Xwdn0{display:flex;flex-wrap:wrap;grid-gap:4px}._Xwdn0._qwGz3>:nth-last-child(2){margin-right:42px;max-width:calc(100% - 42px)}._cMAjC{position:relative;padding-left:32px;padding-top:16px}._b2n82 ._cMAjC{padding-top:0;padding-left:16px}._b2n82 ._cMAjC+._cMAjC{margin-top:16px}._KZGW1{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._b2n82 ._cMAjC:first-of-type ._KZGW1{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._b2n82 ._KZGW1{top:-16px;left:0}._b2n82 ._cMAjC:not(:first-of-type):not(:last-of-type) ._KZGW1{border-bottom-left-radius:0}._8gl3y{margin-left:-46px}._a6yJZ{margin:0 2px 0 4px}._a6yJZ.focus-visible,._a6yJZ:focus-visible{outline-width:2px}._WG861{margin-left: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 };
|
|
@@ -39,7 +39,7 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
39
39
|
const {
|
|
40
40
|
onClose
|
|
41
41
|
} = useModalContext();
|
|
42
|
-
const mouseDownTarget = React__default.useRef();
|
|
42
|
+
const mouseDownTarget = React__default.useRef(null);
|
|
43
43
|
const handleMouseDown = e => {
|
|
44
44
|
mouseDownTarget.current = e.target;
|
|
45
45
|
};
|
|
@@ -68,7 +68,9 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
68
68
|
useEventListener(document.body, 'keydown', handleBodyKeyDown);
|
|
69
69
|
return /*#__PURE__*/React__default.createElement(ReactFocusLock, {
|
|
70
70
|
disabled: disabledFocusLock,
|
|
71
|
-
autoFocus: false
|
|
71
|
+
autoFocus: false
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
73
|
+
,
|
|
72
74
|
as: OverlayContainer,
|
|
73
75
|
className: classes,
|
|
74
76
|
ref: mergeRefs(ref, overlay)
|
|
@@ -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 = {"backdrop":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2HiDN{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._2HiDN,._7XwKw{display:flex;overflow:auto}._7XwKw{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._gYJmI)._-u6f-{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._-u6f-{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._gYJmI)._VM4tx{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._VM4tx{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._gYJmI)._VM4tx{max-width:700px}}:not(._gYJmI)._ypaEY{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._ypaEY{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._gYJmI)._ypaEY{max-width:700px}}@media screen and (min-width:1024px){:not(._gYJmI)._ypaEY{max-width:1000px}}:not(._gYJmI)._yjRYp{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._yjRYp{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._gYJmI)._yjRYp{max-width:700px}}@media screen and (min-width:1024px){:not(._gYJmI)._yjRYp{max-width:1000px}}@media screen and (min-width:1632px){:not(._gYJmI)._yjRYp{max-width:1600px;max-height:calc(100vh - 32px)}}._gYJmI{min-width:200px;width:calc(100% - 48px)}._gYJmI,._gYJmI._-u6f-{max-height:calc(100vh - 80px)}._gYJmI._-u6f-{max-width:480px;border-radius:8px}._gYJmI._VM4tx{max-width:700px}._gYJmI._ypaEY{max-width:1000px}._gYJmI._yjRYp{max-width:1600px;max-height:calc(100vh - 32px)}._UBoIH{height:calc(100vh - 80px)}@media screen and (max-width:479px){._UBoIH{height:100vh}}@media screen and (min-width:1632px){._UBoIH{height:calc(100vh - 32px)}}._z0cz8{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._lXeO3{padding-right:64px}._rEMg8{position:absolute;top:14px;right:14px}._T1B7v{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._IFZeH,._T1B7v{padding:20px 24px}._IFZeH{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._IFZeH>*{margin:0 4px}._IFZeH>:first-child{margin-left:0}._IFZeH>:last-child{margin-right:0}@keyframes _iC6U5{0%{opacity:0}}._iC6U5{animation:_iC6U5 ease-in both;animation-duration:.2s}@keyframes _7--hw{to{opacity:0}}._7--hw{animation:_7--hw ease-out both;animation-duration:.2s}@keyframes _CLlev{0%{transform:scale3d(.7,.7,.7);opacity:0}}._CLlev{animation:_CLlev both;animation-duration:.2s}@keyframes _aAfNs{to{transform:scale3d(.7,.7,.7);opacity:0}}._aAfNs{animation:_aAfNs both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_2HiDN","modal":"_7XwKw","responsive":"_gYJmI","dialogSmall":"_-u6f-","dialogMedium":"_VM4tx","dialogLarge":"_ypaEY","dialogExtraLarge":"_yjRYp","growToMaxHeight":"_UBoIH","modalHeader":"_z0cz8","modalHeaderWithCloseButton":"_lXeO3","modalHeaderCloseButton":"_rEMg8","modalBody":"_T1B7v","modalFooter":"_IFZeH","fadeEnter":"_iC6U5","fadeLeave":"_7--hw","zoomEnter":"_CLlev","zoomLeave":"_aAfNs"};
|
|
5
|
+
var stylesheet="._2HiDN{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._2HiDN,._7XwKw{display:flex;overflow:auto}._7XwKw{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._gYJmI)._-u6f-{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._-u6f-{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._gYJmI)._VM4tx{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._VM4tx{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._gYJmI)._VM4tx{max-width:700px}}:not(._gYJmI)._ypaEY{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._ypaEY{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._gYJmI)._ypaEY{max-width:700px}}@media screen and (min-width:1024px){:not(._gYJmI)._ypaEY{max-width:1000px}}:not(._gYJmI)._yjRYp{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._gYJmI)._yjRYp{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._gYJmI)._yjRYp{max-width:700px}}@media screen and (min-width:1024px){:not(._gYJmI)._yjRYp{max-width:1000px}}@media screen and (min-width:1632px){:not(._gYJmI)._yjRYp{max-width:1600px;max-height:calc(100vh - 32px)}}._gYJmI{min-width:200px;width:calc(100% - 48px)}._gYJmI,._gYJmI._-u6f-{max-height:calc(100vh - 80px)}._gYJmI._-u6f-{max-width:480px;border-radius:8px}._gYJmI._VM4tx{max-width:700px}._gYJmI._ypaEY{max-width:1000px}._gYJmI._yjRYp{max-width:1600px;max-height:calc(100vh - 32px)}._UBoIH{height:calc(100vh - 80px)}@media screen and (max-width:479px){._UBoIH{height:100vh}}@media screen and (min-width:1632px){._UBoIH{height:calc(100vh - 32px)}}._z0cz8{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._lXeO3{padding-right:64px}._rEMg8{position:absolute;top:14px;right:14px}._T1B7v{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._IFZeH,._T1B7v{padding:20px 24px}._IFZeH{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._IFZeH>*{margin:0 4px}._IFZeH>:first-child{margin-left:0}._IFZeH>:last-child{margin-right:0}@keyframes _iC6U5{0%{opacity:0}}._iC6U5{animation:_iC6U5 ease-in both;animation-duration:.2s}@keyframes _7--hw{to{opacity:0}}._7--hw{animation:_7--hw ease-out both;animation-duration:.2s}@keyframes _CLlev{0%{transform:scale3d(.7,.7,.7);opacity:0}}._CLlev{animation:_CLlev both;animation-duration:.2s}@keyframes _aAfNs{to{transform:scale3d(.7,.7,.7);opacity:0}}._aAfNs{animation:_aAfNs both;animation-duration:.2s}";
|
|
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 };
|
|
@@ -21,11 +21,12 @@ import MenuAnchor from './parts/MenuAnchor.js';
|
|
|
21
21
|
import MenuSpinner from './parts/MenuSpinner.js';
|
|
22
22
|
import MenuSearchBox from './parts/MenuSearchBox.js';
|
|
23
23
|
import Popper from '../../utils/Popper/Popper.js';
|
|
24
|
+
import { offset } from '@floating-ui/react-dom';
|
|
24
25
|
import { SUBMENU_POPPER_OFFSET, FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
|
|
25
26
|
import ArrowNav from './parts/ArrowNav/ArrowNav.js';
|
|
26
27
|
|
|
27
28
|
const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
28
|
-
var
|
|
29
|
+
var _anchorProps$id, _useMenuContext, _anchorProps$ariaLab, _anchorProps$ariaLab2, _anchorProps$tabIndex, _anchorProps$role, _anchorProps$ariaDis, _anchorRef$current;
|
|
29
30
|
let {
|
|
30
31
|
anchor: externalAnchor,
|
|
31
32
|
'aria-label': externalAriaLabel,
|
|
@@ -67,7 +68,8 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
67
68
|
private_isFirstElementHighlightedOnUserActivatedOpen = true,
|
|
68
69
|
...rest
|
|
69
70
|
} = _ref;
|
|
70
|
-
const
|
|
71
|
+
const anchorProps = externalAnchor === null || externalAnchor === void 0 ? void 0 : externalAnchor.props;
|
|
72
|
+
const anchorId = useId((_anchorProps$id = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.id) !== null && _anchorProps$id !== void 0 ? _anchorProps$id : externalId);
|
|
71
73
|
const arrowNavId = "".concat(anchorId, "-menu");
|
|
72
74
|
const parentCloseAndFocusAnchor = (_useMenuContext = useMenuContext()) === null || _useMenuContext === void 0 ? void 0 : _useMenuContext.closeAndFocusAnchor;
|
|
73
75
|
const isSubmenu = Boolean(parentCloseAndFocusAnchor);
|
|
@@ -228,23 +230,23 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
228
230
|
const anchorLabel = label !== null && label !== void 0 ? label : getLabelFromValue(children, selectedValue);
|
|
229
231
|
const menuAnchorLabel = anchorLabel !== null && anchorLabel !== void 0 ? anchorLabel : defaultLabel;
|
|
230
232
|
const announceToScreenReader = useScreenReaderAnnouncement('assertive');
|
|
231
|
-
const ariaLabelledBy = (
|
|
232
|
-
const ariaLabel = (
|
|
233
|
-
const ariaExpanded = (
|
|
233
|
+
const ariaLabelledBy = (_anchorProps$ariaLab = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps['aria-labelledby']) !== null && _anchorProps$ariaLab !== void 0 ? _anchorProps$ariaLab : externalAriaLabelledBy ? selectable ? externalAriaLabelledBy : "".concat(externalAriaLabelledBy, " ").concat(anchorId) : undefined;
|
|
234
|
+
const ariaLabel = (_anchorProps$ariaLab2 = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps['aria-label']) !== null && _anchorProps$ariaLab2 !== void 0 ? _anchorProps$ariaLab2 : externalAriaLabel && typeof menuAnchorLabel === 'string' ? "".concat(externalAriaLabel, " ").concat(menuAnchorLabel) : externalAriaLabel;
|
|
235
|
+
const ariaExpanded = (anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps['aria-expanded']) !== undefined ? anchorProps['aria-expanded'] : isOpen;
|
|
234
236
|
const actualAnchor = externalAnchor !== undefined ? (/*#__PURE__*/React__default.cloneElement(externalAnchor, {
|
|
235
237
|
ref: mergeRefs(ref, anchorRef, externalAnchor.ref),
|
|
236
|
-
tabIndex: (
|
|
237
|
-
role: (
|
|
238
|
+
tabIndex: (_anchorProps$tabIndex = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.tabIndex) !== null && _anchorProps$tabIndex !== void 0 ? _anchorProps$tabIndex : 0,
|
|
239
|
+
role: (_anchorProps$role = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.role) !== null && _anchorProps$role !== void 0 ? _anchorProps$role : 'button',
|
|
238
240
|
id: anchorId,
|
|
239
241
|
'aria-controls': arrowNavId,
|
|
240
242
|
'aria-expanded': ariaExpanded,
|
|
241
243
|
'aria-haspopup': 'menu',
|
|
242
|
-
'aria-disabled': (
|
|
244
|
+
'aria-disabled': (_anchorProps$ariaDis = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps['aria-disabled']) !== null && _anchorProps$ariaDis !== void 0 ? _anchorProps$ariaDis : disabled,
|
|
243
245
|
'aria-labelledby': ariaLabelledBy,
|
|
244
246
|
'aria-label': ariaLabel,
|
|
245
247
|
onMouseDown: preventClickOutside,
|
|
246
|
-
onClick: wrapEvent(
|
|
247
|
-
onKeyDown: wrapEvent(
|
|
248
|
+
onClick: wrapEvent(anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.onClick, handleAnchorClick),
|
|
249
|
+
onKeyDown: wrapEvent(anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.onKeyDown, handleAnchorKeyDown)
|
|
248
250
|
})) : isSubmenu ? /*#__PURE__*/React__default.createElement(SubmenuAnchor, _extends({
|
|
249
251
|
ref: mergeRefs(ref, anchorRef),
|
|
250
252
|
label: label,
|
|
@@ -275,7 +277,9 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
275
277
|
}));
|
|
276
278
|
const closeAndFocusAnchor = useCallback(() => {
|
|
277
279
|
closeMenu();
|
|
278
|
-
anchorRef.current && anchorRef.current.focus(
|
|
280
|
+
anchorRef.current && anchorRef.current.focus({
|
|
281
|
+
preventScroll: true
|
|
282
|
+
});
|
|
279
283
|
parentCloseAndFocusAnchor && parentCloseAndFocusAnchor();
|
|
280
284
|
}, [closeMenu, parentCloseAndFocusAnchor]);
|
|
281
285
|
const menuItems = unstable_isLoading ? [/*#__PURE__*/React__default.createElement(MenuSpinner, {
|
|
@@ -297,7 +301,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
297
301
|
announceToScreenReader(noMenuItemsToDisplayText);
|
|
298
302
|
}
|
|
299
303
|
}, [noResults, popperIsOpen, announceToScreenReader, noMenuItemsToDisplayText]);
|
|
300
|
-
const searchBoxRef = useRef();
|
|
304
|
+
const searchBoxRef = useRef(null);
|
|
301
305
|
const arrowNavRef = useRef(null);
|
|
302
306
|
const handleHighlightedIndexChange = useCallback(i => setHighlightedIndex(i), [setHighlightedIndex]);
|
|
303
307
|
const isNavItem = useCallback(child => (child === null || child === void 0 ? void 0 : child.type) === MenuItem || (child === null || child === void 0 ? void 0 : child.type) === MenuSearchBox || isType(child, menuType), [menuType]);
|
|
@@ -314,12 +318,10 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
314
318
|
placement: placement,
|
|
315
319
|
portalTarget: portalTarget,
|
|
316
320
|
anchor: actualAnchor,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
}],
|
|
321
|
+
middleware: [offset({
|
|
322
|
+
crossAxis: isSubmenu ? SUBMENU_POPPER_OFFSET[0] : FLYOUT_POPPER_OFFSET[0],
|
|
323
|
+
mainAxis: isSubmenu ? SUBMENU_POPPER_OFFSET[1] : FLYOUT_POPPER_OFFSET[1]
|
|
324
|
+
})],
|
|
323
325
|
popper: /*#__PURE__*/React__default.createElement(ArrowNav, {
|
|
324
326
|
id: arrowNavId,
|
|
325
327
|
role: "menu",
|
|
@@ -359,7 +361,9 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
359
361
|
if ((_arrowNavRef$current = arrowNavRef.current) !== null && _arrowNavRef$current !== void 0 && _arrowNavRef$current.contains(e.target) && e.target !== searchBoxRef.current) {
|
|
360
362
|
var _anchorRef$current2;
|
|
361
363
|
setHighlightedIndex(-1);
|
|
362
|
-
(_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 || _anchorRef$current2.focus(
|
|
364
|
+
(_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 || _anchorRef$current2.focus({
|
|
365
|
+
preventScroll: true
|
|
366
|
+
});
|
|
363
367
|
}
|
|
364
368
|
}
|
|
365
369
|
},
|
|
@@ -404,13 +408,13 @@ function getDescendent(children, value) {
|
|
|
404
408
|
if (value === undefined) return null;
|
|
405
409
|
const childArray = React__default.Children.toArray(children);
|
|
406
410
|
for (let i = 0; i < childArray.length; i += 1) {
|
|
407
|
-
var _child$props3, _child$props4;
|
|
408
411
|
const child = childArray[i];
|
|
409
|
-
|
|
412
|
+
const childProps = child === null || child === void 0 ? void 0 : child.props;
|
|
413
|
+
if ((child === null || child === void 0 ? void 0 : child.type) === MenuItem && (childProps === null || childProps === void 0 ? void 0 : childProps.value) === value) {
|
|
410
414
|
return child;
|
|
411
415
|
}
|
|
412
|
-
if ((child === null || child === void 0 ? void 0 : child.type) !== MenuItem &&
|
|
413
|
-
const descendent = getDescendent(
|
|
416
|
+
if ((child === null || child === void 0 ? void 0 : child.type) !== MenuItem && childProps !== null && childProps !== void 0 && childProps.children) {
|
|
417
|
+
const descendent = getDescendent(childProps.children, value);
|
|
414
418
|
if (descendent) {
|
|
415
419
|
return descendent;
|
|
416
420
|
}
|
|
@@ -419,8 +423,10 @@ function getDescendent(children, value) {
|
|
|
419
423
|
return null;
|
|
420
424
|
}
|
|
421
425
|
function getLabel(menuOptionNode) {
|
|
422
|
-
|
|
423
|
-
|
|
426
|
+
if (/*#__PURE__*/isValidElement(menuOptionNode)) {
|
|
427
|
+
const nodeProps = menuOptionNode === null || menuOptionNode === void 0 ? void 0 : menuOptionNode.props;
|
|
428
|
+
return getLabel(nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps.children);
|
|
429
|
+
}
|
|
424
430
|
return menuOptionNode;
|
|
425
431
|
}
|
|
426
432
|
function union(arr1, arr2) {
|
|
@@ -15,6 +15,7 @@ const Menu = /*#__PURE__*/React__default.forwardRef(function Menu(_ref, ref) {
|
|
|
15
15
|
// Throw away since it's only part of SelectMenu
|
|
16
16
|
...rest
|
|
17
17
|
} = _ref;
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
19
|
return /*#__PURE__*/React__default.createElement(BaseMenu, _extends({
|
|
19
20
|
ref: ref,
|
|
20
21
|
menuType: Menu
|
|
@@ -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 menuStyles = {"menuBtn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._i0hqO._i0hqO{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._i0hqO._i0hqO,._i0hqO._i0hqO ._D7hH3{display:inline-flex;align-items:center}._i0hqO._i0hqO ._D7hH3{overflow:hidden;text-overflow:ellipsis}._i0hqO._i0hqO._EQ5NR{min-height:26px;height:26px}._i0hqO._i0hqO._-3D2r{color:#32363a}._i0hqO._i0hqO:hover:not([aria-disabled=true]){background-color:#f5f5f5}._i0hqO._i0hqO:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._i0hqO._i0hqO[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._i0hqO._i0hqO[aria-disabled=true]>svg{fill:#515559;opacity:.4}._i0hqO._i0hqO[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._i0hqO._i0hqO._apIFI{padding-left:0}._i0hqO._i0hqO._gIZSH{margin-top:4px}._i0hqO._i0hqO ._aKt3-{fill:#515559}._i0hqO._i0hqO ._aKt3-._EQ5NR{top:0}._i0hqO._i0hqO ._aKt3-._MpKEM{transform:rotate(-180deg)}._-cCaM{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._-cCaM::-webkit-scrollbar,._-cCaM::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._-cCaM::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._-cCaM::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._-cCaM:hover::-webkit-scrollbar,._-cCaM:hover::-webkit-scrollbar-thumb,._-cCaM[focus-within]::-webkit-scrollbar,._-cCaM[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._-cCaM:focus-within::-webkit-scrollbar,._-cCaM:focus-within::-webkit-scrollbar-thumb,._-cCaM:hover::-webkit-scrollbar,._-cCaM:hover::-webkit-scrollbar-thumb{visibility:visible}._2IKbW{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._2IKbW[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._2IKbW._-d0FE{background-color:#efefef}._2IKbW._jCnpS{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2IKbW._-3D2r{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._2IKbW._-3D2r._-d0FE{background-color:#e4effa}._2IKbW._SWWDq{cursor:default}._2IKbW:active:not(._K-7Yl):not(._-3D2r):not([aria-disabled=true]):not(._SWWDq){background-color:#e8e9e9}._K-7Yl{padding-right:32px}._K-7Yl ._aKt3-{position:absolute;top:8px;right:3px;fill:#515559}._WOelZ{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._CPYLv{position:absolute;top:13px;left:13px}._mjOjA._mjOjA{padding-left:32px}._I54H3{margin:2px 12px 2px 0;flex-shrink:0}._I54H3._BhNdZ>svg{border-color:#0b6ed0}._c7ZLY{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var menuStyles = {"menuBtn":"_i0hqO","menuBtnLabel":"_D7hH3","small":"_EQ5NR","selected":"_-3D2r","unlabelledButton":"_apIFI","formLabelled":"_gIZSH","rightIcon":"_aKt3-","open":"_MpKEM","contentPane":"_-cCaM","menuItem":"_2IKbW","active":"_-d0FE","focus":"_jCnpS","noMenuItems":"_SWWDq","subMenu":"_K-7Yl","searchBox":"_WOelZ","searchBoxIcon":"_CPYLv","searchBoxInput":"_mjOjA","checkbox":"_I54H3","highlighted":"_BhNdZ","menuSpinner":"_c7ZLY"};
|
|
5
|
+
var stylesheet="._i0hqO._i0hqO{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._i0hqO._i0hqO,._i0hqO._i0hqO ._D7hH3{display:inline-flex;align-items:center}._i0hqO._i0hqO ._D7hH3{overflow:hidden;text-overflow:ellipsis}._i0hqO._i0hqO._EQ5NR{min-height:26px;height:26px}._i0hqO._i0hqO._-3D2r{color:#32363a}._i0hqO._i0hqO:hover:not([aria-disabled=true]){background-color:#f5f5f5}._i0hqO._i0hqO:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._i0hqO._i0hqO[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._i0hqO._i0hqO[aria-disabled=true]>svg{fill:#515559;opacity:.4}._i0hqO._i0hqO[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._i0hqO._i0hqO._apIFI{padding-left:0}._i0hqO._i0hqO._gIZSH{margin-top:4px}._i0hqO._i0hqO ._aKt3-{fill:#515559}._i0hqO._i0hqO ._aKt3-._EQ5NR{top:0}._i0hqO._i0hqO ._aKt3-._MpKEM{transform:rotate(-180deg)}._-cCaM{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._-cCaM::-webkit-scrollbar,._-cCaM::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._-cCaM::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._-cCaM::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._-cCaM:hover::-webkit-scrollbar,._-cCaM:hover::-webkit-scrollbar-thumb,._-cCaM[focus-within]::-webkit-scrollbar,._-cCaM[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._-cCaM:focus-within::-webkit-scrollbar,._-cCaM:focus-within::-webkit-scrollbar-thumb,._-cCaM:hover::-webkit-scrollbar,._-cCaM:hover::-webkit-scrollbar-thumb{visibility:visible}._2IKbW{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._2IKbW[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._2IKbW._-d0FE{background-color:#efefef}._2IKbW._jCnpS{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2IKbW._-3D2r{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._2IKbW._-3D2r._-d0FE{background-color:#e4effa}._2IKbW._SWWDq{cursor:default}._2IKbW:active:not(._K-7Yl):not(._-3D2r):not([aria-disabled=true]):not(._SWWDq){background-color:#e8e9e9}._K-7Yl{padding-right:32px}._K-7Yl ._aKt3-{position:absolute;top:8px;right:3px;fill:#515559}._WOelZ{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._CPYLv{position:absolute;top:13px;left:13px}._mjOjA._mjOjA{padding-left:32px}._I54H3{margin:2px 12px 2px 0;flex-shrink:0}._I54H3._BhNdZ>svg{border-color:#0b6ed0}._c7ZLY{display:flex;justify-self:center;margin:8px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { menuStyles as default, stylesheet };
|
|
@@ -11,7 +11,9 @@ const SelectMenu = /*#__PURE__*/React__default.forwardRef(function SelectMenu(_r
|
|
|
11
11
|
...rest
|
|
12
12
|
} = _ref;
|
|
13
13
|
return /*#__PURE__*/React__default.createElement(BaseMenu, _extends({
|
|
14
|
-
ref: ref
|
|
14
|
+
ref: ref
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
,
|
|
15
17
|
menuType: SelectMenu,
|
|
16
18
|
selectable: true,
|
|
17
19
|
onSelectedValueChange: function (value) {
|
|
@@ -127,10 +127,14 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
127
127
|
preventScroll: true
|
|
128
128
|
});
|
|
129
129
|
} else if (highlightedIndex === 0 && searchable) {
|
|
130
|
-
searchBoxRef === null || searchBoxRef === void 0 || searchBoxRef.current.focus(
|
|
130
|
+
searchBoxRef === null || searchBoxRef === void 0 || searchBoxRef.current.focus({
|
|
131
|
+
preventScroll: true
|
|
132
|
+
});
|
|
131
133
|
} else {
|
|
132
134
|
var _anchorRef$current;
|
|
133
|
-
anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 || _anchorRef$current.focus(
|
|
135
|
+
anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 || _anchorRef$current.focus({
|
|
136
|
+
preventScroll: true
|
|
137
|
+
});
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
}, [highlightedIndex, childRefs, virtualRange, searchable, allChildren === null || allChildren === void 0 ? void 0 : allChildren.length,
|
|
@@ -201,8 +205,10 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
201
205
|
}
|
|
202
206
|
}, isVirtualized ? /*#__PURE__*/React__default.createElement(Virtuoso, _extends({
|
|
203
207
|
customScrollParent: (_containerRef$current3 = containerRef.current) !== null && _containerRef$current3 !== void 0 ? _containerRef$current3 : undefined,
|
|
204
|
-
data: React__default.Children.toArray(allChildren)
|
|
205
|
-
|
|
208
|
+
data: React__default.Children.toArray(allChildren)
|
|
209
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, react/no-unstable-nested-components
|
|
210
|
+
,
|
|
211
|
+
itemContent: (_, child) => ! /*#__PURE__*/React__default.isValidElement(child) ? null : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, child),
|
|
206
212
|
rangeChanged: setVirtualRange,
|
|
207
213
|
ref: virtuosoRef
|
|
208
214
|
}, VIRTUOSO_PROPS)) : allChildren))
|
|
@@ -25,7 +25,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
25
25
|
'aria-checked': ariaChecked,
|
|
26
26
|
...rest
|
|
27
27
|
} = _ref;
|
|
28
|
-
const itemRef = useRef();
|
|
28
|
+
const itemRef = useRef(null);
|
|
29
29
|
const defaultRole = isSelectable ? isMultiSelect ? 'menuitemcheckbox' : 'menuitemradio' : 'menuitem';
|
|
30
30
|
const handleSelect = useCallback(e => {
|
|
31
31
|
if (typeof onSelect === 'function' && !disabled) {
|