@pandacss/generator 0.0.0-dev-20230614142625 → 0.0.0-dev-20230614164728

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/index.d.ts CHANGED
@@ -60,6 +60,14 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
60
60
  import(mod: string, file: string): string;
61
61
  export(file: string): string;
62
62
  };
63
+ studio: {
64
+ outdir: string;
65
+ logo?: string | undefined;
66
+ inject?: {
67
+ head?: string | undefined;
68
+ body?: string | undefined;
69
+ } | undefined;
70
+ };
63
71
  hash: {
64
72
  tokens: boolean | undefined;
65
73
  className: boolean | undefined;
@@ -173,6 +181,14 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
173
181
  getFnName: (jsx: string) => string;
174
182
  isEmpty: () => boolean;
175
183
  };
184
+ studio: {
185
+ outdir: string;
186
+ logo?: string | undefined;
187
+ inject?: {
188
+ head?: string | undefined;
189
+ body?: string | undefined;
190
+ } | undefined;
191
+ };
176
192
  hooks: _pandacss_types.PandaHookable;
177
193
  createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
178
194
  properties: string[];
package/dist/index.js CHANGED
@@ -2061,7 +2061,7 @@ var recipe_d_ts_default = {
2061
2061
 
2062
2062
  // src/artifacts/generated/pattern.d.ts.json
2063
2063
  var pattern_d_ts_default = {
2064
- content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\nexport type PatternConfig<T = PatternProperty> = {\n /**\n * The description of the pattern. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The JSX element rendered by the pattern\n * @default 'div'\n */\n jsxElement?: string\n /**\n * The properties of the pattern.\n */\n properties: T extends Record<string, PatternProperty> ? T : Record<string, PatternProperty>\n /**\n * The css object this pattern will generate.\n */\n transform?: (\n props: T extends Record<infer Keys, PatternProperty> ? Record<Keys, any> : Record<string, PatternProperty>,\n helpers: PatternHelpers,\n ) => SystemStyleObject\n /**\n * The jsx element name this pattern will generate.\n */\n jsx?: string\n /**\n * Whether to only generate types for the specified properties.\n * This will disallow css properties\n */\n strict?: boolean\n /**\n * @experimental\n * Disallow certain css properties for this pattern\n */\n blocklist?: LiteralUnion<CssProperty>[]\n}\n"
2064
+ content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\ntype PatternProperties = Record<string, PatternProperty>\n\ntype Props<T> = Record<LiteralUnion<keyof T>, any>\n\nexport type PatternConfig<T extends PatternProperties = PatternProperties> = {\n /**\n * The description of the pattern. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The JSX element rendered by the pattern\n * @default 'div'\n */\n jsxElement?: string\n /**\n * The properties of the pattern.\n */\n properties: T\n /**\n * The css object this pattern will generate.\n */\n transform?: (props: Props<T>, helpers: PatternHelpers) => SystemStyleObject\n /**\n * The jsx element name this pattern will generate.\n */\n jsx?: string\n /**\n * Whether to only generate types for the specified properties.\n * This will disallow css properties\n */\n strict?: boolean\n /**\n * @experimental\n * Disallow certain css properties for this pattern\n */\n blocklist?: LiteralUnion<CssProperty>[]\n}\n"
2065
2065
  };
2066
2066
 
2067
2067
  // src/artifacts/generated/parts.d.ts.json
@@ -2622,8 +2622,13 @@ var getBaseEngine = (conf) => {
2622
2622
  const isValidProperty = (0, import_shared5.memo)((key) => {
2623
2623
  return propertyMap.has(key) || (0, import_is_valid_prop3.isCssProperty)(key);
2624
2624
  });
2625
+ const studio = {
2626
+ outdir: `${config.outdir}-studio`,
2627
+ ...conf.config.studio
2628
+ };
2625
2629
  return {
2626
2630
  ...conf,
2631
+ studio,
2627
2632
  hash,
2628
2633
  prefix,
2629
2634
  tokens,
package/dist/index.mjs CHANGED
@@ -2030,7 +2030,7 @@ var recipe_d_ts_default = {
2030
2030
 
2031
2031
  // src/artifacts/generated/pattern.d.ts.json
2032
2032
  var pattern_d_ts_default = {
2033
- content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\nexport type PatternConfig<T = PatternProperty> = {\n /**\n * The description of the pattern. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The JSX element rendered by the pattern\n * @default 'div'\n */\n jsxElement?: string\n /**\n * The properties of the pattern.\n */\n properties: T extends Record<string, PatternProperty> ? T : Record<string, PatternProperty>\n /**\n * The css object this pattern will generate.\n */\n transform?: (\n props: T extends Record<infer Keys, PatternProperty> ? Record<Keys, any> : Record<string, PatternProperty>,\n helpers: PatternHelpers,\n ) => SystemStyleObject\n /**\n * The jsx element name this pattern will generate.\n */\n jsx?: string\n /**\n * Whether to only generate types for the specified properties.\n * This will disallow css properties\n */\n strict?: boolean\n /**\n * @experimental\n * Disallow certain css properties for this pattern\n */\n blocklist?: LiteralUnion<CssProperty>[]\n}\n"
2033
+ content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\ntype PatternProperties = Record<string, PatternProperty>\n\ntype Props<T> = Record<LiteralUnion<keyof T>, any>\n\nexport type PatternConfig<T extends PatternProperties = PatternProperties> = {\n /**\n * The description of the pattern. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The JSX element rendered by the pattern\n * @default 'div'\n */\n jsxElement?: string\n /**\n * The properties of the pattern.\n */\n properties: T\n /**\n * The css object this pattern will generate.\n */\n transform?: (props: Props<T>, helpers: PatternHelpers) => SystemStyleObject\n /**\n * The jsx element name this pattern will generate.\n */\n jsx?: string\n /**\n * Whether to only generate types for the specified properties.\n * This will disallow css properties\n */\n strict?: boolean\n /**\n * @experimental\n * Disallow certain css properties for this pattern\n */\n blocklist?: LiteralUnion<CssProperty>[]\n}\n"
2034
2034
  };
2035
2035
 
2036
2036
  // src/artifacts/generated/parts.d.ts.json
@@ -2597,8 +2597,13 @@ var getBaseEngine = (conf) => {
2597
2597
  const isValidProperty = memo((key) => {
2598
2598
  return propertyMap.has(key) || isCssProperty(key);
2599
2599
  });
2600
+ const studio = {
2601
+ outdir: `${config.outdir}-studio`,
2602
+ ...conf.config.studio
2603
+ };
2600
2604
  return {
2601
2605
  ...conf,
2606
+ studio,
2602
2607
  hash,
2603
2608
  prefix,
2604
2609
  tokens,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230614142625",
3
+ "version": "0.0.0-dev-20230614164728",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,17 +20,17 @@
20
20
  "pluralize": "8.0.0",
21
21
  "postcss": "8.4.24",
22
22
  "ts-pattern": "4.3.0",
23
- "@pandacss/core": "0.0.0-dev-20230614142625",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20230614142625",
25
- "@pandacss/logger": "0.0.0-dev-20230614142625",
26
- "@pandacss/shared": "0.0.0-dev-20230614142625",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230614142625",
28
- "@pandacss/types": "0.0.0-dev-20230614142625"
23
+ "@pandacss/core": "0.0.0-dev-20230614164728",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230614164728",
25
+ "@pandacss/logger": "0.0.0-dev-20230614164728",
26
+ "@pandacss/shared": "0.0.0-dev-20230614164728",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230614164728",
28
+ "@pandacss/types": "0.0.0-dev-20230614164728"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
32
  "hookable": "5.5.3",
33
- "@pandacss/fixture": "0.0.0-dev-20230614142625"
33
+ "@pandacss/fixture": "0.0.0-dev-20230614164728"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",