@qualtrics/ui-react 2.79.0 → 2.80.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 (360) hide show
  1. package/CHANGELOG.md +21 -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-7181e053.js → index-807921ca.js} +2830 -2635
  21. package/dist/__shared/cjs/{index-b77d5870.js → index-8c77a9ef.js} +15 -9
  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 +53 -37
  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 +38 -23
  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 +28 -21
  325. package/dist/next/SplitButton/SplitButton2.js +3 -3
  326. package/dist/next/SplitButton/SplitButtonOption.js +3 -5
  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.js +2377 -2193
  342. package/dist/utils/Flyout/Flyout.js +14 -13
  343. package/dist/utils/Flyout/Flyout2.js +3 -3
  344. package/dist/utils/Flyout/FlyoutHeader.js +6 -6
  345. package/dist/utils/Flyout/FlyoutOption.js +11 -8
  346. package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
  347. package/dist/utils/Popper/Popper.js +71 -61
  348. package/dist/utils/Popper/PopperContext.js +5 -6
  349. package/dist/utils/Portal/Portal.js +7 -5
  350. package/dist/utils/Text/Text.js +10 -8
  351. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
  352. package/dist/utils/Translation/Translate.js +4 -7
  353. package/dist/utils/Translation/TranslationProvider.js +10 -14
  354. package/dist/utils/Translation/containsComponentOrElement.js +3 -1
  355. package/dist/utils/Translation/useTranslation.js +2 -3
  356. package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
  357. package/dist/utils/filterChildren/filterChildren.js +4 -4
  358. package/icons/package.json +1 -1
  359. package/next/package.json +2 -2
  360. package/package.json +4 -4
@@ -4,12 +4,10 @@ const LOGIC_TYPE_SET = 'set';
4
4
  const SET_VALUE_ANY = 'any';
5
5
  const SET_VALUE_ALL = 'all';
6
6
  function constructValidDefaultState(_ref) {
7
- let {
8
- defaultValue,
9
- defaultSetValue,
10
- fixedSet,
11
- maxNestedSets
12
- } = _ref;
7
+ let defaultValue = _ref.defaultValue,
8
+ defaultSetValue = _ref.defaultSetValue,
9
+ fixedSet = _ref.fixedSet,
10
+ maxNestedSets = _ref.maxNestedSets;
13
11
  let clone;
14
12
  if (defaultValue) {
15
13
  clone = deepCopy(defaultValue);
@@ -132,9 +130,7 @@ function getPreviousItemId(conditionRoot, position, fixedSet) {
132
130
  function getParentSet(conditionRoot, position) {
133
131
  const positionFromRoot = walkToRoot(position);
134
132
  let set = conditionRoot;
135
- for (let {
136
- child
137
- } = positionFromRoot; child && child.child; child = child.child) {
133
+ for (let child = positionFromRoot.child; child && child.child; child = child.child) {
138
134
  set = set.conditions[child.index];
139
135
  }
140
136
  return set;
@@ -1,4 +1,7 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import _extends from '@babel/runtime-corejs3/helpers/extends';
3
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
4
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
2
5
  import React__default, { useState, useRef, useEffect, useMemo } from 'react';
3
6
  import classNames from 'classnames';
4
7
  import ReactFocusLock from 'react-focus-lock';
@@ -11,34 +14,36 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
11
14
  import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
12
15
  import Portal from '../../utils/Portal/Portal.js';
13
16
 
17
+ const _excluded = ["children"],
18
+ _excluded2 = ["open", "onDismiss", "zIndex", "children", "style", "disabledFocusLock"],
19
+ _excluded3 = ["maxSize", "isResponsive", "open", "children", "onClick", "className"],
20
+ _excluded4 = ["unstable_maxSize", "maxSize", "isResponsive", "open", "elementRefToFocusOnOpen", "unstable_isHeightExpandedToMaxSize", "onDismiss", "onClose", "elementRefToFocusOnClose", "children", "zIndex", "portalTarget", "dangerouslyDisableFocusLock", "onAnimationEnd"];
14
21
  const OverlayContainer = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
15
- let {
16
- children,
17
- ...rest
18
- } = _ref;
22
+ let children = _ref.children,
23
+ rest = _objectWithoutProperties(_ref, _excluded);
19
24
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
20
25
  ref: ref
21
26
  }), children, /*#__PURE__*/React__default.createElement("style", null, "body { overflow: hidden !important;}"));
22
27
  });
23
28
  OverlayContainer.displayName = 'OverlayContainer';
24
29
  const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
25
- let {
26
- open = false,
27
- onDismiss,
28
- zIndex,
29
- children,
30
- style = {},
31
- disabledFocusLock = false,
32
- ...rest
33
- } = _ref2;
30
+ let _ref2$open = _ref2.open,
31
+ open = _ref2$open === void 0 ? false : _ref2$open,
32
+ onDismiss = _ref2.onDismiss,
33
+ zIndex = _ref2.zIndex,
34
+ children = _ref2.children,
35
+ _ref2$style = _ref2.style,
36
+ style = _ref2$style === void 0 ? {} : _ref2$style,
37
+ _ref2$disabledFocusLo = _ref2.disabledFocusLock,
38
+ disabledFocusLock = _ref2$disabledFocusLo === void 0 ? false : _ref2$disabledFocusLo,
39
+ rest = _objectWithoutProperties(_ref2, _excluded2);
34
40
  const classes = classNames(styles.backdrop, {
35
41
  [styles.fadeEnter]: open,
36
42
  [styles.fadeLeave]: !open
37
43
  });
38
44
  const overlay = React__default.useRef(null);
39
- const {
40
- onClose
41
- } = useModalContext();
45
+ const _useModalContext = useModalContext(),
46
+ onClose = _useModalContext.onClose;
42
47
  const mouseDownTarget = React__default.useRef(null);
43
48
  const handleMouseDown = e => {
44
49
  mouseDownTarget.current = e.target;
@@ -77,8 +82,8 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
77
82
  // [HOME-3015] allow overlaying non-children elements (next/Select, next/Menu) to receive focus
78
83
  ,
79
84
  whiteList: element => {
80
- var _element$role;
81
- return !['treeitem', 'menuitem'].includes((_element$role = element === null || element === void 0 ? void 0 : element.role) !== null && _element$role !== void 0 ? _element$role : '');
85
+ var _context, _element$role;
86
+ return !_includesInstanceProperty(_context = ['treeitem', 'menuitem']).call(_context, (_element$role = element === null || element === void 0 ? void 0 : element.role) !== null && _element$role !== void 0 ? _element$role : '');
82
87
  },
83
88
  lockProps: {
84
89
  ...rest,
@@ -94,15 +99,15 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
94
99
  });
95
100
  Overlay.displayName = 'Overlay';
96
101
  const Dialog = /*#__PURE__*/React__default.forwardRef((_ref3, ref) => {
97
- let {
98
- maxSize,
99
- isResponsive = false,
100
- open = false,
101
- children,
102
- onClick,
103
- className,
104
- ...rest
105
- } = _ref3;
102
+ let maxSize = _ref3.maxSize,
103
+ _ref3$isResponsive = _ref3.isResponsive,
104
+ isResponsive = _ref3$isResponsive === void 0 ? false : _ref3$isResponsive,
105
+ _ref3$open = _ref3.open,
106
+ open = _ref3$open === void 0 ? false : _ref3$open,
107
+ children = _ref3.children,
108
+ onClick = _ref3.onClick,
109
+ className = _ref3.className,
110
+ rest = _objectWithoutProperties(_ref3, _excluded3);
106
111
  const getMaxSizeStyles = () => {
107
112
  if (maxSize) {
108
113
  const prefix = 'dialog';
@@ -121,9 +126,8 @@ const Dialog = /*#__PURE__*/React__default.forwardRef((_ref3, ref) => {
121
126
  }
122
127
  return '';
123
128
  };
124
- const {
125
- isHeightExpandedToMaxSize
126
- } = useModalContext();
129
+ const _useModalContext2 = useModalContext(),
130
+ isHeightExpandedToMaxSize = _useModalContext2.isHeightExpandedToMaxSize;
127
131
  const classes = classNames(styles.modal, styles[getMaxSizeStyles()], className, {
128
132
  [styles.growToMaxHeight]: isHeightExpandedToMaxSize,
129
133
  [styles.responsive]: isResponsive,
@@ -149,25 +153,35 @@ Dialog.displayName = 'Dialog';
149
153
  // Eventually all Modals should be responsive without a static width option
150
154
 
151
155
  const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
152
- let {
153
- unstable_maxSize,
154
- maxSize = unstable_maxSize,
155
- isResponsive = false,
156
- open = false,
157
- elementRefToFocusOnOpen,
158
- unstable_isHeightExpandedToMaxSize: isHeightExpandedToMaxSize = false,
159
- onDismiss,
160
- onClose,
161
- elementRefToFocusOnClose,
162
- children,
163
- zIndex = 1000,
164
- portalTarget,
165
- dangerouslyDisableFocusLock = false,
166
- onAnimationEnd: externalOnAnimationEnd,
167
- ...rest
168
- } = _ref4;
169
- const [isInDOM, setIsInDOM] = React__default.useState(false);
170
- const [elementUsedToOpenModal, setElementUsedToOpenModal] = useState();
156
+ let unstable_maxSize = _ref4.unstable_maxSize,
157
+ _ref4$maxSize = _ref4.maxSize,
158
+ maxSize = _ref4$maxSize === void 0 ? unstable_maxSize : _ref4$maxSize,
159
+ _ref4$isResponsive = _ref4.isResponsive,
160
+ isResponsive = _ref4$isResponsive === void 0 ? false : _ref4$isResponsive,
161
+ _ref4$open = _ref4.open,
162
+ open = _ref4$open === void 0 ? false : _ref4$open,
163
+ elementRefToFocusOnOpen = _ref4.elementRefToFocusOnOpen,
164
+ _ref4$unstable_isHeig = _ref4.unstable_isHeightExpandedToMaxSize,
165
+ isHeightExpandedToMaxSize = _ref4$unstable_isHeig === void 0 ? false : _ref4$unstable_isHeig,
166
+ onDismiss = _ref4.onDismiss,
167
+ onClose = _ref4.onClose,
168
+ elementRefToFocusOnClose = _ref4.elementRefToFocusOnClose,
169
+ children = _ref4.children,
170
+ _ref4$zIndex = _ref4.zIndex,
171
+ zIndex = _ref4$zIndex === void 0 ? 1000 : _ref4$zIndex,
172
+ portalTarget = _ref4.portalTarget,
173
+ _ref4$dangerouslyDisa = _ref4.dangerouslyDisableFocusLock,
174
+ dangerouslyDisableFocusLock = _ref4$dangerouslyDisa === void 0 ? false : _ref4$dangerouslyDisa,
175
+ externalOnAnimationEnd = _ref4.onAnimationEnd,
176
+ rest = _objectWithoutProperties(_ref4, _excluded4);
177
+ const _React$useState = React__default.useState(false),
178
+ _React$useState2 = _slicedToArray(_React$useState, 2),
179
+ isInDOM = _React$useState2[0],
180
+ setIsInDOM = _React$useState2[1];
181
+ const _useState = useState(),
182
+ _useState2 = _slicedToArray(_useState, 2),
183
+ elementUsedToOpenModal = _useState2[0],
184
+ setElementUsedToOpenModal = _useState2[1];
171
185
  const dialogRef = useRef(null);
172
186
  const closeIconButtonRef = useRef(null);
173
187
  useEffect(() => {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._0jSo-{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._0jSo-,._cQXS0{display:flex;overflow:auto}._cQXS0{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._0kWBe)._1tRyY{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._1tRyY{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._0kWBe)._tNJBs{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._tNJBs{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0kWBe)._tNJBs{max-width:700px}}:not(._0kWBe)._aVSrt{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._aVSrt{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0kWBe)._aVSrt{max-width:700px}}@media screen and (min-width:1024px){:not(._0kWBe)._aVSrt{max-width:1000px}}:not(._0kWBe)._0Rhao{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._0Rhao{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0kWBe)._0Rhao{max-width:700px}}@media screen and (min-width:1024px){:not(._0kWBe)._0Rhao{max-width:1000px}}@media screen and (min-width:1632px){:not(._0kWBe)._0Rhao{max-width:1600px;max-height:calc(100vh - 32px)}}._0kWBe{min-width:200px;width:calc(100% - 48px)}._0kWBe,._0kWBe._1tRyY{max-height:calc(100vh - 80px)}._0kWBe._1tRyY{max-width:480px;border-radius:8px}._0kWBe._tNJBs{max-width:700px}._0kWBe._aVSrt{max-width:1000px}._0kWBe._0Rhao{max-width:1600px;max-height:calc(100vh - 32px)}._GJyWL{height:calc(100vh - 80px)}@media screen and (max-width:479px){._GJyWL{height:100vh}}@media screen and (min-width:1632px){._GJyWL{height:calc(100vh - 32px)}}._sXPyb{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._miGiq{padding-right:64px}._19Cmz{position:absolute;top:14px;right:14px}._BqFYa{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._BqFYa,._gCDyr{padding:20px 24px}._gCDyr{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._gCDyr>*{margin:0 4px}._gCDyr>:first-child{margin-left:0}._gCDyr>:last-child{margin-right:0}@keyframes _fCLfc{0%{opacity:0}}._fCLfc{animation:_fCLfc ease-in both;animation-duration:.2s}@keyframes _ffg9p{to{opacity:0}}._ffg9p{animation:_ffg9p ease-out both;animation-duration:.2s}@keyframes _Xh2nt{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Xh2nt{animation:_Xh2nt both;animation-duration:.2s}@keyframes _-KYZr{to{transform:scale3d(.7,.7,.7);opacity:0}}._-KYZr{animation:_-KYZr both;animation-duration:.2s}";
4
- var styles = {"backdrop":"_0jSo-","modal":"_cQXS0","responsive":"_0kWBe","dialogSmall":"_1tRyY","dialogMedium":"_tNJBs","dialogLarge":"_aVSrt","dialogExtraLarge":"_0Rhao","growToMaxHeight":"_GJyWL","modalHeader":"_sXPyb","modalHeaderWithCloseButton":"_miGiq","modalHeaderCloseButton":"_19Cmz","modalBody":"_BqFYa","modalFooter":"_gCDyr","fadeEnter":"_fCLfc","fadeLeave":"_ffg9p","zoomEnter":"_Xh2nt","zoomLeave":"_-KYZr"};
5
- var stylesheet="._0jSo-{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._0jSo-,._cQXS0{display:flex;overflow:auto}._cQXS0{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._0kWBe)._1tRyY{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._1tRyY{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._0kWBe)._tNJBs{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._tNJBs{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0kWBe)._tNJBs{max-width:700px}}:not(._0kWBe)._aVSrt{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._aVSrt{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0kWBe)._aVSrt{max-width:700px}}@media screen and (min-width:1024px){:not(._0kWBe)._aVSrt{max-width:1000px}}:not(._0kWBe)._0Rhao{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0kWBe)._0Rhao{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0kWBe)._0Rhao{max-width:700px}}@media screen and (min-width:1024px){:not(._0kWBe)._0Rhao{max-width:1000px}}@media screen and (min-width:1632px){:not(._0kWBe)._0Rhao{max-width:1600px;max-height:calc(100vh - 32px)}}._0kWBe{min-width:200px;width:calc(100% - 48px)}._0kWBe,._0kWBe._1tRyY{max-height:calc(100vh - 80px)}._0kWBe._1tRyY{max-width:480px;border-radius:8px}._0kWBe._tNJBs{max-width:700px}._0kWBe._aVSrt{max-width:1000px}._0kWBe._0Rhao{max-width:1600px;max-height:calc(100vh - 32px)}._GJyWL{height:calc(100vh - 80px)}@media screen and (max-width:479px){._GJyWL{height:100vh}}@media screen and (min-width:1632px){._GJyWL{height:calc(100vh - 32px)}}._sXPyb{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._miGiq{padding-right:64px}._19Cmz{position:absolute;top:14px;right:14px}._BqFYa{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._BqFYa,._gCDyr{padding:20px 24px}._gCDyr{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._gCDyr>*{margin:0 4px}._gCDyr>:first-child{margin-left:0}._gCDyr>:last-child{margin-right:0}@keyframes _fCLfc{0%{opacity:0}}._fCLfc{animation:_fCLfc ease-in both;animation-duration:.2s}@keyframes _ffg9p{to{opacity:0}}._ffg9p{animation:_ffg9p ease-out both;animation-duration:.2s}@keyframes _Xh2nt{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Xh2nt{animation:_Xh2nt both;animation-duration:.2s}@keyframes _-KYZr{to{transform:scale3d(.7,.7,.7);opacity:0}}._-KYZr{animation:_-KYZr both;animation-duration:.2s}";
3
+ var css_248z = "._Rx4c8{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._jnEWW,._Rx4c8{display:flex;overflow:auto}._jnEWW{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._lPPwP)._oxReN{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._oxReN{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._lPPwP)._WM-7E{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._WM-7E{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._lPPwP)._WM-7E{max-width:700px}}:not(._lPPwP)._bZE5a{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._bZE5a{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._lPPwP)._bZE5a{max-width:700px}}@media screen and (min-width:1024px){:not(._lPPwP)._bZE5a{max-width:1000px}}:not(._lPPwP)._Hq5vs{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._Hq5vs{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._lPPwP)._Hq5vs{max-width:700px}}@media screen and (min-width:1024px){:not(._lPPwP)._Hq5vs{max-width:1000px}}@media screen and (min-width:1632px){:not(._lPPwP)._Hq5vs{max-width:1600px;max-height:calc(100vh - 32px)}}._lPPwP{min-width:200px;width:calc(100% - 48px)}._lPPwP,._lPPwP._oxReN{max-height:calc(100vh - 80px)}._lPPwP._oxReN{max-width:480px;border-radius:8px}._lPPwP._WM-7E{max-width:700px}._lPPwP._bZE5a{max-width:1000px}._lPPwP._Hq5vs{max-width:1600px;max-height:calc(100vh - 32px)}._l0NaS{height:calc(100vh - 80px)}@media screen and (max-width:479px){._l0NaS{height:100vh}}@media screen and (min-width:1632px){._l0NaS{height:calc(100vh - 32px)}}._7SqsY{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._6KLzR{padding-right:64px}._lGeF6{position:absolute;top:14px;right:14px}._Q-Ryc{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._ajU7G,._Q-Ryc{padding:20px 24px}._ajU7G{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._ajU7G>*{margin:0 4px}._ajU7G>:first-child{margin-left:0}._ajU7G>:last-child{margin-right:0}@keyframes _Kgxhf{0%{opacity:0}}._Kgxhf{animation:_Kgxhf ease-in both;animation-duration:.2s}@keyframes _OQyi8{to{opacity:0}}._OQyi8{animation:_OQyi8 ease-out both;animation-duration:.2s}@keyframes _v0nA2{0%{transform:scale3d(.7,.7,.7);opacity:0}}._v0nA2{animation:_v0nA2 both;animation-duration:.2s}@keyframes _pkDFv{to{transform:scale3d(.7,.7,.7);opacity:0}}._pkDFv{animation:_pkDFv both;animation-duration:.2s}";
4
+ var styles = {"backdrop":"_Rx4c8","modal":"_jnEWW","responsive":"_lPPwP","dialogSmall":"_oxReN","dialogMedium":"_WM-7E","dialogLarge":"_bZE5a","dialogExtraLarge":"_Hq5vs","growToMaxHeight":"_l0NaS","modalHeader":"_7SqsY","modalHeaderWithCloseButton":"_6KLzR","modalHeaderCloseButton":"_lGeF6","modalBody":"_Q-Ryc","modalFooter":"_ajU7G","fadeEnter":"_Kgxhf","fadeLeave":"_OQyi8","zoomEnter":"_v0nA2","zoomLeave":"_pkDFv"};
5
+ var stylesheet="._Rx4c8{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._jnEWW,._Rx4c8{display:flex;overflow:auto}._jnEWW{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._lPPwP)._oxReN{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._oxReN{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._lPPwP)._WM-7E{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._WM-7E{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._lPPwP)._WM-7E{max-width:700px}}:not(._lPPwP)._bZE5a{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._bZE5a{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._lPPwP)._bZE5a{max-width:700px}}@media screen and (min-width:1024px){:not(._lPPwP)._bZE5a{max-width:1000px}}:not(._lPPwP)._Hq5vs{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._lPPwP)._Hq5vs{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._lPPwP)._Hq5vs{max-width:700px}}@media screen and (min-width:1024px){:not(._lPPwP)._Hq5vs{max-width:1000px}}@media screen and (min-width:1632px){:not(._lPPwP)._Hq5vs{max-width:1600px;max-height:calc(100vh - 32px)}}._lPPwP{min-width:200px;width:calc(100% - 48px)}._lPPwP,._lPPwP._oxReN{max-height:calc(100vh - 80px)}._lPPwP._oxReN{max-width:480px;border-radius:8px}._lPPwP._WM-7E{max-width:700px}._lPPwP._bZE5a{max-width:1000px}._lPPwP._Hq5vs{max-width:1600px;max-height:calc(100vh - 32px)}._l0NaS{height:calc(100vh - 80px)}@media screen and (max-width:479px){._l0NaS{height:100vh}}@media screen and (min-width:1632px){._l0NaS{height:calc(100vh - 32px)}}._7SqsY{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._6KLzR{padding-right:64px}._lGeF6{position:absolute;top:14px;right:14px}._Q-Ryc{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._ajU7G,._Q-Ryc{padding:20px 24px}._ajU7G{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._ajU7G>*{margin:0 4px}._ajU7G>:first-child{margin-left:0}._ajU7G>:last-child{margin-right:0}@keyframes _Kgxhf{0%{opacity:0}}._Kgxhf{animation:_Kgxhf ease-in both;animation-duration:.2s}@keyframes _OQyi8{to{opacity:0}}._OQyi8{animation:_OQyi8 ease-out both;animation-duration:.2s}@keyframes _v0nA2{0%{transform:scale3d(.7,.7,.7);opacity:0}}._v0nA2{animation:_v0nA2 both;animation-duration:.2s}@keyframes _pkDFv{to{transform:scale3d(.7,.7,.7);opacity:0}}._pkDFv{animation:_pkDFv both;animation-duration:.2s}";
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,14 +1,14 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import classNames from 'classnames';
4
5
  import styles from './Modal2.js';
5
6
 
7
+ const _excluded = ["children", "className"];
6
8
  const ModalBody = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
7
- let {
8
- children,
9
- className,
10
- ...rest
11
- } = _ref;
9
+ let children = _ref.children,
10
+ className = _ref.className,
11
+ rest = _objectWithoutProperties(_ref, _excluded);
12
12
  const classes = classNames(styles.modalBody, className);
13
13
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
14
14
  ref: ref,
@@ -1,9 +1,8 @@
1
1
  import '../../utils/index.js';
2
2
  import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
3
3
 
4
- const {
5
- Provider: ModalContextProvider,
6
- useContext: useModalContext
7
- } = createContextUtilities({});
4
+ const _createContextUtiliti = createContextUtilities({}),
5
+ ModalContextProvider = _createContextUtiliti.Provider,
6
+ useModalContext = _createContextUtiliti.useContext;
8
7
 
9
8
  export { ModalContextProvider, useModalContext as default };
@@ -1,14 +1,14 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import classNames from 'classnames';
4
5
  import styles from './Modal2.js';
5
6
 
7
+ const _excluded = ["children", "className"];
6
8
  const ModalFooter = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
7
- let {
8
- children,
9
- className,
10
- ...rest
11
- } = _ref;
9
+ let children = _ref.children,
10
+ className = _ref.className,
11
+ rest = _objectWithoutProperties(_ref, _excluded);
12
12
  const classes = classNames(styles.modalFooter, className);
13
13
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
14
14
  ref: ref,
@@ -1,4 +1,5 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import classNames from 'classnames';
4
5
  import styles from './Modal2.js';
@@ -9,22 +10,19 @@ import useModalContext from './ModalContext.js';
9
10
  import useTranslation from '../../utils/Translation/useTranslation.js';
10
11
  import IconButton from '../IconButton/IconButton.js';
11
12
 
13
+ const _excluded = ["children", "className"];
12
14
  const ModalHeader = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
13
- let {
14
- children,
15
- className,
16
- ...rest
17
- } = _ref;
18
- const {
19
- onClose,
20
- closeIconButtonRef
21
- } = useModalContext();
15
+ let children = _ref.children,
16
+ className = _ref.className,
17
+ rest = _objectWithoutProperties(_ref, _excluded);
18
+ const _useModalContext = useModalContext(),
19
+ onClose = _useModalContext.onClose,
20
+ closeIconButtonRef = _useModalContext.closeIconButtonRef;
22
21
  const classes = classNames(styles.modalHeader, className, {
23
22
  [styles.modalHeaderWithCloseButton]: onClose
24
23
  });
25
- const {
26
- translate
27
- } = useTranslation();
24
+ const _useTranslation = useTranslation(),
25
+ translate = _useTranslation.translate;
28
26
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
29
27
  ref: ref,
30
28
  className: classes
@@ -1,4 +1,7 @@
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';
4
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
2
5
  import React__default, { useRef, useState, useEffect, useCallback, isValidElement } from 'react';
3
6
  import classNames from 'classnames';
4
7
  import menuStyles from './NewMenu.js';
@@ -25,64 +28,88 @@ import { offset } from '@floating-ui/react-dom';
25
28
  import { SUBMENU_POPPER_OFFSET, FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
26
29
  import ArrowNav from './parts/ArrowNav/ArrowNav.js';
27
30
 
31
+ const _excluded = ["anchor", "aria-label", "aria-labelledby", "children", "className", "flyoutClassName", "defaultLabel", "defaultValue", "disabled", "highlightedIndex", "id", "label", "maxHeight", "menuType", "onClick", "onClickAway", "onHighlightedIndexChange", "onKeyDown", "onIsOpenChange", "onSelectedValueChange", "isOpen", "placement", "portalTarget", "searchable", "isSearchFilteringDisabled", "searchValue", "onSearchValueChange", "selectable", "selectedValue", "unstable_isLoading", "unstable_isMultiSelect", "isMultiSelect", "zIndex", "maxFlyoutWidth", "isVirtualized", "private_isClosedMenuOpenedOnAnchorClick", "private_isFirstElementHighlightedOnUserActivatedOpen"];
28
32
  const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
29
33
  var _anchorProps$id, _useMenuContext, _anchorProps$ariaLab, _anchorProps$ariaLab2, _anchorProps$tabIndex, _anchorProps$role, _anchorProps$ariaDis, _anchorRef$current;
30
- let {
31
- anchor: externalAnchor,
32
- 'aria-label': externalAriaLabel,
33
- 'aria-labelledby': externalAriaLabelledBy,
34
- children,
35
- className,
36
- flyoutClassName,
37
- defaultLabel,
38
- defaultValue = null,
39
- disabled,
40
- highlightedIndex: externalHighlightedIndex,
41
- id: externalId,
42
- label,
43
- maxHeight,
44
- menuType,
45
- onClick,
46
- onClickAway,
47
- onHighlightedIndexChange,
48
- onKeyDown,
49
- onIsOpenChange,
50
- onSelectedValueChange,
51
- isOpen: externalIsOpen,
52
- placement = 'bottom-start',
53
- portalTarget,
54
- searchable = false,
55
- isSearchFilteringDisabled = false,
56
- searchValue: externalSearchValue,
57
- onSearchValueChange: externalOnSearchValueChange,
58
- selectable = false,
59
- selectedValue: externalSelectedValue,
60
- unstable_isLoading = false,
61
- unstable_isMultiSelect = false,
62
- // isMultiSelect prop added 8/28/20
63
- isMultiSelect = unstable_isMultiSelect,
64
- zIndex = 1000,
65
- maxFlyoutWidth,
66
- isVirtualized = false,
67
- private_isClosedMenuOpenedOnAnchorClick = true,
68
- private_isFirstElementHighlightedOnUserActivatedOpen = true,
69
- ...rest
70
- } = _ref;
34
+ let externalAnchor = _ref.anchor,
35
+ externalAriaLabel = _ref['aria-label'],
36
+ externalAriaLabelledBy = _ref['aria-labelledby'],
37
+ children = _ref.children,
38
+ className = _ref.className,
39
+ flyoutClassName = _ref.flyoutClassName,
40
+ defaultLabel = _ref.defaultLabel,
41
+ _ref$defaultValue = _ref.defaultValue,
42
+ defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue,
43
+ disabled = _ref.disabled,
44
+ externalHighlightedIndex = _ref.highlightedIndex,
45
+ externalId = _ref.id,
46
+ label = _ref.label,
47
+ maxHeight = _ref.maxHeight,
48
+ menuType = _ref.menuType,
49
+ onClick = _ref.onClick,
50
+ onClickAway = _ref.onClickAway,
51
+ onHighlightedIndexChange = _ref.onHighlightedIndexChange,
52
+ onKeyDown = _ref.onKeyDown,
53
+ onIsOpenChange = _ref.onIsOpenChange,
54
+ onSelectedValueChange = _ref.onSelectedValueChange,
55
+ externalIsOpen = _ref.isOpen,
56
+ _ref$placement = _ref.placement,
57
+ placement = _ref$placement === void 0 ? 'bottom-start' : _ref$placement,
58
+ portalTarget = _ref.portalTarget,
59
+ _ref$searchable = _ref.searchable,
60
+ searchable = _ref$searchable === void 0 ? false : _ref$searchable,
61
+ _ref$isSearchFilterin = _ref.isSearchFilteringDisabled,
62
+ isSearchFilteringDisabled = _ref$isSearchFilterin === void 0 ? false : _ref$isSearchFilterin,
63
+ externalSearchValue = _ref.searchValue,
64
+ externalOnSearchValueChange = _ref.onSearchValueChange,
65
+ _ref$selectable = _ref.selectable,
66
+ selectable = _ref$selectable === void 0 ? false : _ref$selectable,
67
+ externalSelectedValue = _ref.selectedValue,
68
+ _ref$unstable_isLoadi = _ref.unstable_isLoading,
69
+ unstable_isLoading = _ref$unstable_isLoadi === void 0 ? false : _ref$unstable_isLoadi,
70
+ _ref$unstable_isMulti = _ref.unstable_isMultiSelect,
71
+ unstable_isMultiSelect = _ref$unstable_isMulti === void 0 ? false : _ref$unstable_isMulti,
72
+ _ref$isMultiSelect = _ref.isMultiSelect,
73
+ isMultiSelect = _ref$isMultiSelect === void 0 ? unstable_isMultiSelect : _ref$isMultiSelect,
74
+ _ref$zIndex = _ref.zIndex,
75
+ zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
76
+ maxFlyoutWidth = _ref.maxFlyoutWidth,
77
+ _ref$isVirtualized = _ref.isVirtualized,
78
+ isVirtualized = _ref$isVirtualized === void 0 ? false : _ref$isVirtualized,
79
+ _ref$private_isClosed = _ref.private_isClosedMenuOpenedOnAnchorClick,
80
+ private_isClosedMenuOpenedOnAnchorClick = _ref$private_isClosed === void 0 ? true : _ref$private_isClosed,
81
+ _ref$private_isFirstE = _ref.private_isFirstElementHighlightedOnUserActivatedOpen,
82
+ private_isFirstElementHighlightedOnUserActivatedOpen = _ref$private_isFirstE === void 0 ? true : _ref$private_isFirstE,
83
+ rest = _objectWithoutProperties(_ref, _excluded);
71
84
  const anchorProps = externalAnchor === null || externalAnchor === void 0 ? void 0 : externalAnchor.props;
72
85
  const anchorId = useId((_anchorProps$id = anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.id) !== null && _anchorProps$id !== void 0 ? _anchorProps$id : externalId);
73
86
  const arrowNavId = "".concat(anchorId, "-menu");
74
87
  const parentCloseAndFocusAnchor = (_useMenuContext = useMenuContext()) === null || _useMenuContext === void 0 ? void 0 : _useMenuContext.closeAndFocusAnchor;
75
88
  const isSubmenu = Boolean(parentCloseAndFocusAnchor);
76
- const {
77
- translate
78
- } = useTranslation();
89
+ const _useTranslation = useTranslation(),
90
+ translate = _useTranslation.translate;
79
91
  const noMenuItemsToDisplayText = translate('menu.noItemsToDisplay');
80
92
  const anchorRef = useRef(null);
81
- const [isOpen, setIsOpen] = useControllableState(false, onIsOpenChange, externalIsOpen);
82
- const [highlightedIndex, setHighlightedIndex] = useControllableState(-1, onHighlightedIndexChange, externalHighlightedIndex);
83
- const [selectedValue, setSelectedValue] = useControllableState(defaultValue, onSelectedValueChange, externalSelectedValue);
84
- const [searchTerm, setSearchTerm] = useControllableState('', externalOnSearchValueChange, externalSearchValue);
85
- const [submenuHighlightedIndex, setSubmenuHighlightedIndex] = useState(-1);
93
+ const _useControllableState = useControllableState(false, onIsOpenChange, externalIsOpen),
94
+ _useControllableState2 = _slicedToArray(_useControllableState, 2),
95
+ isOpen = _useControllableState2[0],
96
+ setIsOpen = _useControllableState2[1];
97
+ const _useControllableState3 = useControllableState(-1, onHighlightedIndexChange, externalHighlightedIndex),
98
+ _useControllableState4 = _slicedToArray(_useControllableState3, 2),
99
+ highlightedIndex = _useControllableState4[0],
100
+ setHighlightedIndex = _useControllableState4[1];
101
+ const _useControllableState5 = useControllableState(defaultValue, onSelectedValueChange, externalSelectedValue),
102
+ _useControllableState6 = _slicedToArray(_useControllableState5, 2),
103
+ selectedValue = _useControllableState6[0],
104
+ setSelectedValue = _useControllableState6[1];
105
+ const _useControllableState7 = useControllableState('', externalOnSearchValueChange, externalSearchValue),
106
+ _useControllableState8 = _slicedToArray(_useControllableState7, 2),
107
+ searchTerm = _useControllableState8[0],
108
+ setSearchTerm = _useControllableState8[1];
109
+ const _useState = useState(-1),
110
+ _useState2 = _slicedToArray(_useState, 2),
111
+ submenuHighlightedIndex = _useState2[0],
112
+ setSubmenuHighlightedIndex = _useState2[1];
86
113
 
87
114
  // These effects are needed for onIsOpenChange to work for submenus since the isOpen state is always controlled by the parent menu
88
115
  const onIsOpenChangeRef = useLatest(onIsOpenChange);
@@ -213,11 +240,11 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
213
240
  });
214
241
  }
215
242
  if ((child === null || child === void 0 ? void 0 : child.type) === MenuItem) {
216
- var _child$props, _child$props2;
243
+ var _context, _child$props, _child$props2;
217
244
  menuItemIndex += 1;
218
245
  return /*#__PURE__*/React__default.cloneElement(child, {
219
246
  isHighlighted: actualIndex === highlightedIndex,
220
- isSelected: selectable && typeof selectedValue !== 'undefined' && Array.isArray(selectedValue) ? selectedValue.includes(child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.value) : (child === null || child === void 0 || (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.value) === selectedValue,
247
+ isSelected: selectable && typeof selectedValue !== 'undefined' && Array.isArray(selectedValue) ? _includesInstanceProperty(_context = selectedValue).call(_context, child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.value) : (child === null || child === void 0 || (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.value) === selectedValue,
221
248
  onSelect: wrapEvent(child.props.onSelect, () => {
222
249
  handleItemSelected(child);
223
250
  }),
@@ -383,10 +410,12 @@ function filterItems(valueToFilterBy, items) {
383
410
  const result = items.filter(item => {
384
411
  const searchTermLowerCase = valueToFilterBy.toLowerCase();
385
412
  if (typeof item.props.label === 'string') {
386
- return item.props.label.toLowerCase().includes(searchTermLowerCase);
413
+ var _context2;
414
+ return _includesInstanceProperty(_context2 = item.props.label.toLowerCase()).call(_context2, searchTermLowerCase);
387
415
  }
388
416
  if (typeof item.props.children === 'string') {
389
- return item.props.children.toLowerCase().includes(searchTermLowerCase);
417
+ var _context3;
418
+ return _includesInstanceProperty(_context3 = item.props.children.toLowerCase()).call(_context3, searchTermLowerCase);
390
419
  }
391
420
  // eslint-disable-next-line no-console
392
421
  console.warn("<MenuItem> not included in search results!\n Ensure prop \"children\" is of type \"string\" or provide a \"label\" prop!", item);
@@ -431,7 +460,7 @@ function getLabel(menuOptionNode) {
431
460
  }
432
461
  function union(arr1, arr2) {
433
462
  return [].concat(arr1).concat(arr2).reduce((result, current) => {
434
- if (!result.includes(current)) {
463
+ if (!_includesInstanceProperty(result).call(result, current)) {
435
464
  result.push(current);
436
465
  }
437
466
  return result;
@@ -1,20 +1,18 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import BaseMenu from '../BaseMenu.js';
4
5
 
6
+ const _excluded = ["selectable", "defaultLabel", "defaultValue", "selectedValue", "onSelectedValueChange", "unstable_isMultiSelect", "isMultiSelect"];
5
7
  const Menu = /*#__PURE__*/React__default.forwardRef(function Menu(_ref, ref) {
6
- let {
7
- selectable,
8
- defaultLabel,
9
- defaultValue,
10
- selectedValue: externalSelectedValue,
11
- onSelectedValueChange,
12
- unstable_isMultiSelect,
13
- // Throw away since it's only part of SelectMenu
14
- isMultiSelect,
15
- // Throw away since it's only part of SelectMenu
16
- ...rest
17
- } = _ref;
8
+ let selectable = _ref.selectable,
9
+ defaultLabel = _ref.defaultLabel,
10
+ defaultValue = _ref.defaultValue,
11
+ externalSelectedValue = _ref.selectedValue,
12
+ onSelectedValueChange = _ref.onSelectedValueChange,
13
+ unstable_isMultiSelect = _ref.unstable_isMultiSelect,
14
+ isMultiSelect = _ref.isMultiSelect,
15
+ rest = _objectWithoutProperties(_ref, _excluded);
18
16
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
17
  return /*#__PURE__*/React__default.createElement(BaseMenu, _extends({
20
18
  ref: ref,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._nR8zq._nR8zq{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._nR8zq._nR8zq,._nR8zq._nR8zq ._96ssg{display:inline-flex;align-items:center}._nR8zq._nR8zq ._96ssg{overflow:hidden;text-overflow:ellipsis}._nR8zq._nR8zq._6fUCf{min-height:26px;height:26px}._nR8zq._nR8zq._UFwVV{color:#32363a}._nR8zq._nR8zq:hover:not([aria-disabled=true]){background-color:#f5f5f5}._nR8zq._nR8zq:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._nR8zq._nR8zq[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._nR8zq._nR8zq[aria-disabled=true]>svg{fill:#515559;opacity:.4}._nR8zq._nR8zq[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._nR8zq._nR8zq._ikMSM{padding-left:0}._nR8zq._nR8zq._UxmXQ{margin-top:4px}._nR8zq._nR8zq ._njFGY{fill:#515559}._nR8zq._nR8zq ._njFGY._6fUCf{top:0}._nR8zq._nR8zq ._njFGY._OAFaB{transform:rotate(-180deg)}._NntIq{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#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}._NntIq::-webkit-scrollbar,._NntIq::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._NntIq::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._NntIq::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._NntIq:hover::-webkit-scrollbar,._NntIq:hover::-webkit-scrollbar-thumb,._NntIq[focus-within]::-webkit-scrollbar,._NntIq[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._NntIq:focus-within::-webkit-scrollbar,._NntIq:focus-within::-webkit-scrollbar-thumb,._NntIq:hover::-webkit-scrollbar,._NntIq:hover::-webkit-scrollbar-thumb{visibility:visible}._mLOYi{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._mLOYi[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._mLOYi._Arsnu{background-color:#efefef}._mLOYi._LpR41{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._mLOYi._UFwVV{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._mLOYi._UFwVV._Arsnu{background-color:#e4effa}._mLOYi._A6J44{cursor:default}._mLOYi:active:not(._AwYTe):not(._UFwVV):not([aria-disabled=true]):not(._A6J44){background-color:#e8e9e9}._AwYTe{padding-right:32px}._AwYTe ._njFGY{position:absolute;top:8px;right:3px;fill:#515559}._zEMV7{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._SbKy3{position:absolute;top:13px;left:13px}._F-HCN._F-HCN{padding-left:32px}._UTX8B{margin:2px 12px 2px 0;flex-shrink:0}._UTX8B._TVMTp>svg{border-color:#0b6ed0}._KVGJs{display:flex;justify-self:center;margin:8px}";
4
- var menuStyles = {"menuBtn":"_nR8zq","menuBtnLabel":"_96ssg","small":"_6fUCf","selected":"_UFwVV","unlabelledButton":"_ikMSM","formLabelled":"_UxmXQ","rightIcon":"_njFGY","open":"_OAFaB","contentPane":"_NntIq","menuItem":"_mLOYi","active":"_Arsnu","focus":"_LpR41","noMenuItems":"_A6J44","subMenu":"_AwYTe","searchBox":"_zEMV7","searchBoxIcon":"_SbKy3","searchBoxInput":"_F-HCN","checkbox":"_UTX8B","highlighted":"_TVMTp","menuSpinner":"_KVGJs"};
5
- var stylesheet="._nR8zq._nR8zq{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._nR8zq._nR8zq,._nR8zq._nR8zq ._96ssg{display:inline-flex;align-items:center}._nR8zq._nR8zq ._96ssg{overflow:hidden;text-overflow:ellipsis}._nR8zq._nR8zq._6fUCf{min-height:26px;height:26px}._nR8zq._nR8zq._UFwVV{color:#32363a}._nR8zq._nR8zq:hover:not([aria-disabled=true]){background-color:#f5f5f5}._nR8zq._nR8zq:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._nR8zq._nR8zq[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._nR8zq._nR8zq[aria-disabled=true]>svg{fill:#515559;opacity:.4}._nR8zq._nR8zq[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._nR8zq._nR8zq._ikMSM{padding-left:0}._nR8zq._nR8zq._UxmXQ{margin-top:4px}._nR8zq._nR8zq ._njFGY{fill:#515559}._nR8zq._nR8zq ._njFGY._6fUCf{top:0}._nR8zq._nR8zq ._njFGY._OAFaB{transform:rotate(-180deg)}._NntIq{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#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}._NntIq::-webkit-scrollbar,._NntIq::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._NntIq::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._NntIq::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._NntIq:hover::-webkit-scrollbar,._NntIq:hover::-webkit-scrollbar-thumb,._NntIq[focus-within]::-webkit-scrollbar,._NntIq[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._NntIq:focus-within::-webkit-scrollbar,._NntIq:focus-within::-webkit-scrollbar-thumb,._NntIq:hover::-webkit-scrollbar,._NntIq:hover::-webkit-scrollbar-thumb{visibility:visible}._mLOYi{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._mLOYi[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._mLOYi._Arsnu{background-color:#efefef}._mLOYi._LpR41{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._mLOYi._UFwVV{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._mLOYi._UFwVV._Arsnu{background-color:#e4effa}._mLOYi._A6J44{cursor:default}._mLOYi:active:not(._AwYTe):not(._UFwVV):not([aria-disabled=true]):not(._A6J44){background-color:#e8e9e9}._AwYTe{padding-right:32px}._AwYTe ._njFGY{position:absolute;top:8px;right:3px;fill:#515559}._zEMV7{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._SbKy3{position:absolute;top:13px;left:13px}._F-HCN._F-HCN{padding-left:32px}._UTX8B{margin:2px 12px 2px 0;flex-shrink:0}._UTX8B._TVMTp>svg{border-color:#0b6ed0}._KVGJs{display:flex;justify-self:center;margin:8px}";
3
+ var css_248z = "._fVOkl._fVOkl{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._fVOkl._fVOkl,._fVOkl._fVOkl ._hW90y{display:inline-flex;align-items:center}._fVOkl._fVOkl ._hW90y{overflow:hidden;text-overflow:ellipsis}._fVOkl._fVOkl._PU5JA{min-height:26px;height:26px}._fVOkl._fVOkl._LlZeP{color:#32363a}._fVOkl._fVOkl:hover:not([aria-disabled=true]){background-color:#f5f5f5}._fVOkl._fVOkl:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fVOkl._fVOkl[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._fVOkl._fVOkl[aria-disabled=true]>svg{fill:#515559;opacity:.4}._fVOkl._fVOkl[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fVOkl._fVOkl._2uShb{padding-left:0}._fVOkl._fVOkl._Und4D{margin-top:4px}._fVOkl._fVOkl ._FrBBv{fill:#515559}._fVOkl._fVOkl ._FrBBv._PU5JA{top:0}._fVOkl._fVOkl ._FrBBv._l7JbQ{transform:rotate(-180deg)}._Ny0xX{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#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}._Ny0xX::-webkit-scrollbar,._Ny0xX::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._Ny0xX::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._Ny0xX::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._Ny0xX:hover::-webkit-scrollbar,._Ny0xX:hover::-webkit-scrollbar-thumb,._Ny0xX[focus-within]::-webkit-scrollbar,._Ny0xX[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._Ny0xX:focus-within::-webkit-scrollbar,._Ny0xX:focus-within::-webkit-scrollbar-thumb,._Ny0xX:hover::-webkit-scrollbar,._Ny0xX:hover::-webkit-scrollbar-thumb{visibility:visible}._--yH4{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._--yH4[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._--yH4._fzm-x{background-color:#efefef}._--yH4._1MmYF{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._--yH4._LlZeP{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._--yH4._LlZeP._fzm-x{background-color:#e4effa}._--yH4._9Io-B{cursor:default}._--yH4:active:not(._F-hSK):not(._LlZeP):not([aria-disabled=true]):not(._9Io-B){background-color:#e8e9e9}._F-hSK{padding-right:32px}._F-hSK ._FrBBv{position:absolute;top:8px;right:3px;fill:#515559}._eml-I{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._pT4Pu{position:absolute;top:13px;left:13px}._7hz0H._7hz0H{padding-left:32px}._mWzu4{margin:2px 12px 2px 0;flex-shrink:0}._mWzu4._99Rqb>svg{border-color:#0b6ed0}._n6UtW{display:flex;justify-self:center;margin:8px}";
4
+ var menuStyles = {"menuBtn":"_fVOkl","menuBtnLabel":"_hW90y","small":"_PU5JA","selected":"_LlZeP","unlabelledButton":"_2uShb","formLabelled":"_Und4D","rightIcon":"_FrBBv","open":"_l7JbQ","contentPane":"_Ny0xX","menuItem":"_--yH4","active":"_fzm-x","focus":"_1MmYF","noMenuItems":"_9Io-B","subMenu":"_F-hSK","searchBox":"_eml-I","searchBoxIcon":"_pT4Pu","searchBoxInput":"_7hz0H","checkbox":"_mWzu4","highlighted":"_99Rqb","menuSpinner":"_n6UtW"};
5
+ var stylesheet="._fVOkl._fVOkl{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._fVOkl._fVOkl,._fVOkl._fVOkl ._hW90y{display:inline-flex;align-items:center}._fVOkl._fVOkl ._hW90y{overflow:hidden;text-overflow:ellipsis}._fVOkl._fVOkl._PU5JA{min-height:26px;height:26px}._fVOkl._fVOkl._LlZeP{color:#32363a}._fVOkl._fVOkl:hover:not([aria-disabled=true]){background-color:#f5f5f5}._fVOkl._fVOkl:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fVOkl._fVOkl[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._fVOkl._fVOkl[aria-disabled=true]>svg{fill:#515559;opacity:.4}._fVOkl._fVOkl[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fVOkl._fVOkl._2uShb{padding-left:0}._fVOkl._fVOkl._Und4D{margin-top:4px}._fVOkl._fVOkl ._FrBBv{fill:#515559}._fVOkl._fVOkl ._FrBBv._PU5JA{top:0}._fVOkl._fVOkl ._FrBBv._l7JbQ{transform:rotate(-180deg)}._Ny0xX{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#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}._Ny0xX::-webkit-scrollbar,._Ny0xX::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._Ny0xX::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._Ny0xX::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._Ny0xX:hover::-webkit-scrollbar,._Ny0xX:hover::-webkit-scrollbar-thumb,._Ny0xX[focus-within]::-webkit-scrollbar,._Ny0xX[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._Ny0xX:focus-within::-webkit-scrollbar,._Ny0xX:focus-within::-webkit-scrollbar-thumb,._Ny0xX:hover::-webkit-scrollbar,._Ny0xX:hover::-webkit-scrollbar-thumb{visibility:visible}._--yH4{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._--yH4[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._--yH4._fzm-x{background-color:#efefef}._--yH4._1MmYF{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._--yH4._LlZeP{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._--yH4._LlZeP._fzm-x{background-color:#e4effa}._--yH4._9Io-B{cursor:default}._--yH4:active:not(._F-hSK):not(._LlZeP):not([aria-disabled=true]):not(._9Io-B){background-color:#e8e9e9}._F-hSK{padding-right:32px}._F-hSK ._FrBBv{position:absolute;top:8px;right:3px;fill:#515559}._eml-I{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._pT4Pu{position:absolute;top:13px;left:13px}._7hz0H._7hz0H{padding-left:32px}._mWzu4{margin:2px 12px 2px 0;flex-shrink:0}._mWzu4._99Rqb>svg{border-color:#0b6ed0}._n6UtW{display:flex;justify-self:center;margin:8px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { menuStyles as default, stylesheet };
@@ -1,15 +1,14 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import BaseMenu from '../BaseMenu.js';
4
5
 
6
+ const _excluded = ["selectable", "onSelectedValueChange", "onChange"];
5
7
  const SelectMenu = /*#__PURE__*/React__default.forwardRef(function SelectMenu(_ref, ref) {
6
- let {
7
- selectable,
8
- // eslint-disable-line @typescript-eslint/no-unused-vars
9
- onSelectedValueChange,
10
- onChange,
11
- ...rest
12
- } = _ref;
8
+ let selectable = _ref.selectable,
9
+ onSelectedValueChange = _ref.onSelectedValueChange,
10
+ onChange = _ref.onChange,
11
+ rest = _objectWithoutProperties(_ref, _excluded);
13
12
  return /*#__PURE__*/React__default.createElement(BaseMenu, _extends({
14
13
  ref: ref
15
14
  // eslint-disable-next-line @typescript-eslint/no-explicit-any