@autoguru/overdrive 4.59.0 → 4.60.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 (126) hide show
  1. package/dist/components/Alert/Alert.js +4 -4
  2. package/dist/components/AutoSuggest/AutoSuggest.css.d.ts.map +1 -1
  3. package/dist/components/AutoSuggest/AutoSuggest.css.js +9 -1
  4. package/dist/components/AutoSuggest/AutoSuggest.js +4 -4
  5. package/dist/components/Badge/Badge.css.js +1 -1
  6. package/dist/components/Box/useBox/useBox.d.ts +3 -3
  7. package/dist/components/BulletList/Bullet.css.js +3 -3
  8. package/dist/components/BulletText/BulletText.css.d.ts.map +1 -1
  9. package/dist/components/BulletText/BulletText.css.js +4 -1
  10. package/dist/components/Button/Button.css.js +7 -7
  11. package/dist/components/Calendar/Calendar.css.js +16 -16
  12. package/dist/components/CheckBox/CheckBox.css.js +2 -2
  13. package/dist/components/ColourInput/ColourInput.css.js +2 -2
  14. package/dist/components/DataTable/DataTable.css.d.ts.map +1 -1
  15. package/dist/components/DataTable/DataTable.css.js +2 -1
  16. package/dist/components/DateInput/DateInput.js +1 -1
  17. package/dist/components/DateTimeField/DateTimeField.css.js +2 -2
  18. package/dist/components/EditableText/EditableText.css.js +1 -1
  19. package/dist/components/EditableText/EditableText.d.ts.map +1 -1
  20. package/dist/components/EditableText/EditableText.js +3 -1
  21. package/dist/components/Flex/flex.d.ts +23 -23
  22. package/dist/components/Flyout/Flyout.js +2 -2
  23. package/dist/components/Heading/Heading.js +1 -1
  24. package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +2 -2
  25. package/dist/components/MarkdownRenderer/components/MarkdownHeading.js +3 -3
  26. package/dist/components/Meta/Meta.css.d.ts.map +1 -1
  27. package/dist/components/Meta/Meta.css.js +2 -1
  28. package/dist/components/Modal/Modal.d.ts.map +1 -1
  29. package/dist/components/Modal/Modal.js +3 -1
  30. package/dist/components/OptionGrid/OptionGrid.css.js +20 -20
  31. package/dist/components/OptionList/OptionList.css.js +11 -11
  32. package/dist/components/OrderedList/OrderedList.js +1 -1
  33. package/dist/components/Pagination/Bubble.js +3 -3
  34. package/dist/components/Pagination/Pagination.css.js +2 -2
  35. package/dist/components/Popover/Popover.css.js +3 -3
  36. package/dist/components/ProgressBar/ProgressBar.js +2 -2
  37. package/dist/components/ProgressBarGroup/ProgressBarGroup.js +2 -2
  38. package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +1 -1
  39. package/dist/components/ProgressSpinner/ProgressSpinner.css.js +2 -2
  40. package/dist/components/Radio/Radio.css.js +2 -2
  41. package/dist/components/ScrollPane/ScrollPane.css.js +3 -3
  42. package/dist/components/SearchBar/SearchBar.css.js +6 -6
  43. package/dist/components/SelectInput/SelectInput.css.js +1 -1
  44. package/dist/components/Slider/Slider.css.js +6 -6
  45. package/dist/components/SliderProgress/ProgressStep.d.ts.map +1 -1
  46. package/dist/components/SliderProgress/ProgressStep.js +6 -2
  47. package/dist/components/SliderProgress/SliderProgress.d.ts.map +1 -1
  48. package/dist/components/SliderProgress/SliderProgress.js +3 -1
  49. package/dist/components/Stack/Stack.css.d.ts.map +1 -1
  50. package/dist/components/Stack/Stack.css.js +1 -0
  51. package/dist/components/StandardModal/StandardModal.css.js +4 -4
  52. package/dist/components/StandardModal/StandardModal.js +4 -4
  53. package/dist/components/Stepper/Stepper.js +3 -3
  54. package/dist/components/Switch/Switch.css.js +2 -2
  55. package/dist/components/Table/TableCell.css.js +2 -2
  56. package/dist/components/Table/TableCell.js +1 -1
  57. package/dist/components/Table/TableHeadCell.css.js +2 -2
  58. package/dist/components/Tabs/Tab.css.js +6 -6
  59. package/dist/components/Tabs/Tab.js +2 -2
  60. package/dist/components/Tabs/TabList.css.js +1 -1
  61. package/dist/components/Text/Text.d.ts.map +1 -1
  62. package/dist/components/Text/Text.js +3 -3
  63. package/dist/components/TextLink/TextLink.js +1 -1
  64. package/dist/components/Tooltip/useTooltip/useTooltip.js +2 -2
  65. package/dist/components/private/CheckableBase/CheckableBase.css.js +2 -2
  66. package/dist/components/private/InputBase/HintText.js +1 -1
  67. package/dist/components/private/InputBase/InputState.css.js +16 -16
  68. package/dist/components/private/InputBase/NotchedBase.css.js +2 -2
  69. package/dist/components/private/InputBase/withEnhancedInput.css.js +4 -4
  70. package/dist/index.d.ts +1 -1
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/styles/focusOutline.css.d.ts.map +1 -1
  74. package/dist/styles/focusOutline.css.js +2 -0
  75. package/dist/styles/index.d.ts +1 -1
  76. package/dist/styles/index.d.ts.map +1 -1
  77. package/dist/styles/index.js +1 -1
  78. package/dist/styles/intentColorset.css.d.ts +3 -3
  79. package/dist/styles/intentColorset.css.d.ts.map +1 -1
  80. package/dist/styles/intentColorset.css.js +8 -2
  81. package/dist/styles/sprinkles.css.d.ts +290 -275
  82. package/dist/styles/sprinkles.css.d.ts.map +1 -1
  83. package/dist/styles/sprinkles.css.js +87 -10
  84. package/dist/styles/sprinkles.spec.d.ts +2 -0
  85. package/dist/styles/sprinkles.spec.d.ts.map +1 -0
  86. package/dist/styles/sprinkles.spec.js +8 -0
  87. package/dist/styles/typography.css.d.ts +1 -1
  88. package/dist/styles/typography.d.ts +44 -3
  89. package/dist/styles/typography.d.ts.map +1 -1
  90. package/dist/styles/typography.js +74 -17
  91. package/dist/themes/base/colours.d.ts +0 -22
  92. package/dist/themes/base/colours.d.ts.map +1 -1
  93. package/dist/themes/base/colours.js +6 -17
  94. package/dist/themes/base/contrastGuide.d.ts +31 -0
  95. package/dist/themes/base/contrastGuide.d.ts.map +1 -0
  96. package/dist/themes/base/contrastGuide.js +43 -0
  97. package/dist/themes/base/contrastGuide.spec.d.ts +2 -0
  98. package/dist/themes/base/contrastGuide.spec.d.ts.map +1 -0
  99. package/dist/themes/base/contrastGuide.spec.js +51 -0
  100. package/dist/themes/base/index.d.ts +258 -86
  101. package/dist/themes/base/index.d.ts.map +1 -1
  102. package/dist/themes/base/space.spec.d.ts +2 -0
  103. package/dist/themes/base/space.spec.d.ts.map +1 -0
  104. package/dist/themes/base/space.spec.js +41 -0
  105. package/dist/themes/base/tokens.d.ts +163 -66
  106. package/dist/themes/base/tokens.d.ts.map +1 -1
  107. package/dist/themes/base/tokens.js +210 -9
  108. package/dist/themes/flat_red/index.d.ts +264 -95
  109. package/dist/themes/flat_red/index.d.ts.map +1 -1
  110. package/dist/themes/flat_red/tokens.d.ts +158 -75
  111. package/dist/themes/flat_red/tokens.d.ts.map +1 -1
  112. package/dist/themes/flat_red/tokens.js +8 -13
  113. package/dist/themes/index.d.ts +259 -86
  114. package/dist/themes/index.d.ts.map +1 -1
  115. package/dist/themes/index.js +1 -0
  116. package/dist/themes/makeTheme.d.ts +106 -20
  117. package/dist/themes/makeTheme.d.ts.map +1 -1
  118. package/dist/themes/neutral/index.d.ts +258 -107
  119. package/dist/themes/neutral/index.d.ts.map +1 -1
  120. package/dist/themes/neutral/tokens.d.ts +153 -88
  121. package/dist/themes/neutral/tokens.d.ts.map +1 -1
  122. package/dist/themes/neutral/tokens.js +12 -33
  123. package/dist/themes/theme.css.d.ts +106 -31
  124. package/dist/themes/theme.css.d.ts.map +1 -1
  125. package/dist/themes/theme.css.js +130 -12
  126. package/package.json +15 -15
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  large: `var(--${string})`;
14
14
  };
15
15
  space: {
16
+ '0': `var(--${string})`;
16
17
  '1': `var(--${string})`;
17
18
  '2': `var(--${string})`;
18
19
  '3': `var(--${string})`;
@@ -22,22 +23,14 @@ declare const _default: {
22
23
  '7': `var(--${string})`;
23
24
  '8': `var(--${string})`;
24
25
  '9': `var(--${string})`;
26
+ '10': `var(--${string})`;
27
+ '11': `var(--${string})`;
28
+ '12': `var(--${string})`;
25
29
  none: `var(--${string})`;
26
30
  };
27
31
  color: {
28
32
  gamut: {
29
33
  white: `var(--${string})`;
30
- black: {
31
- '900': `var(--${string})`;
32
- '800': `var(--${string})`;
33
- '700': `var(--${string})`;
34
- '600': `var(--${string})`;
35
- '500': `var(--${string})`;
36
- '400': `var(--${string})`;
37
- '300': `var(--${string})`;
38
- '200': `var(--${string})`;
39
- '100': `var(--${string})`;
40
- };
41
34
  gray: {
42
35
  '900': `var(--${string})`;
43
36
  '800': `var(--${string})`;
@@ -126,19 +119,70 @@ declare const _default: {
126
119
  placeholder: `var(--${string})`;
127
120
  focusOutline: `var(--${string})`;
128
121
  };
122
+ foreground: {
123
+ primary: `var(--${string})`;
124
+ secondary: `var(--${string})`;
125
+ reverse: `var(--${string})`;
126
+ tertiaryInactive: `var(--${string})`;
127
+ tertiaryInactiveLight: `var(--${string})`;
128
+ };
129
+ background: {
130
+ default: `var(--${string})`;
131
+ reverse: `var(--${string})`;
132
+ inactive: `var(--${string})`;
133
+ emphasisInactive: `var(--${string})`;
134
+ };
135
+ border: {
136
+ default: `var(--${string})`;
137
+ emphasis: `var(--${string})`;
138
+ selected: `var(--${string})`;
139
+ strong: `var(--${string})`;
140
+ };
141
+ info: {
142
+ text: `var(--${string})`;
143
+ foreground: `var(--${string})`;
144
+ background: `var(--${string})`;
145
+ };
146
+ success: {
147
+ text: `var(--${string})`;
148
+ foreground: `var(--${string})`;
149
+ backgroundDark: `var(--${string})`;
150
+ backgroundLight: `var(--${string})`;
151
+ };
152
+ warning: {
153
+ text: `var(--${string})`;
154
+ foreground: `var(--${string})`;
155
+ backgroundDark: `var(--${string})`;
156
+ backgroundLight: `var(--${string})`;
157
+ };
158
+ alert: {
159
+ text: `var(--${string})`;
160
+ foreground: `var(--${string})`;
161
+ background: `var(--${string})`;
162
+ };
163
+ button: {
164
+ primary: {
165
+ solid: {
166
+ default: `var(--${string})`;
167
+ hover: `var(--${string})`;
168
+ pressed: `var(--${string})`;
169
+ border: `var(--${string})`;
170
+ };
171
+ outlined: {
172
+ border: `var(--${string})`;
173
+ text: `var(--${string})`;
174
+ };
175
+ };
176
+ critical: {
177
+ solid: {
178
+ default: `var(--${string})`;
179
+ };
180
+ };
181
+ };
129
182
  };
130
183
  colours: {
131
184
  gamut: {
132
185
  white: `var(--${string})`;
133
- black900: `var(--${string})`;
134
- black800: `var(--${string})`;
135
- black700: `var(--${string})`;
136
- black600: `var(--${string})`;
137
- black500: `var(--${string})`;
138
- black400: `var(--${string})`;
139
- black300: `var(--${string})`;
140
- black200: `var(--${string})`;
141
- black100: `var(--${string})`;
142
186
  gray900: `var(--${string})`;
143
187
  gray800: `var(--${string})`;
144
188
  gray700: `var(--${string})`;
@@ -285,6 +329,10 @@ declare const _default: {
285
329
  '3': `var(--${string})`;
286
330
  '4': `var(--${string})`;
287
331
  '5': `var(--${string})`;
332
+ z1: `var(--${string})`;
333
+ z2: `var(--${string})`;
334
+ z3: `var(--${string})`;
335
+ z4: `var(--${string})`;
288
336
  none: `var(--${string})`;
289
337
  };
290
338
  border: {
@@ -310,6 +358,11 @@ declare const _default: {
310
358
  '1': `var(--${string})`;
311
359
  pill: `var(--${string})`;
312
360
  full: `var(--${string})`;
361
+ xsmall: `var(--${string})`;
362
+ small: `var(--${string})`;
363
+ medium: `var(--${string})`;
364
+ large: `var(--${string})`;
365
+ xlarge: `var(--${string})`;
313
366
  };
314
367
  };
315
368
  typography: {
@@ -350,6 +403,38 @@ declare const _default: {
350
403
  fontSize: `var(--${string})`;
351
404
  lineHeight: `var(--${string})`;
352
405
  };
406
+ h1: {
407
+ fontSize: `var(--${string})`;
408
+ lineHeight: `var(--${string})`;
409
+ };
410
+ h2: {
411
+ fontSize: `var(--${string})`;
412
+ lineHeight: `var(--${string})`;
413
+ };
414
+ h3: {
415
+ fontSize: `var(--${string})`;
416
+ lineHeight: `var(--${string})`;
417
+ };
418
+ h4: {
419
+ fontSize: `var(--${string})`;
420
+ lineHeight: `var(--${string})`;
421
+ };
422
+ p1: {
423
+ fontSize: `var(--${string})`;
424
+ lineHeight: `var(--${string})`;
425
+ };
426
+ p2: {
427
+ fontSize: `var(--${string})`;
428
+ lineHeight: `var(--${string})`;
429
+ };
430
+ p3: {
431
+ fontSize: `var(--${string})`;
432
+ lineHeight: `var(--${string})`;
433
+ };
434
+ p4: {
435
+ fontSize: `var(--${string})`;
436
+ lineHeight: `var(--${string})`;
437
+ };
353
438
  };
354
439
  colour: {
355
440
  primary: `var(--${string})`;
@@ -371,6 +456,7 @@ declare const _default: {
371
456
  fontFamilyMono: `var(--${string})`;
372
457
  fontWeight: {
373
458
  normal: `var(--${string})`;
459
+ medium: `var(--${string})`;
374
460
  semiBold: `var(--${string})`;
375
461
  bold: `var(--${string})`;
376
462
  };
@@ -405,6 +491,7 @@ declare const _default: {
405
491
  medium: string;
406
492
  };
407
493
  space: {
494
+ '0': string;
408
495
  '1': string;
409
496
  '2': string;
410
497
  '3': string;
@@ -414,77 +501,69 @@ declare const _default: {
414
501
  '7': string;
415
502
  '8': string;
416
503
  '9': string;
504
+ '10': string;
505
+ '11': string;
506
+ '12': string;
417
507
  none: string;
418
508
  };
419
509
  color: {
420
510
  gamut: {
421
- white: string;
422
- black: {
423
- '900': string;
424
- '800': string;
425
- '700': string;
426
- '600': string;
427
- '500': string;
428
- '400': string;
429
- '300': string;
430
- '200': string;
431
- '100': string;
432
- };
433
511
  gray: {
434
- '900': string;
435
- '800': string;
436
- '700': string;
437
- '600': string;
438
- '500': string;
439
- '400': string;
440
- '300': string;
441
- '200': string;
442
- '100': string;
512
+ '900': `var(--${string})`;
513
+ '800': `var(--${string})`;
514
+ '700': `var(--${string})`;
515
+ '600': `var(--${string})`;
516
+ '500': `var(--${string})`;
517
+ '400': `var(--${string})`;
518
+ '300': `var(--${string})`;
519
+ '200': `var(--${string})`;
520
+ '100': `var(--${string})`;
443
521
  };
444
522
  green: {
445
- '900': string;
446
- '800': string;
447
- '700': string;
448
- '600': string;
449
- '500': string;
450
- '400': string;
451
- '300': string;
452
- '200': string;
453
- '100': string;
523
+ '900': `var(--${string})`;
524
+ '800': `var(--${string})`;
525
+ '700': `var(--${string})`;
526
+ '600': `var(--${string})`;
527
+ '500': `var(--${string})`;
528
+ '400': `var(--${string})`;
529
+ '300': `var(--${string})`;
530
+ '200': `var(--${string})`;
531
+ '100': `var(--${string})`;
454
532
  };
455
533
  blue: {
456
- '900': string;
457
- '800': string;
458
- '700': string;
459
- '600': string;
460
- '500': string;
461
- '400': string;
462
- '300': string;
463
- '200': string;
464
- '100': string;
534
+ '900': `var(--${string})`;
535
+ '800': `var(--${string})`;
536
+ '700': `var(--${string})`;
537
+ '600': `var(--${string})`;
538
+ '500': `var(--${string})`;
539
+ '400': `var(--${string})`;
540
+ '300': `var(--${string})`;
541
+ '200': `var(--${string})`;
542
+ '100': `var(--${string})`;
465
543
  };
466
544
  yellow: {
467
- '900': string;
468
- '800': string;
469
- '700': string;
470
- '600': string;
471
- '500': string;
472
- '400': string;
473
- '300': string;
474
- '200': string;
475
- '100': string;
545
+ '900': `var(--${string})`;
546
+ '800': `var(--${string})`;
547
+ '700': `var(--${string})`;
548
+ '600': `var(--${string})`;
549
+ '500': `var(--${string})`;
550
+ '400': `var(--${string})`;
551
+ '300': `var(--${string})`;
552
+ '200': `var(--${string})`;
553
+ '100': `var(--${string})`;
476
554
  };
477
555
  red: {
478
- '900': string;
479
- '800': string;
480
- '700': string;
481
- '600': string;
482
- '500': string;
483
- '400': string;
484
- '300': string;
485
- '200': string;
486
- '100': string;
556
+ '900': `var(--${string})`;
557
+ '800': `var(--${string})`;
558
+ '700': `var(--${string})`;
559
+ '600': `var(--${string})`;
560
+ '500': `var(--${string})`;
561
+ '400': `var(--${string})`;
562
+ '300': `var(--${string})`;
563
+ '200': `var(--${string})`;
564
+ '100': `var(--${string})`;
487
565
  };
566
+ white: `var(--${string})`;
488
567
  };
489
568
  surface: {
490
569
  page: string;
@@ -518,19 +597,70 @@ declare const _default: {
518
597
  placeholder: string;
519
598
  focusOutline: string;
520
599
  };
600
+ foreground: {
601
+ primary: string;
602
+ secondary: string;
603
+ reverse: string;
604
+ tertiaryInactive: string;
605
+ tertiaryInactiveLight: string;
606
+ };
607
+ background: {
608
+ default: string;
609
+ reverse: string;
610
+ inactive: string;
611
+ emphasisInactive: string;
612
+ };
613
+ border: {
614
+ default: string;
615
+ emphasis: string;
616
+ selected: string;
617
+ strong: string;
618
+ };
619
+ info: {
620
+ text: string;
621
+ foreground: string;
622
+ background: string;
623
+ };
624
+ success: {
625
+ text: string;
626
+ foreground: string;
627
+ backgroundDark: string;
628
+ backgroundLight: string;
629
+ };
630
+ warning: {
631
+ text: string;
632
+ foreground: string;
633
+ backgroundDark: string;
634
+ backgroundLight: string;
635
+ };
636
+ alert: {
637
+ text: string;
638
+ foreground: string;
639
+ background: string;
640
+ };
641
+ button: {
642
+ primary: {
643
+ solid: {
644
+ default: string;
645
+ hover: string;
646
+ pressed: string;
647
+ border: string;
648
+ };
649
+ outlined: {
650
+ border: string;
651
+ text: string;
652
+ };
653
+ };
654
+ critical: {
655
+ solid: {
656
+ default: string;
657
+ };
658
+ };
659
+ };
521
660
  };
522
661
  colours: {
523
662
  gamut: {
524
663
  white: string;
525
- black900: string;
526
- black800: string;
527
- black700: string;
528
- black600: string;
529
- black500: string;
530
- black400: string;
531
- black300: string;
532
- black200: string;
533
- black100: string;
534
664
  gray900: string;
535
665
  gray800: string;
536
666
  gray700: string;
@@ -678,6 +808,10 @@ declare const _default: {
678
808
  '3': string;
679
809
  '4': string;
680
810
  '5': string;
811
+ z1: string;
812
+ z2: string;
813
+ z3: string;
814
+ z4: string;
681
815
  };
682
816
  border: {
683
817
  width: {
@@ -702,6 +836,11 @@ declare const _default: {
702
836
  '1': string;
703
837
  pill: string;
704
838
  full: string;
839
+ xsmall: string;
840
+ small: string;
841
+ medium: string;
842
+ large: string;
843
+ xlarge: string;
705
844
  };
706
845
  };
707
846
  typography: {
@@ -742,6 +881,38 @@ declare const _default: {
742
881
  fontSize: string;
743
882
  lineHeight: string;
744
883
  };
884
+ h1: {
885
+ fontSize: string;
886
+ lineHeight: string;
887
+ };
888
+ h2: {
889
+ fontSize: string;
890
+ lineHeight: string;
891
+ };
892
+ h3: {
893
+ fontSize: string;
894
+ lineHeight: string;
895
+ };
896
+ h4: {
897
+ fontSize: string;
898
+ lineHeight: string;
899
+ };
900
+ p1: {
901
+ fontSize: string;
902
+ lineHeight: string;
903
+ };
904
+ p2: {
905
+ fontSize: string;
906
+ lineHeight: string;
907
+ };
908
+ p3: {
909
+ fontSize: string;
910
+ lineHeight: string;
911
+ };
912
+ p4: {
913
+ fontSize: string;
914
+ lineHeight: string;
915
+ };
745
916
  };
746
917
  colour: {
747
918
  primary: string;
@@ -763,6 +934,7 @@ declare const _default: {
763
934
  fontFamilyMono: string;
764
935
  fontWeight: {
765
936
  normal: string;
937
+ medium: string;
766
938
  semiBold: string;
767
939
  bold: string;
768
940
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/themes/base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/themes/base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=space.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"space.spec.d.ts","sourceRoot":"","sources":["../../../lib/themes/base/space.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { tokens as flatRedTokens } from "../flat_red/tokens.js";
3
+ import { tokens as neutralTokens } from "../neutral/tokens.js";
4
+ import { tokens as baseTokens } from "./tokens.js";
5
+ /**
6
+ * Pins the DS-2026 `space` ladder to exact pixel values. Snapshots only record
7
+ * the atomic-class KEY (e.g. `marginTop_9`), not the rendered px, so they pass
8
+ * whether `9` is 48px or 480px — this spec is the only guard that the key→px
9
+ * contract can't silently drift. Update it deliberately when the scale changes.
10
+ */
11
+ const EXPECTED_SPACE = {
12
+ none: '0px',
13
+ '0': '0px',
14
+ '1': '4px',
15
+ '2': '8px',
16
+ '3': '12px',
17
+ '4': '16px',
18
+ '5': '20px',
19
+ '6': '24px',
20
+ '7': '32px',
21
+ '8': '40px',
22
+ '9': '48px',
23
+ '10': '64px',
24
+ '11': '80px',
25
+ '12': '96px'
26
+ };
27
+ describe('space token ladder', () => {
28
+ it('base theme maps every key to its exact DS-2026 pixel value', () => {
29
+ expect(baseTokens.space).toStrictEqual(EXPECTED_SPACE);
30
+ });
31
+ it('`0` and `none` both resolve to 0px (no 2px footgun)', () => {
32
+ expect(baseTokens.space['0']).toBe('0px');
33
+ expect(baseTokens.space.none).toBe('0px');
34
+ });
35
+ it('neutral theme inherits the base ladder unchanged via deepmerge', () => {
36
+ expect(neutralTokens.space).toStrictEqual(EXPECTED_SPACE);
37
+ });
38
+ it('flat_red theme inherits the base ladder unchanged via deepmerge', () => {
39
+ expect(flatRedTokens.space).toStrictEqual(EXPECTED_SPACE);
40
+ });
41
+ });