-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: start to implement TypeScript types for <Form> components (#…
…3314) * refactor: convert FormGroupContext to TypeScript * refactor: convert <FormGroup> to TypeScript * refactor: convert <FormLabel> to TypeScript * refactor: convert <Form> to TypeScript * fix: add missing <Form.Row>
- Loading branch information
1 parent
9526409
commit 673ce70
Showing
11 changed files
with
156 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
const FORM_CONTROL_SIZES = { | ||
export const FORM_CONTROL_SIZES = { | ||
SMALL: 'sm', | ||
LARGE: 'lg', | ||
}; | ||
} as const; | ||
|
||
const FORM_TEXT_TYPES = { | ||
export const FORM_TEXT_TYPES = { | ||
DEFAULT: 'default', | ||
VALID: 'valid', | ||
INVALID: 'invalid', | ||
WARNING: 'warning', | ||
CRITERIA_EMPTY: 'criteria-empty', | ||
CRITERIA_VALID: 'criteria-valid', | ||
CRITERIA_INVALID: 'criteria-invalid', | ||
}; | ||
|
||
export { FORM_CONTROL_SIZES, FORM_TEXT_TYPES }; | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.