@pandacss/generator 0.0.0-dev-20230517213021 → 0.0.0-dev-20230520163700

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
@@ -834,7 +834,7 @@ function generatePreactJsxFactory(ctx) {
834
834
  ${ctx.file.import("splitProps, normalizeHTMLProps", "../helpers")}
835
835
  ${ctx.file.import("isCssProperty", "./is-valid-prop")}
836
836
 
837
- function styled(Dynamic, configOrCva = {}) {
837
+ function styledFn(Dynamic, configOrCva = {}) {
838
838
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
839
839
 
840
840
  const ${componentName} = forwardRef(function ${componentName}(props, ref) {
@@ -866,13 +866,13 @@ function generatePreactJsxFactory(ctx) {
866
866
  function createJsxFactory() {
867
867
  const cache = new Map()
868
868
 
869
- return new Proxy(styled, {
869
+ return new Proxy(styledFn, {
870
870
  apply(_, __, args) {
871
- return styled(...args)
871
+ return styledFn(...args)
872
872
  },
873
873
  get(_, el) {
874
874
  if (!cache.has(el)) {
875
- cache.set(el, styled(el))
875
+ cache.set(el, styledFn(el))
876
876
  }
877
877
  return cache.get(el)
878
878
  },
@@ -972,7 +972,7 @@ function generateReactJsxFactory(ctx) {
972
972
  ${ctx.file.import("splitProps, normalizeHTMLProps", "../helpers")}
973
973
  ${ctx.file.import("isCssProperty", "./is-valid-prop")}
974
974
 
975
- function styled(Dynamic, configOrCva = {}) {
975
+ function styledFn(Dynamic, configOrCva = {}) {
976
976
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
977
977
 
978
978
  const ${componentName} = forwardRef(function ${componentName}(props, ref) {
@@ -1004,13 +1004,13 @@ function generateReactJsxFactory(ctx) {
1004
1004
  function createJsxFactory() {
1005
1005
  const cache = new Map()
1006
1006
 
1007
- return new Proxy(styled, {
1007
+ return new Proxy(styledFn, {
1008
1008
  apply(_, __, args) {
1009
- return styled(...args)
1009
+ return styledFn(...args)
1010
1010
  },
1011
1011
  get(_, el) {
1012
1012
  if (!cache.has(el)) {
1013
- cache.set(el, styled(el))
1013
+ cache.set(el, styledFn(el))
1014
1014
  }
1015
1015
  return cache.get(el)
1016
1016
  },
@@ -1110,7 +1110,7 @@ function generateSolidJsxFactory(ctx) {
1110
1110
  ${ctx.file.import("normalizeHTMLProps", "../helpers")}
1111
1111
  ${ctx.file.import("allCssProperties", "./is-valid-prop")}
1112
1112
 
1113
- function styled(element, configOrCva = {}) {
1113
+ function styledFn(element, configOrCva = {}) {
1114
1114
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
1115
1115
 
1116
1116
  return function ${componentName}(props) {
@@ -1152,13 +1152,13 @@ function generateSolidJsxFactory(ctx) {
1152
1152
  function createJsxFactory() {
1153
1153
  const cache = new Map()
1154
1154
 
1155
- return new Proxy(styled, {
1155
+ return new Proxy(styledFn, {
1156
1156
  apply(_, __, args) {
1157
- return styled(...args)
1157
+ return styledFn(...args)
1158
1158
  },
1159
1159
  get(_, el) {
1160
1160
  if (!cache.has(el)) {
1161
- cache.set(el, styled(el))
1161
+ cache.set(el, styledFn(el))
1162
1162
  }
1163
1163
  return cache.get(el)
1164
1164
  },
@@ -1258,7 +1258,7 @@ function generateVueJsxFactory(ctx) {
1258
1258
  ${ctx.file.import("splitProps, normalizeHTMLProps", "../helpers")}
1259
1259
  ${ctx.file.import("isCssProperty", "./is-valid-prop")}
1260
1260
 
1261
- function styled(Dynamic, configOrCva = {}) {
1261
+ function styledFn(Dynamic, configOrCva = {}) {
1262
1262
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
1263
1263
 
1264
1264
  return defineComponent({
@@ -1297,13 +1297,13 @@ function generateVueJsxFactory(ctx) {
1297
1297
  function createJsxFactory() {
1298
1298
  const cache = new Map()
1299
1299
 
1300
- return new Proxy(styled, {
1300
+ return new Proxy(styledFn, {
1301
1301
  apply(_, __, args) {
1302
- return styled(...args)
1302
+ return styledFn(...args)
1303
1303
  },
1304
1304
  get(_, el) {
1305
1305
  if (!cache.has(el)) {
1306
- cache.set(el, styled(el))
1306
+ cache.set(el, styledFn(el))
1307
1307
  }
1308
1308
  return cache.get(el)
1309
1309
  },
@@ -2339,7 +2339,7 @@ var defaults = (conf) => ({
2339
2339
  ...conf,
2340
2340
  config: {
2341
2341
  cssVarRoot: ":where(:root, :host)",
2342
- jsxFactory: "panda",
2342
+ jsxFactory: "styled",
2343
2343
  outExtension: "mjs",
2344
2344
  ...conf.config
2345
2345
  }
package/dist/index.mjs CHANGED
@@ -803,7 +803,7 @@ function generatePreactJsxFactory(ctx) {
803
803
  ${ctx.file.import("splitProps, normalizeHTMLProps", "../helpers")}
804
804
  ${ctx.file.import("isCssProperty", "./is-valid-prop")}
805
805
 
806
- function styled(Dynamic, configOrCva = {}) {
806
+ function styledFn(Dynamic, configOrCva = {}) {
807
807
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
808
808
 
809
809
  const ${componentName} = forwardRef(function ${componentName}(props, ref) {
@@ -835,13 +835,13 @@ function generatePreactJsxFactory(ctx) {
835
835
  function createJsxFactory() {
836
836
  const cache = new Map()
837
837
 
838
- return new Proxy(styled, {
838
+ return new Proxy(styledFn, {
839
839
  apply(_, __, args) {
840
- return styled(...args)
840
+ return styledFn(...args)
841
841
  },
842
842
  get(_, el) {
843
843
  if (!cache.has(el)) {
844
- cache.set(el, styled(el))
844
+ cache.set(el, styledFn(el))
845
845
  }
846
846
  return cache.get(el)
847
847
  },
@@ -941,7 +941,7 @@ function generateReactJsxFactory(ctx) {
941
941
  ${ctx.file.import("splitProps, normalizeHTMLProps", "../helpers")}
942
942
  ${ctx.file.import("isCssProperty", "./is-valid-prop")}
943
943
 
944
- function styled(Dynamic, configOrCva = {}) {
944
+ function styledFn(Dynamic, configOrCva = {}) {
945
945
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
946
946
 
947
947
  const ${componentName} = forwardRef(function ${componentName}(props, ref) {
@@ -973,13 +973,13 @@ function generateReactJsxFactory(ctx) {
973
973
  function createJsxFactory() {
974
974
  const cache = new Map()
975
975
 
976
- return new Proxy(styled, {
976
+ return new Proxy(styledFn, {
977
977
  apply(_, __, args) {
978
- return styled(...args)
978
+ return styledFn(...args)
979
979
  },
980
980
  get(_, el) {
981
981
  if (!cache.has(el)) {
982
- cache.set(el, styled(el))
982
+ cache.set(el, styledFn(el))
983
983
  }
984
984
  return cache.get(el)
985
985
  },
@@ -1079,7 +1079,7 @@ function generateSolidJsxFactory(ctx) {
1079
1079
  ${ctx.file.import("normalizeHTMLProps", "../helpers")}
1080
1080
  ${ctx.file.import("allCssProperties", "./is-valid-prop")}
1081
1081
 
1082
- function styled(element, configOrCva = {}) {
1082
+ function styledFn(element, configOrCva = {}) {
1083
1083
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
1084
1084
 
1085
1085
  return function ${componentName}(props) {
@@ -1121,13 +1121,13 @@ function generateSolidJsxFactory(ctx) {
1121
1121
  function createJsxFactory() {
1122
1122
  const cache = new Map()
1123
1123
 
1124
- return new Proxy(styled, {
1124
+ return new Proxy(styledFn, {
1125
1125
  apply(_, __, args) {
1126
- return styled(...args)
1126
+ return styledFn(...args)
1127
1127
  },
1128
1128
  get(_, el) {
1129
1129
  if (!cache.has(el)) {
1130
- cache.set(el, styled(el))
1130
+ cache.set(el, styledFn(el))
1131
1131
  }
1132
1132
  return cache.get(el)
1133
1133
  },
@@ -1227,7 +1227,7 @@ function generateVueJsxFactory(ctx) {
1227
1227
  ${ctx.file.import("splitProps, normalizeHTMLProps", "../helpers")}
1228
1228
  ${ctx.file.import("isCssProperty", "./is-valid-prop")}
1229
1229
 
1230
- function styled(Dynamic, configOrCva = {}) {
1230
+ function styledFn(Dynamic, configOrCva = {}) {
1231
1231
  const cvaFn = configOrCva.__cva__ ? configOrCva : cva(configOrCva)
1232
1232
 
1233
1233
  return defineComponent({
@@ -1266,13 +1266,13 @@ function generateVueJsxFactory(ctx) {
1266
1266
  function createJsxFactory() {
1267
1267
  const cache = new Map()
1268
1268
 
1269
- return new Proxy(styled, {
1269
+ return new Proxy(styledFn, {
1270
1270
  apply(_, __, args) {
1271
- return styled(...args)
1271
+ return styledFn(...args)
1272
1272
  },
1273
1273
  get(_, el) {
1274
1274
  if (!cache.has(el)) {
1275
- cache.set(el, styled(el))
1275
+ cache.set(el, styledFn(el))
1276
1276
  }
1277
1277
  return cache.get(el)
1278
1278
  },
@@ -2308,7 +2308,7 @@ var defaults = (conf) => ({
2308
2308
  ...conf,
2309
2309
  config: {
2310
2310
  cssVarRoot: ":where(:root, :host)",
2311
- jsxFactory: "panda",
2311
+ jsxFactory: "styled",
2312
2312
  outExtension: "mjs",
2313
2313
  ...conf.config
2314
2314
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230517213021",
3
+ "version": "0.0.0-dev-20230520163700",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,16 +20,16 @@
20
20
  "pluralize": "8.0.0",
21
21
  "postcss": "8.4.23",
22
22
  "ts-pattern": "4.3.0",
23
- "@pandacss/core": "0.0.0-dev-20230517213021",
24
- "@pandacss/logger": "0.0.0-dev-20230517213021",
25
- "@pandacss/is-valid-prop": "0.0.0-dev-20230517213021",
26
- "@pandacss/shared": "0.0.0-dev-20230517213021",
27
- "@pandacss/types": "0.0.0-dev-20230517213021",
28
- "@pandacss/token-dictionary": "0.0.0-dev-20230517213021"
23
+ "@pandacss/core": "0.0.0-dev-20230520163700",
24
+ "@pandacss/logger": "0.0.0-dev-20230520163700",
25
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230520163700",
26
+ "@pandacss/shared": "0.0.0-dev-20230520163700",
27
+ "@pandacss/types": "0.0.0-dev-20230520163700",
28
+ "@pandacss/token-dictionary": "0.0.0-dev-20230520163700"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
- "@pandacss/fixture": "0.0.0-dev-20230517213021"
32
+ "@pandacss/fixture": "0.0.0-dev-20230520163700"
33
33
  },
34
34
  "scripts": {
35
35
  "prebuild": "tsx scripts/prebuild.ts",