qlu-20-ui-library 1.7.3 → 1.7.5
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/build/qlu-20-ui-library.cjs +66 -66
- package/dist/build/qlu-20-ui-library.js +11601 -11379
- package/dist/components/AdvanceFilterJobTitleV2/index.d.ts +2 -1
- package/dist/components/AssignmentBreadCrumb/index.d.ts +2 -1
- package/dist/components/AssignmentCreationCard/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/ProfileCard/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.d.ts +2 -1
- package/dist/components/AssignmentIdealProfileSelectionCard/index.d.ts +2 -1
- package/dist/components/BadgeWithCount/index.d.ts +2 -1
- package/dist/components/BusinessUnitView/BusinessUnitViewTabsComponent/BusinessUnitViewTabsComponent.d.ts +2 -1
- package/dist/components/ChatDropDown/index.d.ts +4 -1
- package/dist/components/CheckboxComponent/index.d.ts +1 -0
- package/dist/components/ChevronDropDown/index.d.ts +4 -1
- package/dist/components/ClickableText/index.d.ts +2 -1
- package/dist/components/ColoredButton/index.d.ts +2 -1
- package/dist/components/CompanyDetailsCard/index.d.ts +2 -1
- package/dist/components/CompanyLikePillSelectable/index.d.ts +2 -1
- package/dist/components/CompanyLogoPillSelectable/index.d.ts +2 -1
- package/dist/components/CompanyView/CompanyViewHeader/index.d.ts +1 -0
- package/dist/components/CompanyView/CompanyViewTabsComponent/index.d.ts +1 -0
- package/dist/components/DropDownButton/index.d.ts +2 -1
- package/dist/components/FilterAndSortDropdown/index.d.ts +2 -1
- package/dist/components/InputField/index.d.ts +3 -1
- package/dist/components/InputFieldWithSvg/index.d.ts +2 -1
- package/dist/components/NumberInputField/index.d.ts +2 -1
- package/dist/components/PersonView/PersonViewBody/index.d.ts +1 -0
- package/dist/components/PersonView/PersonViewExperienceCard/index.d.ts +1 -0
- package/dist/components/PersonView/PersonViewExperienceDetails/index.d.ts +1 -0
- package/dist/components/PersonView/PersonViewHeader/index.d.ts +1 -0
- package/dist/components/PersonView/PersonViewSummary/index.d.ts +2 -1
- package/dist/components/PersonView/PersonViewTabsComponent/index.d.ts +1 -0
- package/dist/components/PrimaryButton/index.d.ts +2 -1
- package/dist/components/PromptField/index.d.ts +2 -1
- package/dist/components/SearchFilterButton/index.d.ts +2 -1
- package/dist/components/SearchFilterSideDrawer/SaveSearch/index.d.ts +2 -1
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/SelectDropDown/index.d.ts +2 -1
- package/dist/components/SelectItem/index.d.ts +3 -2
- package/dist/components/SelectablePill/index.d.ts +2 -1
- package/dist/components/Svg/Box.d.ts +6 -0
- package/dist/components/SwitchLarge/index.d.ts +2 -1
- package/dist/components/TableNameCell/index.d.ts +2 -1
- package/dist/components/TablePagination/index.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +2 -1
- package/dist/components/TertiaryButton/index.d.ts +2 -1
- package/dist/components/ToggleComponent/index.d.ts +1 -0
- package/dist/types/components/AdvanceFilterJobTitleV2/index.d.ts +2 -1
- package/dist/types/components/AdvanceFilterJobTitleV2/index.js +3 -3
- package/dist/types/components/AssignmentBreadCrumb/index.d.ts +2 -1
- package/dist/types/components/AssignmentBreadCrumb/index.js +2 -2
- package/dist/types/components/AssignmentCreationCard/index.d.ts +2 -1
- package/dist/types/components/AssignmentCreationCard/index.js +4 -3
- package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.js +2 -2
- package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.js +2 -2
- package/dist/types/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.js +2 -2
- package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileCard/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileCard/index.js +2 -2
- package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.js +2 -2
- package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.js +2 -2
- package/dist/types/components/AssignmentIdealProfileSelectionCard/index.d.ts +2 -1
- package/dist/types/components/AssignmentIdealProfileSelectionCard/index.js +2 -2
- package/dist/types/components/BadgeWithCount/index.d.ts +2 -1
- package/dist/types/components/BadgeWithCount/index.js +2 -2
- package/dist/types/components/BusinessUnitView/BusinessUnitViewTabsComponent/BusinessUnitViewTabsComponent.d.ts +2 -1
- package/dist/types/components/BusinessUnitView/BusinessUnitViewTabsComponent/BusinessUnitViewTabsComponent.js +2 -2
- package/dist/types/components/ChatDropDown/index.d.ts +4 -1
- package/dist/types/components/ChatDropDown/index.js +4 -4
- package/dist/types/components/CheckboxComponent/index.d.ts +1 -0
- package/dist/types/components/CheckboxComponent/index.js +2 -2
- package/dist/types/components/ChevronDropDown/index.d.ts +4 -1
- package/dist/types/components/ChevronDropDown/index.js +10 -3
- package/dist/types/components/ClickableText/index.d.ts +2 -1
- package/dist/types/components/ClickableText/index.js +2 -2
- package/dist/types/components/ColoredButton/index.d.ts +2 -1
- package/dist/types/components/ColoredButton/index.js +2 -2
- package/dist/types/components/CompanyDetailsCard/index.d.ts +2 -1
- package/dist/types/components/CompanyDetailsCard/index.js +3 -3
- package/dist/types/components/CompanyLikePillSelectable/index.d.ts +2 -1
- package/dist/types/components/CompanyLikePillSelectable/index.js +2 -2
- package/dist/types/components/CompanyLogoPillSelectable/index.d.ts +2 -1
- package/dist/types/components/CompanyLogoPillSelectable/index.js +2 -2
- package/dist/types/components/CompanyView/CompanyViewHeader/index.d.ts +1 -0
- package/dist/types/components/CompanyView/CompanyViewHeader/index.js +3 -3
- package/dist/types/components/CompanyView/CompanyViewTabsComponent/index.d.ts +1 -0
- package/dist/types/components/CompanyView/CompanyViewTabsComponent/index.js +4 -2
- package/dist/types/components/ContinuousRangeComponent/ContinuousRangeComponent.js +2 -2
- package/dist/types/components/DropDownButton/index.d.ts +2 -1
- package/dist/types/components/DropDownButton/index.js +2 -2
- package/dist/types/components/FilterAndSortDropdown/index.d.ts +2 -1
- package/dist/types/components/FilterAndSortDropdown/index.js +5 -5
- package/dist/types/components/GetSvgIcon/index.js +2 -1
- package/dist/types/components/InputField/index.d.ts +3 -1
- package/dist/types/components/InputField/index.js +2 -2
- package/dist/types/components/InputFieldWithSvg/index.d.ts +2 -1
- package/dist/types/components/InputFieldWithSvg/index.js +3 -3
- package/dist/types/components/NumberInputField/index.d.ts +2 -1
- package/dist/types/components/NumberInputField/index.js +2 -2
- package/dist/types/components/PersonView/PersonViewBody/index.d.ts +1 -0
- package/dist/types/components/PersonView/PersonViewBody/index.js +2 -2
- package/dist/types/components/PersonView/PersonViewExperienceCard/index.d.ts +1 -0
- package/dist/types/components/PersonView/PersonViewExperienceCard/index.js +2 -2
- package/dist/types/components/PersonView/PersonViewExperienceDetails/index.d.ts +1 -0
- package/dist/types/components/PersonView/PersonViewExperienceDetails/index.js +3 -3
- package/dist/types/components/PersonView/PersonViewHeader/index.d.ts +1 -0
- package/dist/types/components/PersonView/PersonViewHeader/index.js +3 -3
- package/dist/types/components/PersonView/PersonViewSummary/index.d.ts +2 -1
- package/dist/types/components/PersonView/PersonViewSummary/index.js +4 -4
- package/dist/types/components/PersonView/PersonViewTabsComponent/index.d.ts +1 -0
- package/dist/types/components/PersonView/PersonViewTabsComponent/index.js +4 -2
- package/dist/types/components/PrimaryButton/index.d.ts +2 -1
- package/dist/types/components/PrimaryButton/index.js +2 -2
- package/dist/types/components/PromptField/index.d.ts +2 -1
- package/dist/types/components/PromptField/index.js +2 -2
- package/dist/types/components/SearchFilterButton/index.d.ts +2 -1
- package/dist/types/components/SearchFilterButton/index.js +2 -2
- package/dist/types/components/SearchFilterSideDrawer/SaveSearch/index.d.ts +2 -1
- package/dist/types/components/SearchFilterSideDrawer/SaveSearch/index.js +7 -4
- package/dist/types/components/Select/index.d.ts +2 -1
- package/dist/types/components/Select/index.js +2 -2
- package/dist/types/components/SelectDropDown/index.d.ts +2 -1
- package/dist/types/components/SelectDropDown/index.js +2 -2
- package/dist/types/components/SelectItem/index.d.ts +3 -2
- package/dist/types/components/SelectItem/index.js +3 -3
- package/dist/types/components/SelectablePill/index.d.ts +2 -1
- package/dist/types/components/SelectablePill/index.js +3 -3
- package/dist/types/components/Svg/Box.d.ts +6 -0
- package/dist/types/components/Svg/Box.js +5 -0
- package/dist/types/components/SwitchLarge/index.d.ts +2 -1
- package/dist/types/components/SwitchLarge/index.js +4 -2
- package/dist/types/components/TableNameCell/index.d.ts +2 -1
- package/dist/types/components/TableNameCell/index.js +2 -2
- package/dist/types/components/TablePagination/index.d.ts +1 -0
- package/dist/types/components/TablePagination/index.js +2 -2
- package/dist/types/components/Tabs/index.d.ts +2 -1
- package/dist/types/components/Tabs/index.js +2 -2
- package/dist/types/components/TertiaryButton/index.d.ts +2 -1
- package/dist/types/components/TertiaryButton/index.js +2 -2
- package/dist/types/components/ToggleComponent/index.d.ts +1 -0
- package/dist/types/components/ToggleComponent/index.js +2 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,22 +2,23 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import "./style.scss";
|
|
3
3
|
import { getInitials } from "../../utils";
|
|
4
4
|
import { BadgeNonClickable, EllipsisText, IconButton, Loader } from "..";
|
|
5
|
-
const RenderAddOrRemoveButton = ({ isAdmin = false, isLoading = false, iconType = "plus", onClick, }) => {
|
|
5
|
+
const RenderAddOrRemoveButton = ({ isAdmin = false, isLoading = false, iconType = "plus", onClick, dataCy, }) => {
|
|
6
6
|
if (isAdmin) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
9
|
else if (isLoading) {
|
|
10
10
|
return _jsx(Loader, { height: "36", width: "36" });
|
|
11
11
|
}
|
|
12
|
-
return (_jsx(IconButton, { shape: "circular", color: "gray", variant: "tertiary", iconType: iconType, onClick: onClick, sizeVariant: "xs" }));
|
|
12
|
+
return (_jsx(IconButton, { shape: "circular", color: "gray", variant: "tertiary", iconType: iconType, onClick: onClick, sizeVariant: "xs", "data-cy": `${dataCy}-${iconType.toLowerCase()}` }));
|
|
13
13
|
};
|
|
14
|
-
const AssignmentCreation = ({ assigneeName, assigneeMail, iconType = "plus", isLoading = false, isAdmin = false, onClick, }) => {
|
|
14
|
+
const AssignmentCreation = ({ assigneeName, assigneeMail, iconType = "plus", isLoading = false, isAdmin = false, onClick, dataCy, }) => {
|
|
15
15
|
const invalidName = !assigneeName || !assigneeName.trim();
|
|
16
16
|
return (_jsxs("div", { className: `assignmentCreation ${iconType}`, children: [_jsx("div", { className: "addTribeMemberCard--Initials", children: invalidName ? "U" : getInitials(assigneeName).toUpperCase() }), _jsxs("span", { className: "addTribeMemberCard--TextAndButton", children: [_jsxs("span", { className: "addTribeMemberCard--Details", children: [_jsx("span", { className: "addTribeMemberCard--Name", children: _jsx(EllipsisText, { maxWidth: "100%", children: assigneeName }) }), _jsx("span", { className: "addTribeMemberCard--Mail", children: _jsx(EllipsisText, { maxWidth: "100%", children: assigneeMail }) }), isAdmin && (_jsx(BadgeNonClickable, { showIcon: false, text: "Owner", variant: "neutral" }))] }), RenderAddOrRemoveButton({
|
|
17
17
|
iconType,
|
|
18
18
|
isAdmin,
|
|
19
19
|
isLoading,
|
|
20
20
|
onClick,
|
|
21
|
+
dataCy,
|
|
21
22
|
})] })] }));
|
|
22
23
|
};
|
|
23
24
|
export default AssignmentCreation;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface EducationCardProps {
|
|
|
9
9
|
interface DynamicEducationCardProps {
|
|
10
10
|
educations: EducationCardProps[];
|
|
11
11
|
initialItemsToShow: number;
|
|
12
|
+
dataCy?: string;
|
|
12
13
|
}
|
|
13
|
-
declare const DynamicEducationCard: ({ educations, initialItemsToShow, }: DynamicEducationCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const DynamicEducationCard: ({ educations, initialItemsToShow, dataCy, }: DynamicEducationCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default DynamicEducationCard;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./style.scss";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { ClickableText } from "../..";
|
|
5
5
|
import EducationCard from "../../EducationCard";
|
|
6
|
-
const DynamicEducationCard = ({ educations = [], initialItemsToShow = 3, }) => {
|
|
6
|
+
const DynamicEducationCard = ({ educations = [], initialItemsToShow = 3, dataCy, }) => {
|
|
7
7
|
const [count, setCount] = useState(initialItemsToShow);
|
|
8
8
|
const [buttonText, setButtonText] = useState(`${educations.length > initialItemsToShow
|
|
9
9
|
? educations.length - initialItemsToShow
|
|
@@ -16,6 +16,6 @@ const DynamicEducationCard = ({ educations = [], initialItemsToShow = 3, }) => {
|
|
|
16
16
|
setCount(educations.length === count
|
|
17
17
|
? initialItemsToShow
|
|
18
18
|
: educations.length);
|
|
19
|
-
} })) })] }) }));
|
|
19
|
+
}, dataCy: `${dataCy}-view-more-less` })) })] }) }));
|
|
20
20
|
};
|
|
21
21
|
export default DynamicEducationCard;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface DynamicExperienceCardProps {
|
|
|
15
15
|
experiences: ExperienceCardProps[];
|
|
16
16
|
initialItemsToShow: number;
|
|
17
17
|
onCompanyClick: (universalName: string, urn: string) => void;
|
|
18
|
+
dataCy?: string;
|
|
18
19
|
}
|
|
19
|
-
declare const DynamicExperienceCardList: ({ experiences, initialItemsToShow, onCompanyClick, }: DynamicExperienceCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const DynamicExperienceCardList: ({ experiences, initialItemsToShow, onCompanyClick, dataCy, }: DynamicExperienceCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export default DynamicExperienceCardList;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState } from "react";
|
|
|
4
4
|
import { ClickableText } from "../..";
|
|
5
5
|
import ExperienceCard from "../../ExperienceAndEducatioCard";
|
|
6
6
|
import { isFirstExperience, isLastExperience } from "../../../utils";
|
|
7
|
-
const DynamicExperienceCardList = ({ experiences, initialItemsToShow, onCompanyClick, }) => {
|
|
7
|
+
const DynamicExperienceCardList = ({ experiences, initialItemsToShow, onCompanyClick, dataCy, }) => {
|
|
8
8
|
const [count, setCount] = useState(initialItemsToShow);
|
|
9
9
|
const [buttonText, setButtonText] = useState(`${experiences.length > initialItemsToShow
|
|
10
10
|
? experiences.length - initialItemsToShow
|
|
@@ -20,6 +20,6 @@ const DynamicExperienceCardList = ({ experiences, initialItemsToShow, onCompanyC
|
|
|
20
20
|
setCount(experiences.length === count
|
|
21
21
|
? initialItemsToShow
|
|
22
22
|
: experiences.length);
|
|
23
|
-
} })) })] }) }));
|
|
23
|
+
}, dataCy: `${dataCy}-view-more-less` })) })] }) }));
|
|
24
24
|
};
|
|
25
25
|
export default DynamicExperienceCardList;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import "./style.scss";
|
|
|
3
3
|
interface NoteProspectiveCardListProps {
|
|
4
4
|
notes: ProfileNote[];
|
|
5
5
|
onNotesViewAllClick: () => void;
|
|
6
|
+
dataCy?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const NoteProspectiveCardList: ({ notes, onNotesViewAllClick, }: NoteProspectiveCardListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const NoteProspectiveCardList: ({ notes, onNotesViewAllClick, dataCy, }: NoteProspectiveCardListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default NoteProspectiveCardList;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { ClickableText } from "../..";
|
|
3
3
|
import Note from "../Note";
|
|
4
4
|
import "./style.scss";
|
|
5
|
-
const NoteProspectiveCardList = ({ notes, onNotesViewAllClick, }) => {
|
|
5
|
+
const NoteProspectiveCardList = ({ notes, onNotesViewAllClick, dataCy, }) => {
|
|
6
6
|
const options = {
|
|
7
7
|
month: "short",
|
|
8
8
|
day: "numeric",
|
|
@@ -11,7 +11,7 @@ const NoteProspectiveCardList = ({ notes, onNotesViewAllClick, }) => {
|
|
|
11
11
|
minute: "numeric",
|
|
12
12
|
hour12: true,
|
|
13
13
|
};
|
|
14
|
-
return (_jsxs("div", { className: "notes--container", children: [_jsxs("div", { className: "notes-header", children: [_jsxs("div", { className: "notes-info", children: ["Notes", notes && notes.length > 0 && (_jsx("div", { className: "count", children: notes.length }))] }), _jsx("span", { children: _jsx(ClickableText, { colorVariant: "gray", sizeVariant: "sm", text: notes && notes.length > 0 ? "View All" : "Add", onClick: onNotesViewAllClick }) })] }), _jsx("div", { className: "notesContainer", children: notes &&
|
|
14
|
+
return (_jsxs("div", { className: "notes--container", children: [_jsxs("div", { className: "notes-header", children: [_jsxs("div", { className: "notes-info", children: ["Notes", notes && notes.length > 0 && (_jsx("div", { className: "count", children: notes.length }))] }), _jsx("span", { children: _jsx(ClickableText, { colorVariant: "gray", sizeVariant: "sm", text: notes && notes.length > 0 ? "View All" : "Add", onClick: onNotesViewAllClick, dataCy: `${dataCy}-${notes && notes.length > 0 ? "view-all" : "add"}` }) })] }), _jsx("div", { className: "notesContainer", children: notes &&
|
|
15
15
|
notes.slice(0, 2).map((note) => {
|
|
16
16
|
const correctDateTime = note.updatedAt || note.createdAt;
|
|
17
17
|
const tranformedDataTime = new Date(correctDateTime)
|
|
@@ -11,6 +11,7 @@ interface ChatClickableCardProps {
|
|
|
11
11
|
recentCompany?: string;
|
|
12
12
|
location?: string;
|
|
13
13
|
onViewProfileButtonClick: () => void;
|
|
14
|
+
dataCy?: string;
|
|
14
15
|
}
|
|
15
|
-
declare const ProfileCard: ({ iconPath, iconSize, name, designation, universalName, urn, recentCompany, location, onViewProfileButtonClick, onCompanyNameClick, }: ChatClickableCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const ProfileCard: ({ iconPath, iconSize, name, designation, universalName, urn, recentCompany, location, onViewProfileButtonClick, onCompanyNameClick, dataCy, }: ChatClickableCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default ProfileCard;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CircularIcon, SecondaryButton } from "../..";
|
|
3
3
|
import "./style.scss";
|
|
4
|
-
const ProfileCard = ({ iconPath = "https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o", iconSize = "88", name = "Ethan Brown", designation = "VP Product @ Beyond Meat", universalName, urn, recentCompany, location, onViewProfileButtonClick, onCompanyNameClick, }) => {
|
|
5
|
-
return (_jsx("div", { className: "profileCard", children: _jsxs("span", { className: "body-profile-card", children: [_jsx("span", { children: _jsx(CircularIcon, { iconPath: iconPath, iconSize: iconSize, altImageType: "profile" }) }), _jsxs("span", { className: "profile-details-section", children: [_jsx("span", { className: "person-name", onClick: onViewProfileButtonClick, children: name }), _jsxs("span", { className: "designation", children: [`${designation} at `, _jsx("span", { className: "companyName", onClick: () => onCompanyNameClick(universalName, urn), children: recentCompany })] }), _jsx("span", { className: "location", children: location })] }), _jsx("span", { className: "view-profile-button-istcardcolum", children: _jsx(SecondaryButton, { text: "View Full Profile", colorVariant: "orange", onClick: onViewProfileButtonClick, sizeVariant: "sm" }) })] }) }));
|
|
4
|
+
const ProfileCard = ({ iconPath = "https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o", iconSize = "88", name = "Ethan Brown", designation = "VP Product @ Beyond Meat", universalName, urn, recentCompany, location, onViewProfileButtonClick, onCompanyNameClick, dataCy, }) => {
|
|
5
|
+
return (_jsx("div", { className: "profileCard", children: _jsxs("span", { className: "body-profile-card", children: [_jsx("span", { children: _jsx(CircularIcon, { iconPath: iconPath, iconSize: iconSize, altImageType: "profile" }) }), _jsxs("span", { className: "profile-details-section", children: [_jsx("span", { className: "person-name", onClick: onViewProfileButtonClick, children: name }), _jsxs("span", { className: "designation", children: [`${designation} at `, _jsx("span", { className: "companyName", onClick: () => onCompanyNameClick(universalName, urn), children: recentCompany })] }), _jsx("span", { className: "location", children: location })] }), _jsx("span", { className: "view-profile-button-istcardcolum", children: _jsx(SecondaryButton, { text: "View Full Profile", colorVariant: "orange", onClick: onViewProfileButtonClick, sizeVariant: "sm", "data-cy": `${dataCy}-view-profile` }) })] }) }));
|
|
6
6
|
};
|
|
7
7
|
export default ProfileCard;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ interface ProfileCardIstSectionProps {
|
|
|
25
25
|
isPaused: boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
dataCy?: string;
|
|
28
29
|
}
|
|
29
|
-
declare const ProfileCardIstSection: ({ profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, companyLocation, onNotesViewAllClick, onViewProfileButtonClick, universalName, urn, onCompanyNameClick, notes, campaign, onCampaignClick, }: ProfileCardIstSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const ProfileCardIstSection: ({ profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, companyLocation, onNotesViewAllClick, onViewProfileButtonClick, universalName, urn, onCompanyNameClick, notes, campaign, onCampaignClick, dataCy, }: ProfileCardIstSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
export default ProfileCardIstSection;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import NoteProspectiveCardList from "../NotesProspectiveList";
|
|
|
3
3
|
import ProfileCard from "../ProfileCard";
|
|
4
4
|
import "./style.scss";
|
|
5
5
|
import ProspectCampaign from "../../ProspectCampaign";
|
|
6
|
-
const ProfileCardIstSection = ({ profileIconPath = "https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o", profileIconSize = "88", personName = "Ethan Brown", personDesignation = "VP Product @ Beyond Meat", personRecentCompany, companyLocation, onNotesViewAllClick, onViewProfileButtonClick = () => { }, universalName, urn, onCompanyNameClick, notes, campaign, onCampaignClick = () => { }, }) => {
|
|
7
|
-
return (_jsxs("div", { className: "profileCard--Generic", children: [_jsx("span", { children: _jsx(ProfileCard, { iconPath: profileIconPath, iconSize: profileIconSize, name: personName, universalName: universalName, urn: urn, onCompanyNameClick: onCompanyNameClick, designation: personDesignation, recentCompany: personRecentCompany, location: companyLocation, onViewProfileButtonClick: onViewProfileButtonClick }) }), !!campaign?.id && (_jsx("span", { children: _jsx(ProspectCampaign, { onCampaignClick: onCampaignClick, campaign: campaign }) })), _jsx("span", { children: _jsx(NoteProspectiveCardList, { notes: notes, onNotesViewAllClick: onNotesViewAllClick }) })] }));
|
|
6
|
+
const ProfileCardIstSection = ({ profileIconPath = "https://media.licdn.com/dms/image/C5603AQHn7tbH46HwRw/profile-displayphoto-shrink_100_100/0/1651460224714?e=1688601600&v=beta&t=Rp0HL0Q-b3zSydvEhWzj67pxqvi5lIRF-ZlLloVru4o", profileIconSize = "88", personName = "Ethan Brown", personDesignation = "VP Product @ Beyond Meat", personRecentCompany, companyLocation, onNotesViewAllClick, onViewProfileButtonClick = () => { }, universalName, urn, onCompanyNameClick, notes, campaign, onCampaignClick = () => { }, dataCy, }) => {
|
|
7
|
+
return (_jsxs("div", { className: "profileCard--Generic", children: [_jsx("span", { children: _jsx(ProfileCard, { iconPath: profileIconPath, iconSize: profileIconSize, name: personName, universalName: universalName, urn: urn, onCompanyNameClick: onCompanyNameClick, designation: personDesignation, recentCompany: personRecentCompany, location: companyLocation, onViewProfileButtonClick: onViewProfileButtonClick, dataCy: dataCy }) }), !!campaign?.id && (_jsx("span", { children: _jsx(ProspectCampaign, { onCampaignClick: onCampaignClick, campaign: campaign }) })), _jsx("span", { children: _jsx(NoteProspectiveCardList, { notes: notes, onNotesViewAllClick: onNotesViewAllClick, dataCy: dataCy }) })] }));
|
|
8
8
|
};
|
|
9
9
|
export default ProfileCardIstSection;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ interface ProfileCardSecondSectionProps {
|
|
|
27
27
|
experiencesList: ExperienceList[];
|
|
28
28
|
educationsList: EducationList[];
|
|
29
29
|
onExpoerienceCompanyClick: (universalName: string, urn: string) => void;
|
|
30
|
+
dataCy?: string;
|
|
30
31
|
}
|
|
31
|
-
declare const ProfileCardSecondSection: ({ initialExperienceShow, initialEducationShow, experiencesList, educationsList, onExpoerienceCompanyClick, }: ProfileCardSecondSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare const ProfileCardSecondSection: ({ initialExperienceShow, initialEducationShow, experiencesList, educationsList, onExpoerienceCompanyClick, dataCy, }: ProfileCardSecondSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
33
|
export default ProfileCardSecondSection;
|
package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import DynamicEducationCard from "../DynamicEducationCard";
|
|
3
3
|
import DynamicExperienceCardList from "../DynamicExperienceCard";
|
|
4
4
|
import "./style.scss";
|
|
5
|
-
const ProfileCardSecondSection = ({ initialExperienceShow = 3, initialEducationShow = 1, experiencesList, educationsList, onExpoerienceCompanyClick, }) => {
|
|
6
|
-
return (_jsx("div", { className: "profileDetailedCard--Generic", children: _jsxs("span", { className: "experenieceAndEducationSection", children: [_jsxs("span", { className: "profileDetailedCard-Experience", children: [_jsx("span", { className: "profileDetailedCard-DivisionHeading", children: "Experience" }), experiencesList?.length === 0 || !experiencesList ? (_jsx("div", { children: "No experiences found" })) : (_jsx(DynamicExperienceCardList, { experiences: experiencesList, initialItemsToShow: initialExperienceShow, onCompanyClick: onExpoerienceCompanyClick }))] }), _jsxs("span", { className: "profileDetailedCard-Education", children: [_jsx("span", { className: "profileDetailedCard-DivisionHeading", children: "Education" }), educationsList?.length === 0 || !educationsList ? (_jsx("div", { children: "No record of education found" })) : (_jsx(DynamicEducationCard, { educations: educationsList, initialItemsToShow: initialEducationShow }))] })] }) }));
|
|
5
|
+
const ProfileCardSecondSection = ({ initialExperienceShow = 3, initialEducationShow = 1, experiencesList, educationsList, onExpoerienceCompanyClick, dataCy, }) => {
|
|
6
|
+
return (_jsx("div", { className: "profileDetailedCard--Generic", children: _jsxs("span", { className: "experenieceAndEducationSection", children: [_jsxs("span", { className: "profileDetailedCard-Experience", children: [_jsx("span", { className: "profileDetailedCard-DivisionHeading", children: "Experience" }), experiencesList?.length === 0 || !experiencesList ? (_jsx("div", { children: "No experiences found" })) : (_jsx(DynamicExperienceCardList, { experiences: experiencesList, initialItemsToShow: initialExperienceShow, onCompanyClick: onExpoerienceCompanyClick, dataCy: `${dataCy}-experience` }))] }), _jsxs("span", { className: "profileDetailedCard-Education", children: [_jsx("span", { className: "profileDetailedCard-DivisionHeading", children: "Education" }), educationsList?.length === 0 || !educationsList ? (_jsx("div", { children: "No record of education found" })) : (_jsx(DynamicEducationCard, { educations: educationsList, initialItemsToShow: initialEducationShow, dataCy: `${dataCy}-education` }))] })] }) }));
|
|
7
7
|
};
|
|
8
8
|
export default ProfileCardSecondSection;
|
|
@@ -49,6 +49,7 @@ export interface AssignmentIdealProfileCardProps {
|
|
|
49
49
|
isPaused: boolean;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
+
dataCy?: string;
|
|
52
53
|
}
|
|
53
|
-
declare const AssignmentIdealProfileCard: ({ profileIndex, id, profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, recentCompanyUniversalName, recentCompanyUrn, companyLocation, notes, onCheckboxSelected, onNotesViewAllClick, initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingList, industryMissingList, industryMatchingList, experiencesList, educationsList, onViewDetailsClick, onCompanyClick, handleStarClick, starSelected, checkSelected, isStarIconShown, onCampaignClick, campaign, }: AssignmentIdealProfileCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare const AssignmentIdealProfileCard: ({ profileIndex, id, profileIconPath, profileIconSize, personName, personDesignation, personRecentCompany, recentCompanyUniversalName, recentCompanyUrn, companyLocation, notes, onCheckboxSelected, onNotesViewAllClick, initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingList, industryMissingList, industryMatchingList, experiencesList, educationsList, onViewDetailsClick, onCompanyClick, handleStarClick, starSelected, checkSelected, isStarIconShown, onCampaignClick, campaign, dataCy, }: AssignmentIdealProfileCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
55
|
export default AssignmentIdealProfileCard;
|
|
@@ -11,13 +11,13 @@ initialExperienceShow, initialEducationShow, skillsMissingList, skillsMatchingLi
|
|
|
11
11
|
// onContextViewAllButton,
|
|
12
12
|
onViewDetailsClick = (_p) => { }, onCompanyClick,
|
|
13
13
|
// breadCrumbItemsList,
|
|
14
|
-
handleStarClick, starSelected = false, checkSelected = false, isStarIconShown = true, onCampaignClick = () => { }, campaign, }) => {
|
|
14
|
+
handleStarClick, starSelected = false, checkSelected = false, isStarIconShown = true, onCampaignClick = () => { }, campaign, dataCy, }) => {
|
|
15
15
|
const handleSlectedState = () => {
|
|
16
16
|
onCheckboxSelected(id);
|
|
17
17
|
};
|
|
18
18
|
const handleStarState = () => {
|
|
19
19
|
handleStarClick(id);
|
|
20
20
|
};
|
|
21
|
-
return (_jsxs("span", { className: `assignment-ideal-profile-card--Generic ${checkSelected ? "checkboxChecked" : ""}`, children: [_jsxs("span", { className: "left-component-ideal-profile", children: [_jsxs("span", { className: "profilecard-header-checkboxandstar-emoji", children: [_jsxs("span", { className: "check-box--profilecard", children: [profileIndex && _jsxs("p", { children: [profileIndex, "."] }), _jsx(CheckboxComponent, { checked: checkSelected, onClick: handleSlectedState })] }), isStarIconShown && (_jsx("span", { className: `profilecard-header-star ${starSelected ? "" : "starNotChecked"}`, children: _jsx(IconButton, { shape: "circular", iconType: "star", variant: "tertiary", color: "gray", iconSize: "20", sizeVariant: "sm", onClick: handleStarState }) }))] }), _jsx(ProfileCardIstSection, { profileIconPath: profileIconPath, profileIconSize: profileIconSize, personName: personName, personDesignation: personDesignation, personRecentCompany: personRecentCompany, companyLocation: companyLocation, universalName: recentCompanyUniversalName, urn: recentCompanyUrn, notes: notes, onNotesViewAllClick: () => onNotesViewAllClick(id), onViewProfileButtonClick: () => onViewDetailsClick(id), onCompanyNameClick: onCompanyClick, onCampaignClick: onCampaignClick, campaign: campaign })] }), _jsx(ProfileCardSecondSection, { initialExperienceShow: initialExperienceShow, initialEducationShow: initialEducationShow, skillsMissingList: skillsMissingList, skillsMatchingList: skillsMatchingList, industryMissingList: industryMissingList, industryMatchingList: industryMatchingList, experiencesList: experiencesList, educationsList: educationsList, onExpoerienceCompanyClick: onCompanyClick })] }));
|
|
21
|
+
return (_jsxs("span", { className: `assignment-ideal-profile-card--Generic ${checkSelected ? "checkboxChecked" : ""}`, children: [_jsxs("span", { className: "left-component-ideal-profile", children: [_jsxs("span", { className: "profilecard-header-checkboxandstar-emoji", children: [_jsxs("span", { className: "check-box--profilecard", children: [profileIndex && _jsxs("p", { children: [profileIndex, "."] }), _jsx(CheckboxComponent, { checked: checkSelected, onClick: handleSlectedState, dataCy: `${dataCy}-checkbox` })] }), isStarIconShown && (_jsx("span", { className: `profilecard-header-star ${starSelected ? "" : "starNotChecked"}`, children: _jsx(IconButton, { shape: "circular", iconType: "star", variant: "tertiary", color: "gray", iconSize: "20", sizeVariant: "sm", onClick: handleStarState, "data-cy": `${dataCy}-star` }) }))] }), _jsx(ProfileCardIstSection, { profileIconPath: profileIconPath, profileIconSize: profileIconSize, personName: personName, personDesignation: personDesignation, personRecentCompany: personRecentCompany, companyLocation: companyLocation, universalName: recentCompanyUniversalName, urn: recentCompanyUrn, notes: notes, onNotesViewAllClick: () => onNotesViewAllClick(id), onViewProfileButtonClick: () => onViewDetailsClick(id), onCompanyNameClick: onCompanyClick, onCampaignClick: onCampaignClick, campaign: campaign, dataCy: dataCy })] }), _jsx(ProfileCardSecondSection, { initialExperienceShow: initialExperienceShow, initialEducationShow: initialEducationShow, skillsMissingList: skillsMissingList, skillsMatchingList: skillsMatchingList, industryMissingList: industryMissingList, industryMatchingList: industryMatchingList, experiencesList: experiencesList, educationsList: educationsList, onExpoerienceCompanyClick: onCompanyClick, dataCy: dataCy })] }));
|
|
22
22
|
};
|
|
23
23
|
export default AssignmentIdealProfileCard;
|
|
@@ -8,6 +8,7 @@ type BadgeWithCountProps = {
|
|
|
8
8
|
iconType?: IconType;
|
|
9
9
|
iconSize?: IconSize;
|
|
10
10
|
onClick?: () => void;
|
|
11
|
+
dataCy?: string;
|
|
11
12
|
};
|
|
12
|
-
declare const BadgeWithCount: ({ count, iconSize, iconType, toolTipPosition, toolTipContent, onClick, }: BadgeWithCountProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
declare const BadgeWithCount: ({ count, iconSize, iconType, toolTipPosition, toolTipContent, onClick, dataCy, }: BadgeWithCountProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
14
|
export default BadgeWithCount;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { GetSvgIcon, Tooltip } from "..";
|
|
3
3
|
import "./style.scss";
|
|
4
|
-
const BadgeWithCount = ({ count, iconSize = "16", iconType = "briefcase", toolTipPosition = "bottom", toolTipContent, onClick, }) => {
|
|
4
|
+
const BadgeWithCount = ({ count, iconSize = "16", iconType = "briefcase", toolTipPosition = "bottom", toolTipContent, onClick, dataCy, }) => {
|
|
5
5
|
if (count === undefined)
|
|
6
6
|
return null;
|
|
7
|
-
return (_jsx("div", { className: "badgeWithCount", children: _jsx(Tooltip, { content: toolTipContent, toolTipPosition: toolTipPosition, isDisabled: !toolTipContent, children: _jsxs("div", { className: "badgeIconAndText", onClick: onClick, role: "button", onKeyDown: onClick, children: [_jsx(GetSvgIcon, { iconSize: iconSize, iconType: iconType }), _jsx("span", { className: "badgeText", children: count })] }) }) }));
|
|
7
|
+
return (_jsx("div", { className: "badgeWithCount", "data-cy": dataCy, children: _jsx(Tooltip, { content: toolTipContent, toolTipPosition: toolTipPosition, isDisabled: !toolTipContent, children: _jsxs("div", { className: "badgeIconAndText", onClick: onClick, role: "button", onKeyDown: onClick, children: [_jsx(GetSvgIcon, { iconSize: iconSize, iconType: iconType }), _jsx("span", { className: "badgeText", children: count })] }) }) }));
|
|
8
8
|
};
|
|
9
9
|
export default BadgeWithCount;
|
|
@@ -5,6 +5,7 @@ type BusinessUnitViewTabsComponentProps = {
|
|
|
5
5
|
}>;
|
|
6
6
|
activeTab: BusinessUnitViewTabTypes;
|
|
7
7
|
onClick: (tabName: BusinessUnitViewTabTypes) => void;
|
|
8
|
+
dataCy?: string;
|
|
8
9
|
};
|
|
9
|
-
declare function BusinessUnitViewTabsComponent({ tabs, activeTab, onClick, }: BusinessUnitViewTabsComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function BusinessUnitViewTabsComponent({ tabs, activeTab, onClick, dataCy, }: BusinessUnitViewTabsComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default BusinessUnitViewTabsComponent;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import styles from "./styles.module.scss";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { BusinessUnitViewTabs } from "../../../utils";
|
|
5
|
-
function BusinessUnitViewTabsComponent({ tabs = BusinessUnitViewTabs, activeTab = "Summary", onClick, }) {
|
|
5
|
+
function BusinessUnitViewTabsComponent({ tabs = BusinessUnitViewTabs, activeTab = "Summary", onClick, dataCy, }) {
|
|
6
6
|
const getClassName = (tabName, activeTab) => {
|
|
7
7
|
return clsx({
|
|
8
8
|
[styles.tabButton]: true,
|
|
@@ -11,7 +11,7 @@ function BusinessUnitViewTabsComponent({ tabs = BusinessUnitViewTabs, activeTab
|
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
return (_jsx("div", { className: styles.businessUnitViewTabs, children: tabs.map((entity, key) => {
|
|
14
|
-
return (_jsx("button", { onClick: () => onClick(entity.tabName), className: getClassName(entity.tabName, activeTab), children: entity.tabName.toUpperCase() }, key));
|
|
14
|
+
return (_jsx("button", { onClick: () => onClick(entity.tabName), className: getClassName(entity.tabName, activeTab), "data-cy": `${dataCy}-${entity.tabName.toLowerCase()}`, children: entity.tabName.toUpperCase() }, key));
|
|
15
15
|
}) }));
|
|
16
16
|
}
|
|
17
17
|
export default BusinessUnitViewTabsComponent;
|
|
@@ -16,8 +16,11 @@ interface ChatDropDownProps<T extends {
|
|
|
16
16
|
handleOptionClick: (option: T) => void;
|
|
17
17
|
handleInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
18
18
|
renderProps?: (props: T) => React.ReactElement;
|
|
19
|
+
dataCyInput?: string;
|
|
20
|
+
dataCySuggestion?: string;
|
|
21
|
+
dataCyCreate?: string;
|
|
19
22
|
}
|
|
20
23
|
declare const ChatDropDown: <T extends {
|
|
21
24
|
label: string;
|
|
22
|
-
}>({ value, isCreateShown, zIndex, placeholder, showSearchIcon, filteredOptions, isLoading, isReadOnly, showNoResults, handleCreateClick, handleOptionClick, handleInputChange, renderProps, }: ChatDropDownProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
}>({ value, isCreateShown, zIndex, placeholder, showSearchIcon, filteredOptions, isLoading, isReadOnly, showNoResults, dataCyInput, dataCySuggestion, dataCyCreate, handleCreateClick, handleOptionClick, handleInputChange, renderProps, }: ChatDropDownProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
26
|
export default ChatDropDown;
|
|
@@ -5,7 +5,7 @@ import "./style.scss";
|
|
|
5
5
|
import { v4 as uuidv4 } from "uuid";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { Loader } from "..";
|
|
8
|
-
const ChatDropDown = ({ value = "", isCreateShown = true, zIndex = 100, placeholder = "Search options", showSearchIcon = true, filteredOptions = [], isLoading = false, isReadOnly = false, showNoResults = false, handleCreateClick = (value) => {
|
|
8
|
+
const ChatDropDown = ({ value = "", isCreateShown = true, zIndex = 100, placeholder = "Search options", showSearchIcon = true, filteredOptions = [], isLoading = false, isReadOnly = false, showNoResults = false, dataCyInput, dataCySuggestion, dataCyCreate, handleCreateClick = (value) => {
|
|
9
9
|
console.log({ value });
|
|
10
10
|
}, handleOptionClick = (value) => {
|
|
11
11
|
console.log({ value });
|
|
@@ -66,8 +66,8 @@ const ChatDropDown = ({ value = "", isCreateShown = true, zIndex = 100, placehol
|
|
|
66
66
|
}), children: [showSearchIcon && _jsx(GetSvgIcon, { iconType: "search", iconSize: "24" }), _jsx("input", { type: "text", placeholder: placeholder, onChange: handleChange, onClick: () => setShowOptions(!!value), readOnly: isReadOnly, value: value, className: clsx({
|
|
67
67
|
"inputField--Generic": true,
|
|
68
68
|
[getWidthControl(showSearchIcon, isLoading)]: true,
|
|
69
|
-
}) }), isLoading && _jsx(Loader, { height: "20", width: "20" })] }), (filteredOptions.length > 0 || isCreateShown || showNoResults) &&
|
|
70
|
-
showOptions && (_jsx("div", { ref: dropdownRef, children: _jsxs("ul", { className: "options-list", style: { zIndex }, children: [showNoResults && _jsx("p", { className: "noResults", children: "No Results Found" }), isCreateShown && (_jsx(_Fragment, { children: _jsx("li", { className: "create-section", onClick: (e) => {
|
|
69
|
+
}), "data-cy": dataCyInput }), isLoading && _jsx(Loader, { height: "20", width: "20" })] }), (filteredOptions.length > 0 || isCreateShown || showNoResults) &&
|
|
70
|
+
showOptions && (_jsx("div", { ref: dropdownRef, children: _jsxs("ul", { className: "options-list", style: { zIndex }, children: [showNoResults && _jsx("p", { className: "noResults", children: "No Results Found" }), isCreateShown && (_jsx(_Fragment, { children: _jsx("li", { "data-cy": dataCyCreate, className: "create-section", onClick: (e) => {
|
|
71
71
|
e.stopPropagation();
|
|
72
72
|
setShowOptions(false);
|
|
73
73
|
handleCreateClick(value);
|
|
@@ -75,6 +75,6 @@ const ChatDropDown = ({ value = "", isCreateShown = true, zIndex = 100, placehol
|
|
|
75
75
|
e.stopPropagation();
|
|
76
76
|
setShowOptions(false);
|
|
77
77
|
handleOptionClick(props);
|
|
78
|
-
}, children: renderProps(props) }, uuidv4())))] }) }))] }));
|
|
78
|
+
}, "data-cy": dataCySuggestion, children: renderProps(props) }, uuidv4())))] }) }))] }));
|
|
79
79
|
};
|
|
80
80
|
export default ChatDropDown;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import "./style.scss";
|
|
4
4
|
import { v4 as uuidv4 } from "uuid";
|
|
5
|
-
const CheckboxComponent = ({ checked = false, onClick, id = uuidv4(), sizeVariant = "sm", isDisabled = false, }) => {
|
|
5
|
+
const CheckboxComponent = ({ checked = false, onClick, id = uuidv4(), sizeVariant = "sm", isDisabled = false, dataCy, }) => {
|
|
6
6
|
const [isOn, setIsOn] = useState(checked);
|
|
7
7
|
useEffect(() => {
|
|
8
8
|
setIsOn(checked);
|
|
@@ -13,6 +13,6 @@ const CheckboxComponent = ({ checked = false, onClick, id = uuidv4(), sizeVarian
|
|
|
13
13
|
};
|
|
14
14
|
return (_jsx("input", { type: "checkbox", className: isDisabled
|
|
15
15
|
? `checkBoxComponent--Generic ${sizeVariant}SizeCheckBox disabled-CheckBox`
|
|
16
|
-
: `checkBoxComponent--Generic ${sizeVariant}SizeCheckBox notDisabled-CheckBox`, id: `${id}`, checked: isOn, onChange: handleToggle, disabled: isDisabled }));
|
|
16
|
+
: `checkBoxComponent--Generic ${sizeVariant}SizeCheckBox notDisabled-CheckBox`, id: `${id}`, checked: isOn, onChange: handleToggle, disabled: isDisabled, "data-cy": dataCy }));
|
|
17
17
|
};
|
|
18
18
|
export default CheckboxComponent;
|
|
@@ -3,6 +3,9 @@ interface ChevronDropDownProps {
|
|
|
3
3
|
dropdownItemList: string[];
|
|
4
4
|
onLabelClick: (value: string) => void;
|
|
5
5
|
name: string;
|
|
6
|
+
dataCyDropdown?: string;
|
|
7
|
+
dataCyChangePass?: string;
|
|
8
|
+
dataCySignout?: string;
|
|
6
9
|
}
|
|
7
|
-
declare const ChevronDropDown: ({ dropdownItemList, onLabelClick, name, }: ChevronDropDownProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const ChevronDropDown: ({ dropdownItemList, onLabelClick, name, dataCyDropdown, dataCyChangePass, dataCySignout, }: ChevronDropDownProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default ChevronDropDown;
|
|
@@ -5,14 +5,21 @@ import { IconButton } from "..";
|
|
|
5
5
|
import { getFirstName } from "../../utils";
|
|
6
6
|
const ChevronDropDown = ({ dropdownItemList, onLabelClick,
|
|
7
7
|
// profileImage,
|
|
8
|
-
name, }) => {
|
|
8
|
+
name, dataCyDropdown, dataCyChangePass, dataCySignout, }) => {
|
|
9
9
|
const [listShow, setListShow] = useState(false);
|
|
10
10
|
const toggleListShow = () => {
|
|
11
11
|
setListShow((prevState) => !prevState);
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
const selectDataCy = (item) => {
|
|
14
|
+
item === "Change Password" && dataCyChangePass
|
|
15
|
+
? dataCyChangePass
|
|
16
|
+
: item === "Sign Out" && dataCySignout
|
|
17
|
+
? dataCySignout
|
|
18
|
+
: "";
|
|
19
|
+
};
|
|
20
|
+
return (_jsx("div", { className: "chevronButtondropdown--container", children: _jsxs("span", { className: "filterButtondropdown--dropdown", children: [_jsxs("div", { children: [_jsx("button", { onClick: toggleListShow, "data-cy": dataCyDropdown, children: _jsx("p", { className: "first-name", children: getFirstName(name) }) }), _jsx("span", { className: "chevronButtondropdown--btn--dropdown", children: _jsx(IconButton, { shape: "circular", onClick: toggleListShow, sizeVariant: "base", color: "orange", variant: "primary", iconType: "arrowDown" }) })] }), _jsx("ul", { className: `filterButtondropdown--dropdown-list-${listShow ? "show" : "hide"}`, children: dropdownItemList.map((item, key) => (_jsx("li", { children: _jsx("button", { onClick: () => {
|
|
14
21
|
setListShow(false);
|
|
15
22
|
onLabelClick(item);
|
|
16
|
-
}, children: item }) }, `${key}-${item}`))) })] }) }));
|
|
23
|
+
}, "data-cy": selectDataCy(item), children: item }) }, `${key}-${item}`))) })] }) }));
|
|
17
24
|
};
|
|
18
25
|
export default ChevronDropDown;
|
|
@@ -12,6 +12,7 @@ interface ClickableTextProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
props?: any;
|
|
14
14
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
15
|
+
dataCy?: string;
|
|
15
16
|
}
|
|
16
|
-
declare const ClickableText: ({ text, showIcon, iconOnLeft, iconType, sizeVariant, colorVariant, iconSize, props, disabled, onClick, }: ClickableTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const ClickableText: ({ text, showIcon, iconOnLeft, iconType, sizeVariant, colorVariant, iconSize, props, disabled, onClick, dataCy, }: ClickableTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export default ClickableText;
|
|
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import GetSvgIcon from "../GetSvgIcon";
|
|
4
4
|
import "./style.scss";
|
|
5
|
-
const ClickableText = ({ text = "String of Button", showIcon = false, iconOnLeft = false, iconType = "plus", sizeVariant = "xs", colorVariant = "orange", iconSize = "16", props = {}, disabled = false, onClick, }) => {
|
|
5
|
+
const ClickableText = ({ text = "String of Button", showIcon = false, iconOnLeft = false, iconType = "plus", sizeVariant = "xs", colorVariant = "orange", iconSize = "16", props = {}, disabled = false, onClick, dataCy, }) => {
|
|
6
6
|
const clickableTextClassName = clsx({
|
|
7
7
|
clickableTextGeneric: true,
|
|
8
8
|
[`${sizeVariant}SizeClickableText`]: true,
|
|
9
9
|
[`${colorVariant}ClickableText`]: true,
|
|
10
10
|
iconOnLeftClickableText: iconOnLeft,
|
|
11
11
|
});
|
|
12
|
-
return (_jsxs("button", { disabled: disabled, onClick: onClick, className: clickableTextClassName, ...props, children: [text, showIcon && _jsx(GetSvgIcon, { iconType: iconType, iconSize: iconSize })] }));
|
|
12
|
+
return (_jsxs("button", { disabled: disabled, onClick: onClick, className: clickableTextClassName, ...props, "data-cy": dataCy, children: [text, showIcon && _jsx(GetSvgIcon, { iconType: iconType, iconSize: iconSize })] }));
|
|
13
13
|
};
|
|
14
14
|
export default ClickableText;
|
|
@@ -6,6 +6,7 @@ interface ColoredButtonProps {
|
|
|
6
6
|
colorVariant: "orange" | "green" | "teal" | "socialTwitter";
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
dataCy?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const ColoredButton: ({ text, sizeVariant, colorVariant, isDisabled, onClick, }: ColoredButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const ColoredButton: ({ text, sizeVariant, colorVariant, isDisabled, onClick, dataCy, }: ColoredButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export default ColoredButton;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import "./style.scss";
|
|
4
|
-
const ColoredButton = ({ text = "16876", sizeVariant = "xs", colorVariant = "orange", isDisabled = false, onClick, }) => {
|
|
4
|
+
const ColoredButton = ({ text = "16876", sizeVariant = "xs", colorVariant = "orange", isDisabled = false, onClick, dataCy, }) => {
|
|
5
5
|
const className = clsx({
|
|
6
6
|
"colored-button--Generic": true,
|
|
7
7
|
[`${sizeVariant}Size--ColoredButton`]: true,
|
|
8
8
|
[`${colorVariant}--ColoredButton`]: true,
|
|
9
9
|
});
|
|
10
|
-
return (_jsx("button", { className: className, disabled: isDisabled, onClick: onClick, children: text }));
|
|
10
|
+
return (_jsx("button", { className: className, disabled: isDisabled, onClick: onClick, "data-cy": dataCy, children: text }));
|
|
11
11
|
};
|
|
12
12
|
export default ColoredButton;
|
|
@@ -5,6 +5,7 @@ interface CompanyDetailsCardProps {
|
|
|
5
5
|
viewMore: () => void;
|
|
6
6
|
descriptionCollapseCount?: number;
|
|
7
7
|
intialHeight?: string;
|
|
8
|
+
dataCy?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const CompanyDetailsCard: ({ company, descriptionCollapseCount, viewMore, intialHeight, }: CompanyDetailsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const CompanyDetailsCard: ({ company, descriptionCollapseCount, viewMore, intialHeight, dataCy, }: CompanyDetailsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default CompanyDetailsCard;
|
|
@@ -34,7 +34,7 @@ const getStatusText = (evalStatus) => {
|
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
const CompanyDetailsCard = ({ company, descriptionCollapseCount = 250, viewMore, intialHeight = "calc(100% - 84px)", }) => {
|
|
37
|
+
const CompanyDetailsCard = ({ company, descriptionCollapseCount = 250, viewMore, intialHeight = "calc(100% - 84px)", dataCy, }) => {
|
|
38
38
|
const topSectionRef = useRef(null);
|
|
39
39
|
const [bodySectionHeight, setBodySectionHeight] = useState(intialHeight);
|
|
40
40
|
const [descriptionCollapse, setDescriptionCollapse] = useState(company?.description?.length > descriptionCollapseCount);
|
|
@@ -56,12 +56,12 @@ const CompanyDetailsCard = ({ company, descriptionCollapseCount = 250, viewMore,
|
|
|
56
56
|
(company.industries && company.staffcount ? " • " : "") +
|
|
57
57
|
(company.staffcount
|
|
58
58
|
? `${company?.staffcount?.toLocaleString()} Employees`
|
|
59
|
-
: "-") })), _jsx(ClickableText, { onClick: viewMore, sizeVariant: "sm", text: "View more details" })] })] }), company.evaluationStatus && (_jsxs("div", { className: company.evaluationStatus, children: [company.evaluationStatus !== "loading" ? (_jsx("p", { children: getStatusText(company.evaluationStatus) })) : (_jsx("p", { children: "Verifying" })), getStatusIcon(company.evaluationStatus)] }))] }), company.evaluating ? (_jsx("div", { className: "textShimmer" })) : company.evaluatedDescription &&
|
|
59
|
+
: "-") })), _jsx(ClickableText, { onClick: viewMore, sizeVariant: "sm", text: "View more details", dataCy: `${dataCy}-view-more-details` })] })] }), company.evaluationStatus && (_jsxs("div", { className: company.evaluationStatus, children: [company.evaluationStatus !== "loading" ? (_jsx("p", { children: getStatusText(company.evaluationStatus) })) : (_jsx("p", { children: "Verifying" })), getStatusIcon(company.evaluationStatus)] }))] }), company.evaluating ? (_jsx("div", { className: "textShimmer" })) : company.evaluatedDescription &&
|
|
60
60
|
company.evaluatedDescription.length > 0 ? (_jsx("div", { className: "evaluatedDescription", children: _jsxs("p", { className: "evaluatedData", children: [_jsx(GetSvgIcon, { iconType: "sparkles", iconSize: "20" }), company.evaluatedDescription ? company.evaluatedDescription : " "] }) })) : null, _jsxs("div", { className: "BodySection", style: { height: bodySectionHeight }, children: [_jsx("pre", { className: `CompanyDescription ${descriptionCollapse ? "CompanyDescriptionExpanded" : ""}`, contentEditable: "false", children: descriptionCollapse
|
|
61
61
|
? company?.description?.slice(0, descriptionCollapseCount) + "..."
|
|
62
62
|
: company?.description || "" }), company?.description?.length > descriptionCollapseCount && (_jsx(ClickableText, { iconSize: "22", showIcon: true, iconType: descriptionCollapse ? "cheveronDown" : "cheveronUp", sizeVariant: "sm", text: descriptionCollapse ? "Show More" : `Show Less`, onClick: () => {
|
|
63
63
|
setDescriptionCollapse((prev) => !prev);
|
|
64
|
-
} })), _jsxs("div", { className: "BottomSection", children: [_jsxs("div", { children: [_jsx("p", { className: "label", children: "Industry" }), _jsx("p", { className: "value", children: company?.industries || "" })] }), _jsxs("div", { children: [_jsx("p", { className: "label", children: "Sub-Industries" }), _jsx("p", { className: "value", children: Array.isArray(company?.specialities)
|
|
64
|
+
}, dataCy: `${dataCy}-show-more-less` })), _jsxs("div", { className: "BottomSection", children: [_jsxs("div", { children: [_jsx("p", { className: "label", children: "Industry" }), _jsx("p", { className: "value", children: company?.industries || "" })] }), _jsxs("div", { children: [_jsx("p", { className: "label", children: "Sub-Industries" }), _jsx("p", { className: "value", children: Array.isArray(company?.specialities)
|
|
65
65
|
? company.specialities.join(", ")
|
|
66
66
|
: "" })] }), _jsxs("div", { children: [_jsx("p", { className: "label", children: "Company Size" }), _jsx("p", { className: "value", children: company?.staffcount?.toLocaleString() || "" })] }), _jsxs("div", { children: [_jsx("p", { className: "label", children: "Website" }), _jsx("p", { onClick: () => window.open(company?.websiteUrl, "_blank"), className: "value link", children: company?.websiteUrl || "" })] }), _jsxs("div", { children: [_jsx("p", { className: "label", children: "Headquarters" }), _jsx("p", { className: "value", children: headquarter })] })] })] })] }));
|
|
67
67
|
};
|
|
@@ -10,6 +10,7 @@ interface CompanyLikePillSelectableProps {
|
|
|
10
10
|
onEnter?: () => void;
|
|
11
11
|
onLeave?: () => void;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
|
+
dataCy?: string;
|
|
13
14
|
}
|
|
14
|
-
declare const CompanyLikePillSelectable: ({ id, text, onClick, isSelected, props, highlight, onEnter, onLeave, isDisabled, }: CompanyLikePillSelectableProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const CompanyLikePillSelectable: ({ id, text, onClick, isSelected, props, highlight, onEnter, onLeave, isDisabled, dataCy, }: CompanyLikePillSelectableProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default CompanyLikePillSelectable;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import GetSvgIcon from "../GetSvgIcon";
|
|
4
4
|
import "./style.scss";
|
|
5
|
-
const CompanyLikePillSelectable = ({ id, text = "", onClick, isSelected = false, props = {}, highlight = false, onEnter = () => { }, onLeave = () => { }, isDisabled = false, }) => {
|
|
5
|
+
const CompanyLikePillSelectable = ({ id, text = "", onClick, isSelected = false, props = {}, highlight = false, onEnter = () => { }, onLeave = () => { }, isDisabled = false, dataCy, }) => {
|
|
6
6
|
const className = clsx({
|
|
7
7
|
"companyLikePillSelectable--Generic": true,
|
|
8
8
|
"companyLikePillSelectable--Selected": isSelected,
|
|
@@ -10,6 +10,6 @@ const CompanyLikePillSelectable = ({ id, text = "", onClick, isSelected = false,
|
|
|
10
10
|
"companyLikePillSelectable--SelectedHover": isSelected && highlight,
|
|
11
11
|
"companyLikePillSelectable--UnselectedHover": !isSelected && highlight,
|
|
12
12
|
});
|
|
13
|
-
return (_jsxs("button", { id: id, disabled: isDisabled, className: className, onClick: onClick, ...props, onMouseEnter: onEnter, onMouseLeave: onLeave, children: [text, _jsx(GetSvgIcon, { iconType: "tick", iconSize: "24" })] }));
|
|
13
|
+
return (_jsxs("button", { id: id, disabled: isDisabled, className: className, onClick: onClick, ...props, onMouseEnter: onEnter, onMouseLeave: onLeave, "data-cy": dataCy, children: [text, _jsx(GetSvgIcon, { iconType: "tick", iconSize: "24" })] }));
|
|
14
14
|
};
|
|
15
15
|
export default CompanyLikePillSelectable;
|
|
@@ -10,6 +10,7 @@ interface CompanyLogoPillSelectableProps {
|
|
|
10
10
|
isHoverShown?: boolean;
|
|
11
11
|
props?: object;
|
|
12
12
|
variant: SelectedUnselectedErrorVariant;
|
|
13
|
+
dataCy?: string;
|
|
13
14
|
}
|
|
14
|
-
declare const CompanyLogoPillSelectable: ({ text, variant, onClick, picturePath, props, svgType, isHoverShown, children, }: CompanyLogoPillSelectableProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const CompanyLogoPillSelectable: ({ text, variant, onClick, picturePath, props, svgType, isHoverShown, children, dataCy, }: CompanyLogoPillSelectableProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default CompanyLogoPillSelectable;
|
|
@@ -4,7 +4,7 @@ import CircularIcon from "../CircularIcon";
|
|
|
4
4
|
import GetSvgIcon from "../GetSvgIcon";
|
|
5
5
|
import "./style.scss";
|
|
6
6
|
import { EllipsisText } from "..";
|
|
7
|
-
const CompanyLogoPillSelectable = ({ text, variant = "selected", onClick, picturePath = "", props = {}, svgType = "thumb", isHoverShown = true, children, }) => {
|
|
7
|
+
const CompanyLogoPillSelectable = ({ text, variant = "selected", onClick, picturePath = "", props = {}, svgType = "thumb", isHoverShown = true, children, dataCy, }) => {
|
|
8
8
|
const className = clsx({
|
|
9
9
|
"companyLogoPillSelectable--Generic": true,
|
|
10
10
|
"companyLogoPillSelectable--Unselected": variant === "unselected",
|
|
@@ -12,6 +12,6 @@ const CompanyLogoPillSelectable = ({ text, variant = "selected", onClick, pictur
|
|
|
12
12
|
"companyLogoPillSelectable--Error": variant === "error",
|
|
13
13
|
"companyLogoPillSelectable--UnselectedHover": variant === "unselected" && isHoverShown,
|
|
14
14
|
});
|
|
15
|
-
return (_jsxs("button", { className: className, onClick: onClick, type: "button", ...props, children: [variant === "error" ? (_jsx("span", { className: "errorSvg", children: _jsx(GetSvgIcon, { iconType: "excalamationCircle", iconSize: "24" }) })) : (_jsx("span", { className: "placeholderSvg", children: _jsx(CircularIcon, { iconSize: "24", errorImageContainerSize: "34", iconPath: picturePath, altImageType: "company" }) })), _jsx(EllipsisText, { maxWidth: "330px", toolTipPosition: "bottom", children: text }), _jsx("span", { className: "pillThumbSvg", children: _jsx(GetSvgIcon, { iconSize: "22", iconType: variant === "error" ? "cross" : svgType || "thumb" }) }), children] }));
|
|
15
|
+
return (_jsxs("button", { className: className, onClick: onClick, type: "button", ...props, "data-cy": dataCy, children: [variant === "error" ? (_jsx("span", { className: "errorSvg", children: _jsx(GetSvgIcon, { iconType: "excalamationCircle", iconSize: "24" }) })) : (_jsx("span", { className: "placeholderSvg", children: _jsx(CircularIcon, { iconSize: "24", errorImageContainerSize: "34", iconPath: picturePath, altImageType: "company" }) })), _jsx(EllipsisText, { maxWidth: "330px", toolTipPosition: "bottom", children: text }), _jsx("span", { className: "pillThumbSvg", children: _jsx(GetSvgIcon, { iconSize: "22", iconType: variant === "error" ? "cross" : svgType || "thumb" }) }), children] }));
|
|
16
16
|
};
|
|
17
17
|
export default CompanyLogoPillSelectable;
|
|
@@ -4,9 +4,9 @@ import CheckboxComponent from "../../CheckboxComponent";
|
|
|
4
4
|
import CircularIcon from "../../CircularIcon";
|
|
5
5
|
import { companyPic } from "../../../utils";
|
|
6
6
|
import IconButton from "../../IconButton";
|
|
7
|
-
const CompanyViewHeader = ({ companyLogo = companyPic, companyName = "Qlu.ai", employeeCount = 50, location = "Islamabad, Pakistan", universalName, onCheckClick, onClose, onBack, checkValue = false, }) => {
|
|
8
|
-
return (_jsxs("div", { className: "companyViewHeader--Generic", children: [_jsxs("span", { className: "companyViewHeader--Left", children: [onBack && (_jsx(IconButton, { color: "gray", variant: "tertiary", iconType: "arrowLeft", sizeVariant: "xs", iconSize: "20", onClick: onBack })), onCheckClick && (_jsx("div", { className: "companyViewHeaderCheckBoxLeft", children: _jsx(CheckboxComponent, { sizeVariant: "sm", checked: checkValue, onClick: (flag) => {
|
|
7
|
+
const CompanyViewHeader = ({ companyLogo = companyPic, companyName = "Qlu.ai", employeeCount = 50, location = "Islamabad, Pakistan", universalName, onCheckClick, onClose, onBack, checkValue = false, dataCy, }) => {
|
|
8
|
+
return (_jsxs("div", { className: "companyViewHeader--Generic", children: [_jsxs("span", { className: "companyViewHeader--Left", children: [onBack && (_jsx(IconButton, { color: "gray", variant: "tertiary", iconType: "arrowLeft", sizeVariant: "xs", iconSize: "20", onClick: onBack, "data-cy": `${dataCy}-back` })), onCheckClick && (_jsx("div", { className: "companyViewHeaderCheckBoxLeft", children: _jsx(CheckboxComponent, { sizeVariant: "sm", checked: checkValue, onClick: (flag) => {
|
|
9
9
|
onCheckClick(flag);
|
|
10
|
-
} }) })), _jsx(CircularIcon, { iconPath: companyLogo, iconSize: "80", altImageType: "company" }, universalName), _jsxs("div", { className: "companyViewHeader--PersonDetails", children: [_jsx("h2", { children: companyName }), employeeCount && employeeCount !== 0 ? (_jsxs("span", { children: [employeeCount?.toLocaleString("en-US"), " Employees"] })) : (""), _jsx("h3", { children: location })] })] }), _jsx(IconButton, { color: "gray", variant: "tertiary", iconType: "cross", sizeVariant: "xs", iconSize: "20", onClick: onClose })] }));
|
|
10
|
+
}, dataCy: `${dataCy}-checkbox` }) })), _jsx(CircularIcon, { iconPath: companyLogo, iconSize: "80", altImageType: "company" }, universalName), _jsxs("div", { className: "companyViewHeader--PersonDetails", children: [_jsx("h2", { children: companyName }), employeeCount && employeeCount !== 0 ? (_jsxs("span", { children: [employeeCount?.toLocaleString("en-US"), " Employees"] })) : (""), _jsx("h3", { children: location })] })] }), _jsx(IconButton, { color: "gray", variant: "tertiary", iconType: "cross", sizeVariant: "xs", iconSize: "20", onClick: onClose, "data-cy": `${dataCy}-cross` })] }));
|
|
11
11
|
};
|
|
12
12
|
export default CompanyViewHeader;
|
|
@@ -7,6 +7,7 @@ interface CompanyViewTabsComponentProps {
|
|
|
7
7
|
}[];
|
|
8
8
|
activeCompanyViewTab: CompanyViewTabsTypes;
|
|
9
9
|
onClick: (tabName: CompanyViewTabsTypes) => void;
|
|
10
|
+
dataCy?: string;
|
|
10
11
|
}
|
|
11
12
|
declare const CompanyViewTabsComponent: React.FC<CompanyViewTabsComponentProps>;
|
|
12
13
|
export default CompanyViewTabsComponent;
|