@yamada-ui/segmented-control 0.4.1 → 0.4.3

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.
@@ -23,13 +23,7 @@ import {
23
23
  useCallbackRef,
24
24
  useIsMounted
25
25
  } from "@yamada-ui/utils";
26
- import {
27
- useCallback,
28
- useEffect,
29
- useId,
30
- useRef,
31
- useState
32
- } from "react";
26
+ import { useCallback, useEffect, useId, useRef, useState } from "react";
33
27
  import { jsx, jsxs } from "react/jsx-runtime";
34
28
  var { DescendantsContextProvider, useDescendants, useDescendant } = createDescendant();
35
29
  var [SegmentedControlProvider, useSegmentedControl] = createContext({
@@ -53,8 +47,8 @@ var SegmentedControl = forwardRef(
53
47
  ...rest
54
48
  } = omitThemeProps(mergedProps);
55
49
  const isMoutedRef = useIsMounted();
56
- id = id != null ? id : useId();
57
- name = name != null ? name : `segmented-control-${useId()}`;
50
+ id != null ? id : id = useId();
51
+ name != null ? name : name = `segmented-control-${useId()}`;
58
52
  rest.onChange = useCallbackRef(rest.onChange);
59
53
  const descendants = useDescendants();
60
54
  const [focusedIndex, setFocusedIndex] = useState(-1);
package/dist/index.js CHANGED
@@ -57,8 +57,8 @@ var SegmentedControl = (0, import_core.forwardRef)(
57
57
  ...rest
58
58
  } = (0, import_core.omitThemeProps)(mergedProps);
59
59
  const isMoutedRef = (0, import_utils.useIsMounted)();
60
- id = id != null ? id : (0, import_react.useId)();
61
- name = name != null ? name : `segmented-control-${(0, import_react.useId)()}`;
60
+ id != null ? id : id = (0, import_react.useId)();
61
+ name != null ? name : name = `segmented-control-${(0, import_react.useId)()}`;
62
62
  rest.onChange = (0, import_utils.useCallbackRef)(rest.onChange);
63
63
  const descendants = useDescendants();
64
64
  const [focusedIndex, setFocusedIndex] = (0, import_react.useState)(-1);
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  SegmentedControl,
4
4
  SegmentedControlButton
5
- } from "./chunk-KEAS3GXU.mjs";
5
+ } from "./chunk-AW6NTRMH.mjs";
6
6
  export {
7
7
  SegmentedControl,
8
8
  SegmentedControlButton
@@ -55,8 +55,8 @@ var SegmentedControl = (0, import_core.forwardRef)(
55
55
  ...rest
56
56
  } = (0, import_core.omitThemeProps)(mergedProps);
57
57
  const isMoutedRef = (0, import_utils.useIsMounted)();
58
- id = id != null ? id : (0, import_react.useId)();
59
- name = name != null ? name : `segmented-control-${(0, import_react.useId)()}`;
58
+ id != null ? id : id = (0, import_react.useId)();
59
+ name != null ? name : name = `segmented-control-${(0, import_react.useId)()}`;
60
60
  rest.onChange = (0, import_utils.useCallbackRef)(rest.onChange);
61
61
  const descendants = useDescendants();
62
62
  const [focusedIndex, setFocusedIndex] = (0, import_react.useState)(-1);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  SegmentedControl,
4
4
  SegmentedControlButton
5
- } from "./chunk-KEAS3GXU.mjs";
5
+ } from "./chunk-AW6NTRMH.mjs";
6
6
  export {
7
7
  SegmentedControl,
8
8
  SegmentedControlButton
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/segmented-control",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Yamada UI segmented control components",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,12 +35,12 @@
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
40
  "@yamada-ui/use-focus-visible": "0.2.5",
41
- "@yamada-ui/use-descendant": "0.2.5",
41
+ "@yamada-ui/use-descendant": "0.2.6",
42
42
  "@yamada-ui/use-resize-observer": "0.2.5",
43
- "@yamada-ui/use-controllable-state": "0.3.0"
43
+ "@yamada-ui/use-controllable-state": "0.3.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "react": "^18.0.0",