-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): enable prefix override (#861)
- Loading branch information
Showing
80 changed files
with
484 additions
and
215 deletions.
There are no files selected for viewing
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
7 changes: 7 additions & 0 deletions
7
change/@vonage-nx-vivid-138899ae-8f78-49cb-8e9b-c1e17817ea91.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 @@ | ||
{ | ||
"comment": "align with custom prefix for custom-elements support", | ||
"type": "none", | ||
"packageName": "@vonage/nx-vivid", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@vonage-vivid-dcd48901-44d8-4cd1-82fb-dca16b03db6f.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": "enable custom prefix for custom-elements", | ||
"packageName": "@vonage/vivid", | ||
"email": "[email protected]", | ||
"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
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
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
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,16 +1,21 @@ | ||
import '../icon'; | ||
|
||
import type { FoundationElementDefinition } from '@microsoft/fast-foundation'; | ||
import { designSystem } from '../../shared/design-system'; | ||
import { designSystem, getPrefix } from '../../shared/design-system'; | ||
import { loadComponentsModules } from '../../shared/utils'; | ||
import styles from './avatar.scss'; | ||
|
||
import { Avatar } from './avatar'; | ||
import { AvatarTemplate as template } from './avatar.template'; | ||
|
||
const prefix = getPrefix(import.meta.url); | ||
const dependencies = ['icon']; | ||
|
||
export const vividAvatar = Avatar.compose<FoundationElementDefinition>({ | ||
baseName: 'avatar', | ||
template: template as any, | ||
styles, | ||
}); | ||
|
||
designSystem.register(vividAvatar()); | ||
(async () => { | ||
await loadComponentsModules(dependencies, prefix); | ||
designSystem.withPrefix(prefix).register(vividAvatar()); | ||
})(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import '../button'; | ||
|
||
import type { FoundationElementDefinition } from '@microsoft/fast-foundation'; | ||
import { designSystem } from '../../shared/design-system'; | ||
import { designSystem, getPrefix } from '../../shared/design-system'; | ||
import { loadComponentsModules } from '../../shared/utils'; | ||
import styles from './banner.scss'; | ||
|
||
import { Banner } from './banner'; | ||
import { BannerTemplate as template } from './banner.template'; | ||
|
||
const prefix = getPrefix(import.meta.url); | ||
|
||
export const vividBanner = Banner.compose<FoundationElementDefinition>({ | ||
baseName: 'banner', | ||
template: template as any, | ||
styles, | ||
}); | ||
|
||
designSystem.register(vividBanner()); | ||
(async () => { | ||
await loadComponentsModules(['button'], prefix); | ||
designSystem.withPrefix(prefix).register(vividBanner()); | ||
})(); |
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
Oops, something went wrong.