@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.
- package/dist/{chunk-G5N5WNDU.mjs → chunk-577WYHY3.mjs} +2 -0
- package/dist/{chunk-CHIKPMQS.mjs → chunk-FHZRCWV7.mjs} +2 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +3 -2
- package/dist/radio-group.d.mts +2 -2
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.js +1 -0
- package/dist/radio-group.mjs +2 -1
- package/dist/radio.d.mts +1 -1
- package/dist/radio.d.ts +1 -1
- package/dist/radio.js +1 -0
- package/dist/radio.mjs +3 -2
- package/package.json +10 -7
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
"use client"
|
|
1
2
|
import {
|
|
2
3
|
Radio,
|
|
3
4
|
useRadio
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FHZRCWV7.mjs";
|
|
5
6
|
import {
|
|
6
7
|
RadioGroup,
|
|
7
8
|
useRadioGroup
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-577WYHY3.mjs";
|
|
9
10
|
export {
|
|
10
11
|
Radio,
|
|
11
12
|
RadioGroup,
|
package/dist/radio-group.d.mts
CHANGED
|
@@ -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:
|
|
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:
|
|
56
|
+
onChange: (ev: ChangeEvent<HTMLInputElement> | Y) => void;
|
|
57
57
|
}>;
|
|
58
58
|
};
|
|
59
59
|
type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
56
|
+
onChange: (ev: ChangeEvent<HTMLInputElement> | Y) => void;
|
|
57
57
|
}>;
|
|
58
58
|
};
|
|
59
59
|
type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
|
package/dist/radio-group.js
CHANGED
package/dist/radio-group.mjs
CHANGED
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">, "
|
|
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">, "
|
|
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
package/dist/radio.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/radio",
|
|
3
|
-
"version": "0.
|
|
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.
|
|
38
|
+
"@yamada-ui/core": "0.9.0",
|
|
39
39
|
"@yamada-ui/utils": "0.2.0",
|
|
40
|
-
"@yamada-ui/form-control": "0.
|
|
41
|
-
"@yamada-ui/layouts": "0.
|
|
42
|
-
"@yamada-ui/use-controllable-state": "0.
|
|
43
|
-
"@yamada-ui/use-focus-visible": "0.
|
|
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",
|