@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.
- package/custom-elements.json +6 -0
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/coachmark/coachmark-header.js +6 -1
- package/es/components/coachmark/coachmark-header.js.map +1 -1
- package/es/components/coachmark/coachmark.d.ts +7 -0
- package/es/components/coachmark/coachmark.js +21 -1
- package/es/components/coachmark/coachmark.js.map +1 -1
- package/es/components/coachmark/coachmark.scss.js +1 -1
- package/es/components/notification-panel/notification-footer.scss.js +1 -1
- package/es/components/notification-panel/notification-panel.scss.js +1 -1
- package/es/components/notification-panel/notification.scss.js +1 -1
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
- package/es/components/page-header/page-header.figma.js +248 -0
- package/es/components/page-header/page-header.figma.js.map +1 -0
- package/es/components/page-header/utils.js +6 -0
- package/es/components/page-header/utils.js.map +1 -1
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/packages/ibm-products-web-components/package.json.js +1 -1
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/coachmark/coachmark-header.js +6 -1
- package/es-custom/components/coachmark/coachmark-header.js.map +1 -1
- package/es-custom/components/coachmark/coachmark.d.ts +7 -0
- package/es-custom/components/coachmark/coachmark.js +21 -1
- package/es-custom/components/coachmark/coachmark.js.map +1 -1
- package/es-custom/components/coachmark/coachmark.scss.js +1 -1
- package/es-custom/components/notification-panel/notification-footer.scss.js +1 -1
- package/es-custom/components/notification-panel/notification-panel.scss.js +1 -1
- package/es-custom/components/notification-panel/notification.scss.js +1 -1
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
- package/es-custom/components/page-header/page-header.figma.js +248 -0
- package/es-custom/components/page-header/page-header.figma.js.map +1 -0
- package/es-custom/components/page-header/utils.js +6 -0
- package/es-custom/components/page-header/utils.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.scss.js +1 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
- package/lib/components/coachmark/coachmark.d.ts +7 -0
- package/package.json +16 -16
- package/scss/components/about-modal/about-modal.scss +9 -10
- package/scss/components/coachmark/coachmark.scss +4 -0
- package/scss/components/full-page-error/full-page-error.scss +0 -1
- package/scss/components/options-tile/options-tile.scss +1 -1
- package/scss/components/side-panel/side-panel.scss +16 -15
- package/scss/components/tearsheet/tearsheet.scss +38 -35
- package/scss/components/truncated-text/truncated-text.scss +9 -9
- package/scss/components/user-avatar/user-avatar.scss +0 -1
- package/telemetry.yml +1 -0
|
@@ -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.
|
|
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.
|
|
59
|
-
"@carbon/ibm-products-styles": "^2.
|
|
60
|
-
"@carbon/styles": "^1.
|
|
61
|
-
"@carbon/utilities": "^0.
|
|
62
|
-
"@carbon/web-components": "2.
|
|
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.
|
|
73
|
-
"@carbon/icons": "^11.
|
|
74
|
-
"@carbon/motion": "^11.
|
|
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.
|
|
87
|
-
"@storybook/addon-docs": "^9.1.
|
|
88
|
-
"@storybook/addon-links": "^9.1.
|
|
89
|
-
"@storybook/web-components-vite": "^9.1.
|
|
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.
|
|
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": "
|
|
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": "
|
|
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
|
-
#{
|
|
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
|
-
#{
|
|
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 .#{
|
|
52
|
+
@extend .#{carbon-config.$prefix}--modal-scroll-content;
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
#{
|
|
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
|
-
#{
|
|
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
|
-
#{
|
|
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
|
-
#{
|
|
96
|
+
#{carbon-config.$prefix}-modal-footer {
|
|
98
97
|
@include styles.theme(styles.$g100);
|
|
99
98
|
|
|
100
99
|
display: block;
|
|
@@ -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,
|
|
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 .#{
|
|
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 .#{
|
|
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 .#{
|
|
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 .#{
|
|
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'])
|
|
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(#{
|
|
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(#{
|
|
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(#{
|
|
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(#{
|
|
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(#{
|
|
276
|
+
::slotted(#{carbon-config.$prefix}-button) {
|
|
276
277
|
@extend .#{$block-class-action-set}__action-button;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
&[hidden] {
|
|
280
|
-
@extend .#{
|
|
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 .#{
|
|
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 .#{
|
|
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,
|
|
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 .#{
|
|
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 .#{
|
|
78
|
+
@extend .#{carbon-config.$prefix}--visually-hidden;
|
|
79
79
|
|
|
80
80
|
display: none;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.#{$block-class}__buttons ::slotted(#{
|
|
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
|
|
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(#{
|
|
97
|
-
@extend .#{
|
|
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(#{
|
|
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 .#{
|
|
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
|
-
.#{
|
|
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
|
-
.#{
|
|
287
|
-
.#{
|
|
288
|
-
.#{
|
|
289
|
-
.#{
|
|
290
|
-
.#{
|
|
291
|
-
.#{
|
|
292
|
-
.#{
|
|
293
|
-
.#{
|
|
294
|
-
.#{
|
|
295
|
-
.#{
|
|
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
|
-
.#{
|
|
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
|
-
.#{
|
|
305
|
-
.#{
|
|
306
|
-
.#{
|
|
307
|
-
.#{
|
|
308
|
-
.#{
|
|
309
|
-
.#{
|
|
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
|
-
.#{
|
|
312
|
-
.#{
|
|
313
|
-
.#{
|
|
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(#{
|
|
328
|
+
::slotted(#{carbon-config.$prefix}-button),
|
|
326
329
|
:host(#{$prefix}-tearsheet[width='narrow'])
|
|
327
330
|
.#{$block-class}__buttons[actions-multiple='double']
|
|
328
|
-
::slotted(#{
|
|
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(#{
|
|
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'
|
|
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:
|
|
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:
|
|
86
|
+
background-color: theme.$layer;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// Gradient LTR
|
|
90
90
|
&:dir(ltr)::before {
|
|
91
|
-
@include gradient-bg(90deg,
|
|
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,
|
|
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,
|
|
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,
|
|
104
|
+
@include gradient-bg(270deg, theme.$layer);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|