@pandacss/generator 0.0.0-dev-20240113111256 → 0.0.0-dev-20240115155433
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 +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -478,8 +478,15 @@ function generateIsValidProp(ctx) {
|
|
|
478
478
|
return {
|
|
479
479
|
js: content,
|
|
480
480
|
dts: import_outdent8.outdent`
|
|
481
|
+
import type { DistributiveOmit, HTMLPandaProps, JsxStyleProps, Pretty } from '../types';
|
|
482
|
+
|
|
481
483
|
declare const isCssProperty: (value: string) => boolean;
|
|
482
|
-
|
|
484
|
+
|
|
485
|
+
type CssPropKey = keyof JsxStyleProps
|
|
486
|
+
type PickedCssProps<T> = Pretty<Pick<T, CssPropKey>>
|
|
487
|
+
type OmittedCssProps<T> = Pretty<DistributiveOmit<T, CssPropKey>>
|
|
488
|
+
|
|
489
|
+
declare const splitCssProps: <T>(props: T) => [PickedCssProps<T>, OmittedCssProps<T>]
|
|
483
490
|
|
|
484
491
|
export { isCssProperty, splitCssProps };
|
|
485
492
|
`
|
package/dist/index.mjs
CHANGED
|
@@ -442,8 +442,15 @@ function generateIsValidProp(ctx) {
|
|
|
442
442
|
return {
|
|
443
443
|
js: content,
|
|
444
444
|
dts: outdent8`
|
|
445
|
+
import type { DistributiveOmit, HTMLPandaProps, JsxStyleProps, Pretty } from '../types';
|
|
446
|
+
|
|
445
447
|
declare const isCssProperty: (value: string) => boolean;
|
|
446
|
-
|
|
448
|
+
|
|
449
|
+
type CssPropKey = keyof JsxStyleProps
|
|
450
|
+
type PickedCssProps<T> = Pretty<Pick<T, CssPropKey>>
|
|
451
|
+
type OmittedCssProps<T> = Pretty<DistributiveOmit<T, CssPropKey>>
|
|
452
|
+
|
|
453
|
+
declare const splitCssProps: <T>(props: T) => [PickedCssProps<T>, OmittedCssProps<T>]
|
|
447
454
|
|
|
448
455
|
export { isCssProperty, splitCssProps };
|
|
449
456
|
`
|
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-20240115155433",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"pluralize": "8.0.0",
|
|
38
38
|
"postcss": "^8.4.31",
|
|
39
39
|
"ts-pattern": "5.0.5",
|
|
40
|
-
"@pandacss/core": "0.0.0-dev-
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.0.0-dev-
|
|
42
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
43
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
44
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
45
|
-
"@pandacss/types": "0.0.0-dev-
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20240115155433",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.0.0-dev-20240115155433",
|
|
42
|
+
"@pandacss/logger": "0.0.0-dev-20240115155433",
|
|
43
|
+
"@pandacss/shared": "0.0.0-dev-20240115155433",
|
|
44
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240115155433",
|
|
45
|
+
"@pandacss/types": "0.0.0-dev-20240115155433"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33",
|