@pandacss/generator 0.0.0-dev-20231101180849 → 0.0.0-dev-20231102165625
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 -1
- package/dist/index.mjs +4 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -979,12 +979,15 @@ function generateIsValidProp(ctx) {
|
|
|
979
979
|
} else {
|
|
980
980
|
content = ctx.file.import("memo", "../helpers") + "\n" + content;
|
|
981
981
|
}
|
|
982
|
+
content = ctx.file.import("splitProps", "../helpers") + "\n" + content;
|
|
983
|
+
content += `export const splitCssProps = /* @__PURE__ */ (props) => splitProps(props, isCssProperty)`;
|
|
982
984
|
return {
|
|
983
985
|
js: content,
|
|
984
986
|
dts: import_outdent9.outdent`
|
|
985
987
|
declare const isCssProperty: (value: string) => boolean;
|
|
988
|
+
declare const splitCssProps: <TProps extends Record<string, unknown>>(props: TProps) => [Pick<TProps, CssProperty>, Omit<TProps, CssProperty>]
|
|
986
989
|
|
|
987
|
-
export { isCssProperty };
|
|
990
|
+
export { isCssProperty, splitCssProps };
|
|
988
991
|
`
|
|
989
992
|
};
|
|
990
993
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -948,12 +948,15 @@ function generateIsValidProp(ctx) {
|
|
|
948
948
|
} else {
|
|
949
949
|
content = ctx.file.import("memo", "../helpers") + "\n" + content;
|
|
950
950
|
}
|
|
951
|
+
content = ctx.file.import("splitProps", "../helpers") + "\n" + content;
|
|
952
|
+
content += `export const splitCssProps = /* @__PURE__ */ (props) => splitProps(props, isCssProperty)`;
|
|
951
953
|
return {
|
|
952
954
|
js: content,
|
|
953
955
|
dts: outdent9`
|
|
954
956
|
declare const isCssProperty: (value: string) => boolean;
|
|
957
|
+
declare const splitCssProps: <TProps extends Record<string, unknown>>(props: TProps) => [Pick<TProps, CssProperty>, Omit<TProps, CssProperty>]
|
|
955
958
|
|
|
956
|
-
export { isCssProperty };
|
|
959
|
+
export { isCssProperty, splitCssProps };
|
|
957
960
|
`
|
|
958
961
|
};
|
|
959
962
|
}
|
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-20231102165625",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"pluralize": "8.0.0",
|
|
33
33
|
"postcss": "^8.4.31",
|
|
34
34
|
"ts-pattern": "5.0.5",
|
|
35
|
-
"@pandacss/core": "0.0.0-dev-
|
|
36
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
37
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
38
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
39
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
40
|
-
"@pandacss/types": "0.0.0-dev-
|
|
35
|
+
"@pandacss/core": "0.0.0-dev-20231102165625",
|
|
36
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20231102165625",
|
|
37
|
+
"@pandacss/logger": "0.0.0-dev-20231102165625",
|
|
38
|
+
"@pandacss/shared": "0.0.0-dev-20231102165625",
|
|
39
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20231102165625",
|
|
40
|
+
"@pandacss/types": "0.0.0-dev-20231102165625"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/pluralize": "0.0.30",
|
|
44
44
|
"hookable": "5.5.3",
|
|
45
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
45
|
+
"@pandacss/fixture": "0.0.0-dev-20231102165625"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|