@qualtrics/ui-react 2.79.1 → 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 +13 -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-d4ec6b6f.js → index-807921ca.js} +2829 -2634
  21. package/dist/__shared/cjs/{index-91d2f6f8.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 +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 +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
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._-zLwt :after{background-color:#515559!important}._-Tbs->input:focus{box-shadow:none!important;border:1px solid #898989!important}._BuryK{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._BuryK ._LcvNz ._GyIih{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._BuryK ._LcvNz:first-child ._ub55N{display:none}._BuryK ._yhFxg{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._BuryK ._yhFxg:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._BuryK ._yhFxg:hover._cv-ku{background-color:#e4effa}._BuryK ._yhFxg._cv-ku{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._BuryK ._yhFxg:active:not(._cv-ku){background-color:#e8e9e9}";
4
- var styles = {"loadingSpinner":"_-zLwt","ignoreFocusStyle":"_-Tbs-","flyout":"_BuryK","group":"_LcvNz","header":"_GyIih","divider":"_ub55N","option":"_yhFxg","selected":"_cv-ku"};
5
- var stylesheet="._-zLwt :after{background-color:#515559!important}._-Tbs->input:focus{box-shadow:none!important;border:1px solid #898989!important}._BuryK{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._BuryK ._LcvNz ._GyIih{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._BuryK ._LcvNz:first-child ._ub55N{display:none}._BuryK ._yhFxg{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._BuryK ._yhFxg:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._BuryK ._yhFxg:hover._cv-ku{background-color:#e4effa}._BuryK ._yhFxg._cv-ku{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._BuryK ._yhFxg:active:not(._cv-ku){background-color:#e8e9e9}";
3
+ var css_248z = "._9hQQp :after{background-color:#515559!important}._qZcO8>input:focus{box-shadow:none!important;border:1px solid #898989!important}._IBVNZ{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._IBVNZ ._B9BJ1 ._V1-q1{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._IBVNZ ._B9BJ1:first-child ._wvuYo{display:none}._IBVNZ ._h0poV{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._IBVNZ ._h0poV:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IBVNZ ._h0poV:hover._RveXJ{background-color:#e4effa}._IBVNZ ._h0poV._RveXJ{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IBVNZ ._h0poV:active:not(._RveXJ){background-color:#e8e9e9}";
4
+ var styles = {"loadingSpinner":"_9hQQp","ignoreFocusStyle":"_qZcO8","flyout":"_IBVNZ","group":"_B9BJ1","header":"_V1-q1","divider":"_wvuYo","option":"_h0poV","selected":"_RveXJ"};
5
+ var stylesheet="._9hQQp :after{background-color:#515559!important}._qZcO8>input:focus{box-shadow:none!important;border:1px solid #898989!important}._IBVNZ{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._IBVNZ ._B9BJ1 ._V1-q1{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._IBVNZ ._B9BJ1:first-child ._wvuYo{display:none}._IBVNZ ._h0poV{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._IBVNZ ._h0poV:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IBVNZ ._h0poV:hover._RveXJ{background-color:#e4effa}._IBVNZ ._h0poV._RveXJ{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IBVNZ ._h0poV:active:not(._RveXJ){background-color:#e8e9e9}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,9 +1,8 @@
1
1
  import '../../utils/index.js';
2
2
  import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
3
3
 
4
- const {
5
- useContext: useComboboxContext,
6
- Provider: ComboboxContextProvider
7
- } = createContextUtilities();
4
+ const _createContextUtiliti = createContextUtilities(),
5
+ useComboboxContext = _createContextUtiliti.useContext,
6
+ ComboboxContextProvider = _createContextUtiliti.Provider;
8
7
 
9
8
  export { ComboboxContextProvider, useComboboxContext };
@@ -10,21 +10,18 @@ import { FOCUS_RING_WIDTH, FLYOUT_POPPER_OFFSET } from '../../utils/constants.js
10
10
  import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
11
11
 
12
12
  const ComboboxFlyout = _ref => {
13
- let {
14
- 'aria-label': ariaLabel,
15
- 'aria-labelledby': ariaLabelledBy,
16
- 'aria-describedby': ariaDescribedBy,
17
- children
18
- } = _ref;
19
- const {
20
- isOpen,
21
- inputRef,
22
- rootDataTestId,
23
- flyoutRef,
24
- flyoutId,
25
- rootAriaLabel,
26
- rootAriaLabelledBy
27
- } = useComboboxContext();
13
+ let ariaLabel = _ref['aria-label'],
14
+ ariaLabelledBy = _ref['aria-labelledby'],
15
+ ariaDescribedBy = _ref['aria-describedby'],
16
+ children = _ref.children;
17
+ const _useComboboxContext = useComboboxContext(),
18
+ isOpen = _useComboboxContext.isOpen,
19
+ inputRef = _useComboboxContext.inputRef,
20
+ rootDataTestId = _useComboboxContext.rootDataTestId,
21
+ flyoutRef = _useComboboxContext.flyoutRef,
22
+ flyoutId = _useComboboxContext.flyoutId,
23
+ rootAriaLabel = _useComboboxContext.rootAriaLabel,
24
+ rootAriaLabelledBy = _useComboboxContext.rootAriaLabelledBy;
28
25
  const flyoutDimensions = useListboxFlyoutDimensions(inputRef.current);
29
26
  return /*#__PURE__*/React__default.createElement(Popper, {
30
27
  open: isOpen,
@@ -13,21 +13,17 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
13
13
  import Divider from '../../components/Divider/Divider.js';
14
14
 
15
15
  function ComboboxGroup(_ref) {
16
- let {
17
- label,
18
- 'aria-describedby': ariaDescribedBy,
19
- children
20
- } = _ref;
16
+ let label = _ref.label,
17
+ ariaDescribedBy = _ref['aria-describedby'],
18
+ children = _ref.children;
21
19
  const headerElementId = useId();
22
- const {
23
- committedInputValue,
24
- rootDataTestId
25
- } = useComboboxContext();
26
- const {
27
- registerOption,
28
- deregisterOption,
29
- filteredOptionsRef
30
- } = useComboboxFilteredGroup();
20
+ const _useComboboxContext = useComboboxContext(),
21
+ committedInputValue = _useComboboxContext.committedInputValue,
22
+ rootDataTestId = _useComboboxContext.rootDataTestId;
23
+ const _useComboboxFilteredG = useComboboxFilteredGroup(),
24
+ registerOption = _useComboboxFilteredG.registerOption,
25
+ deregisterOption = _useComboboxFilteredG.deregisterOption,
26
+ filteredOptionsRef = _useComboboxFilteredG.filteredOptionsRef;
31
27
  const hasFilteredOptions = useShouldRenderGroupHeader(filteredOptionsRef, committedInputValue);
32
28
  const childrenWithContext = /*#__PURE__*/React__default.createElement(ComboboxGroupContextProvider, {
33
29
  value: {
@@ -5,15 +5,14 @@ import createContextUtilities from '../../utils/createContextUtilities/createCon
5
5
  * Context is initialized with no-op values to handle the case when a `ComboboxOption` is not associated with a group.
6
6
  * This ensures that there are no errors when calling `useComboboxGroupContext` inside of a `ComboboxOption` that is outside of a `ComboboxGroupContextProvider`.
7
7
  */
8
- const {
9
- useContext: useComboboxGroupContext,
10
- Provider: ComboboxGroupContextProvider
11
- } = createContextUtilities({
12
- registerOption: () => {},
13
- deregisterOption: () => {},
14
- filteredOptionsRef: {
15
- current: []
16
- }
17
- });
8
+ const _createContextUtiliti = createContextUtilities({
9
+ registerOption: () => {},
10
+ deregisterOption: () => {},
11
+ filteredOptionsRef: {
12
+ current: []
13
+ }
14
+ }),
15
+ useComboboxGroupContext = _createContextUtiliti.useContext,
16
+ ComboboxGroupContextProvider = _createContextUtiliti.Provider;
18
17
 
19
18
  export { ComboboxGroupContextProvider, useComboboxGroupContext };
@@ -11,45 +11,43 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
11
11
  import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
12
12
 
13
13
  const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
14
- let {
15
- placeholder,
16
- leftAddOn,
17
- className,
18
- style,
19
- id,
20
- isSearchFilteringDisabled = false,
21
- 'aria-label': ariaLabel,
22
- 'aria-labelledby': ariaLabelledBy,
23
- 'aria-describedby': ariaDescribedBy
24
- } = _ref;
25
- const {
26
- isLoading,
27
- rootDataTestId,
28
- inputRef,
29
- inputFocusRef,
30
- isOpen,
31
- setIsOpen,
32
- focusInput,
33
- focusFirst,
34
- focusLast,
35
- focusNext,
36
- focusPrevious,
37
- rawInputValue,
38
- setRawInputValue,
39
- committedInputValue,
40
- setIsSearchFilteringDisabled,
41
- setCommittedInputValue,
42
- onSubmit,
43
- activeDescendantElement,
44
- isDisabled,
45
- isRequired,
46
- isInvalid,
47
- rootAriaLabel,
48
- rootAriaLabelledBy,
49
- flyoutId,
50
- hoveredOption,
51
- setHoveredOption
52
- } = useComboboxContext();
14
+ let placeholder = _ref.placeholder,
15
+ leftAddOn = _ref.leftAddOn,
16
+ className = _ref.className,
17
+ style = _ref.style,
18
+ id = _ref.id,
19
+ _ref$isSearchFilterin = _ref.isSearchFilteringDisabled,
20
+ isSearchFilteringDisabled = _ref$isSearchFilterin === void 0 ? false : _ref$isSearchFilterin,
21
+ ariaLabel = _ref['aria-label'],
22
+ ariaLabelledBy = _ref['aria-labelledby'],
23
+ ariaDescribedBy = _ref['aria-describedby'];
24
+ const _useComboboxContext = useComboboxContext(),
25
+ isLoading = _useComboboxContext.isLoading,
26
+ rootDataTestId = _useComboboxContext.rootDataTestId,
27
+ inputRef = _useComboboxContext.inputRef,
28
+ inputFocusRef = _useComboboxContext.inputFocusRef,
29
+ isOpen = _useComboboxContext.isOpen,
30
+ setIsOpen = _useComboboxContext.setIsOpen,
31
+ focusInput = _useComboboxContext.focusInput,
32
+ focusFirst = _useComboboxContext.focusFirst,
33
+ focusLast = _useComboboxContext.focusLast,
34
+ focusNext = _useComboboxContext.focusNext,
35
+ focusPrevious = _useComboboxContext.focusPrevious,
36
+ rawInputValue = _useComboboxContext.rawInputValue,
37
+ setRawInputValue = _useComboboxContext.setRawInputValue,
38
+ committedInputValue = _useComboboxContext.committedInputValue,
39
+ setIsSearchFilteringDisabled = _useComboboxContext.setIsSearchFilteringDisabled,
40
+ setCommittedInputValue = _useComboboxContext.setCommittedInputValue,
41
+ onSubmit = _useComboboxContext.onSubmit,
42
+ activeDescendantElement = _useComboboxContext.activeDescendantElement,
43
+ isDisabled = _useComboboxContext.isDisabled,
44
+ isRequired = _useComboboxContext.isRequired,
45
+ isInvalid = _useComboboxContext.isInvalid,
46
+ rootAriaLabel = _useComboboxContext.rootAriaLabel,
47
+ rootAriaLabelledBy = _useComboboxContext.rootAriaLabelledBy,
48
+ flyoutId = _useComboboxContext.flyoutId,
49
+ hoveredOption = _useComboboxContext.hoveredOption,
50
+ setHoveredOption = _useComboboxContext.setHoveredOption;
53
51
 
54
52
  /*
55
53
  * Creates a variation of selection follows focus.
@@ -10,27 +10,23 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
10
10
 
11
11
  /* eslint-disable jsx-a11y/interactive-supports-focus */
12
12
  function ComboboxOption(_ref) {
13
- let {
14
- label
15
- } = _ref;
13
+ let label = _ref.label;
16
14
  const containerElementRef = useRef(null);
17
15
  const containerId = useId();
18
- const {
19
- registerOption: registerListOption,
20
- deregisterOption: deregisterListOption,
21
- setIsOpen,
22
- activeDescendantElement,
23
- committedInputValue,
24
- setCommittedInputValue,
25
- isSearchFilteringDisabled,
26
- onSubmit,
27
- rootDataTestId,
28
- setHoveredOption
29
- } = useComboboxContext();
30
- const {
31
- registerOption: registerGroupOption,
32
- deregisterOption: deregisterGroupOption
33
- } = useComboboxGroupContext();
16
+ const _useComboboxContext = useComboboxContext(),
17
+ registerListOption = _useComboboxContext.registerOption,
18
+ deregisterListOption = _useComboboxContext.deregisterOption,
19
+ setIsOpen = _useComboboxContext.setIsOpen,
20
+ activeDescendantElement = _useComboboxContext.activeDescendantElement,
21
+ committedInputValue = _useComboboxContext.committedInputValue,
22
+ setCommittedInputValue = _useComboboxContext.setCommittedInputValue,
23
+ isSearchFilteringDisabled = _useComboboxContext.isSearchFilteringDisabled,
24
+ onSubmit = _useComboboxContext.onSubmit,
25
+ rootDataTestId = _useComboboxContext.rootDataTestId,
26
+ setHoveredOption = _useComboboxContext.setHoveredOption;
27
+ const _useComboboxGroupCont = useComboboxGroupContext(),
28
+ registerGroupOption = _useComboboxGroupCont.registerOption,
29
+ deregisterGroupOption = _useComboboxGroupCont.deregisterOption;
34
30
  const lowercaseTrimmedCommittedInputValue = committedInputValue.trim().toLowerCase();
35
31
  const doesLabelMatchInputFilter = label.toLowerCase().startsWith(lowercaseTrimmedCommittedInputValue) || isSearchFilteringDisabled;
36
32
 
@@ -1,11 +1,10 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import { useState, useRef, useEffect, useCallback } from 'react';
2
3
  import '../../utils/index.js';
3
4
  import '../../../../hooks/index.js';
4
5
  import useLatest from '../../../../hooks/useLatest/useLatest.js';
5
6
  import { insertOption, deleteOption } from '../../utils/nodeRegistration/nodeRegistration.js';
6
7
 
7
- /* eslint-disable @typescript-eslint/no-use-before-define */
8
-
9
8
  /**
10
9
  * A list of utilities to manage focus inside of a combobox. The input element is included in the focus loop.
11
10
  * @param isOpen - Inidicates if the flyout is open.
@@ -19,13 +18,19 @@ import { insertOption, deleteOption } from '../../utils/nodeRegistration/nodeReg
19
18
  function useComboboxFocusSequence(isOpen, setIsOpen, inputRef, isLoading, committedInputValue,
20
19
  // Don't use this parameter internally. Instead, use the internal `didCommittedInputValueChange` state
21
20
  isDisabled) {
22
- const [activeDescendant, setActiveDescendant] = useState(); // In a future version of `Combobox`, if we continue not to allow custom children inside of `ComboboxOption`s, we can remove `aria-activedescendant` and instead just let the screen reader read the new input value (e.g. see Google search box)
21
+ const _useState = useState(),
22
+ _useState2 = _slicedToArray(_useState, 2),
23
+ activeDescendant = _useState2[0],
24
+ setActiveDescendant = _useState2[1]; // In a future version of `Combobox`, if we continue not to allow custom children inside of `ComboboxOption`s, we can remove `aria-activedescendant` and instead just let the screen reader read the new input value (e.g. see Google search box)
23
25
 
24
26
  const activeDescendantRef = useLatest(activeDescendant); // Used to prevent returned `useCallback` functions from being re-created
25
27
  const latestFocusFunctionNameRef = useRef(undefined); // Used to call the correct focus function after the flyout opens (if the flyout is currently closed)
26
28
  const filteredOptionsRef = useRef([]); // The list of `ComboboxOption`s that match the filter based on the input value
27
29
 
28
- const [didCommittedInputValueChange, setDidCommittedInputValueChange] = useState(false);
30
+ const _useState3 = useState(false),
31
+ _useState4 = _slicedToArray(_useState3, 2),
32
+ didCommittedInputValueChange = _useState4[0],
33
+ setDidCommittedInputValueChange = _useState4[1];
29
34
 
30
35
  /*
31
36
  * Triggers a re-render so that we can get the list of filtered options.
@@ -21,9 +21,8 @@ function useComboboxLoadingState(isLoading, isComponentFocused, activeDescendant
21
21
  const newOptionsLoadingTimeoutIdRef = useRef(undefined);
22
22
  const didNewOptionsLoadingAnnouncementOccurRef = useRef(false);
23
23
  const announceToScreenReader = useScreenReaderAnnouncement('polite');
24
- const {
25
- translate
26
- } = useTranslation();
24
+ const _useTranslation = useTranslation(),
25
+ translate = _useTranslation.translate;
27
26
 
28
27
  /* If the user is navigating through options in the flyout when new options are loaded or if a new options loading announcement was made during the current loading cycle:
29
28
  * 1. Sends a message to the screen reader
@@ -1,9 +1,8 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import { useState, useCallback } from 'react';
2
3
  import '../../../../hooks/index.js';
3
4
  import useControllableState from '../../../../hooks/useControllableState/useControllableState.js';
4
5
 
5
- /* eslint-disable camelcase */
6
-
7
6
  /**
8
7
  * Creates state for the different types of combobox values to keep track of.
9
8
  * @param initialInputValue - The initial value of the input.
@@ -13,11 +12,17 @@ import useControllableState from '../../../../hooks/useControllableState/useCont
13
12
  */
14
13
  function useComboboxValue(initialInputValue, externalInputValue, externalOnChange) {
15
14
  // This is the `value` of the `input` element (what is displayed to the user)
16
- const [rawInputValue, setRawInputValue] = useState(externalInputValue !== null && externalInputValue !== void 0 ? externalInputValue : initialInputValue);
15
+ const _useState = useState(externalInputValue !== null && externalInputValue !== void 0 ? externalInputValue : initialInputValue),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ rawInputValue = _useState2[0],
18
+ setRawInputValue = _useState2[1];
17
19
 
18
20
  // The `value` of the `input` element will become this value by the time the `input` element is blurred
19
- const [committedInputValue, setCommittedInputValue_DO_NOT_USE // A setter is created below so that the raw input value is also updated
20
- ] = useControllableState(initialInputValue, externalOnChange, externalInputValue);
21
+ const _useControllableState = useControllableState(initialInputValue, externalOnChange, externalInputValue),
22
+ _useControllableState2 = _slicedToArray(_useControllableState, 2),
23
+ committedInputValue = _useControllableState2[0],
24
+ setCommittedInputValue_DO_NOT_USE // A setter is created below so that the raw input value is also updated
25
+ = _useControllableState2[1];
21
26
 
22
27
  // Use of `setCommittedInputValue_DO_NOT_USE` is okay here because this function is used as the actual state updater
23
28
  const setCommittedInputValue = useCallback(newValue => {
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import { useState, useEffect } from 'react';
2
3
  import '../../../../hooks/index.js';
3
4
  import '../../../../utils/index.js';
@@ -22,11 +23,17 @@ function getFlyoutDimensions(anchorDimensions) {
22
23
  */
23
24
  function useListboxFlyoutDimensions(anchorElement) {
24
25
  var _anchorElement$offset, _anchorElement$offset2;
25
- const [anchorDimensions, setAnchorDimensions] = useState({
26
- width: (_anchorElement$offset = anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetWidth) !== null && _anchorElement$offset !== void 0 ? _anchorElement$offset : 0,
27
- height: (_anchorElement$offset2 = anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetHeight) !== null && _anchorElement$offset2 !== void 0 ? _anchorElement$offset2 : 18
28
- });
29
- const [flyoutDimensions, setFlyoutDimensions] = useState(getFlyoutDimensions(anchorDimensions));
26
+ const _useState = useState({
27
+ width: (_anchorElement$offset = anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetWidth) !== null && _anchorElement$offset !== void 0 ? _anchorElement$offset : 0,
28
+ height: (_anchorElement$offset2 = anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetHeight) !== null && _anchorElement$offset2 !== void 0 ? _anchorElement$offset2 : 18
29
+ }),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ anchorDimensions = _useState2[0],
32
+ setAnchorDimensions = _useState2[1];
33
+ const _useState3 = useState(getFlyoutDimensions(anchorDimensions)),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ flyoutDimensions = _useState4[0],
36
+ setFlyoutDimensions = _useState4[1];
30
37
 
31
38
  /*
32
39
  * The element being passed in to this hook could be coming from a ref which may be null at first.
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import { useState, useEffect } from 'react';
2
3
 
3
4
  /**
@@ -7,7 +8,10 @@ import { useState, useEffect } from 'react';
7
8
  * @returns A boolean indicating if the group includes at least one filtered option. If there are no filtered options, the group header should not be rendered.
8
9
  */
9
10
  function useShouldRenderGroupHeader(filteredOptionsRef, committedInputValue) {
10
- const [shouldRenderHeader, setShouldRenderHeader] = useState(true);
11
+ const _useState = useState(true),
12
+ _useState2 = _slicedToArray(_useState, 2),
13
+ shouldRenderHeader = _useState2[0],
14
+ setShouldRenderHeader = _useState2[1];
11
15
 
12
16
  // Should render the header if the group includes at least one filtered option
13
17
  useEffect(() => {
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import React__default, { useState, useEffect, useRef } from 'react';
2
3
  import { createPortal } from 'react-dom';
3
4
  import classNames from 'classnames';
@@ -21,35 +22,49 @@ import CloseIcon from '../../icons/components/CloseIcon.js';
21
22
 
22
23
  const Drawer = _ref => {
23
24
  var _containerRef$current;
24
- let {
25
- id,
26
- isOpen: externalIsOpen,
27
- onIsOpenChange,
28
- title,
29
- width = '292px',
30
- zIndex = 1000,
31
- elementRefToFocusOnClose,
32
- containerRef,
33
- 'aria-label': ariaLabel,
34
- 'aria-labelledby': ariaLabelledby,
35
- 'aria-describedby': ariaDescribedby,
36
- 'data-testid': dataTestId,
37
- children
38
- } = _ref;
25
+ let id = _ref.id,
26
+ externalIsOpen = _ref.isOpen,
27
+ onIsOpenChange = _ref.onIsOpenChange,
28
+ title = _ref.title,
29
+ _ref$width = _ref.width,
30
+ width = _ref$width === void 0 ? '292px' : _ref$width,
31
+ _ref$zIndex = _ref.zIndex,
32
+ zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
33
+ elementRefToFocusOnClose = _ref.elementRefToFocusOnClose,
34
+ containerRef = _ref.containerRef,
35
+ ariaLabel = _ref['aria-label'],
36
+ ariaLabelledby = _ref['aria-labelledby'],
37
+ ariaDescribedby = _ref['aria-describedby'],
38
+ dataTestId = _ref['data-testid'],
39
+ children = _ref.children;
39
40
  // waits to createPortal until after containerRef is in DOM
40
- const [domReady, setDomReady] = useState(false);
41
+ const _useState = useState(false),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ domReady = _useState2[0],
44
+ setDomReady = _useState2[1];
41
45
  useEffect(() => {
42
46
  setDomReady(true);
43
47
  }, [setDomReady]);
44
- const [elementUsedToOpenModal, setElementUsedToOpenModal] = useState();
48
+ const _useState3 = useState(),
49
+ _useState4 = _slicedToArray(_useState3, 2),
50
+ elementUsedToOpenModal = _useState4[0],
51
+ setElementUsedToOpenModal = _useState4[1];
45
52
  const drawerRef = useRef(null);
46
53
  const drawerId = useId(id);
47
- const [isOpen, setIsOpen] = useControllableState(externalIsOpen, onIsOpenChange, externalIsOpen);
48
- const [isClosing, setIsClosing] = useState(false);
49
- const [isHidden, setIsHidden] = useState(!isOpen);
50
- const {
51
- translate
52
- } = useTranslation();
54
+ const _useControllableState = useControllableState(externalIsOpen, onIsOpenChange, externalIsOpen),
55
+ _useControllableState2 = _slicedToArray(_useControllableState, 2),
56
+ isOpen = _useControllableState2[0],
57
+ setIsOpen = _useControllableState2[1];
58
+ const _useState5 = useState(false),
59
+ _useState6 = _slicedToArray(_useState5, 2),
60
+ isClosing = _useState6[0],
61
+ setIsClosing = _useState6[1];
62
+ const _useState7 = useState(!isOpen),
63
+ _useState8 = _slicedToArray(_useState7, 2),
64
+ isHidden = _useState8[0],
65
+ setIsHidden = _useState8[1];
66
+ const _useTranslation = useTranslation(),
67
+ translate = _useTranslation.translate;
53
68
  const closeButtonAriaLabel = translate('close');
54
69
  const closeButtonRef = useRef(null);
55
70
  const close = () => {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._14ze9{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._c1N2B{visibility:hidden}._V1Ayq{position:fixed}._TBwpE{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._sgBNu{padding-top:8px}._bdl5X{margin-left:12px}";
4
- var styles = {"drawer":"_14ze9","hidden":"_c1N2B","anchoredToBody":"_V1Ayq","header":"_TBwpE","title":"_sgBNu","closeButton":"_bdl5X"};
5
- var stylesheet="._14ze9{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._c1N2B{visibility:hidden}._V1Ayq{position:fixed}._TBwpE{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._sgBNu{padding-top:8px}._bdl5X{margin-left:12px}";
3
+ var css_248z = "._jnqsf{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._hkvqP{visibility:hidden}._IfaM9{position:fixed}._nFcFS{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._gBgF6{padding-top:8px}._3IVyC{margin-left:12px}";
4
+ var styles = {"drawer":"_jnqsf","hidden":"_hkvqP","anchoredToBody":"_IfaM9","header":"_nFcFS","title":"_gBgF6","closeButton":"_3IVyC"};
5
+ var stylesheet="._jnqsf{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._hkvqP{visibility:hidden}._IfaM9{position:fixed}._nFcFS{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._gBgF6{padding-top:8px}._3IVyC{margin-left:12px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -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, { forwardRef } from 'react';
3
4
  import classNames from 'classnames';
4
5
  import '../../components/LoadingSpinner/index.js';
@@ -15,29 +16,30 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
15
16
  import LoadingSpinner from '../../components/LoadingSpinner/LoadingSpinner.js';
16
17
  import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
17
18
 
19
+ const _excluded = ["label", "selectedFilters", "isOpen", "onClick", "onKeyDown", "isLocked", "lockedIcon", "isDisabled", "isLoading", "aria-labelledby", "loadingSpinnerAriaLabel", "className", "data-testid"];
18
20
  const FilterAnchor = /*#__PURE__*/forwardRef((_ref, ref) => {
19
- let {
20
- label,
21
- selectedFilters,
22
- isOpen,
23
- onClick,
24
- onKeyDown,
25
- isLocked = false,
26
- lockedIcon,
27
- isDisabled = false,
28
- isLoading = false,
29
- 'aria-labelledby': externalAriaLabelledBy,
30
- loadingSpinnerAriaLabel,
31
- className,
32
- 'data-testid': dataTestId,
33
- ...rest
34
- } = _ref;
21
+ let label = _ref.label,
22
+ selectedFilters = _ref.selectedFilters,
23
+ isOpen = _ref.isOpen,
24
+ onClick = _ref.onClick,
25
+ onKeyDown = _ref.onKeyDown,
26
+ _ref$isLocked = _ref.isLocked,
27
+ isLocked = _ref$isLocked === void 0 ? false : _ref$isLocked,
28
+ lockedIcon = _ref.lockedIcon,
29
+ _ref$isDisabled = _ref.isDisabled,
30
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
31
+ _ref$isLoading = _ref.isLoading,
32
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
33
+ externalAriaLabelledBy = _ref['aria-labelledby'],
34
+ loadingSpinnerAriaLabel = _ref.loadingSpinnerAriaLabel,
35
+ className = _ref.className,
36
+ dataTestId = _ref['data-testid'],
37
+ rest = _objectWithoutProperties(_ref, _excluded);
35
38
  const lockIconElementId = useId();
36
39
  const labelElementId = useId();
37
40
  const selectedFiltersElementId = useId();
38
- const {
39
- translate
40
- } = useTranslation();
41
+ const _useTranslation = useTranslation(),
42
+ translate = _useTranslation.translate;
41
43
  // @ts-ignore - 'locked' is not in the current list of translations
42
44
  const lockIconAccessibleLabel = translate('locked');
43
45
  const renderLockedIcon = () => {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._DA5JL{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._DA5JL:hover:not(._IO8AU){background-color:rgba(50,54,58,.08)}._DA5JL:hover:not(._IO8AU)._hSUFE{border-color:#085caf;background-color:rgba(11,110,208,.04)}._DA5JL:hover:not(._IO8AU)._hSUFE ._Kk7Xu{color:#32363a}._DA5JL:hover:not(._IO8AU)._hSUFE ._4mwNK{fill:#32363a}._DA5JL:hover:not(._IO8AU)._hSUFE ._3Uqrg{fill:#085caf}._DA5JL:hover:not(._IO8AU)._hSUFE ._6EXa6{background-color:rgba(11,110,208,.11)}._DA5JL:hover:not(._IO8AU)._hSUFE ._6EXa6 ._jOLLV{color:#085caf}._DA5JL:active:not(._IO8AU){background-color:#e8e9e9}._DA5JL:active:not(._IO8AU)._hSUFE{background-color:rgba(11,110,208,.11);border-color:#0854a1}._DA5JL:active:not(._IO8AU)._hSUFE ._3Uqrg{fill:#0854a1}._DA5JL:active:not(._IO8AU)._hSUFE ._6EXa6{background-color:rgba(11,110,208,.11)}._DA5JL:active:not(._IO8AU)._hSUFE ._6EXa6 ._jOLLV{color:#0854a1}._DA5JL._IO8AU{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._DA5JL._hSUFE{border-color:#0b6ed0}._4mwNK{fill:#515559}._4mwNK,._tw8tb{margin-right:4px}._Kk7Xu{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Kk7Xu+._6EXa6{margin-left:6px}._Kk7Xu._IO8AU{color:#74777a}._6EXa6{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._jOLLV{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3Uqrg{fill:#515559}._3Uqrg._IO8AU,._3Uqrg._IO8AU._hSUFE{fill:rgba(116,119,122,.4)}._3Uqrg._hSUFE{fill:#0b6ed0}._3Uqrg._lekXL{transform:rotate(-180deg)}._DA5JL.focus-visible,._DA5JL:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"button":"_DA5JL","disabled":"_IO8AU","selected":"_hSUFE","label":"_Kk7Xu","lockIcon":"_4mwNK","chevronIcon":"_3Uqrg","selectedFiltersContainer":"_6EXa6","selectedFilters":"_jOLLV","lockIconWrapper":"_tw8tb","open":"_lekXL"};
5
- var stylesheet="._DA5JL{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._DA5JL:hover:not(._IO8AU){background-color:rgba(50,54,58,.08)}._DA5JL:hover:not(._IO8AU)._hSUFE{border-color:#085caf;background-color:rgba(11,110,208,.04)}._DA5JL:hover:not(._IO8AU)._hSUFE ._Kk7Xu{color:#32363a}._DA5JL:hover:not(._IO8AU)._hSUFE ._4mwNK{fill:#32363a}._DA5JL:hover:not(._IO8AU)._hSUFE ._3Uqrg{fill:#085caf}._DA5JL:hover:not(._IO8AU)._hSUFE ._6EXa6{background-color:rgba(11,110,208,.11)}._DA5JL:hover:not(._IO8AU)._hSUFE ._6EXa6 ._jOLLV{color:#085caf}._DA5JL:active:not(._IO8AU){background-color:#e8e9e9}._DA5JL:active:not(._IO8AU)._hSUFE{background-color:rgba(11,110,208,.11);border-color:#0854a1}._DA5JL:active:not(._IO8AU)._hSUFE ._3Uqrg{fill:#0854a1}._DA5JL:active:not(._IO8AU)._hSUFE ._6EXa6{background-color:rgba(11,110,208,.11)}._DA5JL:active:not(._IO8AU)._hSUFE ._6EXa6 ._jOLLV{color:#0854a1}._DA5JL._IO8AU{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._DA5JL._hSUFE{border-color:#0b6ed0}._4mwNK{fill:#515559}._4mwNK,._tw8tb{margin-right:4px}._Kk7Xu{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Kk7Xu+._6EXa6{margin-left:6px}._Kk7Xu._IO8AU{color:#74777a}._6EXa6{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._jOLLV{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3Uqrg{fill:#515559}._3Uqrg._IO8AU,._3Uqrg._IO8AU._hSUFE{fill:rgba(116,119,122,.4)}._3Uqrg._hSUFE{fill:#0b6ed0}._3Uqrg._lekXL{transform:rotate(-180deg)}._DA5JL.focus-visible,._DA5JL:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._4CcBb{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._4CcBb:hover:not(._-8OkZ){background-color:rgba(50,54,58,.08)}._4CcBb:hover:not(._-8OkZ)._h955K{border-color:#085caf;background-color:rgba(11,110,208,.04)}._4CcBb:hover:not(._-8OkZ)._h955K ._D3cog{color:#32363a}._4CcBb:hover:not(._-8OkZ)._h955K ._K9i-z{fill:#32363a}._4CcBb:hover:not(._-8OkZ)._h955K ._NqaLA{fill:#085caf}._4CcBb:hover:not(._-8OkZ)._h955K ._pFiJo{background-color:rgba(11,110,208,.11)}._4CcBb:hover:not(._-8OkZ)._h955K ._pFiJo ._eY8PX{color:#085caf}._4CcBb:active:not(._-8OkZ){background-color:#e8e9e9}._4CcBb:active:not(._-8OkZ)._h955K{background-color:rgba(11,110,208,.11);border-color:#0854a1}._4CcBb:active:not(._-8OkZ)._h955K ._NqaLA{fill:#0854a1}._4CcBb:active:not(._-8OkZ)._h955K ._pFiJo{background-color:rgba(11,110,208,.11)}._4CcBb:active:not(._-8OkZ)._h955K ._pFiJo ._eY8PX{color:#0854a1}._4CcBb._-8OkZ{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._4CcBb._h955K{border-color:#0b6ed0}._K9i-z{fill:#515559}._K9i-z,._Kr-Aw{margin-right:4px}._D3cog{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._D3cog+._pFiJo{margin-left:6px}._D3cog._-8OkZ{color:#74777a}._pFiJo{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._eY8PX{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._NqaLA{fill:#515559}._NqaLA._-8OkZ,._NqaLA._-8OkZ._h955K{fill:rgba(116,119,122,.4)}._NqaLA._h955K{fill:#0b6ed0}._NqaLA._sBths{transform:rotate(-180deg)}._4CcBb.focus-visible,._4CcBb:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"button":"_4CcBb","disabled":"_-8OkZ","selected":"_h955K","label":"_D3cog","lockIcon":"_K9i-z","chevronIcon":"_NqaLA","selectedFiltersContainer":"_pFiJo","selectedFilters":"_eY8PX","lockIconWrapper":"_Kr-Aw","open":"_sBths"};
5
+ var stylesheet="._4CcBb{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._4CcBb:hover:not(._-8OkZ){background-color:rgba(50,54,58,.08)}._4CcBb:hover:not(._-8OkZ)._h955K{border-color:#085caf;background-color:rgba(11,110,208,.04)}._4CcBb:hover:not(._-8OkZ)._h955K ._D3cog{color:#32363a}._4CcBb:hover:not(._-8OkZ)._h955K ._K9i-z{fill:#32363a}._4CcBb:hover:not(._-8OkZ)._h955K ._NqaLA{fill:#085caf}._4CcBb:hover:not(._-8OkZ)._h955K ._pFiJo{background-color:rgba(11,110,208,.11)}._4CcBb:hover:not(._-8OkZ)._h955K ._pFiJo ._eY8PX{color:#085caf}._4CcBb:active:not(._-8OkZ){background-color:#e8e9e9}._4CcBb:active:not(._-8OkZ)._h955K{background-color:rgba(11,110,208,.11);border-color:#0854a1}._4CcBb:active:not(._-8OkZ)._h955K ._NqaLA{fill:#0854a1}._4CcBb:active:not(._-8OkZ)._h955K ._pFiJo{background-color:rgba(11,110,208,.11)}._4CcBb:active:not(._-8OkZ)._h955K ._pFiJo ._eY8PX{color:#0854a1}._4CcBb._-8OkZ{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._4CcBb._h955K{border-color:#0b6ed0}._K9i-z{fill:#515559}._K9i-z,._Kr-Aw{margin-right:4px}._D3cog{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._D3cog+._pFiJo{margin-left:6px}._D3cog._-8OkZ{color:#74777a}._pFiJo{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._eY8PX{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._NqaLA{fill:#515559}._NqaLA._-8OkZ,._NqaLA._-8OkZ._h955K{fill:rgba(116,119,122,.4)}._NqaLA._h955K{fill:#0b6ed0}._NqaLA._sBths{transform:rotate(-180deg)}._4CcBb.focus-visible,._4CcBb:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,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, { forwardRef } from 'react';
3
4
  import classNames from 'classnames';
4
5
  import Label from '../../../components/Label/Label.js';
@@ -8,18 +9,17 @@ import '../../../utils/getSubDataTestId/index.js';
8
9
  import styles from './InputField.js';
9
10
  import getSubDataTestId from '../../../utils/getSubDataTestId/getSubDataTestId.js';
10
11
 
12
+ const _excluded = ["className", "inputId", "labelId", "data-testid", "label", "helperText", "errorText", "children"];
11
13
  const FormFieldWrapper = /*#__PURE__*/forwardRef((_ref, ref) => {
12
- let {
13
- className,
14
- inputId,
15
- labelId,
16
- 'data-testid': dataTestId,
17
- label,
18
- helperText,
19
- errorText,
20
- children,
21
- ...rest
22
- } = _ref;
14
+ let className = _ref.className,
15
+ inputId = _ref.inputId,
16
+ labelId = _ref.labelId,
17
+ dataTestId = _ref['data-testid'],
18
+ label = _ref.label,
19
+ helperText = _ref.helperText,
20
+ errorText = _ref.errorText,
21
+ children = _ref.children,
22
+ rest = _objectWithoutProperties(_ref, _excluded);
23
23
  return /*#__PURE__*/React__default.createElement("span", _extends({
24
24
  className: classNames(styles.formFieldWrapper, className),
25
25
  ref: ref