-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from zer0-os/develop
Release 0.1.0
- Loading branch information
Showing
166 changed files
with
19,777 additions
and
12,475 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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
node_modules | ||
out | ||
next.config.js | ||
tailwind.config.js | ||
dist | ||
dist-storybook | ||
jest.config.js | ||
jest.setup.ts | ||
babel.config.js | ||
lint-staged.config.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
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,4 +1,7 @@ | ||
node_modules/ | ||
build/ | ||
storybook-static/ | ||
dist/ | ||
dist-storybook/ | ||
dist/ | ||
idea/ | ||
.npmrc | ||
*.tgz |
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,5 @@ | ||
/* | ||
!dist/**/* | ||
dist/**/*.test.js | ||
dist/**/*.test.d.ts | ||
dist/**/*.test.d.ts.map |
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 @@ | ||
16.13.2 |
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,5 @@ | ||
node_modules | ||
dist | ||
dist-storybook | ||
.idea | ||
.vscode |
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,18 @@ | ||
{ | ||
"singleQuote": false, | ||
"semi": true, | ||
"arrowParens": "always", | ||
"printWidth": 120 | ||
} | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"arrowParens": "avoid", | ||
"requirePragma": false, | ||
"insertPragma": false, | ||
"proseWrap": "preserve", | ||
"htmlWhitespaceSensitivity": "css", | ||
"endOfLine": "auto" | ||
} |
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,16 @@ | ||
/* eslint-disable */ | ||
const path = require('path'); | ||
const fse = require('fs-extra'); | ||
|
||
const exportStyles = () => { | ||
console.log('\x1b[36m', `Copying styles to dist...`, '\x1b[0m'); | ||
|
||
const srcDir = path.resolve(__dirname, '../src/styles'); | ||
const destDir = path.resolve(__dirname, '../dist/styles'); | ||
|
||
fse.copySync(srcDir, destDir, { overwrite: true }); | ||
|
||
console.log('\x1b[36m', 'Successfully copied!', '\x1b[0m'); | ||
}; | ||
|
||
exportStyles(); |
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,31 @@ | ||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin').default; | ||
const componentsFolder = '../src/components/'; | ||
|
||
module.exports = { | ||
stories: ["../src/**/*.stories.tsx"], | ||
addons: ["@storybook/addon-essentials"], | ||
typescript: { | ||
check: false, | ||
checkOptions: {}, | ||
reactDocgen: "react-docgen-typescript", | ||
reactDocgenTypescriptOptions: { | ||
shouldExtractLiteralValuesFromEnum: true, | ||
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true), | ||
}, | ||
stories: [componentsFolder + '**/*.stories.tsx', componentsFolder + '.storybook/**/*.stories.tsx'], | ||
addons: ['@storybook/addon-essentials'], | ||
core: { | ||
builder: 'webpack5' | ||
}, | ||
features: { | ||
postcss: false, | ||
typescript: { | ||
check: true | ||
}, | ||
webpackFinal: async config => { | ||
// Remove the existing css rule (fixes imports from modules) | ||
config.module.rules = config.module.rules.filter(rule => rule.test.toString() !== '/\\.css$/'); | ||
|
||
config.module.rules.push({ | ||
test: /\.scss$/, | ||
use: ['style-loader', 'css-loader', 'sass-loader'] | ||
}); | ||
|
||
config.module.rules.push({ | ||
test: /\.css$/i, | ||
use: ['style-loader', 'css-loader'] | ||
}); | ||
|
||
config.plugins = [...(config.plugins || []), new TsconfigPathsPlugin()]; | ||
|
||
return config; | ||
} | ||
}; |
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 @@ | ||
<link | ||
rel="icon" | ||
href="https://res.cloudinary.com/fact0ry-dev/image/upload/v1648061030/zero-assets/zer0-os/zero-logo-round.png" | ||
/> |
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 @@ | ||
import { addons } from '@storybook/addons'; | ||
import { theme } from './theme'; | ||
|
||
addons.setConfig({ | ||
theme, | ||
panelPosition: 'right' | ||
}); |
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,2 +1,4 @@ | ||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" | ||
rel="stylesheet" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" | ||
rel="stylesheet" | ||
/> |
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,15 +1,29 @@ | ||
import React from "react"; | ||
|
||
import { ZeroUIProvider } from "../src/providers/ZeroUIProvider"; | ||
import React from 'react'; | ||
import { MemoryRouter } from 'react-router-dom'; | ||
import ZUIProvider from '../src/ZUIProvider'; | ||
|
||
export const decorators = [ | ||
(Story) => ( | ||
<ZeroUIProvider> | ||
<Story /> | ||
</ZeroUIProvider> | ||
), | ||
Story => { | ||
return ( | ||
<MemoryRouter initialEntries={['/']}> | ||
<ZUIProvider> | ||
<Story /> | ||
</ZUIProvider> | ||
</MemoryRouter> | ||
); | ||
} | ||
]; | ||
|
||
export const parameters = { | ||
controls: { expanded: true }, | ||
previewTabs: { | ||
canvas: { | ||
title: 'Story', | ||
hidden: false | ||
} | ||
}, | ||
controls: { | ||
expanded: true | ||
}, | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
options: { showPanel: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { create } from '@storybook/theming'; | ||
|
||
export const theme = create({ | ||
base: 'light', | ||
brandTitle: 'ZUI 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
dist | ||
dist-storybook | ||
.yarn/cache |
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 @@ | ||
{ | ||
"extends": ["stylelint-config-recommended-scss", "stylelint-config-prettier"], | ||
"rules": { | ||
"selector-pseudo-class-no-unknown": [ | ||
true, | ||
{ | ||
"ignorePseudoClasses": ["export"] | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.