Skip to content

Commit

Permalink
fix type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PixeledCode committed Jan 4, 2024
1 parent 9c8dce4 commit 3b20dfd
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { ComboboxSingleProps, Error } from '../../../types';
import { ComboboxSingleProps, type Error } from '../../../types';
import {
Combobox as ComboboxBase,
ComboboxMulti as ComboboxMultiBase,
Expand Down
3 changes: 1 addition & 2 deletions packages/opub-ui/src/components/Form/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './components';
export { Form } from './Form';
export type { FormProps } from './Form';
export { Form, type FormProps } from './Form';
4 changes: 2 additions & 2 deletions packages/opub-ui/src/components/Labelled/Labelled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -27,7 +27,7 @@ export interface LabelledProps {
requiredIndicator?: boolean;
/** Additional class names to apply to the label */
className?: string;
}
};

export function Labelled({
id = '',
Expand Down
2 changes: 1 addition & 1 deletion packages/opub-ui/src/types/choicelist.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Error } from './shared/form';
import { type Error } from './shared/form';

export interface ChoiceProps {
/** Value of the choice */
Expand Down
2 changes: 1 addition & 1 deletion packages/opub-ui/src/types/combobox.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Error, LabelledProps } from './shared/form';
import type { Error, LabelledProps } from './shared/form';
import React from 'react';

type ComboboxState = {
Expand Down
2 changes: 1 addition & 1 deletion packages/opub-ui/src/types/input.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Error, LabelledProps } from './shared/form';
import type { Error, LabelledProps } from './shared/form';

type Type =
| 'text'
Expand Down
2 changes: 1 addition & 1 deletion packages/opub-ui/src/types/select.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LabelledProps } from '../components/Labelled';
import type { LabelledProps } from '../components/Labelled';
import type { Error } from './shared/form';

export interface StrictOption {
Expand Down

1 comment on commit 3b20dfd

@vercel
Copy link

@vercel vercel bot commented on 3b20dfd Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

opub-www – ./apps/www

opub-www.vercel.app
opub-www-civicdatalab.vercel.app
opub-www-git-main-civicdatalab.vercel.app

Please sign in to comment.