@carbon/react 1.17.0 → 1.18.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 (366) hide show
  1. package/es/components/Accordion/AccordionItem.js +2 -2
  2. package/es/components/Accordion/index.js +2 -0
  3. package/es/components/AccordionItem/index.js +2 -0
  4. package/es/components/Breadcrumb/Breadcrumb.js +1 -2
  5. package/es/components/Breadcrumb/BreadcrumbItem.js +1 -2
  6. package/es/components/Button/Button.Skeleton.js +1 -2
  7. package/es/components/Button/Button.js +1 -2
  8. package/es/components/ButtonSet/ButtonSet.js +1 -2
  9. package/es/components/Checkbox/Checkbox.d.ts +4 -0
  10. package/es/components/Checkbox/Checkbox.js +29 -6
  11. package/es/components/CodeSnippet/CodeSnippet.js +4 -3
  12. package/es/components/ComboBox/ComboBox.js +6 -6
  13. package/es/components/ComposedModal/ComposedModal.js +2 -3
  14. package/es/components/ComposedModal/ModalFooter.js +1 -0
  15. package/es/components/ContainedList/ContainedList.js +10 -3
  16. package/es/components/ContentSwitcher/ContentSwitcher.js +3 -3
  17. package/es/components/CopyButton/CopyButton.js +1 -2
  18. package/es/components/DangerButton/DangerButton.js +2 -3
  19. package/es/components/DataTable/Table.js +1 -2
  20. package/es/components/DataTable/TableActionList.js +1 -2
  21. package/es/components/DataTable/TableBatchAction.js +2 -2
  22. package/es/components/DataTable/TableBatchActions.js +2 -2
  23. package/es/components/DataTable/TableBody.js +1 -2
  24. package/es/components/DataTable/TableCell.js +1 -2
  25. package/es/components/DataTable/TableContainer.js +1 -2
  26. package/es/components/DataTable/TableExpandHeader.js +1 -2
  27. package/es/components/DataTable/TableExpandRow.js +1 -2
  28. package/es/components/DataTable/TableExpandedRow.js +1 -2
  29. package/es/components/DataTable/TableHead.js +1 -2
  30. package/es/components/DataTable/TableHeader.js +1 -2
  31. package/es/components/DataTable/TableRow.js +1 -2
  32. package/es/components/DataTable/TableSelectAll.js +1 -2
  33. package/es/components/DataTable/TableSelectRow.js +1 -2
  34. package/es/components/DataTable/TableToolbar.js +2 -3
  35. package/es/components/DataTable/TableToolbarAction.js +2 -3
  36. package/es/components/DataTable/TableToolbarContent.js +1 -2
  37. package/es/components/DataTable/TableToolbarMenu.js +1 -2
  38. package/es/components/DataTable/TableToolbarSearch.js +2 -2
  39. package/es/components/DataTable/index.js +24 -26
  40. package/es/components/DataTable/state/getDerivedStateFromProps.js +1 -3
  41. package/es/components/DataTable/tools/denormalize.js +1 -3
  42. package/es/components/DataTable/tools/instanceId.js +1 -3
  43. package/es/components/DataTable/tools/normalize.js +1 -3
  44. package/es/components/DataTableSkeleton/DataTableSkeleton.js +1 -2
  45. package/es/components/DatePicker/DatePicker.Skeleton.js +1 -2
  46. package/es/components/DatePicker/DatePicker.js +71 -31
  47. package/es/components/DatePicker/plugins/fixEventsPlugin.js +1 -1
  48. package/es/components/DatePickerInput/DatePickerInput.js +19 -12
  49. package/es/components/Dropdown/Dropdown.Skeleton.js +2 -2
  50. package/es/components/Dropdown/Dropdown.js +3 -3
  51. package/es/components/ErrorBoundary/ErrorBoundary.js +1 -1
  52. package/es/components/ExpandableSearch/ExpandableSearch.js +1 -0
  53. package/es/components/FileUploader/FileUploader.js +3 -3
  54. package/es/components/FileUploader/FileUploaderButton.js +2 -2
  55. package/es/components/FileUploader/FileUploaderDropContainer.js +2 -2
  56. package/es/components/FileUploader/FileUploaderItem.js +2 -2
  57. package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +1 -2
  58. package/es/components/FluidComboBox/FluidComboBox.js +1 -2
  59. package/es/components/FluidDatePicker/FluidDatePicker.js +2 -2
  60. package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +1 -2
  61. package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +1 -2
  62. package/es/components/FluidDropdown/FluidDropdown.js +2 -2
  63. package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -2
  64. package/es/components/FluidMultiSelect/FluidMultiSelect.js +1 -2
  65. package/es/components/FluidSelect/FluidSelect.Skeleton.js +1 -2
  66. package/es/components/FluidSelect/FluidSelect.js +2 -2
  67. package/es/components/FluidTextArea/FluidTextArea.js +1 -0
  68. package/es/components/FluidTextInput/FluidTextInput.js +1 -0
  69. package/es/components/Form/Form.js +1 -2
  70. package/es/components/FormGroup/FormGroup.js +1 -2
  71. package/es/components/Icon/Icon.Skeleton.js +1 -2
  72. package/es/components/IconButton/index.js +3 -1
  73. package/es/components/IdPrefix/index.js +29 -0
  74. package/es/components/InlineCheckbox/InlineCheckbox.js +1 -2
  75. package/es/components/Link/Link.js +1 -2
  76. package/es/components/ListBox/ListBox.js +2 -2
  77. package/es/components/ListBox/ListBoxMenu.js +1 -2
  78. package/es/components/ListBox/ListBoxMenuIcon.js +1 -2
  79. package/es/components/ListBox/ListBoxMenuItem.js +1 -2
  80. package/es/components/ListBox/ListBoxSelection.js +2 -2
  81. package/es/components/ListBox/index.js +1 -0
  82. package/es/components/ListBox/next/ListBoxSelection.js +3 -3
  83. package/es/components/ListBox/next/ListBoxTrigger.js +1 -2
  84. package/es/components/ListItem/ListItem.js +1 -2
  85. package/es/components/Menu/Menu.js +4 -5
  86. package/es/components/Menu/MenuOption.js +2 -2
  87. package/es/components/Modal/Modal.js +3 -3
  88. package/es/components/ModalWrapper/ModalWrapper.js +2 -1
  89. package/es/components/ModalWrapper/index.js +2 -5
  90. package/es/components/MultiSelect/FilterableMultiSelect.js +8 -8
  91. package/es/components/MultiSelect/MultiSelect.js +6 -6
  92. package/es/components/Notification/Notification.js +5 -4
  93. package/es/components/NumberInput/NumberInput.js +3 -3
  94. package/es/components/OrderedList/OrderedList.js +1 -2
  95. package/es/components/OverflowMenu/OverflowMenu.js +12 -2
  96. package/es/components/OverflowMenuItem/OverflowMenuItem.js +3 -3
  97. package/es/components/OverflowMenuItem/index.js +2 -5
  98. package/es/components/OverflowMenuV2/index.js +2 -2
  99. package/es/components/Pagination/Pagination.js +10 -8
  100. package/es/components/Pagination/experimental/PageSelector.js +1 -0
  101. package/es/components/Pagination/experimental/Pagination.js +2 -0
  102. package/es/components/Pagination/index.js +1 -0
  103. package/es/components/PaginationNav/PaginationNav.js +2 -2
  104. package/es/components/PrimaryButton/PrimaryButton.js +2 -3
  105. package/es/components/ProgressIndicator/ProgressIndicator.js +5 -5
  106. package/es/components/RadioButton/RadioButton.js +2 -3
  107. package/es/components/RadioButtonGroup/RadioButtonGroup.js +15 -7
  108. package/es/components/RadioTile/RadioTile.js +2 -2
  109. package/es/components/Search/Search.Skeleton.js +1 -2
  110. package/es/components/Search/Search.js +5 -6
  111. package/es/components/Search/index.js +1 -0
  112. package/es/components/SecondaryButton/SecondaryButton.js +2 -3
  113. package/es/components/Select/Select.Skeleton.js +1 -2
  114. package/es/components/Select/Select.js +30 -4
  115. package/es/components/SelectItem/SelectItem.js +1 -2
  116. package/es/components/SelectItemGroup/SelectItemGroup.js +1 -2
  117. package/es/components/SkeletonIcon/SkeletonIcon.js +1 -2
  118. package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +1 -2
  119. package/es/components/SkeletonText/SkeletonText.js +1 -2
  120. package/es/components/Slider/Slider.Skeleton.js +1 -2
  121. package/es/components/Slider/Slider.js +21 -13
  122. package/es/components/Slider/index.js +2 -2
  123. package/es/components/StructuredList/StructuredList.Skeleton.js +1 -2
  124. package/es/components/Switch/Switch.js +1 -2
  125. package/es/components/Tab/Tab.js +1 -1
  126. package/es/components/Tab/index.js +4 -5
  127. package/es/components/TabContent/TabContent.js +1 -2
  128. package/es/components/Tabs/Tabs.js +4 -3
  129. package/es/components/Tabs/index.js +1 -0
  130. package/es/components/Tag/Tag.js +1 -2
  131. package/es/components/TextArea/TextArea.Skeleton.js +1 -2
  132. package/es/components/TextArea/TextArea.js +2 -2
  133. package/es/components/TextInput/ControlledPasswordInput.js +1 -2
  134. package/es/components/TextInput/PasswordInput.js +3 -3
  135. package/es/components/TextInput/TextInput.Skeleton.js +1 -2
  136. package/es/components/TextInput/TextInput.js +3 -3
  137. package/es/components/TextInput/index.js +1 -0
  138. package/es/components/Tile/Tile.js +2 -2
  139. package/es/components/TileGroup/TileGroup.js +1 -1
  140. package/es/components/TimePicker/TimePicker.js +148 -144
  141. package/es/components/TimePickerSelect/TimePickerSelect.js +1 -1
  142. package/es/components/TimePickerSelect/index.js +3 -4
  143. package/es/components/TimePickerSelect/next/TimePickerSelect.js +1 -2
  144. package/es/components/Toggle/Toggle.Skeleton.js +1 -1
  145. package/es/components/Toggle/Toggle.js +13 -3
  146. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
  147. package/es/components/Toggletip/index.js +2 -2
  148. package/es/components/Tooltip/{next/DefinitionTooltip.js → DefinitionTooltip.js} +7 -7
  149. package/es/components/Tooltip/{next/Tooltip.js → Tooltip.js} +8 -8
  150. package/es/components/TreeView/TreeNode.js +2 -2
  151. package/es/components/TreeView/TreeView.js +2 -2
  152. package/es/components/UIShell/Content.js +1 -2
  153. package/es/components/UIShell/Header.js +2 -3
  154. package/es/components/UIShell/HeaderContainer.js +1 -2
  155. package/es/components/UIShell/HeaderGlobalAction.js +3 -3
  156. package/es/components/UIShell/HeaderMenu.js +4 -5
  157. package/es/components/UIShell/HeaderMenuButton.js +1 -1
  158. package/es/components/UIShell/HeaderMenuItem.js +2 -3
  159. package/es/components/UIShell/HeaderName.js +1 -1
  160. package/es/components/UIShell/HeaderNavigation.js +1 -1
  161. package/es/components/UIShell/HeaderPanel.js +2 -3
  162. package/es/components/UIShell/HeaderSideNavItems.js +1 -2
  163. package/es/components/UIShell/Link.js +1 -2
  164. package/es/components/UIShell/SideNav.js +2 -3
  165. package/es/components/UIShell/SideNavDetails.js +1 -2
  166. package/es/components/UIShell/SideNavHeader.js +1 -2
  167. package/es/components/UIShell/SideNavItems.js +1 -2
  168. package/es/components/UIShell/SideNavLink.js +2 -3
  169. package/es/components/UIShell/SideNavMenu.js +2 -2
  170. package/es/components/UIShell/SideNavMenuItem.js +1 -2
  171. package/es/components/UIShell/SideNavSwitcher.js +1 -2
  172. package/es/components/UIShell/Switcher.js +2 -3
  173. package/es/components/UIShell/SwitcherDivider.js +1 -2
  174. package/es/components/UIShell/SwitcherItem.js +2 -3
  175. package/es/components/UnorderedList/UnorderedList.js +1 -2
  176. package/es/index.js +85 -81
  177. package/es/internal/ClickListener.js +1 -1
  178. package/es/internal/FloatingMenu.js +2 -4
  179. package/es/internal/OptimizedResize.js +1 -3
  180. package/es/internal/Selection.js +1 -1
  181. package/es/internal/useId.js +5 -2
  182. package/es/internal/useIdPrefix.js +15 -0
  183. package/es/internal/useIsomorphicEffect.js +1 -2
  184. package/es/internal/useSavedCallback.js +1 -1
  185. package/es/tools/mergeRefs.js +1 -3
  186. package/es/tools/wrapComponent.js +1 -3
  187. package/lib/components/Accordion/AccordionItem.js +2 -2
  188. package/lib/components/Accordion/index.js +4 -0
  189. package/lib/components/AccordionItem/index.js +2 -0
  190. package/lib/components/Breadcrumb/Breadcrumb.js +1 -2
  191. package/lib/components/Breadcrumb/BreadcrumbItem.js +1 -2
  192. package/lib/components/Button/Button.Skeleton.js +1 -2
  193. package/lib/components/Button/Button.js +1 -2
  194. package/lib/components/ButtonSet/ButtonSet.js +1 -2
  195. package/lib/components/Checkbox/Checkbox.d.ts +4 -0
  196. package/lib/components/Checkbox/Checkbox.js +29 -6
  197. package/lib/components/CodeSnippet/CodeSnippet.js +4 -3
  198. package/lib/components/ComboBox/ComboBox.js +6 -6
  199. package/lib/components/ComposedModal/ComposedModal.js +1 -2
  200. package/lib/components/ComposedModal/ModalFooter.js +1 -0
  201. package/lib/components/ContainedList/ContainedList.js +10 -3
  202. package/lib/components/ContentSwitcher/ContentSwitcher.js +2 -2
  203. package/lib/components/CopyButton/CopyButton.js +1 -2
  204. package/lib/components/DangerButton/DangerButton.js +2 -3
  205. package/lib/components/DataTable/DataTable.js +5 -5
  206. package/lib/components/DataTable/Table.js +1 -2
  207. package/lib/components/DataTable/TableActionList.js +1 -2
  208. package/lib/components/DataTable/TableBatchAction.js +2 -2
  209. package/lib/components/DataTable/TableBatchActions.js +2 -2
  210. package/lib/components/DataTable/TableBody.js +1 -2
  211. package/lib/components/DataTable/TableCell.js +1 -2
  212. package/lib/components/DataTable/TableContainer.js +1 -2
  213. package/lib/components/DataTable/TableExpandHeader.js +1 -2
  214. package/lib/components/DataTable/TableExpandRow.js +1 -2
  215. package/lib/components/DataTable/TableExpandedRow.js +1 -2
  216. package/lib/components/DataTable/TableHead.js +1 -2
  217. package/lib/components/DataTable/TableHeader.js +1 -2
  218. package/lib/components/DataTable/TableRow.js +1 -2
  219. package/lib/components/DataTable/TableSelectAll.js +1 -2
  220. package/lib/components/DataTable/TableSelectRow.js +1 -2
  221. package/lib/components/DataTable/TableToolbar.js +1 -2
  222. package/lib/components/DataTable/TableToolbarAction.js +3 -4
  223. package/lib/components/DataTable/TableToolbarContent.js +1 -2
  224. package/lib/components/DataTable/TableToolbarMenu.js +1 -2
  225. package/lib/components/DataTable/TableToolbarSearch.js +2 -2
  226. package/lib/components/DataTable/index.js +23 -24
  227. package/lib/components/DataTable/state/getDerivedStateFromProps.js +1 -3
  228. package/lib/components/DataTable/tools/denormalize.js +1 -3
  229. package/lib/components/DataTable/tools/instanceId.js +1 -3
  230. package/lib/components/DataTable/tools/normalize.js +1 -3
  231. package/lib/components/DataTableSkeleton/DataTableSkeleton.js +1 -2
  232. package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -2
  233. package/lib/components/DatePicker/DatePicker.js +71 -31
  234. package/lib/components/DatePicker/plugins/fixEventsPlugin.js +1 -1
  235. package/lib/components/DatePickerInput/DatePickerInput.js +18 -11
  236. package/lib/components/Dropdown/Dropdown.Skeleton.js +2 -2
  237. package/lib/components/Dropdown/Dropdown.js +3 -3
  238. package/lib/components/ExpandableSearch/ExpandableSearch.js +1 -0
  239. package/lib/components/FileUploader/FileUploader.js +2 -2
  240. package/lib/components/FileUploader/FileUploaderButton.js +2 -2
  241. package/lib/components/FileUploader/FileUploaderDropContainer.js +2 -2
  242. package/lib/components/FileUploader/FileUploaderItem.js +2 -2
  243. package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +1 -2
  244. package/lib/components/FluidComboBox/FluidComboBox.js +1 -2
  245. package/lib/components/FluidDatePicker/FluidDatePicker.js +2 -2
  246. package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +1 -2
  247. package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +1 -2
  248. package/lib/components/FluidDropdown/FluidDropdown.js +2 -2
  249. package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -2
  250. package/lib/components/FluidMultiSelect/FluidMultiSelect.js +1 -2
  251. package/lib/components/FluidSelect/FluidSelect.Skeleton.js +1 -2
  252. package/lib/components/FluidSelect/FluidSelect.js +2 -2
  253. package/lib/components/FluidTextArea/FluidTextArea.js +1 -0
  254. package/lib/components/FluidTextInput/FluidTextInput.js +1 -0
  255. package/lib/components/Form/Form.js +1 -2
  256. package/lib/components/FormGroup/FormGroup.js +1 -2
  257. package/lib/components/Icon/Icon.Skeleton.js +1 -2
  258. package/lib/components/IconButton/index.js +3 -1
  259. package/lib/components/IdPrefix/index.js +38 -0
  260. package/lib/components/InlineCheckbox/InlineCheckbox.js +1 -2
  261. package/lib/components/Link/Link.js +1 -2
  262. package/lib/components/ListBox/ListBox.js +2 -2
  263. package/lib/components/ListBox/ListBoxMenu.js +1 -2
  264. package/lib/components/ListBox/ListBoxMenuIcon.js +1 -2
  265. package/lib/components/ListBox/ListBoxMenuItem.js +1 -2
  266. package/lib/components/ListBox/ListBoxSelection.js +2 -2
  267. package/lib/components/ListBox/index.js +1 -0
  268. package/lib/components/ListBox/next/ListBoxSelection.js +2 -2
  269. package/lib/components/ListBox/next/ListBoxTrigger.js +1 -2
  270. package/lib/components/ListItem/ListItem.js +1 -2
  271. package/lib/components/Menu/Menu.js +3 -4
  272. package/lib/components/Menu/MenuOption.js +2 -2
  273. package/lib/components/Modal/Modal.js +2 -2
  274. package/lib/components/ModalWrapper/ModalWrapper.js +1 -0
  275. package/lib/components/ModalWrapper/index.js +3 -3
  276. package/lib/components/MultiSelect/FilterableMultiSelect.js +7 -7
  277. package/lib/components/MultiSelect/MultiSelect.js +5 -5
  278. package/lib/components/Notification/Notification.js +3 -2
  279. package/lib/components/NumberInput/NumberInput.js +3 -3
  280. package/lib/components/OrderedList/OrderedList.js +1 -2
  281. package/lib/components/OverflowMenu/OverflowMenu.js +12 -2
  282. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +2 -2
  283. package/lib/components/OverflowMenuItem/index.js +3 -3
  284. package/lib/components/OverflowMenuV2/index.js +2 -2
  285. package/lib/components/Pagination/Pagination.js +9 -7
  286. package/lib/components/Pagination/experimental/PageSelector.js +1 -0
  287. package/lib/components/Pagination/experimental/Pagination.js +2 -0
  288. package/lib/components/Pagination/index.js +1 -0
  289. package/lib/components/PaginationNav/PaginationNav.js +2 -2
  290. package/lib/components/PrimaryButton/PrimaryButton.js +2 -3
  291. package/lib/components/ProgressIndicator/ProgressIndicator.js +5 -5
  292. package/lib/components/RadioButton/RadioButton.js +2 -3
  293. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +15 -7
  294. package/lib/components/RadioTile/RadioTile.js +2 -2
  295. package/lib/components/Search/Search.Skeleton.js +1 -2
  296. package/lib/components/Search/Search.js +3 -4
  297. package/lib/components/Search/index.js +2 -0
  298. package/lib/components/SecondaryButton/SecondaryButton.js +2 -3
  299. package/lib/components/Select/Select.Skeleton.js +1 -2
  300. package/lib/components/Select/Select.js +30 -4
  301. package/lib/components/SelectItem/SelectItem.js +1 -2
  302. package/lib/components/SelectItemGroup/SelectItemGroup.js +1 -2
  303. package/lib/components/SkeletonIcon/SkeletonIcon.js +1 -2
  304. package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +1 -2
  305. package/lib/components/SkeletonText/SkeletonText.js +1 -2
  306. package/lib/components/Slider/Slider.Skeleton.js +1 -2
  307. package/lib/components/Slider/Slider.js +20 -12
  308. package/lib/components/Slider/index.js +3 -22
  309. package/lib/components/StructuredList/StructuredList.Skeleton.js +1 -2
  310. package/lib/components/Switch/Switch.js +1 -2
  311. package/lib/components/Tab/index.js +3 -4
  312. package/lib/components/TabContent/TabContent.js +1 -2
  313. package/lib/components/Tabs/Tabs.js +4 -3
  314. package/lib/components/Tabs/index.js +2 -0
  315. package/lib/components/Tag/Tag.js +1 -2
  316. package/lib/components/TextArea/TextArea.Skeleton.js +1 -2
  317. package/lib/components/TextArea/TextArea.js +2 -2
  318. package/lib/components/TextInput/ControlledPasswordInput.js +1 -2
  319. package/lib/components/TextInput/PasswordInput.js +3 -3
  320. package/lib/components/TextInput/TextInput.Skeleton.js +1 -2
  321. package/lib/components/TextInput/TextInput.js +3 -3
  322. package/lib/components/TextInput/index.js +2 -0
  323. package/lib/components/Tile/Tile.js +2 -2
  324. package/lib/components/TimePicker/TimePicker.js +144 -140
  325. package/lib/components/TimePickerSelect/index.js +4 -5
  326. package/lib/components/TimePickerSelect/next/TimePickerSelect.js +1 -2
  327. package/lib/components/Toggle/Toggle.js +13 -3
  328. package/lib/components/Toggletip/index.js +2 -2
  329. package/lib/components/Tooltip/{next/DefinitionTooltip.js → DefinitionTooltip.js} +7 -7
  330. package/lib/components/Tooltip/{next/Tooltip.js → Tooltip.js} +8 -8
  331. package/lib/components/TreeView/TreeNode.js +2 -2
  332. package/lib/components/TreeView/TreeView.js +2 -2
  333. package/lib/components/UIShell/Content.js +1 -2
  334. package/lib/components/UIShell/Header.js +1 -2
  335. package/lib/components/UIShell/HeaderContainer.js +1 -2
  336. package/lib/components/UIShell/HeaderGlobalAction.js +2 -2
  337. package/lib/components/UIShell/HeaderMenu.js +3 -4
  338. package/lib/components/UIShell/HeaderMenuItem.js +1 -2
  339. package/lib/components/UIShell/HeaderPanel.js +1 -2
  340. package/lib/components/UIShell/HeaderSideNavItems.js +1 -2
  341. package/lib/components/UIShell/Link.js +1 -2
  342. package/lib/components/UIShell/SideNav.js +1 -2
  343. package/lib/components/UIShell/SideNavDetails.js +1 -2
  344. package/lib/components/UIShell/SideNavHeader.js +1 -2
  345. package/lib/components/UIShell/SideNavItems.js +1 -2
  346. package/lib/components/UIShell/SideNavLink.js +1 -2
  347. package/lib/components/UIShell/SideNavMenu.js +2 -2
  348. package/lib/components/UIShell/SideNavMenuItem.js +1 -2
  349. package/lib/components/UIShell/SideNavSwitcher.js +1 -2
  350. package/lib/components/UIShell/Switcher.js +1 -2
  351. package/lib/components/UIShell/SwitcherDivider.js +1 -2
  352. package/lib/components/UIShell/SwitcherItem.js +1 -2
  353. package/lib/components/UnorderedList/UnorderedList.js +1 -2
  354. package/lib/index.js +206 -200
  355. package/lib/internal/FloatingMenu.js +1 -3
  356. package/lib/internal/OptimizedResize.js +1 -3
  357. package/lib/internal/useId.js +5 -2
  358. package/lib/internal/useIdPrefix.js +24 -0
  359. package/lib/internal/useIsomorphicEffect.js +1 -2
  360. package/lib/tools/mergeRefs.js +1 -3
  361. package/lib/tools/wrapComponent.js +1 -3
  362. package/package.json +10 -10
  363. package/es/components/TimePicker/index.js +0 -15
  364. package/es/components/TimePicker/next/TimePicker.js +0 -218
  365. package/lib/components/TimePicker/index.js +0 -39
  366. package/lib/components/TimePicker/next/TimePicker.js +0 -228
@@ -8,8 +8,10 @@
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
+ import '../Button/Button.Skeleton.js';
11
12
  import Button from '../Button/Button.js';
12
- import { Tooltip } from '../Tooltip/next/Tooltip.js';
13
+ import '../Tooltip/DefinitionTooltip.js';
14
+ import { Tooltip } from '../Tooltip/Tooltip.js';
13
15
  import { usePrefix } from '../../internal/usePrefix.js';
14
16
  import cx from 'classnames';
15
17
 
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import PropTypes from 'prop-types';
9
+ import React__default from 'react';
10
+ import { IdPrefixContext } from '../../internal/useIdPrefix.js';
11
+
12
+ function IdPrefix(_ref) {
13
+ var children = _ref.children,
14
+ prefix = _ref.prefix;
15
+ return /*#__PURE__*/React__default.createElement(IdPrefixContext.Provider, {
16
+ value: prefix
17
+ }, children);
18
+ }
19
+
20
+ IdPrefix.propTypes = {
21
+ children: PropTypes.node,
22
+
23
+ /**
24
+ * The value used to prefix the auto-generated id placed on some DOM elements
25
+ */
26
+ prefix: PropTypes.string
27
+ };
28
+
29
+ export { IdPrefix };
@@ -116,6 +116,5 @@ InlineCheckbox.propTypes = {
116
116
  */
117
117
  title: PropTypes.string
118
118
  };
119
- var InlineCheckbox$1 = InlineCheckbox;
120
119
 
121
- export { InlineCheckbox$1 as default };
120
+ export { InlineCheckbox as default };
@@ -93,6 +93,5 @@ Link.propTypes = {
93
93
  */
94
94
  visited: PropTypes.bool
95
95
  };
96
- var Link$1 = Link;
97
96
 
98
- export { Link$1 as default };
97
+ export { Link as default };
@@ -17,6 +17,7 @@ import ListBoxMenu from './ListBoxMenu.js';
17
17
  import ListBoxMenuIcon from './ListBoxMenuIcon.js';
18
18
  import ListBoxMenuItem from './ListBoxMenuItem.js';
19
19
  import ListBoxSelection from './ListBoxSelection.js';
20
+ import '../FluidForm/FluidForm.js';
20
21
  import { FormContext } from '../FluidForm/FormContext.js';
21
22
 
22
23
  var _excluded = ["children", "className", "disabled", "type", "size", "invalid", "invalidText", "warn", "warnText", "light", "isOpen"];
@@ -142,6 +143,5 @@ ListBox.Menu = ListBoxMenu;
142
143
  ListBox.MenuIcon = ListBoxMenuIcon;
143
144
  ListBox.MenuItem = ListBoxMenuItem;
144
145
  ListBox.Selection = ListBoxSelection;
145
- var ListBox$1 = ListBox;
146
146
 
147
- export { ListBox$1 as default };
147
+ export { ListBox as default };
@@ -51,6 +51,5 @@ ListBoxMenu.propTypes = {
51
51
  */
52
52
  id: PropTypes.string.isRequired
53
53
  };
54
- var ListBoxMenu$1 = ListBoxMenu;
55
54
 
56
- export { ListBoxMenu$1 as default };
55
+ export { ListBoxMenu as default };
@@ -56,6 +56,5 @@ ListBoxMenuIcon.defaultProps = {
56
56
  return defaultTranslations[id];
57
57
  }
58
58
  };
59
- var ListBoxMenuIcon$1 = ListBoxMenuIcon;
60
59
 
61
- export { ListBoxMenuIcon$1 as default, translationIds };
60
+ export { ListBoxMenuIcon as default, translationIds };
@@ -83,6 +83,5 @@ ListBoxMenuItem.defaultProps = {
83
83
  isActive: false,
84
84
  isHighlighted: false
85
85
  };
86
- var ListBoxMenuItem$1 = ListBoxMenuItem;
87
86
 
88
- export { ListBoxMenuItem$1 as default };
87
+ export { ListBoxMenuItem as default };
@@ -10,9 +10,9 @@ import cx from 'classnames';
10
10
  import React__default from 'react';
11
11
  import PropTypes from 'prop-types';
12
12
  import { Close } from '@carbon/icons-react';
13
- import { usePrefix } from '../../internal/usePrefix.js';
14
- import { match } from '../../internal/keyboard/match.js';
15
13
  import { Enter } from '../../internal/keyboard/keys.js';
14
+ import { match } from '../../internal/keyboard/match.js';
15
+ import { usePrefix } from '../../internal/usePrefix.js';
16
16
 
17
17
  var _Close, _Close2, _defaultTranslations;
18
18
  /**
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import './ListBoxPropTypes.js';
8
9
  import ListBox from './ListBox.js';
9
10
  export { default } from './ListBox.js';
10
11
  import ListBoxField from './ListBoxField.js';
@@ -5,14 +5,14 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { defineProperty as _defineProperty, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import cx from 'classnames';
10
10
  import React__default from 'react';
11
11
  import PropTypes from 'prop-types';
12
12
  import { Close } from '@carbon/icons-react';
13
- import { usePrefix } from '../../../internal/usePrefix.js';
14
- import { match } from '../../../internal/keyboard/match.js';
15
13
  import { Enter } from '../../../internal/keyboard/keys.js';
14
+ import { match } from '../../../internal/keyboard/match.js';
15
+ import { usePrefix } from '../../../internal/usePrefix.js';
16
16
 
17
17
  var _Close, _Close2, _defaultTranslations;
18
18
 
@@ -63,6 +63,5 @@ ListBoxTrigger.defaultProps = {
63
63
  return defaultTranslations[id];
64
64
  }
65
65
  };
66
- var ListBoxTrigger$1 = ListBoxTrigger;
67
66
 
68
- export { ListBoxTrigger$1 as default, translationIds };
67
+ export { ListBoxTrigger as default, translationIds };
@@ -36,6 +36,5 @@ ListItem.propTypes = {
36
36
  */
37
37
  className: PropTypes.string
38
38
  };
39
- var ListItem$1 = ListItem;
40
39
 
41
- export { ListItem$1 as default };
40
+ export { ListItem as default };
@@ -10,14 +10,14 @@ import React__default, { useRef, useState, useEffect } from 'react';
10
10
  import ReactDOM from 'react-dom';
11
11
  import cx from 'classnames';
12
12
  import PropTypes from 'prop-types';
13
+ import { Tab, Enter, Space, Escape, ArrowLeft, ArrowUp, ArrowDown } from '../../internal/keyboard/keys.js';
14
+ import { match } from '../../internal/keyboard/match.js';
13
15
  import { usePrefix } from '../../internal/usePrefix.js';
14
- import { getParentMenu, getNextNode, getParentNode, getValidNodes, clickedElementHasSubnodes, capWithinRange, getPosition, resetFocus, focusNode } from './_utils.js';
16
+ import { getParentMenu, getNextNode, getParentNode, getValidNodes, clickedElementHasSubnodes, getPosition, capWithinRange, resetFocus, focusNode } from './_utils.js';
15
17
  import MenuGroup from './MenuGroup.js';
16
18
  import MenuRadioGroup from './MenuRadioGroup.js';
17
19
  import MenuRadioGroupOptions from './MenuRadioGroupOptions.js';
18
20
  import MenuSelectableItem from './MenuSelectableItem.js';
19
- import { match } from '../../internal/keyboard/match.js';
20
- import { Tab, Enter, Space, Escape, ArrowLeft, ArrowUp, ArrowDown } from '../../internal/keyboard/keys.js';
21
21
 
22
22
  var _excluded = ["children", "className", "id", "level", "open", "size", "target", "x", "y", "onClose"];
23
23
  var margin = 16; // distance to keep to body edges, in px
@@ -323,6 +323,5 @@ Menu.propTypes = {
323
323
  */
324
324
  y: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])
325
325
  };
326
- var Menu$1 = Menu;
327
326
 
328
- export { Menu$1 as default };
327
+ export { Menu as default };
@@ -10,11 +10,11 @@ import React__default, { useState, useRef, useEffect } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import cx from 'classnames';
12
12
  import { CaretRight } from '@carbon/icons-react';
13
+ import { ArrowRight, Enter, Space } from '../../internal/keyboard/keys.js';
14
+ import { match } from '../../internal/keyboard/match.js';
13
15
  import { usePrefix } from '../../internal/usePrefix.js';
14
16
  import { getFirstSubNode, focusNode, clickedElementHasSubnodes, getParentMenu } from './_utils.js';
15
17
  import Menu from './Menu.js';
16
- import { match } from '../../internal/keyboard/match.js';
17
- import { ArrowRight, Enter, Space } from '../../internal/keyboard/keys.js';
18
18
 
19
19
  var _CaretRight;
20
20
 
@@ -5,12 +5,13 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { defineProperty as _defineProperty, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default, { useRef, useEffect } from 'react';
11
11
  import cx from 'classnames';
12
12
  import { Close } from '@carbon/icons-react';
13
13
  import toggleClass from '../../tools/toggleClass.js';
14
+ import '../Button/Button.Skeleton.js';
14
15
  import Button from '../Button/Button.js';
15
16
  import ButtonSet from '../ButtonSet/ButtonSet.js';
16
17
  import requiredIfGivenPropIsTruthy from '../../prop-types/requiredIfGivenPropIsTruthy.js';
@@ -270,6 +271,5 @@ Modal.defaultProps = {
270
271
  selectorPrimaryFocus: '[data-modal-primary-focus]',
271
272
  hasScrollingContent: false
272
273
  };
273
- var Modal$1 = Modal;
274
274
 
275
- export { Modal$1 as default };
275
+ export { Modal as default };
@@ -5,10 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, createClass as _createClass, objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import Modal from '../Modal/Modal.js';
12
+ import '../Button/Button.Skeleton.js';
12
13
  import Button from '../Button/Button.js';
13
14
  import { ButtonKinds } from '../../prop-types/types.js';
14
15
  import { warning } from '../../internal/warning.js';
@@ -5,8 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import ModalWrapper$1 from './ModalWrapper.js';
9
-
10
- var ModalWrapper = ModalWrapper$1;
11
-
12
- export { ModalWrapper as default };
8
+ import ModalWrapper from './ModalWrapper.js';
9
+ export { default } from './ModalWrapper.js';
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectSpread2 as _objectSpread2, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
10
10
  import cx from 'classnames';
11
11
  import Downshift from 'downshift';
@@ -15,6 +15,10 @@ import React__default, { useContext, useState, useRef } from 'react';
15
15
  import { defaultFilterItems } from '../ComboBox/tools/filter.js';
16
16
  import { sortingPropTypes } from './MultiSelectPropTypes.js';
17
17
  import '../ListBox/index.js';
18
+ import ListBoxSelection from '../ListBox/next/ListBoxSelection.js';
19
+ import ListBoxTrigger from '../ListBox/next/ListBoxTrigger.js';
20
+ import { Space, Tab } from '../../internal/keyboard/keys.js';
21
+ import { match } from '../../internal/keyboard/match.js';
18
22
  import Selection from '../../internal/Selection.js';
19
23
  import { defaultItemToString } from './tools/itemToString.js';
20
24
  import mergeRefs from '../../tools/mergeRefs.js';
@@ -23,13 +27,10 @@ import { useId } from '../../internal/useId.js';
23
27
  import { defaultCompareItems, defaultSortItems } from './tools/sorting.js';
24
28
  import { useFeatureFlag } from '../FeatureFlags/index.js';
25
29
  import { usePrefix } from '../../internal/usePrefix.js';
30
+ import '../FluidForm/FluidForm.js';
26
31
  import { FormContext } from '../FluidForm/FormContext.js';
27
- import { match } from '../../internal/keyboard/match.js';
28
- import ListBoxSelection from '../ListBox/next/ListBoxSelection.js';
29
- import ListBoxTrigger from '../ListBox/next/ListBoxTrigger.js';
30
- import ListBox from '../ListBox/ListBox.js';
31
32
  import { ListBoxSize } from '../ListBox/ListBoxPropTypes.js';
32
- import { Space, Tab } from '../../internal/keyboard/keys.js';
33
+ import ListBox from '../ListBox/ListBox.js';
33
34
 
34
35
  var FilterableMultiSelect = /*#__PURE__*/React__default.forwardRef(function FilterableMultiSelect(_ref, ref) {
35
36
  var _cx, _cx2, _cx3, _cx4;
@@ -563,6 +564,5 @@ FilterableMultiSelect.defaultProps = {
563
564
  open: false,
564
565
  selectionFeedback: 'top-after-reopen'
565
566
  };
566
- var FilterableMultiSelect$1 = FilterableMultiSelect;
567
567
 
568
- export { FilterableMultiSelect$1 as default };
568
+ export { FilterableMultiSelect as default };
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectSpread2 as _objectSpread2, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
10
10
  import cx from 'classnames';
11
11
  import Downshift, { useSelect } from 'downshift';
@@ -20,13 +20,14 @@ import { useSelection } from '../../internal/Selection.js';
20
20
  import setupGetInstanceId from '../../tools/setupGetInstanceId.js';
21
21
  import mergeRefs from '../../tools/mergeRefs.js';
22
22
  import deprecate from '../../prop-types/deprecate.js';
23
+ import { Delete } from '../../internal/keyboard/keys.js';
24
+ import { match } from '../../internal/keyboard/match.js';
23
25
  import { useFeatureFlag } from '../FeatureFlags/index.js';
24
26
  import { usePrefix } from '../../internal/usePrefix.js';
27
+ import '../FluidForm/FluidForm.js';
25
28
  import { FormContext } from '../FluidForm/FormContext.js';
26
- import { match } from '../../internal/keyboard/match.js';
27
- import ListBox from '../ListBox/ListBox.js';
28
29
  import { ListBoxSize } from '../ListBox/ListBoxPropTypes.js';
29
- import { Delete } from '../../internal/keyboard/keys.js';
30
+ import ListBox from '../ListBox/ListBox.js';
30
31
 
31
32
  var noop = function noop() {};
32
33
 
@@ -501,6 +502,5 @@ MultiSelect.defaultProps = {
501
502
  clearSelectionDescription: 'Total items selected: ',
502
503
  selectedItems: null
503
504
  };
504
- var MultiSelect$1 = MultiSelect;
505
505
 
506
- export { MultiSelect$1 as default };
506
+ export { MultiSelect as default };
@@ -5,18 +5,19 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends, slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { defineProperty as _defineProperty, objectWithoutProperties as _objectWithoutProperties, extends as _extends, slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default, { useState, useRef, useEffect } from 'react';
11
11
  import cx from 'classnames';
12
- import { Close, WarningAltFilled, InformationFilled, InformationSquareFilled, ErrorFilled, CheckmarkFilled, WarningFilled } from '@carbon/icons-react';
12
+ import { Close, ErrorFilled, CheckmarkFilled, WarningFilled, WarningAltFilled, InformationFilled, InformationSquareFilled } from '@carbon/icons-react';
13
+ import '../Button/Button.Skeleton.js';
13
14
  import Button from '../Button/Button.js';
14
15
  import useIsomorphicEffect from '../../internal/useIsomorphicEffect.js';
15
16
  import { useNoInteractiveChildren } from '../../internal/useNoInteractiveChildren.js';
17
+ import { Escape } from '../../internal/keyboard/keys.js';
18
+ import { matches } from '../../internal/keyboard/match.js';
16
19
  import { usePrefix } from '../../internal/usePrefix.js';
17
20
  import { useId } from '../../internal/useId.js';
18
- import { matches } from '../../internal/keyboard/match.js';
19
- import { Escape } from '../../internal/keyboard/keys.js';
20
21
 
21
22
  var _iconTypes;
22
23
 
@@ -117,7 +117,7 @@ var NumberInput = /*#__PURE__*/React__default.forwardRef(function NumberInput(pr
117
117
  incrementNumLabel = _ref[0],
118
118
  decrementNumLabel = _ref[1];
119
119
  var wrapperClasses = cx("".concat(prefix, "--number__input-wrapper"), _defineProperty({}, "".concat(prefix, "--number__input-wrapper--warning"), normalizedProps.warn));
120
- var iconClasses = cx((_cx3 = {}, _defineProperty(_cx3, "".concat(prefix, "--number__invalid"), normalizedProps.invalid || normalizedProps.warn), _defineProperty(_cx3, "".concat(prefix, "--number__invalid--warning"), normalizedProps.warn), _defineProperty(_cx3, "".concat(prefix, "--number__readonly-icon"), readOnly), _cx3));
120
+ var iconClasses = cx((_cx3 = {}, _defineProperty(_cx3, "".concat(prefix, "--number__invalid"), normalizedProps.invalid || normalizedProps.warn), _defineProperty(_cx3, "".concat(prefix, "--number__invalid--warning"), normalizedProps.warn), _cx3));
121
121
 
122
122
  if (controlledValue !== prevControlledValue) {
123
123
  setValue(controlledValue);
@@ -204,7 +204,7 @@ var NumberInput = /*#__PURE__*/React__default.forwardRef(function NumberInput(pr
204
204
  }, /*#__PURE__*/React__default.createElement("button", {
205
205
  "aria-label": decrementNumLabel || iconDescription,
206
206
  className: "".concat(prefix, "--number__control-btn down-icon"),
207
- disabled: disabled,
207
+ disabled: disabled || readOnly,
208
208
  onClick: function onClick(event) {
209
209
  var state = {
210
210
  value: clamp(max, min, parseInt(value) - step),
@@ -230,7 +230,7 @@ var NumberInput = /*#__PURE__*/React__default.forwardRef(function NumberInput(pr
230
230
  }), /*#__PURE__*/React__default.createElement("button", {
231
231
  "aria-label": incrementNumLabel || iconDescription,
232
232
  className: "".concat(prefix, "--number__control-btn up-icon"),
233
- disabled: disabled,
233
+ disabled: disabled || readOnly,
234
234
  onClick: function onClick(event) {
235
235
  var state = {
236
236
  value: clamp(max, min, parseInt(value) + step),
@@ -61,6 +61,5 @@ OrderedList.defaultProps = {
61
61
  native: false,
62
62
  isExpressive: false
63
63
  };
64
- var OrderedList$1 = OrderedList;
65
64
 
66
- export { OrderedList$1 as default };
65
+ export { OrderedList as default };
@@ -13,12 +13,12 @@ import cx from 'classnames';
13
13
  import ClickListener from '../../internal/ClickListener.js';
14
14
  import FloatingMenu, { DIRECTION_TOP, DIRECTION_BOTTOM } from '../../internal/FloatingMenu.js';
15
15
  import { OverflowMenuVertical } from '@carbon/icons-react';
16
+ import { ArrowDown, ArrowUp, ArrowRight, ArrowLeft, Escape } from '../../internal/keyboard/keys.js';
17
+ import { matches } from '../../internal/keyboard/match.js';
16
18
  import mergeRefs from '../../tools/mergeRefs.js';
17
19
  import { PrefixContext } from '../../internal/usePrefix.js';
18
20
  import * as FeatureFlags from '@carbon/feature-flags';
19
21
  import deprecate from '../../prop-types/deprecate.js';
20
- import { matches } from '../../internal/keyboard/match.js';
21
- import { ArrowDown, ArrowUp, ArrowRight, ArrowLeft, Escape } from '../../internal/keyboard/keys.js';
22
22
 
23
23
  var _excluded = ["id", "ariaLabel", "children", "iconDescription", "direction", "flipped", "focusTrap", "menuOffset", "menuOffsetFlip", "iconClass", "onClick", "onOpen", "selectorPrimaryFocus", "renderIcon", "innerRef", "menuOptionsClass", "light", "size"];
24
24
 
@@ -511,5 +511,15 @@ _defineProperty(OverflowMenu, "defaultProps", {
511
511
  menuOffsetFlip: getMenuOffset,
512
512
  selectorPrimaryFocus: '[data-overflow-menu-primary-focus]'
513
513
  });
514
+ ((function () {
515
+ var forwardRef = function forwardRef(props, ref) {
516
+ return /*#__PURE__*/React__default.createElement(OverflowMenu, _extends({}, props, {
517
+ innerRef: ref
518
+ }));
519
+ };
520
+
521
+ forwardRef.displayName = 'OverflowMenu';
522
+ return /*#__PURE__*/React__default.forwardRef(forwardRef);
523
+ }))();
514
524
 
515
525
  export { OverflowMenu, getMenuOffset };
@@ -5,15 +5,15 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, createClass as _createClass, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import cx from 'classnames';
10
10
  import PropTypes from 'prop-types';
11
11
  import React__default from 'react';
12
+ import { ArrowDown, ArrowUp } from '../../internal/keyboard/keys.js';
13
+ import { match } from '../../internal/keyboard/match.js';
12
14
  import { warning } from '../../internal/warning.js';
13
15
  import * as FeatureFlags from '@carbon/feature-flags';
14
16
  import { PrefixContext } from '../../internal/usePrefix.js';
15
- import { match } from '../../internal/keyboard/match.js';
16
- import { ArrowDown, ArrowUp } from '../../internal/keyboard/keys.js';
17
17
 
18
18
  var _excluded = ["href", "className", "itemText", "hasDivider", "isDelete", "disabled", "closeMenu", "onClick", "handleOverflowMenuItemFocus", "onKeyDown", "wrapperClassName", "requireTitle", "index", "title"];
19
19
 
@@ -5,8 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import OverflowMenuItem$1 from './OverflowMenuItem.js';
9
-
10
- var OverflowMenuItem = OverflowMenuItem$1;
11
-
12
- export { OverflowMenuItem as default };
8
+ import OverflowMenuItem from './OverflowMenuItem.js';
9
+ export { default } from './OverflowMenuItem.js';
@@ -12,10 +12,10 @@ import cx from 'classnames';
12
12
  import { OverflowMenuVertical } from '@carbon/icons-react';
13
13
  import { useId } from '../../internal/useId.js';
14
14
  import '../Menu/index.js';
15
- import { usePrefix } from '../../internal/usePrefix.js';
15
+ import { ArrowUp, ArrowRight, ArrowDown, ArrowLeft } from '../../internal/keyboard/keys.js';
16
16
  import { matches } from '../../internal/keyboard/match.js';
17
+ import { usePrefix } from '../../internal/usePrefix.js';
17
18
  import Menu from '../Menu/Menu.js';
18
- import { ArrowUp, ArrowRight, ArrowDown, ArrowLeft } from '../../internal/keyboard/keys.js';
19
19
 
20
20
  var _excluded = ["children", "className", "renderIcon", "size"];
21
21
  var defaultSize = 'md';
@@ -5,11 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, typeof as _typeof, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends, typeof as _typeof } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { CaretLeft, CaretRight } from '@carbon/icons-react';
10
10
  import cx from 'classnames';
11
11
  import PropTypes from 'prop-types';
12
12
  import React__default, { useRef, useState } from 'react';
13
+ import '../Select/Select.Skeleton.js';
13
14
  import Select from '../Select/Select.js';
14
15
  import SelectItem from '../SelectItem/SelectItem.js';
15
16
  import { equals } from '../../tools/array.js';
@@ -96,8 +97,8 @@ var Pagination = /*#__PURE__*/React__default.forwardRef(function Pagination(_ref
96
97
  pageSizeInputDisabled = _ref.pageSizeInputDisabled,
97
98
  controlledPageSizes = _ref.pageSizes,
98
99
  _ref$pageText = _ref.pageText,
99
- pageText = _ref$pageText === void 0 ? function (page) {
100
- return "page ".concat(page);
100
+ pageText = _ref$pageText === void 0 ? function (page, pagesUnknown) {
101
+ return "page ".concat(pagesUnknown ? '' : page);
101
102
  } : _ref$pageText,
102
103
  _ref$pagesUnknown = _ref.pagesUnknown,
103
104
  pagesUnknown = _ref$pagesUnknown === void 0 ? false : _ref$pagesUnknown,
@@ -278,7 +279,9 @@ var Pagination = /*#__PURE__*/React__default.forwardRef(function Pagination(_ref
278
279
  className: "".concat(prefix, "--pagination__text ").concat(prefix, "--pagination__items-count")
279
280
  }, pagesUnknown ? itemText(pageSize * (page - 1) + 1, page * pageSize) : itemRangeText(Math.min(pageSize * (page - 1) + 1, totalItems), Math.min(page * pageSize, totalItems), totalItems))), /*#__PURE__*/React__default.createElement("div", {
280
281
  className: "".concat(prefix, "--pagination__right")
281
- }, /*#__PURE__*/React__default.createElement(Select, {
282
+ }, pagesUnknown ? /*#__PURE__*/React__default.createElement("span", {
283
+ className: "".concat(prefix, "--pagination__text ").concat(prefix, "--pagination__page-text")
284
+ }, pagesUnknown ? pageText(page, pagesUnknown) : pageRangeText(page, totalPages)) : null, /*#__PURE__*/React__default.createElement(Select, {
282
285
  id: "".concat(prefix, "-pagination-select-").concat(inputId, "-right"),
283
286
  className: "".concat(prefix, "--select__page-number"),
284
287
  labelText: "Page number, of ".concat(totalPages, " pages"),
@@ -287,9 +290,9 @@ var Pagination = /*#__PURE__*/React__default.forwardRef(function Pagination(_ref
287
290
  onChange: handlePageInputChange,
288
291
  value: page,
289
292
  disabled: pageInputDisabled || disabled
290
- }, selectItems), /*#__PURE__*/React__default.createElement("span", {
293
+ }, selectItems), pagesUnknown ? null : /*#__PURE__*/React__default.createElement("span", {
291
294
  className: "".concat(prefix, "--pagination__text")
292
- }, pagesUnknown ? pageText(page) : pageRangeText(page, totalPages)), /*#__PURE__*/React__default.createElement("div", {
295
+ }, pagesUnknown ? pageText(page, pagesUnknown) : pageRangeText(page, totalPages)), /*#__PURE__*/React__default.createElement("div", {
293
296
  className: "".concat(prefix, "--pagination__control-buttons")
294
297
  }, /*#__PURE__*/React__default.createElement(IconButton, {
295
298
  align: "top",
@@ -416,6 +419,5 @@ Pagination.propTypes = {
416
419
  */
417
420
  totalItems: PropTypes.number
418
421
  };
419
- var Pagination$1 = Pagination;
420
422
 
421
- export { Pagination$1 as default };
423
+ export { Pagination as default };
@@ -10,6 +10,7 @@ import React__default from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import cx from 'classnames';
12
12
  import setupGetInstanceId from '../../../tools/setupGetInstanceId.js';
13
+ import '../../Select/Select.Skeleton.js';
13
14
  import Select from '../../Select/Select.js';
14
15
  import SelectItem from '../../SelectItem/SelectItem.js';
15
16
  import { usePrefix } from '../../../internal/usePrefix.js';
@@ -10,7 +10,9 @@ import React__default, { useState } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import cx from 'classnames';
12
12
  import { CaretLeft, CaretRight } from '@carbon/icons-react';
13
+ import '../../Button/Button.Skeleton.js';
13
14
  import Button from '../../Button/Button.js';
15
+ import '../../Select/Select.Skeleton.js';
14
16
  import Select from '../../Select/Select.js';
15
17
  import SelectItem from '../../SelectItem/SelectItem.js';
16
18
  import { IconButton } from '../../IconButton/index.js';
@@ -7,3 +7,4 @@
7
7
 
8
8
  import Pagination from './Pagination.js';
9
9
  export { default } from './Pagination.js';
10
+ import './Pagination.Skeleton.js';
@@ -10,6 +10,7 @@ import PropTypes from 'prop-types';
10
10
  import React__default, { useState, useEffect, useRef } from 'react';
11
11
  import cx from 'classnames';
12
12
  import { CaretRight, CaretLeft, OverflowMenuHorizontal } from '@carbon/icons-react';
13
+ import '../Button/Button.Skeleton.js';
13
14
  import Button from '../Button/Button.js';
14
15
  import { IconButton } from '../IconButton/index.js';
15
16
  import * as FeatureFlags from '@carbon/feature-flags';
@@ -431,6 +432,5 @@ PaginationNav.propTypes = {
431
432
  */
432
433
  translateWithId: PropTypes.func
433
434
  };
434
- var PaginationNav$1 = PaginationNav;
435
435
 
436
- export { PaginationNav$1 as default };
436
+ export { PaginationNav as default };
@@ -7,6 +7,7 @@
7
7
 
8
8
  import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default from 'react';
10
+ import '../Button/Button.Skeleton.js';
10
11
  import Button from '../Button/Button.js';
11
12
 
12
13
  var PrimaryButton = function PrimaryButton(props) {
@@ -15,6 +16,4 @@ var PrimaryButton = function PrimaryButton(props) {
15
16
  }, props));
16
17
  };
17
18
 
18
- var PrimaryButton$1 = PrimaryButton;
19
-
20
- export { PrimaryButton$1 as default };
19
+ export { PrimaryButton as default };
@@ -9,10 +9,10 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
9
9
  import cx from 'classnames';
10
10
  import PropTypes from 'prop-types';
11
11
  import React__default, { useState } from 'react';
12
+ import { Enter, Space } from '../../internal/keyboard/keys.js';
13
+ import { matches } from '../../internal/keyboard/match.js';
12
14
  import { Warning, Incomplete, CheckmarkOutline, CircleDash } from '@carbon/icons-react';
13
15
  import { usePrefix } from '../../internal/usePrefix.js';
14
- import { matches } from '../../internal/keyboard/match.js';
15
- import { Enter, Space } from '../../internal/keyboard/keys.js';
16
16
 
17
17
  var _excluded = ["children", "className", "currentIndex", "onChange", "spaceEqually", "vertical"],
18
18
  _excluded2 = ["label", "description", "className", "current", "complete", "invalid", "secondaryLabel", "disabled", "onClick", "translateWithId"];
@@ -202,9 +202,7 @@ function ProgressStep(_ref2) {
202
202
  onClick: !current ? onClick : undefined,
203
203
  onKeyDown: handleKeyDown,
204
204
  title: label
205
- }, rest), /*#__PURE__*/React__default.createElement("span", {
206
- className: "".concat(prefix, "--assistive-text")
207
- }, message), /*#__PURE__*/React__default.createElement(SVGIcon, {
205
+ }, rest), /*#__PURE__*/React__default.createElement(SVGIcon, {
208
206
  complete: complete,
209
207
  current: current,
210
208
  description: description,
@@ -217,6 +215,8 @@ function ProgressStep(_ref2) {
217
215
  }, label), secondaryLabel !== null && secondaryLabel !== undefined ? /*#__PURE__*/React__default.createElement("p", {
218
216
  className: "".concat(prefix, "--progress-optional")
219
217
  }, secondaryLabel) : null), /*#__PURE__*/React__default.createElement("span", {
218
+ className: "".concat(prefix, "--assistive-text")
219
+ }, message), /*#__PURE__*/React__default.createElement("span", {
220
220
  className: "".concat(prefix, "--progress-line")
221
221
  })));
222
222
  }