@fluentui/web-components 3.0.0-beta.10 → 3.0.0-beta.12
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/index.d.ts +3 -0
- 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/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +124 -0
- package/dist/dts/utils/display.d.ts +17 -0
- package/dist/dts/utils/index.d.ts +2 -0
- package/dist/esm/accordion/accordion.styles.js +1 -1
- package/dist/esm/accordion/accordion.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- 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/avatar/avatar.styles.js +1 -1
- package/dist/esm/avatar/avatar.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 -55
- 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/checkbox/checkbox.styles.js +1 -1
- package/dist/esm/checkbox/checkbox.styles.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/dialog/dialog.styles.js +1 -1
- package/dist/esm/dialog/dialog.styles.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +1 -1
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/form-associated/form-associated.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/label.styles.js +1 -1
- package/dist/esm/label/label.styles.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/menu-item/menu-item.styles.js +1 -1
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.js +1 -1
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/radio/radio.styles.js +1 -1
- package/dist/esm/radio/radio.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.styles.js +1 -1
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +1 -1
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +1 -1
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +1 -1
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +1 -1
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/tab/tab.styles.js +1 -1
- package/dist/esm/tab/tab.styles.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -1
- package/dist/esm/tabs/tabs.styles.js +1 -1
- package/dist/esm/tabs/tabs.styles.js.map +1 -1
- package/dist/esm/text/text.styles.js +1 -1
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +1 -1
- package/dist/esm/text-input/text-input.styles.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/esm/utils/behaviors/match-media-stylesheet-behavior.js +142 -0
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +1 -0
- package/dist/esm/utils/display.js +15 -0
- package/dist/esm/utils/display.js.map +1 -0
- package/dist/esm/utils/index.js +2 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/fluent-web-components.api.json +1213 -771
- package/dist/storybook/{284.0946b1fb.iframe.bundle.js → 289.703b1698.iframe.bundle.js} +2 -2
- package/dist/storybook/{284.0946b1fb.iframe.bundle.js.LICENSE.txt → 289.703b1698.iframe.bundle.js.LICENSE.txt} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/main.d55b693e.iframe.bundle.js +2 -0
- package/dist/storybook/project.json +1 -1
- package/dist/web-components.d.ts +407 -219
- package/dist/web-components.js +807 -671
- package/dist/web-components.min.js +140 -139
- package/docs/api-report.md +107 -77
- package/package.json +4 -3
- package/playwright.config.ts +2 -3
- package/tensile.config.js +0 -2
- 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.b9de79ac.iframe.bundle.js +0 -2
- /package/dist/storybook/{main.b9de79ac.iframe.bundle.js.LICENSE.txt → main.d55b693e.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/api-report.md
CHANGED
|
@@ -10,6 +10,8 @@ import { ElementStyles } from '@microsoft/fast-element';
|
|
|
10
10
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
11
11
|
import { FASTElement } from '@microsoft/fast-element';
|
|
12
12
|
import { FASTElementDefinition } from '@microsoft/fast-element';
|
|
13
|
+
import type { HostBehavior } from '@microsoft/fast-element';
|
|
14
|
+
import type { HostController } from '@microsoft/fast-element';
|
|
13
15
|
import { HTMLDirective } from '@microsoft/fast-element';
|
|
14
16
|
import { Orientation } from '@microsoft/fast-web-utilities';
|
|
15
17
|
import type { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
@@ -463,53 +465,50 @@ export const borderRadiusSmall = "var(--borderRadiusSmall)";
|
|
|
463
465
|
// @public (undocumented)
|
|
464
466
|
export const borderRadiusXLarge = "var(--borderRadiusXLarge)";
|
|
465
467
|
|
|
466
|
-
// Warning: (ae-forgotten-export) The symbol "FormAssociatedButton" needs to be exported by the entry point index.d.ts
|
|
467
468
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "Button" because one of its declarations is marked as @internal
|
|
468
469
|
//
|
|
469
470
|
// @public
|
|
470
|
-
export class Button extends
|
|
471
|
-
|
|
471
|
+
export class Button extends FASTElement {
|
|
472
|
+
constructor();
|
|
473
|
+
appearance?: ButtonAppearance;
|
|
472
474
|
autofocus: boolean;
|
|
473
|
-
// @internal
|
|
474
|
-
|
|
475
|
+
// @internal
|
|
476
|
+
clickHandler(e: Event): boolean | void;
|
|
475
477
|
// (undocumented)
|
|
476
|
-
|
|
478
|
+
connectedCallback(): void;
|
|
477
479
|
defaultSlottedContent: HTMLElement[];
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
// (undocumented)
|
|
495
|
-
protected formnovalidateChanged(): void;
|
|
496
|
-
formtarget: '_self' | '_blank' | '_parent' | '_top';
|
|
497
|
-
// (undocumented)
|
|
498
|
-
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;
|
|
499
496
|
iconOnly: boolean;
|
|
500
|
-
|
|
497
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
498
|
+
get labels(): ReadonlyArray<Node>;
|
|
499
|
+
name?: string;
|
|
500
|
+
protected press(): void;
|
|
501
|
+
resetForm(): void;
|
|
502
|
+
shape?: ButtonShape;
|
|
501
503
|
size?: ButtonSize;
|
|
502
504
|
type: ButtonType;
|
|
503
|
-
//
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
//
|
|
507
|
-
// (undocumented)
|
|
508
|
-
validate(): void;
|
|
505
|
+
// @internal
|
|
506
|
+
typeChanged(previous: ButtonType, next: ButtonType): void;
|
|
507
|
+
value?: string;
|
|
509
508
|
}
|
|
510
509
|
|
|
511
|
-
// @internal
|
|
512
|
-
export interface Button extends StartEnd
|
|
510
|
+
// @internal (undocumented)
|
|
511
|
+
export interface Button extends StartEnd {
|
|
513
512
|
}
|
|
514
513
|
|
|
515
514
|
// @public
|
|
@@ -524,9 +523,20 @@ export const ButtonAppearance: {
|
|
|
524
523
|
// @public
|
|
525
524
|
export type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
|
|
526
525
|
|
|
527
|
-
// @public
|
|
526
|
+
// @public
|
|
528
527
|
export const ButtonDefinition: FASTElementDefinition<typeof Button>;
|
|
529
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
|
+
|
|
530
540
|
// @public
|
|
531
541
|
type ButtonOptions = StartEndOptions<Button>;
|
|
532
542
|
export { ButtonOptions }
|
|
@@ -554,7 +564,7 @@ export const ButtonSize: {
|
|
|
554
564
|
// @public
|
|
555
565
|
export type ButtonSize = ValuesOf<typeof ButtonSize>;
|
|
556
566
|
|
|
557
|
-
// @public
|
|
567
|
+
// @public
|
|
558
568
|
export const ButtonTemplate: ElementViewTemplate<Button>;
|
|
559
569
|
|
|
560
570
|
// @public
|
|
@@ -1648,6 +1658,9 @@ export const CounterBadgeStyles: ElementStyles;
|
|
|
1648
1658
|
// @public
|
|
1649
1659
|
export const CounterBadgeTemplate: ElementViewTemplate<CounterBadge>;
|
|
1650
1660
|
|
|
1661
|
+
// @public
|
|
1662
|
+
export type CSSDisplayPropertyValue = 'block' | 'contents' | 'flex' | 'grid' | 'inherit' | 'initial' | 'inline' | 'inline-block' | 'inline-flex' | 'inline-grid' | 'inline-table' | 'list-item' | 'none' | 'run-in' | 'table' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row' | 'table-row-group';
|
|
1663
|
+
|
|
1651
1664
|
// @public (undocumented)
|
|
1652
1665
|
export const curveAccelerateMax = "var(--curveAccelerateMax)";
|
|
1653
1666
|
|
|
@@ -1675,19 +1688,8 @@ export const curveEasyEaseMax = "var(--curveEasyEaseMax)";
|
|
|
1675
1688
|
// @public (undocumented)
|
|
1676
1689
|
export const curveLinear = "var(--curveLinear)";
|
|
1677
1690
|
|
|
1678
|
-
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "DelegatesARIAButton" because one of its declarations is marked as @internal
|
|
1679
|
-
//
|
|
1680
1691
|
// @public
|
|
1681
|
-
export
|
|
1682
|
-
ariaExpanded: 'true' | 'false' | string | null;
|
|
1683
|
-
ariaPressed: 'true' | 'false' | 'mixed' | string | null;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
// Warning: (ae-forgotten-export) The symbol "ARIAGlobalStatesAndProperties" needs to be exported by the entry point index.d.ts
|
|
1687
|
-
//
|
|
1688
|
-
// @internal
|
|
1689
|
-
export interface DelegatesARIAButton extends ARIAGlobalStatesAndProperties {
|
|
1690
|
-
}
|
|
1692
|
+
export const darkModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
1691
1693
|
|
|
1692
1694
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "DelegatesARIALink" because one of its declarations is marked as @internal
|
|
1693
1695
|
//
|
|
@@ -1696,6 +1698,8 @@ export class DelegatesARIALink {
|
|
|
1696
1698
|
ariaExpanded: 'true' | 'false' | string | null;
|
|
1697
1699
|
}
|
|
1698
1700
|
|
|
1701
|
+
// Warning: (ae-forgotten-export) The symbol "ARIAGlobalStatesAndProperties" needs to be exported by the entry point index.d.ts
|
|
1702
|
+
//
|
|
1699
1703
|
// @internal
|
|
1700
1704
|
export interface DelegatesARIALink extends ARIAGlobalStatesAndProperties {
|
|
1701
1705
|
}
|
|
@@ -1741,6 +1745,9 @@ export const DialogStyles: ElementStyles;
|
|
|
1741
1745
|
// @public
|
|
1742
1746
|
export const DialogTemplate: ElementViewTemplate<Dialog>;
|
|
1743
1747
|
|
|
1748
|
+
// @public
|
|
1749
|
+
export function display(displayValue: CSSDisplayPropertyValue): string;
|
|
1750
|
+
|
|
1744
1751
|
// @public
|
|
1745
1752
|
export class Divider extends FASTElement {
|
|
1746
1753
|
alignContent?: DividerAlignContent;
|
|
@@ -1880,6 +1887,15 @@ export const fontWeightRegular = "var(--fontWeightRegular)";
|
|
|
1880
1887
|
// @public (undocumented)
|
|
1881
1888
|
export const fontWeightSemibold = "var(--fontWeightSemibold)";
|
|
1882
1889
|
|
|
1890
|
+
// @public
|
|
1891
|
+
export const forcedColorsStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
1892
|
+
|
|
1893
|
+
// @public
|
|
1894
|
+
export const getDirection: (rootNode: HTMLElement) => Direction;
|
|
1895
|
+
|
|
1896
|
+
// @public
|
|
1897
|
+
export const hidden = ":host([hidden]){display:none}";
|
|
1898
|
+
|
|
1883
1899
|
// @public
|
|
1884
1900
|
class Image_2 extends FASTElement {
|
|
1885
1901
|
block?: boolean;
|
|
@@ -1940,6 +1956,9 @@ export const LabelStyles: ElementStyles;
|
|
|
1940
1956
|
// @public (undocumented)
|
|
1941
1957
|
export const LabelTemplate: ElementViewTemplate<Label>;
|
|
1942
1958
|
|
|
1959
|
+
// @public
|
|
1960
|
+
export const lightModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
1961
|
+
|
|
1943
1962
|
// @public (undocumented)
|
|
1944
1963
|
export const lineHeightBase100 = "var(--lineHeightBase100)";
|
|
1945
1964
|
|
|
@@ -1970,6 +1989,29 @@ export const lineHeightHero800 = "var(--lineHeightHero800)";
|
|
|
1970
1989
|
// @public (undocumented)
|
|
1971
1990
|
export const lineHeightHero900 = "var(--lineHeightHero900)";
|
|
1972
1991
|
|
|
1992
|
+
// @public
|
|
1993
|
+
export abstract class MatchMediaBehavior implements HostBehavior {
|
|
1994
|
+
constructor(query: MediaQueryList);
|
|
1995
|
+
connectedCallback(controller: HostController): void;
|
|
1996
|
+
protected abstract constructListener(controller: HostController): MediaQueryListListener;
|
|
1997
|
+
disconnectedCallback(controller: HostController): void;
|
|
1998
|
+
readonly query: MediaQueryList;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
// @public
|
|
2002
|
+
export class MatchMediaStyleSheetBehavior extends MatchMediaBehavior {
|
|
2003
|
+
constructor(query: MediaQueryList, styles: ElementStyles);
|
|
2004
|
+
protected constructListener(controller: HostController): MediaQueryListListener;
|
|
2005
|
+
readonly query: MediaQueryList;
|
|
2006
|
+
// @internal
|
|
2007
|
+
removedCallback(controller: HostController<any>): void;
|
|
2008
|
+
readonly styles: ElementStyles;
|
|
2009
|
+
static with(query: MediaQueryList): (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
// @public
|
|
2013
|
+
export type MediaQueryListListener = (this: MediaQueryList, ev?: MediaQueryListEvent) => void;
|
|
2014
|
+
|
|
1973
2015
|
// @public
|
|
1974
2016
|
export class Menu extends FASTElement {
|
|
1975
2017
|
cleanup?: () => void;
|
|
@@ -2163,15 +2205,14 @@ export const MenuTemplate: ElementViewTemplate<Menu>;
|
|
|
2163
2205
|
// Warning: (ae-forgotten-export) The symbol "BaseProgress" needs to be exported by the entry point index.d.ts
|
|
2164
2206
|
//
|
|
2165
2207
|
// @public
|
|
2166
|
-
class
|
|
2208
|
+
export class ProgressBar extends BaseProgress {
|
|
2167
2209
|
shape?: ProgressBarShape;
|
|
2168
2210
|
thickness?: ProgressBarThickness;
|
|
2169
2211
|
validationState: ProgressBarValidationState | null;
|
|
2170
2212
|
}
|
|
2171
|
-
export { ProgressBar_2 as ProgressBar }
|
|
2172
2213
|
|
|
2173
2214
|
// @public
|
|
2174
|
-
export const ProgressBarDefinition: FASTElementDefinition<typeof
|
|
2215
|
+
export const ProgressBarDefinition: FASTElementDefinition<typeof ProgressBar>;
|
|
2175
2216
|
|
|
2176
2217
|
// @public
|
|
2177
2218
|
export const ProgressBarShape: {
|
|
@@ -2186,7 +2227,7 @@ export type ProgressBarShape = ValuesOf<typeof ProgressBarShape>;
|
|
|
2186
2227
|
export const ProgressBarStyles: ElementStyles;
|
|
2187
2228
|
|
|
2188
2229
|
// @public (undocumented)
|
|
2189
|
-
export const ProgressBarTemplate: ElementViewTemplate<
|
|
2230
|
+
export const ProgressBarTemplate: ElementViewTemplate<ProgressBar>;
|
|
2190
2231
|
|
|
2191
2232
|
// @public
|
|
2192
2233
|
export const ProgressBarThickness: {
|
|
@@ -2209,8 +2250,8 @@ export type ProgressBarValidationState = ValuesOf<typeof ProgressBarValidationSt
|
|
|
2209
2250
|
|
|
2210
2251
|
// @public
|
|
2211
2252
|
export type ProgressOptions = {
|
|
2212
|
-
indeterminateIndicator1?: StaticallyComposableHTML<
|
|
2213
|
-
indeterminateIndicator2?: StaticallyComposableHTML<
|
|
2253
|
+
indeterminateIndicator1?: StaticallyComposableHTML<ProgressBar>;
|
|
2254
|
+
indeterminateIndicator2?: StaticallyComposableHTML<ProgressBar>;
|
|
2214
2255
|
};
|
|
2215
2256
|
|
|
2216
2257
|
// Warning: (ae-forgotten-export) The symbol "FormAssociatedRadio" needs to be exported by the entry point index.d.ts
|
|
@@ -2578,7 +2619,7 @@ export const strokeWidthThickest = "var(--strokeWidthThickest)";
|
|
|
2578
2619
|
// @public (undocumented)
|
|
2579
2620
|
export const strokeWidthThin = "var(--strokeWidthThin)";
|
|
2580
2621
|
|
|
2581
|
-
// @public
|
|
2622
|
+
// @public
|
|
2582
2623
|
const styles: ElementStyles;
|
|
2583
2624
|
export { styles as ButtonStyles }
|
|
2584
2625
|
export { styles as MenuButtonStyles }
|
|
@@ -2896,27 +2937,16 @@ export type TextWeight = ValuesOf<typeof TextWeight>;
|
|
|
2896
2937
|
|
|
2897
2938
|
// @public
|
|
2898
2939
|
export class ToggleButton extends Button {
|
|
2899
|
-
constructor();
|
|
2900
|
-
checked: boolean;
|
|
2901
|
-
checkedAttribute: boolean;
|
|
2902
|
-
// (undocumented)
|
|
2903
|
-
protected checkedAttributeChanged(): void;
|
|
2904
|
-
// (undocumented)
|
|
2905
|
-
protected checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
2906
2940
|
// (undocumented)
|
|
2907
2941
|
connectedCallback(): void;
|
|
2908
|
-
|
|
2909
|
-
//
|
|
2910
|
-
|
|
2911
|
-
//
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
protected
|
|
2916
|
-
// (undocumented)
|
|
2917
|
-
disconnectedCallback(): void;
|
|
2918
|
-
// @internal (undocumented)
|
|
2919
|
-
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;
|
|
2920
2950
|
}
|
|
2921
2951
|
|
|
2922
2952
|
// @public
|
|
@@ -2954,7 +2984,7 @@ export const ToggleButtonSize: {
|
|
|
2954
2984
|
// @public
|
|
2955
2985
|
export type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
|
|
2956
2986
|
|
|
2957
|
-
// @public
|
|
2987
|
+
// @public
|
|
2958
2988
|
export const ToggleButtonStyles: ElementStyles;
|
|
2959
2989
|
|
|
2960
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.12",
|
|
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",
|
|
@@ -205,9 +206,9 @@
|
|
|
205
206
|
},
|
|
206
207
|
"dependencies": {
|
|
207
208
|
"@microsoft/fast-element": "2.0.0-beta.26",
|
|
208
|
-
"@microsoft/fast-foundation": "3.0.0-alpha.31",
|
|
209
209
|
"@microsoft/fast-web-utilities": "^6.0.0",
|
|
210
210
|
"@fluentui/tokens": "1.0.0-alpha.2",
|
|
211
|
+
"tabbable": "^6.2.0",
|
|
211
212
|
"tslib": "^2.1.0"
|
|
212
213
|
},
|
|
213
214
|
"beachball": {
|
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: {
|
package/tensile.config.js
CHANGED
|
@@ -8,8 +8,6 @@ const config = {
|
|
|
8
8
|
'@tensile-perf/web-components': '/node_modules/@tensile-perf/web-components/lib/index.js',
|
|
9
9
|
'@microsoft/fast-element': '/node_modules/@microsoft/fast-element/dist/fast-element.min.js',
|
|
10
10
|
'@microsoft/fast-element/utilities.js': '/node_modules/@microsoft/fast-element/dist/esm/utilities.js',
|
|
11
|
-
'@microsoft/fast-foundation': '/node_modules/@microsoft/fast-foundation/dist/esm/index.js',
|
|
12
|
-
'@microsoft/fast-foundation/utilities.js': '/node_modules/@microsoft/fast-foundation/dist/esm/utilities/index.js',
|
|
13
11
|
'@microsoft/fast-web-utilities': '/node_modules/@microsoft/fast-web-utilities/dist/index.js',
|
|
14
12
|
'@fluentui/tokens': '/tensile-assets/benchmark-dependencies/tokens.js',
|
|
15
13
|
'@fluentui/web-components': '/node_modules/@fluentui/web-components/dist/esm/index.js',
|
|
@@ -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"}
|