@fluentui/web-components 3.0.0-alpha.15 → 3.0.0-alpha.17

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 (76) hide show
  1. package/CHANGELOG.json +43 -1
  2. package/CHANGELOG.md +22 -2
  3. package/dist/dts/anchor-button/anchor-button.d.ts +64 -0
  4. package/dist/dts/anchor-button/anchor-button.definition.d.ts +10 -0
  5. package/dist/dts/anchor-button/anchor-button.options.d.ts +46 -0
  6. package/dist/dts/anchor-button/anchor-button.styles.d.ts +1 -0
  7. package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -0
  8. package/dist/dts/anchor-button/define.d.ts +1 -0
  9. package/dist/dts/anchor-button/index.d.ts +4 -0
  10. package/dist/dts/compound-button/compound-button.d.ts +7 -0
  11. package/dist/dts/compound-button/compound-button.definition.d.ts +10 -0
  12. package/dist/dts/compound-button/compound-button.options.d.ts +50 -0
  13. package/dist/dts/compound-button/compound-button.styles.d.ts +1 -0
  14. package/dist/dts/compound-button/compound-button.template.d.ts +13 -0
  15. package/dist/dts/compound-button/define.d.ts +1 -0
  16. package/dist/dts/compound-button/index.d.ts +5 -0
  17. package/dist/dts/index.d.ts +3 -0
  18. package/dist/dts/toggle-button/define.d.ts +1 -0
  19. package/dist/dts/toggle-button/index.d.ts +5 -0
  20. package/dist/dts/toggle-button/toggle-button.d.ts +48 -0
  21. package/dist/dts/toggle-button/toggle-button.definition.d.ts +10 -0
  22. package/dist/dts/toggle-button/toggle-button.options.d.ts +46 -0
  23. package/dist/dts/toggle-button/toggle-button.styles.d.ts +1 -0
  24. package/dist/dts/toggle-button/toggle-button.template.d.ts +7 -0
  25. package/dist/esm/anchor-button/anchor-button.definition.js +21 -0
  26. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -0
  27. package/dist/esm/anchor-button/anchor-button.js +93 -0
  28. package/dist/esm/anchor-button/anchor-button.js.map +1 -0
  29. package/dist/esm/anchor-button/anchor-button.options.js +17 -0
  30. package/dist/esm/anchor-button/anchor-button.options.js.map +1 -0
  31. package/dist/esm/anchor-button/anchor-button.styles.js +11 -0
  32. package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -0
  33. package/dist/esm/anchor-button/anchor-button.template.js +7 -0
  34. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -0
  35. package/dist/esm/anchor-button/define.js +4 -0
  36. package/dist/esm/anchor-button/define.js.map +1 -0
  37. package/dist/esm/anchor-button/index.js +5 -0
  38. package/dist/esm/anchor-button/index.js.map +1 -0
  39. package/dist/esm/button/button.styles.js +1 -0
  40. package/dist/esm/button/button.styles.js.map +1 -1
  41. package/dist/esm/compound-button/compound-button.definition.js +21 -0
  42. package/dist/esm/compound-button/compound-button.definition.js.map +1 -0
  43. package/dist/esm/compound-button/compound-button.js +8 -0
  44. package/dist/esm/compound-button/compound-button.js.map +1 -0
  45. package/dist/esm/compound-button/compound-button.options.js +17 -0
  46. package/dist/esm/compound-button/compound-button.options.js.map +1 -0
  47. package/dist/esm/compound-button/compound-button.styles.js +105 -0
  48. package/dist/esm/compound-button/compound-button.styles.js.map +1 -0
  49. package/dist/esm/compound-button/compound-button.template.js +60 -0
  50. package/dist/esm/compound-button/compound-button.template.js.map +1 -0
  51. package/dist/esm/compound-button/define.js +4 -0
  52. package/dist/esm/compound-button/define.js.map +1 -0
  53. package/dist/esm/compound-button/index.js +6 -0
  54. package/dist/esm/compound-button/index.js.map +1 -0
  55. package/dist/esm/index.js +3 -0
  56. package/dist/esm/index.js.map +1 -1
  57. package/dist/esm/toggle-button/define.js +4 -0
  58. package/dist/esm/toggle-button/define.js.map +1 -0
  59. package/dist/esm/toggle-button/index.js +6 -0
  60. package/dist/esm/toggle-button/index.js.map +1 -0
  61. package/dist/esm/toggle-button/toggle-button.definition.js +21 -0
  62. package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -0
  63. package/dist/esm/toggle-button/toggle-button.js +99 -0
  64. package/dist/esm/toggle-button/toggle-button.js.map +1 -0
  65. package/dist/esm/toggle-button/toggle-button.options.js +17 -0
  66. package/dist/esm/toggle-button/toggle-button.options.js.map +1 -0
  67. package/dist/esm/toggle-button/toggle-button.styles.js +83 -0
  68. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -0
  69. package/dist/esm/toggle-button/toggle-button.template.js +7 -0
  70. package/dist/esm/toggle-button/toggle-button.template.js.map +1 -0
  71. package/dist/fluent-web-components.api.json +3168 -1471
  72. package/dist/web-components.d.ts +330 -0
  73. package/dist/web-components.js +487 -116
  74. package/dist/web-components.min.js +158 -146
  75. package/docs/api-report.md +173 -0
  76. package/package.json +25 -1
@@ -4,6 +4,7 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ import { AnchorOptions as AnchorButtonOptions } from '@microsoft/fast-foundation';
7
8
  import { ButtonOptions } from '@microsoft/fast-foundation';
8
9
  import { CSSDesignToken } from '@microsoft/fast-foundation';
9
10
  import { DividerOrientation } from '@microsoft/fast-foundation';
@@ -12,6 +13,7 @@ import { ElementStyles } from '@microsoft/fast-element';
12
13
  import { ElementViewTemplate } from '@microsoft/fast-element';
13
14
  import { FASTAccordion } from '@microsoft/fast-foundation';
14
15
  import { FASTAccordionItem } from '@microsoft/fast-foundation';
16
+ import { FASTAnchor } from '@microsoft/fast-foundation';
15
17
  import { FASTButton } from '@microsoft/fast-foundation';
16
18
  import { FASTDivider } from '@microsoft/fast-foundation';
17
19
  import { FASTElement } from '@microsoft/fast-element';
@@ -89,6 +91,64 @@ export const accordionStyles: ElementStyles;
89
91
  // @public (undocumented)
90
92
  export const accordionTemplate: ElementViewTemplate<Accordion>;
91
93
 
94
+ // @public
95
+ export class AnchorButton extends FASTAnchor {
96
+ appearance?: AnchorButtonAppearance | undefined;
97
+ // (undocumented)
98
+ connectedCallback(): void;
99
+ disabled?: boolean;
100
+ // (undocumented)
101
+ protected disabledChanged(prev: boolean, next: boolean): void;
102
+ disabledFocusable?: boolean;
103
+ // (undocumented)
104
+ protected disabledFocusableChanged(prev: boolean, next: boolean): void;
105
+ // (undocumented)
106
+ disconnectedCallback(): void;
107
+ iconOnly: boolean;
108
+ shape?: AnchorButtonShape | undefined;
109
+ size?: AnchorButtonSize;
110
+ }
111
+
112
+ // @public
113
+ export const AnchorButtonAppearance: {
114
+ readonly primary: "primary";
115
+ readonly outline: "outline";
116
+ readonly subtle: "subtle";
117
+ readonly secondary: "secondary";
118
+ readonly transparent: "transparent";
119
+ };
120
+
121
+ // @public
122
+ export type AnchorButtonAppearance = ValuesOf<typeof AnchorButtonAppearance>;
123
+
124
+ // @public
125
+ export const AnchorButtonDefinition: FASTElementDefinition<typeof AnchorButton>;
126
+
127
+ export { AnchorButtonOptions }
128
+
129
+ // @public
130
+ export const AnchorButtonShape: {
131
+ readonly circular: "circular";
132
+ readonly rounded: "rounded";
133
+ readonly square: "square";
134
+ };
135
+
136
+ // @public
137
+ export type AnchorButtonShape = ValuesOf<typeof AnchorButtonShape>;
138
+
139
+ // @public
140
+ export const AnchorButtonSize: {
141
+ readonly small: "small";
142
+ readonly medium: "medium";
143
+ readonly large: "large";
144
+ };
145
+
146
+ // @public
147
+ export type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
148
+
149
+ // @public
150
+ export const AnchorButtonTemplate: ElementViewTemplate<AnchorButton>;
151
+
92
152
  // @public
93
153
  export class Avatar extends FASTElement {
94
154
  active?: AvatarActive | undefined;
@@ -369,7 +429,9 @@ export type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
369
429
  export const ButtonDefinition: FASTElementDefinition<typeof Button>;
370
430
 
371
431
  export { ButtonOptions }
432
+ export { ButtonOptions as CompoundButtonOptions }
372
433
  export { ButtonOptions as MenuButtonOptions }
434
+ export { ButtonOptions as ToggleButtonOptions }
373
435
 
374
436
  // @public
375
437
  export const ButtonShape: {
@@ -1285,6 +1347,51 @@ export const colorTransparentStrokeDisabled: CSSDesignToken<string>;
1285
1347
  // @public (undocumented)
1286
1348
  export const colorTransparentStrokeInteractive: CSSDesignToken<string>;
1287
1349
 
1350
+ // @public
1351
+ export class CompoundButton extends Button {
1352
+ }
1353
+
1354
+ // @public
1355
+ export const CompoundButtonAppearance: {
1356
+ readonly primary: "primary";
1357
+ readonly outline: "outline";
1358
+ readonly subtle: "subtle";
1359
+ readonly secondary: "secondary";
1360
+ readonly transparent: "transparent";
1361
+ };
1362
+
1363
+ // @public
1364
+ export type CompoundButtonAppearance = ValuesOf<typeof CompoundButtonAppearance>;
1365
+
1366
+ // @public
1367
+ export const CompoundButtonDefinition: FASTElementDefinition<typeof CompoundButton>;
1368
+
1369
+ // @public
1370
+ export const CompoundButtonShape: {
1371
+ readonly circular: "circular";
1372
+ readonly rounded: "rounded";
1373
+ readonly square: "square";
1374
+ };
1375
+
1376
+ // @public
1377
+ export type CompoundButtonShape = ValuesOf<typeof CompoundButtonShape>;
1378
+
1379
+ // @public
1380
+ export const CompoundButtonSize: {
1381
+ readonly small: "small";
1382
+ readonly medium: "medium";
1383
+ readonly large: "large";
1384
+ };
1385
+
1386
+ // @public
1387
+ export type CompoundButtonSize = ValuesOf<typeof CompoundButtonSize>;
1388
+
1389
+ // @public (undocumented)
1390
+ export const CompoundButtonStyles: ElementStyles;
1391
+
1392
+ // @public
1393
+ export const CompoundButtonTemplate: ElementViewTemplate<CompoundButton>;
1394
+
1288
1395
  // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "CounterBadge" because one of its declarations is marked as @internal
1289
1396
  //
1290
1397
  // @public
@@ -2045,6 +2152,72 @@ export const TextWeight: {
2045
2152
  // @public
2046
2153
  export type TextWeight = ValuesOf<typeof TextWeight>;
2047
2154
 
2155
+ // @public
2156
+ export class ToggleButton extends Button {
2157
+ constructor();
2158
+ checked: boolean;
2159
+ checkedAttribute: boolean;
2160
+ // (undocumented)
2161
+ protected checkedAttributeChanged(): void;
2162
+ // (undocumented)
2163
+ protected checkedChanged(prev: boolean | undefined, next: boolean): void;
2164
+ // (undocumented)
2165
+ connectedCallback(): void;
2166
+ currentChecked: boolean;
2167
+ // (undocumented)
2168
+ currentCheckedChanged(prev: boolean | undefined, next: boolean): void;
2169
+ // (undocumented)
2170
+ defaultChecked: boolean;
2171
+ // (undocumented)
2172
+ protected defaultCheckedChanged(): void;
2173
+ protected dirtyChecked: boolean;
2174
+ // (undocumented)
2175
+ disconnectedCallback(): void;
2176
+ // @internal (undocumented)
2177
+ protected handleToggleButtonClick: (e: MouseEvent) => void;
2178
+ }
2179
+
2180
+ // @public
2181
+ export const ToggleButtonAppearance: {
2182
+ readonly primary: "primary";
2183
+ readonly outline: "outline";
2184
+ readonly subtle: "subtle";
2185
+ readonly secondary: "secondary";
2186
+ readonly transparent: "transparent";
2187
+ };
2188
+
2189
+ // @public
2190
+ export type ToggleButtonAppearance = ValuesOf<typeof ToggleButtonAppearance>;
2191
+
2192
+ // @public
2193
+ export const ToggleButtonDefinition: FASTElementDefinition<typeof ToggleButton>;
2194
+
2195
+ // @public
2196
+ export const ToggleButtonShape: {
2197
+ readonly circular: "circular";
2198
+ readonly rounded: "rounded";
2199
+ readonly square: "square";
2200
+ };
2201
+
2202
+ // @public
2203
+ export type ToggleButtonShape = ValuesOf<typeof ToggleButtonShape>;
2204
+
2205
+ // @public
2206
+ export const ToggleButtonSize: {
2207
+ readonly small: "small";
2208
+ readonly medium: "medium";
2209
+ readonly large: "large";
2210
+ };
2211
+
2212
+ // @public
2213
+ export type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
2214
+
2215
+ // @public (undocumented)
2216
+ export const ToggleButtonStyles: ElementStyles;
2217
+
2218
+ // @public
2219
+ export const ToggleButtonTemplate: ElementViewTemplate<ToggleButton>;
2220
+
2048
2221
  // (No @packageDocumentation comment for this package)
2049
2222
 
2050
2223
  ```
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.15",
5
+ "version": "3.0.0-alpha.17",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"
@@ -32,6 +32,10 @@
32
32
  "types": "./dist/esm/accordion-item/define.d.ts",
33
33
  "default": "./dist/esm/accordion-item/define.js"
34
34
  },
35
+ "./anchor-button": {
36
+ "types": "./dist/esm/anchor-button/define.d.ts",
37
+ "default": "./dist/esm/anchor-button/define.js"
38
+ },
35
39
  "./avatar": {
36
40
  "types": "./dist/esm/avatar/define.d.ts",
37
41
  "default": "./dist/esm/avatar/define.js"
@@ -44,6 +48,10 @@
44
48
  "types": "./dist/esm/button/define.d.ts",
45
49
  "default": "./dist/esm/button/define.js"
46
50
  },
51
+ "./compound-button": {
52
+ "types": "./dist/esm/compound-button/define.d.ts",
53
+ "default": "./dist/esm/compound-button/define.js"
54
+ },
47
55
  "./counter-badge": {
48
56
  "types": "./dist/esm/counter-badge/define.d.ts",
49
57
  "default": "./dist/esm/counter-badge/define.js"
@@ -80,9 +88,25 @@
80
88
  "types": "./dist/esm/switch/define.d.ts",
81
89
  "default": "./dist/esm/switch/define.js"
82
90
  },
91
+ "./tabs": {
92
+ "types": "./dist/esm/tabs/define.d.ts",
93
+ "default": "./dist/esm/tabs/define.js"
94
+ },
95
+ "./tab": {
96
+ "types": "./dist/esm/tab/define.d.ts",
97
+ "default": "./dist/esm/tab/define.js"
98
+ },
99
+ "./tab-panel": {
100
+ "types": "./dist/esm/tab-panel/define.d.ts",
101
+ "default": "./dist/esm/tab-panel/define.js"
102
+ },
83
103
  "./text": {
84
104
  "types": "./dist/esm/text/define.d.ts",
85
105
  "default": "./dist/esm/text/define.js"
106
+ },
107
+ "./toggle-button": {
108
+ "types": "./dist/esm/toggle-button/define.d.ts",
109
+ "default": "./dist/esm/toggle-button/define.js"
86
110
  }
87
111
  },
88
112
  "scripts": {