diditui 0.0.9 → 0.0.10
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/diditui.d.ts +10 -5
- package/dist/diditui.js +976 -922
- package/dist/diditui.umd.cjs +23 -23
- package/package.json +1 -1
package/dist/diditui.d.ts
CHANGED
|
@@ -16,15 +16,20 @@ declare type AsProp<C extends default_2.ElementType> = {
|
|
|
16
16
|
as?: C;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export declare function Button({ size, variant, icon, isLoading, disabled, className, children, ...props }: ButtonProps): JSX_2.Element;
|
|
19
|
+
export declare function Button({ size, variant, icon, isLoading, animate, disabled, className, children, ...props }: ButtonProps): JSX_2.Element;
|
|
20
20
|
|
|
21
|
-
declare type ButtonProps = ComponentProps<'button'> & {
|
|
22
|
-
variant?: 'default' | 'primary' | 'soft' | 'white';
|
|
23
|
-
size?: 'md' | 'lg';
|
|
21
|
+
declare type ButtonProps = ComponentProps<'button'> & VariantProps<typeof buttonStyles> & {
|
|
24
22
|
icon?: IconType;
|
|
25
|
-
isLoading?: boolean;
|
|
26
23
|
};
|
|
27
24
|
|
|
25
|
+
declare const buttonStyles: (props?: ({
|
|
26
|
+
variant?: "default" | "primary" | "soft" | "white" | null | undefined;
|
|
27
|
+
size?: "md" | "lg" | null | undefined;
|
|
28
|
+
disabled?: boolean | null | undefined;
|
|
29
|
+
isLoading?: boolean | null | undefined;
|
|
30
|
+
animate?: boolean | null | undefined;
|
|
31
|
+
} & ClassProp) | undefined) => string;
|
|
32
|
+
|
|
28
33
|
export declare function Card({ className, padding, shadow, children, ...props }: CardProps): JSX_2.Element;
|
|
29
34
|
|
|
30
35
|
declare type CardProps = ComponentProps<'div'> & VariantProps<typeof cardStyles>;
|