@yamada-ui/radio 0.1.5 → 0.1.6
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-HR6MSMLG.mjs → chunk-GSVZURUN.mjs} +1 -1
- package/dist/{chunk-3SKWSFIA.mjs → chunk-IFPH6APO.mjs} +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +2 -2
- package/dist/radio-group.d.ts +1 -1
- package/dist/radio-group.js +3 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/radio.d.ts +5 -6
- package/dist/radio.js +3 -1
- package/dist/radio.mjs +2 -2
- package/package.json +1 -1
|
@@ -116,7 +116,9 @@ var RadioGroup = forwardRef(
|
|
|
116
116
|
className: cx("ui-radio-group", className),
|
|
117
117
|
direction,
|
|
118
118
|
gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
|
|
119
|
-
...getContainerProps(
|
|
119
|
+
...getContainerProps(
|
|
120
|
+
omitObject(props, ["onChange", "isInvalid", "isDisabled", "isRequired", "isReadOnly"])
|
|
121
|
+
),
|
|
120
122
|
children
|
|
121
123
|
}
|
|
122
124
|
)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Radio, RadioProps, UseRadioProps, useRadio } from './radio.js';
|
|
2
2
|
export { RadioGroup, RadioGroupProps, UseRadioGroupProps, useRadioGroup, useRadioGroupContenxt } from './radio-group.js';
|
|
3
|
-
import '@yamada-ui/utils';
|
|
4
3
|
import '@yamada-ui/core';
|
|
5
4
|
import '@yamada-ui/form-control';
|
|
5
|
+
import '@yamada-ui/utils';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@yamada-ui/layouts';
|
package/dist/index.js
CHANGED
|
@@ -373,7 +373,9 @@ var RadioGroup = (0, import_react2.forwardRef)(
|
|
|
373
373
|
className: (0, import_utils2.cx)("ui-radio-group", className),
|
|
374
374
|
direction,
|
|
375
375
|
gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
|
|
376
|
-
...getContainerProps(
|
|
376
|
+
...getContainerProps(
|
|
377
|
+
(0, import_utils2.omitObject)(props, ["onChange", "isInvalid", "isDisabled", "isRequired", "isReadOnly"])
|
|
378
|
+
),
|
|
377
379
|
children
|
|
378
380
|
}
|
|
379
381
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Radio,
|
|
3
3
|
useRadio
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GSVZURUN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
RadioGroup,
|
|
7
7
|
useRadioGroup,
|
|
8
8
|
useRadioGroupContenxt
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IFPH6APO.mjs";
|
|
10
10
|
export {
|
|
11
11
|
Radio,
|
|
12
12
|
RadioGroup,
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const useRadioGroup: <Y extends string | number = string>({ id, name, is
|
|
|
19
19
|
setValue: react.Dispatch<react.SetStateAction<Y>>;
|
|
20
20
|
onChange: (evOrValue: ChangeEvent<HTMLInputElement> | Y) => void;
|
|
21
21
|
onFocus: () => void;
|
|
22
|
-
getContainerProps: PropGetter
|
|
22
|
+
getContainerProps: PropGetter;
|
|
23
23
|
getRadioProps: PropGetter<react.AriaAttributes & react.DOMAttributes<HTMLInputElement> & {
|
|
24
24
|
[dataAttr: string]: any;
|
|
25
25
|
} & {
|
package/dist/radio-group.js
CHANGED
|
@@ -135,7 +135,9 @@ var RadioGroup = (0, import_react.forwardRef)(
|
|
|
135
135
|
className: (0, import_utils.cx)("ui-radio-group", className),
|
|
136
136
|
direction,
|
|
137
137
|
gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
|
|
138
|
-
...getContainerProps(
|
|
138
|
+
...getContainerProps(
|
|
139
|
+
(0, import_utils.omitObject)(props, ["onChange", "isInvalid", "isDisabled", "isRequired", "isReadOnly"])
|
|
140
|
+
),
|
|
139
141
|
children
|
|
140
142
|
}
|
|
141
143
|
)
|
package/dist/radio-group.mjs
CHANGED
package/dist/radio.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
|
2
|
-
import { PropGetter } from '@yamada-ui/utils';
|
|
3
1
|
import { HTMLUIProps, ThemeProps, ComponentArgs } from '@yamada-ui/core';
|
|
4
2
|
import { FormControlOptions } from '@yamada-ui/form-control';
|
|
3
|
+
import { PropGetter } from '@yamada-ui/utils';
|
|
5
4
|
import { ChangeEventHandler, Ref, InputHTMLAttributes } from 'react';
|
|
6
5
|
|
|
7
6
|
type UseRadioProps<Y extends string | number = string> = FormControlOptions & {
|
|
@@ -18,10 +17,10 @@ declare const useRadio: <Y extends string | number = string>(props: UseRadioProp
|
|
|
18
17
|
isHovered: boolean;
|
|
19
18
|
isActive: boolean;
|
|
20
19
|
isChecked: boolean;
|
|
21
|
-
getContainerProps: PropGetter
|
|
22
|
-
getInputProps: PropGetter
|
|
23
|
-
getIconProps: PropGetter
|
|
24
|
-
getLabelProps: PropGetter
|
|
20
|
+
getContainerProps: PropGetter;
|
|
21
|
+
getInputProps: PropGetter;
|
|
22
|
+
getIconProps: PropGetter;
|
|
23
|
+
getLabelProps: PropGetter;
|
|
25
24
|
};
|
|
26
25
|
type RadioOptions = {
|
|
27
26
|
iconProps?: HTMLUIProps<'span'>;
|
package/dist/radio.js
CHANGED
|
@@ -141,7 +141,9 @@ var RadioGroup = (0, import_react.forwardRef)(
|
|
|
141
141
|
className: (0, import_utils.cx)("ui-radio-group", className),
|
|
142
142
|
direction,
|
|
143
143
|
gap: gap != null ? gap : direction === "row" ? "1rem" : void 0,
|
|
144
|
-
...getContainerProps(
|
|
144
|
+
...getContainerProps(
|
|
145
|
+
(0, import_utils.omitObject)(props, ["onChange", "isInvalid", "isDisabled", "isRequired", "isReadOnly"])
|
|
146
|
+
),
|
|
145
147
|
children
|
|
146
148
|
}
|
|
147
149
|
)
|
package/dist/radio.mjs
CHANGED