Skip to content
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

Web Components v3 #30191

Closed
wants to merge 198 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
502bbbc
Enable build pipeline for web-components-v3 branch (#25529)
miroslavstastny Nov 4, 2022
132903c
Enable bundle size pipeline on web-components-v3 branch (#25554)
miroslavstastny Nov 7, 2022
91ccd45
Remove Web Components v2 implementation in v3 branch (#25434)
miroslavstastny Nov 7, 2022
0506d83
ci: setup wc v3 daily releases (#25808)
Hotell Dec 2, 2022
8d5c2b6
feat(wc): Add v9-compatible themes (#25660)
miroslavstastny Dec 21, 2022
d4aa893
chore: setup typescript 4.7 for web-components package (#26299)
Hotell Jan 11, 2023
c2a5521
feat: add text as new component (#26090)
chrisdholt Jan 12, 2023
dfdb7a4
fix clean file and ensure rimraf is enumerated as dependency (#26350)
chrisdholt Jan 13, 2023
32dca8b
chore(web-components): resolve invalid webpack test regex on windows …
Hotell Jan 18, 2023
272ae87
feat: add badge and counter badge as new components (#26357)
chrisdholt Jan 18, 2023
1eb3dcc
Users/procload/add progressbar as new component (#26329)
procload Jan 18, 2023
837361a
chore(web-components): run manually bump to fix failed CI release (#2…
Hotell Jan 25, 2023
385e65e
feat(web-components): export theme (#26500)
miroslavstastny Jan 25, 2023
f2cff06
ci: fix github pushes auth for release (#26502)
Hotell Jan 25, 2023
67036d4
applying package updates
Jan 26, 2023
4c6f926
ci: setup web-components docsite CI/CD (#26629)
Hotell Feb 3, 2023
c2510d9
Update azure-static-web-apps-deploy.yml (#26632)
ling1726 Feb 3, 2023
c2800e8
Update azure-storage-web-components.yml (#26633)
ling1726 Feb 3, 2023
233ee99
Update azure-storage-web-components.yml (#26635)
ling1726 Feb 3, 2023
dbc2793
ci: remove pull_request workflows from ASW WC (#26636)
Hotell Feb 3, 2023
3c363a2
style: format yml workflow (#26634)
Hotell Feb 3, 2023
05bcecf
applying package updates
Feb 6, 2023
9dc222a
applying package updates
Feb 13, 2023
ba0e282
Adds basic implementation of Spinner component (#26392)
procload Feb 14, 2023
2248c84
update fast element and foundation versions for wc-3 branch (#26844)
chrisdholt Feb 15, 2023
2d3c36b
applying package updates
Feb 15, 2023
c21e9bb
chore(web-components): introduce ts-solution configs and monorepo set…
Hotell Feb 15, 2023
8293657
fix(web-components): dont ship non production assets to npm registry …
Hotell Feb 15, 2023
b08a9a7
Manual bump of web components version (#26878)
JustSlone Feb 16, 2023
2744766
applying package updates
Feb 17, 2023
30ef24b
doc(web-components): Add storybook landing page (#26911)
miroslavstastny Feb 20, 2023
b6a2c3c
applying package updates
Feb 21, 2023
fdcbc82
web component accordion (#26547)
brianchristopherbrady Feb 21, 2023
764a527
applying package updates
Feb 22, 2023
07a1287
fix(ci): check changes folder exists (#26941)
miroslavstastny Feb 22, 2023
804eccc
fix(ci): overwrite existing data when publishing WC storybook (#26939)
miroslavstastny Feb 22, 2023
02e273f
Web Component Switch (#26517)
brianchristopherbrady Feb 24, 2023
cfdbf14
applying package updates
Feb 24, 2023
f6e1175
fix(ci): update web components swa workflow (#26960)
tudorpopams Feb 24, 2023
ecab7fa
Adds Image web component (#26936)
halerankin Feb 24, 2023
939aadb
Adds Divider web component (#26901)
halerankin Feb 25, 2023
ef086a0
(web-components): add avatar as a new Fluent 2 aligned component (#26…
chrisdholt Feb 25, 2023
db2cc99
applying package updates
Feb 27, 2023
5134e81
chore: Enable Typescript strict mode (#26950)
miroslavstastny Feb 27, 2023
2bc1073
divides accordion and accordion item readme (#26938)
brianchristopherbrady Feb 27, 2023
b94ab02
applying package updates
Feb 28, 2023
ac6dcb5
Redo of PR of Slider spec after merge error (#26981)
procload Feb 28, 2023
5d52191
applying package updates
Mar 1, 2023
621b181
web component Radio and RadioGroup spec (#26900)
brianchristopherbrady Mar 2, 2023
d503bcd
applying package updates
Mar 3, 2023
93c7364
Adds SliderLabel Spec and Folder (#27001)
procload Mar 6, 2023
78a45fc
applying package updates
Mar 7, 2023
a09fedf
Web Component v3 Stories (#27049)
levithomason Mar 8, 2023
d051bad
fix: [text] block breaks the style attribute (#27129)
eljefe223 Mar 8, 2023
d73da16
applying package updates
Mar 9, 2023
87c4b43
update FAST dependencies (#27187)
chrisdholt Mar 13, 2023
d1539b5
(web-components): add css containment to v3 components (#27190)
chrisdholt Mar 13, 2023
7174063
applying package updates
Mar 14, 2023
1f6d548
Adds Slider as a web component (#27165)
procload Mar 27, 2023
39a6407
applying package updates
Mar 28, 2023
97ba4a3
update fast-elment to 2.0.0-beta.23 and fast-foundation to 3.0.0-alph…
chrisdholt Mar 30, 2023
4fda398
feat(button): add button to web components v3 (#27278)
chrisdholt Mar 31, 2023
5ba4894
applying package updates
Mar 31, 2023
1e20d12
add menu button as new component (#27396)
chrisdholt Apr 5, 2023
3f498cc
Adding web component Tabs, Tab and TabPanel (#27167)
bearcat-msft Apr 5, 2023
54368a1
fix order of web comonenponent package exports (#27449)
chrisdholt Apr 5, 2023
6570fbe
applying package updates
Apr 6, 2023
7e772d8
Adds Label as a new web component (#27344)
brianchristopherbrady Apr 6, 2023
9d35ad7
fixes label change log (#27481)
brianchristopherbrady Apr 6, 2023
af34646
applying package updates
Apr 7, 2023
84d2349
Web Components V3 - Tabs, Tab, Tab-Panel package.json mappings (#27505)
bearcat-msft Apr 10, 2023
d9e29ab
chore(storybook): set background for WC stories (#27504)
miroslavstastny Apr 10, 2023
da2b363
applying package updates
Apr 11, 2023
d5f0a81
add compound button as new v3 component (#27407)
chrisdholt Apr 11, 2023
14e6eea
add anchor button as a new component to web components v3 (#27395)
chrisdholt Apr 11, 2023
947ef67
add toggle button as new v3 web component (#27405)
chrisdholt Apr 11, 2023
0de46b8
applying package updates
Apr 12, 2023
0fa372c
Users/procload/add select spec (#27360)
procload Apr 18, 2023
3136d75
applying package updates
Apr 19, 2023
e4a1199
Update: Modify Image Web Component Styles (#27567)
halerankin Apr 19, 2023
43a0af7
applying package updates
Apr 20, 2023
70bbf97
Adds Menu and MenuItem as new web components (#26765)
brianchristopherbrady Apr 20, 2023
c6bc0d3
applying package updates
Apr 21, 2023
f1f961d
Adds Radio and RadioGroup as new web components (#27113)
brianchristopherbrady May 5, 2023
a258e35
applying package updates
May 8, 2023
ae28609
Adds components to api report for importing into wrappers (#27822)
procload May 12, 2023
9465cc4
Correct export naming in Switch component (#27821)
procload May 12, 2023
6529d3d
applying package updates
May 15, 2023
9b829ce
Exports MenuItemRole From MenuItem (#27941)
halerankin May 23, 2023
38cc58d
applying package updates
May 24, 2023
d3bc4ea
Adds TextInput as a new web component (#27348)
brianchristopherbrady Jun 6, 2023
6b4a8dc
applying package updates
Jun 8, 2023
dbcd783
feat: export fluent design system from package (#27905)
chrisdholt Jun 9, 2023
fda417d
applying package updates
Jun 12, 2023
7942889
feat (web-components-v3): Add dedicated vr-tests package and integrat…
TristanWatanabe Jun 26, 2023
00840c8
Onboard generalized version of VRT to upload baseline screenshots for…
Devjoyti-Barman Jul 18, 2023
6fd1144
Onboarding generalized version of VRT for web-components-v3 (#28536)
Devjoyti-Barman Jul 18, 2023
d1dc482
Adds Checkbox as a new web component (#27450)
brianchristopherbrady Jul 18, 2023
60be376
change files (#28500)
chrisdholt Jul 18, 2023
c13acc0
applying package updates
Jul 19, 2023
265fef8
Docs: Normalize WC v3 and React v9 Storybook Styles (#28424)
levithomason Jul 27, 2023
2f8aafa
applying package updates
Jul 28, 2023
4141297
Use node16 in WC deploy workflow (#28730)
miroslavstastny Aug 4, 2023
329a75f
Chore: trigger WC CI (#28733)
miroslavstastny Aug 4, 2023
eb22628
chore(wc): allow the CI to be triggered manually (#28746)
miroslavstastny Aug 4, 2023
e1cc18b
chore(fluent-accordion): Add screenshot tests (#28441)
miroslavstastny Aug 5, 2023
574898b
applying package updates
Aug 7, 2023
8e3be16
Fixes low contrast in dark mode (#28766)
procload Aug 7, 2023
af7a473
a11y high contrast mode and focus state bug fixes for web components …
brianchristopherbrady Aug 8, 2023
ebc3d58
build(wc): Enforce node 16 (#28768)
miroslavstastny Aug 8, 2023
675c64f
applying package updates
Aug 8, 2023
071ec5a
enumerate files which have side effects (#28748)
chrisdholt Aug 8, 2023
4896818
applying package updates
Aug 9, 2023
30b866d
chore(web-components): Add playwright testing for v3 web components (…
chrisdholt Aug 9, 2023
8f14567
applying package updates
Aug 10, 2023
a0eb2dc
chore(avatar): Add screenshot tests (#28784)
miroslavstastny Aug 14, 2023
f4ad78e
fix(web-components): update fast dependencies and fix un-allowed attr…
chrisdholt Aug 14, 2023
b9f8523
applying package updates
Aug 15, 2023
56ffbed
Adds tests for Switch Component (#28828)
procload Aug 17, 2023
8fe3e39
chore: Add lint rules for playwright, enable unit tests (#28911)
miroslavstastny Aug 18, 2023
cf51b64
Adds Playwright unit tests to ProgressBar web component (#28799)
procload Aug 21, 2023
bc9a109
Adds Tests for Slider Web Component v3 (#28813)
procload Aug 21, 2023
1202ce3
Adds tests for checkbox component (#28814)
procload Aug 21, 2023
f435851
accordion and accordion item unit tests (#28801)
brianchristopherbrady Aug 21, 2023
c09517c
applying package updates
Aug 21, 2023
8deb937
Adds test for Fluent Spinner (#28811)
procload Aug 21, 2023
61b9450
chore(slider): Add screenshot tests (#28873)
miroslavstastny Aug 21, 2023
1a0d11a
removes unused import from checkbox story (#28924)
brianchristopherbrady Aug 21, 2023
f861cbf
chore(radio): Add screenshot tests (#28868)
miroslavstastny Aug 21, 2023
70a8483
chore(badge): Add screenshot tests (#28794)
miroslavstastny Aug 21, 2023
09a411c
chore(divider): Add screenshot tests (#28860)
miroslavstastny Aug 21, 2023
5f90339
chore(button): Add screenshot tests (#28797)
miroslavstastny Aug 21, 2023
d09283d
chore(progress-bar): Add screenshot tests (#28866)
miroslavstastny Aug 21, 2023
5322de4
feat(web-components): update to use foundation export paths and add e…
chrisdholt Aug 21, 2023
0b3d569
chore(text-input): Add screenshot tests (#28929)
miroslavstastny Aug 21, 2023
99ee6c5
chore(switch): Add screenshot tests (#28930)
miroslavstastny Aug 21, 2023
d8252bd
chore(tabs): Add screenshot tests (#28931)
miroslavstastny Aug 21, 2023
7722b6f
chore(text): Add screenshot tests (#28932)
miroslavstastny Aug 21, 2023
7405449
chore(label): Add screenshot tests (#28861)
miroslavstastny Aug 21, 2023
473a1f1
chore(checkbox): Add screenshot tests (#28871)
miroslavstastny Aug 22, 2023
2589865
applying package updates
Aug 22, 2023
3af70f8
chore(menu-list): Add screenshot tests (#28864)
miroslavstastny Aug 22, 2023
dae8423
Adds RadioGroup tests to component (#28826)
procload Aug 22, 2023
4ebead7
Text component unit tests (#28834)
brianchristopherbrady Aug 22, 2023
a851cf7
add explicit exports for tokens and add package export for theme util…
chrisdholt Aug 22, 2023
e050aac
Adds Tests For Fluent Divider Web Component (#28812)
halerankin Aug 23, 2023
17efa9c
Label unit tests (#28830)
brianchristopherbrady Aug 23, 2023
93bf824
applying package updates
Aug 23, 2023
b8b5858
menu list unit tests (#28857)
brianchristopherbrady Aug 23, 2023
38082b5
badge unit testing (#28832)
brianchristopherbrady Aug 23, 2023
e54af8b
adds text input unit tests (#28859)
brianchristopherbrady Aug 23, 2023
9cb0e4c
tabs, tab, tabpanel unit tests (#28872)
brianchristopherbrady Aug 23, 2023
2eb0725
Adds Tests For Fluent Image Web Component (#28815)
halerankin Aug 24, 2023
18665b1
Adds Tests For Fluent Anchor Button Web Component (#28825)
halerankin Aug 24, 2023
9895791
avatar unit tests (#28800)
brianchristopherbrady Aug 24, 2023
86cc0fa
feat: Bump version to beta (#28976)
miroslavstastny Aug 24, 2023
e0876e8
applying package updates
Aug 25, 2023
46eb93d
fix(web-components): Fixed pathing to types for package exports (#28986)
mohamedmansour Aug 25, 2023
6c12c6f
Adds unit tests for CounterBadge (#28867)
procload Aug 26, 2023
8bbee8d
applying package updates
Aug 28, 2023
167a6b8
accordion storybook content fix (#28729)
brianchristopherbrady Sep 21, 2023
318173c
Menu Web Component [ PRIORITY 1 ] (#27906)
brianchristopherbrady Sep 27, 2023
f3f3221
applying package updates
Sep 28, 2023
33bebaa
fix(web-components): update switch to use margin for checked state to…
chrisdholt Oct 12, 2023
d3c16bd
applying package updates
Oct 13, 2023
3aebaf7
Adds Menu Component to sideEffects (#29581)
halerankin Oct 18, 2023
f47670a
applying package updates
Oct 19, 2023
951a92f
Web Component Dialog (#28569)
brianchristopherbrady Oct 25, 2023
96c974d
applying package updates
Oct 26, 2023
e954939
Add 1es pt pipeline to web-components-v3 (#29713)
dannyvv Oct 31, 2023
8590046
Web components V3 - updating disclaimer message on storybook intro pa…
bearcat-msft Nov 30, 2023
9e6a8a7
applying package updates
Dec 1, 2023
893c80d
[web-components]: remove design token implementation in favor of plat…
chrisdholt Feb 8, 2024
1b196a5
applying package updates
Feb 9, 2024
a0cf918
feat: removes dependency on fast-foundation templates and classes. (#…
eljefe223 Feb 9, 2024
f3c1b33
applying package updates
Feb 12, 2024
10635e8
chore(web-components): add perf testing benchmarks (#30972)
chrisdholt Apr 5, 2024
4053b73
applying package updates
Apr 8, 2024
88350af
feat(web-components): revert syntax change for design tokens (#30819)
chrisdholt Apr 8, 2024
030819a
applying package updates
Apr 9, 2024
67780c4
fix(web-components): remove final dependencies on fast-foundation (#3…
chrisdholt Apr 12, 2024
508613a
applying package updates
Apr 15, 2024
9ae4df0
(web-components) Use `ElementInternals` for Button elements (#30999)
radium-v Apr 22, 2024
1ecd630
applying package updates
Apr 23, 2024
3c223ef
fix(web-components): ensure buttons with long text maintain center al…
chrisdholt Apr 24, 2024
82f4714
applying package updates
Apr 25, 2024
b29ad17
feat(web-components): create css partials for typography styles (#31164)
chrisdholt Apr 25, 2024
2920401
applying package updates
Apr 26, 2024
da62aff
fix(web-components): refactor exports to remove most barrel exports f…
chrisdholt Apr 30, 2024
cacacae
applying package updates
May 1, 2024
1b5570f
fix rebase conflict
radium-v Apr 30, 2024
840e3de
remove rollup-plugin-filesize
radium-v Apr 30, 2024
357519d
update rollup-plugin-esbuild
radium-v Apr 30, 2024
09c313d
Resolve pipelines after rebase
radium-v May 2, 2024
1a62518
fix package mismatch
radium-v May 2, 2024
307e952
resolve lockfile
radium-v May 2, 2024
bcef9b1
sync change directory
radium-v May 2, 2024
3d89250
resolve workspace lint
radium-v May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ apps/ts-minbar-test-react @microsoft/fluentui-react-build
apps/ts-minbar-test-react-components @microsoft/fluentui-react-build
apps/vr-tests @microsoft/fluentui-react
apps/vr-tests-react-components @microsoft/fluentui-react
apps/vr-tests-web-components @microsoft/fui-wc
apps/ssr-tests @microsoft/fluentui-react
apps/pr-deploy-site @microsoft/fluentui-react-build
apps/public-docsite-v9 @microsoft/cxe-red @microsoft/fluentui-react-build
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/azure-static-web-apps-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Azure Static Web Apps web components

on:
push:
branches:
- web-components-v3
paths:
- packages/web-components/**
workflow_dispatch:

permissions:
contents: read

jobs:
build_and_deploy:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2

- name: Build and Deploy Job
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.WEB_COMPONENTS_AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments)
action: 'upload'
app_build_command: 'yarn workspace @fluentui/web-components build-storybook'
output_location: 'packages/web-components/dist/storybook' # Built app content directory, relative to app_location - optional
skip_api_build: true
3 changes: 2 additions & 1 deletion .github/workflows/check-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ jobs:
core.exportVariable('BEACHBALL_VERSION', beachballVersion);

- run: |
npx beachball@$BEACHBALL_VERSION check
npx beachball@$BEACHBALL_VERSION check -b web-components-v3
node ./scripts/beachball/check-wc-3-changefiles
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ rush.json
# tsdoc
tsdoc-metadata.json

# benchmarking
.tensile/

# tools cache
gulp-cache
.cache
Expand Down
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ packages/fluentui/docs/src/behaviorMenu.json
packages/fluentui/docs/src/exampleMenus
packages/fluentui/docs/src/exampleSources
packages/fluentui/ability-attributes/src/schema.ts
packages/web-components/src/**/*.styles.ts
packages/web-components/**/*.spec.ts
packages/web-components/src/default-palette.ts

# template files which actually follow a different language's formatting
*.hbs
Expand Down
43 changes: 23 additions & 20 deletions .storybook/docs-root.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Heads Up!
* This file is used by both React v9 and Web Components Storybooks.
* All CSS must apply to both implementations.
*
* DO NOT use design tokens in this file.
* This file styles the content outside of story previews where a Fluent theme is not expected to be set or change.
*/

#docs-root .sbdocs-content {
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
sans-serif;
Expand All @@ -10,7 +19,6 @@
/* identical to box height, or 143% */
letter-spacing: -0.04em;
color: #000000;
margin-top: 49px;
}

#docs-root details {
Expand All @@ -28,11 +36,6 @@
margin-top: 24px;
}

#docs-root .sbdocs-wrapper {
background: white;
min-height: auto;
}

#docs-root .sbdocs-img.featured-image {
max-width: 100%;
margin: 48px 0;
Expand Down Expand Up @@ -125,18 +128,25 @@

#docs-root .sbdocs-preview {
border-radius: 16px;
background: var(--colorBrandBackgroundInverted, #fff);
background: #fff; /* --colorBrandBackgroundInverted */
padding: 0;
box-shadow: none;
border: 1px solid var(--colorNeutralStroke1, #e1dfdd);
border: 1px solid #d1d1d1; /* --colorNeutralStroke1 */
}

#docs-root .innerZoomElementWrapper {
/* Apply the currently selected Fluent UI theme to the relevant areas of the docs */
#docs-root .innerZoomElementWrapper > div {
padding: 30px;
box-sizing: border-box;
}

/* fix mouse interactions for toolbar on first story */
#docs-root .sbdocs-preview > .os-host {
display: none;
/* The toolbar sits within the story content area and is position: absolute by default. */
/* The story content overlays the toolbar making it non-interactive */
/* We don't use z-index because the toolbar can still sometimes overlay story content (flyout menu) */
/* The best solution is to use a static toolbar that is always outside the story content and interactive */
position: static;
}

#docs-root span + .sbdocs .docblock-argstable tbody tr td button {
Expand Down Expand Up @@ -208,14 +218,6 @@
border-bottom: 1px solid #edebe9;
}

#docs-root .docblock-argstable-body > tr > td:nth-child(4) {
display: none;
}

#docs-root .docblock-argstable-head > tr > th:nth-child(4) {
display: none;
}

#docs-root .docblock-argstable tbody tr {
border: none;
}
Expand Down Expand Up @@ -288,6 +290,7 @@
display: inline-block;
background-color: rgba(17, 16, 15, 0.1);
border-radius: 2px;
width: fit-content; /* prevent wrapping kebab-case words when they'll fit on one line */
}

.os-content-glue {
Expand Down Expand Up @@ -396,9 +399,9 @@ h1.fluent {

h1 .fluent-version {
display: block;
font-size: 24px; /* --font-size-base-600 */
font-size: 24px; /* --fontSizeBase600 */
line-height: 32px;
color: #707070; /* --color-neutral-foreground-3 */
color: #707070; /* --colorNeutralForeground3 */
}

h2.fluent {
Expand Down
27 changes: 11 additions & 16 deletions apps/public-docsite-v9/.storybook/docs-root-v9.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
/* remove the docs wrapper bg to let page bg show through */
/* remove unnecessary padding now that theme switcher is not taking up space */
#docs-root .sbdocs-wrapper {
background: transparent !important;
padding-top: 0;
}

/* sb-show-main is missing during page transitions causing a page shift */
/* todo: cleanup once we no longer inherit docs-root */
.sb-show-main.sb-main-fullscreen,
.sb-main-fullscreen {
margin: 0;
padding: 0;
display: block;
}

/* remove loading overlay */
.sb-preparing-story,
.sb-preparing-docs,
.sb-nopreview,
.sb-errordisplay {
display: none !important;
}

/* Hide props table controls, since they don't work in the React implementation */
#docs-root .docblock-argstable-head > tr > th:nth-child(4),
#docs-root .docblock-argstable-body > tr > td:nth-child(4) {
display: none;
}

/* Hide the toolbar on the first story: zoom in, zoom out, reset zoom, open in new tab */
#docs-root .sbdocs-preview > .os-host {
display: none;
}
6 changes: 5 additions & 1 deletion apps/public-docsite-v9/.storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@

> 💡 NOTE:
>
> This is brittle way for providing custom non thenable styles for manager UI
> This is a brittle way for providing custom non thenable styles for manager UI.
>
> Those selectors might change on any storybook version bump.
-->

<style>
/*
* Heads Up!
* Keep this in sync with the styles in packages/web-components/.storybook/manager-head.html
*/
@font-face {
font-family: 'Segoe UI';
src: local('Segoe UI Light'),
Expand Down
11 changes: 10 additions & 1 deletion apps/public-docsite-v9/public/shell.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/* remove margin from sidebar logo */
/*
* HEADS UP!
* This file is used by both React v9 and Web Components Storybooks.
* All CSS must apply to both implementations.
*/

/* sidebar logo (React uses an SVG, Web Components uses text) */
.sidebar-header > div:first-of-type {
font-size: 20px; /* for Web Components */
white-space: break-spaces; /* allow line breaks "\n" in Storybook theme */
margin-right: 0;
}

Expand Down Expand Up @@ -53,6 +61,7 @@
*/
[role='main'] {
position: fixed;
top: 0 !important;
}

/* remove box shadow style from storybooks wrapper div */
Expand Down
1 change: 0 additions & 1 deletion apps/stress-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@fluentui/react": "*",
"@fluentui/react-components": "*",
"@fluentui/react-icons": "^2.0.237",
"@fluentui/web-components": "*",
"@microsoft/fast-element": "^1.11.1",
"afterframe": "1.0.2",
"react": "17.0.2",
Expand Down
30 changes: 15 additions & 15 deletions apps/stress-test/src/pages/wc/simple-stress/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {
fluentButton,
fluentDivider,
fluentCheckbox,
fluentProgressRing,
fluentNumberField,
provideFluentDesignSystem,
} from '@fluentui/web-components';
// import {
// fluentButton,
// fluentDivider,
// fluentCheckbox,
// fluentProgressRing,
// fluentNumberField,
// provideFluentDesignSystem,
// } from '@fluentui/web-components';
import { StressApp } from '../../../components/wc/stressApp';
import { StressComponent } from '../../../components/wc/stressComponent';
import { StressContainer } from '../../../components/wc/stressContainer';
Expand All @@ -15,13 +15,13 @@ const testOptions = getTestOptions();

document.querySelector('stress-app')?.setAttribute('numchildren', testOptions.numStartNodes.toString());

provideFluentDesignSystem().register(
fluentButton(),
fluentDivider(),
fluentCheckbox(),
fluentProgressRing(),
fluentNumberField(),
);
// provideFluentDesignSystem().register(
// fluentButton(),
// fluentDivider(),
// fluentCheckbox(),
// fluentProgressRing(),
// fluentNumberField(),
// );

typeof StressApp;
typeof StressComponent;
Expand Down
4 changes: 2 additions & 2 deletions apps/stress-test/src/renderers/wc/button.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fluentButton, provideFluentDesignSystem } from '@fluentui/web-components';
// import { fluentButton, provideFluentDesignSystem } from '@fluentui/web-components';
import { DOMSelectorTreeComponentRenderer } from '../../shared/vanilla/types';

provideFluentDesignSystem().register(fluentButton());
// provideFluentDesignSystem().register(fluentButton());

const componentRenderer: DOMSelectorTreeComponentRenderer = (node, depth, index) => {
const btn = document.createElement('fluent-button') as HTMLElement;
Expand Down
4 changes: 2 additions & 2 deletions apps/stress-test/src/renderers/wc/checkbox.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fluentCheckbox, provideFluentDesignSystem } from '@fluentui/web-components';
// import { fluentCheckbox, provideFluentDesignSystem } from '@fluentui/web-components';
import { DOMSelectorTreeComponentRenderer } from '../../shared/vanilla/types';

provideFluentDesignSystem().register(fluentCheckbox());
// provideFluentDesignSystem().register(fluentCheckbox());

const componentRenderer: DOMSelectorTreeComponentRenderer = (node, depth, index) => {
const checkbox = document.createElement('fluent-checkbox') as HTMLInputElement;
Expand Down
8 changes: 5 additions & 3 deletions apps/stress-test/src/renderers/wc/numberField.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { fluentNumberField, NumberField, provideFluentDesignSystem } from '@fluentui/web-components';
// import { fluentNumberField, NumberField, provideFluentDesignSystem } from '@fluentui/web-components';
import { DOMSelectorTreeComponentRenderer } from '../../shared/vanilla/types';

provideFluentDesignSystem().register(fluentNumberField());
// provideFluentDesignSystem().register(fluentNumberField());

const componentRenderer: DOMSelectorTreeComponentRenderer = (node, depth, index) => {
const numberField = document.createElement('fluent-number-field') as NumberField;
const numberField = document.createElement('fluent-number-field') as HTMLElement & {
value: string;
}; /* as NumberField*/
numberField.value = node.value.name + ' ' + index;

return numberField;
Expand Down
5 changes: 3 additions & 2 deletions apps/stress-test/src/renderers/wc/textField.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { fluentTextField, provideFluentDesignSystem } from '@fluentui/web-components';
// import { fluentTextField, provideFluentDesignSystem } from '@fluentui/web-components';
import { DOMSelectorTreeComponentRenderer } from '../../shared/vanilla/types';

provideFluentDesignSystem().register(fluentTextField());
// DO NOT MERGE TO MASTER - WC is not yet implemented in the branch
// provideFluentDesignSystem().register(fluentTextField());

const componentRenderer: DOMSelectorTreeComponentRenderer = (node, depth, index) => {
const field = document.createElement('fluent-text-field') as HTMLInputElement;
Expand Down
14 changes: 14 additions & 0 deletions apps/vr-tests-web-components/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
Loading
Loading