@qualtrics/ui-react 2.31.0 → 2.32.1
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 +78 -13
- package/dist/__shared/cjs/{index-434a3b72.js → index-2694aefb.js} +297 -223
- package/dist/__shared/cjs/{index-c13fc74c.js → index-b8635002.js} +39 -4
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Banner/Banner.css.js +12 -13
- package/dist/components/Banner/Banner.css.ts.vanilla.js +3 -3
- package/dist/components/Banner/Banner.js +2 -3
- package/dist/components/Button/Button.js +3 -3
- 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/Combobox/Combobox.js +0 -1
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +0 -2
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +2 -3
- 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 +9 -0
- package/dist/components/IconButton/IconButton.js +0 -1
- 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/Modal.js +1 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +13 -7
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +81 -38
- package/dist/components/NewMenu/parts/MenuItem.js +16 -5
- 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/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +0 -1
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -0
- 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/Tab.js +0 -2
- package/dist/components/Tabs/TabList.js +0 -4
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- 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/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/AIEntityIcon.js +6 -0
- package/dist/icons/components/AISparkIcon.js +6 -0
- package/dist/icons/components/ButtonSelectorIcon.js +6 -0
- package/dist/icons/components/DropListSelectorIcon.js +6 -0
- package/dist/icons/components/HeatMapDiscoverIcon.js +6 -0
- package/dist/icons/components/HighlightPenSwatchIcon.js +6 -0
- package/dist/icons/components/HighlightSwatchIcon.js +6 -0
- package/dist/icons/components/MetricWidgetIcon.js +6 -0
- package/dist/icons/components/SearchSelectorIcon.js +6 -0
- package/dist/icons/createIconComponent.js +0 -1
- package/dist/icons/index.d.ts +24 -0
- package/dist/icons/index.es.js +9 -0
- package/dist/icons/index.js +10 -1
- package/dist/index.d.ts +1308 -154
- package/dist/index.es.js +1 -1
- package/dist/index.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +0 -5
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +0 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +0 -1
- package/dist/next/Combobox/ComboboxInput.js +0 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +0 -1
- package/dist/next/Drawer/Drawer.js +0 -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/Input/Input.js +0 -1
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/useCSSVariable.js +5 -5
- package/dist/next/Menu/Hooks/useMaskDimensions.js +10 -12
- package/dist/next/Menu/Hooks/usePaneSearch.js +2 -4
- package/dist/next/Menu/Menu.js +21 -8
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuPane.js +55 -18
- package/dist/next/Menu/PaneChildren.js +6 -3
- package/dist/next/Menu/SubMenu.js +11 -7
- package/dist/next/Menu/constants.js +4 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/StackItem.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +531 -32
- package/dist/next/index.js +172 -149
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Text/Text.js +2 -2
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +0 -1
- package/dist/utils/constants.js +0 -1
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +8 -5
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 = "._EZy7s{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._EZy7s>._5bn0k{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}._EZy7s>._5bn0k:hover:not([aria-disabled=true]){background-color:#f5f5f5}._EZy7s>._5bn0k.focus-visible,._EZy7s>._5bn0k:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._EZy7s>._5bn0k+._rzYmq{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._EZy7s>._5bn0k[data-state=open]+._rzYmq{transform:rotate(-180deg) translateY(50%)}._EZy7s>._5bn0k[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._EZy7s>._5bn0k[aria-disabled=true]+._rzYmq{fill:#515559;opacity:.4}._exAdF>[data-radix-popper-content-wrapper]{overflow:hidden;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}._exAdF>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._fVNJN{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)}._fVNJN ._REdxS{height:100%;overflow-y:scroll}._fVNJN._w7Zbr{margin-left:30px;opacity:0}._fVNJN._1GI2U{margin-left:-30px}._7zoAD{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%}._7zoAD._ECDa-{cursor:unset}._7zoAD ._z--ya{fill:#32363a;margin-right:4px}._7zoAD:focus,._7zoAD:hover:not(._7zoAD._ECDa-){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7zoAD[aria-disabled=true]{cursor:not-allowed;opacity:.65}._7zoAD._E9anz{padding-right:32px}._7zoAD._E9anz ._rzYmq{position:absolute;height:100%;right:3px;fill:#515559}._7zoAD._KYWf0{pointer-events:none}._-IEIj{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._-IEIj._-C2po{padding-top:52px}._dtV1j{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vEk9C{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vEk9C._1GI2U{opacity:0}._vEk9C._1GI2U>._OdpvY{margin-left:-30px}._vEk9C._w7Zbr{opacity:0}._vEk9C._w7Zbr>._OdpvY{margin-left:30px}._vEk9C>._OdpvY{transition:margin-left .35s;width:100%}._vEk9C._KYWf0{pointer-events:none}body.keyboard-user ._7zoAD:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_EZy7s","button":"_5bn0k","rightIcon":"_rzYmq","maskContainer":"_exAdF","flyout":"_fVNJN","scrollContainer":"_REdxS","animatedRight":"_w7Zbr","animatedLeft":"_1GI2U","menuItem":"_7zoAD","noItems":"_ECDa-","backIcon":"_z--ya","subMenu":"_E9anz","unresponsive":"_KYWf0","stickyBox":"_-IEIj","isSearchable":"_-C2po","searchBoxesContainer":"_dtV1j","searchBox":"_vEk9C","searchInput":"_OdpvY"};
|
|
5
|
+
var stylesheet="._EZy7s{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._EZy7s>._5bn0k{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}._EZy7s>._5bn0k:hover:not([aria-disabled=true]){background-color:#f5f5f5}._EZy7s>._5bn0k.focus-visible,._EZy7s>._5bn0k:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._EZy7s>._5bn0k+._rzYmq{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._EZy7s>._5bn0k[data-state=open]+._rzYmq{transform:rotate(-180deg) translateY(50%)}._EZy7s>._5bn0k[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._EZy7s>._5bn0k[aria-disabled=true]+._rzYmq{fill:#515559;opacity:.4}._exAdF>[data-radix-popper-content-wrapper]{overflow:hidden;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}._exAdF>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._fVNJN{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)}._fVNJN ._REdxS{height:100%;overflow-y:scroll}._fVNJN._w7Zbr{margin-left:30px;opacity:0}._fVNJN._1GI2U{margin-left:-30px}._7zoAD{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%}._7zoAD._ECDa-{cursor:unset}._7zoAD ._z--ya{fill:#32363a;margin-right:4px}._7zoAD:focus,._7zoAD:hover:not(._7zoAD._ECDa-){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7zoAD[aria-disabled=true]{cursor:not-allowed;opacity:.65}._7zoAD._E9anz{padding-right:32px}._7zoAD._E9anz ._rzYmq{position:absolute;height:100%;right:3px;fill:#515559}._7zoAD._KYWf0{pointer-events:none}._-IEIj{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._-IEIj._-C2po{padding-top:52px}._dtV1j{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vEk9C{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vEk9C._1GI2U{opacity:0}._vEk9C._1GI2U>._OdpvY{margin-left:-30px}._vEk9C._w7Zbr{opacity:0}._vEk9C._w7Zbr>._OdpvY{margin-left:30px}._vEk9C>._OdpvY{transition:margin-left .35s;width:100%}._vEk9C._KYWf0{pointer-events:none}body.keyboard-user ._7zoAD: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 };
|
|
@@ -27,7 +27,7 @@ import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
|
27
27
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
28
28
|
|
|
29
29
|
const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
30
|
-
var _flyoutRef$current$pa, _flyoutRef$current, _flyoutRef$current2;
|
|
30
|
+
var _flyoutRef$current$pa, _flyoutRef$current, _process$env, _flyoutRef$current2;
|
|
31
31
|
let {
|
|
32
32
|
placement,
|
|
33
33
|
children,
|
|
@@ -37,6 +37,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
37
37
|
isSearchFilteringDisabled = false,
|
|
38
38
|
className,
|
|
39
39
|
zIndex = 1000,
|
|
40
|
+
style,
|
|
40
41
|
...rest
|
|
41
42
|
} = _ref;
|
|
42
43
|
const [items, setItems] = useState([]);
|
|
@@ -54,9 +55,48 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
54
55
|
return (_placement$split = placement === null || placement === void 0 || (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
|
|
55
56
|
}, [placement]);
|
|
56
57
|
const thisPanesDepth = 1;
|
|
57
|
-
const paneMaxHeight =
|
|
58
|
+
const paneMaxHeight = useMemo(() => {
|
|
59
|
+
let maxHeightString = '';
|
|
60
|
+
const defaultPaneMaxHeight = 350;
|
|
61
|
+
|
|
62
|
+
// check `style`
|
|
63
|
+
if (style !== null && style !== void 0 && style.maxHeight) {
|
|
64
|
+
if (typeof style.maxHeight === 'number') {
|
|
65
|
+
return style.maxHeight;
|
|
66
|
+
}
|
|
67
|
+
if (typeof style.maxHeight === 'string') {
|
|
68
|
+
maxHeightString = style.maxHeight;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// check `className`
|
|
73
|
+
if (!maxHeightString && flyoutRef.current) {
|
|
74
|
+
const computedString = window.getComputedStyle(flyoutRef.current).maxHeight;
|
|
75
|
+
if (computedString !== 'none') {
|
|
76
|
+
maxHeightString = computedString;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (!maxHeightString) {
|
|
80
|
+
return defaultPaneMaxHeight;
|
|
81
|
+
}
|
|
82
|
+
const maxHeightStringAsNumber = Number(maxHeightString);
|
|
83
|
+
|
|
84
|
+
// if it's not suffixed
|
|
85
|
+
if (!Number.isNaN(maxHeightStringAsNumber)) {
|
|
86
|
+
return maxHeightStringAsNumber;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// if it is suffixed
|
|
90
|
+
if (maxHeightString.slice(-2) === 'px' && !Number.isNaN(Number(maxHeightString.slice(0, -2)))) {
|
|
91
|
+
return Number(maxHeightString.slice(0, -2));
|
|
92
|
+
}
|
|
93
|
+
return defaultPaneMaxHeight;
|
|
94
|
+
// `className` impacts computed style
|
|
95
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
96
|
+
}, [style, className]);
|
|
58
97
|
const paneBottomPadding = 4;
|
|
59
98
|
const maskContainerId = useId();
|
|
99
|
+
const maskContainer = document.getElementById(maskContainerId);
|
|
60
100
|
const [transform, setTransform] = useState('');
|
|
61
101
|
const target = (_flyoutRef$current$pa = (_flyoutRef$current = flyoutRef.current) === null || _flyoutRef$current === void 0 ? void 0 : _flyoutRef$current.parentNode) !== null && _flyoutRef$current$pa !== void 0 ? _flyoutRef$current$pa : undefined;
|
|
62
102
|
const {
|
|
@@ -70,6 +110,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
70
110
|
isVirtualizationDisabled
|
|
71
111
|
} = useMenuContext();
|
|
72
112
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
113
|
+
const [isVirtualizationReady, setIsVirtualizationReady] = useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test');
|
|
73
114
|
const animatedLeft = useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
74
115
|
const dataTestId = getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE);
|
|
75
116
|
const {
|
|
@@ -94,7 +135,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
94
135
|
const {
|
|
95
136
|
isFocusVisible
|
|
96
137
|
} = useFocusVisible();
|
|
97
|
-
const maskIsReady = useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
138
|
+
const maskIsReady = useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
|
|
98
139
|
useDidUpdate(() => {
|
|
99
140
|
if (maskIsReady && isFocusVisible) {
|
|
100
141
|
items[0].element.current.focus();
|
|
@@ -106,19 +147,13 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
106
147
|
if (!rect) {
|
|
107
148
|
return 'bottom';
|
|
108
149
|
}
|
|
109
|
-
let maxHeight = paneMaxHeight;
|
|
110
|
-
if (flyoutRef.current) {
|
|
111
|
-
const computedString = window.getComputedStyle(flyoutRef.current).maxHeight.slice(0, -2);
|
|
112
|
-
if (computedString !== '' && !Number.isNaN(+computedString)) {
|
|
113
|
-
maxHeight = +computedString;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
150
|
const distanceToBottom = window.innerHeight - rect.bottom;
|
|
117
151
|
const distanceToTop = rect.top;
|
|
118
|
-
|
|
152
|
+
const paddedMaxHeight = paneMaxHeight + paneBottomPadding * 2;
|
|
153
|
+
if (distanceToBottom > paddedMaxHeight) {
|
|
119
154
|
return 'bottom';
|
|
120
155
|
}
|
|
121
|
-
if (distanceToTop >
|
|
156
|
+
if (distanceToTop > paddedMaxHeight) {
|
|
122
157
|
return 'top';
|
|
123
158
|
}
|
|
124
159
|
return 'bottom';
|
|
@@ -129,11 +164,11 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
129
164
|
|
|
130
165
|
// We use the top-level Radix container as a mask. Radix does not expose this container to consumers, except through CSS.
|
|
131
166
|
// These hooks dynamically update the style of that container using CSS variables.
|
|
132
|
-
useCSSVariable('--mask-z-index', String(zIndex),
|
|
133
|
-
useCSSVariable('--mask-width', Number.isNaN(Number(maskWidth)) ? "".concat(maskWidth) : "".concat(maskWidth, "px"));
|
|
134
|
-
useCSSVariable('--mask-height', Number.isNaN(Number(maskHeight)) ? "".concat(maskHeight) : "".concat(maskHeight, "px"));
|
|
135
|
-
useCSSVariable('--flyout-max-height', "".concat(paneMaxHeight, "px"));
|
|
136
|
-
useCSSVariable('--flyout-bottom-padding', "".concat(paneBottomPadding, "px"));
|
|
167
|
+
useCSSVariable('--mask-z-index', String(zIndex), maskContainer);
|
|
168
|
+
useCSSVariable('--mask-width', Number.isNaN(Number(maskWidth)) ? "".concat(maskWidth) : "".concat(maskWidth, "px"), maskContainer);
|
|
169
|
+
useCSSVariable('--mask-height', Number.isNaN(Number(maskHeight)) ? "".concat(maskHeight) : "".concat(maskHeight, "px"), maskContainer);
|
|
170
|
+
useCSSVariable('--flyout-max-height', "".concat(paneMaxHeight, "px"), maskContainer);
|
|
171
|
+
useCSSVariable('--flyout-bottom-padding', "".concat(paneBottomPadding, "px"), maskContainer);
|
|
137
172
|
useOverlay({
|
|
138
173
|
isVisible: open,
|
|
139
174
|
ignoreIds: [maskContainerId],
|
|
@@ -157,7 +192,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
157
192
|
zIndex,
|
|
158
193
|
focusVirtualBoundary,
|
|
159
194
|
isVirtualized,
|
|
160
|
-
maskIsReady
|
|
195
|
+
maskIsReady,
|
|
196
|
+
setIsVirtualizationReady
|
|
161
197
|
}
|
|
162
198
|
}, /*#__PURE__*/React__default.createElement(Portal, {
|
|
163
199
|
container: portalTarget || undefined
|
|
@@ -170,6 +206,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
170
206
|
opacity: maskIsReady ? 1 : 0
|
|
171
207
|
}
|
|
172
208
|
}, /*#__PURE__*/React__default.createElement(Content, _extends({}, rest, {
|
|
209
|
+
style: style,
|
|
173
210
|
onCloseAutoFocus: () => {
|
|
174
211
|
var _triggerRef$current2;
|
|
175
212
|
return triggerRef === null || triggerRef === void 0 || (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.focus();
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
1
2
|
import React__default, { useRef } from 'react';
|
|
2
3
|
import { Virtuoso } from 'react-virtuoso';
|
|
3
4
|
import { useMenuContext, usePaneContext, ItemContextProvider } from './MenuContext.js';
|
|
4
5
|
import styles from './Menu2.js';
|
|
5
6
|
import useSelectContext from '../Select/SelectContext.js';
|
|
7
|
+
import { VIRTUOSO_PROPS } from './constants.js';
|
|
6
8
|
|
|
7
9
|
const PaneChildren = _ref => {
|
|
8
10
|
var _useSelectContext, _containerRef$current, _containerRef$current2;
|
|
@@ -18,6 +20,7 @@ const PaneChildren = _ref => {
|
|
|
18
20
|
} = (_useSelectContext = useSelectContext(true)) !== null && _useSelectContext !== void 0 ? _useSelectContext : {};
|
|
19
21
|
const {
|
|
20
22
|
closeSubmenu: containedWithinSubpane,
|
|
23
|
+
setIsVirtualizationReady,
|
|
21
24
|
isVirtualized
|
|
22
25
|
} = usePaneContext();
|
|
23
26
|
const containerRef = useRef(null);
|
|
@@ -27,9 +30,9 @@ const PaneChildren = _ref => {
|
|
|
27
30
|
style: {
|
|
28
31
|
maxHeight: "calc(var(--flyout-max-height) -\n ".concat((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetTop, "px -\n var(--flyout-bottom-padding))")
|
|
29
32
|
}
|
|
30
|
-
}, isVirtualized ? /*#__PURE__*/React__default.createElement(Virtuoso, {
|
|
33
|
+
}, isVirtualized ? /*#__PURE__*/React__default.createElement(Virtuoso, _extends({
|
|
31
34
|
ref: virtuoso,
|
|
32
|
-
|
|
35
|
+
startReached: () => setIsVirtualizationReady === null || setIsVirtualizationReady === void 0 ? void 0 : setIsVirtualizationReady(true),
|
|
33
36
|
customScrollParent: (_containerRef$current2 = containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : undefined,
|
|
34
37
|
data: Array.isArray(children) ? children : [children],
|
|
35
38
|
itemContent: (index, child) => ! /*#__PURE__*/React__default.isValidElement(child) ? null : /*#__PURE__*/React__default.createElement(ItemContextProvider, {
|
|
@@ -37,7 +40,7 @@ const PaneChildren = _ref => {
|
|
|
37
40
|
virtualIndex: index + (multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0)
|
|
38
41
|
}
|
|
39
42
|
}, child)
|
|
40
|
-
}) : /*#__PURE__*/React__default.createElement(ItemContextProvider, {
|
|
43
|
+
}, VIRTUOSO_PROPS)) : /*#__PURE__*/React__default.createElement(ItemContextProvider, {
|
|
41
44
|
value: {
|
|
42
45
|
virtualIndex: undefined
|
|
43
46
|
}
|
|
@@ -26,6 +26,7 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
|
26
26
|
import ArrowLeftIcon from '../../icons/components/ArrowLeftIcon.js';
|
|
27
27
|
|
|
28
28
|
const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
29
|
+
var _submenuDepths$intern;
|
|
29
30
|
let {
|
|
30
31
|
children,
|
|
31
32
|
label,
|
|
@@ -65,19 +66,21 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
65
66
|
closeSubmenu: closeSubmenuContainingTrigger,
|
|
66
67
|
zIndex: paneContainingTriggerZIndex,
|
|
67
68
|
focusVirtualBoundary: focusVirtualBoundaryWithinPaneContainingTrigger,
|
|
68
|
-
isVirtualized: paneContainingTriggerIsVirtualized
|
|
69
|
+
isVirtualized: paneContainingTriggerIsVirtualized,
|
|
70
|
+
internalId: parentId
|
|
69
71
|
} = usePaneContext(triggerRef);
|
|
70
72
|
const triggerIndex = useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
|
|
71
73
|
const {
|
|
72
74
|
openPaneDepth: totalOpenPaneDepth,
|
|
73
75
|
registerSubmenu,
|
|
74
|
-
isVirtualizationDisabled
|
|
76
|
+
isVirtualizationDisabled,
|
|
77
|
+
submenuDepths
|
|
75
78
|
} = useMenuContext();
|
|
76
79
|
const {
|
|
77
80
|
isFocusVisible
|
|
78
81
|
} = useFocusVisible();
|
|
79
82
|
const zIndex = useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
80
|
-
const thisPanesDepth =
|
|
83
|
+
const thisPanesDepth = (_submenuDepths$intern = submenuDepths[internalId]) !== null && _submenuDepths$intern !== void 0 ? _submenuDepths$intern : Number.MAX_SAFE_INTEGER;
|
|
81
84
|
const [isPaneInDOM, setIsPaneInDOM] = useState(false);
|
|
82
85
|
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = useState(false);
|
|
83
86
|
const [isTransitioningFromRight, setIsTransitioningFromRight] = useState(false);
|
|
@@ -87,7 +90,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
87
90
|
const closeThisSubmenu = e => {
|
|
88
91
|
// prevent closing the entire menu, and Radix keyboard navigation
|
|
89
92
|
e.preventDefault();
|
|
90
|
-
registerSubmenu(internalId, false);
|
|
93
|
+
registerSubmenu(internalId, false, parentId);
|
|
91
94
|
};
|
|
92
95
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
93
96
|
const {
|
|
@@ -120,14 +123,14 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
120
123
|
setIsFrameAfterPaneAddedToDOM(true);
|
|
121
124
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
122
125
|
}
|
|
123
|
-
registerSubmenu(internalId, isPaneInDOM);
|
|
126
|
+
registerSubmenu(internalId, isPaneInDOM, parentId);
|
|
124
127
|
onIsOpenChange === null || onIsOpenChange === void 0 || onIsOpenChange(isPaneInDOM);
|
|
125
128
|
}, [isPaneInDOM]);
|
|
126
129
|
|
|
127
130
|
// Omitted dependencies because this should only run on unmount
|
|
128
131
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
129
132
|
useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
130
|
-
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
133
|
+
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children, isVirtualized, true);
|
|
131
134
|
const handlePaneTransitionEnd = () => {
|
|
132
135
|
var _flyoutRef$current;
|
|
133
136
|
if (animatedLeft) {
|
|
@@ -202,7 +205,8 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
202
205
|
stickyBoxRef,
|
|
203
206
|
zIndex,
|
|
204
207
|
focusVirtualBoundary: focusVirtualBoundaryInPane,
|
|
205
|
-
isVirtualized
|
|
208
|
+
isVirtualized,
|
|
209
|
+
internalId
|
|
206
210
|
}
|
|
207
211
|
}, /*#__PURE__*/React__default.createElement(SubContent, _extends({}, rest, {
|
|
208
212
|
loop: !isSearchable,
|
|
@@ -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 = "._l7A4s input{padding-left:76px!important}._0eDO0 input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._0eDO0 input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._0eDO0 input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Ufz5E{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._Ufz5E,._Ufz5E._0eDO0:hover{background-color:transparent!important}._Ufz5E:hover{background-color:rgba(50,54,58,.08)!important}._Ufz5E:active{background-color:rgba(50,54,58,.11)!important}._Ufz5E svg{top:2px!important}._RCulj{position:relative}._tF4cP{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_l7A4s","disabled":"_0eDO0","dropdown":"_Ufz5E","container":"_RCulj","countryCode":"_tF4cP"};
|
|
5
|
+
var stylesheet="._l7A4s input{padding-left:76px!important}._0eDO0 input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._0eDO0 input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._0eDO0 input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Ufz5E{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._Ufz5E,._Ufz5E._0eDO0:hover{background-color:transparent!important}._Ufz5E:hover{background-color:rgba(50,54,58,.08)!important}._Ufz5E:active{background-color:rgba(50,54,58,.11)!important}._Ufz5E svg{top:2px!important}._RCulj{position:relative}._tF4cP{position:absolute;top:18px;left:12px;line-height:0;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 = "._ax2r-{box-shadow:inset 0 0 0 1px #b00!important}._EOVE7{margin-right:7px}._HXHPS{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_ax2r-","checkbox":"_EOVE7","selectedItem":"_HXHPS"};
|
|
5
|
+
var stylesheet="._ax2r-{box-shadow:inset 0 0 0 1px #b00!important}._EOVE7{margin-right:7px}._HXHPS{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 };
|
|
@@ -16,6 +16,7 @@ const SplitButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
16
16
|
let {
|
|
17
17
|
kind = 'primary',
|
|
18
18
|
label,
|
|
19
|
+
onClick,
|
|
19
20
|
children,
|
|
20
21
|
isButtonDisabled = false,
|
|
21
22
|
isDropdownDisabled = false,
|
|
@@ -24,8 +25,7 @@ const SplitButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
24
25
|
buttonAriaLabel,
|
|
25
26
|
buttonAriaLabelledBy,
|
|
26
27
|
dropdownAriaLabel,
|
|
27
|
-
dropdownAriaLabelledBy
|
|
28
|
-
onClick
|
|
28
|
+
dropdownAriaLabelledBy
|
|
29
29
|
} = _ref;
|
|
30
30
|
const mainButtonRef = useRef(null);
|
|
31
31
|
const dropdownButtonRef = useRef(null);
|
|
@@ -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 = "._S4ulW{display:flex}._Nne-Z{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._Nne-Z._4-wHl{background-color:#fff}._Nne-Z._4-wHl._Ep3Cb:not(._Nne-Z._4-wHl._92D7s),._Nne-Z._4-wHl._FQLGK.focus-visible:not(._iX0x8),._Nne-Z._4-wHl._FQLGK:focus-visible:not(._iX0x8),._Nne-Z._9SrAf{background-color:#0b6ed0}._Nne-Z._9SrAf._92D7s._Ep3Cb,._Nne-Z._9SrAf._iX0x8._92D7s,._Nne-Z._9SrAf._iX0x8._FQLGK{opacity:.4}._os4c7{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._os4c7:focus{z-index:1}._oLFg3{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}._oLFg3 svg{margin-left:1px}._oLFg3._4-wHl{background-color:#0b6ed0;border-color:transparent}._oLFg3._4-wHl svg{fill:#fff!important}._oLFg3._4-wHl:not(._8g4QV):hover{background-color:#085caf!important}._oLFg3._4-wHl:not(._8g4QV):active{background-color:#0854a1!important}._oLFg3._4-wHl._8g4QV{opacity:.4}._oLFg3._4-wHl._8g4QV svg{background-color:transparent}._oLFg3._9SrAf{border-color:#0b6ed0;background-color:#fff}._oLFg3._9SrAf svg{fill:#0b6ed0!important}._oLFg3._9SrAf:not(._8g4QV):hover{background-color:#eef5fc!important}._oLFg3._9SrAf:not(._8g4QV):active{background-color:#e1edf9!important}._oLFg3._9SrAf._8g4QV{opacity:.4}._oLFg3._9SrAf._8g4QV svg{background-color:transparent}._fEW22{width:260px}";
|
|
4
|
+
var styles = {"container":"_S4ulW","divider":"_Nne-Z","primary":"_4-wHl","mainButtonFocus":"_FQLGK","mainButtonDisabled":"_iX0x8","dropdownButtonFocus":"_Ep3Cb","dropdownButtonDisabled":"_92D7s","secondary":"_9SrAf","mainButton":"_os4c7","dropdownButton":"_oLFg3","disabled":"_8g4QV","dropdownOption":"_fEW22"};
|
|
5
|
+
var stylesheet="._S4ulW{display:flex}._Nne-Z{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._Nne-Z._4-wHl{background-color:#fff}._Nne-Z._4-wHl._Ep3Cb:not(._Nne-Z._4-wHl._92D7s),._Nne-Z._4-wHl._FQLGK.focus-visible:not(._iX0x8),._Nne-Z._4-wHl._FQLGK:focus-visible:not(._iX0x8),._Nne-Z._9SrAf{background-color:#0b6ed0}._Nne-Z._9SrAf._92D7s._Ep3Cb,._Nne-Z._9SrAf._iX0x8._92D7s,._Nne-Z._9SrAf._iX0x8._FQLGK{opacity:.4}._os4c7{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._os4c7:focus{z-index:1}._oLFg3{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}._oLFg3 svg{margin-left:1px}._oLFg3._4-wHl{background-color:#0b6ed0;border-color:transparent}._oLFg3._4-wHl svg{fill:#fff!important}._oLFg3._4-wHl:not(._8g4QV):hover{background-color:#085caf!important}._oLFg3._4-wHl:not(._8g4QV):active{background-color:#0854a1!important}._oLFg3._4-wHl._8g4QV{opacity:.4}._oLFg3._4-wHl._8g4QV svg{background-color:transparent}._oLFg3._9SrAf{border-color:#0b6ed0;background-color:#fff}._oLFg3._9SrAf svg{fill:#0b6ed0!important}._oLFg3._9SrAf:not(._8g4QV):hover{background-color:#eef5fc!important}._oLFg3._9SrAf:not(._8g4QV):active{background-color:#e1edf9!important}._oLFg3._9SrAf._8g4QV{opacity:.4}._oLFg3._9SrAf._8g4QV svg{background-color:transparent}._fEW22{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 };
|
|
@@ -3,18 +3,18 @@ import React__default, { forwardRef } from 'react';
|
|
|
3
3
|
// Explicitly listed props to prevent arbitrary prop spreading
|
|
4
4
|
const StackItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5
5
|
let {
|
|
6
|
+
children,
|
|
7
|
+
fillSpace,
|
|
6
8
|
width,
|
|
7
9
|
minWidth,
|
|
8
10
|
maxWidth,
|
|
9
11
|
height,
|
|
10
12
|
minHeight,
|
|
11
13
|
maxHeight,
|
|
12
|
-
fillSpace,
|
|
13
14
|
'aria-label': ariaLabel,
|
|
14
15
|
'aria-labelledby': ariaLabelledBy,
|
|
15
16
|
'aria-describedby': ariaDescribedBy,
|
|
16
|
-
'data-testid': dataTestId
|
|
17
|
-
children
|
|
17
|
+
'data-testid': dataTestId
|
|
18
18
|
} = _ref;
|
|
19
19
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20
20
|
ref: ref,
|
|
@@ -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 = "._xPmTx{display:inline-block;position:relative}._xPmTx ._BFu-s{width:120px}._xPmTx ._BFu-s ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._xPmTx ._BFu-s ._Bnn0J._Mw7Kf{fill:#9d9fa1;opacity:.4}._xPmTx ._kJ05U>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xPmTx ._Bnn0J{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._xPmTx ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._zKatd{width:120px}._zKatd ._ZSnL2._Qccg-{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_xPmTx","input":"_BFu-s","icon":"_Bnn0J","open":"_QVc8Y","disabled":"_Mw7Kf","ignoreFocusStyle":"_kJ05U","timePickerFlyout":"_zKatd","option":"_ZSnL2","exactMatch":"_Qccg-"};
|
|
5
|
+
var stylesheet="._xPmTx{display:inline-block;position:relative}._xPmTx ._BFu-s{width:120px}._xPmTx ._BFu-s ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._xPmTx ._BFu-s ._Bnn0J._Mw7Kf{fill:#9d9fa1;opacity:.4}._xPmTx ._kJ05U>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xPmTx ._Bnn0J{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._xPmTx ._Bnn0J._QVc8Y{transform:rotate(-180deg)}._zKatd{width:120px}._zKatd ._ZSnL2._Qccg-{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 };
|
|
@@ -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 = "._SZ9ql{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._1jns1{background-color:rgba(50,54,58,.08)}._MPKrN{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._j1dQn{color:rgba(81,85,89,.4);cursor:not-allowed}._7D5mJ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._eIMz1{color:#085caf;border-color:#085caf}._-F1NW,._eIMz1{background:rgba(11,110,208,.11)}._-F1NW{color:#0854a1;border-color:#0854a1}._zO0Jo{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb{position:relative;display:inline-grid}._yRbdb svg{fill:currentColor}._yRbdb ._PueOx{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._yRbdb ._PueOx+._qoRqC{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;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}._yRbdb ._PueOx+._qoRqC._92JUB{padding:5px;max-width:36px;min-width:36px}._yRbdb ._PueOx+._qoRqC._RlnLl{padding:0 16px}._yRbdb ._PueOx+._qoRqC._JYl5h{padding:0 16px 0 12px}._yRbdb ._PueOx:hover+._qoRqC{background-color:rgba(50,54,58,.08)}._yRbdb ._PueOx:disabled+._qoRqC{color:rgba(81,85,89,.4);cursor:not-allowed}._yRbdb ._PueOx:active+._qoRqC,._yRbdb ._PueOx:focus:active+._qoRqC{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._yRbdb ._PueOx:checked+._qoRqC{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._yRbdb ._PueOx:checked:hover+._qoRqC{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._yRbdb ._PueOx:checked:disabled+._qoRqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb ._PueOx:checked:active+._qoRqC,._yRbdb ._PueOx:checked:focus:active+._qoRqC{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._7tdBv{display:inline-flex;position:relative}._7tdBv:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._7tdBv>*{flex-shrink:0;flex-grow:0}._Ns1pj{border:none;margin:0;padding:0}._Ns1pj legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._yRbdb ._PueOx.focus-visible,._yRbdb ._PueOx:focus-visible{outline:none}._yRbdb ._PueOx.focus-visible+._qoRqC,._yRbdb ._PueOx:focus-visible+._qoRqC{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_SZ9ql","hovered":"_1jns1","pressed":"_MPKrN","disabled":"_j1dQn","selectedDefault":"_7D5mJ","selectedHovered":"_eIMz1","selectedPressed":"_-F1NW","selectedDisabled":"_zO0Jo","toggleContainer":"_yRbdb","toggleInput":"_PueOx","toggleButton":"_qoRqC","iconOnly":"_92JUB","text":"_RlnLl","iconText":"_JYl5h","toggleButtonGroup":"_7tdBv","toggleButtonGroupFieldset":"_Ns1pj"};
|
|
5
|
+
var stylesheet="._SZ9ql{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._1jns1{background-color:rgba(50,54,58,.08)}._MPKrN{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._j1dQn{color:rgba(81,85,89,.4);cursor:not-allowed}._7D5mJ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._eIMz1{color:#085caf;border-color:#085caf}._-F1NW,._eIMz1{background:rgba(11,110,208,.11)}._-F1NW{color:#0854a1;border-color:#0854a1}._zO0Jo{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb{position:relative;display:inline-grid}._yRbdb svg{fill:currentColor}._yRbdb ._PueOx{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._yRbdb ._PueOx+._qoRqC{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;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}._yRbdb ._PueOx+._qoRqC._92JUB{padding:5px;max-width:36px;min-width:36px}._yRbdb ._PueOx+._qoRqC._RlnLl{padding:0 16px}._yRbdb ._PueOx+._qoRqC._JYl5h{padding:0 16px 0 12px}._yRbdb ._PueOx:hover+._qoRqC{background-color:rgba(50,54,58,.08)}._yRbdb ._PueOx:disabled+._qoRqC{color:rgba(81,85,89,.4);cursor:not-allowed}._yRbdb ._PueOx:active+._qoRqC,._yRbdb ._PueOx:focus:active+._qoRqC{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._yRbdb ._PueOx:checked+._qoRqC{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._yRbdb ._PueOx:checked:hover+._qoRqC{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._yRbdb ._PueOx:checked:disabled+._qoRqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._yRbdb ._PueOx:checked:active+._qoRqC,._yRbdb ._PueOx:checked:focus:active+._qoRqC{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._7tdBv{display:inline-flex;position:relative}._7tdBv:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._7tdBv>*{flex-shrink:0;flex-grow:0}._Ns1pj{border:none;margin:0;padding:0}._Ns1pj legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._yRbdb ._PueOx.focus-visible,._yRbdb ._PueOx:focus-visible{outline:none}._yRbdb ._PueOx.focus-visible+._qoRqC,._yRbdb ._PueOx:focus-visible+._qoRqC{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 };
|