@still-forest/canopy 0.47.1 → 0.48.1
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 +24 -2
- package/dist/index.js +7085 -7011
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -145,6 +145,22 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
|
|
|
145
145
|
rounded?: boolean;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
export declare const ButtonSelectInput: ({ name, label, hint, options, error, note, secondaryOptions, value, onChange, buttonClassName, secondaryButtonClassName, ...props }: ButtonSelectInputProps) => JSX.Element;
|
|
149
|
+
|
|
150
|
+
declare interface ButtonSelectInputProps extends Omit<ButtonGroupProps, "children"> {
|
|
151
|
+
name?: string;
|
|
152
|
+
label?: string;
|
|
153
|
+
hint?: string;
|
|
154
|
+
error?: string;
|
|
155
|
+
note?: string;
|
|
156
|
+
options: Option_2[];
|
|
157
|
+
secondaryOptions?: Option_2[];
|
|
158
|
+
value: string | undefined;
|
|
159
|
+
onChange: (value: string) => void;
|
|
160
|
+
buttonClassName?: string;
|
|
161
|
+
secondaryButtonClassName?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
148
164
|
export declare type ButtonVariant = "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
|
|
149
165
|
|
|
150
166
|
declare const buttonVariants: (props?: ({
|
|
@@ -638,6 +654,11 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
|
638
654
|
}
|
|
639
655
|
|
|
640
656
|
declare interface Option_2 {
|
|
657
|
+
label: string;
|
|
658
|
+
value: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare interface Option_3 {
|
|
641
662
|
value: string;
|
|
642
663
|
label: string;
|
|
643
664
|
hint?: string;
|
|
@@ -730,7 +751,7 @@ declare interface RadioSelectProps {
|
|
|
730
751
|
label?: string;
|
|
731
752
|
labelClassName?: string;
|
|
732
753
|
value?: string;
|
|
733
|
-
options:
|
|
754
|
+
options: Option_3[];
|
|
734
755
|
onChange?: (value: string) => void;
|
|
735
756
|
error?: string;
|
|
736
757
|
}
|
|
@@ -766,7 +787,7 @@ export declare interface SelectInputProps extends Omit<ComponentProps<"select">,
|
|
|
766
787
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
767
788
|
}
|
|
768
789
|
|
|
769
|
-
export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, labelClassName, triggerClassName, hint, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
790
|
+
export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, labelClassName, triggerClassName, dropdownClassName, hint, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
770
791
|
|
|
771
792
|
export declare interface SelectPickerOption {
|
|
772
793
|
icon?: string;
|
|
@@ -790,6 +811,7 @@ export declare interface SelectPickerProps {
|
|
|
790
811
|
label?: string;
|
|
791
812
|
labelClassName?: string;
|
|
792
813
|
triggerClassName?: string;
|
|
814
|
+
dropdownClassName?: string;
|
|
793
815
|
placeholder?: string;
|
|
794
816
|
hint?: string;
|
|
795
817
|
note?: string;
|