@pandacss/studio 0.35.0 → 0.36.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/package.json +7 -7
- package/src/components/semantic-color.tsx +1 -1
- package/styled-system/patterns/aspect-ratio.d.ts +1 -1
- package/styled-system/patterns/bleed.d.ts +3 -3
- 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 +2 -2
- package/styled-system/patterns/container.d.ts +1 -1
- package/styled-system/patterns/cq.d.ts +2 -2
- package/styled-system/patterns/divider.d.ts +1 -1
- package/styled-system/patterns/flex.d.ts +8 -8
- 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 +4 -4
- package/styled-system/patterns/hstack.d.ts +3 -3
- 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 +2 -2
- package/styled-system/patterns/stack.d.ts +5 -5
- package/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/styled-system/patterns/vstack.d.ts +3 -3
- package/styled-system/patterns/wrap.d.ts +6 -6
- package/styled-system/types/conditions.d.ts +2 -6
- package/styled-system/types/prop-type.d.ts +34 -206
- package/styled-system/types/static-css.d.ts +4 -0
- package/styled-system/types/style-props.d.ts +7448 -659
- package/styled-system/types/system-types.d.ts +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.1",
|
|
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.3",
|
|
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.36.1",
|
|
52
|
+
"@pandacss/logger": "0.36.1",
|
|
53
|
+
"@pandacss/shared": "0.36.1",
|
|
54
|
+
"@pandacss/token-dictionary": "0.36.1",
|
|
55
|
+
"@pandacss/types": "0.36.1",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "0.36.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "18.2.55",
|
|
@@ -4,7 +4,7 @@ import { ColorWrapper } from './color-wrapper'
|
|
|
4
4
|
import * as context from '../lib/panda-context'
|
|
5
5
|
|
|
6
6
|
const getSemanticColorValue = (variable: string): string => {
|
|
7
|
-
const _name = variable
|
|
7
|
+
const _name = variable?.match(/var\(\s*--(.*?)\s*\)/)
|
|
8
8
|
if (!_name) return variable
|
|
9
9
|
|
|
10
10
|
const name = _name[1].replaceAll('-', '.')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface BleedProperties {
|
|
9
|
-
inline?:
|
|
10
|
-
block?:
|
|
9
|
+
inline?: SystemProperties["marginInline"]
|
|
10
|
+
block?: SystemProperties["marginBlock"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface CircleProperties {
|
|
9
|
-
size?:
|
|
9
|
+
size?: SystemProperties["width"]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface CqProperties {
|
|
9
9
|
name?: ConditionalValue<Tokens["containerNames"] | Properties["containerName"]>
|
|
10
|
-
type?:
|
|
10
|
+
type?: SystemProperties["containerType"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface FlexProperties {
|
|
9
|
-
align?:
|
|
10
|
-
justify?:
|
|
11
|
-
direction?:
|
|
12
|
-
wrap?:
|
|
13
|
-
basis?:
|
|
14
|
-
grow?:
|
|
15
|
-
shrink?:
|
|
9
|
+
align?: SystemProperties["alignItems"]
|
|
10
|
+
justify?: SystemProperties["justifyContent"]
|
|
11
|
+
direction?: SystemProperties["flexDirection"]
|
|
12
|
+
wrap?: SystemProperties["flexWrap"]
|
|
13
|
+
basis?: SystemProperties["flexBasis"]
|
|
14
|
+
grow?: SystemProperties["flexGrow"]
|
|
15
|
+
shrink?: SystemProperties["flexShrink"]
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface GridProperties {
|
|
9
|
-
gap?:
|
|
10
|
-
columnGap?:
|
|
11
|
-
rowGap?:
|
|
9
|
+
gap?: SystemProperties["gap"]
|
|
10
|
+
columnGap?: SystemProperties["gap"]
|
|
11
|
+
rowGap?: SystemProperties["gap"]
|
|
12
12
|
columns?: ConditionalValue<number>
|
|
13
13
|
minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
|
|
14
14
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface HstackProperties {
|
|
9
|
-
justify?:
|
|
10
|
-
gap?:
|
|
9
|
+
justify?: SystemProperties["justifyContent"]
|
|
10
|
+
gap?: SystemProperties["gap"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface SquareProperties {
|
|
9
|
-
size?:
|
|
9
|
+
size?: SystemProperties["width"]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface StackProperties {
|
|
9
|
-
align?:
|
|
10
|
-
justify?:
|
|
11
|
-
direction?:
|
|
12
|
-
gap?:
|
|
9
|
+
align?: SystemProperties["alignItems"]
|
|
10
|
+
justify?: SystemProperties["justifyContent"]
|
|
11
|
+
direction?: SystemProperties["flexDirection"]
|
|
12
|
+
gap?: SystemProperties["gap"]
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface VstackProperties {
|
|
9
|
-
justify?:
|
|
10
|
-
gap?:
|
|
9
|
+
justify?: SystemProperties["justifyContent"]
|
|
10
|
+
gap?: SystemProperties["gap"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
3
|
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
8
|
export interface WrapProperties {
|
|
9
|
-
gap?:
|
|
10
|
-
rowGap?:
|
|
11
|
-
columnGap?:
|
|
12
|
-
align?:
|
|
13
|
-
justify?:
|
|
9
|
+
gap?: SystemProperties["gap"]
|
|
10
|
+
rowGap?: SystemProperties["gap"]
|
|
11
|
+
columnGap?: SystemProperties["gap"]
|
|
12
|
+
align?: SystemProperties["alignItems"]
|
|
13
|
+
justify?: SystemProperties["justifyContent"]
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
|
|
@@ -256,17 +256,13 @@ export interface Conditions {
|
|
|
256
256
|
"base": string
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
export type
|
|
260
|
-
|
|
261
|
-
export type Conditional<V> =
|
|
259
|
+
export type ConditionalValue<V> =
|
|
262
260
|
| V
|
|
263
261
|
| Array<V | null>
|
|
264
262
|
| {
|
|
265
|
-
[K in keyof Conditions]?:
|
|
263
|
+
[K in keyof Conditions]?: ConditionalValue<V>
|
|
266
264
|
}
|
|
267
265
|
|
|
268
|
-
export type ConditionalValue<T> = Conditional<T>
|
|
269
|
-
|
|
270
266
|
export type Nested<P> = P & {
|
|
271
267
|
[K in Selectors]?: Nested<P>
|
|
272
268
|
} & {
|