@pandacss/studio 0.36.1 → 0.37.1
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/astro.config.mjs +1 -2
- package/package.json +7 -7
- package/panda.config.ts +5 -7
- package/src/components/colors.tsx +4 -4
- package/src/components/font-family.tsx +10 -0
- package/src/components/font-tokens.tsx +10 -0
- package/src/components/overview.tsx +1 -1
- package/src/components/semantic-color.tsx +1 -17
- package/src/components/sizes.tsx +12 -1
- package/src/components/text-styles.tsx +14 -1
- package/src/lib/use-color-docs.ts +24 -18
- package/src/pages/sizes.astro +2 -3
- package/src/pages/spacing.astro +4 -4
- package/styled-system/css/conditions.mjs +1 -1
- package/styled-system/css/css.mjs +1 -1
- package/styled-system/css/cva.mjs +3 -1
- package/styled-system/helpers.mjs +1 -1
- package/styled-system/jsx/is-valid-prop.mjs +1 -1
- package/styled-system/styles.css +84 -86
- package/styled-system/types/conditions.d.ts +4 -2
- package/styled-system/types/prop-type.d.ts +11 -4
- package/styled-system/types/recipe.d.ts +2 -1
- package/styled-system/types/style-props.d.ts +276 -266
package/styled-system/styles.css
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
@layer reset, base, tokens, recipes, utilities;
|
|
2
2
|
|
|
3
3
|
@layer reset{
|
|
4
|
-
html {
|
|
4
|
+
html,:host {
|
|
5
5
|
--font-fallback: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
6
6
|
-webkit-text-size-adjust: 100%;
|
|
7
7
|
-webkit-font-smoothing: antialiased;
|
|
8
8
|
-moz-osx-font-smoothing: grayscale;
|
|
9
9
|
-moz-tab-size: 4;
|
|
10
10
|
tab-size: 4;
|
|
11
|
+
-webkit-tap-highlight-color: transparent;
|
|
11
12
|
line-height: 1.5;
|
|
12
13
|
font-family: var(--global-font-body, var(--font-fallback));
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
*,::before,::after,::backdrop,::first-letter,::file-selector-button {
|
|
16
17
|
margin: 0px;
|
|
17
18
|
padding: 0px;
|
|
18
|
-
font: inherit;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
*,*::before,*::after {
|
|
22
19
|
box-sizing: border-box;
|
|
23
20
|
border-width: 0px;
|
|
24
21
|
border-style: solid;
|
|
@@ -33,6 +30,7 @@
|
|
|
33
30
|
|
|
34
31
|
body {
|
|
35
32
|
height: 100%;
|
|
33
|
+
line-height: inherit;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
img {
|
|
@@ -49,47 +47,55 @@
|
|
|
49
47
|
height: auto;
|
|
50
48
|
}
|
|
51
49
|
|
|
50
|
+
h1,h2,h3,h4,h5,h6 {
|
|
51
|
+
text-wrap: balance;
|
|
52
|
+
font-size: inherit;
|
|
53
|
+
font-weight: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
p,h1,h2,h3,h4,h5,h6 {
|
|
53
57
|
overflow-wrap: break-word;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
ol,ul {
|
|
60
|
+
ol,ul,menu {
|
|
57
61
|
list-style: none;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
button,[type='button'],[type='reset'],[type='submit'] {
|
|
64
|
+
button,input:where([type='button'], [type='reset'], [type='submit']),::file-selector-button {
|
|
65
|
+
appearance: button;
|
|
65
66
|
-webkit-appearance: button;
|
|
66
|
-
background-color: var(--colors-transparent);
|
|
67
|
-
background-image: none;
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
button,input,optgroup,select,textarea {
|
|
69
|
+
button,input,optgroup,select,textarea,::file-selector-button {
|
|
70
|
+
font: inherit;
|
|
71
|
+
font-feature-settings: inherit;
|
|
72
|
+
font-variation-settings: inherit;
|
|
73
|
+
letter-spacing: inherit;
|
|
71
74
|
color: inherit;
|
|
75
|
+
background: var(--colors-transparent);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
table {
|
|
79
|
-
text-indent: 0px;
|
|
80
|
-
border-collapse: collapse;
|
|
81
|
-
border-color: inherit;
|
|
78
|
+
::placeholder {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
--placeholder-fallback: color-mix(in srgb, currentColor 50%, transparent);
|
|
81
|
+
color: var(--global-color-placeholder, var(--placeholder-fallback));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
input
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
select,textarea,input:where(:not([type='button'], [type='reset'], [type='submit'])) {
|
|
85
|
+
border-width: 1px;
|
|
86
|
+
border-style: solid;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
textarea {
|
|
90
90
|
resize: vertical;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
table {
|
|
94
|
+
text-indent: 0px;
|
|
95
|
+
border-collapse: collapse;
|
|
96
|
+
border-color: inherit;
|
|
97
|
+
}
|
|
98
|
+
|
|
93
99
|
summary {
|
|
94
100
|
display: list-item;
|
|
95
101
|
}
|
|
@@ -132,37 +138,24 @@
|
|
|
132
138
|
|
|
133
139
|
code,kbd,samp,pre {
|
|
134
140
|
--font-mono-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New';
|
|
135
|
-
font-
|
|
141
|
+
font-feature-settings: normal;
|
|
142
|
+
font-variation-settings: normal;
|
|
136
143
|
font-family: var(--global-font-mono, var(--font-mono-fallback));
|
|
144
|
+
font-size: 1em;
|
|
137
145
|
}
|
|
138
146
|
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
-moz-appearance: none;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
input[type='search'] {
|
|
145
|
-
-webkit-appearance: textfield;
|
|
146
|
-
outline-offset: -2px;
|
|
147
|
+
progress {
|
|
148
|
+
vertical-align: baseline;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
::-webkit-search-decoration,::-webkit-search-cancel-button {
|
|
150
152
|
-webkit-appearance: none;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
|
-
::-webkit-
|
|
154
|
-
-webkit-appearance: button;
|
|
155
|
-
font: inherit;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button {
|
|
155
|
+
::-webkit-inner-spin-button,::-webkit-outer-spin-button {
|
|
159
156
|
height: auto;
|
|
160
157
|
}
|
|
161
158
|
|
|
162
|
-
input[type='number'] {
|
|
163
|
-
-moz-appearance: textfield;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
159
|
:-moz-ui-invalid {
|
|
167
160
|
box-shadow: none;
|
|
168
161
|
}
|
|
@@ -179,9 +172,28 @@
|
|
|
179
172
|
@layer base{
|
|
180
173
|
:root {
|
|
181
174
|
--made-with-panda: '🐼';
|
|
175
|
+
--global-color-border: var(--colors-border);
|
|
176
|
+
--global-color-placeholder: var(--colors-neutral-500);
|
|
177
|
+
color-scheme: light dark;
|
|
178
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
179
|
+
font-size: 0.84em;
|
|
180
|
+
line-height: var(--line-heights-normal);
|
|
181
|
+
font-weight: var(--font-weights-normal);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
body {
|
|
185
|
+
margin: var(--spacing-0);
|
|
186
|
+
min-height: 100dvh;
|
|
187
|
+
background: var(--colors-bg);
|
|
188
|
+
color: var(--colors-text);
|
|
182
189
|
}
|
|
183
190
|
|
|
184
|
-
|
|
191
|
+
a {
|
|
192
|
+
color: unset;
|
|
193
|
+
text-decoration: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
*,::before,::after,::backdrop {
|
|
185
197
|
--blur: /*-*/ /*-*/;
|
|
186
198
|
--brightness: /*-*/ /*-*/;
|
|
187
199
|
--contrast: /*-*/ /*-*/;
|
|
@@ -200,39 +212,22 @@
|
|
|
200
212
|
--backdrop-opacity: /*-*/ /*-*/;
|
|
201
213
|
--backdrop-saturate: /*-*/ /*-*/;
|
|
202
214
|
--backdrop-sepia: /*-*/ /*-*/;
|
|
215
|
+
--gradient-from-position: /*-*/ /*-*/;
|
|
216
|
+
--gradient-to-position: /*-*/ /*-*/;
|
|
217
|
+
--gradient-via-position: /*-*/ /*-*/;
|
|
203
218
|
--scroll-snap-strictness: proximity;
|
|
204
219
|
--border-spacing-x: 0;
|
|
205
220
|
--border-spacing-y: 0;
|
|
206
221
|
--translate-x: 0;
|
|
207
222
|
--translate-y: 0;
|
|
208
223
|
--rotate: 0;
|
|
224
|
+
--rotate-x: 0;
|
|
225
|
+
--rotate-y: 0;
|
|
209
226
|
--skew-x: 0;
|
|
210
227
|
--skew-y: 0;
|
|
211
228
|
--scale-x: 1;
|
|
212
229
|
--scale-y: 1;
|
|
213
230
|
}
|
|
214
|
-
|
|
215
|
-
:root {
|
|
216
|
-
--global-color-border: var(--colors-border);
|
|
217
|
-
--global-color-placeholder: var(--colors-neutral-500);
|
|
218
|
-
color-scheme: light dark;
|
|
219
|
-
color: var(--colors-text);
|
|
220
|
-
background: var(--colors-bg);
|
|
221
|
-
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
222
|
-
font-size: 0.84em;
|
|
223
|
-
line-height: var(--line-heights-normal);
|
|
224
|
-
font-weight: var(--font-weights-normal);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
a {
|
|
228
|
-
color: unset;
|
|
229
|
-
text-decoration: none;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
body {
|
|
233
|
-
margin: var(--spacing-0);
|
|
234
|
-
min-height: 100dvh;
|
|
235
|
-
}
|
|
236
231
|
}
|
|
237
232
|
|
|
238
233
|
@layer tokens{
|
|
@@ -656,7 +651,7 @@
|
|
|
656
651
|
--colors-neutral-800: #262626;
|
|
657
652
|
--colors-neutral-900: #171717;
|
|
658
653
|
--colors-neutral-950: #0a0a0a;
|
|
659
|
-
--assets-check: url(
|
|
654
|
+
--assets-check: url("data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A");
|
|
660
655
|
--breakpoints-sm: 640px;
|
|
661
656
|
--breakpoints-md: 768px;
|
|
662
657
|
--breakpoints-lg: 1024px;
|
|
@@ -712,7 +707,6 @@
|
|
|
712
707
|
}
|
|
713
708
|
|
|
714
709
|
@layer utilities{
|
|
715
|
-
|
|
716
710
|
.d_flex {
|
|
717
711
|
display: flex;
|
|
718
712
|
}
|
|
@@ -753,7 +747,7 @@
|
|
|
753
747
|
gap: var(--spacing-2\.5);
|
|
754
748
|
}
|
|
755
749
|
|
|
756
|
-
.
|
|
750
|
+
.text-align_center {
|
|
757
751
|
text-align: center;
|
|
758
752
|
}
|
|
759
753
|
|
|
@@ -797,7 +791,7 @@
|
|
|
797
791
|
gap: var(--spacing-0\.5);
|
|
798
792
|
}
|
|
799
793
|
|
|
800
|
-
.
|
|
794
|
+
.text-transform_capitalize {
|
|
801
795
|
text-transform: capitalize;
|
|
802
796
|
}
|
|
803
797
|
|
|
@@ -805,7 +799,7 @@
|
|
|
805
799
|
opacity: 0.7;
|
|
806
800
|
}
|
|
807
801
|
|
|
808
|
-
.
|
|
802
|
+
.text-transform_uppercase {
|
|
809
803
|
text-transform: uppercase;
|
|
810
804
|
}
|
|
811
805
|
|
|
@@ -849,7 +843,7 @@
|
|
|
849
843
|
height: var(--sizes-8);
|
|
850
844
|
}
|
|
851
845
|
|
|
852
|
-
.
|
|
846
|
+
.text-transform_lowercase {
|
|
853
847
|
text-transform: lowercase;
|
|
854
848
|
}
|
|
855
849
|
|
|
@@ -894,7 +888,7 @@
|
|
|
894
888
|
border-bottom-width: 0px;
|
|
895
889
|
}
|
|
896
890
|
|
|
897
|
-
.
|
|
891
|
+
.divide-color_card > :not([hidden]) ~ :not([hidden]) {
|
|
898
892
|
border-color: var(--colors-card);
|
|
899
893
|
}
|
|
900
894
|
|
|
@@ -962,6 +956,10 @@
|
|
|
962
956
|
margin-block: var(--spacing-10);
|
|
963
957
|
}
|
|
964
958
|
|
|
959
|
+
.h_300px {
|
|
960
|
+
height: 300px;
|
|
961
|
+
}
|
|
962
|
+
|
|
965
963
|
.tracking_tighter {
|
|
966
964
|
letter-spacing: var(--letter-spacings-tighter);
|
|
967
965
|
}
|
|
@@ -1140,11 +1138,11 @@
|
|
|
1140
1138
|
flex-direction: column;
|
|
1141
1139
|
}
|
|
1142
1140
|
|
|
1143
|
-
.
|
|
1141
|
+
.fw_semibold {
|
|
1144
1142
|
font-weight: var(--font-weights-semibold);
|
|
1145
1143
|
}
|
|
1146
1144
|
|
|
1147
|
-
.
|
|
1145
|
+
.fw_bold {
|
|
1148
1146
|
font-weight: var(--font-weights-bold);
|
|
1149
1147
|
}
|
|
1150
1148
|
|
|
@@ -1188,7 +1186,7 @@
|
|
|
1188
1186
|
margin-top: var(--spacing-2);
|
|
1189
1187
|
}
|
|
1190
1188
|
|
|
1191
|
-
.
|
|
1189
|
+
.fw_medium {
|
|
1192
1190
|
font-weight: var(--font-weights-medium);
|
|
1193
1191
|
}
|
|
1194
1192
|
|
|
@@ -1292,7 +1290,7 @@
|
|
|
1292
1290
|
margin-bottom: var(--spacing-8);
|
|
1293
1291
|
}
|
|
1294
1292
|
|
|
1295
|
-
.
|
|
1293
|
+
.list-type_none {
|
|
1296
1294
|
list-style-type: none;
|
|
1297
1295
|
}
|
|
1298
1296
|
|
|
@@ -1376,7 +1374,7 @@
|
|
|
1376
1374
|
z-index: -1;
|
|
1377
1375
|
}
|
|
1378
1376
|
|
|
1379
|
-
.dark
|
|
1377
|
+
.dark .dark\:text_neutral\.300 {
|
|
1380
1378
|
color: var(--colors-neutral-300);
|
|
1381
1379
|
}
|
|
1382
1380
|
|
|
@@ -1388,7 +1386,7 @@
|
|
|
1388
1386
|
content: '';
|
|
1389
1387
|
}
|
|
1390
1388
|
|
|
1391
|
-
.before\:
|
|
1389
|
+
.before\:bg-size_24px::before {
|
|
1392
1390
|
background-size: 24px;
|
|
1393
1391
|
}
|
|
1394
1392
|
|
|
@@ -1396,7 +1394,7 @@
|
|
|
1396
1394
|
background-image: var(--assets-check);
|
|
1397
1395
|
}
|
|
1398
1396
|
|
|
1399
|
-
.focusWithin\:
|
|
1397
|
+
.focusWithin\:ring-offset_2px:focus-within {
|
|
1400
1398
|
outline-offset: 2px;
|
|
1401
1399
|
}
|
|
1402
1400
|
|
|
@@ -1404,11 +1402,11 @@
|
|
|
1404
1402
|
outline-style: solid;
|
|
1405
1403
|
}
|
|
1406
1404
|
|
|
1407
|
-
.focusWithin\:
|
|
1405
|
+
.focusWithin\:ring-width_2px:focus-within {
|
|
1408
1406
|
outline-width: 2px;
|
|
1409
1407
|
}
|
|
1410
1408
|
|
|
1411
|
-
.focusWithin\:
|
|
1409
|
+
.focusWithin\:ring-color_neutral\.400:focus-within {
|
|
1412
1410
|
outline-color: var(--colors-neutral-400);
|
|
1413
1411
|
}
|
|
1414
1412
|
|
|
@@ -1416,13 +1414,13 @@
|
|
|
1416
1414
|
color: var(--colors-accent);
|
|
1417
1415
|
}
|
|
1418
1416
|
|
|
1419
|
-
@media screen and (min-width:
|
|
1417
|
+
@media screen and (min-width: 48rem) {
|
|
1420
1418
|
.md\:px_6 {
|
|
1421
1419
|
padding-inline: var(--spacing-6);
|
|
1422
1420
|
}
|
|
1423
1421
|
}
|
|
1424
1422
|
|
|
1425
|
-
@media screen and (min-width:
|
|
1423
|
+
@media screen and (min-width: 64rem) {
|
|
1426
1424
|
.lg\:px_8 {
|
|
1427
1425
|
padding-inline: var(--spacing-8);
|
|
1428
1426
|
}
|
|
@@ -150,9 +150,9 @@ export interface Conditions {
|
|
|
150
150
|
"_landscape": string
|
|
151
151
|
/** `@media (orientation: portrait)` */
|
|
152
152
|
"_portrait": string
|
|
153
|
-
/**
|
|
153
|
+
/** `.dark &` */
|
|
154
154
|
"_dark": string
|
|
155
|
-
/**
|
|
155
|
+
/** `.light &` */
|
|
156
156
|
"_light": string
|
|
157
157
|
/** `@media (prefers-color-scheme: dark)` */
|
|
158
158
|
"_osDark": string
|
|
@@ -178,6 +178,8 @@ export interface Conditions {
|
|
|
178
178
|
"_horizontal": string
|
|
179
179
|
/** `&[data-orientation=vertical]` */
|
|
180
180
|
"_vertical": string
|
|
181
|
+
/** `@starting-style` */
|
|
182
|
+
"_starting": string
|
|
181
183
|
/** `@media screen and (min-width: 40rem)` */
|
|
182
184
|
"sm": string
|
|
183
185
|
/** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
|
|
@@ -55,11 +55,11 @@ export interface UtilityValues {
|
|
|
55
55
|
marginInline: "auto" | Tokens["spacing"];
|
|
56
56
|
marginInlineEnd: "auto" | Tokens["spacing"];
|
|
57
57
|
marginInlineStart: "auto" | Tokens["spacing"];
|
|
58
|
+
spaceX: "auto" | Tokens["spacing"] | CssProperties["marginInlineStart"];
|
|
59
|
+
spaceY: "auto" | Tokens["spacing"] | CssProperties["marginBlockStart"];
|
|
58
60
|
outlineColor: Tokens["colors"];
|
|
59
61
|
outline: Tokens["borders"];
|
|
60
62
|
outlineOffset: Tokens["spacing"];
|
|
61
|
-
divideX: string;
|
|
62
|
-
divideY: string;
|
|
63
63
|
divideColor: Tokens["colors"];
|
|
64
64
|
divideStyle: CssProperties["borderStyle"];
|
|
65
65
|
width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
@@ -140,7 +140,7 @@ export interface UtilityValues {
|
|
|
140
140
|
blur: Tokens["blurs"];
|
|
141
141
|
backdropFilter: "auto";
|
|
142
142
|
backdropBlur: Tokens["blurs"];
|
|
143
|
-
borderSpacing: Tokens["spacing"];
|
|
143
|
+
borderSpacing: Tokens["spacing"] | "auto";
|
|
144
144
|
borderSpacingX: Tokens["spacing"];
|
|
145
145
|
borderSpacingY: Tokens["spacing"];
|
|
146
146
|
transitionTimingFunction: Tokens["easings"];
|
|
@@ -148,11 +148,18 @@ export interface UtilityValues {
|
|
|
148
148
|
transitionDuration: Tokens["durations"];
|
|
149
149
|
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
150
150
|
animation: Tokens["animations"];
|
|
151
|
+
animationTimingFunction: Tokens["easings"];
|
|
152
|
+
animationDuration: Tokens["durations"];
|
|
151
153
|
animationDelay: Tokens["durations"];
|
|
154
|
+
rotate: "auto" | "auto-3d" | CssProperties["rotate"];
|
|
155
|
+
rotateX: CssProperties["rotate"];
|
|
156
|
+
rotateY: CssProperties["rotate"];
|
|
157
|
+
rotateZ: CssProperties["rotate"];
|
|
152
158
|
scale: "auto" | CssProperties["scale"];
|
|
153
|
-
translate: "auto" | CssProperties["translate"];
|
|
159
|
+
translate: "auto" | "auto-3d" | CssProperties["translate"];
|
|
154
160
|
translateX: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
155
161
|
translateY: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
162
|
+
translateZ: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
156
163
|
accentColor: Tokens["colors"];
|
|
157
164
|
caretColor: Tokens["colors"];
|
|
158
165
|
scrollbar: "visible" | "hidden";
|
|
@@ -46,6 +46,7 @@ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVa
|
|
|
46
46
|
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
47
47
|
props: Props,
|
|
48
48
|
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
49
|
+
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
type OneOrMore<T> = T | Array<T>
|
|
@@ -122,7 +123,7 @@ export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVaria
|
|
|
122
123
|
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
123
124
|
variantKeys: (keyof T)[]
|
|
124
125
|
variantMap: RecipeVariantMap<T>
|
|
125
|
-
|
|
126
|
+
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
export type SlotRecipeCompoundVariant<S extends string, T> = T & {
|