@stenajs-webui/forms 20.16.1 → 20.17.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/components/ui/radio/RadioButtonBox.d.ts +3 -1
- package/dist/index.es.js +237 -229
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -3,8 +3,9 @@ import * as React from "react";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { RadioButtonProps } from "./RadioButton";
|
|
5
5
|
export type RadioButtonBoxVariant = "normal" | "danger";
|
|
6
|
+
export type RadioButtonBoxSizeVariant = "medium" | "large";
|
|
6
7
|
export type RadioButtonBoxProps = RadioButtonBoxNoRightProps | RadioButtonBoxIconProps | RadioButtonBoxContentRightProps;
|
|
7
|
-
export interface RadioButtonBoxCommonProps extends RadioButtonProps {
|
|
8
|
+
export interface RadioButtonBoxCommonProps extends Omit<RadioButtonProps, "size"> {
|
|
8
9
|
label?: string;
|
|
9
10
|
/**
|
|
10
11
|
* If set, this label is used by screen readers instead of label prop.
|
|
@@ -13,6 +14,7 @@ export interface RadioButtonBoxCommonProps extends RadioButtonProps {
|
|
|
13
14
|
*/
|
|
14
15
|
screenReaderLabel?: string;
|
|
15
16
|
variant?: RadioButtonBoxVariant;
|
|
17
|
+
size?: RadioButtonBoxSizeVariant;
|
|
16
18
|
radioButtonClassName?: string;
|
|
17
19
|
}
|
|
18
20
|
export interface RadioButtonBoxNoRightProps extends RadioButtonBoxCommonProps {
|