-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
8a23a94
commit 98a726c
Showing
50 changed files
with
424 additions
and
135 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@microsoft-fast-foundation-d9422418-f815-47a9-8986-e7b6dc2dd06c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "add export paths with extensions for each fast-foundation component and utilities", | ||
"packageName": "@microsoft/fast-foundation", | ||
"email": "[email protected]", | ||
"dependentChangeType": "prerelease" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/web-components/fast-foundation/src/accordion-item/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
6 changes: 3 additions & 3 deletions
6
packages/web-components/fast-foundation/src/accordion/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
24 changes: 20 additions & 4 deletions
24
packages/web-components/fast-foundation/src/anchored-region/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./badge.template.js"; | ||
export * from "./badge.js"; | ||
export { badgeTemplate } from "./badge.template.js"; | ||
export { FASTBadge } from "./badge.js"; |
4 changes: 2 additions & 2 deletions
4
packages/web-components/fast-foundation/src/breadcrumb-item/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
4 changes: 2 additions & 2 deletions
4
packages/web-components/fast-foundation/src/breadcrumb/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./breadcrumb.template.js"; | ||
export * from "./breadcrumb.js"; | ||
export { breadcrumbTemplate } from "./breadcrumb.template.js"; | ||
export { FASTBreadcrumb } from "./breadcrumb.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
23 changes: 19 additions & 4 deletions
23
packages/web-components/fast-foundation/src/calendar/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./card.template.js"; | ||
export * from "./card.js"; | ||
export { cardTemplate } from "./card.template.js"; | ||
export { FASTCard } from "./card.js"; |
4 changes: 2 additions & 2 deletions
4
packages/web-components/fast-foundation/src/checkbox/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
6 changes: 3 additions & 3 deletions
6
packages/web-components/fast-foundation/src/combobox/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
26 changes: 20 additions & 6 deletions
26
packages/web-components/fast-foundation/src/data-grid/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./dialog.template.js"; | ||
export * from "./dialog.js"; | ||
export { dialogTemplate } from "./dialog.template.js"; | ||
export { FASTDialog } from "./dialog.js"; |
4 changes: 2 additions & 2 deletions
4
packages/web-components/fast-foundation/src/disclosure/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
11 changes: 10 additions & 1 deletion
11
packages/web-components/fast-foundation/src/form-associated/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
export * from "./form-associated.js"; | ||
export { | ||
CheckableFormAssociated, | ||
CheckableFormAssociatedElement, | ||
ConstructableFormAssociated, | ||
FormAssociated, | ||
FormAssociatedElement, | ||
FormAssociatedProxy, | ||
ProxyElement, | ||
supportsElementInternals, | ||
} from "./form-associated.js"; |
10 changes: 7 additions & 3 deletions
10
packages/web-components/fast-foundation/src/horizontal-scroll/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
9 changes: 7 additions & 2 deletions
9
packages/web-components/fast-foundation/src/listbox-option/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
Oops, something went wrong.