@drivy/cobalt 1.1.2 → 1.1.4
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 +1 -0
- package/cjs/tokens/icons.js.map +1 -1
- package/components/Form/Slider.js +0 -1
- package/components/Form/Slider.js.map +1 -1
- package/components/Icon/__generated__/SmilingFaceIcon.js +21 -0
- package/components/Icon/__generated__/SmilingFaceIcon.js.map +1 -0
- package/components/Icon/__generated__/StarHalfIcon.js +2 -2
- package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
- package/components/Icon/__generated__/StarIcon.js +2 -2
- package/components/Icon/__generated__/StarIcon.js.map +1 -1
- package/icons/index.js +1 -0
- package/icons/index.js.map +1 -1
- package/icons/smiling-face.js +4 -0
- package/icons/smiling-face.js.map +1 -0
- package/icons/smiling-face.svg +1 -0
- package/icons/star-half.js +1 -1
- package/icons/star-half.svg +1 -1
- package/icons/star.js +1 -1
- package/icons/star.svg +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +15 -15
- package/styles/components/BasicCell/index.scss +8 -10
- package/styles/components/BulletList/index.scss +3 -3
- package/styles/components/Buttons/DefaultButton/index.scss +1 -1
- package/styles/components/Buttons/GhostButton/index.scss +2 -4
- package/styles/components/Buttons/index.scss +9 -9
- package/styles/components/Calendar/CalendarDayPicker/index.scss +10 -11
- package/styles/components/Calendar/CalendarRangePicker/index.scss +20 -21
- package/styles/components/Calendar/CalendarView/index.scss +11 -13
- package/styles/components/Callout/index.scss +5 -16
- package/styles/components/Card/index.scss +11 -17
- package/styles/components/Cell/index.scss +6 -4
- package/styles/components/Chip/index.scss +8 -10
- package/styles/components/ContainedIcon/index.scss +11 -11
- package/styles/components/EmptyState/index.scss +6 -12
- package/styles/components/Flash/index.scss +7 -13
- package/styles/components/Form/Autocomplete/index.scss +1 -3
- package/styles/components/Form/CheckablePill.scss +9 -19
- package/styles/components/Form/Checkmark.scss +14 -23
- package/styles/components/Form/ComposedField.scss +2 -2
- package/styles/components/Form/Fieldset.scss +6 -9
- package/styles/components/Form/Hint.scss +4 -8
- package/styles/components/Form/RadioWithDetails.scss +11 -16
- package/styles/components/Form/Select.scss +2 -2
- package/styles/components/Form/Stepper.scss +7 -8
- package/styles/components/Form/TextArea.scss +4 -4
- package/styles/components/Form/TextInput.scss +2 -2
- package/styles/components/Form/ToggleSwitch.scss +12 -15
- package/styles/components/Form/field.scss +8 -6
- package/styles/components/Form/form.scss +8 -12
- package/styles/components/Helper/index.scss +4 -9
- package/styles/components/Icon/index.scss +4 -6
- package/styles/components/Pagination/index.scss +1 -1
- package/styles/components/PhotoDropzone/index.scss +9 -12
- package/styles/components/Pill/index.scss +7 -17
- package/styles/components/PlateNumber/index.scss +1 -7
- package/styles/components/Popover/index.scss +20 -19
- package/styles/components/PriceTable/index.scss +6 -5
- package/styles/components/ProgressBanner/index.scss +5 -18
- package/styles/components/ProgressBar/index.scss +6 -16
- package/styles/components/ProgressCircular/index.scss +5 -5
- package/styles/components/Rating/index.scss +4 -5
- package/styles/components/Sidepanel/index.scss +4 -4
- package/styles/components/TabBar/index.scss +10 -9
- package/styles/components/Tabs/index.scss +1 -2
- package/styles/components/Tag/index.scss +11 -23
- package/styles/core/global-variables.scss +1 -1
- package/tokens/icons.js +1 -0
- package/tokens/icons.js.map +1 -1
- package/types/src/components/Form/Autocomplete/index.d.ts +1 -1
- package/types/src/components/Form/TextInput.d.ts +1 -1
- package/types/src/components/Icon/__generated__/SmilingFaceIcon.d.ts +10 -0
- package/types/src/components/Icon/__generated__/index.d.ts +1 -0
- package/types/src/components/Icon/index.d.ts +1 -1
- package/types/src/icons/index.d.ts +1 -0
- package/types/src/tokens/index.d.ts +1 -0
- package/utils/getCobaltTailwindcssConfig.js.map +1 -1
|
@@ -28,16 +28,13 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__Label {
|
|
31
|
-
@
|
|
32
|
-
@include text-color(base);
|
|
33
|
-
@include bg-color(secondary);
|
|
31
|
+
@apply c-border-base c-border-2 c-text-base c-bg-secondary c-py-none c-px-md;
|
|
34
32
|
position: relative;
|
|
35
33
|
|
|
36
34
|
display: flex;
|
|
37
35
|
align-items: center;
|
|
38
36
|
height: $height;
|
|
39
37
|
box-sizing: border-box;
|
|
40
|
-
padding: 0 spacing(md);
|
|
41
38
|
|
|
42
39
|
// We remove the border-bottom and border-top width
|
|
43
40
|
line-height: $height - 2px * 2;
|
|
@@ -47,7 +44,7 @@
|
|
|
47
44
|
transition: $animation-duration;
|
|
48
45
|
|
|
49
46
|
&:hover {
|
|
50
|
-
@
|
|
47
|
+
@apply c-border-accent;
|
|
51
48
|
box-shadow: 0 4px 4px 0 rgba(#000, 0.16);
|
|
52
49
|
|
|
53
50
|
transform: translateY(-1px);
|
|
@@ -66,7 +63,7 @@
|
|
|
66
63
|
|
|
67
64
|
&__Input:focus + #{ $self }__Label:after {
|
|
68
65
|
// Color the shadow by using default text color
|
|
69
|
-
@
|
|
66
|
+
@apply c-text-accent;
|
|
70
67
|
position: absolute;
|
|
71
68
|
|
|
72
69
|
box-shadow: 0 0 0 1px;
|
|
@@ -74,8 +71,7 @@
|
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
&__Input:disabled + #{ $self }__Label {
|
|
77
|
-
@
|
|
78
|
-
@include bg-color(disabled);
|
|
74
|
+
@apply c-border-base c-border-2 c-bg-disabled;
|
|
79
75
|
|
|
80
76
|
cursor: default;
|
|
81
77
|
box-shadow: none;
|
|
@@ -85,15 +81,13 @@
|
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
&__Input:checked + #{ $self }__Label {
|
|
88
|
-
@
|
|
89
|
-
@include text-color(accentAlt);
|
|
90
|
-
@include border(accentAlt, 2);
|
|
84
|
+
@apply c-bg-accentAlt c-text-accentAlt c-border-accentAlt c-border-2;
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
&--with-icon {
|
|
94
88
|
.cobalt-Icon {
|
|
95
89
|
@include semantic-color(icon, base, fill);
|
|
96
|
-
|
|
90
|
+
@apply c-mr-xs;
|
|
97
91
|
|
|
98
92
|
transition: fill $animation-duration ease-in-out;
|
|
99
93
|
}
|
|
@@ -105,9 +99,7 @@
|
|
|
105
99
|
|
|
106
100
|
&--error {
|
|
107
101
|
#{ $self }__Input + #{ $self }__Label {
|
|
108
|
-
@
|
|
109
|
-
@include text-color(base);
|
|
110
|
-
@include bg-color(secondary);
|
|
102
|
+
@apply c-border-error c-text-base c-bg-secondary;
|
|
111
103
|
|
|
112
104
|
.cobalt-Icon {
|
|
113
105
|
@include semantic-color(icon, base, fill);
|
|
@@ -115,9 +107,7 @@
|
|
|
115
107
|
}
|
|
116
108
|
|
|
117
109
|
#{ $self }__Input:checked + #{ $self }__Label {
|
|
118
|
-
@
|
|
119
|
-
@include bg-color(errorAlt);
|
|
120
|
-
@include border-color(errorAlt);
|
|
110
|
+
@apply c-text-errorAlt c-bg-errorAlt c-border-errorAlt;
|
|
121
111
|
|
|
122
112
|
.cobalt-Icon {
|
|
123
113
|
@include semantic-color(icon, errorAlt, fill);
|
|
@@ -135,7 +125,7 @@
|
|
|
135
125
|
align-items: center;
|
|
136
126
|
|
|
137
127
|
.cobalt-CheckablePillField {
|
|
138
|
-
|
|
128
|
+
@apply c-mr-sm;
|
|
139
129
|
|
|
140
130
|
&--with-icon {
|
|
141
131
|
white-space: nowrap;
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
$radio-checkmark-size: 20px;
|
|
5
5
|
$checkbox-checkmark-size: 18px;
|
|
6
6
|
|
|
7
|
-
@
|
|
8
|
-
@include c-text-body-md;
|
|
7
|
+
@apply c-text-base c-text-body-md c-mb-xs;
|
|
9
8
|
|
|
10
9
|
position: relative;
|
|
11
10
|
|
|
12
|
-
margin-bottom: spacing(xs);
|
|
13
11
|
display: block;
|
|
14
12
|
|
|
15
13
|
&__Input {
|
|
@@ -23,13 +21,11 @@
|
|
|
23
21
|
opacity: 0;
|
|
24
22
|
|
|
25
23
|
& + #{ $self }__Checkmark {
|
|
26
|
-
@
|
|
24
|
+
@apply c-border-accent c-border-2 c-mr-xs;
|
|
27
25
|
display: inline-block;
|
|
28
26
|
|
|
29
27
|
flex: 0 0 auto;
|
|
30
28
|
|
|
31
|
-
margin-right: spacing(xs);
|
|
32
|
-
|
|
33
29
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
|
|
34
30
|
cursor: pointer;
|
|
35
31
|
|
|
@@ -37,7 +33,7 @@
|
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
&[disabled] ~ .cobalt-CheckmarkField__Label {
|
|
40
|
-
@
|
|
36
|
+
@apply c-text-subdued;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
|
|
@@ -53,18 +49,15 @@
|
|
|
53
49
|
width: $radio-checkmark-size;
|
|
54
50
|
height: $radio-checkmark-size;
|
|
55
51
|
|
|
56
|
-
|
|
52
|
+
@apply c-rounded-full;
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
& + #{ $self }__Checkmark::after {
|
|
60
|
-
@
|
|
61
|
-
@include bg-color(accentAlt);
|
|
56
|
+
@apply c-border-accent c-bg-accentAlt c-rounded-full;
|
|
62
57
|
|
|
63
58
|
// Exception for radio inputs
|
|
64
59
|
border-width: 5px;
|
|
65
60
|
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
|
|
68
61
|
content: "";
|
|
69
62
|
opacity: 0;
|
|
70
63
|
|
|
@@ -82,14 +75,13 @@
|
|
|
82
75
|
}
|
|
83
76
|
|
|
84
77
|
&[disabled] + #{ $self }__Checkmark {
|
|
85
|
-
@
|
|
78
|
+
@apply c-border-subdued;
|
|
86
79
|
|
|
87
80
|
box-shadow: none;
|
|
88
81
|
}
|
|
89
82
|
|
|
90
83
|
&[disabled]:checked ~ #{ $self }__Checkmark::after {
|
|
91
|
-
@
|
|
92
|
-
@include bg-color(disabled);
|
|
84
|
+
@apply c-border-subdued c-bg-disabled;
|
|
93
85
|
}
|
|
94
86
|
}
|
|
95
87
|
|
|
@@ -116,7 +108,7 @@
|
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
&:checked + #{ $self }__Checkmark {
|
|
119
|
-
@
|
|
111
|
+
@apply c-bg-accent;
|
|
120
112
|
will-change: background-color;
|
|
121
113
|
}
|
|
122
114
|
|
|
@@ -135,13 +127,13 @@
|
|
|
135
127
|
}
|
|
136
128
|
|
|
137
129
|
&[disabled] + #{ $self }__Checkmark {
|
|
138
|
-
@
|
|
130
|
+
@apply c-border-subdued;
|
|
139
131
|
|
|
140
132
|
box-shadow: none;
|
|
141
133
|
}
|
|
142
134
|
|
|
143
135
|
&[disabled]:checked + #{ $self }__Checkmark {
|
|
144
|
-
@
|
|
136
|
+
@apply c-bg-disabled;
|
|
145
137
|
}
|
|
146
138
|
}
|
|
147
139
|
|
|
@@ -159,16 +151,15 @@
|
|
|
159
151
|
|
|
160
152
|
&--error {
|
|
161
153
|
#{ $self }__Input + #{ $self }__Checkmark {
|
|
162
|
-
@
|
|
154
|
+
@apply c-border-error;
|
|
163
155
|
}
|
|
164
156
|
|
|
165
157
|
#{ $self }__Input[type="radio"]:checked + #{ $self }__Checkmark::after {
|
|
166
|
-
@
|
|
167
|
-
@include bg-color(errorInteractive);
|
|
158
|
+
@apply c-border-error c-bg-errorInteractive;
|
|
168
159
|
}
|
|
169
160
|
|
|
170
161
|
#{ $self }__Input[type="checkbox"]:checked + #{ $self }__Checkmark {
|
|
171
|
-
@
|
|
162
|
+
@apply c-bg-errorInteractive;
|
|
172
163
|
}
|
|
173
164
|
}
|
|
174
165
|
}
|
|
@@ -177,7 +168,7 @@
|
|
|
177
168
|
@include form-field-container;
|
|
178
169
|
|
|
179
170
|
.cobalt-Hint {
|
|
180
|
-
|
|
171
|
+
@apply c-mt-xs c-mr-none c-mb-none c-ml-md;
|
|
181
172
|
}
|
|
182
173
|
}
|
|
183
174
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Fieldset {
|
|
3
|
-
@
|
|
3
|
+
@apply c-border-t c-border-t-subdued;
|
|
4
4
|
|
|
5
|
-
// We
|
|
6
|
-
padding: (spacing
|
|
5
|
+
// We need to keep the original calculation
|
|
6
|
+
padding: calc(theme("spacing.sm") - 1px) 0 0 0;
|
|
7
7
|
|
|
8
8
|
& > legend {
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
margin-bottom: spacing(xs);
|
|
12
|
-
padding: 0 spacing(sm) 0 0;
|
|
9
|
+
@apply c-text-title-sm c-mb-xs c-pr-sm;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
&:not(:first-child) {
|
|
16
|
-
|
|
13
|
+
@apply c-mt-lg;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
& + & {
|
|
20
|
-
|
|
17
|
+
@apply c-mt-xl;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Hint {
|
|
3
|
-
@
|
|
4
|
-
@include c-text-body-md;
|
|
3
|
+
@apply c-text-subdued c-text-body-md c-mt-xs c-ml-[1px];
|
|
5
4
|
|
|
6
5
|
position: relative;
|
|
7
6
|
|
|
8
|
-
margin-top: spacing(xs);
|
|
9
|
-
margin-left: 1px;
|
|
10
|
-
|
|
11
7
|
display: flex;
|
|
12
8
|
justify-content: flex-start;
|
|
13
9
|
align-items: flex-start;
|
|
@@ -20,15 +16,15 @@
|
|
|
20
16
|
justify-content: center;
|
|
21
17
|
align-items: flex-start;
|
|
22
18
|
flex-shrink: 0;
|
|
23
|
-
|
|
19
|
+
@apply c-mr-xs;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
&--success {
|
|
27
|
-
@
|
|
23
|
+
@apply c-text-success;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
&--error {
|
|
31
|
-
@
|
|
27
|
+
@apply c-text-error;
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
30
|
}
|
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
--visual-radio-size: 18px;
|
|
10
10
|
|
|
11
11
|
.cobalt-radio-with-details__inner {
|
|
12
|
-
@
|
|
13
|
-
@include text-color(base);
|
|
14
|
-
@include bg-color(secondary);
|
|
12
|
+
@apply c-border-baseInteractive c-text-base c-bg-secondary;
|
|
15
13
|
height: 100%;
|
|
16
14
|
display: flex;
|
|
17
15
|
flex-direction: row;
|
|
@@ -20,7 +18,7 @@
|
|
|
20
18
|
padding: spacing(sm);
|
|
21
19
|
|
|
22
20
|
cursor: pointer;
|
|
23
|
-
|
|
21
|
+
@apply c-rounded-lg;
|
|
24
22
|
|
|
25
23
|
transition: all 120ms ease-in-out;
|
|
26
24
|
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
.cobalt-radio-with-details__title {
|
|
44
|
-
@
|
|
42
|
+
@apply c-text-base;
|
|
45
43
|
font-size: 14px;
|
|
46
44
|
font-weight: 600;
|
|
47
45
|
line-height: 20px;
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
.cobalt-radio-with-details__description {
|
|
53
|
-
@
|
|
51
|
+
@apply c-text-subdued;
|
|
54
52
|
font-family: font-family(base);
|
|
55
53
|
font-size: 14px;
|
|
56
54
|
line-height: 20px;
|
|
@@ -65,7 +63,7 @@
|
|
|
65
63
|
white-space: nowrap;
|
|
66
64
|
|
|
67
65
|
& + #{ $self }__inner #{ $self }__visual-input {
|
|
68
|
-
@
|
|
66
|
+
@apply c-border-accent c-border-2;
|
|
69
67
|
position: relative;
|
|
70
68
|
top: 3px;
|
|
71
69
|
|
|
@@ -79,7 +77,7 @@
|
|
|
79
77
|
|
|
80
78
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
@apply c-rounded-full;
|
|
83
81
|
cursor: pointer;
|
|
84
82
|
|
|
85
83
|
transition: border-color 150ms ease-in-out;
|
|
@@ -93,9 +91,7 @@
|
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
&:checked + #{ $self }__inner {
|
|
96
|
-
@
|
|
97
|
-
@include text-color(accentAlt);
|
|
98
|
-
@include bg-color(accentAlt);
|
|
94
|
+
@apply c-border-accent c-text-accentAlt c-bg-accentAlt;
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
&:checked + #{ $self }__inner .cobalt-Icon {
|
|
@@ -103,7 +99,7 @@
|
|
|
103
99
|
}
|
|
104
100
|
|
|
105
101
|
&:checked + #{ $self }__inner .cobalt-contained-icon {
|
|
106
|
-
@
|
|
102
|
+
@apply c-bg-accentAlt;
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
&:checked + #{ $self }__inner #{ $self }__visual-input {
|
|
@@ -112,19 +108,18 @@
|
|
|
112
108
|
|
|
113
109
|
&:checked + #{ $self }__inner #{ $self }__title,
|
|
114
110
|
&:checked + #{ $self }__inner #{ $self }__description {
|
|
115
|
-
@
|
|
111
|
+
@apply c-text-accentAlt;
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
& + #{ $self }__inner #{ $self }__visual-input::after {
|
|
119
|
-
@
|
|
120
|
-
@include bg-color(accentAlt);
|
|
115
|
+
@apply c-border-accent c-bg-accentAlt;
|
|
121
116
|
left: 2px;
|
|
122
117
|
top: 2px;
|
|
123
118
|
|
|
124
119
|
// Execption for radio inputs
|
|
125
120
|
border-width: 5px;
|
|
126
121
|
|
|
127
|
-
|
|
122
|
+
@apply c-rounded-full;
|
|
128
123
|
content: "";
|
|
129
124
|
opacity: 0;
|
|
130
125
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
&__Input {
|
|
12
12
|
@include form-input-base($self);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
@apply c-pr-lg;
|
|
15
15
|
|
|
16
16
|
line-height: 20px;
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
// select placeholder
|
|
28
28
|
&:invalid {
|
|
29
|
-
@
|
|
29
|
+
@apply c-text-subdued;
|
|
30
30
|
opacity: 0.7;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__ContentWrapper {
|
|
21
|
-
@
|
|
21
|
+
@apply c-text-base c-my-none c-mx-sm;
|
|
22
22
|
display: flex;
|
|
23
23
|
justify-content: center;
|
|
24
24
|
align-items: center;
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
min-width: 96px;
|
|
27
27
|
|
|
28
28
|
font-size: 32px;
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&__Meta {
|
|
33
|
-
@
|
|
34
|
-
margin-left: spacing(xs);
|
|
33
|
+
@apply c-text-subdued c-ml-xs;
|
|
35
34
|
|
|
36
35
|
font-size: 15px;
|
|
37
36
|
}
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
|
|
51
50
|
font-size: 18px;
|
|
52
51
|
|
|
53
|
-
|
|
52
|
+
@apply c-rounded-lg;
|
|
54
53
|
user-select: none;
|
|
55
54
|
|
|
56
55
|
&:focus {
|
|
@@ -65,19 +64,19 @@
|
|
|
65
64
|
|
|
66
65
|
&--disabled {
|
|
67
66
|
.cobalt-Stepper__ContentWrapper {
|
|
68
|
-
@
|
|
67
|
+
@apply c-text-subdued;
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
&--success {
|
|
73
72
|
.cobalt-Stepper__ContentWrapper {
|
|
74
|
-
@
|
|
73
|
+
@apply c-text-success;
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
&--error {
|
|
79
78
|
.cobalt-Stepper__ContentWrapper {
|
|
80
|
-
@
|
|
79
|
+
@apply c-text-error;
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
}
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
resize: vertical;
|
|
21
21
|
|
|
22
22
|
&::placeholder {
|
|
23
|
-
@
|
|
23
|
+
@apply c-text-subdued;
|
|
24
24
|
opacity: 0.7;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&__RemainingChars {
|
|
29
29
|
@include withContext(".cobalt-FormField--withHint") {
|
|
30
|
-
bottom
|
|
30
|
+
@apply c-bottom-md;
|
|
31
31
|
}
|
|
32
|
-
@
|
|
32
|
+
@apply c-text-subdued;
|
|
33
33
|
|
|
34
34
|
position: absolute;
|
|
35
35
|
|
|
36
|
-
bottom
|
|
36
|
+
@apply c-bottom-xs;
|
|
37
37
|
|
|
38
38
|
width: 100%;
|
|
39
39
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@include semantic-color(icon, base, fill);
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 0;
|
|
15
|
-
left
|
|
15
|
+
@apply c-left-xs;
|
|
16
16
|
|
|
17
17
|
height: 100%;
|
|
18
18
|
display: flex;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@include form-input-base($self);
|
|
27
27
|
|
|
28
28
|
&::placeholder {
|
|
29
|
-
@
|
|
29
|
+
@apply c-text-subdued;
|
|
30
30
|
opacity: 0.7;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -79,7 +79,7 @@ $toggle-switch-size-large: 28px;
|
|
|
79
79
|
|
|
80
80
|
position: relative;
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
@apply c-mb-xs;
|
|
83
83
|
|
|
84
84
|
align-items: center;
|
|
85
85
|
flex-direction: row;
|
|
@@ -100,13 +100,10 @@ $toggle-switch-size-large: 28px;
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&__Label {
|
|
103
|
-
@
|
|
104
|
-
@include text-color(base);
|
|
103
|
+
@apply c-text-body-md c-text-base c-p-none c-pr-sm;
|
|
105
104
|
display: inline-block;
|
|
106
105
|
|
|
107
106
|
flex: 1;
|
|
108
|
-
|
|
109
|
-
padding: 0 spacing(sm) 0 0;
|
|
110
107
|
}
|
|
111
108
|
|
|
112
109
|
&__ToggleSwitch {
|
|
@@ -142,7 +139,7 @@ $toggle-switch-size-large: 28px;
|
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
&__ToggleSwitchSlider:after {
|
|
145
|
-
@
|
|
142
|
+
@apply c-text-accent;
|
|
146
143
|
position: absolute;
|
|
147
144
|
|
|
148
145
|
opacity: 0;
|
|
@@ -165,7 +162,7 @@ $toggle-switch-size-large: 28px;
|
|
|
165
162
|
&:checked
|
|
166
163
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
167
164
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
168
|
-
@
|
|
165
|
+
@apply c-bg-fill-accent;
|
|
169
166
|
}
|
|
170
167
|
|
|
171
168
|
&:not([disabled]) + .cobalt-ToggleSwitchField__ToggleSwitch,
|
|
@@ -182,7 +179,7 @@ $toggle-switch-size-large: 28px;
|
|
|
182
179
|
&[disabled]
|
|
183
180
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
184
181
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
185
|
-
@
|
|
182
|
+
@apply c-bg-fill-disabled;
|
|
186
183
|
}
|
|
187
184
|
|
|
188
185
|
&[disabled]
|
|
@@ -194,12 +191,12 @@ $toggle-switch-size-large: 28px;
|
|
|
194
191
|
&[disabled]:checked
|
|
195
192
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
196
193
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
197
|
-
@
|
|
194
|
+
@apply c-bg-fill-accent;
|
|
198
195
|
opacity: 0.5;
|
|
199
196
|
}
|
|
200
197
|
|
|
201
198
|
&[disabled] ~ .cobalt-ToggleSwitchField__Label {
|
|
202
|
-
@
|
|
199
|
+
@apply c-text-subdued;
|
|
203
200
|
opacity: 0.7;
|
|
204
201
|
}
|
|
205
202
|
|
|
@@ -214,24 +211,24 @@ $toggle-switch-size-large: 28px;
|
|
|
214
211
|
.cobalt-ToggleSwitchField__Input
|
|
215
212
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
216
213
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
217
|
-
@
|
|
214
|
+
@apply c-border-error c-border-2;
|
|
218
215
|
}
|
|
219
216
|
|
|
220
217
|
.cobalt-ToggleSwitchField__Input:focus
|
|
221
218
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
222
219
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
223
|
-
@
|
|
220
|
+
@apply c-border-error c-border-2;
|
|
224
221
|
}
|
|
225
222
|
|
|
226
223
|
.cobalt-ToggleSwitchField__Input:checked
|
|
227
224
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
228
225
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
229
|
-
@
|
|
226
|
+
@apply c-bg-fill-negative;
|
|
230
227
|
}
|
|
231
228
|
}
|
|
232
229
|
|
|
233
230
|
.cobalt-Hint {
|
|
234
|
-
|
|
231
|
+
@apply c-mt-xs c-mr-none c-mb-none c-ml-[1px];
|
|
235
232
|
}
|
|
236
233
|
|
|
237
234
|
&--large {
|
|
@@ -250,7 +247,7 @@ $toggle-switch-size-large: 28px;
|
|
|
250
247
|
}
|
|
251
248
|
|
|
252
249
|
.cobalt-ToggleSwitchField__Label {
|
|
253
|
-
|
|
250
|
+
@apply c-p-none c-pl-sm;
|
|
254
251
|
}
|
|
255
252
|
}
|
|
256
253
|
}
|
|
@@ -3,7 +3,7 @@ $formfield-maxwidth: 600px;
|
|
|
3
3
|
|
|
4
4
|
@mixin form-field-container {
|
|
5
5
|
@include withContext(".cobalt-FormField--withHint >") {
|
|
6
|
-
|
|
6
|
+
@apply c-mb-sm;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
width: 100%;
|
|
@@ -17,7 +17,7 @@ $formfield-maxwidth: 600px;
|
|
|
17
17
|
|
|
18
18
|
.cobalt- {
|
|
19
19
|
&FormField {
|
|
20
|
-
|
|
20
|
+
@apply c-mt-xs c-mb-sm c-mx-none;
|
|
21
21
|
|
|
22
22
|
min-width: $formfield-minwidth;
|
|
23
23
|
|
|
@@ -35,7 +35,7 @@ $formfield-maxwidth: 600px;
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.cobalt-FormField__Label {
|
|
38
|
-
@
|
|
38
|
+
@apply c-text-base;
|
|
39
39
|
display: inline-block;
|
|
40
40
|
|
|
41
41
|
padding: 0 0 10px 1px;
|
|
@@ -46,17 +46,19 @@ $formfield-maxwidth: 600px;
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.cobalt-Hint {
|
|
49
|
-
margin-top:
|
|
49
|
+
margin-top: calc(
|
|
50
|
+
theme("spacing.xs") * -1
|
|
51
|
+
); // to compensate the extra space added to animate the Tip
|
|
50
52
|
|
|
51
53
|
animation-name: cobalt-FormField__Hint--fade-in;
|
|
52
54
|
animation-duration: 200ms;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
& + .cobalt-FormField {
|
|
56
|
-
|
|
58
|
+
@apply c-mt-md;
|
|
57
59
|
|
|
58
60
|
.cobalt-FormField__Label {
|
|
59
|
-
|
|
61
|
+
@apply c-mt-xs;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
}
|