@pandacss/studio 0.23.0 → 0.24.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/dist/studio.d.mts CHANGED
@@ -13,4 +13,4 @@ declare function printUrls(options: {
13
13
  https: boolean;
14
14
  }): void;
15
15
 
16
- export { BuildOpts, buildStudio, previewStudio, printUrls, serveStudio };
16
+ export { type BuildOpts, buildStudio, previewStudio, printUrls, serveStudio };
package/dist/studio.d.ts CHANGED
@@ -13,4 +13,4 @@ declare function printUrls(options: {
13
13
  https: boolean;
14
14
  }): void;
15
15
 
16
- export { BuildOpts, buildStudio, previewStudio, printUrls, serveStudio };
16
+ export { type BuildOpts, buildStudio, previewStudio, printUrls, serveStudio };
package/dist/studio.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@7.1.0_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.0.1_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
2
2
  import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.23.0",
3
+ "version": "0.24.1",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
7
7
  "types": "dist/studio.d.ts",
8
8
  "sideEffects": false,
9
+ "homepage": "https://panda-css.com",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/chakra-ui/panda.git",
13
+ "directory": "packages/studio"
14
+ },
9
15
  "publishConfig": {
10
16
  "access": "public"
11
17
  },
@@ -41,12 +47,12 @@
41
47
  "react": "18.2.0",
42
48
  "react-dom": "18.2.0",
43
49
  "vite": "5.0.7",
44
- "@pandacss/config": "0.23.0",
45
- "@pandacss/logger": "0.23.0",
46
- "@pandacss/shared": "0.23.0",
47
- "@pandacss/token-dictionary": "0.23.0",
48
- "@pandacss/types": "0.23.0",
49
- "@pandacss/astro-plugin-studio": "0.23.0"
50
+ "@pandacss/config": "0.24.1",
51
+ "@pandacss/logger": "0.24.1",
52
+ "@pandacss/shared": "0.24.1",
53
+ "@pandacss/token-dictionary": "0.24.1",
54
+ "@pandacss/types": "0.24.1",
55
+ "@pandacss/astro-plugin-studio": "0.24.1"
50
56
  },
51
57
  "devDependencies": {
52
58
  "@types/react": "18.2.42",
@@ -1,29 +1,29 @@
1
1
  /* eslint-disable */
2
- interface CssRule {
2
+ interface WithConditions {
3
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.
4
+ * The css conditions to generate for the rule.
12
5
  * @example ['hover', 'focus']
13
6
  */
14
7
  conditions?: string[]
8
+ responsive?: boolean
9
+ }
10
+
11
+ export interface CssRule extends WithConditions {
15
12
  /**
16
- * Whether to generate responsive utilities.
13
+ * The css properties to generate utilities for.
14
+ * @example ['margin', 'padding']
17
15
  */
18
- responsive?: boolean
16
+ properties: {
17
+ [property: string]: Array<string | number>
18
+ }
19
19
  }
20
20
 
21
- export type RecipeRule =
22
- | '*'
23
- | ({
24
- conditions?: string[]
25
- responsive?: boolean
26
- } & { [variant: string]: boolean | string[] })
21
+ interface RecipeRuleVariants {
22
+ [variant: string]: boolean | string[]
23
+ }
24
+
25
+ export type RecipeRule = '*' | (RecipeRuleVariants & WithConditions)
26
+ export type PatternRule = '*' | CssRule
27
27
 
28
28
  export interface StaticCssOptions {
29
29
  /**
@@ -36,4 +36,10 @@ export interface StaticCssOptions {
36
36
  recipes?: {
37
37
  [recipe: string]: RecipeRule[]
38
38
  }
39
+ /**
40
+ * The css patterns to generate.
41
+ */
42
+ patterns?: {
43
+ [pattern: string]: PatternRule[]
44
+ }
39
45
  }
package/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './scripts/studio'