@yamada-ui/radio 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.
@@ -13,19 +13,10 @@ import {
13
13
  omitObject as omitObject2,
14
14
  getValidChildren
15
15
  } from "@yamada-ui/utils";
16
- import {
17
- useCallback as useCallback2,
18
- useId,
19
- useRef,
20
- forwardRef as forwardRef2
21
- } from "react";
16
+ import { useCallback as useCallback2, useId, useRef, forwardRef as forwardRef2 } from "react";
22
17
 
23
18
  // src/radio.tsx
24
- import {
25
- ui,
26
- useMultiComponentStyle,
27
- omitThemeProps
28
- } from "@yamada-ui/core";
19
+ import { ui, useMultiComponentStyle, omitThemeProps } from "@yamada-ui/core";
29
20
  import {
30
21
  useFormControl,
31
22
  useFormControlProps,
@@ -41,12 +32,7 @@ import {
41
32
  dataAttr,
42
33
  pickObject
43
34
  } from "@yamada-ui/utils";
44
- import {
45
- forwardRef,
46
- useCallback,
47
- useEffect,
48
- useState
49
- } from "react";
35
+ import { forwardRef, useCallback, useEffect, useState } from "react";
50
36
  import { jsx, jsxs } from "react/jsx-runtime";
51
37
  var useRadio = (props) => {
52
38
  const { id, name, value, required, disabled, readOnly, ...rest } = useFormControlProps(props);
@@ -293,8 +279,8 @@ var useRadioGroup = ({
293
279
  isNative,
294
280
  ...props
295
281
  }) => {
296
- id = id != null ? id : useId();
297
- name = name != null ? name : `radio-${id}`;
282
+ id != null ? id : id = useId();
283
+ name != null ? name : name = `radio-${id}`;
298
284
  props.onChange = useCallbackRef2(props.onChange);
299
285
  const [value, setValue] = useControllableState({
300
286
  value: props.value,
package/dist/index.js CHANGED
@@ -49,8 +49,8 @@ var useRadioGroup = ({
49
49
  isNative,
50
50
  ...props
51
51
  }) => {
52
- id = id != null ? id : (0, import_react.useId)();
53
- name = name != null ? name : `radio-${id}`;
52
+ id != null ? id : id = (0, import_react.useId)();
53
+ name != null ? name : name = `radio-${id}`;
54
54
  props.onChange = (0, import_utils.useCallbackRef)(props.onChange);
55
55
  const [value, setValue] = (0, import_use_controllable_state.useControllableState)({
56
56
  value: props.value,
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  RadioGroup,
5
5
  useRadio,
6
6
  useRadioGroup
7
- } from "./chunk-UX7EGSYQ.mjs";
7
+ } from "./chunk-GSD74F4W.mjs";
8
8
  export {
9
9
  Radio,
10
10
  RadioGroup,
@@ -284,8 +284,8 @@ var useRadioGroup = ({
284
284
  isNative,
285
285
  ...props
286
286
  }) => {
287
- id = id != null ? id : (0, import_react2.useId)();
288
- name = name != null ? name : `radio-${id}`;
287
+ id != null ? id : id = (0, import_react2.useId)();
288
+ name != null ? name : name = `radio-${id}`;
289
289
  props.onChange = (0, import_utils2.useCallbackRef)(props.onChange);
290
290
  const [value, setValue] = (0, import_use_controllable_state.useControllableState)({
291
291
  value: props.value,
@@ -3,7 +3,7 @@ import {
3
3
  RadioGroup,
4
4
  useRadioGroup,
5
5
  useRadioGroupContenxt
6
- } from "./chunk-UX7EGSYQ.mjs";
6
+ } from "./chunk-GSD74F4W.mjs";
7
7
  export {
8
8
  RadioGroup,
9
9
  useRadioGroup,
package/dist/radio.js CHANGED
@@ -45,8 +45,8 @@ var useRadioGroup = ({
45
45
  isNative,
46
46
  ...props
47
47
  }) => {
48
- id = id != null ? id : (0, import_react.useId)();
49
- name = name != null ? name : `radio-${id}`;
48
+ id != null ? id : id = (0, import_react.useId)();
49
+ name != null ? name : name = `radio-${id}`;
50
50
  props.onChange = (0, import_utils.useCallbackRef)(props.onChange);
51
51
  const [value, setValue] = (0, import_use_controllable_state.useControllableState)({
52
52
  value: props.value,
package/dist/radio.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Radio,
4
4
  useRadio
5
- } from "./chunk-UX7EGSYQ.mjs";
5
+ } from "./chunk-GSD74F4W.mjs";
6
6
  export {
7
7
  Radio,
8
8
  useRadio
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/radio",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Yamada UI radio 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/layouts": "0.3.17",
42
- "@yamada-ui/use-controllable-state": "0.3.0",
40
+ "@yamada-ui/form-control": "0.3.20",
41
+ "@yamada-ui/layouts": "0.3.18",
42
+ "@yamada-ui/use-controllable-state": "0.3.2",
43
43
  "@yamada-ui/use-focus-visible": "0.2.5"
44
44
  },
45
45
  "devDependencies": {