@autoguru/overdrive 4.43.6-next.7 → 4.43.6-next.9
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 +2 -2
- 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.map +1 -1
- package/dist/components/Box/Box.js +106 -49
- package/dist/components/Box/newBox/boxStyles.d.ts +456 -1
- package/dist/components/Box/newBox/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/newBox/boxStyles.js +7 -13
- package/dist/components/Box/useBoxStyles.d.ts.map +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 +1 -1
- package/dist/components/DatePicker/DatePicker.js +2 -2
- package/dist/components/DropDown/DropDown.stories.d.ts +1 -1
- package/dist/components/Heading/Heading.stories.d.ts +83 -81
- 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 +84 -82
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +1 -1
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +2 -2
- package/dist/components/OptionList/OptionList.d.ts +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/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 +6 -15
- 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/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 -1
- package/dist/styles/reset.css.d.ts.map +1 -1
- package/dist/styles/reset.css.js +4 -3
- 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 +86 -94
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +67 -35
- 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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprinkles.css.d.ts","sourceRoot":"","sources":["../../lib/styles/sprinkles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sprinkles.css.d.ts","sourceRoot":"","sources":["../../lib/styles/sprinkles.css.ts"],"names":[],"mappings":"AAqKA,eAAO,MAAM,WAAW;;;;;;6BAUlB,sBAAsB,CAAC,QAAQ,CAAC,EAAE;;CAEvC,CAAC;AA0FF,eAAO,MAAM,mBAAmB;;;;;CAAwC,CAAC;AACzE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EACzC,OAAO,CACP,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAOhC,CAAC;AAmIF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAC;AAC/E,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAGxD,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACxC,SAAS,EACP,kBAAkB,GAClB,cAAc,GACd,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,iBAAiB,GACjB,QAAQ,CACV,CAAC"}
|
|
@@ -66,13 +66,63 @@ const intentBorderColours = Object.entries(tokens.colours.intent).reduce((acc, _
|
|
|
66
66
|
acc[intent] = border;
|
|
67
67
|
return acc;
|
|
68
68
|
}, {});
|
|
69
|
+
const backgroundColours = _objectSpread(_objectSpread(_objectSpread({}, intentBackgroundColoursStandard), tokens.colours.gamut), {}, {
|
|
70
|
+
transparent: 'transparent'
|
|
71
|
+
});
|
|
69
72
|
const borderColors = _objectSpread({
|
|
70
73
|
default: tokens.color.interactive.border,
|
|
71
74
|
muted: tokens.color.interactive.borderMuted,
|
|
72
75
|
disabled: tokens.color.interactive.borderDisabled
|
|
73
76
|
}, tokens.color.surface);
|
|
74
|
-
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) => {
|
|
75
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;
|
|
76
126
|
acc[key] = {
|
|
77
127
|
vars: {
|
|
78
128
|
[gapVar]: value
|
|
@@ -97,14 +147,20 @@ const baseProperties = defineProperties({
|
|
|
97
147
|
borderLeftColor: borderColors,
|
|
98
148
|
borderRightColor: borderColors,
|
|
99
149
|
borderTopColor: borderColors,
|
|
150
|
+
borderBottomColour: mappedBorderBottomColours,
|
|
151
|
+
borderLeftColour: mappedBorderLeftColours,
|
|
152
|
+
borderRightColour: mappedBorderRightColours,
|
|
153
|
+
borderTopColour: mappedBorderTopColours,
|
|
100
154
|
borderLeftStyle: ['none', 'solid'],
|
|
101
155
|
borderBottomStyle: ['none', 'solid'],
|
|
102
156
|
borderRightStyle: ['none', 'solid'],
|
|
103
157
|
borderTopStyle: ['none', 'solid'],
|
|
104
158
|
color: tokens.color.content,
|
|
159
|
+
colour: mappedColours,
|
|
105
160
|
backgroundColor: _objectSpread(_objectSpread({}, tokens.color.surface), {}, {
|
|
106
161
|
transparent: 'transparent'
|
|
107
162
|
}),
|
|
163
|
+
backgroundColour: mappedBackgroundColours,
|
|
108
164
|
opacity: [0, '1', '0'],
|
|
109
165
|
fontSize: fontSizes,
|
|
110
166
|
lineHeight: lineHeights,
|
|
@@ -124,42 +180,18 @@ const baseProperties = defineProperties({
|
|
|
124
180
|
bg: ['backgroundColor'],
|
|
125
181
|
fg: ['color'],
|
|
126
182
|
borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
borderBottomColor: borderColours,
|
|
138
|
-
borderLeftColor: borderColours,
|
|
139
|
-
borderRightColor: borderColours,
|
|
140
|
-
borderTopColor: borderColours,
|
|
141
|
-
color: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, tokens.colours.foreground), tokens.typography.colour), intentForegroundColours), {}, {
|
|
142
|
-
unset: 'unset',
|
|
143
|
-
white: tokens.colours.gamut.white
|
|
144
|
-
})
|
|
145
|
-
},
|
|
146
|
-
shorthands: {
|
|
147
|
-
backgroundColour: ['backgroundColor'],
|
|
148
|
-
borderColour: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
|
|
149
|
-
borderColourX: ['borderLeftColor', 'borderRightColor'],
|
|
150
|
-
borderColourY: ['borderBottomColor', 'borderTopColor'],
|
|
151
|
-
borderBottomColour: ['borderBottomColor'],
|
|
152
|
-
borderLeftColour: ['borderLeftColor'],
|
|
153
|
-
borderRightColour: ['borderRightColor'],
|
|
154
|
-
borderTopColour: ['borderTopColor'],
|
|
155
|
-
borderColourBottom: ['borderBottomColor'],
|
|
156
|
-
borderColourLeft: ['borderLeftColor'],
|
|
157
|
-
borderColourRight: ['borderRightColor'],
|
|
158
|
-
borderColourTop: ['borderTopColor'],
|
|
159
|
-
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']
|
|
160
193
|
}
|
|
161
194
|
});
|
|
162
|
-
export const sprinklesLegacyColours = createSprinkles(legacyColourProperties);
|
|
163
195
|
const legacyTextProperties = defineProperties({
|
|
164
196
|
'@layer': cssLayerUtil,
|
|
165
197
|
properties: {
|
|
@@ -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