-
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.
- Loading branch information
Showing
61 changed files
with
11,221 additions
and
20,725 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 |
---|---|---|
|
@@ -12,4 +12,4 @@ dirs: | |
- "./src/Misc" | ||
|
||
layouts: | ||
- "./src/Layouts" | ||
- "./src/Layouts" |
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
module.exports = { | ||
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
"addons": ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/preset-scss", "@storybook/addon-postcss", "@storybook/addon-interactions", "storybook-dark-mode", "@storybook/addon-mdx-gfm"], | ||
"framework": { | ||
name: "@storybook/react-vite", | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/preset-scss', | ||
'@storybook/addon-postcss', | ||
'@storybook/addon-interactions', | ||
'storybook-dark-mode', | ||
'@storybook/addon-mdx-gfm', | ||
'@chromatic-com/storybook' | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {} | ||
}, | ||
docs: { | ||
autodocs: 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
} | ||
date: /Date$/ | ||
} | ||
} | ||
} |
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,14 +1,14 @@ | ||
import React from 'react' | ||
import React from "react"; | ||
|
||
import { Test } from './Test' | ||
import { Test } from "./Test"; | ||
|
||
export default { | ||
title: 'Category/Test', | ||
component: Test | ||
} | ||
title: "Category/Test", | ||
component: Test, | ||
}; | ||
|
||
const Template = (args :any) => <Test {...args} /> | ||
const Template = (args: any) => <Test {...args} />; | ||
|
||
export const Default = Template.bind({}) | ||
export const Default = Template.bind({}); | ||
// @ts-ignore | ||
Default.args = {} | ||
Default.args = {}; |
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,24 +1,25 @@ | ||
import React from 'react' | ||
import PropTypes, { InferProps } from 'prop-types' | ||
import styled from 'styled-components' | ||
import React from "react"; | ||
import PropTypes, { InferProps } from "prop-types"; | ||
import styled from "styled-components"; | ||
|
||
const Div = styled.div` | ||
color: deeppink; | ||
` | ||
`; | ||
|
||
export function Test ({ children, className, ...props }: InferProps<typeof Test.propTypes>) { | ||
export function Test({ | ||
children, | ||
className, | ||
...props | ||
}: InferProps<typeof Test.propTypes>) { | ||
return ( | ||
<Div | ||
className={['CATEGORY__test', 'test', className].join(' ')} | ||
{...props} | ||
> | ||
Hello World ! | ||
<Div className={["CATEGORY__test", "test", className].join(" ")} {...props}> | ||
Hello World ! | ||
</Div> | ||
) | ||
); | ||
} | ||
|
||
Test.propTypes = { | ||
className: PropTypes.string, | ||
children: PropTypes.any, | ||
props: PropTypes.any | ||
} | ||
props: PropTypes.any, | ||
}; |
Oops, something went wrong.