-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Convert the Snackbar component to TypeScript
#45472
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
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
3b3d02c
Refactor Snackbar component to TypeScript
kienstra 013457f
Merge branch 'trunk' into update/snackbar-to-ts
kienstra 9e03b01
Add a CHANGELOG entry for this PR
kienstra 29d4913
Reference SnackbarProps for message and politeness
kienstra aa275b5
Wrap the politness type with NonNullable
kienstra 0e591cd
Commit Marco's suggestion: Update packages/components/src/snackbar/in…
kienstra 61f5caa
Commit Marco's suggestion: Update packages/components/src/snackbar/ty…
kienstra 5636934
Paste Marco's TODO about moving WPNotice to the Notice component
kienstra 7b0c570
Change spokenMessage and children to string
kienstra ecb2387
Change the type of icon to ReactNode
kienstra cef1524
Apply Marco's suggestion for listRef's type
kienstra 2027878
Commit Marco's removal of noop
kienstra 50f5f98
Make the Action type be one of 2 types
kienstra 72fdce9
Rename the type Action to NoticeAction
kienstra 20056c3
Replace the Function type with () => void
kienstra e3d2448
Replace the type ButtonEvent with SyntheticEvent
kienstra 28e6af6
Add a story for SnackbarList
kienstra 8667eb1
Replace SNACKBAR_REDUCE_MOTION_VARIANTS with undefined
kienstra e9892d0
Remove the single SnackbarList story
kienstra e7fed93
Change the SnackbarList children type to string
kienstra 968467a
Remove DefaultTemplate, as it's only used once
kienstra 9818ca5
Remove needless const savePostNotice
kienstra e9c0c49
Commit Marco's suggestion: Update packages/components/src/snackbar/st…
kienstra 9af48f2
Move TODO to the Snackbar component
kienstra fc26baf
Commit Marco's edits to the SnackbarList storybook
kienstra a55a083
Change the type of children in SnackbarList
kienstra 44a5371
Add empty lines in README.md
kienstra 84071c6
Alphabetize props
kienstra 70bfe59
Remove markdown syntax, shorten JSDoc lines
kienstra 4f823d3
Commit Marco's suggestion for README.md
kienstra 9da6473
Merge in trunk, resolve conflict
kienstra 8bab6ac
Delete syntax from merge I forgot to delete
kienstra db6898f
Restore CHANGELOG entries I deleted
kienstra 3939a0c
Commit Marco's suggestion for the politeness prop
kienstra b42cfab
Remove and empty line between 2 lines
kienstra 7adcc0d
Remove reference to default, as there is one already
kienstra 650d0bd
Merge in trunk, resolve conflict in components/CHANGELOG.md
kienstra 8c33d6d
Commit Marco's suggestion: Update packages/components/src/snackbar/RE…
kienstra fe394e6
Commit Marco's suggestion: Update packages/components/src/snackbar/RE…
kienstra b145a58
Restore the JSDoc, using Marco's suggestion
kienstra fc45167
Merge in trunk, resolve conflict
kienstra 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
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
Oops, something went wrong.
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.