@carbon/react 1.112.0-rc.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 (547) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +925 -925
  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 +4 -5
  65. package/es/components/DatePicker/index.js +2 -2
  66. package/es/components/DatePicker/plugins/fixEventsPlugin.d.ts +2 -5
  67. package/es/components/DatePicker/plugins/fixEventsPlugin.js +5 -12
  68. package/es/components/DatePickerInput/DatePickerInput.js +7 -7
  69. package/es/components/DatePickerInput/index.js +1 -1
  70. package/es/components/Dialog/Dialog.js +9 -9
  71. package/es/components/Dialog/index.js +1 -1
  72. package/es/components/Dropdown/Dropdown.Skeleton.js +4 -4
  73. package/es/components/Dropdown/Dropdown.js +5 -5
  74. package/es/components/Dropdown/index.js +2 -2
  75. package/es/components/ExpandableSearch/ExpandableSearch.js +2 -2
  76. package/es/components/ExpandableSearch/index.js +1 -1
  77. package/es/components/FeatureFlags/index.d.ts +3 -1
  78. package/es/components/FeatureFlags/index.js +5 -1
  79. package/es/components/FileUploader/FileUploader.Skeleton.js +4 -4
  80. package/es/components/FileUploader/FileUploader.js +11 -8
  81. package/es/components/FileUploader/FileUploaderButton.js +3 -3
  82. package/es/components/FileUploader/FileUploaderDropContainer.js +8 -6
  83. package/es/components/FileUploader/FileUploaderItem.js +3 -3
  84. package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -2
  85. package/es/components/FluidComboBox/FluidComboBox.js +3 -3
  86. package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +3 -3
  87. package/es/components/FluidDatePicker/FluidDatePicker.js +3 -3
  88. package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -2
  89. package/es/components/FluidDropdown/FluidDropdown.js +3 -3
  90. package/es/components/FluidForm/FluidForm.js +3 -3
  91. package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -2
  92. package/es/components/FluidMultiSelect/FluidMultiSelect.js +4 -4
  93. package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -2
  94. package/es/components/FluidNumberInput/FluidNumberInput.js +3 -3
  95. package/es/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
  96. package/es/components/FluidSearch/FluidSearch.js +3 -3
  97. package/es/components/FluidSelect/FluidSelect.Skeleton.js +2 -2
  98. package/es/components/FluidSelect/FluidSelect.js +3 -3
  99. package/es/components/FluidSelect/index.js +2 -2
  100. package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -2
  101. package/es/components/FluidTextArea/FluidTextArea.js +3 -3
  102. package/es/components/FluidTextInput/FluidPasswordInput.js +3 -3
  103. package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
  104. package/es/components/FluidTextInput/FluidTextInput.js +4 -4
  105. package/es/components/FluidTextInput/index.js +3 -3
  106. package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -2
  107. package/es/components/FluidTimePicker/FluidTimePicker.js +3 -3
  108. package/es/components/FluidTimePickerSelect/index.js +1 -1
  109. package/es/components/Form/Form.js +2 -2
  110. package/es/components/FormGroup/FormGroup.js +2 -2
  111. package/es/components/FormItem/FormItem.js +2 -2
  112. package/es/components/FormLabel/FormLabel.js +2 -2
  113. package/es/components/Grid/CSSGrid.js +4 -4
  114. package/es/components/Grid/Column.js +3 -3
  115. package/es/components/Grid/ColumnHang.js +3 -3
  116. package/es/components/Grid/FlexGrid.js +3 -3
  117. package/es/components/Grid/Grid.js +3 -3
  118. package/es/components/Grid/Row.js +2 -2
  119. package/es/components/Icon/Icon.Skeleton.js +3 -3
  120. package/es/components/IconButton/index.js +4 -3
  121. package/es/components/IconIndicator/index.js +4 -4
  122. package/es/components/InlineCheckbox/index.js +1 -1
  123. package/es/components/InlineLoading/InlineLoading.js +2 -2
  124. package/es/components/InlineLoading/index.js +1 -1
  125. package/es/components/Layer/LayerLevel.js +1 -1
  126. package/es/components/Layer/index.js +2 -2
  127. package/es/components/Layout/index.js +3 -3
  128. package/es/components/LayoutDirection/LayoutDirection.js +1 -1
  129. package/es/components/Link/Link.js +2 -2
  130. package/es/components/Link/index.js +1 -1
  131. package/es/components/ListBox/ListBox.js +2 -2
  132. package/es/components/ListBox/ListBoxMenuIcon.js +2 -2
  133. package/es/components/ListBox/ListBoxMenuItem.js +4 -3
  134. package/es/components/ListBox/ListBoxSelection.js +3 -3
  135. package/es/components/ListBox/index.js +2 -2
  136. package/es/components/ListBox/next/ListBoxSelection.d.ts +12 -2
  137. package/es/components/ListBox/next/ListBoxSelection.js +10 -5
  138. package/es/components/ListBox/next/ListBoxTrigger.js +2 -2
  139. package/es/components/ListItem/ListItem.js +2 -2
  140. package/es/components/Loading/Loading.js +3 -3
  141. package/es/components/Loading/index.js +1 -1
  142. package/es/components/Menu/Menu.js +3 -3
  143. package/es/components/Menu/MenuItem.js +9 -9
  144. package/es/components/MenuButton/index.js +4 -4
  145. package/es/components/Modal/Modal.js +11 -11
  146. package/es/components/Modal/ModalPresence.js +5 -2
  147. package/es/components/Modal/index.js +2 -2
  148. package/es/components/ModalWrapper/ModalWrapper.js +2 -2
  149. package/es/components/MultiSelect/FilterableMultiSelect.js +23 -11
  150. package/es/components/MultiSelect/MultiSelect.js +7 -7
  151. package/es/components/Notification/Notification.js +10 -10
  152. package/es/components/NumberInput/NumberInput.Skeleton.js +2 -2
  153. package/es/components/NumberInput/NumberInput.js +21 -11
  154. package/es/components/OrderedList/OrderedList.js +2 -2
  155. package/es/components/OverflowMenu/OverflowMenu.js +7 -7
  156. package/es/components/OverflowMenu/index.js +2 -2
  157. package/es/components/OverflowMenu/next/index.js +4 -4
  158. package/es/components/OverflowMenuItem/OverflowMenuItem.js +4 -4
  159. package/es/components/OverflowMenuItem/index.js +1 -1
  160. package/es/components/OverflowMenuV2/index.js +1 -1
  161. package/es/components/PageHeader/PageHeader.js +15 -15
  162. package/es/components/PageHeader/index.js +1 -1
  163. package/es/components/Pagination/Pagination.Skeleton.js +3 -3
  164. package/es/components/Pagination/Pagination.d.ts +18 -1
  165. package/es/components/Pagination/Pagination.js +33 -8
  166. package/es/components/Pagination/experimental/PageSelector.d.ts +4 -0
  167. package/es/components/Pagination/experimental/PageSelector.js +16 -3
  168. package/es/components/Pagination/experimental/Pagination-story.d.ts +100 -65
  169. package/es/components/Pagination/experimental/Pagination.d.ts +4 -0
  170. package/es/components/Pagination/experimental/Pagination.js +12 -5
  171. package/es/components/PaginationNav/PaginationNav.js +8 -6
  172. package/es/components/Popover/index.js +14 -6
  173. package/es/components/ProgressBar/ProgressBar.js +3 -3
  174. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -3
  175. package/es/components/ProgressIndicator/ProgressIndicator.js +4 -4
  176. package/es/components/RadioButton/RadioButton.Skeleton.js +3 -3
  177. package/es/components/RadioButton/RadioButton.js +3 -3
  178. package/es/components/RadioButton/index.js +1 -1
  179. package/es/components/RadioButtonGroup/RadioButtonGroup.js +4 -4
  180. package/es/components/RadioTile/RadioTile.js +3 -3
  181. package/es/components/RadioTile/index.js +1 -1
  182. package/es/components/Search/Search.Skeleton.js +3 -3
  183. package/es/components/Search/Search.js +4 -4
  184. package/es/components/Search/index.js +2 -2
  185. package/es/components/Select/Select.Skeleton.js +3 -3
  186. package/es/components/Select/Select.js +6 -6
  187. package/es/components/Select/index.js +2 -2
  188. package/es/components/SelectItem/SelectItem.js +2 -2
  189. package/es/components/SelectItem/index.js +1 -1
  190. package/es/components/SelectItemGroup/SelectItemGroup.js +2 -2
  191. package/es/components/ShapeIndicator/index.js +4 -4
  192. package/es/components/SkeletonIcon/SkeletonIcon.js +2 -2
  193. package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -2
  194. package/es/components/SkeletonText/SkeletonText.js +2 -2
  195. package/es/components/SkeletonText/index.js +1 -1
  196. package/es/components/Slider/Slider.Skeleton.js +7 -7
  197. package/es/components/Slider/Slider.js +22 -20
  198. package/es/components/Stack/Stack.js +2 -2
  199. package/es/components/StructuredList/StructuredList.Skeleton.js +3 -3
  200. package/es/components/StructuredList/StructuredList.js +7 -7
  201. package/es/components/Switch/IconSwitch.js +6 -5
  202. package/es/components/Switch/Switch.js +3 -3
  203. package/es/components/TabContent/TabContent.js +2 -2
  204. package/es/components/Tabs/Tabs.Skeleton.js +3 -3
  205. package/es/components/Tabs/Tabs.js +45 -33
  206. package/es/components/Tag/DismissibleTag.js +4 -3
  207. package/es/components/Tag/OperationalTag.js +4 -3
  208. package/es/components/Tag/SelectableTag.js +3 -3
  209. package/es/components/Tag/Tag.Skeleton.js +3 -3
  210. package/es/components/Tag/Tag.js +4 -3
  211. package/es/components/TextArea/TextArea.Skeleton.js +3 -3
  212. package/es/components/TextArea/TextArea.js +8 -8
  213. package/es/components/TextArea/index.js +2 -2
  214. package/es/components/TextInput/ControlledPasswordInput.js +6 -6
  215. package/es/components/TextInput/PasswordInput.js +10 -10
  216. package/es/components/TextInput/TextInput.Skeleton.js +3 -3
  217. package/es/components/TextInput/TextInput.js +9 -9
  218. package/es/components/TextInput/index.js +2 -2
  219. package/es/components/Theme/index.js +2 -2
  220. package/es/components/Tile/Tile.js +14 -11
  221. package/es/components/TileGroup/TileGroup.js +1 -1
  222. package/es/components/TimePicker/TimePicker.js +5 -5
  223. package/es/components/TimePickerSelect/TimePickerSelect.js +2 -2
  224. package/es/components/Toggle/Toggle.Skeleton.js +3 -3
  225. package/es/components/Toggle/Toggle.js +6 -6
  226. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -2
  227. package/es/components/Toggletip/index.js +6 -6
  228. package/es/components/Tooltip/DefinitionTooltip.js +2 -2
  229. package/es/components/Tooltip/Tooltip.d.ts +2 -1
  230. package/es/components/Tooltip/Tooltip.js +5 -4
  231. package/es/components/TreeView/TreeNode.js +11 -8
  232. package/es/components/TreeView/TreeView.js +2 -2
  233. package/es/components/UIShell/Content.js +2 -2
  234. package/es/components/UIShell/Header.js +2 -2
  235. package/es/components/UIShell/HeaderGlobalAction.js +2 -2
  236. package/es/components/UIShell/HeaderMenu.js +4 -4
  237. package/es/components/UIShell/HeaderMenuButton.js +2 -2
  238. package/es/components/UIShell/HeaderMenuItem.js +2 -2
  239. package/es/components/UIShell/HeaderName.js +2 -2
  240. package/es/components/UIShell/HeaderNavigation.js +2 -2
  241. package/es/components/UIShell/HeaderPanel.js +3 -3
  242. package/es/components/UIShell/HeaderSideNavItems.js +2 -2
  243. package/es/components/UIShell/SideNav.js +3 -3
  244. package/es/components/UIShell/SideNavDetails.js +2 -2
  245. package/es/components/UIShell/SideNavDivider.js +2 -2
  246. package/es/components/UIShell/SideNavFooter.js +2 -2
  247. package/es/components/UIShell/SideNavHeader.js +2 -2
  248. package/es/components/UIShell/SideNavIcon.js +2 -2
  249. package/es/components/UIShell/SideNavItem.js +2 -2
  250. package/es/components/UIShell/SideNavItems.js +2 -2
  251. package/es/components/UIShell/SideNavLink.js +2 -2
  252. package/es/components/UIShell/SideNavLinkText.js +2 -2
  253. package/es/components/UIShell/SideNavMenu.js +3 -3
  254. package/es/components/UIShell/SideNavMenuItem.js +3 -3
  255. package/es/components/UIShell/SideNavSwitcher.js +2 -2
  256. package/es/components/UIShell/SkipToContent.js +2 -2
  257. package/es/components/UIShell/Switcher.js +2 -2
  258. package/es/components/UIShell/SwitcherDivider.js +3 -3
  259. package/es/components/UIShell/SwitcherItem.js +4 -4
  260. package/es/components/UnorderedList/UnorderedList.js +2 -2
  261. package/es/feature-flags.js +1 -0
  262. package/es/index.js +30 -30
  263. package/es/internal/FloatingMenu.js +12 -9
  264. package/es/internal/motion/MotionSurface.d.ts +35 -0
  265. package/es/internal/motion/useMotionEnabled.d.ts +13 -0
  266. package/es/internal/motion/useMotionSurface.d.ts +33 -0
  267. package/es/internal/useId.js +1 -1
  268. package/es/internal/useOverflowItems.js +2 -1
  269. package/es/internal/usePresence.d.ts +8 -1
  270. package/es/internal/usePresence.js +4 -2
  271. package/es/internal/usePresenceContext.d.ts +12 -0
  272. package/es/internal/usePresenceContext.js +23 -5
  273. package/es/tools/wrapComponent.js +2 -2
  274. package/lib/components/AILabel/index.js +4 -4
  275. package/lib/components/AISkeleton/AISkeletonIcon.js +2 -2
  276. package/lib/components/AISkeleton/AISkeletonPlaceholder.js +2 -2
  277. package/lib/components/AISkeleton/AISkeletonText.js +2 -2
  278. package/lib/components/Accordion/Accordion.Skeleton.js +3 -2
  279. package/lib/components/Accordion/Accordion.js +2 -2
  280. package/lib/components/Accordion/AccordionItem.js +2 -2
  281. package/lib/components/AspectRatio/AspectRatio.js +2 -2
  282. package/lib/components/BadgeIndicator/index.js +3 -2
  283. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +3 -2
  284. package/lib/components/Breadcrumb/Breadcrumb.js +2 -2
  285. package/lib/components/Breadcrumb/BreadcrumbItem.js +2 -2
  286. package/lib/components/Button/Button.Skeleton.js +3 -2
  287. package/lib/components/Button/Button.js +2 -2
  288. package/lib/components/Button/ButtonBase.js +2 -2
  289. package/lib/components/Button/index.js +7 -1
  290. package/lib/components/ButtonSet/ButtonSet.js +2 -2
  291. package/lib/components/ButtonSet/index.js +3 -1
  292. package/lib/components/ChatButton/ChatButton.Skeleton.js +2 -2
  293. package/lib/components/ChatButton/ChatButton.js +2 -2
  294. package/lib/components/Checkbox/Checkbox.Skeleton.js +3 -2
  295. package/lib/components/Checkbox/Checkbox.js +3 -3
  296. package/lib/components/Checkbox/index.js +3 -1
  297. package/lib/components/CheckboxGroup/CheckboxGroup.js +2 -2
  298. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +3 -2
  299. package/lib/components/CodeSnippet/CodeSnippet.js +2 -2
  300. package/lib/components/ComboBox/ComboBox.js +8 -5
  301. package/lib/components/ComboBox/index.js +3 -1
  302. package/lib/components/ComboButton/index.js +2 -2
  303. package/lib/components/ComposedModal/ComposedModal.js +5 -4
  304. package/lib/components/ComposedModal/ComposedModalPresence.js +4 -1
  305. package/lib/components/ComposedModal/ModalFooter.js +3 -3
  306. package/lib/components/ComposedModal/ModalHeader.js +2 -2
  307. package/lib/components/ContainedList/ContainedList.js +2 -2
  308. package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +2 -2
  309. package/lib/components/ContainedList/ContainedListItem/index.js +3 -1
  310. package/lib/components/ContentSwitcher/ContentSwitcher.js +2 -2
  311. package/lib/components/Copy/Copy.js +3 -3
  312. package/lib/components/Copy/index.js +3 -1
  313. package/lib/components/CopyButton/CopyButton.js +3 -3
  314. package/lib/components/CopyButton/index.js +3 -1
  315. package/lib/components/DataTable/DataTable.js +4 -3
  316. package/lib/components/DataTable/Table.js +3 -2
  317. package/lib/components/DataTable/TableBatchActions.js +2 -2
  318. package/lib/components/DataTable/TableCell.js +2 -2
  319. package/lib/components/DataTable/TableContainer.js +2 -2
  320. package/lib/components/DataTable/TableDecoratorRow.js +2 -2
  321. package/lib/components/DataTable/TableExpandHeader.js +2 -2
  322. package/lib/components/DataTable/TableExpandRow.js +2 -2
  323. package/lib/components/DataTable/TableExpandedRow.js +2 -2
  324. package/lib/components/DataTable/TableHeader.js +2 -2
  325. package/lib/components/DataTable/TableRow.js +2 -2
  326. package/lib/components/DataTable/TableSelectAll.js +2 -2
  327. package/lib/components/DataTable/TableSelectRow.js +2 -2
  328. package/lib/components/DataTable/TableSlugRow.js +2 -2
  329. package/lib/components/DataTable/TableToolbar.js +3 -2
  330. package/lib/components/DataTable/TableToolbarMenu.js +3 -3
  331. package/lib/components/DataTable/TableToolbarSearch.js +3 -3
  332. package/lib/components/DataTable/state/sorting.js +3 -1
  333. package/lib/components/DataTable/tools/sorting.js +2 -0
  334. package/lib/components/DataTableSkeleton/DataTableSkeleton.js +2 -2
  335. package/lib/components/DatePicker/DatePicker.Skeleton.js +3 -2
  336. package/lib/components/DatePicker/DatePicker.js +3 -4
  337. package/lib/components/DatePicker/index.js +3 -1
  338. package/lib/components/DatePicker/plugins/fixEventsPlugin.d.ts +2 -5
  339. package/lib/components/DatePicker/plugins/fixEventsPlugin.js +5 -12
  340. package/lib/components/DatePickerInput/DatePickerInput.js +3 -3
  341. package/lib/components/DatePickerInput/index.js +3 -1
  342. package/lib/components/Dialog/Dialog.js +3 -3
  343. package/lib/components/Dialog/index.js +8 -0
  344. package/lib/components/Dropdown/Dropdown.Skeleton.js +3 -2
  345. package/lib/components/Dropdown/Dropdown.js +2 -2
  346. package/lib/components/Dropdown/index.js +3 -1
  347. package/lib/components/ExpandableSearch/ExpandableSearch.js +2 -2
  348. package/lib/components/ExpandableSearch/index.js +3 -1
  349. package/lib/components/FeatureFlags/index.d.ts +3 -1
  350. package/lib/components/FeatureFlags/index.js +5 -1
  351. package/lib/components/FileUploader/FileUploader.Skeleton.js +4 -3
  352. package/lib/components/FileUploader/FileUploader.js +9 -6
  353. package/lib/components/FileUploader/FileUploaderButton.js +3 -3
  354. package/lib/components/FileUploader/FileUploaderDropContainer.js +8 -6
  355. package/lib/components/FileUploader/FileUploaderItem.js +3 -3
  356. package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -2
  357. package/lib/components/FluidComboBox/FluidComboBox.js +2 -2
  358. package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +2 -2
  359. package/lib/components/FluidDatePicker/FluidDatePicker.js +2 -2
  360. package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -2
  361. package/lib/components/FluidDropdown/FluidDropdown.js +2 -2
  362. package/lib/components/FluidForm/FluidForm.js +2 -2
  363. package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -2
  364. package/lib/components/FluidMultiSelect/FluidMultiSelect.js +2 -2
  365. package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -2
  366. package/lib/components/FluidNumberInput/FluidNumberInput.js +2 -2
  367. package/lib/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
  368. package/lib/components/FluidSearch/FluidSearch.js +2 -2
  369. package/lib/components/FluidSelect/FluidSelect.Skeleton.js +2 -2
  370. package/lib/components/FluidSelect/FluidSelect.js +2 -2
  371. package/lib/components/FluidSelect/index.js +3 -1
  372. package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -2
  373. package/lib/components/FluidTextArea/FluidTextArea.js +2 -2
  374. package/lib/components/FluidTextInput/FluidPasswordInput.js +2 -2
  375. package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
  376. package/lib/components/FluidTextInput/FluidTextInput.js +2 -2
  377. package/lib/components/FluidTextInput/index.js +5 -2
  378. package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -2
  379. package/lib/components/FluidTimePicker/FluidTimePicker.js +2 -2
  380. package/lib/components/FluidTimePickerSelect/index.js +3 -1
  381. package/lib/components/Form/Form.js +2 -2
  382. package/lib/components/FormGroup/FormGroup.js +2 -2
  383. package/lib/components/FormItem/FormItem.js +2 -2
  384. package/lib/components/FormLabel/FormLabel.js +2 -2
  385. package/lib/components/Grid/CSSGrid.js +3 -3
  386. package/lib/components/Grid/Column.js +2 -2
  387. package/lib/components/Grid/ColumnHang.js +3 -3
  388. package/lib/components/Grid/FlexGrid.js +3 -3
  389. package/lib/components/Grid/Grid.js +3 -3
  390. package/lib/components/Grid/Row.js +2 -2
  391. package/lib/components/Icon/Icon.Skeleton.js +3 -2
  392. package/lib/components/IconButton/index.js +4 -3
  393. package/lib/components/IconIndicator/index.js +4 -2
  394. package/lib/components/InlineCheckbox/index.js +3 -1
  395. package/lib/components/InlineLoading/InlineLoading.js +2 -2
  396. package/lib/components/InlineLoading/index.js +3 -1
  397. package/lib/components/Layer/LayerLevel.js +1 -0
  398. package/lib/components/Layer/index.js +2 -2
  399. package/lib/components/Layout/index.js +2 -2
  400. package/lib/components/LayoutDirection/LayoutDirection.js +1 -0
  401. package/lib/components/Link/Link.js +2 -2
  402. package/lib/components/Link/index.js +3 -1
  403. package/lib/components/ListBox/ListBox.js +2 -2
  404. package/lib/components/ListBox/ListBoxMenuIcon.js +2 -2
  405. package/lib/components/ListBox/ListBoxMenuItem.js +4 -3
  406. package/lib/components/ListBox/ListBoxSelection.js +2 -2
  407. package/lib/components/ListBox/index.js +3 -1
  408. package/lib/components/ListBox/next/ListBoxSelection.d.ts +12 -2
  409. package/lib/components/ListBox/next/ListBoxSelection.js +9 -4
  410. package/lib/components/ListBox/next/ListBoxTrigger.js +2 -2
  411. package/lib/components/ListItem/ListItem.js +2 -2
  412. package/lib/components/Loading/Loading.js +2 -2
  413. package/lib/components/Loading/index.js +3 -1
  414. package/lib/components/Menu/Menu.js +2 -2
  415. package/lib/components/Menu/MenuItem.js +2 -2
  416. package/lib/components/MenuButton/index.js +2 -2
  417. package/lib/components/Modal/Modal.js +7 -6
  418. package/lib/components/Modal/ModalPresence.js +4 -1
  419. package/lib/components/Modal/index.js +6 -2
  420. package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
  421. package/lib/components/MultiSelect/FilterableMultiSelect.js +19 -7
  422. package/lib/components/MultiSelect/MultiSelect.js +3 -3
  423. package/lib/components/Notification/Notification.js +4 -4
  424. package/lib/components/NumberInput/NumberInput.Skeleton.js +2 -2
  425. package/lib/components/NumberInput/NumberInput.js +16 -5
  426. package/lib/components/OrderedList/OrderedList.js +2 -2
  427. package/lib/components/OverflowMenu/OverflowMenu.js +5 -3
  428. package/lib/components/OverflowMenu/index.js +3 -2
  429. package/lib/components/OverflowMenu/next/index.js +2 -2
  430. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +3 -3
  431. package/lib/components/OverflowMenuItem/index.js +3 -1
  432. package/lib/components/OverflowMenuV2/index.js +1 -1
  433. package/lib/components/PageHeader/PageHeader.js +5 -5
  434. package/lib/components/PageHeader/index.js +14 -0
  435. package/lib/components/Pagination/Pagination.Skeleton.js +3 -2
  436. package/lib/components/Pagination/Pagination.d.ts +18 -1
  437. package/lib/components/Pagination/Pagination.js +31 -6
  438. package/lib/components/Pagination/experimental/PageSelector.d.ts +4 -0
  439. package/lib/components/Pagination/experimental/PageSelector.js +9 -2
  440. package/lib/components/Pagination/experimental/Pagination-story.d.ts +100 -65
  441. package/lib/components/Pagination/experimental/Pagination.d.ts +4 -0
  442. package/lib/components/Pagination/experimental/Pagination.js +9 -2
  443. package/lib/components/PaginationNav/PaginationNav.js +6 -4
  444. package/lib/components/Popover/index.js +10 -2
  445. package/lib/components/ProgressBar/ProgressBar.js +2 -2
  446. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -2
  447. package/lib/components/ProgressIndicator/ProgressIndicator.js +2 -2
  448. package/lib/components/RadioButton/RadioButton.Skeleton.js +3 -2
  449. package/lib/components/RadioButton/RadioButton.js +2 -2
  450. package/lib/components/RadioButton/index.js +3 -1
  451. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
  452. package/lib/components/RadioTile/RadioTile.js +3 -3
  453. package/lib/components/RadioTile/index.js +3 -1
  454. package/lib/components/Search/Search.Skeleton.js +3 -2
  455. package/lib/components/Search/Search.js +3 -3
  456. package/lib/components/Search/index.js +3 -1
  457. package/lib/components/Select/Select.Skeleton.js +3 -2
  458. package/lib/components/Select/Select.js +2 -2
  459. package/lib/components/Select/index.js +3 -1
  460. package/lib/components/SelectItem/SelectItem.js +2 -2
  461. package/lib/components/SelectItem/index.js +3 -1
  462. package/lib/components/SelectItemGroup/SelectItemGroup.js +2 -2
  463. package/lib/components/ShapeIndicator/index.js +4 -2
  464. package/lib/components/SkeletonIcon/SkeletonIcon.js +2 -2
  465. package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -2
  466. package/lib/components/SkeletonText/SkeletonText.js +2 -2
  467. package/lib/components/SkeletonText/index.js +3 -1
  468. package/lib/components/Slider/Slider.Skeleton.js +2 -2
  469. package/lib/components/Slider/Slider.js +8 -6
  470. package/lib/components/Stack/Stack.js +2 -2
  471. package/lib/components/StructuredList/StructuredList.Skeleton.js +2 -2
  472. package/lib/components/StructuredList/StructuredList.js +2 -2
  473. package/lib/components/Switch/IconSwitch.js +5 -4
  474. package/lib/components/Switch/Switch.js +3 -3
  475. package/lib/components/TabContent/TabContent.js +2 -2
  476. package/lib/components/Tabs/Tabs.Skeleton.js +3 -2
  477. package/lib/components/Tabs/Tabs.js +35 -23
  478. package/lib/components/Tag/DismissibleTag.js +3 -2
  479. package/lib/components/Tag/OperationalTag.js +3 -2
  480. package/lib/components/Tag/SelectableTag.js +2 -2
  481. package/lib/components/Tag/Tag.Skeleton.js +3 -2
  482. package/lib/components/Tag/Tag.js +3 -2
  483. package/lib/components/TextArea/TextArea.Skeleton.js +3 -2
  484. package/lib/components/TextArea/TextArea.js +3 -3
  485. package/lib/components/TextArea/index.js +3 -1
  486. package/lib/components/TextInput/ControlledPasswordInput.js +3 -3
  487. package/lib/components/TextInput/PasswordInput.js +2 -2
  488. package/lib/components/TextInput/TextInput.Skeleton.js +3 -2
  489. package/lib/components/TextInput/TextInput.js +2 -2
  490. package/lib/components/TextInput/index.js +3 -1
  491. package/lib/components/Theme/index.js +2 -2
  492. package/lib/components/Tile/Tile.js +7 -4
  493. package/lib/components/TileGroup/TileGroup.js +1 -1
  494. package/lib/components/TimePicker/TimePicker.js +2 -2
  495. package/lib/components/TimePickerSelect/TimePickerSelect.js +2 -2
  496. package/lib/components/Toggle/Toggle.Skeleton.js +3 -2
  497. package/lib/components/Toggle/Toggle.js +3 -2
  498. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -2
  499. package/lib/components/Toggletip/index.js +4 -3
  500. package/lib/components/Tooltip/DefinitionTooltip.js +2 -2
  501. package/lib/components/Tooltip/Tooltip.d.ts +2 -1
  502. package/lib/components/Tooltip/Tooltip.js +5 -4
  503. package/lib/components/TreeView/TreeNode.js +8 -5
  504. package/lib/components/TreeView/TreeView.js +2 -2
  505. package/lib/components/UIShell/Content.js +2 -2
  506. package/lib/components/UIShell/Header.js +2 -2
  507. package/lib/components/UIShell/HeaderGlobalAction.js +2 -2
  508. package/lib/components/UIShell/HeaderMenu.js +3 -2
  509. package/lib/components/UIShell/HeaderMenuButton.js +2 -2
  510. package/lib/components/UIShell/HeaderMenuItem.js +2 -2
  511. package/lib/components/UIShell/HeaderName.js +2 -2
  512. package/lib/components/UIShell/HeaderNavigation.js +2 -2
  513. package/lib/components/UIShell/HeaderPanel.js +3 -3
  514. package/lib/components/UIShell/HeaderSideNavItems.js +2 -2
  515. package/lib/components/UIShell/SideNav.js +2 -2
  516. package/lib/components/UIShell/SideNavDetails.js +2 -2
  517. package/lib/components/UIShell/SideNavDivider.js +2 -2
  518. package/lib/components/UIShell/SideNavFooter.js +2 -2
  519. package/lib/components/UIShell/SideNavHeader.js +2 -2
  520. package/lib/components/UIShell/SideNavIcon.js +2 -2
  521. package/lib/components/UIShell/SideNavItem.js +2 -2
  522. package/lib/components/UIShell/SideNavItems.js +2 -2
  523. package/lib/components/UIShell/SideNavLink.js +2 -2
  524. package/lib/components/UIShell/SideNavLinkText.js +2 -2
  525. package/lib/components/UIShell/SideNavMenu.js +3 -2
  526. package/lib/components/UIShell/SideNavMenuItem.js +2 -2
  527. package/lib/components/UIShell/SideNavSwitcher.js +2 -2
  528. package/lib/components/UIShell/SkipToContent.js +2 -2
  529. package/lib/components/UIShell/Switcher.js +2 -2
  530. package/lib/components/UIShell/SwitcherDivider.js +2 -2
  531. package/lib/components/UIShell/SwitcherItem.js +2 -2
  532. package/lib/components/UnorderedList/UnorderedList.js +2 -2
  533. package/lib/feature-flags.js +1 -0
  534. package/lib/index.js +33 -32
  535. package/lib/internal/FloatingMenu.js +13 -8
  536. package/lib/internal/motion/MotionSurface.d.ts +35 -0
  537. package/lib/internal/motion/useMotionEnabled.d.ts +13 -0
  538. package/lib/internal/motion/useMotionSurface.d.ts +33 -0
  539. package/lib/internal/useId.js +1 -0
  540. package/lib/internal/useOverflowItems.js +2 -1
  541. package/lib/internal/usePresence.d.ts +8 -1
  542. package/lib/internal/usePresence.js +4 -2
  543. package/lib/internal/usePresenceContext.d.ts +12 -0
  544. package/lib/internal/usePresenceContext.js +22 -3
  545. package/lib/tools/wrapComponent.js +2 -2
  546. package/package.json +19 -13
  547. package/telemetry.yml +3 -1
@@ -5,14 +5,14 @@
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 { deprecate } from "../../prop-types/deprecate.js";
12
12
  import { hasHelperText } from "../../internal/hasHelperText.js";
13
13
  import { getTextInputProps } from "./util.js";
14
- import classNames from "classnames";
15
14
  import { forwardRef } from "react";
15
+ import cx from "classnames";
16
16
  import PropTypes from "prop-types";
17
17
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
18
  import { View, ViewOff, WarningFilled } from "@carbon/icons-react";
@@ -38,18 +38,18 @@ const ControlledPasswordInput = forwardRef(({ labelText, className, id, placehol
38
38
  placeholder,
39
39
  type,
40
40
  ref,
41
- className: classNames(`${prefix}--text-input`, `${prefix}--password-input`, className, {
41
+ className: cx(`${prefix}--text-input`, `${prefix}--password-input`, className, {
42
42
  [`${prefix}--text-input--light`]: light,
43
43
  [`${prefix}--text-input--invalid`]: invalid,
44
44
  [`${prefix}--text-input--${size}`]: size
45
45
  }),
46
46
  ...other
47
47
  };
48
- const labelClasses = classNames(`${prefix}--label`, {
48
+ const labelClasses = cx(`${prefix}--label`, {
49
49
  [`${prefix}--visually-hidden`]: hideLabel,
50
50
  [`${prefix}--label--disabled`]: disabled
51
51
  });
52
- const helperTextClasses = classNames(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: disabled });
52
+ const helperTextClasses = cx(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: disabled });
53
53
  const label = typeof labelText !== "undefined" && labelText !== null && /* @__PURE__ */ jsx("label", {
54
54
  htmlFor: id,
55
55
  className: labelClasses,
@@ -62,7 +62,7 @@ const ControlledPasswordInput = forwardRef(({ labelText, className, id, placehol
62
62
  }) : null;
63
63
  const passwordIsVisible = type === "text";
64
64
  const passwordVisibilityIcon = passwordIsVisible ? /* @__PURE__ */ jsx(ViewOff, { className: `${prefix}--icon-visibility-off` }) : /* @__PURE__ */ jsx(View, { className: `${prefix}--icon-visibility-on` });
65
- const passwordVisibilityToggleClasses = classNames(`${prefix}--text-input--password__visibility__toggle`, `${prefix}--btn`, `${prefix}--btn--icon-only`, `${prefix}--tooltip__trigger`, `${prefix}--tooltip--a11y`, {
65
+ const passwordVisibilityToggleClasses = cx(`${prefix}--text-input--password__visibility__toggle`, `${prefix}--btn`, `${prefix}--btn--icon-only`, `${prefix}--tooltip__trigger`, `${prefix}--tooltip--a11y`, {
66
66
  [`${prefix}--tooltip--${tooltipPosition}`]: tooltipPosition,
67
67
  [`${prefix}--tooltip--align-${tooltipAlignment}`]: tooltipAlignment
68
68
  });
@@ -12,8 +12,8 @@ import { hasHelperText } from "../../internal/hasHelperText.js";
12
12
  import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
13
13
  import { FormContext } from "../FluidForm/FormContext.js";
14
14
  import { getTextInputProps } from "./util.js";
15
- import classNames from "classnames";
16
15
  import { forwardRef, useContext, useEffect, 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
  import { View, ViewOff } from "@carbon/icons-react";
@@ -51,7 +51,7 @@ const PasswordInput = forwardRef(({ className, disabled = false, helperText, hid
51
51
  },
52
52
  placeholder,
53
53
  type: inputType,
54
- className: classNames(`${prefix}--text-input`, `${prefix}--password-input`, className, {
54
+ className: cx(`${prefix}--text-input`, `${prefix}--password-input`, className, {
55
55
  [`${prefix}--text-input--light`]: light,
56
56
  [`${prefix}--text-input--invalid`]: normalizedProps.invalid,
57
57
  [`${prefix}--text-input--warning`]: normalizedProps.warn,
@@ -61,29 +61,29 @@ const PasswordInput = forwardRef(({ className, disabled = false, helperText, hid
61
61
  ref,
62
62
  ...rest
63
63
  };
64
- const inputWrapperClasses = classNames(`${prefix}--form-item`, `${prefix}--text-input-wrapper`, `${prefix}--password-input-wrapper`, {
64
+ const inputWrapperClasses = cx(`${prefix}--form-item`, `${prefix}--text-input-wrapper`, `${prefix}--password-input-wrapper`, {
65
65
  [`${prefix}--text-input-wrapper--readonly`]: readOnly,
66
66
  [`${prefix}--text-input-wrapper--light`]: light,
67
67
  [`${prefix}--text-input-wrapper--inline`]: inline,
68
68
  [`${prefix}--text-input-wrapper--inline--invalid`]: inline && normalizedProps.invalid,
69
69
  [`${prefix}--text-input--fluid`]: isFluid
70
70
  });
71
- const labelClasses = classNames(`${prefix}--label`, {
71
+ const labelClasses = cx(`${prefix}--label`, {
72
72
  [`${prefix}--visually-hidden`]: hideLabel,
73
73
  [`${prefix}--label--disabled`]: disabled,
74
74
  [`${prefix}--label--inline`]: inline,
75
75
  [`${prefix}--label--inline--${size}`]: inline && !!size
76
76
  });
77
- const helperTextClasses = classNames(`${prefix}--form__helper-text`, {
77
+ const helperTextClasses = cx(`${prefix}--form__helper-text`, {
78
78
  [`${prefix}--form__helper-text--disabled`]: disabled,
79
79
  [`${prefix}--form__helper-text--inline`]: inline
80
80
  });
81
- const fieldOuterWrapperClasses = classNames(`${prefix}--text-input__field-outer-wrapper`, { [`${prefix}--text-input__field-outer-wrapper--inline`]: inline });
82
- const fieldWrapperClasses = classNames(`${prefix}--text-input__field-wrapper`, {
81
+ const fieldOuterWrapperClasses = cx(`${prefix}--text-input__field-outer-wrapper`, { [`${prefix}--text-input__field-outer-wrapper--inline`]: inline });
82
+ const fieldWrapperClasses = cx(`${prefix}--text-input__field-wrapper`, {
83
83
  [`${prefix}--text-input__field-wrapper--warning`]: normalizedProps.warn,
84
84
  [`${prefix}--layout--size-${size}`]: size
85
85
  });
86
- const iconClasses = classNames({
86
+ const iconClasses = cx({
87
87
  [`${prefix}--text-input__invalid-icon`]: normalizedProps.invalid || normalizedProps.warn,
88
88
  [`${prefix}--text-input__invalid-icon--warning`]: normalizedProps.warn
89
89
  });
@@ -99,11 +99,11 @@ const PasswordInput = forwardRef(({ className, disabled = false, helperText, hid
99
99
  });
100
100
  const passwordIsVisible = inputType === "text";
101
101
  const passwordVisibilityIcon = passwordIsVisible ? /* @__PURE__ */ jsx(ViewOff, { className: `${prefix}--icon-visibility-off` }) : /* @__PURE__ */ jsx(View, { className: `${prefix}--icon-visibility-on` });
102
- const passwordVisibilityToggleClasses = classNames(`${prefix}--text-input--password__visibility__toggle`, `${prefix}--btn`, `${prefix}--tooltip__trigger`, `${prefix}--tooltip--a11y`, {
102
+ const passwordVisibilityToggleClasses = cx(`${prefix}--text-input--password__visibility__toggle`, `${prefix}--btn`, `${prefix}--tooltip__trigger`, `${prefix}--tooltip--a11y`, {
103
103
  [`${prefix}--tooltip--${tooltipPosition}`]: tooltipPosition,
104
104
  [`${prefix}--tooltip--align-${tooltipAlignment}`]: tooltipAlignment
105
105
  });
106
- const tooltipClasses = classNames(`${prefix}--toggle-password-tooltip`, `${prefix}--icon-tooltip`);
106
+ const tooltipClasses = cx(`${prefix}--toggle-password-tooltip`, `${prefix}--icon-tooltip`);
107
107
  let align = void 0;
108
108
  if (tooltipPosition === "top" || tooltipPosition === "bottom") {
109
109
  if (tooltipAlignment === "center") align = tooltipPosition;
@@ -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/TextInput/TextInput.Skeleton.tsx
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
20
20
  const TextInputSkeleton = ({ hideLabel, className, size, ...rest }) => {
21
21
  const prefix = usePrefix();
22
22
  return /* @__PURE__ */ jsxs("div", {
23
- className: classNames(`${prefix}--form-item`, className, { [`${prefix}--layout--size-${size}`]: size }),
23
+ className: cx(`${prefix}--form-item`, className, { [`${prefix}--layout--size-${size}`]: size }),
24
24
  ...rest,
25
25
  children: [!hideLabel && /* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: `${prefix}--skeleton ${prefix}--text-input` })]
26
26
  });
@@ -45,4 +45,4 @@ TextInputSkeleton.propTypes = {
45
45
  ])
46
46
  };
47
47
  //#endregion
48
- export { TextInputSkeleton as default };
48
+ export { TextInputSkeleton, TextInputSkeleton as default };
@@ -16,8 +16,8 @@ import { AILabel } from "../AILabel/index.js";
16
16
  import { FormContext } from "../FluidForm/FormContext.js";
17
17
  import { getTextInputProps } from "./util.js";
18
18
  import { getAnnouncement } from "../../internal/getAnnouncement.js";
19
- import classNames from "classnames";
20
19
  import { cloneElement, forwardRef, 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
  //#region src/components/TextInput/TextInput.tsx
@@ -66,7 +66,7 @@ const TextInput = forwardRef(({ className, decorator, disabled = false, helperTe
66
66
  placeholder,
67
67
  type,
68
68
  ref: mergedRef,
69
- className: classNames(`${prefix}--text-input`, {
69
+ className: cx(`${prefix}--text-input`, {
70
70
  [`${prefix}--text-input--light`]: light,
71
71
  [`${prefix}--text-input--invalid`]: normalizedProps.invalid,
72
72
  [`${prefix}--text-input--warning`]: normalizedProps.warn,
@@ -80,33 +80,33 @@ const TextInput = forwardRef(({ className, decorator, disabled = false, helperTe
80
80
  ...rest
81
81
  };
82
82
  if (enableCounter) sharedTextInputProps.maxLength = maxCount;
83
- const inputWrapperClasses = classNames([classNames(`${prefix}--form-item`, className)], `${prefix}--text-input-wrapper`, {
83
+ const inputWrapperClasses = cx([cx(`${prefix}--form-item`, className)], `${prefix}--text-input-wrapper`, {
84
84
  [`${prefix}--text-input-wrapper--readonly`]: readOnly,
85
85
  [`${prefix}--text-input-wrapper--light`]: light,
86
86
  [`${prefix}--text-input-wrapper--inline`]: inline,
87
87
  [`${prefix}--text-input-wrapper--inline--invalid`]: inline && normalizedProps.invalid
88
88
  });
89
- const labelClasses = classNames(`${prefix}--label`, {
89
+ const labelClasses = cx(`${prefix}--label`, {
90
90
  [`${prefix}--visually-hidden`]: hideLabel,
91
91
  [`${prefix}--label--disabled`]: normalizedProps.disabled,
92
92
  [`${prefix}--label--inline`]: inline,
93
93
  [`${prefix}--label--inline--${size}`]: inline && !!size
94
94
  });
95
- const helperTextClasses = classNames(`${prefix}--form__helper-text`, {
95
+ const helperTextClasses = cx(`${prefix}--form__helper-text`, {
96
96
  [`${prefix}--form__helper-text--disabled`]: normalizedProps.disabled,
97
97
  [`${prefix}--form__helper-text--inline`]: inline
98
98
  });
99
- const fieldOuterWrapperClasses = classNames(`${prefix}--text-input__field-outer-wrapper`, { [`${prefix}--text-input__field-outer-wrapper--inline`]: inline });
100
- const fieldWrapperClasses = classNames(`${prefix}--text-input__field-wrapper`, {
99
+ const fieldOuterWrapperClasses = cx(`${prefix}--text-input__field-outer-wrapper`, { [`${prefix}--text-input__field-outer-wrapper--inline`]: inline });
100
+ const fieldWrapperClasses = cx(`${prefix}--text-input__field-wrapper`, {
101
101
  [`${prefix}--text-input__field-wrapper--warning`]: normalizedProps.warn,
102
102
  [`${prefix}--text-input__field-wrapper--slug`]: slug,
103
103
  [`${prefix}--text-input__field-wrapper--decorator`]: decorator
104
104
  });
105
- const iconClasses = classNames({
105
+ const iconClasses = cx({
106
106
  [`${prefix}--text-input__invalid-icon`]: normalizedProps.invalid || normalizedProps.warn,
107
107
  [`${prefix}--text-input__invalid-icon--warning`]: normalizedProps.warn
108
108
  });
109
- const counterClasses = classNames(`${prefix}--label`, {
109
+ const counterClasses = cx(`${prefix}--label`, {
110
110
  [`${prefix}--label--disabled`]: disabled,
111
111
  [`${prefix}--text-input__label-counter`]: true
112
112
  });
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import TextInput from "./TextInput.js";
9
- import "./TextInput.Skeleton.js";
9
+ import { TextInputSkeleton } from "./TextInput.Skeleton.js";
10
10
  //#region src/components/TextInput/index.ts
11
11
  /**
12
12
  * Copyright IBM Corp. 2016, 2025
@@ -16,4 +16,4 @@ import "./TextInput.Skeleton.js";
16
16
  */
17
17
  var TextInput_default = TextInput;
18
18
  //#endregion
19
- export { TextInput_default as default };
19
+ export { TextInput, TextInputSkeleton, TextInput_default as default };
@@ -8,8 +8,8 @@
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { LayerContext } from "../Layer/LayerContext.js";
10
10
  import { useMatchMedia } from "../../internal/useMatchMedia.js";
11
- import classNames from "classnames";
12
11
  import React, { cloneElement, isValidElement, useMemo } from "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/Theme/index.tsx
@@ -51,7 +51,7 @@ GlobalTheme.propTypes = {
51
51
  */
52
52
  function Theme({ as: BaseComponent = "div", className: customClassName, theme, ...rest }) {
53
53
  const prefix = usePrefix();
54
- const className = classNames(customClassName, {
54
+ const className = cx(customClassName, {
55
55
  [`${prefix}--white`]: theme === "white",
56
56
  [`${prefix}--g10`]: theme === "g10",
57
57
  [`${prefix}--g90`]: theme === "g90",
@@ -19,8 +19,8 @@ import { useFeatureFlag } from "../FeatureFlags/index.js";
19
19
  import { getInteractiveContent, getRoleContent } from "../../internal/useNoInteractiveChildren.js";
20
20
  import { AILabel } from "../AILabel/index.js";
21
21
  import { composeEventHandlers } from "../../tools/events.js";
22
- import classNames from "classnames";
23
22
  import React, { Children, cloneElement, forwardRef, useCallback, useEffect, useRef, useState } from "react";
23
+ import cx from "classnames";
24
24
  import PropTypes from "prop-types";
25
25
  import { jsx, jsxs } from "react/jsx-runtime";
26
26
  import { AiLabel, ArrowRight, Checkbox, CheckboxCheckedFilled, ChevronDown, Error } from "@carbon/icons-react";
@@ -34,7 +34,7 @@ import { AiLabel, ArrowRight, Checkbox, CheckboxCheckedFilled, ChevronDown, Erro
34
34
  const Tile = React.forwardRef(({ children, className, decorator, light = false, slug, hasRoundedCorners = false, ...rest }, ref) => {
35
35
  const prefix = usePrefix();
36
36
  return /* @__PURE__ */ jsxs("div", {
37
- className: classNames(`${prefix}--tile`, {
37
+ className: cx(`${prefix}--tile`, {
38
38
  [`${prefix}--tile--light`]: light,
39
39
  [`${prefix}--tile--slug`]: slug,
40
40
  [`${prefix}--tile--slug-rounded`]: slug && hasRoundedCorners,
@@ -86,7 +86,7 @@ Tile.propTypes = {
86
86
  };
87
87
  const ClickableTile = React.forwardRef(({ children, className, clicked = false, decorator, disabled, href, light, onClick = () => {}, onKeyDown = () => {}, renderIcon: Icon, hasRoundedCorners, slug, ...rest }, ref) => {
88
88
  const prefix = usePrefix();
89
- const classes = classNames(`${prefix}--tile`, `${prefix}--tile--clickable`, {
89
+ const classes = cx(`${prefix}--tile`, `${prefix}--tile--clickable`, {
90
90
  [`${prefix}--tile--is-clicked`]: clicked,
91
91
  [`${prefix}--tile--light`]: light,
92
92
  [`${prefix}--tile--slug`]: slug,
@@ -111,7 +111,7 @@ const ClickableTile = React.forwardRef(({ children, className, clicked = false,
111
111
  if (!Icon) Icon = ArrowRight;
112
112
  if (disabled) Icon = Error;
113
113
  }
114
- const iconClasses = classNames({
114
+ const iconClasses = cx({
115
115
  [`${prefix}--tile--icon`]: !v12DefaultIcons || v12DefaultIcons && !disabled,
116
116
  [`${prefix}--tile--disabled-icon`]: v12DefaultIcons && disabled
117
117
  });
@@ -205,7 +205,7 @@ const SelectableTile = React.forwardRef(({ children, className, decorator, disab
205
205
  useEffect(() => {
206
206
  setIsSelected(selected);
207
207
  }, [selected]);
208
- const classes = classNames(`${prefix}--tile`, `${prefix}--tile--selectable`, {
208
+ const classes = cx(`${prefix}--tile`, `${prefix}--tile--selectable`, {
209
209
  [`${prefix}--tile--is-selected`]: isSelected,
210
210
  [`${prefix}--tile--light`]: light,
211
211
  [`${prefix}--tile--disabled`]: disabled,
@@ -355,27 +355,30 @@ const ExpandableTile = forwardRef(({ tabIndex = 0, className, children, decorato
355
355
  if (matches(evt, [Enter, Space])) evt.preventDefault();
356
356
  }
357
357
  };
358
- const classNames$1 = classNames(`${prefix}--tile`, `${prefix}--tile--expandable`, {
358
+ const classNames = cx(`${prefix}--tile`, `${prefix}--tile--expandable`, {
359
359
  [`${prefix}--tile--is-expanded`]: isExpanded,
360
360
  [`${prefix}--tile--light`]: light
361
361
  }, className);
362
- const interactiveClassNames = classNames(classNames$1, `${prefix}--tile--expandable--interactive`, {
362
+ const interactiveClassNames = cx(classNames, `${prefix}--tile--expandable--interactive`, {
363
363
  [`${prefix}--tile--slug`]: slug,
364
364
  [`${prefix}--tile--slug-rounded`]: slug && hasRoundedCorners,
365
365
  [`${prefix}--tile--decorator`]: decorator,
366
366
  [`${prefix}--tile--decorator-rounded`]: decorator && hasRoundedCorners
367
367
  });
368
- const chevronInteractiveClassNames = classNames(`${prefix}--tile__chevron`, `${prefix}--tile__chevron--interactive`);
368
+ const chevronInteractiveClassNames = cx(`${prefix}--tile__chevron`, `${prefix}--tile__chevron--interactive`);
369
369
  const childrenAsArray = Children.toArray(children);
370
370
  useIsomorphicEffect(() => {
371
371
  if (!tile.current || !aboveTheFold.current) return;
372
372
  const style = window.getComputedStyle(tile.current);
373
- setMeasuredPadding((parseInt(style.getPropertyValue("padding-top"), 10) || 0) + (parseInt(style.getPropertyValue("padding-bottom"), 10) || 0));
373
+ const paddingTop = parseInt(style.getPropertyValue("padding-top"), 10) || 0;
374
+ const paddingBottom = parseInt(style.getPropertyValue("padding-bottom"), 10) || 0;
375
+ setMeasuredPadding(paddingTop + paddingBottom);
374
376
  setMeasuredAboveHeight(aboveTheFold.current.scrollHeight);
375
377
  }, []);
376
378
  useIsomorphicEffect(() => {
377
379
  if (!aboveTheFold.current || !belowTheFold.current) return;
378
- setInteractive(Boolean(getInteractiveContent(aboveTheFold.current)) || Boolean(getRoleContent(aboveTheFold.current)) || Boolean(getInteractiveContent(belowTheFold.current)) || Boolean(getRoleContent(belowTheFold.current)) || Boolean(slug || decorator));
380
+ const hasInteractive = Boolean(getInteractiveContent(aboveTheFold.current)) || Boolean(getRoleContent(aboveTheFold.current)) || Boolean(getInteractiveContent(belowTheFold.current)) || Boolean(getRoleContent(belowTheFold.current)) || Boolean(slug || decorator);
381
+ setInteractive(hasInteractive);
379
382
  }, [
380
383
  slug,
381
384
  decorator,
@@ -447,7 +450,7 @@ const ExpandableTile = forwardRef(({ tabIndex = 0, className, children, decorato
447
450
  }) : /* @__PURE__ */ jsx("button", {
448
451
  type: "button",
449
452
  ref,
450
- className: classNames$1,
453
+ className: classNames,
451
454
  "aria-controls": belowTheFoldId,
452
455
  "aria-expanded": isExpanded,
453
456
  title: isExpanded ? tileExpandedIconText : tileCollapsedIconText,
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { usePrefix } from "../../internal/usePrefix.js";
9
8
  import { noopFn } from "../../internal/noopFn.js";
9
+ import { usePrefix } from "../../internal/usePrefix.js";
10
10
  import { isComponentElement } from "../../internal/utils.js";
11
11
  import RadioTile_default from "../RadioTile/index.js";
12
12
  import { Children, cloneElement, createElement, isValidElement, useEffect, useState } from "react";
@@ -8,8 +8,8 @@
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { deprecate } from "../../prop-types/deprecate.js";
10
10
  import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
11
- import classNames from "classnames";
12
11
  import React, { forwardRef } from "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/TimePicker/TimePicker.tsx
@@ -40,11 +40,11 @@ const TimePicker = forwardRef((props, ref) => {
40
40
  warn: warning,
41
41
  warnText: warningText
42
42
  });
43
- const timePickerInputClasses = classNames(`${prefix}--time-picker__input-field`, `${prefix}--text-input`, [inputClassName], {
43
+ const timePickerInputClasses = cx(`${prefix}--time-picker__input-field`, `${prefix}--text-input`, [inputClassName], {
44
44
  [`${prefix}--text-input--light`]: light,
45
45
  [`${prefix}--time-picker__input-field-error`]: normalizedProps.invalid || normalizedProps.warn
46
46
  });
47
- const timePickerClasses = classNames({
47
+ const timePickerClasses = cx({
48
48
  [`${prefix}--time-picker`]: true,
49
49
  [`${prefix}--time-picker--light`]: light,
50
50
  [`${prefix}--time-picker--invalid`]: normalizedProps.invalid,
@@ -53,7 +53,7 @@ const TimePicker = forwardRef((props, ref) => {
53
53
  [`${prefix}--time-picker--${size}`]: size,
54
54
  ...pickerClassName && { [pickerClassName]: true }
55
55
  });
56
- const labelClasses = classNames(`${prefix}--label`, {
56
+ const labelClasses = cx(`${prefix}--label`, {
57
57
  [`${prefix}--visually-hidden`]: hideLabel,
58
58
  [`${prefix}--label--disabled`]: disabled
59
59
  });
@@ -91,7 +91,7 @@ const TimePicker = forwardRef((props, ref) => {
91
91
  const readOnlyProps = { readOnly };
92
92
  const describedBy = [normalizedProps.invalid ? normalizedProps.invalidId : normalizedProps.warn ? normalizedProps.warnId : null, ariaDescribedBy].filter(Boolean).join(" ") || void 0;
93
93
  return /* @__PURE__ */ jsxs("div", {
94
- className: classNames(`${prefix}--form-item`, className),
94
+ className: cx(`${prefix}--form-item`, className),
95
95
  children: [
96
96
  label,
97
97
  /* @__PURE__ */ jsxs("div", {
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
- import classNames from "classnames";
10
9
  import { forwardRef } from "react";
10
+ import cx from "classnames";
11
11
  import PropTypes from "prop-types";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  import { ChevronDown } from "@carbon/icons-react";
@@ -22,7 +22,7 @@ const TimePickerSelect = forwardRef((props, ref) => {
22
22
  const { ["aria-label"]: ariaLabel = "open list of options", children, id, disabled = false, className, ...rest } = props;
23
23
  const prefix = usePrefix();
24
24
  return /* @__PURE__ */ jsxs("div", {
25
- className: classNames({
25
+ className: cx({
26
26
  [`${prefix}--select`]: true,
27
27
  [`${prefix}--time-picker__select`]: true,
28
28
  ...className && { [className]: true }
@@ -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/Toggle/Toggle.Skeleton.tsx
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
20
20
  const ToggleSkeleton = ({ className, ...rest }) => {
21
21
  const prefix = usePrefix();
22
22
  return /* @__PURE__ */ jsxs("div", {
23
- className: classNames(`${prefix}--toggle ${prefix}--toggle--skeleton`, className),
23
+ className: cx(`${prefix}--toggle ${prefix}--toggle--skeleton`, className),
24
24
  ...rest,
25
25
  children: [/* @__PURE__ */ jsx("div", { className: `${prefix}--toggle__skeleton-circle` }), /* @__PURE__ */ jsx("div", { className: `${prefix}--toggle__skeleton-rectangle` })]
26
26
  });
@@ -30,4 +30,4 @@ ToggleSkeleton.propTypes = {
30
30
  className: PropTypes.string
31
31
  };
32
32
  //#endregion
33
- export { ToggleSkeleton as default };
33
+ export { ToggleSkeleton, ToggleSkeleton as default };
@@ -8,8 +8,8 @@
8
8
  import { usePrefix } from "../../internal/usePrefix.js";
9
9
  import { Text } from "../Text/Text.js";
10
10
  import { useControllableState } from "../../internal/useControllableState.js";
11
- import classNames from "classnames";
12
11
  import { useRef } from "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/Toggle/Toggle.tsx
@@ -35,13 +35,13 @@ function Toggle({ "aria-labelledby": ariaLabelledby, className, defaultToggled =
35
35
  const sideLabel = hideLabel ? labelText : checked ? labelB : labelA;
36
36
  const renderSideLabel = !(hideLabel && !labelText);
37
37
  const LabelComponent = labelText ? "label" : "div";
38
- const wrapperClasses = classNames(`${prefix}--toggle`, {
38
+ const wrapperClasses = cx(`${prefix}--toggle`, {
39
39
  [`${prefix}--toggle--disabled`]: disabled,
40
40
  [`${prefix}--toggle--readonly`]: readOnly
41
41
  }, className);
42
- const labelTextClasses = classNames(`${prefix}--toggle__label-text`, { [`${prefix}--visually-hidden`]: hideLabel });
43
- const appearanceClasses = classNames(`${prefix}--toggle__appearance`, { [`${prefix}--toggle__appearance--sm`]: isSm });
44
- const switchClasses = classNames(`${prefix}--toggle__switch`, { [`${prefix}--toggle__switch--checked`]: checked });
42
+ const labelTextClasses = cx(`${prefix}--toggle__label-text`, { [`${prefix}--visually-hidden`]: hideLabel });
43
+ const appearanceClasses = cx(`${prefix}--toggle__appearance`, { [`${prefix}--toggle__appearance--sm`]: isSm });
44
+ const switchClasses = cx(`${prefix}--toggle__switch`, { [`${prefix}--toggle__switch--checked`]: checked });
45
45
  const labelId = `${id}_label`;
46
46
  return /* @__PURE__ */ jsxs("div", {
47
47
  className: wrapperClasses,
@@ -154,4 +154,4 @@ Toggle.propTypes = {
154
154
  toggled: PropTypes.bool
155
155
  };
156
156
  //#endregion
157
- export { Toggle as default };
157
+ export { Toggle, Toggle as default };
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import { PrefixContext } from "../../internal/usePrefix.js";
9
- import classNames from "classnames";
10
9
  import { useContext } from "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/ToggleSmall/ToggleSmall.Skeleton.tsx
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
20
20
  const ToggleSmallSkeleton = ({ id, labelText, className, ...rest }) => {
21
21
  const prefix = useContext(PrefixContext);
22
22
  return /* @__PURE__ */ jsxs("div", {
23
- className: classNames(`${prefix}--form-item`, className),
23
+ className: cx(`${prefix}--form-item`, className),
24
24
  ...rest,
25
25
  children: [/* @__PURE__ */ jsx("input", {
26
26
  type: "checkbox",
@@ -11,8 +11,8 @@ import { match } from "../../internal/keyboard/match.js";
11
11
  import { useId } from "../../internal/useId.js";
12
12
  import { useWindowEvent } from "../../internal/useEvent.js";
13
13
  import { Popover, PopoverContent } from "../Popover/index.js";
14
- import classNames from "classnames";
15
14
  import React, { forwardRef, useContext, useEffect, useRef, useState } from "react";
15
+ import cx from "classnames";
16
16
  import PropTypes from "prop-types";
17
17
  import { jsx } from "react/jsx-runtime";
18
18
  //#region src/components/Toggletip/index.tsx
@@ -27,7 +27,7 @@ import { jsx } from "react/jsx-runtime";
27
27
  */
28
28
  function ToggletipLabel({ as: BaseComponent = "span", children, className: customClassName, ...rest }) {
29
29
  return /* @__PURE__ */ jsx(BaseComponent, {
30
- className: classNames(`${usePrefix()}--toggletip-label`, customClassName),
30
+ className: cx(`${usePrefix()}--toggletip-label`, customClassName),
31
31
  ...rest,
32
32
  children
33
33
  });
@@ -62,7 +62,7 @@ function Toggletip({ align, as, autoAlign, className: customClassName, children,
62
62
  const [open, setOpen] = useState(defaultOpen);
63
63
  const prefix = usePrefix();
64
64
  const id = useId();
65
- const className = classNames(`${prefix}--toggletip`, customClassName, {
65
+ const className = cx(`${prefix}--toggletip`, customClassName, {
66
66
  [`${prefix}--toggletip--open`]: open,
67
67
  [`${prefix}--autoalign`]: autoAlign
68
68
  });
@@ -148,7 +148,7 @@ Toggletip.propTypes = {
148
148
  */
149
149
  const ToggletipButton = forwardRef(function ToggletipButton({ children, className: customClassName, label = "Show information", as: BaseComponent, ...rest }, ref) {
150
150
  const toggletip = useToggletip();
151
- const className = classNames(`${usePrefix()}--toggletip-button`, customClassName);
151
+ const className = cx(`${usePrefix()}--toggletip-button`, customClassName);
152
152
  const ComponentToggle = BaseComponent ?? "button";
153
153
  if (ComponentToggle !== "button") return /* @__PURE__ */ jsx(ComponentToggle, {
154
154
  ...toggletip?.onClick,
@@ -219,7 +219,7 @@ ToggletipContent.displayName = "ToggletipContent";
219
219
  */
220
220
  function ToggletipActions({ children, className: customClassName }) {
221
221
  return /* @__PURE__ */ jsx("div", {
222
- className: classNames(`${usePrefix()}--toggletip-actions`, customClassName),
222
+ className: cx(`${usePrefix()}--toggletip-actions`, customClassName),
223
223
  children
224
224
  });
225
225
  }
@@ -235,4 +235,4 @@ ToggletipActions.propTypes = {
235
235
  className: PropTypes.string
236
236
  };
237
237
  //#endregion
238
- export { ToggletipActions, ToggletipButton, ToggletipContent, ToggletipLabel, Toggletip as default };
238
+ export { Toggletip, Toggletip as default, ToggletipActions, ToggletipButton, ToggletipContent, ToggletipLabel };
@@ -11,8 +11,8 @@ import { match } from "../../internal/keyboard/match.js";
11
11
  import { useFallbackId } from "../../internal/useId.js";
12
12
  import { deprecate } from "../../prop-types/deprecate.js";
13
13
  import { Popover, PopoverContent } from "../Popover/index.js";
14
- import classNames from "classnames";
15
14
  import { useState } from "react";
15
+ import cx from "classnames";
16
16
  import PropTypes from "prop-types";
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
18
18
  //#region src/components/Tooltip/DefinitionTooltip.tsx
@@ -53,7 +53,7 @@ const DefinitionTooltip = ({ align = "bottom", autoAlign, className, children, d
53
53
  open: isOpen,
54
54
  children: [/* @__PURE__ */ jsx("button", {
55
55
  ...rest,
56
- className: classNames(`${prefix}--definition-term`, triggerClassName),
56
+ className: cx(`${prefix}--definition-term`, triggerClassName),
57
57
  "aria-controls": tooltipId,
58
58
  "aria-describedby": tooltipId,
59
59
  "aria-expanded": isOpen,
@@ -21,7 +21,8 @@ interface TooltipBaseProps {
21
21
  */
22
22
  className?: string;
23
23
  /**
24
- * Determines whether the tooltip should close when inner content is activated (click, Enter or Space)
24
+ * Controls whether the tooltip closes when the trigger is activated with
25
+ * click, Enter, or Space.
25
26
  */
26
27
  closeOnActivation?: boolean;
27
28
  /**
@@ -13,8 +13,8 @@ import { useId } from "../../internal/useId.js";
13
13
  import { Popover, PopoverContent } from "../Popover/index.js";
14
14
  import { useDelayedState } from "../../internal/useDelayedState.js";
15
15
  import { useNoInteractiveChildren } from "../../internal/useNoInteractiveChildren.js";
16
- import classNames from "classnames";
17
16
  import React, { useCallback, useEffect, useRef, useState } from "react";
17
+ import cx from "classnames";
18
18
  import PropTypes from "prop-types";
19
19
  import { jsx, jsxs } from "react/jsx-runtime";
20
20
  //#region src/components/Tooltip/Tooltip.tsx
@@ -27,7 +27,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
27
27
  /**
28
28
  * Event types that trigger a "drag" to stop.
29
29
  */
30
- const DRAG_STOP_EVENT_TYPES = new Set([
30
+ const DRAG_STOP_EVENT_TYPES = /* @__PURE__ */ new Set([
31
31
  "mouseup",
32
32
  "touchend",
33
33
  "touchcancel"
@@ -136,7 +136,7 @@ const Tooltip = React.forwardRef(({ as, align = "top", className: customClassNam
136
136
  ref,
137
137
  ...rest,
138
138
  align,
139
- className: classNames(`${prefix}--tooltip`, customClassName),
139
+ className: cx(`${prefix}--tooltip`, customClassName),
140
140
  dropShadow,
141
141
  highContrast,
142
142
  onKeyDown,
@@ -193,7 +193,8 @@ Tooltip.propTypes = {
193
193
  */
194
194
  className: PropTypes.string,
195
195
  /**
196
- * Determines wether the tooltip should close when inner content is activated (click, Enter or Space)
196
+ * Controls whether the tooltip closes when the trigger is activated with
197
+ * click, Enter, or Space.
197
198
  */
198
199
  closeOnActivation: PropTypes.bool,
199
200
  /**