@pandacss/studio 0.13.1 → 0.14.0
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/package.json +8 -8
- package/styled-system/css/css.d.ts +2 -2
- package/styled-system/css/css.mjs +1 -1
- package/styled-system/css/sva.mjs +7 -1
- package/styled-system/jsx/index.d.ts +1 -1
- package/styled-system/patterns/aspect-ratio.d.ts +1 -1
- package/styled-system/patterns/bleed.d.ts +1 -1
- package/styled-system/patterns/box.d.ts +1 -1
- package/styled-system/patterns/center.d.ts +1 -1
- package/styled-system/patterns/circle.d.ts +1 -1
- package/styled-system/patterns/container.d.ts +1 -1
- package/styled-system/patterns/divider.d.ts +1 -1
- package/styled-system/patterns/flex.d.ts +1 -1
- package/styled-system/patterns/float.d.ts +1 -1
- package/styled-system/patterns/grid-item.d.ts +1 -1
- package/styled-system/patterns/grid.d.ts +1 -1
- package/styled-system/patterns/hstack.d.ts +1 -1
- package/styled-system/patterns/link-box.d.ts +1 -1
- package/styled-system/patterns/link-overlay.d.ts +1 -1
- package/styled-system/patterns/spacer.d.ts +1 -1
- package/styled-system/patterns/square.d.ts +1 -1
- package/styled-system/patterns/stack.d.ts +1 -1
- package/styled-system/patterns/styled-link.d.ts +1 -1
- package/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/styled-system/patterns/vstack.d.ts +1 -1
- package/styled-system/patterns/wrap.d.ts +1 -1
- package/styled-system/styles.css +0 -26
- package/styled-system/types/conditions.d.ts +112 -112
- package/styled-system/types/index.d.ts +2 -0
- package/styled-system/types/recipe.d.ts +1 -0
- package/styled-system/chunks/..__core____tests____complex-rule.test.css +0 -19
- package/styled-system/chunks/..__shared____tests____string-literal.test.css +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"react": "18.2.0",
|
|
34
34
|
"react-dom": "18.2.0",
|
|
35
35
|
"vite": "4.4.9",
|
|
36
|
-
"@pandacss/types": "0.
|
|
37
|
-
"@pandacss/config": "0.
|
|
38
|
-
"@pandacss/shared": "0.
|
|
39
|
-
"@pandacss/token-dictionary": "0.
|
|
40
|
-
"@pandacss/logger": "0.
|
|
41
|
-
"@pandacss/node": "0.
|
|
36
|
+
"@pandacss/types": "0.14.0",
|
|
37
|
+
"@pandacss/config": "0.14.0",
|
|
38
|
+
"@pandacss/shared": "0.14.0",
|
|
39
|
+
"@pandacss/token-dictionary": "0.14.0",
|
|
40
|
+
"@pandacss/logger": "0.14.0",
|
|
41
|
+
"@pandacss/node": "0.14.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "18.2.18",
|
|
45
45
|
"@types/react-dom": "18.2.7",
|
|
46
46
|
"@vitejs/plugin-react": "4.0.4",
|
|
47
47
|
"execa": "7.2.0",
|
|
48
|
-
"@pandacss/dev": "0.
|
|
48
|
+
"@pandacss/dev": "0.14.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"codegen": "panda",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import type { SystemStyleObject } from '../types/index';
|
|
3
3
|
|
|
4
4
|
interface CssFunction {
|
|
5
|
-
(...styles: SystemStyleObject
|
|
6
|
-
raw: (styles: SystemStyleObject) => SystemStyleObject
|
|
5
|
+
(...styles: Array<SystemStyleObject | undefined | null | false>): string
|
|
6
|
+
raw: (...styles: Array<SystemStyleObject | undefined | null | false>) => SystemStyleObject
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export declare const css: CssFunction;
|
|
@@ -39,6 +39,6 @@ const context = {
|
|
|
39
39
|
|
|
40
40
|
const cssFn = createCss(context)
|
|
41
41
|
export const css = (...styles) => cssFn(mergeCss(...styles))
|
|
42
|
-
css.raw = (styles) => styles
|
|
42
|
+
css.raw = (...styles) => mergeCss(...styles)
|
|
43
43
|
|
|
44
44
|
export const { mergeCss, assignCss } = createMergeCss(context)
|
|
@@ -3,12 +3,17 @@ import { cva } from './cva.mjs';
|
|
|
3
3
|
|
|
4
4
|
export function sva(config) {
|
|
5
5
|
const slots = Object.entries(getSlotRecipes(config)).map(([slot, slotCva]) => [slot, cva(slotCva)])
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
function svaFn(props) {
|
|
8
8
|
const result = slots.map(([slot, cvaFn]) => [slot, cvaFn(props)])
|
|
9
9
|
return Object.fromEntries(result)
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
function raw(props) {
|
|
13
|
+
const result = slots.map(([slot, cvaFn]) => [slot, cvaFn.raw(props)])
|
|
14
|
+
return Object.fromEntries(result)
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
const variants = config.variants ?? {};
|
|
13
18
|
const variantKeys = Object.keys(variants);
|
|
14
19
|
|
|
@@ -22,6 +27,7 @@ export function sva(config) {
|
|
|
22
27
|
|
|
23
28
|
return Object.assign(svaFn, {
|
|
24
29
|
__cva__: false,
|
|
30
|
+
raw,
|
|
25
31
|
variantMap,
|
|
26
32
|
variantKeys,
|
|
27
33
|
splitVariantProps,
|
|
@@ -14,7 +14,7 @@ type AspectRatioStyles = AspectRatioProperties & DistributiveOmit<SystemStyleObj
|
|
|
14
14
|
|
|
15
15
|
interface AspectRatioPatternFn {
|
|
16
16
|
(styles?: AspectRatioStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: AspectRatioStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -15,7 +15,7 @@ type BleedStyles = BleedProperties & DistributiveOmit<SystemStyleObject, keyof B
|
|
|
15
15
|
|
|
16
16
|
interface BleedPatternFn {
|
|
17
17
|
(styles?: BleedStyles): string
|
|
18
|
-
raw: (styles
|
|
18
|
+
raw: (styles?: BleedStyles) => SystemStyleObject
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
|
|
@@ -14,7 +14,7 @@ type CenterStyles = CenterProperties & DistributiveOmit<SystemStyleObject, keyof
|
|
|
14
14
|
|
|
15
15
|
interface CenterPatternFn {
|
|
16
16
|
(styles?: CenterStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: CenterStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ type CircleStyles = CircleProperties & DistributiveOmit<SystemStyleObject, keyof
|
|
|
14
14
|
|
|
15
15
|
interface CirclePatternFn {
|
|
16
16
|
(styles?: CircleStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: CircleStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ type ContainerStyles = ContainerProperties & DistributiveOmit<SystemStyleObject,
|
|
|
14
14
|
|
|
15
15
|
interface ContainerPatternFn {
|
|
16
16
|
(styles?: ContainerStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: ContainerStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -16,7 +16,7 @@ type DividerStyles = DividerProperties & DistributiveOmit<SystemStyleObject, key
|
|
|
16
16
|
|
|
17
17
|
interface DividerPatternFn {
|
|
18
18
|
(styles?: DividerStyles): string
|
|
19
|
-
raw: (styles
|
|
19
|
+
raw: (styles?: DividerStyles) => SystemStyleObject
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
@@ -17,7 +17,7 @@ type FloatStyles = FloatProperties & DistributiveOmit<SystemStyleObject, keyof F
|
|
|
17
17
|
|
|
18
18
|
interface FloatPatternFn {
|
|
19
19
|
(styles?: FloatStyles): string
|
|
20
|
-
raw: (styles
|
|
20
|
+
raw: (styles?: FloatStyles) => SystemStyleObject
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
|
|
@@ -19,7 +19,7 @@ type GridItemStyles = GridItemProperties & DistributiveOmit<SystemStyleObject, k
|
|
|
19
19
|
|
|
20
20
|
interface GridItemPatternFn {
|
|
21
21
|
(styles?: GridItemStyles): string
|
|
22
|
-
raw: (styles
|
|
22
|
+
raw: (styles?: GridItemStyles) => SystemStyleObject
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
|
|
@@ -15,7 +15,7 @@ type HstackStyles = HstackProperties & DistributiveOmit<SystemStyleObject, keyof
|
|
|
15
15
|
|
|
16
16
|
interface HstackPatternFn {
|
|
17
17
|
(styles?: HstackStyles): string
|
|
18
|
-
raw: (styles
|
|
18
|
+
raw: (styles?: HstackStyles) => SystemStyleObject
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
|
|
@@ -14,7 +14,7 @@ type LinkBoxStyles = LinkBoxProperties & DistributiveOmit<SystemStyleObject, key
|
|
|
14
14
|
|
|
15
15
|
interface LinkBoxPatternFn {
|
|
16
16
|
(styles?: LinkBoxStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: LinkBoxStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ type LinkOverlayStyles = LinkOverlayProperties & DistributiveOmit<SystemStyleObj
|
|
|
14
14
|
|
|
15
15
|
interface LinkOverlayPatternFn {
|
|
16
16
|
(styles?: LinkOverlayStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: LinkOverlayStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ type SpacerStyles = SpacerProperties & DistributiveOmit<SystemStyleObject, keyof
|
|
|
14
14
|
|
|
15
15
|
interface SpacerPatternFn {
|
|
16
16
|
(styles?: SpacerStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: SpacerStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ type SquareStyles = SquareProperties & DistributiveOmit<SystemStyleObject, keyof
|
|
|
14
14
|
|
|
15
15
|
interface SquarePatternFn {
|
|
16
16
|
(styles?: SquareStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: SquareStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -17,7 +17,7 @@ type StackStyles = StackProperties & DistributiveOmit<SystemStyleObject, keyof S
|
|
|
17
17
|
|
|
18
18
|
interface StackPatternFn {
|
|
19
19
|
(styles?: StackStyles): string
|
|
20
|
-
raw: (styles
|
|
20
|
+
raw: (styles?: StackStyles) => SystemStyleObject
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
|
|
@@ -14,7 +14,7 @@ type StyledLinkStyles = StyledLinkProperties & DistributiveOmit<SystemStyleObjec
|
|
|
14
14
|
|
|
15
15
|
interface StyledLinkPatternFn {
|
|
16
16
|
(styles?: StyledLinkStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: StyledLinkStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ type VisuallyHiddenStyles = VisuallyHiddenProperties & DistributiveOmit<SystemSt
|
|
|
14
14
|
|
|
15
15
|
interface VisuallyHiddenPatternFn {
|
|
16
16
|
(styles?: VisuallyHiddenStyles): string
|
|
17
|
-
raw: (styles
|
|
17
|
+
raw: (styles?: VisuallyHiddenStyles) => SystemStyleObject
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
@@ -15,7 +15,7 @@ type VstackStyles = VstackProperties & DistributiveOmit<SystemStyleObject, keyof
|
|
|
15
15
|
|
|
16
16
|
interface VstackPatternFn {
|
|
17
17
|
(styles?: VstackStyles): string
|
|
18
|
-
raw: (styles
|
|
18
|
+
raw: (styles?: VstackStyles) => SystemStyleObject
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
|
package/styled-system/styles.css
CHANGED
|
@@ -11,19 +11,6 @@
|
|
|
11
11
|
@import './tokens/keyframes.css';
|
|
12
12
|
|
|
13
13
|
@layer utilities {
|
|
14
|
-
.styles\:dark\:text_green500.dark,
|
|
15
|
-
.dark .styles\:dark\:text_green500 {
|
|
16
|
-
color: green500;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.font_12px\/1\.5_Helvetica\,_Arial\,_sans-serif {
|
|
20
|
-
font: 12px/1.5 Helvetica, Arial, sans-serif;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.text_red {
|
|
24
|
-
color: red;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
14
|
.w_26px {
|
|
28
15
|
width: 26px;
|
|
29
16
|
}
|
|
@@ -1009,10 +996,6 @@
|
|
|
1009
996
|
border-bottom-color: var(--colors-black);
|
|
1010
997
|
}
|
|
1011
998
|
|
|
1012
|
-
.\[\&\:hover\]\:text_blue:hover {
|
|
1013
|
-
color: blue;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
999
|
.\[\&\:hover\]\:bg_\#4049f0:hover {
|
|
1017
1000
|
background: #4049f0;
|
|
1018
1001
|
}
|
|
@@ -1025,15 +1008,6 @@
|
|
|
1025
1008
|
opacity: 0.8;
|
|
1026
1009
|
}
|
|
1027
1010
|
|
|
1028
|
-
@media screen and (min-width: 640px) {
|
|
1029
|
-
@media screen and (min-width: 768px) {
|
|
1030
|
-
.styles\:dark\:sm\:md\:text_red200.dark,
|
|
1031
|
-
.dark .styles\:dark\:sm\:md\:text_red200 {
|
|
1032
|
-
color: red200
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
1011
|
@media screen and (min-width: 768px) {
|
|
1038
1012
|
.md\:px_6 {
|
|
1039
1013
|
padding-inline: var(--spacing-6)
|
|
@@ -2,118 +2,118 @@
|
|
|
2
2
|
import type { AnySelector, Selectors } from './selectors';
|
|
3
3
|
|
|
4
4
|
export type Conditions = {
|
|
5
|
-
"_hover": string
|
|
6
|
-
"_focus": string
|
|
7
|
-
"_focusWithin": string
|
|
8
|
-
"_focusVisible": string
|
|
9
|
-
"_disabled": string
|
|
10
|
-
"_active": string
|
|
11
|
-
"_visited": string
|
|
12
|
-
"_target": string
|
|
13
|
-
"_readOnly": string
|
|
14
|
-
"_readWrite": string
|
|
15
|
-
"_empty": string
|
|
16
|
-
"_checked": string
|
|
17
|
-
"_enabled": string
|
|
18
|
-
"_expanded": string
|
|
19
|
-
"_highlighted": string
|
|
20
|
-
"_before": string
|
|
21
|
-
"_after": string
|
|
22
|
-
"_firstLetter": string
|
|
23
|
-
"_firstLine": string
|
|
24
|
-
"_marker": string
|
|
25
|
-
"_selection": string
|
|
26
|
-
"_file": string
|
|
27
|
-
"_backdrop": string
|
|
28
|
-
"_first": string
|
|
29
|
-
"_last": string
|
|
30
|
-
"_only": string
|
|
31
|
-
"_even": string
|
|
32
|
-
"_odd": string
|
|
33
|
-
"_firstOfType": string
|
|
34
|
-
"_lastOfType": string
|
|
35
|
-
"_onlyOfType": string
|
|
36
|
-
"_peerFocus": string
|
|
37
|
-
"_peerHover": string
|
|
38
|
-
"_peerActive": string
|
|
39
|
-
"_peerFocusWithin": string
|
|
40
|
-
"_peerFocusVisible": string
|
|
41
|
-
"_peerDisabled": string
|
|
42
|
-
"_peerChecked": string
|
|
43
|
-
"_peerInvalid": string
|
|
44
|
-
"_peerExpanded": string
|
|
45
|
-
"_peerPlaceholderShown": string
|
|
46
|
-
"_groupFocus": string
|
|
47
|
-
"_groupHover": string
|
|
48
|
-
"_groupActive": string
|
|
49
|
-
"_groupFocusWithin": string
|
|
50
|
-
"_groupFocusVisible": string
|
|
51
|
-
"_groupDisabled": string
|
|
52
|
-
"_groupChecked": string
|
|
53
|
-
"_groupExpanded": string
|
|
54
|
-
"_groupInvalid": string
|
|
55
|
-
"_indeterminate": string
|
|
56
|
-
"_required": string
|
|
57
|
-
"_valid": string
|
|
58
|
-
"_invalid": string
|
|
59
|
-
"_autofill": string
|
|
60
|
-
"_inRange": string
|
|
61
|
-
"_outOfRange": string
|
|
62
|
-
"_placeholder": string
|
|
63
|
-
"_placeholderShown": string
|
|
64
|
-
"_pressed": string
|
|
65
|
-
"_selected": string
|
|
66
|
-
"_default": string
|
|
67
|
-
"_optional": string
|
|
68
|
-
"_open": string
|
|
69
|
-
"_fullscreen": string
|
|
70
|
-
"_loading": string
|
|
71
|
-
"_currentPage": string
|
|
72
|
-
"_currentStep": string
|
|
73
|
-
"_motionReduce": string
|
|
74
|
-
"_motionSafe": string
|
|
75
|
-
"_print": string
|
|
76
|
-
"_landscape": string
|
|
77
|
-
"_portrait": string
|
|
78
|
-
"_dark": string
|
|
79
|
-
"_light": string
|
|
80
|
-
"_osDark": string
|
|
81
|
-
"_osLight": string
|
|
82
|
-
"_highContrast": string
|
|
83
|
-
"_lessContrast": string
|
|
84
|
-
"_moreContrast": string
|
|
85
|
-
"_ltr": string
|
|
86
|
-
"_rtl": string
|
|
87
|
-
"_scrollbar": string
|
|
88
|
-
"_scrollbarThumb": string
|
|
89
|
-
"_scrollbarTrack": string
|
|
90
|
-
"_horizontal": string
|
|
91
|
-
"_vertical": string
|
|
92
|
-
"sm": string
|
|
93
|
-
"smOnly": string
|
|
94
|
-
"smDown": string
|
|
95
|
-
"md": string
|
|
96
|
-
"mdOnly": string
|
|
97
|
-
"mdDown": string
|
|
98
|
-
"lg": string
|
|
99
|
-
"lgOnly": string
|
|
100
|
-
"lgDown": string
|
|
101
|
-
"xl": string
|
|
102
|
-
"xlOnly": string
|
|
103
|
-
"xlDown": string
|
|
104
|
-
"2xl": string
|
|
105
|
-
"2xlOnly": string
|
|
106
|
-
"smToMd": string
|
|
107
|
-
"smToLg": string
|
|
108
|
-
"smToXl": string
|
|
109
|
-
"smTo2xl": string
|
|
110
|
-
"mdToLg": string
|
|
111
|
-
"mdToXl": string
|
|
112
|
-
"mdTo2xl": string
|
|
113
|
-
"lgToXl": string
|
|
114
|
-
"lgTo2xl": string
|
|
115
|
-
"xlTo2xl": string
|
|
116
|
-
"base": string
|
|
5
|
+
/** `&:is(:hover, [data-hover])` */"_hover": string
|
|
6
|
+
/** `&:is(:focus, [data-focus])` */"_focus": string
|
|
7
|
+
/** `&:focus-within` */"_focusWithin": string
|
|
8
|
+
/** `&:is(:focus-visible, [data-focus-visible])` */"_focusVisible": string
|
|
9
|
+
/** `&:is(:disabled, [disabled], [data-disabled])` */"_disabled": string
|
|
10
|
+
/** `&:is(:active, [data-active])` */"_active": string
|
|
11
|
+
/** `&:visited` */"_visited": string
|
|
12
|
+
/** `&:target` */"_target": string
|
|
13
|
+
/** `&:is(:read-only, [data-read-only])` */"_readOnly": string
|
|
14
|
+
/** `&:read-write` */"_readWrite": string
|
|
15
|
+
/** `&:is(:empty, [data-empty])` */"_empty": string
|
|
16
|
+
/** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */"_checked": string
|
|
17
|
+
/** `&:enabled` */"_enabled": string
|
|
18
|
+
/** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */"_expanded": string
|
|
19
|
+
/** `&[data-highlighted]` */"_highlighted": string
|
|
20
|
+
/** `&::before` */"_before": string
|
|
21
|
+
/** `&::after` */"_after": string
|
|
22
|
+
/** `&::first-letter` */"_firstLetter": string
|
|
23
|
+
/** `&::first-line` */"_firstLine": string
|
|
24
|
+
/** `&::marker` */"_marker": string
|
|
25
|
+
/** `&::selection` */"_selection": string
|
|
26
|
+
/** `&::file-selector-button` */"_file": string
|
|
27
|
+
/** `&::backdrop` */"_backdrop": string
|
|
28
|
+
/** `&:first-child` */"_first": string
|
|
29
|
+
/** `&:last-child` */"_last": string
|
|
30
|
+
/** `&:only-child` */"_only": string
|
|
31
|
+
/** `&:nth-child(even)` */"_even": string
|
|
32
|
+
/** `&:nth-child(odd)` */"_odd": string
|
|
33
|
+
/** `&:first-of-type` */"_firstOfType": string
|
|
34
|
+
/** `&:last-of-type` */"_lastOfType": string
|
|
35
|
+
/** `&:only-of-type` */"_onlyOfType": string
|
|
36
|
+
/** `.peer:is(:focus, [data-focus]) ~ &` */"_peerFocus": string
|
|
37
|
+
/** `.peer:is(:hover, [data-hover]) ~ &` */"_peerHover": string
|
|
38
|
+
/** `.peer:is(:active, [data-active]) ~ &` */"_peerActive": string
|
|
39
|
+
/** `.peer:focus-within ~ &` */"_peerFocusWithin": string
|
|
40
|
+
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */"_peerFocusVisible": string
|
|
41
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */"_peerDisabled": string
|
|
42
|
+
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */"_peerChecked": string
|
|
43
|
+
/** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */"_peerInvalid": string
|
|
44
|
+
/** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */"_peerExpanded": string
|
|
45
|
+
/** `.peer:placeholder-shown ~ &` */"_peerPlaceholderShown": string
|
|
46
|
+
/** `.group:is(:focus, [data-focus]) &` */"_groupFocus": string
|
|
47
|
+
/** `.group:is(:hover, [data-hover]) &` */"_groupHover": string
|
|
48
|
+
/** `.group:is(:active, [data-active]) &` */"_groupActive": string
|
|
49
|
+
/** `.group:focus-within &` */"_groupFocusWithin": string
|
|
50
|
+
/** `.group:is(:focus-visible, [data-focus-visible]) &` */"_groupFocusVisible": string
|
|
51
|
+
/** `.group:is(:disabled, [disabled], [data-disabled]) &` */"_groupDisabled": string
|
|
52
|
+
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */"_groupChecked": string
|
|
53
|
+
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */"_groupExpanded": string
|
|
54
|
+
/** `.group:invalid &` */"_groupInvalid": string
|
|
55
|
+
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate")` */"_indeterminate": string
|
|
56
|
+
/** `&:required` */"_required": string
|
|
57
|
+
/** `&:is(:valid, [data-valid])` */"_valid": string
|
|
58
|
+
/** `&:is(:invalid, [data-invalid])` */"_invalid": string
|
|
59
|
+
/** `&:autofill` */"_autofill": string
|
|
60
|
+
/** `&:in-range` */"_inRange": string
|
|
61
|
+
/** `&:out-of-range` */"_outOfRange": string
|
|
62
|
+
/** `&::placeholder` */"_placeholder": string
|
|
63
|
+
/** `&:placeholder-shown` */"_placeholderShown": string
|
|
64
|
+
/** `&:is([aria-pressed=true], [data-pressed])` */"_pressed": string
|
|
65
|
+
/** `&:is([aria-selected=true], [data-selected])` */"_selected": string
|
|
66
|
+
/** `&:default` */"_default": string
|
|
67
|
+
/** `&:optional` */"_optional": string
|
|
68
|
+
/** `&:is([open], [data-open], [data-state="open"])` */"_open": string
|
|
69
|
+
/** `&:fullscreen` */"_fullscreen": string
|
|
70
|
+
/** `&:is([data-loading], [aria-busy=true])` */"_loading": string
|
|
71
|
+
/** `&[aria-current=page]` */"_currentPage": string
|
|
72
|
+
/** `&[aria-current=step]` */"_currentStep": string
|
|
73
|
+
/** `@media (prefers-reduced-motion: reduce)` */"_motionReduce": string
|
|
74
|
+
/** `@media (prefers-reduced-motion: no-preference)` */"_motionSafe": string
|
|
75
|
+
/** `@media print` */"_print": string
|
|
76
|
+
/** `@media (orientation: landscape)` */"_landscape": string
|
|
77
|
+
/** `@media (orientation: portrait)` */"_portrait": string
|
|
78
|
+
/** ` &.dark, .dark &` */"_dark": string
|
|
79
|
+
/** ` &.light, .light &` */"_light": string
|
|
80
|
+
/** `@media (prefers-color-scheme: dark)` */"_osDark": string
|
|
81
|
+
/** `@media (prefers-color-scheme: light)` */"_osLight": string
|
|
82
|
+
/** `@media (forced-colors: active)` */"_highContrast": string
|
|
83
|
+
/** `@media (prefers-contrast: less)` */"_lessContrast": string
|
|
84
|
+
/** `@media (prefers-contrast: more)` */"_moreContrast": string
|
|
85
|
+
/** `[dir=ltr] &` */"_ltr": string
|
|
86
|
+
/** `[dir=rtl] &` */"_rtl": string
|
|
87
|
+
/** `&::-webkit-scrollbar` */"_scrollbar": string
|
|
88
|
+
/** `&::-webkit-scrollbar-thumb` */"_scrollbarThumb": string
|
|
89
|
+
/** `&::-webkit-scrollbar-track` */"_scrollbarTrack": string
|
|
90
|
+
/** `&[data-orientation=horizontal]` */"_horizontal": string
|
|
91
|
+
/** `&[data-orientation=vertical]` */"_vertical": string
|
|
92
|
+
/** `@media screen and (min-width: 640px)` */"sm": string
|
|
93
|
+
/** `@media screen and (min-width: 640px) and (max-width: 47.996875em)` */"smOnly": string
|
|
94
|
+
/** `@media screen and (max-width: 47.996875em)` */"smDown": string
|
|
95
|
+
/** `@media screen and (min-width: 768px)` */"md": string
|
|
96
|
+
/** `@media screen and (min-width: 768px) and (max-width: 63.996875em)` */"mdOnly": string
|
|
97
|
+
/** `@media screen and (max-width: 63.996875em)` */"mdDown": string
|
|
98
|
+
/** `@media screen and (min-width: 1024px)` */"lg": string
|
|
99
|
+
/** `@media screen and (min-width: 1024px) and (max-width: 79.996875em)` */"lgOnly": string
|
|
100
|
+
/** `@media screen and (max-width: 79.996875em)` */"lgDown": string
|
|
101
|
+
/** `@media screen and (min-width: 1280px)` */"xl": string
|
|
102
|
+
/** `@media screen and (min-width: 1280px) and (max-width: 95.996875em)` */"xlOnly": string
|
|
103
|
+
/** `@media screen and (max-width: 95.996875em)` */"xlDown": string
|
|
104
|
+
/** `@media screen and (min-width: 1536px)` */"2xl": string
|
|
105
|
+
/** `@media screen and (min-width: 1536px)` */"2xlOnly": string
|
|
106
|
+
/** `@media screen and (min-width: 640px) and (max-width: 63.996875em)` */"smToMd": string
|
|
107
|
+
/** `@media screen and (min-width: 640px) and (max-width: 79.996875em)` */"smToLg": string
|
|
108
|
+
/** `@media screen and (min-width: 640px) and (max-width: 95.996875em)` */"smToXl": string
|
|
109
|
+
/** `@media screen and (min-width: 640px)` */"smTo2xl": string
|
|
110
|
+
/** `@media screen and (min-width: 768px) and (max-width: 79.996875em)` */"mdToLg": string
|
|
111
|
+
/** `@media screen and (min-width: 768px) and (max-width: 95.996875em)` */"mdToXl": string
|
|
112
|
+
/** `@media screen and (min-width: 768px)` */"mdTo2xl": string
|
|
113
|
+
/** `@media screen and (min-width: 1024px) and (max-width: 95.996875em)` */"lgToXl": string
|
|
114
|
+
/** `@media screen and (min-width: 1024px)` */"lgTo2xl": string
|
|
115
|
+
/** `@media screen and (min-width: 1280px)` */"xlTo2xl": string
|
|
116
|
+
/** The base (=no conditions) styles to apply */"base": string
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export type Condition = keyof Conditions
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import './global.d.ts'
|
|
3
3
|
export type { ConditionalValue } from './conditions';
|
|
4
|
+
export type { PatternConfig, PatternProperties } from './pattern';
|
|
5
|
+
export type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
|
|
4
6
|
export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types';
|
|
@@ -100,6 +100,7 @@ export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord>
|
|
|
100
100
|
) => SlotRecord<S, string>
|
|
101
101
|
|
|
102
102
|
export type SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>> = SlotRecipeVariantFn<S, T> & {
|
|
103
|
+
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
103
104
|
variantKeys: (keyof T)[]
|
|
104
105
|
variantMap: RecipeVariantMap<T>
|
|
105
106
|
splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@layer utilities {
|
|
2
|
-
.styles\:dark\:text_green500 {
|
|
3
|
-
&.dark,
|
|
4
|
-
.dark & {
|
|
5
|
-
color: green500;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.styles\:dark\:sm\:md\:text_red200 {
|
|
10
|
-
&.dark,
|
|
11
|
-
.dark & {
|
|
12
|
-
@media screen and (min-width: 640px) {
|
|
13
|
-
@media screen and (min-width: 768px) {
|
|
14
|
-
color: red200;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|