@pandacss/generator 0.0.0-dev-20230601202405 → 0.0.0-dev-20230602151911
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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -362,7 +362,7 @@ function generateResetCss(scope = "") {
|
|
|
362
362
|
${selector}samp,
|
|
363
363
|
${selector}pre {
|
|
364
364
|
font-size: 1em;
|
|
365
|
-
--font-mono-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'
|
|
365
|
+
--font-mono-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New';
|
|
366
366
|
font-family: var(--global-font-mono, var(--font-fallback));
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -2052,10 +2052,13 @@ function generateTokenTypes(ctx) {
|
|
|
2052
2052
|
if (tokens.isEmpty) {
|
|
2053
2053
|
result.add("[token: string]: string");
|
|
2054
2054
|
} else {
|
|
2055
|
+
const colorPaletteKeys = Object.keys(tokens.colorPalettes);
|
|
2056
|
+
if (colorPaletteKeys.length) {
|
|
2057
|
+
set.add(`export type ColorPalette = ${(0, import_shared3.unionType)(Object.keys(tokens.colorPalettes))}`);
|
|
2058
|
+
}
|
|
2055
2059
|
for (const [key, value] of tokens.categoryMap.entries()) {
|
|
2056
2060
|
const typeName = (0, import_shared3.capitalize)(import_pluralize.default.singular(key));
|
|
2057
2061
|
set.add(`export type ${typeName}Token = ${(0, import_shared3.unionType)(value.keys())}`);
|
|
2058
|
-
set.add(`export type ColorPalette = ${(0, import_shared3.unionType)(Object.keys(tokens.colorPalettes))}`);
|
|
2059
2062
|
result.add(` ${key}: ${typeName}Token`);
|
|
2060
2063
|
}
|
|
2061
2064
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -331,7 +331,7 @@ function generateResetCss(scope = "") {
|
|
|
331
331
|
${selector}samp,
|
|
332
332
|
${selector}pre {
|
|
333
333
|
font-size: 1em;
|
|
334
|
-
--font-mono-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'
|
|
334
|
+
--font-mono-fallback: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New';
|
|
335
335
|
font-family: var(--global-font-mono, var(--font-fallback));
|
|
336
336
|
}
|
|
337
337
|
|
|
@@ -2021,10 +2021,13 @@ function generateTokenTypes(ctx) {
|
|
|
2021
2021
|
if (tokens.isEmpty) {
|
|
2022
2022
|
result.add("[token: string]: string");
|
|
2023
2023
|
} else {
|
|
2024
|
+
const colorPaletteKeys = Object.keys(tokens.colorPalettes);
|
|
2025
|
+
if (colorPaletteKeys.length) {
|
|
2026
|
+
set.add(`export type ColorPalette = ${unionType3(Object.keys(tokens.colorPalettes))}`);
|
|
2027
|
+
}
|
|
2024
2028
|
for (const [key, value] of tokens.categoryMap.entries()) {
|
|
2025
2029
|
const typeName = capitalize(pluralize.singular(key));
|
|
2026
2030
|
set.add(`export type ${typeName}Token = ${unionType3(value.keys())}`);
|
|
2027
|
-
set.add(`export type ColorPalette = ${unionType3(Object.keys(tokens.colorPalettes))}`);
|
|
2028
2031
|
result.add(` ${key}: ${typeName}Token`);
|
|
2029
2032
|
}
|
|
2030
2033
|
}
|
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-20230602151911",
|
|
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.24",
|
|
22
22
|
"ts-pattern": "4.3.0",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
25
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/types": "0.0.0-dev-
|
|
28
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230602151911",
|
|
24
|
+
"@pandacss/logger": "0.0.0-dev-20230602151911",
|
|
25
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230602151911",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230602151911",
|
|
27
|
+
"@pandacss/types": "0.0.0-dev-20230602151911",
|
|
28
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230602151911"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.29",
|
|
32
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
32
|
+
"@pandacss/fixture": "0.0.0-dev-20230602151911"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"prebuild": "tsx scripts/prebuild.ts",
|