@turystack/ui 0.0.17 → 0.0.18

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 CHANGED
@@ -2,22 +2,13 @@ import { default as default_2 } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
  import { PropsWithChildren } from 'react';
4
4
 
5
- declare type ComponentClassNameSlots<T extends string> = Partial<Record<T, string>>;
6
-
7
- export declare type ComponentConfig<T extends object, S extends string> = {
8
- classNames?: ComponentClassNameSlots<S>;
9
- defaultProps?: ComponentDefaultProps<T>;
10
- };
11
-
12
- declare type ComponentDefaultProps<T extends object> = Partial<T>;
13
-
14
- export declare function TButton(props: PropsWithChildren<TButtonProps>): JSX.Element;
5
+ export declare function Button(props: PropsWithChildren<ButtonProps>): JSX.Element;
15
6
 
16
- export declare type TButtonProps = {
7
+ export declare type ButtonProps = {
17
8
  form?: string;
18
- type?: TButtonType;
19
- size?: TButtonSize;
20
- variant?: TButtonVariant;
9
+ type?: ButtonType;
10
+ size?: ButtonSize;
11
+ variant?: ButtonVariant;
21
12
  leftSection?: React.ReactNode;
22
13
  rightSection?: React.ReactNode;
23
14
  block?: boolean;
@@ -27,23 +18,32 @@ export declare type TButtonProps = {
27
18
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
28
19
  };
29
20
 
30
- export declare type TButtonSize = 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon-md' | 'icon-lg';
21
+ export declare type ButtonSize = 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon-md' | 'icon-lg';
31
22
 
32
- export declare type TButtonSlots = 'root' | 'loading' | 'leftSection' | 'rightSection';
23
+ export declare type ButtonSlots = 'root' | 'loading' | 'leftSection' | 'rightSection';
33
24
 
34
- export declare type TButtonType = 'button' | 'submit' | 'reset';
25
+ export declare type ButtonType = 'button' | 'submit' | 'reset';
35
26
 
36
- export declare type TButtonVariant = 'default' | 'destructive' | 'outline' | 'dashed' | 'secondary' | 'ghost' | 'link';
27
+ export declare type ButtonVariant = 'default' | 'destructive' | 'outline' | 'dashed' | 'secondary' | 'ghost' | 'link';
28
+
29
+ declare type ComponentClassNameSlots<T extends string> = Partial<Record<T, string>>;
30
+
31
+ export declare type ComponentConfig<T extends object, S extends string> = {
32
+ classNames?: ComponentClassNameSlots<S>;
33
+ defaultProps?: ComponentDefaultProps<T>;
34
+ };
35
+
36
+ declare type ComponentDefaultProps<T extends object> = Partial<T>;
37
37
 
38
- export declare function TLoader({ size }: TLoaderProps): JSX.Element;
38
+ export declare function Loader({ size }: LoaderProps): JSX.Element;
39
39
 
40
- export declare type TLoaderProps = {
41
- size?: TLoaderSize;
40
+ export declare type LoaderProps = {
41
+ size?: LoaderSize;
42
42
  };
43
43
 
44
- export declare type TLoaderSize = 'sm' | 'md' | 'lg';
44
+ export declare type LoaderSize = 'sm' | 'md' | 'lg';
45
45
 
46
- export declare type TLoaderSlots = 'root';
46
+ export declare type LoaderSlots = 'root';
47
47
 
48
48
  export declare function TuryStackProvider({ children, ...props }: TuryStackProviderProps & {
49
49
  children: default_2.ReactNode;
@@ -51,8 +51,8 @@ export declare function TuryStackProvider({ children, ...props }: TuryStackProvi
51
51
 
52
52
  export declare type TuryStackProviderProps = {
53
53
  components?: {
54
- button?: ComponentConfig<TButtonProps, TButtonSlots>;
55
- loader?: ComponentConfig<TLoaderProps, TLoaderSlots>;
54
+ button?: ComponentConfig<ButtonProps, ButtonSlots>;
55
+ loader?: ComponentConfig<LoaderProps, LoaderSlots>;
56
56
  };
57
57
  };
58
58
 
package/dist/index.js CHANGED
@@ -3357,7 +3357,7 @@ function pr({
3357
3357
  return /* @__PURE__ */ H(Qe.Provider, { value: r, children: e });
3358
3358
  }
3359
3359
  export {
3360
- mr as TButton,
3361
- fr as TLoader,
3360
+ mr as Button,
3361
+ fr as Loader,
3362
3362
  pr as TuryStackProvider
3363
3363
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turystack/ui",
3
3
  "private": false,
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",