@fluentui/web-components 3.0.0-alpha.13 → 3.0.0-alpha.15
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 +45 -1
- package/CHANGELOG.md +21 -2
- package/dist/dts/index.d.ts +5 -0
- package/dist/dts/label/define.d.ts +1 -0
- package/dist/dts/label/index.d.ts +4 -0
- package/dist/dts/label/label.d.ts +42 -0
- package/dist/dts/label/label.definition.d.ts +10 -0
- package/dist/dts/label/label.options.d.ts +26 -0
- package/dist/dts/label/label.styles.d.ts +4 -0
- package/dist/dts/label/label.template.d.ts +8 -0
- package/dist/dts/menu-button/define.d.ts +1 -0
- package/dist/dts/menu-button/index.d.ts +5 -0
- package/dist/dts/menu-button/menu-button.d.ts +7 -0
- package/dist/dts/menu-button/menu-button.definition.d.ts +10 -0
- package/dist/dts/menu-button/menu-button.options.d.ts +46 -0
- package/dist/dts/menu-button/menu-button.template.d.ts +7 -0
- package/dist/dts/tab/define.d.ts +1 -0
- package/dist/dts/tab/index.d.ts +4 -0
- package/dist/dts/tab/tab.d.ts +8 -0
- package/dist/dts/tab/tab.definition.d.ts +2 -0
- package/dist/dts/tab/tab.styles.d.ts +1 -0
- package/dist/dts/tab/tab.template.d.ts +4 -0
- package/dist/dts/tab-panel/define.d.ts +1 -0
- package/dist/dts/tab-panel/index.d.ts +4 -0
- package/dist/dts/tab-panel/tab-panel.d.ts +3 -0
- package/dist/dts/tab-panel/tab-panel.definition.d.ts +2 -0
- package/dist/dts/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/dts/tab-panel/tab-panel.template.d.ts +1 -0
- package/dist/dts/tabs/define.d.ts +1 -0
- package/dist/dts/tabs/index.d.ts +5 -0
- package/dist/dts/tabs/tabs.d.ts +88 -0
- package/dist/dts/tabs/tabs.definition.d.ts +2 -0
- package/dist/dts/tabs/tabs.options.d.ts +14 -0
- package/dist/dts/tabs/tabs.styles.d.ts +1 -0
- package/dist/dts/tabs/tabs.template.d.ts +1 -0
- package/dist/esm/button/button.styles.js +2 -0
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/define.js +4 -0
- package/dist/esm/label/define.js.map +1 -0
- package/dist/esm/label/index.js +5 -0
- package/dist/esm/label/index.js.map +1 -0
- package/dist/esm/label/label.definition.js +18 -0
- package/dist/esm/label/label.definition.js.map +1 -0
- package/dist/esm/label/label.js +40 -0
- package/dist/esm/label/label.js.map +1 -0
- package/dist/esm/label/label.options.js +16 -0
- package/dist/esm/label/label.options.js.map +1 -0
- package/dist/esm/label/label.styles.js +38 -0
- package/dist/esm/label/label.styles.js.map +1 -0
- package/dist/esm/label/label.template.js +13 -0
- package/dist/esm/label/label.template.js.map +1 -0
- package/dist/esm/menu-button/define.js +4 -0
- package/dist/esm/menu-button/define.js.map +1 -0
- package/dist/esm/menu-button/index.js +6 -0
- package/dist/esm/menu-button/index.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +21 -0
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -0
- package/dist/esm/menu-button/menu-button.js +8 -0
- package/dist/esm/menu-button/menu-button.js.map +1 -0
- package/dist/esm/menu-button/menu-button.options.js +17 -0
- package/dist/esm/menu-button/menu-button.options.js.map +1 -0
- package/dist/esm/menu-button/menu-button.template.js +10 -0
- package/dist/esm/menu-button/menu-button.template.js.map +1 -0
- package/dist/esm/tab/define.js +4 -0
- package/dist/esm/tab/define.js.map +1 -0
- package/dist/esm/tab/index.js +5 -0
- package/dist/esm/tab/index.js.map +1 -0
- package/dist/esm/tab/tab.definition.js +10 -0
- package/dist/esm/tab/tab.definition.js.map +1 -0
- package/dist/esm/tab/tab.js +20 -0
- package/dist/esm/tab/tab.js.map +1 -0
- package/dist/esm/tab/tab.styles.js +94 -0
- package/dist/esm/tab/tab.styles.js.map +1 -0
- package/dist/esm/tab/tab.template.js +13 -0
- package/dist/esm/tab/tab.template.js.map +1 -0
- package/dist/esm/tab-panel/define.js +4 -0
- package/dist/esm/tab-panel/define.js.map +1 -0
- package/dist/esm/tab-panel/index.js +5 -0
- package/dist/esm/tab-panel/index.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.definition.js +10 -0
- package/dist/esm/tab-panel/tab-panel.definition.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.js +4 -0
- package/dist/esm/tab-panel/tab-panel.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.styles.js +12 -0
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.template.js +3 -0
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -0
- package/dist/esm/tabs/define.js +4 -0
- package/dist/esm/tabs/define.js.map +1 -0
- package/dist/esm/tabs/index.js +6 -0
- package/dist/esm/tabs/index.js.map +1 -0
- package/dist/esm/tabs/tabs.definition.js +10 -0
- package/dist/esm/tabs/tabs.definition.js.map +1 -0
- package/dist/esm/tabs/tabs.js +158 -0
- package/dist/esm/tabs/tabs.js.map +1 -0
- package/dist/esm/tabs/tabs.options.js +12 -0
- package/dist/esm/tabs/tabs.options.js.map +1 -0
- package/dist/esm/tabs/tabs.styles.js +230 -0
- package/dist/esm/tabs/tabs.styles.js.map +1 -0
- package/dist/esm/tabs/tabs.template.js +3 -0
- package/dist/esm/tabs/tabs.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +1318 -39
- package/dist/web-components.d.ts +302 -2
- package/dist/web-components.js +701 -60
- package/dist/web-components.min.js +151 -136
- package/docs/api-report.md +140 -3
- package/package.json +12 -4
package/dist/web-components.js
CHANGED
|
@@ -5950,6 +5950,317 @@ __decorate([attr({
|
|
|
5950
5950
|
})], FASTSwitch.prototype, "readOnly", void 0);
|
|
5951
5951
|
__decorate([observable], FASTSwitch.prototype, "defaultSlottedNodes", void 0);
|
|
5952
5952
|
|
|
5953
|
+
/**
|
|
5954
|
+
* The template for the {@link @microsoft/fast-foundation#FASTTabPanel} component.
|
|
5955
|
+
* @public
|
|
5956
|
+
*/
|
|
5957
|
+
function tabPanelTemplate() {
|
|
5958
|
+
return html`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`;
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5961
|
+
/**
|
|
5962
|
+
* A TabPanel Component to be used with {@link @microsoft/fast-foundation#(FASTTabs:class)}
|
|
5963
|
+
*
|
|
5964
|
+
* @slot - The default slot for the tabpanel content
|
|
5965
|
+
*
|
|
5966
|
+
* @public
|
|
5967
|
+
*/
|
|
5968
|
+
class FASTTabPanel extends FASTElement {}
|
|
5969
|
+
|
|
5970
|
+
/**
|
|
5971
|
+
* A Tab Component to be used with {@link @microsoft/fast-foundation#(FASTTabs:class)}
|
|
5972
|
+
*
|
|
5973
|
+
* @slot start - Content which can be provided before the tab content
|
|
5974
|
+
* @slot end - Content which can be provided after the tab content
|
|
5975
|
+
* @slot - The default slot for the tab content
|
|
5976
|
+
*
|
|
5977
|
+
* @public
|
|
5978
|
+
*/
|
|
5979
|
+
class FASTTab extends FASTElement {}
|
|
5980
|
+
__decorate([attr({
|
|
5981
|
+
mode: "boolean"
|
|
5982
|
+
})], FASTTab.prototype, "disabled", void 0);
|
|
5983
|
+
applyMixins(FASTTab, StartEnd);
|
|
5984
|
+
|
|
5985
|
+
/**
|
|
5986
|
+
* The orientation of the {@link @microsoft/fast-foundation#(FASTTabs:class)} component
|
|
5987
|
+
* @public
|
|
5988
|
+
*/
|
|
5989
|
+
const TabsOrientation = Orientation;
|
|
5990
|
+
|
|
5991
|
+
/**
|
|
5992
|
+
* The template for the {@link @microsoft/fast-foundation#(FASTTabs:class)} component.
|
|
5993
|
+
* @public
|
|
5994
|
+
*/
|
|
5995
|
+
function tabsTemplate(options = {}) {
|
|
5996
|
+
return html` ${startSlotTemplate(options)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${slotted("tabs")}></slot></div>${endSlotTemplate(options)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${slotted("tabpanels")}></slot></div>`;
|
|
5997
|
+
}
|
|
5998
|
+
|
|
5999
|
+
/**
|
|
6000
|
+
* A Tabs Custom HTML Element.
|
|
6001
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#tablist | ARIA tablist }.
|
|
6002
|
+
*
|
|
6003
|
+
* @slot start - Content which can be provided before the tablist element
|
|
6004
|
+
* @slot end - Content which can be provided after the tablist element
|
|
6005
|
+
* @slot tab - The slot for tabs
|
|
6006
|
+
* @slot tabpanel - The slot for tabpanels
|
|
6007
|
+
* @csspart tablist - The element wrapping for the tabs
|
|
6008
|
+
* @fires change - Fires a custom 'change' event when a tab is clicked or during keyboard navigation
|
|
6009
|
+
*
|
|
6010
|
+
* @public
|
|
6011
|
+
*/
|
|
6012
|
+
class FASTTabs extends FASTElement {
|
|
6013
|
+
constructor() {
|
|
6014
|
+
super(...arguments);
|
|
6015
|
+
/**
|
|
6016
|
+
* The orientation
|
|
6017
|
+
* @public
|
|
6018
|
+
* @remarks
|
|
6019
|
+
* HTML Attribute: orientation
|
|
6020
|
+
*/
|
|
6021
|
+
this.orientation = TabsOrientation.horizontal;
|
|
6022
|
+
this.prevActiveTabIndex = 0;
|
|
6023
|
+
this.activeTabIndex = 0;
|
|
6024
|
+
this.change = () => {
|
|
6025
|
+
this.$emit("change", this.activetab);
|
|
6026
|
+
};
|
|
6027
|
+
this.isDisabledElement = el => {
|
|
6028
|
+
return el.getAttribute("aria-disabled") === "true";
|
|
6029
|
+
};
|
|
6030
|
+
this.isFocusableElement = el => {
|
|
6031
|
+
return !this.isDisabledElement(el);
|
|
6032
|
+
};
|
|
6033
|
+
this.setTabs = () => {
|
|
6034
|
+
const gridHorizontalProperty = "gridColumn";
|
|
6035
|
+
const gridVerticalProperty = "gridRow";
|
|
6036
|
+
const gridProperty = this.isHorizontal() ? gridHorizontalProperty : gridVerticalProperty;
|
|
6037
|
+
this.activeTabIndex = this.getActiveIndex();
|
|
6038
|
+
this.tabs.forEach((tab, index) => {
|
|
6039
|
+
if (tab.slot === "tab") {
|
|
6040
|
+
const isActiveTab = this.activeTabIndex === index && this.isFocusableElement(tab);
|
|
6041
|
+
const tabId = this.tabIds[index];
|
|
6042
|
+
const tabpanelId = this.tabpanelIds[index];
|
|
6043
|
+
tab.setAttribute("id", tabId);
|
|
6044
|
+
tab.setAttribute("aria-selected", isActiveTab ? "true" : "false");
|
|
6045
|
+
tab.setAttribute("aria-controls", tabpanelId);
|
|
6046
|
+
tab.addEventListener("click", this.handleTabClick);
|
|
6047
|
+
tab.addEventListener("keydown", this.handleTabKeyDown);
|
|
6048
|
+
tab.setAttribute("tabindex", isActiveTab ? "0" : "-1");
|
|
6049
|
+
if (isActiveTab) {
|
|
6050
|
+
this.activetab = tab;
|
|
6051
|
+
}
|
|
6052
|
+
}
|
|
6053
|
+
// If the original property isn't emptied out,
|
|
6054
|
+
// the next set will morph into a grid-area style setting that is not what we want
|
|
6055
|
+
tab.style[gridHorizontalProperty] = "";
|
|
6056
|
+
tab.style[gridVerticalProperty] = "";
|
|
6057
|
+
tab.style[gridProperty] = `${index + 1}`;
|
|
6058
|
+
!this.isHorizontal() ? tab.classList.add("vertical") : tab.classList.remove("vertical");
|
|
6059
|
+
});
|
|
6060
|
+
};
|
|
6061
|
+
this.setTabPanels = () => {
|
|
6062
|
+
this.tabpanels.forEach((tabpanel, index) => {
|
|
6063
|
+
const tabId = this.tabIds[index];
|
|
6064
|
+
const tabpanelId = this.tabpanelIds[index];
|
|
6065
|
+
tabpanel.setAttribute("id", tabpanelId);
|
|
6066
|
+
tabpanel.setAttribute("aria-labelledby", tabId);
|
|
6067
|
+
this.activeTabIndex !== index ? tabpanel.setAttribute("hidden", "") : tabpanel.removeAttribute("hidden");
|
|
6068
|
+
});
|
|
6069
|
+
};
|
|
6070
|
+
this.handleTabClick = event => {
|
|
6071
|
+
const selectedTab = event.currentTarget;
|
|
6072
|
+
if (selectedTab.nodeType === 1 && this.isFocusableElement(selectedTab)) {
|
|
6073
|
+
this.prevActiveTabIndex = this.activeTabIndex;
|
|
6074
|
+
this.activeTabIndex = this.tabs.indexOf(selectedTab);
|
|
6075
|
+
this.setComponent();
|
|
6076
|
+
}
|
|
6077
|
+
};
|
|
6078
|
+
this.handleTabKeyDown = event => {
|
|
6079
|
+
if (this.isHorizontal()) {
|
|
6080
|
+
switch (event.key) {
|
|
6081
|
+
case keyArrowLeft:
|
|
6082
|
+
event.preventDefault();
|
|
6083
|
+
this.adjustBackward(event);
|
|
6084
|
+
break;
|
|
6085
|
+
case keyArrowRight:
|
|
6086
|
+
event.preventDefault();
|
|
6087
|
+
this.adjustForward(event);
|
|
6088
|
+
break;
|
|
6089
|
+
}
|
|
6090
|
+
} else {
|
|
6091
|
+
switch (event.key) {
|
|
6092
|
+
case keyArrowUp:
|
|
6093
|
+
event.preventDefault();
|
|
6094
|
+
this.adjustBackward(event);
|
|
6095
|
+
break;
|
|
6096
|
+
case keyArrowDown:
|
|
6097
|
+
event.preventDefault();
|
|
6098
|
+
this.adjustForward(event);
|
|
6099
|
+
break;
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
switch (event.key) {
|
|
6103
|
+
case keyHome:
|
|
6104
|
+
event.preventDefault();
|
|
6105
|
+
this.adjust(-this.activeTabIndex);
|
|
6106
|
+
break;
|
|
6107
|
+
case keyEnd:
|
|
6108
|
+
event.preventDefault();
|
|
6109
|
+
this.adjust(this.tabs.length - this.activeTabIndex - 1);
|
|
6110
|
+
break;
|
|
6111
|
+
}
|
|
6112
|
+
};
|
|
6113
|
+
this.adjustForward = e => {
|
|
6114
|
+
const group = this.tabs;
|
|
6115
|
+
let index = 0;
|
|
6116
|
+
index = this.activetab ? group.indexOf(this.activetab) + 1 : 1;
|
|
6117
|
+
if (index === group.length) {
|
|
6118
|
+
index = 0;
|
|
6119
|
+
}
|
|
6120
|
+
while (index < group.length && group.length > 1) {
|
|
6121
|
+
if (this.isFocusableElement(group[index])) {
|
|
6122
|
+
this.moveToTabByIndex(group, index);
|
|
6123
|
+
break;
|
|
6124
|
+
} else if (this.activetab && index === group.indexOf(this.activetab)) {
|
|
6125
|
+
break;
|
|
6126
|
+
} else if (index + 1 >= group.length) {
|
|
6127
|
+
index = 0;
|
|
6128
|
+
} else {
|
|
6129
|
+
index += 1;
|
|
6130
|
+
}
|
|
6131
|
+
}
|
|
6132
|
+
};
|
|
6133
|
+
this.adjustBackward = e => {
|
|
6134
|
+
const group = this.tabs;
|
|
6135
|
+
let index = 0;
|
|
6136
|
+
index = this.activetab ? group.indexOf(this.activetab) - 1 : 0;
|
|
6137
|
+
index = index < 0 ? group.length - 1 : index;
|
|
6138
|
+
while (index >= 0 && group.length > 1) {
|
|
6139
|
+
if (this.isFocusableElement(group[index])) {
|
|
6140
|
+
this.moveToTabByIndex(group, index);
|
|
6141
|
+
break;
|
|
6142
|
+
} else if (index - 1 < 0) {
|
|
6143
|
+
index = group.length - 1;
|
|
6144
|
+
} else {
|
|
6145
|
+
index -= 1;
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
6148
|
+
};
|
|
6149
|
+
this.moveToTabByIndex = (group, index) => {
|
|
6150
|
+
const tab = group[index];
|
|
6151
|
+
this.activetab = tab;
|
|
6152
|
+
this.prevActiveTabIndex = this.activeTabIndex;
|
|
6153
|
+
this.activeTabIndex = index;
|
|
6154
|
+
tab.focus();
|
|
6155
|
+
this.setComponent();
|
|
6156
|
+
};
|
|
6157
|
+
}
|
|
6158
|
+
/**
|
|
6159
|
+
* @internal
|
|
6160
|
+
*/
|
|
6161
|
+
orientationChanged() {
|
|
6162
|
+
if (this.$fastController.isConnected) {
|
|
6163
|
+
this.setTabs();
|
|
6164
|
+
this.setTabPanels();
|
|
6165
|
+
}
|
|
6166
|
+
}
|
|
6167
|
+
/**
|
|
6168
|
+
* @internal
|
|
6169
|
+
*/
|
|
6170
|
+
activeidChanged(oldValue, newValue) {
|
|
6171
|
+
if (this.$fastController.isConnected && this.tabs.length <= this.tabpanels.length) {
|
|
6172
|
+
this.prevActiveTabIndex = this.tabs.findIndex(item => item.id === oldValue);
|
|
6173
|
+
this.setTabs();
|
|
6174
|
+
this.setTabPanels();
|
|
6175
|
+
}
|
|
6176
|
+
}
|
|
6177
|
+
/**
|
|
6178
|
+
* @internal
|
|
6179
|
+
*/
|
|
6180
|
+
tabsChanged() {
|
|
6181
|
+
if (this.$fastController.isConnected && this.tabs.length <= this.tabpanels.length) {
|
|
6182
|
+
this.tabIds = this.getTabIds();
|
|
6183
|
+
this.tabpanelIds = this.getTabPanelIds();
|
|
6184
|
+
this.setTabs();
|
|
6185
|
+
this.setTabPanels();
|
|
6186
|
+
}
|
|
6187
|
+
}
|
|
6188
|
+
/**
|
|
6189
|
+
* @internal
|
|
6190
|
+
*/
|
|
6191
|
+
tabpanelsChanged() {
|
|
6192
|
+
if (this.$fastController.isConnected && this.tabpanels.length <= this.tabs.length) {
|
|
6193
|
+
this.tabIds = this.getTabIds();
|
|
6194
|
+
this.tabpanelIds = this.getTabPanelIds();
|
|
6195
|
+
this.setTabs();
|
|
6196
|
+
this.setTabPanels();
|
|
6197
|
+
}
|
|
6198
|
+
}
|
|
6199
|
+
getActiveIndex() {
|
|
6200
|
+
const id = this.activeid;
|
|
6201
|
+
if (id !== undefined) {
|
|
6202
|
+
return this.tabIds.indexOf(this.activeid) === -1 ? 0 : this.tabIds.indexOf(this.activeid);
|
|
6203
|
+
} else {
|
|
6204
|
+
return 0;
|
|
6205
|
+
}
|
|
6206
|
+
}
|
|
6207
|
+
getTabIds() {
|
|
6208
|
+
return this.tabs.map(tab => {
|
|
6209
|
+
var _a;
|
|
6210
|
+
return (_a = tab.getAttribute("id")) !== null && _a !== void 0 ? _a : `tab-${uniqueId()}`;
|
|
6211
|
+
});
|
|
6212
|
+
}
|
|
6213
|
+
getTabPanelIds() {
|
|
6214
|
+
return this.tabpanels.map(tabPanel => {
|
|
6215
|
+
var _a;
|
|
6216
|
+
return (_a = tabPanel.getAttribute("id")) !== null && _a !== void 0 ? _a : `panel-${uniqueId()}`;
|
|
6217
|
+
});
|
|
6218
|
+
}
|
|
6219
|
+
setComponent() {
|
|
6220
|
+
if (this.activeTabIndex !== this.prevActiveTabIndex) {
|
|
6221
|
+
this.activeid = this.tabIds[this.activeTabIndex];
|
|
6222
|
+
this.focusTab();
|
|
6223
|
+
this.change();
|
|
6224
|
+
}
|
|
6225
|
+
}
|
|
6226
|
+
isHorizontal() {
|
|
6227
|
+
return this.orientation === TabsOrientation.horizontal;
|
|
6228
|
+
}
|
|
6229
|
+
/**
|
|
6230
|
+
* The adjust method for FASTTabs
|
|
6231
|
+
* @public
|
|
6232
|
+
* @remarks
|
|
6233
|
+
* This method allows the active index to be adjusted by numerical increments
|
|
6234
|
+
*/
|
|
6235
|
+
adjust(adjustment) {
|
|
6236
|
+
const focusableTabs = this.tabs.filter(t => !this.isDisabledElement(t));
|
|
6237
|
+
const currentActiveTabIndex = focusableTabs.indexOf(this.activetab);
|
|
6238
|
+
const nextTabIndex = limit(0, focusableTabs.length - 1, currentActiveTabIndex + adjustment);
|
|
6239
|
+
// the index of the next focusable tab within the context of all available tabs
|
|
6240
|
+
const nextIndex = this.tabs.indexOf(focusableTabs[nextTabIndex]);
|
|
6241
|
+
if (nextIndex > -1) {
|
|
6242
|
+
this.moveToTabByIndex(this.tabs, nextIndex);
|
|
6243
|
+
}
|
|
6244
|
+
}
|
|
6245
|
+
focusTab() {
|
|
6246
|
+
this.tabs[this.activeTabIndex].focus();
|
|
6247
|
+
}
|
|
6248
|
+
/**
|
|
6249
|
+
* @internal
|
|
6250
|
+
*/
|
|
6251
|
+
connectedCallback() {
|
|
6252
|
+
super.connectedCallback();
|
|
6253
|
+
this.tabIds = this.getTabIds();
|
|
6254
|
+
this.tabpanelIds = this.getTabPanelIds();
|
|
6255
|
+
this.activeTabIndex = this.getActiveIndex();
|
|
6256
|
+
}
|
|
6257
|
+
}
|
|
6258
|
+
__decorate([attr], FASTTabs.prototype, "orientation", void 0);
|
|
6259
|
+
__decorate([attr], FASTTabs.prototype, "activeid", void 0);
|
|
6260
|
+
__decorate([observable], FASTTabs.prototype, "tabs", void 0);
|
|
6261
|
+
__decorate([observable], FASTTabs.prototype, "tabpanels", void 0);
|
|
6262
|
+
applyMixins(FASTTabs, StartEnd);
|
|
6263
|
+
|
|
5953
6264
|
/**
|
|
5954
6265
|
* A CSS fragment to set `display: none;` when the host is hidden using the [hidden] attribute.
|
|
5955
6266
|
* @public
|
|
@@ -5971,9 +6282,9 @@ function display(displayValue) {
|
|
|
5971
6282
|
*/
|
|
5972
6283
|
class Accordion extends FASTAccordion {}
|
|
5973
6284
|
|
|
5974
|
-
const template$
|
|
6285
|
+
const template$h = accordionTemplate();
|
|
5975
6286
|
|
|
5976
|
-
const styles$
|
|
6287
|
+
const styles$g = css`
|
|
5977
6288
|
${display('flex')}
|
|
5978
6289
|
|
|
5979
6290
|
:host{flex-direction:column;width:100%;contain:content}`;
|
|
@@ -5993,10 +6304,10 @@ const FluentDesignSystem = Object.freeze({
|
|
|
5993
6304
|
* @remarks
|
|
5994
6305
|
* HTML Element: \<fluent-accordion\>
|
|
5995
6306
|
*/
|
|
5996
|
-
const definition$
|
|
6307
|
+
const definition$h = Accordion.compose({
|
|
5997
6308
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
5998
|
-
template: template$
|
|
5999
|
-
styles: styles$
|
|
6309
|
+
template: template$h,
|
|
6310
|
+
styles: styles$g
|
|
6000
6311
|
});
|
|
6001
6312
|
|
|
6002
6313
|
/**
|
|
@@ -6816,7 +7127,7 @@ var tokens = /*#__PURE__*/Object.freeze({
|
|
|
6816
7127
|
shadow64Brand: shadow64Brand
|
|
6817
7128
|
});
|
|
6818
7129
|
|
|
6819
|
-
const styles$
|
|
7130
|
+
const styles$f = css`
|
|
6820
7131
|
${display('block')}
|
|
6821
7132
|
|
|
6822
7133
|
: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}`;
|
|
@@ -6851,7 +7162,7 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
6851
7162
|
* The template for the fluent-accordion component.
|
|
6852
7163
|
* @public
|
|
6853
7164
|
*/
|
|
6854
|
-
const template$
|
|
7165
|
+
const template$g = accordionItemTemplate({
|
|
6855
7166
|
collapsedIcon: chevronRight20Filled,
|
|
6856
7167
|
expandedIcon: chevronDown20Filled
|
|
6857
7168
|
});
|
|
@@ -6865,10 +7176,10 @@ const template$b = accordionItemTemplate({
|
|
|
6865
7176
|
* @remarks
|
|
6866
7177
|
* HTML Element: \<fluent-accordion-item\>
|
|
6867
7178
|
*/
|
|
6868
|
-
const definition$
|
|
7179
|
+
const definition$g = AccordionItem.compose({
|
|
6869
7180
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
6870
|
-
template: template$
|
|
6871
|
-
styles: styles$
|
|
7181
|
+
template: template$g,
|
|
7182
|
+
styles: styles$f
|
|
6872
7183
|
});
|
|
6873
7184
|
|
|
6874
7185
|
/* TODO: This file is a direct copy of the React Avatar utils */
|
|
@@ -7122,7 +7433,7 @@ const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 2
|
|
|
7122
7433
|
function avatarTemplate() {
|
|
7123
7434
|
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>`;
|
|
7124
7435
|
}
|
|
7125
|
-
const template$
|
|
7436
|
+
const template$f = avatarTemplate();
|
|
7126
7437
|
|
|
7127
7438
|
const animations = {
|
|
7128
7439
|
fastOutSlowInMax: curveDecelerateMax,
|
|
@@ -7138,7 +7449,7 @@ const animations = {
|
|
|
7138
7449
|
/** Avatar styles
|
|
7139
7450
|
* @public
|
|
7140
7451
|
*/
|
|
7141
|
-
const styles$
|
|
7452
|
+
const styles$e = css`
|
|
7142
7453
|
${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}}`;
|
|
7143
7454
|
|
|
7144
7455
|
/**
|
|
@@ -7148,10 +7459,10 @@ const styles$a = css`
|
|
|
7148
7459
|
* @remarks
|
|
7149
7460
|
* HTML Element: \<fluent-badge\>
|
|
7150
7461
|
*/
|
|
7151
|
-
const definition$
|
|
7462
|
+
const definition$f = Avatar.compose({
|
|
7152
7463
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
7153
|
-
template: template$
|
|
7154
|
-
styles: styles$
|
|
7464
|
+
template: template$f,
|
|
7465
|
+
styles: styles$e
|
|
7155
7466
|
});
|
|
7156
7467
|
|
|
7157
7468
|
/**
|
|
@@ -7238,7 +7549,7 @@ applyMixins(Badge, StartEnd);
|
|
|
7238
7549
|
function badgeTemplate(options = {}) {
|
|
7239
7550
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
7240
7551
|
}
|
|
7241
|
-
const template$
|
|
7552
|
+
const template$e = badgeTemplate();
|
|
7242
7553
|
|
|
7243
7554
|
const textPadding = spacingHorizontalXXS;
|
|
7244
7555
|
const badgeBaseStyles = css.partial`
|
|
@@ -7515,7 +7826,7 @@ const badgeTintStyles = css.partial`
|
|
|
7515
7826
|
/** Badge styles
|
|
7516
7827
|
* @public
|
|
7517
7828
|
*/
|
|
7518
|
-
const styles$
|
|
7829
|
+
const styles$d = css`
|
|
7519
7830
|
: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}
|
|
7520
7831
|
${badgeFilledStyles}
|
|
7521
7832
|
${badgeGhostStyles}
|
|
@@ -7533,10 +7844,10 @@ const styles$9 = css`
|
|
|
7533
7844
|
* @remarks
|
|
7534
7845
|
* HTML Element: \<fluent-badge\>
|
|
7535
7846
|
*/
|
|
7536
|
-
const definition$
|
|
7847
|
+
const definition$e = Badge.compose({
|
|
7537
7848
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
7538
|
-
template: template$
|
|
7539
|
-
styles: styles$
|
|
7849
|
+
template: template$e,
|
|
7850
|
+
styles: styles$d
|
|
7540
7851
|
});
|
|
7541
7852
|
|
|
7542
7853
|
/**
|
|
@@ -7637,13 +7948,13 @@ const ButtonSize = {
|
|
|
7637
7948
|
* The template for the Button component.
|
|
7638
7949
|
* @public
|
|
7639
7950
|
*/
|
|
7640
|
-
const template$
|
|
7951
|
+
const template$d = buttonTemplate();
|
|
7641
7952
|
|
|
7642
7953
|
// Need to support icon hover styles
|
|
7643
|
-
const styles$
|
|
7954
|
+
const styles$c = css`
|
|
7644
7955
|
${display('inline-flex')}
|
|
7645
7956
|
|
|
7646
|
-
:host{--icon-spacing:${spacingHorizontalSNudge};contain:layout style}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer}.content{display:inherit}:host(:hover) .control{background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active) .control{background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host .control:focus-visible{border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}
|
|
7957
|
+
:host{--icon-spacing:${spacingHorizontalSNudge};contain:layout style}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer}.content{display:inherit}:host(:hover) .control{background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active) .control{background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host .control:focus-visible{border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]) .control{min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${spacingHorizontalXS}}:host([size='small']) .control{min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host([size='small'][icon-only]) .control{min-width:24px;max-width:24px}:host([size='large']) .control{min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]) .control{min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']) .control,:host([shape='circular']) .control:focus-visible{border-radius:${borderRadiusCircular}}:host([shape='square']) .control,:host([shape='square']) .control:focus-visible{border-radius:${borderRadiusNone}}:host([appearance='primary']) .control{background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover) .control{background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:hover) .control,:host([appearance='primary']:hover:active) .control{border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active) .control{background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']) .control:focus-visible{border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(is:([disabled][appearance='primary'],[disabled-focusabale][appearance="primary"])) .control,:host(is:([disabled][appearance='primary'],[disabled-focusabale][appearance="primary"]):hover) .control,:host(is:([disabled][appearance='primary'],[disabled-focusabale][appearance="primary"]):hover:active) .control{border-color:transparent}:host([appearance='outline']) .control{background-color:${colorTransparentBackground}}:host([appearance='outline']:hover) .control{background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active) .control{background-color:${colorTransparentBackgroundPressed}}:host(is:([disabled][appearance='outline'],[disabled-focusabale][appearance="outline"])) .control,:host(is:([disabled][appearance='outline'],[disabled-focusabale][appearance="outline"]):hover) .control,:host(is:([disabled][appearance='outline'],[disabled-focusabale][appearance="outline"]):hover:active) .control{background-color:${colorTransparentBackground}}:host([appearance='subtle']) .control{background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover) .control{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active) .control{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(is:([disabled][appearance='subtle'],[disabled-focusabale][appearance="subtle"])) .control,:host(is:([disabled][appearance='subtle'],[disabled-focusabale][appearance="subtle"]):hover) .control,:host(is:([disabled][appearance='subtle'],[disabled-focusabale][appearance="subtle"]):hover:active) .control{background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']) .control{background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover) .control{background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active) .control{background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']) .control,:host([appearance='transparent']:hover) .control,:host([appearance='transparent']:hover:active) .control{border-color:transparent}:host(is:([disabled][appearance='transparent'],[disabled-focusabale][appearance="transparent"])) .control,:host(is:([disabled][appearance='transparent'],[disabled-focusabale][appearance="transparent"]):hover) .control,:host(is:([disabled][appearance='transparent'],[disabled-focusabale][appearance="transparent"]):hover:active) .control{border-color:transparent;background-color:${colorTransparentBackground}}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active)
|
|
7647
7958
|
.control{background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}`;
|
|
7648
7959
|
|
|
7649
7960
|
/**
|
|
@@ -7654,10 +7965,10 @@ const styles$8 = css`
|
|
|
7654
7965
|
* @remarks
|
|
7655
7966
|
* HTML Element: \<fluent-button\>
|
|
7656
7967
|
*/
|
|
7657
|
-
const definition$
|
|
7968
|
+
const definition$d = Button.compose({
|
|
7658
7969
|
name: `${FluentDesignSystem.prefix}-button`,
|
|
7659
|
-
template: template$
|
|
7660
|
-
styles: styles$
|
|
7970
|
+
template: template$d,
|
|
7971
|
+
styles: styles$c,
|
|
7661
7972
|
shadowOptions: {
|
|
7662
7973
|
delegatesFocus: true
|
|
7663
7974
|
}
|
|
@@ -7796,12 +8107,12 @@ function composeTemplate(options = {}) {
|
|
|
7796
8107
|
* The template for the Counter Badge component.
|
|
7797
8108
|
* @public
|
|
7798
8109
|
*/
|
|
7799
|
-
const template$
|
|
8110
|
+
const template$c = composeTemplate();
|
|
7800
8111
|
|
|
7801
8112
|
/** Badge styles
|
|
7802
8113
|
* @public
|
|
7803
8114
|
*/
|
|
7804
|
-
const styles$
|
|
8115
|
+
const styles$b = css`
|
|
7805
8116
|
: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}
|
|
7806
8117
|
${badgeFilledStyles}
|
|
7807
8118
|
${badgeGhostStyles}
|
|
@@ -7818,10 +8129,10 @@ const styles$7 = css`
|
|
|
7818
8129
|
* @remarks
|
|
7819
8130
|
* HTML Element: \<fluent-counter-badge\>
|
|
7820
8131
|
*/
|
|
7821
|
-
const definition$
|
|
8132
|
+
const definition$c = CounterBadge.compose({
|
|
7822
8133
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
7823
|
-
template: template$
|
|
7824
|
-
styles: styles$
|
|
8134
|
+
template: template$c,
|
|
8135
|
+
styles: styles$b
|
|
7825
8136
|
});
|
|
7826
8137
|
|
|
7827
8138
|
/**
|
|
@@ -7863,12 +8174,12 @@ const DividerAppearance = {
|
|
|
7863
8174
|
* Template for the Divider component
|
|
7864
8175
|
* @public
|
|
7865
8176
|
*/
|
|
7866
|
-
const template$
|
|
8177
|
+
const template$b = dividerTemplate();
|
|
7867
8178
|
|
|
7868
8179
|
/** Divider styles
|
|
7869
8180
|
* @public
|
|
7870
8181
|
*/
|
|
7871
|
-
const styles$
|
|
8182
|
+
const styles$a = css`
|
|
7872
8183
|
${display('flex')}
|
|
7873
8184
|
|
|
7874
8185
|
: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}}`;
|
|
@@ -7880,10 +8191,10 @@ const styles$6 = css`
|
|
|
7880
8191
|
* @remarks
|
|
7881
8192
|
* HTML Element: \<fluent-divider\>
|
|
7882
8193
|
*/
|
|
7883
|
-
const definition$
|
|
8194
|
+
const definition$b = Divider.compose({
|
|
7884
8195
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
7885
|
-
template: template$
|
|
7886
|
-
styles: styles$
|
|
8196
|
+
template: template$b,
|
|
8197
|
+
styles: styles$a
|
|
7887
8198
|
});
|
|
7888
8199
|
|
|
7889
8200
|
/**
|
|
@@ -7928,13 +8239,13 @@ const ImageShape = {
|
|
|
7928
8239
|
* Template for the Image component
|
|
7929
8240
|
* @public
|
|
7930
8241
|
*/
|
|
7931
|
-
const template$
|
|
8242
|
+
const template$a = html`<slot></slot>`;
|
|
7932
8243
|
|
|
7933
8244
|
/** Image styles
|
|
7934
8245
|
*
|
|
7935
8246
|
* @public
|
|
7936
8247
|
*/
|
|
7937
|
-
const styles$
|
|
8248
|
+
const styles$9 = css`
|
|
7938
8249
|
: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}}`;
|
|
7939
8250
|
|
|
7940
8251
|
/**
|
|
@@ -7944,10 +8255,122 @@ const styles$5 = css`
|
|
|
7944
8255
|
* @remarks
|
|
7945
8256
|
* HTML Element: \<fluent-image\>
|
|
7946
8257
|
*/
|
|
7947
|
-
const definition$
|
|
8258
|
+
const definition$a = Image.compose({
|
|
7948
8259
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
7949
|
-
template: template$
|
|
7950
|
-
styles: styles$
|
|
8260
|
+
template: template$a,
|
|
8261
|
+
styles: styles$9
|
|
8262
|
+
});
|
|
8263
|
+
|
|
8264
|
+
/**
|
|
8265
|
+
* The base class used for constructing a fluent-label custom element
|
|
8266
|
+
* @public
|
|
8267
|
+
*/
|
|
8268
|
+
class Label extends FASTElement {
|
|
8269
|
+
constructor() {
|
|
8270
|
+
super(...arguments);
|
|
8271
|
+
/**
|
|
8272
|
+
* Specifies styles for label when associated input is disabled
|
|
8273
|
+
*
|
|
8274
|
+
* @public
|
|
8275
|
+
* @remarks
|
|
8276
|
+
* HTML Attribute: disabled
|
|
8277
|
+
*/
|
|
8278
|
+
this.disabled = false;
|
|
8279
|
+
/**
|
|
8280
|
+
* Specifies styles for label when associated input is a required field
|
|
8281
|
+
*
|
|
8282
|
+
* @public
|
|
8283
|
+
* @remarks
|
|
8284
|
+
* HTML Attribute: required
|
|
8285
|
+
*/
|
|
8286
|
+
this.required = false;
|
|
8287
|
+
}
|
|
8288
|
+
}
|
|
8289
|
+
__decorate([attr], Label.prototype, "size", void 0);
|
|
8290
|
+
__decorate([attr], Label.prototype, "weight", void 0);
|
|
8291
|
+
__decorate([attr({
|
|
8292
|
+
mode: 'boolean'
|
|
8293
|
+
})], Label.prototype, "disabled", void 0);
|
|
8294
|
+
__decorate([attr({
|
|
8295
|
+
mode: 'boolean'
|
|
8296
|
+
})], Label.prototype, "required", void 0);
|
|
8297
|
+
|
|
8298
|
+
/** Label styles
|
|
8299
|
+
* @public
|
|
8300
|
+
*/
|
|
8301
|
+
const styles$8 = css`
|
|
8302
|
+
${display('flex')}
|
|
8303
|
+
|
|
8304
|
+
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};color:${colorNeutralForeground1}}.asterisk{color:${colorPaletteRedForeground1};margin-left:${spacingHorizontalXS}}:host([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400};font-weight:${fontWeightSemibold}}:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
8305
|
+
|
|
8306
|
+
/**
|
|
8307
|
+
* The template for the Fluent label web-component.
|
|
8308
|
+
* @public
|
|
8309
|
+
*/
|
|
8310
|
+
function labelTemplate() {
|
|
8311
|
+
return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
|
|
8312
|
+
}
|
|
8313
|
+
const template$9 = labelTemplate();
|
|
8314
|
+
|
|
8315
|
+
/**
|
|
8316
|
+
* The Fluent Label Element.
|
|
8317
|
+
*
|
|
8318
|
+
*
|
|
8319
|
+
* @public
|
|
8320
|
+
* @remarks
|
|
8321
|
+
* HTML Element: \<fluent-label\>
|
|
8322
|
+
*/
|
|
8323
|
+
const definition$9 = Label.compose({
|
|
8324
|
+
name: `${FluentDesignSystem.prefix}-label`,
|
|
8325
|
+
template: template$9,
|
|
8326
|
+
styles: styles$8
|
|
8327
|
+
});
|
|
8328
|
+
|
|
8329
|
+
/**
|
|
8330
|
+
* The base class used for constructing a fluent-menu-button custom element
|
|
8331
|
+
* @public
|
|
8332
|
+
*/
|
|
8333
|
+
class MenuButton extends Button {}
|
|
8334
|
+
|
|
8335
|
+
/**
|
|
8336
|
+
* Menu Button Appearance constants
|
|
8337
|
+
* @public
|
|
8338
|
+
*/
|
|
8339
|
+
const MenuButtonAppearance = ButtonAppearance;
|
|
8340
|
+
/**
|
|
8341
|
+
* A Menu Button can be square, circular or rounded.
|
|
8342
|
+
* @public
|
|
8343
|
+
*/
|
|
8344
|
+
const MenuButtonShape = ButtonShape;
|
|
8345
|
+
/**
|
|
8346
|
+
* A Menu Button can be a size of small, medium or large.
|
|
8347
|
+
* @public
|
|
8348
|
+
*/
|
|
8349
|
+
const MenuButtonSize = ButtonSize;
|
|
8350
|
+
|
|
8351
|
+
/**
|
|
8352
|
+
* The template for the Button component.
|
|
8353
|
+
* @public
|
|
8354
|
+
*/
|
|
8355
|
+
const template$8 = buttonTemplate({
|
|
8356
|
+
end: html.partial(`<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path></svg>`)
|
|
8357
|
+
});
|
|
8358
|
+
|
|
8359
|
+
/**
|
|
8360
|
+
* The Fluent Menu Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
8361
|
+
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
8362
|
+
*
|
|
8363
|
+
* @public
|
|
8364
|
+
* @remarks
|
|
8365
|
+
* HTML Element: \<fluent-button\>
|
|
8366
|
+
*/
|
|
8367
|
+
const definition$8 = MenuButton.compose({
|
|
8368
|
+
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
8369
|
+
template: template$8,
|
|
8370
|
+
styles: styles$c,
|
|
8371
|
+
shadowOptions: {
|
|
8372
|
+
delegatesFocus: true
|
|
8373
|
+
}
|
|
7951
8374
|
});
|
|
7952
8375
|
|
|
7953
8376
|
/**
|
|
@@ -8001,7 +8424,7 @@ const ProgressBarValidationState = {
|
|
|
8001
8424
|
/** ProgressBar styles
|
|
8002
8425
|
* @public
|
|
8003
8426
|
*/
|
|
8004
|
-
const styles$
|
|
8427
|
+
const styles$7 = css`
|
|
8005
8428
|
${display('flex')}
|
|
8006
8429
|
|
|
8007
8430
|
: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(
|
|
@@ -8016,7 +8439,7 @@ const styles$4 = css`
|
|
|
8016
8439
|
to right,${colorBrandBackground2} 0%,${colorCompoundBrandBackground} 50%,${colorBrandBackground2}
|
|
8017
8440
|
);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}}`;
|
|
8018
8441
|
|
|
8019
|
-
const template$
|
|
8442
|
+
const template$7 = progressTemplate({
|
|
8020
8443
|
indeterminateIndicator1: `<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>`,
|
|
8021
8444
|
indeterminateIndicator2: `<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>`
|
|
8022
8445
|
});
|
|
@@ -8029,10 +8452,10 @@ const template$4 = progressTemplate({
|
|
|
8029
8452
|
* @remarks
|
|
8030
8453
|
* HTML Element: \<fluent-progress-bar\>
|
|
8031
8454
|
*/
|
|
8032
|
-
const definition$
|
|
8455
|
+
const definition$7 = ProgressBar.compose({
|
|
8033
8456
|
name: `${FluentDesignSystem.prefix}-progress-bar`,
|
|
8034
|
-
template: template$
|
|
8035
|
-
styles: styles$
|
|
8457
|
+
template: template$7,
|
|
8458
|
+
styles: styles$7
|
|
8036
8459
|
});
|
|
8037
8460
|
|
|
8038
8461
|
/**
|
|
@@ -8094,12 +8517,12 @@ const SliderSize = {
|
|
|
8094
8517
|
/** Text styles
|
|
8095
8518
|
* @public
|
|
8096
8519
|
*/
|
|
8097
|
-
const styles$
|
|
8520
|
+
const styles$6 = css`
|
|
8098
8521
|
${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(
|
|
8099
8522
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate)
|
|
8100
8523
|
)}: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}`;
|
|
8101
8524
|
|
|
8102
|
-
const template$
|
|
8525
|
+
const template$6 = sliderTemplate({
|
|
8103
8526
|
thumb: `<div class="thumb-cursor" tabindex="0"></div>`
|
|
8104
8527
|
});
|
|
8105
8528
|
|
|
@@ -8111,10 +8534,10 @@ const template$3 = sliderTemplate({
|
|
|
8111
8534
|
* @remarks
|
|
8112
8535
|
* HTML Element: \<fluent-slider\>
|
|
8113
8536
|
*/
|
|
8114
|
-
const definition$
|
|
8537
|
+
const definition$6 = Slider.compose({
|
|
8115
8538
|
name: `${FluentDesignSystem.prefix}-slider`,
|
|
8116
|
-
template: template$
|
|
8117
|
-
styles: styles$
|
|
8539
|
+
template: template$6,
|
|
8540
|
+
styles: styles$6
|
|
8118
8541
|
});
|
|
8119
8542
|
|
|
8120
8543
|
/**
|
|
@@ -8147,7 +8570,7 @@ const SpinnerSize = {
|
|
|
8147
8570
|
huge: 'huge'
|
|
8148
8571
|
};
|
|
8149
8572
|
|
|
8150
|
-
const template$
|
|
8573
|
+
const template$5 = progressRingTemplate({
|
|
8151
8574
|
indeterminateIndicator: `
|
|
8152
8575
|
<svg class="progress" part="progress" viewBox="0 0 16 16">
|
|
8153
8576
|
<circle
|
|
@@ -8168,7 +8591,7 @@ const template$2 = progressRingTemplate({
|
|
|
8168
8591
|
`
|
|
8169
8592
|
});
|
|
8170
8593
|
|
|
8171
|
-
const styles$
|
|
8594
|
+
const styles$5 = css`
|
|
8172
8595
|
${display('flex')}
|
|
8173
8596
|
|
|
8174
8597
|
: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)}}`;
|
|
@@ -8182,10 +8605,10 @@ const styles$2 = css`
|
|
|
8182
8605
|
* @remarks
|
|
8183
8606
|
* HTML Element: \<fluent-spinner\>
|
|
8184
8607
|
*/
|
|
8185
|
-
const definition$
|
|
8608
|
+
const definition$5 = Spinner.compose({
|
|
8186
8609
|
name: `${FluentDesignSystem.prefix}-spinner`,
|
|
8187
|
-
template: template$
|
|
8188
|
-
styles: styles$
|
|
8610
|
+
template: template$5,
|
|
8611
|
+
styles: styles$5
|
|
8189
8612
|
});
|
|
8190
8613
|
|
|
8191
8614
|
class Switch extends FASTSwitch {}
|
|
@@ -8203,11 +8626,11 @@ const SwitchLabelPosition = {
|
|
|
8203
8626
|
before: 'before'
|
|
8204
8627
|
};
|
|
8205
8628
|
|
|
8206
|
-
const template$
|
|
8629
|
+
const template$4 = switchTemplate({
|
|
8207
8630
|
switch: `<span class="checked-indicator" part="checked-indicator"></span>`
|
|
8208
8631
|
});
|
|
8209
8632
|
|
|
8210
|
-
const styles$
|
|
8633
|
+
const styles$4 = css`
|
|
8211
8634
|
${display('inline-flex')}
|
|
8212
8635
|
|
|
8213
8636
|
: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}}`;
|
|
@@ -8219,8 +8642,226 @@ const styles$1 = css`
|
|
|
8219
8642
|
* @remarks
|
|
8220
8643
|
* HTML Element: \<fluent-switch\>
|
|
8221
8644
|
*/
|
|
8222
|
-
const definition$
|
|
8645
|
+
const definition$4 = Switch.compose({
|
|
8223
8646
|
name: `${FluentDesignSystem.prefix}-switch`,
|
|
8647
|
+
template: template$4,
|
|
8648
|
+
styles: styles$4
|
|
8649
|
+
});
|
|
8650
|
+
|
|
8651
|
+
const TabsAppearance = {
|
|
8652
|
+
subtle: 'subtle',
|
|
8653
|
+
transparent: 'transparent'
|
|
8654
|
+
};
|
|
8655
|
+
const TabsSize = {
|
|
8656
|
+
small: 'small',
|
|
8657
|
+
medium: 'medium',
|
|
8658
|
+
large: 'large'
|
|
8659
|
+
};
|
|
8660
|
+
|
|
8661
|
+
/**
|
|
8662
|
+
* TabList extends FASTTabs and is used for constructing a fluent-tab-list custom html element.
|
|
8663
|
+
*
|
|
8664
|
+
* @class TabList component
|
|
8665
|
+
* @public
|
|
8666
|
+
*/
|
|
8667
|
+
class Tabs extends FASTTabs {
|
|
8668
|
+
constructor() {
|
|
8669
|
+
super(...arguments);
|
|
8670
|
+
/**
|
|
8671
|
+
* activeTabData
|
|
8672
|
+
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
8673
|
+
*/
|
|
8674
|
+
this.activeTabData = {
|
|
8675
|
+
x: 0,
|
|
8676
|
+
y: 0,
|
|
8677
|
+
height: 0,
|
|
8678
|
+
width: 0
|
|
8679
|
+
};
|
|
8680
|
+
/**
|
|
8681
|
+
* previousActiveTabData
|
|
8682
|
+
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
8683
|
+
*/
|
|
8684
|
+
this.previousActiveTabData = {
|
|
8685
|
+
x: 0,
|
|
8686
|
+
y: 0,
|
|
8687
|
+
height: 0,
|
|
8688
|
+
width: 0
|
|
8689
|
+
};
|
|
8690
|
+
/**
|
|
8691
|
+
* activeTabOffset
|
|
8692
|
+
* Used to position the active indicator for animations of the active indicator on active tab changes.
|
|
8693
|
+
*/
|
|
8694
|
+
this.activeTabOffset = 0;
|
|
8695
|
+
/**
|
|
8696
|
+
* activeTabScale
|
|
8697
|
+
* Used to scale the tab active indicator up or down as animations of the active indicator occur.
|
|
8698
|
+
*/
|
|
8699
|
+
this.activeTabScale = 1;
|
|
8700
|
+
/**
|
|
8701
|
+
* appearance
|
|
8702
|
+
* There are two modes of appearance: transparent and subtle.
|
|
8703
|
+
*/
|
|
8704
|
+
this.appearance = TabsAppearance.transparent;
|
|
8705
|
+
}
|
|
8706
|
+
/**
|
|
8707
|
+
* calculateAnimationProperties
|
|
8708
|
+
*
|
|
8709
|
+
* Recalculates the active tab offset and scale.
|
|
8710
|
+
* These values will be applied to css variables that control the tab active indicator position animations
|
|
8711
|
+
*/
|
|
8712
|
+
calculateAnimationProperties(tab) {
|
|
8713
|
+
this.activeTabOffset = this.getTabPosition(tab);
|
|
8714
|
+
this.activeTabScale = this.getTabScale(tab);
|
|
8715
|
+
}
|
|
8716
|
+
/**
|
|
8717
|
+
* getSelectedTabPosition - gets the x or y coordinates of the tab
|
|
8718
|
+
*/
|
|
8719
|
+
getTabPosition(tab) {
|
|
8720
|
+
if (this.orientation === TabsOrientation.horizontal) {
|
|
8721
|
+
return this.previousActiveTabData.x - (tab.getBoundingClientRect().x - this.getBoundingClientRect().x);
|
|
8722
|
+
} else return this.previousActiveTabData.y - (tab.getBoundingClientRect().y - this.getBoundingClientRect().y);
|
|
8723
|
+
}
|
|
8724
|
+
/**
|
|
8725
|
+
* getSelectedTabScale - gets the scale of the tab
|
|
8726
|
+
*/
|
|
8727
|
+
getTabScale(tab) {
|
|
8728
|
+
if (this.orientation === TabsOrientation.horizontal) {
|
|
8729
|
+
return this.previousActiveTabData.width / tab.getBoundingClientRect().width;
|
|
8730
|
+
} else return this.previousActiveTabData.height / tab.getBoundingClientRect().height;
|
|
8731
|
+
}
|
|
8732
|
+
/**
|
|
8733
|
+
* applyUpdatedCSSValues
|
|
8734
|
+
*
|
|
8735
|
+
* calculates and applies updated values to CSS variables
|
|
8736
|
+
* @param tab
|
|
8737
|
+
*/
|
|
8738
|
+
applyUpdatedCSSValues(tab) {
|
|
8739
|
+
this.calculateAnimationProperties(tab);
|
|
8740
|
+
this.setTabScaleCSSVar();
|
|
8741
|
+
this.setTabOffsetCSSVar();
|
|
8742
|
+
}
|
|
8743
|
+
/**
|
|
8744
|
+
* animationLoop
|
|
8745
|
+
* runs through all the operations required for setting the tab active indicator to its starting location, ending location, and applying the animated css class to the tab.
|
|
8746
|
+
* @param tab
|
|
8747
|
+
*/
|
|
8748
|
+
animationLoop(tab) {
|
|
8749
|
+
// remove the animated class so nothing animates yet
|
|
8750
|
+
tab.setAttribute('data-animate', 'false');
|
|
8751
|
+
// animation start - this applyUpdeatedCSSValues sets the active indicator to the location of the previously selected tab
|
|
8752
|
+
this.applyUpdatedCSSValues(tab);
|
|
8753
|
+
// changing the previously active tab allows the applyUpdatedCSSValues method to calculate the correct end to the animation.
|
|
8754
|
+
this.previousActiveTabData = this.activeTabData;
|
|
8755
|
+
// calculate and apply updated css values for animation.
|
|
8756
|
+
this.applyUpdatedCSSValues(tab);
|
|
8757
|
+
// add the css class and active indicator will animate from the previous tab location to its tab location
|
|
8758
|
+
tab.setAttribute('data-animate', 'true');
|
|
8759
|
+
}
|
|
8760
|
+
/**
|
|
8761
|
+
* setTabData
|
|
8762
|
+
* sets the data from the active tab onto the class. used for making all the animation calculations for the active tab indicator.
|
|
8763
|
+
*/
|
|
8764
|
+
setTabData() {
|
|
8765
|
+
var _a, _b, _c, _d;
|
|
8766
|
+
if (this.tabs && this.tabs.length > 0) {
|
|
8767
|
+
const tabs = this.tabs;
|
|
8768
|
+
const activeTab = this.activetab || tabs[0];
|
|
8769
|
+
const activeRect = activeTab === null || activeTab === void 0 ? void 0 : activeTab.getBoundingClientRect();
|
|
8770
|
+
const parentRect = this.getBoundingClientRect();
|
|
8771
|
+
this.activeTabData = {
|
|
8772
|
+
x: activeRect.x - parentRect.x,
|
|
8773
|
+
y: activeRect.y - parentRect.y,
|
|
8774
|
+
height: activeRect.height,
|
|
8775
|
+
width: activeRect.width
|
|
8776
|
+
};
|
|
8777
|
+
if (((_a = this.previousActiveTabData) === null || _a === void 0 ? void 0 : _a.x) !== ((_b = this.activeTabData) === null || _b === void 0 ? void 0 : _b.x) && ((_c = this.previousActiveTabData) === null || _c === void 0 ? void 0 : _c.y) !== ((_d = this.activeTabData) === null || _d === void 0 ? void 0 : _d.y)) {
|
|
8778
|
+
this.previousActiveTabData = this.activeTabData;
|
|
8779
|
+
}
|
|
8780
|
+
}
|
|
8781
|
+
}
|
|
8782
|
+
setTabOffsetCSSVar() {
|
|
8783
|
+
this.styles = css /**css*/`
|
|
8784
|
+
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`;
|
|
8785
|
+
this.$fastController.addStyles(this.styles);
|
|
8786
|
+
}
|
|
8787
|
+
setTabScaleCSSVar() {
|
|
8788
|
+
this.styles = css /**css*/`
|
|
8789
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`;
|
|
8790
|
+
this.$fastController.addStyles(this.styles);
|
|
8791
|
+
}
|
|
8792
|
+
activeidChanged(oldValue, newValue) {
|
|
8793
|
+
super.activeidChanged(oldValue, newValue);
|
|
8794
|
+
this.setTabData();
|
|
8795
|
+
if (this.activetab) {
|
|
8796
|
+
this.animationLoop(this.activetab);
|
|
8797
|
+
}
|
|
8798
|
+
}
|
|
8799
|
+
tabsChanged() {
|
|
8800
|
+
super.tabsChanged();
|
|
8801
|
+
this.setTabData();
|
|
8802
|
+
}
|
|
8803
|
+
}
|
|
8804
|
+
__decorate([attr], Tabs.prototype, "appearance", void 0);
|
|
8805
|
+
__decorate([attr({
|
|
8806
|
+
mode: 'boolean'
|
|
8807
|
+
})], Tabs.prototype, "disabled", void 0);
|
|
8808
|
+
__decorate([attr], Tabs.prototype, "size", void 0);
|
|
8809
|
+
|
|
8810
|
+
const template$3 = tabsTemplate({});
|
|
8811
|
+
|
|
8812
|
+
const styles$3 = css`
|
|
8813
|
+
${display('grid')}
|
|
8814
|
+
|
|
8815
|
+
:host{box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};color:${colorNeutralForeground2};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${borderRadiusMedium}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}:host([size='small']) ::slotted(fluent-tab){font-size:${fontSizeBase300};line-height:${lineHeightBase300};padding:${spacingVerticalSNudge} ${spacingHorizontalSNudge}}:host([size='large']) ::slotted(fluent-tab){font-size:${fontSizeBase400};line-height:${lineHeightBase400};padding:${spacingVerticalL} ${spacingHorizontalMNudge}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted(fluent-tab)::after{height:${strokeWidthThicker};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${strokeWidthThicker};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${strokeWidthThicker}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${spacingVerticalSNudge};padding-bottom:${spacingVerticalSNudge}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${spacingVerticalXXS};padding-bottom:${spacingVerticalXXS}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${spacingVerticalS};padding-bottom:${spacingVerticalS}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalSNudge};left:${spacingHorizontalSNudge}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalMNudge};left:${spacingHorizontalMNudge}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${spacingHorizontalMNudge};left:${spacingHorizontalMNudge}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalSNudge};bottom:${spacingVerticalSNudge}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalS};bottom:${spacingVerticalS}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${spacingVerticalMNudge};bottom:${spacingVerticalMNudge}}`;
|
|
8816
|
+
|
|
8817
|
+
const definition$3 = Tabs.compose({
|
|
8818
|
+
name: `${FluentDesignSystem.prefix}-tabs`,
|
|
8819
|
+
template: template$3,
|
|
8820
|
+
styles: styles$3
|
|
8821
|
+
});
|
|
8822
|
+
|
|
8823
|
+
/**
|
|
8824
|
+
* Tab extends the FASTTab and is a child of the TabList
|
|
8825
|
+
*/
|
|
8826
|
+
class Tab extends FASTTab {
|
|
8827
|
+
connectedCallback() {
|
|
8828
|
+
super.connectedCallback();
|
|
8829
|
+
if (this.styles !== undefined) {
|
|
8830
|
+
this.$fastController.removeStyles(this.styles);
|
|
8831
|
+
}
|
|
8832
|
+
this.styles = css /**css*/`
|
|
8833
|
+
:host{--textContent:'${this.textContent}'}`;
|
|
8834
|
+
this.$fastController.addStyles(this.styles);
|
|
8835
|
+
}
|
|
8836
|
+
}
|
|
8837
|
+
|
|
8838
|
+
function tabTemplate(options = {}) {
|
|
8839
|
+
return html`<template slot="tab" role="tab" aria-disabled="${x => x.disabled}">${startSlotTemplate(options)}<span class="tab-content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
8840
|
+
}
|
|
8841
|
+
const template$2 = tabTemplate({});
|
|
8842
|
+
|
|
8843
|
+
const styles$2 = css`
|
|
8844
|
+
${display('inline-flex')}
|
|
8845
|
+
|
|
8846
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-size:${fontSizeBase300};color:${colorNeutralForeground2};fill:currentcolor;grid-row:1;padding:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${colorNeutralForeground1};font-weight:${fontWeightSemibold}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${lineHeightBase300};font-weight:${fontWeightSemibold}}:host([aria-selected='true'])::after{background-color:${colorCompoundBrandStroke};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${colorNeutralStroke1Hover};border-radius:${borderRadiusCircular};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${colorNeutralForegroundDisabled}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${colorNeutralForegroundDisabled};color:${colorNeutralForegroundDisabled}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${borderRadiusSmall};box-shadow:0 0 0 3px ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}`;
|
|
8847
|
+
|
|
8848
|
+
const definition$2 = Tab.compose({
|
|
8849
|
+
name: `${FluentDesignSystem.prefix}-tab`,
|
|
8850
|
+
template: template$2,
|
|
8851
|
+
styles: styles$2
|
|
8852
|
+
});
|
|
8853
|
+
|
|
8854
|
+
class TabPanel extends FASTTabPanel {}
|
|
8855
|
+
|
|
8856
|
+
const template$1 = tabPanelTemplate();
|
|
8857
|
+
|
|
8858
|
+
const styles$1 = css`
|
|
8859
|
+
${display('block')}
|
|
8860
|
+
|
|
8861
|
+
:host{box-sizing:border-box;padding:${spacingHorizontalM} ${spacingHorizontalMNudge}}`;
|
|
8862
|
+
|
|
8863
|
+
const definition$1 = TabPanel.compose({
|
|
8864
|
+
name: `${FluentDesignSystem.prefix}-tab-panel`,
|
|
8224
8865
|
template: template$1,
|
|
8225
8866
|
styles: styles$1
|
|
8226
8867
|
});
|
|
@@ -8391,4 +9032,4 @@ const setTheme = theme => {
|
|
|
8391
9032
|
}
|
|
8392
9033
|
};
|
|
8393
9034
|
|
|
8394
|
-
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$a as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$a as AvatarStyles, template$a as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$9 as BadgeDefinition, BadgeShape, BadgeSize, styles$9 as BadgeStyles, template$9 as BadgeTemplate, Button, ButtonAppearance, definition$8 as ButtonDefinition, ButtonShape, ButtonSize, styles$8 as ButtonStyles, template$8 as ButtonTemplate, 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$c as accordionDefinition, definition$b as accordionItemDefinition, styles$b as accordionItemStyles, template$b as accordionItemTemplate, styles$c as accordionStyles, template$c 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 };
|
|
9035
|
+
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$f as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$e as AvatarStyles, template$f as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$e as BadgeDefinition, BadgeShape, BadgeSize, styles$d as BadgeStyles, template$e as BadgeTemplate, Button, ButtonAppearance, definition$d as ButtonDefinition, ButtonShape, ButtonSize, styles$c as ButtonStyles, template$d as ButtonTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$c as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$b as CounterBadgeStyles, template$c as CounterBadgeTemplate, Divider, DividerAlignContent, DividerAppearance, definition$b as DividerDefinition, DividerOrientation, DividerRole, styles$a as DividerStyles, template$b as DividerTemplate, Image, definition$a as ImageDefinition, ImageFit, ImageShape, styles$9 as ImageStyles, template$a as ImageTemplate, Label, definition$9 as LabelDefinition, styles$8 as LabelStyles, template$9 as LabelTemplate, MenuButton, MenuButtonAppearance, definition$8 as MenuButtonDefinition, MenuButtonShape, MenuButtonSize, styles$c as MenuButtonStyles, template$8 as MenuButtonTemplate, ProgressBar, definition$7 as ProgressBarDefinition, ProgressBarShape, styles$7 as ProgressBarStyles, template$7 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Slider, definition$6 as SliderDefinition, SliderOrientation, SliderSize, styles$6 as SliderStyles, template$6 as SliderTemplate, Spinner, SpinnerAppearance, definition$5 as SpinnerDefinition, SpinnerSize, styles$5 as SpinnerStyles, template$5 as SpinnerTemplate, Switch, SwitchLabelPosition, Tab, definition$2 as TabDefinition, TabPanel, definition$1 as TabPanelDefinition, styles$1 as TabPanelStyles, template$1 as TabPanelTemplate, styles$2 as TabStyles, template$2 as TabTemplate, Tabs, TabsAppearance, definition$3 as TabsDefinition, TabsOrientation, TabsSize, styles$3 as TabsStyles, template$3 as TabsTemplate, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$h as accordionDefinition, definition$g as accordionItemDefinition, styles$f as accordionItemStyles, template$g as accordionItemTemplate, styles$g as accordionStyles, template$h 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$4 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$4 as switchStyles, template$4 as switchTemplate };
|