@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
@@ -130,7 +130,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
130
130
  const newWidth = Math.max(80, ((_columnHeaderRef$curr2 = columnHeaderRef.current) === null || _columnHeaderRef$curr2 === void 0 ? void 0 : _columnHeaderRef$curr2.getBoundingClientRect().width) - 10);
131
131
  onWidthChange(newWidth);
132
132
  } else {
133
- onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
133
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
134
134
  }
135
135
  };
136
136
  const handleClick = e => {
@@ -204,7 +204,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
204
204
  const mouseX = e.clientX;
205
205
  const headerX = (_columnHeaderRef$curr3 = columnHeaderRef.current) === null || _columnHeaderRef$curr3 === void 0 ? void 0 : _columnHeaderRef$curr3.getBoundingClientRect().x;
206
206
  const newWidth = Math.max(80, mouseX - headerX);
207
- onWidthChange === null || onWidthChange === void 0 ? void 0 : onWidthChange(newWidth);
207
+ onWidthChange === null || onWidthChange === void 0 || onWidthChange(newWidth);
208
208
  };
209
209
  const handleMouseUp = e => {
210
210
  if (e.button === 0) {
@@ -296,7 +296,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
296
296
  "aria-hidden": "true",
297
297
  onFocus: () => {
298
298
  var _columnHeaderRef$curr5;
299
- (_columnHeaderRef$curr5 = columnHeaderRef.current) === null || _columnHeaderRef$curr5 === void 0 ? void 0 : _columnHeaderRef$curr5.focus();
299
+ (_columnHeaderRef$curr5 = columnHeaderRef.current) === null || _columnHeaderRef$curr5 === void 0 || _columnHeaderRef$curr5.focus();
300
300
  },
301
301
  className: styles.advancedTableColumnHeaderMenuHiddenAnchor
302
302
  })
@@ -55,8 +55,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
55
55
  var _columnHeaderRef$curr;
56
56
  e.preventDefault(); // prevents SelectMenu value from changing
57
57
  setIsOpen(false);
58
- (_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 ? void 0 : _columnHeaderRef$curr.focus();
59
- onSelect === null || onSelect === void 0 ? void 0 : onSelect();
58
+ (_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 || _columnHeaderRef$curr.focus();
59
+ onSelect === null || onSelect === void 0 || onSelect();
60
60
  },
61
61
  "date-testid": menuItemDataTestId
62
62
  }, /*#__PURE__*/React__default.createElement(Icon, {
@@ -19,7 +19,7 @@ const AdvancedTablePagination = _ref => {
19
19
  page
20
20
  } = _ref2;
21
21
  setCurrentPage(page);
22
- onPageChange === null || onPageChange === void 0 ? void 0 : onPageChange(page);
22
+ onPageChange === null || onPageChange === void 0 || onPageChange(page);
23
23
  };
24
24
  return /*#__PURE__*/React__default.createElement("div", {
25
25
  className: styles.advancedTablePaginationContainer
@@ -67,7 +67,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
67
67
  };
68
68
  const handleIconButtonClick = () => {
69
69
  var _iconButtonRef$curren;
70
- (_iconButtonRef$curren = iconButtonRef.current) === null || _iconButtonRef$curren === void 0 ? void 0 : _iconButtonRef$curren.focus();
70
+ (_iconButtonRef$curren = iconButtonRef.current) === null || _iconButtonRef$curren === void 0 || _iconButtonRef$curren.focus();
71
71
  setExternalIsExpanded(true);
72
72
  };
73
73
  useDidUpdate(() => {
@@ -86,7 +86,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
86
86
  if (isComponentFocused) {
87
87
  switch (internalExpandedState) {
88
88
  case expandedStates.EXPANDING:
89
- (_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0 ? void 0 : _searchInputRef$curre.focus();
89
+ (_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0 || _searchInputRef$curre.focus();
90
90
  break;
91
91
  case expandedStates.COLLAPSED:
92
92
  /*
@@ -94,7 +94,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
94
94
  * This will show the focus ring on the icon button and allow the tooltip to appear.
95
95
  */
96
96
 
97
- (_iconButtonRef$curren2 = iconButtonRef.current) === null || _iconButtonRef$curren2 === void 0 ? void 0 : _iconButtonRef$curren2.focus();
97
+ (_iconButtonRef$curren2 = iconButtonRef.current) === null || _iconButtonRef$curren2 === void 0 || _iconButtonRef$curren2.focus();
98
98
  break;
99
99
  default:
100
100
  }
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._9eges{display:inline-block;width:36px;transition:width .25s ease-out}._Pv368{width:100%}._mBNFa>input{padding-right:0!important}._tnxZ0>svg{fill:#515559}";
4
- var styles = {"collapsibleSearchInput":"_9eges","searchInput":"_Pv368","searchInputCollapsed":"_mBNFa","iconButton":"_tnxZ0"};
5
- var stylesheet="._9eges{display:inline-block;width:36px;transition:width .25s ease-out}._Pv368{width:100%}._mBNFa>input{padding-right:0!important}._tnxZ0>svg{fill:#515559}";
3
+ var css_248z = "._7Lh0W{display:inline-block;width:36px;transition:width .25s ease-out}._qNwxS{width:100%}._-aZVt>input{padding-right:0!important}._cVk5R>svg{fill:#515559}";
4
+ var styles = {"collapsibleSearchInput":"_7Lh0W","searchInput":"_qNwxS","searchInputCollapsed":"_-aZVt","iconButton":"_cVk5R"};
5
+ var stylesheet="._7Lh0W{display:inline-block;width:36px;transition:width .25s ease-out}._qNwxS{width:100%}._-aZVt>input{padding-right:0!important}._cVk5R>svg{fill:#515559}";
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 };
@@ -0,0 +1,34 @@
1
+ import React__default from 'react';
2
+ import '../../utils/GridChildrenWrapper/index.js';
3
+ import { GridChildrenWrapper } from '../../utils/GridChildrenWrapper/GridChildrenWrapper.js';
4
+
5
+ const CollectionGrid = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
6
+ let {
7
+ minColumnWidth = '0px',
8
+ maxColumnWidth = '1fr',
9
+ numColumns = 'auto-fit',
10
+ columnGap,
11
+ rowGap,
12
+ gap,
13
+ rowHeight,
14
+ asChild = false,
15
+ 'data-testid': dataTestId,
16
+ children
17
+ } = _ref;
18
+ const calculatedStyle = {
19
+ display: 'grid',
20
+ gridTemplateColumns: "repeat(".concat(numColumns, ", minmax(").concat(minColumnWidth, ", ").concat(maxColumnWidth, "))"),
21
+ columnGap,
22
+ rowGap,
23
+ gridGap: gap,
24
+ gridAutoRows: rowHeight
25
+ };
26
+ return /*#__PURE__*/React__default.createElement(GridChildrenWrapper, {
27
+ asChild: asChild,
28
+ style: calculatedStyle,
29
+ "data-testid": dataTestId,
30
+ ref: ref
31
+ }, children);
32
+ });
33
+
34
+ export { CollectionGrid };
@@ -0,0 +1,18 @@
1
+ import React__default from 'react';
2
+ import '../../utils/GridChildrenWrapper/index.js';
3
+ import { GridChildrenWrapper } from '../../utils/GridChildrenWrapper/GridChildrenWrapper.js';
4
+
5
+ const CollectionGridItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
6
+ let {
7
+ asChild = false,
8
+ 'data-testid': dataTestId,
9
+ children
10
+ } = _ref;
11
+ return /*#__PURE__*/React__default.createElement(GridChildrenWrapper, {
12
+ asChild: asChild,
13
+ "data-testid": dataTestId,
14
+ ref: ref
15
+ }, children);
16
+ });
17
+
18
+ export { CollectionGridItem };
@@ -0,0 +1,2 @@
1
+ export { CollectionGrid } from './CollectionGrid.js';
2
+ export { CollectionGridItem } from './CollectionGridItem.js';
@@ -15,6 +15,7 @@ function Combobox(_ref) {
15
15
  initialValue = '',
16
16
  value,
17
17
  onChange,
18
+ onSubmit,
18
19
  isDisabled,
19
20
  isInvalid,
20
21
  isRequired,
@@ -68,6 +69,7 @@ function Combobox(_ref) {
68
69
  setRawInputValue,
69
70
  committedInputValue,
70
71
  setCommittedInputValue,
72
+ onSubmit,
71
73
  registerOption,
72
74
  deregisterOption,
73
75
  focusInput,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._cp947 :after{background-color:#515559!important}._ujjjX>input:focus{box-shadow:none!important;border:1px solid #898989!important}._dqRZX{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._dqRZX ._fiiAS ._Hx3Ix{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._dqRZX ._fiiAS:first-child ._brnAc{display:none}._dqRZX ._AbT11{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._dqRZX ._AbT11:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dqRZX ._AbT11:hover._cbqy2{background-color:#e4effa}._dqRZX ._AbT11._cbqy2{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dqRZX ._AbT11:active:not(._cbqy2){background-color:#e8e9e9}";
4
- var styles = {"loadingSpinner":"_cp947","ignoreFocusStyle":"_ujjjX","flyout":"_dqRZX","group":"_fiiAS","header":"_Hx3Ix","divider":"_brnAc","option":"_AbT11","selected":"_cbqy2"};
5
- var stylesheet="._cp947 :after{background-color:#515559!important}._ujjjX>input:focus{box-shadow:none!important;border:1px solid #898989!important}._dqRZX{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._dqRZX ._fiiAS ._Hx3Ix{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._dqRZX ._fiiAS:first-child ._brnAc{display:none}._dqRZX ._AbT11{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._dqRZX ._AbT11:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dqRZX ._AbT11:hover._cbqy2{background-color:#e4effa}._dqRZX ._AbT11._cbqy2{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._dqRZX ._AbT11:active:not(._cbqy2){background-color:#e8e9e9}";
3
+ var css_248z = "._4gfur :after{background-color:#515559!important}._rGM0q>input:focus{box-shadow:none!important;border:1px solid #898989!important}._Mxgkz{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._Mxgkz ._3XEgb ._zqTLp{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._Mxgkz ._3XEgb:first-child ._r8tFZ{display:none}._Mxgkz ._79cr2{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._Mxgkz ._79cr2:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Mxgkz ._79cr2:hover._Mvxou{background-color:#e4effa}._Mxgkz ._79cr2._Mvxou{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Mxgkz ._79cr2:active:not(._Mvxou){background-color:#e8e9e9}";
4
+ var styles = {"loadingSpinner":"_4gfur","ignoreFocusStyle":"_rGM0q","flyout":"_Mxgkz","group":"_3XEgb","header":"_zqTLp","divider":"_r8tFZ","option":"_79cr2","selected":"_Mvxou"};
5
+ var stylesheet="._4gfur :after{background-color:#515559!important}._rGM0q>input:focus{box-shadow:none!important;border:1px solid #898989!important}._Mxgkz{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._Mxgkz ._3XEgb ._zqTLp{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._Mxgkz ._3XEgb:first-child ._r8tFZ{display:none}._Mxgkz ._79cr2{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._Mxgkz ._79cr2:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Mxgkz ._79cr2:hover._Mvxou{background-color:#e4effa}._Mxgkz ._79cr2._Mvxou{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Mxgkz ._79cr2:active:not(._Mvxou){background-color:#e8e9e9}";
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 };
@@ -37,6 +37,7 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
37
37
  setRawInputValue,
38
38
  committedInputValue,
39
39
  setCommittedInputValue,
40
+ onSubmit,
40
41
  activeDescendantElement,
41
42
  isDisabled,
42
43
  isRequired,
@@ -105,6 +106,7 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
105
106
  case 'Enter':
106
107
  e.preventDefault(); // Prevents form submission
107
108
  commitCurrentRawInputValueAndCloseFlyout();
109
+ onSubmit === null || onSubmit === void 0 || onSubmit(rawInputValue);
108
110
  break;
109
111
  default:
110
112
  }
@@ -22,6 +22,7 @@ function ComboboxOption(_ref) {
22
22
  activeDescendantElement,
23
23
  committedInputValue,
24
24
  setCommittedInputValue,
25
+ onSubmit,
25
26
  rootDataTestId,
26
27
  setHoveredOption
27
28
  } = useComboboxContext();
@@ -60,6 +61,7 @@ function ComboboxOption(_ref) {
60
61
  }),
61
62
  onClick: () => {
62
63
  setCommittedInputValue(label);
64
+ onSubmit === null || onSubmit === void 0 || onSubmit(label);
63
65
  setIsOpen(false);
64
66
  setHoveredOption(null);
65
67
  },
@@ -51,7 +51,7 @@ isDisabled) {
51
51
  */
52
52
  const focusDescendant = useCallback((descendantElement, index) => {
53
53
  var _inputRef$current;
54
- (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.setAttribute('aria-activedescendant', descendantElement.id);
54
+ (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.setAttribute('aria-activedescendant', descendantElement.id);
55
55
  setActiveDescendant({
56
56
  element: descendantElement,
57
57
  index
@@ -78,13 +78,13 @@ const Drawer = _ref => {
78
78
  } else {
79
79
  var _elementRefToFocusOnC;
80
80
  setIsClosing(true);
81
- if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 || (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 ? void 0 : _elementRefToFocusOnC.focus();else elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 ? void 0 : elementUsedToOpenModal.focus();
81
+ if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 || (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 || _elementRefToFocusOnC.focus();else elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 || elementUsedToOpenModal.focus();
82
82
  }
83
83
  }, [elementRefToFocusOnClose, isOpen]);
84
84
  useEffect(() => {
85
85
  if (isOpen && !isHidden) {
86
86
  var _closeButtonRef$curre;
87
- (_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0 ? void 0 : _closeButtonRef$curre.focus();
87
+ (_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0 || _closeButtonRef$curre.focus();
88
88
  }
89
89
  }, [isOpen, isHidden]);
90
90
  const handleTransitionEnd = () => {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._Qteuj{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._-ET4f{visibility:hidden}._8egja{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._CMPTJ{padding-top:8px}._c64Qn{margin-left:12px}";
4
- var styles = {"drawer":"_Qteuj","hidden":"_-ET4f","header":"_8egja","title":"_CMPTJ","closeButton":"_c64Qn"};
5
- var stylesheet="._Qteuj{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._-ET4f{visibility:hidden}._8egja{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._CMPTJ{padding-top:8px}._c64Qn{margin-left:12px}";
3
+ var css_248z = "._4ilZc{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._4QDJ5{visibility:hidden}._PV--s{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._gM59q{padding-top:8px}._PE8-R{margin-left:12px}";
4
+ var styles = {"drawer":"_4ilZc","hidden":"_4QDJ5","header":"_PV--s","title":"_gM59q","closeButton":"_PE8-R"};
5
+ var stylesheet="._4ilZc{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._4QDJ5{visibility:hidden}._PV--s{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._gM59q{padding-top:8px}._PE8-R{margin-left:12px}";
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 };
@@ -45,14 +45,14 @@ const FilterAnchor = /*#__PURE__*/forwardRef((_ref, ref) => {
45
45
  if (isDisabled) {
46
46
  e.stopPropagation(); // Prevents "click" events from occurring on parent elements
47
47
  } else {
48
- onClick === null || onClick === void 0 ? void 0 : onClick(e);
48
+ onClick === null || onClick === void 0 || onClick(e);
49
49
  }
50
50
  },
51
51
  onKeyDown: e => {
52
52
  if (isDisabled) {
53
53
  e.stopPropagation(); // Prevents "keydown" events from occurring on parent elements
54
54
  } else {
55
- onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
55
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
56
56
  }
57
57
  },
58
58
  disabled: undefined // This component uses aria-disabled instead of disabled
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._m5ztD{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._m5ztD:hover:not(._aZl-s){background-color:rgba(50,54,58,.08)}._m5ztD:hover:not(._aZl-s)._fwwx7{border-color:#085caf;background-color:rgba(11,110,208,.04)}._m5ztD:hover:not(._aZl-s)._fwwx7 ._748kD{color:#32363a}._m5ztD:hover:not(._aZl-s)._fwwx7 ._Sr5--{fill:#32363a}._m5ztD:hover:not(._aZl-s)._fwwx7 ._GwLBi{fill:#085caf}._m5ztD:hover:not(._aZl-s)._fwwx7 ._whzW2{background-color:rgba(11,110,208,.11)}._m5ztD:hover:not(._aZl-s)._fwwx7 ._whzW2 ._a-qvX{color:#085caf}._m5ztD:active:not(._aZl-s){background-color:#e8e9e9}._m5ztD:active:not(._aZl-s)._fwwx7{background-color:rgba(11,110,208,.11);border-color:#0854a1}._m5ztD:active:not(._aZl-s)._fwwx7 ._GwLBi{fill:#0854a1}._m5ztD:active:not(._aZl-s)._fwwx7 ._whzW2{background-color:rgba(11,110,208,.11)}._m5ztD:active:not(._aZl-s)._fwwx7 ._whzW2 ._a-qvX{color:#0854a1}._m5ztD._aZl-s{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._m5ztD._fwwx7{border-color:#0b6ed0}._Sr5--{fill:#515559;margin-right:4px}._748kD{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._748kD+._whzW2{margin-left:6px}._748kD._aZl-s{color:#74777a}._whzW2{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._a-qvX{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._GwLBi{fill:#515559}._GwLBi._aZl-s,._GwLBi._aZl-s._fwwx7{fill:rgba(116,119,122,.4)}._GwLBi._fwwx7{fill:#0b6ed0}._GwLBi._ilHGO{transform:rotate(-180deg)}._m5ztD.focus-visible,._m5ztD:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"button":"_m5ztD","disabled":"_aZl-s","selected":"_fwwx7","label":"_748kD","lockIcon":"_Sr5--","chevronIcon":"_GwLBi","selectedFiltersContainer":"_whzW2","selectedFilters":"_a-qvX","open":"_ilHGO"};
5
- var stylesheet="._m5ztD{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._m5ztD:hover:not(._aZl-s){background-color:rgba(50,54,58,.08)}._m5ztD:hover:not(._aZl-s)._fwwx7{border-color:#085caf;background-color:rgba(11,110,208,.04)}._m5ztD:hover:not(._aZl-s)._fwwx7 ._748kD{color:#32363a}._m5ztD:hover:not(._aZl-s)._fwwx7 ._Sr5--{fill:#32363a}._m5ztD:hover:not(._aZl-s)._fwwx7 ._GwLBi{fill:#085caf}._m5ztD:hover:not(._aZl-s)._fwwx7 ._whzW2{background-color:rgba(11,110,208,.11)}._m5ztD:hover:not(._aZl-s)._fwwx7 ._whzW2 ._a-qvX{color:#085caf}._m5ztD:active:not(._aZl-s){background-color:#e8e9e9}._m5ztD:active:not(._aZl-s)._fwwx7{background-color:rgba(11,110,208,.11);border-color:#0854a1}._m5ztD:active:not(._aZl-s)._fwwx7 ._GwLBi{fill:#0854a1}._m5ztD:active:not(._aZl-s)._fwwx7 ._whzW2{background-color:rgba(11,110,208,.11)}._m5ztD:active:not(._aZl-s)._fwwx7 ._whzW2 ._a-qvX{color:#0854a1}._m5ztD._aZl-s{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._m5ztD._fwwx7{border-color:#0b6ed0}._Sr5--{fill:#515559;margin-right:4px}._748kD{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._748kD+._whzW2{margin-left:6px}._748kD._aZl-s{color:#74777a}._whzW2{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._a-qvX{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._GwLBi{fill:#515559}._GwLBi._aZl-s,._GwLBi._aZl-s._fwwx7{fill:rgba(116,119,122,.4)}._GwLBi._fwwx7{fill:#0b6ed0}._GwLBi._ilHGO{transform:rotate(-180deg)}._m5ztD.focus-visible,._m5ztD:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._8TlXx{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._8TlXx:hover:not(._4Oi5J){background-color:rgba(50,54,58,.08)}._8TlXx:hover:not(._4Oi5J)._aspbU{border-color:#085caf;background-color:rgba(11,110,208,.04)}._8TlXx:hover:not(._4Oi5J)._aspbU ._1-el8{color:#32363a}._8TlXx:hover:not(._4Oi5J)._aspbU ._CC0Zp{fill:#32363a}._8TlXx:hover:not(._4Oi5J)._aspbU ._rYzDe{fill:#085caf}._8TlXx:hover:not(._4Oi5J)._aspbU ._Re9ut{background-color:rgba(11,110,208,.11)}._8TlXx:hover:not(._4Oi5J)._aspbU ._Re9ut ._1eWJ1{color:#085caf}._8TlXx:active:not(._4Oi5J){background-color:#e8e9e9}._8TlXx:active:not(._4Oi5J)._aspbU{background-color:rgba(11,110,208,.11);border-color:#0854a1}._8TlXx:active:not(._4Oi5J)._aspbU ._rYzDe{fill:#0854a1}._8TlXx:active:not(._4Oi5J)._aspbU ._Re9ut{background-color:rgba(11,110,208,.11)}._8TlXx:active:not(._4Oi5J)._aspbU ._Re9ut ._1eWJ1{color:#0854a1}._8TlXx._4Oi5J{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._8TlXx._aspbU{border-color:#0b6ed0}._CC0Zp{fill:#515559;margin-right:4px}._1-el8{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1-el8+._Re9ut{margin-left:6px}._1-el8._4Oi5J{color:#74777a}._Re9ut{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._1eWJ1{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._rYzDe{fill:#515559}._rYzDe._4Oi5J,._rYzDe._4Oi5J._aspbU{fill:rgba(116,119,122,.4)}._rYzDe._aspbU{fill:#0b6ed0}._rYzDe._VNa7g{transform:rotate(-180deg)}._8TlXx.focus-visible,._8TlXx:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"button":"_8TlXx","disabled":"_4Oi5J","selected":"_aspbU","label":"_1-el8","lockIcon":"_CC0Zp","chevronIcon":"_rYzDe","selectedFiltersContainer":"_Re9ut","selectedFilters":"_1eWJ1","open":"_VNa7g"};
5
+ var stylesheet="._8TlXx{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._8TlXx:hover:not(._4Oi5J){background-color:rgba(50,54,58,.08)}._8TlXx:hover:not(._4Oi5J)._aspbU{border-color:#085caf;background-color:rgba(11,110,208,.04)}._8TlXx:hover:not(._4Oi5J)._aspbU ._1-el8{color:#32363a}._8TlXx:hover:not(._4Oi5J)._aspbU ._CC0Zp{fill:#32363a}._8TlXx:hover:not(._4Oi5J)._aspbU ._rYzDe{fill:#085caf}._8TlXx:hover:not(._4Oi5J)._aspbU ._Re9ut{background-color:rgba(11,110,208,.11)}._8TlXx:hover:not(._4Oi5J)._aspbU ._Re9ut ._1eWJ1{color:#085caf}._8TlXx:active:not(._4Oi5J){background-color:#e8e9e9}._8TlXx:active:not(._4Oi5J)._aspbU{background-color:rgba(11,110,208,.11);border-color:#0854a1}._8TlXx:active:not(._4Oi5J)._aspbU ._rYzDe{fill:#0854a1}._8TlXx:active:not(._4Oi5J)._aspbU ._Re9ut{background-color:rgba(11,110,208,.11)}._8TlXx:active:not(._4Oi5J)._aspbU ._Re9ut ._1eWJ1{color:#0854a1}._8TlXx._4Oi5J{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._8TlXx._aspbU{border-color:#0b6ed0}._CC0Zp{fill:#515559;margin-right:4px}._1-el8{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1-el8+._Re9ut{margin-left:6px}._1-el8._4Oi5J{color:#74777a}._Re9ut{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._1eWJ1{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._rYzDe{fill:#515559}._rYzDe._4Oi5J,._rYzDe._4Oi5J._aspbU{fill:rgba(116,119,122,.4)}._rYzDe._aspbU{fill:#0b6ed0}._rYzDe._VNa7g{transform:rotate(-180deg)}._8TlXx.focus-visible,._8TlXx:focus-visible{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 };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._jyJDP{position:relative;display:inline-block;height:36px}._D5DoN{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._D5DoN:hover{cursor:pointer;background-color:#f5f5f5}._D5DoN:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._D5DoN:disabled,._D5DoN[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._D5DoN:disabled::-moz-placeholder,._D5DoN[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._D5DoN:disabled::placeholder,._D5DoN[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._D5DoN:invalid,._D5DoN[aria-invalid=true]{border-color:#b00}._D5DoN:invalid:focus,._D5DoN[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._D5DoN[type=number]{-moz-appearance:textfield}._D5DoN[type=number]::-webkit-inner-spin-button,._D5DoN[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._D5DoN::-moz-placeholder{color:#515559;opacity:1}._D5DoN::placeholder{color:#515559;opacity:1}._du0tJ{pointer-events:none;color:#515559;fill:#515559}._f02ri{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._utFGg{color:#515559;font-size:16px}._ZEkot{left:0;margin-left:6px}._wm8FI,._ZEkot{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._wm8FI{right:0;margin-right:6px}";
4
- var inputClasses = {"container":"_jyJDP","input":"_D5DoN","addOn":"_du0tJ","addOnVerticalCenter":"_f02ri","addOnTextNode":"_utFGg","leftAddOn":"_ZEkot","rightAddOn":"_wm8FI"};
5
- var stylesheet="._jyJDP{position:relative;display:inline-block;height:36px}._D5DoN{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._D5DoN:hover{cursor:pointer;background-color:#f5f5f5}._D5DoN:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._D5DoN:disabled,._D5DoN[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._D5DoN:disabled::-moz-placeholder,._D5DoN[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._D5DoN:disabled::placeholder,._D5DoN[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._D5DoN:invalid,._D5DoN[aria-invalid=true]{border-color:#b00}._D5DoN:invalid:focus,._D5DoN[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._D5DoN[type=number]{-moz-appearance:textfield}._D5DoN[type=number]::-webkit-inner-spin-button,._D5DoN[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._D5DoN::-moz-placeholder{color:#515559;opacity:1}._D5DoN::placeholder{color:#515559;opacity:1}._du0tJ{pointer-events:none;color:#515559;fill:#515559}._f02ri{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._utFGg{color:#515559;font-size:16px}._ZEkot{left:0;margin-left:6px}._wm8FI,._ZEkot{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._wm8FI{right:0;margin-right:6px}";
3
+ var css_248z = "._0Su89{position:relative;display:inline-block;height:36px}._5NUyG{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._5NUyG:hover{cursor:pointer;background-color:#f5f5f5}._5NUyG:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._5NUyG:disabled,._5NUyG[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._5NUyG:disabled::-moz-placeholder,._5NUyG[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5NUyG:disabled::placeholder,._5NUyG[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5NUyG:invalid,._5NUyG[aria-invalid=true]{border-color:#b00}._5NUyG:invalid:focus,._5NUyG[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._5NUyG[type=number]{-moz-appearance:textfield}._5NUyG[type=number]::-webkit-inner-spin-button,._5NUyG[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._5NUyG::-moz-placeholder{color:#515559;opacity:1}._5NUyG::placeholder{color:#515559;opacity:1}._fMwSh{pointer-events:none;color:#515559;fill:#515559}._wfdSj{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._nExvb{color:#515559;font-size:16px}._Gu9Sv{left:0;margin-left:6px}._Gu9Sv,._Oe2OU{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Oe2OU{right:0;margin-right:6px}";
4
+ var inputClasses = {"container":"_0Su89","input":"_5NUyG","addOn":"_fMwSh","addOnVerticalCenter":"_wfdSj","addOnTextNode":"_nExvb","leftAddOn":"_Gu9Sv","rightAddOn":"_Oe2OU"};
5
+ var stylesheet="._0Su89{position:relative;display:inline-block;height:36px}._5NUyG{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._5NUyG:hover{cursor:pointer;background-color:#f5f5f5}._5NUyG:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._5NUyG:disabled,._5NUyG[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._5NUyG:disabled::-moz-placeholder,._5NUyG[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5NUyG:disabled::placeholder,._5NUyG[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5NUyG:invalid,._5NUyG[aria-invalid=true]{border-color:#b00}._5NUyG:invalid:focus,._5NUyG[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._5NUyG[type=number]{-moz-appearance:textfield}._5NUyG[type=number]::-webkit-inner-spin-button,._5NUyG[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._5NUyG::-moz-placeholder{color:#515559;opacity:1}._5NUyG::placeholder{color:#515559;opacity:1}._fMwSh{pointer-events:none;color:#515559;fill:#515559}._wfdSj{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._nExvb{color:#515559;font-size:16px}._Gu9Sv{left:0;margin-left:6px}._Gu9Sv,._Oe2OU{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Oe2OU{right:0;margin-right:6px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { inputClasses as default, stylesheet };
@@ -0,0 +1,38 @@
1
+ import React__default from 'react';
2
+ import '../../utils/GridChildrenWrapper/index.js';
3
+ import { GridChildrenWrapper } from '../../utils/GridChildrenWrapper/GridChildrenWrapper.js';
4
+
5
+ const convertGridTemplateRowsOrColumns = rowsOrColumns => rowsOrColumns && rowsOrColumns.join(' ');
6
+ const convertGridTemplateAreas = areas => areas.map(row => "\"".concat(row.join(' '), "\"")).join(' ');
7
+ const LayoutGrid = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8
+ let {
9
+ columnGap,
10
+ rowGap,
11
+ gap,
12
+ rowHeights,
13
+ columnWidths,
14
+ areas,
15
+ area,
16
+ asChild = false,
17
+ 'data-testid': dataTestId,
18
+ children
19
+ } = _ref;
20
+ const calculatedStyle = {
21
+ display: 'grid',
22
+ columnGap,
23
+ rowGap,
24
+ gridGap: gap,
25
+ gridTemplateRows: convertGridTemplateRowsOrColumns(rowHeights),
26
+ gridTemplateColumns: convertGridTemplateRowsOrColumns(columnWidths),
27
+ gridTemplateAreas: convertGridTemplateAreas(areas),
28
+ gridArea: area
29
+ };
30
+ return /*#__PURE__*/React__default.createElement(GridChildrenWrapper, {
31
+ asChild: asChild,
32
+ style: calculatedStyle,
33
+ "data-testid": dataTestId,
34
+ ref: ref
35
+ }, children);
36
+ });
37
+
38
+ export { LayoutGrid };
@@ -0,0 +1,23 @@
1
+ import React__default from 'react';
2
+ import '../../utils/GridChildrenWrapper/index.js';
3
+ import { GridChildrenWrapper } from '../../utils/GridChildrenWrapper/GridChildrenWrapper.js';
4
+
5
+ const LayoutGridItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
6
+ let {
7
+ area,
8
+ asChild = false,
9
+ 'data-testid': dataTestId,
10
+ children
11
+ } = _ref;
12
+ const calculatedStyle = {
13
+ gridArea: area
14
+ };
15
+ return /*#__PURE__*/React__default.createElement(GridChildrenWrapper, {
16
+ asChild: asChild,
17
+ style: calculatedStyle,
18
+ "data-testid": dataTestId,
19
+ ref: ref
20
+ }, children);
21
+ });
22
+
23
+ export { LayoutGridItem };
@@ -0,0 +1,2 @@
1
+ export { LayoutGrid } from './LayoutGrid.js';
2
+ export { LayoutGridItem } from './LayoutGridItem.js';
@@ -0,0 +1,41 @@
1
+ import { useState } from 'react';
2
+ import '../../../hooks/index.js';
3
+ import { useMenuContext } from '../MenuContext.js';
4
+ import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
5
+
6
+ /*
7
+ this hook returns a method that
8
+ 1. Scrolls to the top or bottom boundary of a virtual list
9
+ 2. waits until the `visibleChildren` prop has updated completely
10
+ 3. Uses `visibleChildren`'s ref to focus.
11
+ */
12
+ const useFocusVirtualBoundary = function (visibleChildren) {
13
+ let backButtonRef = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
14
+ const [scrollComplete, setScrollComplete] = useState(null);
15
+ const {
16
+ virtuoso
17
+ } = useMenuContext();
18
+ useDidUpdate(() => {
19
+ window.requestAnimationFrame(() => {
20
+ if (scrollComplete && visibleChildren[visibleChildren.length - 1].element.current) {
21
+ if (scrollComplete === 'top' && backButtonRef !== null && backButtonRef !== void 0 && backButtonRef.current) {
22
+ backButtonRef === null || backButtonRef === void 0 || backButtonRef.current.focus();
23
+ } else {
24
+ var _visibleChildren;
25
+ (_visibleChildren = visibleChildren[scrollComplete === 'bottom' ? visibleChildren.length - 1 : 0]) === null || _visibleChildren === void 0 || (_visibleChildren = _visibleChildren.element) === null || _visibleChildren === void 0 || (_visibleChildren = _visibleChildren.current) === null || _visibleChildren === void 0 || _visibleChildren.focus();
26
+ }
27
+ setScrollComplete(null);
28
+ }
29
+ });
30
+ }, [visibleChildren, scrollComplete]);
31
+ return topOrBottom => {
32
+ var _virtuoso$current;
33
+ (_virtuoso$current = virtuoso.current) === null || _virtuoso$current === void 0 || _virtuoso$current.scrollToIndex({
34
+ index: topOrBottom === 'top' ? 0 : 'LAST',
35
+ behavior: 'auto'
36
+ });
37
+ setScrollComplete(topOrBottom);
38
+ };
39
+ };
40
+
41
+ export { useFocusVirtualBoundary as default };
@@ -0,0 +1,8 @@
1
+ import React__default, { useMemo } from 'react';
2
+
3
+ const useIsVirtualized = function (children) {
4
+ let isVirtualizationDisabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
5
+ return useMemo(() => !isVirtualizationDisabled && React__default.Children.count(children) >= 25, [children, isVirtualizationDisabled]);
6
+ };
7
+
8
+ export { useIsVirtualized as default };
@@ -0,0 +1,59 @@
1
+ import { useEffect } from 'react';
2
+ import useResizeObserver from '@react-hook/resize-observer';
3
+ import '../../../hooks/index.js';
4
+ import { useMenuContext } from '../MenuContext.js';
5
+ import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
6
+
7
+ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
8
+ var _process$env;
9
+ const {
10
+ setMaskHeight,
11
+ maskHeight,
12
+ setMaskWidth,
13
+ openPaneDepth,
14
+ open
15
+ } = useMenuContext();
16
+ const updateMaskDimensions = () => {
17
+ if (target) {
18
+ setMaskHeight(target.clientHeight);
19
+ setMaskWidth(target.clientWidth);
20
+ }
21
+ };
22
+ const auto = 'auto';
23
+
24
+ // resets dimensions on menu close, so that the top-level pane reopens immediately, rather than animating
25
+ useEffect(() => {
26
+ if (!open) {
27
+ setMaskHeight(auto);
28
+ setMaskWidth(auto);
29
+ }
30
+ }, [open, setMaskHeight, setMaskWidth]);
31
+
32
+ // handles async children adjustments by consumer
33
+ useDidUpdate(() => {
34
+ if (paneDepth === openPaneDepth) {
35
+ updateMaskDimensions();
36
+ }
37
+ },
38
+ // ignoring other dependencies because this should only run when the children change
39
+ [children]);
40
+
41
+ // handles returning to this pane by traversing backwards
42
+ useDidUpdate(() => {
43
+ if (!animatedLeft) {
44
+ updateMaskDimensions();
45
+ }
46
+ }, [animatedLeft]);
47
+
48
+ // handles dynamic resizing by both radix and virtuoso
49
+ useResizeObserver(target, () => {
50
+ if (openPaneDepth === paneDepth) {
51
+ updateMaskDimensions();
52
+ }
53
+ });
54
+
55
+ // determines if the mask is ready
56
+ return maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test';
57
+ };
58
+
59
+ export { useMaskDimensions as default };
@@ -8,7 +8,7 @@ const useMutationObserver = (target, options, onMutate) => useEffect(() => {
8
8
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9
9
  args[_key] = arguments[_key];
10
10
  }
11
- onMutate === null || onMutate === void 0 ? void 0 : onMutate(...args);
11
+ onMutate === null || onMutate === void 0 || onMutate(...args);
12
12
  });
13
13
  observer.observe(target, options);
14
14
  return () => observer.disconnect();