@carbon/ibm-products 2.1.1 → 2.1.2

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 (53) hide show
  1. package/css/index-full-carbon.css +24 -2
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +2 -2
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +6 -1
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +24 -2
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +2 -2
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +17 -1
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +2 -2
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +3 -0
  18. package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  19. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  20. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  21. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +5 -11
  22. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +17 -17
  23. package/es/components/Datagrid/utils/DatagridActions.js +6 -14
  24. package/es/components/ImportModal/ImportModal.js +13 -6
  25. package/es/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -17
  26. package/es/components/PageHeader/PageHeaderUtils.js +2 -2
  27. package/es/components/Tearsheet/TearsheetShell.js +4 -5
  28. package/es/global/js/hooks/useCreateComponentStepChange.js +16 -15
  29. package/es/global/js/utils/story-helper.js +1 -1
  30. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +3 -0
  31. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  32. package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  33. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  34. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +4 -10
  35. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +17 -17
  36. package/lib/components/Datagrid/utils/DatagridActions.js +5 -13
  37. package/lib/components/ImportModal/ImportModal.js +13 -6
  38. package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -17
  39. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  40. package/lib/components/Tearsheet/TearsheetShell.js +4 -5
  41. package/lib/global/js/hooks/useCreateComponentStepChange.js +16 -15
  42. package/lib/global/js/utils/story-helper.js +1 -1
  43. package/package.json +4 -4
  44. package/scss/components/DataSpreadsheet/_storybook-styles.scss +6 -0
  45. package/scss/components/Datagrid/_storybook-styles.scss +7 -1
  46. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +7 -0
  47. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +4 -0
  48. package/scss/components/HTTPErrors/_storybook-styles.scss +16 -2
  49. package/scss/components/NotificationsPanel/_storybook-styles.scss +0 -4
  50. package/scss/components/PageHeader/_storybook-styles.scss +42 -14
  51. package/scss/components/Tearsheet/_tearsheet.scss +7 -1
  52. package/scss/components/WebTerminal/_storybook-styles.scss +16 -1
  53. package/scss/global/styles/_display-box.scss +1 -0
@@ -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
  }
@@ -1,6 +1,20 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
1
+ // Copyright IBM Corp. 2023, 2023
3
2
  //
4
3
  // This source code is licensed under the Apache-2.0 license found in the
5
4
  // LICENSE file in the root directory of this source tree.
6
5
  //
6
+ $story-anchor: 'http-errors';
7
+ div[id*='#{$story-anchor}'] .docs-story {
8
+ min-height: 50vh;
9
+ /* stylelint-disable-next-line carbon/layout-token-use */
10
+ transform: translateZ(0);
11
+ }
12
+
13
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child {
14
+ overflow: auto;
15
+ width: 100%;
16
+ }
17
+
18
+ div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
19
+ min-height: 50vh;
20
+ }
@@ -9,7 +9,3 @@
9
9
  @use '../../global/styles/project-settings' as c4p-settings;
10
10
 
11
11
  $storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
12
-
13
- .#{$storybook-block-class}--header {
14
- @include theme(themes.$g100);
15
- }
@@ -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,52 @@ $story-class: 'page-header-stories';
66
57
  flex-direction: column;
67
58
  }
68
59
 
69
- .#{$story-class}__app--whole-page-scroll {
60
+ $story-anchor: 'page-header';
61
+ div[id*='#{$story-anchor}'] .docs-story {
62
+ --story-height: 50vh;
63
+
64
+ min-height: var(--story-height);
65
+ /* stylelint-disable-next-line carbon/layout-token-use */
66
+ transform: translateZ(0);
67
+ }
68
+
69
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child {
70
70
  overflow: hidden;
71
+ width: 100%;
71
72
  }
72
73
 
73
- .#{$story-class}__content-container {
74
- height: 100%;
75
- padding: 0;
74
+ div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
75
+ min-height: 50vh;
76
+ }
77
+
78
+ .#{$story-class}__viewport {
79
+ overflow: hidden;
80
+ height: 100vh;
76
81
  }
77
82
 
78
- .#{$story-class}__app--whole-page-scroll .#{$story-class}__content-container {
83
+ .#{$story-class}__viewport--scroll {
79
84
  overflow-y: auto;
80
85
  }
86
+
87
+ .#{$story-class}__viewport .#{$story-class}__content-container {
88
+ height: 100%;
89
+ overflow-y: auto;
90
+ }
91
+
92
+ .#{$story-class}__viewport
93
+ .#{$story-class}__content-container--with-global-header {
94
+ height: calc(100% - #{$spacing-09});
95
+ margin-top: $spacing-09;
96
+ }
97
+
98
+ .#{$story-class}__viewport--scroll .#{$story-class}__content-container {
99
+ overflow-y: initial;
100
+ }
101
+
102
+ // cspell:disable-next-line
103
+ .sbdocs .#{$story-class}__viewport {
104
+ max-height: 50vh;
105
+ background-color: $background;
106
+ box-shadow: 0 0 4px 1px $layer-accent-01;
107
+ color: $text-primary;
108
+ }
@@ -146,12 +146,14 @@ $motion-duration: $duration-moderate-02;
146
146
  padding: $spacing-06 $spacing-07;
147
147
  border-bottom: 1px solid $border-subtle-01;
148
148
  margin: 0;
149
+ background-color: $layer;
149
150
  }
150
151
 
151
152
  &.#{$block-class}--narrow .#{$block-class}__header {
152
153
  padding: $spacing-05;
153
154
  border-bottom: 1px solid $border-subtle-01;
154
155
  margin: 0;
156
+ background-color: $layer;
155
157
  }
156
158
 
157
159
  .#{$block-class}__header-content {
@@ -265,11 +267,15 @@ $motion-duration: $duration-moderate-02;
265
267
  .#{$block-class}__main {
266
268
  display: flex;
267
269
  flex-direction: row;
268
- background-color: $layer;
270
+ background-color: $background;
269
271
  grid-column: 1 / -1;
270
272
  grid-row: 1 / -1;
271
273
  }
272
274
 
275
+ &.#{$block-class}--narrow .#{$block-class}__main {
276
+ background-color: $layer;
277
+ }
278
+
273
279
  .#{$block-class}__main .#{$block-class}__influencer {
274
280
  border-right: none;
275
281
  border-left: 1px solid $border-subtle-01;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021, 2022
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.
@@ -34,3 +34,18 @@ $storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
34
34
  font-size: 14px;
35
35
  }
36
36
  }
37
+
38
+ $story-anchor: 'web-terminal';
39
+ div[id*='#{$story-anchor}'] .docs-story {
40
+ min-height: 50vh;
41
+ transform: translateZ(0);
42
+ }
43
+
44
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child {
45
+ width: 100%;
46
+ overflow: hidden;
47
+ }
48
+
49
+ div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
50
+ min-height: 50vh;
51
+ }
@@ -22,6 +22,7 @@ $indicator-height: $spacing-04;
22
22
  position: relative;
23
23
  display: inline-block;
24
24
  padding-top: $spacing-05; // space for the indicators
25
+ margin-top: $spacing-09; // provides space in docs
25
26
  color: $text-helper;
26
27
  }
27
28