@pandacss/generator 0.0.0-dev-20230318185939 → 0.0.0-dev-20230321102146

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
@@ -1091,7 +1091,7 @@ function generateReactJsxPattern(ctx) {
1091
1091
  const { typeName, factoryName } = ctx.jsx;
1092
1092
  return ctx.patterns.details.map((pattern) => {
1093
1093
  const { upperName, styleFnName, dashName, jsxName, props, blocklistType } = pattern;
1094
- const { description } = pattern.config;
1094
+ const { description, jsxElement = "div" } = pattern.config;
1095
1095
  return {
1096
1096
  name: dashName,
1097
1097
  js: import_outdent17.outdent`
@@ -1103,13 +1103,13 @@ function generateReactJsxPattern(ctx) {
1103
1103
  ${(0, import_ts_pattern3.match)(props.length).with(
1104
1104
  0,
1105
1105
  () => import_outdent17.outdent`
1106
- return createElement(${factoryName}.div, { ref, ...props })
1106
+ return createElement(${factoryName}.${jsxElement}, { ref, ...props })
1107
1107
  `
1108
1108
  ).otherwise(
1109
1109
  () => import_outdent17.outdent`
1110
1110
  const { ${props.join(", ")}, ...restProps } = props
1111
1111
  const styleProps = ${styleFnName}({${props.join(", ")}})
1112
- return createElement(${factoryName}.div, { ref, ...styleProps, ...restProps })
1112
+ return createElement(${factoryName}.${jsxElement}, { ref, ...styleProps, ...restProps })
1113
1113
  `
1114
1114
  )}
1115
1115
  })
package/dist/index.mjs CHANGED
@@ -1060,7 +1060,7 @@ function generateReactJsxPattern(ctx) {
1060
1060
  const { typeName, factoryName } = ctx.jsx;
1061
1061
  return ctx.patterns.details.map((pattern) => {
1062
1062
  const { upperName, styleFnName, dashName, jsxName, props, blocklistType } = pattern;
1063
- const { description } = pattern.config;
1063
+ const { description, jsxElement = "div" } = pattern.config;
1064
1064
  return {
1065
1065
  name: dashName,
1066
1066
  js: outdent17`
@@ -1072,13 +1072,13 @@ function generateReactJsxPattern(ctx) {
1072
1072
  ${match3(props.length).with(
1073
1073
  0,
1074
1074
  () => outdent17`
1075
- return createElement(${factoryName}.div, { ref, ...props })
1075
+ return createElement(${factoryName}.${jsxElement}, { ref, ...props })
1076
1076
  `
1077
1077
  ).otherwise(
1078
1078
  () => outdent17`
1079
1079
  const { ${props.join(", ")}, ...restProps } = props
1080
1080
  const styleProps = ${styleFnName}({${props.join(", ")}})
1081
- return createElement(${factoryName}.div, { ref, ...styleProps, ...restProps })
1081
+ return createElement(${factoryName}.${jsxElement}, { ref, ...styleProps, ...restProps })
1082
1082
  `
1083
1083
  )}
1084
1084
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230318185939",
3
+ "version": "0.0.0-dev-20230321102146",
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.21",
22
22
  "ts-pattern": "4.2.1",
23
- "@pandacss/core": "0.0.0-dev-20230318185939",
24
- "@pandacss/logger": "0.0.0-dev-20230318185939",
25
- "@pandacss/is-valid-prop": "0.0.0-dev-20230318185939",
26
- "@pandacss/shared": "0.0.0-dev-20230318185939",
27
- "@pandacss/types": "0.0.0-dev-20230318185939",
28
- "@pandacss/token-dictionary": "0.0.0-dev-20230318185939"
23
+ "@pandacss/core": "0.0.0-dev-20230321102146",
24
+ "@pandacss/logger": "0.0.0-dev-20230321102146",
25
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230321102146",
26
+ "@pandacss/shared": "0.0.0-dev-20230321102146",
27
+ "@pandacss/types": "0.0.0-dev-20230321102146",
28
+ "@pandacss/token-dictionary": "0.0.0-dev-20230321102146"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
- "@pandacss/fixture": "0.0.0-dev-20230318185939"
32
+ "@pandacss/fixture": "0.0.0-dev-20230321102146"
33
33
  },
34
34
  "scripts": {
35
35
  "prebuild": "tsx scripts/prebuild.ts",