@autoguru/overdrive 4.43.6-next.3 → 4.43.6-next.5
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/Box.d.ts +2 -1
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +11 -4
- package/dist/components/Box/newBox/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/newBox/boxStyles.js +3 -2
- package/dist/components/Columns/Column.css.d.ts +1 -1
- package/dist/components/DropDown/DropDown.stories.d.ts +1 -1
- package/dist/components/Heading/Heading.stories.d.ts +72 -70
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +72 -70
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +1 -1
- package/dist/components/OptionList/OptionList.d.ts +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.js +1 -1
- package/dist/components/TextLink/TextLink.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/sprinkles.css.d.ts +69 -69
- package/dist/styles/sprinkles.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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AllHTMLAttributes, ElementType, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type BoxStylesProps } from './newBox/boxStyles';
|
|
4
|
-
|
|
4
|
+
import type { CommonBoxProps } from './newBox/useBox';
|
|
5
|
+
export interface BoxProps extends CommonBoxProps, Omit<BoxStylesProps, 'as'>, Omit<AllHTMLAttributes<HTMLElement>, 'as' | 'className' | 'color' | 'height' | 'is' | 'size' | 'width'> {
|
|
5
6
|
as?: ElementType;
|
|
6
7
|
is?: ElementType;
|
|
7
8
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,QAChB,SAAQ,cAAc,EACrB,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EAC1B,IAAI,CACH,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE;IACF,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAKD,eAAO,MAAM,GAAG,8EAkMf,CAAC"}
|
|
@@ -2,11 +2,12 @@
|
|
|
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 = ["is", "as", "children", "className", "display", "width", "maxWidth", "minWidth", "height", "position", "overflow", "userSelect", "textAlign", "pointerEvents", "backgroundColour", "boxShadow", "color", "colour", "opacity", "borderRadius", "borderColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "borderColour", "borderColourX", "borderColourY", "borderColourTop", "borderColourRight", "borderColourBottom", "borderColourLeft", "borderWidth", "borderWidthX", "borderWidthY", "borderWidthTop", "borderWidthRight", "borderWidthBottom", "borderWidthLeft", "alignItems", "order", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent", "justifySelf", "gap", "columnGap", "rowGap", "m", "mb", "ml", "mr", "mt", "mx", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginLeft", "marginRight", "p", "pb", "pl", "pr", "pt", "px", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"];
|
|
5
|
+
const _excluded = ["is", "as", "children", "className", "odComponent", "testId", "display", "width", "maxWidth", "minWidth", "height", "position", "overflow", "userSelect", "textAlign", "pointerEvents", "backgroundColor", "backgroundColour", "boxShadow", "color", "colour", "opacity", "borderRadius", "borderColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "borderColour", "borderColourX", "borderColourY", "borderColourTop", "borderColourRight", "borderColourBottom", "borderColourLeft", "borderWidth", "borderWidthX", "borderWidthY", "borderWidthTop", "borderWidthRight", "borderWidthBottom", "borderWidthLeft", "alignItems", "order", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent", "justifySelf", "gap", "columnGap", "rowGap", "m", "mb", "ml", "mr", "mt", "mx", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginLeft", "marginRight", "p", "pb", "pl", "pr", "pt", "px", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"];
|
|
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 clsx from 'clsx';
|
|
9
9
|
import React, { forwardRef } from 'react';
|
|
10
|
+
import { dataAttrs } from "../../utils/dataAttrs.js";
|
|
10
11
|
import { boxStyles } from "./newBox/boxStyles.js";
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
export const Box = forwardRef((_ref, ref) => {
|
|
@@ -15,6 +16,8 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
15
16
|
as = is,
|
|
16
17
|
children,
|
|
17
18
|
className,
|
|
19
|
+
odComponent,
|
|
20
|
+
testId,
|
|
18
21
|
display,
|
|
19
22
|
width,
|
|
20
23
|
maxWidth,
|
|
@@ -25,6 +28,7 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
25
28
|
userSelect,
|
|
26
29
|
textAlign,
|
|
27
30
|
pointerEvents,
|
|
31
|
+
backgroundColor,
|
|
28
32
|
backgroundColour,
|
|
29
33
|
boxShadow,
|
|
30
34
|
color,
|
|
@@ -101,6 +105,7 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
101
105
|
userSelect,
|
|
102
106
|
textAlign,
|
|
103
107
|
pointerEvents,
|
|
108
|
+
backgroundColor,
|
|
104
109
|
backgroundColour,
|
|
105
110
|
boxShadow,
|
|
106
111
|
color,
|
|
@@ -165,10 +170,12 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
165
170
|
paddingRight
|
|
166
171
|
});
|
|
167
172
|
const Component = as;
|
|
168
|
-
return _jsx(Component, _objectSpread(_objectSpread({
|
|
173
|
+
return _jsx(Component, _objectSpread(_objectSpread(_objectSpread({}, allOtherProps), dataAttrs({
|
|
174
|
+
'od-component': odComponent === null || odComponent === void 0 ? void 0 : odComponent.toLocaleLowerCase(),
|
|
175
|
+
testId
|
|
176
|
+
})), {}, {
|
|
177
|
+
className: clsx(cls, className),
|
|
169
178
|
ref: ref,
|
|
170
|
-
className: clsx(cls, className)
|
|
171
|
-
}, allOtherProps), {}, {
|
|
172
179
|
children: children
|
|
173
180
|
}));
|
|
174
181
|
});
|
|
@@ -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;AAGzC,OAAO,EAEN,KAAK,SAAS,
|
|
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;AAGzC,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;;;CAsBnB,CAAC;AASF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,WAAW,GAAG,KAAK,EACtD,OAAO,cAAc,CAAC,CAAC,CAAC,WAIxB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
const _excluded = ["as", "className"];
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { resetStyles } from "../../../styles/resetStyles.js";
|
|
7
|
-
import { sprinkles } from "../../../styles/sprinkles.css.js";
|
|
7
|
+
import { sprinkles, sprinklesLegacyColours } from "../../../styles/sprinkles.css.js";
|
|
8
8
|
import { filterPropsWithStyles } from "../../../utils/sprinkles.js";
|
|
9
9
|
const borderProperties = ['Color', 'Colour', 'Width'];
|
|
10
10
|
const borderPostfixes = ['', 'Bottom', 'Left', 'Right', 'Top'];
|
|
@@ -16,6 +16,7 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
16
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
17
|
const {
|
|
18
18
|
sprinklesProps,
|
|
19
|
+
sprinklesLegacyColourProps,
|
|
19
20
|
baseProps
|
|
20
21
|
} = filterPropsWithStyles(props);
|
|
21
22
|
for (const postfix of borderPostfixes) {
|
|
@@ -28,7 +29,7 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
28
29
|
return {
|
|
29
30
|
className: clsx(resetStyles({
|
|
30
31
|
as: as ? `${as}` : as
|
|
31
|
-
}), sprinkles(sprinklesProps), className),
|
|
32
|
+
}), sprinkles(sprinklesProps), sprinklesLegacyColours(sprinklesLegacyColourProps), className),
|
|
32
33
|
baseProps
|
|
33
34
|
};
|
|
34
35
|
};
|
|
@@ -5,7 +5,7 @@ export declare const sprinklesColumnWidthResponsive: ((props: {
|
|
|
5
5
|
tablet?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | undefined;
|
|
6
6
|
desktop?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | undefined;
|
|
7
7
|
largeDesktop?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | undefined;
|
|
8
|
-
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<
|
|
8
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<2 | 1 | 3 | 4, "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | null>;
|
|
9
9
|
}) => string) & {
|
|
10
10
|
properties: Set<"flexBasis">;
|
|
11
11
|
};
|
|
@@ -10,9 +10,9 @@ declare const meta: {
|
|
|
10
10
|
icon?: import("@autoguru/icons").IconType | undefined;
|
|
11
11
|
isOpen?: boolean | undefined;
|
|
12
12
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13
|
+
key?: React.Key | null | undefined;
|
|
13
14
|
size?: import("../Button/Button.css").ButtonSize | undefined;
|
|
14
15
|
disabled?: boolean | undefined;
|
|
15
|
-
key?: React.Key | null | undefined;
|
|
16
16
|
id?: string | undefined | undefined;
|
|
17
17
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
18
18
|
className?: string | undefined | undefined;
|