@carbon/react 1.92.1 → 1.93.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 (306) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +874 -838
  2. package/es/components/AILabel/index.js +4 -4
  3. package/es/components/Breadcrumb/BreadcrumbItem.js +1 -1
  4. package/es/components/Button/Button.js +2 -2
  5. package/es/components/ChatButton/ChatButton.js +1 -1
  6. package/es/components/Checkbox/Checkbox.js +1 -1
  7. package/es/components/CheckboxGroup/CheckboxGroup.js +1 -1
  8. package/es/components/CodeSnippet/CodeSnippet.js +9 -50
  9. package/es/components/ComboBox/ComboBox.d.ts +3 -11
  10. package/es/components/ComboBox/ComboBox.js +15 -25
  11. package/es/components/ComboButton/index.d.ts +5 -8
  12. package/es/components/ComboButton/index.js +9 -12
  13. package/es/components/ComposedModal/ComposedModal.js +19 -25
  14. package/es/components/DataTable/DataTable.d.ts +27 -16
  15. package/es/components/DataTable/DataTable.js +40 -39
  16. package/es/components/DataTable/Table.js +2 -2
  17. package/es/components/DataTable/TableBatchActions.d.ts +49 -10
  18. package/es/components/DataTable/TableBatchActions.js +26 -21
  19. package/es/components/DataTable/TableExpandHeader.js +2 -2
  20. package/es/components/DataTable/TableExpandRow.d.ts +4 -0
  21. package/es/components/DataTable/TableExpandRow.js +1 -1
  22. package/es/components/DataTable/TableHeader.d.ts +8 -10
  23. package/es/components/DataTable/TableHeader.js +11 -13
  24. package/es/components/DataTable/TableRow.js +7 -5
  25. package/es/components/DataTable/TableSlugRow.js +1 -1
  26. package/es/components/DataTable/TableToolbarMenu.js +1 -1
  27. package/es/components/DataTable/TableToolbarSearch.d.ts +8 -7
  28. package/es/components/DataTable/TableToolbarSearch.js +11 -11
  29. package/es/components/DataTable/index.d.ts +2 -2
  30. package/es/components/DataTable/state/sorting.d.ts +2 -2
  31. package/es/components/DataTable/state/sorting.js +1 -1
  32. package/es/components/DataTable/tools/sorting.js +1 -1
  33. package/es/components/DatePicker/DatePicker.js +9 -9
  34. package/es/components/DatePickerInput/DatePickerInput.js +5 -5
  35. package/es/components/Dialog/Dialog.js +6 -6
  36. package/es/components/Dropdown/Dropdown.d.ts +1 -1
  37. package/es/components/Dropdown/Dropdown.js +8 -8
  38. package/es/components/ErrorBoundary/ErrorBoundaryContext.js +1 -1
  39. package/es/components/FileUploader/FileUploader.js +4 -4
  40. package/es/components/FileUploader/FileUploaderButton.js +1 -1
  41. package/es/components/FileUploader/FileUploaderDropContainer.js +1 -1
  42. package/es/components/FileUploader/FileUploaderItem.js +2 -2
  43. package/es/components/FluidComboBox/FluidComboBox.d.ts +4 -7
  44. package/es/components/FluidComboBox/FluidComboBox.js +1 -1
  45. package/es/components/FluidDropdown/FluidDropdown.d.ts +4 -8
  46. package/es/components/FluidDropdown/FluidDropdown.js +1 -1
  47. package/es/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +3 -7
  48. package/es/components/FluidMultiSelect/FluidMultiSelect.d.ts +3 -7
  49. package/es/components/FluidMultiSelect/FluidMultiSelect.js +3 -3
  50. package/es/components/FluidNumberInput/FluidNumberInput.d.ts +4 -7
  51. package/es/components/FluidNumberInput/FluidNumberInput.js +2 -2
  52. package/es/components/FluidSearch/FluidSearch.js +1 -1
  53. package/es/components/FluidSelect/FluidSelect.js +1 -1
  54. package/es/components/FluidTextInput/FluidTextInput.js +1 -1
  55. package/es/components/FluidTimePicker/FluidTimePicker.js +3 -3
  56. package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +1 -1
  57. package/es/components/Grid/CSSGrid.js +3 -3
  58. package/es/components/Grid/Column.js +2 -2
  59. package/es/components/Grid/ColumnHang.js +1 -1
  60. package/es/components/Grid/FlexGrid.js +1 -1
  61. package/es/components/Grid/Row.js +1 -1
  62. package/es/components/Heading/index.js +2 -2
  63. package/es/components/IconButton/index.js +2 -2
  64. package/es/components/IconIndicator/index.js +2 -2
  65. package/es/components/InlineCheckbox/InlineCheckbox.js +1 -1
  66. package/es/components/Layout/index.js +2 -2
  67. package/es/components/LayoutDirection/LayoutDirection.js +1 -1
  68. package/es/components/Link/Link.js +2 -2
  69. package/es/components/ListBox/ListBoxField.d.ts +0 -1
  70. package/es/components/ListBox/ListBoxMenuIcon.d.ts +8 -4
  71. package/es/components/ListBox/ListBoxMenuIcon.js +10 -6
  72. package/es/components/ListBox/ListBoxMenuItem.js +2 -2
  73. package/es/components/ListBox/ListBoxSelection.d.ts +3 -6
  74. package/es/components/ListBox/ListBoxSelection.js +5 -10
  75. package/es/components/ListBox/index.d.ts +5 -3
  76. package/es/components/ListBox/next/ListBoxSelection.d.ts +6 -13
  77. package/es/components/ListBox/next/ListBoxSelection.js +16 -8
  78. package/es/components/ListBox/next/ListBoxTrigger.d.ts +5 -10
  79. package/es/components/ListBox/next/ListBoxTrigger.js +6 -6
  80. package/es/components/Menu/MenuContext.js +1 -1
  81. package/es/components/Menu/MenuItem.js +1 -1
  82. package/es/components/MenuButton/index.js +5 -5
  83. package/es/components/Modal/Modal.js +17 -23
  84. package/es/components/ModalWrapper/ModalWrapper.js +2 -2
  85. package/es/components/MultiSelect/FilterableMultiSelect.d.ts +3 -12
  86. package/es/components/MultiSelect/FilterableMultiSelect.js +18 -27
  87. package/es/components/MultiSelect/MultiSelect.d.ts +2 -2
  88. package/es/components/MultiSelect/MultiSelect.js +12 -12
  89. package/es/components/Notification/Notification.js +1 -1
  90. package/es/components/NumberInput/NumberInput.d.ts +2 -5
  91. package/es/components/NumberInput/NumberInput.js +13 -18
  92. package/es/components/OverflowMenu/OverflowMenu.d.ts +2 -2
  93. package/es/components/OverflowMenu/OverflowMenu.js +4 -4
  94. package/es/components/OverflowMenu/next/index.d.ts +1 -1
  95. package/es/components/OverflowMenu/next/index.js +2 -2
  96. package/es/components/OverflowMenuItem/OverflowMenuItem.js +2 -2
  97. package/es/components/PageHeader/PageHeader.js +12 -12
  98. package/es/components/Pagination/Pagination.js +3 -3
  99. package/es/components/PaginationNav/PaginationNav.d.ts +6 -9
  100. package/es/components/PaginationNav/PaginationNav.js +21 -22
  101. package/es/components/Popover/index.js +10 -9
  102. package/es/components/ProgressBar/ProgressBar.js +2 -2
  103. package/es/components/ProgressIndicator/ProgressIndicator.d.ts +11 -15
  104. package/es/components/ProgressIndicator/ProgressIndicator.js +15 -15
  105. package/es/components/RadioButton/RadioButton.js +1 -1
  106. package/es/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  107. package/es/components/RadioTile/RadioTile.js +1 -1
  108. package/es/components/Select/Select.js +7 -5
  109. package/es/components/ShapeIndicator/index.js +2 -2
  110. package/es/components/Slider/Slider.d.ts +7 -9
  111. package/es/components/Slider/Slider.js +16 -20
  112. package/es/components/Stack/HStack.js +1 -1
  113. package/es/components/Stack/Stack.js +1 -1
  114. package/es/components/Stack/VStack.js +1 -1
  115. package/es/components/StructuredList/StructuredList.js +3 -3
  116. package/es/components/Tabs/Tabs.js +12 -12
  117. package/es/components/Tag/DismissibleTag.js +3 -3
  118. package/es/components/Tag/OperationalTag.js +2 -2
  119. package/es/components/Tag/SelectableTag.js +2 -2
  120. package/es/components/Tag/Tag.js +4 -4
  121. package/es/components/Tag/isEllipsisActive.js +1 -1
  122. package/es/components/Text/Text.js +1 -1
  123. package/es/components/TextArea/TextArea.js +1 -1
  124. package/es/components/TextInput/PasswordInput.js +4 -4
  125. package/es/components/TextInput/TextInput.js +3 -3
  126. package/es/components/Theme/index.js +3 -3
  127. package/es/components/Tile/Tile.js +3 -3
  128. package/es/components/TimePicker/TimePicker.js +1 -1
  129. package/es/components/Toggletip/index.js +4 -4
  130. package/es/components/Tooltip/DefinitionTooltip.js +1 -1
  131. package/es/components/Tooltip/Tooltip.js +3 -3
  132. package/es/components/TreeView/TreeNode.js +6 -6
  133. package/es/components/TreeView/TreeView.js +5 -5
  134. package/es/components/UIShell/HeaderContainer.js +1 -1
  135. package/es/components/UIShell/HeaderMenu.js +1 -1
  136. package/es/components/UIShell/Link.js +2 -2
  137. package/es/components/UIShell/SideNavItems.js +1 -1
  138. package/es/components/UIShell/Switcher.js +1 -1
  139. package/es/components/UIShell/SwitcherItem.js +1 -1
  140. package/es/index.d.ts +1 -1
  141. package/es/internal/FloatingMenu.js +4 -4
  142. package/es/internal/Selection.js +6 -6
  143. package/es/internal/useMergedRefs.js +1 -1
  144. package/es/internal/useNoInteractiveChildren.js +4 -4
  145. package/es/internal/useOutsideClick.js +1 -1
  146. package/es/internal/useOverflowItems.js +6 -6
  147. package/es/internal/useResizeObserver.js +3 -3
  148. package/es/internal/useSavedCallback.js +1 -1
  149. package/es/internal/warning.js +1 -1
  150. package/es/prop-types/isRequiredOneOf.js +2 -2
  151. package/es/tools/events.js +1 -1
  152. package/es/tools/wrapComponent.js +1 -1
  153. package/es/types/common.d.ts +6 -2
  154. package/lib/components/AILabel/index.js +4 -4
  155. package/lib/components/Breadcrumb/BreadcrumbItem.js +1 -1
  156. package/lib/components/Button/Button.js +2 -2
  157. package/lib/components/ChatButton/ChatButton.js +1 -1
  158. package/lib/components/Checkbox/Checkbox.js +1 -1
  159. package/lib/components/CheckboxGroup/CheckboxGroup.js +1 -1
  160. package/lib/components/CodeSnippet/CodeSnippet.js +8 -49
  161. package/lib/components/ComboBox/ComboBox.d.ts +3 -11
  162. package/lib/components/ComboBox/ComboBox.js +15 -25
  163. package/lib/components/ComboButton/index.d.ts +5 -8
  164. package/lib/components/ComboButton/index.js +9 -12
  165. package/lib/components/ComposedModal/ComposedModal.js +18 -24
  166. package/lib/components/DataTable/DataTable.d.ts +27 -16
  167. package/lib/components/DataTable/DataTable.js +40 -39
  168. package/lib/components/DataTable/Table.js +2 -2
  169. package/lib/components/DataTable/TableBatchActions.d.ts +49 -10
  170. package/lib/components/DataTable/TableBatchActions.js +26 -21
  171. package/lib/components/DataTable/TableExpandHeader.js +2 -2
  172. package/lib/components/DataTable/TableExpandRow.d.ts +4 -0
  173. package/lib/components/DataTable/TableExpandRow.js +1 -1
  174. package/lib/components/DataTable/TableHeader.d.ts +8 -10
  175. package/lib/components/DataTable/TableHeader.js +11 -13
  176. package/lib/components/DataTable/TableRow.js +7 -5
  177. package/lib/components/DataTable/TableSlugRow.js +1 -1
  178. package/lib/components/DataTable/TableToolbarMenu.js +1 -1
  179. package/lib/components/DataTable/TableToolbarSearch.d.ts +8 -7
  180. package/lib/components/DataTable/TableToolbarSearch.js +11 -11
  181. package/lib/components/DataTable/index.d.ts +2 -2
  182. package/lib/components/DataTable/state/sorting.d.ts +2 -2
  183. package/lib/components/DataTable/state/sorting.js +1 -1
  184. package/lib/components/DataTable/tools/sorting.js +1 -1
  185. package/lib/components/DatePicker/DatePicker.js +9 -9
  186. package/lib/components/DatePickerInput/DatePickerInput.js +5 -5
  187. package/lib/components/Dialog/Dialog.js +6 -6
  188. package/lib/components/Dropdown/Dropdown.d.ts +1 -1
  189. package/lib/components/Dropdown/Dropdown.js +8 -8
  190. package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +1 -1
  191. package/lib/components/FileUploader/FileUploader.js +4 -4
  192. package/lib/components/FileUploader/FileUploaderButton.js +1 -1
  193. package/lib/components/FileUploader/FileUploaderDropContainer.js +1 -1
  194. package/lib/components/FileUploader/FileUploaderItem.js +2 -2
  195. package/lib/components/FluidComboBox/FluidComboBox.d.ts +4 -7
  196. package/lib/components/FluidComboBox/FluidComboBox.js +1 -1
  197. package/lib/components/FluidDropdown/FluidDropdown.d.ts +4 -8
  198. package/lib/components/FluidDropdown/FluidDropdown.js +1 -1
  199. package/lib/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +3 -7
  200. package/lib/components/FluidMultiSelect/FluidMultiSelect.d.ts +3 -7
  201. package/lib/components/FluidMultiSelect/FluidMultiSelect.js +3 -3
  202. package/lib/components/FluidNumberInput/FluidNumberInput.d.ts +4 -7
  203. package/lib/components/FluidNumberInput/FluidNumberInput.js +2 -2
  204. package/lib/components/FluidSearch/FluidSearch.js +1 -1
  205. package/lib/components/FluidSelect/FluidSelect.js +1 -1
  206. package/lib/components/FluidTextInput/FluidTextInput.js +1 -1
  207. package/lib/components/FluidTimePicker/FluidTimePicker.js +3 -3
  208. package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +1 -1
  209. package/lib/components/Grid/CSSGrid.js +3 -3
  210. package/lib/components/Grid/Column.js +2 -2
  211. package/lib/components/Grid/ColumnHang.js +1 -1
  212. package/lib/components/Grid/FlexGrid.js +1 -1
  213. package/lib/components/Grid/Row.js +1 -1
  214. package/lib/components/Heading/index.js +2 -2
  215. package/lib/components/IconButton/index.js +2 -2
  216. package/lib/components/IconIndicator/index.js +2 -2
  217. package/lib/components/InlineCheckbox/InlineCheckbox.js +1 -1
  218. package/lib/components/Layout/index.js +2 -2
  219. package/lib/components/LayoutDirection/LayoutDirection.js +1 -1
  220. package/lib/components/Link/Link.js +2 -2
  221. package/lib/components/ListBox/ListBoxField.d.ts +0 -1
  222. package/lib/components/ListBox/ListBoxMenuIcon.d.ts +8 -4
  223. package/lib/components/ListBox/ListBoxMenuIcon.js +10 -6
  224. package/lib/components/ListBox/ListBoxMenuItem.js +2 -2
  225. package/lib/components/ListBox/ListBoxSelection.d.ts +3 -6
  226. package/lib/components/ListBox/ListBoxSelection.js +4 -10
  227. package/lib/components/ListBox/index.d.ts +5 -3
  228. package/lib/components/ListBox/next/ListBoxSelection.d.ts +6 -13
  229. package/lib/components/ListBox/next/ListBoxSelection.js +16 -8
  230. package/lib/components/ListBox/next/ListBoxTrigger.d.ts +5 -10
  231. package/lib/components/ListBox/next/ListBoxTrigger.js +5 -6
  232. package/lib/components/Menu/MenuContext.js +1 -1
  233. package/lib/components/Menu/MenuItem.js +1 -1
  234. package/lib/components/MenuButton/index.js +5 -5
  235. package/lib/components/Modal/Modal.js +16 -22
  236. package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
  237. package/lib/components/MultiSelect/FilterableMultiSelect.d.ts +3 -12
  238. package/lib/components/MultiSelect/FilterableMultiSelect.js +18 -27
  239. package/lib/components/MultiSelect/MultiSelect.d.ts +2 -2
  240. package/lib/components/MultiSelect/MultiSelect.js +12 -12
  241. package/lib/components/Notification/Notification.js +1 -1
  242. package/lib/components/NumberInput/NumberInput.d.ts +2 -5
  243. package/lib/components/NumberInput/NumberInput.js +12 -18
  244. package/lib/components/OverflowMenu/OverflowMenu.d.ts +2 -2
  245. package/lib/components/OverflowMenu/OverflowMenu.js +4 -4
  246. package/lib/components/OverflowMenu/next/index.d.ts +1 -1
  247. package/lib/components/OverflowMenu/next/index.js +2 -2
  248. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +2 -2
  249. package/lib/components/PageHeader/PageHeader.js +12 -12
  250. package/lib/components/Pagination/Pagination.js +3 -3
  251. package/lib/components/PaginationNav/PaginationNav.d.ts +6 -9
  252. package/lib/components/PaginationNav/PaginationNav.js +21 -22
  253. package/lib/components/Popover/index.js +10 -9
  254. package/lib/components/ProgressBar/ProgressBar.js +2 -2
  255. package/lib/components/ProgressIndicator/ProgressIndicator.d.ts +11 -15
  256. package/lib/components/ProgressIndicator/ProgressIndicator.js +15 -15
  257. package/lib/components/RadioButton/RadioButton.js +1 -1
  258. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  259. package/lib/components/RadioTile/RadioTile.js +1 -1
  260. package/lib/components/Select/Select.js +7 -5
  261. package/lib/components/ShapeIndicator/index.js +2 -2
  262. package/lib/components/Slider/Slider.d.ts +7 -9
  263. package/lib/components/Slider/Slider.js +16 -20
  264. package/lib/components/Stack/HStack.js +1 -1
  265. package/lib/components/Stack/Stack.js +1 -1
  266. package/lib/components/Stack/VStack.js +1 -1
  267. package/lib/components/StructuredList/StructuredList.js +3 -3
  268. package/lib/components/Tabs/Tabs.js +12 -12
  269. package/lib/components/Tag/DismissibleTag.js +3 -3
  270. package/lib/components/Tag/OperationalTag.js +2 -2
  271. package/lib/components/Tag/SelectableTag.js +2 -2
  272. package/lib/components/Tag/Tag.js +4 -4
  273. package/lib/components/Tag/isEllipsisActive.js +1 -1
  274. package/lib/components/Text/Text.js +1 -1
  275. package/lib/components/TextArea/TextArea.js +1 -1
  276. package/lib/components/TextInput/PasswordInput.js +4 -4
  277. package/lib/components/TextInput/TextInput.js +3 -3
  278. package/lib/components/Theme/index.js +3 -3
  279. package/lib/components/Tile/Tile.js +3 -3
  280. package/lib/components/TimePicker/TimePicker.js +1 -1
  281. package/lib/components/Toggletip/index.js +4 -4
  282. package/lib/components/Tooltip/DefinitionTooltip.js +1 -1
  283. package/lib/components/Tooltip/Tooltip.js +3 -3
  284. package/lib/components/TreeView/TreeNode.js +6 -6
  285. package/lib/components/TreeView/TreeView.js +5 -5
  286. package/lib/components/UIShell/HeaderContainer.js +1 -1
  287. package/lib/components/UIShell/HeaderMenu.js +1 -1
  288. package/lib/components/UIShell/Link.js +2 -2
  289. package/lib/components/UIShell/SideNavItems.js +1 -1
  290. package/lib/components/UIShell/Switcher.js +1 -1
  291. package/lib/components/UIShell/SwitcherItem.js +1 -1
  292. package/lib/index.d.ts +1 -1
  293. package/lib/internal/FloatingMenu.js +4 -4
  294. package/lib/internal/Selection.js +6 -6
  295. package/lib/internal/useMergedRefs.js +1 -1
  296. package/lib/internal/useNoInteractiveChildren.js +4 -4
  297. package/lib/internal/useOutsideClick.js +1 -1
  298. package/lib/internal/useOverflowItems.js +6 -6
  299. package/lib/internal/useResizeObserver.js +3 -3
  300. package/lib/internal/useSavedCallback.js +1 -1
  301. package/lib/internal/warning.js +1 -1
  302. package/lib/prop-types/isRequiredOneOf.js +2 -2
  303. package/lib/tools/events.js +1 -1
  304. package/lib/tools/wrapComponent.js +1 -1
  305. package/lib/types/common.d.ts +6 -2
  306. package/package.json +9 -9
@@ -7,7 +7,7 @@
7
7
  import React, { type HTMLAttributes, type ReactNode, type Ref } from 'react';
8
8
  import { UseSelectProps } from 'downshift';
9
9
  import { type ListBoxMenuIconTranslationKey, type ListBoxSize, type ListBoxType } from '../ListBox';
10
- import { TranslateWithId } from '../../types/common';
10
+ import type { TranslateWithId } from '../../types/common';
11
11
  type ExcludedAttributes = 'id' | 'onChange';
12
12
  export interface OnChangeData<ItemType> {
13
13
  selectedItem: ItemType | null;
@@ -142,7 +142,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
142
142
  }
143
143
  });
144
144
  }
145
- // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20071
145
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20452
146
146
  }, [floatingStyles, autoAlign, refs.floating]);
147
147
  const prefix = usePrefix.usePrefix();
148
148
  const {
@@ -158,7 +158,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
158
158
  }
159
159
  }, [onChange]);
160
160
 
161
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20071
161
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20452
162
162
  const isItemDisabled = React.useCallback((item, _index) => {
163
163
  const isObject = item !== null && typeof item === 'object';
164
164
  return isObject && 'disabled' in item && item.disabled === true;
@@ -168,7 +168,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
168
168
  highlightedIndex
169
169
  } = changes;
170
170
  if (highlightedIndex !== undefined && highlightedIndex > -1 &&
171
- // eslint-disable-next-line valid-typeof , no-constant-binary-expression -- https://github.com/carbon-design-system/carbon/issues/20071
171
+ // eslint-disable-next-line valid-typeof , no-constant-binary-expression -- https://github.com/carbon-design-system/carbon/issues/20452
172
172
  typeof window !== undefined) {
173
173
  const itemArray = document.querySelectorAll(`li.${prefix}--list-box__menu-item[role="option"]`);
174
174
  const highlightedItem = itemArray[highlightedIndex];
@@ -191,7 +191,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
191
191
  onHighlightedIndexChange,
192
192
  ...downshiftProps
193
193
  }),
194
- // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20071
194
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20452
195
195
  [items, itemToString, initialSelectedItem, onSelectedItemChange, stateReducer, isItemDisabled, onHighlightedIndexChange, downshiftProps]);
196
196
  const dropdownInstanceId = useId.useId();
197
197
 
@@ -283,7 +283,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
283
283
  toggleButtonProps.onKeyDown(evt);
284
284
  }
285
285
  },
286
- // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20071
286
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20452
287
287
  [isTyping, currTimer, toggleButtonProps]);
288
288
  const readOnlyEventHandlers = React.useMemo(() => {
289
289
  if (readOnly) {
@@ -317,7 +317,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
317
317
  const candidateIsAILabel = utils.isComponentElement(candidate, index$1.AILabel);
318
318
  const normalizedDecorator = candidateIsAILabel ? /*#__PURE__*/React.cloneElement(candidate, {
319
319
  size: 'mini'
320
- }) : null;
320
+ }) : candidate;
321
321
  const allLabelProps = getLabelProps();
322
322
  const labelProps = /*#__PURE__*/React.isValidElement(titleText) ? {
323
323
  id: allLabelProps.id
@@ -358,7 +358,7 @@ const Dropdown = /*#__PURE__*/React.forwardRef(({
358
358
  }), /*#__PURE__*/React.createElement("span", {
359
359
  className: `${prefix}--list-box__label`
360
360
  }, selectedItem ? renderSelectedItem ? renderSelectedItem(selectedItem) : itemToString(selectedItem) :
361
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
361
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
362
362
  label), /*#__PURE__*/React.createElement(index$2.default.MenuIcon, {
363
363
  isOpen: isOpen,
364
364
  translateWithId: translateWithId
@@ -515,7 +515,7 @@ Dropdown.propTypes = {
515
515
  */
516
516
  titleText: PropTypes.node.isRequired,
517
517
  /**
518
- * Callback function for translating ListBoxMenuIcon SVG title
518
+ * Translates component strings using your i18n tool.
519
519
  */
520
520
  translateWithId: PropTypes.func,
521
521
  /**
@@ -11,7 +11,7 @@ var React = require('react');
11
11
 
12
12
  const ErrorBoundaryContext = /*#__PURE__*/React.createContext({
13
13
  log(error, info) {
14
- // eslint-disable-next-line no-console -- https://github.com/carbon-design-system/carbon/issues/20071
14
+ // eslint-disable-next-line no-console -- https://github.com/carbon-design-system/carbon/issues/20452
15
15
  console.log(info.componentStack);
16
16
  }
17
17
  });
@@ -24,7 +24,7 @@ require('../Text/TextDirection.js');
24
24
  var useId = require('../../internal/useId.js');
25
25
  var index = require('../FeatureFlags/index.js');
26
26
 
27
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
27
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
28
28
  const FileUploader = /*#__PURE__*/React.forwardRef(({
29
29
  accept,
30
30
  buttonKind,
@@ -49,7 +49,7 @@ const FileUploader = /*#__PURE__*/React.forwardRef(({
49
49
  const [fileItems, setFileItems] = React.useState([]);
50
50
  const [legacyFileNames, setLegacyFileNames] = React.useState([]);
51
51
 
52
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20071
52
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20452
53
53
  const [fileObjects, setFileObjects] = React.useState(new Map());
54
54
  const nodes = [];
55
55
  const createFileItem = file => ({
@@ -103,7 +103,7 @@ const FileUploader = /*#__PURE__*/React.forwardRef(({
103
103
  }
104
104
  }
105
105
  },
106
- // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20071
106
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20452
107
107
  [enhancedFileUploaderEnabled, fileItems, legacyFileNames, multiple, onChange]);
108
108
  const handleClick = React.useCallback((evt, {
109
109
  index,
@@ -160,7 +160,7 @@ const FileUploader = /*#__PURE__*/React.forwardRef(({
160
160
  uploaderButton.current?.focus?.();
161
161
  }
162
162
  },
163
- // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20071
163
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- https://github.com/carbon-design-system/carbon/issues/20452
164
164
  [enhancedFileUploaderEnabled, fileItems, legacyFileNames, onDelete, onChange, onClick]);
165
165
  React.useImperativeHandle(ref, () => ({
166
166
  clearFiles() {
@@ -40,7 +40,7 @@ function FileUploaderButton({
40
40
  const prefix = usePrefix.usePrefix();
41
41
  const [labelText, setLabelText] = React.useState(ownerLabelText);
42
42
  const [prevOwnerLabelText, setPrevOwnerLabelText] = React.useState(ownerLabelText);
43
- // eslint-disable-next-line react-hooks/rules-of-hooks -- https://github.com/carbon-design-system/carbon/issues/20071
43
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- https://github.com/carbon-design-system/carbon/issues/20452
44
44
  const {
45
45
  current: inputId
46
46
  } = React.useRef(id || useId.useId());
@@ -37,7 +37,7 @@ function FileUploaderDropContainer({
37
37
  }) {
38
38
  const prefix = usePrefix.usePrefix();
39
39
  const inputRef = React.useRef(null);
40
- // eslint-disable-next-line react-hooks/rules-of-hooks -- https://github.com/carbon-design-system/carbon/issues/20071
40
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- https://github.com/carbon-design-system/carbon/issues/20452
41
41
  const {
42
42
  current: uid
43
43
  } = React.useRef(id || useId.useId());
@@ -40,7 +40,7 @@ function FileUploaderItem({
40
40
  const textRef = React.useRef(null);
41
41
  const [isEllipsisApplied, setIsEllipsisApplied] = React.useState(false);
42
42
  const prefix = usePrefix.usePrefix();
43
- // eslint-disable-next-line react-hooks/rules-of-hooks -- https://github.com/carbon-design-system/carbon/issues/20071
43
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- https://github.com/carbon-design-system/carbon/issues/20452
44
44
  const {
45
45
  current: id
46
46
  } = React.useRef(uuid || useId.useId());
@@ -54,7 +54,7 @@ function FileUploaderItem({
54
54
  return name?.replace(/\s+/g, '');
55
55
  };
56
56
 
57
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
57
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
58
58
  const isEllipsisActive = element => {
59
59
  setIsEllipsisApplied(element.offsetWidth < element.scrollWidth);
60
60
  return element.offsetWidth < element.scrollWidth;
@@ -1,17 +1,18 @@
1
1
  /**
2
- * Copyright IBM Corp. 2022
2
+ * Copyright IBM Corp. 2022, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React, { ComponentType } from 'react';
7
+ import React, { ComponentType, type ComponentProps } from 'react';
8
+ import ComboBox from '../ComboBox';
8
9
  import { ComboBoxProps } from '../ComboBox/ComboBox';
9
10
  type ItemToStringHandler<ItemType> = (item: ItemType | null) => string;
10
11
  interface OnChangeData<ItemType> {
11
12
  selectedItem: ItemType | null | undefined;
12
13
  inputValue?: string | null;
13
14
  }
14
- export interface FluidComboBoxProps<ItemType> extends ComboBoxProps<ItemType> {
15
+ export interface FluidComboBoxProps<ItemType> extends ComboBoxProps<ItemType>, Pick<ComponentProps<typeof ComboBox>, 'translateWithId'> {
15
16
  /**
16
17
  * Specify an optional className to be applied to the outer FluidForm wrapper
17
18
  */
@@ -85,10 +86,6 @@ export interface FluidComboBoxProps<ItemType> extends ComboBoxProps<ItemType> {
85
86
  * visiting this control
86
87
  */
87
88
  titleText?: React.ReactNode;
88
- /**
89
- * Callback function for translating ListBoxMenuIcon SVG title
90
- */
91
- translateWithId?: (id: string) => string;
92
89
  /**
93
90
  * Specify whether the control is currently in warning state
94
91
  */
@@ -110,7 +110,7 @@ FluidComboBox.propTypes = {
110
110
  */
111
111
  titleText: PropTypes.node,
112
112
  /**
113
- * Callback function for translating ListBoxMenuIcon SVG title
113
+ * Translates component strings using your i18n tool.
114
114
  */
115
115
  translateWithId: PropTypes.func,
116
116
  /**
@@ -1,15 +1,15 @@
1
1
  /**
2
- * Copyright IBM Corp. 2022
2
+ * Copyright IBM Corp. 2022, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React from 'react';
8
- import { DropdownProps } from '../Dropdown';
7
+ import React, { type ComponentProps } from 'react';
8
+ import Dropdown, { DropdownProps } from '../Dropdown';
9
9
  export interface OnChangeData<ItemType> {
10
10
  selectedItem: ItemType | null;
11
11
  }
12
- export interface FluidDropdownProps<ItemType> extends DropdownProps<ItemType> {
12
+ export interface FluidDropdownProps<ItemType> extends DropdownProps<ItemType>, Pick<ComponentProps<typeof Dropdown>, 'translateWithId'> {
13
13
  /**
14
14
  * Specify an optional className to be applied to the outer FluidForm wrapper
15
15
  */
@@ -84,10 +84,6 @@ export interface FluidDropdownProps<ItemType> extends DropdownProps<ItemType> {
84
84
  * visiting this control
85
85
  */
86
86
  titleText: React.ReactNode;
87
- /**
88
- * Callback function for translating ListBoxMenuIcon SVG title
89
- */
90
- translateWithId?: (id: string) => string;
91
87
  /**
92
88
  * Specify whether the control is currently in warning state
93
89
  */
@@ -111,7 +111,7 @@ FluidDropdown.propTypes = {
111
111
  */
112
112
  titleText: PropTypes.node,
113
113
  /**
114
- * Callback function for translating ListBoxMenuIcon SVG title
114
+ * Translates component strings using your i18n tool.
115
115
  */
116
116
  translateWithId: PropTypes.func,
117
117
  /**
@@ -4,13 +4,13 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React, { FunctionComponent } from 'react';
7
+ import React, { FunctionComponent, type ComponentProps } from 'react';
8
8
  import type { UseComboboxProps, UseMultipleSelectionProps } from 'downshift';
9
- import { type FilterableMultiSelectProps } from '../MultiSelect';
9
+ import { type FilterableMultiSelectProps, type MultiSelect } from '../MultiSelect';
10
10
  interface OnChangeData<ItemType> {
11
11
  selectedItems: ItemType[] | null;
12
12
  }
13
- export interface FluidFilterableMultiSelectProps<ItemType> extends FilterableMultiSelectProps<ItemType> {
13
+ export interface FluidFilterableMultiSelectProps<ItemType> extends FilterableMultiSelectProps<ItemType>, Pick<ComponentProps<typeof MultiSelect>, 'translateWithId'> {
14
14
  /**
15
15
  * Specify an optional className to be applied to the outer FluidForm wrapper
16
16
  */
@@ -123,10 +123,6 @@ export interface FluidFilterableMultiSelectProps<ItemType> extends FilterableMul
123
123
  * visiting this control
124
124
  */
125
125
  titleText?: React.ReactNode;
126
- /**
127
- * Callback function for translating ListBoxMenuIcon SVG title
128
- */
129
- translateWithId?: (id: string) => string;
130
126
  /**
131
127
  * Specify title to show title on hover
132
128
  */
@@ -4,13 +4,13 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React from 'react';
8
- import { type MultiSelectProps } from '../MultiSelect';
7
+ import React, { type ComponentProps } from 'react';
8
+ import { MultiSelect, type MultiSelectProps } from '../MultiSelect';
9
9
  import { UseSelectProps } from 'downshift';
10
10
  interface OnChangeData<ItemType> {
11
11
  selectedItems: ItemType[] | null;
12
12
  }
13
- export interface FluidMultiSelectProps<ItemType> extends MultiSelectProps<ItemType> {
13
+ export interface FluidMultiSelectProps<ItemType> extends MultiSelectProps<ItemType>, Pick<ComponentProps<typeof MultiSelect>, 'translateWithId'> {
14
14
  /**
15
15
  * Specify an optional className to be applied to the outer FluidForm wrapper
16
16
  */
@@ -128,10 +128,6 @@ export interface FluidMultiSelectProps<ItemType> extends MultiSelectProps<ItemTy
128
128
  * visiting this control
129
129
  */
130
130
  titleText?: React.ReactNode;
131
- /**
132
- * Callback function for translating ListBoxMenuIcon SVG title
133
- */
134
- translateWithId?: (id: string) => string;
135
131
  /**
136
132
  * Specify title to show title on hover
137
133
  */
@@ -34,14 +34,14 @@ const FluidMultiSelect = /*#__PURE__*/React.forwardRef(function FluidMultiSelect
34
34
  }
35
35
  }, isFilterable ?
36
36
  /*#__PURE__*/
37
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20071
37
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452
38
38
  // @ts-ignore
39
39
  React.createElement(FilterableMultiSelect.FilterableMultiSelect, _rollupPluginBabelHelpers.extends({
40
40
  ref: ref,
41
41
  className: classNames
42
42
  }, other)) :
43
43
  /*#__PURE__*/
44
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20071
44
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452
45
45
  // @ts-ignore
46
46
  React.createElement(MultiSelect.MultiSelect, _rollupPluginBabelHelpers.extends({
47
47
  ref: ref,
@@ -193,7 +193,7 @@ FluidMultiSelect.propTypes = {
193
193
  */
194
194
  titleText: PropTypes.node,
195
195
  /**
196
- * Callback function for translating ListBoxMenuIcon SVG title
196
+ * Translates component strings using your i18n tool.
197
197
  */
198
198
  translateWithId: PropTypes.func,
199
199
  /**
@@ -1,12 +1,13 @@
1
1
  /**
2
- * Copyright IBM Corp. 2022
2
+ * Copyright IBM Corp. 2022, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React from 'react';
7
+ import React, { type ComponentProps } from 'react';
8
+ import { NumberInput } from '../NumberInput';
8
9
  import { type NumberFormatOptions } from '@carbon/utilities';
9
- export interface FluidNumberInputProps {
10
+ export interface FluidNumberInputProps extends Pick<ComponentProps<typeof NumberInput>, 'translateWithId'> {
10
11
  /**
11
12
  * `true` to allow empty string.
12
13
  */
@@ -108,10 +109,6 @@ export interface FluidNumberInputProps {
108
109
  * Specify how much the values should increase/decrease upon clicking on up/down button
109
110
  */
110
111
  step?: number;
111
- /**
112
- * Provide custom text for the component for each translation id
113
- */
114
- translateWithId?: (id: string) => string;
115
112
  /**
116
113
  * **Experimental**: Specify if the input should be of type text or number.
117
114
  * Use type="text" with `locale`, `formatOptions`, and guide user input with
@@ -19,7 +19,7 @@ var usePrefix = require('../../internal/usePrefix.js');
19
19
  var FormContext = require('../FluidForm/FormContext.js');
20
20
  var NumberFormatPropTypes = require('../NumberInput/NumberFormatPropTypes.js');
21
21
 
22
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
22
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
23
23
  const FluidNumberInput = /*#__PURE__*/React.forwardRef(({
24
24
  className,
25
25
  ...other
@@ -132,7 +132,7 @@ FluidNumberInput.propTypes = {
132
132
  */
133
133
  step: PropTypes.number,
134
134
  /**
135
- * Provide custom text for the component for each translation id
135
+ * Translates component strings using your i18n tool.
136
136
  */
137
137
  translateWithId: PropTypes.func,
138
138
  /**
@@ -18,7 +18,7 @@ require('../Search/Search.Skeleton.js');
18
18
  var usePrefix = require('../../internal/usePrefix.js');
19
19
  var FormContext = require('../FluidForm/FormContext.js');
20
20
 
21
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
21
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
22
22
  const FluidSearch = /*#__PURE__*/React.forwardRef(({
23
23
  className,
24
24
  ...other
@@ -18,7 +18,7 @@ require('../Select/Select.Skeleton.js');
18
18
  var usePrefix = require('../../internal/usePrefix.js');
19
19
  var FormContext = require('../FluidForm/FormContext.js');
20
20
 
21
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
21
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
22
22
  const FluidSelect = /*#__PURE__*/React.forwardRef(({
23
23
  className,
24
24
  children,
@@ -20,7 +20,7 @@ var PasswordInput = require('../TextInput/PasswordInput.js');
20
20
  var usePrefix = require('../../internal/usePrefix.js');
21
21
  var FormContext = require('../FluidForm/FormContext.js');
22
22
 
23
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
23
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
24
24
  const FluidTextInput = /*#__PURE__*/React.forwardRef(({
25
25
  className,
26
26
  isPassword,
@@ -19,7 +19,7 @@ require('../FluidTextInput/FluidTextInput.Skeleton.js');
19
19
  var usePrefix = require('../../internal/usePrefix.js');
20
20
  var iconsReact = require('@carbon/icons-react');
21
21
 
22
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
22
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
23
23
  const FluidTimePicker = /*#__PURE__*/React.forwardRef(({
24
24
  className,
25
25
  children,
@@ -52,7 +52,7 @@ const FluidTimePicker = /*#__PURE__*/React.forwardRef(({
52
52
  if (disabled) {
53
53
  return React.Children.toArray(children).map(child =>
54
54
  /*#__PURE__*/
55
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
55
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
56
56
  React.cloneElement(child, {
57
57
  disabled: true
58
58
  }));
@@ -60,7 +60,7 @@ const FluidTimePicker = /*#__PURE__*/React.forwardRef(({
60
60
  if (readOnly) {
61
61
  return React.Children.toArray(children).map(child =>
62
62
  /*#__PURE__*/
63
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
63
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
64
64
  React.cloneElement(child, {
65
65
  readOnly: true
66
66
  }));
@@ -15,7 +15,7 @@ var PropTypes = require('prop-types');
15
15
  var FluidSelect = require('../FluidSelect/FluidSelect.js');
16
16
  require('../FluidSelect/FluidSelect.Skeleton.js');
17
17
 
18
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
18
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
19
19
  const FluidTimePickerSelect = /*#__PURE__*/React.forwardRef(({
20
20
  children,
21
21
  className,
@@ -14,7 +14,7 @@ var React = require('react');
14
14
  var usePrefix = require('../../internal/usePrefix.js');
15
15
  var GridContext = require('./GridContext.js');
16
16
 
17
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
17
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
18
18
  const CSSGrid = /*#__PURE__*/React.forwardRef(({
19
19
  align,
20
20
  as,
@@ -98,9 +98,9 @@ CSSGrid.propTypes = {
98
98
  narrow: PropTypes.bool
99
99
  };
100
100
 
101
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20071
101
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20452
102
102
 
103
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
103
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
104
104
  const Subgrid = /*#__PURE__*/React.forwardRef(({
105
105
  as,
106
106
  className: customClassName,
@@ -36,7 +36,7 @@ function _interopNamespaceDefault(e) {
36
36
 
37
37
  var FeatureFlags__namespace = /*#__PURE__*/_interopNamespaceDefault(FeatureFlags);
38
38
 
39
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
39
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
40
40
  const Column = /*#__PURE__*/React.forwardRef(({
41
41
  as,
42
42
  children,
@@ -139,7 +139,7 @@ Column.propTypes = {
139
139
  xlg: spanPropType
140
140
  };
141
141
 
142
- // eslint-disable-next-line @typescript-eslint/no-explicit-any , react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
142
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any , react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
143
143
  const CSSGridColumn = /*#__PURE__*/React.forwardRef(({
144
144
  as: BaseComponent = 'div',
145
145
  children,
@@ -26,7 +26,7 @@ function ColumnHang({
26
26
  const prefix = usePrefix.usePrefix();
27
27
  const className = cx(customClassName, `${prefix}--grid-column-hang`);
28
28
  // cast as any to let TypeScript allow passing in attributes to base component
29
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
29
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
30
30
  const BaseComponentAsAny = BaseComponent;
31
31
  return /*#__PURE__*/React.createElement(BaseComponentAsAny, _rollupPluginBabelHelpers.extends({}, rest, {
32
32
  className: className
@@ -14,7 +14,7 @@ var React = require('react');
14
14
  var usePrefix = require('../../internal/usePrefix.js');
15
15
  var GridContext = require('./GridContext.js');
16
16
 
17
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
17
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
18
18
  const FlexGrid = /*#__PURE__*/React.forwardRef(({
19
19
  as,
20
20
  condensed = false,
@@ -30,7 +30,7 @@ function Row({
30
30
  [`${prefix}--row--narrow`]: narrow
31
31
  });
32
32
  // TypeScript type validation reports conflicts on different instances of keyof JSX.IntrinsicElements
33
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
33
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
34
34
  const BaseComponentAsAny = BaseComponent;
35
35
  return /*#__PURE__*/React.createElement(BaseComponentAsAny, _rollupPluginBabelHelpers.extends({
36
36
  className: className
@@ -19,7 +19,7 @@ const Section = /*#__PURE__*/React.forwardRef(function Section({
19
19
  }, ref) {
20
20
  const parentLevel = React.useContext(HeadingContext);
21
21
  const level = levelOverride ?? parentLevel + 1;
22
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20071
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- https://github.com/carbon-design-system/carbon/issues/20452
23
23
  const BaseComponentAsAny = BaseComponent;
24
24
  return /*#__PURE__*/React.createElement(HeadingContext.Provider, {
25
25
  value: Math.min(level, 6)
@@ -46,7 +46,7 @@ Section.propTypes = {
46
46
  */
47
47
  level: PropTypes.number
48
48
  };
49
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
49
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
50
50
  const Heading = /*#__PURE__*/React.forwardRef((props, ref) => {
51
51
  const HeadingIntrinsic = `h${React.useContext(HeadingContext)}`;
52
52
  return /*#__PURE__*/React.createElement(HeadingIntrinsic, _rollupPluginBabelHelpers.extends({
@@ -21,7 +21,7 @@ var index = require('../BadgeIndicator/index.js');
21
21
  var mapPopoverAlign = require('../../tools/mapPopoverAlign.js');
22
22
 
23
23
  const IconButtonKinds = ['primary', 'secondary', 'ghost', 'tertiary'];
24
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
24
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
25
25
  const IconButton = /*#__PURE__*/React.forwardRef(({
26
26
  align,
27
27
  autoAlign = false,
@@ -47,7 +47,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(({
47
47
  [`${prefix}--icon-tooltip--disabled`]: disabled
48
48
  });
49
49
  if (badgeCount && (kind !== 'ghost' || size !== 'lg')) {
50
- // eslint-disable-next-line no-console -- https://github.com/carbon-design-system/carbon/issues/20071
50
+ // eslint-disable-next-line no-console -- https://github.com/carbon-design-system/carbon/issues/20452
51
51
  console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");
52
52
  }
53
53
  const badgeId = useId.useId('badge-indicator');
@@ -30,13 +30,13 @@ const iconTypes = {
30
30
  unknown: iconsReact.UnknownFilled,
31
31
  informative: iconsReact.WarningSquareFilled
32
32
  };
33
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
33
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
34
34
  const IconIndicator = /*#__PURE__*/React.forwardRef(({
35
35
  className: customClassName,
36
36
  kind,
37
37
  label,
38
38
  size = 16,
39
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20071
39
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20452
40
40
  ...rest
41
41
  }, ref) => {
42
42
  const prefix = usePrefix.usePrefix();
@@ -15,7 +15,7 @@ var deprecate = require('../../prop-types/deprecate.js');
15
15
  var usePrefix = require('../../internal/usePrefix.js');
16
16
  var useMergedRefs = require('../../internal/useMergedRefs.js');
17
17
 
18
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
18
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
19
19
  const InlineCheckbox = /*#__PURE__*/React.forwardRef((props, forwardRef) => {
20
20
  const {
21
21
  ['aria-label']: ariaLabel,
@@ -24,7 +24,7 @@ const densities = ['condensed', 'normal'];
24
24
  * Size of components within this layout
25
25
  */
26
26
 
27
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
27
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
28
28
  const Layout = /*#__PURE__*/React.forwardRef(({
29
29
  as: BaseComponent = 'div',
30
30
  children,
@@ -67,7 +67,7 @@ Layout.propTypes = {
67
67
  */
68
68
  size: PropTypes.oneOf(sizes)
69
69
  };
70
- // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20071
70
+ // eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
71
71
  const LayoutConstraint = /*#__PURE__*/React.forwardRef(({
72
72
  as: BaseComponent = 'div',
73
73
  children,
@@ -12,7 +12,7 @@ var PropTypes = require('prop-types');
12
12
  var React = require('react');
13
13
  var LayoutDirectionContext = require('./LayoutDirectionContext.js');
14
14
 
15
- // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20071
15
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- https://github.com/carbon-design-system/carbon/issues/20452
16
16
 
17
17
  function LayoutDirection({
18
18
  as: BaseComponent = 'div',