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.
Files changed (38) hide show
  1. package/dist/assets/svg/index.d.ts +4 -0
  2. package/dist/components/dialogs/dangerDialog.d.ts +12 -0
  3. package/dist/components/dialogs/index.d.ts +1 -0
  4. package/dist/components/elements/backArrow.d.ts +8 -0
  5. package/dist/components/elements/index.d.ts +2 -0
  6. package/dist/components/elements/logo.d.ts +7 -0
  7. package/dist/components/elements/warning.d.ts +7 -0
  8. package/dist/components/header/dropDownMenu.d.ts +10 -0
  9. package/dist/components/header/index.d.ts +19 -0
  10. package/dist/components/header/language.d.ts +9 -0
  11. package/dist/components/header/notification.d.ts +0 -0
  12. package/dist/components/header/profile.d.ts +0 -0
  13. package/dist/components/header/subheaderStyled.d.ts +4 -0
  14. package/dist/components/header/type.d.ts +25 -0
  15. package/dist/components/header/userProfile.d.ts +12 -0
  16. package/dist/constants/apis.d.ts +6 -0
  17. package/dist/constants/common.d.ts +57 -0
  18. package/dist/constants/dates.d.ts +3 -0
  19. package/dist/constants/env.d.ts +11 -0
  20. package/dist/constants/index.d.ts +6 -0
  21. package/dist/constants/routes.d.ts +9 -0
  22. package/dist/constants/validation.d.ts +4 -0
  23. package/dist/index.d.ts +1 -2
  24. package/dist/my-lib.js +104 -1
  25. package/dist/my-lib.js.map +1 -1
  26. package/dist/my-lib.mjs +5398 -14
  27. package/dist/my-lib.mjs.map +1 -1
  28. package/dist/types/custom.d.ts +24 -0
  29. package/dist/types/htmlElements.d.ts +6 -0
  30. package/dist/types/index.d.ts +5 -0
  31. package/dist/types/nextTypes.d.ts +12 -0
  32. package/dist/types/reactTypes.d.ts +4 -0
  33. package/dist/utils/common.d.ts +2 -0
  34. package/dist/utils/index.d.ts +1 -0
  35. package/dist/vite-env.d.ts +1 -0
  36. package/package.json +22 -11
  37. package/dist/components/Button.d.ts +0 -6
  38. 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,6 @@
1
+ import { default as React, ChangeEvent } from 'react';
2
+ export type OnClick = MouseEvent<HTMLInputElement>
3
+
4
+ export type OnChange = ChangeEvent<HTMLInputElement>
5
+
6
+ export type onChangeWithSynthetic = React.SyntheticEvent
@@ -0,0 +1,5 @@
1
+ // export types
2
+ export * from './custom'
3
+ export * from './htmlElements'
4
+ export * from './nextTypes'
5
+ export * from './reactTypes'
@@ -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,2 @@
1
+ export declare const truncateValUtil: (val: string, maxTruncateVal?: number) => string;
2
+ export declare const handleCloseUtil: (setState: any) => void;
@@ -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.8",
4
- "main": "dist/my-lib.cjs.js",
5
- "module": "dist/my-lib.es.js",
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.es.js",
14
- "require": "./dist/my-lib.cjs.js"
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
- "@vitejs/plugin-react": "^4.4.1"
40
- },
41
- "dependencies": {}
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,6 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface ButtonProps {
3
- label: string;
4
- onClick?: () => void;
5
- }
6
- export declare const Button: React.FC<ButtonProps>;
@@ -1 +0,0 @@
1
- export * from './Button';