feat(DualListSelector, SearchInput): use SearchInput in DLS, add type prop to SearchInput
What: Closes #7977
Updates DualListSelector to internally build a SearchInput.
Adds type prop to SearchInput to match DualListSelector's initial input type.
Preview: https://patternfly-react-pr-8040.surge.sh
A11y report: https://patternfly-react-pr-8040-a11y.surge.sh
I can sneak an update for that in. The default behavior will call onChange with an empty string and may be overridden with onSearchInputClear.
Though I'm a little confused about how some of these search callbacks are meant to work, because several are hidden from the props documentation with @hide, and it doesn't look like onSearch (which is visible) is used anywhere. Is the new prop I added onSearchInputClear actually necessary if a user is meant to ignore all these props and use searchInput instead for composable dual list selectors?
@nicolethoen
This looks great! The only thing I'd suggest is adding an empty state if the search doesn't match any of the options? I realize that is an oversight from when I designed this. But maybe just a small or xs empty state using the text and icon here: https://www.patternfly.org/v4/components/empty-state#no-match-found
This looks great! The only thing I'd suggest is adding an empty state if the search doesn't match any of the options? I realize that is an oversight from when I designed this. But maybe just a small or xs empty state using the text and icon here: https://www.patternfly.org/v4/components/empty-state#no-match-found
That may be a pretty significant enhancement to the Dual list selector at this point. I am in the process of a dual list selector re-work and if you open an issue to incorporate an empty state, I can include it with the re-work
@nicolethoen sounds good, just opened this: https://github.com/patternfly/patternfly-react/issues/8080
Rebased conflict