@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.
Files changed (101) hide show
  1. package/css/index-full-carbon.css +1804 -233
  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-released-only.css +40 -8
  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 +1804 -233
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +1785 -243
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.d.ts +2 -1
  18. package/es/components/APIKeyModal/APIKeyModal.js +13 -9
  19. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +206 -0
  20. package/es/components/AboutModal/AboutModal.d.ts +73 -2
  21. package/es/components/AboutModal/AboutModal.js +16 -12
  22. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -0
  23. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +1 -2
  24. package/es/components/Datagrid/useInitialColumnSort.d.ts +1 -0
  25. package/es/components/Datagrid/useInitialColumnSort.js +42 -0
  26. package/es/components/Datagrid/useSortableColumns.d.ts +4 -0
  27. package/es/components/Datagrid/useSortableColumns.js +16 -16
  28. package/es/components/Decorator/Decorator.d.ts +5 -0
  29. package/es/components/Decorator/Decorator.js +348 -0
  30. package/es/components/Decorator/DecoratorIcon.d.ts +5 -0
  31. package/es/components/Decorator/DecoratorIcon.js +95 -0
  32. package/es/components/Decorator/index.d.ts +1 -0
  33. package/es/components/Decorator/utils.d.ts +8 -0
  34. package/es/components/Decorator/utils.js +43 -0
  35. package/es/components/DescriptionList/DescriptionList.d.ts +42 -0
  36. package/es/components/DescriptionList/DescriptionList.js +88 -0
  37. package/es/components/DescriptionList/constants.d.ts +6 -0
  38. package/es/components/DescriptionList/constants.js +16 -0
  39. package/es/components/DescriptionList/index.d.ts +1 -0
  40. package/es/components/EmptyStates/EmptyStateContent.d.ts +1 -287
  41. package/es/components/HTTPErrors/HTTPErrorContent.d.ts +1 -293
  42. package/es/components/StatusIndicator/StatusIndicator.d.ts +5 -0
  43. package/es/components/StatusIndicator/StatusIndicator.js +100 -0
  44. package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +5 -0
  45. package/es/components/StatusIndicator/index.d.ts +2 -0
  46. package/es/components/index.d.ts +3 -0
  47. package/es/global/js/package-settings.d.ts +4 -0
  48. package/es/global/js/package-settings.js +4 -0
  49. package/es/index.js +3 -0
  50. package/es/settings.d.ts +4 -0
  51. package/lib/components/APIKeyModal/APIKeyModal.d.ts +2 -1
  52. package/lib/components/APIKeyModal/APIKeyModal.js +13 -9
  53. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +206 -0
  54. package/lib/components/AboutModal/AboutModal.d.ts +73 -2
  55. package/lib/components/AboutModal/AboutModal.js +16 -12
  56. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -0
  57. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +1 -2
  58. package/lib/components/Datagrid/useInitialColumnSort.d.ts +1 -0
  59. package/lib/components/Datagrid/useInitialColumnSort.js +46 -0
  60. package/lib/components/Datagrid/useSortableColumns.d.ts +4 -0
  61. package/lib/components/Datagrid/useSortableColumns.js +16 -15
  62. package/lib/components/Decorator/Decorator.d.ts +5 -0
  63. package/lib/components/Decorator/Decorator.js +355 -0
  64. package/lib/components/Decorator/DecoratorIcon.d.ts +5 -0
  65. package/lib/components/Decorator/DecoratorIcon.js +102 -0
  66. package/lib/components/Decorator/index.d.ts +1 -0
  67. package/lib/components/Decorator/utils.d.ts +8 -0
  68. package/lib/components/Decorator/utils.js +48 -0
  69. package/lib/components/DescriptionList/DescriptionList.d.ts +42 -0
  70. package/lib/components/DescriptionList/DescriptionList.js +95 -0
  71. package/lib/components/DescriptionList/constants.d.ts +6 -0
  72. package/lib/components/DescriptionList/constants.js +20 -0
  73. package/lib/components/DescriptionList/index.d.ts +1 -0
  74. package/lib/components/EmptyStates/EmptyStateContent.d.ts +1 -287
  75. package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +1 -293
  76. package/lib/components/StatusIndicator/StatusIndicator.d.ts +5 -0
  77. package/lib/components/StatusIndicator/StatusIndicator.js +107 -0
  78. package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +5 -0
  79. package/lib/components/StatusIndicator/index.d.ts +2 -0
  80. package/lib/components/index.d.ts +3 -0
  81. package/lib/global/js/package-settings.d.ts +4 -0
  82. package/lib/global/js/package-settings.js +4 -0
  83. package/lib/index.js +15 -0
  84. package/lib/settings.d.ts +4 -0
  85. package/package.json +4 -4
  86. package/scss/components/Decorator/_carbon-imports.scss +9 -0
  87. package/scss/components/Decorator/_decorator.scss +400 -0
  88. package/scss/components/Decorator/_index-with-carbon.scss +9 -0
  89. package/scss/components/Decorator/_index.scss +8 -0
  90. package/scss/components/DescriptionList/_carbon-imports.scss +9 -0
  91. package/scss/components/DescriptionList/_description-list.scss +103 -0
  92. package/scss/components/DescriptionList/_index-with-carbon.scss +9 -0
  93. package/scss/components/DescriptionList/_index.scss +8 -0
  94. package/scss/components/SidePanel/_side-panel.scss +6 -1
  95. package/scss/components/StatusIndicator/_carbon-imports.scss +12 -0
  96. package/scss/components/StatusIndicator/_index-with-carbon.scss +9 -0
  97. package/scss/components/StatusIndicator/_index.scss +8 -0
  98. package/scss/components/StatusIndicator/_status-indicator.scss +93 -0
  99. package/scss/components/Tearsheet/_tearsheet.scss +41 -15
  100. package/scss/components/_index-with-carbon.scss +3 -0
  101. 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
- // stylelint-disable-next-line carbon/theme-token-use
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-right: $spacing-11;
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
- margin-right: $spacing-09;
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';