-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[web-components] update components to extend foundation element (#18187)
* update accordion to use foundation element * update anchor to extend foundation element * update anchored region to extend foundation element * correct style exports * update badge to extend foundation * update breadcrumb to extend foundation element * update button to extend foundation element * update checkbox to extend foundation element * update combobox to extend foundation element * update dialog to extend foundation element * update divider styles * update flipper to extend foundation element * update horizontal scroll to extend foundation element * update listbox to extend foundation element * update listbox option to extend foundation element * update naming for exported registries * update menu and menu item to extend foundation * aupdate number field to extend foundation element * update progress to extend foundation element * update radio, radiogroup and select to extend foundation el * update skeleton to extend foundation element * update slider to extend foundation element * update switch to extend foundation component * correct prefix for export names * update text area to extend foundation element * update text field to extend foundation * update tooltip to extend foundation element * update tree view to extend foundation element * update comments v1 * export all custom element definitions * exportfluent design system and definitions from rollup * add data grid * update fast to fluent in rollup * add beta package to start updating w/ foundation element * update stories files * Change files
- Loading branch information
1 parent
01e096e
commit 6248ad9
Showing
134 changed files
with
3,122 additions
and
3,430 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
change/@fluentui-web-components-72f613f8-2c88-4e90-873d-7abd1704bf86.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,6 @@ | ||
{ | ||
"type": "major", | ||
"packageName": "@fluentui/web-components", | ||
"email": "chhol@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
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
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
16 changes: 7 additions & 9 deletions
16
packages/web-components/src/accordion/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,25 +1,23 @@ | ||
import { customElement } from '@microsoft/fast-element'; | ||
import { AccordionItem, AccordionItemTemplate as template } from '@microsoft/fast-foundation'; | ||
import { AccordionItemStyles as styles } from './accordion-item.styles'; | ||
import { AccordionItem, accordionItemTemplate as template } from '@microsoft/fast-foundation'; | ||
import { accordionItemStyles as styles } from './accordion-item.styles'; | ||
|
||
/** | ||
* The Fluent Accordion Item Element. Implements {@link @microsoft/fast-foundation#AccordionItem}, | ||
* {@link @microsoft/fast-foundation#AccordionItemTemplate} | ||
* {@link @microsoft/fast-foundation#accordionItemTemplate} | ||
* | ||
* | ||
* @public | ||
* @remarks | ||
* HTML Element: \<fluent-accordion-item\> | ||
*/ | ||
@customElement({ | ||
name: 'fluent-accordion-item', | ||
export const fluentAccordionItem = AccordionItem.compose({ | ||
baseName: 'accordion-item', | ||
template, | ||
styles, | ||
}) | ||
export class FluentAccordionItem extends AccordionItem {} | ||
}); | ||
|
||
/** | ||
* Styles for AccordionItem | ||
* @public | ||
*/ | ||
export const AccordionItemStyles = styles; | ||
export const accordionItemStyles = styles; |
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
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
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,30 +1,25 @@ | ||
import { customElement } from '@microsoft/fast-element'; | ||
import { Accordion, AccordionTemplate as template } from '@microsoft/fast-foundation'; | ||
import { AccordionStyles as styles } from './accordion.styles'; | ||
import { Accordion, accordionTemplate as template } from '@microsoft/fast-foundation'; | ||
import { accordionStyles as styles } from './accordion.styles'; | ||
|
||
export * from './accordion-item/index'; | ||
|
||
/** | ||
* The FluentUI Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion}, | ||
* {@link @microsoft/fast-foundation#AccordionTemplate} | ||
* The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion}, | ||
* {@link @microsoft/fast-foundation#accordionTemplate} | ||
* | ||
* | ||
* @public | ||
* @remarks | ||
* HTML Element: \<fluent-accordion\> | ||
*/ | ||
@customElement({ | ||
name: 'fluent-accordion', | ||
export const fluentAccordion = Accordion.compose({ | ||
baseName: 'accordion', | ||
template, | ||
styles, | ||
shadowOptions: { | ||
mode: 'closed', | ||
}, | ||
}) | ||
export class FluentAccordion extends Accordion {} | ||
}); | ||
|
||
/** | ||
* Styles for Accordion | ||
* @public | ||
*/ | ||
export const AccordionStyles = styles; | ||
export const accordionStyles = styles; |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
packages/web-components/src/anchored-region/anchored-region.styles.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
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,25 +1,23 @@ | ||
import { customElement } from '@microsoft/fast-element'; | ||
import { AnchoredRegion, AnchoredRegionTemplate as template } from '@microsoft/fast-foundation'; | ||
import { AnchoredRegionStyles as styles } from './anchored-region.styles'; | ||
import { AnchoredRegion, anchoredRegionTemplate as template } from '@microsoft/fast-foundation'; | ||
import { anchoredRegionStyles as styles } from './anchored-region.styles'; | ||
|
||
/** | ||
* The Fluent AnchoredRegion Element. Implements {@link @microsoft/fast-foundation#AnchoredRegion}, | ||
* {@link @microsoft/fast-foundation#AnchoredRegionTemplate} | ||
* {@link @microsoft/fast-foundation#anchoredRegionTemplate} | ||
* | ||
* | ||
* @beta | ||
* @remarks | ||
* HTML Element: \<fluent-anchored-region\> | ||
*/ | ||
@customElement({ | ||
name: 'fluent-anchored-region', | ||
export const fluentAnchoredRegion = AnchoredRegion.compose({ | ||
baseName: 'anchored-region', | ||
template, | ||
styles, | ||
}) | ||
export class FluentAnchoredRegion extends AnchoredRegion {} | ||
}); | ||
|
||
/** | ||
* Styles for AnchoredRegion | ||
* @public | ||
*/ | ||
export const AnchoredRegionStyles = styles; | ||
export const anchoredRegionStyles = styles; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.