@fluentui/web-components 3.0.0-alpha.6 → 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.
- package/CHANGELOG.json +28 -1
- package/CHANGELOG.md +13 -2
- package/dist/dts/avatar/avatar.d.ts +97 -0
- package/dist/dts/avatar/avatar.definition.d.ts +9 -0
- package/dist/dts/avatar/avatar.options.d.ts +142 -0
- package/dist/dts/avatar/avatar.styles.d.ts +4 -0
- package/dist/dts/avatar/avatar.template.d.ts +8 -0
- package/dist/dts/avatar/define.d.ts +1 -0
- package/dist/dts/avatar/index.d.ts +5 -0
- package/dist/dts/divider/define.d.ts +1 -0
- package/dist/dts/divider/divider.d.ts +31 -0
- package/dist/dts/divider/divider.definition.d.ts +9 -0
- package/dist/dts/divider/divider.options.d.ts +40 -0
- package/dist/dts/divider/divider.styles.d.ts +4 -0
- package/dist/dts/divider/divider.template.d.ts +7 -0
- package/dist/dts/divider/index.d.ts +5 -0
- package/dist/dts/image/define.d.ts +1 -0
- package/dist/dts/image/image.d.ts +48 -0
- package/dist/dts/image/image.definition.d.ts +9 -0
- package/dist/dts/image/image.options.d.ts +27 -0
- package/dist/dts/image/image.styles.d.ts +5 -0
- package/dist/dts/image/image.template.d.ts +7 -0
- package/dist/dts/image/index.d.ts +5 -0
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/utils/get-initials.d.ts +18 -0
- package/dist/esm/avatar/avatar.definition.js +17 -0
- package/dist/esm/avatar/avatar.definition.js.map +1 -0
- package/dist/esm/avatar/avatar.js +92 -0
- package/dist/esm/avatar/avatar.js.map +1 -0
- package/dist/esm/avatar/avatar.options.js +87 -0
- package/dist/esm/avatar/avatar.options.js.map +1 -0
- package/dist/esm/avatar/avatar.styles.js +476 -0
- package/dist/esm/avatar/avatar.styles.js.map +1 -0
- package/dist/esm/avatar/avatar.template.js +28 -0
- package/dist/esm/avatar/avatar.template.js.map +1 -0
- package/dist/esm/avatar/define.js +4 -0
- package/dist/esm/avatar/define.js.map +1 -0
- package/dist/esm/avatar/index.js +6 -0
- package/dist/esm/avatar/index.js.map +1 -0
- package/dist/esm/divider/define.js +4 -0
- package/dist/esm/divider/define.js.map +1 -0
- package/dist/esm/divider/divider.definition.js +17 -0
- package/dist/esm/divider/divider.definition.js.map +1 -0
- package/dist/esm/divider/divider.js +21 -0
- package/dist/esm/divider/divider.js.map +1 -0
- package/dist/esm/divider/divider.options.js +31 -0
- package/dist/esm/divider/divider.options.js.map +1 -0
- package/dist/esm/divider/divider.styles.js +111 -0
- package/dist/esm/divider/divider.styles.js.map +1 -0
- package/dist/esm/divider/divider.template.js +7 -0
- package/dist/esm/divider/divider.template.js.map +1 -0
- package/dist/esm/divider/index.js +6 -0
- package/dist/esm/divider/index.js.map +1 -0
- package/dist/esm/image/define.js +4 -0
- package/dist/esm/image/define.js.map +1 -0
- package/dist/esm/image/image.definition.js +17 -0
- package/dist/esm/image/image.definition.js.map +1 -0
- package/dist/esm/image/image.js +24 -0
- package/dist/esm/image/image.js.map +1 -0
- package/dist/esm/image/image.options.js +21 -0
- package/dist/esm/image/image.options.js.map +1 -0
- package/dist/esm/image/image.styles.js +52 -0
- package/dist/esm/image/image.styles.js.map +1 -0
- package/dist/esm/image/image.template.js +7 -0
- package/dist/esm/image/image.template.js.map +1 -0
- package/dist/esm/image/index.js +6 -0
- package/dist/esm/image/index.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/get-initials.js +83 -0
- package/dist/esm/utils/get-initials.js.map +1 -0
- package/dist/fluent-web-components.api.json +3379 -1847
- package/dist/web-components.d.ts +454 -0
- package/dist/web-components.js +494 -19
- package/dist/web-components.min.js +123 -118
- package/docs/api-report.md +237 -0
- package/package.json +13 -1
package/docs/api-report.md
CHANGED
|
@@ -5,10 +5,13 @@
|
|
|
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';
|
|
@@ -78,6 +81,158 @@ export const accordionStyles: ElementStyles;
|
|
|
78
81
|
// @public (undocumented)
|
|
79
82
|
export const accordionTemplate: ElementViewTemplate<Accordion>;
|
|
80
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
|
+
|
|
81
236
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "Badge" because one of its declarations is marked as @internal
|
|
82
237
|
//
|
|
83
238
|
// @public
|
|
@@ -1165,6 +1320,47 @@ export const curveLinear: CSSDesignToken<string>;
|
|
|
1165
1320
|
// @public
|
|
1166
1321
|
export const definition: FASTElementDefinition<typeof Switch>;
|
|
1167
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
|
+
|
|
1168
1364
|
// @public (undocumented)
|
|
1169
1365
|
export const durationFast: CSSDesignToken<string>;
|
|
1170
1366
|
|
|
@@ -1237,6 +1433,47 @@ export const fontWeightRegular: CSSDesignToken<string>;
|
|
|
1237
1433
|
// @public (undocumented)
|
|
1238
1434
|
export const fontWeightSemibold: CSSDesignToken<string>;
|
|
1239
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
|
+
|
|
1240
1477
|
// @public (undocumented)
|
|
1241
1478
|
export const lineHeightBase100: CSSDesignToken<string>;
|
|
1242
1479
|
|
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
|
+
"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"
|