Move Icon and LoadingIcon to shared package

This commit is contained in:
Gregory Schier
2026-03-07 08:00:14 -08:00
parent d99898f39b
commit 3586c8fe24
62 changed files with 64 additions and 90 deletions

View File

@@ -1,16 +1,6 @@
import type { Color } from "@yaakapp-internal/plugins";
import type { HTMLAttributes, ReactNode } from "react";
type ButtonColor =
| "default"
| "custom"
| "primary"
| "secondary"
| "info"
| "success"
| "notice"
| "warning"
| "danger";
type ButtonVariant = "border" | "solid";
type ButtonSize = "2xs" | "xs" | "sm" | "md" | "auto";
@@ -19,8 +9,8 @@ export type ButtonProps = Omit<
"color" | "onChange"
> & {
innerClassName?: string;
color?: ButtonColor;
tone?: Exclude<ButtonColor, "custom">;
color?: Color | "custom" | "default";
tone?: Color | "default";
variant?: ButtonVariant;
isLoading?: boolean;
size?: ButtonSize;