@still-forest/canopy 0.22.1 → 0.23.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 +5 -5
- package/dist/index.js +6055 -8239
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ declare interface ChildProps {
|
|
|
136
136
|
|
|
137
137
|
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
138
138
|
|
|
139
|
-
export declare const Container: ({ children, className, ...props }: ContainerProps) => JSX.Element;
|
|
139
|
+
export declare const Container: ({ children, className, direction, ...props }: ContainerProps) => JSX.Element;
|
|
140
140
|
|
|
141
141
|
export declare interface ContainerProps extends FlexProps {
|
|
142
142
|
children: React.ReactNode;
|
|
@@ -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 =
|
|
657
|
+
export declare type TextProps<E extends default_2.ElementType = TypographyElement> = TextBaseProps & {
|
|
658
658
|
as?: E;
|
|
659
659
|
} & default_2.ComponentPropsWithRef<E>;
|
|
660
660
|
|