@citizenplane/pimp 10.0.7 → 10.1.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.
Files changed (64) hide show
  1. package/dist/pimp.es.js +1305 -1303
  2. package/dist/pimp.umd.js +22 -22
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/src/assets/css/base.css +16 -1
  6. package/src/assets/css/colors.css +111 -110
  7. package/src/assets/css/dimensions.css +36 -35
  8. package/src/assets/css/easings.css +2 -1
  9. package/src/assets/css/shadows.css +67 -65
  10. package/src/assets/css/tokens.css +355 -386
  11. package/src/assets/css/typography.css +109 -0
  12. package/src/assets/main.css +1 -1
  13. package/src/assets/styles/helpers/_functions.scss +2 -2
  14. package/src/assets/styles/helpers/_mixins.scss +1 -1
  15. package/src/assets/styles/utilities/_index.scss +26 -5
  16. package/src/components/BaseInputLabel.vue +23 -21
  17. package/src/components/BaseSelectClearButton.vue +15 -9
  18. package/src/components/CpAirlineLogo.vue +1 -1
  19. package/src/components/CpAlert.vue +16 -16
  20. package/src/components/CpBadge.vue +149 -29
  21. package/src/components/CpButton.vue +135 -110
  22. package/src/components/CpButtonGroup.vue +3 -3
  23. package/src/components/CpCalendar.vue +32 -32
  24. package/src/components/CpCheckbox.vue +43 -33
  25. package/src/components/CpContextualMenu.vue +6 -9
  26. package/src/components/CpDate.vue +53 -40
  27. package/src/components/CpDatepicker.vue +3 -3
  28. package/src/components/CpDialog.vue +19 -19
  29. package/src/components/CpHeading.vue +23 -23
  30. package/src/components/CpInput.vue +71 -52
  31. package/src/components/CpItemActions.vue +4 -4
  32. package/src/components/CpLoader.vue +14 -7
  33. package/src/components/CpMenuItem.vue +23 -17
  34. package/src/components/CpMultiselect.vue +84 -58
  35. package/src/components/CpPartnerBadge.vue +13 -13
  36. package/src/components/CpRadio.vue +32 -24
  37. package/src/components/CpSelect.vue +43 -30
  38. package/src/components/CpSelectMenu.vue +39 -39
  39. package/src/components/CpSwitch.vue +51 -40
  40. package/src/components/CpTable.vue +241 -90
  41. package/src/components/CpTableColumnEditor.vue +18 -16
  42. package/src/components/CpTableEmptyState.vue +9 -9
  43. package/src/components/CpTabs.vue +17 -36
  44. package/src/components/CpTelInput.vue +76 -70
  45. package/src/components/CpTextarea.vue +27 -17
  46. package/src/components/CpToast.vue +49 -49
  47. package/src/components/CpTooltip.vue +6 -6
  48. package/src/components/CpTransitionDialog.vue +1 -1
  49. package/src/constants/Sizes.ts +5 -0
  50. package/src/constants/colors/Colors.ts +15 -5
  51. package/src/constants/colors/ToggleColors.ts +2 -1
  52. package/src/libs/CoreDatepicker.vue +21 -18
  53. package/src/stories/CpBadge.stories.ts +25 -17
  54. package/src/stories/CpButton.stories.ts +6 -5
  55. package/src/stories/CpCheckbox.stories.ts +4 -4
  56. package/src/stories/CpContextualMenu.stories.ts +3 -2
  57. package/src/stories/CpLoader.stories.ts +2 -2
  58. package/src/stories/CpMenuItem.stories.ts +104 -0
  59. package/src/stories/CpRadio.stories.ts +29 -2
  60. package/src/stories/CpSwitch.stories.ts +27 -0
  61. package/src/stories/CpTable.stories.ts +94 -0
  62. package/src/assets/css/spacing.css +0 -43
  63. package/src/assets/styles/helpers/_keyframes.scss +0 -48
  64. package/src/assets/styles/variables/_sizing.scss +0 -4
@@ -10,7 +10,7 @@
10
10
  :type="type"
11
11
  >
12
12
  <span class="cpButton__body">
13
- <span v-if="isLoading" class="cpButton__loader"><cp-loader color="#B2B2BD" /></span>
13
+ <span v-if="isLoading" class="cpButton__loader"><cp-loader :color="Colors.NEUTRAL" /></span>
14
14
  <span v-if="hasIconBefore" class="cpButton__icon cpButton__icon--isBefore">
15
15
  <slot name="leading-icon" />
16
16
  </span>
@@ -84,162 +84,164 @@ const dynamicClasses = computed(() => {
84
84
  </script>
85
85
 
86
86
  <style lang="scss">
87
- // Mixins
88
- @mixin cp-button-default($className, $color) {
87
+ @mixin cp-button-default($className, $textColor, $textColorHover) {
89
88
  &--isDefault#{&}--is#{$className} {
89
+ background-color: var(--cp-background-primary);
90
+ box-shadow:
91
+ var(--cp-drop-shadow-3xs-offset-x) var(--cp-drop-shadow-3xs-offset-y) var(--cp-drop-shadow-3xs-blur) -1px
92
+ var(--cp-drop-shadow-3xs-color),
93
+ 0 0 0 var(--cp-dimensions-0_25) var(--cp-border-soft-hover);
94
+
90
95
  &,
91
96
  &:visited {
92
- color: $color;
97
+ color: $textColor;
98
+ }
99
+
100
+ &:active,
101
+ &:hover {
102
+ background-color: var(--cp-background-primary-hover);
103
+ box-shadow:
104
+ var(--cp-drop-shadow-3xs-offset-x) var(--cp-drop-shadow-3xs-offset-y) var(--cp-drop-shadow-3xs-blur) -1px
105
+ var(--cp-drop-shadow-3xs-color),
106
+ 0 0 0 var(--cp-dimensions-0_25) $textColorHover;
107
+ color: $textColorHover;
108
+ }
109
+
110
+ &:focus,
111
+ &:focus-visible {
112
+ outline: fn.px-to-rem(2) solid $textColorHover;
113
+ outline-offset: fn.px-to-rem(3);
93
114
  }
94
115
  }
95
116
  }
96
117
 
97
- @mixin cp-button-primary($className, $color) {
118
+ @mixin cp-button-primary($className, $color, $hoverColor) {
98
119
  &--isPrimary#{&}--is#{$className} {
99
120
  background-color: $color;
100
- box-shadow: 0 0 0 fn.px-to-rem(1) $color;
121
+ color: var(--cp-text-white);
101
122
 
102
123
  &:hover {
103
- background-color: color.scale($color, $lightness: 7%);
104
- box-shadow: 0 0 0 fn.px-to-rem(1) color.scale($color, $lightness: 7%);
124
+ background-color: $hoverColor;
105
125
  }
106
126
 
127
+ &:focus,
128
+ &:focus-visible,
107
129
  &:active {
108
- background-color: color.scale($color, $lightness: -12%);
109
- box-shadow: 0 0 0 fn.px-to-rem(1) color.scale($color, $lightness: -12%);
130
+ background-color: $hoverColor;
131
+ outline: fn.px-to-rem(2) solid $color;
110
132
  }
111
133
  }
112
134
  }
113
135
 
114
- @mixin cp-button-minimal($className, $color) {
136
+ @mixin cp-button-tertiary($className, $textColor, $hoverColor) {
115
137
  &--isMinimal#{&}--is#{$className} {
138
+ color: $textColor;
139
+ box-shadow: none;
140
+
116
141
  &,
117
142
  &:visited {
118
- color: $color;
143
+ color: $textColor;
119
144
  }
120
145
 
121
146
  &:hover {
122
- background: color.scale($color, $lightness: 90%);
147
+ background: $hoverColor;
123
148
  }
124
149
 
150
+ &:focus,
151
+ &:focus-visible,
125
152
  &:active {
126
- background: color.scale($color, $lightness: 80%);
127
- color: color.scale($color, $lightness: -10%);
153
+ outline: fn.px-to-rem(2) solid $textColor;
128
154
  }
129
- }
130
- }
131
155
 
132
- @mixin cp-button-style($className, $color) {
133
- @include cp-button-primary($className, $color);
134
- @include cp-button-minimal($className, $color);
135
-
136
- &--isMinimal#{&}--is#{$className}:focus {
137
- outline: fn.px-to-rem(2) solid $color;
138
- }
139
-
140
- &--isPrimary#{&}--is#{$className}:focus {
141
- box-shadow: 0 0 0 fn.px-to-em(3) color.scale($color, $lightness: 70%);
156
+ &:active {
157
+ background: $hoverColor;
158
+ color: $textColor;
159
+ }
142
160
  }
143
161
  }
144
162
 
145
163
  .cpButton {
146
164
  border-radius: fn.px-to-rem(1000);
147
165
  background-color: transparent;
148
- padding: sp.$space sp.$space-md;
149
- font-size: fn.px-to-rem(16);
150
- box-shadow: 0 0 0 fn.px-to-rem(1) colors.$border-color;
151
- line-height: fn.px-to-rem(24);
166
+ padding: var(--cp-spacing-md) var(--cp-spacing-lg);
167
+ font-size: var(--cp-text-size-md);
168
+ box-shadow: var(--cp-shadows-3xs);
169
+ line-height: var(--cp-line-height-md); /* 150% */
152
170
  text-decoration: none;
153
- color: colors.$neutral-dark;
171
+ color: var(--cp-text-primary);
154
172
  font-weight: 500;
155
173
  transition-property: box-shadow, background-color, transform, width;
156
174
  transition-duration: 150ms;
157
175
  transition-timing-function: ease;
176
+ outline-offset: fn.px-to-rem(2);
158
177
  cursor: pointer;
159
178
 
160
179
  &,
161
180
  &:visited {
162
- color: colors.$neutral-dark;
163
- }
164
-
165
- &,
166
- &__body {
167
- display: inline-flex;
168
- justify-content: center;
169
- align-items: center;
170
- }
171
-
172
- &:hover {
173
- transform: translateY(fn.px-to-rem(-1));
181
+ color: var(--cp-text-primary);
174
182
  }
175
183
 
176
- &:active {
177
- transform: translateY(fn.px-to-rem(1));
178
- }
179
-
180
- &--isDefault {
181
- background-color: colors.$neutral-light;
182
- box-shadow: 0 0 0 fn.px-to-rem(1) colors.$neutral-dark-4;
183
-
184
+ &--isDefault,
185
+ &--isPrimary,
186
+ &--isMinimal {
184
187
  &:hover {
185
- background-color: color.scale(colors.$neutral-dark, $lightness: 98%);
186
- box-shadow: 0 0 0 fn.px-to-rem(1) colors.$primary-color;
187
- }
188
-
189
- &:active {
190
- background-color: color.scale(colors.$neutral-dark, $lightness: 95%);
188
+ background-color: var(--cp-background-primary-hover);
191
189
  }
192
190
 
193
191
  &:focus {
192
+ outline: fn.px-to-rem(2) solid var(--cp-border-strong);
194
193
  box-shadow: none;
195
- outline: fn.px-to-rem(2) solid currentColor;
196
194
  }
197
195
  }
198
196
 
199
- &--isDefault,
200
- &--isPrimary {
201
- filter: drop-shadow(0 fn.px-to-rem(1) fn.px-to-rem(2) rgba(colors.$neutral-dark, 0.08));
197
+ &--isDefault {
198
+ box-shadow: 0 0 0 fn.px-to-rem(1) var(--cp-border-strong);
202
199
  }
203
200
 
204
- @include cp-button-default('Blue', colors.$secondary-color);
205
- @include cp-button-default('Purple', colors.$primary-color);
206
- @include cp-button-default('Green', colors.$success-color);
207
- @include cp-button-default('Orange', colors.$warning-color);
208
- @include cp-button-default('Red', colors.$error-color);
209
-
210
- &--isPrimary {
211
- &,
212
- &:visited {
213
- color: colors.$neutral-light;
214
- }
201
+ &--isMinimal {
202
+ box-shadow: none;
203
+ }
215
204
 
216
- &:hover {
217
- box-shadow:
218
- 0 fn.px-to-rem(4) fn.px-to-rem(6) rgba(50, 50, 93, 0.11),
219
- 0 fn.px-to-rem(1) fn.px-to-rem(3) rgba(colors.$neutral-dark, 0.08);
220
- }
205
+ &,
206
+ &__body {
207
+ display: inline-flex;
208
+ justify-content: center;
209
+ align-items: center;
210
+ }
221
211
 
222
- &:active {
223
- box-shadow:
224
- inset 0 0 0 fn.px-to-em(1) rgba(67, 90, 111, 0.14),
225
- inset 0 fn.px-to-em(1) fn.px-to-em(1) 0 rgba(67, 90, 111, 0.06);
226
- }
212
+ &:hover {
213
+ transform: translateY(fn.px-to-rem(-1));
227
214
  }
228
215
 
229
- &--isMinimal {
230
- box-shadow: none;
216
+ &:active {
217
+ transform: translateY(fn.px-to-rem(1));
231
218
  }
232
219
 
233
- @include cp-button-style('Blue', colors.$secondary-color);
234
- @include cp-button-style('Purple', colors.$primary-color);
235
- @include cp-button-style('Green', colors.$success-color);
236
- @include cp-button-style('Orange', colors.$warning-color);
237
- @include cp-button-style('Red', colors.$error-color);
220
+ // Default appearance (style secondary on Figma)
221
+ @include cp-button-default('Blue', var(--cp-text-blue-primary), var(--cp-text-blue-primary-hover));
222
+ @include cp-button-default('Purple', var(--cp-text-accent-primary), var(--cp-text-accent-primary-hover));
223
+ @include cp-button-default('Green', var(--cp-text-success-primary), var(--cp-text-success-primary-hover));
224
+ @include cp-button-default('Orange', var(--cp-text-warning-primary), var(--cp-text-warning-primary-hover));
225
+ @include cp-button-default('Red', var(--cp-text-error-primary), var(--cp-text-error-primary-hover));
226
+
227
+ // Primary appearance (style primary on Figma)
228
+ @include cp-button-primary('Blue', var(--cp-background-blue-solid), var(--cp-background-blue-solid-hover));
229
+ @include cp-button-primary('Purple', var(--cp-background-accent-solid), var(--cp-background-accent-solid-hover));
230
+ @include cp-button-primary('Green', var(--cp-background-success-solid), var(--cp-background-success-solid-hover));
231
+ @include cp-button-primary('Orange', var(--cp-background-warning-solid), var(--cp-background-warning-solid-hover));
232
+ @include cp-button-primary('Red', var(--cp-background-error-solid), var(--cp-background-error-solid-hover));
233
+
234
+ // Minimal appearance (style tertiary on Figma)
235
+ @include cp-button-tertiary('Blue', var(--cp-text-blue-primary), var(--cp-background-blue-primary-hover));
236
+ @include cp-button-tertiary('Purple', var(--cp-text-accent-primary), var(--cp-background-accent-primary-hover));
237
+ @include cp-button-tertiary('Green', var(--cp-text-success-primary), var(--cp-background-success-primary-hover));
238
+ @include cp-button-tertiary('Orange', var(--cp-text-warning-primary), var(--cp-background-warning-primary-hover));
239
+ @include cp-button-tertiary('Red', var(--cp-text-error-primary), var(--cp-background-error-primary-hover));
238
240
 
239
241
  &--isDisabled {
240
242
  box-shadow: none !important;
241
- background-color: colors.$neutral-light-1 !important;
242
- color: colors.$neutral-dark-2 !important;
243
+ background-color: var(--cp-background-disabled) !important;
244
+ color: var(--cp-text-disabled) !important;
243
245
  cursor: not-allowed !important;
244
246
  user-select: none;
245
247
 
@@ -258,9 +260,12 @@ const dynamicClasses = computed(() => {
258
260
  }
259
261
 
260
262
  &__body {
263
+ display: flex;
264
+ align-items: center;
265
+ gap: var(--cp-spacing-sm-md);
261
266
  position: relative;
262
267
  text-align: center;
263
- transition: padding-left 250ms easings.$easing-elastic;
268
+ transition: padding-left 250ms var(--cp-easing-elastic);
264
269
  }
265
270
 
266
271
  &__icon,
@@ -281,18 +286,10 @@ const dynamicClasses = computed(() => {
281
286
  @include mx.square-sizing(20);
282
287
 
283
288
  flex-shrink: 0;
284
-
285
- &--isBefore:not(:only-child) {
286
- margin-right: sp.$space;
287
- }
288
-
289
- &--isAfter:not(:only-child) {
290
- margin-left: sp.$space;
291
- }
292
289
  }
293
290
 
294
291
  &--isLoading .cpButton__body {
295
- padding-left: calc(#{fn.px-to-rem(24) + sp.$space});
292
+ padding-left: calc(#{var(--cp-spacing-2xl)} + #{var(--cp-spacing-md)});
296
293
  }
297
294
 
298
295
  &__loader {
@@ -305,18 +302,24 @@ const dynamicClasses = computed(() => {
305
302
  }
306
303
 
307
304
  &--isSquare {
308
- border-radius: fn.px-to-rem(8);
305
+ border-radius: var(--cp-radius-md);
309
306
 
310
307
  &.cpButton--lg {
311
- border-radius: fn.px-to-rem(10);
308
+ border-radius: var(--cp-radius-md-lg);
309
+ }
310
+
311
+ &.cpButton--2xs {
312
+ border-radius: var(--cp-radius-sm-md);
312
313
  }
313
314
  }
314
315
 
315
316
  &--lg {
316
- padding: sp.$space-md sp.$space-lg;
317
+ padding: var(--cp-spacing-lg) var(--cp-spacing-xl);
318
+ font-size: var(--cp-text-size-md);
319
+ line-height: var(--cp-line-height-md); /* 150% */
317
320
 
318
321
  &.cpButton--isIcon {
319
- padding: sp.$space-md;
322
+ padding: var(--cp-spacing-lg);
320
323
  }
321
324
 
322
325
  .cpButton__icon,
@@ -327,15 +330,20 @@ const dynamicClasses = computed(() => {
327
330
 
328
331
  &--sm,
329
332
  &--xs {
330
- padding: sp.$space-sm sp.$space;
331
- font-size: fn.px-to-rem(14);
333
+ .cpButton__body {
334
+ gap: var(--cp-spacing-xs);
335
+ }
332
336
 
333
337
  &.cpButton--isIcon {
334
- padding: fn.px-to-rem(6);
338
+ padding: var(--cp-spacing-sm-md);
335
339
  }
336
340
  }
337
341
 
338
342
  &--sm {
343
+ padding: var(--cp-spacing-sm-md) var(--cp-spacing-md);
344
+ font-size: var(--cp-text-size-sm);
345
+ line-height: var(--cp-line-height-sm); /* 142.857% */
346
+
339
347
  .cpButton__icon,
340
348
  .cpButton__loader {
341
349
  @include mx.square-sizing(20);
@@ -343,12 +351,29 @@ const dynamicClasses = computed(() => {
343
351
  }
344
352
 
345
353
  &--xs {
346
- line-height: fn.px-to-rem(20);
354
+ font-size: var(--cp-text-size-sm);
355
+ padding: var(--cp-spacing-sm) var(--cp-spacing-md);
356
+ line-height: var(--cp-line-height-sm);
347
357
 
348
358
  .cpButton__icon,
349
359
  .cpButton__loader {
350
360
  @include mx.square-sizing(16);
351
361
  }
352
362
  }
363
+
364
+ &--2xs {
365
+ font-size: var(--cp-text-size-xs);
366
+ padding: var(--cp-spacing-sm) var(--cp-spacing-md);
367
+ line-height: var(--cp-line-height-xs);
368
+
369
+ .cpButton__body {
370
+ gap: var(--cp-spacing-xs);
371
+ }
372
+
373
+ .cpButton__icon,
374
+ .cpButton__loader {
375
+ @include mx.square-sizing(12);
376
+ }
377
+ }
353
378
  }
354
379
  </style>
@@ -10,8 +10,8 @@
10
10
  padding: fn.px-to-rem(1);
11
11
  align-items: flex-start;
12
12
  border-radius: fn.px-to-rem(4);
13
- box-shadow: 0 0 0 fn.px-to-rem(1) colors.$border-color;
14
- gap: sp.$space-xs;
13
+ box-shadow: 0 0 0 fn.px-to-rem(1) var(--cp-border-soft);
14
+ gap: var(--cp-spacing-xs);
15
15
 
16
16
  > * {
17
17
  position: relative;
@@ -28,7 +28,7 @@
28
28
  width: fn.px-to-rem(1);
29
29
  height: calc(100% + fn.px-to-rem(2));
30
30
  top: fn.px-to-rem(-1);
31
- background-color: colors.$border-color;
31
+ background-color: var(--cp-border-soft);
32
32
  }
33
33
  }
34
34
  }
@@ -277,7 +277,7 @@ watch(isInline, (value) => {
277
277
  }
278
278
 
279
279
  &__datepicker:not(&__datepicker--isInline) {
280
- margin-top: 10px;
280
+ margin-top: var(--cp-dimensions-2_5);
281
281
  }
282
282
 
283
283
  @media (min-width: 350px) {
@@ -292,7 +292,7 @@ watch(isInline, (value) => {
292
292
  }
293
293
 
294
294
  &__datepicker:not(&__datepicker--isInline) {
295
- margin-top: 16px;
295
+ margin-top: var(--cp-spacing-xl);
296
296
  }
297
297
 
298
298
  // Opening transition layout adaptation
@@ -306,22 +306,22 @@ watch(isInline, (value) => {
306
306
  }
307
307
 
308
308
  &__input input:disabled {
309
- background-color: colors.$neutral-light;
309
+ background-color: var(--cp-background-white);
310
310
  }
311
311
 
312
312
  .footer-container {
313
- background: colors.$neutral-light;
314
- border-top: 1px solid colors.$neutral-dark-5;
313
+ background: var(--cp-background-white);
314
+ border-top: 1px solid var(--cp-border-soft);
315
315
 
316
316
  .asd__recurency--action {
317
- padding: 16px;
317
+ padding: var(--cp-spacing-xl);
318
318
  display: flex;
319
319
  align-items: center;
320
320
  justify-content: space-between;
321
321
 
322
322
  button {
323
- font-size: 16px;
324
- color: colors.$neutral-dark;
323
+ font-size: var(--cp-text-size-md);
324
+ color: var(--cp-text-primary);
325
325
  }
326
326
  }
327
327
 
@@ -329,9 +329,9 @@ watch(isInline, (value) => {
329
329
  border: #b5b5b5;
330
330
 
331
331
  &:not([disabled]) {
332
- background-color: colors.$primary-color;
333
- color: colors.$neutral-light !important;
334
- border: colors.$primary-color;
332
+ background-color: var(--cp-background-accent-solid);
333
+ color: var(--cp-text-white) !important;
334
+ border: var(--cp-background-accent-solid);
335
335
  }
336
336
  }
337
337
 
@@ -344,7 +344,7 @@ watch(isInline, (value) => {
344
344
  cursor: pointer;
345
345
 
346
346
  @media (min-width: 768px) {
347
- height: 64px;
347
+ height: var(--cp-dimensions-16);
348
348
  }
349
349
 
350
350
  @media (max-width: 768px) {
@@ -359,10 +359,10 @@ watch(isInline, (value) => {
359
359
  flex: 1;
360
360
  justify-content: center;
361
361
  align-items: center;
362
- border-top: 1px solid colors.$neutral-dark-5;
363
- font-size: 16px;
364
- color: colors.$neutral-dark;
365
- height: 64px;
362
+ border-top: 1px solid var(--cp-border-soft);
363
+ font-size: var(--cp-text-size-md);
364
+ color: var(--cp-text-primary);
365
+ height: var(--cp-dimensions-16);
366
366
  transition: background 200ms linear;
367
367
 
368
368
  @media (max-width: 768px) {
@@ -370,42 +370,42 @@ watch(isInline, (value) => {
370
370
  }
371
371
 
372
372
  .checkbox {
373
- width: 16px;
374
- height: 16px;
373
+ width: var(--cp-dimensions-4);
374
+ height: var(--cp-dimensions-4);
375
375
  }
376
376
 
377
377
  .checkbox--border {
378
378
  height: 100%;
379
379
  width: 100%;
380
- border: 1px solid colors.$neutral-dark-5;
380
+ border: 1px solid var(--cp-border-soft);
381
381
  }
382
382
 
383
383
  .feather-check {
384
384
  height: 100%;
385
385
  width: 100%;
386
- color: colors.$accent-color-1;
386
+ color: var(--cp-text-accent-primary);
387
387
  }
388
388
 
389
389
  span {
390
- font-size: 14px;
391
- line-height: 20px;
392
- padding-top: 3px;
390
+ font-size: var(--cp-text-size-sm);
391
+ line-height: var(--cp-line-height-sm);
392
+ padding-top: calc(var(--cp-dimensions-0_5) * 1.5);
393
393
  user-select: none;
394
394
  }
395
395
  }
396
396
 
397
397
  .asd__recurency--li--selected {
398
- color: colors.$accent-color-1;
398
+ color: var(--cp-text-accent-primary);
399
399
  }
400
400
 
401
401
  .asd__recurency--summary {
402
- padding-left: 16px;
403
- padding-right: 16px;
402
+ padding-left: var(--cp-spacing-xl);
403
+ padding-right: var(--cp-spacing-xl);
404
404
  }
405
405
 
406
406
  .asd__recurency--text {
407
- background: colors.$neutral-dark;
408
- border-radius: 10px;
407
+ background: var(--cp-text-primary);
408
+ border-radius: var(--cp-radius-md-lg);
409
409
  display: flex;
410
410
  justify-content: center;
411
411
  align-items: center;
@@ -417,12 +417,12 @@ watch(isInline, (value) => {
417
417
 
418
418
  span {
419
419
  white-space: normal;
420
- padding: 10px;
421
- padding-left: 2px;
422
- font-size: 14px;
420
+ padding: var(--cp-dimensions-2_5);
421
+ padding-left: var(--cp-dimensions-0_5);
422
+ font-size: var(--cp-text-size-sm);
423
423
 
424
424
  strong {
425
- color: colors.$neutral-light;
425
+ color: var(--cp-text-white);
426
426
  }
427
427
  }
428
428
  }