@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.
Files changed (109) hide show
  1. package/CHANGELOG.json +45 -1
  2. package/CHANGELOG.md +21 -2
  3. package/dist/dts/index.d.ts +5 -0
  4. package/dist/dts/label/define.d.ts +1 -0
  5. package/dist/dts/label/index.d.ts +4 -0
  6. package/dist/dts/label/label.d.ts +42 -0
  7. package/dist/dts/label/label.definition.d.ts +10 -0
  8. package/dist/dts/label/label.options.d.ts +26 -0
  9. package/dist/dts/label/label.styles.d.ts +4 -0
  10. package/dist/dts/label/label.template.d.ts +8 -0
  11. package/dist/dts/menu-button/define.d.ts +1 -0
  12. package/dist/dts/menu-button/index.d.ts +5 -0
  13. package/dist/dts/menu-button/menu-button.d.ts +7 -0
  14. package/dist/dts/menu-button/menu-button.definition.d.ts +10 -0
  15. package/dist/dts/menu-button/menu-button.options.d.ts +46 -0
  16. package/dist/dts/menu-button/menu-button.template.d.ts +7 -0
  17. package/dist/dts/tab/define.d.ts +1 -0
  18. package/dist/dts/tab/index.d.ts +4 -0
  19. package/dist/dts/tab/tab.d.ts +8 -0
  20. package/dist/dts/tab/tab.definition.d.ts +2 -0
  21. package/dist/dts/tab/tab.styles.d.ts +1 -0
  22. package/dist/dts/tab/tab.template.d.ts +4 -0
  23. package/dist/dts/tab-panel/define.d.ts +1 -0
  24. package/dist/dts/tab-panel/index.d.ts +4 -0
  25. package/dist/dts/tab-panel/tab-panel.d.ts +3 -0
  26. package/dist/dts/tab-panel/tab-panel.definition.d.ts +2 -0
  27. package/dist/dts/tab-panel/tab-panel.styles.d.ts +1 -0
  28. package/dist/dts/tab-panel/tab-panel.template.d.ts +1 -0
  29. package/dist/dts/tabs/define.d.ts +1 -0
  30. package/dist/dts/tabs/index.d.ts +5 -0
  31. package/dist/dts/tabs/tabs.d.ts +88 -0
  32. package/dist/dts/tabs/tabs.definition.d.ts +2 -0
  33. package/dist/dts/tabs/tabs.options.d.ts +14 -0
  34. package/dist/dts/tabs/tabs.styles.d.ts +1 -0
  35. package/dist/dts/tabs/tabs.template.d.ts +1 -0
  36. package/dist/esm/button/button.styles.js +2 -0
  37. package/dist/esm/button/button.styles.js.map +1 -1
  38. package/dist/esm/index.js +5 -0
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/esm/label/define.js +4 -0
  41. package/dist/esm/label/define.js.map +1 -0
  42. package/dist/esm/label/index.js +5 -0
  43. package/dist/esm/label/index.js.map +1 -0
  44. package/dist/esm/label/label.definition.js +18 -0
  45. package/dist/esm/label/label.definition.js.map +1 -0
  46. package/dist/esm/label/label.js +40 -0
  47. package/dist/esm/label/label.js.map +1 -0
  48. package/dist/esm/label/label.options.js +16 -0
  49. package/dist/esm/label/label.options.js.map +1 -0
  50. package/dist/esm/label/label.styles.js +38 -0
  51. package/dist/esm/label/label.styles.js.map +1 -0
  52. package/dist/esm/label/label.template.js +13 -0
  53. package/dist/esm/label/label.template.js.map +1 -0
  54. package/dist/esm/menu-button/define.js +4 -0
  55. package/dist/esm/menu-button/define.js.map +1 -0
  56. package/dist/esm/menu-button/index.js +6 -0
  57. package/dist/esm/menu-button/index.js.map +1 -0
  58. package/dist/esm/menu-button/menu-button.definition.js +21 -0
  59. package/dist/esm/menu-button/menu-button.definition.js.map +1 -0
  60. package/dist/esm/menu-button/menu-button.js +8 -0
  61. package/dist/esm/menu-button/menu-button.js.map +1 -0
  62. package/dist/esm/menu-button/menu-button.options.js +17 -0
  63. package/dist/esm/menu-button/menu-button.options.js.map +1 -0
  64. package/dist/esm/menu-button/menu-button.template.js +10 -0
  65. package/dist/esm/menu-button/menu-button.template.js.map +1 -0
  66. package/dist/esm/tab/define.js +4 -0
  67. package/dist/esm/tab/define.js.map +1 -0
  68. package/dist/esm/tab/index.js +5 -0
  69. package/dist/esm/tab/index.js.map +1 -0
  70. package/dist/esm/tab/tab.definition.js +10 -0
  71. package/dist/esm/tab/tab.definition.js.map +1 -0
  72. package/dist/esm/tab/tab.js +20 -0
  73. package/dist/esm/tab/tab.js.map +1 -0
  74. package/dist/esm/tab/tab.styles.js +94 -0
  75. package/dist/esm/tab/tab.styles.js.map +1 -0
  76. package/dist/esm/tab/tab.template.js +13 -0
  77. package/dist/esm/tab/tab.template.js.map +1 -0
  78. package/dist/esm/tab-panel/define.js +4 -0
  79. package/dist/esm/tab-panel/define.js.map +1 -0
  80. package/dist/esm/tab-panel/index.js +5 -0
  81. package/dist/esm/tab-panel/index.js.map +1 -0
  82. package/dist/esm/tab-panel/tab-panel.definition.js +10 -0
  83. package/dist/esm/tab-panel/tab-panel.definition.js.map +1 -0
  84. package/dist/esm/tab-panel/tab-panel.js +4 -0
  85. package/dist/esm/tab-panel/tab-panel.js.map +1 -0
  86. package/dist/esm/tab-panel/tab-panel.styles.js +12 -0
  87. package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -0
  88. package/dist/esm/tab-panel/tab-panel.template.js +3 -0
  89. package/dist/esm/tab-panel/tab-panel.template.js.map +1 -0
  90. package/dist/esm/tabs/define.js +4 -0
  91. package/dist/esm/tabs/define.js.map +1 -0
  92. package/dist/esm/tabs/index.js +6 -0
  93. package/dist/esm/tabs/index.js.map +1 -0
  94. package/dist/esm/tabs/tabs.definition.js +10 -0
  95. package/dist/esm/tabs/tabs.definition.js.map +1 -0
  96. package/dist/esm/tabs/tabs.js +158 -0
  97. package/dist/esm/tabs/tabs.js.map +1 -0
  98. package/dist/esm/tabs/tabs.options.js +12 -0
  99. package/dist/esm/tabs/tabs.options.js.map +1 -0
  100. package/dist/esm/tabs/tabs.styles.js +230 -0
  101. package/dist/esm/tabs/tabs.styles.js.map +1 -0
  102. package/dist/esm/tabs/tabs.template.js +3 -0
  103. package/dist/esm/tabs/tabs.template.js.map +1 -0
  104. package/dist/fluent-web-components.api.json +1318 -39
  105. package/dist/web-components.d.ts +302 -2
  106. package/dist/web-components.js +701 -60
  107. package/dist/web-components.min.js +151 -136
  108. package/docs/api-report.md +140 -3
  109. package/package.json +12 -4
@@ -0,0 +1,38 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { colorNeutralForeground1, colorNeutralForegroundDisabled, colorPaletteRedForeground1, fontFamilyBase, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontWeightRegular, fontWeightSemibold, lineHeightBase200, lineHeightBase300, lineHeightBase400, spacingHorizontalXS, } from '../theme/design-tokens.js';
4
+ /** Label styles
5
+ * @public
6
+ */
7
+ export const styles = css `
8
+ ${display('flex')}
9
+
10
+ :host {
11
+ font-family: ${fontFamilyBase};
12
+ font-size: ${fontSizeBase300};
13
+ line-height: ${lineHeightBase300};
14
+ font-weight: ${fontWeightRegular};
15
+ color: ${colorNeutralForeground1};
16
+ }
17
+ .asterisk {
18
+ color: ${colorPaletteRedForeground1};
19
+ margin-left: ${spacingHorizontalXS};
20
+ }
21
+ :host([size='small']) {
22
+ font-size: ${fontSizeBase200};
23
+ line-height: ${lineHeightBase200};
24
+ }
25
+ :host([size='large']) {
26
+ font-size: ${fontSizeBase400};
27
+ line-height: ${lineHeightBase400};
28
+ font-weight: ${fontWeightSemibold};
29
+ }
30
+ :host([weight='semibold']) {
31
+ font-weight: ${fontWeightSemibold};
32
+ }
33
+ :host([disabled]),
34
+ :host([disabled]) .asterisk {
35
+ color: ${colorNeutralForegroundDisabled};
36
+ }
37
+ `;
38
+ //# sourceMappingURL=label.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.styles.js","sourceRoot":"","sources":["../../../src/label/label.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;mBAGA,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;aACvB,uBAAuB;;;aAGvB,0BAA0B;mBACpB,mBAAmB;;;iBAGrB,eAAe;mBACb,iBAAiB;;;iBAGnB,eAAe;mBACb,iBAAiB;mBACjB,kBAAkB;;;mBAGlB,kBAAkB;;;;aAIxB,8BAA8B;;CAE1C,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ /**
3
+ * The template for the Fluent label web-component.
4
+ * @public
5
+ */
6
+ export function labelTemplate() {
7
+ return html `
8
+ <slot></slot>
9
+ <span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>
10
+ `;
11
+ }
12
+ export const template = labelTemplate();
13
+ //# sourceMappingURL=label.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.template.js","sourceRoot":"","sources":["../../../src/label/label.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpE;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,IAAI,CAAG;;sDAEsC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ;GACnE,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAA+B,aAAa,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './menu-button.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/menu-button/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './menu-button.js';
2
+ export * from './menu-button.options.js';
3
+ export { template as MenuButtonTemplate } from './menu-button.template.js';
4
+ export { styles as MenuButtonStyles } from '../button/button.styles.js';
5
+ export { definition as MenuButtonDefinition } from './menu-button.definition.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu-button/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { styles } from '../button/button.styles.js';
3
+ import { MenuButton } from './menu-button.js';
4
+ import { template } from './menu-button.template.js';
5
+ /**
6
+ * The Fluent Menu Button Element. Implements {@link @microsoft/fast-foundation#Button },
7
+ * {@link @microsoft/fast-foundation#buttonTemplate}
8
+ *
9
+ * @public
10
+ * @remarks
11
+ * HTML Element: \<fluent-button\>
12
+ */
13
+ export const definition = MenuButton.compose({
14
+ name: `${FluentDesignSystem.prefix}-menu-button`,
15
+ template,
16
+ styles,
17
+ shadowOptions: {
18
+ delegatesFocus: true,
19
+ },
20
+ });
21
+ //# sourceMappingURL=menu-button.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-button.definition.js","sourceRoot":"","sources":["../../../src/menu-button/menu-button.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC;IAC3C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,cAAc;IAChD,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACb,cAAc,EAAE,IAAI;KACrB;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Button } from '../button/button.js';
2
+ /**
3
+ * The base class used for constructing a fluent-menu-button custom element
4
+ * @public
5
+ */
6
+ export class MenuButton extends Button {
7
+ }
8
+ //# sourceMappingURL=menu-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-button.js","sourceRoot":"","sources":["../../../src/menu-button/menu-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM;CAAG"}
@@ -0,0 +1,17 @@
1
+ import { ButtonAppearance, ButtonShape, ButtonSize } from '../button/button.options.js';
2
+ /**
3
+ * Menu Button Appearance constants
4
+ * @public
5
+ */
6
+ export const MenuButtonAppearance = ButtonAppearance;
7
+ /**
8
+ * A Menu Button can be square, circular or rounded.
9
+ * @public
10
+ */
11
+ export const MenuButtonShape = ButtonShape;
12
+ /**
13
+ * A Menu Button can be a size of small, medium or large.
14
+ * @public
15
+ */
16
+ export const MenuButtonSize = ButtonSize;
17
+ //# sourceMappingURL=menu-button.options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-button.options.js","sourceRoot":"","sources":["../../../src/menu-button/menu-button.options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAExF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAQrD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAQ3C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ import { buttonTemplate } from '@microsoft/fast-foundation';
3
+ /**
4
+ * The template for the Button component.
5
+ * @public
6
+ */
7
+ export const template = buttonTemplate({
8
+ 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>`),
9
+ });
10
+ //# sourceMappingURL=menu-button.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-button.template.js","sourceRoot":"","sources":["../../../src/menu-button/menu-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAoC,cAAc,CAAa;IAClF,GAAG,EAAE,IAAI,CAAC,OAAO,CACf,ySAAyS,CAC1S;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './tab.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/tab/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './tab.js';
2
+ export { template as TabTemplate } from './tab.template.js';
3
+ export { styles as TabStyles } from './tab.styles.js';
4
+ export { definition as TabDefinition } from './tab.definition.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tab/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { Tab } from './tab.js';
3
+ import { template } from './tab.template.js';
4
+ import { styles } from './tab.styles.js';
5
+ export const definition = Tab.compose({
6
+ name: `${FluentDesignSystem.prefix}-tab`,
7
+ template,
8
+ styles,
9
+ });
10
+ //# sourceMappingURL=tab.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.definition.js","sourceRoot":"","sources":["../../../src/tab/tab.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC;IACpC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,MAAM;IACxC,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { FASTTab } from '@microsoft/fast-foundation';
3
+ /**
4
+ * Tab extends the FASTTab and is a child of the TabList
5
+ */
6
+ export class Tab extends FASTTab {
7
+ connectedCallback() {
8
+ super.connectedCallback();
9
+ if (this.styles !== undefined) {
10
+ this.$fastController.removeStyles(this.styles);
11
+ }
12
+ this.styles = css /**css*/ `
13
+ :host {
14
+ --textContent: '${this.textContent}';
15
+ }
16
+ `;
17
+ this.$fastController.addStyles(this.styles);
18
+ }
19
+ }
20
+ //# sourceMappingURL=tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.js","sourceRoot":"","sources":["../../../src/tab/tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAiB,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAG9B,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;YAC7B,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAChD;QAED,IAAI,CAAC,MAAM,GAAG,GAAG,CAAA,QAAQ,CAAC;;0BAEJ,IAAI,CAAC,WAAkB;;KAE5C,CAAC;QAEF,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF"}
@@ -0,0 +1,94 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { borderRadiusCircular, borderRadiusMedium, borderRadiusSmall, colorCompoundBrandStroke, colorNeutralForeground1, colorNeutralForeground2, colorNeutralForegroundDisabled, colorNeutralStroke1Hover, colorStrokeFocus1, colorStrokeFocus2, fontFamilyBase, fontSizeBase300, fontWeightSemibold, lineHeightBase300, spacingHorizontalM, spacingHorizontalMNudge, } from '../theme/design-tokens.js';
4
+ export const styles = css `
5
+ ${display('inline-flex')}
6
+
7
+ :host {
8
+ position: relative;
9
+ flex-direction: column;
10
+ cursor: pointer;
11
+ box-sizing: border-box;
12
+ justify-content: center;
13
+ line-height: ${lineHeightBase300};
14
+ font-family: ${fontFamilyBase};
15
+ font-size: ${fontSizeBase300};
16
+ color: ${colorNeutralForeground2};
17
+ fill: currentcolor;
18
+ grid-row: 1;
19
+ padding: ${spacingHorizontalM} ${spacingHorizontalMNudge};
20
+ border-radius: ${borderRadiusMedium};
21
+ }
22
+ :host .tab-content {
23
+ display: inline-flex;
24
+ flex-direction: column;
25
+ padding: 0 2px;
26
+ }
27
+
28
+ :host([aria-selected='true']) {
29
+ color: ${colorNeutralForeground1};
30
+ font-weight: ${fontWeightSemibold};
31
+ }
32
+
33
+ /* adds hidden textContent to prevent shifting ui on bold / unbolding of text */
34
+ :host .tab-content::after {
35
+ content: var(--textContent);
36
+ visibility: hidden;
37
+ height: 0;
38
+ line-height: ${lineHeightBase300};
39
+ font-weight: ${fontWeightSemibold};
40
+ }
41
+
42
+ :host([aria-selected='true'])::after {
43
+ background-color: ${colorCompoundBrandStroke};
44
+ border-radius: ${borderRadiusCircular};
45
+ content: '';
46
+ inset: 0;
47
+ position: absolute;
48
+ z-index: 2;
49
+ }
50
+
51
+ :host([aria-selected='false']:hover)::after {
52
+ background-color: ${colorNeutralStroke1Hover};
53
+ border-radius: ${borderRadiusCircular};
54
+ content: '';
55
+ inset: 0;
56
+ position: absolute;
57
+ z-index: 1;
58
+ }
59
+
60
+ :host([aria-selected='true'][disabled])::after {
61
+ background-color: ${colorNeutralForegroundDisabled};
62
+ }
63
+
64
+ ::slotted([slot='start']),
65
+ ::slotted([slot='end']) {
66
+ display: flex;
67
+ }
68
+ ::slotted([slot='start']) {
69
+ margin-inline-end: 11px;
70
+ }
71
+ ::slotted([slot='end']) {
72
+ margin-inline-start: 11px;
73
+ }
74
+ :host([disabled]) {
75
+ cursor: not-allowed;
76
+ fill: ${colorNeutralForegroundDisabled};
77
+ color: ${colorNeutralForegroundDisabled};
78
+ }
79
+
80
+ :host([disabled]:hover)::after {
81
+ background-color: unset;
82
+ }
83
+
84
+ :host(:focus) {
85
+ outline: none;
86
+ }
87
+
88
+ :host(:focus-visible) {
89
+ border-radius: ${borderRadiusSmall};
90
+ box-shadow: 0 0 0 3px ${colorStrokeFocus2};
91
+ outline: 1px solid ${colorStrokeFocus1};
92
+ }
93
+ `;
94
+ //# sourceMappingURL=tab.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.styles.js","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,aAAa,CAAC;;;;;;;;mBAQP,iBAAiB;mBACjB,cAAc;iBAChB,eAAe;aACnB,uBAAuB;;;eAGrB,kBAAkB,IAAI,uBAAuB;qBACvC,kBAAkB;;;;;;;;;aAS1B,uBAAuB;mBACjB,kBAAkB;;;;;;;;mBAQlB,iBAAiB;mBACjB,kBAAkB;;;;wBAIb,wBAAwB;qBAC3B,oBAAoB;;;;;;;;wBAQjB,wBAAwB;qBAC3B,oBAAoB;;;;;;;;wBAQjB,8BAA8B;;;;;;;;;;;;;;;YAe1C,8BAA8B;aAC7B,8BAA8B;;;;;;;;;;;;qBAYtB,iBAAiB;4BACV,iBAAiB;yBACpB,iBAAiB;;CAEzC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { endSlotTemplate, startSlotTemplate } from '@microsoft/fast-foundation';
2
+ import { html } from '@microsoft/fast-element';
3
+ export function tabTemplate(options = {}) {
4
+ return html `
5
+ <template slot="tab" role="tab" aria-disabled="${x => x.disabled}">
6
+ ${startSlotTemplate(options)}
7
+ <span class="tab-content"><slot></slot></span>
8
+ ${endSlotTemplate(options)}
9
+ </template>
10
+ `;
11
+ }
12
+ export const template = tabTemplate({});
13
+ //# sourceMappingURL=tab.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.template.js","sourceRoot":"","sources":["../../../src/tab/tab.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAW,iBAAiB,EAAc,MAAM,4BAA4B,CAAC;AACrG,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,UAAU,WAAW,CAAoB,UAAsB,EAAE;IACrE,OAAO,IAAI,CAAG;qDACqC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;QAC5D,iBAAiB,CAAC,OAAO,CAAC;;QAE1B,eAAe,CAAC,OAAO,CAAC;;GAE7B,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './tab-panel.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/tab-panel/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './tab-panel.js';
2
+ export { template as TabPanelTemplate } from './tab-panel.template.js';
3
+ export { styles as TabPanelStyles } from './tab-panel.styles.js';
4
+ export { definition as TabPanelDefinition } from './tab-panel.definition.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tab-panel/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { TabPanel } from './tab-panel.js';
3
+ import { template } from './tab-panel.template.js';
4
+ import { styles } from './tab-panel.styles.js';
5
+ export const definition = TabPanel.compose({
6
+ name: `${FluentDesignSystem.prefix}-tab-panel`,
7
+ template,
8
+ styles,
9
+ });
10
+ //# sourceMappingURL=tab-panel.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.definition.js","sourceRoot":"","sources":["../../../src/tab-panel/tab-panel.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC;IACzC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,YAAY;IAC9C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FASTTabPanel } from '@microsoft/fast-foundation';
2
+ export class TabPanel extends FASTTabPanel {
3
+ }
4
+ //# sourceMappingURL=tab-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.js","sourceRoot":"","sources":["../../../src/tab-panel/tab-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,QAAS,SAAQ,YAAY;CAAG"}
@@ -0,0 +1,12 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { spacingHorizontalM, spacingHorizontalMNudge } from '../theme/design-tokens.js';
4
+ export const styles = css `
5
+ ${display('block')}
6
+
7
+ :host {
8
+ box-sizing: border-box;
9
+ padding: ${spacingHorizontalM} ${spacingHorizontalMNudge};
10
+ }
11
+ `;
12
+ //# sourceMappingURL=tab-panel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.styles.js","sourceRoot":"","sources":["../../../src/tab-panel/tab-panel.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAExF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;;eAIL,kBAAkB,IAAI,uBAAuB;;CAE3D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { tabPanelTemplate } from '@microsoft/fast-foundation';
2
+ export const template = tabPanelTemplate();
3
+ //# sourceMappingURL=tab-panel.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.template.js","sourceRoot":"","sources":["../../../src/tab-panel/tab-panel.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './tabs.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/tabs/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './tabs.js';
2
+ export * from './tabs.options.js';
3
+ export { template as TabsTemplate } from './tabs.template.js';
4
+ export { styles as TabsStyles } from './tabs.styles.js';
5
+ export { definition as TabsDefinition } from './tabs.definition.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { Tabs } from './tabs.js';
3
+ import { template } from './tabs.template.js';
4
+ import { styles } from './tabs.styles.js';
5
+ export const definition = Tabs.compose({
6
+ name: `${FluentDesignSystem.prefix}-tabs`,
7
+ template,
8
+ styles,
9
+ });
10
+ //# sourceMappingURL=tabs.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.definition.js","sourceRoot":"","sources":["../../../src/tabs/tabs.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IACrC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,OAAO;IACzC,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
@@ -0,0 +1,158 @@
1
+ import { __decorate } from "tslib";
2
+ import { attr, css } from '@microsoft/fast-element';
3
+ import { FASTTabs, TabsOrientation } from '@microsoft/fast-foundation';
4
+ import { TabsAppearance } from './tabs.options.js';
5
+ /**
6
+ * TabList extends FASTTabs and is used for constructing a fluent-tab-list custom html element.
7
+ *
8
+ * @class TabList component
9
+ * @public
10
+ */
11
+ export class Tabs extends FASTTabs {
12
+ constructor() {
13
+ super(...arguments);
14
+ /**
15
+ * activeTabData
16
+ * The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
17
+ */
18
+ this.activeTabData = { x: 0, y: 0, height: 0, width: 0 };
19
+ /**
20
+ * previousActiveTabData
21
+ * The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
22
+ */
23
+ this.previousActiveTabData = { x: 0, y: 0, height: 0, width: 0 };
24
+ /**
25
+ * activeTabOffset
26
+ * Used to position the active indicator for animations of the active indicator on active tab changes.
27
+ */
28
+ this.activeTabOffset = 0;
29
+ /**
30
+ * activeTabScale
31
+ * Used to scale the tab active indicator up or down as animations of the active indicator occur.
32
+ */
33
+ this.activeTabScale = 1;
34
+ /**
35
+ * appearance
36
+ * There are two modes of appearance: transparent and subtle.
37
+ */
38
+ this.appearance = TabsAppearance.transparent;
39
+ }
40
+ /**
41
+ * calculateAnimationProperties
42
+ *
43
+ * Recalculates the active tab offset and scale.
44
+ * These values will be applied to css variables that control the tab active indicator position animations
45
+ */
46
+ calculateAnimationProperties(tab) {
47
+ this.activeTabOffset = this.getTabPosition(tab);
48
+ this.activeTabScale = this.getTabScale(tab);
49
+ }
50
+ /**
51
+ * getSelectedTabPosition - gets the x or y coordinates of the tab
52
+ */
53
+ getTabPosition(tab) {
54
+ if (this.orientation === TabsOrientation.horizontal) {
55
+ return this.previousActiveTabData.x - (tab.getBoundingClientRect().x - this.getBoundingClientRect().x);
56
+ }
57
+ else
58
+ return this.previousActiveTabData.y - (tab.getBoundingClientRect().y - this.getBoundingClientRect().y);
59
+ }
60
+ /**
61
+ * getSelectedTabScale - gets the scale of the tab
62
+ */
63
+ getTabScale(tab) {
64
+ if (this.orientation === TabsOrientation.horizontal) {
65
+ return this.previousActiveTabData.width / tab.getBoundingClientRect().width;
66
+ }
67
+ else
68
+ return this.previousActiveTabData.height / tab.getBoundingClientRect().height;
69
+ }
70
+ /**
71
+ * applyUpdatedCSSValues
72
+ *
73
+ * calculates and applies updated values to CSS variables
74
+ * @param tab
75
+ */
76
+ applyUpdatedCSSValues(tab) {
77
+ this.calculateAnimationProperties(tab);
78
+ this.setTabScaleCSSVar();
79
+ this.setTabOffsetCSSVar();
80
+ }
81
+ /**
82
+ * animationLoop
83
+ * 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.
84
+ * @param tab
85
+ */
86
+ animationLoop(tab) {
87
+ // remove the animated class so nothing animates yet
88
+ tab.setAttribute('data-animate', 'false');
89
+ // animation start - this applyUpdeatedCSSValues sets the active indicator to the location of the previously selected tab
90
+ this.applyUpdatedCSSValues(tab);
91
+ // changing the previously active tab allows the applyUpdatedCSSValues method to calculate the correct end to the animation.
92
+ this.previousActiveTabData = this.activeTabData;
93
+ // calculate and apply updated css values for animation.
94
+ this.applyUpdatedCSSValues(tab);
95
+ // add the css class and active indicator will animate from the previous tab location to its tab location
96
+ tab.setAttribute('data-animate', 'true');
97
+ }
98
+ /**
99
+ * setTabData
100
+ * sets the data from the active tab onto the class. used for making all the animation calculations for the active tab indicator.
101
+ */
102
+ setTabData() {
103
+ var _a, _b, _c, _d;
104
+ if (this.tabs && this.tabs.length > 0) {
105
+ const tabs = this.tabs;
106
+ const activeTab = this.activetab || tabs[0];
107
+ const activeRect = activeTab === null || activeTab === void 0 ? void 0 : activeTab.getBoundingClientRect();
108
+ const parentRect = this.getBoundingClientRect();
109
+ this.activeTabData = {
110
+ x: activeRect.x - parentRect.x,
111
+ y: activeRect.y - parentRect.y,
112
+ height: activeRect.height,
113
+ width: activeRect.width,
114
+ };
115
+ if (((_a = this.previousActiveTabData) === null || _a === void 0 ? void 0 : _a.x) !== ((_b = this.activeTabData) === null || _b === void 0 ? void 0 : _b.x) &&
116
+ ((_c = this.previousActiveTabData) === null || _c === void 0 ? void 0 : _c.y) !== ((_d = this.activeTabData) === null || _d === void 0 ? void 0 : _d.y)) {
117
+ this.previousActiveTabData = this.activeTabData;
118
+ }
119
+ }
120
+ }
121
+ setTabOffsetCSSVar() {
122
+ this.styles = css /**css*/ `
123
+ :host {
124
+ --tabIndicatorOffset: ${this.activeTabOffset.toString()}px;
125
+ }
126
+ `;
127
+ this.$fastController.addStyles(this.styles);
128
+ }
129
+ setTabScaleCSSVar() {
130
+ this.styles = css /**css*/ `
131
+ :host {
132
+ --tabIndicatorScale: ${this.activeTabScale.toString()};
133
+ }
134
+ `;
135
+ this.$fastController.addStyles(this.styles);
136
+ }
137
+ activeidChanged(oldValue, newValue) {
138
+ super.activeidChanged(oldValue, newValue);
139
+ this.setTabData();
140
+ if (this.activetab) {
141
+ this.animationLoop(this.activetab);
142
+ }
143
+ }
144
+ tabsChanged() {
145
+ super.tabsChanged();
146
+ this.setTabData();
147
+ }
148
+ }
149
+ __decorate([
150
+ attr
151
+ ], Tabs.prototype, "appearance", void 0);
152
+ __decorate([
153
+ attr({ mode: 'boolean' })
154
+ ], Tabs.prototype, "disabled", void 0);
155
+ __decorate([
156
+ attr
157
+ ], Tabs.prototype, "size", void 0);
158
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/tabs/tabs.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ import { TabsOrientation } from '@microsoft/fast-foundation';
2
+ export const TabsAppearance = {
3
+ subtle: 'subtle',
4
+ transparent: 'transparent',
5
+ };
6
+ export const TabsSize = {
7
+ small: 'small',
8
+ medium: 'medium',
9
+ large: 'large',
10
+ };
11
+ export { TabsOrientation };
12
+ //# sourceMappingURL=tabs.options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.options.js","sourceRoot":"","sources":["../../../src/tabs/tabs.options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;CAClB,CAAC;AAIX,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,OAAO,EAAE,eAAe,EAAE,CAAC"}