@fluentui/web-components 3.0.0-alpha.10 → 3.0.0-alpha.12
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 +37 -1
- package/CHANGELOG.md +21 -2
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/progress-bar/progress-bar.styles.d.ts +1 -1
- package/dist/dts/slider/define.d.ts +1 -0
- package/dist/dts/slider/index.d.ts +5 -0
- package/dist/dts/slider/slider.d.ts +24 -0
- package/dist/dts/slider/slider.definition.d.ts +10 -0
- package/dist/dts/slider/slider.options.d.ts +15 -0
- package/dist/dts/slider/slider.styles.d.ts +4 -0
- package/dist/dts/slider/slider.template.d.ts +3 -0
- package/dist/esm/accordion/accordion.styles.js +1 -0
- package/dist/esm/accordion/accordion.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +1 -0
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +4 -0
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/image/image.styles.js +4 -0
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +2 -1
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/slider/define.js +4 -0
- package/dist/esm/slider/define.js.map +1 -0
- package/dist/esm/slider/index.js +6 -0
- package/dist/esm/slider/index.js.map +1 -0
- package/dist/esm/slider/slider.definition.js +18 -0
- package/dist/esm/slider/slider.definition.js.map +1 -0
- package/dist/esm/slider/slider.js +59 -0
- package/dist/esm/slider/slider.js.map +1 -0
- package/dist/esm/slider/slider.options.js +10 -0
- package/dist/esm/slider/slider.options.js.map +1 -0
- package/dist/esm/slider/slider.styles.js +186 -0
- package/dist/esm/slider/slider.styles.js.map +1 -0
- package/dist/esm/slider/slider.template.js +5 -0
- package/dist/esm/slider/slider.template.js.map +1 -0
- package/dist/esm/spinner/spinner.styles.js +1 -0
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +1 -0
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +1 -0
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/text/text.styles.js +4 -0
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/fluent-web-components.api.json +348 -1
- package/dist/web-components.d.ts +60 -1
- package/dist/web-components.js +1324 -675
- package/dist/web-components.min.js +133 -128
- package/docs/api-report.md +33 -0
- package/package.json +10 -6
package/dist/web-components.js
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
import { composedContains, composedParent } from '@microsoft/fast-element/utilities';
|
|
2
2
|
|
|
3
|
+
let kernelMode;
|
|
4
|
+
const kernelAttr = "fast-kernel";
|
|
5
|
+
try {
|
|
6
|
+
if (document.currentScript) {
|
|
7
|
+
kernelMode = document.currentScript.getAttribute(kernelAttr);
|
|
8
|
+
} else {
|
|
9
|
+
const scripts = document.getElementsByTagName("script");
|
|
10
|
+
const currentScript = scripts[scripts.length - 1];
|
|
11
|
+
kernelMode = currentScript.getAttribute(kernelAttr);
|
|
12
|
+
}
|
|
13
|
+
} catch (e) {
|
|
14
|
+
kernelMode = "isolate";
|
|
15
|
+
}
|
|
16
|
+
let KernelServiceId;
|
|
17
|
+
switch (kernelMode) {
|
|
18
|
+
case "share":
|
|
19
|
+
// share the kernel across major versions
|
|
20
|
+
KernelServiceId = Object.freeze({
|
|
21
|
+
updateQueue: 1,
|
|
22
|
+
observable: 2,
|
|
23
|
+
contextEvent: 3,
|
|
24
|
+
elementRegistry: 4
|
|
25
|
+
});
|
|
26
|
+
break;
|
|
27
|
+
case "share-v2":
|
|
28
|
+
// only share the kernel with other v2 instances
|
|
29
|
+
KernelServiceId = Object.freeze({
|
|
30
|
+
updateQueue: 1.2,
|
|
31
|
+
observable: 2.2,
|
|
32
|
+
contextEvent: 3.2,
|
|
33
|
+
elementRegistry: 4.2
|
|
34
|
+
});
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
// fully isolate the kernel from all other FAST instances
|
|
38
|
+
const postfix = `-${Math.random().toString(36).substring(2, 8)}`;
|
|
39
|
+
KernelServiceId = Object.freeze({
|
|
40
|
+
updateQueue: `1.2${postfix}`,
|
|
41
|
+
observable: `2.2${postfix}`,
|
|
42
|
+
contextEvent: `3.2${postfix}`,
|
|
43
|
+
elementRegistry: `4.2${postfix}`
|
|
44
|
+
});
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Determines whether or not an object is a function.
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
const isFunction = object => typeof object === "function";
|
|
52
|
+
/**
|
|
53
|
+
* Determines whether or not an object is a string.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
const isString = object => typeof object === "string";
|
|
57
|
+
/**
|
|
58
|
+
* A function which does nothing.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
const noop = () => void 0;
|
|
62
|
+
|
|
3
63
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
64
|
|
|
5
65
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
@@ -118,66 +178,14 @@ function createMetadataLocator() {
|
|
|
118
178
|
return metadata;
|
|
119
179
|
};
|
|
120
180
|
}
|
|
121
|
-
|
|
122
|
-
let kernelMode;
|
|
123
|
-
const kernelAttr = "fast-kernel";
|
|
124
|
-
try {
|
|
125
|
-
if (document.currentScript) {
|
|
126
|
-
kernelMode = document.currentScript.getAttribute(kernelAttr);
|
|
127
|
-
} else {
|
|
128
|
-
const scripts = document.getElementsByTagName("script");
|
|
129
|
-
const currentScript = scripts[scripts.length - 1];
|
|
130
|
-
kernelMode = currentScript.getAttribute(kernelAttr);
|
|
131
|
-
}
|
|
132
|
-
} catch (e) {
|
|
133
|
-
kernelMode = "isolate";
|
|
134
|
-
}
|
|
135
|
-
let KernelServiceId;
|
|
136
|
-
switch (kernelMode) {
|
|
137
|
-
case "share":
|
|
138
|
-
// share the kernel across major versions
|
|
139
|
-
KernelServiceId = Object.freeze({
|
|
140
|
-
updateQueue: 1,
|
|
141
|
-
observable: 2,
|
|
142
|
-
contextEvent: 3,
|
|
143
|
-
elementRegistry: 4
|
|
144
|
-
});
|
|
145
|
-
break;
|
|
146
|
-
case "share-v2":
|
|
147
|
-
// only share the kernel with other v2 instances
|
|
148
|
-
KernelServiceId = Object.freeze({
|
|
149
|
-
updateQueue: 1.2,
|
|
150
|
-
observable: 2.2,
|
|
151
|
-
contextEvent: 3.2,
|
|
152
|
-
elementRegistry: 4.2
|
|
153
|
-
});
|
|
154
|
-
break;
|
|
155
|
-
default:
|
|
156
|
-
// fully isolate the kernel from all other FAST instances
|
|
157
|
-
const postfix = `-${Math.random().toString(36).substring(2, 8)}`;
|
|
158
|
-
KernelServiceId = Object.freeze({
|
|
159
|
-
updateQueue: `1.2${postfix}`,
|
|
160
|
-
observable: `2.2${postfix}`,
|
|
161
|
-
contextEvent: `3.2${postfix}`,
|
|
162
|
-
elementRegistry: `4.2${postfix}`
|
|
163
|
-
});
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
181
|
/**
|
|
167
|
-
*
|
|
168
|
-
* @
|
|
169
|
-
*/
|
|
170
|
-
const isFunction = object => typeof object === "function";
|
|
171
|
-
/**
|
|
172
|
-
* Determines whether or not an object is a string.
|
|
182
|
+
* Makes a type noop for JSON serialization.
|
|
183
|
+
* @param type - The type to make noop for JSON serialization.
|
|
173
184
|
* @internal
|
|
174
185
|
*/
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
* @internal
|
|
179
|
-
*/
|
|
180
|
-
const noop = () => void 0;
|
|
186
|
+
function makeSerializationNoop(type) {
|
|
187
|
+
type.prototype.toJSON = noop;
|
|
188
|
+
}
|
|
181
189
|
|
|
182
190
|
/**
|
|
183
191
|
* The type of HTML aspect to target.
|
|
@@ -573,10 +581,6 @@ const Observable = FAST.getById(KernelServiceId.observable, () => {
|
|
|
573
581
|
this.propertyName = void 0;
|
|
574
582
|
this.notifier = void 0;
|
|
575
583
|
this.next = void 0;
|
|
576
|
-
/**
|
|
577
|
-
* Opts out of JSON stringification.
|
|
578
|
-
*/
|
|
579
|
-
this.toJSON = noop;
|
|
580
584
|
}
|
|
581
585
|
setMode(isAsync) {
|
|
582
586
|
this.isAsync = this.needsQueue = isAsync;
|
|
@@ -674,6 +678,7 @@ const Observable = FAST.getById(KernelServiceId.observable, () => {
|
|
|
674
678
|
}
|
|
675
679
|
}
|
|
676
680
|
}
|
|
681
|
+
makeSerializationNoop(ExpressionNotifierImplementation);
|
|
677
682
|
return Object.freeze({
|
|
678
683
|
/**
|
|
679
684
|
* @internal
|
|
@@ -815,6 +820,62 @@ const ExecutionContext = Object.freeze({
|
|
|
815
820
|
}
|
|
816
821
|
});
|
|
817
822
|
|
|
823
|
+
/**
|
|
824
|
+
* Captures a binding expression along with related information and capabilities.
|
|
825
|
+
*
|
|
826
|
+
* @public
|
|
827
|
+
*/
|
|
828
|
+
class Binding {
|
|
829
|
+
/**
|
|
830
|
+
* Creates a binding.
|
|
831
|
+
* @param evaluate - Evaluates the binding.
|
|
832
|
+
* @param policy - The security policy to associate with this binding.
|
|
833
|
+
* @param isVolatile - Indicates whether the binding is volatile.
|
|
834
|
+
*/
|
|
835
|
+
constructor(evaluate, policy, isVolatile = false) {
|
|
836
|
+
this.evaluate = evaluate;
|
|
837
|
+
this.policy = policy;
|
|
838
|
+
this.isVolatile = isVolatile;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
class OneWayBinding extends Binding {
|
|
843
|
+
createObserver(subscriber) {
|
|
844
|
+
return Observable.binding(this.evaluate, subscriber, this.isVolatile);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Creates an standard binding.
|
|
849
|
+
* @param expression - The binding to refresh when changed.
|
|
850
|
+
* @param policy - The security policy to associate with th binding.
|
|
851
|
+
* @param isVolatile - Indicates whether the binding is volatile or not.
|
|
852
|
+
* @returns A binding configuration.
|
|
853
|
+
* @public
|
|
854
|
+
*/
|
|
855
|
+
function oneWay(expression, policy, isVolatile = Observable.isVolatileBinding(expression)) {
|
|
856
|
+
return new OneWayBinding(expression, policy, isVolatile);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
class OneTimeBinding extends Binding {
|
|
860
|
+
createObserver() {
|
|
861
|
+
return this;
|
|
862
|
+
}
|
|
863
|
+
bind(controller) {
|
|
864
|
+
return this.evaluate(controller.source, controller.context);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
makeSerializationNoop(OneTimeBinding);
|
|
868
|
+
/**
|
|
869
|
+
* Creates a one time binding
|
|
870
|
+
* @param expression - The binding to refresh when signaled.
|
|
871
|
+
* @param policy - The security policy to associate with th binding.
|
|
872
|
+
* @returns A binding configuration.
|
|
873
|
+
* @public
|
|
874
|
+
*/
|
|
875
|
+
function oneTime(expression, policy) {
|
|
876
|
+
return new OneTimeBinding(expression, policy);
|
|
877
|
+
}
|
|
878
|
+
|
|
818
879
|
let DefaultStyleStrategy;
|
|
819
880
|
function reduceStyles(styles) {
|
|
820
881
|
return styles.map(x => x instanceof ElementStyles ? reduceStyles(x.styles) : [x]).reduce((prev, curr) => prev.concat(curr), []);
|
|
@@ -933,6 +994,88 @@ function cssDirective() {
|
|
|
933
994
|
};
|
|
934
995
|
}
|
|
935
996
|
|
|
997
|
+
function handleChange(directive, controller, observer) {
|
|
998
|
+
controller.source.style.setProperty(directive.targetAspect, observer.bind(controller));
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Enables bindings in CSS.
|
|
1002
|
+
*
|
|
1003
|
+
* @public
|
|
1004
|
+
*/
|
|
1005
|
+
class CSSBindingDirective {
|
|
1006
|
+
/**
|
|
1007
|
+
* Creates an instance of CSSBindingDirective.
|
|
1008
|
+
* @param dataBinding - The binding to use in CSS.
|
|
1009
|
+
* @param targetAspect - The CSS property to target.
|
|
1010
|
+
*/
|
|
1011
|
+
constructor(dataBinding, targetAspect) {
|
|
1012
|
+
this.dataBinding = dataBinding;
|
|
1013
|
+
this.targetAspect = targetAspect;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Creates a CSS fragment to interpolate into the CSS document.
|
|
1017
|
+
* @returns - the string to interpolate into CSS
|
|
1018
|
+
*/
|
|
1019
|
+
createCSS(add) {
|
|
1020
|
+
add(this);
|
|
1021
|
+
return `var(${this.targetAspect})`;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Executed when this behavior is attached to a controller.
|
|
1025
|
+
* @param controller - Controls the behavior lifecycle.
|
|
1026
|
+
*/
|
|
1027
|
+
addedCallback(controller) {
|
|
1028
|
+
var _a;
|
|
1029
|
+
const element = controller.source;
|
|
1030
|
+
if (!element.$cssBindings) {
|
|
1031
|
+
element.$cssBindings = new Map();
|
|
1032
|
+
const setAttribute = element.setAttribute;
|
|
1033
|
+
element.setAttribute = (attr, value) => {
|
|
1034
|
+
setAttribute.call(element, attr, value);
|
|
1035
|
+
if (attr === "style") {
|
|
1036
|
+
element.$cssBindings.forEach((v, k) => handleChange(k, v.controller, v.observer));
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
const observer = (_a = controller[this.targetAspect]) !== null && _a !== void 0 ? _a : controller[this.targetAspect] = this.dataBinding.createObserver(this, this);
|
|
1041
|
+
observer.controller = controller;
|
|
1042
|
+
controller.source.$cssBindings.set(this, {
|
|
1043
|
+
controller,
|
|
1044
|
+
observer
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Executed when this behavior's host is connected.
|
|
1049
|
+
* @param controller - Controls the behavior lifecycle.
|
|
1050
|
+
*/
|
|
1051
|
+
connectedCallback(controller) {
|
|
1052
|
+
handleChange(this, controller, controller[this.targetAspect]);
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Executed when this behavior is detached from a controller.
|
|
1056
|
+
* @param controller - Controls the behavior lifecycle.
|
|
1057
|
+
*/
|
|
1058
|
+
removedCallback(controller) {
|
|
1059
|
+
if (controller.source.$cssBindings) {
|
|
1060
|
+
controller.source.$cssBindings.delete(this);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Called when a subject this instance has subscribed to changes.
|
|
1065
|
+
* @param subject - The subject of the change.
|
|
1066
|
+
* @param args - The event args detailing the change that occurred.
|
|
1067
|
+
*
|
|
1068
|
+
* @internal
|
|
1069
|
+
*/
|
|
1070
|
+
handleChange(_, observer) {
|
|
1071
|
+
handleChange(this, observer.controller, observer);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
CSSDirective.define(CSSBindingDirective);
|
|
1075
|
+
|
|
1076
|
+
const marker$1 = `${Math.random().toString(36).substring(2, 8)}`;
|
|
1077
|
+
let varId = 0;
|
|
1078
|
+
const nextCSSVariable = () => `--v${marker$1}${++varId}`;
|
|
936
1079
|
function collectStyles(strings, values) {
|
|
937
1080
|
const styles = [];
|
|
938
1081
|
let cssString = "";
|
|
@@ -943,7 +1086,11 @@ function collectStyles(strings, values) {
|
|
|
943
1086
|
for (let i = 0, ii = strings.length - 1; i < ii; ++i) {
|
|
944
1087
|
cssString += strings[i];
|
|
945
1088
|
let value = values[i];
|
|
946
|
-
if (
|
|
1089
|
+
if (isFunction(value)) {
|
|
1090
|
+
value = new CSSBindingDirective(oneWay(value), nextCSSVariable()).createCSS(add);
|
|
1091
|
+
} else if (value instanceof Binding) {
|
|
1092
|
+
value = new CSSBindingDirective(value, nextCSSVariable()).createCSS(add);
|
|
1093
|
+
} else if (CSSDirective.getForInstance(value) !== void 0) {
|
|
947
1094
|
value = value.createCSS(add);
|
|
948
1095
|
}
|
|
949
1096
|
if (value instanceof ElementStyles || value instanceof CSSStyleSheet) {
|
|
@@ -1166,24 +1313,6 @@ function htmlDirective(options) {
|
|
|
1166
1313
|
HTMLDirective.define(type, options);
|
|
1167
1314
|
};
|
|
1168
1315
|
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Captures a binding expression along with related information and capabilities.
|
|
1171
|
-
*
|
|
1172
|
-
* @public
|
|
1173
|
-
*/
|
|
1174
|
-
class Binding {
|
|
1175
|
-
/**
|
|
1176
|
-
* Creates a binding.
|
|
1177
|
-
* @param evaluate - Evaluates the binding.
|
|
1178
|
-
* @param policy - The security policy to associate with this binding.
|
|
1179
|
-
* @param isVolatile - Indicates whether the binding is volatile.
|
|
1180
|
-
*/
|
|
1181
|
-
constructor(evaluate, policy, isVolatile = false) {
|
|
1182
|
-
this.evaluate = evaluate;
|
|
1183
|
-
this.policy = policy;
|
|
1184
|
-
this.isVolatile = isVolatile;
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
1316
|
/**
|
|
1188
1317
|
* A base class used for attribute directives that don't need internal state.
|
|
1189
1318
|
* @public
|
|
@@ -1195,11 +1324,6 @@ class StatelessAttachedAttributeDirective {
|
|
|
1195
1324
|
*/
|
|
1196
1325
|
constructor(options) {
|
|
1197
1326
|
this.options = options;
|
|
1198
|
-
/**
|
|
1199
|
-
* Opts out of JSON stringification.
|
|
1200
|
-
* @internal
|
|
1201
|
-
*/
|
|
1202
|
-
this.toJSON = noop;
|
|
1203
1327
|
}
|
|
1204
1328
|
/**
|
|
1205
1329
|
* Creates a placeholder string based on the directive's index within the template.
|
|
@@ -1218,28 +1342,8 @@ class StatelessAttachedAttributeDirective {
|
|
|
1218
1342
|
return this;
|
|
1219
1343
|
}
|
|
1220
1344
|
}
|
|
1345
|
+
makeSerializationNoop(StatelessAttachedAttributeDirective);
|
|
1221
1346
|
|
|
1222
|
-
class OnChangeBinding extends Binding {
|
|
1223
|
-
createObserver(_, subscriber) {
|
|
1224
|
-
return Observable.binding(this.evaluate, subscriber, this.isVolatile);
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
class OneTimeBinding extends Binding {
|
|
1228
|
-
constructor() {
|
|
1229
|
-
super(...arguments);
|
|
1230
|
-
/**
|
|
1231
|
-
* Opts out of JSON stringification.
|
|
1232
|
-
* @internal
|
|
1233
|
-
*/
|
|
1234
|
-
this.toJSON = noop;
|
|
1235
|
-
}
|
|
1236
|
-
createObserver() {
|
|
1237
|
-
return this;
|
|
1238
|
-
}
|
|
1239
|
-
bind(controller) {
|
|
1240
|
-
return this.evaluate(controller.source, controller.context);
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
1347
|
function updateContent(target, aspect, value, controller) {
|
|
1244
1348
|
// If there's no actual value, then this equates to the
|
|
1245
1349
|
// empty string for the purposes of content bindings.
|
|
@@ -1423,34 +1527,13 @@ class HTMLBindingDirective {
|
|
|
1423
1527
|
/** @internal */
|
|
1424
1528
|
handleChange(binding, observer) {
|
|
1425
1529
|
const target = observer.target;
|
|
1426
|
-
const controller = observer.controller;
|
|
1427
|
-
this.updateTarget(target, this.targetAspect, observer.bind(controller), controller);
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
HTMLDirective.define(HTMLBindingDirective, {
|
|
1431
|
-
aspected: true
|
|
1432
|
-
});
|
|
1433
|
-
/**
|
|
1434
|
-
* Creates an standard binding.
|
|
1435
|
-
* @param expression - The binding to refresh when changed.
|
|
1436
|
-
* @param policy - The security policy to associate with th binding.
|
|
1437
|
-
* @param isVolatile - Indicates whether the binding is volatile or not.
|
|
1438
|
-
* @returns A binding configuration.
|
|
1439
|
-
* @public
|
|
1440
|
-
*/
|
|
1441
|
-
function bind(expression, policy, isVolatile = Observable.isVolatileBinding(expression)) {
|
|
1442
|
-
return new OnChangeBinding(expression, policy, isVolatile);
|
|
1443
|
-
}
|
|
1444
|
-
/**
|
|
1445
|
-
* Creates a one time binding
|
|
1446
|
-
* @param expression - The binding to refresh when signaled.
|
|
1447
|
-
* @param policy - The security policy to associate with th binding.
|
|
1448
|
-
* @returns A binding configuration.
|
|
1449
|
-
* @public
|
|
1450
|
-
*/
|
|
1451
|
-
function oneTime(expression, policy) {
|
|
1452
|
-
return new OneTimeBinding(expression, policy);
|
|
1530
|
+
const controller = observer.controller;
|
|
1531
|
+
this.updateTarget(target, this.targetAspect, observer.bind(controller), controller);
|
|
1532
|
+
}
|
|
1453
1533
|
}
|
|
1534
|
+
HTMLDirective.define(HTMLBindingDirective, {
|
|
1535
|
+
aspected: true
|
|
1536
|
+
});
|
|
1454
1537
|
|
|
1455
1538
|
function removeNodeSequence(firstNode, lastNode) {
|
|
1456
1539
|
const parent = firstNode.parentNode;
|
|
@@ -1503,11 +1586,6 @@ class HTMLView {
|
|
|
1503
1586
|
* The length of the current collection within a repeat context.
|
|
1504
1587
|
*/
|
|
1505
1588
|
this.length = 0;
|
|
1506
|
-
/**
|
|
1507
|
-
* Opts out of JSON stringification.
|
|
1508
|
-
* @internal
|
|
1509
|
-
*/
|
|
1510
|
-
this.toJSON = noop;
|
|
1511
1589
|
this.firstChild = fragment.firstChild;
|
|
1512
1590
|
this.lastChild = fragment.lastChild;
|
|
1513
1591
|
}
|
|
@@ -1685,6 +1763,7 @@ class HTMLView {
|
|
|
1685
1763
|
}
|
|
1686
1764
|
}
|
|
1687
1765
|
}
|
|
1766
|
+
makeSerializationNoop(HTMLView);
|
|
1688
1767
|
Observable.defineProperty(HTMLView.prototype, "index");
|
|
1689
1768
|
Observable.defineProperty(HTMLView.prototype, "length");
|
|
1690
1769
|
|
|
@@ -2026,11 +2105,6 @@ class ViewTemplate {
|
|
|
2026
2105
|
constructor(html, factories = {}, policy) {
|
|
2027
2106
|
this.policy = policy;
|
|
2028
2107
|
this.result = null;
|
|
2029
|
-
/**
|
|
2030
|
-
* Opts out of JSON stringification.
|
|
2031
|
-
* @internal
|
|
2032
|
-
*/
|
|
2033
|
-
this.toJSON = noop;
|
|
2034
2108
|
this.html = html;
|
|
2035
2109
|
this.factories = factories;
|
|
2036
2110
|
}
|
|
@@ -2111,7 +2185,7 @@ class ViewTemplate {
|
|
|
2111
2185
|
let definition;
|
|
2112
2186
|
html += currentString;
|
|
2113
2187
|
if (isFunction(currentValue)) {
|
|
2114
|
-
currentValue = new HTMLBindingDirective(
|
|
2188
|
+
currentValue = new HTMLBindingDirective(oneWay(currentValue));
|
|
2115
2189
|
} else if (currentValue instanceof Binding) {
|
|
2116
2190
|
currentValue = new HTMLBindingDirective(currentValue);
|
|
2117
2191
|
} else if (!(definition = HTMLDirective.getForInstance(currentValue))) {
|
|
@@ -2123,6 +2197,7 @@ class ViewTemplate {
|
|
|
2123
2197
|
return new ViewTemplate(html + strings[strings.length - 1], factories, policy);
|
|
2124
2198
|
}
|
|
2125
2199
|
}
|
|
2200
|
+
makeSerializationNoop(ViewTemplate);
|
|
2126
2201
|
/**
|
|
2127
2202
|
* Transforms a template literal string into a ViewTemplate.
|
|
2128
2203
|
* @param strings - The string fragments that are interpolated with the values.
|
|
@@ -2648,11 +2723,6 @@ class ElementController extends PropertyChangeNotifier {
|
|
|
2648
2723
|
* If `null` then the element is managing its own rendering.
|
|
2649
2724
|
*/
|
|
2650
2725
|
this.view = null;
|
|
2651
|
-
/**
|
|
2652
|
-
* Opts out of JSON stringification.
|
|
2653
|
-
* @internal
|
|
2654
|
-
*/
|
|
2655
|
-
this.toJSON = noop;
|
|
2656
2726
|
this.source = element;
|
|
2657
2727
|
this.definition = definition;
|
|
2658
2728
|
const shadowOptions = definition.shadowOptions;
|
|
@@ -2692,6 +2762,27 @@ class ElementController extends PropertyChangeNotifier {
|
|
|
2692
2762
|
Observable.track(this, isConnectedPropertyName);
|
|
2693
2763
|
return this.stage === 1 /* Stages.connected */;
|
|
2694
2764
|
}
|
|
2765
|
+
/**
|
|
2766
|
+
* The context the expression is evaluated against.
|
|
2767
|
+
*/
|
|
2768
|
+
get context() {
|
|
2769
|
+
var _a, _b;
|
|
2770
|
+
return (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.context) !== null && _b !== void 0 ? _b : ExecutionContext.default;
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* Indicates whether the controller is bound.
|
|
2774
|
+
*/
|
|
2775
|
+
get isBound() {
|
|
2776
|
+
var _a, _b;
|
|
2777
|
+
return (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.isBound) !== null && _b !== void 0 ? _b : false;
|
|
2778
|
+
}
|
|
2779
|
+
/**
|
|
2780
|
+
* Indicates how the source's lifetime relates to the controller's lifetime.
|
|
2781
|
+
*/
|
|
2782
|
+
get sourceLifetime() {
|
|
2783
|
+
var _a;
|
|
2784
|
+
return (_a = this.view) === null || _a === void 0 ? void 0 : _a.sourceLifetime;
|
|
2785
|
+
}
|
|
2695
2786
|
/**
|
|
2696
2787
|
* Gets/sets the template used to render the component.
|
|
2697
2788
|
* @remarks
|
|
@@ -2752,6 +2843,14 @@ class ElementController extends PropertyChangeNotifier {
|
|
|
2752
2843
|
this.addStyles(value);
|
|
2753
2844
|
}
|
|
2754
2845
|
}
|
|
2846
|
+
/**
|
|
2847
|
+
* Registers an unbind handler with the controller.
|
|
2848
|
+
* @param behavior - An object to call when the controller unbinds.
|
|
2849
|
+
*/
|
|
2850
|
+
onUnbind(behavior) {
|
|
2851
|
+
var _a;
|
|
2852
|
+
(_a = this.view) === null || _a === void 0 ? void 0 : _a.onUnbind(behavior);
|
|
2853
|
+
}
|
|
2755
2854
|
/**
|
|
2756
2855
|
* Adds the behavior to the component.
|
|
2757
2856
|
* @param behavior - The behavior to add.
|
|
@@ -2978,6 +3077,7 @@ class ElementController extends PropertyChangeNotifier {
|
|
|
2978
3077
|
elementControllerStrategy = strategy;
|
|
2979
3078
|
}
|
|
2980
3079
|
}
|
|
3080
|
+
makeSerializationNoop(ElementController);
|
|
2981
3081
|
// Set default strategy for ElementController
|
|
2982
3082
|
ElementController.setStrategy(ElementController);
|
|
2983
3083
|
/**
|
|
@@ -3214,12 +3314,23 @@ const Orientation = {
|
|
|
3214
3314
|
* String values for use with KeyboardEvent.key
|
|
3215
3315
|
*/
|
|
3216
3316
|
const keyArrowDown = "ArrowDown";
|
|
3317
|
+
const keyArrowLeft = "ArrowLeft";
|
|
3318
|
+
const keyArrowRight = "ArrowRight";
|
|
3217
3319
|
const keyArrowUp = "ArrowUp";
|
|
3218
3320
|
const keyEnd = "End";
|
|
3219
3321
|
const keyEnter = "Enter";
|
|
3220
3322
|
const keyHome = "Home";
|
|
3221
3323
|
const keySpace = " ";
|
|
3222
3324
|
|
|
3325
|
+
/**
|
|
3326
|
+
* Expose ltr and rtl strings
|
|
3327
|
+
*/
|
|
3328
|
+
var Direction;
|
|
3329
|
+
(function (Direction) {
|
|
3330
|
+
Direction["ltr"] = "ltr";
|
|
3331
|
+
Direction["rtl"] = "rtl";
|
|
3332
|
+
})(Direction || (Direction = {}));
|
|
3333
|
+
|
|
3223
3334
|
/**
|
|
3224
3335
|
* This method keeps a given value within the bounds of a min and max value. If the value
|
|
3225
3336
|
* is larger than the max, the minimum value will be returned. If the value is smaller than the minimum,
|
|
@@ -3233,6 +3344,13 @@ function wrapInBounds(min, max, value) {
|
|
|
3233
3344
|
}
|
|
3234
3345
|
return value;
|
|
3235
3346
|
}
|
|
3347
|
+
/**
|
|
3348
|
+
* Ensures that a value is between a min and max value. If value is lower than min, min will be returned.
|
|
3349
|
+
* If value is greater than max, max will be returned.
|
|
3350
|
+
*/
|
|
3351
|
+
function limit(min, max, value) {
|
|
3352
|
+
return Math.min(Math.max(value, min), max);
|
|
3353
|
+
}
|
|
3236
3354
|
|
|
3237
3355
|
let uniqueIdCounter = 0;
|
|
3238
3356
|
/**
|
|
@@ -3572,6 +3690,19 @@ function accordionTemplate() {
|
|
|
3572
3690
|
})}></slot></template>`;
|
|
3573
3691
|
}
|
|
3574
3692
|
|
|
3693
|
+
/**
|
|
3694
|
+
* Determines the current localization direction of an element.
|
|
3695
|
+
*
|
|
3696
|
+
* @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
|
|
3697
|
+
* @returns the localization direction of the element
|
|
3698
|
+
*
|
|
3699
|
+
* @public
|
|
3700
|
+
*/
|
|
3701
|
+
const getDirection = rootNode => {
|
|
3702
|
+
var _a;
|
|
3703
|
+
return ((_a = rootNode.closest("[dir]")) === null || _a === void 0 ? void 0 : _a.dir) === "rtl" ? Direction.rtl : Direction.ltr;
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3575
3706
|
const proxySlotName = "form-associated-proxy";
|
|
3576
3707
|
const ElementInternalsKey = "ElementInternals";
|
|
3577
3708
|
/**
|
|
@@ -4958,50 +5089,413 @@ class FASTDivider extends FASTElement {
|
|
|
4958
5089
|
constructor() {
|
|
4959
5090
|
super(...arguments);
|
|
4960
5091
|
/**
|
|
4961
|
-
* The role of the element.
|
|
4962
|
-
*
|
|
4963
|
-
* @public
|
|
4964
|
-
* @remarks
|
|
4965
|
-
* HTML Attribute: role
|
|
5092
|
+
* The role of the element.
|
|
5093
|
+
*
|
|
5094
|
+
* @public
|
|
5095
|
+
* @remarks
|
|
5096
|
+
* HTML Attribute: role
|
|
5097
|
+
*/
|
|
5098
|
+
this.role = DividerRole.separator;
|
|
5099
|
+
/**
|
|
5100
|
+
* The orientation of the divider.
|
|
5101
|
+
*
|
|
5102
|
+
* @public
|
|
5103
|
+
* @remarks
|
|
5104
|
+
* HTML Attribute: orientation
|
|
5105
|
+
*/
|
|
5106
|
+
this.orientation = DividerOrientation.horizontal;
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
__decorate([attr], FASTDivider.prototype, "role", void 0);
|
|
5110
|
+
__decorate([attr], FASTDivider.prototype, "orientation", void 0);
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
* A base class for progress components.
|
|
5114
|
+
* @public
|
|
5115
|
+
*/
|
|
5116
|
+
class FASTBaseProgress extends FASTElement {
|
|
5117
|
+
constructor() {
|
|
5118
|
+
super(...arguments);
|
|
5119
|
+
/**
|
|
5120
|
+
* Indicates progress in %
|
|
5121
|
+
* @internal
|
|
5122
|
+
*/
|
|
5123
|
+
this.percentComplete = 0;
|
|
5124
|
+
}
|
|
5125
|
+
valueChanged() {
|
|
5126
|
+
this.updatePercentComplete();
|
|
5127
|
+
}
|
|
5128
|
+
minChanged() {
|
|
5129
|
+
if (this.$fastController.isConnected) {
|
|
5130
|
+
this.updatePercentComplete();
|
|
5131
|
+
}
|
|
5132
|
+
}
|
|
5133
|
+
maxChanged() {
|
|
5134
|
+
if (this.$fastController.isConnected) {
|
|
5135
|
+
this.updatePercentComplete();
|
|
5136
|
+
}
|
|
5137
|
+
}
|
|
5138
|
+
/**
|
|
5139
|
+
* @internal
|
|
5140
|
+
*/
|
|
5141
|
+
connectedCallback() {
|
|
5142
|
+
super.connectedCallback();
|
|
5143
|
+
this.updatePercentComplete();
|
|
5144
|
+
}
|
|
5145
|
+
updatePercentComplete() {
|
|
5146
|
+
const min = typeof this.min === "number" ? this.min : 0;
|
|
5147
|
+
const max = typeof this.max === "number" ? this.max : 100;
|
|
5148
|
+
const value = typeof this.value === "number" ? this.value : 0;
|
|
5149
|
+
const range = max - min;
|
|
5150
|
+
this.percentComplete = range === 0 ? 0 : Math.fround((value - min) / range * 100);
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
__decorate([attr({
|
|
5154
|
+
converter: nullableNumberConverter
|
|
5155
|
+
})], FASTBaseProgress.prototype, "value", void 0);
|
|
5156
|
+
__decorate([attr({
|
|
5157
|
+
converter: nullableNumberConverter
|
|
5158
|
+
})], FASTBaseProgress.prototype, "min", void 0);
|
|
5159
|
+
__decorate([attr({
|
|
5160
|
+
converter: nullableNumberConverter
|
|
5161
|
+
})], FASTBaseProgress.prototype, "max", void 0);
|
|
5162
|
+
__decorate([observable], FASTBaseProgress.prototype, "percentComplete", void 0);
|
|
5163
|
+
|
|
5164
|
+
/**
|
|
5165
|
+
* An circular Progress HTML Element.
|
|
5166
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
5167
|
+
*
|
|
5168
|
+
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
5169
|
+
* @slot determinate - The slot for a custom determinate indicator
|
|
5170
|
+
* @csspart progress - Represents the progress element
|
|
5171
|
+
* @csspart determinate - The determinate indicator
|
|
5172
|
+
* @csspart background - The background
|
|
5173
|
+
*
|
|
5174
|
+
* @public
|
|
5175
|
+
*/
|
|
5176
|
+
class FASTProgressRing extends FASTBaseProgress {}
|
|
5177
|
+
|
|
5178
|
+
const progressSegments = 44;
|
|
5179
|
+
/**
|
|
5180
|
+
* The template for the {@link @microsoft/fast-foundation#FASTProgressRing} component.
|
|
5181
|
+
* @public
|
|
5182
|
+
*/
|
|
5183
|
+
function progressRingTemplate(options = {}) {
|
|
5184
|
+
return html`<template role="progressbar" aria-valuenow="${x => x.value}" aria-valuemin="${x => x.min}" aria-valuemax="${x => x.max}">${when(x => typeof x.value === "number", html`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${x => progressSegments * x.percentComplete / 100}px ${progressSegments}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${when(x => typeof x.value !== "number", html`<slot name="indeterminate">${staticallyCompose(options.indeterminateIndicator)}</slot>`)}</template>`;
|
|
5185
|
+
}
|
|
5186
|
+
|
|
5187
|
+
/**
|
|
5188
|
+
* An Progress HTML Element.
|
|
5189
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
5190
|
+
*
|
|
5191
|
+
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
5192
|
+
* @csspart progress - Represents the progress element
|
|
5193
|
+
* @csspart determinate - The determinate indicator
|
|
5194
|
+
* @csspart indeterminate - The indeterminate indicator
|
|
5195
|
+
*
|
|
5196
|
+
* @public
|
|
5197
|
+
*/
|
|
5198
|
+
class FASTProgress extends FASTBaseProgress {}
|
|
5199
|
+
|
|
5200
|
+
/**
|
|
5201
|
+
* The template for the {@link @microsoft/fast-foundation#FASTProgress} component.
|
|
5202
|
+
* @public
|
|
5203
|
+
*/
|
|
5204
|
+
function progressTemplate(options = {}) {
|
|
5205
|
+
return html`<template role="progressbar" aria-valuenow="${x => x.value}" aria-valuemin="${x => x.min}" aria-valuemax="${x => x.max}">${when(x => typeof x.value === "number", html`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${x => x.percentComplete}%"></div></div>`)} ${when(x => typeof x.value !== "number", html`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${staticallyCompose(options.indeterminateIndicator1)} ${staticallyCompose(options.indeterminateIndicator2)}</slot></div>`)}</template>`;
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* The orientation of a {@link @microsoft/fast-foundation#(FASTSlider:class)}.
|
|
5210
|
+
* @public
|
|
5211
|
+
*/
|
|
5212
|
+
const SliderOrientation = Orientation;
|
|
5213
|
+
/**
|
|
5214
|
+
* The selection modes of a {@link @microsoft/fast-foundation#(FASTSlider:class)}.
|
|
5215
|
+
* @public
|
|
5216
|
+
*/
|
|
5217
|
+
const SliderMode = {
|
|
5218
|
+
singleValue: "single-value"
|
|
5219
|
+
};
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Converts a pixel coordinate on the track to a percent of the track's range
|
|
5223
|
+
*/
|
|
5224
|
+
function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
|
|
5225
|
+
let pct = limit(0, 1, (pixelPos - minPosition) / (maxPosition - minPosition));
|
|
5226
|
+
if (direction === Direction.rtl) {
|
|
5227
|
+
pct = 1 - pct;
|
|
5228
|
+
}
|
|
5229
|
+
return pct;
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
class _Slider extends FASTElement {}
|
|
5233
|
+
/**
|
|
5234
|
+
* A form-associated base class for the {@link @microsoft/fast-foundation#(Slider:class)} component.
|
|
5235
|
+
*
|
|
5236
|
+
* @beta
|
|
5237
|
+
*/
|
|
5238
|
+
class FormAssociatedSlider extends FormAssociated(_Slider) {
|
|
5239
|
+
constructor() {
|
|
5240
|
+
super(...arguments);
|
|
5241
|
+
this.proxy = document.createElement("input");
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
|
|
5245
|
+
/**
|
|
5246
|
+
* A Slider Custom HTML Element.
|
|
5247
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#slider | ARIA slider }.
|
|
5248
|
+
*
|
|
5249
|
+
* @slot track - The track of the slider
|
|
5250
|
+
* @slot track-start - The track-start visual indicator
|
|
5251
|
+
* @slot thumb - The slider thumb
|
|
5252
|
+
* @slot - The default slot for labels
|
|
5253
|
+
* @csspart positioning-region - The region used to position the elements of the slider
|
|
5254
|
+
* @csspart track-container - The region containing the track elements
|
|
5255
|
+
* @csspart track-start - The element wrapping the track start slot
|
|
5256
|
+
* @csspart thumb-container - The thumb container element which is programatically positioned
|
|
5257
|
+
* @fires change - Fires a custom 'change' event when the slider value changes
|
|
5258
|
+
*
|
|
5259
|
+
* @public
|
|
5260
|
+
*/
|
|
5261
|
+
class FASTSlider extends FormAssociatedSlider {
|
|
5262
|
+
constructor() {
|
|
5263
|
+
super(...arguments);
|
|
5264
|
+
/**
|
|
5265
|
+
* @internal
|
|
5266
|
+
*/
|
|
5267
|
+
this.direction = Direction.ltr;
|
|
5268
|
+
/**
|
|
5269
|
+
* @internal
|
|
5270
|
+
*/
|
|
5271
|
+
this.isDragging = false;
|
|
5272
|
+
/**
|
|
5273
|
+
* @internal
|
|
5274
|
+
*/
|
|
5275
|
+
this.trackWidth = 0;
|
|
5276
|
+
/**
|
|
5277
|
+
* @internal
|
|
5278
|
+
*/
|
|
5279
|
+
this.trackMinWidth = 0;
|
|
5280
|
+
/**
|
|
5281
|
+
* @internal
|
|
5282
|
+
*/
|
|
5283
|
+
this.trackHeight = 0;
|
|
5284
|
+
/**
|
|
5285
|
+
* @internal
|
|
5286
|
+
*/
|
|
5287
|
+
this.trackLeft = 0;
|
|
5288
|
+
/**
|
|
5289
|
+
* @internal
|
|
5290
|
+
*/
|
|
5291
|
+
this.trackMinHeight = 0;
|
|
5292
|
+
/**
|
|
5293
|
+
* Custom function that generates a string for the component's "aria-valuetext" attribute based on the current value.
|
|
5294
|
+
*
|
|
5295
|
+
* @public
|
|
5296
|
+
*/
|
|
5297
|
+
this.valueTextFormatter = () => null;
|
|
5298
|
+
/**
|
|
5299
|
+
* The minimum allowed value.
|
|
5300
|
+
*
|
|
5301
|
+
* @defaultValue - 0
|
|
5302
|
+
* @public
|
|
5303
|
+
* @remarks
|
|
5304
|
+
* HTML Attribute: min
|
|
5305
|
+
*/
|
|
5306
|
+
this.min = 0; // Map to proxy element.
|
|
5307
|
+
/**
|
|
5308
|
+
* The maximum allowed value.
|
|
5309
|
+
*
|
|
5310
|
+
* @defaultValue - 10
|
|
5311
|
+
* @public
|
|
5312
|
+
* @remarks
|
|
5313
|
+
* HTML Attribute: max
|
|
5314
|
+
*/
|
|
5315
|
+
this.max = 10; // Map to proxy element.
|
|
5316
|
+
/**
|
|
5317
|
+
* The orientation of the slider.
|
|
5318
|
+
*
|
|
5319
|
+
* @public
|
|
5320
|
+
* @remarks
|
|
5321
|
+
* HTML Attribute: orientation
|
|
5322
|
+
*/
|
|
5323
|
+
this.orientation = Orientation.horizontal;
|
|
5324
|
+
/**
|
|
5325
|
+
* The selection mode.
|
|
5326
|
+
*
|
|
5327
|
+
* @public
|
|
5328
|
+
* @remarks
|
|
5329
|
+
* HTML Attribute: mode
|
|
5330
|
+
*/
|
|
5331
|
+
this.mode = SliderMode.singleValue;
|
|
5332
|
+
this.keypressHandler = e => {
|
|
5333
|
+
if (this.readOnly || this.disabled) {
|
|
5334
|
+
return;
|
|
5335
|
+
}
|
|
5336
|
+
if (e.key === keyHome) {
|
|
5337
|
+
e.preventDefault();
|
|
5338
|
+
this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? this.value = `${this.min}` : this.value = `${this.max}`;
|
|
5339
|
+
} else if (e.key === keyEnd) {
|
|
5340
|
+
e.preventDefault();
|
|
5341
|
+
this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? this.value = `${this.max}` : this.value = `${this.min}`;
|
|
5342
|
+
} else if (!e.shiftKey) {
|
|
5343
|
+
switch (e.key) {
|
|
5344
|
+
case keyArrowRight:
|
|
5345
|
+
case keyArrowUp:
|
|
5346
|
+
e.preventDefault();
|
|
5347
|
+
this.increment();
|
|
5348
|
+
break;
|
|
5349
|
+
case keyArrowLeft:
|
|
5350
|
+
case keyArrowDown:
|
|
5351
|
+
e.preventDefault();
|
|
5352
|
+
this.decrement();
|
|
5353
|
+
break;
|
|
5354
|
+
}
|
|
5355
|
+
}
|
|
5356
|
+
};
|
|
5357
|
+
this.setupTrackConstraints = () => {
|
|
5358
|
+
const clientRect = this.track.getBoundingClientRect();
|
|
5359
|
+
this.trackWidth = this.track.clientWidth;
|
|
5360
|
+
this.trackMinWidth = this.track.clientLeft;
|
|
5361
|
+
this.trackHeight = clientRect.top;
|
|
5362
|
+
this.trackMinHeight = clientRect.bottom;
|
|
5363
|
+
this.trackLeft = this.getBoundingClientRect().left;
|
|
5364
|
+
if (this.trackWidth === 0) {
|
|
5365
|
+
this.trackWidth = 1;
|
|
5366
|
+
}
|
|
5367
|
+
};
|
|
5368
|
+
this.setupListeners = (remove = false) => {
|
|
5369
|
+
const eventAction = `${remove ? "remove" : "add"}EventListener`;
|
|
5370
|
+
this[eventAction]("keydown", this.keypressHandler);
|
|
5371
|
+
this[eventAction]("mousedown", this.handleMouseDown);
|
|
5372
|
+
this.thumb[eventAction]("mousedown", this.handleThumbMouseDown, {
|
|
5373
|
+
passive: true
|
|
5374
|
+
});
|
|
5375
|
+
this.thumb[eventAction]("touchstart", this.handleThumbMouseDown, {
|
|
5376
|
+
passive: true
|
|
5377
|
+
});
|
|
5378
|
+
// removes handlers attached by mousedown handlers
|
|
5379
|
+
if (remove) {
|
|
5380
|
+
this.handleMouseDown(null);
|
|
5381
|
+
this.handleThumbMouseDown(null);
|
|
5382
|
+
}
|
|
5383
|
+
};
|
|
5384
|
+
/**
|
|
5385
|
+
* @internal
|
|
5386
|
+
*/
|
|
5387
|
+
this.initialValue = "";
|
|
5388
|
+
/**
|
|
5389
|
+
* Handle mouse moves during a thumb drag operation
|
|
5390
|
+
* If the event handler is null it removes the events
|
|
4966
5391
|
*/
|
|
4967
|
-
this.
|
|
5392
|
+
this.handleThumbMouseDown = event => {
|
|
5393
|
+
const eventAction = `${event !== null ? "add" : "remove"}EventListener`;
|
|
5394
|
+
window[eventAction]("mouseup", this.handleWindowMouseUp);
|
|
5395
|
+
window[eventAction]("mousemove", this.handleMouseMove, {
|
|
5396
|
+
passive: true
|
|
5397
|
+
});
|
|
5398
|
+
window[eventAction]("touchmove", this.handleMouseMove, {
|
|
5399
|
+
passive: true
|
|
5400
|
+
});
|
|
5401
|
+
window[eventAction]("touchend", this.handleWindowMouseUp);
|
|
5402
|
+
this.isDragging = event !== null;
|
|
5403
|
+
};
|
|
4968
5404
|
/**
|
|
4969
|
-
*
|
|
4970
|
-
*
|
|
4971
|
-
* @public
|
|
4972
|
-
* @remarks
|
|
4973
|
-
* HTML Attribute: orientation
|
|
5405
|
+
* Handle mouse moves during a thumb drag operation
|
|
4974
5406
|
*/
|
|
4975
|
-
this.
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
*/
|
|
4985
|
-
class FASTBaseProgress extends FASTElement {
|
|
4986
|
-
constructor() {
|
|
4987
|
-
super(...arguments);
|
|
5407
|
+
this.handleMouseMove = e => {
|
|
5408
|
+
if (this.readOnly || this.disabled || e.defaultPrevented) {
|
|
5409
|
+
return;
|
|
5410
|
+
}
|
|
5411
|
+
// update the value based on current position
|
|
5412
|
+
const sourceEvent = window.TouchEvent && e instanceof TouchEvent ? e.touches[0] : e;
|
|
5413
|
+
const eventValue = this.orientation === Orientation.horizontal ? sourceEvent.pageX - document.documentElement.scrollLeft - this.trackLeft : sourceEvent.pageY - document.documentElement.scrollTop;
|
|
5414
|
+
this.value = `${this.calculateNewValue(eventValue)}`;
|
|
5415
|
+
};
|
|
4988
5416
|
/**
|
|
4989
|
-
*
|
|
4990
|
-
* @internal
|
|
5417
|
+
* Handle a window mouse up during a drag operation
|
|
4991
5418
|
*/
|
|
4992
|
-
this.
|
|
5419
|
+
this.handleWindowMouseUp = event => {
|
|
5420
|
+
this.stopDragging();
|
|
5421
|
+
};
|
|
5422
|
+
this.stopDragging = () => {
|
|
5423
|
+
this.isDragging = false;
|
|
5424
|
+
this.handleMouseDown(null);
|
|
5425
|
+
this.handleThumbMouseDown(null);
|
|
5426
|
+
};
|
|
5427
|
+
/**
|
|
5428
|
+
*
|
|
5429
|
+
* @param e - MouseEvent or null. If there is no event handler it will remove the events
|
|
5430
|
+
*/
|
|
5431
|
+
this.handleMouseDown = e => {
|
|
5432
|
+
const eventAction = `${e !== null ? "add" : "remove"}EventListener`;
|
|
5433
|
+
if (e === null || !this.disabled && !this.readOnly) {
|
|
5434
|
+
window[eventAction]("mouseup", this.handleWindowMouseUp);
|
|
5435
|
+
window.document[eventAction]("mouseleave", this.handleWindowMouseUp);
|
|
5436
|
+
window[eventAction]("mousemove", this.handleMouseMove);
|
|
5437
|
+
if (e) {
|
|
5438
|
+
this.setupTrackConstraints();
|
|
5439
|
+
const controlValue = this.orientation === Orientation.horizontal ? e.pageX - document.documentElement.scrollLeft - this.trackLeft : e.pageY - document.documentElement.scrollTop;
|
|
5440
|
+
this.value = `${this.calculateNewValue(controlValue)}`;
|
|
5441
|
+
}
|
|
5442
|
+
}
|
|
5443
|
+
};
|
|
4993
5444
|
}
|
|
4994
|
-
|
|
4995
|
-
this.
|
|
5445
|
+
readOnlyChanged() {
|
|
5446
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
5447
|
+
this.proxy.readOnly = this.readOnly;
|
|
5448
|
+
}
|
|
4996
5449
|
}
|
|
4997
|
-
|
|
5450
|
+
/**
|
|
5451
|
+
* The value property, typed as a number.
|
|
5452
|
+
*
|
|
5453
|
+
* @public
|
|
5454
|
+
*/
|
|
5455
|
+
get valueAsNumber() {
|
|
5456
|
+
return parseFloat(super.value);
|
|
5457
|
+
}
|
|
5458
|
+
set valueAsNumber(next) {
|
|
5459
|
+
this.value = next.toString();
|
|
5460
|
+
}
|
|
5461
|
+
/**
|
|
5462
|
+
* @internal
|
|
5463
|
+
*/
|
|
5464
|
+
valueChanged(previous, next) {
|
|
4998
5465
|
if (this.$fastController.isConnected) {
|
|
4999
|
-
|
|
5466
|
+
const nextAsNumber = parseFloat(next);
|
|
5467
|
+
const value = limit(this.min, this.max, this.convertToConstrainedValue(nextAsNumber)).toString();
|
|
5468
|
+
if (value !== next) {
|
|
5469
|
+
this.value = value;
|
|
5470
|
+
return;
|
|
5471
|
+
}
|
|
5472
|
+
super.valueChanged(previous, next);
|
|
5473
|
+
this.setThumbPositionForOrientation(this.direction);
|
|
5474
|
+
this.$emit("change");
|
|
5475
|
+
}
|
|
5476
|
+
}
|
|
5477
|
+
minChanged() {
|
|
5478
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
5479
|
+
this.proxy.min = `${this.min}`;
|
|
5000
5480
|
}
|
|
5481
|
+
this.validate();
|
|
5001
5482
|
}
|
|
5002
5483
|
maxChanged() {
|
|
5484
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
5485
|
+
this.proxy.max = `${this.max}`;
|
|
5486
|
+
}
|
|
5487
|
+
this.validate();
|
|
5488
|
+
}
|
|
5489
|
+
stepChanged() {
|
|
5490
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
5491
|
+
this.proxy.step = `${this.step}`;
|
|
5492
|
+
}
|
|
5493
|
+
this.updateStepMultiplier();
|
|
5494
|
+
this.validate();
|
|
5495
|
+
}
|
|
5496
|
+
orientationChanged() {
|
|
5003
5497
|
if (this.$fastController.isConnected) {
|
|
5004
|
-
this.
|
|
5498
|
+
this.setThumbPositionForOrientation(this.direction);
|
|
5005
5499
|
}
|
|
5006
5500
|
}
|
|
5007
5501
|
/**
|
|
@@ -5009,69 +5503,151 @@ class FASTBaseProgress extends FASTElement {
|
|
|
5009
5503
|
*/
|
|
5010
5504
|
connectedCallback() {
|
|
5011
5505
|
super.connectedCallback();
|
|
5012
|
-
this.
|
|
5506
|
+
this.proxy.setAttribute("type", "range");
|
|
5507
|
+
this.direction = getDirection(this);
|
|
5508
|
+
this.updateStepMultiplier();
|
|
5509
|
+
this.setupTrackConstraints();
|
|
5510
|
+
this.setupListeners();
|
|
5511
|
+
this.setupDefaultValue();
|
|
5512
|
+
this.setThumbPositionForOrientation(this.direction);
|
|
5013
5513
|
}
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5514
|
+
/**
|
|
5515
|
+
* @internal
|
|
5516
|
+
*/
|
|
5517
|
+
disconnectedCallback() {
|
|
5518
|
+
this.setupListeners(true);
|
|
5519
|
+
}
|
|
5520
|
+
/**
|
|
5521
|
+
* Increment the value by the step
|
|
5522
|
+
*
|
|
5523
|
+
* @public
|
|
5524
|
+
*/
|
|
5525
|
+
increment() {
|
|
5526
|
+
const newVal = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? Number(this.value) + Number(this.stepValue) : Number(this.value) + Number(this.stepValue);
|
|
5527
|
+
const incrementedVal = this.convertToConstrainedValue(newVal);
|
|
5528
|
+
const incrementedValString = incrementedVal < Number(this.max) ? `${incrementedVal}` : `${this.max}`;
|
|
5529
|
+
this.value = incrementedValString;
|
|
5530
|
+
}
|
|
5531
|
+
/**
|
|
5532
|
+
* Decrement the value by the step
|
|
5533
|
+
*
|
|
5534
|
+
* @public
|
|
5535
|
+
*/
|
|
5536
|
+
decrement() {
|
|
5537
|
+
const newVal = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? Number(this.value) - Number(this.stepValue) : Number(this.value) - Number(this.stepValue);
|
|
5538
|
+
const decrementedVal = this.convertToConstrainedValue(newVal);
|
|
5539
|
+
const decrementedValString = decrementedVal > Number(this.min) ? `${decrementedVal}` : `${this.min}`;
|
|
5540
|
+
this.value = decrementedValString;
|
|
5541
|
+
}
|
|
5542
|
+
/**
|
|
5543
|
+
* Gets the actual step value for the slider
|
|
5544
|
+
*
|
|
5545
|
+
*/
|
|
5546
|
+
get stepValue() {
|
|
5547
|
+
return this.step === undefined ? 1 : this.step;
|
|
5548
|
+
}
|
|
5549
|
+
/**
|
|
5550
|
+
* Places the thumb based on the current value
|
|
5551
|
+
*
|
|
5552
|
+
* @public
|
|
5553
|
+
* @param direction - writing mode
|
|
5554
|
+
*/
|
|
5555
|
+
setThumbPositionForOrientation(direction) {
|
|
5556
|
+
const newPct = convertPixelToPercent(Number(this.value), Number(this.min), Number(this.max), direction);
|
|
5557
|
+
const percentage = (1 - newPct) * 100;
|
|
5558
|
+
if (this.orientation === Orientation.horizontal) {
|
|
5559
|
+
this.position = this.isDragging ? `right: ${percentage}%; transition: none;` : `right: ${percentage}%; transition: all 0.2s ease;`;
|
|
5560
|
+
} else {
|
|
5561
|
+
this.position = this.isDragging ? `top: ${percentage}%; transition: none;` : `top: ${percentage}%; transition: all 0.2s ease;`;
|
|
5562
|
+
}
|
|
5563
|
+
}
|
|
5564
|
+
/**
|
|
5565
|
+
* Update the step multiplier used to ensure rounding errors from steps that
|
|
5566
|
+
* are not whole numbers
|
|
5567
|
+
*/
|
|
5568
|
+
updateStepMultiplier() {
|
|
5569
|
+
const stepString = this.stepValue + "";
|
|
5570
|
+
const decimalPlacesOfStep = !!(this.stepValue % 1) ? stepString.length - stepString.indexOf(".") - 1 : 0;
|
|
5571
|
+
this.stepMultiplier = Math.pow(10, decimalPlacesOfStep);
|
|
5572
|
+
}
|
|
5573
|
+
get midpoint() {
|
|
5574
|
+
return `${this.convertToConstrainedValue((this.max + this.min) / 2)}`;
|
|
5575
|
+
}
|
|
5576
|
+
setupDefaultValue() {
|
|
5577
|
+
if (typeof this.value === "string") {
|
|
5578
|
+
if (this.value.length === 0) {
|
|
5579
|
+
this.initialValue = this.midpoint;
|
|
5580
|
+
} else {
|
|
5581
|
+
const value = parseFloat(this.value);
|
|
5582
|
+
if (!Number.isNaN(value) && (value < this.min || value > this.max)) {
|
|
5583
|
+
this.value = this.midpoint;
|
|
5584
|
+
}
|
|
5585
|
+
}
|
|
5586
|
+
}
|
|
5587
|
+
}
|
|
5588
|
+
/**
|
|
5589
|
+
* Calculate the new value based on the given raw pixel value.
|
|
5590
|
+
*
|
|
5591
|
+
* @param rawValue - the value to be converted to a constrained value
|
|
5592
|
+
* @returns the constrained value
|
|
5593
|
+
*
|
|
5594
|
+
* @internal
|
|
5595
|
+
*/
|
|
5596
|
+
calculateNewValue(rawValue) {
|
|
5597
|
+
this.setupTrackConstraints();
|
|
5598
|
+
// update the value based on current position
|
|
5599
|
+
const newPosition = convertPixelToPercent(rawValue, this.orientation === Orientation.horizontal ? this.trackMinWidth : this.trackMinHeight, this.orientation === Orientation.horizontal ? this.trackWidth : this.trackHeight, this.direction);
|
|
5600
|
+
const newValue = (this.max - this.min) * newPosition + this.min;
|
|
5601
|
+
return this.convertToConstrainedValue(newValue);
|
|
5602
|
+
}
|
|
5603
|
+
convertToConstrainedValue(value) {
|
|
5604
|
+
if (isNaN(value)) {
|
|
5605
|
+
value = this.min;
|
|
5606
|
+
}
|
|
5607
|
+
/**
|
|
5608
|
+
* The following logic intends to overcome the issue with math in JavaScript with regards to floating point numbers.
|
|
5609
|
+
* This is needed as the `step` may be an integer but could also be a float. To accomplish this the step is assumed to be a float
|
|
5610
|
+
* and is converted to an integer by determining the number of decimal places it represent, multiplying it until it is an
|
|
5611
|
+
* integer and then dividing it to get back to the correct number.
|
|
5612
|
+
*/
|
|
5613
|
+
let constrainedValue = value - this.min;
|
|
5614
|
+
const roundedConstrainedValue = Math.round(constrainedValue / this.stepValue);
|
|
5615
|
+
const remainderValue = constrainedValue - roundedConstrainedValue * (this.stepMultiplier * this.stepValue) / this.stepMultiplier;
|
|
5616
|
+
constrainedValue = remainderValue >= Number(this.stepValue) / 2 ? constrainedValue - remainderValue + Number(this.stepValue) : constrainedValue - remainderValue;
|
|
5617
|
+
return constrainedValue + this.min;
|
|
5020
5618
|
}
|
|
5021
5619
|
}
|
|
5620
|
+
__decorate([attr({
|
|
5621
|
+
attribute: "readonly",
|
|
5622
|
+
mode: "boolean"
|
|
5623
|
+
})], FASTSlider.prototype, "readOnly", void 0);
|
|
5624
|
+
__decorate([observable], FASTSlider.prototype, "direction", void 0);
|
|
5625
|
+
__decorate([observable], FASTSlider.prototype, "isDragging", void 0);
|
|
5626
|
+
__decorate([observable], FASTSlider.prototype, "position", void 0);
|
|
5627
|
+
__decorate([observable], FASTSlider.prototype, "trackWidth", void 0);
|
|
5628
|
+
__decorate([observable], FASTSlider.prototype, "trackMinWidth", void 0);
|
|
5629
|
+
__decorate([observable], FASTSlider.prototype, "trackHeight", void 0);
|
|
5630
|
+
__decorate([observable], FASTSlider.prototype, "trackLeft", void 0);
|
|
5631
|
+
__decorate([observable], FASTSlider.prototype, "trackMinHeight", void 0);
|
|
5632
|
+
__decorate([observable], FASTSlider.prototype, "valueTextFormatter", void 0);
|
|
5022
5633
|
__decorate([attr({
|
|
5023
5634
|
converter: nullableNumberConverter
|
|
5024
|
-
})],
|
|
5635
|
+
})], FASTSlider.prototype, "min", void 0);
|
|
5025
5636
|
__decorate([attr({
|
|
5026
5637
|
converter: nullableNumberConverter
|
|
5027
|
-
})],
|
|
5638
|
+
})], FASTSlider.prototype, "max", void 0);
|
|
5028
5639
|
__decorate([attr({
|
|
5029
5640
|
converter: nullableNumberConverter
|
|
5030
|
-
})],
|
|
5031
|
-
__decorate([
|
|
5641
|
+
})], FASTSlider.prototype, "step", void 0);
|
|
5642
|
+
__decorate([attr], FASTSlider.prototype, "orientation", void 0);
|
|
5643
|
+
__decorate([attr], FASTSlider.prototype, "mode", void 0);
|
|
5032
5644
|
|
|
5033
5645
|
/**
|
|
5034
|
-
*
|
|
5035
|
-
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
5036
|
-
*
|
|
5037
|
-
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
5038
|
-
* @slot determinate - The slot for a custom determinate indicator
|
|
5039
|
-
* @csspart progress - Represents the progress element
|
|
5040
|
-
* @csspart determinate - The determinate indicator
|
|
5041
|
-
* @csspart background - The background
|
|
5042
|
-
*
|
|
5043
|
-
* @public
|
|
5044
|
-
*/
|
|
5045
|
-
class FASTProgressRing extends FASTBaseProgress {}
|
|
5046
|
-
|
|
5047
|
-
const progressSegments = 44;
|
|
5048
|
-
/**
|
|
5049
|
-
* The template for the {@link @microsoft/fast-foundation#FASTProgressRing} component.
|
|
5050
|
-
* @public
|
|
5051
|
-
*/
|
|
5052
|
-
function progressRingTemplate(options = {}) {
|
|
5053
|
-
return html`<template role="progressbar" aria-valuenow="${x => x.value}" aria-valuemin="${x => x.min}" aria-valuemax="${x => x.max}">${when(x => typeof x.value === "number", html`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${x => progressSegments * x.percentComplete / 100}px ${progressSegments}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${when(x => typeof x.value !== "number", html`<slot name="indeterminate">${staticallyCompose(options.indeterminateIndicator)}</slot>`)}</template>`;
|
|
5054
|
-
}
|
|
5055
|
-
|
|
5056
|
-
/**
|
|
5057
|
-
* An Progress HTML Element.
|
|
5058
|
-
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
5059
|
-
*
|
|
5060
|
-
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
5061
|
-
* @csspart progress - Represents the progress element
|
|
5062
|
-
* @csspart determinate - The determinate indicator
|
|
5063
|
-
* @csspart indeterminate - The indeterminate indicator
|
|
5064
|
-
*
|
|
5065
|
-
* @public
|
|
5066
|
-
*/
|
|
5067
|
-
class FASTProgress extends FASTBaseProgress {}
|
|
5068
|
-
|
|
5069
|
-
/**
|
|
5070
|
-
* The template for the {@link @microsoft/fast-foundation#FASTProgress} component.
|
|
5646
|
+
* The template for the {@link @microsoft/fast-foundation#(FASTSlider:class)} component.
|
|
5071
5647
|
* @public
|
|
5072
5648
|
*/
|
|
5073
|
-
function
|
|
5074
|
-
return html`<template role="
|
|
5649
|
+
function sliderTemplate(options = {}) {
|
|
5650
|
+
return html`<template role="slider" tabindex="${x => x.disabled ? null : 0}" aria-valuetext="${x => x.valueTextFormatter(x.value)}" aria-valuenow="${x => x.value}" aria-valuemin="${x => x.min}" aria-valuemax="${x => x.max}" aria-disabled="${x => x.disabled ? true : void 0}" aria-readonly="${x => x.readOnly ? true : void 0}" aria-orientation="${x => x.orientation}" class="${x => x.orientation}"><div part="positioning-region" class="positioning-region"><div ${ref("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${x => x.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${ref("thumb")} part="thumb-container" class="thumb-container" style="${x => x.position}"><slot name="thumb">${staticallyCompose(options.thumb)}</slot></div></div></template>`;
|
|
5075
5651
|
}
|
|
5076
5652
|
|
|
5077
5653
|
/**
|
|
@@ -5150,16 +5726,6 @@ class FASTSwitch extends FormAssociatedSwitch {
|
|
|
5150
5726
|
this.proxy.readOnly = this.readOnly;
|
|
5151
5727
|
}
|
|
5152
5728
|
}
|
|
5153
|
-
/**
|
|
5154
|
-
* @internal
|
|
5155
|
-
*/
|
|
5156
|
-
checkedChanged(prev, next) {
|
|
5157
|
-
super.checkedChanged(prev, next);
|
|
5158
|
-
/**
|
|
5159
|
-
* @deprecated - this behavior already exists in the template and should not exist in the class.
|
|
5160
|
-
*/
|
|
5161
|
-
this.checked ? this.classList.add("checked") : this.classList.remove("checked");
|
|
5162
|
-
}
|
|
5163
5729
|
}
|
|
5164
5730
|
__decorate([attr({
|
|
5165
5731
|
attribute: "readonly",
|
|
@@ -5188,12 +5754,12 @@ function display(displayValue) {
|
|
|
5188
5754
|
*/
|
|
5189
5755
|
class Accordion extends FASTAccordion {}
|
|
5190
5756
|
|
|
5191
|
-
const template$
|
|
5757
|
+
const template$b = accordionTemplate();
|
|
5192
5758
|
|
|
5193
|
-
const styles$
|
|
5759
|
+
const styles$b = css`
|
|
5194
5760
|
${display('flex')}
|
|
5195
5761
|
|
|
5196
|
-
:host{flex-direction:column;width:100
|
|
5762
|
+
:host{flex-direction:column;width:100%;contain:content}`;
|
|
5197
5763
|
|
|
5198
5764
|
const FluentDesignSystem = Object.freeze({
|
|
5199
5765
|
prefix: 'fluent',
|
|
@@ -5210,10 +5776,10 @@ const FluentDesignSystem = Object.freeze({
|
|
|
5210
5776
|
* @remarks
|
|
5211
5777
|
* HTML Element: \<fluent-accordion\>
|
|
5212
5778
|
*/
|
|
5213
|
-
const definition$
|
|
5779
|
+
const definition$b = Accordion.compose({
|
|
5214
5780
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
5215
|
-
template: template$
|
|
5216
|
-
styles: styles$
|
|
5781
|
+
template: template$b,
|
|
5782
|
+
styles: styles$b
|
|
5217
5783
|
});
|
|
5218
5784
|
|
|
5219
5785
|
/**
|
|
@@ -5646,397 +6212,397 @@ const shadow28Brand = create('shadow28Brand');
|
|
|
5646
6212
|
const shadow64Brand = create('shadow64Brand');
|
|
5647
6213
|
|
|
5648
6214
|
var tokens = /*#__PURE__*/Object.freeze({
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6215
|
+
__proto__: null,
|
|
6216
|
+
borderRadiusNone: borderRadiusNone,
|
|
6217
|
+
borderRadiusSmall: borderRadiusSmall,
|
|
6218
|
+
borderRadiusMedium: borderRadiusMedium,
|
|
6219
|
+
borderRadiusLarge: borderRadiusLarge,
|
|
6220
|
+
borderRadiusXLarge: borderRadiusXLarge,
|
|
6221
|
+
borderRadiusCircular: borderRadiusCircular,
|
|
6222
|
+
fontSizeBase100: fontSizeBase100,
|
|
6223
|
+
fontSizeBase200: fontSizeBase200,
|
|
6224
|
+
fontSizeBase300: fontSizeBase300,
|
|
6225
|
+
fontSizeBase400: fontSizeBase400,
|
|
6226
|
+
fontSizeBase500: fontSizeBase500,
|
|
6227
|
+
fontSizeBase600: fontSizeBase600,
|
|
6228
|
+
fontSizeHero700: fontSizeHero700,
|
|
6229
|
+
fontSizeHero800: fontSizeHero800,
|
|
6230
|
+
fontSizeHero900: fontSizeHero900,
|
|
6231
|
+
fontSizeHero1000: fontSizeHero1000,
|
|
6232
|
+
lineHeightBase100: lineHeightBase100,
|
|
6233
|
+
lineHeightBase200: lineHeightBase200,
|
|
6234
|
+
lineHeightBase300: lineHeightBase300,
|
|
6235
|
+
lineHeightBase400: lineHeightBase400,
|
|
6236
|
+
lineHeightBase500: lineHeightBase500,
|
|
6237
|
+
lineHeightBase600: lineHeightBase600,
|
|
6238
|
+
lineHeightHero700: lineHeightHero700,
|
|
6239
|
+
lineHeightHero800: lineHeightHero800,
|
|
6240
|
+
lineHeightHero900: lineHeightHero900,
|
|
6241
|
+
lineHeightHero1000: lineHeightHero1000,
|
|
6242
|
+
fontFamilyBase: fontFamilyBase,
|
|
6243
|
+
fontFamilyMonospace: fontFamilyMonospace,
|
|
6244
|
+
fontFamilyNumeric: fontFamilyNumeric,
|
|
6245
|
+
fontWeightRegular: fontWeightRegular,
|
|
6246
|
+
fontWeightMedium: fontWeightMedium,
|
|
6247
|
+
fontWeightSemibold: fontWeightSemibold,
|
|
6248
|
+
fontWeightBold: fontWeightBold,
|
|
6249
|
+
strokeWidthThin: strokeWidthThin,
|
|
6250
|
+
strokeWidthThick: strokeWidthThick,
|
|
6251
|
+
strokeWidthThicker: strokeWidthThicker,
|
|
6252
|
+
strokeWidthThickest: strokeWidthThickest,
|
|
6253
|
+
spacingHorizontalNone: spacingHorizontalNone,
|
|
6254
|
+
spacingHorizontalXXS: spacingHorizontalXXS,
|
|
6255
|
+
spacingHorizontalXS: spacingHorizontalXS,
|
|
6256
|
+
spacingHorizontalSNudge: spacingHorizontalSNudge,
|
|
6257
|
+
spacingHorizontalS: spacingHorizontalS,
|
|
6258
|
+
spacingHorizontalMNudge: spacingHorizontalMNudge,
|
|
6259
|
+
spacingHorizontalM: spacingHorizontalM,
|
|
6260
|
+
spacingHorizontalL: spacingHorizontalL,
|
|
6261
|
+
spacingHorizontalXL: spacingHorizontalXL,
|
|
6262
|
+
spacingHorizontalXXL: spacingHorizontalXXL,
|
|
6263
|
+
spacingHorizontalXXXL: spacingHorizontalXXXL,
|
|
6264
|
+
spacingVerticalNone: spacingVerticalNone,
|
|
6265
|
+
spacingVerticalXXS: spacingVerticalXXS,
|
|
6266
|
+
spacingVerticalXS: spacingVerticalXS,
|
|
6267
|
+
spacingVerticalSNudge: spacingVerticalSNudge,
|
|
6268
|
+
spacingVerticalS: spacingVerticalS,
|
|
6269
|
+
spacingVerticalMNudge: spacingVerticalMNudge,
|
|
6270
|
+
spacingVerticalM: spacingVerticalM,
|
|
6271
|
+
spacingVerticalL: spacingVerticalL,
|
|
6272
|
+
spacingVerticalXL: spacingVerticalXL,
|
|
6273
|
+
spacingVerticalXXL: spacingVerticalXXL,
|
|
6274
|
+
spacingVerticalXXXL: spacingVerticalXXXL,
|
|
6275
|
+
durationUltraFast: durationUltraFast,
|
|
6276
|
+
durationFaster: durationFaster,
|
|
6277
|
+
durationFast: durationFast,
|
|
6278
|
+
durationNormal: durationNormal,
|
|
6279
|
+
durationSlow: durationSlow,
|
|
6280
|
+
durationSlower: durationSlower,
|
|
6281
|
+
durationUltraSlow: durationUltraSlow,
|
|
6282
|
+
curveAccelerateMax: curveAccelerateMax,
|
|
6283
|
+
curveAccelerateMid: curveAccelerateMid,
|
|
6284
|
+
curveAccelerateMin: curveAccelerateMin,
|
|
6285
|
+
curveDecelerateMax: curveDecelerateMax,
|
|
6286
|
+
curveDecelerateMid: curveDecelerateMid,
|
|
6287
|
+
curveDecelerateMin: curveDecelerateMin,
|
|
6288
|
+
curveEasyEaseMax: curveEasyEaseMax,
|
|
6289
|
+
curveEasyEase: curveEasyEase,
|
|
6290
|
+
curveLinear: curveLinear,
|
|
6291
|
+
colorNeutralForeground1: colorNeutralForeground1,
|
|
6292
|
+
colorNeutralForeground1Hover: colorNeutralForeground1Hover,
|
|
6293
|
+
colorNeutralForeground1Pressed: colorNeutralForeground1Pressed,
|
|
6294
|
+
colorNeutralForeground1Selected: colorNeutralForeground1Selected,
|
|
6295
|
+
colorNeutralForeground2: colorNeutralForeground2,
|
|
6296
|
+
colorNeutralForeground2Hover: colorNeutralForeground2Hover,
|
|
6297
|
+
colorNeutralForeground2Pressed: colorNeutralForeground2Pressed,
|
|
6298
|
+
colorNeutralForeground2Selected: colorNeutralForeground2Selected,
|
|
6299
|
+
colorNeutralForeground2BrandHover: colorNeutralForeground2BrandHover,
|
|
6300
|
+
colorNeutralForeground2BrandPressed: colorNeutralForeground2BrandPressed,
|
|
6301
|
+
colorNeutralForeground2BrandSelected: colorNeutralForeground2BrandSelected,
|
|
6302
|
+
colorNeutralForeground3: colorNeutralForeground3,
|
|
6303
|
+
colorNeutralForeground3Hover: colorNeutralForeground3Hover,
|
|
6304
|
+
colorNeutralForeground3Pressed: colorNeutralForeground3Pressed,
|
|
6305
|
+
colorNeutralForeground3Selected: colorNeutralForeground3Selected,
|
|
6306
|
+
colorNeutralForeground3BrandHover: colorNeutralForeground3BrandHover,
|
|
6307
|
+
colorNeutralForeground3BrandPressed: colorNeutralForeground3BrandPressed,
|
|
6308
|
+
colorNeutralForeground3BrandSelected: colorNeutralForeground3BrandSelected,
|
|
6309
|
+
colorNeutralForeground4: colorNeutralForeground4,
|
|
6310
|
+
colorNeutralForegroundDisabled: colorNeutralForegroundDisabled,
|
|
6311
|
+
colorNeutralForegroundInvertedDisabled: colorNeutralForegroundInvertedDisabled,
|
|
6312
|
+
colorBrandForegroundLink: colorBrandForegroundLink,
|
|
6313
|
+
colorBrandForegroundLinkHover: colorBrandForegroundLinkHover,
|
|
6314
|
+
colorBrandForegroundLinkPressed: colorBrandForegroundLinkPressed,
|
|
6315
|
+
colorBrandForegroundLinkSelected: colorBrandForegroundLinkSelected,
|
|
6316
|
+
colorNeutralForeground2Link: colorNeutralForeground2Link,
|
|
6317
|
+
colorNeutralForeground2LinkHover: colorNeutralForeground2LinkHover,
|
|
6318
|
+
colorNeutralForeground2LinkPressed: colorNeutralForeground2LinkPressed,
|
|
6319
|
+
colorNeutralForeground2LinkSelected: colorNeutralForeground2LinkSelected,
|
|
6320
|
+
colorCompoundBrandForeground1: colorCompoundBrandForeground1,
|
|
6321
|
+
colorCompoundBrandForeground1Hover: colorCompoundBrandForeground1Hover,
|
|
6322
|
+
colorCompoundBrandForeground1Pressed: colorCompoundBrandForeground1Pressed,
|
|
6323
|
+
colorBrandForeground1: colorBrandForeground1,
|
|
6324
|
+
colorBrandForeground2: colorBrandForeground2,
|
|
6325
|
+
colorNeutralForeground1Static: colorNeutralForeground1Static,
|
|
6326
|
+
colorNeutralForegroundStaticInverted: colorNeutralForegroundStaticInverted,
|
|
6327
|
+
colorNeutralForegroundInverted: colorNeutralForegroundInverted,
|
|
6328
|
+
colorNeutralForegroundInvertedHover: colorNeutralForegroundInvertedHover,
|
|
6329
|
+
colorNeutralForegroundInvertedPressed: colorNeutralForegroundInvertedPressed,
|
|
6330
|
+
colorNeutralForegroundInvertedSelected: colorNeutralForegroundInvertedSelected,
|
|
6331
|
+
colorNeutralForegroundInverted2: colorNeutralForegroundInverted2,
|
|
6332
|
+
colorNeutralForegroundOnBrand: colorNeutralForegroundOnBrand,
|
|
6333
|
+
colorNeutralForegroundInvertedLink: colorNeutralForegroundInvertedLink,
|
|
6334
|
+
colorNeutralForegroundInvertedLinkHover: colorNeutralForegroundInvertedLinkHover,
|
|
6335
|
+
colorNeutralForegroundInvertedLinkPressed: colorNeutralForegroundInvertedLinkPressed,
|
|
6336
|
+
colorNeutralForegroundInvertedLinkSelected: colorNeutralForegroundInvertedLinkSelected,
|
|
6337
|
+
colorBrandForegroundInverted: colorBrandForegroundInverted,
|
|
6338
|
+
colorBrandForegroundInvertedHover: colorBrandForegroundInvertedHover,
|
|
6339
|
+
colorBrandForegroundInvertedPressed: colorBrandForegroundInvertedPressed,
|
|
6340
|
+
colorBrandForegroundOnLight: colorBrandForegroundOnLight,
|
|
6341
|
+
colorBrandForegroundOnLightHover: colorBrandForegroundOnLightHover,
|
|
6342
|
+
colorBrandForegroundOnLightPressed: colorBrandForegroundOnLightPressed,
|
|
6343
|
+
colorBrandForegroundOnLightSelected: colorBrandForegroundOnLightSelected,
|
|
6344
|
+
colorNeutralBackground1: colorNeutralBackground1,
|
|
6345
|
+
colorNeutralBackground1Hover: colorNeutralBackground1Hover,
|
|
6346
|
+
colorNeutralBackground1Pressed: colorNeutralBackground1Pressed,
|
|
6347
|
+
colorNeutralBackground1Selected: colorNeutralBackground1Selected,
|
|
6348
|
+
colorNeutralBackground2: colorNeutralBackground2,
|
|
6349
|
+
colorNeutralBackground2Hover: colorNeutralBackground2Hover,
|
|
6350
|
+
colorNeutralBackground2Pressed: colorNeutralBackground2Pressed,
|
|
6351
|
+
colorNeutralBackground2Selected: colorNeutralBackground2Selected,
|
|
6352
|
+
colorNeutralBackground3: colorNeutralBackground3,
|
|
6353
|
+
colorNeutralBackground3Hover: colorNeutralBackground3Hover,
|
|
6354
|
+
colorNeutralBackground3Pressed: colorNeutralBackground3Pressed,
|
|
6355
|
+
colorNeutralBackground3Selected: colorNeutralBackground3Selected,
|
|
6356
|
+
colorNeutralBackground4: colorNeutralBackground4,
|
|
6357
|
+
colorNeutralBackground4Hover: colorNeutralBackground4Hover,
|
|
6358
|
+
colorNeutralBackground4Pressed: colorNeutralBackground4Pressed,
|
|
6359
|
+
colorNeutralBackground4Selected: colorNeutralBackground4Selected,
|
|
6360
|
+
colorNeutralBackground5: colorNeutralBackground5,
|
|
6361
|
+
colorNeutralBackground5Hover: colorNeutralBackground5Hover,
|
|
6362
|
+
colorNeutralBackground5Pressed: colorNeutralBackground5Pressed,
|
|
6363
|
+
colorNeutralBackground5Selected: colorNeutralBackground5Selected,
|
|
6364
|
+
colorNeutralBackground6: colorNeutralBackground6,
|
|
6365
|
+
colorNeutralBackgroundInverted: colorNeutralBackgroundInverted,
|
|
6366
|
+
colorNeutralBackgroundStatic: colorNeutralBackgroundStatic,
|
|
6367
|
+
colorSubtleBackground: colorSubtleBackground,
|
|
6368
|
+
colorSubtleBackgroundHover: colorSubtleBackgroundHover,
|
|
6369
|
+
colorSubtleBackgroundPressed: colorSubtleBackgroundPressed,
|
|
6370
|
+
colorSubtleBackgroundSelected: colorSubtleBackgroundSelected,
|
|
6371
|
+
colorSubtleBackgroundLightAlphaHover: colorSubtleBackgroundLightAlphaHover,
|
|
6372
|
+
colorSubtleBackgroundLightAlphaPressed: colorSubtleBackgroundLightAlphaPressed,
|
|
6373
|
+
colorSubtleBackgroundLightAlphaSelected: colorSubtleBackgroundLightAlphaSelected,
|
|
6374
|
+
colorSubtleBackgroundInverted: colorSubtleBackgroundInverted,
|
|
6375
|
+
colorSubtleBackgroundInvertedHover: colorSubtleBackgroundInvertedHover,
|
|
6376
|
+
colorSubtleBackgroundInvertedPressed: colorSubtleBackgroundInvertedPressed,
|
|
6377
|
+
colorSubtleBackgroundInvertedSelected: colorSubtleBackgroundInvertedSelected,
|
|
6378
|
+
colorTransparentBackground: colorTransparentBackground,
|
|
6379
|
+
colorTransparentBackgroundHover: colorTransparentBackgroundHover,
|
|
6380
|
+
colorTransparentBackgroundPressed: colorTransparentBackgroundPressed,
|
|
6381
|
+
colorTransparentBackgroundSelected: colorTransparentBackgroundSelected,
|
|
6382
|
+
colorNeutralBackgroundDisabled: colorNeutralBackgroundDisabled,
|
|
6383
|
+
colorNeutralBackgroundInvertedDisabled: colorNeutralBackgroundInvertedDisabled,
|
|
6384
|
+
colorNeutralStencil1: colorNeutralStencil1,
|
|
6385
|
+
colorNeutralStencil2: colorNeutralStencil2,
|
|
6386
|
+
colorNeutralStencil1Alpha: colorNeutralStencil1Alpha,
|
|
6387
|
+
colorNeutralStencil2Alpha: colorNeutralStencil2Alpha,
|
|
6388
|
+
colorBackgroundOverlay: colorBackgroundOverlay,
|
|
6389
|
+
colorScrollbarOverlay: colorScrollbarOverlay,
|
|
6390
|
+
colorBrandBackground: colorBrandBackground,
|
|
6391
|
+
colorBrandBackgroundHover: colorBrandBackgroundHover,
|
|
6392
|
+
colorBrandBackgroundPressed: colorBrandBackgroundPressed,
|
|
6393
|
+
colorBrandBackgroundSelected: colorBrandBackgroundSelected,
|
|
6394
|
+
colorCompoundBrandBackground: colorCompoundBrandBackground,
|
|
6395
|
+
colorCompoundBrandBackgroundHover: colorCompoundBrandBackgroundHover,
|
|
6396
|
+
colorCompoundBrandBackgroundPressed: colorCompoundBrandBackgroundPressed,
|
|
6397
|
+
colorBrandBackgroundStatic: colorBrandBackgroundStatic,
|
|
6398
|
+
colorBrandBackground2: colorBrandBackground2,
|
|
6399
|
+
colorBrandBackgroundInverted: colorBrandBackgroundInverted,
|
|
6400
|
+
colorBrandBackgroundInvertedHover: colorBrandBackgroundInvertedHover,
|
|
6401
|
+
colorBrandBackgroundInvertedPressed: colorBrandBackgroundInvertedPressed,
|
|
6402
|
+
colorBrandBackgroundInvertedSelected: colorBrandBackgroundInvertedSelected,
|
|
6403
|
+
colorNeutralStrokeAccessible: colorNeutralStrokeAccessible,
|
|
6404
|
+
colorNeutralStrokeAccessibleHover: colorNeutralStrokeAccessibleHover,
|
|
6405
|
+
colorNeutralStrokeAccessiblePressed: colorNeutralStrokeAccessiblePressed,
|
|
6406
|
+
colorNeutralStrokeAccessibleSelected: colorNeutralStrokeAccessibleSelected,
|
|
6407
|
+
colorNeutralStroke1: colorNeutralStroke1,
|
|
6408
|
+
colorNeutralStroke1Hover: colorNeutralStroke1Hover,
|
|
6409
|
+
colorNeutralStroke1Pressed: colorNeutralStroke1Pressed,
|
|
6410
|
+
colorNeutralStroke1Selected: colorNeutralStroke1Selected,
|
|
6411
|
+
colorNeutralStroke2: colorNeutralStroke2,
|
|
6412
|
+
colorNeutralStroke3: colorNeutralStroke3,
|
|
6413
|
+
colorNeutralStrokeOnBrand: colorNeutralStrokeOnBrand,
|
|
6414
|
+
colorNeutralStrokeOnBrand2: colorNeutralStrokeOnBrand2,
|
|
6415
|
+
colorNeutralStrokeOnBrand2Hover: colorNeutralStrokeOnBrand2Hover,
|
|
6416
|
+
colorNeutralStrokeOnBrand2Pressed: colorNeutralStrokeOnBrand2Pressed,
|
|
6417
|
+
colorNeutralStrokeOnBrand2Selected: colorNeutralStrokeOnBrand2Selected,
|
|
6418
|
+
colorBrandStroke1: colorBrandStroke1,
|
|
6419
|
+
colorBrandStroke2: colorBrandStroke2,
|
|
6420
|
+
colorCompoundBrandStroke: colorCompoundBrandStroke,
|
|
6421
|
+
colorCompoundBrandStrokeHover: colorCompoundBrandStrokeHover,
|
|
6422
|
+
colorCompoundBrandStrokePressed: colorCompoundBrandStrokePressed,
|
|
6423
|
+
colorNeutralStrokeDisabled: colorNeutralStrokeDisabled,
|
|
6424
|
+
colorNeutralStrokeInvertedDisabled: colorNeutralStrokeInvertedDisabled,
|
|
6425
|
+
colorTransparentStroke: colorTransparentStroke,
|
|
6426
|
+
colorTransparentStrokeInteractive: colorTransparentStrokeInteractive,
|
|
6427
|
+
colorTransparentStrokeDisabled: colorTransparentStrokeDisabled,
|
|
6428
|
+
colorStrokeFocus1: colorStrokeFocus1,
|
|
6429
|
+
colorStrokeFocus2: colorStrokeFocus2,
|
|
6430
|
+
colorNeutralShadowAmbient: colorNeutralShadowAmbient,
|
|
6431
|
+
colorNeutralShadowKey: colorNeutralShadowKey,
|
|
6432
|
+
colorNeutralShadowAmbientLighter: colorNeutralShadowAmbientLighter,
|
|
6433
|
+
colorNeutralShadowKeyLighter: colorNeutralShadowKeyLighter,
|
|
6434
|
+
colorNeutralShadowAmbientDarker: colorNeutralShadowAmbientDarker,
|
|
6435
|
+
colorNeutralShadowKeyDarker: colorNeutralShadowKeyDarker,
|
|
6436
|
+
colorBrandShadowAmbient: colorBrandShadowAmbient,
|
|
6437
|
+
colorBrandShadowKey: colorBrandShadowKey,
|
|
6438
|
+
colorPaletteRedBackground1: colorPaletteRedBackground1,
|
|
6439
|
+
colorPaletteRedBackground2: colorPaletteRedBackground2,
|
|
6440
|
+
colorPaletteRedBackground3: colorPaletteRedBackground3,
|
|
6441
|
+
colorPaletteRedForeground1: colorPaletteRedForeground1,
|
|
6442
|
+
colorPaletteRedForeground2: colorPaletteRedForeground2,
|
|
6443
|
+
colorPaletteRedForeground3: colorPaletteRedForeground3,
|
|
6444
|
+
colorPaletteRedBorderActive: colorPaletteRedBorderActive,
|
|
6445
|
+
colorPaletteRedBorder1: colorPaletteRedBorder1,
|
|
6446
|
+
colorPaletteRedBorder2: colorPaletteRedBorder2,
|
|
6447
|
+
colorPaletteGreenBackground1: colorPaletteGreenBackground1,
|
|
6448
|
+
colorPaletteGreenBackground2: colorPaletteGreenBackground2,
|
|
6449
|
+
colorPaletteGreenBackground3: colorPaletteGreenBackground3,
|
|
6450
|
+
colorPaletteGreenForeground1: colorPaletteGreenForeground1,
|
|
6451
|
+
colorPaletteGreenForeground2: colorPaletteGreenForeground2,
|
|
6452
|
+
colorPaletteGreenForeground3: colorPaletteGreenForeground3,
|
|
6453
|
+
colorPaletteGreenBorderActive: colorPaletteGreenBorderActive,
|
|
6454
|
+
colorPaletteGreenBorder1: colorPaletteGreenBorder1,
|
|
6455
|
+
colorPaletteGreenBorder2: colorPaletteGreenBorder2,
|
|
6456
|
+
colorPaletteDarkOrangeBackground1: colorPaletteDarkOrangeBackground1,
|
|
6457
|
+
colorPaletteDarkOrangeBackground2: colorPaletteDarkOrangeBackground2,
|
|
6458
|
+
colorPaletteDarkOrangeBackground3: colorPaletteDarkOrangeBackground3,
|
|
6459
|
+
colorPaletteDarkOrangeForeground1: colorPaletteDarkOrangeForeground1,
|
|
6460
|
+
colorPaletteDarkOrangeForeground2: colorPaletteDarkOrangeForeground2,
|
|
6461
|
+
colorPaletteDarkOrangeForeground3: colorPaletteDarkOrangeForeground3,
|
|
6462
|
+
colorPaletteDarkOrangeBorderActive: colorPaletteDarkOrangeBorderActive,
|
|
6463
|
+
colorPaletteDarkOrangeBorder1: colorPaletteDarkOrangeBorder1,
|
|
6464
|
+
colorPaletteDarkOrangeBorder2: colorPaletteDarkOrangeBorder2,
|
|
6465
|
+
colorPaletteYellowBackground1: colorPaletteYellowBackground1,
|
|
6466
|
+
colorPaletteYellowBackground2: colorPaletteYellowBackground2,
|
|
6467
|
+
colorPaletteYellowBackground3: colorPaletteYellowBackground3,
|
|
6468
|
+
colorPaletteYellowForeground1: colorPaletteYellowForeground1,
|
|
6469
|
+
colorPaletteYellowForeground2: colorPaletteYellowForeground2,
|
|
6470
|
+
colorPaletteYellowForeground3: colorPaletteYellowForeground3,
|
|
6471
|
+
colorPaletteYellowBorderActive: colorPaletteYellowBorderActive,
|
|
6472
|
+
colorPaletteYellowBorder1: colorPaletteYellowBorder1,
|
|
6473
|
+
colorPaletteYellowBorder2: colorPaletteYellowBorder2,
|
|
6474
|
+
colorPaletteBerryBackground1: colorPaletteBerryBackground1,
|
|
6475
|
+
colorPaletteBerryBackground2: colorPaletteBerryBackground2,
|
|
6476
|
+
colorPaletteBerryBackground3: colorPaletteBerryBackground3,
|
|
6477
|
+
colorPaletteBerryForeground1: colorPaletteBerryForeground1,
|
|
6478
|
+
colorPaletteBerryForeground2: colorPaletteBerryForeground2,
|
|
6479
|
+
colorPaletteBerryForeground3: colorPaletteBerryForeground3,
|
|
6480
|
+
colorPaletteBerryBorderActive: colorPaletteBerryBorderActive,
|
|
6481
|
+
colorPaletteBerryBorder1: colorPaletteBerryBorder1,
|
|
6482
|
+
colorPaletteBerryBorder2: colorPaletteBerryBorder2,
|
|
6483
|
+
colorPaletteLightGreenBackground1: colorPaletteLightGreenBackground1,
|
|
6484
|
+
colorPaletteLightGreenBackground2: colorPaletteLightGreenBackground2,
|
|
6485
|
+
colorPaletteLightGreenBackground3: colorPaletteLightGreenBackground3,
|
|
6486
|
+
colorPaletteLightGreenForeground1: colorPaletteLightGreenForeground1,
|
|
6487
|
+
colorPaletteLightGreenForeground2: colorPaletteLightGreenForeground2,
|
|
6488
|
+
colorPaletteLightGreenForeground3: colorPaletteLightGreenForeground3,
|
|
6489
|
+
colorPaletteLightGreenBorderActive: colorPaletteLightGreenBorderActive,
|
|
6490
|
+
colorPaletteLightGreenBorder1: colorPaletteLightGreenBorder1,
|
|
6491
|
+
colorPaletteLightGreenBorder2: colorPaletteLightGreenBorder2,
|
|
6492
|
+
colorPaletteMarigoldBackground1: colorPaletteMarigoldBackground1,
|
|
6493
|
+
colorPaletteMarigoldBackground2: colorPaletteMarigoldBackground2,
|
|
6494
|
+
colorPaletteMarigoldBackground3: colorPaletteMarigoldBackground3,
|
|
6495
|
+
colorPaletteMarigoldForeground1: colorPaletteMarigoldForeground1,
|
|
6496
|
+
colorPaletteMarigoldForeground2: colorPaletteMarigoldForeground2,
|
|
6497
|
+
colorPaletteMarigoldForeground3: colorPaletteMarigoldForeground3,
|
|
6498
|
+
colorPaletteMarigoldBorderActive: colorPaletteMarigoldBorderActive,
|
|
6499
|
+
colorPaletteMarigoldBorder1: colorPaletteMarigoldBorder1,
|
|
6500
|
+
colorPaletteMarigoldBorder2: colorPaletteMarigoldBorder2,
|
|
6501
|
+
colorPaletteDarkRedBackground2: colorPaletteDarkRedBackground2,
|
|
6502
|
+
colorPaletteDarkRedForeground2: colorPaletteDarkRedForeground2,
|
|
6503
|
+
colorPaletteDarkRedBorderActive: colorPaletteDarkRedBorderActive,
|
|
6504
|
+
colorPaletteCranberryBackground2: colorPaletteCranberryBackground2,
|
|
6505
|
+
colorPaletteCranberryForeground2: colorPaletteCranberryForeground2,
|
|
6506
|
+
colorPaletteCranberryBorderActive: colorPaletteCranberryBorderActive,
|
|
6507
|
+
colorPalettePumpkinBackground2: colorPalettePumpkinBackground2,
|
|
6508
|
+
colorPalettePumpkinForeground2: colorPalettePumpkinForeground2,
|
|
6509
|
+
colorPalettePumpkinBorderActive: colorPalettePumpkinBorderActive,
|
|
6510
|
+
colorPalettePeachBackground2: colorPalettePeachBackground2,
|
|
6511
|
+
colorPalettePeachForeground2: colorPalettePeachForeground2,
|
|
6512
|
+
colorPalettePeachBorderActive: colorPalettePeachBorderActive,
|
|
6513
|
+
colorPaletteGoldBackground2: colorPaletteGoldBackground2,
|
|
6514
|
+
colorPaletteGoldForeground2: colorPaletteGoldForeground2,
|
|
6515
|
+
colorPaletteGoldBorderActive: colorPaletteGoldBorderActive,
|
|
6516
|
+
colorPaletteBrassBackground2: colorPaletteBrassBackground2,
|
|
6517
|
+
colorPaletteBrassForeground2: colorPaletteBrassForeground2,
|
|
6518
|
+
colorPaletteBrassBorderActive: colorPaletteBrassBorderActive,
|
|
6519
|
+
colorPaletteBrownBackground2: colorPaletteBrownBackground2,
|
|
6520
|
+
colorPaletteBrownForeground2: colorPaletteBrownForeground2,
|
|
6521
|
+
colorPaletteBrownBorderActive: colorPaletteBrownBorderActive,
|
|
6522
|
+
colorPaletteForestBackground2: colorPaletteForestBackground2,
|
|
6523
|
+
colorPaletteForestForeground2: colorPaletteForestForeground2,
|
|
6524
|
+
colorPaletteForestBorderActive: colorPaletteForestBorderActive,
|
|
6525
|
+
colorPaletteSeafoamBackground2: colorPaletteSeafoamBackground2,
|
|
6526
|
+
colorPaletteSeafoamForeground2: colorPaletteSeafoamForeground2,
|
|
6527
|
+
colorPaletteSeafoamBorderActive: colorPaletteSeafoamBorderActive,
|
|
6528
|
+
colorPaletteDarkGreenBackground2: colorPaletteDarkGreenBackground2,
|
|
6529
|
+
colorPaletteDarkGreenForeground2: colorPaletteDarkGreenForeground2,
|
|
6530
|
+
colorPaletteDarkGreenBorderActive: colorPaletteDarkGreenBorderActive,
|
|
6531
|
+
colorPaletteLightTealBackground2: colorPaletteLightTealBackground2,
|
|
6532
|
+
colorPaletteLightTealForeground2: colorPaletteLightTealForeground2,
|
|
6533
|
+
colorPaletteLightTealBorderActive: colorPaletteLightTealBorderActive,
|
|
6534
|
+
colorPaletteTealBackground2: colorPaletteTealBackground2,
|
|
6535
|
+
colorPaletteTealForeground2: colorPaletteTealForeground2,
|
|
6536
|
+
colorPaletteTealBorderActive: colorPaletteTealBorderActive,
|
|
6537
|
+
colorPaletteSteelBackground2: colorPaletteSteelBackground2,
|
|
6538
|
+
colorPaletteSteelForeground2: colorPaletteSteelForeground2,
|
|
6539
|
+
colorPaletteSteelBorderActive: colorPaletteSteelBorderActive,
|
|
6540
|
+
colorPaletteBlueBackground2: colorPaletteBlueBackground2,
|
|
6541
|
+
colorPaletteBlueForeground2: colorPaletteBlueForeground2,
|
|
6542
|
+
colorPaletteBlueBorderActive: colorPaletteBlueBorderActive,
|
|
6543
|
+
colorPaletteRoyalBlueBackground2: colorPaletteRoyalBlueBackground2,
|
|
6544
|
+
colorPaletteRoyalBlueForeground2: colorPaletteRoyalBlueForeground2,
|
|
6545
|
+
colorPaletteRoyalBlueBorderActive: colorPaletteRoyalBlueBorderActive,
|
|
6546
|
+
colorPaletteCornflowerBackground2: colorPaletteCornflowerBackground2,
|
|
6547
|
+
colorPaletteCornflowerForeground2: colorPaletteCornflowerForeground2,
|
|
6548
|
+
colorPaletteCornflowerBorderActive: colorPaletteCornflowerBorderActive,
|
|
6549
|
+
colorPaletteNavyBackground2: colorPaletteNavyBackground2,
|
|
6550
|
+
colorPaletteNavyForeground2: colorPaletteNavyForeground2,
|
|
6551
|
+
colorPaletteNavyBorderActive: colorPaletteNavyBorderActive,
|
|
6552
|
+
colorPaletteLavenderBackground2: colorPaletteLavenderBackground2,
|
|
6553
|
+
colorPaletteLavenderForeground2: colorPaletteLavenderForeground2,
|
|
6554
|
+
colorPaletteLavenderBorderActive: colorPaletteLavenderBorderActive,
|
|
6555
|
+
colorPalettePurpleBackground2: colorPalettePurpleBackground2,
|
|
6556
|
+
colorPalettePurpleForeground2: colorPalettePurpleForeground2,
|
|
6557
|
+
colorPalettePurpleBorderActive: colorPalettePurpleBorderActive,
|
|
6558
|
+
colorPaletteGrapeBackground2: colorPaletteGrapeBackground2,
|
|
6559
|
+
colorPaletteGrapeForeground2: colorPaletteGrapeForeground2,
|
|
6560
|
+
colorPaletteGrapeBorderActive: colorPaletteGrapeBorderActive,
|
|
6561
|
+
colorPaletteLilacBackground2: colorPaletteLilacBackground2,
|
|
6562
|
+
colorPaletteLilacForeground2: colorPaletteLilacForeground2,
|
|
6563
|
+
colorPaletteLilacBorderActive: colorPaletteLilacBorderActive,
|
|
6564
|
+
colorPalettePinkBackground2: colorPalettePinkBackground2,
|
|
6565
|
+
colorPalettePinkForeground2: colorPalettePinkForeground2,
|
|
6566
|
+
colorPalettePinkBorderActive: colorPalettePinkBorderActive,
|
|
6567
|
+
colorPaletteMagentaBackground2: colorPaletteMagentaBackground2,
|
|
6568
|
+
colorPaletteMagentaForeground2: colorPaletteMagentaForeground2,
|
|
6569
|
+
colorPaletteMagentaBorderActive: colorPaletteMagentaBorderActive,
|
|
6570
|
+
colorPalettePlumBackground2: colorPalettePlumBackground2,
|
|
6571
|
+
colorPalettePlumForeground2: colorPalettePlumForeground2,
|
|
6572
|
+
colorPalettePlumBorderActive: colorPalettePlumBorderActive,
|
|
6573
|
+
colorPaletteBeigeBackground2: colorPaletteBeigeBackground2,
|
|
6574
|
+
colorPaletteBeigeForeground2: colorPaletteBeigeForeground2,
|
|
6575
|
+
colorPaletteBeigeBorderActive: colorPaletteBeigeBorderActive,
|
|
6576
|
+
colorPaletteMinkBackground2: colorPaletteMinkBackground2,
|
|
6577
|
+
colorPaletteMinkForeground2: colorPaletteMinkForeground2,
|
|
6578
|
+
colorPaletteMinkBorderActive: colorPaletteMinkBorderActive,
|
|
6579
|
+
colorPalettePlatinumBackground2: colorPalettePlatinumBackground2,
|
|
6580
|
+
colorPalettePlatinumForeground2: colorPalettePlatinumForeground2,
|
|
6581
|
+
colorPalettePlatinumBorderActive: colorPalettePlatinumBorderActive,
|
|
6582
|
+
colorPaletteAnchorBackground2: colorPaletteAnchorBackground2,
|
|
6583
|
+
colorPaletteAnchorForeground2: colorPaletteAnchorForeground2,
|
|
6584
|
+
colorPaletteAnchorBorderActive: colorPaletteAnchorBorderActive,
|
|
6585
|
+
colorPaletteRedForegroundInverted: colorPaletteRedForegroundInverted,
|
|
6586
|
+
colorPaletteGreenForegroundInverted: colorPaletteGreenForegroundInverted,
|
|
6587
|
+
colorPaletteYellowForegroundInverted: colorPaletteYellowForegroundInverted,
|
|
6588
|
+
shadow2: shadow2,
|
|
6589
|
+
shadow4: shadow4,
|
|
6590
|
+
shadow8: shadow8,
|
|
6591
|
+
shadow16: shadow16,
|
|
6592
|
+
shadow28: shadow28,
|
|
6593
|
+
shadow64: shadow64,
|
|
6594
|
+
shadow2Brand: shadow2Brand,
|
|
6595
|
+
shadow4Brand: shadow4Brand,
|
|
6596
|
+
shadow8Brand: shadow8Brand,
|
|
6597
|
+
shadow16Brand: shadow16Brand,
|
|
6598
|
+
shadow28Brand: shadow28Brand,
|
|
6599
|
+
shadow64Brand: shadow64Brand
|
|
6034
6600
|
});
|
|
6035
6601
|
|
|
6036
|
-
const styles$
|
|
6602
|
+
const styles$a = css`
|
|
6037
6603
|
${display('block')}
|
|
6038
6604
|
|
|
6039
|
-
:host{max-width:fit-content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${colorNeutralForeground1};background:${colorTransparentBackground};line-height:${lineHeightBase300};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${spacingHorizontalM}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`;
|
|
6605
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${colorNeutralForeground1};background:${colorTransparentBackground};line-height:${lineHeightBase300};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${spacingHorizontalM}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`;
|
|
6040
6606
|
|
|
6041
6607
|
const chevronRight20Filled = html.partial(`<svg
|
|
6042
6608
|
width="20"
|
|
@@ -6068,7 +6634,7 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
6068
6634
|
* The template for the fluent-accordion component.
|
|
6069
6635
|
* @public
|
|
6070
6636
|
*/
|
|
6071
|
-
const template$
|
|
6637
|
+
const template$a = accordionItemTemplate({
|
|
6072
6638
|
collapsedIcon: chevronRight20Filled,
|
|
6073
6639
|
expandedIcon: chevronDown20Filled
|
|
6074
6640
|
});
|
|
@@ -6082,10 +6648,10 @@ const template$9 = accordionItemTemplate({
|
|
|
6082
6648
|
* @remarks
|
|
6083
6649
|
* HTML Element: \<fluent-accordion-item\>
|
|
6084
6650
|
*/
|
|
6085
|
-
const definition$
|
|
6651
|
+
const definition$a = AccordionItem.compose({
|
|
6086
6652
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
6087
|
-
template: template$
|
|
6088
|
-
styles: styles$
|
|
6653
|
+
template: template$a,
|
|
6654
|
+
styles: styles$a
|
|
6089
6655
|
});
|
|
6090
6656
|
|
|
6091
6657
|
/* TODO: This file is a direct copy of the React Avatar utils */
|
|
@@ -6339,7 +6905,7 @@ const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 2
|
|
|
6339
6905
|
function avatarTemplate() {
|
|
6340
6906
|
return html`<template role="img" data-color=${x => x.generateColor()}><slot>${x => x.name || x.initials ? x.generateInitials() : defaultIconTemplate}</slot><slot name="badge"></slot></template>`;
|
|
6341
6907
|
}
|
|
6342
|
-
const template$
|
|
6908
|
+
const template$9 = avatarTemplate();
|
|
6343
6909
|
|
|
6344
6910
|
const animations = {
|
|
6345
6911
|
fastOutSlowInMax: curveDecelerateMax,
|
|
@@ -6355,8 +6921,8 @@ const animations = {
|
|
|
6355
6921
|
/** Avatar styles
|
|
6356
6922
|
* @public
|
|
6357
6923
|
*/
|
|
6358
|
-
const styles$
|
|
6359
|
-
${display('inline-flex')} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6}}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
6924
|
+
const styles$9 = css`
|
|
6925
|
+
${display('inline-flex')} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
6360
6926
|
|
|
6361
6927
|
/**
|
|
6362
6928
|
* The Fluent Avatar Element.
|
|
@@ -6365,10 +6931,10 @@ const styles$8 = css`
|
|
|
6365
6931
|
* @remarks
|
|
6366
6932
|
* HTML Element: \<fluent-badge\>
|
|
6367
6933
|
*/
|
|
6368
|
-
const definition$
|
|
6934
|
+
const definition$9 = Avatar.compose({
|
|
6369
6935
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
6370
|
-
template: template$
|
|
6371
|
-
styles: styles$
|
|
6936
|
+
template: template$9,
|
|
6937
|
+
styles: styles$9
|
|
6372
6938
|
});
|
|
6373
6939
|
|
|
6374
6940
|
/**
|
|
@@ -6455,7 +7021,7 @@ applyMixins(Badge, StartEnd);
|
|
|
6455
7021
|
function badgeTemplate(options = {}) {
|
|
6456
7022
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
6457
7023
|
}
|
|
6458
|
-
const template$
|
|
7024
|
+
const template$8 = badgeTemplate();
|
|
6459
7025
|
|
|
6460
7026
|
const textPadding = spacingHorizontalXXS;
|
|
6461
7027
|
const badgeBaseStyles = css.partial`
|
|
@@ -6475,6 +7041,7 @@ const badgeBaseStyles = css.partial`
|
|
|
6475
7041
|
border-color: ${colorTransparentStroke};
|
|
6476
7042
|
background-color: ${colorBrandBackground};
|
|
6477
7043
|
color: ${colorNeutralForegroundOnBrand};
|
|
7044
|
+
contain: content;
|
|
6478
7045
|
}
|
|
6479
7046
|
|
|
6480
7047
|
::slotted(svg) {
|
|
@@ -6731,7 +7298,7 @@ const badgeTintStyles = css.partial`
|
|
|
6731
7298
|
/** Badge styles
|
|
6732
7299
|
* @public
|
|
6733
7300
|
*/
|
|
6734
|
-
const styles$
|
|
7301
|
+
const styles$8 = css`
|
|
6735
7302
|
:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6736
7303
|
${badgeFilledStyles}
|
|
6737
7304
|
${badgeGhostStyles}
|
|
@@ -6749,10 +7316,10 @@ const styles$7 = css`
|
|
|
6749
7316
|
* @remarks
|
|
6750
7317
|
* HTML Element: \<fluent-badge\>
|
|
6751
7318
|
*/
|
|
6752
|
-
const definition$
|
|
7319
|
+
const definition$8 = Badge.compose({
|
|
6753
7320
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
6754
|
-
template: template$
|
|
6755
|
-
styles: styles$
|
|
7321
|
+
template: template$8,
|
|
7322
|
+
styles: styles$8
|
|
6756
7323
|
});
|
|
6757
7324
|
|
|
6758
7325
|
/**
|
|
@@ -6888,12 +7455,12 @@ function composeTemplate(options = {}) {
|
|
|
6888
7455
|
* The template for the Counter Badge component.
|
|
6889
7456
|
* @public
|
|
6890
7457
|
*/
|
|
6891
|
-
const template$
|
|
7458
|
+
const template$7 = composeTemplate();
|
|
6892
7459
|
|
|
6893
7460
|
/** Badge styles
|
|
6894
7461
|
* @public
|
|
6895
7462
|
*/
|
|
6896
|
-
const styles$
|
|
7463
|
+
const styles$7 = css`
|
|
6897
7464
|
:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6898
7465
|
${badgeFilledStyles}
|
|
6899
7466
|
${badgeGhostStyles}
|
|
@@ -6910,10 +7477,10 @@ const styles$6 = css`
|
|
|
6910
7477
|
* @remarks
|
|
6911
7478
|
* HTML Element: \<fluent-counter-badge\>
|
|
6912
7479
|
*/
|
|
6913
|
-
const definition$
|
|
7480
|
+
const definition$7 = CounterBadge.compose({
|
|
6914
7481
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
6915
|
-
template: template$
|
|
6916
|
-
styles: styles$
|
|
7482
|
+
template: template$7,
|
|
7483
|
+
styles: styles$7
|
|
6917
7484
|
});
|
|
6918
7485
|
|
|
6919
7486
|
/**
|
|
@@ -6955,15 +7522,15 @@ const DividerAppearance = {
|
|
|
6955
7522
|
* Template for the Divider component
|
|
6956
7523
|
* @public
|
|
6957
7524
|
*/
|
|
6958
|
-
const template$
|
|
7525
|
+
const template$6 = dividerTemplate();
|
|
6959
7526
|
|
|
6960
7527
|
/** Divider styles
|
|
6961
7528
|
* @public
|
|
6962
7529
|
*/
|
|
6963
|
-
const styles$
|
|
7530
|
+
const styles$6 = css`
|
|
6964
7531
|
${display('flex')}
|
|
6965
7532
|
|
|
6966
|
-
:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}`;
|
|
7533
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}`;
|
|
6967
7534
|
|
|
6968
7535
|
/**
|
|
6969
7536
|
* The Fluent Divider Element
|
|
@@ -6972,10 +7539,10 @@ const styles$5 = css`
|
|
|
6972
7539
|
* @remarks
|
|
6973
7540
|
* HTML Element: \<fluent-divider\>
|
|
6974
7541
|
*/
|
|
6975
|
-
const definition$
|
|
7542
|
+
const definition$6 = Divider.compose({
|
|
6976
7543
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
6977
|
-
template: template$
|
|
6978
|
-
styles: styles$
|
|
7544
|
+
template: template$6,
|
|
7545
|
+
styles: styles$6
|
|
6979
7546
|
});
|
|
6980
7547
|
|
|
6981
7548
|
/**
|
|
@@ -7020,14 +7587,14 @@ const ImageShape = {
|
|
|
7020
7587
|
* Template for the Image component
|
|
7021
7588
|
* @public
|
|
7022
7589
|
*/
|
|
7023
|
-
const template$
|
|
7590
|
+
const template$5 = html`<slot></slot>`;
|
|
7024
7591
|
|
|
7025
7592
|
/** Image styles
|
|
7026
7593
|
*
|
|
7027
7594
|
* @public
|
|
7028
7595
|
*/
|
|
7029
|
-
const styles$
|
|
7030
|
-
:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}`;
|
|
7596
|
+
const styles$5 = css`
|
|
7597
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}`;
|
|
7031
7598
|
|
|
7032
7599
|
/**
|
|
7033
7600
|
* The Fluent Image Element
|
|
@@ -7036,10 +7603,10 @@ const styles$4 = css`
|
|
|
7036
7603
|
* @remarks
|
|
7037
7604
|
* HTML Element: \<fluent-image\>
|
|
7038
7605
|
*/
|
|
7039
|
-
const definition$
|
|
7606
|
+
const definition$5 = Image.compose({
|
|
7040
7607
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
7041
|
-
template: template$
|
|
7042
|
-
styles: styles$
|
|
7608
|
+
template: template$5,
|
|
7609
|
+
styles: styles$5
|
|
7043
7610
|
});
|
|
7044
7611
|
|
|
7045
7612
|
/**
|
|
@@ -7090,13 +7657,13 @@ const ProgressBarValidationState = {
|
|
|
7090
7657
|
error: 'error'
|
|
7091
7658
|
};
|
|
7092
7659
|
|
|
7093
|
-
/**
|
|
7660
|
+
/** ProgressBar styles
|
|
7094
7661
|
* @public
|
|
7095
7662
|
*/
|
|
7096
|
-
const styles$
|
|
7663
|
+
const styles$4 = css`
|
|
7097
7664
|
${display('flex')}
|
|
7098
7665
|
|
|
7099
|
-
:host{align-items:center;height:2px;overflow-x:hidden;border-radius:${borderRadiusMedium}}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${colorPaletteRedBackground3}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
|
|
7666
|
+
:host{align-items:center;height:2px;overflow-x:hidden;border-radius:${borderRadiusMedium};contain:content}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${colorPaletteRedBackground3}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
|
|
7100
7667
|
to right,${colorPaletteRedBackground2} 0%,${colorPaletteRedBackground3} 50%,${colorPaletteRedBackground2}
|
|
7101
7668
|
)}:host([validation-state='warning']) .determinate{background-color:${colorPaletteDarkOrangeBackground3}}:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2{background:linear-gradient(
|
|
7102
7669
|
to right,${colorPaletteDarkOrangeBackground2} 0%,${colorPaletteDarkOrangeBackground3} 50%,${colorPaletteDarkOrangeBackground2}
|
|
@@ -7108,7 +7675,7 @@ const styles$3 = css`
|
|
|
7108
7675
|
to right,${colorBrandBackground2} 0%,${colorCompoundBrandBackground} 50%,${colorBrandBackground2}
|
|
7109
7676
|
);border-radius:${borderRadiusMedium};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`;
|
|
7110
7677
|
|
|
7111
|
-
const template$
|
|
7678
|
+
const template$4 = progressTemplate({
|
|
7112
7679
|
indeterminateIndicator1: `<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>`,
|
|
7113
7680
|
indeterminateIndicator2: `<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>`
|
|
7114
7681
|
});
|
|
@@ -7121,8 +7688,90 @@ const template$3 = progressTemplate({
|
|
|
7121
7688
|
* @remarks
|
|
7122
7689
|
* HTML Element: \<fluent-progress-bar\>
|
|
7123
7690
|
*/
|
|
7124
|
-
const definition$
|
|
7691
|
+
const definition$4 = ProgressBar.compose({
|
|
7125
7692
|
name: `${FluentDesignSystem.prefix}-progress-bar`,
|
|
7693
|
+
template: template$4,
|
|
7694
|
+
styles: styles$4
|
|
7695
|
+
});
|
|
7696
|
+
|
|
7697
|
+
/**
|
|
7698
|
+
* The base class used for constructing a fluent-slider custom element
|
|
7699
|
+
* @public
|
|
7700
|
+
*/
|
|
7701
|
+
class Slider extends FASTSlider {
|
|
7702
|
+
handleChange(source, propertyName) {
|
|
7703
|
+
switch (propertyName) {
|
|
7704
|
+
case 'min':
|
|
7705
|
+
case 'max':
|
|
7706
|
+
case 'step':
|
|
7707
|
+
this.handleStepStyles();
|
|
7708
|
+
break;
|
|
7709
|
+
}
|
|
7710
|
+
}
|
|
7711
|
+
connectedCallback() {
|
|
7712
|
+
super.connectedCallback();
|
|
7713
|
+
Observable.getNotifier(this).subscribe(this, 'max');
|
|
7714
|
+
Observable.getNotifier(this).subscribe(this, 'min');
|
|
7715
|
+
Observable.getNotifier(this).subscribe(this, 'step');
|
|
7716
|
+
this.handleStepStyles();
|
|
7717
|
+
}
|
|
7718
|
+
disconnectedCallback() {
|
|
7719
|
+
super.disconnectedCallback();
|
|
7720
|
+
Observable.getNotifier(this).unsubscribe(this, 'max');
|
|
7721
|
+
Observable.getNotifier(this).unsubscribe(this, 'min');
|
|
7722
|
+
Observable.getNotifier(this).unsubscribe(this, 'step');
|
|
7723
|
+
}
|
|
7724
|
+
/**
|
|
7725
|
+
* Handles changes to step styling based on the step value
|
|
7726
|
+
* NOTE: This function is not a changed callback, stepStyles is not observable
|
|
7727
|
+
*/
|
|
7728
|
+
handleStepStyles() {
|
|
7729
|
+
if (this.step) {
|
|
7730
|
+
const totalSteps = 100 / Math.floor((this.max - this.min) / this.step);
|
|
7731
|
+
if (this.stepStyles !== undefined) {
|
|
7732
|
+
this.$fastController.removeStyles(this.stepStyles);
|
|
7733
|
+
}
|
|
7734
|
+
this.stepStyles = css /**css*/`
|
|
7735
|
+
:host{--step-rate:${totalSteps}%;color:blue}`;
|
|
7736
|
+
this.$fastController.addStyles(this.stepStyles);
|
|
7737
|
+
} else if (this.stepStyles !== undefined) {
|
|
7738
|
+
this.$fastController.removeStyles(this.stepStyles);
|
|
7739
|
+
}
|
|
7740
|
+
}
|
|
7741
|
+
}
|
|
7742
|
+
__decorate([attr], Slider.prototype, "size", void 0);
|
|
7743
|
+
|
|
7744
|
+
/**
|
|
7745
|
+
* SliderSize Constants
|
|
7746
|
+
* @public
|
|
7747
|
+
*/
|
|
7748
|
+
const SliderSize = {
|
|
7749
|
+
small: 'small',
|
|
7750
|
+
medium: 'medium'
|
|
7751
|
+
};
|
|
7752
|
+
|
|
7753
|
+
/** Text styles
|
|
7754
|
+
* @public
|
|
7755
|
+
*/
|
|
7756
|
+
const styles$3 = css`
|
|
7757
|
+
${display('inline-grid')} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${borderRadiusSmall};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${colorBrandBackground};border-radius:${borderRadiusCircular};box-shadow:inset 0 0 0 var(--thumb-padding) ${colorNeutralBackground1},0 0 0 1px ${colorNeutralStroke1}}.thumb-cursor:hover{background-color:${colorCompoundBrandBackgroundHover}}.thumb-cursor:active{background-color:${colorCompoundBrandBackgroundPressed}}:host([disabled]) .thumb-cursor{background-color:${colorNeutralForegroundDisabled};box-shadow:inset 0 0 0 var(--thumb-padding) ${colorNeutralBackground1},0 0 0 1px ${colorNeutralStrokeDisabled}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${borderRadiusMedium};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
|
|
7758
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate)
|
|
7759
|
+
)}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${colorNeutralBackgroundDisabled}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${colorCompoundBrandBackground};position:absolute;height:100%;left:0;border-radius:${borderRadiusMedium}}:host([disabled]) .track-start{background-color:${colorNeutralForegroundDisabled}}:host(:hover) .track-start{background-color:${colorCompoundBrandBackgroundHover}}:host([disabled]:hover) .track-start{background-color:${colorNeutralForegroundDisabled}}.track-start:active{background-color:${colorCompoundBrandBackgroundPressed}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`;
|
|
7760
|
+
|
|
7761
|
+
const template$3 = sliderTemplate({
|
|
7762
|
+
thumb: `<div class="thumb-cursor" tabindex="0"></div>`
|
|
7763
|
+
});
|
|
7764
|
+
|
|
7765
|
+
/**
|
|
7766
|
+
* The Fluent Slider Element.
|
|
7767
|
+
*
|
|
7768
|
+
*
|
|
7769
|
+
* @public
|
|
7770
|
+
* @remarks
|
|
7771
|
+
* HTML Element: \<fluent-slider\>
|
|
7772
|
+
*/
|
|
7773
|
+
const definition$3 = Slider.compose({
|
|
7774
|
+
name: `${FluentDesignSystem.prefix}-slider`,
|
|
7126
7775
|
template: template$3,
|
|
7127
7776
|
styles: styles$3
|
|
7128
7777
|
});
|
|
@@ -7181,7 +7830,7 @@ const template$2 = progressRingTemplate({
|
|
|
7181
7830
|
const styles$2 = css`
|
|
7182
7831
|
${display('flex')}
|
|
7183
7832
|
|
|
7184
|
-
:host{display:flex;align-items:center;height:32px;width:32px}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${colorBrandStroke2};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.determinate{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}:host([appearance='inverted']) .determinite{stroke:${colorNeutralStrokeOnBrand2}}.indeterminate-indicator-1{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indeterminate-indicator-1{stroke:${colorNeutralStrokeOnBrand2}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`;
|
|
7833
|
+
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${colorBrandStroke2};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.determinate{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}:host([appearance='inverted']) .determinite{stroke:${colorNeutralStrokeOnBrand2}}.indeterminate-indicator-1{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indeterminate-indicator-1{stroke:${colorNeutralStrokeOnBrand2}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`;
|
|
7185
7834
|
|
|
7186
7835
|
/**
|
|
7187
7836
|
* The Fluent Spinner Element. Implements {@link @microsoft/fast-foundation#ProgressRing },
|
|
@@ -7220,7 +7869,7 @@ const template$1 = switchTemplate({
|
|
|
7220
7869
|
const styles$1 = css`
|
|
7221
7870
|
${display('inline-flex')}
|
|
7222
7871
|
|
|
7223
|
-
:host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${colorNeutralForeground1};line-height:${lineHeightBase300};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};font-family:${fontFamilyBase};padding:${spacingVerticalXS} ${spacingHorizontalXS};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${spacingHorizontalXXS};box-sizing:border-box;width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};outline:none;cursor:pointer;margin:${spacingVerticalS} ${spacingHorizontalS}}:host(:hover) .switch{background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .switch{border-color:${colorNeutralStrokeAccessiblePressed}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${colorCompoundBrandBackground}}:host([aria-checked='true']:hover) .switch{background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host([aria-checked='true']:active) .switch{background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host([aria-checked='true'][disabled]) .switch{background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:transform}:host([aria-checked='true']) .checked-indicator{background-color:${colorNeutralForegroundInverted};transform:translateX(20px)}:host([aria-checked='true']:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host([aria-checked='true']:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${colorNeutralForegroundDisabled}}`;
|
|
7872
|
+
:host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none;contain:content}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${colorNeutralForeground1};line-height:${lineHeightBase300};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};font-family:${fontFamilyBase};padding:${spacingVerticalXS} ${spacingHorizontalXS};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${spacingHorizontalXXS};box-sizing:border-box;width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};outline:none;cursor:pointer;margin:${spacingVerticalS} ${spacingHorizontalS}}:host(:hover) .switch{background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .switch{border-color:${colorNeutralStrokeAccessiblePressed}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${colorCompoundBrandBackground}}:host([aria-checked='true']:hover) .switch{background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host([aria-checked='true']:active) .switch{background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host([aria-checked='true'][disabled]) .switch{background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:transform}:host([aria-checked='true']) .checked-indicator{background-color:${colorNeutralForegroundInverted};transform:translateX(20px)}:host([aria-checked='true']:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host([aria-checked='true']:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${colorNeutralForegroundDisabled}}`;
|
|
7224
7873
|
|
|
7225
7874
|
/**
|
|
7226
7875
|
* The Fluent Switch Element.
|
|
@@ -7374,7 +8023,7 @@ const template = html`<slot></slot>`;
|
|
|
7374
8023
|
const styles = css`
|
|
7375
8024
|
${display('inline')}
|
|
7376
8025
|
|
|
7377
|
-
::slotted(*){font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*){display:block}:host([italic]) ::slotted(*){font-style:italic}:host([underline]) ::slotted(*){text-decoration-line:underline}:host([strikethrough]) ::slotted(*){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host([size='200']) ::slotted(*){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='400']) ::slotted(*){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='500']) ::slotted(*){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([size='600']) ::slotted(*){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host([size='700']) ::slotted(*){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host([size='800']) ::slotted(*){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host([size='900']) ::slotted(*){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host([size='1000']) ::slotted(*){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host([font='monospace']) ::slotted(*){font-family:${fontFamilyMonospace}}:host([font='numeric']) ::slotted(*){font-family:${fontFamilyNumeric}}:host([weight='medium']) ::slotted(*){font-weight:${fontWeightMedium}}:host([weight='semibold']) ::slotted(*){font-weight:${fontWeightSemibold}}:host([weight='bold']) ::slotted(*){font-weight:${fontWeightBold}}:host([align='center']) ::slotted(*){text-align:center}:host([align='end']) ::slotted(*){text-align:end}:host([align='justify']) ::slotted(*){text-align:justify}`;
|
|
8026
|
+
:host{contain:content}::slotted(*){font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*){display:block}:host([italic]) ::slotted(*){font-style:italic}:host([underline]) ::slotted(*){text-decoration-line:underline}:host([strikethrough]) ::slotted(*){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host([size='200']) ::slotted(*){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='400']) ::slotted(*){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='500']) ::slotted(*){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([size='600']) ::slotted(*){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host([size='700']) ::slotted(*){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host([size='800']) ::slotted(*){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host([size='900']) ::slotted(*){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host([size='1000']) ::slotted(*){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host([font='monospace']) ::slotted(*){font-family:${fontFamilyMonospace}}:host([font='numeric']) ::slotted(*){font-family:${fontFamilyNumeric}}:host([weight='medium']) ::slotted(*){font-weight:${fontWeightMedium}}:host([weight='semibold']) ::slotted(*){font-weight:${fontWeightSemibold}}:host([weight='bold']) ::slotted(*){font-weight:${fontWeightBold}}:host([align='center']) ::slotted(*){text-align:center}:host([align='end']) ::slotted(*){text-align:end}:host([align='justify']) ::slotted(*){text-align:justify}`;
|
|
7378
8027
|
|
|
7379
8028
|
/**
|
|
7380
8029
|
* The Fluent Text Element.
|
|
@@ -7401,4 +8050,4 @@ const setTheme = theme => {
|
|
|
7401
8050
|
}
|
|
7402
8051
|
};
|
|
7403
8052
|
|
|
7404
|
-
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$8 as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$8 as AvatarStyles, template$8 as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$7 as BadgeDefinition, BadgeShape, BadgeSize, styles$7 as BadgeStyles, template$7 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$6 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$6 as CounterBadgeStyles, template$6 as CounterBadgeTemplate, Divider, DividerAlignContent, DividerAppearance, definition$5 as DividerDefinition, DividerOrientation, DividerRole, styles$5 as DividerStyles, template$5 as DividerTemplate, Image, definition$4 as ImageDefinition, ImageFit, ImageShape, styles$4 as ImageStyles, template$4 as ImageTemplate, ProgressBar, definition$3 as ProgressBarDefinition, ProgressBarShape, styles$3 as ProgressBarStyles, template$3 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$2 as SpinnerDefinition, SpinnerSize, styles$2 as SpinnerStyles, template$2 as SpinnerTemplate, Switch, SwitchLabelPosition, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$a as accordionDefinition, definition$9 as accordionItemDefinition, styles$9 as accordionItemStyles, template$9 as accordionItemTemplate, styles$a as accordionStyles, template$a as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil1Alpha, colorNeutralStencil2, colorNeutralStencil2Alpha, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteGreenForegroundInverted, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRedForegroundInverted, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorPaletteYellowForegroundInverted, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, definition$1 as definition, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, styles$1 as switchStyles, template$1 as switchTemplate };
|
|
8053
|
+
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$9 as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$9 as AvatarStyles, template$9 as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$8 as BadgeDefinition, BadgeShape, BadgeSize, styles$8 as BadgeStyles, template$8 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$7 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$7 as CounterBadgeStyles, template$7 as CounterBadgeTemplate, Divider, DividerAlignContent, DividerAppearance, definition$6 as DividerDefinition, DividerOrientation, DividerRole, styles$6 as DividerStyles, template$6 as DividerTemplate, Image, definition$5 as ImageDefinition, ImageFit, ImageShape, styles$5 as ImageStyles, template$5 as ImageTemplate, ProgressBar, definition$4 as ProgressBarDefinition, ProgressBarShape, styles$4 as ProgressBarStyles, template$4 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Slider, definition$3 as SliderDefinition, SliderOrientation, SliderSize, styles$3 as SliderStyles, template$3 as SliderTemplate, Spinner, SpinnerAppearance, definition$2 as SpinnerDefinition, SpinnerSize, styles$2 as SpinnerStyles, template$2 as SpinnerTemplate, Switch, SwitchLabelPosition, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$b as accordionDefinition, definition$a as accordionItemDefinition, styles$a as accordionItemStyles, template$a as accordionItemTemplate, styles$b as accordionStyles, template$b as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil1Alpha, colorNeutralStencil2, colorNeutralStencil2Alpha, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteGreenForegroundInverted, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRedForegroundInverted, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorPaletteYellowForegroundInverted, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, definition$1 as definition, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, styles$1 as switchStyles, template$1 as switchTemplate };
|