@pandacss/generator 0.34.2 → 0.35.0

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
@@ -827,12 +827,15 @@ function generateSvaFn(ctx) {
827
827
  js: import_outdent12.outdent`
828
828
  ${ctx.file.import("getSlotRecipes, memo, splitProps", "../helpers")}
829
829
  ${ctx.file.import("cva", "./cva")}
830
+ ${ctx.file.import("cx", "./cx")}
831
+
832
+ const slotClass = (className, slot) => className + '__' + slot
830
833
 
831
834
  export function sva(config) {
832
835
  const slots = Object.entries(getSlotRecipes(config)).map(([slot, slotCva]) => [slot, cva(slotCva)])
833
836
 
834
837
  function svaFn(props) {
835
- const result = slots.map(([slot, cvaFn]) => [slot, cvaFn(props)])
838
+ const result = slots.map(([slot, cvaFn]) => [slot, cx(cvaFn(props), config.className && slotClass(config.className, slot))])
836
839
  return Object.fromEntries(result)
837
840
  }
838
841
 
@@ -876,7 +879,7 @@ function generateTokenJs(ctx) {
876
879
  const map = /* @__PURE__ */ new Map();
877
880
  tokens.allTokens.forEach((token) => {
878
881
  const { varRef, isVirtual } = token.extensions;
879
- const value = token.isConditional || isVirtual ? varRef : token.value;
882
+ const value = isVirtual || token.extensions.condition !== "base" ? varRef : token.value;
880
883
  map.set(token.name, { value, variable: varRef });
881
884
  });
882
885
  const obj = Object.fromEntries(map);
@@ -937,9 +940,10 @@ function generatePreactJsxFactory(ctx) {
937
940
 
938
941
  const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
939
942
  const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
943
+ const __base__ = Dynamic.__base__ || Dynamic
940
944
 
941
945
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
942
- const { as: Element = Dynamic.__base__ || Dynamic, children, ...restProps } = props
946
+ const { as: Element = __base__, children, ...restProps } = props
943
947
 
944
948
 
945
949
  const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
@@ -971,11 +975,11 @@ function generatePreactJsxFactory(ctx) {
971
975
  }, combinedProps.children ?? children)
972
976
  })
973
977
 
974
- const name = getDisplayName(Dynamic)
978
+ const name = getDisplayName(__base__)
975
979
 
976
980
  ${componentName}.displayName = \`${factoryName}.\${name}\`
977
981
  ${componentName}.__cva__ = __cvaFn__
978
- ${componentName}.__base__ = Dynamic
982
+ ${componentName}.__base__ = __base__
979
983
  ${componentName}.__shouldForwardProps__ = shouldForwardProp
980
984
 
981
985
  return ${componentName}
@@ -1149,12 +1153,13 @@ function generatePreactJsxStringLiteralFactory(ctx) {
1149
1153
  ${ctx.file.import("css, cx", "../css/index")}
1150
1154
 
1151
1155
  function createStyledFn(Dynamic) {
1156
+ const __base__ = Dynamic.__base__ || Dynamic
1152
1157
  return function styledFn(template) {
1153
1158
  const styles = css.raw(template)
1154
1159
 
1155
1160
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
1156
- const { as: Element = Dynamic.__base__ || Dynamic, ...elementProps } = props
1157
-
1161
+ const { as: Element = __base__, ...elementProps } = props
1162
+
1158
1163
  function classes() {
1159
1164
  return cx(css(Dynamic.__styles__, styles), elementProps.className)
1160
1165
  }
@@ -1166,11 +1171,11 @@ function generatePreactJsxStringLiteralFactory(ctx) {
1166
1171
  })
1167
1172
  })
1168
1173
 
1169
- const name = getDisplayName(Dynamic)
1170
-
1174
+ const name = getDisplayName(__base__)
1175
+
1171
1176
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1172
1177
  ${componentName}.__styles__ = styles
1173
- ${componentName}.__base__ = Dynamic
1178
+ ${componentName}.__base__ = __base__
1174
1179
 
1175
1180
  return ${componentName}
1176
1181
  }
@@ -1263,9 +1268,10 @@ function generateQwikJsxFactory(ctx) {
1263
1268
 
1264
1269
  const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
1265
1270
  const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
1271
+ const __base__ = Dynamic.__base__ || Dynamic
1266
1272
 
1267
1273
  const ${componentName} = function ${componentName}(props) {
1268
- const { as: Element = Dynamic.__base__ || Dynamic, children, className, ...restProps } = props
1274
+ const { as: Element = __base__, children, className, ...restProps } = props
1269
1275
 
1270
1276
  const combinedProps = Object.assign({}, defaultProps, restProps)
1271
1277
 
@@ -1296,11 +1302,11 @@ function generateQwikJsxFactory(ctx) {
1296
1302
  }, combinedProps.children ?? children)
1297
1303
  }
1298
1304
 
1299
- const name = getDisplayName(Dynamic)
1305
+ const name = getDisplayName(__base__)
1300
1306
 
1301
1307
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1302
1308
  ${componentName}.__cva__ = __cvaFn__
1303
- ${componentName}.__base__ = Dynamic
1309
+ ${componentName}.__base__ = __base__
1304
1310
  ${componentName}.__shouldForwardProps__ = shouldForwardProp
1305
1311
 
1306
1312
  return ${componentName}
@@ -1476,14 +1482,15 @@ function generateQwikJsxStringLiteralFactory(ctx) {
1476
1482
  ${ctx.file.import("css, cx", "../css/index")}
1477
1483
 
1478
1484
  function createStyledFn(Dynamic) {
1485
+ const __base__ = Dynamic.__base__ || Dynamic
1479
1486
  return function styledFn(template) {
1480
1487
  const styles = css.raw(template)
1481
-
1488
+
1482
1489
  const ${componentName} = (props) => {
1483
- const { as: Element = Dynamic.__base__ || Dynamic, ...elementProps } = props
1484
-
1490
+ const { as: Element = __base__, ...elementProps } = props
1491
+
1485
1492
  function classes() {
1486
- return cx(css(Dynamic.__styles__, styles), elementProps.className)
1493
+ return cx(css(__base__.__styles__, styles), elementProps.className)
1487
1494
  }
1488
1495
 
1489
1496
  return h(Element, {
@@ -1492,12 +1499,12 @@ function generateQwikJsxStringLiteralFactory(ctx) {
1492
1499
  })
1493
1500
  }
1494
1501
 
1495
- const name = getDisplayName(Dynamic)
1496
-
1502
+ const name = getDisplayName(__base__)
1503
+
1497
1504
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1498
1505
  ${componentName}.__styles__ = styles
1499
- ${componentName}.__base__ = Dynamic
1500
-
1506
+ ${componentName}.__base__ = __base__
1507
+
1501
1508
  return ${componentName}
1502
1509
  }
1503
1510
  }
@@ -1595,9 +1602,10 @@ function generateReactJsxFactory(ctx) {
1595
1602
 
1596
1603
  const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
1597
1604
  const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
1605
+ const __base__ = Dynamic.__base__ || Dynamic
1598
1606
 
1599
1607
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
1600
- const { as: Element = Dynamic.__base__ || Dynamic, children, ...restProps } = props
1608
+ const { as: Element = __base__, children, ...restProps } = props
1601
1609
 
1602
1610
  const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
1603
1611
 
@@ -1628,11 +1636,11 @@ function generateReactJsxFactory(ctx) {
1628
1636
  }, combinedProps.children ?? children)
1629
1637
  })
1630
1638
 
1631
- const name = getDisplayName(Dynamic)
1639
+ const name = getDisplayName(__base__)
1632
1640
 
1633
1641
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1634
1642
  ${componentName}.__cva__ = __cvaFn__
1635
- ${componentName}.__base__ = Dynamic
1643
+ ${componentName}.__base__ = __base__
1636
1644
  ${componentName}.__shouldForwardProps__ = shouldForwardProp
1637
1645
 
1638
1646
  return ${componentName}
@@ -1807,14 +1815,15 @@ function generateReactJsxStringLiteralFactory(ctx) {
1807
1815
  ${ctx.file.import("css, cx", "../css/index")}
1808
1816
 
1809
1817
  function createStyledFn(Dynamic) {
1818
+ const __base__ = Dynamic.__base__ || Dynamic
1810
1819
  return function styledFn(template) {
1811
1820
  const styles = css.raw(template)
1812
1821
 
1813
1822
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
1814
- const { as: Element = Dynamic.__base__ || Dynamic, ...elementProps } = props
1815
-
1823
+ const { as: Element = __base__, ...elementProps } = props
1824
+
1816
1825
  function classes() {
1817
- return cx(css(Dynamic.__styles__, styles), elementProps.className)
1826
+ return cx(css(__base__.__styles__, styles), elementProps.className)
1818
1827
  }
1819
1828
 
1820
1829
  return createElement(Element, {
@@ -1824,12 +1833,12 @@ function generateReactJsxStringLiteralFactory(ctx) {
1824
1833
  })
1825
1834
  })
1826
1835
 
1827
- const name = getDisplayName(Dynamic)
1828
-
1836
+ const name = getDisplayName(__base__)
1837
+
1829
1838
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1830
1839
  ${componentName}.__styles__ = styles
1831
- ${componentName}.__base__ = Dynamic
1832
-
1840
+ ${componentName}.__base__ = __base__
1841
+
1833
1842
  return ${componentName}
1834
1843
  }
1835
1844
  }
@@ -2810,7 +2819,7 @@ var pattern_d_ts_default = {
2810
2819
 
2811
2820
  // src/artifacts/generated/recipe.d.ts.json
2812
2821
  var recipe_d_ts_default = {
2813
- content: "import type { RecipeRule } from './static-css'\nimport type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types'\n\ntype StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T\n\nexport type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>\n\nexport type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T\n ? {}\n : {\n [K in keyof T]?: StringToBoolean<keyof T[K]> | undefined\n }\n\nexport type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string\n\n/**\n * Extract the variant as optional props from a `cva` function.\n * Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.\n */\nexport type RecipeVariantProps<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Pretty<Parameters<T>[0]>\n\n/**\n * Extract the variants from a `cva` function.\n */\nexport type RecipeVariant<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>\n\ntype RecipeVariantMap<T extends RecipeVariantRecord> = {\n [K in keyof T]: Array<keyof T[K]>\n}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Standard\n * -----------------------------------------------------------------------------*/\n\nexport interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {\n __type: RecipeSelection<T>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n raw: (props?: RecipeSelection<T>) => SystemStyleObject\n config: RecipeConfig<T>\n splitVariantProps<Props extends RecipeSelection<T>>(\n props: Props,\n ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]\n}\n\ntype OneOrMore<T> = T | Array<T>\n\nexport type RecipeCompoundSelection<T> = {\n [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined\n}\n\nexport type RecipeCompoundVariant<T> = T & {\n css: SystemStyleObject\n}\n\nexport interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {\n /**\n * The base styles of the recipe.\n */\n base?: SystemStyleObject\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]\n}\n\nexport type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>\n\ninterface RecipeConfigMeta {\n /**\n * The name of the recipe.\n */\n className: string\n /**\n * The description of the recipe. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The jsx elements to track for this recipe. Can be string or Regexp.\n *\n * @default capitalize(recipe.name)\n * @example ['Button', 'Link', /Button$/]\n */\n jsx?: Array<string | RegExp>\n /**\n * Variants to pre-generate, will be include in the final `config.staticCss`\n */\n staticCss?: RecipeRule[]\n}\n\nexport interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>\n extends RecipeDefinition<T>,\n RecipeConfigMeta {}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Slot\n * -----------------------------------------------------------------------------*/\n\ntype SlotRecord<S extends string, T> = Partial<Record<S, T>>\n\nexport type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>\n\nexport type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord> = (\n props?: RecipeSelection<T>,\n) => SlotRecord<S, string>\n\nexport interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>\n extends SlotRecipeVariantFn<S, T> {\n raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]\n}\n\nexport type SlotRecipeCompoundVariant<S extends string, T> = T & {\n css: SlotRecord<S, SystemStyleObject>\n}\n\nexport interface SlotRecipeDefinition<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> {\n /**\n * The parts/slots of the recipe.\n */\n slots: S[] | Readonly<S[]>\n /**\n * The base styles of the recipe.\n */\n base?: SlotRecord<S, SystemStyleObject>\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]\n}\n\nexport type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(\n config: SlotRecipeDefinition<S, T>,\n) => SlotRecipeRuntimeFn<S, T>\n\nexport type SlotRecipeConfig<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> = SlotRecipeDefinition<S, T> & RecipeConfigMeta\n"
2822
+ content: "import type { RecipeRule } from './static-css'\nimport type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types'\n\ntype StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T\n\nexport type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>\n\nexport type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T\n ? {}\n : {\n [K in keyof T]?: StringToBoolean<keyof T[K]> | undefined\n }\n\nexport type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string\n\n/**\n * Extract the variant as optional props from a `cva` function.\n * Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.\n */\nexport type RecipeVariantProps<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Pretty<Parameters<T>[0]>\n\n/**\n * Extract the variants from a `cva` function.\n */\nexport type RecipeVariant<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>\n\ntype RecipeVariantMap<T extends RecipeVariantRecord> = {\n [K in keyof T]: Array<keyof T[K]>\n}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Standard\n * -----------------------------------------------------------------------------*/\n\nexport interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {\n __type: RecipeSelection<T>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n raw: (props?: RecipeSelection<T>) => SystemStyleObject\n config: RecipeConfig<T>\n splitVariantProps<Props extends RecipeSelection<T>>(\n props: Props,\n ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]\n}\n\ntype OneOrMore<T> = T | Array<T>\n\nexport type RecipeCompoundSelection<T> = {\n [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined\n}\n\nexport type RecipeCompoundVariant<T> = T & {\n css: SystemStyleObject\n}\n\nexport interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {\n /**\n * The base styles of the recipe.\n */\n base?: SystemStyleObject\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]\n}\n\nexport type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>\n\ninterface RecipeConfigMeta {\n /**\n * The class name of the recipe.\n */\n className: string\n /**\n * The description of the recipe. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The jsx elements to track for this recipe. Can be string or Regexp.\n *\n * @default capitalize(recipe.name)\n * @example ['Button', 'Link', /Button$/]\n */\n jsx?: Array<string | RegExp>\n /**\n * Variants to pre-generate, will be include in the final `config.staticCss`\n */\n staticCss?: RecipeRule[]\n}\n\nexport interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>\n extends RecipeDefinition<T>,\n RecipeConfigMeta {}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Slot\n * -----------------------------------------------------------------------------*/\n\ntype SlotRecord<S extends string, T> = Partial<Record<S, T>>\n\nexport type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>\n\nexport type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord> = (\n props?: RecipeSelection<T>,\n) => SlotRecord<S, string>\n\nexport interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>\n extends SlotRecipeVariantFn<S, T> {\n raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]\n}\n\nexport type SlotRecipeCompoundVariant<S extends string, T> = T & {\n css: SlotRecord<S, SystemStyleObject>\n}\n\nexport interface SlotRecipeDefinition<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> {\n /**\n * An optional class name that can be used to target slots in the DOM.\n */\n className?: string\n /**\n * The parts/slots of the recipe.\n */\n slots: S[] | Readonly<S[]>\n /**\n * The base styles of the recipe.\n */\n base?: SlotRecord<S, SystemStyleObject>\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]\n}\n\nexport type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(\n config: SlotRecipeDefinition<S, T>,\n) => SlotRecipeRuntimeFn<S, T>\n\nexport type SlotRecipeConfig<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> = SlotRecipeDefinition<S, T> & RecipeConfigMeta\n"
2814
2823
  };
2815
2824
 
2816
2825
  // src/artifacts/generated/selectors.d.ts.json
@@ -2999,7 +3008,14 @@ function generatePropTypes(ctx) {
2999
3008
  | 'wordBreak'
3000
3009
  | 'writingMode'
3001
3010
 
3002
- type WithEscapeHatch<T> = T | \`[\${string}]\`
3011
+ type WithColorOpacityModifier<T> = T extends string ? \`$\{T}/\${string}\` : T
3012
+
3013
+ type ImportantMark = "!" | "!important"
3014
+ type WhitespaceImportant = \` \${ImportantMark}\`
3015
+ type Important = ImportantMark | WhitespaceImportant
3016
+ type WithImportant<T> = T extends string ? \`\${T}\${Important}\${string}\` : T
3017
+
3018
+ type WithEscapeHatch<T> = T | \`[\${string}]\` | (T extends string ? WithColorOpacityModifier<string> | WithImportant<T> : T)
3003
3019
 
3004
3020
  type FilterVagueString<Key, Value> = Value extends boolean
3005
3021
  ? Value
package/dist/index.mjs CHANGED
@@ -791,12 +791,15 @@ function generateSvaFn(ctx) {
791
791
  js: outdent12`
792
792
  ${ctx.file.import("getSlotRecipes, memo, splitProps", "../helpers")}
793
793
  ${ctx.file.import("cva", "./cva")}
794
+ ${ctx.file.import("cx", "./cx")}
795
+
796
+ const slotClass = (className, slot) => className + '__' + slot
794
797
 
795
798
  export function sva(config) {
796
799
  const slots = Object.entries(getSlotRecipes(config)).map(([slot, slotCva]) => [slot, cva(slotCva)])
797
800
 
798
801
  function svaFn(props) {
799
- const result = slots.map(([slot, cvaFn]) => [slot, cvaFn(props)])
802
+ const result = slots.map(([slot, cvaFn]) => [slot, cx(cvaFn(props), config.className && slotClass(config.className, slot))])
800
803
  return Object.fromEntries(result)
801
804
  }
802
805
 
@@ -840,7 +843,7 @@ function generateTokenJs(ctx) {
840
843
  const map = /* @__PURE__ */ new Map();
841
844
  tokens.allTokens.forEach((token) => {
842
845
  const { varRef, isVirtual } = token.extensions;
843
- const value = token.isConditional || isVirtual ? varRef : token.value;
846
+ const value = isVirtual || token.extensions.condition !== "base" ? varRef : token.value;
844
847
  map.set(token.name, { value, variable: varRef });
845
848
  });
846
849
  const obj = Object.fromEntries(map);
@@ -901,9 +904,10 @@ function generatePreactJsxFactory(ctx) {
901
904
 
902
905
  const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
903
906
  const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
907
+ const __base__ = Dynamic.__base__ || Dynamic
904
908
 
905
909
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
906
- const { as: Element = Dynamic.__base__ || Dynamic, children, ...restProps } = props
910
+ const { as: Element = __base__, children, ...restProps } = props
907
911
 
908
912
 
909
913
  const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
@@ -935,11 +939,11 @@ function generatePreactJsxFactory(ctx) {
935
939
  }, combinedProps.children ?? children)
936
940
  })
937
941
 
938
- const name = getDisplayName(Dynamic)
942
+ const name = getDisplayName(__base__)
939
943
 
940
944
  ${componentName}.displayName = \`${factoryName}.\${name}\`
941
945
  ${componentName}.__cva__ = __cvaFn__
942
- ${componentName}.__base__ = Dynamic
946
+ ${componentName}.__base__ = __base__
943
947
  ${componentName}.__shouldForwardProps__ = shouldForwardProp
944
948
 
945
949
  return ${componentName}
@@ -1113,12 +1117,13 @@ function generatePreactJsxStringLiteralFactory(ctx) {
1113
1117
  ${ctx.file.import("css, cx", "../css/index")}
1114
1118
 
1115
1119
  function createStyledFn(Dynamic) {
1120
+ const __base__ = Dynamic.__base__ || Dynamic
1116
1121
  return function styledFn(template) {
1117
1122
  const styles = css.raw(template)
1118
1123
 
1119
1124
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
1120
- const { as: Element = Dynamic.__base__ || Dynamic, ...elementProps } = props
1121
-
1125
+ const { as: Element = __base__, ...elementProps } = props
1126
+
1122
1127
  function classes() {
1123
1128
  return cx(css(Dynamic.__styles__, styles), elementProps.className)
1124
1129
  }
@@ -1130,11 +1135,11 @@ function generatePreactJsxStringLiteralFactory(ctx) {
1130
1135
  })
1131
1136
  })
1132
1137
 
1133
- const name = getDisplayName(Dynamic)
1134
-
1138
+ const name = getDisplayName(__base__)
1139
+
1135
1140
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1136
1141
  ${componentName}.__styles__ = styles
1137
- ${componentName}.__base__ = Dynamic
1142
+ ${componentName}.__base__ = __base__
1138
1143
 
1139
1144
  return ${componentName}
1140
1145
  }
@@ -1227,9 +1232,10 @@ function generateQwikJsxFactory(ctx) {
1227
1232
 
1228
1233
  const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
1229
1234
  const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
1235
+ const __base__ = Dynamic.__base__ || Dynamic
1230
1236
 
1231
1237
  const ${componentName} = function ${componentName}(props) {
1232
- const { as: Element = Dynamic.__base__ || Dynamic, children, className, ...restProps } = props
1238
+ const { as: Element = __base__, children, className, ...restProps } = props
1233
1239
 
1234
1240
  const combinedProps = Object.assign({}, defaultProps, restProps)
1235
1241
 
@@ -1260,11 +1266,11 @@ function generateQwikJsxFactory(ctx) {
1260
1266
  }, combinedProps.children ?? children)
1261
1267
  }
1262
1268
 
1263
- const name = getDisplayName(Dynamic)
1269
+ const name = getDisplayName(__base__)
1264
1270
 
1265
1271
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1266
1272
  ${componentName}.__cva__ = __cvaFn__
1267
- ${componentName}.__base__ = Dynamic
1273
+ ${componentName}.__base__ = __base__
1268
1274
  ${componentName}.__shouldForwardProps__ = shouldForwardProp
1269
1275
 
1270
1276
  return ${componentName}
@@ -1440,14 +1446,15 @@ function generateQwikJsxStringLiteralFactory(ctx) {
1440
1446
  ${ctx.file.import("css, cx", "../css/index")}
1441
1447
 
1442
1448
  function createStyledFn(Dynamic) {
1449
+ const __base__ = Dynamic.__base__ || Dynamic
1443
1450
  return function styledFn(template) {
1444
1451
  const styles = css.raw(template)
1445
-
1452
+
1446
1453
  const ${componentName} = (props) => {
1447
- const { as: Element = Dynamic.__base__ || Dynamic, ...elementProps } = props
1448
-
1454
+ const { as: Element = __base__, ...elementProps } = props
1455
+
1449
1456
  function classes() {
1450
- return cx(css(Dynamic.__styles__, styles), elementProps.className)
1457
+ return cx(css(__base__.__styles__, styles), elementProps.className)
1451
1458
  }
1452
1459
 
1453
1460
  return h(Element, {
@@ -1456,12 +1463,12 @@ function generateQwikJsxStringLiteralFactory(ctx) {
1456
1463
  })
1457
1464
  }
1458
1465
 
1459
- const name = getDisplayName(Dynamic)
1460
-
1466
+ const name = getDisplayName(__base__)
1467
+
1461
1468
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1462
1469
  ${componentName}.__styles__ = styles
1463
- ${componentName}.__base__ = Dynamic
1464
-
1470
+ ${componentName}.__base__ = __base__
1471
+
1465
1472
  return ${componentName}
1466
1473
  }
1467
1474
  }
@@ -1559,9 +1566,10 @@ function generateReactJsxFactory(ctx) {
1559
1566
 
1560
1567
  const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn)
1561
1568
  const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp)
1569
+ const __base__ = Dynamic.__base__ || Dynamic
1562
1570
 
1563
1571
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
1564
- const { as: Element = Dynamic.__base__ || Dynamic, children, ...restProps } = props
1572
+ const { as: Element = __base__, children, ...restProps } = props
1565
1573
 
1566
1574
  const combinedProps = useMemo(() => Object.assign({}, defaultProps, restProps), [restProps])
1567
1575
 
@@ -1592,11 +1600,11 @@ function generateReactJsxFactory(ctx) {
1592
1600
  }, combinedProps.children ?? children)
1593
1601
  })
1594
1602
 
1595
- const name = getDisplayName(Dynamic)
1603
+ const name = getDisplayName(__base__)
1596
1604
 
1597
1605
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1598
1606
  ${componentName}.__cva__ = __cvaFn__
1599
- ${componentName}.__base__ = Dynamic
1607
+ ${componentName}.__base__ = __base__
1600
1608
  ${componentName}.__shouldForwardProps__ = shouldForwardProp
1601
1609
 
1602
1610
  return ${componentName}
@@ -1771,14 +1779,15 @@ function generateReactJsxStringLiteralFactory(ctx) {
1771
1779
  ${ctx.file.import("css, cx", "../css/index")}
1772
1780
 
1773
1781
  function createStyledFn(Dynamic) {
1782
+ const __base__ = Dynamic.__base__ || Dynamic
1774
1783
  return function styledFn(template) {
1775
1784
  const styles = css.raw(template)
1776
1785
 
1777
1786
  const ${componentName} = /* @__PURE__ */ forwardRef(function ${componentName}(props, ref) {
1778
- const { as: Element = Dynamic.__base__ || Dynamic, ...elementProps } = props
1779
-
1787
+ const { as: Element = __base__, ...elementProps } = props
1788
+
1780
1789
  function classes() {
1781
- return cx(css(Dynamic.__styles__, styles), elementProps.className)
1790
+ return cx(css(__base__.__styles__, styles), elementProps.className)
1782
1791
  }
1783
1792
 
1784
1793
  return createElement(Element, {
@@ -1788,12 +1797,12 @@ function generateReactJsxStringLiteralFactory(ctx) {
1788
1797
  })
1789
1798
  })
1790
1799
 
1791
- const name = getDisplayName(Dynamic)
1792
-
1800
+ const name = getDisplayName(__base__)
1801
+
1793
1802
  ${componentName}.displayName = \`${factoryName}.\${name}\`
1794
1803
  ${componentName}.__styles__ = styles
1795
- ${componentName}.__base__ = Dynamic
1796
-
1804
+ ${componentName}.__base__ = __base__
1805
+
1797
1806
  return ${componentName}
1798
1807
  }
1799
1808
  }
@@ -2774,7 +2783,7 @@ var pattern_d_ts_default = {
2774
2783
 
2775
2784
  // src/artifacts/generated/recipe.d.ts.json
2776
2785
  var recipe_d_ts_default = {
2777
- content: "import type { RecipeRule } from './static-css'\nimport type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types'\n\ntype StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T\n\nexport type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>\n\nexport type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T\n ? {}\n : {\n [K in keyof T]?: StringToBoolean<keyof T[K]> | undefined\n }\n\nexport type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string\n\n/**\n * Extract the variant as optional props from a `cva` function.\n * Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.\n */\nexport type RecipeVariantProps<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Pretty<Parameters<T>[0]>\n\n/**\n * Extract the variants from a `cva` function.\n */\nexport type RecipeVariant<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>\n\ntype RecipeVariantMap<T extends RecipeVariantRecord> = {\n [K in keyof T]: Array<keyof T[K]>\n}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Standard\n * -----------------------------------------------------------------------------*/\n\nexport interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {\n __type: RecipeSelection<T>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n raw: (props?: RecipeSelection<T>) => SystemStyleObject\n config: RecipeConfig<T>\n splitVariantProps<Props extends RecipeSelection<T>>(\n props: Props,\n ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]\n}\n\ntype OneOrMore<T> = T | Array<T>\n\nexport type RecipeCompoundSelection<T> = {\n [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined\n}\n\nexport type RecipeCompoundVariant<T> = T & {\n css: SystemStyleObject\n}\n\nexport interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {\n /**\n * The base styles of the recipe.\n */\n base?: SystemStyleObject\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]\n}\n\nexport type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>\n\ninterface RecipeConfigMeta {\n /**\n * The name of the recipe.\n */\n className: string\n /**\n * The description of the recipe. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The jsx elements to track for this recipe. Can be string or Regexp.\n *\n * @default capitalize(recipe.name)\n * @example ['Button', 'Link', /Button$/]\n */\n jsx?: Array<string | RegExp>\n /**\n * Variants to pre-generate, will be include in the final `config.staticCss`\n */\n staticCss?: RecipeRule[]\n}\n\nexport interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>\n extends RecipeDefinition<T>,\n RecipeConfigMeta {}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Slot\n * -----------------------------------------------------------------------------*/\n\ntype SlotRecord<S extends string, T> = Partial<Record<S, T>>\n\nexport type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>\n\nexport type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord> = (\n props?: RecipeSelection<T>,\n) => SlotRecord<S, string>\n\nexport interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>\n extends SlotRecipeVariantFn<S, T> {\n raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]\n}\n\nexport type SlotRecipeCompoundVariant<S extends string, T> = T & {\n css: SlotRecord<S, SystemStyleObject>\n}\n\nexport interface SlotRecipeDefinition<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> {\n /**\n * The parts/slots of the recipe.\n */\n slots: S[] | Readonly<S[]>\n /**\n * The base styles of the recipe.\n */\n base?: SlotRecord<S, SystemStyleObject>\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]\n}\n\nexport type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(\n config: SlotRecipeDefinition<S, T>,\n) => SlotRecipeRuntimeFn<S, T>\n\nexport type SlotRecipeConfig<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> = SlotRecipeDefinition<S, T> & RecipeConfigMeta\n"
2786
+ content: "import type { RecipeRule } from './static-css'\nimport type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types'\n\ntype StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T\n\nexport type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>\n\nexport type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T\n ? {}\n : {\n [K in keyof T]?: StringToBoolean<keyof T[K]> | undefined\n }\n\nexport type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string\n\n/**\n * Extract the variant as optional props from a `cva` function.\n * Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.\n */\nexport type RecipeVariantProps<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Pretty<Parameters<T>[0]>\n\n/**\n * Extract the variants from a `cva` function.\n */\nexport type RecipeVariant<\n T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,\n> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>\n\ntype RecipeVariantMap<T extends RecipeVariantRecord> = {\n [K in keyof T]: Array<keyof T[K]>\n}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Standard\n * -----------------------------------------------------------------------------*/\n\nexport interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {\n __type: RecipeSelection<T>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n raw: (props?: RecipeSelection<T>) => SystemStyleObject\n config: RecipeConfig<T>\n splitVariantProps<Props extends RecipeSelection<T>>(\n props: Props,\n ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]\n}\n\ntype OneOrMore<T> = T | Array<T>\n\nexport type RecipeCompoundSelection<T> = {\n [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined\n}\n\nexport type RecipeCompoundVariant<T> = T & {\n css: SystemStyleObject\n}\n\nexport interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {\n /**\n * The base styles of the recipe.\n */\n base?: SystemStyleObject\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]\n}\n\nexport type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>\n\ninterface RecipeConfigMeta {\n /**\n * The class name of the recipe.\n */\n className: string\n /**\n * The description of the recipe. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The jsx elements to track for this recipe. Can be string or Regexp.\n *\n * @default capitalize(recipe.name)\n * @example ['Button', 'Link', /Button$/]\n */\n jsx?: Array<string | RegExp>\n /**\n * Variants to pre-generate, will be include in the final `config.staticCss`\n */\n staticCss?: RecipeRule[]\n}\n\nexport interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>\n extends RecipeDefinition<T>,\n RecipeConfigMeta {}\n\n/* -----------------------------------------------------------------------------\n * Recipe / Slot\n * -----------------------------------------------------------------------------*/\n\ntype SlotRecord<S extends string, T> = Partial<Record<S, T>>\n\nexport type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>\n\nexport type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord> = (\n props?: RecipeSelection<T>,\n) => SlotRecord<S, string>\n\nexport interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>\n extends SlotRecipeVariantFn<S, T> {\n raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>\n variantKeys: (keyof T)[]\n variantMap: RecipeVariantMap<T>\n splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]\n}\n\nexport type SlotRecipeCompoundVariant<S extends string, T> = T & {\n css: SlotRecord<S, SystemStyleObject>\n}\n\nexport interface SlotRecipeDefinition<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> {\n /**\n * An optional class name that can be used to target slots in the DOM.\n */\n className?: string\n /**\n * The parts/slots of the recipe.\n */\n slots: S[] | Readonly<S[]>\n /**\n * The base styles of the recipe.\n */\n base?: SlotRecord<S, SystemStyleObject>\n /**\n * The multi-variant styles of the recipe.\n */\n variants?: T\n /**\n * The default variants of the recipe.\n */\n defaultVariants?: RecipeSelection<T>\n /**\n * The styles to apply when a combination of variants is selected.\n */\n compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]\n}\n\nexport type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(\n config: SlotRecipeDefinition<S, T>,\n) => SlotRecipeRuntimeFn<S, T>\n\nexport type SlotRecipeConfig<\n S extends string = string,\n T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,\n> = SlotRecipeDefinition<S, T> & RecipeConfigMeta\n"
2778
2787
  };
2779
2788
 
2780
2789
  // src/artifacts/generated/selectors.d.ts.json
@@ -2963,7 +2972,14 @@ function generatePropTypes(ctx) {
2963
2972
  | 'wordBreak'
2964
2973
  | 'writingMode'
2965
2974
 
2966
- type WithEscapeHatch<T> = T | \`[\${string}]\`
2975
+ type WithColorOpacityModifier<T> = T extends string ? \`$\{T}/\${string}\` : T
2976
+
2977
+ type ImportantMark = "!" | "!important"
2978
+ type WhitespaceImportant = \` \${ImportantMark}\`
2979
+ type Important = ImportantMark | WhitespaceImportant
2980
+ type WithImportant<T> = T extends string ? \`\${T}\${Important}\${string}\` : T
2981
+
2982
+ type WithEscapeHatch<T> = T | \`[\${string}]\` | (T extends string ? WithColorOpacityModifier<string> | WithImportant<T> : T)
2967
2983
 
2968
2984
  type FilterVagueString<Key, Value> = Value extends boolean
2969
2985
  ? Value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.34.2",
3
+ "version": "0.35.0",
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.35",
39
39
  "ts-pattern": "5.0.8",
40
- "@pandacss/core": "0.34.2",
41
- "@pandacss/is-valid-prop": "^0.34.2",
42
- "@pandacss/logger": "0.34.2",
43
- "@pandacss/shared": "0.34.2",
44
- "@pandacss/token-dictionary": "0.34.2",
45
- "@pandacss/types": "0.34.2"
40
+ "@pandacss/core": "0.35.0",
41
+ "@pandacss/is-valid-prop": "^0.35.0",
42
+ "@pandacss/logger": "0.35.0",
43
+ "@pandacss/shared": "0.35.0",
44
+ "@pandacss/token-dictionary": "0.35.0",
45
+ "@pandacss/types": "0.35.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33"