@carbon/react 1.112.0 → 1.113.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 (535) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +941 -941
  2. package/es/components/AILabel/index.js +6 -6
  3. package/es/components/AISkeleton/AISkeletonIcon.js +2 -2
  4. package/es/components/AISkeleton/AISkeletonPlaceholder.js +2 -2
  5. package/es/components/AISkeleton/AISkeletonText.js +2 -2
  6. package/es/components/Accordion/Accordion.Skeleton.js +3 -3
  7. package/es/components/Accordion/Accordion.js +2 -2
  8. package/es/components/Accordion/AccordionItem.js +2 -2
  9. package/es/components/AspectRatio/AspectRatio.js +2 -2
  10. package/es/components/BadgeIndicator/index.js +4 -4
  11. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +3 -3
  12. package/es/components/Breadcrumb/Breadcrumb.js +2 -2
  13. package/es/components/Breadcrumb/BreadcrumbItem.js +3 -3
  14. package/es/components/Button/Button.Skeleton.js +3 -3
  15. package/es/components/Button/Button.js +2 -2
  16. package/es/components/Button/ButtonBase.js +2 -2
  17. package/es/components/Button/index.js +3 -3
  18. package/es/components/ButtonSet/ButtonSet.js +3 -3
  19. package/es/components/ButtonSet/index.js +1 -1
  20. package/es/components/ChatButton/ChatButton.Skeleton.js +2 -2
  21. package/es/components/ChatButton/ChatButton.js +3 -3
  22. package/es/components/Checkbox/Checkbox.Skeleton.js +3 -3
  23. package/es/components/Checkbox/Checkbox.js +4 -4
  24. package/es/components/Checkbox/index.js +2 -2
  25. package/es/components/CheckboxGroup/CheckboxGroup.js +2 -2
  26. package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +3 -3
  27. package/es/components/CodeSnippet/CodeSnippet.js +2 -2
  28. package/es/components/ComboBox/ComboBox.js +12 -9
  29. package/es/components/ComboBox/index.js +1 -1
  30. package/es/components/ComboButton/index.js +5 -5
  31. package/es/components/ComposedModal/ComposedModal.js +7 -6
  32. package/es/components/ComposedModal/ComposedModalPresence.js +5 -2
  33. package/es/components/ComposedModal/ModalFooter.js +4 -4
  34. package/es/components/ComposedModal/ModalHeader.js +6 -6
  35. package/es/components/ContainedList/ContainedList.js +2 -2
  36. package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +2 -2
  37. package/es/components/ContainedList/ContainedListItem/index.js +1 -1
  38. package/es/components/ContentSwitcher/ContentSwitcher.js +2 -2
  39. package/es/components/Copy/Copy.js +4 -4
  40. package/es/components/Copy/index.js +1 -1
  41. package/es/components/CopyButton/CopyButton.js +3 -3
  42. package/es/components/CopyButton/index.js +1 -1
  43. package/es/components/DataTable/DataTable.js +4 -3
  44. package/es/components/DataTable/Table.js +3 -3
  45. package/es/components/DataTable/TableBatchActions.js +3 -3
  46. package/es/components/DataTable/TableCell.js +2 -2
  47. package/es/components/DataTable/TableContainer.js +3 -3
  48. package/es/components/DataTable/TableDecoratorRow.js +2 -2
  49. package/es/components/DataTable/TableExpandHeader.js +2 -2
  50. package/es/components/DataTable/TableExpandRow.js +2 -2
  51. package/es/components/DataTable/TableExpandedRow.js +2 -2
  52. package/es/components/DataTable/TableHeader.js +4 -4
  53. package/es/components/DataTable/TableRow.js +2 -2
  54. package/es/components/DataTable/TableSelectAll.js +2 -2
  55. package/es/components/DataTable/TableSelectRow.js +2 -2
  56. package/es/components/DataTable/TableSlugRow.js +2 -2
  57. package/es/components/DataTable/TableToolbar.js +3 -3
  58. package/es/components/DataTable/TableToolbarMenu.js +4 -4
  59. package/es/components/DataTable/TableToolbarSearch.js +3 -3
  60. package/es/components/DataTable/state/sorting.js +3 -2
  61. package/es/components/DataTable/tools/sorting.js +1 -1
  62. package/es/components/DataTableSkeleton/DataTableSkeleton.js +2 -2
  63. package/es/components/DatePicker/DatePicker.Skeleton.js +4 -4
  64. package/es/components/DatePicker/DatePicker.js +3 -3
  65. package/es/components/DatePicker/index.js +2 -2
  66. package/es/components/DatePickerInput/DatePickerInput.js +7 -7
  67. package/es/components/DatePickerInput/index.js +1 -1
  68. package/es/components/Dialog/Dialog.js +9 -9
  69. package/es/components/Dialog/index.js +1 -1
  70. package/es/components/Dropdown/Dropdown.Skeleton.js +4 -4
  71. package/es/components/Dropdown/Dropdown.js +5 -5
  72. package/es/components/Dropdown/index.js +2 -2
  73. package/es/components/ExpandableSearch/ExpandableSearch.js +2 -2
  74. package/es/components/ExpandableSearch/index.js +1 -1
  75. package/es/components/FileUploader/FileUploader.Skeleton.js +4 -4
  76. package/es/components/FileUploader/FileUploader.js +11 -8
  77. package/es/components/FileUploader/FileUploaderButton.js +3 -3
  78. package/es/components/FileUploader/FileUploaderDropContainer.js +8 -6
  79. package/es/components/FileUploader/FileUploaderItem.js +3 -3
  80. package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -2
  81. package/es/components/FluidComboBox/FluidComboBox.js +3 -3
  82. package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +3 -3
  83. package/es/components/FluidDatePicker/FluidDatePicker.js +3 -3
  84. package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -2
  85. package/es/components/FluidDropdown/FluidDropdown.js +3 -3
  86. package/es/components/FluidForm/FluidForm.js +3 -3
  87. package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -2
  88. package/es/components/FluidMultiSelect/FluidMultiSelect.js +4 -4
  89. package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -2
  90. package/es/components/FluidNumberInput/FluidNumberInput.js +3 -3
  91. package/es/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
  92. package/es/components/FluidSearch/FluidSearch.js +3 -3
  93. package/es/components/FluidSelect/FluidSelect.Skeleton.js +2 -2
  94. package/es/components/FluidSelect/FluidSelect.js +3 -3
  95. package/es/components/FluidSelect/index.js +2 -2
  96. package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -2
  97. package/es/components/FluidTextArea/FluidTextArea.js +3 -3
  98. package/es/components/FluidTextInput/FluidPasswordInput.js +3 -3
  99. package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
  100. package/es/components/FluidTextInput/FluidTextInput.js +4 -4
  101. package/es/components/FluidTextInput/index.js +3 -3
  102. package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -2
  103. package/es/components/FluidTimePicker/FluidTimePicker.js +3 -3
  104. package/es/components/FluidTimePickerSelect/index.js +1 -1
  105. package/es/components/Form/Form.js +2 -2
  106. package/es/components/FormGroup/FormGroup.js +2 -2
  107. package/es/components/FormItem/FormItem.js +2 -2
  108. package/es/components/FormLabel/FormLabel.js +2 -2
  109. package/es/components/Grid/CSSGrid.js +4 -4
  110. package/es/components/Grid/Column.js +3 -3
  111. package/es/components/Grid/ColumnHang.js +3 -3
  112. package/es/components/Grid/FlexGrid.js +3 -3
  113. package/es/components/Grid/Grid.js +3 -3
  114. package/es/components/Grid/Row.js +2 -2
  115. package/es/components/Icon/Icon.Skeleton.js +3 -3
  116. package/es/components/IconButton/index.js +4 -3
  117. package/es/components/IconIndicator/index.js +4 -4
  118. package/es/components/InlineCheckbox/index.js +1 -1
  119. package/es/components/InlineLoading/InlineLoading.js +2 -2
  120. package/es/components/InlineLoading/index.js +1 -1
  121. package/es/components/Layer/LayerLevel.js +1 -1
  122. package/es/components/Layer/index.js +2 -2
  123. package/es/components/Layout/index.js +3 -3
  124. package/es/components/LayoutDirection/LayoutDirection.js +1 -1
  125. package/es/components/Link/Link.js +2 -2
  126. package/es/components/Link/index.js +1 -1
  127. package/es/components/ListBox/ListBox.js +2 -2
  128. package/es/components/ListBox/ListBoxMenuIcon.js +2 -2
  129. package/es/components/ListBox/ListBoxMenuItem.js +4 -3
  130. package/es/components/ListBox/ListBoxSelection.js +3 -3
  131. package/es/components/ListBox/index.js +2 -2
  132. package/es/components/ListBox/next/ListBoxSelection.js +3 -3
  133. package/es/components/ListBox/next/ListBoxTrigger.js +2 -2
  134. package/es/components/ListItem/ListItem.js +2 -2
  135. package/es/components/Loading/Loading.js +3 -3
  136. package/es/components/Loading/index.js +1 -1
  137. package/es/components/Menu/Menu.js +3 -3
  138. package/es/components/Menu/MenuItem.js +9 -9
  139. package/es/components/MenuButton/index.js +4 -4
  140. package/es/components/Modal/Modal.js +9 -9
  141. package/es/components/Modal/ModalPresence.js +5 -2
  142. package/es/components/Modal/index.js +2 -2
  143. package/es/components/ModalWrapper/ModalWrapper.js +2 -2
  144. package/es/components/MultiSelect/FilterableMultiSelect.js +10 -8
  145. package/es/components/MultiSelect/MultiSelect.js +7 -7
  146. package/es/components/Notification/Notification.js +10 -10
  147. package/es/components/NumberInput/NumberInput.Skeleton.js +2 -2
  148. package/es/components/NumberInput/NumberInput.js +21 -11
  149. package/es/components/OrderedList/OrderedList.js +2 -2
  150. package/es/components/OverflowMenu/OverflowMenu.js +7 -7
  151. package/es/components/OverflowMenu/index.js +2 -2
  152. package/es/components/OverflowMenu/next/index.js +4 -4
  153. package/es/components/OverflowMenuItem/OverflowMenuItem.js +4 -4
  154. package/es/components/OverflowMenuItem/index.js +1 -1
  155. package/es/components/OverflowMenuV2/index.js +1 -1
  156. package/es/components/PageHeader/PageHeader.js +15 -15
  157. package/es/components/PageHeader/index.js +1 -1
  158. package/es/components/Pagination/Pagination.Skeleton.js +3 -3
  159. package/es/components/Pagination/Pagination.d.ts +18 -1
  160. package/es/components/Pagination/Pagination.js +33 -8
  161. package/es/components/Pagination/experimental/PageSelector.d.ts +4 -0
  162. package/es/components/Pagination/experimental/PageSelector.js +16 -3
  163. package/es/components/Pagination/experimental/Pagination-story.d.ts +100 -65
  164. package/es/components/Pagination/experimental/Pagination.d.ts +4 -0
  165. package/es/components/Pagination/experimental/Pagination.js +12 -5
  166. package/es/components/PaginationNav/PaginationNav.js +8 -6
  167. package/es/components/Popover/index.js +14 -6
  168. package/es/components/ProgressBar/ProgressBar.js +3 -3
  169. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -3
  170. package/es/components/ProgressIndicator/ProgressIndicator.js +4 -4
  171. package/es/components/RadioButton/RadioButton.Skeleton.js +3 -3
  172. package/es/components/RadioButton/RadioButton.js +3 -3
  173. package/es/components/RadioButton/index.js +1 -1
  174. package/es/components/RadioButtonGroup/RadioButtonGroup.js +4 -4
  175. package/es/components/RadioTile/RadioTile.js +3 -3
  176. package/es/components/RadioTile/index.js +1 -1
  177. package/es/components/Search/Search.Skeleton.js +3 -3
  178. package/es/components/Search/Search.js +4 -4
  179. package/es/components/Search/index.js +2 -2
  180. package/es/components/Select/Select.Skeleton.js +3 -3
  181. package/es/components/Select/Select.js +6 -6
  182. package/es/components/Select/index.js +2 -2
  183. package/es/components/SelectItem/SelectItem.js +2 -2
  184. package/es/components/SelectItem/index.js +1 -1
  185. package/es/components/SelectItemGroup/SelectItemGroup.js +2 -2
  186. package/es/components/ShapeIndicator/index.js +4 -4
  187. package/es/components/SkeletonIcon/SkeletonIcon.js +2 -2
  188. package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -2
  189. package/es/components/SkeletonText/SkeletonText.js +2 -2
  190. package/es/components/SkeletonText/index.js +1 -1
  191. package/es/components/Slider/Slider.Skeleton.js +7 -7
  192. package/es/components/Slider/Slider.js +22 -20
  193. package/es/components/Stack/Stack.js +2 -2
  194. package/es/components/StructuredList/StructuredList.Skeleton.js +3 -3
  195. package/es/components/StructuredList/StructuredList.js +7 -7
  196. package/es/components/Switch/IconSwitch.js +6 -5
  197. package/es/components/Switch/Switch.js +3 -3
  198. package/es/components/TabContent/TabContent.js +2 -2
  199. package/es/components/Tabs/Tabs.Skeleton.js +3 -3
  200. package/es/components/Tabs/Tabs.js +45 -33
  201. package/es/components/Tag/DismissibleTag.js +4 -3
  202. package/es/components/Tag/OperationalTag.js +4 -3
  203. package/es/components/Tag/SelectableTag.js +3 -3
  204. package/es/components/Tag/Tag.Skeleton.js +3 -3
  205. package/es/components/Tag/Tag.js +4 -3
  206. package/es/components/TextArea/TextArea.Skeleton.js +3 -3
  207. package/es/components/TextArea/TextArea.js +8 -8
  208. package/es/components/TextArea/index.js +2 -2
  209. package/es/components/TextInput/ControlledPasswordInput.js +6 -6
  210. package/es/components/TextInput/PasswordInput.js +10 -10
  211. package/es/components/TextInput/TextInput.Skeleton.js +3 -3
  212. package/es/components/TextInput/TextInput.js +9 -9
  213. package/es/components/TextInput/index.js +2 -2
  214. package/es/components/Theme/index.js +2 -2
  215. package/es/components/Tile/Tile.js +14 -11
  216. package/es/components/TileGroup/TileGroup.js +1 -1
  217. package/es/components/TimePicker/TimePicker.js +5 -5
  218. package/es/components/TimePickerSelect/TimePickerSelect.js +2 -2
  219. package/es/components/Toggle/Toggle.Skeleton.js +3 -3
  220. package/es/components/Toggle/Toggle.js +6 -6
  221. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -2
  222. package/es/components/Toggletip/index.js +6 -6
  223. package/es/components/Tooltip/DefinitionTooltip.js +2 -2
  224. package/es/components/Tooltip/Tooltip.d.ts +2 -1
  225. package/es/components/Tooltip/Tooltip.js +5 -4
  226. package/es/components/TreeView/TreeNode.js +11 -8
  227. package/es/components/TreeView/TreeView.js +2 -2
  228. package/es/components/UIShell/Content.js +2 -2
  229. package/es/components/UIShell/Header.js +2 -2
  230. package/es/components/UIShell/HeaderGlobalAction.js +2 -2
  231. package/es/components/UIShell/HeaderMenu.js +4 -4
  232. package/es/components/UIShell/HeaderMenuButton.js +2 -2
  233. package/es/components/UIShell/HeaderMenuItem.js +2 -2
  234. package/es/components/UIShell/HeaderName.js +2 -2
  235. package/es/components/UIShell/HeaderNavigation.js +2 -2
  236. package/es/components/UIShell/HeaderPanel.js +3 -3
  237. package/es/components/UIShell/HeaderSideNavItems.js +2 -2
  238. package/es/components/UIShell/SideNav.js +3 -3
  239. package/es/components/UIShell/SideNavDetails.js +2 -2
  240. package/es/components/UIShell/SideNavDivider.js +2 -2
  241. package/es/components/UIShell/SideNavFooter.js +2 -2
  242. package/es/components/UIShell/SideNavHeader.js +2 -2
  243. package/es/components/UIShell/SideNavIcon.js +2 -2
  244. package/es/components/UIShell/SideNavItem.js +2 -2
  245. package/es/components/UIShell/SideNavItems.js +2 -2
  246. package/es/components/UIShell/SideNavLink.js +2 -2
  247. package/es/components/UIShell/SideNavLinkText.js +2 -2
  248. package/es/components/UIShell/SideNavMenu.js +3 -3
  249. package/es/components/UIShell/SideNavMenuItem.js +3 -3
  250. package/es/components/UIShell/SideNavSwitcher.js +2 -2
  251. package/es/components/UIShell/SkipToContent.js +2 -2
  252. package/es/components/UIShell/Switcher.js +2 -2
  253. package/es/components/UIShell/SwitcherDivider.js +3 -3
  254. package/es/components/UIShell/SwitcherItem.js +4 -4
  255. package/es/components/UnorderedList/UnorderedList.js +2 -2
  256. package/es/index.js +30 -30
  257. package/es/internal/FloatingMenu.js +12 -9
  258. package/es/internal/motion/MotionSurface.d.ts +35 -0
  259. package/es/internal/motion/useMotionEnabled.d.ts +13 -0
  260. package/es/internal/motion/useMotionSurface.d.ts +33 -0
  261. package/es/internal/useId.js +1 -1
  262. package/es/internal/useOverflowItems.js +2 -1
  263. package/es/internal/usePresence.d.ts +8 -1
  264. package/es/internal/usePresence.js +4 -2
  265. package/es/internal/usePresenceContext.d.ts +12 -0
  266. package/es/internal/usePresenceContext.js +23 -5
  267. package/es/tools/wrapComponent.js +2 -2
  268. package/lib/components/AILabel/index.js +4 -4
  269. package/lib/components/AISkeleton/AISkeletonIcon.js +2 -2
  270. package/lib/components/AISkeleton/AISkeletonPlaceholder.js +2 -2
  271. package/lib/components/AISkeleton/AISkeletonText.js +2 -2
  272. package/lib/components/Accordion/Accordion.Skeleton.js +3 -2
  273. package/lib/components/Accordion/Accordion.js +2 -2
  274. package/lib/components/Accordion/AccordionItem.js +2 -2
  275. package/lib/components/AspectRatio/AspectRatio.js +2 -2
  276. package/lib/components/BadgeIndicator/index.js +3 -2
  277. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +3 -2
  278. package/lib/components/Breadcrumb/Breadcrumb.js +2 -2
  279. package/lib/components/Breadcrumb/BreadcrumbItem.js +2 -2
  280. package/lib/components/Button/Button.Skeleton.js +3 -2
  281. package/lib/components/Button/Button.js +2 -2
  282. package/lib/components/Button/ButtonBase.js +2 -2
  283. package/lib/components/Button/index.js +7 -1
  284. package/lib/components/ButtonSet/ButtonSet.js +2 -2
  285. package/lib/components/ButtonSet/index.js +3 -1
  286. package/lib/components/ChatButton/ChatButton.Skeleton.js +2 -2
  287. package/lib/components/ChatButton/ChatButton.js +2 -2
  288. package/lib/components/Checkbox/Checkbox.Skeleton.js +3 -2
  289. package/lib/components/Checkbox/Checkbox.js +3 -3
  290. package/lib/components/Checkbox/index.js +3 -1
  291. package/lib/components/CheckboxGroup/CheckboxGroup.js +2 -2
  292. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +3 -2
  293. package/lib/components/CodeSnippet/CodeSnippet.js +2 -2
  294. package/lib/components/ComboBox/ComboBox.js +8 -5
  295. package/lib/components/ComboBox/index.js +3 -1
  296. package/lib/components/ComboButton/index.js +2 -2
  297. package/lib/components/ComposedModal/ComposedModal.js +5 -4
  298. package/lib/components/ComposedModal/ComposedModalPresence.js +4 -1
  299. package/lib/components/ComposedModal/ModalFooter.js +3 -3
  300. package/lib/components/ComposedModal/ModalHeader.js +2 -2
  301. package/lib/components/ContainedList/ContainedList.js +2 -2
  302. package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +2 -2
  303. package/lib/components/ContainedList/ContainedListItem/index.js +3 -1
  304. package/lib/components/ContentSwitcher/ContentSwitcher.js +2 -2
  305. package/lib/components/Copy/Copy.js +3 -3
  306. package/lib/components/Copy/index.js +3 -1
  307. package/lib/components/CopyButton/CopyButton.js +3 -3
  308. package/lib/components/CopyButton/index.js +3 -1
  309. package/lib/components/DataTable/DataTable.js +4 -3
  310. package/lib/components/DataTable/Table.js +3 -2
  311. package/lib/components/DataTable/TableBatchActions.js +2 -2
  312. package/lib/components/DataTable/TableCell.js +2 -2
  313. package/lib/components/DataTable/TableContainer.js +2 -2
  314. package/lib/components/DataTable/TableDecoratorRow.js +2 -2
  315. package/lib/components/DataTable/TableExpandHeader.js +2 -2
  316. package/lib/components/DataTable/TableExpandRow.js +2 -2
  317. package/lib/components/DataTable/TableExpandedRow.js +2 -2
  318. package/lib/components/DataTable/TableHeader.js +2 -2
  319. package/lib/components/DataTable/TableRow.js +2 -2
  320. package/lib/components/DataTable/TableSelectAll.js +2 -2
  321. package/lib/components/DataTable/TableSelectRow.js +2 -2
  322. package/lib/components/DataTable/TableSlugRow.js +2 -2
  323. package/lib/components/DataTable/TableToolbar.js +3 -2
  324. package/lib/components/DataTable/TableToolbarMenu.js +3 -3
  325. package/lib/components/DataTable/TableToolbarSearch.js +3 -3
  326. package/lib/components/DataTable/state/sorting.js +3 -1
  327. package/lib/components/DataTable/tools/sorting.js +2 -0
  328. package/lib/components/DataTableSkeleton/DataTableSkeleton.js +2 -2
  329. package/lib/components/DatePicker/DatePicker.Skeleton.js +3 -2
  330. package/lib/components/DatePicker/DatePicker.js +2 -2
  331. package/lib/components/DatePicker/index.js +3 -1
  332. package/lib/components/DatePickerInput/DatePickerInput.js +3 -3
  333. package/lib/components/DatePickerInput/index.js +3 -1
  334. package/lib/components/Dialog/Dialog.js +3 -3
  335. package/lib/components/Dialog/index.js +8 -0
  336. package/lib/components/Dropdown/Dropdown.Skeleton.js +3 -2
  337. package/lib/components/Dropdown/Dropdown.js +2 -2
  338. package/lib/components/Dropdown/index.js +3 -1
  339. package/lib/components/ExpandableSearch/ExpandableSearch.js +2 -2
  340. package/lib/components/ExpandableSearch/index.js +3 -1
  341. package/lib/components/FileUploader/FileUploader.Skeleton.js +4 -3
  342. package/lib/components/FileUploader/FileUploader.js +9 -6
  343. package/lib/components/FileUploader/FileUploaderButton.js +3 -3
  344. package/lib/components/FileUploader/FileUploaderDropContainer.js +8 -6
  345. package/lib/components/FileUploader/FileUploaderItem.js +3 -3
  346. package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -2
  347. package/lib/components/FluidComboBox/FluidComboBox.js +2 -2
  348. package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +2 -2
  349. package/lib/components/FluidDatePicker/FluidDatePicker.js +2 -2
  350. package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -2
  351. package/lib/components/FluidDropdown/FluidDropdown.js +2 -2
  352. package/lib/components/FluidForm/FluidForm.js +2 -2
  353. package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -2
  354. package/lib/components/FluidMultiSelect/FluidMultiSelect.js +2 -2
  355. package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -2
  356. package/lib/components/FluidNumberInput/FluidNumberInput.js +2 -2
  357. package/lib/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
  358. package/lib/components/FluidSearch/FluidSearch.js +2 -2
  359. package/lib/components/FluidSelect/FluidSelect.Skeleton.js +2 -2
  360. package/lib/components/FluidSelect/FluidSelect.js +2 -2
  361. package/lib/components/FluidSelect/index.js +3 -1
  362. package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -2
  363. package/lib/components/FluidTextArea/FluidTextArea.js +2 -2
  364. package/lib/components/FluidTextInput/FluidPasswordInput.js +2 -2
  365. package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
  366. package/lib/components/FluidTextInput/FluidTextInput.js +2 -2
  367. package/lib/components/FluidTextInput/index.js +5 -2
  368. package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -2
  369. package/lib/components/FluidTimePicker/FluidTimePicker.js +2 -2
  370. package/lib/components/FluidTimePickerSelect/index.js +3 -1
  371. package/lib/components/Form/Form.js +2 -2
  372. package/lib/components/FormGroup/FormGroup.js +2 -2
  373. package/lib/components/FormItem/FormItem.js +2 -2
  374. package/lib/components/FormLabel/FormLabel.js +2 -2
  375. package/lib/components/Grid/CSSGrid.js +3 -3
  376. package/lib/components/Grid/Column.js +2 -2
  377. package/lib/components/Grid/ColumnHang.js +3 -3
  378. package/lib/components/Grid/FlexGrid.js +3 -3
  379. package/lib/components/Grid/Grid.js +3 -3
  380. package/lib/components/Grid/Row.js +2 -2
  381. package/lib/components/Icon/Icon.Skeleton.js +3 -2
  382. package/lib/components/IconButton/index.js +4 -3
  383. package/lib/components/IconIndicator/index.js +4 -2
  384. package/lib/components/InlineCheckbox/index.js +3 -1
  385. package/lib/components/InlineLoading/InlineLoading.js +2 -2
  386. package/lib/components/InlineLoading/index.js +3 -1
  387. package/lib/components/Layer/LayerLevel.js +1 -0
  388. package/lib/components/Layer/index.js +2 -2
  389. package/lib/components/Layout/index.js +2 -2
  390. package/lib/components/LayoutDirection/LayoutDirection.js +1 -0
  391. package/lib/components/Link/Link.js +2 -2
  392. package/lib/components/Link/index.js +3 -1
  393. package/lib/components/ListBox/ListBox.js +2 -2
  394. package/lib/components/ListBox/ListBoxMenuIcon.js +2 -2
  395. package/lib/components/ListBox/ListBoxMenuItem.js +4 -3
  396. package/lib/components/ListBox/ListBoxSelection.js +2 -2
  397. package/lib/components/ListBox/index.js +3 -1
  398. package/lib/components/ListBox/next/ListBoxSelection.js +2 -2
  399. package/lib/components/ListBox/next/ListBoxTrigger.js +2 -2
  400. package/lib/components/ListItem/ListItem.js +2 -2
  401. package/lib/components/Loading/Loading.js +2 -2
  402. package/lib/components/Loading/index.js +3 -1
  403. package/lib/components/Menu/Menu.js +2 -2
  404. package/lib/components/Menu/MenuItem.js +2 -2
  405. package/lib/components/MenuButton/index.js +2 -2
  406. package/lib/components/Modal/Modal.js +5 -4
  407. package/lib/components/Modal/ModalPresence.js +4 -1
  408. package/lib/components/Modal/index.js +6 -2
  409. package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
  410. package/lib/components/MultiSelect/FilterableMultiSelect.js +6 -4
  411. package/lib/components/MultiSelect/MultiSelect.js +3 -3
  412. package/lib/components/Notification/Notification.js +4 -4
  413. package/lib/components/NumberInput/NumberInput.Skeleton.js +2 -2
  414. package/lib/components/NumberInput/NumberInput.js +16 -5
  415. package/lib/components/OrderedList/OrderedList.js +2 -2
  416. package/lib/components/OverflowMenu/OverflowMenu.js +5 -3
  417. package/lib/components/OverflowMenu/index.js +3 -2
  418. package/lib/components/OverflowMenu/next/index.js +2 -2
  419. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +3 -3
  420. package/lib/components/OverflowMenuItem/index.js +3 -1
  421. package/lib/components/OverflowMenuV2/index.js +1 -1
  422. package/lib/components/PageHeader/PageHeader.js +5 -5
  423. package/lib/components/PageHeader/index.js +14 -0
  424. package/lib/components/Pagination/Pagination.Skeleton.js +3 -2
  425. package/lib/components/Pagination/Pagination.d.ts +18 -1
  426. package/lib/components/Pagination/Pagination.js +31 -6
  427. package/lib/components/Pagination/experimental/PageSelector.d.ts +4 -0
  428. package/lib/components/Pagination/experimental/PageSelector.js +9 -2
  429. package/lib/components/Pagination/experimental/Pagination-story.d.ts +100 -65
  430. package/lib/components/Pagination/experimental/Pagination.d.ts +4 -0
  431. package/lib/components/Pagination/experimental/Pagination.js +9 -2
  432. package/lib/components/PaginationNav/PaginationNav.js +6 -4
  433. package/lib/components/Popover/index.js +10 -2
  434. package/lib/components/ProgressBar/ProgressBar.js +2 -2
  435. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -2
  436. package/lib/components/ProgressIndicator/ProgressIndicator.js +2 -2
  437. package/lib/components/RadioButton/RadioButton.Skeleton.js +3 -2
  438. package/lib/components/RadioButton/RadioButton.js +2 -2
  439. package/lib/components/RadioButton/index.js +3 -1
  440. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
  441. package/lib/components/RadioTile/RadioTile.js +3 -3
  442. package/lib/components/RadioTile/index.js +3 -1
  443. package/lib/components/Search/Search.Skeleton.js +3 -2
  444. package/lib/components/Search/Search.js +3 -3
  445. package/lib/components/Search/index.js +3 -1
  446. package/lib/components/Select/Select.Skeleton.js +3 -2
  447. package/lib/components/Select/Select.js +2 -2
  448. package/lib/components/Select/index.js +3 -1
  449. package/lib/components/SelectItem/SelectItem.js +2 -2
  450. package/lib/components/SelectItem/index.js +3 -1
  451. package/lib/components/SelectItemGroup/SelectItemGroup.js +2 -2
  452. package/lib/components/ShapeIndicator/index.js +4 -2
  453. package/lib/components/SkeletonIcon/SkeletonIcon.js +2 -2
  454. package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -2
  455. package/lib/components/SkeletonText/SkeletonText.js +2 -2
  456. package/lib/components/SkeletonText/index.js +3 -1
  457. package/lib/components/Slider/Slider.Skeleton.js +2 -2
  458. package/lib/components/Slider/Slider.js +8 -6
  459. package/lib/components/Stack/Stack.js +2 -2
  460. package/lib/components/StructuredList/StructuredList.Skeleton.js +2 -2
  461. package/lib/components/StructuredList/StructuredList.js +2 -2
  462. package/lib/components/Switch/IconSwitch.js +5 -4
  463. package/lib/components/Switch/Switch.js +3 -3
  464. package/lib/components/TabContent/TabContent.js +2 -2
  465. package/lib/components/Tabs/Tabs.Skeleton.js +3 -2
  466. package/lib/components/Tabs/Tabs.js +35 -23
  467. package/lib/components/Tag/DismissibleTag.js +3 -2
  468. package/lib/components/Tag/OperationalTag.js +3 -2
  469. package/lib/components/Tag/SelectableTag.js +2 -2
  470. package/lib/components/Tag/Tag.Skeleton.js +3 -2
  471. package/lib/components/Tag/Tag.js +3 -2
  472. package/lib/components/TextArea/TextArea.Skeleton.js +3 -2
  473. package/lib/components/TextArea/TextArea.js +3 -3
  474. package/lib/components/TextArea/index.js +3 -1
  475. package/lib/components/TextInput/ControlledPasswordInput.js +3 -3
  476. package/lib/components/TextInput/PasswordInput.js +2 -2
  477. package/lib/components/TextInput/TextInput.Skeleton.js +3 -2
  478. package/lib/components/TextInput/TextInput.js +2 -2
  479. package/lib/components/TextInput/index.js +3 -1
  480. package/lib/components/Theme/index.js +2 -2
  481. package/lib/components/Tile/Tile.js +7 -4
  482. package/lib/components/TileGroup/TileGroup.js +1 -1
  483. package/lib/components/TimePicker/TimePicker.js +2 -2
  484. package/lib/components/TimePickerSelect/TimePickerSelect.js +2 -2
  485. package/lib/components/Toggle/Toggle.Skeleton.js +3 -2
  486. package/lib/components/Toggle/Toggle.js +3 -2
  487. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -2
  488. package/lib/components/Toggletip/index.js +4 -3
  489. package/lib/components/Tooltip/DefinitionTooltip.js +2 -2
  490. package/lib/components/Tooltip/Tooltip.d.ts +2 -1
  491. package/lib/components/Tooltip/Tooltip.js +5 -4
  492. package/lib/components/TreeView/TreeNode.js +8 -5
  493. package/lib/components/TreeView/TreeView.js +2 -2
  494. package/lib/components/UIShell/Content.js +2 -2
  495. package/lib/components/UIShell/Header.js +2 -2
  496. package/lib/components/UIShell/HeaderGlobalAction.js +2 -2
  497. package/lib/components/UIShell/HeaderMenu.js +3 -2
  498. package/lib/components/UIShell/HeaderMenuButton.js +2 -2
  499. package/lib/components/UIShell/HeaderMenuItem.js +2 -2
  500. package/lib/components/UIShell/HeaderName.js +2 -2
  501. package/lib/components/UIShell/HeaderNavigation.js +2 -2
  502. package/lib/components/UIShell/HeaderPanel.js +3 -3
  503. package/lib/components/UIShell/HeaderSideNavItems.js +2 -2
  504. package/lib/components/UIShell/SideNav.js +2 -2
  505. package/lib/components/UIShell/SideNavDetails.js +2 -2
  506. package/lib/components/UIShell/SideNavDivider.js +2 -2
  507. package/lib/components/UIShell/SideNavFooter.js +2 -2
  508. package/lib/components/UIShell/SideNavHeader.js +2 -2
  509. package/lib/components/UIShell/SideNavIcon.js +2 -2
  510. package/lib/components/UIShell/SideNavItem.js +2 -2
  511. package/lib/components/UIShell/SideNavItems.js +2 -2
  512. package/lib/components/UIShell/SideNavLink.js +2 -2
  513. package/lib/components/UIShell/SideNavLinkText.js +2 -2
  514. package/lib/components/UIShell/SideNavMenu.js +3 -2
  515. package/lib/components/UIShell/SideNavMenuItem.js +2 -2
  516. package/lib/components/UIShell/SideNavSwitcher.js +2 -2
  517. package/lib/components/UIShell/SkipToContent.js +2 -2
  518. package/lib/components/UIShell/Switcher.js +2 -2
  519. package/lib/components/UIShell/SwitcherDivider.js +2 -2
  520. package/lib/components/UIShell/SwitcherItem.js +2 -2
  521. package/lib/components/UnorderedList/UnorderedList.js +2 -2
  522. package/lib/index.js +33 -32
  523. package/lib/internal/FloatingMenu.js +13 -8
  524. package/lib/internal/motion/MotionSurface.d.ts +35 -0
  525. package/lib/internal/motion/useMotionEnabled.d.ts +13 -0
  526. package/lib/internal/motion/useMotionSurface.d.ts +33 -0
  527. package/lib/internal/useId.js +1 -0
  528. package/lib/internal/useOverflowItems.js +2 -1
  529. package/lib/internal/usePresence.d.ts +8 -1
  530. package/lib/internal/usePresence.js +4 -2
  531. package/lib/internal/usePresenceContext.d.ts +12 -0
  532. package/lib/internal/usePresenceContext.js +22 -3
  533. package/lib/tools/wrapComponent.js +2 -2
  534. package/package.json +12 -9
  535. package/telemetry.yml +1 -0
@@ -8,8 +8,8 @@
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { deprecate } from "../../prop-types/deprecate.js";
10
10
  import InlineCheckbox_default from "../InlineCheckbox/index.js";
11
- import classNames from "classnames";
12
11
  import "react";
12
+ import cx from "classnames";
13
13
  import PropTypes from "prop-types";
14
14
  import { jsx } from "react/jsx-runtime";
15
15
  //#region src/components/DataTable/TableSelectAll.tsx
@@ -23,7 +23,7 @@ const TableSelectAll = ({ ariaLabel: deprecatedAriaLabel = "Select all rows in t
23
23
  return /* @__PURE__ */ jsx("th", {
24
24
  "aria-live": "off",
25
25
  scope: "col",
26
- className: classNames(`${usePrefix()}--table-column-checkbox`, className),
26
+ className: cx(`${usePrefix()}--table-column-checkbox`, className),
27
27
  children: /* @__PURE__ */ jsx(InlineCheckbox_default, {
28
28
  "aria-label": ariaLabel || deprecatedAriaLabel,
29
29
  checked,
@@ -10,8 +10,8 @@ import { useId } from "../../internal/useId.js";
10
10
  import { deprecate } from "../../prop-types/deprecate.js";
11
11
  import InlineCheckbox_default from "../InlineCheckbox/index.js";
12
12
  import RadioButton_default from "../RadioButton/index.js";
13
- import classNames from "classnames";
14
13
  import "react";
14
+ import cx from "classnames";
15
15
  import PropTypes from "prop-types";
16
16
  import { jsx } from "react/jsx-runtime";
17
17
  //#region src/components/DataTable/TableSelectRow.tsx
@@ -39,7 +39,7 @@ const TableSelectRow = ({ ariaLabel: deprecatedAriaLabel, ["aria-label"]: ariaLa
39
39
  };
40
40
  const labelValue = ariaLabel || deprecatedAriaLabel || "";
41
41
  return /* @__PURE__ */ jsx("td", {
42
- className: classNames(`${prefix}--table-column-checkbox`, {
42
+ className: cx(`${prefix}--table-column-checkbox`, {
43
43
  ...className && { [className]: true },
44
44
  [`${prefix}--table-column-radio`]: radio
45
45
  }),
@@ -7,8 +7,8 @@
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { deprecateComponent } from "../../prop-types/deprecateComponent.js";
10
- import classNames from "classnames";
11
10
  import { cloneElement, isValidElement, useEffect } from "react";
11
+ import cx from "classnames";
12
12
  import PropTypes from "prop-types";
13
13
  import { jsx } from "react/jsx-runtime";
14
14
  //#region src/components/DataTable/TableSlugRow.tsx
@@ -24,7 +24,7 @@ const TableSlugRow = ({ className, slug }) => {
24
24
  }, []);
25
25
  const prefix = usePrefix();
26
26
  return /* @__PURE__ */ jsx("td", {
27
- className: classNames({
27
+ className: cx({
28
28
  ...className && { [className]: true },
29
29
  [`${prefix}--table-column-slug`]: true,
30
30
  [`${prefix}--table-column-slug--active`]: slug
@@ -7,8 +7,8 @@
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { deprecate } from "../../prop-types/deprecate.js";
10
- import classNames from "classnames";
11
10
  import { createContext, useContext } from "react";
11
+ import cx from "classnames";
12
12
  import PropTypes from "prop-types";
13
13
  import { jsx } from "react/jsx-runtime";
14
14
  //#region src/components/DataTable/TableToolbar.tsx
@@ -22,7 +22,7 @@ const TableToolbarContext = createContext({});
22
22
  const useTableToolbar = () => useContext(TableToolbarContext);
23
23
  const TableToolbar = ({ ["aria-label"]: ariaLabel = "data table toolbar", ariaLabel: deprecatedAriaLabel, children, size, ...rest }) => {
24
24
  const prefix = usePrefix();
25
- const className = classNames({
25
+ const className = cx({
26
26
  [`${prefix}--table-toolbar`]: true,
27
27
  [`${prefix}--table-toolbar--${size}`]: size,
28
28
  [`${prefix}--layout--size-${size}`]: size
@@ -64,4 +64,4 @@ TableToolbar.propTypes = {
64
64
  ])
65
65
  };
66
66
  //#endregion
67
- export { TableToolbar as default, useTableToolbar };
67
+ export { TableToolbarContext, TableToolbar as default, useTableToolbar };
@@ -7,9 +7,9 @@
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { useTableToolbar } from "./TableToolbar.js";
10
- import OverflowMenu from "../OverflowMenu/index.js";
11
- import classNames from "classnames";
10
+ import { OverflowMenu } from "../OverflowMenu/index.js";
12
11
  import "react";
12
+ import cx from "classnames";
13
13
  import PropTypes from "prop-types";
14
14
  import { jsx } from "react/jsx-runtime";
15
15
  import { Settings } from "@carbon/icons-react";
@@ -27,9 +27,9 @@ const TableToolbarMenu = ({ className, renderIcon = Settings, iconDescription =
27
27
  const prefix = usePrefix();
28
28
  return /* @__PURE__ */ jsx(OverflowMenu, {
29
29
  renderIcon,
30
- className: classNames(className, `${prefix}--toolbar-action ${prefix}--overflow-menu`),
30
+ className: cx(className, `${prefix}--toolbar-action ${prefix}--overflow-menu`),
31
31
  iconDescription,
32
- menuOptionsClass: classNames(menuOptionsClass, `${prefix}--toolbar-action__menu`),
32
+ menuOptionsClass: cx(menuOptionsClass, `${prefix}--toolbar-action__menu`),
33
33
  size,
34
34
  flipped: true,
35
35
  ...rest,
@@ -5,13 +5,13 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import { noopFn } from "../../internal/noopFn.js";
8
9
  import { usePrefix } from "../../internal/usePrefix.js";
9
10
  import { useId } from "../../internal/useId.js";
10
- import { noopFn } from "../../internal/noopFn.js";
11
11
  import Search_default from "../Search/index.js";
12
12
  import { useTableToolbar } from "./TableToolbar.js";
13
- import classNames from "classnames";
14
13
  import { useEffect, useRef, useState } from "react";
14
+ import cx from "classnames";
15
15
  import PropTypes from "prop-types";
16
16
  import { jsx } from "react/jsx-runtime";
17
17
  //#region src/components/DataTable/TableToolbarSearch.tsx
@@ -51,7 +51,7 @@ const TableToolbarSearch = ({ className, searchContainerClass, onChange: onChang
51
51
  useEffect(() => {
52
52
  if (defaultValue) onChangeProp?.("", defaultValue);
53
53
  }, []);
54
- const searchClasses = classNames(className, searchContainerClass, {
54
+ const searchClasses = cx(className, searchContainerClass, {
55
55
  [`${prefix}--toolbar-search-container-active`]: expanded,
56
56
  [`${prefix}--toolbar-search-container-disabled`]: disabled,
57
57
  [`${prefix}--toolbar-search-container-expandable`]: !persistent,
@@ -39,7 +39,8 @@ const getNextSortDirection = (prevHeader, currentHeader, prevState) => {
39
39
  */
40
40
  const getNextSortState = (props, state, { key }) => {
41
41
  const { sortDirection, sortHeaderKey } = state;
42
- return getSortedState(props, state, key, getNextSortDirection(key, sortHeaderKey ?? "", sortDirection));
42
+ const nextSortDirection = getNextSortDirection(key, sortHeaderKey ?? "", sortDirection);
43
+ return getSortedState(props, state, key, nextSortDirection);
43
44
  };
44
45
  /**
45
46
  * Gets a sort state update.
@@ -64,4 +65,4 @@ const getSortedState = ({ locale, sortRow }, { rowIds, cellsById, initialRowOrde
64
65
  };
65
66
  };
66
67
  //#endregion
67
- export { getNextSortState, getSortedState, initialSortState };
68
+ export { getNextSortDirection, getNextSortState, getSortedState, initialSortState };
@@ -61,4 +61,4 @@ const defaultSortRow = (cellA, cellB, { sortDirection, sortStates, locale }) =>
61
61
  return compare(cellB, cellA, locale);
62
62
  };
63
63
  //#endregion
64
- export { sortRows };
64
+ export { compare, defaultSortRow, sortRows };
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
- import classNames from "classnames";
10
9
  import "react";
10
+ import cx from "classnames";
11
11
  import PropTypes from "prop-types";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region src/components/DataTableSkeleton/DataTableSkeleton.tsx
@@ -19,7 +19,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
19
19
  */
20
20
  const DataTableSkeleton = ({ headers, rowCount = 5, columnCount = 5, zebra = false, className, showHeader = true, showToolbar = true, size = "lg", ...rest }) => {
21
21
  const prefix = usePrefix();
22
- const dataTableSkeletonClasses = classNames(className, {
22
+ const dataTableSkeletonClasses = cx(className, {
23
23
  [`${prefix}--skeleton`]: true,
24
24
  [`${prefix}--data-table`]: true,
25
25
  [`${prefix}--data-table--${size}`]: size,
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
- import classNames from "classnames";
10
9
  import "react";
10
+ import cx from "classnames";
11
11
  import PropTypes from "prop-types";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region src/components/DatePicker/DatePicker.Skeleton.tsx
@@ -29,7 +29,7 @@ const DatePickerSkeleton = ({ range, id, hideLabel, className, ...rest }) => {
29
29
  if (range) return /* @__PURE__ */ jsx("div", {
30
30
  className: `${prefix}--form-item`,
31
31
  children: /* @__PURE__ */ jsxs("div", {
32
- className: classNames(`${prefix}--date-picker`, `${prefix}--date-picker--range`, `${prefix}--skeleton`, className),
32
+ className: cx(`${prefix}--date-picker`, `${prefix}--date-picker--range`, `${prefix}--skeleton`, className),
33
33
  ...rest,
34
34
  children: [dateInput, dateInput]
35
35
  })
@@ -37,7 +37,7 @@ const DatePickerSkeleton = ({ range, id, hideLabel, className, ...rest }) => {
37
37
  return /* @__PURE__ */ jsx("div", {
38
38
  className: `${prefix}--form-item`,
39
39
  children: /* @__PURE__ */ jsx("div", {
40
- className: classNames(`${prefix}--date-picker`, `${prefix}--date-picker--short`, `${prefix}--date-picker--simple`, `${prefix}--skeleton`, className),
40
+ className: cx(`${prefix}--date-picker`, `${prefix}--date-picker--short`, `${prefix}--date-picker--simple`, `${prefix}--skeleton`, className),
41
41
  ...rest,
42
42
  children: dateInput
43
43
  })
@@ -62,4 +62,4 @@ DatePickerSkeleton.propTypes = {
62
62
  range: PropTypes.bool
63
63
  };
64
64
  //#endregion
65
- export { DatePickerSkeleton as default };
65
+ export { DatePickerSkeleton, DatePickerSkeleton as default };
@@ -17,8 +17,8 @@ import { isEmptyDateValue } from "./utils.js";
17
17
  import { rangePlugin } from "./plugins/rangePlugin.js";
18
18
  import { useSavedCallback } from "../../internal/useSavedCallback.js";
19
19
  import { SUPPORTED_LOCALES } from "./DatePickerLocales.js";
20
- import classNames from "classnames";
21
20
  import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
21
+ import cx from "classnames";
22
22
  import PropTypes from "prop-types";
23
23
  import { jsx, jsxs } from "react/jsx-runtime";
24
24
  import flatpickr from "flatpickr";
@@ -166,7 +166,7 @@ const DatePicker = forwardRef((props, ref) => {
166
166
  const savedOnChange = useSavedCallback(onChange);
167
167
  const savedOnOpen = useSavedCallback(onOpen);
168
168
  const wrapperRef = useRef(null);
169
- const datePickerClasses = classNames(`${prefix}--date-picker`, {
169
+ const datePickerClasses = cx(`${prefix}--date-picker`, {
170
170
  [`${prefix}--date-picker--short`]: short,
171
171
  [`${prefix}--date-picker--light`]: light,
172
172
  [`${prefix}--date-picker--simple`]: datePickerType === "simple",
@@ -174,7 +174,7 @@ const DatePicker = forwardRef((props, ref) => {
174
174
  [`${prefix}--date-picker--range`]: datePickerType === "range",
175
175
  [`${prefix}--date-picker--nolabel`]: datePickerType === "range" && isLabelTextEmpty(children)
176
176
  });
177
- const wrapperClasses = classNames(`${prefix}--form-item`, { [String(className)]: className });
177
+ const wrapperClasses = cx(`${prefix}--form-item`, { [String(className)]: className });
178
178
  const childrenWithProps = React.Children.toArray(children).map((child, index) => {
179
179
  const childInvalid = child.props?.invalid;
180
180
  const childWarn = child.props?.warn;
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import DatePicker from "./DatePicker.js";
9
- import "./DatePicker.Skeleton.js";
9
+ import { DatePickerSkeleton } from "./DatePicker.Skeleton.js";
10
10
  //#region src/components/DatePicker/index.tsx
11
11
  /**
12
12
  * Copyright IBM Corp. 2016, 2023
@@ -16,4 +16,4 @@ import "./DatePicker.Skeleton.js";
16
16
  */
17
17
  var DatePicker_default = DatePicker;
18
18
  //#endregion
19
- export { DatePicker_default as default };
19
+ export { DatePicker, DatePickerSkeleton, DatePicker_default as default };
@@ -5,17 +5,17 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import { warning } from "../../internal/warning.js";
8
9
  import { usePrefix } from "../../internal/usePrefix.js";
9
10
  import { Text } from "../Text/Text.js";
10
11
  import { useId } from "../../internal/useId.js";
11
- import { warning } from "../../internal/warning.js";
12
12
  import { deprecate } from "../../prop-types/deprecate.js";
13
13
  import { isComponentElement } from "../../internal/utils.js";
14
14
  import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
15
15
  import { AILabel } from "../AILabel/index.js";
16
16
  import { FormContext } from "../FluidForm/FormContext.js";
17
- import classNames from "classnames";
18
17
  import { cloneElement, forwardRef, useContext } from "react";
18
+ import cx from "classnames";
19
19
  import PropTypes from "prop-types";
20
20
  import { jsx, jsxs } from "react/jsx-runtime";
21
21
  import { Calendar, WarningAltFilled, WarningFilled } from "@carbon/icons-react";
@@ -57,24 +57,24 @@ const DatePickerInput = forwardRef((props, ref) => {
57
57
  warning(false, "The 'value' prop is not supported on the DatePickerInput component. For DatePicker components with 'datePickerType=\"range\"', please pass the 'value' prop (as an array of dates) to the parent DatePicker component instead.");
58
58
  didWarnAboutDatePickerInputValue = true;
59
59
  }
60
- const wrapperClasses = classNames(`${prefix}--date-picker-input__wrapper`, {
60
+ const wrapperClasses = cx(`${prefix}--date-picker-input__wrapper`, {
61
61
  [`${prefix}--date-picker-input__wrapper--invalid`]: normalizedProps.invalid,
62
62
  [`${prefix}--date-picker-input__wrapper--warn`]: normalizedProps.warn,
63
63
  [`${prefix}--date-picker-input__wrapper--slug`]: slug,
64
64
  [`${prefix}--date-picker-input__wrapper--decorator`]: decorator
65
65
  });
66
- const labelClasses = classNames(`${prefix}--label`, {
66
+ const labelClasses = cx(`${prefix}--label`, {
67
67
  [`${prefix}--visually-hidden`]: hideLabel,
68
68
  [`${prefix}--label--disabled`]: normalizedProps.disabled,
69
69
  [`${prefix}--label--readonly`]: readOnly
70
70
  });
71
- const helperTextClasses = classNames(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: normalizedProps.disabled });
72
- const inputClasses = classNames(`${prefix}--date-picker__input`, {
71
+ const helperTextClasses = cx(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: normalizedProps.disabled });
72
+ const inputClasses = cx(`${prefix}--date-picker__input`, {
73
73
  [`${prefix}--date-picker__input--${size}`]: size,
74
74
  [`${prefix}--date-picker__input--invalid`]: normalizedProps.invalid,
75
75
  [`${prefix}--date-picker__input--warn`]: normalizedProps.warn
76
76
  });
77
- const containerClasses = classNames(`${prefix}--date-picker-container`, {
77
+ const containerClasses = cx(`${prefix}--date-picker-container`, {
78
78
  [`${prefix}--date-picker--nolabel`]: !labelText,
79
79
  [`${prefix}--date-picker--fluid--invalid`]: isFluid && normalizedProps.invalid,
80
80
  [`${prefix}--date-picker--fluid--warn`]: isFluid && normalizedProps.warn
@@ -15,4 +15,4 @@ import DatePickerInput from "./DatePickerInput.js";
15
15
  */
16
16
  var DatePickerInput_default = DatePickerInput;
17
17
  //#endregion
18
- export { DatePickerInput_default as default };
18
+ export { DatePickerInput, DatePickerInput_default as default };
@@ -5,10 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import { noopFn } from "../../internal/noopFn.js";
8
9
  import { usePrefix } from "../../internal/usePrefix.js";
9
10
  import { Text } from "../Text/Text.js";
10
11
  import { useId } from "../../internal/useId.js";
11
- import { noopFn } from "../../internal/noopFn.js";
12
12
  import { deprecate } from "../../prop-types/deprecate.js";
13
13
  import { IconButton } from "../IconButton/index.js";
14
14
  import Button_default from "../Button/index.js";
@@ -16,8 +16,8 @@ import ButtonSet_default from "../ButtonSet/index.js";
16
16
  import { useResizeObserver } from "../../internal/useResizeObserver.js";
17
17
  import { Layer } from "../Layer/index.js";
18
18
  import InlineLoading from "../InlineLoading/InlineLoading.js";
19
- import classNames from "classnames";
20
19
  import React, { createContext, useContext, useEffect, useRef, useState } from "react";
20
+ import cx from "classnames";
21
21
  import PropTypes from "prop-types";
22
22
  import { jsx, jsxs } from "react/jsx-runtime";
23
23
  import { Close } from "@carbon/icons-react";
@@ -58,7 +58,7 @@ const Dialog = React.forwardRef(({ children, className, focusAfterCloseRef, moda
58
58
  };
59
59
  }
60
60
  }, [open, focusAfterCloseRef]);
61
- const containerClasses = classNames(`${prefix}--dialog-container`);
61
+ const containerClasses = cx(`${prefix}--dialog-container`);
62
62
  const contextValue = {
63
63
  dialogId,
64
64
  titleId,
@@ -86,7 +86,7 @@ const Dialog = React.forwardRef(({ children, className, focusAfterCloseRef, moda
86
86
  value: contextValue,
87
87
  children: /* @__PURE__ */ jsx("dialog", {
88
88
  ...rest,
89
- className: classNames(`${prefix}--dialog`, { [`${prefix}--dialog--modal`]: modal }, className),
89
+ className: cx(`${prefix}--dialog`, { [`${prefix}--dialog--modal`]: modal }, className),
90
90
  ref,
91
91
  onCancel,
92
92
  onClick: handleClick,
@@ -225,7 +225,7 @@ const DialogTitle = React.forwardRef(({ children, className, id, ...rest }, ref)
225
225
  return /* @__PURE__ */ jsx(Text, {
226
226
  as: "h2",
227
227
  id: headingId,
228
- className: classNames(`${prefix}--dialog-header__heading`, className),
228
+ className: cx(`${prefix}--dialog-header__heading`, className),
229
229
  ref,
230
230
  ...rest,
231
231
  children
@@ -258,7 +258,7 @@ const DialogSubtitle = React.forwardRef(({ children, className, id, ...rest }, r
258
258
  return /* @__PURE__ */ jsx(Text, {
259
259
  as: "h2",
260
260
  id: labelId,
261
- className: classNames(`${prefix}--dialog-header__label`, className),
261
+ className: cx(`${prefix}--dialog-header__label`, className),
262
262
  ref,
263
263
  ...rest,
264
264
  children
@@ -290,7 +290,7 @@ const DialogBody = React.forwardRef(({ children, className, hasScrollingContent,
290
290
  * via `useResizeObserver`, clientHeight and scrollHeight get updated too
291
291
  */
292
292
  const isScrollable = !!contentRef.current && contentRef?.current?.scrollHeight > contentRef?.current?.clientHeight;
293
- const contentClasses = classNames(`${prefix}--dialog-content`, {
293
+ const contentClasses = cx(`${prefix}--dialog-content`, {
294
294
  [`${prefix}--dialog-scroll-content`]: hasScrollingContent || isScrollable,
295
295
  [`${prefix}--dialog-scroll-content--no-fade`]: height <= 300
296
296
  }, className);
@@ -345,9 +345,9 @@ const DialogFooter = React.forwardRef(({ children, className, onRequestClose = n
345
345
  secondaryButtonRef,
346
346
  isOpen
347
347
  ]);
348
- const classes = classNames(`${prefix}--dialog-footer`, className, { [`${prefix}--dialog-footer--three-button`]: Array.isArray(secondaryButtons) && secondaryButtons.length === 2 });
348
+ const classes = cx(`${prefix}--dialog-footer`, className, { [`${prefix}--dialog-footer--three-button`]: Array.isArray(secondaryButtons) && secondaryButtons.length === 2 });
349
349
  const loadingActive = loadingStatus !== "inactive";
350
- const primaryButtonClass = classNames({ [`${prefix}--btn--loading`]: loadingStatus !== "inactive" });
350
+ const primaryButtonClass = cx({ [`${prefix}--btn--loading`]: loadingStatus !== "inactive" });
351
351
  const onSecondaryButtonClick = onSecondarySubmit ? onSecondarySubmit : onRequestClose;
352
352
  if (children) return /* @__PURE__ */ jsx(ButtonSet_default, {
353
353
  className: classes,
@@ -19,4 +19,4 @@ var Dialog_exports = /* @__PURE__ */ __exportAll({
19
19
  DialogTitle: () => DialogTitle
20
20
  });
21
21
  //#endregion
22
- export { Dialog_exports };
22
+ export { Dialog, DialogBody, DialogCloseButton, DialogControls, DialogFooter, DialogHeader, DialogSubtitle, DialogTitle, Dialog_exports };
@@ -7,8 +7,8 @@
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { ListBoxSizePropType } from "../ListBox/ListBoxPropTypes.js";
10
- import classNames from "classnames";
11
10
  import "react";
11
+ import cx from "classnames";
12
12
  import PropTypes from "prop-types";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
14
  //#region src/components/Dropdown/Dropdown.Skeleton.tsx
@@ -21,9 +21,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
21
21
  const DropdownSkeleton = ({ className, size, hideLabel, ...rest }) => {
22
22
  const prefix = usePrefix();
23
23
  return /* @__PURE__ */ jsxs("div", {
24
- className: classNames(className, `${prefix}--skeleton`, `${prefix}--form-item`),
24
+ className: cx(className, `${prefix}--skeleton`, `${prefix}--form-item`),
25
25
  ...rest,
26
- children: [!hideLabel && /* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: classNames(`${prefix}--skeleton ${prefix}--dropdown`, { [`${prefix}--list-box--${size}`]: size }) })]
26
+ children: [!hideLabel && /* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: cx(`${prefix}--skeleton ${prefix}--dropdown`, { [`${prefix}--list-box--${size}`]: size }) })]
27
27
  });
28
28
  };
29
29
  DropdownSkeleton.propTypes = {
@@ -41,4 +41,4 @@ DropdownSkeleton.propTypes = {
41
41
  size: ListBoxSizePropType
42
42
  };
43
43
  //#endregion
44
- export { DropdownSkeleton as default };
44
+ export { DropdownSkeleton, DropdownSkeleton as default };
@@ -17,8 +17,8 @@ import { ListBoxSizePropType, ListBoxTypePropType } from "../ListBox/ListBoxProp
17
17
  import { FormContext } from "../FluidForm/FormContext.js";
18
18
  import ListBox from "../ListBox/index.js";
19
19
  import { mergeRefs } from "../../tools/mergeRefs.js";
20
- import classNames from "classnames";
21
20
  import React, { cloneElement, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
21
+ import cx from "classnames";
22
22
  import PropTypes from "prop-types";
23
23
  import { jsx, jsxs } from "react/jsx-runtime";
24
24
  import { Checkmark, WarningAltFilled, WarningFilled } from "@carbon/icons-react";
@@ -142,7 +142,7 @@ const Dropdown = React.forwardRef(({ autoAlign = false, className: containerClas
142
142
  warnText
143
143
  });
144
144
  const [isFocused, setIsFocused] = useState(false);
145
- const className = classNames(`${prefix}--dropdown`, {
145
+ const className = cx(`${prefix}--dropdown`, {
146
146
  [`${prefix}--dropdown--invalid`]: normalizedProps.invalid,
147
147
  [`${prefix}--dropdown--warning`]: normalizedProps.warn,
148
148
  [`${prefix}--dropdown--open`]: isOpen,
@@ -155,12 +155,12 @@ const Dropdown = React.forwardRef(({ autoAlign = false, className: containerClas
155
155
  [`${prefix}--list-box--up`]: direction === "top",
156
156
  [`${prefix}--autoalign`]: autoAlign
157
157
  });
158
- const titleClasses = classNames(`${prefix}--label`, {
158
+ const titleClasses = cx(`${prefix}--label`, {
159
159
  [`${prefix}--label--disabled`]: normalizedProps.disabled,
160
160
  [`${prefix}--visually-hidden`]: hideLabel
161
161
  });
162
- const helperClasses = classNames(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: normalizedProps.disabled });
163
- const wrapperClasses = classNames(`${prefix}--dropdown__wrapper`, `${prefix}--list-box__wrapper`, containerClassName, {
162
+ const helperClasses = cx(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: normalizedProps.disabled });
163
+ const wrapperClasses = cx(`${prefix}--dropdown__wrapper`, `${prefix}--list-box__wrapper`, containerClassName, {
164
164
  [`${prefix}--dropdown__wrapper--inline`]: inline,
165
165
  [`${prefix}--list-box__wrapper--inline`]: inline,
166
166
  [`${prefix}--dropdown__wrapper--inline--invalid`]: inline && normalizedProps.invalid,
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import Dropdown from "./Dropdown.js";
9
- import "./Dropdown.Skeleton.js";
9
+ import { DropdownSkeleton } from "./Dropdown.Skeleton.js";
10
10
  //#region src/components/Dropdown/index.ts
11
11
  /**
12
12
  * Copyright IBM Corp. 2016, 2023
@@ -16,4 +16,4 @@ import "./Dropdown.Skeleton.js";
16
16
  */
17
17
  var Dropdown_default = Dropdown;
18
18
  //#endregion
19
- export { Dropdown_default as default };
19
+ export { Dropdown, DropdownSkeleton, Dropdown_default as default };
@@ -12,8 +12,8 @@ import { composeEventHandlers } from "../../tools/events.js";
12
12
  import { mergeRefs } from "../../tools/mergeRefs.js";
13
13
  import { isSearchValuePresent } from "../Search/utils.js";
14
14
  import Search_default from "../Search/index.js";
15
- import classNames from "classnames";
16
15
  import { forwardRef, useEffect, useRef, useState } from "react";
16
+ import cx from "classnames";
17
17
  import { jsx } from "react/jsx-runtime";
18
18
  //#region src/components/ExpandableSearch/ExpandableSearch.tsx
19
19
  /**
@@ -55,7 +55,7 @@ const ExpandableSearch = forwardRef((props, forwardedRef) => {
55
55
  if (!evt.target?.value && !isExpanded) setExpanded(false);
56
56
  }
57
57
  }
58
- const classes = classNames(`${prefix}--search--expandable`, { [`${prefix}--search--expanded`]: expanded }, rest.className);
58
+ const classes = cx(`${prefix}--search--expandable`, { [`${prefix}--search--expanded`]: expanded }, rest.className);
59
59
  return /* @__PURE__ */ jsx(Search_default, {
60
60
  ...rest,
61
61
  defaultValue,
@@ -15,4 +15,4 @@ import ExpandableSearch from "./ExpandableSearch.js";
15
15
  */
16
16
  var ExpandableSearch_default = ExpandableSearch;
17
17
  //#endregion
18
- export { ExpandableSearch_default as default };
18
+ export { ExpandableSearch, ExpandableSearch_default as default };
@@ -7,9 +7,9 @@
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import SkeletonText_default from "../SkeletonText/index.js";
10
- import ButtonSkeleton from "../Button/Button.Skeleton.js";
11
- import classNames from "classnames";
10
+ import { ButtonSkeleton } from "../Button/Button.Skeleton.js";
12
11
  import "react";
12
+ import cx from "classnames";
13
13
  import PropTypes from "prop-types";
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region src/components/FileUploader/FileUploader.Skeleton.tsx
@@ -22,7 +22,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
22
22
  function FileUploaderSkeleton({ className, ...rest }) {
23
23
  const prefix = usePrefix();
24
24
  return /* @__PURE__ */ jsxs("div", {
25
- className: classNames(`${prefix}--form-item`, className),
25
+ className: cx(`${prefix}--form-item`, className),
26
26
  ...rest,
27
27
  children: [
28
28
  /* @__PURE__ */ jsx(SkeletonText_default, {
@@ -43,4 +43,4 @@ FileUploaderSkeleton.propTypes = {
43
43
  */
44
44
  className: PropTypes.string };
45
45
  //#endregion
46
- export { FileUploaderSkeleton as default };
46
+ export { FileUploaderSkeleton, FileUploaderSkeleton as default };
@@ -14,8 +14,8 @@ import { useFeatureFlag } from "../FeatureFlags/index.js";
14
14
  import { ButtonKinds } from "../Button/Button.js";
15
15
  import Filename from "./Filename.js";
16
16
  import FileUploaderButton from "./FileUploaderButton.js";
17
- import classNames from "classnames";
18
17
  import React, { forwardRef, useCallback, useImperativeHandle, useState } from "react";
18
+ import cx from "classnames";
19
19
  import PropTypes from "prop-types";
20
20
  import { jsx, jsxs } from "react/jsx-runtime";
21
21
  //#region src/components/FileUploader/FileUploader.tsx
@@ -35,7 +35,7 @@ const FileUploader = forwardRef(({ accept, buttonKind, buttonLabel, className, d
35
35
  const nodes = [];
36
36
  const createFileItem = useCallback((file) => ({
37
37
  name: file.name,
38
- uuid: `${fileUploaderInstanceId}-${Date.now()}-${Array.from(crypto.getRandomValues(new Uint8Array(8))).map((b) => b.toString(36)).join("")}`,
38
+ uuid: `${fileUploaderInstanceId}-${Date.now()}-${Array.from(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(8))).map((b) => b.toString(36)).join("")}`,
39
39
  file
40
40
  }), [fileUploaderInstanceId]);
41
41
  /**
@@ -56,7 +56,8 @@ const FileUploader = forwardRef(({ accept, buttonKind, buttonLabel, className, d
56
56
  const handleChange = useCallback((evt) => {
57
57
  evt.stopPropagation();
58
58
  const incomingFiles = Array.from(evt.target.files);
59
- const validatedFiles = validateFiles(multiple ? incomingFiles : [incomingFiles[0]]);
59
+ const filesToValidate = multiple ? incomingFiles : [incomingFiles[0]];
60
+ const validatedFiles = validateFiles(filesToValidate);
60
61
  if (onAddFiles) onAddFiles(evt, { addedFiles: validatedFiles });
61
62
  const validFiles = validatedFiles.filter((file) => !file.invalidFileType);
62
63
  if (validFiles.length === 0) return;
@@ -84,7 +85,8 @@ const FileUploader = forwardRef(({ accept, buttonKind, buttonLabel, className, d
84
85
  }
85
86
  } else {
86
87
  const filenames = validFiles.map((file) => file.name);
87
- setLegacyFileNames(multiple ? [...new Set([...legacyFileNames, ...filenames])] : filenames);
88
+ const updatedFileNames = multiple ? [.../* @__PURE__ */ new Set([...legacyFileNames, ...filenames])] : filenames;
89
+ setLegacyFileNames(updatedFileNames);
88
90
  if (onChange) onChange(evt);
89
91
  }
90
92
  }, [
@@ -122,7 +124,8 @@ const FileUploader = forwardRef(({ accept, buttonKind, buttonLabel, className, d
122
124
  if (onChange) onChange(enhancedEvent);
123
125
  } else {
124
126
  const deletedFileName = legacyFileNames[index];
125
- setLegacyFileNames(legacyFileNames.filter((filename) => filename !== deletedFileName));
127
+ const filteredArray = legacyFileNames.filter((filename) => filename !== deletedFileName);
128
+ setLegacyFileNames(filteredArray);
126
129
  if (onDelete) onDelete(evt);
127
130
  }
128
131
  if (onClick) onClick(evt);
@@ -167,12 +170,12 @@ const FileUploader = forwardRef(({ accept, buttonKind, buttonLabel, className, d
167
170
  fileItems,
168
171
  onChange
169
172
  ]);
170
- const classes = classNames({
173
+ const classes = cx({
171
174
  [`${prefix}--form-item`]: true,
172
175
  [className]: className
173
176
  });
174
- const getHelperLabelClasses = (baseClass) => classNames(baseClass, { [`${prefix}--label-description--disabled`]: disabled });
175
- const getSelectedFileClasses = (file) => classNames(`${prefix}--file__selected-file`, {
177
+ const getHelperLabelClasses = (baseClass) => cx(baseClass, { [`${prefix}--label-description--disabled`]: disabled });
178
+ const getSelectedFileClasses = (file) => cx(`${prefix}--file__selected-file`, {
176
179
  [`${prefix}--file__selected-file--md`]: size === "field" || size === "md",
177
180
  [`${prefix}--file__selected-file--sm`]: size === "small" || size === "sm",
178
181
  [`${prefix}--file__selected-file--disabled`]: file.disabled
@@ -5,15 +5,15 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import { noopFn } from "../../internal/noopFn.js";
8
9
  import { usePrefix } from "../../internal/usePrefix.js";
9
10
  import { Enter, Space } from "../../internal/keyboard/keys.js";
10
11
  import { matches } from "../../internal/keyboard/match.js";
11
12
  import { useId } from "../../internal/useId.js";
12
- import { noopFn } from "../../internal/noopFn.js";
13
13
  import { deprecate } from "../../prop-types/deprecate.js";
14
14
  import { ButtonKinds } from "../Button/Button.js";
15
- import classNames from "classnames";
16
15
  import { useEffect, useRef, useState } from "react";
16
+ import cx from "classnames";
17
17
  import PropTypes from "prop-types";
18
18
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
19
19
  //#region src/components/FileUploader/FileUploaderButton.tsx
@@ -29,7 +29,7 @@ function FileUploaderButton({ accept, buttonKind = "primary", className, disable
29
29
  const generatedId = useId();
30
30
  const { current: inputId } = useRef(id || generatedId);
31
31
  const inputNode = useRef(null);
32
- const classes = classNames(`${prefix}--btn`, className, {
32
+ const classes = cx(`${prefix}--btn`, className, {
33
33
  [`${prefix}--btn--${buttonKind}`]: buttonKind,
34
34
  [`${prefix}--btn--disabled`]: disabled,
35
35
  [`${prefix}--btn--md`]: size === "field" || size === "md",