@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { componentStyles } from "../../../styles/index.js";
|
|
6
6
|
import { Text } from "../../Text/Text.js";
|
|
7
7
|
import * as styles from "./HintText.css.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,17 +14,16 @@ export const HintText = _ref => {
|
|
|
14
14
|
size = 'medium',
|
|
15
15
|
className = ''
|
|
16
16
|
} = _ref;
|
|
17
|
-
const style = boxStyles({
|
|
18
|
-
as: 'p',
|
|
19
|
-
marginTop: '1'
|
|
20
|
-
});
|
|
21
17
|
if (!hintText && !reserveHintSpace) return null;
|
|
22
18
|
const showHintText = !disabled && hintText;
|
|
23
19
|
return _jsx(Text, {
|
|
24
20
|
as: "p",
|
|
25
21
|
size: size === 'large' ? '4' : '2',
|
|
26
22
|
colour: "unset",
|
|
27
|
-
className: clsx(
|
|
23
|
+
className: clsx(componentStyles({
|
|
24
|
+
as: 'p',
|
|
25
|
+
mt: '1'
|
|
26
|
+
}), styles.hintText, className),
|
|
28
27
|
children: showHintText ? hintText : '\u00A0'
|
|
29
28
|
});
|
|
30
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withEnhancedInput.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,EAAE,EACb,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withEnhancedInput.d.ts","sourceRoot":"","sources":["../../../../lib/components/private/InputBase/withEnhancedInput.tsx"],"names":[],"mappings":"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"}
|
|
@@ -8,9 +8,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import { invariant, wrapEvent } from '@autoguru/utilities';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import React, { forwardRef, useCallback, useState } from 'react';
|
|
11
|
+
import { componentStyles, sprinkles } from "../../../styles/index.js";
|
|
11
12
|
import { useInputControlledState } from "../../../utils/index.js";
|
|
12
13
|
import { Box } from "../../Box/Box.js";
|
|
13
|
-
import { useBoxStyles } from "../../Box/useBoxStyles.js";
|
|
14
14
|
import { Icon } from "../../Icon/Icon.js";
|
|
15
15
|
import { ProgressSpinner } from "../../ProgressSpinner/ProgressSpinner.js";
|
|
16
16
|
import { HintText } from "./HintText.js";
|
|
@@ -73,8 +73,8 @@ export const withEnhancedInput = function (WrappingComponent) {
|
|
|
73
73
|
disabled
|
|
74
74
|
}, inputStateStyles);
|
|
75
75
|
const iconSize = size === 'small' ? 'medium' : size;
|
|
76
|
-
const inputItselfClassName = clsx(
|
|
77
|
-
|
|
76
|
+
const inputItselfClassName = clsx(componentStyles({
|
|
77
|
+
as: primitiveType === 'textarea' ? 'textarea' : 'input',
|
|
78
78
|
backgroundColour,
|
|
79
79
|
width: 'full',
|
|
80
80
|
position: 'relative',
|
|
@@ -128,7 +128,7 @@ export const withEnhancedInput = function (WrappingComponent) {
|
|
|
128
128
|
const onMouseOut = useCallback(() => {
|
|
129
129
|
setIsHovered(false);
|
|
130
130
|
}, []);
|
|
131
|
-
const iconStyles =
|
|
131
|
+
const iconStyles = sprinkles({
|
|
132
132
|
pointerEvents: 'none',
|
|
133
133
|
position: 'absolute'
|
|
134
134
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export * from './components';
|
|
|
2
2
|
export * from './hooks';
|
|
3
3
|
export type { Sprinkles as BaseStyleProps, SprinklesLegacyColours as LegacyColourStyleProps, } from './styles/sprinkles.css';
|
|
4
4
|
export { overdriveTokens as tokens } from './themes/theme.css';
|
|
5
|
-
export {
|
|
5
|
+
export { sprinkles as style } from './styles/sprinkles.css';
|
|
6
6
|
export { useId, arrayRingLookup } from './utils/index';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,YAAY,EACX,SAAS,IAAI,cAAc,EAC3B,sBAAsB,IAAI,sBAAsB,GAChD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,YAAY,EACX,SAAS,IAAI,cAAc,EAC3B,sBAAsB,IAAI,sBAAsB,GAChD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
export * from "./components/index.js";
|
|
4
4
|
export * from "./hooks/index.js";
|
|
5
5
|
export { overdriveTokens as tokens } from "./themes/theme.css.js";
|
|
6
|
-
export {
|
|
6
|
+
export { sprinkles as style } from "./styles/sprinkles.css.js";
|
|
7
7
|
export { useId, arrayRingLookup } from "./utils/index.js";
|
|
@@ -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();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { cssLayerComponent, cssLayerTheme } from './layers.css';
|
|
2
|
+
export { resetVariants, type ResetVariantProps } from './reset.css';
|
|
3
|
+
export { componentStyles, elementResetStyles, resetStyles, } from './resetStyles';
|
|
4
|
+
export { sprinkles, type Sprinkles, type SprinklesLegacyColours, } from './sprinkles.css';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,WAAW,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,SAAS,EACT,KAAK,SAAS,EACd,KAAK,sBAAsB,GAC3B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { cssLayerComponent, cssLayerTheme } from "./layers.css.js";
|
|
4
|
+
export { resetVariants } from "./reset.css.js";
|
|
5
|
+
export { componentStyles, elementResetStyles, resetStyles } from "./resetStyles.js";
|
|
6
|
+
export { sprinkles } from "./sprinkles.css.js";
|
|
@@ -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;
|
|
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,WAAW,QAOtB,CAAC;AAEH,eAAO,MAAM,SAAS,QASpB,CAAC;AAuHH,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,14 @@ const trimmedElement = style({
|
|
|
20
20
|
[cssLayerReset]: _objectSpread({}, trimmed)
|
|
21
21
|
}
|
|
22
22
|
}, "trimmedElement");
|
|
23
|
+
export const borderReset = style({
|
|
24
|
+
'@layer': {
|
|
25
|
+
[cssLayerReset]: {
|
|
26
|
+
borderStyle: 'solid',
|
|
27
|
+
borderWidth: 0
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, "borderReset");
|
|
23
31
|
export const container = style({
|
|
24
32
|
'@layer': {
|
|
25
33
|
[cssLayerReset]: {
|
|
@@ -67,7 +75,7 @@ const list = style({
|
|
|
67
75
|
})
|
|
68
76
|
}
|
|
69
77
|
}, "list");
|
|
70
|
-
const fieldset = [trimmedElement, style({
|
|
78
|
+
const fieldset = [trimmedElement, borderReset, style({
|
|
71
79
|
'@layer': {
|
|
72
80
|
[cssLayerReset]: {
|
|
73
81
|
appearance: 'none'
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import type { ElementType, ReactElement } from 'react';
|
|
2
|
+
import { type Sprinkles } from './sprinkles.css';
|
|
1
3
|
export declare const resetStyles: ({ as: _as }: {
|
|
2
4
|
as: string | undefined;
|
|
3
5
|
}) => string;
|
|
6
|
+
export declare const elementResetStyles: (tag: unknown) => string;
|
|
7
|
+
export declare const componentStyles: ({ as, ...styleProps }: {
|
|
8
|
+
as?: string | ElementType | ReactElement;
|
|
9
|
+
} & Sprinkles) => string;
|
|
4
10
|
//# sourceMappingURL=resetStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resetStyles.d.ts","sourceRoot":"","sources":["../../lib/styles/resetStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resetStyles.d.ts","sourceRoot":"","sources":["../../lib/styles/resetStyles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5D,eAAO,MAAM,WAAW,GAAI,aAAa;IAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,WAKlE,CAAC;AAOF,eAAO,MAAM,kBAAkB,GAAI,KAAK,OAAO,WAG9C,CAAC;AAOF,eAAO,MAAM,eAAe,GAAI,uBAG7B;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,YAAY,CAAA;CAAE,GAAG,SAAS,WACP,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
const _excluded = ["as"];
|
|
5
|
+
import clsx from 'clsx';
|
|
3
6
|
import { element, resetVariants } from "./reset.css.js";
|
|
7
|
+
import { sprinkles } from "./sprinkles.css.js";
|
|
4
8
|
export const resetStyles = _ref => {
|
|
5
9
|
let {
|
|
6
10
|
as: _as
|
|
@@ -10,4 +14,17 @@ export const resetStyles = _ref => {
|
|
|
10
14
|
return resetVariants({
|
|
11
15
|
as
|
|
12
16
|
});
|
|
17
|
+
};
|
|
18
|
+
export const elementResetStyles = tag => {
|
|
19
|
+
if (typeof tag === 'string') return resetStyles({
|
|
20
|
+
as: tag
|
|
21
|
+
});
|
|
22
|
+
return '';
|
|
23
|
+
};
|
|
24
|
+
export const componentStyles = _ref2 => {
|
|
25
|
+
let {
|
|
26
|
+
as
|
|
27
|
+
} = _ref2,
|
|
28
|
+
styleProps = _objectWithoutProperties(_ref2, _excluded);
|
|
29
|
+
return clsx(elementResetStyles(as), sprinkles(styleProps));
|
|
13
30
|
};
|
|
@@ -7,30 +7,6 @@ export declare const valueArrays: {
|
|
|
7
7
|
intentForegroundColours: SprinklesLegacyColours["colour"][];
|
|
8
8
|
lineHeights: string[];
|
|
9
9
|
};
|
|
10
|
-
export declare const sprinklesLegacyColours: ((props: {
|
|
11
|
-
backgroundColor?: "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;
|
|
12
|
-
borderBottomColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
13
|
-
borderLeftColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
14
|
-
borderRightColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
15
|
-
borderTopColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
16
|
-
color?: "link" | "white" | "body" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | "muted" | "unset" | undefined;
|
|
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;
|
|
18
|
-
borderColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
19
|
-
borderColourX?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
20
|
-
borderColourY?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
21
|
-
borderBottomColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
22
|
-
borderLeftColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
23
|
-
borderRightColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
24
|
-
borderTopColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
25
|
-
borderColourBottom?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
26
|
-
borderColourLeft?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
27
|
-
borderColourRight?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
28
|
-
borderColourTop?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
29
|
-
colour?: "link" | "white" | "body" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | "muted" | "unset" | undefined;
|
|
30
|
-
}) => string) & {
|
|
31
|
-
properties: Set<"colour" | "backgroundColour" | "color" | "backgroundColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "borderColour" | "borderColourX" | "borderColourY" | "borderBottomColour" | "borderLeftColour" | "borderRightColour" | "borderTopColour" | "borderColourBottom" | "borderColourLeft" | "borderColourRight" | "borderColourTop">;
|
|
32
|
-
};
|
|
33
|
-
export type SprinklesLegacyColours = Omit<Parameters<typeof sprinklesLegacyColours>[0], 'backgroundColor' | 'borderColor' | 'borderBottomColor' | 'borderLeftColor' | 'borderRightColor' | 'borderTopColor' | 'color'>;
|
|
34
10
|
export declare const sprinklesLegacyText: ((props: {
|
|
35
11
|
color?: "link" | "white" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | "muted" | "unset" | undefined;
|
|
36
12
|
colour?: "link" | "white" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | "muted" | "unset" | undefined;
|
|
@@ -55,12 +31,18 @@ export declare const sprinkles: ((props: {
|
|
|
55
31
|
borderLeftColor?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
56
32
|
borderRightColor?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
57
33
|
borderTopColor?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
34
|
+
borderBottomColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
35
|
+
borderLeftColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
36
|
+
borderRightColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
37
|
+
borderTopColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
58
38
|
borderLeftStyle?: "none" | "solid" | undefined;
|
|
59
39
|
borderBottomStyle?: "none" | "solid" | undefined;
|
|
60
40
|
borderRightStyle?: "none" | "solid" | undefined;
|
|
61
41
|
borderTopStyle?: "none" | "solid" | undefined;
|
|
62
42
|
color?: "soft" | "success" | "info" | "danger" | "warning" | "normal" | "inverse" | undefined;
|
|
43
|
+
colour?: "link" | "white" | "body" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | "muted" | "unset" | undefined;
|
|
63
44
|
backgroundColor?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "transparent" | undefined;
|
|
45
|
+
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;
|
|
64
46
|
opacity?: number | "1" | "0" | undefined;
|
|
65
47
|
fontSize?: {} | undefined;
|
|
66
48
|
lineHeight?: {} | undefined;
|
|
@@ -74,7 +56,16 @@ export declare const sprinkles: ((props: {
|
|
|
74
56
|
bg?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "transparent" | undefined;
|
|
75
57
|
fg?: "soft" | "success" | "info" | "danger" | "warning" | "normal" | "inverse" | undefined;
|
|
76
58
|
borderColor?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
59
|
+
borderColorX?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
60
|
+
borderColorY?: "page" | "hard" | "soft" | "accent" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
61
|
+
borderColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
62
|
+
borderColourX?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
63
|
+
borderColourY?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
77
64
|
borderStyle?: "none" | "solid" | undefined;
|
|
65
|
+
borderStyleBottom?: "none" | "solid" | undefined;
|
|
66
|
+
borderStyleLeft?: "none" | "solid" | undefined;
|
|
67
|
+
borderStyleRight?: "none" | "solid" | undefined;
|
|
68
|
+
borderStyleTop?: "none" | "solid" | undefined;
|
|
78
69
|
} & {
|
|
79
70
|
display?: ("none" | "flex" | "grid" | "block" | "contents" | "inline" | "inline-block" | "inline-flex" | "inlineBlock" | "inlineFlex" | {
|
|
80
71
|
mobile?: "none" | "flex" | "grid" | "block" | "contents" | "inline" | "inline-block" | "inline-flex" | "inlineBlock" | "inlineFlex" | undefined;
|
|
@@ -106,12 +97,12 @@ export declare const sprinkles: ((props: {
|
|
|
106
97
|
desktop?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
107
98
|
largeDesktop?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
|
108
99
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "fixed" | "absolute" | "relative" | "static" | "sticky" | null>;
|
|
109
|
-
textAlign?: ("left" | "right" | "center" | {
|
|
110
|
-
mobile?: "left" | "right" | "center" | undefined;
|
|
111
|
-
tablet?: "left" | "right" | "center" | undefined;
|
|
112
|
-
desktop?: "left" | "right" | "center" | undefined;
|
|
113
|
-
largeDesktop?: "left" | "right" | "center" | undefined;
|
|
114
|
-
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "left" | "right" | "center" | null>;
|
|
100
|
+
textAlign?: ("left" | "right" | "center" | "centre" | {
|
|
101
|
+
mobile?: "left" | "right" | "center" | "centre" | undefined;
|
|
102
|
+
tablet?: "left" | "right" | "center" | "centre" | undefined;
|
|
103
|
+
desktop?: "left" | "right" | "center" | "centre" | undefined;
|
|
104
|
+
largeDesktop?: "left" | "right" | "center" | "centre" | undefined;
|
|
105
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "left" | "right" | "center" | "centre" | null>;
|
|
115
106
|
borderRadius?: ("1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | {
|
|
116
107
|
mobile?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
117
108
|
tablet?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
@@ -184,36 +175,30 @@ export declare const sprinkles: ((props: {
|
|
|
184
175
|
desktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
185
176
|
largeDesktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
186
177
|
} | undefined);
|
|
187
|
-
|
|
188
|
-
mobile?: "stretch" | "center" | "
|
|
189
|
-
tablet?: "stretch" | "center" | "
|
|
190
|
-
desktop?: "stretch" | "center" | "
|
|
191
|
-
largeDesktop?: "stretch" | "center" | "
|
|
192
|
-
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "
|
|
193
|
-
|
|
194
|
-
mobile?: "
|
|
195
|
-
tablet?: "
|
|
196
|
-
desktop?: "
|
|
197
|
-
largeDesktop?: "
|
|
198
|
-
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "
|
|
199
|
-
|
|
200
|
-
mobile?: "
|
|
201
|
-
tablet?: "
|
|
202
|
-
desktop?: "
|
|
203
|
-
largeDesktop?: "
|
|
204
|
-
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "
|
|
205
|
-
|
|
206
|
-
mobile?: "stretch" | "center" | "
|
|
207
|
-
tablet?: "stretch" | "center" | "
|
|
208
|
-
desktop?: "stretch" | "center" | "
|
|
209
|
-
largeDesktop?: "stretch" | "center" | "
|
|
210
|
-
} | undefined)
|
|
211
|
-
justifySelf?: ("center" | "flex-end" | "flex-start" | {
|
|
212
|
-
mobile?: "center" | "flex-end" | "flex-start" | undefined;
|
|
213
|
-
tablet?: "center" | "flex-end" | "flex-start" | undefined;
|
|
214
|
-
desktop?: "center" | "flex-end" | "flex-start" | undefined;
|
|
215
|
-
largeDesktop?: "center" | "flex-end" | "flex-start" | undefined;
|
|
216
|
-
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "center" | "flex-end" | "flex-start" | null>;
|
|
178
|
+
alignContent?: ("space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | {
|
|
179
|
+
mobile?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
180
|
+
tablet?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
181
|
+
desktop?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
182
|
+
largeDesktop?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
183
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | null>;
|
|
184
|
+
alignItems?: ("stretch" | "center" | "end" | "start" | "baseline" | "centre" | "flexEnd" | "flexStart" | {
|
|
185
|
+
mobile?: "stretch" | "center" | "end" | "start" | "baseline" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
186
|
+
tablet?: "stretch" | "center" | "end" | "start" | "baseline" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
187
|
+
desktop?: "stretch" | "center" | "end" | "start" | "baseline" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
188
|
+
largeDesktop?: "stretch" | "center" | "end" | "start" | "baseline" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
189
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "end" | "start" | "baseline" | "centre" | "flexEnd" | "flexStart" | null>;
|
|
190
|
+
alignSelf?: ("stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | {
|
|
191
|
+
mobile?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
192
|
+
tablet?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
193
|
+
desktop?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
194
|
+
largeDesktop?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
195
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | null>;
|
|
196
|
+
justifyContent?: import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | null> | ("space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | {
|
|
197
|
+
mobile?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
198
|
+
tablet?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
199
|
+
desktop?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
200
|
+
largeDesktop?: "space-around" | "space-between" | "stretch" | "center" | "end" | "start" | "centre" | "spaceAround" | "spaceBetween" | "spaceEvenely" | "space-evenely" | "flexEnd" | "flexStart" | undefined;
|
|
201
|
+
} | undefined);
|
|
217
202
|
flexDirection?: ("column" | "column-reverse" | "row" | "row-reverse" | {
|
|
218
203
|
mobile?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
219
204
|
tablet?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
@@ -358,12 +343,12 @@ export declare const sprinkles: ((props: {
|
|
|
358
343
|
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
359
344
|
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
360
345
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
361
|
-
placeItems?: ("stretch" | "center" | "
|
|
362
|
-
mobile?: "stretch" | "center" | "
|
|
363
|
-
tablet?: "stretch" | "center" | "
|
|
364
|
-
desktop?: "stretch" | "center" | "
|
|
365
|
-
largeDesktop?: "stretch" | "center" | "
|
|
366
|
-
} | undefined)
|
|
346
|
+
placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | null> | ("stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | {
|
|
347
|
+
mobile?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
348
|
+
tablet?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
349
|
+
desktop?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
350
|
+
largeDesktop?: "stretch" | "center" | "end" | "start" | "centre" | "flexEnd" | "flexStart" | undefined;
|
|
351
|
+
} | undefined);
|
|
367
352
|
size?: import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | null> | ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | {
|
|
368
353
|
mobile?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
369
354
|
tablet?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
@@ -491,7 +476,8 @@ export declare const sprinkles: ((props: {
|
|
|
491
476
|
largeDesktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | "auto" | undefined;
|
|
492
477
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | "auto" | null>;
|
|
493
478
|
}) => string) & {
|
|
494
|
-
properties: Set<"color" | "width" | "size" | "fontSize" | "lineHeight" | "fontWeight" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "borderBottomColor" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopStyle" | "borderTopWidth" | "boxShadow" | "columnGap" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "height" | "justifyContent" | "
|
|
479
|
+
properties: Set<"colour" | "backgroundColour" | "color" | "width" | "size" | "fontSize" | "lineHeight" | "fontWeight" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "borderBottomColor" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopStyle" | "borderTopWidth" | "boxShadow" | "columnGap" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxWidth" | "minWidth" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "rowGap" | "textAlign" | "textWrap" | "userSelect" | "borderColor" | "borderRadius" | "borderStyle" | "borderWidth" | "gap" | "margin" | "overflow" | "padding" | "placeItems" | "text" | "borderBottomColour" | "borderLeftColour" | "borderRightColour" | "borderTopColour" | "useVar" | "bg" | "fg" | "borderColorX" | "borderColorY" | "borderColour" | "borderColourX" | "borderColourY" | "borderStyleBottom" | "borderStyleLeft" | "borderStyleRight" | "borderStyleTop" | "gridColumns" | "borderWidthX" | "borderWidthY" | "borderWidthBottom" | "borderWidthLeft" | "borderWidthRight" | "borderWidthTop" | "p" | "paddingX" | "px" | "paddingY" | "py" | "pt" | "pr" | "pb" | "pl" | "m" | "marginX" | "mx" | "marginY" | "my" | "mt" | "mr" | "mb" | "ml">;
|
|
495
480
|
};
|
|
496
481
|
export type Sprinkles = Parameters<typeof sprinkles>[0];
|
|
482
|
+
export type SprinklesLegacyColours = Pick<Sprinkles, 'backgroundColour' | 'borderColour' | 'borderBottomColour' | 'borderLeftColour' | 'borderRightColour' | 'borderTopColour' | 'colour'>;
|
|
497
483
|
//# sourceMappingURL=sprinkles.css.d.ts.map
|
|
@@ -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;AAoIF,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"}
|