@fluentui/web-components 3.0.0-alpha.1 → 3.0.0-alpha.11
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 +421 -7
- package/CHANGELOG.md +230 -97
- package/dist/dts/accordion/accordion.d.ts +7 -0
- package/dist/dts/accordion/accordion.definition.d.ts +11 -0
- package/dist/dts/accordion/accordion.styles.d.ts +1 -0
- package/dist/dts/accordion/accordion.template.d.ts +3 -0
- package/dist/dts/accordion/define.d.ts +1 -0
- package/dist/dts/accordion/index.d.ts +4 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +33 -0
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +11 -0
- package/dist/dts/accordion-item/accordion-item.options.d.ts +27 -0
- package/dist/dts/accordion-item/accordion-item.styles.d.ts +1 -0
- package/dist/dts/accordion-item/accordion-item.template.d.ts +7 -0
- package/dist/dts/accordion-item/define.d.ts +1 -0
- package/dist/dts/accordion-item/index.d.ts +5 -0
- 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 +49 -0
- package/dist/dts/badge/badge.definition.d.ts +11 -0
- package/dist/dts/badge/badge.options.d.ts +73 -0
- package/dist/dts/badge/badge.styles.d.ts +4 -0
- package/dist/dts/badge/badge.template.d.ts +9 -0
- package/dist/dts/badge/define.d.ts +1 -0
- package/dist/dts/badge/index.d.ts +5 -0
- package/dist/dts/counter-badge/counter-badge.d.ts +90 -0
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +11 -0
- package/dist/dts/counter-badge/counter-badge.options.d.ts +69 -0
- package/dist/dts/counter-badge/counter-badge.styles.d.ts +4 -0
- package/dist/dts/counter-badge/counter-badge.template.d.ts +7 -0
- package/dist/dts/counter-badge/define.d.ts +1 -0
- package/dist/dts/counter-badge/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/fluent-design-system.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-rollup.d.ts +1 -1
- package/dist/dts/index.d.ts +12 -1
- package/dist/dts/progress-bar/define.d.ts +1 -0
- package/dist/dts/progress-bar/index.d.ts +5 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +30 -0
- package/dist/dts/progress-bar/progress-bar.definition.d.ts +10 -0
- package/dist/dts/progress-bar/progress-bar.options.d.ts +41 -0
- package/dist/dts/progress-bar/progress-bar.styles.d.ts +4 -0
- package/dist/dts/progress-bar/progress-bar.template.d.ts +3 -0
- package/dist/dts/spinner/define.d.ts +1 -0
- package/dist/dts/spinner/index.d.ts +5 -0
- package/dist/dts/spinner/spinner.d.ts +25 -0
- package/dist/dts/spinner/spinner.definition.d.ts +11 -0
- package/dist/dts/spinner/spinner.options.d.ts +32 -0
- package/dist/dts/spinner/spinner.styles.d.ts +1 -0
- package/dist/dts/spinner/spinner.template.d.ts +3 -0
- package/dist/dts/styles/index.d.ts +1 -0
- package/dist/dts/styles/partials/badge.partials.d.ts +28 -0
- package/dist/dts/styles/partials/index.d.ts +1 -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/text/define.d.ts +1 -0
- package/dist/dts/text/index.d.ts +5 -0
- package/dist/dts/text/text.d.ts +91 -0
- package/dist/dts/text/text.definition.d.ts +10 -0
- package/dist/dts/text/text.options.d.ts +67 -0
- package/dist/dts/text/text.styles.d.ts +4 -0
- package/dist/dts/text/text.template.d.ts +6 -0
- package/dist/dts/theme/design-tokens.d.ts +5 -0
- package/dist/dts/theme/index.d.ts +2 -2
- package/dist/dts/utils/get-initials.d.ts +18 -0
- package/dist/esm/accordion/accordion.definition.js +19 -0
- package/dist/esm/accordion/accordion.definition.js.map +1 -0
- package/dist/esm/accordion/accordion.js +8 -0
- package/dist/esm/accordion/accordion.js.map +1 -0
- package/dist/esm/accordion/accordion.styles.js +12 -0
- package/dist/esm/accordion/accordion.styles.js.map +1 -0
- package/dist/esm/accordion/accordion.template.js +3 -0
- package/dist/esm/accordion/accordion.template.js.map +1 -0
- package/dist/esm/accordion/define.js +4 -0
- package/dist/esm/accordion/define.js.map +1 -0
- package/dist/esm/accordion/index.js +5 -0
- package/dist/esm/accordion/index.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition.js +19 -0
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +29 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.options.js +17 -0
- package/dist/esm/accordion-item/accordion-item.options.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.js +198 -0
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.template.js +37 -0
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -0
- package/dist/esm/accordion-item/define.js +4 -0
- package/dist/esm/accordion-item/define.js.map +1 -0
- package/dist/esm/accordion-item/index.js +6 -0
- package/dist/esm/accordion-item/index.js.map +1 -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 +477 -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.definition.js +19 -0
- package/dist/esm/badge/badge.definition.js.map +1 -0
- package/dist/esm/badge/badge.js +43 -0
- package/dist/esm/badge/badge.js.map +1 -0
- package/dist/esm/badge/badge.options.js +46 -0
- package/dist/esm/badge/badge.options.js.map +1 -0
- package/dist/esm/badge/badge.styles.js +30 -0
- package/dist/esm/badge/badge.styles.js.map +1 -0
- package/dist/esm/badge/badge.template.js +15 -0
- package/dist/esm/badge/badge.template.js.map +1 -0
- package/dist/esm/badge/define.js +4 -0
- package/dist/esm/badge/define.js.map +1 -0
- package/dist/esm/badge/index.js +6 -0
- package/dist/esm/badge/index.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition.js +19 -0
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.js +90 -0
- package/dist/esm/counter-badge/counter-badge.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.options.js +43 -0
- package/dist/esm/counter-badge/counter-badge.options.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.styles.js +31 -0
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.template.js +13 -0
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -0
- package/dist/esm/counter-badge/define.js +4 -0
- package/dist/esm/counter-badge/define.js.map +1 -0
- package/dist/esm/counter-badge/index.js +6 -0
- package/dist/esm/counter-badge/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 +115 -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/fluent-design-system.js +6 -0
- package/dist/esm/fluent-design-system.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 +56 -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-rollup.js +2 -1
- package/dist/esm/index-rollup.js.map +1 -0
- package/dist/esm/index.js +13 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/progress-bar/define.js +4 -0
- package/dist/esm/progress-bar/define.js.map +1 -0
- package/dist/esm/progress-bar/index.js +6 -0
- package/dist/esm/progress-bar/index.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.definition.js +18 -0
- package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +29 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.options.js +26 -0
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.styles.js +157 -0
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.template.js +6 -0
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -0
- package/dist/esm/spinner/define.js +4 -0
- package/dist/esm/spinner/define.js.map +1 -0
- package/dist/esm/spinner/index.js +6 -0
- package/dist/esm/spinner/index.js.map +1 -0
- package/dist/esm/spinner/spinner.definition.js +19 -0
- package/dist/esm/spinner/spinner.definition.js.map +1 -0
- package/dist/esm/spinner/spinner.js +16 -0
- package/dist/esm/spinner/spinner.js.map +1 -0
- package/dist/esm/spinner/spinner.options.js +22 -0
- package/dist/esm/spinner/spinner.options.js.map +1 -0
- package/dist/esm/spinner/spinner.styles.js +97 -0
- package/dist/esm/spinner/spinner.styles.js.map +1 -0
- package/dist/esm/spinner/spinner.template.js +22 -0
- package/dist/esm/spinner/spinner.template.js.map +1 -0
- package/dist/esm/styles/index.js +2 -0
- package/dist/esm/styles/index.js.map +1 -0
- package/dist/esm/styles/partials/badge.partials.js +274 -0
- package/dist/esm/styles/partials/badge.partials.js.map +1 -0
- package/dist/esm/styles/partials/index.js +2 -0
- package/dist/esm/styles/partials/index.js.map +1 -0
- 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 +115 -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/text/define.js +4 -0
- package/dist/esm/text/define.js.map +1 -0
- package/dist/esm/text/index.js +6 -0
- package/dist/esm/text/index.js.map +1 -0
- package/dist/esm/text/text.definition.js +18 -0
- package/dist/esm/text/text.definition.js.map +1 -0
- package/dist/esm/text/text.js +92 -0
- package/dist/esm/text/text.js.map +1 -0
- package/dist/esm/text/text.options.js +46 -0
- package/dist/esm/text/text.options.js.map +1 -0
- package/dist/esm/text/text.styles.js +111 -0
- package/dist/esm/text/text.styles.js.map +1 -0
- package/dist/esm/text/text.template.js +6 -0
- package/dist/esm/text/text.template.js.map +1 -0
- package/dist/esm/theme/design-tokens.js +6 -0
- package/dist/esm/theme/design-tokens.js.map +1 -0
- package/dist/esm/theme/index.js +3 -2
- package/dist/esm/theme/index.js.map +1 -0
- package/dist/esm/theme/set-theme.js +2 -1
- package/dist/esm/theme/set-theme.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 +16602 -8
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/web-components.d.ts +2072 -1
- package/dist/web-components.js +7494 -2
- package/dist/web-components.min.js +288 -1
- package/docs/api-report.md +1809 -1
- package/package.json +76 -23
- package/build/clean.js +0 -29
- package/build/transform-fragments.js +0 -29
- package/dist/dts/theme/theme.stories.d.ts +0 -5
- package/dist/esm/theme/theme.stories.js +0 -21
- package/karma.conf.js +0 -147
- package/public/SegoeUI-VF.ttf +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.png +0 -0
- package/public/theme-switch.ts +0 -13
- package/rollup.config.js +0 -53
- package/storybook-typings.d.ts +0 -4
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import type { TextAlign, TextFont, TextSize, TextWeight } from './text.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* The base class used for constructing a fluent-text custom element
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Text extends FASTElement {
|
|
8
|
+
/**
|
|
9
|
+
* The text will not wrap
|
|
10
|
+
* NOTE: In Fluent UI React v9 this is "wrap"
|
|
11
|
+
* Boolean attributes which default to true in HTML can't be switched off in the DOM
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
* @remarks
|
|
15
|
+
* HTML Attribute: nowrap
|
|
16
|
+
*/
|
|
17
|
+
nowrap: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The text truncates
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
* @remarks
|
|
23
|
+
* HTML Attribute: truncate
|
|
24
|
+
*/
|
|
25
|
+
truncate: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The text style is italic
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
* @remarks
|
|
31
|
+
* HTML Attribute: italic
|
|
32
|
+
*/
|
|
33
|
+
italic: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The text style is underline
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
* @remarks
|
|
39
|
+
* HTML Attribute: underline
|
|
40
|
+
*/
|
|
41
|
+
underline: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The text style is strikethrough
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
* @remarks
|
|
47
|
+
* HTML Attribute: strikethrough
|
|
48
|
+
*/
|
|
49
|
+
strikethrough: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* An text can take up the width of its container.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: block
|
|
56
|
+
*/
|
|
57
|
+
block: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* THe Text size
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
* @remarks
|
|
63
|
+
* HTML Attribute: size
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
size?: TextSize;
|
|
67
|
+
/**
|
|
68
|
+
* THe Text font
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @remarks
|
|
72
|
+
* HTML Attribute: font
|
|
73
|
+
*/
|
|
74
|
+
font?: TextFont;
|
|
75
|
+
/**
|
|
76
|
+
* THe Text weight
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
* @remarks
|
|
80
|
+
* HTML Attribute: weight
|
|
81
|
+
*/
|
|
82
|
+
weight?: TextWeight;
|
|
83
|
+
/**
|
|
84
|
+
* THe Text align
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
* @remarks
|
|
88
|
+
* HTML Attribute: align
|
|
89
|
+
*/
|
|
90
|
+
align?: TextAlign;
|
|
91
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* TextSize constants
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const TextSize: {
|
|
7
|
+
readonly _100: "100";
|
|
8
|
+
readonly _200: "200";
|
|
9
|
+
readonly _300: "300";
|
|
10
|
+
readonly _400: "400";
|
|
11
|
+
readonly _500: "500";
|
|
12
|
+
readonly _600: "600";
|
|
13
|
+
readonly _700: "700";
|
|
14
|
+
readonly _800: "800";
|
|
15
|
+
readonly _900: "900";
|
|
16
|
+
readonly _1000: "1000";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The type for TextSize
|
|
20
|
+
* The font size and line height based on the theme tokens
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare type TextSize = ValuesOf<typeof TextSize>;
|
|
24
|
+
/**
|
|
25
|
+
* TextFont Constants
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare const TextFont: {
|
|
29
|
+
readonly base: "base";
|
|
30
|
+
readonly numeric: "numeric";
|
|
31
|
+
readonly monospace: "monospace";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Applies font family to the content
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare type TextFont = ValuesOf<typeof TextFont>;
|
|
38
|
+
/**
|
|
39
|
+
* TextWeight Constants
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare const TextWeight: {
|
|
43
|
+
readonly medium: "medium";
|
|
44
|
+
readonly regular: "regular";
|
|
45
|
+
readonly semibold: "semibold";
|
|
46
|
+
readonly bold: "bold";
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Applies font weight to the content
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare type TextWeight = ValuesOf<typeof TextWeight>;
|
|
53
|
+
/**
|
|
54
|
+
* TextAlign Constants
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export declare const TextAlign: {
|
|
58
|
+
readonly start: "start";
|
|
59
|
+
readonly end: "end";
|
|
60
|
+
readonly center: "center";
|
|
61
|
+
readonly justify: "justify";
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Aligns the content
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare type TextAlign = ValuesOf<typeof TextAlign>;
|
|
@@ -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>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './design-tokens';
|
|
2
|
-
export { setTheme } from './set-theme';
|
|
1
|
+
export * from './design-tokens.js';
|
|
2
|
+
export { setTheme } from './set-theme.js';
|
|
@@ -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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { Accordion } from './accordion.js';
|
|
3
|
+
import { styles } from './accordion.styles.js';
|
|
4
|
+
import { template } from './accordion.template.js';
|
|
5
|
+
/**
|
|
6
|
+
* The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion },
|
|
7
|
+
* {@link @microsoft/fast-foundation#accordionTemplate}
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
* @remarks
|
|
12
|
+
* HTML Element: \<fluent-accordion\>
|
|
13
|
+
*/
|
|
14
|
+
export const definition = Accordion.compose({
|
|
15
|
+
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
16
|
+
template,
|
|
17
|
+
styles,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=accordion.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.definition.js","sourceRoot":"","sources":["../../../src/accordion/accordion.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC;IAC1C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,YAAY;IAC9C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,aAAa;CAAG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
export const styles = css `
|
|
4
|
+
${display('flex')}
|
|
5
|
+
|
|
6
|
+
:host {
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
width: 100%;
|
|
9
|
+
contain: content;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
//# sourceMappingURL=accordion.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.styles.js","sourceRoot":"","sources":["../../../src/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;;;;;CAOlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.template.js","sourceRoot":"","sources":["../../../src/accordion/accordion.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,MAAM,CAAC,MAAM,QAAQ,GAAmC,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/accordion/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './accordion.js';
|
|
2
|
+
export { template as accordionTemplate } from './accordion.template.js';
|
|
3
|
+
export { styles as accordionStyles } from './accordion.styles.js';
|
|
4
|
+
export { definition as accordionDefinition } from './accordion.definition.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { AccordionItem } from './accordion-item.js';
|
|
3
|
+
import { styles } from './accordion-item.styles.js';
|
|
4
|
+
import { template } from './accordion-item.template.js';
|
|
5
|
+
/**
|
|
6
|
+
* The Fluent AccordionItem Element. Implements {@link @microsoft/fast-foundation#AccordionItem },
|
|
7
|
+
* {@link @microsoft/fast-foundation#accordionItemTemplate}
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
* @remarks
|
|
12
|
+
* HTML Element: \<fluent-accordion-item\>
|
|
13
|
+
*/
|
|
14
|
+
export const definition = AccordionItem.compose({
|
|
15
|
+
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
16
|
+
template,
|
|
17
|
+
styles,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=accordion-item.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.definition.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,CAAC;IAC9C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,iBAAiB;IACnD,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
3
|
+
import { FASTAccordionItem } from '@microsoft/fast-foundation';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export class AccordionItem extends FASTAccordionItem {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
/**
|
|
11
|
+
* Sets the width of the focus state.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
* @remarks
|
|
15
|
+
* HTML Attribute: block
|
|
16
|
+
*/
|
|
17
|
+
this.block = false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
attr
|
|
22
|
+
], AccordionItem.prototype, "size", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
attr({ mode: 'boolean' })
|
|
25
|
+
], AccordionItem.prototype, "block", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
attr({ attribute: 'expand-icon-position' })
|
|
28
|
+
], AccordionItem.prototype, "expandIconPosition", void 0);
|
|
29
|
+
//# sourceMappingURL=accordion-item.js.map
|
|
@@ -0,0 +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;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
|
+
/**
|
|
2
|
+
* An Accordion Item header font size can be small, medium, large, and extra-large
|
|
3
|
+
*/
|
|
4
|
+
export const AccordionItemSize = {
|
|
5
|
+
small: 'small',
|
|
6
|
+
medium: 'medium',
|
|
7
|
+
large: 'large',
|
|
8
|
+
extraLarge: 'extra-large',
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* An Accordion Item expand/collapse icon can appear at the start or end of the accordion
|
|
12
|
+
*/
|
|
13
|
+
export const AccordionItemExpandIconPosition = {
|
|
14
|
+
start: 'start',
|
|
15
|
+
end: 'end',
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=accordion-item.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.options.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.options.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,aAAa;CACjB,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { borderRadiusMedium, borderRadiusSmall, colorNeutralForeground1, colorNeutralForegroundDisabled, colorStrokeFocus1, colorStrokeFocus2, colorTransparentBackground, fontFamilyBase, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontWeightRegular, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalS, } from '../theme/design-tokens.js';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${display('block')}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
max-width: fit-content;
|
|
9
|
+
contain: content;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.heading {
|
|
13
|
+
height: 44px;
|
|
14
|
+
display: grid;
|
|
15
|
+
position: relative;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
padding-inline: ${spacingHorizontalM} ${spacingHorizontalMNudge};
|
|
18
|
+
border-radius: ${borderRadiusMedium};
|
|
19
|
+
font-family: ${fontFamilyBase};
|
|
20
|
+
font-size: ${fontSizeBase300};
|
|
21
|
+
font-weight: ${fontWeightRegular};
|
|
22
|
+
line-height: ${lineHeightBase300};
|
|
23
|
+
grid-template-columns: auto auto 1fr auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.heading-content {
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.button {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
appearance: none;
|
|
35
|
+
border: none;
|
|
36
|
+
outline: none;
|
|
37
|
+
text-align: start;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
font-family: inherit;
|
|
40
|
+
height: 44px;
|
|
41
|
+
color: ${colorNeutralForeground1};
|
|
42
|
+
background: ${colorTransparentBackground};
|
|
43
|
+
line-height: ${lineHeightBase300};
|
|
44
|
+
height: auto;
|
|
45
|
+
padding: 0;
|
|
46
|
+
font-size: inherit;
|
|
47
|
+
grid-column: auto / span 2;
|
|
48
|
+
grid-row: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.button::before {
|
|
52
|
+
content: '';
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset: 0px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
border-radius: ${borderRadiusSmall};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.icon {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
position: relative;
|
|
65
|
+
height: 100%;
|
|
66
|
+
padding-right: ${spacingHorizontalS};
|
|
67
|
+
grid-column: 1 / span 1;
|
|
68
|
+
grid-row: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.region {
|
|
72
|
+
margin: 0 ${spacingHorizontalM};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
::slotted([slot='start']),
|
|
76
|
+
::slotted([slot='end']) {
|
|
77
|
+
justify-content: center;
|
|
78
|
+
align-items: center;
|
|
79
|
+
padding-right: ${spacingHorizontalS};
|
|
80
|
+
grid-column: 2 / span 1;
|
|
81
|
+
grid-row: 1 / span 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
button:focus-visible::after {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: 0px;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
border-radius: ${borderRadiusSmall};
|
|
90
|
+
outline: none;
|
|
91
|
+
border: 2px solid ${colorStrokeFocus1};
|
|
92
|
+
box-shadow: inset 0 0 0 1px ${colorStrokeFocus2};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* --- Disabled attr styles --- */
|
|
96
|
+
|
|
97
|
+
:host([disabled]) .button {
|
|
98
|
+
color: ${colorNeutralForegroundDisabled};
|
|
99
|
+
}
|
|
100
|
+
:host([disabled]) svg {
|
|
101
|
+
filter: invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* --- Expanded attr styles --- */
|
|
105
|
+
|
|
106
|
+
:host([expanded]) .region {
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([expanded]) .default-collapsed-icon,
|
|
111
|
+
:host([expanded]) ::slotted([slot='collapsed-icon']),
|
|
112
|
+
:host(:not([expanded])) .default-expanded-icon,
|
|
113
|
+
:host(:not([expanded])) ::slotted([slot='expanded-icon']),
|
|
114
|
+
:host([expanded]) ::slotted([slot='end']),
|
|
115
|
+
::slotted([slot='start']),
|
|
116
|
+
.region {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([expanded]) ::slotted([slot='start']),
|
|
121
|
+
:host([expanded]) ::slotted([slot='expanded-icon']),
|
|
122
|
+
:host(:not([expanded])) ::slotted([slot='collapsed-icon']),
|
|
123
|
+
::slotted([slot='end']) {
|
|
124
|
+
display: flex;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* --- Appearance attr styles --- */
|
|
128
|
+
|
|
129
|
+
.heading {
|
|
130
|
+
font-size: ${fontSizeBase300};
|
|
131
|
+
line-height: ${lineHeightBase300};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([size='small']) .heading {
|
|
135
|
+
font-size: ${fontSizeBase200};
|
|
136
|
+
line-height: ${lineHeightBase200};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([size='large']) .heading {
|
|
140
|
+
font-size: ${fontSizeBase400};
|
|
141
|
+
line-height: ${lineHeightBase400};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host([size='extra-large']) .heading {
|
|
145
|
+
font-size: ${fontSizeBase500};
|
|
146
|
+
line-height: ${lineHeightBase500};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* --- expand-icon-position attr styles --- */
|
|
150
|
+
|
|
151
|
+
:host([expand-icon-position='end']) :slotted(span[slot='start']),
|
|
152
|
+
:host([expand-icon-position='end']) ::slotted(span[slot='end']) {
|
|
153
|
+
grid-column: 1 / span 1;
|
|
154
|
+
grid-row: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:host([expand-icon-position='end']) ::slotted(span[slot='start']),
|
|
158
|
+
:host([expand-icon-position='end']) ::slotted(span[slot='end']) {
|
|
159
|
+
grid-column: 1 / span 1;
|
|
160
|
+
grid-row: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host([expand-icon-position='end']) .icon {
|
|
164
|
+
grid-column: 4 / span 1;
|
|
165
|
+
grid-row: 1;
|
|
166
|
+
display: flex;
|
|
167
|
+
padding-left: 10px;
|
|
168
|
+
padding-right: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host([expand-icon-position='end']) .button {
|
|
172
|
+
grid-column: 2 / span 3;
|
|
173
|
+
grid-row: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* --- Block attr styles --- */
|
|
177
|
+
|
|
178
|
+
:host([block]) {
|
|
179
|
+
max-width: 100%;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:host([expand-icon-position='end']) .heading {
|
|
183
|
+
grid-template-columns: auto auto 28px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([expand-icon-position='end']) .icon {
|
|
187
|
+
grid-column: 5 / span 1;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:host([block][expand-icon-position='end']) .heading {
|
|
191
|
+
grid-template-columns: auto 1fr;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host([block][expand-icon-position='end']) .icon {
|
|
195
|
+
grid-column: 5 / span 1;
|
|
196
|
+
}
|
|
197
|
+
`;
|
|
198
|
+
//# sourceMappingURL=accordion-item.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.styles.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;;;;;;;;;;sBAYE,kBAAkB,IAAI,uBAAuB;qBAC9C,kBAAkB;mBACpB,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;;;;;;;;;;;;;;;;aAmBvB,uBAAuB;kBAClB,0BAA0B;mBACzB,iBAAiB;;;;;;;;;;;;;qBAaf,iBAAiB;;;;;;;;;;qBAUjB,kBAAkB;;;;;;gBAMvB,kBAAkB;;;;;;;qBAOb,kBAAkB;;;;;;;;;;qBAUlB,iBAAiB;;wBAEd,iBAAiB;kCACP,iBAAiB;;;;;;aAMtC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgC1B,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { html } from '@microsoft/fast-element';
|
|
2
|
+
import { accordionItemTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
const chevronRight20Filled = html.partial(`<svg
|
|
4
|
+
width="20"
|
|
5
|
+
height="20"
|
|
6
|
+
viewBox="0 0 20 20"
|
|
7
|
+
fill="none"
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
class="default-collapsed-icon"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
13
|
+
fill="#212121"
|
|
14
|
+
/>
|
|
15
|
+
</svg>`);
|
|
16
|
+
const chevronDown20Filled = html.partial(`<svg
|
|
17
|
+
width="20"
|
|
18
|
+
height="20"
|
|
19
|
+
viewBox="0 0 20 20"
|
|
20
|
+
fill="none"
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
class="default-expanded-icon"
|
|
23
|
+
>
|
|
24
|
+
<path
|
|
25
|
+
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
26
|
+
fill="#212121"
|
|
27
|
+
/>
|
|
28
|
+
</svg>`);
|
|
29
|
+
/**
|
|
30
|
+
* The template for the fluent-accordion component.
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export const template = accordionItemTemplate({
|
|
34
|
+
collapsedIcon: chevronRight20Filled,
|
|
35
|
+
expandedIcon: chevronDown20Filled,
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=accordion-item.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.template.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,MAAM,oBAAoB,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;OAYnC,CAAC,CAAC;AAET,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;OAYlC,CAAC,CAAC;AAET;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAuC,qBAAqB,CAAC;IAChF,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/accordion-item/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './accordion-item.js';
|
|
2
|
+
export * from './accordion-item.options.js';
|
|
3
|
+
export { styles as accordionItemStyles } from './accordion-item.styles.js';
|
|
4
|
+
export { definition as accordionItemDefinition } from './accordion-item.definition.js';
|
|
5
|
+
export { template as accordionItemTemplate } from './accordion-item.template.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accordion-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,MAAM,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,QAAQ,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
|