@still-forest/canopy 0.11.1 → 0.13.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 +88 -1
- package/dist/index.js +5860 -4106
- package/dist/index.js.map +1 -1
- package/package.json +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -47,13 +47,39 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
|
|
|
47
47
|
asChild?: boolean;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
51
|
+
|
|
52
|
+
export declare interface CheckboxProps {
|
|
53
|
+
label: string;
|
|
54
|
+
name: string;
|
|
55
|
+
value?: string;
|
|
56
|
+
checked: boolean;
|
|
57
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
61
|
+
|
|
62
|
+
export declare const Container: ({ children, className, ...props }: ContainerProps) => JSX.Element;
|
|
63
|
+
|
|
64
|
+
export declare interface ContainerProps extends BoxProps {
|
|
65
|
+
children: React.ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare const DateInput: ({ name, label, placeholder, note, className, ...props }: DateInputProps) => JSX.Element;
|
|
70
|
+
|
|
71
|
+
declare interface DateInputProps extends Omit<TextInputProps, "type"> {
|
|
72
|
+
}
|
|
73
|
+
|
|
50
74
|
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
|
|
51
75
|
|
|
52
76
|
declare type Display = (typeof DISPLAYS)[number];
|
|
53
77
|
|
|
54
78
|
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
79
|
|
|
56
|
-
export declare const Flex:
|
|
80
|
+
export declare const Flex: typeof FlexComponent & {
|
|
81
|
+
Item: typeof FlexItem;
|
|
82
|
+
};
|
|
57
83
|
|
|
58
84
|
declare const FLEX_ALIGNS: readonly ["start", "center", "end", "stretch", "baseline"];
|
|
59
85
|
|
|
@@ -67,10 +93,19 @@ declare const FLEX_WRAPS: readonly ["nowrap", "wrap", "wrap-reverse"];
|
|
|
67
93
|
|
|
68
94
|
declare type FlexAlign = (typeof FLEX_ALIGNS)[number];
|
|
69
95
|
|
|
96
|
+
declare const FlexComponent: default_2.ForwardRefExoticComponent<FlexProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
|
|
70
98
|
declare type FlexDirection = (typeof FLEX_DIRECTIONS)[number];
|
|
71
99
|
|
|
72
100
|
declare type FlexGrow = (typeof FLEX_GROWS)[number];
|
|
73
101
|
|
|
102
|
+
declare const FlexItem: ({ flex, className, children, ...props }: FlexItemProps) => JSX.Element;
|
|
103
|
+
|
|
104
|
+
declare interface FlexItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
105
|
+
as?: React.ElementType;
|
|
106
|
+
flex?: FlexType;
|
|
107
|
+
}
|
|
108
|
+
|
|
74
109
|
declare type FlexJustify = (typeof FLEX_JUSTIFIES)[number];
|
|
75
110
|
|
|
76
111
|
export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -85,6 +120,8 @@ export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivEleme
|
|
|
85
120
|
gapY?: Gap;
|
|
86
121
|
}
|
|
87
122
|
|
|
123
|
+
declare type FlexType = "1" | "auto" | "initial" | "none";
|
|
124
|
+
|
|
88
125
|
declare type FlexWrap = (typeof FLEX_WRAPS)[number];
|
|
89
126
|
|
|
90
127
|
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
@@ -99,6 +136,12 @@ declare type FontSize = (typeof FONT_SIZES)[number];
|
|
|
99
136
|
|
|
100
137
|
declare type FontWeight = (typeof FONT_WEIGHTS)[number];
|
|
101
138
|
|
|
139
|
+
export declare const Footer: ({ children, ...props }: FooterProps) => JSX.Element;
|
|
140
|
+
|
|
141
|
+
declare interface FooterProps extends ContainerProps {
|
|
142
|
+
children: React.ReactNode;
|
|
143
|
+
}
|
|
144
|
+
|
|
102
145
|
declare type Gap = (typeof GAPS)[number];
|
|
103
146
|
|
|
104
147
|
declare const GAPS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"];
|
|
@@ -155,6 +198,16 @@ declare type Height = (typeof HEIGHTS)[number];
|
|
|
155
198
|
|
|
156
199
|
declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
|
|
157
200
|
|
|
201
|
+
export declare const InputGroup: ({ label, labelFor, className, labelClassName, children }: InputGroupProps) => JSX.Element;
|
|
202
|
+
|
|
203
|
+
declare interface InputGroupProps {
|
|
204
|
+
label?: string;
|
|
205
|
+
labelFor?: string;
|
|
206
|
+
className?: string;
|
|
207
|
+
labelClassName?: string;
|
|
208
|
+
children: React.ReactNode;
|
|
209
|
+
}
|
|
210
|
+
|
|
158
211
|
export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
|
|
159
212
|
|
|
160
213
|
export declare interface LabelProps extends ComponentProps<"label"> {
|
|
@@ -178,6 +231,17 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
|
178
231
|
step?: string;
|
|
179
232
|
}
|
|
180
233
|
|
|
234
|
+
declare interface Option_2 {
|
|
235
|
+
value: string;
|
|
236
|
+
label: string;
|
|
237
|
+
}
|
|
238
|
+
export { Option_2 as Option }
|
|
239
|
+
|
|
240
|
+
declare interface Option_3 {
|
|
241
|
+
value: string;
|
|
242
|
+
label: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
181
245
|
declare type Overflow = (typeof OVERFLOWS)[number];
|
|
182
246
|
|
|
183
247
|
declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
@@ -197,12 +261,35 @@ declare interface Props_2 extends ButtonProps {
|
|
|
197
261
|
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
198
262
|
}
|
|
199
263
|
|
|
264
|
+
export declare const RadioSelect: ({ label, name, options, value, onChange }: RadioSelectProps) => JSX.Element;
|
|
265
|
+
|
|
266
|
+
declare interface RadioSelectProps {
|
|
267
|
+
name: string;
|
|
268
|
+
label?: string;
|
|
269
|
+
value?: string;
|
|
270
|
+
options: Option_3[];
|
|
271
|
+
onChange?: (value: string) => void;
|
|
272
|
+
}
|
|
273
|
+
|
|
200
274
|
declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full", true, false];
|
|
201
275
|
|
|
202
276
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
203
277
|
|
|
204
278
|
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_2) => JSX.Element;
|
|
205
279
|
|
|
280
|
+
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
|
|
281
|
+
|
|
282
|
+
export declare interface SelectInputProps extends Omit<React.ComponentProps<"select">, "dir"> {
|
|
283
|
+
name: string;
|
|
284
|
+
value?: string;
|
|
285
|
+
onValueChange: (value: string) => void;
|
|
286
|
+
options: Option_2[];
|
|
287
|
+
label?: string;
|
|
288
|
+
placeholder?: string;
|
|
289
|
+
note?: string;
|
|
290
|
+
className?: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
206
293
|
export declare const SelectPicker: ({ options, value, placeholder, className, onSelect, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
207
294
|
|
|
208
295
|
export declare interface SelectPickerOption {
|