@autoguru/overdrive 4.43.6-next.0 → 4.43.6-next.10
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 +3 -3
- package/dist/components/Anchor/Anchor.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.js +4 -4
- package/dist/components/Box/Box.d.ts +2 -1
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +115 -53
- package/dist/components/Box/newBox/boxStyles.d.ts +450 -1
- package/dist/components/Box/newBox/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/newBox/boxStyles.js +6 -8
- package/dist/components/Box/useBoxStyles.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.js +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +6 -6
- package/dist/components/ColourInput/ColourInput.js +2 -2
- package/dist/components/Columns/Column.css.d.ts +4 -9
- package/dist/components/Columns/Column.css.d.ts.map +1 -1
- package/dist/components/Columns/Column.css.js +14 -11
- package/dist/components/Columns/ColumnGrid.css.js +4 -4
- package/dist/components/Columns/Columns.css.d.ts +8 -25
- package/dist/components/Columns/Columns.css.d.ts.map +1 -1
- package/dist/components/Columns/Columns.css.js +25 -20
- package/dist/components/DatePicker/DatePicker.js +2 -2
- package/dist/components/Heading/Heading.d.ts +3 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +5 -2
- package/dist/components/Heading/Heading.stories.d.ts +59 -55
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +52 -54
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +6 -6
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +2 -2
- package/dist/components/OverdriveProvider/OverdriveProvider.js +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.js +2 -2
- package/dist/components/StarRating/StarRating.js +2 -2
- package/dist/components/Stepper/Stepper.css.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.css.js +1 -7
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +1 -4
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Text/textStyles.d.ts +3 -1
- package/dist/components/Text/textStyles.d.ts.map +1 -1
- package/dist/components/Text/textStyles.js +3 -1
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +2 -2
- package/dist/components/TextLink/TextLink.js +3 -3
- package/dist/components/TextLink/TextLink.stories.d.ts +3 -3
- package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.js +7 -16
- package/dist/components/private/InputBase/HintText.d.ts.map +1 -1
- package/dist/components/private/InputBase/HintText.js +5 -6
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/global/fonts.css.d.ts +2 -0
- package/dist/styles/global/fonts.css.d.ts.map +1 -0
- package/dist/styles/global/fonts.css.js +24 -0
- package/dist/styles/global/reset.css.d.ts +2 -0
- package/dist/styles/global/reset.css.d.ts.map +1 -0
- package/dist/styles/global/reset.css.js +53 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/styles/index.js +6 -0
- package/dist/styles/reset.css.d.ts +1 -0
- package/dist/styles/reset.css.d.ts.map +1 -1
- package/dist/styles/reset.css.js +9 -1
- package/dist/styles/resetStyles.d.ts +6 -0
- package/dist/styles/resetStyles.d.ts.map +1 -1
- package/dist/styles/resetStyles.js +17 -0
- package/dist/styles/sprinkles.css.d.ts +53 -67
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +88 -56
- package/dist/utils/index.js +2 -2
- package/dist/utils/sprinkles.d.ts +2 -5
- package/dist/utils/sprinkles.d.ts.map +1 -1
- package/dist/utils/sprinkles.js +2 -8
- package/package.json +3 -3
- package/dist/styles/global.css.d.ts +0 -2
- package/dist/styles/global.css.d.ts.map +0 -1
- package/dist/styles/global.css.js +0 -71
|
@@ -19,20 +19,22 @@ const {
|
|
|
19
19
|
} = space,
|
|
20
20
|
spaceWithoutNone = _objectWithoutProperties(space, ["none"]);
|
|
21
21
|
const flexAlignments = {
|
|
22
|
-
flexEnd: 'flex-end',
|
|
23
|
-
'flex-end': 'flex-end',
|
|
24
|
-
flexStart: 'flex-start',
|
|
25
|
-
'flex-start': 'flex-start',
|
|
26
22
|
center: 'center',
|
|
27
23
|
centre: 'center',
|
|
24
|
+
end: 'end',
|
|
25
|
+
flexEnd: 'end',
|
|
26
|
+
flexStart: 'start',
|
|
27
|
+
start: 'start',
|
|
28
|
+
stretch: 'stretch'
|
|
29
|
+
};
|
|
30
|
+
const flexAlignmentsWithSpace = _objectSpread(_objectSpread({}, flexAlignments), {}, {
|
|
28
31
|
spaceAround: 'space-around',
|
|
29
32
|
'space-around': 'space-around',
|
|
30
33
|
spaceBetween: 'space-between',
|
|
31
34
|
'space-between': 'space-between',
|
|
32
35
|
spaceEvenely: 'space-evenly',
|
|
33
|
-
'space-evenely': 'space-evenly'
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
+
'space-evenely': 'space-evenly'
|
|
37
|
+
});
|
|
36
38
|
const fontSizes = Object.entries(tokens.typography.size).reduce((sizes, _ref) => {
|
|
37
39
|
let [scale, fontSize] = _ref;
|
|
38
40
|
sizes[scale] = fontSize.fontSize;
|
|
@@ -64,13 +66,63 @@ const intentBorderColours = Object.entries(tokens.colours.intent).reduce((acc, _
|
|
|
64
66
|
acc[intent] = border;
|
|
65
67
|
return acc;
|
|
66
68
|
}, {});
|
|
69
|
+
const backgroundColours = _objectSpread(_objectSpread(_objectSpread({}, intentBackgroundColoursStandard), tokens.colours.gamut), {}, {
|
|
70
|
+
transparent: 'transparent'
|
|
71
|
+
});
|
|
67
72
|
const borderColors = _objectSpread({
|
|
68
73
|
default: tokens.color.interactive.border,
|
|
69
74
|
muted: tokens.color.interactive.borderMuted,
|
|
70
75
|
disabled: tokens.color.interactive.borderDisabled
|
|
71
76
|
}, tokens.color.surface);
|
|
72
|
-
const
|
|
77
|
+
const borderColours = _objectSpread(_objectSpread({}, tokens.border.colours), intentBorderColours);
|
|
78
|
+
const colours = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, tokens.colours.foreground), tokens.typography.colour), intentForegroundColours), {}, {
|
|
79
|
+
unset: 'unset',
|
|
80
|
+
white: tokens.colours.gamut.white
|
|
81
|
+
});
|
|
82
|
+
const mappedBackgroundColours = Object.entries(backgroundColours).reduce((acc, _ref6) => {
|
|
73
83
|
let [key, value] = _ref6;
|
|
84
|
+
acc[key] = {
|
|
85
|
+
backgroundColor: value
|
|
86
|
+
};
|
|
87
|
+
return acc;
|
|
88
|
+
}, {});
|
|
89
|
+
const mappedBorderBottomColours = Object.entries(borderColours).reduce((acc, _ref7) => {
|
|
90
|
+
let [key, value] = _ref7;
|
|
91
|
+
acc[key] = {
|
|
92
|
+
borderBottomColor: value
|
|
93
|
+
};
|
|
94
|
+
return acc;
|
|
95
|
+
}, {});
|
|
96
|
+
const mappedBorderLeftColours = Object.entries(borderColours).reduce((acc, _ref8) => {
|
|
97
|
+
let [key, value] = _ref8;
|
|
98
|
+
acc[key] = {
|
|
99
|
+
borderLeftColor: value
|
|
100
|
+
};
|
|
101
|
+
return acc;
|
|
102
|
+
}, {});
|
|
103
|
+
const mappedBorderRightColours = Object.entries(borderColours).reduce((acc, _ref9) => {
|
|
104
|
+
let [key, value] = _ref9;
|
|
105
|
+
acc[key] = {
|
|
106
|
+
borderRightColor: value
|
|
107
|
+
};
|
|
108
|
+
return acc;
|
|
109
|
+
}, {});
|
|
110
|
+
const mappedBorderTopColours = Object.entries(borderColours).reduce((acc, _ref0) => {
|
|
111
|
+
let [key, value] = _ref0;
|
|
112
|
+
acc[key] = {
|
|
113
|
+
borderTopColor: value
|
|
114
|
+
};
|
|
115
|
+
return acc;
|
|
116
|
+
}, {});
|
|
117
|
+
const mappedColours = Object.entries(colours).reduce((acc, _ref1) => {
|
|
118
|
+
let [key, value] = _ref1;
|
|
119
|
+
acc[key] = {
|
|
120
|
+
color: value
|
|
121
|
+
};
|
|
122
|
+
return acc;
|
|
123
|
+
}, {});
|
|
124
|
+
const gapSizesWithVar = Object.entries(space).reduce((acc, _ref10) => {
|
|
125
|
+
let [key, value] = _ref10;
|
|
74
126
|
acc[key] = {
|
|
75
127
|
vars: {
|
|
76
128
|
[gapVar]: value
|
|
@@ -95,14 +147,20 @@ const baseProperties = defineProperties({
|
|
|
95
147
|
borderLeftColor: borderColors,
|
|
96
148
|
borderRightColor: borderColors,
|
|
97
149
|
borderTopColor: borderColors,
|
|
150
|
+
borderBottomColour: mappedBorderBottomColours,
|
|
151
|
+
borderLeftColour: mappedBorderLeftColours,
|
|
152
|
+
borderRightColour: mappedBorderRightColours,
|
|
153
|
+
borderTopColour: mappedBorderTopColours,
|
|
98
154
|
borderLeftStyle: ['none', 'solid'],
|
|
99
155
|
borderBottomStyle: ['none', 'solid'],
|
|
100
156
|
borderRightStyle: ['none', 'solid'],
|
|
101
157
|
borderTopStyle: ['none', 'solid'],
|
|
102
158
|
color: tokens.color.content,
|
|
159
|
+
colour: mappedColours,
|
|
103
160
|
backgroundColor: _objectSpread(_objectSpread({}, tokens.color.surface), {}, {
|
|
104
161
|
transparent: 'transparent'
|
|
105
162
|
}),
|
|
163
|
+
backgroundColour: mappedBackgroundColours,
|
|
106
164
|
opacity: [0, '1', '0'],
|
|
107
165
|
fontSize: fontSizes,
|
|
108
166
|
lineHeight: lineHeights,
|
|
@@ -122,42 +180,18 @@ const baseProperties = defineProperties({
|
|
|
122
180
|
bg: ['backgroundColor'],
|
|
123
181
|
fg: ['color'],
|
|
124
182
|
borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
borderBottomColor: borderColours,
|
|
136
|
-
borderLeftColor: borderColours,
|
|
137
|
-
borderRightColor: borderColours,
|
|
138
|
-
borderTopColor: borderColours,
|
|
139
|
-
color: _objectSpread(_objectSpread(_objectSpread({}, tokens.colours.foreground), tokens.typography.colour), {}, {
|
|
140
|
-
unset: 'unset',
|
|
141
|
-
white: tokens.colours.gamut.white
|
|
142
|
-
})
|
|
143
|
-
},
|
|
144
|
-
shorthands: {
|
|
145
|
-
backgroundColour: ['backgroundColor'],
|
|
146
|
-
borderColour: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
|
|
147
|
-
borderColourX: ['borderLeftColor', 'borderRightColor'],
|
|
148
|
-
borderColourY: ['borderBottomColor', 'borderTopColor'],
|
|
149
|
-
borderBottomColour: ['borderBottomColor'],
|
|
150
|
-
borderLeftColour: ['borderLeftColor'],
|
|
151
|
-
borderRightColour: ['borderRightColor'],
|
|
152
|
-
borderTopColour: ['borderTopColor'],
|
|
153
|
-
borderColourBottom: ['borderBottomColor'],
|
|
154
|
-
borderColourLeft: ['borderLeftColor'],
|
|
155
|
-
borderColourRight: ['borderRightColor'],
|
|
156
|
-
borderColourTop: ['borderTopColor'],
|
|
157
|
-
colour: ['color']
|
|
183
|
+
borderColorX: ['borderLeftColor', 'borderRightColor'],
|
|
184
|
+
borderColorY: ['borderBottomColor', 'borderTopColor'],
|
|
185
|
+
borderColour: ['borderBottomColour', 'borderLeftColour', 'borderRightColour', 'borderTopColour'],
|
|
186
|
+
borderColourX: ['borderLeftColour', 'borderRightColour'],
|
|
187
|
+
borderColourY: ['borderBottomColour', 'borderTopColour'],
|
|
188
|
+
borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
|
|
189
|
+
borderStyleBottom: ['borderBottomStyle'],
|
|
190
|
+
borderStyleLeft: ['borderLeftStyle'],
|
|
191
|
+
borderStyleRight: ['borderRightStyle'],
|
|
192
|
+
borderStyleTop: ['borderTopStyle']
|
|
158
193
|
}
|
|
159
194
|
});
|
|
160
|
-
export const sprinklesLegacyColours = createSprinkles(legacyColourProperties);
|
|
161
195
|
const legacyTextProperties = defineProperties({
|
|
162
196
|
'@layer': cssLayerUtil,
|
|
163
197
|
properties: {
|
|
@@ -204,7 +238,12 @@ const responsiveProperties = defineProperties({
|
|
|
204
238
|
overflowX: ['auto', 'scroll', 'hidden'],
|
|
205
239
|
overflowY: ['auto', 'scroll', 'hidden'],
|
|
206
240
|
position: ['static', 'relative', 'absolute', 'fixed', 'sticky'],
|
|
207
|
-
textAlign:
|
|
241
|
+
textAlign: {
|
|
242
|
+
left: 'left',
|
|
243
|
+
center: 'center',
|
|
244
|
+
centre: 'center',
|
|
245
|
+
right: 'right'
|
|
246
|
+
},
|
|
208
247
|
borderRadius: tokens.border.radius,
|
|
209
248
|
borderLeftWidth: tokens.border.width,
|
|
210
249
|
borderBottomWidth: tokens.border.width,
|
|
@@ -232,19 +271,12 @@ const responsiveProperties = defineProperties({
|
|
|
232
271
|
gap: gapSizesWithVar,
|
|
233
272
|
columnGap: space,
|
|
234
273
|
rowGap: space,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
baseline: 'baseline',
|
|
242
|
-
stretch: 'stretch'
|
|
243
|
-
},
|
|
244
|
-
justifyContent: flexAlignments,
|
|
245
|
-
alignContent: flexAlignments,
|
|
246
|
-
alignSelf: ['flex-start', 'center', 'flex-end', 'stretch'],
|
|
247
|
-
justifySelf: ['flex-start', 'center', 'flex-end'],
|
|
274
|
+
alignContent: flexAlignmentsWithSpace,
|
|
275
|
+
alignItems: _objectSpread(_objectSpread({}, flexAlignments), {}, {
|
|
276
|
+
baseline: 'baseline'
|
|
277
|
+
}),
|
|
278
|
+
alignSelf: flexAlignments,
|
|
279
|
+
justifyContent: _objectSpread({}, flexAlignmentsWithSpace),
|
|
248
280
|
flexDirection: ['row', 'column', 'row-reverse', 'column-reverse'],
|
|
249
281
|
flexGrow: [0, '0', '1'],
|
|
250
282
|
flexShrink: [0, '0', '1'],
|
package/dist/utils/index.js
CHANGED
|
@@ -98,8 +98,8 @@ export const animate = function (element, property, to) {
|
|
|
98
98
|
};
|
|
99
99
|
export const alignmentToFlexAlignment = align => ({
|
|
100
100
|
center: 'center',
|
|
101
|
-
left: '
|
|
102
|
-
right: '
|
|
101
|
+
left: 'start',
|
|
102
|
+
right: 'end'
|
|
103
103
|
})[align];
|
|
104
104
|
export const arrayRingLookup = collection => {
|
|
105
105
|
const len = collection.length;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { type Sprinkles
|
|
2
|
-
type AnySprinklesKey = keyof Sprinkles | keyof SprinklesLegacyColours;
|
|
1
|
+
import { type Sprinkles } from '../styles/sprinkles.css';
|
|
3
2
|
type RemainingProps<T extends object> = {
|
|
4
|
-
[K in keyof T as K extends
|
|
3
|
+
[K in keyof T as K extends Sprinkles ? never : K]: T[K];
|
|
5
4
|
};
|
|
6
5
|
interface SortedProps<T extends object> {
|
|
7
6
|
sprinklesProps: Sprinkles;
|
|
8
|
-
sprinklesLegacyColourProps: SprinklesLegacyColours;
|
|
9
7
|
baseProps: RemainingProps<T>;
|
|
10
8
|
}
|
|
11
9
|
export declare const isSprinklesProperty: (key: string) => boolean;
|
|
12
|
-
export declare const isSprinklesLegacyColourProperty: (key: string) => boolean;
|
|
13
10
|
export declare const filterNonSprinklesProps: <P extends object>(props: P) => RemainingProps<P>;
|
|
14
11
|
export declare const filterPropsWithStyles: <P extends object>(props: P) => SortedProps<P>;
|
|
15
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprinkles.d.ts","sourceRoot":"","sources":["../../lib/utils/sprinkles.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sprinkles.d.ts","sourceRoot":"","sources":["../../lib/utils/sprinkles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpE,KAAK,cAAc,CAAC,CAAC,SAAS,MAAM,IAAI;KACtC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvD,CAAC;AAEF,UAAU,WAAW,CAAC,CAAC,SAAS,MAAM;IACrC,cAAc,EAAE,SAAS,CAAC;IAC1B,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAC7B;AAKD,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,YAE9C,CAAC;AAQF,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,MAAM,EAAE,OAAO,CAAC,sBAMtC,CAAC;AAW7B,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,EACrD,OAAO,CAAC,KACN,WAAW,CAAC,CAAC,CAuBf,CAAC"}
|
package/dist/utils/sprinkles.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { sprinkles
|
|
3
|
+
import { sprinkles } from "../styles/sprinkles.css.js";
|
|
4
4
|
export const isSprinklesProperty = key => {
|
|
5
5
|
return sprinkles.properties.has(key);
|
|
6
6
|
};
|
|
7
|
-
export const isSprinklesLegacyColourProperty = key => {
|
|
8
|
-
return sprinklesLegacyColours.properties.has(key);
|
|
9
|
-
};
|
|
10
7
|
export const filterNonSprinklesProps = props => Object.entries(props).reduce((acc, _ref) => {
|
|
11
8
|
let [key, value] = _ref;
|
|
12
|
-
if (!
|
|
9
|
+
if (!isSprinklesProperty(key)) {
|
|
13
10
|
acc[key] = value;
|
|
14
11
|
}
|
|
15
12
|
return acc;
|
|
@@ -25,8 +22,6 @@ export const filterPropsWithStyles = props => {
|
|
|
25
22
|
const value = props[key];
|
|
26
23
|
if (isSprinklesProperty(key)) {
|
|
27
24
|
acc.sprinklesProps[key] = value;
|
|
28
|
-
} else if (isSprinklesLegacyColourProperty(key)) {
|
|
29
|
-
acc.sprinklesLegacyColourProps[key] = value;
|
|
30
25
|
} else {
|
|
31
26
|
acc.baseProps[key] = value;
|
|
32
27
|
}
|
|
@@ -34,7 +29,6 @@ export const filterPropsWithStyles = props => {
|
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
36
31
|
sprinklesProps: acc.sprinklesProps,
|
|
37
|
-
sprinklesLegacyColourProps: acc.sprinklesLegacyColourProps,
|
|
38
32
|
baseProps: acc.baseProps
|
|
39
33
|
};
|
|
40
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autoguru/overdrive",
|
|
3
|
-
"version": "4.43.6-next.
|
|
3
|
+
"version": "4.43.6-next.10",
|
|
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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"sideEffects": [
|
|
23
|
-
"./lib
|
|
23
|
+
"./lib/styles/global/*",
|
|
24
24
|
"./lib/themes/**/*",
|
|
25
|
-
"./dist
|
|
25
|
+
"./dist/styles/global/*",
|
|
26
26
|
"./dist/themes/**/*"
|
|
27
27
|
],
|
|
28
28
|
"files": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global.css.d.ts","sourceRoot":"","sources":["../../lib/styles/global.css.ts"],"names":[],"mappings":""}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
__vanilla_filescope__.setFileScope("lib/styles/global.css.ts", "@autoguru/overdrive");
|
|
5
|
-
import { globalFontFace, globalStyle } from '@vanilla-extract/css';
|
|
6
|
-
import { overdriveTokens } from "../themes/theme.css.js";
|
|
7
|
-
import { cssLayerReset } from "./layers.css.js";
|
|
8
|
-
globalFontFace('AvertaStandard', {
|
|
9
|
-
fontStyle: 'normal',
|
|
10
|
-
fontWeight: 400,
|
|
11
|
-
fontDisplay: 'swap',
|
|
12
|
-
src: `local('Averta Std Regular'), local('AvertaStd-Regular'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-regular-webfont.woff2') format('woff2'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-regular-webfont.woff') format('woff')`
|
|
13
|
-
});
|
|
14
|
-
globalFontFace('AvertaStandard', {
|
|
15
|
-
fontStyle: 'normal',
|
|
16
|
-
fontWeight: 500,
|
|
17
|
-
fontDisplay: 'swap',
|
|
18
|
-
src: `local('Averta Std Semibold'), local('AvertaStd-Semibold'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-semibold-webfont.woff2') format('woff2'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-semibold-webfont.woff') format('woff')`
|
|
19
|
-
});
|
|
20
|
-
globalFontFace('AvertaStandard', {
|
|
21
|
-
fontStyle: 'normal',
|
|
22
|
-
fontWeight: 700,
|
|
23
|
-
fontDisplay: 'swap',
|
|
24
|
-
src: `local('Averta Std Bold'), local('AvertaStd-Bold'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-bold-webfont.woff2') format('woff2'),url('https://cdn.autoguru.com.au/assets/fonts/avertastd-bold-webfont.woff') format('woff')`
|
|
25
|
-
});
|
|
26
|
-
globalStyle(':where(html)', {
|
|
27
|
-
'@layer': {
|
|
28
|
-
[cssLayerReset]: {
|
|
29
|
-
overflowX: 'hidden'
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
globalStyle('body', {
|
|
34
|
-
'@layer': {
|
|
35
|
-
[cssLayerReset]: {
|
|
36
|
-
margin: 0,
|
|
37
|
-
padding: 0,
|
|
38
|
-
border: 'none'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
globalStyle('body, [data-od-base]', {
|
|
43
|
-
'@layer': {
|
|
44
|
-
[cssLayerReset]: {
|
|
45
|
-
fontFamily: overdriveTokens.typography.fontFamily,
|
|
46
|
-
fontSize: overdriveTokens.typography.size[4].fontSize,
|
|
47
|
-
fontWeight: overdriveTokens.typography.fontWeight.normal,
|
|
48
|
-
lineHeight: overdriveTokens.typography.size[4].lineHeight,
|
|
49
|
-
textRendering: 'optimizeLegibility',
|
|
50
|
-
textSizeAdjust: 'none',
|
|
51
|
-
WebkitTapHighlightColor: 'transparent',
|
|
52
|
-
WebkitTextSizeAdjust: 'none'
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
globalStyle('*, *::after, *::before', {
|
|
57
|
-
'@layer': {
|
|
58
|
-
[cssLayerReset]: {
|
|
59
|
-
boxSizing: 'border-box'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
globalStyle(':where(button, input, select, textarea)', {
|
|
64
|
-
'@layer': {
|
|
65
|
-
[cssLayerReset]: {
|
|
66
|
-
fontFamily: 'inherit',
|
|
67
|
-
fontSize: 'inherit'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
__vanilla_filescope__.endFileScope();
|