@wavv/ui 2.7.1 → 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.
@@ -16,7 +16,7 @@ declare const Form: {
16
16
  }): import("react/jsx-runtime").JSX.Element;
17
17
  Radio: ({ id, label, labelPosition, checked, disabled, labelColor, margin, marginTop, marginBottom, marginRight, marginLeft, className, readOnly, iconColor, tiny, small, ...props }: {
18
18
  id?: string;
19
- label?: string;
19
+ label?: ReactNode;
20
20
  labelPosition?: "left" | "right";
21
21
  labelColor?: string;
22
22
  disabled?: boolean;
@@ -1,11 +1,11 @@
1
- import type { HTMLProps } from 'react';
1
+ import type { HTMLProps, ReactNode } from 'react';
2
2
  import type { AsProp, Margin } from './types';
3
3
  type ElAttributes = HTMLProps<HTMLInputElement> & AsProp;
4
4
  type RadioProps = {
5
5
  /** Id of the input element */
6
6
  id?: string;
7
- /** Places a label element beside the radio. The value will set the text of the label */
8
- label?: string;
7
+ /** Places a label element beside the radio. Accepts a string or any React node for custom content. */
8
+ label?: ReactNode;
9
9
  /** Sets the label on the left or right of the radio */
10
10
  labelPosition?: 'left' | 'right';
11
11
  /** Sets the color of the label */
@@ -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 : tiny ? 12 : void 0;
14
+ const iconSize = small ? 16 : tiny ? 14 : void 0;
15
15
  return /*#__PURE__*/ jsxs(ControlContainer, {
16
16
  htmlFor: id,
17
17
  labelRight: labelRight,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {