@drivy/cobalt 0.25.1 → 0.26.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 (63) hide show
  1. package/cjs/tokens/theme.js +86 -79
  2. package/cjs/tokens/theme.js.map +1 -1
  3. package/components/Callout/index.js +3 -1
  4. package/components/Callout/index.js.map +1 -1
  5. package/components/Flash/index.js +1 -1
  6. package/components/Flash/index.js.map +1 -1
  7. package/components/Rating/RatingIcons.js +2 -2
  8. package/components/Rating/RatingIcons.js.map +1 -1
  9. package/package.json +13 -13
  10. package/styles/components/BasicCell/index.scss +8 -6
  11. package/styles/components/BulletList/index.scss +2 -2
  12. package/styles/components/Buttons/GhostButton/index.scss +4 -4
  13. package/styles/components/Buttons/index.scss +5 -3
  14. package/styles/components/Calendar/CalendarRangePicker/index.scss +39 -17
  15. package/styles/components/Calendar/CalendarView/index.scss +10 -9
  16. package/styles/components/Callout/index.scss +37 -29
  17. package/styles/components/Card/index.scss +9 -10
  18. package/styles/components/Cell/index.scss +5 -4
  19. package/styles/components/Chip/index.scss +12 -15
  20. package/styles/components/EmptyState/index.scss +5 -5
  21. package/styles/components/Flash/index.scss +21 -7
  22. package/styles/components/Form/Autocomplete/index.scss +3 -3
  23. package/styles/components/Form/CheckablePill.scss +3 -3
  24. package/styles/components/Form/Checkmark.scss +3 -3
  25. package/styles/components/Form/ComposedField.scss +2 -2
  26. package/styles/components/Form/Fieldset.scss +6 -6
  27. package/styles/components/Form/Hint.scss +3 -3
  28. package/styles/components/Form/RadioWithDetails.scss +1 -1
  29. package/styles/components/Form/Select.scss +1 -1
  30. package/styles/components/Form/Slider.scss +7 -7
  31. package/styles/components/Form/Stepper.scss +2 -2
  32. package/styles/components/Form/TextArea.scss +2 -2
  33. package/styles/components/Form/TextInput.scss +1 -1
  34. package/styles/components/Form/ToggleSwitch.scss +4 -4
  35. package/styles/components/Form/field.scss +5 -5
  36. package/styles/components/Form/form.scss +2 -2
  37. package/styles/components/Helper/index.scss +1 -1
  38. package/styles/components/Icon/iconColors.scss +46 -42
  39. package/styles/components/Icon/index.scss +9 -2
  40. package/styles/components/Modal/index.scss +1 -1
  41. package/styles/components/Note/index.scss +2 -2
  42. package/styles/components/Pill/index.scss +3 -5
  43. package/styles/components/Popover/index.scss +1 -1
  44. package/styles/components/PriceTable/index.scss +1 -1
  45. package/styles/components/ProgressBar/index.scss +6 -5
  46. package/styles/components/Rating/index.scss +3 -3
  47. package/styles/components/TabBar/index.scss +9 -12
  48. package/styles/components/Tabs/index.scss +9 -11
  49. package/styles/components/Tag/index.scss +3 -2
  50. package/styles/core/_colors-map.scss +83 -76
  51. package/styles/core/card.scss +1 -0
  52. package/styles/core/color.scss +4 -0
  53. package/styles/core/global-variables.scss +1 -1
  54. package/styles/core/text.scss +29 -8
  55. package/styles/core/theme.scss +64 -57
  56. package/styles/core/typography.scss +14 -12
  57. package/styles/global/typography.scss +1 -1
  58. package/styles/index.scss +1 -1
  59. package/tokens/theme.js +86 -79
  60. package/tokens/theme.js.map +1 -1
  61. package/types/components/Icon/index.d.ts +1 -1
  62. package/types/tokens/index.d.ts +73 -66
  63. package/utilities.css +132 -108
package/tokens/theme.js CHANGED
@@ -1,4 +1,10 @@
1
1
  const background = {
2
+ primary: "grey.lighter/white/black.500",
3
+ secondary: "white/white/black.300",
4
+ secondaryInteractive: {
5
+ DEFAULT: "white/white/black.300",
6
+ hover: "grey.lighter/navy.50/black.300"
7
+ },
2
8
  accent: "purple/purple.500/purpleDeep.400",
3
9
  accentInteractive: {
4
10
  DEFAULT: "purple/purple.500/purpleDeep.400",
@@ -9,30 +15,58 @@ const background = {
9
15
  DEFAULT: "indigo/purple.100/purpleDeep.900",
10
16
  hover: "indigo/purpleLight.100/purpleDeep.900"
11
17
  },
12
- connect: "turquoise/turquoise.500/turquoise.500",
13
- connectInteractive: {
14
- DEFAULT: "turquoise/turquoise.500/turquoise.500",
15
- hover: "turquoise/turquoise.700/turquoise.500"
16
- },
17
- driver: "deprecatedDriver/yellow.500/yellow.500",
18
+ info: "grey.lighter/yellow.100/yellow.1000",
18
19
  error: "red/red.500/red.500",
19
20
  errorInteractive: {
20
21
  DEFAULT: "red/red.500/red.500",
21
22
  hover: "red/red.700/red.500"
22
23
  },
23
24
  errorAlt: "graphite/red.100/red.900",
24
- info: "grey.lighter/yellow.100/yellow.1000",
25
- neutral: "grey.light/navy.100/black.50",
26
- neutralAlt: "grey.lighter/navy.50/black.100",
25
+ success: "green/green.700/green.700",
26
+ successAlt: "graphite/green.100/green.1000",
27
+ connect: "turquoise/turquoise.500/turquoise.500",
28
+ connectInteractive: {
29
+ DEFAULT: "turquoise/turquoise.500/turquoise.500",
30
+ hover: "turquoise/turquoise.700/turquoise.500"
31
+ },
32
+ driver: "deprecatedDriver/yellow.500/yellow.500",
27
33
  owner: "indigo.dark/navy.700/navy.700",
28
- primary: "grey.lighter/white/black.500",
29
- secondary: "white/white/black.300",
30
- secondaryInteractive: {
31
- DEFAULT: "white/white/black.300",
32
- hover: "grey.lighter/navy.50/black.300"
34
+ disabled: "grey.light/navy.100/black.50",
35
+ neutral: "grey.light/navy.100/black.50",
36
+ neutralAlt: "grey.lighter/navy.50/black.100"
37
+ };
38
+ const text = {
39
+ base: "graphite/navy.700/grey.100",
40
+ baseInteractive: {
41
+ DEFAULT: "graphite/navy.700/grey.100",
42
+ hover: "graphite/navy.900/grey.100"
43
+ },
44
+ subdued: "graphite.light/navy.300/grey.300",
45
+ subduedInteractive: {
46
+ DEFAULT: "graphite.light/navy.300/grey.300",
47
+ hover: "graphite/navy.500/grey.300"
48
+ },
49
+ accent: "purple/purple.500/purpleDeep.400",
50
+ accentInteractive: {
51
+ DEFAULT: "blue/purple.500/purpleDeep.400",
52
+ hover: "blue/purple.700/purpleDeep.400"
53
+ },
54
+ accentAlt: "white/purple.500/grey.100",
55
+ accentAltInteractive: {
56
+ DEFAULT: "white/purple.500/grey.100",
57
+ hover: "indigo/purple.700/grey.100"
33
58
  },
59
+ info: "graphite.light/yellow.900/yellow.300",
60
+ error: "red/red.500/red.400",
61
+ errorAlt: "white/red.500/red.500",
34
62
  success: "green/green.700/green.700",
35
- successAlt: "graphite/green.100/green.1000"
63
+ successAlt: "white/green.900/green.100",
64
+ connect: "turquoise/turquoise.500/turquoise.500",
65
+ driver: "graphite/navy.700/navy.700",
66
+ owner: "white/white/grey.100",
67
+ warning: "coral/orange.500/orange.300",
68
+ infoAlt: "turquoise/yellow.500/yellow.700",
69
+ inversed: "white/white/white"
36
70
  };
37
71
  const buttonBackground = {
38
72
  selected: "indigo/purple.100/purpleDeep.900",
@@ -124,14 +158,17 @@ const buttonLabel = {
124
158
  press: "blue/purple.900/purpleDeep.400"
125
159
  }
126
160
  };
127
- const fill = {
128
- accent: "purple/purple.500/purpleDeep.400",
129
- accentAlt: "purple/purple.100/purpleDeep.900",
130
- disabled: "grey.dark/navy.300/grey.300",
131
- secondary: "turquoise/yellow.500/yellow.500",
132
- subdued: "grey.light/navy.100/black.50"
133
- };
134
161
  const icon = {
162
+ base: "graphite/navy.500/grey.100",
163
+ baseInteractive: {
164
+ DEFAULT: "graphite/navy.500/grey.100",
165
+ hover: "graphite/navy.700/grey.100"
166
+ },
167
+ subdued: "graphite.light/navy.300/grey.300",
168
+ subduedInteractive: {
169
+ DEFAULT: "graphite.light/navy.300/grey.300",
170
+ hover: "graphite/navy.500/grey.300"
171
+ },
135
172
  accent: "purple/purple.500/purpleDeep.400",
136
173
  accentInteractive: {
137
174
  DEFAULT: "purple/purple.500/purpleDeep.400",
@@ -142,29 +179,27 @@ const icon = {
142
179
  DEFAULT: "white/purple.500/grey.100",
143
180
  hover: "indigo/purple.700/grey.100"
144
181
  },
145
- base: "graphite/navy.500/grey.100",
146
- baseInteractive: {
147
- DEFAULT: "graphite/navy.500/grey.100",
148
- hover: "graphite/navy.700/grey.100"
149
- },
150
- connect: "turquoise/turquoise.500/white",
151
- driver: "graphite/navy.700//navy.700",
182
+ info: "graphite.light/yellow.900/yellow.300",
152
183
  error: "red/red.500/red.400",
153
184
  errorAlt: "red/red.500/red.200",
154
- info: "graphite.light/yellow.900/yellow.300",
155
- infoAlt: "turquoise/yellow.500/yellow.700",
156
- inversed: "white/white/white",
157
- owner: "white/white/white",
158
- subdued: "graphite.light/navy.300/grey.300",
159
- subduedInteractive: {
160
- DEFAULT: "graphite.light/navy.300/grey.300",
161
- hover: "graphite/navy.500/grey.300"
162
- },
163
185
  success: "green/green.700/green.700",
164
186
  successAlt: "white/green.900/green.100",
165
- warning: "coral/orange.500/orange.300"
187
+ connect: "turquoise/turquoise.500/white",
188
+ driver: "graphite/navy.700//navy.700",
189
+ owner: "white/white/white",
190
+ warning: "coral/orange.500/orange.300",
191
+ infoAlt: "turquoise/yellow.500/yellow.700",
192
+ inversed: "white/white/white",
193
+ disabled: "grey.lighter/navy.100/black.50"
166
194
  };
167
195
  const stroke = {
196
+ base: "grey/navy.100/black.50",
197
+ baseInteractive: {
198
+ DEFAULT: "grey/navy.100/black.50",
199
+ hover: "graphite.light/navy.300/purpleDeep.400",
200
+ press: "graphite/navy.500/purpleDeep.400"
201
+ },
202
+ subdued: "grey.light/navy.100/black.50",
168
203
  accent: "indigo/purple.500/purpleDeep.400",
169
204
  accentInteractive: {
170
205
  DEFAULT: "indigo/purple.500/purpleDeep.400",
@@ -172,60 +207,32 @@ const stroke = {
172
207
  press: "indigo.dark/purple.900/purpleDeep.400"
173
208
  },
174
209
  accentAlt: "purple/purple.300/purpleDeep.700",
175
- base: "grey/navy.100/black.50",
176
- baseInteractive: {
177
- DEFAULT: "grey/navy.100/black.50",
178
- hover: "graphite.light/navy.300/purpleDeep.400",
179
- press: "graphite/navy.500/purpleDeep.400"
180
- },
181
210
  error: "red/red.500/red.200",
182
211
  errorAlt: "red/red.500/red.200",
183
- subdued: "grey.light/navy.100/black.50",
184
212
  success: "green/green.500/green.700",
185
213
  successAlt: "green/green.500/green.700"
186
214
  };
187
- const text = {
215
+ const fill = {
216
+ base: "graphite/navy.500/grey.100",
217
+ secondary: "turquoise/yellow.500/yellow.500",
218
+ subdued: "grey.light/navy.100/black.50",
188
219
  accent: "purple/purple.500/purpleDeep.400",
189
- accentInteractive: {
190
- DEFAULT: "blue/purple.500/purpleDeep.400",
191
- hover: "blue/purple.700/purpleDeep.400"
192
- },
193
- accentAlt: "white/purple.500/grey.100",
194
- accentAltInteractive: {
195
- DEFAULT: "white/purple.500/grey.100",
196
- hover: "indigo/purple.700/grey.100"
197
- },
198
- base: "graphite/navy.700/grey.100",
199
- baseInteractive: {
200
- DEFAULT: "graphite/navy.700/grey.100",
201
- hover: "graphite/navy.900/grey.100"
202
- },
203
- connect: "turquoise/turquoise.500/turquoise.500",
204
- driver: "graphite/navy.700/navy.700",
205
- error: "red/red.500/red.400",
206
- errorAlt: "white/red.500/red.500",
207
- info: "graphite.light/yellow.900/yellow.300",
208
- infoAlt: "turquoise/yellow.500/yellow.700",
209
- inversed: "white/white/white",
210
- owner: "white/white/grey.100",
211
- subdued: "graphite.light/navy.300/grey.300",
212
- subduedInteractive: {
213
- DEFAULT: "graphite.light/navy.300/grey.300",
214
- hover: "graphite/navy.500/grey.300"
215
- },
216
- success: "green/green.700/green.700",
217
- successAlt: "white/green.900/green.100",
218
- warning: "coral/orange.500/orange.300"
220
+ accentAlt: "purple/purple.100/purpleDeep.900",
221
+ success: "red/red.500/red.500",
222
+ error: "green/green.500/green.700",
223
+ negative: "red/red.150/red.900",
224
+ neutral: "grey.lighter/navy.50/black.100",
225
+ disabled: "grey.dark/navy.300/grey.300"
219
226
  };
220
227
  var _theme = {
221
228
  background: background,
229
+ text: text,
222
230
  buttonBackground: buttonBackground,
223
231
  buttonIcon: buttonIcon,
224
232
  buttonLabel: buttonLabel,
225
- fill: fill,
226
233
  icon: icon,
227
234
  stroke: stroke,
228
- text: text
235
+ fill: fill
229
236
  };
230
237
 
231
238
  export { background, buttonBackground, buttonIcon, buttonLabel, _theme as default, fill, icon, stroke, text };
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,7 +5,7 @@ interface IconsMap {
5
5
  }
6
6
  export declare const BUNDLED_ICONS: IconsMap;
7
7
  export type IconSources = keyof typeof iconTokens.icons;
8
- export declare const iconColors: ("info" | "amber" | "blue" | "coral" | "graphite" | "graphiteLight" | "green" | "greenDark" | "greenLight" | "grey" | "greyDark" | "greyLight" | "greyLighter" | "indigo" | "indigoDark" | "purple" | "purpleLight" | "red" | "turquoise" | "white" | "accent" | "accentInteractive" | "accentAlt" | "accentAltInteractive" | "base" | "baseInteractive" | "connect" | "driver" | "error" | "errorAlt" | "infoAlt" | "inversed" | "owner" | "subdued" | "subduedInteractive" | "success" | "successAlt" | "warning")[];
8
+ export declare const iconColors: ("info" | "amber" | "blue" | "coral" | "graphite" | "graphiteLight" | "green" | "greenDark" | "greenLight" | "grey" | "greyDark" | "greyLight" | "greyLighter" | "indigo" | "indigoDark" | "purple" | "purpleLight" | "red" | "turquoise" | "white" | "base" | "baseInteractive" | "subdued" | "subduedInteractive" | "accent" | "accentInteractive" | "accentAlt" | "accentAltInteractive" | "error" | "errorAlt" | "success" | "successAlt" | "connect" | "driver" | "owner" | "warning" | "infoAlt" | "inversed" | "disabled")[];
9
9
  export type IconColorsType = typeof iconColors[number];
10
10
  export interface IconProps {
11
11
  source: IconSources;
@@ -438,6 +438,12 @@ export declare const palette: {
438
438
  };
439
439
  export declare const theme: {
440
440
  background: {
441
+ primary: string;
442
+ secondary: string;
443
+ secondaryInteractive: {
444
+ DEFAULT: string;
445
+ hover: string;
446
+ };
441
447
  accent: string;
442
448
  accentInteractive: {
443
449
  DEFAULT: string;
@@ -448,30 +454,58 @@ export declare const theme: {
448
454
  DEFAULT: string;
449
455
  hover: string;
450
456
  };
457
+ info: string;
458
+ error: string;
459
+ errorInteractive: {
460
+ DEFAULT: string;
461
+ hover: string;
462
+ };
463
+ errorAlt: string;
464
+ success: string;
465
+ successAlt: string;
451
466
  connect: string;
452
467
  connectInteractive: {
453
468
  DEFAULT: string;
454
469
  hover: string;
455
470
  };
456
471
  driver: string;
457
- error: string;
458
- errorInteractive: {
472
+ owner: string;
473
+ disabled: string;
474
+ neutral: string;
475
+ neutralAlt: string;
476
+ };
477
+ text: {
478
+ base: string;
479
+ baseInteractive: {
459
480
  DEFAULT: string;
460
481
  hover: string;
461
482
  };
462
- errorAlt: string;
463
- info: string;
464
- neutral: string;
465
- neutralAlt: string;
466
- owner: string;
467
- primary: string;
468
- secondary: string;
469
- secondaryInteractive: {
483
+ subdued: string;
484
+ subduedInteractive: {
470
485
  DEFAULT: string;
471
486
  hover: string;
472
487
  };
488
+ accent: string;
489
+ accentInteractive: {
490
+ DEFAULT: string;
491
+ hover: string;
492
+ };
493
+ accentAlt: string;
494
+ accentAltInteractive: {
495
+ DEFAULT: string;
496
+ hover: string;
497
+ };
498
+ info: string;
499
+ error: string;
500
+ errorAlt: string;
473
501
  success: string;
474
502
  successAlt: string;
503
+ connect: string;
504
+ driver: string;
505
+ owner: string;
506
+ warning: string;
507
+ infoAlt: string;
508
+ inversed: string;
475
509
  };
476
510
  buttonBackground: {
477
511
  selected: string;
@@ -563,97 +597,70 @@ export declare const theme: {
563
597
  press: string;
564
598
  };
565
599
  };
566
- fill: {
567
- accent: string;
568
- accentAlt: string;
569
- disabled: string;
570
- secondary: string;
571
- subdued: string;
572
- };
573
600
  icon: {
574
- accent: string;
575
- accentInteractive: {
576
- DEFAULT: string;
577
- hover: string;
578
- };
579
- accentAlt: string;
580
- accentAltInteractive: {
581
- DEFAULT: string;
582
- hover: string;
583
- };
584
601
  base: string;
585
602
  baseInteractive: {
586
603
  DEFAULT: string;
587
604
  hover: string;
588
605
  };
589
- connect: string;
590
- driver: string;
591
- error: string;
592
- errorAlt: string;
593
- info: string;
594
- infoAlt: string;
595
- inversed: string;
596
- owner: string;
597
606
  subdued: string;
598
607
  subduedInteractive: {
599
608
  DEFAULT: string;
600
609
  hover: string;
601
610
  };
602
- success: string;
603
- successAlt: string;
604
- warning: string;
605
- };
606
- stroke: {
607
611
  accent: string;
608
612
  accentInteractive: {
609
613
  DEFAULT: string;
610
614
  hover: string;
611
- press: string;
612
615
  };
613
616
  accentAlt: string;
614
- base: string;
615
- baseInteractive: {
617
+ accentAltInteractive: {
616
618
  DEFAULT: string;
617
619
  hover: string;
618
- press: string;
619
620
  };
621
+ info: string;
620
622
  error: string;
621
623
  errorAlt: string;
622
- subdued: string;
623
624
  success: string;
624
625
  successAlt: string;
626
+ connect: string;
627
+ driver: string;
628
+ owner: string;
629
+ warning: string;
630
+ infoAlt: string;
631
+ inversed: string;
632
+ disabled: string;
625
633
  };
626
- text: {
627
- accent: string;
628
- accentInteractive: {
629
- DEFAULT: string;
630
- hover: string;
631
- };
632
- accentAlt: string;
633
- accentAltInteractive: {
634
- DEFAULT: string;
635
- hover: string;
636
- };
634
+ stroke: {
637
635
  base: string;
638
636
  baseInteractive: {
639
637
  DEFAULT: string;
640
638
  hover: string;
639
+ press: string;
641
640
  };
642
- connect: string;
643
- driver: string;
644
- error: string;
645
- errorAlt: string;
646
- info: string;
647
- infoAlt: string;
648
- inversed: string;
649
- owner: string;
650
641
  subdued: string;
651
- subduedInteractive: {
642
+ accent: string;
643
+ accentInteractive: {
652
644
  DEFAULT: string;
653
645
  hover: string;
646
+ press: string;
654
647
  };
648
+ accentAlt: string;
649
+ error: string;
650
+ errorAlt: string;
655
651
  success: string;
656
652
  successAlt: string;
657
- warning: string;
653
+ };
654
+ fill: {
655
+ base: string;
656
+ secondary: string;
657
+ subdued: string;
658
+ accent: string;
659
+ accentAlt: string;
660
+ success: string;
661
+ error: string;
662
+ negative: string;
663
+ neutral: string;
664
+ disabled: string;
658
665
  };
659
666
  };