@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useRadioGroupContenxt
3
- } from "./chunk-3SKWSFIA.mjs";
3
+ } from "./chunk-IFPH6APO.mjs";
4
4
 
5
5
  // src/radio.tsx
6
6
  import {
@@ -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(omitObject(props, ["onChange"])),
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((0, import_utils2.omitObject)(props, ["onChange"])),
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-HR6MSMLG.mjs";
4
+ } from "./chunk-GSVZURUN.mjs";
5
5
  import {
6
6
  RadioGroup,
7
7
  useRadioGroup,
8
8
  useRadioGroupContenxt
9
- } from "./chunk-3SKWSFIA.mjs";
9
+ } from "./chunk-IFPH6APO.mjs";
10
10
  export {
11
11
  Radio,
12
12
  RadioGroup,
@@ -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<Record<string, unknown>, DOMAttributes<Element & HTMLOrSVGElement>>;
22
+ getContainerProps: PropGetter;
23
23
  getRadioProps: PropGetter<react.AriaAttributes & react.DOMAttributes<HTMLInputElement> & {
24
24
  [dataAttr: string]: any;
25
25
  } & {
@@ -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((0, import_utils.omitObject)(props, ["onChange"])),
138
+ ...getContainerProps(
139
+ (0, import_utils.omitObject)(props, ["onChange", "isInvalid", "isDisabled", "isRequired", "isReadOnly"])
140
+ ),
139
141
  children
140
142
  }
141
143
  )
@@ -2,7 +2,7 @@ import {
2
2
  RadioGroup,
3
3
  useRadioGroup,
4
4
  useRadioGroupContenxt
5
- } from "./chunk-3SKWSFIA.mjs";
5
+ } from "./chunk-IFPH6APO.mjs";
6
6
  export {
7
7
  RadioGroup,
8
8
  useRadioGroup,
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<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
22
- getInputProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
23
- getIconProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
24
- getLabelProps: PropGetter<Record<string, unknown>, _yamada_ui_utils.DOMAttributes<Element & HTMLOrSVGElement>>;
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((0, import_utils.omitObject)(props, ["onChange"])),
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
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Radio,
3
3
  useRadio
4
- } from "./chunk-HR6MSMLG.mjs";
5
- import "./chunk-3SKWSFIA.mjs";
4
+ } from "./chunk-GSVZURUN.mjs";
5
+ import "./chunk-IFPH6APO.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.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Yamada UI radio component",
5
5
  "keywords": [
6
6
  "yamada",