@drivy/cobalt 0.26.3 → 0.27.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/cjs/tokens/palette.js +1 -0
- package/cjs/tokens/palette.js.map +1 -1
- package/cjs/tokens/theme.js +6 -0
- package/cjs/tokens/theme.js.map +1 -1
- package/package.json +2 -2
- package/styles/components/Buttons/index.scss +1 -1
- package/styles/components/Form/Autocomplete/index.scss +1 -3
- package/styles/components/Form/CheckablePill.scss +25 -30
- package/styles/components/Form/Checkmark.scss +19 -34
- package/styles/components/Form/Fieldset.scss +3 -3
- package/styles/components/Form/Hint.scss +4 -7
- package/styles/components/Form/RadioWithDetails.scss +20 -21
- package/styles/components/Form/Select.scss +2 -1
- package/styles/components/Form/Slider.scss +16 -12
- package/styles/components/Form/Stepper.scss +5 -7
- package/styles/components/Form/TextArea.scss +3 -3
- package/styles/components/Form/TextInput.scss +9 -8
- package/styles/components/Form/ToggleSwitch.scss +16 -18
- package/styles/components/Form/field.scss +1 -1
- package/styles/components/Form/form.scss +14 -45
- package/styles/components/Modal/index.scss +1 -1
- package/styles/core/_colors-map.scss +6 -0
- package/styles/core/palette.scss +1 -0
- package/styles/core/theme.scss +4 -0
- package/styles/core.scss +0 -1
- package/tokens/palette.js +1 -0
- package/tokens/palette.js.map +1 -1
- package/tokens/theme.js +6 -0
- package/tokens/theme.js.map +1 -1
- package/types/tokens/index.d.ts +7 -0
- package/utilities.css +20 -0
- package/styles/core/card.scss +0 -31
package/cjs/tokens/palette.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"palette.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/cjs/tokens/theme.js
CHANGED
|
@@ -205,6 +205,12 @@ const stroke = {
|
|
|
205
205
|
hover: "graphite.light/navy.300/purpleDeep.400",
|
|
206
206
|
press: "graphite/navy.500/purpleDeep.400"
|
|
207
207
|
},
|
|
208
|
+
strong: "grey.dark/navy.200/grey.200",
|
|
209
|
+
strongInteractive: {
|
|
210
|
+
DEFAULT: "grey.dark/navy.200/grey.200",
|
|
211
|
+
hover: "graphite.light/navy.300/purpleDeep.400",
|
|
212
|
+
press: "graphite/navy.500/purpleDeep.400"
|
|
213
|
+
},
|
|
208
214
|
subdued: "grey.light/navy.100/black.50",
|
|
209
215
|
accent: "indigo/purple.500/purpleDeep.400",
|
|
210
216
|
accentInteractive: {
|
package/cjs/tokens/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drivy/cobalt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Opinionated design system for Drivy's projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"lodash.throttle": "4.1.1",
|
|
33
33
|
"media-typer": "1.1.0",
|
|
34
34
|
"nanoid": "4.0.0",
|
|
35
|
-
"postcss": "8.4.
|
|
35
|
+
"postcss": "8.4.21",
|
|
36
36
|
"tailwindcss": "2.2.19",
|
|
37
37
|
"tippy.js": "6.3.7"
|
|
38
38
|
},
|
|
@@ -71,11 +71,9 @@
|
|
|
71
71
|
&--forceDisplayResults
|
|
72
72
|
.cobalt-Autocomplete__input-wrapper
|
|
73
73
|
.cobalt-TextField__Input {
|
|
74
|
+
@include border(accent, 2);
|
|
74
75
|
border-bottom-right-radius: 0;
|
|
75
76
|
border-bottom-left-radius: 0;
|
|
76
|
-
|
|
77
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--default-active-color, 0.16),
|
|
78
|
-
inset 0 0 0 1px $form-element--default-active-color;
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
&__list {
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
.cobalt-CheckablePillField {
|
|
4
4
|
$self: &;
|
|
5
5
|
$height: 40px;
|
|
6
|
-
$border-width: 2px;
|
|
7
6
|
$animation-duration: 100ms;
|
|
8
7
|
$toggle-switch-focus-offset: math.div($height, 10);
|
|
9
|
-
$main-color: color(indigo);
|
|
10
|
-
$main-color-light: color(indigo);
|
|
11
8
|
|
|
12
9
|
position: relative;
|
|
13
10
|
|
|
@@ -31,6 +28,9 @@
|
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
&__Label {
|
|
31
|
+
@include border(base, 2);
|
|
32
|
+
@include text-color(base);
|
|
33
|
+
@include bg-color(secondary);
|
|
34
34
|
position: relative;
|
|
35
35
|
|
|
36
36
|
display: flex;
|
|
@@ -38,21 +38,17 @@
|
|
|
38
38
|
height: $height;
|
|
39
39
|
box-sizing: border-box;
|
|
40
40
|
padding: 0 spacing(md);
|
|
41
|
-
border: $border-width solid color(grey);
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
// We remove the border-bottom and border-top width
|
|
43
|
+
line-height: $height - 2px * 2;
|
|
45
44
|
|
|
46
45
|
border-radius: math.div($height, 2);
|
|
47
|
-
background-color: color(white);
|
|
48
46
|
box-shadow: 0 2px 6px 0 rgba(#000, 0.12);
|
|
49
47
|
|
|
50
48
|
transition: $animation-duration;
|
|
51
49
|
|
|
52
50
|
&:hover {
|
|
53
|
-
border-color
|
|
54
|
-
|
|
55
|
-
fill: $main-color;
|
|
51
|
+
@include border-color(accent);
|
|
56
52
|
box-shadow: 0 4px 4px 0 rgba(#000, 0.16);
|
|
57
53
|
|
|
58
54
|
transform: translateY(-1px);
|
|
@@ -70,63 +66,62 @@
|
|
|
70
66
|
}
|
|
71
67
|
|
|
72
68
|
&__Input:focus + #{ $self }__Label:after {
|
|
69
|
+
// Color the shadow by using default text color
|
|
70
|
+
@include text-color(accent);
|
|
73
71
|
position: absolute;
|
|
74
72
|
|
|
75
|
-
box-shadow: 0 0 0 1px
|
|
73
|
+
box-shadow: 0 0 0 1px;
|
|
76
74
|
content: "";
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
&__Input:disabled + #{ $self }__Label {
|
|
80
|
-
|
|
78
|
+
@include border(base, 2);
|
|
79
|
+
@include bg-color(disabled);
|
|
81
80
|
|
|
82
81
|
cursor: default;
|
|
83
82
|
box-shadow: none;
|
|
84
|
-
background-color: color(grey, light);
|
|
85
83
|
opacity: 0.8;
|
|
86
84
|
|
|
87
85
|
transform: none;
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
&__Input:checked + #{ $self }__Label {
|
|
89
|
+
@include bg-color(accentAlt);
|
|
90
|
+
@include text-color(accentAlt);
|
|
91
91
|
border-color: transparent;
|
|
92
|
-
|
|
93
|
-
color: color(white);
|
|
94
|
-
|
|
95
|
-
background-color: $main-color-light;
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
&--with-icon {
|
|
99
95
|
.cobalt-Icon {
|
|
96
|
+
@include semantic-color(base, icon, fill);
|
|
100
97
|
margin-right: spacing(xs);
|
|
101
98
|
|
|
102
|
-
fill: $main-color-light;
|
|
103
|
-
|
|
104
99
|
transition: fill $animation-duration ease-in-out;
|
|
105
100
|
}
|
|
106
101
|
|
|
107
102
|
#{ $self }__Input:checked + #{ $self }__Label .cobalt-Icon {
|
|
108
|
-
|
|
103
|
+
@include semantic-color(accentAlt, icon, fill);
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
106
|
|
|
112
107
|
&--error {
|
|
113
108
|
#{ $self }__Input + #{ $self }__Label {
|
|
114
|
-
border-color
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
@include border-color(error);
|
|
110
|
+
@include text-color(base);
|
|
111
|
+
@include bg-color(secondary);
|
|
117
112
|
|
|
118
|
-
|
|
113
|
+
.cobalt-Icon {
|
|
114
|
+
@include semantic-color(base, icon, fill);
|
|
115
|
+
}
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
#{ $self }__Input:checked + #{ $self }__Label {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
background-color: color(red);
|
|
119
|
+
@include text-color(errorAlt);
|
|
120
|
+
@include bg-color(errorAlt);
|
|
121
|
+
@include border-color(errorAlt);
|
|
127
122
|
|
|
128
123
|
.cobalt-Icon {
|
|
129
|
-
|
|
124
|
+
@include semantic-color(errorAlt, icon, fill);
|
|
130
125
|
}
|
|
131
126
|
}
|
|
132
127
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
@import "./form";
|
|
2
|
-
|
|
3
1
|
.cobalt- {
|
|
4
2
|
&CheckmarkField {
|
|
5
3
|
$self: &;
|
|
6
|
-
|
|
7
|
-
$disabled-color: color(grey, dark);
|
|
8
|
-
$error-color: $form-element--error-color;
|
|
9
|
-
|
|
10
4
|
$radio-checkmark-size: 20px;
|
|
11
5
|
$checkbox-checkmark-size: 18px;
|
|
12
|
-
|
|
6
|
+
|
|
7
|
+
@include text-color(base);
|
|
13
8
|
|
|
14
9
|
position: relative;
|
|
15
10
|
|
|
@@ -20,7 +15,6 @@
|
|
|
20
15
|
font-family: font-family(base);
|
|
21
16
|
font-size: font-size(body);
|
|
22
17
|
line-height: line-height(body);
|
|
23
|
-
color: color(graphite);
|
|
24
18
|
|
|
25
19
|
&__Input {
|
|
26
20
|
position: absolute;
|
|
@@ -33,12 +27,12 @@
|
|
|
33
27
|
opacity: 0;
|
|
34
28
|
|
|
35
29
|
& + #{ $self }__Checkmark {
|
|
30
|
+
@include border(accent, 2);
|
|
36
31
|
display: inline-block;
|
|
37
32
|
|
|
38
33
|
flex: 0 0 auto;
|
|
39
34
|
|
|
40
35
|
margin-right: spacing(xs);
|
|
41
|
-
border: 2px solid $checkmark-color;
|
|
42
36
|
|
|
43
37
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
|
|
44
38
|
cursor: pointer;
|
|
@@ -47,11 +41,7 @@
|
|
|
47
41
|
}
|
|
48
42
|
|
|
49
43
|
&[disabled] ~ .cobalt-CheckmarkField__Label {
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus + #{ $self }__Checkmark {
|
|
54
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--default-active-color, 0.3);
|
|
44
|
+
@include text-color(subdued);
|
|
55
45
|
}
|
|
56
46
|
}
|
|
57
47
|
|
|
@@ -67,20 +57,21 @@
|
|
|
67
57
|
}
|
|
68
58
|
|
|
69
59
|
& + #{ $self }__Checkmark::after {
|
|
60
|
+
@include border(accent);
|
|
61
|
+
@include bg-color(accentAlt);
|
|
62
|
+
|
|
70
63
|
position: absolute;
|
|
71
64
|
|
|
72
65
|
top: 3px;
|
|
73
66
|
left: 3px;
|
|
74
|
-
|
|
75
|
-
border: 5px
|
|
67
|
+
// Exception for radio inputs
|
|
68
|
+
border-width: 5px;
|
|
76
69
|
|
|
77
70
|
border-radius: 50%;
|
|
78
71
|
|
|
79
72
|
content: "";
|
|
80
73
|
opacity: 0;
|
|
81
74
|
|
|
82
|
-
background-color: $checkmark-color;
|
|
83
|
-
|
|
84
75
|
transition: transform 120ms ease-in-out;
|
|
85
76
|
|
|
86
77
|
transform: scale(0.4);
|
|
@@ -95,15 +86,14 @@
|
|
|
95
86
|
}
|
|
96
87
|
|
|
97
88
|
&[disabled] + #{ $self }__Checkmark {
|
|
98
|
-
border-color
|
|
89
|
+
@include border-color(subdued);
|
|
99
90
|
|
|
100
91
|
box-shadow: none;
|
|
101
92
|
}
|
|
102
93
|
|
|
103
94
|
&[disabled]:checked ~ #{ $self }__Checkmark::after {
|
|
104
|
-
border-color
|
|
105
|
-
|
|
106
|
-
background-color: $disabled-color;
|
|
95
|
+
@include border-color(subdued);
|
|
96
|
+
@include bg-color(disabled);
|
|
107
97
|
}
|
|
108
98
|
}
|
|
109
99
|
|
|
@@ -130,7 +120,7 @@
|
|
|
130
120
|
}
|
|
131
121
|
|
|
132
122
|
&:checked + #{ $self }__Checkmark {
|
|
133
|
-
|
|
123
|
+
@include bg-color(accentAlt);
|
|
134
124
|
will-change: background-color;
|
|
135
125
|
}
|
|
136
126
|
|
|
@@ -149,13 +139,13 @@
|
|
|
149
139
|
}
|
|
150
140
|
|
|
151
141
|
&[disabled] + #{ $self }__Checkmark {
|
|
152
|
-
border-color
|
|
142
|
+
@include border-color(subdued);
|
|
153
143
|
|
|
154
144
|
box-shadow: none;
|
|
155
145
|
}
|
|
156
146
|
|
|
157
147
|
&[disabled]:checked + #{ $self }__Checkmark {
|
|
158
|
-
|
|
148
|
+
@include bg-color(disabled);
|
|
159
149
|
}
|
|
160
150
|
}
|
|
161
151
|
|
|
@@ -173,21 +163,16 @@
|
|
|
173
163
|
|
|
174
164
|
&--error {
|
|
175
165
|
#{ $self }__Input + #{ $self }__Checkmark {
|
|
176
|
-
border-color
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
#{ $self }__Input:focus + #{ $self }__Checkmark {
|
|
180
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--error-color, 0.36);
|
|
166
|
+
@include border-color(error);
|
|
181
167
|
}
|
|
182
168
|
|
|
183
169
|
#{ $self }__Input[type="radio"]:checked + #{ $self }__Checkmark::after {
|
|
184
|
-
border-color
|
|
185
|
-
|
|
186
|
-
background-color: $error-color;
|
|
170
|
+
@include border-color(error);
|
|
171
|
+
@include bg-color(errorInteractive);
|
|
187
172
|
}
|
|
188
173
|
|
|
189
174
|
#{ $self }__Input[type="checkbox"]:checked + #{ $self }__Checkmark {
|
|
190
|
-
|
|
175
|
+
@include bg-color(errorInteractive);
|
|
191
176
|
}
|
|
192
177
|
}
|
|
193
178
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Fieldset {
|
|
3
|
-
|
|
3
|
+
@include border-top(subdued);
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// We remove the border-width
|
|
6
|
+
padding: (spacing(sm) - 1px) 0 0 0;
|
|
7
7
|
|
|
8
8
|
& > legend {
|
|
9
9
|
@include c-text-title-sm;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
@import "./form";
|
|
2
|
-
|
|
3
1
|
.cobalt- {
|
|
4
2
|
&Hint {
|
|
3
|
+
@include text-color(subdued);
|
|
5
4
|
@include c-text-body-md;
|
|
6
5
|
|
|
7
6
|
position: relative;
|
|
@@ -13,8 +12,6 @@
|
|
|
13
12
|
justify-content: flex-start;
|
|
14
13
|
align-items: flex-start;
|
|
15
14
|
|
|
16
|
-
color: color(graphite, light);
|
|
17
|
-
|
|
18
15
|
font-size: 13px;
|
|
19
16
|
line-height: 16px;
|
|
20
17
|
|
|
@@ -27,15 +24,15 @@
|
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
&--success {
|
|
30
|
-
|
|
27
|
+
@include text-color(success);
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
&--error {
|
|
34
|
-
|
|
31
|
+
@include text-color(error);
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
a {
|
|
38
|
-
|
|
35
|
+
@include text-color(accentInteractive);
|
|
39
36
|
text-decoration: none;
|
|
40
37
|
}
|
|
41
38
|
|
|
@@ -7,21 +7,18 @@
|
|
|
7
7
|
flex-grow: 1;
|
|
8
8
|
|
|
9
9
|
--visual-radio-size: 18px;
|
|
10
|
-
--visual-radio-color: #{color(indigo)};
|
|
11
10
|
|
|
12
11
|
.cobalt-radio-with-details__inner {
|
|
12
|
+
@include border(strongInteractive);
|
|
13
|
+
@include text-color(base);
|
|
14
|
+
@include bg-color(secondary);
|
|
13
15
|
height: 100%;
|
|
14
16
|
display: flex;
|
|
15
17
|
flex-direction: row;
|
|
16
18
|
align-items: flex-start;
|
|
17
19
|
|
|
18
20
|
padding: spacing(sm);
|
|
19
|
-
border: border(grey);
|
|
20
|
-
border-color: color(grey, dark);
|
|
21
21
|
|
|
22
|
-
color: color(indigo);
|
|
23
|
-
|
|
24
|
-
background-color: color(white);
|
|
25
22
|
cursor: pointer;
|
|
26
23
|
border-radius: border-radius(lg);
|
|
27
24
|
|
|
@@ -43,7 +40,7 @@
|
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
.cobalt-radio-with-details__title {
|
|
46
|
-
|
|
43
|
+
@include text-color(base);
|
|
47
44
|
font-size: 14px;
|
|
48
45
|
font-weight: 600;
|
|
49
46
|
line-height: 18px;
|
|
@@ -53,7 +50,7 @@
|
|
|
53
50
|
|
|
54
51
|
.cobalt-radio-with-details__description {
|
|
55
52
|
@include c-text-body-md;
|
|
56
|
-
|
|
53
|
+
@include text-color(subdued);
|
|
57
54
|
|
|
58
55
|
transition: color 150ms ease-in-out;
|
|
59
56
|
}
|
|
@@ -75,13 +72,13 @@
|
|
|
75
72
|
wordwrap: normal;
|
|
76
73
|
|
|
77
74
|
& + #{ $self }__inner #{ $self }__visual-input {
|
|
75
|
+
@include border(accent, 2);
|
|
78
76
|
position: relative;
|
|
79
77
|
top: 3px;
|
|
80
78
|
|
|
81
79
|
flex: 0 0 auto;
|
|
82
80
|
width: var(--visual-radio-size);
|
|
83
81
|
height: var(--visual-radio-size);
|
|
84
|
-
border: 2px solid var(--visual-radio-color);
|
|
85
82
|
|
|
86
83
|
border-radius: 50%;
|
|
87
84
|
|
|
@@ -92,38 +89,40 @@
|
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
&:focus-visible + #{ $self }__inner {
|
|
95
|
-
|
|
96
|
-
box-shadow: 0 2px 12px 0 rgba(
|
|
92
|
+
@include semantic-color(accentAlt, stroke, outline-color);
|
|
93
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
|
|
94
|
+
outline-style: dashed;
|
|
95
|
+
outline-width: 1px;
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
&:checked + #{ $self }__inner {
|
|
100
|
-
border-color
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
background-color: var(--visual-radio-color);
|
|
99
|
+
@include border-color(accent);
|
|
100
|
+
@include text-color(accentAlt);
|
|
101
|
+
@include bg-color(accentAlt);
|
|
105
102
|
}
|
|
106
103
|
|
|
107
104
|
&:checked + #{ $self }__inner #{ $self }__visual-input {
|
|
108
|
-
|
|
105
|
+
@include semantic-color(accentAlt, icon, border-color);
|
|
109
106
|
}
|
|
110
107
|
|
|
111
108
|
&:checked + #{ $self }__inner #{ $self }__title,
|
|
112
109
|
&:checked + #{ $self }__inner #{ $self }__description {
|
|
113
|
-
|
|
110
|
+
@include text-color(accentAlt);
|
|
114
111
|
}
|
|
115
112
|
|
|
116
113
|
& + #{ $self }__inner #{ $self }__visual-input::after {
|
|
114
|
+
@include border(accent);
|
|
115
|
+
@include bg-color(accentAlt);
|
|
117
116
|
position: absolute;
|
|
118
117
|
left: 2px;
|
|
119
118
|
top: 2px;
|
|
120
119
|
|
|
121
|
-
|
|
120
|
+
// Execption for radio inputs
|
|
121
|
+
border-width: 5px;
|
|
122
122
|
|
|
123
123
|
border-radius: 50%;
|
|
124
124
|
content: "";
|
|
125
125
|
opacity: 0;
|
|
126
|
-
background-color: var(--visual-radio-color);
|
|
127
126
|
|
|
128
127
|
transition: transform 120ms ease-in-out;
|
|
129
128
|
transform: scale(0.4);
|
|
@@ -131,7 +130,7 @@
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
&:checked + #{ $self }__inner #{ $self }__visual-input::after {
|
|
134
|
-
|
|
133
|
+
@include semantic-color(accentAlt, icon, border-color);
|
|
135
134
|
|
|
136
135
|
opacity: 1;
|
|
137
136
|
|
|
@@ -18,53 +18,57 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[data-reach-slider-track] {
|
|
21
|
-
|
|
21
|
+
@include fill-bg-color(subdued);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[data-reach-slider-track-highlight] {
|
|
25
|
-
|
|
25
|
+
@include fill-bg-color(accent);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
[data-reach-slider-handle] {
|
|
29
|
+
@include border(base);
|
|
29
30
|
width: spacing(md);
|
|
30
31
|
height: spacing(md);
|
|
31
|
-
|
|
32
|
+
box-sizing: content-box;
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
// The handle will always be white in any cases
|
|
35
|
+
background: #fff;
|
|
36
|
+
cursor: pointer;
|
|
34
37
|
|
|
35
|
-
box-shadow: elevation(base)
|
|
38
|
+
box-shadow: elevation(base);
|
|
36
39
|
border-radius: 50%;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
[data-reach-slider-handle]:not([aria-disabled]):focus {
|
|
43
|
+
@include border(accent, 2);
|
|
40
44
|
outline: none;
|
|
41
|
-
box-shadow: elevation(base)
|
|
45
|
+
box-shadow: elevation(base);
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
[data-reach-slider-track][data-disabled] {
|
|
45
|
-
|
|
49
|
+
@include bg-color(disabled);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
[data-reach-slider-track-highlight][data-disabled] {
|
|
49
|
-
|
|
53
|
+
@include bg-color(disabled);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
[data-reach-slider-handle][aria-disabled] {
|
|
53
|
-
|
|
57
|
+
@include bg-color(neutralAlt);
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
&__value-container {
|
|
61
|
+
@include text-color(base);
|
|
57
62
|
font-size: font-size(body);
|
|
58
|
-
color: color(graphite);
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
&__value-meta {
|
|
62
|
-
|
|
66
|
+
@include text-color(subdued);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
&--disabled {
|
|
66
70
|
#{ $self }__value-container {
|
|
67
|
-
|
|
71
|
+
@include text-color(subdued);
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__ContentWrapper {
|
|
21
|
+
@include text-color(base);
|
|
21
22
|
display: flex;
|
|
22
23
|
justify-content: center;
|
|
23
24
|
align-items: center;
|
|
@@ -26,15 +27,13 @@
|
|
|
26
27
|
|
|
27
28
|
font-size: 32px;
|
|
28
29
|
font-weight: 500;
|
|
29
|
-
color: color(indigo);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&__Meta {
|
|
33
|
+
@include text-color(subdued);
|
|
33
34
|
margin-left: spacing(xs);
|
|
34
35
|
|
|
35
36
|
font-size: 15px;
|
|
36
|
-
|
|
37
|
-
color: color(graphite, light);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__HiddenInput {
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
|
|
56
55
|
&:focus {
|
|
57
56
|
outline: none;
|
|
58
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--default-active-color, 0.3);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
&--disabled {
|
|
@@ -66,19 +64,19 @@
|
|
|
66
64
|
|
|
67
65
|
&--disabled {
|
|
68
66
|
.cobalt-Stepper__ContentWrapper {
|
|
69
|
-
|
|
67
|
+
@include text-color(subdued);
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
&--success {
|
|
74
72
|
.cobalt-Stepper__ContentWrapper {
|
|
75
|
-
|
|
73
|
+
@include text-color(success);
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
&--error {
|
|
80
78
|
.cobalt-Stepper__ContentWrapper {
|
|
81
|
-
|
|
79
|
+
@include text-color(error);
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
}
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
resize: vertical;
|
|
21
21
|
|
|
22
22
|
&::placeholder {
|
|
23
|
-
|
|
23
|
+
@include text-color(subdued);
|
|
24
|
+
opacity: 0.7;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
@include withContext(".cobalt-FormField--withHint") {
|
|
29
30
|
bottom: spacing(md);
|
|
30
31
|
}
|
|
32
|
+
@include text-color(subdued);
|
|
31
33
|
|
|
32
34
|
position: absolute;
|
|
33
35
|
|
|
@@ -41,8 +43,6 @@
|
|
|
41
43
|
line-height: 24px;
|
|
42
44
|
text-align: right;
|
|
43
45
|
|
|
44
|
-
color: color(grey, dark);
|
|
45
|
-
|
|
46
46
|
animation-name: cobalt-TextAreaField--fade-in;
|
|
47
47
|
animation-duration: 150ms;
|
|
48
48
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
.cobalt- {
|
|
4
4
|
&TextField {
|
|
5
5
|
$self: &;
|
|
6
|
-
$field-icon-color: color(indigo);
|
|
7
6
|
|
|
8
7
|
@include form-field-container;
|
|
9
8
|
|
|
10
9
|
position: relative;
|
|
11
10
|
|
|
12
11
|
&__Icon {
|
|
12
|
+
@include semantic-color(base, icon, fill);
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 0;
|
|
15
15
|
left: spacing(xs);
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
height: 100%;
|
|
18
18
|
display: flex;
|
|
19
19
|
|
|
20
|
-
fill: color(grey, dark);
|
|
21
|
-
|
|
22
20
|
.cobalt-Icon {
|
|
23
21
|
transition: fill 150ms ease-in-out;
|
|
24
22
|
}
|
|
@@ -28,7 +26,8 @@
|
|
|
28
26
|
@include form-input-base($self);
|
|
29
27
|
|
|
30
28
|
&::placeholder {
|
|
31
|
-
|
|
29
|
+
@include text-color(subdued);
|
|
30
|
+
opacity: 0.7;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -38,21 +37,23 @@
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
#{ $self }__Input + #{ $self }__Icon {
|
|
41
|
-
|
|
40
|
+
@include semantic-color(accent, icon, fill);
|
|
42
41
|
pointer-events: none;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
#{ $self }__Input:placeholder-shown + #{ $self }__Icon {
|
|
46
|
-
|
|
45
|
+
@include semantic-color(subdued, icon, fill);
|
|
46
|
+
opacity: 0.7;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
#{ $self }__Input:focus + #{ $self }__Icon,
|
|
50
50
|
#{ $self }__Input:focus:placeholder-shown + #{ $self }__Icon {
|
|
51
|
-
|
|
51
|
+
@include semantic-color(accent, icon, fill);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
#{ $self }__Input:disabled + #{ $self }__Icon {
|
|
55
|
-
|
|
55
|
+
@include semantic-color(subdued, icon, fill);
|
|
56
|
+
opacity: 0.7;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
}
|
|
@@ -100,17 +100,13 @@ $toggle-switch-size-large: 28px;
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&__Label {
|
|
103
|
+
@include c-text-body-md;
|
|
104
|
+
@include text-color(base);
|
|
103
105
|
display: inline-block;
|
|
104
106
|
|
|
105
107
|
flex: 1;
|
|
106
108
|
|
|
107
109
|
padding: 0 spacing(sm) 0 0;
|
|
108
|
-
|
|
109
|
-
font-weight: 400;
|
|
110
|
-
font-family: font-family(base);
|
|
111
|
-
font-size: font-size(body);
|
|
112
|
-
line-height: line-height(body);
|
|
113
|
-
color: color(graphite);
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
&__ToggleSwitch {
|
|
@@ -124,10 +120,9 @@ $toggle-switch-size-large: 28px;
|
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
&__ToggleSwitchSlider {
|
|
123
|
+
@include semantic-color(base, stroke, background-color);
|
|
127
124
|
display: inline-block;
|
|
128
125
|
|
|
129
|
-
background-color: color(grey);
|
|
130
|
-
|
|
131
126
|
transition: $animation-duration;
|
|
132
127
|
}
|
|
133
128
|
|
|
@@ -139,18 +134,20 @@ $toggle-switch-size-large: 28px;
|
|
|
139
134
|
|
|
140
135
|
content: "";
|
|
141
136
|
|
|
142
|
-
|
|
137
|
+
// Toggle switch slider will always be white in any cases
|
|
138
|
+
background-color: #fff;
|
|
143
139
|
|
|
144
140
|
transition: $animation-duration;
|
|
145
141
|
will-change: transform;
|
|
146
142
|
}
|
|
147
143
|
|
|
148
144
|
&__ToggleSwitchSlider:after {
|
|
145
|
+
@include text-color(accent);
|
|
149
146
|
position: absolute;
|
|
150
147
|
|
|
151
148
|
opacity: 0;
|
|
152
149
|
|
|
153
|
-
box-shadow: 0 0 0 1px
|
|
150
|
+
box-shadow: 0 0 0 1px;
|
|
154
151
|
|
|
155
152
|
content: "";
|
|
156
153
|
}
|
|
@@ -168,7 +165,7 @@ $toggle-switch-size-large: 28px;
|
|
|
168
165
|
&:checked
|
|
169
166
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
170
167
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
171
|
-
|
|
168
|
+
@include bg-color(accentAlt);
|
|
172
169
|
}
|
|
173
170
|
|
|
174
171
|
&:not([disabled]) + .cobalt-ToggleSwitchField__ToggleSwitch,
|
|
@@ -185,24 +182,25 @@ $toggle-switch-size-large: 28px;
|
|
|
185
182
|
&[disabled]
|
|
186
183
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
187
184
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
188
|
-
|
|
185
|
+
@include bg-color(disabled);
|
|
189
186
|
}
|
|
190
187
|
|
|
191
188
|
&[disabled]
|
|
192
189
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
193
190
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider:before {
|
|
194
|
-
background-color: color(white);
|
|
195
191
|
box-shadow: none;
|
|
196
192
|
}
|
|
197
193
|
|
|
198
194
|
&[disabled]:checked
|
|
199
195
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
200
196
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
201
|
-
|
|
197
|
+
@include bg-color(accentAlt);
|
|
198
|
+
opacity: 0.5;
|
|
202
199
|
}
|
|
203
200
|
|
|
204
201
|
&[disabled] ~ .cobalt-ToggleSwitchField__Label {
|
|
205
|
-
|
|
202
|
+
@include text-color(subdued);
|
|
203
|
+
opacity: 0.7;
|
|
206
204
|
}
|
|
207
205
|
|
|
208
206
|
&:focus
|
|
@@ -216,19 +214,19 @@ $toggle-switch-size-large: 28px;
|
|
|
216
214
|
.cobalt-ToggleSwitchField__Input
|
|
217
215
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
218
216
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
219
|
-
|
|
217
|
+
@include border(error, 2);
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
.cobalt-ToggleSwitchField__Input:focus
|
|
223
221
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
224
222
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
225
|
-
|
|
223
|
+
@include border(error, 2);
|
|
226
224
|
}
|
|
227
225
|
|
|
228
226
|
.cobalt-ToggleSwitchField__Input:checked
|
|
229
227
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
230
228
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
231
|
-
|
|
229
|
+
@include bg-color(error);
|
|
232
230
|
}
|
|
233
231
|
}
|
|
234
232
|
|
|
@@ -35,6 +35,7 @@ $formfield-maxwidth: 600px;
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
> .cobalt-FormField__Label {
|
|
38
|
+
@include text-color(base);
|
|
38
39
|
display: inline-block;
|
|
39
40
|
|
|
40
41
|
padding: 0 0 10px 1px;
|
|
@@ -42,7 +43,6 @@ $formfield-maxwidth: 600px;
|
|
|
42
43
|
font-size: 14px;
|
|
43
44
|
font-weight: 600;
|
|
44
45
|
line-height: 18px;
|
|
45
|
-
color: color(graphite);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.cobalt-Hint {
|
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
$form-element--default-color: color(grey, dark);
|
|
2
|
-
$form-element--default-active-color: color(indigo);
|
|
3
|
-
$form-element--success-color: color(green);
|
|
4
|
-
$form-element--error-color: color(red);
|
|
5
|
-
|
|
6
1
|
@mixin form-input-base($container) {
|
|
2
|
+
@include text-color(base);
|
|
3
|
+
@include border(strongInteractive);
|
|
4
|
+
@include bg-color(secondary);
|
|
7
5
|
@include withContext(#{$container}--success) {
|
|
8
|
-
border-color
|
|
9
|
-
|
|
10
|
-
&:not(:disabled):hover {
|
|
11
|
-
border: 1px solid $form-element--success-color;
|
|
12
|
-
}
|
|
6
|
+
@include border-color(success);
|
|
13
7
|
|
|
8
|
+
&:not(:disabled):hover,
|
|
14
9
|
&:not(:disabled):focus {
|
|
15
|
-
border
|
|
16
|
-
border-width: 1px;
|
|
17
|
-
|
|
18
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--success-color, 0.16),
|
|
19
|
-
inset 0 0 0 1px $form-element--success-color;
|
|
10
|
+
@include border(success);
|
|
20
11
|
}
|
|
21
12
|
}
|
|
22
13
|
|
|
23
14
|
@include withContext(#{$container}--error) {
|
|
24
|
-
border-color
|
|
25
|
-
|
|
26
|
-
&:not(:disabled):hover {
|
|
27
|
-
border: 1px solid $form-element--error-color;
|
|
28
|
-
}
|
|
15
|
+
@include border-color(error);
|
|
29
16
|
|
|
17
|
+
&:not(:disabled):hover,
|
|
30
18
|
&:not(:disabled):focus {
|
|
31
|
-
border
|
|
32
|
-
border-width: 1px;
|
|
33
|
-
|
|
34
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--error-color, 0.16),
|
|
35
|
-
inset 0 0 0 1px $form-element--error-color;
|
|
19
|
+
@include border(error);
|
|
36
20
|
}
|
|
37
21
|
}
|
|
38
22
|
|
|
@@ -42,38 +26,25 @@ $form-element--error-color: color(red);
|
|
|
42
26
|
height: 44px;
|
|
43
27
|
padding: 10px 12px;
|
|
44
28
|
|
|
45
|
-
border: 1px solid $form-element--default-color;
|
|
46
|
-
|
|
47
|
-
color: color(graphite);
|
|
48
|
-
|
|
49
29
|
font-family: font-family(base);
|
|
50
30
|
font-size: 16px;
|
|
51
31
|
font-weight: 400;
|
|
52
32
|
line-height: 24px;
|
|
53
33
|
|
|
54
|
-
background-color: color(white);
|
|
55
|
-
|
|
56
34
|
border-radius: 4px;
|
|
57
35
|
|
|
58
36
|
transition: border-color 150ms ease-in-out;
|
|
59
37
|
|
|
60
38
|
&:not(:disabled):not(:read-only):hover {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
color: color(graphite);
|
|
39
|
+
@include text-color(base);
|
|
64
40
|
|
|
65
41
|
box-shadow: elevation(base);
|
|
66
42
|
}
|
|
67
43
|
|
|
68
44
|
&:not(:disabled):not(:read-only):focus {
|
|
69
|
-
border
|
|
70
|
-
|
|
71
|
-
border-width: 1px;
|
|
45
|
+
@include border(accent, 2);
|
|
72
46
|
|
|
73
47
|
outline: none;
|
|
74
|
-
|
|
75
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--default-active-color, 0.16),
|
|
76
|
-
inset 0 0 0 1px $form-element--default-active-color;
|
|
77
48
|
}
|
|
78
49
|
|
|
79
50
|
&:not(select):read-only:focus {
|
|
@@ -86,11 +57,9 @@ $form-element--error-color: color(red);
|
|
|
86
57
|
|
|
87
58
|
&:disabled,
|
|
88
59
|
&:not(select):read-only {
|
|
89
|
-
border-color
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
background-color: color(grey, light);
|
|
60
|
+
@include border-color(base);
|
|
61
|
+
@include text-color(subdued);
|
|
62
|
+
@include bg-color(neutral);
|
|
94
63
|
}
|
|
95
64
|
|
|
96
65
|
&:disabled {
|
|
@@ -206,6 +206,12 @@ $theme-colors-map: (
|
|
|
206
206
|
hover: var(--c-l-graphite-light),
|
|
207
207
|
press: var(--c-l-graphite)
|
|
208
208
|
),
|
|
209
|
+
strong: var(--c-l-grey-dark),
|
|
210
|
+
strongInteractive: (
|
|
211
|
+
DEFAULT: var(--c-l-grey-dark),
|
|
212
|
+
hover: var(--c-l-graphite-light),
|
|
213
|
+
press: var(--c-l-graphite)
|
|
214
|
+
),
|
|
209
215
|
subdued: var(--c-l-grey-light),
|
|
210
216
|
accent: var(--c-l-indigo),
|
|
211
217
|
accentInteractive: (
|
package/styles/core/palette.scss
CHANGED
package/styles/core/theme.scss
CHANGED
|
@@ -135,6 +135,10 @@
|
|
|
135
135
|
--c-stroke-baseInteractive: var(--c-l-grey);
|
|
136
136
|
--c-stroke-baseInteractive--hover: var(--c-l-graphite-light);
|
|
137
137
|
--c-stroke-baseInteractive--press: var(--c-l-graphite);
|
|
138
|
+
--c-stroke-strong: var(--c-l-grey-dark);
|
|
139
|
+
--c-stroke-strongInteractive: var(--c-l-grey-dark);
|
|
140
|
+
--c-stroke-strongInteractive--hover: var(--c-l-graphite-light);
|
|
141
|
+
--c-stroke-strongInteractive--press: var(--c-l-graphite);
|
|
138
142
|
--c-stroke-subdued: var(--c-l-grey-light);
|
|
139
143
|
--c-stroke-accent: var(--c-l-indigo);
|
|
140
144
|
--c-stroke-accentInteractive: var(--c-l-indigo);
|
package/styles/core.scss
CHANGED
package/tokens/palette.js
CHANGED
package/tokens/palette.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"palette.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/tokens/theme.js
CHANGED
|
@@ -201,6 +201,12 @@ const stroke = {
|
|
|
201
201
|
hover: "graphite.light/navy.300/purpleDeep.400",
|
|
202
202
|
press: "graphite/navy.500/purpleDeep.400"
|
|
203
203
|
},
|
|
204
|
+
strong: "grey.dark/navy.200/grey.200",
|
|
205
|
+
strongInteractive: {
|
|
206
|
+
DEFAULT: "grey.dark/navy.200/grey.200",
|
|
207
|
+
hover: "graphite.light/navy.300/purpleDeep.400",
|
|
208
|
+
press: "graphite/navy.500/purpleDeep.400"
|
|
209
|
+
},
|
|
204
210
|
subdued: "grey.light/navy.100/black.50",
|
|
205
211
|
accent: "indigo/purple.500/purpleDeep.400",
|
|
206
212
|
accentInteractive: {
|
package/tokens/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/types/tokens/index.d.ts
CHANGED
|
@@ -382,6 +382,7 @@ export declare const palette: {
|
|
|
382
382
|
navy: {
|
|
383
383
|
"50": string;
|
|
384
384
|
"100": string;
|
|
385
|
+
"200": string;
|
|
385
386
|
"300": string;
|
|
386
387
|
"500": string;
|
|
387
388
|
"700": string;
|
|
@@ -642,6 +643,12 @@ export declare const theme: {
|
|
|
642
643
|
hover: string;
|
|
643
644
|
press: string;
|
|
644
645
|
};
|
|
646
|
+
strong: string;
|
|
647
|
+
strongInteractive: {
|
|
648
|
+
DEFAULT: string;
|
|
649
|
+
hover: string;
|
|
650
|
+
press: string;
|
|
651
|
+
};
|
|
645
652
|
subdued: string;
|
|
646
653
|
accent: string;
|
|
647
654
|
accentInteractive: {
|
package/utilities.css
CHANGED
|
@@ -3746,6 +3746,26 @@
|
|
|
3746
3746
|
border-color: #333
|
|
3747
3747
|
}
|
|
3748
3748
|
|
|
3749
|
+
.c-border-strong {
|
|
3750
|
+
border-color: #a49da7
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
.c-border-strongInteractive {
|
|
3754
|
+
border-color: #a49da7
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
.c-border-strongInteractive:hover {
|
|
3758
|
+
border-color: #757575
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
.c-border-strongInteractive:focus {
|
|
3762
|
+
border-color: #757575
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
.c-border-strongInteractive:active {
|
|
3766
|
+
border-color: #333
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3749
3769
|
.c-border-subdued {
|
|
3750
3770
|
border-color: #edebed
|
|
3751
3771
|
}
|
package/styles/core/card.scss
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
$card-strip-width: 3px;
|
|
2
|
-
|
|
3
|
-
// To deprecate
|
|
4
|
-
@mixin card-strip($variant: gradient) {
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
&:before {
|
|
8
|
-
position: absolute;
|
|
9
|
-
left: 0;
|
|
10
|
-
top: 0;
|
|
11
|
-
bottom: 0;
|
|
12
|
-
|
|
13
|
-
display: block;
|
|
14
|
-
width: $card-strip-width;
|
|
15
|
-
|
|
16
|
-
border-top-left-radius: inherit;
|
|
17
|
-
border-bottom-left-radius: inherit;
|
|
18
|
-
|
|
19
|
-
content: "";
|
|
20
|
-
|
|
21
|
-
@if $variant == turquoise {
|
|
22
|
-
background-color: color(turquoise);
|
|
23
|
-
} @else if $variant == green {
|
|
24
|
-
background-color: color(green);
|
|
25
|
-
} @else if $variant == red {
|
|
26
|
-
background-color: color(red);
|
|
27
|
-
} @else {
|
|
28
|
-
@error "Card strip variant `#{$variant}` not found.";
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|