@fluentui/web-components 3.0.0-alpha.12 → 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.
@@ -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,6 +6,7 @@ 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';
@@ -545,6 +547,130 @@ export declare const borderRadiusSmall: CSSDesignToken<string>;
545
547
 
546
548
  export declare const borderRadiusXLarge: CSSDesignToken<string>;
547
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
+
548
674
  export declare const colorBackgroundOverlay: CSSDesignToken<string>;
549
675
 
550
676
  export declare const colorBrandBackground: CSSDesignToken<string>;