@autoguru/overdrive 4.43.6-next.4 → 4.43.6-next.6
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/Heading/Heading.d.ts +2 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +3 -2
- package/dist/components/Heading/Heading.stories.d.ts +2 -2
- 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/reset.css.js +1 -1
- 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
|
@@ -5,6 +5,7 @@ export type HeadingTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
|
5
5
|
export interface HeadingProps extends Omit<BoxProps, keyof TextStylesProps>, Omit<TextStylesProps, 'as'> {
|
|
6
6
|
as?: HeadingTags;
|
|
7
7
|
align?: TextStylesProps['textAlign'];
|
|
8
|
+
is?: HeadingTags;
|
|
8
9
|
}
|
|
9
|
-
export declare const Heading: ({ as, align, breakWord, children, className, color, colour, fontWeight, noWrap, size, transform, ...props }: HeadingProps) => React.JSX.Element;
|
|
10
|
+
export declare const Heading: ({ is, as, align, breakWord, children, className, color, colour, fontWeight, noWrap, size, transform, ...props }: HeadingProps) => React.JSX.Element;
|
|
10
11
|
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,QAAQ,EAAE,MAAM,eAAe,CAAC,EAC5C,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC;IAC5B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,QAAQ,EAAE,MAAM,eAAe,CAAC,EAC5C,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC;IAC5B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IAErC,EAAE,CAAC,EAAE,WAAW,CAAC;CACjB;AAcD,eAAO,MAAM,OAAO,GAAI,iHAcrB,YAAY,sBAoBd,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["as", "align", "breakWord", "children", "className", "color", "colour", "fontWeight", "noWrap", "size", "transform"];
|
|
5
|
+
const _excluded = ["is", "as", "align", "breakWord", "children", "className", "color", "colour", "fontWeight", "noWrap", "size", "transform"];
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import React from 'react';
|
|
@@ -19,7 +19,8 @@ const defaultSizeMap = {
|
|
|
19
19
|
};
|
|
20
20
|
export const Heading = _ref => {
|
|
21
21
|
let {
|
|
22
|
-
|
|
22
|
+
is = 'h1',
|
|
23
|
+
as = is,
|
|
23
24
|
align,
|
|
24
25
|
breakWord,
|
|
25
26
|
children,
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Heading, type HeadingProps } from './Heading';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ as, align, breakWord, children, className, color, colour, fontWeight, noWrap, size, transform, ...props }: HeadingProps) => React.JSX.Element;
|
|
6
|
+
component: ({ is, as, align, breakWord, children, className, color, colour, fontWeight, noWrap, size, transform, ...props }: HeadingProps) => React.JSX.Element;
|
|
7
7
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-vite").ReactRenderer, {
|
|
8
8
|
as?: import("./Heading").HeadingTags | undefined;
|
|
9
9
|
align?: ("left" | "right" | "center" | "centre" | {
|
|
@@ -12,6 +12,7 @@ declare const meta: {
|
|
|
12
12
|
desktop?: "left" | "right" | "center" | "centre" | undefined;
|
|
13
13
|
largeDesktop?: "left" | "right" | "center" | "centre" | undefined;
|
|
14
14
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 1 | 3 | 4, "left" | "right" | "center" | "centre" | null>;
|
|
15
|
+
is?: import("./Heading").HeadingTags | undefined;
|
|
15
16
|
value?: string | number | readonly string[] | undefined;
|
|
16
17
|
backgroundColour?: "white" | "black900" | "black800" | "black700" | "black600" | "black500" | "black400" | "black300" | "black200" | "black100" | "gray900" | "gray800" | "gray700" | "gray600" | "gray500" | "gray400" | "gray300" | "gray200" | "gray100" | "green900" | "green800" | "green700" | "green600" | "green500" | "green400" | "green300" | "green200" | "green100" | "blue900" | "blue800" | "blue700" | "blue600" | "blue500" | "blue400" | "blue300" | "blue200" | "blue100" | "yellow900" | "yellow800" | "yellow700" | "yellow600" | "yellow500" | "yellow400" | "yellow300" | "yellow200" | "yellow100" | "red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "success" | "danger" | "warning" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "transparent" | undefined;
|
|
17
18
|
content?: string | undefined | undefined;
|
|
@@ -477,7 +478,6 @@ declare const meta: {
|
|
|
477
478
|
title?: string | undefined | undefined;
|
|
478
479
|
pattern?: string | undefined | undefined;
|
|
479
480
|
className?: import("clsx").ClassValue;
|
|
480
|
-
is?: React.ElementType | undefined;
|
|
481
481
|
accept?: string | undefined | undefined;
|
|
482
482
|
acceptCharset?: string | undefined | undefined;
|
|
483
483
|
action?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.css.d.ts","sourceRoot":"","sources":["../../../lib/styles/global/fonts.css.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
+
__vanilla_filescope__.setFileScope("lib/styles/global/fonts.css.ts", "@autoguru/overdrive");
|
|
5
|
+
import { globalFontFace } from '@vanilla-extract/css';
|
|
6
|
+
globalFontFace('AvertaStandard', {
|
|
7
|
+
fontStyle: 'normal',
|
|
8
|
+
fontWeight: 400,
|
|
9
|
+
fontDisplay: 'swap',
|
|
10
|
+
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')`
|
|
11
|
+
});
|
|
12
|
+
globalFontFace('AvertaStandard', {
|
|
13
|
+
fontStyle: 'normal',
|
|
14
|
+
fontWeight: 500,
|
|
15
|
+
fontDisplay: 'swap',
|
|
16
|
+
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')`
|
|
17
|
+
});
|
|
18
|
+
globalFontFace('AvertaStandard', {
|
|
19
|
+
fontStyle: 'normal',
|
|
20
|
+
fontWeight: 700,
|
|
21
|
+
fontDisplay: 'swap',
|
|
22
|
+
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')`
|
|
23
|
+
});
|
|
24
|
+
__vanilla_filescope__.endFileScope();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset.css.d.ts","sourceRoot":"","sources":["../../../lib/styles/global/reset.css.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
+
__vanilla_filescope__.setFileScope("lib/styles/global/reset.css.ts", "@autoguru/overdrive");
|
|
5
|
+
import { globalStyle } from '@vanilla-extract/css';
|
|
6
|
+
import { overdriveTokens } from "../../themes/theme.css.js";
|
|
7
|
+
import { cssLayerReset } from "../layers.css.js";
|
|
8
|
+
globalStyle(':where(html)', {
|
|
9
|
+
'@layer': {
|
|
10
|
+
[cssLayerReset]: {
|
|
11
|
+
overflowX: 'hidden'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
globalStyle('body', {
|
|
16
|
+
'@layer': {
|
|
17
|
+
[cssLayerReset]: {
|
|
18
|
+
margin: 0,
|
|
19
|
+
padding: 0,
|
|
20
|
+
border: 'none'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
globalStyle('body, [data-od-base]', {
|
|
25
|
+
'@layer': {
|
|
26
|
+
[cssLayerReset]: {
|
|
27
|
+
fontFamily: overdriveTokens.typography.fontFamily,
|
|
28
|
+
fontSize: overdriveTokens.typography.size[4].fontSize,
|
|
29
|
+
fontWeight: overdriveTokens.typography.fontWeight.normal,
|
|
30
|
+
lineHeight: overdriveTokens.typography.size[4].lineHeight,
|
|
31
|
+
textRendering: 'optimizeLegibility',
|
|
32
|
+
textSizeAdjust: 'none',
|
|
33
|
+
WebkitTapHighlightColor: 'transparent',
|
|
34
|
+
WebkitTextSizeAdjust: 'none'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
globalStyle('*, *::after, *::before', {
|
|
39
|
+
'@layer': {
|
|
40
|
+
[cssLayerReset]: {
|
|
41
|
+
boxSizing: 'border-box'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
globalStyle(':where(button, input, select, textarea)', {
|
|
46
|
+
'@layer': {
|
|
47
|
+
[cssLayerReset]: {
|
|
48
|
+
fontFamily: 'inherit',
|
|
49
|
+
fontSize: 'inherit'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
__vanilla_filescope__.endFileScope();
|
package/dist/styles/reset.css.js
CHANGED
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.6",
|
|
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();
|