@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
@@ -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,12 +12,15 @@ 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';
17
19
  import { FASTProgress } from '@microsoft/fast-foundation';
18
20
  import { FASTProgressRing } from '@microsoft/fast-foundation';
21
+ import { FASTSlider } from '@microsoft/fast-foundation';
19
22
  import { FASTSwitch } from '@microsoft/fast-foundation';
23
+ import { SliderOrientation } from '@microsoft/fast-foundation';
20
24
  import { StartEnd } from '@microsoft/fast-foundation';
21
25
  import { StartEndOptions } from '@microsoft/fast-foundation';
22
26
  import { StaticallyComposableHTML } from '@microsoft/fast-foundation';
@@ -330,6 +334,64 @@ export const borderRadiusSmall: CSSDesignToken<string>;
330
334
  // @public (undocumented)
331
335
  export const borderRadiusXLarge: CSSDesignToken<string>;
332
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
+
333
395
  // @public (undocumented)
334
396
  export const colorBackgroundOverlay: CSSDesignToken<string>;
335
397
 
@@ -1603,6 +1665,37 @@ export const shadow8: CSSDesignToken<string>;
1603
1665
  // @public (undocumented)
1604
1666
  export const shadow8Brand: CSSDesignToken<string>;
1605
1667
 
1668
+ // @public
1669
+ export class Slider extends FASTSlider {
1670
+ // (undocumented)
1671
+ connectedCallback(): void;
1672
+ // (undocumented)
1673
+ disconnectedCallback(): void;
1674
+ // (undocumented)
1675
+ handleChange(source: any, propertyName: string): void;
1676
+ size?: SliderSize;
1677
+ }
1678
+
1679
+ // @public
1680
+ export const SliderDefinition: FASTElementDefinition<typeof Slider>;
1681
+
1682
+ export { SliderOrientation }
1683
+
1684
+ // @public
1685
+ export const SliderSize: {
1686
+ readonly small: "small";
1687
+ readonly medium: "medium";
1688
+ };
1689
+
1690
+ // @public
1691
+ export type SliderSize = ValuesOf<typeof SliderSize>;
1692
+
1693
+ // @public
1694
+ export const SliderStyles: ElementStyles;
1695
+
1696
+ // @public (undocumented)
1697
+ export const SliderTemplate: ElementViewTemplate<FASTSlider>;
1698
+
1606
1699
  // @public (undocumented)
1607
1700
  export const spacingHorizontalL: CSSDesignToken<string>;
1608
1701
 
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.11",
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"
@@ -60,13 +64,17 @@
60
64
  "types": "./dist/esm/progress-bar/define.d.ts",
61
65
  "default": "./dist/esm/progress-bar/define.js"
62
66
  },
63
- "./switch": {
64
- "types": "./dist/esm/switch/define.d.ts",
65
- "default": "./dist/esm/switch/define.js"
67
+ "./slider": {
68
+ "types": "./dist/esm/slider/define.d.ts",
69
+ "default": "./dist/esm/slider/define.js"
66
70
  },
67
71
  "./spinner": {
68
72
  "types": "./dist/esm/spinner/define.d.ts",
69
73
  "default": "./dist/esm/spinner/define.js"
74
+ },
75
+ "./switch": {
76
+ "types": "./dist/esm/switch/define.d.ts",
77
+ "default": "./dist/esm/switch/define.js"
70
78
  }
71
79
  },
72
80
  "scripts": {
@@ -125,8 +133,8 @@
125
133
  "typescript": "4.7.4"
126
134
  },
127
135
  "dependencies": {
128
- "@microsoft/fast-element": "^2.0.0-beta.22",
129
- "@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",
130
138
  "@microsoft/fast-web-utilities": "^6.0.0",
131
139
  "@fluentui/tokens": "1.0.0-alpha.2",
132
140
  "tslib": "^2.1.0"