@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
@@ -6,94 +6,88 @@
6
6
  //
7
7
 
8
8
  // Standard imports.
9
- @import '../../global/styles/project-settings';
10
- @import '../SidePanel/side-panel-variables';
11
-
12
- // CreateSidePanel uses the following Carbon components:
13
- // Form
14
- @import 'carbon-components/scss/components/form/form';
9
+ @use '@carbon/styles/scss/theme' as *;
10
+ @use '@carbon/styles/scss/spacing' as *;
11
+ @use '@carbon/styles/scss/type';
12
+ @use '../../global/styles/project-settings' as c4p-settings;
13
+ @use '../SidePanel/side-panel-variables' as side-panel-vars;
15
14
 
16
15
  // CreateSidePanel uses the following IBM Products components:
17
16
  // SidePanel
18
- @import '../SidePanel/side-panel';
19
-
20
- @mixin create-side-panel {
21
- $block-class: #{$pkg-prefix}--create-side-panel;
22
- $side-panel-block-class: #{$pkg-prefix}--side-panel;
17
+ @use '../SidePanel/side-panel';
23
18
 
24
- .#{$block-class}.#{$side-panel-block-class}__container
25
- .#{$block-class}__content-text {
26
- padding-right: calc(20% - #{$spacing-05});
27
- }
19
+ $create-side-panel-block-class: #{c4p-settings.$pkg-prefix}--create-side-panel;
20
+ $side-panel-block-class: #{c4p-settings.$pkg-prefix}--side-panel;
28
21
 
29
- @each $size, $value in $side-panel-sizes {
30
- .#{$block-class}.#{$side-panel-block-class}__container--#{$size}
31
- .#{$side-panel-block-class}__title-text {
32
- width: calc(#{$value} - #{$spacing-05});
33
- // stylelint-disable-next-line carbon/layout-token-use
34
- padding-right: calc((#{$value} * 0.2) - #{$spacing-05});
35
- margin-bottom: $spacing-02;
36
- }
37
- .#{$block-class}.#{$side-panel-block-class}__container--#{$size}
38
- .#{$side-panel-block-class}__subtitle-text {
39
- width: calc(#{$value} - #{$spacing-05});
40
- // stylelint-disable-next-line carbon/layout-token-use
41
- padding-right: calc((#{$value} * 0.2) - #{$spacing-05});
42
- padding-bottom: $spacing-05;
43
- border-bottom: 1px solid $ui-03;
44
- color: $text-02;
45
- }
46
- }
22
+ .#{$create-side-panel-block-class}.#{$side-panel-block-class}__container
23
+ .#{$create-side-panel-block-class}__content-text {
24
+ padding-right: calc(20% - #{$spacing-05});
25
+ }
47
26
 
48
- .#{$carbon-prefix}--form.#{$block-class}__form {
49
- padding-top: $spacing-05;
27
+ @each $size, $value in side-panel-vars.$side-panel-sizes {
28
+ .#{$create-side-panel-block-class}.#{$side-panel-block-class}__container--#{$size}
29
+ .#{$side-panel-block-class}__title-text {
30
+ width: calc(#{$value} - #{$spacing-05});
31
+ // stylelint-disable-next-line carbon/layout-token-use
32
+ padding-right: calc((#{$value} * 0.2) - #{$spacing-05});
33
+ margin-bottom: $spacing-02;
50
34
  }
51
-
52
- .#{$block-class}__form.#{$carbon-prefix}--fieldset {
53
- padding-top: $spacing-03;
35
+ .#{$create-side-panel-block-class}.#{$side-panel-block-class}__container--#{$size}
36
+ .#{$side-panel-block-class}__subtitle-text {
37
+ width: calc(#{$value} - #{$spacing-05});
38
+ // stylelint-disable-next-line carbon/layout-token-use
39
+ padding-right: calc((#{$value} * 0.2) - #{$spacing-05});
40
+ padding-bottom: $spacing-05;
41
+ border-bottom: 1px solid $layer-accent-01;
42
+ color: $text-secondary;
54
43
  }
44
+ }
55
45
 
56
- .#{$block-class}__form > * {
57
- margin-bottom: $spacing-05;
58
- }
46
+ .#{c4p-settings.$carbon-prefix}--form.#{$create-side-panel-block-class}__form {
47
+ padding-top: $spacing-05;
48
+ }
59
49
 
60
- .#{$block-class}__form-title-text {
61
- @include carbon--type-style('productive-heading-02');
50
+ .#{$create-side-panel-block-class}__form.#{c4p-settings.$carbon-prefix}--fieldset {
51
+ padding-top: $spacing-03;
52
+ }
62
53
 
63
- padding-bottom: $spacing-03;
64
- }
54
+ .#{$create-side-panel-block-class}__form > * {
55
+ margin-bottom: $spacing-05;
56
+ }
65
57
 
66
- .#{$block-class}__form-description-text {
67
- @include carbon--type-style('body-long-01');
68
- }
58
+ .#{$create-side-panel-block-class}__form-title-text {
59
+ @include type.type-style('productive-heading-02');
69
60
 
70
- .#{$block-class}.#{$side-panel-block-class}
71
- .#{$carbon-prefix}--btn.#{$side-panel-block-class}__close-button {
72
- display: none;
73
- }
61
+ padding-bottom: $spacing-03;
62
+ }
74
63
 
75
- .#{$block-class}__title {
76
- @include carbon--type-style('productive-heading-03');
64
+ .#{$create-side-panel-block-class}__form-description-text {
65
+ @include type.type-style('body-long-01');
66
+ }
77
67
 
78
- margin-bottom: $spacing-02;
79
- }
68
+ .#{$create-side-panel-block-class}.#{$side-panel-block-class}
69
+ .#{c4p-settings.$carbon-prefix}--btn.#{$side-panel-block-class}__close-button {
70
+ display: none;
71
+ }
80
72
 
81
- .#{$block-class}__subtitle {
82
- @include carbon--type-style('body-short-01');
73
+ .#{$create-side-panel-block-class}__title {
74
+ @include type.type-style('productive-heading-03');
83
75
 
84
- margin-bottom: $spacing-03;
85
- color: $text-02;
86
- }
87
- .#{$side-panel-block-class} .#{$block-class}__actions-container {
88
- position: absolute;
89
- z-index: 4;
90
- bottom: 0;
91
- left: 0;
92
- width: 100%;
93
- margin-bottom: 0;
94
- }
76
+ margin-bottom: $spacing-02;
95
77
  }
96
78
 
97
- @include exports('create-side-panel') {
98
- @include create-side-panel;
79
+ .#{$create-side-panel-block-class}__subtitle {
80
+ @include type.type-style('body-short-01');
81
+
82
+ margin-bottom: $spacing-03;
83
+ color: $text-secondary;
84
+ }
85
+ .#{$side-panel-block-class}
86
+ .#{$create-side-panel-block-class}__actions-container {
87
+ position: absolute;
88
+ z-index: 4;
89
+ right: 0;
90
+ bottom: 0;
91
+ width: 100%;
92
+ margin-bottom: 0;
99
93
  }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use './carbon-imports';
9
+ @use './create-side-panel';
@@ -5,4 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './create-side-panel';
8
+ @use './create-side-panel';
@@ -5,23 +5,25 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import '../../global/styles/project-settings';
8
+ @use '../../global/styles/project-settings' as c4p-settings;
9
+ @use '@carbon/styles/scss/theme' as *;
10
+ @use '@carbon/styles/scss/spacing';
9
11
 
10
- $block-class: #{$pkg-prefix}--create-side-panel;
12
+ $block-class: #{c4p-settings.$pkg-prefix}--create-side-panel;
11
13
  $story-prefix: create-side-panel-stories__;
12
14
 
13
15
  .#{$story-prefix}example-container {
14
16
  display: grid;
15
17
  align-items: flex-end;
16
- grid-gap: $spacing-04;
18
+ grid-gap: spacing.$spacing-04;
17
19
  grid-template-columns: 1fr 1fr;
18
20
  }
19
21
 
20
- .#{$story-prefix}example-form-group .#{$carbon-prefix}--label {
22
+ .#{$story-prefix}example-form-group .#{c4p-settings.$carbon-prefix}--label {
21
23
  margin-bottom: 0;
22
24
  }
23
25
 
24
- .#{$block-class} .#{$carbon-prefix}--number__control-btn::before,
25
- .#{$block-class} .#{$carbon-prefix}--number__control-btn::after {
26
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::before,
27
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
26
28
  background-color: $field-02;
27
29
  }
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ // CreateTearsheet uses the following Carbon components:
9
+ // ProgressIndicator, ProgressStep
10
+ @use '@carbon/react/scss/components/progress-indicator';
@@ -5,129 +5,147 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- // Standard imports.
9
- @import '../../global/styles/project-settings';
10
-
11
8
  // Other Carbon settings.
12
- @import 'carbon-components/scss/globals/grid/grid';
9
+ @use '@carbon/styles/scss/theme' as *;
10
+ @use '@carbon/react/scss/components/button/tokens' as *;
11
+ @use '@carbon/react/scss/grid' as *;
12
+ @use '@carbon/styles/scss/motion' as *;
13
+ @use '@carbon/styles/scss/spacing' as *;
14
+ @use '@carbon/styles/scss/type';
13
15
 
14
- // CreateTearsheet uses the following Carbon components:
15
- // ProgressIndicator, ProgressStep, Toggle, SideNav, SideNavItems, SideNavLink
16
- @import 'carbon-components/scss/components/progress-indicator/progress-indicator';
17
- @import 'carbon-components/scss/components/toggle/toggle';
18
- @import 'carbon-components/scss/components/ui-shell/side-nav';
16
+ // Standard imports.
17
+ @use '../../global/styles/project-settings' as c4p-settings;
19
18
 
20
19
  // CreateTearsheet uses the following IBM Products components:
21
20
  // TearsheetShell
22
- @import '../Tearsheet/tearsheet';
23
- @import '../CreateInfluencer/index';
24
-
25
- @mixin create-tearsheet {
26
- @keyframes step-content-entrance {
27
- 0% {
28
- opacity: 0;
29
- // stylelint-disable-next-line carbon/layout-token-use
30
- transform: translateY(-0.75rem);
31
- }
32
-
33
- 100% {
34
- opacity: 1;
35
- transform: translateY(0);
36
- }
37
- }
38
-
39
- $block-class: #{$pkg-prefix}--tearsheet-create;
40
- $step-block-class: #{$pkg-prefix}--tearsheet-create__step;
41
- $section-block-class: #{$pkg-prefix}--tearsheet-create__section;
42
- $tearsheet-divider-class: #{$pkg-prefix}--tearsheet-create__section--divider;
43
- $tearsheet-fieldset-class: #{$pkg-prefix}--tearsheet-create__step--fieldset;
21
+ @use '../Tearsheet/tearsheet';
22
+ @use '../CreateInfluencer';
44
23
 
45
- .#{$block-class} {
46
- --#{$block-class}--total-width: 0;
24
+ @keyframes step-content-entrance {
25
+ 0% {
26
+ opacity: 0;
27
+ // stylelint-disable-next-line carbon/layout-token-use
28
+ transform: translateY(-0.75rem);
47
29
  }
48
30
 
49
- .#{$block-class} .#{$step-block-class}__step--hidden-step {
50
- display: none;
31
+ 100% {
32
+ opacity: 1;
33
+ transform: translateY(0);
51
34
  }
35
+ }
52
36
 
53
- .#{$block-class} .#{$step-block-class}__step--visible-step {
54
- animation: step-content-entrance $duration--slow-01;
55
- animation-fill-mode: forwards;
56
- animation-timing-function: $carbon--standard-easing;
57
- opacity: 0;
58
- }
37
+ $create-tearsheet-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create;
38
+ $step-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create__step;
39
+ $section-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create__section;
40
+ $tearsheet-divider-class: #{c4p-settings.$pkg-prefix}--tearsheet-create__section--divider;
41
+ $tearsheet-fieldset-class: #{c4p-settings.$pkg-prefix}--tearsheet-create__step--fieldset;
42
+
43
+ .#{$create-tearsheet-block-class} .#{$step-block-class}__step--visible-step {
44
+ animation: step-content-entrance $duration-slow-01;
45
+ animation-fill-mode: forwards;
46
+ animation-timing-function: $standard-easing;
47
+ opacity: 0;
48
+ }
59
49
 
60
- @media (prefers-reduced-motion) {
61
- .#{$block-class} .#{$step-block-class}__step--visible-step {
62
- animation: none;
63
- opacity: 1;
64
- }
65
- }
50
+ .#{$create-tearsheet-block-class} {
51
+ --#{$create-tearsheet-block-class}--total-width: 0;
52
+ }
66
53
 
67
- .#{$block-class} .#{$block-class}__content {
68
- height: 100%;
69
- padding: $spacing-06;
70
- overflow-x: hidden;
71
- }
54
+ .#{$step-block-class} .#{c4p-settings.$carbon-prefix}--css-grid {
55
+ padding-left: 0;
56
+ margin-left: 0;
57
+ }
72
58
 
73
- .#{$block-class} .#{$block-class}__content .#{$carbon-prefix}--grid {
74
- padding: 0;
75
- margin: 0;
76
- }
59
+ .#{$create-tearsheet-block-class} .#{$step-block-class}__step--hidden-step {
60
+ display: none;
61
+ }
77
62
 
78
- .#{$block-class} .#{$block-class}__step--heading {
79
- padding-bottom: $spacing-06;
80
- }
63
+ .#{$create-tearsheet-block-class} .#{$step-block-class}__step--visible-step {
64
+ animation: step-content-entrance $duration-slow-01;
65
+ animation-fill-mode: forwards;
66
+ animation-timing-function: $standard-easing;
67
+ opacity: 0;
68
+ }
81
69
 
82
- .#{$block-class}
83
- .#{$carbon-prefix}--btn-set
84
- .#{$carbon-prefix}--btn.#{$carbon-prefix}--btn--disabled {
85
- box-shadow: -0.0625rem 0 0 0 $button-separator;
70
+ @media (prefers-reduced-motion) {
71
+ .#{$create-tearsheet-block-class} .#{$step-block-class}__step--visible-step {
72
+ animation: none;
73
+ opacity: 1;
86
74
  }
75
+ }
87
76
 
88
- .#{$block-class} .#{$carbon-prefix}--side-nav--ux {
89
- position: initial;
90
- background-color: transparent;
91
- }
77
+ .#{$create-tearsheet-block-class} .#{$create-tearsheet-block-class}__content {
78
+ height: 100%;
79
+ padding: $spacing-06;
80
+ overflow-x: hidden;
81
+ }
92
82
 
93
- .#{$block-class} .#{$block-class}__section--divider {
94
- position: relative;
95
- display: block;
96
- width: var(--#{$block-class}--total-width);
97
- height: 1px;
98
- margin: $spacing-06 calc(-1 * #{$spacing-08}) $spacing-07
99
- calc(-1 * #{$spacing-06});
100
- background-color: $ui-03;
101
- }
83
+ .#{$create-tearsheet-block-class}
84
+ .#{$create-tearsheet-block-class}__content
85
+ .#{c4p-settings.$carbon-prefix}--grid {
86
+ padding: 0;
87
+ margin: 0;
88
+ }
102
89
 
103
- .#{$block-class} .#{$block-class}__step--title,
104
- .#{$block-class} .#{$block-class}__section--title {
105
- margin-bottom: $spacing-05;
106
- }
90
+ .#{$create-tearsheet-block-class}
91
+ .#{$create-tearsheet-block-class}__step--heading {
92
+ padding-bottom: $spacing-06;
93
+ }
107
94
 
108
- .#{$block-class} .#{$block-class}__section--subtitle,
109
- .#{$block-class} .#{$block-class}__step--subtitle {
110
- @include carbon--type-style('productive-heading-01');
95
+ .#{$create-tearsheet-block-class}
96
+ .#{c4p-settings.$carbon-prefix}--btn-set
97
+ .#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$carbon-prefix}--btn--disabled {
98
+ box-shadow: -0.0625rem 0 0 0 $button-separator;
99
+ }
111
100
 
112
- margin-bottom: $spacing-03;
113
- }
101
+ .#{$create-tearsheet-block-class}
102
+ .#{c4p-settings.$carbon-prefix}--side-nav--ux {
103
+ position: initial;
104
+ background-color: transparent;
105
+ }
114
106
 
115
- .#{$block-class} .#{$block-class}__section--description,
116
- .#{$block-class} .#{$block-class}__step--description {
117
- @include carbon--type-style('body-long-01');
107
+ .#{$create-tearsheet-block-class}
108
+ .#{$create-tearsheet-block-class}__section--divider {
109
+ position: relative;
110
+ display: block;
111
+ width: var(--#{$create-tearsheet-block-class}--total-width);
112
+ height: 1px;
113
+ margin: $spacing-06 calc(-1 * #{$spacing-08}) $spacing-07
114
+ calc(-1 * #{$spacing-06});
115
+ background-color: $layer-accent-01;
116
+ }
118
117
 
119
- margin-bottom: $spacing-06;
120
- }
118
+ .#{$create-tearsheet-block-class}
119
+ .#{$create-tearsheet-block-class}__step--title,
120
+ .#{$create-tearsheet-block-class}
121
+ .#{$create-tearsheet-block-class}__section--title {
122
+ margin-bottom: $spacing-05;
123
+ }
121
124
 
122
- .#{$block-class} .#{$carbon-prefix}--fieldset {
123
- margin-bottom: 0;
124
- }
125
+ .#{$create-tearsheet-block-class}
126
+ .#{$create-tearsheet-block-class}__section--subtitle,
127
+ .#{$create-tearsheet-block-class}
128
+ .#{$create-tearsheet-block-class}__step--subtitle {
129
+ @include type.type-style('productive-heading-01');
125
130
 
126
- .#{$block-class} .#{$block-class}__step--fieldset > * {
127
- margin-bottom: $spacing-05;
128
- }
131
+ margin-bottom: $spacing-03;
132
+ }
133
+
134
+ .#{$create-tearsheet-block-class}
135
+ .#{$create-tearsheet-block-class}__section--description,
136
+ .#{$create-tearsheet-block-class}
137
+ .#{$create-tearsheet-block-class}__step--description {
138
+ @include type.type-style('body-long-01');
139
+
140
+ margin-bottom: $spacing-06;
141
+ }
142
+
143
+ .#{$create-tearsheet-block-class} .#{c4p-settings.$carbon-prefix}--fieldset {
144
+ margin-bottom: 0;
129
145
  }
130
146
 
131
- @include exports('create-tearsheet') {
132
- @include create-tearsheet;
147
+ .#{$create-tearsheet-block-class}
148
+ .#{$create-tearsheet-block-class}__step--fieldset
149
+ > * {
150
+ margin-bottom: $spacing-05;
133
151
  }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use './carbon-imports';
9
+ @use './create-tearsheet';
@@ -5,4 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './create-tearsheet';
8
+ @use './create-tearsheet';
@@ -5,12 +5,15 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import '../../global/styles/project-settings';
8
+ @use '../../global/styles/project-settings' as c4p-settings;
9
+ @use '@carbon/styles/scss/type';
10
+ @use '@carbon/type/scss/font-family';
11
+ @use '@carbon/styles/scss/spacing' as *;
9
12
 
10
- $preview-block-class: #{$pkg-prefix}--tearsheet-create-multi-step;
13
+ $preview-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step;
11
14
 
12
15
  .#{$preview-block-class}__description {
13
- @include carbon--type-style('body-short-01');
16
+ @include type.type-style('body-short-01');
14
17
 
15
18
  padding-bottom: $spacing-04;
16
19
  }
@@ -20,33 +23,33 @@ p.#{$preview-block-class}__description:last-of-type {
20
23
  }
21
24
 
22
25
  .#{$preview-block-class}__heading {
23
- @include carbon--font-weight('semibold');
26
+ @include font-family.font-weight('semibold');
24
27
  }
25
28
 
26
29
  .#{$preview-block-class}
27
- .#{$pkg-prefix}--tearsheet__content
28
- .#{$carbon-prefix}--form-item {
30
+ .#{c4p-settings.$pkg-prefix}--tearsheet__content
31
+ .#{c4p-settings.$carbon-prefix}--form-item {
29
32
  margin-bottom: $spacing-05;
30
33
  }
31
34
 
32
- .#{$prefix}--tile-group div {
35
+ .#{c4p-settings.$carbon-prefix}--tile-group div {
33
36
  display: flex;
34
37
  flex-wrap: wrap;
35
38
  }
36
39
 
37
- .#{$pkg-prefix}--tearsheet-create-multi-step--custom-tile {
40
+ .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile {
38
41
  width: 280px;
39
42
  height: 240px;
40
43
  margin-right: $spacing-05;
41
44
  }
42
45
 
43
- .#{$pkg-prefix}--tearsheet-create-multi-step--custom-tile
44
- .#{$pkg-prefix}--empty-state__illustration.#{$pkg-prefix}--empty-state__illustration--lg {
46
+ .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile
47
+ .#{c4p-settings.$pkg-prefix}--empty-state__illustration.#{c4p-settings.$pkg-prefix}--empty-state__illustration--lg {
45
48
  min-width: 120px;
46
49
  height: 120px;
47
50
  }
48
51
 
49
- .#{$pkg-prefix}--tearsheet-create-multi-step--custom-tile-label {
52
+ .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile-label {
50
53
  position: absolute;
51
54
  bottom: $spacing-05;
52
55
  left: $spacing-05;
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ // CreateTearsheetNarrow uses the following Carbon components:
9
+ // Form
10
+ @use '@carbon/react/scss/components/form';
@@ -6,64 +6,56 @@
6
6
  //
7
7
 
8
8
  // Standard imports.
9
- @import '../../global/styles/project-settings';
10
-
11
- // CreateTearsheetNarrow uses the following Carbon components:
12
- // Form
13
- @import 'carbon-components/scss/components/form/form';
9
+ @use '@carbon/styles/scss/theme' as *;
10
+ @use '@carbon/styles/scss/spacing' as *;
11
+ @use '@carbon/styles/scss/type';
12
+ @use '../../global/styles/project-settings' as c4p-settings;
14
13
 
15
14
  // CreateTearsheetNarrow uses the following IBM Products components:
16
15
  // TearsheetNarrow
17
- @import '../Tearsheet/tearsheet';
16
+ @use '../Tearsheet/tearsheet';
18
17
 
19
- // Define all component styles in a mixin which is then exported using
20
- // the Carbon import-once mechanism.
21
- @mixin create-tearsheet-narrow {
22
- // The block part of our conventional BEM class names (blockClass__E--M).
23
- $block-class: #{$pkg-prefix}--create-tearsheet-narrow;
18
+ // The block part of our conventional BEM class names (blockClass__E--M).
19
+ $block-class: #{c4p-settings.$pkg-prefix}--create-tearsheet-narrow;
24
20
 
25
- .#{$block-class} .#{$carbon-prefix}--modal-header__heading,
26
- .#{$block-class} .#{$carbon-prefix}--modal-header__label,
27
- .#{$block-class} .#{$pkg-prefix}--tearsheet__header-description {
28
- max-width: 100%;
29
- padding-right: calc(20% - #{$spacing-05});
30
- }
21
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--modal-header__heading,
22
+ .#{$block-class} .#{c4p-settings.$carbon-prefix}--modal-header__label,
23
+ .#{$block-class} .#{c4p-settings.$pkg-prefix}--tearsheet__header-description {
24
+ max-width: 100%;
25
+ padding-right: calc(20% - #{$spacing-05});
26
+ }
31
27
 
32
- .#{$block-class} .#{$pkg-prefix}--tearsheet__header-description {
33
- margin-top: $spacing-02;
34
- }
28
+ .#{$block-class} .#{c4p-settings.$pkg-prefix}--tearsheet__header-description {
29
+ margin-top: $spacing-02;
30
+ }
35
31
 
36
- .#{$block-class} .#{$pkg-prefix}--tearsheet__header {
37
- border-bottom: 1px solid $decorative-01;
38
- }
32
+ .#{$block-class} .#{c4p-settings.$pkg-prefix}--tearsheet__header {
33
+ border-bottom: 1px solid $border-subtle-02;
34
+ }
39
35
 
40
- .#{$block-class} .#{$pkg-prefix}--tearsheet__content {
41
- padding: $spacing-05;
42
- }
36
+ .#{$block-class} .#{c4p-settings.$pkg-prefix}--tearsheet__content {
37
+ padding: $spacing-05;
38
+ }
43
39
 
44
- .#{$block-class} .#{$block-class}__form {
45
- padding-top: $spacing-05;
46
- }
40
+ .#{$block-class} .#{$block-class}__form {
41
+ padding-top: $spacing-05;
42
+ }
47
43
 
48
- .#{$block-class} .#{$block-class}__form > * {
49
- margin-bottom: $spacing-05;
44
+ .#{$block-class} .#{$block-class}__form > * {
45
+ margin-bottom: $spacing-05;
50
46
 
51
- &:last-child {
52
- margin-bottom: 0;
53
- }
47
+ /* stylelint-disable-next-line max-nesting-depth */
48
+ &:last-child {
49
+ margin-bottom: 0;
54
50
  }
51
+ }
55
52
 
56
- .#{$block-class} .#{$block-class}__form-title-text {
57
- @include carbon--type-style('productive-heading-02');
58
-
59
- padding-bottom: $spacing-03;
60
- }
53
+ .#{$block-class} .#{$block-class}__form-title-text {
54
+ @include type.type-style('productive-heading-02');
61
55
 
62
- .#{$block-class} .#{$block-class}__form-description-text {
63
- @include carbon--type-style('body-long-01');
64
- }
56
+ padding-bottom: $spacing-03;
65
57
  }
66
58
 
67
- @include exports('create-tearsheet-narrow') {
68
- @include create-tearsheet-narrow;
59
+ .#{$block-class} .#{$block-class}__form-description-text {
60
+ @include type.type-style('body-long-01');
69
61
  }