@carbon/ibm-products 2.54.0-canary.46 → 2.54.0-canary.50

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 (60) hide show
  1. package/css/index-full-carbon.css +531 -536
  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 +33 -38
  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 +531 -536
  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 +526 -531
  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/package.json +3 -3
  18. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +1 -0
  19. package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
  20. package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
  21. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
  22. package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
  23. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
  24. package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
  25. package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
  26. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
  27. package/scss/components/Datagrid/styles/_datagrid.scss +5 -8
  28. package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
  29. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
  30. package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
  31. package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
  32. package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
  33. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
  34. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
  35. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
  36. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
  37. package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
  38. package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
  39. package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
  40. package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
  41. package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
  42. package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
  43. package/scss/components/FullPageError/_full-page-error.scss +1 -1
  44. package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
  45. package/scss/components/Guidebanner/_guidebanner.scss +4 -4
  46. package/scss/components/HTTPErrors/_http-errors.scss +1 -1
  47. package/scss/components/InlineTip/_inline-tip.scss +4 -4
  48. package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
  49. package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
  50. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
  51. package/scss/components/OptionsTile/_options-tile.scss +6 -8
  52. package/scss/components/PageHeader/_page-header.scss +15 -13
  53. package/scss/components/ProductiveCard/_productive-card.scss +2 -2
  54. package/scss/components/SidePanel/_side-panel.scss +11 -11
  55. package/scss/components/StatusIcon/_status-icon.scss +9 -7
  56. package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
  57. package/scss/components/Tearsheet/_tearsheet.scss +5 -5
  58. package/scss/components/UserAvatar/_user-avatar.scss +5 -3
  59. package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
  60. package/scss/components/WebTerminal/_web-terminal.scss +2 -2
@@ -38,27 +38,27 @@ $right-section-alt-width: 100% - $left-section-alt-width;
38
38
 
39
39
  @keyframes background-appear {
40
40
  from {
41
- /* stylelint-disable-next-line carbon/theme-token-use */
41
+ /* stylelint-disable-next-line carbon/theme-use */
42
42
  background-color: var(--from-color);
43
43
  }
44
44
 
45
45
  to {
46
- /* stylelint-disable-next-line carbon/theme-token-use */
46
+ /* stylelint-disable-next-line carbon/theme-use */
47
47
  background-color: var(--to-color);
48
48
  }
49
49
  }
50
50
  @keyframes background-and-shadow-appear {
51
51
  from {
52
- /* stylelint-disable-next-line carbon/theme-token-use */
52
+ /* stylelint-disable-next-line carbon/theme-use */
53
53
  background-color: var(--from-color);
54
- /* stylelint-disable-next-line carbon/theme-token-use */
54
+ /* stylelint-disable-next-line carbon/theme-use */
55
55
  box-shadow: 0 1px 0 var(--from-color);
56
56
  }
57
57
 
58
58
  to {
59
- /* stylelint-disable-next-line carbon/theme-token-use */
59
+ /* stylelint-disable-next-line carbon/theme-use */
60
60
  background-color: var(--to-color);
61
- /* stylelint-disable-next-line carbon/theme-token-use */
61
+ /* stylelint-disable-next-line carbon/theme-use */
62
62
  box-shadow: 0 1px 0 var(--to-color-shadow);
63
63
  }
64
64
  }
@@ -69,11 +69,11 @@ $right-section-alt-width: 100% - $left-section-alt-width;
69
69
  $to-color: $layer-01,
70
70
  $to-color-shadow: $layer-accent-01
71
71
  ) {
72
- // stylelint-disable-next-line carbon/theme-token-use
72
+ // stylelint-disable-next-line carbon/theme-use
73
73
  --from-color: #{$from-color};
74
- // stylelint-disable-next-line carbon/theme-token-use
74
+ // stylelint-disable-next-line carbon/theme-use
75
75
  --to-color: #{$to-color};
76
- // stylelint-disable-next-line carbon/theme-token-use
76
+ // stylelint-disable-next-line carbon/theme-use
77
77
  --to-color-shadow: #{$to-color-shadow};
78
78
 
79
79
  position: absolute;
@@ -107,7 +107,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
107
107
  /* z-index used to raise above any position relative content as per Carbon header */
108
108
  /* dropped 1 below Carbon header so as not to overlay the side panel */
109
109
  z-index: $z-index-header-minus;
110
- /* stylelint-disable-next-line carbon/layout-token-use */
110
+ /* stylelint-disable-next-line carbon/layout-use */
111
111
  top: var(--#{$block-class}--header-top);
112
112
  display: inline-block; /* cause top/bottom margin to reserve space */
113
113
  width: 100%;
@@ -417,7 +417,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
417
417
 
418
418
  .#{$block-class}__breadcrumb-row--has-breadcrumbs
419
419
  + .#{$block-class}__title-row--sticky {
420
- // stylelint-disable-next-line carbon/layout-token-use
420
+ // stylelint-disable-next-line carbon/layout-use
421
421
  top: calc(
422
422
  var(--#{$block-class}--breadcrumb-top) - var(--title-row-margin-top)
423
423
  );
@@ -473,8 +473,10 @@ $right-section-alt-width: 100% - $left-section-alt-width;
473
473
 
474
474
  .#{$block-class}__title-icon {
475
475
  margin-right: $spacing-04;
476
- // stylelint-disable-next-line carbon/layout-token-use
477
- transform: translateY(-2px); // positional tweak requested by design review
476
+ // stylelint-disable-next-line carbon/layout-use
477
+ transform: translateY(
478
+ -$spacing-01
479
+ ); // positional tweak requested by design review
478
480
 
479
481
  vertical-align: middle;
480
482
  }
@@ -52,9 +52,9 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
52
52
 
53
53
  .#{$block-class}__actions-header-ghost-button {
54
54
  min-height: $spacing-07;
55
- // stylelint-disable-next-line carbon/layout-token-use
55
+ // stylelint-disable-next-line carbon/layout-use
56
56
  padding-right: calc($spacing-01 + $spacing-03);
57
- // stylelint-disable-next-line carbon/layout-token-use
57
+ // stylelint-disable-next-line carbon/layout-use
58
58
  padding-left: calc($spacing-01 + $spacing-03);
59
59
 
60
60
  /* stylelint-disable-next-line max-nesting-depth */
@@ -5,6 +5,9 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use 'sass:list';
9
+ @use 'sass:map';
10
+
8
11
  // Other Carbon settings.
9
12
  @use '@carbon/styles/scss/theme' as *;
10
13
  @use '@carbon/styles/scss/spacing' as *;
@@ -22,12 +25,11 @@
22
25
  // SidePanel uses the following IBM Products components:
23
26
  // ActionSet
24
27
  @use '../ActionSet/action-set';
25
- @use 'sass:list';
26
28
 
27
29
  $block-class: #{c4p-settings.$pkg-prefix}--side-panel;
28
30
  $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
29
31
 
30
- @mixin setPanelSize($size: map-get($side-panel-sizes, md)) {
32
+ @mixin setPanelSize($size: map.get($side-panel-sizes, md)) {
31
33
  /* any value is single value list */
32
34
  width: list.nth($size, 1);
33
35
  @if list.length($size) > 1 {
@@ -51,7 +53,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
51
53
  @mixin setCommonTitleStyles() {
52
54
  display: -webkit-box;
53
55
  overflow: hidden;
54
- /* stylelint-disable-next-line carbon/layout-token-use -- custom css property set below */
56
+ /* stylelint-disable-next-line carbon/layout-use -- custom css property set below */
55
57
  padding-right: var(--#{$block-class}--title-padding-right);
56
58
  -webkit-box-orient: vertical;
57
59
  -webkit-line-clamp: 2;
@@ -121,7 +123,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
121
123
 
122
124
  position: sticky;
123
125
  z-index: 4;
124
- /* stylelint-disable-next-line carbon/layout-token-use */
126
+ /* stylelint-disable-next-line carbon/layout-use */
125
127
  top: calc(-1px * var(--#{$block-class}--scroll-animation-distance));
126
128
  min-height: $spacing-08;
127
129
  padding: $spacing-05;
@@ -217,7 +219,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
217
219
  .#{$block-class}__title {
218
220
  position: sticky;
219
221
  z-index: 4;
220
- /* stylelint-disable-next-line carbon/layout-token-use */
222
+ /* stylelint-disable-next-line carbon/layout-use */
221
223
  top: var(--#{$block-class}--title-stop);
222
224
 
223
225
  /* border-bottom used instead of padding which wrapped text shows through */
@@ -234,7 +236,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
234
236
  }
235
237
 
236
238
  .#{$block-class}__title--no-label .#{$block-class}__title-text {
237
- /* stylelint-disable-next-line carbon/layout-token-use */
239
+ /* stylelint-disable-next-line carbon/layout-use */
238
240
  transform: translateY(
239
241
  calc(
240
242
  -1 * #{$spacing-05} * var(--#{$block-class}--scroll-animation-progress)
@@ -261,13 +263,12 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
261
263
  @include setCommonTitleStyles();
262
264
 
263
265
  position: absolute;
264
- /* stylelint-disable-next-line carbon/layout-token-use */
265
266
  top: 0;
266
267
  opacity: var(--#{$block-class}--scroll-animation-progress);
267
268
  }
268
269
 
269
270
  .#{$block-class}__title--no-label .#{$block-class}__collapsed-title-text {
270
- /* stylelint-disable-next-line carbon/layout-token-use */
271
+ /* stylelint-disable-next-line carbon/layout-use */
271
272
  transform: translateY(
272
273
  calc(
273
274
  #{$spacing-05} * (1 - var(--#{$block-class}--scroll-animation-progress))
@@ -409,7 +410,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
409
410
  }
410
411
  &.#{$block-class}.#{$block-class}--xs
411
412
  .#{$block-class}__actions-container.#{$action-set-block-class}--sm {
412
- @include setPanelSize(map-get($side-panel-sizes, xs));
413
+ @include setPanelSize(map.get($side-panel-sizes, xs));
413
414
  }
414
415
  }
415
416
 
@@ -453,7 +454,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
453
454
  height: 1px;
454
455
  padding: 0;
455
456
  border: 0;
456
- // stylelint-disable-next-line carbon/layout-token-use
457
+ // stylelint-disable-next-line carbon/layout-use
457
458
  margin: -1px;
458
459
  clip: rect(0, 0, 0, 0);
459
460
  visibility: inherit;
@@ -471,6 +472,5 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
471
472
 
472
473
  .#{$block-class}--has-slug + .#{$block-class}__overlay,
473
474
  .#{$block-class}--has-ai-label + .#{$block-class}__overlay {
474
- /* stylelint-disable-next-line carbon/theme-token-use */
475
475
  background-color: $ai-overlay;
476
476
  }
@@ -5,6 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use 'sass:map';
9
+
8
10
  // Standard imports.
9
11
  @use '@carbon/react/scss/colors' as *;
10
12
  @use '../../global/styles/project-settings' as *;
@@ -74,8 +76,8 @@ $themes: ('light', 'dark');
74
76
  $block-class: #{$pkg-prefix}--status-icon;
75
77
 
76
78
  @function carbon-clr($name, $theme: light) {
77
- // stylelint-disable-next-line carbon/theme-token-use
78
- $color: map-get(map-get($colors, $name), $theme);
79
+ // stylelint-disable-next-line carbon/theme-use
80
+ $color: map.get(map.get($colors, $name), $theme);
79
81
  @return $color;
80
82
  }
81
83
 
@@ -96,7 +98,7 @@ $block-class: #{$pkg-prefix}--status-icon;
96
98
 
97
99
  .#{$block-class}--light.#{$block-class}--light-minor-warning,
98
100
  .#{$block-class}--dark.#{$block-class}--dark-minor-warning {
99
- // stylelint-disable-next-line carbon/theme-token-use
101
+ // stylelint-disable-next-line carbon/theme-use
100
102
  fill: $yellow-20;
101
103
  }
102
104
 
@@ -106,7 +108,7 @@ $block-class: #{$pkg-prefix}--status-icon;
106
108
  .#{$block-class}--light.#{$block-class}--light-minor-warning
107
109
  path:nth-of-type(1),
108
110
  .#{$block-class}--dark.#{$block-class}--dark-minor-warning path:nth-of-type(1) {
109
- // stylelint-disable-next-line carbon/theme-token-use
111
+ // stylelint-disable-next-line carbon/theme-use
110
112
  fill: $gray-100;
111
113
  }
112
114
 
@@ -124,13 +126,13 @@ $block-class: #{$pkg-prefix}--status-icon;
124
126
  }
125
127
  // stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
126
128
  animation: rotating 8000ms infinite linear;
127
- // stylelint-disable-next-line carbon/theme-token-use
129
+ // stylelint-disable-next-line carbon/theme-use
128
130
  fill: carbon-clr($icon, $theme);
129
131
  } @else if $icon == running {
130
- // stylelint-disable-next-line carbon/theme-token-use
132
+ // stylelint-disable-next-line carbon/theme-use
131
133
  fill: carbon-clr($icon, $theme);
132
134
  } @else {
133
- // stylelint-disable-next-line carbon/theme-token-use
135
+ // stylelint-disable-next-line carbon/theme-use
134
136
  fill: carbon-clr($icon, $theme);
135
137
  @media (prefers-reduced-motion) {
136
138
  .#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-in-progress {
@@ -5,7 +5,7 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- /* stylelint-disable carbon/layout-token-use */
8
+ /* stylelint-disable carbon/layout-use */
9
9
  /* stylelint-disable function-no-unknown */
10
10
 
11
11
  // Standard imports.
@@ -22,7 +22,7 @@
22
22
 
23
23
  $block-class: #{$pkg-prefix}--tearsheet;
24
24
 
25
- // stylelint-disable-next-line carbon/theme-token-use
25
+ // stylelint-disable-next-line carbon/theme-use
26
26
  $motion-duration: $duration-moderate-02;
27
27
 
28
28
  @include block-wrap($block-class) {
@@ -105,7 +105,7 @@ $motion-duration: $duration-moderate-02;
105
105
  // viewport, capped at 500px to set an upper limit on the movement speed
106
106
  // For the reason for calc() see https://github.com/sass/sass/issues/2849
107
107
  // and https://github.com/sass/node-sass/issues/2815.
108
- // stylelint-disable-next-line carbon/layout-token-use
108
+ // stylelint-disable-next-line carbon/layout-use
109
109
  transform: translate3d(0, calc(min(95vh, 500px)), 0);
110
110
  }
111
111
 
@@ -289,7 +289,7 @@ $motion-duration: $duration-moderate-02;
289
289
  &.#{$block-class}--wide.#{$block-class}--has-ai-label
290
290
  .#{$block-class}__header.#{$block-class}__header--with-close-icon {
291
291
  /* spacing 11 plus additional space for slug/close */
292
- /* stylelint-disable-next-line carbon/layout-token-use */
292
+ /* stylelint-disable-next-line carbon/layout-use */
293
293
  padding-inline-end: calc(#{$spacing-11 + $spacing-09});
294
294
  }
295
295
 
@@ -427,7 +427,6 @@ $motion-duration: $duration-moderate-02;
427
427
 
428
428
  &.#{$block-class}--has-slug,
429
429
  &.#{$block-class}--has-ai-label {
430
- /* stylelint-disable-next-line carbon/theme-token-use */
431
430
  --overlay-color: #{$ai-overlay};
432
431
  }
433
432
 
@@ -436,7 +435,8 @@ $motion-duration: $duration-moderate-02;
436
435
  &.#{$block-class}--has-ai-label:not(.#{$block-class}--has-close)
437
436
  .#{$carbon-prefix}--slug {
438
437
  inset-inline-end: 0;
438
+ /* stylelint-disable-next-line carbon/layout-use */
439
439
  margin-block: 6px;
440
- margin-inline-end: 1rem;
440
+ margin-inline-end: $spacing-05;
441
441
  }
442
442
  }
@@ -5,6 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use 'sass:map';
9
+
8
10
  // Standard imports.
9
11
  @use '../../global/styles/project-settings' as *;
10
12
  @use '../../global/styles/mixins';
@@ -34,7 +36,7 @@ $sizes: (
34
36
  );
35
37
 
36
38
  @mixin size($size) {
37
- $_size: map-get($sizes, $size);
39
+ $_size: map.get($sizes, $size);
38
40
 
39
41
  width: $_size;
40
42
  height: $_size;
@@ -60,7 +62,7 @@ $sizes: (
60
62
 
61
63
  .#{$block-class}__tooltip {
62
64
  &:focus-within .#{$block-class} {
63
- // stylelint-disable-next-line carbon/theme-token-use
65
+ // stylelint-disable-next-line carbon/theme-use
64
66
  outline: 2px solid $focus;
65
67
  outline-offset: 1px;
66
68
  }
@@ -72,7 +74,7 @@ $sizes: (
72
74
  }
73
75
 
74
76
  @mixin setBgColor($color) {
75
- // stylelint-disable-next-line carbon/theme-token-use
77
+ // stylelint-disable-next-line carbon/theme-use
76
78
  background-color: $color;
77
79
  }
78
80
 
@@ -5,6 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use 'sass:map';
9
+
8
10
  // Standard imports.
9
11
  @use '@carbon/styles/scss/theme' as *;
10
12
  @use '@carbon/styles/scss/spacing' as *;
@@ -24,7 +26,7 @@ $sizes: (
24
26
  );
25
27
 
26
28
  @mixin size($size) {
27
- $_size: map-get($sizes, $size);
29
+ $_size: map.get($sizes, $size);
28
30
 
29
31
  width: $_size;
30
32
  height: $_size;
@@ -45,9 +47,9 @@ $themes: (
45
47
  $theme-keys: map-keys($themes);
46
48
 
47
49
  @function carbon-get-background-color($color, $key, $contrast-key) {
48
- @return map-get(
50
+ @return map.get(
49
51
  $carbon-colors,
50
- #{$color}#{map-get(map-get($themes, $key), #{$contrast-key}-contrast)}
52
+ #{$color}#{map.get(map.get($themes, $key), #{$contrast-key}-contrast)}
51
53
  );
52
54
  }
53
55
 
@@ -58,7 +60,7 @@ $theme-keys: map-keys($themes);
58
60
  @each $color in $base-colors {
59
61
  @each $contrast-key in $theme-keys {
60
62
  .#{$block-class}--#{$key}.#{$block-class}--#{$contrast-key}-#{$color} {
61
- // stylelint-disable-next-line carbon/theme-token-use
63
+ // stylelint-disable-next-line carbon/theme-use
62
64
  background-color: carbon-get-background-color(
63
65
  $color,
64
66
  $key,
@@ -18,7 +18,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
18
18
  @keyframes web-terminal-entrance {
19
19
  from {
20
20
  opacity: 0;
21
- // stylelint-disable-next-line carbon/layout-token-use
21
+ // stylelint-disable-next-line carbon/layout-use
22
22
  transform: translateX(#{$web-terminal-width});
23
23
  }
24
24
 
@@ -36,7 +36,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
36
36
 
37
37
  to {
38
38
  opacity: 0;
39
- // stylelint-disable-next-line carbon/layout-token-use
39
+ // stylelint-disable-next-line carbon/layout-use
40
40
  transform: translateX(#{$web-terminal-width});
41
41
  }
42
42
  }