Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ReferenceInputBase Components #9672

Merged
merged 9 commits into from
Apr 8, 2024
Merged

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Feb 19, 2024

Problem

While working on the alternative UI libraries demos, we had to re-implement all the reference fields and inputs logic.

Solution

Add core headless versions for these components
This PR introduces only the ReferenceInputBase.

@djhi djhi changed the title Introduce ReferenceBase Components Introduce ReferenceInputBase Components Mar 4, 2024
@djhi djhi added RFR Ready For Review and removed WIP Work In Progress labels Mar 4, 2024
@djhi djhi added WIP Work In Progress and removed RFR Ready For Review labels Mar 5, 2024
export interface ReferenceInputBaseProps
extends InputProps,
UseReferenceInputControllerParams {
children: ReactNode;
Copy link
Member

Choose a reason for hiding this comment

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

I'd make it optional, to avoid overriding the interface in the ReferenceInput component

Comment on lines 97 to 98
extends Omit<ReferenceInputBaseProps, 'children'> {
children?: ReactNode;
Copy link
Member

Choose a reason for hiding this comment

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

No longer necessary as you edited the RefrenceInputBaseProps type

@fzaninotto fzaninotto merged commit 131619a into next Apr 8, 2024
12 checks passed
@fzaninotto fzaninotto deleted the reference-components-core branch April 8, 2024 08:00
@fzaninotto fzaninotto added this to the 5.0.0 milestone Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants