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.
@@ -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,8 @@
1
+ import { t } from '../../types';
2
+ interface IProps {
3
+ onClose: () => void;
4
+ email: string;
5
+ t: t;
6
+ }
7
+ export default function ChangePassword({ onClose, email, t }: IProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -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 {};
@@ -1 +1,2 @@
1
1
  export { default as DangerDialog } from './dangerDialog';
2
+ export { default as ViewProfileDialog } from './viewProfile';
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ interface IProps {
2
+ fieldName: string;
3
+ formik: any;
4
+ }
5
+ declare const ErrorMessage: ({ fieldName, formik }: IProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default ErrorMessage;
@@ -1,2 +1,3 @@
1
1
  export { default as BackArrow } from './backArrow';
2
2
  export { default as Warning } from './warning';
3
+ export { default as FormikErrorMsg } from './formikMsg';
@@ -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
 
@@ -3,7 +3,7 @@ import { SetStateAction, t } from '../../types';
3
3
  interface IProps {
4
4
  userData?: IUserDataProps;
5
5
  initialState: IState;
6
- setInitialState?: SetStateAction<IState>;
6
+ setInitialState: SetStateAction<IState>;
7
7
  extraMenuOptions?: any;
8
8
  t: t;
9
9
  router?: any;
@@ -1,2 +1,4 @@
1
1
  export * from './elements/';
2
2
  export * from './header/';
3
+ export * from './inputFields/';
4
+ export * from './buttons/';
@@ -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 {};
@@ -4,3 +4,4 @@ export * from './common';
4
4
  export * from './apis';
5
5
  export * from './dates';
6
6
  export * from './validation';
7
+ export * from './translation';
@@ -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;