sixseconds-modules 1.0.8 → 1.1.0
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/assets/svg/index.d.ts +4 -0
- package/dist/components/dialogs/dangerDialog.d.ts +12 -0
- package/dist/components/dialogs/index.d.ts +1 -0
- package/dist/components/elements/backArrow.d.ts +8 -0
- package/dist/components/elements/index.d.ts +2 -0
- package/dist/components/elements/logo.d.ts +7 -0
- package/dist/components/elements/warning.d.ts +7 -0
- package/dist/components/header/dropDownMenu.d.ts +10 -0
- package/dist/components/header/index.d.ts +19 -0
- package/dist/components/header/language.d.ts +9 -0
- package/dist/components/header/notification.d.ts +0 -0
- package/dist/components/header/profile.d.ts +0 -0
- package/dist/components/header/subheaderStyled.d.ts +4 -0
- package/dist/components/header/type.d.ts +25 -0
- package/dist/components/header/userProfile.d.ts +12 -0
- package/dist/constants/apis.d.ts +6 -0
- package/dist/constants/common.d.ts +57 -0
- package/dist/constants/dates.d.ts +3 -0
- package/dist/constants/env.d.ts +11 -0
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/routes.d.ts +9 -0
- package/dist/constants/validation.d.ts +4 -0
- package/dist/index.d.ts +1 -2
- package/dist/my-lib.js +104 -1
- package/dist/my-lib.js.map +1 -1
- package/dist/my-lib.mjs +5398 -14
- package/dist/my-lib.mjs.map +1 -1
- package/dist/types/custom.d.ts +24 -0
- package/dist/types/htmlElements.d.ts +6 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/nextTypes.d.ts +12 -0
- package/dist/types/reactTypes.d.ts +4 -0
- package/dist/utils/common.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +22 -11
- package/dist/components/Button.d.ts +0 -6
- package/dist/components/index.d.ts +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type Role = "Master" | "Distributor" | "Coach" | "Referent";
|
|
3
|
+
|
|
4
|
+
// interfaces definition
|
|
5
|
+
export interface IChildrenProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface ISelectWithSearch {
|
|
9
|
+
id?: number | string | null;
|
|
10
|
+
value: string | number;
|
|
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
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NextPage } from 'next';
|
|
2
|
+
import { AppProps } from 'next/app';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
export type NextPageWithLayout = NextPage & {
|
|
5
|
+
getLayout: () => ReactNode
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type AppPropsWithLayout = AppProps & {
|
|
9
|
+
component: NextPageWithLayout
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type Slug = string | string[] | undefined
|
|
@@ -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 @@
|
|
|
1
|
+
export * from './common';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sixseconds-modules",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"main": "dist/my-lib.
|
|
5
|
-
"module": "dist/my-lib.
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"main": "dist/my-lib.js",
|
|
5
|
+
"module": "dist/my-lib.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/my-lib.
|
|
14
|
-
"require": "./dist/my-lib.
|
|
15
|
-
}
|
|
16
|
-
"./package.json": "./package.json"
|
|
13
|
+
"import": "./dist/my-lib.mjs",
|
|
14
|
+
"require": "./dist/my-lib.js"
|
|
15
|
+
}
|
|
17
16
|
},
|
|
18
17
|
"scripts": {
|
|
19
18
|
"build": "vite build",
|
|
@@ -25,18 +24,30 @@
|
|
|
25
24
|
"description": "",
|
|
26
25
|
"peerDependencies": {
|
|
27
26
|
"react": "^18.0.0",
|
|
28
|
-
"react-dom": "^18.0.0"
|
|
27
|
+
"react-dom": "^18.0.0",
|
|
28
|
+
"@emotion/react": "^11.14.0",
|
|
29
|
+
"@emotion/styled": "^11.14.0",
|
|
30
|
+
"@mui/icons-material": "^7.0.2",
|
|
31
|
+
"@mui/material": "^7.0.2",
|
|
32
|
+
"@t3-oss/env-nextjs": "^0.13.0",
|
|
33
|
+
"zod": "^3.24.3"
|
|
29
34
|
},
|
|
30
35
|
"devDependencies": {
|
|
31
36
|
"@types/node": "^22.15.3",
|
|
32
37
|
"@types/react": "^18.0.0",
|
|
33
38
|
"@types/react-dom": "^18.0.0",
|
|
39
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
34
40
|
"react": "^18.0.0",
|
|
35
41
|
"react-dom": "^18.0.0",
|
|
36
42
|
"typescript": "^5.8.3",
|
|
37
43
|
"vite": "^6.3.3",
|
|
38
44
|
"vite-plugin-dts": "^4.5.3",
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
46
|
+
"@emotion/react": "^11.14.0",
|
|
47
|
+
"@emotion/styled": "^11.14.0",
|
|
48
|
+
"@mui/icons-material": "^7.0.2",
|
|
49
|
+
"@mui/material": "^7.0.2",
|
|
50
|
+
"@t3-oss/env-nextjs": "^0.13.0",
|
|
51
|
+
"zod": "^3.24.3"
|
|
52
|
+
}
|
|
42
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Button';
|