@yamada-ui/radio 1.1.1 → 1.1.2-dev-20240624102031

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.
@@ -50,9 +50,9 @@ declare const useRadioGroup: <Y extends string | number = string, M extends Dict
50
50
  onFocus: () => void;
51
51
  getContainerProps: PropGetter;
52
52
  getRadioProps: UIPropGetter<"input", {
53
- value?: Y | undefined;
53
+ value?: Y;
54
54
  }, {
55
- value?: Y | undefined;
55
+ value?: Y;
56
56
  }>;
57
57
  };
58
58
  type UseRadioGroupReturn<Y extends string | number = string> = ReturnType<typeof useRadioGroup<Y>>;
@@ -71,8 +71,10 @@ type RadioGroupContext = ThemeProps<"Radio"> & FormControlOptions & {
71
71
  };
72
72
  declare const useRadioGroupContext: () => RadioGroupContext | undefined;
73
73
 
74
- declare const RadioGroup: (<Y extends string | number = string>(props: RadioGroupProps<Y> & {
75
- ref?: Ref<HTMLDivElement>;
76
- }) => JSX.Element) & ComponentArgs;
74
+ declare const RadioGroup: {
75
+ <Y extends string | number = string>(props: RadioGroupProps<Y> & {
76
+ ref?: Ref<HTMLDivElement>;
77
+ }): JSX.Element;
78
+ } & ComponentArgs;
77
79
 
78
80
  export { RadioGroup, type RadioGroupProps, type RadioItem, type UseRadioGroupProps, type UseRadioGroupReturn, useRadioGroup, useRadioGroupContext };
@@ -50,9 +50,9 @@ declare const useRadioGroup: <Y extends string | number = string, M extends Dict
50
50
  onFocus: () => void;
51
51
  getContainerProps: PropGetter;
52
52
  getRadioProps: UIPropGetter<"input", {
53
- value?: Y | undefined;
53
+ value?: Y;
54
54
  }, {
55
- value?: Y | undefined;
55
+ value?: Y;
56
56
  }>;
57
57
  };
58
58
  type UseRadioGroupReturn<Y extends string | number = string> = ReturnType<typeof useRadioGroup<Y>>;
@@ -71,8 +71,10 @@ type RadioGroupContext = ThemeProps<"Radio"> & FormControlOptions & {
71
71
  };
72
72
  declare const useRadioGroupContext: () => RadioGroupContext | undefined;
73
73
 
74
- declare const RadioGroup: (<Y extends string | number = string>(props: RadioGroupProps<Y> & {
75
- ref?: Ref<HTMLDivElement>;
76
- }) => JSX.Element) & ComponentArgs;
74
+ declare const RadioGroup: {
75
+ <Y extends string | number = string>(props: RadioGroupProps<Y> & {
76
+ ref?: Ref<HTMLDivElement>;
77
+ }): JSX.Element;
78
+ } & ComponentArgs;
77
79
 
78
80
  export { RadioGroup, type RadioGroupProps, type RadioItem, type UseRadioGroupProps, type UseRadioGroupReturn, useRadioGroup, useRadioGroupContext };
package/dist/radio.d.mts CHANGED
@@ -53,23 +53,23 @@ declare const useRadio: <Y extends string | number = string, M extends Dict = Di
53
53
  onFocus: (event: react.FocusEvent<HTMLElement, Element>) => void;
54
54
  onBlur: (event: react.FocusEvent<HTMLElement, Element>) => void;
55
55
  } & Omit<FormControlOptions & {
56
- id?: string | undefined;
56
+ id?: string;
57
57
  onFocus?: react.FocusEventHandler<HTMLElement> | undefined;
58
58
  onBlur?: react.FocusEventHandler<HTMLElement> | undefined;
59
- disabled?: boolean | undefined;
60
- readOnly?: boolean | undefined;
61
- required?: boolean | undefined;
59
+ disabled?: boolean;
60
+ readOnly?: boolean;
61
+ required?: boolean;
62
62
  } & {
63
63
  id: string;
64
64
  } & Omit<FormControlOptions & {
65
65
  /**
66
66
  * id assigned to input.
67
67
  */
68
- id?: string | undefined;
68
+ id?: string;
69
69
  /**
70
70
  * The name of the input field in a radio.
71
71
  */
72
- name?: string | undefined;
72
+ name?: string;
73
73
  /**
74
74
  * The value to be used in the radio button.
75
75
  */
@@ -79,17 +79,17 @@ declare const useRadio: <Y extends string | number = string, M extends Dict = Di
79
79
  *
80
80
  * @default false
81
81
  */
82
- defaultIsChecked?: boolean | undefined;
82
+ defaultIsChecked?: boolean;
83
83
  /**
84
84
  * If `true`, the radio will be checked.
85
85
  *
86
86
  * @default false
87
87
  */
88
- isChecked?: boolean | undefined;
88
+ isChecked?: boolean;
89
89
  /**
90
90
  * The callback invoked when the checked state changes.
91
91
  */
92
- onChange?: ChangeEventHandler<HTMLInputElement> | undefined;
92
+ onChange?: ChangeEventHandler<HTMLInputElement>;
93
93
  } & M, "id">, "disabled" | "isDisabled" | "id" | "onFocus" | "onBlur" | "readOnly" | "required" | "isRequired" | "isInvalid" | "isReadOnly">, "value" | "name" | "disabled" | "id" | "onFocus" | "onBlur" | "onChange" | "readOnly" | "required" | "defaultIsChecked" | "isChecked">, any>;
94
94
  isFocusVisible: boolean;
95
95
  isFocused: boolean;
@@ -113,8 +113,10 @@ type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<"label">,
113
113
  *
114
114
  * @see Docs https://yamada-ui.com/components/forms/radio
115
115
  */
116
- declare const Radio: (<Y extends string | number = string>(props: RadioProps<Y> & {
117
- ref?: Ref<HTMLInputElement>;
118
- }) => JSX.Element) & ComponentArgs;
116
+ declare const Radio: {
117
+ <Y extends string | number = string>(props: RadioProps<Y> & {
118
+ ref?: Ref<HTMLInputElement>;
119
+ }): JSX.Element;
120
+ } & ComponentArgs;
119
121
 
120
122
  export { Radio, type RadioProps, type UseRadioProps, type UseRadioReturn, useRadio };
package/dist/radio.d.ts CHANGED
@@ -53,23 +53,23 @@ declare const useRadio: <Y extends string | number = string, M extends Dict = Di
53
53
  onFocus: (event: react.FocusEvent<HTMLElement, Element>) => void;
54
54
  onBlur: (event: react.FocusEvent<HTMLElement, Element>) => void;
55
55
  } & Omit<FormControlOptions & {
56
- id?: string | undefined;
56
+ id?: string;
57
57
  onFocus?: react.FocusEventHandler<HTMLElement> | undefined;
58
58
  onBlur?: react.FocusEventHandler<HTMLElement> | undefined;
59
- disabled?: boolean | undefined;
60
- readOnly?: boolean | undefined;
61
- required?: boolean | undefined;
59
+ disabled?: boolean;
60
+ readOnly?: boolean;
61
+ required?: boolean;
62
62
  } & {
63
63
  id: string;
64
64
  } & Omit<FormControlOptions & {
65
65
  /**
66
66
  * id assigned to input.
67
67
  */
68
- id?: string | undefined;
68
+ id?: string;
69
69
  /**
70
70
  * The name of the input field in a radio.
71
71
  */
72
- name?: string | undefined;
72
+ name?: string;
73
73
  /**
74
74
  * The value to be used in the radio button.
75
75
  */
@@ -79,17 +79,17 @@ declare const useRadio: <Y extends string | number = string, M extends Dict = Di
79
79
  *
80
80
  * @default false
81
81
  */
82
- defaultIsChecked?: boolean | undefined;
82
+ defaultIsChecked?: boolean;
83
83
  /**
84
84
  * If `true`, the radio will be checked.
85
85
  *
86
86
  * @default false
87
87
  */
88
- isChecked?: boolean | undefined;
88
+ isChecked?: boolean;
89
89
  /**
90
90
  * The callback invoked when the checked state changes.
91
91
  */
92
- onChange?: ChangeEventHandler<HTMLInputElement> | undefined;
92
+ onChange?: ChangeEventHandler<HTMLInputElement>;
93
93
  } & M, "id">, "disabled" | "isDisabled" | "id" | "onFocus" | "onBlur" | "readOnly" | "required" | "isRequired" | "isInvalid" | "isReadOnly">, "value" | "name" | "disabled" | "id" | "onFocus" | "onBlur" | "onChange" | "readOnly" | "required" | "defaultIsChecked" | "isChecked">, any>;
94
94
  isFocusVisible: boolean;
95
95
  isFocused: boolean;
@@ -113,8 +113,10 @@ type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<"label">,
113
113
  *
114
114
  * @see Docs https://yamada-ui.com/components/forms/radio
115
115
  */
116
- declare const Radio: (<Y extends string | number = string>(props: RadioProps<Y> & {
117
- ref?: Ref<HTMLInputElement>;
118
- }) => JSX.Element) & ComponentArgs;
116
+ declare const Radio: {
117
+ <Y extends string | number = string>(props: RadioProps<Y> & {
118
+ ref?: Ref<HTMLInputElement>;
119
+ }): JSX.Element;
120
+ } & ComponentArgs;
119
121
 
120
122
  export { Radio, type RadioProps, type UseRadioProps, type UseRadioReturn, useRadio };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/radio",
3
- "version": "1.1.1",
3
+ "version": "1.1.2-dev-20240624102031",
4
4
  "description": "Yamada UI radio component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -36,10 +36,10 @@
36
36
  "url": "https://github.com/yamada-ui/yamada-ui/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@yamada-ui/core": "1.8.0",
39
+ "@yamada-ui/core": "1.9.0-dev-20240624102031",
40
40
  "@yamada-ui/utils": "1.3.0",
41
- "@yamada-ui/form-control": "1.1.4",
42
- "@yamada-ui/layouts": "1.1.26",
41
+ "@yamada-ui/form-control": "1.1.5-dev-20240624102031",
42
+ "@yamada-ui/layouts": "1.1.27-dev-20240624102031",
43
43
  "@yamada-ui/use-controllable-state": "1.0.15",
44
44
  "@yamada-ui/use-focus-visible": "1.1.2"
45
45
  },