@1money/component-ui 0.0.11 → 0.0.12

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.
@@ -4,7 +4,8 @@ export type RadioValueType = string | number;
4
4
  export type RadioVariant = 'default' | 'cell';
5
5
  export type RadioSize = 'large' | 'medium' | 'small';
6
6
  export type RadioOrientation = 'horizontal' | 'vertical';
7
- export type RadioAlignment = 'left' | 'center' | 'right';
7
+ export type RadioAlignment = 'left' | 'center';
8
+ export type RadioLabelPlacement = 'left' | 'right';
8
9
  export type RadioGroupDirection = 'vertical' | 'horizontal';
9
10
  export interface RadioChangeTarget {
10
11
  checked: boolean;
@@ -40,8 +41,10 @@ export interface RadioProps extends NativeRadioInputProps {
40
41
  variant?: RadioVariant;
41
42
  /** Visual size used by the cell variant */
42
43
  size?: RadioSize;
43
- /** Alignment used by the radio. Default supports `left` / `right`; cell supports `left` / `center`. */
44
+ /** Alignment used by the cell variant (`left` for horizontal, `center` for vertical). */
44
45
  alignment?: RadioAlignment;
46
+ /** Placement of the label relative to the radio dot for the default variant. */
47
+ labelPlacement?: RadioLabelPlacement;
45
48
  /** Optional icon rendered by the cell variant */
46
49
  icon?: IconName | ReactNode;
47
50
  /** Optional tag label rendered by the cell variant */
@@ -62,8 +65,10 @@ export interface RadioOptionItem {
62
65
  variant?: RadioVariant;
63
66
  /** Visual size used by the cell variant */
64
67
  size?: RadioSize;
65
- /** Alignment used by the radio. Default supports `left` / `right`; cell supports `left` / `center`. */
68
+ /** Alignment used by the cell variant (`left` for horizontal, `center` for vertical). */
66
69
  alignment?: RadioAlignment;
70
+ /** Placement of the label relative to the radio dot for the default variant. */
71
+ labelPlacement?: RadioLabelPlacement;
67
72
  /** Optional icon rendered by the cell variant */
68
73
  icon?: IconName | ReactNode;
69
74
  /** Optional tag label rendered by the cell variant */
@@ -97,8 +102,10 @@ export interface RadioGroupProps {
97
102
  variant?: RadioVariant;
98
103
  /** Visual size inherited by child radios */
99
104
  size?: RadioSize;
100
- /** Alignment inherited by child radios. Default supports `left` / `right`; cell supports `left` / `center`. */
105
+ /** Alignment inherited by cell-variant child radios. */
101
106
  alignment?: RadioAlignment;
107
+ /** Label placement inherited by default-variant child radios. */
108
+ labelPlacement?: RadioLabelPlacement;
102
109
  /** Gap between radio items — accepts spacing token key or CSS value */
103
110
  gap?: number | string;
104
111
  /** Title attribute for the root radiogroup container */