@pandacss/generator 0.0.0-dev-20230825123547 → 0.0.0-dev-20230825154308
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 +14 -5
- package/dist/index.mjs +14 -5
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1171,7 +1171,7 @@ var import_outdent12 = require("outdent");
|
|
|
1171
1171
|
function generateSvaFn(ctx) {
|
|
1172
1172
|
return {
|
|
1173
1173
|
js: import_outdent12.outdent`
|
|
1174
|
-
${ctx.file.import("getSlotRecipes", "../helpers")}
|
|
1174
|
+
${ctx.file.import("getSlotRecipes, splitProps", "../helpers")}
|
|
1175
1175
|
${ctx.file.import("cva", "./cva")}
|
|
1176
1176
|
|
|
1177
1177
|
export function sva(config) {
|
|
@@ -1182,13 +1182,22 @@ function generateSvaFn(ctx) {
|
|
|
1182
1182
|
return Object.fromEntries(result)
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
const
|
|
1185
|
+
const variants = config.variants ?? {};
|
|
1186
|
+
const variantKeys = Object.keys(variants);
|
|
1187
|
+
|
|
1188
|
+
function splitVariantProps(props) {
|
|
1189
|
+
return splitProps(props, variantKeys);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
const variantMap = Object.fromEntries(
|
|
1193
|
+
Object.entries(variants).map(([key, value]) => [key, Object.keys(value)])
|
|
1194
|
+
);
|
|
1186
1195
|
|
|
1187
1196
|
return Object.assign(svaFn, {
|
|
1188
1197
|
__cva__: false,
|
|
1189
|
-
variantMap
|
|
1190
|
-
variantKeys
|
|
1191
|
-
splitVariantProps
|
|
1198
|
+
variantMap,
|
|
1199
|
+
variantKeys,
|
|
1200
|
+
splitVariantProps,
|
|
1192
1201
|
})
|
|
1193
1202
|
}
|
|
1194
1203
|
`,
|
package/dist/index.mjs
CHANGED
|
@@ -1140,7 +1140,7 @@ import { outdent as outdent12 } from "outdent";
|
|
|
1140
1140
|
function generateSvaFn(ctx) {
|
|
1141
1141
|
return {
|
|
1142
1142
|
js: outdent12`
|
|
1143
|
-
${ctx.file.import("getSlotRecipes", "../helpers")}
|
|
1143
|
+
${ctx.file.import("getSlotRecipes, splitProps", "../helpers")}
|
|
1144
1144
|
${ctx.file.import("cva", "./cva")}
|
|
1145
1145
|
|
|
1146
1146
|
export function sva(config) {
|
|
@@ -1151,13 +1151,22 @@ function generateSvaFn(ctx) {
|
|
|
1151
1151
|
return Object.fromEntries(result)
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
const
|
|
1154
|
+
const variants = config.variants ?? {};
|
|
1155
|
+
const variantKeys = Object.keys(variants);
|
|
1156
|
+
|
|
1157
|
+
function splitVariantProps(props) {
|
|
1158
|
+
return splitProps(props, variantKeys);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
const variantMap = Object.fromEntries(
|
|
1162
|
+
Object.entries(variants).map(([key, value]) => [key, Object.keys(value)])
|
|
1163
|
+
);
|
|
1155
1164
|
|
|
1156
1165
|
return Object.assign(svaFn, {
|
|
1157
1166
|
__cva__: false,
|
|
1158
|
-
variantMap
|
|
1159
|
-
variantKeys
|
|
1160
|
-
splitVariantProps
|
|
1167
|
+
variantMap,
|
|
1168
|
+
variantKeys,
|
|
1169
|
+
splitVariantProps,
|
|
1161
1170
|
})
|
|
1162
1171
|
}
|
|
1163
1172
|
`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230825154308",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"pluralize": "8.0.0",
|
|
21
21
|
"postcss": "8.4.27",
|
|
22
22
|
"ts-pattern": "5.0.4",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
25
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
28
|
-
"@pandacss/types": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230825154308",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230825154308",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230825154308",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230825154308",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230825154308",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230825154308"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.30",
|
|
32
32
|
"hookable": "5.5.3",
|
|
33
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
33
|
+
"@pandacss/fixture": "0.0.0-dev-20230825154308"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|