sixseconds-modules 1.0.9 → 1.1.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.
Files changed (42) hide show
  1. package/README.md +50 -0
  2. package/dist/api/transform/transformUser.d.ts +5 -0
  3. package/dist/api/user.d.ts +23 -0
  4. package/dist/assets/svg/index.d.ts +132 -0
  5. package/dist/components/GenericDialog.d.ts +8 -0
  6. package/dist/components/HeaderMenu.d.ts +2 -0
  7. package/dist/components/LanguageModal.d.ts +1 -0
  8. package/dist/components/ListModalItems.d.ts +1 -0
  9. package/dist/components/Logo.d.ts +2 -0
  10. package/dist/components/LogoutDialog.d.ts +6 -0
  11. package/dist/components/NotificationModal.d.ts +2 -0
  12. package/dist/components/NotificationsIcons.d.ts +2 -0
  13. package/dist/components/ProfileMenu.d.ts +2 -0
  14. package/dist/components/button.d.ts +1 -0
  15. package/dist/components/index.d.ts +5 -1
  16. package/dist/constants/env.d.ts +1 -0
  17. package/dist/css/headerStyled.d.ts +2 -0
  18. package/dist/hooks/userCloseModal.d.ts +3 -0
  19. package/dist/index.cjs.js +628 -0
  20. package/dist/index.cjs.js.map +1 -0
  21. package/dist/index.d.ts +5 -2
  22. package/dist/index.es.js +629 -0
  23. package/dist/index.es.js.map +1 -0
  24. package/dist/main.d.ts +1 -0
  25. package/dist/redux/reducers/ssoAppReducer.d.ts +5 -0
  26. package/dist/redux/reducers/types/index.d.ts +1 -0
  27. package/dist/redux/reducers/types/user.d.ts +3 -0
  28. package/dist/redux/reducers/userProfileReducer.d.ts +3 -0
  29. package/dist/redux/store.d.ts +14 -0
  30. package/dist/services/api.d.ts +10 -0
  31. package/dist/services/axios.d.ts +2 -0
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/user.d.ts +3 -0
  34. package/dist/vite-env.d.ts +1 -0
  35. package/dist/vite.svg +1 -0
  36. package/package.json +64 -27
  37. package/dist/components/Button.d.ts +0 -6
  38. package/dist/hooks/useToggle.d.ts +0 -1
  39. package/dist/my-lib.js +0 -2
  40. package/dist/my-lib.js.map +0 -1
  41. package/dist/my-lib.mjs +0 -18
  42. package/dist/my-lib.mjs.map +0 -1
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default tseslint.config({
18
+ languageOptions: {
19
+ // other options...
20
+ parserOptions: {
21
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
+ tsconfigRootDir: import.meta.dirname,
23
+ },
24
+ },
25
+ })
26
+ ```
27
+
28
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
+
32
+ ```js
33
+ // eslint.config.js
34
+ import react from 'eslint-plugin-react'
35
+
36
+ export default tseslint.config({
37
+ // Set the react version
38
+ settings: { react: { version: '18.3' } },
39
+ plugins: {
40
+ // Add the react plugin
41
+ react,
42
+ },
43
+ rules: {
44
+ // other rules...
45
+ // Enable its recommended rules
46
+ ...react.configs.recommended.rules,
47
+ ...react.configs['jsx-runtime'].rules,
48
+ },
49
+ })
50
+ ```
@@ -0,0 +1,5 @@
1
+ export declare const transformUser: (userData: any) => {
2
+ name: any;
3
+ email: any;
4
+ user_profile: any;
5
+ };
@@ -0,0 +1,23 @@
1
+ export declare function getUserDetails(): Promise<{
2
+ success: boolean;
3
+ data?: unknown;
4
+ error?: {
5
+ status?: number;
6
+ message: string;
7
+ data?: unknown;
8
+ };
9
+ }>;
10
+ interface LoginPayload {
11
+ email: string;
12
+ password: string;
13
+ }
14
+ export declare function loginUser(payload: LoginPayload): Promise<{
15
+ success: boolean;
16
+ data?: unknown;
17
+ error?: {
18
+ status?: number;
19
+ message: string;
20
+ data?: unknown;
21
+ };
22
+ }>;
23
+ export {};
@@ -0,0 +1,132 @@
1
+ declare const SVG: {
2
+ NewTwitterIcons: string;
3
+ UserEdit: string;
4
+ Logout: string;
5
+ Setting: string;
6
+ CheckedPerson: string;
7
+ Bell2: string;
8
+ Assessment: string;
9
+ ArrowRight: string;
10
+ Arrow: string;
11
+ ArrowLeft: string;
12
+ ArrowSquareOut: string;
13
+ Alert: string;
14
+ Credits: string;
15
+ BackArrow: string;
16
+ Bell: string;
17
+ Brain: string;
18
+ Book: string;
19
+ Chart: string;
20
+ CaretDown: string;
21
+ Circle: string;
22
+ ChartBar: string;
23
+ Coins: string;
24
+ China: string;
25
+ CheckCircle: string;
26
+ CloudArrow: string;
27
+ Config: string;
28
+ Dashboard: string;
29
+ Document: string;
30
+ Dots: string;
31
+ Delete: string;
32
+ Dawn: string;
33
+ Download: string;
34
+ Dairy: string;
35
+ Eye: string;
36
+ Email: string;
37
+ Earth: string;
38
+ Envelope: string;
39
+ Edit: string;
40
+ File: string;
41
+ Facebook: string;
42
+ Flag: string;
43
+ Flag1: string;
44
+ Flag2: string;
45
+ Flag3: string;
46
+ France: string;
47
+ FilePlus: string;
48
+ Folder: string;
49
+ FileFolder: string;
50
+ HeaderUsa: string;
51
+ Globe: string;
52
+ GreyCircle: string;
53
+ GreenCircle: string;
54
+ GreenCircles: string;
55
+ GreenFlag: string;
56
+ Instagram: string;
57
+ Info: string;
58
+ India: string;
59
+ In: string;
60
+ Inbox: string;
61
+ Logo: string;
62
+ Linkedin: string;
63
+ Link: string;
64
+ LeftArrow: string;
65
+ Lifebuoy: string;
66
+ Linking: string;
67
+ Massage: string;
68
+ Msg: string;
69
+ Notes: string;
70
+ Pencil: string;
71
+ Print: string;
72
+ Printer: string;
73
+ Profile: string;
74
+ Plus: string;
75
+ Pin: string;
76
+ Pdf: string;
77
+ Question: string;
78
+ Questions: string;
79
+ RedCircle: string;
80
+ Report: string;
81
+ ReportDocument: string;
82
+ Send: string;
83
+ Search: string;
84
+ Spain: string;
85
+ Star: string;
86
+ Stock: string;
87
+ Scanner: string;
88
+ Sample: string;
89
+ Success: string;
90
+ Structure: string;
91
+ Step: string;
92
+ Step2: string;
93
+ Step3: string;
94
+ Step4: string;
95
+ Step5: string;
96
+ Twitter: string;
97
+ Target: string;
98
+ USA: string;
99
+ Users: string;
100
+ User: string;
101
+ Upload: string;
102
+ UploadSimple: string;
103
+ Vs: string;
104
+ Watch: string;
105
+ warning: string;
106
+ XCircle: string;
107
+ X: string;
108
+ Youtube: string;
109
+ Drag: string;
110
+ language: string;
111
+ Checked: string;
112
+ CheckedIcon: string;
113
+ Bigcross: string;
114
+ openSidebarIcon: string;
115
+ closeSidebarIcon: string;
116
+ downloadFileIcon: string;
117
+ certIcon: string;
118
+ cardIcon: string;
119
+ eventIcon: string;
120
+ toolsIcon: string;
121
+ managementIcon: string;
122
+ settingMenu: string;
123
+ translateIcon: string;
124
+ KeyIcon: string;
125
+ gridIcon: string;
126
+ translationIcon: string;
127
+ dashboardIcon: string;
128
+ homeIcon: string;
129
+ searchIcon: string;
130
+ rightArrow: string;
131
+ };
132
+ export default SVG;
@@ -0,0 +1,8 @@
1
+ type GenericDialogProps = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ maxWidth?: string;
5
+ children: React.ReactNode;
6
+ };
7
+ declare const GenericDialog: ({ open, onClose, maxWidth, children, }: GenericDialogProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default GenericDialog;
@@ -0,0 +1,2 @@
1
+ declare const HeaderMenuModal: () => import("react/jsx-runtime").JSX.Element;
2
+ export default HeaderMenuModal;
@@ -0,0 +1 @@
1
+ export default function LanguageModal(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ListMenuItem: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const Logo: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Logo;
@@ -0,0 +1,6 @@
1
+ type LogoutDialogProps = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ };
5
+ declare const LogoutDialog: ({ open, onClose }: LogoutDialogProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default LogoutDialog;
@@ -0,0 +1,2 @@
1
+ declare const NotificationModal: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotificationModal;
@@ -0,0 +1,2 @@
1
+ declare const NotificationIcons: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotificationIcons;
@@ -0,0 +1,2 @@
1
+ declare const ProfileMenu: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ProfileMenu;
@@ -0,0 +1 @@
1
+ export declare const Button: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,5 @@
1
- export * from './Button';
1
+ import { default as NotificationIcons } from './NotificationsIcons';
2
+ import { default as ProfileMenu } from './ProfileMenu';
3
+ import { default as LogoutDialog } from './LogoutDialog';
4
+ import { default as GenericDialog } from './GenericDialog';
5
+ export { NotificationIcons, ProfileMenu, LogoutDialog, GenericDialog };
@@ -0,0 +1 @@
1
+ export declare const SERVER_URL = "https://dev-ssoapi.6seconds.org";
@@ -0,0 +1,2 @@
1
+ declare const HeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export default HeaderStyled;
@@ -0,0 +1,3 @@
1
+ import { RefObject } from 'react';
2
+ declare const useClickModals: (ref: RefObject<HTMLElement>, callback: () => void) => void;
3
+ export default useClickModals;