@pandacss/studio 0.30.2 → 0.32.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/astro.config.mjs +3 -2
- package/dist/studio.d.mts +4 -3
- package/dist/studio.d.ts +4 -3
- package/dist/studio.js +8 -5
- package/dist/studio.mjs +9 -6
- package/package.json +12 -12
- package/src/components/overview.tsx +3 -2
- package/src/components/side-nav.astro +4 -3
- package/src/lib/url.ts +3 -0
- package/styled-system/css/css.mjs +1 -1
- package/styled-system/css/cva.d.ts +1 -1
- package/styled-system/helpers.mjs +2 -1
- package/styled-system/jsx/factory.mjs +4 -4
- package/styled-system/jsx/is-valid-prop.mjs +2 -2
- package/styled-system/styles.css +281 -439
- package/styled-system/types/conditions.d.ts +37 -37
- package/styled-system/types/prop-type.d.ts +2 -0
- package/styled-system/types/recipe.d.ts +15 -8
- package/styled-system/types/style-props.d.ts +17 -2
- package/styled-system/jsx/styled-link.d.ts +0 -10
- package/styled-system/jsx/styled-link.mjs +0 -14
- package/styled-system/patterns/styled-link.d.ts +0 -21
- package/styled-system/patterns/styled-link.mjs +0 -18
|
@@ -178,79 +178,79 @@ export interface Conditions {
|
|
|
178
178
|
"_horizontal": string
|
|
179
179
|
/** `&[data-orientation=vertical]` */
|
|
180
180
|
"_vertical": string
|
|
181
|
-
/** `@media screen and (min-width:
|
|
181
|
+
/** `@media screen and (min-width: 40rem)` */
|
|
182
182
|
"sm": string
|
|
183
|
-
/** `@media screen and (min-width:
|
|
183
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
|
|
184
184
|
"smOnly": string
|
|
185
|
-
/** `@media screen and (max-width: 39.
|
|
185
|
+
/** `@media screen and (max-width: 39.9975rem)` */
|
|
186
186
|
"smDown": string
|
|
187
|
-
/** `@media screen and (min-width:
|
|
187
|
+
/** `@media screen and (min-width: 48rem)` */
|
|
188
188
|
"md": string
|
|
189
|
-
/** `@media screen and (min-width:
|
|
189
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
|
|
190
190
|
"mdOnly": string
|
|
191
|
-
/** `@media screen and (max-width: 47.
|
|
191
|
+
/** `@media screen and (max-width: 47.9975rem)` */
|
|
192
192
|
"mdDown": string
|
|
193
|
-
/** `@media screen and (min-width:
|
|
193
|
+
/** `@media screen and (min-width: 64rem)` */
|
|
194
194
|
"lg": string
|
|
195
|
-
/** `@media screen and (min-width:
|
|
195
|
+
/** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
|
|
196
196
|
"lgOnly": string
|
|
197
|
-
/** `@media screen and (max-width: 63.
|
|
197
|
+
/** `@media screen and (max-width: 63.9975rem)` */
|
|
198
198
|
"lgDown": string
|
|
199
|
-
/** `@media screen and (min-width:
|
|
199
|
+
/** `@media screen and (min-width: 80rem)` */
|
|
200
200
|
"xl": string
|
|
201
|
-
/** `@media screen and (min-width:
|
|
201
|
+
/** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
|
|
202
202
|
"xlOnly": string
|
|
203
|
-
/** `@media screen and (max-width: 79.
|
|
203
|
+
/** `@media screen and (max-width: 79.9975rem)` */
|
|
204
204
|
"xlDown": string
|
|
205
|
-
/** `@media screen and (min-width:
|
|
205
|
+
/** `@media screen and (min-width: 96rem)` */
|
|
206
206
|
"2xl": string
|
|
207
|
-
/** `@media screen and (min-width:
|
|
207
|
+
/** `@media screen and (min-width: 96rem)` */
|
|
208
208
|
"2xlOnly": string
|
|
209
|
-
/** `@media screen and (max-width: 95.
|
|
209
|
+
/** `@media screen and (max-width: 95.9975rem)` */
|
|
210
210
|
"2xlDown": string
|
|
211
|
-
/** `@media screen and (min-width:
|
|
211
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
|
|
212
212
|
"smToMd": string
|
|
213
|
-
/** `@media screen and (min-width:
|
|
213
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 63.9975rem)` */
|
|
214
214
|
"smToLg": string
|
|
215
|
-
/** `@media screen and (min-width:
|
|
215
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 79.9975rem)` */
|
|
216
216
|
"smToXl": string
|
|
217
|
-
/** `@media screen and (min-width:
|
|
217
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 95.9975rem)` */
|
|
218
218
|
"smTo2xl": string
|
|
219
|
-
/** `@media screen and (min-width:
|
|
219
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
|
|
220
220
|
"mdToLg": string
|
|
221
|
-
/** `@media screen and (min-width:
|
|
221
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 79.9975rem)` */
|
|
222
222
|
"mdToXl": string
|
|
223
|
-
/** `@media screen and (min-width:
|
|
223
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 95.9975rem)` */
|
|
224
224
|
"mdTo2xl": string
|
|
225
|
-
/** `@media screen and (min-width:
|
|
225
|
+
/** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
|
|
226
226
|
"lgToXl": string
|
|
227
|
-
/** `@media screen and (min-width:
|
|
227
|
+
/** `@media screen and (min-width: 64rem) and (max-width: 95.9975rem)` */
|
|
228
228
|
"lgTo2xl": string
|
|
229
|
-
/** `@media screen and (min-width:
|
|
229
|
+
/** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
|
|
230
230
|
"xlTo2xl": string
|
|
231
|
-
/** `@container (min-width:
|
|
231
|
+
/** `@container (min-width: 20rem)` */
|
|
232
232
|
"@/xs": string
|
|
233
|
-
/** `@container (min-width:
|
|
233
|
+
/** `@container (min-width: 24rem)` */
|
|
234
234
|
"@/sm": string
|
|
235
|
-
/** `@container (min-width:
|
|
235
|
+
/** `@container (min-width: 28rem)` */
|
|
236
236
|
"@/md": string
|
|
237
|
-
/** `@container (min-width:
|
|
237
|
+
/** `@container (min-width: 32rem)` */
|
|
238
238
|
"@/lg": string
|
|
239
|
-
/** `@container (min-width:
|
|
239
|
+
/** `@container (min-width: 36rem)` */
|
|
240
240
|
"@/xl": string
|
|
241
|
-
/** `@container (min-width:
|
|
241
|
+
/** `@container (min-width: 42rem)` */
|
|
242
242
|
"@/2xl": string
|
|
243
|
-
/** `@container (min-width:
|
|
243
|
+
/** `@container (min-width: 48rem)` */
|
|
244
244
|
"@/3xl": string
|
|
245
|
-
/** `@container (min-width:
|
|
245
|
+
/** `@container (min-width: 56rem)` */
|
|
246
246
|
"@/4xl": string
|
|
247
|
-
/** `@container (min-width:
|
|
247
|
+
/** `@container (min-width: 64rem)` */
|
|
248
248
|
"@/5xl": string
|
|
249
|
-
/** `@container (min-width:
|
|
249
|
+
/** `@container (min-width: 72rem)` */
|
|
250
250
|
"@/6xl": string
|
|
251
|
-
/** `@container (min-width:
|
|
251
|
+
/** `@container (min-width: 80rem)` */
|
|
252
252
|
"@/7xl": string
|
|
253
|
-
/** `@container (min-width:
|
|
253
|
+
/** `@container (min-width: 90rem)` */
|
|
254
254
|
"@/8xl": string
|
|
255
255
|
/** The base (=no conditions) styles to apply */
|
|
256
256
|
"base": string
|
|
@@ -89,6 +89,7 @@ interface PropertyValueTypes {
|
|
|
89
89
|
textEmphasisColor: Tokens["colors"];
|
|
90
90
|
textIndent: Tokens["spacing"];
|
|
91
91
|
textShadow: Tokens["shadows"];
|
|
92
|
+
textShadowColor: Tokens["colors"];
|
|
92
93
|
textWrap: "wrap" | "balance" | "nowrap";
|
|
93
94
|
truncate: boolean;
|
|
94
95
|
listStyleImage: Tokens["assets"];
|
|
@@ -264,6 +265,7 @@ interface PropertyValueTypes {
|
|
|
264
265
|
h: Shorthand<"height">;
|
|
265
266
|
minH: Shorthand<"minHeight">;
|
|
266
267
|
maxH: Shorthand<"maxHeight">;
|
|
268
|
+
textShadowColor: Shorthand<"textShadowColor">;
|
|
267
269
|
bgPosition: Shorthand<"backgroundPosition">;
|
|
268
270
|
bgPositionX: Shorthand<"backgroundPositionX">;
|
|
269
271
|
bgPositionY: Shorthand<"backgroundPositionY">;
|
|
@@ -14,10 +14,21 @@ export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends k
|
|
|
14
14
|
|
|
15
15
|
export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Extract the variant as optional props from a `cva` function.
|
|
19
|
+
* Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.
|
|
20
|
+
*/
|
|
17
21
|
export type RecipeVariantProps<
|
|
18
22
|
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
19
23
|
> = Pretty<Parameters<T>[0]>
|
|
20
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Extract the variants from a `cva` function.
|
|
27
|
+
*/
|
|
28
|
+
export type RecipeVariant<
|
|
29
|
+
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
30
|
+
> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>
|
|
31
|
+
|
|
21
32
|
type RecipeVariantMap<T extends RecipeVariantRecord> = {
|
|
22
33
|
[K in keyof T]: Array<keyof T[K]>
|
|
23
34
|
}
|
|
@@ -64,10 +75,6 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
64
75
|
* The styles to apply when a combination of variants is selected.
|
|
65
76
|
*/
|
|
66
77
|
compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
|
|
67
|
-
/**
|
|
68
|
-
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
69
|
-
*/
|
|
70
|
-
staticCss?: RecipeRule[]
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
|
|
@@ -88,6 +95,10 @@ interface RecipeConfigMeta {
|
|
|
88
95
|
* @example ['Button', 'Link', /Button$/]
|
|
89
96
|
*/
|
|
90
97
|
jsx?: Array<string | RegExp>
|
|
98
|
+
/**
|
|
99
|
+
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
100
|
+
*/
|
|
101
|
+
staticCss?: RecipeRule[]
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
|
|
@@ -142,10 +153,6 @@ export interface SlotRecipeDefinition<
|
|
|
142
153
|
* The styles to apply when a combination of variants is selected.
|
|
143
154
|
*/
|
|
144
155
|
compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
|
|
145
|
-
/**
|
|
146
|
-
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
147
|
-
*/
|
|
148
|
-
staticCss?: RecipeRule[]
|
|
149
156
|
}
|
|
150
157
|
|
|
151
158
|
export type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(
|
|
@@ -51,6 +51,9 @@ export interface SystemProperties {
|
|
|
51
51
|
animationIterationCount?: PropertyValue<'animationIterationCount'>
|
|
52
52
|
animationName?: PropertyValue<'animationName'>
|
|
53
53
|
animationPlayState?: PropertyValue<'animationPlayState'>
|
|
54
|
+
animationRange?: PropertyValue<'animationRange'>
|
|
55
|
+
animationRangeEnd?: PropertyValue<'animationRangeEnd'>
|
|
56
|
+
animationRangeStart?: PropertyValue<'animationRangeStart'>
|
|
54
57
|
animationTimingFunction?: PropertyValue<'animationTimingFunction'>
|
|
55
58
|
animationTimeline?: PropertyValue<'animationTimeline'>
|
|
56
59
|
appearance?: PropertyValue<'appearance'>
|
|
@@ -70,7 +73,6 @@ export interface SystemProperties {
|
|
|
70
73
|
backgroundPositionY?: PropertyValue<'backgroundPositionY'>
|
|
71
74
|
backgroundRepeat?: PropertyValue<'backgroundRepeat'>
|
|
72
75
|
backgroundSize?: PropertyValue<'backgroundSize'>
|
|
73
|
-
blockOverflow?: PropertyValue<'blockOverflow'>
|
|
74
76
|
blockSize?: PropertyValue<'blockSize'>
|
|
75
77
|
border?: PropertyValue<'border'>
|
|
76
78
|
borderBlock?: PropertyValue<'borderBlock'>
|
|
@@ -208,6 +210,10 @@ export interface SystemProperties {
|
|
|
208
210
|
fontStretch?: PropertyValue<'fontStretch'>
|
|
209
211
|
fontStyle?: PropertyValue<'fontStyle'>
|
|
210
212
|
fontSynthesis?: PropertyValue<'fontSynthesis'>
|
|
213
|
+
fontSynthesisPosition?: PropertyValue<'fontSynthesisPosition'>
|
|
214
|
+
fontSynthesisSmallCaps?: PropertyValue<'fontSynthesisSmallCaps'>
|
|
215
|
+
fontSynthesisStyle?: PropertyValue<'fontSynthesisStyle'>
|
|
216
|
+
fontSynthesisWeight?: PropertyValue<'fontSynthesisWeight'>
|
|
211
217
|
fontVariant?: PropertyValue<'fontVariant'>
|
|
212
218
|
fontVariantAlternates?: PropertyValue<'fontVariantAlternates'>
|
|
213
219
|
fontVariantCaps?: PropertyValue<'fontVariantCaps'>
|
|
@@ -340,6 +346,7 @@ export interface SystemProperties {
|
|
|
340
346
|
overflowWrap?: PropertyValue<'overflowWrap'>
|
|
341
347
|
overflowX?: PropertyValue<'overflowX'>
|
|
342
348
|
overflowY?: PropertyValue<'overflowY'>
|
|
349
|
+
overlay?: PropertyValue<'overlay'>
|
|
343
350
|
overscrollBehavior?: PropertyValue<'overscrollBehavior'>
|
|
344
351
|
overscrollBehaviorBlock?: PropertyValue<'overscrollBehaviorBlock'>
|
|
345
352
|
overscrollBehaviorInline?: PropertyValue<'overscrollBehaviorInline'>
|
|
@@ -445,6 +452,8 @@ export interface SystemProperties {
|
|
|
445
452
|
textTransform?: PropertyValue<'textTransform'>
|
|
446
453
|
textUnderlineOffset?: PropertyValue<'textUnderlineOffset'>
|
|
447
454
|
textUnderlinePosition?: PropertyValue<'textUnderlinePosition'>
|
|
455
|
+
textWrap?: PropertyValue<'textWrap'>
|
|
456
|
+
timelineScope?: PropertyValue<'timelineScope'>
|
|
448
457
|
top?: PropertyValue<'top'>
|
|
449
458
|
touchAction?: PropertyValue<'touchAction'>
|
|
450
459
|
transform?: PropertyValue<'transform'>
|
|
@@ -452,6 +461,7 @@ export interface SystemProperties {
|
|
|
452
461
|
transformOrigin?: PropertyValue<'transformOrigin'>
|
|
453
462
|
transformStyle?: PropertyValue<'transformStyle'>
|
|
454
463
|
transition?: PropertyValue<'transition'>
|
|
464
|
+
transitionBehavior?: PropertyValue<'transitionBehavior'>
|
|
455
465
|
transitionDelay?: PropertyValue<'transitionDelay'>
|
|
456
466
|
transitionDuration?: PropertyValue<'transitionDuration'>
|
|
457
467
|
transitionProperty?: PropertyValue<'transitionProperty'>
|
|
@@ -460,9 +470,14 @@ export interface SystemProperties {
|
|
|
460
470
|
unicodeBidi?: PropertyValue<'unicodeBidi'>
|
|
461
471
|
userSelect?: PropertyValue<'userSelect'>
|
|
462
472
|
verticalAlign?: PropertyValue<'verticalAlign'>
|
|
473
|
+
viewTimeline?: PropertyValue<'viewTimeline'>
|
|
474
|
+
viewTimelineAxis?: PropertyValue<'viewTimelineAxis'>
|
|
475
|
+
viewTimelineInset?: PropertyValue<'viewTimelineInset'>
|
|
476
|
+
viewTimelineName?: PropertyValue<'viewTimelineName'>
|
|
463
477
|
viewTransitionName?: PropertyValue<'viewTransitionName'>
|
|
464
478
|
visibility?: PropertyValue<'visibility'>
|
|
465
479
|
whiteSpace?: PropertyValue<'whiteSpace'>
|
|
480
|
+
whiteSpaceCollapse?: PropertyValue<'whiteSpaceCollapse'>
|
|
466
481
|
widows?: PropertyValue<'widows'>
|
|
467
482
|
width?: PropertyValue<'width'>
|
|
468
483
|
willChange?: PropertyValue<'willChange'>
|
|
@@ -544,6 +559,7 @@ export interface SystemProperties {
|
|
|
544
559
|
h?: PropertyValue<'h'>
|
|
545
560
|
minH?: PropertyValue<'minH'>
|
|
546
561
|
maxH?: PropertyValue<'maxH'>
|
|
562
|
+
textShadowColor?: PropertyValue<'textShadowColor'>
|
|
547
563
|
bgPosition?: PropertyValue<'bgPosition'>
|
|
548
564
|
bgPositionX?: PropertyValue<'bgPositionX'>
|
|
549
565
|
bgPositionY?: PropertyValue<'bgPositionY'>
|
|
@@ -597,7 +613,6 @@ export interface SystemProperties {
|
|
|
597
613
|
divideColor?: PropertyValue<'divideColor'>
|
|
598
614
|
divideStyle?: PropertyValue<'divideStyle'>
|
|
599
615
|
fontSmoothing?: PropertyValue<'fontSmoothing'>
|
|
600
|
-
textWrap?: PropertyValue<'textWrap'>
|
|
601
616
|
truncate?: PropertyValue<'truncate'>
|
|
602
617
|
backgroundGradient?: PropertyValue<'backgroundGradient'>
|
|
603
618
|
textGradient?: PropertyValue<'textGradient'>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { StyledLinkProperties } from '../patterns/styled-link';
|
|
4
|
-
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface StyledLinkProps extends StyledLinkProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof StyledLinkProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const StyledLink: FunctionComponent<StyledLinkProps>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react'
|
|
2
|
-
import { mergeCss } from '../css/css.mjs';
|
|
3
|
-
import { splitProps } from '../helpers.mjs';
|
|
4
|
-
import { getStyledLinkStyle } from '../patterns/styled-link.mjs';
|
|
5
|
-
import { panda } from './factory.mjs';
|
|
6
|
-
|
|
7
|
-
export const StyledLink = /* @__PURE__ */ forwardRef(function StyledLink(props, ref) {
|
|
8
|
-
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
-
|
|
10
|
-
const styleProps = getStyledLinkStyle(patternProps)
|
|
11
|
-
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
-
|
|
13
|
-
return createElement(panda.div, mergedProps)
|
|
14
|
-
})
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface StyledLinkProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface StyledLinkStyles extends StyledLinkProperties, DistributiveOmit<SystemStyleObject, keyof StyledLinkProperties > {}
|
|
14
|
-
|
|
15
|
-
interface StyledLinkPatternFn {
|
|
16
|
-
(styles?: StyledLinkStyles): string
|
|
17
|
-
raw: (styles?: StyledLinkStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const styledLink: StyledLinkPatternFn;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { mapObject } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const styledLinkConfig = {
|
|
5
|
-
transform:(props) => ({
|
|
6
|
-
display: "inline-flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
opacity: "0.5",
|
|
9
|
-
borderBottom: "1px solid transparent",
|
|
10
|
-
cursor: "pointer",
|
|
11
|
-
_hover: { opacity: 1, borderBottomColor: "black" },
|
|
12
|
-
...props
|
|
13
|
-
})}
|
|
14
|
-
|
|
15
|
-
export const getStyledLinkStyle = (styles = {}) => styledLinkConfig.transform(styles, { map: mapObject })
|
|
16
|
-
|
|
17
|
-
export const styledLink = (styles) => css(getStyledLinkStyle(styles))
|
|
18
|
-
styledLink.raw = getStyledLinkStyle
|