@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.
@@ -4,6 +4,7 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ import { ButtonOptions } from '@microsoft/fast-foundation';
7
8
  import { CSSDesignToken } from '@microsoft/fast-foundation';
8
9
  import { DividerOrientation } from '@microsoft/fast-foundation';
9
10
  import { DividerRole } from '@microsoft/fast-foundation';
@@ -11,6 +12,7 @@ import { ElementStyles } from '@microsoft/fast-element';
11
12
  import { ElementViewTemplate } from '@microsoft/fast-element';
12
13
  import { FASTAccordion } from '@microsoft/fast-foundation';
13
14
  import { FASTAccordionItem } from '@microsoft/fast-foundation';
15
+ import { FASTButton } from '@microsoft/fast-foundation';
14
16
  import { FASTDivider } from '@microsoft/fast-foundation';
15
17
  import { FASTElement } from '@microsoft/fast-element';
16
18
  import { FASTElementDefinition } from '@microsoft/fast-element';
@@ -332,6 +334,64 @@ export const borderRadiusSmall: CSSDesignToken<string>;
332
334
  // @public (undocumented)
333
335
  export const borderRadiusXLarge: CSSDesignToken<string>;
334
336
 
337
+ // @public
338
+ export class Button extends FASTButton {
339
+ appearance?: ButtonAppearance | undefined;
340
+ // (undocumented)
341
+ connectedCallback(): void;
342
+ disabledFocusable?: boolean;
343
+ // (undocumented)
344
+ protected disabledFocusableChanged(prev: boolean, next: boolean): void;
345
+ // (undocumented)
346
+ disconnectedCallback(): void;
347
+ iconOnly: boolean;
348
+ shape?: ButtonShape | undefined;
349
+ size?: ButtonSize;
350
+ }
351
+
352
+ // @public
353
+ export const ButtonAppearance: {
354
+ readonly primary: "primary";
355
+ readonly outline: "outline";
356
+ readonly subtle: "subtle";
357
+ readonly secondary: "secondary";
358
+ readonly transparent: "transparent";
359
+ };
360
+
361
+ // @public
362
+ export type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
363
+
364
+ // @public
365
+ export const ButtonDefinition: FASTElementDefinition<typeof Button>;
366
+
367
+ export { ButtonOptions }
368
+
369
+ // @public
370
+ export const ButtonShape: {
371
+ readonly circular: "circular";
372
+ readonly rounded: "rounded";
373
+ readonly square: "square";
374
+ };
375
+
376
+ // @public
377
+ export type ButtonShape = ValuesOf<typeof ButtonShape>;
378
+
379
+ // @public
380
+ export const ButtonSize: {
381
+ readonly small: "small";
382
+ readonly medium: "medium";
383
+ readonly large: "large";
384
+ };
385
+
386
+ // @public
387
+ export type ButtonSize = ValuesOf<typeof ButtonSize>;
388
+
389
+ // @public (undocumented)
390
+ export const ButtonStyles: ElementStyles;
391
+
392
+ // @public
393
+ export const ButtonTemplate: ElementViewTemplate<Button>;
394
+
335
395
  // @public (undocumented)
336
396
  export const colorBackgroundOverlay: CSSDesignToken<string>;
337
397
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
4
  "sideEffects": false,
5
- "version": "3.0.0-alpha.12",
5
+ "version": "3.0.0-alpha.13",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"
@@ -40,6 +40,10 @@
40
40
  "types": "./dist/esm/badge/define.d.ts",
41
41
  "default": "./dist/esm/badge/define.js"
42
42
  },
43
+ "./button": {
44
+ "types": "./dist/esm/button/define.d.ts",
45
+ "default": "./dist/esm/button/define.js"
46
+ },
43
47
  "./counter-badge": {
44
48
  "types": "./dist/esm/counter-badge/define.d.ts",
45
49
  "default": "./dist/esm/counter-badge/define.js"
@@ -129,8 +133,8 @@
129
133
  "typescript": "4.7.4"
130
134
  },
131
135
  "dependencies": {
132
- "@microsoft/fast-element": "^2.0.0-beta.22",
133
- "@microsoft/fast-foundation": "^3.0.0-alpha.26",
136
+ "@microsoft/fast-element": "^2.0.0-beta.23",
137
+ "@microsoft/fast-foundation": "^3.0.0-alpha.27",
134
138
  "@microsoft/fast-web-utilities": "^6.0.0",
135
139
  "@fluentui/tokens": "1.0.0-alpha.2",
136
140
  "tslib": "^2.1.0"