@yamada-ui/checkbox
Advanced tools
Comparing version 1.1.14-next-20241114172658 to 1.2.0-dev-20241114175747
@@ -63,2 +63,3 @@ "use client" | ||
isIndeterminate, | ||
selectOnEnter, | ||
tabIndex, | ||
@@ -106,5 +107,7 @@ value, | ||
({ key }) => { | ||
var _a; | ||
if (key === " ") setActive(true); | ||
if (selectOnEnter && key === "Enter") (_a = inputRef.current) == null ? void 0 : _a.click(); | ||
}, | ||
[setActive] | ||
[setActive, selectOnEnter] | ||
); | ||
@@ -111,0 +114,0 @@ const onKeyUp = (0, import_react.useCallback)( |
@@ -37,2 +37,8 @@ import * as react from 'react'; | ||
/** | ||
* If `true`, the checkbox will be selected when the Enter key is pressed. | ||
* | ||
* @default false | ||
*/ | ||
selectOnEnter?: boolean; | ||
/** | ||
* The tab-index property of the underlying input element. | ||
@@ -86,3 +92,3 @@ */ | ||
id: string; | ||
} & Omit<M & UseCheckboxProps<Y>, "id"> & _yamada_ui_form_control.UseFormControlProps<HTMLElement>, "id" | "onFocus" | "onBlur" | "isDisabled" | "isInvalid" | "isReadOnly" | "isRequired" | "disabled" | "readOnly" | "required">, "id" | "tabIndex" | "onChange" | "name" | "defaultIsChecked" | "isChecked" | "isIndeterminate" | "value">, "_active" | "_focus" | "_focusVisible" | "_hover" | "_invalid" | "aria-disabled" | "aria-invalid" | "aria-readonly" | "aria-required" | "onFocus" | "onBlur" | "disabled" | "readOnly" | "required" | "data-readonly">; | ||
} & Omit<M & UseCheckboxProps<Y>, "id"> & _yamada_ui_form_control.UseFormControlProps<HTMLElement>, "id" | "onFocus" | "onBlur" | "isDisabled" | "isInvalid" | "isReadOnly" | "isRequired" | "disabled" | "readOnly" | "required">, "id" | "tabIndex" | "onChange" | "name" | "defaultIsChecked" | "isChecked" | "isIndeterminate" | "selectOnEnter" | "value">, "_active" | "_focus" | "_focusVisible" | "_hover" | "_invalid" | "aria-disabled" | "aria-invalid" | "aria-readonly" | "aria-required" | "onFocus" | "onBlur" | "disabled" | "readOnly" | "required" | "data-readonly">; | ||
getContainerProps: PropGetter<"label", undefined>; | ||
@@ -89,0 +95,0 @@ getIconProps: PropGetter<"div", undefined>; |
@@ -57,2 +57,3 @@ "use client" | ||
isIndeterminate, | ||
selectOnEnter, | ||
tabIndex, | ||
@@ -100,5 +101,7 @@ value, | ||
({ key }) => { | ||
var _a; | ||
if (key === " ") setActive(true); | ||
if (selectOnEnter && key === "Enter") (_a = inputRef.current) == null ? void 0 : _a.click(); | ||
}, | ||
[setActive] | ||
[setActive, selectOnEnter] | ||
); | ||
@@ -105,0 +108,0 @@ const onKeyUp = (0, import_react.useCallback)( |
@@ -61,2 +61,3 @@ "use client" | ||
isIndeterminate, | ||
selectOnEnter, | ||
tabIndex, | ||
@@ -104,5 +105,7 @@ value, | ||
({ key }) => { | ||
var _a; | ||
if (key === " ") setActive(true); | ||
if (selectOnEnter && key === "Enter") (_a = inputRef.current) == null ? void 0 : _a.click(); | ||
}, | ||
[setActive] | ||
[setActive, selectOnEnter] | ||
); | ||
@@ -109,0 +112,0 @@ const onKeyUp = (0, import_react.useCallback)( |
{ | ||
"name": "@yamada-ui/checkbox", | ||
"version": "1.1.14-next-20241114172658", | ||
"version": "1.2.0-dev-20241114175747", | ||
"description": "Yamada UI checkbox component", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"@yamada-ui/layouts": "1.2.1", | ||
"@yamada-ui/motion": "2.2.8-next-20241114172658", | ||
"@yamada-ui/motion": "2.2.8-dev-20241114175747", | ||
"@yamada-ui/use-controllable-state": "1.0.23", | ||
@@ -45,0 +45,0 @@ "@yamada-ui/use-focus-visible": "1.1.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
221485
2577
+ Added@yamada-ui/motion@2.2.8-dev-20241114175747(transitive)
- Removed@yamada-ui/motion@2.2.8-next-20241114172658(transitive)