@fluentui/web-components 3.0.0-alpha.6 → 3.0.0-alpha.8
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 +51 -1
- package/CHANGELOG.md +22 -2
- package/dist/dts/accordion-item/accordion-item.d.ts +2 -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/badge/badge.d.ts +2 -2
- package/dist/dts/counter-badge/counter-badge.d.ts +4 -4
- 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/progress-bar/progress-bar.d.ts +2 -2
- package/dist/dts/spinner/spinner.d.ts +2 -2
- package/dist/dts/text/text.d.ts +4 -4
- package/dist/dts/theme/design-tokens.d.ts +5 -0
- package/dist/dts/utils/get-initials.d.ts +18 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- 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/badge/badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
- 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/progress-bar/progress-bar.js +10 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +5 -0
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.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 +3550 -1863
- package/dist/web-components.d.ts +480 -16
- package/dist/web-components.js +516 -20
- package/dist/web-components.min.js +123 -118
- package/docs/api-report.md +268 -16
- package/package.json +13 -1
|
@@ -12,14 +12,14 @@ export declare class ProgressBar extends FASTProgress {
|
|
|
12
12
|
* @remarks
|
|
13
13
|
* HTML Attribute: thickness
|
|
14
14
|
*/
|
|
15
|
-
thickness
|
|
15
|
+
thickness?: ProgressBarThickness;
|
|
16
16
|
/**
|
|
17
17
|
* The shape of the progress bar
|
|
18
18
|
* @public
|
|
19
19
|
* @remarks
|
|
20
20
|
* HTML Attribute: shape
|
|
21
21
|
*/
|
|
22
|
-
shape
|
|
22
|
+
shape?: ProgressBarShape;
|
|
23
23
|
/**
|
|
24
24
|
* The validation state of the progress bar
|
|
25
25
|
* @public
|
|
@@ -13,7 +13,7 @@ export declare class Spinner extends FASTProgressRing {
|
|
|
13
13
|
* @remarks
|
|
14
14
|
* HTML Attribute: size
|
|
15
15
|
*/
|
|
16
|
-
size
|
|
16
|
+
size?: SpinnerSize;
|
|
17
17
|
/**
|
|
18
18
|
* The appearance of the spinner
|
|
19
19
|
* @public
|
|
@@ -21,5 +21,5 @@ export declare class Spinner extends FASTProgressRing {
|
|
|
21
21
|
* @remarks
|
|
22
22
|
* HTML Attribute: appearance
|
|
23
23
|
*/
|
|
24
|
-
appearance
|
|
24
|
+
appearance?: SpinnerAppearance;
|
|
25
25
|
}
|
package/dist/dts/text/text.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare class Text extends FASTElement {
|
|
|
63
63
|
* HTML Attribute: size
|
|
64
64
|
*
|
|
65
65
|
*/
|
|
66
|
-
size
|
|
66
|
+
size?: TextSize;
|
|
67
67
|
/**
|
|
68
68
|
* THe Text font
|
|
69
69
|
*
|
|
@@ -71,7 +71,7 @@ export declare class Text extends FASTElement {
|
|
|
71
71
|
* @remarks
|
|
72
72
|
* HTML Attribute: font
|
|
73
73
|
*/
|
|
74
|
-
font
|
|
74
|
+
font?: TextFont;
|
|
75
75
|
/**
|
|
76
76
|
* THe Text weight
|
|
77
77
|
*
|
|
@@ -79,7 +79,7 @@ export declare class Text extends FASTElement {
|
|
|
79
79
|
* @remarks
|
|
80
80
|
* HTML Attribute: weight
|
|
81
81
|
*/
|
|
82
|
-
weight
|
|
82
|
+
weight?: TextWeight;
|
|
83
83
|
/**
|
|
84
84
|
* THe Text align
|
|
85
85
|
*
|
|
@@ -87,5 +87,5 @@ export declare class Text extends FASTElement {
|
|
|
87
87
|
* @remarks
|
|
88
88
|
* HTML Attribute: align
|
|
89
89
|
*/
|
|
90
|
-
align
|
|
90
|
+
align?: TextAlign;
|
|
91
91
|
}
|
|
@@ -168,6 +168,8 @@ export declare const colorNeutralBackgroundDisabled: import("@microsoft/fast-fou
|
|
|
168
168
|
export declare const colorNeutralBackgroundInvertedDisabled: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
169
169
|
export declare const colorNeutralStencil1: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
170
170
|
export declare const colorNeutralStencil2: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
171
|
+
export declare const colorNeutralStencil1Alpha: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
172
|
+
export declare const colorNeutralStencil2Alpha: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
171
173
|
export declare const colorBackgroundOverlay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
172
174
|
export declare const colorScrollbarOverlay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
173
175
|
export declare const colorBrandBackground: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
@@ -365,6 +367,9 @@ export declare const colorPalettePlatinumBorderActive: import("@microsoft/fast-f
|
|
|
365
367
|
export declare const colorPaletteAnchorBackground2: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
366
368
|
export declare const colorPaletteAnchorForeground2: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
367
369
|
export declare const colorPaletteAnchorBorderActive: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
370
|
+
export declare const colorPaletteRedForegroundInverted: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
371
|
+
export declare const colorPaletteGreenForegroundInverted: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
372
|
+
export declare const colorPaletteYellowForegroundInverted: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
368
373
|
export declare const shadow2: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
369
374
|
export declare const shadow4: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
370
375
|
export declare const shadow8: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get (up to 2 characters) initials based on display name of the persona.
|
|
3
|
+
*
|
|
4
|
+
* @param displayName - The full name of the person or entity
|
|
5
|
+
* @param isRtl - Whether the display is in RTL
|
|
6
|
+
* @param options - Extra options to control the behavior of getInitials
|
|
7
|
+
*
|
|
8
|
+
* @returns The 1 or 2 character initials based on the name. Or an empty string if no initials
|
|
9
|
+
* could be derived from the name.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function getInitials(displayName: string | undefined | null, isRtl: boolean, options?: {
|
|
14
|
+
/** Should initials be generated from phone numbers (default false) */
|
|
15
|
+
allowPhoneInitials?: boolean;
|
|
16
|
+
/** Returns only the first initial */
|
|
17
|
+
firstInitialOnly?: boolean;
|
|
18
|
+
}): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IAApD;;QAYE;;;;;;WAMG;QAEI,UAAK,GAAY,KAAK,CAAC;IAYhC,CAAC;CAAA;AAtBC;IADC,IAAI;
|
|
1
|
+
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IAApD;;QAYE;;;;;;WAMG;QAEI,UAAK,GAAY,KAAK,CAAC;IAYhC,CAAC;CAAA;AAtBC;IADC,IAAI;2CAC2B;AAUhC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;4CACI;AAW9B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC;yDACgB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { Avatar } from './avatar.js';
|
|
3
|
+
import { styles } from './avatar.styles.js';
|
|
4
|
+
import { template } from './avatar.template.js';
|
|
5
|
+
/**
|
|
6
|
+
* The Fluent Avatar Element.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
* @remarks
|
|
10
|
+
* HTML Element: \<fluent-badge\>
|
|
11
|
+
*/
|
|
12
|
+
export const definition = Avatar.compose({
|
|
13
|
+
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
14
|
+
template,
|
|
15
|
+
styles,
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=avatar.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.definition.js","sourceRoot":"","sources":["../../../src/avatar/avatar.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;IACvC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,SAAS;IAC3C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr, FASTElement, nullableNumberConverter } from '@microsoft/fast-element';
|
|
3
|
+
import { getInitials } from '../utils/get-initials.js';
|
|
4
|
+
import { AvatarColor, AvatarNamedColor, } from './avatar.options.js';
|
|
5
|
+
/**
|
|
6
|
+
* The base class used for constructing a fluent-avatar custom element
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export class Avatar extends FASTElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The color when displaying either an icon or initials.
|
|
14
|
+
* * neutral (default): gray
|
|
15
|
+
* * brand: color from the brand palette
|
|
16
|
+
* * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or colorId if provided)
|
|
17
|
+
* * [AvatarNamedColor]: a specific color from the theme
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML Attribute: color
|
|
22
|
+
*/
|
|
23
|
+
this.color = 'neutral';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Sets the data-color attribute used for the visual presentation
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
generateColor() {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
if (!this.color) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
return this.color === AvatarColor.colorful
|
|
35
|
+
? Avatar.colors[getHashCode((_b = (_a = this.colorId) !== null && _a !== void 0 ? _a : this.name) !== null && _b !== void 0 ? _b : '') % Avatar.colors.length]
|
|
36
|
+
: this.color;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Generates and sets the initials for the template
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
generateInitials() {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
if (!this.name && !this.initials) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
// size can be undefined since we default it in CSS only
|
|
48
|
+
const size = (_a = this.size) !== null && _a !== void 0 ? _a : 32;
|
|
49
|
+
return ((_b = this.initials) !== null && _b !== void 0 ? _b : getInitials(this.name, window.getComputedStyle(this).direction === 'rtl', {
|
|
50
|
+
firstInitialOnly: size <= 16,
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* An array of the available Avatar named colors
|
|
56
|
+
*/
|
|
57
|
+
Avatar.colors = Object.values(AvatarNamedColor);
|
|
58
|
+
__decorate([
|
|
59
|
+
attr
|
|
60
|
+
], Avatar.prototype, "name", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
attr
|
|
63
|
+
], Avatar.prototype, "initials", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
attr({ converter: nullableNumberConverter })
|
|
66
|
+
], Avatar.prototype, "size", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
attr
|
|
69
|
+
], Avatar.prototype, "shape", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
attr
|
|
72
|
+
], Avatar.prototype, "active", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
attr
|
|
75
|
+
], Avatar.prototype, "appearance", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
attr
|
|
78
|
+
], Avatar.prototype, "color", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
attr({ attribute: 'color-id' })
|
|
81
|
+
], Avatar.prototype, "colorId", void 0);
|
|
82
|
+
// copied from React avatar
|
|
83
|
+
const getHashCode = (str) => {
|
|
84
|
+
let hashCode = 0;
|
|
85
|
+
for (let len = str.length - 1; len >= 0; len--) {
|
|
86
|
+
const ch = str.charCodeAt(len);
|
|
87
|
+
const shift = len % 8;
|
|
88
|
+
hashCode ^= (ch << shift) + (ch >> (8 - shift)); // eslint-disable-line no-bitwise
|
|
89
|
+
}
|
|
90
|
+
return hashCode;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/avatar/avatar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAGL,WAAW,EACX,gBAAgB,GAGjB,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QAuEE;;;;;;;;;;WAUG;QAEI,UAAK,GAAiB,SAAS,CAAC;IA+CzC,CAAC;IAtCC;;;OAGG;IACI,aAAa;;QAClB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,OAAO;SACR;QAED,OAAO,IAAI,CAAC,KAAK,KAAK,WAAW,CA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AAE,EAAE;QACtD,MAAM,EAAE,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;QACtB,QAAQ,IAAI,CAAC,EAAE,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,iCAAiC;KACnF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Avatar "active" state
|
|
3
|
+
*/
|
|
4
|
+
export const AvatarActive = {
|
|
5
|
+
active: 'active',
|
|
6
|
+
inactive: 'inactive',
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The Avatar Shape
|
|
10
|
+
*/
|
|
11
|
+
export const AvatarShape = {
|
|
12
|
+
circular: 'circular',
|
|
13
|
+
square: 'square',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The Avatar Appearance when "active"
|
|
17
|
+
*/
|
|
18
|
+
export const AvatarAppearance = {
|
|
19
|
+
ring: 'ring',
|
|
20
|
+
shadow: 'shadow',
|
|
21
|
+
ringShadow: 'ring-shadow',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A specific named color for the Avatar
|
|
25
|
+
*/
|
|
26
|
+
export const AvatarNamedColor = {
|
|
27
|
+
darkRed: 'dark-red',
|
|
28
|
+
cranberry: 'cranberry',
|
|
29
|
+
red: 'red',
|
|
30
|
+
pumpkin: 'pumpkin',
|
|
31
|
+
peach: 'peach',
|
|
32
|
+
marigold: 'marigold',
|
|
33
|
+
gold: 'gold',
|
|
34
|
+
brass: 'brass',
|
|
35
|
+
brown: 'brown',
|
|
36
|
+
forest: 'forest',
|
|
37
|
+
seafoam: 'seafoam',
|
|
38
|
+
darkGreen: 'dark-green',
|
|
39
|
+
lightTeal: 'light-teal',
|
|
40
|
+
teal: 'teal',
|
|
41
|
+
steel: 'steel',
|
|
42
|
+
blue: 'blue',
|
|
43
|
+
royalBlue: 'royal-blue',
|
|
44
|
+
cornflower: 'cornflower',
|
|
45
|
+
navy: 'navy',
|
|
46
|
+
lavender: 'lavender',
|
|
47
|
+
purple: 'purple',
|
|
48
|
+
grape: 'grape',
|
|
49
|
+
lilac: 'lilac',
|
|
50
|
+
pink: 'pink',
|
|
51
|
+
magenta: 'magenta',
|
|
52
|
+
plum: 'plum',
|
|
53
|
+
beige: 'beige',
|
|
54
|
+
mink: 'mink',
|
|
55
|
+
platinum: 'platinum',
|
|
56
|
+
anchor: 'anchor',
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Supported Avatar colors
|
|
60
|
+
*/
|
|
61
|
+
export const AvatarColor = {
|
|
62
|
+
neutral: 'neutral',
|
|
63
|
+
brand: 'brand',
|
|
64
|
+
colorful: 'colorful',
|
|
65
|
+
...AvatarNamedColor,
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The Avatar Sizes
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export const AvatarSize = {
|
|
72
|
+
_16: 16,
|
|
73
|
+
_20: 20,
|
|
74
|
+
_24: 24,
|
|
75
|
+
_28: 28,
|
|
76
|
+
_32: 32,
|
|
77
|
+
_36: 36,
|
|
78
|
+
_40: 40,
|
|
79
|
+
_48: 48,
|
|
80
|
+
_56: 56,
|
|
81
|
+
_64: 64,
|
|
82
|
+
_72: 72,
|
|
83
|
+
_96: 96,
|
|
84
|
+
_120: 120,
|
|
85
|
+
_128: 128,
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=avatar.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.options.js","sourceRoot":"","sources":["../../../src/avatar/avatar.options.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB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