@yamada-ui/radio 0.2.16 → 0.3.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.
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  // src/radio-group.tsx
2
4
  import { useFormControl } from "@yamada-ui/form-control";
3
5
  import { Flex } from "@yamada-ui/layouts";
@@ -1,6 +1,7 @@
1
+ "use client"
1
2
  import {
2
3
  useRadioGroupContenxt
3
- } from "./chunk-G5N5WNDU.mjs";
4
+ } from "./chunk-577WYHY3.mjs";
4
5
 
5
6
  // src/radio.tsx
6
7
  import {
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client"
1
2
  "use strict";
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/index.mjs CHANGED
@@ -1,11 +1,12 @@
1
+ "use client"
1
2
  import {
2
3
  Radio,
3
4
  useRadio
4
- } from "./chunk-CHIKPMQS.mjs";
5
+ } from "./chunk-FHZRCWV7.mjs";
5
6
  import {
6
7
  RadioGroup,
7
8
  useRadioGroup
8
- } from "./chunk-G5N5WNDU.mjs";
9
+ } from "./chunk-577WYHY3.mjs";
9
10
  export {
10
11
  Radio,
11
12
  RadioGroup,
@@ -40,7 +40,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
40
40
  name: string;
41
41
  value: Y;
42
42
  setValue: react.Dispatch<react.SetStateAction<Y>>;
43
- onChange: (evOrValue: Y | ChangeEvent<HTMLInputElement>) => void;
43
+ onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
44
44
  onFocus: () => void;
45
45
  getContainerProps: PropGetter;
46
46
  getRadioProps: PropGetter<react.AriaAttributes & react.DOMAttributes<HTMLInputElement> & {
@@ -53,7 +53,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
53
53
  } & {
54
54
  isChecked?: boolean | undefined;
55
55
  }, Omit<DOMAttributes<HTMLInputElement>, "onChange"> & {
56
- onChange: (ev: Y | ChangeEvent<HTMLInputElement>) => void;
56
+ onChange: (ev: ChangeEvent<HTMLInputElement> | Y) => void;
57
57
  }>;
58
58
  };
59
59
  type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
@@ -40,7 +40,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
40
40
  name: string;
41
41
  value: Y;
42
42
  setValue: react.Dispatch<react.SetStateAction<Y>>;
43
- onChange: (evOrValue: Y | ChangeEvent<HTMLInputElement>) => void;
43
+ onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
44
44
  onFocus: () => void;
45
45
  getContainerProps: PropGetter;
46
46
  getRadioProps: PropGetter<react.AriaAttributes & react.DOMAttributes<HTMLInputElement> & {
@@ -53,7 +53,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
53
53
  } & {
54
54
  isChecked?: boolean | undefined;
55
55
  }, Omit<DOMAttributes<HTMLInputElement>, "onChange"> & {
56
- onChange: (ev: Y | ChangeEvent<HTMLInputElement>) => void;
56
+ onChange: (ev: ChangeEvent<HTMLInputElement> | Y) => void;
57
57
  }>;
58
58
  };
59
59
  type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
@@ -1,3 +1,4 @@
1
+ "use client"
1
2
  "use strict";
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,8 +1,9 @@
1
+ "use client"
1
2
  import {
2
3
  RadioGroup,
3
4
  useRadioGroup,
4
5
  useRadioGroupContenxt
5
- } from "./chunk-G5N5WNDU.mjs";
6
+ } from "./chunk-577WYHY3.mjs";
6
7
  export {
7
8
  RadioGroup,
8
9
  useRadioGroup,
package/dist/radio.d.mts CHANGED
@@ -51,7 +51,7 @@ type RadioOptions = {
51
51
  labelProps?: HTMLUIProps<'span'>;
52
52
  };
53
53
  type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<'label'>, keyof UseRadioProps> & ThemeProps<'Radio'> & UseRadioProps<Y> & RadioOptions;
54
- declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "id" | "name" | "value" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
54
+ declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "value" | "name" | "id" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
55
55
  /**
56
56
  * id assigned to input.
57
57
  */
package/dist/radio.d.ts CHANGED
@@ -51,7 +51,7 @@ type RadioOptions = {
51
51
  labelProps?: HTMLUIProps<'span'>;
52
52
  };
53
53
  type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<'label'>, keyof UseRadioProps> & ThemeProps<'Radio'> & UseRadioProps<Y> & RadioOptions;
54
- declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "id" | "name" | "value" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
54
+ declare const Radio: (<Y extends string | number = string>(props: Omit<HTMLUIProps<"label">, "value" | "name" | "id" | "onChange" | "defaultChecked" | keyof FormControlOptions | "isChecked"> & ThemeProps<"Radio"> & FormControlOptions & {
55
55
  /**
56
56
  * id assigned to input.
57
57
  */
package/dist/radio.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client"
1
2
  "use strict";
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/radio.mjs CHANGED
@@ -1,8 +1,9 @@
1
+ "use client"
1
2
  import {
2
3
  Radio,
3
4
  useRadio
4
- } from "./chunk-CHIKPMQS.mjs";
5
- import "./chunk-G5N5WNDU.mjs";
5
+ } from "./chunk-FHZRCWV7.mjs";
6
+ import "./chunk-577WYHY3.mjs";
6
7
  export {
7
8
  Radio,
8
9
  useRadio
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/radio",
3
- "version": "0.2.16",
3
+ "version": "0.3.0",
4
4
  "description": "Yamada UI radio component",
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.7.0",
38
+ "@yamada-ui/core": "0.9.0",
39
39
  "@yamada-ui/utils": "0.2.0",
40
- "@yamada-ui/form-control": "0.2.16",
41
- "@yamada-ui/layouts": "0.2.16",
42
- "@yamada-ui/use-controllable-state": "0.1.7",
43
- "@yamada-ui/use-focus-visible": "0.1.6"
40
+ "@yamada-ui/form-control": "0.3.0",
41
+ "@yamada-ui/layouts": "0.3.0",
42
+ "@yamada-ui/use-controllable-state": "0.2.0",
43
+ "@yamada-ui/use-focus-visible": "0.2.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "react": "^18.0.0",
@@ -56,7 +56,10 @@
56
56
  "format": [
57
57
  "cjs",
58
58
  "esm"
59
- ]
59
+ ],
60
+ "banner": {
61
+ "js": "\"use client\""
62
+ }
60
63
  },
61
64
  "module": "dist/index.mjs",
62
65
  "types": "dist/index.d.ts",