-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
508 changed files
with
20,595 additions
and
12,562 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
plugins: ["@babel/plugin-transform-runtime"], | ||
presets: [ | ||
"@babel/preset-react", | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
useBuiltIns: "entry", | ||
corejs: "3.23", | ||
browserslistEnv: "production" | ||
}, | ||
], | ||
], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
extends: ["react-app", "plugin:jsx-a11y/recommended"], | ||
plugins: ["jsx-a11y"], | ||
overrides: [ | ||
{ | ||
files: ["**/*.stories.*"], | ||
rules: { | ||
"import/no-anonymous-default-export": "off", | ||
}, | ||
}, | ||
], | ||
ignorePatterns: ["node_modules", "coverage", "config", "lib", "docs", "storybook-static", "results"], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm commitlint --edit $1 |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm precommit |
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,3 @@ | ||
shamefully-hoist=true | ||
auto-install-peers=true | ||
strict-peer-dependencies=false |
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,6 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"jsxBracketSameLine": false, | ||
"trailingComma": "es5" | ||
} | ||
"printWidth": 120, | ||
"jsxBracketSameLine": false, | ||
"trailingComma": "es5" | ||
} | ||
File renamed without changes.
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,27 +1,33 @@ | ||
const path = require('path'); | ||
const { mergeConfig } = require('vite'); | ||
|
||
module.exports = { | ||
core: { | ||
builder: 'webpack5', | ||
"stories": [ | ||
"../src/components/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
"addons": [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions" | ||
], | ||
"framework": "@storybook/react", | ||
"core": { | ||
"builder": "@storybook/builder-vite" | ||
}, | ||
"features": { | ||
"storyStoreV7": true | ||
}, | ||
typescript: { | ||
check: false, | ||
}, | ||
stories: ['../src/**/*.stories.js'], | ||
addons: [ | ||
'@storybook/preset-create-react-app', | ||
{ | ||
name: '@storybook/addon-storysource', | ||
options: { | ||
rule: { | ||
include: [path.resolve(__dirname, '../src')], | ||
}, | ||
loaderOptions: { | ||
prettierConfig: { printWidth: 80, singleQuote: false }, | ||
}, | ||
async viteFinal(config) { | ||
// return the customized config | ||
return mergeConfig(config, { | ||
define: { | ||
// By default, Vite doesn't include shims for NodeJS/ | ||
// necessary for segment analytics lib to work | ||
global: {}, | ||
}, | ||
}, | ||
'@storybook/addon-knobs', | ||
'@storybook/addon-actions', | ||
'@storybook/addon-links', | ||
'@storybook/addon-a11y', | ||
'storybook-readme', | ||
], | ||
}; | ||
|
||
}); | ||
}, | ||
} |
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
10 changes: 6 additions & 4 deletions
10
.storybook/preview-body.html → .storybook/preview-head.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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<!-- <script> | ||
window.global = window; | ||
</script> --> | ||
<link href="https://1.www.s81c.com/common/carbon/plex/sans.css" rel="stylesheet"> | ||
<link href="https://1.www.s81c.com/common/carbon/plex/mono.css" rel="stylesheet"> | ||
|
||
<style> | ||
#root { | ||
background: var(--cds-ui-background, #f2f4f8); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
} | ||
|
||
body { | ||
background: var(--cds-ui-background, #f2f4f8); | ||
font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif !important; | ||
font-family: 'IBM Plex Sans', sans-serif !important; | ||
} | ||
</style> | ||
</style> |
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,7 +1,11 @@ | ||
import { addDecorator } from '@storybook/react'; | ||
import { withInfo } from '@storybook/addon-info'; | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import './styles.scss'; | ||
|
||
addDecorator(withKnobs); | ||
addDecorator(withInfo); | ||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.