Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
fix: correct Stepper and Tags export
Browse files Browse the repository at this point in the history
  • Loading branch information
chambo-e committed Feb 14, 2022
1 parent a6cccd2 commit 36a2dee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/TextBoxField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TextBoxFieldProps<T = unknown, K = string> = BaseFieldProps<
max?: number
minLength?: number
maxLength?: number
regex?: RegExp[]
regex?: (RegExp | RegExp[])[]
readOnly?: boolean
disabled?: boolean
id?: string
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ export { default as Submit } from './components/Submit'
export { default as SwitchField } from './components/SwitchField'
export { default as TextBoxField } from './components/TextBoxField'
export { default as CheckboxField } from './components/CheckboxField'
export { default as RadioField } from './components/RadioField'
export { default as RadioField } from './components/StepperField'
export { default as StepperField } from './components/RadioField'
export { default as TagsField } from './components/TagsField'
export { default as RadioBorderedBoxField } from './components/RadioBorderedBoxField'
export { default as SubmitErrorAlert } from './components/SubmitErrorAlert'
export type { FormErrors } from './types'
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export type ValidatorProps = {
minLength?: number
max?: number
maxLength?: number
regex?: RegExp[]
regex?: (RegExp | RegExp[])[]
}

export type ValidatorObject<InputValue = unknown> = {
Expand Down

0 comments on commit 36a2dee

Please sign in to comment.