@carbon/ibm-products 1.25.1 → 2.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (466) hide show
  1. package/css/index-full-carbon.css +24548 -24333
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +10 -12
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +5770 -2820
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +10 -12
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +10407 -4482
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +10 -12
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +10786 -14938
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +10 -12
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.js +14 -6
  18. package/es/components/AboutModal/AboutModal.js +37 -10
  19. package/es/components/ActionBar/ActionBar.js +4 -3
  20. package/es/components/ActionBar/ActionBarItem.js +15 -13
  21. package/es/components/ActionBar/ActionBarOverflowItems.js +3 -2
  22. package/es/components/ActionSet/ActionSet.js +6 -6
  23. package/es/components/AddSelect/AddSelect.js +4 -2
  24. package/es/components/AddSelect/AddSelectBody.js +12 -6
  25. package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -1
  26. package/es/components/AddSelect/AddSelectColumn.js +21 -10
  27. package/es/components/AddSelect/AddSelectFilter.js +8 -3
  28. package/es/components/AddSelect/AddSelectList.js +17 -7
  29. package/es/components/AddSelect/AddSelectMetaPanel.js +8 -3
  30. package/es/components/AddSelect/AddSelectSidebar.js +1 -1
  31. package/es/components/AddSelect/AddSelectSort.js +20 -8
  32. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +24 -13
  33. package/es/components/ButtonMenu/ButtonMenu.js +15 -6
  34. package/es/components/ButtonMenu/ButtonMenuItem.js +1 -1
  35. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +7 -5
  36. package/es/components/Card/Card.js +12 -10
  37. package/es/components/Card/CardFooter.js +3 -3
  38. package/es/components/Cascade/Cascade.js +1 -1
  39. package/es/components/ComboButton/ComboButton.js +11 -3
  40. package/es/components/CreateFullPage/CreateFullPage.js +4 -4
  41. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -1
  42. package/es/components/CreateInfluencer/CreateInfluencer.js +1 -1
  43. package/es/components/CreateModal/CreateModal.js +1 -1
  44. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  45. package/es/components/CreateTearsheet/CreateTearsheet.js +3 -3
  46. package/es/components/CreateTearsheet/CreateTearsheetStep.js +4 -2
  47. package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +14 -5
  48. package/es/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +11 -4
  49. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  50. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -3
  51. package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
  52. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -1
  53. package/es/components/Datagrid/Datagrid/DatagridHead.js +1 -1
  54. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
  55. package/es/components/Datagrid/Datagrid/DatagridRow.js +1 -1
  56. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
  57. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +12 -5
  58. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  59. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
  60. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -1
  61. package/es/components/Datagrid/Datagrid/DraggableElement.js +4 -2
  62. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +8 -3
  63. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +7 -3
  64. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  65. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +1 -1
  66. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +10 -10
  67. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +23 -26
  68. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/CustomizeColumnStory.js +0 -0
  69. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/LeftPanelStory.js +0 -0
  70. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/RowSizeDropdownStory.js +0 -0
  71. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/SelectAllWithToggleStory.js +0 -0
  72. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/StickyActionsColumnStory.js +0 -0
  73. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/common.js +0 -0
  74. package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/index.js +2 -2
  75. package/es/components/Datagrid/useActionsColumn.js +1 -1
  76. package/es/components/Datagrid/useRowExpander.js +6 -2
  77. package/es/components/Datagrid/useSelectRows.js +4 -3
  78. package/es/components/Datagrid/useSortableColumns.js +19 -8
  79. package/es/components/EditSidePanel/EditSidePanel.js +2 -2
  80. package/es/components/EditTearsheet/EditTearsheet.js +1 -1
  81. package/es/components/EditTearsheet/EditTearsheetForm.js +4 -2
  82. package/es/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +9 -9
  83. package/es/components/EmptyStates/EmptyState.js +1 -1
  84. package/es/components/EmptyStates/EmptyStateContent.js +1 -1
  85. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  86. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  87. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  88. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  89. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  90. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  91. package/es/components/ExampleComponent/ExampleComponent.js +4 -4
  92. package/es/components/ExportModal/ExportModal.js +7 -4
  93. package/es/components/ExpressiveCard/ExpressiveCard.js +1 -1
  94. package/es/components/HTTPErrors/HTTPErrorContent.js +1 -1
  95. package/es/components/ImportModal/ImportModal.js +12 -6
  96. package/es/components/InlineEdit/InlineEdit.js +27 -15
  97. package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +9 -5
  98. package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +13 -15
  99. package/es/components/ModifiedTabs/ModifiedTabs.js +64 -42
  100. package/es/components/MultiAddSelect/MultiAddSelect.js +2 -2
  101. package/es/components/NotificationsPanel/NotificationsPanel.js +32 -18
  102. package/es/components/OptionsTile/OptionsTile.js +15 -9
  103. package/es/components/PageHeader/PageHeader.js +13 -9
  104. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  105. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  106. package/es/components/ProductiveCard/ProductiveCard.js +5 -0
  107. package/es/components/RemoveModal/RemoveModal.js +3 -2
  108. package/es/components/Saving/Saving.js +26 -8
  109. package/es/components/SidePanel/SidePanel.js +18 -10
  110. package/es/components/StatusIcon/StatusIcon.js +294 -74
  111. package/es/components/TagSet/TagSet.js +6 -15
  112. package/es/components/TagSet/TagSetModal.js +4 -3
  113. package/es/components/TagSet/TagSetOverflow.js +37 -34
  114. package/es/components/TagSet/constants.js +20 -0
  115. package/es/components/Tearsheet/Tearsheet.js +2 -2
  116. package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
  117. package/es/components/Tearsheet/TearsheetShell.js +11 -9
  118. package/es/components/Toolbar/Toolbar.js +2 -1
  119. package/es/components/Toolbar/ToolbarButton.js +22 -13
  120. package/es/components/UserProfileImage/UserProfileImage.js +38 -13
  121. package/es/components/WebTerminal/WebTerminal.js +15 -6
  122. package/es/components/WebTerminal/preview-components/Navigation.js +11 -5
  123. package/es/components/_Canary/Canary.js +1 -1
  124. package/es/global/js/hooks/index.js +1 -1
  125. package/es/global/js/utils/test-helper.js +2 -1
  126. package/es/settings.js +2 -10
  127. package/lib/components/APIKeyModal/APIKeyModal.js +25 -17
  128. package/lib/components/AboutModal/AboutModal.js +43 -15
  129. package/lib/components/ActionBar/ActionBar.js +6 -5
  130. package/lib/components/ActionBar/ActionBarItem.js +15 -13
  131. package/lib/components/ActionBar/ActionBarOverflowItems.js +5 -4
  132. package/lib/components/ActionSet/ActionSet.js +13 -13
  133. package/lib/components/AddSelect/AddSelect.js +4 -2
  134. package/lib/components/AddSelect/AddSelectBody.js +13 -7
  135. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +3 -3
  136. package/lib/components/AddSelect/AddSelectColumn.js +23 -13
  137. package/lib/components/AddSelect/AddSelectFilter.js +16 -10
  138. package/lib/components/AddSelect/AddSelectList.js +26 -15
  139. package/lib/components/AddSelect/AddSelectMetaPanel.js +9 -3
  140. package/lib/components/AddSelect/AddSelectSidebar.js +4 -4
  141. package/lib/components/AddSelect/AddSelectSort.js +22 -9
  142. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +29 -19
  143. package/lib/components/ButtonMenu/ButtonMenu.js +18 -9
  144. package/lib/components/ButtonMenu/ButtonMenuItem.js +3 -3
  145. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +10 -8
  146. package/lib/components/Card/Card.js +15 -13
  147. package/lib/components/Card/CardFooter.js +5 -5
  148. package/lib/components/Cascade/Cascade.js +2 -2
  149. package/lib/components/ComboButton/ComboButton.js +21 -13
  150. package/lib/components/CreateFullPage/CreateFullPage.js +8 -8
  151. package/lib/components/CreateFullPage/CreateFullPageStep.js +2 -2
  152. package/lib/components/CreateInfluencer/CreateInfluencer.js +3 -3
  153. package/lib/components/CreateModal/CreateModal.js +7 -7
  154. package/lib/components/CreateSidePanel/CreateSidePanel.js +2 -2
  155. package/lib/components/CreateTearsheet/CreateTearsheet.js +3 -3
  156. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -3
  157. package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +27 -18
  158. package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +26 -19
  159. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  160. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -4
  161. package/lib/components/Datagrid/Datagrid/Datagrid.js +3 -3
  162. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -4
  163. package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  164. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +3 -3
  165. package/lib/components/Datagrid/Datagrid/DatagridRow.js +4 -4
  166. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -2
  167. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +15 -8
  168. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +2 -2
  169. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
  170. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -2
  171. package/lib/components/Datagrid/Datagrid/DraggableElement.js +3 -1
  172. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +10 -4
  173. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +7 -3
  174. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +2 -2
  175. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +2 -2
  176. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -9
  177. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +24 -27
  178. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/CustomizeColumnStory.js +0 -0
  179. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/LeftPanelStory.js +0 -0
  180. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/RowSizeDropdownStory.js +0 -0
  181. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/SelectAllWithToggleStory.js +0 -0
  182. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/StickyActionsColumnStory.js +0 -0
  183. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/common.js +0 -0
  184. package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/index.js +2 -2
  185. package/lib/components/Datagrid/useActionsColumn.js +4 -4
  186. package/lib/components/Datagrid/useRowExpander.js +5 -1
  187. package/lib/components/Datagrid/useSelectRows.js +4 -3
  188. package/lib/components/Datagrid/useSortableColumns.js +20 -8
  189. package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
  190. package/lib/components/EditTearsheet/EditTearsheet.js +5 -5
  191. package/lib/components/EditTearsheet/EditTearsheetForm.js +5 -3
  192. package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +21 -21
  193. package/lib/components/EmptyStates/EmptyState.js +4 -4
  194. package/lib/components/EmptyStates/EmptyStateContent.js +6 -6
  195. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -4
  196. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -4
  197. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -4
  198. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -4
  199. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -4
  200. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -4
  201. package/lib/components/ExampleComponent/ExampleComponent.js +7 -7
  202. package/lib/components/ExportModal/ExportModal.js +17 -14
  203. package/lib/components/ExpressiveCard/ExpressiveCard.js +1 -1
  204. package/lib/components/HTTPErrors/HTTPErrorContent.js +3 -3
  205. package/lib/components/ImportModal/ImportModal.js +19 -14
  206. package/lib/components/InlineEdit/InlineEdit.js +26 -14
  207. package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +10 -4
  208. package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +14 -14
  209. package/lib/components/ModifiedTabs/ModifiedTabs.js +66 -45
  210. package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -2
  211. package/lib/components/NotificationsPanel/NotificationsPanel.js +37 -23
  212. package/lib/components/OptionsTile/OptionsTile.js +15 -9
  213. package/lib/components/PageHeader/PageHeader.js +33 -29
  214. package/lib/components/PageHeader/PageHeaderTitle.js +2 -2
  215. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  216. package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
  217. package/lib/components/RemoveModal/RemoveModal.js +9 -8
  218. package/lib/components/Saving/Saving.js +28 -10
  219. package/lib/components/SidePanel/SidePanel.js +22 -14
  220. package/lib/components/StatusIcon/StatusIcon.js +300 -75
  221. package/lib/components/TagSet/TagSet.js +8 -17
  222. package/lib/components/TagSet/TagSetModal.js +10 -9
  223. package/lib/components/TagSet/TagSetOverflow.js +38 -35
  224. package/lib/components/TagSet/constants.js +27 -0
  225. package/lib/components/Tearsheet/Tearsheet.js +4 -4
  226. package/lib/components/Tearsheet/TearsheetNarrow.js +3 -3
  227. package/lib/components/Tearsheet/TearsheetShell.js +13 -12
  228. package/lib/components/Toolbar/Toolbar.js +3 -1
  229. package/lib/components/Toolbar/ToolbarButton.js +20 -10
  230. package/lib/components/UserProfileImage/UserProfileImage.js +37 -12
  231. package/lib/components/WebTerminal/WebTerminal.js +19 -10
  232. package/lib/components/WebTerminal/preview-components/Navigation.js +13 -7
  233. package/lib/components/_Canary/Canary.js +2 -2
  234. package/lib/global/js/utils/test-helper.js +2 -1
  235. package/lib/settings.js +2 -11
  236. package/package.json +11 -12
  237. package/scss/components/APIKeyModal/_api-key-modal.scss +44 -55
  238. package/scss/components/APIKeyModal/_carbon-imports.scss +15 -0
  239. package/scss/components/APIKeyModal/_index-with-carbon.scss +9 -0
  240. package/scss/components/APIKeyModal/_index.scss +1 -1
  241. package/scss/components/APIKeyModal/_storybook-styles.scss +10 -8
  242. package/scss/components/AboutModal/_about-modal.scss +120 -112
  243. package/scss/components/AboutModal/_carbon-imports.scss +11 -0
  244. package/scss/components/AboutModal/_index-with-carbon.scss +9 -0
  245. package/scss/components/AboutModal/_index.scss +1 -1
  246. package/scss/components/AboutModal/_storybook-styles.scss +2 -1
  247. package/scss/components/ActionBar/_action-bar.scss +35 -47
  248. package/scss/components/ActionBar/_carbon-imports.scss +11 -0
  249. package/scss/components/ActionBar/_index-with-carbon.scss +9 -0
  250. package/scss/components/ActionBar/_index.scss +1 -1
  251. package/scss/components/ActionBar/_storybook-styles.scss +1 -1
  252. package/scss/components/ActionSet/_action-set.scss +88 -96
  253. package/scss/components/ActionSet/_carbon-imports.scss +11 -0
  254. package/scss/components/ActionSet/_index-with-carbon.scss +9 -0
  255. package/scss/components/ActionSet/_index.scss +1 -1
  256. package/scss/components/ActionSet/_storybook-styles.scss +3 -3
  257. package/scss/components/AddSelect/_add-select.scss +288 -278
  258. package/scss/components/AddSelect/_carbon-imports.scss +19 -0
  259. package/scss/components/AddSelect/_index-with-carbon.scss +9 -0
  260. package/scss/components/AddSelect/_index.scss +1 -1
  261. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +58 -64
  262. package/scss/components/BreadcrumbWithOverflow/_carbon-imports.scss +12 -0
  263. package/scss/components/BreadcrumbWithOverflow/_index-with-carbon.scss +9 -0
  264. package/scss/components/BreadcrumbWithOverflow/_index.scss +1 -1
  265. package/scss/components/BreadcrumbWithOverflow/_storybook-styles.scss +1 -1
  266. package/scss/components/ButtonMenu/_button-menu.scss +12 -19
  267. package/scss/components/ButtonMenu/_carbon-imports.scss +9 -0
  268. package/scss/components/ButtonMenu/_index-with-carbon.scss +9 -0
  269. package/scss/components/ButtonMenu/_index.scss +1 -1
  270. package/scss/components/ButtonSetWithOverflow/_button-set-with-overflow.scss +24 -34
  271. package/scss/components/ButtonSetWithOverflow/_carbon-imports.scss +10 -0
  272. package/scss/components/ButtonSetWithOverflow/_index-with-carbon.scss +9 -0
  273. package/scss/components/ButtonSetWithOverflow/_index.scss +1 -1
  274. package/scss/components/ButtonSetWithOverflow/_storybook-styles.scss +1 -1
  275. package/scss/components/Card/_carbon-imports.scss +11 -0
  276. package/scss/components/Card/_card.scss +107 -114
  277. package/scss/components/Card/_index-with-carbon.scss +9 -0
  278. package/scss/components/Card/_index.scss +1 -3
  279. package/scss/components/Cascade/_carbon-imports.scss +6 -0
  280. package/scss/components/Cascade/_cascade.scss +30 -34
  281. package/scss/components/Cascade/_index-with-carbon.scss +9 -0
  282. package/scss/components/Cascade/_index.scss +1 -1
  283. package/scss/components/Cascade/_storybook-styles.scss +6 -5
  284. package/scss/components/ComboButton/_carbon-imports.scss +11 -0
  285. package/scss/components/ComboButton/_combo-button.scss +57 -46
  286. package/scss/components/ComboButton/_index-with-carbon.scss +9 -0
  287. package/scss/components/ComboButton/_index.scss +1 -1
  288. package/scss/components/CreateFullPage/_carbon-imports.scss +17 -0
  289. package/scss/components/CreateFullPage/_create-full-page.scss +134 -140
  290. package/scss/components/CreateFullPage/_index-with-carbon.scss +9 -0
  291. package/scss/components/CreateFullPage/_index.scss +1 -1
  292. package/scss/components/CreateFullPage/_storybook-styles.scss +26 -10
  293. package/scss/components/CreateInfluencer/_carbon-imports.scss +10 -0
  294. package/scss/components/CreateInfluencer/_create-influencer.scss +65 -70
  295. package/scss/components/CreateInfluencer/_index-with-carbon.scss +9 -0
  296. package/scss/components/CreateInfluencer/_index.scss +1 -1
  297. package/scss/components/CreateModal/_carbon-imports.scss +12 -0
  298. package/scss/components/CreateModal/_create-modal.scss +56 -59
  299. package/scss/components/CreateModal/_index-with-carbon.scss +9 -0
  300. package/scss/components/CreateModal/_index.scss +1 -1
  301. package/scss/components/CreateModal/_storybook-styles.scss +24 -21
  302. package/scss/components/CreateSidePanel/_carbon-imports.scss +10 -0
  303. package/scss/components/CreateSidePanel/_create-side-panel.scss +65 -71
  304. package/scss/components/CreateSidePanel/_index-with-carbon.scss +9 -0
  305. package/scss/components/CreateSidePanel/_index.scss +1 -1
  306. package/scss/components/CreateSidePanel/_storybook-styles.scss +8 -6
  307. package/scss/components/CreateTearsheet/_carbon-imports.scss +10 -0
  308. package/scss/components/CreateTearsheet/_create-tearsheet.scss +116 -98
  309. package/scss/components/CreateTearsheet/_index-with-carbon.scss +9 -0
  310. package/scss/components/CreateTearsheet/_index.scss +1 -1
  311. package/scss/components/CreateTearsheet/_storybook-styles.scss +14 -11
  312. package/scss/components/CreateTearsheetNarrow/_carbon-imports.scss +10 -0
  313. package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +36 -44
  314. package/scss/components/CreateTearsheetNarrow/_index-with-carbon.scss +9 -0
  315. package/scss/components/CreateTearsheetNarrow/_index.scss +1 -1
  316. package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +7 -6
  317. package/scss/components/DataSpreadsheet/_carbon-imports.scss +6 -0
  318. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +217 -173
  319. package/scss/components/DataSpreadsheet/_index-with-carbon.scss +9 -0
  320. package/scss/components/DataSpreadsheet/_index.scss +1 -1
  321. package/scss/components/Datagrid/_carbon-imports.scss +6 -0
  322. package/scss/components/Datagrid/_datagrid.scss +29 -36
  323. package/scss/components/Datagrid/_index-with-carbon.scss +9 -0
  324. package/scss/components/Datagrid/_index.scss +1 -1
  325. package/scss/components/Datagrid/_storybook-styles.scss +15 -11
  326. package/scss/components/Datagrid/styles/_datagrid.scss +62 -59
  327. package/scss/components/Datagrid/styles/_draggableElement.scss +15 -13
  328. package/scss/components/Datagrid/styles/_index.scss +13 -13
  329. package/scss/components/Datagrid/styles/_useActionsColumn.scss +5 -4
  330. package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +2 -1
  331. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +5 -5
  332. package/scss/components/Datagrid/styles/_useExpandedRow.scss +14 -7
  333. package/scss/components/Datagrid/styles/_useNestedRows.scss +6 -3
  334. package/scss/components/Datagrid/styles/_useNestedTable.scss +15 -9
  335. package/scss/components/Datagrid/styles/_useSelectAllToggle.scss +6 -5
  336. package/scss/components/Datagrid/styles/_useSortableColumns.scss +14 -12
  337. package/scss/components/Datagrid/styles/_useStickyColumn.scss +10 -9
  338. package/scss/components/Datagrid/styles/_variables.scss +3 -2
  339. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +15 -11
  340. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +9 -7
  341. package/scss/components/EditFullPage/_edit-full-page.scss +9 -17
  342. package/scss/components/EditSidePanel/_carbon-imports.scss +9 -0
  343. package/scss/components/EditSidePanel/_edit-side-panel.scss +45 -54
  344. package/scss/components/EditSidePanel/_index-with-carbon.scss +9 -0
  345. package/scss/components/EditSidePanel/_index.scss +1 -1
  346. package/scss/components/EditSidePanel/_storybook-styles.scss +3 -1
  347. package/scss/components/EditTearsheet/_edit-tearsheet.scss +95 -93
  348. package/scss/components/EditTearsheet/_storybook-styles.scss +15 -11
  349. package/scss/components/EditTearsheetNarrow/_edit-tearsheet-narrow.scss +9 -17
  350. package/scss/components/EmptyStates/_carbon-imports.scss +11 -0
  351. package/scss/components/EmptyStates/_empty-state.scss +38 -48
  352. package/scss/components/EmptyStates/_index-with-carbon.scss +9 -0
  353. package/scss/components/EmptyStates/_index.scss +1 -1
  354. package/scss/components/ExampleComponent/_carbon-imports.scss +10 -0
  355. package/scss/components/ExampleComponent/_example-component.scss +15 -26
  356. package/scss/components/ExampleComponent/_index-with-carbon.scss +9 -0
  357. package/scss/components/ExampleComponent/_index.scss +1 -1
  358. package/scss/components/ExportModal/_carbon-imports.scss +16 -0
  359. package/scss/components/ExportModal/_export-modal.scss +41 -48
  360. package/scss/components/ExportModal/_index-with-carbon.scss +9 -0
  361. package/scss/components/ExportModal/_index.scss +1 -1
  362. package/scss/components/ExpressiveCard/_carbon-imports.scss +6 -0
  363. package/scss/components/ExpressiveCard/_expressive-card.scss +7 -14
  364. package/scss/components/ExpressiveCard/_index-with-carbon.scss +9 -0
  365. package/scss/components/ExpressiveCard/_index.scss +1 -1
  366. package/scss/components/ExpressiveCard/_storybook-styles.scss +6 -5
  367. package/scss/components/HTTPErrors/_carbon-imports.scss +10 -0
  368. package/scss/components/HTTPErrors/_http-errors.scss +48 -56
  369. package/scss/components/HTTPErrors/_index-with-carbon.scss +9 -0
  370. package/scss/components/HTTPErrors/_index.scss +1 -1
  371. package/scss/components/ImportModal/_carbon-imports.scss +14 -0
  372. package/scss/components/ImportModal/_import-modal.scss +72 -77
  373. package/scss/components/ImportModal/_index-with-carbon.scss +9 -0
  374. package/scss/components/ImportModal/_index.scss +1 -1
  375. package/scss/components/InlineEdit/_carbon-imports.scss +6 -0
  376. package/scss/components/InlineEdit/_index-with-carbon.scss +9 -0
  377. package/scss/components/InlineEdit/_index.scss +1 -1
  378. package/scss/components/InlineEdit/_inline-edit.scss +261 -237
  379. package/scss/components/InlineEdit/_storybook-styles.scss +7 -3
  380. package/scss/components/ModifiedTabs/_carbon-imports.scss +10 -0
  381. package/scss/components/ModifiedTabs/_index-with-carbon.scss +9 -0
  382. package/scss/components/ModifiedTabs/_index.scss +8 -1
  383. package/scss/components/ModifiedTabs/_modified-tabs.scss +38 -16
  384. package/scss/components/MultiAddSelect/_carbon-imports.scss +6 -0
  385. package/scss/components/MultiAddSelect/_index-with-carbon.scss +9 -0
  386. package/scss/components/MultiAddSelect/_index.scss +8 -1
  387. package/scss/components/MultiAddSelect/_multi-add-select.scss +1 -1
  388. package/scss/components/NotificationsPanel/_carbon-imports.scss +12 -0
  389. package/scss/components/NotificationsPanel/_index-with-carbon.scss +9 -0
  390. package/scss/components/NotificationsPanel/_index.scss +1 -1
  391. package/scss/components/NotificationsPanel/_notifications-panel.scss +241 -237
  392. package/scss/components/NotificationsPanel/_storybook-styles.scss +9 -0
  393. package/scss/components/OptionsTile/_carbon-imports.scss +10 -0
  394. package/scss/components/OptionsTile/_index-with-carbon.scss +9 -0
  395. package/scss/components/OptionsTile/_index.scss +1 -1
  396. package/scss/components/OptionsTile/_options-tile.scss +173 -171
  397. package/scss/components/OptionsTile/_storybook-styles.scss +7 -4
  398. package/scss/components/PageHeader/_carbon-imports.scss +13 -0
  399. package/scss/components/PageHeader/_index-with-carbon.scss +9 -0
  400. package/scss/components/PageHeader/_index.scss +1 -1
  401. package/scss/components/PageHeader/_page-header.scss +449 -461
  402. package/scss/components/PageHeader/_storybook-styles.scss +15 -11
  403. package/scss/components/ProductiveCard/_carbon-imports.scss +6 -0
  404. package/scss/components/ProductiveCard/_index-with-carbon.scss +9 -0
  405. package/scss/components/ProductiveCard/_index.scss +1 -1
  406. package/scss/components/ProductiveCard/_productive-card.scss +43 -48
  407. package/scss/components/ProductiveCard/_storybook-styles.scss +7 -6
  408. package/scss/components/RemoveModal/_carbon-imports.scss +12 -0
  409. package/scss/components/RemoveModal/_index-with-carbon.scss +9 -0
  410. package/scss/components/RemoveModal/_index.scss +1 -1
  411. package/scss/components/RemoveModal/_remove-modal.scss +17 -26
  412. package/scss/components/Saving/_carbon-imports.scss +11 -0
  413. package/scss/components/Saving/_index-with-carbon.scss +9 -0
  414. package/scss/components/Saving/_index.scss +1 -1
  415. package/scss/components/Saving/_saving.scss +19 -27
  416. package/scss/components/Saving/_storybook-styles.scss +1 -1
  417. package/scss/components/SidePanel/_carbon-imports.scss +10 -0
  418. package/scss/components/SidePanel/_index-with-carbon.scss +9 -0
  419. package/scss/components/SidePanel/_index.scss +1 -1
  420. package/scss/components/SidePanel/_side-panel-variables.scss +1 -1
  421. package/scss/components/SidePanel/_side-panel.scss +402 -392
  422. package/scss/components/SidePanel/_storybook-styles.scss +6 -4
  423. package/scss/components/SingleAddSelect/_carbon-imports.scss +6 -0
  424. package/scss/components/SingleAddSelect/_index-with-carbon.scss +9 -0
  425. package/scss/components/SingleAddSelect/_index.scss +1 -1
  426. package/scss/components/SingleAddSelect/_single-add-select.scss +1 -1
  427. package/scss/components/StatusIcon/_carbon-imports.scss +6 -0
  428. package/scss/components/StatusIcon/_index-with-carbon.scss +9 -0
  429. package/scss/components/StatusIcon/_index.scss +1 -1
  430. package/scss/components/StatusIcon/_status-icon.scss +30 -27
  431. package/scss/components/TagSet/_carbon-imports.scss +14 -0
  432. package/scss/components/TagSet/_index-with-carbon.scss +9 -0
  433. package/scss/components/TagSet/_index.scss +1 -1
  434. package/scss/components/TagSet/_storybook-styles.scss +1 -1
  435. package/scss/components/TagSet/_tag-set.scss +141 -129
  436. package/scss/components/Tearsheet/_carbon-imports.scss +10 -0
  437. package/scss/components/Tearsheet/_index-with-carbon.scss +9 -0
  438. package/scss/components/Tearsheet/_index.scss +1 -1
  439. package/scss/components/Tearsheet/_storybook-styles.scss +6 -5
  440. package/scss/components/Tearsheet/_tearsheet.scss +269 -263
  441. package/scss/components/Toolbar/_carbon-imports.scss +8 -0
  442. package/scss/components/Toolbar/_index-with-carbon.scss +9 -0
  443. package/scss/components/Toolbar/_index.scss +1 -1
  444. package/scss/components/Toolbar/_toolbar.scss +53 -56
  445. package/scss/components/UserProfileImage/_carbon-imports.scss +10 -0
  446. package/scss/components/UserProfileImage/_color-map.scss +30 -30
  447. package/scss/components/UserProfileImage/_index-with-carbon.scss +9 -0
  448. package/scss/components/UserProfileImage/_index.scss +1 -1
  449. package/scss/components/UserProfileImage/_user-profile-image.scss +83 -79
  450. package/scss/components/WebTerminal/_carbon-imports.scss +6 -0
  451. package/scss/components/WebTerminal/_index-with-carbon.scss +9 -0
  452. package/scss/components/WebTerminal/_index.scss +1 -1
  453. package/scss/components/WebTerminal/_storybook-styles.scss +12 -2
  454. package/scss/components/WebTerminal/_web-terminal.scss +16 -5
  455. package/scss/components/_Canary/_canary.scss +2 -4
  456. package/scss/components/_index-released-only-with-carbon.scss +35 -0
  457. package/scss/components/_index-released-only.scss +26 -26
  458. package/scss/components/_index-with-carbon.scss +47 -0
  459. package/scss/components/_index.scss +40 -40
  460. package/scss/global/styles/_display-box.scss +9 -5
  461. package/scss/global/styles/_project-settings.scss +2 -18
  462. package/scss/index-full-carbon.scss +4 -5
  463. package/scss/index-without-carbon-released-only.scss +5 -6
  464. package/scss/index-without-carbon.scss +5 -6
  465. package/scss/index.scss +4 -4
  466. package/scss/global/styles/_generate-carbon-modules.scss +0 -14
@@ -15,9 +15,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
15
15
  // LICENSE file in the root directory of this source tree.
16
16
  //
17
17
  import React, { useState, useRef, forwardRef, useEffect } from 'react';
18
- import { Button, ComposedModal, ModalHeader, ModalFooter, ModalBody, TextInput, RadioButton, RadioButtonGroup, FormGroup, Loading, PasswordInput } from 'carbon-components-react';
18
+ import { Button, ComposedModal, ModalHeader, ModalFooter, ModalBody, TextInput, RadioButton, RadioButtonGroup, FormGroup, Loading, PasswordInput } from '@carbon/react';
19
19
  import cx from 'classnames';
20
- import { ErrorFilled16, CheckmarkFilled16 } from '@carbon/icons-react';
20
+ import { ErrorFilled, CheckmarkFilled } from '@carbon/icons-react';
21
21
  import PropTypes from 'prop-types';
22
22
  import { getDevtoolsProps } from '../../global/js/utils/devtools';
23
23
  import uuidv4 from '../../global/js/utils/uuidv4';
@@ -142,6 +142,7 @@ export var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
142
142
  onClose: onClose
143
143
  }, getDevtoolsProps(componentName))), /*#__PURE__*/React.createElement(ModalHeader, {
144
144
  className: "".concat(blockClass, "__header"),
145
+ closeModal: onClose,
145
146
  title: title
146
147
  }), /*#__PURE__*/React.createElement(ModalBody, {
147
148
  className: "".concat(blockClass, "__body-container")
@@ -173,9 +174,11 @@ export var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
173
174
  }, loading && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Loading, {
174
175
  small: true,
175
176
  withOverlay: false
176
- }), /*#__PURE__*/React.createElement("p", null, loadingMessage)), successful && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckmarkFilled16, {
177
+ }), /*#__PURE__*/React.createElement("p", null, loadingMessage)), successful && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckmarkFilled, {
178
+ size: 16,
177
179
  className: "".concat(blockClass, "__checkmark-icon")
178
- }), /*#__PURE__*/React.createElement("p", null, successMessage)), error && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorFilled16, {
180
+ }), /*#__PURE__*/React.createElement("p", null, successMessage)), error && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorFilled, {
181
+ size: 16,
179
182
  className: "".concat(blockClass, "__error-icon")
180
183
  }), /*#__PURE__*/React.createElement("p", null, errorMessage)))), !submitted && /*#__PURE__*/React.createElement(ModalFooter, {
181
184
  className: "".concat(blockClass, "__footer")
@@ -81,7 +81,7 @@ ExpressiveCard.propTypes = {
81
81
  /**
82
82
  * Provides the icon that's displayed at the top of the card
83
83
  */
84
- pictogram: PropTypes.object,
84
+ pictogram: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
85
85
 
86
86
  /**
87
87
  * Optionally specify an href for your Button to become an <a> element
@@ -19,7 +19,7 @@ import { pkg
19
19
  /*, carbon */
20
20
  } from '../../settings'; // Carbon and package components we use.
21
21
 
22
- import { Link } from 'carbon-components-react'; // The block part of our conventional BEM class names (blockClass__E--M).
22
+ import { Link } from '@carbon/react'; // The block part of our conventional BEM class names (blockClass__E--M).
23
23
 
24
24
  var blockClass = "".concat(pkg.prefix, "--http-errors");
25
25
  var componentName = 'HTTPErrorContent';
@@ -18,13 +18,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
18
18
  // LICENSE file in the root directory of this source tree.
19
19
  //
20
20
  import React, { useState, forwardRef } from 'react';
21
- import { Add20 } from '@carbon/icons-react';
22
- import { ComposedModal, ModalHeader, ModalFooter, ModalBody, FileUploaderDropContainer, FileUploaderItem, TextInput, Button } from 'carbon-components-react';
21
+ import { Add } from '@carbon/icons-react';
22
+ import { ComposedModal, ModalHeader, ModalFooter, ModalBody, FileUploaderDropContainer, FileUploaderItem, TextInput, Button, usePrefix } from '@carbon/react';
23
23
  import cx from 'classnames';
24
24
  import PropTypes from 'prop-types';
25
25
  import { getDevtoolsProps } from '../../global/js/utils/devtools';
26
26
  import uuidv4 from '../../global/js/utils/uuidv4';
27
- import { pkg, carbon } from '../../settings';
27
+ import { pkg } from '../../settings';
28
28
  var componentName = 'ImportModal'; // Default values for props
29
29
 
30
30
  var defaults = {
@@ -61,6 +61,8 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
61
61
  title = _ref.title,
62
62
  rest = _objectWithoutProperties(_ref, _excluded);
63
63
 
64
+ var carbonPrefix = usePrefix();
65
+
64
66
  var _useState = useState([]),
65
67
  _useState2 = _slicedToArray(_useState, 2),
66
68
  files = _useState2[0],
@@ -255,9 +257,13 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
255
257
  className: "".concat(blockClass, "__import-button"),
256
258
  size: "sm",
257
259
  disabled: importButtonDisabled,
258
- renderIcon: inputButtonIcon ? Add20 : null
260
+ renderIcon: inputButtonIcon ? function (props) {
261
+ return /*#__PURE__*/React.createElement(Add, _extends({
262
+ size: 20
263
+ }, props));
264
+ } : null
259
265
  }, inputButtonText)), /*#__PURE__*/React.createElement("div", {
260
- className: "".concat(carbon.prefix, "--file-container ").concat(blockClass, "__file-container")
266
+ className: "".concat(carbonPrefix, "--file-container ").concat(blockClass, "__file-container")
261
267
  }, hasFiles && /*#__PURE__*/React.createElement("p", {
262
268
  className: "".concat(blockClass, "__helper-text")
263
269
  }, fileStatusString), files.map(function (file) {
@@ -268,7 +274,7 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
268
274
  },
269
275
  name: file.name,
270
276
  status: file.status,
271
- size: "default",
277
+ size: "lg",
272
278
  uuid: file.uuid,
273
279
  iconDescription: file.iconDescription,
274
280
  invalid: file.invalid,
@@ -17,12 +17,12 @@ import React, { useRef, useState } from 'react'; // Other standard imports.
17
17
  import PropTypes from 'prop-types';
18
18
  import cx from 'classnames';
19
19
  import { getDevtoolsProps } from '../../global/js/utils/devtools';
20
- import { pkg, carbon } from '../../settings'; // Carbon and package components we use.
20
+ import { pkg } from '../../settings'; // Carbon and package components we use.
21
21
 
22
- /* TODO: @import(s) of carbon components and other package components. */
22
+ /* TODO: @use(s) of carbon components and other package components. */
23
23
 
24
- import { Button } from 'carbon-components-react';
25
- import { Close16, Edit16, EditOff16, Checkmark16, WarningFilled16 } from '@carbon/icons-react'; // The block part of our conventional BEM class names (blockClass__E--M).
24
+ import { Button, IconButton, usePrefix } from '@carbon/react';
25
+ import { Close, Edit, EditOff, Checkmark, WarningFilled } from '@carbon/icons-react'; // The block part of our conventional BEM class names (blockClass__E--M).
26
26
 
27
27
  var blockClass = "".concat(pkg.prefix, "--inline-edit");
28
28
  var componentName = 'InlineEdit'; // NOTE: the component SCSS is not imported here: it is rolled up separately.
@@ -65,6 +65,7 @@ export var InlineEdit = /*#__PURE__*/React.forwardRef(function (_ref, refIn) {
65
65
  value = _ref.value,
66
66
  rest = _objectWithoutProperties(_ref, _excluded);
67
67
 
68
+ var carbonPrefix = usePrefix();
68
69
  var refInput = useRef(null);
69
70
  var localRef = useRef(null);
70
71
  var ref = refIn || localRef;
@@ -83,7 +84,9 @@ export var InlineEdit = /*#__PURE__*/React.forwardRef(function (_ref, refIn) {
83
84
 
84
85
  var validationText = invalidText; // || warnText;
85
86
 
86
- var validationIcon = showValidation ? /*#__PURE__*/React.createElement(WarningFilled16, null) : null; // sanitize the tooltip values
87
+ var validationIcon = showValidation ? /*#__PURE__*/React.createElement(WarningFilled, {
88
+ size: 16
89
+ }) : null; // sanitize the tooltip values
87
90
 
88
91
  var alignIsObject = _typeof(buttonTooltipAlignment) === 'object';
89
92
  var directionIsObject = _typeof(buttonTooltipPosition) === 'object';
@@ -286,28 +289,37 @@ export var InlineEdit = /*#__PURE__*/React.forwardRef(function (_ref, refIn) {
286
289
  hasIconOnly: true,
287
290
  iconDescription: cancelDescription,
288
291
  onClick: handleCancel,
289
- renderIcon: Close16
292
+ renderIcon: function renderIcon(props) {
293
+ return /*#__PURE__*/React.createElement(Close, _extends({
294
+ size: 16
295
+ }, props));
296
+ }
290
297
  }, tipPositions.cancel)), /*#__PURE__*/React.createElement(Button, _extends({
291
298
  className: "".concat(blockClass, "__save"),
292
299
  kind: "ghost",
293
300
  hasIconOnly: true,
294
301
  iconDescription: saveDescription,
295
302
  onClick: handleSave,
296
- renderIcon: Checkmark16,
303
+ renderIcon: function renderIcon(props) {
304
+ return /*#__PURE__*/React.createElement(Checkmark, _extends({
305
+ size: 16
306
+ }, props));
307
+ },
297
308
  disabled: value === internalValue
298
- }, tipPositions.save))) : /*#__PURE__*/React.createElement(Button, _extends({
309
+ }, tipPositions.save))) : /*#__PURE__*/React.createElement(IconButton, _extends({
299
310
  className: cx("".concat(blockClass, "__edit"), _defineProperty({}, "".concat(blockClass, "__edit--always-visible"), editAlwaysVisible)),
300
311
  kind: "ghost",
301
- hasIconOnly: true,
302
- iconDescription: editDescription,
312
+ label: editDescription,
303
313
  onClick: handleEdit,
304
- renderIcon: disabled ? EditOff16 : Edit16,
305
- disabled: disabled,
306
- tabIndex: -1
307
- }, tipPositions.edit)))), /*#__PURE__*/React.createElement("div", {
314
+ disabled: disabled
315
+ }, tipPositions.edit), disabled ? /*#__PURE__*/React.createElement(EditOff, {
316
+ size: 16
317
+ }) : /*#__PURE__*/React.createElement(Edit, {
318
+ size: 16
319
+ })))), /*#__PURE__*/React.createElement("div", {
308
320
  className: cx("".concat(blockClass, "__disabled-cover"))
309
321
  }), showValidation && validationText && validationText.length > 0 && /*#__PURE__*/React.createElement("div", {
310
- className: "".concat(blockClass, "__validation-text ").concat(carbon.prefix, "--form-requirement")
322
+ className: "".concat(blockClass, "__validation-text ").concat(carbonPrefix, "--form-requirement")
311
323
  }, validationText))
312
324
  );
313
325
  }); // Return a placeholder if not released and not enabled by feature flag
@@ -6,16 +6,20 @@
6
6
  //
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { Add20 } from '@carbon/icons-react';
9
+ import { Add } from '@carbon/icons-react';
10
+ import { pkg } from '../../settings';
11
+ var blockClass = "".concat(pkg.prefix, "--modified-tabs");
10
12
  export var ModifiedTabLabelNew = function ModifiedTabLabelNew(_ref) {
11
13
  var label = _ref.label;
12
14
  return /*#__PURE__*/React.createElement("span", {
13
- className: "modified-tabs__tab-new"
15
+ className: "".concat(blockClass, "__tab-new")
14
16
  }, /*#__PURE__*/React.createElement("span", {
15
- className: "modified-tabs__tab-new__label"
17
+ className: "".concat(blockClass, "__tab-new__label")
16
18
  }, label), /*#__PURE__*/React.createElement("span", {
17
- className: "modified-tabs__tab-new-img"
18
- }, /*#__PURE__*/React.createElement(Add20, null)));
19
+ className: "".concat(blockClass, "__tab-new-img")
20
+ }, /*#__PURE__*/React.createElement(Add, {
21
+ size: 20
22
+ })));
19
23
  };
20
24
  ModifiedTabLabelNew.propTypes = {
21
25
  /**
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Close16, CloseFilled16 } from '@carbon/icons-react';
3
+ import { Close, CloseFilled } from '@carbon/icons-react';
4
+ import { pkg } from '../../settings';
5
+ var blockClass = "".concat(pkg.prefix, "--modified-tabs");
4
6
  export var ModifiedTabLabelWithClose = function ModifiedTabLabelWithClose(_ref) {
5
7
  var unsavedContent = _ref.unsavedContent,
6
8
  label = _ref.label,
@@ -10,26 +12,22 @@ export var ModifiedTabLabelWithClose = function ModifiedTabLabelWithClose(_ref)
10
12
  if (onClose) {
11
13
  onClose();
12
14
  }
13
- }; // const handleMousedown = (ev) => {
14
- // console.log('mouse down');
15
- // console.dir(ev);
16
- // ev.stopPropagation();
17
- // ev.cancelBubble = true;
18
- // ev.preventDefault();
19
- // };
20
-
15
+ };
21
16
 
22
17
  return /*#__PURE__*/React.createElement("span", {
23
- className: "modified-tabs__tab"
18
+ className: "".concat(blockClass, "__tab")
24
19
  }, /*#__PURE__*/React.createElement("span", {
25
- className: "modified-tabs__tab-label"
20
+ className: "".concat(blockClass, "__tab-label")
26
21
  }, label), /*#__PURE__*/React.createElement("button", {
27
22
  title: "Close button",
28
- onClick: handleClose // onMouseDown={handleMousedown}
29
- ,
30
- className: "modified-tabs__tab-close",
23
+ onClick: handleClose,
24
+ className: "".concat(blockClass, "__tab-close"),
31
25
  type: "button"
32
- }, unsavedContent ? /*#__PURE__*/React.createElement(CloseFilled16, null) : /*#__PURE__*/React.createElement(Close16, null)));
26
+ }, unsavedContent ? /*#__PURE__*/React.createElement(CloseFilled, {
27
+ size: 16
28
+ }) : /*#__PURE__*/React.createElement(Close, {
29
+ size: 16
30
+ })));
33
31
  };
34
32
  ModifiedTabLabelWithClose.propTypes = {
35
33
  /**
@@ -4,28 +4,26 @@
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
- import React, { useRef } from 'react';
7
+ import React, { useRef, forwardRef } from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { Tabs, Tab } from 'carbon-components-react';
9
+ import cx from 'classnames';
10
+ import { Tabs, Tab, TabList, TabPanels, TabPanel } from '@carbon/react';
10
11
  import { ModifiedTabLabelWithClose } from './ModifiedTabLabelWithClose';
11
12
  import { ModifiedTabLabelNew } from './ModifiedTabLabelNew';
12
13
  import { pkg } from '../../settings';
14
+ var blockClass = "".concat(pkg.prefix, "--modified-tabs");
13
15
  var componentName = 'ModifiedTabs'; // Default values for props
14
16
 
15
17
  var defaults = {
16
- tabs: [{
17
- id: 'tab-1',
18
- label: 'Tab 1',
19
- content: /*#__PURE__*/React.createElement("div", null, "Iam am the content of tab 1."),
20
- unsavedContent: false
21
- }],
22
18
  newTabLabel: 'New tab',
23
19
  newTabContent: 'Your new tab will be here soon',
24
20
  onNewTab: undefined,
25
- onCloseTab: undefined
21
+ onCloseTab: undefined,
22
+ tabs: []
26
23
  };
27
- export var ModifiedTabs = function ModifiedTabs(_ref) {
28
- var _ref$tabs = _ref.tabs,
24
+ export var ModifiedTabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
25
+ var className = _ref.className,
26
+ _ref$tabs = _ref.tabs,
29
27
  tabs = _ref$tabs === void 0 ? defaults.tabs : _ref$tabs,
30
28
  _ref$newTabLabel = _ref.newTabLabel,
31
29
  newTabLabel = _ref$newTabLabel === void 0 ? defaults.newTabLabel : _ref$newTabLabel,
@@ -34,18 +32,19 @@ export var ModifiedTabs = function ModifiedTabs(_ref) {
34
32
  _ref$onNewTab = _ref.onNewTab,
35
33
  onNewTab = _ref$onNewTab === void 0 ? defaults.onNewTab : _ref$onNewTab,
36
34
  _ref$onCloseTab = _ref.onCloseTab,
37
- onCloseTab = _ref$onCloseTab === void 0 ? defaults.onCloseTab : _ref$onCloseTab;
35
+ onCloseTab = _ref$onCloseTab === void 0 ? defaults.onCloseTab : _ref$onCloseTab,
36
+ tabListAriaLabel = _ref.tabListAriaLabel;
37
+ var tabsRef = useRef();
38
+ var localRef = ref || tabsRef;
38
39
 
39
40
  var handleNewTab = function handleNewTab() {
40
41
  if (onNewTab) {
41
42
  onNewTab();
42
43
  setTimeout(function () {
43
44
  // set focus to the new tab
44
- var tab = tabsRef.current.getTabAt(tabs.length);
45
-
46
- if (tab & tab.tabAnchor) {
47
- tab.tabAnchor.focus();
48
- }
45
+ var addNewTabButton = localRef.current.querySelector(".".concat(blockClass, "__tab-new"));
46
+ var tab = addNewTabButton === null || addNewTabButton === void 0 ? void 0 : addNewTabButton.previousSibling;
47
+ tab === null || tab === void 0 ? void 0 : tab.focus();
49
48
  });
50
49
  }
51
50
  };
@@ -56,41 +55,54 @@ export var ModifiedTabs = function ModifiedTabs(_ref) {
56
55
  }
57
56
  };
58
57
 
59
- var tabsRef = useRef(null);
60
- return /*#__PURE__*/React.createElement(Tabs, {
61
- className: "modified-tabs",
62
- ref: tabsRef
58
+ return /*#__PURE__*/React.createElement("div", {
59
+ className: cx(blockClass, className),
60
+ ref: localRef
61
+ }, /*#__PURE__*/React.createElement(Tabs, {
62
+ className: "modified-tabs"
63
+ }, /*#__PURE__*/React.createElement(TabList, {
64
+ "aria-label": tabListAriaLabel
63
65
  }, tabs.map(function (tab) {
64
66
  return /*#__PURE__*/React.createElement(Tab, {
65
- id: tab.id,
66
- key: tab.id,
67
- label: /*#__PURE__*/React.createElement(ModifiedTabLabelWithClose, {
68
- label: tab.label,
69
- onClose: function onClose() {
70
- return handleClose(tab.id);
71
- },
72
- unsavedContent: tab.unsavedContent
73
- })
74
- }, /*#__PURE__*/React.createElement("div", {
75
- className: "some-content"
76
- }, tab.content));
67
+ key: tab.id
68
+ }, /*#__PURE__*/React.createElement(ModifiedTabLabelWithClose, {
69
+ label: tab.label,
70
+ onClose: function onClose() {
71
+ return handleClose(tab.id);
72
+ },
73
+ unsavedContent: tab.unsavedContent
74
+ }));
77
75
  }), /*#__PURE__*/React.createElement(Tab, {
78
76
  id: "modified-tabs__tab-new",
79
- label: /*#__PURE__*/React.createElement(ModifiedTabLabelNew, {
80
- label: newTabLabel
81
- }),
82
77
  onClick: handleNewTab,
83
78
  onKeyUp: function onKeyUp(ev) {
84
79
  return ev.keyCode === 32 && handleNewTab();
85
80
  },
86
- role: "button"
87
- }, /*#__PURE__*/React.createElement("div", {
88
- className: "some-content"
89
- }, newTabContent)));
90
- }; // Return a placeholder if not released and not enabled by feature flag
81
+ role: "button",
82
+ className: "".concat(blockClass, "__tab-new")
83
+ }, /*#__PURE__*/React.createElement(ModifiedTabLabelNew, {
84
+ label: newTabLabel
85
+ }))), /*#__PURE__*/React.createElement(TabPanels, null, tabs.map(function (tab) {
86
+ var _tab$content;
87
+
88
+ return /*#__PURE__*/React.createElement(TabPanel, {
89
+ key: tab.id,
90
+ id: tab.id
91
+ }, /*#__PURE__*/React.createElement("div", {
92
+ className: "".concat(blockClass, "__tab-content")
93
+ }, (_tab$content = tab.content) === null || _tab$content === void 0 ? void 0 : _tab$content.call(tab)));
94
+ }), /*#__PURE__*/React.createElement(TabPanel, null, /*#__PURE__*/React.createElement("div", {
95
+ className: "".concat(blockClass, "__tab-content")
96
+ }, newTabContent)))));
97
+ }); // Return a placeholder if not released and not enabled by feature flag
91
98
 
92
99
  ModifiedTabs = pkg.checkComponentEnabled(ModifiedTabs, componentName);
93
100
  ModifiedTabs.propTypes = {
101
+ /**
102
+ * Provide an optional class to be applied to the containing node.
103
+ */
104
+ className: PropTypes.string,
105
+
94
106
  /**
95
107
  * New tab content
96
108
  */
@@ -111,9 +123,19 @@ ModifiedTabs.propTypes = {
111
123
  */
112
124
  onNewTab: PropTypes.func,
113
125
 
126
+ /**
127
+ * Tab list aria label, passed to Carbon TabList
128
+ */
129
+ tabListAriaLabel: PropTypes.string.isRequired,
130
+
114
131
  /**
115
132
  * Tabs array containing tab object { id, label, content }
116
133
  */
117
- tabs: PropTypes.array
134
+ tabs: PropTypes.arrayOf(PropTypes.shape({
135
+ id: PropTypes.string,
136
+ label: PropTypes.node,
137
+ content: PropTypes.func,
138
+ unsavedContent: PropTypes.bool
139
+ })).isRequired
118
140
  };
119
141
  ModifiedTabs.displayName = componentName;
@@ -83,11 +83,11 @@ MultiAddSelect.propTypes = {
83
83
  entries: PropTypes.arrayOf(PropTypes.shape({
84
84
  avatar: PropTypes.shape({
85
85
  alt: PropTypes.string,
86
- icon: PropTypes.object,
86
+ icon: PropTypes.func,
87
87
  src: PropTypes.string
88
88
  }),
89
89
  children: PropTypes.object,
90
- icon: PropTypes.object,
90
+ icon: PropTypes.func,
91
91
  id: PropTypes.string.isRequired,
92
92
  subtitle: PropTypes.string,
93
93
  title: PropTypes.string.isRequired,
@@ -21,8 +21,8 @@ import { pkg } from '../../settings';
21
21
  import { timeAgo } from './utils';
22
22
  import { NotificationsEmptyState } from '../EmptyStates/NotificationsEmptyState'; // Carbon and package components we use.
23
23
 
24
- import { Button, Link, Toggle } from 'carbon-components-react';
25
- import { ErrorFilled16, WarningAltFilled16, CheckmarkFilled16, InformationSquareFilled16, ChevronDown16, Close16, Settings16 } from '@carbon/icons-react';
24
+ import { Button, Link, Toggle, IconButton } from '@carbon/react';
25
+ import { ErrorFilled, WarningAltFilled, CheckmarkFilled, InformationSquareFilled, ChevronDown, Close, Settings } from '@carbon/icons-react';
26
26
  import { usePreviousValue } from '../../global/js/hooks'; // The block part of our conventional BEM class names (blockClass__E--M).
27
27
 
28
28
  var componentName = 'NotificationsPanel';
@@ -229,8 +229,12 @@ export var NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, re
229
229
  className: descriptionClassName
230
230
  }, description), description.length > trimLength && /*#__PURE__*/React.createElement(Button, {
231
231
  kind: "ghost",
232
- size: "small",
233
- renderIcon: ChevronDown16,
232
+ size: "sm",
233
+ renderIcon: function renderIcon(props) {
234
+ return /*#__PURE__*/React.createElement(ChevronDown, _extends({
235
+ size: 16
236
+ }, props));
237
+ },
234
238
  iconDescription: notification.showAll ? readLessLabel : readMoreLabel,
235
239
  onClick: function onClick(event) {
236
240
  event.preventDefault();
@@ -270,13 +274,17 @@ export var NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, re
270
274
 
271
275
  event.which === 13 && notification.onNotificationClick(notification);
272
276
  }
273
- }, notification.type === 'error' && /*#__PURE__*/React.createElement(ErrorFilled16, {
277
+ }, notification.type === 'error' && /*#__PURE__*/React.createElement(ErrorFilled, {
278
+ size: 16,
274
279
  className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-error")])
275
- }), notification.type === 'success' && /*#__PURE__*/React.createElement(CheckmarkFilled16, {
280
+ }), notification.type === 'success' && /*#__PURE__*/React.createElement(CheckmarkFilled, {
281
+ size: 16,
276
282
  className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-success")])
277
- }), notification.type === 'warning' && /*#__PURE__*/React.createElement(WarningAltFilled16, {
283
+ }), notification.type === 'warning' && /*#__PURE__*/React.createElement(WarningAltFilled, {
284
+ size: 16,
278
285
  className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-warning")])
279
- }), notification.type === 'informational' && /*#__PURE__*/React.createElement(InformationSquareFilled16, {
286
+ }), notification.type === 'informational' && /*#__PURE__*/React.createElement(InformationSquareFilled, {
287
+ size: 16,
280
288
  className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-informational")])
281
289
  }), /*#__PURE__*/React.createElement("div", {
282
290
  className: "".concat(blockClass, "__notification-content")
@@ -301,17 +309,18 @@ export var NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, re
301
309
  }, notification.title), notification.description && notification.description.length && renderDescription(notification.id), notification.link && notification.link.text && notification.link.url && /*#__PURE__*/React.createElement(Link, {
302
310
  href: notification.link.url,
303
311
  className: "".concat(blockClass, "__notifications-link")
304
- }, notification.link.text)), /*#__PURE__*/React.createElement(Button, {
312
+ }, notification.link.text)), /*#__PURE__*/React.createElement(IconButton, {
313
+ align: "left",
305
314
  kind: "ghost",
306
- size: "small",
307
- renderIcon: Close16,
308
- iconDescription: dismissSingleNotificationIconDescription,
309
- tooltipPosition: "left",
315
+ size: "sm",
316
+ label: dismissSingleNotificationIconDescription,
310
317
  className: "".concat(blockClass, "__dismiss-single-button"),
311
318
  onClick: function onClick(event) {
312
319
  return dismissSingleNotification(event, notification);
313
320
  }
314
- }));
321
+ }, /*#__PURE__*/React.createElement(Close, {
322
+ size: 16
323
+ })));
315
324
  };
316
325
 
317
326
  var dismissSingleNotification = function dismissSingleNotification(event, notification) {
@@ -336,7 +345,7 @@ export var NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, re
336
345
  }, /*#__PURE__*/React.createElement("h1", {
337
346
  className: "".concat(blockClass, "__header")
338
347
  }, title), /*#__PURE__*/React.createElement(Button, {
339
- size: "small",
348
+ size: "sm",
340
349
  kind: "ghost",
341
350
  className: "".concat(blockClass, "__dismiss-button"),
342
351
  onClick: function onClick() {
@@ -352,7 +361,8 @@ export var NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, re
352
361
  return onDoNotDisturbChange(event);
353
362
  },
354
363
  defaultToggled: doNotDisturbDefaultToggled,
355
- "aria-label": doNotDisturbLabel
364
+ "aria-label": doNotDisturbLabel,
365
+ labelText: doNotDisturbLabel
356
366
  })), /*#__PURE__*/React.createElement("div", {
357
367
  className: mainSectionClassName
358
368
  }, withinLastDayNotifications && withinLastDayNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
@@ -381,9 +391,13 @@ export var NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, re
381
391
  }
382
392
  }, viewAllLabel(allNotifications.length)), /*#__PURE__*/React.createElement(Button, {
383
393
  kind: "ghost",
384
- size: "small",
394
+ size: "sm",
385
395
  className: "".concat(blockClass, "__settings-button"),
386
- renderIcon: Settings16,
396
+ renderIcon: function renderIcon(props) {
397
+ return /*#__PURE__*/React.createElement(Settings, _extends({
398
+ size: 16
399
+ }, props));
400
+ },
387
401
  iconDescription: settingsIconDescription,
388
402
  onClick: function onClick() {
389
403
  return onSettingsClick();
@@ -19,8 +19,8 @@ import { getDevtoolsProps } from '../../global/js/utils/devtools';
19
19
  import uuidv4 from '../../global/js/utils/uuidv4';
20
20
  import { pkg } from '../../settings'; // Carbon and package components we use.
21
21
 
22
- import { Toggle } from 'carbon-components-react';
23
- import { ChevronDown16, Locked16, WarningAltFilled16, WarningFilled16 } from '@carbon/icons-react';
22
+ import { Toggle } from '@carbon/react';
23
+ import { ChevronDown, Locked, WarningAltFilled, WarningFilled } from '@carbon/icons-react';
24
24
  import * as carbonMotion from '@carbon/motion'; // The block part of our conventional BEM class names (blockClass__E--M).
25
25
 
26
26
  var blockClass = "".concat(pkg.prefix, "--options-tile");
@@ -175,15 +175,15 @@ export var OptionsTile = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
175
175
  var summaryClasses = ["".concat(blockClass, "__summary")];
176
176
 
177
177
  if (invalid) {
178
- Icon = WarningFilled16;
178
+ Icon = WarningFilled;
179
179
  text = invalidText;
180
180
  summaryClasses.push("".concat(blockClass, "__summary--invalid"));
181
181
  } else if (warn) {
182
- Icon = WarningAltFilled16;
182
+ Icon = WarningAltFilled;
183
183
  text = warnText;
184
184
  summaryClasses.push("".concat(blockClass, "__summary--warn"));
185
185
  } else if (locked) {
186
- Icon = Locked16;
186
+ Icon = Locked;
187
187
  summaryClasses.push("".concat(blockClass, "__summary--locked"));
188
188
 
189
189
  if (!text) {
@@ -206,7 +206,9 @@ export var OptionsTile = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
206
206
  }, title), text && /*#__PURE__*/React.createElement("span", {
207
207
  className: cx(summaryClasses),
208
208
  "aria-hidden": summaryHidden
209
- }, Icon && /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement("span", {
209
+ }, Icon && /*#__PURE__*/React.createElement(Icon, {
210
+ size: 16
211
+ }), /*#__PURE__*/React.createElement("span", {
210
212
  className: "".concat(blockClass, "__summary-text")
211
213
  }, text)));
212
214
  }
@@ -227,21 +229,25 @@ export var OptionsTile = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
227
229
  "aria-labelledby": titleId,
228
230
  onToggle: onToggle,
229
231
  size: "sm",
230
- disabled: isLocked
232
+ disabled: isLocked,
233
+ labelText: title
231
234
  })), isExpandable ? /*#__PURE__*/React.createElement("details", {
232
235
  open: isOpen,
233
236
  ref: detailsRef
234
237
  }, /*#__PURE__*/React.createElement("summary", {
235
238
  className: "".concat(blockClass, "__header"),
236
239
  onClick: toggle
237
- }, /*#__PURE__*/React.createElement(ChevronDown16, {
240
+ }, /*#__PURE__*/React.createElement(ChevronDown, {
241
+ size: 16,
238
242
  className: "".concat(blockClass, "__chevron")
239
243
  }), renderTitle()), /*#__PURE__*/React.createElement("div", {
240
244
  className: "".concat(blockClass, "__content"),
241
245
  ref: contentRef
242
246
  }, isLocked && /*#__PURE__*/React.createElement("p", {
243
247
  className: "".concat(blockClass, "__locked-text")
244
- }, /*#__PURE__*/React.createElement(Locked16, null), lockedText), children)) : /*#__PURE__*/React.createElement("div", {
248
+ }, /*#__PURE__*/React.createElement(Locked, {
249
+ size: 16
250
+ }), lockedText), children)) : /*#__PURE__*/React.createElement("div", {
245
251
  className: "".concat(blockClass, "__static-content")
246
252
  }, renderTitle()));
247
253
  }); // Return a placeholder if not released and not enabled by feature flag