@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.
- package/CHANGELOG.json +43 -1
- package/CHANGELOG.md +22 -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 +4 -0
- package/dist/dts/switch/define.d.ts +1 -0
- package/dist/dts/switch/index.d.ts +5 -0
- package/dist/dts/switch/switch.d.ts +13 -0
- package/dist/dts/switch/switch.definition.d.ts +9 -0
- package/dist/dts/switch/switch.options.d.ts +15 -0
- package/dist/dts/switch/switch.styles.d.ts +1 -0
- package/dist/dts/switch/switch.template.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 +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/switch/define.js +4 -0
- package/dist/esm/switch/define.js.map +1 -0
- package/dist/esm/switch/index.js +6 -0
- package/dist/esm/switch/index.js.map +1 -0
- package/dist/esm/switch/switch.definition.js +17 -0
- package/dist/esm/switch/switch.definition.js.map +1 -0
- package/dist/esm/switch/switch.js +9 -0
- package/dist/esm/switch/switch.js.map +1 -0
- package/dist/esm/switch/switch.options.js +10 -0
- package/dist/esm/switch/switch.options.js.map +1 -0
- package/dist/esm/switch/switch.styles.js +114 -0
- package/dist/esm/switch/switch.styles.js.map +1 -0
- package/dist/esm/switch/switch.template.js +5 -0
- package/dist/esm/switch/switch.template.js.map +1 -0
- 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 +3517 -1757
- package/dist/web-components.d.ts +496 -0
- package/dist/web-components.js +1095 -29
- package/dist/web-components.min.js +123 -115
- package/docs/api-report.md +262 -0
- package/package.json +17 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,49 @@
|
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 27 Feb 2023 04:26:56 GMT",
|
|
6
|
+
"tag": "@fluentui/web-components_v3.0.0-alpha.7",
|
|
7
|
+
"version": "3.0.0-alpha.7",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "chhol@microsoft.com",
|
|
12
|
+
"package": "@fluentui/web-components",
|
|
13
|
+
"commit": "4309a0d5afbe56dab0b1204922a37873fe832c8b",
|
|
14
|
+
"comment": "feat(avatar): add Avatar web component"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "harankin@microsoft.com",
|
|
18
|
+
"package": "@fluentui/web-components",
|
|
19
|
+
"commit": "7d9573d73b4be010c2b07540fa0c23c27aba2821",
|
|
20
|
+
"comment": "feat(divider): Add divider web component"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "harankin@microsoft.com",
|
|
24
|
+
"package": "@fluentui/web-components",
|
|
25
|
+
"commit": "e793ad8a7f7ae0239a808439d121cf012dd414e5",
|
|
26
|
+
"comment": "feat(image): Add image web component"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Fri, 24 Feb 2023 04:20:32 GMT",
|
|
33
|
+
"tag": "@fluentui/web-components_v3.0.0-alpha.6",
|
|
34
|
+
"version": "3.0.0-alpha.6",
|
|
35
|
+
"comments": {
|
|
36
|
+
"prerelease": [
|
|
37
|
+
{
|
|
38
|
+
"author": "brianbrady@microsoft.com",
|
|
39
|
+
"package": "@fluentui/web-components",
|
|
40
|
+
"commit": "2de60aec984eb2802da76c6c67849da358c0db49",
|
|
41
|
+
"comment": "feat(switch): Add switch web component"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Wed, 22 Feb 2023 04:22:43 GMT",
|
|
6
48
|
"tag": "@fluentui/web-components_v3.0.0-alpha.5",
|
|
7
49
|
"version": "3.0.0-alpha.5",
|
|
8
50
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 27 Feb 2023 04:26:56 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.7)
|
|
8
|
+
|
|
9
|
+
Mon, 27 Feb 2023 04:26:56 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.6..@fluentui/web-components_v3.0.0-alpha.7)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- feat(avatar): add Avatar web component ([PR #26729](https://github.com/microsoft/fluentui/pull/26729) by chhol@microsoft.com)
|
|
15
|
+
- feat(divider): Add divider web component ([PR #26901](https://github.com/microsoft/fluentui/pull/26901) by harankin@microsoft.com)
|
|
16
|
+
- feat(image): Add image web component ([PR #26936](https://github.com/microsoft/fluentui/pull/26936) by harankin@microsoft.com)
|
|
17
|
+
|
|
18
|
+
## [3.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.6)
|
|
19
|
+
|
|
20
|
+
Fri, 24 Feb 2023 04:20:32 GMT
|
|
21
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.5..@fluentui/web-components_v3.0.0-alpha.6)
|
|
22
|
+
|
|
23
|
+
### Changes
|
|
24
|
+
|
|
25
|
+
- feat(switch): Add switch web component ([PR #26517](https://github.com/microsoft/fluentui/pull/26517) by brianbrady@microsoft.com)
|
|
26
|
+
|
|
7
27
|
## [3.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.5)
|
|
8
28
|
|
|
9
|
-
Wed, 22 Feb 2023 04:22:
|
|
29
|
+
Wed, 22 Feb 2023 04:22:43 GMT
|
|
10
30
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.4..@fluentui/web-components_v3.0.0-alpha.5)
|
|
11
31
|
|
|
12
32
|
### Changes
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { AvatarActive, AvatarAppearance, AvatarColor, AvatarNamedColor, AvatarShape, AvatarSize } from './avatar.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* The base class used for constructing a fluent-avatar custom element
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Avatar extends FASTElement {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the person or entity represented by this Avatar. This should always be provided if it is available.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @remarks
|
|
13
|
+
* HTML Attribute: name
|
|
14
|
+
*/
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Provide custom initials rather than one generated via the name
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML Attribute: name
|
|
22
|
+
*/
|
|
23
|
+
initials?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Size of the avatar in pixels.
|
|
26
|
+
*
|
|
27
|
+
* Size is restricted to a limited set of supported values recommended for most uses (see `AvatarSizeValue`) and
|
|
28
|
+
* based on design guidelines for the Avatar control.
|
|
29
|
+
*
|
|
30
|
+
* If a non-supported size is neeeded, set `size` to the next-smaller supported size, and set `width` and `height`
|
|
31
|
+
* to override the rendered size.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
* @remarks
|
|
35
|
+
* HTML Attribute: size
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
size?: AvatarSize | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The avatar can have a circular or square shape.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
* @remarks
|
|
44
|
+
* HTML Attribute: shape
|
|
45
|
+
*/
|
|
46
|
+
shape?: AvatarShape | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Optional activity indicator
|
|
49
|
+
* * active: the avatar will be decorated according to activeAppearance
|
|
50
|
+
* * inactive: the avatar will be reduced in size and partially transparent
|
|
51
|
+
* * undefined: normal display
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: active
|
|
56
|
+
*/
|
|
57
|
+
active?: AvatarActive | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The appearance when `active="active"`
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
* @remarks
|
|
63
|
+
* HTML Attribute: appearance
|
|
64
|
+
*/
|
|
65
|
+
appearance?: AvatarAppearance | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The color when displaying either an icon or initials.
|
|
68
|
+
* * neutral (default): gray
|
|
69
|
+
* * brand: color from the brand palette
|
|
70
|
+
* * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or colorId if provided)
|
|
71
|
+
* * [AvatarNamedColor]: a specific color from the theme
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
* @remarks
|
|
75
|
+
* HTML Attribute: color
|
|
76
|
+
*/
|
|
77
|
+
color?: AvatarColor;
|
|
78
|
+
/**
|
|
79
|
+
* Specify a string to be used instead of the name, to determine which color to use when color="colorful".
|
|
80
|
+
* Use this when a name is not available, but there is another unique identifier that can be used instead.
|
|
81
|
+
*/
|
|
82
|
+
colorId?: AvatarNamedColor | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the data-color attribute used for the visual presentation
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
generateColor(): AvatarColor | void;
|
|
88
|
+
/**
|
|
89
|
+
* Generates and sets the initials for the template
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
generateInitials(): string | void;
|
|
93
|
+
/**
|
|
94
|
+
* An array of the available Avatar named colors
|
|
95
|
+
*/
|
|
96
|
+
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")[];
|
|
97
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* The Avatar "active" state
|
|
4
|
+
*/
|
|
5
|
+
export declare const AvatarActive: {
|
|
6
|
+
readonly active: "active";
|
|
7
|
+
readonly inactive: "inactive";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The types of Avatar active state
|
|
11
|
+
*/
|
|
12
|
+
export declare type AvatarActive = ValuesOf<typeof AvatarActive>;
|
|
13
|
+
/**
|
|
14
|
+
* The Avatar Shape
|
|
15
|
+
*/
|
|
16
|
+
export declare const AvatarShape: {
|
|
17
|
+
readonly circular: "circular";
|
|
18
|
+
readonly square: "square";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The types of Avatar Shape
|
|
22
|
+
*/
|
|
23
|
+
export declare type AvatarShape = ValuesOf<typeof AvatarShape>;
|
|
24
|
+
/**
|
|
25
|
+
* The Avatar Appearance when "active"
|
|
26
|
+
*/
|
|
27
|
+
export declare const AvatarAppearance: {
|
|
28
|
+
readonly ring: "ring";
|
|
29
|
+
readonly shadow: "shadow";
|
|
30
|
+
readonly ringShadow: "ring-shadow";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The appearance when "active"
|
|
34
|
+
*/
|
|
35
|
+
export declare type AvatarAppearance = ValuesOf<typeof AvatarAppearance>;
|
|
36
|
+
/**
|
|
37
|
+
* A specific named color for the Avatar
|
|
38
|
+
*/
|
|
39
|
+
export declare const AvatarNamedColor: {
|
|
40
|
+
readonly darkRed: "dark-red";
|
|
41
|
+
readonly cranberry: "cranberry";
|
|
42
|
+
readonly red: "red";
|
|
43
|
+
readonly pumpkin: "pumpkin";
|
|
44
|
+
readonly peach: "peach";
|
|
45
|
+
readonly marigold: "marigold";
|
|
46
|
+
readonly gold: "gold";
|
|
47
|
+
readonly brass: "brass";
|
|
48
|
+
readonly brown: "brown";
|
|
49
|
+
readonly forest: "forest";
|
|
50
|
+
readonly seafoam: "seafoam";
|
|
51
|
+
readonly darkGreen: "dark-green";
|
|
52
|
+
readonly lightTeal: "light-teal";
|
|
53
|
+
readonly teal: "teal";
|
|
54
|
+
readonly steel: "steel";
|
|
55
|
+
readonly blue: "blue";
|
|
56
|
+
readonly royalBlue: "royal-blue";
|
|
57
|
+
readonly cornflower: "cornflower";
|
|
58
|
+
readonly navy: "navy";
|
|
59
|
+
readonly lavender: "lavender";
|
|
60
|
+
readonly purple: "purple";
|
|
61
|
+
readonly grape: "grape";
|
|
62
|
+
readonly lilac: "lilac";
|
|
63
|
+
readonly pink: "pink";
|
|
64
|
+
readonly magenta: "magenta";
|
|
65
|
+
readonly plum: "plum";
|
|
66
|
+
readonly beige: "beige";
|
|
67
|
+
readonly mink: "mink";
|
|
68
|
+
readonly platinum: "platinum";
|
|
69
|
+
readonly anchor: "anchor";
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* An avatar can be one of named colors
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare type AvatarNamedColor = ValuesOf<typeof AvatarNamedColor>;
|
|
76
|
+
/**
|
|
77
|
+
* Supported Avatar colors
|
|
78
|
+
*/
|
|
79
|
+
export declare const AvatarColor: {
|
|
80
|
+
readonly darkRed: "dark-red";
|
|
81
|
+
readonly cranberry: "cranberry";
|
|
82
|
+
readonly red: "red";
|
|
83
|
+
readonly pumpkin: "pumpkin";
|
|
84
|
+
readonly peach: "peach";
|
|
85
|
+
readonly marigold: "marigold";
|
|
86
|
+
readonly gold: "gold";
|
|
87
|
+
readonly brass: "brass";
|
|
88
|
+
readonly brown: "brown";
|
|
89
|
+
readonly forest: "forest";
|
|
90
|
+
readonly seafoam: "seafoam";
|
|
91
|
+
readonly darkGreen: "dark-green";
|
|
92
|
+
readonly lightTeal: "light-teal";
|
|
93
|
+
readonly teal: "teal";
|
|
94
|
+
readonly steel: "steel";
|
|
95
|
+
readonly blue: "blue";
|
|
96
|
+
readonly royalBlue: "royal-blue";
|
|
97
|
+
readonly cornflower: "cornflower";
|
|
98
|
+
readonly navy: "navy";
|
|
99
|
+
readonly lavender: "lavender";
|
|
100
|
+
readonly purple: "purple";
|
|
101
|
+
readonly grape: "grape";
|
|
102
|
+
readonly lilac: "lilac";
|
|
103
|
+
readonly pink: "pink";
|
|
104
|
+
readonly magenta: "magenta";
|
|
105
|
+
readonly plum: "plum";
|
|
106
|
+
readonly beige: "beige";
|
|
107
|
+
readonly mink: "mink";
|
|
108
|
+
readonly platinum: "platinum";
|
|
109
|
+
readonly anchor: "anchor";
|
|
110
|
+
readonly neutral: "neutral";
|
|
111
|
+
readonly brand: "brand";
|
|
112
|
+
readonly colorful: "colorful";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* The Avatar Color
|
|
116
|
+
*/
|
|
117
|
+
export declare type AvatarColor = ValuesOf<typeof AvatarColor>;
|
|
118
|
+
/**
|
|
119
|
+
* The Avatar Sizes
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export declare const AvatarSize: {
|
|
123
|
+
readonly _16: 16;
|
|
124
|
+
readonly _20: 20;
|
|
125
|
+
readonly _24: 24;
|
|
126
|
+
readonly _28: 28;
|
|
127
|
+
readonly _32: 32;
|
|
128
|
+
readonly _36: 36;
|
|
129
|
+
readonly _40: 40;
|
|
130
|
+
readonly _48: 48;
|
|
131
|
+
readonly _56: 56;
|
|
132
|
+
readonly _64: 64;
|
|
133
|
+
readonly _72: 72;
|
|
134
|
+
readonly _96: 96;
|
|
135
|
+
readonly _120: 120;
|
|
136
|
+
readonly _128: 128;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* A Avatar can be on of several preset sizes.
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
export declare type AvatarSize = ValuesOf<typeof AvatarSize>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { Avatar } from './avatar.js';
|
|
3
|
+
/**
|
|
4
|
+
* The template for the Avatar component.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function avatarTemplate<T extends Avatar>(): ElementViewTemplate<T>;
|
|
8
|
+
export declare const template: ElementViewTemplate<Avatar>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './avatar.js';
|
|
2
|
+
export * from './avatar.options.js';
|
|
3
|
+
export { template as AvatarTemplate } from './avatar.template.js';
|
|
4
|
+
export { styles as AvatarStyles } from './avatar.styles.js';
|
|
5
|
+
export { definition as AvatarDefinition } from './avatar.definition.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FASTDivider } from '@microsoft/fast-foundation';
|
|
2
|
+
import { DividerAlignContent, DividerAppearance } from './divider.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* @class Divider component
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This class extends the FASTDivider. A divider groups sections of content to create visual rhythm and hierarchy. Use dividers along with spacing and headers to organize content in your layout.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Divider extends FASTDivider {
|
|
10
|
+
/**
|
|
11
|
+
* @property alignContent
|
|
12
|
+
* @default center
|
|
13
|
+
* @remarks
|
|
14
|
+
* Determines the alignment of the content within the divider. Select from start or end. When not specified, the content will be aligned to the center.
|
|
15
|
+
*/
|
|
16
|
+
alignContent?: DividerAlignContent;
|
|
17
|
+
/**
|
|
18
|
+
* @property appearance
|
|
19
|
+
* @default default
|
|
20
|
+
* @remarks
|
|
21
|
+
* A divider can have one of the preset appearances. Select from strong, brand, subtle. When not specified, the divider has its default appearance.
|
|
22
|
+
*/
|
|
23
|
+
appearance?: DividerAppearance;
|
|
24
|
+
/**
|
|
25
|
+
* @property inset
|
|
26
|
+
* @default false
|
|
27
|
+
* @remarks
|
|
28
|
+
* Adds padding to the beginning and end of the divider.
|
|
29
|
+
*/
|
|
30
|
+
inset?: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DividerOrientation, DividerRole, ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* Fast Foundation DividerRole property
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export { DividerRole };
|
|
7
|
+
/**
|
|
8
|
+
* Fast Foundation Orientation property
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export { DividerOrientation };
|
|
12
|
+
/**
|
|
13
|
+
* Align content within divider
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare const DividerAlignContent: {
|
|
17
|
+
readonly center: "center";
|
|
18
|
+
readonly start: "start";
|
|
19
|
+
readonly end: "end";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The types for DividerAlignContent
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare type DividerAlignContent = ValuesOf<typeof DividerAlignContent>;
|
|
26
|
+
/**
|
|
27
|
+
* DividerAppearance - divider color defined by a design token alias.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export declare const DividerAppearance: {
|
|
31
|
+
readonly strong: "strong";
|
|
32
|
+
readonly brand: "brand";
|
|
33
|
+
readonly subtle: "subtle";
|
|
34
|
+
readonly default: "default";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The types for Appearance
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export declare type DividerAppearance = ValuesOf<typeof DividerAppearance>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './divider.js';
|
|
2
|
+
export * from './divider.options.js';
|
|
3
|
+
export { definition as DividerDefinition } from './divider.definition.js';
|
|
4
|
+
export { template as DividerTemplate } from './divider.template.js';
|
|
5
|
+
export { styles as DividerStyles } from './divider.styles.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { ImageFit, ImageShape } from './image.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* The base class used for constucting a fluent image custom element
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Image extends FASTElement {
|
|
8
|
+
/**
|
|
9
|
+
* Image layout
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @remarks
|
|
13
|
+
* HTML attribute: block.
|
|
14
|
+
*/
|
|
15
|
+
block?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Image border
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML attribute: border.
|
|
22
|
+
*/
|
|
23
|
+
bordered?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Image shadow
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML attribute: shadow.
|
|
30
|
+
*/
|
|
31
|
+
shadow?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Image fit
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
* @remarks
|
|
37
|
+
* HTML attribute: fit.
|
|
38
|
+
*/
|
|
39
|
+
fit?: ImageFit;
|
|
40
|
+
/**
|
|
41
|
+
* Image shape
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
* @remarks
|
|
45
|
+
* HTML attribute: shape.
|
|
46
|
+
*/
|
|
47
|
+
shape?: ImageShape;
|
|
48
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* Image fit
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const ImageFit: {
|
|
7
|
+
readonly none: "none";
|
|
8
|
+
readonly center: "center";
|
|
9
|
+
readonly contain: "contain";
|
|
10
|
+
readonly cover: "cover";
|
|
11
|
+
readonly default: "default";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Types for image fit
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare type ImageFit = ValuesOf<typeof ImageFit>;
|
|
18
|
+
/**
|
|
19
|
+
* Image shape
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export declare const ImageShape: {
|
|
23
|
+
readonly circular: "circular";
|
|
24
|
+
readonly rounded: "rounded";
|
|
25
|
+
readonly square: "square";
|
|
26
|
+
};
|
|
27
|
+
export declare type ImageShape = ValuesOf<typeof ImageShape>;
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from './accordion/index.js';
|
|
2
2
|
export * from './accordion-item/index.js';
|
|
3
|
+
export * from './avatar/index.js';
|
|
3
4
|
export * from './badge/index.js';
|
|
4
5
|
export * from './counter-badge/index.js';
|
|
6
|
+
export * from './divider/index.js';
|
|
7
|
+
export * from './image/index.js';
|
|
5
8
|
export * from './progress-bar/index.js';
|
|
6
9
|
export * from './spinner/index.js';
|
|
10
|
+
export * from './switch/index.js';
|
|
7
11
|
export * from './text/index.js';
|
|
8
12
|
export * from './theme/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FASTSwitch } from '@microsoft/fast-foundation';
|
|
2
|
+
import { SwitchLabelPosition } from './switch.options.js';
|
|
3
|
+
export declare class Switch extends FASTSwitch {
|
|
4
|
+
/**
|
|
5
|
+
* The label position of the switch
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
* @default 'after'
|
|
9
|
+
* @remarks
|
|
10
|
+
* HTML Attribute: labelposition
|
|
11
|
+
*/
|
|
12
|
+
labelPosition: SwitchLabelPosition | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* SwitchLabelPosition Constants
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const SwitchLabelPosition: {
|
|
7
|
+
readonly above: "above";
|
|
8
|
+
readonly after: "after";
|
|
9
|
+
readonly before: "before";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Applies label position
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare type SwitchLabelPosition = ValuesOf<typeof SwitchLabelPosition>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|