@autoguru/overdrive 4.58.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 +16 -16
@@ -6,17 +6,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
6
6
  import { createGlobalThemeContract, style } from '@vanilla-extract/css';
7
7
  import { buildColourGamut } from "./makeTheme.js";
8
8
  const colours = {
9
- black: {
10
- '900': 'color-gamut-black-900',
11
- '800': 'color-gamut-black-800',
12
- '700': 'color-gamut-black-700',
13
- '600': 'color-gamut-black-600',
14
- '500': 'color-gamut-black-500',
15
- '400': 'color-gamut-black-400',
16
- '300': 'color-gamut-black-300',
17
- '200': 'color-gamut-black-200',
18
- '100': 'color-gamut-black-100'
19
- },
20
9
  gray: {
21
10
  '900': 'color-gamut-gray-900',
22
11
  '800': 'color-gamut-gray-800',
@@ -94,6 +83,7 @@ const THEME_CONTRACT = {
94
83
  large: 'content-width-lg'
95
84
  },
96
85
  space: {
86
+ '0': 'space-0',
97
87
  '1': 'space-1',
98
88
  '2': 'space-2',
99
89
  '3': 'space-3',
@@ -103,6 +93,9 @@ const THEME_CONTRACT = {
103
93
  '7': 'space-7',
104
94
  '8': 'space-8',
105
95
  '9': 'space-9',
96
+ '10': 'space-10',
97
+ '11': 'space-11',
98
+ '12': 'space-12',
106
99
  none: 'space-none'
107
100
  },
108
101
  // new colour token structure 2025
@@ -139,23 +132,96 @@ const THEME_CONTRACT = {
139
132
  overlayContainer: 'color-interactive-overlay-container',
140
133
  placeholder: 'color-interactive-placeholder',
141
134
  focusOutline: 'color-interactive-focus-outline'
135
+ },
136
+ foreground: {
137
+ primary: 'color-foreground-primary',
138
+ secondary: 'color-foreground-secondary',
139
+ reverse: 'color-foreground-reverse',
140
+ tertiaryInactive: 'color-foreground-tertiary-inactive',
141
+ tertiaryInactiveLight: 'color-foreground-tertiary-inactive-light'
142
+ },
143
+ background: {
144
+ default: 'color-background-default',
145
+ reverse: 'color-background-reverse',
146
+ inactive: 'color-background-inactive',
147
+ emphasisInactive: 'color-background-emphasis-inactive'
148
+ },
149
+ border: {
150
+ default: 'color-border-default',
151
+ emphasis: 'color-border-emphasis',
152
+ selected: 'color-border-selected',
153
+ strong: 'color-border-strong'
154
+ },
155
+ info: {
156
+ text: 'color-info-text',
157
+ foreground: 'color-info-foreground',
158
+ background: 'color-info-background'
159
+ },
160
+ success: {
161
+ text: 'color-success-text',
162
+ foreground: 'color-success-foreground',
163
+ backgroundDark: 'color-success-background-dark',
164
+ backgroundLight: 'color-success-background-light'
165
+ },
166
+ warning: {
167
+ text: 'color-warning-text',
168
+ foreground: 'color-warning-foreground',
169
+ backgroundDark: 'color-warning-background-dark',
170
+ backgroundLight: 'color-warning-background-light'
171
+ },
172
+ alert: {
173
+ text: 'color-alert-text',
174
+ foreground: 'color-alert-foreground',
175
+ background: 'color-alert-background'
176
+ },
177
+ button: {
178
+ primary: {
179
+ solid: {
180
+ default: 'color-button-primary-solid-default',
181
+ hover: 'color-button-primary-solid-hover',
182
+ pressed: 'color-button-primary-solid-pressed',
183
+ border: 'color-button-primary-solid-border'
184
+ },
185
+ outlined: {
186
+ border: 'color-button-primary-outlined-border',
187
+ text: 'color-button-primary-outlined-text'
188
+ }
189
+ },
190
+ critical: {
191
+ solid: {
192
+ default: 'color-button-critical-solid-default'
193
+ }
194
+ }
142
195
  }
143
196
  },
144
197
  // existing colours for compatability
198
+ /**
199
+ * @deprecated Use color.* — removed in v5 (DS-2026 major). The legacy
200
+ * `colours` contract (gamut/foreground/background/intent) is retained,
201
+ * exported, and fully functional for MFE compatibility until then — do
202
+ * not add new internal usages (see docs/ds2026-plan/track-c.md).
203
+ */
145
204
  colours: {
205
+ /** @deprecated Use color.gamut.* — removed in v5 (DS-2026 major). */
146
206
  gamut: _objectSpread(_objectSpread({}, buildColourGamut(colours)), {}, {
147
207
  white: 'color-gamut-white'
148
208
  }),
209
+ /** @deprecated Use color.foreground.* — removed in v5 (DS-2026 major). */
149
210
  foreground: {
150
211
  body: null,
151
212
  link: null
152
213
  },
214
+ /** @deprecated Use color.background.* — removed in v5 (DS-2026 major). */
153
215
  background: {
154
216
  body: null,
155
217
  light: null,
156
218
  neutral: null,
157
219
  neutralDark: null
158
220
  },
221
+ /**
222
+ * @deprecated Use color.{info,success,warning,alert}.* — removed in v5
223
+ * (DS-2026 major).
224
+ */
159
225
  intent: {
160
226
  primary: {
161
227
  background: {
@@ -246,6 +312,10 @@ const THEME_CONTRACT = {
246
312
  '3': 'elevation-3',
247
313
  '4': 'elevation-4',
248
314
  '5': 'elevation-5',
315
+ z1: 'elevation-z1',
316
+ z2: 'elevation-z2',
317
+ z3: 'elevation-z3',
318
+ z4: 'elevation-z4',
249
319
  none: 'elevation-none'
250
320
  },
251
321
  border: {
@@ -263,14 +333,27 @@ const THEME_CONTRACT = {
263
333
  radius: {
264
334
  none: 'border-radius-none',
265
335
  min: 'border-radius-min',
336
+ /** @deprecated Use radius.xsmall (identical 4px value) — removed in v5 (DS-2026 major). */
266
337
  sm: 'border-radius-sm',
267
338
  md: 'border-radius-md',
268
339
  lg: 'border-radius-lg',
269
340
  xl: 'border-radius-xl',
341
+ /**
342
+ * @deprecated Use radius.xlarge — removed in v5 (DS-2026 major).
343
+ * Note: values differ today (2xl = 24px, xlarge = 20px); the exact
344
+ * DS-2026 mapping for this key is pending design resolution
345
+ * (master §6-Q2) and will be finalised at the major.
346
+ */
270
347
  '2xl': 'border-radius-2xl',
348
+ /** @deprecated Use radius.xsmall (identical 4px value) — removed in v5 (DS-2026 major). */
271
349
  '1': 'border-radius-1',
272
350
  pill: 'border-radius-pill',
273
- full: 'border-radius-full'
351
+ full: 'border-radius-full',
352
+ xsmall: 'border-radius-xsmall',
353
+ small: 'border-radius-small',
354
+ medium: 'border-radius-medium',
355
+ large: 'border-radius-large',
356
+ xlarge: 'border-radius-xlarge'
274
357
  }
275
358
  },
276
359
  typography: {
@@ -310,9 +393,43 @@ const THEME_CONTRACT = {
310
393
  '9': {
311
394
  fontSize: 'typography-size-9-font-size',
312
395
  lineHeight: 'typography-size-9-line-height'
396
+ },
397
+ // Design System 2026 named text styles (opt-in)
398
+ h1: {
399
+ fontSize: 'typography-size-h1-font-size',
400
+ lineHeight: 'typography-size-h1-line-height'
401
+ },
402
+ h2: {
403
+ fontSize: 'typography-size-h2-font-size',
404
+ lineHeight: 'typography-size-h2-line-height'
405
+ },
406
+ h3: {
407
+ fontSize: 'typography-size-h3-font-size',
408
+ lineHeight: 'typography-size-h3-line-height'
409
+ },
410
+ h4: {
411
+ fontSize: 'typography-size-h4-font-size',
412
+ lineHeight: 'typography-size-h4-line-height'
413
+ },
414
+ p1: {
415
+ fontSize: 'typography-size-p1-font-size',
416
+ lineHeight: 'typography-size-p1-line-height'
417
+ },
418
+ p2: {
419
+ fontSize: 'typography-size-p2-font-size',
420
+ lineHeight: 'typography-size-p2-line-height'
421
+ },
422
+ p3: {
423
+ fontSize: 'typography-size-p3-font-size',
424
+ lineHeight: 'typography-size-p3-line-height'
425
+ },
426
+ p4: {
427
+ fontSize: 'typography-size-p4-font-size',
428
+ lineHeight: 'typography-size-p4-line-height'
313
429
  }
314
430
  },
315
431
  // phase out: typography specific colours for backwards compatibility
432
+ /** @deprecated Use color.foreground.* — removed in v5 (DS-2026 major). */
316
433
  colour: {
317
434
  primary: null,
318
435
  brand: null,
@@ -333,6 +450,7 @@ const THEME_CONTRACT = {
333
450
  fontFamilyMono: 'font-family-mono',
334
451
  fontWeight: {
335
452
  normal: 'font-weight-normal',
453
+ medium: 'font-weight-medium',
336
454
  semiBold: 'font-weight-semi-bold',
337
455
  bold: 'font-weight-bold'
338
456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.58.0",
3
+ "version": "4.60.0",
4
4
  "description": "Overdrive is a product component library, and design system for AutoGuru.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -129,29 +129,29 @@
129
129
  "@antebudimir/eslint-plugin-vanilla-extract": "^1.12.0",
130
130
  "@autoguru/babel-preset": "3.2.0",
131
131
  "@autoguru/eslint-plugin": "2.0.1",
132
- "@autoguru/icons": "2.0.1",
132
+ "@autoguru/icons": "2.1.0",
133
133
  "@autoguru/tsconfig": "1.3.1",
134
134
  "@autoguru/utilities": "^1.3.3",
135
- "@babel/cli": "7.28.3",
136
- "@babel/core": "7.28.5",
135
+ "@babel/cli": "7.29.7",
136
+ "@babel/core": "7.29.7",
137
137
  "@babel/plugin-proposal-class-properties": "7.18.6",
138
- "@babel/plugin-proposal-export-default-from": "7.27.1",
138
+ "@babel/plugin-proposal-export-default-from": "7.29.7",
139
139
  "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
140
140
  "@babel/plugin-proposal-object-rest-spread": "7.20.7",
141
141
  "@babel/plugin-proposal-optional-chaining": "7.21.0",
142
142
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
143
- "@babel/plugin-transform-classes": "7.28.4",
144
- "@babel/plugin-transform-runtime": "7.28.5",
145
- "@babel/plugin-transform-spread": "7.27.1",
146
- "@babel/plugin-transform-strict-mode": "7.27.1",
147
- "@babel/preset-env": "7.28.5",
148
- "@babel/preset-react": "7.28.5",
149
- "@babel/preset-typescript": "7.28.5",
150
- "@babel/runtime-corejs3": "7.28.4",
143
+ "@babel/plugin-transform-classes": "7.29.7",
144
+ "@babel/plugin-transform-runtime": "7.29.7",
145
+ "@babel/plugin-transform-spread": "7.29.7",
146
+ "@babel/plugin-transform-strict-mode": "7.29.7",
147
+ "@babel/preset-env": "7.29.7",
148
+ "@babel/preset-react": "7.29.7",
149
+ "@babel/preset-typescript": "7.29.7",
150
+ "@babel/runtime-corejs3": "7.29.7",
151
151
  "@changesets/cli": "2.29.7",
152
152
  "@chromatic-com/storybook": "4.1.1",
153
153
  "@internationalized/date": "3.12.1",
154
- "@octokit/rest": "22.0.0",
154
+ "@octokit/rest": "22.0.1",
155
155
  "@popperjs/core": "2.11.8",
156
156
  "@react-stately/toggle": "3.9.2",
157
157
  "@storybook/addon-a11y": "9.1.20",
@@ -162,7 +162,7 @@
162
162
  "@storybook/react-vite": "9.1.20",
163
163
  "@testing-library/dom": "^10.4.1",
164
164
  "@testing-library/jest-dom": "6.9.1",
165
- "@testing-library/react": "16.3.0",
165
+ "@testing-library/react": "16.3.2",
166
166
  "@testing-library/react-hooks": "8.0.1",
167
167
  "@testing-library/user-event": "14.6.1",
168
168
  "@types/node": "24.9.1",
@@ -258,7 +258,7 @@
258
258
  }
259
259
  },
260
260
  "volta": {
261
- "node": "22.22.2",
261
+ "node": "22.23.1",
262
262
  "yarn": "4.15.0"
263
263
  },
264
264
  "packageManager": "yarn@4.15.0"