@pandacss/generator 0.0.0-dev-20230321103030 → 0.0.0-dev-20230323194924
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.d.ts +8 -12
- package/dist/index.js +1 -0
- package/dist/index.mjs +3 -2
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -42,15 +42,15 @@ declare const getEngine: (conf: LoadConfigResult) => {
|
|
|
42
42
|
props: string[];
|
|
43
43
|
baseName: string;
|
|
44
44
|
}[];
|
|
45
|
-
recipes: Record<string, _pandacss_types.RecipeConfig
|
|
46
|
-
getConfig: (name: string) => _pandacss_types.RecipeConfig
|
|
45
|
+
recipes: Record<string, _pandacss_types.RecipeConfig>;
|
|
46
|
+
getConfig: (name: string) => _pandacss_types.RecipeConfig | undefined;
|
|
47
47
|
getNames: (name: string) => {
|
|
48
48
|
upperName: string;
|
|
49
49
|
dashName: string;
|
|
50
50
|
jsxName: string;
|
|
51
51
|
};
|
|
52
52
|
details: {
|
|
53
|
-
config: _pandacss_types.RecipeConfig
|
|
53
|
+
config: _pandacss_types.RecipeConfig;
|
|
54
54
|
variantKeyMap: {
|
|
55
55
|
[k: string]: string[];
|
|
56
56
|
};
|
|
@@ -59,9 +59,7 @@ declare const getEngine: (conf: LoadConfigResult) => {
|
|
|
59
59
|
jsxName: string;
|
|
60
60
|
}[];
|
|
61
61
|
getFnName: (jsx: string) => string;
|
|
62
|
-
splitProps: (name: string, props: Record<string, any>) =>
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
}[];
|
|
62
|
+
splitProps: (name: string, props: Record<string, any>) => Record<string, any>[];
|
|
65
63
|
isEmpty: () => boolean;
|
|
66
64
|
};
|
|
67
65
|
jsx: {
|
|
@@ -158,15 +156,15 @@ declare const createGenerator: (conf: LoadConfigResult) => {
|
|
|
158
156
|
props: string[];
|
|
159
157
|
baseName: string;
|
|
160
158
|
}[];
|
|
161
|
-
recipes: Record<string, _pandacss_types.RecipeConfig
|
|
162
|
-
getConfig: (name: string) => _pandacss_types.RecipeConfig
|
|
159
|
+
recipes: Record<string, _pandacss_types.RecipeConfig>;
|
|
160
|
+
getConfig: (name: string) => _pandacss_types.RecipeConfig | undefined;
|
|
163
161
|
getNames: (name: string) => {
|
|
164
162
|
upperName: string;
|
|
165
163
|
dashName: string;
|
|
166
164
|
jsxName: string;
|
|
167
165
|
};
|
|
168
166
|
details: {
|
|
169
|
-
config: _pandacss_types.RecipeConfig
|
|
167
|
+
config: _pandacss_types.RecipeConfig;
|
|
170
168
|
variantKeyMap: {
|
|
171
169
|
[k: string]: string[];
|
|
172
170
|
};
|
|
@@ -175,9 +173,7 @@ declare const createGenerator: (conf: LoadConfigResult) => {
|
|
|
175
173
|
jsxName: string;
|
|
176
174
|
}[];
|
|
177
175
|
getFnName: (jsx: string) => string;
|
|
178
|
-
splitProps: (name: string, props: Record<string, any>) =>
|
|
179
|
-
[x: string]: unknown;
|
|
180
|
-
}[];
|
|
176
|
+
splitProps: (name: string, props: Record<string, any>) => Record<string, any>[];
|
|
181
177
|
isEmpty: () => boolean;
|
|
182
178
|
};
|
|
183
179
|
patterns: {
|
package/dist/index.js
CHANGED
|
@@ -1934,6 +1934,7 @@ var generateStaticCss = (ctx) => {
|
|
|
1934
1934
|
const results = fn({
|
|
1935
1935
|
breakpoints: Object.keys(theme.breakpoints ?? {}),
|
|
1936
1936
|
getPropertyKeys: utility.getPropertyKeys,
|
|
1937
|
+
// @ts-ignore
|
|
1937
1938
|
getRecipeKeys: (recipe) => recipes.details[recipe]
|
|
1938
1939
|
});
|
|
1939
1940
|
results.css.forEach((css3) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1894,15 +1894,16 @@ var generateGlobalCss = (ctx) => {
|
|
|
1894
1894
|
};
|
|
1895
1895
|
|
|
1896
1896
|
// src/artifacts/css/static-css.ts
|
|
1897
|
-
import { getStaticCss
|
|
1897
|
+
import { getStaticCss } from "@pandacss/core";
|
|
1898
1898
|
var generateStaticCss = (ctx) => {
|
|
1899
1899
|
const { config, createSheet, utility, recipes } = ctx;
|
|
1900
1900
|
const { staticCss = {}, theme = {} } = config;
|
|
1901
1901
|
const sheet = createSheet();
|
|
1902
|
-
const fn =
|
|
1902
|
+
const fn = getStaticCss(staticCss);
|
|
1903
1903
|
const results = fn({
|
|
1904
1904
|
breakpoints: Object.keys(theme.breakpoints ?? {}),
|
|
1905
1905
|
getPropertyKeys: utility.getPropertyKeys,
|
|
1906
|
+
// @ts-ignore
|
|
1906
1907
|
getRecipeKeys: (recipe) => recipes.details[recipe]
|
|
1907
1908
|
});
|
|
1908
1909
|
results.css.forEach((css3) => {
|
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-20230323194924",
|
|
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.21",
|
|
22
22
|
"ts-pattern": "4.2.1",
|
|
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-20230323194924",
|
|
24
|
+
"@pandacss/logger": "0.0.0-dev-20230323194924",
|
|
25
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230323194924",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230323194924",
|
|
27
|
+
"@pandacss/types": "0.0.0-dev-20230323194924",
|
|
28
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230323194924"
|
|
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-20230323194924"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"prebuild": "tsx scripts/prebuild.ts",
|