-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: add extra-tiny size value to size prop #28249
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
24 commits
Select commit
Hold shift + click to select a range
b16c132
feat: add extra-tiny size value to size prop
tomi-msft 8db4d0c
change files
tomi-msft 542e4be
api update
tomi-msft 3ed28bc
Merge branch 'master' into react-spinner-context
tomi-msft 6e7f1a8
Merge branch 'master' of https://github.com/OfficeDev/office-ui-fabri…
tomi-msft 316782c
api update
tomi-msft 4028453
Merge branch 'react-spinner-context' of https://github.com/tomi-msft/…
tomi-msft e92f49b
Merge branch 'master' into react-spinner-context
tomi-msft cfbb4c5
Merge branch 'master' into react-spinner-context
tomi-msft 4c483c0
Merge branch 'master' into react-spinner-context
tomi-msft 28e8dde
Update spinner vr stories
tomi-msft 81837c8
Merge branch 'master' into react-spinner-context
tomi-msft 506b5b4
Merge branch 'master' into react-spinner-context
tomi-msft 9711690
Merge branch 'react-spinner-context' of https://github.com/tomi-msft/…
tomi-msft ca5879a
Apply suggestions from code review
tomi-msft 68212c0
Merge branch 'react-spinner-context' of https://github.com/tomi-msft/…
tomi-msft fd5dff0
update api and remove SpinnerSize from files
tomi-msft d34df01
Merge branch 'master' of https://github.com/microsoft/fluentui into r…
tomi-msft 010e006
crop Spinner vr stories
tomi-msft 7a1801d
crop vr stories for Spinner
tomi-msft 97909e0
Spinner vr stories cleanup
tomi-msft d954d55
Merge branch 'master' into react-spinner-context
tomi-msft c9b9dee
revert Spinner vr stories
tomi-msft dad90d2
Merge branch 'master' of https://github.com/microsoft/fluentui into r…
tomi-msft 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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-spinner-9496bc33-4385-4b1b-9f2d-c66f178d2355.json
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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "minor", | ||
| "comment": "feat: add extra-tiny value to size prop of Spinner", | ||
| "packageName": "@fluentui/react-spinner", | ||
| "email": "ololubek@microsoft.com", | ||
| "dependentChangeType": "patch" | ||
| } |
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
21 changes: 21 additions & 0 deletions
21
packages/react-components/react-spinner/src/contexts/SpinnerContext.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import * as React from 'react'; | ||
| import { SpinnerProps } from '../components/Spinner/Spinner.types'; | ||
|
|
||
| const SpinnerContext = React.createContext<SpinnerContextValue | undefined>(undefined); | ||
|
|
||
| /** | ||
| * @internal | ||
| */ | ||
| export type SpinnerContextValue = Pick<SpinnerProps, 'size'>; | ||
|
|
||
| const SpinnerContextDefaultValue: SpinnerContextValue = {}; | ||
|
|
||
| /** | ||
| * @internal | ||
| */ | ||
| export const SpinnerContextProvider = SpinnerContext.Provider; | ||
|
|
||
| /** | ||
| * @internal | ||
| */ | ||
| export const useSpinnerContext = () => React.useContext(SpinnerContext) ?? SpinnerContextDefaultValue; | ||
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './SpinnerContext'; |
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
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.