-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6139e24
commit e33ea41
Showing
11 changed files
with
38,302 additions
and
12,987 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/_site/ | ||
/js/coverage/ | ||
/site/static/sw.js | ||
/site/storybook/ |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Note: addon-measure is forced to false in order to avoid it enabled in ZeroHeight | ||
module.exports = { | ||
"stories": [ | ||
"../stories/**/*.stories.mdx", | ||
"../stories/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
"addons": [ | ||
"@storybook/addon-a11y", | ||
"@storybook/addon-links", | ||
{ | ||
name: "@storybook/addon-essentials", | ||
options: { | ||
measure: false | ||
} | ||
}, | ||
"@storybook/addon-interactions", | ||
"@storybook/preset-scss" | ||
], | ||
"framework": "@storybook/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,6 @@ | ||
import { addons } from '@storybook/addons'; | ||
import OrangeTheme from 'ods-storybook-theme/OrangeTheme.js'; | ||
|
||
addons.setConfig({ | ||
theme: OrangeTheme, | ||
}); |
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,19 @@ | ||
|
||
<!-- Preconnect to CDN: remove if not needed --> | ||
<link href="https://cdn.jsdelivr.net" rel="preconnect" crossorigin="anonymous"> | ||
|
||
<!-- | ||
Neue Helvetica is a trademark of Monotype Imaging Inc. registered in the U.S. | ||
Patent and Trademark Office and may be registered in certain other jurisdictions. | ||
Copyright © 2014 Monotype Imaging Inc. All rights reserved. | ||
Orange has purchased the right to use Helvetica in its websites and mobile applications. | ||
If you are not autorized to used it, don't include the orangeHelvetica.css | ||
See NOTICE.txt for more informations. | ||
--> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5/dist/fonts/HelvNeue55_W1G.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous"> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5/dist/fonts/HelvNeue75_W1G.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous"> | ||
<!-- Copyright © 2014 Monotype Imaging Inc. All rights reserved --> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5/dist/css/orange-helvetica.min.css" rel="stylesheet" crossorigin="anonymous"> | ||
|
||
<!-- Boosted CSS --> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5/dist/css/boosted.min.css" rel="stylesheet" crossorigin="anonymous"> |
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,24 @@ | ||
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; | ||
import './storybook.scss'; | ||
import prettier from 'prettier/esm/standalone'; | ||
import htmlParser from 'prettier/esm/parser-html'; | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
expanded: true | ||
}, | ||
viewport: { viewports: INITIAL_VIEWPORTS }, | ||
docs: { | ||
transformSource: (src) => { | ||
// Remove `() => `` from stories | ||
const match = /^\(\) => [`'"](.*)['`"]$/sm.exec(src); | ||
// Pretty print the Docs code source | ||
return match ? prettier.format(match[1].trim(), {printWidth: 120, parser: "html", plugins: [htmlParser]}) : src; | ||
} | ||
} | ||
} |
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 @@ | ||
pre.prismjs { | ||
color: #fff; | ||
|
||
code { | ||
font-size: 0.8rem; | ||
} | ||
} |
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.