@fluentui/web-components 3.0.0-alpha.1 → 3.0.0-alpha.10
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 +400 -7
- package/CHANGELOG.md +220 -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 +11 -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 +197 -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 +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.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 +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/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 +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-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 +156 -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 +96 -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 +273 -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 +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/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 +107 -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 +7403 -2
- package/dist/web-components.min.js +287 -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,69 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
import { BadgeOptions } from '../badge/badge.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* CounterBadge options
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare type CounterBadgeOptions = BadgeOptions;
|
|
8
|
+
/**
|
|
9
|
+
* CounterBadgeAppearance constants
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare const CounterBadgeAppearance: {
|
|
13
|
+
readonly filled: "filled";
|
|
14
|
+
readonly ghost: "ghost";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A CounterBadge can have an appearance of filled or ghost
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare type CounterBadgeAppearance = ValuesOf<typeof CounterBadgeAppearance>;
|
|
21
|
+
/**
|
|
22
|
+
* CounterBadgeColor constants
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare const CounterBadgeColor: {
|
|
26
|
+
readonly brand: "brand";
|
|
27
|
+
readonly danger: "danger";
|
|
28
|
+
readonly important: "important";
|
|
29
|
+
readonly informative: "informative";
|
|
30
|
+
readonly severe: "severe";
|
|
31
|
+
readonly subtle: "subtle";
|
|
32
|
+
readonly success: "success";
|
|
33
|
+
readonly warning: "warning";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* A CounterBadge can be one of preset colors
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare type CounterBadgeColor = ValuesOf<typeof CounterBadgeColor>;
|
|
40
|
+
/**
|
|
41
|
+
* A CounterBadge shape can be circular or rounded.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare const CounterBadgeShape: {
|
|
45
|
+
readonly circular: "circular";
|
|
46
|
+
readonly rounded: "rounded";
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A CounterBadge can be one of preset colors
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare type CounterBadgeShape = ValuesOf<typeof CounterBadgeShape>;
|
|
53
|
+
/**
|
|
54
|
+
* A CounterBadge can be square, circular or rounded.
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export declare const CounterBadgeSize: {
|
|
58
|
+
readonly tiny: "tiny";
|
|
59
|
+
readonly extraSmall: "extra-small";
|
|
60
|
+
readonly small: "small";
|
|
61
|
+
readonly medium: "medium";
|
|
62
|
+
readonly large: "large";
|
|
63
|
+
readonly extraLarge: "extra-large";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* A CounterBadge can be on of several preset sizes.
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export declare type CounterBadgeSize = ValuesOf<typeof CounterBadgeSize>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './counter-badge.js';
|
|
2
|
+
export * from './counter-badge.options.js';
|
|
3
|
+
export { template as CounterBadgeTemplate } from './counter-badge.template.js';
|
|
4
|
+
export { styles as CounterBadgeStyles } from './counter-badge.styles.js';
|
|
5
|
+
export { definition as CounterBadgeDefinition } from './counter-badge.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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './index';
|
|
1
|
+
export * from './index.js';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './accordion/index.js';
|
|
2
|
+
export * from './accordion-item/index.js';
|
|
3
|
+
export * from './avatar/index.js';
|
|
4
|
+
export * from './badge/index.js';
|
|
5
|
+
export * from './counter-badge/index.js';
|
|
6
|
+
export * from './divider/index.js';
|
|
7
|
+
export * from './image/index.js';
|
|
8
|
+
export * from './progress-bar/index.js';
|
|
9
|
+
export * from './spinner/index.js';
|
|
10
|
+
export * from './switch/index.js';
|
|
11
|
+
export * from './text/index.js';
|
|
12
|
+
export * from './theme/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './progress-bar.js';
|
|
2
|
+
export * from './progress-bar.options.js';
|
|
3
|
+
export { definition as ProgressBarDefinition } from './progress-bar.definition.js';
|
|
4
|
+
export { styles as ProgressBarStyles } from './progress-bar.styles.js';
|
|
5
|
+
export { template as ProgressBarTemplate } from './progress-bar.template.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FASTProgress } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { ProgressBarShape, ProgressBarThickness, ProgressBarValidationState } from './progress-bar.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* The base class used for constructing a fluent-progress-bar custom element
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProgressBar extends FASTProgress {
|
|
8
|
+
/**
|
|
9
|
+
* The thickness of the progress bar
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @remarks
|
|
13
|
+
* HTML Attribute: thickness
|
|
14
|
+
*/
|
|
15
|
+
thickness?: ProgressBarThickness;
|
|
16
|
+
/**
|
|
17
|
+
* The shape of the progress bar
|
|
18
|
+
* @public
|
|
19
|
+
* @remarks
|
|
20
|
+
* HTML Attribute: shape
|
|
21
|
+
*/
|
|
22
|
+
shape?: ProgressBarShape;
|
|
23
|
+
/**
|
|
24
|
+
* The validation state of the progress bar
|
|
25
|
+
* @public
|
|
26
|
+
* @remarks
|
|
27
|
+
* HTML Attribute: validation-state
|
|
28
|
+
*/
|
|
29
|
+
validationState: ProgressBarValidationState | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProgressBar } from './progress-bar.js';
|
|
2
|
+
/**
|
|
3
|
+
* The Fluent ProgressBar Element.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @remarks
|
|
8
|
+
* HTML Element: \<fluent-progress-bar\>
|
|
9
|
+
*/
|
|
10
|
+
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof ProgressBar>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* ProgressBarThickness Constants
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProgressBarThickness: {
|
|
7
|
+
readonly medium: "medium";
|
|
8
|
+
readonly large: "large";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Applies bar thickness to the content
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare type ProgressBarThickness = ValuesOf<typeof ProgressBarThickness>;
|
|
15
|
+
/**
|
|
16
|
+
* ProgressBarShape Constants
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export declare const ProgressBarShape: {
|
|
20
|
+
readonly rounded: "rounded";
|
|
21
|
+
readonly square: "square";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Applies bar shape to the content
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export declare type ProgressBarShape = ValuesOf<typeof ProgressBarShape>;
|
|
28
|
+
/**
|
|
29
|
+
* ProgressBarValidationState Constants
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare const ProgressBarValidationState: {
|
|
33
|
+
readonly success: "success";
|
|
34
|
+
readonly warning: "warning";
|
|
35
|
+
readonly error: "error";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Applies validation state to the content
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export declare type ProgressBarValidationState = ValuesOf<typeof ProgressBarValidationState>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './spinner.js';
|
|
2
|
+
export * from './spinner.options.js';
|
|
3
|
+
export { template as SpinnerTemplate } from './spinner.template.js';
|
|
4
|
+
export { styles as SpinnerStyles } from './spinner.styles.js';
|
|
5
|
+
export { definition as SpinnerDefinition } from './spinner.definition.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FASTProgressRing } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { SpinnerAppearance, SpinnerSize } from './spinner.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* The base class used for constructing a fluent-spinner custom element
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Spinner extends FASTProgressRing {
|
|
8
|
+
/**
|
|
9
|
+
* The size of the spinner
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @default 'medium'
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: size
|
|
15
|
+
*/
|
|
16
|
+
size?: SpinnerSize;
|
|
17
|
+
/**
|
|
18
|
+
* The appearance of the spinner
|
|
19
|
+
* @public
|
|
20
|
+
* @default 'primary'
|
|
21
|
+
* @remarks
|
|
22
|
+
* HTML Attribute: appearance
|
|
23
|
+
*/
|
|
24
|
+
appearance?: SpinnerAppearance;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Spinner } from './spinner.js';
|
|
2
|
+
/**
|
|
3
|
+
* The Fluent Spinner Element. Implements {@link @microsoft/fast-foundation#ProgressRing },
|
|
4
|
+
* {@link @microsoft/fast-foundation#progress-ringTemplate}
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
* @remarks
|
|
9
|
+
* HTML Element: \<fluent-spinner\>
|
|
10
|
+
*/
|
|
11
|
+
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof Spinner>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* SpinnerAppearance constants
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const SpinnerAppearance: {
|
|
7
|
+
readonly primary: "primary";
|
|
8
|
+
readonly inverted: "inverted";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A Spinner's appearance can be either primary or inverted
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare type SpinnerAppearance = ValuesOf<typeof SpinnerAppearance>;
|
|
15
|
+
/**
|
|
16
|
+
* SpinnerSize constants
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export declare const SpinnerSize: {
|
|
20
|
+
readonly tiny: "tiny";
|
|
21
|
+
readonly extraSmall: "extra-small";
|
|
22
|
+
readonly small: "small";
|
|
23
|
+
readonly medium: "medium";
|
|
24
|
+
readonly large: "large";
|
|
25
|
+
readonly extraLarge: "extra-large";
|
|
26
|
+
readonly huge: "huge";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A Spinner's size can be either small, tiny, extra-small, medium, large, extra-large, or huge
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare type SpinnerSize = ValuesOf<typeof SpinnerSize>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './partials/index.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const badgeBaseStyles: import("@microsoft/fast-element").CSSDirective;
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
* The badge's size styles
|
|
5
|
+
*/
|
|
6
|
+
export declare const badgeSizeStyles: import("@microsoft/fast-element").CSSDirective;
|
|
7
|
+
/**
|
|
8
|
+
* The badge's `filled` appearance styles
|
|
9
|
+
* Filled appearance is default so do not
|
|
10
|
+
* Include that attribute as it's not present by default
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare const badgeFilledStyles: import("@microsoft/fast-element").CSSDirective;
|
|
14
|
+
/**
|
|
15
|
+
* The badge's `ghost` appearance styles
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare const badgeGhostStyles: import("@microsoft/fast-element").CSSDirective;
|
|
19
|
+
/**
|
|
20
|
+
* The badge's `outline` appearance styles
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare const badgeOutlineStyles: import("@microsoft/fast-element").CSSDirective;
|
|
24
|
+
/**
|
|
25
|
+
* The badge's `tint` appearance styles
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare const badgeTintStyles: import("@microsoft/fast-element").CSSDirective;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './badge.partials.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|