@qualtrics/ui-react 2.20.0 → 2.21.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 +10 -38
- package/dist/__shared/cjs/{index-579c4690.js → index-0ae99de2.js} +3 -3
- package/dist/__shared/cjs/{index-90d4069b.js → index-201e8786.js} +188 -260
- package/dist/components/Accordion/Accordion2.js +3 -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/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +0 -7
- package/dist/components/ColorPicker/ColorPicker.js +5 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/Hue.js +0 -7
- package/dist/components/ColorPicker/Palette.js +6 -4
- package/dist/components/ColorPicker/Saturation.js +0 -9
- package/dist/components/Combobox/Combobox.js +8 -6
- 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 -5
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +2 -5
- package/dist/components/Dropdown/DropdownSearch.js +2 -5
- package/dist/components/FilePicker/FilePicker.js +0 -7
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +9 -8
- 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/Tooltip.js +6 -4
- 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/components/deprecated_Toolbar/ToolbarPanels.js +0 -27
- package/dist/hooks/useEventListener/useEventListener.js +3 -0
- package/dist/hooks/useOverlay/useOverlay.js +5 -2
- 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/index.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +33 -45
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -2
- 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/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +6 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +10 -4
- package/dist/next/Menu/MenuPane.js +55 -37
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +54 -41
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +97 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.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.d.ts +1 -0
- package/dist/next/index.js +374 -284
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/index.js +0 -1
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +3 -3
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -1,25 +1,115 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
2
|
+
import React__default, { useState, useEffect, useRef, useCallback } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { useFocusVisible } from '@react-aria/interactions';
|
|
2
5
|
import '../../hooks/index.js';
|
|
3
6
|
import '../../utils/index.js';
|
|
7
|
+
import { useMenuContext } from './MenuContext.js';
|
|
8
|
+
import { KEYS, DATA_TESTID_SUFFIXES } from './constants.js';
|
|
9
|
+
import styles from './Menu2.js';
|
|
4
10
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
5
11
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
12
|
+
import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
6
13
|
|
|
7
14
|
// abstracts the logic required for searching by both `MenuPane` and `SubMenu`
|
|
8
|
-
|
|
15
|
+
// creates a searchBarConfig, which maps to an instance of `MenuSearch`
|
|
16
|
+
// returns values that are necessary for use within pane
|
|
17
|
+
function usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, animatedRight, menuParentDataTestId, id, flyoutRef) {
|
|
18
|
+
let backButtonRef = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : undefined;
|
|
19
|
+
let closeSubmenu = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : undefined;
|
|
9
20
|
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
10
21
|
const [zeroSearchResults, setZeroSearchResults] = useState();
|
|
11
22
|
const {
|
|
12
23
|
translate
|
|
13
24
|
} = useTranslation();
|
|
14
25
|
const noMatchesText = translate('menu.noItemsToDisplay');
|
|
26
|
+
const searchPlaceholder = translate('searchText');
|
|
27
|
+
useEffect(() => setZeroSearchResults(items?.filter(item => item.element.current).length === 0), [items, internalSearchValue]);
|
|
28
|
+
const {
|
|
29
|
+
isFocusVisible
|
|
30
|
+
} = useFocusVisible({
|
|
31
|
+
isTextInput: true
|
|
32
|
+
});
|
|
33
|
+
const searchRef = useRef(null);
|
|
34
|
+
const searchInput = searchRef.current?.querySelector('input') ?? null;
|
|
35
|
+
const getFirstNonNullItem = () => backButtonRef?.current ?? items.find(item => item.element.current)?.element.current;
|
|
36
|
+
const getLastNonNullItem = () =>
|
|
37
|
+
// our tsconfig does not target a recent enough version to use `Array.prototype.findLast`
|
|
38
|
+
items.findLast(item => item.element.current)?.element.current ?? backButtonRef?.current;
|
|
39
|
+
useEventListener(flyoutRef, 'keydown', e => {
|
|
40
|
+
var _context, _context2;
|
|
41
|
+
if (_includesInstanceProperty(_context = KEYS.NAVIGATE_UP).call(_context, e.key) && e.target === getFirstNonNullItem() || _includesInstanceProperty(_context2 = KEYS.NAVIGATE_DOWN).call(_context2, e.key) && e.target === getLastNonNullItem()) {
|
|
42
|
+
searchInput?.focus();
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
additionalDependencies: [flyoutRef.current],
|
|
46
|
+
isDisabled: !isSearchable
|
|
47
|
+
});
|
|
48
|
+
useEventListener(searchInput, 'keydown', e => {
|
|
49
|
+
var _context3, _context4, _context5, _context6;
|
|
50
|
+
if (_includesInstanceProperty(_context3 = [...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP]).call(_context3, e.key)) {
|
|
51
|
+
// prevent scrolling
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
getFirstNonNullItem()?.focus();
|
|
54
|
+
} else if (_includesInstanceProperty(_context4 = [...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM]).call(_context4, e.key)) {
|
|
55
|
+
// prevent scrolling
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
getLastNonNullItem()?.focus();
|
|
58
|
+
} else if (_includesInstanceProperty(_context5 = KEYS.CLOSE_SUBMENU).call(_context5, e.key) && e.target?.selectionStart === 0) {
|
|
59
|
+
closeSubmenu?.(e);
|
|
60
|
+
} else if (_includesInstanceProperty(_context6 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context6, e.key)) {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
useEventListener(searchInput, 'blur', () => !isFocusVisible && !animatedLeft && !animatedRight && searchInput?.focus());
|
|
65
|
+
const {
|
|
66
|
+
searchBarConfigs,
|
|
67
|
+
setSearchBarConfigs
|
|
68
|
+
} = useMenuContext();
|
|
69
|
+
const onInteractOutside = useCallback(e => searchBarConfigs.some(config => config.ref.current?.contains(e.target)) && e.preventDefault(), [searchBarConfigs]);
|
|
15
70
|
useEffect(() => {
|
|
16
|
-
|
|
17
|
-
|
|
71
|
+
if (!isSearchable) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
setSearchBarConfigs(configs => {
|
|
75
|
+
const configsClone = [...configs];
|
|
76
|
+
const updatedConfig = {
|
|
77
|
+
searchValue: internalSearchValue,
|
|
78
|
+
isInteractive: !animatedLeft && !animatedRight,
|
|
79
|
+
animatedLeft,
|
|
80
|
+
animatedRight,
|
|
81
|
+
dataTestId: menuParentDataTestId?.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH),
|
|
82
|
+
setSearchValue,
|
|
83
|
+
ref: searchRef,
|
|
84
|
+
id,
|
|
85
|
+
searchPlaceholder
|
|
86
|
+
};
|
|
87
|
+
const configIndex = configs.findIndex(config => config.id === id);
|
|
88
|
+
if (configIndex === -1) {
|
|
89
|
+
configsClone.push(updatedConfig);
|
|
90
|
+
} else {
|
|
91
|
+
configsClone[configIndex] = updatedConfig;
|
|
92
|
+
}
|
|
93
|
+
return configsClone;
|
|
94
|
+
});
|
|
95
|
+
return () => setSearchBarConfigs(configs => {
|
|
96
|
+
const configIndex = configs.findIndex(config => config.id === id);
|
|
97
|
+
if (configIndex === -1) {
|
|
98
|
+
return configs;
|
|
99
|
+
}
|
|
100
|
+
const configsClone = [...configs];
|
|
101
|
+
configsClone.splice(configIndex, 1);
|
|
102
|
+
return configsClone;
|
|
103
|
+
});
|
|
104
|
+
}, [isSearchable, searchPlaceholder, setSearchBarConfigs, internalSearchValue, animatedLeft, animatedRight, menuParentDataTestId, setSearchValue, searchRef, id]);
|
|
105
|
+
const noSearchResultsNode = zeroSearchResults && /*#__PURE__*/React__default.createElement("div", {
|
|
106
|
+
className: classNames(styles.menuItem, styles.noItems),
|
|
107
|
+
"aria-live": "assertive"
|
|
108
|
+
}, noMatchesText);
|
|
18
109
|
return {
|
|
19
110
|
internalSearchValue,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
noMatchesText
|
|
111
|
+
noSearchResultsNode,
|
|
112
|
+
onInteractOutside
|
|
23
113
|
};
|
|
24
114
|
}
|
|
25
115
|
|
|
@@ -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 = "._u34bj input{padding-left:76px!important}._-wpOY input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._-wpOY input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-wpOY input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-Tx0t{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._-Tx0t,._-Tx0t._-wpOY:hover{background-color:transparent!important}._-Tx0t:hover{background-color:rgba(50,54,58,.08)!important}._-Tx0t:active{background-color:rgba(50,54,58,.11)!important}._-Tx0t svg{top:2px!important}._NX2Nw{position:relative}._8HkYQ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_u34bj","disabled":"_-wpOY","dropdown":"_-Tx0t","container":"_NX2Nw","countryCode":"_8HkYQ"};
|
|
5
|
+
var stylesheet="._u34bj input{padding-left:76px!important}._-wpOY input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._-wpOY input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-wpOY input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._-Tx0t{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._-Tx0t,._-Tx0t._-wpOY:hover{background-color:transparent!important}._-Tx0t:hover{background-color:rgba(50,54,58,.08)!important}._-Tx0t:active{background-color:rgba(50,54,58,.11)!important}._-Tx0t svg{top:2px!important}._NX2Nw{position:relative}._8HkYQ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
6
6
|
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 = "._NmeBb{display:flex}._I-Enc{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._I-Enc._iGxXp{background-color:#fff}._I-Enc._iGxXp._fNSh2.focus-visible:not(._ntuew),._I-Enc._iGxXp._fNSh2:focus-visible:not(._ntuew),._I-Enc._iGxXp._o2UHQ:not(._I-Enc._iGxXp._21iUU),._I-Enc._wKzVZ{background-color:#0b6ed0}._I-Enc._wKzVZ._21iUU._o2UHQ,._I-Enc._wKzVZ._ntuew._21iUU,._I-Enc._wKzVZ._ntuew._fNSh2{opacity:.4}._HBerZ{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._HBerZ:focus{z-index:1}._OZZIq{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}._OZZIq svg{margin-left:1px}._OZZIq._iGxXp{background-color:#0b6ed0;border-color:transparent}._OZZIq._iGxXp svg{fill:#fff!important}._OZZIq._iGxXp:not(._cYVes):hover{background-color:#085caf!important}._OZZIq._iGxXp:not(._cYVes):active{background-color:#0854a1!important}._OZZIq._iGxXp._cYVes{opacity:.4}._OZZIq._iGxXp._cYVes svg{background-color:transparent}._OZZIq._wKzVZ{border-color:#0b6ed0;background-color:#fff}._OZZIq._wKzVZ svg{fill:#0b6ed0!important}._OZZIq._wKzVZ:not(._cYVes):hover{background-color:#eef5fc!important}._OZZIq._wKzVZ:not(._cYVes):active{background-color:#e1edf9!important}._OZZIq._wKzVZ._cYVes{opacity:.4}._OZZIq._wKzVZ._cYVes svg{background-color:transparent}._5QWht{width:260px}";
|
|
4
|
+
var styles = {"container":"_NmeBb","divider":"_I-Enc","primary":"_iGxXp","mainButtonFocus":"_fNSh2","mainButtonDisabled":"_ntuew","dropdownButtonFocus":"_o2UHQ","dropdownButtonDisabled":"_21iUU","secondary":"_wKzVZ","mainButton":"_HBerZ","dropdownButton":"_OZZIq","disabled":"_cYVes","dropdownOption":"_5QWht"};
|
|
5
|
+
var stylesheet="._NmeBb{display:flex}._I-Enc{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._I-Enc._iGxXp{background-color:#fff}._I-Enc._iGxXp._fNSh2.focus-visible:not(._ntuew),._I-Enc._iGxXp._fNSh2:focus-visible:not(._ntuew),._I-Enc._iGxXp._o2UHQ:not(._I-Enc._iGxXp._21iUU),._I-Enc._wKzVZ{background-color:#0b6ed0}._I-Enc._wKzVZ._21iUU._o2UHQ,._I-Enc._wKzVZ._ntuew._21iUU,._I-Enc._wKzVZ._ntuew._fNSh2{opacity:.4}._HBerZ{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._HBerZ:focus{z-index:1}._OZZIq{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}._OZZIq svg{margin-left:1px}._OZZIq._iGxXp{background-color:#0b6ed0;border-color:transparent}._OZZIq._iGxXp svg{fill:#fff!important}._OZZIq._iGxXp:not(._cYVes):hover{background-color:#085caf!important}._OZZIq._iGxXp:not(._cYVes):active{background-color:#0854a1!important}._OZZIq._iGxXp._cYVes{opacity:.4}._OZZIq._iGxXp._cYVes svg{background-color:transparent}._OZZIq._wKzVZ{border-color:#0b6ed0;background-color:#fff}._OZZIq._wKzVZ svg{fill:#0b6ed0!important}._OZZIq._wKzVZ:not(._cYVes):hover{background-color:#eef5fc!important}._OZZIq._wKzVZ:not(._cYVes):active{background-color:#e1edf9!important}._OZZIq._wKzVZ._cYVes{opacity:.4}._OZZIq._wKzVZ._cYVes svg{background-color:transparent}._5QWht{width:260px}";
|
|
6
6
|
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 = "._HhWjR{display:inline-block;position:relative}._sItyq{width:120px}._sItyq ._HybLy._0wq1a{transform:rotate(-180deg)}._sItyq ._HybLy._MxBz9{fill:#9d9fa1;opacity:.4}._441Gw>input:focus{box-shadow:none!important;border:1px solid #898989!important}._YpFV8{width:120px}._YpFV8 ._DJO7p._aJeLD{background-color:#efefef;border-radius:6px}._HybLy{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HybLy._0wq1a{transform:rotate(-180deg)}";
|
|
4
|
+
var styles = {"container":"_HhWjR","input":"_sItyq","icon":"_HybLy","open":"_0wq1a","disabled":"_MxBz9","ignoreFocusStyle":"_441Gw","flyout":"_YpFV8","option":"_DJO7p","exactMatch":"_aJeLD"};
|
|
5
|
+
var stylesheet="._HhWjR{display:inline-block;position:relative}._sItyq{width:120px}._sItyq ._HybLy._0wq1a{transform:rotate(-180deg)}._sItyq ._HybLy._MxBz9{fill:#9d9fa1;opacity:.4}._441Gw>input:focus{box-shadow:none!important;border:1px solid #898989!important}._YpFV8{width:120px}._YpFV8 ._DJO7p._aJeLD{background-color:#efefef;border-radius:6px}._HybLy{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HybLy._0wq1a{transform:rotate(-180deg)}";
|
|
6
6
|
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 = "._ya96d{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._xzvja{background-color:rgba(50,54,58,.08)}._tLW0s{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._EeQGX{color:rgba(81,85,89,.4);cursor:not-allowed}._8WUNr{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._HOvAe{color:#085caf;border-color:#085caf}._672ty,._HOvAe{background:rgba(11,110,208,.11)}._672ty{color:#0854a1;border-color:#0854a1}._vMjAP{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q{position:relative;display:inline-grid}._UKJ9Q svg{fill:currentColor}._UKJ9Q ._5N4wo{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._UKJ9Q ._5N4wo+._wE2Ld{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}._UKJ9Q ._5N4wo+._wE2Ld._gAgzU{padding:5px;max-width:36px;min-width:36px}._UKJ9Q ._5N4wo+._wE2Ld._cTtDz{padding:0 16px}._UKJ9Q ._5N4wo+._wE2Ld._7qhIS{padding:0 16px 0 12px}._UKJ9Q ._5N4wo:hover+._wE2Ld{background-color:rgba(50,54,58,.08)}._UKJ9Q ._5N4wo:disabled+._wE2Ld{color:rgba(81,85,89,.4);cursor:not-allowed}._UKJ9Q ._5N4wo:active+._wE2Ld,._UKJ9Q ._5N4wo:focus:active+._wE2Ld{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._UKJ9Q ._5N4wo:checked+._wE2Ld{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._UKJ9Q ._5N4wo:checked:hover+._wE2Ld{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._UKJ9Q ._5N4wo:checked:disabled+._wE2Ld{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q ._5N4wo:checked:active+._wE2Ld,._UKJ9Q ._5N4wo:checked:focus:active+._wE2Ld{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._0bnrO{display:inline-flex;position:relative}._0bnrO:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._0bnrO>*{flex-shrink:0;flex-grow:0}._Dc5B1{border:none;margin:0;padding:0}._Dc5B1 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._UKJ9Q ._5N4wo.focus-visible+._wE2Ld,._UKJ9Q ._5N4wo:focus-visible+._wE2Ld{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_ya96d","hovered":"_xzvja","pressed":"_tLW0s","disabled":"_EeQGX","selectedDefault":"_8WUNr","selectedHovered":"_HOvAe","selectedPressed":"_672ty","selectedDisabled":"_vMjAP","toggleContainer":"_UKJ9Q","toggleInput":"_5N4wo","toggleButton":"_wE2Ld","iconOnly":"_gAgzU","text":"_cTtDz","iconText":"_7qhIS","toggleButtonGroup":"_0bnrO","toggleButtonGroupFieldset":"_Dc5B1"};
|
|
5
|
+
var stylesheet="._ya96d{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._xzvja{background-color:rgba(50,54,58,.08)}._tLW0s{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._EeQGX{color:rgba(81,85,89,.4);cursor:not-allowed}._8WUNr{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._HOvAe{color:#085caf;border-color:#085caf}._672ty,._HOvAe{background:rgba(11,110,208,.11)}._672ty{color:#0854a1;border-color:#0854a1}._vMjAP{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q{position:relative;display:inline-grid}._UKJ9Q svg{fill:currentColor}._UKJ9Q ._5N4wo{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._UKJ9Q ._5N4wo+._wE2Ld{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}._UKJ9Q ._5N4wo+._wE2Ld._gAgzU{padding:5px;max-width:36px;min-width:36px}._UKJ9Q ._5N4wo+._wE2Ld._cTtDz{padding:0 16px}._UKJ9Q ._5N4wo+._wE2Ld._7qhIS{padding:0 16px 0 12px}._UKJ9Q ._5N4wo:hover+._wE2Ld{background-color:rgba(50,54,58,.08)}._UKJ9Q ._5N4wo:disabled+._wE2Ld{color:rgba(81,85,89,.4);cursor:not-allowed}._UKJ9Q ._5N4wo:active+._wE2Ld,._UKJ9Q ._5N4wo:focus:active+._wE2Ld{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._UKJ9Q ._5N4wo:checked+._wE2Ld{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._UKJ9Q ._5N4wo:checked:hover+._wE2Ld{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._UKJ9Q ._5N4wo:checked:disabled+._wE2Ld{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._UKJ9Q ._5N4wo:checked:active+._wE2Ld,._UKJ9Q ._5N4wo:checked:focus:active+._wE2Ld{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._0bnrO{display:inline-flex;position:relative}._0bnrO:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._0bnrO>*{flex-shrink:0;flex-grow:0}._Dc5B1{border:none;margin:0;padding:0}._Dc5B1 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._UKJ9Q ._5N4wo.focus-visible+._wE2Ld,._UKJ9Q ._5N4wo:focus-visible+._wE2Ld{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -405,6 +405,7 @@ export declare interface SubMenuProps extends Omit<AllHTMLAttributes<HTMLDivElem
|
|
|
405
405
|
searchValue?: string;
|
|
406
406
|
onSearchValueChange?: (newValue: string) => void;
|
|
407
407
|
isSearchFilteringDisabled?: boolean;
|
|
408
|
+
onIsOpenChange?: (isOpen: boolean) => void;
|
|
408
409
|
}
|
|
409
410
|
|
|
410
411
|
declare interface Time {
|