@still-forest/canopy 0.44.0 → 0.45.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 -6
- package/dist/index.js +6003 -5941
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -189,14 +189,16 @@ 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, note, error }: CheckboxProps) => JSX.Element;
|
|
192
|
+
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, }: CheckboxProps) => JSX.Element;
|
|
193
193
|
|
|
194
194
|
export declare interface CheckboxProps {
|
|
195
195
|
label: string;
|
|
196
|
+
labelClassName?: string;
|
|
196
197
|
name: string;
|
|
197
198
|
value?: string;
|
|
198
199
|
checked: boolean;
|
|
199
200
|
onCheckedChange?: (checked: boolean) => void;
|
|
201
|
+
hint?: string;
|
|
200
202
|
note?: string;
|
|
201
203
|
error?: string;
|
|
202
204
|
}
|
|
@@ -440,6 +442,13 @@ declare type Height = (typeof HEIGHTS)[number];
|
|
|
440
442
|
|
|
441
443
|
declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
|
|
442
444
|
|
|
445
|
+
export declare const Hint: ({ content, className }: HintProps) => JSX.Element;
|
|
446
|
+
|
|
447
|
+
export declare interface HintProps {
|
|
448
|
+
content: string;
|
|
449
|
+
className?: string;
|
|
450
|
+
}
|
|
451
|
+
|
|
443
452
|
export declare const Input: ({ type, step, ...props }: InputProps) => JSX.Element;
|
|
444
453
|
|
|
445
454
|
export declare const InputError: ({ id, message }: InputErrorProps) => JSX.Element;
|
|
@@ -623,6 +632,7 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
|
623
632
|
declare interface Option_2 {
|
|
624
633
|
value: string;
|
|
625
634
|
label: string;
|
|
635
|
+
hint?: string;
|
|
626
636
|
}
|
|
627
637
|
|
|
628
638
|
declare type Overflow = (typeof OVERFLOWS)[number];
|
|
@@ -705,11 +715,12 @@ declare interface Props_5 extends SidebarProps {
|
|
|
705
715
|
children?: React.ReactNode;
|
|
706
716
|
}
|
|
707
717
|
|
|
708
|
-
export declare const RadioSelect: ({ label, name, options, value, onChange, error }: RadioSelectProps) => JSX.Element;
|
|
718
|
+
export declare const RadioSelect: ({ label, name, options, value, onChange, error, labelClassName }: RadioSelectProps) => JSX.Element;
|
|
709
719
|
|
|
710
720
|
declare interface RadioSelectProps {
|
|
711
721
|
name: string;
|
|
712
722
|
label?: string;
|
|
723
|
+
labelClassName?: string;
|
|
713
724
|
value?: string;
|
|
714
725
|
options: Option_2[];
|
|
715
726
|
onChange?: (value: string) => void;
|
|
@@ -720,7 +731,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
720
731
|
|
|
721
732
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
722
733
|
|
|
723
|
-
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onChange, error, size, id: idProp, ...props }: SelectInputProps) => JSX.Element;
|
|
734
|
+
export declare const SelectInput: ({ name, defaultValue, options, label, labelClassName, placeholder, hint, note, className, value, onChange, error, size, id: idProp, ...props }: SelectInputProps) => JSX.Element;
|
|
724
735
|
|
|
725
736
|
export declare interface SelectInputOption {
|
|
726
737
|
value: string;
|
|
@@ -738,14 +749,16 @@ export declare interface SelectInputProps extends Omit<ComponentProps<"select">,
|
|
|
738
749
|
onChange: (value: string) => void;
|
|
739
750
|
options: SelectInputOption[] | SelectInputOptionGroup[];
|
|
740
751
|
label?: string;
|
|
752
|
+
labelClassName?: string;
|
|
741
753
|
placeholder?: string;
|
|
754
|
+
hint?: string;
|
|
742
755
|
note?: string;
|
|
743
756
|
className?: string;
|
|
744
757
|
error?: string;
|
|
745
758
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
746
759
|
}
|
|
747
760
|
|
|
748
|
-
export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
761
|
+
export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, labelClassName, hint, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
749
762
|
|
|
750
763
|
export declare interface SelectPickerOption {
|
|
751
764
|
icon?: string;
|
|
@@ -767,7 +780,9 @@ export declare interface SelectPickerProps {
|
|
|
767
780
|
onChange: (value: string) => void;
|
|
768
781
|
options: SelectPickerOption[] | SelectPickerOptionGroup[];
|
|
769
782
|
label?: string;
|
|
783
|
+
labelClassName?: string;
|
|
770
784
|
placeholder?: string;
|
|
785
|
+
hint?: string;
|
|
771
786
|
note?: string;
|
|
772
787
|
error?: string;
|
|
773
788
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
@@ -916,12 +931,14 @@ declare const TEXT_TRACKINGS: readonly ["tighter", "tight", "normal", "wide", "w
|
|
|
916
931
|
|
|
917
932
|
declare type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
918
933
|
|
|
919
|
-
export declare function Textarea({ label, name, note, placeholder, className, error, ...props }: TextareaProps): JSX.Element;
|
|
934
|
+
export declare function Textarea({ label, name, note, placeholder, className, error, labelClassName, hint, ...props }: TextareaProps): JSX.Element;
|
|
920
935
|
|
|
921
936
|
export declare interface TextareaProps extends React.ComponentProps<"textarea"> {
|
|
922
937
|
name: string;
|
|
923
938
|
label?: string;
|
|
939
|
+
labelClassName?: string;
|
|
924
940
|
placeholder?: string;
|
|
941
|
+
hint?: string;
|
|
925
942
|
note?: string;
|
|
926
943
|
className?: string;
|
|
927
944
|
error?: string;
|
|
@@ -947,14 +964,16 @@ declare interface TextBaseProps {
|
|
|
947
964
|
as?: TypographyElement;
|
|
948
965
|
}
|
|
949
966
|
|
|
950
|
-
export declare const TextInput: ({ name, type, placeholder, label, labelOrientation, note, size, className, error, ...props }: TextInputProps) => JSX.Element;
|
|
967
|
+
export declare const TextInput: ({ name, type, placeholder, label, labelClassName, labelOrientation, hint, note, size, className, error, ...props }: TextInputProps) => JSX.Element;
|
|
951
968
|
|
|
952
969
|
export declare interface TextInputProps extends Omit<React.ComponentProps<"input">, "size"> {
|
|
953
970
|
name: string;
|
|
954
971
|
type?: string;
|
|
955
972
|
placeholder?: string;
|
|
956
973
|
label?: string;
|
|
974
|
+
labelClassName?: string;
|
|
957
975
|
labelOrientation?: "top" | "left";
|
|
976
|
+
hint?: string;
|
|
958
977
|
note?: string;
|
|
959
978
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
960
979
|
className?: string;
|