@yamada-ui/radio 0.0.0-dev-20231110102111 → 0.0.0-dev-20231111133020
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-FHZRCWV7.mjs → chunk-HXAJW6RH.mjs} +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/radio-group.d.mts +2 -2
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio.d.mts +3 -3
- package/dist/radio.d.ts +3 -3
- package/dist/radio.js +3 -3
- package/dist/radio.mjs +1 -1
- package/package.json +3 -3
|
@@ -234,14 +234,14 @@ var Radio = forwardRef(
|
|
|
234
234
|
/* @__PURE__ */ jsx(
|
|
235
235
|
ui.input,
|
|
236
236
|
{
|
|
237
|
-
className: "ui-
|
|
237
|
+
className: "ui-radio__input",
|
|
238
238
|
...getInputProps(inputProps, ref)
|
|
239
239
|
}
|
|
240
240
|
),
|
|
241
241
|
/* @__PURE__ */ jsx(
|
|
242
242
|
ui.span,
|
|
243
243
|
{
|
|
244
|
-
className: "ui-
|
|
244
|
+
className: "ui-radio__icon",
|
|
245
245
|
...getIconProps(iconProps),
|
|
246
246
|
__css: {
|
|
247
247
|
position: "relative",
|
|
@@ -254,7 +254,7 @@ var Radio = forwardRef(
|
|
|
254
254
|
/* @__PURE__ */ jsx(
|
|
255
255
|
ui.span,
|
|
256
256
|
{
|
|
257
|
-
className: "ui-
|
|
257
|
+
className: "ui-radio__label",
|
|
258
258
|
...getLabelProps(labelProps),
|
|
259
259
|
__css: { ...styles.label },
|
|
260
260
|
children
|
package/dist/index.js
CHANGED
|
@@ -369,14 +369,14 @@ var Radio = (0, import_react2.forwardRef)(
|
|
|
369
369
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
370
370
|
import_core.ui.input,
|
|
371
371
|
{
|
|
372
|
-
className: "ui-
|
|
372
|
+
className: "ui-radio__input",
|
|
373
373
|
...getInputProps(inputProps, ref)
|
|
374
374
|
}
|
|
375
375
|
),
|
|
376
376
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
377
377
|
import_core.ui.span,
|
|
378
378
|
{
|
|
379
|
-
className: "ui-
|
|
379
|
+
className: "ui-radio__icon",
|
|
380
380
|
...getIconProps(iconProps),
|
|
381
381
|
__css: {
|
|
382
382
|
position: "relative",
|
|
@@ -389,7 +389,7 @@ var Radio = (0, import_react2.forwardRef)(
|
|
|
389
389
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
390
390
|
import_core.ui.span,
|
|
391
391
|
{
|
|
392
|
-
className: "ui-
|
|
392
|
+
className: "ui-radio__label",
|
|
393
393
|
...getLabelProps(labelProps),
|
|
394
394
|
__css: { ...styles.label },
|
|
395
395
|
children
|
package/dist/index.mjs
CHANGED
package/dist/radio-group.d.mts
CHANGED
|
@@ -57,8 +57,8 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
|
|
|
57
57
|
}>;
|
|
58
58
|
};
|
|
59
59
|
type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
|
|
60
|
-
type RadioGroupProps<Y extends string | number = string> = ThemeProps<
|
|
61
|
-
type RadioGroupContext = ThemeProps<
|
|
60
|
+
type RadioGroupProps<Y extends string | number = string> = ThemeProps<"Radio"> & Omit<FlexProps, "onChange"> & UseRadioGroupProps<Y> & FormControlOptions;
|
|
61
|
+
type RadioGroupContext = ThemeProps<"Radio"> & FormControlOptions & {
|
|
62
62
|
name: string;
|
|
63
63
|
value: string | number;
|
|
64
64
|
onChange: (evOrValue: ChangeEvent<HTMLInputElement> | string | number) => void;
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -57,8 +57,8 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
|
|
|
57
57
|
}>;
|
|
58
58
|
};
|
|
59
59
|
type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
|
|
60
|
-
type RadioGroupProps<Y extends string | number = string> = ThemeProps<
|
|
61
|
-
type RadioGroupContext = ThemeProps<
|
|
60
|
+
type RadioGroupProps<Y extends string | number = string> = ThemeProps<"Radio"> & Omit<FlexProps, "onChange"> & UseRadioGroupProps<Y> & FormControlOptions;
|
|
61
|
+
type RadioGroupContext = ThemeProps<"Radio"> & FormControlOptions & {
|
|
62
62
|
name: string;
|
|
63
63
|
value: string | number;
|
|
64
64
|
onChange: (evOrValue: ChangeEvent<HTMLInputElement> | string | number) => void;
|
package/dist/radio.d.mts
CHANGED
|
@@ -46,11 +46,11 @@ declare const useRadio: <Y extends string | number = string>(props: UseRadioProp
|
|
|
46
46
|
};
|
|
47
47
|
type UseRadioReturn = ReturnType<typeof useRadio>;
|
|
48
48
|
type RadioOptions = {
|
|
49
|
-
iconProps?: HTMLUIProps<
|
|
49
|
+
iconProps?: HTMLUIProps<"span">;
|
|
50
50
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
51
|
-
labelProps?: HTMLUIProps<
|
|
51
|
+
labelProps?: HTMLUIProps<"span">;
|
|
52
52
|
};
|
|
53
|
-
type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<
|
|
53
|
+
type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<"label">, keyof UseRadioProps> & ThemeProps<"Radio"> & UseRadioProps<Y> & RadioOptions;
|
|
54
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.
|
package/dist/radio.d.ts
CHANGED
|
@@ -46,11 +46,11 @@ declare const useRadio: <Y extends string | number = string>(props: UseRadioProp
|
|
|
46
46
|
};
|
|
47
47
|
type UseRadioReturn = ReturnType<typeof useRadio>;
|
|
48
48
|
type RadioOptions = {
|
|
49
|
-
iconProps?: HTMLUIProps<
|
|
49
|
+
iconProps?: HTMLUIProps<"span">;
|
|
50
50
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
51
|
-
labelProps?: HTMLUIProps<
|
|
51
|
+
labelProps?: HTMLUIProps<"span">;
|
|
52
52
|
};
|
|
53
|
-
type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<
|
|
53
|
+
type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<"label">, keyof UseRadioProps> & ThemeProps<"Radio"> & UseRadioProps<Y> & RadioOptions;
|
|
54
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.
|
package/dist/radio.js
CHANGED
|
@@ -365,14 +365,14 @@ var Radio = (0, import_react2.forwardRef)(
|
|
|
365
365
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
366
366
|
import_core.ui.input,
|
|
367
367
|
{
|
|
368
|
-
className: "ui-
|
|
368
|
+
className: "ui-radio__input",
|
|
369
369
|
...getInputProps(inputProps, ref)
|
|
370
370
|
}
|
|
371
371
|
),
|
|
372
372
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
373
373
|
import_core.ui.span,
|
|
374
374
|
{
|
|
375
|
-
className: "ui-
|
|
375
|
+
className: "ui-radio__icon",
|
|
376
376
|
...getIconProps(iconProps),
|
|
377
377
|
__css: {
|
|
378
378
|
position: "relative",
|
|
@@ -385,7 +385,7 @@ var Radio = (0, import_react2.forwardRef)(
|
|
|
385
385
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
386
386
|
import_core.ui.span,
|
|
387
387
|
{
|
|
388
|
-
className: "ui-
|
|
388
|
+
className: "ui-radio__label",
|
|
389
389
|
...getLabelProps(labelProps),
|
|
390
390
|
__css: { ...styles.label },
|
|
391
391
|
children
|
package/dist/radio.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/radio",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20231111133020",
|
|
4
4
|
"description": "Yamada UI radio component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@yamada-ui/core": "0.12.5",
|
|
39
39
|
"@yamada-ui/utils": "0.3.3",
|
|
40
40
|
"@yamada-ui/form-control": "0.3.18",
|
|
41
|
-
"@yamada-ui/layouts": "0.
|
|
42
|
-
"@yamada-ui/use-controllable-state": "0.
|
|
41
|
+
"@yamada-ui/layouts": "0.3.16",
|
|
42
|
+
"@yamada-ui/use-controllable-state": "0.3.0",
|
|
43
43
|
"@yamada-ui/use-focus-visible": "0.2.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|