@yamada-ui/checkbox 0.1.5 → 0.1.7

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.
@@ -105,7 +105,15 @@ var CheckboxGroup = (0, import_react.forwardRef)(
105
105
  role: "group",
106
106
  direction,
107
107
  gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
108
- ...(0, import_utils.omitObject)(props, ["value", "defaultValue", "onChange"]),
108
+ ...(0, import_utils.omitObject)(props, [
109
+ "value",
110
+ "defaultValue",
111
+ "onChange",
112
+ "isInvalid",
113
+ "isDisabled",
114
+ "isRequired",
115
+ "isReadOnly"
116
+ ]),
109
117
  children
110
118
  }
111
119
  )
@@ -2,7 +2,7 @@ import {
2
2
  CheckboxGroup,
3
3
  useCheckboxGroup,
4
4
  useCheckboxGroupContext
5
- } from "./chunk-3MZZPRTR.mjs";
5
+ } from "./chunk-VWDV5UM7.mjs";
6
6
  export {
7
7
  CheckboxGroup,
8
8
  useCheckboxGroup,
@@ -1,8 +1,7 @@
1
- import * as _yamada_ui_utils from '@yamada-ui/utils';
2
- import { PropGetter } from '@yamada-ui/utils';
3
1
  import { HTMLUIProps, ThemeProps, ComponentArgs } from '@yamada-ui/core';
4
2
  import { FormControlOptions } from '@yamada-ui/form-control';
5
3
  import { SVGMotionProps } from '@yamada-ui/motion';
4
+ import { PropGetter } from '@yamada-ui/utils';
6
5
  import { ChangeEventHandler, FocusEventHandler, Ref, FC, ReactElement, InputHTMLAttributes } from 'react';
7
6
 
8
7
  type UseCheckboxProps<Y extends string | number = string> = FormControlOptions & {
@@ -24,10 +23,10 @@ declare const useCheckbox: <Y extends string | number = string>(props: UseCheckb
24
23
  isActive: boolean;
25
24
  isChecked: boolean;
26
25
  isIndeterminate: boolean | undefined;
27
- getContainerProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
28
- getIconProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
29
- getInputProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
30
- getLabelProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
26
+ getContainerProps: PropGetter;
27
+ getIconProps: PropGetter;
28
+ getInputProps: PropGetter;
29
+ getLabelProps: PropGetter;
31
30
  };
32
31
  type CheckboxOptions = {
33
32
  iconProps?: Omit<HTMLUIProps<'span'>, 'children'> & {
package/dist/checkbox.js CHANGED
@@ -113,7 +113,15 @@ var CheckboxGroup = (0, import_react.forwardRef)(
113
113
  role: "group",
114
114
  direction,
115
115
  gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
116
- ...(0, import_utils.omitObject)(props, ["value", "defaultValue", "onChange"]),
116
+ ...(0, import_utils.omitObject)(props, [
117
+ "value",
118
+ "defaultValue",
119
+ "onChange",
120
+ "isInvalid",
121
+ "isDisabled",
122
+ "isRequired",
123
+ "isReadOnly"
124
+ ]),
117
125
  children
118
126
  }
119
127
  )
package/dist/checkbox.mjs CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  Checkbox,
3
3
  CheckboxIcon,
4
4
  useCheckbox
5
- } from "./chunk-WVMK5AIG.mjs";
6
- import "./chunk-3MZZPRTR.mjs";
5
+ } from "./chunk-H7YAGSVR.mjs";
6
+ import "./chunk-VWDV5UM7.mjs";
7
7
  export {
8
8
  Checkbox,
9
9
  CheckboxIcon,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useCheckboxGroupContext
3
- } from "./chunk-3MZZPRTR.mjs";
3
+ } from "./chunk-VWDV5UM7.mjs";
4
4
 
5
5
  // src/checkbox.tsx
6
6
  import {
@@ -85,7 +85,15 @@ var CheckboxGroup = forwardRef(
85
85
  role: "group",
86
86
  direction,
87
87
  gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
88
- ...omitObject(props, ["value", "defaultValue", "onChange"]),
88
+ ...omitObject(props, [
89
+ "value",
90
+ "defaultValue",
91
+ "onChange",
92
+ "isInvalid",
93
+ "isDisabled",
94
+ "isRequired",
95
+ "isReadOnly"
96
+ ]),
89
97
  children
90
98
  }
91
99
  )
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { Checkbox, CheckboxIcon, CheckboxIconProps, CheckboxProps, UseCheckboxProps, useCheckbox } from './checkbox.js';
2
2
  export { CheckboxGroup, CheckboxGroupProps, UseCheckboxGroupProps, useCheckboxGroup, useCheckboxGroupContext } from './checkbox-group.js';
3
- import '@yamada-ui/utils';
4
3
  import '@yamada-ui/core';
5
4
  import '@yamada-ui/form-control';
6
5
  import '@yamada-ui/motion';
6
+ import '@yamada-ui/utils';
7
7
  import 'react';
8
8
  import '@yamada-ui/layouts';
package/dist/index.js CHANGED
@@ -523,7 +523,15 @@ var CheckboxGroup = (0, import_react2.forwardRef)(
523
523
  role: "group",
524
524
  direction,
525
525
  gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
526
- ...(0, import_utils2.omitObject)(props, ["value", "defaultValue", "onChange"]),
526
+ ...(0, import_utils2.omitObject)(props, [
527
+ "value",
528
+ "defaultValue",
529
+ "onChange",
530
+ "isInvalid",
531
+ "isDisabled",
532
+ "isRequired",
533
+ "isReadOnly"
534
+ ]),
527
535
  children
528
536
  }
529
537
  )
package/dist/index.mjs CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  Checkbox,
3
3
  CheckboxIcon,
4
4
  useCheckbox
5
- } from "./chunk-WVMK5AIG.mjs";
5
+ } from "./chunk-H7YAGSVR.mjs";
6
6
  import {
7
7
  CheckboxGroup,
8
8
  useCheckboxGroup,
9
9
  useCheckboxGroupContext
10
- } from "./chunk-3MZZPRTR.mjs";
10
+ } from "./chunk-VWDV5UM7.mjs";
11
11
  export {
12
12
  Checkbox,
13
13
  CheckboxGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/checkbox",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Yamada UI checkbox component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,11 +35,11 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.1.5",
38
+ "@yamada-ui/core": "0.1.6",
39
39
  "@yamada-ui/utils": "0.1.1",
40
- "@yamada-ui/layouts": "0.1.5",
41
- "@yamada-ui/form-control": "0.1.5",
42
- "@yamada-ui/motion": "0.1.5",
40
+ "@yamada-ui/layouts": "0.1.6",
41
+ "@yamada-ui/form-control": "0.1.6",
42
+ "@yamada-ui/motion": "0.1.6",
43
43
  "@yamada-ui/use-focus-visible": "0.1.1",
44
44
  "@yamada-ui/use-controllable-state": "0.1.1"
45
45
  },