@fluentui/web-components 3.0.0-alpha.24 → 3.0.0-alpha.26

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 (41) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/dist/dts/checkbox/checkbox.d.ts +35 -0
  3. package/dist/dts/checkbox/checkbox.definition.d.ts +9 -0
  4. package/dist/dts/checkbox/checkbox.options.d.ts +28 -0
  5. package/dist/dts/checkbox/checkbox.styles.d.ts +5 -0
  6. package/dist/dts/checkbox/checkbox.template.d.ts +7 -0
  7. package/dist/dts/checkbox/define.d.ts +1 -0
  8. package/dist/dts/checkbox/index.d.ts +5 -0
  9. package/dist/dts/index.d.ts +1 -0
  10. package/dist/dts/theme/index.d.ts +1 -1
  11. package/dist/dts/theme/set-theme.d.ts +2 -0
  12. package/dist/esm/checkbox/checkbox.definition.js +17 -0
  13. package/dist/esm/checkbox/checkbox.definition.js.map +1 -0
  14. package/dist/esm/checkbox/checkbox.js +19 -0
  15. package/dist/esm/checkbox/checkbox.js.map +1 -0
  16. package/dist/esm/checkbox/checkbox.options.js +25 -0
  17. package/dist/esm/checkbox/checkbox.options.js.map +1 -0
  18. package/dist/esm/checkbox/checkbox.styles.js +164 -0
  19. package/dist/esm/checkbox/checkbox.styles.js.map +1 -0
  20. package/dist/esm/checkbox/checkbox.template.js +27 -0
  21. package/dist/esm/checkbox/checkbox.template.js.map +1 -0
  22. package/dist/esm/checkbox/define.js +4 -0
  23. package/dist/esm/checkbox/define.js.map +1 -0
  24. package/dist/esm/checkbox/index.js +6 -0
  25. package/dist/esm/checkbox/index.js.map +1 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/theme/index.js +1 -1
  29. package/dist/esm/theme/index.js.map +1 -1
  30. package/dist/esm/theme/set-theme.js +5 -0
  31. package/dist/esm/theme/set-theme.js.map +1 -1
  32. package/dist/esm/toggle-button/toggle-button.js +3 -0
  33. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  34. package/dist/fluent-web-components.api.json +446 -0
  35. package/dist/web-components.d.ts +91 -0
  36. package/dist/web-components.js +206 -35
  37. package/dist/web-components.min.js +167 -165
  38. package/docs/api-report.md +47 -0
  39. package/package.json +5 -1
  40. package/CHANGELOG.json +0 -3243
  41. package/dist/tsdoc-metadata.json +0 -11
@@ -15,6 +15,7 @@ import { FASTAccordion } from '@microsoft/fast-foundation';
15
15
  import { FASTAccordionItem } from '@microsoft/fast-foundation';
16
16
  import { FASTAnchor } from '@microsoft/fast-foundation';
17
17
  import { FASTButton } from '@microsoft/fast-foundation';
18
+ import { FASTCheckbox } from '@microsoft/fast-foundation';
18
19
  import { FASTDivider } from '@microsoft/fast-foundation';
19
20
  import { FASTElement } from '@microsoft/fast-element';
20
21
  import { FASTElementDefinition } from '@microsoft/fast-element';
@@ -464,6 +465,49 @@ export type ButtonSize = ValuesOf<typeof ButtonSize>;
464
465
  // @public
465
466
  export const ButtonTemplate: ElementViewTemplate<Button>;
466
467
 
468
+ // @public
469
+ export class Checkbox extends FASTCheckbox {
470
+ labelPosition?: CheckboxLabelPosition;
471
+ shape?: CheckboxShape;
472
+ size?: CheckboxSize;
473
+ }
474
+
475
+ // @public
476
+ export const CheckboxDefinition: FASTElementDefinition<typeof Checkbox>;
477
+
478
+ // @public
479
+ export const CheckboxLabelPosition: {
480
+ readonly before: "before";
481
+ readonly after: "after";
482
+ };
483
+
484
+ // @public (undocumented)
485
+ export type CheckboxLabelPosition = ValuesOf<typeof CheckboxLabelPosition>;
486
+
487
+ // @public
488
+ export const CheckboxShape: {
489
+ readonly circular: "circular";
490
+ readonly square: "square";
491
+ };
492
+
493
+ // @public (undocumented)
494
+ export type CheckboxShape = ValuesOf<typeof CheckboxShape>;
495
+
496
+ // @public
497
+ export const CheckboxSize: {
498
+ readonly medium: "medium";
499
+ readonly large: "large";
500
+ };
501
+
502
+ // @public (undocumented)
503
+ export type CheckboxSize = ValuesOf<typeof CheckboxSize>;
504
+
505
+ // @public
506
+ export const CheckboxStyles: ElementStyles;
507
+
508
+ // @public
509
+ export const CheckboxTemplate: ElementViewTemplate<Checkbox>;
510
+
467
511
  // @public (undocumented)
468
512
  export const colorBackgroundOverlay: CSSDesignToken<string>;
469
513
 
@@ -1873,6 +1917,9 @@ export const RadioTemplate: ElementViewTemplate<Radio>;
1873
1917
  // @public
1874
1918
  export const setTheme: (theme: Theme) => void;
1875
1919
 
1920
+ // @public (undocumented)
1921
+ export const setThemeFor: (element: FASTElement, theme: Theme) => void;
1922
+
1876
1923
  // @public (undocumented)
1877
1924
  export const shadow16: CSSDesignToken<string>;
1878
1925
 
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.24",
5
+ "version": "3.0.0-alpha.26",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"
@@ -48,6 +48,10 @@
48
48
  "types": "./dist/esm/button/define.d.ts",
49
49
  "default": "./dist/esm/button/define.js"
50
50
  },
51
+ "./checkbox": {
52
+ "types": "./dist/esm/checkbox/define.d.ts",
53
+ "default": "./dist/esm/checkbox/define.js"
54
+ },
51
55
  "./compound-button": {
52
56
  "types": "./dist/esm/compound-button/define.d.ts",
53
57
  "default": "./dist/esm/compound-button/define.js"