|
|
@ -121,6 +121,8 @@ export function Button({ |
|
|
"px-4", |
|
|
"px-4", |
|
|
"text-center", |
|
|
"text-center", |
|
|
"transition-opacity", |
|
|
"transition-opacity", |
|
|
|
|
|
"min-w-0", |
|
|
|
|
|
"overflow-hidden", |
|
|
variant === "outlined" |
|
|
variant === "outlined" |
|
|
? "border border-[#8B8B8B] bg-transparent text-[#8B8B8B]" |
|
|
? "border border-[#8B8B8B] bg-transparent text-[#8B8B8B]" |
|
|
: variant === "dark" |
|
|
: variant === "dark" |
|
|
@ -142,7 +144,7 @@ export function Button({ |
|
|
name="arrowRight" |
|
|
name="arrowRight" |
|
|
aria-hidden="true" |
|
|
aria-hidden="true" |
|
|
className={[ |
|
|
className={[ |
|
|
"size-5", |
|
|
|
|
|
|
|
|
"size-5 shrink-0", |
|
|
direction === "left" |
|
|
direction === "left" |
|
|
? "rotate-180 rtl:rotate-0" |
|
|
? "rotate-180 rtl:rotate-0" |
|
|
: "rotate-0 rtl:rotate-180", |
|
|
: "rotate-0 rtl:rotate-180", |
|
|
@ -157,16 +159,16 @@ export function Button({ |
|
|
const content = isLoading ? ( |
|
|
const content = isLoading ? ( |
|
|
<LoadingThreeDot /> |
|
|
<LoadingThreeDot /> |
|
|
) : ( |
|
|
) : ( |
|
|
<span className="flex w-full items-center justify-center gap-2"> |
|
|
|
|
|
|
|
|
<span className="flex w-full min-w-0 max-w-full items-center justify-center gap-2"> |
|
|
{renderArrow("left")} |
|
|
{renderArrow("left")} |
|
|
<span className="flex min-w-0 flex-col items-center justify-center"> |
|
|
|
|
|
<span className="flex items-center justify-center gap-2 text-center group-16 font-semibold leading-none"> |
|
|
|
|
|
|
|
|
<span className="flex min-w-0 max-w-full flex-1 flex-col items-center justify-center"> |
|
|
|
|
|
<span className="block w-full min-w-0 max-w-full truncate text-center group-16 font-semibold leading-none"> |
|
|
{children} |
|
|
{children} |
|
|
</span> |
|
|
</span> |
|
|
{description && !isOutlined ? ( |
|
|
{description && !isOutlined ? ( |
|
|
<span |
|
|
<span |
|
|
id={countdownId} |
|
|
id={countdownId} |
|
|
className="mt-1 text-center group-10 font-semibold leading-none text-white" |
|
|
|
|
|
|
|
|
className="mt-1 block w-full min-w-0 max-w-full truncate text-center group-10 font-semibold leading-none text-white" |
|
|
> |
|
|
> |
|
|
{description} |
|
|
{description} |
|
|
</span> |
|
|
</span> |
|
|
|