@pandacss/studio 0.0.0-dev-20231212195947 → 0.0.0-dev-20231212230730

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.0.0-dev-20231212195947",
3
+ "version": "0.0.0-dev-20231212230730",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -41,12 +41,12 @@
41
41
  "react": "18.2.0",
42
42
  "react-dom": "18.2.0",
43
43
  "vite": "5.0.7",
44
- "@pandacss/config": "0.0.0-dev-20231212195947",
45
- "@pandacss/logger": "0.0.0-dev-20231212195947",
46
- "@pandacss/shared": "0.0.0-dev-20231212195947",
47
- "@pandacss/token-dictionary": "0.0.0-dev-20231212195947",
48
- "@pandacss/types": "0.0.0-dev-20231212195947",
49
- "@pandacss/astro-plugin-studio": "0.0.0-dev-20231212195947"
44
+ "@pandacss/config": "0.0.0-dev-20231212230730",
45
+ "@pandacss/logger": "0.0.0-dev-20231212230730",
46
+ "@pandacss/shared": "0.0.0-dev-20231212230730",
47
+ "@pandacss/token-dictionary": "0.0.0-dev-20231212230730",
48
+ "@pandacss/types": "0.0.0-dev-20231212230730",
49
+ "@pandacss/astro-plugin-studio": "0.0.0-dev-20231212230730"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "18.2.42",
@@ -89,6 +89,8 @@ function walkObject(target, predicate, options = {}) {
89
89
  return inner(target);
90
90
  }
91
91
  function mapObject(obj, fn) {
92
+ if (Array.isArray(obj))
93
+ return obj.map(fn);
92
94
  if (!isObject(obj))
93
95
  return fn(obj);
94
96
  return walkObject(obj, (value) => fn(value));
@@ -0,0 +1,39 @@
1
+ /* eslint-disable */
2
+ interface CssRule {
3
+ /**
4
+ * The css properties to generate utilities for.
5
+ * @example ['margin', 'padding']
6
+ */
7
+ properties: {
8
+ [property: string]: string[]
9
+ }
10
+ /**
11
+ * The css conditions to generate utilities for.
12
+ * @example ['hover', 'focus']
13
+ */
14
+ conditions?: string[]
15
+ /**
16
+ * Whether to generate responsive utilities.
17
+ */
18
+ responsive?: boolean
19
+ }
20
+
21
+ export type RecipeRule =
22
+ | '*'
23
+ | ({
24
+ conditions?: string[]
25
+ responsive?: boolean
26
+ } & { [variant: string]: boolean | string[] })
27
+
28
+ export interface StaticCssOptions {
29
+ /**
30
+ * The css utility classes to generate.
31
+ */
32
+ css?: CssRule[]
33
+ /**
34
+ * The css recipes to generate.
35
+ */
36
+ recipes?: {
37
+ [recipe: string]: RecipeRule[]
38
+ }
39
+ }