@carbon/react 1.83.0-rc.0 → 1.84.0-rc.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 (635) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +895 -790
  2. package/README.md +1 -1
  3. package/es/components/AILabel/index.js +37 -40
  4. package/es/components/AISkeleton/AISkeletonIcon.js +6 -7
  5. package/es/components/AISkeleton/AISkeletonPlaceholder.js +6 -7
  6. package/es/components/AISkeleton/AISkeletonText.js +6 -7
  7. package/es/components/Accordion/Accordion.Skeleton.js +24 -25
  8. package/es/components/Accordion/Accordion.js +13 -14
  9. package/es/components/Accordion/AccordionItem.js +22 -23
  10. package/es/components/Accordion/AccordionProvider.js +6 -7
  11. package/es/components/AspectRatio/AspectRatio.js +9 -10
  12. package/es/components/BadgeIndicator/index.js +7 -8
  13. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +9 -10
  14. package/es/components/Breadcrumb/Breadcrumb.js +3 -3
  15. package/es/components/Breadcrumb/BreadcrumbItem.js +9 -9
  16. package/es/components/Button/Button.Skeleton.js +10 -11
  17. package/es/components/Button/Button.js +5 -5
  18. package/es/components/Button/ButtonBase.js +27 -28
  19. package/es/components/ButtonSet/ButtonSet.js +2 -2
  20. package/es/components/ChatButton/ChatButton.Skeleton.js +7 -8
  21. package/es/components/ChatButton/ChatButton.js +13 -14
  22. package/es/components/Checkbox/Checkbox.Skeleton.js +8 -9
  23. package/es/components/Checkbox/Checkbox.js +33 -34
  24. package/es/components/CheckboxGroup/CheckboxGroup.js +28 -29
  25. package/es/components/ClassPrefix/index.js +6 -7
  26. package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +12 -13
  27. package/es/components/CodeSnippet/CodeSnippet.js +41 -42
  28. package/es/components/ComboBox/ComboBox.js +42 -48
  29. package/es/components/ComboBox/tools/filter.js +9 -12
  30. package/es/components/ComboButton/index.js +22 -24
  31. package/es/components/ComposedModal/ComposedModal.js +49 -52
  32. package/es/components/ComposedModal/ModalFooter.js +42 -47
  33. package/es/components/ComposedModal/ModalHeader.js +21 -22
  34. package/es/components/ContainedList/ContainedList.js +17 -18
  35. package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +16 -17
  36. package/es/components/ContentSwitcher/ContentSwitcher.d.ts +17 -29
  37. package/es/components/ContentSwitcher/ContentSwitcher.js +100 -126
  38. package/es/components/ContentSwitcher/index.d.ts +3 -4
  39. package/es/components/ContextMenu/useContextMenu.js +1 -2
  40. package/es/components/Copy/Copy.js +13 -14
  41. package/es/components/CopyButton/CopyButton.js +14 -15
  42. package/es/components/DangerButton/DangerButton.js +2 -2
  43. package/es/components/DataTable/DataTable.d.ts +81 -283
  44. package/es/components/DataTable/DataTable.js +124 -172
  45. package/es/components/DataTable/Table.d.ts +2 -2
  46. package/es/components/DataTable/Table.js +19 -22
  47. package/es/components/DataTable/TableActionList.d.ts +1 -1
  48. package/es/components/DataTable/TableBatchAction.js +9 -12
  49. package/es/components/DataTable/TableBatchActions.js +27 -29
  50. package/es/components/DataTable/TableBody.d.ts +3 -3
  51. package/es/components/DataTable/TableBody.js +9 -12
  52. package/es/components/DataTable/TableCell.d.ts +3 -4
  53. package/es/components/DataTable/TableCell.js +2 -2
  54. package/es/components/DataTable/TableContainer.d.ts +2 -3
  55. package/es/components/DataTable/TableContainer.js +15 -16
  56. package/es/components/DataTable/TableDecoratorRow.js +8 -9
  57. package/es/components/DataTable/TableExpandHeader.d.ts +2 -3
  58. package/es/components/DataTable/TableExpandHeader.js +18 -19
  59. package/es/components/DataTable/TableExpandRow.js +20 -21
  60. package/es/components/DataTable/TableExpandedRow.d.ts +3 -3
  61. package/es/components/DataTable/TableExpandedRow.js +10 -11
  62. package/es/components/DataTable/TableHead.d.ts +1 -1
  63. package/es/components/DataTable/TableHeader.d.ts +4 -4
  64. package/es/components/DataTable/TableHeader.js +29 -30
  65. package/es/components/DataTable/TableRow.d.ts +3 -4
  66. package/es/components/DataTable/TableRow.js +4 -4
  67. package/es/components/DataTable/TableSelectAll.js +14 -15
  68. package/es/components/DataTable/TableSelectRow.js +16 -17
  69. package/es/components/DataTable/TableSlugRow.js +7 -8
  70. package/es/components/DataTable/TableToolbar.js +9 -10
  71. package/es/components/DataTable/TableToolbarAction.js +2 -2
  72. package/es/components/DataTable/TableToolbarContent.d.ts +1 -1
  73. package/es/components/DataTable/TableToolbarMenu.js +10 -11
  74. package/es/components/DataTable/TableToolbarSearch.js +24 -26
  75. package/es/components/DataTable/index.d.ts +1 -1
  76. package/es/components/DataTable/state/sorting.js +3 -4
  77. package/es/components/DataTable/tools/filter.js +10 -12
  78. package/es/components/DataTable/tools/normalize.js +6 -8
  79. package/es/components/DataTable/tools/sorting.js +24 -30
  80. package/es/components/DataTableSkeleton/DataTableSkeleton.js +26 -27
  81. package/es/components/DatePicker/DatePicker.Skeleton.js +15 -16
  82. package/es/components/DatePicker/DatePicker.js +104 -81
  83. package/es/components/DatePickerInput/DatePickerInput.d.ts +3 -4
  84. package/es/components/DatePickerInput/DatePickerInput.js +24 -25
  85. package/es/components/Dialog/index.d.ts +194 -10
  86. package/es/components/Dialog/index.js +458 -39
  87. package/es/components/Dropdown/Dropdown.Skeleton.d.ts +2 -3
  88. package/es/components/Dropdown/Dropdown.Skeleton.js +10 -11
  89. package/es/components/Dropdown/Dropdown.d.ts +3 -3
  90. package/es/components/Dropdown/Dropdown.js +57 -60
  91. package/es/components/ErrorBoundary/ErrorBoundary.js +4 -4
  92. package/es/components/ExpandableSearch/ExpandableSearch.js +11 -12
  93. package/es/components/FeatureFlags/index.js +13 -14
  94. package/es/components/FileUploader/FileUploader.Skeleton.d.ts +3 -3
  95. package/es/components/FileUploader/FileUploader.Skeleton.js +9 -10
  96. package/es/components/FileUploader/FileUploader.d.ts +2 -3
  97. package/es/components/FileUploader/FileUploader.js +33 -35
  98. package/es/components/FileUploader/FileUploaderButton.d.ts +2 -3
  99. package/es/components/FileUploader/FileUploaderButton.js +20 -21
  100. package/es/components/FileUploader/FileUploaderDropContainer.d.ts +2 -3
  101. package/es/components/FileUploader/FileUploaderDropContainer.js +20 -21
  102. package/es/components/FileUploader/FileUploaderItem.d.ts +2 -3
  103. package/es/components/FileUploader/FileUploaderItem.js +26 -27
  104. package/es/components/FileUploader/Filename.d.ts +3 -4
  105. package/es/components/FileUploader/Filename.js +16 -17
  106. package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +9 -10
  107. package/es/components/FluidComboBox/FluidComboBox.js +8 -9
  108. package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +16 -17
  109. package/es/components/FluidDatePicker/FluidDatePicker.js +13 -14
  110. package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +3 -3
  111. package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +9 -10
  112. package/es/components/FluidDropdown/FluidDropdown.js +8 -9
  113. package/es/components/FluidForm/FluidForm.d.ts +3 -4
  114. package/es/components/FluidForm/FluidForm.js +8 -9
  115. package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +9 -10
  116. package/es/components/FluidMultiSelect/FluidMultiSelect.js +10 -11
  117. package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +9 -10
  118. package/es/components/FluidNumberInput/FluidNumberInput.d.ts +40 -1
  119. package/es/components/FluidNumberInput/FluidNumberInput.js +41 -8
  120. package/es/components/FluidSearch/FluidSearch.Skeleton.js +9 -10
  121. package/es/components/FluidSearch/FluidSearch.js +7 -8
  122. package/es/components/FluidSelect/FluidSelect.Skeleton.js +9 -10
  123. package/es/components/FluidSelect/FluidSelect.js +8 -9
  124. package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +9 -10
  125. package/es/components/FluidTextArea/FluidTextArea.js +7 -8
  126. package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +9 -10
  127. package/es/components/FluidTextInput/FluidTextInput.js +9 -10
  128. package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +8 -9
  129. package/es/components/FluidTimePicker/FluidTimePicker.js +23 -24
  130. package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +7 -8
  131. package/es/components/Form/Form.js +7 -8
  132. package/es/components/FormGroup/FormGroup.d.ts +3 -4
  133. package/es/components/FormGroup/FormGroup.js +15 -16
  134. package/es/components/FormItem/FormItem.js +7 -8
  135. package/es/components/FormLabel/FormLabel.js +8 -9
  136. package/es/components/Grid/CSSGrid.js +23 -25
  137. package/es/components/Grid/Column.js +32 -31
  138. package/es/components/Grid/ColumnHang.js +8 -9
  139. package/es/components/Grid/FlexGrid.js +12 -13
  140. package/es/components/Grid/Grid.js +3 -3
  141. package/es/components/Grid/GridContext.d.ts +2 -2
  142. package/es/components/Grid/GridContext.js +6 -7
  143. package/es/components/Grid/Row.js +10 -11
  144. package/es/components/Heading/index.js +13 -14
  145. package/es/components/Icon/Icon.Skeleton.js +6 -7
  146. package/es/components/IconButton/index.js +30 -26
  147. package/es/components/IconIndicator/index.js +10 -11
  148. package/es/components/IdPrefix/index.js +6 -7
  149. package/es/components/InlineCheckbox/InlineCheckbox.js +6 -6
  150. package/es/components/InlineLoading/InlineLoading.js +19 -20
  151. package/es/components/Layer/LayerContext.js +2 -2
  152. package/es/components/Layer/index.d.ts +4 -0
  153. package/es/components/Layer/index.js +21 -15
  154. package/es/components/Layout/index.js +24 -29
  155. package/es/components/LayoutDirection/LayoutDirection.js +10 -11
  156. package/es/components/LayoutDirection/LayoutDirectionContext.js +2 -2
  157. package/es/components/Link/Link.d.ts +1 -1
  158. package/es/components/Link/Link.js +19 -20
  159. package/es/components/ListBox/ListBox.d.ts +2 -3
  160. package/es/components/ListBox/ListBox.js +5 -5
  161. package/es/components/ListBox/ListBoxField.d.ts +3 -4
  162. package/es/components/ListBox/ListBoxField.js +8 -9
  163. package/es/components/ListBox/ListBoxMenu.d.ts +2 -3
  164. package/es/components/ListBox/ListBoxMenu.js +7 -8
  165. package/es/components/ListBox/ListBoxMenuIcon.js +8 -9
  166. package/es/components/ListBox/ListBoxMenuItem.d.ts +2 -3
  167. package/es/components/ListBox/ListBoxMenuItem.js +11 -13
  168. package/es/components/ListBox/ListBoxSelection.js +14 -15
  169. package/es/components/ListBox/next/ListBoxSelection.js +16 -17
  170. package/es/components/ListBox/next/ListBoxTrigger.js +8 -9
  171. package/es/components/ListItem/ListItem.js +7 -8
  172. package/es/components/Loading/Loading.d.ts +3 -3
  173. package/es/components/Loading/Loading.js +14 -15
  174. package/es/components/Menu/Menu.js +26 -27
  175. package/es/components/Menu/MenuItem.js +55 -60
  176. package/es/components/MenuButton/index.js +20 -22
  177. package/es/components/Modal/Modal.d.ts +2 -3
  178. package/es/components/Modal/Modal.js +85 -93
  179. package/es/components/ModalWrapper/ModalWrapper.js +9 -9
  180. package/es/components/MultiSelect/FilterableMultiSelect.js +68 -74
  181. package/es/components/MultiSelect/MultiSelect.js +65 -67
  182. package/es/components/MultiSelect/tools/sorting.js +11 -15
  183. package/es/components/Notification/Notification.js +137 -146
  184. package/es/components/NumberInput/NumberFormatPropTypes.d.ts +29 -0
  185. package/es/components/NumberInput/NumberFormatPropTypes.js +40 -0
  186. package/es/components/NumberInput/NumberInput.Skeleton.js +10 -11
  187. package/es/components/NumberInput/NumberInput.d.ts +39 -3
  188. package/es/components/NumberInput/NumberInput.js +195 -65
  189. package/es/components/OrderedList/OrderedList.js +9 -10
  190. package/es/components/OverflowMenu/OverflowMenu.d.ts +1 -1
  191. package/es/components/OverflowMenu/OverflowMenu.js +42 -48
  192. package/es/components/OverflowMenu/index.js +3 -3
  193. package/es/components/OverflowMenu/next/index.js +17 -18
  194. package/es/components/OverflowMenuItem/OverflowMenuItem.js +4 -4
  195. package/es/components/OverflowMenuV2/index.js +3 -3
  196. package/es/components/PageHeader/PageHeader.d.ts +29 -5
  197. package/es/components/PageHeader/PageHeader.js +136 -90
  198. package/es/components/Pagination/Pagination.Skeleton.js +12 -13
  199. package/es/components/Pagination/Pagination.js +40 -41
  200. package/es/components/Pagination/experimental/PageSelector.js +11 -12
  201. package/es/components/Pagination/experimental/Pagination.js +34 -35
  202. package/es/components/PaginationNav/PaginationNav.js +63 -68
  203. package/es/components/Popover/index.js +40 -42
  204. package/es/components/PrimaryButton/PrimaryButton.js +2 -2
  205. package/es/components/ProgressBar/ProgressBar.js +24 -25
  206. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +12 -13
  207. package/es/components/ProgressIndicator/ProgressIndicator.js +49 -52
  208. package/es/components/RadioButton/RadioButton.Skeleton.js +4 -4
  209. package/es/components/RadioButton/RadioButton.js +10 -10
  210. package/es/components/RadioButtonGroup/RadioButtonGroup.js +16 -16
  211. package/es/components/RadioTile/RadioTile.js +28 -29
  212. package/es/components/Search/Search.Skeleton.js +9 -10
  213. package/es/components/Search/Search.js +36 -38
  214. package/es/components/SecondaryButton/SecondaryButton.js +2 -2
  215. package/es/components/Select/Select.Skeleton.js +10 -11
  216. package/es/components/Select/Select.js +42 -43
  217. package/es/components/SelectItem/SelectItem.js +10 -11
  218. package/es/components/SelectItemGroup/SelectItemGroup.js +9 -10
  219. package/es/components/ShapeIndicator/index.js +13 -14
  220. package/es/components/SkeletonIcon/SkeletonIcon.d.ts +0 -4
  221. package/es/components/SkeletonIcon/SkeletonIcon.js +7 -12
  222. package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +6 -7
  223. package/es/components/SkeletonText/SkeletonText.js +12 -13
  224. package/es/components/Slider/Slider.Skeleton.js +25 -26
  225. package/es/components/Slider/Slider.js +99 -113
  226. package/es/components/Slider/SliderHandles.js +20 -20
  227. package/es/components/Stack/HStack.js +2 -2
  228. package/es/components/Stack/Stack.js +2 -2
  229. package/es/components/Stack/VStack.js +2 -2
  230. package/es/components/StructuredList/StructuredList.Skeleton.js +17 -18
  231. package/es/components/StructuredList/StructuredList.js +24 -24
  232. package/es/components/Switch/IconSwitch.js +3 -3
  233. package/es/components/Switch/Switch.js +4 -4
  234. package/es/components/TabContent/TabContent.js +2 -2
  235. package/es/components/Tabs/Tabs.Skeleton.js +12 -13
  236. package/es/components/Tabs/Tabs.js +141 -156
  237. package/es/components/Tabs/usePressable.js +7 -8
  238. package/es/components/Tag/DismissibleTag.js +26 -27
  239. package/es/components/Tag/OperationalTag.js +16 -17
  240. package/es/components/Tag/SelectableTag.js +19 -20
  241. package/es/components/Tag/Tag.Skeleton.js +7 -8
  242. package/es/components/Tag/Tag.js +33 -34
  243. package/es/components/Text/Text.js +9 -10
  244. package/es/components/Text/TextDirection.js +7 -8
  245. package/es/components/Text/createTextComponent.js +2 -2
  246. package/es/components/TextArea/TextArea.Skeleton.js +4 -4
  247. package/es/components/TextArea/TextArea.js +22 -22
  248. package/es/components/TextInput/ControlledPasswordInput.d.ts +2 -3
  249. package/es/components/TextInput/ControlledPasswordInput.js +36 -37
  250. package/es/components/TextInput/PasswordInput.js +40 -41
  251. package/es/components/TextInput/TextInput.Skeleton.js +9 -10
  252. package/es/components/TextInput/TextInput.js +43 -44
  253. package/es/components/TextInput/util.js +14 -17
  254. package/es/components/Theme/index.js +19 -21
  255. package/es/components/Tile/Tile.js +98 -104
  256. package/es/components/TileGroup/TileGroup.d.ts +3 -4
  257. package/es/components/TileGroup/TileGroup.js +8 -8
  258. package/es/components/TimePicker/TimePicker.d.ts +2 -3
  259. package/es/components/TimePicker/TimePicker.js +14 -14
  260. package/es/components/TimePickerSelect/TimePickerSelect.js +4 -4
  261. package/es/components/Toggle/Toggle.Skeleton.js +8 -9
  262. package/es/components/Toggle/Toggle.js +27 -28
  263. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +14 -15
  264. package/es/components/Toggletip/index.js +43 -49
  265. package/es/components/Tooltip/DefinitionTooltip.js +17 -18
  266. package/es/components/Tooltip/Tooltip.d.ts +3 -0
  267. package/es/components/Tooltip/Tooltip.js +39 -28
  268. package/es/components/TreeView/TreeNode.js +64 -56
  269. package/es/components/TreeView/TreeView.js +44 -37
  270. package/es/components/UIShell/Content.js +8 -9
  271. package/es/components/UIShell/Header.js +7 -8
  272. package/es/components/UIShell/HeaderContainer.js +7 -8
  273. package/es/components/UIShell/HeaderGlobalAction.js +14 -15
  274. package/es/components/UIShell/HeaderGlobalBar.d.ts +1 -1
  275. package/es/components/UIShell/HeaderMenu.d.ts +10 -112
  276. package/es/components/UIShell/HeaderMenu.js +154 -201
  277. package/es/components/UIShell/HeaderMenuButton.js +14 -15
  278. package/es/components/UIShell/HeaderMenuItem.js +21 -20
  279. package/es/components/UIShell/HeaderName.js +9 -10
  280. package/es/components/UIShell/HeaderNavigation.js +10 -11
  281. package/es/components/UIShell/HeaderPanel.js +11 -12
  282. package/es/components/UIShell/HeaderSideNavItems.js +7 -8
  283. package/es/components/UIShell/Link.js +11 -12
  284. package/es/components/UIShell/SideNav.js +30 -32
  285. package/es/components/UIShell/SideNavDetails.js +9 -10
  286. package/es/components/UIShell/SideNavDivider.js +6 -7
  287. package/es/components/UIShell/SideNavFooter.js +13 -14
  288. package/es/components/UIShell/SideNavHeader.js +8 -9
  289. package/es/components/UIShell/SideNavIcon.js +7 -8
  290. package/es/components/UIShell/SideNavItem.js +7 -8
  291. package/es/components/UIShell/SideNavItems.js +10 -11
  292. package/es/components/UIShell/SideNavLink.js +15 -16
  293. package/es/components/UIShell/SideNavLinkText.js +7 -8
  294. package/es/components/UIShell/SideNavMenu.js +20 -21
  295. package/es/components/UIShell/SideNavMenuItem.js +5 -5
  296. package/es/components/UIShell/SideNavSwitcher.js +8 -8
  297. package/es/components/UIShell/SkipToContent.js +9 -10
  298. package/es/components/UIShell/Switcher.js +12 -13
  299. package/es/components/UIShell/SwitcherDivider.js +6 -7
  300. package/es/components/UIShell/SwitcherItem.js +3 -3
  301. package/es/components/UnorderedList/UnorderedList.js +8 -9
  302. package/es/index.js +25 -26
  303. package/es/internal/FloatingMenu.js +30 -32
  304. package/es/internal/Selection.js +15 -17
  305. package/{lib/feature-flags.d.ts → es/internal/__mocks__/mockHTMLElement.d.ts} +4 -2
  306. package/es/internal/createClassWrapper.js +2 -2
  307. package/es/internal/getAnnouncement.d.ts +8 -0
  308. package/es/internal/getAnnouncement.js +22 -0
  309. package/es/internal/keyboard/match.js +6 -7
  310. package/es/internal/useControllableState.d.ts +1 -1
  311. package/es/internal/useControllableState.js +8 -9
  312. package/es/internal/useDelayedState.js +1 -2
  313. package/es/internal/useDocumentLang.d.ts +12 -0
  314. package/es/internal/useId.js +4 -6
  315. package/es/internal/useIdPrefix.js +3 -3
  316. package/es/internal/useMatchMedia.js +1 -2
  317. package/es/internal/useMergedRefs.d.ts +1 -1
  318. package/es/internal/useNoInteractiveChildren.js +2 -4
  319. package/es/internal/useNormalizedInputProps.js +12 -13
  320. package/es/internal/usePrefix.js +3 -3
  321. package/es/internal/useResizeObserver.d.ts +14 -0
  322. package/es/internal/useResizeObserver.js +73 -0
  323. package/es/internal/useSavedCallback.js +1 -3
  324. package/es/internal/wrapFocus.js +23 -35
  325. package/es/prop-types/deprecate.js +1 -4
  326. package/es/prop-types/deprecateValuesWithin.js +1 -4
  327. package/es/prop-types/isRequiredOneOf.js +1 -4
  328. package/es/prop-types/requiredIfGivenPropIsTruthy.js +1 -4
  329. package/es/tools/events.js +1 -4
  330. package/es/tools/mergeRefs.js +9 -14
  331. package/es/tools/uniqueId.js +1 -2
  332. package/es/tools/wrapComponent.d.ts +3 -4
  333. package/es/tools/wrapComponent.js +11 -13
  334. package/es/types/common.d.ts +0 -2
  335. package/lib/components/AILabel/index.js +27 -30
  336. package/lib/components/AISkeleton/AISkeletonIcon.js +4 -5
  337. package/lib/components/AISkeleton/AISkeletonPlaceholder.js +4 -5
  338. package/lib/components/AISkeleton/AISkeletonText.js +4 -5
  339. package/lib/components/Accordion/Accordion.Skeleton.js +9 -10
  340. package/lib/components/Accordion/Accordion.js +10 -11
  341. package/lib/components/Accordion/AccordionItem.js +13 -14
  342. package/lib/components/Accordion/AccordionProvider.js +4 -5
  343. package/lib/components/AspectRatio/AspectRatio.js +7 -8
  344. package/lib/components/BadgeIndicator/index.js +5 -6
  345. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +4 -5
  346. package/lib/components/Button/Button.Skeleton.js +7 -8
  347. package/lib/components/Button/ButtonBase.js +23 -24
  348. package/lib/components/ChatButton/ChatButton.Skeleton.js +5 -6
  349. package/lib/components/ChatButton/ChatButton.js +11 -12
  350. package/lib/components/Checkbox/Checkbox.Skeleton.js +4 -5
  351. package/lib/components/Checkbox/Checkbox.js +19 -20
  352. package/lib/components/CheckboxGroup/CheckboxGroup.js +16 -17
  353. package/lib/components/ClassPrefix/index.js +4 -5
  354. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +5 -6
  355. package/lib/components/CodeSnippet/CodeSnippet.js +27 -29
  356. package/lib/components/ComboBox/ComboBox.js +24 -30
  357. package/lib/components/ComboBox/tools/filter.js +9 -12
  358. package/lib/components/ComboButton/index.js +16 -18
  359. package/lib/components/ComposedModal/ComposedModal.js +31 -34
  360. package/lib/components/ComposedModal/ModalFooter.js +37 -42
  361. package/lib/components/ComposedModal/ModalHeader.js +14 -15
  362. package/lib/components/ContainedList/ContainedList.js +10 -11
  363. package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +9 -10
  364. package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +17 -29
  365. package/lib/components/ContentSwitcher/ContentSwitcher.js +98 -124
  366. package/lib/components/ContentSwitcher/index.d.ts +3 -4
  367. package/lib/components/ContextMenu/useContextMenu.js +1 -2
  368. package/lib/components/Copy/Copy.js +11 -12
  369. package/lib/components/CopyButton/CopyButton.js +10 -11
  370. package/lib/components/DataTable/DataTable.d.ts +81 -283
  371. package/lib/components/DataTable/DataTable.js +123 -172
  372. package/lib/components/DataTable/Table.d.ts +2 -2
  373. package/lib/components/DataTable/Table.js +15 -18
  374. package/lib/components/DataTable/TableActionList.d.ts +1 -1
  375. package/lib/components/DataTable/TableBatchAction.js +8 -11
  376. package/lib/components/DataTable/TableBatchActions.js +18 -20
  377. package/lib/components/DataTable/TableBody.d.ts +3 -3
  378. package/lib/components/DataTable/TableBody.js +8 -11
  379. package/lib/components/DataTable/TableCell.d.ts +3 -4
  380. package/lib/components/DataTable/TableContainer.d.ts +2 -3
  381. package/lib/components/DataTable/TableContainer.js +9 -10
  382. package/lib/components/DataTable/TableDecoratorRow.js +4 -5
  383. package/lib/components/DataTable/TableExpandHeader.d.ts +2 -3
  384. package/lib/components/DataTable/TableExpandHeader.js +14 -15
  385. package/lib/components/DataTable/TableExpandRow.js +13 -14
  386. package/lib/components/DataTable/TableExpandedRow.d.ts +3 -3
  387. package/lib/components/DataTable/TableExpandedRow.js +6 -7
  388. package/lib/components/DataTable/TableHead.d.ts +1 -1
  389. package/lib/components/DataTable/TableHeader.d.ts +4 -4
  390. package/lib/components/DataTable/TableHeader.js +15 -16
  391. package/lib/components/DataTable/TableRow.d.ts +3 -4
  392. package/lib/components/DataTable/TableSelectAll.js +11 -12
  393. package/lib/components/DataTable/TableSelectRow.js +12 -13
  394. package/lib/components/DataTable/TableSlugRow.js +4 -5
  395. package/lib/components/DataTable/TableToolbar.js +7 -8
  396. package/lib/components/DataTable/TableToolbarContent.d.ts +1 -1
  397. package/lib/components/DataTable/TableToolbarMenu.js +8 -9
  398. package/lib/components/DataTable/TableToolbarSearch.js +22 -24
  399. package/lib/components/DataTable/index.d.ts +1 -1
  400. package/lib/components/DataTable/state/sorting.js +3 -4
  401. package/lib/components/DataTable/tools/filter.js +10 -12
  402. package/lib/components/DataTable/tools/normalize.js +6 -8
  403. package/lib/components/DataTable/tools/sorting.js +24 -30
  404. package/lib/components/DataTableSkeleton/DataTableSkeleton.js +11 -12
  405. package/lib/components/DatePicker/DatePicker.Skeleton.js +7 -8
  406. package/lib/components/DatePicker/DatePicker.js +87 -64
  407. package/lib/components/DatePickerInput/DatePickerInput.d.ts +3 -4
  408. package/lib/components/DatePickerInput/DatePickerInput.js +5 -6
  409. package/lib/components/Dialog/index.d.ts +194 -10
  410. package/lib/components/Dialog/index.js +457 -33
  411. package/lib/components/Dropdown/Dropdown.Skeleton.d.ts +2 -3
  412. package/lib/components/Dropdown/Dropdown.Skeleton.js +6 -7
  413. package/lib/components/Dropdown/Dropdown.d.ts +3 -3
  414. package/lib/components/Dropdown/Dropdown.js +40 -43
  415. package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -2
  416. package/lib/components/ExpandableSearch/ExpandableSearch.js +9 -10
  417. package/lib/components/FeatureFlags/index.js +11 -12
  418. package/lib/components/FileUploader/FileUploader.Skeleton.d.ts +3 -3
  419. package/lib/components/FileUploader/FileUploader.Skeleton.js +4 -5
  420. package/lib/components/FileUploader/FileUploader.d.ts +2 -3
  421. package/lib/components/FileUploader/FileUploader.js +22 -24
  422. package/lib/components/FileUploader/FileUploaderButton.d.ts +2 -3
  423. package/lib/components/FileUploader/FileUploaderButton.js +16 -17
  424. package/lib/components/FileUploader/FileUploaderDropContainer.d.ts +2 -3
  425. package/lib/components/FileUploader/FileUploaderDropContainer.js +15 -16
  426. package/lib/components/FileUploader/FileUploaderItem.d.ts +2 -3
  427. package/lib/components/FileUploader/FileUploaderItem.js +13 -14
  428. package/lib/components/FileUploader/Filename.d.ts +3 -4
  429. package/lib/components/FileUploader/Filename.js +9 -10
  430. package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +4 -5
  431. package/lib/components/FluidComboBox/FluidComboBox.js +5 -6
  432. package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +5 -6
  433. package/lib/components/FluidDatePicker/FluidDatePicker.js +10 -11
  434. package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +4 -5
  435. package/lib/components/FluidDropdown/FluidDropdown.js +5 -6
  436. package/lib/components/FluidForm/FluidForm.d.ts +3 -4
  437. package/lib/components/FluidForm/FluidForm.js +5 -6
  438. package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +4 -5
  439. package/lib/components/FluidMultiSelect/FluidMultiSelect.js +6 -7
  440. package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +4 -5
  441. package/lib/components/FluidNumberInput/FluidNumberInput.d.ts +40 -1
  442. package/lib/components/FluidNumberInput/FluidNumberInput.js +38 -5
  443. package/lib/components/FluidSearch/FluidSearch.Skeleton.js +4 -5
  444. package/lib/components/FluidSearch/FluidSearch.js +4 -5
  445. package/lib/components/FluidSelect/FluidSelect.Skeleton.js +4 -5
  446. package/lib/components/FluidSelect/FluidSelect.js +5 -6
  447. package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +4 -5
  448. package/lib/components/FluidTextArea/FluidTextArea.js +4 -5
  449. package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +4 -5
  450. package/lib/components/FluidTextInput/FluidTextInput.js +5 -6
  451. package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +5 -6
  452. package/lib/components/FluidTimePicker/FluidTimePicker.js +11 -12
  453. package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +5 -6
  454. package/lib/components/Form/Form.js +5 -6
  455. package/lib/components/FormGroup/FormGroup.d.ts +3 -4
  456. package/lib/components/FormGroup/FormGroup.js +11 -12
  457. package/lib/components/FormItem/FormItem.js +5 -6
  458. package/lib/components/FormLabel/FormLabel.js +6 -7
  459. package/lib/components/Grid/CSSGrid.js +17 -19
  460. package/lib/components/Grid/Column.js +28 -27
  461. package/lib/components/Grid/ColumnHang.js +6 -7
  462. package/lib/components/Grid/FlexGrid.js +9 -10
  463. package/lib/components/Grid/GridContext.d.ts +2 -2
  464. package/lib/components/Grid/GridContext.js +10 -29
  465. package/lib/components/Grid/Row.js +8 -9
  466. package/lib/components/Heading/index.js +5 -6
  467. package/lib/components/Icon/Icon.Skeleton.js +4 -5
  468. package/lib/components/IconButton/index.js +26 -22
  469. package/lib/components/IconIndicator/index.js +7 -8
  470. package/lib/components/IdPrefix/index.js +4 -5
  471. package/lib/components/InlineLoading/InlineLoading.js +9 -10
  472. package/lib/components/Layer/index.d.ts +4 -0
  473. package/lib/components/Layer/index.js +16 -10
  474. package/lib/components/Layout/index.js +21 -26
  475. package/lib/components/LayoutDirection/LayoutDirection.js +6 -7
  476. package/lib/components/Link/Link.d.ts +1 -1
  477. package/lib/components/Link/Link.js +15 -16
  478. package/lib/components/ListBox/ListBox.d.ts +2 -3
  479. package/lib/components/ListBox/ListBoxField.d.ts +3 -4
  480. package/lib/components/ListBox/ListBoxField.js +6 -7
  481. package/lib/components/ListBox/ListBoxMenu.d.ts +2 -3
  482. package/lib/components/ListBox/ListBoxMenu.js +5 -6
  483. package/lib/components/ListBox/ListBoxMenuIcon.js +4 -5
  484. package/lib/components/ListBox/ListBoxMenuItem.d.ts +2 -3
  485. package/lib/components/ListBox/ListBoxMenuItem.js +8 -10
  486. package/lib/components/ListBox/ListBoxSelection.js +8 -9
  487. package/lib/components/ListBox/next/ListBoxSelection.js +9 -10
  488. package/lib/components/ListBox/next/ListBoxTrigger.js +5 -6
  489. package/lib/components/ListItem/ListItem.js +5 -6
  490. package/lib/components/Loading/Loading.d.ts +3 -3
  491. package/lib/components/Loading/Loading.js +8 -9
  492. package/lib/components/Menu/Menu.js +23 -24
  493. package/lib/components/Menu/MenuItem.js +39 -44
  494. package/lib/components/MenuButton/index.js +16 -18
  495. package/lib/components/Modal/Modal.d.ts +2 -3
  496. package/lib/components/Modal/Modal.js +55 -63
  497. package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
  498. package/lib/components/MultiSelect/FilterableMultiSelect.js +46 -52
  499. package/lib/components/MultiSelect/MultiSelect.js +43 -45
  500. package/lib/components/MultiSelect/tools/sorting.js +11 -15
  501. package/lib/components/Notification/Notification.js +96 -105
  502. package/lib/components/NumberInput/NumberFormatPropTypes.d.ts +29 -0
  503. package/lib/components/NumberInput/NumberFormatPropTypes.js +48 -0
  504. package/lib/components/NumberInput/NumberInput.Skeleton.js +6 -7
  505. package/lib/components/NumberInput/NumberInput.d.ts +39 -3
  506. package/lib/components/NumberInput/NumberInput.js +173 -43
  507. package/lib/components/OrderedList/OrderedList.js +7 -8
  508. package/lib/components/OverflowMenu/OverflowMenu.d.ts +1 -1
  509. package/lib/components/OverflowMenu/OverflowMenu.js +35 -41
  510. package/lib/components/OverflowMenu/next/index.js +12 -13
  511. package/lib/components/PageHeader/PageHeader.d.ts +29 -5
  512. package/lib/components/PageHeader/PageHeader.js +119 -73
  513. package/lib/components/Pagination/Pagination.Skeleton.js +4 -5
  514. package/lib/components/Pagination/Pagination.js +24 -25
  515. package/lib/components/Pagination/experimental/PageSelector.js +8 -9
  516. package/lib/components/Pagination/experimental/Pagination.js +20 -21
  517. package/lib/components/PaginationNav/PaginationNav.js +33 -38
  518. package/lib/components/Popover/index.js +26 -28
  519. package/lib/components/ProgressBar/ProgressBar.js +11 -12
  520. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +5 -6
  521. package/lib/components/ProgressIndicator/ProgressIndicator.js +29 -32
  522. package/lib/components/RadioTile/RadioTile.js +17 -18
  523. package/lib/components/Search/Search.Skeleton.js +5 -6
  524. package/lib/components/Search/Search.js +26 -28
  525. package/lib/components/Select/Select.Skeleton.js +5 -6
  526. package/lib/components/Select/Select.js +24 -25
  527. package/lib/components/SelectItem/SelectItem.js +8 -9
  528. package/lib/components/SelectItemGroup/SelectItemGroup.js +7 -8
  529. package/lib/components/ShapeIndicator/index.js +7 -8
  530. package/lib/components/SkeletonIcon/SkeletonIcon.d.ts +0 -4
  531. package/lib/components/SkeletonIcon/SkeletonIcon.js +5 -10
  532. package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +4 -5
  533. package/lib/components/SkeletonText/SkeletonText.js +8 -9
  534. package/lib/components/Slider/Slider.Skeleton.js +8 -9
  535. package/lib/components/Slider/Slider.js +69 -83
  536. package/lib/components/Slider/SliderHandles.js +6 -6
  537. package/lib/components/StructuredList/StructuredList.Skeleton.js +5 -6
  538. package/lib/components/Tabs/Tabs.Skeleton.js +5 -6
  539. package/lib/components/Tabs/Tabs.js +83 -98
  540. package/lib/components/Tabs/usePressable.js +7 -8
  541. package/lib/components/Tag/DismissibleTag.js +16 -17
  542. package/lib/components/Tag/OperationalTag.js +10 -11
  543. package/lib/components/Tag/SelectableTag.js +13 -14
  544. package/lib/components/Tag/Tag.Skeleton.js +5 -6
  545. package/lib/components/Tag/Tag.js +19 -20
  546. package/lib/components/Text/Text.js +6 -7
  547. package/lib/components/Text/TextDirection.js +5 -6
  548. package/lib/components/TextArea/TextArea.js +3 -3
  549. package/lib/components/TextInput/ControlledPasswordInput.d.ts +2 -3
  550. package/lib/components/TextInput/ControlledPasswordInput.js +24 -25
  551. package/lib/components/TextInput/PasswordInput.js +26 -27
  552. package/lib/components/TextInput/TextInput.Skeleton.js +5 -6
  553. package/lib/components/TextInput/TextInput.js +27 -28
  554. package/lib/components/TextInput/util.js +14 -17
  555. package/lib/components/Theme/index.js +10 -12
  556. package/lib/components/Tile/Tile.js +68 -74
  557. package/lib/components/TileGroup/TileGroup.d.ts +3 -4
  558. package/lib/components/TimePicker/TimePicker.d.ts +2 -3
  559. package/lib/components/Toggle/Toggle.Skeleton.js +4 -5
  560. package/lib/components/Toggle/Toggle.js +17 -18
  561. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +6 -7
  562. package/lib/components/Toggletip/index.js +33 -39
  563. package/lib/components/Tooltip/DefinitionTooltip.js +13 -14
  564. package/lib/components/Tooltip/Tooltip.d.ts +3 -0
  565. package/lib/components/Tooltip/Tooltip.js +33 -22
  566. package/lib/components/TreeView/TreeNode.js +40 -32
  567. package/lib/components/TreeView/TreeView.js +41 -34
  568. package/lib/components/UIShell/Content.js +6 -7
  569. package/lib/components/UIShell/Header.js +5 -6
  570. package/lib/components/UIShell/HeaderContainer.js +5 -6
  571. package/lib/components/UIShell/HeaderGlobalAction.js +12 -13
  572. package/lib/components/UIShell/HeaderGlobalBar.d.ts +1 -1
  573. package/lib/components/UIShell/HeaderMenu.d.ts +10 -112
  574. package/lib/components/UIShell/HeaderMenu.js +152 -199
  575. package/lib/components/UIShell/HeaderMenuButton.js +10 -11
  576. package/lib/components/UIShell/HeaderMenuItem.js +17 -16
  577. package/lib/components/UIShell/HeaderName.js +6 -7
  578. package/lib/components/UIShell/HeaderNavigation.js +7 -8
  579. package/lib/components/UIShell/HeaderPanel.js +9 -10
  580. package/lib/components/UIShell/HeaderSideNavItems.js +5 -6
  581. package/lib/components/UIShell/Link.js +8 -9
  582. package/lib/components/UIShell/SideNav.js +23 -25
  583. package/lib/components/UIShell/SideNavDetails.js +6 -7
  584. package/lib/components/UIShell/SideNavDivider.js +3 -4
  585. package/lib/components/UIShell/SideNavFooter.js +6 -7
  586. package/lib/components/UIShell/SideNavHeader.js +5 -6
  587. package/lib/components/UIShell/SideNavIcon.js +5 -6
  588. package/lib/components/UIShell/SideNavItem.js +5 -6
  589. package/lib/components/UIShell/SideNavItems.js +5 -6
  590. package/lib/components/UIShell/SideNavLink.js +10 -11
  591. package/lib/components/UIShell/SideNavLinkText.js +5 -6
  592. package/lib/components/UIShell/SideNavMenu.js +11 -12
  593. package/lib/components/UIShell/SkipToContent.js +7 -8
  594. package/lib/components/UIShell/Switcher.js +4 -5
  595. package/lib/components/UIShell/SwitcherDivider.js +4 -5
  596. package/lib/components/UnorderedList/UnorderedList.js +6 -7
  597. package/lib/index.js +81 -82
  598. package/lib/internal/FloatingMenu.js +26 -28
  599. package/lib/internal/Selection.js +15 -17
  600. package/{es/feature-flags.d.ts → lib/internal/__mocks__/mockHTMLElement.d.ts} +4 -2
  601. package/lib/internal/getAnnouncement.d.ts +8 -0
  602. package/lib/internal/getAnnouncement.js +26 -0
  603. package/lib/internal/keyboard/match.js +6 -7
  604. package/lib/internal/useControllableState.d.ts +1 -1
  605. package/lib/internal/useControllableState.js +8 -9
  606. package/lib/internal/useDelayedState.js +1 -2
  607. package/lib/internal/useDocumentLang.d.ts +12 -0
  608. package/lib/internal/useId.js +2 -4
  609. package/lib/internal/useMatchMedia.js +1 -2
  610. package/lib/internal/useMergedRefs.d.ts +1 -1
  611. package/lib/internal/useNoInteractiveChildren.js +2 -4
  612. package/lib/internal/useNormalizedInputProps.js +9 -10
  613. package/lib/internal/useResizeObserver.d.ts +14 -0
  614. package/lib/internal/useResizeObserver.js +77 -0
  615. package/lib/internal/useSavedCallback.js +1 -3
  616. package/lib/internal/wrapFocus.js +23 -35
  617. package/lib/prop-types/deprecate.js +1 -4
  618. package/lib/prop-types/deprecateValuesWithin.js +1 -4
  619. package/lib/prop-types/isRequiredOneOf.js +1 -4
  620. package/lib/prop-types/requiredIfGivenPropIsTruthy.js +1 -4
  621. package/lib/tools/events.js +1 -4
  622. package/lib/tools/mergeRefs.js +9 -14
  623. package/lib/tools/uniqueId.js +1 -2
  624. package/lib/tools/wrapComponent.d.ts +3 -4
  625. package/lib/tools/wrapComponent.js +9 -11
  626. package/lib/types/common.d.ts +0 -2
  627. package/package.json +21 -20
  628. package/scss/components/content-switcher/_tokens.scss +9 -0
  629. package/telemetry.yml +27 -2
  630. package/es/components/ContentSwitcher/index.js +0 -13
  631. package/es/components/DataTable/index.js +0 -76
  632. package/es/internal/useAnnouncer.js +0 -21
  633. package/lib/components/ContentSwitcher/index.js +0 -18
  634. package/lib/components/DataTable/index.js +0 -82
  635. package/lib/internal/useAnnouncer.js +0 -25
@@ -73,48 +73,47 @@ const {
73
73
  * ends up just being defined as "string".)
74
74
  */
75
75
 
76
- const FilterableMultiSelect = /*#__PURE__*/React.forwardRef(function FilterableMultiSelect(_ref, ref) {
77
- let {
78
- autoAlign = false,
79
- className: containerClassName,
80
- clearSelectionDescription = 'Total items selected: ',
81
- clearSelectionText = 'To clear selection, press Delete or Backspace',
82
- compareItems = sorting.defaultCompareItems,
83
- decorator,
84
- direction = 'bottom',
85
- disabled = false,
86
- downshiftProps,
87
- filterItems = filter.defaultFilterItems,
88
- helperText,
89
- hideLabel,
90
- id,
91
- initialSelectedItems = [],
92
- invalid,
93
- invalidText,
94
- items,
95
- itemToElement: ItemToElement,
96
- // needs to be capitalized for react to render it correctly
97
- itemToString: itemToString$1 = itemToString.defaultItemToString,
98
- light,
99
- locale = 'en',
100
- onInputValueChange,
101
- open = false,
102
- onChange,
103
- onMenuChange,
104
- placeholder,
105
- readOnly,
106
- titleText,
107
- type,
108
- selectionFeedback = 'top-after-reopen',
109
- selectedItems: selected,
110
- size,
111
- sortItems = sorting.defaultSortItems,
112
- translateWithId,
113
- useTitleInItem,
114
- warn,
115
- warnText,
116
- slug
117
- } = _ref;
76
+ const FilterableMultiSelect = /*#__PURE__*/React.forwardRef(function FilterableMultiSelect({
77
+ autoAlign = false,
78
+ className: containerClassName,
79
+ clearSelectionDescription = 'Total items selected: ',
80
+ clearSelectionText = 'To clear selection, press Delete or Backspace',
81
+ compareItems = sorting.defaultCompareItems,
82
+ decorator,
83
+ direction = 'bottom',
84
+ disabled = false,
85
+ downshiftProps,
86
+ filterItems = filter.defaultFilterItems,
87
+ helperText,
88
+ hideLabel,
89
+ id,
90
+ initialSelectedItems = [],
91
+ invalid,
92
+ invalidText,
93
+ items,
94
+ itemToElement: ItemToElement,
95
+ // needs to be capitalized for react to render it correctly
96
+ itemToString: itemToString$1 = itemToString.defaultItemToString,
97
+ light,
98
+ locale = 'en',
99
+ onInputValueChange,
100
+ open = false,
101
+ onChange,
102
+ onMenuChange,
103
+ placeholder,
104
+ readOnly,
105
+ titleText,
106
+ type,
107
+ selectionFeedback = 'top-after-reopen',
108
+ selectedItems: selected,
109
+ size,
110
+ sortItems = sorting.defaultSortItems,
111
+ translateWithId,
112
+ useTitleInItem,
113
+ warn,
114
+ warnText,
115
+ slug
116
+ }, ref) {
118
117
  const {
119
118
  isFluid
120
119
  } = React.useContext(FormContext.FormContext);
@@ -150,11 +149,10 @@ const FilterableMultiSelect = /*#__PURE__*/React.forwardRef(function FilterableM
150
149
  middleware: [react.flip({
151
150
  crossAxis: false
152
151
  }), react.size({
153
- apply(_ref2) {
154
- let {
155
- rects,
156
- elements
157
- } = _ref2;
152
+ apply({
153
+ rects,
154
+ elements
155
+ }) {
158
156
  Object.assign(elements.floating.style, {
159
157
  width: `${rects.reference.width}px`
160
158
  });
@@ -555,11 +553,7 @@ const FilterableMultiSelect = /*#__PURE__*/React.forwardRef(function FilterableM
555
553
  }
556
554
  }
557
555
  } : {};
558
- const clearSelectionContent = controlledSelectedItems.length > 0 ? /*#__PURE__*/React__default["default"].createElement("span", {
559
- className: `${prefix}--visually-hidden`
560
- }, clearSelectionDescription, " ", controlledSelectedItems.length, ",", clearSelectionText) : /*#__PURE__*/React__default["default"].createElement("span", {
561
- className: `${prefix}--visually-hidden`
562
- }, clearSelectionDescription, ": 0");
556
+ const clearSelectionContent = controlledSelectedItems.length > 0 ? `${clearSelectionDescription} ${controlledSelectedItems.length}. ${clearSelectionText}.` : `${clearSelectionDescription} 0.`;
563
557
  return /*#__PURE__*/React__default["default"].createElement("div", {
564
558
  className: wrapperClasses
565
559
  }, titleText ? /*#__PURE__*/React__default["default"].createElement("label", _rollupPluginBabelHelpers["extends"]({
@@ -69,46 +69,45 @@ const defaultItemToString = item => {
69
69
  }
70
70
  return '';
71
71
  };
72
- const MultiSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
73
- let {
74
- autoAlign = false,
75
- className: containerClassName,
76
- decorator,
77
- id,
78
- items,
79
- itemToElement,
80
- itemToString = defaultItemToString,
81
- titleText = false,
82
- hideLabel,
83
- helperText,
84
- label,
85
- type = 'default',
86
- size,
87
- disabled = false,
88
- initialSelectedItems = [],
89
- sortItems = sorting.defaultSortItems,
90
- compareItems = sorting.defaultCompareItems,
91
- clearSelectionText = 'To clear selection, press Delete or Backspace',
92
- clearAnnouncement = 'all items have been cleared',
93
- clearSelectionDescription = 'Total items selected: ',
94
- light,
95
- invalid,
96
- invalidText,
97
- warn,
98
- warnText,
99
- useTitleInItem,
100
- translateWithId,
101
- downshiftProps,
102
- open = false,
103
- selectionFeedback = 'top-after-reopen',
104
- onChange,
105
- onMenuChange,
106
- direction = 'bottom',
107
- selectedItems: selected,
108
- readOnly,
109
- locale = 'en',
110
- slug
111
- } = _ref;
72
+ const MultiSelect = /*#__PURE__*/React__default["default"].forwardRef(({
73
+ autoAlign = false,
74
+ className: containerClassName,
75
+ decorator,
76
+ id,
77
+ items,
78
+ itemToElement,
79
+ itemToString = defaultItemToString,
80
+ titleText = false,
81
+ hideLabel,
82
+ helperText,
83
+ label,
84
+ type = 'default',
85
+ size,
86
+ disabled = false,
87
+ initialSelectedItems = [],
88
+ sortItems = sorting.defaultSortItems,
89
+ compareItems = sorting.defaultCompareItems,
90
+ clearSelectionText = 'To clear selection, press Delete or Backspace',
91
+ clearAnnouncement = 'all items have been cleared',
92
+ clearSelectionDescription = 'Total items selected: ',
93
+ light,
94
+ invalid,
95
+ invalidText,
96
+ warn,
97
+ warnText,
98
+ useTitleInItem,
99
+ translateWithId,
100
+ downshiftProps,
101
+ open = false,
102
+ selectionFeedback = 'top-after-reopen',
103
+ onChange,
104
+ onMenuChange,
105
+ direction = 'bottom',
106
+ selectedItems: selected,
107
+ readOnly,
108
+ locale = 'en',
109
+ slug
110
+ }, ref) => {
112
111
  const filteredItems = React.useMemo(() => {
113
112
  return items.filter(item => {
114
113
  if (typeof item === 'object' && item !== null) {
@@ -153,11 +152,10 @@ const MultiSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
153
152
  middleware: [autoAlign && react.flip({
154
153
  crossAxis: false
155
154
  }), react.size({
156
- apply(_ref2) {
157
- let {
158
- rects,
159
- elements
160
- } = _ref2;
155
+ apply({
156
+ rects,
157
+ elements
158
+ }) {
161
159
  Object.assign(elements.floating.style, {
162
160
  width: `${rects.reference.width}px`
163
161
  });
@@ -20,25 +20,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
20
20
  * @returns {number} A negative number if itemA comes before itemB, a positive
21
21
  * number if itemA comes after itemB, or 0 if they are equal.
22
22
  */
23
- const defaultCompareItems = (itemA, itemB, _ref) => {
24
- let {
25
- locale
26
- } = _ref;
27
- return itemA.localeCompare(itemB, locale, {
28
- numeric: true
29
- });
30
- };
23
+ const defaultCompareItems = (itemA, itemB, {
24
+ locale
25
+ }) => itemA.localeCompare(itemB, locale, {
26
+ numeric: true
27
+ });
31
28
 
32
29
  /**
33
30
  * Default sorting algorithm for options in a selection control
34
31
  */
35
- const defaultSortItems = (items, _ref2) => {
36
- let {
37
- selectedItems = [],
38
- itemToString,
39
- compareItems,
40
- locale = 'en'
41
- } = _ref2;
32
+ const defaultSortItems = (items, {
33
+ selectedItems = [],
34
+ itemToString,
35
+ compareItems,
36
+ locale = 'en'
37
+ }) => {
42
38
  return items.sort((itemA, itemB) => {
43
39
  // Always place "select all" option at the beginning
44
40
  if (itemA.isSelectAll) return -1;
@@ -43,8 +43,7 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
43
43
  * @param {func} callback - function to be called
44
44
  * @param {bool} override - escape hatch to conditionally call the callback
45
45
  */
46
- function useEscapeToClose(ref, callback) {
47
- let override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
46
+ function useEscapeToClose(ref, callback, override = true) {
48
47
  const handleKeyDown = event => {
49
48
  // The callback should only be called when focus is on or within the container
50
49
  const elementContainsFocus = ref.current && document.activeElement === ref.current || ref.current?.contains(document.activeElement);
@@ -59,14 +58,13 @@ function useEscapeToClose(ref, callback) {
59
58
  return () => document.removeEventListener('keydown', handleKeyDown, false);
60
59
  });
61
60
  }
62
- function NotificationActionButton(_ref) {
63
- let {
64
- children,
65
- className: customClassName,
66
- onClick,
67
- inline,
68
- ...rest
69
- } = _ref;
61
+ function NotificationActionButton({
62
+ children,
63
+ className: customClassName,
64
+ onClick,
65
+ inline,
66
+ ...rest
67
+ }) {
70
68
  const prefix = usePrefix.usePrefix();
71
69
  const className = cx__default["default"](customClassName, {
72
70
  [`${prefix}--actionable-notification__action-button`]: true
@@ -102,17 +100,16 @@ NotificationActionButton.propTypes = {
102
100
  * ==================
103
101
  */
104
102
 
105
- function NotificationButton(_ref2) {
106
- let {
107
- 'aria-label': ariaLabel = 'close notification',
108
- ariaLabel: deprecatedAriaLabel,
109
- className,
110
- type = 'button',
111
- renderIcon: IconTag = iconsReact.Close,
112
- name,
113
- notificationType = 'toast',
114
- ...rest
115
- } = _ref2;
103
+ function NotificationButton({
104
+ 'aria-label': ariaLabel = 'close notification',
105
+ ariaLabel: deprecatedAriaLabel,
106
+ className,
107
+ type = 'button',
108
+ renderIcon: IconTag = iconsReact.Close,
109
+ name,
110
+ notificationType = 'toast',
111
+ ...rest
112
+ }) {
116
113
  const prefix = usePrefix.usePrefix();
117
114
  const buttonClassName = cx__default["default"](className, {
118
115
  [`${prefix}--${notificationType}-notification__close-button`]: notificationType
@@ -177,12 +174,11 @@ const iconTypes = {
177
174
  info: iconsReact.InformationFilled,
178
175
  ['info-square']: iconsReact.InformationSquareFilled
179
176
  };
180
- function NotificationIcon(_ref3) {
181
- let {
182
- iconDescription,
183
- kind,
184
- notificationType
185
- } = _ref3;
177
+ function NotificationIcon({
178
+ iconDescription,
179
+ kind,
180
+ notificationType
181
+ }) {
186
182
  const prefix = usePrefix.usePrefix();
187
183
  const IconForKind = iconTypes[kind];
188
184
  if (!IconForKind) {
@@ -204,26 +200,25 @@ NotificationIcon.propTypes = {
204
200
  * =================
205
201
  */
206
202
 
207
- function ToastNotification(_ref4) {
208
- let {
209
- ['aria-label']: ariaLabel,
210
- // @ts-expect-error: deprecated prop
211
- ariaLabel: deprecatedAriaLabel,
212
- role = 'status',
213
- onClose,
214
- onCloseButtonClick = noopFn.noopFn,
215
- statusIconDescription,
216
- className,
217
- children,
218
- kind = 'error',
219
- lowContrast,
220
- hideCloseButton = false,
221
- timeout = 0,
222
- title,
223
- caption,
224
- subtitle,
225
- ...rest
226
- } = _ref4;
203
+ function ToastNotification({
204
+ ['aria-label']: ariaLabel,
205
+ // @ts-expect-error: deprecated prop
206
+ ariaLabel: deprecatedAriaLabel,
207
+ role = 'status',
208
+ onClose,
209
+ onCloseButtonClick = noopFn.noopFn,
210
+ statusIconDescription,
211
+ className,
212
+ children,
213
+ kind = 'error',
214
+ lowContrast,
215
+ hideCloseButton = false,
216
+ timeout = 0,
217
+ title,
218
+ caption,
219
+ subtitle,
220
+ ...rest
221
+ }) {
227
222
  const [isOpen, setIsOpen] = React.useState(true);
228
223
  const prefix = usePrefix.usePrefix();
229
224
  const containerClassName = cx__default["default"](className, {
@@ -361,22 +356,21 @@ ToastNotification.propTypes = {
361
356
  * ==================
362
357
  */
363
358
 
364
- function InlineNotification(_ref5) {
365
- let {
366
- ['aria-label']: ariaLabel,
367
- children,
368
- title,
369
- subtitle,
370
- role = 'status',
371
- onClose,
372
- onCloseButtonClick = noopFn.noopFn,
373
- statusIconDescription,
374
- className,
375
- kind = 'error',
376
- lowContrast,
377
- hideCloseButton = false,
378
- ...rest
379
- } = _ref5;
359
+ function InlineNotification({
360
+ ['aria-label']: ariaLabel,
361
+ children,
362
+ title,
363
+ subtitle,
364
+ role = 'status',
365
+ onClose,
366
+ onCloseButtonClick = noopFn.noopFn,
367
+ statusIconDescription,
368
+ className,
369
+ kind = 'error',
370
+ lowContrast,
371
+ hideCloseButton = false,
372
+ ...rest
373
+ }) {
380
374
  const [isOpen, setIsOpen] = React.useState(true);
381
375
  const prefix = usePrefix.usePrefix();
382
376
  const containerClassName = cx__default["default"](className, {
@@ -483,29 +477,28 @@ InlineNotification.propTypes = {
483
477
  * ======================
484
478
  */
485
479
 
486
- function ActionableNotification(_ref6) {
487
- let {
488
- actionButtonLabel,
489
- ['aria-label']: ariaLabel,
490
- // @ts-expect-error: deprecated prop
491
- ariaLabel: deprecatedAriaLabel,
492
- children,
493
- role = 'alertdialog',
494
- onActionButtonClick,
495
- onClose,
496
- onCloseButtonClick = noopFn.noopFn,
497
- statusIconDescription,
498
- className,
499
- inline = false,
500
- kind = 'error',
501
- lowContrast,
502
- hideCloseButton = false,
503
- hasFocus = true,
504
- closeOnEscape = true,
505
- title,
506
- subtitle,
507
- ...rest
508
- } = _ref6;
480
+ function ActionableNotification({
481
+ actionButtonLabel,
482
+ ['aria-label']: ariaLabel,
483
+ // @ts-expect-error: deprecated prop
484
+ ariaLabel: deprecatedAriaLabel,
485
+ children,
486
+ role = 'alertdialog',
487
+ onActionButtonClick,
488
+ onClose,
489
+ onCloseButtonClick = noopFn.noopFn,
490
+ statusIconDescription,
491
+ className,
492
+ inline = false,
493
+ kind = 'error',
494
+ lowContrast,
495
+ hideCloseButton = false,
496
+ hasFocus = true,
497
+ closeOnEscape = true,
498
+ title,
499
+ subtitle,
500
+ ...rest
501
+ }) {
509
502
  const [isOpen, setIsOpen] = React.useState(true);
510
503
  const prefix = usePrefix.usePrefix();
511
504
  const id = useId.useId('actionable-notification');
@@ -528,11 +521,10 @@ function ActionableNotification(_ref6) {
528
521
  button?.focus();
529
522
  }
530
523
  });
531
- function handleBlur(_ref7) {
532
- let {
533
- target: oldActiveNode,
534
- relatedTarget: currentActiveNode
535
- } = _ref7;
524
+ function handleBlur({
525
+ target: oldActiveNode,
526
+ relatedTarget: currentActiveNode
527
+ }) {
536
528
  if (isOpen && currentActiveNode && oldActiveNode && role === 'alertdialog') {
537
529
  const {
538
530
  current: bodyNode
@@ -718,20 +710,19 @@ const propMappingFunction = deprecatedValue => {
718
710
  };
719
711
  return mapping[deprecatedValue];
720
712
  };
721
- function Callout(_ref8) {
722
- let {
723
- actionButtonLabel,
724
- children,
725
- onActionButtonClick,
726
- title,
727
- titleId,
728
- subtitle,
729
- statusIconDescription,
730
- className,
731
- kind = 'info',
732
- lowContrast,
733
- ...rest
734
- } = _ref8;
713
+ function Callout({
714
+ actionButtonLabel,
715
+ children,
716
+ onActionButtonClick,
717
+ title,
718
+ titleId,
719
+ subtitle,
720
+ statusIconDescription,
721
+ className,
722
+ kind = 'info',
723
+ lowContrast,
724
+ ...rest
725
+ }) {
735
726
  const prefix = usePrefix.usePrefix();
736
727
  const containerClassName = cx__default["default"](className, {
737
728
  [`${prefix}--actionable-notification`]: true,
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import PropTypes from 'prop-types';
8
+ export declare const NumberFormatOptionsPropType: PropTypes.Requireable<PropTypes.InferProps<{
9
+ localeMatcher: PropTypes.Requireable<string>;
10
+ style: PropTypes.Requireable<string>;
11
+ currency: PropTypes.Requireable<string>;
12
+ currencyDisplay: PropTypes.Requireable<string>;
13
+ currencySign: PropTypes.Requireable<string>;
14
+ unit: PropTypes.Requireable<string>;
15
+ unitDisplay: PropTypes.Requireable<string>;
16
+ notation: PropTypes.Requireable<string>;
17
+ compactDisplay: PropTypes.Requireable<string>;
18
+ signDisplay: PropTypes.Requireable<string>;
19
+ minimumIntegerDigits: PropTypes.Requireable<number>;
20
+ minimumFractionDigits: PropTypes.Requireable<number>;
21
+ maximumFractionDigits: PropTypes.Requireable<number>;
22
+ minimumSignificantDigits: PropTypes.Requireable<number>;
23
+ maximumSignificantDigits: PropTypes.Requireable<number>;
24
+ useGrouping: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
25
+ numberingSystem: PropTypes.Requireable<string>;
26
+ roundingIncrement: PropTypes.Requireable<number>;
27
+ roundingMode: PropTypes.Requireable<string>;
28
+ trailingZeroDisplay: PropTypes.Requireable<string>;
29
+ }>>;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ Object.defineProperty(exports, '__esModule', { value: true });
11
+
12
+ var PropTypes = require('prop-types');
13
+
14
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
+
16
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
17
+
18
+ const NumberFormatOptionsPropType = PropTypes__default["default"].shape({
19
+ // Locale Options
20
+ localeMatcher: PropTypes__default["default"].oneOf(['best fit', 'lookup']),
21
+ // Style Options
22
+ style: PropTypes__default["default"].oneOf(['decimal', 'currency', 'percent', 'unit']),
23
+ currency: PropTypes__default["default"].string,
24
+ // e.g., 'USD'
25
+ currencyDisplay: PropTypes__default["default"].oneOf(['symbol', 'narrowSymbol', 'code', 'name']),
26
+ currencySign: PropTypes__default["default"].oneOf(['standard', 'accounting']),
27
+ unit: PropTypes__default["default"].string,
28
+ // e.g., 'liter', 'mile-per-hour'
29
+ unitDisplay: PropTypes__default["default"].oneOf(['short', 'narrow', 'long']),
30
+ notation: PropTypes__default["default"].oneOf(['standard', 'scientific', 'engineering', 'compact']),
31
+ compactDisplay: PropTypes__default["default"].oneOf(['short', 'long']),
32
+ signDisplay: PropTypes__default["default"].oneOf(['auto', 'never', 'always', 'exceptZero']),
33
+ // Digit Options
34
+ minimumIntegerDigits: PropTypes__default["default"].number,
35
+ minimumFractionDigits: PropTypes__default["default"].number,
36
+ maximumFractionDigits: PropTypes__default["default"].number,
37
+ minimumSignificantDigits: PropTypes__default["default"].number,
38
+ maximumSignificantDigits: PropTypes__default["default"].number,
39
+ useGrouping: PropTypes__default["default"].oneOfType([PropTypes__default["default"].bool, PropTypes__default["default"].oneOf(['always', 'auto', 'min2'])]),
40
+ // Misc/Other Options
41
+ numberingSystem: PropTypes__default["default"].string,
42
+ // e.g., 'latn', 'arab'
43
+ roundingIncrement: PropTypes__default["default"].number,
44
+ roundingMode: PropTypes__default["default"].oneOf(['ceil', 'floor', 'expand', 'trunc', 'halfCeil', 'halfFloor', 'halfExpand', 'halfTrunc', 'halfEven']),
45
+ trailingZeroDisplay: PropTypes__default["default"].oneOf(['auto', 'stripIfInteger'])
46
+ });
47
+
48
+ exports.NumberFormatOptionsPropType = NumberFormatOptionsPropType;
@@ -21,13 +21,12 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
21
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
22
  var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
23
23
 
24
- function NumberInputSkeleton(_ref) {
25
- let {
26
- hideLabel,
27
- className,
28
- size = 'md',
29
- ...rest
30
- } = _ref;
24
+ function NumberInputSkeleton({
25
+ hideLabel,
26
+ className,
27
+ size = 'md',
28
+ ...rest
29
+ }) {
31
30
  const prefix = usePrefix.usePrefix();
32
31
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
33
32
  className: cx__default["default"](`${prefix}--form-item`, className)