@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.
Files changed (55) hide show
  1. package/CHANGELOG.json +37 -1
  2. package/CHANGELOG.md +21 -2
  3. package/dist/dts/button/button.d.ts +55 -0
  4. package/dist/dts/button/button.definition.d.ts +10 -0
  5. package/dist/dts/button/button.options.d.ts +46 -0
  6. package/dist/dts/button/button.styles.d.ts +1 -0
  7. package/dist/dts/button/button.template.d.ts +7 -0
  8. package/dist/dts/button/define.d.ts +1 -0
  9. package/dist/dts/button/index.d.ts +5 -0
  10. package/dist/dts/index.d.ts +2 -0
  11. package/dist/dts/progress-bar/progress-bar.styles.d.ts +1 -1
  12. package/dist/dts/slider/define.d.ts +1 -0
  13. package/dist/dts/slider/index.d.ts +5 -0
  14. package/dist/dts/slider/slider.d.ts +24 -0
  15. package/dist/dts/slider/slider.definition.d.ts +10 -0
  16. package/dist/dts/slider/slider.options.d.ts +15 -0
  17. package/dist/dts/slider/slider.styles.d.ts +4 -0
  18. package/dist/dts/slider/slider.template.d.ts +3 -0
  19. package/dist/esm/button/button.definition.js +21 -0
  20. package/dist/esm/button/button.definition.js.map +1 -0
  21. package/dist/esm/button/button.js +72 -0
  22. package/dist/esm/button/button.js.map +1 -0
  23. package/dist/esm/button/button.options.js +30 -0
  24. package/dist/esm/button/button.options.js.map +1 -0
  25. package/dist/esm/button/button.styles.js +253 -0
  26. package/dist/esm/button/button.styles.js.map +1 -0
  27. package/dist/esm/button/button.template.js +7 -0
  28. package/dist/esm/button/button.template.js.map +1 -0
  29. package/dist/esm/button/define.js +4 -0
  30. package/dist/esm/button/define.js.map +1 -0
  31. package/dist/esm/button/index.js +6 -0
  32. package/dist/esm/button/index.js.map +1 -0
  33. package/dist/esm/index.js +2 -0
  34. package/dist/esm/index.js.map +1 -1
  35. package/dist/esm/progress-bar/progress-bar.styles.js +1 -1
  36. package/dist/esm/slider/define.js +4 -0
  37. package/dist/esm/slider/define.js.map +1 -0
  38. package/dist/esm/slider/index.js +6 -0
  39. package/dist/esm/slider/index.js.map +1 -0
  40. package/dist/esm/slider/slider.definition.js +18 -0
  41. package/dist/esm/slider/slider.definition.js.map +1 -0
  42. package/dist/esm/slider/slider.js +59 -0
  43. package/dist/esm/slider/slider.js.map +1 -0
  44. package/dist/esm/slider/slider.options.js +10 -0
  45. package/dist/esm/slider/slider.options.js.map +1 -0
  46. package/dist/esm/slider/slider.styles.js +186 -0
  47. package/dist/esm/slider/slider.styles.js.map +1 -0
  48. package/dist/esm/slider/slider.template.js +5 -0
  49. package/dist/esm/slider/slider.template.js.map +1 -0
  50. package/dist/fluent-web-components.api.json +1022 -80
  51. package/dist/web-components.d.ts +186 -1
  52. package/dist/web-components.js +939 -40
  53. package/dist/web-components.min.js +136 -128
  54. package/docs/api-report.md +93 -0
  55. package/package.json +14 -6
@@ -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
- /** Text styles
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>;