@pandacss/generator 0.0.0-dev-20231010194422 → 0.0.0-dev-20231010202758

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.mts CHANGED
@@ -157,8 +157,235 @@ declare namespace messages {
157
157
  };
158
158
  }
159
159
 
160
+ declare function generateResetCss(ctx: Context, scope?: string): string;
161
+
162
+ declare function generateTokenCss(ctx: Context): string;
163
+
164
+ declare function generateKeyframeCss(ctx: Context): string;
165
+
160
166
  declare const createGenerator: (conf: ConfigResultWithHooks) => {
161
167
  getArtifacts: () => _pandacss_types.Artifact[];
168
+ getStaticCss: (ctx: {
169
+ patterns: {
170
+ keys: string[];
171
+ getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
172
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
173
+ getNames: (name: string) => {
174
+ upperName: string;
175
+ baseName: string;
176
+ dashName: string;
177
+ styleFnName: string;
178
+ jsxName: string;
179
+ };
180
+ details: {
181
+ props: string[];
182
+ blocklistType: string;
183
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
184
+ type: "pattern";
185
+ match: RegExp;
186
+ jsx: (string | RegExp)[];
187
+ upperName: string;
188
+ baseName: string;
189
+ dashName: string;
190
+ styleFnName: string;
191
+ jsxName: string;
192
+ }[];
193
+ find: (jsxName: string) => string;
194
+ filter: (jsxName: string) => {
195
+ props: string[];
196
+ blocklistType: string;
197
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
198
+ type: "pattern";
199
+ match: RegExp;
200
+ jsx: (string | RegExp)[];
201
+ upperName: string;
202
+ baseName: string;
203
+ dashName: string;
204
+ styleFnName: string;
205
+ jsxName: string;
206
+ }[];
207
+ isEmpty: () => boolean;
208
+ };
209
+ jsx: {
210
+ factoryName: string;
211
+ upperName: string;
212
+ typeName: string;
213
+ componentName: string;
214
+ framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
215
+ styleProps: "all" | "minimal" | "none";
216
+ };
217
+ paths: {
218
+ get: (file?: string | undefined) => string[];
219
+ root: string[];
220
+ css: string[];
221
+ token: string[];
222
+ types: string[];
223
+ recipe: string[];
224
+ pattern: string[];
225
+ chunk: string[];
226
+ outCss: string[];
227
+ jsx: string[];
228
+ };
229
+ file: {
230
+ ext(file: string): string;
231
+ extDts(file: string): string;
232
+ __extDts(file: string): string;
233
+ import(mod: string, file: string): string;
234
+ importType(mod: string, file: string): string;
235
+ exportType(mod: string, file: string): string;
236
+ exportStar(file: string): string;
237
+ exportTypeStar(file: string): string;
238
+ isTypeFile(file: string): boolean;
239
+ };
240
+ isTemplateLiteralSyntax: boolean;
241
+ studio: {
242
+ outdir: string;
243
+ logo?: string | undefined;
244
+ inject?: {
245
+ head?: string | undefined;
246
+ body?: string | undefined;
247
+ } | undefined;
248
+ };
249
+ hash: {
250
+ tokens: boolean | undefined;
251
+ className: boolean | undefined;
252
+ };
253
+ prefix: {
254
+ tokens: string | undefined;
255
+ className: string | undefined;
256
+ };
257
+ tokens: _pandacss_token_dictionary.TokenDictionary;
258
+ utility: _pandacss_core.Utility;
259
+ properties: string[];
260
+ isValidProperty: (key: string) => boolean;
261
+ recipes: _pandacss_core.Recipes;
262
+ conditions: _pandacss_core.Conditions;
263
+ createSheetContext: () => _pandacss_core.StylesheetContext;
264
+ createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
265
+ layers: _pandacss_types.CascadeLayers;
266
+ isValidLayerRule: (layerRule: string) => boolean;
267
+ layerString: string;
268
+ layerNames: string[];
269
+ hooks: _pandacss_types.PandaHookable;
270
+ path: string;
271
+ config: _pandacss_types.UserConfig;
272
+ tsconfig?: TSConfig | undefined;
273
+ tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
274
+ tsconfigFile?: string | undefined;
275
+ dependencies: string[];
276
+ }) => string;
277
+ getResetCss: typeof generateResetCss;
278
+ getTokenCss: typeof generateTokenCss;
279
+ getKeyframeCss: typeof generateKeyframeCss;
280
+ getGlobalCss: (ctx: {
281
+ patterns: {
282
+ keys: string[];
283
+ getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
284
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
285
+ getNames: (name: string) => {
286
+ upperName: string;
287
+ baseName: string;
288
+ dashName: string;
289
+ styleFnName: string;
290
+ jsxName: string;
291
+ };
292
+ details: {
293
+ props: string[];
294
+ blocklistType: string;
295
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
296
+ type: "pattern";
297
+ match: RegExp;
298
+ jsx: (string | RegExp)[];
299
+ upperName: string;
300
+ baseName: string;
301
+ dashName: string;
302
+ styleFnName: string;
303
+ jsxName: string;
304
+ }[];
305
+ find: (jsxName: string) => string;
306
+ filter: (jsxName: string) => {
307
+ props: string[];
308
+ blocklistType: string;
309
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
310
+ type: "pattern";
311
+ match: RegExp;
312
+ jsx: (string | RegExp)[];
313
+ upperName: string;
314
+ baseName: string;
315
+ dashName: string;
316
+ styleFnName: string;
317
+ jsxName: string;
318
+ }[];
319
+ isEmpty: () => boolean;
320
+ };
321
+ jsx: {
322
+ factoryName: string;
323
+ upperName: string;
324
+ typeName: string;
325
+ componentName: string;
326
+ framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
327
+ styleProps: "all" | "minimal" | "none";
328
+ };
329
+ paths: {
330
+ get: (file?: string | undefined) => string[];
331
+ root: string[];
332
+ css: string[];
333
+ token: string[];
334
+ types: string[];
335
+ recipe: string[];
336
+ pattern: string[];
337
+ chunk: string[];
338
+ outCss: string[];
339
+ jsx: string[];
340
+ };
341
+ file: {
342
+ ext(file: string): string;
343
+ extDts(file: string): string;
344
+ __extDts(file: string): string;
345
+ import(mod: string, file: string): string;
346
+ importType(mod: string, file: string): string;
347
+ exportType(mod: string, file: string): string;
348
+ exportStar(file: string): string;
349
+ exportTypeStar(file: string): string;
350
+ isTypeFile(file: string): boolean;
351
+ };
352
+ isTemplateLiteralSyntax: boolean;
353
+ studio: {
354
+ outdir: string;
355
+ logo?: string | undefined;
356
+ inject?: {
357
+ head?: string | undefined;
358
+ body?: string | undefined;
359
+ } | undefined;
360
+ };
361
+ hash: {
362
+ tokens: boolean | undefined;
363
+ className: boolean | undefined;
364
+ };
365
+ prefix: {
366
+ tokens: string | undefined;
367
+ className: string | undefined;
368
+ };
369
+ tokens: _pandacss_token_dictionary.TokenDictionary;
370
+ utility: _pandacss_core.Utility;
371
+ properties: string[];
372
+ isValidProperty: (key: string) => boolean;
373
+ recipes: _pandacss_core.Recipes;
374
+ conditions: _pandacss_core.Conditions;
375
+ createSheetContext: () => _pandacss_core.StylesheetContext;
376
+ createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
377
+ layers: _pandacss_types.CascadeLayers;
378
+ isValidLayerRule: (layerRule: string) => boolean;
379
+ layerString: string;
380
+ layerNames: string[];
381
+ hooks: _pandacss_types.PandaHookable;
382
+ path: string;
383
+ config: _pandacss_types.UserConfig;
384
+ tsconfig?: TSConfig | undefined;
385
+ tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
386
+ tsconfigFile?: string | undefined;
387
+ dependencies: string[];
388
+ }) => string;
162
389
  getCss: (options: {
163
390
  files: string[];
164
391
  resolve?: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -157,8 +157,235 @@ declare namespace messages {
157
157
  };
158
158
  }
159
159
 
160
+ declare function generateResetCss(ctx: Context, scope?: string): string;
161
+
162
+ declare function generateTokenCss(ctx: Context): string;
163
+
164
+ declare function generateKeyframeCss(ctx: Context): string;
165
+
160
166
  declare const createGenerator: (conf: ConfigResultWithHooks) => {
161
167
  getArtifacts: () => _pandacss_types.Artifact[];
168
+ getStaticCss: (ctx: {
169
+ patterns: {
170
+ keys: string[];
171
+ getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
172
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
173
+ getNames: (name: string) => {
174
+ upperName: string;
175
+ baseName: string;
176
+ dashName: string;
177
+ styleFnName: string;
178
+ jsxName: string;
179
+ };
180
+ details: {
181
+ props: string[];
182
+ blocklistType: string;
183
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
184
+ type: "pattern";
185
+ match: RegExp;
186
+ jsx: (string | RegExp)[];
187
+ upperName: string;
188
+ baseName: string;
189
+ dashName: string;
190
+ styleFnName: string;
191
+ jsxName: string;
192
+ }[];
193
+ find: (jsxName: string) => string;
194
+ filter: (jsxName: string) => {
195
+ props: string[];
196
+ blocklistType: string;
197
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
198
+ type: "pattern";
199
+ match: RegExp;
200
+ jsx: (string | RegExp)[];
201
+ upperName: string;
202
+ baseName: string;
203
+ dashName: string;
204
+ styleFnName: string;
205
+ jsxName: string;
206
+ }[];
207
+ isEmpty: () => boolean;
208
+ };
209
+ jsx: {
210
+ factoryName: string;
211
+ upperName: string;
212
+ typeName: string;
213
+ componentName: string;
214
+ framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
215
+ styleProps: "all" | "minimal" | "none";
216
+ };
217
+ paths: {
218
+ get: (file?: string | undefined) => string[];
219
+ root: string[];
220
+ css: string[];
221
+ token: string[];
222
+ types: string[];
223
+ recipe: string[];
224
+ pattern: string[];
225
+ chunk: string[];
226
+ outCss: string[];
227
+ jsx: string[];
228
+ };
229
+ file: {
230
+ ext(file: string): string;
231
+ extDts(file: string): string;
232
+ __extDts(file: string): string;
233
+ import(mod: string, file: string): string;
234
+ importType(mod: string, file: string): string;
235
+ exportType(mod: string, file: string): string;
236
+ exportStar(file: string): string;
237
+ exportTypeStar(file: string): string;
238
+ isTypeFile(file: string): boolean;
239
+ };
240
+ isTemplateLiteralSyntax: boolean;
241
+ studio: {
242
+ outdir: string;
243
+ logo?: string | undefined;
244
+ inject?: {
245
+ head?: string | undefined;
246
+ body?: string | undefined;
247
+ } | undefined;
248
+ };
249
+ hash: {
250
+ tokens: boolean | undefined;
251
+ className: boolean | undefined;
252
+ };
253
+ prefix: {
254
+ tokens: string | undefined;
255
+ className: string | undefined;
256
+ };
257
+ tokens: _pandacss_token_dictionary.TokenDictionary;
258
+ utility: _pandacss_core.Utility;
259
+ properties: string[];
260
+ isValidProperty: (key: string) => boolean;
261
+ recipes: _pandacss_core.Recipes;
262
+ conditions: _pandacss_core.Conditions;
263
+ createSheetContext: () => _pandacss_core.StylesheetContext;
264
+ createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
265
+ layers: _pandacss_types.CascadeLayers;
266
+ isValidLayerRule: (layerRule: string) => boolean;
267
+ layerString: string;
268
+ layerNames: string[];
269
+ hooks: _pandacss_types.PandaHookable;
270
+ path: string;
271
+ config: _pandacss_types.UserConfig;
272
+ tsconfig?: TSConfig | undefined;
273
+ tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
274
+ tsconfigFile?: string | undefined;
275
+ dependencies: string[];
276
+ }) => string;
277
+ getResetCss: typeof generateResetCss;
278
+ getTokenCss: typeof generateTokenCss;
279
+ getKeyframeCss: typeof generateKeyframeCss;
280
+ getGlobalCss: (ctx: {
281
+ patterns: {
282
+ keys: string[];
283
+ getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
284
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
285
+ getNames: (name: string) => {
286
+ upperName: string;
287
+ baseName: string;
288
+ dashName: string;
289
+ styleFnName: string;
290
+ jsxName: string;
291
+ };
292
+ details: {
293
+ props: string[];
294
+ blocklistType: string;
295
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
296
+ type: "pattern";
297
+ match: RegExp;
298
+ jsx: (string | RegExp)[];
299
+ upperName: string;
300
+ baseName: string;
301
+ dashName: string;
302
+ styleFnName: string;
303
+ jsxName: string;
304
+ }[];
305
+ find: (jsxName: string) => string;
306
+ filter: (jsxName: string) => {
307
+ props: string[];
308
+ blocklistType: string;
309
+ config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
310
+ type: "pattern";
311
+ match: RegExp;
312
+ jsx: (string | RegExp)[];
313
+ upperName: string;
314
+ baseName: string;
315
+ dashName: string;
316
+ styleFnName: string;
317
+ jsxName: string;
318
+ }[];
319
+ isEmpty: () => boolean;
320
+ };
321
+ jsx: {
322
+ factoryName: string;
323
+ upperName: string;
324
+ typeName: string;
325
+ componentName: string;
326
+ framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
327
+ styleProps: "all" | "minimal" | "none";
328
+ };
329
+ paths: {
330
+ get: (file?: string | undefined) => string[];
331
+ root: string[];
332
+ css: string[];
333
+ token: string[];
334
+ types: string[];
335
+ recipe: string[];
336
+ pattern: string[];
337
+ chunk: string[];
338
+ outCss: string[];
339
+ jsx: string[];
340
+ };
341
+ file: {
342
+ ext(file: string): string;
343
+ extDts(file: string): string;
344
+ __extDts(file: string): string;
345
+ import(mod: string, file: string): string;
346
+ importType(mod: string, file: string): string;
347
+ exportType(mod: string, file: string): string;
348
+ exportStar(file: string): string;
349
+ exportTypeStar(file: string): string;
350
+ isTypeFile(file: string): boolean;
351
+ };
352
+ isTemplateLiteralSyntax: boolean;
353
+ studio: {
354
+ outdir: string;
355
+ logo?: string | undefined;
356
+ inject?: {
357
+ head?: string | undefined;
358
+ body?: string | undefined;
359
+ } | undefined;
360
+ };
361
+ hash: {
362
+ tokens: boolean | undefined;
363
+ className: boolean | undefined;
364
+ };
365
+ prefix: {
366
+ tokens: string | undefined;
367
+ className: string | undefined;
368
+ };
369
+ tokens: _pandacss_token_dictionary.TokenDictionary;
370
+ utility: _pandacss_core.Utility;
371
+ properties: string[];
372
+ isValidProperty: (key: string) => boolean;
373
+ recipes: _pandacss_core.Recipes;
374
+ conditions: _pandacss_core.Conditions;
375
+ createSheetContext: () => _pandacss_core.StylesheetContext;
376
+ createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
377
+ layers: _pandacss_types.CascadeLayers;
378
+ isValidLayerRule: (layerRule: string) => boolean;
379
+ layerString: string;
380
+ layerNames: string[];
381
+ hooks: _pandacss_types.PandaHookable;
382
+ path: string;
383
+ config: _pandacss_types.UserConfig;
384
+ tsconfig?: TSConfig | undefined;
385
+ tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
386
+ tsconfigFile?: string | undefined;
387
+ dependencies: string[];
388
+ }) => string;
162
389
  getCss: (options: {
163
390
  files: string[];
164
391
  resolve?: boolean | undefined;
package/dist/index.js CHANGED
@@ -3611,8 +3611,16 @@ var createGenerator = (conf) => {
3611
3611
  return {
3612
3612
  ...ctx,
3613
3613
  getArtifacts: generateArtifacts(ctx),
3614
+ //
3615
+ getStaticCss: generateStaticCss,
3616
+ getResetCss: generateResetCss,
3617
+ getTokenCss: generateTokenCss,
3618
+ getKeyframeCss: generateKeyframeCss,
3619
+ getGlobalCss: generateGlobalCss,
3620
+ //
3614
3621
  getCss: generateFlattenedCss(ctx),
3615
3622
  getParserCss: generateParserCss(ctx),
3623
+ //
3616
3624
  messages: getMessages(ctx),
3617
3625
  parserOptions: {
3618
3626
  importMap: getImportMap(config.outdir.replace(relativeBaseUrl, ""), config.importMap),
package/dist/index.mjs CHANGED
@@ -3586,8 +3586,16 @@ var createGenerator = (conf) => {
3586
3586
  return {
3587
3587
  ...ctx,
3588
3588
  getArtifacts: generateArtifacts(ctx),
3589
+ //
3590
+ getStaticCss: generateStaticCss,
3591
+ getResetCss: generateResetCss,
3592
+ getTokenCss: generateTokenCss,
3593
+ getKeyframeCss: generateKeyframeCss,
3594
+ getGlobalCss: generateGlobalCss,
3595
+ //
3589
3596
  getCss: generateFlattenedCss(ctx),
3590
3597
  getParserCss: generateParserCss(ctx),
3598
+ //
3591
3599
  messages: getMessages(ctx),
3592
3600
  parserOptions: {
3593
3601
  importMap: getImportMap(config.outdir.replace(relativeBaseUrl, ""), config.importMap),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20231010194422",
3
+ "version": "0.0.0-dev-20231010202758",
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.27",
22
22
  "ts-pattern": "5.0.5",
23
- "@pandacss/core": "0.0.0-dev-20231010194422",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20231010194422",
25
- "@pandacss/logger": "0.0.0-dev-20231010194422",
26
- "@pandacss/shared": "0.0.0-dev-20231010194422",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20231010194422",
28
- "@pandacss/types": "0.0.0-dev-20231010194422"
23
+ "@pandacss/core": "0.0.0-dev-20231010202758",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20231010202758",
25
+ "@pandacss/logger": "0.0.0-dev-20231010202758",
26
+ "@pandacss/shared": "0.0.0-dev-20231010202758",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20231010202758",
28
+ "@pandacss/types": "0.0.0-dev-20231010202758"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.30",
32
32
  "hookable": "5.5.3",
33
- "@pandacss/fixture": "0.0.0-dev-20231010194422"
33
+ "@pandacss/fixture": "0.0.0-dev-20231010202758"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",