@pandacss/generator 0.0.0-dev-20231031135158 → 0.0.0-dev-20231031144201

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
@@ -815,9 +815,9 @@ function generateCvaFn(ctx) {
815
815
  return mergeCss(variantCss, compoundVariantCss)
816
816
  }
817
817
 
818
- function merge(cvaConfig) {
819
- const override = defaults(cvaConfig)
820
- const variantKeys = uniq(override.variantKeys, Object.keys(variants))
818
+ function merge(__cva) {
819
+ const override = defaults(__cva.config)
820
+ const variantKeys = uniq(__cva.variantKeys, Object.keys(variants))
821
821
  return cva({
822
822
  base: mergeCss(base, override.base),
823
823
  variants: Object.fromEntries(
@@ -1015,7 +1015,7 @@ function generatedJsxHelpers(ctx) {
1015
1015
  export const composeCvaFn = (cvaA, cvaB) => {
1016
1016
  if (cvaA && !cvaB) return cvaA
1017
1017
  if (!cvaA && cvaB) return cvaB
1018
- if ((cvaA.__cva__ && cvaB.__cva__) || (cvaA.__recipe__ && cvaB.__recipe__)) return cvaA.merge(cvaB.config)
1018
+ if ((cvaA.__cva__ && cvaB.__cva__) || (cvaA.__recipe__ && cvaB.__recipe__)) return cvaA.merge(cvaB)
1019
1019
  const error = new TypeError('Cannot merge cva with recipe. Please use either cva or recipe.')
1020
1020
  TypeError.captureStackTrace?.(error)
1021
1021
  throw error
package/dist/index.mjs CHANGED
@@ -784,9 +784,9 @@ function generateCvaFn(ctx) {
784
784
  return mergeCss(variantCss, compoundVariantCss)
785
785
  }
786
786
 
787
- function merge(cvaConfig) {
788
- const override = defaults(cvaConfig)
789
- const variantKeys = uniq(override.variantKeys, Object.keys(variants))
787
+ function merge(__cva) {
788
+ const override = defaults(__cva.config)
789
+ const variantKeys = uniq(__cva.variantKeys, Object.keys(variants))
790
790
  return cva({
791
791
  base: mergeCss(base, override.base),
792
792
  variants: Object.fromEntries(
@@ -984,7 +984,7 @@ function generatedJsxHelpers(ctx) {
984
984
  export const composeCvaFn = (cvaA, cvaB) => {
985
985
  if (cvaA && !cvaB) return cvaA
986
986
  if (!cvaA && cvaB) return cvaB
987
- if ((cvaA.__cva__ && cvaB.__cva__) || (cvaA.__recipe__ && cvaB.__recipe__)) return cvaA.merge(cvaB.config)
987
+ if ((cvaA.__cva__ && cvaB.__cva__) || (cvaA.__recipe__ && cvaB.__recipe__)) return cvaA.merge(cvaB)
988
988
  const error = new TypeError('Cannot merge cva with recipe. Please use either cva or recipe.')
989
989
  TypeError.captureStackTrace?.(error)
990
990
  throw error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20231031135158",
3
+ "version": "0.0.0-dev-20231031144201",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,20 +32,21 @@
32
32
  "pluralize": "8.0.0",
33
33
  "postcss": "^8.4.31",
34
34
  "ts-pattern": "5.0.5",
35
- "@pandacss/core": "0.0.0-dev-20231031135158",
36
- "@pandacss/is-valid-prop": "0.0.0-dev-20231031135158",
37
- "@pandacss/logger": "0.0.0-dev-20231031135158",
38
- "@pandacss/shared": "0.0.0-dev-20231031135158",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20231031135158",
40
- "@pandacss/types": "0.0.0-dev-20231031135158"
35
+ "@pandacss/core": "0.0.0-dev-20231031144201",
36
+ "@pandacss/is-valid-prop": "0.0.0-dev-20231031144201",
37
+ "@pandacss/logger": "0.0.0-dev-20231031144201",
38
+ "@pandacss/shared": "0.0.0-dev-20231031144201",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20231031144201",
40
+ "@pandacss/types": "0.0.0-dev-20231031144201"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/pluralize": "0.0.30",
44
44
  "hookable": "5.5.3",
45
- "@pandacss/fixture": "0.0.0-dev-20231031135158"
45
+ "@pandacss/fixture": "0.0.0-dev-20231031144201"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup src/index.ts --format=esm,cjs --dts",
49
- "build-fast": "tsup src/index.ts --format=esm,cjs --no-dts"
49
+ "build-fast": "tsup src/index.ts --format=esm,cjs --no-dts",
50
+ "dev": "pnpm build-fast --watch"
50
51
  }
51
52
  }