@drivy/cobalt 0.19.0 → 0.20.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/icons.js +2 -0
- package/cjs/tokens/icons.js.map +1 -1
- package/components/Flash/index.js +4 -4
- package/components/Flash/index.js.map +1 -1
- package/components/Form/Hint.js +4 -4
- package/components/Form/Hint.js.map +1 -1
- package/components/Icon/__generated__/EvCableIcon.js +21 -0
- package/components/Icon/__generated__/EvCableIcon.js.map +1 -0
- package/components/Icon/__generated__/EvChargerIcon.js +21 -0
- package/components/Icon/__generated__/EvChargerIcon.js.map +1 -0
- package/components/Icon/__generated__/SearchCarIcon.js +0 -1
- package/components/Icon/__generated__/SearchCarIcon.js.map +1 -1
- package/components/Icon/index.js +0 -5
- package/components/Icon/index.js.map +1 -1
- package/components/Pill/index.js +1 -1
- package/components/Pill/index.js.map +1 -1
- package/components/Rating/RatingCompact.js +4 -3
- package/components/Rating/RatingCompact.js.map +1 -1
- package/components/Rating/index.js +4 -1
- package/components/Rating/index.js.map +1 -1
- package/icons/ev-cable.js +4 -0
- package/icons/ev-cable.js.map +1 -0
- package/icons/ev-cable.svg +1 -0
- package/icons/ev-charger.js +4 -0
- package/icons/ev-charger.js.map +1 -0
- package/icons/ev-charger.svg +1 -0
- package/icons/index.js +2 -0
- package/icons/index.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +20 -19
- package/styles/components/Button/legacy.scss +13 -17
- package/styles/components/Callout/index.scss +3 -3
- package/styles/components/Card/index.scss +1 -1
- package/styles/components/Chip/index.scss +1 -1
- package/styles/components/Form/Autocomplete/index.scss +1 -1
- package/styles/components/Form/CheckablePill.scss +6 -6
- package/styles/components/Form/Checkmark.scss +1 -1
- package/styles/components/Form/Fieldset.scss +1 -1
- package/styles/components/Form/Select.scss +1 -1
- package/styles/components/Form/Stepper.scss +1 -1
- package/styles/components/Form/TextArea.scss +2 -2
- package/styles/components/Form/TextInput.scss +4 -4
- package/styles/components/Form/ToggleSwitch.scss +8 -8
- package/styles/components/Form/form.scss +4 -4
- package/styles/components/Icon/index.scss +0 -25
- package/styles/components/Pill/index.scss +1 -1
- package/styles/components/TabBar/index.scss +3 -3
- package/styles/components/Tag/index.scss +1 -1
- package/styles/core/card.scss +6 -6
- package/styles/core/color.scss +1 -24
- package/styles/core/typography.scss +6 -6
- package/tokens/icons.js +2 -0
- package/tokens/icons.js.map +1 -1
- package/types/components/Button/index.d.ts +6 -6
- package/types/components/Buttons/DefaultButton/index.d.ts +2 -2
- package/types/components/Buttons/GhostButton/index.d.ts +2 -2
- package/types/components/Form/Autocomplete/index.d.ts +2 -2
- package/types/components/Form/Hint.d.ts +2 -1
- package/types/components/Form/TextInput.d.ts +3 -3
- package/types/components/Icon/__generated__/EvCableIcon.d.ts +10 -0
- package/types/components/Icon/__generated__/EvChargerIcon.d.ts +10 -0
- package/types/components/Icon/__generated__/index.d.ts +2 -0
- package/types/components/Icon/index.d.ts +2 -2
- package/types/components/Rating/RatingCompact.d.ts +1 -1
- package/types/components/Rating/index.d.ts +2 -1
- package/types/icons/index.d.ts +2 -0
- package/types/tokens/index.d.ts +2 -0
- package/utilities.css +47 -142
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
height: $height;
|
|
39
39
|
box-sizing: border-box;
|
|
40
40
|
padding: 0 spacing(base);
|
|
41
|
-
border: $border-width solid color(
|
|
41
|
+
border: $border-width solid color(grey);
|
|
42
42
|
|
|
43
43
|
line-height: $height - $border-width * 2;
|
|
44
44
|
color: $main-color-light;
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
&__Input:focus + #{ $self }__Label:after {
|
|
73
73
|
position: absolute;
|
|
74
74
|
|
|
75
|
-
box-shadow: 0 0 0 1px color(
|
|
75
|
+
box-shadow: 0 0 0 1px color(turquoise);
|
|
76
76
|
content: "";
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&__Input:disabled + #{ $self }__Label {
|
|
80
|
-
border: $border-width solid color(
|
|
80
|
+
border: $border-width solid color(grey);
|
|
81
81
|
|
|
82
82
|
cursor: default;
|
|
83
83
|
box-shadow: none;
|
|
84
|
-
background-color: color(
|
|
84
|
+
background-color: color(grey, light);
|
|
85
85
|
opacity: 0.8;
|
|
86
86
|
|
|
87
87
|
transform: none;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
&--error {
|
|
113
113
|
#{ $self }__Input + #{ $self }__Label {
|
|
114
|
-
border-color: color(
|
|
114
|
+
border-color: color(red);
|
|
115
115
|
|
|
116
116
|
color: $main-color-light;
|
|
117
117
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
|
|
124
124
|
color: color(white);
|
|
125
125
|
|
|
126
|
-
background-color: color(
|
|
126
|
+
background-color: color(red);
|
|
127
127
|
|
|
128
128
|
.cobalt-Icon {
|
|
129
129
|
fill: color(white);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
resize: vertical;
|
|
21
21
|
|
|
22
22
|
&::placeholder {
|
|
23
|
-
color: color(
|
|
23
|
+
color: color(grey, dark);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
line-height: 24px;
|
|
42
42
|
text-align: right;
|
|
43
43
|
|
|
44
|
-
color: color(
|
|
44
|
+
color: color(grey, dark);
|
|
45
45
|
|
|
46
46
|
animation-name: cobalt-TextAreaField--fade-in;
|
|
47
47
|
animation-duration: 150ms;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
height: 100%;
|
|
18
18
|
display: flex;
|
|
19
19
|
|
|
20
|
-
fill: color(
|
|
20
|
+
fill: color(grey, dark);
|
|
21
21
|
|
|
22
22
|
.cobalt-Icon {
|
|
23
23
|
transition: fill 150ms ease-in-out;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@include form-input-base($self);
|
|
29
29
|
|
|
30
30
|
&::placeholder {
|
|
31
|
-
color: color(
|
|
31
|
+
color: color(grey, dark);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
#{ $self }__Input:placeholder-shown + #{ $self }__Icon {
|
|
46
|
-
fill: color(
|
|
46
|
+
fill: color(grey, dark);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
#{ $self }__Input:focus + #{ $self }__Icon,
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
#{ $self }__Input:disabled + #{ $self }__Icon {
|
|
55
|
-
fill: color(
|
|
55
|
+
fill: color(grey, dark);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -126,7 +126,7 @@ $toggle-switch-size-large: 28px;
|
|
|
126
126
|
&__ToggleSwitchSlider {
|
|
127
127
|
display: inline-block;
|
|
128
128
|
|
|
129
|
-
background-color: color(
|
|
129
|
+
background-color: color(grey);
|
|
130
130
|
|
|
131
131
|
transition: $animation-duration;
|
|
132
132
|
}
|
|
@@ -150,7 +150,7 @@ $toggle-switch-size-large: 28px;
|
|
|
150
150
|
|
|
151
151
|
opacity: 0;
|
|
152
152
|
|
|
153
|
-
box-shadow: 0 0 0 1px color(
|
|
153
|
+
box-shadow: 0 0 0 1px color(turquoise);
|
|
154
154
|
|
|
155
155
|
content: "";
|
|
156
156
|
}
|
|
@@ -185,7 +185,7 @@ $toggle-switch-size-large: 28px;
|
|
|
185
185
|
&[disabled]
|
|
186
186
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
187
187
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
188
|
-
background-color: color(
|
|
188
|
+
background-color: color(grey, light);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
&[disabled]
|
|
@@ -198,11 +198,11 @@ $toggle-switch-size-large: 28px;
|
|
|
198
198
|
&[disabled]:checked
|
|
199
199
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
200
200
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
201
|
-
background-color: color(
|
|
201
|
+
background-color: color(grey, dark);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&[disabled] ~ .cobalt-ToggleSwitchField__Label {
|
|
205
|
-
color: color(
|
|
205
|
+
color: color(grey, dark);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
&:focus
|
|
@@ -216,19 +216,19 @@ $toggle-switch-size-large: 28px;
|
|
|
216
216
|
.cobalt-ToggleSwitchField__Input
|
|
217
217
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
218
218
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
219
|
-
box-shadow: inset 0 0 0 2px color(
|
|
219
|
+
box-shadow: inset 0 0 0 2px color(red);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.cobalt-ToggleSwitchField__Input:focus
|
|
223
223
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
224
224
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
225
|
-
box-shadow: inset 0 0 0 2px color(
|
|
225
|
+
box-shadow: inset 0 0 0 2px color(red);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.cobalt-ToggleSwitchField__Input:checked
|
|
229
229
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
230
230
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
231
|
-
background-color: color(
|
|
231
|
+
background-color: color(red);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
$form-element--default-color: color(
|
|
1
|
+
$form-element--default-color: color(grey, dark);
|
|
2
2
|
$form-element--default-active-color: color(indigo);
|
|
3
|
-
$form-element--success-color: color(
|
|
4
|
-
$form-element--error-color: color(
|
|
3
|
+
$form-element--success-color: color(green);
|
|
4
|
+
$form-element--error-color: color(red);
|
|
5
5
|
|
|
6
6
|
@mixin form-input-base($container) {
|
|
7
7
|
@include withContext(#{$container}--success) {
|
|
@@ -90,7 +90,7 @@ $form-element--error-color: color(essence);
|
|
|
90
90
|
|
|
91
91
|
color: color(graphite, light);
|
|
92
92
|
|
|
93
|
-
background-color: color(
|
|
93
|
+
background-color: color(grey, light);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&:disabled {
|
|
@@ -23,31 +23,6 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
&Icon--colorAsphalt {
|
|
27
|
-
// deprecated
|
|
28
|
-
fill: color(indigo, dark);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&Icon--colorAsphaltLight {
|
|
32
|
-
// deprecated
|
|
33
|
-
fill: color(indigo);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&Icon--colorAller {
|
|
37
|
-
// deprecated
|
|
38
|
-
fill: color(turquoise);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&Icon--colorEssence {
|
|
42
|
-
// deprecated
|
|
43
|
-
fill: color(red);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&Icon--colorSignal {
|
|
47
|
-
// deprecated
|
|
48
|
-
fill: color(green);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
26
|
&Icon--contained {
|
|
52
27
|
height: 40px;
|
|
53
28
|
width: 40px;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
height: 1px;
|
|
49
49
|
|
|
50
50
|
content: "";
|
|
51
|
-
background-color: color(
|
|
51
|
+
background-color: color(grey);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&TabScroller__ScrollArea {
|
|
@@ -127,11 +127,11 @@
|
|
|
127
127
|
&:focus {
|
|
128
128
|
text-decoration: inherit;
|
|
129
129
|
|
|
130
|
-
background: color(
|
|
130
|
+
background: color(grey, lighter);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&[aria-selected="true"] {
|
|
134
|
-
color: color(
|
|
134
|
+
color: color(indigo, dark);
|
|
135
135
|
|
|
136
136
|
&:after {
|
|
137
137
|
background: color(purple);
|
package/styles/core/card.scss
CHANGED
|
@@ -17,12 +17,12 @@ $card-strip-width: 3px;
|
|
|
17
17
|
|
|
18
18
|
content: "";
|
|
19
19
|
|
|
20
|
-
@if $variant ==
|
|
21
|
-
background-color: color(
|
|
22
|
-
} @else if $variant ==
|
|
23
|
-
background-color: color(
|
|
24
|
-
} @else if $variant ==
|
|
25
|
-
background-color: color(
|
|
20
|
+
@if $variant == turquoise {
|
|
21
|
+
background-color: color(turquoise);
|
|
22
|
+
} @else if $variant == green {
|
|
23
|
+
background-color: color(green);
|
|
24
|
+
} @else if $variant == red {
|
|
25
|
+
background-color: color(red);
|
|
26
26
|
} @else {
|
|
27
27
|
@error "Card strip variant `#{$variant}` not found.";
|
|
28
28
|
}
|
package/styles/core/color.scss
CHANGED
|
@@ -75,31 +75,8 @@ $color-data: (
|
|
|
75
75
|
current: currentColor
|
|
76
76
|
);
|
|
77
77
|
|
|
78
|
-
$color-data-drivy-map: (
|
|
79
|
-
white: map-get($color-data, white),
|
|
80
|
-
graphite: (
|
|
81
|
-
lighter: map-get(map-get($color-data, graphite), light),
|
|
82
|
-
light: map-get(map-get($color-data, graphite), light),
|
|
83
|
-
base: map-get(map-get($color-data, graphite), base)
|
|
84
|
-
),
|
|
85
|
-
asphalt: (
|
|
86
|
-
lighter: map-get(map-get($color-data, purple), light),
|
|
87
|
-
light: map-get(map-get($color-data, purple), base),
|
|
88
|
-
base: map-get(map-get($color-data, indigo), dark)
|
|
89
|
-
),
|
|
90
|
-
acier: map-get($color-data, grey),
|
|
91
|
-
aller: map-get($color-data, turquoise),
|
|
92
|
-
essence: (
|
|
93
|
-
base: map-get($color-data, red),
|
|
94
|
-
light: #ffedee
|
|
95
|
-
),
|
|
96
|
-
signal: map-get($color-data, green),
|
|
97
|
-
electrique: #d8ff00,
|
|
98
|
-
blue: map-get($color-data, blue)
|
|
99
|
-
);
|
|
100
|
-
|
|
101
78
|
@function color($name, $variant: base) {
|
|
102
|
-
$variants: map-get(
|
|
79
|
+
$variants: map-get($color-data, $name);
|
|
103
80
|
|
|
104
81
|
@if not $variants {
|
|
105
82
|
@error "Color `#{$name}` not found.";
|
|
@@ -117,7 +117,7 @@ $text-variants-data: (
|
|
|
117
117
|
font-size: font-size(title-extralarge);
|
|
118
118
|
font-weight: 700;
|
|
119
119
|
line-height: line-height(title-extralarge);
|
|
120
|
-
color: color(
|
|
120
|
+
color: color(indigo, dark);
|
|
121
121
|
|
|
122
122
|
@include breakpoint($from: sm) {
|
|
123
123
|
font-size: remToPx(2.5rem);
|
|
@@ -133,7 +133,7 @@ $text-variants-data: (
|
|
|
133
133
|
font-size: font-size(title-large);
|
|
134
134
|
font-weight: 700;
|
|
135
135
|
line-height: line-height(title-large);
|
|
136
|
-
color: color(
|
|
136
|
+
color: color(indigo, dark);
|
|
137
137
|
|
|
138
138
|
@include breakpoint($from: sm) {
|
|
139
139
|
font-size: remToPx(2rem);
|
|
@@ -149,7 +149,7 @@ $text-variants-data: (
|
|
|
149
149
|
font-size: font-size(title);
|
|
150
150
|
font-weight: 700;
|
|
151
151
|
line-height: line-height(title);
|
|
152
|
-
color: color(
|
|
152
|
+
color: color(indigo, dark);
|
|
153
153
|
|
|
154
154
|
@include breakpoint($from: sm) {
|
|
155
155
|
font-size: remToPx(1.5rem);
|
|
@@ -165,7 +165,7 @@ $text-variants-data: (
|
|
|
165
165
|
font-size: font-size(title-small);
|
|
166
166
|
font-weight: 600;
|
|
167
167
|
line-height: line-height(title-small);
|
|
168
|
-
color: color(
|
|
168
|
+
color: color(indigo, dark);
|
|
169
169
|
|
|
170
170
|
@include breakpoint($from: sm) {
|
|
171
171
|
font-size: remToPx(1.125rem);
|
|
@@ -181,11 +181,11 @@ $text-variants-data: (
|
|
|
181
181
|
font-size: font-size(title-tiny);
|
|
182
182
|
font-weight: 600;
|
|
183
183
|
line-height: line-height(title-tiny);
|
|
184
|
-
color: color(
|
|
184
|
+
color: color(indigo, dark);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
@mixin text-style--titleSubdued {
|
|
188
|
-
color: color(
|
|
188
|
+
color: color(purple);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
@mixin text-style-body-large {
|
package/tokens/icons.js
CHANGED
|
@@ -98,6 +98,8 @@ const icons = {
|
|
|
98
98
|
edit: "edit.svg",
|
|
99
99
|
electric: "electric.svg",
|
|
100
100
|
evBattery: "ev-battery.svg",
|
|
101
|
+
evCable: "ev-cable.svg",
|
|
102
|
+
evCharger: "ev-charger.svg",
|
|
101
103
|
externalLink: "external-link.svg",
|
|
102
104
|
eyeClosed: "eye-closed.svg",
|
|
103
105
|
eyeOpened: "eye-opened.svg",
|
package/tokens/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|