@pandacss/generator 1.2.0 → 1.3.0

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.
Files changed (3) hide show
  1. package/dist/index.js +105 -35
  2. package/dist/index.mjs +105 -35
  3. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1031,7 +1031,7 @@ function generatePreactJsxFactory(ctx) {
1031
1031
  ...normalizeHTMLProps(htmlProps),
1032
1032
  ref,
1033
1033
  className: classes()
1034
- }, combinedProps.children ?? children)
1034
+ }, children ?? combinedProps.children)
1035
1035
  })
1036
1036
 
1037
1037
  const name = getDisplayName(__base__)
@@ -1164,9 +1164,16 @@ export interface UnstyledProps {
1164
1164
  unstyled?: boolean | undefined
1165
1165
  }
1166
1166
 
1167
+ export interface AsProps {
1168
+ /**
1169
+ * The element to render as
1170
+ */
1171
+ as?: ElementType | undefined
1172
+ }
1173
+
1167
1174
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> {
1168
- (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>): JSX.Element
1169
- displayName?: string
1175
+ (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
1176
+ displayName?: string | undefined
1170
1177
  }
1171
1178
 
1172
1179
  interface RecipeFn {
@@ -1175,12 +1182,12 @@ interface RecipeFn {
1175
1182
 
1176
1183
  export interface JsxFactoryOptions<TProps extends Dict> {
1177
1184
  dataAttr?: boolean
1178
- defaultProps?: TProps
1185
+ defaultProps?: Partial<TProps>
1179
1186
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
1180
1187
  forwardProps?: string[]
1181
1188
  }
1182
1189
 
1183
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>
1190
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>
1184
1191
 
1185
1192
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
1186
1193
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -1201,7 +1208,7 @@ export type JsxElements = {
1201
1208
 
1202
1209
  export type ${upperName} = JsxFactory & JsxElements
1203
1210
 
1204
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
1211
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
1205
1212
 
1206
1213
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
1207
1214
  `
@@ -1439,9 +1446,16 @@ interface Dict {
1439
1446
  [k: string]: unknown
1440
1447
  }
1441
1448
 
1449
+ export interface AsProps {
1450
+ /**
1451
+ * The element to render as
1452
+ */
1453
+ as?: ElementType | undefined
1454
+ }
1455
+
1442
1456
  export type ${componentName}<T extends ElementType> = {
1443
- (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
1444
- displayName?: string
1457
+ (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T> & AsProps) => JSX.Element
1458
+ displayName?: string | undefined
1445
1459
  }
1446
1460
 
1447
1461
  export interface JsxFactory {
@@ -1527,7 +1541,7 @@ function generateQwikJsxFactory(ctx) {
1527
1541
  ...elementProps,
1528
1542
  ...normalizeHTMLProps(htmlProps),
1529
1543
  class: classes(),
1530
- }, combinedProps.children ?? children)
1544
+ }, children ?? combinedProps.children)
1531
1545
  }
1532
1546
 
1533
1547
  const name = getDisplayName(__base__)
@@ -1666,7 +1680,14 @@ export interface UnstyledProps {
1666
1680
  unstyled?: boolean | undefined
1667
1681
  }
1668
1682
 
1669
- export interface ${componentName}<T extends ElementType, P extends Dict = {}> extends Component<Assign<ComponentProps<T> & UnstyledProps, Assign<PatchedHTMLProps, Assign<JsxStyleProps, P>>>> {}
1683
+ export interface AsProps {
1684
+ /**
1685
+ * The element to render as
1686
+ */
1687
+ as?: ElementType | undefined
1688
+ }
1689
+
1690
+ export interface ${componentName}<T extends ElementType, P extends Dict = {}> extends Component<Assign<ComponentProps<T> & UnstyledProps & AsProps, Assign<PatchedHTMLProps, Assign<JsxStyleProps, P>>>> {}
1670
1691
 
1671
1692
  interface RecipeFn {
1672
1693
  __type: any
@@ -1674,12 +1695,12 @@ interface RecipeFn {
1674
1695
 
1675
1696
  export interface JsxFactoryOptions<TProps extends Dict> {
1676
1697
  dataAttr?: boolean
1677
- defaultProps?: TProps
1698
+ defaultProps?: Partial<TProps>
1678
1699
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
1679
1700
  forwardProps?: string[]
1680
1701
  }
1681
1702
 
1682
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>;
1703
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
1683
1704
 
1684
1705
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
1685
1706
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -1700,7 +1721,7 @@ export type JsxElements = {
1700
1721
 
1701
1722
  export type ${upperName} = JsxFactory & JsxElements
1702
1723
 
1703
- export type ${typeName}<T extends ElementType> = Assign<ComponentProps<T> & UnstyledProps, JsxStyleProps>
1724
+ export type ${typeName}<T extends ElementType> = Assign<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
1704
1725
 
1705
1726
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
1706
1727
  `
@@ -1791,8 +1812,15 @@ interface Dict {
1791
1812
  [k: string]: unknown
1792
1813
  }
1793
1814
 
1815
+ export interface AsProps {
1816
+ /**
1817
+ * The element to render as
1818
+ */
1819
+ as?: ElementType | undefined
1820
+ }
1821
+
1794
1822
  export type ${componentName}<T extends ElementType> = {
1795
- (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
1823
+ (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T> & AsProps) => JSX.Element
1796
1824
  }
1797
1825
 
1798
1826
  export interface JsxFactory {
@@ -1878,7 +1906,7 @@ function generateReactJsxFactory(ctx) {
1878
1906
  ...elementProps,
1879
1907
  ...normalizeHTMLProps(htmlProps),
1880
1908
  className: classes(),
1881
- }, combinedProps.children ?? children)
1909
+ }, children ?? combinedProps.children)
1882
1910
  })
1883
1911
 
1884
1912
  const name = getDisplayName(__base__)
@@ -2009,13 +2037,20 @@ export interface UnstyledProps {
2009
2037
  unstyled?: boolean | undefined
2010
2038
  }
2011
2039
 
2040
+ export interface AsProps {
2041
+ /**
2042
+ * The element to render as
2043
+ */
2044
+ as?: ElementType | undefined
2045
+ }
2046
+
2012
2047
  export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
2013
2048
  ref?: Ref<ElementRef<T>>
2014
2049
  }
2015
2050
 
2016
2051
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> {
2017
- (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>): JSX.Element
2018
- displayName?: string
2052
+ (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
2053
+ displayName?: string | undefined
2019
2054
  }
2020
2055
 
2021
2056
  interface RecipeFn {
@@ -2024,12 +2059,12 @@ interface RecipeFn {
2024
2059
 
2025
2060
  interface JsxFactoryOptions<TProps extends Dict> {
2026
2061
  dataAttr?: boolean
2027
- defaultProps?: TProps
2062
+ defaultProps?: Partial<TProps>
2028
2063
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
2029
2064
  forwardProps?: string[]
2030
2065
  }
2031
2066
 
2032
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>;
2067
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
2033
2068
 
2034
2069
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
2035
2070
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -2050,7 +2085,7 @@ export type JsxElements = {
2050
2085
 
2051
2086
  export type ${upperName} = JsxFactory & JsxElements
2052
2087
 
2053
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
2088
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
2054
2089
 
2055
2090
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
2056
2091
  `
@@ -2287,13 +2322,20 @@ interface Dict {
2287
2322
  [k: string]: unknown
2288
2323
  }
2289
2324
 
2325
+ export interface AsProps {
2326
+ /**
2327
+ * The element to render as
2328
+ */
2329
+ as?: ElementType | undefined
2330
+ }
2331
+
2290
2332
  export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
2291
2333
  ref?: Ref<ElementRef<T>>
2292
- }
2334
+ } & AsProps
2293
2335
 
2294
2336
  export type ${componentName}<T extends ElementType> = {
2295
2337
  (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
2296
- displayName?: string
2338
+ displayName?: string | undefined
2297
2339
  }
2298
2340
 
2299
2341
  export interface JsxFactory {
@@ -2563,11 +2605,18 @@ export interface UnstyledProps {
2563
2605
  unstyled?: boolean | undefined
2564
2606
  }
2565
2607
 
2608
+ export interface AsProps {
2609
+ /**
2610
+ * The element to render as
2611
+ */
2612
+ as?: ElementType | undefined
2613
+ }
2614
+
2566
2615
  export type ElementType<P = any> = keyof JSX.IntrinsicElements | Component<P>
2567
2616
 
2568
2617
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> {
2569
- (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>): JSX.Element
2570
- displayName?: string
2618
+ (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
2619
+ displayName?: string | undefined
2571
2620
  }
2572
2621
 
2573
2622
  interface RecipeFn {
@@ -2576,12 +2625,12 @@ interface RecipeFn {
2576
2625
 
2577
2626
  export interface JsxFactoryOptions<TProps extends Dict> {
2578
2627
  dataAttr?: boolean
2579
- defaultProps?: TProps
2628
+ defaultProps?: Partial<TProps>
2580
2629
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
2581
2630
  forwardProps?: string[]
2582
2631
  }
2583
2632
 
2584
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>;
2633
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
2585
2634
 
2586
2635
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
2587
2636
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -2602,7 +2651,7 @@ export type JsxElements = {
2602
2651
 
2603
2652
  export type ${upperName} = JsxFactory & JsxElements
2604
2653
 
2605
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
2654
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
2606
2655
 
2607
2656
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
2608
2657
  `
@@ -2868,11 +2917,18 @@ interface Dict {
2868
2917
  [k: string]: unknown
2869
2918
  }
2870
2919
 
2920
+ export interface AsProps {
2921
+ /**
2922
+ * The element to render as
2923
+ */
2924
+ as?: ElementType | undefined
2925
+ }
2926
+
2871
2927
  export type ElementType<P = any> = keyof JSX.IntrinsicElements | Component<P>
2872
2928
 
2873
2929
  export type ${componentName}<T extends ElementType> = {
2874
- (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
2875
- displayName?: string
2930
+ (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T> & AsProps) => JSX.Element
2931
+ displayName?: string | undefined
2876
2932
  }
2877
2933
 
2878
2934
  export interface JsxFactory {
@@ -3146,8 +3202,15 @@ export interface UnstyledProps {
3146
3202
  unstyled?: boolean | undefined
3147
3203
  }
3148
3204
 
3205
+ export interface AsProps {
3206
+ /**
3207
+ * The element to render as
3208
+ */
3209
+ as?: ElementType | undefined
3210
+ }
3211
+
3149
3212
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> extends FunctionalComponent<
3150
- JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>
3213
+ JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>
3151
3214
  > {}
3152
3215
 
3153
3216
  interface RecipeFn {
@@ -3156,12 +3219,12 @@ interface RecipeFn {
3156
3219
 
3157
3220
  export interface JsxFactoryOptions<TProps extends Dict> {
3158
3221
  dataAttr?: boolean
3159
- defaultProps?: TProps
3222
+ defaultProps?: Partial<TProps>
3160
3223
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
3161
3224
  forwardProps?: string[]
3162
3225
  }
3163
3226
 
3164
- export type JsxRecipeProps<T extends ElementType, P extends RecipeFn> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P['__type']>>;
3227
+ export type JsxRecipeProps<T extends ElementType, P extends RecipeFn> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P['__type']>>;
3165
3228
 
3166
3229
  export type JsxElement<T extends ElementType, P> = T extends ${componentName}<infer A, infer B>
3167
3230
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -3182,7 +3245,7 @@ export type JsxElements = {
3182
3245
 
3183
3246
  export type ${upperName} = JsxFactory & JsxElements
3184
3247
 
3185
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
3248
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
3186
3249
 
3187
3250
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
3188
3251
  `
@@ -3492,8 +3555,15 @@ export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
3492
3555
  ? Props
3493
3556
  : never
3494
3557
 
3558
+ export interface AsProps {
3559
+ /**
3560
+ * The element to render as
3561
+ */
3562
+ as?: ElementType | undefined
3563
+ }
3564
+
3495
3565
  export type ${componentName}<T extends ElementType> = {
3496
- (args: { raw: readonly string[] | ArrayLike<string> }): FunctionalComponent<ComponentProps<T>>
3566
+ (args: { raw: readonly string[] | ArrayLike<string> }): FunctionalComponent<ComponentProps<T> & AsProps>
3497
3567
  }
3498
3568
 
3499
3569
  export interface JsxFactory {
@@ -3583,7 +3653,7 @@ var import_ts_pattern14 = require("ts-pattern");
3583
3653
 
3584
3654
  // src/artifacts/generated/composition.d.ts.json
3585
3655
  var composition_d_ts_default = {
3586
- content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'font'\n | 'fontFamily'\n | 'fontFeatureSettings'\n | 'fontKerning'\n | 'fontLanguageOverride'\n | 'fontOpticalSizing'\n | 'fontPalette'\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontStretch'\n | 'fontStyle'\n | 'fontSynthesis'\n | 'fontVariant'\n | 'fontVariantAlternates'\n | 'fontVariantCaps'\n | 'fontVariantLigatures'\n | 'fontVariantNumeric'\n | 'fontVariantPosition'\n | 'fontVariationSettings'\n | 'fontWeight'\n | 'hypens'\n | 'hyphenateCharacter'\n | 'hyphenateLimitChars'\n | 'letterSpacing'\n | 'lineBreak'\n | 'lineHeight'\n | 'quotes'\n | 'overflowWrap'\n | 'textCombineUpright'\n | 'textDecoration'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationSkipInk'\n | 'textDecorationStyle'\n | 'textDecorationThickness'\n | 'textEmphasis'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'textIndent'\n | 'textJustify'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\n | 'textShadow'\n | 'textTransform'\n | 'textUnderlineOffset'\n | 'textUnderlinePosition'\n | 'textWrap'\n | 'textWrapMode'\n | 'textWrapStyle'\n | 'verticalAlign'\n | 'whiteSpace'\n | 'wordBreak'\n | 'wordSpacing'\n\nexport type TextStyle = CompositionStyleObject<TextStyleProperty>\n\nexport type TextStyles = Recursive<Token<TextStyle>>\n\n/* -----------------------------------------------------------------------------\n * Layer styles\n * -----------------------------------------------------------------------------*/\n\ntype Placement =\n | 'Top'\n | 'Right'\n | 'Bottom'\n | 'Left'\n | 'Inline'\n | 'Block'\n | 'InlineStart'\n | 'InlineEnd'\n | 'BlockStart'\n | 'BlockEnd'\n\ntype Radius =\n | `Top${'Right' | 'Left'}`\n | `Bottom${'Right' | 'Left'}`\n | `Start${'Start' | 'End'}`\n | `End${'Start' | 'End'}`\n\ntype LayerStyleProperty =\n | 'background'\n | 'backgroundColor'\n | 'backgroundImage'\n | 'borderRadius'\n | 'border'\n | 'borderWidth'\n | 'borderColor'\n | 'borderStyle'\n | 'boxShadow'\n | 'filter'\n | 'backdropFilter'\n | 'transform'\n | 'color'\n | 'opacity'\n | 'backgroundBlendMode'\n | 'backgroundAttachment'\n | 'backgroundClip'\n | 'backgroundOrigin'\n | 'backgroundPosition'\n | 'backgroundRepeat'\n | 'backgroundSize'\n | `border${Placement}`\n | `border${Placement}Width`\n | 'borderRadius'\n | `border${Radius}Radius`\n | `border${Placement}Color`\n | `border${Placement}Style`\n | 'padding'\n | `padding${Placement}`\n\nexport type LayerStyle = CompositionStyleObject<LayerStyleProperty>\n\nexport type LayerStyles = Recursive<Token<LayerStyle>>\n\n/* -----------------------------------------------------------------------------\n * Motion styles\n * -----------------------------------------------------------------------------*/\n\ntype AnimationStyleProperty =\n | 'animation'\n | 'animationComposition'\n | 'animationDelay'\n | 'animationDirection'\n | 'animationDuration'\n | 'animationFillMode'\n | 'animationIterationCount'\n | 'animationName'\n | 'animationPlayState'\n | 'animationTimingFunction'\n | 'animationRange'\n | 'animationRangeStart'\n | 'animationRangeEnd'\n | 'animationTimeline'\n | 'transformOrigin'\n\nexport type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>\n\nexport type AnimationStyles = Recursive<Token<AnimationStyle>>\n\nexport interface CompositionStyles {\n textStyles: TextStyles\n layerStyles: LayerStyles\n animationStyles: AnimationStyles\n}\n"
3656
+ content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'color'\n | 'direction'\n | 'font'\n | 'fontFamily'\n | 'fontFeatureSettings'\n | 'fontKerning'\n | 'fontLanguageOverride'\n | 'fontOpticalSizing'\n | 'fontPalette'\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontStretch'\n | 'fontStyle'\n | 'fontSynthesis'\n | 'fontVariant'\n | 'fontVariantAlternates'\n | 'fontVariantCaps'\n | 'fontVariantLigatures'\n | 'fontVariantNumeric'\n | 'fontVariantPosition'\n | 'fontVariationSettings'\n | 'fontWeight'\n | 'hangingPunctuation'\n | 'hypens'\n | 'hyphenateCharacter'\n | 'hyphenateLimitChars'\n | 'letterSpacing'\n | 'lineBreak'\n | 'lineHeight'\n | 'quotes'\n | 'overflowWrap'\n | 'tabSize'\n | 'textAlign'\n | 'textAlignLast'\n | 'textCombineUpright'\n | 'textDecoration'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationSkip'\n | 'textDecorationSkipBox'\n | 'textDecorationSkipInk'\n | 'textDecorationSkipInset'\n | 'textDecorationStyle'\n | 'textDecorationThickness'\n | 'textEmphasis'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'textIndent'\n | 'textJustify'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\n | 'textShadow'\n | 'textStroke'\n | 'textStrokeColor'\n | 'textStrokeWidth'\n | 'textTransform'\n | 'textUnderlineOffset'\n | 'textUnderlinePosition'\n | 'textWrap'\n | 'textWrapMode'\n | 'textWrapStyle'\n | 'unicodeBidi'\n | 'verticalAlign'\n | 'whiteSpace'\n | 'wordBreak'\n | 'wordSpacing'\n | 'writingMode'\n\nexport type TextStyle = CompositionStyleObject<TextStyleProperty>\n\nexport type TextStyles = Recursive<Token<TextStyle>>\n\n/* -----------------------------------------------------------------------------\n * Layer styles\n * -----------------------------------------------------------------------------*/\n\ntype LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'\n\ntype PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'\n\ntype Placement = PhysicalPlacement | LogicalPlacement\n\ntype Radius =\n | `Top${'Right' | 'Left'}`\n | `Bottom${'Right' | 'Left'}`\n | `Start${'Start' | 'End'}`\n | `End${'Start' | 'End'}`\n\ntype LayerStyleProperty =\n | 'aspectRatio'\n | 'background'\n | 'backgroundColor'\n | 'backgroundImage'\n | 'border'\n | 'borderColor'\n | 'borderImage'\n | 'borderImageOutset'\n | 'borderImageRepeat'\n | 'borderImageSlice'\n | 'borderImageSource'\n | 'borderImageWidth'\n | 'borderRadius'\n | 'borderStyle'\n | 'borderWidth'\n | `border${Placement}`\n | `border${Placement}Color`\n | `border${Placement}Style`\n | `border${Placement}Width`\n | 'borderRadius'\n | `border${Radius}Radius`\n | 'boxShadow'\n | 'boxShadowColor'\n | 'clipPath'\n | 'color'\n | 'contain'\n | 'content'\n | 'contentVisibility'\n | 'cursor'\n | 'display'\n | 'filter'\n | 'backdropFilter'\n | 'height'\n | 'width'\n | 'minHeight'\n | 'minWidth'\n | 'maxHeight'\n | 'maxWidth'\n | `margin${Placement}`\n | 'inset'\n | `inset${LogicalPlacement}`\n | Lowercase<PhysicalPlacement>\n | 'isolation'\n | 'mask'\n | 'maskClip'\n | 'maskComposite'\n | 'maskImage'\n | 'maskMode'\n | 'maskOrigin'\n | 'maskPosition'\n | 'maskRepeat'\n | 'maskSize'\n | 'mixBlendMode'\n | 'objectFit'\n | 'objectPosition'\n | 'opacity'\n | 'outline'\n | 'outlineColor'\n | 'outlineOffset'\n | 'outlineStyle'\n | 'outlineWidth'\n | 'overflow'\n | 'overflowX'\n | 'overflowY'\n | 'padding'\n | `padding${Placement}`\n | 'pointerEvents'\n | 'position'\n | 'resize'\n | 'transform'\n | 'transition'\n | 'visibility'\n | 'willChange'\n | 'zIndex'\n | 'backgroundBlendMode'\n | 'backgroundAttachment'\n | 'backgroundClip'\n | 'backgroundOrigin'\n | 'backgroundPosition'\n | 'backgroundRepeat'\n | 'backgroundSize'\n\nexport type LayerStyle = CompositionStyleObject<LayerStyleProperty>\n\nexport type LayerStyles = Recursive<Token<LayerStyle>>\n\n/* -----------------------------------------------------------------------------\n * Motion styles\n * -----------------------------------------------------------------------------*/\n\ntype AnimationStyleProperty =\n | 'animation'\n | 'animationComposition'\n | 'animationDelay'\n | 'animationDirection'\n | 'animationDuration'\n | 'animationFillMode'\n | 'animationIterationCount'\n | 'animationName'\n | 'animationPlayState'\n | 'animationTimingFunction'\n | 'animationRange'\n | 'animationRangeStart'\n | 'animationRangeEnd'\n | 'animationTimeline'\n | 'transformOrigin'\n\nexport type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>\n\nexport type AnimationStyles = Recursive<Token<AnimationStyle>>\n\nexport interface CompositionStyles {\n textStyles: TextStyles\n layerStyles: LayerStyles\n animationStyles: AnimationStyles\n}\n"
3587
3657
  };
3588
3658
 
3589
3659
  // src/artifacts/generated/csstype.d.ts.json
package/dist/index.mjs CHANGED
@@ -995,7 +995,7 @@ function generatePreactJsxFactory(ctx) {
995
995
  ...normalizeHTMLProps(htmlProps),
996
996
  ref,
997
997
  className: classes()
998
- }, combinedProps.children ?? children)
998
+ }, children ?? combinedProps.children)
999
999
  })
1000
1000
 
1001
1001
  const name = getDisplayName(__base__)
@@ -1128,9 +1128,16 @@ export interface UnstyledProps {
1128
1128
  unstyled?: boolean | undefined
1129
1129
  }
1130
1130
 
1131
+ export interface AsProps {
1132
+ /**
1133
+ * The element to render as
1134
+ */
1135
+ as?: ElementType | undefined
1136
+ }
1137
+
1131
1138
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> {
1132
- (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>): JSX.Element
1133
- displayName?: string
1139
+ (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
1140
+ displayName?: string | undefined
1134
1141
  }
1135
1142
 
1136
1143
  interface RecipeFn {
@@ -1139,12 +1146,12 @@ interface RecipeFn {
1139
1146
 
1140
1147
  export interface JsxFactoryOptions<TProps extends Dict> {
1141
1148
  dataAttr?: boolean
1142
- defaultProps?: TProps
1149
+ defaultProps?: Partial<TProps>
1143
1150
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
1144
1151
  forwardProps?: string[]
1145
1152
  }
1146
1153
 
1147
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>
1154
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>
1148
1155
 
1149
1156
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
1150
1157
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -1165,7 +1172,7 @@ export type JsxElements = {
1165
1172
 
1166
1173
  export type ${upperName} = JsxFactory & JsxElements
1167
1174
 
1168
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
1175
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
1169
1176
 
1170
1177
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
1171
1178
  `
@@ -1403,9 +1410,16 @@ interface Dict {
1403
1410
  [k: string]: unknown
1404
1411
  }
1405
1412
 
1413
+ export interface AsProps {
1414
+ /**
1415
+ * The element to render as
1416
+ */
1417
+ as?: ElementType | undefined
1418
+ }
1419
+
1406
1420
  export type ${componentName}<T extends ElementType> = {
1407
- (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
1408
- displayName?: string
1421
+ (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T> & AsProps) => JSX.Element
1422
+ displayName?: string | undefined
1409
1423
  }
1410
1424
 
1411
1425
  export interface JsxFactory {
@@ -1491,7 +1505,7 @@ function generateQwikJsxFactory(ctx) {
1491
1505
  ...elementProps,
1492
1506
  ...normalizeHTMLProps(htmlProps),
1493
1507
  class: classes(),
1494
- }, combinedProps.children ?? children)
1508
+ }, children ?? combinedProps.children)
1495
1509
  }
1496
1510
 
1497
1511
  const name = getDisplayName(__base__)
@@ -1630,7 +1644,14 @@ export interface UnstyledProps {
1630
1644
  unstyled?: boolean | undefined
1631
1645
  }
1632
1646
 
1633
- export interface ${componentName}<T extends ElementType, P extends Dict = {}> extends Component<Assign<ComponentProps<T> & UnstyledProps, Assign<PatchedHTMLProps, Assign<JsxStyleProps, P>>>> {}
1647
+ export interface AsProps {
1648
+ /**
1649
+ * The element to render as
1650
+ */
1651
+ as?: ElementType | undefined
1652
+ }
1653
+
1654
+ export interface ${componentName}<T extends ElementType, P extends Dict = {}> extends Component<Assign<ComponentProps<T> & UnstyledProps & AsProps, Assign<PatchedHTMLProps, Assign<JsxStyleProps, P>>>> {}
1634
1655
 
1635
1656
  interface RecipeFn {
1636
1657
  __type: any
@@ -1638,12 +1659,12 @@ interface RecipeFn {
1638
1659
 
1639
1660
  export interface JsxFactoryOptions<TProps extends Dict> {
1640
1661
  dataAttr?: boolean
1641
- defaultProps?: TProps
1662
+ defaultProps?: Partial<TProps>
1642
1663
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
1643
1664
  forwardProps?: string[]
1644
1665
  }
1645
1666
 
1646
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>;
1667
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
1647
1668
 
1648
1669
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
1649
1670
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -1664,7 +1685,7 @@ export type JsxElements = {
1664
1685
 
1665
1686
  export type ${upperName} = JsxFactory & JsxElements
1666
1687
 
1667
- export type ${typeName}<T extends ElementType> = Assign<ComponentProps<T> & UnstyledProps, JsxStyleProps>
1688
+ export type ${typeName}<T extends ElementType> = Assign<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
1668
1689
 
1669
1690
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
1670
1691
  `
@@ -1755,8 +1776,15 @@ interface Dict {
1755
1776
  [k: string]: unknown
1756
1777
  }
1757
1778
 
1779
+ export interface AsProps {
1780
+ /**
1781
+ * The element to render as
1782
+ */
1783
+ as?: ElementType | undefined
1784
+ }
1785
+
1758
1786
  export type ${componentName}<T extends ElementType> = {
1759
- (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
1787
+ (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T> & AsProps) => JSX.Element
1760
1788
  }
1761
1789
 
1762
1790
  export interface JsxFactory {
@@ -1842,7 +1870,7 @@ function generateReactJsxFactory(ctx) {
1842
1870
  ...elementProps,
1843
1871
  ...normalizeHTMLProps(htmlProps),
1844
1872
  className: classes(),
1845
- }, combinedProps.children ?? children)
1873
+ }, children ?? combinedProps.children)
1846
1874
  })
1847
1875
 
1848
1876
  const name = getDisplayName(__base__)
@@ -1973,13 +2001,20 @@ export interface UnstyledProps {
1973
2001
  unstyled?: boolean | undefined
1974
2002
  }
1975
2003
 
2004
+ export interface AsProps {
2005
+ /**
2006
+ * The element to render as
2007
+ */
2008
+ as?: ElementType | undefined
2009
+ }
2010
+
1976
2011
  export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
1977
2012
  ref?: Ref<ElementRef<T>>
1978
2013
  }
1979
2014
 
1980
2015
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> {
1981
- (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>): JSX.Element
1982
- displayName?: string
2016
+ (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
2017
+ displayName?: string | undefined
1983
2018
  }
1984
2019
 
1985
2020
  interface RecipeFn {
@@ -1988,12 +2023,12 @@ interface RecipeFn {
1988
2023
 
1989
2024
  interface JsxFactoryOptions<TProps extends Dict> {
1990
2025
  dataAttr?: boolean
1991
- defaultProps?: TProps
2026
+ defaultProps?: Partial<TProps>
1992
2027
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
1993
2028
  forwardProps?: string[]
1994
2029
  }
1995
2030
 
1996
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>;
2031
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
1997
2032
 
1998
2033
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
1999
2034
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -2014,7 +2049,7 @@ export type JsxElements = {
2014
2049
 
2015
2050
  export type ${upperName} = JsxFactory & JsxElements
2016
2051
 
2017
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
2052
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
2018
2053
 
2019
2054
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
2020
2055
  `
@@ -2251,13 +2286,20 @@ interface Dict {
2251
2286
  [k: string]: unknown
2252
2287
  }
2253
2288
 
2289
+ export interface AsProps {
2290
+ /**
2291
+ * The element to render as
2292
+ */
2293
+ as?: ElementType | undefined
2294
+ }
2295
+
2254
2296
  export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
2255
2297
  ref?: Ref<ElementRef<T>>
2256
- }
2298
+ } & AsProps
2257
2299
 
2258
2300
  export type ${componentName}<T extends ElementType> = {
2259
2301
  (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
2260
- displayName?: string
2302
+ displayName?: string | undefined
2261
2303
  }
2262
2304
 
2263
2305
  export interface JsxFactory {
@@ -2527,11 +2569,18 @@ export interface UnstyledProps {
2527
2569
  unstyled?: boolean | undefined
2528
2570
  }
2529
2571
 
2572
+ export interface AsProps {
2573
+ /**
2574
+ * The element to render as
2575
+ */
2576
+ as?: ElementType | undefined
2577
+ }
2578
+
2530
2579
  export type ElementType<P = any> = keyof JSX.IntrinsicElements | Component<P>
2531
2580
 
2532
2581
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> {
2533
- (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>): JSX.Element
2534
- displayName?: string
2582
+ (props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
2583
+ displayName?: string | undefined
2535
2584
  }
2536
2585
 
2537
2586
  interface RecipeFn {
@@ -2540,12 +2589,12 @@ interface RecipeFn {
2540
2589
 
2541
2590
  export interface JsxFactoryOptions<TProps extends Dict> {
2542
2591
  dataAttr?: boolean
2543
- defaultProps?: TProps
2592
+ defaultProps?: Partial<TProps>
2544
2593
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
2545
2594
  forwardProps?: string[]
2546
2595
  }
2547
2596
 
2548
- export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, P>;
2597
+ export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
2549
2598
 
2550
2599
  export type JsxElement<T extends ElementType, P extends Dict> = T extends ${componentName}<infer A, infer B>
2551
2600
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -2566,7 +2615,7 @@ export type JsxElements = {
2566
2615
 
2567
2616
  export type ${upperName} = JsxFactory & JsxElements
2568
2617
 
2569
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
2618
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
2570
2619
 
2571
2620
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
2572
2621
  `
@@ -2832,11 +2881,18 @@ interface Dict {
2832
2881
  [k: string]: unknown
2833
2882
  }
2834
2883
 
2884
+ export interface AsProps {
2885
+ /**
2886
+ * The element to render as
2887
+ */
2888
+ as?: ElementType | undefined
2889
+ }
2890
+
2835
2891
  export type ElementType<P = any> = keyof JSX.IntrinsicElements | Component<P>
2836
2892
 
2837
2893
  export type ${componentName}<T extends ElementType> = {
2838
- (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
2839
- displayName?: string
2894
+ (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T> & AsProps) => JSX.Element
2895
+ displayName?: string | undefined
2840
2896
  }
2841
2897
 
2842
2898
  export interface JsxFactory {
@@ -3110,8 +3166,15 @@ export interface UnstyledProps {
3110
3166
  unstyled?: boolean | undefined
3111
3167
  }
3112
3168
 
3169
+ export interface AsProps {
3170
+ /**
3171
+ * The element to render as
3172
+ */
3173
+ as?: ElementType | undefined
3174
+ }
3175
+
3113
3176
  export interface ${componentName}<T extends ElementType, P extends Dict = {}> extends FunctionalComponent<
3114
- JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P>>
3177
+ JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>
3115
3178
  > {}
3116
3179
 
3117
3180
  interface RecipeFn {
@@ -3120,12 +3183,12 @@ interface RecipeFn {
3120
3183
 
3121
3184
  export interface JsxFactoryOptions<TProps extends Dict> {
3122
3185
  dataAttr?: boolean
3123
- defaultProps?: TProps
3186
+ defaultProps?: Partial<TProps>
3124
3187
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
3125
3188
  forwardProps?: string[]
3126
3189
  }
3127
3190
 
3128
- export type JsxRecipeProps<T extends ElementType, P extends RecipeFn> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, Assign<JsxStyleProps, P['__type']>>;
3191
+ export type JsxRecipeProps<T extends ElementType, P extends RecipeFn> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P['__type']>>;
3129
3192
 
3130
3193
  export type JsxElement<T extends ElementType, P> = T extends ${componentName}<infer A, infer B>
3131
3194
  ? ${componentName}<A, Pretty<DistributiveUnion<P, B>>>
@@ -3146,7 +3209,7 @@ export type JsxElements = {
3146
3209
 
3147
3210
  export type ${upperName} = JsxFactory & JsxElements
3148
3211
 
3149
- export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps, JsxStyleProps>
3212
+ export type ${typeName}<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
3150
3213
 
3151
3214
  export type ${variantName}<T extends ${componentName}<any, any>> = T extends ${componentName}<any, infer Props> ? Props : never
3152
3215
  `
@@ -3456,8 +3519,15 @@ export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
3456
3519
  ? Props
3457
3520
  : never
3458
3521
 
3522
+ export interface AsProps {
3523
+ /**
3524
+ * The element to render as
3525
+ */
3526
+ as?: ElementType | undefined
3527
+ }
3528
+
3459
3529
  export type ${componentName}<T extends ElementType> = {
3460
- (args: { raw: readonly string[] | ArrayLike<string> }): FunctionalComponent<ComponentProps<T>>
3530
+ (args: { raw: readonly string[] | ArrayLike<string> }): FunctionalComponent<ComponentProps<T> & AsProps>
3461
3531
  }
3462
3532
 
3463
3533
  export interface JsxFactory {
@@ -3547,7 +3617,7 @@ import { match as match14 } from "ts-pattern";
3547
3617
 
3548
3618
  // src/artifacts/generated/composition.d.ts.json
3549
3619
  var composition_d_ts_default = {
3550
- content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'font'\n | 'fontFamily'\n | 'fontFeatureSettings'\n | 'fontKerning'\n | 'fontLanguageOverride'\n | 'fontOpticalSizing'\n | 'fontPalette'\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontStretch'\n | 'fontStyle'\n | 'fontSynthesis'\n | 'fontVariant'\n | 'fontVariantAlternates'\n | 'fontVariantCaps'\n | 'fontVariantLigatures'\n | 'fontVariantNumeric'\n | 'fontVariantPosition'\n | 'fontVariationSettings'\n | 'fontWeight'\n | 'hypens'\n | 'hyphenateCharacter'\n | 'hyphenateLimitChars'\n | 'letterSpacing'\n | 'lineBreak'\n | 'lineHeight'\n | 'quotes'\n | 'overflowWrap'\n | 'textCombineUpright'\n | 'textDecoration'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationSkipInk'\n | 'textDecorationStyle'\n | 'textDecorationThickness'\n | 'textEmphasis'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'textIndent'\n | 'textJustify'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\n | 'textShadow'\n | 'textTransform'\n | 'textUnderlineOffset'\n | 'textUnderlinePosition'\n | 'textWrap'\n | 'textWrapMode'\n | 'textWrapStyle'\n | 'verticalAlign'\n | 'whiteSpace'\n | 'wordBreak'\n | 'wordSpacing'\n\nexport type TextStyle = CompositionStyleObject<TextStyleProperty>\n\nexport type TextStyles = Recursive<Token<TextStyle>>\n\n/* -----------------------------------------------------------------------------\n * Layer styles\n * -----------------------------------------------------------------------------*/\n\ntype Placement =\n | 'Top'\n | 'Right'\n | 'Bottom'\n | 'Left'\n | 'Inline'\n | 'Block'\n | 'InlineStart'\n | 'InlineEnd'\n | 'BlockStart'\n | 'BlockEnd'\n\ntype Radius =\n | `Top${'Right' | 'Left'}`\n | `Bottom${'Right' | 'Left'}`\n | `Start${'Start' | 'End'}`\n | `End${'Start' | 'End'}`\n\ntype LayerStyleProperty =\n | 'background'\n | 'backgroundColor'\n | 'backgroundImage'\n | 'borderRadius'\n | 'border'\n | 'borderWidth'\n | 'borderColor'\n | 'borderStyle'\n | 'boxShadow'\n | 'filter'\n | 'backdropFilter'\n | 'transform'\n | 'color'\n | 'opacity'\n | 'backgroundBlendMode'\n | 'backgroundAttachment'\n | 'backgroundClip'\n | 'backgroundOrigin'\n | 'backgroundPosition'\n | 'backgroundRepeat'\n | 'backgroundSize'\n | `border${Placement}`\n | `border${Placement}Width`\n | 'borderRadius'\n | `border${Radius}Radius`\n | `border${Placement}Color`\n | `border${Placement}Style`\n | 'padding'\n | `padding${Placement}`\n\nexport type LayerStyle = CompositionStyleObject<LayerStyleProperty>\n\nexport type LayerStyles = Recursive<Token<LayerStyle>>\n\n/* -----------------------------------------------------------------------------\n * Motion styles\n * -----------------------------------------------------------------------------*/\n\ntype AnimationStyleProperty =\n | 'animation'\n | 'animationComposition'\n | 'animationDelay'\n | 'animationDirection'\n | 'animationDuration'\n | 'animationFillMode'\n | 'animationIterationCount'\n | 'animationName'\n | 'animationPlayState'\n | 'animationTimingFunction'\n | 'animationRange'\n | 'animationRangeStart'\n | 'animationRangeEnd'\n | 'animationTimeline'\n | 'transformOrigin'\n\nexport type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>\n\nexport type AnimationStyles = Recursive<Token<AnimationStyle>>\n\nexport interface CompositionStyles {\n textStyles: TextStyles\n layerStyles: LayerStyles\n animationStyles: AnimationStyles\n}\n"
3620
+ content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'color'\n | 'direction'\n | 'font'\n | 'fontFamily'\n | 'fontFeatureSettings'\n | 'fontKerning'\n | 'fontLanguageOverride'\n | 'fontOpticalSizing'\n | 'fontPalette'\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontStretch'\n | 'fontStyle'\n | 'fontSynthesis'\n | 'fontVariant'\n | 'fontVariantAlternates'\n | 'fontVariantCaps'\n | 'fontVariantLigatures'\n | 'fontVariantNumeric'\n | 'fontVariantPosition'\n | 'fontVariationSettings'\n | 'fontWeight'\n | 'hangingPunctuation'\n | 'hypens'\n | 'hyphenateCharacter'\n | 'hyphenateLimitChars'\n | 'letterSpacing'\n | 'lineBreak'\n | 'lineHeight'\n | 'quotes'\n | 'overflowWrap'\n | 'tabSize'\n | 'textAlign'\n | 'textAlignLast'\n | 'textCombineUpright'\n | 'textDecoration'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationSkip'\n | 'textDecorationSkipBox'\n | 'textDecorationSkipInk'\n | 'textDecorationSkipInset'\n | 'textDecorationStyle'\n | 'textDecorationThickness'\n | 'textEmphasis'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'textIndent'\n | 'textJustify'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\n | 'textShadow'\n | 'textStroke'\n | 'textStrokeColor'\n | 'textStrokeWidth'\n | 'textTransform'\n | 'textUnderlineOffset'\n | 'textUnderlinePosition'\n | 'textWrap'\n | 'textWrapMode'\n | 'textWrapStyle'\n | 'unicodeBidi'\n | 'verticalAlign'\n | 'whiteSpace'\n | 'wordBreak'\n | 'wordSpacing'\n | 'writingMode'\n\nexport type TextStyle = CompositionStyleObject<TextStyleProperty>\n\nexport type TextStyles = Recursive<Token<TextStyle>>\n\n/* -----------------------------------------------------------------------------\n * Layer styles\n * -----------------------------------------------------------------------------*/\n\ntype LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'\n\ntype PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'\n\ntype Placement = PhysicalPlacement | LogicalPlacement\n\ntype Radius =\n | `Top${'Right' | 'Left'}`\n | `Bottom${'Right' | 'Left'}`\n | `Start${'Start' | 'End'}`\n | `End${'Start' | 'End'}`\n\ntype LayerStyleProperty =\n | 'aspectRatio'\n | 'background'\n | 'backgroundColor'\n | 'backgroundImage'\n | 'border'\n | 'borderColor'\n | 'borderImage'\n | 'borderImageOutset'\n | 'borderImageRepeat'\n | 'borderImageSlice'\n | 'borderImageSource'\n | 'borderImageWidth'\n | 'borderRadius'\n | 'borderStyle'\n | 'borderWidth'\n | `border${Placement}`\n | `border${Placement}Color`\n | `border${Placement}Style`\n | `border${Placement}Width`\n | 'borderRadius'\n | `border${Radius}Radius`\n | 'boxShadow'\n | 'boxShadowColor'\n | 'clipPath'\n | 'color'\n | 'contain'\n | 'content'\n | 'contentVisibility'\n | 'cursor'\n | 'display'\n | 'filter'\n | 'backdropFilter'\n | 'height'\n | 'width'\n | 'minHeight'\n | 'minWidth'\n | 'maxHeight'\n | 'maxWidth'\n | `margin${Placement}`\n | 'inset'\n | `inset${LogicalPlacement}`\n | Lowercase<PhysicalPlacement>\n | 'isolation'\n | 'mask'\n | 'maskClip'\n | 'maskComposite'\n | 'maskImage'\n | 'maskMode'\n | 'maskOrigin'\n | 'maskPosition'\n | 'maskRepeat'\n | 'maskSize'\n | 'mixBlendMode'\n | 'objectFit'\n | 'objectPosition'\n | 'opacity'\n | 'outline'\n | 'outlineColor'\n | 'outlineOffset'\n | 'outlineStyle'\n | 'outlineWidth'\n | 'overflow'\n | 'overflowX'\n | 'overflowY'\n | 'padding'\n | `padding${Placement}`\n | 'pointerEvents'\n | 'position'\n | 'resize'\n | 'transform'\n | 'transition'\n | 'visibility'\n | 'willChange'\n | 'zIndex'\n | 'backgroundBlendMode'\n | 'backgroundAttachment'\n | 'backgroundClip'\n | 'backgroundOrigin'\n | 'backgroundPosition'\n | 'backgroundRepeat'\n | 'backgroundSize'\n\nexport type LayerStyle = CompositionStyleObject<LayerStyleProperty>\n\nexport type LayerStyles = Recursive<Token<LayerStyle>>\n\n/* -----------------------------------------------------------------------------\n * Motion styles\n * -----------------------------------------------------------------------------*/\n\ntype AnimationStyleProperty =\n | 'animation'\n | 'animationComposition'\n | 'animationDelay'\n | 'animationDirection'\n | 'animationDuration'\n | 'animationFillMode'\n | 'animationIterationCount'\n | 'animationName'\n | 'animationPlayState'\n | 'animationTimingFunction'\n | 'animationRange'\n | 'animationRangeStart'\n | 'animationRangeEnd'\n | 'animationTimeline'\n | 'transformOrigin'\n\nexport type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>\n\nexport type AnimationStyles = Recursive<Token<AnimationStyle>>\n\nexport interface CompositionStyles {\n textStyles: TextStyles\n layerStyles: LayerStyles\n animationStyles: AnimationStyles\n}\n"
3551
3621
  };
3552
3622
 
3553
3623
  // src/artifacts/generated/csstype.d.ts.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
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.49",
39
39
  "ts-pattern": "5.8.0",
40
- "@pandacss/core": "1.2.0",
41
- "@pandacss/is-valid-prop": "^1.2.0",
42
- "@pandacss/logger": "1.2.0",
43
- "@pandacss/shared": "1.2.0",
44
- "@pandacss/token-dictionary": "1.2.0",
45
- "@pandacss/types": "1.2.0"
40
+ "@pandacss/core": "1.3.0",
41
+ "@pandacss/is-valid-prop": "^1.3.0",
42
+ "@pandacss/logger": "1.3.0",
43
+ "@pandacss/shared": "1.3.0",
44
+ "@pandacss/token-dictionary": "1.3.0",
45
+ "@pandacss/types": "1.3.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/pluralize": "0.0.33"