sixseconds-modules 1.6.12 → 1.6.15
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 +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/type.d.ts +14 -0
- package/dist/components/header/userProfile.d.ts +1 -1
- 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 +9206 -3756
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9222 -3772
- 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/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 {};
|
|
@@ -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
|
|
|
@@ -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;
|