@still-forest/canopy 0.63.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.d.ts +20 -11
- package/dist/index.js +3020 -3023
- 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: ({ id, 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";
|
|
@@ -806,12 +821,6 @@ export declare interface NumberFieldProps extends Omit<TextFieldProps, "type"> {
|
|
|
806
821
|
}
|
|
807
822
|
|
|
808
823
|
declare interface Option_2 {
|
|
809
|
-
label?: string;
|
|
810
|
-
value: string;
|
|
811
|
-
icon?: ReactElement<ComponentProps<"svg">>;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
declare interface Option_3 {
|
|
815
824
|
value: string;
|
|
816
825
|
label: string;
|
|
817
826
|
hint?: string;
|
|
@@ -900,7 +909,7 @@ declare interface RadioFieldProps {
|
|
|
900
909
|
labelClassName?: string;
|
|
901
910
|
note?: string;
|
|
902
911
|
value?: string;
|
|
903
|
-
options:
|
|
912
|
+
options: Option_2[];
|
|
904
913
|
onChange?: (value: string) => void;
|
|
905
914
|
size?: "sm" | "md" | "lg";
|
|
906
915
|
error?: string;
|