@carbon/ibm-products-web-components 0.32.0 → 0.33.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 (50) hide show
  1. package/custom-elements.json +6 -0
  2. package/es/components/about-modal/about-modal.scss.js +1 -1
  3. package/es/components/coachmark/coachmark-header.js +6 -1
  4. package/es/components/coachmark/coachmark-header.js.map +1 -1
  5. package/es/components/coachmark/coachmark.d.ts +7 -0
  6. package/es/components/coachmark/coachmark.js +21 -1
  7. package/es/components/coachmark/coachmark.js.map +1 -1
  8. package/es/components/coachmark/coachmark.scss.js +1 -1
  9. package/es/components/notification-panel/notification-footer.scss.js +1 -1
  10. package/es/components/notification-panel/notification-panel.scss.js +1 -1
  11. package/es/components/notification-panel/notification.scss.js +1 -1
  12. package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  13. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  14. package/es/components/page-header/page-header.figma.js +248 -0
  15. package/es/components/page-header/page-header.figma.js.map +1 -0
  16. package/es/components/page-header/utils.js +6 -0
  17. package/es/components/page-header/utils.js.map +1 -1
  18. package/es/components/side-panel/side-panel.scss.js +1 -1
  19. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  20. package/es/packages/ibm-products-web-components/package.json.js +1 -1
  21. package/es-custom/components/about-modal/about-modal.scss.js +1 -1
  22. package/es-custom/components/coachmark/coachmark-header.js +6 -1
  23. package/es-custom/components/coachmark/coachmark-header.js.map +1 -1
  24. package/es-custom/components/coachmark/coachmark.d.ts +7 -0
  25. package/es-custom/components/coachmark/coachmark.js +21 -1
  26. package/es-custom/components/coachmark/coachmark.js.map +1 -1
  27. package/es-custom/components/coachmark/coachmark.scss.js +1 -1
  28. package/es-custom/components/notification-panel/notification-footer.scss.js +1 -1
  29. package/es-custom/components/notification-panel/notification-panel.scss.js +1 -1
  30. package/es-custom/components/notification-panel/notification.scss.js +1 -1
  31. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  32. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  33. package/es-custom/components/page-header/page-header.figma.js +248 -0
  34. package/es-custom/components/page-header/page-header.figma.js.map +1 -0
  35. package/es-custom/components/page-header/utils.js +6 -0
  36. package/es-custom/components/page-header/utils.js.map +1 -1
  37. package/es-custom/components/side-panel/side-panel.scss.js +1 -1
  38. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  39. package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
  40. package/lib/components/coachmark/coachmark.d.ts +7 -0
  41. package/package.json +16 -16
  42. package/scss/components/about-modal/about-modal.scss +9 -10
  43. package/scss/components/coachmark/coachmark.scss +4 -0
  44. package/scss/components/full-page-error/full-page-error.scss +0 -1
  45. package/scss/components/options-tile/options-tile.scss +1 -1
  46. package/scss/components/side-panel/side-panel.scss +16 -15
  47. package/scss/components/tearsheet/tearsheet.scss +38 -35
  48. package/scss/components/truncated-text/truncated-text.scss +9 -9
  49. package/scss/components/user-avatar/user-avatar.scss +0 -1
  50. package/telemetry.yml +1 -0
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- var version = "0.32.0-rc.0";
8
+ var version = "0.33.0-rc.0";
9
9
  var packageJson = {
10
10
  version: version};
11
11
 
@@ -376,6 +376,9 @@ declare const CDSCoachmark_base: {
376
376
  /**
377
377
  * coachmark main component
378
378
  * @element c4p-coachmark
379
+ * @fires c4p-coachmark-opened
380
+ * The custom event fired when the coachmark is opened.
381
+ * This event can be used to perform actions such as focusing elements when the coachmark becomes visible.
379
382
  */
380
383
  declare class CDSCoachmark extends CDSCoachmark_base {
381
384
  /**
@@ -411,6 +414,10 @@ declare class CDSCoachmark extends CDSCoachmark_base {
411
414
  firstUpdated(): void;
412
415
  updated(changedProps: Map<string, unknown>): void;
413
416
  render(): import("lit-html").TemplateResult<1>;
417
+ /**
418
+ * The name of the custom event fired when this coachmark is opened.
419
+ */
420
+ static get eventOpen(): string;
414
421
  static styles: any;
415
422
  }
416
423
  export default CDSCoachmark;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products-web-components",
3
3
  "description": "Carbon for IBM Products Web Components",
4
- "version": "0.32.0",
4
+ "version": "0.33.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "es/index.js",
7
7
  "module": "es/index.js",
@@ -55,11 +55,11 @@
55
55
  "telemetry-config": "ibmtelemetry-config generate --wc --id 8a79d901-a9c0-4672-94a4-fa8eea139832 --endpoint https://www-api.ibm.com/ibm-telemetry/v1/metrics --files ./src/components"
56
56
  },
57
57
  "dependencies": {
58
- "@carbon-labs/wc-empty-state": "^0.11.0",
59
- "@carbon/ibm-products-styles": "^2.79.0",
60
- "@carbon/styles": "^1.96.0",
61
- "@carbon/utilities": "^0.15.0",
62
- "@carbon/web-components": "2.44.0",
58
+ "@carbon-labs/wc-empty-state": "^0.13.0",
59
+ "@carbon/ibm-products-styles": "^2.80.0",
60
+ "@carbon/styles": "^1.100.0",
61
+ "@carbon/utilities": "^0.16.0",
62
+ "@carbon/web-components": "2.48.0",
63
63
  "@figma/code-connect": "^1.3.6",
64
64
  "@ibm/telemetry-js": "^1.10.2",
65
65
  "@lit-labs/signals": "^0.1.2",
@@ -69,9 +69,9 @@
69
69
  "devDependencies": {
70
70
  "@aarsteinmedia/dotlottie-player": "^6.0.5",
71
71
  "@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
72
- "@carbon/icon-helpers": "^10.69.0",
73
- "@carbon/icons": "^11.71.0",
74
- "@carbon/motion": "^11.38.0",
72
+ "@carbon/icon-helpers": "^10.72.0",
73
+ "@carbon/icons": "^11.75.0",
74
+ "@carbon/motion": "^11.41.0",
75
75
  "@figma/code-connect": "^1.3.6",
76
76
  "@ibm/telemetry-js-config-generator": "^2.1.0",
77
77
  "@mordech/vite-lit-loader": "^0.37.0",
@@ -83,10 +83,10 @@
83
83
  "@rollup/plugin-node-resolve": "^16.0.0",
84
84
  "@rollup/plugin-typescript": "^12.1.1",
85
85
  "@stackblitz/sdk": "^1.11.0",
86
- "@storybook/addon-a11y": "^9.1.10",
87
- "@storybook/addon-docs": "^9.1.10",
88
- "@storybook/addon-links": "^9.1.10",
89
- "@storybook/web-components-vite": "^9.1.10",
86
+ "@storybook/addon-a11y": "^9.1.15",
87
+ "@storybook/addon-docs": "^9.1.15",
88
+ "@storybook/addon-links": "^9.1.15",
89
+ "@storybook/web-components-vite": "^9.1.15",
90
90
  "@types/jest": "^29.5.13",
91
91
  "@vitest/browser": "^3.2.0",
92
92
  "@vitest/coverage-v8": "^3.2.0",
@@ -104,14 +104,14 @@
104
104
  "rollup": "^4.27.3",
105
105
  "rollup-plugin-copy": "^3.5.0",
106
106
  "sass": "^1.93.2",
107
- "storybook": "^9.1.10",
107
+ "storybook": "^9.1.15",
108
108
  "storybook-addon-accessibility-checker": ">=9.2.0-rc.0",
109
109
  "tslib": "^2.8.1",
110
110
  "typescript": "^5.5.3",
111
- "vite": "^7.0.0",
111
+ "vite": "npm:rolldown-vite@latest",
112
112
  "vite-tsconfig-paths": "^5.1.4",
113
113
  "vitest": "^3.2.0",
114
114
  "web-component-analyzer": "2.0.0"
115
115
  },
116
- "gitHead": "30bb896c821dbc206f87874b66b97e3121efe15a"
116
+ "gitHead": "7b0c5737d123755ee2ed937568fcd568e9c76b3f"
117
117
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright IBM Corp. 2025
2
+ * Copyright IBM Corp. 2025, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -11,7 +11,7 @@ $css--plex: true !default;
11
11
  @use '@carbon/styles' as styles;
12
12
  @use '@carbon/styles/scss/reset';
13
13
  @use '@carbon/styles/scss/breakpoint' as *;
14
- @use '@carbon/styles/scss/config' as *;
14
+ @use '@carbon/styles/scss/config' as carbon-config;
15
15
  @use '@carbon/styles/scss/motion' as *;
16
16
  @use '@carbon/styles/scss/spacing' as *;
17
17
  @use '@carbon/themes/scss/themes';
@@ -24,7 +24,6 @@ $css--plex: true !default;
24
24
  @use 'sass:map';
25
25
 
26
26
  $prefix: 'c4p';
27
- $carbon-prefix: 'cds';
28
27
 
29
28
  @use '@carbon/ibm-products-styles/scss/components/AboutModal/index' as *;
30
29
 
@@ -32,12 +31,12 @@ $carbon-prefix: 'cds';
32
31
  .#{$prefix}--about-modal__logo {
33
32
  margin: $spacing-05 $spacing-05 $spacing-07 $spacing-05;
34
33
  }
35
- #{$carbon-prefix}-modal-header {
34
+ #{carbon-config.$prefix}-modal-header {
36
35
  padding: 0 20% 0 $spacing-05;
37
36
  grid-row: auto;
38
37
  margin-block-end: 0;
39
38
  }
40
- #{$carbon-prefix}-modal-body {
39
+ #{carbon-config.$prefix}-modal-body {
41
40
  @include type.type-style('body-compact-02');
42
41
 
43
42
  overflow: hidden auto;
@@ -50,11 +49,11 @@ $carbon-prefix: 'cds';
50
49
  padding-block-end: 0;
51
50
  }
52
51
  &.#{$prefix}--about-modal-scroll-content {
53
- @extend .#{$carbon-prefix}--modal-scroll-content;
52
+ @extend .#{carbon-config.$prefix}--modal-scroll-content;
54
53
  }
55
54
  }
56
55
 
57
- #{$carbon-prefix}-modal-heading {
56
+ #{carbon-config.$prefix}-modal-heading {
58
57
  @include type.type-style('heading-04');
59
58
 
60
59
  color: $text-primary;
@@ -81,20 +80,20 @@ $carbon-prefix: 'cds';
81
80
  .#{$prefix}--about-modal__copyright-text:first-child {
82
81
  margin-block-start: $spacing-07;
83
82
  }
84
- #{$carbon-prefix}-link {
83
+ #{carbon-config.$prefix}-link {
85
84
  display: inline-flex;
86
85
  }
87
86
  .#{$prefix}--about-modal__links-container {
88
87
  @include type.type-style('body-compact-01');
89
88
 
90
89
  margin-block-start: $spacing-06;
91
- #{$carbon-prefix}-link + #{$carbon-prefix}-link {
90
+ #{carbon-config.$prefix}-link + #{carbon-config.$prefix}-link {
92
91
  border-inline-start: 1px solid $border-strong-01;
93
92
  margin-inline-start: $spacing-03;
94
93
  padding-inline-start: $spacing-03;
95
94
  }
96
95
  }
97
- #{$carbon-prefix}-modal-footer {
96
+ #{carbon-config.$prefix}-modal-footer {
98
97
  @include styles.theme(styles.$g100);
99
98
 
100
99
  display: block;
@@ -17,6 +17,10 @@ $carbon-prefix: config.$carbon-prefix;
17
17
 
18
18
  $block-class: #{$prefix}--coachmark;
19
19
 
20
+ :host {
21
+ display: inline-block;
22
+ }
23
+
20
24
  .#{$block-class}--popover {
21
25
  position: fixed;
22
26
 
@@ -19,7 +19,6 @@ $css--plex: true !default;
19
19
 
20
20
  // Local vars
21
21
  $prefix: 'c4p';
22
- $carbon-prefix: 'cds';
23
22
  $block-class: #{$prefix}--side-panel;
24
23
 
25
24
  :host(#{$prefix}-full-page-error) {
@@ -12,9 +12,9 @@ $css--plex: true !default;
12
12
  @use '@carbon/styles/scss/spacing' as *;
13
13
  @use '@carbon/styles/scss/reset';
14
14
  @use '@carbon/styles/scss/type';
15
+ @use '@carbon/styles/scss/config' as carbon-config;
15
16
 
16
17
  $prefix: 'c4p';
17
- $carbon-prefix: 'cds';
18
18
  $block-class: #{$prefix}--options-tile;
19
19
 
20
20
  :host(#{$prefix}-options-tile) {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright IBM Corp. 2023, 2024
2
+ * Copyright IBM Corp. 2023, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -16,9 +16,9 @@ $css--plex: true !default;
16
16
  @use '@carbon/styles/scss/theme' as *;
17
17
  @use '@carbon/styles/scss/utilities/ai-gradient' as *;
18
18
  @use '@carbon/styles/scss/utilities/convert' as *;
19
+ @use '@carbon/styles/scss/config' as carbon-config;
19
20
 
20
21
  $prefix: 'c4p';
21
- $carbon-prefix: 'cds';
22
22
  @use '@carbon/ibm-products-styles/scss/components/ActionSet/index' as *;
23
23
  @use '@carbon/ibm-products-styles/scss/components/SidePanel/index' as *;
24
24
  @use '@carbon/ibm-products-styles/scss/components/SidePanel/side-panel-variables'
@@ -169,7 +169,7 @@ $block-class-action-set: #{$prefix}--action-set;
169
169
 
170
170
  .#{$block-class}__subtitle-text {
171
171
  &[hidden] {
172
- @extend .#{$carbon-prefix}--visually-hidden !optional;
172
+ @extend .#{carbon-config.$prefix}--visually-hidden !optional;
173
173
  }
174
174
  }
175
175
 
@@ -178,12 +178,12 @@ $block-class-action-set: #{$prefix}--action-set;
178
178
  padding-inline-start: 0;
179
179
 
180
180
  &[hidden] {
181
- @extend .#{$carbon-prefix}--visually-hidden !optional;
181
+ @extend .#{carbon-config.$prefix}--visually-hidden !optional;
182
182
  }
183
183
  }
184
184
 
185
185
  .#{$block-class} .#{$block-class}__action-toolbar[hidden] {
186
- @extend .#{$carbon-prefix}--visually-hidden !optional;
186
+ @extend .#{carbon-config.$prefix}--visually-hidden !optional;
187
187
  }
188
188
 
189
189
  .#{$block-class}[has-slug] {
@@ -214,14 +214,15 @@ $block-class-action-set: #{$prefix}--action-set;
214
214
  }
215
215
 
216
216
  ::slotted(#{$prefix}-button[hidden]) {
217
- @extend .#{$carbon-prefix}--visually-hidden !optional;
217
+ @extend .#{carbon-config.$prefix}--visually-hidden !optional;
218
218
 
219
219
  display: none;
220
220
  }
221
221
 
222
222
  // -1 in @container query is for 1px left border
223
223
  @container (width <= #{map.get(spv.$side-panel-sizes, lg)}) {
224
- &:not([actions-multiple='triple']) ::slotted(#{$carbon-prefix}-button) {
224
+ &:not([actions-multiple='triple'])
225
+ ::slotted(#{carbon-config.$prefix}-button) {
225
226
  // double and single on lg use 50%
226
227
  flex: 0 1 50%;
227
228
  max-inline-size: none;
@@ -232,12 +233,12 @@ $block-class-action-set: #{$prefix}--action-set;
232
233
  @container (width <= #{map.get(spv.$side-panel-sizes, md)}) {
233
234
  // md is 50% for two and 100% for one
234
235
  // column for triple
235
- &[actions-multiple] ::slotted(#{$carbon-prefix}-button) {
236
+ &[actions-multiple] ::slotted(#{carbon-config.$prefix}-button) {
236
237
  flex: 0 0 100%;
237
238
  max-inline-size: none;
238
239
  }
239
240
 
240
- &[actions-multiple='double'] ::slotted(#{$carbon-prefix}-button) {
241
+ &[actions-multiple='double'] ::slotted(#{carbon-config.$prefix}-button) {
241
242
  flex: 0 1 50%;
242
243
  max-inline-size: none;
243
244
  }
@@ -245,7 +246,7 @@ $block-class-action-set: #{$prefix}--action-set;
245
246
  &[actions-multiple='triple'] {
246
247
  --flex-direction: column;
247
248
 
248
- ::slotted(#{$carbon-prefix}-button) {
249
+ ::slotted(#{carbon-config.$prefix}-button) {
249
250
  flex: initial;
250
251
  inline-size: 100%;
251
252
  max-inline-size: none;
@@ -257,7 +258,7 @@ $block-class-action-set: #{$prefix}--action-set;
257
258
  @container (width <= #{map.get(spv.$side-panel-sizes, sm)}) {
258
259
  --flex-direction: column;
259
260
 
260
- ::slotted(#{$carbon-prefix}-button) {
261
+ ::slotted(#{carbon-config.$prefix}-button) {
261
262
  flex: initial;
262
263
  inline-size: 100%;
263
264
  max-inline-size: none;
@@ -272,12 +273,12 @@ $block-class-action-set: #{$prefix}--action-set;
272
273
  display: flex;
273
274
  inline-size: 100%;
274
275
 
275
- ::slotted(#{$carbon-prefix}-button) {
276
+ ::slotted(#{carbon-config.$prefix}-button) {
276
277
  @extend .#{$block-class-action-set}__action-button;
277
278
  }
278
279
 
279
280
  &[hidden] {
280
- @extend .#{$carbon-prefix}--visually-hidden !optional;
281
+ @extend .#{carbon-config.$prefix}--visually-hidden !optional;
281
282
 
282
283
  display: none;
283
284
  }
@@ -285,7 +286,7 @@ $block-class-action-set: #{$prefix}--action-set;
285
286
  $multiples: 'single' 'double' 'triple';
286
287
  @each $m in $multiples {
287
288
  &[actions-multiple='#{$m}'] {
288
- @extend .#{$carbon-prefix}--action-set--row-#{$m} !optional;
289
+ @extend .#{carbon-config.$prefix}--action-set--row-#{$m} !optional;
289
290
  }
290
291
  }
291
292
 
@@ -298,7 +299,7 @@ $block-class-action-set: #{$prefix}--action-set;
298
299
  }
299
300
 
300
301
  .sentinel {
301
- @extend .#{$carbon-prefix}--visually-hidden !optional;
302
+ @extend .#{carbon-config.$prefix}--visually-hidden !optional;
302
303
  }
303
304
 
304
305
  .#{$block-class}__close-button {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright IBM Corp. 2023, 2024
2
+ * Copyright IBM Corp. 2023, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -10,7 +10,6 @@ $css--plex: true !default;
10
10
  /* Other Carbon settings. */
11
11
  @use '@carbon/styles/scss/reset';
12
12
  @use '@carbon/styles/scss/breakpoint' as *;
13
- @use '@carbon/styles/scss/config' as *;
14
13
  @use '@carbon/styles/scss/motion' as *;
15
14
  @use '@carbon/styles/scss/spacing' as *;
16
15
  @use '@carbon/styles/scss/theme' as *;
@@ -19,10 +18,11 @@ $css--plex: true !default;
19
18
  @use '@carbon/styles/scss/utilities/ai-gradient' as *;
20
19
  @use '@carbon/styles/scss/components/modal' as *;
21
20
  @use '@carbon/styles/scss/utilities/convert' as *;
21
+ @use '@carbon/styles/scss/config' as carbon-config;
22
+
22
23
  @use 'sass:map';
23
24
 
24
25
  $prefix: 'c4p';
25
- $carbon-prefix: 'cds';
26
26
 
27
27
  @use '@carbon/ibm-products-styles/scss/components/Tearsheet/index' as *;
28
28
  @use '@carbon/ibm-products-styles/scss/components/ActionSet/index' as *;
@@ -34,7 +34,7 @@ $motion-duration: $duration-moderate-02;
34
34
  :host(#{$prefix}-tearsheet) {
35
35
  --content-padding: #{$spacing-05};
36
36
 
37
- @extend .#{$carbon-prefix}--modal;
37
+ @extend .#{carbon-config.$prefix}--modal;
38
38
  @extend .#{$prefix}--tearsheet;
39
39
 
40
40
  .#{$block-class}__header,
@@ -75,12 +75,12 @@ $motion-duration: $duration-moderate-02;
75
75
  }
76
76
 
77
77
  .#{$block-class}__buttons[hidden] {
78
- @extend .#{$carbon-prefix}--visually-hidden;
78
+ @extend .#{carbon-config.$prefix}--visually-hidden;
79
79
 
80
80
  display: none;
81
81
  }
82
82
 
83
- .#{$block-class}__buttons ::slotted(#{$carbon-prefix}-button) {
83
+ .#{$block-class}__buttons ::slotted(#{carbon-config.$prefix}-button) {
84
84
  @extend .#{$block-class-action-set}__action-button;
85
85
 
86
86
  flex: 0 1 25%;
@@ -88,13 +88,14 @@ $motion-duration: $duration-moderate-02;
88
88
  max-inline-size: to-rem(232px);
89
89
  }
90
90
 
91
- .#{$block-class}__buttons ::slotted(#{$carbon-prefix}-button[kind='ghost']) {
91
+ .#{$block-class}__buttons
92
+ ::slotted(#{carbon-config.$prefix}-button[kind='ghost']) {
92
93
  flex: 1 1 25%;
93
94
  max-inline-size: none;
94
95
  }
95
96
 
96
- .#{$block-class}__buttons ::slotted(#{$carbon-prefix}-button[hidden]) {
97
- @extend .#{$carbon-prefix}--visually-hidden;
97
+ .#{$block-class}__buttons ::slotted(#{carbon-config.$prefix}-button[hidden]) {
98
+ @extend .#{carbon-config.$prefix}--visually-hidden;
98
99
 
99
100
  display: none;
100
101
  }
@@ -102,8 +103,9 @@ $motion-duration: $duration-moderate-02;
102
103
  .#{$block-class}__influencer[wide] {
103
104
  @extend .#{$block-class}__influencer--wide;
104
105
  }
106
+
105
107
  ::slotted([slot='decorator']),
106
- ::slotted(#{$carbon-prefix}-slug) {
108
+ ::slotted(#{carbon-config.$prefix}-slug) {
107
109
  position: absolute;
108
110
  display: flex;
109
111
  inset-block-start: to-rem(10px);
@@ -171,7 +173,7 @@ $motion-duration: $duration-moderate-02;
171
173
  }
172
174
 
173
175
  :host(#{$prefix}-tearsheet[hidden]) {
174
- @extend .#{$carbon-prefix}--visually-hidden;
176
+ @extend .#{carbon-config.$prefix}--visually-hidden;
175
177
  }
176
178
 
177
179
  :host(#{$prefix}-tearsheet[slug]),
@@ -260,7 +262,7 @@ $motion-duration: $duration-moderate-02;
260
262
  }
261
263
  }
262
264
 
263
- .#{$carbon-prefix}--modal-header__heading.#{$block-class}__heading {
265
+ .#{carbon-config.$prefix}--modal-header__heading.#{$block-class}__heading {
264
266
  @include type.type-style('heading-04');
265
267
  }
266
268
 
@@ -283,34 +285,35 @@ $motion-duration: $duration-moderate-02;
283
285
 
284
286
  .#{$block-class}__content {
285
287
  // Revert background color overridden by Carbon's modal - https://github.com/carbon-design-system/carbon/blob/main/packages/styles/scss/components/modal/_modal.scss#L54
286
- .#{$carbon-prefix}--pagination,
287
- .#{$carbon-prefix}--pagination__control-buttons,
288
- .#{$carbon-prefix}--text-input,
289
- .#{$carbon-prefix}--text-area,
290
- .#{$carbon-prefix}--search-input,
291
- .#{$carbon-prefix}--select-input,
292
- .#{$carbon-prefix}--dropdown,
293
- .#{$carbon-prefix}--dropdown-list,
294
- .#{$carbon-prefix}--number input[type='number'],
295
- .#{$carbon-prefix}--date-picker__input {
288
+ .#{carbon-config.$prefix}--pagination,
289
+ .#{carbon-config.$prefix}--pagination__control-buttons,
290
+ .#{carbon-config.$prefix}--text-input,
291
+ .#{carbon-config.$prefix}--text-area,
292
+ .#{carbon-config.$prefix}--search-input,
293
+ .#{carbon-config.$prefix}--select-input,
294
+ .#{carbon-config.$prefix}--dropdown,
295
+ .#{carbon-config.$prefix}--dropdown-list,
296
+ .#{carbon-config.$prefix}--number input[type='number'],
297
+ .#{carbon-config.$prefix}--date-picker__input {
296
298
  background-color: $field;
297
299
  }
298
300
 
299
- .#{$carbon-prefix}--select--inline .#{$carbon-prefix}--select-input {
301
+ .#{carbon-config.$prefix}--select--inline
302
+ .#{carbon-config.$prefix}--select-input {
300
303
  background-color: transparent;
301
304
  }
302
305
 
303
306
  // and restore the 'light' prop in case light fields are wanted
304
- .#{$carbon-prefix}--text-input--light,
305
- .#{$carbon-prefix}--text-area--light,
306
- .#{$carbon-prefix}--search--light .#{$carbon-prefix}--search-input,
307
- .#{$carbon-prefix}--select--light .#{$carbon-prefix}--select-input,
308
- .#{$carbon-prefix}--dropdown--light,
309
- .#{$carbon-prefix}--dropdown--light .#{$carbon-prefix}--dropdown-list,
307
+ .#{carbon-config.$prefix}--text-input--light,
308
+ .#{carbon-config.$prefix}--text-area--light,
309
+ .#{carbon-config.$prefix}--search--light .#{carbon-config.$prefix}--search-input,
310
+ .#{carbon-config.$prefix}--select--light .#{carbon-config.$prefix}--select-input,
311
+ .#{carbon-config.$prefix}--dropdown--light,
312
+ .#{carbon-config.$prefix}--dropdown--light .#{carbon-config.$prefix}--dropdown-list,
310
313
  /* stylelint-disable-next-line prettier/prettier */
311
- .#{$carbon-prefix}--number--light input[type='number'],
312
- .#{$carbon-prefix}--date-picker--light
313
- .#{$carbon-prefix}--date-picker__input {
314
+ .#{carbon-config.$prefix}--number--light input[type='number'],
315
+ .#{carbon-config.$prefix}--date-picker--light
316
+ .#{carbon-config.$prefix}--date-picker__input {
314
317
  background-color: $field-02;
315
318
  }
316
319
  }
@@ -322,10 +325,10 @@ $motion-duration: $duration-moderate-02;
322
325
 
323
326
  :host(#{$prefix}-tearsheet[width='narrow'])
324
327
  .#{$block-class}__buttons[actions-multiple='single']
325
- ::slotted(#{$carbon-prefix}-button),
328
+ ::slotted(#{carbon-config.$prefix}-button),
326
329
  :host(#{$prefix}-tearsheet[width='narrow'])
327
330
  .#{$block-class}__buttons[actions-multiple='double']
328
- ::slotted(#{$carbon-prefix}-button) {
331
+ ::slotted(#{carbon-config.$prefix}-button) {
329
332
  // double and single on lg use 50%
330
333
  flex: 0 1 50%;
331
334
  max-inline-size: none;
@@ -333,7 +336,7 @@ $motion-duration: $duration-moderate-02;
333
336
 
334
337
  :host(#{$prefix}-tearsheet[width='narrow'])
335
338
  .#{$block-class}__buttons
336
- ::slotted(#{$carbon-prefix}-button) {
339
+ ::slotted(#{carbon-config.$prefix}-button) {
337
340
  block-size: $spacing-10;
338
341
  }
339
342
  :host(#{$prefix}-tearsheet[width='narrow']) {
@@ -10,12 +10,12 @@
10
10
  @use 'sass:map';
11
11
  @use '@carbon/styles/scss/utilities' as *;
12
12
  @use '@carbon/styles/scss/spacing' as *;
13
- @use '@carbon/styles/scss/theme' as *;
13
+ @use '@carbon/styles/scss/theme';
14
14
  @use '@carbon/styles/scss/motion' as *;
15
- @use '@carbon/styles/scss/config';
15
+ @use '@carbon/styles/scss/config' as carbon-config;
16
16
 
17
17
  $prefix: 'c4p';
18
- $carbon-prefix: config.$prefix;
18
+ $carbon-prefix: carbon-config.$prefix;
19
19
  $block-class: #{$prefix}--truncated-text;
20
20
 
21
21
  // Common reset button style
@@ -74,7 +74,7 @@ $block-class: #{$prefix}--truncated-text;
74
74
  @extend %reset-button;
75
75
 
76
76
  padding: 0 $spacing-01;
77
- color: $link-primary;
77
+ color: theme.$link-primary;
78
78
 
79
79
  &.#{$block-class}_button-hide {
80
80
  display: none;
@@ -83,25 +83,25 @@ $block-class: #{$prefix}--truncated-text;
83
83
 
84
84
  .#{$block-class}_button-expand {
85
85
  &.#{$block-class}_button-layered {
86
- background-color: $layer;
86
+ background-color: theme.$layer;
87
87
  }
88
88
 
89
89
  // Gradient LTR
90
90
  &:dir(ltr)::before {
91
- @include gradient-bg(90deg, $background);
91
+ @include gradient-bg(90deg, theme.$background);
92
92
  }
93
93
 
94
94
  &.#{$block-class}_button-layered:dir(ltr)::before {
95
- @include gradient-bg(90deg, $layer);
95
+ @include gradient-bg(90deg, theme.$layer);
96
96
  }
97
97
 
98
98
  // Gradient RTL
99
99
  &:dir(rtl)::before {
100
- @include gradient-bg(270deg, $background);
100
+ @include gradient-bg(270deg, theme.$background);
101
101
  }
102
102
 
103
103
  &.#{$block-class}_button-layered:dir(rtl)::before {
104
- @include gradient-bg(270deg, $layer);
104
+ @include gradient-bg(270deg, theme.$layer);
105
105
  }
106
106
  }
107
107
 
@@ -23,7 +23,6 @@ $css--plex: true !default;
23
23
  @use '@carbon/ibm-products-styles/scss/components/UserAvatar' as *;
24
24
 
25
25
  $prefix: 'c4p';
26
- $carbon-prefix: 'cds';
27
26
 
28
27
  $block-class: #{$prefix}--user-avatar;
29
28
 
package/telemetry.yml CHANGED
@@ -67,6 +67,7 @@ collect:
67
67
  - dropShadow
68
68
  - floating
69
69
  - highContrast
70
+ - onc4p-coachmark-opened
70
71
  - position
71
72
  # c4p-coachmark-beacon
72
73
  - expanded