Skip to content

Commit

Permalink
Merge branch 'release/1.14.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloglacial committed Jul 26, 2024
2 parents 739b421 + a69ff61 commit 7716988
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marceloglacial/brinca-ui",
"version": "1.13.0",
"version": "1.14.0",
"author": "Marcelo Glacial",
"type": "module",
"repository": {
Expand Down
33 changes: 33 additions & 0 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,36 @@ FullWidth.args = {
children: 'Button Full',
full: true,
}

export const Sizes = () => {
return (
<div className='grid gap-4'>
<div className='flex items-center gap-4'>
<div>
<Button size='sm'>Small</Button>
</div>
<div>
<Button size='md'>Medium</Button>
</div>
<div>
<Button size='lg'>Large</Button>
</div>
</div>
<div className='flex items-center gap-4'>
<div>
<Button variant='secondary' size='sm'>
Small
</Button>
</div>
<div>
<Button variant='secondary'>Medium</Button>
</div>
<div>
<Button variant='secondary' size='lg'>
Large
</Button>
</div>
</div>
</div>
)
}
6 changes: 3 additions & 3 deletions src/components/Button/ButtonStyles.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const styles = {
button: `button inline-block text-center py-2 lg:py-3 px-8 lg:px-10 rounded-full transition-all border-2 border-green-600 font-normal whitespace-nowrap`,
button: `button inline-block text-center rounded-full transition-all border-2 border-green-600 font-normal whitespace-nowrap`,
primary: `button--primary bg-green-600 text-white hover:bg-white hover:text-green-600`,
secondary: `button--secondary text-green-600 hover:bg-green-600 hover:text-white`,
disabled: `button--disabled text-gray-400 border-gray-300 bg-gray-50 cursor-not-allowed hover:text-gray-400 hover:border-gray-300 hover:bg-gray-50`,
full: `button--full-width w-full`,
size: {
sm: `py-1 px-6 lg:py-1 lg:px-6`,
md: ``,
sm: `py-1 px-4 `,
md: `py-2 lg:py-3 px-8 lg:px-10`,
lg: `py-3 px-10 lg:py-4 lg:px-12`,
},
}
Expand Down

0 comments on commit 7716988

Please sign in to comment.