@carbon/ibm-products-styles 2.74.0 → 2.75.0-rc.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/css/index-full-carbon.css +2342 -1239
- 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 +450 -98
- 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 +624 -247
- 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 +1759 -873
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/package.json +9 -9
- package/scss/components/FilterSummary/_filter-summary.scss +1 -1
- package/scss/components/PageHeader/_page-header.scss +4 -0
- package/scss/components/SidePanel/_side-panel.scss +5 -5
- package/scss/components/TagOverflow/_tag-overflow.scss +38 -38
- package/scss/components/TagSet/_tag-set.scss +28 -12
- package/scss/components/Tearsheet/_tearsheet.scss +8 -1
- package/scss/components/Tearsheet/_tearsheet_next.scss +408 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibm-products-styles",
|
|
3
3
|
"description": "Carbon for IBM Products styles",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.75.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"installConfig": {
|
|
7
7
|
"hoistingLimits": "none"
|
|
@@ -49,22 +49,22 @@
|
|
|
49
49
|
"cross-env": "^10.0.0",
|
|
50
50
|
"glob": "^11.0.1",
|
|
51
51
|
"jest": "^29.7.0",
|
|
52
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
|
52
|
+
"jest-config-ibm-cloud-cognitive": "^1.38.0-rc.0",
|
|
53
53
|
"jest-environment-jsdom": "^29.7.0",
|
|
54
54
|
"npm-run-all2": "^8.0.0",
|
|
55
55
|
"rimraf": "^6.0.1",
|
|
56
|
-
"sass": "^1.
|
|
56
|
+
"sass": "^1.93.2",
|
|
57
57
|
"yargs": "^18.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@carbon/grid": "^11.
|
|
61
|
-
"@carbon/layout": "^11.
|
|
62
|
-
"@carbon/motion": "^11.
|
|
63
|
-
"@carbon/themes": "^11.
|
|
64
|
-
"@carbon/type": "^11.
|
|
60
|
+
"@carbon/grid": "^11.44.0",
|
|
61
|
+
"@carbon/layout": "^11.42.0",
|
|
62
|
+
"@carbon/motion": "^11.36.0",
|
|
63
|
+
"@carbon/themes": "^11.61.0",
|
|
64
|
+
"@carbon/type": "^11.48.0"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@ibm/telemetry-js": "^1.9.1"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "5d7a0eb6f0a6d4d7f0b909f3541aa46c856d54df"
|
|
70
70
|
}
|
|
@@ -20,7 +20,7 @@ $block-class: #{$pkg-prefix}--filter-summary;
|
|
|
20
20
|
|
|
21
21
|
.#{$block-class} {
|
|
22
22
|
display: flex;
|
|
23
|
-
align-items:
|
|
23
|
+
align-items: center;
|
|
24
24
|
padding: $spacing-03;
|
|
25
25
|
background: $layer-01;
|
|
26
26
|
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
|
@@ -45,7 +45,7 @@ $clabs-prefix: 'clabs';
|
|
|
45
45
|
|
|
46
46
|
@mixin setDividerStyles() {
|
|
47
47
|
position: absolute;
|
|
48
|
-
background-color: $border-subtle-
|
|
48
|
+
background-color: $border-subtle-01;
|
|
49
49
|
block-size: 1px;
|
|
50
50
|
content: '';
|
|
51
51
|
inline-size: 100%;
|
|
@@ -198,7 +198,7 @@ $clabs-prefix: 'clabs';
|
|
|
198
198
|
inline-size: 100%;
|
|
199
199
|
}
|
|
200
200
|
&.#{$block-class}--right-placement {
|
|
201
|
-
border-inline-start: 1px solid $border-subtle-
|
|
201
|
+
border-inline-start: 1px solid $border-subtle-01;
|
|
202
202
|
inset-inline-end: 0;
|
|
203
203
|
}
|
|
204
204
|
&.#{$block-class}--left-placement {
|
|
@@ -221,7 +221,7 @@ $clabs-prefix: 'clabs';
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
border-inline-end: 1px solid $border-subtle-
|
|
224
|
+
border-inline-end: 1px solid $border-subtle-01;
|
|
225
225
|
inset-inline-start: 0;
|
|
226
226
|
}
|
|
227
227
|
&.#{$block-class}.#{$block-class}--has-slug,
|
|
@@ -325,7 +325,7 @@ $clabs-prefix: 'clabs';
|
|
|
325
325
|
|
|
326
326
|
&.#{$block-class}__header--reduced-motion {
|
|
327
327
|
z-index: 5;
|
|
328
|
-
border-block-end: 1px solid $border-subtle-
|
|
328
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
329
329
|
margin-block-end: $spacing-05;
|
|
330
330
|
}
|
|
331
331
|
|
|
@@ -542,7 +542,7 @@ $clabs-prefix: 'clabs';
|
|
|
542
542
|
.#{$block-class}__actions-container {
|
|
543
543
|
position: sticky; // stick to bottom
|
|
544
544
|
background-color: $layer-01;
|
|
545
|
-
border-block-start: 1px solid $border-subtle-
|
|
545
|
+
border-block-start: 1px solid $border-subtle-01;
|
|
546
546
|
inset-block-end: 0;
|
|
547
547
|
|
|
548
548
|
&.#{$action-set-block-class}--2xl {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
// Standard imports.
|
|
9
|
-
@use '../../global/styles/project-settings' as
|
|
9
|
+
@use '../../global/styles/project-settings' as *;
|
|
10
10
|
@use '../../global/styles/mixins';
|
|
11
11
|
@use '@carbon/styles/scss/spacing' as *;
|
|
12
12
|
@use '@carbon/styles/scss/breakpoint' as *;
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
// TODO: @use(s) of IBM Products component styles used by TagOverflow
|
|
23
23
|
|
|
24
24
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
|
25
|
-
$block-class: #{
|
|
26
|
-
$block-class-
|
|
25
|
+
$block-class: #{$pkg-prefix}--tag-overflow;
|
|
26
|
+
$block-class-popover: #{$block-class}-popover;
|
|
27
27
|
$block-class-modal: #{$block-class}-modal;
|
|
28
28
|
|
|
29
29
|
.#{$block-class}__visible-tags {
|
|
@@ -42,12 +42,10 @@ $block-class-modal: #{$block-class}-modal;
|
|
|
42
42
|
flex-wrap: wrap;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.#{$block-class}__item {
|
|
46
|
-
margin: $spacing-01;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
45
|
.#{$block-class}__item--tag {
|
|
50
46
|
border: none;
|
|
47
|
+
margin-block-end: $spacing-03;
|
|
48
|
+
margin-inline-end: $spacing-03;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.#{$block-class}__item--tag span {
|
|
@@ -63,59 +61,58 @@ $block-class-modal: #{$block-class}-modal;
|
|
|
63
61
|
max-inline-size: $spacing-09;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
.#{
|
|
67
|
-
.#{c4p-settings.$carbon-prefix}--popover-content {
|
|
64
|
+
.#{$carbon-prefix}--popover .#{$carbon-prefix}--popover-content {
|
|
68
65
|
white-space: normal;
|
|
69
66
|
}
|
|
70
67
|
|
|
71
|
-
.#{$block-class-
|
|
68
|
+
.#{$block-class-popover} {
|
|
72
69
|
display: inline-block;
|
|
73
70
|
vertical-align: bottom;
|
|
74
|
-
|
|
71
|
+
|
|
72
|
+
.#{$carbon-prefix}--tag.#{$carbon-prefix}--tag--interactive {
|
|
75
73
|
border: 0;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
|
-
.#{
|
|
79
|
-
.#{c4p-settings.$carbon-prefix}--popover-content {
|
|
76
|
+
.#{$carbon-prefix}--popover .#{$carbon-prefix}--popover-content {
|
|
80
77
|
padding: $spacing-05;
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
80
|
|
|
84
|
-
.#{$block-class-
|
|
81
|
+
.#{$block-class-popover}--hidden {
|
|
85
82
|
overflow: hidden;
|
|
86
83
|
max-inline-size: 0;
|
|
87
84
|
visibility: hidden;
|
|
88
85
|
}
|
|
89
86
|
|
|
90
|
-
@include mixins.block-wrap('#{$block-class-
|
|
91
|
-
&.#{$block-class-
|
|
87
|
+
@include mixins.block-wrap('#{$block-class-popover}__el') {
|
|
88
|
+
&.#{$block-class-popover}__el {
|
|
92
89
|
// removes the min width in Carbon
|
|
93
90
|
min-inline-size: initial;
|
|
94
91
|
text-align: start;
|
|
95
92
|
}
|
|
96
93
|
|
|
97
|
-
.#{$block-class-
|
|
94
|
+
.#{$block-class-popover}__trigger {
|
|
98
95
|
/* stylelint-disable-next-line declaration-no-important */
|
|
99
96
|
border: none !important;
|
|
100
97
|
font-family: inherit;
|
|
101
98
|
}
|
|
102
99
|
|
|
103
|
-
.#{
|
|
104
|
-
.#{
|
|
105
|
-
.#{
|
|
100
|
+
.#{$carbon-prefix}--link:active,
|
|
101
|
+
.#{$carbon-prefix}--link:active:visited,
|
|
102
|
+
.#{$carbon-prefix}--link:active:visited:hover {
|
|
106
103
|
color: $text-inverse;
|
|
107
104
|
}
|
|
108
105
|
|
|
109
|
-
.#{$block-class-
|
|
106
|
+
.#{$block-class-popover}__tag-list {
|
|
110
107
|
display: flex;
|
|
111
108
|
flex-direction: column;
|
|
112
109
|
}
|
|
113
110
|
|
|
114
|
-
.#{$block-class-
|
|
111
|
+
.#{$block-class-popover}__show-all-tags-link {
|
|
115
112
|
color: $link-inverse;
|
|
116
|
-
margin-block-start: $spacing-03;
|
|
117
113
|
|
|
118
|
-
&:hover
|
|
114
|
+
&:hover,
|
|
115
|
+
&:visited:hover {
|
|
119
116
|
color: $link-inverse-hover;
|
|
120
117
|
}
|
|
121
118
|
|
|
@@ -128,14 +125,14 @@ $block-class-modal: #{$block-class}-modal;
|
|
|
128
125
|
}
|
|
129
126
|
}
|
|
130
127
|
|
|
131
|
-
.#{$block-class-
|
|
132
|
-
.#{
|
|
128
|
+
.#{$block-class-popover}__tag-item.#{$block-class-popover}__tag-item--tag
|
|
129
|
+
.#{$carbon-prefix}--tag {
|
|
133
130
|
background-color: $background-inverse-hover;
|
|
134
131
|
}
|
|
135
132
|
|
|
136
|
-
.#{$block-class-
|
|
137
|
-
.#{$block-class-
|
|
138
|
-
.#{
|
|
133
|
+
.#{$block-class-popover}__tag-item.#{$block-class-popover}__tag-item--default,
|
|
134
|
+
.#{$block-class-popover}__tag-item.#{$block-class-popover}__tag-item--default
|
|
135
|
+
.#{$carbon-prefix}--tag {
|
|
139
136
|
@include type.type-style('body-compact-01');
|
|
140
137
|
|
|
141
138
|
display: block;
|
|
@@ -149,25 +146,21 @@ $block-class-modal: #{$block-class}-modal;
|
|
|
149
146
|
min-inline-size: initial;
|
|
150
147
|
}
|
|
151
148
|
|
|
152
|
-
.#{$block-class-
|
|
153
|
-
.#{
|
|
154
|
-
// undo override by .#{c4p-settings.$carbon-prefix}--tooltip button
|
|
149
|
+
.#{$block-class-popover}__tag .#{$carbon-prefix}--tag__close-icon {
|
|
150
|
+
// undo override by .#{$carbon-prefix}--tooltip button
|
|
155
151
|
padding: 0;
|
|
156
152
|
}
|
|
157
153
|
|
|
158
|
-
.#{$block-class-
|
|
159
|
-
.#{c4p-settings.$carbon-prefix}--tag--high-contrast {
|
|
154
|
+
.#{$block-class-popover}__tag .#{$carbon-prefix}--tag--high-contrast {
|
|
160
155
|
background-color: $background;
|
|
161
156
|
color: $text-primary;
|
|
162
157
|
}
|
|
163
158
|
|
|
164
|
-
.#{$block-class-
|
|
165
|
-
.#{c4p-settings.$carbon-prefix}--tag__close-icon:hover {
|
|
159
|
+
.#{$block-class-popover}__tag .#{$carbon-prefix}--tag__close-icon:hover {
|
|
166
160
|
background-color: $background-hover;
|
|
167
161
|
}
|
|
168
162
|
|
|
169
|
-
.#{$block-class-
|
|
170
|
-
.#{c4p-settings.$carbon-prefix}--tag__close-icon:focus {
|
|
163
|
+
.#{$block-class-popover}__tag .#{$carbon-prefix}--tag__close-icon:focus {
|
|
171
164
|
box-shadow: inset 0 0 0 $spacing-01 $focus;
|
|
172
165
|
}
|
|
173
166
|
}
|
|
@@ -194,4 +187,11 @@ $block-class-modal: #{$block-class}-modal;
|
|
|
194
187
|
margin-inline-end: $spacing-05;
|
|
195
188
|
padding-inline-end: 0;
|
|
196
189
|
}
|
|
190
|
+
|
|
191
|
+
.#{$block-class-modal}__body {
|
|
192
|
+
.#{$carbon-prefix}--tag {
|
|
193
|
+
margin-block-end: $spacing-03;
|
|
194
|
+
margin-inline-end: $spacing-03;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
197
|
}
|
|
@@ -13,41 +13,41 @@
|
|
|
13
13
|
@use '../../global/styles/project-settings' as *;
|
|
14
14
|
@use '../../global/styles/mixins' as *;
|
|
15
15
|
|
|
16
|
-
$
|
|
17
|
-
$block-class-overflow: #{$
|
|
18
|
-
$block-class-modal: #{$
|
|
16
|
+
$block-class: #{$pkg-prefix}--tag-set;
|
|
17
|
+
$block-class-overflow: #{$block-class}-overflow;
|
|
18
|
+
$block-class-modal: #{$block-class}-modal;
|
|
19
19
|
|
|
20
|
-
@include block-wrap($
|
|
21
|
-
&.#{$
|
|
20
|
+
@include block-wrap($block-class) {
|
|
21
|
+
&.#{$block-class} {
|
|
22
22
|
display: block;
|
|
23
23
|
inline-size: 100%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.#{$
|
|
26
|
+
.#{$block-class}__space {
|
|
27
27
|
position: relative;
|
|
28
28
|
display: block;
|
|
29
29
|
inline-size: 100%;
|
|
30
30
|
white-space: nowrap;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.#{$
|
|
33
|
+
.#{$block-class}__space--align-end {
|
|
34
34
|
text-align: end;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.#{$
|
|
37
|
+
.#{$block-class}__space--align-center {
|
|
38
38
|
text-align: center;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.#{$
|
|
41
|
+
.#{$block-class}__tag-container {
|
|
42
42
|
display: inline-flex; // needed to register a width
|
|
43
43
|
white-space: nowrap;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.#{$
|
|
46
|
+
.#{$block-class}__tag-container--multiline {
|
|
47
47
|
flex-wrap: wrap;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.#{$
|
|
50
|
+
.#{$block-class}__tag-container--hidden {
|
|
51
51
|
// This tag container is used to measure the width of all displayable tags
|
|
52
52
|
@include measuring-container;
|
|
53
53
|
}
|
|
@@ -69,6 +69,11 @@ $block-class-modal: #{$_block-class}-modal;
|
|
|
69
69
|
max-inline-size: 0;
|
|
70
70
|
visibility: hidden;
|
|
71
71
|
}
|
|
72
|
+
|
|
73
|
+
.#{$carbon-prefix}--tag {
|
|
74
|
+
margin-block-end: $spacing-03;
|
|
75
|
+
margin-inline-end: $spacing-03;
|
|
76
|
+
}
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
@include block-wrap('#{$block-class-modal}') {
|
|
@@ -93,6 +98,13 @@ $block-class-modal: #{$_block-class}-modal;
|
|
|
93
98
|
margin-inline-end: $spacing-05;
|
|
94
99
|
padding-inline-end: 0;
|
|
95
100
|
}
|
|
101
|
+
|
|
102
|
+
.#{$block-class-modal}__body {
|
|
103
|
+
.#{$carbon-prefix}--tag {
|
|
104
|
+
margin-block-end: $spacing-03;
|
|
105
|
+
margin-inline-end: $spacing-03;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
96
108
|
}
|
|
97
109
|
|
|
98
110
|
@include block-wrap('#{$block-class-overflow}__tagset-popover') {
|
|
@@ -117,7 +129,8 @@ $block-class-modal: #{$_block-class}-modal;
|
|
|
117
129
|
color: $link-inverse;
|
|
118
130
|
margin-block-start: $spacing-03;
|
|
119
131
|
|
|
120
|
-
&:hover
|
|
132
|
+
&:hover,
|
|
133
|
+
&:visited:hover {
|
|
121
134
|
color: $link-inverse-hover;
|
|
122
135
|
}
|
|
123
136
|
|
|
@@ -133,6 +146,9 @@ $block-class-modal: #{$_block-class}-modal;
|
|
|
133
146
|
.#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--tag
|
|
134
147
|
.#{$carbon-prefix}--tag {
|
|
135
148
|
background-color: $background-inverse-hover;
|
|
149
|
+
// This adds spacing only for the overflow menu
|
|
150
|
+
// listing "tags" as opposed to just "labels".
|
|
151
|
+
margin-block-end: $spacing-01;
|
|
136
152
|
}
|
|
137
153
|
|
|
138
154
|
.#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--default,
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
// ActionSet
|
|
23
23
|
@use '../ActionSet/action-set';
|
|
24
24
|
|
|
25
|
+
@use './tearsheet_next';
|
|
26
|
+
|
|
25
27
|
$block-class: #{$pkg-prefix}--tearsheet;
|
|
26
28
|
|
|
27
29
|
// stylelint-disable-next-line carbon/theme-use
|
|
@@ -208,8 +210,11 @@ $motion-duration: $duration-moderate-02;
|
|
|
208
210
|
transform: scale(var(--#{$block-class}--stacking-scale-factor-double));
|
|
209
211
|
}
|
|
210
212
|
|
|
213
|
+
.#{$block-class}__header {
|
|
214
|
+
min-block-size: fit-content;
|
|
215
|
+
}
|
|
216
|
+
|
|
211
217
|
&.#{$block-class}--wide .#{$block-class}__header {
|
|
212
|
-
overflow: visible;
|
|
213
218
|
padding: $spacing-06 $spacing-07;
|
|
214
219
|
margin: 0;
|
|
215
220
|
background-color: $layer;
|
|
@@ -311,6 +316,7 @@ $motion-duration: $duration-moderate-02;
|
|
|
311
316
|
|
|
312
317
|
&.#{$block-class} .#{$block-class}__body {
|
|
313
318
|
display: flex;
|
|
319
|
+
overflow: hidden;
|
|
314
320
|
flex-direction: row;
|
|
315
321
|
padding: 0;
|
|
316
322
|
margin: 0;
|
|
@@ -418,6 +424,7 @@ $motion-duration: $duration-moderate-02;
|
|
|
418
424
|
.#{$block-class}__button-container {
|
|
419
425
|
grid-column: 1 / -1;
|
|
420
426
|
grid-row: -1 / -1;
|
|
427
|
+
min-block-size: fit-content;
|
|
421
428
|
overflow-x: auto;
|
|
422
429
|
@supports (overflow-inline: auto) {
|
|
423
430
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|