@autoguru/overdrive 4.8.1 → 4.9.1

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 (124) hide show
  1. package/dist/components/Alert/Alert.css.js +1 -1
  2. package/dist/components/AutoSuggest/AutoSuggest.css.js +1 -1
  3. package/dist/components/AutoSuggest/AutoSuggest.d.ts +2 -1
  4. package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
  5. package/dist/components/AutoSuggest/stories.js +1 -1
  6. package/dist/components/Badge/Badge.css.d.ts +1 -1
  7. package/dist/components/Badge/Badge.css.js +1 -1
  8. package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
  9. package/dist/components/Box/useBoxStyles.css.js +2 -1
  10. package/dist/components/BulletList/Bullet.css.js +1 -1
  11. package/dist/components/BulletList/BulletList.css.js +1 -1
  12. package/dist/components/BulletText/BulletText.css.js +1 -1
  13. package/dist/components/Button/Button.css.js +1 -1
  14. package/dist/components/CheckBox/CheckBox.css.js +1 -1
  15. package/dist/components/ColourInput/ColourInput.css.d.ts +6 -0
  16. package/dist/components/ColourInput/ColourInput.css.d.ts.map +1 -0
  17. package/dist/components/ColourInput/ColourInput.css.js +29 -0
  18. package/dist/components/ColourInput/ColourInput.d.ts +4 -0
  19. package/dist/components/ColourInput/ColourInput.d.ts.map +1 -0
  20. package/dist/components/ColourInput/ColourInput.js +25 -0
  21. package/dist/components/ColourInput/index.d.ts +2 -0
  22. package/dist/components/ColourInput/index.d.ts.map +1 -0
  23. package/dist/components/ColourInput/index.js +1 -0
  24. package/dist/components/ColourInput/stories.js +182 -0
  25. package/dist/components/Columns/Column.d.ts +1 -1
  26. package/dist/components/Columns/Columns.css.js +1 -1
  27. package/dist/components/Columns/Columns.d.ts +2 -2
  28. package/dist/components/Columns/Columns.d.ts.map +1 -1
  29. package/dist/components/DateInput/stories.js +1 -1
  30. package/dist/components/Flyout/stories.js +1 -1
  31. package/dist/components/Icon/Icon.css.js +1 -1
  32. package/dist/components/Image/ImageServerProvider.d.ts +1 -1
  33. package/dist/components/Image/ImageServerProvider.d.ts.map +1 -1
  34. package/dist/components/Image/ResponsiveImage.d.ts.map +1 -1
  35. package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.js +1 -1
  36. package/dist/components/LoadingBox/LoadingBox.css.js +1 -1
  37. package/dist/components/Meta/Meta.css.js +1 -1
  38. package/dist/components/Modal/Modal.css.js +1 -1
  39. package/dist/components/OrderedList/OrderedList.css.js +1 -1
  40. package/dist/components/OverdriveProvider/OverdriveProvider.d.ts.map +1 -1
  41. package/dist/components/OverdriveProvider/OverdriveProvider.js +3 -2
  42. package/dist/components/Pagination/Pagination.css.js +1 -1
  43. package/dist/components/Portal/Portal.d.ts +2 -2
  44. package/dist/components/Portal/Portal.d.ts.map +1 -1
  45. package/dist/components/Positioner/stories.js +1 -1
  46. package/dist/components/ProgressBar/ProgressBar.css.js +1 -1
  47. package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +1 -1
  48. package/dist/components/ProgressSpinner/ProgressSpinner.css.js +1 -1
  49. package/dist/components/Radio/Radio.css.js +1 -1
  50. package/dist/components/Radio/RadioGroup.d.ts +1 -1
  51. package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
  52. package/dist/components/Section/Section.css.js +1 -1
  53. package/dist/components/SelectInput/SelectInput.css.js +1 -1
  54. package/dist/components/SelectInput/SelectInput.d.ts +1 -2
  55. package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
  56. package/dist/components/SelectInput/stories.js +1 -1
  57. package/dist/components/Stack/Divider.css.js +1 -1
  58. package/dist/components/Stack/Stack.css.js +1 -1
  59. package/dist/components/StandardModal/StandardModal.css.js +1 -1
  60. package/dist/components/StarRating/StarRating.css.js +1 -1
  61. package/dist/components/Stepper/Stepper.css.js +1 -1
  62. package/dist/components/Stepper/Stepper.js +1 -1
  63. package/dist/components/Switch/Switch.css.js +1 -1
  64. package/dist/components/Table/TableCell.css.js +1 -1
  65. package/dist/components/Table/TableHeadCell.css.js +1 -1
  66. package/dist/components/Tabs/Tab.css.js +1 -1
  67. package/dist/components/Tabs/TabList.css.js +1 -1
  68. package/dist/components/Tabs/TabList.d.ts +1 -1
  69. package/dist/components/Tabs/TabList.d.ts.map +1 -1
  70. package/dist/components/Tabs/TabPanes.d.ts +1 -1
  71. package/dist/components/Tabs/TabPanes.d.ts.map +1 -1
  72. package/dist/components/Tabs/Tabs.d.ts +1 -1
  73. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  74. package/dist/components/Text/useTextStyles.css.js +1 -1
  75. package/dist/components/TextAreaInput/stories.js +1 -1
  76. package/dist/components/TextInput/stories.js +1 -1
  77. package/dist/components/TextLink/TextLink.css.js +1 -1
  78. package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -1
  79. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  80. package/dist/components/ThemeProvider/ThemeProvider.js +2 -2
  81. package/dist/components/Toaster/Toast.css.js +1 -1
  82. package/dist/components/index.d.ts +1 -0
  83. package/dist/components/index.d.ts.map +1 -1
  84. package/dist/components/index.js +1 -0
  85. package/dist/components/private/CheckableBase/CheckableBase.css.js +1 -1
  86. package/dist/components/private/InputBase/HintText.css.js +1 -1
  87. package/dist/components/private/InputBase/InputState.css.js +1 -1
  88. package/dist/components/private/InputBase/NotchedBase.css.js +1 -1
  89. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -1
  90. package/dist/components/private/InputBase/withEnhancedInput.css.js +2 -1
  91. package/dist/components/private/InputBase/withEnhancedInput.d.ts +4 -3
  92. package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
  93. package/dist/components/private/InputBase/withEnhancedInput.js +1 -1
  94. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.js +1 -1
  95. package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +1 -1
  96. package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +1 -1
  97. package/dist/themes/base/index.d.ts +260 -2
  98. package/dist/themes/base/index.d.ts.map +1 -1
  99. package/dist/themes/base/index.js +3 -4
  100. package/dist/themes/base/tokens.d.ts.map +1 -1
  101. package/dist/themes/base/vars.css.d.ts +1 -2
  102. package/dist/themes/base/vars.css.d.ts.map +1 -1
  103. package/dist/themes/base/vars.css.js +2 -1
  104. package/dist/themes/flat_red/index.d.ts +260 -2
  105. package/dist/themes/flat_red/index.d.ts.map +1 -1
  106. package/dist/themes/flat_red/index.js +2 -4
  107. package/dist/themes/flat_red/tokens.d.ts +1 -2
  108. package/dist/themes/flat_red/tokens.d.ts.map +1 -1
  109. package/dist/themes/flat_red/tokens.js +3 -86
  110. package/dist/themes/flat_red/vars.css.d.ts.map +1 -1
  111. package/dist/themes/flat_red/vars.css.js +2 -2
  112. package/dist/themes/makeTheme.d.ts +2 -6
  113. package/dist/themes/makeTheme.d.ts.map +1 -1
  114. package/dist/themes/makeTheme.js +1 -5
  115. package/dist/themes/theme.css.d.ts +262 -0
  116. package/dist/themes/theme.css.d.ts.map +1 -0
  117. package/dist/themes/theme.css.js +279 -0
  118. package/dist/themes/tokens.d.ts +1 -1
  119. package/dist/themes/tokens.d.ts.map +1 -1
  120. package/dist/utils/index.d.ts +6 -6
  121. package/dist/utils/index.d.ts.map +1 -1
  122. package/dist/utils/resolveResponsiveProps.d.ts +1 -1
  123. package/dist/utils/resolveResponsiveProps.d.ts.map +1 -1
  124. package/package.json +5 -4
@@ -0,0 +1,279 @@
1
+ import { createThemeContract, style } from '@vanilla-extract/css';
2
+ import { buildColourGamut } from './makeTheme';
3
+ const colours = {
4
+ gray: {
5
+ '900': '',
6
+ '800': '',
7
+ '700': '',
8
+ '600': '',
9
+ '500': '',
10
+ '400': '',
11
+ '300': '',
12
+ '200': '',
13
+ '100': '',
14
+ },
15
+ green: {
16
+ '900': '',
17
+ '800': '',
18
+ '700': '',
19
+ '600': '',
20
+ '500': '',
21
+ '400': '',
22
+ '300': '',
23
+ '200': '',
24
+ '100': '',
25
+ },
26
+ blue: {
27
+ '900': '',
28
+ '800': '',
29
+ '700': '',
30
+ '600': '',
31
+ '500': '',
32
+ '400': '',
33
+ '300': '',
34
+ '200': '',
35
+ '100': '',
36
+ },
37
+ yellow: {
38
+ '900': '',
39
+ '800': '',
40
+ '700': '',
41
+ '600': '',
42
+ '500': '',
43
+ '400': '',
44
+ '300': '',
45
+ '200': '',
46
+ '100': '',
47
+ },
48
+ red: {
49
+ '900': '',
50
+ '800': '',
51
+ '700': '',
52
+ '600': '',
53
+ '500': '',
54
+ '400': '',
55
+ '300': '',
56
+ '200': '',
57
+ '100': '',
58
+ },
59
+ };
60
+ export const themeContractVars = createThemeContract({
61
+ mode: '',
62
+ body: {
63
+ backgroundColour: '',
64
+ colour: '',
65
+ },
66
+ contentWidth: {
67
+ small: '',
68
+ large: '',
69
+ medium: '',
70
+ },
71
+ space: {
72
+ '1': '',
73
+ '2': '',
74
+ '3': '',
75
+ '4': '',
76
+ '5': '',
77
+ '6': '',
78
+ '7': '',
79
+ '8': '',
80
+ '9': '',
81
+ none: '',
82
+ },
83
+ colours: {
84
+ gamut: {
85
+ ...buildColourGamut(colours),
86
+ white: '',
87
+ },
88
+ foreground: {
89
+ body: '',
90
+ link: '',
91
+ },
92
+ background: {
93
+ body: '',
94
+ light: '',
95
+ neutral: '',
96
+ neutralDark: '',
97
+ },
98
+ intent: {
99
+ primary: {
100
+ background: {
101
+ standard: '',
102
+ mild: '',
103
+ strong: '',
104
+ },
105
+ foreground: '',
106
+ border: '',
107
+ },
108
+ secondary: {
109
+ background: {
110
+ standard: '',
111
+ mild: '',
112
+ strong: '',
113
+ },
114
+ foreground: '',
115
+ border: '',
116
+ },
117
+ shine: {
118
+ background: {
119
+ standard: '',
120
+ mild: '',
121
+ strong: '',
122
+ },
123
+ foreground: '',
124
+ border: '',
125
+ },
126
+ danger: {
127
+ background: {
128
+ standard: '',
129
+ mild: '',
130
+ strong: '',
131
+ },
132
+ foreground: '',
133
+ border: '',
134
+ },
135
+ warning: {
136
+ background: {
137
+ standard: '',
138
+ mild: '',
139
+ strong: '',
140
+ },
141
+ foreground: '',
142
+ border: '',
143
+ },
144
+ neutral: {
145
+ background: {
146
+ standard: '',
147
+ mild: '',
148
+ strong: '',
149
+ },
150
+ foreground: '',
151
+ border: '',
152
+ },
153
+ success: {
154
+ background: {
155
+ standard: '',
156
+ mild: '',
157
+ strong: '',
158
+ },
159
+ foreground: '',
160
+ border: '',
161
+ },
162
+ information: {
163
+ background: {
164
+ standard: '',
165
+ mild: '',
166
+ strong: '',
167
+ },
168
+ foreground: '',
169
+ border: '',
170
+ },
171
+ },
172
+ },
173
+ elevation: {
174
+ none: '',
175
+ '1': '',
176
+ '2': '',
177
+ '3': '',
178
+ '4': '',
179
+ '5': '',
180
+ },
181
+ border: {
182
+ width: {
183
+ none: '',
184
+ '1': '',
185
+ '2': '',
186
+ '3': '',
187
+ },
188
+ colours: {
189
+ light: '',
190
+ gray: '',
191
+ dark: '',
192
+ },
193
+ radius: {
194
+ none: '',
195
+ pill: '',
196
+ full: '',
197
+ '1': '',
198
+ min: '',
199
+ },
200
+ },
201
+ typography: {
202
+ size: {
203
+ '1': {
204
+ fontSize: '',
205
+ lineHeight: '',
206
+ },
207
+ '2': {
208
+ fontSize: '',
209
+ lineHeight: '',
210
+ },
211
+ '3': {
212
+ fontSize: '',
213
+ lineHeight: '',
214
+ },
215
+ '4': {
216
+ fontSize: '',
217
+ lineHeight: '',
218
+ },
219
+ '5': {
220
+ fontSize: '',
221
+ lineHeight: '',
222
+ },
223
+ '6': {
224
+ fontSize: '',
225
+ lineHeight: '',
226
+ },
227
+ '7': {
228
+ fontSize: '',
229
+ lineHeight: '',
230
+ },
231
+ '8': {
232
+ fontSize: '',
233
+ lineHeight: '',
234
+ },
235
+ '9': {
236
+ fontSize: '',
237
+ lineHeight: '',
238
+ },
239
+ },
240
+ colour: {
241
+ primary: '',
242
+ secondary: '',
243
+ shine: '',
244
+ link: '',
245
+ dark: '',
246
+ white: '',
247
+ muted: '',
248
+ neutral: '',
249
+ light: '',
250
+ danger: '',
251
+ warning: '',
252
+ success: '',
253
+ information: '',
254
+ },
255
+ fontWeight: {
256
+ normal: '',
257
+ semiBold: '',
258
+ bold: '',
259
+ },
260
+ },
261
+ animation: {
262
+ easing: {
263
+ standard: '',
264
+ decelerate: '',
265
+ accelerate: '',
266
+ },
267
+ },
268
+ icon: {
269
+ size: {
270
+ small: '',
271
+ medium: '',
272
+ large: '',
273
+ },
274
+ },
275
+ });
276
+ export const container = style({
277
+ boxSizing: 'border-box',
278
+ font: '400 16px/22px AvertaStandard, system-ui, sans-serif',
279
+ });
@@ -21,7 +21,7 @@ declare type Intent = 'primary' | 'secondary' | 'shine' | 'neutral' | 'danger' |
21
21
  declare type BaseColours = 'white';
22
22
  export declare type BreakPoints = Record<DeviceSize, string>;
23
23
  export interface Tokens extends VanillaTokens {
24
- mode: 'light' | 'dark';
24
+ mode: 'light' | 'dark' | string;
25
25
  body: {
26
26
  colour: string;
27
27
  backgroundColour: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../lib/themes/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,kDAAkD,CAAC;AAE3F,aAAK,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;AAC/E,aAAK,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACzE,aAAK,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;AACjD,aAAK,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElD,aAAK,UAAU,GAAG,QA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AAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,EAAE;YACR,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SACb,CAAC;QACF,MAAM,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SACb,CAAC;KACF,CAAC;IACF,UAAU,EAAE;QACX,IAAI,EAAE,MAAM,CACX,aAAa,EACb;YACC,QAAQ,EAAE,MAAM,CAAC;YACjB,UAAU,EAAE,MAAM,CAAC;SACnB,CACD,CAAC;QAEF,MAAM,EAAE,MAAM,CACX,MAAM,GACN,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,GAC1B,MAAM,GACN,OAAO,GACP,SAAS,GACT,OAAO,GACP,WAAW,EACb,MAAM,CACN,CAAC;QACF,UAAU,EAAE,MAAM,CAAC,QAAQ,GAAG,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;KAC3D,CAAC;IACF,SAAS,EAAE;QACV,MAAM,EAAE;YACP,QAAQ,EAAE,MAAM,CAAC;YACjB,UAAU,EAAE,MAAM,CAAC;YACnB,UAAU,EAAE,MAAM,CAAC;SACnB,CAAC;KACF,CAAC;IACF,IAAI,EAAE;QACL,IAAI,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;KACpC,CAAC;CACF"}
@@ -2,15 +2,15 @@ import type { Ref } from 'react';
2
2
  import { useLayoutEffect } from 'react';
3
3
  export declare const isBrowser: boolean;
4
4
  export declare const isomorphicLayoutEffect: typeof useLayoutEffect;
5
- export declare const useUncontrolledState: <T extends unknown>(value: T, onChange?: (value: T) => void) => [T, (value: T) => void];
6
- export declare const useInputControlledState: <T, H>(incomingValue: T, incomingOnChange?: H) => [T, H];
7
- export declare const useId: (idFromProps?: string) => string | null;
5
+ export declare const useUncontrolledState: <T extends unknown>(value: T, onChange?: ((value: T) => void) | undefined) => [T, (value: T) => void];
6
+ export declare const useInputControlledState: <T, H>(incomingValue: T, incomingOnChange?: H | undefined) => [T, H];
7
+ export declare const useId: (idFromProps?: string | undefined) => string | null;
8
8
  export declare const setRef: <T>(ref: Ref<T>, value: T) => void;
9
9
  export declare const isHtmlElement: (element: any) => element is Element;
10
10
  export declare const hex2rgba: (c: any, alpha?: string) => string;
11
- export declare const ownerWindow: (node?: Node) => Window;
12
- export declare const ownerDocument: (node?: Node) => Document;
13
- export declare const useEventCallback: <T extends Function>(fn: T) => (...args: any[]) => any;
11
+ export declare const ownerWindow: (node?: Node | undefined) => Window;
12
+ export declare const ownerDocument: (node?: Node | undefined) => Document;
13
+ export declare const useEventCallback: <T extends Function>(fn: T) => (...args: any[]) => undefined;
14
14
  export declare const animate: <T extends HTMLElement>(element: T, property: keyof T, to: number, duration?: number) => (() => void) | void;
15
15
  export declare type Alignment = 'left' | 'right' | 'center';
16
16
  export declare const alignmentToFlexAlignment: (align: Alignment) => "center" | "flexStart" | "flexEnd";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAGN,eAAe,EAGf,MAAM,OAAO,CAAC;AAEf,eAAO,MAAM,SAAS,SAAgC,CAAC;AAEvD,eAAO,MAAM,sBAAsB,wBAA0C,CAAC;AAE9E,eAAO,MAAM,oBAAoB,yDAEP,IAAI,uBACT,IAAI,CAOxB,CAAC;AAGF,eAAO,MAAM,uBAAuB,0DAenC,CAAC;AAaF,eAAO,MAAM,KAAK,iBAAkB,MAAM,KAAG,MAAM,GAAG,IAmBrD,CAAC;AAEF,eAAO,MAAM,MAAM,oCAMlB,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,GAAG,uBACoB,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BjB,CAAC;AAEF,oBAAY,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpD,eAAO,MAAM,wBAAwB,UAAW,SAAS,uCAKT,CAAC;AAYjD,eAAO,MAAM,eAAe,0EAK3B,CAAC;AAGF,eAAO,MAAM,IAAI,YAAW,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { breakpoints } from '../themes/makeTheme';
2
2
  export declare type ResponsiveProp<T> = T | T[];
3
3
  declare type BreakpointStyleMap = Record<keyof typeof breakpoints, any>;
4
- export declare const resolveResponsiveStyle: <Tokens extends string | number>(responsiveArgument: ResponsiveProp<Tokens>, breakpointTokenMap: Record<Tokens, BreakpointStyleMap>) => any;
4
+ export declare const resolveResponsiveStyle: <Tokens extends string | number>(responsiveArgument: ResponsiveProp<Tokens> | null | undefined, breakpointTokenMap: Record<Tokens, BreakpointStyleMap>) => any;
5
5
  export declare function getEarliestKnownToken<Tokens extends string | number | boolean | {}>(responsiveArgument: Tokens[], counter: number): Tokens;
6
6
  export {};
7
7
  //# sourceMappingURL=resolveResponsiveProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveResponsiveProps.d.ts","sourceRoot":"","sources":["../../lib/utils/resolveResponsiveProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,oBAAY,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAExC,aAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,WAAW,EAAE,GAAG,CAAC,CAAC;AAShE,eAAO,MAAM,sBAAsB,6IAalC,CAAC;AAwBF,wBAAgB,qBAAqB,CACpC,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,EAAE,EAC5C,kBAAkB,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAavD"}
1
+ {"version":3,"file":"resolveResponsiveProps.d.ts","sourceRoot":"","sources":["../../lib/utils/resolveResponsiveProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,oBAAY,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAExC,aAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,WAAW,EAAE,GAAG,CAAC,CAAC;AAShE,eAAO,MAAM,sBAAsB,gKAalC,CAAC;AAwBF,wBAAgB,qBAAqB,CACpC,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,EAAE,EAC5C,kBAAkB,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAavD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.8.1",
3
+ "version": "4.9.1",
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",
@@ -37,7 +37,7 @@
37
37
  "watch": "tsc --watch"
38
38
  },
39
39
  "devDependencies": {
40
- "@autoguru/icons": "1.7.18",
40
+ "@autoguru/icons": "^1.7.28",
41
41
  "@autoguru/tsconfig": "1.0.79",
42
42
  "@autoguru/utilities": "1.1.1",
43
43
  "@popperjs/core": "2.11.2",
@@ -46,15 +46,16 @@
46
46
  "clsx": "1.1.1",
47
47
  "colord": "2.9.2",
48
48
  "csstype": "3.1.0",
49
+ "deepmerge": "^4.2.2",
49
50
  "eslint-plugin-jest": "26.2.2",
50
51
  "react": "^18.1.0",
51
52
  "react-dom": "^18.1.0",
52
53
  "react-focus-lock": "2.8.1",
53
54
  "react-keyed-flatten-children": "1.3.0",
54
- "webpack": "5.69.0"
55
+ "webpack": "5.74.0"
55
56
  },
56
57
  "peerDependencies": {
57
- "@autoguru/icons": "^1.7.4",
58
+ "@autoguru/icons": "^1.7.28",
58
59
  "@autoguru/utilities": "^1.0.98",
59
60
  "@popperjs/core": "^2.10.2",
60
61
  "clsx": "^1.1.1",