Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/checkbox

Package Overview
Dependencies
Maintainers
0
Versions
1076
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/checkbox - npm Package Compare versions

Comparing version 1.1.14-next-20241114172658 to 1.2.0-dev-20241114175747

dist/chunk-H3YRSSXV.mjs

5

dist/checkbox-group.js

@@ -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)(

8

dist/checkbox.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc