@yamada-ui/pin-input 0.3.21 → 0.4.0

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.
@@ -61,7 +61,7 @@ var PinInput = forwardRef(
61
61
  mask,
62
62
  onChange,
63
63
  onComplete,
64
- fileds = 4,
64
+ items = 4,
65
65
  children,
66
66
  ...rest
67
67
  } = useFormControlProps(omitThemeProps(mergedProps));
@@ -212,7 +212,7 @@ var PinInput = forwardRef(
212
212
  };
213
213
  let cloneChildren = getValidChildren(children);
214
214
  if (!cloneChildren.length)
215
- for (let i = 0; i < fileds; i++) {
215
+ for (let i = 0; i < items; i++) {
216
216
  cloneChildren.push(/* @__PURE__ */ jsx(PinInputField, {}, i));
217
217
  }
218
218
  return /* @__PURE__ */ jsx(DescendantsContextProvider, { value: descendants, children: /* @__PURE__ */ jsx(PinInputProvider, { value: { getInputProps, styles }, children: /* @__PURE__ */ jsx(
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ var PinInput = (0, import_core.forwardRef)(
66
66
  mask,
67
67
  onChange,
68
68
  onComplete,
69
- fileds = 4,
69
+ items = 4,
70
70
  children,
71
71
  ...rest
72
72
  } = (0, import_form_control.useFormControlProps)((0, import_core.omitThemeProps)(mergedProps));
@@ -217,7 +217,7 @@ var PinInput = (0, import_core.forwardRef)(
217
217
  };
218
218
  let cloneChildren = (0, import_utils.getValidChildren)(children);
219
219
  if (!cloneChildren.length)
220
- for (let i = 0; i < fileds; i++) {
220
+ for (let i = 0; i < items; i++) {
221
221
  cloneChildren.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PinInputField, {}, i));
222
222
  }
223
223
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescendantsContextProvider, { value: descendants, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PinInputProvider, { value: { getInputProps, styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PinInput,
4
4
  PinInputField
5
- } from "./chunk-S3HGITC7.mjs";
5
+ } from "./chunk-IXLJ7MGG.mjs";
6
6
  export {
7
7
  PinInput,
8
8
  PinInputField
@@ -61,7 +61,7 @@ type PinInputOptions = {
61
61
  *
62
62
  * @default 4
63
63
  */
64
- fileds?: number;
64
+ items?: number;
65
65
  /**
66
66
  * The border color when the input is focused.
67
67
  */
@@ -61,7 +61,7 @@ type PinInputOptions = {
61
61
  *
62
62
  * @default 4
63
63
  */
64
- fileds?: number;
64
+ items?: number;
65
65
  /**
66
66
  * The border color when the input is focused.
67
67
  */
package/dist/pin-input.js CHANGED
@@ -64,7 +64,7 @@ var PinInput = (0, import_core.forwardRef)(
64
64
  mask,
65
65
  onChange,
66
66
  onComplete,
67
- fileds = 4,
67
+ items = 4,
68
68
  children,
69
69
  ...rest
70
70
  } = (0, import_form_control.useFormControlProps)((0, import_core.omitThemeProps)(mergedProps));
@@ -215,7 +215,7 @@ var PinInput = (0, import_core.forwardRef)(
215
215
  };
216
216
  let cloneChildren = (0, import_utils.getValidChildren)(children);
217
217
  if (!cloneChildren.length)
218
- for (let i = 0; i < fileds; i++) {
218
+ for (let i = 0; i < items; i++) {
219
219
  cloneChildren.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PinInputField, {}, i));
220
220
  }
221
221
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescendantsContextProvider, { value: descendants, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PinInputProvider, { value: { getInputProps, styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PinInput,
4
4
  PinInputField
5
- } from "./chunk-S3HGITC7.mjs";
5
+ } from "./chunk-IXLJ7MGG.mjs";
6
6
  export {
7
7
  PinInput,
8
8
  PinInputField
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/pin-input",
3
- "version": "0.3.21",
3
+ "version": "0.4.0",
4
4
  "description": "Yamada UI pin input component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -39,7 +39,7 @@
39
39
  "@yamada-ui/utils": "0.3.3",
40
40
  "@yamada-ui/form-control": "0.3.19",
41
41
  "@yamada-ui/use-descendant": "0.2.5",
42
- "@yamada-ui/use-controllable-state": "0.3.0"
42
+ "@yamada-ui/use-controllable-state": "0.3.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",