@drivy/cobalt 1.1.3 → 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.
Files changed (56) hide show
  1. package/components/Icon/__generated__/StarHalfIcon.js +2 -2
  2. package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
  3. package/components/Icon/__generated__/StarIcon.js +2 -2
  4. package/components/Icon/__generated__/StarIcon.js.map +1 -1
  5. package/icons/star-half.js +1 -1
  6. package/icons/star-half.svg +1 -1
  7. package/icons/star.js +1 -1
  8. package/icons/star.svg +1 -1
  9. package/package.json +15 -15
  10. package/styles/components/BasicCell/index.scss +8 -10
  11. package/styles/components/BulletList/index.scss +3 -3
  12. package/styles/components/Buttons/DefaultButton/index.scss +1 -1
  13. package/styles/components/Buttons/GhostButton/index.scss +2 -4
  14. package/styles/components/Buttons/index.scss +9 -9
  15. package/styles/components/Calendar/CalendarDayPicker/index.scss +10 -11
  16. package/styles/components/Calendar/CalendarRangePicker/index.scss +20 -21
  17. package/styles/components/Calendar/CalendarView/index.scss +11 -13
  18. package/styles/components/Callout/index.scss +5 -16
  19. package/styles/components/Card/index.scss +11 -17
  20. package/styles/components/Cell/index.scss +6 -4
  21. package/styles/components/Chip/index.scss +8 -10
  22. package/styles/components/ContainedIcon/index.scss +11 -11
  23. package/styles/components/EmptyState/index.scss +6 -12
  24. package/styles/components/Flash/index.scss +7 -13
  25. package/styles/components/Form/Autocomplete/index.scss +1 -3
  26. package/styles/components/Form/CheckablePill.scss +9 -19
  27. package/styles/components/Form/Checkmark.scss +14 -23
  28. package/styles/components/Form/ComposedField.scss +2 -2
  29. package/styles/components/Form/Fieldset.scss +6 -9
  30. package/styles/components/Form/Hint.scss +4 -8
  31. package/styles/components/Form/RadioWithDetails.scss +11 -16
  32. package/styles/components/Form/Select.scss +2 -2
  33. package/styles/components/Form/Stepper.scss +7 -8
  34. package/styles/components/Form/TextArea.scss +4 -4
  35. package/styles/components/Form/TextInput.scss +2 -2
  36. package/styles/components/Form/ToggleSwitch.scss +12 -15
  37. package/styles/components/Form/field.scss +8 -6
  38. package/styles/components/Form/form.scss +8 -12
  39. package/styles/components/Helper/index.scss +4 -9
  40. package/styles/components/Icon/index.scss +4 -6
  41. package/styles/components/Pagination/index.scss +1 -1
  42. package/styles/components/PhotoDropzone/index.scss +9 -12
  43. package/styles/components/Pill/index.scss +7 -17
  44. package/styles/components/PlateNumber/index.scss +1 -7
  45. package/styles/components/Popover/index.scss +20 -19
  46. package/styles/components/PriceTable/index.scss +6 -5
  47. package/styles/components/ProgressBanner/index.scss +5 -18
  48. package/styles/components/ProgressBar/index.scss +6 -16
  49. package/styles/components/ProgressCircular/index.scss +5 -5
  50. package/styles/components/Rating/index.scss +4 -5
  51. package/styles/components/Sidepanel/index.scss +4 -4
  52. package/styles/components/TabBar/index.scss +10 -9
  53. package/styles/components/Tabs/index.scss +1 -2
  54. package/styles/components/Tag/index.scss +11 -23
  55. package/styles/core/global-variables.scss +1 -1
  56. package/utils/getCobaltTailwindcssConfig.js.map +1 -1
@@ -1,13 +1,9 @@
1
1
  .cobalt- {
2
2
  &Hint {
3
- @include text-color(subdued);
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
- margin-right: spacing(xs);
19
+ @apply c-mr-xs;
24
20
  }
25
21
 
26
22
  &--success {
27
- @include text-color(success);
23
+ @apply c-text-success;
28
24
  }
29
25
 
30
26
  &--error {
31
- @include text-color(error);
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
- @include border(baseInteractive);
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
- border-radius: border-radius(lg);
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
- @include text-color(base);
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
- @include text-color(subdued);
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
- @include border(accent, 2);
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
- border-radius: 50%;
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
- @include border-color(accent);
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
- @include bg-color(accentAlt);
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
- @include text-color(accentAlt);
111
+ @apply c-text-accentAlt;
116
112
  }
117
113
 
118
114
  & + #{ $self }__inner #{ $self }__visual-input::after {
119
- @include border(accent);
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
- border-radius: 50%;
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
- padding-right: spacing(lg);
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
- @include text-color(subdued);
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
- @include text-color(base);
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
- margin: 0 spacing(sm);
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
- @include text-color(subdued);
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
- border-radius: border-radius(lg);
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
- @include text-color(subdued);
67
+ @apply c-text-subdued;
69
68
  }
70
69
  }
71
70
 
72
71
  &--success {
73
72
  .cobalt-Stepper__ContentWrapper {
74
- @include text-color(success);
73
+ @apply c-text-success;
75
74
  }
76
75
  }
77
76
 
78
77
  &--error {
79
78
  .cobalt-Stepper__ContentWrapper {
80
- @include text-color(error);
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
- @include text-color(subdued);
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: spacing(md);
30
+ @apply c-bottom-md;
31
31
  }
32
- @include text-color(subdued);
32
+ @apply c-text-subdued;
33
33
 
34
34
  position: absolute;
35
35
 
36
- bottom: spacing(xs);
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: spacing(xs);
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
- @include text-color(subdued);
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
- margin-bottom: spacing(xs);
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
- @include c-text-body-md;
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
- @include text-color(accent);
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
- @include fill-bg-color(accent);
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
- @include fill-bg-color(disabled);
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
- @include fill-bg-color(accent);
194
+ @apply c-bg-fill-accent;
198
195
  opacity: 0.5;
199
196
  }
200
197
 
201
198
  &[disabled] ~ .cobalt-ToggleSwitchField__Label {
202
- @include text-color(subdued);
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
- @include border(error, 2);
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
- @include border(error, 2);
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
- @include fill-bg-color(negative);
226
+ @apply c-bg-fill-negative;
230
227
  }
231
228
  }
232
229
 
233
230
  .cobalt-Hint {
234
- margin: spacing(xs) 0 0 1px;
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
- padding: 0 0 0 spacing(sm);
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
- margin-bottom: spacing(sm);
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
- margin: spacing(xs) 0 spacing(sm) 0;
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
- @include text-color(base);
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: -(spacing(xs)); // to compensate the extra space added to animate the Tip
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
- margin-top: spacing(md);
58
+ @apply c-mt-md;
57
59
 
58
60
  .cobalt-FormField__Label {
59
- margin-top: spacing(xs);
61
+ @apply c-mt-xs;
60
62
  }
61
63
  }
62
64
  }
@@ -1,22 +1,20 @@
1
1
  @mixin form-input-base($container) {
2
- @include text-color(base);
3
- @include border(strongInteractive);
4
- @include bg-color(secondary);
2
+ @apply c-text-base c-border-strongInteractive c-bg-secondary;
5
3
  @include withContext(#{$container}--success) {
6
- @include border-color(success);
4
+ @apply c-border-success;
7
5
 
8
6
  &:not(:disabled):hover,
9
7
  &:not(:disabled):focus {
10
- @include border(success);
8
+ @apply c-border-success;
11
9
  }
12
10
  }
13
11
 
14
12
  @include withContext(#{$container}--error) {
15
- @include border-color(error);
13
+ @apply c-border-error;
16
14
 
17
15
  &:not(:disabled):hover,
18
16
  &:not(:disabled):focus {
19
- @include border(error);
17
+ @apply c-border-error;
20
18
  }
21
19
  }
22
20
 
@@ -36,13 +34,13 @@
36
34
  transition: border-color 150ms ease-in-out;
37
35
 
38
36
  &:not(:disabled):not(:read-only):hover {
39
- @include text-color(base);
37
+ @apply c-text-base;
40
38
 
41
39
  box-shadow: elevation(base);
42
40
  }
43
41
 
44
42
  &:not(:disabled):not(:read-only):focus {
45
- @include border(accent, 2);
43
+ @apply c-border-accent c-border-2;
46
44
 
47
45
  outline: none;
48
46
  }
@@ -57,9 +55,7 @@
57
55
 
58
56
  &:disabled,
59
57
  &:not(select):read-only {
60
- @include border-color(base);
61
- @include text-color(subdued);
62
- @include bg-color(neutral);
58
+ @apply c-border-base c-text-subdued c-bg-neutral;
63
59
  }
64
60
 
65
61
  &:disabled {
@@ -1,17 +1,12 @@
1
1
  .cobalt-helper {
2
- @include border(base);
3
- @include bg-color(secondary);
4
- padding: spacing(sm);
5
-
6
- border-radius: border-radius(xl);
2
+ @apply c-border c-border-base c-bg-secondary c-rounded-xl;
3
+ padding: theme("spacing.sm");
7
4
 
8
5
  &__title {
9
- @include c-text-title-sm;
10
- @include text-color(base);
6
+ @apply c-text-title-sm c-text-base;
11
7
  }
12
8
 
13
9
  &__content {
14
- margin-top: spacing(xs);
15
- margin-bottom: spacing(sm);
10
+ @apply c-mt-xs c-mb-sm;
16
11
  }
17
12
  }
@@ -24,12 +24,10 @@
24
24
  }
25
25
 
26
26
  &Icon--contained {
27
- @include bg-color(neutralAlt);
27
+ @apply c-bg-neutralAlt c-rounded-lg;
28
28
  height: 40px;
29
29
  width: 40px;
30
30
  padding: math.div(40px - 24px, 2);
31
-
32
- border-radius: border-radius(lg);
33
31
  }
34
32
 
35
33
  &Icon--size16 {
@@ -42,7 +40,7 @@
42
40
 
43
41
  padding: math.div(28px - 16px, 2);
44
42
 
45
- border-radius: border-radius(md);
43
+ @apply c-rounded-md;
46
44
  }
47
45
  }
48
46
 
@@ -56,7 +54,7 @@
56
54
 
57
55
  padding: math.div(32px - 20px, 2);
58
56
 
59
- border-radius: border-radius(md);
57
+ @apply c-rounded-md;
60
58
  }
61
59
  }
62
60
 
@@ -70,7 +68,7 @@
70
68
 
71
69
  padding: math.div(52px - 32px, 2);
72
70
 
73
- border-radius: border-radius(lg);
71
+ @apply c-rounded-lg;
74
72
  }
75
73
  }
76
74
 
@@ -1,7 +1,7 @@
1
1
  .cobalt-pagination {
2
+ @apply c-gap-xs;
2
3
  display: flex;
3
4
  justify-content: center;
4
- gap: spacing(xs);
5
5
  }
6
6
 
7
7
  .cobalt-pagination__DefaultButton {
@@ -1,8 +1,9 @@
1
1
  .cobalt-photo-dropzone {
2
- @include bg-color(neutralAlt);
3
- @include border(accentAlt, default, dashed);
2
+ @apply c-bg-neutralAlt c-border c-border-accentAlt c-rounded-xl;
4
3
  position: relative;
5
4
 
5
+ border-style: dashed;
6
+
6
7
  display: flex;
7
8
  align-items: center;
8
9
  justify-content: center;
@@ -12,7 +13,6 @@
12
13
 
13
14
  text-align: center;
14
15
 
15
- border-radius: border-radius(xl);
16
16
  cursor: pointer;
17
17
 
18
18
  transition: background-color 0.25s;
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .cobalt-photo-dropzone--dragging {
34
- @include bg-color(accentAlt);
34
+ @apply c-bg-accentAlt;
35
35
 
36
36
  transition: background-color 0.25s;
37
37
 
@@ -42,16 +42,14 @@
42
42
  }
43
43
 
44
44
  .cobalt-photo-dropzone--loading {
45
- @include bg-color(neutral);
46
- @include text-color(accent);
45
+ @apply c-bg-neutral c-text-accent;
47
46
  border-style: solid;
48
47
 
49
48
  cursor: default;
50
49
  }
51
50
 
52
51
  .cobalt-photo-dropzone--errored {
53
- @include bg-color(neutral);
54
- @include border-color(error);
52
+ @apply c-bg-neutral c-border-error;
55
53
  border-style: solid;
56
54
  }
57
55
 
@@ -63,7 +61,7 @@
63
61
  }
64
62
 
65
63
  .cobalt-photo-dropzone__description--strong {
66
- @include text-color(accent);
64
+ @apply c-text-accent;
67
65
  font-weight: 700;
68
66
  }
69
67
 
@@ -71,12 +69,12 @@
71
69
  width: 100%;
72
70
  height: 100%;
73
71
 
74
- border-radius: border-radius();
72
+ @apply c-rounded;
75
73
  object-fit: cover;
76
74
  }
77
75
 
78
76
  .cobalt-photo-dropzone__delete-button {
79
- @include bg-color(neutralAlt);
77
+ @apply c-bg-neutralAlt c-rounded-full;
80
78
  position: absolute;
81
79
  bottom: 1rem;
82
80
  right: 1rem;
@@ -86,7 +84,6 @@
86
84
 
87
85
  border: 0;
88
86
 
89
- border-radius: border-radius(full);
90
87
  cursor: pointer;
91
88
  opacity: 0;
92
89
 
@@ -1,52 +1,42 @@
1
1
  $pill-height: 28px;
2
- $group-item-spacing: spacing(xs);
3
2
 
4
3
  .cobalt- {
5
4
  &Pill {
6
- @include bg-color(neutralAlt);
7
- @include text-color(base);
5
+ @apply c-bg-neutralAlt c-text-base c-rounded-full c-py-2xs c-px-sm;
8
6
  display: inline-flex;
9
7
  align-items: center;
10
8
 
11
9
  height: $pill-height;
12
- padding: spacing("2xs") spacing(sm);
13
10
 
14
11
  font-size: 13px;
15
12
  white-space: nowrap;
16
-
17
- border-radius: $pill-height;
18
13
  }
19
14
 
20
15
  &Pill--large {
16
+ @apply c-py-xs c-px-md;
21
17
  $pill-height: 40px;
22
18
  height: $pill-height;
23
- padding: spacing(xs) spacing(md);
24
-
25
- border-radius: $pill-height;
26
19
  }
27
20
 
28
21
  &Pill--colorConnect {
29
- @include text-color(connect);
22
+ @apply c-text-connect;
30
23
  }
31
24
 
32
25
  &Pill--overlayed {
33
- @include bg-color(accentAlt);
34
- @include text-color(accentAlt);
26
+ @apply c-bg-accentAlt c-text-accentAlt;
35
27
  }
36
28
 
37
29
  &Pill__Icon {
38
- margin-right: spacing("2xs");
30
+ @apply c-mr-2xs;
39
31
  }
40
32
 
41
33
  &PillGroup {
42
- margin-top: (-1 * $group-item-spacing);
43
- margin-left: (-1 * $group-item-spacing);
34
+ @apply c--mt-xs c--ml-xs;
44
35
  }
45
36
 
46
37
  &PillGroup__Item {
38
+ @apply c-mt-xs c-ml-xs;
47
39
  display: inline-block;
48
- margin-top: $group-item-spacing;
49
- margin-left: $group-item-spacing;
50
40
 
51
41
  vertical-align: top;
52
42
  }
@@ -1,7 +1,5 @@
1
1
  .cobalt-plate-number {
2
- @include border(base);
3
- @include bg-color(primary);
4
- @include text-color(base);
2
+ @apply c-border-base c-bg-primary c-text-base c-rounded c-py-[2px] c-px-2xs;
5
3
 
6
4
  display: inline-flex;
7
5
 
@@ -9,8 +7,6 @@
9
7
 
10
8
  height: 20px;
11
9
 
12
- padding: 2px spacing("2xs");
13
-
14
10
  font-family: font-family(base);
15
11
 
16
12
  font-size: 14px;
@@ -19,7 +15,5 @@
19
15
 
20
16
  line-height: 14px;
21
17
 
22
- border-radius: border-radius();
23
-
24
18
  letter-spacing: normal;
25
19
  }