Skip to content

Commit

Permalink
Merge branch 'release/1.15.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloglacial committed Jul 29, 2024
2 parents 7716988 + 3bbf7a1 commit e1bc5ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
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.14.0",
"version": "1.15.0",
"author": "Marcelo Glacial",
"type": "module",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/ButtonStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const styles = {
full: `button--full-width w-full`,
size: {
sm: `py-1 px-4 `,
md: `py-2 lg:py-3 px-8 lg:px-10`,
md: `py-2 px-8 lg:py-3 lg:px-10`,
lg: `py-3 px-10 lg:py-4 lg:px-12`,
},
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ export interface LinkProps {
export const Link: React.FC<LinkProps & JSX.IntrinsicElements['div']> = (props): JSX.Element => {
const { variant = 'default', children, full, size = 'md' } = props
const isFullClassName = full ? styles.full : ''
const isButton = !['default', 'white'].includes(variant)
const linkSize = isButton ? styles.size[size] : ''
const componentProps = {
...props,
full: undefined,
className: `${styles[variant]} ${isFullClassName} ${styles.size[size]} `,
className: `${styles[variant]} ${isFullClassName} ${linkSize} `,
}
return <div {...componentProps}>{children}</div>
}
4 changes: 2 additions & 2 deletions src/components/Link/LinkStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const afterLine = `after:w-0 relative after:absolute after:block after:h-[3px] a
const styles = {
primary: `link link--primary ${button.button} ${button.primary}`,
secondary: `link link--secondary ${button.button} ${button.secondary}`,
default: `link font-normal hover:text-green-600 after:bg-green-600 ${afterLine}`,
white: `link--white font-normal text-white after:bg-white ${afterLine}`,
default: `link inline font-normal hover:text-green-600 after:bg-green-600 ${afterLine}`,
white: `link--white inline font-normal text-white after:bg-white ${afterLine}`,
full: `link--full ${button.full} inline-block text-center`,
size: button.size,
}
Expand Down

0 comments on commit e1bc5ed

Please sign in to comment.