@carbon/ibm-products 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/css/index-full-carbon.css +965 -434
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +4 -4
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +354 -155
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +2 -2
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +600 -236
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +4 -4
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +516 -293
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +4 -4
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.docs-page.js +26 -0
  18. package/es/components/AboutModal/AboutModal.docs-page.js +21 -0
  19. package/es/components/AboutModal/AboutModal.js +2 -4
  20. package/es/components/ActionBar/ActionBar.js +2 -6
  21. package/es/components/AddSelect/AddSelectFormControl.js +6 -6
  22. package/es/components/AddSelect/AddSelectRow.js +15 -5
  23. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -6
  24. package/es/components/ButtonMenu/ButtonMenu.js +4 -4
  25. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -9
  26. package/es/components/Cascade/Cascade.docs-page.js +22 -0
  27. package/es/components/Cascade/Cascade.js +11 -1
  28. package/es/components/CreateFullPage/CreateFullPage.docs-page.js +39 -0
  29. package/es/components/CreateFullPage/CreateFullPage.js +13 -0
  30. package/es/components/CreateModal/CreateModal.docs-page.js +24 -0
  31. package/es/components/CreateModal/CreateModal.js +7 -0
  32. package/es/components/CreateSidePanel/CreateSidePanel.docs-page.js +18 -0
  33. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  34. package/es/components/CreateTearsheet/CreateTearsheet.docs-page.js +29 -0
  35. package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  36. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  37. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -3
  38. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +25 -10
  39. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -3
  40. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  41. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +39 -47
  42. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +20 -24
  43. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +2 -2
  44. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +13 -0
  45. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +44 -15
  46. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +16 -30
  47. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -2
  48. package/es/components/Datagrid/index.js +2 -1
  49. package/es/components/Datagrid/useActionsColumn.js +10 -7
  50. package/es/components/Datagrid/useCustomizeColumns.js +9 -7
  51. package/es/components/Datagrid/useExpandedRow.js +11 -7
  52. package/es/components/Datagrid/useFiltering.js +12 -8
  53. package/es/components/Datagrid/useInlineEdit.js +3 -0
  54. package/es/components/Datagrid/useNestedRows.js +10 -6
  55. package/es/components/Datagrid/useStickyColumn.js +10 -3
  56. package/es/components/Datagrid/utils/DatagridActions.js +12 -20
  57. package/es/components/EditFullPage/EditFullPage.docs-page.js +39 -0
  58. package/es/components/EditFullPage/EditFullPage.js +2 -1
  59. package/es/components/EditSidePanel/EditSidePanel.js +1 -1
  60. package/es/components/EditTearsheet/EditTearsheet.docs-page.js +25 -0
  61. package/es/components/EditTearsheet/EditTearsheet.js +4 -0
  62. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
  63. package/es/components/EditUpdateCards/EditUpdateCards.js +3 -2
  64. package/es/components/EmptyStates/EmptyState.js +4 -0
  65. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -0
  66. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -0
  67. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -0
  68. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -0
  69. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -0
  70. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -0
  71. package/es/components/ExampleComponent/ExampleComponent.docs-page.js +22 -0
  72. package/es/components/ExportModal/ExportModal.js +4 -0
  73. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  74. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  75. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  76. package/es/components/ImportModal/ImportModal.docs-page.js +18 -0
  77. package/es/components/ImportModal/ImportModal.js +13 -6
  78. package/es/components/MultiAddSelect/MultiAddSelect.docs-page.js +17 -0
  79. package/es/components/MultiAddSelect/MultiAddSelect.js +4 -0
  80. package/es/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -17
  81. package/es/components/PageHeader/PageHeader.js +2 -6
  82. package/es/components/PageHeader/PageHeaderUtils.js +2 -2
  83. package/es/components/RemoveModal/RemoveModal.docs-page.js +18 -0
  84. package/es/components/RemoveModal/RemoveModal.js +6 -0
  85. package/es/components/SidePanel/SidePanel.js +1 -3
  86. package/es/components/SingleAddSelect/SingleAddSelect.docs-page.js +15 -0
  87. package/es/components/SingleAddSelect/SingleAddSelect.js +4 -0
  88. package/es/components/StatusIcon/StatusIcon.docs-page.js +17 -0
  89. package/es/components/StatusIcon/StatusIcon.js +10 -0
  90. package/es/components/TagSet/TagSet.js +4 -7
  91. package/es/components/Tearsheet/TearsheetShell.js +11 -6
  92. package/es/components/Toolbar/Toolbar.docs-page.js +14 -0
  93. package/es/components/UserProfileImage/UserProfileImage.docs-page.js +17 -0
  94. package/es/components/UserProfileImage/UserProfileImage.js +14 -3
  95. package/es/components/WebTerminal/WebTerminal.docs-page.js +52 -0
  96. package/es/components/WebTerminal/WebTerminal.js +4 -0
  97. package/es/components/index.js +1 -1
  98. package/es/global/js/hooks/useCreateComponentStepChange.js +16 -15
  99. package/es/global/js/hooks/useResizeObserver.js +14 -28
  100. package/es/global/js/package-settings.js +14 -1
  101. package/es/global/js/utils/StoryDocsPage.js +218 -0
  102. package/es/global/js/utils/story-helper.js +108 -6
  103. package/lib/components/APIKeyModal/APIKeyModal.docs-page.js +37 -0
  104. package/lib/components/AboutModal/AboutModal.docs-page.js +32 -0
  105. package/lib/components/AboutModal/AboutModal.js +2 -4
  106. package/lib/components/ActionBar/ActionBar.js +2 -6
  107. package/lib/components/AddSelect/AddSelectFormControl.js +6 -6
  108. package/lib/components/AddSelect/AddSelectRow.js +15 -5
  109. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -6
  110. package/lib/components/ButtonMenu/ButtonMenu.js +4 -4
  111. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -9
  112. package/lib/components/Cascade/Cascade.docs-page.js +33 -0
  113. package/lib/components/Cascade/Cascade.js +11 -1
  114. package/lib/components/CreateFullPage/CreateFullPage.docs-page.js +50 -0
  115. package/lib/components/CreateFullPage/CreateFullPage.js +13 -0
  116. package/lib/components/CreateModal/CreateModal.docs-page.js +35 -0
  117. package/lib/components/CreateModal/CreateModal.js +7 -0
  118. package/lib/components/CreateSidePanel/CreateSidePanel.docs-page.js +29 -0
  119. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
  120. package/lib/components/CreateTearsheet/CreateTearsheet.docs-page.js +40 -0
  121. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  122. package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  123. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -3
  124. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +25 -10
  125. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -3
  126. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  127. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +37 -45
  128. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +20 -24
  129. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +6 -6
  130. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +20 -0
  131. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +42 -13
  132. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +16 -30
  133. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -2
  134. package/lib/components/Datagrid/index.js +8 -1
  135. package/lib/components/Datagrid/useActionsColumn.js +12 -7
  136. package/lib/components/Datagrid/useCustomizeColumns.js +10 -8
  137. package/lib/components/Datagrid/useExpandedRow.js +9 -6
  138. package/lib/components/Datagrid/useFiltering.js +10 -7
  139. package/lib/components/Datagrid/useInlineEdit.js +3 -0
  140. package/lib/components/Datagrid/useNestedRows.js +9 -6
  141. package/lib/components/Datagrid/useStickyColumn.js +10 -3
  142. package/lib/components/Datagrid/utils/DatagridActions.js +49 -57
  143. package/lib/components/EditFullPage/EditFullPage.docs-page.js +50 -0
  144. package/lib/components/EditFullPage/EditFullPage.js +2 -1
  145. package/lib/components/EditSidePanel/EditSidePanel.js +1 -1
  146. package/lib/components/EditTearsheet/EditTearsheet.docs-page.js +36 -0
  147. package/lib/components/EditTearsheet/EditTearsheet.js +4 -0
  148. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
  149. package/lib/components/EditUpdateCards/EditUpdateCards.js +3 -2
  150. package/lib/components/EmptyStates/EmptyState.js +4 -0
  151. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -0
  152. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -0
  153. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -0
  154. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -0
  155. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -0
  156. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -0
  157. package/lib/components/ExampleComponent/ExampleComponent.docs-page.js +33 -0
  158. package/lib/components/ExportModal/ExportModal.js +4 -0
  159. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  160. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  161. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  162. package/lib/components/ImportModal/ImportModal.docs-page.js +26 -0
  163. package/lib/components/ImportModal/ImportModal.js +13 -6
  164. package/lib/components/MultiAddSelect/MultiAddSelect.docs-page.js +25 -0
  165. package/lib/components/MultiAddSelect/MultiAddSelect.js +4 -0
  166. package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -17
  167. package/lib/components/PageHeader/PageHeader.js +2 -6
  168. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  169. package/lib/components/RemoveModal/RemoveModal.docs-page.js +26 -0
  170. package/lib/components/RemoveModal/RemoveModal.js +6 -0
  171. package/lib/components/SidePanel/SidePanel.js +1 -3
  172. package/lib/components/SingleAddSelect/SingleAddSelect.docs-page.js +23 -0
  173. package/lib/components/SingleAddSelect/SingleAddSelect.js +4 -0
  174. package/lib/components/StatusIcon/StatusIcon.docs-page.js +28 -0
  175. package/lib/components/StatusIcon/StatusIcon.js +10 -0
  176. package/lib/components/TagSet/TagSet.js +4 -7
  177. package/lib/components/Tearsheet/TearsheetShell.js +11 -6
  178. package/lib/components/Toolbar/Toolbar.docs-page.js +25 -0
  179. package/lib/components/UserProfileImage/UserProfileImage.docs-page.js +28 -0
  180. package/lib/components/UserProfileImage/UserProfileImage.js +14 -3
  181. package/lib/components/WebTerminal/WebTerminal.docs-page.js +63 -0
  182. package/lib/components/WebTerminal/WebTerminal.js +4 -0
  183. package/lib/components/index.js +6 -0
  184. package/lib/global/js/hooks/useCreateComponentStepChange.js +16 -15
  185. package/lib/global/js/hooks/useResizeObserver.js +13 -27
  186. package/lib/global/js/package-settings.js +14 -1
  187. package/lib/global/js/utils/StoryDocsPage.js +225 -0
  188. package/lib/global/js/utils/story-helper.js +115 -7
  189. package/package.json +4 -4
  190. package/scss/components/AddSelect/_add-select.scss +10 -6
  191. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
  192. package/scss/components/ButtonMenu/_button-menu.scss +32 -1
  193. package/scss/components/Cascade/_storybook-styles.scss +3 -2
  194. package/scss/components/CreateFullPage/_create-full-page.scss +3 -3
  195. package/scss/components/CreateModal/_create-modal.scss +3 -3
  196. package/scss/components/CreateSidePanel/_create-side-panel.scss +4 -4
  197. package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -2
  198. package/scss/components/CreateTearsheet/_storybook-styles.scss +1 -1
  199. package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +2 -2
  200. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +5 -5
  201. package/scss/components/DataSpreadsheet/_storybook-styles.scss +6 -0
  202. package/scss/components/Datagrid/_datagrid.scss +4 -2
  203. package/scss/components/Datagrid/_storybook-styles.scss +18 -4
  204. package/scss/components/Datagrid/styles/_datagrid.scss +26 -13
  205. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +7 -0
  206. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +4 -0
  207. package/scss/components/EditSidePanel/_edit-side-panel.scss +2 -2
  208. package/scss/components/EditTearsheet/_edit-tearsheet.scss +2 -2
  209. package/scss/components/EditTearsheet/_storybook-styles.scss +1 -1
  210. package/scss/components/ImportModal/_import-modal.scss +1 -1
  211. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
  212. package/scss/components/NotificationsPanel/_storybook-styles.scss +10 -2
  213. package/scss/components/OptionsTile/_storybook-styles.scss +1 -1
  214. package/scss/components/PageHeader/_page-header.scss +4 -5
  215. package/scss/components/PageHeader/_storybook-styles.scss +24 -14
  216. package/scss/components/Saving/_saving.scss +1 -1
  217. package/scss/components/SidePanel/_side-panel.scss +3 -5
  218. package/scss/components/TagSet/_tag-set.scss +1 -1
  219. package/scss/components/Tearsheet/_tearsheet.scss +9 -8
  220. package/scss/components/UserProfileImage/_user-profile-image.scss +2 -2
  221. package/scss/components/WebTerminal/_storybook-styles.scss +11 -1
  222. package/scss/global/styles/_display-box.scss +1 -0
  223. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +0 -21
  224. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +0 -30
  225. package/scss/components/HTTPErrors/_storybook-styles.scss +0 -6
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021, 2021
2
+ // Copyright IBM Corp. 2021, 2023
3
3
  //
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.
@@ -7,7 +7,10 @@
7
7
 
8
8
  // Standard imports.
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
+ @use '@carbon/styles/scss/components/button/tokens' as *;
10
11
  @use '../../global/styles/project-settings' as c4p-settings;
12
+ @use '@carbon/react/scss/theme' as *;
13
+ @use '@carbon/styles/scss/type';
11
14
 
12
15
  // TODO: @use(s) of Carbon settings and component styles and other
13
16
  // related component styles used by ButtonMenu
@@ -17,9 +20,37 @@ $block-class: #{c4p-settings.$pkg-prefix}--button-menu;
17
20
 
18
21
  .#{$block-class} {
19
22
  min-width: 160px;
23
+ &.#{$block-class}__wrapper--primary,
24
+ &.#{$block-class}__wrapper--primary.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
25
+ background-color: $button-primary;
26
+ }
27
+ &.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--primary:hover {
28
+ background-color: $button-primary-hover;
29
+ }
30
+
31
+ &.#{$block-class}__wrapper--tertiary,
32
+ &.#{$block-class}__wrapper--tertiary.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
33
+ background-color: $button-tertiary;
34
+ }
35
+ &.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--tertiary:hover {
36
+ background-color: $button-tertiary-hover;
37
+ }
38
+
39
+ &.#{$block-class}__wrapper--ghost,
40
+ &.#{$block-class}__wrapper--ghost.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
41
+ background-color: transparent;
42
+ }
43
+ &.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--ghost:hover {
44
+ background-color: $layer-hover;
45
+ }
20
46
 
21
47
  .#{$block-class}__trigger {
48
+ @include type.type-style('body-compact-01');
49
+
50
+ display: flex;
22
51
  width: 100%;
52
+ align-items: center;
53
+ justify-content: space-between;
23
54
  padding: 0 $spacing-05;
24
55
  }
25
56
  }
@@ -8,8 +8,9 @@
8
8
  @use '@carbon/styles/scss/theme' as *;
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
10
 
11
- #root {
12
- width: 100%;
11
+ #storybook-docs .docs-story {
12
+ /* stylelint-disable-next-line carbon/layout-token-use */
13
+ padding: 30px 0;
13
14
  }
14
15
 
15
16
  .box {
@@ -41,13 +41,13 @@ $step-block-class: #{c4p-settings.$pkg-prefix}--create-full-page__step;
41
41
  }
42
42
 
43
43
  .#{$block-class} .#{$block-class}__step-subtitle {
44
- @include type.type-style('productive-heading-01');
44
+ @include type.type-style('heading-compact-01');
45
45
 
46
46
  margin-bottom: $spacing-03;
47
47
  }
48
48
 
49
49
  .#{$block-class} .#{$block-class}__step-description {
50
- @include type.type-style('body-long-01');
50
+ @include type.type-style('body-01');
51
51
 
52
52
  margin-bottom: $spacing-06;
53
53
  }
@@ -139,7 +139,7 @@ $step-block-class: #{c4p-settings.$pkg-prefix}--create-full-page__step;
139
139
  }
140
140
 
141
141
  .#{$block-class} .#{$block-class}__step-title {
142
- @include type.type-style('productive-heading-04');
142
+ @include type.type-style('heading-04');
143
143
 
144
144
  margin-bottom: $spacing-05;
145
145
  }
@@ -46,20 +46,20 @@
46
46
  }
47
47
 
48
48
  .#{c4p-settings.$pkg-prefix}--create-modal__title {
49
- @include type.type-style('productive-heading-03');
49
+ @include type.type-style('heading-03');
50
50
 
51
51
  margin-bottom: $spacing-02;
52
52
  }
53
53
 
54
54
  .#{c4p-settings.$pkg-prefix}--create-modal__subtitle {
55
- @include type.type-style('body-short-01');
55
+ @include type.type-style('body-compact-01');
56
56
 
57
57
  margin-bottom: $spacing-03;
58
58
  color: $text-secondary;
59
59
  }
60
60
 
61
61
  .#{c4p-settings.$pkg-prefix}--create-modal__description {
62
- @include type.type-style('body-long-01');
62
+ @include type.type-style('body-01');
63
63
 
64
64
  padding-right: calc(20% - #{$spacing-05});
65
65
  margin: $spacing-03 0 $spacing-05 0;
@@ -56,13 +56,13 @@ $side-panel-block-class: #{c4p-settings.$pkg-prefix}--side-panel;
56
56
  }
57
57
 
58
58
  .#{$create-side-panel-block-class}__form-title-text {
59
- @include type.type-style('productive-heading-02');
59
+ @include type.type-style('heading-compact-02');
60
60
 
61
61
  padding-bottom: $spacing-03;
62
62
  }
63
63
 
64
64
  .#{$create-side-panel-block-class}__form-description-text {
65
- @include type.type-style('body-long-01');
65
+ @include type.type-style('body-01');
66
66
  }
67
67
 
68
68
  .#{$create-side-panel-block-class}.#{$side-panel-block-class}
@@ -71,13 +71,13 @@ $side-panel-block-class: #{c4p-settings.$pkg-prefix}--side-panel;
71
71
  }
72
72
 
73
73
  .#{$create-side-panel-block-class}__title {
74
- @include type.type-style('productive-heading-03');
74
+ @include type.type-style('heading-03');
75
75
 
76
76
  margin-bottom: $spacing-02;
77
77
  }
78
78
 
79
79
  .#{$create-side-panel-block-class}__subtitle {
80
- @include type.type-style('body-short-01');
80
+ @include type.type-style('body-compact-01');
81
81
 
82
82
  margin-bottom: $spacing-03;
83
83
  color: $text-secondary;
@@ -133,7 +133,7 @@ $tearsheet-fieldset-class: #{c4p-settings.$pkg-prefix}--tearsheet-create__step--
133
133
  .#{$create-tearsheet-block-class}__section--subtitle,
134
134
  .#{$create-tearsheet-block-class}
135
135
  .#{$create-tearsheet-block-class}__step--subtitle {
136
- @include type.type-style('productive-heading-01');
136
+ @include type.type-style('heading-compact-01');
137
137
 
138
138
  margin-bottom: $spacing-03;
139
139
  }
@@ -142,7 +142,7 @@ $tearsheet-fieldset-class: #{c4p-settings.$pkg-prefix}--tearsheet-create__step--
142
142
  .#{$create-tearsheet-block-class}__section--description,
143
143
  .#{$create-tearsheet-block-class}
144
144
  .#{$create-tearsheet-block-class}__step--description {
145
- @include type.type-style('body-long-01');
145
+ @include type.type-style('body-01');
146
146
 
147
147
  margin-bottom: $spacing-06;
148
148
  }
@@ -13,7 +13,7 @@
13
13
  $preview-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step;
14
14
 
15
15
  .#{$preview-block-class}__description {
16
- @include type.type-style('body-short-01');
16
+ @include type.type-style('body-compact-01');
17
17
 
18
18
  padding-bottom: $spacing-04;
19
19
  }
@@ -51,11 +51,11 @@ $block-class: #{c4p-settings.$pkg-prefix}--create-tearsheet-narrow;
51
51
  }
52
52
 
53
53
  .#{$block-class} .#{$block-class}__form-title-text {
54
- @include type.type-style('productive-heading-02');
54
+ @include type.type-style('heading-compact-02');
55
55
 
56
56
  padding-bottom: $spacing-03;
57
57
  }
58
58
 
59
59
  .#{$block-class} .#{$block-class}__form-description-text {
60
- @include type.type-style('body-long-01');
60
+ @include type.type-style('body-01');
61
61
  }
@@ -56,7 +56,7 @@ $header-cell-background: $layer-accent-01;
56
56
 
57
57
  .#{$block-class}__th,
58
58
  .#{$block-class}__td {
59
- @include type.type-style('body-short-01');
59
+ @include type.type-style('body-compact-01');
60
60
 
61
61
  width: 100%;
62
62
  height: 100%;
@@ -117,13 +117,13 @@ $header-cell-background: $layer-accent-01;
117
117
  text-align: left;
118
118
  }
119
119
  .#{$block-class}__th {
120
- @include type.type-style('productive-heading-01');
120
+ @include type.type-style('heading-compact-01');
121
121
 
122
122
  color: $text-primary;
123
123
  text-align: left;
124
124
  }
125
125
  .#{$block-class}__cell-editor {
126
- @include type.type-style('body-short-01');
126
+ @include type.type-style('body-compact-01');
127
127
  @include utilities.focus-outline('reset');
128
128
 
129
129
  position: absolute;
@@ -151,7 +151,7 @@ $header-cell-background: $layer-accent-01;
151
151
  }
152
152
  }
153
153
  .#{$block-class}__cell-editor-ruler {
154
- @include type.type-style('body-short-01');
154
+ @include type.type-style('body-compact-01');
155
155
 
156
156
  position: absolute;
157
157
  overflow: hidden;
@@ -167,7 +167,7 @@ $header-cell-background: $layer-accent-01;
167
167
  }
168
168
  }
169
169
  .#{$block-class}__active-cell--highlight {
170
- @include type.type-style('body-short-01');
170
+ @include type.type-style('body-compact-01');
171
171
  @include set-body-borders();
172
172
 
173
173
  position: absolute;
@@ -4,3 +4,9 @@
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
+
8
+ $story-anchor: 'data-spreadsheet';
9
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child > div:first-child {
10
+ overflow: auto;
11
+ width: 100%;
12
+ }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2022, 2022
2
+ // Copyright IBM Corp. 2022, 2023
3
3
  //
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.
@@ -22,6 +22,7 @@
22
22
 
23
23
  // Datagrid uses the following Carbon for IBM Products components:
24
24
  // TODO: @use(s) of IBM Products component styles used by Datagrid
25
+ @use '../ButtonMenu';
25
26
 
26
27
  // The block part of our conventional BEM class names (blockClass__E--M).
27
28
  $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
@@ -33,7 +34,8 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
33
34
  display: none;
34
35
  }
35
36
 
36
- .bx--overflow-menu-options > .c4p--datagrid__row-size-dropdown {
37
+ .#{c4p-settings.$carbon-prefix}--overflow-menu-options
38
+ > .#{c4p-settings.$pkg-prefix}--datagrid__row-size-dropdown {
37
39
  left: $spacing-01;
38
40
  width: 112px;
39
41
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2022, 2022
2
+ // Copyright IBM Corp. 2022, 2023
3
3
  //
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.
@@ -20,7 +20,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
20
20
  height: 100vh;
21
21
  }
22
22
 
23
- .sb-show-main.sb-main-centered #root {
23
+ .sb-show-main.sb-main-centered #storybook-root {
24
24
  width: 100%;
25
25
  height: 100vh;
26
26
  padding: $spacing-07;
@@ -66,13 +66,13 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
66
66
  }
67
67
 
68
68
  .#{$block-class}__side-panel-value {
69
- @include type.type-style('body-short-01');
69
+ @include type.type-style('body-compact-01');
70
70
 
71
71
  padding-left: $spacing-03;
72
72
  }
73
73
 
74
74
  .#{$block-class}__side-panel-section-header {
75
- @include type.type-style('productive-heading-01');
75
+ @include type.type-style('heading-compact-01');
76
76
 
77
77
  padding-bottom: $spacing-02;
78
78
  }
@@ -114,3 +114,17 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
114
114
  margin-right: $spacing-03;
115
115
  background-color: $field-01;
116
116
  }
117
+
118
+ .#{c4p-settings.$carbon-prefix}--body--with-modal-open {
119
+ .#{$block-class}__mobile-toolbar-modal.#{c4p-settings.$carbon-prefix}--modal {
120
+ top: -$spacing-07;
121
+ left: -$spacing-07;
122
+ width: 100vw;
123
+ }
124
+ }
125
+
126
+ $story-anchor: 'datagrid';
127
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child > div:first-child {
128
+ overflow: auto;
129
+ width: 100%;
130
+ }
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020 - 2021
5
- * US Government Users Restricted Rights - Use, duplication or disclosure
6
- * restricted by GSA ADP Schedule Contract with IBM Corp.
7
- */
1
+ //
2
+ // Copyright IBM Corp. 2020, 2023
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
+ //
8
7
 
9
8
  @use '@carbon/styles/scss/theme' as *;
10
9
  @use '@carbon/styles/scss/spacing' as *;
@@ -582,12 +581,6 @@
582
581
  width: 100%;
583
582
  }
584
583
 
585
- .#{c4p-settings.$carbon-prefix}--body--with-modal-open
586
- .#{$block-class}__grid-container {
587
- overflow: hidden;
588
- height: 100vh;
589
- }
590
-
591
584
  .#{$block-class} .#{c4p-settings.$carbon-prefix}--modal {
592
585
  width: 100%;
593
586
  }
@@ -632,3 +625,23 @@
632
625
  .#{$block-class} .#{c4p-settings.$pkg-prefix}--datagrid__head-wrap {
633
626
  background-color: $layer-accent;
634
627
  }
628
+
629
+ .#{$block-class}
630
+ .#{c4p-settings.$carbon-prefix}--action-list
631
+ .#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$pkg-prefix}--button-menu {
632
+ padding: 0;
633
+ }
634
+
635
+ // TODO: Revisit batch action list button and button icon alignment after
636
+ // https: //github.com/carbon-design-system/carbon/issues/14021 is fixed
637
+ .#{$block-class}
638
+ .#{c4p-settings.$carbon-prefix}--action-list
639
+ .#{c4p-settings.$carbon-prefix}--btn {
640
+ align-items: center;
641
+ }
642
+
643
+ .#{$block-class}
644
+ .#{c4p-settings.$carbon-prefix}--action-list
645
+ .#{c4p-settings.$carbon-prefix}--btn__icon {
646
+ margin-top: 0;
647
+ }
@@ -75,6 +75,13 @@ $action-set-height: rem(64px);
75
75
  }
76
76
 
77
77
  // Carbon overrides
78
+ .#{variables.$block-class}-filter-flyout__trigger.#{c4p-settings.$carbon-prefix}--btn {
79
+ display: flex;
80
+ width: 3rem;
81
+ height: 3rem;
82
+ justify-content: center;
83
+ }
84
+
78
85
  .#{variables.$block-class}-filter-flyout__trigger--open.#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$carbon-prefix}--btn--icon-only {
79
86
  position: relative;
80
87
  background-color: $layer-02;
@@ -124,6 +124,10 @@
124
124
  }
125
125
 
126
126
  .#{c4p-settings.$carbon-prefix}--btn.c4p--datagrid-filter-panel-open-button {
127
+ display: flex;
128
+ width: 3rem;
129
+ height: 3rem;
130
+ justify-content: center;
127
131
  border-right: 1px solid $layer-accent-01;
128
132
  border-bottom: none;
129
133
  }
@@ -32,13 +32,13 @@ $side-panel-block-class: #{c4p-settings.$pkg-prefix}--side-panel;
32
32
  }
33
33
 
34
34
  .#{$block-class}__form-title-text {
35
- @include type.type-style('productive-heading-02');
35
+ @include type.type-style('heading-compact-02');
36
36
 
37
37
  padding-bottom: $spacing-03;
38
38
  }
39
39
 
40
40
  .#{$block-class}__form-description-text {
41
- @include type.type-style('body-long-01');
41
+ @include type.type-style('body-01');
42
42
  }
43
43
 
44
44
  &.#{$side-panel-block-class}
@@ -115,14 +115,14 @@ $tearsheet-fieldset-class: #{c4p-settings.$pkg-prefix}--tearsheet-edit__form--fi
115
115
 
116
116
  .#{$block-class} .#{$block-class}__section--subtitle,
117
117
  .#{$block-class} .#{$block-class}__form--subtitle {
118
- @include type.type-style('productive-heading-01');
118
+ @include type.type-style('heading-compact-01');
119
119
 
120
120
  margin-bottom: $spacing-03;
121
121
  }
122
122
 
123
123
  .#{$block-class} .#{$block-class}__section--description,
124
124
  .#{$block-class} .#{$block-class}__form--description {
125
- @include type.type-style('body-long-01');
125
+ @include type.type-style('body-01');
126
126
 
127
127
  margin-bottom: $spacing-06;
128
128
  }
@@ -16,7 +16,7 @@
16
16
  $preview-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-edit-multi-form;
17
17
 
18
18
  .#{$preview-block-class}__description {
19
- @include type.type-style('body-short-01');
19
+ @include type.type-style('body-compact-01');
20
20
 
21
21
  padding-bottom: $spacing-04;
22
22
  }
@@ -55,7 +55,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--import-modal;
55
55
  .#{$block-class} .#{$block-class}__file-drop-header,
56
56
  .#{$block-class} .#{$block-class}__label {
57
57
  margin-bottom: $spacing-03;
58
- @include type.type-style('productive-heading-01');
58
+ @include type.type-style('heading-compact-01');
59
59
  }
60
60
 
61
61
  .#{$block-class}__helper-text {
@@ -54,7 +54,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
54
54
  top: $spacing-09;
55
55
  right: 0;
56
56
  overflow: auto;
57
- min-width: 22.75rem;
57
+ min-width: 20rem;
58
58
  max-width: 22.75rem;
59
59
  min-height: 38.5rem;
60
60
  max-height: 38.5rem;
@@ -82,7 +82,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
82
82
  color: $text-primary;
83
83
  }
84
84
  .#{$block-class}__header {
85
- @include type.type-style('productive-heading-01');
85
+ @include type.type-style('heading-compact-01');
86
86
 
87
87
  margin: 0;
88
88
  }
@@ -252,7 +252,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
252
252
  justify-content: center;
253
253
  margin-top: $spacing-13;
254
254
  .#{c4p-settings.$pkg-prefix}-subtext {
255
- @include type.type-style('body-short-01');
255
+ @include type.type-style('body-compact-01');
256
256
  }
257
257
  }
258
258
  .#{$block-class}__main-section {
@@ -10,6 +10,14 @@
10
10
 
11
11
  $storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
12
12
 
13
- .#{$storybook-block-class}--header {
14
- @include theme(themes.$g100);
13
+ .#{$storybook-block-class}--full-height {
14
+ height: 100vh;
15
+ max-height: var(--doc-story-height); // set in core if needed;
16
+ }
17
+
18
+ .#{$storybook-block-class}__add {
19
+ display: flex;
20
+ height: 100%;
21
+ align-items: center;
22
+ justify-content: center;
15
23
  }
@@ -18,7 +18,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
18
18
  }
19
19
 
20
20
  .#{$block-class}__content p {
21
- @include type.type-style('body-long-01');
21
+ @include type.type-style('body-01');
22
22
 
23
23
  margin-bottom: $spacing-06;
24
24
  }
@@ -29,7 +29,6 @@ $block-class: #{$pkg-prefix}--page-header;
29
29
  $breadcrumb-block-class: #{$pkg-prefix}--breadcrumb-with-overflow;
30
30
 
31
31
  $raised-z-index: 99;
32
- /* stylelint-disable-next-line function-no-unknown */
33
32
  $z-index-header-minus: utilities.z('header') - 1;
34
33
 
35
34
  $left-section-std-width: 60%;
@@ -432,7 +431,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
432
431
  }
433
432
 
434
433
  .#{$block-class}__title {
435
- @include type.type-style('productive-heading-04');
434
+ @include type.type-style('heading-04');
436
435
 
437
436
  min-height: $spacing-08;
438
437
  overflow-x: hidden;
@@ -539,11 +538,11 @@ $right-section-alt-width: 100% - $left-section-alt-width;
539
538
  }
540
539
 
541
540
  .#{$block-class}__subtitle {
542
- @include type.type-style('body-long-01');
541
+ @include type.type-style('body-01');
543
542
  }
544
543
 
545
544
  .#{$block-class}__available-row {
546
- @include type.type-style('body-long-01');
545
+ @include type.type-style('body-01');
547
546
 
548
547
  margin-top: $spacing-03;
549
548
 
@@ -558,7 +557,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
558
557
 
559
558
  .#{$block-class}__available-row * {
560
559
  // default content of available row to body-long-01
561
- @include type.type-style('body-long-01');
560
+ @include type.type-style('body-01');
562
561
  }
563
562
 
564
563
  .#{$block-class}__navigation-row {
@@ -15,15 +15,6 @@
15
15
 
16
16
  $story-class: 'page-header-stories';
17
17
 
18
- // cspell:disable-next-line
19
- .sbdocs .#{$story-class}__viewport {
20
- max-height: 500px;
21
- background-color: $background;
22
- box-shadow: 0 0 4px 1px $layer-accent-01;
23
- color: $text-primary;
24
- overflow-y: auto;
25
- }
26
-
27
18
  .#{$story-class}__content-switcher {
28
19
  justify-content: flex-start;
29
20
  }
@@ -66,15 +57,34 @@ $story-class: 'page-header-stories';
66
57
  flex-direction: column;
67
58
  }
68
59
 
69
- .#{$story-class}__app--whole-page-scroll {
60
+ .#{$story-class}__viewport {
70
61
  overflow: hidden;
62
+ height: 100vh;
71
63
  }
72
64
 
73
- .#{$story-class}__content-container {
74
- height: 100%;
75
- padding: 0;
65
+ .#{$story-class}__viewport--scroll {
66
+ overflow-y: auto;
76
67
  }
77
68
 
78
- .#{$story-class}__app--whole-page-scroll .#{$story-class}__content-container {
69
+ .#{$story-class}__viewport .#{$story-class}__content-container {
70
+ height: 100%;
79
71
  overflow-y: auto;
80
72
  }
73
+
74
+ .#{$story-class}__viewport
75
+ .#{$story-class}__content-container--with-global-header {
76
+ height: calc(100% - #{$spacing-09});
77
+ margin-top: $spacing-09;
78
+ }
79
+
80
+ .#{$story-class}__viewport--scroll .#{$story-class}__content-container {
81
+ overflow-y: initial;
82
+ }
83
+
84
+ // cspell:disable-next-line
85
+ .sbdocs .#{$story-class}__viewport {
86
+ max-height: 50vh;
87
+ background-color: $background;
88
+ box-shadow: 0 0 4px 1px $layer-accent-01;
89
+ color: $text-primary;
90
+ }
@@ -26,7 +26,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--saving;
26
26
  }
27
27
 
28
28
  .#{$block-class}__text {
29
- @include type.type-style('body-short-01');
29
+ @include type.type-style('body-compact-01');
30
30
  }
31
31
 
32
32
  .#{$block-class}__buttons {
@@ -64,7 +64,6 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
64
64
 
65
65
  position: fixed;
66
66
  // Need to disable stylelint until dart sass namespace support is added
67
- /* stylelint-disable-next-line function-no-unknown */
68
67
  z-index: utilities.z('modal');
69
68
  top: $spacing-09;
70
69
  height: calc(100% - 3rem);
@@ -165,7 +164,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
165
164
  );
166
165
  }
167
166
  .#{$block-class}__title-text {
168
- @include type.type-style('productive-heading-03');
167
+ @include type.type-style('heading-03');
169
168
  @include setCommonTitleStyles();
170
169
 
171
170
  position: inherit;
@@ -185,7 +184,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
185
184
  white-space: nowrap;
186
185
  }
187
186
  .#{$block-class}__collapsed-title-text {
188
- @include type.type-style('productive-heading-02');
187
+ @include type.type-style('heading-compact-02');
189
188
  @include setCommonTitleStyles();
190
189
 
191
190
  position: absolute;
@@ -195,7 +194,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
195
194
  transform: translateY(var(--#{$block-class}--collapsed-title-y-position));
196
195
  }
197
196
  .#{$block-class}__subtitle-text {
198
- @include type.type-style('body-short-01');
197
+ @include type.type-style('body-compact-01');
199
198
 
200
199
  overflow: hidden;
201
200
  padding: 0 $spacing-09 $spacing-05 $spacing-05;
@@ -441,7 +440,6 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
441
440
  .#{$block-class}__overlay {
442
441
  position: fixed;
443
442
  // Need to disable stylelint until dart sass namespace support is added
444
- /* stylelint-disable-next-line function-no-unknown */
445
443
  z-index: utilities.z('overlay');
446
444
  width: 100%;
447
445
  height: 100%;