@pandacss/studio 0.13.1 → 0.15.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/chunks/..__core____tests____atomic-rule.test.css +216 -0
- package/styled-system/css/conditions.mjs +1 -1
- package/styled-system/css/css.d.ts +2 -2
- package/styled-system/css/css.mjs +1 -1
- package/styled-system/css/cva.mjs +1 -1
- package/styled-system/css/sva.mjs +7 -1
- package/styled-system/helpers.mjs +16 -41
- package/styled-system/jsx/index.d.ts +1 -1
- package/styled-system/jsx/is-valid-prop.mjs +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 +226 -18
- package/styled-system/types/conditions.d.ts +113 -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.15.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.15.0",
|
|
37
|
+
"@pandacss/config": "0.15.0",
|
|
38
|
+
"@pandacss/shared": "0.15.0",
|
|
39
|
+
"@pandacss/token-dictionary": "0.15.0",
|
|
40
|
+
"@pandacss/logger": "0.15.0",
|
|
41
|
+
"@pandacss/node": "0.15.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.15.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"codegen": "panda",
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
@layer utilities {
|
|
2
|
+
.styles\:text_red\! {
|
|
3
|
+
color: red !important
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.styles\:fs_30px\! {
|
|
7
|
+
font-size: 30px !important
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.styles\:bg_red\.300 {
|
|
11
|
+
background: var(--colors-red-300)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.styles\:w_20px {
|
|
15
|
+
width: 20px
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.styles\:w_70px {
|
|
19
|
+
width: 70px
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.styles\:w_50px {
|
|
23
|
+
width: 50px
|
|
24
|
+
}
|
|
25
|
+
@media screen and (min-width: 40em) {
|
|
26
|
+
[dir=ltr] .styles\:ltr\:sm\:ml_4 {
|
|
27
|
+
margin-left: var(--spacing-4)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
[dir=rtl] .styles\:rtl\:ml_-4 {
|
|
31
|
+
margin-left: calc(var(--spacing-4) * -1)
|
|
32
|
+
}
|
|
33
|
+
.styles\:light\:text_red.light, .light .styles\:light\:text_red {
|
|
34
|
+
color: red
|
|
35
|
+
}
|
|
36
|
+
.styles\:dark\:text_green.dark, .dark .styles\:dark\:text_green {
|
|
37
|
+
color: green
|
|
38
|
+
}
|
|
39
|
+
.styles\:dark\:opacity_slate400.dark, .dark .styles\:dark\:opacity_slate400 {
|
|
40
|
+
opacity: slate400
|
|
41
|
+
}
|
|
42
|
+
@media screen and (min-width: 40em) {
|
|
43
|
+
[dir=rtl] .styles\:sm\:rtl\:top_20px {
|
|
44
|
+
top: 20px
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.styles\:left_20px,.styles\:\[\&_\>_p\]\:left_20px > p {
|
|
48
|
+
left: 20px
|
|
49
|
+
}
|
|
50
|
+
@media screen and (min-width: 48em) {
|
|
51
|
+
.styles\:\[\&_\>_p\]\:md\:left_40px > p {
|
|
52
|
+
left: 40px
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.styles\:\[\&_\>_p\]\:light\:bg_red400 > p.light, .light .styles\:\[\&_\>_p\]\:light\:bg_red400 > p {
|
|
56
|
+
background: red400
|
|
57
|
+
}
|
|
58
|
+
.styles\:\[\&_\>_p\]\:dark\:bg_green500 > p.dark, .dark .styles\:\[\&_\>_p\]\:dark\:bg_green500 > p {
|
|
59
|
+
background: green500
|
|
60
|
+
}
|
|
61
|
+
[dir=rtl] .styles\:\[\&_\>_p\]\:rtl\:font_sans > p {
|
|
62
|
+
font: sans
|
|
63
|
+
}
|
|
64
|
+
.styles\:\[\&\:\:placeholder\]\:left_40px::placeholder {
|
|
65
|
+
left: 40px
|
|
66
|
+
}
|
|
67
|
+
.styles\:\[\&\:\:placeholder\]\:bg_red400::placeholder {
|
|
68
|
+
background: red400
|
|
69
|
+
}
|
|
70
|
+
@media screen and (min-width: 40em) {
|
|
71
|
+
.styles\:\[\&\:\:placeholder\]\:sm\:text_left::placeholder {
|
|
72
|
+
text-align: left
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.styles\:all_unset {
|
|
77
|
+
all: unset
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.styles\:bg_red {
|
|
81
|
+
background-color: red
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.styles\:border_none {
|
|
85
|
+
border: var(--borders-none)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.styles\:p_\$3_\$3 {
|
|
89
|
+
padding: $3 $3
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.styles\:rounded_\$button {
|
|
93
|
+
border-radius: $button
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.styles\:fs_\$xsmall {
|
|
97
|
+
font-size: $xsmall
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.styles\:cursor_pointer {
|
|
101
|
+
cursor: pointer
|
|
102
|
+
}
|
|
103
|
+
.styles\:\[\&_\+_span\]\:ml_\$2 + span {
|
|
104
|
+
margin-left: $2
|
|
105
|
+
}
|
|
106
|
+
.test .styles\:\[\.test_\&\]\:bg_blue {
|
|
107
|
+
background-color: blue
|
|
108
|
+
}
|
|
109
|
+
.styles\:\[\&_\.my-class\]\:text_red .my-class,.styles\:\[\&_span\]\:text_red span,.styles\:\[\&_kbd\]\:text_red kbd {
|
|
110
|
+
color: red
|
|
111
|
+
}
|
|
112
|
+
.styles\:\[\&\:focus\,_\&\:hover\]\:shadow_none:focus, .styles\:\[\&\:focus\,_\&\:hover\]\:shadow_none:hover {
|
|
113
|
+
box-shadow: none
|
|
114
|
+
}
|
|
115
|
+
:focus > .styles\:\[\:focus_\>_\&\]\:text_white {
|
|
116
|
+
color: var(--colors-white)
|
|
117
|
+
}
|
|
118
|
+
@media screen and (min-width: 40em) {
|
|
119
|
+
.styles\:sm\:hover\:top_50px:is(:hover, [data-hover]) {
|
|
120
|
+
top: 50px
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
@media screen and (min-width: 40em) {
|
|
124
|
+
[dir=ltr] .styles\:\[\&_\>_p\]\:ltr\:dark\:sm\:hover\:font_serif > p:is(:hover, [data-hover]).dark, .dark [dir=ltr] .styles\:\[\&_\>_p\]\:ltr\:dark\:sm\:hover\:font_serif > p:is(:hover, [data-hover]) {
|
|
125
|
+
font: serif
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
input:hover .styles\:\[input\:hover_\&\]\:bg_red400 {
|
|
129
|
+
background: red400
|
|
130
|
+
}
|
|
131
|
+
@media screen and (min-width: 40em) {
|
|
132
|
+
input:hover .styles\:\[input\:hover_\&\]\:sm\:fs_14px {
|
|
133
|
+
font-size: 14px
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
@media screen and (min-width: 64em) {
|
|
137
|
+
input:hover .styles\:\[input\:hover_\&\]\:lg\:fs_18px {
|
|
138
|
+
font-size: 18px
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
.styles\:hover\:bg_pink\.400:is(:hover, [data-hover]) {
|
|
142
|
+
background: var(--colors-pink-400)
|
|
143
|
+
}
|
|
144
|
+
@media screen and (min-width: 40em) {
|
|
145
|
+
.styles\:hover\:sm\:dark\:bg_red\.300:is(:hover, [data-hover]).dark, .dark .styles\:hover\:sm\:dark\:bg_red\.300:is(:hover, [data-hover]) {
|
|
146
|
+
background: var(--colors-red-300)
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.styles\:hover\:text_pink\.400:is(:hover, [data-hover]) {
|
|
150
|
+
color: var(--colors-pink-400)
|
|
151
|
+
}
|
|
152
|
+
@media screen and (min-width: 40em) {
|
|
153
|
+
.styles\:hover\:disabled\:sm\:bg_red\.300:is(:hover, [data-hover]):is(:disabled, [disabled], [data-disabled]) {
|
|
154
|
+
background: var(--colors-red-300)
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
@media base {
|
|
158
|
+
.styles\:\[\@media_base\]\:\[\&\:hover\]\:left_40px:hover {
|
|
159
|
+
left: 40px
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
@media base {
|
|
163
|
+
@media screen and (min-width: 40em) {
|
|
164
|
+
.styles\:\[\@media_base\]\:\[\&\:hover\]\:sm\:text_left:hover {
|
|
165
|
+
text-align: left
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@media (min-width: 768px) {
|
|
170
|
+
.styles\:\[\@media_\(min-width\:_768px\)\]\:\[\&\:hover\]\:bg_yellow:hover {
|
|
171
|
+
background-color: yellow
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
@media screen and (min-width: 40em) {
|
|
175
|
+
|
|
176
|
+
.styles\:sm\:w_60px {
|
|
177
|
+
width: 60px
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
@media screen and (min-width: 64em) {
|
|
181
|
+
|
|
182
|
+
.styles\:lg\:top_120px {
|
|
183
|
+
top: 120px
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
@media screen and (min-width: 48em) {
|
|
187
|
+
|
|
188
|
+
.styles\:md\:left_40px {
|
|
189
|
+
left: 40px
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
@media base {
|
|
193
|
+
|
|
194
|
+
.styles\:\[\@media_base\]\:left_40px {
|
|
195
|
+
left: 40px
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
@media base {
|
|
199
|
+
@media screen and (min-width: 40em) {
|
|
200
|
+
|
|
201
|
+
.styles\:\[\@media_base\]\:sm\:text_left {
|
|
202
|
+
text-align: left
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media (min-width: 768px) {
|
|
207
|
+
|
|
208
|
+
.styles\:\[\@media_\(min-width\:_768px\)\]\:bg_green {
|
|
209
|
+
background-color: green
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.styles\:\[\@media_\(min-width\:_768px\)\]\:fs_\$small {
|
|
213
|
+
font-size: $small
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withoutSpace } from '../helpers.mjs';
|
|
2
2
|
|
|
3
|
-
const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,base"
|
|
3
|
+
const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,base"
|
|
4
4
|
const conditions = new Set(conditionsStr.split(','))
|
|
5
5
|
|
|
6
6
|
export function isCondition(value){
|
|
@@ -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)
|
|
@@ -57,7 +57,7 @@ export function getCompoundVariantCss(compoundVariants, variantMap) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function assertCompoundVariant(name, compoundVariants, variants, prop) {
|
|
60
|
-
if (compoundVariants.length > 0 && typeof variants[prop] === 'object') {
|
|
60
|
+
if (compoundVariants.length > 0 && typeof variants?.[prop] === 'object') {
|
|
61
61
|
throw new Error(`[recipe:${name}:${prop}] Conditions are not supported when using compound variants.`)
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -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,
|
|
@@ -210,49 +210,24 @@ var hypenateProperty = memo((property) => {
|
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
// src/slot.ts
|
|
213
|
-
var assign = (obj, path, value) => {
|
|
214
|
-
const last = path.pop();
|
|
215
|
-
const target = path.reduce((acc, key) => {
|
|
216
|
-
if (acc[key] == null)
|
|
217
|
-
acc[key] = {};
|
|
218
|
-
return acc[key];
|
|
219
|
-
}, obj);
|
|
220
|
-
if (last != null)
|
|
221
|
-
target[last] = value;
|
|
222
|
-
};
|
|
223
213
|
var getSlotRecipes = (recipe) => {
|
|
224
|
-
const
|
|
225
|
-
slot,
|
|
226
|
-
|
|
227
|
-
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
base: {},
|
|
231
|
-
variants: {},
|
|
232
|
-
defaultVariants: recipe.defaultVariants ?? {},
|
|
233
|
-
compoundVariants: []
|
|
234
|
-
}
|
|
235
|
-
]).map(([slot, cva]) => {
|
|
236
|
-
const base = recipe.base[slot];
|
|
237
|
-
if (base)
|
|
238
|
-
cva.base = base;
|
|
239
|
-
walkObject(
|
|
240
|
-
recipe.variants ?? {},
|
|
241
|
-
(variant, path) => {
|
|
242
|
-
if (!variant[slot])
|
|
243
|
-
return;
|
|
244
|
-
assign(cva, ["variants", ...path], variant[slot]);
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
stop: (_value, path) => path.includes(slot)
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
if (recipe.compoundVariants) {
|
|
251
|
-
cva.compoundVariants = getSlotCompoundVariant(recipe.compoundVariants, slot);
|
|
252
|
-
}
|
|
253
|
-
return [slot, cva];
|
|
214
|
+
const init = (slot) => ({
|
|
215
|
+
className: [recipe.className, slot].filter(Boolean).join("__"),
|
|
216
|
+
base: recipe.base?.[slot] ?? {},
|
|
217
|
+
variants: {},
|
|
218
|
+
defaultVariants: recipe.defaultVariants ?? {},
|
|
219
|
+
compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
|
|
254
220
|
});
|
|
255
|
-
|
|
221
|
+
const recipeParts = recipe.slots.map((slot) => [slot, init(slot)]);
|
|
222
|
+
for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
|
|
223
|
+
for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
|
|
224
|
+
recipeParts.forEach(([slot, slotRecipe]) => {
|
|
225
|
+
slotRecipe.variants[variantsKey] ??= {};
|
|
226
|
+
slotRecipe.variants[variantsKey][variantKey] = variantSpec[slot] ?? {};
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return Object.fromEntries(recipeParts);
|
|
256
231
|
};
|
|
257
232
|
var getSlotCompoundVariant = (compoundVariants, slotName) => compoundVariants.filter((compoundVariant) => compoundVariant.css[slotName]).map((compoundVariant) => ({ ...compoundVariant, css: compoundVariant.css[slotName] }));
|
|
258
233
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { memo } from '../helpers.mjs';
|
|
2
2
|
// src/index.ts
|
|
3
|
-
var userGeneratedStr = "css,pos,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,insetInline,insetBlock,inset,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,insetX,insetY,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontWeight,fontSmoothing,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFrom,gradientTo,gradientVia,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationDelay,transformOrigin,scale,scaleX,scaleY,translate,translateX,translateY,accentColor,caretColor,scrollBehavior,scrollbar,scrollMargin,scrollMarginX,scrollMarginY,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingX,scrollPaddingY,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,touchAction,userSelect,fill,stroke,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,colorPalette,textStyle,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl"
|
|
3
|
+
var userGeneratedStr = "css,pos,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,insetInline,insetBlock,inset,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,insetX,insetY,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontWeight,fontSmoothing,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFrom,gradientTo,gradientVia,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationDelay,transformOrigin,scale,scaleX,scaleY,translate,translateX,translateY,accentColor,caretColor,scrollBehavior,scrollbar,scrollMargin,scrollMarginX,scrollMarginY,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingX,scrollPaddingY,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,touchAction,userSelect,fill,stroke,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,colorPalette,textStyle,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl"
|
|
4
4
|
var userGenerated = userGeneratedStr.split(",");
|
|
5
5
|
var cssPropertiesStr = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockOverflow,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTransitionName,visibility,whiteSpace,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect";
|
|
6
6
|
var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
|
|
@@ -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,18 +11,109 @@
|
|
|
11
11
|
@import './tokens/keyframes.css';
|
|
12
12
|
|
|
13
13
|
@layer utilities {
|
|
14
|
-
.styles\:
|
|
15
|
-
|
|
16
|
-
color: green500;
|
|
14
|
+
.styles\:text_red\! {
|
|
15
|
+
color: red !important
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
.
|
|
20
|
-
font:
|
|
21
|
-
|
|
18
|
+
.styles\:fs_30px\! {
|
|
19
|
+
font-size: 30px !important
|
|
20
|
+
}
|
|
22
21
|
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
.styles\:bg_red\.300 {
|
|
23
|
+
background: var(--colors-red-300)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.styles\:w_20px {
|
|
27
|
+
width: 20px
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.styles\:w_70px {
|
|
31
|
+
width: 70px
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.styles\:w_50px {
|
|
35
|
+
width: 50px
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[dir=rtl] .styles\:rtl\:ml_-4 {
|
|
39
|
+
margin-left: calc(var(--spacing-4) * -1)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.styles\:light\:text_red.light, .light .styles\:light\:text_red {
|
|
43
|
+
color: red
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.styles\:dark\:text_green.dark, .dark .styles\:dark\:text_green {
|
|
47
|
+
color: green
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.styles\:dark\:opacity_slate400.dark, .dark .styles\:dark\:opacity_slate400 {
|
|
51
|
+
opacity: slate400
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.styles\:left_20px,.styles\:\[\&_\>_p\]\:left_20px > p {
|
|
55
|
+
left: 20px
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.styles\:\[\&_\>_p\]\:light\:bg_red400 > p.light, .light .styles\:\[\&_\>_p\]\:light\:bg_red400 > p {
|
|
59
|
+
background: red400
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.styles\:\[\&_\>_p\]\:dark\:bg_green500 > p.dark, .dark .styles\:\[\&_\>_p\]\:dark\:bg_green500 > p {
|
|
63
|
+
background: green500
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[dir=rtl] .styles\:\[\&_\>_p\]\:rtl\:font_sans > p {
|
|
67
|
+
font: sans
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.styles\:\[\&\:\:placeholder\]\:left_40px::placeholder {
|
|
71
|
+
left: 40px
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.styles\:\[\&\:\:placeholder\]\:bg_red400::placeholder {
|
|
75
|
+
background: red400
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.styles\:all_unset {
|
|
79
|
+
all: unset
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.styles\:bg_red {
|
|
83
|
+
background-color: red
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.styles\:border_none {
|
|
87
|
+
border: var(--borders-none)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.styles\:p_\$3_\$3 {
|
|
91
|
+
padding: $3 $3
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.styles\:rounded_\$button {
|
|
95
|
+
border-radius: $button
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.styles\:fs_\$xsmall {
|
|
99
|
+
font-size: $xsmall
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.styles\:cursor_pointer {
|
|
103
|
+
cursor: pointer
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.styles\:\[\&_\+_span\]\:ml_\$2 + span {
|
|
107
|
+
margin-left: $2
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.test .styles\:\[\.test_\&\]\:bg_blue {
|
|
111
|
+
background-color: blue
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.styles\:\[\&_\.my-class\]\:text_red .my-class,.styles\:\[\&_span\]\:text_red span,.styles\:\[\&_kbd\]\:text_red kbd {
|
|
115
|
+
color: red
|
|
116
|
+
}
|
|
26
117
|
|
|
27
118
|
.w_26px {
|
|
28
119
|
width: 26px;
|
|
@@ -973,6 +1064,14 @@
|
|
|
973
1064
|
outline-color: var(--colors-neutral-400);
|
|
974
1065
|
}
|
|
975
1066
|
|
|
1067
|
+
.styles\:\[\&\:focus\,_\&\:hover\]\:shadow_none:focus, .styles\:\[\&\:focus\,_\&\:hover\]\:shadow_none:hover {
|
|
1068
|
+
box-shadow: none
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
:focus > .styles\:\[\:focus_\>_\&\]\:text_white {
|
|
1072
|
+
color: var(--colors-white)
|
|
1073
|
+
}
|
|
1074
|
+
|
|
976
1075
|
.hover\:bg_gray\.100:where(:hover, [data-hover]) {
|
|
977
1076
|
background-color: var(--colors-gray-100);
|
|
978
1077
|
}
|
|
@@ -1009,9 +1108,17 @@
|
|
|
1009
1108
|
border-bottom-color: var(--colors-black);
|
|
1010
1109
|
}
|
|
1011
1110
|
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1111
|
+
input:hover .styles\:\[input\:hover_\&\]\:bg_red400 {
|
|
1112
|
+
background: red400
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.styles\:hover\:bg_pink\.400:is(:hover, [data-hover]) {
|
|
1116
|
+
background: var(--colors-pink-400)
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.styles\:hover\:text_pink\.400:is(:hover, [data-hover]) {
|
|
1120
|
+
color: var(--colors-pink-400)
|
|
1121
|
+
}
|
|
1015
1122
|
|
|
1016
1123
|
.\[\&\:hover\]\:bg_\#4049f0:hover {
|
|
1017
1124
|
background: #4049f0;
|
|
@@ -1025,14 +1132,77 @@
|
|
|
1025
1132
|
opacity: 0.8;
|
|
1026
1133
|
}
|
|
1027
1134
|
|
|
1028
|
-
@media screen and (min-width:
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1135
|
+
@media screen and (min-width: 40em) {
|
|
1136
|
+
[dir=ltr] .styles\:ltr\:sm\:ml_4 {
|
|
1137
|
+
margin-left: var(--spacing-4)
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
[dir=rtl] .styles\:sm\:rtl\:top_20px {
|
|
1141
|
+
top: 20px
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
@media screen and (min-width: 40em) {
|
|
1146
|
+
.styles\:\[\&\:\:placeholder\]\:sm\:text_left::placeholder {
|
|
1147
|
+
text-align: left
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
@media screen and (min-width: 40em) {
|
|
1152
|
+
.styles\:sm\:hover\:top_50px:is(:hover, [data-hover]) {
|
|
1153
|
+
top: 50px
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
@media screen and (min-width: 40em) {
|
|
1158
|
+
[dir=ltr] .styles\:\[\&_\>_p\]\:ltr\:dark\:sm\:hover\:font_serif > p:is(:hover, [data-hover]).dark, .dark [dir=ltr] .styles\:\[\&_\>_p\]\:ltr\:dark\:sm\:hover\:font_serif > p:is(:hover, [data-hover]) {
|
|
1159
|
+
font: serif
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
@media screen and (min-width: 40em) {
|
|
1164
|
+
input:hover .styles\:\[input\:hover_\&\]\:sm\:fs_14px {
|
|
1165
|
+
font-size: 14px
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
@media screen and (min-width: 40em) {
|
|
1170
|
+
.styles\:hover\:sm\:dark\:bg_red\.300:is(:hover, [data-hover]).dark, .dark .styles\:hover\:sm\:dark\:bg_red\.300:is(:hover, [data-hover]) {
|
|
1171
|
+
background: var(--colors-red-300)
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
@media screen and (min-width: 40em) {
|
|
1176
|
+
.styles\:hover\:disabled\:sm\:bg_red\.300:is(:hover, [data-hover]):is(:disabled, [disabled], [data-disabled]) {
|
|
1177
|
+
background: var(--colors-red-300)
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
@media screen and (min-width: 40em) {
|
|
1182
|
+
.styles\:sm\:w_60px {
|
|
1183
|
+
width: 60px
|
|
1033
1184
|
}
|
|
1034
1185
|
}
|
|
1035
|
-
|
|
1186
|
+
|
|
1187
|
+
@media (min-width: 768px) {
|
|
1188
|
+
.styles\:\[\@media_\(min-width\:_768px\)\]\:bg_green {
|
|
1189
|
+
background-color: green
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.styles\:\[\@media_\(min-width\:_768px\)\]\:fs_\$small {
|
|
1193
|
+
font-size: $small
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.styles\:\[\@media_\(min-width\:_768px\)\]\:\[\&\:hover\]\:bg_yellow:hover {
|
|
1197
|
+
background-color: yellow
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
@media screen and (min-width: 48em) {
|
|
1202
|
+
.styles\:\[\&_\>_p\]\:md\:left_40px > p,.styles\:md\:left_40px {
|
|
1203
|
+
left: 40px
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1036
1206
|
|
|
1037
1207
|
@media screen and (min-width: 768px) {
|
|
1038
1208
|
.md\:px_6 {
|
|
@@ -1045,4 +1215,42 @@
|
|
|
1045
1215
|
padding-inline: var(--spacing-8)
|
|
1046
1216
|
}
|
|
1047
1217
|
}
|
|
1218
|
+
|
|
1219
|
+
@media screen and (min-width: 64em) {
|
|
1220
|
+
.styles\:lg\:top_120px {
|
|
1221
|
+
top: 120px
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
input:hover .styles\:\[input\:hover_\&\]\:lg\:fs_18px {
|
|
1225
|
+
font-size: 18px
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
@media base {
|
|
1230
|
+
.styles\:\[\@media_base\]\:\[\&\:hover\]\:left_40px:hover {
|
|
1231
|
+
left: 40px
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
@media base {
|
|
1236
|
+
@media screen and (min-width: 40em) {
|
|
1237
|
+
.styles\:\[\@media_base\]\:\[\&\:hover\]\:sm\:text_left:hover {
|
|
1238
|
+
text-align: left
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
@media base {
|
|
1244
|
+
.styles\:\[\@media_base\]\:left_40px {
|
|
1245
|
+
left: 40px
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
@media base {
|
|
1250
|
+
@media screen and (min-width: 40em) {
|
|
1251
|
+
.styles\:\[\@media_base\]\:sm\:text_left {
|
|
1252
|
+
text-align: left
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1048
1256
|
}
|
|
@@ -2,118 +2,119 @@
|
|
|
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
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
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: 40em)` */"sm": string
|
|
93
|
+
/** `@media screen and (min-width: 40em) and (max-width: 47.996875em)` */"smOnly": string
|
|
94
|
+
/** `@media screen and (max-width: 40em)` */"smDown": string
|
|
95
|
+
/** `@media screen and (min-width: 48em)` */"md": string
|
|
96
|
+
/** `@media screen and (min-width: 48em) and (max-width: 63.996875em)` */"mdOnly": string
|
|
97
|
+
/** `@media screen and (max-width: 48em)` */"mdDown": string
|
|
98
|
+
/** `@media screen and (min-width: 64em)` */"lg": string
|
|
99
|
+
/** `@media screen and (min-width: 64em) and (max-width: 79.996875em)` */"lgOnly": string
|
|
100
|
+
/** `@media screen and (max-width: 64em)` */"lgDown": string
|
|
101
|
+
/** `@media screen and (min-width: 80em)` */"xl": string
|
|
102
|
+
/** `@media screen and (min-width: 80em) and (max-width: 95.996875em)` */"xlOnly": string
|
|
103
|
+
/** `@media screen and (max-width: 80em)` */"xlDown": string
|
|
104
|
+
/** `@media screen and (min-width: 96em)` */"2xl": string
|
|
105
|
+
/** `@media screen and (min-width: 96em)` */"2xlOnly": string
|
|
106
|
+
/** `@media screen and (max-width: 96em)` */"2xlDown": string
|
|
107
|
+
/** `@media screen and (min-width: 40em) and (max-width: 47.996875em)` */"smToMd": string
|
|
108
|
+
/** `@media screen and (min-width: 40em) and (max-width: 63.996875em)` */"smToLg": string
|
|
109
|
+
/** `@media screen and (min-width: 40em) and (max-width: 79.996875em)` */"smToXl": string
|
|
110
|
+
/** `@media screen and (min-width: 40em) and (max-width: 95.996875em)` */"smTo2xl": string
|
|
111
|
+
/** `@media screen and (min-width: 48em) and (max-width: 63.996875em)` */"mdToLg": string
|
|
112
|
+
/** `@media screen and (min-width: 48em) and (max-width: 79.996875em)` */"mdToXl": string
|
|
113
|
+
/** `@media screen and (min-width: 48em) and (max-width: 95.996875em)` */"mdTo2xl": string
|
|
114
|
+
/** `@media screen and (min-width: 64em) and (max-width: 79.996875em)` */"lgToXl": string
|
|
115
|
+
/** `@media screen and (min-width: 64em) and (max-width: 95.996875em)` */"lgTo2xl": string
|
|
116
|
+
/** `@media screen and (min-width: 80em) and (max-width: 95.996875em)` */"xlTo2xl": string
|
|
117
|
+
/** The base (=no conditions) styles to apply */"base": string
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
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
|
-
}
|