@carbon/styles 1.72.0 → 1.73.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/styles.css +112 -0
- package/css/styles.min.css +1 -1
- package/package.json +3 -3
- package/scss/_zone.scss +3 -1
- package/scss/components/_index.scss +1 -0
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +14 -1
- package/scss/components/icon-indicator/_icon-indicator.scss +90 -0
- package/scss/components/icon-indicator/_index.scss +16 -0
- package/scss/components/icon-indicator/_tokens.scss +196 -0
- package/scss/components/text-area/_text-area.scss +6 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.73.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@carbon/grid": "^11.30.0",
|
|
46
46
|
"@carbon/layout": "^11.28.0",
|
|
47
47
|
"@carbon/motion": "^11.24.0",
|
|
48
|
-
"@carbon/themes": "^11.
|
|
48
|
+
"@carbon/themes": "^11.45.0",
|
|
49
49
|
"@carbon/type": "^11.34.0",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/plex-mono": "0.0.3-alpha.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "1896aed10907f83fb95b18ed87410b6ab2a3f451"
|
|
79
79
|
}
|
package/scss/_zone.scss
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
@use './components/button/tokens' as button;
|
|
18
18
|
@use './components/notification/tokens' as notification;
|
|
19
19
|
@use './components/tag/tokens' as tag;
|
|
20
|
+
@use './components/icon-indicator/tokens' as icon-indicator;
|
|
20
21
|
|
|
21
22
|
/// Specify a Map of zones where the key will be used as part of the selector
|
|
22
23
|
/// and the value will be a map used to emit CSS Custom Properties for all color
|
|
@@ -31,7 +32,8 @@ $zones: (
|
|
|
31
32
|
$-components: (
|
|
32
33
|
button.$button-tokens,
|
|
33
34
|
notification.$notification-tokens,
|
|
34
|
-
tag.$tag-tokens
|
|
35
|
+
tag.$tag-tokens,
|
|
36
|
+
icon-indicator.$status-tokens
|
|
35
37
|
);
|
|
36
38
|
|
|
37
39
|
@each $name, $theme in $zones {
|
|
@@ -399,7 +399,11 @@
|
|
|
399
399
|
border-inline-start-color: $border-subtle;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
//
|
|
402
|
+
// AI Label styles
|
|
403
|
+
.#{$prefix}--date-picker--fluid
|
|
404
|
+
.#{$prefix}--date-picker-input__wrapper--decorator
|
|
405
|
+
.#{$prefix}--date-picker-input-inner-wrapper--decorator
|
|
406
|
+
> *,
|
|
403
407
|
.#{$prefix}--date-picker--fluid
|
|
404
408
|
.#{$prefix}--date-picker-input__wrapper--slug
|
|
405
409
|
.#{$prefix}--ai-label,
|
|
@@ -439,6 +443,15 @@
|
|
|
439
443
|
border-block-end-color: $ai-border-strong;
|
|
440
444
|
}
|
|
441
445
|
|
|
446
|
+
.#{$prefix}--date-picker--fluid
|
|
447
|
+
.#{$prefix}--date-picker-input__wrapper--decorator
|
|
448
|
+
.#{$prefix}--date-picker__input,
|
|
449
|
+
.#{$prefix}--date-picker--fluid--invalid
|
|
450
|
+
.#{$prefix}--date-picker-input__wrapper--decorator
|
|
451
|
+
.#{$prefix}--date-picker__input,
|
|
452
|
+
.#{$prefix}--date-picker--fluid--warn
|
|
453
|
+
.#{$prefix}--date-picker-input__wrapper--decorator
|
|
454
|
+
.#{$prefix}--date-picker__input,
|
|
442
455
|
.#{$prefix}--date-picker--fluid
|
|
443
456
|
.#{$prefix}--date-picker-input__wrapper--slug
|
|
444
457
|
.#{$prefix}--date-picker__input,
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2016, 2023
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use '../../theme' as *;
|
|
9
|
+
@use '../../type' as *;
|
|
10
|
+
@use '../../config' as *;
|
|
11
|
+
@use '../../spacing' as *;
|
|
12
|
+
@use '../../colors' as *;
|
|
13
|
+
@use './tokens' as *;
|
|
14
|
+
|
|
15
|
+
/// icon-indicator styles
|
|
16
|
+
/// @access public
|
|
17
|
+
/// @group tag
|
|
18
|
+
@mixin icon-indicator {
|
|
19
|
+
.#{$prefix}--icon-indicator {
|
|
20
|
+
@include type-style('body-compact-01');
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
color: $text-secondary;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$prefix}--icon-indicator svg {
|
|
27
|
+
align-self: center;
|
|
28
|
+
margin-inline-end: $spacing-03;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$prefix}--icon-indicator--20 {
|
|
32
|
+
@include type-style('body-compact-02');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.#{$prefix}--icon-indicator--failed {
|
|
36
|
+
fill: $status-red;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.#{$prefix}--icon-indicator--caution-major {
|
|
40
|
+
fill: $status-orange;
|
|
41
|
+
|
|
42
|
+
path:first-of-type {
|
|
43
|
+
fill: $black;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$prefix}--icon-indicator--caution-minor {
|
|
48
|
+
fill: $status-yellow;
|
|
49
|
+
|
|
50
|
+
path:first-of-type {
|
|
51
|
+
fill: $black;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.#{$prefix}--icon-indicator--undefined {
|
|
56
|
+
fill: $status-purple;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.#{$prefix}--icon-indicator--succeeded {
|
|
60
|
+
fill: $status-green;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.#{$prefix}--icon-indicator--normal {
|
|
64
|
+
fill: $status-blue;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.#{$prefix}--icon-indicator--in-progress {
|
|
68
|
+
fill: $status-blue;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.#{$prefix}--icon-indicator--incomplete {
|
|
72
|
+
fill: $status-blue;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$prefix}--icon-indicator--not-started {
|
|
76
|
+
fill: $status-gray;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.#{$prefix}--icon-indicator--pending {
|
|
80
|
+
fill: $status-gray;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.#{$prefix}--icon-indicator--unknown {
|
|
84
|
+
fill: $status-gray;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$prefix}--icon-indicator--informative {
|
|
88
|
+
fill: $status-blue;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2023
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'icon-indicator';
|
|
9
|
+
@forward 'tokens';
|
|
10
|
+
|
|
11
|
+
@use '../../theme';
|
|
12
|
+
@use 'icon-indicator';
|
|
13
|
+
@use 'tokens';
|
|
14
|
+
|
|
15
|
+
@include theme.add-component-tokens(tokens.$status-tokens);
|
|
16
|
+
@include icon-indicator.icon-indicator;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2020
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use 'sass:color';
|
|
9
|
+
@use 'sass:map';
|
|
10
|
+
@use '../../config';
|
|
11
|
+
@use '../../colors';
|
|
12
|
+
@use '../../themes';
|
|
13
|
+
@use '../../theme' as *;
|
|
14
|
+
@use '../../utilities/component-tokens';
|
|
15
|
+
@use '@carbon/themes/scss/component-tokens' as status;
|
|
16
|
+
|
|
17
|
+
// status-red
|
|
18
|
+
$status-red: (
|
|
19
|
+
fallback: map.get(status.$status-red, white-theme),
|
|
20
|
+
values: (
|
|
21
|
+
(
|
|
22
|
+
theme: themes.$white,
|
|
23
|
+
value: map.get(status.$status-red, white-theme),
|
|
24
|
+
),
|
|
25
|
+
(
|
|
26
|
+
theme: themes.$g10,
|
|
27
|
+
value: map.get(status.$status-red, g-10),
|
|
28
|
+
),
|
|
29
|
+
(
|
|
30
|
+
theme: themes.$g90,
|
|
31
|
+
value: map.get(status.$status-red, g-90),
|
|
32
|
+
),
|
|
33
|
+
(
|
|
34
|
+
theme: themes.$g100,
|
|
35
|
+
value: map.get(status.$status-red, g-100),
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
) !default;
|
|
39
|
+
|
|
40
|
+
// status-orange
|
|
41
|
+
$status-orange: (
|
|
42
|
+
fallback: map.get(status.$status-orange, white-theme),
|
|
43
|
+
values: (
|
|
44
|
+
(
|
|
45
|
+
theme: themes.$white,
|
|
46
|
+
value: map.get(status.$status-orange, white-theme),
|
|
47
|
+
),
|
|
48
|
+
(
|
|
49
|
+
theme: themes.$g10,
|
|
50
|
+
value: map.get(status.$status-orange, g-10),
|
|
51
|
+
),
|
|
52
|
+
(
|
|
53
|
+
theme: themes.$g90,
|
|
54
|
+
value: map.get(status.$status-orange, g-90),
|
|
55
|
+
),
|
|
56
|
+
(
|
|
57
|
+
theme: themes.$g100,
|
|
58
|
+
value: map.get(status.$status-orange, g-100),
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
) !default;
|
|
62
|
+
|
|
63
|
+
// status-yellow
|
|
64
|
+
$status-yellow: (
|
|
65
|
+
fallback: map.get(status.$status-yellow, white-theme),
|
|
66
|
+
values: (
|
|
67
|
+
(
|
|
68
|
+
theme: themes.$white,
|
|
69
|
+
value: map.get(status.$status-yellow, white-theme),
|
|
70
|
+
),
|
|
71
|
+
(
|
|
72
|
+
theme: themes.$g10,
|
|
73
|
+
value: map.get(status.$status-yellow, g-10),
|
|
74
|
+
),
|
|
75
|
+
(
|
|
76
|
+
theme: themes.$g90,
|
|
77
|
+
value: map.get(status.$status-yellow, g-90),
|
|
78
|
+
),
|
|
79
|
+
(
|
|
80
|
+
theme: themes.$g100,
|
|
81
|
+
value: map.get(status.$status-yellow, g-100),
|
|
82
|
+
),
|
|
83
|
+
),
|
|
84
|
+
) !default;
|
|
85
|
+
|
|
86
|
+
// status-green
|
|
87
|
+
$status-green: (
|
|
88
|
+
fallback: map.get(status.$status-green, white-theme),
|
|
89
|
+
values: (
|
|
90
|
+
(
|
|
91
|
+
theme: themes.$white,
|
|
92
|
+
value: map.get(status.$status-green, white-theme),
|
|
93
|
+
),
|
|
94
|
+
(
|
|
95
|
+
theme: themes.$g10,
|
|
96
|
+
value: map.get(status.$status-green, g-10),
|
|
97
|
+
),
|
|
98
|
+
(
|
|
99
|
+
theme: themes.$g90,
|
|
100
|
+
value: map.get(status.$status-green, g-90),
|
|
101
|
+
),
|
|
102
|
+
(
|
|
103
|
+
theme: themes.$g100,
|
|
104
|
+
value: map.get(status.$status-green, g-100),
|
|
105
|
+
),
|
|
106
|
+
),
|
|
107
|
+
) !default;
|
|
108
|
+
|
|
109
|
+
// status-blue
|
|
110
|
+
$status-blue: (
|
|
111
|
+
fallback: map.get(status.$status-blue, white-theme),
|
|
112
|
+
values: (
|
|
113
|
+
(
|
|
114
|
+
theme: themes.$white,
|
|
115
|
+
value: map.get(status.$status-blue, white-theme),
|
|
116
|
+
),
|
|
117
|
+
(
|
|
118
|
+
theme: themes.$g10,
|
|
119
|
+
value: map.get(status.$status-blue, g-10),
|
|
120
|
+
),
|
|
121
|
+
(
|
|
122
|
+
theme: themes.$g90,
|
|
123
|
+
value: map.get(status.$status-blue, g-90),
|
|
124
|
+
),
|
|
125
|
+
(
|
|
126
|
+
theme: themes.$g100,
|
|
127
|
+
value: map.get(status.$status-blue, g-100),
|
|
128
|
+
),
|
|
129
|
+
),
|
|
130
|
+
) !default;
|
|
131
|
+
|
|
132
|
+
// status-purple
|
|
133
|
+
$status-purple: (
|
|
134
|
+
fallback: map.get(status.$status-purple, white-theme),
|
|
135
|
+
values: (
|
|
136
|
+
(
|
|
137
|
+
theme: themes.$white,
|
|
138
|
+
value: map.get(status.$status-purple, white-theme),
|
|
139
|
+
),
|
|
140
|
+
(
|
|
141
|
+
theme: themes.$g10,
|
|
142
|
+
value: map.get(status.$status-purple, g-10),
|
|
143
|
+
),
|
|
144
|
+
(
|
|
145
|
+
theme: themes.$g90,
|
|
146
|
+
value: map.get(status.$status-purple, g-90),
|
|
147
|
+
),
|
|
148
|
+
(
|
|
149
|
+
theme: themes.$g100,
|
|
150
|
+
value: map.get(status.$status-purple, g-100),
|
|
151
|
+
),
|
|
152
|
+
),
|
|
153
|
+
) !default;
|
|
154
|
+
|
|
155
|
+
// status-gray
|
|
156
|
+
$status-gray: (
|
|
157
|
+
fallback: map.get(status.$status-gray, white-theme),
|
|
158
|
+
values: (
|
|
159
|
+
(
|
|
160
|
+
theme: themes.$white,
|
|
161
|
+
value: map.get(status.$status-gray, white-theme),
|
|
162
|
+
),
|
|
163
|
+
(
|
|
164
|
+
theme: themes.$g10,
|
|
165
|
+
value: map.get(status.$status-gray, g-10),
|
|
166
|
+
),
|
|
167
|
+
(
|
|
168
|
+
theme: themes.$g90,
|
|
169
|
+
value: map.get(status.$status-gray, g-90),
|
|
170
|
+
),
|
|
171
|
+
(
|
|
172
|
+
theme: themes.$g100,
|
|
173
|
+
value: map.get(status.$status-gray, g-100),
|
|
174
|
+
),
|
|
175
|
+
),
|
|
176
|
+
) !default;
|
|
177
|
+
|
|
178
|
+
// Add to $status-tokens map
|
|
179
|
+
$status-tokens: (
|
|
180
|
+
status-red: $status-red,
|
|
181
|
+
status-orange: $status-orange,
|
|
182
|
+
status-yellow: $status-yellow,
|
|
183
|
+
status-green: $status-green,
|
|
184
|
+
status-blue: $status-blue,
|
|
185
|
+
status-purple: $status-purple,
|
|
186
|
+
status-gray: $status-gray,
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
// Generate CSS custom properties for each token
|
|
190
|
+
$status-red: component-tokens.get-var($status-red, 'status-red');
|
|
191
|
+
$status-orange: component-tokens.get-var($status-orange, 'status-orange');
|
|
192
|
+
$status-yellow: component-tokens.get-var($status-yellow, 'status-yellow');
|
|
193
|
+
$status-green: component-tokens.get-var($status-green, 'status-green');
|
|
194
|
+
$status-blue: component-tokens.get-var($status-blue, 'status-blue');
|
|
195
|
+
$status-purple: component-tokens.get-var($status-purple, 'status-purple');
|
|
196
|
+
$status-gray: component-tokens.get-var($status-gray, 'status-gray');
|
|
@@ -104,6 +104,12 @@
|
|
|
104
104
|
inline-size: 1px;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
.#{$prefix}--form-item {
|
|
108
|
+
&:has(.#{$prefix}--text-area__wrapper--cols) {
|
|
109
|
+
inline-size: fit-content;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
107
113
|
//-----------------------------
|
|
108
114
|
// Disabled
|
|
109
115
|
//-----------------------------
|