diff --git a/packages/opub-ui/src/components/Form/components/Combobox.tsx b/packages/opub-ui/src/components/Form/components/Combobox.tsx index 17ed13a0..737622ba 100644 --- a/packages/opub-ui/src/components/Form/components/Combobox.tsx +++ b/packages/opub-ui/src/components/Form/components/Combobox.tsx @@ -1,6 +1,6 @@ 'use client'; -import { ComboboxSingleProps, Error } from '../../../types'; +import { ComboboxSingleProps, type Error } from '../../../types'; import { Combobox as ComboboxBase, ComboboxMulti as ComboboxMultiBase, diff --git a/packages/opub-ui/src/components/Form/index.ts b/packages/opub-ui/src/components/Form/index.ts index 3b8a4240..ab8134c1 100644 --- a/packages/opub-ui/src/components/Form/index.ts +++ b/packages/opub-ui/src/components/Form/index.ts @@ -1,3 +1,2 @@ export * from './components'; -export { Form } from './Form'; -export type { FormProps } from './Form'; +export { Form, type FormProps } from './Form'; diff --git a/packages/opub-ui/src/components/Labelled/Labelled.tsx b/packages/opub-ui/src/components/Labelled/Labelled.tsx index 5326cdbd..47d476be 100644 --- a/packages/opub-ui/src/components/Labelled/Labelled.tsx +++ b/packages/opub-ui/src/components/Labelled/Labelled.tsx @@ -8,7 +8,7 @@ import styles from './Labelled.module.scss'; import cx from 'classnames'; import React from 'react'; -export interface LabelledProps { +export type LabelledProps = { /** A unique identifier for the label */ id?: string; /** Text for the label */ @@ -27,7 +27,7 @@ export interface LabelledProps { requiredIndicator?: boolean; /** Additional class names to apply to the label */ className?: string; -} +}; export function Labelled({ id = '', diff --git a/packages/opub-ui/src/types/choicelist.ts b/packages/opub-ui/src/types/choicelist.ts index 956b087f..ca9c9115 100644 --- a/packages/opub-ui/src/types/choicelist.ts +++ b/packages/opub-ui/src/types/choicelist.ts @@ -1,4 +1,4 @@ -import { Error } from './shared/form'; +import { type Error } from './shared/form'; export interface ChoiceProps { /** Value of the choice */ diff --git a/packages/opub-ui/src/types/combobox.ts b/packages/opub-ui/src/types/combobox.ts index 12cfa7eb..5dc974e1 100644 --- a/packages/opub-ui/src/types/combobox.ts +++ b/packages/opub-ui/src/types/combobox.ts @@ -1,4 +1,4 @@ -import { Error, LabelledProps } from './shared/form'; +import type { Error, LabelledProps } from './shared/form'; import React from 'react'; type ComboboxState = { diff --git a/packages/opub-ui/src/types/input.ts b/packages/opub-ui/src/types/input.ts index 087f0819..49d51a88 100644 --- a/packages/opub-ui/src/types/input.ts +++ b/packages/opub-ui/src/types/input.ts @@ -1,4 +1,4 @@ -import { Error, LabelledProps } from './shared/form'; +import type { Error, LabelledProps } from './shared/form'; type Type = | 'text' diff --git a/packages/opub-ui/src/types/select.ts b/packages/opub-ui/src/types/select.ts index 1acc69c4..4378b930 100644 --- a/packages/opub-ui/src/types/select.ts +++ b/packages/opub-ui/src/types/select.ts @@ -1,4 +1,4 @@ -import { LabelledProps } from '../components/Labelled'; +import type { LabelledProps } from '../components/Labelled'; import type { Error } from './shared/form'; export interface StrictOption {