@stenajs-webui/forms 20.7.0 → 20.7.2
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/components/ui/radio/RadioButtonBox.d.ts +5 -4
- package/dist/index.es.js +271 -273
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import { RadioButtonProps } from "./RadioButton";
|
|
5
5
|
export type RadioButtonBoxVariant = "normal" | "danger";
|
|
6
6
|
export type RadioButtonBoxProps = RadioButtonBoxNoRightProps | RadioButtonBoxIconProps | RadioButtonBoxContentRightProps;
|
|
7
|
-
interface RadioButtonBoxCommonProps extends RadioButtonProps {
|
|
7
|
+
export interface RadioButtonBoxCommonProps extends RadioButtonProps {
|
|
8
8
|
label?: string;
|
|
9
9
|
/**
|
|
10
10
|
* If set, this label is used by screen readers instead of label prop.
|
|
@@ -16,14 +16,15 @@ interface RadioButtonBoxCommonProps extends RadioButtonProps {
|
|
|
16
16
|
radioButtonClassName?: string;
|
|
17
17
|
}
|
|
18
18
|
export interface RadioButtonBoxNoRightProps extends RadioButtonBoxCommonProps {
|
|
19
|
+
icon?: never;
|
|
20
|
+
contentRight?: never;
|
|
19
21
|
}
|
|
20
22
|
export interface RadioButtonBoxIconProps extends RadioButtonBoxCommonProps {
|
|
21
|
-
icon
|
|
23
|
+
icon?: IconDefinition;
|
|
22
24
|
contentRight?: never;
|
|
23
25
|
}
|
|
24
26
|
export interface RadioButtonBoxContentRightProps extends RadioButtonBoxCommonProps {
|
|
25
27
|
icon?: never;
|
|
26
|
-
contentRight
|
|
28
|
+
contentRight?: ReactNode;
|
|
27
29
|
}
|
|
28
30
|
export declare const RadioButtonBox: React.FC<RadioButtonBoxProps>;
|
|
29
|
-
export {};
|