@pandacss/node 0.0.0-dev-20221126121755 → 0.0.0-dev-20221126124930
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 +8 -4
- package/dist/index.mjs +8 -4
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -985,8 +985,8 @@ function generateRecipes(ctx) {
|
|
|
985
985
|
import_outdent17.outdent`
|
|
986
986
|
import { createCss, withoutSpace } from "../helpers"
|
|
987
987
|
|
|
988
|
-
const createRecipe = (name) => {
|
|
989
|
-
return (
|
|
988
|
+
const createRecipe = (name, defaultVariants) => {
|
|
989
|
+
return (variants) => {
|
|
990
990
|
const transform = (prop, value) => {
|
|
991
991
|
if (value === '__ignore__') {
|
|
992
992
|
return { className: name }
|
|
@@ -1005,7 +1005,11 @@ function generateRecipes(ctx) {
|
|
|
1005
1005
|
|
|
1006
1006
|
const css = createCss(context)
|
|
1007
1007
|
|
|
1008
|
-
return css({
|
|
1008
|
+
return css({
|
|
1009
|
+
[name]: '__ignore__',
|
|
1010
|
+
...defaultVariants,
|
|
1011
|
+
...variants
|
|
1012
|
+
})
|
|
1009
1013
|
}
|
|
1010
1014
|
}
|
|
1011
1015
|
`
|
|
@@ -1013,7 +1017,7 @@ function generateRecipes(ctx) {
|
|
|
1013
1017
|
const dts = [""];
|
|
1014
1018
|
Object.values(recipes).forEach((recipe) => {
|
|
1015
1019
|
js.push(import_outdent17.outdent`
|
|
1016
|
-
export const ${recipe.name} = createRecipe('${recipe.name}')
|
|
1020
|
+
export const ${recipe.name} = createRecipe('${recipe.name}', ${JSON.stringify(recipe.defaultVariants ?? {})})
|
|
1017
1021
|
`);
|
|
1018
1022
|
dts.push(import_outdent17.outdent`
|
|
1019
1023
|
import { ConditionalValue } from "../types"
|
package/dist/index.mjs
CHANGED
|
@@ -940,8 +940,8 @@ function generateRecipes(ctx) {
|
|
|
940
940
|
outdent17`
|
|
941
941
|
import { createCss, withoutSpace } from "../helpers"
|
|
942
942
|
|
|
943
|
-
const createRecipe = (name) => {
|
|
944
|
-
return (
|
|
943
|
+
const createRecipe = (name, defaultVariants) => {
|
|
944
|
+
return (variants) => {
|
|
945
945
|
const transform = (prop, value) => {
|
|
946
946
|
if (value === '__ignore__') {
|
|
947
947
|
return { className: name }
|
|
@@ -960,7 +960,11 @@ function generateRecipes(ctx) {
|
|
|
960
960
|
|
|
961
961
|
const css = createCss(context)
|
|
962
962
|
|
|
963
|
-
return css({
|
|
963
|
+
return css({
|
|
964
|
+
[name]: '__ignore__',
|
|
965
|
+
...defaultVariants,
|
|
966
|
+
...variants
|
|
967
|
+
})
|
|
964
968
|
}
|
|
965
969
|
}
|
|
966
970
|
`
|
|
@@ -968,7 +972,7 @@ function generateRecipes(ctx) {
|
|
|
968
972
|
const dts = [""];
|
|
969
973
|
Object.values(recipes).forEach((recipe) => {
|
|
970
974
|
js.push(outdent17`
|
|
971
|
-
export const ${recipe.name} = createRecipe('${recipe.name}')
|
|
975
|
+
export const ${recipe.name} = createRecipe('${recipe.name}', ${JSON.stringify(recipe.defaultVariants ?? {})})
|
|
972
976
|
`);
|
|
973
977
|
dts.push(outdent17`
|
|
974
978
|
import { ConditionalValue } from "../types"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20221126124930",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"telejson": "6.0.8",
|
|
31
31
|
"ts-pattern": "4.0.6",
|
|
32
32
|
"ts-morph": "17.0.1",
|
|
33
|
-
"@pandacss/types": "0.0.0-dev-
|
|
34
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
35
|
-
"@pandacss/error": "0.0.0-dev-
|
|
36
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
37
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
38
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/core": "0.0.0-dev-
|
|
41
|
-
"@pandacss/config": "0.0.0-dev-
|
|
33
|
+
"@pandacss/types": "0.0.0-dev-20221126124930",
|
|
34
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20221126124930",
|
|
35
|
+
"@pandacss/error": "0.0.0-dev-20221126124930",
|
|
36
|
+
"@pandacss/parser": "0.0.0-dev-20221126124930",
|
|
37
|
+
"@pandacss/shared": "0.0.0-dev-20221126124930",
|
|
38
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20221126124930",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20221126124930",
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20221126124930",
|
|
41
|
+
"@pandacss/config": "0.0.0-dev-20221126124930"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/fs-extra": "9.0.13",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/glob-parent": "^5.1.1",
|
|
47
47
|
"@types/pluralize": "0.0.29",
|
|
48
48
|
"@types/lodash.merge": "4.6.7",
|
|
49
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
49
|
+
"@pandacss/fixture": "0.0.0-dev-20221126124930"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|