Skip to content

Commit

Permalink
Adjusting types and fixing design system import
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed Jul 24, 2023
1 parent 03e4c0a commit a1352e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/components/component-library/input/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Input } from './input';

## Props

The `Input` accepts all props below as well as all [Box](/docs/components-ui-box--default-story#props) component props
The `Input` accepts all props below as well as all [Box](/docs/components-componentlibrary-box--docs#props) component props

<ArgsTable of={Input} />

Expand Down
4 changes: 2 additions & 2 deletions ui/components/component-library/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
BorderStyle,
} from '../../../helpers/constants/design-system';

import { Text } from '..';
import { Text, TextProps } from '../text';
import { PolymorphicRef } from '../box';
import { InputProps, InputType, InputComponent } from './input.types';

Expand Down Expand Up @@ -70,7 +70,7 @@ export const Input: InputComponent = React.forwardRef(
value={value}
variant={textVariant}
type={type}
{...props}
{...(props as TextProps<C>)}
/>
),
);
3 changes: 2 additions & 1 deletion ui/components/component-library/input/input.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import type {
StyleUtilityProps,
PolymorphicComponentPropWithRef,
} from '../box';
import { TextVariant } from 'ui/helpers/constants/design-system';

import { TextVariant } from '../../../helpers/constants/design-system';

export enum InputType {
Text = 'text',
Expand Down

0 comments on commit a1352e9

Please sign in to comment.