@pandacss/generator 0.26.0 → 0.26.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/index.js CHANGED
@@ -2821,7 +2821,7 @@ var import_outdent40 = require("outdent");
2821
2821
  var import_ts_pattern11 = require("ts-pattern");
2822
2822
  function generatePropTypes(ctx) {
2823
2823
  const {
2824
- config: { strictTokens, strictPropertyValues },
2824
+ config: { strictTokens },
2825
2825
  utility
2826
2826
  } = ctx;
2827
2827
  const result = [
@@ -2937,7 +2937,13 @@ function generatePropTypes(ctx) {
2937
2937
  ).with({ strictTokens: true }, () => "ConditionalValue<WithEscapeHatch<Value>>").with({ strictPropertyValues: true }, () => "ConditionalValue<WithEscapeHatch<FilterVagueString<Key, Value>>>").otherwise(() => "ConditionalValue<Value | (string & {})>")}
2938
2938
 
2939
2939
  type PropertyTypeValue<T extends string> = T extends keyof PropertyTypes
2940
- ? PropOrCondition<T, ${strictPropertyValues && !strictTokens ? "T extends StrictableProps ? PropertyTypes[T] : PropertyTypes[T] | CssValue<T>" : "PropertyTypes[T] | CssValue<T>"}>
2940
+ ? PropOrCondition<T, ${(0, import_ts_pattern11.match)(ctx.config).with(
2941
+ { strictPropertyValues: true, strictTokens: true },
2942
+ () => "T extends StrictableProps ? PropertyTypes[T] : PropertyTypes[T]"
2943
+ ).with({ strictTokens: true }, () => "PropertyTypes[T]").with(
2944
+ { strictPropertyValues: true },
2945
+ () => "T extends StrictableProps ? PropertyTypes[T] : PropertyTypes[T] | CssValue<T>"
2946
+ ).otherwise(() => "PropertyTypes[T] | CssValue<T>")}>
2941
2947
  : never;
2942
2948
 
2943
2949
  type CssPropertyValue<T extends string> = T extends keyof CssProperties
package/dist/index.mjs CHANGED
@@ -2785,7 +2785,7 @@ import { outdent as outdent40 } from "outdent";
2785
2785
  import { match as match11 } from "ts-pattern";
2786
2786
  function generatePropTypes(ctx) {
2787
2787
  const {
2788
- config: { strictTokens, strictPropertyValues },
2788
+ config: { strictTokens },
2789
2789
  utility
2790
2790
  } = ctx;
2791
2791
  const result = [
@@ -2901,7 +2901,13 @@ function generatePropTypes(ctx) {
2901
2901
  ).with({ strictTokens: true }, () => "ConditionalValue<WithEscapeHatch<Value>>").with({ strictPropertyValues: true }, () => "ConditionalValue<WithEscapeHatch<FilterVagueString<Key, Value>>>").otherwise(() => "ConditionalValue<Value | (string & {})>")}
2902
2902
 
2903
2903
  type PropertyTypeValue<T extends string> = T extends keyof PropertyTypes
2904
- ? PropOrCondition<T, ${strictPropertyValues && !strictTokens ? "T extends StrictableProps ? PropertyTypes[T] : PropertyTypes[T] | CssValue<T>" : "PropertyTypes[T] | CssValue<T>"}>
2904
+ ? PropOrCondition<T, ${match11(ctx.config).with(
2905
+ { strictPropertyValues: true, strictTokens: true },
2906
+ () => "T extends StrictableProps ? PropertyTypes[T] : PropertyTypes[T]"
2907
+ ).with({ strictTokens: true }, () => "PropertyTypes[T]").with(
2908
+ { strictPropertyValues: true },
2909
+ () => "T extends StrictableProps ? PropertyTypes[T] : PropertyTypes[T] | CssValue<T>"
2910
+ ).otherwise(() => "PropertyTypes[T] | CssValue<T>")}>
2905
2911
  : never;
2906
2912
 
2907
2913
  type CssPropertyValue<T extends string> = T extends keyof CssProperties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
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.31",
39
39
  "ts-pattern": "5.0.5",
40
- "@pandacss/core": "0.26.0",
41
- "@pandacss/is-valid-prop": "^0.26.0",
42
- "@pandacss/logger": "0.26.0",
43
- "@pandacss/shared": "0.26.0",
44
- "@pandacss/token-dictionary": "0.26.0",
45
- "@pandacss/types": "0.26.0"
40
+ "@pandacss/core": "0.26.1",
41
+ "@pandacss/is-valid-prop": "^0.26.1",
42
+ "@pandacss/logger": "0.26.1",
43
+ "@pandacss/shared": "0.26.1",
44
+ "@pandacss/token-dictionary": "0.26.1",
45
+ "@pandacss/types": "0.26.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33",