@pandacss/studio 1.3.1 → 1.4.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/patterns/grid.mjs +1 -1
- package/styled-system/patterns/hstack.mjs +1 -1
- package/styled-system/patterns/stack.mjs +1 -1
- package/styled-system/patterns/vstack.mjs +1 -1
- package/styled-system/patterns/wrap.mjs +1 -1
- package/styled-system/styles.css +4 -2
- package/styled-system/tokens/index.mjs +12 -0
- package/styled-system/tokens/tokens.d.ts +2 -2
- package/styled-system/types/conditions.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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": "19.1.1",
|
|
49
49
|
"react-dom": "19.1.1",
|
|
50
50
|
"vite": "7.0.6",
|
|
51
|
-
"@pandacss/config": "1.
|
|
52
|
-
"@pandacss/logger": "1.
|
|
53
|
-
"@pandacss/shared": "1.
|
|
54
|
-
"@pandacss/token-dictionary": "1.
|
|
55
|
-
"@pandacss/types": "1.
|
|
56
|
-
"@pandacss/astro-plugin-studio": "1.
|
|
51
|
+
"@pandacss/config": "1.4.0",
|
|
52
|
+
"@pandacss/logger": "1.4.0",
|
|
53
|
+
"@pandacss/shared": "1.4.0",
|
|
54
|
+
"@pandacss/token-dictionary": "1.4.0",
|
|
55
|
+
"@pandacss/types": "1.4.0",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "1.4.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "18.2.55",
|
|
@@ -15,7 +15,7 @@ transform(props, { map, isCssUnit }) {
|
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
17
|
defaultValues(props) {
|
|
18
|
-
return { gap: props.columnGap || props.rowGap ? void 0 : "
|
|
18
|
+
return { gap: props.columnGap || props.rowGap ? void 0 : "8px" };
|
|
19
19
|
}}
|
|
20
20
|
|
|
21
21
|
export const getGridStyle = (styles = {}) => {
|
|
@@ -3,7 +3,7 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const wrapConfig = {
|
|
5
5
|
transform(props) {
|
|
6
|
-
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "
|
|
6
|
+
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "8px", align, justify, ...rest } = props;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexWrap: "wrap",
|
package/styled-system/styles.css
CHANGED
|
@@ -355,6 +355,7 @@
|
|
|
355
355
|
--spacing-2\.5: 0.625rem;
|
|
356
356
|
--spacing-3\.5: 0.875rem;
|
|
357
357
|
--spacing-4\.5: 1.125rem;
|
|
358
|
+
--spacing-5\.5: 1.375rem;
|
|
358
359
|
--sizes-0: 0rem;
|
|
359
360
|
--sizes-1: 0.25rem;
|
|
360
361
|
--sizes-2: 0.5rem;
|
|
@@ -390,6 +391,7 @@
|
|
|
390
391
|
--sizes-2\.5: 0.625rem;
|
|
391
392
|
--sizes-3\.5: 0.875rem;
|
|
392
393
|
--sizes-4\.5: 1.125rem;
|
|
394
|
+
--sizes-5\.5: 1.375rem;
|
|
393
395
|
--sizes-xs: 20rem;
|
|
394
396
|
--sizes-sm: 24rem;
|
|
395
397
|
--sizes-md: 28rem;
|
|
@@ -742,8 +744,8 @@
|
|
|
742
744
|
background: var(--colors-neutral-800);
|
|
743
745
|
}
|
|
744
746
|
|
|
745
|
-
.
|
|
746
|
-
gap:
|
|
747
|
+
.gap_8px {
|
|
748
|
+
gap: 8px;
|
|
747
749
|
}
|
|
748
750
|
|
|
749
751
|
.flex_1 {
|
|
@@ -471,6 +471,10 @@ const tokens = {
|
|
|
471
471
|
"value": "1.125rem",
|
|
472
472
|
"variable": "var(--spacing-4\\.5)"
|
|
473
473
|
},
|
|
474
|
+
"spacing.5.5": {
|
|
475
|
+
"value": "1.375rem",
|
|
476
|
+
"variable": "var(--spacing-5\\.5)"
|
|
477
|
+
},
|
|
474
478
|
"sizes.0": {
|
|
475
479
|
"value": "0rem",
|
|
476
480
|
"variable": "var(--sizes-0)"
|
|
@@ -611,6 +615,10 @@ const tokens = {
|
|
|
611
615
|
"value": "1.125rem",
|
|
612
616
|
"variable": "var(--sizes-4\\.5)"
|
|
613
617
|
},
|
|
618
|
+
"sizes.5.5": {
|
|
619
|
+
"value": "1.375rem",
|
|
620
|
+
"variable": "var(--sizes-5\\.5)"
|
|
621
|
+
},
|
|
614
622
|
"sizes.xs": {
|
|
615
623
|
"value": "20rem",
|
|
616
624
|
"variable": "var(--sizes-xs)"
|
|
@@ -1883,6 +1891,10 @@ const tokens = {
|
|
|
1883
1891
|
"value": "calc(var(--spacing-4\\.5) * -1)",
|
|
1884
1892
|
"variable": "var(--spacing-4\\.5)"
|
|
1885
1893
|
},
|
|
1894
|
+
"spacing.-5.5": {
|
|
1895
|
+
"value": "calc(var(--spacing-5\\.5) * -1)",
|
|
1896
|
+
"variable": "var(--spacing-5\\.5)"
|
|
1897
|
+
},
|
|
1886
1898
|
"colors.colorPalette": {
|
|
1887
1899
|
"value": "var(--colors-color-palette)",
|
|
1888
1900
|
"variable": "var(--colors-color-palette)"
|
|
@@ -27,9 +27,9 @@ export type ShadowToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "in
|
|
|
27
27
|
|
|
28
28
|
export type BlurToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
|
|
29
29
|
|
|
30
|
-
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5"
|
|
30
|
+
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5" | "-5.5"
|
|
31
31
|
|
|
32
|
-
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose" | "full" | "min" | "max" | "fit" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
|
|
32
|
+
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose" | "full" | "min" | "max" | "fit" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
|
|
33
33
|
|
|
34
34
|
export type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
|
|
35
35
|
|
|
@@ -46,7 +46,7 @@ export interface Conditions {
|
|
|
46
46
|
"_firstLetter": string
|
|
47
47
|
/** `&::first-line` */
|
|
48
48
|
"_firstLine": string
|
|
49
|
-
/**
|
|
49
|
+
/** `&::marker, &::-webkit-details-marker` */
|
|
50
50
|
"_marker": string
|
|
51
51
|
/** `&::selection` */
|
|
52
52
|
"_selection": string
|