@carbon/ibm-products 2.28.1 → 2.29.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +1804 -233
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +40 -8
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +1804 -233
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +1785 -243
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.d.ts +2 -1
- package/es/components/APIKeyModal/APIKeyModal.js +13 -9
- package/es/components/APIKeyModal/APIKeyModal.types.d.ts +206 -0
- package/es/components/AboutModal/AboutModal.d.ts +73 -2
- package/es/components/AboutModal/AboutModal.js +16 -12
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -0
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +1 -2
- package/es/components/Datagrid/useInitialColumnSort.d.ts +1 -0
- package/es/components/Datagrid/useInitialColumnSort.js +42 -0
- package/es/components/Datagrid/useSortableColumns.d.ts +4 -0
- package/es/components/Datagrid/useSortableColumns.js +16 -16
- package/es/components/Decorator/Decorator.d.ts +5 -0
- package/es/components/Decorator/Decorator.js +348 -0
- package/es/components/Decorator/DecoratorIcon.d.ts +5 -0
- package/es/components/Decorator/DecoratorIcon.js +95 -0
- package/es/components/Decorator/index.d.ts +1 -0
- package/es/components/Decorator/utils.d.ts +8 -0
- package/es/components/Decorator/utils.js +43 -0
- package/es/components/DescriptionList/DescriptionList.d.ts +42 -0
- package/es/components/DescriptionList/DescriptionList.js +88 -0
- package/es/components/DescriptionList/constants.d.ts +6 -0
- package/es/components/DescriptionList/constants.js +16 -0
- package/es/components/DescriptionList/index.d.ts +1 -0
- package/es/components/EmptyStates/EmptyStateContent.d.ts +1 -287
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +1 -293
- package/es/components/StatusIndicator/StatusIndicator.d.ts +5 -0
- package/es/components/StatusIndicator/StatusIndicator.js +100 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +5 -0
- package/es/components/StatusIndicator/index.d.ts +2 -0
- package/es/components/index.d.ts +3 -0
- package/es/global/js/package-settings.d.ts +4 -0
- package/es/global/js/package-settings.js +4 -0
- package/es/index.js +3 -0
- package/es/settings.d.ts +4 -0
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +2 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +13 -9
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +206 -0
- package/lib/components/AboutModal/AboutModal.d.ts +73 -2
- package/lib/components/AboutModal/AboutModal.js +16 -12
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -0
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +1 -2
- package/lib/components/Datagrid/useInitialColumnSort.d.ts +1 -0
- package/lib/components/Datagrid/useInitialColumnSort.js +46 -0
- package/lib/components/Datagrid/useSortableColumns.d.ts +4 -0
- package/lib/components/Datagrid/useSortableColumns.js +16 -15
- package/lib/components/Decorator/Decorator.d.ts +5 -0
- package/lib/components/Decorator/Decorator.js +355 -0
- package/lib/components/Decorator/DecoratorIcon.d.ts +5 -0
- package/lib/components/Decorator/DecoratorIcon.js +102 -0
- package/lib/components/Decorator/index.d.ts +1 -0
- package/lib/components/Decorator/utils.d.ts +8 -0
- package/lib/components/Decorator/utils.js +48 -0
- package/lib/components/DescriptionList/DescriptionList.d.ts +42 -0
- package/lib/components/DescriptionList/DescriptionList.js +95 -0
- package/lib/components/DescriptionList/constants.d.ts +6 -0
- package/lib/components/DescriptionList/constants.js +20 -0
- package/lib/components/DescriptionList/index.d.ts +1 -0
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +1 -287
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +1 -293
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +5 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +107 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +5 -0
- package/lib/components/StatusIndicator/index.d.ts +2 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/global/js/package-settings.d.ts +4 -0
- package/lib/global/js/package-settings.js +4 -0
- package/lib/index.js +15 -0
- package/lib/settings.d.ts +4 -0
- package/package.json +4 -4
- package/scss/components/Decorator/_carbon-imports.scss +9 -0
- package/scss/components/Decorator/_decorator.scss +400 -0
- package/scss/components/Decorator/_index-with-carbon.scss +9 -0
- package/scss/components/Decorator/_index.scss +8 -0
- package/scss/components/DescriptionList/_carbon-imports.scss +9 -0
- package/scss/components/DescriptionList/_description-list.scss +103 -0
- package/scss/components/DescriptionList/_index-with-carbon.scss +9 -0
- package/scss/components/DescriptionList/_index.scss +8 -0
- package/scss/components/SidePanel/_side-panel.scss +6 -1
- package/scss/components/StatusIndicator/_carbon-imports.scss +12 -0
- package/scss/components/StatusIndicator/_index-with-carbon.scss +9 -0
- package/scss/components/StatusIndicator/_index.scss +8 -0
- package/scss/components/StatusIndicator/_status-indicator.scss +93 -0
- package/scss/components/Tearsheet/_tearsheet.scss +41 -15
- package/scss/components/_index-with-carbon.scss +3 -0
- package/scss/components/_index.scss +3 -0
@@ -23,19 +23,39 @@
|
|
23
23
|
$block-class: #{$pkg-prefix}--tearsheet;
|
24
24
|
|
25
25
|
// stylelint-disable-next-line carbon/theme-token-use
|
26
|
-
$overlay-color: $gray-100;
|
27
|
-
|
28
26
|
$motion-duration: $duration-moderate-02;
|
29
27
|
|
30
28
|
@include block-wrap($block-class) {
|
31
29
|
&.#{$block-class} {
|
30
|
+
--overlay-color: #{$overlay};
|
31
|
+
--overlay-opacity: 1;
|
32
|
+
|
33
|
+
&::before {
|
34
|
+
position: absolute;
|
35
|
+
display: block;
|
36
|
+
background: var(--overlay-color);
|
37
|
+
content: '';
|
38
|
+
inset: 0;
|
39
|
+
opacity: var(--overlay-opacity);
|
40
|
+
|
41
|
+
transition: background-color $motion-duration motion(exit, expressive),
|
42
|
+
opacity $motion-duration motion(exit, expressive);
|
43
|
+
|
44
|
+
@media (prefers-reduced-motion: reduce) {
|
45
|
+
transition: none;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.#{$block-class}.#{$block-class} {
|
50
|
+
/* tearsheet uses --overlay-color and --overlay-opacity in ::before */
|
51
|
+
background: initial;
|
52
|
+
}
|
53
|
+
|
32
54
|
z-index: utilities.z('modal') + 1;
|
33
55
|
align-items: flex-end;
|
34
56
|
color: $text-primary;
|
35
57
|
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
36
|
-
transition: visibility 0s linear $motion-duration
|
37
|
-
background-color $motion-duration motion(exit, expressive),
|
38
|
-
opacity $motion-duration motion(exit, expressive);
|
58
|
+
transition: visibility 0s linear $motion-duration;
|
39
59
|
--#{$block-class}--stacking-scale-factor-single: 0.95;
|
40
60
|
--#{$block-class}--stacking-scale-factor-double: 0.9;
|
41
61
|
}
|
@@ -53,27 +73,26 @@ $motion-duration: $duration-moderate-02;
|
|
53
73
|
}
|
54
74
|
|
55
75
|
&.#{$block-class}--stacked-1-of-2 {
|
76
|
+
--overlay-opacity: 0.67;
|
77
|
+
|
56
78
|
z-index: utilities.z('modal') - 1;
|
57
|
-
// stylelint-disable-next-line carbon/theme-token-use
|
58
|
-
background-color: rgba($overlay-color, 0.33);
|
59
79
|
}
|
60
80
|
|
61
81
|
&.#{$block-class}--stacked-1-of-3 {
|
82
|
+
--overlay-opacity: 0.22;
|
83
|
+
|
62
84
|
z-index: utilities.z('modal') - 2;
|
63
|
-
// stylelint-disable-next-line carbon/theme-token-use
|
64
|
-
background-color: rgba($overlay-color, 0.11);
|
65
85
|
}
|
66
86
|
|
67
87
|
&.#{$block-class}--stacked-2-of-3 {
|
88
|
+
--overlay-opacity: 0.5;
|
89
|
+
|
68
90
|
z-index: utilities.z('modal') - 1;
|
69
|
-
// stylelint-disable-next-line carbon/theme-token-use
|
70
|
-
background-color: rgba($overlay-color, 0.25);
|
71
91
|
}
|
72
92
|
|
73
93
|
&.#{$block-class}--stacked-2-of-2,
|
74
94
|
&.#{$block-class}--stacked-3-of-3 {
|
75
|
-
|
76
|
-
background-color: rgba($overlay-color, 0.25);
|
95
|
+
--overlay-opacity: 0.5;
|
77
96
|
}
|
78
97
|
|
79
98
|
.#{$block-class}__container {
|
@@ -238,12 +257,14 @@ $motion-duration: $duration-moderate-02;
|
|
238
257
|
&.#{$block-class}--wide
|
239
258
|
.#{$block-class}__header.#{$block-class}__header--with-close-icon,
|
240
259
|
&.#{$block-class}--has-slug .#{$block-class}__header.#{$block-class}__header {
|
241
|
-
padding-
|
260
|
+
padding-inline-end: $spacing-11;
|
242
261
|
}
|
243
262
|
|
244
263
|
&.#{$block-class}--wide.#{$block-class}--has-slug
|
245
264
|
.#{$block-class}__header.#{$block-class}__header--with-close-icon {
|
246
|
-
|
265
|
+
/* spacing 11 plus additional space for slug/close */
|
266
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
267
|
+
padding-inline-end: calc(#{$spacing-11 + $spacing-09});
|
247
268
|
}
|
248
269
|
|
249
270
|
&.#{$block-class}--narrow .#{$block-class}__header-description {
|
@@ -367,6 +388,11 @@ $motion-duration: $duration-moderate-02;
|
|
367
388
|
background: $background;
|
368
389
|
}
|
369
390
|
|
391
|
+
&.#{$block-class}--has-slug {
|
392
|
+
/* stylelint-disable-next-line carbon/theme-token-use */
|
393
|
+
--overlay-color: #{$ai-overlay};
|
394
|
+
}
|
395
|
+
|
370
396
|
&.#{$block-class}--has-slug:not(.#{$block-class}--has-close)
|
371
397
|
.#{$carbon-prefix}--slug {
|
372
398
|
inset-inline-end: 0;
|
@@ -60,7 +60,10 @@
|
|
60
60
|
@use './CoachmarkOverlayElements/index-with-carbon' as *;
|
61
61
|
@use './CoachmarkStack/index-with-carbon' as *;
|
62
62
|
@use './DelimitedList/index-with-carbon' as *;
|
63
|
+
@use './Decorator/index-with-carbon' as *;
|
64
|
+
@use './DescriptionList/index-with-carbon' as *;
|
63
65
|
@use './FullPageError/index-with-carbon' as *;
|
64
66
|
@use './SearchBar/index-with-carbon' as *;
|
65
67
|
@use './StringFormatter/index-with-carbon' as *;
|
66
68
|
@use './UserAvatar/index-with-carbon' as *;
|
69
|
+
@use './StatusIndicator/index-with-carbon' as *;
|
@@ -68,7 +68,10 @@
|
|
68
68
|
@use './InterstitialScreenView';
|
69
69
|
@use './InterstitialScreenViewModule';
|
70
70
|
@use './DelimitedList';
|
71
|
+
@use './Decorator';
|
72
|
+
@use './DescriptionList';
|
71
73
|
@use './FullPageError';
|
72
74
|
@use './SearchBar';
|
73
75
|
@use './StringFormatter';
|
74
76
|
@use './UserAvatar';
|
77
|
+
@use './StatusIndicator';
|