@pandacss/generator 0.47.0 → 0.48.0
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -3977,7 +3977,7 @@ function generateThemes(ctx) {
|
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
3979
|
return {
|
|
3980
|
-
name
|
|
3980
|
+
name: `theme-${name}`,
|
|
3981
3981
|
json: JSON.stringify(
|
|
3982
3982
|
(0, import_shared5.compact)({
|
|
3983
3983
|
name,
|
|
@@ -4001,7 +4001,7 @@ function generateThemesIndex(ctx, files) {
|
|
|
4001
4001
|
{
|
|
4002
4002
|
file: ctx.file.ext("index"),
|
|
4003
4003
|
code: import_outdent43.default`
|
|
4004
|
-
export const getTheme = (themeName) => import(
|
|
4004
|
+
export const getTheme = (themeName) => import(\`./theme-\$\{themeName}.json\`).then((m) => m.default)
|
|
4005
4005
|
|
|
4006
4006
|
export function injectTheme(el, theme) {
|
|
4007
4007
|
const doc = el.ownerDocument || document
|
|
@@ -4036,9 +4036,9 @@ function generateThemesIndex(ctx, files) {
|
|
|
4036
4036
|
const theme = JSON.parse(f.json);
|
|
4037
4037
|
if (!theme.css)
|
|
4038
4038
|
return "";
|
|
4039
|
-
return `'${
|
|
4039
|
+
return `'${theme.name}': {
|
|
4040
4040
|
id: string,
|
|
4041
|
-
name: '${
|
|
4041
|
+
name: '${theme.name}',
|
|
4042
4042
|
css: string
|
|
4043
4043
|
}`;
|
|
4044
4044
|
}).join("\n")}
|
package/dist/index.mjs
CHANGED
|
@@ -3941,7 +3941,7 @@ function generateThemes(ctx) {
|
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
3943
|
return {
|
|
3944
|
-
name
|
|
3944
|
+
name: `theme-${name}`,
|
|
3945
3945
|
json: JSON.stringify(
|
|
3946
3946
|
compact2({
|
|
3947
3947
|
name,
|
|
@@ -3965,7 +3965,7 @@ function generateThemesIndex(ctx, files) {
|
|
|
3965
3965
|
{
|
|
3966
3966
|
file: ctx.file.ext("index"),
|
|
3967
3967
|
code: outdent43`
|
|
3968
|
-
export const getTheme = (themeName) => import(
|
|
3968
|
+
export const getTheme = (themeName) => import(\`./theme-\$\{themeName}.json\`).then((m) => m.default)
|
|
3969
3969
|
|
|
3970
3970
|
export function injectTheme(el, theme) {
|
|
3971
3971
|
const doc = el.ownerDocument || document
|
|
@@ -4000,9 +4000,9 @@ function generateThemesIndex(ctx, files) {
|
|
|
4000
4000
|
const theme = JSON.parse(f.json);
|
|
4001
4001
|
if (!theme.css)
|
|
4002
4002
|
return "";
|
|
4003
|
-
return `'${
|
|
4003
|
+
return `'${theme.name}': {
|
|
4004
4004
|
id: string,
|
|
4005
|
-
name: '${
|
|
4005
|
+
name: '${theme.name}',
|
|
4006
4006
|
css: string
|
|
4007
4007
|
}`;
|
|
4008
4008
|
}).join("\n")}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"javascript-stringify": "2.1.0",
|
|
36
36
|
"outdent": " ^0.8.0",
|
|
37
37
|
"pluralize": "8.0.0",
|
|
38
|
-
"postcss": "8.4.
|
|
38
|
+
"postcss": "8.4.49",
|
|
39
39
|
"ts-pattern": "5.0.8",
|
|
40
|
-
"@pandacss/core": "0.
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.
|
|
42
|
-
"@pandacss/logger": "0.
|
|
43
|
-
"@pandacss/shared": "0.
|
|
44
|
-
"@pandacss/token-dictionary": "0.
|
|
45
|
-
"@pandacss/types": "0.
|
|
40
|
+
"@pandacss/core": "0.48.0",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.48.0",
|
|
42
|
+
"@pandacss/logger": "0.48.0",
|
|
43
|
+
"@pandacss/shared": "0.48.0",
|
|
44
|
+
"@pandacss/token-dictionary": "0.48.0",
|
|
45
|
+
"@pandacss/types": "0.48.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33"
|