Skip to content

Commit

Permalink
Merge branch 'master' into marcosmoura/fix/card-codesandbox-examples
Browse files Browse the repository at this point in the history
* master: (28 commits)
  fix: use trigger prop for aria-haspopup (microsoft#24794)
  chore(react-dialog): scaffold DialogContent component (microsoft#24844)
  chore: Northstar screener should read from screenerStates.json (microsoft#24848)
  applying package updates
  (web components) Standardize focus treatment (microsoft#24771)
  Divider - allow default prop override (microsoft#24840)
  GroupedList: fix virtualization (unstable preview) (microsoft#24460)
  fix: Add explicit children prop to TeachingBubble to support React 18 (microsoft#24823)
  feat: Adds `visible` prop to `TableCellActions` (microsoft#24831)
  [Northstar][Dropdown] Fix styling mutation when merging themes (microsoft#24787)
  fix: export `tableCellActionsClassNames` from unstable (microsoft#24830)
  bugfix(react-dialog): Adds color style to DialogSurface (microsoft#24832)
  applying package updates
  Prevent group toggling from selecting the whole group (microsoft#24822)
  feat(react-textarea): Add shadow variant of filled appearance (microsoft#24512)
  applying package updates
  Adding lib-commonjs top-level entries to exports map (microsoft#24792)
  Created shim packages (microsoft#24780)
  feat(react-menu): replace keydown handlers by useARIAButtonShorthand on MenuItem (microsoft#24738)
  fix: update version mismatches triggered by v9 release (microsoft#24812)
  ...
  • Loading branch information
marcosmoura committed Sep 19, 2022
2 parents 51e4407 + 656d460 commit 3db2b04
Show file tree
Hide file tree
Showing 704 changed files with 22,770 additions and 2,976 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ packages/react-components/babel-preset-global-context @microsoft/teams-prg
packages/react-components/react-table @microsoft/teams-prg
packages/react-components/react-progress @microsoft/cxe-red @tomi-msft
packages/react-components/react-persona @microsoft/cxe-red @sopranopillow
packages/react-components-migration/react-button-shim-v8-v9 @microsoft/cxe-coastal
packages/react-components-migration/react-menu-shim-v8-v9 @microsoft/cxe-coastal
packages/react-components-migration/react-stack-shim-v8-v9 @microsoft/cxe-coastal
packages/react-components-migration/react-theme-shim-v8-v9 @microsoft/cxe-coastal
# <%= NX-CODEOWNER-PLACEHOLDER %>


Expand Down
39 changes: 39 additions & 0 deletions apps/perf-test-react-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
{
"name": "@fluentui/perf-test-react-components",
"entries": [
{
"date": "Thu, 15 Sep 2022 09:50:08 GMT",
"tag": "@fluentui/perf-test-react-components_v9.0.0-rc.0",
"version": "9.0.0-rc.0",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/perf-test-react-components",
"comment": "Bump @fluentui/react-avatar to v9.1.0",
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
},
{
"author": "beachball",
"package": "@fluentui/perf-test-react-components",
"comment": "Bump @fluentui/react-button to v9.1.1",
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
},
{
"author": "beachball",
"package": "@fluentui/perf-test-react-components",
"comment": "Bump @fluentui/react-provider to v9.1.1",
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
},
{
"author": "beachball",
"package": "@fluentui/perf-test-react-components",
"comment": "Bump @fluentui/react-spinbutton to v9.0.1",
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
},
{
"author": "beachball",
"package": "@fluentui/perf-test-react-components",
"comment": "Bump @fluentui/react-theme to v9.1.0",
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
}
]
}
},
{
"date": "Wed, 03 Aug 2022 16:04:10 GMT",
"tag": "@fluentui/perf-test-react-components_v9.0.0-rc.0",
Expand Down
15 changes: 14 additions & 1 deletion apps/perf-test-react-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# Change Log - @fluentui/perf-test-react-components

This log was last generated on Wed, 03 Aug 2022 16:04:10 GMT and should not be manually modified.
This log was last generated on Thu, 15 Sep 2022 09:50:08 GMT and should not be manually modified.

<!-- Start content -->

## [9.0.0-rc.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test-react-components_v9.0.0-rc.0)

Thu, 15 Sep 2022 09:50:08 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test-react-components_v9.0.0-rc.0..@fluentui/perf-test-react-components_v9.0.0-rc.0)

### Patches

- Bump @fluentui/react-avatar to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
- Bump @fluentui/react-button to v9.1.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
- Bump @fluentui/react-provider to v9.1.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
- Bump @fluentui/react-spinbutton to v9.0.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
- Bump @fluentui/react-theme to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)

## [9.0.0-rc.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test-react-components_v9.0.0-rc.0)

Wed, 03 Aug 2022 16:04:10 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test-react-components_v9.0.0-rc.0..@fluentui/perf-test-react-components_v9.0.0-rc.0)

Expand Down
10 changes: 5 additions & 5 deletions apps/perf-test-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
"dependencies": {
"@griffel/core": "^1.5.1",
"@fluentui/react-avatar": "^9.0.4",
"@fluentui/react-button": "^9.1.0",
"@fluentui/react-provider": "^9.1.0",
"@fluentui/react-spinbutton": "^9.0.0",
"@fluentui/react-theme": "^9.0.0",
"@fluentui/react-avatar": "^9.1.0",
"@fluentui/react-button": "^9.1.1",
"@fluentui/react-provider": "^9.1.1",
"@fluentui/react-spinbutton": "^9.0.1",
"@fluentui/react-theme": "^9.1.0",
"@fluentui/scripts": "^1.0.0",
"@microsoft/load-themed-styles": "^1.10.26",
"flamegrill": "0.2.0",
Expand Down
45 changes: 45 additions & 0 deletions apps/perf-test/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
{
"name": "@fluentui/perf-test",
"entries": [
{
"date": "Mon, 19 Sep 2022 07:47:30 GMT",
"tag": "@fluentui/perf-test_v1.0.0",
"version": "1.0.0",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/perf-test",
"comment": "Bump @fluentui/react to v8.96.0",
"commit": "2420757404f54aba8e92cdbc41965a6fdbce8a3d"
}
]
}
},
{
"date": "Fri, 16 Sep 2022 07:37:32 GMT",
"tag": "@fluentui/perf-test_v1.0.0",
"version": "1.0.0",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/perf-test",
"comment": "Bump @fluentui/react to v8.95.1",
"commit": "9077e0a7d3911096a3337d76ec65591d191a780a"
}
]
}
},
{
"date": "Thu, 15 Sep 2022 19:15:27 GMT",
"tag": "@fluentui/perf-test_v1.0.0",
"version": "1.0.0",
"comments": {
"minor": [
{
"author": "beachball",
"package": "@fluentui/perf-test",
"comment": "Bump @fluentui/react to v8.95.0",
"commit": "682ead9953a1d519133193033aafe392173009f5"
}
]
}
},
{
"date": "Tue, 13 Sep 2022 07:41:03 GMT",
"tag": "@fluentui/perf-test_v1.0.0",
Expand Down
29 changes: 28 additions & 1 deletion apps/perf-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
# Change Log - @fluentui/perf-test

This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified.
This log was last generated on Mon, 19 Sep 2022 07:47:30 GMT and should not be manually modified.

<!-- Start content -->

## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test_v1.0.0)

Mon, 19 Sep 2022 07:47:30 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test_v1.0.0..@fluentui/perf-test_v1.0.0)

### Patches

- Bump @fluentui/react to v8.96.0 ([PR #24771](https://github.com/microsoft/fluentui/pull/24771) by beachball)

## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test_v1.0.0)

Fri, 16 Sep 2022 07:37:32 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test_v1.0.0..@fluentui/perf-test_v1.0.0)

### Patches

- Bump @fluentui/react to v8.95.1 ([PR #24822](https://github.com/microsoft/fluentui/pull/24822) by beachball)

## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test_v1.0.0)

Thu, 15 Sep 2022 19:15:27 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test_v1.0.0..@fluentui/perf-test_v1.0.0)

### Minor changes

- Bump @fluentui/react to v8.95.0 ([PR #24792](https://github.com/microsoft/fluentui/pull/24792) by beachball)

## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test_v1.0.0)

Tue, 13 Sep 2022 07:41:03 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test_v1.0.0..@fluentui/perf-test_v1.0.0)

Expand Down
3 changes: 2 additions & 1 deletion apps/perf-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"@fluentui/eslint-plugin": "*"
},
"dependencies": {
"@fluentui/react": "^8.94.4",
"@fluentui/example-data": "^8.4.2",
"@fluentui/react": "^8.96.0",
"@fluentui/scripts": "^1.0.0",
"@microsoft/load-themed-styles": "^1.10.26",
"flamegrill": "0.2.0",
Expand Down
5 changes: 5 additions & 0 deletions apps/perf-test/src/scenarioIterations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const scenarioIterations = {
ComboBox: 1000,
Persona: 1000,
ContextualMenu: 1000,
/* List performance is generally more influenced by the size
* of the list rather than the number of lists on a page.
*/
GroupedList: 2,
GroupedListV2: 2,
};

module.exports = scenarioIterations;
2 changes: 2 additions & 0 deletions apps/perf-test/src/scenarioRenderTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const DefaultRenderTypes = ['mount'];

const scenarioRenderTypes = {
ThemeProvider: AllRenderTypes,
GroupedList: AllRenderTypes,
GroupedListV2: AllRenderTypes,
};

module.exports = {
Expand Down
55 changes: 55 additions & 0 deletions apps/perf-test/src/scenarios/GroupedList.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import * as React from 'react';
import { createListItems, createGroups, IExampleItem } from '@fluentui/example-data';
import { GroupedList, Selection, SelectionMode, DetailsRow, IGroup, IColumn } from '@fluentui/react';

const groupCount = 5;
const groupDepth = 5;
const items = createListItems(Math.pow(groupCount, groupDepth + 1));
const groups = createGroups(groupCount, groupDepth, 0, groupCount);

const columns = Object.keys(items[0])
.slice(0, 3)
.map(
(key: string): IColumn => ({
key: key,
name: key,
fieldName: key,
minWidth: 300,
}),
);

const selection = new Selection();
selection.setItems(items);

const onRenderCell = (
nestingDepth?: number,
item?: IExampleItem,
itemIndex?: number,
group?: IGroup,
): React.ReactNode => {
return item && typeof itemIndex === 'number' && itemIndex > -1 ? (
<DetailsRow
columns={columns}
groupNestingDepth={nestingDepth}
item={item}
itemIndex={itemIndex}
selection={selection}
selectionMode={SelectionMode.multiple}
group={group}
/>
) : null;
};

const Scenario = () => {
return (
<GroupedList
items={items}
groups={groups}
onRenderCell={onRenderCell}
selection={selection}
selectionMode={SelectionMode.multiple}
/>
);
};

export default Scenario;
62 changes: 62 additions & 0 deletions apps/perf-test/src/scenarios/GroupedListV2.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import * as React from 'react';
import { createListItems, createGroups, IExampleItem } from '@fluentui/example-data';
import {
GroupedListV2_unstable as GroupedListV2,
Selection,
SelectionMode,
DetailsRow,
IGroup,
IColumn,
} from '@fluentui/react';

const groupCount = 5;
const groupDepth = 5;
const items = createListItems(Math.pow(groupCount, groupDepth + 1));
const groups = createGroups(groupCount, groupDepth, 0, groupCount);

const columns = Object.keys(items[0])
.slice(0, 3)
.map(
(key: string): IColumn => ({
key: key,
name: key,
fieldName: key,
minWidth: 300,
}),
);

const selection = new Selection();
selection.setItems(items);

const onRenderCell = (
nestingDepth?: number,
item?: IExampleItem,
itemIndex?: number,
group?: IGroup,
): React.ReactNode => {
return item && typeof itemIndex === 'number' && itemIndex > -1 ? (
<DetailsRow
columns={columns}
groupNestingDepth={nestingDepth}
item={item}
itemIndex={itemIndex}
selection={selection}
selectionMode={SelectionMode.multiple}
group={group}
/>
) : null;
};

const Scenario = () => {
return (
<GroupedListV2
items={items}
groups={groups}
onRenderCell={onRenderCell}
selection={selection}
selectionMode={SelectionMode.multiple}
/>
);
};

export default Scenario;
Loading

0 comments on commit 3db2b04

Please sign in to comment.