@pandacss/generator 0.0.0-dev-20230810193646 → 0.0.0-dev-20230810194757
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -3000,9 +3000,9 @@ function generatePropTypes(ctx) {
|
|
|
3000
3000
|
${result.join("\n")}
|
|
3001
3001
|
|
|
3002
3002
|
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
3003
|
-
? ConditionalValue<PropertyTypes[T]${strictText}>
|
|
3003
|
+
? ConditionalValue<PropertyTypes[T]${strictText} | (string & {})>
|
|
3004
3004
|
: T extends keyof CssProperties
|
|
3005
|
-
? ConditionalValue<CssProperties[T]>
|
|
3005
|
+
? ConditionalValue<CssProperties[T] | (string & {})>
|
|
3006
3006
|
: ConditionalValue<string | number>
|
|
3007
3007
|
`;
|
|
3008
3008
|
}
|
|
@@ -3063,7 +3063,7 @@ function generateTokenTypes(ctx) {
|
|
|
3063
3063
|
} else {
|
|
3064
3064
|
const colorPaletteKeys = Object.keys(tokens.colorPalettes);
|
|
3065
3065
|
if (colorPaletteKeys.length) {
|
|
3066
|
-
set.add(`export type ColorPalette = ${(0, import_shared3.unionType)(Object.keys(tokens.colorPalettes))}
|
|
3066
|
+
set.add(`export type ColorPalette = ${(0, import_shared3.unionType)(Object.keys(tokens.colorPalettes))}`);
|
|
3067
3067
|
}
|
|
3068
3068
|
for (const [key, value] of tokens.categoryMap.entries()) {
|
|
3069
3069
|
const typeName = (0, import_shared3.capitalize)(import_pluralize.default.singular(key));
|
package/dist/index.mjs
CHANGED
|
@@ -2969,9 +2969,9 @@ function generatePropTypes(ctx) {
|
|
|
2969
2969
|
${result.join("\n")}
|
|
2970
2970
|
|
|
2971
2971
|
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
2972
|
-
? ConditionalValue<PropertyTypes[T]${strictText}>
|
|
2972
|
+
? ConditionalValue<PropertyTypes[T]${strictText} | (string & {})>
|
|
2973
2973
|
: T extends keyof CssProperties
|
|
2974
|
-
? ConditionalValue<CssProperties[T]>
|
|
2974
|
+
? ConditionalValue<CssProperties[T] | (string & {})>
|
|
2975
2975
|
: ConditionalValue<string | number>
|
|
2976
2976
|
`;
|
|
2977
2977
|
}
|
|
@@ -3032,7 +3032,7 @@ function generateTokenTypes(ctx) {
|
|
|
3032
3032
|
} else {
|
|
3033
3033
|
const colorPaletteKeys = Object.keys(tokens.colorPalettes);
|
|
3034
3034
|
if (colorPaletteKeys.length) {
|
|
3035
|
-
set.add(`export type ColorPalette = ${unionType3(Object.keys(tokens.colorPalettes))}
|
|
3035
|
+
set.add(`export type ColorPalette = ${unionType3(Object.keys(tokens.colorPalettes))}`);
|
|
3036
3036
|
}
|
|
3037
3037
|
for (const [key, value] of tokens.categoryMap.entries()) {
|
|
3038
3038
|
const typeName = capitalize(pluralize.singular(key));
|
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-20230810194757",
|
|
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-20230810194757",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230810194757",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230810194757",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230810194757",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230810194757",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230810194757"
|
|
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-20230810194757"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|