@arthurzakharov/ui-kit 1.4.1 → 1.4.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.
@@ -7,8 +7,8 @@ export interface ControlRadioProps extends Base, Interactive<string> {
7
7
  orientation?: 'horizontal' | 'vertical';
8
8
  choices: RadioChoice[];
9
9
  state?: State;
10
- size?: ControlChoiceProps['size'];
10
+ iconSize?: ControlChoiceProps['size'];
11
11
  textSize?: ControlRadioTextProps['size'];
12
12
  message?: ReactNode;
13
13
  }
14
- export declare const ControlRadio: ({ id, value, choices, onChange, orientation, state, size, textSize, message, disabled, onBlur, onFocus, className, }: ControlRadioProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ControlRadio: ({ id, value, choices, onChange, orientation, state, iconSize, textSize, message, disabled, onBlur, onFocus, className, }: ControlRadioProps) => import("react/jsx-runtime").JSX.Element;
@@ -21,13 +21,13 @@ import '../../assets/control-radio-Bo1rvcg2.css';const j = "_ControlRadio_14a61_
21
21
  onChange: f,
22
22
  orientation: l = "horizontal",
23
23
  state: i = "idle",
24
- size: h = "md",
24
+ iconSize: h = "md",
25
25
  textSize: u = "body",
26
26
  message: s = "",
27
27
  disabled: m = !1,
28
28
  onBlur: v = () => {
29
29
  },
30
- onFocus: g = () => {
30
+ onFocus: z = () => {
31
31
  },
32
32
  className: d = ""
33
33
  }) => /* @__PURE__ */ c("div", { className: _(r.ControlRadio, d), children: [
@@ -38,8 +38,8 @@ import '../../assets/control-radio-Bo1rvcg2.css';const j = "_ControlRadio_14a61_
38
38
  [r.Horizontal]: l === "horizontal",
39
39
  [r.Vertical]: l === "vertical"
40
40
  }),
41
- children: p.map((a, z, R) => {
42
- const n = y(t, a.value, z);
41
+ children: p.map((a, g, R) => {
42
+ const n = y(t, a.value, g);
43
43
  return /* @__PURE__ */ o(M, { id: n, value: C, state: i, choice: a, choices: R, children: ({ focused: b, hovered: x, checked: e, state: E }) => /* @__PURE__ */ c("div", { className: r.Label, children: [
44
44
  /* @__PURE__ */ o(
45
45
  H,
@@ -63,7 +63,7 @@ import '../../assets/control-radio-Bo1rvcg2.css';const j = "_ControlRadio_14a61_
63
63
  checked: e,
64
64
  disabled: m,
65
65
  onChange: () => f(a.value, t),
66
- onFocus: () => g(t),
66
+ onFocus: () => z(t),
67
67
  onBlur: () => v(t)
68
68
  }
69
69
  ),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.4.1",
4
+ "version": "1.4.2",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",