@clasing/ui 0.0.1 → 0.0.3

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 CHANGED
@@ -1,3 +1,5 @@
1
- # ClasingUI
2
-
3
- UI library for Clasing react/nextjs projects
1
+ # ClasingUI
2
+
3
+ UI library for Clasing react/nextjs projects
4
+
5
+ ## Initiliazing the project
package/dist/index.d.ts CHANGED
@@ -1,17 +1,59 @@
1
- /// <reference types="react" />
2
-
3
1
  import { ClassProp } from 'class-variance-authority/types';
4
2
  import { JSX as JSX_2 } from 'react/jsx-runtime';
5
3
  import * as TablerIcons from '@tabler/icons-react';
6
4
  import { VariantProps } from 'class-variance-authority';
7
5
 
6
+ export declare const Badge: ({ children, iconLeft, iconRight, status, intent, size, rounded, className, ...props }: IBadgeProps) => JSX_2.Element;
7
+
8
+ declare const badgeStyles: (props?: ({
9
+ status?: "locked" | "locked-outline" | "available" | "available-outline" | "inProgress" | "inProgress-outline" | "completed" | "completed-outline" | "viewed" | "viewed-outline" | null | undefined;
10
+ intent?: "neutral" | "neutral-outline" | "blue" | "blue-outline" | "mustard" | "mustard-outline" | "green" | "green-outline" | "lime" | "lime-outline" | "fuchsia" | "fuchsia-outline" | "marine" | "marine-outline" | "ice" | "ice-outline" | "gray" | "gray-outline" | null | undefined;
11
+ size?: "small" | "medium" | "large" | null | undefined;
12
+ fontWeight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
13
+ rounded?: "rectangle" | "full" | null | undefined;
14
+ } & ClassProp) | undefined) => string;
15
+
8
16
  export declare const Button: ({ className, intent, size, children, iconLeft, iconRight, isLoading, disabled, ...props }: IButtonProps) => JSX_2.Element;
9
17
 
18
+ export declare const ButtonIcon: ({ iconName, className, intent, size, rounded, disabled, isLoading, notification, ...props }: IButtonIconProps) => JSX_2.Element;
19
+
20
+ declare const buttonIconStyles: (props?: ({
21
+ intent?: "fill" | "outline" | null | undefined;
22
+ size?: "small" | "medium" | "large" | null | undefined;
23
+ rounded?: "full" | "sm" | null | undefined;
24
+ } & ClassProp) | undefined) => string;
25
+
10
26
  declare const buttonStyles: (props?: ({
11
27
  intent?: "outline" | "primary" | "secondary" | "tertiary" | "ghost" | "destructive" | null | undefined;
12
28
  size?: "small" | "medium" | "large" | null | undefined;
13
29
  } & ClassProp) | undefined) => string;
14
30
 
31
+ export declare const Card: ({ className, intent, children, ...props }: ICardProps) => JSX_2.Element;
32
+
33
+ declare const cardStyles: (props?: ({
34
+ intent?: "outline" | "default" | null | undefined;
35
+ } & ClassProp) | undefined) => string;
36
+
37
+ declare interface IBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeStyles> {
38
+ iconLeft?: {
39
+ name: TablerIconName;
40
+ stroke?: number;
41
+ } | TablerIconName;
42
+ iconRight?: {
43
+ name: TablerIconName;
44
+ stroke?: number;
45
+ } | TablerIconName;
46
+ }
47
+
48
+ declare interface IButtonIconProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonIconStyles> {
49
+ iconName: {
50
+ name: TablerIconName;
51
+ stroke?: number;
52
+ } | TablerIconName;
53
+ isLoading?: boolean;
54
+ notification?: boolean;
55
+ }
56
+
15
57
  declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles> {
16
58
  iconLeft?: {
17
59
  name: TablerIconName;
@@ -24,6 +66,49 @@ declare interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElem
24
66
  isLoading?: boolean;
25
67
  }
26
68
 
69
+ declare interface ICardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardStyles> {
70
+ }
71
+
72
+ export declare const IconComponent: ({ iconName, ...props }: IIconComponentProps) => JSX_2.Element | null;
73
+
74
+ declare interface IIconComponentProps {
75
+ iconName: TablerIconName;
76
+ stroke?: number;
77
+ color?: string;
78
+ className?: string;
79
+ }
80
+
81
+ declare interface IProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressBarStyles> {
82
+ progress: number;
83
+ }
84
+
85
+ declare interface ISpinnerProps {
86
+ className?: string;
87
+ }
88
+
89
+ declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textStyles> {
90
+ as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
91
+ className?: string;
92
+ }
93
+
94
+ export declare const ProgressBar: ({ progress, className, intent, size, rounded, ...props }: IProgressBarProps) => JSX_2.Element;
95
+
96
+ declare const progressBarStyles: (props?: ({
97
+ intent?: "blue" | "mustard" | "green" | "lime" | "fuchsia" | "marine" | "ice" | "gray" | "primary" | "violet" | null | undefined;
98
+ size?: "small" | "medium" | "large" | null | undefined;
99
+ rounded?: "full" | "sm" | null | undefined;
100
+ } & ClassProp) | undefined) => string;
101
+
102
+ export declare const Spinner: ({ className }: ISpinnerProps) => JSX_2.Element;
103
+
27
104
  declare type TablerIconName = keyof typeof TablerIcons;
28
105
 
106
+ declare const Text_2: ({ as, intent, className, weight, ...props }: ITextProps) => JSX_2.Element;
107
+ export { Text_2 as Text }
108
+
109
+ declare const textStyles: (props?: ({
110
+ intent?: "display-sm" | "display-lg" | "title-xs" | "title-sm" | "title-md" | "title-lg" | "title-xl" | "label-xs" | "label-sm" | "label-md" | "label-lg" | "label-xl" | "label-2xl" | "label-3xl" | "paragraph-xs" | "paragraph-sm" | "paragraph-md" | "paragraph-lg" | "overline-sm" | "overline-lg" | null | undefined;
111
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
112
+ } & ClassProp) | undefined) => string;
113
+
29
114
  export { }