sixseconds-modules 1.1.4 → 1.1.7
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/api/user.d.ts +0 -22
- package/dist/assets/images/index.d.ts +4 -0
- package/dist/assets/svg/index.d.ts +762 -129
- package/dist/components/dialogs/dangerDialog.d.ts +11 -0
- package/dist/components/dialogs/index.d.ts +1 -0
- package/dist/components/elements/backArrow.d.ts +7 -0
- package/dist/components/elements/index.d.ts +2 -0
- package/dist/components/elements/logo.d.ts +6 -0
- package/dist/components/elements/warning.d.ts +6 -0
- package/dist/components/header/dropDownMenu.d.ts +9 -0
- package/dist/components/header/index.d.ts +18 -0
- package/dist/components/header/language.d.ts +12 -0
- package/dist/components/header/notification.d.ts +1 -0
- package/dist/components/header/profile.d.ts +1 -0
- package/dist/components/header/subheaderStyled.d.ts +2 -0
- package/dist/components/header/type.d.ts +17 -0
- package/dist/components/header/userProfile.d.ts +9 -0
- package/dist/components/index.d.ts +2 -5
- package/dist/constants/apis.d.ts +4 -0
- package/dist/constants/common.d.ts +57 -0
- package/dist/constants/dates.d.ts +3 -0
- package/dist/constants/env.d.ts +8 -1
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/routes.d.ts +13 -0
- package/dist/constants/validation.d.ts +4 -0
- package/dist/hooks/useRtk.d.ts +4 -0
- package/dist/index.cjs.js +578 -464
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.es.js +562 -465
- package/dist/index.es.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/{redux/store.d.ts → states/index.d.ts} +7 -6
- package/dist/states/reducers/user.d.ts +5 -0
- package/dist/types/custom.d.ts +24 -0
- package/dist/types/htmlElements.d.ts +6 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/reactTypes.d.ts +4 -0
- package/dist/utils/common.d.ts +5 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +10 -5
- package/dist/components/GenericDialog.d.ts +0 -8
- package/dist/components/HeaderMenu.d.ts +0 -2
- package/dist/components/LanguageModal.d.ts +0 -1
- package/dist/components/ListModalItems.d.ts +0 -1
- package/dist/components/Logo.d.ts +0 -2
- package/dist/components/LogoutDialog.d.ts +0 -6
- package/dist/components/NotificationModal.d.ts +0 -2
- package/dist/components/NotificationsIcons.d.ts +0 -2
- package/dist/components/ProfileMenu.d.ts +0 -2
- package/dist/components/button.d.ts +0 -1
- package/dist/css/headerStyled.d.ts +0 -2
- package/dist/hooks/userCloseModal.d.ts +0 -3
- package/dist/redux/reducers/ssoAppReducer.d.ts +0 -5
- package/dist/redux/reducers/types/index.d.ts +0 -1
- package/dist/redux/reducers/types/user.d.ts +0 -3
- package/dist/redux/reducers/userProfileReducer.d.ts +0 -3
- package/dist/services/api.d.ts +0 -10
- package/dist/services/axios.d.ts +0 -2
- package/dist/types/user.d.ts +0 -3
package/dist/main.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isSSoFlag: boolean;
|
|
2
|
+
user: {
|
|
3
|
+
name: string;
|
|
5
4
|
};
|
|
6
5
|
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
7
6
|
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isSSoFlag: boolean;
|
|
7
|
+
user: {
|
|
8
|
+
name: string;
|
|
11
9
|
};
|
|
12
10
|
}, undefined, import('redux').UnknownAction>;
|
|
13
11
|
}>, import('redux').StoreEnhancer]>>;
|
|
14
12
|
export default store;
|
|
13
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
14
|
+
export type AppDispatch = typeof store.dispatch;
|
|
15
|
+
export { setName } from './reducers/user';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ToolsRoles = "Master" | "Distributor" | "Coach" | "Referent";
|
|
3
|
+
|
|
4
|
+
// interfaces definition
|
|
5
|
+
export interface IChildrenProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface ISelectWithSearch {
|
|
9
|
+
id: number;
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type t = (e: string) => string;
|
|
15
|
+
|
|
16
|
+
export type Filters = {
|
|
17
|
+
type?: string;
|
|
18
|
+
page?: number;
|
|
19
|
+
search?: string;
|
|
20
|
+
pagePerItm?: number;
|
|
21
|
+
to?: string;
|
|
22
|
+
from?: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Dispatch as ReactDispatch, SetStateAction as ReactSetStateAction } from 'react';
|
|
2
|
+
export type Dispatch<A> = (action: A) => void
|
|
3
|
+
export type SetStateAction<T> = ReactDispatch<ReactSetStateAction<T>>
|
|
4
|
+
export type UpdateStateFunction<T> = (data: any, prev?: any, setState?: SetStateAction<any>) => T
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OnClick } from '../types';
|
|
2
|
+
export declare const truncateValUtil: (val: string, maxTruncateVal?: number) => string;
|
|
3
|
+
export declare const url: (url: string) => void;
|
|
4
|
+
export declare const handleCloseUtil: (setState: any) => void;
|
|
5
|
+
export declare const handleOpenUtil: (e: OnClick, setState: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './common';
|
package/dist/vite-env.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sixseconds-modules",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"@emotion/styled": "^11.0.0",
|
|
33
33
|
"@mui/icons-material": "^5.0.0 || ^6.0.0",
|
|
34
34
|
"@mui/material": "^5.0.0 || ^6.0.0",
|
|
35
|
-
"@reduxjs/toolkit": "^1.0.0 || ^2.0.0",
|
|
36
35
|
"react": "^18.0.0 || ^19.0.0",
|
|
37
36
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
37
|
},
|
|
@@ -45,10 +44,16 @@
|
|
|
45
44
|
}
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
47
|
+
"@reduxjs/toolkit": "^2.8.1",
|
|
48
|
+
"@t3-oss/env-core": "^0.13.4",
|
|
49
|
+
"@t3-oss/env-nextjs": "^0.13.4",
|
|
50
|
+
"@tailwindcss/vite": "^4.1.6",
|
|
48
51
|
"axios": "^1.8.1",
|
|
49
52
|
"js-cookie": "^3.0.5",
|
|
50
53
|
"react-hot-toast": "^2.5.2",
|
|
51
|
-
"react-redux": "^9.2.0"
|
|
54
|
+
"react-redux": "^9.2.0",
|
|
55
|
+
"tailwindcss": "^4.1.6",
|
|
56
|
+
"zod": "^3.24.4"
|
|
52
57
|
},
|
|
53
58
|
"devDependencies": {
|
|
54
59
|
"@emotion/react": "^11.14.0",
|
|
@@ -56,7 +61,6 @@
|
|
|
56
61
|
"@eslint/js": "^9.21.0",
|
|
57
62
|
"@mui/icons-material": "^6.4.5",
|
|
58
63
|
"@mui/material": "^6.4.5",
|
|
59
|
-
"@reduxjs/toolkit": "^2.5.1",
|
|
60
64
|
"@types/js-cookie": "^3.0.6",
|
|
61
65
|
"@types/node": "^22.15.3",
|
|
62
66
|
"@types/react": "^19.0.10",
|
|
@@ -73,6 +77,7 @@
|
|
|
73
77
|
"typescript": "~5.7.2",
|
|
74
78
|
"typescript-eslint": "^8.24.1",
|
|
75
79
|
"vite": "^6.2.0",
|
|
76
|
-
"vite-plugin-dts": "^4.5.3"
|
|
80
|
+
"vite-plugin-dts": "^4.5.3",
|
|
81
|
+
"vite-plugin-svgr": "^4.3.0"
|
|
77
82
|
}
|
|
78
83
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function LanguageModal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ListMenuItem: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Button: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './user';
|
package/dist/services/api.d.ts
DELETED
package/dist/services/axios.d.ts
DELETED
package/dist/types/user.d.ts
DELETED