@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.
Files changed (97) hide show
  1. package/CHANGELOG.md +10 -38
  2. package/dist/__shared/cjs/{index-579c4690.js → index-0ae99de2.js} +3 -3
  3. package/dist/__shared/cjs/{index-90d4069b.js → index-201e8786.js} +188 -260
  4. package/dist/components/Accordion/Accordion2.js +3 -3
  5. package/dist/components/Button/Button.js +3 -3
  6. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  7. package/dist/components/Checkbox/Checkbox2.js +3 -3
  8. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  9. package/dist/components/ColorPicker/Alpha.js +0 -7
  10. package/dist/components/ColorPicker/ColorPicker.js +5 -1
  11. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  12. package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
  13. package/dist/components/ColorPicker/Hue.js +0 -7
  14. package/dist/components/ColorPicker/Palette.js +6 -4
  15. package/dist/components/ColorPicker/Saturation.js +0 -9
  16. package/dist/components/Combobox/Combobox.js +8 -6
  17. package/dist/components/Combobox/Combobox2.js +3 -3
  18. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  19. package/dist/components/Divider/Divider2.js +3 -3
  20. package/dist/components/Dropdown/Dropdown.js +0 -5
  21. package/dist/components/Dropdown/Dropdown2.js +3 -3
  22. package/dist/components/Dropdown/DropdownOption.js +2 -5
  23. package/dist/components/Dropdown/DropdownSearch.js +2 -5
  24. package/dist/components/FilePicker/FilePicker.js +0 -7
  25. package/dist/components/FilePicker/FilePicker2.js +3 -3
  26. package/dist/components/FormField/Caption.js +3 -3
  27. package/dist/components/FormField/FormField2.js +3 -3
  28. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  29. package/dist/components/IconButton/IconButton2.js +3 -3
  30. package/dist/components/InlineInput/InlineInput2.js +3 -3
  31. package/dist/components/Input/Input2.js +3 -3
  32. package/dist/components/InputGroup/InputGroup2.js +3 -3
  33. package/dist/components/Label/Label2.js +3 -3
  34. package/dist/components/Link/Link2.js +3 -3
  35. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  36. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  37. package/dist/components/Modal/Modal2.js +3 -3
  38. package/dist/components/NewMenu/NewMenu.js +3 -3
  39. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +9 -8
  40. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  41. package/dist/components/PageLayout/PageLayout.js +3 -3
  42. package/dist/components/Pagination/Pagination2.js +3 -3
  43. package/dist/components/Popover/Popover2.js +3 -3
  44. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  45. package/dist/components/Radio/Radio2.js +3 -3
  46. package/dist/components/SearchInput/SearchInput2.js +3 -3
  47. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  48. package/dist/components/Slider/Slider2.js +3 -3
  49. package/dist/components/Switch/Switch2.js +3 -3
  50. package/dist/components/Table/Table2.js +3 -3
  51. package/dist/components/Tabs/Tabs2.js +3 -3
  52. package/dist/components/Tooltip/Tooltip.js +6 -4
  53. package/dist/components/Tooltip/Tooltip2.js +3 -3
  54. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  55. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  56. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  57. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  58. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +0 -27
  59. package/dist/hooks/useEventListener/useEventListener.js +3 -0
  60. package/dist/hooks/useOverlay/useOverlay.js +5 -2
  61. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  62. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  63. package/dist/icons/Icon.js +3 -3
  64. package/dist/icons/index.js +1 -1
  65. package/dist/index.d.ts +3 -1
  66. package/dist/index.es.js +1 -7
  67. package/dist/index.js +4 -7
  68. package/dist/next/AdvancedTable/AdvancedTable.js +33 -45
  69. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  70. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -2
  71. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  72. package/dist/next/Combobox/Combobox2.js +3 -3
  73. package/dist/next/Drawer/Drawer2.js +3 -3
  74. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  75. package/dist/next/Input/Input2.js +3 -3
  76. package/dist/next/Menu/Menu.js +6 -2
  77. package/dist/next/Menu/Menu2.js +3 -3
  78. package/dist/next/Menu/MenuItem.js +10 -4
  79. package/dist/next/Menu/MenuPane.js +55 -37
  80. package/dist/next/Menu/MenuSearch.js +16 -71
  81. package/dist/next/Menu/SubMenu.js +54 -41
  82. package/dist/next/Menu/constants.js +5 -1
  83. package/dist/next/Menu/useMutationObserver.js +17 -0
  84. package/dist/next/Menu/usePaneSearch.js +97 -7
  85. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  86. package/dist/next/SplitButton/SplitButton2.js +3 -3
  87. package/dist/next/TimePicker/TimePicker2.js +3 -3
  88. package/dist/next/ToggleButton/styles.js +3 -3
  89. package/dist/next/index.d.ts +1 -0
  90. package/dist/next/index.js +374 -284
  91. package/dist/utils/Flyout/Flyout2.js +3 -3
  92. package/dist/utils/index.js +0 -1
  93. package/icons/package.json +1 -0
  94. package/next/package.json +2 -1
  95. package/package.json +3 -3
  96. package/dist/utils/keyboardUser/index.js +0 -1
  97. package/dist/utils/keyboardUser/keyboardUser.js +0 -30
@@ -1,25 +1,115 @@
1
- import { useState, useEffect } from 'react';
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
- function usePaneSearch(externalSearchValue, onSearchValueChange, items) {
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
- setZeroSearchResults(items?.filter(item => item.element.current).length === 0);
17
- }, [items, internalSearchValue]);
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
- setSearchValue,
21
- zeroSearchResults,
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 = "._0ugqV input{padding-left:76px!important}._5fTUE input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._5fTUE input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5fTUE input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._jzrnt{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._jzrnt,._jzrnt._5fTUE:hover{background-color:transparent!important}._jzrnt:hover{background-color:rgba(50,54,58,.08)!important}._jzrnt:active{background-color:rgba(50,54,58,.11)!important}._jzrnt svg{top:2px!important}._Wv-Ld{position:relative}._Qcs1E{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
4
- var styles = {"input":"_0ugqV","disabled":"_5fTUE","dropdown":"_jzrnt","container":"_Wv-Ld","countryCode":"_Qcs1E"};
5
- var stylesheet="._0ugqV input{padding-left:76px!important}._5fTUE input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._5fTUE input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5fTUE input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._jzrnt{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._jzrnt,._jzrnt._5fTUE:hover{background-color:transparent!important}._jzrnt:hover{background-color:rgba(50,54,58,.08)!important}._jzrnt:active{background-color:rgba(50,54,58,.11)!important}._jzrnt svg{top:2px!important}._Wv-Ld{position:relative}._Qcs1E{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
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 = "._m7pGf{display:flex}._QN3kF{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._QN3kF._rQAGM{background-color:#fff}._QN3kF._rQAGM._eo5P0:not(._QN3kF._rQAGM._nnjid),._QN3kF._rZ4iL,body.keyboard-user ._QN3kF._rQAGM._42-Ca:not(._KWjQZ){background-color:#0b6ed0}._QN3kF._rZ4iL._KWjQZ._42-Ca,._QN3kF._rZ4iL._KWjQZ._nnjid,._QN3kF._rZ4iL._nnjid._eo5P0{opacity:.4}._ySQpY{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._ySQpY:focus{z-index:1}._WKbWy{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}._WKbWy svg{margin-left:1px}._WKbWy._rQAGM{background-color:#0b6ed0;border-color:transparent}._WKbWy._rQAGM svg{fill:#fff!important}._WKbWy._rQAGM:not(._KFkhb):hover{background-color:#085caf!important}._WKbWy._rQAGM:not(._KFkhb):active{background-color:#0854a1!important}._WKbWy._rQAGM._KFkhb{opacity:.4}._WKbWy._rQAGM._KFkhb svg{background-color:transparent}._WKbWy._rZ4iL{border-color:#0b6ed0;background-color:#fff}._WKbWy._rZ4iL svg{fill:#0b6ed0!important}._WKbWy._rZ4iL:not(._KFkhb):hover{background-color:#eef5fc!important}._WKbWy._rZ4iL:not(._KFkhb):active{background-color:#e1edf9!important}._WKbWy._rZ4iL._KFkhb{opacity:.4}._WKbWy._rZ4iL._KFkhb svg{background-color:transparent}._mpYIf{width:260px}";
4
- var styles = {"container":"_m7pGf","divider":"_QN3kF","primary":"_rQAGM","mainButtonFocus":"_42-Ca","mainButtonDisabled":"_KWjQZ","dropdownButtonFocus":"_eo5P0","dropdownButtonDisabled":"_nnjid","secondary":"_rZ4iL","mainButton":"_ySQpY","dropdownButton":"_WKbWy","disabled":"_KFkhb","dropdownOption":"_mpYIf"};
5
- var stylesheet="._m7pGf{display:flex}._QN3kF{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._QN3kF._rQAGM{background-color:#fff}._QN3kF._rQAGM._eo5P0:not(._QN3kF._rQAGM._nnjid),._QN3kF._rZ4iL,body.keyboard-user ._QN3kF._rQAGM._42-Ca:not(._KWjQZ){background-color:#0b6ed0}._QN3kF._rZ4iL._KWjQZ._42-Ca,._QN3kF._rZ4iL._KWjQZ._nnjid,._QN3kF._rZ4iL._nnjid._eo5P0{opacity:.4}._ySQpY{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._ySQpY:focus{z-index:1}._WKbWy{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}._WKbWy svg{margin-left:1px}._WKbWy._rQAGM{background-color:#0b6ed0;border-color:transparent}._WKbWy._rQAGM svg{fill:#fff!important}._WKbWy._rQAGM:not(._KFkhb):hover{background-color:#085caf!important}._WKbWy._rQAGM:not(._KFkhb):active{background-color:#0854a1!important}._WKbWy._rQAGM._KFkhb{opacity:.4}._WKbWy._rQAGM._KFkhb svg{background-color:transparent}._WKbWy._rZ4iL{border-color:#0b6ed0;background-color:#fff}._WKbWy._rZ4iL svg{fill:#0b6ed0!important}._WKbWy._rZ4iL:not(._KFkhb):hover{background-color:#eef5fc!important}._WKbWy._rZ4iL:not(._KFkhb):active{background-color:#e1edf9!important}._WKbWy._rZ4iL._KFkhb{opacity:.4}._WKbWy._rZ4iL._KFkhb svg{background-color:transparent}._mpYIf{width:260px}";
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 = "._6AuTd{display:inline-block;position:relative}._T8Igi{width:120px}._T8Igi ._oQAxS._1aRma{transform:rotate(-180deg)}._T8Igi ._oQAxS._yi66Q{fill:#9d9fa1;opacity:.4}._FoDQd>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xcPSL{width:120px}._xcPSL ._oQ88Q._mh0Tq{background-color:#efefef;border-radius:6px}._oQAxS{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._oQAxS._1aRma{transform:rotate(-180deg)}";
4
- var styles = {"container":"_6AuTd","input":"_T8Igi","icon":"_oQAxS","open":"_1aRma","disabled":"_yi66Q","ignoreFocusStyle":"_FoDQd","flyout":"_xcPSL","option":"_oQ88Q","exactMatch":"_mh0Tq"};
5
- var stylesheet="._6AuTd{display:inline-block;position:relative}._T8Igi{width:120px}._T8Igi ._oQAxS._1aRma{transform:rotate(-180deg)}._T8Igi ._oQAxS._yi66Q{fill:#9d9fa1;opacity:.4}._FoDQd>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xcPSL{width:120px}._xcPSL ._oQ88Q._mh0Tq{background-color:#efefef;border-radius:6px}._oQAxS{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._oQAxS._1aRma{transform:rotate(-180deg)}";
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 = "._PuI9l{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._-duka{background-color:rgba(50,54,58,.08)}._SKJcD{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._WKCxg{color:rgba(81,85,89,.4);cursor:not-allowed}._1neWE{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._kHxeD{color:#085caf;border-color:#085caf}._kHxeD,._PvYtr{background:rgba(11,110,208,.11)}._PvYtr{color:#0854a1;border-color:#0854a1}._QMIYy{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._6Ukbw{position:relative;display:inline-grid}._6Ukbw svg{fill:currentColor}._6Ukbw ._TmGvX{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._6Ukbw ._TmGvX+._Wgw18{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}._6Ukbw ._TmGvX+._Wgw18._6xCAS{padding:5px;max-width:36px;min-width:36px}._6Ukbw ._TmGvX+._Wgw18._jcIXo{padding:0 16px}._6Ukbw ._TmGvX+._Wgw18._7WNP6{padding:0 16px 0 12px}._6Ukbw ._TmGvX:hover+._Wgw18{background-color:rgba(50,54,58,.08)}._6Ukbw ._TmGvX:disabled+._Wgw18{color:rgba(81,85,89,.4);cursor:not-allowed}._6Ukbw ._TmGvX:active+._Wgw18,._6Ukbw ._TmGvX:focus:active+._Wgw18{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._6Ukbw ._TmGvX:checked+._Wgw18{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._6Ukbw ._TmGvX:checked:hover+._Wgw18{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._6Ukbw ._TmGvX:checked:disabled+._Wgw18{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._6Ukbw ._TmGvX:checked:active+._Wgw18,._6Ukbw ._TmGvX:checked:focus:active+._Wgw18{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._whLDV{display:inline-flex;position:relative}._whLDV:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._whLDV>*{flex-shrink:0;flex-grow:0}._jfy3v{border:none;margin:0;padding:0}._jfy3v legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}body.keyboard-user ._6Ukbw ._TmGvX:active:focus+._Wgw18,body.keyboard-user ._6Ukbw ._TmGvX:focus+._Wgw18{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"default":"_PuI9l","hovered":"_-duka","pressed":"_SKJcD","disabled":"_WKCxg","selectedDefault":"_1neWE","selectedHovered":"_kHxeD","selectedPressed":"_PvYtr","selectedDisabled":"_QMIYy","toggleContainer":"_6Ukbw","toggleInput":"_TmGvX","toggleButton":"_Wgw18","iconOnly":"_6xCAS","text":"_jcIXo","iconText":"_7WNP6","toggleButtonGroup":"_whLDV","toggleButtonGroupFieldset":"_jfy3v"};
5
- var stylesheet="._PuI9l{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._-duka{background-color:rgba(50,54,58,.08)}._SKJcD{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._WKCxg{color:rgba(81,85,89,.4);cursor:not-allowed}._1neWE{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._kHxeD{color:#085caf;border-color:#085caf}._kHxeD,._PvYtr{background:rgba(11,110,208,.11)}._PvYtr{color:#0854a1;border-color:#0854a1}._QMIYy{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._6Ukbw{position:relative;display:inline-grid}._6Ukbw svg{fill:currentColor}._6Ukbw ._TmGvX{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._6Ukbw ._TmGvX+._Wgw18{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}._6Ukbw ._TmGvX+._Wgw18._6xCAS{padding:5px;max-width:36px;min-width:36px}._6Ukbw ._TmGvX+._Wgw18._jcIXo{padding:0 16px}._6Ukbw ._TmGvX+._Wgw18._7WNP6{padding:0 16px 0 12px}._6Ukbw ._TmGvX:hover+._Wgw18{background-color:rgba(50,54,58,.08)}._6Ukbw ._TmGvX:disabled+._Wgw18{color:rgba(81,85,89,.4);cursor:not-allowed}._6Ukbw ._TmGvX:active+._Wgw18,._6Ukbw ._TmGvX:focus:active+._Wgw18{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._6Ukbw ._TmGvX:checked+._Wgw18{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._6Ukbw ._TmGvX:checked:hover+._Wgw18{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._6Ukbw ._TmGvX:checked:disabled+._Wgw18{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._6Ukbw ._TmGvX:checked:active+._Wgw18,._6Ukbw ._TmGvX:checked:focus:active+._Wgw18{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._whLDV{display:inline-flex;position:relative}._whLDV:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._whLDV>*{flex-shrink:0;flex-grow:0}._jfy3v{border:none;margin:0;padding:0}._jfy3v legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}body.keyboard-user ._6Ukbw ._TmGvX:active:focus+._Wgw18,body.keyboard-user ._6Ukbw ._TmGvX:focus+._Wgw18{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
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 };
@@ -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 {