@qualtrics/ui-react 2.25.0 → 2.27.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 (170) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/__shared/cjs/{index-610a1e02.js → index-88aa3bce.js} +267 -256
  3. package/dist/__shared/cjs/{index-5b3b3406.js → index-e6893573.js} +23 -3
  4. package/dist/components/Accordion/Accordion2.js +3 -3
  5. package/dist/components/Button/Button.js +3 -3
  6. package/dist/components/Button/Button2.js +1 -1
  7. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  8. package/dist/components/Checkbox/Checkbox2.js +3 -3
  9. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  10. package/dist/components/ColorPicker/Alpha.js +1 -1
  11. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  12. package/dist/components/ColorPicker/Hue.js +1 -1
  13. package/dist/components/ColorPicker/Palette.js +1 -1
  14. package/dist/components/ColorPicker/Saturation.js +1 -1
  15. package/dist/components/Combobox/Combobox.js +3 -3
  16. package/dist/components/Combobox/Combobox2.js +3 -3
  17. package/dist/components/Combobox/ComboboxIcon.js +1 -1
  18. package/dist/components/Combobox/ComboboxInput.js +1 -1
  19. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  20. package/dist/components/Divider/Divider2.js +3 -3
  21. package/dist/components/Dropdown/Dropdown.js +4 -4
  22. package/dist/components/Dropdown/Dropdown2.js +3 -3
  23. package/dist/components/Dropdown/DropdownButton.js +6 -6
  24. package/dist/components/Dropdown/DropdownList.js +1 -1
  25. package/dist/components/Dropdown/DropdownOption.js +2 -2
  26. package/dist/components/Dropdown/DropdownSearch.js +2 -2
  27. package/dist/components/FilePicker/FilePicker.js +2 -2
  28. package/dist/components/FilePicker/FilePicker2.js +3 -3
  29. package/dist/components/FormField/Caption.js +3 -3
  30. package/dist/components/FormField/FormField2.js +3 -3
  31. package/dist/components/FormField/FormFieldContext.js +3 -3
  32. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
  33. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  34. package/dist/components/Icon/IconTypes.js +5 -0
  35. package/dist/components/IconButton/IconButton2.js +3 -3
  36. package/dist/components/InlineInput/InlineInput.js +7 -7
  37. package/dist/components/InlineInput/InlineInput2.js +3 -3
  38. package/dist/components/Input/Input2.js +3 -3
  39. package/dist/components/Input/InputField.js +2 -2
  40. package/dist/components/InputGroup/InputGroup2.js +3 -3
  41. package/dist/components/Label/Label2.js +3 -3
  42. package/dist/components/Link/Link2.js +3 -3
  43. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  44. package/dist/components/LogicEditor/LogicEditor.js +1 -1
  45. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  46. package/dist/components/Modal/Modal.js +6 -6
  47. package/dist/components/Modal/Modal2.js +3 -3
  48. package/dist/components/NewMenu/BaseMenu.js +3 -3
  49. package/dist/components/NewMenu/NewMenu.js +3 -3
  50. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
  51. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
  52. package/dist/components/NumberStepper/NumberStepper.js +2 -2
  53. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  54. package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
  55. package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
  56. package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
  57. package/dist/components/PageLayout/PageLayout.js +3 -3
  58. package/dist/components/Pagination/Pagination.js +1 -1
  59. package/dist/components/Pagination/Pagination2.js +3 -3
  60. package/dist/components/Pagination/PaginationNextButton.js +3 -3
  61. package/dist/components/Pagination/PaginationPageInput.js +8 -8
  62. package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
  63. package/dist/components/Popover/Popover.js +5 -5
  64. package/dist/components/Popover/Popover2.js +3 -3
  65. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  66. package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
  67. package/dist/components/Radio/Radio2.js +3 -3
  68. package/dist/components/SearchInput/SearchInput.js +2 -2
  69. package/dist/components/SearchInput/SearchInput2.js +3 -3
  70. package/dist/components/SidebarNav/SidebarNav.js +1 -1
  71. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  72. package/dist/components/Slider/Slider2.js +3 -3
  73. package/dist/components/Switch/Switch2.js +3 -3
  74. package/dist/components/Table/Table2.js +3 -3
  75. package/dist/components/Tabs/Tabs2.js +3 -3
  76. package/dist/components/Tooltip/Tooltip2.js +3 -3
  77. package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
  78. package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
  79. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  80. package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
  81. package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
  82. package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
  83. package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
  84. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  85. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
  86. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
  87. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
  88. package/dist/components/deprecated_Tabs/Tabs.js +3 -3
  89. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  90. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  91. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
  92. package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
  93. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
  94. package/dist/hooks/useControllableState/useControllableState.js +1 -1
  95. package/dist/hooks/useOverlay/useOverlay.js +2 -2
  96. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  97. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
  98. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  99. package/dist/icons/Icon.js +3 -3
  100. package/dist/icons/components/AIChatbotIcon.js +6 -0
  101. package/dist/icons/components/LinesIcon.js +6 -0
  102. package/dist/icons/components/RobotConversationalIcon.js +6 -0
  103. package/dist/icons/components/ScatterPlotIcon.js +6 -0
  104. package/dist/icons/components/UnmoderatedUserTestingIcon.js +6 -0
  105. package/dist/icons/index.d.ts +10 -0
  106. package/dist/icons/index.es.js +5 -0
  107. package/dist/icons/index.js +6 -1
  108. package/dist/index.d.ts +11 -0
  109. package/dist/index.es.js +1 -1
  110. package/dist/index.js +3 -3
  111. package/dist/next/AdvancedTable/AdvancedTable.js +36 -8
  112. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  113. package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
  114. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
  115. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
  116. package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
  117. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
  118. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  119. package/dist/next/CollectionGrid/CollectionGrid.js +34 -0
  120. package/dist/next/CollectionGrid/CollectionGridItem.js +18 -0
  121. package/dist/next/CollectionGrid/index.js +2 -0
  122. package/dist/next/Combobox/Combobox.js +2 -0
  123. package/dist/next/Combobox/Combobox2.js +3 -3
  124. package/dist/next/Combobox/ComboboxInput.js +2 -0
  125. package/dist/next/Combobox/ComboboxOption.js +2 -0
  126. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
  127. package/dist/next/Drawer/Drawer.js +2 -2
  128. package/dist/next/Drawer/Drawer2.js +3 -3
  129. package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
  130. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  131. package/dist/next/Input/Input2.js +3 -3
  132. package/dist/next/LayoutGrid/LayoutGrid.js +38 -0
  133. package/dist/next/LayoutGrid/LayoutGridItem.js +23 -0
  134. package/dist/next/LayoutGrid/index.js +2 -0
  135. package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
  136. package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
  137. package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
  138. package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
  139. package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +61 -24
  140. package/dist/next/Menu/Menu.js +19 -24
  141. package/dist/next/Menu/Menu2.js +3 -3
  142. package/dist/next/Menu/MenuContext.js +5 -1
  143. package/dist/next/Menu/MenuItem.js +21 -14
  144. package/dist/next/Menu/MenuPane.js +73 -54
  145. package/dist/next/Menu/PaneChildren.js +47 -0
  146. package/dist/next/Menu/SubMenu.js +57 -39
  147. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
  148. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  149. package/dist/next/Select/Select.js +10 -6
  150. package/dist/next/Select/Select2.js +3 -3
  151. package/dist/next/Select/SubSelect.js +2 -2
  152. package/dist/next/SplitButton/SplitButton2.js +3 -3
  153. package/dist/next/Stack/Stack.js +1 -18
  154. package/dist/next/TimePicker/TimePicker2.js +3 -3
  155. package/dist/next/TimePicker/TimePickerIcon.js +1 -1
  156. package/dist/next/ToggleButton/styles.js +3 -3
  157. package/dist/next/index.d.ts +57 -3
  158. package/dist/next/index.es.js +6 -0
  159. package/dist/next/index.js +614 -268
  160. package/dist/translations-en.js +7 -1
  161. package/dist/utils/Flyout/Flyout2.js +3 -3
  162. package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +30 -0
  163. package/dist/utils/GridChildrenWrapper/index.js +1 -0
  164. package/dist/utils/Popper/Popper.js +2 -2
  165. package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
  166. package/dist/utils/wrapEvent/wrapEvent.js +1 -1
  167. package/icons/package.json +3 -1
  168. package/next/package.json +4 -2
  169. package/package.json +5 -3
  170. /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
@@ -5,15 +5,19 @@ import classNames from 'classnames';
5
5
  import { useFocusVisible } from '@react-aria/interactions';
6
6
  import styles from './Menu2.js';
7
7
  import '../../icons/index.es.js';
8
- import { usePaneContext, useMenuContext, PaneContextProvider } from './MenuContext.js';
8
+ import { useItemContext, usePaneContext, useMenuContext, PaneContextProvider } from './MenuContext.js';
9
9
  import '../../utils/index.js';
10
10
  import { DATA_TESTID_SUFFIXES as DATA_TESTID_SUFFIXES$1, KEYS as KEYS$1 } from './constants.js';
11
11
  import { DATA_TESTID_SUFFIXES, KEYS } from '../Select/constants.js';
12
12
  import '../../hooks/index.js';
13
- import usePaneSearch from './usePaneSearch.js';
13
+ import usePaneSearch from './Hooks/usePaneSearch.js';
14
14
  import useSelectContext from '../Select/SelectContext.js';
15
15
  import AdvancedTableCheckbox from '../AdvancedTable/AdvancedTableCheckbox.js';
16
16
  import styles$1 from '../Select/Select2.js';
17
+ import PaneChildren from './PaneChildren.js';
18
+ import useFocusVirtualBoundary from './Hooks/useFocusVirtualBoundary.js';
19
+ import useIsVirtualized from './Hooks/useIsVirtualized.js';
20
+ import useMaskDimensions from './Hooks/useMaskDimensions.js';
17
21
  import useId from '../../hooks/useId/useId.js';
18
22
  import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
19
23
  import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
@@ -45,6 +49,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
45
49
  triggerCheckedState = 'false',
46
50
  onTriggerCheckboxSelect
47
51
  } = selectContext !== null && selectContext !== void 0 ? selectContext : {};
52
+ const {
53
+ virtualIndex
54
+ } = useItemContext();
48
55
  const [items, setItems] = useState([]);
49
56
  const internalId = useId();
50
57
  const triggerRef = useRef(null);
@@ -53,18 +60,18 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
53
60
  const backButtonRef = useRef(null);
54
61
  const {
55
62
  dataTestId: paneContainingTriggerDataTestId,
56
- childIndex: triggerIndex,
57
- searchValue: paneContainingTriggerSearchValue,
58
- isSearchFilteringDisabled: isSearchFilteringDisabledForPaneContainingTrigger,
63
+ childIndex,
59
64
  isInteractive: paneContainingTriggerIsInteractive,
60
65
  closeSubmenu: closeSubmenuContainingTrigger,
61
- zIndex: paneContainingTriggerZIndex
66
+ zIndex: paneContainingTriggerZIndex,
67
+ focusVirtualBoundary: focusVirtualBoundaryWithinPaneContainingTrigger,
68
+ isVirtualized: paneContainingTriggerIsVirtualized
62
69
  } = usePaneContext(triggerRef);
70
+ const triggerIndex = useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
63
71
  const {
64
72
  openPaneDepth: totalOpenPaneDepth,
65
73
  registerSubmenu,
66
- setMaskHeight,
67
- setMaskWidth
74
+ isVirtualizationDisabled
68
75
  } = useMenuContext();
69
76
  const {
70
77
  isFocusVisible
@@ -82,14 +89,30 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
82
89
  e.preventDefault();
83
90
  registerSubmenu(internalId, false);
84
91
  };
92
+ const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
85
93
  const {
86
- internalSearchValue,
87
94
  noSearchResultsNode,
88
- onInteractOutside
89
- } = usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, animatedRight, paneDataTestId, internalId, flyoutRef, withinSelect, backButtonRef, closeThisSubmenu);
95
+ onInteractOutside,
96
+ filteredChildren
97
+ } = usePaneSearch({
98
+ isSearchable,
99
+ externalSearchValue,
100
+ onSearchValueChange,
101
+ items,
102
+ animatedLeft,
103
+ animatedRight,
104
+ menuParentDataTestId: paneDataTestId,
105
+ id: internalId,
106
+ flyoutRef,
107
+ children,
108
+ isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
109
+ backButtonRef,
110
+ closeSubmenu: closeThisSubmenu,
111
+ isVirtualized
112
+ });
113
+ const focusVirtualBoundaryInPane = useFocusVirtualBoundary(items, backButtonRef);
90
114
  const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BACK : DATA_TESTID_SUFFIXES$1.MENU_BACK);
91
115
  const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : DATA_TESTID_SUFFIXES$1.MENU_ITEM);
92
- const triggerIsVisible = useMemo(() => isSearchFilteringDisabledForPaneContainingTrigger || !paneContainingTriggerSearchValue || typeof label === 'string' && label.toLowerCase().includes(paneContainingTriggerSearchValue.toLowerCase()), [paneContainingTriggerSearchValue, label, isSearchFilteringDisabledForPaneContainingTrigger]);
93
116
  useDidUpdate(() => {
94
117
  if (isPaneInDOM) {
95
118
  setIsTransitioningFromRight(true);
@@ -98,30 +121,13 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
98
121
  window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
99
122
  }
100
123
  registerSubmenu(internalId, isPaneInDOM);
101
- onIsOpenChange === null || onIsOpenChange === void 0 ? void 0 : onIsOpenChange(isPaneInDOM);
124
+ onIsOpenChange === null || onIsOpenChange === void 0 || onIsOpenChange(isPaneInDOM);
102
125
  }, [isPaneInDOM]);
103
126
 
104
127
  // Omitted dependencies because this should only run on unmount
105
128
  // eslint-disable-next-line react-hooks/exhaustive-deps
106
129
  useEffect(() => () => registerSubmenu(internalId, false), []);
107
- useDidUpdate(() => {
108
- if (thisPanesDepth === totalOpenPaneDepth && flyoutRef.current) {
109
- setMaskHeight(flyoutRef.current.clientHeight);
110
- setMaskWidth(flyoutRef.current.clientWidth);
111
- }
112
- },
113
- // ignoring other dependencies because this should only run when the children change
114
- [children]);
115
- useDidUpdate(() => {
116
- if (thisPanesDepth === totalOpenPaneDepth) {
117
- window.requestAnimationFrame(() => {
118
- if (flyoutRef.current) {
119
- setMaskHeight(flyoutRef.current.clientHeight);
120
- setMaskWidth(flyoutRef.current.clientWidth);
121
- }
122
- });
123
- }
124
- }, [totalOpenPaneDepth, internalSearchValue]);
130
+ useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
125
131
  const handlePaneTransitionEnd = () => {
126
132
  var _flyoutRef$current;
127
133
  if (animatedLeft) {
@@ -131,7 +137,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
131
137
  setIsPaneInDOM(false);
132
138
  if (isFocusVisible) {
133
139
  var _triggerRef$current;
134
- (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.focus();
140
+ (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
135
141
  }
136
142
  return;
137
143
  }
@@ -146,7 +152,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
146
152
  }
147
153
  setIsTransitioningFromRight(false);
148
154
  };
149
- return triggerIsVisible ? /*#__PURE__*/React__default.createElement(Sub, {
155
+ return /*#__PURE__*/React__default.createElement(Sub, {
150
156
  open: isPaneInDOM
151
157
  }, /*#__PURE__*/React__default.createElement(SubTrigger, _extends({
152
158
  className: classNames(styles.menuItem, styles.subMenu, {
@@ -163,13 +169,19 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
163
169
  return;
164
170
  }
165
171
  if (multiselect && !isSelectedItems && KEYS.CHECK_PARENT.includes(e.key)) {
166
- onTriggerCheckboxSelect === null || onTriggerCheckboxSelect === void 0 ? void 0 : onTriggerCheckboxSelect();
172
+ onTriggerCheckboxSelect === null || onTriggerCheckboxSelect === void 0 || onTriggerCheckboxSelect();
167
173
  return;
168
174
  }
169
175
  if (!isDisabled && KEYS$1.OPEN_SUBMENU.includes(e.key)) {
170
176
  setIsPaneInDOM(true);
171
177
  } else if (KEYS$1.CLOSE_SUBMENU.includes(e.key)) {
172
- closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0 ? void 0 : closeSubmenuContainingTrigger(e);
178
+ closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0 || closeSubmenuContainingTrigger(e);
179
+ } else if (paneContainingTriggerIsVirtualized && KEYS$1.NAVIGATE_TOP.includes(e.key)) {
180
+ e.preventDefault();
181
+ focusVirtualBoundaryWithinPaneContainingTrigger('top');
182
+ } else if (paneContainingTriggerIsVirtualized && KEYS$1.NAVIIGATE_BOTTOM.includes(e.key)) {
183
+ e.preventDefault();
184
+ focusVirtualBoundaryWithinPaneContainingTrigger('bottom');
173
185
  }
174
186
  }
175
187
  }, subSelectTriggerProps), multiselect && !isSelectedItems ? /*#__PURE__*/React__default.createElement(AdvancedTableCheckbox, {
@@ -184,13 +196,13 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
184
196
  setItems: setItems,
185
197
  value: {
186
198
  dataTestId: paneDataTestId,
187
- searchValue: internalSearchValue,
188
- isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
189
199
  isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
190
200
  closeSubmenu: closeThisSubmenu,
191
201
  flyoutRef,
192
202
  stickyBoxRef,
193
- zIndex
203
+ zIndex,
204
+ focusVirtualBoundary: focusVirtualBoundaryInPane,
205
+ isVirtualized
194
206
  }
195
207
  }, /*#__PURE__*/React__default.createElement(SubContent, _extends({}, rest, {
196
208
  loop: !isSearchable,
@@ -224,12 +236,18 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
224
236
  onKeyDown: e => {
225
237
  if (KEYS$1.CLOSE_SUBMENU.includes(e.key)) {
226
238
  closeThisSubmenu(e);
239
+ } else if (isVirtualized && KEYS$1.NAVIGATE_TOP.includes(e.key)) {
240
+ e.preventDefault();
241
+ focusVirtualBoundaryInPane('top');
242
+ } else if (isVirtualized && KEYS$1.NAVIIGATE_BOTTOM.includes(e.key)) {
243
+ e.preventDefault();
244
+ focusVirtualBoundaryInPane('bottom');
227
245
  }
228
246
  }
229
247
  }, /*#__PURE__*/React__default.createElement(ArrowLeftIcon, {
230
248
  size: "small",
231
249
  className: styles.backIcon
232
- }), label)), noSearchResultsNode, children))) : null;
250
+ }), label)), noSearchResultsNode, /*#__PURE__*/React__default.createElement(PaneChildren, null, filteredChildren))));
233
251
  });
234
252
  var SubMenu$1 = SubMenu;
235
253
 
@@ -67,7 +67,7 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
67
67
  } catch (e) {
68
68
  // `parsePhoneNumber` throws an error if the inputs are invalid.
69
69
  }
70
- onChange === null || onChange === void 0 ? void 0 : onChange(internationalNumber, isValidLength, countryCode, value);
70
+ onChange === null || onChange === void 0 || onChange(internationalNumber, isValidLength, countryCode, value);
71
71
  };
72
72
  const inputClassNames = classNames(styles.input, {
73
73
  [styles.disabled]: isDisabled
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._HPfzi input{padding-left:76px!important}._66Idh input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._66Idh input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._66Idh input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dQNnM{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._dQNnM,._dQNnM._66Idh:hover{background-color:transparent!important}._dQNnM:hover{background-color:rgba(50,54,58,.08)!important}._dQNnM:active{background-color:rgba(50,54,58,.11)!important}._dQNnM svg{top:2px!important}._HVMkk{position:relative}._glnNQ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
4
- var styles = {"input":"_HPfzi","disabled":"_66Idh","dropdown":"_dQNnM","container":"_HVMkk","countryCode":"_glnNQ"};
5
- var stylesheet="._HPfzi input{padding-left:76px!important}._66Idh input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._66Idh input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._66Idh input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dQNnM{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._dQNnM,._dQNnM._66Idh:hover{background-color:transparent!important}._dQNnM:hover{background-color:rgba(50,54,58,.08)!important}._dQNnM:active{background-color:rgba(50,54,58,.11)!important}._dQNnM svg{top:2px!important}._HVMkk{position:relative}._glnNQ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
3
+ var css_248z = "._mtXPp input{padding-left:76px!important}._yiooe input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._yiooe input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._yiooe input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1l3kl{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1l3kl,._1l3kl._yiooe:hover{background-color:transparent!important}._1l3kl:hover{background-color:rgba(50,54,58,.08)!important}._1l3kl:active{background-color:rgba(50,54,58,.11)!important}._1l3kl svg{top:2px!important}._L1AsW{position:relative}._2nJEm{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
4
+ var styles = {"input":"_mtXPp","disabled":"_yiooe","dropdown":"_1l3kl","container":"_L1AsW","countryCode":"_2nJEm"};
5
+ var stylesheet="._mtXPp input{padding-left:76px!important}._yiooe input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._yiooe input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._yiooe input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1l3kl{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1l3kl,._1l3kl._yiooe:hover{background-color:transparent!important}._1l3kl:hover{background-color:rgba(50,54,58,.08)!important}._1l3kl:active{background-color:rgba(50,54,58,.11)!important}._1l3kl svg{top:2px!important}._L1AsW{position:relative}._2nJEm{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 };
@@ -22,9 +22,11 @@ const GetSelectItemsFrom = function (startingChildren) {
22
22
  if (child.type === SelectItem) {
23
23
  const {
24
24
  label,
25
- value: childValue
25
+ value: childValue,
26
+ children: childChildren
26
27
  } = child.props;
27
- current.push([childValue, label]);
28
+ const safeLabel = label !== null && label !== void 0 ? label : ['string', 'number'].includes(typeof childChildren) ? childChildren : undefined;
29
+ current.push([childValue, safeLabel]);
28
30
  } else if (child.type === SubSelect) {
29
31
  current.push(...GetSelectItemsFrom(child.props.children, filter));
30
32
  }
@@ -41,7 +43,8 @@ const Select = _ref => {
41
43
  onIsOpenChange,
42
44
  value,
43
45
  isInvalid,
44
- 'data-testid': dataTestId
46
+ 'data-testid': dataTestId,
47
+ isVirtualizationDisabled
45
48
  } = _ref;
46
49
  const [selectedValues, setSelectedValues] = useControllableState(value, onChange, value);
47
50
  const selectPaneChildren = useMemo(() => {
@@ -54,14 +57,14 @@ const Select = _ref => {
54
57
  let {
55
58
  value: _value
56
59
  } = _ref2;
57
- return !_value || selectedValues.includes(_value);
60
+ return _value == null || selectedValues.includes(_value);
58
61
  }));
59
62
  }
60
63
  return new Map(GetSelectItemsFrom(selectPaneChildren, _ref3 => {
61
64
  let {
62
65
  value: _value
63
66
  } = _ref3;
64
- return !_value || selectedValues === _value;
67
+ return _value == null || selectedValues === _value;
65
68
  }));
66
69
  }, [selectedValues, selectPaneChildren]);
67
70
  const enabledSelectItems = useMemo(() => new Map(GetSelectItemsFrom(selectPaneChildren, _ref4 => {
@@ -95,7 +98,8 @@ const Select = _ref => {
95
98
  isDisabled,
96
99
  isOpen,
97
100
  onIsOpenChange,
98
- 'data-testid': dataTestId
101
+ 'data-testid': dataTestId,
102
+ isVirtualizationDisabled
99
103
  };
100
104
  return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
101
105
  value: {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._xxuYT{box-shadow:inset 0 0 0 1px #b00!important}._pk2uK{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._m1vLs{background-color:rgba(11,110,208,.08);font-weight:500}";
4
- var styles = {"isInvalid":"_xxuYT","checkbox":"_pk2uK","selectedItem":"_m1vLs"};
5
- var stylesheet="._xxuYT{box-shadow:inset 0 0 0 1px #b00!important}._pk2uK{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._m1vLs{background-color:rgba(11,110,208,.08);font-weight:500}";
3
+ var css_248z = "._9lxAF{box-shadow:inset 0 0 0 1px #b00!important}._DuAgx{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._05qyc{background-color:rgba(11,110,208,.08);font-weight:500}";
4
+ var styles = {"isInvalid":"_9lxAF","checkbox":"_DuAgx","selectedItem":"_05qyc"};
5
+ var stylesheet="._9lxAF{box-shadow:inset 0 0 0 1px #b00!important}._DuAgx{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._05qyc{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 };
@@ -42,8 +42,8 @@ const SubSelect = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
42
42
  if (isDisabled) {
43
43
  return;
44
44
  }
45
- e === null || e === void 0 ? void 0 : e.stopPropagation();
46
- setSelectedValues === null || setSelectedValues === void 0 ? void 0 : setSelectedValues(previouslySelectedValues => {
45
+ e === null || e === void 0 || e.stopPropagation();
46
+ setSelectedValues === null || setSelectedValues === void 0 || setSelectedValues(previouslySelectedValues => {
47
47
  // exclude duplicates
48
48
  const prevSet = new Set(previouslySelectedValues);
49
49
  if (checkedState === 'true') {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._Rx-nX{display:flex}._Lj2Kf{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._Lj2Kf._wfCKt{background-color:#fff}._Lj2Kf._t6cU0,._Lj2Kf._wfCKt._fIYt0.focus-visible:not(._aqQ3G),._Lj2Kf._wfCKt._fIYt0:focus-visible:not(._aqQ3G),._Lj2Kf._wfCKt._l-E8K:not(._Lj2Kf._wfCKt._WnhfG){background-color:#0b6ed0}._Lj2Kf._t6cU0._aqQ3G._fIYt0,._Lj2Kf._t6cU0._aqQ3G._WnhfG,._Lj2Kf._t6cU0._WnhfG._l-E8K{opacity:.4}._fH7iP{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._fH7iP:focus{z-index:1}._akwM4{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}._akwM4 svg{margin-left:1px}._akwM4._wfCKt{background-color:#0b6ed0;border-color:transparent}._akwM4._wfCKt svg{fill:#fff!important}._akwM4._wfCKt:not(._IFhBg):hover{background-color:#085caf!important}._akwM4._wfCKt:not(._IFhBg):active{background-color:#0854a1!important}._akwM4._wfCKt._IFhBg{opacity:.4}._akwM4._wfCKt._IFhBg svg{background-color:transparent}._akwM4._t6cU0{border-color:#0b6ed0;background-color:#fff}._akwM4._t6cU0 svg{fill:#0b6ed0!important}._akwM4._t6cU0:not(._IFhBg):hover{background-color:#eef5fc!important}._akwM4._t6cU0:not(._IFhBg):active{background-color:#e1edf9!important}._akwM4._t6cU0._IFhBg{opacity:.4}._akwM4._t6cU0._IFhBg svg{background-color:transparent}._xmOTE{width:260px}";
4
- var styles = {"container":"_Rx-nX","divider":"_Lj2Kf","primary":"_wfCKt","mainButtonFocus":"_fIYt0","mainButtonDisabled":"_aqQ3G","dropdownButtonFocus":"_l-E8K","dropdownButtonDisabled":"_WnhfG","secondary":"_t6cU0","mainButton":"_fH7iP","dropdownButton":"_akwM4","disabled":"_IFhBg","dropdownOption":"_xmOTE"};
5
- var stylesheet="._Rx-nX{display:flex}._Lj2Kf{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._Lj2Kf._wfCKt{background-color:#fff}._Lj2Kf._t6cU0,._Lj2Kf._wfCKt._fIYt0.focus-visible:not(._aqQ3G),._Lj2Kf._wfCKt._fIYt0:focus-visible:not(._aqQ3G),._Lj2Kf._wfCKt._l-E8K:not(._Lj2Kf._wfCKt._WnhfG){background-color:#0b6ed0}._Lj2Kf._t6cU0._aqQ3G._fIYt0,._Lj2Kf._t6cU0._aqQ3G._WnhfG,._Lj2Kf._t6cU0._WnhfG._l-E8K{opacity:.4}._fH7iP{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._fH7iP:focus{z-index:1}._akwM4{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}._akwM4 svg{margin-left:1px}._akwM4._wfCKt{background-color:#0b6ed0;border-color:transparent}._akwM4._wfCKt svg{fill:#fff!important}._akwM4._wfCKt:not(._IFhBg):hover{background-color:#085caf!important}._akwM4._wfCKt:not(._IFhBg):active{background-color:#0854a1!important}._akwM4._wfCKt._IFhBg{opacity:.4}._akwM4._wfCKt._IFhBg svg{background-color:transparent}._akwM4._t6cU0{border-color:#0b6ed0;background-color:#fff}._akwM4._t6cU0 svg{fill:#0b6ed0!important}._akwM4._t6cU0:not(._IFhBg):hover{background-color:#eef5fc!important}._akwM4._t6cU0:not(._IFhBg):active{background-color:#e1edf9!important}._akwM4._t6cU0._IFhBg{opacity:.4}._akwM4._t6cU0._IFhBg svg{background-color:transparent}._xmOTE{width:260px}";
3
+ var css_248z = "._iGbIg{display:flex}._R3C6c{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._R3C6c._Tll-X{background-color:#fff}._R3C6c._Tll-X._5vbJh:not(._R3C6c._Tll-X._vDA5M),._R3C6c._Tll-X._NDixR.focus-visible:not(._ZLeuB),._R3C6c._Tll-X._NDixR:focus-visible:not(._ZLeuB),._R3C6c._xX1Cd{background-color:#0b6ed0}._R3C6c._xX1Cd._vDA5M._5vbJh,._R3C6c._xX1Cd._ZLeuB._NDixR,._R3C6c._xX1Cd._ZLeuB._vDA5M{opacity:.4}._VwBky{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._VwBky:focus{z-index:1}._i-e52{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}._i-e52 svg{margin-left:1px}._i-e52._Tll-X{background-color:#0b6ed0;border-color:transparent}._i-e52._Tll-X svg{fill:#fff!important}._i-e52._Tll-X:not(._z5zPQ):hover{background-color:#085caf!important}._i-e52._Tll-X:not(._z5zPQ):active{background-color:#0854a1!important}._i-e52._Tll-X._z5zPQ{opacity:.4}._i-e52._Tll-X._z5zPQ svg{background-color:transparent}._i-e52._xX1Cd{border-color:#0b6ed0;background-color:#fff}._i-e52._xX1Cd svg{fill:#0b6ed0!important}._i-e52._xX1Cd:not(._z5zPQ):hover{background-color:#eef5fc!important}._i-e52._xX1Cd:not(._z5zPQ):active{background-color:#e1edf9!important}._i-e52._xX1Cd._z5zPQ{opacity:.4}._i-e52._xX1Cd._z5zPQ svg{background-color:transparent}._I1D4u{width:260px}";
4
+ var styles = {"container":"_iGbIg","divider":"_R3C6c","primary":"_Tll-X","mainButtonFocus":"_NDixR","mainButtonDisabled":"_ZLeuB","dropdownButtonFocus":"_5vbJh","dropdownButtonDisabled":"_vDA5M","secondary":"_xX1Cd","mainButton":"_VwBky","dropdownButton":"_i-e52","disabled":"_z5zPQ","dropdownOption":"_I1D4u"};
5
+ var stylesheet="._iGbIg{display:flex}._R3C6c{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._R3C6c._Tll-X{background-color:#fff}._R3C6c._Tll-X._5vbJh:not(._R3C6c._Tll-X._vDA5M),._R3C6c._Tll-X._NDixR.focus-visible:not(._ZLeuB),._R3C6c._Tll-X._NDixR:focus-visible:not(._ZLeuB),._R3C6c._xX1Cd{background-color:#0b6ed0}._R3C6c._xX1Cd._vDA5M._5vbJh,._R3C6c._xX1Cd._ZLeuB._NDixR,._R3C6c._xX1Cd._ZLeuB._vDA5M{opacity:.4}._VwBky{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._VwBky:focus{z-index:1}._i-e52{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}._i-e52 svg{margin-left:1px}._i-e52._Tll-X{background-color:#0b6ed0;border-color:transparent}._i-e52._Tll-X svg{fill:#fff!important}._i-e52._Tll-X:not(._z5zPQ):hover{background-color:#085caf!important}._i-e52._Tll-X:not(._z5zPQ):active{background-color:#0854a1!important}._i-e52._Tll-X._z5zPQ{opacity:.4}._i-e52._Tll-X._z5zPQ svg{background-color:transparent}._i-e52._xX1Cd{border-color:#0b6ed0;background-color:#fff}._i-e52._xX1Cd svg{fill:#0b6ed0!important}._i-e52._xX1Cd:not(._z5zPQ):hover{background-color:#eef5fc!important}._i-e52._xX1Cd:not(._z5zPQ):active{background-color:#e1edf9!important}._i-e52._xX1Cd._z5zPQ{opacity:.4}._i-e52._xX1Cd._z5zPQ svg{background-color:transparent}._I1D4u{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,7 +1,4 @@
1
- import React__default, { forwardRef, useEffect } from 'react';
2
- import { HStack } from './HStack.js';
3
- import { VStack } from './VStack.js';
4
- import { StackItem } from './StackItem.js';
1
+ import React__default, { forwardRef } from 'react';
5
2
 
6
3
  const convertAlignment = alignment => {
7
4
  const alignmentMap = {
@@ -44,20 +41,6 @@ const Stack = /*#__PURE__*/forwardRef((_ref, ref) => {
44
41
  'aria-describedby': ariaDescribedBy,
45
42
  'data-testid': dataTestId
46
43
  } = _ref;
47
- const checkIsStackItem = child => {
48
- if (!(child.type && (child.type === StackItem || child.type === HStack || child.type === VStack))) {
49
- throw new Error('Stack received an invalid child. Only StackItems are valid children of Stacks.');
50
- }
51
- };
52
- useEffect(() => {
53
- if (Array.isArray(children)) {
54
- children.forEach(child => {
55
- checkIsStackItem(child);
56
- });
57
- } else if (children) {
58
- checkIsStackItem(children);
59
- }
60
- }, [children]);
61
44
  const alignment = direction === 'horizontal' ? alignChildrenY : alignChildrenX;
62
45
  const justification = direction === 'horizontal' ? alignChildrenX : alignChildrenY;
63
46
  return /*#__PURE__*/React__default.createElement("div", {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._tj3Tz{display:inline-block;position:relative}._P0pTZ{width:120px}._P0pTZ ._XPm26._yLNq9{transform:rotate(-180deg)}._P0pTZ ._XPm26._Idv3I{fill:#9d9fa1;opacity:.4}._jULQ9>input:focus{box-shadow:none!important;border:1px solid #898989!important}._LsyFE{width:120px}._LsyFE ._mQutK._iZ18k{background-color:#efefef;border-radius:6px}._XPm26{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._XPm26._yLNq9{transform:rotate(-180deg)}";
4
- var styles = {"container":"_tj3Tz","input":"_P0pTZ","icon":"_XPm26","open":"_yLNq9","disabled":"_Idv3I","ignoreFocusStyle":"_jULQ9","flyout":"_LsyFE","option":"_mQutK","exactMatch":"_iZ18k"};
5
- var stylesheet="._tj3Tz{display:inline-block;position:relative}._P0pTZ{width:120px}._P0pTZ ._XPm26._yLNq9{transform:rotate(-180deg)}._P0pTZ ._XPm26._Idv3I{fill:#9d9fa1;opacity:.4}._jULQ9>input:focus{box-shadow:none!important;border:1px solid #898989!important}._LsyFE{width:120px}._LsyFE ._mQutK._iZ18k{background-color:#efefef;border-radius:6px}._XPm26{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._XPm26._yLNq9{transform:rotate(-180deg)}";
3
+ var css_248z = "._XZEa4{display:inline-block;position:relative}._swgrH{width:120px}._swgrH ._HleDR._sBSli{transform:rotate(-180deg)}._swgrH ._HleDR._SwxQE{fill:#9d9fa1;opacity:.4}._ja7Ma>input:focus{box-shadow:none!important;border:1px solid #898989!important}._wUI-U{width:120px}._wUI-U ._qt1F-._trZdw{background-color:#efefef;border-radius:6px}._HleDR{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HleDR._sBSli{transform:rotate(-180deg)}";
4
+ var styles = {"container":"_XZEa4","input":"_swgrH","icon":"_HleDR","open":"_sBSli","disabled":"_SwxQE","ignoreFocusStyle":"_ja7Ma","flyout":"_wUI-U","option":"_qt1F-","exactMatch":"_trZdw"};
5
+ var stylesheet="._XZEa4{display:inline-block;position:relative}._swgrH{width:120px}._swgrH ._HleDR._sBSli{transform:rotate(-180deg)}._swgrH ._HleDR._SwxQE{fill:#9d9fa1;opacity:.4}._ja7Ma>input:focus{box-shadow:none!important;border:1px solid #898989!important}._wUI-U{width:120px}._wUI-U ._qt1F-._trZdw{background-color:#efefef;border-radius:6px}._HleDR{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HleDR._sBSli{transform:rotate(-180deg)}";
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 };
@@ -25,7 +25,7 @@ const TimePickerIcon = _ref => {
25
25
  onClick: !isDisabled ? () => {
26
26
  var _inputRef$current;
27
27
  setIsFlyoutOpen(i => !i);
28
- (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
28
+ (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
29
29
  } : undefined,
30
30
  onMouseDown: e => e.preventDefault(),
31
31
  ref: iconRef
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._SnG6G{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._rs9TA{background-color:rgba(50,54,58,.08)}._mBMUt{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._GZn0Z{color:rgba(81,85,89,.4);cursor:not-allowed}._ARYwQ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._5If1u{color:#085caf;border-color:#085caf}._5If1u,._VuxSy{background:rgba(11,110,208,.11)}._VuxSy{color:#0854a1;border-color:#0854a1}._-SYON{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._74zS8{position:relative;display:inline-grid}._74zS8 svg{fill:currentColor}._74zS8 ._8FfBe{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._74zS8 ._8FfBe+._5Y8EE{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}._74zS8 ._8FfBe+._5Y8EE._D-3ES{padding:5px;max-width:36px;min-width:36px}._74zS8 ._8FfBe+._5Y8EE._xfWAi{padding:0 16px}._74zS8 ._8FfBe+._5Y8EE._H1iXr{padding:0 16px 0 12px}._74zS8 ._8FfBe:hover+._5Y8EE{background-color:rgba(50,54,58,.08)}._74zS8 ._8FfBe:disabled+._5Y8EE{color:rgba(81,85,89,.4);cursor:not-allowed}._74zS8 ._8FfBe:active+._5Y8EE,._74zS8 ._8FfBe:focus:active+._5Y8EE{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._74zS8 ._8FfBe:checked+._5Y8EE{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._74zS8 ._8FfBe:checked:hover+._5Y8EE{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._74zS8 ._8FfBe:checked:disabled+._5Y8EE{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._74zS8 ._8FfBe:checked:active+._5Y8EE,._74zS8 ._8FfBe:checked:focus:active+._5Y8EE{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._4jKRF{display:inline-flex;position:relative}._4jKRF:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._4jKRF>*{flex-shrink:0;flex-grow:0}._XowPj{border:none;margin:0;padding:0}._XowPj legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._74zS8 ._8FfBe.focus-visible+._5Y8EE,._74zS8 ._8FfBe:focus-visible+._5Y8EE{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"default":"_SnG6G","hovered":"_rs9TA","pressed":"_mBMUt","disabled":"_GZn0Z","selectedDefault":"_ARYwQ","selectedHovered":"_5If1u","selectedPressed":"_VuxSy","selectedDisabled":"_-SYON","toggleContainer":"_74zS8","toggleInput":"_8FfBe","toggleButton":"_5Y8EE","iconOnly":"_D-3ES","text":"_xfWAi","iconText":"_H1iXr","toggleButtonGroup":"_4jKRF","toggleButtonGroupFieldset":"_XowPj"};
5
- var stylesheet="._SnG6G{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._rs9TA{background-color:rgba(50,54,58,.08)}._mBMUt{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._GZn0Z{color:rgba(81,85,89,.4);cursor:not-allowed}._ARYwQ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._5If1u{color:#085caf;border-color:#085caf}._5If1u,._VuxSy{background:rgba(11,110,208,.11)}._VuxSy{color:#0854a1;border-color:#0854a1}._-SYON{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._74zS8{position:relative;display:inline-grid}._74zS8 svg{fill:currentColor}._74zS8 ._8FfBe{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._74zS8 ._8FfBe+._5Y8EE{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}._74zS8 ._8FfBe+._5Y8EE._D-3ES{padding:5px;max-width:36px;min-width:36px}._74zS8 ._8FfBe+._5Y8EE._xfWAi{padding:0 16px}._74zS8 ._8FfBe+._5Y8EE._H1iXr{padding:0 16px 0 12px}._74zS8 ._8FfBe:hover+._5Y8EE{background-color:rgba(50,54,58,.08)}._74zS8 ._8FfBe:disabled+._5Y8EE{color:rgba(81,85,89,.4);cursor:not-allowed}._74zS8 ._8FfBe:active+._5Y8EE,._74zS8 ._8FfBe:focus:active+._5Y8EE{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._74zS8 ._8FfBe:checked+._5Y8EE{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._74zS8 ._8FfBe:checked:hover+._5Y8EE{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._74zS8 ._8FfBe:checked:disabled+._5Y8EE{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._74zS8 ._8FfBe:checked:active+._5Y8EE,._74zS8 ._8FfBe:checked:focus:active+._5Y8EE{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._4jKRF{display:inline-flex;position:relative}._4jKRF:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._4jKRF>*{flex-shrink:0;flex-grow:0}._XowPj{border:none;margin:0;padding:0}._XowPj legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._74zS8 ._8FfBe.focus-visible+._5Y8EE,._74zS8 ._8FfBe:focus-visible+._5Y8EE{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._wLXVP{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._t1sGQ{background-color:rgba(50,54,58,.08)}._fmi-x{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._x-xdc{color:rgba(81,85,89,.4);cursor:not-allowed}._bUWve{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._pYs-j{color:#085caf;border-color:#085caf}._puWbh,._pYs-j{background:rgba(11,110,208,.11)}._puWbh{color:#0854a1;border-color:#0854a1}._-cRCV{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG{position:relative;display:inline-grid}._emtvG svg{fill:currentColor}._emtvG ._crG-p{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._emtvG ._crG-p+._bVpoF{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}._emtvG ._crG-p+._bVpoF._brD49{padding:5px;max-width:36px;min-width:36px}._emtvG ._crG-p+._bVpoF._dG7c5{padding:0 16px}._emtvG ._crG-p+._bVpoF._7hq3B{padding:0 16px 0 12px}._emtvG ._crG-p:hover+._bVpoF{background-color:rgba(50,54,58,.08)}._emtvG ._crG-p:disabled+._bVpoF{color:rgba(81,85,89,.4);cursor:not-allowed}._emtvG ._crG-p:active+._bVpoF,._emtvG ._crG-p:focus:active+._bVpoF{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._emtvG ._crG-p:checked+._bVpoF{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._emtvG ._crG-p:checked:hover+._bVpoF{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._emtvG ._crG-p:checked:disabled+._bVpoF{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG ._crG-p:checked:active+._bVpoF,._emtvG ._crG-p:checked:focus:active+._bVpoF{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._bmbMD{display:inline-flex;position:relative}._bmbMD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._bmbMD>*{flex-shrink:0;flex-grow:0}._nfgYX{border:none;margin:0;padding:0}._nfgYX legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._emtvG ._crG-p.focus-visible+._bVpoF,._emtvG ._crG-p:focus-visible+._bVpoF{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"default":"_wLXVP","hovered":"_t1sGQ","pressed":"_fmi-x","disabled":"_x-xdc","selectedDefault":"_bUWve","selectedHovered":"_pYs-j","selectedPressed":"_puWbh","selectedDisabled":"_-cRCV","toggleContainer":"_emtvG","toggleInput":"_crG-p","toggleButton":"_bVpoF","iconOnly":"_brD49","text":"_dG7c5","iconText":"_7hq3B","toggleButtonGroup":"_bmbMD","toggleButtonGroupFieldset":"_nfgYX"};
5
+ var stylesheet="._wLXVP{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._t1sGQ{background-color:rgba(50,54,58,.08)}._fmi-x{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._x-xdc{color:rgba(81,85,89,.4);cursor:not-allowed}._bUWve{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._pYs-j{color:#085caf;border-color:#085caf}._puWbh,._pYs-j{background:rgba(11,110,208,.11)}._puWbh{color:#0854a1;border-color:#0854a1}._-cRCV{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG{position:relative;display:inline-grid}._emtvG svg{fill:currentColor}._emtvG ._crG-p{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._emtvG ._crG-p+._bVpoF{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}._emtvG ._crG-p+._bVpoF._brD49{padding:5px;max-width:36px;min-width:36px}._emtvG ._crG-p+._bVpoF._dG7c5{padding:0 16px}._emtvG ._crG-p+._bVpoF._7hq3B{padding:0 16px 0 12px}._emtvG ._crG-p:hover+._bVpoF{background-color:rgba(50,54,58,.08)}._emtvG ._crG-p:disabled+._bVpoF{color:rgba(81,85,89,.4);cursor:not-allowed}._emtvG ._crG-p:active+._bVpoF,._emtvG ._crG-p:focus:active+._bVpoF{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._emtvG ._crG-p:checked+._bVpoF{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._emtvG ._crG-p:checked:hover+._bVpoF{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._emtvG ._crG-p:checked:disabled+._bVpoF{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG ._crG-p:checked:active+._bVpoF,._emtvG ._crG-p:checked:focus:active+._bVpoF{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._bmbMD{display:inline-flex;position:relative}._bmbMD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._bmbMD>*{flex-shrink:0;flex-grow:0}._nfgYX{border:none;margin:0;padding:0}._nfgYX legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._emtvG ._crG-p.focus-visible+._bVpoF,._emtvG ._crG-p:focus-visible+._bVpoF{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 };
@@ -135,6 +135,7 @@ export declare interface AdvancedTableProps {
135
135
  'data-testid'?: string;
136
136
  rowActions?: AdvancedTableActionGroup[];
137
137
  rowActionsButtonAriaLabel?: string;
138
+ rowActionsPlacement?: DropdownListProps['placement'];
138
139
  }
139
140
 
140
141
  export declare interface AdvancedTableRow {
@@ -170,7 +171,27 @@ export declare interface CollapsibleSearchInputProps {
170
171
  'data-testid'?: string;
171
172
  }
172
173
 
173
- export declare function Combobox({ initialValue, value, onChange, isDisabled, isInvalid, isRequired, isLoading, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-testid': dataTestId, children, }: ComboboxProps): JSX.Element;
174
+ export declare const CollectionGrid: React_2.ForwardRefExoticComponent<CollectionGridProps & React_2.RefAttributes<HTMLElement>>;
175
+
176
+ export declare const CollectionGridItem: React_2.ForwardRefExoticComponent<CollectionGridItemProps & React_2.RefAttributes<HTMLElement>>;
177
+
178
+ export declare interface CollectionGridItemProps {
179
+ asChild?: boolean;
180
+ children?: React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
181
+ 'data-testid'?: string;
182
+ }
183
+
184
+ export declare interface CollectionGridProps extends CollectionGridItemProps {
185
+ minColumnWidth?: string;
186
+ maxColumnWidth?: string;
187
+ numColumns?: number | string;
188
+ columnGap?: React_2.CSSProperties['columnGap'];
189
+ rowGap?: React_2.CSSProperties['rowGap'];
190
+ gap?: React_2.CSSProperties['gap'];
191
+ rowHeight?: React_2.CSSProperties['gridAutoRows'];
192
+ }
193
+
194
+ export declare function Combobox({ initialValue, value, onChange, onSubmit, isDisabled, isInvalid, isRequired, isLoading, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-testid': dataTestId, children, }: ComboboxProps): JSX.Element;
174
195
 
175
196
  export declare const ComboboxFlyout: FunctionComponent<ComboboxFlyoutProps>;
176
197
 
@@ -212,6 +233,7 @@ export declare interface ComboboxProps {
212
233
  initialValue?: string;
213
234
  value?: string;
214
235
  onChange?: (newValue: string) => void;
236
+ onSubmit?: (value: string) => void;
215
237
  isDisabled?: boolean;
216
238
  isInvalid?: boolean;
217
239
  isRequired?: boolean;
@@ -240,6 +262,16 @@ export declare interface DrawerProps {
240
262
  children: ReactNode;
241
263
  }
242
264
 
265
+ declare interface DropdownListProps extends React_2.AllHTMLAttributes<HTMLDivElement> {
266
+ children?: React_2.ReactNode;
267
+ placement?: ComputedPlacement;
268
+ onKeyDown?: (event: React_2.KeyboardEvent<HTMLDivElement>) => void;
269
+ portalTarget?: HTMLElement;
270
+ style?: React_2.CSSProperties;
271
+ 'aria-labelledby'?: string;
272
+ [prop: string]: any;
273
+ }
274
+
243
275
  declare interface ExternalStackProps extends StackItemProps {
244
276
  gap?: string | number;
245
277
  paddingLeft?: string | number;
@@ -294,7 +326,27 @@ export declare interface InputProps extends InputHTMLAttributes<HTMLInputElement
294
326
  style?: CSSProperties;
295
327
  }
296
328
 
297
- export declare const Menu: ({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, }: MenuProps) => JSX.Element;
329
+ export declare const LayoutGrid: React_2.ForwardRefExoticComponent<LayoutGridProps & React_2.RefAttributes<HTMLElement>>;
330
+
331
+ export declare const LayoutGridItem: React_2.ForwardRefExoticComponent<LayoutGridItemProps & React_2.RefAttributes<HTMLElement>>;
332
+
333
+ export declare interface LayoutGridItemProps {
334
+ area?: React_2.CSSProperties['gridArea'];
335
+ asChild?: boolean;
336
+ 'data-testid'?: string;
337
+ children?: React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
338
+ }
339
+
340
+ export declare interface LayoutGridProps extends LayoutGridItemProps {
341
+ rowHeights?: Array<string>;
342
+ columnWidths: Array<string>;
343
+ areas: Array<Array<string>>;
344
+ columnGap?: React_2.CSSProperties['columnGap'];
345
+ rowGap?: React_2.CSSProperties['rowGap'];
346
+ gap?: React_2.CSSProperties['gap'];
347
+ }
348
+
349
+ export declare const Menu: ({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, isVirtualizationDisabled, }: MenuProps) => JSX.Element;
298
350
 
299
351
  export declare const MenuButton: React_2.ForwardRefExoticComponent<MenuButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
300
352
 
@@ -332,6 +384,7 @@ export declare interface MenuProps {
332
384
  onIsOpenChange?: (shouldOpen: boolean) => void;
333
385
  isDisabled?: boolean;
334
386
  children: React_2.ReactNode;
387
+ isVirtualizationDisabled?: boolean;
335
388
  }
336
389
 
337
390
  export declare const PhoneNumberInput: React_2.ForwardRefExoticComponent<PhoneNumberInputProps & React_2.RefAttributes<HTMLInputElement>>;
@@ -353,7 +406,7 @@ export declare interface PhoneNumberInputProps {
353
406
 
354
407
  declare type RenderCellContent = AdvancedTableColumnConfig['renderCellContent'];
355
408
 
356
- export declare const Select: ({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, }: SelectProps) => JSX.Element;
409
+ export declare const Select: ({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, isVirtualizationDisabled, }: SelectProps) => JSX.Element;
357
410
 
358
411
  export declare const SelectButton: React_2.ForwardRefExoticComponent<SelectButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
359
412
 
@@ -392,6 +445,7 @@ export declare interface SelectProps {
392
445
  value?: string | number | (string | number)[];
393
446
  isInvalid?: boolean;
394
447
  children: React_2.ReactNode;
448
+ isVirtualizationDisabled?: boolean;
395
449
  }
396
450
 
397
451
  export declare const SplitButton: React_2.ForwardRefExoticComponent<SplitButtonProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -11,6 +11,8 @@ import './TimePicker/index.js';
11
11
  import './ToggleButton/index.js';
12
12
  import './Stack/index.js';
13
13
  import './Select/index.js';
14
+ import './LayoutGrid/index.js';
15
+ import './CollectionGrid/index.js';
14
16
  export { AdvancedTable } from './AdvancedTable/AdvancedTable.js';
15
17
  export { default as CollapsibleSearchInput } from './CollapsibleSearchInput/CollapsibleSearchInput.js';
16
18
  export { default as Input } from './Input/Input.js';
@@ -40,5 +42,9 @@ export { default as SelectButton } from './Select/SelectButton.js';
40
42
  export { default as SelectItem } from './Select/SelectItem.js';
41
43
  export { default as SelectPane } from './Select/SelectPane.js';
42
44
  export { default as SubSelect } from './Select/SubSelect.js';
45
+ export { LayoutGrid } from './LayoutGrid/LayoutGrid.js';
46
+ export { LayoutGridItem } from './LayoutGrid/LayoutGridItem.js';
47
+ export { CollectionGrid } from './CollectionGrid/CollectionGrid.js';
48
+ export { CollectionGridItem } from './CollectionGrid/CollectionGridItem.js';
43
49
 
44
50
  /* eslint-disable camelcase */