@qualtrics/ui-react 2.31.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/__shared/cjs/{index-c13fc74c.js → index-1c5b62c1.js} +39 -3
- package/dist/__shared/cjs/{index-434a3b72.js → index-95ae1cca.js} +294 -203
- 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/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +2 -2
- 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/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/BaseMenu.js +13 -6
- 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 -4
- 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/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/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/index.d.ts +18 -0
- package/dist/icons/index.es.js +9 -0
- package/dist/icons/index.js +10 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/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/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/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +167 -134
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Text/Text.js +2 -2
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
const useCSSVariable = function (name, value) {
|
|
4
|
-
let
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
|
|
7
|
-
}, [value, name, ...
|
|
3
|
+
const useCSSVariable = function (name, value, scope) {
|
|
4
|
+
let additionalDependencies = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
5
|
+
return useEffect(() => {
|
|
6
|
+
scope === null || scope === void 0 || scope.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
7
|
+
}, [value, name, scope, ...additionalDependencies]);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { useCSSVariable as default };
|
|
@@ -4,7 +4,7 @@ import '../../../hooks/index.js';
|
|
|
4
4
|
import { useMenuContext } from '../MenuContext.js';
|
|
5
5
|
import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
|
|
6
6
|
|
|
7
|
-
const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
7
|
+
const useMaskDimensions = (target, animatedLeft, paneDepth, children, isVirtualized, isVirtualizationReady) => {
|
|
8
8
|
var _process$env;
|
|
9
9
|
const {
|
|
10
10
|
setMaskHeight,
|
|
@@ -13,21 +13,19 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
13
13
|
openPaneDepth,
|
|
14
14
|
open
|
|
15
15
|
} = useMenuContext();
|
|
16
|
-
const
|
|
16
|
+
const auto = 'auto';
|
|
17
|
+
const updateMaskDimensions = function () {
|
|
18
|
+
let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
17
19
|
if (target) {
|
|
18
|
-
setMaskHeight(target.clientHeight);
|
|
19
|
-
setMaskWidth(target.clientWidth);
|
|
20
|
+
setMaskHeight(reset ? auto : target.clientHeight);
|
|
21
|
+
setMaskWidth(reset ? auto : target.clientWidth);
|
|
20
22
|
}
|
|
21
23
|
};
|
|
22
|
-
const auto = 'auto';
|
|
23
24
|
|
|
24
|
-
// resets dimensions on menu close
|
|
25
|
+
// resets dimensions on menu close so that the top-level pane reopens immediately, rather than animating
|
|
25
26
|
useEffect(() => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
setMaskWidth(auto);
|
|
29
|
-
}
|
|
30
|
-
}, [open, setMaskHeight, setMaskWidth]);
|
|
27
|
+
updateMaskDimensions(!open);
|
|
28
|
+
}, [open]);
|
|
31
29
|
|
|
32
30
|
// handles async children adjustments by consumer
|
|
33
31
|
useDidUpdate(() => {
|
|
@@ -53,7 +51,7 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
53
51
|
});
|
|
54
52
|
|
|
55
53
|
// determines if the mask is ready
|
|
56
|
-
return maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test';
|
|
54
|
+
return (maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test') && (isVirtualized ? isVirtualizationReady : true);
|
|
57
55
|
};
|
|
58
56
|
|
|
59
57
|
export { useMaskDimensions as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, {
|
|
1
|
+
import React__default, { useMemo, useRef, useCallback, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import '../../../hooks/index.js';
|
|
4
4
|
import '../../../utils/index.js';
|
|
@@ -35,7 +35,6 @@ function usePaneSearch(_ref) {
|
|
|
35
35
|
} = _ref;
|
|
36
36
|
const withinSelect = useSelectContext(true) !== null;
|
|
37
37
|
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
38
|
-
const [zeroSearchResults, setZeroSearchResults] = useState();
|
|
39
38
|
const {
|
|
40
39
|
translate
|
|
41
40
|
} = useTranslation();
|
|
@@ -53,7 +52,6 @@ function usePaneSearch(_ref) {
|
|
|
53
52
|
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
|
|
54
53
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
55
54
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
56
|
-
useEffect(() => setZeroSearchResults((items === null || items === void 0 ? void 0 : items.filter(item => item.element.current).length) === 0), [items, internalSearchValue]);
|
|
57
55
|
const searchRef = useRef(null);
|
|
58
56
|
const searchInput = (_searchRef$current$qu = (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : _searchRef$current.querySelector('input')) !== null && _searchRef$current$qu !== void 0 ? _searchRef$current$qu : null;
|
|
59
57
|
const getFirstVisibleItem = () => {
|
|
@@ -155,7 +153,7 @@ function usePaneSearch(_ref) {
|
|
|
155
153
|
// Omitted dependencies because we only want this to run on unmount
|
|
156
154
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
157
155
|
[]);
|
|
158
|
-
const noSearchResultsNode =
|
|
156
|
+
const noSearchResultsNode = filteredChildren.length === 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
159
157
|
className: classNames(styles.menuItem, styles.noItems),
|
|
160
158
|
"aria-live": "assertive"
|
|
161
159
|
}, noMatchesText);
|
package/dist/next/Menu/Menu.js
CHANGED
|
@@ -26,15 +26,19 @@ const Menu = _ref => {
|
|
|
26
26
|
const virtuoso = useRef(null);
|
|
27
27
|
const [maskHeight, setMaskHeight] = useState(null);
|
|
28
28
|
const [maskWidth, setMaskWidth] = useState(null);
|
|
29
|
-
const [
|
|
29
|
+
const [submenuDepths, setSubmenuDepths] = useState({});
|
|
30
30
|
const triggerRef = useRef(null);
|
|
31
|
-
const registerSubmenu = (submenuId, submenuIsOpen) => {
|
|
32
|
-
|
|
33
|
-
const clone =
|
|
31
|
+
const registerSubmenu = (submenuId, submenuIsOpen, parentSubmenuId) => {
|
|
32
|
+
setSubmenuDepths(subs => {
|
|
33
|
+
const clone = {
|
|
34
|
+
...subs
|
|
35
|
+
};
|
|
34
36
|
if (submenuIsOpen) {
|
|
35
|
-
clone
|
|
37
|
+
const parentDepth = clone[parentSubmenuId];
|
|
38
|
+
const submenuDepth = parentDepth ? parentDepth + 1 : 2;
|
|
39
|
+
clone[submenuId] = submenuDepth;
|
|
36
40
|
} else {
|
|
37
|
-
clone
|
|
41
|
+
delete clone[submenuId];
|
|
38
42
|
}
|
|
39
43
|
return clone;
|
|
40
44
|
});
|
|
@@ -49,7 +53,15 @@ const Menu = _ref => {
|
|
|
49
53
|
e.preventDefault();
|
|
50
54
|
}
|
|
51
55
|
});
|
|
52
|
-
const openPaneDepth = useMemo(() =>
|
|
56
|
+
const openPaneDepth = useMemo(() => {
|
|
57
|
+
if (Object.values(submenuDepths).length) {
|
|
58
|
+
return Math.max(...Object.values(submenuDepths));
|
|
59
|
+
}
|
|
60
|
+
if (open) {
|
|
61
|
+
return 1;
|
|
62
|
+
}
|
|
63
|
+
return 0;
|
|
64
|
+
}, [submenuDepths, open]);
|
|
53
65
|
const [searchBarConfigs, setSearchBarConfigs] = useState([]);
|
|
54
66
|
return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
55
67
|
value: {
|
|
@@ -66,7 +78,8 @@ const Menu = _ref => {
|
|
|
66
78
|
maskWidth,
|
|
67
79
|
setMaskWidth,
|
|
68
80
|
virtuoso,
|
|
69
|
-
isVirtualizationDisabled
|
|
81
|
+
isVirtualizationDisabled,
|
|
82
|
+
submenuDepths
|
|
70
83
|
}
|
|
71
84
|
}, /*#__PURE__*/React__default.createElement(Root, {
|
|
72
85
|
open: open,
|
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 = "._LlswR{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._LlswR>._AvNSN{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}._LlswR>._AvNSN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._LlswR>._AvNSN.focus-visible,._LlswR>._AvNSN:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._LlswR>._AvNSN+._SJSam{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._LlswR>._AvNSN[data-state=open]+._SJSam{transform:rotate(-180deg) translateY(50%)}._LlswR>._AvNSN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._LlswR>._AvNSN[aria-disabled=true]+._SJSam{fill:#515559;opacity:.4}._HEhyL>[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}._HEhyL>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._86MOw{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)}._86MOw ._ittJ4{height:100%;overflow-y:scroll}._86MOw._P-55v{margin-left:30px;opacity:0}._86MOw._nl0QJ{margin-left:-30px}._zd75j{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%}._zd75j._RMJIu{cursor:unset}._zd75j ._PFGit{fill:#32363a;margin-right:4px}._zd75j:focus,._zd75j:hover:not(._zd75j._RMJIu){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zd75j[aria-disabled=true]{cursor:not-allowed;opacity:.65}._zd75j._mbr2V{padding-right:32px}._zd75j._mbr2V ._SJSam{position:absolute;height:100%;right:3px;fill:#515559}._zd75j._0N8-d{pointer-events:none}._UW3EA{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._UW3EA._ljFwC{padding-top:52px}._3J1dN{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._v-jxO{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._v-jxO._nl0QJ{opacity:0}._v-jxO._nl0QJ>._JfT3o{margin-left:-30px}._v-jxO._P-55v{opacity:0}._v-jxO._P-55v>._JfT3o{margin-left:30px}._v-jxO>._JfT3o{transition:margin-left .35s;width:100%}._v-jxO._0N8-d{pointer-events:none}body.keyboard-user ._zd75j:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_LlswR","button":"_AvNSN","rightIcon":"_SJSam","maskContainer":"_HEhyL","flyout":"_86MOw","scrollContainer":"_ittJ4","animatedRight":"_P-55v","animatedLeft":"_nl0QJ","menuItem":"_zd75j","noItems":"_RMJIu","backIcon":"_PFGit","subMenu":"_mbr2V","unresponsive":"_0N8-d","stickyBox":"_UW3EA","isSearchable":"_ljFwC","searchBoxesContainer":"_3J1dN","searchBox":"_v-jxO","searchInput":"_JfT3o"};
|
|
5
|
+
var stylesheet="._LlswR{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._LlswR>._AvNSN{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}._LlswR>._AvNSN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._LlswR>._AvNSN.focus-visible,._LlswR>._AvNSN:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._LlswR>._AvNSN+._SJSam{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._LlswR>._AvNSN[data-state=open]+._SJSam{transform:rotate(-180deg) translateY(50%)}._LlswR>._AvNSN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._LlswR>._AvNSN[aria-disabled=true]+._SJSam{fill:#515559;opacity:.4}._HEhyL>[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}._HEhyL>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._86MOw{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)}._86MOw ._ittJ4{height:100%;overflow-y:scroll}._86MOw._P-55v{margin-left:30px;opacity:0}._86MOw._nl0QJ{margin-left:-30px}._zd75j{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%}._zd75j._RMJIu{cursor:unset}._zd75j ._PFGit{fill:#32363a;margin-right:4px}._zd75j:focus,._zd75j:hover:not(._zd75j._RMJIu){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zd75j[aria-disabled=true]{cursor:not-allowed;opacity:.65}._zd75j._mbr2V{padding-right:32px}._zd75j._mbr2V ._SJSam{position:absolute;height:100%;right:3px;fill:#515559}._zd75j._0N8-d{pointer-events:none}._UW3EA{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._UW3EA._ljFwC{padding-top:52px}._3J1dN{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._v-jxO{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._v-jxO._nl0QJ{opacity:0}._v-jxO._nl0QJ>._JfT3o{margin-left:-30px}._v-jxO._P-55v{opacity:0}._v-jxO._P-55v>._JfT3o{margin-left:30px}._v-jxO>._JfT3o{transition:margin-left .35s;width:100%}._v-jxO._0N8-d{pointer-events:none}body.keyboard-user ._zd75j: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 = "._gc-c4 input{padding-left:76px!important}._h7TrK input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._h7TrK input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._h7TrK input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5xhxR{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._5xhxR,._5xhxR._h7TrK:hover{background-color:transparent!important}._5xhxR:hover{background-color:rgba(50,54,58,.08)!important}._5xhxR:active{background-color:rgba(50,54,58,.11)!important}._5xhxR svg{top:2px!important}._KQyDw{position:relative}._DrPuX{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_gc-c4","disabled":"_h7TrK","dropdown":"_5xhxR","container":"_KQyDw","countryCode":"_DrPuX"};
|
|
5
|
+
var stylesheet="._gc-c4 input{padding-left:76px!important}._h7TrK input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._h7TrK input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._h7TrK input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5xhxR{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._5xhxR,._5xhxR._h7TrK:hover{background-color:transparent!important}._5xhxR:hover{background-color:rgba(50,54,58,.08)!important}._5xhxR:active{background-color:rgba(50,54,58,.11)!important}._5xhxR svg{top:2px!important}._KQyDw{position:relative}._DrPuX{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 = "._JEVrK{box-shadow:inset 0 0 0 1px #b00!important}._gWGm3{margin-right:7px}._3EKx-{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_JEVrK","checkbox":"_gWGm3","selectedItem":"_3EKx-"};
|
|
5
|
+
var stylesheet="._JEVrK{box-shadow:inset 0 0 0 1px #b00!important}._gWGm3{margin-right:7px}._3EKx-{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 };
|
|
@@ -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 = "._SyiJe{display:flex}._uODpB{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._uODpB._4d7Tj{background-color:#fff}._uODpB._4d7Tj._5YdqW.focus-visible:not(._n-eaM),._uODpB._4d7Tj._5YdqW:focus-visible:not(._n-eaM),._uODpB._4d7Tj._9ZdWk:not(._uODpB._4d7Tj._M1xC8),._uODpB._MSvcj{background-color:#0b6ed0}._uODpB._MSvcj._M1xC8._9ZdWk,._uODpB._MSvcj._n-eaM._5YdqW,._uODpB._MSvcj._n-eaM._M1xC8{opacity:.4}._v00Q4{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._v00Q4:focus{z-index:1}._WZ6Dr{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}._WZ6Dr svg{margin-left:1px}._WZ6Dr._4d7Tj{background-color:#0b6ed0;border-color:transparent}._WZ6Dr._4d7Tj svg{fill:#fff!important}._WZ6Dr._4d7Tj:not(._4-Mxw):hover{background-color:#085caf!important}._WZ6Dr._4d7Tj:not(._4-Mxw):active{background-color:#0854a1!important}._WZ6Dr._4d7Tj._4-Mxw{opacity:.4}._WZ6Dr._4d7Tj._4-Mxw svg{background-color:transparent}._WZ6Dr._MSvcj{border-color:#0b6ed0;background-color:#fff}._WZ6Dr._MSvcj svg{fill:#0b6ed0!important}._WZ6Dr._MSvcj:not(._4-Mxw):hover{background-color:#eef5fc!important}._WZ6Dr._MSvcj:not(._4-Mxw):active{background-color:#e1edf9!important}._WZ6Dr._MSvcj._4-Mxw{opacity:.4}._WZ6Dr._MSvcj._4-Mxw svg{background-color:transparent}._GuNYG{width:260px}";
|
|
4
|
+
var styles = {"container":"_SyiJe","divider":"_uODpB","primary":"_4d7Tj","mainButtonFocus":"_5YdqW","mainButtonDisabled":"_n-eaM","dropdownButtonFocus":"_9ZdWk","dropdownButtonDisabled":"_M1xC8","secondary":"_MSvcj","mainButton":"_v00Q4","dropdownButton":"_WZ6Dr","disabled":"_4-Mxw","dropdownOption":"_GuNYG"};
|
|
5
|
+
var stylesheet="._SyiJe{display:flex}._uODpB{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._uODpB._4d7Tj{background-color:#fff}._uODpB._4d7Tj._5YdqW.focus-visible:not(._n-eaM),._uODpB._4d7Tj._5YdqW:focus-visible:not(._n-eaM),._uODpB._4d7Tj._9ZdWk:not(._uODpB._4d7Tj._M1xC8),._uODpB._MSvcj{background-color:#0b6ed0}._uODpB._MSvcj._M1xC8._9ZdWk,._uODpB._MSvcj._n-eaM._5YdqW,._uODpB._MSvcj._n-eaM._M1xC8{opacity:.4}._v00Q4{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._v00Q4:focus{z-index:1}._WZ6Dr{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}._WZ6Dr svg{margin-left:1px}._WZ6Dr._4d7Tj{background-color:#0b6ed0;border-color:transparent}._WZ6Dr._4d7Tj svg{fill:#fff!important}._WZ6Dr._4d7Tj:not(._4-Mxw):hover{background-color:#085caf!important}._WZ6Dr._4d7Tj:not(._4-Mxw):active{background-color:#0854a1!important}._WZ6Dr._4d7Tj._4-Mxw{opacity:.4}._WZ6Dr._4d7Tj._4-Mxw svg{background-color:transparent}._WZ6Dr._MSvcj{border-color:#0b6ed0;background-color:#fff}._WZ6Dr._MSvcj svg{fill:#0b6ed0!important}._WZ6Dr._MSvcj:not(._4-Mxw):hover{background-color:#eef5fc!important}._WZ6Dr._MSvcj:not(._4-Mxw):active{background-color:#e1edf9!important}._WZ6Dr._MSvcj._4-Mxw{opacity:.4}._WZ6Dr._MSvcj._4-Mxw svg{background-color:transparent}._GuNYG{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 = "._-lEnn{display:inline-block;position:relative}._-lEnn ._30lp3{width:120px}._-lEnn ._30lp3 ._2ANmP._ti-c-{transform:rotate(-180deg)}._-lEnn ._30lp3 ._2ANmP._fE-b2{fill:#9d9fa1;opacity:.4}._-lEnn ._m0WX->input:focus{box-shadow:none!important;border:1px solid #898989!important}._-lEnn ._2ANmP{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._-lEnn ._2ANmP._ti-c-{transform:rotate(-180deg)}._98--V{width:120px}._98--V ._M3hcn._s0ABi{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_-lEnn","input":"_30lp3","icon":"_2ANmP","open":"_ti-c-","disabled":"_fE-b2","ignoreFocusStyle":"_m0WX-","timePickerFlyout":"_98--V","option":"_M3hcn","exactMatch":"_s0ABi"};
|
|
5
|
+
var stylesheet="._-lEnn{display:inline-block;position:relative}._-lEnn ._30lp3{width:120px}._-lEnn ._30lp3 ._2ANmP._ti-c-{transform:rotate(-180deg)}._-lEnn ._30lp3 ._2ANmP._fE-b2{fill:#9d9fa1;opacity:.4}._-lEnn ._m0WX->input:focus{box-shadow:none!important;border:1px solid #898989!important}._-lEnn ._2ANmP{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._-lEnn ._2ANmP._ti-c-{transform:rotate(-180deg)}._98--V{width:120px}._98--V ._M3hcn._s0ABi{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 = "._MFr6-{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._ZnQ6C{background-color:rgba(50,54,58,.08)}._O11pZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._I02vF{color:rgba(81,85,89,.4);cursor:not-allowed}._U0-WH{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._xE-13{color:#085caf;border-color:#085caf}._JH8oO,._xE-13{background:rgba(11,110,208,.11)}._JH8oO{color:#0854a1;border-color:#0854a1}._LFfqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG{position:relative;display:inline-grid}._QmNNG svg{fill:currentColor}._QmNNG ._iWo9M{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._QmNNG ._iWo9M+._TivfQ{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}._QmNNG ._iWo9M+._TivfQ._XcD1f{padding:5px;max-width:36px;min-width:36px}._QmNNG ._iWo9M+._TivfQ._owpPB{padding:0 16px}._QmNNG ._iWo9M+._TivfQ._SbIku{padding:0 16px 0 12px}._QmNNG ._iWo9M:hover+._TivfQ{background-color:rgba(50,54,58,.08)}._QmNNG ._iWo9M:disabled+._TivfQ{color:rgba(81,85,89,.4);cursor:not-allowed}._QmNNG ._iWo9M:active+._TivfQ,._QmNNG ._iWo9M:focus:active+._TivfQ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._QmNNG ._iWo9M:checked+._TivfQ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._QmNNG ._iWo9M:checked:hover+._TivfQ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._QmNNG ._iWo9M:checked:disabled+._TivfQ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG ._iWo9M:checked:active+._TivfQ,._QmNNG ._iWo9M:checked:focus:active+._TivfQ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._zPOFw{display:inline-flex;position:relative}._zPOFw:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._zPOFw>*{flex-shrink:0;flex-grow:0}._-eiys{border:none;margin:0;padding:0}._-eiys legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._QmNNG ._iWo9M.focus-visible+._TivfQ,._QmNNG ._iWo9M:focus-visible+._TivfQ{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_MFr6-","hovered":"_ZnQ6C","pressed":"_O11pZ","disabled":"_I02vF","selectedDefault":"_U0-WH","selectedHovered":"_xE-13","selectedPressed":"_JH8oO","selectedDisabled":"_LFfqC","toggleContainer":"_QmNNG","toggleInput":"_iWo9M","toggleButton":"_TivfQ","iconOnly":"_XcD1f","text":"_owpPB","iconText":"_SbIku","toggleButtonGroup":"_zPOFw","toggleButtonGroupFieldset":"_-eiys"};
|
|
5
|
+
var stylesheet="._MFr6-{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._ZnQ6C{background-color:rgba(50,54,58,.08)}._O11pZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._I02vF{color:rgba(81,85,89,.4);cursor:not-allowed}._U0-WH{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._xE-13{color:#085caf;border-color:#085caf}._JH8oO,._xE-13{background:rgba(11,110,208,.11)}._JH8oO{color:#0854a1;border-color:#0854a1}._LFfqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG{position:relative;display:inline-grid}._QmNNG svg{fill:currentColor}._QmNNG ._iWo9M{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._QmNNG ._iWo9M+._TivfQ{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}._QmNNG ._iWo9M+._TivfQ._XcD1f{padding:5px;max-width:36px;min-width:36px}._QmNNG ._iWo9M+._TivfQ._owpPB{padding:0 16px}._QmNNG ._iWo9M+._TivfQ._SbIku{padding:0 16px 0 12px}._QmNNG ._iWo9M:hover+._TivfQ{background-color:rgba(50,54,58,.08)}._QmNNG ._iWo9M:disabled+._TivfQ{color:rgba(81,85,89,.4);cursor:not-allowed}._QmNNG ._iWo9M:active+._TivfQ,._QmNNG ._iWo9M:focus:active+._TivfQ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._QmNNG ._iWo9M:checked+._TivfQ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._QmNNG ._iWo9M:checked:hover+._TivfQ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._QmNNG ._iWo9M:checked:disabled+._TivfQ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG ._iWo9M:checked:active+._TivfQ,._QmNNG ._iWo9M:checked:focus:active+._TivfQ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._zPOFw{display:inline-flex;position:relative}._zPOFw:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._zPOFw>*{flex-shrink:0;flex-grow:0}._-eiys{border:none;margin:0;padding:0}._-eiys legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._QmNNG ._iWo9M.focus-visible+._TivfQ,._QmNNG ._iWo9M:focus-visible+._TivfQ{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 };
|