@still-forest/canopy 0.12.0 → 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 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,11 @@ 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
+
59
74
  export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
60
75
 
61
76
  declare type Display = (typeof DISPLAYS)[number];
@@ -183,6 +198,16 @@ declare type Height = (typeof HEIGHTS)[number];
183
198
 
184
199
  declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
185
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
+
186
211
  export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
187
212
 
188
213
  export declare interface LabelProps extends ComponentProps<"label"> {
@@ -206,6 +231,17 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
206
231
  step?: string;
207
232
  }
208
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
+
209
245
  declare type Overflow = (typeof OVERFLOWS)[number];
210
246
 
211
247
  declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
@@ -225,12 +261,35 @@ declare interface Props_2 extends ButtonProps {
225
261
  submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
226
262
  }
227
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
+
228
274
  declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full", true, false];
229
275
 
230
276
  declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
231
277
 
232
278
  export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_2) => JSX.Element;
233
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
+
234
293
  export declare const SelectPicker: ({ options, value, placeholder, className, onSelect, renderSelected, }: SelectPickerProps) => JSX.Element;
235
294
 
236
295
  export declare interface SelectPickerOption {