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

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 (98) hide show
  1. package/CHANGELOG.json +43 -1
  2. package/CHANGELOG.md +22 -2
  3. package/dist/dts/avatar/avatar.d.ts +97 -0
  4. package/dist/dts/avatar/avatar.definition.d.ts +9 -0
  5. package/dist/dts/avatar/avatar.options.d.ts +142 -0
  6. package/dist/dts/avatar/avatar.styles.d.ts +4 -0
  7. package/dist/dts/avatar/avatar.template.d.ts +8 -0
  8. package/dist/dts/avatar/define.d.ts +1 -0
  9. package/dist/dts/avatar/index.d.ts +5 -0
  10. package/dist/dts/divider/define.d.ts +1 -0
  11. package/dist/dts/divider/divider.d.ts +31 -0
  12. package/dist/dts/divider/divider.definition.d.ts +9 -0
  13. package/dist/dts/divider/divider.options.d.ts +40 -0
  14. package/dist/dts/divider/divider.styles.d.ts +4 -0
  15. package/dist/dts/divider/divider.template.d.ts +7 -0
  16. package/dist/dts/divider/index.d.ts +5 -0
  17. package/dist/dts/image/define.d.ts +1 -0
  18. package/dist/dts/image/image.d.ts +48 -0
  19. package/dist/dts/image/image.definition.d.ts +9 -0
  20. package/dist/dts/image/image.options.d.ts +27 -0
  21. package/dist/dts/image/image.styles.d.ts +5 -0
  22. package/dist/dts/image/image.template.d.ts +7 -0
  23. package/dist/dts/image/index.d.ts +5 -0
  24. package/dist/dts/index.d.ts +4 -0
  25. package/dist/dts/switch/define.d.ts +1 -0
  26. package/dist/dts/switch/index.d.ts +5 -0
  27. package/dist/dts/switch/switch.d.ts +13 -0
  28. package/dist/dts/switch/switch.definition.d.ts +9 -0
  29. package/dist/dts/switch/switch.options.d.ts +15 -0
  30. package/dist/dts/switch/switch.styles.d.ts +1 -0
  31. package/dist/dts/switch/switch.template.d.ts +3 -0
  32. package/dist/dts/utils/get-initials.d.ts +18 -0
  33. package/dist/esm/avatar/avatar.definition.js +17 -0
  34. package/dist/esm/avatar/avatar.definition.js.map +1 -0
  35. package/dist/esm/avatar/avatar.js +92 -0
  36. package/dist/esm/avatar/avatar.js.map +1 -0
  37. package/dist/esm/avatar/avatar.options.js +87 -0
  38. package/dist/esm/avatar/avatar.options.js.map +1 -0
  39. package/dist/esm/avatar/avatar.styles.js +476 -0
  40. package/dist/esm/avatar/avatar.styles.js.map +1 -0
  41. package/dist/esm/avatar/avatar.template.js +28 -0
  42. package/dist/esm/avatar/avatar.template.js.map +1 -0
  43. package/dist/esm/avatar/define.js +4 -0
  44. package/dist/esm/avatar/define.js.map +1 -0
  45. package/dist/esm/avatar/index.js +6 -0
  46. package/dist/esm/avatar/index.js.map +1 -0
  47. package/dist/esm/divider/define.js +4 -0
  48. package/dist/esm/divider/define.js.map +1 -0
  49. package/dist/esm/divider/divider.definition.js +17 -0
  50. package/dist/esm/divider/divider.definition.js.map +1 -0
  51. package/dist/esm/divider/divider.js +21 -0
  52. package/dist/esm/divider/divider.js.map +1 -0
  53. package/dist/esm/divider/divider.options.js +31 -0
  54. package/dist/esm/divider/divider.options.js.map +1 -0
  55. package/dist/esm/divider/divider.styles.js +111 -0
  56. package/dist/esm/divider/divider.styles.js.map +1 -0
  57. package/dist/esm/divider/divider.template.js +7 -0
  58. package/dist/esm/divider/divider.template.js.map +1 -0
  59. package/dist/esm/divider/index.js +6 -0
  60. package/dist/esm/divider/index.js.map +1 -0
  61. package/dist/esm/image/define.js +4 -0
  62. package/dist/esm/image/define.js.map +1 -0
  63. package/dist/esm/image/image.definition.js +17 -0
  64. package/dist/esm/image/image.definition.js.map +1 -0
  65. package/dist/esm/image/image.js +24 -0
  66. package/dist/esm/image/image.js.map +1 -0
  67. package/dist/esm/image/image.options.js +21 -0
  68. package/dist/esm/image/image.options.js.map +1 -0
  69. package/dist/esm/image/image.styles.js +52 -0
  70. package/dist/esm/image/image.styles.js.map +1 -0
  71. package/dist/esm/image/image.template.js +7 -0
  72. package/dist/esm/image/image.template.js.map +1 -0
  73. package/dist/esm/image/index.js +6 -0
  74. package/dist/esm/image/index.js.map +1 -0
  75. package/dist/esm/index.js +4 -0
  76. package/dist/esm/index.js.map +1 -1
  77. package/dist/esm/switch/define.js +4 -0
  78. package/dist/esm/switch/define.js.map +1 -0
  79. package/dist/esm/switch/index.js +6 -0
  80. package/dist/esm/switch/index.js.map +1 -0
  81. package/dist/esm/switch/switch.definition.js +17 -0
  82. package/dist/esm/switch/switch.definition.js.map +1 -0
  83. package/dist/esm/switch/switch.js +9 -0
  84. package/dist/esm/switch/switch.js.map +1 -0
  85. package/dist/esm/switch/switch.options.js +10 -0
  86. package/dist/esm/switch/switch.options.js.map +1 -0
  87. package/dist/esm/switch/switch.styles.js +114 -0
  88. package/dist/esm/switch/switch.styles.js.map +1 -0
  89. package/dist/esm/switch/switch.template.js +5 -0
  90. package/dist/esm/switch/switch.template.js.map +1 -0
  91. package/dist/esm/utils/get-initials.js +83 -0
  92. package/dist/esm/utils/get-initials.js.map +1 -0
  93. package/dist/fluent-web-components.api.json +3517 -1757
  94. package/dist/web-components.d.ts +496 -0
  95. package/dist/web-components.js +1095 -29
  96. package/dist/web-components.min.js +123 -115
  97. package/docs/api-report.md +262 -0
  98. package/package.json +17 -1
@@ -5,14 +5,18 @@
5
5
  ```ts
6
6
 
7
7
  import { CSSDesignToken } from '@microsoft/fast-foundation';
8
+ import { DividerOrientation } from '@microsoft/fast-foundation';
9
+ import { DividerRole } from '@microsoft/fast-foundation';
8
10
  import { ElementStyles } from '@microsoft/fast-element';
9
11
  import { ElementViewTemplate } from '@microsoft/fast-element';
10
12
  import { FASTAccordion } from '@microsoft/fast-foundation';
11
13
  import { FASTAccordionItem } from '@microsoft/fast-foundation';
14
+ import { FASTDivider } from '@microsoft/fast-foundation';
12
15
  import { FASTElement } from '@microsoft/fast-element';
13
16
  import { FASTElementDefinition } from '@microsoft/fast-element';
14
17
  import { FASTProgress } from '@microsoft/fast-foundation';
15
18
  import { FASTProgressRing } from '@microsoft/fast-foundation';
19
+ import { FASTSwitch } from '@microsoft/fast-foundation';
16
20
  import { StartEnd } from '@microsoft/fast-foundation';
17
21
  import { StartEndOptions } from '@microsoft/fast-foundation';
18
22
  import { StaticallyComposableHTML } from '@microsoft/fast-foundation';
@@ -77,6 +81,158 @@ export const accordionStyles: ElementStyles;
77
81
  // @public (undocumented)
78
82
  export const accordionTemplate: ElementViewTemplate<Accordion>;
79
83
 
84
+ // @public
85
+ export class Avatar extends FASTElement {
86
+ active?: AvatarActive | undefined;
87
+ appearance?: AvatarAppearance | undefined;
88
+ color?: AvatarColor;
89
+ colorId?: AvatarNamedColor | undefined;
90
+ static colors: ("anchor" | "dark-red" | "cranberry" | "red" | "pumpkin" | "peach" | "marigold" | "gold" | "brass" | "brown" | "forest" | "seafoam" | "dark-green" | "light-teal" | "teal" | "steel" | "blue" | "royal-blue" | "cornflower" | "navy" | "lavender" | "purple" | "grape" | "lilac" | "pink" | "magenta" | "plum" | "beige" | "mink" | "platinum")[];
91
+ // @internal
92
+ generateColor(): AvatarColor | void;
93
+ // @internal
94
+ generateInitials(): string | void;
95
+ initials?: string | undefined;
96
+ name?: string | undefined;
97
+ shape?: AvatarShape | undefined;
98
+ size?: AvatarSize | undefined;
99
+ }
100
+
101
+ // @public
102
+ export const AvatarActive: {
103
+ readonly active: "active";
104
+ readonly inactive: "inactive";
105
+ };
106
+
107
+ // @public
108
+ export type AvatarActive = ValuesOf<typeof AvatarActive>;
109
+
110
+ // @public
111
+ export const AvatarAppearance: {
112
+ readonly ring: "ring";
113
+ readonly shadow: "shadow";
114
+ readonly ringShadow: "ring-shadow";
115
+ };
116
+
117
+ // @public
118
+ export type AvatarAppearance = ValuesOf<typeof AvatarAppearance>;
119
+
120
+ // @public
121
+ export const AvatarColor: {
122
+ readonly darkRed: "dark-red";
123
+ readonly cranberry: "cranberry";
124
+ readonly red: "red";
125
+ readonly pumpkin: "pumpkin";
126
+ readonly peach: "peach";
127
+ readonly marigold: "marigold";
128
+ readonly gold: "gold";
129
+ readonly brass: "brass";
130
+ readonly brown: "brown";
131
+ readonly forest: "forest";
132
+ readonly seafoam: "seafoam";
133
+ readonly darkGreen: "dark-green";
134
+ readonly lightTeal: "light-teal";
135
+ readonly teal: "teal";
136
+ readonly steel: "steel";
137
+ readonly blue: "blue";
138
+ readonly royalBlue: "royal-blue";
139
+ readonly cornflower: "cornflower";
140
+ readonly navy: "navy";
141
+ readonly lavender: "lavender";
142
+ readonly purple: "purple";
143
+ readonly grape: "grape";
144
+ readonly lilac: "lilac";
145
+ readonly pink: "pink";
146
+ readonly magenta: "magenta";
147
+ readonly plum: "plum";
148
+ readonly beige: "beige";
149
+ readonly mink: "mink";
150
+ readonly platinum: "platinum";
151
+ readonly anchor: "anchor";
152
+ readonly neutral: "neutral";
153
+ readonly brand: "brand";
154
+ readonly colorful: "colorful";
155
+ };
156
+
157
+ // @public
158
+ export type AvatarColor = ValuesOf<typeof AvatarColor>;
159
+
160
+ // @public
161
+ export const AvatarDefinition: FASTElementDefinition<typeof Avatar>;
162
+
163
+ // @public
164
+ export const AvatarNamedColor: {
165
+ readonly darkRed: "dark-red";
166
+ readonly cranberry: "cranberry";
167
+ readonly red: "red";
168
+ readonly pumpkin: "pumpkin";
169
+ readonly peach: "peach";
170
+ readonly marigold: "marigold";
171
+ readonly gold: "gold";
172
+ readonly brass: "brass";
173
+ readonly brown: "brown";
174
+ readonly forest: "forest";
175
+ readonly seafoam: "seafoam";
176
+ readonly darkGreen: "dark-green";
177
+ readonly lightTeal: "light-teal";
178
+ readonly teal: "teal";
179
+ readonly steel: "steel";
180
+ readonly blue: "blue";
181
+ readonly royalBlue: "royal-blue";
182
+ readonly cornflower: "cornflower";
183
+ readonly navy: "navy";
184
+ readonly lavender: "lavender";
185
+ readonly purple: "purple";
186
+ readonly grape: "grape";
187
+ readonly lilac: "lilac";
188
+ readonly pink: "pink";
189
+ readonly magenta: "magenta";
190
+ readonly plum: "plum";
191
+ readonly beige: "beige";
192
+ readonly mink: "mink";
193
+ readonly platinum: "platinum";
194
+ readonly anchor: "anchor";
195
+ };
196
+
197
+ // @public
198
+ export type AvatarNamedColor = ValuesOf<typeof AvatarNamedColor>;
199
+
200
+ // @public
201
+ export const AvatarShape: {
202
+ readonly circular: "circular";
203
+ readonly square: "square";
204
+ };
205
+
206
+ // @public
207
+ export type AvatarShape = ValuesOf<typeof AvatarShape>;
208
+
209
+ // @public
210
+ export const AvatarSize: {
211
+ readonly _16: 16;
212
+ readonly _20: 20;
213
+ readonly _24: 24;
214
+ readonly _28: 28;
215
+ readonly _32: 32;
216
+ readonly _36: 36;
217
+ readonly _40: 40;
218
+ readonly _48: 48;
219
+ readonly _56: 56;
220
+ readonly _64: 64;
221
+ readonly _72: 72;
222
+ readonly _96: 96;
223
+ readonly _120: 120;
224
+ readonly _128: 128;
225
+ };
226
+
227
+ // @public
228
+ export type AvatarSize = ValuesOf<typeof AvatarSize>;
229
+
230
+ // @public
231
+ export const AvatarStyles: ElementStyles;
232
+
233
+ // @public (undocumented)
234
+ export const AvatarTemplate: ElementViewTemplate<Avatar>;
235
+
80
236
  // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "Badge" because one of its declarations is marked as @internal
81
237
  //
82
238
  // @public
@@ -1161,6 +1317,50 @@ export const curveEasyEaseMax: CSSDesignToken<string>;
1161
1317
  // @public (undocumented)
1162
1318
  export const curveLinear: CSSDesignToken<string>;
1163
1319
 
1320
+ // @public
1321
+ export const definition: FASTElementDefinition<typeof Switch>;
1322
+
1323
+ // @public
1324
+ export class Divider extends FASTDivider {
1325
+ alignContent?: DividerAlignContent;
1326
+ appearance?: DividerAppearance;
1327
+ inset?: boolean;
1328
+ }
1329
+
1330
+ // @public
1331
+ export const DividerAlignContent: {
1332
+ readonly center: "center";
1333
+ readonly start: "start";
1334
+ readonly end: "end";
1335
+ };
1336
+
1337
+ // @public
1338
+ export type DividerAlignContent = ValuesOf<typeof DividerAlignContent>;
1339
+
1340
+ // @public
1341
+ export const DividerAppearance: {
1342
+ readonly strong: "strong";
1343
+ readonly brand: "brand";
1344
+ readonly subtle: "subtle";
1345
+ readonly default: "default";
1346
+ };
1347
+
1348
+ // @public
1349
+ export type DividerAppearance = ValuesOf<typeof DividerAppearance>;
1350
+
1351
+ // @public
1352
+ export const DividerDefinition: FASTElementDefinition<typeof Divider>;
1353
+
1354
+ export { DividerOrientation }
1355
+
1356
+ export { DividerRole }
1357
+
1358
+ // @public
1359
+ export const DividerStyles: ElementStyles;
1360
+
1361
+ // @public
1362
+ export const DividerTemplate: ElementViewTemplate<Divider>;
1363
+
1164
1364
  // @public (undocumented)
1165
1365
  export const durationFast: CSSDesignToken<string>;
1166
1366
 
@@ -1233,6 +1433,47 @@ export const fontWeightRegular: CSSDesignToken<string>;
1233
1433
  // @public (undocumented)
1234
1434
  export const fontWeightSemibold: CSSDesignToken<string>;
1235
1435
 
1436
+ // @public
1437
+ class Image_2 extends FASTElement {
1438
+ block?: boolean;
1439
+ bordered?: boolean;
1440
+ fit?: ImageFit;
1441
+ shadow?: boolean;
1442
+ shape?: ImageShape;
1443
+ }
1444
+ export { Image_2 as Image }
1445
+
1446
+ // @public
1447
+ export const ImageDefinition: FASTElementDefinition<typeof Image_2>;
1448
+
1449
+ // @public
1450
+ export const ImageFit: {
1451
+ readonly none: "none";
1452
+ readonly center: "center";
1453
+ readonly contain: "contain";
1454
+ readonly cover: "cover";
1455
+ readonly default: "default";
1456
+ };
1457
+
1458
+ // @public
1459
+ export type ImageFit = ValuesOf<typeof ImageFit>;
1460
+
1461
+ // @public
1462
+ export const ImageShape: {
1463
+ readonly circular: "circular";
1464
+ readonly rounded: "rounded";
1465
+ readonly square: "square";
1466
+ };
1467
+
1468
+ // @public (undocumented)
1469
+ export type ImageShape = ValuesOf<typeof ImageShape>;
1470
+
1471
+ // @public
1472
+ export const ImageStyles: ElementStyles;
1473
+
1474
+ // @public
1475
+ export const ImageTemplate: ElementViewTemplate<Image_2>;
1476
+
1236
1477
  // @public (undocumented)
1237
1478
  export const lineHeightBase100: CSSDesignToken<string>;
1238
1479
 
@@ -1463,6 +1704,27 @@ export const strokeWidthThickest: CSSDesignToken<string>;
1463
1704
  // @public (undocumented)
1464
1705
  export const strokeWidthThin: CSSDesignToken<string>;
1465
1706
 
1707
+ // @public (undocumented)
1708
+ export class Switch extends FASTSwitch {
1709
+ labelPosition: SwitchLabelPosition | undefined;
1710
+ }
1711
+
1712
+ // @public
1713
+ export const SwitchLabelPosition: {
1714
+ readonly above: "above";
1715
+ readonly after: "after";
1716
+ readonly before: "before";
1717
+ };
1718
+
1719
+ // @public
1720
+ export type SwitchLabelPosition = ValuesOf<typeof SwitchLabelPosition>;
1721
+
1722
+ // @public (undocumented)
1723
+ export const switchStyles: ElementStyles;
1724
+
1725
+ // @public (undocumented)
1726
+ export const switchTemplate: ElementViewTemplate<Switch>;
1727
+
1466
1728
  // @public
1467
1729
  class Text_2 extends FASTElement {
1468
1730
  align: TextAlign;
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.5",
5
+ "version": "3.0.0-alpha.7",
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
+ "./avatar": {
36
+ "types": "./dist/esm/avatar/define.d.ts",
37
+ "default": "./dist/esm/avatar/define.js"
38
+ },
35
39
  "./badge": {
36
40
  "types": "./dist/esm/badge/define.d.ts",
37
41
  "default": "./dist/esm/badge/define.js"
@@ -40,6 +44,14 @@
40
44
  "types": "./dist/esm/counter-badge/define.d.ts",
41
45
  "default": "./dist/esm/counter-badge/define.js"
42
46
  },
47
+ "./divider": {
48
+ "types": "./dist/esm/divider/define.d.ts",
49
+ "default": "./dist/esm/divider/define.js"
50
+ },
51
+ "./image": {
52
+ "types": "./dist/esm/image/define.d.ts",
53
+ "default": "./dist/esm/image/define.js"
54
+ },
43
55
  "./text": {
44
56
  "types": "./dist/esm/text/define.d.ts",
45
57
  "default": "./dist/esm/text/define.js"
@@ -48,6 +60,10 @@
48
60
  "types": "./dist/esm/progress-bar/define.d.ts",
49
61
  "default": "./dist/esm/progress-bar/define.js"
50
62
  },
63
+ "./switch": {
64
+ "types": "./dist/esm/switch/define.d.ts",
65
+ "default": "./dist/esm/switch/define.js"
66
+ },
51
67
  "./spinner": {
52
68
  "types": "./dist/esm/spinner/define.d.ts",
53
69
  "default": "./dist/esm/spinner/define.js"