Changes for commercial use (#138)

This commit is contained in:
Gregory Schier
2024-12-03 09:28:27 -08:00
committed by GitHub
parent 2b076c90e4
commit 88bcfb9e66
49 changed files with 1072 additions and 96 deletions

View File

@@ -4,7 +4,7 @@ import type { ReactNode } from 'react';
interface Props {
children: ReactNode;
className?: string;
color?: 'primary' | 'secondary' | 'success' | 'notice' | 'warning' | 'danger';
color?: 'primary' | 'secondary' | 'success' | 'notice' | 'warning' | 'danger' | 'info';
}
export function Banner({ children, className, color = 'secondary' }: Props) {

View File

@@ -73,7 +73,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button
size === 'md' && 'h-md px-3 rounded-md',
size === 'sm' && 'h-sm px-2.5 rounded-md',
size === 'xs' && 'h-xs px-2 text-sm rounded-md',
size === '2xs' && 'h-2xs px-1 text-xs rounded',
size === '2xs' && 'h-2xs px-2 text-xs rounded',
// Solids
variant === 'solid' && 'border-transparent',

View File

@@ -18,11 +18,11 @@ export function Link({ href, children, className, ...other }: Props) {
href={href}
target="_blank"
rel="noopener noreferrer"
className={classNames(className, 'pr-4')}
className={classNames(className, 'pr-4 inline-flex items-center')}
{...other}
>
<span className="underline">{children}</span>
<Icon className="inline absolute right-0.5 top-0.5" size="xs" icon="external_link" />
<Icon className="inline absolute right-0.5 top-1.5" size="xs" icon="external_link" />
</a>
);
}