-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/react-drawer/improve-performance-of-cs…
…s-classnames
- Loading branch information
Showing
50 changed files
with
681 additions
and
18 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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: 0 additions & 7 deletions
7
change/@fluentui-react-charting-18c6ed5b-114e-4e6f-982f-2a59fa333f96.json
This file was deleted.
Oops, something went wrong.
This file contains 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,6 +1,21 @@ | ||
{ | ||
"name": "@fluentui/react-charting", | ||
"entries": [ | ||
{ | ||
"date": "Mon, 25 Sep 2023 07:36:44 GMT", | ||
"tag": "@fluentui/react-charting_v5.17.8", | ||
"version": "5.17.8", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@fluentui/react-charting", | ||
"commit": "0327a2d37ae2b10127ee8133355d993fade18648", | ||
"comment": "Enable reflow for all cartesian chart examples" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 11 Sep 2023 07:35:28 GMT", | ||
"tag": "@fluentui/react-charting_v5.17.7", | ||
|
This file contains 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,9 +1,18 @@ | ||
# Change Log - @fluentui/react-charting | ||
|
||
This log was last generated on Mon, 11 Sep 2023 07:35:28 GMT and should not be manually modified. | ||
This log was last generated on Mon, 25 Sep 2023 07:36:44 GMT and should not be manually modified. | ||
|
||
<!-- Start content --> | ||
|
||
## [5.17.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.17.8) | ||
|
||
Mon, 25 Sep 2023 07:36:44 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.17.7..@fluentui/react-charting_v5.17.8) | ||
|
||
### Patches | ||
|
||
- Enable reflow for all cartesian chart examples ([PR #29229](https://github.com/microsoft/fluentui/pull/29229) by [email protected]) | ||
|
||
## [5.17.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.17.7) | ||
|
||
Mon, 11 Sep 2023 07:35:28 GMT | ||
|
This file contains 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 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,4 @@ | ||
{ | ||
"extends": "../../../.babelrc-v9.json", | ||
"plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/react-components/react-rating-preview/.eslintrc.json
This file contains 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,4 @@ | ||
{ | ||
"extends": ["plugin:@fluentui/eslint-plugin/react"], | ||
"root": true | ||
} |
This file contains 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,38 @@ | ||
.storybook/ | ||
.vscode/ | ||
bundle-size/ | ||
config/ | ||
coverage/ | ||
docs/ | ||
etc/ | ||
node_modules/ | ||
src/ | ||
stories/ | ||
dist/types/ | ||
temp/ | ||
__fixtures__ | ||
__mocks__ | ||
__tests__ | ||
|
||
*.api.json | ||
*.log | ||
*.spec.* | ||
*.cy.* | ||
*.test.* | ||
*.yml | ||
|
||
# config files | ||
*config.* | ||
*rc.* | ||
.editorconfig | ||
.eslint* | ||
.git* | ||
.prettierignore | ||
.swcrc | ||
project.json | ||
|
||
# exclude gitignore patterns explicitly | ||
!lib | ||
!lib-commonjs | ||
!lib-amd | ||
!dist/*.d.ts |
14 changes: 14 additions & 0 deletions
14
packages/react-components/react-rating-preview/.storybook/main.js
This file contains 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,14 @@ | ||
const rootMain = require('../../../../.storybook/main'); | ||
|
||
module.exports = /** @type {Omit<import('../../../../.storybook/main'), 'typescript'|'babel'>} */ ({ | ||
...rootMain, | ||
stories: [...rootMain.stories, '../stories/**/*.stories.mdx', '../stories/**/index.stories.@(ts|tsx)'], | ||
addons: [...rootMain.addons], | ||
webpackFinal: (config, options) => { | ||
const localConfig = { ...rootMain.webpackFinal(config, options) }; | ||
|
||
// add your own webpack tweaks if needed | ||
|
||
return localConfig; | ||
}, | ||
}); |
7 changes: 7 additions & 0 deletions
7
packages/react-components/react-rating-preview/.storybook/preview.js
This file contains 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 @@ | ||
import * as rootPreview from '../../../../.storybook/preview'; | ||
|
||
/** @type {typeof rootPreview.decorators} */ | ||
export const decorators = [...rootPreview.decorators]; | ||
|
||
/** @type {typeof rootPreview.parameters} */ | ||
export const parameters = { ...rootPreview.parameters }; |
10 changes: 10 additions & 0 deletions
10
packages/react-components/react-rating-preview/.storybook/tsconfig.json
This file contains 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,10 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "", | ||
"allowJs": true, | ||
"checkJs": true, | ||
"types": ["static-assets", "environment", "storybook__addons"] | ||
}, | ||
"include": ["../stories/**/*.stories.ts", "../stories/**/*.stories.tsx", "*.js"] | ||
} |
This file contains 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,30 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"exclude": [ | ||
"/testing", | ||
"/**/*.cy.ts", | ||
"/**/*.cy.tsx", | ||
"/**/*.spec.ts", | ||
"/**/*.spec.tsx", | ||
"/**/*.test.ts", | ||
"/**/*.test.tsx" | ||
], | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true, | ||
"decorators": false, | ||
"dynamicImport": false | ||
}, | ||
"externalHelpers": true, | ||
"transform": { | ||
"react": { | ||
"runtime": "classic", | ||
"useSpread": true | ||
} | ||
}, | ||
"target": "es2019" | ||
}, | ||
"minify": false, | ||
"sourceMaps": true | ||
} |
This file contains 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,15 @@ | ||
@fluentui/react-rating-preview | ||
|
||
Copyright (c) Microsoft Corporation | ||
|
||
All rights reserved. | ||
|
||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license |
This file contains 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,5 @@ | ||
# @fluentui/react-rating-preview | ||
|
||
**React Rating components for [Fluent UI React](https://react.fluentui.dev/)** | ||
|
||
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release. |
4 changes: 4 additions & 0 deletions
4
packages/react-components/react-rating-preview/config/api-extractor.json
This file contains 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,4 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"extends": "@fluentui/scripts-api-extractor/api-extractor.common.v-next.json" | ||
} |
This file contains 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 @@ | ||
/** Jest test setup file. */ |
63 changes: 63 additions & 0 deletions
63
packages/react-components/react-rating-preview/docs/Spec.md
This file contains 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,63 @@ | ||
# @fluentui/react-rating-preview Spec | ||
|
||
## Background | ||
|
||
_Description and use cases of this component_ | ||
|
||
## Prior Art | ||
|
||
_Include background research done for this component_ | ||
|
||
- _Link to Open UI research_ | ||
- _Link to comparison of v7 and v0_ | ||
- _Link to GitHub epic issue for the converged component_ | ||
|
||
## Sample Code | ||
|
||
_Provide some representative example code that uses the proposed API for the component_ | ||
|
||
## Variants | ||
|
||
_Describe visual or functional variants of this control, if applicable. For example, a slider could have a 2D variant._ | ||
|
||
## API | ||
|
||
_List the **Props** and **Slots** proposed for the component. Ideally this would just be a link to the component's `.types.ts` file_ | ||
|
||
## Structure | ||
|
||
- _**Public**_ | ||
- _**Internal**_ | ||
- _**DOM** - how the component will be rendered as HTML elements_ | ||
|
||
## Migration | ||
|
||
_Describe what will need to be done to upgrade from the existing implementations:_ | ||
|
||
- _Migration from v8_ | ||
- _Migration from v0_ | ||
|
||
## Behaviors | ||
|
||
_Explain how the component will behave in use, including:_ | ||
|
||
- _Component States_ | ||
- _Interaction_ | ||
- _Keyboard_ | ||
- _Cursor_ | ||
- _Touch_ | ||
- _Screen readers_ | ||
|
||
## Accessibility | ||
|
||
Base accessibility information is included in the design document. After the spec is filled and review, outcomes from it need to be communicated to design and incorporated in the design document. | ||
|
||
- Decide whether to use **native element** or folow **ARIA** and provide reasons | ||
- Identify the **[ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/) pattern** and, if the component is listed there, follow its specification as possible. | ||
- Identify accessibility **variants**, the `role` ([ARIA roles](https://www.w3.org/TR/wai-aria-1.1/#role_definitions)) of the component, its `slots` and `aria-*` props. | ||
- Describe the **keyboard navigation**: Tab Oder and Arrow Key Navigation. Describe any other keyboard **shortcuts** used | ||
- Specify texts for **state change announcements** - [ARIA live regions | ||
](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) (number of available items in dropdown, error messages, confirmations, ...) | ||
- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them | ||
- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation) | ||
- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases) |
42 changes: 42 additions & 0 deletions
42
packages/react-components/react-rating-preview/etc/react-rating-preview.api.md
This file contains 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,42 @@ | ||
## API Report File for "@fluentui/react-rating-preview" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import type { ComponentProps } from '@fluentui/react-utilities'; | ||
import type { ComponentState } from '@fluentui/react-utilities'; | ||
import type { ForwardRefComponent } from '@fluentui/react-utilities'; | ||
import * as React_2 from 'react'; | ||
import type { Slot } from '@fluentui/react-utilities'; | ||
import type { SlotClassNames } from '@fluentui/react-utilities'; | ||
|
||
// @public | ||
export const Rating: ForwardRefComponent<RatingProps>; | ||
|
||
// @public (undocumented) | ||
export const ratingClassNames: SlotClassNames<RatingSlots>; | ||
|
||
// @public | ||
export type RatingProps = ComponentProps<RatingSlots> & {}; | ||
|
||
// @public (undocumented) | ||
export type RatingSlots = { | ||
root: Slot<'div'>; | ||
}; | ||
|
||
// @public | ||
export type RatingState = ComponentState<RatingSlots>; | ||
|
||
// @public | ||
export const renderRating_unstable: (state: RatingState) => JSX.Element; | ||
|
||
// @public | ||
export const useRating_unstable: (props: RatingProps, ref: React_2.Ref<HTMLElement>) => RatingState; | ||
|
||
// @public | ||
export const useRatingStyles_unstable: (state: RatingState) => RatingState; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
21 changes: 21 additions & 0 deletions
21
packages/react-components/react-rating-preview/jest.config.js
This file contains 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 @@ | ||
// @ts-check | ||
|
||
/** | ||
* @type {import('@jest/types').Config.InitialOptions} | ||
*/ | ||
module.exports = { | ||
displayName: 'react-rating-preview', | ||
preset: '../../../jest.preset.js', | ||
transform: { | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
isolatedModules: true, | ||
}, | ||
], | ||
}, | ||
coverageDirectory: './coverage', | ||
setupFilesAfterEnv: ['./config/tests.js'], | ||
snapshotSerializers: ['@griffel/jest-serializer'], | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/react-components/react-rating-preview/just.config.ts
This file contains 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,5 @@ | ||
import { preset, task } from '@fluentui/scripts-tasks'; | ||
|
||
preset(); | ||
|
||
task('build', 'build:react-components').cached?.(); |
Oops, something went wrong.