@qualtrics/ui-react 2.79.1 → 2.81.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 (361) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/__node_modules/@radix-ui/primitive/dist/index.js +5 -6
  3. package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +8 -7
  4. package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +71 -63
  5. package/dist/__node_modules/@radix-ui/react-context/dist/index.js +10 -14
  6. package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +2 -4
  7. package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +22 -15
  8. package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +89 -89
  9. package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +26 -19
  10. package/dist/__node_modules/@radix-ui/react-id/dist/index.js +5 -2
  11. package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +165 -129
  12. package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +139 -106
  13. package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -5
  14. package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +27 -20
  15. package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +4 -5
  16. package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +61 -38
  17. package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +8 -12
  18. package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +40 -35
  19. package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +5 -2
  20. package/dist/__shared/cjs/{index-91d2f6f8.js → index-2272eaad.js} +15 -9
  21. package/dist/__shared/cjs/{index-d4ec6b6f.js → index-7fd3ddfe.js} +2829 -2634
  22. package/dist/components/Accordion/Accordion.js +27 -21
  23. package/dist/components/Accordion/Accordion2.js +3 -3
  24. package/dist/components/Accordion/AccordionContext.js +6 -8
  25. package/dist/components/Accordion/AccordionHeader.js +13 -17
  26. package/dist/components/Accordion/AccordionPanel.js +7 -11
  27. package/dist/components/Accordion/AccordionSection.js +14 -11
  28. package/dist/components/Banner/Banner.js +10 -11
  29. package/dist/components/Banner/BannerBody.js +1 -3
  30. package/dist/components/Banner/BannerFooter.js +1 -3
  31. package/dist/components/Banner/BannerTitle.js +1 -3
  32. package/dist/components/BreakpointSwitch/Breakpoint.js +2 -5
  33. package/dist/components/BreakpointSwitch/BreakpointContext.js +3 -4
  34. package/dist/components/BreakpointSwitch/BreakpointSwitch.js +1 -3
  35. package/dist/components/Button/Button.js +3 -3
  36. package/dist/components/Button/Button2.js +19 -13
  37. package/dist/components/ButtonGroup/ButtonGroup.js +7 -7
  38. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  39. package/dist/components/Checkbox/Check.js +8 -6
  40. package/dist/components/Checkbox/Checkbox.js +31 -28
  41. package/dist/components/Checkbox/Checkbox2.js +3 -3
  42. package/dist/components/Checkbox/CheckboxField.js +14 -13
  43. package/dist/components/ColorPicker/Alpha.js +8 -12
  44. package/dist/components/ColorPicker/ColorPicker.js +67 -48
  45. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  46. package/dist/components/ColorPicker/ColorPickerFlyout.js +23 -24
  47. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +27 -22
  48. package/dist/components/ColorPicker/ColorPickerWIthNoColor.js +11 -7
  49. package/dist/components/ColorPicker/Hue.js +9 -13
  50. package/dist/components/ColorPicker/Palette.js +23 -21
  51. package/dist/components/ColorPicker/Saturation.js +11 -15
  52. package/dist/components/ColorPicker/utils/hexToHsv.js +4 -5
  53. package/dist/components/ColorPicker/utils/hsvToHex.js +3 -5
  54. package/dist/components/ColorPicker/utils/rgbToHex.js +3 -5
  55. package/dist/components/Combobox/Combobox.js +166 -133
  56. package/dist/components/Combobox/Combobox2.js +3 -3
  57. package/dist/components/Combobox/ComboboxContext.js +3 -4
  58. package/dist/components/Combobox/ComboboxHeader.js +6 -6
  59. package/dist/components/Combobox/ComboboxIcon.js +14 -14
  60. package/dist/components/Combobox/ComboboxInput.js +41 -43
  61. package/dist/components/Combobox/ComboboxList.js +20 -20
  62. package/dist/components/Combobox/ComboboxOption.js +9 -10
  63. package/dist/components/ConfigPane/ConfigPane.js +52 -36
  64. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  65. package/dist/components/Divider/Divider.js +4 -4
  66. package/dist/components/Divider/Divider2.js +3 -3
  67. package/dist/components/Dropdown/ChildIndexContext/index.js +7 -9
  68. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +18 -21
  69. package/dist/components/Dropdown/Dropdown.js +68 -43
  70. package/dist/components/Dropdown/Dropdown2.js +3 -3
  71. package/dist/components/Dropdown/DropdownButton.js +53 -47
  72. package/dist/components/Dropdown/DropdownContext.js +3 -4
  73. package/dist/components/Dropdown/DropdownHeader.js +12 -9
  74. package/dist/components/Dropdown/DropdownHeaderContext.js +3 -4
  75. package/dist/components/Dropdown/DropdownList.js +32 -32
  76. package/dist/components/Dropdown/DropdownOption.js +32 -30
  77. package/dist/components/Dropdown/DropdownSearch.js +12 -14
  78. package/dist/components/FilePicker/FilePicker.js +30 -25
  79. package/dist/components/FilePicker/FilePicker2.js +3 -3
  80. package/dist/components/FormField/Caption.js +3 -3
  81. package/dist/components/FormField/ErrorText.js +5 -5
  82. package/dist/components/FormField/FormField.js +27 -14
  83. package/dist/components/FormField/FormField2.js +3 -3
  84. package/dist/components/FormField/FormFieldContext.js +6 -13
  85. package/dist/components/FormField/HelperText.js +5 -5
  86. package/dist/components/FormField/ReadOnlyText.js +4 -6
  87. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +22 -15
  88. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  89. package/dist/components/Icon/Icon.js +6 -5
  90. package/dist/components/Icon/IconTypes.js +1 -0
  91. package/dist/components/IconButton/IconButton.js +25 -16
  92. package/dist/components/IconButton/IconButton2.js +3 -3
  93. package/dist/components/InlineInput/InlineInput.js +25 -14
  94. package/dist/components/InlineInput/InlineInput2.js +3 -3
  95. package/dist/components/Input/Input.js +42 -29
  96. package/dist/components/Input/Input2.js +3 -3
  97. package/dist/components/Input/InputField.js +26 -21
  98. package/dist/components/InputGroup/InputGroup.js +7 -7
  99. package/dist/components/InputGroup/InputGroup2.js +3 -3
  100. package/dist/components/InputGroup/InputGroupAddon.js +7 -6
  101. package/dist/components/InputGroup/InputGroupProvider.js +5 -8
  102. package/dist/components/Label/Label.js +8 -9
  103. package/dist/components/Label/Label2.js +3 -3
  104. package/dist/components/Link/Link.js +9 -7
  105. package/dist/components/Link/Link2.js +3 -3
  106. package/dist/components/LoadingSpinner/LoadingSpinner.js +22 -17
  107. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  108. package/dist/components/LogicEditor/ConditionContainer.js +8 -10
  109. package/dist/components/LogicEditor/ConditionSet.js +16 -21
  110. package/dist/components/LogicEditor/Controls.js +17 -20
  111. package/dist/components/LogicEditor/LogicEditor.js +33 -24
  112. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  113. package/dist/components/LogicEditor/LogicEditorContext.js +3 -4
  114. package/dist/components/LogicEditor/utils.js +5 -9
  115. package/dist/components/Modal/Modal.js +63 -49
  116. package/dist/components/Modal/Modal2.js +3 -3
  117. package/dist/components/Modal/ModalBody.js +5 -5
  118. package/dist/components/Modal/ModalContext.js +3 -4
  119. package/dist/components/Modal/ModalFooter.js +5 -5
  120. package/dist/components/Modal/ModalHeader.js +10 -12
  121. package/dist/components/NewMenu/BaseMenu.js +83 -54
  122. package/dist/components/NewMenu/Menu/Menu.js +10 -12
  123. package/dist/components/NewMenu/NewMenu.js +3 -3
  124. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +6 -7
  125. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +35 -30
  126. package/dist/components/NewMenu/parts/MenuAnchor.js +15 -16
  127. package/dist/components/NewMenu/parts/MenuContext.js +3 -4
  128. package/dist/components/NewMenu/parts/MenuItem.js +23 -17
  129. package/dist/components/NewMenu/parts/MenuSearchBox.js +4 -6
  130. package/dist/components/NewMenu/parts/SubmenuAnchor.js +5 -5
  131. package/dist/components/NumberStepper/NumberStepper.js +42 -37
  132. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  133. package/dist/components/NumberStepper/NumberStepperContext.js +3 -4
  134. package/dist/components/NumberStepper/NumberStepperDecrement.js +13 -15
  135. package/dist/components/NumberStepper/NumberStepperIncrement.js +13 -15
  136. package/dist/components/NumberStepper/NumberStepperInput.js +28 -30
  137. package/dist/components/PageLayout/MainContent.js +4 -4
  138. package/dist/components/PageLayout/PageContainer.js +4 -4
  139. package/dist/components/PageLayout/PageHeader.js +4 -4
  140. package/dist/components/PageLayout/PageLayout.js +3 -3
  141. package/dist/components/Pagination/Pagination.js +20 -16
  142. package/dist/components/Pagination/Pagination2.js +3 -3
  143. package/dist/components/Pagination/PaginationContext.js +3 -4
  144. package/dist/components/Pagination/PaginationNextButton.js +15 -17
  145. package/dist/components/Pagination/PaginationPageInput.js +24 -24
  146. package/dist/components/Pagination/PaginationPreviousButton.js +14 -16
  147. package/dist/components/Popover/Popover.js +27 -18
  148. package/dist/components/Popover/Popover2.js +3 -3
  149. package/dist/components/QuickSearch/QuickSearch.js +23 -16
  150. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  151. package/dist/components/QuickSearch/QuickSearchInput.js +33 -23
  152. package/dist/components/Radio/Radio.js +26 -28
  153. package/dist/components/Radio/Radio2.js +3 -3
  154. package/dist/components/Radio/RadioGroup.js +15 -16
  155. package/dist/components/Radio/RadioGroupContext.js +3 -4
  156. package/dist/components/Radio/RadioOption.js +11 -10
  157. package/dist/components/SearchInput/SearchInput.js +32 -25
  158. package/dist/components/SearchInput/SearchInput2.js +3 -3
  159. package/dist/components/SidebarNav/ExpandCollapseButton.js +4 -6
  160. package/dist/components/SidebarNav/SidebarNav.js +19 -13
  161. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  162. package/dist/components/SidebarNav/SidebarNavContext.js +3 -4
  163. package/dist/components/SidebarNav/SidebarNavLink.js +7 -10
  164. package/dist/components/Slider/RangeSlider.js +36 -24
  165. package/dist/components/Slider/Slider.js +29 -20
  166. package/dist/components/Slider/Slider2.js +3 -3
  167. package/dist/components/Slider/SliderButton.js +26 -17
  168. package/dist/components/Switch/Switch.js +19 -19
  169. package/dist/components/Switch/Switch2.js +3 -3
  170. package/dist/components/Switch/SwitchField.js +13 -13
  171. package/dist/components/Table/Table.js +5 -5
  172. package/dist/components/Table/Table2.js +3 -3
  173. package/dist/components/Table/TableBody.js +5 -5
  174. package/dist/components/Table/TableCell.js +5 -5
  175. package/dist/components/Table/TableHead.js +5 -5
  176. package/dist/components/Table/TableHeaderCell.js +5 -5
  177. package/dist/components/Table/TableRow.js +5 -5
  178. package/dist/components/Tabs/Tab.js +12 -13
  179. package/dist/components/Tabs/TabContextProvider.js +10 -13
  180. package/dist/components/Tabs/TabList.js +17 -13
  181. package/dist/components/Tabs/TabPanel.js +10 -11
  182. package/dist/components/Tabs/TabPanels.js +1 -3
  183. package/dist/components/Tabs/Tabs.js +20 -12
  184. package/dist/components/Tabs/Tabs2.js +3 -3
  185. package/dist/components/Tooltip/Tooltip.js +51 -29
  186. package/dist/components/Tooltip/Tooltip2.js +3 -3
  187. package/dist/components/UIProvider/A11yHelpersContext.js +3 -9
  188. package/dist/components/UIProvider/PortalTargetContext.js +6 -8
  189. package/dist/components/UIProvider/UIProvider.js +4 -5
  190. package/dist/components/deprecated_ColorPicker/Alpha.js +7 -7
  191. package/dist/components/deprecated_ColorPicker/ColorPicker.js +24 -13
  192. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  193. package/dist/components/deprecated_ColorPicker/HexInput.js +16 -9
  194. package/dist/components/deprecated_ColorPicker/Hue.js +6 -6
  195. package/dist/components/deprecated_ColorPicker/Saturation.js +14 -16
  196. package/dist/components/deprecated_ColorPicker/Swatch.js +7 -6
  197. package/dist/components/deprecated_ColorPicker/useMouseDrag.js +5 -1
  198. package/dist/components/deprecated_NumberStepper/NumberStepper.js +34 -25
  199. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  200. package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +3 -4
  201. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +14 -16
  202. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +14 -16
  203. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +32 -34
  204. package/dist/components/deprecated_Tabs/Tab.js +8 -9
  205. package/dist/components/deprecated_Tabs/TabContextProvider.js +3 -4
  206. package/dist/components/deprecated_Tabs/Tabs.js +13 -9
  207. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  208. package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +6 -6
  209. package/dist/components/deprecated_Toolbar/Toolbar.js +16 -11
  210. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  211. package/dist/components/deprecated_Toolbar/ToolbarContext.js +3 -4
  212. package/dist/components/deprecated_Toolbar/ToolbarPanel.js +16 -16
  213. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +44 -29
  214. package/dist/components/deprecated_Toolbar/ToolbarTab.js +19 -20
  215. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +34 -24
  216. package/dist/design-tokens/less/typography.js +3 -3
  217. package/dist/hooks/useBreakpoints/useBreakpoints.js +12 -4
  218. package/dist/hooks/useClickOutside/useClickOutside.js +1 -3
  219. package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -3
  220. package/dist/hooks/useControllableState/useControllableState.js +5 -2
  221. package/dist/hooks/useEventListener/useEventListener.js +6 -5
  222. package/dist/hooks/useFocusSequence/useFocusSequence.js +12 -12
  223. package/dist/hooks/useId/useId.js +4 -1
  224. package/dist/hooks/useIsFocused/useIsFocused.js +5 -1
  225. package/dist/hooks/useIsHovered/useIsHovered.js +5 -1
  226. package/dist/hooks/useIsTruncated/useIsTruncated.js +11 -16
  227. package/dist/hooks/useMouseDrag/useMouseDrag.js +5 -1
  228. package/dist/hooks/useOverlay/useOverlay.js +10 -10
  229. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  230. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +9 -2
  231. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  232. package/dist/icons/Icon.js +3 -3
  233. package/dist/icons/components/FrontlineEmployeeVoiceIcon.js +6 -0
  234. package/dist/icons/createIconComponent.js +7 -6
  235. package/dist/icons/index.d.ts +2 -0
  236. package/dist/icons/index.es.js +1 -0
  237. package/dist/icons/index.js +3 -1
  238. package/dist/index.d.ts +1 -0
  239. package/dist/index.es.js +1 -1
  240. package/dist/index.js +7 -3
  241. package/dist/next/AdvancedTable/AdvancedTable.js +192 -173
  242. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  243. package/dist/next/AdvancedTable/AdvancedTableCell.js +30 -25
  244. package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +12 -15
  245. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +83 -65
  246. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +25 -30
  247. package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +10 -9
  248. package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +12 -10
  249. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -7
  250. package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +4 -7
  251. package/dist/next/AdvancedTable/AdvancedTablePagination.js +9 -13
  252. package/dist/next/AdvancedTable/AdvancedTableRow.js +16 -16
  253. package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +7 -11
  254. package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +32 -36
  255. package/dist/next/AdvancedTable/useDragAndDropConfig.js +44 -53
  256. package/dist/next/Chat/Chat.js +5 -6
  257. package/dist/next/Chat/ChatContext.js +3 -4
  258. package/dist/next/Chat/ChatInput.js +24 -20
  259. package/dist/next/Chat/ChatMessage.js +16 -20
  260. package/dist/next/Chat/ChatMessageList.js +11 -10
  261. package/dist/next/Chat/ChatMessageText.js +1 -3
  262. package/dist/next/Chat/Loader.js +6 -9
  263. package/dist/next/Chat/MessageContext.js +3 -4
  264. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +28 -18
  265. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  266. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +8 -8
  267. package/dist/next/CollectionGrid/CollectionGrid.js +14 -12
  268. package/dist/next/CollectionGrid/CollectionGridItem.js +4 -5
  269. package/dist/next/Combobox/Combobox.js +48 -37
  270. package/dist/next/Combobox/Combobox2.js +3 -3
  271. package/dist/next/Combobox/ComboboxContext.js +3 -4
  272. package/dist/next/Combobox/ComboboxFlyout.js +12 -15
  273. package/dist/next/Combobox/ComboboxGroup.js +10 -14
  274. package/dist/next/Combobox/ComboboxGroupContext.js +9 -10
  275. package/dist/next/Combobox/ComboboxInput.js +37 -39
  276. package/dist/next/Combobox/ComboboxOption.js +15 -19
  277. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +9 -4
  278. package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +2 -3
  279. package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +10 -5
  280. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +12 -5
  281. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +5 -1
  282. package/dist/next/Drawer/Drawer.js +52 -27
  283. package/dist/next/Drawer/Drawer2.js +3 -3
  284. package/dist/next/FilterAnchor/FilterAnchor.js +21 -19
  285. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  286. package/dist/next/Form/FormFields/FormFieldWrapper.js +11 -11
  287. package/dist/next/Form/FormFields/InputField.js +3 -3
  288. package/dist/next/Form/useForm.js +25 -30
  289. package/dist/next/Form/useFormField.js +3 -4
  290. package/dist/next/Form/utils/createFormInstance.js +7 -9
  291. package/dist/next/Form/utils/useFormContext.js +3 -4
  292. package/dist/next/Indicator/Indicator.js +12 -8
  293. package/dist/next/Indicator/Indicator2.js +3 -3
  294. package/dist/next/Input/Input.js +49 -35
  295. package/dist/next/Input/Input2.js +3 -3
  296. package/dist/next/LayoutGrid/LayoutGrid.js +11 -12
  297. package/dist/next/LayoutGrid/LayoutGridItem.js +5 -6
  298. package/dist/next/LoadingSpinner/LoadingSpinner.js +22 -17
  299. package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
  300. package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +7 -4
  301. package/dist/next/Menu/Hooks/useMaskDimensions.js +6 -7
  302. package/dist/next/Menu/Hooks/usePaneSearch.js +50 -39
  303. package/dist/next/Menu/Menu.js +28 -15
  304. package/dist/next/Menu/Menu2.js +3 -3
  305. package/dist/next/Menu/MenuButton.js +17 -18
  306. package/dist/next/Menu/MenuContext.js +13 -18
  307. package/dist/next/Menu/MenuItem.js +28 -29
  308. package/dist/next/Menu/MenuPane.js +74 -61
  309. package/dist/next/Menu/MenuSearch.js +10 -10
  310. package/dist/next/Menu/PaneChildren.js +10 -15
  311. package/dist/next/Menu/SubMenu.js +91 -76
  312. package/dist/next/Pagination/Pagination.js +40 -31
  313. package/dist/next/Pagination/RowDisplayCount.js +6 -7
  314. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +49 -47
  315. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  316. package/dist/next/Select/Select.js +27 -30
  317. package/dist/next/Select/Select2.js +3 -3
  318. package/dist/next/Select/SelectButton.js +16 -15
  319. package/dist/next/Select/SelectContext.js +3 -4
  320. package/dist/next/Select/SelectItem.js +12 -13
  321. package/dist/next/Select/SelectPane.js +13 -14
  322. package/dist/next/Select/SelectedItems.js +16 -10
  323. package/dist/next/Select/SubSelect.js +21 -18
  324. package/dist/next/SplitButton/SplitButton.js +30 -22
  325. package/dist/next/SplitButton/SplitButton2.js +3 -3
  326. package/dist/next/SplitButton/SplitButtonOption.js +6 -6
  327. package/dist/next/Stack/Stack.js +26 -26
  328. package/dist/next/Stack/StackItem.js +12 -14
  329. package/dist/next/TimePicker/TimeDropdown.js +18 -18
  330. package/dist/next/TimePicker/TimeInput.js +38 -42
  331. package/dist/next/TimePicker/TimePicker.js +46 -25
  332. package/dist/next/TimePicker/TimePicker2.js +3 -3
  333. package/dist/next/TimePicker/TimePickerIcon.js +5 -7
  334. package/dist/next/TimePicker/utils.js +34 -13
  335. package/dist/next/ToggleButton/ToggleButton.js +14 -13
  336. package/dist/next/ToggleButton/ToggleButtonGroup.js +8 -10
  337. package/dist/next/ToggleButton/ToggleButtonGroupContext.js +3 -4
  338. package/dist/next/ToggleButton/styles.js +3 -3
  339. package/dist/next/Tooltip/Tooltip.js +5 -4
  340. package/dist/next/Typography/Typography.js +8 -7
  341. package/dist/next/index.d.ts +12 -2
  342. package/dist/next/index.js +2395 -2199
  343. package/dist/utils/Flyout/Flyout.js +14 -13
  344. package/dist/utils/Flyout/Flyout2.js +3 -3
  345. package/dist/utils/Flyout/FlyoutHeader.js +6 -6
  346. package/dist/utils/Flyout/FlyoutOption.js +11 -8
  347. package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
  348. package/dist/utils/Popper/Popper.js +71 -61
  349. package/dist/utils/Popper/PopperContext.js +5 -6
  350. package/dist/utils/Portal/Portal.js +7 -5
  351. package/dist/utils/Text/Text.js +10 -8
  352. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
  353. package/dist/utils/Translation/Translate.js +4 -7
  354. package/dist/utils/Translation/TranslationProvider.js +10 -14
  355. package/dist/utils/Translation/containsComponentOrElement.js +3 -1
  356. package/dist/utils/Translation/useTranslation.js +2 -3
  357. package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
  358. package/dist/utils/filterChildren/filterChildren.js +4 -4
  359. package/icons/package.json +1 -1
  360. package/next/package.json +2 -2
  361. package/package.json +4 -4
@@ -1,3 +1,5 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
2
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
1
3
  import React__default, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
2
4
  import classNames from 'classnames';
3
5
  import '../../../hooks/index.js';
@@ -16,43 +18,48 @@ import useEventListener from '../../../hooks/useEventListener/useEventListener.j
16
18
  // creates a searchBarConfig, which maps to an instance of `MenuSearch`
17
19
  // returns values that are necessary for use within pane
18
20
  function usePaneSearch(_ref) {
19
- let {
20
- isSearchable,
21
- externalSearchValue,
22
- onSearchValueChange,
23
- items,
24
- animatedLeft,
25
- animatedRight,
26
- menuParentDataTestId,
27
- id,
28
- flyoutNode,
29
- children = [],
30
- isSearchFilteringDisabled,
31
- backButtonRef,
32
- closeSubmenu,
33
- isVirtualized
34
- } = _ref;
21
+ let isSearchable = _ref.isSearchable,
22
+ externalSearchValue = _ref.externalSearchValue,
23
+ onSearchValueChange = _ref.onSearchValueChange,
24
+ items = _ref.items,
25
+ animatedLeft = _ref.animatedLeft,
26
+ animatedRight = _ref.animatedRight,
27
+ menuParentDataTestId = _ref.menuParentDataTestId,
28
+ id = _ref.id,
29
+ flyoutNode = _ref.flyoutNode,
30
+ _ref$children = _ref.children,
31
+ children = _ref$children === void 0 ? [] : _ref$children,
32
+ isSearchFilteringDisabled = _ref.isSearchFilteringDisabled,
33
+ backButtonRef = _ref.backButtonRef,
34
+ closeSubmenu = _ref.closeSubmenu,
35
+ isVirtualized = _ref.isVirtualized;
35
36
  const withinSelect = useSelectContext(true) !== null;
36
- const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
37
- const {
38
- translate
39
- } = useTranslation();
37
+ const _useControllableState = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue),
38
+ _useControllableState2 = _slicedToArray(_useControllableState, 2),
39
+ internalSearchValue = _useControllableState2[0],
40
+ setSearchValue = _useControllableState2[1];
41
+ const _useTranslation = useTranslation(),
42
+ translate = _useTranslation.translate;
40
43
  const noMatchesText = translate('menu.noItemsToDisplay');
41
44
  const searchPlaceholder = translate('searchText');
42
45
  const filteredChildren = useMemo(() => (Array.isArray(children) ? children : [children]).filter(_ref2 => {
43
- var _props$label, _searchMatcher$toLowe;
44
- let {
45
- props
46
- } = _ref2;
46
+ var _props$label, _searchMatcher$toLowe, _context;
47
+ let props = _ref2.props;
47
48
  if (!props || !internalSearchValue || isSearchFilteringDisabled) {
48
49
  return true;
49
50
  }
50
51
  const searchMatcher = (_props$label = props.label) !== null && _props$label !== void 0 ? _props$label : typeof props.children === 'string' ? props.children : undefined;
51
- return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
52
+ return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _includesInstanceProperty(_context = _searchMatcher$toLowe.call(searchMatcher)).call(_context, internalSearchValue.toLowerCase());
52
53
  }), [internalSearchValue, children, isSearchFilteringDisabled]);
53
54
  const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
54
- const [searchInput, setSearchInput] = useState(null);
55
- const [searchElement, setSearchElement] = useState(null);
55
+ const _useState = useState(null),
56
+ _useState2 = _slicedToArray(_useState, 2),
57
+ searchInput = _useState2[0],
58
+ setSearchInput = _useState2[1];
59
+ const _useState3 = useState(null),
60
+ _useState4 = _slicedToArray(_useState3, 2),
61
+ searchElement = _useState4[0],
62
+ setSearchElement = _useState4[1];
56
63
  const searchRef = useCallback(node => {
57
64
  var _node$querySelector;
58
65
  setSearchElement(node);
@@ -69,14 +76,18 @@ function usePaneSearch(_ref) {
69
76
  );
70
77
  };
71
78
  useEventListener(flyoutNode, 'keydown', e => {
72
- if (KEYS.NAVIGATE_UP.includes(e.key) && e.target === getFirstVisibleItem() || KEYS.NAVIGATE_DOWN.includes(e.key) && e.target === getLastVisibleItem()) {
79
+ var _context2, _context3;
80
+ if (_includesInstanceProperty(_context2 = KEYS.NAVIGATE_UP).call(_context2, e.key) && e.target === getFirstVisibleItem() || _includesInstanceProperty(_context3 = KEYS.NAVIGATE_DOWN).call(_context3, e.key) && e.target === getLastVisibleItem()) {
73
81
  searchInput === null || searchInput === void 0 || searchInput.focus();
74
82
  }
75
83
  }, {
76
84
  isDisabled: !isSearchable
77
85
  });
78
86
  const lastestKeyPressedInSearchInput = useRef(undefined);
79
- const [isComposing, setIsComposing] = useState(false);
87
+ const _useState5 = useState(false),
88
+ _useState6 = _slicedToArray(_useState5, 2),
89
+ isComposing = _useState6[0],
90
+ setIsComposing = _useState6[1];
80
91
  useEventListener(searchInput, 'compositionstart', () => {
81
92
  setIsComposing(true);
82
93
  });
@@ -84,12 +95,12 @@ function usePaneSearch(_ref) {
84
95
  setIsComposing(false);
85
96
  });
86
97
  useEventListener(searchInput, 'keydown', e => {
87
- var _e$target;
98
+ var _context4, _context5, _context6, _e$target, _context7;
88
99
  lastestKeyPressedInSearchInput.current = e.key;
89
100
  if (isComposing) {
90
101
  return;
91
102
  }
92
- if ([...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP].includes(e.key)) {
103
+ if (_includesInstanceProperty(_context4 = [...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP]).call(_context4, e.key)) {
93
104
  // prevent scrolling
94
105
  e.preventDefault();
95
106
  if (isVirtualized) {
@@ -98,7 +109,7 @@ function usePaneSearch(_ref) {
98
109
  var _getFirstVisibleItem;
99
110
  (_getFirstVisibleItem = getFirstVisibleItem()) === null || _getFirstVisibleItem === void 0 || _getFirstVisibleItem.focus();
100
111
  }
101
- } else if ([...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM].includes(e.key)) {
112
+ } else if (_includesInstanceProperty(_context5 = [...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM]).call(_context5, e.key)) {
102
113
  // prevent scrolling
103
114
  e.preventDefault();
104
115
  if (isVirtualized) {
@@ -107,23 +118,23 @@ function usePaneSearch(_ref) {
107
118
  var _getLastVisibleItem;
108
119
  (_getLastVisibleItem = getLastVisibleItem()) === null || _getLastVisibleItem === void 0 || _getLastVisibleItem.focus();
109
120
  }
110
- } else if (KEYS.CLOSE_SUBMENU.includes(e.key) && ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
121
+ } else if (_includesInstanceProperty(_context6 = KEYS.CLOSE_SUBMENU).call(_context6, e.key) && ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
111
122
  closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
112
- } else if (KEYS.IGNORED_BY_SEARCH_INPUT.includes(e.key)) {
123
+ } else if (_includesInstanceProperty(_context7 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context7, e.key)) {
113
124
  e.preventDefault();
114
125
  }
115
126
  });
116
127
  useEventListener(searchInput, 'blur', () => {
117
- const refocus = ![...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_UP, ...KEYS.NAVIGATE_TOP, ...KEYS.NAVIIGATE_BOTTOM].includes(lastestKeyPressedInSearchInput.current) && !animatedLeft && !animatedRight && searchInput;
128
+ var _context8;
129
+ const refocus = !_includesInstanceProperty(_context8 = [...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_UP, ...KEYS.NAVIGATE_TOP, ...KEYS.NAVIIGATE_BOTTOM]).call(_context8, lastestKeyPressedInSearchInput.current) && !animatedLeft && !animatedRight && searchInput;
118
130
  lastestKeyPressedInSearchInput.current = undefined;
119
131
  if (refocus) {
120
132
  searchInput.focus();
121
133
  }
122
134
  });
123
- const {
124
- searchBarConfigs,
125
- setSearchBarConfigs
126
- } = useMenuContext();
135
+ const _useMenuContext = useMenuContext(),
136
+ searchBarConfigs = _useMenuContext.searchBarConfigs,
137
+ setSearchBarConfigs = _useMenuContext.setSearchBarConfigs;
127
138
  const onInteractOutside = useCallback(e => searchBarConfigs.some(config => {
128
139
  var _config$searchElement;
129
140
  return (_config$searchElement = config.searchElement) === null || _config$searchElement === void 0 ? void 0 : _config$searchElement.contains(e.target);
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import React__default, { useRef, useState, useMemo } from 'react';
2
3
  import { Root as Root2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
3
4
  import { ResizeObserver } from '@juggle/resize-observer';
@@ -6,28 +7,37 @@ import '../../hooks/index.js';
6
7
  import useControllableState from '../../hooks/useControllableState/useControllableState.js';
7
8
  import useEventListener from '../../hooks/useEventListener/useEventListener.js';
8
9
 
9
- /* eslint-disable max-classes-per-file */
10
10
  const Menu = _ref => {
11
11
  var _process$env;
12
- let {
13
- 'data-testid': dataTestId,
14
- isOpen,
15
- onIsOpenChange,
16
- isDisabled,
17
- children,
18
- isVirtualizationDisabled,
19
- elementRefToFocusOnClose
20
- } = _ref;
12
+ let dataTestId = _ref['data-testid'],
13
+ isOpen = _ref.isOpen,
14
+ onIsOpenChange = _ref.onIsOpenChange,
15
+ isDisabled = _ref.isDisabled,
16
+ children = _ref.children,
17
+ isVirtualizationDisabled = _ref.isVirtualizationDisabled,
18
+ elementRefToFocusOnClose = _ref.elementRefToFocusOnClose;
21
19
  if (typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test' && window) {
22
20
  var _window$ResizeObserve, _window$PointerEvent;
23
21
  window.ResizeObserver = (_window$ResizeObserve = window.ResizeObserver) !== null && _window$ResizeObserve !== void 0 ? _window$ResizeObserve : ResizeObserver;
24
22
  window.PointerEvent = (_window$PointerEvent = window.PointerEvent) !== null && _window$PointerEvent !== void 0 ? _window$PointerEvent : PointerEvent;
25
23
  }
26
- const [open, setOpen] = useControllableState(isOpen, onIsOpenChange, isOpen);
24
+ const _useControllableState = useControllableState(isOpen, onIsOpenChange, isOpen),
25
+ _useControllableState2 = _slicedToArray(_useControllableState, 2),
26
+ open = _useControllableState2[0],
27
+ setOpen = _useControllableState2[1];
27
28
  const virtuoso = useRef(null);
28
- const [maskHeight, setMaskHeight] = useState(null);
29
- const [maskWidth, setMaskWidth] = useState(null);
30
- const [submenuDepths, setSubmenuDepths] = useState({});
29
+ const _useState = useState(null),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ maskHeight = _useState2[0],
32
+ setMaskHeight = _useState2[1];
33
+ const _useState3 = useState(null),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ maskWidth = _useState4[0],
36
+ setMaskWidth = _useState4[1];
37
+ const _useState5 = useState({}),
38
+ _useState6 = _slicedToArray(_useState5, 2),
39
+ submenuDepths = _useState6[0],
40
+ setSubmenuDepths = _useState6[1];
31
41
  const triggerRef = useRef(null);
32
42
  const registerSubmenu = (submenuId, submenuIsOpen, parentSubmenuId) => {
33
43
  setSubmenuDepths(subs => {
@@ -63,7 +73,10 @@ const Menu = _ref => {
63
73
  }
64
74
  return 0;
65
75
  }, [submenuDepths, open]);
66
- const [searchBarConfigs, setSearchBarConfigs] = useState([]);
76
+ const _useState7 = useState([]),
77
+ _useState8 = _slicedToArray(_useState7, 2),
78
+ searchBarConfigs = _useState8[0],
79
+ setSearchBarConfigs = _useState8[1];
67
80
  return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
68
81
  value: {
69
82
  dataTestId,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._1FGVz{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._1FGVz>._ze3f7{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._1FGVz>._ze3f7:hover:not([aria-disabled=true]){background-color:#f5f5f5}._1FGVz>._ze3f7.focus-visible,._1FGVz>._ze3f7:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1FGVz>._ze3f7+._AEzxj{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._1FGVz>._ze3f7[data-state=open]+._AEzxj{transform:rotate(-180deg) translateY(50%)}._1FGVz>._ze3f7[aria-disabled=true]{color:#74777a;cursor:not-allowed}._1FGVz>._ze3f7[aria-disabled=true]+._AEzxj{fill:#515559;opacity:.4}._zwSdl>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._zwSdl>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._GB9ec{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._GB9ec ._CkDGN{height:100%;overflow-y:scroll}._GB9ec._N31au{margin-left:30px;opacity:0}._GB9ec._Dhh5c{margin-left:-30px}._hP-Rw{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._hP-Rw._ukOgU{cursor:unset}._hP-Rw ._WPY8B{fill:#32363a;margin-right:4px}._hP-Rw:focus,._hP-Rw:hover:not(._hP-Rw._ukOgU){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._hP-Rw[aria-disabled=true]{cursor:not-allowed;opacity:.65}._hP-Rw._5rFrc{padding-right:32px}._hP-Rw._5rFrc ._AEzxj{position:absolute;height:100%;right:3px;fill:#515559}._hP-Rw._2uSAn{pointer-events:none}._s5gK-{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._s5gK-._VY-Zw{padding-top:52px}._YVTA4{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._sO-i1{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._sO-i1._Dhh5c{opacity:0}._sO-i1._Dhh5c>._kOKB-{margin-left:-30px}._sO-i1._N31au{opacity:0}._sO-i1._N31au>._kOKB-{margin-left:30px}._sO-i1>._kOKB-{transition:margin-left .35s;width:100%}._sO-i1._2uSAn{pointer-events:none}body.keyboard-user ._hP-Rw:hover:not(:focus){background-color:#fff;box-shadow:none}";
4
- var styles = {"buttonContainer":"_1FGVz","button":"_ze3f7","rightIcon":"_AEzxj","maskContainer":"_zwSdl","flyout":"_GB9ec","scrollContainer":"_CkDGN","animatedRight":"_N31au","animatedLeft":"_Dhh5c","menuItem":"_hP-Rw","noItems":"_ukOgU","backIcon":"_WPY8B","subMenu":"_5rFrc","unresponsive":"_2uSAn","stickyBox":"_s5gK-","isSearchable":"_VY-Zw","searchBoxesContainer":"_YVTA4","searchBox":"_sO-i1","searchInput":"_kOKB-"};
5
- var stylesheet="._1FGVz{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._1FGVz>._ze3f7{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._1FGVz>._ze3f7:hover:not([aria-disabled=true]){background-color:#f5f5f5}._1FGVz>._ze3f7.focus-visible,._1FGVz>._ze3f7:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1FGVz>._ze3f7+._AEzxj{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._1FGVz>._ze3f7[data-state=open]+._AEzxj{transform:rotate(-180deg) translateY(50%)}._1FGVz>._ze3f7[aria-disabled=true]{color:#74777a;cursor:not-allowed}._1FGVz>._ze3f7[aria-disabled=true]+._AEzxj{fill:#515559;opacity:.4}._zwSdl>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._zwSdl>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._GB9ec{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._GB9ec ._CkDGN{height:100%;overflow-y:scroll}._GB9ec._N31au{margin-left:30px;opacity:0}._GB9ec._Dhh5c{margin-left:-30px}._hP-Rw{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._hP-Rw._ukOgU{cursor:unset}._hP-Rw ._WPY8B{fill:#32363a;margin-right:4px}._hP-Rw:focus,._hP-Rw:hover:not(._hP-Rw._ukOgU){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._hP-Rw[aria-disabled=true]{cursor:not-allowed;opacity:.65}._hP-Rw._5rFrc{padding-right:32px}._hP-Rw._5rFrc ._AEzxj{position:absolute;height:100%;right:3px;fill:#515559}._hP-Rw._2uSAn{pointer-events:none}._s5gK-{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._s5gK-._VY-Zw{padding-top:52px}._YVTA4{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._sO-i1{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._sO-i1._Dhh5c{opacity:0}._sO-i1._Dhh5c>._kOKB-{margin-left:-30px}._sO-i1._N31au{opacity:0}._sO-i1._N31au>._kOKB-{margin-left:30px}._sO-i1>._kOKB-{transition:margin-left .35s;width:100%}._sO-i1._2uSAn{pointer-events:none}body.keyboard-user ._hP-Rw:hover:not(:focus){background-color:#fff;box-shadow:none}";
3
+ var css_248z = "._H6L-y{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._H6L-y>._RTzIz{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._H6L-y>._RTzIz:hover:not([aria-disabled=true]){background-color:#f5f5f5}._H6L-y>._RTzIz.focus-visible,._H6L-y>._RTzIz:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._H6L-y>._RTzIz+._mK8rA{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._H6L-y>._RTzIz[data-state=open]+._mK8rA{transform:rotate(-180deg) translateY(50%)}._H6L-y>._RTzIz[aria-disabled=true]{color:#74777a;cursor:not-allowed}._H6L-y>._RTzIz[aria-disabled=true]+._mK8rA{fill:#515559;opacity:.4}._7RZra>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._7RZra>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._dexOB{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._dexOB ._KSiXz{height:100%;overflow-y:scroll}._dexOB._r6ekj{margin-left:30px;opacity:0}._dexOB._wiBFA{margin-left:-30px}._IAWjR{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._IAWjR._lidjL{cursor:unset}._IAWjR ._q8kax{fill:#32363a;margin-right:4px}._IAWjR:focus,._IAWjR:hover:not(._IAWjR._lidjL){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IAWjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._IAWjR._XLsdT{padding-right:32px}._IAWjR._XLsdT ._mK8rA{position:absolute;height:100%;right:3px;fill:#515559}._IAWjR._rxmAl{pointer-events:none}._ZINqC{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._ZINqC._rDIRC{padding-top:52px}._xXryv{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._VCdAo{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._VCdAo._wiBFA{opacity:0}._VCdAo._wiBFA>._u9nJa{margin-left:-30px}._VCdAo._r6ekj{opacity:0}._VCdAo._r6ekj>._u9nJa{margin-left:30px}._VCdAo>._u9nJa{transition:margin-left .35s;width:100%}._VCdAo._rxmAl{pointer-events:none}body.keyboard-user ._IAWjR:hover:not(:focus){background-color:#fff;box-shadow:none}";
4
+ var styles = {"buttonContainer":"_H6L-y","button":"_RTzIz","rightIcon":"_mK8rA","maskContainer":"_7RZra","flyout":"_dexOB","scrollContainer":"_KSiXz","animatedRight":"_r6ekj","animatedLeft":"_wiBFA","menuItem":"_IAWjR","noItems":"_lidjL","backIcon":"_q8kax","subMenu":"_XLsdT","unresponsive":"_rxmAl","stickyBox":"_ZINqC","isSearchable":"_rDIRC","searchBoxesContainer":"_xXryv","searchBox":"_VCdAo","searchInput":"_u9nJa"};
5
+ var stylesheet="._H6L-y{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._H6L-y>._RTzIz{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._H6L-y>._RTzIz:hover:not([aria-disabled=true]){background-color:#f5f5f5}._H6L-y>._RTzIz.focus-visible,._H6L-y>._RTzIz:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._H6L-y>._RTzIz+._mK8rA{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._H6L-y>._RTzIz[data-state=open]+._mK8rA{transform:rotate(-180deg) translateY(50%)}._H6L-y>._RTzIz[aria-disabled=true]{color:#74777a;cursor:not-allowed}._H6L-y>._RTzIz[aria-disabled=true]+._mK8rA{fill:#515559;opacity:.4}._7RZra>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._7RZra>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._dexOB{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._dexOB ._KSiXz{height:100%;overflow-y:scroll}._dexOB._r6ekj{margin-left:30px;opacity:0}._dexOB._wiBFA{margin-left:-30px}._IAWjR{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._IAWjR._lidjL{cursor:unset}._IAWjR ._q8kax{fill:#32363a;margin-right:4px}._IAWjR:focus,._IAWjR:hover:not(._IAWjR._lidjL){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IAWjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._IAWjR._XLsdT{padding-right:32px}._IAWjR._XLsdT ._mK8rA{position:absolute;height:100%;right:3px;fill:#515559}._IAWjR._rxmAl{pointer-events:none}._ZINqC{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._ZINqC._rDIRC{padding-top:52px}._xXryv{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._VCdAo{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._VCdAo._wiBFA{opacity:0}._VCdAo._wiBFA>._u9nJa{margin-left:-30px}._VCdAo._r6ekj{opacity:0}._VCdAo._r6ekj>._u9nJa{margin-left:30px}._VCdAo>._u9nJa{transition:margin-left .35s;width:100%}._VCdAo._rxmAl{pointer-events:none}body.keyboard-user ._IAWjR:hover:not(:focus){background-color:#fff;box-shadow:none}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,4 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
3
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
2
4
  import React__default from 'react';
3
5
  import { Trigger } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
6
  import classNames from 'classnames';
@@ -17,6 +19,7 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
17
19
  import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
18
20
  import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
19
21
 
22
+ const _excluded = ["asChild", "children", "className"];
20
23
  const dispatchMouseEvent = (target, eventType) => {
21
24
  const event = new MouseEvent(eventType, {
22
25
  bubbles: true
@@ -24,14 +27,13 @@ const dispatchMouseEvent = (target, eventType) => {
24
27
  target.dispatchEvent(event);
25
28
  };
26
29
  const AsChildWrapper = _ref => {
27
- let {
28
- asChild,
29
- isTruncated,
30
- tooltipContent,
31
- children
32
- } = _ref;
30
+ var _context;
31
+ let asChild = _ref.asChild,
32
+ isTruncated = _ref.isTruncated,
33
+ tooltipContent = _ref.tooltipContent,
34
+ children = _ref.children;
33
35
  return asChild ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(Tooltip, {
34
- disabled: !isTruncated || !['string', 'number'].includes(typeof tooltipContent),
36
+ disabled: !isTruncated || !_includesInstanceProperty(_context = ['string', 'number']).call(_context, typeof tooltipContent),
35
37
  content: tooltipContent,
36
38
  delayMs: 250
37
39
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -39,17 +41,14 @@ const AsChildWrapper = _ref => {
39
41
  }, children));
40
42
  };
41
43
  const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
42
- let {
43
- asChild,
44
- children,
45
- className,
46
- ...rest
47
- } = _ref2;
48
- const {
49
- dataTestId: rootDataTestId,
50
- isDisabled,
51
- triggerRef
52
- } = useMenuContext();
44
+ let asChild = _ref2.asChild,
45
+ children = _ref2.children,
46
+ className = _ref2.className,
47
+ rest = _objectWithoutProperties(_ref2, _excluded);
48
+ const _useMenuContext = useMenuContext(),
49
+ rootDataTestId = _useMenuContext.dataTestId,
50
+ isDisabled = _useMenuContext.isDisabled,
51
+ triggerRef = _useMenuContext.triggerRef;
53
52
  const isTruncated = useIsTruncated(triggerRef);
54
53
  const withinSelect = useSelectContext(true) !== null;
55
54
 
@@ -3,25 +3,20 @@ import '../../utils/index.js';
3
3
  import { ChildIndexProvider, useChildIndex } from '../../components/Dropdown/ChildIndexContext/index.js';
4
4
  import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
5
5
 
6
- const {
7
- useContext: useMenuContext,
8
- Provider: MenuContextProvider
9
- } = createContextUtilities();
10
- const {
11
- useContext: useItemContext,
12
- Provider: ItemContextProvider
13
- } = createContextUtilities({});
14
- const {
15
- useContext: intermediaryUseMenuContext,
16
- Provider: IntermediaryMenuContextProvider
17
- } = createContextUtilities();
6
+ const _createContextUtiliti = createContextUtilities(),
7
+ useMenuContext = _createContextUtiliti.useContext,
8
+ MenuContextProvider = _createContextUtiliti.Provider;
9
+ const _createContextUtiliti2 = createContextUtilities({}),
10
+ useItemContext = _createContextUtiliti2.useContext,
11
+ ItemContextProvider = _createContextUtiliti2.Provider;
12
+ const _createContextUtiliti3 = createContextUtilities(),
13
+ intermediaryUseMenuContext = _createContextUtiliti3.useContext,
14
+ IntermediaryMenuContextProvider = _createContextUtiliti3.Provider;
18
15
  const PaneContextProvider = _ref => {
19
- let {
20
- items,
21
- setItems,
22
- value,
23
- children
24
- } = _ref;
16
+ let items = _ref.items,
17
+ setItems = _ref.setItems,
18
+ value = _ref.value,
19
+ children = _ref.children;
25
20
  return /*#__PURE__*/React__default.createElement(ChildIndexProvider, {
26
21
  items: items,
27
22
  setItems: setItems
@@ -1,4 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
3
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
2
4
  import React__default, { useRef, useMemo } from 'react';
3
5
  import { Item as Item2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
6
  import classNames from 'classnames';
@@ -12,38 +14,34 @@ import { conditionalA11yHelpersWrapper, useIsFocusVisible } from '../../componen
12
14
  import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
13
15
  import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
14
16
 
17
+ const _excluded = ["isDisabled", "asChild", "children", "className", "onSelect", "label"];
15
18
  const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
16
- let {
17
- isDisabled,
18
- asChild,
19
- children,
20
- className,
21
- onSelect,
22
- label,
23
- ...rest
24
- } = _ref;
19
+ let isDisabled = _ref.isDisabled,
20
+ asChild = _ref.asChild,
21
+ children = _ref.children,
22
+ className = _ref.className,
23
+ onSelect = _ref.onSelect,
24
+ label = _ref.label,
25
+ rest = _objectWithoutProperties(_ref, _excluded);
25
26
  const selectContext = useSelectContext(true);
26
27
  const withinSelect = selectContext !== null;
27
28
  const multiselect = selectContext === null || selectContext === void 0 ? void 0 : selectContext.multiselect;
28
29
  const itemRef = useRef(null);
29
- const {
30
- dataTestId: menuParentDataTestId,
31
- childIndex,
32
- isInteractive,
33
- closeSubmenu,
34
- flyoutNode,
35
- stickyBoxRef,
36
- focusVirtualBoundary,
37
- isVirtualized: paneIsVirtualized,
38
- maskIsReady
39
- } = usePaneContext(itemRef);
40
- const {
41
- virtualIndex
42
- } = useItemContext();
30
+ const _usePaneContext = usePaneContext(itemRef),
31
+ menuParentDataTestId = _usePaneContext.dataTestId,
32
+ childIndex = _usePaneContext.childIndex,
33
+ isInteractive = _usePaneContext.isInteractive,
34
+ closeSubmenu = _usePaneContext.closeSubmenu,
35
+ flyoutNode = _usePaneContext.flyoutNode,
36
+ stickyBoxRef = _usePaneContext.stickyBoxRef,
37
+ focusVirtualBoundary = _usePaneContext.focusVirtualBoundary,
38
+ paneIsVirtualized = _usePaneContext.isVirtualized,
39
+ maskIsReady = _usePaneContext.maskIsReady;
40
+ const _useItemContext = useItemContext(),
41
+ virtualIndex = _useItemContext.virtualIndex;
43
42
  const index = useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
44
- const {
45
- isFocusVisible
46
- } = useIsFocusVisible(true);
43
+ const _useIsFocusVisible = useIsFocusVisible(true),
44
+ isFocusVisible = _useIsFocusVisible.isFocusVisible;
47
45
  const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.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), String(index));
48
46
  const handleFocus = () => {
49
47
  if (itemRef.current && flyoutNode && isFocusVisible) {
@@ -67,16 +65,17 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
67
65
  "data-testid": dataTestId,
68
66
  ref: mergeRefs(ref, itemRef),
69
67
  onKeyDown: e => {
68
+ var _context, _context2, _context3;
70
69
  if (!isInteractive || multiselect && e.key === 'Enter') {
71
70
  e.preventDefault();
72
71
  return;
73
72
  }
74
- if (KEYS.CLOSE_SUBMENU.includes(e.key)) {
73
+ if (_includesInstanceProperty(_context = KEYS.CLOSE_SUBMENU).call(_context, e.key)) {
75
74
  closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
76
- } else if (paneIsVirtualized && KEYS.NAVIGATE_TOP.includes(e.key)) {
75
+ } else if (paneIsVirtualized && _includesInstanceProperty(_context2 = KEYS.NAVIGATE_TOP).call(_context2, e.key)) {
77
76
  e.preventDefault();
78
77
  focusVirtualBoundary('top');
79
- } else if (paneIsVirtualized && KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
78
+ } else if (paneIsVirtualized && _includesInstanceProperty(_context3 = KEYS.NAVIIGATE_BOTTOM).call(_context3, e.key)) {
80
79
  e.preventDefault();
81
80
  focusVirtualBoundary('bottom');
82
81
  }
@@ -1,4 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
3
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
4
  import React__default, { useState, useCallback, useRef, useMemo } from 'react';
3
5
  import { Portal as Portal2, Content as Content2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
6
  import classNames from 'classnames';
@@ -27,35 +29,45 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
27
29
  import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
28
30
  import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
29
31
 
32
+ const _excluded = ["placement", "children", "isSearchable", "searchValue", "onSearchValueChange", "isSearchFilteringDisabled", "className", "zIndex", "style"],
33
+ _excluded2 = ["id"];
30
34
  const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
31
35
  var _flyoutNode$parentNod, _process$env;
32
- let {
33
- placement,
34
- children,
35
- isSearchable,
36
- searchValue: externalSearchValue,
37
- onSearchValueChange,
38
- isSearchFilteringDisabled = false,
39
- className,
40
- zIndex = 1000,
41
- style,
42
- ...rest
43
- } = _ref;
44
- const [items, setItems] = useState([]);
45
- const [flyoutNode, setFlyoutNode] = useState(null);
36
+ let placement = _ref.placement,
37
+ children = _ref.children,
38
+ isSearchable = _ref.isSearchable,
39
+ externalSearchValue = _ref.searchValue,
40
+ onSearchValueChange = _ref.onSearchValueChange,
41
+ _ref$isSearchFilterin = _ref.isSearchFilteringDisabled,
42
+ isSearchFilteringDisabled = _ref$isSearchFilterin === void 0 ? false : _ref$isSearchFilterin,
43
+ className = _ref.className,
44
+ _ref$zIndex = _ref.zIndex,
45
+ zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
46
+ style = _ref.style,
47
+ rest = _objectWithoutProperties(_ref, _excluded);
48
+ const _useState = useState([]),
49
+ _useState2 = _slicedToArray(_useState, 2),
50
+ items = _useState2[0],
51
+ setItems = _useState2[1];
52
+ const _useState3 = useState(null),
53
+ _useState4 = _slicedToArray(_useState3, 2),
54
+ flyoutNode = _useState4[0],
55
+ setFlyoutNode = _useState4[1];
46
56
  const onRefChange = useCallback(node => setFlyoutNode(node), []);
47
57
  const stickyBoxRef = useRef(null);
48
58
  const selectContext = useSelectContext(true);
49
59
  const withinSelect = selectContext !== null;
50
- const {
51
- multiselect,
52
- showSelectedItemsPane
53
- } = selectContext !== null && selectContext !== void 0 ? selectContext : {};
60
+ const _ref2 = selectContext !== null && selectContext !== void 0 ? selectContext : {},
61
+ multiselect = _ref2.multiselect,
62
+ showSelectedItemsPane = _ref2.showSelectedItemsPane;
54
63
  const portalTarget = usePortalTarget();
55
- const [side, align] = useMemo(() => {
56
- var _placement$split, _placement$split2;
57
- return (_placement$split = placement === null || placement === void 0 || (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
58
- }, [placement]);
64
+ const _useMemo = useMemo(() => {
65
+ var _placement$split, _placement$split2;
66
+ return (_placement$split = placement === null || placement === void 0 || (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
67
+ }, [placement]),
68
+ _useMemo2 = _slicedToArray(_useMemo, 2),
69
+ side = _useMemo2[0],
70
+ align = _useMemo2[1];
59
71
  const thisPanesDepth = 1;
60
72
  const paneMaxHeight = useMemo(() => {
61
73
  let maxHeightString = '';
@@ -99,45 +111,48 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
99
111
  const paneBottomPadding = 4;
100
112
  const maskContainerId = useId();
101
113
  const maskContainer = document.getElementById(maskContainerId);
102
- const [transform, setTransform] = useState('');
114
+ const _useState5 = useState(''),
115
+ _useState6 = _slicedToArray(_useState5, 2),
116
+ transform = _useState6[0],
117
+ setTransform = _useState6[1];
103
118
  const target = (_flyoutNode$parentNod = flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.parentNode) !== null && _flyoutNode$parentNod !== void 0 ? _flyoutNode$parentNod : undefined;
104
- const {
105
- dataTestId: rootDataTestId,
106
- openPaneDepth,
107
- maskHeight,
108
- open,
109
- triggerRef,
110
- elementRefToFocusOnClose,
111
- searchBarConfigs,
112
- maskWidth,
113
- isVirtualizationDisabled
114
- } = useMenuContext();
119
+ const _useMenuContext = useMenuContext(),
120
+ rootDataTestId = _useMenuContext.dataTestId,
121
+ openPaneDepth = _useMenuContext.openPaneDepth,
122
+ maskHeight = _useMenuContext.maskHeight,
123
+ open = _useMenuContext.open,
124
+ triggerRef = _useMenuContext.triggerRef,
125
+ elementRefToFocusOnClose = _useMenuContext.elementRefToFocusOnClose,
126
+ searchBarConfigs = _useMenuContext.searchBarConfigs,
127
+ maskWidth = _useMenuContext.maskWidth,
128
+ isVirtualizationDisabled = _useMenuContext.isVirtualizationDisabled;
115
129
  const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
116
- const [isVirtualizationReady, setIsVirtualizationReady] = useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test');
130
+ const _useState7 = useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test'),
131
+ _useState8 = _slicedToArray(_useState7, 2),
132
+ isVirtualizationReady = _useState8[0],
133
+ setIsVirtualizationReady = _useState8[1];
117
134
  const animatedLeft = useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
118
135
  const dataTestId = getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE);
119
- const {
120
- noSearchResultsNode,
121
- onInteractOutside,
122
- filteredChildren
123
- } = usePaneSearch({
124
- isSearchable,
125
- externalSearchValue,
126
- onSearchValueChange,
127
- items,
128
- animatedLeft,
129
- animatedRight: false,
130
- menuParentDataTestId: dataTestId,
131
- id: useId(),
132
- flyoutNode,
133
- children,
134
- isSearchFilteringDisabled,
135
- isVirtualized
136
- });
136
+ const _usePaneSearch = usePaneSearch({
137
+ isSearchable,
138
+ externalSearchValue,
139
+ onSearchValueChange,
140
+ items,
141
+ animatedLeft,
142
+ animatedRight: false,
143
+ menuParentDataTestId: dataTestId,
144
+ id: useId(),
145
+ flyoutNode,
146
+ children,
147
+ isSearchFilteringDisabled,
148
+ isVirtualized
149
+ }),
150
+ noSearchResultsNode = _usePaneSearch.noSearchResultsNode,
151
+ onInteractOutside = _usePaneSearch.onInteractOutside,
152
+ filteredChildren = _usePaneSearch.filteredChildren;
137
153
  const focusVirtualBoundary = useFocusVirtualBoundary(items);
138
- const {
139
- isFocusVisible
140
- } = useIsFocusVisible();
154
+ const _useIsFocusVisible = useIsFocusVisible(),
155
+ isFocusVisible = _useIsFocusVisible.isFocusVisible;
141
156
  const menuSearchInputRef = useRef(null);
142
157
  const maskIsReady = useMaskDimensions(flyoutNode, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
143
158
  useDidUpdate(() => {
@@ -254,11 +269,9 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
254
269
  zIndex: zIndex + openPaneDepth,
255
270
  width: flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.clientWidth
256
271
  }
257
- }, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
258
- let {
259
- id,
260
- ...config
261
- } = _ref2;
272
+ }, searchBarConfigs.length ? searchBarConfigs.map(_ref3 => {
273
+ let id = _ref3.id,
274
+ config = _objectWithoutProperties(_ref3, _excluded2);
262
275
  return /*#__PURE__*/React__default.createElement(MenuSearch, _extends({
263
276
  key: id
264
277
  }, config, {