Skip to content

Commit a163a19

Browse files
author
David Zukowski
committed
stub new react-visual-refresh package
1 parent a9900ff commit a163a19

32 files changed

+469
-1
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ packages/react-components/component-selector-preview/library @microsoft/teams-pr
331331
packages/react-components/component-selector-preview/stories @microsoft/teams-prg
332332
packages/react-components/react-menu-grid-preview/library @microsoft/teams-prg
333333
packages/react-components/react-menu-grid-preview/stories @microsoft/teams-prg
334+
packages/react-components/react-visual-refresh-preview/library @microsoft/teams-prg
335+
packages/react-components/react-visual-refresh-preview/stories @microsoft/teams-prg
334336
# <%= NX-CODEOWNER-PLACEHOLDER %>
335337

336338
# Deprecated v9 packages - exposed as part of `/unstable` api
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../../../.babelrc-v9.json",
3+
"plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"]
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["plugin:@fluentui/eslint-plugin/react"],
3+
"root": true
4+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://json.schemastore.org/swcrc",
3+
"exclude": [
4+
"/testing",
5+
"/**/*.cy.ts",
6+
"/**/*.cy.tsx",
7+
"/**/*.spec.ts",
8+
"/**/*.spec.tsx",
9+
"/**/*.test.ts",
10+
"/**/*.test.tsx"
11+
],
12+
"jsc": {
13+
"parser": {
14+
"syntax": "typescript",
15+
"tsx": true,
16+
"decorators": false,
17+
"dynamicImport": false
18+
},
19+
"externalHelpers": true,
20+
"transform": {
21+
"react": {
22+
"runtime": "classic",
23+
"useSpread": true
24+
}
25+
},
26+
"target": "es2019"
27+
},
28+
"minify": false,
29+
"sourceMaps": true
30+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@fluentui/react-visual-refresh-preview
2+
3+
Copyright (c) Microsoft Corporation
4+
5+
All rights reserved.
6+
7+
MIT License
8+
9+
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:
10+
11+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
13+
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.
14+
15+
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
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# @fluentui/react-visual-refresh-preview
2+
3+
**React Visual Refresh components for [Fluent UI React](https://react.fluentui.dev/)**
4+
5+
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.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"extends": "@fluentui/scripts-api-extractor/api-extractor.common.v-next.json",
4+
"mainEntryPointFilePath": "<projectRoot>/../../../../../../dist/out-tsc/types/packages/react-components/<unscopedPackageName>/library/src/index.d.ts"
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** Jest test setup file. */
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# @fluentui/react-visual-refresh-preview Spec
2+
3+
## Background
4+
5+
_Description and use cases of this component_
6+
7+
## Prior Art
8+
9+
_Include background research done for this component_
10+
11+
- _Link to Open UI research_
12+
- _Link to comparison of v7 and v0_
13+
- _Link to GitHub epic issue for the converged component_
14+
15+
## Sample Code
16+
17+
_Provide some representative example code that uses the proposed API for the component_
18+
19+
## Variants
20+
21+
_Describe visual or functional variants of this control, if applicable. For example, a slider could have a 2D variant._
22+
23+
## API
24+
25+
_List the **Props** and **Slots** proposed for the component. Ideally this would just be a link to the component's `.types.ts` file_
26+
27+
## Structure
28+
29+
- _**Public**_
30+
- _**Internal**_
31+
- _**DOM** - how the component will be rendered as HTML elements_
32+
33+
## Migration
34+
35+
_Describe what will need to be done to upgrade from the existing implementations:_
36+
37+
- _Migration from v8_
38+
- _Migration from v0_
39+
40+
## Behaviors
41+
42+
_Explain how the component will behave in use, including:_
43+
44+
- _Component States_
45+
- _Interaction_
46+
- _Keyboard_
47+
- _Cursor_
48+
- _Touch_
49+
- _Screen readers_
50+
51+
## Accessibility
52+
53+
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.
54+
55+
- Decide whether to use **native element** or folow **ARIA** and provide reasons
56+
- 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.
57+
- 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.
58+
- Describe the **keyboard navigation**: Tab Oder and Arrow Key Navigation. Describe any other keyboard **shortcuts** used
59+
- Specify texts for **state change announcements** - [ARIA live regions
60+
](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) (number of available items in dropdown, error messages, confirmations, ...)
61+
- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them
62+
- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation)
63+
- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases)

packages/react-components/react-visual-refresh-preview/library/etc/react-visual-refresh-preview.api.md

Whitespace-only changes.

0 commit comments

Comments
 (0)