sixseconds-modules 2.0.4 → 3.0.3
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/components/common/Avatar.d.ts +10 -0
- package/dist/components/common/Badge.d.ts +9 -0
- package/dist/components/common/Btn.d.ts +10 -0
- package/dist/components/common/Dialog.d.ts +17 -0
- package/dist/components/common/Dropdown.d.ts +10 -0
- package/dist/components/common/IconBtn.d.ts +7 -0
- package/dist/components/common/Input.d.ts +9 -0
- package/dist/components/common/icons.d.ts +7 -0
- package/dist/components/common/index.d.ts +8 -0
- package/dist/components/dialogs/{changePasswrod.d.ts → ChangePasswordDialog.d.ts} +2 -2
- package/dist/components/dialogs/{dangerDialog.d.ts → DangerDialog.d.ts} +1 -1
- package/dist/components/dialogs/{viewProfile.d.ts → ViewProfileDialog.d.ts} +2 -2
- package/dist/components/dialogs/index.d.ts +3 -2
- package/dist/components/elements/BackArrow.d.ts +8 -0
- package/dist/components/elements/FormikErrorMsg.d.ts +6 -0
- package/dist/components/elements/Warning.d.ts +6 -0
- package/dist/components/elements/index.d.ts +3 -4
- package/dist/components/features/PreviousLoginBanner.d.ts +9 -0
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/header/AppMenus.d.ts +17 -0
- package/dist/components/header/Header.d.ts +8 -0
- package/dist/components/header/Language.d.ts +11 -0
- package/dist/components/header/Logo.d.ts +6 -0
- package/dist/components/header/MainMenu.d.ts +8 -0
- package/dist/components/header/Notification.d.ts +12 -0
- package/dist/components/header/UserProfile.d.ts +11 -0
- package/dist/components/header/index.d.ts +3 -13
- package/dist/components/header/types.d.ts +82 -0
- package/dist/components/index.d.ts +5 -5
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useClickAway.d.ts +7 -0
- package/dist/hooks/useMediaQuery.d.ts +3 -0
- package/dist/index.cjs.js +915 -15039
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.es.js +865 -14989
- package/dist/index.es.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/package.json +20 -26
- package/README.md +0 -1
- package/dist/components/buttons/button.d.ts +0 -12
- package/dist/components/buttons/buttonStyled.d.ts +0 -2
- package/dist/components/buttons/index.d.ts +0 -1
- package/dist/components/change-password/changePasswordStyled.d.ts +0 -2
- package/dist/components/change-password/index.d.ts +0 -8
- package/dist/components/dialogs/styles.d.ts +0 -3
- package/dist/components/elements/backArrow.d.ts +0 -7
- package/dist/components/elements/formikMsg.d.ts +0 -6
- package/dist/components/elements/logo.d.ts +0 -6
- package/dist/components/elements/warning.d.ts +0 -5
- package/dist/components/features/previousLoginBanner.d.ts +0 -8
- package/dist/components/header/appMenus.d.ts +0 -12
- package/dist/components/header/dropDownMenu.d.ts +0 -9
- package/dist/components/header/language.d.ts +0 -13
- package/dist/components/header/notification.d.ts +0 -10
- package/dist/components/header/subheaderStyled.d.ts +0 -2
- package/dist/components/header/type.d.ts +0 -93
- package/dist/components/header/userProfile.d.ts +0 -12
- package/dist/components/inputFields/index.d.ts +0 -1
- package/dist/components/inputFields/labeledInput.d.ts +0 -17
- package/dist/providers/index.d.ts +0 -2
- package/dist/providers/mui.d.ts +0 -6
- package/dist/providers/shadowIsland.d.ts +0 -19
- package/dist/styles.css +0 -461
- package/dist/vite.svg +0 -1
package/dist/main.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sixseconds-modules",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.3",
|
|
4
|
+
"description": "SixSeconds common Header and UI, styled with raw namespaced CSS (no MUI) so it never collides with or inherits the host application's styles.",
|
|
4
5
|
"main": "dist/index.cjs.js",
|
|
5
6
|
"module": "dist/index.es.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -9,37 +10,29 @@
|
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.es.js",
|
|
11
12
|
"require": "./dist/index.cjs.js"
|
|
12
|
-
}
|
|
13
|
-
"./styles": "./dist/styles.css"
|
|
13
|
+
}
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": [
|
|
19
|
-
"
|
|
19
|
+
"**/*.css"
|
|
20
20
|
],
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"dev": "vite",
|
|
26
|
-
"build:clean": "rimraf dist && tsc
|
|
27
|
-
"build-qa:clean": "rimraf dist && tsc
|
|
28
|
-
"build-
|
|
29
|
-
"build-dev:clean": "rimraf dist && tsc --p ./tsconfig.build.json && vite build --mode development",
|
|
26
|
+
"build:clean": "rimraf dist && tsc -p ./tsconfig.build.json && vite build --mode production",
|
|
27
|
+
"build-qa:clean": "rimraf dist && tsc -p ./tsconfig.build.json && vite build --mode qa",
|
|
28
|
+
"build-dev:clean": "rimraf dist && tsc -p ./tsconfig.build.json && vite build --mode development",
|
|
30
29
|
"lint": "eslint .",
|
|
31
30
|
"format": "prettier --write .",
|
|
32
31
|
"prepare": "husky install",
|
|
33
|
-
"
|
|
34
|
-
"type:check": "tsc --noEmit -p ./tsconfig.json",
|
|
32
|
+
"type:check": "tsc --noEmit -p ./tsconfig.app.json",
|
|
35
33
|
"deps:check": "yarn knip --config ./knip.json"
|
|
36
34
|
},
|
|
37
35
|
"peerDependencies": {
|
|
38
|
-
"@emotion/cache": "^11.14.0",
|
|
39
|
-
"@emotion/react": "^11.0.0 || ^11.14.1",
|
|
40
|
-
"@emotion/styled": "^11.0.0 || ^11.14.0",
|
|
41
|
-
"@mui/icons-material": "^5.0.0 || ^6.4.5",
|
|
42
|
-
"@mui/material": "^5.0.0 || ^6.0.0 || ^7",
|
|
43
36
|
"react": "^18.0.0 || ^19.0.0",
|
|
44
37
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
45
38
|
},
|
|
@@ -57,24 +50,20 @@
|
|
|
57
50
|
"axios": "^1.12.0",
|
|
58
51
|
"formik": "^2.4.6",
|
|
59
52
|
"js-cookie": "3.0.5",
|
|
60
|
-
"kill-port": "^2.0.1",
|
|
61
53
|
"moment": "^2.30.1",
|
|
62
54
|
"react-hot-toast": "^2.5.2",
|
|
63
55
|
"react-infinite-scroll-component": "^6.1.1",
|
|
64
56
|
"urlcat": "2",
|
|
65
|
-
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
66
57
|
"yup": "^1.6.1",
|
|
67
58
|
"zod": "^3.24.4"
|
|
68
59
|
},
|
|
60
|
+
"config": {
|
|
61
|
+
"commitizen": {
|
|
62
|
+
"path": "cz-git"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
69
65
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "^19.8.1",
|
|
71
|
-
"@commitlint/config-conventional": "^19.8.1",
|
|
72
|
-
"@emotion/cache": "^11.14.0",
|
|
73
|
-
"@emotion/react": "^11.14.0",
|
|
74
|
-
"@emotion/styled": "^11.14.0",
|
|
75
66
|
"@eslint/js": "^9.21.0",
|
|
76
|
-
"@mui/icons-material": "^6.4.5",
|
|
77
|
-
"@mui/material": "6.4.8",
|
|
78
67
|
"@types/node": "^24.0.3",
|
|
79
68
|
"@types/react": "^19.0.10",
|
|
80
69
|
"@types/react-dom": "^19.0.4",
|
|
@@ -84,16 +73,21 @@
|
|
|
84
73
|
"eslint-plugin-prettier": "^5.4.1",
|
|
85
74
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
86
75
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
76
|
+
"@commitlint/cli": "^21.2.1",
|
|
77
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
78
|
+
"commitizen": "^4.3.1",
|
|
79
|
+
"cz-git": "^1.12.0",
|
|
87
80
|
"globals": "^15.15.0",
|
|
88
|
-
"husky": "^9.1.7",
|
|
89
|
-
"knip": "^5.61.0",
|
|
90
81
|
"prettier": "^3.5.3",
|
|
91
82
|
"react": "^19.0.0",
|
|
83
|
+
"husky": "^9.1.7",
|
|
84
|
+
"knip": "^5.61.0",
|
|
92
85
|
"react-dom": "^19.0.0",
|
|
93
86
|
"rimraf": "^5.0.1",
|
|
94
87
|
"typescript": "^5.8.3",
|
|
95
88
|
"typescript-eslint": "^8.24.1",
|
|
96
89
|
"vite": "^6.4.1",
|
|
90
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
97
91
|
"vite-plugin-dts": "^4.5.3",
|
|
98
92
|
"vite-plugin-svgr": "^4.3.0"
|
|
99
93
|
}
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
this is repo
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
-
interface ICostumeButton extends ButtonProps {
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
btnTitle?: string | ReactNode;
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
export declare function Button({ isLoading, btnTitle, className, disabled, ...rest }: ICostumeButton): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './button';
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SetStateAction, t } from '../../types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { IState } from './type';
|
|
4
|
-
interface HeaderMenuProps {
|
|
5
|
-
menuItems?: any;
|
|
6
|
-
setInitialState: SetStateAction<IState>;
|
|
7
|
-
t: t;
|
|
8
|
-
appName: string;
|
|
9
|
-
router: any;
|
|
10
|
-
}
|
|
11
|
-
declare const AppMenus: React.FC<HeaderMenuProps>;
|
|
12
|
-
export default AppMenus;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IState } from './type';
|
|
2
|
-
import { SetStateAction } from '../../types';
|
|
3
|
-
interface IProps {
|
|
4
|
-
headerMenuArray: any[];
|
|
5
|
-
initialState: IState;
|
|
6
|
-
setInitialState?: SetStateAction<IState>;
|
|
7
|
-
}
|
|
8
|
-
declare const DropdownMenu: ({ headerMenuArray, initialState }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default DropdownMenu;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SetStateAction, t } from '../../types';
|
|
2
|
-
import { IState } from './type';
|
|
3
|
-
interface IProps {
|
|
4
|
-
setState?: any;
|
|
5
|
-
interFaceLangList?: any;
|
|
6
|
-
userData?: any;
|
|
7
|
-
updateInterfaceLang?: any;
|
|
8
|
-
selectedInterFaceLang?: any;
|
|
9
|
-
setInitialState: SetStateAction<IState>;
|
|
10
|
-
t: t;
|
|
11
|
-
}
|
|
12
|
-
export default function Language({ interFaceLangList, updateInterfaceLang, selectedInterFaceLang, setInitialState, t, }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SetStateAction, t } from '../../types';
|
|
2
|
-
import { IHeaderProps, IState } from './type';
|
|
3
|
-
interface IProps {
|
|
4
|
-
setInitialState: SetStateAction<IState>;
|
|
5
|
-
initialState: IState;
|
|
6
|
-
notificationAccessApps?: IHeaderProps["notificationAccessApps"];
|
|
7
|
-
t: t;
|
|
8
|
-
}
|
|
9
|
-
declare const Notification: ({ setInitialState, notificationAccessApps, initialState, t }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Notification;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const SubHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/material').AppBarOwnProps & Omit<import('@mui/material').PaperOwnProps, "color" | "position" | "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style" | "color" | "position" | "sx" | "classes" | "className" | "children" | "square" | "elevation" | "variant" | "enableColorOnDark"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
-
export default SubHeaderStyled;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { APP_NAMES } from '../../constants';
|
|
2
|
-
import { t } from '../../types';
|
|
3
|
-
import { SxProps } from '@mui/material';
|
|
4
|
-
export interface IState {
|
|
5
|
-
languages: string[]
|
|
6
|
-
menuData: []
|
|
7
|
-
isMenuIconsShow: boolean
|
|
8
|
-
isLoading: boolean
|
|
9
|
-
toggles: {
|
|
10
|
-
appMenus: boolean
|
|
11
|
-
notification: boolean
|
|
12
|
-
logout: boolean
|
|
13
|
-
lang: boolean
|
|
14
|
-
dropDownMenu: boolean
|
|
15
|
-
changePassword: boolean
|
|
16
|
-
viewProfile: boolean
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface INotificationState {
|
|
21
|
-
notificationData: Notification[]
|
|
22
|
-
page: number
|
|
23
|
-
currentPage: number
|
|
24
|
-
lastPage: number
|
|
25
|
-
requestAcceptedDialog?: boolean
|
|
26
|
-
userRequest?: any
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface IUserDataProps {
|
|
30
|
-
userprofile: string
|
|
31
|
-
certId: string | number
|
|
32
|
-
email: string
|
|
33
|
-
role: string
|
|
34
|
-
fullName: string
|
|
35
|
-
appName: (typeof APP_NAMES)[keyof typeof APP_NAMES]
|
|
36
|
-
appAccess?: {
|
|
37
|
-
name: string
|
|
38
|
-
icon: string
|
|
39
|
-
link: string
|
|
40
|
-
type: "tab" | "app"
|
|
41
|
-
}[]
|
|
42
|
-
bio: string
|
|
43
|
-
title: string
|
|
44
|
-
company: string
|
|
45
|
-
certBio: string
|
|
46
|
-
certProfileUrl: string
|
|
47
|
-
certOfferToHelp: string
|
|
48
|
-
certification: string[]
|
|
49
|
-
country: string
|
|
50
|
-
languages: string[]
|
|
51
|
-
areaOfWork: string[]
|
|
52
|
-
linkedInUrl: string
|
|
53
|
-
notificationCount: number
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface IInterFaceLang {
|
|
57
|
-
id: number
|
|
58
|
-
label: string
|
|
59
|
-
value: string | number
|
|
60
|
-
flag: string
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface IHeaderProps {
|
|
64
|
-
t: t
|
|
65
|
-
router?: any
|
|
66
|
-
notificationAccessApps?: {
|
|
67
|
-
name: string
|
|
68
|
-
}[]
|
|
69
|
-
userData?: IUserDataProps
|
|
70
|
-
interFaceLangList?: IInterFaceLang[]
|
|
71
|
-
toggleSiderMenu?: any
|
|
72
|
-
updateInterfaceLang?: any
|
|
73
|
-
logoutHandler?: any
|
|
74
|
-
selectedInterFaceLang?: IInterFaceLang
|
|
75
|
-
isNotification?: boolean
|
|
76
|
-
isMenu?: boolean
|
|
77
|
-
isAccessAppMenu?: boolean
|
|
78
|
-
extraMenuOptions?: {
|
|
79
|
-
components: React.ReactNode
|
|
80
|
-
isViewProfile: boolean
|
|
81
|
-
isChangePassword: boolean
|
|
82
|
-
isEditProfile: boolean
|
|
83
|
-
}
|
|
84
|
-
sx?: SxProps
|
|
85
|
-
logo?: React.ReactNode
|
|
86
|
-
frontCustomComponent?: React.ReactNode
|
|
87
|
-
centerCustomComponents?: React.ReactNode
|
|
88
|
-
endCustomComponents?: React.ReactNode
|
|
89
|
-
totallyEndCustomComponent?: React.ReactNode
|
|
90
|
-
isMainLogo?: boolean
|
|
91
|
-
isLang?: boolean
|
|
92
|
-
handleSideToggle?: any
|
|
93
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SetStateAction, t } from '../../types';
|
|
2
|
-
import { IState, IUserDataProps } from './type';
|
|
3
|
-
interface IProps {
|
|
4
|
-
userData?: IUserDataProps;
|
|
5
|
-
initialState: IState;
|
|
6
|
-
setInitialState: SetStateAction<IState>;
|
|
7
|
-
extraMenuOptions?: any;
|
|
8
|
-
t: t;
|
|
9
|
-
router?: any;
|
|
10
|
-
}
|
|
11
|
-
declare const UserProfile: ({ t, userData, setInitialState, extraMenuOptions, router }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default UserProfile;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './labeledInput';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { StandardTextFieldProps } from '@mui/material/TextField';
|
|
3
|
-
import { SxProps } from '@mui/material/styles';
|
|
4
|
-
interface IInput extends StandardTextFieldProps {
|
|
5
|
-
label?: React.ReactNode;
|
|
6
|
-
Placeholder?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
classname?: string;
|
|
11
|
-
type?: string;
|
|
12
|
-
sx?: SxProps;
|
|
13
|
-
handleInput?: (val: any) => void;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}
|
|
16
|
-
export declare function LabeledInput({ label, sx, type, name, value, Placeholder, required, handleInput, disabled, ...rest }: IInput): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
package/dist/providers/mui.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Renders `children` inside an open Shadow DOM so the host application's CSS
|
|
4
|
-
* physically cannot cross into the component — it always renders with only its
|
|
5
|
-
* own styling, in every app it is embedded in.
|
|
6
|
-
*
|
|
7
|
-
* Why a nested React root (instead of `createPortal`): React attaches its native
|
|
8
|
-
* event listeners to the root container. If we portalled into the shadow root
|
|
9
|
-
* from the host's (light-DOM) React root, the shadow boundary would retarget
|
|
10
|
-
* `event.target` to the host element and the header's clicks would never reach
|
|
11
|
-
* their handlers. Creating a dedicated root INSIDE the shadow root keeps React's
|
|
12
|
-
* listeners within the boundary, so interactivity works normally.
|
|
13
|
-
*
|
|
14
|
-
* Client-only by design: shadow roots cannot be created during SSR, and every
|
|
15
|
-
* real consumer already loads the header via `dynamic({ ssr: false })`.
|
|
16
|
-
*/
|
|
17
|
-
export declare function ShadowIsland({ children }: {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|