@pandacss/generator 0.0.0-dev-20230901181122 → 0.0.0-dev-20230904084900

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.js CHANGED
@@ -558,7 +558,9 @@ function generateConditions(ctx) {
558
558
  ${ctx.file.importType("AnySelector, Selectors", "./selectors")}
559
559
 
560
560
  export type Conditions = {
561
- ${keys.map((key) => ` ${JSON.stringify(key)}: string`).join("\n")}
561
+ ${keys.map(
562
+ (key) => ` ${key === "base" ? `/** The base (=no conditions) styles to apply */` : ctx.conditions.get(key) ? `/** \`${ctx.conditions.get(key)}\` */` : ""}${JSON.stringify(key)}: string`
563
+ ).join("\n")}
562
564
  }
563
565
 
564
566
  export type Condition = keyof Conditions
package/dist/index.mjs CHANGED
@@ -527,7 +527,9 @@ function generateConditions(ctx) {
527
527
  ${ctx.file.importType("AnySelector, Selectors", "./selectors")}
528
528
 
529
529
  export type Conditions = {
530
- ${keys.map((key) => ` ${JSON.stringify(key)}: string`).join("\n")}
530
+ ${keys.map(
531
+ (key) => ` ${key === "base" ? `/** The base (=no conditions) styles to apply */` : ctx.conditions.get(key) ? `/** \`${ctx.conditions.get(key)}\` */` : ""}${JSON.stringify(key)}: string`
532
+ ).join("\n")}
531
533
  }
532
534
 
533
535
  export type Condition = keyof Conditions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230901181122",
3
+ "version": "0.0.0-dev-20230904084900",
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.4",
23
- "@pandacss/core": "0.0.0-dev-20230901181122",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20230901181122",
25
- "@pandacss/logger": "0.0.0-dev-20230901181122",
26
- "@pandacss/shared": "0.0.0-dev-20230901181122",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230901181122",
28
- "@pandacss/types": "0.0.0-dev-20230901181122"
23
+ "@pandacss/core": "0.0.0-dev-20230904084900",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230904084900",
25
+ "@pandacss/logger": "0.0.0-dev-20230904084900",
26
+ "@pandacss/shared": "0.0.0-dev-20230904084900",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230904084900",
28
+ "@pandacss/types": "0.0.0-dev-20230904084900"
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-20230901181122"
33
+ "@pandacss/fixture": "0.0.0-dev-20230904084900"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",