@pandacss/studio 0.37.2 → 0.39.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 +7 -7
- package/styled-system/css/css.d.ts +11 -2
- package/styled-system/helpers.mjs +1 -1
- package/styled-system/jsx/aspect-ratio.mjs +1 -1
- package/styled-system/jsx/bleed.mjs +1 -1
- package/styled-system/jsx/box.mjs +1 -1
- package/styled-system/jsx/center.mjs +1 -1
- package/styled-system/jsx/circle.mjs +1 -1
- package/styled-system/jsx/container.mjs +1 -1
- package/styled-system/jsx/cq.mjs +1 -1
- package/styled-system/jsx/divider.mjs +1 -1
- package/styled-system/jsx/flex.mjs +1 -1
- package/styled-system/jsx/float.mjs +1 -1
- package/styled-system/jsx/grid-item.mjs +1 -1
- package/styled-system/jsx/grid.mjs +1 -1
- package/styled-system/jsx/hstack.mjs +1 -1
- package/styled-system/jsx/index.d.ts +0 -1
- package/styled-system/jsx/index.mjs +0 -1
- package/styled-system/jsx/link-box.mjs +1 -1
- package/styled-system/jsx/link-overlay.mjs +1 -1
- package/styled-system/jsx/spacer.mjs +1 -1
- package/styled-system/jsx/square.mjs +1 -1
- package/styled-system/jsx/stack.mjs +1 -1
- package/styled-system/jsx/visually-hidden.mjs +1 -1
- package/styled-system/jsx/vstack.mjs +1 -1
- package/styled-system/jsx/wrap.mjs +1 -1
- package/styled-system/patterns/index.d.ts +0 -1
- package/styled-system/patterns/index.mjs +0 -1
- package/styled-system/patterns/link-overlay.mjs +0 -3
- package/styled-system/tokens/tokens.d.ts +0 -3
- package/styled-system/types/composition.d.ts +39 -12
- package/styled-system/types/pattern.d.ts +4 -0
- package/styled-system/types/prop-type.d.ts +3 -2
- package/styled-system/types/recipe.d.ts +8 -0
- package/styled-system/types/style-props.d.ts +1 -1
- package/styled-system/types/system-types.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
50
|
"vite": "5.1.7",
|
|
51
|
-
"@pandacss/config": "0.
|
|
52
|
-
"@pandacss/logger": "0.
|
|
53
|
-
"@pandacss/shared": "0.
|
|
54
|
-
"@pandacss/token-dictionary": "0.
|
|
55
|
-
"@pandacss/types": "0.
|
|
56
|
-
"@pandacss/astro-plugin-studio": "0.
|
|
51
|
+
"@pandacss/config": "0.39.0",
|
|
52
|
+
"@pandacss/logger": "0.39.0",
|
|
53
|
+
"@pandacss/shared": "0.39.0",
|
|
54
|
+
"@pandacss/token-dictionary": "0.39.0",
|
|
55
|
+
"@pandacss/types": "0.39.0",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "0.39.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "18.2.55",
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject } from '../types/index';
|
|
3
3
|
|
|
4
|
+
type Styles = SystemStyleObject | undefined | null | false
|
|
5
|
+
|
|
4
6
|
interface CssFunction {
|
|
5
|
-
(
|
|
6
|
-
|
|
7
|
+
(styles: Styles): string
|
|
8
|
+
(styles: Styles[]): string
|
|
9
|
+
(...styles: Array<Styles | Styles[]>): string
|
|
10
|
+
(styles: Styles): string
|
|
11
|
+
|
|
12
|
+
raw: (styles: Styles) => string
|
|
13
|
+
raw: (styles: Styles[]) => string
|
|
14
|
+
raw: (...styles: Array<Styles | Styles[]>) => string
|
|
15
|
+
raw: (styles: Styles) => string
|
|
7
16
|
}
|
|
8
17
|
|
|
9
18
|
export declare const css: CssFunction;
|
|
@@ -180,7 +180,7 @@ function createCss(context) {
|
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
function compactStyles(...styles) {
|
|
183
|
-
return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
|
|
183
|
+
return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
|
|
184
184
|
}
|
|
185
185
|
function createMergeCss(context) {
|
|
186
186
|
function resolve(styles) {
|
package/styled-system/jsx/cq.mjs
CHANGED
|
@@ -9,7 +9,6 @@ export * from './spacer.mjs';
|
|
|
9
9
|
export * from './square.mjs';
|
|
10
10
|
export * from './circle.mjs';
|
|
11
11
|
export * from './center.mjs';
|
|
12
|
-
export * from './link-box.mjs';
|
|
13
12
|
export * from './link-overlay.mjs';
|
|
14
13
|
export * from './aspect-ratio.mjs';
|
|
15
14
|
export * from './grid.mjs';
|
|
@@ -7,7 +7,6 @@ export * from './spacer.mjs';
|
|
|
7
7
|
export * from './square.mjs';
|
|
8
8
|
export * from './circle.mjs';
|
|
9
9
|
export * from './center.mjs';
|
|
10
|
-
export * from './link-box.mjs';
|
|
11
10
|
export * from './link-overlay.mjs';
|
|
12
11
|
export * from './aspect-ratio.mjs';
|
|
13
12
|
export * from './grid.mjs';
|
|
@@ -4,12 +4,9 @@ import { css } from '../css/index.mjs';
|
|
|
4
4
|
const linkOverlayConfig = {
|
|
5
5
|
transform(props) {
|
|
6
6
|
return {
|
|
7
|
-
position: "static",
|
|
8
7
|
_before: {
|
|
9
8
|
content: '""',
|
|
10
|
-
display: "block",
|
|
11
9
|
position: "absolute",
|
|
12
|
-
cursor: "inherit",
|
|
13
10
|
inset: "0",
|
|
14
11
|
zIndex: "0",
|
|
15
12
|
...props["_before"]
|
|
@@ -39,8 +39,6 @@ export type AssetToken = "check"
|
|
|
39
39
|
|
|
40
40
|
export type BreakpointToken = "sm" | "md" | "lg" | "xl" | "2xl"
|
|
41
41
|
|
|
42
|
-
export type AnimationName = "spin" | "ping" | "pulse" | "bounce"
|
|
43
|
-
|
|
44
42
|
export type Tokens = {
|
|
45
43
|
aspectRatios: AspectRatioToken
|
|
46
44
|
borders: BorderToken
|
|
@@ -60,7 +58,6 @@ export type Tokens = {
|
|
|
60
58
|
colors: ColorToken
|
|
61
59
|
assets: AssetToken
|
|
62
60
|
breakpoints: BreakpointToken
|
|
63
|
-
animationName: AnimationName
|
|
64
61
|
} & { [token: string]: never }
|
|
65
62
|
|
|
66
63
|
export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
|
|
@@ -15,34 +15,61 @@ interface Recursive<T> {
|
|
|
15
15
|
* -----------------------------------------------------------------------------*/
|
|
16
16
|
|
|
17
17
|
type TextStyleProperty =
|
|
18
|
+
| 'font'
|
|
19
|
+
| 'fontFamily'
|
|
20
|
+
| 'fontFeatureSettings'
|
|
21
|
+
| 'fontKerning'
|
|
22
|
+
| 'fontLanguageOverride'
|
|
23
|
+
| 'fontOpticalSizing'
|
|
24
|
+
| 'fontPalette'
|
|
18
25
|
| 'fontSize'
|
|
19
26
|
| 'fontSizeAdjust'
|
|
20
|
-
| '
|
|
21
|
-
| '
|
|
22
|
-
| '
|
|
23
|
-
| '
|
|
27
|
+
| 'fontStretch'
|
|
28
|
+
| 'fontStyle'
|
|
29
|
+
| 'fontSynthesis'
|
|
30
|
+
| 'fontVariant'
|
|
24
31
|
| 'fontVariantAlternates'
|
|
32
|
+
| 'fontVariantCaps'
|
|
25
33
|
| 'fontVariantLigatures'
|
|
26
|
-
| '
|
|
34
|
+
| 'fontVariantNumeric'
|
|
35
|
+
| 'fontVariantPosition'
|
|
36
|
+
| 'fontVariationSettings'
|
|
27
37
|
| 'fontWeight'
|
|
28
|
-
| '
|
|
29
|
-
| '
|
|
30
|
-
| '
|
|
31
|
-
| 'lineHeight'
|
|
38
|
+
| 'hypens'
|
|
39
|
+
| 'hyphenateCharacter'
|
|
40
|
+
| 'hyphenateLimitChars'
|
|
32
41
|
| 'letterSpacing'
|
|
42
|
+
| 'lineBreak'
|
|
43
|
+
| 'lineHeight'
|
|
44
|
+
| 'quotes'
|
|
45
|
+
| 'overflowWrap'
|
|
46
|
+
| 'textCombineUpright'
|
|
33
47
|
| 'textDecoration'
|
|
34
|
-
| 'textTransform'
|
|
35
|
-
| 'textIndent'
|
|
36
48
|
| 'textDecorationColor'
|
|
37
49
|
| 'textDecorationLine'
|
|
50
|
+
| 'textDecorationSkipInk'
|
|
38
51
|
| 'textDecorationStyle'
|
|
52
|
+
| 'textDecorationThickness'
|
|
53
|
+
| 'textEmphasis'
|
|
39
54
|
| 'textEmphasisColor'
|
|
40
55
|
| 'textEmphasisPosition'
|
|
41
56
|
| 'textEmphasisStyle'
|
|
42
|
-
| '
|
|
57
|
+
| 'textIndent'
|
|
58
|
+
| 'textJustify'
|
|
43
59
|
| 'textOrientation'
|
|
44
60
|
| 'textOverflow'
|
|
45
61
|
| 'textRendering'
|
|
62
|
+
| 'textShadow'
|
|
63
|
+
| 'textTransform'
|
|
64
|
+
| 'textUnderlineOffset'
|
|
65
|
+
| 'textUnderlinePosition'
|
|
66
|
+
| 'textWrap'
|
|
67
|
+
| 'textWrapMode'
|
|
68
|
+
| 'textWrapStyle'
|
|
69
|
+
| 'verticalAlign'
|
|
70
|
+
| 'whiteSpace'
|
|
71
|
+
| 'wordBreak'
|
|
72
|
+
| 'wordSpacing'
|
|
46
73
|
|
|
47
74
|
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
48
75
|
|
|
@@ -50,6 +50,10 @@ export interface PatternConfig<T extends PatternProperties = PatternProperties>
|
|
|
50
50
|
* The css object this pattern will generate.
|
|
51
51
|
*/
|
|
52
52
|
transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
|
|
53
|
+
/**
|
|
54
|
+
* Whether the pattern is deprecated.
|
|
55
|
+
*/
|
|
56
|
+
deprecated?: boolean | string
|
|
53
57
|
/**
|
|
54
58
|
* The jsx element name this pattern will generate.
|
|
55
59
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConditionalValue } from './conditions';
|
|
3
3
|
import type { CssProperties } from './system-types';
|
|
4
4
|
import type { Tokens } from '../tokens/index';
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@ export interface UtilityValues {
|
|
|
16
16
|
insetInlineStart: Tokens["spacing"];
|
|
17
17
|
right: Tokens["spacing"];
|
|
18
18
|
bottom: Tokens["spacing"];
|
|
19
|
-
float: "
|
|
19
|
+
float: "start" | "end" | CssProperties["float"];
|
|
20
20
|
hideFrom: Tokens["breakpoints"];
|
|
21
21
|
hideBelow: Tokens["breakpoints"];
|
|
22
22
|
flexBasis: Tokens["spacing"] | "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" | "full";
|
|
@@ -148,6 +148,7 @@ export interface UtilityValues {
|
|
|
148
148
|
transitionDuration: Tokens["durations"];
|
|
149
149
|
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
150
150
|
animation: Tokens["animations"];
|
|
151
|
+
animationName: "spin" | "ping" | "pulse" | "bounce";
|
|
151
152
|
animationTimingFunction: Tokens["easings"];
|
|
152
153
|
animationDuration: Tokens["durations"];
|
|
153
154
|
animationDelay: Tokens["durations"];
|
|
@@ -64,6 +64,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
64
64
|
* The base styles of the recipe.
|
|
65
65
|
*/
|
|
66
66
|
base?: SystemStyleObject
|
|
67
|
+
/**
|
|
68
|
+
* Whether the recipe is deprecated.
|
|
69
|
+
*/
|
|
70
|
+
deprecated?: boolean | string
|
|
67
71
|
/**
|
|
68
72
|
* The multi-variant styles of the recipe.
|
|
69
73
|
*/
|
|
@@ -141,6 +145,10 @@ export interface SlotRecipeDefinition<
|
|
|
141
145
|
* An optional class name that can be used to target slots in the DOM.
|
|
142
146
|
*/
|
|
143
147
|
className?: string
|
|
148
|
+
/**
|
|
149
|
+
* Whether the recipe is deprecated.
|
|
150
|
+
*/
|
|
151
|
+
deprecated?: boolean | string
|
|
144
152
|
/**
|
|
145
153
|
* The parts/slots of the recipe.
|
|
146
154
|
*/
|
|
@@ -429,7 +429,7 @@ animationIterationCount?: ConditionalValue<CssProperties["animationIterationCoun
|
|
|
429
429
|
*
|
|
430
430
|
* @see https://developer.mozilla.org/docs/Web/CSS/animation-name
|
|
431
431
|
*/
|
|
432
|
-
animationName?: ConditionalValue<CssProperties["animationName"] | AnyString>
|
|
432
|
+
animationName?: ConditionalValue<UtilityValues["animationName"] | CssVars | CssProperties["animationName"] | AnyString>
|
|
433
433
|
/**
|
|
434
434
|
* The **`animation-play-state`** CSS property sets whether an animation is running or paused.
|
|
435
435
|
*
|
|
@@ -66,7 +66,7 @@ export type CompositionStyleObject<Property extends string> = Nested<FilterStyle
|
|
|
66
66
|
* Jsx style props
|
|
67
67
|
* -----------------------------------------------------------------------------*/
|
|
68
68
|
interface WithCss {
|
|
69
|
-
css?: SystemStyleObject
|
|
69
|
+
css?: SystemStyleObject | SystemStyleObject[]
|
|
70
70
|
}
|
|
71
71
|
type StyleProps = SystemStyleObject & WithCss
|
|
72
72
|
|