mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: initialize email-components vite package
This commit is contained in:
48
shared/email-components/src/lib/Test.stories.tsx
Normal file
48
shared/email-components/src/lib/Test.stories.tsx
Normal file
@@ -0,0 +1,48 @@
|
||||
import React from 'react'
|
||||
// import { AtButton, AtButtonProps, AT_BUTTON_VARIANT } from '.'
|
||||
// import { objectValuesToControls } from '../../../storybook-utils'
|
||||
import { Meta } from '@storybook/react'
|
||||
import { StoryFn } from '@storybook/react'
|
||||
import { Test, TestProps } from './Test';
|
||||
|
||||
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
||||
const meta: Meta<typeof Test> = {
|
||||
title: 'Atoms/Button',
|
||||
component: Test,
|
||||
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
||||
argTypes: {
|
||||
// label: { control: 'text' },
|
||||
// variant: objectValuesToControls(AT_BUTTON_VARIANT),
|
||||
// onClick: { action: 'clicked' },
|
||||
},
|
||||
}
|
||||
export default meta
|
||||
|
||||
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
||||
const Template: StoryFn<typeof Test> = (args: TestProps) => <Test {...args} />
|
||||
|
||||
export const Primary = Template.bind({})
|
||||
// More on args: https://storybook.js.org/docs/react/writing-stories/args
|
||||
Primary.args = {
|
||||
label: 'Button',
|
||||
variant: 'PRIMARY',
|
||||
onClick: () => alert('clicking primary'),
|
||||
}
|
||||
|
||||
export const Secondary = Template.bind({})
|
||||
Secondary.args = {
|
||||
label: 'Button',
|
||||
variant: 'SECONDARY',
|
||||
}
|
||||
|
||||
export const Tertiary = Template.bind({})
|
||||
Tertiary.args = {
|
||||
label: 'Button',
|
||||
variant: 'TERTIARY',
|
||||
}
|
||||
|
||||
export const Disabled = Template.bind({})
|
||||
Disabled.args = {
|
||||
label: 'Button',
|
||||
isDisabled: true,
|
||||
}
|
||||
7
shared/email-components/src/lib/Test.tsx
Normal file
7
shared/email-components/src/lib/Test.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface TestProps {
|
||||
a?: string;
|
||||
}
|
||||
export const Test = (props: TestProps) => {
|
||||
return <h1>asdasd</h1>
|
||||
}
|
||||
7
shared/email-components/src/lib/main.ts
Normal file
7
shared/email-components/src/lib/main.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
const Test = () => {
|
||||
console.log(123123);
|
||||
}
|
||||
|
||||
export default Test;
|
||||
Reference in New Issue
Block a user