@fluentui/web-components 3.0.0-alpha.4 → 3.0.0-alpha.5

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 (50) hide show
  1. package/CHANGELOG.json +46 -1
  2. package/CHANGELOG.md +11 -2
  3. package/dist/dts/accordion/accordion.d.ts +7 -0
  4. package/dist/dts/accordion/accordion.definition.d.ts +11 -0
  5. package/dist/dts/accordion/accordion.styles.d.ts +1 -0
  6. package/dist/dts/accordion/accordion.template.d.ts +3 -0
  7. package/dist/dts/accordion/define.d.ts +1 -0
  8. package/dist/dts/accordion/index.d.ts +4 -0
  9. package/dist/dts/accordion-item/accordion-item.d.ts +33 -0
  10. package/dist/dts/accordion-item/accordion-item.definition.d.ts +11 -0
  11. package/dist/dts/accordion-item/accordion-item.options.d.ts +27 -0
  12. package/dist/dts/accordion-item/accordion-item.styles.d.ts +1 -0
  13. package/dist/dts/accordion-item/accordion-item.template.d.ts +7 -0
  14. package/dist/dts/accordion-item/define.d.ts +1 -0
  15. package/dist/dts/accordion-item/index.d.ts +5 -0
  16. package/dist/dts/index.d.ts +2 -0
  17. package/dist/esm/accordion/accordion.definition.js +19 -0
  18. package/dist/esm/accordion/accordion.definition.js.map +1 -0
  19. package/dist/esm/accordion/accordion.js +8 -0
  20. package/dist/esm/accordion/accordion.js.map +1 -0
  21. package/dist/esm/accordion/accordion.styles.js +11 -0
  22. package/dist/esm/accordion/accordion.styles.js.map +1 -0
  23. package/dist/esm/accordion/accordion.template.js +3 -0
  24. package/dist/esm/accordion/accordion.template.js.map +1 -0
  25. package/dist/esm/accordion/define.js +4 -0
  26. package/dist/esm/accordion/define.js.map +1 -0
  27. package/dist/esm/accordion/index.js +5 -0
  28. package/dist/esm/accordion/index.js.map +1 -0
  29. package/dist/esm/accordion-item/accordion-item.definition.js +19 -0
  30. package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -0
  31. package/dist/esm/accordion-item/accordion-item.js +29 -0
  32. package/dist/esm/accordion-item/accordion-item.js.map +1 -0
  33. package/dist/esm/accordion-item/accordion-item.options.js +17 -0
  34. package/dist/esm/accordion-item/accordion-item.options.js.map +1 -0
  35. package/dist/esm/accordion-item/accordion-item.styles.js +197 -0
  36. package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -0
  37. package/dist/esm/accordion-item/accordion-item.template.js +37 -0
  38. package/dist/esm/accordion-item/accordion-item.template.js.map +1 -0
  39. package/dist/esm/accordion-item/define.js +4 -0
  40. package/dist/esm/accordion-item/define.js.map +1 -0
  41. package/dist/esm/accordion-item/index.js +6 -0
  42. package/dist/esm/accordion-item/index.js.map +1 -0
  43. package/dist/esm/index.js +2 -0
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/fluent-web-components.api.json +357 -0
  46. package/dist/web-components.d.ts +105 -0
  47. package/dist/web-components.js +1077 -474
  48. package/dist/web-components.min.js +119 -113
  49. package/docs/api-report.md +60 -0
  50. package/package.json +9 -1
package/dist/esm/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './accordion/index.js';
2
+ export * from './accordion-item/index.js';
1
3
  export * from './badge/index.js';
2
4
  export * from './counter-badge/index.js';
3
5
  export * from './progress-bar/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kBAAkB,CAAC"}
@@ -172,6 +172,363 @@
172
172
  "name": "",
173
173
  "preserveMemberOrder": false,
174
174
  "members": [
175
+ {
176
+ "kind": "Class",
177
+ "canonicalReference": "@fluentui/web-components!Accordion:class",
178
+ "docComment": "/**\n * The base class used for constructing a fluent-accordion custom element\n *\n * @public\n */\n",
179
+ "excerptTokens": [
180
+ {
181
+ "kind": "Content",
182
+ "text": "export declare class Accordion extends "
183
+ },
184
+ {
185
+ "kind": "Reference",
186
+ "text": "FASTAccordion",
187
+ "canonicalReference": "@microsoft/fast-foundation!FASTAccordion:class"
188
+ },
189
+ {
190
+ "kind": "Content",
191
+ "text": " "
192
+ }
193
+ ],
194
+ "releaseTag": "Public",
195
+ "name": "Accordion",
196
+ "preserveMemberOrder": false,
197
+ "members": [],
198
+ "extendsTokenRange": {
199
+ "startIndex": 1,
200
+ "endIndex": 2
201
+ },
202
+ "implementsTokenRanges": []
203
+ },
204
+ {
205
+ "kind": "Variable",
206
+ "canonicalReference": "@fluentui/web-components!accordionDefinition:var",
207
+ "docComment": "/**\n * The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion}, {@link @microsoft/fast-foundation#accordionTemplate}\n *\n * @remarks\n *\n * HTML Element: \\<fluent-accordion\\>\n *\n * @public\n */\n",
208
+ "excerptTokens": [
209
+ {
210
+ "kind": "Content",
211
+ "text": "definition: "
212
+ },
213
+ {
214
+ "kind": "Content",
215
+ "text": "import(\"@microsoft/fast-element\")."
216
+ },
217
+ {
218
+ "kind": "Reference",
219
+ "text": "FASTElementDefinition",
220
+ "canonicalReference": "@microsoft/fast-element!FASTElementDefinition:class"
221
+ },
222
+ {
223
+ "kind": "Content",
224
+ "text": "<typeof "
225
+ },
226
+ {
227
+ "kind": "Reference",
228
+ "text": "Accordion",
229
+ "canonicalReference": "@fluentui/web-components!Accordion:class"
230
+ },
231
+ {
232
+ "kind": "Content",
233
+ "text": ">"
234
+ }
235
+ ],
236
+ "isReadonly": true,
237
+ "releaseTag": "Public",
238
+ "name": "accordionDefinition",
239
+ "variableTypeTokenRange": {
240
+ "startIndex": 1,
241
+ "endIndex": 6
242
+ }
243
+ },
244
+ {
245
+ "kind": "Variable",
246
+ "canonicalReference": "@fluentui/web-components!accordionItemDefinition:var",
247
+ "docComment": "/**\n * The Fluent AccordionItem Element. Implements {@link @microsoft/fast-foundation#AccordionItem}, {@link @microsoft/fast-foundation#accordionItemTemplate}\n *\n * @remarks\n *\n * HTML Element: \\<fluent-accordion-item\\>\n *\n * @public\n */\n",
248
+ "excerptTokens": [
249
+ {
250
+ "kind": "Content",
251
+ "text": "definition: "
252
+ },
253
+ {
254
+ "kind": "Content",
255
+ "text": "import(\"@microsoft/fast-element\")."
256
+ },
257
+ {
258
+ "kind": "Reference",
259
+ "text": "FASTElementDefinition",
260
+ "canonicalReference": "@microsoft/fast-element!FASTElementDefinition:class"
261
+ },
262
+ {
263
+ "kind": "Content",
264
+ "text": "<typeof "
265
+ },
266
+ {
267
+ "kind": "Reference",
268
+ "text": "AccordionItem",
269
+ "canonicalReference": "@fluentui/web-components!AccordionItem:class"
270
+ },
271
+ {
272
+ "kind": "Content",
273
+ "text": ">"
274
+ }
275
+ ],
276
+ "isReadonly": true,
277
+ "releaseTag": "Public",
278
+ "name": "accordionItemDefinition",
279
+ "variableTypeTokenRange": {
280
+ "startIndex": 1,
281
+ "endIndex": 6
282
+ }
283
+ },
284
+ {
285
+ "kind": "TypeAlias",
286
+ "canonicalReference": "@fluentui/web-components!AccordionItemExpandIconPosition:type",
287
+ "docComment": "/**\n * Applies expand/collapse icon position\n *\n * @public\n */\n",
288
+ "excerptTokens": [
289
+ {
290
+ "kind": "Content",
291
+ "text": "export declare type AccordionItemExpandIconPosition = "
292
+ },
293
+ {
294
+ "kind": "Reference",
295
+ "text": "ValuesOf",
296
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
297
+ },
298
+ {
299
+ "kind": "Content",
300
+ "text": "<typeof "
301
+ },
302
+ {
303
+ "kind": "Reference",
304
+ "text": "AccordionItemExpandIconPosition",
305
+ "canonicalReference": "@fluentui/web-components!AccordionItemExpandIconPosition:var"
306
+ },
307
+ {
308
+ "kind": "Content",
309
+ "text": ">"
310
+ },
311
+ {
312
+ "kind": "Content",
313
+ "text": ";"
314
+ }
315
+ ],
316
+ "releaseTag": "Public",
317
+ "name": "AccordionItemExpandIconPosition",
318
+ "typeTokenRange": {
319
+ "startIndex": 1,
320
+ "endIndex": 5
321
+ }
322
+ },
323
+ {
324
+ "kind": "Variable",
325
+ "canonicalReference": "@fluentui/web-components!AccordionItemExpandIconPosition:var",
326
+ "docComment": "/**\n * An Accordion Item expand/collapse icon can appear at the start or end of the accordion\n */\n",
327
+ "excerptTokens": [
328
+ {
329
+ "kind": "Content",
330
+ "text": "AccordionItemExpandIconPosition: "
331
+ },
332
+ {
333
+ "kind": "Content",
334
+ "text": "{\n readonly start: \"start\";\n readonly end: \"end\";\n}"
335
+ }
336
+ ],
337
+ "isReadonly": true,
338
+ "releaseTag": "Public",
339
+ "name": "AccordionItemExpandIconPosition",
340
+ "variableTypeTokenRange": {
341
+ "startIndex": 1,
342
+ "endIndex": 2
343
+ }
344
+ },
345
+ {
346
+ "kind": "TypeAlias",
347
+ "canonicalReference": "@fluentui/web-components!AccordionItemSize:type",
348
+ "docComment": "/**\n * Applies font size to accordion header\n *\n * @public\n */\n",
349
+ "excerptTokens": [
350
+ {
351
+ "kind": "Content",
352
+ "text": "export declare type AccordionItemSize = "
353
+ },
354
+ {
355
+ "kind": "Reference",
356
+ "text": "ValuesOf",
357
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
358
+ },
359
+ {
360
+ "kind": "Content",
361
+ "text": "<typeof "
362
+ },
363
+ {
364
+ "kind": "Reference",
365
+ "text": "AccordionItemSize",
366
+ "canonicalReference": "@fluentui/web-components!AccordionItemSize:var"
367
+ },
368
+ {
369
+ "kind": "Content",
370
+ "text": ">"
371
+ },
372
+ {
373
+ "kind": "Content",
374
+ "text": ";"
375
+ }
376
+ ],
377
+ "releaseTag": "Public",
378
+ "name": "AccordionItemSize",
379
+ "typeTokenRange": {
380
+ "startIndex": 1,
381
+ "endIndex": 5
382
+ }
383
+ },
384
+ {
385
+ "kind": "Variable",
386
+ "canonicalReference": "@fluentui/web-components!AccordionItemSize:var",
387
+ "docComment": "/**\n * An Accordion Item header font size can be small, medium, large, and extra-large\n */\n",
388
+ "excerptTokens": [
389
+ {
390
+ "kind": "Content",
391
+ "text": "AccordionItemSize: "
392
+ },
393
+ {
394
+ "kind": "Content",
395
+ "text": "{\n readonly small: \"small\";\n readonly medium: \"medium\";\n readonly large: \"large\";\n readonly extraLarge: \"extra-large\";\n}"
396
+ }
397
+ ],
398
+ "isReadonly": true,
399
+ "releaseTag": "Public",
400
+ "name": "AccordionItemSize",
401
+ "variableTypeTokenRange": {
402
+ "startIndex": 1,
403
+ "endIndex": 2
404
+ }
405
+ },
406
+ {
407
+ "kind": "Variable",
408
+ "canonicalReference": "@fluentui/web-components!accordionItemStyles:var",
409
+ "docComment": "",
410
+ "excerptTokens": [
411
+ {
412
+ "kind": "Content",
413
+ "text": "styles: "
414
+ },
415
+ {
416
+ "kind": "Content",
417
+ "text": "import(\"@microsoft/fast-element\")."
418
+ },
419
+ {
420
+ "kind": "Reference",
421
+ "text": "ElementStyles",
422
+ "canonicalReference": "@microsoft/fast-element!ElementStyles:class"
423
+ }
424
+ ],
425
+ "isReadonly": true,
426
+ "releaseTag": "Public",
427
+ "name": "accordionItemStyles",
428
+ "variableTypeTokenRange": {
429
+ "startIndex": 1,
430
+ "endIndex": 3
431
+ }
432
+ },
433
+ {
434
+ "kind": "Variable",
435
+ "canonicalReference": "@fluentui/web-components!accordionItemTemplate:var",
436
+ "docComment": "/**\n * The template for the fluent-accordion component.\n *\n * @public\n */\n",
437
+ "excerptTokens": [
438
+ {
439
+ "kind": "Content",
440
+ "text": "template: "
441
+ },
442
+ {
443
+ "kind": "Reference",
444
+ "text": "ElementViewTemplate",
445
+ "canonicalReference": "@microsoft/fast-element!ElementViewTemplate:interface"
446
+ },
447
+ {
448
+ "kind": "Content",
449
+ "text": "<"
450
+ },
451
+ {
452
+ "kind": "Reference",
453
+ "text": "AccordionItem",
454
+ "canonicalReference": "@fluentui/web-components!AccordionItem:class"
455
+ },
456
+ {
457
+ "kind": "Content",
458
+ "text": ">"
459
+ }
460
+ ],
461
+ "isReadonly": true,
462
+ "releaseTag": "Public",
463
+ "name": "accordionItemTemplate",
464
+ "variableTypeTokenRange": {
465
+ "startIndex": 1,
466
+ "endIndex": 5
467
+ }
468
+ },
469
+ {
470
+ "kind": "Variable",
471
+ "canonicalReference": "@fluentui/web-components!accordionStyles:var",
472
+ "docComment": "",
473
+ "excerptTokens": [
474
+ {
475
+ "kind": "Content",
476
+ "text": "styles: "
477
+ },
478
+ {
479
+ "kind": "Content",
480
+ "text": "import(\"@microsoft/fast-element\")."
481
+ },
482
+ {
483
+ "kind": "Reference",
484
+ "text": "ElementStyles",
485
+ "canonicalReference": "@microsoft/fast-element!ElementStyles:class"
486
+ }
487
+ ],
488
+ "isReadonly": true,
489
+ "releaseTag": "Public",
490
+ "name": "accordionStyles",
491
+ "variableTypeTokenRange": {
492
+ "startIndex": 1,
493
+ "endIndex": 3
494
+ }
495
+ },
496
+ {
497
+ "kind": "Variable",
498
+ "canonicalReference": "@fluentui/web-components!accordionTemplate:var",
499
+ "docComment": "",
500
+ "excerptTokens": [
501
+ {
502
+ "kind": "Content",
503
+ "text": "template: "
504
+ },
505
+ {
506
+ "kind": "Reference",
507
+ "text": "ElementViewTemplate",
508
+ "canonicalReference": "@microsoft/fast-element!ElementViewTemplate:interface"
509
+ },
510
+ {
511
+ "kind": "Content",
512
+ "text": "<"
513
+ },
514
+ {
515
+ "kind": "Reference",
516
+ "text": "Accordion",
517
+ "canonicalReference": "@fluentui/web-components!Accordion:class"
518
+ },
519
+ {
520
+ "kind": "Content",
521
+ "text": ">"
522
+ }
523
+ ],
524
+ "isReadonly": true,
525
+ "releaseTag": "Public",
526
+ "name": "accordionTemplate",
527
+ "variableTypeTokenRange": {
528
+ "startIndex": 1,
529
+ "endIndex": 5
530
+ }
531
+ },
175
532
  {
176
533
  "kind": "Class",
177
534
  "canonicalReference": "@fluentui/web-components!Badge:class",
@@ -1,6 +1,8 @@
1
1
  import { CSSDesignToken } from '@microsoft/fast-foundation';
2
2
  import { ElementStyles } from '@microsoft/fast-element';
3
3
  import { ElementViewTemplate } from '@microsoft/fast-element';
4
+ import { FASTAccordion } from '@microsoft/fast-foundation';
5
+ import { FASTAccordionItem } from '@microsoft/fast-foundation';
4
6
  import { FASTElement } from '@microsoft/fast-element';
5
7
  import { FASTElementDefinition } from '@microsoft/fast-element';
6
8
  import { FASTProgress } from '@microsoft/fast-foundation';
@@ -11,6 +13,109 @@ import { StaticallyComposableHTML } from '@microsoft/fast-foundation';
11
13
  import type { Theme } from '@fluentui/tokens';
12
14
  import { ValuesOf } from '@microsoft/fast-foundation';
13
15
 
16
+ /**
17
+ * The base class used for constructing a fluent-accordion custom element
18
+ * @public
19
+ */
20
+ export declare class Accordion extends FASTAccordion {
21
+ }
22
+
23
+ /**
24
+ * The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion },
25
+ * {@link @microsoft/fast-foundation#accordionTemplate}
26
+ *
27
+ *
28
+ * @public
29
+ * @remarks
30
+ * HTML Element: \<fluent-accordion\>
31
+ */
32
+ export declare const accordionDefinition: FASTElementDefinition<typeof Accordion>;
33
+
34
+ /**
35
+ * @internal
36
+ */
37
+ export declare class AccordionItem extends FASTAccordionItem {
38
+ /**
39
+ * Defines accordion header font size.
40
+ *
41
+ * @public
42
+ * @default 'medium'
43
+ * @remarks
44
+ * HTML Attribute: size
45
+ */
46
+ size: AccordionItemSize;
47
+ /**
48
+ * Sets the width of the focus state.
49
+ *
50
+ * @public
51
+ * @remarks
52
+ * HTML Attribute: block
53
+ */
54
+ block: boolean;
55
+ /**
56
+ * Sets expand and collapsed icon position.
57
+ *
58
+ * @public
59
+ * @default 'start'
60
+ * @remarks
61
+ * HTML Attribute: expandIconPosition
62
+ */
63
+ expandIconPosition: AccordionItemExpandIconPosition;
64
+ }
65
+
66
+ /**
67
+ * The Fluent AccordionItem Element. Implements {@link @microsoft/fast-foundation#AccordionItem },
68
+ * {@link @microsoft/fast-foundation#accordionItemTemplate}
69
+ *
70
+ *
71
+ * @public
72
+ * @remarks
73
+ * HTML Element: \<fluent-accordion-item\>
74
+ */
75
+ export declare const accordionItemDefinition: FASTElementDefinition<typeof AccordionItem>;
76
+
77
+ /**
78
+ * An Accordion Item expand/collapse icon can appear at the start or end of the accordion
79
+ */
80
+ export declare const AccordionItemExpandIconPosition: {
81
+ readonly start: "start";
82
+ readonly end: "end";
83
+ };
84
+
85
+ /**
86
+ * Applies expand/collapse icon position
87
+ * @public
88
+ */
89
+ export declare type AccordionItemExpandIconPosition = ValuesOf<typeof AccordionItemExpandIconPosition>;
90
+
91
+ /**
92
+ * An Accordion Item header font size can be small, medium, large, and extra-large
93
+ */
94
+ export declare const AccordionItemSize: {
95
+ readonly small: "small";
96
+ readonly medium: "medium";
97
+ readonly large: "large";
98
+ readonly extraLarge: "extra-large";
99
+ };
100
+
101
+ /**
102
+ * Applies font size to accordion header
103
+ * @public
104
+ */
105
+ export declare type AccordionItemSize = ValuesOf<typeof AccordionItemSize>;
106
+
107
+ export declare const accordionItemStyles: ElementStyles;
108
+
109
+ /**
110
+ * The template for the fluent-accordion component.
111
+ * @public
112
+ */
113
+ export declare const accordionItemTemplate: ElementViewTemplate<AccordionItem>;
114
+
115
+ export declare const accordionStyles: ElementStyles;
116
+
117
+ export declare const accordionTemplate: ElementViewTemplate<Accordion>;
118
+
14
119
  /**
15
120
  * The base class used for constructing a fluent-badge custom element
16
121
  * @public