From 98a726cdb9d1b0dd5deaa7cb61ef2c23f4758585 Mon Sep 17 00:00:00 2001 From: Chris Holt Date: Thu, 17 Aug 2023 11:20:02 -0700 Subject: [PATCH] feat: update exports from fast foundation to be explicit and provide package exports (#6808) * add explicit exports to component index files * fix explicit exports for certain files * add export paths for each component and utilities * update change file * update design token path to point to exports file --- ...-d9422418-f815-47a9-8986-e7b6dc2dd06c.json | 7 + .../fast-foundation/package.json | 186 +++++++++++++++++- .../src/accordion-item/index.ts | 4 +- .../fast-foundation/src/accordion/index.ts | 6 +- .../fast-foundation/src/anchor/index.ts | 6 +- .../src/anchored-region/index.ts | 24 ++- .../fast-foundation/src/avatar/index.ts | 4 +- .../fast-foundation/src/badge/index.ts | 4 +- .../src/breadcrumb-item/index.ts | 4 +- .../fast-foundation/src/breadcrumb/index.ts | 4 +- .../fast-foundation/src/button/index.ts | 6 +- .../fast-foundation/src/calendar/index.ts | 23 ++- .../fast-foundation/src/card/index.ts | 4 +- .../fast-foundation/src/checkbox/index.ts | 4 +- .../fast-foundation/src/combobox/index.ts | 6 +- .../fast-foundation/src/data-grid/index.ts | 26 ++- .../fast-foundation/src/dialog/index.ts | 4 +- .../fast-foundation/src/disclosure/index.ts | 4 +- .../fast-foundation/src/divider/index.ts | 6 +- .../fast-foundation/src/flipper/index.ts | 4 +- .../src/form-associated/index.ts | 11 +- .../src/horizontal-scroll/index.ts | 10 +- .../src/listbox-option/index.ts | 9 +- .../fast-foundation/src/listbox/index.ts | 6 +- .../fast-foundation/src/menu-item/index.ts | 9 +- .../fast-foundation/src/menu/index.ts | 4 +- .../fast-foundation/src/number-field/index.ts | 4 +- .../fast-foundation/src/patterns/index.ts | 13 +- .../fast-foundation/src/picker/index.ts | 22 +-- .../src/progress-ring/index.ts | 6 +- .../fast-foundation/src/progress/index.ts | 8 +- .../fast-foundation/src/radio-group/index.ts | 6 +- .../fast-foundation/src/radio/index.ts | 4 +- .../fast-foundation/src/search/index.ts | 4 +- .../fast-foundation/src/select/index.ts | 4 +- .../fast-foundation/src/skeleton/index.ts | 4 +- .../fast-foundation/src/slider-label/index.ts | 4 +- .../fast-foundation/src/slider/index.ts | 11 +- .../fast-foundation/src/switch/index.ts | 4 +- .../fast-foundation/src/tab-panel/index.ts | 4 +- .../fast-foundation/src/tab/index.ts | 4 +- .../fast-foundation/src/tabs/index.ts | 6 +- .../fast-foundation/src/text-area/index.ts | 4 +- .../fast-foundation/src/text-field/index.ts | 9 +- .../fast-foundation/src/toolbar/index.ts | 6 +- .../fast-foundation/src/tooltip/index.ts | 6 +- .../fast-foundation/src/tree-item/index.ts | 4 +- .../fast-foundation/src/tree-view/index.ts | 4 +- .../fast-foundation/src/utilities/index.ts | 27 ++- .../src/utilities/style/index.ts | 6 +- 50 files changed, 424 insertions(+), 135 deletions(-) create mode 100644 change/@microsoft-fast-foundation-d9422418-f815-47a9-8986-e7b6dc2dd06c.json diff --git a/change/@microsoft-fast-foundation-d9422418-f815-47a9-8986-e7b6dc2dd06c.json b/change/@microsoft-fast-foundation-d9422418-f815-47a9-8986-e7b6dc2dd06c.json new file mode 100644 index 00000000000..16781c75fd3 --- /dev/null +++ b/change/@microsoft-fast-foundation-d9422418-f815-47a9-8986-e7b6dc2dd06c.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "add export paths with extensions for each fast-foundation component and utilities", + "packageName": "@microsoft/fast-foundation", + "email": "chhol@microsoft.com", + "dependentChangeType": "prerelease" +} diff --git a/packages/web-components/fast-foundation/package.json b/packages/web-components/fast-foundation/package.json index 4e7460b4411..33fec9861c8 100644 --- a/packages/web-components/fast-foundation/package.json +++ b/packages/web-components/fast-foundation/package.json @@ -26,8 +26,192 @@ "types": "./dist/dts/index.d.ts", "default": "./dist/esm/index.js" }, + "./accordion.js": { + "types": "./dist/dts/accordion/index.d.ts", + "default": "./dist/esm/accordion/index.js" + }, + "./accordion-item.js": { + "types": "./dist/dts/accordion-item/index.d.ts", + "default": "./dist/esm/accordion-item/index.js" + }, + "./anchor.js": { + "types": "./dist/dts/anchor/index.d.ts", + "default": "./dist/esm/anchor/index.js" + }, + "./anchored-region.js": { + "types": "./dist/dts/anchored-region/index.d.ts", + "default": "./dist/esm/anchored-region/index.js" + }, + "./avatar.js": { + "types": "./dist/dts/avatar/index.d.ts", + "default": "./dist/esm/avatar/index.js" + }, + "./badge.js": { + "types": "./dist/dts/badge/index.d.ts", + "default": "./dist/esm/badge/index.js" + }, + "./breadcrumb.js": { + "types": "./dist/dts/breadcrumb/index.d.ts", + "default": "./dist/esm/breadcrumb/index.js" + }, + "./breadcrumb-item.js": { + "types": "./dist/dts/breadcrumb-item/index.d.ts", + "default": "./dist/esm/breadcrumb-item/index.js" + }, + "./button.js": { + "types": "./dist/dts/button/index.d.ts", + "default": "./dist/esm/button/index.js" + }, + "./calendar.js": { + "types": "./dist/dts/calendar/index.d.ts", + "default": "./dist/esm/calendar/index.js" + }, + "./card.js": { + "types": "./dist/dts/card/index.d.ts", + "default": "./dist/esm/card/index.js" + }, + "./checkbox.js": { + "types": "./dist/dts/checkbox/index.d.ts", + "default": "./dist/esm/checkbox/index.js" + }, + "./combobox.js": { + "types": "./dist/dts/combobox/index.d.ts", + "default": "./dist/esm/combobox/index.js" + }, + "./data-grid.js": { + "types": "./dist/dts/data-grid/index.d.ts", + "default": "./dist/esm/data-grid/index.js" + }, + "./design-token.js": { + "types": "./dist/dts/design-token/exports.d.ts", + "default": "./dist/esm/design-token/exports.js" + }, + "./dialog.js": { + "types": "./dist/dts/dialog/index.d.ts", + "default": "./dist/esm/dialog/index.js" + }, + "./disclosure.js": { + "types": "./dist/dts/disclosure/index.d.ts", + "default": "./dist/esm/disclosure/index.js" + }, + "./divider.js": { + "types": "./dist/dts/divider/index.d.ts", + "default": "./dist/esm/divider/index.js" + }, + "./flipper.js": { + "types": "./dist/dts/flipper/index.d.ts", + "default": "./dist/esm/flipper/index.js" + }, + "./horizontal-scroll.js": { + "types": "./dist/dts/horizontal-scroll/index.d.ts", + "default": "./dist/esm/horizontal-scroll/index.js" + }, + "./listbox.js": { + "types": "./dist/dts/listbox/index.d.ts", + "default": "./dist/esm/listbox/index.js" + }, + "./listbox-option.js": { + "types": "./dist/dts/listbox-option/index.d.ts", + "default": "./dist/esm/listbox-option/index.js" + }, + "./menu.js": { + "types": "./dist/dts/menu/index.d.ts", + "default": "./dist/esm/menu/index.js" + }, + "./menu-item.js": { + "types": "./dist/dts/menu-item/index.d.ts", + "default": "./dist/esm/menu-item/index.js" + }, + "./number-field.js": { + "types": "./dist/dts/number-field/index.d.ts", + "default": "./dist/esm/number-field/index.js" + }, + "./picker.js": { + "types": "./dist/dts/picker/index.d.ts", + "default": "./dist/esm/picker/index.js" + }, + "./progress.js": { + "types": "./dist/dts/progress/index.d.ts", + "default": "./dist/esm/progress/index.js" + }, + "./progress-ring.js": { + "types": "./dist/dts/progress-ring/index.d.ts", + "default": "./dist/esm/progress-ring/index.js" + }, + "./radio.js": { + "types": "./dist/dts/radio/index.d.ts", + "default": "./dist/esm/radio/index.js" + }, + "./radio-group.js": { + "types": "./dist/dts/radio-group/index.d.ts", + "default": "./dist/esm/radio-group/index.js" + }, + "./search.js": { + "types": "./dist/dts/search/index.d.ts", + "default": "./dist/esm/search/index.js" + }, + "./select.js": { + "types": "./dist/dts/select/index.d.ts", + "default": "./dist/esm/select/index.js" + }, + "./skeleton.js": { + "types": "./dist/dts/skeleton/index.d.ts", + "default": "./dist/esm/skeleton/index.js" + }, + "./slider.js": { + "types": "./dist/dts/slider/index.d.ts", + "default": "./dist/esm/slider/index.js" + }, + "./slider-label.js": { + "types": "./dist/dts/slider-label/index.d.ts", + "default": "./dist/esm/slider-label/index.js" + }, + "./switch.js": { + "types": "./dist/dts/switch/index.d.ts", + "default": "./dist/esm/switch/index.js" + }, + "./tab.js": { + "types": "./dist/dts/tab/index.d.ts", + "default": "./dist/esm/tab/index.js" + }, + "./tab-panel.js": { + "types": "./dist/dts/tab-panel/index.d.ts", + "default": "./dist/esm/tab-panel/index.js" + }, + "./tabs.js": { + "types": "./dist/dts/tabs/index.d.ts", + "default": "./dist/esm/tabs/index.js" + }, + "./text-area.js": { + "types": "./dist/dts/text-area/index.d.ts", + "default": "./dist/esm/text-area/index.js" + }, + "./text-field.js": { + "types": "./dist/dts/text-field/index.d.ts", + "default": "./dist/esm/text-field/index.js" + }, + "./toolbar.js": { + "types": "./dist/dts/toolbar/index.d.ts", + "default": "./dist/esm/toolbar/index.js" + }, + "./tooltip.js": { + "types": "./dist/dts/tooltip/index.d.ts", + "default": "./dist/esm/tooltip/index.js" + }, + "./tree-item.js": { + "types": "./dist/dts/tree-item/index.d.ts", + "default": "./dist/esm/tree-item/index.js" + }, + "./tree-view.js": { + "types": "./dist/dts/tree-view/index.d.ts", + "default": "./dist/esm/tree-view/index.js" + }, + "./utilities.js": { + "types": "./dist/dts/utilities/index.d.ts", + "default": "./dist/esm/utilities/index.js" + }, "./custom-elements.json": "./dist/custom-elements.json", - "./design-token-core": { + "./design-token-core.js": { "types": "./dist/dts/design-token/core/exports.d.ts", "default": "./dist/esm/design-token/core/exports.js" }, diff --git a/packages/web-components/fast-foundation/src/accordion-item/index.ts b/packages/web-components/fast-foundation/src/accordion-item/index.ts index bbd9131ea2c..74c68ad930c 100644 --- a/packages/web-components/fast-foundation/src/accordion-item/index.ts +++ b/packages/web-components/fast-foundation/src/accordion-item/index.ts @@ -1,2 +1,2 @@ -export * from "./accordion-item.template.js"; -export * from "./accordion-item.js"; +export { accordionItemTemplate } from "./accordion-item.template.js"; +export { AccordionItemOptions, FASTAccordionItem } from "./accordion-item.js"; diff --git a/packages/web-components/fast-foundation/src/accordion/index.ts b/packages/web-components/fast-foundation/src/accordion/index.ts index dc8f7f0aa86..36667b59460 100644 --- a/packages/web-components/fast-foundation/src/accordion/index.ts +++ b/packages/web-components/fast-foundation/src/accordion/index.ts @@ -1,3 +1,3 @@ -export * from "./accordion.js"; -export * from "./accordion.options.js"; -export * from "./accordion.template.js"; +export { FASTAccordion } from "./accordion.js"; +export { AccordionExpandMode } from "./accordion.options.js"; +export { accordionTemplate } from "./accordion.template.js"; diff --git a/packages/web-components/fast-foundation/src/anchor/index.ts b/packages/web-components/fast-foundation/src/anchor/index.ts index 9ca2f50053d..de83a3d362c 100644 --- a/packages/web-components/fast-foundation/src/anchor/index.ts +++ b/packages/web-components/fast-foundation/src/anchor/index.ts @@ -1,3 +1,3 @@ -export * from "./anchor.js"; -export * from "./anchor.options.js"; -export * from "./anchor.template.js"; +export { AnchorOptions, DelegatesARIALink, FASTAnchor } from "./anchor.js"; +export { AnchorTarget } from "./anchor.options.js"; +export { anchorTemplate } from "./anchor.template.js"; diff --git a/packages/web-components/fast-foundation/src/anchored-region/index.ts b/packages/web-components/fast-foundation/src/anchored-region/index.ts index 5ec59157ebb..a5962a41066 100644 --- a/packages/web-components/fast-foundation/src/anchored-region/index.ts +++ b/packages/web-components/fast-foundation/src/anchored-region/index.ts @@ -1,4 +1,20 @@ -export * from "./anchored-region-config.js"; -export * from "./anchored-region.js"; -export * from "./anchored-region.options.js"; -export * from "./anchored-region.template.js"; +export { + AnchoredRegionConfig, + FlyoutPosBottom, + FlyoutPosBottomFill, + FlyoutPosTallest, + FlyoutPosTallestFill, + FlyoutPosTop, + FlyoutPosTopFill, +} from "./anchored-region-config.js"; +export { FASTAnchoredRegion } from "./anchored-region.js"; +export { + AnchoredRegionPositionLabel, + AutoUpdateMode, + AxisPositioningMode, + AxisScalingMode, + Dimension, + HorizontalPosition, + VerticalPosition, +} from "./anchored-region.options.js"; +export { anchoredRegionTemplate } from "./anchored-region.template.js"; diff --git a/packages/web-components/fast-foundation/src/avatar/index.ts b/packages/web-components/fast-foundation/src/avatar/index.ts index f1b19b6d4fb..22d3dd0f007 100644 --- a/packages/web-components/fast-foundation/src/avatar/index.ts +++ b/packages/web-components/fast-foundation/src/avatar/index.ts @@ -1,2 +1,2 @@ -export * from "./avatar.template.js"; -export * from "./avatar.js"; +export { avatarTemplate } from "./avatar.template.js"; +export { AvatarOptions, FASTAvatar } from "./avatar.js"; diff --git a/packages/web-components/fast-foundation/src/badge/index.ts b/packages/web-components/fast-foundation/src/badge/index.ts index dc2e6d4f772..26623a6be37 100644 --- a/packages/web-components/fast-foundation/src/badge/index.ts +++ b/packages/web-components/fast-foundation/src/badge/index.ts @@ -1,2 +1,2 @@ -export * from "./badge.template.js"; -export * from "./badge.js"; +export { badgeTemplate } from "./badge.template.js"; +export { FASTBadge } from "./badge.js"; diff --git a/packages/web-components/fast-foundation/src/breadcrumb-item/index.ts b/packages/web-components/fast-foundation/src/breadcrumb-item/index.ts index 09c46c07514..1d1ffd58816 100644 --- a/packages/web-components/fast-foundation/src/breadcrumb-item/index.ts +++ b/packages/web-components/fast-foundation/src/breadcrumb-item/index.ts @@ -1,2 +1,2 @@ -export * from "./breadcrumb-item.template.js"; -export * from "./breadcrumb-item.js"; +export { breadcrumbItemTemplate } from "./breadcrumb-item.template.js"; +export { BreadcrumbItemOptions, FASTBreadcrumbItem } from "./breadcrumb-item.js"; diff --git a/packages/web-components/fast-foundation/src/breadcrumb/index.ts b/packages/web-components/fast-foundation/src/breadcrumb/index.ts index 25e03e2c8d9..46901558777 100644 --- a/packages/web-components/fast-foundation/src/breadcrumb/index.ts +++ b/packages/web-components/fast-foundation/src/breadcrumb/index.ts @@ -1,2 +1,2 @@ -export * from "./breadcrumb.template.js"; -export * from "./breadcrumb.js"; +export { breadcrumbTemplate } from "./breadcrumb.template.js"; +export { FASTBreadcrumb } from "./breadcrumb.js"; diff --git a/packages/web-components/fast-foundation/src/button/index.ts b/packages/web-components/fast-foundation/src/button/index.ts index d2c40c1623d..752c953eaf7 100644 --- a/packages/web-components/fast-foundation/src/button/index.ts +++ b/packages/web-components/fast-foundation/src/button/index.ts @@ -1,3 +1,3 @@ -export * from "./button.js"; -export * from "./button.options.js"; -export * from "./button.template.js"; +export { ButtonOptions, DelegatesARIAButton, FASTButton } from "./button.js"; +export { ButtonType } from "./button.options.js"; +export { buttonTemplate } from "./button.template.js"; diff --git a/packages/web-components/fast-foundation/src/calendar/index.ts b/packages/web-components/fast-foundation/src/calendar/index.ts index e4e1b9a8950..7593ae43748 100644 --- a/packages/web-components/fast-foundation/src/calendar/index.ts +++ b/packages/web-components/fast-foundation/src/calendar/index.ts @@ -1,4 +1,19 @@ -export * from "./calendar.js"; -export * from "./calendar.options.js"; -export * from "./calendar.template.js"; -export * from "./date-formatter.js"; +export { + CalendarDateInfo, + CalendarInfo, + CalendarOptions, + FASTCalendar, + MonthInfo, + WeekdayText, +} from "./calendar.js"; +export { DayFormat, WeekdayFormat, MonthFormat, YearFormat } from "./calendar.options.js"; +export { + calendarCellTemplate, + calendarRowTemplate, + calendarTemplate, + calendarTitleTemplate, + calendarWeekdayTemplate, + interactiveCalendarGridTemplate, + noninteractiveCalendarTemplate, +} from "./calendar.template.js"; +export { DateFormatter } from "./date-formatter.js"; diff --git a/packages/web-components/fast-foundation/src/card/index.ts b/packages/web-components/fast-foundation/src/card/index.ts index b868766c218..60d6d755124 100644 --- a/packages/web-components/fast-foundation/src/card/index.ts +++ b/packages/web-components/fast-foundation/src/card/index.ts @@ -1,2 +1,2 @@ -export * from "./card.template.js"; -export * from "./card.js"; +export { cardTemplate } from "./card.template.js"; +export { FASTCard } from "./card.js"; diff --git a/packages/web-components/fast-foundation/src/checkbox/index.ts b/packages/web-components/fast-foundation/src/checkbox/index.ts index a9565c1257c..8459acbf81e 100644 --- a/packages/web-components/fast-foundation/src/checkbox/index.ts +++ b/packages/web-components/fast-foundation/src/checkbox/index.ts @@ -1,2 +1,2 @@ -export * from "./checkbox.template.js"; -export * from "./checkbox.js"; +export { checkboxTemplate } from "./checkbox.template.js"; +export { CheckboxOptions, FASTCheckbox } from "./checkbox.js"; diff --git a/packages/web-components/fast-foundation/src/combobox/index.ts b/packages/web-components/fast-foundation/src/combobox/index.ts index 32a1025adb6..677b1969ccd 100644 --- a/packages/web-components/fast-foundation/src/combobox/index.ts +++ b/packages/web-components/fast-foundation/src/combobox/index.ts @@ -1,3 +1,3 @@ -export * from "./combobox.js"; -export * from "./combobox.options.js"; -export * from "./combobox.template.js"; +export { ComboboxOptions, DelegatesARIACombobox, FASTCombobox } from "./combobox.js"; +export { ComboboxAutocomplete } from "./combobox.options.js"; +export { comboboxTemplate } from "./combobox.template.js"; diff --git a/packages/web-components/fast-foundation/src/data-grid/index.ts b/packages/web-components/fast-foundation/src/data-grid/index.ts index f7e2d016229..bb913f0a65e 100644 --- a/packages/web-components/fast-foundation/src/data-grid/index.ts +++ b/packages/web-components/fast-foundation/src/data-grid/index.ts @@ -1,6 +1,20 @@ -export * from "./data-grid.template.js"; -export * from "./data-grid.js"; -export * from "./data-grid-row.template.js"; -export * from "./data-grid-row.js"; -export * from "./data-grid-cell.template.js"; -export * from "./data-grid-cell.js"; +export { DataGridOptions, dataGridTemplate } from "./data-grid.template.js"; +export { + ColumnDefinition, + DataGridRowTypes, + DataGridSelectionBehavior, + DataGridSelectionMode, + FASTDataGrid, + GenerateHeaderOptions, +} from "./data-grid.js"; +export { + dataGridRowTemplate, + CellItemTemplateOptions, +} from "./data-grid-row.template.js"; +export { FASTDataGridRow } from "./data-grid-row.js"; +export { dataGridCellTemplate } from "./data-grid-cell.template.js"; +export { + DataGridCellTypes, + defaultCellFocusTargetCallback, + FASTDataGridCell, +} from "./data-grid-cell.js"; diff --git a/packages/web-components/fast-foundation/src/dialog/index.ts b/packages/web-components/fast-foundation/src/dialog/index.ts index b506ed5b0bf..61130c8a85b 100644 --- a/packages/web-components/fast-foundation/src/dialog/index.ts +++ b/packages/web-components/fast-foundation/src/dialog/index.ts @@ -1,2 +1,2 @@ -export * from "./dialog.template.js"; -export * from "./dialog.js"; +export { dialogTemplate } from "./dialog.template.js"; +export { FASTDialog } from "./dialog.js"; diff --git a/packages/web-components/fast-foundation/src/disclosure/index.ts b/packages/web-components/fast-foundation/src/disclosure/index.ts index f16328f0578..942579e9489 100644 --- a/packages/web-components/fast-foundation/src/disclosure/index.ts +++ b/packages/web-components/fast-foundation/src/disclosure/index.ts @@ -1,2 +1,2 @@ -export * from "./disclosure.template.js"; -export * from "./disclosure.js"; +export { disclosureTemplate } from "./disclosure.template.js"; +export { DisclosureOptions, FASTDisclosure } from "./disclosure.js"; diff --git a/packages/web-components/fast-foundation/src/divider/index.ts b/packages/web-components/fast-foundation/src/divider/index.ts index 7cdd5c9a190..8093d5239a1 100644 --- a/packages/web-components/fast-foundation/src/divider/index.ts +++ b/packages/web-components/fast-foundation/src/divider/index.ts @@ -1,3 +1,3 @@ -export * from "./divider.options.js"; -export * from "./divider.template.js"; -export * from "./divider.js"; +export { DividerOrientation, DividerRole } from "./divider.options.js"; +export { dividerTemplate } from "./divider.template.js"; +export { FASTDivider } from "./divider.js"; diff --git a/packages/web-components/fast-foundation/src/flipper/index.ts b/packages/web-components/fast-foundation/src/flipper/index.ts index 9045ac098f7..60cd4b73e53 100644 --- a/packages/web-components/fast-foundation/src/flipper/index.ts +++ b/packages/web-components/fast-foundation/src/flipper/index.ts @@ -1,2 +1,2 @@ -export * from "./flipper.template.js"; -export * from "./flipper.js"; +export { flipperTemplate } from "./flipper.template.js"; +export { FASTFlipper, FlipperDirection, FlipperOptions } from "./flipper.js"; diff --git a/packages/web-components/fast-foundation/src/form-associated/index.ts b/packages/web-components/fast-foundation/src/form-associated/index.ts index 285fa4139a6..a0e6681e4af 100644 --- a/packages/web-components/fast-foundation/src/form-associated/index.ts +++ b/packages/web-components/fast-foundation/src/form-associated/index.ts @@ -1 +1,10 @@ -export * from "./form-associated.js"; +export { + CheckableFormAssociated, + CheckableFormAssociatedElement, + ConstructableFormAssociated, + FormAssociated, + FormAssociatedElement, + FormAssociatedProxy, + ProxyElement, + supportsElementInternals, +} from "./form-associated.js"; diff --git a/packages/web-components/fast-foundation/src/horizontal-scroll/index.ts b/packages/web-components/fast-foundation/src/horizontal-scroll/index.ts index 0090b0ab6b4..a8150a18535 100644 --- a/packages/web-components/fast-foundation/src/horizontal-scroll/index.ts +++ b/packages/web-components/fast-foundation/src/horizontal-scroll/index.ts @@ -1,3 +1,7 @@ -export * from "./horizontal-scroll.js"; -export * from "./horizontal-scroll.options.js"; -export * from "./horizontal-scroll.template.js"; +export { FASTHorizontalScroll } from "./horizontal-scroll.js"; +export { + HorizontalScrollOptions, + HorizontalScrollView, + ScrollEasing, +} from "./horizontal-scroll.options.js"; +export { horizontalScrollTemplate } from "./horizontal-scroll.template.js"; diff --git a/packages/web-components/fast-foundation/src/listbox-option/index.ts b/packages/web-components/fast-foundation/src/listbox-option/index.ts index c20688652a8..3b65c703bf0 100644 --- a/packages/web-components/fast-foundation/src/listbox-option/index.ts +++ b/packages/web-components/fast-foundation/src/listbox-option/index.ts @@ -1,2 +1,7 @@ -export * from "./listbox-option.js"; -export * from "./listbox-option.template.js"; +export { + DelegatesARIAListboxOption, + ListboxOptionOptions, + isListboxOption, + FASTListboxOption, +} from "./listbox-option.js"; +export { listboxOptionTemplate } from "./listbox-option.template.js"; diff --git a/packages/web-components/fast-foundation/src/listbox/index.ts b/packages/web-components/fast-foundation/src/listbox/index.ts index 6b253f21fa8..87d7cf59bdd 100644 --- a/packages/web-components/fast-foundation/src/listbox/index.ts +++ b/packages/web-components/fast-foundation/src/listbox/index.ts @@ -1,3 +1,3 @@ -export * from "./listbox.js"; -export * from "./listbox.element.js"; -export * from "./listbox.template.js"; +export { DelegatesARIAListbox, FASTListbox } from "./listbox.js"; +export { FASTListboxElement } from "./listbox.element.js"; +export { listboxTemplate } from "./listbox.template.js"; diff --git a/packages/web-components/fast-foundation/src/menu-item/index.ts b/packages/web-components/fast-foundation/src/menu-item/index.ts index f32c5999c43..b34f0405fc2 100644 --- a/packages/web-components/fast-foundation/src/menu-item/index.ts +++ b/packages/web-components/fast-foundation/src/menu-item/index.ts @@ -1,2 +1,7 @@ -export * from "./menu-item.template.js"; -export * from "./menu-item.js"; +export { menuItemTemplate } from "./menu-item.template.js"; +export { + FASTMenuItem, + MenuItemOptions, + MenuItemRole, + roleForMenuItem, +} from "./menu-item.js"; diff --git a/packages/web-components/fast-foundation/src/menu/index.ts b/packages/web-components/fast-foundation/src/menu/index.ts index f94356ae46f..3242f433eed 100644 --- a/packages/web-components/fast-foundation/src/menu/index.ts +++ b/packages/web-components/fast-foundation/src/menu/index.ts @@ -1,2 +1,2 @@ -export * from "./menu.template.js"; -export * from "./menu.js"; +export { menuTemplate } from "./menu.template.js"; +export { FASTMenu } from "./menu.js"; diff --git a/packages/web-components/fast-foundation/src/number-field/index.ts b/packages/web-components/fast-foundation/src/number-field/index.ts index 95d3c65954e..356978bea94 100644 --- a/packages/web-components/fast-foundation/src/number-field/index.ts +++ b/packages/web-components/fast-foundation/src/number-field/index.ts @@ -1,2 +1,2 @@ -export * from "./number-field.template.js"; -export * from "./number-field.js"; +export { numberFieldTemplate } from "./number-field.template.js"; +export { FASTNumberField, NumberFieldOptions } from "./number-field.js"; diff --git a/packages/web-components/fast-foundation/src/patterns/index.ts b/packages/web-components/fast-foundation/src/patterns/index.ts index 6136ce19286..38200e1ed79 100644 --- a/packages/web-components/fast-foundation/src/patterns/index.ts +++ b/packages/web-components/fast-foundation/src/patterns/index.ts @@ -1,3 +1,10 @@ -export * from "./tag-for.js"; -export * from "./aria-global.js"; -export * from "./start-end.js"; +export { tagFor, TemplateElementDependency } from "./tag-for.js"; +export { ARIAGlobalStatesAndProperties } from "./aria-global.js"; +export { + EndOptions, + endSlotTemplate, + StartEnd, + StartEndOptions, + StartOptions, + startSlotTemplate, +} from "./start-end.js"; diff --git a/packages/web-components/fast-foundation/src/picker/index.ts b/packages/web-components/fast-foundation/src/picker/index.ts index 815c5233273..23b6af2c170 100644 --- a/packages/web-components/fast-foundation/src/picker/index.ts +++ b/packages/web-components/fast-foundation/src/picker/index.ts @@ -1,11 +1,11 @@ -export * from "./picker-list-item.js"; -export * from "./picker-list-item.template.js"; -export * from "./picker-list.js"; -export * from "./picker-list.template.js"; -export * from "./picker-menu-option.js"; -export * from "./picker-menu-option.template.js"; -export * from "./picker-menu.js"; -export * from "./picker-menu.template.js"; -export * from "./picker.js"; -export * from "./picker.options.js"; -export * from "./picker.template.js"; +export { FASTPickerListItem } from "./picker-list-item.js"; +export { pickerListItemTemplate } from "./picker-list-item.template.js"; +export { FASTPickerList } from "./picker-list.js"; +export { pickerListTemplate } from "./picker-list.template.js"; +export { FASTPickerMenuOption } from "./picker-menu-option.js"; +export { pickerMenuOptionTemplate } from "./picker-menu-option.template.js"; +export { FASTPickerMenu } from "./picker-menu.js"; +export { pickerMenuTemplate } from "./picker-menu.template.js"; +export { FASTPicker } from "./picker.js"; +export { MenuPlacement } from "./picker.options.js"; +export { PickerOptions, pickerTemplate } from "./picker.template.js"; diff --git a/packages/web-components/fast-foundation/src/progress-ring/index.ts b/packages/web-components/fast-foundation/src/progress-ring/index.ts index c6eb91da9eb..5118a937e32 100644 --- a/packages/web-components/fast-foundation/src/progress-ring/index.ts +++ b/packages/web-components/fast-foundation/src/progress-ring/index.ts @@ -1,3 +1,3 @@ -export * from "./progress-ring.js"; -export * from "./progress-ring.options.js"; -export * from "./progress-ring.template.js"; +export { FASTProgressRing } from "./progress-ring.js"; +export { ProgressRingOptions } from "./progress-ring.options.js"; +export { progressRingTemplate } from "./progress-ring.template.js"; diff --git a/packages/web-components/fast-foundation/src/progress/index.ts b/packages/web-components/fast-foundation/src/progress/index.ts index 11c506ecfef..37bedac77c6 100644 --- a/packages/web-components/fast-foundation/src/progress/index.ts +++ b/packages/web-components/fast-foundation/src/progress/index.ts @@ -1,4 +1,4 @@ -export * from "./base-progress.js"; -export * from "./progress.js"; -export * from "./progress.options.js"; -export * from "./progress.template.js"; +export { FASTBaseProgress } from "./base-progress.js"; +export { FASTProgress } from "./progress.js"; +export { ProgressOptions } from "./progress.options.js"; +export { progressTemplate } from "./progress.template.js"; diff --git a/packages/web-components/fast-foundation/src/radio-group/index.ts b/packages/web-components/fast-foundation/src/radio-group/index.ts index 6b87a7963ff..76b6dde54ce 100644 --- a/packages/web-components/fast-foundation/src/radio-group/index.ts +++ b/packages/web-components/fast-foundation/src/radio-group/index.ts @@ -1,3 +1,3 @@ -export * from "./radio-group.options.js"; -export * from "./radio-group.template.js"; -export * from "./radio-group.js"; +export { RadioGroupOrientation } from "./radio-group.options.js"; +export { radioGroupTemplate } from "./radio-group.template.js"; +export { FASTRadioGroup } from "./radio-group.js"; diff --git a/packages/web-components/fast-foundation/src/radio/index.ts b/packages/web-components/fast-foundation/src/radio/index.ts index 21261acc88d..a6c75ce3164 100644 --- a/packages/web-components/fast-foundation/src/radio/index.ts +++ b/packages/web-components/fast-foundation/src/radio/index.ts @@ -1,2 +1,2 @@ -export * from "./radio.template.js"; -export * from "./radio.js"; +export { radioTemplate } from "./radio.template.js"; +export { FASTRadio, RadioControl, RadioOptions } from "./radio.js"; diff --git a/packages/web-components/fast-foundation/src/search/index.ts b/packages/web-components/fast-foundation/src/search/index.ts index be5e82f454c..5f32589c52a 100644 --- a/packages/web-components/fast-foundation/src/search/index.ts +++ b/packages/web-components/fast-foundation/src/search/index.ts @@ -1,2 +1,2 @@ -export * from "./search.template.js"; -export * from "./search.js"; +export { searchTemplate } from "./search.template.js"; +export { DelegatesARIASearch, FASTSearch, SearchOptions } from "./search.js"; diff --git a/packages/web-components/fast-foundation/src/select/index.ts b/packages/web-components/fast-foundation/src/select/index.ts index 5e73d060120..0cd496bc911 100644 --- a/packages/web-components/fast-foundation/src/select/index.ts +++ b/packages/web-components/fast-foundation/src/select/index.ts @@ -1,2 +1,2 @@ -export * from "./select.js"; -export * from "./select.template.js"; +export { FASTSelect, DelegatesARIASelect, SelectOptions } from "./select.js"; +export { selectTemplate } from "./select.template.js"; diff --git a/packages/web-components/fast-foundation/src/skeleton/index.ts b/packages/web-components/fast-foundation/src/skeleton/index.ts index 28883268cfc..b7affaa9553 100644 --- a/packages/web-components/fast-foundation/src/skeleton/index.ts +++ b/packages/web-components/fast-foundation/src/skeleton/index.ts @@ -1,2 +1,2 @@ -export * from "./skeleton.template.js"; -export * from "./skeleton.js"; +export { skeletonTemplate } from "./skeleton.template.js"; +export { FASTSkeleton, SkeletonShape } from "./skeleton.js"; diff --git a/packages/web-components/fast-foundation/src/slider-label/index.ts b/packages/web-components/fast-foundation/src/slider-label/index.ts index 207c542e411..4f8e3cc5b2b 100644 --- a/packages/web-components/fast-foundation/src/slider-label/index.ts +++ b/packages/web-components/fast-foundation/src/slider-label/index.ts @@ -1,2 +1,2 @@ -export * from "./slider-label.template.js"; -export * from "./slider-label.js"; +export { sliderLabelTemplate } from "./slider-label.template.js"; +export { FASTSliderLabel } from "./slider-label.js"; diff --git a/packages/web-components/fast-foundation/src/slider/index.ts b/packages/web-components/fast-foundation/src/slider/index.ts index b074bc06669..b2d74778110 100644 --- a/packages/web-components/fast-foundation/src/slider/index.ts +++ b/packages/web-components/fast-foundation/src/slider/index.ts @@ -1,3 +1,8 @@ -export * from "./slider.js"; -export * from "./slider.options.js"; -export * from "./slider.template.js"; +export { FASTSlider } from "./slider.js"; +export { + SliderConfiguration, + SliderMode, + SliderOptions, + SliderOrientation, +} from "./slider.options.js"; +export { sliderTemplate } from "./slider.template.js"; diff --git a/packages/web-components/fast-foundation/src/switch/index.ts b/packages/web-components/fast-foundation/src/switch/index.ts index d5d17dc9ec7..ddebb119b0a 100644 --- a/packages/web-components/fast-foundation/src/switch/index.ts +++ b/packages/web-components/fast-foundation/src/switch/index.ts @@ -1,2 +1,2 @@ -export * from "./switch.template.js"; -export * from "./switch.js"; +export { switchTemplate } from "./switch.template.js"; +export { FASTSwitch, SwitchOptions } from "./switch.js"; diff --git a/packages/web-components/fast-foundation/src/tab-panel/index.ts b/packages/web-components/fast-foundation/src/tab-panel/index.ts index 6bdf0e21fbc..c556ff51619 100644 --- a/packages/web-components/fast-foundation/src/tab-panel/index.ts +++ b/packages/web-components/fast-foundation/src/tab-panel/index.ts @@ -1,2 +1,2 @@ -export * from "./tab-panel.template.js"; -export * from "./tab-panel.js"; +export { tabPanelTemplate } from "./tab-panel.template.js"; +export { FASTTabPanel } from "./tab-panel.js"; diff --git a/packages/web-components/fast-foundation/src/tab/index.ts b/packages/web-components/fast-foundation/src/tab/index.ts index b39affc4090..a9fd7ee3c79 100644 --- a/packages/web-components/fast-foundation/src/tab/index.ts +++ b/packages/web-components/fast-foundation/src/tab/index.ts @@ -1,2 +1,2 @@ -export * from "./tab.template.js"; -export * from "./tab.js"; +export { tabTemplate } from "./tab.template.js"; +export { FASTTab, TabOptions } from "./tab.js"; diff --git a/packages/web-components/fast-foundation/src/tabs/index.ts b/packages/web-components/fast-foundation/src/tabs/index.ts index 5200c8caa31..00696638ee7 100644 --- a/packages/web-components/fast-foundation/src/tabs/index.ts +++ b/packages/web-components/fast-foundation/src/tabs/index.ts @@ -1,3 +1,3 @@ -export * from "./tabs.options.js"; -export * from "./tabs.template.js"; -export * from "./tabs.js"; +export { TabsOptions, TabsOrientation } from "./tabs.options.js"; +export { tabsTemplate } from "./tabs.template.js"; +export { FASTTabs } from "./tabs.js"; diff --git a/packages/web-components/fast-foundation/src/text-area/index.ts b/packages/web-components/fast-foundation/src/text-area/index.ts index 814faf5561b..49290387222 100644 --- a/packages/web-components/fast-foundation/src/text-area/index.ts +++ b/packages/web-components/fast-foundation/src/text-area/index.ts @@ -1,2 +1,2 @@ -export * from "./text-area.template.js"; -export * from "./text-area.js"; +export { textAreaTemplate } from "./text-area.template.js"; +export { FASTTextArea, TextAreaResize } from "./text-area.js"; diff --git a/packages/web-components/fast-foundation/src/text-field/index.ts b/packages/web-components/fast-foundation/src/text-field/index.ts index a3e7feeac54..0fc8ee7bf70 100644 --- a/packages/web-components/fast-foundation/src/text-field/index.ts +++ b/packages/web-components/fast-foundation/src/text-field/index.ts @@ -1,2 +1,7 @@ -export * from "./text-field.template.js"; -export * from "./text-field.js"; +export { textFieldTemplate } from "./text-field.template.js"; +export { + DelegatesARIATextbox, + FASTTextField, + TextFieldOptions, + TextFieldType, +} from "./text-field.js"; diff --git a/packages/web-components/fast-foundation/src/toolbar/index.ts b/packages/web-components/fast-foundation/src/toolbar/index.ts index 1c9930f811a..d1e4fd4cb0c 100644 --- a/packages/web-components/fast-foundation/src/toolbar/index.ts +++ b/packages/web-components/fast-foundation/src/toolbar/index.ts @@ -1,3 +1,3 @@ -export * from "./toolbar.options.js"; -export * from "./toolbar.template.js"; -export * from "./toolbar.js"; +export { ToolbarOptions, ToolbarOrientation } from "./toolbar.options.js"; +export { toolbarTemplate } from "./toolbar.template.js"; +export { DelegatesARIAToolbar, FASTToolbar } from "./toolbar.js"; diff --git a/packages/web-components/fast-foundation/src/tooltip/index.ts b/packages/web-components/fast-foundation/src/tooltip/index.ts index 7aa430a347f..b5f2ae6e8d7 100644 --- a/packages/web-components/fast-foundation/src/tooltip/index.ts +++ b/packages/web-components/fast-foundation/src/tooltip/index.ts @@ -1,3 +1,3 @@ -export * from "./tooltip.js"; -export * from "./tooltip.options.js"; -export * from "./tooltip.template.js"; +export { FASTTooltip } from "./tooltip.js"; +export { TooltipPlacement } from "./tooltip.options.js"; +export { tooltipTemplate } from "./tooltip.template.js"; diff --git a/packages/web-components/fast-foundation/src/tree-item/index.ts b/packages/web-components/fast-foundation/src/tree-item/index.ts index 4c0f341625f..ef4508cff87 100644 --- a/packages/web-components/fast-foundation/src/tree-item/index.ts +++ b/packages/web-components/fast-foundation/src/tree-item/index.ts @@ -1,2 +1,2 @@ -export * from "./tree-item.template.js"; -export * from "./tree-item.js"; +export { treeItemTemplate } from "./tree-item.template.js"; +export { FASTTreeItem, isTreeItemElement, TreeItemOptions } from "./tree-item.js"; diff --git a/packages/web-components/fast-foundation/src/tree-view/index.ts b/packages/web-components/fast-foundation/src/tree-view/index.ts index 66f5d9a0223..1c9a2815fc3 100644 --- a/packages/web-components/fast-foundation/src/tree-view/index.ts +++ b/packages/web-components/fast-foundation/src/tree-view/index.ts @@ -1,2 +1,2 @@ -export * from "./tree-view.template.js"; -export * from "./tree-view.js"; +export { treeViewTemplate } from "./tree-view.template.js"; +export { FASTTreeView } from "./tree-view.js"; diff --git a/packages/web-components/fast-foundation/src/utilities/index.ts b/packages/web-components/fast-foundation/src/utilities/index.ts index 6f1b1ffb3d3..3acd79ebc11 100644 --- a/packages/web-components/fast-foundation/src/utilities/index.ts +++ b/packages/web-components/fast-foundation/src/utilities/index.ts @@ -1,7 +1,20 @@ -export * from "./direction.js"; -export * from "./match-media-stylesheet-behavior.js"; -export * from "./property-stylesheet-behavior.js"; -export * from "./style/index.js"; -export * from "./typings.js"; -export * from "./whitespace-filter.js"; -export * from "./template-helpers.js"; +export { getDirection } from "./direction.js"; +export { + darkModeStylesheetBehavior, + lightModeStylesheetBehavior, + forcedColorsStylesheetBehavior, + MatchMediaBehavior, + MediaQueryListListener, + MatchMediaStyleSheetBehavior, +} from "./match-media-stylesheet-behavior.js"; +export { PropertyStyleSheetBehavior } from "./property-stylesheet-behavior.js"; +export { + CSSDisplayPropertyValue, + disabledCursor, + display, + hidden, + focusVisible, +} from "./style/index.js"; +export { ValuesOf } from "./typings.js"; +export { whitespaceFilter } from "./whitespace-filter.js"; +export { staticallyCompose, StaticallyComposableHTML } from "./template-helpers.js"; diff --git a/packages/web-components/fast-foundation/src/utilities/style/index.ts b/packages/web-components/fast-foundation/src/utilities/style/index.ts index 07a965b0aa5..50ed8c3d0b6 100644 --- a/packages/web-components/fast-foundation/src/utilities/style/index.ts +++ b/packages/web-components/fast-foundation/src/utilities/style/index.ts @@ -1,3 +1,3 @@ -export * from "./disabled.js"; -export * from "./display.js"; -export * from "./focus.js"; +export { disabledCursor } from "./disabled.js"; +export { display, CSSDisplayPropertyValue, hidden } from "./display.js"; +export { focusVisible } from "./focus.js";