sixseconds-modules 1.0.8 → 1.1.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.
- package/dist/assets/svg/index.d.ts +4 -0
- package/dist/components/dialogs/dangerDialog.d.ts +12 -0
- package/dist/components/dialogs/index.d.ts +1 -0
- package/dist/components/elements/backArrow.d.ts +8 -0
- package/dist/components/elements/index.d.ts +2 -0
- package/dist/components/elements/logo.d.ts +7 -0
- package/dist/components/elements/warning.d.ts +7 -0
- package/dist/components/header/dropDownMenu.d.ts +10 -0
- package/dist/components/header/index.d.ts +19 -0
- package/dist/components/header/language.d.ts +9 -0
- package/dist/components/header/notification.d.ts +0 -0
- package/dist/components/header/profile.d.ts +0 -0
- package/dist/components/header/subheaderStyled.d.ts +4 -0
- package/dist/components/header/type.d.ts +25 -0
- package/dist/components/header/userProfile.d.ts +12 -0
- package/dist/constants/apis.d.ts +6 -0
- package/dist/constants/common.d.ts +57 -0
- package/dist/constants/dates.d.ts +3 -0
- package/dist/constants/env.d.ts +11 -0
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/routes.d.ts +9 -0
- package/dist/constants/validation.d.ts +4 -0
- package/dist/index.d.ts +1 -2
- package/dist/my-lib.js +104 -1
- package/dist/my-lib.js.map +1 -1
- package/dist/my-lib.mjs +5398 -14
- package/dist/my-lib.mjs.map +1 -1
- package/dist/types/custom.d.ts +24 -0
- package/dist/types/htmlElements.d.ts +6 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/nextTypes.d.ts +12 -0
- package/dist/types/reactTypes.d.ts +4 -0
- package/dist/utils/common.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +22 -11
- package/dist/components/Button.d.ts +0 -6
- package/dist/components/index.d.ts +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
setInitialState: any;
|
|
7
|
+
buttonTitle?: string;
|
|
8
|
+
handleClick: () => void;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const DangerDialog: ({ open, setInitialState, title, description, buttonTitle, isLoading, handleClick, }: IProps) => React.JSX.Element;
|
|
12
|
+
export default DangerDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DangerDialog } from './dangerDialog';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IState } from './type';
|
|
3
|
+
import { SetStateAction } from '../../types';
|
|
4
|
+
interface IProps {
|
|
5
|
+
headerMenuArray: any[];
|
|
6
|
+
initialState: IState;
|
|
7
|
+
setInitialState?: SetStateAction<IState>;
|
|
8
|
+
}
|
|
9
|
+
declare const DropdownMenu: ({ headerMenuArray, initialState }: IProps) => React.JSX.Element;
|
|
10
|
+
export default DropdownMenu;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { t } from '../../types';
|
|
3
|
+
interface SubHeaderProps {
|
|
4
|
+
isDesktopCollapsed?: boolean;
|
|
5
|
+
userData?: any;
|
|
6
|
+
langData?: any;
|
|
7
|
+
endCustomComponents?: any;
|
|
8
|
+
frontCustomComponent?: any;
|
|
9
|
+
centerCustomComponents?: any;
|
|
10
|
+
toggleSiderMenu?: any;
|
|
11
|
+
updateInterfaceLang?: any;
|
|
12
|
+
selectedUiLang?: any;
|
|
13
|
+
logoutHandler?: any;
|
|
14
|
+
isLogo?: boolean;
|
|
15
|
+
isMenu?: boolean;
|
|
16
|
+
t?: t;
|
|
17
|
+
}
|
|
18
|
+
declare const SubHeader: ({ frontCustomComponent, endCustomComponents, isDesktopCollapsed, userData, langData, toggleSiderMenu, centerCustomComponents, updateInterfaceLang, selectedUiLang, logoutHandler, isLogo, isMenu, t, }: SubHeaderProps) => React.JSX.Element;
|
|
19
|
+
export default SubHeader;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
setState?: any;
|
|
4
|
+
langData?: any;
|
|
5
|
+
userData?: any;
|
|
6
|
+
updateInterfaceLang?: any;
|
|
7
|
+
}
|
|
8
|
+
export default function Language({ setState, userData, langData, updateInterfaceLang, }: IProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const SubHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/material').AppBarOwnProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "position" | "color"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLElement> | null | undefined;
|
|
3
|
+
}, "className" | "style" | "classes" | "position" | "color" | "children" | "elevation" | "square" | "sx" | "variant" | "enableColorOnDark"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
|
+
export default SubHeaderStyled;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// import { Notification } from "@/api/types/common"
|
|
2
|
+
// import { StateBaseType } from "@/types";
|
|
3
|
+
|
|
4
|
+
export interface IState {
|
|
5
|
+
languages: string[];
|
|
6
|
+
toggle: "" | "profile" | "lang" | "notification";
|
|
7
|
+
isApprovalDialogOpen: boolean;
|
|
8
|
+
toggleMenu: boolean;
|
|
9
|
+
dialogs: {
|
|
10
|
+
logout: boolean;
|
|
11
|
+
viewProfile: false;
|
|
12
|
+
};
|
|
13
|
+
toggles: {
|
|
14
|
+
dropdownMenu: boolean;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface INotificationState {
|
|
19
|
+
notificationData: Notification[];
|
|
20
|
+
page: number;
|
|
21
|
+
currentPage: number;
|
|
22
|
+
lastPage: number;
|
|
23
|
+
requestAcceptedDialog?: boolean;
|
|
24
|
+
userRequest?: any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SetStateAction } from '../../types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IState } from './type';
|
|
4
|
+
interface IProps {
|
|
5
|
+
userData: any;
|
|
6
|
+
initialState: IState;
|
|
7
|
+
handleOpen: any;
|
|
8
|
+
ref?: any;
|
|
9
|
+
setInitialState?: SetStateAction<IState>;
|
|
10
|
+
}
|
|
11
|
+
declare const UserProfile: ({ userData, initialState, setInitialState, ref, }: IProps) => React.JSX.Element;
|
|
12
|
+
export default UserProfile;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const SERVER_STATUS_CODE: Readonly<{
|
|
2
|
+
notFound: 404;
|
|
3
|
+
badRequest: 400;
|
|
4
|
+
forbidden: 403;
|
|
5
|
+
authenticationDenied: 401;
|
|
6
|
+
serverError: 500;
|
|
7
|
+
success: 200;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const APP_NAMES: Readonly<{
|
|
10
|
+
events: "Events";
|
|
11
|
+
tools: "Tools";
|
|
12
|
+
certHome: "Cert Home";
|
|
13
|
+
cards: "Cards";
|
|
14
|
+
sso: "SSO Admin";
|
|
15
|
+
cardsHome: "Cards Home";
|
|
16
|
+
cardsAdmin: "Cards Admin";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const ALERT_MESSAGES: Readonly<{
|
|
19
|
+
dataNoFount: "Data not found";
|
|
20
|
+
searchNotFount: "Sorry, there are no matches. Try a new search?";
|
|
21
|
+
commonLoadingMessage: "Please wait...";
|
|
22
|
+
submittingSuccessMassage: "Detail Added Successfully";
|
|
23
|
+
allFieldsRequired: "Please fill all required fields";
|
|
24
|
+
NA: "N/A";
|
|
25
|
+
fallbackError: "Something went wrong, Please try again later!";
|
|
26
|
+
networkError: "Please check your internet connection!";
|
|
27
|
+
timeOutError: "Your connection taking too long to get data!";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const ROLES: Readonly<{
|
|
30
|
+
master: "Master";
|
|
31
|
+
distributor: "Distributor";
|
|
32
|
+
coach: "Coach";
|
|
33
|
+
referent: "Referent";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const REGEX: Readonly<{
|
|
36
|
+
email: RegExp;
|
|
37
|
+
mobile: RegExp;
|
|
38
|
+
website: RegExp;
|
|
39
|
+
password: RegExp;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const WEBSITE_LINKS: Readonly<{
|
|
42
|
+
helpDisk: "#";
|
|
43
|
+
instagram: "https://www.instagram.com/6secondseq/";
|
|
44
|
+
facebook: "https://www.facebook.com/sixseconds";
|
|
45
|
+
linkedin: "https://www.linkedin.com/company/six-seconds/";
|
|
46
|
+
youtube: "https://www.youtube.com/c/SixSeconds";
|
|
47
|
+
x: "https://x.com/6s_EQ";
|
|
48
|
+
termsOfService: "https://www.6seconds.org/about/terms-of-use/";
|
|
49
|
+
privacyPolicy: "https://www.6seconds.org/about/policies/privacy/";
|
|
50
|
+
certUrl: "https://cert.6seconds.org/";
|
|
51
|
+
}>;
|
|
52
|
+
export declare const RTK_ERROR_CODES: Readonly<{
|
|
53
|
+
fetchError: "FETCH_ERROR";
|
|
54
|
+
parsingError: "PARSING_ERROR";
|
|
55
|
+
timeOutError: "TIMEOUT_ERROR";
|
|
56
|
+
customError: "CUSTOM_ERROR";
|
|
57
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const env: Readonly<{
|
|
2
|
+
NEXT_PUBLIC_BASE_URL: string;
|
|
3
|
+
NEXT_PUBLIC_SSO_API_BASE_URL: string;
|
|
4
|
+
NEXT_PUBLIC_TOKEN_NAME: string;
|
|
5
|
+
NEXT_PUBLIC_SSO_FRONTEND_BASE_URL: string;
|
|
6
|
+
NEXT_PUBLIC_TOOLS_FRONTEND_BASE_URL: string;
|
|
7
|
+
NEXT_PUBLIC_EVENTS_FRONTEND_BASE_URL: string;
|
|
8
|
+
NEXT_PUBLIC_CARDS_HOME_FRONTEND_BASE_URL: string;
|
|
9
|
+
NEXT_PUBLIC_CARDS_ADMIN_FRONTEND_BASE_URL: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const BASE_URL_WITH_POSTFIX: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { APP_NAMES } from './common';
|
|
2
|
+
export declare const SSO_ROUTES: (APP_NAME?: (typeof APP_NAMES)[keyof typeof APP_NAMES]) => {
|
|
3
|
+
languages: string;
|
|
4
|
+
translations: string;
|
|
5
|
+
editProfile: string;
|
|
6
|
+
email: string;
|
|
7
|
+
changePasswordDialog: string;
|
|
8
|
+
unauthorized: string;
|
|
9
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './components/Button';
|
|
1
|
+
export * from './components/header/index';
|