@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.
@@ -234,14 +234,14 @@ var Radio = forwardRef(
234
234
  /* @__PURE__ */ jsx(
235
235
  ui.input,
236
236
  {
237
- className: "ui-radio-input",
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-radio-icon",
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-radio-label",
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-radio-input",
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-radio-icon",
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-radio-label",
392
+ className: "ui-radio__label",
393
393
  ...getLabelProps(labelProps),
394
394
  __css: { ...styles.label },
395
395
  children
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Radio,
4
4
  useRadio
5
- } from "./chunk-FHZRCWV7.mjs";
5
+ } from "./chunk-HXAJW6RH.mjs";
6
6
  import {
7
7
  RadioGroup,
8
8
  useRadioGroup
@@ -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<'Radio'> & Omit<FlexProps, 'onChange'> & UseRadioGroupProps<Y> & FormControlOptions;
61
- type RadioGroupContext = ThemeProps<'Radio'> & FormControlOptions & {
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;
@@ -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<'Radio'> & Omit<FlexProps, 'onChange'> & UseRadioGroupProps<Y> & FormControlOptions;
61
- type RadioGroupContext = ThemeProps<'Radio'> & FormControlOptions & {
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<'span'>;
49
+ iconProps?: HTMLUIProps<"span">;
50
50
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
51
- labelProps?: HTMLUIProps<'span'>;
51
+ labelProps?: HTMLUIProps<"span">;
52
52
  };
53
- type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<'label'>, keyof UseRadioProps> & ThemeProps<'Radio'> & UseRadioProps<Y> & RadioOptions;
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<'span'>;
49
+ iconProps?: HTMLUIProps<"span">;
50
50
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
51
- labelProps?: HTMLUIProps<'span'>;
51
+ labelProps?: HTMLUIProps<"span">;
52
52
  };
53
- type RadioProps<Y extends string | number = string> = Omit<HTMLUIProps<'label'>, keyof UseRadioProps> & ThemeProps<'Radio'> & UseRadioProps<Y> & RadioOptions;
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-radio-input",
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-radio-icon",
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-radio-label",
388
+ className: "ui-radio__label",
389
389
  ...getLabelProps(labelProps),
390
390
  __css: { ...styles.label },
391
391
  children
package/dist/radio.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Radio,
4
4
  useRadio
5
- } from "./chunk-FHZRCWV7.mjs";
5
+ } from "./chunk-HXAJW6RH.mjs";
6
6
  import "./chunk-577WYHY3.mjs";
7
7
  export {
8
8
  Radio,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/radio",
3
- "version": "0.0.0-dev-20231110102111",
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.0.0-dev-20231110102111",
42
- "@yamada-ui/use-controllable-state": "0.0.0-dev-20231110102111",
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": {