@turystack/ui 0.0.0
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 +28 -0
- package/dist/index.js +3289 -0
- package/package.json +96 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import type * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function Button({ form, type, size, variant, leftSection, rightSection, block, loading, disabled, asChild, onClick, children, }: ButtonProps & {
|
|
5
|
+
children?: React_2.ReactNode;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
|
|
8
|
+
export declare type ButtonProps = {
|
|
9
|
+
form?: string;
|
|
10
|
+
type?: ButtonType;
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
variant?: ButtonVariant;
|
|
13
|
+
leftSection?: React.ReactNode;
|
|
14
|
+
rightSection?: React.ReactNode;
|
|
15
|
+
block?: boolean;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export declare type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
|
|
23
|
+
|
|
24
|
+
export declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
25
|
+
|
|
26
|
+
export declare type ButtonVariant = 'default' | 'destructive' | 'outline' | 'dashed' | 'secondary' | 'ghost' | 'link';
|
|
27
|
+
|
|
28
|
+
export { }
|