@autoguru/overdrive 4.43.6-next.5 → 4.43.6-next.7
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/Box/newBox/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/newBox/boxStyles.js +5 -2
- 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/reset.css.d.ts +1 -0
- package/dist/styles/reset.css.d.ts.map +1 -1
- package/dist/styles/reset.css.js +7 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boxStyles.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/newBox/boxStyles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"boxStyles.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/newBox/boxStyles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAC3B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG3D,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,GACxE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,GACjC,UAAU,CAAC;AAEZ,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAe5D,eAAO,MAAM,0BAA0B,GAAI,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,6BAIvE,cAAc,CAAC,CAAC,CAAC;;;CA8BnB,CAAC;AASF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,WAAW,GAAG,KAAK,EACtD,OAAO,cAAc,CAAC,CAAC,CAAC,WAIxB,CAAC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
const _excluded = ["as", "className"];
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
+
import { borderWidthReset } from "../../../styles/reset.css.js";
|
|
6
7
|
import { resetStyles } from "../../../styles/resetStyles.js";
|
|
7
8
|
import { sprinkles, sprinklesLegacyColours } from "../../../styles/sprinkles.css.js";
|
|
8
9
|
import { filterPropsWithStyles } from "../../../utils/sprinkles.js";
|
|
@@ -14,6 +15,7 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
14
15
|
className
|
|
15
16
|
} = _ref,
|
|
16
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
let hasBorder = false;
|
|
17
19
|
const {
|
|
18
20
|
sprinklesProps,
|
|
19
21
|
sprinklesLegacyColourProps,
|
|
@@ -21,7 +23,8 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
21
23
|
} = filterPropsWithStyles(props);
|
|
22
24
|
for (const postfix of borderPostfixes) {
|
|
23
25
|
for (const property of borderProperties) {
|
|
24
|
-
if (props[`border${postfix}${property}`]) {
|
|
26
|
+
if (!!props[`border${postfix}${property}`] || !!props[`border${property}${postfix}`]) {
|
|
27
|
+
hasBorder = true;
|
|
25
28
|
sprinklesProps[`border${postfix}Style`] = 'solid';
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -29,7 +32,7 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
29
32
|
return {
|
|
30
33
|
className: clsx(resetStyles({
|
|
31
34
|
as: as ? `${as}` : as
|
|
32
|
-
}), sprinkles(sprinklesProps), sprinklesLegacyColours(sprinklesLegacyColourProps), className),
|
|
35
|
+
}), hasBorder && borderWidthReset, sprinkles(sprinklesProps), sprinklesLegacyColours(sprinklesLegacyColourProps), className),
|
|
33
36
|
baseProps
|
|
34
37
|
};
|
|
35
38
|
};
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset.css.d.ts","sourceRoot":"","sources":["../../lib/styles/reset.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQlE,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAUF,eAAO,MAAM,SAAS,QASpB,CAAC;AAsHH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;AAEjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAC1C,cAAc,CAAC,OAAO,aAAa,CAAC,CACpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"reset.css.d.ts","sourceRoot":"","sources":["../../lib/styles/reset.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQlE,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAUF,eAAO,MAAM,gBAAgB,QAI3B,CAAC;AAEH,eAAO,MAAM,SAAS,QASpB,CAAC;AAsHH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;AAEjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAC1C,cAAc,CAAC,OAAO,aAAa,CAAC,CACpC,CAAC"}
|
package/dist/styles/reset.css.js
CHANGED
|
@@ -20,6 +20,13 @@ const trimmedElement = style({
|
|
|
20
20
|
[cssLayerReset]: _objectSpread({}, trimmed)
|
|
21
21
|
}
|
|
22
22
|
}, "trimmedElement");
|
|
23
|
+
export const borderWidthReset = style({
|
|
24
|
+
'@layer': {
|
|
25
|
+
[cssLayerReset]: {
|
|
26
|
+
borderWidth: 0
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, "borderWidthReset");
|
|
23
30
|
export const container = style({
|
|
24
31
|
'@layer': {
|
|
25
32
|
[cssLayerReset]: {
|
package/package.json
CHANGED