@qualtrics/ui-react 2.74.0 → 2.76.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-be619849.js → index-87207072.js} +422 -371
- package/dist/__shared/cjs/{index-97d7b02b.js → index-b569963c.js} +3 -3
- 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/AdvancedTable.js +2 -0
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +3 -1
- 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/ComboboxGroup.js +1 -1
- 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 +2 -2
- 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 +4 -3
- 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/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 +27 -20
- package/dist/next/index.js +5605 -325
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +2 -1
- package/dist/utils/Popper/Popper.js +162 -114
- 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 +17 -18
- package/dist/__shared/cjs/index-55082bc8.js +0 -13425
|
@@ -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 = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._SggpD{display:inline-block;width:36px;transition:width .25s ease-out}._4vcfA{width:100%}._f-olU>input{padding-right:0!important}._gd11R>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_SggpD","searchInput":"_4vcfA","searchInputCollapsed":"_f-olU","iconButton":"_gd11R"};
|
|
5
|
+
var stylesheet="._SggpD{display:inline-block;width:36px;transition:width .25s ease-out}._4vcfA{width:100%}._f-olU>input{padding-right:0!important}._gd11R>svg{fill:#515559}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -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 = "._KGQ5N :after{background-color:#515559!important}._6RS8R>input:focus{box-shadow:none!important;border:1px solid #898989!important}._y8Sco{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}._y8Sco ._234Ml ._rEzrF{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}._y8Sco ._234Ml:first-child ._A4MV7{display:none}._y8Sco ._Mxg-i{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._y8Sco ._Mxg-i:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:hover._hpcaR{background-color:#e4effa}._y8Sco ._Mxg-i._hpcaR{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:active:not(._hpcaR){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_KGQ5N","ignoreFocusStyle":"_6RS8R","flyout":"_y8Sco","group":"_234Ml","header":"_rEzrF","divider":"_A4MV7","option":"_Mxg-i","selected":"_hpcaR"};
|
|
5
|
+
var stylesheet="._KGQ5N :after{background-color:#515559!important}._6RS8R>input:focus{box-shadow:none!important;border:1px solid #898989!important}._y8Sco{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}._y8Sco ._234Ml ._rEzrF{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}._y8Sco ._234Ml:first-child ._A4MV7{display:none}._y8Sco ._Mxg-i{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._y8Sco ._Mxg-i:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:hover._hpcaR{background-color:#e4effa}._y8Sco ._Mxg-i._hpcaR{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:active:not(._hpcaR){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",
|
|
@@ -49,7 +49,7 @@ function ComboboxGroup(_ref) {
|
|
|
49
49
|
id: headerElementId,
|
|
50
50
|
className: styles.header
|
|
51
51
|
}, label), childrenWithContext) : childrenWithContext // Even if the group currently has no filtered children, the children (i.e. options) still need the context so that they can register themselves later on if the input value changes
|
|
52
|
-
|
|
52
|
+
;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export { ComboboxGroup as default };
|
|
@@ -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 = "._P0xCi{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}._WkU-2{visibility:hidden}._WiYVL{position:fixed}._pGuBg{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._j415w{padding-top:8px}._RzLhm{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_P0xCi","hidden":"_WkU-2","anchoredToBody":"_WiYVL","header":"_pGuBg","title":"_j415w","closeButton":"_RzLhm"};
|
|
5
|
+
var stylesheet="._P0xCi{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}._WkU-2{visibility:hidden}._WiYVL{position:fixed}._pGuBg{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._j415w{padding-top:8px}._RzLhm{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 = "._wGxjh{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}._wGxjh:hover:not(._h3bQW){background-color:rgba(50,54,58,.08)}._wGxjh:hover:not(._h3bQW)._t-6WC{border-color:#085caf;background-color:rgba(11,110,208,.04)}._wGxjh:hover:not(._h3bQW)._t-6WC ._SIPaL{color:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._iQPdk{fill:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._ano2L{fill:#085caf}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#085caf}._wGxjh:active:not(._h3bQW){background-color:#e8e9e9}._wGxjh:active:not(._h3bQW)._t-6WC{background-color:rgba(11,110,208,.11);border-color:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._ano2L{fill:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#0854a1}._wGxjh._h3bQW{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._wGxjh._t-6WC{border-color:#0b6ed0}._iQPdk{fill:#515559;margin-right:4px}._SIPaL{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._SIPaL+._wEiz1{margin-left:6px}._SIPaL._h3bQW{color:#74777a}._wEiz1{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}._02nEZ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._ano2L{fill:#515559}._ano2L._h3bQW,._ano2L._h3bQW._t-6WC{fill:rgba(116,119,122,.4)}._ano2L._t-6WC{fill:#0b6ed0}._ano2L._kASZW{transform:rotate(-180deg)}._wGxjh.focus-visible,._wGxjh:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_wGxjh","disabled":"_h3bQW","selected":"_t-6WC","label":"_SIPaL","lockIcon":"_iQPdk","chevronIcon":"_ano2L","selectedFiltersContainer":"_wEiz1","selectedFilters":"_02nEZ","open":"_kASZW"};
|
|
5
|
+
var stylesheet="._wGxjh{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}._wGxjh:hover:not(._h3bQW){background-color:rgba(50,54,58,.08)}._wGxjh:hover:not(._h3bQW)._t-6WC{border-color:#085caf;background-color:rgba(11,110,208,.04)}._wGxjh:hover:not(._h3bQW)._t-6WC ._SIPaL{color:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._iQPdk{fill:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._ano2L{fill:#085caf}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#085caf}._wGxjh:active:not(._h3bQW){background-color:#e8e9e9}._wGxjh:active:not(._h3bQW)._t-6WC{background-color:rgba(11,110,208,.11);border-color:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._ano2L{fill:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#0854a1}._wGxjh._h3bQW{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._wGxjh._t-6WC{border-color:#0b6ed0}._iQPdk{fill:#515559;margin-right:4px}._SIPaL{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._SIPaL+._wEiz1{margin-left:6px}._SIPaL._h3bQW{color:#74777a}._wEiz1{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}._02nEZ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._ano2L{fill:#515559}._ano2L._h3bQW,._ano2L._h3bQW._t-6WC{fill:rgba(116,119,122,.4)}._ano2L._t-6WC{fill:#0b6ed0}._ano2L._kASZW{transform:rotate(-180deg)}._wGxjh.focus-visible,._wGxjh: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 = "._dHkmg{margin:6px 0}._OHoLM{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._Am0JZ{display:inline-block}._Am0JZ:has([aria-expanded=true]) ._OHoLM,._Am0JZ[focus-within] ._OHoLM{color:#0b6ed0}._Am0JZ:focus-within ._OHoLM,._Am0JZ:has([aria-expanded=true]) ._OHoLM{color:#0b6ed0}._Am0JZ:has(input:disabled) ._OHoLM{color:rgba(50,54,58,.4)}._Am0JZ:not(:has(input:disabled)) ._OHoLM{cursor:pointer}._Y1Ei-{margin-top:4px}._Y1Ei-:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_dHkmg","label":"_OHoLM","formFieldWrapper":"_Am0JZ","caption":"_Y1Ei-"};
|
|
5
|
+
var stylesheet="._dHkmg{margin:6px 0}._OHoLM{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._Am0JZ{display:inline-block}._Am0JZ:has([aria-expanded=true]) ._OHoLM,._Am0JZ[focus-within] ._OHoLM{color:#0b6ed0}._Am0JZ:focus-within ._OHoLM,._Am0JZ:has([aria-expanded=true]) ._OHoLM{color:#0b6ed0}._Am0JZ:has(input:disabled) ._OHoLM{color:rgba(50,54,58,.4)}._Am0JZ:not(:has(input:disabled)) ._OHoLM{cursor:pointer}._Y1Ei-{margin-top:4px}._Y1Ei-: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 = "._2cQ1N{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}._2cQ1N._VL8JY{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._2cQ1N._09XND{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._2cQ1N._EfC5t{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._2cQ1N._RLZXr{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._1qU2-{padding:1px 8px;max-height:24px}._fRml0{padding:4px 8px}";
|
|
4
|
+
var styles = {"indicator":"_2cQ1N","warning":"_VL8JY","error":"_09XND","success":"_EfC5t","informational":"_RLZXr","small":"_1qU2-","medium":"_fRml0"};
|
|
5
|
+
var stylesheet="._2cQ1N{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}._2cQ1N._VL8JY{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._2cQ1N._09XND{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._2cQ1N._EfC5t{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._2cQ1N._RLZXr{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._1qU2-{padding:1px 8px;max-height:24px}._fRml0{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 = "._8EHy-{position:relative;display:inline-block;height:36px;width:100%}._MxQG-{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}._MxQG-:hover{cursor:pointer;background-color:#f5f5f5}._MxQG-:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._MxQG-:disabled,._MxQG-[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._MxQG-:disabled::-moz-placeholder,._MxQG-[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:disabled::placeholder,._MxQG-[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:invalid,._MxQG-[aria-invalid=true]{border-color:#b00}._MxQG-:invalid:focus,._MxQG-[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._MxQG-[type=number]{-moz-appearance:textfield}._MxQG-[type=number]::-webkit-inner-spin-button,._MxQG-[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._MxQG-::-moz-placeholder{color:#515559;opacity:1}._MxQG-::placeholder{color:#515559;opacity:1}._zKuOM{pointer-events:none;color:#515559;fill:#515559}._5UmP8{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._t0v6r{color:#515559;font-size:16px}._RI83Y{left:0;margin-left:6px}._jkDFp,._RI83Y{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._jkDFp{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_8EHy-","input":"_MxQG-","addOn":"_zKuOM","addOnVerticalCenter":"_5UmP8","addOnTextNode":"_t0v6r","leftAddOn":"_RI83Y","rightAddOn":"_jkDFp"};
|
|
5
|
+
var stylesheet="._8EHy-{position:relative;display:inline-block;height:36px;width:100%}._MxQG-{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}._MxQG-:hover{cursor:pointer;background-color:#f5f5f5}._MxQG-:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._MxQG-:disabled,._MxQG-[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._MxQG-:disabled::-moz-placeholder,._MxQG-[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:disabled::placeholder,._MxQG-[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:invalid,._MxQG-[aria-invalid=true]{border-color:#b00}._MxQG-:invalid:focus,._MxQG-[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._MxQG-[type=number]{-moz-appearance:textfield}._MxQG-[type=number]::-webkit-inner-spin-button,._MxQG-[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._MxQG-::-moz-placeholder{color:#515559;opacity:1}._MxQG-::placeholder{color:#515559;opacity:1}._zKuOM{pointer-events:none;color:#515559;fill:#515559}._5UmP8{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._t0v6r{color:#515559;font-size:16px}._RI83Y{left:0;margin-left:6px}._jkDFp,._RI83Y{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._jkDFp{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 = "._rb2--{position:relative;display:inline-block}._rb2--._JnIMK{min-height:20px;min-width:20px}._rb2--._POw-T{min-height:25px;min-width:25px}._rb2--._WZIhq{min-height:40px;min-width:40px}._rb2--._1BTVy{min-height:64px;min-width:64px}._rb2-- ._e5Tl6{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._rb2-- ._e5Tl6._tEzmP{display:none}._rb2-- ._e5Tl6 div{position:absolute;transform:rotate(20deg)}._rb2-- ._e5Tl6 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_e5Tl6 .9s linear infinite}._rb2-- ._e5Tl6 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}._rb2-- ._e5Tl6 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._rb2-- ._e5Tl6 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._rb2-- ._e5Tl6 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._rb2-- ._e5Tl6 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._rb2-- ._e5Tl6 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._rb2-- ._e5Tl6 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._rb2-- ._e5Tl6 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._rb2-- ._e5Tl6 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._rb2-- ._e5Tl6 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._rb2-- ._1BTVy div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._rb2-- ._JnIMK div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._rb2-- ._POw-T div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._rb2-- ._jgeKE div div:nth-child(-n+9):after{background:#fff}._rb2-- ._bAU5s{width:100%;height:100%}._rb2-- ._bAU5s._rTZmn{pointer-events:none}._rb2-- ._bAU5s._tEzmP{opacity:0}._rb2-- ._bAU5s._fcfIV{opacity:.8}@keyframes _e5Tl6{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_rb2--","xs":"_JnIMK","small":"_POw-T","medium":"_WZIhq","large":"_1BTVy","spinnerComponent":"_e5Tl6","hide":"_tEzmP","inverted":"_jgeKE","spinnerContent":"_bAU5s","disablePointerEvents":"_rTZmn","fade":"_fcfIV"};
|
|
5
|
+
var stylesheet="._rb2--{position:relative;display:inline-block}._rb2--._JnIMK{min-height:20px;min-width:20px}._rb2--._POw-T{min-height:25px;min-width:25px}._rb2--._WZIhq{min-height:40px;min-width:40px}._rb2--._1BTVy{min-height:64px;min-width:64px}._rb2-- ._e5Tl6{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._rb2-- ._e5Tl6._tEzmP{display:none}._rb2-- ._e5Tl6 div{position:absolute;transform:rotate(20deg)}._rb2-- ._e5Tl6 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_e5Tl6 .9s linear infinite}._rb2-- ._e5Tl6 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}._rb2-- ._e5Tl6 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._rb2-- ._e5Tl6 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._rb2-- ._e5Tl6 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._rb2-- ._e5Tl6 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._rb2-- ._e5Tl6 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._rb2-- ._e5Tl6 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._rb2-- ._e5Tl6 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._rb2-- ._e5Tl6 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._rb2-- ._e5Tl6 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._rb2-- ._1BTVy div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._rb2-- ._JnIMK div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._rb2-- ._POw-T div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._rb2-- ._jgeKE div div:nth-child(-n+9):after{background:#fff}._rb2-- ._bAU5s{width:100%;height:100%}._rb2-- ._bAU5s._rTZmn{pointer-events:none}._rb2-- ._bAU5s._tEzmP{opacity:0}._rb2-- ._bAU5s._fcfIV{opacity:.8}@keyframes _e5Tl6{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';
|
|
@@ -81,7 +81,7 @@ const Menu = _ref => {
|
|
|
81
81
|
isVirtualizationDisabled,
|
|
82
82
|
submenuDepths
|
|
83
83
|
}
|
|
84
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
84
|
+
}, /*#__PURE__*/React__default.createElement(Root2, {
|
|
85
85
|
open: open,
|
|
86
86
|
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen),
|
|
87
87
|
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 = "._KAc5-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._KAc5->._Z5O3v{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}._KAc5->._Z5O3v:hover:not([aria-disabled=true]){background-color:#f5f5f5}._KAc5->._Z5O3v.focus-visible,._KAc5->._Z5O3v:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._KAc5->._Z5O3v+._jl5Dy{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._KAc5->._Z5O3v[data-state=open]+._jl5Dy{transform:rotate(-180deg) translateY(50%)}._KAc5->._Z5O3v[aria-disabled=true]{color:#74777a;cursor:not-allowed}._KAc5->._Z5O3v[aria-disabled=true]+._jl5Dy{fill:#515559;opacity:.4}._o6Xs0>[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}._o6Xs0>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._2KExP{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)}._2KExP ._9wHrC{height:100%;overflow-y:scroll}._2KExP._av3-3{margin-left:30px;opacity:0}._2KExP._LzG-o{margin-left:-30px}._uIf4m{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%}._uIf4m._igb5e{cursor:unset}._uIf4m ._4RAQe{fill:#32363a;margin-right:4px}._uIf4m:focus,._uIf4m:hover:not(._uIf4m._igb5e){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._uIf4m[aria-disabled=true]{cursor:not-allowed;opacity:.65}._uIf4m._GwL9A{padding-right:32px}._uIf4m._GwL9A ._jl5Dy{position:absolute;height:100%;right:3px;fill:#515559}._uIf4m._FmbFM{pointer-events:none}._a49a8{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._a49a8._U7tXJ{padding-top:52px}._HTdM5{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vmHfH{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vmHfH._LzG-o{opacity:0}._vmHfH._LzG-o>._0AvMF{margin-left:-30px}._vmHfH._av3-3{opacity:0}._vmHfH._av3-3>._0AvMF{margin-left:30px}._vmHfH>._0AvMF{transition:margin-left .35s;width:100%}._vmHfH._FmbFM{pointer-events:none}body.keyboard-user ._uIf4m:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_KAc5-","button":"_Z5O3v","rightIcon":"_jl5Dy","maskContainer":"_o6Xs0","flyout":"_2KExP","scrollContainer":"_9wHrC","animatedRight":"_av3-3","animatedLeft":"_LzG-o","menuItem":"_uIf4m","noItems":"_igb5e","backIcon":"_4RAQe","subMenu":"_GwL9A","unresponsive":"_FmbFM","stickyBox":"_a49a8","isSearchable":"_U7tXJ","searchBoxesContainer":"_HTdM5","searchBox":"_vmHfH","searchInput":"_0AvMF"};
|
|
5
|
+
var stylesheet="._KAc5-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._KAc5->._Z5O3v{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}._KAc5->._Z5O3v:hover:not([aria-disabled=true]){background-color:#f5f5f5}._KAc5->._Z5O3v.focus-visible,._KAc5->._Z5O3v:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._KAc5->._Z5O3v+._jl5Dy{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._KAc5->._Z5O3v[data-state=open]+._jl5Dy{transform:rotate(-180deg) translateY(50%)}._KAc5->._Z5O3v[aria-disabled=true]{color:#74777a;cursor:not-allowed}._KAc5->._Z5O3v[aria-disabled=true]+._jl5Dy{fill:#515559;opacity:.4}._o6Xs0>[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}._o6Xs0>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._2KExP{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)}._2KExP ._9wHrC{height:100%;overflow-y:scroll}._2KExP._av3-3{margin-left:30px;opacity:0}._2KExP._LzG-o{margin-left:-30px}._uIf4m{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%}._uIf4m._igb5e{cursor:unset}._uIf4m ._4RAQe{fill:#32363a;margin-right:4px}._uIf4m:focus,._uIf4m:hover:not(._uIf4m._igb5e){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._uIf4m[aria-disabled=true]{cursor:not-allowed;opacity:.65}._uIf4m._GwL9A{padding-right:32px}._uIf4m._GwL9A ._jl5Dy{position:absolute;height:100%;right:3px;fill:#515559}._uIf4m._FmbFM{pointer-events:none}._a49a8{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._a49a8._U7tXJ{padding-top:52px}._HTdM5{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vmHfH{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vmHfH._LzG-o{opacity:0}._vmHfH._LzG-o>._0AvMF{margin-left:-30px}._vmHfH._av3-3{opacity:0}._vmHfH._av3-3>._0AvMF{margin-left:30px}._vmHfH>._0AvMF{transition:margin-left .35s;width:100%}._vmHfH._FmbFM{pointer-events:none}body.keyboard-user ._uIf4m: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';
|
|
@@ -202,7 +202,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
202
202
|
maskIsReady,
|
|
203
203
|
setIsVirtualizationReady
|
|
204
204
|
}
|
|
205
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
205
|
+
}, /*#__PURE__*/React__default.createElement(Portal2, {
|
|
206
206
|
container: portalTarget || undefined
|
|
207
207
|
}, /*#__PURE__*/React__default.createElement(ReactFocusLock, {
|
|
208
208
|
autoFocus: false,
|
|
@@ -216,7 +216,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
216
216
|
opacity: maskIsReady ? 1 : 0
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
219
|
+
}, /*#__PURE__*/React__default.createElement(Content2, _extends({}, rest, {
|
|
220
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
220
221
|
style: style,
|
|
221
222
|
onCloseAutoFocus: () => {
|
|
222
223
|
var _triggerRef$current2;
|
|
@@ -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
|
}),
|