@fluentui/web-components 3.0.0-beta.46 → 3.0.0-beta.47
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.md +12 -2
- package/dist/dts/button/index.d.ts +1 -1
- package/dist/dts/divider/divider.d.ts +28 -20
- package/dist/dts/divider/index.d.ts +1 -1
- package/dist/dts/index.d.ts +2 -2
- package/dist/esm/button/index.js +1 -1
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/divider/divider.js +56 -45
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/index.js +1 -1
- package/dist/esm/divider/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +117 -42
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +13 -5
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/web-components.d.ts +52 -43
- package/dist/web-components.js +47 -41
- package/dist/web-components.min.js +184 -183
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 23 Jul 2024 04:06:54 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.47](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.47)
|
|
8
|
+
|
|
9
|
+
Tue, 23 Jul 2024 04:06:54 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.46..@fluentui/web-components_v3.0.0-beta.47)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- fix: move spinner animation off of main thread ([PR #32056](https://github.com/microsoft/fluentui/pull/32056) by rupertdavid@microsoft.com)
|
|
15
|
+
- chore: create divider base class to abstract style specfic api ([PR #32065](https://github.com/microsoft/fluentui/pull/32065) by jes@microsoft.com)
|
|
16
|
+
|
|
7
17
|
## [3.0.0-beta.46](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.46)
|
|
8
18
|
|
|
9
|
-
Fri, 19 Jul 2024 04:08:
|
|
19
|
+
Fri, 19 Jul 2024 04:08:32 GMT
|
|
10
20
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.45..@fluentui/web-components_v3.0.0-beta.46)
|
|
11
21
|
|
|
12
22
|
### Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { definition as ButtonDefinition } from './button.definition.js';
|
|
2
|
-
export { Button } from './button.js';
|
|
2
|
+
export { BaseButton, Button } from './button.js';
|
|
3
3
|
export { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType } from './button.options.js';
|
|
4
4
|
export type { ButtonOptions } from './button.options.js';
|
|
5
5
|
export { styles as ButtonStyles } from './button.styles.js';
|
|
@@ -2,11 +2,11 @@ import { FASTElement } from '@microsoft/fast-element';
|
|
|
2
2
|
import { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* A Divider Custom HTML Element.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
5
|
* 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.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class BaseDivider extends FASTElement {
|
|
10
10
|
/**
|
|
11
11
|
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
12
12
|
*
|
|
@@ -29,6 +29,31 @@ export declare class Divider extends FASTElement {
|
|
|
29
29
|
* HTML Attribute: orientation
|
|
30
30
|
*/
|
|
31
31
|
orientation?: DividerOrientation;
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the element's internal role when the role attribute changes.
|
|
35
|
+
*
|
|
36
|
+
* @param previous - the previous role value
|
|
37
|
+
* @param next - the current role value
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
roleChanged(previous: string | null, next: string | null): void;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the element's internal orientation when the orientation attribute changes.
|
|
43
|
+
*
|
|
44
|
+
* @param previous - the previous orientation value
|
|
45
|
+
* @param next - the current orientation value
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
orientationChanged(previous: string | null, next: string | null): void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A Divider Custom HTML Element.
|
|
52
|
+
* Based on BaseDivider and includes style and layout specific attributes
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export declare class Divider extends BaseDivider {
|
|
32
57
|
/**
|
|
33
58
|
* @public
|
|
34
59
|
* @remarks
|
|
@@ -65,21 +90,4 @@ export declare class Divider extends FASTElement {
|
|
|
65
90
|
* @param next - the next state
|
|
66
91
|
*/
|
|
67
92
|
insetChanged(prev: boolean, next: boolean): void;
|
|
68
|
-
connectedCallback(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the element's internal role when the role attribute changes.
|
|
71
|
-
*
|
|
72
|
-
* @param previous - the previous role value
|
|
73
|
-
* @param next - the current role value
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
roleChanged(previous: string | null, next: string | null): void;
|
|
77
|
-
/**
|
|
78
|
-
* Sets the element's internal orientation when the orientation attribute changes.
|
|
79
|
-
*
|
|
80
|
-
* @param previous - the previous orientation value
|
|
81
|
-
* @param next - the current orientation value
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
orientationChanged(previous: string | null, next: string | null): void;
|
|
85
93
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Divider } from './divider.js';
|
|
1
|
+
export { BaseDivider, Divider } from './divider.js';
|
|
2
2
|
export { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
|
|
3
3
|
export { definition as DividerDefinition } from './divider.definition.js';
|
|
4
4
|
export { template as DividerTemplate } from './divider.template.js';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { Accordion, accordionDefinition, AccordionExpandMode, accordionStyles, a
|
|
|
4
4
|
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkTarget } from './link/index.js';
|
|
5
5
|
export { Avatar, AvatarActive, AvatarAppearance, AvatarColor, AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, AvatarStyles, AvatarTemplate, } from './avatar/index.js';
|
|
6
6
|
export { Badge, BadgeAppearance, BadgeColor, BadgeDefinition, BadgeShape, BadgeSize, BadgeStyles, BadgeTemplate, } from './badge/index.js';
|
|
7
|
-
export { Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
7
|
+
export { BaseButton, Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
8
8
|
export type { ButtonOptions } from './button/index.js';
|
|
9
9
|
export { Checkbox, CheckboxDefinition, CheckboxShape, CheckboxSize, CheckboxStyles, CheckboxTemplate, } from './checkbox/index.js';
|
|
10
10
|
export type { CheckboxOptions } from './checkbox/index.js';
|
|
@@ -12,7 +12,7 @@ export { CompoundButton, CompoundButtonAppearance, CompoundButtonDefinition, Com
|
|
|
12
12
|
export { CounterBadge, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, CounterBadgeStyles, CounterBadgeTemplate, } from './counter-badge/index.js';
|
|
13
13
|
export { Dialog, DialogType, DialogDefinition, DialogTemplate, DialogStyles } from './dialog/index.js';
|
|
14
14
|
export { DialogBody, DialogBodyDefinition, DialogBodyTemplate, DialogBodyStyles } from './dialog-body/index.js';
|
|
15
|
-
export { Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
15
|
+
export { BaseDivider, Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
16
16
|
export { Drawer, DrawerDefinition, DrawerPosition, DrawerSize, DrawerType, DrawerTemplate, DrawerStyles, } from './drawer/index.js';
|
|
17
17
|
export { DrawerBody, DrawerBodyDefinition, DrawerBodyTemplate, DrawerBodyStyles } from './drawer-body/index.js';
|
|
18
18
|
export { Field, FieldLabelPosition, ValidationFlags, FieldDefinition, FieldStyles, FieldTemplate, } from './field/index.js';
|
package/dist/esm/button/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { definition as ButtonDefinition } from './button.definition.js';
|
|
2
|
-
export { Button } from './button.js';
|
|
2
|
+
export { BaseButton, Button } from './button.js';
|
|
3
3
|
export { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType } from './button.options.js';
|
|
4
4
|
export { styles as ButtonStyles } from './button.styles.js';
|
|
5
5
|
export { template as ButtonTemplate } from './button.template.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9G,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -4,11 +4,11 @@ import { toggleState } from '../utils/element-internals.js';
|
|
|
4
4
|
import { DividerOrientation, DividerRole } from './divider.options.js';
|
|
5
5
|
/**
|
|
6
6
|
* A Divider Custom HTML Element.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
7
|
* 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
|
+
* @public
|
|
10
10
|
*/
|
|
11
|
-
export class
|
|
11
|
+
export class BaseDivider extends FASTElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
14
|
/**
|
|
@@ -17,46 +17,6 @@ export class Divider extends FASTElement {
|
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
19
|
this.elementInternals = this.attachInternals();
|
|
20
|
-
/**
|
|
21
|
-
* @public
|
|
22
|
-
* @remarks
|
|
23
|
-
* Adds padding to the beginning and end of the divider.
|
|
24
|
-
*/
|
|
25
|
-
this.inset = false;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Handles changes to align-content attribute custom states
|
|
29
|
-
* @param prev - the previous state
|
|
30
|
-
* @param next - the next state
|
|
31
|
-
*/
|
|
32
|
-
alignContentChanged(prev, next) {
|
|
33
|
-
if (prev) {
|
|
34
|
-
toggleState(this.elementInternals, `align-${prev}`, false);
|
|
35
|
-
}
|
|
36
|
-
if (next) {
|
|
37
|
-
toggleState(this.elementInternals, `align-${next}`, true);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Handles changes to appearance attribute custom states
|
|
42
|
-
* @param prev - the previous state
|
|
43
|
-
* @param next - the next state
|
|
44
|
-
*/
|
|
45
|
-
appearanceChanged(prev, next) {
|
|
46
|
-
if (prev) {
|
|
47
|
-
toggleState(this.elementInternals, `${prev}`, false);
|
|
48
|
-
}
|
|
49
|
-
if (next) {
|
|
50
|
-
toggleState(this.elementInternals, `${next}`, true);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Handles changes to inset custom states
|
|
55
|
-
* @param prev - the previous state
|
|
56
|
-
* @param next - the next state
|
|
57
|
-
*/
|
|
58
|
-
insetChanged(prev, next) {
|
|
59
|
-
toggleState(this.elementInternals, 'inset', next);
|
|
60
20
|
}
|
|
61
21
|
connectedCallback() {
|
|
62
22
|
var _a, _b;
|
|
@@ -100,10 +60,61 @@ export class Divider extends FASTElement {
|
|
|
100
60
|
}
|
|
101
61
|
__decorate([
|
|
102
62
|
attr
|
|
103
|
-
],
|
|
63
|
+
], BaseDivider.prototype, "role", void 0);
|
|
104
64
|
__decorate([
|
|
105
65
|
attr
|
|
106
|
-
],
|
|
66
|
+
], BaseDivider.prototype, "orientation", void 0);
|
|
67
|
+
/**
|
|
68
|
+
* A Divider Custom HTML Element.
|
|
69
|
+
* Based on BaseDivider and includes style and layout specific attributes
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export class Divider extends BaseDivider {
|
|
74
|
+
constructor() {
|
|
75
|
+
super(...arguments);
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
* @remarks
|
|
79
|
+
* Adds padding to the beginning and end of the divider.
|
|
80
|
+
*/
|
|
81
|
+
this.inset = false;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Handles changes to align-content attribute custom states
|
|
85
|
+
* @param prev - the previous state
|
|
86
|
+
* @param next - the next state
|
|
87
|
+
*/
|
|
88
|
+
alignContentChanged(prev, next) {
|
|
89
|
+
if (prev) {
|
|
90
|
+
toggleState(this.elementInternals, `align-${prev}`, false);
|
|
91
|
+
}
|
|
92
|
+
if (next) {
|
|
93
|
+
toggleState(this.elementInternals, `align-${next}`, true);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Handles changes to appearance attribute custom states
|
|
98
|
+
* @param prev - the previous state
|
|
99
|
+
* @param next - the next state
|
|
100
|
+
*/
|
|
101
|
+
appearanceChanged(prev, next) {
|
|
102
|
+
if (prev) {
|
|
103
|
+
toggleState(this.elementInternals, `${prev}`, false);
|
|
104
|
+
}
|
|
105
|
+
if (next) {
|
|
106
|
+
toggleState(this.elementInternals, `${next}`, true);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Handles changes to inset custom states
|
|
111
|
+
* @param prev - the previous state
|
|
112
|
+
* @param next - the next state
|
|
113
|
+
*/
|
|
114
|
+
insetChanged(prev, next) {
|
|
115
|
+
toggleState(this.elementInternals, 'inset', next);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
107
118
|
__decorate([
|
|
108
119
|
attr({ attribute: 'align-content' })
|
|
109
120
|
], Divider.prototype, "alignContent", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../../src/divider/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAA0C,kBAAkB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE/G;;;;;GAKG;AACH,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../../src/divider/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAA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AS,EAAE,CAAC;sCACK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Divider } from './divider.js';
|
|
1
|
+
export { BaseDivider, Divider } from './divider.js';
|
|
2
2
|
export { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
|
|
3
3
|
export { definition as DividerDefinition } from './divider.definition.js';
|
|
4
4
|
export { template as DividerTemplate } from './divider.template.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/divider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/divider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC/G,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -3,13 +3,13 @@ export { Accordion, accordionDefinition, AccordionExpandMode, accordionStyles, a
|
|
|
3
3
|
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkTarget } from './link/index.js';
|
|
4
4
|
export { Avatar, AvatarActive, AvatarAppearance, AvatarColor, AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, AvatarStyles, AvatarTemplate, } from './avatar/index.js';
|
|
5
5
|
export { Badge, BadgeAppearance, BadgeColor, BadgeDefinition, BadgeShape, BadgeSize, BadgeStyles, BadgeTemplate, } from './badge/index.js';
|
|
6
|
-
export { Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
6
|
+
export { BaseButton, Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
7
7
|
export { Checkbox, CheckboxDefinition, CheckboxShape, CheckboxSize, CheckboxStyles, CheckboxTemplate, } from './checkbox/index.js';
|
|
8
8
|
export { CompoundButton, CompoundButtonAppearance, CompoundButtonDefinition, CompoundButtonShape, CompoundButtonSize, CompoundButtonStyles, CompoundButtonTemplate, } from './compound-button/index.js';
|
|
9
9
|
export { CounterBadge, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, CounterBadgeStyles, CounterBadgeTemplate, } from './counter-badge/index.js';
|
|
10
10
|
export { Dialog, DialogType, DialogDefinition, DialogTemplate, DialogStyles } from './dialog/index.js';
|
|
11
11
|
export { DialogBody, DialogBodyDefinition, DialogBodyTemplate, DialogBodyStyles } from './dialog-body/index.js';
|
|
12
|
-
export { Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
12
|
+
export { BaseDivider, Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
13
13
|
export { Drawer, DrawerDefinition, DrawerPosition, DrawerSize, DrawerType, DrawerTemplate, DrawerStyles, } from './drawer/index.js';
|
|
14
14
|
export { DrawerBody, DrawerBodyDefinition, DrawerBodyTemplate, DrawerBodyStyles } from './drawer-body/index.js';
|
|
15
15
|
export { Field, FieldLabelPosition, ValidationFlags, FieldDefinition, FieldStyles, FieldTemplate, } from './field/index.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../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B,EAAE,MAAM,sBAAsB,CAAC;AACtG,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE5E,OAAO,EACL,IAAI,EACJ,cAAc,EACd,cAAc,EACd,eAAe,EACf,QAAQ,EACR,UAAU,EACV,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,IAAI,EACJ,SAAS,EACT,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAC3B,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,84 +1,159 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '../utils/index.js';
|
|
3
|
-
import { colorBrandStroke1, colorBrandStroke2, colorNeutralStrokeOnBrand2 } from '../theme/design-tokens.js';
|
|
2
|
+
import { display, forcedColorsStylesheetBehavior } from '../utils/index.js';
|
|
3
|
+
import { colorBrandStroke1, colorBrandStroke2, colorNeutralStrokeOnBrand2, curveEasyEase, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, } from '../theme/design-tokens.js';
|
|
4
4
|
import { extraLargeState, extraSmallState, hugeState, invertedState, largeState, smallState, tinyState, } from '../styles/states/index.js';
|
|
5
5
|
export const styles = css `
|
|
6
|
-
${display('flex')}
|
|
6
|
+
${display('inline-flex')}
|
|
7
7
|
|
|
8
8
|
:host {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
--duration: 1.5s;
|
|
10
|
+
--indicatorSize: ${strokeWidthThicker};
|
|
11
|
+
--size: 32px;
|
|
12
|
+
height: var(--size);
|
|
13
|
+
width: var(--size);
|
|
14
|
+
contain: strict;
|
|
15
|
+
content-visibility: auto;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
:host(${tinyState}) {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
--indicatorSize: ${strokeWidthThick};
|
|
20
|
+
--size: 20px;
|
|
18
21
|
}
|
|
19
22
|
:host(${extraSmallState}) {
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
--indicatorSize: ${strokeWidthThick};
|
|
24
|
+
--size: 24px;
|
|
22
25
|
}
|
|
23
26
|
:host(${smallState}) {
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
--indicatorSize: ${strokeWidthThick};
|
|
28
|
+
--size: 28px;
|
|
26
29
|
}
|
|
27
30
|
:host(${largeState}) {
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
--indicatorSize: ${strokeWidthThicker};
|
|
32
|
+
--size: 36px;
|
|
30
33
|
}
|
|
31
34
|
:host(${extraLargeState}) {
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
--indicatorSize: ${strokeWidthThicker};
|
|
36
|
+
--size: 40px;
|
|
34
37
|
}
|
|
35
38
|
:host(${hugeState}) {
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
--indicatorSize: ${strokeWidthThickest};
|
|
40
|
+
--size: 44px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.progress,
|
|
44
|
+
.background,
|
|
45
|
+
.spinner,
|
|
46
|
+
.start,
|
|
47
|
+
.end,
|
|
48
|
+
.indicator {
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.progress,
|
|
54
|
+
.spinner,
|
|
55
|
+
.indicator {
|
|
56
|
+
animation: none var(--duration) infinite ${curveEasyEase};
|
|
38
57
|
}
|
|
58
|
+
|
|
39
59
|
.progress {
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
animation-timing-function: linear;
|
|
61
|
+
animation-name: spin-linear;
|
|
42
62
|
}
|
|
43
63
|
|
|
44
64
|
.background {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
stroke-width: 1.5px;
|
|
65
|
+
border: var(--indicatorSize) solid ${colorBrandStroke2};
|
|
66
|
+
border-radius: 50%;
|
|
48
67
|
}
|
|
49
68
|
|
|
50
69
|
:host(${invertedState}) .background {
|
|
51
|
-
|
|
70
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.spinner {
|
|
74
|
+
animation-name: spin-swing;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.start {
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
inset-inline-end: 50%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.end {
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
inset-inline-start: 50%;
|
|
52
85
|
}
|
|
53
86
|
|
|
54
87
|
.indicator {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
transition: all 0.2s ease-in-out;
|
|
62
|
-
animation: spin-infinite 3s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite;
|
|
88
|
+
color: ${colorBrandStroke1};
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
border-radius: 50%;
|
|
91
|
+
border: var(--indicatorSize) solid transparent;
|
|
92
|
+
border-block-start-color: currentcolor;
|
|
93
|
+
border-inline-end-color: currentcolor;
|
|
63
94
|
}
|
|
64
95
|
|
|
65
96
|
:host(${invertedState}) .indicator {
|
|
66
|
-
|
|
97
|
+
color: ${colorNeutralStrokeOnBrand2};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.start .indicator {
|
|
101
|
+
rotate: 135deg; /* Starts 9 o'clock */
|
|
102
|
+
inset: 0 -100% 0 0;
|
|
103
|
+
animation-name: spin-start;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.end .indicator {
|
|
107
|
+
rotate: 135deg; /* Ends at 3 o'clock */
|
|
108
|
+
inset: 0 0 0 -100%;
|
|
109
|
+
animation-name: spin-end;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes spin-linear {
|
|
113
|
+
100% {
|
|
114
|
+
transform: rotate(360deg);
|
|
115
|
+
}
|
|
67
116
|
}
|
|
68
117
|
|
|
69
|
-
@keyframes spin-
|
|
118
|
+
@keyframes spin-swing {
|
|
70
119
|
0% {
|
|
71
|
-
|
|
120
|
+
transform: rotate(-135deg);
|
|
121
|
+
}
|
|
122
|
+
50% {
|
|
123
|
+
transform: rotate(0deg);
|
|
124
|
+
}
|
|
125
|
+
100% {
|
|
126
|
+
transform: rotate(225deg);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@keyframes spin-start {
|
|
131
|
+
0%,
|
|
132
|
+
100% {
|
|
72
133
|
transform: rotate(0deg);
|
|
73
134
|
}
|
|
74
135
|
50% {
|
|
75
|
-
|
|
76
|
-
transform: rotate(450deg);
|
|
136
|
+
transform: rotate(-80deg);
|
|
77
137
|
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@keyframes spin-end {
|
|
141
|
+
0%,
|
|
78
142
|
100% {
|
|
79
|
-
|
|
80
|
-
|
|
143
|
+
transform: rotate(0deg);
|
|
144
|
+
}
|
|
145
|
+
50% {
|
|
146
|
+
transform: rotate(70deg);
|
|
81
147
|
}
|
|
82
148
|
}
|
|
83
|
-
|
|
149
|
+
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
150
|
+
.background {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
.indicator {
|
|
154
|
+
border-color: Canvas;
|
|
155
|
+
border-block-start-color: Highlight;
|
|
156
|
+
border-inline-end-color: Highlight;
|
|
157
|
+
}
|
|
158
|
+
`));
|
|
84
159
|
//# sourceMappingURL=spinner.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.styles.js","sourceRoot":"","sources":["../../../src/spinner/spinner.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"spinner.styles.js","sourceRoot":"","sources":["../../../src/spinner/spinner.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,eAAe,EACf,eAAe,EACf,SAAS,EACT,aAAa,EACb,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,aAAa,CAAC;;;;uBAIH,kBAAkB;;;;;;;;UAQ/B,SAAS;uBACI,gBAAgB;;;UAG7B,eAAe;uBACF,gBAAgB;;;UAG7B,UAAU;uBACG,gBAAgB;;;UAG7B,UAAU;uBACG,kBAAkB;;;UAG/B,eAAe;uBACF,kBAAkB;;;UAG/B,SAAS;uBACI,mBAAmB;;;;;;;;;;;;;;;;;+CAiBK,aAAa;;;;;;;;;yCASnB,iBAAiB;;;;UAIhD,aAAa;;;;;;;;;;;;;;;;;;;aAmBV,iBAAiB;;;;;;;;UAQpB,aAAa;aACV,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtC,CAAC,aAAa,CACb,8BAA8B,CAAC,GAAG,CAAA;;;;;;;;;GASjC,CAAC,CACH,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
2
|
export const template = html `
|
|
3
|
-
<slot name="indicator"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
3
|
+
<slot name="indicator">
|
|
4
|
+
<div class="background"></div>
|
|
5
|
+
<div class="progress">
|
|
6
|
+
<div class="spinner">
|
|
7
|
+
<div class="start">
|
|
8
|
+
<div class="indicator"></div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="end">
|
|
11
|
+
<div class="indicator"></div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</slot>
|
|
8
16
|
`;
|
|
9
17
|
//# sourceMappingURL=spinner.template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.template.js","sourceRoot":"","sources":["../../../src/spinner/spinner.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAS
|
|
1
|
+
{"version":3,"file":"spinner.template.js","sourceRoot":"","sources":["../../../src/spinner/spinner.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAS;;;;;;;;;;;;;;CAcpC,CAAC"}
|