@pandacss/node 0.0.0-dev-20221128063601 → 0.0.0-dev-20221128065048
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 +10 -9
- package/dist/index.mjs +10 -9
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -481,7 +481,7 @@ function generate(name, pattern, jsxFactory) {
|
|
|
481
481
|
`,
|
|
482
482
|
dts: import_outdent8.outdent`
|
|
483
483
|
import { ComponentProps, JSX, ComponentChildren } from 'preact';
|
|
484
|
-
import { ${upperName}
|
|
484
|
+
import { ${upperName}Properties } from '../patterns/${(0, import_shared3.dashCase)(name)}'
|
|
485
485
|
import { JSXStyleProperties, Assign } from '../types'
|
|
486
486
|
|
|
487
487
|
type ElementType = keyof JSX.IntrinsicElements
|
|
@@ -492,7 +492,7 @@ function generate(name, pattern, jsxFactory) {
|
|
|
492
492
|
type Polymorphic<C extends ElementType = 'div', P = {}> = JSXStyleProperties &
|
|
493
493
|
Assign<Omit<PropsOf<C>, 'color'>, P & { as?: C }>
|
|
494
494
|
|
|
495
|
-
type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}
|
|
495
|
+
type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}Properties>
|
|
496
496
|
|
|
497
497
|
export declare function ${jsxName}<V extends ElementType>(props: ${jsxName}Props<V>): JSX.Element
|
|
498
498
|
`
|
|
@@ -672,7 +672,7 @@ function generate2(name, pattern, jsxFactory) {
|
|
|
672
672
|
`,
|
|
673
673
|
dts: import_outdent11.outdent`
|
|
674
674
|
import { ComponentProps, ElementType, PropsWithChildren } from 'react'
|
|
675
|
-
import { ${upperName}
|
|
675
|
+
import { ${upperName}Properties } from '../patterns/${(0, import_shared5.dashCase)(name)}'
|
|
676
676
|
import { JSXStyleProperties, Assign } from '../types'
|
|
677
677
|
|
|
678
678
|
type PropsOf<C extends ElementType> = ComponentProps<C>
|
|
@@ -680,7 +680,7 @@ function generate2(name, pattern, jsxFactory) {
|
|
|
680
680
|
type Polymorphic<C extends ElementType = 'div', P = {}> = JSXStyleProperties &
|
|
681
681
|
Assign<Omit<PropsOf<C>, 'color'>, P & { as?: C }>
|
|
682
682
|
|
|
683
|
-
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}
|
|
683
|
+
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}Properties>
|
|
684
684
|
|
|
685
685
|
export declare function ${jsxName}<V extends ElementType>(props: ${jsxName}Props<V>): JSX.Element
|
|
686
686
|
`
|
|
@@ -844,7 +844,7 @@ function generate3(name, pattern, jsxFactory) {
|
|
|
844
844
|
`,
|
|
845
845
|
dts: import_outdent14.outdent`
|
|
846
846
|
import { ComponentProps, JSX } from 'solid-js'
|
|
847
|
-
import { ${upperName}
|
|
847
|
+
import { ${upperName}Properties } from '../patterns/${(0, import_shared7.dashCase)(name)}'
|
|
848
848
|
import { Assign, JSXStyleProperties } from '../types'
|
|
849
849
|
|
|
850
850
|
type ElementType = keyof JSX.IntrinsicElements
|
|
@@ -853,7 +853,7 @@ function generate3(name, pattern, jsxFactory) {
|
|
|
853
853
|
type Polymorphic<C extends ElementType = 'div', P = {}> = JSXStyleProperties &
|
|
854
854
|
Assign<Omit<PropsOf<C>, 'color'>, P & { as?: C }>
|
|
855
855
|
|
|
856
|
-
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}
|
|
856
|
+
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}Properties>
|
|
857
857
|
|
|
858
858
|
export declare function ${jsxName}<V extends ElementType>(props: ${jsxName}Props<V>): JSX.Element
|
|
859
859
|
`
|
|
@@ -905,7 +905,7 @@ function generate4(name, pattern) {
|
|
|
905
905
|
import { Properties } from "../types/csstype"
|
|
906
906
|
import { Tokens } from "../types/token"
|
|
907
907
|
|
|
908
|
-
export type ${(0, import_shared8.capitalize)(name)}
|
|
908
|
+
export type ${(0, import_shared8.capitalize)(name)}Properties = {
|
|
909
909
|
${Object.keys(properties ?? {}).map((key) => {
|
|
910
910
|
const value = properties[key];
|
|
911
911
|
return (0, import_ts_pattern4.match)(value).with({ type: "property" }, (value2) => {
|
|
@@ -923,10 +923,11 @@ function generate4(name, pattern) {
|
|
|
923
923
|
}).join("\n ")}
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
${strict ? import_outdent15.outdent`export declare function ${name}(options: ${(0, import_shared8.capitalize)(name)}
|
|
926
|
+
${strict ? import_outdent15.outdent`export declare function ${name}(options: ${(0, import_shared8.capitalize)(name)}Properties): string` : import_outdent15.outdent`
|
|
927
927
|
type Merge<T> = Omit<SystemStyleObject, keyof T> & T
|
|
928
|
+
|
|
928
929
|
${description ? `/** ${description} */` : ""}
|
|
929
|
-
export declare function ${name}(options: Merge<${(0, import_shared8.capitalize)(name)}
|
|
930
|
+
export declare function ${name}(options: Merge<${(0, import_shared8.capitalize)(name)}Properties>): string
|
|
930
931
|
`}
|
|
931
932
|
|
|
932
933
|
`,
|
package/dist/index.mjs
CHANGED
|
@@ -436,7 +436,7 @@ function generate(name, pattern, jsxFactory) {
|
|
|
436
436
|
`,
|
|
437
437
|
dts: outdent8`
|
|
438
438
|
import { ComponentProps, JSX, ComponentChildren } from 'preact';
|
|
439
|
-
import { ${upperName}
|
|
439
|
+
import { ${upperName}Properties } from '../patterns/${dashCase(name)}'
|
|
440
440
|
import { JSXStyleProperties, Assign } from '../types'
|
|
441
441
|
|
|
442
442
|
type ElementType = keyof JSX.IntrinsicElements
|
|
@@ -447,7 +447,7 @@ function generate(name, pattern, jsxFactory) {
|
|
|
447
447
|
type Polymorphic<C extends ElementType = 'div', P = {}> = JSXStyleProperties &
|
|
448
448
|
Assign<Omit<PropsOf<C>, 'color'>, P & { as?: C }>
|
|
449
449
|
|
|
450
|
-
type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}
|
|
450
|
+
type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}Properties>
|
|
451
451
|
|
|
452
452
|
export declare function ${jsxName}<V extends ElementType>(props: ${jsxName}Props<V>): JSX.Element
|
|
453
453
|
`
|
|
@@ -627,7 +627,7 @@ function generate2(name, pattern, jsxFactory) {
|
|
|
627
627
|
`,
|
|
628
628
|
dts: outdent11`
|
|
629
629
|
import { ComponentProps, ElementType, PropsWithChildren } from 'react'
|
|
630
|
-
import { ${upperName}
|
|
630
|
+
import { ${upperName}Properties } from '../patterns/${dashCase2(name)}'
|
|
631
631
|
import { JSXStyleProperties, Assign } from '../types'
|
|
632
632
|
|
|
633
633
|
type PropsOf<C extends ElementType> = ComponentProps<C>
|
|
@@ -635,7 +635,7 @@ function generate2(name, pattern, jsxFactory) {
|
|
|
635
635
|
type Polymorphic<C extends ElementType = 'div', P = {}> = JSXStyleProperties &
|
|
636
636
|
Assign<Omit<PropsOf<C>, 'color'>, P & { as?: C }>
|
|
637
637
|
|
|
638
|
-
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}
|
|
638
|
+
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}Properties>
|
|
639
639
|
|
|
640
640
|
export declare function ${jsxName}<V extends ElementType>(props: ${jsxName}Props<V>): JSX.Element
|
|
641
641
|
`
|
|
@@ -799,7 +799,7 @@ function generate3(name, pattern, jsxFactory) {
|
|
|
799
799
|
`,
|
|
800
800
|
dts: outdent14`
|
|
801
801
|
import { ComponentProps, JSX } from 'solid-js'
|
|
802
|
-
import { ${upperName}
|
|
802
|
+
import { ${upperName}Properties } from '../patterns/${dashCase3(name)}'
|
|
803
803
|
import { Assign, JSXStyleProperties } from '../types'
|
|
804
804
|
|
|
805
805
|
type ElementType = keyof JSX.IntrinsicElements
|
|
@@ -808,7 +808,7 @@ function generate3(name, pattern, jsxFactory) {
|
|
|
808
808
|
type Polymorphic<C extends ElementType = 'div', P = {}> = JSXStyleProperties &
|
|
809
809
|
Assign<Omit<PropsOf<C>, 'color'>, P & { as?: C }>
|
|
810
810
|
|
|
811
|
-
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}
|
|
811
|
+
export type ${jsxName}Props<C extends ElementType = 'div'> = Polymorphic<C, ${upperName}Properties>
|
|
812
812
|
|
|
813
813
|
export declare function ${jsxName}<V extends ElementType>(props: ${jsxName}Props<V>): JSX.Element
|
|
814
814
|
`
|
|
@@ -860,7 +860,7 @@ function generate4(name, pattern) {
|
|
|
860
860
|
import { Properties } from "../types/csstype"
|
|
861
861
|
import { Tokens } from "../types/token"
|
|
862
862
|
|
|
863
|
-
export type ${capitalize7(name)}
|
|
863
|
+
export type ${capitalize7(name)}Properties = {
|
|
864
864
|
${Object.keys(properties ?? {}).map((key) => {
|
|
865
865
|
const value = properties[key];
|
|
866
866
|
return match4(value).with({ type: "property" }, (value2) => {
|
|
@@ -878,10 +878,11 @@ function generate4(name, pattern) {
|
|
|
878
878
|
}).join("\n ")}
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
${strict ? outdent15`export declare function ${name}(options: ${capitalize7(name)}
|
|
881
|
+
${strict ? outdent15`export declare function ${name}(options: ${capitalize7(name)}Properties): string` : outdent15`
|
|
882
882
|
type Merge<T> = Omit<SystemStyleObject, keyof T> & T
|
|
883
|
+
|
|
883
884
|
${description ? `/** ${description} */` : ""}
|
|
884
|
-
export declare function ${name}(options: Merge<${capitalize7(name)}
|
|
885
|
+
export declare function ${name}(options: Merge<${capitalize7(name)}Properties>): string
|
|
885
886
|
`}
|
|
886
887
|
|
|
887
888
|
`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20221128065048",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"telejson": "6.0.8",
|
|
31
31
|
"ts-pattern": "4.0.6",
|
|
32
32
|
"ts-morph": "17.0.1",
|
|
33
|
-
"@pandacss/types": "0.0.0-dev-
|
|
34
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
35
|
-
"@pandacss/error": "0.0.0-dev-
|
|
36
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
37
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
38
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/core": "0.0.0-dev-
|
|
41
|
-
"@pandacss/config": "0.0.0-dev-
|
|
33
|
+
"@pandacss/types": "0.0.0-dev-20221128065048",
|
|
34
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20221128065048",
|
|
35
|
+
"@pandacss/error": "0.0.0-dev-20221128065048",
|
|
36
|
+
"@pandacss/parser": "0.0.0-dev-20221128065048",
|
|
37
|
+
"@pandacss/shared": "0.0.0-dev-20221128065048",
|
|
38
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20221128065048",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20221128065048",
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20221128065048",
|
|
41
|
+
"@pandacss/config": "0.0.0-dev-20221128065048"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/fs-extra": "9.0.13",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/glob-parent": "^5.1.1",
|
|
47
47
|
"@types/pluralize": "0.0.29",
|
|
48
48
|
"@types/lodash.merge": "4.6.7",
|
|
49
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
49
|
+
"@pandacss/fixture": "0.0.0-dev-20221128065048"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|