@still-forest/canopy 0.11.0 → 0.12.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 +29 -1
- package/dist/index.js +1205 -1189
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -47,13 +47,24 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
|
|
|
47
47
|
asChild?: boolean;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
51
|
+
|
|
52
|
+
export declare const Container: ({ children, className, ...props }: ContainerProps) => JSX.Element;
|
|
53
|
+
|
|
54
|
+
export declare interface ContainerProps extends BoxProps {
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
|
|
51
60
|
|
|
52
61
|
declare type Display = (typeof DISPLAYS)[number];
|
|
53
62
|
|
|
54
63
|
declare const DISPLAYS: readonly ["block", "flex", "grid", "inline", "inline-block", "inline-flex", "inline-grid", "inline-table", "list-item", "flow-root", "contents", "table", "table-header-group", "table-footer-group", "table-column-group", "table-column", "table-row-group", "table-row", "table-cell", "table-caption", "hidden", "sr-only", "not-sr-only"];
|
|
55
64
|
|
|
56
|
-
export declare const Flex:
|
|
65
|
+
export declare const Flex: typeof FlexComponent & {
|
|
66
|
+
Item: typeof FlexItem;
|
|
67
|
+
};
|
|
57
68
|
|
|
58
69
|
declare const FLEX_ALIGNS: readonly ["start", "center", "end", "stretch", "baseline"];
|
|
59
70
|
|
|
@@ -67,10 +78,19 @@ declare const FLEX_WRAPS: readonly ["nowrap", "wrap", "wrap-reverse"];
|
|
|
67
78
|
|
|
68
79
|
declare type FlexAlign = (typeof FLEX_ALIGNS)[number];
|
|
69
80
|
|
|
81
|
+
declare const FlexComponent: default_2.ForwardRefExoticComponent<FlexProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
|
|
70
83
|
declare type FlexDirection = (typeof FLEX_DIRECTIONS)[number];
|
|
71
84
|
|
|
72
85
|
declare type FlexGrow = (typeof FLEX_GROWS)[number];
|
|
73
86
|
|
|
87
|
+
declare const FlexItem: ({ flex, className, children, ...props }: FlexItemProps) => JSX.Element;
|
|
88
|
+
|
|
89
|
+
declare interface FlexItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
90
|
+
as?: React.ElementType;
|
|
91
|
+
flex?: FlexType;
|
|
92
|
+
}
|
|
93
|
+
|
|
74
94
|
declare type FlexJustify = (typeof FLEX_JUSTIFIES)[number];
|
|
75
95
|
|
|
76
96
|
export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -85,6 +105,8 @@ export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivEleme
|
|
|
85
105
|
gapY?: Gap;
|
|
86
106
|
}
|
|
87
107
|
|
|
108
|
+
declare type FlexType = "1" | "auto" | "initial" | "none";
|
|
109
|
+
|
|
88
110
|
declare type FlexWrap = (typeof FLEX_WRAPS)[number];
|
|
89
111
|
|
|
90
112
|
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
@@ -99,6 +121,12 @@ declare type FontSize = (typeof FONT_SIZES)[number];
|
|
|
99
121
|
|
|
100
122
|
declare type FontWeight = (typeof FONT_WEIGHTS)[number];
|
|
101
123
|
|
|
124
|
+
export declare const Footer: ({ children, ...props }: FooterProps) => JSX.Element;
|
|
125
|
+
|
|
126
|
+
declare interface FooterProps extends ContainerProps {
|
|
127
|
+
children: React.ReactNode;
|
|
128
|
+
}
|
|
129
|
+
|
|
102
130
|
declare type Gap = (typeof GAPS)[number];
|
|
103
131
|
|
|
104
132
|
declare const GAPS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"];
|