@carbon/ibm-products 1.54.2 → 1.55.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/css/index-full-carbon.css +1312 -108
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +3 -3
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon.css +1200 -1
  6. package/css/index-without-carbon.css.map +1 -1
  7. package/css/index-without-carbon.min.css +2 -2
  8. package/css/index-without-carbon.min.css.map +1 -1
  9. package/css/index.css +1310 -106
  10. package/css/index.css.map +1 -1
  11. package/css/index.min.css +3 -3
  12. package/css/index.min.css.map +1 -1
  13. package/es/components/APIKeyModal/APIKeyModal.js +25 -21
  14. package/es/components/ActionBar/ActionBar.js +5 -5
  15. package/es/components/Carousel/Carousel.js +237 -0
  16. package/es/components/Carousel/CarouselItem.js +66 -0
  17. package/es/components/Carousel/index.js +9 -0
  18. package/es/components/Carousel/utils.js +98 -0
  19. package/es/components/CreateFullPage/CreateFullPage.js +4 -2
  20. package/es/components/CreateModal/CreateModal.js +2 -1
  21. package/es/components/CreateSidePanel/CreateSidePanel.js +6 -2
  22. package/es/components/CreateTearsheet/CreateTearsheet.js +3 -1
  23. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +6 -2
  24. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
  25. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +3 -2
  26. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +2 -1
  27. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +13 -0
  28. package/es/components/Datagrid/index.js +2 -1
  29. package/es/components/Datagrid/useActionsColumn.js +13 -7
  30. package/es/components/Datagrid/useOnRowClick.js +20 -4
  31. package/es/components/Datagrid/useSortableColumns.js +27 -3
  32. package/es/components/Datagrid/utils/DatagridActions.js +6 -6
  33. package/es/components/Datagrid/utils/getArgTypes.js +4 -0
  34. package/es/components/EditSidePanel/EditSidePanel.js +7 -3
  35. package/es/components/FilterSummary/FilterSummary.js +7 -3
  36. package/es/components/Guidebanner/Guidebanner.js +229 -0
  37. package/es/components/Guidebanner/GuidebannerElement.js +71 -0
  38. package/es/components/Guidebanner/GuidebannerElementButton.js +76 -0
  39. package/es/components/Guidebanner/GuidebannerElementLink.js +56 -0
  40. package/es/components/Guidebanner/index.js +11 -0
  41. package/es/components/InlineTip/InlineTip.js +228 -0
  42. package/es/components/InlineTip/InlineTipButton.js +89 -0
  43. package/es/components/InlineTip/InlineTipLink.js +89 -0
  44. package/es/components/InlineTip/index.js +10 -0
  45. package/es/components/InlineTip/utils.js +36 -0
  46. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +164 -0
  47. package/es/components/SteppedAnimatedMedia/assets/index.js +4 -0
  48. package/es/components/SteppedAnimatedMedia/index.js +8 -0
  49. package/es/components/Tearsheet/TearsheetShell.js +2 -1
  50. package/es/components/index.js +4 -2
  51. package/es/global/js/hooks/useResizeObserver.js +1 -1
  52. package/es/global/js/package-settings.js +2 -0
  53. package/lib/components/APIKeyModal/APIKeyModal.js +25 -21
  54. package/lib/components/ActionBar/ActionBar.js +5 -5
  55. package/lib/components/Carousel/Carousel.js +238 -0
  56. package/lib/components/Carousel/CarouselItem.js +66 -0
  57. package/lib/components/Carousel/index.js +19 -0
  58. package/lib/components/Carousel/utils.js +108 -0
  59. package/lib/components/CreateFullPage/CreateFullPage.js +4 -2
  60. package/lib/components/CreateModal/CreateModal.js +2 -1
  61. package/lib/components/CreateSidePanel/CreateSidePanel.js +6 -2
  62. package/lib/components/CreateTearsheet/CreateTearsheet.js +3 -1
  63. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +6 -2
  64. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
  65. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +3 -2
  66. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +8 -1
  67. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +20 -0
  68. package/lib/components/Datagrid/index.js +8 -1
  69. package/lib/components/Datagrid/useActionsColumn.js +13 -7
  70. package/lib/components/Datagrid/useOnRowClick.js +20 -4
  71. package/lib/components/Datagrid/useSortableColumns.js +27 -3
  72. package/lib/components/Datagrid/utils/DatagridActions.js +6 -6
  73. package/lib/components/Datagrid/utils/getArgTypes.js +4 -0
  74. package/lib/components/EditSidePanel/EditSidePanel.js +7 -3
  75. package/lib/components/FilterSummary/FilterSummary.js +7 -3
  76. package/lib/components/Guidebanner/Guidebanner.js +229 -0
  77. package/lib/components/Guidebanner/GuidebannerElement.js +67 -0
  78. package/lib/components/Guidebanner/GuidebannerElementButton.js +71 -0
  79. package/lib/components/Guidebanner/GuidebannerElementLink.js +52 -0
  80. package/lib/components/Guidebanner/index.js +33 -0
  81. package/lib/components/InlineTip/InlineTip.js +228 -0
  82. package/lib/components/InlineTip/InlineTipButton.js +86 -0
  83. package/lib/components/InlineTip/InlineTipLink.js +86 -0
  84. package/lib/components/InlineTip/index.js +26 -0
  85. package/lib/components/InlineTip/utils.js +44 -0
  86. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +165 -0
  87. package/lib/components/SteppedAnimatedMedia/assets/index.js +12 -0
  88. package/lib/components/SteppedAnimatedMedia/index.js +12 -0
  89. package/lib/components/Tearsheet/TearsheetShell.js +2 -1
  90. package/lib/components/index.js +21 -1
  91. package/lib/global/js/hooks/useResizeObserver.js +1 -1
  92. package/lib/global/js/package-settings.js +2 -0
  93. package/package.json +6 -5
  94. package/scss/components/Carousel/_carousel.scss +80 -0
  95. package/scss/components/Carousel/_index.scss +8 -0
  96. package/scss/components/Carousel/_storybook-styles.scss +10 -0
  97. package/scss/components/Datagrid/_storybook-styles.scss +5 -0
  98. package/scss/components/Datagrid/styles/_datagrid.scss +1 -1
  99. package/scss/components/Guidebanner/_guidebanner.scss +257 -0
  100. package/scss/components/Guidebanner/_index.scss +8 -0
  101. package/scss/components/Guidebanner/_storybook-styles.scss +20 -0
  102. package/scss/components/InlineTip/_index.scss +8 -0
  103. package/scss/components/InlineTip/_inline-tip.scss +231 -0
  104. package/scss/components/InlineTip/_storybook-styles.scss +21 -0
  105. package/scss/components/SteppedAnimatedMedia/_index.scss +8 -0
  106. package/scss/components/SteppedAnimatedMedia/_stepped-animated-media.scss +34 -0
  107. package/scss/components/SteppedAnimatedMedia/_storybook-styles.scss +12 -0
  108. package/scss/components/_index.scss +4 -0
@@ -0,0 +1,257 @@
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
+ /**
9
+ * The Guidebanner specifically is theme-agnostic, and so we have to
10
+ * use color tokens to keep the colors static instead of theme tokens
11
+ * that will change depending on the selected theme.
12
+ *
13
+ * Because of this, we are triggering a *large* amount of linting errors.
14
+ * So, we're adding 4 "disable" rules for the file instead of 50
15
+ * individual rules.
16
+ */
17
+
18
+ /* stylelint-disable carbon/layout-token-use */
19
+ /* stylelint-disable carbon/motion-duration-use */
20
+ /* stylelint-disable carbon/theme-token-use */
21
+ /* stylelint-disable declaration-no-important */
22
+
23
+ // Standard imports.
24
+ @import '../../global/styles/project-settings';
25
+ @import '../../global/styles/mixins';
26
+
27
+ // Other Carbon settings.
28
+ // TODO: @import 'carbon-components/scss/globals/grid/grid'; if needed
29
+
30
+ // Guidebanner uses the following Carbon components:
31
+ // Button, Link
32
+
33
+ // Guidebanner uses the following Carbon for IBM Products components:
34
+ // TODO: @import(s) of IBM Products component styles used by Guidebanner
35
+
36
+ @mixin when-collapsed($selector: '&') {
37
+ .#{$pkg-prefix}--guidebanner__collapsible-collapsed #{$selector} {
38
+ @content;
39
+ }
40
+ }
41
+
42
+ // Define all component styles in a mixin which is then exported using
43
+ // the Carbon import-once mechanism.
44
+ @mixin guidebanner {
45
+ // The block part of our conventional BEM class names (blockClass__E--M).
46
+ $block-class: #{$pkg-prefix}--guidebanner;
47
+
48
+ // Each GuidebannerElement is contained in a CarouselItem.
49
+ $carousel-item: #{$pkg-prefix}--carousel__item;
50
+
51
+ .#{$block-class} {
52
+ $horizontal-margin: rem(52px);
53
+ $purple-1: #9b63ff;
54
+ $purple-2: #7f3ae7;
55
+ $purple-3: #7433e3;
56
+
57
+ position: relative;
58
+ background: linear-gradient(90deg, $blue-90 0%, $purple-70 100%);
59
+ background-color: $blue-90;
60
+
61
+ &__icon-idea {
62
+ position: absolute;
63
+ top: $spacing-05;
64
+ left: $spacing-05;
65
+
66
+ path {
67
+ fill: $gray-10;
68
+ }
69
+ }
70
+
71
+ &__title {
72
+ @include carbon--type-style('productive-heading-02');
73
+
74
+ padding: $spacing-05 rem(175px) 0 $horizontal-margin;
75
+ color: $gray-10;
76
+ }
77
+
78
+ // Carbon Button "icon-only" overrides
79
+ &__close-button {
80
+ // Force dark theme (i.e. white tooltips)
81
+ @include carbon--theme($carbon--theme--g100, true);
82
+
83
+ position: absolute !important;
84
+ top: 0;
85
+ right: 0;
86
+ width: $spacing-07;
87
+ height: $spacing-07;
88
+ min-height: $spacing-07 !important;
89
+
90
+ &:active,
91
+ &:hover {
92
+ background-color: $purple-3 !important;
93
+ }
94
+
95
+ svg {
96
+ margin-left: rem(-4px) !important;
97
+
98
+ path {
99
+ fill: $white-0 !important;
100
+ }
101
+ }
102
+ }
103
+
104
+ // Specify Carousel look and feel.
105
+ &__carousel {
106
+ padding: 0 0 $spacing-05 0;
107
+ color: $gray-10;
108
+
109
+ @include when-collapsed() {
110
+ margin-bottom: 0;
111
+ }
112
+
113
+ // Each GuidebannerElement is wrapped in a CarouselItem.
114
+ .#{$carousel-item} {
115
+ .#{$block-class}__element {
116
+ display: flex;
117
+ width: carbon--mini-units(50);
118
+ max-height: carbon--mini-units(64);
119
+ flex-flow: column;
120
+ flex-shrink: 0;
121
+ padding-left: $horizontal-margin;
122
+ margin: $spacing-05 0 0 0;
123
+ opacity: 1;
124
+ scroll-snap-align: start;
125
+ transition: max-height 50ms carbon--motion(exit, productive),
126
+ margin-top 50ms carbon--motion(exit, productive),
127
+ opacity 300ms carbon--motion(exit, productive);
128
+
129
+ @include when-collapsed() {
130
+ max-height: $spacing-03;
131
+ margin-top: 0;
132
+ opacity: 0;
133
+ }
134
+
135
+ &-title {
136
+ @include carbon--type-style('productive-heading-01');
137
+
138
+ margin: $spacing-05 0 0 0;
139
+ }
140
+
141
+ &-content {
142
+ @include carbon--type-style('body-long-01');
143
+
144
+ margin-bottom: $spacing-05;
145
+ }
146
+
147
+ &-buttons {
148
+ .bx--btn--tertiary {
149
+ border-color: $white-0;
150
+ color: $white-0;
151
+
152
+ &:active,
153
+ &:hover {
154
+ border-color: $white-0;
155
+ background-color: $white-0;
156
+ color: $gray-100;
157
+ }
158
+ }
159
+
160
+ .bx--btn:not(.bx--btn--tertiary) {
161
+ margin-left: calc(-1 * $spacing-05);
162
+ color: $blue-30;
163
+
164
+ &:active,
165
+ &:hover {
166
+ background-color: $purple-2;
167
+ color: $gray-10;
168
+ }
169
+ }
170
+
171
+ .#{$block-class}__element-link {
172
+ color: $blue-30;
173
+
174
+ &:visited {
175
+ color: $blue-30;
176
+ }
177
+
178
+ &:active,
179
+ &:hover {
180
+ color: $blue-20;
181
+ }
182
+ }
183
+ }
184
+ }
185
+
186
+ &:last-child {
187
+ .#{$block-class}__element {
188
+ width: carbon--mini-units(56);
189
+ padding-right: $horizontal-margin;
190
+ }
191
+ }
192
+ }
193
+ }
194
+
195
+ &__navigation {
196
+ display: flex;
197
+ border-top: rem(1px) solid $purple-60;
198
+
199
+ @include when-collapsed() {
200
+ border-top: none;
201
+ }
202
+
203
+ .#{$block-class}__toggle-button {
204
+ margin-left: calc($horizontal-margin - rem(18px));
205
+ color: $blue-30;
206
+
207
+ &:active,
208
+ &:hover {
209
+ background-color: $purple-3;
210
+ color: $gray-10;
211
+ }
212
+ }
213
+
214
+ // Push back and next buttons to the right
215
+ .#{$block-class}__back-button {
216
+ margin-left: auto;
217
+ }
218
+
219
+ // Carbon Button (icon-only) overrides
220
+ .#{$block-class}__back-button,
221
+ .#{$block-class}__next-button {
222
+ // Force dark theme (i.e. white tooltips)
223
+ @include carbon--theme($carbon--theme--g100, true);
224
+ @include when-collapsed() {
225
+ display: none !important;
226
+ }
227
+
228
+ &:active,
229
+ &:hover {
230
+ background-color: $purple-3;
231
+ }
232
+
233
+ svg path {
234
+ fill: $white-0 !important;
235
+ }
236
+
237
+ &--disabled svg path {
238
+ fill: $purple-1 !important;
239
+ }
240
+ }
241
+ }
242
+
243
+ // Carbon Button tooltip overrides
244
+ &__close-button,
245
+ &__back-button,
246
+ &__next-button {
247
+ &::before {
248
+ // Force tooltip's caret to look like it's connected to its label.
249
+ z-index: 6001 !important;
250
+ }
251
+ }
252
+ }
253
+ }
254
+
255
+ @include exports('guidebanner') {
256
+ @include guidebanner;
257
+ }
@@ -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 './guidebanner';
@@ -0,0 +1,20 @@
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
+ #root {
11
+ overflow-x: hidden;
12
+ }
13
+
14
+ // The layout has been changed from middle/center to top/left, because
15
+ // the component can expand, and it looks weird when expanding vertically
16
+ // from the middle of the page instead of "dropping down" from above.
17
+ // Margin provides spacing from the edge of the viewport.
18
+ .non-linear-reading-stories__viewport {
19
+ margin: 0;
20
+ }
@@ -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 './inline-tip';
@@ -0,0 +1,231 @@
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
+ /**
9
+ * The InlineTip specifically is theme-agnostic, and so we have to
10
+ * use color tokens to keep the colors static instead of theme tokens
11
+ * that will change depending on the selected theme.
12
+ *
13
+ * We are triggering a *large* amount of linting errors.
14
+ * So, we're adding 2 "disable" rules for the file instead of 25
15
+ * individual rules.
16
+ */
17
+
18
+ /* stylelint-disable declaration-no-important */
19
+ /* stylelint-disable carbon/theme-token-use */
20
+
21
+ // Standard imports.
22
+ @import '../../global/styles/project-settings';
23
+ @import '../../global/styles/mixins';
24
+
25
+ // Other Carbon settings.
26
+ // TODO: @import 'carbon-components/scss/globals/grid/grid'; if needed
27
+
28
+ // InlineTip uses the following Carbon components:
29
+ // TODO: @import(s) of Carbon component styles used by InlineTip
30
+
31
+ // InlineTip uses the following Carbon for IBM Products components:
32
+ // TODO: @import(s) of IBM Products component styles used by InlineTip
33
+
34
+ // Define all component styles in a mixin which is then exported using
35
+ // the Carbon import-once mechanism.
36
+ @mixin inline-tip {
37
+ // The block part of our conventional BEM class names (blockClass__E--M).
38
+ $block-class: #{$pkg-prefix}--inline-tip;
39
+
40
+ // Images and animation are the same, fixed size
41
+ $media-height: rem(118px);
42
+ $media-width: calc(#{$media-height} * 2);
43
+
44
+ .#{$block-class} {
45
+ $purple: #7f3ae7;
46
+
47
+ position: relative;
48
+ display: flex;
49
+ background: linear-gradient(90deg, $blue-90 0%, $purple-70 100%);
50
+
51
+ // layout only: wide
52
+ &__wide {
53
+ padding: $spacing-05 $spacing-10 $spacing-05 $spacing-09;
54
+
55
+ // layout: wide, with image
56
+ &.#{$block-class}__has-media {
57
+ padding-right: $spacing-09;
58
+
59
+ .#{$block-class}__media {
60
+ padding-left: $spacing-10;
61
+
62
+ img {
63
+ display: block;
64
+ height: $media-height;
65
+ }
66
+
67
+ svg {
68
+ width: $media-width !important;
69
+ height: $media-height !important;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ // layout only: narrow
76
+ &__narrow {
77
+ flex-direction: column-reverse;
78
+ /* stylelint-disable-next-line carbon/layout-token-use */
79
+ padding: rem(52px) $spacing-07 $spacing-05 $spacing-05;
80
+
81
+ // layout: narrow, with image
82
+ &.#{$block-class}__has-media {
83
+ padding-top: $spacing-07;
84
+ padding-right: $spacing-05;
85
+ }
86
+
87
+ .#{$block-class}__media {
88
+ padding-bottom: $spacing-05;
89
+
90
+ img {
91
+ width: 100%;
92
+ }
93
+ }
94
+
95
+ .#{$block-class}__content {
96
+ padding-right: $spacing-05;
97
+ }
98
+
99
+ .#{$block-class}__footer {
100
+ justify-content: space-between;
101
+
102
+ .#{$block-class}__close-btn {
103
+ margin-right: calc(-1 * $spacing-05);
104
+ }
105
+ }
106
+ }
107
+
108
+ // All links in use by this component and provided by the user must reflect the 'dark' theme.
109
+ a {
110
+ color: $blue-30;
111
+
112
+ &:visited,
113
+ &:hover,
114
+ &:visited:hover {
115
+ color: $blue-30;
116
+ }
117
+ }
118
+
119
+ &__title {
120
+ @include carbon--type-style('productive-heading-01');
121
+
122
+ color: $white-0;
123
+ }
124
+
125
+ &__body {
126
+ @include carbon--type-style('body-short-01');
127
+
128
+ color: $gray-10;
129
+
130
+ p {
131
+ @include carbon--type-style('body-short-01');
132
+
133
+ margin-bottom: $spacing-03;
134
+ font-size: inherit;
135
+ line-height: inherit;
136
+
137
+ &:last-of-type {
138
+ margin-bottom: 0;
139
+ }
140
+ }
141
+
142
+ .#{$block-class}__secondary-btn {
143
+ margin-top: $spacing-03;
144
+
145
+ .#{$block-class}__button {
146
+ margin-left: calc(-1 * $spacing-05);
147
+ color: $blue-30;
148
+
149
+ &:active,
150
+ &:hover {
151
+ background-color: $purple;
152
+ color: $gray-10;
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
+ &__footer {
159
+ display: flex;
160
+ padding-top: $spacing-05;
161
+
162
+ &:empty {
163
+ display: none;
164
+ }
165
+ }
166
+
167
+ // When 'collapsed', a text-only preview with ellipsis is shown.
168
+ &__preview-text {
169
+ display: -webkit-box;
170
+ overflow: hidden;
171
+ -webkit-box-orient: vertical;
172
+ -webkit-line-clamp: 1;
173
+ }
174
+
175
+ &__icon-idea {
176
+ position: absolute;
177
+ width: rem(20px);
178
+ color: $white-0;
179
+ inset: $spacing-05 0 0 $spacing-05;
180
+ }
181
+
182
+ &__close-icon {
183
+ position: absolute !important;
184
+ top: 0;
185
+ right: 0;
186
+ width: $spacing-07;
187
+ height: $spacing-07;
188
+ min-height: $spacing-07 !important;
189
+ /* stylelint-disable-next-line carbon/layout-token-use */
190
+ padding: 0 0 0 rem(6px) !important;
191
+ color: $white-0;
192
+
193
+ &:active,
194
+ &:hover {
195
+ background-color: $purple !important;
196
+ color: $text-01 !important;
197
+ }
198
+
199
+ svg > path {
200
+ margin: 0;
201
+ fill: $white-0 !important;
202
+ }
203
+ }
204
+
205
+ &__toggle-btn {
206
+ border: none;
207
+ margin: 0 $spacing-05 0 calc(-1 * $spacing-05) !important;
208
+ color: $blue-30 !important;
209
+
210
+ &:hover {
211
+ background-color: $purple-70-hover !important;
212
+ color: $gray-10 !important;
213
+ }
214
+ }
215
+
216
+ &__close-btn {
217
+ border: rem(1px) solid $white-0 !important;
218
+ color: $white-0 !important;
219
+
220
+ &:active,
221
+ &:hover {
222
+ background-color: $gray-10 !important;
223
+ color: $gray-100 !important;
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+ @include exports('inline-tip') {
230
+ @include inline-tip;
231
+ }
@@ -0,0 +1,21 @@
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
+ .storybook--inline-tip-wide {
11
+ max-width: 784px;
12
+ // Allow enough space above the component to show the "X" tooltip.
13
+ margin-top: $spacing-07;
14
+ }
15
+
16
+ .storybook--inline-tip-narrow {
17
+ max-width: 348px;
18
+ margin-top: $spacing-07;
19
+ }
20
+
21
+ // TODO: add any additional styles used by InlineTip.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 './stepped-animated-media';
@@ -0,0 +1,34 @@
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
+ // Other Carbon settings.
13
+ // TODO: @import 'carbon-components/scss/globals/grid/grid'; if needed
14
+
15
+ // SteppedAnimatedMedia uses the following Carbon components:
16
+ // TODO: @import(s) of Carbon component styles used by SteppedAnimatedMedia
17
+
18
+ // SteppedAnimatedMedia uses the following Carbon for IBM Products components:
19
+ // TODO: @import(s) of IBM Products component styles used by SteppedAnimatedMedia
20
+
21
+ // Define all component styles in a mixin which is then exported using
22
+ // the Carbon import-once mechanism.
23
+ @mixin stepped-animated-media {
24
+ // The block part of our conventional BEM class names (blockClass__E--M).
25
+ $block-class: #{$pkg-prefix}--stepped-animated-media;
26
+
27
+ .#{$block-class} {
28
+ // TODO: Styles.
29
+ }
30
+ }
31
+
32
+ @include exports('stepped-animated-media') {
33
+ @include stepped-animated-media;
34
+ }
@@ -0,0 +1,12 @@
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
+ .stepped-animated-media-stories__viewport {
11
+ width: carbon--mini-units(50);
12
+ }
@@ -52,4 +52,8 @@
52
52
 
53
53
  @import './InlineEditV1/index';
54
54
  @import './InlineEditV2/index';
55
+ @import './Carousel/index';
56
+ @import './Guidebanner/index';
55
57
  @import './NonLinearReading/index';
58
+ @import './InlineTip/index';
59
+ @import './SteppedAnimatedMedia/index';