@still-forest/canopy 0.43.0 → 0.44.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 +25 -15
- package/dist/index.js +5441 -5257
- package/package.json +8 -7
package/dist/index.d.ts
CHANGED
|
@@ -189,7 +189,7 @@ declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div"
|
|
|
189
189
|
|
|
190
190
|
declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
|
|
191
191
|
|
|
192
|
-
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
192
|
+
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error }: CheckboxProps) => JSX.Element;
|
|
193
193
|
|
|
194
194
|
export declare interface CheckboxProps {
|
|
195
195
|
label: string;
|
|
@@ -197,6 +197,8 @@ export declare interface CheckboxProps {
|
|
|
197
197
|
value?: string;
|
|
198
198
|
checked: boolean;
|
|
199
199
|
onCheckedChange?: (checked: boolean) => void;
|
|
200
|
+
note?: string;
|
|
201
|
+
error?: string;
|
|
200
202
|
}
|
|
201
203
|
|
|
202
204
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -440,9 +442,12 @@ declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit
|
|
|
440
442
|
|
|
441
443
|
export declare const Input: ({ type, step, ...props }: InputProps) => JSX.Element;
|
|
442
444
|
|
|
443
|
-
export declare const InputError: ({ message }:
|
|
445
|
+
export declare const InputError: ({ id, message }: InputErrorProps) => JSX.Element;
|
|
446
|
+
|
|
447
|
+
declare interface InputErrorProps {
|
|
448
|
+
id?: string;
|
|
444
449
|
message: string;
|
|
445
|
-
}
|
|
450
|
+
}
|
|
446
451
|
|
|
447
452
|
export declare const InputGroup: InputGroupComponent;
|
|
448
453
|
|
|
@@ -603,7 +608,7 @@ export declare const MenuItemText: ({ children }: {
|
|
|
603
608
|
children: React.ReactNode;
|
|
604
609
|
}) => JSX.Element;
|
|
605
610
|
|
|
606
|
-
export declare const Modal: ({ trigger, children, title, description, open, onOpenChange }: Props_2) => JSX.Element;
|
|
611
|
+
export declare const Modal: ({ trigger, children, title, description, open, onOpenChange, ariaDescription }: Props_2) => JSX.Element;
|
|
607
612
|
|
|
608
613
|
/**
|
|
609
614
|
+ * A specialized input component for numeric values.
|
|
@@ -682,6 +687,7 @@ declare interface Props_2 {
|
|
|
682
687
|
description?: string;
|
|
683
688
|
open?: boolean;
|
|
684
689
|
onOpenChange?: (open: boolean) => void;
|
|
690
|
+
ariaDescription?: string;
|
|
685
691
|
}
|
|
686
692
|
|
|
687
693
|
declare interface Props_3 {
|
|
@@ -714,10 +720,9 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
714
720
|
|
|
715
721
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
716
722
|
|
|
717
|
-
export declare const SelectInput: ({ name, defaultValue, options
|
|
723
|
+
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onChange, error, size, id: idProp, ...props }: SelectInputProps) => JSX.Element;
|
|
718
724
|
|
|
719
725
|
export declare interface SelectInputOption {
|
|
720
|
-
icon?: string;
|
|
721
726
|
value: string;
|
|
722
727
|
label: string;
|
|
723
728
|
}
|
|
@@ -727,39 +732,44 @@ export declare interface SelectInputOptionGroup {
|
|
|
727
732
|
options: SelectInputOption[];
|
|
728
733
|
}
|
|
729
734
|
|
|
730
|
-
export declare interface SelectInputProps extends Omit<
|
|
735
|
+
export declare interface SelectInputProps extends Omit<ComponentProps<"select">, "dir" | "size" | "onChange"> {
|
|
731
736
|
name: string;
|
|
732
737
|
value?: string;
|
|
733
|
-
|
|
738
|
+
onChange: (value: string) => void;
|
|
734
739
|
options: SelectInputOption[] | SelectInputOptionGroup[];
|
|
735
740
|
label?: string;
|
|
736
741
|
placeholder?: string;
|
|
737
742
|
note?: string;
|
|
738
743
|
className?: string;
|
|
739
744
|
error?: string;
|
|
740
|
-
emptyOptionLabel?: string;
|
|
741
745
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
742
746
|
}
|
|
743
747
|
|
|
744
|
-
export declare const SelectPicker: ({ options
|
|
748
|
+
export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
745
749
|
|
|
746
750
|
export declare interface SelectPickerOption {
|
|
747
751
|
icon?: string;
|
|
748
|
-
value: string;
|
|
749
752
|
label: string;
|
|
753
|
+
value: SelectPickerOptionValue;
|
|
754
|
+
keywords?: string[];
|
|
750
755
|
}
|
|
751
756
|
|
|
752
757
|
export declare interface SelectPickerOptionGroup {
|
|
753
|
-
label
|
|
758
|
+
label?: string;
|
|
754
759
|
options: SelectPickerOption[];
|
|
755
760
|
}
|
|
756
761
|
|
|
762
|
+
export declare type SelectPickerOptionValue = string;
|
|
763
|
+
|
|
757
764
|
export declare interface SelectPickerProps {
|
|
758
|
-
|
|
759
|
-
onSelect: (selected: string) => void;
|
|
765
|
+
name: string;
|
|
760
766
|
value?: string;
|
|
767
|
+
onChange: (value: string) => void;
|
|
768
|
+
options: SelectPickerOption[] | SelectPickerOptionGroup[];
|
|
769
|
+
label?: string;
|
|
761
770
|
placeholder?: string;
|
|
762
|
-
|
|
771
|
+
note?: string;
|
|
772
|
+
error?: string;
|
|
763
773
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
764
774
|
}
|
|
765
775
|
|