@pandacss/generator 0.45.1 → 0.45.2

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
@@ -3614,12 +3614,12 @@ function generatePropTypes(ctx) {
3614
3614
  return import_outdent40.outdent`
3615
3615
  ${result.join("\n")}
3616
3616
 
3617
- type WithColorOpacityModifier<T> = T extends string ? \`$\{T}/\${string}\` : T
3617
+ type WithColorOpacityModifier<T> = [T] extends [string] ? \`$\{T}/\${string}\` & { __colorOpacityModifier?: true } : never
3618
3618
 
3619
3619
  type ImportantMark = "!" | "!important"
3620
3620
  type WhitespaceImportant = \` \${ImportantMark}\`
3621
3621
  type Important = ImportantMark | WhitespaceImportant
3622
- type WithImportant<T> = T extends string ? \`\${T}\${Important}\` & { __important?: true } : T;
3622
+ type WithImportant<T> = [T] extends [string] ? \`\${T}\${Important}\` & { __important?: true } : never
3623
3623
 
3624
3624
  /**
3625
3625
  * Only relevant when using \`strictTokens\` or \`strictPropertyValues\` in your config.
package/dist/index.mjs CHANGED
@@ -3578,12 +3578,12 @@ function generatePropTypes(ctx) {
3578
3578
  return outdent40`
3579
3579
  ${result.join("\n")}
3580
3580
 
3581
- type WithColorOpacityModifier<T> = T extends string ? \`$\{T}/\${string}\` : T
3581
+ type WithColorOpacityModifier<T> = [T] extends [string] ? \`$\{T}/\${string}\` & { __colorOpacityModifier?: true } : never
3582
3582
 
3583
3583
  type ImportantMark = "!" | "!important"
3584
3584
  type WhitespaceImportant = \` \${ImportantMark}\`
3585
3585
  type Important = ImportantMark | WhitespaceImportant
3586
- type WithImportant<T> = T extends string ? \`\${T}\${Important}\` & { __important?: true } : T;
3586
+ type WithImportant<T> = [T] extends [string] ? \`\${T}\${Important}\` & { __important?: true } : never
3587
3587
 
3588
3588
  /**
3589
3589
  * Only relevant when using \`strictTokens\` or \`strictPropertyValues\` in your config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.45.1",
3
+ "version": "0.45.2",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,12 +37,12 @@
37
37
  "pluralize": "8.0.0",
38
38
  "postcss": "8.4.41",
39
39
  "ts-pattern": "5.0.8",
40
- "@pandacss/core": "0.45.1",
41
- "@pandacss/is-valid-prop": "^0.45.1",
42
- "@pandacss/logger": "0.45.1",
43
- "@pandacss/shared": "0.45.1",
44
- "@pandacss/token-dictionary": "0.45.1",
45
- "@pandacss/types": "0.45.1"
40
+ "@pandacss/core": "0.45.2",
41
+ "@pandacss/is-valid-prop": "^0.45.2",
42
+ "@pandacss/logger": "0.45.2",
43
+ "@pandacss/shared": "0.45.2",
44
+ "@pandacss/token-dictionary": "0.45.2",
45
+ "@pandacss/types": "0.45.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33"