@pandacss/generator 0.0.0-dev-20230830225324 → 0.0.0-dev-20230901000015
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 -3
- package/dist/index.mjs +4 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -3011,9 +3011,9 @@ function generatePropTypes(ctx) {
|
|
|
3011
3011
|
${result.join("\n")}
|
|
3012
3012
|
|
|
3013
3013
|
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
3014
|
-
? ConditionalValue<PropertyTypes[T]${strictText} | (string & {})>
|
|
3014
|
+
? ConditionalValue<PropertyTypes[T]${strictText}${!ctx.config.strictTokens ? " | (string & {})" : ""}>
|
|
3015
3015
|
: T extends keyof CssProperties
|
|
3016
|
-
? ConditionalValue<CssProperties[T] | (string & {})>
|
|
3016
|
+
? ConditionalValue<CssProperties[T]${!ctx.config.strictTokens ? " | (string & {})" : ""}>
|
|
3017
3017
|
: ConditionalValue<string | number>
|
|
3018
3018
|
`;
|
|
3019
3019
|
}
|
|
@@ -3492,7 +3492,8 @@ var getBaseEngine = (conf) => {
|
|
|
3492
3492
|
tokens,
|
|
3493
3493
|
config: isTemplateLiteralSyntax ? {} : config.utilities,
|
|
3494
3494
|
separator: config.separator,
|
|
3495
|
-
shorthands: config.shorthands
|
|
3495
|
+
shorthands: config.shorthands,
|
|
3496
|
+
strictTokens: config.strictTokens
|
|
3496
3497
|
});
|
|
3497
3498
|
const conditions = new import_core5.Conditions({
|
|
3498
3499
|
conditions: isTemplateLiteralSyntax ? {} : config.conditions,
|
package/dist/index.mjs
CHANGED
|
@@ -2980,9 +2980,9 @@ function generatePropTypes(ctx) {
|
|
|
2980
2980
|
${result.join("\n")}
|
|
2981
2981
|
|
|
2982
2982
|
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
2983
|
-
? ConditionalValue<PropertyTypes[T]${strictText} | (string & {})>
|
|
2983
|
+
? ConditionalValue<PropertyTypes[T]${strictText}${!ctx.config.strictTokens ? " | (string & {})" : ""}>
|
|
2984
2984
|
: T extends keyof CssProperties
|
|
2985
|
-
? ConditionalValue<CssProperties[T] | (string & {})>
|
|
2985
|
+
? ConditionalValue<CssProperties[T]${!ctx.config.strictTokens ? " | (string & {})" : ""}>
|
|
2986
2986
|
: ConditionalValue<string | number>
|
|
2987
2987
|
`;
|
|
2988
2988
|
}
|
|
@@ -3467,7 +3467,8 @@ var getBaseEngine = (conf) => {
|
|
|
3467
3467
|
tokens,
|
|
3468
3468
|
config: isTemplateLiteralSyntax ? {} : config.utilities,
|
|
3469
3469
|
separator: config.separator,
|
|
3470
|
-
shorthands: config.shorthands
|
|
3470
|
+
shorthands: config.shorthands,
|
|
3471
|
+
strictTokens: config.strictTokens
|
|
3471
3472
|
});
|
|
3472
3473
|
const conditions = new Conditions({
|
|
3473
3474
|
conditions: isTemplateLiteralSyntax ? {} : config.conditions,
|
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-20230901000015",
|
|
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-20230901000015",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230901000015",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230901000015",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230901000015",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230901000015",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230901000015"
|
|
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-20230901000015"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|