@zimyo/manage 0.2.0 → 0.2.2
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 +2 -2
- package/dist/main.cjs +260 -258
- package/dist/main.js +25757 -25349
- package/dist/shared/providers/AppProvider.d.ts +2 -1
- package/dist/shared/providers/AuthProvider.d.ts +2 -1
- package/dist/shared/utils/utils.d.ts +1 -1
- package/dist/shared/zustand/session.store.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +67 -67
|
@@ -7,6 +7,7 @@ interface AuthProviderProps {
|
|
|
7
7
|
ASSETS_BASE_URL: string;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
HRMS_BASE_URL: string;
|
|
10
|
+
mode: string;
|
|
10
11
|
}
|
|
11
|
-
declare const ManageProvider: ({ queryClient, token, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, children, }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const ManageProvider: ({ queryClient, token, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, children, mode }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default ManageProvider;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
declare const AuthProvider: ({ children, token, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, }: {
|
|
2
|
+
declare const AuthProvider: ({ children, token, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, mode, }: {
|
|
3
3
|
token: string;
|
|
4
4
|
API_BASE_URL: string;
|
|
5
5
|
ASSETS_BASE_URL: string;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
HRMS_BASE_URL: string;
|
|
8
|
+
mode: string;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default AuthProvider;
|
|
@@ -16,5 +16,5 @@ export declare class util {
|
|
|
16
16
|
};
|
|
17
17
|
static convertToMinutes: (timeString: string) => number;
|
|
18
18
|
static getDarkenColor: (color: string, factor?: number) => string;
|
|
19
|
-
static cashfreePayment: (sessionId: string, BASE_URL: string | undefined, suceesCallback: () => void, errorCallback: (value: string) => void) => Promise<void>;
|
|
19
|
+
static cashfreePayment: (sessionId: string, BASE_URL: string | undefined, suceesCallback: () => void, errorCallback: (value: string) => void, mode?: string) => Promise<void>;
|
|
20
20
|
}
|
|
@@ -4,6 +4,7 @@ export type State = {
|
|
|
4
4
|
token?: string;
|
|
5
5
|
API_BASE_URL?: string;
|
|
6
6
|
ASSETS_BASE_URL?: string;
|
|
7
|
+
mode?: string;
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
10
|
type Actions = {
|
|
@@ -13,6 +14,7 @@ type Actions = {
|
|
|
13
14
|
API_BASE_URL: string;
|
|
14
15
|
ASSETS_BASE_URL: string;
|
|
15
16
|
HRMS_BASE_URL: string;
|
|
17
|
+
mode?: string;
|
|
16
18
|
}) => void;
|
|
17
19
|
clearSession: () => void;
|
|
18
20
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fafbfc}*,body,button,ul,li{
|
|
1
|
+
body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fafbfc}*,body,button,ul,li{letter-spacing:.3px}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}*{letter-spacing:.3px!important}.wh-100{height:100%!important;width:100%!important}.app-container{height:100vh;background-color:#f3f3f3}.mt-10{margin-top:10px!important}.g-20{gap:20px}.g-10{gap:10px}.flex-column{flex-direction:column}.g-5{gap:5px}.mb-20{margin-bottom:20px!important}.mb-10{margin-bottom:10px!important}.mr-10{margin-right:10px!important}.w-100{width:100%!important}.mt-20{margin-top:2.454vh!important}.flex-start-center{display:flex;justify-content:flex-start;align-items:center}.flex-start-column{display:flex;justify-content:flex-start;flex-direction:column}.flex-end-column{display:flex;justify-content:flex-end;flex-direction:column}.flex-between-column{display:flex;justify-content:space-between;flex-direction:column;align-items:center}.flex-end-center{display:flex;justify-content:flex-end;align-items:center}.flex-between-center{display:flex;justify-content:space-between;align-items:center}.flex-between{display:flex;justify-content:space-between}.cursor-pointer{cursor:pointer}::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}::-webkit-scrollbar{width:.5vh;height:.5vh;background-color:transparent}::-webkit-scrollbar-thumb{border-radius:10px;background-color:#e9e7e7}._card_container_mtohj_1{padding:1rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;overflow-x:scroll}._card_count_mtohj_13{font-size:18px;font-weight:600}._card_subtitles_mtohj_18{font-size:1rem;font-weight:600}._icons_background_mtohj_23{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;margin:auto}._listing_icons_mtohj_32{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;width:1rem;height:1rem;margin:auto}._sub_icons_background_mtohj_43{display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%;margin:auto}.overlay{position:fixed;display:flex;width:100%;height:100%;inset:0;cursor:pointer;align-items:center;justify-content:center;background-color:#fff;z-index:999}.overlay-component{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transform:-webkit-translate(-50%,-50%);transform:-moz-translate(-50%,-50%);transform:-ms-translate(-50%,-50%);background-color:#fff0;z-index:999}._card_container_dxhto_1{padding:1rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:160px}._card_count_dxhto_14{font-size:18px;font-weight:600}._card_container_95l02_1{padding:1rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;gap:10px;min-height:114px;height:100%}._card_count_95l02_13{font-size:18px;font-weight:600}._card_subtitles_95l02_18{font-size:1rem;font-weight:600}._card_container_c1yb9_1{padding:1rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;overflow-x:scroll}._card_count_c1yb9_13{font-size:18px;font-weight:600}._card_subtitles_c1yb9_18{font-size:1rem;font-weight:600}._icons_background_c1yb9_23{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;margin:auto}._sub_icons_background_c1yb9_32{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;margin:auto}._card_container_1iza3_1{padding:1rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;overflow-x:scroll}._plan_card_1iza3_13{padding:1rem 1.5rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-height:145px;overflow-x:scroll}._discount_card_1iza3_27{position:absolute;top:0;right:0}._discount_card_1iza3_27 span{border-radius:0 0 0 8px;padding:4px 8px;background:#027a481a;color:#027a48;font-weight:600}._plan_total_count_1iza3_40{font-size:20px;font-weight:600}._card_count_1iza3_45{font-size:1.5rem;font-weight:700}._card_subtitles_1iza3_50{font-size:1rem;font-weight:600}._icons_background_1iza3_55{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;width:3rem;height:3rem;margin:auto}._card_container_1tgxf_1{padding:1rem;border:1px solid #c8c8c8;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:space-between}._plans_1tgxf_11{height:665px}._add_ons_1tgxf_14{height:320px}._card_titles_1tgxf_18{font-size:1.5rem;font-weight:700}._add_ons_title_1tgxf_23{font-size:1.125rem;font-weight:700}._card_subtitles_1tgxf_28{font-size:1rem;font-weight:600}._icons_background_1tgxf_33{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;width:2rem;height:2rem;margin:auto}._subicons_background_1tgxf_44{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;width:1rem;height:1rem;margin:auto}._plan_headers_1tgxf_55{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:flex-start}._card_content_1tgxf_63{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;height:430px;overflow:scroll}._card_container_vce56_1{padding:1rem;border:1px solid #c8c8c8;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;overflow-x:scroll}._card_titles_vce56_13{font-size:24px;font-weight:700}._card_subtitles_vce56_18{font-size:1rem;font-weight:600}._card_subtotal_vce56_23{font-size:1rem;font-weight:600;color:#615e69}._icons_background_vce56_29{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;width:3rem;height:3rem;margin:auto}._card_headers_vce56_40{display:flex;justify-content:center;align-items:center;padding:1rem;height:100px}._card_content_vce56_48{display:flex;justify-content:center;gap:5px;flex-direction:column;align-items:center;padding:1rem;height:190px;overflow:scroll}._card_container_1ts8v_1{padding:1rem;border:1px solid #ececec;border-radius:8px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;overflow-x:scroll}._card_count_1ts8v_13{font-size:18px;font-weight:600}._card_subtitles_1ts8v_18{font-size:1rem;font-weight:600}._icons_background_1ts8v_23{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:50%;width:3rem;height:3rem;margin:auto}._credit_card_1ts8v_34{width:272px;height:161px;border-radius:1rem;background:linear-gradient(45deg,#00359e,#155eef)}._circle_1ts8v_41{position:absolute;width:1rem;height:1rem;border-radius:50%;opacity:.8;mix-blend-mode:multiply}._circle1_1ts8v_50{background-color:red;left:6%;transform:translate(-50%,-50%)}._circle2_1ts8v_56{background-color:#f9a000;left:9%;transform:translate(-50%,-50%)}._circle_container_1ts8v_62{display:flex;justify-content:center;align-items:center;position:relative;top:30px;color:#fff;z-index:120}._credit_card_holder_name_1ts8v_72{display:flex;justify-content:center;align-items:center;position:relative;top:140px;color:#fff;z-index:120;font-size:10px}._credit_card_holder_name_absolute_1ts8v_83{position:absolute;width:220px;opacity:.8;left:4%;mix-blend-mode:multiply}
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zimyo/manage",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "vite",
|
|
11
|
-
"build": "tsc -b && vite build",
|
|
12
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
13
|
-
"preview": "vite preview"
|
|
14
|
-
},
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"import": "./dist/main.js",
|
|
18
|
-
"require": "./dist/main.cjs",
|
|
19
|
-
"types": "./dist/index.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./style.css": {
|
|
22
|
-
"import": "./dist/style.css",
|
|
23
|
-
"require": "./dist/style.css"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"main": "./dist/main.cjs",
|
|
27
|
-
"style": "./dist/style.css",
|
|
28
|
-
"module": "./dist/main.js",
|
|
29
|
-
"typings": "./dist/main.d.ts",
|
|
30
|
-
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
],
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@cashfreepayments/cashfree-js": "^1.0.5",
|
|
35
|
-
"@mui/icons-material": "^5.16.5",
|
|
36
|
-
"@mui/x-date-pickers": "^7.9.0",
|
|
37
|
-
"@zimyo/components": "^4.2.5",
|
|
38
|
-
"@zimyo/design-system": "^4.0.0",
|
|
39
|
-
"axios": "^1.7.2",
|
|
40
|
-
"dayjs": "^1.11.11",
|
|
41
|
-
"lodash": "^4.17.21",
|
|
42
|
-
"react": "^17.0.1",
|
|
43
|
-
"react-dom": "^17.0.1",
|
|
44
|
-
"react-icons": "^5.2.1",
|
|
45
|
-
"react-query": "^3.39.3",
|
|
46
|
-
"tinycolor2": "^1.6.0",
|
|
47
|
-
"zustand": "^4.5.4"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
51
|
-
"@types/lodash": "^4.17.6",
|
|
52
|
-
"@types/node": "^20.14.9",
|
|
53
|
-
"@types/react": "^18.3.3",
|
|
54
|
-
"@types/react-dom": "^18.3.0",
|
|
55
|
-
"@types/tinycolor2": "^1.4.6",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
57
|
-
"@typescript-eslint/parser": "^7.13.1",
|
|
58
|
-
"@vitejs/plugin-react": "^4.3.1",
|
|
59
|
-
"eslint": "^8.57.0",
|
|
60
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
61
|
-
"eslint-plugin-react-refresh": "^0.4.7",
|
|
62
|
-
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
63
|
-
"typescript": "^5.2.2",
|
|
64
|
-
"vite": "^5.3.1",
|
|
65
|
-
"vite-plugin-dts": "^3.9.1"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@zimyo/manage",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.2.2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "tsc -b && vite build",
|
|
12
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
13
|
+
"preview": "vite preview"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/main.js",
|
|
18
|
+
"require": "./dist/main.cjs",
|
|
19
|
+
"types": "./dist/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./style.css": {
|
|
22
|
+
"import": "./dist/style.css",
|
|
23
|
+
"require": "./dist/style.css"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/main.cjs",
|
|
27
|
+
"style": "./dist/style.css",
|
|
28
|
+
"module": "./dist/main.js",
|
|
29
|
+
"typings": "./dist/main.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@cashfreepayments/cashfree-js": "^1.0.5",
|
|
35
|
+
"@mui/icons-material": "^5.16.5",
|
|
36
|
+
"@mui/x-date-pickers": "^7.9.0",
|
|
37
|
+
"@zimyo/components": "^4.2.5",
|
|
38
|
+
"@zimyo/design-system": "^4.0.0",
|
|
39
|
+
"axios": "^1.7.2",
|
|
40
|
+
"dayjs": "^1.11.11",
|
|
41
|
+
"lodash": "^4.17.21",
|
|
42
|
+
"react": "^17.0.1",
|
|
43
|
+
"react-dom": "^17.0.1",
|
|
44
|
+
"react-icons": "^5.2.1",
|
|
45
|
+
"react-query": "^3.39.3",
|
|
46
|
+
"tinycolor2": "^1.6.0",
|
|
47
|
+
"zustand": "^4.5.4"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
51
|
+
"@types/lodash": "^4.17.6",
|
|
52
|
+
"@types/node": "^20.14.9",
|
|
53
|
+
"@types/react": "^18.3.3",
|
|
54
|
+
"@types/react-dom": "^18.3.0",
|
|
55
|
+
"@types/tinycolor2": "^1.4.6",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
57
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
58
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
59
|
+
"eslint": "^8.57.0",
|
|
60
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
61
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
|
62
|
+
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
63
|
+
"typescript": "^5.2.2",
|
|
64
|
+
"vite": "^5.3.1",
|
|
65
|
+
"vite-plugin-dts": "^3.9.1"
|
|
66
|
+
}
|
|
67
|
+
}
|