@yamada-ui/pin-input 0.4.0 → 0.4.2

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.
@@ -22,12 +22,7 @@ import {
22
22
  filterUndefined,
23
23
  getValidChildren
24
24
  } from "@yamada-ui/utils";
25
- import {
26
- useCallback,
27
- useEffect,
28
- useId,
29
- useState
30
- } from "react";
25
+ import { useCallback, useEffect, useId, useState } from "react";
31
26
  import { jsx } from "react/jsx-runtime";
32
27
  var toArray = (value) => value == null ? void 0 : value.split("");
33
28
  var validate = (value, type) => {
@@ -65,7 +60,7 @@ var PinInput = forwardRef(
65
60
  children,
66
61
  ...rest
67
62
  } = useFormControlProps(omitThemeProps(mergedProps));
68
- id = id != null ? id : useId();
63
+ id != null ? id : id = useId();
69
64
  const descendants = useDescendants();
70
65
  const [moveFocus, setMoveFocus] = useState(true);
71
66
  const [focusedIndex, setFocusedIndex] = useState(-1);
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ var PinInput = (0, import_core.forwardRef)(
70
70
  children,
71
71
  ...rest
72
72
  } = (0, import_form_control.useFormControlProps)((0, import_core.omitThemeProps)(mergedProps));
73
- id = id != null ? id : (0, import_react.useId)();
73
+ id != null ? id : id = (0, import_react.useId)();
74
74
  const descendants = useDescendants();
75
75
  const [moveFocus, setMoveFocus] = (0, import_react.useState)(true);
76
76
  const [focusedIndex, setFocusedIndex] = (0, import_react.useState)(-1);
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PinInput,
4
4
  PinInputField
5
- } from "./chunk-IXLJ7MGG.mjs";
5
+ } from "./chunk-UYIAVDTA.mjs";
6
6
  export {
7
7
  PinInput,
8
8
  PinInputField
package/dist/pin-input.js CHANGED
@@ -68,7 +68,7 @@ var PinInput = (0, import_core.forwardRef)(
68
68
  children,
69
69
  ...rest
70
70
  } = (0, import_form_control.useFormControlProps)((0, import_core.omitThemeProps)(mergedProps));
71
- id = id != null ? id : (0, import_react.useId)();
71
+ id != null ? id : id = (0, import_react.useId)();
72
72
  const descendants = useDescendants();
73
73
  const [moveFocus, setMoveFocus] = (0, import_react.useState)(true);
74
74
  const [focusedIndex, setFocusedIndex] = (0, import_react.useState)(-1);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PinInput,
4
4
  PinInputField
5
- } from "./chunk-IXLJ7MGG.mjs";
5
+ } from "./chunk-UYIAVDTA.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.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Yamada UI pin input 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.12.6",
38
+ "@yamada-ui/core": "0.12.7",
39
39
  "@yamada-ui/utils": "0.3.3",
40
- "@yamada-ui/form-control": "0.3.19",
41
- "@yamada-ui/use-descendant": "0.2.5",
42
- "@yamada-ui/use-controllable-state": "0.3.1"
40
+ "@yamada-ui/form-control": "0.3.20",
41
+ "@yamada-ui/use-descendant": "0.2.6",
42
+ "@yamada-ui/use-controllable-state": "0.4.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",