mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 06:23:08 +02:00
Move Icon and LoadingIcon to shared package
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user