@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
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusSmall, borderRadiusXLarge, colorBrandBackgroundStatic, colorNeutralBackground1, colorNeutralBackground6, colorNeutralForeground3, colorNeutralForegroundStaticInverted, colorPaletteAnchorBackground2, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeForeground2, colorPaletteBlueBackground2, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenForeground2, colorPaletteDarkRedBackground2, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeForeground2, colorPaletteLavenderBackground2, colorPaletteLavenderForeground2, colorPaletteLightTealBackground2, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground2, colorPaletteMarigoldForeground2, colorPaletteMinkBackground2, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleForeground2, colorPaletteRedBackground2, colorPaletteRedForeground2, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealForeground2, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, durationFaster, durationSlower, durationUltraSlow, fontFamilyBase, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontWeightRegular, fontWeightSemibold, shadow16, shadow28, shadow4, shadow8, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, } from '../theme/design-tokens.js';
|
|
4
|
+
const animations = {
|
|
5
|
+
fastOutSlowInMax: curveDecelerateMax,
|
|
6
|
+
fastOutSlowInMid: curveDecelerateMid,
|
|
7
|
+
fastOutSlowInMin: curveDecelerateMin,
|
|
8
|
+
slowOutFastInMax: curveAccelerateMax,
|
|
9
|
+
slowOutFastInMid: curveAccelerateMid,
|
|
10
|
+
slowOutFastInMin: curveAccelerateMin,
|
|
11
|
+
fastEase: curveEasyEaseMax,
|
|
12
|
+
normalEase: curveEasyEase,
|
|
13
|
+
nullEasing: curveLinear,
|
|
14
|
+
};
|
|
15
|
+
/** Avatar styles
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export const styles = css `
|
|
19
|
+
${display('inline-flex')} :host {
|
|
20
|
+
position: relative;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
width: 32px;
|
|
25
|
+
height: 32px;
|
|
26
|
+
font-family: ${fontFamilyBase};
|
|
27
|
+
font-weight: ${fontWeightSemibold};
|
|
28
|
+
font-size: ${fontSizeBase300};
|
|
29
|
+
border-radius: ${borderRadiusCircular};
|
|
30
|
+
color: ${colorNeutralForeground3};
|
|
31
|
+
background-color: ${colorNeutralBackground6};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.default-icon,
|
|
35
|
+
::slotted(svg) {
|
|
36
|
+
width: 20px;
|
|
37
|
+
height: 20px;
|
|
38
|
+
font-size: 20px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
::slotted(img) {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
border-radius: ${borderRadiusCircular};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
::slotted([slot='badge']) {
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
box-shadow: 0 0 0 ${strokeWidthThin} ${colorNeutralBackground1};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([size='64']) ::slotted([slot='badge']),
|
|
56
|
+
:host([size='72']) ::slotted([slot='badge']),
|
|
57
|
+
:host([size='96']) ::slotted([slot='badge']),
|
|
58
|
+
:host([size='120']) ::slotted([slot='badge']),
|
|
59
|
+
:host([size='128']) ::slotted([slot='badge']) {
|
|
60
|
+
box-shadow: 0 0 0 ${strokeWidthThick} ${colorNeutralBackground1};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host([size='16']),
|
|
64
|
+
:host([size='20']),
|
|
65
|
+
:host([size='24']) {
|
|
66
|
+
font-size: ${fontSizeBase100};
|
|
67
|
+
font-weight: ${fontWeightRegular};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([size='16']) {
|
|
71
|
+
width: 16px;
|
|
72
|
+
height: 16px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([size='20']) {
|
|
76
|
+
width: 20px;
|
|
77
|
+
height: 20px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([size='24']) {
|
|
81
|
+
width: 24px;
|
|
82
|
+
height: 24px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([size='16']) .default-icon,
|
|
86
|
+
:host([size='16']) ::slotted(svg) {
|
|
87
|
+
width: 12px;
|
|
88
|
+
height: 12px;
|
|
89
|
+
font-size: 12px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([size='20']) .default-icon,
|
|
93
|
+
:host([size='24']) .default-icon,
|
|
94
|
+
:host([size='20']) ::slotted(svg),
|
|
95
|
+
:host([size='24']) ::slotted(svg) {
|
|
96
|
+
width: 16px;
|
|
97
|
+
height: 16px;
|
|
98
|
+
font-size: 16px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([size='28']) {
|
|
102
|
+
width: 28px;
|
|
103
|
+
height: 28px;
|
|
104
|
+
font-size: ${fontSizeBase200};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([size='36']) {
|
|
108
|
+
width: 36px;
|
|
109
|
+
height: 36px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([size='40']) {
|
|
113
|
+
width: 40px;
|
|
114
|
+
height: 40px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host([size='48']),
|
|
118
|
+
:host([size='56']) {
|
|
119
|
+
font-size: ${fontSizeBase400};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([size='48']) {
|
|
123
|
+
width: 48px;
|
|
124
|
+
height: 48px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([size='48']) .default-icon,
|
|
128
|
+
:host([size='48']) ::slotted(svg) {
|
|
129
|
+
width: 24px;
|
|
130
|
+
height: 24px;
|
|
131
|
+
font-size: 24px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([size='56']) {
|
|
135
|
+
width: 56px;
|
|
136
|
+
height: 56px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([size='56']) .default-icon,
|
|
140
|
+
:host([size='56']) ::slotted(svg) {
|
|
141
|
+
width: 28px;
|
|
142
|
+
height: 28px;
|
|
143
|
+
font-size: 28px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([size='64']),
|
|
147
|
+
:host([size='72']),
|
|
148
|
+
:host([size='96']) {
|
|
149
|
+
font-size: ${fontSizeBase500};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([size='64']) .default-icon,
|
|
153
|
+
:host([size='72']) .default-icon,
|
|
154
|
+
:host([size='64']) ::slotted(svg),
|
|
155
|
+
:host([size='72']) ::slotted(svg) {
|
|
156
|
+
width: 32px;
|
|
157
|
+
height: 32px;
|
|
158
|
+
font-size: 32px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:host([size='64']) {
|
|
162
|
+
width: 64px;
|
|
163
|
+
height: 64px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:host([size='72']) {
|
|
167
|
+
width: 72px;
|
|
168
|
+
height: 72px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host([size='96']) {
|
|
172
|
+
width: 96px;
|
|
173
|
+
height: 96px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host([size='96']) .default-icon,
|
|
177
|
+
:host([size='120']) .default-icon,
|
|
178
|
+
:host([size='128']) .default-icon,
|
|
179
|
+
:host([size='96']) ::slotted(svg),
|
|
180
|
+
:host([size='120']) ::slotted(svg),
|
|
181
|
+
:host([size='128']) ::slotted(svg) {
|
|
182
|
+
width: 48px;
|
|
183
|
+
height: 48px;
|
|
184
|
+
font-size: 48px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host([size='120']),
|
|
188
|
+
:host([size='128']) {
|
|
189
|
+
font-size: ${fontSizeBase600};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host([size='120']) {
|
|
193
|
+
width: 120px;
|
|
194
|
+
height: 120px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host([size='128']) {
|
|
198
|
+
width: 128px;
|
|
199
|
+
height: 128px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host([shape='square']) {
|
|
203
|
+
border-radius: ${borderRadiusMedium};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:host([shape='square'][size='20']),
|
|
207
|
+
:host([shape='square'][size='24']) {
|
|
208
|
+
border-radius: ${borderRadiusSmall};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:host([shape='square'][size='56']),
|
|
212
|
+
:host([shape='square'][size='64']),
|
|
213
|
+
:host([shape='square'][size='72']) {
|
|
214
|
+
border-radius: ${borderRadiusLarge};
|
|
215
|
+
}
|
|
216
|
+
:host([shape='square'][size='96']),
|
|
217
|
+
:host([shape='square'][size='120']),
|
|
218
|
+
:host([shape='square'][size='128']) {
|
|
219
|
+
border-radius: ${borderRadiusXLarge};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:host([data-color='brand']) {
|
|
223
|
+
color: ${colorNeutralForegroundStaticInverted};
|
|
224
|
+
background-color: ${colorBrandBackgroundStatic};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:host([data-color='dark-red']) {
|
|
228
|
+
color: ${colorPaletteDarkRedForeground2};
|
|
229
|
+
background-color: ${colorPaletteDarkRedBackground2};
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host([data-color='cranberry']) {
|
|
233
|
+
color: ${colorPaletteCranberryForeground2};
|
|
234
|
+
background-color: ${colorPaletteCranberryBackground2};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host([data-color='red']) {
|
|
238
|
+
color: ${colorPaletteRedForeground2};
|
|
239
|
+
background-color: ${colorPaletteRedBackground2};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([data-color='pumpkin']) {
|
|
243
|
+
color: ${colorPalettePumpkinForeground2};
|
|
244
|
+
background-color: ${colorPalettePumpkinBackground2};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:host([data-color='peach']) {
|
|
248
|
+
color: ${colorPalettePeachForeground2};
|
|
249
|
+
background-color: ${colorPalettePeachBackground2};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:host([data-color='marigold']) {
|
|
253
|
+
color: ${colorPaletteMarigoldForeground2};
|
|
254
|
+
background-color: ${colorPaletteMarigoldBackground2};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
:host([data-color='gold']) {
|
|
258
|
+
color: ${colorPaletteGoldForeground2};
|
|
259
|
+
background-color: ${colorPaletteGoldBackground2};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host([data-color='brass']) {
|
|
263
|
+
color: ${colorPaletteBrassForeground2};
|
|
264
|
+
background-color: ${colorPaletteBrassBackground2};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
:host([data-color='brown']) {
|
|
268
|
+
color: ${colorPaletteBrownForeground2};
|
|
269
|
+
background-color: ${colorPaletteBrownBackground2};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
:host([data-color='forest']) {
|
|
273
|
+
color: ${colorPaletteForestForeground2};
|
|
274
|
+
background-color: ${colorPaletteForestBackground2};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:host([data-color='seafoam']) {
|
|
278
|
+
color: ${colorPaletteSeafoamForeground2};
|
|
279
|
+
background-color: ${colorPaletteSeafoamBackground2};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:host([data-color='dark-green']) {
|
|
283
|
+
color: ${colorPaletteDarkGreenForeground2};
|
|
284
|
+
background-color: ${colorPaletteDarkGreenBackground2};
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
:host([data-color='light-teal']) {
|
|
288
|
+
color: ${colorPaletteLightTealForeground2};
|
|
289
|
+
background-color: ${colorPaletteLightTealBackground2};
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:host([data-color='teal']) {
|
|
293
|
+
color: ${colorPaletteTealForeground2};
|
|
294
|
+
background-color: ${colorPaletteTealBackground2};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:host([data-color='steel']) {
|
|
298
|
+
color: ${colorPaletteSteelForeground2};
|
|
299
|
+
background-color: ${colorPaletteSteelBackground2};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
:host([data-color='blue']) {
|
|
303
|
+
color: ${colorPaletteBlueForeground2};
|
|
304
|
+
background-color: ${colorPaletteBlueBackground2};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
:host([data-color='royal-blue']) {
|
|
308
|
+
color: ${colorPaletteRoyalBlueForeground2};
|
|
309
|
+
background-color: ${colorPaletteRoyalBlueBackground2};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
:host([data-color='cornflower']) {
|
|
313
|
+
color: ${colorPaletteCornflowerForeground2};
|
|
314
|
+
background-color: ${colorPaletteCornflowerBackground2};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
:host([data-color='navy']) {
|
|
318
|
+
color: ${colorPaletteNavyForeground2};
|
|
319
|
+
background-color: ${colorPaletteNavyBackground2};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
:host([data-color='lavender']) {
|
|
323
|
+
color: ${colorPaletteLavenderForeground2};
|
|
324
|
+
background-color: ${colorPaletteLavenderBackground2};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
:host([data-color='purple']) {
|
|
328
|
+
color: ${colorPalettePurpleForeground2};
|
|
329
|
+
background-color: ${colorPalettePurpleBackground2};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
:host([data-color='grape']) {
|
|
333
|
+
color: ${colorPaletteGrapeForeground2};
|
|
334
|
+
background-color: ${colorPaletteGrapeBackground2};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
:host([data-color='lilac']) {
|
|
338
|
+
color: ${colorPaletteLilacForeground2};
|
|
339
|
+
background-color: ${colorPaletteLilacBackground2};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
:host([data-color='pink']) {
|
|
343
|
+
color: ${colorPalettePinkForeground2};
|
|
344
|
+
background-color: ${colorPalettePinkBackground2};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
:host([data-color='magenta']) {
|
|
348
|
+
color: ${colorPaletteMagentaForeground2};
|
|
349
|
+
background-color: ${colorPaletteMagentaBackground2};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:host([data-color='plum']) {
|
|
353
|
+
color: ${colorPalettePlumForeground2};
|
|
354
|
+
background-color: ${colorPalettePlumBackground2};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
:host([data-color='beige']) {
|
|
358
|
+
color: ${colorPaletteBeigeForeground2};
|
|
359
|
+
background-color: ${colorPaletteBeigeBackground2};
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:host([data-color='mink']) {
|
|
363
|
+
color: ${colorPaletteMinkForeground2};
|
|
364
|
+
background-color: ${colorPaletteMinkBackground2};
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
:host([data-color='platinum']) {
|
|
368
|
+
color: ${colorPalettePlatinumForeground2};
|
|
369
|
+
background-color: ${colorPalettePlatinumBackground2};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
:host([data-color='anchor']) {
|
|
373
|
+
color: ${colorPaletteAnchorForeground2};
|
|
374
|
+
background-color: ${colorPaletteAnchorBackground2};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
:host([active]) {
|
|
378
|
+
/* Work-around for text pixel snapping at the end of the animation */
|
|
379
|
+
transform: perspective(1px);
|
|
380
|
+
transition-property: transform, opacity;
|
|
381
|
+
transition-duration: ${durationUltraSlow}, ${durationFaster};
|
|
382
|
+
transition-delay: ${animations.fastEase}, ${animations.nullEasing};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
:host([active])::before {
|
|
386
|
+
content: '';
|
|
387
|
+
position: absolute;
|
|
388
|
+
top: 0;
|
|
389
|
+
left: 0;
|
|
390
|
+
bottom: 0;
|
|
391
|
+
right: 0;
|
|
392
|
+
border-radius: inherit;
|
|
393
|
+
transition-property: margin, opacity;
|
|
394
|
+
transition-duration: ${durationUltraSlow}, ${durationSlower};
|
|
395
|
+
transition-delay: ${animations.fastEase}, ${animations.nullEasing};
|
|
396
|
+
}
|
|
397
|
+
:host([active])::before {
|
|
398
|
+
box-shadow: ${shadow8};
|
|
399
|
+
border-style: solid;
|
|
400
|
+
border-color: ${colorBrandBackgroundStatic};
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
:host([active][appearance='shadow'])::before {
|
|
404
|
+
border-style: none;
|
|
405
|
+
border-color: none;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
:host([active]:not([appearance='shadow']))::before {
|
|
409
|
+
margin: calc(-2 * ${strokeWidthThick});
|
|
410
|
+
border-width: ${strokeWidthThick};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
:host([size='56'][active]:not([appearance='shadow']))::before,
|
|
414
|
+
:host([size='64'][active]:not([appearance='shadow']))::before {
|
|
415
|
+
margin: calc(-2 * ${strokeWidthThicker});
|
|
416
|
+
border-width: ${strokeWidthThicker};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
:host([size='72'][active]:not([appearance='shadow']))::before,
|
|
420
|
+
:host([size='96'][active]:not([appearance='shadow']))::before,
|
|
421
|
+
:host([size='120'][active]:not([appearance='shadow']))::before,
|
|
422
|
+
:host([size='128'][active]:not([appearance='shadow']))::before {
|
|
423
|
+
margin: calc(-2 * ${strokeWidthThickest});
|
|
424
|
+
border-width: ${strokeWidthThickest};
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
:host([size='20'][active][appearance])::before,
|
|
428
|
+
:host([size='24'][active][appearance])::before,
|
|
429
|
+
:host([size='28'][active][appearance])::before {
|
|
430
|
+
box-shadow: ${shadow4};
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
:host([size='56'][active][appearance])::before,
|
|
434
|
+
:host([size='64'][active][appearance])::before {
|
|
435
|
+
box-shadow: ${shadow16};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
:host([size='72'][active][appearance])::before,
|
|
439
|
+
:host([size='96'][active][appearance])::before,
|
|
440
|
+
:host([size='120'][active][appearance])::before,
|
|
441
|
+
:host([size='128'][active][appearance])::before {
|
|
442
|
+
box-shadow: ${shadow28};
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
:host([active][appearance='ring'])::before {
|
|
446
|
+
box-shadow: none;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
:host([active='inactive']) {
|
|
450
|
+
opacity: 0.8;
|
|
451
|
+
transform: scale(0.875);
|
|
452
|
+
transition-property: transform, opacity;
|
|
453
|
+
transition-duration: ${durationUltraSlow}, ${durationFaster};
|
|
454
|
+
transition-delay: ${animations.fastOutSlowInMin}, ${animations.nullEasing};
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
:host([active='inactive'])::before {
|
|
458
|
+
margin: 0;
|
|
459
|
+
opacity: 0;
|
|
460
|
+
transition-property: margin, opacity;
|
|
461
|
+
transition-duration: ${durationUltraSlow}, ${durationSlower};
|
|
462
|
+
transition-delay: ${animations.fastOutSlowInMin}, ${animations.nullEasing};
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
466
|
+
:host([active]) {
|
|
467
|
+
transition-duration: 0.01ms;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
:host([active])::before {
|
|
471
|
+
transition-duration: 0.01ms;
|
|
472
|
+
transition-delay: 0.01ms;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
`;
|
|
476
|
+
//# sourceMappingURL=avatar.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.styles.js","sourceRoot":"","sources":["../../../src/avatar/avatar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,oCAAoC,EACpC,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,gCAAgC,EAChC,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,E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IvC,2BAA2B;wBAChB,2BAA2B;;;;aAItC,+BAA+B;wBACpB,+BAA+B;;;;aAI1C,6BAA6B;wBAClB,6BAA6B;;;;;;;2BAO1B,iBAAiB,KAAK,cAAc;wBACvC,UAAU,CAAC,QAAQ,KAAK,UAAU,CAAC,UAAU;;;;;;;;;;;;2BAY1C,iBAAiB,KAAK,cAAc;wBACvC,UAAU,CAAC,QAAQ,KAAK,UAAU,CAAC,UAAU;;;kBAGnD,OAAO;;oBAEL,0BAA0B;;;;;;;;;wBAStB,gBAAgB;oBACpB,gBAAgB;;;;;wBAKZ,kBAAkB;oBACtB,kBAAkB;;;;;;;wBAOd,mBAAmB;oBACvB,mBAAmB;;;;;;kBAMrB,OAAO;;;;;kBAKP,QAAQ;;;;;;;kBAOR,QAAQ;;;;;;;;;;;2BAWC,iBAAiB,KAAK,cAAc;wBACvC,UAAU,CAAC,gBAAgB,KAAK,UAAU,CAAC,UAAU;;;;;;;2BAOlD,iBAAiB,KAAK,cAAc;wBACvC,UAAU,CAAC,gBAAgB,KAAK,UAAU,CAAC,UAAU;;;;;;;;;;;;;CAa5E,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { html } from '@microsoft/fast-element';
|
|
2
|
+
const defaultIconTemplate = html `<svg
|
|
3
|
+
width="1em"
|
|
4
|
+
height="1em"
|
|
5
|
+
viewBox="0 0 20 20"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
class="default-icon"
|
|
8
|
+
fill="currentcolor"
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"
|
|
13
|
+
></path>
|
|
14
|
+
</svg>`;
|
|
15
|
+
/**
|
|
16
|
+
* The template for the Avatar component.
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export function avatarTemplate() {
|
|
20
|
+
return html `
|
|
21
|
+
<template role="img" data-color=${x => x.generateColor()}>
|
|
22
|
+
<slot>${x => (x.name || x.initials ? x.generateInitials() : defaultIconTemplate)}</slot>
|
|
23
|
+
<slot name="badge"></slot>
|
|
24
|
+
</template>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
export const template = avatarTemplate();
|
|
28
|
+
//# sourceMappingURL=avatar.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.template.js","sourceRoot":"","sources":["../../../src/avatar/avatar.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpE,MAAM,mBAAmB,GAAG,IAAI,CAAA;;;;;;;;;;;;OAYzB,CAAC;AAER;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,IAAI,CAAG;sCACsB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE;cAC9C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAAC;;;GAGnF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAgC,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/avatar/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/badge/badge.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAyB,MAAM,oBAAoB,CAAC;AAExF;;;GAGG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE;;;;;;WAMG;QAEI,eAAU,GAAoB,eAAe,CAAC,MAAM,CAAC;QAE5D;;;;;;WAMG;QAEI,UAAK,GAAe,UAAU,CAAC,KAAK,CAAC;IAoB9C,CAAC;CAAA;AA9BC;IADC,IAAI;yCACuD;AAU5D;IADC,IAAI;oCACuC;AAS5C;IADC,IAAI;
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/badge/badge.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAyB,MAAM,oBAAoB,CAAC;AAExF;;;GAGG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE;;;;;;WAMG;QAEI,eAAU,GAAoB,eAAe,CAAC,MAAM,CAAC;QAE5D;;;;;;WAMG;QAEI,UAAK,GAAe,UAAU,CAAC,KAAK,CAAC;IAoB9C,CAAC;CAAA;AA9BC;IADC,IAAI;yCACuD;AAU5D;IADC,IAAI;oCACuC;AAS5C;IADC,IAAI;oCACqB;AAU1B;IADC,IAAI;mCACmB;AAW1B,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"counter-badge.js","sourceRoot":"","sources":["../../../src/counter-badge/counter-badge.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQnE;;;GAGG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QAwCE;;;;;;WAMG;QAEI,UAAK,GAAW,CAAC,CAAC;QAKzB;;;;;;WAMG;QAEI,kBAAa,GAAW,EAAE,CAAC;QAKlC;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAEjC;;;;;;WAMG;QAEI,QAAG,GAAY,KAAK,CAAC;IAiB9B,CAAC;IApDW,YAAY;QACpB,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;I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AAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;YAC/C,OAAO,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;SAC3E;QAED,OAAO;IACT,CAAC;CACF;AA5FC;IADC,IAAI;gDACsC;AAU3C;IADC,IAAI;2CAC4B;AASjC;IADC,IAAI;2CAC4B;AAUjC;IADC,IAAI;0CAC0B;AAU/B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;2CACpB;AAazB;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;mDACxC;AAalC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACjB;AAUjC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;yCACE;AA2B9B,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"counter-badge.template.js","sourceRoot":"","sources":["../../../src/counter-badge/counter-badge.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"counter-badge.template.js","sourceRoot":"","sources":["../../../src/counter-badge/counter-badge.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK3D,SAAS,eAAe,CAAiC,UAA+B,EAAE;IACxF,OAAO,aAAa,CAAI;QACtB,cAAc,EAAE,IAAI,CAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE;KAC9C,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAsC,eAAe,EAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/divider/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { Divider } from './divider.js';
|
|
3
|
+
import { template } from './divider.template.js';
|
|
4
|
+
import { styles } from './divider.styles.js';
|
|
5
|
+
/**
|
|
6
|
+
* The Fluent Divider Element
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
* @remarks
|
|
10
|
+
* HTML Element: \<fluent-divider\>
|
|
11
|
+
*/
|
|
12
|
+
export const definition = Divider.compose({
|
|
13
|
+
name: `${FluentDesignSystem.prefix}-divider`,
|
|
14
|
+
template,
|
|
15
|
+
styles,
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=divider.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.definition.js","sourceRoot":"","sources":["../../../src/divider/divider.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;IACxC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,UAAU;IAC5C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
3
|
+
import { FASTDivider } from '@microsoft/fast-foundation';
|
|
4
|
+
/**
|
|
5
|
+
* @class Divider component
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
export class Divider extends FASTDivider {
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
attr({ attribute: 'align-content' })
|
|
14
|
+
], Divider.prototype, "alignContent", void 0);
|
|
15
|
+
__decorate([
|
|
16
|
+
attr
|
|
17
|
+
], Divider.prototype, "appearance", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
attr({ mode: 'boolean' })
|
|
20
|
+
], Divider.prototype, "inset", void 0);
|
|
21
|
+
//# sourceMappingURL=divider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../../src/divider/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD;;;;;GAKG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;CA2BvC;AAnBC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;6CACK;AAS1C;IADC,IAAI;2CACiC;AAStC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;sCACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DividerOrientation, DividerRole } 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 const DividerAlignContent = {
|
|
17
|
+
center: 'center',
|
|
18
|
+
start: 'start',
|
|
19
|
+
end: 'end',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* DividerAppearance - divider color defined by a design token alias.
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export const DividerAppearance = {
|
|
26
|
+
strong: 'strong',
|
|
27
|
+
brand: 'brand',
|
|
28
|
+
subtle: 'subtle',
|
|
29
|
+
default: 'default',
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=divider.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.options.js","sourceRoot":"","sources":["../../../src/divider/divider.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAY,MAAM,4BAA4B,CAAC;AAEvF;;;GAGG;AACH,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC"}
|