@autoguru/overdrive 4.61.0 → 4.63.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.
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Box/useBox/useBox.d.ts +1 -1
- package/dist/components/Button/Button.css.d.ts +13 -1
- package/dist/components/Button/Button.css.d.ts.map +1 -1
- package/dist/components/Button/Button.css.js +35 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +5 -1
- package/dist/components/CheckBox/CheckBox.css.d.ts.map +1 -1
- package/dist/components/CheckBox/CheckBox.css.js +5 -2
- package/dist/components/DateInput/DateInput.js +1 -1
- package/dist/components/EditableText/EditableText.css.js +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts +13 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts.map +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.js +6 -1
- package/dist/components/OverdriveProvider/useColorOverrides.d.ts +3 -2
- package/dist/components/OverdriveProvider/useColorOverrides.d.ts.map +1 -1
- package/dist/components/OverdriveProvider/useColorOverrides.js +158 -22
- package/dist/components/OverdriveProvider/useColorOverrides.spec.d.ts +2 -0
- package/dist/components/OverdriveProvider/useColorOverrides.spec.d.ts.map +1 -0
- package/dist/components/OverdriveProvider/useColorOverrides.spec.js +226 -0
- package/dist/components/Radio/Radio.css.d.ts.map +1 -1
- package/dist/components/Radio/Radio.css.js +3 -2
- package/dist/components/StandardModal/StandardModal.js +1 -1
- package/dist/components/Switch/Switch.css.d.ts.map +1 -1
- package/dist/components/Switch/Switch.css.js +3 -1
- package/dist/components/private/InputBase/InputState.css.js +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.css.js +1 -1
- package/dist/styles/intentColorset.css.d.ts +3 -3
- package/dist/styles/sprinkles.css.d.ts +24 -24
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +10 -8
- package/dist/styles/typography.css.d.ts +1 -1
- package/dist/themes/base/contrastGuide.spec.js +11 -2
- package/dist/themes/base/index.d.ts +126 -18
- package/dist/themes/base/index.d.ts.map +1 -1
- package/dist/themes/base/space.spec.js +3 -3
- package/dist/themes/base/tokens.d.ts +76 -9
- package/dist/themes/base/tokens.d.ts.map +1 -1
- package/dist/themes/base/tokens.js +114 -13
- package/dist/themes/flat_red/index.d.ts +126 -18
- package/dist/themes/flat_red/index.d.ts.map +1 -1
- package/dist/themes/flat_red/tokens.d.ts +63 -9
- package/dist/themes/flat_red/tokens.d.ts.map +1 -1
- package/dist/themes/index.d.ts +126 -18
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/makeTheme.d.ts +63 -9
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/neutral/index.d.ts +126 -18
- package/dist/themes/neutral/index.d.ts.map +1 -1
- package/dist/themes/neutral/tokens.d.ts +63 -9
- package/dist/themes/neutral/tokens.d.ts.map +1 -1
- package/dist/themes/theme.css.d.ts +63 -9
- package/dist/themes/theme.css.d.ts.map +1 -1
- package/dist/themes/theme.css.js +79 -18
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.css.d.ts","sourceRoot":"","sources":["../../lib/themes/theme.css.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKpD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDQ,CAAC;AAEtB,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.css.d.ts","sourceRoot":"","sources":["../../lib/themes/theme.css.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKpD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDQ,CAAC;AAEtB,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AA6drC;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI3B,CAAC;AAGF,OAAO,EAAE,eAAe,IAAI,iBAAiB,EAAE,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,eAAe,CAAC,CAAC;AAErE,0FAA0F;AAC1F,eAAO,MAAM,SAAS,QAKpB,CAAC"}
|
package/dist/themes/theme.css.js
CHANGED
|
@@ -101,6 +101,22 @@ const THEME_CONTRACT = {
|
|
|
101
101
|
// new colour token structure 2025
|
|
102
102
|
color: {
|
|
103
103
|
gamut: coloursWithWhite,
|
|
104
|
+
/**
|
|
105
|
+
* The tenant brand accent — the "on" colour of a selection control and
|
|
106
|
+
* the seed a tenant re-brands from.
|
|
107
|
+
*
|
|
108
|
+
* Deliberately its own pair rather than a reuse of
|
|
109
|
+
* `color.foreground.primary`: that leaf is body-text ink shared with
|
|
110
|
+
* nine unrelated components, so a tenant branding its checked controls
|
|
111
|
+
* would drag every piece of primary text along with them.
|
|
112
|
+
*
|
|
113
|
+
* `onSolid` is the contrast-safe content placed on top of `solid` — the
|
|
114
|
+
* Switch handle, the Radio dot, the CheckBox tick.
|
|
115
|
+
*/
|
|
116
|
+
brand: {
|
|
117
|
+
solid: 'color-brand-solid',
|
|
118
|
+
onSolid: 'color-brand-on-solid'
|
|
119
|
+
},
|
|
104
120
|
surface: {
|
|
105
121
|
page: null,
|
|
106
122
|
hard: null,
|
|
@@ -137,14 +153,16 @@ const THEME_CONTRACT = {
|
|
|
137
153
|
primary: 'color-foreground-primary',
|
|
138
154
|
secondary: 'color-foreground-secondary',
|
|
139
155
|
reverse: 'color-foreground-reverse',
|
|
140
|
-
|
|
141
|
-
|
|
156
|
+
tertiary: 'color-foreground-tertiary',
|
|
157
|
+
placeholder: 'color-foreground-placeholder'
|
|
142
158
|
},
|
|
143
159
|
background: {
|
|
144
160
|
default: 'color-background-default',
|
|
145
161
|
reverse: 'color-background-reverse',
|
|
146
162
|
inactive: 'color-background-inactive',
|
|
147
|
-
emphasisInactive: 'color-background-emphasis-inactive'
|
|
163
|
+
emphasisInactive: 'color-background-emphasis-inactive',
|
|
164
|
+
emphasisLight: 'color-background-emphasis-light',
|
|
165
|
+
modal: 'color-background-modal'
|
|
148
166
|
},
|
|
149
167
|
border: {
|
|
150
168
|
default: 'color-border-default',
|
|
@@ -152,46 +170,94 @@ const THEME_CONTRACT = {
|
|
|
152
170
|
selected: 'color-border-selected',
|
|
153
171
|
strong: 'color-border-strong'
|
|
154
172
|
},
|
|
173
|
+
focus: {
|
|
174
|
+
ring: 'color-focus-ring'
|
|
175
|
+
},
|
|
155
176
|
info: {
|
|
156
177
|
text: 'color-info-text',
|
|
157
178
|
foreground: 'color-info-foreground',
|
|
158
|
-
|
|
179
|
+
backgroundStrong: 'color-info-background-strong',
|
|
180
|
+
backgroundSubtle: 'color-info-background-subtle'
|
|
159
181
|
},
|
|
160
182
|
success: {
|
|
161
183
|
text: 'color-success-text',
|
|
162
184
|
foreground: 'color-success-foreground',
|
|
163
|
-
|
|
164
|
-
|
|
185
|
+
backgroundStrong: 'color-success-background-strong',
|
|
186
|
+
backgroundSubtle: 'color-success-background-subtle'
|
|
165
187
|
},
|
|
166
188
|
warning: {
|
|
167
189
|
text: 'color-warning-text',
|
|
168
190
|
foreground: 'color-warning-foreground',
|
|
169
|
-
|
|
170
|
-
|
|
191
|
+
backgroundStrong: 'color-warning-background-strong',
|
|
192
|
+
backgroundSubtle: 'color-warning-background-subtle'
|
|
171
193
|
},
|
|
172
194
|
alert: {
|
|
173
195
|
text: 'color-alert-text',
|
|
174
196
|
foreground: 'color-alert-foreground',
|
|
175
|
-
|
|
197
|
+
backgroundStrong: 'color-alert-background-strong',
|
|
198
|
+
backgroundSubtle: 'color-alert-background-subtle'
|
|
176
199
|
},
|
|
177
200
|
button: {
|
|
178
201
|
primary: {
|
|
179
202
|
solid: {
|
|
180
203
|
default: 'color-button-primary-solid-default',
|
|
181
204
|
hover: 'color-button-primary-solid-hover',
|
|
205
|
+
border: 'color-button-primary-solid-border',
|
|
182
206
|
pressed: 'color-button-primary-solid-pressed',
|
|
183
|
-
|
|
207
|
+
text: 'color-button-primary-solid-text'
|
|
184
208
|
},
|
|
185
209
|
outlined: {
|
|
186
210
|
border: 'color-button-primary-outlined-border',
|
|
187
|
-
text: 'color-button-primary-outlined-text'
|
|
211
|
+
text: 'color-button-primary-outlined-text',
|
|
212
|
+
hover: 'color-button-primary-outlined-hover',
|
|
213
|
+
pressed: 'color-button-primary-outlined-pressed'
|
|
188
214
|
}
|
|
189
215
|
},
|
|
190
216
|
critical: {
|
|
191
217
|
solid: {
|
|
192
|
-
default: 'color-button-critical-solid-default'
|
|
218
|
+
default: 'color-button-critical-solid-default',
|
|
219
|
+
hover: 'color-button-critical-solid-hover',
|
|
220
|
+
border: 'color-button-critical-solid-border',
|
|
221
|
+
pressed: 'color-button-critical-solid-pressed',
|
|
222
|
+
text: 'color-button-critical-solid-text'
|
|
223
|
+
},
|
|
224
|
+
outlined: {
|
|
225
|
+
border: 'color-button-critical-outlined-border',
|
|
226
|
+
text: 'color-button-critical-outlined-text',
|
|
227
|
+
hover: 'color-button-critical-outlined-hover',
|
|
228
|
+
pressed: 'color-button-critical-outlined-pressed'
|
|
193
229
|
}
|
|
230
|
+
},
|
|
231
|
+
secondary: {
|
|
232
|
+
border: 'color-button-secondary-border',
|
|
233
|
+
hover: 'color-button-secondary-hover',
|
|
234
|
+
pressed: 'color-button-secondary-pressed',
|
|
235
|
+
text: 'color-button-secondary-text'
|
|
236
|
+
},
|
|
237
|
+
disabled: {
|
|
238
|
+
fill: 'color-button-disabled-fill',
|
|
239
|
+
text: 'color-button-disabled-text'
|
|
194
240
|
}
|
|
241
|
+
},
|
|
242
|
+
link: {
|
|
243
|
+
primary: 'color-link-primary',
|
|
244
|
+
secondary: 'color-link-secondary',
|
|
245
|
+
hover: 'color-link-hover',
|
|
246
|
+
pressed: 'color-link-pressed',
|
|
247
|
+
critical: 'color-link-critical',
|
|
248
|
+
criticalHover: 'color-link-critical-hover',
|
|
249
|
+
criticalPressed: 'color-link-critical-pressed'
|
|
250
|
+
},
|
|
251
|
+
illustration: {
|
|
252
|
+
brightSide: 'color-illustration-bright-side',
|
|
253
|
+
darkSide: 'color-illustration-dark-side',
|
|
254
|
+
lightFill: 'color-illustration-light-fill',
|
|
255
|
+
mainFill: 'color-illustration-main-fill',
|
|
256
|
+
outline: 'color-illustration-outline',
|
|
257
|
+
shadow: 'color-illustration-shadow',
|
|
258
|
+
white: 'color-illustration-white',
|
|
259
|
+
yellowDarkSide: 'color-illustration-yellow-dark-side',
|
|
260
|
+
yellowMainFill: 'color-illustration-yellow-main-fill'
|
|
195
261
|
}
|
|
196
262
|
},
|
|
197
263
|
// existing colours for compatability
|
|
@@ -338,12 +404,7 @@ const THEME_CONTRACT = {
|
|
|
338
404
|
md: 'border-radius-md',
|
|
339
405
|
lg: 'border-radius-lg',
|
|
340
406
|
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
|
-
*/
|
|
407
|
+
/** DS-2026 Extra Large radius (24px) — used for modals. */
|
|
347
408
|
'2xl': 'border-radius-2xl',
|
|
348
409
|
/** @deprecated Use radius.xsmall (identical 4px value) — removed in v5 (DS-2026 major). */
|
|
349
410
|
'1': 'border-radius-1',
|