@pandacss/generator 0.0.0-dev-20230926160532 → 0.0.0-dev-20230927123747
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 +13 -11
- package/dist/index.mjs +13 -11
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1167,7 +1167,7 @@ function generateRecipes(ctx) {
|
|
|
1167
1167
|
[key in keyof ${upperName}Variant]?: ${compoundVariants?.length ? `${upperName}Variant[key]` : `ConditionalValue<${upperName}Variant[key]>`}
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
|
-
interface ${upperName}Recipe {
|
|
1170
|
+
export interface ${upperName}Recipe {
|
|
1171
1171
|
__type: ${upperName}VariantProps
|
|
1172
1172
|
(props?: ${upperName}VariantProps): ${(0, import_core4.isSlotRecipe)(config) ? `Pretty<Record<${(0, import_shared2.unionType)(config.slots)}, string>>` : "string"}
|
|
1173
1173
|
raw: (props?: ${upperName}VariantProps) => ${upperName}VariantProps
|
|
@@ -1649,7 +1649,7 @@ import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './r
|
|
|
1649
1649
|
|
|
1650
1650
|
type ElementType = keyof QwikIntrinsicElements | Component<any>
|
|
1651
1651
|
|
|
1652
|
-
type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1652
|
+
export type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1653
1653
|
? QwikIntrinsicElements[T]
|
|
1654
1654
|
: T extends Component<infer P>
|
|
1655
1655
|
? P
|
|
@@ -1743,7 +1743,7 @@ import type { Component, QwikIntrinsicElements } from '@builder.io/qwik'
|
|
|
1743
1743
|
|
|
1744
1744
|
type ElementType = keyof QwikIntrinsicElements | Component<any>
|
|
1745
1745
|
|
|
1746
|
-
type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1746
|
+
export type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1747
1747
|
? QwikIntrinsicElements[T]
|
|
1748
1748
|
: T extends Component<infer P>
|
|
1749
1749
|
? P
|
|
@@ -1936,7 +1936,7 @@ ${ctx.file.importType("RecipeDefinition, RecipeSelection, RecipeVariantRecord",
|
|
|
1936
1936
|
|
|
1937
1937
|
type Dict = Record<string, unknown>
|
|
1938
1938
|
|
|
1939
|
-
type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
1939
|
+
export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
1940
1940
|
ref?: Ref<ElementRef<T>>
|
|
1941
1941
|
}
|
|
1942
1942
|
|
|
@@ -2031,7 +2031,7 @@ ${ctx.file.importType("DistributiveOmit", "../types/system-types")}
|
|
|
2031
2031
|
|
|
2032
2032
|
type Dict = Record<string, unknown>
|
|
2033
2033
|
|
|
2034
|
-
type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
2034
|
+
export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
2035
2035
|
ref?: Ref<ElementRef<T>>
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
@@ -2511,7 +2511,7 @@ ${ctx.file.importType("Assign, JsxStyleProps, JsxHTMLProps", "./system-types")}
|
|
|
2511
2511
|
type IntrinsicElement = keyof NativeElements
|
|
2512
2512
|
type ElementType = IntrinsicElement | Component
|
|
2513
2513
|
|
|
2514
|
-
type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2514
|
+
export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2515
2515
|
? NativeElements[T]
|
|
2516
2516
|
: T extends Component<infer Props>
|
|
2517
2517
|
? Props
|
|
@@ -2557,7 +2557,7 @@ import type { Component, FunctionalComponent, NativeElements } from 'vue'
|
|
|
2557
2557
|
type IntrinsicElement = keyof NativeElements
|
|
2558
2558
|
type ElementType = IntrinsicElement | Component
|
|
2559
2559
|
|
|
2560
|
-
type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2560
|
+
export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2561
2561
|
? NativeElements[T]
|
|
2562
2562
|
: T extends Component<infer Props>
|
|
2563
2563
|
? Props
|
|
@@ -2759,10 +2759,12 @@ var generateTypesEntry = (ctx) => ({
|
|
|
2759
2759
|
// We need to export types used in the global.d.ts here to avoid TS errors such as `The inferred type of 'xxx' cannot be named without a reference to 'yyy'`
|
|
2760
2760
|
index: import_outdent39.outdent`
|
|
2761
2761
|
import '${ctx.file.extDts("./global")}'
|
|
2762
|
-
${ctx.file.
|
|
2763
|
-
${ctx.file.
|
|
2764
|
-
${ctx.file.
|
|
2765
|
-
${ctx.file.
|
|
2762
|
+
${ctx.file.exportTypeStar("./conditions")}
|
|
2763
|
+
${ctx.file.exportTypeStar("./pattern")}
|
|
2764
|
+
${ctx.file.exportTypeStar("./recipe")}
|
|
2765
|
+
${ctx.file.exportTypeStar("./system-types")}
|
|
2766
|
+
${ctx.file.exportTypeStar("./jsx")}
|
|
2767
|
+
${ctx.file.exportTypeStar("./style-props")}
|
|
2766
2768
|
|
|
2767
2769
|
`,
|
|
2768
2770
|
helpers: import_outdent39.outdent`
|
package/dist/index.mjs
CHANGED
|
@@ -1136,7 +1136,7 @@ function generateRecipes(ctx) {
|
|
|
1136
1136
|
[key in keyof ${upperName}Variant]?: ${compoundVariants?.length ? `${upperName}Variant[key]` : `ConditionalValue<${upperName}Variant[key]>`}
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
|
-
interface ${upperName}Recipe {
|
|
1139
|
+
export interface ${upperName}Recipe {
|
|
1140
1140
|
__type: ${upperName}VariantProps
|
|
1141
1141
|
(props?: ${upperName}VariantProps): ${isSlotRecipe(config) ? `Pretty<Record<${unionType2(config.slots)}, string>>` : "string"}
|
|
1142
1142
|
raw: (props?: ${upperName}VariantProps) => ${upperName}VariantProps
|
|
@@ -1618,7 +1618,7 @@ import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './r
|
|
|
1618
1618
|
|
|
1619
1619
|
type ElementType = keyof QwikIntrinsicElements | Component<any>
|
|
1620
1620
|
|
|
1621
|
-
type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1621
|
+
export type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1622
1622
|
? QwikIntrinsicElements[T]
|
|
1623
1623
|
: T extends Component<infer P>
|
|
1624
1624
|
? P
|
|
@@ -1712,7 +1712,7 @@ import type { Component, QwikIntrinsicElements } from '@builder.io/qwik'
|
|
|
1712
1712
|
|
|
1713
1713
|
type ElementType = keyof QwikIntrinsicElements | Component<any>
|
|
1714
1714
|
|
|
1715
|
-
type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1715
|
+
export type ComponentProps<T extends ElementType> = T extends keyof QwikIntrinsicElements
|
|
1716
1716
|
? QwikIntrinsicElements[T]
|
|
1717
1717
|
: T extends Component<infer P>
|
|
1718
1718
|
? P
|
|
@@ -1905,7 +1905,7 @@ ${ctx.file.importType("RecipeDefinition, RecipeSelection, RecipeVariantRecord",
|
|
|
1905
1905
|
|
|
1906
1906
|
type Dict = Record<string, unknown>
|
|
1907
1907
|
|
|
1908
|
-
type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
1908
|
+
export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
1909
1909
|
ref?: Ref<ElementRef<T>>
|
|
1910
1910
|
}
|
|
1911
1911
|
|
|
@@ -2000,7 +2000,7 @@ ${ctx.file.importType("DistributiveOmit", "../types/system-types")}
|
|
|
2000
2000
|
|
|
2001
2001
|
type Dict = Record<string, unknown>
|
|
2002
2002
|
|
|
2003
|
-
type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
2003
|
+
export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
2004
2004
|
ref?: Ref<ElementRef<T>>
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
@@ -2480,7 +2480,7 @@ ${ctx.file.importType("Assign, JsxStyleProps, JsxHTMLProps", "./system-types")}
|
|
|
2480
2480
|
type IntrinsicElement = keyof NativeElements
|
|
2481
2481
|
type ElementType = IntrinsicElement | Component
|
|
2482
2482
|
|
|
2483
|
-
type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2483
|
+
export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2484
2484
|
? NativeElements[T]
|
|
2485
2485
|
: T extends Component<infer Props>
|
|
2486
2486
|
? Props
|
|
@@ -2526,7 +2526,7 @@ import type { Component, FunctionalComponent, NativeElements } from 'vue'
|
|
|
2526
2526
|
type IntrinsicElement = keyof NativeElements
|
|
2527
2527
|
type ElementType = IntrinsicElement | Component
|
|
2528
2528
|
|
|
2529
|
-
type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2529
|
+
export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
2530
2530
|
? NativeElements[T]
|
|
2531
2531
|
: T extends Component<infer Props>
|
|
2532
2532
|
? Props
|
|
@@ -2728,10 +2728,12 @@ var generateTypesEntry = (ctx) => ({
|
|
|
2728
2728
|
// We need to export types used in the global.d.ts here to avoid TS errors such as `The inferred type of 'xxx' cannot be named without a reference to 'yyy'`
|
|
2729
2729
|
index: outdent39`
|
|
2730
2730
|
import '${ctx.file.extDts("./global")}'
|
|
2731
|
-
${ctx.file.
|
|
2732
|
-
${ctx.file.
|
|
2733
|
-
${ctx.file.
|
|
2734
|
-
${ctx.file.
|
|
2731
|
+
${ctx.file.exportTypeStar("./conditions")}
|
|
2732
|
+
${ctx.file.exportTypeStar("./pattern")}
|
|
2733
|
+
${ctx.file.exportTypeStar("./recipe")}
|
|
2734
|
+
${ctx.file.exportTypeStar("./system-types")}
|
|
2735
|
+
${ctx.file.exportTypeStar("./jsx")}
|
|
2736
|
+
${ctx.file.exportTypeStar("./style-props")}
|
|
2735
2737
|
|
|
2736
2738
|
`,
|
|
2737
2739
|
helpers: outdent39`
|
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-20230927123747",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"pluralize": "8.0.0",
|
|
21
21
|
"postcss": "8.4.27",
|
|
22
22
|
"ts-pattern": "5.0.5",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
25
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
28
|
-
"@pandacss/types": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230927123747",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230927123747",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230927123747",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230927123747",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230927123747",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230927123747"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.30",
|
|
32
32
|
"hookable": "5.5.3",
|
|
33
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
33
|
+
"@pandacss/fixture": "0.0.0-dev-20230927123747"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|