+
{helperText}
)}
diff --git a/packages/ui/src/Radio/Radio.test.tsx b/packages/ui/src/Radio/Radio.test.tsx
index 46c7fa8..8bd9569 100644
--- a/packages/ui/src/Radio/Radio.test.tsx
+++ b/packages/ui/src/Radio/Radio.test.tsx
@@ -1,10 +1,10 @@
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { createRef } from 'react';
+import React from 'react';
import { describe, expect, it, vi } from 'vitest';
import { Radio } from './Radio';
import { RadioGroup } from './RadioGroup';
-import React from 'react';
describe('Radio', () => {
describe('Rendering', () => {
@@ -347,10 +347,7 @@ describe('Radio', () => {
);
- expect(screen.getByRole('radio')).toHaveAttribute(
- 'aria-describedby',
- 'description'
- );
+ expect(screen.getByRole('radio')).toHaveAttribute('aria-describedby', 'description');
});
it('should support aria-labelledby', () => {
@@ -573,10 +570,7 @@ describe('RadioGroup', () => {
);
- expect(screen.getByRole('radiogroup')).toHaveAttribute(
- 'aria-label',
- 'Choose size'
- );
+ expect(screen.getByRole('radiogroup')).toHaveAttribute('aria-label', 'Choose size');
});
it('should support aria-labelledby', () => {
@@ -585,10 +579,7 @@ describe('RadioGroup', () => {
);
- expect(screen.getByRole('radiogroup')).toHaveAttribute(
- 'aria-labelledby',
- 'label-id'
- );
+ expect(screen.getByRole('radiogroup')).toHaveAttribute('aria-labelledby', 'label-id');
});
it('should support aria-describedby', () => {
@@ -597,10 +588,7 @@ describe('RadioGroup', () => {
);
- expect(screen.getByRole('radiogroup')).toHaveAttribute(
- 'aria-describedby',
- 'description-id'
- );
+ expect(screen.getByRole('radiogroup')).toHaveAttribute('aria-describedby', 'description-id');
});
it('should support aria-required', () => {
diff --git a/packages/ui/src/Radio/Radio.tsx b/packages/ui/src/Radio/Radio.tsx
index 2174bde..ac8d1b7 100644
--- a/packages/ui/src/Radio/Radio.tsx
+++ b/packages/ui/src/Radio/Radio.tsx
@@ -89,10 +89,7 @@ export const Radio = forwardRef
(
const labelElement = label ? (
diff --git a/packages/ui/src/Radio/types.ts b/packages/ui/src/Radio/types.ts
index 863d118..85854f3 100644
--- a/packages/ui/src/Radio/types.ts
+++ b/packages/ui/src/Radio/types.ts
@@ -3,8 +3,7 @@ import type { InputHTMLAttributes } from 'react';
/**
* Radio component props
*/
-export interface RadioProps
- extends Omit, 'size' | 'type'> {
+export interface RadioProps extends Omit, 'size' | 'type'> {
/**
* Visual state of the radio button
* @default 'default'
diff --git a/packages/ui/src/Select/Select.test.tsx b/packages/ui/src/Select/Select.test.tsx
index 75772f6..feb92e3 100644
--- a/packages/ui/src/Select/Select.test.tsx
+++ b/packages/ui/src/Select/Select.test.tsx
@@ -231,9 +231,7 @@ describe('Select', () => {
});
it('should apply correct spinner size based on select size', () => {
- const { container, rerender } = render(
-
- );
+ const { container, rerender } = render();
let spinner = container.querySelector('svg.animate-spin');
expect(spinner).toHaveAttribute('width', '14');
@@ -300,18 +298,12 @@ describe('Select', () => {
it('should support aria-describedby', () => {
render();
- expect(screen.getByRole('combobox')).toHaveAttribute(
- 'aria-describedby',
- 'description'
- );
+ expect(screen.getByRole('combobox')).toHaveAttribute('aria-describedby', 'description');
});
it('should support aria-labelledby', () => {
render();
- expect(screen.getByRole('combobox')).toHaveAttribute(
- 'aria-labelledby',
- 'label-id'
- );
+ expect(screen.getByRole('combobox')).toHaveAttribute('aria-labelledby', 'label-id');
});
it('should support aria-required', () => {
@@ -506,9 +498,7 @@ describe('Select', () => {
});
it('should work with loading and disabled states', () => {
- const { container } = render(
-
- );
+ const { container } = render();
const select = screen.getByRole('combobox');
expect(select).toBeDisabled();
expect(container.querySelector('svg.animate-spin')).toBeInTheDocument();
diff --git a/packages/ui/src/Select/Select.tsx b/packages/ui/src/Select/Select.tsx
index 6dbeeb7..01eab5f 100644
--- a/packages/ui/src/Select/Select.tsx
+++ b/packages/ui/src/Select/Select.tsx
@@ -98,27 +98,22 @@ export const Select = forwardRef(
{hasChildren && children}
{/* Render simple options if provided */}
- {!hasChildren && hasOptions &&
+ {!hasChildren &&
+ hasOptions &&
options.map((option) => (
-
))}
{/* Render option groups if provided */}
- {!hasChildren && !hasOptions && hasOptionGroups &&
+ {!hasChildren &&
+ !hasOptions &&
+ hasOptionGroups &&
optionGroups.map((group) => (