Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(web components) add base class support to wc #19756

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "implement base class for components which extend beyond foundation",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"dependencies": {
"@microsoft/fast-colors": "^5.1.0",
"@microsoft/fast-element": "^1.5.0",
"@microsoft/fast-foundation": "^2.10.0",
"@microsoft/fast-foundation": "^2.12.0",
"lodash-es": "^4.17.20",
"tslib": "^1.13.0"
}
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/anchor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const anchorStyles = styles;
*/
export const fluentAnchor = Anchor.compose({
baseName: 'anchor',
baseClass: FoundationAnchor,
template,
styles,
shadowOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class Badge extends FoundationBadge {
*/
export const fluentBadge = Badge.compose({
baseName: 'badge',
baseClass: FoundationBadge,
template,
styles,
});
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class Button extends FoundationButton {
*/
export const fluentButton = Button.compose({
baseName: 'button',
baseClass: FoundationButton,
template,
styles,
shadowOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class Card extends FoundationCard {
*/
export const fluentCard = Card.compose({
baseName: 'card',
baseClass: FoundationCard,
template,
styles,
});
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/combobox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class Combobox extends FoundationCombobox {
*/
export const fluentCombobox = Combobox.compose<ComboboxOptions>({
baseName: 'combobox',
baseClass: FoundationCombobox,
template,
styles,
indicator: `
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/horizontal-scroll/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class HorizontalScroll extends FoundationHorizontalScroll {
*/
export const fluentHorizontalScroll = HorizontalScroll.compose<HorizontalScrollOptions>({
baseName: 'horizontal-scroll',
baseClass: FoundationHorizontalScroll,
template,
styles,
nextFlipper: html`
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/number-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const numberFieldStyles = styles;
*/
export const fluentNumberField = NumberField.compose<NumberFieldOptions>({
baseName: 'number-field',
baseClass: FoundationNumberField,
styles,
template,
shadowOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class Select extends FoundationSelect {
*/
export const fluentSelect = Select.compose<SelectOptions>({
baseName: 'select',
baseClass: FoundationSelect,
template,
styles,
indicator: `
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/text-area/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class TextArea extends FoundationTextArea {
*/
export const fluentTextArea = TextArea.compose({
baseName: 'text-area',
baseClass: FoundationTextArea,
template,
styles,
shadowOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/text-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class TextField extends FoundationTextField {
*/
export const fluentTextField = TextField.compose({
baseName: 'text-field',
baseClass: FoundationTextField,
template,
styles,
shadowOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/web-components/src/tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class Tooltip extends FoundationTooltip {
*/
export const fluentTooltip = Tooltip.compose({
baseName: 'tooltip',
baseClass: FoundationTooltip,
template,
styles,
});
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2655,17 +2655,17 @@
resolved "https://registry.yarnpkg.com/@microsoft/fast-colors/-/fast-colors-5.1.3.tgz#5c46147401a823835a3833e3e18dae7f06016966"
integrity sha512-XDEnRYxPO5P3Jsizm4TCxLu1osS/uV3Lym6SfRhq2PxfXPTgEcdvOYDUXyV2drqebs3U5VQnOcYcJiSp73xhng==

"@microsoft/fast-element@^1.5.0":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@microsoft/fast-element/-/fast-element-1.5.0.tgz#fcef9058cb007561f9fa85dcf537cbb618aec8b3"
integrity sha512-usrPwHFdV4w4nZ3vlBbTYy9lXwfu0QJWfjHItgIqBIGkUIoWotW91BQaszt3xlQXx8e3v8294WEMtfc/MCukRA==
"@microsoft/fast-element@^1.5.0", "@microsoft/fast-element@^1.5.1":
version "1.5.1"
resolved "https://registry.yarnpkg.com/@microsoft/fast-element/-/fast-element-1.5.1.tgz#a4e98da1ac0873568360d69dfcf0e4fcc46a374c"
integrity sha512-2wv3svn2fJqT84PrchSNjRjCJ2z74tuzoo7odACouuQaLXuJckv1XexXWUj5INKY6/LB/rN/bJMYauX33JgOZA==

"@microsoft/fast-foundation@^2.10.0":
version "2.10.0"
resolved "https://registry.yarnpkg.com/@microsoft/fast-foundation/-/fast-foundation-2.10.0.tgz#fc3356b5955eb080bfe4ea3be912502eb71400ea"
integrity sha512-E0Q9IogdLQReJCC9jIGM6tGf8631reBhrapZbYiZwrOM/sX7TS2waYy54zsLuI5mOgDdOYFH8LtiHCKwgFVoDw==
"@microsoft/fast-foundation@^2.12.0":
version "2.12.0"
resolved "https://registry.yarnpkg.com/@microsoft/fast-foundation/-/fast-foundation-2.12.0.tgz#d21599531fcda1df83ea37b118f40fdaa547f726"
integrity sha512-cgK8JGpVI4HyH94ddUdHwypg9kdeL/CP42VuxNWydTb2zoZiNsINyx/b/r7KRf8z9KvTH596JeBcS8WJlUGuBw==
dependencies:
"@microsoft/fast-element" "^1.5.0"
"@microsoft/fast-element" "^1.5.1"
"@microsoft/fast-web-utilities" "^4.8.0"
"@microsoft/tsdoc-config" "^0.13.4"
tabbable "^5.2.0"
Expand Down