feat: add toolbar component#21743
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8e7112f:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 7a6fc1de0f33e7d593990df21a043939493fef49 (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| DocumentCardTitle | mount | 173 | 128 | 1000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 796 | 772 | 5000 | |
| Breadcrumb | mount | 2423 | 2444 | 1000 | |
| Checkbox | mount | 1305 | 1289 | 5000 | |
| CheckboxBase | mount | 1088 | 1038 | 5000 | |
| ChoiceGroup | mount | 4026 | 4066 | 5000 | |
| ComboBox | mount | 825 | 845 | 1000 | |
| CommandBar | mount | 9389 | 9322 | 1000 | |
| ContextualMenu | mount | 10938 | 11073 | 1000 | |
| DefaultButton | mount | 986 | 989 | 5000 | |
| DetailsRow | mount | 3062 | 3398 | 5000 | |
| DetailsRowFast | mount | 3319 | 3347 | 5000 | |
| DetailsRowNoStyles | mount | 3161 | 3129 | 5000 | |
| Dialog | mount | 1855 | 1903 | 1000 | |
| DocumentCardTitle | mount | 173 | 128 | 1000 | Possible regression |
| Dropdown | mount | 2850 | 2871 | 5000 | |
| FocusTrapZone | mount | 1541 | 1579 | 5000 | |
| FocusZone | mount | 1554 | 1564 | 5000 | |
| IconButton | mount | 1545 | 1582 | 5000 | |
| Label | mount | 299 | 305 | 5000 | |
| Layer | mount | 2505 | 2554 | 5000 | |
| Link | mount | 400 | 415 | 5000 | |
| MenuButton | mount | 1281 | 1283 | 5000 | |
| MessageBar | mount | 1871 | 1835 | 5000 | |
| Nav | mount | 2845 | 2707 | 1000 | |
| OverflowSet | mount | 943 | 944 | 5000 | |
| Panel | mount | 1855 | 1782 | 1000 | |
| Persona | mount | 884 | 868 | 1000 | |
| Pivot | mount | 1230 | 1251 | 1000 | |
| PrimaryButton | mount | 1127 | 1136 | 5000 | |
| Rating | mount | 6679 | 6747 | 5000 | |
| SearchBox | mount | 1122 | 1117 | 5000 | |
| Shimmer | mount | 2172 | 2165 | 5000 | |
| Slider | mount | 1671 | 1656 | 5000 | |
| SpinButton | mount | 4734 | 4388 | 5000 | |
| Spinner | mount | 374 | 367 | 5000 | |
| SplitButton | mount | 2716 | 2757 | 5000 | |
| Stack | mount | 451 | 452 | 5000 | |
| StackWithIntrinsicChildren | mount | 2013 | 1996 | 5000 | |
| StackWithTextChildren | mount | 4555 | 4557 | 5000 | |
| SwatchColorPicker | mount | 10083 | 10047 | 5000 | |
| TagPicker | mount | 2274 | 2502 | 5000 | |
| TeachingBubble | mount | 92689 | 91900 | 5000 | |
| Text | mount | 373 | 376 | 5000 | |
| TextField | mount | 1202 | 1227 | 5000 | |
| ThemeProvider | mount | 1011 | 1005 | 5000 | |
| ThemeProvider | virtual-rerender | 559 | 561 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1600 | 1605 | 5000 | |
| Toggle | mount | 682 | 757 | 5000 | |
| buttonNative | mount | 116 | 113 | 5000 |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
c33761b to
41cf842
Compare
theerebuss
left a comment
There was a problem hiding this comment.
Please split this into several PRs to facilitate the review. Ideally a PR for scaffolding, one for the Spec for individual review of it and then functionality.
Also, please add this component to the CODEOWNERS file for tracking of ownership.
That is bein addressed in #21791 |
41cf842 to
2ac9b8a
Compare
…eat/add-toolbar
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 894 | 939 | 5000 | |
| Button | mount | 583 | 550 | 5000 | |
| FluentProvider | mount | 1760 | 1882 | 5000 | |
| FluentProviderWithTheme | mount | 291 | 271 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 230 | 225 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 303 | 276 | 10 | |
| MakeStyles | mount | 1555 | 1538 | 50000 |
|
@andrefcdias Can you reset your request for changes please? |
packages/react-toolbar/src/index.ts
Outdated
| @@ -1,5 +1,5 @@ | |||
| // TODO: replace with real exports | |||
There was a problem hiding this comment.
| // TODO: replace with real exports |
theerebuss
left a comment
There was a problem hiding this comment.
Approving changes as is
Details
This is part of the work described on #21533 . Here we are adding the basic
Toolbarcomponent that just serve as container for several other components (ToolbarButtonandToolbarDividerhere implemented )This work will be actively refactored and improve constantly while in status of WIP, so be careful with it usage