-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Structure and slots for SearchBox, using Input as a slot #28090
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
Merged
smhigley
merged 36 commits into
microsoft:master
from
emmayjiang:react-search-create-SearchBox-slots
Jun 15, 2023
Merged
Changes from 4 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
4b9205e
add slots and types for SearchBox
emmayjiang 1182bf3
fixing react-input version
emmayjiang 790194f
updating yarn.lock
emmayjiang 3ba7f4d
reorganizing code + alphabetizing package.json
emmayjiang 9dfa1e6
add slots and types for SearchBox
emmayjiang 536871b
fixing react-input version
emmayjiang 208d14a
updating yarn.lock
emmayjiang a2132e7
reorganizing code + alphabetizing package.json
emmayjiang 1abcf33
fix type errors
emmayjiang 9e04463
fix merge conflicts
emmayjiang 7c46d96
rebuild
emmayjiang 1d7698f
styles
emmayjiang b01fb29
remove pseudoelements from input
emmayjiang 3f46b1f
dismiss button functionality
emmayjiang d002d4d
packages
emmayjiang 0b33d33
fixes to dismiss button
emmayjiang c11417b
code revisions following sarah's feedback
emmayjiang 12f9886
styling issues
emmayjiang 881eff8
remove contentBefore slot
emmayjiang c09bc34
type fixes & handling custom dismiss callback
emmayjiang fb5fd63
api update
emmayjiang 96824e7
Merge branch 'master' into react-search-create-SearchBox-slots
emmayjiang 525e629
minor nits
emmayjiang 5dac8e5
refactor 'disabled'
emmayjiang 5008246
api update
emmayjiang 024eb53
Update packages/react-components/react-search/src/components/SearchBo…
emmayjiang 713dd7a
api update
emmayjiang 94e109d
api update
emmayjiang 0b654c3
Merge branch 'master' into react-search-create-SearchBox-slots
emmayjiang 8aa06b5
fixing styles errors
emmayjiang 3d66691
update react-icons version
emmayjiang 6a51ee8
fixes to ref + default
emmayjiang 1aace49
fix to ref
emmayjiang d571f62
api update
emmayjiang c04b6d7
fix tests
emmayjiang e9e42db
api update
emmayjiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
15 changes: 13 additions & 2 deletions
15
packages/react-components/react-search/src/components/SearchBox/SearchBox.types.ts
This file contains hidden or 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 hidden or 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 hidden or 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
11 changes: 10 additions & 1 deletion
11
packages/react-components/react-search/stories/SearchBox/SearchBoxDefault.stories.tsx
This file contains hidden or 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,4 +1,13 @@ | ||
| import * as React from 'react'; | ||
| import { SearchBox, SearchBoxProps } from '@fluentui/react-search'; | ||
|
|
||
| export const Default = (props: Partial<SearchBoxProps>) => <SearchBox {...props} />; | ||
| import { DismissRegular, FilterRegular, SearchRegular } from '@fluentui/react-icons'; | ||
|
|
||
| export const Default = (props: Partial<SearchBoxProps>) => ( | ||
| <SearchBox | ||
| {...props} | ||
| contentBefore={<SearchRegular />} | ||
| contentAfter={<FilterRegular />} | ||
| dismiss={<DismissRegular />} | ||
| /> | ||
| ); |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.