@uxf/form 10.0.0-beta.12 → 10.0.0-beta.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/form",
3
- "version": "10.0.0-beta.12",
3
+ "version": "10.0.0-beta.19",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,7 +12,7 @@
12
12
  "author": "UX Fans s.r.o",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@uxf/ui": "10.0.0-beta.12",
15
+ "@uxf/ui": "10.0.0-beta.19",
16
16
  "react-hook-form": "7.44.3",
17
17
  "coordinate-parser": "1.0.7"
18
18
  }
@@ -1,8 +1,8 @@
1
- import { RadioGroupOptionValue, RadioGroupProps as UIRadioGroupProps } from "@uxf/ui/radio-group";
1
+ import { RadioGroupOptionValueId, RadioGroupProps as UIRadioGroupProps } from "@uxf/ui/radio-group";
2
2
  import React from "react";
3
3
  import { FieldValues, UseControllerProps } from "react-hook-form";
4
4
  import { FormControlProps } from "@uxf/ui/types";
5
- type OnChangeHandler = FormControlProps<RadioGroupOptionValue | null>["onChange"];
5
+ type OnChangeHandler = FormControlProps<RadioGroupOptionValueId | null>["onChange"];
6
6
  export type RadioGroupProps<FormData extends FieldValues> = UseControllerProps<FormData> & Omit<UIRadioGroupProps, "isInvalid" | "name" | "onChange" | "value"> & {
7
7
  onChange?: OnChangeHandler;
8
8
  requiredMessage?: string;
@@ -14,15 +14,15 @@ exports.default = {
14
14
  };
15
15
  const options = [
16
16
  {
17
- value: "1",
17
+ id: "1",
18
18
  label: "Radio one",
19
19
  },
20
20
  {
21
- value: "2",
21
+ id: "2",
22
22
  label: "Radio two",
23
23
  },
24
24
  {
25
- value: "3",
25
+ id: "3",
26
26
  label: "Radio three-sixty",
27
27
  },
28
28
  ];