@wavv/ui 2.7.2 → 2.7.3
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.
|
@@ -18,9 +18,9 @@ type RadioProps = {
|
|
|
18
18
|
className?: string;
|
|
19
19
|
/** Sets the color of the icon */
|
|
20
20
|
iconColor?: string;
|
|
21
|
-
/** Renders the radio icon at 12px instead of the default 24px */
|
|
22
|
-
tiny?: boolean;
|
|
23
21
|
/** Renders the radio icon at 14px instead of the default 24px */
|
|
22
|
+
tiny?: boolean;
|
|
23
|
+
/** Renders the radio icon at 16px instead of the default 24px */
|
|
24
24
|
small?: boolean;
|
|
25
25
|
} & Margin & ElAttributes;
|
|
26
26
|
declare const Radio: ({ id, label, labelPosition, checked, disabled, labelColor, margin, marginTop, marginBottom, marginRight, marginLeft, className, readOnly, iconColor, tiny, small, ...props }: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ const Radio = ({ id, label, labelPosition, checked, disabled, labelColor, margin
|
|
|
11
11
|
marginRight,
|
|
12
12
|
marginLeft
|
|
13
13
|
};
|
|
14
|
-
const iconSize = small ?
|
|
14
|
+
const iconSize = small ? 16 : tiny ? 14 : void 0;
|
|
15
15
|
return /*#__PURE__*/ jsxs(ControlContainer, {
|
|
16
16
|
htmlFor: id,
|
|
17
17
|
labelRight: labelRight,
|