-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): upgrading storybook to v7 (#2064)
- Loading branch information
1 parent
053e699
commit efd2598
Showing
53 changed files
with
32,458 additions
and
50,619 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
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 |
---|---|---|
|
@@ -30,4 +30,5 @@ module.exports = { | |
assetsInclude: ['**/*.html'], | ||
}); | ||
}, | ||
framework: '@storybook/html-vite' | ||
}; |
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 |
---|---|---|
|
@@ -10,34 +10,19 @@ All components are published in npm and available on any CDN that host npm modul | |
|
||
```html | ||
<!-- using a specific version --> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@covalent/[email protected]/theme.css" | ||
/> | ||
<script | ||
type="module" | ||
src="https://cdn.jsdelivr.net/npm/@covalent/[email protected]/index.js" | ||
></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/[email protected]/index.mjs"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/[email protected]/style.css" /> | ||
|
||
<!-- using the latest version --> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@covalent/components@latest/theme.css" | ||
/> | ||
<script | ||
type="module" | ||
src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/index.js" | ||
></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/index.mjs"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/components@latest/style.css" /> | ||
``` | ||
|
||
the component bundles are also available individually | ||
|
||
```html | ||
<!-- just include the button component --> | ||
<script | ||
type="module" | ||
src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/button.js" | ||
></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/button.mjs"></script> | ||
``` | ||
|
||
### Basic usage | ||
|
@@ -48,8 +33,8 @@ once the script is loaded, its now possible to start using our custom HTML eleme | |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/components@latest/theme.css" /> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/index.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@covalent/components@latest/index.mjs"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@covalent/components@latest/style.css" /> | ||
</head> | ||
<body> | ||
<cv-button raised>Hello world<cv-button> | ||
|
@@ -79,7 +64,7 @@ Applications using angular can use covalent components in the same way they use | |
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { AppComponent } from './app.component'; | ||
|
||
import '@covalent/components/button.js'; | ||
import '@covalent/components/button'; | ||
|
||
@component({ | ||
standalone: true, | ||
|
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.