@still-forest/canopy 0.22.2 → 0.24.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.
package/dist/index.d.ts CHANGED
@@ -205,10 +205,10 @@ declare type FlexDirection = (typeof FLEX_DIRECTIONS)[number];
205
205
 
206
206
  declare type FlexGrow = (typeof FLEX_GROWS)[number];
207
207
 
208
- declare const FlexItem: ({ flex, className, children, ...props }: FlexItemProps) => JSX.Element;
208
+ declare const FlexItem: ({ flex, className, as, children, ...props }: FlexItemProps) => JSX.Element;
209
209
 
210
210
  declare interface FlexItemProps extends React.HTMLAttributes<HTMLDivElement> {
211
- as?: React.ElementType;
211
+ as?: React.ElementType<any>;
212
212
  flex?: FlexType;
213
213
  }
214
214
 
@@ -406,7 +406,7 @@ declare interface PageNotFoundProps {
406
406
 
407
407
  export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
408
408
 
409
- export declare const Paragraph: ({ children, className, ...props }: TextProps) => JSX.Element;
409
+ export declare const Paragraph: ({ children, className, as, ...props }: TextProps) => JSX.Element;
410
410
 
411
411
  export declare const Popover: PopoverComponent;
412
412
 
@@ -654,7 +654,7 @@ export declare interface TextInputProps extends React.ComponentProps<"input"> {
654
654
 
655
655
  declare type TextLeading = (typeof TEXT_LEADINGS)[number];
656
656
 
657
- export declare type TextProps<E extends default_2.ElementType = "p"> = TextBaseProps & {
657
+ export declare type TextProps<E extends default_2.ElementType = TypographyElement> = TextBaseProps & {
658
658
  as?: E;
659
659
  } & default_2.ComponentPropsWithRef<E>;
660
660