nectiasw 0.0.13 → 0.0.15

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.
Files changed (39) hide show
  1. package/dist/components/Footer/index.d.ts +8 -0
  2. package/dist/components/Footer/styled.d.ts +2 -0
  3. package/dist/components/Footer/styles.d.ts +3 -0
  4. package/dist/components/Footer/svg.d.ts +6 -0
  5. package/dist/components/Layout/hooks.d.ts +1 -0
  6. package/dist/components/Layout/index.d.ts +21 -0
  7. package/dist/components/Layout/styles.d.ts +11 -0
  8. package/dist/components/Sidebar/index.d.ts +4 -0
  9. package/dist/components/Sidebar/styles.d.ts +26 -0
  10. package/dist/components/Sidebar/types.d.ts +33 -0
  11. package/dist/components/Timeline/index.d.ts +1 -0
  12. package/dist/context/hooks.d.ts +1 -0
  13. package/dist/context/index.d.ts +32 -0
  14. package/dist/context/types.d.ts +49 -0
  15. package/dist/events/index.d.ts +58 -0
  16. package/dist/index.d.ts +27 -3
  17. package/dist/index.es.js +31418 -18932
  18. package/dist/index.es.js.map +1 -1
  19. package/dist/index.umd.js +721 -319
  20. package/dist/index.umd.js.map +1 -1
  21. package/dist/providers/channel/hooks.d.ts +11 -0
  22. package/dist/providers/channel/index.d.ts +27 -0
  23. package/dist/providers/channel/types.d.ts +9 -0
  24. package/dist/providers/https/http.api.d.ts +28 -0
  25. package/dist/providers/https/index.d.ts +65 -0
  26. package/dist/providers/logger/index.d.ts +24 -0
  27. package/dist/providers/microfront/index.d.ts +17 -0
  28. package/dist/providers/microfront/types.d.ts +49 -0
  29. package/dist/providers/permissions/index.d.ts +13 -0
  30. package/dist/providers/permissions/types.d.ts +72 -0
  31. package/dist/providers/permissions/utils.d.ts +12 -0
  32. package/dist/providers/storage/crypto.d.ts +1 -0
  33. package/dist/providers/storage/index.d.ts +5 -0
  34. package/dist/providers/storage/session/index.d.ts +54 -0
  35. package/dist/providers/storage/types.d.ts +32 -0
  36. package/dist/utils/bearer/index.d.ts +6 -0
  37. package/dist/utils/microfront/index.d.ts +8 -0
  38. package/package.json +11 -2
  39. package/dist/components/index.d.ts +0 -62
@@ -0,0 +1,11 @@
1
+ export declare function useObserver<T>(event: string, callback: (data: T) => void): {
2
+ status: boolean;
3
+ pause: () => void;
4
+ resume: () => void;
5
+ };
6
+ /**
7
+ * @description
8
+ * This function is used to broadcast an event.
9
+ * @param event - Event name to be broadcasted.
10
+ */
11
+ export declare function useBroadcaster<T>(event: string, callback?: () => void, name?: string): (data: T) => void;
@@ -0,0 +1,27 @@
1
+ import { Subject } from 'rxjs';
2
+ import { EventMap, Listener } from './types';
3
+ import { EventMap as EventContext } from '../../events';
4
+
5
+ export declare const $events: EventMap;
6
+ export declare const $channels: Record<string, BroadcastChannel>;
7
+ export declare const $observers: Listener;
8
+ /**
9
+ * @param $event - Event to unsubscribe from.
10
+ * @returns {void}
11
+ */
12
+ export declare function unsubscribeEvent($event: EventContext): void;
13
+ export declare function takeSignal<T>($channel: string, onNext: (data: T) => void): void;
14
+ export declare function destroySignal($channel: string): void;
15
+ export declare function createSignal<T>($channel: string, data: T): void;
16
+ /**
17
+ * @description
18
+ * Dispatch
19
+ * @param $name - Event name.
20
+ * @param data - Data to be emitted.
21
+ */
22
+ export declare function dispatch<T>($name: string, data: T): void;
23
+ export declare function createObserver<T>($name: string): Subject<T>;
24
+ export declare function observe<T>($name: string, callback: (args: T) => void): import('rxjs').Subscription;
25
+ export declare function destroy<T>($name: string): void;
26
+ export declare function broadcast<T>($name: string, data: T): void;
27
+ export { useBroadcaster, useObserver } from './hooks';
@@ -0,0 +1,9 @@
1
+ import { Subject } from 'rxjs';
2
+ import { EventMap as Ref } from '../../events';
3
+
4
+ export type EventMap = {
5
+ [key in Ref]?: Subject<never>;
6
+ };
7
+ export type Listener = {
8
+ [key in Ref]?: typeof Subject;
9
+ };
@@ -0,0 +1,28 @@
1
+ import { ContextProps } from '../../context';
2
+ import { URLMapping } from '@nectiasw/providers/https';
3
+
4
+ export declare enum Method {
5
+ GET = "GET",
6
+ PUT = "PUT",
7
+ POST = "POST",
8
+ PATCH = "PATCH",
9
+ DELETE = "DELETE"
10
+ }
11
+ export type Arguments = {
12
+ endpoint: string;
13
+ baseURL: string;
14
+ method?: Method;
15
+ normalize?: boolean;
16
+ };
17
+ export interface FetchRequest<T> {
18
+ result: T;
19
+ status: number;
20
+ message: string;
21
+ }
22
+ /**
23
+ * @description
24
+ * Sends a request to the server.
25
+ * This is commonly used on useQuery hooks from react-query.
26
+ * @param session - session object.
27
+ */
28
+ export declare function signalHttps<T, M = Record<string, never>, S extends ContextProps["session"] = ContextProps["session"]>(session: S, args: Arguments, config?: URLMapping, mutation?: M): () => Promise<FetchRequest<T>>;
@@ -0,0 +1,65 @@
1
+ import { AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
2
+
3
+ export interface HttpResponse<T> extends Promise<T> {
4
+ data: T;
5
+ status: number;
6
+ message: string;
7
+ }
8
+ export interface HttpClientOptions {
9
+ baseURL?: string;
10
+ timeout?: number;
11
+ headers?: Record<string, string>;
12
+ logger?: Console["log"];
13
+ requestInterceptor?: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>;
14
+ responseInterceptor?: (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>;
15
+ }
16
+ export interface URLMapping {
17
+ provide?: string;
18
+ params?: Array<string | number>;
19
+ query?: Record<string, string | number | boolean>;
20
+ }
21
+ export declare class HttpClient {
22
+ private https;
23
+ private logger;
24
+ private requestInterceptor;
25
+ private responseInterceptor;
26
+ constructor({ baseURL, timeout, headers, logger, requestInterceptor, responseInterceptor, }?: HttpClientOptions);
27
+ get<T>(url: string | URLMapping, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
28
+ /**
29
+ * @description
30
+ * Makes a DELETE request to the specified URL.
31
+ * @param url - The URL to which the request is sent.
32
+ * @param config - The config to be used for the request.
33
+ */
34
+ delete<T>(url: string | URLMapping, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
35
+ /**
36
+ * @description
37
+ * Makes a PATCH request to the specified URL.
38
+ * @param url - The URL to which the request is sent.
39
+ * @param data - The data to be sent as the request body.
40
+ * @param config - The config to be used for the request.
41
+ */
42
+ patch<T, B>(url: string | URLMapping, data?: B, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
43
+ /**
44
+ * @description
45
+ * Makes a POST request to the specified URL.
46
+ * @param url - The URL to which the request is sent.
47
+ * @param data - The data to be sent as the request body.
48
+ * @param config - The config to be used for the request.
49
+ */
50
+ post<T, B>(url: string | URLMapping, data?: B, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
51
+ /**
52
+ * @description
53
+ * Makes a PUT request to the specified URL.
54
+ * @param url The URL to which the request is sent.
55
+ * @param data The data to be sent as the request body.
56
+ * @param config The config to be used for the request.
57
+ */
58
+ put<T, B>(url: string | URLMapping, data?: B, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
59
+ /**
60
+ * @description
61
+ * Removes all interceptors, including the default ones.
62
+ */
63
+ removeInterceptors(): void;
64
+ }
65
+ export default HttpClient;
@@ -0,0 +1,24 @@
1
+ export declare enum LogLevel {
2
+ DEBUG = 0,
3
+ INFO = 1,
4
+ WARN = 2,
5
+ ERROR = 3
6
+ }
7
+ export declare enum LogColors {
8
+ INFO = "#4caf50",
9
+ WARN = "#ff9800",
10
+ ERROR = "#f44336",
11
+ DEBUG = "#2196f3"
12
+ }
13
+ export declare class Logger {
14
+ private logLevel;
15
+ private isDevelopment;
16
+ private logs;
17
+ constructor(logLevel?: LogLevel, isDevelopment?: boolean);
18
+ debug<T>(message: string, ...args: T[]): void;
19
+ info<T>(message: string, ...args: T[]): void;
20
+ warn<T>(message: string, ...args: T[]): void;
21
+ error<T>(message: string, ...args: T[]): void;
22
+ private log;
23
+ getLogs(): string[];
24
+ }
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { UIArguments } from './types';
3
+
4
+ /**
5
+ * @param name - Name of the microfront.
6
+ * @param Component - Component to be hosted.
7
+ * @description
8
+ * This function is used to wrap the microfront component.
9
+ * It is used to pass the name of the microfront to the component.
10
+ * Gives a default behavior to the microfront component;
11
+ * 1. It will render the component only if the microfront is loaded.
12
+ * 2. It will make a Subscription to send event to appshell to communicate.
13
+ * 3. It can be used to communicate between microfronts.
14
+ * @example
15
+ * export default MicrofrontHost(Courses, '@courses');
16
+ */
17
+ export declare const MicrofrontHost: React.FC<UIArguments>;
@@ -0,0 +1,49 @@
1
+ import { ReactNode } from 'react';
2
+ import { UserSystem } from '../../typings';
3
+ import { Root as Info } from '@nectiasw/providers/storage/types';
4
+ import { SidebarProps } from '@nectiasw/components/Sidebar/types';
5
+
6
+ export interface CommonSignalConnection {
7
+ info: Info;
8
+ token: string;
9
+ user: UserSystem;
10
+ loading: boolean;
11
+ expiresAt: string;
12
+ environment: Record<string, string>;
13
+ refreshToken: string;
14
+ }
15
+ export type SignalLayoutConnection = (signal?: CommonSignalConnection, loading?: boolean) => boolean;
16
+ export interface UIArguments {
17
+ app: string;
18
+ footer?: boolean;
19
+ layout?: boolean;
20
+ loading?: boolean;
21
+ navbar?: SignalLayoutConnection;
22
+ sidebar?: SignalLayoutConnection;
23
+ includeNavbarDropdown?: boolean;
24
+ previousPath?: string | boolean;
25
+ observerToken?: boolean;
26
+ observerSignUp?: boolean;
27
+ environment: Record<string, string>;
28
+ modalExpired?: boolean;
29
+ children?: React.ReactNode;
30
+ navigation?: Pick<SidebarProps, "panel" | "options">;
31
+ }
32
+ export interface MicrofrontProps {
33
+ args?: UIArguments;
34
+ signal?: Partial<CommonSignalConnection>;
35
+ children?: ReactNode;
36
+ onTakeSignal?: (data: CommonSignalConnection) => void;
37
+ }
38
+ export interface WrappedComponentProps extends MicrofrontProps {
39
+ args?: UIArguments;
40
+ }
41
+ export type Wrapper = <P extends WrappedComponentProps>(WrappedComponent: React.ComponentType<P>, args: UIArguments) => React.FC<P & MicrofrontProps>;
42
+ export declare enum App {
43
+ INDEX = "@app/index",
44
+ WELCOME = "@app/welcome",
45
+ DASHBOARD = "@app/dashboard",
46
+ BACKOFFICE = "@app/backoffice",
47
+ INSCRIPTIONS = "@app/inscriptions",
48
+ COMMUNICATION = "@app/communication"
49
+ }
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { PermissionsProps } from './types';
3
+
4
+ /**
5
+ * @description
6
+ * Component to check if user has permission to see content.
7
+ * It will check based on signal context and return children if user has permission.
8
+ * @example
9
+ * <Permissions allow={["View Dashboard"]}>
10
+ * <div>Content</div>
11
+ * </Permissions>
12
+ */
13
+ export declare const Permissions: React.FC<PermissionsProps>;
@@ -0,0 +1,72 @@
1
+ import { UserSystem } from '../../typings';
2
+ import { ContextProps } from '../../context';
3
+
4
+ /**
5
+ * @description
6
+ * Enum of permissions that can be used in the application.
7
+ */
8
+ export declare enum IN_Permission {
9
+ CAN_VIEW_CARD = "CAN_VIEW_CARD",
10
+ SEE_RENDITION = "SEE_RENDITION",
11
+ DIGIT_RENDITION = "DIGIT_RENDITION",
12
+ CAN_VIEW_MANTAINER = "CAN_VIEW_MANTAINER",
13
+ CAN_EDIT_MANTAINER = "CAN_EDIT_MANTAINER",
14
+ CAN_VIEW_MANAGEMENT = "CAN_VIEW_MANAGEMENT",
15
+ VISUALIZE_RENDITION = "VISUALIZE_RENDITION",
16
+ CAN_VIEW_ATTENDANCE = "CAN_VIEW_ATTENDANCE",
17
+ CAN_ADVANCE_PAYMENT = "CAN_ADVANCE_PAYMENT",
18
+ CAN_ASSIGN_RESPONSIBLE = "CAN_ASSIGN_RESPONSIBLE",
19
+ CAN_CREATE_INSCRIPTION = "CAN_CREATE_INSCRIPTION",
20
+ CAN_VIEW_COURSE_CONTENT = "CAN_VIEW_COURSE_CONTENT",
21
+ CAN_EDIT_COURSE_CONTENT = "CAN_EDIT_COURSE_CONTENT",
22
+ CAN_REGISTER_ATTENDANCE = "CAN_REGISTER_ATTENDANCE",
23
+ CAN_GENERATE_LIQUIDATIONS = "CAN_GENERATE_LIQUIDATIONS",
24
+ CAN_GENERATE_PURCHASE_ORDER = "CAN_GENERATE_PURCHASE_ORDER",
25
+ CAN_DOWNLOAD_PURCHASE_ORDER = "CAN_DOWNLOAD_PURCHASE_ORDER",
26
+ CAN_VIEW_FILTER_RESPONSIBLE = "CAN_VIEW_FILTER_RESPONSIBLE",
27
+ CAN_VIEW_MOVILIZATION_TRAVEL = "CAN_VIEW_MOVILIZATION_TRAVEL",
28
+ CAN_RECTIFY_COURSE_FRANCHISE = "CAN_RECTIFY_COURSE_FRANCHISE",
29
+ CAN_RECTIFY_FINANCING_ACCOUNT = "CAN_RECTIFY_FINANCING_ACCOUNT",
30
+ CAN_GENERATE_SENCE_LIQUIDATION = "CAN_GENERATE_SENCE_LIQUIDATION",
31
+ CAN_REPORT_MOVILIZATION_TRAVEL = "CAN_REPORT_MOVILIZATION_TRAVEL",
32
+ CAN_RECTIFY_COURSE_NO_FRANCHISE = "CAN_RECTIFY_COURSE_NO_FRANCHISE",
33
+ CAN_GENERATE_SENCE_COMMUNICATION = "CAN_GENERATE_SENCE_COMMUNICATION",
34
+ CAN_UPDATE_REQUIREMENTS_MANUALLY = "CAN_UPDATE_REQUIREMENTS_MANUALLY"
35
+ }
36
+ export declare enum SP_Permission {
37
+ CAN_VIEW_MENU = "MOSTRAR_MENU_LATERAL",
38
+ CAN_CREATE_SYSTEMS = "CREAR_SISTEMAS",
39
+ CAN_UPDATE_SYSTEMS = "EDITAR_SISTEMAS",
40
+ CAN_CREATE_PROFILES = "CREAR_PERFILES",
41
+ CAN_UPDATE_PROFILES = "EDITAR_PERFILES",
42
+ CAN_CREATE_FUNCTIONS = "CREAR_FUNCIONES",
43
+ CAN_DELETE_SYSTEMS = "ELIMINAR_SISTEMAS",
44
+ CAN_VIEW_USERS_LIST = "LISTADO_USUARIOS",
45
+ CAN_TOGGLE_SYSTEMS = "HABILITAR_SISTEMAS",
46
+ CAN_DELETE_PROFILES = "ELIMINAR_PERFILES",
47
+ CAN_DELETE_FUNCTIONS = "ELIMINAR_FUNCIONES",
48
+ CAN_VIEW_SYSTEMS_LIST = "LISTADO_DE_SISTEMAS",
49
+ CAN_VIEW_PROFILES_LIST = "LISTADO_DE_PERFILES",
50
+ CAN_UPDATE_USER_INFO = "EDITAR_INFORMACION_USUARIO",
51
+ CAN_ASSIGN_TEMPORARY_PERMISSION = "ASIGNAR_PERMISOS_TEMPORALES",
52
+ CAN_DELETE_TEMPORARY_PERMISSION = "ELIMINAR_PERMISOS_TEMPORALES"
53
+ }
54
+ export type PermissionsProps = {
55
+ allow?: IN_Permission[] | SP_Permission[];
56
+ system?: string;
57
+ systems?: string[];
58
+ passport?: boolean;
59
+ children?: React.ReactNode;
60
+ inject?: ContextProps["user"];
61
+ };
62
+ export type AuthorizationFilterArgs = {
63
+ allow: IN_Permission[] | SP_Permission[];
64
+ user: UserSystem;
65
+ system?: string;
66
+ };
67
+ export type AuthorizationSystemFlag = {
68
+ user: UserSystem;
69
+ systems: string[];
70
+ passport: boolean;
71
+ };
72
+ export type AuthorizationProps = (args: AuthorizationFilterArgs) => boolean;
@@ -0,0 +1,12 @@
1
+ import { AuthorizationProps, AuthorizationSystemFlag } from './types';
2
+
3
+ /**
4
+ * @description
5
+ * Function to check if a user has the required permissions.
6
+ * It verifies user permissions based on the provided properties and returns a boolean indicating permission status.
7
+ * @example
8
+ * authorization({ allow: ["View Dashboard"], user: signal.user, sys?: "Integra Negocio" })
9
+ */
10
+ export declare const authorization: AuthorizationProps;
11
+ export declare const checkSystems: ({ user, passport, systems, }: AuthorizationSystemFlag) => boolean;
12
+ export declare const defaultSystem = "Integra Negocio";
@@ -0,0 +1 @@
1
+ export declare const secretKey = "HA6NDXoc9#!cC\u00A7pY";
@@ -0,0 +1,5 @@
1
+ import { create } from 'zustand';
2
+
3
+ export declare const createRef: typeof create;
4
+ export declare const resetAllStores: () => void;
5
+ export { useSessionStore, initialState } from './session';
@@ -0,0 +1,54 @@
1
+ import { Response, UserSystem } from '../../../typings';
2
+ import { HttpClient, HttpClientOptions } from '@nectiasw/providers/https';
3
+ import { Root as Info } from '../types';
4
+
5
+ type Session = {
6
+ token?: string | null;
7
+ expiresAt?: string | null;
8
+ refreshToken?: string | null;
9
+ };
10
+ type State = {
11
+ info: Info | null;
12
+ error: Error | null;
13
+ session: Session | null;
14
+ user: UserSystem | null;
15
+ api: HttpClient | null;
16
+ active?: boolean;
17
+ hasHydrated: boolean;
18
+ };
19
+ type Actions = {
20
+ reset: () => void;
21
+ setHydrated: (hydrated: boolean) => void;
22
+ setHttp: (api: HttpClientOptions) => void;
23
+ setError: (error: Error) => void;
24
+ setUser: (user?: Session) => Promise<void>;
25
+ sync: (token?: Session["token"], refreshToken?: Session["refreshToken"]) => Promise<void>;
26
+ attempt: (rehydrate?: boolean, args?: Partial<Session>) => Promise<AttemptResponse | void>;
27
+ login: (token: string, refreshToken: string) => Promise<AttemptResponse | void>;
28
+ };
29
+ type AttemptResponse = Response<UserSystem & {
30
+ token: string;
31
+ }>;
32
+ export declare const initialState: State;
33
+ /**
34
+ * @description
35
+ * This store is used to store the session data.
36
+ * - token
37
+ * - refreshToken
38
+ */
39
+ export declare const useSessionStore: import('zustand').UseBoundStore<Omit<Omit<import('zustand').StoreApi<State & Actions>, "setState"> & {
40
+ setState<A extends string | {
41
+ type: string;
42
+ }>(partial: (State & Actions) | Partial<State & Actions> | ((state: State & Actions) => (State & Actions) | Partial<State & Actions>), replace?: boolean | undefined, action?: A | undefined): void;
43
+ }, "persist"> & {
44
+ persist: {
45
+ setOptions: (options: Partial<import('zustand/middleware').PersistOptions<State & Actions, unknown>>) => void;
46
+ clearStorage: () => void;
47
+ rehydrate: () => Promise<void> | void;
48
+ hasHydrated: () => boolean;
49
+ onHydrate: (fn: (state: State & Actions) => void) => () => void;
50
+ onFinishHydration: (fn: (state: State & Actions) => void) => () => void;
51
+ getOptions: () => Partial<import('zustand/middleware').PersistOptions<State & Actions, unknown>>;
52
+ };
53
+ }>;
54
+ export {};
@@ -0,0 +1,32 @@
1
+ export interface Root {
2
+ exp: number;
3
+ iat: number;
4
+ jti: string;
5
+ iss: string;
6
+ aud: string;
7
+ sub: string;
8
+ typ: string;
9
+ azp: string;
10
+ session_state: string;
11
+ acr: string;
12
+ "allowed-origins": string[];
13
+ realm_access: RealmAccess;
14
+ resource_access: ResourceAccess;
15
+ scope: string;
16
+ sid: string;
17
+ email_verified: boolean;
18
+ name: string;
19
+ preferred_username: string;
20
+ given_name: string;
21
+ family_name: string;
22
+ email: string;
23
+ }
24
+ export interface RealmAccess {
25
+ roles: string[];
26
+ }
27
+ export interface ResourceAccess {
28
+ account: Account;
29
+ }
30
+ export interface Account {
31
+ roles: string[];
32
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @description
3
+ * Create a Bearer token.
4
+ * @param token - Token to be used in the Bearer header.
5
+ */
6
+ export declare function bearer(token: string): string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * @param realm_access - User roles.
4
+ */
5
+ export declare const assign: (realm_access: string[]) => string;
6
+ export declare const now: () => number;
7
+ export declare const every: (minutes: number) => number;
8
+ export declare const renderName: (name?: string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nectiasw",
3
3
  "private": false,
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
7
7
  "main": "dist/index.umd.js",
@@ -34,7 +34,10 @@
34
34
  "autoprefixer": "^10.4.19",
35
35
  "axios": "^1.7.2",
36
36
  "clsx": "^2.1.1",
37
+ "crypto-js": "^4.2.0",
37
38
  "date-fns": "^3.6.0",
39
+ "history": "^5.3.0",
40
+ "jwt-decode": "^4.0.0",
38
41
  "lodash": "^4.17.21",
39
42
  "moment": "^2.30.1",
40
43
  "nectiasw": "^0.0.4",
@@ -48,13 +51,19 @@
48
51
  "react-icons": "^5.2.1",
49
52
  "react-select": "^5.7.2",
50
53
  "react-spinners-kit": "^1.9.1",
54
+ "rut.js": "^2.1.0",
55
+ "rxjs": "^7.8.1",
56
+ "single-spa": "^6.0.1",
51
57
  "styled-components": "^6.1.12",
58
+ "sweetalert2": "^11.12.3",
52
59
  "tailwindcss": "^3.4.7",
53
60
  "tailwindcss-classnames": "^3.1.0",
54
61
  "uuid": "^10.0.0",
55
- "vite-plugin-dts": "^4.0.0-beta.1"
62
+ "vite-plugin-dts": "^4.0.0-beta.1",
63
+ "zustand": "^4.5.4"
56
64
  },
57
65
  "devDependencies": {
66
+ "@types/crypto-js": "^4.2.2",
58
67
  "@types/lodash": "^4.17.7",
59
68
  "@types/react": "^18.3.3",
60
69
  "@types/react-dom": "^18.3.0",
@@ -1,62 +0,0 @@
1
- export { Box } from './Box';
2
- export type { BoxProps } from './Box';
3
- export { Row } from './Row';
4
- export type { RowProps } from './Row';
5
- export { Chart } from './Chart';
6
- export type { ChartProps } from './Chart';
7
- export { Modal } from './Modal';
8
- export type { ModalProps } from './Modal';
9
- export { Checkbox } from './Checkbox';
10
- export type { CheckboxProps } from './Checkbox';
11
- export { Dropdown } from './Dropdown';
12
- export type { DropdownProps } from './Dropdown';
13
- export { Flex, FlexItem } from './Flex';
14
- export type { FlexProps, FlexItemProps } from './Flex';
15
- export { Select } from './Select';
16
- export type { SelectProps } from './Select';
17
- export { Switch } from './Switch';
18
- export type { SwitchProps } from './Switch';
19
- export { Datepicker } from './Datepicker';
20
- export type { DatepickerProps } from './Datepicker';
21
- export { RadioButton } from './RadioButton';
22
- export type { RadioButtonProps } from './RadioButton';
23
- export { Text, Error, Title, Success, Subtitle, Description } from './Text';
24
- export type { CommonTextProps } from './Text';
25
- export { Input } from './Input';
26
- export { InputTable } from './Input/variants/InputTable';
27
- export type { InputProps } from './Input';
28
- export { TableInput } from './Tableinput';
29
- export { InputMode } from './Tableinput/types';
30
- export type { TableInputProps } from './Tableinput';
31
- export { Tooltip } from './Tooltip';
32
- export type { TooltipProps } from './Tooltip';
33
- export { TextArea } from './Textarea';
34
- export type { TextAreaProps } from './Textarea';
35
- export { Grid, Colspan } from './Grid';
36
- export type { GridProps, ColspanProps } from './Grid';
37
- export { Counter } from './Counter';
38
- export type { CounterProps } from './Counter';
39
- export { Container } from './Container';
40
- export type { ContainerProps } from './Container';
41
- export { Empty } from './Empty';
42
- export type { EmptyProps } from './Empty';
43
- export { Loading } from './Loading';
44
- export type { LoadingProps } from './Loading';
45
- export { SingleDeadlineChart } from './DeadlineChart';
46
- export type { SingleDeadlineChartProps, } from './DeadlineChart';
47
- export { Collapse } from './Collapse';
48
- export type { CollapseProps } from './Collapse';
49
- export type { BadgeProps } from './Badge';
50
- export { Badge } from './Badge';
51
- export { BadgeStatus } from './Badge/types';
52
- export { Search } from './Search';
53
- export { ScrollSearch } from './Search/variants/ScrollSearch';
54
- export type { SearchItem, SearchProps, ScrollSearchProps, Client, PendingClientElement, Placeholder } from './Search/types';
55
- export { Pagination } from './Pagination';
56
- export type { PaginationProps } from './Pagination/types';
57
- export { Card, DangerTitle, AlertTitle, CheckTitle } from './Card';
58
- export type { CardProps, CardTitleProps } from './Card/types';
59
- export { Button } from './Button';
60
- export type { ButtonProps, ButtonStyledProps } from './Button/types';
61
- export { TotalHours } from './Totalhours';
62
- export type { TotalHoursProps } from './Totalhours';