@still-forest/canopy 0.12.0 → 0.14.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
@@ -47,6 +47,16 @@ 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
+
50
60
  export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
51
61
 
52
62
  export declare const Container: ({ children, className, ...props }: ContainerProps) => JSX.Element;
@@ -56,6 +66,20 @@ export declare interface ContainerProps extends BoxProps {
56
66
  className?: string;
57
67
  }
58
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
+
74
+ export declare const DatePicker: ({ onDateSelection, initialValue, className, size }: DatePickerProps) => JSX.Element;
75
+
76
+ declare interface DatePickerProps {
77
+ onDateSelection: (date: Date) => void;
78
+ initialValue?: Date;
79
+ className?: string;
80
+ size?: "default" | "xs" | "sm" | "lg";
81
+ }
82
+
59
83
  export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
60
84
 
61
85
  declare type Display = (typeof DISPLAYS)[number];
@@ -183,6 +207,16 @@ declare type Height = (typeof HEIGHTS)[number];
183
207
 
184
208
  declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
185
209
 
210
+ export declare const InputGroup: ({ label, labelFor, className, labelClassName, children }: InputGroupProps) => JSX.Element;
211
+
212
+ declare interface InputGroupProps {
213
+ label?: string;
214
+ labelFor?: string;
215
+ className?: string;
216
+ labelClassName?: string;
217
+ children: React.ReactNode;
218
+ }
219
+
186
220
  export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
187
221
 
188
222
  export declare interface LabelProps extends ComponentProps<"label"> {
@@ -206,6 +240,17 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
206
240
  step?: string;
207
241
  }
208
242
 
243
+ declare interface Option_2 {
244
+ value: string;
245
+ label: string;
246
+ }
247
+ export { Option_2 as Option }
248
+
249
+ declare interface Option_3 {
250
+ value: string;
251
+ label: string;
252
+ }
253
+
209
254
  declare type Overflow = (typeof OVERFLOWS)[number];
210
255
 
211
256
  declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
@@ -225,12 +270,35 @@ declare interface Props_2 extends ButtonProps {
225
270
  submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
226
271
  }
227
272
 
273
+ export declare const RadioSelect: ({ label, name, options, value, onChange }: RadioSelectProps) => JSX.Element;
274
+
275
+ declare interface RadioSelectProps {
276
+ name: string;
277
+ label?: string;
278
+ value?: string;
279
+ options: Option_3[];
280
+ onChange?: (value: string) => void;
281
+ }
282
+
228
283
  declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full", true, false];
229
284
 
230
285
  declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
231
286
 
232
287
  export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_2) => JSX.Element;
233
288
 
289
+ export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
290
+
291
+ export declare interface SelectInputProps extends Omit<React.ComponentProps<"select">, "dir"> {
292
+ name: string;
293
+ value?: string;
294
+ onValueChange: (value: string) => void;
295
+ options: Option_2[];
296
+ label?: string;
297
+ placeholder?: string;
298
+ note?: string;
299
+ className?: string;
300
+ }
301
+
234
302
  export declare const SelectPicker: ({ options, value, placeholder, className, onSelect, renderSelected, }: SelectPickerProps) => JSX.Element;
235
303
 
236
304
  export declare interface SelectPickerOption {