@qualtrics/ui-react 2.85.2 → 2.85.5
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 +25 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +14 -3
- package/dist/__node_modules/@radix-ui/primitive/dist/internal/is-development.false.js +4 -0
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +9 -6
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +263 -153
- package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +8 -1
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +35 -12
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +16 -6
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +172 -43
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +76 -95
- package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -6
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +111 -30
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +232 -197
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +104 -49
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +10 -8
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +72 -14
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +8 -2
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +52 -18
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +106 -54
- package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +17 -4
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +14 -4
- package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +6 -1
- package/dist/__node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +37 -0
- package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +28 -15
- package/dist/__shared/cjs/{index-e03dac36.js → index-bd03241f.js} +213 -208
- package/dist/__shared/cjs/{index-507024ee.js → index-ccb5282a.js} +12 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +52 -6
- package/dist/components/Button/Button2.js +6 -52
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +1 -1
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +6 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker.js +1 -1
- 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/Icon/IconTypes.js +1 -0
- 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/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- 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/Pagination/PaginationNextButton.js +1 -1
- package/dist/components/Pagination/PaginationPreviousButton.js +1 -1
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +1 -1
- 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/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.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/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/PulseIcon.js +11 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +2 -1
- package/dist/index.d.ts +72 -71
- package/dist/index.es.js +2 -2
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/Chat/Loader.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- 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/useFlyoutNode.js +48 -0
- package/dist/next/Menu/Menu.js +2 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +6 -5
- package/dist/next/Menu/MenuItem.js +5 -4
- package/dist/next/Menu/MenuPane.js +20 -19
- package/dist/next/Menu/PaneChildren.js +15 -10
- package/dist/next/Menu/SubMenu.js +22 -21
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +1 -1
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/ToggleButton.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +1581 -850
- package/dist/translations-en.js +71 -71
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +4 -4
- package/next/package.json +5 -5
- package/package.json +16 -16
- package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -23
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 = "._sDhDf{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._sDhDf>._elCB7{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}._sDhDf>._elCB7:hover:not([aria-disabled=true]){background-color:#f5f5f5}._sDhDf>._elCB7:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._sDhDf>._elCB7+._y6x1r{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._sDhDf>._elCB7[data-state=open]+._y6x1r{transform:rotate(-180deg) translateY(50%)}._sDhDf>._elCB7[aria-disabled=true]{color:#74777a;cursor:not-allowed}._sDhDf>._elCB7[aria-disabled=true]+._y6x1r{fill:#515559;opacity:.4}._mHcc8>[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}._mHcc8>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._eNjmM{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)}._eNjmM ._PnFKq{height:100%;overflow-y:scroll}._eNjmM._V4IlV{margin-left:30px;opacity:0}._eNjmM._NCTLo{margin-left:-30px}._mgKvA{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%}._mgKvA._c4V6t{cursor:unset}._mgKvA ._QJ7hQ{fill:#32363a;margin-right:4px}._mgKvA:focus,._mgKvA:hover:not(._mgKvA._c4V6t){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._mgKvA[aria-disabled=true]{cursor:not-allowed;opacity:.65}._mgKvA._46lra{padding-right:32px}._mgKvA._46lra ._y6x1r{position:absolute;height:100%;right:3px;fill:#515559}._mgKvA._NEYST{pointer-events:none}._lmN-1{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._lmN-1._bwdGP{padding-top:52px}._gh2w-{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._P433r{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._P433r._NCTLo{opacity:0}._P433r._NCTLo>._X8XTy{margin-left:-30px}._P433r._V4IlV{opacity:0}._P433r._V4IlV>._X8XTy{margin-left:30px}._P433r>._X8XTy{transition:margin-left .35s;width:100%}._P433r._NEYST{pointer-events:none}body.keyboard-user ._mgKvA:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_sDhDf","button":"_elCB7","rightIcon":"_y6x1r","maskContainer":"_mHcc8","flyout":"_eNjmM","scrollContainer":"_PnFKq","animatedRight":"_V4IlV","animatedLeft":"_NCTLo","menuItem":"_mgKvA","noItems":"_c4V6t","backIcon":"_QJ7hQ","subMenu":"_46lra","unresponsive":"_NEYST","stickyBox":"_lmN-1","isSearchable":"_bwdGP","searchBoxesContainer":"_gh2w-","searchBox":"_P433r","searchInput":"_X8XTy"};
|
|
5
|
+
var stylesheet="._sDhDf{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._sDhDf>._elCB7{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}._sDhDf>._elCB7:hover:not([aria-disabled=true]){background-color:#f5f5f5}._sDhDf>._elCB7:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._sDhDf>._elCB7+._y6x1r{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._sDhDf>._elCB7[data-state=open]+._y6x1r{transform:rotate(-180deg) translateY(50%)}._sDhDf>._elCB7[aria-disabled=true]{color:#74777a;cursor:not-allowed}._sDhDf>._elCB7[aria-disabled=true]+._y6x1r{fill:#515559;opacity:.4}._mHcc8>[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}._mHcc8>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._eNjmM{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)}._eNjmM ._PnFKq{height:100%;overflow-y:scroll}._eNjmM._V4IlV{margin-left:30px;opacity:0}._eNjmM._NCTLo{margin-left:-30px}._mgKvA{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%}._mgKvA._c4V6t{cursor:unset}._mgKvA ._QJ7hQ{fill:#32363a;margin-right:4px}._mgKvA:focus,._mgKvA:hover:not(._mgKvA._c4V6t){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._mgKvA[aria-disabled=true]{cursor:not-allowed;opacity:.65}._mgKvA._46lra{padding-right:32px}._mgKvA._46lra ._y6x1r{position:absolute;height:100%;right:3px;fill:#515559}._mgKvA._NEYST{pointer-events:none}._lmN-1{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._lmN-1._bwdGP{padding-top:52px}._gh2w-{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._P433r{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._P433r._NCTLo{opacity:0}._P433r._NCTLo>._X8XTy{margin-left:-30px}._P433r._V4IlV{opacity:0}._P433r._V4IlV>._X8XTy{margin-left:30px}._P433r>._X8XTy{transition:margin-left .35s;width:100%}._P433r._NEYST{pointer-events:none}body.keyboard-user ._mgKvA: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,8 +1,8 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
3
3
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import {
|
|
4
|
+
import React__default, { useMemo } from 'react';
|
|
5
|
+
import { DropdownMenuTrigger } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import '../../icons/index.es.js';
|
|
8
8
|
import styles from './Menu2.js';
|
|
@@ -14,8 +14,8 @@ import '../../components/index.js';
|
|
|
14
14
|
import { DATA_TESTID_SUFFIXES } from '../Select/constants.js';
|
|
15
15
|
import useSelectContext from '../Select/SelectContext.js';
|
|
16
16
|
import Tooltip from '../../components/Tooltip/Tooltip.js';
|
|
17
|
-
import useIsTruncated from '../../hooks/useIsTruncated/useIsTruncated.js';
|
|
18
17
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
18
|
+
import useIsTruncated from '../../hooks/useIsTruncated/useIsTruncated.js';
|
|
19
19
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
20
20
|
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
21
21
|
|
|
@@ -49,6 +49,7 @@ const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
49
49
|
rootDataTestId = _useMenuContext.dataTestId,
|
|
50
50
|
isDisabled = _useMenuContext.isDisabled,
|
|
51
51
|
triggerRef = _useMenuContext.triggerRef;
|
|
52
|
+
const mergedRef = useMemo(() => mergeRefs(triggerRef, ref), [triggerRef, ref]);
|
|
52
53
|
const isTruncated = useIsTruncated(triggerRef);
|
|
53
54
|
const withinSelect = useSelectContext(true) !== null;
|
|
54
55
|
|
|
@@ -61,13 +62,13 @@ const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
61
62
|
asChild: asChild,
|
|
62
63
|
tooltipContent: children,
|
|
63
64
|
isTruncated: isTruncated
|
|
64
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
65
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuTrigger, _extends({}, rest, {
|
|
65
66
|
"aria-disabled": isDisabled,
|
|
66
67
|
className: classNames(className, {
|
|
67
68
|
[styles.button]: !asChild
|
|
68
69
|
}),
|
|
69
70
|
asChild: asChild,
|
|
70
|
-
ref:
|
|
71
|
+
ref: mergedRef,
|
|
71
72
|
"data-testid": getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BUTTON : DATA_TESTID_SUFFIXES$1.MENU_BUTTON),
|
|
72
73
|
onPointerDown: handlePointerDown
|
|
73
74
|
}), children), !asChild && /*#__PURE__*/React__default.createElement(ChevronDownIcon, {
|
|
@@ -2,7 +2,7 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
3
3
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
4
4
|
import React__default, { useRef, useMemo } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { DropdownMenuItem } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import styles from './Menu2.js';
|
|
8
8
|
import { usePaneContext, useItemContext } from './MenuContext.js';
|
|
@@ -11,9 +11,9 @@ import { DATA_TESTID_SUFFIXES } from '../Select/constants.js';
|
|
|
11
11
|
import { DATA_TESTID_SUFFIXES as DATA_TESTID_SUFFIXES$1, KEYS } from './constants.js';
|
|
12
12
|
import useSelectContext from '../Select/SelectContext.js';
|
|
13
13
|
import { conditionalA11yHelpersWrapper, useIsFocusVisible } from '../../components/UIProvider/A11yHelpersContext.js';
|
|
14
|
+
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
14
15
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
15
16
|
import getTestIdSegment from '../../utils/getTestIdSegment/getTestIdSegment.js';
|
|
16
|
-
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
17
17
|
|
|
18
18
|
const _excluded = ["isDisabled", "asChild", "children", "className", "onSelect", "label", "testIdSegment", "data-testid"];
|
|
19
19
|
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
@@ -30,6 +30,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
30
30
|
const withinSelect = selectContext !== null;
|
|
31
31
|
const multiselect = selectContext === null || selectContext === void 0 ? void 0 : selectContext.multiselect;
|
|
32
32
|
const itemRef = useRef(null);
|
|
33
|
+
const mergedRef = useMemo(() => mergeRefs(ref, itemRef), [ref]);
|
|
33
34
|
const _usePaneContext = usePaneContext(itemRef),
|
|
34
35
|
menuParentDataTestId = _usePaneContext.dataTestId,
|
|
35
36
|
childIndex = _usePaneContext.childIndex,
|
|
@@ -62,7 +63,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
|
-
return /*#__PURE__*/React__default.createElement(
|
|
66
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuItem, _extends({}, rest, {
|
|
66
67
|
tabIndex: 0,
|
|
67
68
|
asChild: asChild,
|
|
68
69
|
"aria-disabled": isDisabled,
|
|
@@ -70,7 +71,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
70
71
|
[styles.unresponsive]: !isInteractive
|
|
71
72
|
}),
|
|
72
73
|
"data-testid": dataTestId,
|
|
73
|
-
ref:
|
|
74
|
+
ref: mergedRef,
|
|
74
75
|
onKeyDown: e => {
|
|
75
76
|
var _context, _context2, _context3;
|
|
76
77
|
if (!isInteractive || multiselect && e.key === 'Enter') {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
4
|
-
import React__default, { useState,
|
|
5
|
-
import {
|
|
4
|
+
import React__default, { useState, useMemo, useRef } from 'react';
|
|
5
|
+
import { DropdownMenuPortal, Content as DropdownMenuContent } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import ReactFocusLock from 'react-focus-lock';
|
|
8
8
|
import styles from './Menu2.js';
|
|
@@ -23,11 +23,12 @@ import PaneChildren from './PaneChildren.js';
|
|
|
23
23
|
import useFocusVirtualBoundary from './Hooks/useFocusVirtualBoundary.js';
|
|
24
24
|
import useIsVirtualized from './Hooks/useIsVirtualized.js';
|
|
25
25
|
import useMaskDimensions from './Hooks/useMaskDimensions.js';
|
|
26
|
+
import useFlyoutNode from './Hooks/useFlyoutNode.js';
|
|
26
27
|
import { useIsFocusVisible, conditionalA11yHelpersWrapper } from '../../components/UIProvider/A11yHelpersContext.js';
|
|
28
|
+
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
27
29
|
import useId from '../../hooks/useId/useId.js';
|
|
28
30
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
29
31
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
30
|
-
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
31
32
|
|
|
32
33
|
const _excluded = ["placement", "children", "isSearchable", "searchValue", "onSearchValueChange", "isSearchFilteringDisabled", "className", "zIndex", "disableScrollLock", "style"],
|
|
33
34
|
_excluded2 = ["id"];
|
|
@@ -51,11 +52,11 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
51
52
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
53
|
items = _useState2[0],
|
|
53
54
|
setItems = _useState2[1];
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
flyoutNode =
|
|
57
|
-
|
|
58
|
-
const
|
|
55
|
+
const _useFlyoutNode = useFlyoutNode(),
|
|
56
|
+
_useFlyoutNode2 = _slicedToArray(_useFlyoutNode, 2),
|
|
57
|
+
flyoutNode = _useFlyoutNode2[0],
|
|
58
|
+
onRefChange = _useFlyoutNode2[1];
|
|
59
|
+
const contentRef = useMemo(() => mergeRefs(ref, onRefChange), [ref, onRefChange]);
|
|
59
60
|
const stickyBoxRef = useRef(null);
|
|
60
61
|
const selectContext = useSelectContext(true);
|
|
61
62
|
const withinSelect = selectContext !== null;
|
|
@@ -113,10 +114,10 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
113
114
|
const paneBottomPadding = 4;
|
|
114
115
|
const maskContainerId = useId();
|
|
115
116
|
const maskContainer = document.getElementById(maskContainerId);
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
transform =
|
|
119
|
-
setTransform =
|
|
117
|
+
const _useState3 = useState(''),
|
|
118
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
119
|
+
transform = _useState4[0],
|
|
120
|
+
setTransform = _useState4[1];
|
|
120
121
|
const target = (_flyoutNode$parentNod = flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.parentNode) !== null && _flyoutNode$parentNod !== void 0 ? _flyoutNode$parentNod : undefined;
|
|
121
122
|
const _useMenuContext = useMenuContext(),
|
|
122
123
|
rootDataTestId = _useMenuContext.dataTestId,
|
|
@@ -129,10 +130,10 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
129
130
|
maskWidth = _useMenuContext.maskWidth,
|
|
130
131
|
isVirtualizationDisabled = _useMenuContext.isVirtualizationDisabled;
|
|
131
132
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
isVirtualizationReady =
|
|
135
|
-
setIsVirtualizationReady =
|
|
133
|
+
const _useState5 = useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test'),
|
|
134
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
135
|
+
isVirtualizationReady = _useState6[0],
|
|
136
|
+
setIsVirtualizationReady = _useState6[1];
|
|
136
137
|
const animatedLeft = useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
137
138
|
const dataTestId = getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE);
|
|
138
139
|
const _usePaneSearch = usePaneSearch({
|
|
@@ -221,7 +222,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
221
222
|
maskIsReady,
|
|
222
223
|
setIsVirtualizationReady
|
|
223
224
|
}
|
|
224
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
225
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuPortal, {
|
|
225
226
|
container: portalTarget || undefined
|
|
226
227
|
}, /*#__PURE__*/React__default.createElement(ReactFocusLock, {
|
|
227
228
|
autoFocus: false,
|
|
@@ -235,7 +236,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
235
236
|
opacity: maskIsReady ? 1 : 0
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
239
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuContent, _extends({}, rest, {
|
|
239
240
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
240
241
|
style: style,
|
|
241
242
|
onCloseAutoFocus: event => {
|
|
@@ -251,7 +252,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
251
252
|
loop: !isSearchable,
|
|
252
253
|
side: side || defaultSide,
|
|
253
254
|
align: align || 'start',
|
|
254
|
-
ref:
|
|
255
|
+
ref: contentRef,
|
|
255
256
|
"data-testid": dataTestId,
|
|
256
257
|
className: classNames(className, {
|
|
257
258
|
[styles.animatedLeft]: animatedLeft
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { useRef } from 'react';
|
|
2
|
+
import React__default, { useRef, useMemo, useCallback } from 'react';
|
|
3
3
|
import { Virtuoso } from 'react-virtuoso';
|
|
4
4
|
import { useMenuContext, usePaneContext, ItemContextProvider } from './MenuContext.js';
|
|
5
5
|
import styles from './Menu2.js';
|
|
@@ -19,6 +19,17 @@ const PaneChildren = _ref => {
|
|
|
19
19
|
setIsVirtualizationReady = _usePaneContext.setIsVirtualizationReady,
|
|
20
20
|
isVirtualized = _usePaneContext.isVirtualized;
|
|
21
21
|
const containerRef = useRef(null);
|
|
22
|
+
const virtualIndexOffset = multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0;
|
|
23
|
+
|
|
24
|
+
// Virtuoso republishes every prop that changes identity, so keep them
|
|
25
|
+
// stable to avoid feeding extra synchronous renders back into the pane.
|
|
26
|
+
const data = useMemo(() => Array.isArray(children) ? children : [children], [children]);
|
|
27
|
+
const startReached = useCallback(() => setIsVirtualizationReady === null || setIsVirtualizationReady === void 0 ? void 0 : setIsVirtualizationReady(true), [setIsVirtualizationReady]);
|
|
28
|
+
const itemContent = useCallback((index, child) => ! /*#__PURE__*/React__default.isValidElement(child) ? null : /*#__PURE__*/React__default.createElement(ItemContextProvider, {
|
|
29
|
+
value: {
|
|
30
|
+
virtualIndex: index + virtualIndexOffset
|
|
31
|
+
}
|
|
32
|
+
}, child), [virtualIndexOffset]);
|
|
22
33
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23
34
|
ref: containerRef,
|
|
24
35
|
className: styles.scrollContainer,
|
|
@@ -27,16 +38,10 @@ const PaneChildren = _ref => {
|
|
|
27
38
|
}
|
|
28
39
|
}, isVirtualized ? /*#__PURE__*/React__default.createElement(Virtuoso, _extends({
|
|
29
40
|
ref: virtuoso,
|
|
30
|
-
startReached:
|
|
41
|
+
startReached: startReached,
|
|
31
42
|
customScrollParent: (_containerRef$current2 = containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : undefined,
|
|
32
|
-
data:
|
|
33
|
-
|
|
34
|
-
,
|
|
35
|
-
itemContent: (index, child) => ! /*#__PURE__*/React__default.isValidElement(child) ? null : /*#__PURE__*/React__default.createElement(ItemContextProvider, {
|
|
36
|
-
value: {
|
|
37
|
-
virtualIndex: index + (multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0)
|
|
38
|
-
}
|
|
39
|
-
}, child)
|
|
43
|
+
data: data,
|
|
44
|
+
itemContent: itemContent
|
|
40
45
|
}, VIRTUOSO_PROPS)) : /*#__PURE__*/React__default.createElement(ItemContextProvider, {
|
|
41
46
|
value: {
|
|
42
47
|
virtualIndex: undefined
|
|
@@ -2,8 +2,8 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
4
4
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
5
|
-
import React__default, { useState, useRef,
|
|
6
|
-
import {
|
|
5
|
+
import React__default, { useState, useRef, useMemo, useEffect } from 'react';
|
|
6
|
+
import { DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuItem } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import styles from './Menu2.js';
|
|
9
9
|
import '../../icons/index.es.js';
|
|
@@ -20,13 +20,14 @@ import PaneChildren from './PaneChildren.js';
|
|
|
20
20
|
import useFocusVirtualBoundary from './Hooks/useFocusVirtualBoundary.js';
|
|
21
21
|
import useIsVirtualized from './Hooks/useIsVirtualized.js';
|
|
22
22
|
import useMaskDimensions from './Hooks/useMaskDimensions.js';
|
|
23
|
+
import useFlyoutNode from './Hooks/useFlyoutNode.js';
|
|
23
24
|
import { conditionalA11yHelpersWrapper, useIsFocusVisible } from '../../components/UIProvider/A11yHelpersContext.js';
|
|
24
25
|
import useId from '../../hooks/useId/useId.js';
|
|
26
|
+
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
25
27
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
26
28
|
import getTestIdSegment from '../../utils/getTestIdSegment/getTestIdSegment.js';
|
|
27
29
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
28
30
|
import ChevronRightIcon from '../../icons/components/ChevronRightIcon.js';
|
|
29
|
-
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
30
31
|
import ArrowLeftIcon from '../../icons/components/ArrowLeftIcon.js';
|
|
31
32
|
|
|
32
33
|
const _excluded = ["children", "label", "isDisabled", "isSearchable", "searchValue", "onSearchValueChange", "isSearchFilteringDisabled", "className", "style", "onIsOpenChange", "testIdSegment"];
|
|
@@ -63,11 +64,11 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
63
64
|
setItems = _useState2[1];
|
|
64
65
|
const internalId = useId();
|
|
65
66
|
const triggerRef = useRef(null);
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
flyoutNode =
|
|
69
|
-
|
|
70
|
-
const
|
|
67
|
+
const _useFlyoutNode = useFlyoutNode(),
|
|
68
|
+
_useFlyoutNode2 = _slicedToArray(_useFlyoutNode, 2),
|
|
69
|
+
flyoutNode = _useFlyoutNode2[0],
|
|
70
|
+
onRefChange = _useFlyoutNode2[1];
|
|
71
|
+
const contentRef = useMemo(() => mergeRefs(ref, onRefChange), [ref, onRefChange]);
|
|
71
72
|
const stickyBoxRef = useRef(null);
|
|
72
73
|
const backButtonRef = useRef(null);
|
|
73
74
|
const _usePaneContext = usePaneContext(triggerRef),
|
|
@@ -89,18 +90,18 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
89
90
|
isFocusVisible = _useIsFocusVisible.isFocusVisible;
|
|
90
91
|
const zIndex = useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
91
92
|
const thisPanesDepth = (_submenuDepths$intern = submenuDepths[internalId]) !== null && _submenuDepths$intern !== void 0 ? _submenuDepths$intern : Number.MAX_SAFE_INTEGER;
|
|
93
|
+
const _useState3 = useState(false),
|
|
94
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
95
|
+
isPaneInDOM = _useState4[0],
|
|
96
|
+
setIsPaneInDOM = _useState4[1];
|
|
92
97
|
const _useState5 = useState(false),
|
|
93
98
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
isFrameAfterPaneAddedToDOM = _useState6[0],
|
|
100
|
+
setIsFrameAfterPaneAddedToDOM = _useState6[1];
|
|
96
101
|
const _useState7 = useState(false),
|
|
97
102
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const _useState9 = useState(false),
|
|
101
|
-
_useState0 = _slicedToArray(_useState9, 2),
|
|
102
|
-
isTransitioningFromRight = _useState0[0],
|
|
103
|
-
setIsTransitioningFromRight = _useState0[1];
|
|
103
|
+
isTransitioningFromRight = _useState8[0],
|
|
104
|
+
setIsTransitioningFromRight = _useState8[1];
|
|
104
105
|
const animatedLeft = useMemo(() => thisPanesDepth < totalOpenPaneDepth, [totalOpenPaneDepth, thisPanesDepth]);
|
|
105
106
|
const animatedRight = useMemo(() => thisPanesDepth > totalOpenPaneDepth || thisPanesDepth === totalOpenPaneDepth && !isPaneInDOM || isFrameAfterPaneAddedToDOM, [totalOpenPaneDepth, isFrameAfterPaneAddedToDOM, thisPanesDepth, isPaneInDOM]);
|
|
106
107
|
const paneDataTestId = getSubDataTestId(paneContainingTriggerDataTestId, getTestIdSegment(testIdSegment, triggerIndex));
|
|
@@ -170,9 +171,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
170
171
|
}
|
|
171
172
|
setIsTransitioningFromRight(false);
|
|
172
173
|
};
|
|
173
|
-
return /*#__PURE__*/React__default.createElement(
|
|
174
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuSub, {
|
|
174
175
|
open: isPaneInDOM
|
|
175
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
176
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuSubTrigger, _extends({
|
|
176
177
|
className: classNames(styles.menuItem, styles.subMenu, {
|
|
177
178
|
[styles.unresponsive]: !paneContainingTriggerIsInteractive,
|
|
178
179
|
[styles$1.selectedItem]: triggerCheckedState === true && !isSelectedItems
|
|
@@ -225,10 +226,10 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
225
226
|
isVirtualized,
|
|
226
227
|
internalId
|
|
227
228
|
}
|
|
228
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
229
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuSubContent, _extends({}, rest, {
|
|
229
230
|
loop: !isSearchable,
|
|
230
231
|
"data-testid": paneDataTestId,
|
|
231
|
-
ref:
|
|
232
|
+
ref: contentRef,
|
|
232
233
|
onInteractOutside: onInteractOutside,
|
|
233
234
|
className: classNames(className, styles.flyout, {
|
|
234
235
|
[styles.animatedRight]: animatedRight,
|
|
@@ -249,7 +250,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
249
250
|
style: {
|
|
250
251
|
zIndex
|
|
251
252
|
}
|
|
252
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
253
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
|
|
253
254
|
className: classNames(styles.menuItem, {
|
|
254
255
|
[styles.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
|
|
255
256
|
}),
|
|
@@ -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 = "._H53Ee input{padding-left:76px!important}._hgaFd input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._hgaFd input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._hgaFd input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._GI-ZY{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._GI-ZY,._GI-ZY._hgaFd:hover{background-color:initial!important}._GI-ZY:hover{background-color:rgba(50,54,58,.08)!important}._GI-ZY:active{background-color:rgba(50,54,58,.11)!important}._GI-ZY svg{top:2px!important}._iAjtx{position:relative}._Gpmqb{position:absolute;top:18px;left:12px;line-height:0px;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_H53Ee","disabled":"_hgaFd","dropdown":"_GI-ZY","container":"_iAjtx","countryCode":"_Gpmqb"};
|
|
5
|
+
var stylesheet="._H53Ee input{padding-left:76px!important}._hgaFd input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._hgaFd input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._hgaFd input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._GI-ZY{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._GI-ZY,._GI-ZY._hgaFd:hover{background-color:initial!important}._GI-ZY:hover{background-color:rgba(50,54,58,.08)!important}._GI-ZY:active{background-color:rgba(50,54,58,.11)!important}._GI-ZY svg{top:2px!important}._iAjtx{position:relative}._Gpmqb{position:absolute;top:18px;left:12px;line-height:0px;font-size:14px;color:#32363a;z-index:101;pointer-events: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,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 = {"isInvalid":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._yp84T{box-shadow:inset 0 0 0 1px #b00!important}._hsuHd{margin-right:7px}._xWfxz{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_yp84T","checkbox":"_hsuHd","selectedItem":"_xWfxz"};
|
|
5
|
+
var stylesheet="._yp84T{box-shadow:inset 0 0 0 1px #b00!important}._hsuHd{margin-right:7px}._xWfxz{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
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 };
|
|
@@ -10,7 +10,7 @@ import '../../utils/index.js';
|
|
|
10
10
|
import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
11
11
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
12
12
|
import useScreenReaderAnnouncement from '../../hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js';
|
|
13
|
-
import { Button } from '../../components/Button/
|
|
13
|
+
import { Button } from '../../components/Button/Button.js';
|
|
14
14
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
15
15
|
import Dropdown from '../../components/Dropdown/Dropdown.js';
|
|
16
16
|
import DropdownButton from '../../components/Dropdown/DropdownButton.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-eQtu{display:flex}._0MQVX{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._0MQVX._0VtXA{background-color:#fff}._0MQVX._0VtXA._HzLny:focus-visible:not(._hV5H5){background-color:#0b6ed0}._0MQVX._0VtXA._p4Him:not(._0MQVX._0VtXA._eriVs),._0MQVX._HZc0N{background-color:#0b6ed0}._0MQVX._HZc0N._eriVs._p4Him,._0MQVX._HZc0N._hV5H5._HzLny,._0MQVX._HZc0N._hV5H5._eriVs{opacity:.4}._qehmU{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._qehmU:focus{z-index:1}._DcyVW{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._DcyVW svg{margin-left:1px}._DcyVW._0VtXA{background-color:#0b6ed0;border-color:transparent}._DcyVW._0VtXA svg{fill:#fff!important}._DcyVW._0VtXA:not(._U4doj):hover{background-color:#085caf!important}._DcyVW._0VtXA:not(._U4doj):active{background-color:#0854a1!important}._DcyVW._0VtXA._U4doj{opacity:.4}._DcyVW._0VtXA._U4doj svg{background-color:initial}._DcyVW._HZc0N{border-color:#0b6ed0;background-color:#fff}._DcyVW._HZc0N svg{fill:#0b6ed0!important}._DcyVW._HZc0N:not(._U4doj):hover{background-color:#eef5fc!important}._DcyVW._HZc0N:not(._U4doj):active{background-color:#e1edf9!important}._DcyVW._HZc0N._U4doj{opacity:.4}._DcyVW._HZc0N._U4doj svg{background-color:initial}._uQIY3{width:260px}";
|
|
4
|
+
var styles = {"container":"_-eQtu","divider":"_0MQVX","primary":"_0VtXA","mainButtonFocus":"_HzLny","mainButtonDisabled":"_hV5H5","dropdownButtonFocus":"_p4Him","dropdownButtonDisabled":"_eriVs","secondary":"_HZc0N","mainButton":"_qehmU","dropdownButton":"_DcyVW","disabled":"_U4doj","dropdownOption":"_uQIY3"};
|
|
5
|
+
var stylesheet="._-eQtu{display:flex}._0MQVX{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._0MQVX._0VtXA{background-color:#fff}._0MQVX._0VtXA._HzLny:focus-visible:not(._hV5H5){background-color:#0b6ed0}._0MQVX._0VtXA._p4Him:not(._0MQVX._0VtXA._eriVs),._0MQVX._HZc0N{background-color:#0b6ed0}._0MQVX._HZc0N._eriVs._p4Him,._0MQVX._HZc0N._hV5H5._HzLny,._0MQVX._HZc0N._hV5H5._eriVs{opacity:.4}._qehmU{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._qehmU:focus{z-index:1}._DcyVW{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._DcyVW svg{margin-left:1px}._DcyVW._0VtXA{background-color:#0b6ed0;border-color:transparent}._DcyVW._0VtXA svg{fill:#fff!important}._DcyVW._0VtXA:not(._U4doj):hover{background-color:#085caf!important}._DcyVW._0VtXA:not(._U4doj):active{background-color:#0854a1!important}._DcyVW._0VtXA._U4doj{opacity:.4}._DcyVW._0VtXA._U4doj svg{background-color:initial}._DcyVW._HZc0N{border-color:#0b6ed0;background-color:#fff}._DcyVW._HZc0N svg{fill:#0b6ed0!important}._DcyVW._HZc0N:not(._U4doj):hover{background-color:#eef5fc!important}._DcyVW._HZc0N:not(._U4doj):active{background-color:#e1edf9!important}._DcyVW._HZc0N._U4doj{opacity:.4}._DcyVW._HZc0N._U4doj svg{background-color:initial}._uQIY3{width:260px}";
|
|
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 = {"timePickerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2OSDy{display:inline-block;position:relative}._2OSDy ._fjO4V{width:120px}._2OSDy ._fjO4V ._1Dftq._8Hlua{transform:rotate(-180deg)}._2OSDy ._fjO4V ._1Dftq._FdRUj{fill:#9d9fa1;opacity:.4}._2OSDy ._tIYaS>input:focus{box-shadow:none!important;border:1px solid #898989!important}._2OSDy ._1Dftq{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._2OSDy ._1Dftq._8Hlua{transform:rotate(-180deg)}._0ucZm{width:120px}._0ucZm ._-tJIo._vRzOI{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_2OSDy","input":"_fjO4V","icon":"_1Dftq","open":"_8Hlua","disabled":"_FdRUj","ignoreFocusStyle":"_tIYaS","timePickerFlyout":"_0ucZm","option":"_-tJIo","exactMatch":"_vRzOI"};
|
|
5
|
+
var stylesheet="._2OSDy{display:inline-block;position:relative}._2OSDy ._fjO4V{width:120px}._2OSDy ._fjO4V ._1Dftq._8Hlua{transform:rotate(-180deg)}._2OSDy ._fjO4V ._1Dftq._FdRUj{fill:#9d9fa1;opacity:.4}._2OSDy ._tIYaS>input:focus{box-shadow:none!important;border:1px solid #898989!important}._2OSDy ._1Dftq{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._2OSDy ._1Dftq._8Hlua{transform:rotate(-180deg)}._0ucZm{width:120px}._0ucZm ._-tJIo._vRzOI{background-color:#efefef;border-radius: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 };
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useToggleButtonGroupContext } from './ToggleButtonGroupContext.js';
|
|
5
5
|
import styles from './styles.js';
|
|
6
|
-
import buttonStyles from '../../components/Button/
|
|
6
|
+
import buttonStyles from '../../components/Button/Button2.js';
|
|
7
7
|
import '../../hooks/index.js';
|
|
8
8
|
import '../../utils/index.js';
|
|
9
9
|
import useId from '../../hooks/useId/useId.js';
|
|
@@ -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 = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ztqAT{border-color:transparent;background-color:initial;color:#515559;cursor:pointer}._drQo1{background-color:rgba(50,54,58,.08)}._DalYx{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._li32w{color:rgba(81,85,89,.4);cursor:not-allowed}._KNiRm{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._pFhHw{color:#085caf;border-color:#085caf}._bPHUv,._pFhHw{background:rgba(11,110,208,.11)}._bPHUv{color:#0854a1;border-color:#0854a1}._pJlwS{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ILUjd{position:relative;display:inline-grid}._ILUjd svg{fill:currentColor}._ILUjd ._Q0YpV{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._ILUjd ._Q0YpV+._z4qYZ{background-color:initial;color:#515559;cursor:pointer;border-color:transparent;border-style:solid;border-width:1px;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._ILUjd ._Q0YpV+._z4qYZ._T0-Sb{padding:5px;max-width:36px;min-width:36px}._ILUjd ._Q0YpV+._z4qYZ._K36me{padding:0 16px}._ILUjd ._Q0YpV+._z4qYZ._FFkHy{padding:0 16px 0 12px}._ILUjd ._Q0YpV:hover+._z4qYZ{background-color:rgba(50,54,58,.08)}._ILUjd ._Q0YpV:disabled+._z4qYZ{color:rgba(81,85,89,.4);cursor:not-allowed}._ILUjd ._Q0YpV:active+._z4qYZ,._ILUjd ._Q0YpV:focus:active+._z4qYZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._ILUjd ._Q0YpV:checked+._z4qYZ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._ILUjd ._Q0YpV:checked:hover+._z4qYZ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._ILUjd ._Q0YpV:checked:disabled+._z4qYZ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ILUjd ._Q0YpV:checked:active+._z4qYZ,._ILUjd ._Q0YpV:checked:focus:active+._z4qYZ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._GsuTi{display:inline-flex;position:relative}._GsuTi:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._GsuTi>*{flex-shrink:0;flex-grow:0}._LPzaG{border:none;margin:0;padding:0}._LPzaG legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._ILUjd ._Q0YpV:focus-visible{outline:none}._ILUjd ._Q0YpV:focus-visible+._z4qYZ{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_ztqAT","hovered":"_drQo1","pressed":"_DalYx","disabled":"_li32w","selectedDefault":"_KNiRm","selectedHovered":"_pFhHw","selectedPressed":"_bPHUv","selectedDisabled":"_pJlwS","toggleContainer":"_ILUjd","toggleInput":"_Q0YpV","toggleButton":"_z4qYZ","iconOnly":"_T0-Sb","text":"_K36me","iconText":"_FFkHy","toggleButtonGroup":"_GsuTi","toggleButtonGroupFieldset":"_LPzaG"};
|
|
5
|
+
var stylesheet="._ztqAT{border-color:transparent;background-color:initial;color:#515559;cursor:pointer}._drQo1{background-color:rgba(50,54,58,.08)}._DalYx{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._li32w{color:rgba(81,85,89,.4);cursor:not-allowed}._KNiRm{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._pFhHw{color:#085caf;border-color:#085caf}._bPHUv,._pFhHw{background:rgba(11,110,208,.11)}._bPHUv{color:#0854a1;border-color:#0854a1}._pJlwS{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ILUjd{position:relative;display:inline-grid}._ILUjd svg{fill:currentColor}._ILUjd ._Q0YpV{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._ILUjd ._Q0YpV+._z4qYZ{background-color:initial;color:#515559;cursor:pointer;border-color:transparent;border-style:solid;border-width:1px;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._ILUjd ._Q0YpV+._z4qYZ._T0-Sb{padding:5px;max-width:36px;min-width:36px}._ILUjd ._Q0YpV+._z4qYZ._K36me{padding:0 16px}._ILUjd ._Q0YpV+._z4qYZ._FFkHy{padding:0 16px 0 12px}._ILUjd ._Q0YpV:hover+._z4qYZ{background-color:rgba(50,54,58,.08)}._ILUjd ._Q0YpV:disabled+._z4qYZ{color:rgba(81,85,89,.4);cursor:not-allowed}._ILUjd ._Q0YpV:active+._z4qYZ,._ILUjd ._Q0YpV:focus:active+._z4qYZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._ILUjd ._Q0YpV:checked+._z4qYZ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._ILUjd ._Q0YpV:checked:hover+._z4qYZ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._ILUjd ._Q0YpV:checked:disabled+._z4qYZ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ILUjd ._Q0YpV:checked:active+._z4qYZ,._ILUjd ._Q0YpV:checked:focus:active+._z4qYZ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._GsuTi{display:inline-flex;position:relative}._GsuTi:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._GsuTi>*{flex-shrink:0;flex-grow:0}._LPzaG{border:none;margin:0;padding:0}._LPzaG legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._ILUjd ._Q0YpV:focus-visible{outline:none}._ILUjd ._Q0YpV:focus-visible+._z4qYZ{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|