sixseconds-modules 1.6.11 → 1.6.14
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/README.md +0 -50
- package/dist/api/user.d.ts +4 -0
- package/dist/components/buttons/button.d.ts +11 -0
- package/dist/components/buttons/buttonStyled.d.ts +2 -0
- package/dist/components/buttons/index.d.ts +1 -0
- package/dist/components/change-password/changePasswordStyled.d.ts +2 -0
- package/dist/components/change-password/index.d.ts +8 -0
- package/dist/components/dialogs/changePasswrod.d.ts +10 -0
- package/dist/components/dialogs/index.d.ts +1 -0
- package/dist/components/dialogs/styles.d.ts +3 -0
- package/dist/components/dialogs/viewProfile.d.ts +9 -0
- package/dist/components/elements/formikMsg.d.ts +6 -0
- package/dist/components/elements/index.d.ts +1 -0
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/type.d.ts +15 -0
- package/dist/components/header/userProfile.d.ts +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/inputFields/index.d.ts +1 -0
- package/dist/components/inputFields/labeledInput.d.ts +15 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/translation.d.ts +35 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useFormik.d.ts +5 -0
- package/dist/index.cjs.js +9216 -3763
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9232 -3779
- package/dist/index.es.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/validation.d.ts +23 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
```
|
package/dist/api/user.d.ts
CHANGED
|
@@ -6,3 +6,7 @@ export declare function notificationApi(data: any): Promise<import('./types/base
|
|
|
6
6
|
remote: "success";
|
|
7
7
|
data: any;
|
|
8
8
|
}>;
|
|
9
|
+
export declare function changeUserPassword(payload: any): Promise<import('./types/base').ErrorResult | {
|
|
10
|
+
remote: "success";
|
|
11
|
+
data: any;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from '@mui/material';
|
|
2
|
+
import { default as React, ReactNode } from 'react';
|
|
3
|
+
interface ICostumeButton extends ButtonProps {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
btnTitle?: string | ReactNode;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function Button({ isLoading, btnTitle, className, disabled, ...rest }: ICostumeButton): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const ButtonStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export default ButtonStyled;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const ChangePasswordStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export default ChangePasswordStyled;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SetStateAction, t } from '../../types';
|
|
2
|
+
import { IState } from '../header/type';
|
|
3
|
+
interface IProps {
|
|
4
|
+
email: string;
|
|
5
|
+
t: t;
|
|
6
|
+
setInitialState: SetStateAction<IState>;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function ChangePasswordDialog({ isOpen, email, t, setInitialState }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ChangePasswordStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const ProfileStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export default ProfileStyled;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IState, IUserDataProps } from '../header/type';
|
|
2
|
+
import { SetStateAction } from '../../types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
userData?: IUserDataProps;
|
|
5
|
+
setInitialState: SetStateAction<IState>;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function ViewProfileDialog({ userData, setInitialState, isOpen }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IHeaderProps } from './type';
|
|
2
|
-
export declare const Header: ({ frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, notificationAccessApps, sx, t, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Header: ({ router, frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, notificationAccessApps, sx, t, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,8 @@ export interface IState {
|
|
|
11
11
|
logout: boolean
|
|
12
12
|
lang: boolean
|
|
13
13
|
dropDownMenu: boolean
|
|
14
|
+
changePassword: boolean
|
|
15
|
+
viewProfile: boolean
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -25,6 +27,7 @@ export interface INotificationState {
|
|
|
25
27
|
|
|
26
28
|
export interface IUserDataProps {
|
|
27
29
|
userprofile: string
|
|
30
|
+
certId: string | number
|
|
28
31
|
email: string
|
|
29
32
|
role: string
|
|
30
33
|
fullName: string
|
|
@@ -35,6 +38,17 @@ export interface IUserDataProps {
|
|
|
35
38
|
link: string
|
|
36
39
|
type: "tab" | "app"
|
|
37
40
|
}[]
|
|
41
|
+
bio: string
|
|
42
|
+
title: string
|
|
43
|
+
company: string
|
|
44
|
+
certBio: string
|
|
45
|
+
certProfileUrl: string
|
|
46
|
+
certOfferToHelp: string
|
|
47
|
+
certification: string[]
|
|
48
|
+
country: string
|
|
49
|
+
languages: string[]
|
|
50
|
+
areaOfWork: string[]
|
|
51
|
+
linkedInUrl: string
|
|
38
52
|
notificationCount: number
|
|
39
53
|
}
|
|
40
54
|
|
|
@@ -47,6 +61,7 @@ export interface IInterFaceLang {
|
|
|
47
61
|
|
|
48
62
|
export interface IHeaderProps {
|
|
49
63
|
t: t
|
|
64
|
+
router?: any
|
|
50
65
|
notificationAccessApps?: {
|
|
51
66
|
name: string
|
|
52
67
|
}[]
|
|
@@ -3,9 +3,10 @@ import { SetStateAction, t } from '../../types';
|
|
|
3
3
|
interface IProps {
|
|
4
4
|
userData?: IUserDataProps;
|
|
5
5
|
initialState: IState;
|
|
6
|
-
setInitialState
|
|
6
|
+
setInitialState: SetStateAction<IState>;
|
|
7
7
|
extraMenuOptions?: any;
|
|
8
8
|
t: t;
|
|
9
|
+
router?: any;
|
|
9
10
|
}
|
|
10
|
-
declare const UserProfile: ({ t, userData, setInitialState, extraMenuOptions }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const UserProfile: ({ t, userData, setInitialState, extraMenuOptions, router }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export default UserProfile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './labeledInput';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StandardTextFieldProps, SxProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface IInput extends StandardTextFieldProps {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
Placeholder?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
classname?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
sx?: SxProps;
|
|
12
|
+
handleInput?: (val: any) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function LabeledInput({ label, sx, type, name, value, Placeholder, required, handleInput, disabled, ...rest }: IInput): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const TRANSLATION_PREFIX: Readonly<{
|
|
2
|
+
tooltip: "tooltip_";
|
|
3
|
+
validation: "validation_";
|
|
4
|
+
toast: "toast_";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const COMMON_VALIDATION_MASSAGE: Readonly<{
|
|
7
|
+
password: string;
|
|
8
|
+
email: string;
|
|
9
|
+
oldPassword: string;
|
|
10
|
+
gender: string;
|
|
11
|
+
projectType: string;
|
|
12
|
+
name: string;
|
|
13
|
+
surname: string;
|
|
14
|
+
language: string;
|
|
15
|
+
pricing: string;
|
|
16
|
+
coach: string;
|
|
17
|
+
amount: string;
|
|
18
|
+
credit: string;
|
|
19
|
+
report: string;
|
|
20
|
+
reportNorm: string;
|
|
21
|
+
date: string;
|
|
22
|
+
parentDistributor: string;
|
|
23
|
+
belongTo: string;
|
|
24
|
+
notes: string;
|
|
25
|
+
company: string;
|
|
26
|
+
orgLogo: string;
|
|
27
|
+
url: string;
|
|
28
|
+
description: string;
|
|
29
|
+
maxVal: string;
|
|
30
|
+
minVal: string;
|
|
31
|
+
emailValidation: string;
|
|
32
|
+
urlValidation: string;
|
|
33
|
+
certifications: string;
|
|
34
|
+
questions: string;
|
|
35
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useFormikWithDefaultsProps } from './useFormik';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FormikConfig, FormikProps, FormikValues } from 'formik';
|
|
2
|
+
interface CustomFormikConfig<Values extends FormikValues> extends FormikConfig<Values> {
|
|
3
|
+
}
|
|
4
|
+
declare const useFormikWithDefaultsProps: <Values extends FormikValues>(props: CustomFormikConfig<Values>) => FormikProps<Values>;
|
|
5
|
+
export default useFormikWithDefaultsProps;
|