@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 styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._T-Q0Q :after{background-color:#515559!important}._DM7Kd>input:focus{box-shadow:none!important;border:1px solid #898989!important}._dNg-B{max-width:500px;padding:4px 0;background-color:#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}._dNg-B ._Ef9Pr ._WT0Az{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._dNg-B ._Ef9Pr:first-child ._JBz6y{display:none}._dNg-B ._MdQ8i{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._dNg-B ._MdQ8i:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dNg-B ._MdQ8i:hover._-nYas{background-color:#e4effa}._dNg-B ._MdQ8i._-nYas{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dNg-B ._MdQ8i:active:not(._-nYas){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_T-Q0Q","ignoreFocusStyle":"_DM7Kd","flyout":"_dNg-B","group":"_Ef9Pr","header":"_WT0Az","divider":"_JBz6y","option":"_MdQ8i","selected":"_-nYas"};
|
|
5
|
+
var stylesheet="._T-Q0Q :after{background-color:#515559!important}._DM7Kd>input:focus{box-shadow:none!important;border:1px solid #898989!important}._dNg-B{max-width:500px;padding:4px 0;background-color:#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}._dNg-B ._Ef9Pr ._WT0Az{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._dNg-B ._Ef9Pr:first-child ._JBz6y{display:none}._dNg-B ._MdQ8i{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._dNg-B ._MdQ8i:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dNg-B ._MdQ8i:hover._-nYas{background-color:#e4effa}._dNg-B ._MdQ8i._-nYas{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dNg-B ._MdQ8i:active:not(._-nYas){background-color:#e8e9e9}";
|
|
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 };
|
|
@@ -5,6 +5,7 @@ import '../../utils/index.js';
|
|
|
5
5
|
import styles from './Combobox2.js';
|
|
6
6
|
import useListboxFlyoutDimensions from './hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js';
|
|
7
7
|
import Popper from '../../utils/Popper/Popper.js';
|
|
8
|
+
import { offset } from '@floating-ui/react-dom';
|
|
8
9
|
import { FOCUS_RING_WIDTH, FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
|
|
9
10
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
10
11
|
|
|
@@ -28,12 +29,11 @@ const ComboboxFlyout = _ref => {
|
|
|
28
29
|
return /*#__PURE__*/React__default.createElement(Popper, {
|
|
29
30
|
open: isOpen,
|
|
30
31
|
placement: "bottom-start",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}],
|
|
32
|
+
middleware: [offset({
|
|
33
|
+
crossAxis: -FOCUS_RING_WIDTH,
|
|
34
|
+
mainAxis: FLYOUT_POPPER_OFFSET[1]
|
|
35
|
+
}) // The -FOCUS_RING_WIDTH skidding accounts for the box-shadow focus ring on the left side of the anchor
|
|
36
|
+
],
|
|
37
37
|
anchorNode: inputRef.current,
|
|
38
38
|
popper: /*#__PURE__*/React__default.createElement("div", {
|
|
39
39
|
role: "listbox",
|
|
@@ -22,7 +22,7 @@ isDisabled) {
|
|
|
22
22
|
const [activeDescendant, setActiveDescendant] = useState(); // In a future version of `Combobox`, if we continue not to allow custom children inside of `ComboboxOption`s, we can remove `aria-activedescendant` and instead just let the screen reader read the new input value (e.g. see Google search box)
|
|
23
23
|
|
|
24
24
|
const activeDescendantRef = useLatest(activeDescendant); // Used to prevent returned `useCallback` functions from being re-created
|
|
25
|
-
const latestFocusFunctionNameRef = useRef(); // Used to call the correct focus function after the flyout opens (if the flyout is currently closed)
|
|
25
|
+
const latestFocusFunctionNameRef = useRef(undefined); // Used to call the correct focus function after the flyout opens (if the flyout is currently closed)
|
|
26
26
|
const filteredOptionsRef = useRef([]); // The list of `ComboboxOption`s that match the filter based on the input value
|
|
27
27
|
|
|
28
28
|
const [didCommittedInputValueChange, setDidCommittedInputValueChange] = useState(false);
|
|
@@ -18,7 +18,7 @@ import useTranslation from '../../../../utils/Translation/useTranslation.js';
|
|
|
18
18
|
*/
|
|
19
19
|
function useComboboxLoadingState(isLoading, isComponentFocused, activeDescendantElement, rawInputValue, setCommittedInputValue) {
|
|
20
20
|
const previousIsLoadingRef = useLatest(usePrevious(isLoading)); // The value of `isLoading` during the previous call to this hook
|
|
21
|
-
const newOptionsLoadingTimeoutIdRef = useRef();
|
|
21
|
+
const newOptionsLoadingTimeoutIdRef = useRef(undefined);
|
|
22
22
|
const didNewOptionsLoadingAnnouncementOccurRef = useRef(false);
|
|
23
23
|
const announceToScreenReader = useScreenReaderAnnouncement('polite');
|
|
24
24
|
const {
|
|
@@ -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 = {"drawer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._fmPoL{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._pTtl2{visibility:hidden}._WoCOX{position:fixed}._FcWbL{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._6gHzw{padding-top:8px}._5e6I9{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_fmPoL","hidden":"_pTtl2","anchoredToBody":"_WoCOX","header":"_FcWbL","title":"_6gHzw","closeButton":"_5e6I9"};
|
|
5
|
+
var stylesheet="._fmPoL{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._pTtl2{visibility:hidden}._WoCOX{position:fixed}._FcWbL{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._6gHzw{padding-top:8px}._5e6I9{margin-left:12px}";
|
|
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 = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._TMeUZ{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._TMeUZ:hover:not(._bHFzE){background-color:rgba(50,54,58,.08)}._TMeUZ:hover:not(._bHFzE)._fWC5n{border-color:#085caf;background-color:rgba(11,110,208,.04)}._TMeUZ:hover:not(._bHFzE)._fWC5n ._NsQna{color:#32363a}._TMeUZ:hover:not(._bHFzE)._fWC5n ._C8rTp{fill:#32363a}._TMeUZ:hover:not(._bHFzE)._fWC5n ._M6ooa{fill:#085caf}._TMeUZ:hover:not(._bHFzE)._fWC5n ._CVi4a{background-color:rgba(11,110,208,.11)}._TMeUZ:hover:not(._bHFzE)._fWC5n ._CVi4a ._rC-yx{color:#085caf}._TMeUZ:active:not(._bHFzE){background-color:#e8e9e9}._TMeUZ:active:not(._bHFzE)._fWC5n{background-color:rgba(11,110,208,.11);border-color:#0854a1}._TMeUZ:active:not(._bHFzE)._fWC5n ._M6ooa{fill:#0854a1}._TMeUZ:active:not(._bHFzE)._fWC5n ._CVi4a{background-color:rgba(11,110,208,.11)}._TMeUZ:active:not(._bHFzE)._fWC5n ._CVi4a ._rC-yx{color:#0854a1}._TMeUZ._bHFzE{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._TMeUZ._fWC5n{border-color:#0b6ed0}._C8rTp{fill:#515559;margin-right:4px}._NsQna{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._NsQna+._CVi4a{margin-left:6px}._NsQna._bHFzE{color:#74777a}._CVi4a{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._rC-yx{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._M6ooa{fill:#515559}._M6ooa._bHFzE,._M6ooa._bHFzE._fWC5n{fill:rgba(116,119,122,.4)}._M6ooa._fWC5n{fill:#0b6ed0}._M6ooa._MMTU8{transform:rotate(-180deg)}._TMeUZ.focus-visible,._TMeUZ:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_TMeUZ","disabled":"_bHFzE","selected":"_fWC5n","label":"_NsQna","lockIcon":"_C8rTp","chevronIcon":"_M6ooa","selectedFiltersContainer":"_CVi4a","selectedFilters":"_rC-yx","open":"_MMTU8"};
|
|
5
|
+
var stylesheet="._TMeUZ{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._TMeUZ:hover:not(._bHFzE){background-color:rgba(50,54,58,.08)}._TMeUZ:hover:not(._bHFzE)._fWC5n{border-color:#085caf;background-color:rgba(11,110,208,.04)}._TMeUZ:hover:not(._bHFzE)._fWC5n ._NsQna{color:#32363a}._TMeUZ:hover:not(._bHFzE)._fWC5n ._C8rTp{fill:#32363a}._TMeUZ:hover:not(._bHFzE)._fWC5n ._M6ooa{fill:#085caf}._TMeUZ:hover:not(._bHFzE)._fWC5n ._CVi4a{background-color:rgba(11,110,208,.11)}._TMeUZ:hover:not(._bHFzE)._fWC5n ._CVi4a ._rC-yx{color:#085caf}._TMeUZ:active:not(._bHFzE){background-color:#e8e9e9}._TMeUZ:active:not(._bHFzE)._fWC5n{background-color:rgba(11,110,208,.11);border-color:#0854a1}._TMeUZ:active:not(._bHFzE)._fWC5n ._M6ooa{fill:#0854a1}._TMeUZ:active:not(._bHFzE)._fWC5n ._CVi4a{background-color:rgba(11,110,208,.11)}._TMeUZ:active:not(._bHFzE)._fWC5n ._CVi4a ._rC-yx{color:#0854a1}._TMeUZ._bHFzE{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._TMeUZ._fWC5n{border-color:#0b6ed0}._C8rTp{fill:#515559;margin-right:4px}._NsQna{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._NsQna+._CVi4a{margin-left:6px}._NsQna._bHFzE{color:#74777a}._CVi4a{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._rC-yx{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._M6ooa{fill:#515559}._M6ooa._bHFzE,._M6ooa._bHFzE._fWC5n{fill:rgba(116,119,122,.4)}._M6ooa._fWC5n{fill:#0b6ed0}._M6ooa._MMTU8{transform:rotate(-180deg)}._TMeUZ.focus-visible,._TMeUZ: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 = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._GrQBX{margin:6px 0}._GS0ab{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._S8pZc{display:inline-block}._S8pZc:has([aria-expanded=true]) ._GS0ab,._S8pZc[focus-within] ._GS0ab{color:#0b6ed0}._S8pZc:focus-within ._GS0ab,._S8pZc:has([aria-expanded=true]) ._GS0ab{color:#0b6ed0}._S8pZc:has(input:disabled) ._GS0ab{color:rgba(50,54,58,.4)}._S8pZc:not(:has(input:disabled)) ._GS0ab{cursor:pointer}._H1dCN{margin-top:4px}._H1dCN:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_GrQBX","label":"_GS0ab","formFieldWrapper":"_S8pZc","caption":"_H1dCN"};
|
|
5
|
+
var stylesheet="._GrQBX{margin:6px 0}._GS0ab{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._S8pZc{display:inline-block}._S8pZc:has([aria-expanded=true]) ._GS0ab,._S8pZc[focus-within] ._GS0ab{color:#0b6ed0}._S8pZc:focus-within ._GS0ab,._S8pZc:has([aria-expanded=true]) ._GS0ab{color:#0b6ed0}._S8pZc:has(input:disabled) ._GS0ab{color:rgba(50,54,58,.4)}._S8pZc:not(:has(input:disabled)) ._GS0ab{cursor:pointer}._H1dCN{margin-top:4px}._H1dCN:first-of-type{margin-top:6px}";
|
|
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 = {"indicator":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._OjMjK{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._OjMjK._Hayo0{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._OjMjK._kcB0Q{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._OjMjK._7MRt1{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._OjMjK._MOaE6{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._Kvr25{padding:1px 8px;max-height:24px}._Rh7-U{padding:4px 8px}";
|
|
4
|
+
var styles = {"indicator":"_OjMjK","warning":"_Hayo0","error":"_kcB0Q","success":"_7MRt1","informational":"_MOaE6","small":"_Kvr25","medium":"_Rh7-U"};
|
|
5
|
+
var stylesheet="._OjMjK{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._OjMjK._Hayo0{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._OjMjK._kcB0Q{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._OjMjK._7MRt1{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._OjMjK._MOaE6{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._Kvr25{padding:1px 8px;max-height:24px}._Rh7-U{padding:4px 8px}";
|
|
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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._kXryq{position:relative;display:inline-block;height:36px;width:100%}._mlQW6{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._mlQW6:hover{cursor:pointer;background-color:#f5f5f5}._mlQW6:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._mlQW6:disabled,._mlQW6[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._mlQW6:disabled::-moz-placeholder,._mlQW6[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._mlQW6:disabled::placeholder,._mlQW6[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._mlQW6:invalid,._mlQW6[aria-invalid=true]{border-color:#b00}._mlQW6:invalid:focus,._mlQW6[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._mlQW6[type=number]{-moz-appearance:textfield}._mlQW6[type=number]::-webkit-inner-spin-button,._mlQW6[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._mlQW6::-moz-placeholder{color:#515559;opacity:1}._mlQW6::placeholder{color:#515559;opacity:1}._YipFo{pointer-events:none;color:#515559;fill:#515559}._vHM38{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._WDwac{color:#515559;font-size:16px}._eGsIA{left:0;margin-left:6px}._6T5VO,._eGsIA{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._6T5VO{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_kXryq","input":"_mlQW6","addOn":"_YipFo","addOnVerticalCenter":"_vHM38","addOnTextNode":"_WDwac","leftAddOn":"_eGsIA","rightAddOn":"_6T5VO"};
|
|
5
|
+
var stylesheet="._kXryq{position:relative;display:inline-block;height:36px;width:100%}._mlQW6{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._mlQW6:hover{cursor:pointer;background-color:#f5f5f5}._mlQW6:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._mlQW6:disabled,._mlQW6[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._mlQW6:disabled::-moz-placeholder,._mlQW6[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._mlQW6:disabled::placeholder,._mlQW6[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._mlQW6:invalid,._mlQW6[aria-invalid=true]{border-color:#b00}._mlQW6:invalid:focus,._mlQW6[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._mlQW6[type=number]{-moz-appearance:textfield}._mlQW6[type=number]::-webkit-inner-spin-button,._mlQW6[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._mlQW6::-moz-placeholder{color:#515559;opacity:1}._mlQW6::placeholder{color:#515559;opacity:1}._YipFo{pointer-events:none;color:#515559;fill:#515559}._vHM38{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._WDwac{color:#515559;font-size:16px}._eGsIA{left:0;margin-left:6px}._6T5VO,._eGsIA{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._6T5VO{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses 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 = "._KAx7q{position:relative;display:inline-block}._KAx7q._gW58-{min-height:20px;min-width:20px}._KAx7q._yPpBf{min-height:25px;min-width:25px}._KAx7q._b7qq5{min-height:40px;min-width:40px}._KAx7q._kXt08{min-height:64px;min-width:64px}._KAx7q ._RMf4M{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._KAx7q ._RMf4M._Pe17V{display:none}._KAx7q ._RMf4M div{position:absolute;transform:rotate(20deg)}._KAx7q ._RMf4M div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_RMf4M .9s linear infinite}._KAx7q ._RMf4M 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}._KAx7q ._RMf4M div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._KAx7q ._RMf4M div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._KAx7q ._RMf4M div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._KAx7q ._RMf4M div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._KAx7q ._RMf4M div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._KAx7q ._RMf4M div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._KAx7q ._RMf4M div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._KAx7q ._RMf4M div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._KAx7q ._RMf4M div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._KAx7q ._kXt08 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._KAx7q ._gW58- div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._KAx7q ._yPpBf div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._KAx7q ._-1lOy div div:nth-child(-n+9):after{background:#fff}._KAx7q ._zCmNS{width:100%;height:100%}._KAx7q ._zCmNS._D78o1{pointer-events:none}._KAx7q ._zCmNS._Pe17V{opacity:0}._KAx7q ._zCmNS._DATY6{opacity:.8}@keyframes _RMf4M{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_KAx7q","xs":"_gW58-","small":"_yPpBf","medium":"_b7qq5","large":"_kXt08","spinnerComponent":"_RMf4M","hide":"_Pe17V","inverted":"_-1lOy","spinnerContent":"_zCmNS","disablePointerEvents":"_D78o1","fade":"_DATY6"};
|
|
5
|
+
var stylesheet="._KAx7q{position:relative;display:inline-block}._KAx7q._gW58-{min-height:20px;min-width:20px}._KAx7q._yPpBf{min-height:25px;min-width:25px}._KAx7q._b7qq5{min-height:40px;min-width:40px}._KAx7q._kXt08{min-height:64px;min-width:64px}._KAx7q ._RMf4M{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._KAx7q ._RMf4M._Pe17V{display:none}._KAx7q ._RMf4M div{position:absolute;transform:rotate(20deg)}._KAx7q ._RMf4M div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_RMf4M .9s linear infinite}._KAx7q ._RMf4M 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}._KAx7q ._RMf4M div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._KAx7q ._RMf4M div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._KAx7q ._RMf4M div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._KAx7q ._RMf4M div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._KAx7q ._RMf4M div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._KAx7q ._RMf4M div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._KAx7q ._RMf4M div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._KAx7q ._RMf4M div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._KAx7q ._RMf4M div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._KAx7q ._kXt08 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._KAx7q ._gW58- div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._KAx7q ._yPpBf div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._KAx7q ._-1lOy div div:nth-child(-n+9):after{background:#fff}._KAx7q ._zCmNS{width:100%;height:100%}._KAx7q ._zCmNS._D78o1{pointer-events:none}._KAx7q ._zCmNS._Pe17V{opacity:0}._KAx7q ._zCmNS._DATY6{opacity:.8}@keyframes _RMf4M{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 };
|
|
@@ -75,7 +75,7 @@ function usePaneSearch(_ref) {
|
|
|
75
75
|
}, {
|
|
76
76
|
isDisabled: !isSearchable
|
|
77
77
|
});
|
|
78
|
-
const lastestKeyPressedInSearchInput = useRef();
|
|
78
|
+
const lastestKeyPressedInSearchInput = useRef(undefined);
|
|
79
79
|
const [isComposing, setIsComposing] = useState(false);
|
|
80
80
|
useEventListener(searchInput, 'compositionstart', () => {
|
|
81
81
|
setIsComposing(true);
|
package/dist/next/Menu/Menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useMemo } from 'react';
|
|
2
|
-
import { Root } from '
|
|
2
|
+
import { Root as Root2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
3
3
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
4
4
|
import { MenuContextProvider } from './MenuContext.js';
|
|
5
5
|
import '../../hooks/index.js';
|
|
@@ -15,7 +15,8 @@ const Menu = _ref => {
|
|
|
15
15
|
onIsOpenChange,
|
|
16
16
|
isDisabled,
|
|
17
17
|
children,
|
|
18
|
-
isVirtualizationDisabled
|
|
18
|
+
isVirtualizationDisabled,
|
|
19
|
+
elementRefToFocusOnClose
|
|
19
20
|
} = _ref;
|
|
20
21
|
if (typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test' && window) {
|
|
21
22
|
var _window$ResizeObserve, _window$PointerEvent;
|
|
@@ -73,6 +74,7 @@ const Menu = _ref => {
|
|
|
73
74
|
setMaskHeight,
|
|
74
75
|
open,
|
|
75
76
|
triggerRef,
|
|
77
|
+
elementRefToFocusOnClose,
|
|
76
78
|
searchBarConfigs,
|
|
77
79
|
setSearchBarConfigs,
|
|
78
80
|
maskWidth,
|
|
@@ -81,7 +83,7 @@ const Menu = _ref => {
|
|
|
81
83
|
isVirtualizationDisabled,
|
|
82
84
|
submenuDepths
|
|
83
85
|
}
|
|
84
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
86
|
+
}, /*#__PURE__*/React__default.createElement(Root2, {
|
|
85
87
|
open: open,
|
|
86
88
|
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen),
|
|
87
89
|
modal: false
|
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -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 = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._k98t2{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._k98t2>._K2kbw{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._k98t2>._K2kbw:hover:not([aria-disabled=true]){background-color:#f5f5f5}._k98t2>._K2kbw.focus-visible,._k98t2>._K2kbw:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._k98t2>._K2kbw+._6SAfs{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._k98t2>._K2kbw[data-state=open]+._6SAfs{transform:rotate(-180deg) translateY(50%)}._k98t2>._K2kbw[aria-disabled=true]{color:#74777a;cursor:not-allowed}._k98t2>._K2kbw[aria-disabled=true]+._6SAfs{fill:#515559;opacity:.4}._5rTjh>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._5rTjh>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._3ypdb{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._3ypdb ._MpISw{height:100%;overflow-y:scroll}._3ypdb._CtWQS{margin-left:30px;opacity:0}._3ypdb._-WiL0{margin-left:-30px}._4-Fsc{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._4-Fsc._oBghF{cursor:unset}._4-Fsc ._ykC3Y{fill:#32363a;margin-right:4px}._4-Fsc:focus,._4-Fsc:hover:not(._4-Fsc._oBghF){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._4-Fsc[aria-disabled=true]{cursor:not-allowed;opacity:.65}._4-Fsc._uNeGK{padding-right:32px}._4-Fsc._uNeGK ._6SAfs{position:absolute;height:100%;right:3px;fill:#515559}._4-Fsc._ZUOhH{pointer-events:none}._ecH8j{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._ecH8j._CpS9p{padding-top:52px}._w8NET{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._nt2Wq{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._nt2Wq._-WiL0{opacity:0}._nt2Wq._-WiL0>._sgA3r{margin-left:-30px}._nt2Wq._CtWQS{opacity:0}._nt2Wq._CtWQS>._sgA3r{margin-left:30px}._nt2Wq>._sgA3r{transition:margin-left .35s;width:100%}._nt2Wq._ZUOhH{pointer-events:none}body.keyboard-user ._4-Fsc:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_k98t2","button":"_K2kbw","rightIcon":"_6SAfs","maskContainer":"_5rTjh","flyout":"_3ypdb","scrollContainer":"_MpISw","animatedRight":"_CtWQS","animatedLeft":"_-WiL0","menuItem":"_4-Fsc","noItems":"_oBghF","backIcon":"_ykC3Y","subMenu":"_uNeGK","unresponsive":"_ZUOhH","stickyBox":"_ecH8j","isSearchable":"_CpS9p","searchBoxesContainer":"_w8NET","searchBox":"_nt2Wq","searchInput":"_sgA3r"};
|
|
5
|
+
var stylesheet="._k98t2{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._k98t2>._K2kbw{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._k98t2>._K2kbw:hover:not([aria-disabled=true]){background-color:#f5f5f5}._k98t2>._K2kbw.focus-visible,._k98t2>._K2kbw:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._k98t2>._K2kbw+._6SAfs{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._k98t2>._K2kbw[data-state=open]+._6SAfs{transform:rotate(-180deg) translateY(50%)}._k98t2>._K2kbw[aria-disabled=true]{color:#74777a;cursor:not-allowed}._k98t2>._K2kbw[aria-disabled=true]+._6SAfs{fill:#515559;opacity:.4}._5rTjh>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._5rTjh>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._3ypdb{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._3ypdb ._MpISw{height:100%;overflow-y:scroll}._3ypdb._CtWQS{margin-left:30px;opacity:0}._3ypdb._-WiL0{margin-left:-30px}._4-Fsc{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._4-Fsc._oBghF{cursor:unset}._4-Fsc ._ykC3Y{fill:#32363a;margin-right:4px}._4-Fsc:focus,._4-Fsc:hover:not(._4-Fsc._oBghF){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._4-Fsc[aria-disabled=true]{cursor:not-allowed;opacity:.65}._4-Fsc._uNeGK{padding-right:32px}._4-Fsc._uNeGK ._6SAfs{position:absolute;height:100%;right:3px;fill:#515559}._4-Fsc._ZUOhH{pointer-events:none}._ecH8j{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._ecH8j._CpS9p{padding-top:52px}._w8NET{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._nt2Wq{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._nt2Wq._-WiL0{opacity:0}._nt2Wq._-WiL0>._sgA3r{margin-left:-30px}._nt2Wq._CtWQS{opacity:0}._nt2Wq._CtWQS>._sgA3r{margin-left:30px}._nt2Wq>._sgA3r{transition:margin-left .35s;width:100%}._nt2Wq._ZUOhH{pointer-events:none}body.keyboard-user ._4-Fsc:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { Trigger } from '
|
|
3
|
+
import { Trigger } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import '../../icons/index.es.js';
|
|
6
6
|
import styles from './Menu2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { useRef, useMemo } from 'react';
|
|
3
|
-
import { Item } from '
|
|
3
|
+
import { Item as Item2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import styles from './Menu2.js';
|
|
6
6
|
import { usePaneContext, useItemContext } from './MenuContext.js';
|
|
@@ -57,7 +57,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
return /*#__PURE__*/React__default.createElement(
|
|
60
|
+
return /*#__PURE__*/React__default.createElement(Item2, _extends({}, rest, {
|
|
61
61
|
tabIndex: 0,
|
|
62
62
|
asChild: asChild,
|
|
63
63
|
"aria-disabled": isDisabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { useState, useCallback, useRef, useMemo } from 'react';
|
|
3
|
-
import { Portal, Content } from '
|
|
3
|
+
import { Portal as Portal2, Content as Content2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import ReactFocusLock from 'react-focus-lock';
|
|
6
6
|
import styles from './Menu2.js';
|
|
@@ -107,6 +107,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
107
107
|
maskHeight,
|
|
108
108
|
open,
|
|
109
109
|
triggerRef,
|
|
110
|
+
elementRefToFocusOnClose,
|
|
110
111
|
searchBarConfigs,
|
|
111
112
|
maskWidth,
|
|
112
113
|
isVirtualizationDisabled
|
|
@@ -202,11 +203,11 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
202
203
|
maskIsReady,
|
|
203
204
|
setIsVirtualizationReady
|
|
204
205
|
}
|
|
205
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
206
|
+
}, /*#__PURE__*/React__default.createElement(Portal2, {
|
|
206
207
|
container: portalTarget || undefined
|
|
207
208
|
}, /*#__PURE__*/React__default.createElement(ReactFocusLock, {
|
|
208
209
|
autoFocus: false,
|
|
209
|
-
disabled: !maskIsReady,
|
|
210
|
+
disabled: !maskIsReady || !open,
|
|
210
211
|
className: styles.maskContainer,
|
|
211
212
|
lockProps: {
|
|
212
213
|
id: maskContainerId,
|
|
@@ -216,11 +217,17 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
216
217
|
opacity: maskIsReady ? 1 : 0
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
220
|
+
}, /*#__PURE__*/React__default.createElement(Content2, _extends({}, rest, {
|
|
221
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
220
222
|
style: style,
|
|
221
|
-
onCloseAutoFocus:
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
onCloseAutoFocus: event => {
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
if (elementRefToFocusOnClose !== null && elementRefToFocusOnClose !== void 0 && elementRefToFocusOnClose.current) {
|
|
226
|
+
elementRefToFocusOnClose.current.focus();
|
|
227
|
+
} else {
|
|
228
|
+
var _triggerRef$current2;
|
|
229
|
+
triggerRef === null || triggerRef === void 0 || (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 || _triggerRef$current2.focus();
|
|
230
|
+
}
|
|
224
231
|
},
|
|
225
232
|
sideOffset: 6,
|
|
226
233
|
loop: !isSearchable,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
|
3
|
-
import { Sub, SubTrigger, SubContent, Item } from '
|
|
3
|
+
import { Sub as Sub2, SubTrigger as SubTrigger2, SubContent as SubContent2, Item as Item2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import styles from './Menu2.js';
|
|
6
6
|
import '../../icons/index.es.js';
|
|
@@ -155,9 +155,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
155
155
|
}
|
|
156
156
|
setIsTransitioningFromRight(false);
|
|
157
157
|
};
|
|
158
|
-
return /*#__PURE__*/React__default.createElement(
|
|
158
|
+
return /*#__PURE__*/React__default.createElement(Sub2, {
|
|
159
159
|
open: isPaneInDOM
|
|
160
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
160
|
+
}, /*#__PURE__*/React__default.createElement(SubTrigger2, _extends({
|
|
161
161
|
className: classNames(styles.menuItem, styles.subMenu, {
|
|
162
162
|
[styles.unresponsive]: !paneContainingTriggerIsInteractive,
|
|
163
163
|
[styles$1.selectedItem]: triggerCheckedState === true && !isSelectedItems
|
|
@@ -209,7 +209,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
209
209
|
isVirtualized,
|
|
210
210
|
internalId
|
|
211
211
|
}
|
|
212
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
212
|
+
}, /*#__PURE__*/React__default.createElement(SubContent2, _extends({}, rest, {
|
|
213
213
|
loop: !isSearchable,
|
|
214
214
|
"data-testid": paneDataTestId,
|
|
215
215
|
ref: mergeRefs(ref, onRefChange),
|
|
@@ -218,7 +218,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
218
218
|
[styles.animatedRight]: animatedRight,
|
|
219
219
|
[styles.animatedLeft]: animatedLeft
|
|
220
220
|
}),
|
|
221
|
-
onTransitionEnd: handlePaneTransitionEnd
|
|
221
|
+
onTransitionEnd: handlePaneTransitionEnd
|
|
222
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
223
|
+
,
|
|
222
224
|
style: {
|
|
223
225
|
...style,
|
|
224
226
|
zIndex
|
|
@@ -231,7 +233,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
231
233
|
style: {
|
|
232
234
|
zIndex
|
|
233
235
|
}
|
|
234
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
236
|
+
}, /*#__PURE__*/React__default.createElement(Item2, {
|
|
235
237
|
className: classNames(styles.menuItem, {
|
|
236
238
|
[styles.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
|
|
237
239
|
}),
|