@siriux/ui 1.0.0 → 1.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/dist/components/Icon.d.ts +11 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/auth/ForgotPasswordForm.d.ts +8 -1
- package/dist/components/auth/ForgotPasswordForm.d.ts.map +1 -1
- package/dist/components/auth/RegisterForm.d.ts +8 -1
- package/dist/components/auth/RegisterForm.d.ts.map +1 -1
- package/dist/components/auth/index.d.ts +2 -0
- package/dist/components/auth/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/Footer.d.ts +8 -0
- package/dist/components/layout/Footer.d.ts.map +1 -0
- package/dist/components/layout/Header.d.ts +8 -0
- package/dist/components/layout/Header.d.ts.map +1 -0
- package/dist/components/layout/Sidebar.d.ts +9 -0
- package/dist/components/layout/Sidebar.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +3 -1
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/ui/Badge.d.ts +6 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +8 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/Card.d.ts +15 -0
- package/dist/components/ui/Card.d.ts.map +1 -0
- package/dist/components/ui/Input.d.ts +8 -0
- package/dist/components/ui/Input.d.ts.map +1 -0
- package/dist/components/ui/Separator.d.ts +6 -0
- package/dist/components/ui/Separator.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +5 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/contexts/AuthContext.d.ts +1 -0
- package/dist/contexts/AuthContext.d.ts.map +1 -1
- package/dist/icons/index.d.ts +95 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.d.ts +123 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +30406 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +30411 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconProps {
|
|
3
|
+
name: string;
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
fallbackToCustom?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Icon: React.FC<IconProps>;
|
|
10
|
+
export default Icon;
|
|
11
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/components/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2EpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ForgotPasswordFormProps {
|
|
3
|
+
onSuccess?: () => void;
|
|
4
|
+
onError?: (error: string) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ForgotPasswordForm: React.FC<ForgotPasswordFormProps>;
|
|
8
|
+
export {};
|
|
2
9
|
//# sourceMappingURL=ForgotPasswordForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForgotPasswordForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/ForgotPasswordForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ForgotPasswordForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/ForgotPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,UAAU,uBAAuB;IAC/B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+HhE,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RegisterFormProps {
|
|
3
|
+
onSuccess?: (user: any) => void;
|
|
4
|
+
onError?: (error: string) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const RegisterForm: React.FC<RegisterFormProps>;
|
|
8
|
+
export {};
|
|
2
9
|
//# sourceMappingURL=RegisterForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/RegisterForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RegisterForm.d.ts","sourceRoot":"","sources":["../../../src/components/auth/RegisterForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4MpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/layout/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,WAAW;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmIxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/layout/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,WAAW;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8IxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAUD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAsM1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;CAC/D;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsBtC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: 'default' | 'outline' | 'ghost' | 'destructive';
|
|
4
|
+
size?: 'default' | 'sm' | 'lg';
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
8
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAChF,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;IAC1D,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqCxC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: 'default' | 'outlined';
|
|
4
|
+
}
|
|
5
|
+
export interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
}
|
|
7
|
+
export interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
8
|
+
}
|
|
9
|
+
export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const Card: React.FC<CardProps>;
|
|
12
|
+
export declare const CardHeader: React.FC<CardHeaderProps>;
|
|
13
|
+
export declare const CardTitle: React.FC<CardTitleProps>;
|
|
14
|
+
export declare const CardContent: React.FC<CardContentProps>;
|
|
15
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CAClC;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEhF,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;CAAG;AAEnF,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAmBpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAUhD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAU9C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAUlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+CtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAgB9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -16,6 +16,7 @@ export interface AuthContextType {
|
|
|
16
16
|
tokens: AuthTokens | null;
|
|
17
17
|
isAuthenticated: boolean;
|
|
18
18
|
isLoading: boolean;
|
|
19
|
+
loading: boolean;
|
|
19
20
|
login: (email: string, password: string) => Promise<void>;
|
|
20
21
|
register: (userData: RegisterData) => Promise<void>;
|
|
21
22
|
logout: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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CAAC;CAC3D;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8MpD,CAAC;AAEF,eAAO,MAAM,OAAO,QAAO,eAM1B,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare const CUSTOM_ICONS: {
|
|
2
|
+
readonly 'alsirius-logo': "alsirius-logo";
|
|
3
|
+
readonly 'alsirius-logo-icon': "alsirius-logo-icon";
|
|
4
|
+
readonly 'alsirius-logo-icon-26': "alsirius-logo-icon-26";
|
|
5
|
+
readonly 'alsirius-logo-icon-black-2025': "alsirius-logo-icon-black-2025";
|
|
6
|
+
readonly 'alsirius-logo-icon-white-2025': "alsirius-logo-icon-white-2025";
|
|
7
|
+
readonly 'alsirius-logo-transparent-2025': "alsirius-logo-transparent-2025";
|
|
8
|
+
readonly 'alsirius-logo-white-2025': "alsirius-logo-white-2025";
|
|
9
|
+
readonly shield: "shield";
|
|
10
|
+
readonly shield_a: "shield_a";
|
|
11
|
+
readonly shield_b: "shield_b";
|
|
12
|
+
readonly 'chart-bar': "chart-bar";
|
|
13
|
+
readonly users: "users";
|
|
14
|
+
readonly 'file-text': "file-text";
|
|
15
|
+
readonly 'chat-bar': "chat-bar";
|
|
16
|
+
};
|
|
17
|
+
export declare function isCustomIcon(name: string): boolean;
|
|
18
|
+
export declare const LUCIDE_ICONS: {
|
|
19
|
+
readonly menu: "Menu";
|
|
20
|
+
readonly x: "X";
|
|
21
|
+
readonly 'chevron-down': "ChevronDown";
|
|
22
|
+
readonly 'chevron-up': "ChevronUp";
|
|
23
|
+
readonly 'chevron-left': "ChevronLeft";
|
|
24
|
+
readonly 'chevron-right': "ChevronRight";
|
|
25
|
+
readonly plus: "Plus";
|
|
26
|
+
readonly minus: "Minus";
|
|
27
|
+
readonly edit: "Edit";
|
|
28
|
+
readonly trash: "Trash";
|
|
29
|
+
readonly search: "Search";
|
|
30
|
+
readonly filter: "Filter";
|
|
31
|
+
readonly download: "Download";
|
|
32
|
+
readonly upload: "Upload";
|
|
33
|
+
readonly user: "User";
|
|
34
|
+
readonly users: "Users";
|
|
35
|
+
readonly 'user-plus': "UserPlus";
|
|
36
|
+
readonly 'user-minus': "UserMinus";
|
|
37
|
+
readonly 'log-in': "LogIn";
|
|
38
|
+
readonly 'log-out': "LogOut";
|
|
39
|
+
readonly key: "Key";
|
|
40
|
+
readonly shield: "Shield";
|
|
41
|
+
readonly lock: "Lock";
|
|
42
|
+
readonly unlock: "Unlock";
|
|
43
|
+
readonly mail: "Mail";
|
|
44
|
+
readonly phone: "Phone";
|
|
45
|
+
readonly 'message-circle': "MessageCircle";
|
|
46
|
+
readonly send: "Send";
|
|
47
|
+
readonly bell: "Bell";
|
|
48
|
+
readonly 'bar-chart': "BarChart";
|
|
49
|
+
readonly 'line-chart': "LineChart";
|
|
50
|
+
readonly 'pie-chart': "PieChart";
|
|
51
|
+
readonly 'trending-up': "TrendingUp";
|
|
52
|
+
readonly 'trending-down': "TrendingDown";
|
|
53
|
+
readonly target: "Target";
|
|
54
|
+
readonly zap: "Zap";
|
|
55
|
+
readonly star: "Star";
|
|
56
|
+
readonly heart: "Heart";
|
|
57
|
+
readonly file: "File";
|
|
58
|
+
readonly 'file-text': "FileText";
|
|
59
|
+
readonly folder: "Folder";
|
|
60
|
+
readonly 'folder-open': "FolderOpen";
|
|
61
|
+
readonly archive: "Archive";
|
|
62
|
+
readonly save: "Save";
|
|
63
|
+
readonly copy: "Copy";
|
|
64
|
+
readonly clipboard: "Clipboard";
|
|
65
|
+
readonly settings: "Settings";
|
|
66
|
+
readonly cog: "Cog";
|
|
67
|
+
readonly wrench: "Wrench";
|
|
68
|
+
readonly tool: "Tool";
|
|
69
|
+
readonly sliders: "Sliders";
|
|
70
|
+
readonly image: "Image";
|
|
71
|
+
readonly video: "Video";
|
|
72
|
+
readonly music: "Music";
|
|
73
|
+
readonly camera: "Camera";
|
|
74
|
+
readonly mic: "Mic";
|
|
75
|
+
readonly 'volume-2': "Volume2";
|
|
76
|
+
readonly 'volume-x': "VolumeX";
|
|
77
|
+
readonly check: "Check";
|
|
78
|
+
readonly 'check-circle': "CheckCircle";
|
|
79
|
+
readonly 'x-circle': "XCircle";
|
|
80
|
+
readonly 'alert-circle': "AlertCircle";
|
|
81
|
+
readonly 'alert-triangle': "AlertTriangle";
|
|
82
|
+
readonly info: "Info";
|
|
83
|
+
readonly 'help-circle': "HelpCircle";
|
|
84
|
+
readonly calendar: "Calendar";
|
|
85
|
+
readonly clock: "Clock";
|
|
86
|
+
readonly timer: "Timer";
|
|
87
|
+
readonly watch: "Watch";
|
|
88
|
+
readonly github: "Github";
|
|
89
|
+
readonly twitter: "Twitter";
|
|
90
|
+
readonly facebook: "Facebook";
|
|
91
|
+
readonly instagram: "Instagram";
|
|
92
|
+
readonly linkedin: "Linkedin";
|
|
93
|
+
readonly youtube: "Youtube";
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAkBf,CAAC;AAGX,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAGD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGf,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ClassValue } from 'clsx';
|
|
2
3
|
|
|
3
4
|
interface User {
|
|
4
5
|
id: string;
|
|
@@ -17,6 +18,7 @@ interface AuthContextType {
|
|
|
17
18
|
tokens: AuthTokens | null;
|
|
18
19
|
isAuthenticated: boolean;
|
|
19
20
|
isLoading: boolean;
|
|
21
|
+
loading: boolean;
|
|
20
22
|
login: (email: string, password: string) => Promise<void>;
|
|
21
23
|
register: (userData: RegisterData) => Promise<void>;
|
|
22
24
|
logout: () => void;
|
|
@@ -43,7 +45,127 @@ interface LoginFormProps {
|
|
|
43
45
|
}
|
|
44
46
|
declare const LoginForm: React.FC<LoginFormProps>;
|
|
45
47
|
|
|
48
|
+
interface RegisterFormProps {
|
|
49
|
+
onSuccess?: (user: any) => void;
|
|
50
|
+
onError?: (error: string) => void;
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
declare const RegisterForm: React.FC<RegisterFormProps>;
|
|
54
|
+
|
|
55
|
+
interface ForgotPasswordFormProps {
|
|
56
|
+
onSuccess?: () => void;
|
|
57
|
+
onError?: (error: string) => void;
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
60
|
+
declare const ForgotPasswordForm: React.FC<ForgotPasswordFormProps>;
|
|
61
|
+
|
|
62
|
+
interface IconProps {
|
|
63
|
+
name: string;
|
|
64
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
65
|
+
className?: string;
|
|
66
|
+
onClick?: () => void;
|
|
67
|
+
fallbackToCustom?: boolean;
|
|
68
|
+
}
|
|
69
|
+
declare const Icon: React.FC<IconProps>;
|
|
70
|
+
|
|
71
|
+
declare const CUSTOM_ICONS: {
|
|
72
|
+
readonly 'alsirius-logo': "alsirius-logo";
|
|
73
|
+
readonly 'alsirius-logo-icon': "alsirius-logo-icon";
|
|
74
|
+
readonly 'alsirius-logo-icon-26': "alsirius-logo-icon-26";
|
|
75
|
+
readonly 'alsirius-logo-icon-black-2025': "alsirius-logo-icon-black-2025";
|
|
76
|
+
readonly 'alsirius-logo-icon-white-2025': "alsirius-logo-icon-white-2025";
|
|
77
|
+
readonly 'alsirius-logo-transparent-2025': "alsirius-logo-transparent-2025";
|
|
78
|
+
readonly 'alsirius-logo-white-2025': "alsirius-logo-white-2025";
|
|
79
|
+
readonly shield: "shield";
|
|
80
|
+
readonly shield_a: "shield_a";
|
|
81
|
+
readonly shield_b: "shield_b";
|
|
82
|
+
readonly 'chart-bar': "chart-bar";
|
|
83
|
+
readonly users: "users";
|
|
84
|
+
readonly 'file-text': "file-text";
|
|
85
|
+
readonly 'chat-bar': "chat-bar";
|
|
86
|
+
};
|
|
87
|
+
declare function isCustomIcon(name: string): boolean;
|
|
88
|
+
declare const LUCIDE_ICONS: {
|
|
89
|
+
readonly menu: "Menu";
|
|
90
|
+
readonly x: "X";
|
|
91
|
+
readonly 'chevron-down': "ChevronDown";
|
|
92
|
+
readonly 'chevron-up': "ChevronUp";
|
|
93
|
+
readonly 'chevron-left': "ChevronLeft";
|
|
94
|
+
readonly 'chevron-right': "ChevronRight";
|
|
95
|
+
readonly plus: "Plus";
|
|
96
|
+
readonly minus: "Minus";
|
|
97
|
+
readonly edit: "Edit";
|
|
98
|
+
readonly trash: "Trash";
|
|
99
|
+
readonly search: "Search";
|
|
100
|
+
readonly filter: "Filter";
|
|
101
|
+
readonly download: "Download";
|
|
102
|
+
readonly upload: "Upload";
|
|
103
|
+
readonly user: "User";
|
|
104
|
+
readonly users: "Users";
|
|
105
|
+
readonly 'user-plus': "UserPlus";
|
|
106
|
+
readonly 'user-minus': "UserMinus";
|
|
107
|
+
readonly 'log-in': "LogIn";
|
|
108
|
+
readonly 'log-out': "LogOut";
|
|
109
|
+
readonly key: "Key";
|
|
110
|
+
readonly shield: "Shield";
|
|
111
|
+
readonly lock: "Lock";
|
|
112
|
+
readonly unlock: "Unlock";
|
|
113
|
+
readonly mail: "Mail";
|
|
114
|
+
readonly phone: "Phone";
|
|
115
|
+
readonly 'message-circle': "MessageCircle";
|
|
116
|
+
readonly send: "Send";
|
|
117
|
+
readonly bell: "Bell";
|
|
118
|
+
readonly 'bar-chart': "BarChart";
|
|
119
|
+
readonly 'line-chart': "LineChart";
|
|
120
|
+
readonly 'pie-chart': "PieChart";
|
|
121
|
+
readonly 'trending-up': "TrendingUp";
|
|
122
|
+
readonly 'trending-down': "TrendingDown";
|
|
123
|
+
readonly target: "Target";
|
|
124
|
+
readonly zap: "Zap";
|
|
125
|
+
readonly star: "Star";
|
|
126
|
+
readonly heart: "Heart";
|
|
127
|
+
readonly file: "File";
|
|
128
|
+
readonly 'file-text': "FileText";
|
|
129
|
+
readonly folder: "Folder";
|
|
130
|
+
readonly 'folder-open': "FolderOpen";
|
|
131
|
+
readonly archive: "Archive";
|
|
132
|
+
readonly save: "Save";
|
|
133
|
+
readonly copy: "Copy";
|
|
134
|
+
readonly clipboard: "Clipboard";
|
|
135
|
+
readonly settings: "Settings";
|
|
136
|
+
readonly cog: "Cog";
|
|
137
|
+
readonly wrench: "Wrench";
|
|
138
|
+
readonly tool: "Tool";
|
|
139
|
+
readonly sliders: "Sliders";
|
|
140
|
+
readonly image: "Image";
|
|
141
|
+
readonly video: "Video";
|
|
142
|
+
readonly music: "Music";
|
|
143
|
+
readonly camera: "Camera";
|
|
144
|
+
readonly mic: "Mic";
|
|
145
|
+
readonly 'volume-2': "Volume2";
|
|
146
|
+
readonly 'volume-x': "VolumeX";
|
|
147
|
+
readonly check: "Check";
|
|
148
|
+
readonly 'check-circle': "CheckCircle";
|
|
149
|
+
readonly 'x-circle': "XCircle";
|
|
150
|
+
readonly 'alert-circle': "AlertCircle";
|
|
151
|
+
readonly 'alert-triangle': "AlertTriangle";
|
|
152
|
+
readonly info: "Info";
|
|
153
|
+
readonly 'help-circle': "HelpCircle";
|
|
154
|
+
readonly calendar: "Calendar";
|
|
155
|
+
readonly clock: "Clock";
|
|
156
|
+
readonly timer: "Timer";
|
|
157
|
+
readonly watch: "Watch";
|
|
158
|
+
readonly github: "Github";
|
|
159
|
+
readonly twitter: "Twitter";
|
|
160
|
+
readonly facebook: "Facebook";
|
|
161
|
+
readonly instagram: "Instagram";
|
|
162
|
+
readonly linkedin: "Linkedin";
|
|
163
|
+
readonly youtube: "Youtube";
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
167
|
+
|
|
46
168
|
declare const SIRIUX_UI_VERSION = "1.0.0";
|
|
47
169
|
|
|
48
|
-
export { AuthProvider, LoginForm, SIRIUX_UI_VERSION, useAuth };
|
|
170
|
+
export { AuthProvider, CUSTOM_ICONS, ForgotPasswordForm, Icon, LUCIDE_ICONS, LoginForm, RegisterForm, SIRIUX_UI_VERSION, cn, isCustomIcon, useAuth };
|
|
49
171
|
export type { AuthContextType, AuthProviderProps, AuthTokens, RegisterData, User };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
|