@donkit-ai/design-system 1.1.25 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface ButtonProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'
|
|
|
27
27
|
fullWidth?: boolean;
|
|
28
28
|
icon?: ReactNode;
|
|
29
29
|
disabled?: boolean;
|
|
30
|
+
state?: 'idle' | 'loading' | 'success' | 'error';
|
|
30
31
|
onClick?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
31
32
|
type?: 'button' | 'submit' | 'reset';
|
|
32
33
|
href?: string;
|
|
@@ -323,8 +324,8 @@ export declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
|
323
324
|
// ─── Spinner ──────────────────────────────────────────────────────────────
|
|
324
325
|
|
|
325
326
|
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
326
|
-
size?:
|
|
327
|
-
color?: 'default' | '
|
|
327
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
328
|
+
color?: 'default' | 'secondary' | 'on-accent';
|
|
328
329
|
}
|
|
329
330
|
|
|
330
331
|
export declare function Spinner(props: SpinnerProps): JSX.Element;
|