@fluentui/web-components 3.0.0-beta.11 → 3.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -2
- package/dist/dts/button/button.d.ts +173 -90
- package/dist/dts/button/button.definition.d.ts +3 -1
- package/dist/dts/button/button.options.d.ts +16 -1
- package/dist/dts/button/button.styles.d.ts +5 -0
- package/dist/dts/button/button.template.d.ts +7 -1
- package/dist/dts/form-associated/form-associated.d.ts +0 -74
- package/dist/dts/toggle-button/toggle-button.d.ts +29 -26
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +7 -0
- package/dist/esm/anchor-button/anchor-button.styles.js +254 -3
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/button/button.definition.js +3 -4
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.js +233 -126
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.options.js +10 -0
- package/dist/esm/button/button.options.js.map +1 -1
- package/dist/esm/button/button.styles.js +52 -54
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/button.template.js +13 -39
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/compound-button/compound-button.definition.js +0 -3
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +7 -7
- package/dist/esm/compound-button/compound-button.template.js +3 -39
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/form-associated/form-associated.js.map +1 -1
- package/dist/esm/menu-button/menu-button.definition.js +0 -3
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js +5 -1
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.definition.js +0 -3
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js +42 -85
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.js +31 -26
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/fluent-web-components.api.json +342 -673
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/main.e73a6496.iframe.bundle.js +2 -0
- package/dist/storybook/project.json +1 -1
- package/dist/web-components.d.ts +250 -223
- package/dist/web-components.js +236 -229
- package/dist/web-components.min.js +51 -50
- package/docs/api-report.md +63 -79
- package/package.json +3 -2
- package/playwright.config.ts +2 -3
- package/dist/dts/button/button.form-associated.d.ts +0 -14
- package/dist/esm/button/button.form-associated.js +0 -14
- package/dist/esm/button/button.form-associated.js.map +0 -1
- package/dist/storybook/main.81e47c59.iframe.bundle.js +0 -2
- /package/dist/storybook/{main.81e47c59.iframe.bundle.js.LICENSE.txt → main.e73a6496.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/api-report.md
CHANGED
|
@@ -465,53 +465,50 @@ export const borderRadiusSmall = "var(--borderRadiusSmall)";
|
|
|
465
465
|
// @public (undocumented)
|
|
466
466
|
export const borderRadiusXLarge = "var(--borderRadiusXLarge)";
|
|
467
467
|
|
|
468
|
-
// Warning: (ae-forgotten-export) The symbol "FormAssociatedButton" needs to be exported by the entry point index.d.ts
|
|
469
468
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "Button" because one of its declarations is marked as @internal
|
|
470
469
|
//
|
|
471
470
|
// @public
|
|
472
|
-
export class Button extends
|
|
473
|
-
|
|
471
|
+
export class Button extends FASTElement {
|
|
472
|
+
constructor();
|
|
473
|
+
appearance?: ButtonAppearance;
|
|
474
474
|
autofocus: boolean;
|
|
475
|
-
// @internal
|
|
476
|
-
|
|
475
|
+
// @internal
|
|
476
|
+
clickHandler(e: Event): boolean | void;
|
|
477
477
|
// (undocumented)
|
|
478
|
-
|
|
478
|
+
connectedCallback(): void;
|
|
479
479
|
defaultSlottedContent: HTMLElement[];
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
// (undocumented)
|
|
497
|
-
protected formnovalidateChanged(): void;
|
|
498
|
-
formtarget: '_self' | '_blank' | '_parent' | '_top';
|
|
499
|
-
// (undocumented)
|
|
500
|
-
protected formtargetChanged(): void;
|
|
480
|
+
disabled?: boolean;
|
|
481
|
+
disabledFocusable: boolean;
|
|
482
|
+
// @internal
|
|
483
|
+
disabledFocusableChanged(previous: boolean, next: boolean): void;
|
|
484
|
+
// @internal
|
|
485
|
+
protected elementInternals: ElementInternals;
|
|
486
|
+
get form(): HTMLFormElement | null;
|
|
487
|
+
formAction?: string;
|
|
488
|
+
static readonly formAssociated = true;
|
|
489
|
+
formAttribute?: string;
|
|
490
|
+
// @internal
|
|
491
|
+
formDisabledCallback(disabled: boolean): void;
|
|
492
|
+
formEnctype?: string;
|
|
493
|
+
formMethod?: string;
|
|
494
|
+
formNoValidate?: boolean;
|
|
495
|
+
formTarget?: ButtonFormTarget;
|
|
501
496
|
iconOnly: boolean;
|
|
502
|
-
|
|
497
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
498
|
+
get labels(): ReadonlyArray<Node>;
|
|
499
|
+
name?: string;
|
|
500
|
+
protected press(): void;
|
|
501
|
+
resetForm(): void;
|
|
502
|
+
shape?: ButtonShape;
|
|
503
503
|
size?: ButtonSize;
|
|
504
504
|
type: ButtonType;
|
|
505
|
-
//
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
//
|
|
509
|
-
// (undocumented)
|
|
510
|
-
validate(): void;
|
|
505
|
+
// @internal
|
|
506
|
+
typeChanged(previous: ButtonType, next: ButtonType): void;
|
|
507
|
+
value?: string;
|
|
511
508
|
}
|
|
512
509
|
|
|
513
|
-
// @internal
|
|
514
|
-
export interface Button extends StartEnd
|
|
510
|
+
// @internal (undocumented)
|
|
511
|
+
export interface Button extends StartEnd {
|
|
515
512
|
}
|
|
516
513
|
|
|
517
514
|
// @public
|
|
@@ -526,9 +523,20 @@ export const ButtonAppearance: {
|
|
|
526
523
|
// @public
|
|
527
524
|
export type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
|
|
528
525
|
|
|
529
|
-
// @public
|
|
526
|
+
// @public
|
|
530
527
|
export const ButtonDefinition: FASTElementDefinition<typeof Button>;
|
|
531
528
|
|
|
529
|
+
// @public
|
|
530
|
+
export const ButtonFormTarget: {
|
|
531
|
+
readonly blank: "_blank";
|
|
532
|
+
readonly self: "_self";
|
|
533
|
+
readonly parent: "_parent";
|
|
534
|
+
readonly top: "_top";
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
// @public
|
|
538
|
+
export type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
|
|
539
|
+
|
|
532
540
|
// @public
|
|
533
541
|
type ButtonOptions = StartEndOptions<Button>;
|
|
534
542
|
export { ButtonOptions }
|
|
@@ -556,7 +564,7 @@ export const ButtonSize: {
|
|
|
556
564
|
// @public
|
|
557
565
|
export type ButtonSize = ValuesOf<typeof ButtonSize>;
|
|
558
566
|
|
|
559
|
-
// @public
|
|
567
|
+
// @public
|
|
560
568
|
export const ButtonTemplate: ElementViewTemplate<Button>;
|
|
561
569
|
|
|
562
570
|
// @public
|
|
@@ -1683,20 +1691,6 @@ export const curveLinear = "var(--curveLinear)";
|
|
|
1683
1691
|
// @public
|
|
1684
1692
|
export const darkModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
1685
1693
|
|
|
1686
|
-
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "DelegatesARIAButton" because one of its declarations is marked as @internal
|
|
1687
|
-
//
|
|
1688
|
-
// @public
|
|
1689
|
-
export class DelegatesARIAButton {
|
|
1690
|
-
ariaExpanded: 'true' | 'false' | string | null;
|
|
1691
|
-
ariaPressed: 'true' | 'false' | 'mixed' | string | null;
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
// Warning: (ae-forgotten-export) The symbol "ARIAGlobalStatesAndProperties" needs to be exported by the entry point index.d.ts
|
|
1695
|
-
//
|
|
1696
|
-
// @internal
|
|
1697
|
-
export interface DelegatesARIAButton extends ARIAGlobalStatesAndProperties {
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
1694
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "DelegatesARIALink" because one of its declarations is marked as @internal
|
|
1701
1695
|
//
|
|
1702
1696
|
// @public
|
|
@@ -1704,6 +1698,8 @@ export class DelegatesARIALink {
|
|
|
1704
1698
|
ariaExpanded: 'true' | 'false' | string | null;
|
|
1705
1699
|
}
|
|
1706
1700
|
|
|
1701
|
+
// Warning: (ae-forgotten-export) The symbol "ARIAGlobalStatesAndProperties" needs to be exported by the entry point index.d.ts
|
|
1702
|
+
//
|
|
1707
1703
|
// @internal
|
|
1708
1704
|
export interface DelegatesARIALink extends ARIAGlobalStatesAndProperties {
|
|
1709
1705
|
}
|
|
@@ -2209,15 +2205,14 @@ export const MenuTemplate: ElementViewTemplate<Menu>;
|
|
|
2209
2205
|
// Warning: (ae-forgotten-export) The symbol "BaseProgress" needs to be exported by the entry point index.d.ts
|
|
2210
2206
|
//
|
|
2211
2207
|
// @public
|
|
2212
|
-
class
|
|
2208
|
+
export class ProgressBar extends BaseProgress {
|
|
2213
2209
|
shape?: ProgressBarShape;
|
|
2214
2210
|
thickness?: ProgressBarThickness;
|
|
2215
2211
|
validationState: ProgressBarValidationState | null;
|
|
2216
2212
|
}
|
|
2217
|
-
export { ProgressBar_2 as ProgressBar }
|
|
2218
2213
|
|
|
2219
2214
|
// @public
|
|
2220
|
-
export const ProgressBarDefinition: FASTElementDefinition<typeof
|
|
2215
|
+
export const ProgressBarDefinition: FASTElementDefinition<typeof ProgressBar>;
|
|
2221
2216
|
|
|
2222
2217
|
// @public
|
|
2223
2218
|
export const ProgressBarShape: {
|
|
@@ -2232,7 +2227,7 @@ export type ProgressBarShape = ValuesOf<typeof ProgressBarShape>;
|
|
|
2232
2227
|
export const ProgressBarStyles: ElementStyles;
|
|
2233
2228
|
|
|
2234
2229
|
// @public (undocumented)
|
|
2235
|
-
export const ProgressBarTemplate: ElementViewTemplate<
|
|
2230
|
+
export const ProgressBarTemplate: ElementViewTemplate<ProgressBar>;
|
|
2236
2231
|
|
|
2237
2232
|
// @public
|
|
2238
2233
|
export const ProgressBarThickness: {
|
|
@@ -2255,8 +2250,8 @@ export type ProgressBarValidationState = ValuesOf<typeof ProgressBarValidationSt
|
|
|
2255
2250
|
|
|
2256
2251
|
// @public
|
|
2257
2252
|
export type ProgressOptions = {
|
|
2258
|
-
indeterminateIndicator1?: StaticallyComposableHTML<
|
|
2259
|
-
indeterminateIndicator2?: StaticallyComposableHTML<
|
|
2253
|
+
indeterminateIndicator1?: StaticallyComposableHTML<ProgressBar>;
|
|
2254
|
+
indeterminateIndicator2?: StaticallyComposableHTML<ProgressBar>;
|
|
2260
2255
|
};
|
|
2261
2256
|
|
|
2262
2257
|
// Warning: (ae-forgotten-export) The symbol "FormAssociatedRadio" needs to be exported by the entry point index.d.ts
|
|
@@ -2624,7 +2619,7 @@ export const strokeWidthThickest = "var(--strokeWidthThickest)";
|
|
|
2624
2619
|
// @public (undocumented)
|
|
2625
2620
|
export const strokeWidthThin = "var(--strokeWidthThin)";
|
|
2626
2621
|
|
|
2627
|
-
// @public
|
|
2622
|
+
// @public
|
|
2628
2623
|
const styles: ElementStyles;
|
|
2629
2624
|
export { styles as ButtonStyles }
|
|
2630
2625
|
export { styles as MenuButtonStyles }
|
|
@@ -2942,27 +2937,16 @@ export type TextWeight = ValuesOf<typeof TextWeight>;
|
|
|
2942
2937
|
|
|
2943
2938
|
// @public
|
|
2944
2939
|
export class ToggleButton extends Button {
|
|
2945
|
-
constructor();
|
|
2946
|
-
checked: boolean;
|
|
2947
|
-
checkedAttribute: boolean;
|
|
2948
|
-
// (undocumented)
|
|
2949
|
-
protected checkedAttributeChanged(): void;
|
|
2950
|
-
// (undocumented)
|
|
2951
|
-
protected checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
2952
2940
|
// (undocumented)
|
|
2953
2941
|
connectedCallback(): void;
|
|
2954
|
-
|
|
2955
|
-
//
|
|
2956
|
-
|
|
2957
|
-
//
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
protected
|
|
2962
|
-
// (undocumented)
|
|
2963
|
-
disconnectedCallback(): void;
|
|
2964
|
-
// @internal (undocumented)
|
|
2965
|
-
protected handleToggleButtonClick: (e: MouseEvent) => void;
|
|
2942
|
+
mixed?: boolean;
|
|
2943
|
+
// @internal
|
|
2944
|
+
protected mixedChanged(): void;
|
|
2945
|
+
// @override
|
|
2946
|
+
protected press(): void;
|
|
2947
|
+
pressed: boolean;
|
|
2948
|
+
// @internal
|
|
2949
|
+
protected pressedChanged(): void;
|
|
2966
2950
|
}
|
|
2967
2951
|
|
|
2968
2952
|
// @public
|
|
@@ -3000,7 +2984,7 @@ export const ToggleButtonSize: {
|
|
|
3000
2984
|
// @public
|
|
3001
2985
|
export type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
|
|
3002
2986
|
|
|
3003
|
-
// @public
|
|
2987
|
+
// @public
|
|
3004
2988
|
export const ToggleButtonStyles: ElementStyles;
|
|
3005
2989
|
|
|
3006
2990
|
// @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"description": "A library of Fluent Web Components",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.13",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft",
|
|
7
7
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"compile:benchmark": "rollup -c rollup.bench.js",
|
|
184
184
|
"clean": "node ./scripts/clean dist",
|
|
185
185
|
"generate-api": "api-extractor run --local",
|
|
186
|
-
"build": "yarn compile && rollup -c && yarn generate-api",
|
|
186
|
+
"build": "yarn compile && yarn rollup -c && yarn generate-api",
|
|
187
187
|
"lint": "eslint . --ext .ts",
|
|
188
188
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
189
189
|
"format": "prettier -w 'src/**/(*.ts|*.html)' --ignore-path ../../.prettierignore",
|
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
"test:dev": "playwright test"
|
|
198
198
|
},
|
|
199
199
|
"devDependencies": {
|
|
200
|
+
"@types/web": "^0.0.142",
|
|
200
201
|
"@microsoft/api-extractor": "7.31.2",
|
|
201
202
|
"@storybook/html": "6.5.15",
|
|
202
203
|
"@tensile-perf/web-components": "~0.1.13",
|
package/playwright.config.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
|
2
2
|
|
|
3
3
|
const config: PlaywrightTestConfig = {
|
|
4
|
-
projects: [{ name: 'chromium' }, { name: 'firefox' }, { name: 'webkit' }],
|
|
5
4
|
reporter: 'list',
|
|
6
5
|
testMatch: /.*\.spec\.ts$/,
|
|
7
6
|
retries: 3,
|
|
@@ -10,8 +9,8 @@ const config: PlaywrightTestConfig = {
|
|
|
10
9
|
use: {
|
|
11
10
|
baseURL: 'http://localhost:6006/iframe.html',
|
|
12
11
|
viewport: {
|
|
13
|
-
height:
|
|
14
|
-
width:
|
|
12
|
+
height: 720,
|
|
13
|
+
width: 1280,
|
|
15
14
|
},
|
|
16
15
|
},
|
|
17
16
|
webServer: {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { FormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
-
declare class _Button extends FASTElement {
|
|
4
|
-
}
|
|
5
|
-
interface _Button extends FormAssociated {
|
|
6
|
-
}
|
|
7
|
-
declare const FormAssociatedButton_base: typeof _Button;
|
|
8
|
-
/**
|
|
9
|
-
* @beta
|
|
10
|
-
*/
|
|
11
|
-
export declare class FormAssociatedButton extends FormAssociatedButton_base {
|
|
12
|
-
proxy: HTMLInputElement;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { FormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
-
class _Button extends FASTElement {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @beta
|
|
7
|
-
*/
|
|
8
|
-
export class FormAssociatedButton extends FormAssociated(_Button) {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.proxy = document.createElement('input');
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=button.form-associated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.form-associated.js","sourceRoot":"","sources":["../../../src/button/button.form-associated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,MAAM,OAAQ,SAAQ,WAAW;CAAG;AAIpC;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAAjE;;QACE,UAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CAAA"}
|