@pandacss/studio 0.22.0 → 0.22.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"react": "18.2.0",
|
|
42
42
|
"react-dom": "18.2.0",
|
|
43
43
|
"vite": "5.0.7",
|
|
44
|
-
"@pandacss/config": "0.22.
|
|
45
|
-
"@pandacss/logger": "0.22.
|
|
46
|
-
"@pandacss/shared": "0.22.
|
|
47
|
-
"@pandacss/token-dictionary": "0.22.
|
|
48
|
-
"@pandacss/types": "0.22.
|
|
49
|
-
"@pandacss/astro-plugin-studio": "0.22.
|
|
44
|
+
"@pandacss/config": "0.22.1",
|
|
45
|
+
"@pandacss/logger": "0.22.1",
|
|
46
|
+
"@pandacss/shared": "0.22.1",
|
|
47
|
+
"@pandacss/token-dictionary": "0.22.1",
|
|
48
|
+
"@pandacss/types": "0.22.1",
|
|
49
|
+
"@pandacss/astro-plugin-studio": "0.22.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "18.2.42",
|
|
@@ -15,7 +15,7 @@ function filterBaseConditions(c) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// src/css-important.ts
|
|
18
|
-
var importantRegex = /!(important)
|
|
18
|
+
var importantRegex = /!(important)?/;
|
|
19
19
|
function isImportant(value) {
|
|
20
20
|
return typeof value === "string" ? importantRegex.test(value) : false;
|
|
21
21
|
}
|
|
@@ -90,7 +90,7 @@ function walkObject(target, predicate, options = {}) {
|
|
|
90
90
|
}
|
|
91
91
|
function mapObject(obj, fn) {
|
|
92
92
|
if (Array.isArray(obj))
|
|
93
|
-
return obj.map(fn);
|
|
93
|
+
return obj.map((value) => fn(value));
|
|
94
94
|
if (!isObject(obj))
|
|
95
95
|
return fn(obj);
|
|
96
96
|
return walkObject(obj, (value) => fn(value));
|
|
@@ -139,6 +139,10 @@ export interface SlotRecipeDefinition<S extends string, T extends SlotRecipeVari
|
|
|
139
139
|
* The styles to apply when a combination of variants is selected.
|
|
140
140
|
*/
|
|
141
141
|
compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
|
|
142
|
+
/**
|
|
143
|
+
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
144
|
+
*/
|
|
145
|
+
staticCss?: RecipeRule[]
|
|
142
146
|
}
|
|
143
147
|
|
|
144
148
|
export type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(
|