@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
@@ -38,6 +38,4 @@ var denormalize = function denormalize(rowIds, rowsById, cellsById) {
38
38
  });
39
39
  };
40
40
 
41
- var denormalize$1 = denormalize;
42
-
43
- export { denormalize$1 as default };
41
+ export { denormalize as default };
@@ -16,6 +16,4 @@ var setupGetInstanceId = function setupGetInstanceId() {
16
16
  };
17
17
  };
18
18
 
19
- var setupGetInstanceId$1 = setupGetInstanceId;
20
-
21
- export { setupGetInstanceId$1 as default };
19
+ export { setupGetInstanceId as default };
@@ -73,6 +73,4 @@ var normalize = function normalize(rows, headers) {
73
73
  };
74
74
  };
75
75
 
76
- var normalize$1 = normalize;
77
-
78
- export { normalize$1 as default };
76
+ export { normalize as default };
@@ -128,6 +128,5 @@ DataTableSkeleton.defaultProps = {
128
128
  showHeader: true,
129
129
  showToolbar: true
130
130
  };
131
- var DataTableSkeleton$1 = DataTableSkeleton;
132
131
 
133
- export { DataTableSkeleton$1 as default };
132
+ export { DataTableSkeleton as default };
@@ -64,6 +64,5 @@ DatePickerSkeleton.propTypes = {
64
64
  */
65
65
  range: PropTypes.bool
66
66
  };
67
- var DatePickerSkeleton$1 = DatePickerSkeleton;
68
67
 
69
- export { DatePickerSkeleton$1 as default };
68
+ export { DatePickerSkeleton as default };
@@ -16,14 +16,15 @@ import carbonFlatpickrAppendToPlugin from './plugins/appendToPlugin.js';
16
16
  import carbonFlatpickrFixEventsPlugin from './plugins/fixEventsPlugin.js';
17
17
  import carbonFlatpickrRangePlugin from './plugins/rangePlugin.js';
18
18
  import deprecate from '../../prop-types/deprecate.js';
19
+ import { Escape, ArrowDown } from '../../internal/keyboard/keys.js';
20
+ import { match } from '../../internal/keyboard/match.js';
19
21
  import { usePrefix } from '../../internal/usePrefix.js';
20
22
  import { useSavedCallback } from '../../internal/useSavedCallback.js';
21
- import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
23
+ import '../FluidForm/FluidForm.js';
22
24
  import { FormContext } from '../FluidForm/FormContext.js';
23
- import { match } from '../../internal/keyboard/match.js';
24
- import { Escape, ArrowDown } from '../../internal/keyboard/keys.js';
25
+ import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';
25
26
 
26
- var _excluded = ["allowInput", "appendTo", "children", "className", "closeOnSelect", "dateFormat", "datePickerType", "disable", "enable", "inline", "invalid", "invalidText", "warn", "warnText", "light", "locale", "maxDate", "minDate", "onChange", "onClose", "onOpen", "short", "value"];
27
+ var _excluded = ["allowInput", "appendTo", "children", "className", "closeOnSelect", "dateFormat", "datePickerType", "disable", "enable", "inline", "invalid", "invalidText", "warn", "warnText", "light", "locale", "maxDate", "minDate", "onChange", "onClose", "onOpen", "readOnly", "short", "value"];
27
28
 
28
29
  l10n.en.weekdays.shorthand.forEach(function (_day, index) {
29
30
  var currentDay = l10n.en.weekdays.shorthand;
@@ -84,13 +85,15 @@ var carbonFlatpickrMonthSelectPlugin = function carbonFlatpickrMonthSelectPlugin
84
85
  };
85
86
 
86
87
  var updateCurrentMonth = function updateCurrentMonth() {
87
- var monthStr = monthToStr(fp.currentMonth, config.shorthand === true, fp.l10n);
88
- fp.yearElements.forEach(function (elem) {
89
- var currentMonthContainer = elem.closest(config.selectorFlatpickrMonthYearContainer);
90
- Array.prototype.forEach.call(currentMonthContainer.querySelectorAll('.cur-month'), function (monthElement) {
91
- monthElement.textContent = monthStr;
88
+ if (fp.monthElements) {
89
+ var monthStr = monthToStr(fp.currentMonth, config.shorthand === true, fp.l10n);
90
+ fp.yearElements.forEach(function (elem) {
91
+ var currentMonthContainer = elem.closest(config.selectorFlatpickrMonthYearContainer);
92
+ Array.prototype.forEach.call(currentMonthContainer.querySelectorAll('.cur-month'), function (monthElement) {
93
+ monthElement.textContent = monthStr;
94
+ });
92
95
  });
93
- });
96
+ }
94
97
  };
95
98
 
96
99
  var register = function register() {
@@ -176,6 +179,8 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
176
179
  onChange = _ref.onChange,
177
180
  onClose = _ref.onClose,
178
181
  onOpen = _ref.onOpen,
182
+ _ref$readOnly = _ref.readOnly,
183
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
179
184
  _ref$short = _ref.short,
180
185
  short = _ref$short === void 0 ? false : _ref$short,
181
186
  value = _ref.value,
@@ -198,26 +203,30 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
198
203
  if (index === 0 && child.type === React__default.createElement(DatePickerInput, child.props).type) {
199
204
  return /*#__PURE__*/React__default.cloneElement(child, {
200
205
  datePickerType: datePickerType,
201
- ref: startInputField
206
+ ref: startInputField,
207
+ readOnly: readOnly
202
208
  });
203
209
  }
204
210
 
205
211
  if (index === 1 && child.type === React__default.createElement(DatePickerInput, child.props).type) {
206
212
  return /*#__PURE__*/React__default.cloneElement(child, {
207
213
  datePickerType: datePickerType,
208
- ref: endInputField
214
+ ref: endInputField,
215
+ readOnly: readOnly
209
216
  });
210
217
  }
211
218
 
212
219
  if (index === 0) {
213
220
  return /*#__PURE__*/React__default.cloneElement(child, {
214
- ref: startInputField
221
+ ref: startInputField,
222
+ readOnly: readOnly
215
223
  });
216
224
  }
217
225
 
218
226
  if (index === 1) {
219
227
  return /*#__PURE__*/React__default.cloneElement(child, {
220
- ref: endInputField
228
+ ref: endInputField,
229
+ readOnly: readOnly
221
230
  });
222
231
  }
223
232
  });
@@ -234,6 +243,14 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
234
243
 
235
244
  var onHook = function onHook(_electedDates, _dateStr, instance, prefix) {
236
245
  updateClassNames(instance, prefix);
246
+
247
+ if (startInputField !== null && startInputField !== void 0 && startInputField.current) {
248
+ startInputField.current.readOnly = readOnly;
249
+ }
250
+
251
+ if (endInputField !== null && endInputField !== void 0 && endInputField.current) {
252
+ endInputField.current.readOnly = readOnly;
253
+ }
237
254
  }; // Logic to determine if `enable` or `disable` will be passed down. If neither
238
255
  // is provided, we return the default empty disabled array, allowing all dates.
239
256
 
@@ -281,8 +298,8 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
281
298
  }), carbonFlatpickrFixEventsPlugin({
282
299
  inputFrom: startInputField.current,
283
300
  inputTo: endInputField.current
284
- })]), _defineProperty(_flatpickr, "clickOpens", true), _defineProperty(_flatpickr, "nextArrow", rightArrowHTML), _defineProperty(_flatpickr, "prevArrow", leftArrowHTML), _defineProperty(_flatpickr, "onChange", function onChange() {
285
- if (savedOnChange) {
301
+ })]), _defineProperty(_flatpickr, "clickOpens", !readOnly), _defineProperty(_flatpickr, "noCalendar", readOnly), _defineProperty(_flatpickr, "nextArrow", rightArrowHTML), _defineProperty(_flatpickr, "prevArrow", leftArrowHTML), _defineProperty(_flatpickr, "onChange", function onChange() {
302
+ if (savedOnChange && !readOnly) {
286
303
  savedOnChange.apply(void 0, arguments);
287
304
  }
288
305
  }), _defineProperty(_flatpickr, "onClose", savedOnClose), _defineProperty(_flatpickr, "onReady", onHook), _defineProperty(_flatpickr, "onMonthChange", onHook), _defineProperty(_flatpickr, "onYearChange", onHook), _defineProperty(_flatpickr, "onOpen", function onOpen() {
@@ -329,13 +346,16 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
329
346
 
330
347
  if (start) {
331
348
  start.addEventListener('keydown', handleArrowDown);
332
- start.addEventListener('change', handleOnChange); // Flatpickr's calendar dialog is not rendered in a landmark causing an
333
- // error with IBM Equal Access Accessibility Checker so we add an aria
334
- // role to the container div.
349
+ start.addEventListener('change', handleOnChange);
335
350
 
336
- calendar.calendarContainer.setAttribute('role', 'application'); // IBM EAAC requires an aria-label on a role='region'
351
+ if (calendar && calendar.calendarContainer) {
352
+ // Flatpickr's calendar dialog is not rendered in a landmark causing an
353
+ // error with IBM Equal Access Accessibility Checker so we add an aria
354
+ // role to the container div.
355
+ calendar.calendarContainer.setAttribute('role', 'application'); // IBM EAAC requires an aria-label on a role='region'
337
356
 
338
- calendar.calendarContainer.setAttribute('aria-label', 'calendar-container');
357
+ calendar.calendarContainer.setAttribute('aria-label', 'calendar-container');
358
+ }
339
359
  }
340
360
 
341
361
  if (end) {
@@ -361,42 +381,56 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
361
381
  end.removeEventListener('change', handleOnChange);
362
382
  }
363
383
  };
364
- }, [savedOnChange, savedOnClose, savedOnOpen]); //eslint-disable-line react-hooks/exhaustive-deps
384
+ }, [savedOnChange, savedOnClose, savedOnOpen, readOnly]); //eslint-disable-line react-hooks/exhaustive-deps
365
385
 
366
386
  useEffect(function () {
367
- if (calendarRef.current) {
387
+ var _calendarRef$current;
388
+
389
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current = calendarRef.current) !== null && _calendarRef$current !== void 0 && _calendarRef$current.set) {
368
390
  calendarRef.current.set({
369
391
  dateFormat: dateFormat
370
392
  });
371
393
  }
372
394
  }, [dateFormat]);
373
395
  useEffect(function () {
374
- if (calendarRef.current) {
396
+ var _calendarRef$current2;
397
+
398
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current2 = calendarRef.current) !== null && _calendarRef$current2 !== void 0 && _calendarRef$current2.set) {
375
399
  calendarRef.current.set('minDate', minDate);
376
400
  }
377
401
  }, [minDate]);
378
402
  useEffect(function () {
379
- if (calendarRef.current) {
403
+ var _calendarRef$current3;
404
+
405
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current3 = calendarRef.current) !== null && _calendarRef$current3 !== void 0 && _calendarRef$current3.set) {
380
406
  calendarRef.current.set('maxDate', maxDate);
381
407
  }
382
408
  }, [maxDate]);
383
409
  useEffect(function () {
384
- if (calendarRef.current && disable) {
410
+ var _calendarRef$current4;
411
+
412
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current4 = calendarRef.current) !== null && _calendarRef$current4 !== void 0 && _calendarRef$current4.set && disable) {
385
413
  calendarRef.current.set('disable', disable);
386
414
  }
387
415
  }, [disable]);
388
416
  useEffect(function () {
389
- if (calendarRef.current && enable) {
417
+ var _calendarRef$current5;
418
+
419
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current5 = calendarRef.current) !== null && _calendarRef$current5 !== void 0 && _calendarRef$current5.set && enable) {
390
420
  calendarRef.current.set('enable', enable);
391
421
  }
392
422
  }, [enable]);
393
423
  useEffect(function () {
394
- if (calendarRef.current && inline) {
424
+ var _calendarRef$current6;
425
+
426
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current6 = calendarRef.current) !== null && _calendarRef$current6 !== void 0 && _calendarRef$current6.set && inline) {
395
427
  calendarRef.current.set('inline', inline);
396
428
  }
397
429
  }, [inline]);
398
430
  useEffect(function () {
399
- if (calendarRef.current) {
431
+ var _calendarRef$current7;
432
+
433
+ if (calendarRef !== null && calendarRef !== void 0 && (_calendarRef$current7 = calendarRef.current) !== null && _calendarRef$current7 !== void 0 && _calendarRef$current7.set) {
400
434
  if (value !== undefined) {
401
435
  calendarRef.current.setDate(value);
402
436
  }
@@ -599,6 +633,13 @@ DatePicker.propTypes = {
599
633
  */
600
634
  onOpen: PropTypes.func,
601
635
 
636
+ /**
637
+ * whether the DatePicker is to be readOnly
638
+ * if boolean applies to all inputs
639
+ * if array applies to each input in order
640
+ */
641
+ readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.array]),
642
+
602
643
  /**
603
644
  * `true` to use the short version.
604
645
  */
@@ -620,6 +661,5 @@ DatePicker.propTypes = {
620
661
  */
621
662
  warnText: PropTypes.node
622
663
  };
623
- var DatePicker$1 = DatePicker;
624
664
 
625
- export { DatePicker$1 as default };
665
+ export { DatePicker as default };
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { match } from '../../../internal/keyboard/match.js';
9
8
  import { Enter, ArrowLeft, ArrowRight, ArrowDown } from '../../../internal/keyboard/keys.js';
9
+ import { match } from '../../../internal/keyboard/match.js';
10
10
 
11
11
  /**
12
12
  * @param {object} config Plugin configuration.
@@ -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 { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { WarningFilled, WarningAltFilled, Calendar } from '@carbon/icons-react';
10
10
  import cx from 'classnames';
11
11
  import PropTypes from 'prop-types';
12
12
  import React__default, { useContext } from 'react';
13
13
  import { usePrefix } from '../../internal/usePrefix.js';
14
+ import '../FluidForm/FluidForm.js';
14
15
  import { FormContext } from '../FluidForm/FormContext.js';
15
16
 
16
17
  var _excluded = ["datePickerType", "disabled", "helperText", "hideLabel", "id", "invalid", "invalidText", "labelText", "onClick", "onChange", "pattern", "placeholder", "size", "type", "warn", "warnText"];
@@ -64,20 +65,22 @@ var DatePickerInput = /*#__PURE__*/React__default.forwardRef(function DatePicker
64
65
  type: type
65
66
  };
66
67
  var wrapperClasses = cx("".concat(prefix, "--date-picker-input__wrapper"), (_cx = {}, _defineProperty(_cx, "".concat(prefix, "--date-picker-input__wrapper--invalid"), invalid), _defineProperty(_cx, "".concat(prefix, "--date-picker-input__wrapper--warn"), warn), _cx));
67
- var labelClasses = cx("".concat(prefix, "--label"), (_cx2 = {}, _defineProperty(_cx2, "".concat(prefix, "--visually-hidden"), hideLabel), _defineProperty(_cx2, "".concat(prefix, "--label--disabled"), disabled), _cx2));
68
+ var labelClasses = cx("".concat(prefix, "--label"), (_cx2 = {}, _defineProperty(_cx2, "".concat(prefix, "--visually-hidden"), hideLabel), _defineProperty(_cx2, "".concat(prefix, "--label--disabled"), disabled), _defineProperty(_cx2, "".concat(prefix, "--label--readonly"), rest.readOnly), _cx2));
68
69
  var helperTextClasses = cx("".concat(prefix, "--form__helper-text"), _defineProperty({}, "".concat(prefix, "--form__helper-text--disabled"), disabled));
69
70
  var inputClasses = cx("".concat(prefix, "--date-picker__input"), (_cx4 = {}, _defineProperty(_cx4, "".concat(prefix, "--date-picker__input--").concat(size), size), _defineProperty(_cx4, "".concat(prefix, "--date-picker__input--invalid"), invalid), _defineProperty(_cx4, "".concat(prefix, "--date-picker__input--warn"), warn), _cx4));
70
71
  var containerClasses = cx("".concat(prefix, "--date-picker-container"), (_cx5 = {}, _defineProperty(_cx5, "".concat(prefix, "--date-picker--nolabel"), !labelText), _defineProperty(_cx5, "".concat(prefix, "--date-picker--fluid--invalid"), isFluid && invalid), _defineProperty(_cx5, "".concat(prefix, "--date-picker--fluid--warn"), isFluid && warn), _cx5));
71
- var input = invalid ? /*#__PURE__*/React__default.createElement("input", _extends({}, rest, datePickerInputProps, {
72
- disabled: disabled,
73
- ref: ref,
74
- "data-invalid": true,
75
- className: inputClasses
76
- })) : /*#__PURE__*/React__default.createElement("input", _extends({}, rest, datePickerInputProps, {
77
- disabled: disabled,
72
+
73
+ var inputProps = _objectSpread2(_objectSpread2(_objectSpread2({}, rest), datePickerInputProps), {}, {
78
74
  className: inputClasses,
75
+ disabled: disabled,
79
76
  ref: ref
80
- }));
77
+ });
78
+
79
+ if (invalid) {
80
+ inputProps['data-invalid'] = true;
81
+ }
82
+
83
+ var input = /*#__PURE__*/React__default.createElement("input", inputProps);
81
84
  return /*#__PURE__*/React__default.createElement("div", {
82
85
  className: containerClasses
83
86
  }, labelText && /*#__PURE__*/React__default.createElement("label", {
@@ -180,6 +183,11 @@ DatePickerInput.propTypes = {
180
183
  */
181
184
  placeholder: PropTypes.string,
182
185
 
186
+ /**
187
+ * whether the DatePicker is to be readOnly
188
+ */
189
+ readOnly: PropTypes.bool,
190
+
183
191
  /**
184
192
  * Specify the size of the Date Picker Input. Currently supports either `sm`, `md`, or `lg` as an option.
185
193
  */
@@ -255,6 +263,5 @@ DatePickerIcon.propTypes = {
255
263
  */
256
264
  warn: PropTypes.bool
257
265
  };
258
- var DatePickerInput$1 = DatePickerInput;
259
266
 
260
- export { DatePickerInput$1 as default };
267
+ export { DatePickerInput as default };
@@ -9,6 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
+ import '../ListBox/index.js';
12
13
  import { usePrefix } from '../../internal/usePrefix.js';
13
14
  import { ListBoxSize } from '../ListBox/ListBoxPropTypes.js';
14
15
 
@@ -41,6 +42,5 @@ DropdownSkeleton.propTypes = {
41
42
  */
42
43
  size: ListBoxSize
43
44
  };
44
- var DropdownSkeleton$1 = DropdownSkeleton;
45
45
 
46
- export { DropdownSkeleton$1 as default };
46
+ export { DropdownSkeleton as default };
@@ -16,9 +16,10 @@ import mergeRefs from '../../tools/mergeRefs.js';
16
16
  import deprecate from '../../prop-types/deprecate.js';
17
17
  import { useFeatureFlag } from '../FeatureFlags/index.js';
18
18
  import { usePrefix } from '../../internal/usePrefix.js';
19
+ import '../FluidForm/FluidForm.js';
19
20
  import { FormContext } from '../FluidForm/FormContext.js';
20
- import ListBox from '../ListBox/ListBox.js';
21
21
  import { ListBoxSize, ListBoxType } from '../ListBox/ListBoxPropTypes.js';
22
+ import ListBox from '../ListBox/ListBox.js';
22
23
 
23
24
  var _excluded = ["className", "disabled", "direction", "items", "label", "ariaLabel", "itemToString", "itemToElement", "renderSelectedItem", "type", "size", "onChange", "id", "titleText", "hideLabel", "helperText", "translateWithId", "light", "invalid", "invalidText", "warn", "warnText", "initialSelectedItem", "selectedItem", "downshiftProps"];
24
25
 
@@ -328,6 +329,5 @@ Dropdown.defaultProps = {
328
329
  helperText: '',
329
330
  direction: 'bottom'
330
331
  };
331
- var Dropdown$1 = Dropdown;
332
332
 
333
- export { Dropdown$1 as default };
333
+ export { Dropdown as default };
@@ -5,7 +5,7 @@
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 } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import { ErrorBoundaryContext } from './ErrorBoundaryContext.js';
@@ -9,6 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
9
9
  import React__default, { useState, useRef } from 'react';
10
10
  import cx from 'classnames';
11
11
  import Search from '../Search/Search.js';
12
+ import '../Search/Search.Skeleton.js';
12
13
  import { usePrefix } from '../../internal/usePrefix.js';
13
14
  import { composeEventHandlers } from '../../tools/events.js';
14
15
 
@@ -5,7 +5,7 @@
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 * as FeatureFlags from '@carbon/feature-flags';
@@ -13,9 +13,9 @@ import React__default from 'react';
13
13
  import Filename from './Filename.js';
14
14
  import FileUploaderButton from './FileUploaderButton.js';
15
15
  import { ButtonKinds } from '../../prop-types/types.js';
16
- import { PrefixContext } from '../../internal/usePrefix.js';
17
- import { matches } from '../../internal/keyboard/match.js';
18
16
  import { Enter, Space } from '../../internal/keyboard/keys.js';
17
+ import { matches } from '../../internal/keyboard/match.js';
18
+ import { PrefixContext } from '../../internal/usePrefix.js';
19
19
 
20
20
  var _excluded = ["iconDescription", "buttonLabel", "buttonKind", "disabled", "filenameStatus", "labelDescription", "labelTitle", "className", "multiple", "accept", "name", "size", "onDelete"];
21
21
 
@@ -9,12 +9,12 @@ 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, useRef } from 'react';
12
+ import { Enter, Space } from '../../internal/keyboard/keys.js';
13
+ import { matches } from '../../internal/keyboard/match.js';
12
14
  import { ButtonKinds } from '../../prop-types/types.js';
13
15
  import uniqueId from '../../tools/uniqueId.js';
14
16
  import { usePrefix } from '../../internal/usePrefix.js';
15
17
  import * as FeatureFlags from '@carbon/feature-flags';
16
- import { matches } from '../../internal/keyboard/match.js';
17
- import { Enter, Space } from '../../internal/keyboard/keys.js';
18
18
 
19
19
  var _excluded = ["accept", "buttonKind", "className", "disabled", "disableLabelChanges", "id", "labelText", "multiple", "onChange", "role", "name", "size", "tabIndex", "innerRef"];
20
20
 
@@ -9,10 +9,10 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
9
9
  import React__default, { useRef, useState } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import cx from 'classnames';
12
+ import { Enter, Space } from '../../internal/keyboard/keys.js';
13
+ import { matches } from '../../internal/keyboard/match.js';
12
14
  import uniqueId from '../../tools/uniqueId.js';
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 = ["accept", "className", "id", "disabled", "labelText", "multiple", "name", "onAddFiles", "pattern", "role", "tabIndex", "innerRef"];
18
18
 
@@ -10,11 +10,11 @@ import cx from 'classnames';
10
10
  import PropTypes from 'prop-types';
11
11
  import React__default, { useRef } from 'react';
12
12
  import Filename from './Filename.js';
13
+ import { Enter, Space } from '../../internal/keyboard/keys.js';
14
+ import { matches } from '../../internal/keyboard/match.js';
13
15
  import uniqueId from '../../tools/uniqueId.js';
14
16
  import { usePrefix } from '../../internal/usePrefix.js';
15
17
  import * as FeatureFlags from '@carbon/feature-flags';
16
- import { matches } from '../../internal/keyboard/match.js';
17
- import { Enter, Space } from '../../internal/keyboard/keys.js';
18
18
 
19
19
  var _excluded = ["uuid", "name", "status", "iconDescription", "onDelete", "invalid", "errorSubject", "errorBody", "size"];
20
20
 
@@ -36,6 +36,5 @@ FluidComboBoxSkeleton.propTypes = {
36
36
  */
37
37
  className: PropTypes.string
38
38
  };
39
- var FluidComboBoxSkeleton$1 = FluidComboBoxSkeleton;
40
39
 
41
- export { FluidComboBoxSkeleton$1 as default };
40
+ export { FluidComboBoxSkeleton as default };
@@ -135,6 +135,5 @@ FluidComboBox.propTypes = {
135
135
  */
136
136
  warnText: PropTypes.node
137
137
  };
138
- var FluidComboBox$1 = FluidComboBox;
139
138
 
140
- export { FluidComboBox$1 as default };
139
+ export { FluidComboBox as default };
@@ -9,6 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
+ import '../DatePicker/DatePicker.Skeleton.js';
12
13
  import DatePicker from '../DatePicker/DatePicker.js';
13
14
  import { usePrefix } from '../../internal/usePrefix.js';
14
15
  import { FormContext } from '../FluidForm/FormContext.js';
@@ -71,6 +72,5 @@ FluidDatePicker.propTypes = {
71
72
  */
72
73
  warnText: PropTypes.node
73
74
  };
74
- var FluidDatePicker$1 = FluidDatePicker;
75
75
 
76
- export { FluidDatePicker$1 as default };
76
+ export { FluidDatePicker as default };
@@ -21,6 +21,5 @@ var FluidDatePickerInput = /*#__PURE__*/React__default.forwardRef(function Fluid
21
21
  ref: ref
22
22
  }, other)));
23
23
  });
24
- var FluidDatePickerInput$1 = FluidDatePickerInput;
25
24
 
26
- export { FluidDatePickerInput$1 as default };
25
+ export { FluidDatePickerInput as default };
@@ -36,6 +36,5 @@ FluidDropdownSkeleton.propTypes = {
36
36
  */
37
37
  className: PropTypes.string
38
38
  };
39
- var FluidDropdownSkeleton$1 = FluidDropdownSkeleton;
40
39
 
41
- export { FluidDropdownSkeleton$1 as default };
40
+ export { FluidDropdownSkeleton as default };
@@ -9,6 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
+ import '../Dropdown/Dropdown.Skeleton.js';
12
13
  import Dropdown from '../Dropdown/Dropdown.js';
13
14
  import { usePrefix } from '../../internal/usePrefix.js';
14
15
  import { FormContext } from '../FluidForm/FormContext.js';
@@ -135,6 +136,5 @@ FluidDropdown.propTypes = {
135
136
  */
136
137
  warnText: PropTypes.node
137
138
  };
138
- var FluidDropdown$1 = FluidDropdown;
139
139
 
140
- export { FluidDropdown$1 as default };
140
+ export { FluidDropdown as default };
@@ -36,6 +36,5 @@ FluidMultiSelectSkeleton.propTypes = {
36
36
  */
37
37
  className: PropTypes.string
38
38
  };
39
- var FluidMultiSelectSkeleton$1 = FluidMultiSelectSkeleton;
40
39
 
41
- export { FluidMultiSelectSkeleton$1 as default };
40
+ export { FluidMultiSelectSkeleton as default };
@@ -146,6 +146,5 @@ FluidMultiSelect.propTypes = {
146
146
  */
147
147
  warnText: PropTypes.node
148
148
  };
149
- var FluidMultiSelect$1 = FluidMultiSelect;
150
149
 
151
- export { FluidMultiSelect$1 as default };
150
+ export { FluidMultiSelect as default };
@@ -36,6 +36,5 @@ FluidSelectSkeleton.propTypes = {
36
36
  */
37
37
  className: PropTypes.string
38
38
  };
39
- var FluidSelectSkeleton$1 = FluidSelectSkeleton;
40
39
 
41
- export { FluidSelectSkeleton$1 as default };
40
+ export { FluidSelectSkeleton as default };
@@ -9,6 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
+ import '../Select/Select.Skeleton.js';
12
13
  import Select from '../Select/Select.js';
13
14
  import { usePrefix } from '../../internal/usePrefix.js';
14
15
  import { FormContext } from '../FluidForm/FormContext.js';
@@ -88,6 +89,5 @@ FluidSelect.propTypes = {
88
89
  */
89
90
  warnText: PropTypes.node
90
91
  };
91
- var FluidSelect$1 = FluidSelect;
92
92
 
93
- export { FluidSelect$1 as default };
93
+ export { FluidSelect as default };
@@ -9,6 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
+ import '../TextArea/TextArea.Skeleton.js';
12
13
  import TextArea from '../TextArea/TextArea.js';
13
14
  import deprecate from '../../prop-types/deprecate.js';
14
15
  import { usePrefix } from '../../internal/usePrefix.js';
@@ -10,6 +10,7 @@ import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
12
  import '../TextInput/index.js';
13
+ import '../TextInput/ControlledPasswordInput.js';
13
14
  import PasswordInput from '../TextInput/PasswordInput.js';
14
15
  import { usePrefix } from '../../internal/usePrefix.js';
15
16
  import { FormContext } from '../FluidForm/FormContext.js';
@@ -36,6 +36,5 @@ Form.propTypes = {
36
36
  */
37
37
  className: PropTypes.string
38
38
  };
39
- var Form$1 = Form;
40
39
 
41
- export { Form$1 as default };
40
+ export { Form as default };
@@ -81,6 +81,5 @@ FormGroup.defaultProps = {
81
81
  message: false,
82
82
  messageText: ''
83
83
  };
84
- var FormGroup$1 = FormGroup;
85
84
 
86
- export { FormGroup$1 as default };
85
+ export { FormGroup as default };
@@ -32,6 +32,5 @@ IconSkeleton.propTypes = {
32
32
  */
33
33
  className: PropTypes.string
34
34
  };
35
- var IconSkeleton$1 = IconSkeleton;
36
35
 
37
- export { IconSkeleton$1 as default };
36
+ export { IconSkeleton as default };