@pandacss/generator 0.0.0-dev-20230212134304 → 0.0.0-dev-20230212144301
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 +21 -65
- package/dist/index.mjs +21 -65
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -932,25 +932,15 @@ export declare const ${factoryName}: ${upperName}
|
|
|
932
932
|
`,
|
|
933
933
|
jsxType: import_outdent13.outdent`
|
|
934
934
|
import type { JSX, ComponentProps } from 'preact'
|
|
935
|
-
import type { JsxStyleProps,
|
|
935
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
936
936
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
937
937
|
|
|
938
|
-
type Dict = Record<string, unknown>
|
|
939
938
|
type ElementType = keyof JSX.IntrinsicElements
|
|
940
939
|
|
|
941
|
-
type
|
|
942
|
-
htmlSize?: string | number
|
|
943
|
-
htmlWidth?: string | number
|
|
944
|
-
htmlHeight?: string | number
|
|
945
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
949
|
-
|
|
950
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
940
|
+
type Dict = Record<string, unknown>
|
|
951
941
|
|
|
952
942
|
export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
|
|
953
|
-
(props:
|
|
943
|
+
(props: JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps): JSX.Element
|
|
954
944
|
displayName?: string
|
|
955
945
|
}
|
|
956
946
|
|
|
@@ -958,7 +948,7 @@ export type ${upperName} = {
|
|
|
958
948
|
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
959
949
|
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
960
950
|
|
|
961
|
-
export type ${typeName}<T extends ElementType> =
|
|
951
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
962
952
|
`
|
|
963
953
|
};
|
|
964
954
|
}
|
|
@@ -1125,24 +1115,13 @@ export declare const ${factoryName}: ${upperName}
|
|
|
1125
1115
|
`,
|
|
1126
1116
|
jsxType: import_outdent17.outdent`
|
|
1127
1117
|
import type { ElementType, ComponentProps } from 'react'
|
|
1128
|
-
import type { JsxStyleProps,
|
|
1118
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
1129
1119
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
1130
1120
|
|
|
1131
1121
|
type Dict = Record<string, unknown>
|
|
1132
1122
|
|
|
1133
|
-
type HTMLProps = {
|
|
1134
|
-
htmlSize?: string | number
|
|
1135
|
-
htmlWidth?: string | number
|
|
1136
|
-
htmlHeight?: string | number
|
|
1137
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
1141
|
-
|
|
1142
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
1143
|
-
|
|
1144
1123
|
export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
|
|
1145
|
-
(props:
|
|
1124
|
+
(props: JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps): JSX.Element
|
|
1146
1125
|
displayName?: string
|
|
1147
1126
|
}
|
|
1148
1127
|
|
|
@@ -1150,7 +1129,7 @@ export type ${upperName} = {
|
|
|
1150
1129
|
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1151
1130
|
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1152
1131
|
|
|
1153
|
-
export type ${typeName}<T extends ElementType> =
|
|
1132
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
1154
1133
|
`
|
|
1155
1134
|
};
|
|
1156
1135
|
}
|
|
@@ -1335,26 +1314,15 @@ export declare const ${factoryName}: ${upperName}
|
|
|
1335
1314
|
`,
|
|
1336
1315
|
jsxType: import_outdent21.outdent`
|
|
1337
1316
|
import type { JSX, ComponentProps, Component } from 'solid-js'
|
|
1338
|
-
import type { JsxStyleProps,
|
|
1317
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
1339
1318
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
1340
1319
|
|
|
1341
1320
|
type Dict = Record<string, unknown>
|
|
1342
1321
|
|
|
1343
1322
|
type ElementType<P = any> = keyof JSX.IntrinsicElements | Component<P>
|
|
1344
1323
|
|
|
1345
|
-
type HTMLProps = {
|
|
1346
|
-
htmlSize?: string | number
|
|
1347
|
-
htmlWidth?: string | number
|
|
1348
|
-
htmlHeight?: string | number
|
|
1349
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
1353
|
-
|
|
1354
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
1355
|
-
|
|
1356
1324
|
export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
|
|
1357
|
-
(props:
|
|
1325
|
+
(props: JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps): JSX.Element
|
|
1358
1326
|
displayName?: string
|
|
1359
1327
|
}
|
|
1360
1328
|
|
|
@@ -1362,7 +1330,7 @@ export type ${upperName} = {
|
|
|
1362
1330
|
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1363
1331
|
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1364
1332
|
|
|
1365
|
-
export type ${typeName}<T extends ElementType> =
|
|
1333
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
1366
1334
|
`
|
|
1367
1335
|
};
|
|
1368
1336
|
}
|
|
@@ -1518,7 +1486,7 @@ export declare const ${factoryName}: ${upperName}
|
|
|
1518
1486
|
`,
|
|
1519
1487
|
jsxType: import_outdent24.outdent`
|
|
1520
1488
|
import type { Component, FunctionalComponent } from 'vue'
|
|
1521
|
-
import type { JsxStyleProps,
|
|
1489
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
1522
1490
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
1523
1491
|
|
|
1524
1492
|
type IntrinsicElement =
|
|
@@ -1648,26 +1616,15 @@ type IntrinsicElement =
|
|
|
1648
1616
|
? Props
|
|
1649
1617
|
: never
|
|
1650
1618
|
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
htmlHeight?: string | number
|
|
1655
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
1659
|
-
|
|
1660
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
1619
|
+
type ${componentName}<T extends ElementType, P extends Dict = {}> = FunctionalComponent<
|
|
1620
|
+
JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps
|
|
1621
|
+
>
|
|
1661
1622
|
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
>
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1668
|
-
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1669
|
-
|
|
1670
|
-
export type ${typeName}<T extends ElementType> = Polyfill<ComponentProps<T>> & JsxStyleProps
|
|
1623
|
+
export type ${upperName} = {
|
|
1624
|
+
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1625
|
+
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1626
|
+
|
|
1627
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
1671
1628
|
`
|
|
1672
1629
|
};
|
|
1673
1630
|
}
|
|
@@ -1765,7 +1722,7 @@ var csstype_d_ts_default = {
|
|
|
1765
1722
|
|
|
1766
1723
|
// src/artifacts/generated/system-types.d.ts.json
|
|
1767
1724
|
var system_types_d_ts_default = {
|
|
1768
|
-
content: "import type { ConditionalValue, Conditions, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\ntype ContainerProperties = {\n container?: string\n containerType?: 'size' | 'inline-size' | String\n containerName?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\ntype CssVarProperties = {\n [key in `--${string}`]?: string | number\n}\n\nexport type NativeCssProperties = PropertiesFallback<String | Number> & ContainerProperties\n\nexport type NativeCssProperty = keyof NativeCssProperties\n\nexport type CssProperties = NativeCssProperties & CssVarProperties\n\nexport type CssKeyframes = {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ntype MinimalNested<P> = {\n [K in keyof Conditions]?: Nested<P>\n}\n\ntype GenericProperties = {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties | GenericProperties>\n\nexport type GlobalStyleObject = {\n [selector: string]: SystemStyleObject\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<{\n [K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\n\nexport type JsxStyleProps = SystemProperties &\n MinimalNested<SystemStyleObject> & {\n css?: SystemStyleObject\n }\n"
|
|
1725
|
+
content: "import type { ConditionalValue, Conditions, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\ntype ContainerProperties = {\n container?: string\n containerType?: 'size' | 'inline-size' | String\n containerName?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\ntype CssVarProperties = {\n [key in `--${string}`]?: string | number\n}\n\nexport type NativeCssProperties = PropertiesFallback<String | Number> & ContainerProperties\n\nexport type NativeCssProperty = keyof NativeCssProperties\n\nexport type CssProperties = NativeCssProperties & CssVarProperties\n\nexport type CssKeyframes = {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ntype MinimalNested<P> = {\n [K in keyof Conditions]?: Nested<P>\n}\n\ntype GenericProperties = {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties | GenericProperties>\n\nexport type GlobalStyleObject = {\n [selector: string]: SystemStyleObject\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<{\n [K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\n\nexport type JsxStyleProps = SystemProperties &\n MinimalNested<SystemStyleObject> & {\n css?: SystemStyleObject\n }\n\ntype Assign<T, U> = Omit<T, keyof U> & U\n\ntype HTMLProps = {\n htmlSize?: string | number\n htmlWidth?: string | number\n htmlHeight?: string | number\n htmlTranslate?: 'yes' | 'no' | undefined\n}\n\ntype WithHTMLProps<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps\n\nexport type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<\n WithHTMLProps<T>,\n P\n>\n"
|
|
1769
1726
|
};
|
|
1770
1727
|
|
|
1771
1728
|
// src/artifacts/generated/composition.d.ts.json
|
|
@@ -1813,8 +1770,7 @@ var generateTypesEntry = () => ({
|
|
|
1813
1770
|
import './global'
|
|
1814
1771
|
export { ConditionalValue } from './conditions'
|
|
1815
1772
|
export { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
|
|
1816
|
-
|
|
1817
|
-
export type Assign<Target, Override> = Omit<Target, keyof Override> & Override
|
|
1773
|
+
|
|
1818
1774
|
`
|
|
1819
1775
|
});
|
|
1820
1776
|
|
package/dist/index.mjs
CHANGED
|
@@ -901,25 +901,15 @@ export declare const ${factoryName}: ${upperName}
|
|
|
901
901
|
`,
|
|
902
902
|
jsxType: outdent13`
|
|
903
903
|
import type { JSX, ComponentProps } from 'preact'
|
|
904
|
-
import type { JsxStyleProps,
|
|
904
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
905
905
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
906
906
|
|
|
907
|
-
type Dict = Record<string, unknown>
|
|
908
907
|
type ElementType = keyof JSX.IntrinsicElements
|
|
909
908
|
|
|
910
|
-
type
|
|
911
|
-
htmlSize?: string | number
|
|
912
|
-
htmlWidth?: string | number
|
|
913
|
-
htmlHeight?: string | number
|
|
914
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
918
|
-
|
|
919
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
909
|
+
type Dict = Record<string, unknown>
|
|
920
910
|
|
|
921
911
|
export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
|
|
922
|
-
(props:
|
|
912
|
+
(props: JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps): JSX.Element
|
|
923
913
|
displayName?: string
|
|
924
914
|
}
|
|
925
915
|
|
|
@@ -927,7 +917,7 @@ export type ${upperName} = {
|
|
|
927
917
|
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
928
918
|
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
929
919
|
|
|
930
|
-
export type ${typeName}<T extends ElementType> =
|
|
920
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
931
921
|
`
|
|
932
922
|
};
|
|
933
923
|
}
|
|
@@ -1094,24 +1084,13 @@ export declare const ${factoryName}: ${upperName}
|
|
|
1094
1084
|
`,
|
|
1095
1085
|
jsxType: outdent17`
|
|
1096
1086
|
import type { ElementType, ComponentProps } from 'react'
|
|
1097
|
-
import type { JsxStyleProps,
|
|
1087
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
1098
1088
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
1099
1089
|
|
|
1100
1090
|
type Dict = Record<string, unknown>
|
|
1101
1091
|
|
|
1102
|
-
type HTMLProps = {
|
|
1103
|
-
htmlSize?: string | number
|
|
1104
|
-
htmlWidth?: string | number
|
|
1105
|
-
htmlHeight?: string | number
|
|
1106
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
1110
|
-
|
|
1111
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
1112
|
-
|
|
1113
1092
|
export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
|
|
1114
|
-
(props:
|
|
1093
|
+
(props: JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps): JSX.Element
|
|
1115
1094
|
displayName?: string
|
|
1116
1095
|
}
|
|
1117
1096
|
|
|
@@ -1119,7 +1098,7 @@ export type ${upperName} = {
|
|
|
1119
1098
|
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1120
1099
|
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1121
1100
|
|
|
1122
|
-
export type ${typeName}<T extends ElementType> =
|
|
1101
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
1123
1102
|
`
|
|
1124
1103
|
};
|
|
1125
1104
|
}
|
|
@@ -1304,26 +1283,15 @@ export declare const ${factoryName}: ${upperName}
|
|
|
1304
1283
|
`,
|
|
1305
1284
|
jsxType: outdent21`
|
|
1306
1285
|
import type { JSX, ComponentProps, Component } from 'solid-js'
|
|
1307
|
-
import type { JsxStyleProps,
|
|
1286
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
1308
1287
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
1309
1288
|
|
|
1310
1289
|
type Dict = Record<string, unknown>
|
|
1311
1290
|
|
|
1312
1291
|
type ElementType<P = any> = keyof JSX.IntrinsicElements | Component<P>
|
|
1313
1292
|
|
|
1314
|
-
type HTMLProps = {
|
|
1315
|
-
htmlSize?: string | number
|
|
1316
|
-
htmlWidth?: string | number
|
|
1317
|
-
htmlHeight?: string | number
|
|
1318
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
1322
|
-
|
|
1323
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
1324
|
-
|
|
1325
1293
|
export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
|
|
1326
|
-
(props:
|
|
1294
|
+
(props: JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps): JSX.Element
|
|
1327
1295
|
displayName?: string
|
|
1328
1296
|
}
|
|
1329
1297
|
|
|
@@ -1331,7 +1299,7 @@ export type ${upperName} = {
|
|
|
1331
1299
|
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1332
1300
|
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1333
1301
|
|
|
1334
|
-
export type ${typeName}<T extends ElementType> =
|
|
1302
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
1335
1303
|
`
|
|
1336
1304
|
};
|
|
1337
1305
|
}
|
|
@@ -1487,7 +1455,7 @@ export declare const ${factoryName}: ${upperName}
|
|
|
1487
1455
|
`,
|
|
1488
1456
|
jsxType: outdent24`
|
|
1489
1457
|
import type { Component, FunctionalComponent } from 'vue'
|
|
1490
|
-
import type { JsxStyleProps,
|
|
1458
|
+
import type { JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
1491
1459
|
import type { RecipeDefinition, RecipeRuntimeFn, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
1492
1460
|
|
|
1493
1461
|
type IntrinsicElement =
|
|
@@ -1617,26 +1585,15 @@ type IntrinsicElement =
|
|
|
1617
1585
|
? Props
|
|
1618
1586
|
: never
|
|
1619
1587
|
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
htmlHeight?: string | number
|
|
1624
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
type Polyfill<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps
|
|
1628
|
-
|
|
1629
|
-
type Props<T extends Dict, P extends Dict = {}> = Assign<Polyfill<T>, P>
|
|
1588
|
+
type ${componentName}<T extends ElementType, P extends Dict = {}> = FunctionalComponent<
|
|
1589
|
+
JsxHTMLProps<ComponentProps<T>, P> & JsxStyleProps
|
|
1590
|
+
>
|
|
1630
1591
|
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
>
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1637
|
-
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1638
|
-
|
|
1639
|
-
export type ${typeName}<T extends ElementType> = Polyfill<ComponentProps<T>> & JsxStyleProps
|
|
1592
|
+
export type ${upperName} = {
|
|
1593
|
+
<T extends ElementType, P extends RecipeVariantRecord = {}>(component: T, recipe?: RecipeDefinition<P> | RecipeRuntimeFn<P>): ${componentName}<T, RecipeSelection<P>>
|
|
1594
|
+
} & { [K in keyof JSX.IntrinsicElements]: ${componentName}<K, {}> }
|
|
1595
|
+
|
|
1596
|
+
export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
1640
1597
|
`
|
|
1641
1598
|
};
|
|
1642
1599
|
}
|
|
@@ -1734,7 +1691,7 @@ var csstype_d_ts_default = {
|
|
|
1734
1691
|
|
|
1735
1692
|
// src/artifacts/generated/system-types.d.ts.json
|
|
1736
1693
|
var system_types_d_ts_default = {
|
|
1737
|
-
content: "import type { ConditionalValue, Conditions, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\ntype ContainerProperties = {\n container?: string\n containerType?: 'size' | 'inline-size' | String\n containerName?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\ntype CssVarProperties = {\n [key in `--${string}`]?: string | number\n}\n\nexport type NativeCssProperties = PropertiesFallback<String | Number> & ContainerProperties\n\nexport type NativeCssProperty = keyof NativeCssProperties\n\nexport type CssProperties = NativeCssProperties & CssVarProperties\n\nexport type CssKeyframes = {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ntype MinimalNested<P> = {\n [K in keyof Conditions]?: Nested<P>\n}\n\ntype GenericProperties = {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties | GenericProperties>\n\nexport type GlobalStyleObject = {\n [selector: string]: SystemStyleObject\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<{\n [K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\n\nexport type JsxStyleProps = SystemProperties &\n MinimalNested<SystemStyleObject> & {\n css?: SystemStyleObject\n }\n"
|
|
1694
|
+
content: "import type { ConditionalValue, Conditions, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\ntype ContainerProperties = {\n container?: string\n containerType?: 'size' | 'inline-size' | String\n containerName?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\ntype CssVarProperties = {\n [key in `--${string}`]?: string | number\n}\n\nexport type NativeCssProperties = PropertiesFallback<String | Number> & ContainerProperties\n\nexport type NativeCssProperty = keyof NativeCssProperties\n\nexport type CssProperties = NativeCssProperties & CssVarProperties\n\nexport type CssKeyframes = {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ntype MinimalNested<P> = {\n [K in keyof Conditions]?: Nested<P>\n}\n\ntype GenericProperties = {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties | GenericProperties>\n\nexport type GlobalStyleObject = {\n [selector: string]: SystemStyleObject\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<{\n [K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\n\nexport type JsxStyleProps = SystemProperties &\n MinimalNested<SystemStyleObject> & {\n css?: SystemStyleObject\n }\n\ntype Assign<T, U> = Omit<T, keyof U> & U\n\ntype HTMLProps = {\n htmlSize?: string | number\n htmlWidth?: string | number\n htmlHeight?: string | number\n htmlTranslate?: 'yes' | 'no' | undefined\n}\n\ntype WithHTMLProps<T> = Omit<T, 'color' | 'translate' | 'transition' | 'width' | 'height' | 'size'> & HTMLProps\n\nexport type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<\n WithHTMLProps<T>,\n P\n>\n"
|
|
1738
1695
|
};
|
|
1739
1696
|
|
|
1740
1697
|
// src/artifacts/generated/composition.d.ts.json
|
|
@@ -1782,8 +1739,7 @@ var generateTypesEntry = () => ({
|
|
|
1782
1739
|
import './global'
|
|
1783
1740
|
export { ConditionalValue } from './conditions'
|
|
1784
1741
|
export { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
|
|
1785
|
-
|
|
1786
|
-
export type Assign<Target, Override> = Omit<Target, keyof Override> & Override
|
|
1742
|
+
|
|
1787
1743
|
`
|
|
1788
1744
|
});
|
|
1789
1745
|
|
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-20230212144301",
|
|
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.1.4",
|
|
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-20230212144301",
|
|
24
|
+
"@pandacss/logger": "0.0.0-dev-20230212144301",
|
|
25
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230212144301",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230212144301",
|
|
27
|
+
"@pandacss/types": "0.0.0-dev-20230212144301",
|
|
28
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230212144301"
|
|
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-20230212144301"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"prebuild": "tsx scripts/prebuild.ts",
|