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 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
- ```
@@ -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';
@@ -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?: SetStateAction<IState>;
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;
@@ -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;