@pandacss/studio 0.18.1 → 0.18.2

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.1",
3
+ "version": "0.18.2",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -43,12 +43,12 @@
43
43
  "react": "18.2.0",
44
44
  "react-dom": "18.2.0",
45
45
  "vite": "4.4.11",
46
- "@pandacss/config": "0.18.1",
47
- "@pandacss/logger": "0.18.1",
48
- "@pandacss/node": "0.18.1",
49
- "@pandacss/shared": "0.18.1",
50
- "@pandacss/token-dictionary": "0.18.1",
51
- "@pandacss/types": "0.18.1"
46
+ "@pandacss/config": "0.18.2",
47
+ "@pandacss/logger": "0.18.2",
48
+ "@pandacss/node": "0.18.2",
49
+ "@pandacss/shared": "0.18.2",
50
+ "@pandacss/token-dictionary": "0.18.2",
51
+ "@pandacss/types": "0.18.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "18.2.22",
@@ -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(${getValue(v)}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
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