@pandacss/studio 0.18.1 → 0.18.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -36,23 +36,22 @@
|
|
|
36
36
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ark-ui/react": "0.9.0",
|
|
40
39
|
"@astrojs/react": "2.2.1",
|
|
41
40
|
"astro": "2.9.6",
|
|
42
41
|
"javascript-stringify": "2.1.0",
|
|
43
42
|
"react": "18.2.0",
|
|
44
43
|
"react-dom": "18.2.0",
|
|
45
44
|
"vite": "4.4.11",
|
|
46
|
-
"@pandacss/config": "0.18.
|
|
47
|
-
"@pandacss/logger": "0.18.
|
|
48
|
-
"@pandacss/node": "0.18.
|
|
49
|
-
"@pandacss/shared": "0.18.
|
|
50
|
-
"@pandacss/token-dictionary": "0.18.
|
|
51
|
-
"@pandacss/types": "0.18.
|
|
45
|
+
"@pandacss/config": "0.18.3",
|
|
46
|
+
"@pandacss/logger": "0.18.3",
|
|
47
|
+
"@pandacss/node": "0.18.3",
|
|
48
|
+
"@pandacss/shared": "0.18.3",
|
|
49
|
+
"@pandacss/token-dictionary": "0.18.3",
|
|
50
|
+
"@pandacss/types": "0.18.3"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
|
-
"@types/react": "18.2.
|
|
55
|
-
"@types/react-dom": "18.2.
|
|
53
|
+
"@types/react": "18.2.37",
|
|
54
|
+
"@types/react-dom": "18.2.15",
|
|
56
55
|
"@vitejs/plugin-react": "4.0.4",
|
|
57
56
|
"execa": "7.2.0"
|
|
58
57
|
},
|
|
@@ -3,12 +3,12 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const gridConfig = {
|
|
5
5
|
transform(props, { map }) {
|
|
6
|
-
const regex = /\d+(em|px|rem|vh|vmax|vmin|vw|%)$/;
|
|
6
|
+
const regex = /\d+(cm|in|pt|em|px|rem|vh|vmax|vmin|vw|ch|lh|%)$/;
|
|
7
7
|
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", columns, minChildWidth, ...rest } = props;
|
|
8
8
|
const getValue = (v) => regex.test(v) ? v : `token(sizes.${v}, ${v})`;
|
|
9
9
|
return {
|
|
10
10
|
display: "grid",
|
|
11
|
-
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${
|
|
11
|
+
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
12
12
|
gap,
|
|
13
13
|
columnGap,
|
|
14
14
|
rowGap,
|
|
@@ -104,7 +104,7 @@ export interface Conditions {
|
|
|
104
104
|
"_groupInvalid": string
|
|
105
105
|
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate")` */
|
|
106
106
|
"_indeterminate": string
|
|
107
|
-
/** `&:required` */
|
|
107
|
+
/** `&:is(:required, [data-required], [aria-required=true])` */
|
|
108
108
|
"_required": string
|
|
109
109
|
/** `&:is(:valid, [data-valid])` */
|
|
110
110
|
"_valid": string
|
|
@@ -28,7 +28,7 @@ interface JsxFactoryOptions<TProps extends Dict> {
|
|
|
28
28
|
|
|
29
29
|
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T>, P>;
|
|
30
30
|
|
|
31
|
-
export type JsxElement<T extends ElementType, P> = T extends PandaComponent<infer A, infer B>
|
|
31
|
+
export type JsxElement<T extends ElementType, P extends Dict> = T extends PandaComponent<infer A, infer B>
|
|
32
32
|
? PandaComponent<A, Pretty<DistributiveUnion<P, B>>>
|
|
33
33
|
: PandaComponent<T, P>
|
|
34
34
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, DistributiveOmit } from './system-types';
|
|
3
|
-
|
|
4
|
-
type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
2
|
+
import type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types';
|
|
5
3
|
|
|
6
4
|
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
|
|
7
5
|
|