@fluentui/web-components 3.0.0-alpha.11 → 3.0.0-alpha.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.json +37 -1
- package/CHANGELOG.md +21 -2
- package/dist/dts/button/button.d.ts +55 -0
- package/dist/dts/button/button.definition.d.ts +10 -0
- package/dist/dts/button/button.options.d.ts +46 -0
- package/dist/dts/button/button.styles.d.ts +1 -0
- package/dist/dts/button/button.template.d.ts +7 -0
- package/dist/dts/button/define.d.ts +1 -0
- package/dist/dts/button/index.d.ts +5 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/progress-bar/progress-bar.styles.d.ts +1 -1
- package/dist/dts/slider/define.d.ts +1 -0
- package/dist/dts/slider/index.d.ts +5 -0
- package/dist/dts/slider/slider.d.ts +24 -0
- package/dist/dts/slider/slider.definition.d.ts +10 -0
- package/dist/dts/slider/slider.options.d.ts +15 -0
- package/dist/dts/slider/slider.styles.d.ts +4 -0
- package/dist/dts/slider/slider.template.d.ts +3 -0
- package/dist/esm/button/button.definition.js +21 -0
- package/dist/esm/button/button.definition.js.map +1 -0
- package/dist/esm/button/button.js +72 -0
- package/dist/esm/button/button.js.map +1 -0
- package/dist/esm/button/button.options.js +30 -0
- package/dist/esm/button/button.options.js.map +1 -0
- package/dist/esm/button/button.styles.js +253 -0
- package/dist/esm/button/button.styles.js.map +1 -0
- package/dist/esm/button/button.template.js +7 -0
- package/dist/esm/button/button.template.js.map +1 -0
- package/dist/esm/button/define.js +4 -0
- package/dist/esm/button/define.js.map +1 -0
- package/dist/esm/button/index.js +6 -0
- package/dist/esm/button/index.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +1 -1
- package/dist/esm/slider/define.js +4 -0
- package/dist/esm/slider/define.js.map +1 -0
- package/dist/esm/slider/index.js +6 -0
- package/dist/esm/slider/index.js.map +1 -0
- package/dist/esm/slider/slider.definition.js +18 -0
- package/dist/esm/slider/slider.definition.js.map +1 -0
- package/dist/esm/slider/slider.js +59 -0
- package/dist/esm/slider/slider.js.map +1 -0
- package/dist/esm/slider/slider.options.js +10 -0
- package/dist/esm/slider/slider.options.js.map +1 -0
- package/dist/esm/slider/slider.styles.js +186 -0
- package/dist/esm/slider/slider.styles.js.map +1 -0
- package/dist/esm/slider/slider.template.js +5 -0
- package/dist/esm/slider/slider.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +1022 -80
- package/dist/web-components.d.ts +186 -1
- package/dist/web-components.js +939 -40
- package/dist/web-components.min.js +136 -128
- package/docs/api-report.md +93 -0
- package/package.json +14 -6
package/dist/web-components.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ButtonOptions } from '@microsoft/fast-foundation';
|
|
1
2
|
import { CSSDesignToken } from '@microsoft/fast-foundation';
|
|
2
3
|
import { DividerOrientation } from '@microsoft/fast-foundation';
|
|
3
4
|
import { DividerRole } from '@microsoft/fast-foundation';
|
|
@@ -5,12 +6,15 @@ import { ElementStyles } from '@microsoft/fast-element';
|
|
|
5
6
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
6
7
|
import { FASTAccordion } from '@microsoft/fast-foundation';
|
|
7
8
|
import { FASTAccordionItem } from '@microsoft/fast-foundation';
|
|
9
|
+
import { FASTButton } from '@microsoft/fast-foundation';
|
|
8
10
|
import { FASTDivider } from '@microsoft/fast-foundation';
|
|
9
11
|
import { FASTElement } from '@microsoft/fast-element';
|
|
10
12
|
import { FASTElementDefinition } from '@microsoft/fast-element';
|
|
11
13
|
import { FASTProgress } from '@microsoft/fast-foundation';
|
|
12
14
|
import { FASTProgressRing } from '@microsoft/fast-foundation';
|
|
15
|
+
import { FASTSlider } from '@microsoft/fast-foundation';
|
|
13
16
|
import { FASTSwitch } from '@microsoft/fast-foundation';
|
|
17
|
+
import { SliderOrientation } from '@microsoft/fast-foundation';
|
|
14
18
|
import { StartEnd } from '@microsoft/fast-foundation';
|
|
15
19
|
import { StartEndOptions } from '@microsoft/fast-foundation';
|
|
16
20
|
import { StaticallyComposableHTML } from '@microsoft/fast-foundation';
|
|
@@ -543,6 +547,130 @@ export declare const borderRadiusSmall: CSSDesignToken<string>;
|
|
|
543
547
|
|
|
544
548
|
export declare const borderRadiusXLarge: CSSDesignToken<string>;
|
|
545
549
|
|
|
550
|
+
/**
|
|
551
|
+
* The base class used for constructing a fluent-button custom element
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
export declare class Button extends FASTButton {
|
|
555
|
+
/**
|
|
556
|
+
* The appearance the button should have.
|
|
557
|
+
*
|
|
558
|
+
* @public
|
|
559
|
+
* @remarks
|
|
560
|
+
* HTML Attribute: appearance
|
|
561
|
+
*/
|
|
562
|
+
appearance?: ButtonAppearance | undefined;
|
|
563
|
+
/**
|
|
564
|
+
* The shape the button should have.
|
|
565
|
+
*
|
|
566
|
+
* @public
|
|
567
|
+
* @remarks
|
|
568
|
+
* HTML Attribute: shape
|
|
569
|
+
*/
|
|
570
|
+
shape?: ButtonShape | undefined;
|
|
571
|
+
/**
|
|
572
|
+
* The size the button should have.
|
|
573
|
+
*
|
|
574
|
+
* @public
|
|
575
|
+
* @remarks
|
|
576
|
+
* HTML Attribute: size
|
|
577
|
+
*/
|
|
578
|
+
size?: ButtonSize;
|
|
579
|
+
/**
|
|
580
|
+
* The button has an icon only, no text content
|
|
581
|
+
*
|
|
582
|
+
* @public
|
|
583
|
+
* @remarks
|
|
584
|
+
* HTML Attribute: icon-only
|
|
585
|
+
*/
|
|
586
|
+
iconOnly: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* The button is disabled but focusable
|
|
589
|
+
*
|
|
590
|
+
* @public
|
|
591
|
+
* @remarks
|
|
592
|
+
* HTML Attribute: disabled-focusable
|
|
593
|
+
*/
|
|
594
|
+
disabledFocusable?: boolean;
|
|
595
|
+
protected disabledFocusableChanged(prev: boolean, next: boolean): void;
|
|
596
|
+
/**
|
|
597
|
+
* Prevents disabledFocusable click events
|
|
598
|
+
*/
|
|
599
|
+
private handleDisabledFocusableClick;
|
|
600
|
+
connectedCallback(): void;
|
|
601
|
+
disconnectedCallback(): void;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* ButtonAppearance constants
|
|
606
|
+
* @public
|
|
607
|
+
*/
|
|
608
|
+
export declare const ButtonAppearance: {
|
|
609
|
+
readonly primary: "primary";
|
|
610
|
+
readonly outline: "outline";
|
|
611
|
+
readonly subtle: "subtle";
|
|
612
|
+
readonly secondary: "secondary";
|
|
613
|
+
readonly transparent: "transparent";
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* A Button can be secondary, primary, outline, subtle, transparent
|
|
618
|
+
* @public
|
|
619
|
+
*/
|
|
620
|
+
export declare type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* The Fluent Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
624
|
+
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
625
|
+
*
|
|
626
|
+
* @public
|
|
627
|
+
* @remarks
|
|
628
|
+
* HTML Element: \<fluent-button\>
|
|
629
|
+
*/
|
|
630
|
+
export declare const ButtonDefinition: FASTElementDefinition<typeof Button>;
|
|
631
|
+
|
|
632
|
+
export { ButtonOptions }
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* A Button can be square, circular or rounded.
|
|
636
|
+
* @public
|
|
637
|
+
*/
|
|
638
|
+
export declare const ButtonShape: {
|
|
639
|
+
readonly circular: "circular";
|
|
640
|
+
readonly rounded: "rounded";
|
|
641
|
+
readonly square: "square";
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* A Button can be square, circular or rounded
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
export declare type ButtonShape = ValuesOf<typeof ButtonShape>;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* A Button can be a size of small, medium or large.
|
|
652
|
+
* @public
|
|
653
|
+
*/
|
|
654
|
+
export declare const ButtonSize: {
|
|
655
|
+
readonly small: "small";
|
|
656
|
+
readonly medium: "medium";
|
|
657
|
+
readonly large: "large";
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* A Button can be on of several preset sizes.
|
|
662
|
+
* @public
|
|
663
|
+
*/
|
|
664
|
+
export declare type ButtonSize = ValuesOf<typeof ButtonSize>;
|
|
665
|
+
|
|
666
|
+
export declare const ButtonStyles: ElementStyles;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* The template for the Button component.
|
|
670
|
+
* @public
|
|
671
|
+
*/
|
|
672
|
+
export declare const ButtonTemplate: ElementViewTemplate<Button>;
|
|
673
|
+
|
|
546
674
|
export declare const colorBackgroundOverlay: CSSDesignToken<string>;
|
|
547
675
|
|
|
548
676
|
export declare const colorBrandBackground: CSSDesignToken<string>;
|
|
@@ -1660,7 +1788,7 @@ export declare const ProgressBarShape: {
|
|
|
1660
1788
|
*/
|
|
1661
1789
|
export declare type ProgressBarShape = ValuesOf<typeof ProgressBarShape>;
|
|
1662
1790
|
|
|
1663
|
-
/**
|
|
1791
|
+
/** ProgressBar styles
|
|
1664
1792
|
* @public
|
|
1665
1793
|
*/
|
|
1666
1794
|
export declare const ProgressBarStyles: ElementStyles;
|
|
@@ -1728,6 +1856,63 @@ export declare const shadow8: CSSDesignToken<string>;
|
|
|
1728
1856
|
|
|
1729
1857
|
export declare const shadow8Brand: CSSDesignToken<string>;
|
|
1730
1858
|
|
|
1859
|
+
/**
|
|
1860
|
+
* The base class used for constructing a fluent-slider custom element
|
|
1861
|
+
* @public
|
|
1862
|
+
*/
|
|
1863
|
+
export declare class Slider extends FASTSlider {
|
|
1864
|
+
/**
|
|
1865
|
+
* The size of the slider
|
|
1866
|
+
* @public
|
|
1867
|
+
* @remarks
|
|
1868
|
+
* HTML Attribute: size
|
|
1869
|
+
*/
|
|
1870
|
+
size?: SliderSize;
|
|
1871
|
+
handleChange(source: any, propertyName: string): void;
|
|
1872
|
+
connectedCallback(): void;
|
|
1873
|
+
disconnectedCallback(): void;
|
|
1874
|
+
private stepStyles?;
|
|
1875
|
+
/**
|
|
1876
|
+
* Handles changes to step styling based on the step value
|
|
1877
|
+
* NOTE: This function is not a changed callback, stepStyles is not observable
|
|
1878
|
+
*/
|
|
1879
|
+
private handleStepStyles;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* The Fluent Slider Element.
|
|
1884
|
+
*
|
|
1885
|
+
*
|
|
1886
|
+
* @public
|
|
1887
|
+
* @remarks
|
|
1888
|
+
* HTML Element: \<fluent-slider\>
|
|
1889
|
+
*/
|
|
1890
|
+
export declare const SliderDefinition: FASTElementDefinition<typeof Slider>;
|
|
1891
|
+
|
|
1892
|
+
export { SliderOrientation }
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* SliderSize Constants
|
|
1896
|
+
* @public
|
|
1897
|
+
*/
|
|
1898
|
+
export declare const SliderSize: {
|
|
1899
|
+
readonly small: "small";
|
|
1900
|
+
readonly medium: "medium";
|
|
1901
|
+
};
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Applies bar height to the slider rail and diameter to the slider thumbs
|
|
1905
|
+
* @public
|
|
1906
|
+
*/
|
|
1907
|
+
export declare type SliderSize = ValuesOf<typeof SliderSize>;
|
|
1908
|
+
|
|
1909
|
+
/** Text styles
|
|
1910
|
+
* @public
|
|
1911
|
+
*/
|
|
1912
|
+
export declare const SliderStyles: ElementStyles;
|
|
1913
|
+
|
|
1914
|
+
export declare const SliderTemplate: ElementViewTemplate<FASTSlider>;
|
|
1915
|
+
|
|
1731
1916
|
export declare const spacingHorizontalL: CSSDesignToken<string>;
|
|
1732
1917
|
|
|
1733
1918
|
export declare const spacingHorizontalM: CSSDesignToken<string>;
|