-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add components to stencil
dist
outputtargets (#2152)
Co-authored-by: Loïc Fürhoff <[email protected]>
- Loading branch information
1 parent
454b534
commit db9eebe
Showing
13 changed files
with
88 additions
and
50 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
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 { Components, JSX } from './components'; | ||
|
||
// Export every single component so it gets included in the dist output | ||
export { PostAlert } from './components/post-alert/post-alert'; | ||
export { PostCollapsible } from './components/post-collapsible/post-collapsible'; | ||
export { PostIcon } from './components/post-icon/post-icon'; | ||
export { PostTabs } from './components/post-tabs/post-tabs'; | ||
export { PostTabHeader } from './components/post-tab-header/post-tab-header'; | ||
export { PostTabPanel } from './components/post-tab-panel/post-tab-panel'; | ||
export { PostTooltip } from './components/post-tooltip/post-tooltip'; |
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
8 changes: 8 additions & 0 deletions
8
packages/documentation/src/stories/getting-started/components/components-cdn-all.sample.html
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,8 @@ | ||
<html> | ||
<head> | ||
<script src="https://cdn.jsdelivr.net/npm/@swisspost/design-system-components/dist/index.js"></script> | ||
</head> | ||
<body> | ||
<post-icon name="1001"></post-icon> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
...s/documentation/src/stories/getting-started/components/components-cdn-esm-all.sample.html
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,11 @@ | ||
<html> | ||
<head> | ||
<script type="module"> | ||
import { defineCustomElements as definePostComponents } from 'https://cdn.jsdelivr.net/npm/@swisspost/design-system-components/loader/index.js'; | ||
definePostComponents(); | ||
</script> | ||
</head> | ||
<body> | ||
<post-icon name="1001"></post-icon> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
...umentation/src/stories/getting-started/components/components-cdn-esm-specific.sample.html
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,11 @@ | ||
<html> | ||
<head> | ||
<script type="module"> | ||
import { defineCustomElement as definePostIcon } from 'https://cdn.jsdelivr.net/npm/@swisspost/design-system-components/dist/components/post-icon.js'; | ||
definePostIcon(); | ||
</script> | ||
</head> | ||
<body> | ||
<post-icon name="1001"></post-icon> | ||
</body> | ||
</html> |
2 changes: 2 additions & 0 deletions
2
packages/documentation/src/stories/getting-started/components/components-js-all.sample.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { defineCustomElements as definePostComponents } from '@swisspost/design-system-components/loader'; | ||
definePostComponents(); |
1 change: 0 additions & 1 deletion
1
...ponents/components-use-specific.sample.js → ...mponents/components-js-specific.sample.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,2 @@ | ||
import { defineCustomElement as definePostIcon } from '@swisspost/design-system-components/dist/components/post-icon'; | ||
|
||
definePostIcon(); |
3 changes: 0 additions & 3 deletions
3
packages/documentation/src/stories/getting-started/components/components-use-all.sample.js
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
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 +1,14 @@ | ||
export { Components, JSX } from './components'; | ||
|
||
// Export every single component so it gets included in the dist output | ||
export { PostInternetHeader } from './components/post-internet-header/post-internet-header'; | ||
export { PostInternetBreadcrumbs } from './components/post-internet-breadcrumbs/post-internet-breadcrumbs'; | ||
export { PostInternetFooter } from './components/post-internet-footer/post-internet-footer'; | ||
|
||
export { PostSkiplinks } from './components/post-skiplinks/post-skiplinks'; | ||
export { PostMetaNavigation } from './components/post-meta-navigation/post-meta-navigation'; | ||
export { PostLanguageSwitch } from './components/post-language-switch/post-language-switch'; | ||
export { PostLogo } from './components/post-logo/post-logo'; | ||
export { PostMainNavigation } from './components/post-main-navigation/post-main-navigation'; | ||
export { PostSearch } from './components/post-search/post-search'; | ||
export { PostKlpLoginWidget } from './components/post-klp-login-widget/post-klp-login-widget'; |
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