@carbon/styles 1.52.0 → 1.53.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/README.md +9 -0
- package/css/styles.css +481 -206
- package/css/styles.min.css +1 -1
- package/package.json +15 -12
- package/scss/__tests__/theme-test.js +14 -23
- package/scss/_feature-flags.scss +1 -0
- package/scss/components/chat-button/_chat-button.scss +20 -6
- package/scss/components/checkbox/_checkbox.scss +4 -0
- package/scss/components/code-snippet/_code-snippet.scss +0 -1
- package/scss/components/data-table/_data-table.scss +4 -0
- package/scss/components/fluid-list-box/_fluid-list-box.scss +28 -0
- package/scss/components/fluid-search/_fluid-search.scss +1 -10
- package/scss/components/link/_link.scss +13 -10
- package/scss/components/list-box/_list-box.scss +84 -14
- package/scss/components/modal/_modal.scss +4 -3
- package/scss/components/popover/_popover.scss +12 -0
- package/scss/components/radio-button/_radio-button.scss +4 -0
- package/scss/components/slug/_slug.scss +8 -8
- package/scss/components/tag/_mixins.scss +14 -2
- package/scss/components/tag/_tag.scss +147 -39
- package/scss/components/tag/_tokens.scss +265 -0
- package/scss/components/tile/_tile.scss +17 -6
- package/scss/components/toggletip/_toggletip.scss +4 -0
- package/scss/utilities/_ai-gradient.scss +2 -2
- package/telemetry.yml +7 -0
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
xs: convert.to-rem(18px),
|
|
32
32
|
sm: convert.to-rem(18px),
|
|
33
33
|
md: convert.to-rem(24px),
|
|
34
|
+
lg: convert.to-rem(32px),
|
|
34
35
|
),
|
|
35
36
|
),
|
|
36
37
|
)
|
|
37
38
|
);
|
|
38
39
|
|
|
39
|
-
@include layout.use('size', $default: 'md', $min: 'sm', $max: '
|
|
40
|
-
|
|
40
|
+
@include layout.use('size', $default: 'md', $min: 'sm', $max: 'lg');
|
|
41
41
|
@include type-style('label-01');
|
|
42
42
|
@include tag-theme($tag-background-gray, $tag-color-gray, $tag-hover-gray);
|
|
43
43
|
|
|
44
44
|
display: inline-flex;
|
|
45
45
|
align-items: center;
|
|
46
46
|
justify-content: center;
|
|
47
|
-
border-radius: convert.to-rem(
|
|
47
|
+
border-radius: convert.to-rem(16px);
|
|
48
48
|
margin: $spacing-02;
|
|
49
49
|
cursor: default;
|
|
50
50
|
// restricts size of contained elements
|
|
@@ -56,20 +56,118 @@
|
|
|
56
56
|
vertical-align: middle;
|
|
57
57
|
word-break: break-word;
|
|
58
58
|
|
|
59
|
+
&.#{$prefix}--tag--lg {
|
|
60
|
+
padding-inline-start: $spacing-04;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:has(.#{$prefix}--tag__custom-icon) {
|
|
64
|
+
padding-inline-start: $spacing-02;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.#{$prefix}--tag--lg:not(.#{$prefix}--tag--filter) {
|
|
68
|
+
padding-inline: $spacing-04;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.#{$prefix}--tag--lg:has(.#{$prefix}--tag__custom-icon) {
|
|
72
|
+
padding-inline-start: $spacing-03;
|
|
73
|
+
}
|
|
74
|
+
|
|
59
75
|
&:not(:first-child) {
|
|
60
76
|
margin-inline-start: 0;
|
|
61
77
|
}
|
|
62
78
|
}
|
|
63
79
|
|
|
80
|
+
.#{$prefix}--tag__label {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
max-inline-size: 100%;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$prefix}--tag--interactive:focus {
|
|
88
|
+
box-shadow: inset 0 0 0 1px $focus;
|
|
89
|
+
outline: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.#{$prefix}--tag--interactive:hover {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// tags used for filtering
|
|
97
|
+
.#{$prefix}--tag--filter {
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
padding-block-end: 0;
|
|
100
|
+
padding-block-start: 0;
|
|
101
|
+
padding-inline-end: 0;
|
|
102
|
+
|
|
103
|
+
&:hover {
|
|
104
|
+
outline: none;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.#{$prefix}--interactive--tag-children {
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
place-items: center;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.#{$prefix}--tag--selectable {
|
|
114
|
+
border: 1px solid $border-inverse;
|
|
115
|
+
background-color: $layer;
|
|
116
|
+
color: $text-primary;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: $layer-hover;
|
|
121
|
+
outline: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:focus {
|
|
125
|
+
outline: 2px solid $focus;
|
|
126
|
+
outline-offset: 1px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.#{$prefix}--tag--selectable-selected {
|
|
131
|
+
background-color: $layer-selected-inverse;
|
|
132
|
+
color: $text-inverse;
|
|
133
|
+
|
|
134
|
+
&:hover {
|
|
135
|
+
background-color: $layer-selected-inverse;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.#{$prefix}--tag--operational {
|
|
140
|
+
border: 1px solid $tag-border-gray;
|
|
141
|
+
background-color: $tag-background-gray;
|
|
142
|
+
color: $tag-color-gray;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
|
|
145
|
+
&:hover {
|
|
146
|
+
background-color: $tag-hover-gray;
|
|
147
|
+
outline: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:focus {
|
|
151
|
+
outline: 2px solid $focus;
|
|
152
|
+
outline-offset: 1px;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
64
156
|
.#{$prefix}--tag--red {
|
|
65
|
-
@include tag-theme(
|
|
157
|
+
@include tag-theme(
|
|
158
|
+
$tag-background-red,
|
|
159
|
+
$tag-color-red,
|
|
160
|
+
$tag-hover-red,
|
|
161
|
+
$tag-border-red
|
|
162
|
+
);
|
|
66
163
|
}
|
|
67
164
|
|
|
68
165
|
.#{$prefix}--tag--magenta {
|
|
69
166
|
@include tag-theme(
|
|
70
167
|
$tag-background-magenta,
|
|
71
168
|
$tag-color-magenta,
|
|
72
|
-
$tag-hover-magenta
|
|
169
|
+
$tag-hover-magenta,
|
|
170
|
+
$tag-border-magenta
|
|
73
171
|
);
|
|
74
172
|
}
|
|
75
173
|
|
|
@@ -77,39 +175,62 @@
|
|
|
77
175
|
@include tag-theme(
|
|
78
176
|
$tag-background-purple,
|
|
79
177
|
$tag-color-purple,
|
|
80
|
-
$tag-hover-purple
|
|
178
|
+
$tag-hover-purple,
|
|
179
|
+
$tag-border-purple
|
|
81
180
|
);
|
|
82
181
|
}
|
|
83
182
|
|
|
84
183
|
.#{$prefix}--tag--blue {
|
|
85
|
-
@include tag-theme(
|
|
184
|
+
@include tag-theme(
|
|
185
|
+
$tag-background-blue,
|
|
186
|
+
$tag-color-blue,
|
|
187
|
+
$tag-hover-blue,
|
|
188
|
+
$tag-border-blue
|
|
189
|
+
);
|
|
86
190
|
}
|
|
87
191
|
|
|
88
192
|
.#{$prefix}--tag--cyan {
|
|
89
|
-
@include tag-theme(
|
|
193
|
+
@include tag-theme(
|
|
194
|
+
$tag-background-cyan,
|
|
195
|
+
$tag-color-cyan,
|
|
196
|
+
$tag-hover-cyan,
|
|
197
|
+
$tag-border-cyan
|
|
198
|
+
);
|
|
90
199
|
}
|
|
91
200
|
|
|
92
201
|
.#{$prefix}--tag--teal {
|
|
93
|
-
@include tag-theme(
|
|
202
|
+
@include tag-theme(
|
|
203
|
+
$tag-background-teal,
|
|
204
|
+
$tag-color-teal,
|
|
205
|
+
$tag-hover-teal,
|
|
206
|
+
$tag-border-teal
|
|
207
|
+
);
|
|
94
208
|
}
|
|
95
209
|
|
|
96
210
|
.#{$prefix}--tag--green {
|
|
97
211
|
@include tag-theme(
|
|
98
212
|
$tag-background-green,
|
|
99
213
|
$tag-color-green,
|
|
100
|
-
$tag-hover-green
|
|
214
|
+
$tag-hover-green,
|
|
215
|
+
$tag-border-green
|
|
101
216
|
);
|
|
102
217
|
}
|
|
103
218
|
|
|
104
219
|
.#{$prefix}--tag--gray {
|
|
105
|
-
@include tag-theme(
|
|
220
|
+
@include tag-theme(
|
|
221
|
+
$tag-background-gray,
|
|
222
|
+
$tag-color-gray,
|
|
223
|
+
$tag-hover-gray,
|
|
224
|
+
$tag-border-gray
|
|
225
|
+
);
|
|
106
226
|
}
|
|
107
227
|
|
|
108
228
|
.#{$prefix}--tag--cool-gray {
|
|
109
229
|
@include tag-theme(
|
|
110
230
|
$tag-background-cool-gray,
|
|
111
231
|
$tag-color-cool-gray,
|
|
112
|
-
$tag-hover-cool-gray
|
|
232
|
+
$tag-hover-cool-gray,
|
|
233
|
+
$tag-border-cool-gray
|
|
113
234
|
);
|
|
114
235
|
}
|
|
115
236
|
|
|
@@ -117,11 +238,12 @@
|
|
|
117
238
|
@include tag-theme(
|
|
118
239
|
$tag-background-warm-gray,
|
|
119
240
|
$tag-color-warm-gray,
|
|
120
|
-
$tag-hover-warm-gray
|
|
241
|
+
$tag-hover-warm-gray,
|
|
242
|
+
$tag-border-warm-gray
|
|
121
243
|
);
|
|
122
244
|
}
|
|
123
245
|
|
|
124
|
-
.#{$prefix}--tag--high-contrast {
|
|
246
|
+
.#{$prefix}--tag--high-contrast:not(.#{$prefix}--tag--operational) {
|
|
125
247
|
@include tag-theme(
|
|
126
248
|
$background-inverse,
|
|
127
249
|
$text-inverse,
|
|
@@ -129,10 +251,11 @@
|
|
|
129
251
|
);
|
|
130
252
|
}
|
|
131
253
|
|
|
132
|
-
.#{$prefix}--tag--outline {
|
|
254
|
+
.#{$prefix}--tag--outline:not(.#{$prefix}--tag--operational) {
|
|
133
255
|
@include tag-theme($background, $text-primary, $layer-hover);
|
|
134
256
|
|
|
135
|
-
|
|
257
|
+
outline: 1px solid $background-inverse;
|
|
258
|
+
outline-offset: -1px;
|
|
136
259
|
}
|
|
137
260
|
|
|
138
261
|
.#{$prefix}--tag--disabled,
|
|
@@ -147,31 +270,15 @@
|
|
|
147
270
|
}
|
|
148
271
|
}
|
|
149
272
|
|
|
150
|
-
.#{$prefix}--
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.#{$prefix}--tag--interactive:focus {
|
|
158
|
-
box-shadow: inset 0 0 0 1px $focus;
|
|
159
|
-
outline: none;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.#{$prefix}--tag--interactive:hover {
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// tags used for filtering
|
|
167
|
-
.#{$prefix}--tag--filter {
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
padding-block-end: 0;
|
|
170
|
-
padding-block-start: 0;
|
|
171
|
-
padding-inline-end: 0;
|
|
273
|
+
.#{$prefix}--tag--selectable.#{$prefix}--tag--disabled,
|
|
274
|
+
.#{$prefix}--tag--operational.#{$prefix}--tag--disabled {
|
|
275
|
+
border: 1px solid $border-disabled;
|
|
276
|
+
background-color: $layer;
|
|
277
|
+
color: $text-disabled;
|
|
172
278
|
|
|
173
279
|
&:hover {
|
|
174
|
-
|
|
280
|
+
background-color: $layer;
|
|
281
|
+
cursor: not-allowed;
|
|
175
282
|
}
|
|
176
283
|
}
|
|
177
284
|
|
|
@@ -222,6 +329,7 @@
|
|
|
222
329
|
}
|
|
223
330
|
|
|
224
331
|
.#{$prefix}--tag__close-icon:focus {
|
|
332
|
+
z-index: 99999;
|
|
225
333
|
border-radius: 50%;
|
|
226
334
|
box-shadow: inset 0 0 0 1px $focus;
|
|
227
335
|
outline: none;
|
|
@@ -617,6 +617,226 @@ $tag-hover-cool-gray: (
|
|
|
617
617
|
),
|
|
618
618
|
) !default;
|
|
619
619
|
|
|
620
|
+
$tag-border-gray: (
|
|
621
|
+
fallback: map.get(tag.$tag-border-gray, white-theme),
|
|
622
|
+
values: (
|
|
623
|
+
(
|
|
624
|
+
theme: themes.$white,
|
|
625
|
+
value: map.get(tag.$tag-border-gray, white-theme),
|
|
626
|
+
),
|
|
627
|
+
(
|
|
628
|
+
theme: themes.$g10,
|
|
629
|
+
value: map.get(tag.$tag-border-gray, g-10),
|
|
630
|
+
),
|
|
631
|
+
(
|
|
632
|
+
theme: themes.$g90,
|
|
633
|
+
value: map.get(tag.$tag-border-gray, g-90),
|
|
634
|
+
),
|
|
635
|
+
(
|
|
636
|
+
theme: themes.$g100,
|
|
637
|
+
value: map.get(tag.$tag-border-gray, g-100),
|
|
638
|
+
),
|
|
639
|
+
),
|
|
640
|
+
) !default;
|
|
641
|
+
|
|
642
|
+
$tag-border-red: (
|
|
643
|
+
fallback: map.get(tag.$tag-border-red, white-theme),
|
|
644
|
+
values: (
|
|
645
|
+
(
|
|
646
|
+
theme: themes.$white,
|
|
647
|
+
value: map.get(tag.$tag-border-red, white-theme),
|
|
648
|
+
),
|
|
649
|
+
(
|
|
650
|
+
theme: themes.$g10,
|
|
651
|
+
value: map.get(tag.$tag-border-red, g-10),
|
|
652
|
+
),
|
|
653
|
+
(
|
|
654
|
+
theme: themes.$g90,
|
|
655
|
+
value: map.get(tag.$tag-border-red, g-90),
|
|
656
|
+
),
|
|
657
|
+
(
|
|
658
|
+
theme: themes.$g100,
|
|
659
|
+
value: map.get(tag.$tag-border-red, g-100),
|
|
660
|
+
),
|
|
661
|
+
),
|
|
662
|
+
) !default;
|
|
663
|
+
|
|
664
|
+
$tag-border-blue: (
|
|
665
|
+
fallback: map.get(tag.$tag-border-blue, white-theme),
|
|
666
|
+
values: (
|
|
667
|
+
(
|
|
668
|
+
theme: themes.$white,
|
|
669
|
+
value: map.get(tag.$tag-border-blue, white-theme),
|
|
670
|
+
),
|
|
671
|
+
(
|
|
672
|
+
theme: themes.$g10,
|
|
673
|
+
value: map.get(tag.$tag-border-blue, g-10),
|
|
674
|
+
),
|
|
675
|
+
(
|
|
676
|
+
theme: themes.$g90,
|
|
677
|
+
value: map.get(tag.$tag-border-blue, g-90),
|
|
678
|
+
),
|
|
679
|
+
(
|
|
680
|
+
theme: themes.$g100,
|
|
681
|
+
value: map.get(tag.$tag-border-blue, g-100),
|
|
682
|
+
),
|
|
683
|
+
),
|
|
684
|
+
) !default;
|
|
685
|
+
|
|
686
|
+
$tag-border-cyan: (
|
|
687
|
+
fallback: map.get(tag.$tag-border-cyan, white-theme),
|
|
688
|
+
values: (
|
|
689
|
+
(
|
|
690
|
+
theme: themes.$white,
|
|
691
|
+
value: map.get(tag.$tag-border-cyan, white-theme),
|
|
692
|
+
),
|
|
693
|
+
(
|
|
694
|
+
theme: themes.$g10,
|
|
695
|
+
value: map.get(tag.$tag-border-cyan, g-10),
|
|
696
|
+
),
|
|
697
|
+
(
|
|
698
|
+
theme: themes.$g90,
|
|
699
|
+
value: map.get(tag.$tag-border-cyan, g-90),
|
|
700
|
+
),
|
|
701
|
+
(
|
|
702
|
+
theme: themes.$g100,
|
|
703
|
+
value: map.get(tag.$tag-border-cyan, g-100),
|
|
704
|
+
),
|
|
705
|
+
),
|
|
706
|
+
) !default;
|
|
707
|
+
|
|
708
|
+
$tag-border-teal: (
|
|
709
|
+
fallback: map.get(tag.$tag-border-teal, white-theme),
|
|
710
|
+
values: (
|
|
711
|
+
(
|
|
712
|
+
theme: themes.$white,
|
|
713
|
+
value: map.get(tag.$tag-border-teal, white-theme),
|
|
714
|
+
),
|
|
715
|
+
(
|
|
716
|
+
theme: themes.$g10,
|
|
717
|
+
value: map.get(tag.$tag-border-teal, g-10),
|
|
718
|
+
),
|
|
719
|
+
(
|
|
720
|
+
theme: themes.$g90,
|
|
721
|
+
value: map.get(tag.$tag-border-teal, g-90),
|
|
722
|
+
),
|
|
723
|
+
(
|
|
724
|
+
theme: themes.$g100,
|
|
725
|
+
value: map.get(tag.$tag-border-teal, g-100),
|
|
726
|
+
),
|
|
727
|
+
),
|
|
728
|
+
) !default;
|
|
729
|
+
|
|
730
|
+
$tag-border-green: (
|
|
731
|
+
fallback: map.get(tag.$tag-border-green, white-theme),
|
|
732
|
+
values: (
|
|
733
|
+
(
|
|
734
|
+
theme: themes.$white,
|
|
735
|
+
value: map.get(tag.$tag-border-green, white-theme),
|
|
736
|
+
),
|
|
737
|
+
(
|
|
738
|
+
theme: themes.$g10,
|
|
739
|
+
value: map.get(tag.$tag-border-green, g-10),
|
|
740
|
+
),
|
|
741
|
+
(
|
|
742
|
+
theme: themes.$g90,
|
|
743
|
+
value: map.get(tag.$tag-border-green, g-90),
|
|
744
|
+
),
|
|
745
|
+
(
|
|
746
|
+
theme: themes.$g100,
|
|
747
|
+
value: map.get(tag.$tag-border-green, g-100),
|
|
748
|
+
),
|
|
749
|
+
),
|
|
750
|
+
) !default;
|
|
751
|
+
|
|
752
|
+
$tag-border-magenta: (
|
|
753
|
+
fallback: map.get(tag.$tag-border-magenta, white-theme),
|
|
754
|
+
values: (
|
|
755
|
+
(
|
|
756
|
+
theme: themes.$white,
|
|
757
|
+
value: map.get(tag.$tag-border-magenta, white-theme),
|
|
758
|
+
),
|
|
759
|
+
(
|
|
760
|
+
theme: themes.$g10,
|
|
761
|
+
value: map.get(tag.$tag-border-magenta, g-10),
|
|
762
|
+
),
|
|
763
|
+
(
|
|
764
|
+
theme: themes.$g90,
|
|
765
|
+
value: map.get(tag.$tag-border-magenta, g-90),
|
|
766
|
+
),
|
|
767
|
+
(
|
|
768
|
+
theme: themes.$g100,
|
|
769
|
+
value: map.get(tag.$tag-border-magenta, g-100),
|
|
770
|
+
),
|
|
771
|
+
),
|
|
772
|
+
) !default;
|
|
773
|
+
|
|
774
|
+
$tag-border-purple: (
|
|
775
|
+
fallback: map.get(tag.$tag-border-purple, white-theme),
|
|
776
|
+
values: (
|
|
777
|
+
(
|
|
778
|
+
theme: themes.$white,
|
|
779
|
+
value: map.get(tag.$tag-border-purple, white-theme),
|
|
780
|
+
),
|
|
781
|
+
(
|
|
782
|
+
theme: themes.$g10,
|
|
783
|
+
value: map.get(tag.$tag-border-purple, g-10),
|
|
784
|
+
),
|
|
785
|
+
(
|
|
786
|
+
theme: themes.$g90,
|
|
787
|
+
value: map.get(tag.$tag-border-purple, g-90),
|
|
788
|
+
),
|
|
789
|
+
(
|
|
790
|
+
theme: themes.$g100,
|
|
791
|
+
value: map.get(tag.$tag-border-purple, g-100),
|
|
792
|
+
),
|
|
793
|
+
),
|
|
794
|
+
) !default;
|
|
795
|
+
|
|
796
|
+
$tag-border-cool-gray: (
|
|
797
|
+
fallback: map.get(tag.$tag-border-cool-gray, white-theme),
|
|
798
|
+
values: (
|
|
799
|
+
(
|
|
800
|
+
theme: themes.$white,
|
|
801
|
+
value: map.get(tag.$tag-border-cool-gray, white-theme),
|
|
802
|
+
),
|
|
803
|
+
(
|
|
804
|
+
theme: themes.$g10,
|
|
805
|
+
value: map.get(tag.$tag-border-cool-gray, g-10),
|
|
806
|
+
),
|
|
807
|
+
(
|
|
808
|
+
theme: themes.$g90,
|
|
809
|
+
value: map.get(tag.$tag-border-cool-gray, g-90),
|
|
810
|
+
),
|
|
811
|
+
(
|
|
812
|
+
theme: themes.$g100,
|
|
813
|
+
value: map.get(tag.$tag-border-cool-gray, g-100),
|
|
814
|
+
),
|
|
815
|
+
),
|
|
816
|
+
) !default;
|
|
817
|
+
|
|
818
|
+
$tag-border-warm-gray: (
|
|
819
|
+
fallback: map.get(tag.$tag-border-warm-gray, white-theme),
|
|
820
|
+
values: (
|
|
821
|
+
(
|
|
822
|
+
theme: themes.$white,
|
|
823
|
+
value: map.get(tag.$tag-border-warm-gray, white-theme),
|
|
824
|
+
),
|
|
825
|
+
(
|
|
826
|
+
theme: themes.$g10,
|
|
827
|
+
value: map.get(tag.$tag-border-warm-gray, g-10),
|
|
828
|
+
),
|
|
829
|
+
(
|
|
830
|
+
theme: themes.$g90,
|
|
831
|
+
value: map.get(tag.$tag-border-warm-gray, g-90),
|
|
832
|
+
),
|
|
833
|
+
(
|
|
834
|
+
theme: themes.$g100,
|
|
835
|
+
value: map.get(tag.$tag-border-warm-gray, g-100),
|
|
836
|
+
),
|
|
837
|
+
),
|
|
838
|
+
) !default;
|
|
839
|
+
|
|
620
840
|
// warm-gray
|
|
621
841
|
$tag-background-warm-gray: (
|
|
622
842
|
fallback: map.get(tag.$tag-background-warm-gray, white-theme),
|
|
@@ -709,6 +929,16 @@ $tag-tokens: (
|
|
|
709
929
|
tag-background-gray: $tag-background-gray,
|
|
710
930
|
tag-color-gray: $tag-color-gray,
|
|
711
931
|
tag-hover-gray: $tag-hover-gray,
|
|
932
|
+
tag-border-red: $tag-border-red,
|
|
933
|
+
tag-border-blue: $tag-border-blue,
|
|
934
|
+
tag-border-cyan: $tag-border-cyan,
|
|
935
|
+
tag-border-teal: $tag-border-teal,
|
|
936
|
+
tag-border-green: $tag-border-green,
|
|
937
|
+
tag-border-magenta: $tag-border-magenta,
|
|
938
|
+
tag-border-purple: $tag-border-purple,
|
|
939
|
+
tag-border-gray: $tag-border-gray,
|
|
940
|
+
tag-border-cool-gray: $tag-border-cool-gray,
|
|
941
|
+
tag-border-warm-gray: $tag-border-warm-gray,
|
|
712
942
|
tag-background-cool-gray: $tag-background-cool-gray,
|
|
713
943
|
tag-color-cool-gray: $tag-color-cool-gray,
|
|
714
944
|
tag-hover-cool-gray: $tag-hover-cool-gray,
|
|
@@ -801,6 +1031,41 @@ $tag-color-gray: component-tokens.get-var($tag-color-gray, 'tag-color-gray');
|
|
|
801
1031
|
|
|
802
1032
|
$tag-hover-gray: component-tokens.get-var($tag-hover-gray, 'tag-hover-gray');
|
|
803
1033
|
|
|
1034
|
+
$tag-border-red: component-tokens.get-var($tag-border-red, 'tag-border-red');
|
|
1035
|
+
|
|
1036
|
+
$tag-border-blue: component-tokens.get-var($tag-border-blue, 'tag-border-blue');
|
|
1037
|
+
|
|
1038
|
+
$tag-border-cyan: component-tokens.get-var($tag-border-cyan, 'tag-border-cyan');
|
|
1039
|
+
|
|
1040
|
+
$tag-border-teal: component-tokens.get-var($tag-border-teal, 'tag-border-teal');
|
|
1041
|
+
|
|
1042
|
+
$tag-border-green: component-tokens.get-var(
|
|
1043
|
+
$tag-border-green,
|
|
1044
|
+
'tag-border-green'
|
|
1045
|
+
);
|
|
1046
|
+
|
|
1047
|
+
$tag-border-magenta: component-tokens.get-var(
|
|
1048
|
+
$tag-border-magenta,
|
|
1049
|
+
'tag-border-magenta'
|
|
1050
|
+
);
|
|
1051
|
+
|
|
1052
|
+
$tag-border-purple: component-tokens.get-var(
|
|
1053
|
+
$tag-border-purple,
|
|
1054
|
+
'tag-border-purple'
|
|
1055
|
+
);
|
|
1056
|
+
|
|
1057
|
+
$tag-border-gray: component-tokens.get-var($tag-border-gray, 'tag-border-gray');
|
|
1058
|
+
|
|
1059
|
+
$tag-border-cool-gray: component-tokens.get-var(
|
|
1060
|
+
$tag-border-cool-gray,
|
|
1061
|
+
'tag-border-cool-gray'
|
|
1062
|
+
);
|
|
1063
|
+
|
|
1064
|
+
$tag-border-warm-gray: component-tokens.get-var(
|
|
1065
|
+
$tag-border-warm-gray,
|
|
1066
|
+
'tag-border-warm-gray'
|
|
1067
|
+
);
|
|
1068
|
+
|
|
804
1069
|
$tag-background-cool-gray: component-tokens.get-var(
|
|
805
1070
|
$tag-background-cool-gray,
|
|
806
1071
|
'tag-background-cool-gray'
|
|
@@ -27,7 +27,10 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
27
27
|
/// Tile styles
|
|
28
28
|
/// @access public
|
|
29
29
|
/// @group tile
|
|
30
|
-
@mixin tile(
|
|
30
|
+
@mixin tile(
|
|
31
|
+
$enable-experimental-tile-contrast: false,
|
|
32
|
+
$enable-v12-tile-radio-icons: false
|
|
33
|
+
) {
|
|
31
34
|
.#{$prefix}--tile-group {
|
|
32
35
|
@include reset;
|
|
33
36
|
}
|
|
@@ -163,9 +166,17 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
163
166
|
block-size: 1rem;
|
|
164
167
|
inset-block-start: layout.density('padding-inline');
|
|
165
168
|
inset-inline-end: layout.density('padding-inline');
|
|
166
|
-
opacity: 0;
|
|
167
169
|
transition: $duration-fast-02 motion(standard, productive);
|
|
168
170
|
|
|
171
|
+
@if (
|
|
172
|
+
enabled('enable-v12-tile-radio-icons') or
|
|
173
|
+
$enable-experimental-tile-contrast
|
|
174
|
+
) {
|
|
175
|
+
opacity: 1;
|
|
176
|
+
} @else {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
169
180
|
svg {
|
|
170
181
|
border-radius: 50%;
|
|
171
182
|
fill: $icon-secondary;
|
|
@@ -383,7 +394,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
383
394
|
}
|
|
384
395
|
|
|
385
396
|
.#{$prefix}--tile--slug.#{$prefix}--tile {
|
|
386
|
-
@include
|
|
397
|
+
@include ai-popover-gradient('default', 0, 'layer');
|
|
387
398
|
|
|
388
399
|
border: 1px solid transparent;
|
|
389
400
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
@@ -391,7 +402,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
391
402
|
}
|
|
392
403
|
|
|
393
404
|
.#{$prefix}--tile--slug.#{$prefix}--tile--expandable:hover {
|
|
394
|
-
@include
|
|
405
|
+
@include ai-popover-gradient('default', 0, 'layer');
|
|
395
406
|
}
|
|
396
407
|
|
|
397
408
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
|
|
@@ -410,7 +421,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
410
421
|
|
|
411
422
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
|
|
412
423
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
|
|
413
|
-
@include
|
|
424
|
+
@include ai-popover-gradient('hover', 0, 'layer');
|
|
414
425
|
|
|
415
426
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow;
|
|
416
427
|
}
|
|
@@ -421,7 +432,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
421
432
|
}
|
|
422
433
|
|
|
423
434
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after {
|
|
424
|
-
@include
|
|
435
|
+
@include ai-popover-gradient('selected', 0, 'layer');
|
|
425
436
|
|
|
426
437
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow;
|
|
427
438
|
}
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
/// Experimental - name and structure subject to change. Use at your own risk!
|
|
69
69
|
/// Adds callout gradient styles to a component
|
|
70
70
|
/// @access private
|
|
71
|
-
/// @example @include
|
|
71
|
+
/// @example @include ai-popover-gradient();
|
|
72
72
|
/// @param {String} $type - Type of gradient, either 'default', 'selected' or 'hover'
|
|
73
73
|
/// @param {Number} $offset - specify a pixel offset the callout should start from the bottom
|
|
74
74
|
/// @param {String} $background - specify the token to be used as the background
|
|
75
75
|
/// @group utilities
|
|
76
|
-
@mixin
|
|
76
|
+
@mixin ai-popover-gradient(
|
|
77
77
|
$type: 'default',
|
|
78
78
|
$offset: 0,
|
|
79
79
|
$background: 'background'
|
package/telemetry.yml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
|
|
2
|
+
version: 1
|
|
3
|
+
projectId: d2574dfc-6ec7-4d1a-9c7a-b22cc16dc747
|
|
4
|
+
endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
|
|
5
|
+
collect:
|
|
6
|
+
npm:
|
|
7
|
+
dependencies: null
|