@still-forest/canopy 0.62.0 → 0.64.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.css +1 -1
- package/dist/index.d.ts +42 -27
- package/dist/index.js +7131 -7097
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -155,20 +155,35 @@ export declare interface ButtonGroupProps extends ComponentProps<"fieldset"> {
|
|
|
155
155
|
|
|
156
156
|
export declare type ButtonProps = BaseButtonProps & ComponentProps<"button">;
|
|
157
157
|
|
|
158
|
-
export declare const ButtonRadioField: ({ name, label, hint,
|
|
158
|
+
export declare const ButtonRadioField: ({ id, name, label, hint, error, note, ...inputProps }: ButtonRadioFieldProps) => JSX.Element;
|
|
159
159
|
|
|
160
|
-
declare interface ButtonRadioFieldProps extends
|
|
161
|
-
name?: string;
|
|
160
|
+
declare interface ButtonRadioFieldProps extends ButtonRadioInputProps {
|
|
162
161
|
label?: string;
|
|
163
162
|
hint?: string;
|
|
164
163
|
error?: string;
|
|
165
164
|
note?: string;
|
|
166
|
-
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export declare const ButtonRadioInput: ({ name, options, secondaryOptions, value, onChange, buttonClassName, secondaryButtonClassName, className: groupClassName, ...props }: ButtonRadioInputProps) => JSX.Element;
|
|
168
|
+
|
|
169
|
+
export declare interface ButtonRadioInputProps extends Omit<ButtonGroupProps, "children" | "onChange"> {
|
|
170
|
+
name?: string;
|
|
171
|
+
options: ButtonRadioOption[];
|
|
167
172
|
secondaryOptions?: SelectPickerOption[];
|
|
168
173
|
value: string | undefined;
|
|
169
174
|
onChange: (value: string) => void;
|
|
170
175
|
buttonClassName?: string;
|
|
171
176
|
secondaryButtonClassName?: string;
|
|
177
|
+
"aria-label"?: string;
|
|
178
|
+
"aria-labelledby"?: string;
|
|
179
|
+
"aria-describedby"?: string;
|
|
180
|
+
"aria-invalid"?: "true" | undefined;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare interface ButtonRadioOption {
|
|
184
|
+
label?: string;
|
|
185
|
+
value: string;
|
|
186
|
+
icon?: ReactElement<ComponentProps<"svg">>;
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
export declare type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -226,7 +241,8 @@ export declare const Checkbox: ({ children, className, onCheckedChange, name, id
|
|
|
226
241
|
export declare const CheckboxField: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, ...props }: CheckboxFieldProps) => JSX.Element;
|
|
227
242
|
|
|
228
243
|
export declare interface CheckboxFieldProps extends CheckboxProps {
|
|
229
|
-
|
|
244
|
+
name: string;
|
|
245
|
+
label?: string;
|
|
230
246
|
labelClassName?: string;
|
|
231
247
|
hint?: string;
|
|
232
248
|
note?: string;
|
|
@@ -291,13 +307,18 @@ export declare const DateField: (props: DateFieldProps) => JSX.Element;
|
|
|
291
307
|
declare interface DateFieldProps extends Omit<TextFieldProps, "type"> {
|
|
292
308
|
}
|
|
293
309
|
|
|
294
|
-
export declare const DatePickerField: ({ onDateSelection, initialValue, className, size, error }: DatePickerFieldProps) => JSX.Element;
|
|
310
|
+
export declare const DatePickerField: ({ onDateSelection, initialValue, className, size, error, id, name, label, hint, note, }: DatePickerFieldProps) => JSX.Element;
|
|
295
311
|
|
|
296
312
|
declare interface DatePickerFieldProps {
|
|
297
313
|
onDateSelection: (date: Date) => void;
|
|
298
314
|
initialValue?: Date;
|
|
299
315
|
className?: string;
|
|
300
316
|
size?: ButtonSize;
|
|
317
|
+
id?: string;
|
|
318
|
+
name?: string;
|
|
319
|
+
label?: string;
|
|
320
|
+
hint?: string;
|
|
321
|
+
note?: string;
|
|
301
322
|
error?: string;
|
|
302
323
|
}
|
|
303
324
|
|
|
@@ -396,6 +417,7 @@ export declare const Field: {
|
|
|
396
417
|
({ children, className, orientation, ...props }: FieldProps): JSX.Element;
|
|
397
418
|
Label: ({ children, className, htmlFor, ...props }: FieldLabelProps) => JSX.Element;
|
|
398
419
|
LabelGroup: ({ children, className, ...props }: ComponentProps<"div">) => JSX.Element;
|
|
420
|
+
Legend: typeof FieldLegend;
|
|
399
421
|
Title: ({ children, className, ...props }: ComponentProps<"div">) => JSX.Element;
|
|
400
422
|
Content: ({ children, className, ...props }: ComponentProps<"div">) => JSX.Element;
|
|
401
423
|
Description: ({ children, className, ...props }: ComponentProps<"p">) => JSX.Element;
|
|
@@ -405,13 +427,19 @@ export declare const Field: {
|
|
|
405
427
|
export declare const FieldGroup: ({ className, ...props }: React.ComponentProps<"div">) => JSX.Element;
|
|
406
428
|
|
|
407
429
|
declare interface FieldLabelProps extends ComponentProps<"label"> {
|
|
408
|
-
htmlFor
|
|
430
|
+
htmlFor?: string;
|
|
409
431
|
}
|
|
410
432
|
|
|
433
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
434
|
+
variant?: "legend" | "label";
|
|
435
|
+
}): JSX.Element;
|
|
436
|
+
|
|
411
437
|
declare interface FieldProps extends ComponentProps<"div"> {
|
|
412
438
|
orientation?: "vertical" | "horizontal";
|
|
413
439
|
}
|
|
414
440
|
|
|
441
|
+
export declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): JSX.Element;
|
|
442
|
+
|
|
415
443
|
export declare const Flex: typeof FlexComponent & {
|
|
416
444
|
Item: typeof FlexItem;
|
|
417
445
|
};
|
|
@@ -566,13 +594,6 @@ export declare const Input: ({ id, name, className, size, ...props }: InputProps
|
|
|
566
594
|
|
|
567
595
|
declare const Input_2: (props: ComponentProps<typeof Input>) => JSX.Element;
|
|
568
596
|
|
|
569
|
-
export declare const InputError: ({ id, message }: InputErrorProps) => JSX.Element;
|
|
570
|
-
|
|
571
|
-
declare interface InputErrorProps {
|
|
572
|
-
id?: string;
|
|
573
|
-
message: string;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
597
|
export declare const InputGroup: InputGroupComponent;
|
|
577
598
|
|
|
578
599
|
declare type InputGroupComponent = FC<ComponentProps<"div">> & {
|
|
@@ -752,7 +773,7 @@ export declare const NativeSelect: {
|
|
|
752
773
|
OptGroup: ({ className, ...props }: React_2.ComponentProps<"optgroup">) => JSX.Element;
|
|
753
774
|
};
|
|
754
775
|
|
|
755
|
-
export declare const NativeSelectField: ({ name, defaultValue, options, label, labelClassName, placeholder, hint, note, className, value, onChange, error, size, id
|
|
776
|
+
export declare const NativeSelectField: ({ name, defaultValue, options, label, labelClassName, placeholder, hint, note, className, value, onChange, error, size, id, ...props }: NativeSelectFieldProps) => JSX.Element;
|
|
756
777
|
|
|
757
778
|
export declare interface NativeSelectFieldOption {
|
|
758
779
|
value: string;
|
|
@@ -800,15 +821,10 @@ export declare interface NumberFieldProps extends Omit<TextFieldProps, "type"> {
|
|
|
800
821
|
}
|
|
801
822
|
|
|
802
823
|
declare interface Option_2 {
|
|
803
|
-
label?: string;
|
|
804
|
-
value: string;
|
|
805
|
-
icon?: ReactElement<ComponentProps<"svg">>;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
declare interface Option_3 {
|
|
809
824
|
value: string;
|
|
810
825
|
label: string;
|
|
811
826
|
hint?: string;
|
|
827
|
+
note?: string;
|
|
812
828
|
}
|
|
813
829
|
|
|
814
830
|
export declare type Overflow = (typeof OVERFLOWS)[number];
|
|
@@ -885,16 +901,15 @@ declare interface Props_4 extends SidebarProps {
|
|
|
885
901
|
children?: React.ReactNode;
|
|
886
902
|
}
|
|
887
903
|
|
|
888
|
-
export declare const RadioField: ({
|
|
904
|
+
export declare const RadioField: ({ label, name, options, note, value, size, onChange, error, labelClassName, }: RadioFieldProps) => JSX.Element;
|
|
889
905
|
|
|
890
906
|
declare interface RadioFieldProps {
|
|
891
|
-
cols?: GridCols;
|
|
892
|
-
gap?: Gap;
|
|
893
907
|
name: string;
|
|
894
908
|
label?: string;
|
|
895
909
|
labelClassName?: string;
|
|
910
|
+
note?: string;
|
|
896
911
|
value?: string;
|
|
897
|
-
options:
|
|
912
|
+
options: Option_2[];
|
|
898
913
|
onChange?: (value: string) => void;
|
|
899
914
|
size?: "sm" | "md" | "lg";
|
|
900
915
|
error?: string;
|
|
@@ -1027,7 +1042,7 @@ export declare function Skeleton({ className, ...props }: React.ComponentProps<"
|
|
|
1027
1042
|
|
|
1028
1043
|
declare function Slider({ className, defaultValue, value, min, max, thumbClassName, trackClassName, ...props }: SliderProps): JSX.Element;
|
|
1029
1044
|
|
|
1030
|
-
export declare const SliderField: ({ name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderFieldProps) => JSX.Element;
|
|
1045
|
+
export declare const SliderField: ({ id, name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderFieldProps) => JSX.Element;
|
|
1031
1046
|
|
|
1032
1047
|
declare interface SliderFieldProps extends Omit<React.ComponentProps<typeof Slider>, "value" | "defaultValue"> {
|
|
1033
1048
|
name: string;
|
|
@@ -1106,7 +1121,7 @@ export declare function Textarea({ className, ...props }: React_2.ComponentProps
|
|
|
1106
1121
|
|
|
1107
1122
|
declare const Textarea_2: ({ children, className, ...props }: ComponentProps<typeof Textarea>) => JSX.Element;
|
|
1108
1123
|
|
|
1109
|
-
export declare function TextareaField({ label, name, note, placeholder, className, error, labelClassName, hint, ...props }: TextareaFieldProps): JSX.Element;
|
|
1124
|
+
export declare function TextareaField({ id, label, name, note, placeholder, className, error, labelClassName, hint, ...props }: TextareaFieldProps): JSX.Element;
|
|
1110
1125
|
|
|
1111
1126
|
export declare interface TextareaFieldProps extends React.ComponentProps<"textarea"> {
|
|
1112
1127
|
name: string;
|