-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Reorganize ra-core/form directory
- Loading branch information
1 parent
75f547f
commit 74dcf49
Showing
37 changed files
with
63 additions
and
100 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
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,3 +1,4 @@ | ||
export * from './ChoicesContext'; | ||
export * from './ChoicesContextProvider'; | ||
export * from './useChoicesContext'; | ||
export * from './useChoices'; |
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export * from './FormGroupContext'; | ||
export * from './FormGroupContextProvider'; | ||
export * from './FormGroupsProvider'; | ||
export * from './useFormGroup'; | ||
export * from './useFormGroups'; | ||
export * from './useFormGroupContext'; |
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.
File renamed without changes.
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,50 +1,11 @@ | ||
import FormDataConsumer, { | ||
FormDataConsumerRender, | ||
FormDataConsumerRenderParams, | ||
} from './FormDataConsumer'; | ||
import { | ||
FormGroupsContext, | ||
FormGroupsContextValue, | ||
FormGroupSubscriber, | ||
} from './FormGroupsContext'; | ||
import ValidationError, { ValidationErrorProps } from './ValidationError'; | ||
import { | ||
getSimpleValidationResolver, | ||
ValidateForm, | ||
} from './getSimpleValidationResolver'; | ||
|
||
export type { | ||
FormGroupsContextValue, | ||
FormGroupSubscriber, | ||
FormDataConsumerRender, | ||
FormDataConsumerRenderParams, | ||
ValidationErrorProps, | ||
ValidateForm, | ||
}; | ||
|
||
export { | ||
FormDataConsumer, | ||
FormGroupsContext, | ||
ValidationError, | ||
getSimpleValidationResolver, | ||
}; | ||
export * from './choices'; | ||
export * from './Form'; | ||
export * from './validate'; | ||
export * from './FormGroupContext'; | ||
export * from './FormGroupContextProvider'; | ||
export * from './FormGroupsProvider'; | ||
export * from './setSubmissionErrors'; | ||
export * from './FormDataConsumer'; | ||
export * from './groups'; | ||
export * from './useApplyInputDefaultValues'; | ||
export * from './useChoices'; | ||
export * from './useFormGroup'; | ||
export * from './useFormGroups'; | ||
export * from './useFormGroupContext'; | ||
export * from './useGetValidationErrorMessage'; | ||
export * from './useNotifyIsFormInvalid'; | ||
export * from './useAugmentedForm'; | ||
export * from './useInput'; | ||
export * from './useSuggestions'; | ||
export * from './useUnique'; | ||
export * from './useWarnWhenUnsavedChanges'; | ||
export * from './validation'; | ||
export * from './WarnWhenUnsavedChanges'; |
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
...ra-core/src/form/ValidationError.spec.tsx → .../form/validation/ValidationError.spec.tsx
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.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export * from './getSimpleValidationResolver'; | ||
export * from './setSubmissionErrors'; | ||
export * from './useGetValidationErrorMessage'; | ||
export * from './useNotifyIsFormInvalid'; | ||
export * from './useUnique'; | ||
export * from './validate'; | ||
export * from './ValidationError'; |
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...a-core/src/form/useNotifyIsFormInvalid.ts → ...form/validation/useNotifyIsFormInvalid.ts
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
14 changes: 7 additions & 7 deletions
14
packages/ra-core/src/form/useUnique.ts → .../ra-core/src/form/validation/useUnique.ts
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.
File renamed without changes.