@fluentui/web-components 3.0.0-alpha.1 → 3.0.0-alpha.3
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/.eslintrc.json +62 -0
- package/CHANGELOG.json +208 -8
- package/CHANGELOG.md +155 -97
- package/build/{clean.js → clean.cjs} +0 -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.stories.d.ts +12 -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.stories.d.ts +14 -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/fluent-design-system.d.ts +5 -0
- package/dist/dts/index-rollup.d.ts +1 -1
- package/dist/dts/index.d.ts +6 -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.stories.d.ts +9 -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.stories.d.ts +8 -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/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.stories.d.ts +8 -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/index.d.ts +2 -2
- package/dist/esm/badge/badge.definition.js +18 -0
- package/dist/esm/badge/badge.js +42 -0
- package/dist/esm/badge/badge.options.js +45 -0
- package/dist/esm/badge/badge.stories.js +108 -0
- package/dist/esm/badge/badge.styles.js +29 -0
- package/dist/esm/badge/badge.template.js +14 -0
- package/dist/esm/badge/define.js +3 -0
- package/dist/esm/badge/index.js +5 -0
- package/dist/esm/counter-badge/counter-badge.definition.js +18 -0
- package/dist/esm/counter-badge/counter-badge.js +89 -0
- package/dist/esm/counter-badge/counter-badge.options.js +42 -0
- package/dist/esm/counter-badge/counter-badge.stories.js +102 -0
- package/dist/esm/counter-badge/counter-badge.styles.js +30 -0
- package/dist/esm/counter-badge/counter-badge.template.js +12 -0
- package/dist/esm/counter-badge/define.js +3 -0
- package/dist/esm/counter-badge/index.js +5 -0
- package/dist/esm/fluent-design-system.js +5 -0
- package/dist/esm/index-rollup.js +1 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/progress-bar/define.js +3 -0
- package/dist/esm/progress-bar/index.js +5 -0
- package/dist/esm/progress-bar/progress-bar.definition.js +17 -0
- package/dist/esm/progress-bar/progress-bar.js +18 -0
- package/dist/esm/progress-bar/progress-bar.options.js +25 -0
- package/dist/esm/progress-bar/progress-bar.stories.js +60 -0
- package/dist/esm/progress-bar/progress-bar.styles.js +155 -0
- package/dist/esm/progress-bar/progress-bar.template.js +5 -0
- package/dist/esm/spinner/define.js +3 -0
- package/dist/esm/spinner/index.js +5 -0
- package/dist/esm/spinner/spinner.definition.js +18 -0
- package/dist/esm/spinner/spinner.js +15 -0
- package/dist/esm/spinner/spinner.options.js +21 -0
- package/dist/esm/spinner/spinner.stories.js +45 -0
- package/dist/esm/spinner/spinner.styles.js +95 -0
- package/dist/esm/spinner/spinner.template.js +21 -0
- package/dist/esm/styles/index.js +1 -0
- package/dist/esm/styles/partials/badge.partials.js +272 -0
- package/dist/esm/styles/partials/index.js +1 -0
- package/dist/esm/text/define.js +3 -0
- package/dist/esm/text/index.js +5 -0
- package/dist/esm/text/text.definition.js +17 -0
- package/dist/esm/text/text.js +91 -0
- package/dist/esm/text/text.options.js +45 -0
- package/dist/esm/text/text.stories.js +111 -0
- package/dist/esm/text/text.styles.js +104 -0
- package/dist/esm/text/text.template.js +5 -0
- package/dist/esm/theme/index.js +2 -2
- package/dist/esm/theme/set-theme.js +1 -1
- package/dist/esm/theme/theme.stories.js +1 -1
- package/dist/fluent-web-components.api.json +14330 -8
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/web-components.d.ts +1460 -1
- package/dist/web-components.js +5713 -2
- package/dist/web-components.min.js +273 -1
- package/docs/api-report.md +1471 -1
- package/package.json +48 -16
- package/rollup.config.js +5 -0
- package/karma.conf.js +0 -147
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { StartEnd } from '@microsoft/fast-foundation';
|
|
3
|
+
import { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.options.js';
|
|
4
|
+
/**
|
|
5
|
+
* The base class used for constructing a fluent-badge custom element
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class Badge extends FASTElement {
|
|
9
|
+
/**
|
|
10
|
+
* The appearance the badge should have.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: appearance
|
|
15
|
+
*/
|
|
16
|
+
appearance: BadgeAppearance;
|
|
17
|
+
/**
|
|
18
|
+
* The color the badge should have.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
* @remarks
|
|
22
|
+
* HTML Attribute: color
|
|
23
|
+
*/
|
|
24
|
+
color: BadgeColor;
|
|
25
|
+
/**
|
|
26
|
+
* The shape the badge should have.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
* @remarks
|
|
30
|
+
* HTML Attribute: shape
|
|
31
|
+
*/
|
|
32
|
+
shape: BadgeShape;
|
|
33
|
+
/**
|
|
34
|
+
* The size the badge should have.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
* @remarks
|
|
38
|
+
* HTML Attribute: size
|
|
39
|
+
*/
|
|
40
|
+
size: BadgeSize;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Mark internal because exporting class and interface of the same name
|
|
44
|
+
* confuses API extractor.
|
|
45
|
+
* TODO: Below will be unnecessary when Badge class gets updated
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export interface Badge extends StartEnd {
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Badge } from './badge.js';
|
|
2
|
+
/**
|
|
3
|
+
* The Fluent Badge Element. Implements {@link @microsoft/fast-foundation#Badge },
|
|
4
|
+
* {@link @microsoft/fast-foundation#badgeTemplate}
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
* @remarks
|
|
9
|
+
* HTML Element: \<fluent-badge\>
|
|
10
|
+
*/
|
|
11
|
+
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof Badge>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { StartEndOptions, StaticallyComposableHTML, ValuesOf } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Badge } from './badge.js';
|
|
3
|
+
/**
|
|
4
|
+
* @internal - marking as internal update when Badge PR for start/end is in
|
|
5
|
+
*/
|
|
6
|
+
export declare type BadgeOptions = StartEndOptions<Badge> & {
|
|
7
|
+
defaultContent?: StaticallyComposableHTML;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* BadgeAppearance constants
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare const BadgeAppearance: {
|
|
14
|
+
readonly filled: "filled";
|
|
15
|
+
readonly ghost: "ghost";
|
|
16
|
+
readonly outline: "outline";
|
|
17
|
+
readonly tint: "tint";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A Badge can be filled, outline, ghost, inverted
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare type BadgeAppearance = ValuesOf<typeof BadgeAppearance>;
|
|
24
|
+
/**
|
|
25
|
+
* BadgeColor constants
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare const BadgeColor: {
|
|
29
|
+
readonly brand: "brand";
|
|
30
|
+
readonly danger: "danger";
|
|
31
|
+
readonly important: "important";
|
|
32
|
+
readonly informative: "informative";
|
|
33
|
+
readonly severe: "severe";
|
|
34
|
+
readonly subtle: "subtle";
|
|
35
|
+
readonly success: "success";
|
|
36
|
+
readonly warning: "warning";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A Badge can be one of preset colors
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare type BadgeColor = ValuesOf<typeof BadgeColor>;
|
|
43
|
+
/**
|
|
44
|
+
* A Badge can be square, circular or rounded.
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export declare const BadgeShape: {
|
|
48
|
+
readonly circular: "circular";
|
|
49
|
+
readonly rounded: "rounded";
|
|
50
|
+
readonly square: "square";
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* A Badge can be one of preset colors
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export declare type BadgeShape = ValuesOf<typeof BadgeShape>;
|
|
57
|
+
/**
|
|
58
|
+
* A Badge can be square, circular or rounded.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare const BadgeSize: {
|
|
62
|
+
readonly tiny: "tiny";
|
|
63
|
+
readonly extraSmall: "extra-small";
|
|
64
|
+
readonly small: "small";
|
|
65
|
+
readonly medium: "medium";
|
|
66
|
+
readonly large: "large";
|
|
67
|
+
readonly extraLarge: "extra-large";
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* A Badge can be on of several preset sizes.
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare type BadgeSize = ValuesOf<typeof BadgeSize>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Args, Meta } from '@storybook/html';
|
|
2
|
+
import type { Badge as FluentBadge } from './badge.js';
|
|
3
|
+
import './define.js';
|
|
4
|
+
declare type BadgeStoryArgs = Args & FluentBadge;
|
|
5
|
+
declare type BadgeStoryMeta = Meta<BadgeStoryArgs>;
|
|
6
|
+
declare const _default: BadgeStoryMeta;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Badge: any;
|
|
9
|
+
export declare const Appearance: (args: Args) => Element | DocumentFragment | null;
|
|
10
|
+
export declare const Color: (args: Args) => Element | DocumentFragment | null;
|
|
11
|
+
export declare const Shape: (args: Args) => Element | DocumentFragment | null;
|
|
12
|
+
export declare const Size: BadgeStoryMeta;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { Badge } from './badge.js';
|
|
3
|
+
import type { BadgeOptions } from './badge.options.js';
|
|
4
|
+
/**
|
|
5
|
+
* The template for the Badge component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare function badgeTemplate<T extends Badge>(options?: BadgeOptions): ElementViewTemplate<T>;
|
|
9
|
+
export declare const template: ElementViewTemplate<Badge>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { StartEnd } from '@microsoft/fast-foundation';
|
|
3
|
+
import { CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBadgeSize } from './counter-badge.options.js';
|
|
4
|
+
/**
|
|
5
|
+
* The base class used for constructing a fluent-badge custom element
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class CounterBadge extends FASTElement {
|
|
9
|
+
/**
|
|
10
|
+
* The appearance the badge should have.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: appearance
|
|
15
|
+
*/
|
|
16
|
+
appearance: CounterBadgeAppearance;
|
|
17
|
+
/**
|
|
18
|
+
* The color the badge should have.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
* @remarks
|
|
22
|
+
* HTML Attribute: color
|
|
23
|
+
*/
|
|
24
|
+
color: CounterBadgeColor;
|
|
25
|
+
/**
|
|
26
|
+
* The shape the badge should have.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
* @remarks
|
|
30
|
+
* HTML Attribute: shape
|
|
31
|
+
*/
|
|
32
|
+
shape: CounterBadgeShape;
|
|
33
|
+
/**
|
|
34
|
+
* The size the badge should have.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
* @remarks
|
|
38
|
+
* HTML Attribute: size
|
|
39
|
+
*/
|
|
40
|
+
size: CounterBadgeSize;
|
|
41
|
+
/**
|
|
42
|
+
* The count the badge should have.
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
* @remarks
|
|
46
|
+
* HTML Attribute: count
|
|
47
|
+
*/
|
|
48
|
+
count: number;
|
|
49
|
+
protected countChanged(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Max number to be displayed
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: overflow-count
|
|
56
|
+
*/
|
|
57
|
+
overflowCount: number;
|
|
58
|
+
protected overflowCountChanged(): void;
|
|
59
|
+
/**
|
|
60
|
+
* If the badge should be shown when count is 0
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
* @remarks
|
|
64
|
+
* HTML Attribute: show-zero
|
|
65
|
+
*/
|
|
66
|
+
showZero: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* If a dot should be displayed without the count
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @remarks
|
|
72
|
+
* HTML Attribute: dot
|
|
73
|
+
*/
|
|
74
|
+
dot: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* Function to set the count
|
|
78
|
+
* This is the default slotted content for the counter badge
|
|
79
|
+
* If children are slotted, that will override the value returned
|
|
80
|
+
*/
|
|
81
|
+
setCount(): string | void;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Mark internal because exporting class and interface of the same name
|
|
85
|
+
* confuses API extractor.
|
|
86
|
+
* TODO: Below will be unnecessary when Badge class gets updated
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
export interface CounterBadge extends StartEnd {
|
|
90
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CounterBadge } from './counter-badge.js';
|
|
2
|
+
/**
|
|
3
|
+
* The Fluent CounterBadge Element. Implements {@link @microsoft/fast-foundation#Badge },
|
|
4
|
+
* {@link @microsoft/fast-foundation#badgeTemplate}
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
* @remarks
|
|
9
|
+
* HTML Element: \<fluent-counter-badge\>
|
|
10
|
+
*/
|
|
11
|
+
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof CounterBadge>;
|
|
@@ -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,14 @@
|
|
|
1
|
+
import type { Args, Meta } from '@storybook/html';
|
|
2
|
+
import type { CounterBadge as FluentCounterBadge } from './counter-badge.js';
|
|
3
|
+
import './define.js';
|
|
4
|
+
declare type CounterBadgeStoryArgs = Args & FluentCounterBadge;
|
|
5
|
+
declare type CounterBadgeStoryMeta = Meta<CounterBadgeStoryArgs>;
|
|
6
|
+
declare const _default: CounterBadgeStoryMeta;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const CounterBadge: any;
|
|
9
|
+
export declare const Appearance: (args: Args) => Element | DocumentFragment | null;
|
|
10
|
+
export declare const Color: (args: Args) => Element | DocumentFragment | null;
|
|
11
|
+
export declare const Shape: (args: Args) => Element | DocumentFragment | null;
|
|
12
|
+
export declare const Size: CounterBadgeStoryMeta;
|
|
13
|
+
export declare const Dot: (args: Args) => Element | DocumentFragment | null;
|
|
14
|
+
export declare const ShowZero: (args: Args) => Element | DocumentFragment | null;
|
|
@@ -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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './index';
|
|
1
|
+
export * from './index.js';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -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,9 @@
|
|
|
1
|
+
import type { Args, Meta } from '@storybook/html';
|
|
2
|
+
import type { ProgressBar as FluentProgressBar } from './progress-bar.js';
|
|
3
|
+
import './define.js';
|
|
4
|
+
declare type ProgressStoryArgs = Args & FluentProgressBar;
|
|
5
|
+
declare type ProgressStoryMeta = Meta<ProgressStoryArgs>;
|
|
6
|
+
declare const _default: ProgressStoryMeta;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Progress: any;
|
|
9
|
+
export declare const ProgressIndeterminate: (args: Args) => Element | DocumentFragment | null;
|
|
@@ -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,8 @@
|
|
|
1
|
+
import type { Args, Meta } from '@storybook/html';
|
|
2
|
+
import './define.js';
|
|
3
|
+
declare type SpinnerStoryArgs = Args;
|
|
4
|
+
declare type SpinnerStoryMeta = Meta<SpinnerStoryArgs>;
|
|
5
|
+
declare const _default: SpinnerStoryMeta;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Spinner: any;
|
|
8
|
+
export declare const SpinnerInverted: (args: Args) => Element | DocumentFragment | null;
|
|
@@ -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';
|