@yamada-ui/checkbox 1.0.19-dev-20240309140426 → 1.0.19-dev-20240309224604

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.
@@ -34,7 +34,7 @@ type UseCheckboxGroupProps<Y extends string | number = string> = {
34
34
  declare const useCheckboxGroup: <Y extends string | number = string>({ isNative, ...props }: UseCheckboxGroupProps<Y>) => {
35
35
  value: Y[];
36
36
  setValue: react.Dispatch<react.SetStateAction<Y[]>>;
37
- onChange: (evOrValue: Y | ChangeEvent<HTMLInputElement>) => void;
37
+ onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
38
38
  getCheckboxProps: UIPropGetter<"input", {
39
39
  value?: Y | undefined;
40
40
  }, {
@@ -56,15 +56,8 @@ type CheckboxContext = ThemeProps<"Checkbox"> & FormControlOptions & {
56
56
  };
57
57
  declare const useCheckboxGroupContext: () => CheckboxContext | undefined;
58
58
 
59
- declare const CheckboxGroup: (<Y extends string | number = string>(props: ThemeProps<"Checkbox"> & Omit<FlexProps, "onChange"> & UseCheckboxGroupProps<Y> & FormControlOptions & {
60
- /**
61
- * If provided, generate checkboxes based on items.
62
- *
63
- * @default '[]'
64
- */
65
- items?: CheckboxItem<Y>[] | undefined;
66
- } & {
67
- ref?: Ref<HTMLDivElement> | undefined;
59
+ declare const CheckboxGroup: (<Y extends string | number = string>(props: CheckboxGroupProps<Y> & {
60
+ ref?: Ref<HTMLDivElement>;
68
61
  }) => JSX.Element) & ComponentArgs;
69
62
 
70
63
  export { CheckboxGroup, type CheckboxGroupProps, type CheckboxItem, type UseCheckboxGroupProps, type UseCheckboxGroupReturn, useCheckboxGroup, useCheckboxGroupContext };
@@ -34,7 +34,7 @@ type UseCheckboxGroupProps<Y extends string | number = string> = {
34
34
  declare const useCheckboxGroup: <Y extends string | number = string>({ isNative, ...props }: UseCheckboxGroupProps<Y>) => {
35
35
  value: Y[];
36
36
  setValue: react.Dispatch<react.SetStateAction<Y[]>>;
37
- onChange: (evOrValue: Y | ChangeEvent<HTMLInputElement>) => void;
37
+ onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
38
38
  getCheckboxProps: UIPropGetter<"input", {
39
39
  value?: Y | undefined;
40
40
  }, {
@@ -56,15 +56,8 @@ type CheckboxContext = ThemeProps<"Checkbox"> & FormControlOptions & {
56
56
  };
57
57
  declare const useCheckboxGroupContext: () => CheckboxContext | undefined;
58
58
 
59
- declare const CheckboxGroup: (<Y extends string | number = string>(props: ThemeProps<"Checkbox"> & Omit<FlexProps, "onChange"> & UseCheckboxGroupProps<Y> & FormControlOptions & {
60
- /**
61
- * If provided, generate checkboxes based on items.
62
- *
63
- * @default '[]'
64
- */
65
- items?: CheckboxItem<Y>[] | undefined;
66
- } & {
67
- ref?: Ref<HTMLDivElement> | undefined;
59
+ declare const CheckboxGroup: (<Y extends string | number = string>(props: CheckboxGroupProps<Y> & {
60
+ ref?: Ref<HTMLDivElement>;
68
61
  }) => JSX.Element) & ComponentArgs;
69
62
 
70
63
  export { CheckboxGroup, type CheckboxGroupProps, type CheckboxItem, type UseCheckboxGroupProps, type UseCheckboxGroupReturn, useCheckboxGroup, useCheckboxGroupContext };
@@ -86,55 +86,8 @@ type CheckboxProps<Y extends string | number = string> = Omit<HTMLUIProps<"label
86
86
  *
87
87
  * @see Docs https://yamada-ui.com/components/forms/checkbox
88
88
  */
89
- declare const Checkbox: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "id" | "tabIndex" | "onFocus" | "onBlur" | "onChange" | keyof FormControlOptions | "name" | "value" | "defaultIsChecked" | "isChecked" | "isIndeterminate" | "checked"> & ThemeProps<"Checkbox"> & FormControlOptions & {
90
- /**
91
- * id assigned to input.
92
- */
93
- id?: string | undefined;
94
- /**
95
- * The HTML `name` attribute used for forms.
96
- */
97
- name?: string | undefined;
98
- /**
99
- * The value to be used in the checkbox input.
100
- */
101
- value?: Y | undefined;
102
- /**
103
- * If `true`, the checkbox will be initially checked.
104
- *
105
- * @default false
106
- */
107
- defaultIsChecked?: boolean | undefined;
108
- /**
109
- * If `true`, the checkbox will be checked.
110
- *
111
- * @default false
112
- */
113
- isChecked?: boolean | undefined;
114
- /**
115
- * If `true`, the checkbox will be indeterminate.
116
- *
117
- * @default false
118
- */
119
- isIndeterminate?: boolean | undefined;
120
- /**
121
- * The callback invoked when the checked state changes.
122
- */
123
- onChange?: ChangeEventHandler<HTMLInputElement> | undefined;
124
- /**
125
- * The callback invoked when the checkbox is focused.
126
- */
127
- onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
128
- /**
129
- * The callback invoked when the checkbox is blurred.
130
- */
131
- onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
132
- /**
133
- * The tab-index property of the underlying input element.
134
- */
135
- tabIndex?: number | undefined;
136
- } & CheckboxOptions & {
137
- ref?: Ref<HTMLInputElement> | undefined;
89
+ declare const Checkbox: (<Y extends string | number = string>(props: CheckboxProps<Y> & {
90
+ ref?: Ref<HTMLInputElement>;
138
91
  }) => JSX.Element) & ComponentArgs;
139
92
  type CheckboxIconProps = HTMLUIProps<"svg"> & SVGMotionProps<SVGSVGElement> & FormControlOptions & {
140
93
  /**
@@ -86,55 +86,8 @@ type CheckboxProps<Y extends string | number = string> = Omit<HTMLUIProps<"label
86
86
  *
87
87
  * @see Docs https://yamada-ui.com/components/forms/checkbox
88
88
  */
89
- declare const Checkbox: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "id" | "tabIndex" | "onFocus" | "onBlur" | "onChange" | keyof FormControlOptions | "name" | "value" | "defaultIsChecked" | "isChecked" | "isIndeterminate" | "checked"> & ThemeProps<"Checkbox"> & FormControlOptions & {
90
- /**
91
- * id assigned to input.
92
- */
93
- id?: string | undefined;
94
- /**
95
- * The HTML `name` attribute used for forms.
96
- */
97
- name?: string | undefined;
98
- /**
99
- * The value to be used in the checkbox input.
100
- */
101
- value?: Y | undefined;
102
- /**
103
- * If `true`, the checkbox will be initially checked.
104
- *
105
- * @default false
106
- */
107
- defaultIsChecked?: boolean | undefined;
108
- /**
109
- * If `true`, the checkbox will be checked.
110
- *
111
- * @default false
112
- */
113
- isChecked?: boolean | undefined;
114
- /**
115
- * If `true`, the checkbox will be indeterminate.
116
- *
117
- * @default false
118
- */
119
- isIndeterminate?: boolean | undefined;
120
- /**
121
- * The callback invoked when the checked state changes.
122
- */
123
- onChange?: ChangeEventHandler<HTMLInputElement> | undefined;
124
- /**
125
- * The callback invoked when the checkbox is focused.
126
- */
127
- onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
128
- /**
129
- * The callback invoked when the checkbox is blurred.
130
- */
131
- onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
132
- /**
133
- * The tab-index property of the underlying input element.
134
- */
135
- tabIndex?: number | undefined;
136
- } & CheckboxOptions & {
137
- ref?: Ref<HTMLInputElement> | undefined;
89
+ declare const Checkbox: (<Y extends string | number = string>(props: CheckboxProps<Y> & {
90
+ ref?: Ref<HTMLInputElement>;
138
91
  }) => JSX.Element) & ComponentArgs;
139
92
  type CheckboxIconProps = HTMLUIProps<"svg"> & SVGMotionProps<SVGSVGElement> & FormControlOptions & {
140
93
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/checkbox",
3
- "version": "1.0.19-dev-20240309140426",
3
+ "version": "1.0.19-dev-20240309224604",
4
4
  "description": "Yamada UI checkbox component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -36,13 +36,13 @@
36
36
  "url": "https://github.com/yamada-ui/yamada-ui/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@yamada-ui/core": "1.4.3-dev-20240309140426",
40
- "@yamada-ui/utils": "1.0.7-dev-20240309140426",
41
- "@yamada-ui/layouts": "1.1.12-dev-20240309140426",
42
- "@yamada-ui/form-control": "1.0.18-dev-20240309140426",
43
- "@yamada-ui/motion": "1.0.16-dev-20240309140426",
44
- "@yamada-ui/use-focus-visible": "1.0.7-dev-20240309140426",
45
- "@yamada-ui/use-controllable-state": "1.0.7-dev-20240309140426"
39
+ "@yamada-ui/core": "1.4.3-dev-20240309224604",
40
+ "@yamada-ui/utils": "1.0.7-dev-20240309224604",
41
+ "@yamada-ui/layouts": "1.1.12-dev-20240309224604",
42
+ "@yamada-ui/form-control": "1.0.18-dev-20240309224604",
43
+ "@yamada-ui/motion": "1.0.16-dev-20240309224604",
44
+ "@yamada-ui/use-focus-visible": "1.0.7-dev-20240309224604",
45
+ "@yamada-ui/use-controllable-state": "1.0.7-dev-20240309224604"
46
46
  },
47
47
  "devDependencies": {
48
48
  "react": "^18.0.0",