@clasing/ui 0.0.1

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # ClasingUI
2
+
3
+ UI library for Clasing react/nextjs projects
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+
3
+ import { ClassProp } from 'class-variance-authority/types';
4
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
5
+ import * as TablerIcons from '@tabler/icons-react';
6
+ import { VariantProps } from 'class-variance-authority';
7
+
8
+ export declare const Button: ({ className, intent, size, children, iconLeft, iconRight, isLoading, disabled, ...props }: IButtonProps) => JSX_2.Element;
9
+
10
+ declare const buttonStyles: (props?: ({
11
+ intent?: "outline" | "primary" | "secondary" | "tertiary" | "ghost" | "destructive" | null | undefined;
12
+ size?: "small" | "medium" | "large" | null | undefined;
13
+ } & ClassProp) | undefined) => string;
14
+
15
+ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles> {
16
+ iconLeft?: {
17
+ name: TablerIconName;
18
+ stroke?: number;
19
+ } | TablerIconName;
20
+ iconRight?: {
21
+ name: TablerIconName;
22
+ stroke?: number;
23
+ } | TablerIconName;
24
+ isLoading?: boolean;
25
+ }
26
+
27
+ declare type TablerIconName = keyof typeof TablerIcons;
28
+
29
+ export { }