@carbon/react 0.17.0-rc.0 → 1.0.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 (763) hide show
  1. package/README.md +1 -1
  2. package/es/_virtual/ResizeObserver.es.js +13 -0
  3. package/es/_virtual/_commonjsHelpers.js +29 -0
  4. package/es/_virtual/_rollupPluginBabelHelpers.js +354 -0
  5. package/es/{prefix.js → _virtual/index.js} +2 -2
  6. package/es/_virtual/rangePlugin.js +10 -0
  7. package/es/components/Accordion/Accordion.Skeleton.js +97 -0
  8. package/es/components/Accordion/Accordion.js +68 -0
  9. package/es/components/Accordion/AccordionItem.js +176 -0
  10. package/es/components/Accordion/index.js +9 -0
  11. package/es/components/AccordionItem/index.js +11 -0
  12. package/es/components/AspectRatio/AspectRatio.js +67 -0
  13. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +45 -0
  14. package/es/components/Breadcrumb/Breadcrumb.js +58 -0
  15. package/es/components/Breadcrumb/BreadcrumbItem.js +94 -0
  16. package/es/components/Button/Button.Skeleton.js +69 -0
  17. package/es/components/Button/Button.js +289 -0
  18. package/es/components/ButtonSet/ButtonSet.js +48 -0
  19. package/es/components/Checkbox/Checkbox.Skeleton.js +36 -0
  20. package/es/components/Checkbox/Checkbox.js +123 -0
  21. package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +58 -0
  22. package/es/components/CodeSnippet/CodeSnippet.js +364 -0
  23. package/es/components/ComboBox/ComboBox.js +530 -0
  24. package/es/components/ComboBox/tools/filter.js +20 -0
  25. package/es/components/ComposedModal/ComposedModal.js +630 -0
  26. package/es/components/ComposedModal/index.js +19 -0
  27. package/es/components/ComposedModal/next/ComposedModal.js +223 -0
  28. package/es/components/ComposedModal/next/ModalFooter.js +213 -0
  29. package/es/components/ComposedModal/next/ModalHeader.js +127 -0
  30. package/es/components/ContentSwitcher/ContentSwitcher.js +185 -0
  31. package/es/components/ContentSwitcher/index.js +13 -0
  32. package/es/components/ContextMenu/useContextMenu.js +57 -0
  33. package/es/components/Copy/Copy.js +124 -0
  34. package/es/components/CopyButton/CopyButton.js +67 -0
  35. package/es/components/DangerButton/DangerButton.js +20 -0
  36. package/es/components/DataTable/DataTable.js +629 -0
  37. package/es/components/DataTable/Table.js +82 -0
  38. package/es/components/DataTable/TableActionList.js +17 -0
  39. package/es/components/DataTable/TableBatchAction.js +46 -0
  40. package/es/components/DataTable/TableBatchActions.js +110 -0
  41. package/es/components/DataTable/TableBody.js +37 -0
  42. package/es/components/DataTable/TableCell.js +16 -0
  43. package/es/components/DataTable/TableContainer.js +66 -0
  44. package/es/components/DataTable/TableExpandHeader.js +86 -0
  45. package/es/components/DataTable/TableExpandRow.js +93 -0
  46. package/es/components/DataTable/TableExpandedRow.js +75 -0
  47. package/es/components/DataTable/TableHead.js +16 -0
  48. package/es/components/DataTable/TableHeader.js +187 -0
  49. package/es/components/DataTable/TableRow.js +41 -0
  50. package/es/components/DataTable/TableSelectAll.js +84 -0
  51. package/es/components/DataTable/TableSelectRow.js +97 -0
  52. package/es/components/DataTable/TableToolbar.js +47 -0
  53. package/es/components/DataTable/TableToolbarAction.js +31 -0
  54. package/es/components/DataTable/TableToolbarContent.js +17 -0
  55. package/es/components/DataTable/TableToolbarMenu.js +61 -0
  56. package/es/components/DataTable/TableToolbarSearch.js +233 -0
  57. package/es/components/DataTable/index.js +72 -0
  58. package/es/components/DataTable/state/getDerivedStateFromProps.js +52 -0
  59. package/es/components/DataTable/state/sortStates.js +19 -0
  60. package/es/components/DataTable/state/sorting.js +93 -0
  61. package/es/components/DataTable/tools/cells.js +21 -0
  62. package/es/components/DataTable/tools/denormalize.js +43 -0
  63. package/es/components/DataTable/tools/filter.js +42 -0
  64. package/es/components/DataTable/tools/instanceId.js +21 -0
  65. package/es/components/DataTable/tools/normalize.js +78 -0
  66. package/es/components/DataTable/tools/sorting.js +110 -0
  67. package/es/components/DataTableSkeleton/DataTableSkeleton.js +133 -0
  68. package/es/components/DatePicker/DatePicker.Skeleton.js +69 -0
  69. package/es/components/DatePicker/DatePicker.js +622 -0
  70. package/es/components/DatePicker/index.js +15 -0
  71. package/es/components/DatePicker/next/DatePicker.js +558 -0
  72. package/es/components/DatePicker/plugins/appendToPlugin.js +58 -0
  73. package/es/components/DatePicker/plugins/fixEventsPlugin.js +89 -0
  74. package/es/components/DatePicker/plugins/rangePlugin.js +51 -0
  75. package/es/components/DatePickerInput/DatePickerInput.js +271 -0
  76. package/es/components/DatePickerInput/index.js +15 -0
  77. package/es/components/DatePickerInput/next/DatePickerInput.js +244 -0
  78. package/es/components/Dropdown/Dropdown.Skeleton.js +46 -0
  79. package/es/components/Dropdown/Dropdown.js +322 -0
  80. package/es/components/ErrorBoundary/ErrorBoundary.js +96 -0
  81. package/es/components/ErrorBoundary/ErrorBoundaryContext.js +16 -0
  82. package/es/components/ExpandableSearch/ExpandableSearch.js +61 -0
  83. package/es/components/ExpandableSearch/index.js +9 -0
  84. package/es/components/FeatureFlags/index.js +169 -0
  85. package/es/components/FileUploader/FileUploader.Skeleton.js +43 -0
  86. package/es/components/FileUploader/FileUploader.js +284 -0
  87. package/es/components/FileUploader/FileUploaderButton.js +198 -0
  88. package/es/components/FileUploader/FileUploaderDropContainer.js +223 -0
  89. package/es/components/FileUploader/FileUploaderItem.js +130 -0
  90. package/es/components/FileUploader/Filename.js +82 -0
  91. package/es/components/FileUploader/index.js +14 -0
  92. package/es/components/FluidForm/FluidForm.js +46 -0
  93. package/es/components/FluidForm/FormContext.js +14 -0
  94. package/es/components/Form/Form.js +41 -0
  95. package/es/components/FormGroup/FormGroup.js +87 -0
  96. package/es/components/FormItem/FormItem.js +41 -0
  97. package/es/components/FormLabel/FormLabel.js +48 -0
  98. package/es/components/Grid/CSSGrid.js +139 -0
  99. package/es/components/Grid/Column.js +363 -0
  100. package/es/components/Grid/ColumnHang.js +51 -0
  101. package/es/components/Grid/FlexGrid.js +76 -0
  102. package/es/components/Grid/Grid.js +63 -0
  103. package/es/components/Grid/GridContext.js +60 -0
  104. package/es/components/Grid/Row.js +65 -0
  105. package/es/components/Heading/index.js +62 -0
  106. package/es/components/Icon/Icon.Skeleton.js +45 -0
  107. package/es/components/IconButton/index.js +88 -0
  108. package/es/components/InlineCheckbox/InlineCheckbox.js +122 -0
  109. package/es/components/InlineLoading/InlineLoading.js +111 -0
  110. package/es/components/Layer/LayerContext.js +12 -0
  111. package/es/components/Layer/index.js +62 -0
  112. package/es/components/Link/Link.js +95 -0
  113. package/es/components/ListBox/ListBox.js +139 -0
  114. package/es/components/ListBox/ListBoxField.js +62 -0
  115. package/es/components/ListBox/ListBoxMenu.js +56 -0
  116. package/es/components/ListBox/ListBoxMenuIcon.js +61 -0
  117. package/es/components/ListBox/ListBoxMenuItem.js +87 -0
  118. package/es/components/ListBox/ListBoxPropTypes.js +14 -0
  119. package/es/components/ListBox/ListBoxSelection.js +148 -0
  120. package/es/components/ListBox/index.js +20 -0
  121. package/es/components/ListBox/next/ListBoxSelection.js +155 -0
  122. package/es/components/ListBox/next/ListBoxTrigger.js +68 -0
  123. package/es/components/ListItem/ListItem.js +41 -0
  124. package/es/components/Loading/Loading.js +102 -0
  125. package/es/components/Menu/Menu.js +328 -0
  126. package/es/components/Menu/MenuDivider.js +19 -0
  127. package/es/components/Menu/MenuGroup.js +34 -0
  128. package/es/components/Menu/MenuItem.js +58 -0
  129. package/es/components/Menu/MenuOption.js +250 -0
  130. package/es/components/Menu/MenuRadioGroup.js +50 -0
  131. package/es/components/Menu/MenuRadioGroupOptions.js +64 -0
  132. package/es/components/Menu/MenuSelectableItem.js +57 -0
  133. package/es/components/Menu/_utils.js +177 -0
  134. package/es/components/Menu/index.js +25 -0
  135. package/es/components/Modal/Modal.js +343 -0
  136. package/es/components/Modal/index.js +15 -0
  137. package/es/components/Modal/next/Modal.js +274 -0
  138. package/es/components/ModalWrapper/ModalWrapper.js +164 -0
  139. package/es/components/MultiSelect/FilterableMultiSelect.js +575 -0
  140. package/es/components/MultiSelect/MultiSelect.js +467 -0
  141. package/es/components/MultiSelect/MultiSelectPropTypes.js +41 -0
  142. package/es/components/MultiSelect/index.js +23 -0
  143. package/es/components/MultiSelect/next/FilterableMultiSelect.js +531 -0
  144. package/es/components/MultiSelect/tools/itemToString.js +24 -0
  145. package/es/components/MultiSelect/tools/sorting.js +53 -0
  146. package/es/components/Notification/Notification.js +530 -0
  147. package/es/components/Notification/index.js +42 -0
  148. package/es/components/Notification/next/Notification.js +663 -0
  149. package/es/components/NumberInput/NumberInput.Skeleton.js +44 -0
  150. package/es/components/NumberInput/NumberInput.js +515 -0
  151. package/es/components/OrderedList/OrderedList.js +66 -0
  152. package/es/components/OverflowMenu/OverflowMenu.js +516 -0
  153. package/es/components/OverflowMenu/index.js +14 -0
  154. package/es/components/OverflowMenuItem/OverflowMenuItem.js +213 -0
  155. package/es/components/OverflowMenuItem/index.js +12 -0
  156. package/es/components/OverflowMenuV2/index.js +137 -0
  157. package/es/components/Pagination/Pagination.Skeleton.js +48 -0
  158. package/es/components/Pagination/Pagination.js +420 -0
  159. package/es/components/Pagination/experimental/PageSelector.js +81 -0
  160. package/es/components/Pagination/experimental/Pagination.js +281 -0
  161. package/es/components/Pagination/index.js +14 -0
  162. package/es/components/Pagination/next/Pagination.js +401 -0
  163. package/es/components/PaginationNav/PaginationNav.js +436 -0
  164. package/es/components/Popover/index.js +118 -0
  165. package/es/components/PrimaryButton/PrimaryButton.js +20 -0
  166. package/es/components/ProgressBar/ProgressBar.js +110 -0
  167. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +50 -0
  168. package/es/components/ProgressIndicator/ProgressIndicator.js +323 -0
  169. package/es/components/ProgressIndicator/index.js +15 -0
  170. package/es/components/ProgressIndicator/next/ProgressIndicator.js +117 -0
  171. package/es/components/RadioButton/RadioButton.Skeleton.js +37 -0
  172. package/es/components/RadioButton/RadioButton.js +172 -0
  173. package/es/components/RadioButton/index.js +15 -0
  174. package/es/components/RadioButton/next/RadioButton.js +128 -0
  175. package/es/components/RadioButtonGroup/RadioButtonGroup.js +190 -0
  176. package/es/components/RadioButtonGroup/index.js +15 -0
  177. package/es/components/RadioButtonGroup/next/RadioButtonGroup.js +141 -0
  178. package/es/components/RadioTile/RadioTile.js +140 -0
  179. package/es/components/Search/Search.Skeleton.js +50 -0
  180. package/es/components/Search/Search.js +289 -0
  181. package/es/components/Search/index.js +15 -0
  182. package/es/components/Search/next/Search.js +268 -0
  183. package/es/components/SearchFilterButton/SearchFilterButton.js +61 -0
  184. package/es/components/SearchLayoutButton/SearchLayoutButton.js +151 -0
  185. package/es/components/SecondaryButton/SecondaryButton.js +20 -0
  186. package/es/components/Select/Select.Skeleton.js +46 -0
  187. package/es/components/Select/Select.js +203 -0
  188. package/es/components/SelectItem/SelectItem.js +70 -0
  189. package/es/components/SelectItemGroup/SelectItemGroup.js +60 -0
  190. package/es/components/SkeletonIcon/SkeletonIcon.js +42 -0
  191. package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +37 -0
  192. package/es/components/SkeletonText/SkeletonText.js +114 -0
  193. package/es/components/Slider/Slider.Skeleton.js +56 -0
  194. package/es/components/Slider/Slider.js +639 -0
  195. package/es/components/Slider/index.js +14 -0
  196. package/es/components/Stack/Stack.js +102 -0
  197. package/es/components/Stack/index.js +26 -0
  198. package/es/components/StructuredList/StructuredList.Skeleton.js +82 -0
  199. package/es/components/StructuredList/StructuredList.js +307 -0
  200. package/es/components/StructuredList/index.js +43 -0
  201. package/es/components/StructuredList/next/StructuredList.js +326 -0
  202. package/es/components/Switch/Switch.js +124 -0
  203. package/es/components/Tab/Tab.js +191 -0
  204. package/es/components/Tab/index.js +15 -0
  205. package/es/components/TabContent/TabContent.js +77 -0
  206. package/es/components/Tabs/Tabs.Skeleton.js +53 -0
  207. package/es/components/Tabs/Tabs.js +618 -0
  208. package/es/components/Tabs/index.js +19 -0
  209. package/es/components/Tabs/next/Tabs.Skeleton.js +53 -0
  210. package/es/components/Tabs/next/Tabs.js +648 -0
  211. package/es/components/Tabs/next/usePressable.js +145 -0
  212. package/es/components/Tag/Tag.Skeleton.js +40 -0
  213. package/es/components/Tag/Tag.js +146 -0
  214. package/es/components/Text/Text.js +98 -0
  215. package/es/components/Text/TextDirectionContext.js +12 -0
  216. package/es/components/Text/createTextComponent.js +33 -0
  217. package/es/components/Text/index.js +13 -0
  218. package/es/components/TextArea/TextArea.Skeleton.js +44 -0
  219. package/es/components/TextArea/TextArea.js +220 -0
  220. package/es/components/TextInput/ControlledPasswordInput.js +234 -0
  221. package/es/components/TextInput/PasswordInput.js +286 -0
  222. package/es/components/TextInput/TextInput.Skeleton.js +44 -0
  223. package/es/components/TextInput/TextInput.js +239 -0
  224. package/es/components/TextInput/index.js +20 -0
  225. package/es/components/TextInput/util.js +33 -0
  226. package/es/components/Theme/index.js +103 -0
  227. package/es/components/Tile/Tile.js +767 -0
  228. package/es/components/Tile/index.js +19 -0
  229. package/es/components/Tile/next/Tile.js +608 -0
  230. package/es/components/TileGroup/TileGroup.js +164 -0
  231. package/es/components/TileGroup/index.js +13 -0
  232. package/es/components/TimePicker/TimePicker.js +256 -0
  233. package/es/components/TimePicker/index.js +15 -0
  234. package/es/components/TimePicker/next/TimePicker.js +218 -0
  235. package/es/components/TimePickerSelect/TimePickerSelect.js +82 -0
  236. package/es/components/TimePickerSelect/index.js +15 -0
  237. package/es/components/TimePickerSelect/next/TimePickerSelect.js +71 -0
  238. package/es/components/Toggle/Toggle.Skeleton.js +74 -0
  239. package/es/components/Toggle/Toggle.js +120 -0
  240. package/es/components/Toggle/index.js +19 -0
  241. package/es/components/Toggle/next/Toggle.js +158 -0
  242. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +71 -0
  243. package/es/components/ToggleSmall/ToggleSmall.js +104 -0
  244. package/es/components/Toolbar/Toolbar.js +121 -0
  245. package/es/components/ToolbarSearch/ToolbarSearch.js +168 -0
  246. package/es/components/Tooltip/next/DefinitionTooltip.js +122 -0
  247. package/es/components/Tooltip/next/Tooltip.js +154 -0
  248. package/es/components/TreeView/TreeNode.js +325 -0
  249. package/es/components/TreeView/TreeView.js +252 -0
  250. package/es/components/TreeView/index.js +13 -0
  251. package/es/components/UIShell/Content.js +50 -0
  252. package/es/components/UIShell/Header.js +37 -0
  253. package/es/components/UIShell/HeaderContainer.js +44 -0
  254. package/es/components/UIShell/HeaderGlobalAction.js +87 -0
  255. package/es/components/UIShell/HeaderGlobalBar.js +20 -0
  256. package/es/components/UIShell/HeaderMenu.js +240 -0
  257. package/es/components/UIShell/HeaderMenuButton.js +69 -0
  258. package/es/components/UIShell/HeaderMenuItem.js +73 -0
  259. package/es/components/UIShell/HeaderName.js +62 -0
  260. package/es/components/UIShell/HeaderNavigation.js +100 -0
  261. package/es/components/UIShell/HeaderPanel.js +52 -0
  262. package/es/components/UIShell/HeaderSideNavItems.js +50 -0
  263. package/es/components/UIShell/Link.js +49 -0
  264. package/es/components/UIShell/SideNav.js +227 -0
  265. package/es/components/UIShell/SideNavDetails.js +46 -0
  266. package/es/components/UIShell/SideNavDivider.js +30 -0
  267. package/es/components/UIShell/SideNavFooter.js +78 -0
  268. package/es/components/UIShell/SideNavHeader.js +50 -0
  269. package/es/components/UIShell/SideNavIcon.js +49 -0
  270. package/es/components/UIShell/SideNavItem.js +47 -0
  271. package/es/components/UIShell/SideNavItems.js +56 -0
  272. package/es/components/UIShell/SideNavLink.js +74 -0
  273. package/es/components/UIShell/SideNavLinkText.js +41 -0
  274. package/es/components/UIShell/SideNavMenu.js +198 -0
  275. package/es/components/UIShell/SideNavMenuItem.js +57 -0
  276. package/es/components/UIShell/SideNavSwitcher.js +80 -0
  277. package/es/components/UIShell/SkipToContent.js +57 -0
  278. package/es/components/UIShell/Switcher.js +45 -0
  279. package/es/components/UIShell/SwitcherDivider.js +35 -0
  280. package/es/components/UIShell/SwitcherItem.js +62 -0
  281. package/es/components/UIShell/_utils.js +10 -0
  282. package/es/components/UIShell/index.js +17 -0
  283. package/es/components/UIShell/next/HeaderNavigation.js +52 -0
  284. package/es/components/UIShell/next/SideNavMenu.js +160 -0
  285. package/es/components/UnorderedList/UnorderedList.js +59 -0
  286. package/es/index.js +188 -2
  287. package/es/internal/ClickListener.js +101 -0
  288. package/es/internal/ComponentToggle.js +43 -0
  289. package/es/internal/FeatureFlags.js +52 -0
  290. package/es/internal/FloatingMenu.js +483 -0
  291. package/es/internal/OptimizedResize.js +65 -0
  292. package/es/internal/Selection.js +243 -0
  293. package/es/internal/createClassWrapper.js +31 -0
  294. package/es/internal/deprecateFieldOnObject.js +26 -0
  295. package/es/internal/environment.js +15 -0
  296. package/es/internal/focus/index.js +16 -0
  297. package/es/internal/keyboard/keys.js +65 -0
  298. package/es/internal/keyboard/match.js +82 -0
  299. package/es/internal/keyboard/navigation.js +61 -0
  300. package/es/internal/useControllableState.js +86 -0
  301. package/es/internal/useDelayedState.js +54 -0
  302. package/es/internal/useEffectOnce.js +31 -0
  303. package/es/internal/useId.js +59 -0
  304. package/es/internal/useIsomorphicEffect.js +13 -0
  305. package/es/internal/useMatchMedia.js +51 -0
  306. package/es/internal/useMergedRefs.js +31 -0
  307. package/es/internal/useNoInteractiveChildren.js +92 -0
  308. package/es/internal/useNormalizedInputProps.js +88 -0
  309. package/es/internal/usePrefix.js +15 -0
  310. package/es/internal/useSavedCallback.js +32 -0
  311. package/es/internal/warning.js +28 -0
  312. package/es/internal/wrapFocus.js +75 -0
  313. package/es/node_modules/flatpickr/dist/l10n/index.js +1423 -0
  314. package/es/node_modules/flatpickr/dist/plugins/rangePlugin.js +196 -0
  315. package/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1112 -0
  316. package/es/node_modules/use-resize-observer/polyfilled.js +112 -0
  317. package/es/prop-types/AriaPropTypes.js +16 -0
  318. package/es/prop-types/deprecate.js +33 -0
  319. package/es/prop-types/isRequiredOneOf.js +47 -0
  320. package/es/prop-types/requiredIfGivenPropIsTruthy.js +29 -0
  321. package/es/prop-types/requiredIfValueExists.js +32 -0
  322. package/es/prop-types/types.js +10 -0
  323. package/es/tools/array.js +32 -0
  324. package/es/tools/events.js +35 -0
  325. package/es/tools/mergeRefs.js +31 -0
  326. package/es/tools/setupGetInstanceId.js +19 -0
  327. package/es/tools/toggleClass.js +14 -0
  328. package/es/tools/uniqueId.js +15 -0
  329. package/es/tools/wrapComponent.js +42 -0
  330. package/icons/es/index.js +1 -1
  331. package/icons/lib/index.js +7 -1952
  332. package/index.scss +1 -0
  333. package/lib/_virtual/ResizeObserver.es.js +17 -0
  334. package/lib/_virtual/_commonjsHelpers.js +35 -0
  335. package/lib/_virtual/_rollupPluginBabelHelpers.js +383 -0
  336. package/lib/{prefix.js → _virtual/index.js} +4 -2
  337. package/lib/_virtual/rangePlugin.js +14 -0
  338. package/lib/components/Accordion/Accordion.Skeleton.js +107 -0
  339. package/lib/components/Accordion/Accordion.js +97 -0
  340. package/lib/components/Accordion/AccordionItem.js +186 -0
  341. package/lib/components/Accordion/index.js +16 -0
  342. package/lib/components/AccordionItem/index.js +16 -0
  343. package/lib/components/AspectRatio/AspectRatio.js +77 -0
  344. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +55 -0
  345. package/lib/components/Breadcrumb/Breadcrumb.js +68 -0
  346. package/lib/components/Breadcrumb/BreadcrumbItem.js +104 -0
  347. package/lib/components/Button/Button.Skeleton.js +98 -0
  348. package/lib/components/Button/Button.js +299 -0
  349. package/lib/components/ButtonSet/ButtonSet.js +58 -0
  350. package/lib/components/Checkbox/Checkbox.Skeleton.js +46 -0
  351. package/lib/components/Checkbox/Checkbox.js +133 -0
  352. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +68 -0
  353. package/lib/components/CodeSnippet/CodeSnippet.js +375 -0
  354. package/lib/components/ComboBox/ComboBox.js +541 -0
  355. package/lib/components/ComboBox/tools/filter.js +24 -0
  356. package/lib/components/ComposedModal/ComposedModal.js +643 -0
  357. package/lib/components/ComposedModal/index.js +45 -0
  358. package/lib/components/ComposedModal/next/ComposedModal.js +234 -0
  359. package/lib/components/ComposedModal/next/ModalFooter.js +223 -0
  360. package/lib/components/ComposedModal/next/ModalHeader.js +137 -0
  361. package/lib/components/ContentSwitcher/ContentSwitcher.js +195 -0
  362. package/lib/components/ContentSwitcher/index.js +17 -0
  363. package/lib/components/ContextMenu/useContextMenu.js +61 -0
  364. package/lib/components/Copy/Copy.js +154 -0
  365. package/lib/components/CopyButton/CopyButton.js +77 -0
  366. package/lib/components/DangerButton/DangerButton.js +28 -0
  367. package/lib/components/DataTable/DataTable.js +639 -0
  368. package/lib/components/DataTable/Table.js +93 -0
  369. package/lib/components/DataTable/TableActionList.js +21 -0
  370. package/lib/components/DataTable/TableBatchAction.js +55 -0
  371. package/lib/components/DataTable/TableBatchActions.js +120 -0
  372. package/lib/components/DataTable/TableBody.js +46 -0
  373. package/lib/components/DataTable/TableCell.js +20 -0
  374. package/lib/components/DataTable/TableContainer.js +76 -0
  375. package/lib/components/DataTable/TableExpandHeader.js +96 -0
  376. package/lib/components/DataTable/TableExpandRow.js +103 -0
  377. package/lib/components/DataTable/TableExpandedRow.js +85 -0
  378. package/lib/components/DataTable/TableHead.js +20 -0
  379. package/lib/components/DataTable/TableHeader.js +197 -0
  380. package/lib/components/DataTable/TableRow.js +52 -0
  381. package/lib/components/DataTable/TableSelectAll.js +94 -0
  382. package/lib/components/DataTable/TableSelectRow.js +107 -0
  383. package/lib/components/DataTable/TableToolbar.js +57 -0
  384. package/lib/components/DataTable/TableToolbarAction.js +40 -0
  385. package/lib/components/DataTable/TableToolbarContent.js +21 -0
  386. package/lib/components/DataTable/TableToolbarMenu.js +71 -0
  387. package/lib/components/DataTable/TableToolbarSearch.js +243 -0
  388. package/lib/components/DataTable/index.js +76 -0
  389. package/lib/components/DataTable/state/getDerivedStateFromProps.js +56 -0
  390. package/lib/components/DataTable/state/sortStates.js +23 -0
  391. package/lib/components/DataTable/state/sorting.js +100 -0
  392. package/lib/components/DataTable/tools/cells.js +25 -0
  393. package/lib/components/DataTable/tools/denormalize.js +47 -0
  394. package/lib/components/DataTable/tools/filter.js +46 -0
  395. package/lib/components/DataTable/tools/instanceId.js +25 -0
  396. package/lib/components/DataTable/tools/normalize.js +82 -0
  397. package/lib/components/DataTable/tools/sorting.js +117 -0
  398. package/lib/components/DataTableSkeleton/DataTableSkeleton.js +143 -0
  399. package/lib/components/DatePicker/DatePicker.Skeleton.js +79 -0
  400. package/lib/components/DatePicker/DatePicker.js +633 -0
  401. package/lib/components/DatePicker/index.js +39 -0
  402. package/lib/components/DatePicker/next/DatePicker.js +569 -0
  403. package/lib/components/DatePicker/plugins/appendToPlugin.js +62 -0
  404. package/lib/components/DatePicker/plugins/fixEventsPlugin.js +93 -0
  405. package/lib/components/DatePicker/plugins/rangePlugin.js +55 -0
  406. package/lib/components/DatePickerInput/DatePickerInput.js +281 -0
  407. package/lib/components/DatePickerInput/index.js +39 -0
  408. package/lib/components/DatePickerInput/next/DatePickerInput.js +254 -0
  409. package/lib/components/Dropdown/Dropdown.Skeleton.js +56 -0
  410. package/lib/components/Dropdown/Dropdown.js +332 -0
  411. package/lib/components/ErrorBoundary/ErrorBoundary.js +105 -0
  412. package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +20 -0
  413. package/lib/components/ExpandableSearch/ExpandableSearch.js +70 -0
  414. package/lib/components/ExpandableSearch/index.js +16 -0
  415. package/lib/components/FeatureFlags/index.js +181 -0
  416. package/lib/components/FileUploader/FileUploader.Skeleton.js +53 -0
  417. package/lib/components/FileUploader/FileUploader.js +313 -0
  418. package/lib/components/FileUploader/FileUploaderButton.js +227 -0
  419. package/lib/components/FileUploader/FileUploaderDropContainer.js +233 -0
  420. package/lib/components/FileUploader/FileUploaderItem.js +159 -0
  421. package/lib/components/FileUploader/Filename.js +91 -0
  422. package/lib/components/FileUploader/index.js +38 -0
  423. package/lib/components/FluidForm/FluidForm.js +56 -0
  424. package/lib/components/FluidForm/FormContext.js +18 -0
  425. package/lib/components/Form/Form.js +51 -0
  426. package/lib/components/FormGroup/FormGroup.js +97 -0
  427. package/lib/components/FormItem/FormItem.js +51 -0
  428. package/lib/components/FormLabel/FormLabel.js +77 -0
  429. package/lib/components/Grid/CSSGrid.js +149 -0
  430. package/lib/components/Grid/Column.js +392 -0
  431. package/lib/components/Grid/ColumnHang.js +61 -0
  432. package/lib/components/Grid/FlexGrid.js +86 -0
  433. package/lib/components/Grid/Grid.js +72 -0
  434. package/lib/components/Grid/GridContext.js +88 -0
  435. package/lib/components/Grid/Row.js +75 -0
  436. package/lib/components/Heading/index.js +72 -0
  437. package/lib/components/Icon/Icon.Skeleton.js +55 -0
  438. package/lib/components/IconButton/index.js +97 -0
  439. package/lib/components/InlineCheckbox/InlineCheckbox.js +131 -0
  440. package/lib/components/InlineLoading/InlineLoading.js +121 -0
  441. package/lib/components/Layer/LayerContext.js +20 -0
  442. package/lib/components/Layer/index.js +72 -0
  443. package/lib/components/Link/Link.js +105 -0
  444. package/lib/components/ListBox/ListBox.js +149 -0
  445. package/lib/components/ListBox/ListBoxField.js +71 -0
  446. package/lib/components/ListBox/ListBoxMenu.js +65 -0
  447. package/lib/components/ListBox/ListBoxMenuIcon.js +72 -0
  448. package/lib/components/ListBox/ListBoxMenuItem.js +97 -0
  449. package/lib/components/ListBox/ListBoxPropTypes.js +42 -0
  450. package/lib/components/ListBox/ListBoxSelection.js +159 -0
  451. package/lib/components/ListBox/index.js +25 -0
  452. package/lib/components/ListBox/next/ListBoxSelection.js +166 -0
  453. package/lib/components/ListBox/next/ListBoxTrigger.js +79 -0
  454. package/lib/components/ListItem/ListItem.js +51 -0
  455. package/lib/components/Loading/Loading.js +112 -0
  456. package/lib/components/Menu/Menu.js +339 -0
  457. package/lib/components/Menu/MenuDivider.js +27 -0
  458. package/lib/components/Menu/MenuGroup.js +43 -0
  459. package/lib/components/Menu/MenuItem.js +67 -0
  460. package/lib/components/Menu/MenuOption.js +260 -0
  461. package/lib/components/Menu/MenuRadioGroup.js +59 -0
  462. package/lib/components/Menu/MenuRadioGroupOptions.js +73 -0
  463. package/lib/components/Menu/MenuSelectableItem.js +66 -0
  464. package/lib/components/Menu/_utils.js +191 -0
  465. package/lib/components/Menu/index.js +30 -0
  466. package/lib/components/Modal/Modal.js +353 -0
  467. package/lib/components/Modal/index.js +39 -0
  468. package/lib/components/Modal/next/Modal.js +284 -0
  469. package/lib/components/ModalWrapper/ModalWrapper.js +173 -0
  470. package/lib/components/MultiSelect/FilterableMultiSelect.js +587 -0
  471. package/lib/components/MultiSelect/MultiSelect.js +479 -0
  472. package/lib/components/MultiSelect/MultiSelectPropTypes.js +49 -0
  473. package/lib/components/MultiSelect/index.js +47 -0
  474. package/lib/components/MultiSelect/next/FilterableMultiSelect.js +543 -0
  475. package/lib/components/MultiSelect/tools/itemToString.js +32 -0
  476. package/lib/components/MultiSelect/tools/sorting.js +58 -0
  477. package/lib/components/Notification/Notification.js +544 -0
  478. package/lib/components/Notification/index.js +51 -0
  479. package/lib/components/Notification/next/Notification.js +677 -0
  480. package/lib/components/NumberInput/NumberInput.Skeleton.js +54 -0
  481. package/lib/components/NumberInput/NumberInput.js +546 -0
  482. package/lib/components/OrderedList/OrderedList.js +76 -0
  483. package/lib/components/OverflowMenu/OverflowMenu.js +547 -0
  484. package/lib/components/OverflowMenu/index.js +38 -0
  485. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +242 -0
  486. package/lib/components/OverflowMenuItem/index.js +16 -0
  487. package/lib/components/OverflowMenuV2/index.js +147 -0
  488. package/lib/components/Pagination/Pagination.Skeleton.js +58 -0
  489. package/lib/components/Pagination/Pagination.js +430 -0
  490. package/lib/components/Pagination/experimental/PageSelector.js +91 -0
  491. package/lib/components/Pagination/experimental/Pagination.js +310 -0
  492. package/lib/components/Pagination/index.js +38 -0
  493. package/lib/components/Pagination/next/Pagination.js +411 -0
  494. package/lib/components/PaginationNav/PaginationNav.js +465 -0
  495. package/lib/components/Popover/index.js +129 -0
  496. package/lib/components/PrimaryButton/PrimaryButton.js +28 -0
  497. package/lib/components/ProgressBar/ProgressBar.js +120 -0
  498. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +60 -0
  499. package/lib/components/ProgressIndicator/ProgressIndicator.js +334 -0
  500. package/lib/components/ProgressIndicator/index.js +39 -0
  501. package/lib/components/ProgressIndicator/next/ProgressIndicator.js +127 -0
  502. package/lib/components/RadioButton/RadioButton.Skeleton.js +47 -0
  503. package/lib/components/RadioButton/RadioButton.js +183 -0
  504. package/lib/components/RadioButton/index.js +39 -0
  505. package/lib/components/RadioButton/next/RadioButton.js +138 -0
  506. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +200 -0
  507. package/lib/components/RadioButtonGroup/index.js +39 -0
  508. package/lib/components/RadioButtonGroup/next/RadioButtonGroup.js +151 -0
  509. package/lib/components/RadioTile/RadioTile.js +150 -0
  510. package/lib/components/Search/Search.Skeleton.js +60 -0
  511. package/lib/components/Search/Search.js +299 -0
  512. package/lib/components/Search/index.js +39 -0
  513. package/lib/components/Search/next/Search.js +278 -0
  514. package/lib/components/SearchFilterButton/SearchFilterButton.js +70 -0
  515. package/lib/components/SearchLayoutButton/SearchLayoutButton.js +160 -0
  516. package/lib/components/SecondaryButton/SecondaryButton.js +28 -0
  517. package/lib/components/Select/Select.Skeleton.js +56 -0
  518. package/lib/components/Select/Select.js +213 -0
  519. package/lib/components/SelectItem/SelectItem.js +80 -0
  520. package/lib/components/SelectItemGroup/SelectItemGroup.js +89 -0
  521. package/lib/components/SkeletonIcon/SkeletonIcon.js +52 -0
  522. package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +47 -0
  523. package/lib/components/SkeletonText/SkeletonText.js +124 -0
  524. package/lib/components/Slider/Slider.Skeleton.js +66 -0
  525. package/lib/components/Slider/Slider.js +669 -0
  526. package/lib/components/Slider/index.js +38 -0
  527. package/lib/components/Stack/Stack.js +112 -0
  528. package/lib/components/Stack/index.js +35 -0
  529. package/lib/components/StructuredList/StructuredList.Skeleton.js +92 -0
  530. package/lib/components/StructuredList/StructuredList.js +322 -0
  531. package/lib/components/StructuredList/index.js +52 -0
  532. package/lib/components/StructuredList/next/StructuredList.js +341 -0
  533. package/lib/components/Switch/Switch.js +134 -0
  534. package/lib/components/Tab/Tab.js +220 -0
  535. package/lib/components/Tab/index.js +39 -0
  536. package/lib/components/TabContent/TabContent.js +87 -0
  537. package/lib/components/Tabs/Tabs.Skeleton.js +63 -0
  538. package/lib/components/Tabs/Tabs.js +629 -0
  539. package/lib/components/Tabs/index.js +47 -0
  540. package/lib/components/Tabs/next/Tabs.Skeleton.js +63 -0
  541. package/lib/components/Tabs/next/Tabs.js +664 -0
  542. package/lib/components/Tabs/next/usePressable.js +149 -0
  543. package/lib/components/Tag/Tag.Skeleton.js +50 -0
  544. package/lib/components/Tag/Tag.js +156 -0
  545. package/lib/components/Text/Text.js +107 -0
  546. package/lib/components/Text/TextDirectionContext.js +16 -0
  547. package/lib/components/Text/createTextComponent.js +41 -0
  548. package/lib/components/Text/index.js +17 -0
  549. package/lib/components/TextArea/TextArea.Skeleton.js +54 -0
  550. package/lib/components/TextArea/TextArea.js +230 -0
  551. package/lib/components/TextInput/ControlledPasswordInput.js +244 -0
  552. package/lib/components/TextInput/PasswordInput.js +315 -0
  553. package/lib/components/TextInput/TextInput.Skeleton.js +54 -0
  554. package/lib/components/TextInput/TextInput.js +268 -0
  555. package/lib/components/TextInput/index.js +25 -0
  556. package/lib/components/TextInput/util.js +37 -0
  557. package/lib/components/Theme/index.js +116 -0
  558. package/lib/components/Tile/Tile.js +782 -0
  559. package/lib/components/Tile/index.js +48 -0
  560. package/lib/components/Tile/next/Tile.js +623 -0
  561. package/lib/components/TileGroup/TileGroup.js +173 -0
  562. package/lib/components/TileGroup/index.js +17 -0
  563. package/lib/components/TimePicker/TimePicker.js +266 -0
  564. package/lib/components/TimePicker/index.js +39 -0
  565. package/lib/components/TimePicker/next/TimePicker.js +228 -0
  566. package/lib/components/TimePickerSelect/TimePickerSelect.js +92 -0
  567. package/lib/components/TimePickerSelect/index.js +39 -0
  568. package/lib/components/TimePickerSelect/next/TimePickerSelect.js +81 -0
  569. package/lib/components/Toggle/Toggle.Skeleton.js +84 -0
  570. package/lib/components/Toggle/Toggle.js +130 -0
  571. package/lib/components/Toggle/index.js +23 -0
  572. package/lib/components/Toggle/next/Toggle.js +169 -0
  573. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +81 -0
  574. package/lib/components/ToggleSmall/ToggleSmall.js +114 -0
  575. package/lib/components/Toolbar/Toolbar.js +135 -0
  576. package/lib/components/ToolbarSearch/ToolbarSearch.js +178 -0
  577. package/lib/components/Tooltip/next/DefinitionTooltip.js +132 -0
  578. package/lib/components/Tooltip/next/Tooltip.js +164 -0
  579. package/lib/components/TreeView/TreeNode.js +335 -0
  580. package/lib/components/TreeView/TreeView.js +281 -0
  581. package/lib/components/TreeView/index.js +18 -0
  582. package/lib/components/UIShell/Content.js +60 -0
  583. package/lib/components/UIShell/Header.js +47 -0
  584. package/lib/components/UIShell/HeaderContainer.js +53 -0
  585. package/lib/components/UIShell/HeaderGlobalAction.js +97 -0
  586. package/lib/components/UIShell/HeaderGlobalBar.js +24 -0
  587. package/lib/components/UIShell/HeaderMenu.js +250 -0
  588. package/lib/components/UIShell/HeaderMenuButton.js +79 -0
  589. package/lib/components/UIShell/HeaderMenuItem.js +83 -0
  590. package/lib/components/UIShell/HeaderName.js +72 -0
  591. package/lib/components/UIShell/HeaderNavigation.js +110 -0
  592. package/lib/components/UIShell/HeaderPanel.js +62 -0
  593. package/lib/components/UIShell/HeaderSideNavItems.js +60 -0
  594. package/lib/components/UIShell/Link.js +59 -0
  595. package/lib/components/UIShell/SideNav.js +237 -0
  596. package/lib/components/UIShell/SideNavDetails.js +56 -0
  597. package/lib/components/UIShell/SideNavDivider.js +40 -0
  598. package/lib/components/UIShell/SideNavFooter.js +88 -0
  599. package/lib/components/UIShell/SideNavHeader.js +60 -0
  600. package/lib/components/UIShell/SideNavIcon.js +59 -0
  601. package/lib/components/UIShell/SideNavItem.js +57 -0
  602. package/lib/components/UIShell/SideNavItems.js +66 -0
  603. package/lib/components/UIShell/SideNavLink.js +84 -0
  604. package/lib/components/UIShell/SideNavLinkText.js +51 -0
  605. package/lib/components/UIShell/SideNavMenu.js +209 -0
  606. package/lib/components/UIShell/SideNavMenuItem.js +67 -0
  607. package/lib/components/UIShell/SideNavSwitcher.js +90 -0
  608. package/lib/components/UIShell/SkipToContent.js +67 -0
  609. package/lib/components/UIShell/Switcher.js +55 -0
  610. package/lib/components/UIShell/SwitcherDivider.js +45 -0
  611. package/lib/components/UIShell/SwitcherItem.js +72 -0
  612. package/lib/components/UIShell/_utils.js +14 -0
  613. package/lib/components/UIShell/index.js +42 -0
  614. package/lib/components/UIShell/next/HeaderNavigation.js +62 -0
  615. package/lib/components/UIShell/next/SideNavMenu.js +170 -0
  616. package/lib/components/UnorderedList/UnorderedList.js +69 -0
  617. package/lib/index.js +405 -858
  618. package/lib/internal/ClickListener.js +110 -0
  619. package/lib/internal/ComponentToggle.js +51 -0
  620. package/lib/internal/FeatureFlags.js +56 -0
  621. package/lib/internal/FloatingMenu.js +498 -0
  622. package/lib/internal/OptimizedResize.js +73 -0
  623. package/lib/internal/Selection.js +254 -0
  624. package/lib/internal/createClassWrapper.js +39 -0
  625. package/lib/internal/deprecateFieldOnObject.js +30 -0
  626. package/lib/internal/environment.js +19 -0
  627. package/lib/internal/focus/index.js +20 -0
  628. package/lib/internal/keyboard/keys.js +79 -0
  629. package/lib/internal/keyboard/match.js +87 -0
  630. package/lib/internal/keyboard/navigation.js +69 -0
  631. package/lib/internal/useControllableState.js +90 -0
  632. package/lib/internal/useDelayedState.js +58 -0
  633. package/lib/internal/useEffectOnce.js +35 -0
  634. package/lib/internal/useId.js +64 -0
  635. package/lib/internal/useIsomorphicEffect.js +17 -0
  636. package/lib/internal/useMatchMedia.js +55 -0
  637. package/lib/internal/useMergedRefs.js +35 -0
  638. package/lib/internal/useNoInteractiveChildren.js +97 -0
  639. package/lib/internal/useNormalizedInputProps.js +96 -0
  640. package/lib/internal/usePrefix.js +24 -0
  641. package/lib/internal/useSavedCallback.js +36 -0
  642. package/lib/internal/warning.js +32 -0
  643. package/lib/internal/wrapFocus.js +84 -0
  644. package/lib/node_modules/flatpickr/dist/l10n/index.js +1427 -0
  645. package/lib/node_modules/flatpickr/dist/plugins/rangePlugin.js +200 -0
  646. package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1116 -0
  647. package/lib/node_modules/use-resize-observer/polyfilled.js +120 -0
  648. package/lib/prop-types/AriaPropTypes.js +24 -0
  649. package/lib/prop-types/deprecate.js +37 -0
  650. package/lib/prop-types/isRequiredOneOf.js +51 -0
  651. package/lib/prop-types/requiredIfGivenPropIsTruthy.js +33 -0
  652. package/lib/prop-types/requiredIfValueExists.js +36 -0
  653. package/lib/prop-types/types.js +14 -0
  654. package/lib/tools/array.js +36 -0
  655. package/lib/tools/events.js +39 -0
  656. package/lib/tools/mergeRefs.js +35 -0
  657. package/lib/tools/setupGetInstanceId.js +23 -0
  658. package/lib/tools/toggleClass.js +18 -0
  659. package/lib/tools/uniqueId.js +19 -0
  660. package/lib/tools/wrapComponent.js +52 -0
  661. package/package.json +49 -18
  662. package/scss/{grid/_config.scss → components/_index.scss} +1 -1
  663. package/scss/components/accordion/_accordion.scss +9 -0
  664. package/scss/components/aspect-ratio/_aspect-ratio.scss +9 -0
  665. package/scss/components/breadcrumb/_breadcrumb.scss +9 -0
  666. package/scss/components/button/_button.scss +9 -0
  667. package/scss/components/button/_tokens.scss +9 -0
  668. package/scss/components/checkbox/_checkbox.scss +9 -0
  669. package/scss/components/code-snippet/_code-snippet.scss +9 -0
  670. package/scss/components/combo-box/_combo-box.scss +9 -0
  671. package/scss/components/content-switcher/_content-switcher.scss +9 -0
  672. package/scss/components/copy-button/_copy-button.scss +9 -0
  673. package/scss/components/data-table/_data-table.scss +9 -0
  674. package/scss/components/data-table/action/_data-table-action.scss +9 -0
  675. package/scss/components/data-table/action/_index.scss +9 -0
  676. package/scss/components/data-table/expandable/_data-table-expandable.scss +9 -0
  677. package/scss/components/data-table/expandable/_index.scss +9 -0
  678. package/scss/components/data-table/skeleton/_data-table-skeleton.scss +9 -0
  679. package/scss/components/data-table/skeleton/_index.scss +9 -0
  680. package/scss/components/data-table/sort/_data-table-sort.scss +9 -0
  681. package/scss/components/data-table/sort/_index.scss +9 -0
  682. package/scss/components/date-picker/_date-picker.scss +9 -0
  683. package/scss/components/dropdown/_dropdown.scss +9 -0
  684. package/scss/components/file-uploader/_file-uploader.scss +9 -0
  685. package/scss/components/form/_form.scss +9 -0
  686. package/scss/components/inline-loading/_inline-loading.scss +9 -0
  687. package/scss/components/link/_link.scss +9 -0
  688. package/scss/components/list/_list.scss +9 -0
  689. package/scss/components/list-box/_index.scss +9 -0
  690. package/scss/components/list-box/_list-box.scss +9 -0
  691. package/scss/components/loading/_loading.scss +9 -0
  692. package/scss/components/menu/_menu.scss +9 -0
  693. package/scss/components/modal/_modal.scss +9 -0
  694. package/scss/components/multiselect/_multiselect.scss +9 -0
  695. package/scss/components/notification/_actionable-notification.scss +9 -0
  696. package/scss/components/notification/_inline-notification.scss +9 -0
  697. package/scss/components/notification/_toast-notification.scss +9 -0
  698. package/scss/components/notification/_tokens.scss +9 -0
  699. package/scss/components/number-input/_number-input.scss +9 -0
  700. package/scss/components/overflow-menu/_overflow-menu.scss +9 -0
  701. package/scss/components/pagination/_pagination.scss +9 -0
  702. package/scss/components/pagination/_unstable_pagination.scss +9 -0
  703. package/scss/components/pagination-nav/_pagination-nav.scss +9 -0
  704. package/scss/components/popover/_index.scss +9 -0
  705. package/scss/components/popover/_popover.scss +9 -0
  706. package/scss/components/progress-bar/_index.scss +9 -0
  707. package/scss/components/progress-bar/_progress-bar.scss +9 -0
  708. package/scss/components/progress-indicator/_progress-indicator.scss +9 -0
  709. package/scss/components/radio-button/_radio-button.scss +9 -0
  710. package/scss/components/search/_search.scss +9 -0
  711. package/scss/components/select/_select.scss +9 -0
  712. package/scss/components/skeleton-styles/_index.scss +9 -0
  713. package/scss/components/skeleton-styles/_skeleton-styles.scss +9 -0
  714. package/scss/components/slider/_slider.scss +9 -0
  715. package/scss/components/stack/_stack.scss +9 -0
  716. package/scss/components/structured-list/_structured-list.scss +9 -0
  717. package/scss/components/tabs/_tabs.scss +9 -0
  718. package/scss/components/tag/_tag.scss +9 -0
  719. package/scss/components/tag/_tokens.scss +9 -0
  720. package/scss/components/text-area/_text-area.scss +9 -0
  721. package/scss/components/text-input/_text-input.scss +9 -0
  722. package/scss/components/tile/_tile.scss +9 -0
  723. package/scss/components/time-picker/_time-picker.scss +9 -0
  724. package/scss/components/toggle/_toggle.scss +9 -0
  725. package/scss/components/toggletip/_index.scss +9 -0
  726. package/scss/components/toggletip/_toggletip.scss +9 -0
  727. package/scss/components/tooltip/_tooltip.scss +9 -0
  728. package/scss/components/treeview/_treeview.scss +9 -0
  729. package/scss/components/ui-shell/_ui-shell.scss +9 -0
  730. package/scss/components/ui-shell/content/_content.scss +9 -0
  731. package/scss/components/ui-shell/content/_index.scss +9 -0
  732. package/scss/components/ui-shell/header/_header.scss +9 -0
  733. package/scss/components/ui-shell/header/_index.scss +9 -0
  734. package/scss/components/ui-shell/header-panel/_header-panel.scss +9 -0
  735. package/scss/components/ui-shell/header-panel/_index.scss +9 -0
  736. package/scss/components/ui-shell/side-nav/_index.scss +9 -0
  737. package/scss/components/ui-shell/side-nav/_side-nav.scss +9 -0
  738. package/scss/components/ui-shell/switcher/_index.scss +9 -0
  739. package/scss/components/ui-shell/switcher/_switcher.scss +9 -0
  740. package/scss/fonts/_src.scss +9 -0
  741. package/scss/grid/_css-grid.scss +9 -0
  742. package/scss/grid/_mixins.scss +9 -0
  743. package/scss/type/_index.scss +9 -0
  744. package/scss/type/_reset.scss +9 -0
  745. package/scss/utilities/_box-shadow.scss +9 -0
  746. package/scss/utilities/_button-reset.scss +9 -0
  747. package/scss/utilities/_component-reset.scss +9 -0
  748. package/scss/utilities/_component-tokens.scss +9 -0
  749. package/scss/utilities/_custom-property.scss +9 -0
  750. package/scss/utilities/_focus-outline.scss +9 -0
  751. package/scss/utilities/_high-contrast-mode.scss +9 -0
  752. package/scss/utilities/_index.scss +9 -0
  753. package/scss/utilities/_keyframes.scss +9 -0
  754. package/scss/utilities/_placeholder-colors.scss +9 -0
  755. package/scss/utilities/_rotate.scss +9 -0
  756. package/scss/utilities/_skeleton.scss +9 -0
  757. package/scss/utilities/_text-overflow.scss +9 -0
  758. package/scss/utilities/_text-truncate.scss +9 -0
  759. package/scss/utilities/_visually-hidden.scss +9 -0
  760. package/icons/es/icon-helpers/es/index.js +0 -141
  761. package/icons/es/icons-react/next/index.esm.js +0 -14
  762. package/icons/lib/icon-helpers/es/index.js +0 -146
  763. package/icons/lib/icons-react/next/index.esm.js +0 -1973
@@ -0,0 +1,544 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2021
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
+ 'use strict';
9
+
10
+ Object.defineProperty(exports, '__esModule', { value: true });
11
+
12
+ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
+ var PropTypes = require('prop-types');
14
+ var React = require('react');
15
+ var cx = require('classnames');
16
+ var iconsReact = require('@carbon/icons-react');
17
+ var Button = require('../Button/Button.js');
18
+ var usePrefix = require('../../internal/usePrefix.js');
19
+
20
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
+
22
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
23
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
25
+
26
+ var _iconTypes;
27
+
28
+ var _excluded = ["children", "className", "onClick"],
29
+ _excluded2 = ["ariaLabel", "className", "iconDescription", "type", "renderIcon", "name", "notificationType"],
30
+ _excluded3 = ["title", "subtitle", "caption", "notificationType", "children"],
31
+ _excluded4 = ["role", "notificationType", "onClose", "onCloseButtonClick", "iconDescription", "statusIconDescription", "className", "caption", "subtitle", "title", "kind", "lowContrast", "hideCloseButton", "children", "timeout"],
32
+ _excluded5 = ["actions", "role", "notificationType", "onClose", "onCloseButtonClick", "iconDescription", "statusIconDescription", "className", "subtitle", "title", "kind", "lowContrast", "hideCloseButton", "children"];
33
+ function NotificationActionButton(_ref) {
34
+ var children = _ref.children,
35
+ customClassName = _ref.className,
36
+ onClick = _ref.onClick,
37
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
38
+
39
+ var prefix = usePrefix.usePrefix();
40
+ var className = cx__default["default"](customClassName, "".concat(prefix, "--inline-notification__action-button"));
41
+ return /*#__PURE__*/React__default["default"].createElement(Button["default"], _rollupPluginBabelHelpers["extends"]({
42
+ className: className,
43
+ kind: "ghost",
44
+ onClick: onClick,
45
+ size: "small"
46
+ }, rest), children);
47
+ }
48
+ NotificationActionButton.propTypes = {
49
+ /**
50
+ * Specify the content of the notification action button.
51
+ */
52
+ children: PropTypes__default["default"].node,
53
+
54
+ /**
55
+ * Specify an optional className to be applied to the notification action button
56
+ */
57
+ className: PropTypes__default["default"].string,
58
+
59
+ /**
60
+ * Optionally specify a click handler for the notification action button.
61
+ */
62
+ onClick: PropTypes__default["default"].func
63
+ };
64
+ function NotificationButton(_ref2) {
65
+ var ariaLabel = _ref2.ariaLabel,
66
+ className = _ref2.className,
67
+ iconDescription = _ref2.iconDescription,
68
+ type = _ref2.type,
69
+ IconTag = _ref2.renderIcon,
70
+ name = _ref2.name,
71
+ notificationType = _ref2.notificationType,
72
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
73
+
74
+ var prefix = usePrefix.usePrefix();
75
+ var buttonClassName = cx__default["default"](className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--").concat(notificationType, "-notification__close-button"), notificationType));
76
+ var iconClassName = cx__default["default"](_rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--").concat(notificationType, "-notification__close-icon"), notificationType));
77
+ return /*#__PURE__*/React__default["default"].createElement("button", _rollupPluginBabelHelpers["extends"]({}, rest, {
78
+ // eslint-disable-next-line react/button-has-type
79
+ type: type,
80
+ "aria-label": iconDescription,
81
+ title: iconDescription,
82
+ className: buttonClassName
83
+ }), IconTag && /*#__PURE__*/React__default["default"].createElement(IconTag, {
84
+ "aria-label": ariaLabel,
85
+ className: iconClassName,
86
+ name: name
87
+ }));
88
+ }
89
+ NotificationButton.propTypes = {
90
+ /**
91
+ * Specify a label to be read by screen readers on the notification button
92
+ */
93
+ ariaLabel: PropTypes__default["default"].string,
94
+
95
+ /**
96
+ * Specify an optional className to be applied to the notification button
97
+ */
98
+ className: PropTypes__default["default"].string,
99
+
100
+ /**
101
+ * Provide a description for "close" icon that can be read by screen readers
102
+ */
103
+ iconDescription: PropTypes__default["default"].string,
104
+
105
+ /**
106
+ * Specify an optional icon for the Button through a string,
107
+ * if something but regular "close" icon is desirable
108
+ */
109
+ name: PropTypes__default["default"].string,
110
+
111
+ /**
112
+ * Specify the notification type
113
+ */
114
+ notificationType: PropTypes__default["default"].oneOf(['toast', 'inline']),
115
+
116
+ /**
117
+ * Optional prop to allow overriding the icon rendering.
118
+ * Can be a React component class
119
+ */
120
+ renderIcon: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].object]),
121
+
122
+ /**
123
+ * Optional prop to specify the type of the Button
124
+ */
125
+ type: PropTypes__default["default"].string
126
+ };
127
+ NotificationButton.defaultProps = {
128
+ ariaLabel: 'close notification',
129
+ // TODO: deprecate this prop
130
+ notificationType: 'toast',
131
+ type: 'button',
132
+ iconDescription: 'close icon',
133
+ renderIcon: iconsReact.Close
134
+ };
135
+ function NotificationTextDetails(_ref3) {
136
+ var title = _ref3.title,
137
+ subtitle = _ref3.subtitle,
138
+ caption = _ref3.caption,
139
+ notificationType = _ref3.notificationType,
140
+ children = _ref3.children,
141
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref3, _excluded3);
142
+
143
+ var prefix = usePrefix.usePrefix();
144
+
145
+ if (notificationType === 'toast') {
146
+ return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
147
+ className: "".concat(prefix, "--toast-notification__details")
148
+ }), /*#__PURE__*/React__default["default"].createElement("h3", {
149
+ className: "".concat(prefix, "--toast-notification__title")
150
+ }, title), /*#__PURE__*/React__default["default"].createElement("div", {
151
+ className: "".concat(prefix, "--toast-notification__subtitle")
152
+ }, subtitle), caption && /*#__PURE__*/React__default["default"].createElement("div", {
153
+ className: "".concat(prefix, "--toast-notification__caption")
154
+ }, caption), children);
155
+ }
156
+
157
+ if (notificationType === 'inline') {
158
+ return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
159
+ className: "".concat(prefix, "--inline-notification__text-wrapper")
160
+ }), /*#__PURE__*/React__default["default"].createElement("p", {
161
+ className: "".concat(prefix, "--inline-notification__title")
162
+ }, title), /*#__PURE__*/React__default["default"].createElement("div", {
163
+ className: "".concat(prefix, "--inline-notification__subtitle")
164
+ }, subtitle), children);
165
+ }
166
+ }
167
+ NotificationTextDetails.propTypes = {
168
+ /**
169
+ * Specify the caption
170
+ */
171
+ caption: PropTypes__default["default"].node,
172
+
173
+ /**
174
+ * Pass in the children that will be rendered in NotificationTextDetails
175
+ */
176
+ children: PropTypes__default["default"].node,
177
+
178
+ /**
179
+ * Specify the notification type
180
+ */
181
+ notificationType: PropTypes__default["default"].oneOf(['toast', 'inline']),
182
+
183
+ /**
184
+ * Specify the sub-title
185
+ */
186
+ subtitle: PropTypes__default["default"].node,
187
+
188
+ /**
189
+ * Specify the title
190
+ */
191
+ title: PropTypes__default["default"].string
192
+ };
193
+ NotificationTextDetails.defaultProps = {
194
+ title: 'title',
195
+ notificationType: 'toast'
196
+ };
197
+ var iconTypes = (_iconTypes = {
198
+ error: iconsReact.ErrorFilled,
199
+ success: iconsReact.CheckmarkFilled,
200
+ warning: iconsReact.WarningFilled
201
+ }, _rollupPluginBabelHelpers.defineProperty(_iconTypes, 'warning-alt', iconsReact.WarningAltFilled), _rollupPluginBabelHelpers.defineProperty(_iconTypes, "info", iconsReact.InformationFilled), _rollupPluginBabelHelpers.defineProperty(_iconTypes, 'info-square', iconsReact.InformationSquareFilled), _iconTypes);
202
+
203
+ function NotificationIcon(_ref4) {
204
+ var iconDescription = _ref4.iconDescription,
205
+ kind = _ref4.kind,
206
+ notificationType = _ref4.notificationType;
207
+ var prefix = usePrefix.usePrefix();
208
+ var IconForKind = iconTypes[kind];
209
+
210
+ if (!IconForKind) {
211
+ return null;
212
+ }
213
+
214
+ return /*#__PURE__*/React__default["default"].createElement(IconForKind, {
215
+ className: "".concat(prefix, "--").concat(notificationType, "-notification__icon")
216
+ }, /*#__PURE__*/React__default["default"].createElement("title", null, iconDescription));
217
+ }
218
+
219
+ NotificationIcon.propTypes = {
220
+ iconDescription: PropTypes__default["default"].string.isRequired,
221
+ kind: PropTypes__default["default"].oneOf(['error', 'success', 'warning', 'warning-alt', 'info', 'info-square']).isRequired,
222
+ notificationType: PropTypes__default["default"].oneOf(['inline', 'toast']).isRequired
223
+ };
224
+ function ToastNotification(_ref5) {
225
+ var _cx3;
226
+
227
+ var role = _ref5.role,
228
+ notificationType = _ref5.notificationType,
229
+ onClose = _ref5.onClose,
230
+ onCloseButtonClick = _ref5.onCloseButtonClick,
231
+ iconDescription = _ref5.iconDescription,
232
+ statusIconDescription = _ref5.statusIconDescription,
233
+ className = _ref5.className,
234
+ caption = _ref5.caption,
235
+ subtitle = _ref5.subtitle,
236
+ title = _ref5.title,
237
+ kind = _ref5.kind,
238
+ lowContrast = _ref5.lowContrast,
239
+ hideCloseButton = _ref5.hideCloseButton,
240
+ children = _ref5.children,
241
+ timeout = _ref5.timeout,
242
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref5, _excluded4);
243
+
244
+ var prefix = usePrefix.usePrefix();
245
+
246
+ var _useState = React.useState(true),
247
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
248
+ isOpen = _useState2[0],
249
+ setIsOpen = _useState2[1];
250
+
251
+ var containerClassName = cx__default["default"](className, (_cx3 = {}, _rollupPluginBabelHelpers.defineProperty(_cx3, "".concat(prefix, "--toast-notification"), true), _rollupPluginBabelHelpers.defineProperty(_cx3, "".concat(prefix, "--toast-notification--low-contrast"), lowContrast), _rollupPluginBabelHelpers.defineProperty(_cx3, "".concat(prefix, "--toast-notification--").concat(kind), kind), _cx3));
252
+
253
+ var handleClose = function handleClose(evt) {
254
+ if (!onClose || onClose(evt) !== false) {
255
+ setIsOpen(false);
256
+ }
257
+ };
258
+
259
+ function handleCloseButtonClick(event) {
260
+ onCloseButtonClick(event);
261
+ handleClose(event);
262
+ }
263
+
264
+ var savedOnClose = React.useRef(onClose);
265
+ React.useEffect(function () {
266
+ savedOnClose.current = onClose;
267
+ });
268
+ React.useEffect(function () {
269
+ if (!timeout) {
270
+ return;
271
+ }
272
+
273
+ var timeoutId = window.setTimeout(function (event) {
274
+ setIsOpen(false);
275
+
276
+ if (savedOnClose.current) {
277
+ savedOnClose.current(event);
278
+ }
279
+ }, timeout);
280
+ return function () {
281
+ window.clearTimeout(timeoutId);
282
+ };
283
+ }, [timeout]);
284
+
285
+ if (!isOpen) {
286
+ return null;
287
+ }
288
+
289
+ return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
290
+ role: role,
291
+ kind: kind,
292
+ className: containerClassName
293
+ }), /*#__PURE__*/React__default["default"].createElement(NotificationIcon, {
294
+ notificationType: notificationType,
295
+ kind: kind,
296
+ iconDescription: statusIconDescription || "".concat(kind, " icon")
297
+ }), /*#__PURE__*/React__default["default"].createElement(NotificationTextDetails, {
298
+ title: title,
299
+ subtitle: subtitle,
300
+ caption: caption,
301
+ notificationType: notificationType
302
+ }, children), !hideCloseButton && /*#__PURE__*/React__default["default"].createElement(NotificationButton, {
303
+ iconDescription: iconDescription,
304
+ notificationType: notificationType,
305
+ onClick: handleCloseButtonClick
306
+ }));
307
+ }
308
+ ToastNotification.propTypes = {
309
+ /**
310
+ * Specify the caption
311
+ */
312
+ caption: PropTypes__default["default"].node,
313
+
314
+ /**
315
+ * Pass in the children that will be rendered within the ToastNotification
316
+ */
317
+ children: PropTypes__default["default"].node,
318
+
319
+ /**
320
+ * Specify an optional className to be applied to the notification box
321
+ */
322
+ className: PropTypes__default["default"].string,
323
+
324
+ /**
325
+ * Specify the close button should be disabled, or not
326
+ */
327
+ hideCloseButton: PropTypes__default["default"].bool,
328
+
329
+ /**
330
+ * Provide a description for "close" icon that can be read by screen readers
331
+ */
332
+ iconDescription: PropTypes__default["default"].string,
333
+
334
+ /**
335
+ * Specify what state the notification represents
336
+ */
337
+ kind: PropTypes__default["default"].oneOf(['error', 'info', 'info-square', 'success', 'warning', 'warning-alt']).isRequired,
338
+
339
+ /**
340
+ * Specify whether you are using the low contrast variant of the ToastNotification.
341
+ */
342
+ lowContrast: PropTypes__default["default"].bool,
343
+
344
+ /**
345
+ * By default, this value is "toast". You can also provide an alternate type
346
+ * if it makes sense for the underlying `<NotificationTextDetails>` and `<NotificationButton>`
347
+ */
348
+ notificationType: PropTypes__default["default"].string,
349
+
350
+ /**
351
+ * Provide a function that is called when menu is closed
352
+ */
353
+ onClose: PropTypes__default["default"].func,
354
+
355
+ /**
356
+ * Provide a function that is called when the close button is clicked
357
+ */
358
+ onCloseButtonClick: PropTypes__default["default"].func,
359
+
360
+ /**
361
+ * By default, this value is "alert". You can also provide an alternate
362
+ * role if it makes sense from the accessibility-side
363
+ */
364
+ role: PropTypes__default["default"].string.isRequired,
365
+
366
+ /**
367
+ * Provide a description for "status" icon that can be read by screen readers
368
+ */
369
+ statusIconDescription: PropTypes__default["default"].string,
370
+
371
+ /**
372
+ * Specify the sub-title
373
+ */
374
+ subtitle: PropTypes__default["default"].node,
375
+
376
+ /**
377
+ * Specify an optional duration the notification should be closed in
378
+ */
379
+ timeout: PropTypes__default["default"].number,
380
+
381
+ /**
382
+ * Specify the title
383
+ */
384
+ title: PropTypes__default["default"].string.isRequired
385
+ };
386
+ ToastNotification.defaultProps = {
387
+ kind: 'error',
388
+ title: 'provide a title',
389
+ role: 'alert',
390
+ notificationType: 'toast',
391
+ iconDescription: 'closes notification',
392
+ onCloseButtonClick: function onCloseButtonClick() {},
393
+ hideCloseButton: false,
394
+ timeout: 0
395
+ };
396
+ function InlineNotification(_ref6) {
397
+ var _cx4;
398
+
399
+ var actions = _ref6.actions,
400
+ role = _ref6.role,
401
+ notificationType = _ref6.notificationType,
402
+ onClose = _ref6.onClose,
403
+ onCloseButtonClick = _ref6.onCloseButtonClick,
404
+ iconDescription = _ref6.iconDescription,
405
+ statusIconDescription = _ref6.statusIconDescription,
406
+ className = _ref6.className,
407
+ subtitle = _ref6.subtitle,
408
+ title = _ref6.title,
409
+ kind = _ref6.kind,
410
+ lowContrast = _ref6.lowContrast,
411
+ hideCloseButton = _ref6.hideCloseButton,
412
+ children = _ref6.children,
413
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref6, _excluded5);
414
+
415
+ var prefix = usePrefix.usePrefix();
416
+
417
+ var _useState3 = React.useState(true),
418
+ _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
419
+ isOpen = _useState4[0],
420
+ setIsOpen = _useState4[1];
421
+
422
+ var containerClassName = cx__default["default"](className, (_cx4 = {}, _rollupPluginBabelHelpers.defineProperty(_cx4, "".concat(prefix, "--inline-notification"), true), _rollupPluginBabelHelpers.defineProperty(_cx4, "".concat(prefix, "--inline-notification--low-contrast"), lowContrast), _rollupPluginBabelHelpers.defineProperty(_cx4, "".concat(prefix, "--inline-notification--").concat(kind), kind), _rollupPluginBabelHelpers.defineProperty(_cx4, "".concat(prefix, "--inline-notification--hide-close-button"), hideCloseButton), _cx4));
423
+
424
+ var handleClose = function handleClose(evt) {
425
+ if (!onClose || onClose(evt) !== false) {
426
+ setIsOpen(false);
427
+ }
428
+ };
429
+
430
+ function handleCloseButtonClick(event) {
431
+ onCloseButtonClick(event);
432
+ handleClose(event);
433
+ }
434
+
435
+ if (!isOpen) {
436
+ return null;
437
+ }
438
+
439
+ return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
440
+ role: role,
441
+ kind: kind,
442
+ className: containerClassName
443
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
444
+ className: "".concat(prefix, "--inline-notification__details")
445
+ }, /*#__PURE__*/React__default["default"].createElement(NotificationIcon, {
446
+ notificationType: notificationType,
447
+ kind: kind,
448
+ iconDescription: statusIconDescription || "".concat(kind, " icon")
449
+ }), /*#__PURE__*/React__default["default"].createElement(NotificationTextDetails, {
450
+ title: title,
451
+ subtitle: subtitle,
452
+ notificationType: notificationType
453
+ }, children)), actions, !hideCloseButton && /*#__PURE__*/React__default["default"].createElement(NotificationButton, {
454
+ iconDescription: iconDescription,
455
+ notificationType: notificationType,
456
+ onClick: handleCloseButtonClick
457
+ }));
458
+ }
459
+ InlineNotification.propTypes = {
460
+ /**
461
+ * Pass in the action nodes that will be rendered within the InlineNotification
462
+ */
463
+ actions: PropTypes__default["default"].node,
464
+
465
+ /**
466
+ * Pass in the children that will be rendered within the InlineNotification
467
+ */
468
+ children: PropTypes__default["default"].node,
469
+
470
+ /**
471
+ * Specify an optional className to be applied to the notification box
472
+ */
473
+ className: PropTypes__default["default"].string,
474
+
475
+ /**
476
+ * Specify the close button should be disabled, or not
477
+ */
478
+ hideCloseButton: PropTypes__default["default"].bool,
479
+
480
+ /**
481
+ * Provide a description for "close" icon that can be read by screen readers
482
+ */
483
+ iconDescription: PropTypes__default["default"].string,
484
+
485
+ /**
486
+ * Specify what state the notification represents
487
+ */
488
+ kind: PropTypes__default["default"].oneOf(['error', 'info', 'info-square', 'success', 'warning', 'warning-alt']).isRequired,
489
+
490
+ /**
491
+ * Specify whether you are using the low contrast variant of the InlineNotification.
492
+ */
493
+ lowContrast: PropTypes__default["default"].bool,
494
+
495
+ /**
496
+ * By default, this value is "inline". You can also provide an alternate type
497
+ * if it makes sense for the underlying `<NotificationTextDetails>` and `<NotificationButton>`
498
+ */
499
+ notificationType: PropTypes__default["default"].string,
500
+
501
+ /**
502
+ * Provide a function that is called when menu is closed
503
+ */
504
+ onClose: PropTypes__default["default"].func,
505
+
506
+ /**
507
+ * Provide a function that is called when the close button is clicked
508
+ */
509
+ onCloseButtonClick: PropTypes__default["default"].func,
510
+
511
+ /**
512
+ * By default, this value is "alert". You can also provide an alternate
513
+ * role if it makes sense from the accessibility-side
514
+ */
515
+ role: PropTypes__default["default"].string.isRequired,
516
+
517
+ /**
518
+ * Provide a description for "status" icon that can be read by screen readers
519
+ */
520
+ statusIconDescription: PropTypes__default["default"].string,
521
+
522
+ /**
523
+ * Specify the sub-title
524
+ */
525
+ subtitle: PropTypes__default["default"].node,
526
+
527
+ /**
528
+ * Specify the title
529
+ */
530
+ title: PropTypes__default["default"].string.isRequired
531
+ };
532
+ InlineNotification.defaultProps = {
533
+ role: 'alert',
534
+ notificationType: 'inline',
535
+ iconDescription: 'closes notification',
536
+ onCloseButtonClick: function onCloseButtonClick() {},
537
+ hideCloseButton: false
538
+ };
539
+
540
+ exports.InlineNotification = InlineNotification;
541
+ exports.NotificationActionButton = NotificationActionButton;
542
+ exports.NotificationButton = NotificationButton;
543
+ exports.NotificationTextDetails = NotificationTextDetails;
544
+ exports.ToastNotification = ToastNotification;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2021
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
+ 'use strict';
9
+
10
+ Object.defineProperty(exports, '__esModule', { value: true });
11
+
12
+ var Notification = require('./next/Notification.js');
13
+ var Notification$1 = require('./Notification.js');
14
+ var ComponentToggle = require('../../internal/ComponentToggle.js');
15
+
16
+ var NotificationActionButton = ComponentToggle.createComponentToggle({
17
+ name: 'NotificationActionButton',
18
+ next: Notification.NotificationActionButton,
19
+ classic: Notification$1.NotificationActionButton
20
+ });
21
+ var NotificationTextDetails = ComponentToggle.createComponentToggle({
22
+ name: 'NotificationTextDetails',
23
+ classic: Notification$1.NotificationTextDetails
24
+ });
25
+ var NotificationButton = ComponentToggle.createComponentToggle({
26
+ name: 'NotificationButton',
27
+ next: Notification.NotificationButton,
28
+ classic: Notification$1.NotificationButton
29
+ });
30
+ var ToastNotification = ComponentToggle.createComponentToggle({
31
+ name: 'ToastNotification',
32
+ next: Notification.ToastNotification,
33
+ classic: Notification$1.ToastNotification
34
+ });
35
+ var InlineNotification = ComponentToggle.createComponentToggle({
36
+ name: 'InlineNotification',
37
+ next: Notification.InlineNotification,
38
+ classic: Notification$1.InlineNotification
39
+ });
40
+ var ActionableNotification = ComponentToggle.createComponentToggle({
41
+ name: 'ActionableNotification',
42
+ next: Notification.ActionableNotification,
43
+ classic: null
44
+ });
45
+
46
+ exports.ActionableNotification = ActionableNotification;
47
+ exports.InlineNotification = InlineNotification;
48
+ exports.NotificationActionButton = NotificationActionButton;
49
+ exports.NotificationButton = NotificationButton;
50
+ exports.NotificationTextDetails = NotificationTextDetails;
51
+ exports.ToastNotification = ToastNotification;