-
Notifications
You must be signed in to change notification settings - Fork 30
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
a4b79a5
commit f10bdf1
Showing
12 changed files
with
178,668 additions
and
94,366 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
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
17 changes: 17 additions & 0 deletions
17
packages/UI/src/components/atoms/NewButton/NewButton.stories.tsx
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,17 @@ | ||
import type { ComponentStory, ComponentMeta } from '@storybook/react'; | ||
import NewButton from './NewButton'; | ||
|
||
export default { | ||
title: 'Atoms/NewButton', | ||
component: NewButton, | ||
} as ComponentMeta<typeof NewButton>; | ||
|
||
const NavLinkTemplate: ComponentStory<typeof NewButton> = (args) => ( | ||
<NewButton {...args}>Primary</NewButton> | ||
); | ||
|
||
export const Light = NavLinkTemplate.bind({}); | ||
Light.args = { | ||
size: 'default', | ||
type: 'Primary', | ||
}; |
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,32 @@ | ||
import * as React from 'react'; | ||
import { tv, type VariantProps } from 'tailwind-variants'; | ||
|
||
const buttonStyles = tv({ | ||
base: 'flex justify-center rounded-lg', | ||
variants: { | ||
type: { | ||
Primary: | ||
'text-Grey-Scale-white font-normal capitalize leading-normal tracking-wider bg-Blue-blue-600 hover:bg-Blue-blue-700', | ||
}, | ||
size: { | ||
default: 'px-4 py-2', | ||
XL: 'px-6 py-3', | ||
}, | ||
}, | ||
}); | ||
|
||
interface NewButtonProps extends VariantProps<typeof buttonStyles> {} | ||
|
||
const NewButton: React.FC<NewButtonProps> = ({ | ||
children, | ||
size, | ||
type, | ||
...props | ||
}) => { | ||
return ( | ||
<button className={buttonStyles({ size, type })} {...props}> | ||
{children} | ||
</button> | ||
); | ||
}; | ||
export default NewButton; |
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
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
const { filterTokensByType } = require('./fns'); | ||
const tokens = require('./output/core.json'); | ||
|
||
const { filterTokensByType } = require("./fns"); | ||
// const tokens = require("./output/light.json") | ||
|
||
// const colors = filterTokensByType('color', tokens) | ||
const colors = filterTokensByType('color', tokens); | ||
|
||
module.exports = { | ||
purge: [], | ||
darkMode: false, // or 'media' or 'class' | ||
theme: { | ||
// colors, | ||
extend: { | ||
colors, | ||
}, | ||
}, | ||
variants: {}, | ||
plugins: [], | ||
} | ||
}; |
Oops, something went wrong.