sixseconds-modules 1.4.8 → 1.5.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.
@@ -1,24 +1,26 @@
1
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
- }
2
+
3
+
4
+ export type ToolsRoles = "Master" | "Distributor" | "Coach" | "Referent"
5
+
6
+ // interfaces definition
7
+ export interface IChildrenProps {
8
+ children: ReactNode
9
+ }
10
+ export interface ISelectWithSearch {
11
+ id: number
12
+ value: string
13
+ label: string
14
+ }
15
+
16
+ export type t = (e: string) => string
17
+
18
+ export type Filters = {
19
+ type?: string
20
+ page?: number
21
+ search?: string
22
+ pagePerItm?: number
23
+ to?: string
24
+ from?: string
25
+ limit?: number
26
+ }
@@ -1,6 +1,8 @@
1
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
2
+
3
+
4
+ export type OnClick = MouseEvent<HTMLInputElement>
5
+
6
+ export type OnChange = ChangeEvent<HTMLInputElement>
7
+
8
+ export type onChangeWithSynthetic = React.SyntheticEvent
@@ -1,4 +1,4 @@
1
- // export types
2
- export * from './custom'
3
- export * from './htmlElements'
4
- export * from './reactTypes'
1
+ // export types
2
+ export * from './custom'
3
+ export * from './htmlElements'
4
+ export * from './reactTypes'
@@ -1,4 +1,6 @@
1
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
2
+
3
+
4
+ export type Dispatch<A> = (action: A) => void
5
+ export type SetStateAction<T> = ReactDispatch<ReactSetStateAction<T>>
6
+ export type UpdateStateFunction<T> = (data: any, prev?: any, setState?: SetStateAction<any>) => T
@@ -1,2 +1,2 @@
1
- /// <reference types="vite/client" />
2
- /// <reference types="vite-plugin-svgr/client" />
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="vite-plugin-svgr/client" />
package/package.json CHANGED
@@ -1,95 +1,97 @@
1
- {
2
- "name": "sixseconds-modules",
3
- "private": false,
4
- "version": "1.4.8",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.es.js",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.es.js",
12
- "require": "./dist/index.cjs.js"
13
- },
14
- "./styles": "./dist/styles.css"
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "sideEffects": [
20
- "./dist/styles.css"
21
- ],
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
- "scripts": {
26
- "preview": "vite preview",
27
- "dev": "vite --port 3000",
28
- "build:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode production",
29
- "build-qa:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode qa",
30
- "build-dev:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode development",
31
- "lint": "eslint .",
32
- "format": "prettier --write .",
33
- "prepare": "husky install",
34
- "dev:stop": "npx kill-port 3000 -y",
35
- "type:check": "tsc --noEmit -p ./tsconfig.json",
36
- "deps:check": "yarn knip --config ./knip.json"
37
- },
38
- "peerDependencies": {
39
- "@emotion/react": "^11.0.0 || ^11.11.1",
40
- "@emotion/styled": "^11.0.0 || ^11.11.0",
41
- "@mui/icons-material": "^5.0.0 || ^6.0.0",
42
- "@mui/material": "^5.0.0 || ^6.0.0",
43
- "react": "^18.0.0 || ^19.0.0",
44
- "react-dom": "^18.0.0 || ^19.0.0"
45
- },
46
- "peerDependenciesMeta": {
47
- "react": {
48
- "optional": false
49
- },
50
- "react-dom": {
51
- "optional": false
52
- }
53
- },
54
- "dependencies": {
55
- "@t3-oss/env-core": "^0.13.4",
56
- "axios": "^1.8.1",
57
- "kill-port": "^2.0.1",
58
- "moment": "^2.30.1",
59
- "react-hot-toast": "^2.5.2",
60
- "react-infinite-scroll-component": "^6.1.0",
61
- "urlcat": "2",
62
- "vite-plugin-css-injected-by-js": "^3.5.2",
63
- "zod": "^3.24.4"
64
- },
65
- "devDependencies": {
66
- "@commitlint/cli": "^19.8.1",
67
- "@commitlint/config-conventional": "^19.8.1",
68
- "@emotion/react": "^11.14.0",
69
- "@emotion/styled": "^11.14.0",
70
- "@eslint/js": "^9.21.0",
71
- "@mui/icons-material": "^6.4.5",
72
- "@mui/material": "^6.4.5",
73
- "@types/node": "^24.0.3",
74
- "@types/react": "^19.0.10",
75
- "@types/react-dom": "^19.0.4",
76
- "@vitejs/plugin-react": "^4.3.4",
77
- "eslint": "^9.21.0",
78
- "eslint-config-prettier": "^10.1.5",
79
- "eslint-plugin-prettier": "^5.4.1",
80
- "eslint-plugin-react-hooks": "^5.0.0",
81
- "eslint-plugin-react-refresh": "^0.4.19",
82
- "globals": "^15.15.0",
83
- "husky": "^9.1.7",
84
- "knip": "^5.61.0",
85
- "prettier": "^3.5.3",
86
- "react": "^19.0.0",
87
- "react-dom": "^19.0.0",
88
- "rimraf": "^5.0.1",
89
- "typescript": "^5.8.3",
90
- "typescript-eslint": "^8.24.1",
91
- "vite": "^6.2.0",
92
- "vite-plugin-dts": "^4.5.3",
93
- "vite-plugin-svgr": "^4.3.0"
94
- }
95
- }
1
+ {
2
+ "name": "sixseconds-modules",
3
+ "private": false,
4
+ "version": "1.5.0",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.es.js",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.es.js",
13
+ "require": "./dist/index.cjs.js"
14
+ },
15
+ "./styles": "./dist/styles.css"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "sideEffects": [
21
+ "./dist/styles.css"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "preview": "vite preview",
28
+ "dev": "vite --port 3000",
29
+ "build:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode production",
30
+ "build-qa:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode qa",
31
+ "build-dev:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode development",
32
+ "lint": "eslint .",
33
+ "format": "prettier --write .",
34
+ "prepare": "husky install",
35
+ "dev:stop": "npx kill-port 3000 -y",
36
+ "type:check": "tsc --noEmit -p ./tsconfig.json",
37
+ "deps:check": "yarn knip --config ./knip.json"
38
+ },
39
+ "peerDependencies": {
40
+ "@emotion/react": "^11.0.0 || ^11.11.1",
41
+ "@emotion/styled": "^11.0.0 || ^11.11.0",
42
+ "@mui/icons-material": "^5.0.0 || ^6.0.0",
43
+ "@mui/material": "^5.0.0 || ^6.0.0",
44
+ "react": "^18.0.0 || ^19.0.0",
45
+ "react-dom": "^18.0.0 || ^19.0.0"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "react": {
49
+ "optional": false
50
+ },
51
+ "react-dom": {
52
+ "optional": false
53
+ }
54
+ },
55
+ "dependencies": {
56
+ "@t3-oss/env-core": "^0.13.4",
57
+ "axios": "^1.8.1",
58
+ "kill-port": "^2.0.1",
59
+ "moment": "^2.30.1",
60
+ "react-hot-toast": "^2.5.2",
61
+ "react-infinite-scroll-component": "^6.1.0",
62
+ "sixseconds-modules": "^1.4.6",
63
+ "urlcat": "2",
64
+ "vite-plugin-css-injected-by-js": "^3.5.2",
65
+ "zod": "^3.24.4"
66
+ },
67
+ "devDependencies": {
68
+ "@commitlint/cli": "^19.8.1",
69
+ "@commitlint/config-conventional": "^19.8.1",
70
+ "@emotion/react": "^11.14.0",
71
+ "@emotion/styled": "^11.14.0",
72
+ "@eslint/js": "^9.21.0",
73
+ "@mui/icons-material": "^6.4.5",
74
+ "@mui/material": "^6.4.5",
75
+ "@types/node": "^24.0.3",
76
+ "@types/react": "^19.0.10",
77
+ "@types/react-dom": "^19.0.4",
78
+ "@vitejs/plugin-react": "^4.3.4",
79
+ "eslint": "^9.21.0",
80
+ "eslint-config-prettier": "^10.1.5",
81
+ "eslint-plugin-prettier": "^5.4.1",
82
+ "eslint-plugin-react-hooks": "^5.0.0",
83
+ "eslint-plugin-react-refresh": "^0.4.19",
84
+ "globals": "^15.15.0",
85
+ "husky": "^9.1.7",
86
+ "knip": "^5.61.0",
87
+ "prettier": "^3.5.3",
88
+ "react": "^19.0.0",
89
+ "react-dom": "^19.0.0",
90
+ "rimraf": "^5.0.1",
91
+ "typescript": "^5.8.3",
92
+ "typescript-eslint": "^8.24.1",
93
+ "vite": "^6.2.0",
94
+ "vite-plugin-dts": "^4.5.3",
95
+ "vite-plugin-svgr": "^4.3.0"
96
+ }
97
+ }