@carbon/ibm-products 1.64.0 → 1.65.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 (43) hide show
  1. package/css/index-full-carbon.css +224 -0
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon.css +224 -0
  6. package/css/index-without-carbon.css.map +1 -1
  7. package/css/index-without-carbon.min.css +1 -1
  8. package/css/index-without-carbon.min.css.map +1 -1
  9. package/css/index.css +224 -0
  10. package/css/index.css.map +1 -1
  11. package/css/index.min.css +1 -1
  12. package/css/index.min.css.map +1 -1
  13. package/es/components/Carousel/Carousel.js +5 -3
  14. package/es/components/InterstitialScreen/InterstitialScreen.js +419 -0
  15. package/es/components/InterstitialScreen/assets/index.js +5 -0
  16. package/es/components/InterstitialScreen/index.js +8 -0
  17. package/es/components/InterstitialScreenView/InterstitialScreenView.js +75 -0
  18. package/es/components/InterstitialScreenView/index.js +8 -0
  19. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +83 -0
  20. package/es/components/InterstitialScreenViewModule/index.js +8 -0
  21. package/es/components/index.js +3 -0
  22. package/es/global/js/package-settings.js +4 -0
  23. package/lib/components/Carousel/Carousel.js +5 -3
  24. package/lib/components/InterstitialScreen/InterstitialScreen.js +420 -0
  25. package/lib/components/InterstitialScreen/assets/index.js +14 -0
  26. package/lib/components/InterstitialScreen/index.js +12 -0
  27. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +72 -0
  28. package/lib/components/InterstitialScreenView/index.js +12 -0
  29. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +80 -0
  30. package/lib/components/InterstitialScreenViewModule/index.js +12 -0
  31. package/lib/components/index.js +21 -0
  32. package/lib/global/js/package-settings.js +4 -0
  33. package/package.json +2 -2
  34. package/scss/components/InterstitialScreen/_index.scss +8 -0
  35. package/scss/components/InterstitialScreen/_interstitial-screen.scss +266 -0
  36. package/scss/components/InterstitialScreen/_storybook-styles.scss +59 -0
  37. package/scss/components/InterstitialScreenView/_index.scss +8 -0
  38. package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +25 -0
  39. package/scss/components/InterstitialScreenView/_storybook-styles.scss +10 -0
  40. package/scss/components/InterstitialScreenViewModule/_index.scss +8 -0
  41. package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +54 -0
  42. package/scss/components/InterstitialScreenViewModule/_storybook-styles.scss +10 -0
  43. package/scss/components/_index.scss +3 -0
@@ -80,6 +80,9 @@ var defaults = {
80
80
  GuidebannerElementButton: false,
81
81
  GuidebannerElementLink: false,
82
82
  NonLinearReading: false,
83
+ InterstitialScreen: false,
84
+ InterstitialScreenView: false,
85
+ InterstitialScreenViewModule: false,
83
86
  Checklist: false,
84
87
  Coachmark: false,
85
88
  CoachmarkBeacon: false,
@@ -88,6 +91,7 @@ var defaults = {
88
91
  CoachmarkOverlayElement: false,
89
92
  CoachmarkOverlayElements: false,
90
93
  CoachmarkStack: false
94
+
91
95
  /* new component flags here - comment used by generate CLI */
92
96
  },
93
97
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "1.64.0",
4
+ "version": "1.65.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -97,5 +97,5 @@
97
97
  "react": "^16.8.6 || ^17.0.1",
98
98
  "react-dom": "^16.8.6 || ^17.0.1"
99
99
  },
100
- "gitHead": "8d199ba7fdf1afcd494af8771abd2483c197d319"
100
+ "gitHead": "4d5770a9e051155c8559c650142f729f4187ac82"
101
101
  }
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ @import './interstitial-screen';
@@ -0,0 +1,266 @@
1
+ // Copyright IBM Corp. 2023, 2023
2
+ //
3
+ // This source code is licensed under the Apache-2.0 license found in the
4
+ // LICENSE file in the root directory of this source tree.
5
+ //
6
+
7
+ // Standard imports.
8
+ @import '../../global/styles/project-settings';
9
+ @import '../../global/styles/mixins';
10
+
11
+ // stylelint-disable carbon/layout-token-use
12
+ // stylelint-disable declaration-no-important
13
+ // stylelint-disable carbon/type-token-use
14
+
15
+ // Define all component styles in a mixin which is then exported using
16
+ // the Carbon import-once mechanism.
17
+ @mixin interstitial-screen {
18
+ // The block part of our conventional BEM class names (blockClass__E--M).
19
+ $block-class: #{$pkg-prefix}--interstitial-screen;
20
+ $carousel: #{$pkg-prefix}--carousel;
21
+ $carousel-item: #{$pkg-prefix}--carousel__item;
22
+ $one-grid-column: calc(100% / 16);
23
+
24
+ .#{$block-class} {
25
+ $block: &;
26
+
27
+ .#{$carousel} {
28
+ display: flex;
29
+ min-height: 100%;
30
+ flex-direction: column;
31
+
32
+ &__elements-container {
33
+ display: flex;
34
+ flex: 1;
35
+ flex-direction: column;
36
+ }
37
+
38
+ &__elements {
39
+ flex: 1;
40
+ }
41
+ }
42
+
43
+ position: fixed;
44
+ z-index: 6001;
45
+ top: 0;
46
+ right: 0;
47
+ left: 0;
48
+
49
+ #{$block}--auto-height-container {
50
+ flex: 1;
51
+ }
52
+
53
+ &--body {
54
+ overflow: hidden auto;
55
+ flex-grow: 1;
56
+ padding: 0;
57
+ margin: 0;
58
+ background-color: $ui-background;
59
+ }
60
+
61
+ &--body-grid {
62
+ height: 100%;
63
+ padding: 0 !important;
64
+ }
65
+
66
+ &--body-row {
67
+ height: 100%;
68
+ }
69
+
70
+ &--progress {
71
+ margin: $spacing-07 $spacing-05 $spacing-04;
72
+ }
73
+
74
+ &__carousel {
75
+ height: 100%;
76
+ .#{$carousel-item} {
77
+ flex: 0 0 100% !important;
78
+ }
79
+ }
80
+
81
+ &--container {
82
+ min-width: carbon--mini-units(94);
83
+ max-width: 1312px;
84
+ margin: calc($spacing-10 * 2) auto;
85
+ background-color: $ui-background;
86
+ }
87
+
88
+ &--media-container {
89
+ overflow: hidden;
90
+ }
91
+
92
+ &--media {
93
+ width: 100%;
94
+ height: 100%;
95
+
96
+ margin-right: calc($spacing-08 * -1);
97
+ @include carbon--breakpoint-down(xlg) {
98
+ margin-right: calc($spacing-07 * -1);
99
+ }
100
+ }
101
+
102
+ &--stepped-animated-media {
103
+ overflow: hidden;
104
+ height: 100%;
105
+ }
106
+
107
+ &--internal-body {
108
+ padding: 0 !important;
109
+ margin: 0 !important;
110
+ }
111
+
112
+ // HEADER
113
+ &--internal-header {
114
+ position: relative;
115
+ min-height: $spacing-09;
116
+ margin-bottom: 0 !important;
117
+ background-color: $ui-background;
118
+
119
+ &:empty {
120
+ min-height: 0;
121
+ }
122
+
123
+ h2 {
124
+ @include carbon--type-style('productive-heading-04');
125
+
126
+ padding: 0 $spacing-05 $spacing-06;
127
+
128
+ &:empty {
129
+ padding: 0;
130
+ }
131
+ }
132
+
133
+ &--has-title {
134
+ border-bottom: 1px solid $ui-03;
135
+ background: $ui-01;
136
+
137
+ #{$block}--progress {
138
+ margin-top: 0;
139
+ }
140
+ }
141
+ > #{$block}--close-icon {
142
+ position: absolute !important;
143
+ z-index: 1;
144
+ top: 0;
145
+ right: 0;
146
+ width: $spacing-09;
147
+ }
148
+ }
149
+
150
+ // FOOTER
151
+ &--footer {
152
+ display: flex;
153
+ width: 100%;
154
+ flex-direction: row;
155
+ justify-content: flex-end;
156
+ border-top: 1px solid $ui-03;
157
+ background: $ui-background;
158
+
159
+ #{$block}--prev-btn,
160
+ #{$block}--next-btn,
161
+ #{$block}--start-btn {
162
+ width: calc($one-grid-column * 3);
163
+ min-width: carbon--mini-units(25);
164
+ }
165
+
166
+ #{$block}--skip-btn {
167
+ max-width: none;
168
+ flex-grow: 1 !important;
169
+ padding-left: $spacing-07 !important;
170
+ }
171
+ }
172
+
173
+ &--footer-controls {
174
+ display: flex;
175
+ flex-direction: row;
176
+ // flex: 1;
177
+ margin-left: auto;
178
+ }
179
+
180
+ // MODAL (settings exclusive of "FULL SCREEN")
181
+ &--modal {
182
+ #{$block}--content {
183
+ margin-top: 0;
184
+ }
185
+
186
+ #{$block}--internal-header {
187
+ &:has(> :nth-child(2)) {
188
+ min-height: initial;
189
+ }
190
+ }
191
+
192
+ &:has(> :nth-child(1)) {
193
+ min-height: initial;
194
+ }
195
+ }
196
+
197
+ // FULL SCREEN (settings exclusive of "MODAL")
198
+ &--full-screen {
199
+ #{$block}--container {
200
+ display: flex;
201
+ max-width: 100vw;
202
+ height: 100vh;
203
+ flex-direction: column;
204
+ padding: 0;
205
+ margin: 0;
206
+ }
207
+
208
+ // e.g. "IBM Cloud Pak | Product"
209
+ // ..."IBM Cloud Pak"
210
+ #{$block}--header {
211
+ @include carbon--type-style('body-long-01');
212
+
213
+ height: $spacing-09;
214
+ padding-left: $spacing-05;
215
+ border-bottom: 1px solid $ui-03;
216
+ /* stylelint-disable-next-line carbon/theme-token-use */
217
+ background-color: $gray-100;
218
+ /* stylelint-disable-next-line carbon/theme-token-use */
219
+ color: $gray-10;
220
+ font-weight: normal !important; // overrides type style above
221
+ line-height: $spacing-09 !important;
222
+
223
+ b {
224
+ font-weight: var(--cds-heading-01-font-weight, 600);
225
+ }
226
+ }
227
+
228
+ #{$block}--internal-header {
229
+ > h2 {
230
+ padding: $spacing-05 $spacing-08 0;
231
+ }
232
+
233
+ #{$block}--progress {
234
+ margin: $spacing-10 $spacing-08 $spacing-04;
235
+
236
+ @include carbon--breakpoint-down(xlg) {
237
+ margin-left: $spacing-07;
238
+ }
239
+ }
240
+
241
+ &--has-title {
242
+ #{$block}--progress {
243
+ margin-top: $spacing-06;
244
+ }
245
+ }
246
+
247
+ &:has(> :nth-child(1)) {
248
+ min-height: initial;
249
+ }
250
+ }
251
+
252
+ #{$block}--footer {
253
+ #{$block}--skip-btn {
254
+ padding-left: $spacing-08 !important;
255
+ @include carbon--breakpoint-down(xlg) {
256
+ padding-left: $spacing-07 !important;
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
263
+
264
+ @include exports('interstitial-screen') {
265
+ @include interstitial-screen;
266
+ }
@@ -0,0 +1,59 @@
1
+ /* stylelint-disable max-nesting-depth */
2
+ //
3
+ // Copyright IBM Corp. 2023, 2023
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ @import '../../global/styles/project-settings';
10
+
11
+ .CustomLayout {
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ padding: $spacing-07;
15
+ gap: $spacing-05;
16
+ }
17
+
18
+ .storyCardExample {
19
+ width: 20%;
20
+ height: 350px;
21
+ flex-grow: 1;
22
+ padding: $spacing-06;
23
+ border: 1px solid $ui-05;
24
+ background-color: $ui-03;
25
+ }
26
+
27
+ // .GenericModalView {
28
+ // /* stylelint-disable-next-line declaration-no-important */
29
+ // margin-bottom: $spacing-12 !important;
30
+ // }
31
+ .GenericView {
32
+ /* stylelint-disable-next-line declaration-no-important */
33
+ margin-top: $spacing-12 !important;
34
+ }
35
+
36
+ .NoImageExampleModal {
37
+ $one-grid-column: calc(100% / 16);
38
+ $md: 672px;
39
+
40
+ width: calc($one-grid-column * 16);
41
+
42
+ @media (min-width: $md) {
43
+ width: calc($one-grid-column * 12);
44
+ }
45
+ }
46
+
47
+ .NoImageExampleFullScreen {
48
+ $one-grid-column: calc(100% / 16);
49
+ $md: 672px;
50
+ $lg: 1056px;
51
+
52
+ width: calc($one-grid-column * 16);
53
+ @media (min-width: $md) {
54
+ width: calc($one-grid-column * 12);
55
+ }
56
+ @media (min-width: $lg) {
57
+ width: calc($one-grid-column * 8);
58
+ }
59
+ }
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ @import './interstitial-screen-view';
@@ -0,0 +1,25 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ // Standard imports.
9
+ @import '../../global/styles/project-settings';
10
+ @import '../../global/styles/mixins';
11
+
12
+ // Define all component styles in a mixin which is then exported using
13
+ // the Carbon import-once mechanism.
14
+ @mixin interstitial-screen-view {
15
+ // The block part of our conventional BEM class names (blockClass__E--M).
16
+ $block-class: #{$pkg-prefix}--interstitial-screen-view;
17
+
18
+ .#{$block-class} {
19
+ height: 100%;
20
+ }
21
+ }
22
+
23
+ @include exports('interstitial-screen-view') {
24
+ @include interstitial-screen-view;
25
+ }
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ @import '../../global/styles/project-settings';
9
+
10
+ // TODO: add any additional styles used by InterstitialScreenView.stories.js
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ @import './interstitial-screen-view-module';
@@ -0,0 +1,54 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ // Standard imports.
9
+ @import '../../global/styles/project-settings';
10
+ @import '../../global/styles/mixins';
11
+
12
+ // Define all component styles in a mixin which is then exported using
13
+ // the Carbon import-once mechanism.
14
+ @mixin interstitial-screen-view-module {
15
+ // The block part of our conventional BEM class names (blockClass__E--M).
16
+ $interstitial-block-class: #{$pkg-prefix}--interstitial-screen;
17
+ $block-class: #{$interstitial-block-class}-view-module;
18
+
19
+ .#{$block-class} {
20
+ margin: $spacing-07;
21
+
22
+ &--heading {
23
+ @include carbon--type-style('expressive-heading-05');
24
+
25
+ margin-bottom: $spacing-07;
26
+ }
27
+
28
+ &--body {
29
+ @include carbon--type-style('body-long-01');
30
+ }
31
+ }
32
+
33
+ .#{$interstitial-block-class} {
34
+ &--modal {
35
+ .#{$block-class} {
36
+ margin: $spacing-11 $spacing-07;
37
+ }
38
+ }
39
+
40
+ &--full-screen {
41
+ .#{$block-class} {
42
+ margin: $spacing-12 $spacing-08;
43
+
44
+ @include carbon--breakpoint-down(xlg) {
45
+ margin: $spacing-12 $spacing-07;
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+
52
+ @include exports('interstitial-screen-view-module') {
53
+ @include interstitial-screen-view-module;
54
+ }
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ //
7
+
8
+ @import '../../global/styles/project-settings';
9
+
10
+ // TODO: add any additional styles used by InterstitialScreenViewModule.stories.js
@@ -63,4 +63,7 @@
63
63
  @import './CoachmarkStack/index';
64
64
  @import './InlineTip/index';
65
65
  @import './SteppedAnimatedMedia/index';
66
+ @import './InterstitialScreen/index';
67
+ @import './InterstitialScreenView/index';
68
+ @import './InterstitialScreenViewModule/index';
66
69
  @import './Checklist/index';