diff --git a/change/@fluentui-web-components-b79350c6-45b4-4047-b3cb-bdd2f3913561.json b/change/@fluentui-web-components-b79350c6-45b4-4047-b3cb-bdd2f3913561.json new file mode 100644 index 0000000000000..3ae947b76d1f1 --- /dev/null +++ b/change/@fluentui-web-components-b79350c6-45b4-4047-b3cb-bdd2f3913561.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "fix(web-components): remove all barrell exports with exception of design tokens", + "packageName": "@fluentui/web-components", + "email": "=", + "dependentChangeType": "patch" +} diff --git a/packages/web-components/docs/api-report.md b/packages/web-components/docs/api-report.md index 0c01414777db9..39dce2abc5cc9 100644 --- a/packages/web-components/docs/api-report.md +++ b/packages/web-components/docs/api-report.md @@ -5,6 +5,7 @@ ```ts import type { Constructable } from '@microsoft/fast-element'; +import { CSSDirective } from '@microsoft/fast-element'; import { Direction } from '@microsoft/fast-web-utilities'; import { ElementStyles } from '@microsoft/fast-element'; import { ElementViewTemplate } from '@microsoft/fast-element'; @@ -21,7 +22,6 @@ import type { Theme } from '@fluentui/tokens'; export class Accordion extends FASTElement { // (undocumented) protected accordionItems: Element[]; - // Warning: (ae-forgotten-export) The symbol "AccordionExpandMode" needs to be exported by the entry point index.d.ts expandmode: AccordionExpandMode; // (undocumented) expandmodeChanged(prev: AccordionExpandMode, next: AccordionExpandMode): void; @@ -36,6 +36,17 @@ export class Accordion extends FASTElement { // @public (undocumented) export const accordionDefinition: FASTElementDefinition; +// @public +export const AccordionExpandMode: { + readonly single: "single"; + readonly multi: "multi"; +}; + +// Warning: (ae-forgotten-export) The symbol "ValuesOf" needs to be exported by the entry point index.d.ts +// +// @public +export type AccordionExpandMode = ValuesOf; + // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "AccordionItem" because one of its declarations is marked as @internal // // @public @@ -68,8 +79,6 @@ export const AccordionItemExpandIconPosition: { readonly end: "end"; }; -// Warning: (ae-forgotten-export) The symbol "ValuesOf" needs to be exported by the entry point index.d.ts -// // @public export type AccordionItemExpandIconPosition = ValuesOf; @@ -135,6 +144,8 @@ export class AnchorButton extends FASTElement { type: string; } +// Warning: (ae-forgotten-export) The symbol "DelegatesARIALink" needs to be exported by the entry point index.d.ts +// // @internal export interface AnchorButton extends StartEnd, DelegatesARIALink { } @@ -154,6 +165,9 @@ export type AnchorButtonAppearance = ValuesOf; // @public (undocumented) export const AnchorButtonDefinition: FASTElementDefinition; +// @public +export type AnchorButtonOptions = StartEndOptions; + // @public export const AnchorButtonShape: { readonly circular: "circular"; @@ -177,11 +191,6 @@ export type AnchorButtonSize = ValuesOf; // @public export const AnchorButtonTemplate: ElementViewTemplate; -// @public -type AnchorOptions = StartEndOptions; -export { AnchorOptions as AnchorButtonOptions } -export { AnchorOptions } - // @public export const AnchorTarget: { readonly _self: "_self"; @@ -388,13 +397,6 @@ export type BadgeColor = ValuesOf; // @public (undocumented) export const BadgeDefinition: FASTElementDefinition; -// Warning: (ae-internal-missing-underscore) The name "BadgeOptions" should be prefixed with an underscore because the declaration is marked as @internal -// -// @internal -export type BadgeOptions = StartEndOptions & { - defaultContent?: StaticallyComposableHTML; -}; - // @public export const BadgeShape: { readonly circular: "circular"; @@ -424,29 +426,6 @@ export const BadgeStyles: ElementStyles; // @public (undocumented) export const BadgeTemplate: ElementViewTemplate; -// @public -export class BaseTabs extends FASTElement { - activeid: string; - // @internal (undocumented) - activeidChanged(oldValue: string, newValue: string): void; - activetab: HTMLElement; - adjust(adjustment: number): void; - // @internal (undocumented) - connectedCallback(): void; - orientation: TabsOrientation; - // @internal (undocumented) - orientationChanged(): void; - protected setTabs(): void; - // @internal (undocumented) - tabpanels: HTMLElement[]; - // @internal (undocumented) - tabpanelsChanged(): void; - // @internal (undocumented) - tabs: HTMLElement[]; - // @internal (undocumented) - tabsChanged(): void; -} - // @public (undocumented) export const borderRadiusCircular = "var(--borderRadiusCircular)"; @@ -540,7 +519,6 @@ export type ButtonFormTarget = ValuesOf; // @public type ButtonOptions = StartEndOptions