@yamada-ui/radio 0.2.16 → 0.2.17

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.
@@ -40,7 +40,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
40
40
  name: string;
41
41
  value: Y;
42
42
  setValue: react.Dispatch<react.SetStateAction<Y>>;
43
- onChange: (evOrValue: Y | ChangeEvent<HTMLInputElement>) => void;
43
+ onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
44
44
  onFocus: () => void;
45
45
  getContainerProps: PropGetter;
46
46
  getRadioProps: PropGetter<react.AriaAttributes & react.DOMAttributes<HTMLInputElement> & {
@@ -53,7 +53,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
53
53
  } & {
54
54
  isChecked?: boolean | undefined;
55
55
  }, Omit<DOMAttributes<HTMLInputElement>, "onChange"> & {
56
- onChange: (ev: Y | ChangeEvent<HTMLInputElement>) => void;
56
+ onChange: (ev: ChangeEvent<HTMLInputElement> | Y) => void;
57
57
  }>;
58
58
  };
59
59
  type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
@@ -40,7 +40,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
40
40
  name: string;
41
41
  value: Y;
42
42
  setValue: react.Dispatch<react.SetStateAction<Y>>;
43
- onChange: (evOrValue: Y | ChangeEvent<HTMLInputElement>) => void;
43
+ onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
44
44
  onFocus: () => void;
45
45
  getContainerProps: PropGetter;
46
46
  getRadioProps: PropGetter<react.AriaAttributes & react.DOMAttributes<HTMLInputElement> & {
@@ -53,7 +53,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
53
53
  } & {
54
54
  isChecked?: boolean | undefined;
55
55
  }, Omit<DOMAttributes<HTMLInputElement>, "onChange"> & {
56
- onChange: (ev: Y | ChangeEvent<HTMLInputElement>) => void;
56
+ onChange: (ev: ChangeEvent<HTMLInputElement> | Y) => void;
57
57
  }>;
58
58
  };
59
59
  type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
package/dist/radio.d.mts CHANGED
@@ -51,7 +51,7 @@ type RadioOptions = {
51
51
  labelProps?: HTMLUIProps<'span'>;
52
52
  };
53
53
  type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<'label'>, keyof UseRadioProps> & ThemeProps<'Radio'> & UseRadioProps<Y> & RadioOptions;
54
- declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "id" | "name" | "value" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
54
+ declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "value" | "name" | "id" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
55
55
  /**
56
56
  * id assigned to input.
57
57
  */
package/dist/radio.d.ts CHANGED
@@ -51,7 +51,7 @@ type RadioOptions = {
51
51
  labelProps?: HTMLUIProps<'span'>;
52
52
  };
53
53
  type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<'label'>, keyof UseRadioProps> & ThemeProps<'Radio'> & UseRadioProps<Y> & RadioOptions;
54
- declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "id" | "name" | "value" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
54
+ declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "value" | "name" | "id" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
55
55
  /**
56
56
  * id assigned to input.
57
57
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/radio",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Yamada UI radio component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,10 +35,10 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.7.0",
38
+ "@yamada-ui/core": "0.8.0",
39
39
  "@yamada-ui/utils": "0.2.0",
40
- "@yamada-ui/form-control": "0.2.16",
41
- "@yamada-ui/layouts": "0.2.16",
40
+ "@yamada-ui/form-control": "0.2.17",
41
+ "@yamada-ui/layouts": "0.2.17",
42
42
  "@yamada-ui/use-controllable-state": "0.1.7",
43
43
  "@yamada-ui/use-focus-visible": "0.1.6"
44
44
  },