@turystack/ui 0.0.10 → 0.0.12
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 +27 -6
- package/dist/index.js +529 -489
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
1
3
|
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
4
|
+
import { PropsWithChildren } from 'react';
|
|
3
5
|
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
export declare function Button({ form, type, size, variant, leftSection, rightSection, block, loading, disabled, asChild, onClick, children, }: ButtonProps & {
|
|
7
|
-
children?: React_2.ReactNode;
|
|
8
|
-
}): JSX.Element;
|
|
6
|
+
export declare function Button(props: PropsWithChildren<ButtonProps>): JSX.Element;
|
|
9
7
|
|
|
10
8
|
export declare type ButtonProps = {
|
|
11
9
|
form?: string;
|
|
@@ -23,8 +21,31 @@ export declare type ButtonProps = {
|
|
|
23
21
|
|
|
24
22
|
export declare type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
|
|
25
23
|
|
|
24
|
+
export declare type ButtonSlots = 'root' | 'loading' | 'leftSection' | 'rightSection';
|
|
25
|
+
|
|
26
26
|
export declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
27
27
|
|
|
28
28
|
export declare type ButtonVariant = 'default' | 'destructive' | 'outline' | 'dashed' | 'secondary' | 'ghost' | 'link';
|
|
29
29
|
|
|
30
|
+
declare type ComponentClassNameSlots<T extends string> = Partial<Record<T, string>>;
|
|
31
|
+
|
|
32
|
+
declare type ComponentDefaultProps<T extends object> = Partial<T>;
|
|
33
|
+
|
|
34
|
+
export declare const TuryStackContext: Context<TuryStackProviderProps | undefined>;
|
|
35
|
+
|
|
36
|
+
export declare function TuryStackProvider({ children, ...props }: TuryStackProviderProps & {
|
|
37
|
+
children: default_2.ReactNode;
|
|
38
|
+
}): JSX.Element;
|
|
39
|
+
|
|
40
|
+
export declare type TuryStackProviderProps = {
|
|
41
|
+
components?: {
|
|
42
|
+
button?: {
|
|
43
|
+
classNames?: ComponentClassNameSlots<ButtonSlots>;
|
|
44
|
+
defaultProps?: ComponentDefaultProps<ButtonProps>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export declare function useTuryStack(): TuryStackProviderProps | undefined;
|
|
50
|
+
|
|
30
51
|
export { }
|