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.
Files changed (151) hide show
  1. package/dist/build/qlu-20-ui-library.cjs +66 -66
  2. package/dist/build/qlu-20-ui-library.js +11601 -11379
  3. package/dist/components/AdvanceFilterJobTitleV2/index.d.ts +2 -1
  4. package/dist/components/AssignmentBreadCrumb/index.d.ts +2 -1
  5. package/dist/components/AssignmentCreationCard/index.d.ts +2 -1
  6. package/dist/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.d.ts +2 -1
  7. package/dist/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.d.ts +2 -1
  8. package/dist/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.d.ts +2 -1
  9. package/dist/components/AssignmentIdealProfileSelectionCard/ProfileCard/index.d.ts +2 -1
  10. package/dist/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.d.ts +2 -1
  11. package/dist/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.d.ts +2 -1
  12. package/dist/components/AssignmentIdealProfileSelectionCard/index.d.ts +2 -1
  13. package/dist/components/BadgeWithCount/index.d.ts +2 -1
  14. package/dist/components/BusinessUnitView/BusinessUnitViewTabsComponent/BusinessUnitViewTabsComponent.d.ts +2 -1
  15. package/dist/components/ChatDropDown/index.d.ts +4 -1
  16. package/dist/components/CheckboxComponent/index.d.ts +1 -0
  17. package/dist/components/ChevronDropDown/index.d.ts +4 -1
  18. package/dist/components/ClickableText/index.d.ts +2 -1
  19. package/dist/components/ColoredButton/index.d.ts +2 -1
  20. package/dist/components/CompanyDetailsCard/index.d.ts +2 -1
  21. package/dist/components/CompanyLikePillSelectable/index.d.ts +2 -1
  22. package/dist/components/CompanyLogoPillSelectable/index.d.ts +2 -1
  23. package/dist/components/CompanyView/CompanyViewHeader/index.d.ts +1 -0
  24. package/dist/components/CompanyView/CompanyViewTabsComponent/index.d.ts +1 -0
  25. package/dist/components/DropDownButton/index.d.ts +2 -1
  26. package/dist/components/FilterAndSortDropdown/index.d.ts +2 -1
  27. package/dist/components/InputField/index.d.ts +3 -1
  28. package/dist/components/InputFieldWithSvg/index.d.ts +2 -1
  29. package/dist/components/NumberInputField/index.d.ts +2 -1
  30. package/dist/components/PersonView/PersonViewBody/index.d.ts +1 -0
  31. package/dist/components/PersonView/PersonViewExperienceCard/index.d.ts +1 -0
  32. package/dist/components/PersonView/PersonViewExperienceDetails/index.d.ts +1 -0
  33. package/dist/components/PersonView/PersonViewHeader/index.d.ts +1 -0
  34. package/dist/components/PersonView/PersonViewSummary/index.d.ts +2 -1
  35. package/dist/components/PersonView/PersonViewTabsComponent/index.d.ts +1 -0
  36. package/dist/components/PrimaryButton/index.d.ts +2 -1
  37. package/dist/components/PromptField/index.d.ts +2 -1
  38. package/dist/components/SearchFilterButton/index.d.ts +2 -1
  39. package/dist/components/SearchFilterSideDrawer/SaveSearch/index.d.ts +2 -1
  40. package/dist/components/Select/index.d.ts +2 -1
  41. package/dist/components/SelectDropDown/index.d.ts +2 -1
  42. package/dist/components/SelectItem/index.d.ts +3 -2
  43. package/dist/components/SelectablePill/index.d.ts +2 -1
  44. package/dist/components/Svg/Box.d.ts +6 -0
  45. package/dist/components/SwitchLarge/index.d.ts +2 -1
  46. package/dist/components/TableNameCell/index.d.ts +2 -1
  47. package/dist/components/TablePagination/index.d.ts +1 -0
  48. package/dist/components/Tabs/index.d.ts +2 -1
  49. package/dist/components/TertiaryButton/index.d.ts +2 -1
  50. package/dist/components/ToggleComponent/index.d.ts +1 -0
  51. package/dist/types/components/AdvanceFilterJobTitleV2/index.d.ts +2 -1
  52. package/dist/types/components/AdvanceFilterJobTitleV2/index.js +3 -3
  53. package/dist/types/components/AssignmentBreadCrumb/index.d.ts +2 -1
  54. package/dist/types/components/AssignmentBreadCrumb/index.js +2 -2
  55. package/dist/types/components/AssignmentCreationCard/index.d.ts +2 -1
  56. package/dist/types/components/AssignmentCreationCard/index.js +4 -3
  57. package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.d.ts +2 -1
  58. package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicEducationCard/index.js +2 -2
  59. package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.d.ts +2 -1
  60. package/dist/types/components/AssignmentIdealProfileSelectionCard/DynamicExperienceCard/index.js +2 -2
  61. package/dist/types/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.d.ts +2 -1
  62. package/dist/types/components/AssignmentIdealProfileSelectionCard/NotesProspectiveList/index.js +2 -2
  63. package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileCard/index.d.ts +2 -1
  64. package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileCard/index.js +2 -2
  65. package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.d.ts +2 -1
  66. package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileIstSection/index.js +2 -2
  67. package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.d.ts +2 -1
  68. package/dist/types/components/AssignmentIdealProfileSelectionCard/ProfileSecondSection/index.js +2 -2
  69. package/dist/types/components/AssignmentIdealProfileSelectionCard/index.d.ts +2 -1
  70. package/dist/types/components/AssignmentIdealProfileSelectionCard/index.js +2 -2
  71. package/dist/types/components/BadgeWithCount/index.d.ts +2 -1
  72. package/dist/types/components/BadgeWithCount/index.js +2 -2
  73. package/dist/types/components/BusinessUnitView/BusinessUnitViewTabsComponent/BusinessUnitViewTabsComponent.d.ts +2 -1
  74. package/dist/types/components/BusinessUnitView/BusinessUnitViewTabsComponent/BusinessUnitViewTabsComponent.js +2 -2
  75. package/dist/types/components/ChatDropDown/index.d.ts +4 -1
  76. package/dist/types/components/ChatDropDown/index.js +4 -4
  77. package/dist/types/components/CheckboxComponent/index.d.ts +1 -0
  78. package/dist/types/components/CheckboxComponent/index.js +2 -2
  79. package/dist/types/components/ChevronDropDown/index.d.ts +4 -1
  80. package/dist/types/components/ChevronDropDown/index.js +10 -3
  81. package/dist/types/components/ClickableText/index.d.ts +2 -1
  82. package/dist/types/components/ClickableText/index.js +2 -2
  83. package/dist/types/components/ColoredButton/index.d.ts +2 -1
  84. package/dist/types/components/ColoredButton/index.js +2 -2
  85. package/dist/types/components/CompanyDetailsCard/index.d.ts +2 -1
  86. package/dist/types/components/CompanyDetailsCard/index.js +3 -3
  87. package/dist/types/components/CompanyLikePillSelectable/index.d.ts +2 -1
  88. package/dist/types/components/CompanyLikePillSelectable/index.js +2 -2
  89. package/dist/types/components/CompanyLogoPillSelectable/index.d.ts +2 -1
  90. package/dist/types/components/CompanyLogoPillSelectable/index.js +2 -2
  91. package/dist/types/components/CompanyView/CompanyViewHeader/index.d.ts +1 -0
  92. package/dist/types/components/CompanyView/CompanyViewHeader/index.js +3 -3
  93. package/dist/types/components/CompanyView/CompanyViewTabsComponent/index.d.ts +1 -0
  94. package/dist/types/components/CompanyView/CompanyViewTabsComponent/index.js +4 -2
  95. package/dist/types/components/ContinuousRangeComponent/ContinuousRangeComponent.js +2 -2
  96. package/dist/types/components/DropDownButton/index.d.ts +2 -1
  97. package/dist/types/components/DropDownButton/index.js +2 -2
  98. package/dist/types/components/FilterAndSortDropdown/index.d.ts +2 -1
  99. package/dist/types/components/FilterAndSortDropdown/index.js +5 -5
  100. package/dist/types/components/GetSvgIcon/index.js +2 -1
  101. package/dist/types/components/InputField/index.d.ts +3 -1
  102. package/dist/types/components/InputField/index.js +2 -2
  103. package/dist/types/components/InputFieldWithSvg/index.d.ts +2 -1
  104. package/dist/types/components/InputFieldWithSvg/index.js +3 -3
  105. package/dist/types/components/NumberInputField/index.d.ts +2 -1
  106. package/dist/types/components/NumberInputField/index.js +2 -2
  107. package/dist/types/components/PersonView/PersonViewBody/index.d.ts +1 -0
  108. package/dist/types/components/PersonView/PersonViewBody/index.js +2 -2
  109. package/dist/types/components/PersonView/PersonViewExperienceCard/index.d.ts +1 -0
  110. package/dist/types/components/PersonView/PersonViewExperienceCard/index.js +2 -2
  111. package/dist/types/components/PersonView/PersonViewExperienceDetails/index.d.ts +1 -0
  112. package/dist/types/components/PersonView/PersonViewExperienceDetails/index.js +3 -3
  113. package/dist/types/components/PersonView/PersonViewHeader/index.d.ts +1 -0
  114. package/dist/types/components/PersonView/PersonViewHeader/index.js +3 -3
  115. package/dist/types/components/PersonView/PersonViewSummary/index.d.ts +2 -1
  116. package/dist/types/components/PersonView/PersonViewSummary/index.js +4 -4
  117. package/dist/types/components/PersonView/PersonViewTabsComponent/index.d.ts +1 -0
  118. package/dist/types/components/PersonView/PersonViewTabsComponent/index.js +4 -2
  119. package/dist/types/components/PrimaryButton/index.d.ts +2 -1
  120. package/dist/types/components/PrimaryButton/index.js +2 -2
  121. package/dist/types/components/PromptField/index.d.ts +2 -1
  122. package/dist/types/components/PromptField/index.js +2 -2
  123. package/dist/types/components/SearchFilterButton/index.d.ts +2 -1
  124. package/dist/types/components/SearchFilterButton/index.js +2 -2
  125. package/dist/types/components/SearchFilterSideDrawer/SaveSearch/index.d.ts +2 -1
  126. package/dist/types/components/SearchFilterSideDrawer/SaveSearch/index.js +7 -4
  127. package/dist/types/components/Select/index.d.ts +2 -1
  128. package/dist/types/components/Select/index.js +2 -2
  129. package/dist/types/components/SelectDropDown/index.d.ts +2 -1
  130. package/dist/types/components/SelectDropDown/index.js +2 -2
  131. package/dist/types/components/SelectItem/index.d.ts +3 -2
  132. package/dist/types/components/SelectItem/index.js +3 -3
  133. package/dist/types/components/SelectablePill/index.d.ts +2 -1
  134. package/dist/types/components/SelectablePill/index.js +3 -3
  135. package/dist/types/components/Svg/Box.d.ts +6 -0
  136. package/dist/types/components/Svg/Box.js +5 -0
  137. package/dist/types/components/SwitchLarge/index.d.ts +2 -1
  138. package/dist/types/components/SwitchLarge/index.js +4 -2
  139. package/dist/types/components/TableNameCell/index.d.ts +2 -1
  140. package/dist/types/components/TableNameCell/index.js +2 -2
  141. package/dist/types/components/TablePagination/index.d.ts +1 -0
  142. package/dist/types/components/TablePagination/index.js +2 -2
  143. package/dist/types/components/Tabs/index.d.ts +2 -1
  144. package/dist/types/components/Tabs/index.js +2 -2
  145. package/dist/types/components/TertiaryButton/index.d.ts +2 -1
  146. package/dist/types/components/TertiaryButton/index.js +2 -2
  147. package/dist/types/components/ToggleComponent/index.d.ts +1 -0
  148. package/dist/types/components/ToggleComponent/index.js +2 -2
  149. package/dist/types/types.d.ts +1 -1
  150. package/dist/types.d.ts +1 -1
  151. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { useRef, useState, useEffect } from "react";
4
4
  import { CompanyViewTabs } from "../../../utils";
5
5
  import "./style.scss";
6
6
  import IconButton from "../../IconButton";
7
- const CompanyViewTabsComponent = ({ tabs = CompanyViewTabs, activeCompanyViewTab = "Summary", onClick, }) => {
7
+ const CompanyViewTabsComponent = ({ tabs = CompanyViewTabs, activeCompanyViewTab = "Summary", onClick, dataCy, }) => {
8
8
  const tabsContainerRef = useRef(null);
9
9
  const [canScrollLeft, setCanScrollLeft] = useState(false);
10
10
  const [canScrollRight, setCanScrollRight] = useState(true);
@@ -49,6 +49,8 @@ const CompanyViewTabsComponent = ({ tabs = CompanyViewTabs, activeCompanyViewTab
49
49
  };
50
50
  }
51
51
  }, []);
52
- return (_jsxs("div", { className: "companyViewTabsComponent--Container", children: [canScrollLeft && (_jsx(IconButton, { onClick: () => handleScroll("left"), iconType: "chevronLeft", sizeVariant: "xs", className: clsx("scrollButton", "left"), variant: "tertiary" })), _jsx("div", { ref: tabsContainerRef, className: "companyViewTabsComponent--Generic", children: tabs.map((entity, key) => (_jsx("button", { onClick: () => onClick(entity.tabName), className: getCompanyViewTabButtonClasses(entity.tabName, activeCompanyViewTab), children: entity.tabName.toUpperCase() }, key))) }), canScrollRight && (_jsx(IconButton, { onClick: () => handleScroll("right"), iconType: "chevronRight", sizeVariant: "xs", className: clsx("scrollButton", "right"), variant: "tertiary" }))] }));
52
+ return (_jsxs("div", { className: "companyViewTabsComponent--Container", children: [canScrollLeft && (_jsx(IconButton, { onClick: () => handleScroll("left"), iconType: "chevronLeft", sizeVariant: "xs", className: clsx("scrollButton", "left"), variant: "tertiary" })), _jsx("div", { ref: tabsContainerRef, className: "companyViewTabsComponent--Generic", children: tabs.map((entity, key) => (_jsx("button", { onClick: () => onClick(entity.tabName), className: getCompanyViewTabButtonClasses(entity.tabName, activeCompanyViewTab), "data-cy": `${dataCy}-${entity.tabName
53
+ .toLowerCase()
54
+ .replace(/\s+/g, "-")}`, children: entity.tabName.toUpperCase() }, key))) }), canScrollRight && (_jsx(IconButton, { onClick: () => handleScroll("right"), iconType: "chevronRight", sizeVariant: "xs", className: clsx("scrollButton", "right"), variant: "tertiary" }))] }));
53
55
  };
54
56
  export default CompanyViewTabsComponent;
@@ -29,11 +29,11 @@ function ContinuousRangeComponent({ minValue, maxValue, getRange, initialMinValu
29
29
  isSliderMoving.current = true;
30
30
  setRangeData({
31
31
  min: Math.max(0, newValue.min),
32
- max: Math.max(0, newValue.max > displayLimit ? displayLimit + 1 : newValue.max),
32
+ max: Math.min(displayLimit, Math.max(0, newValue.max)),
33
33
  });
34
34
  getRange({
35
35
  minRange: Math.max(0, newValue.min),
36
- maxRange: Math.max(0, newValue.max > displayLimit ? displayLimit + 1 : newValue.max),
36
+ maxRange: Math.min(displayLimit, Math.max(0, newValue.max)),
37
37
  });
38
38
  }
39
39
  };
@@ -11,6 +11,7 @@ interface DropDownButtonProps {
11
11
  iconType?: IconType;
12
12
  showIcon?: boolean;
13
13
  colorStyling?: "gray" | "tertiaryGray";
14
+ dataCy?: string;
14
15
  }
15
- declare const DropDownButton: ({ dropDownText, children, dropdownRight, maxWidth, textEllipses, disabled, iconType, showIcon, colorStyling, }: DropDownButtonProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const DropDownButton: ({ dropDownText, children, dropdownRight, maxWidth, textEllipses, disabled, iconType, showIcon, colorStyling, dataCy, }: DropDownButtonProps) => import("react/jsx-runtime").JSX.Element;
16
17
  export default DropDownButton;
@@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from "react";
3
3
  import "./style.scss";
4
4
  import { GetSvgIcon } from "..";
5
5
  import clsx from "clsx";
6
- const DropDownButton = ({ dropDownText, children, dropdownRight = false, maxWidth = "100px", textEllipses = "ellipsis", disabled = false, iconType = "cheveronDown", showIcon = false, colorStyling = "gray", }) => {
6
+ const DropDownButton = ({ dropDownText, children, dropdownRight = false, maxWidth = "100px", textEllipses = "ellipsis", disabled = false, iconType = "cheveronDown", showIcon = false, colorStyling = "gray", dataCy, }) => {
7
7
  const [listShow, setListShow] = useState(false);
8
8
  const dropContainerRef = useRef(null);
9
9
  const dropdownRef = useRef(null);
@@ -31,6 +31,6 @@ const DropDownButton = ({ dropDownText, children, dropdownRight = false, maxWidt
31
31
  document?.removeEventListener("mousedown", handleClickOutside);
32
32
  };
33
33
  }, []);
34
- return (_jsxs("div", { className: background, children: [_jsxs("button", { type: "button", className: buttonClassName, onClick: toggleListShow, ref: dropContainerRef, disabled: disabled, children: [showIcon && (_jsx("div", { className: "leftIcon", children: _jsx(GetSvgIcon, { iconType: iconType, iconSize: "16" }) })), _jsx("span", { style: { textOverflow: textEllipses, maxWidth: maxWidth }, children: dropDownText }), _jsx("div", { className: "rightIcon", children: _jsx(GetSvgIcon, { iconType: listShow ? "cheveronUp" : "cheveronDown", iconSize: "16" }) })] }), listShow && (_jsx("div", { className: "dropDownButton-DropDown", onClick: toggleListShow, ref: dropdownRef, children: children }))] }));
34
+ return (_jsxs("div", { className: background, "data-cy": dataCy, children: [_jsxs("button", { type: "button", className: buttonClassName, onClick: toggleListShow, ref: dropContainerRef, disabled: disabled, children: [showIcon && (_jsx("div", { className: "leftIcon", children: _jsx(GetSvgIcon, { iconType: iconType, iconSize: "16" }) })), _jsx("span", { style: { textOverflow: textEllipses, maxWidth: maxWidth }, children: dropDownText }), _jsx("div", { className: "rightIcon", children: _jsx(GetSvgIcon, { iconType: listShow ? "cheveronUp" : "cheveronDown", iconSize: "16" }) })] }), listShow && (_jsx("div", { className: "dropDownButton-DropDown", onClick: toggleListShow, ref: dropdownRef, children: children }))] }));
35
35
  };
36
36
  export default DropDownButton;
@@ -9,6 +9,7 @@ interface FilterAndSortDropdownProps {
9
9
  onLabelClick: (value: string) => void;
10
10
  showHeading?: boolean;
11
11
  showComingSoon?: boolean;
12
+ dataCy?: string;
12
13
  }
13
- declare const FilterAndSortDropdown: ({ iconType, usageTypeText, filterDropdownItemList, isolateFilterDropdowns, disabledButtons, onLabelClick, showHeading, showComingSoon, }: FilterAndSortDropdownProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const FilterAndSortDropdown: ({ iconType, usageTypeText, filterDropdownItemList, isolateFilterDropdowns, disabledButtons, onLabelClick, showHeading, showComingSoon, dataCy, }: FilterAndSortDropdownProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export default FilterAndSortDropdown;
@@ -3,26 +3,26 @@ import { useState } from "react";
3
3
  import { TextWithSvgButton, Tooltip } from "..";
4
4
  import "./style.scss";
5
5
  import clsx from "clsx";
6
- const LabelButton = ({ onClick, value, isIsolated, isDisabled, showComingSoon, }) => {
6
+ const LabelButton = ({ onClick, value, isIsolated, isDisabled, showComingSoon, dataCy, }) => {
7
7
  return (_jsx("li", { children: isDisabled && showComingSoon ? (_jsx(Tooltip, { content: "Coming Soon", children: _jsx("button", { className: clsx({
8
8
  "filterDropDownButton--Generic": true,
9
9
  "filterDropDownButton--Isolated": isIsolated,
10
10
  }), onClick: onClick, disabled: isDisabled, children: value }) })) : (_jsx("button", { className: clsx({
11
11
  "filterDropDownButton--Generic": true,
12
12
  "filterDropDownButton--Isolated": isIsolated,
13
- }), onClick: onClick, disabled: isDisabled, children: value })) }));
13
+ }), onClick: onClick, disabled: isDisabled, "data-cy": `${dataCy}-${value.toLowerCase().replace(/\s+/g, "-")}`, children: value })) }));
14
14
  };
15
- const FilterAndSortDropdown = ({ iconType, usageTypeText, filterDropdownItemList, isolateFilterDropdowns = [], disabledButtons = [], onLabelClick, showHeading = true, showComingSoon = true, }) => {
15
+ const FilterAndSortDropdown = ({ iconType, usageTypeText, filterDropdownItemList, isolateFilterDropdowns = [], disabledButtons = [], onLabelClick, showHeading = true, showComingSoon = true, dataCy, }) => {
16
16
  const [listShow, setListShow] = useState(false);
17
17
  const toggleListShow = () => {
18
18
  setListShow((prevState) => !prevState);
19
19
  };
20
- return (_jsx("div", { className: "filterButtondropdown--container", children: _jsxs("span", { className: "filterButtondropdown--dropdown", children: [_jsx("span", { className: "filterAndSortDropdown-Button", children: _jsx(TextWithSvgButton, { text: usageTypeText, colorVariant: "gray", onClick: toggleListShow, sizeVariant: "sm", iconType: iconType }) }), _jsxs("ul", { className: `filterButtondropdown--dropdown-list-${listShow ? "show" : "hide"}`, children: [showHeading && (_jsx("span", { className: "filter-span-dropdown", children: usageTypeText })), filterDropdownItemList.map((item, index) => {
20
+ return (_jsx("div", { className: "filterButtondropdown--container", children: _jsxs("span", { className: "filterButtondropdown--dropdown", children: [_jsx("span", { className: "filterAndSortDropdown-Button", children: _jsx(TextWithSvgButton, { text: usageTypeText, colorVariant: "gray", onClick: toggleListShow, sizeVariant: "sm", iconType: iconType, "data-cy": dataCy }) }), _jsxs("ul", { className: `filterButtondropdown--dropdown-list-${listShow ? "show" : "hide"}`, children: [showHeading && (_jsx("span", { className: "filter-span-dropdown", children: usageTypeText })), filterDropdownItemList.map((item, index) => {
21
21
  const onClick = () => {
22
22
  setListShow(false);
23
23
  onLabelClick(item);
24
24
  };
25
- return (_jsx(LabelButton, { onClick: onClick, value: item, isIsolated: isolateFilterDropdowns.includes(item), isDisabled: disabledButtons.includes(item), showComingSoon: showComingSoon }, index));
25
+ return (_jsx(LabelButton, { onClick: onClick, value: item, isIsolated: isolateFilterDropdowns.includes(item), isDisabled: disabledButtons.includes(item), showComingSoon: showComingSoon, dataCy: dataCy }, index));
26
26
  })] })] }) }));
27
27
  };
28
28
  export default FilterAndSortDropdown;
@@ -125,7 +125,8 @@ import CheckCircle from "../Svg/CheckCircle";
125
125
  import CompanyClock from "../Svg/CompanyClock";
126
126
  import CompanyOwnership from "../Svg/CompanyOwnership";
127
127
  import CutBriefcase from "../Svg/CutBriefcase";
128
+ import Box from "../Svg/Box";
128
129
  const GetSvgIcon = ({ iconType = "cross", iconSize = "24" }) => {
129
- return iconType === "cross" ? (_jsx(Cross, { width: iconSize, height: iconSize })) : iconType === "plus" ? (_jsx(Plus, { width: iconSize, height: iconSize })) : iconType === "thumb" ? (_jsx(Thumb, { width: iconSize, height: iconSize })) : iconType === "clock" ? (_jsx(Clock, { width: iconSize, height: iconSize })) : iconType === "tick" ? (_jsx(Tick, { width: iconSize, height: iconSize })) : iconType === "linkedinLogo" ? (_jsx(LinkedinLogo, { width: iconSize, height: iconSize })) : iconType === "searchArrow" ? (_jsx(SearchArrow, { width: iconSize, height: iconSize })) : iconType === "excalamationCircle" ? (_jsx(ExclamationCircle, { width: iconSize, height: iconSize })) : iconType === "edit" ? (_jsx(Edit, { width: iconSize, height: iconSize })) : iconType === "delete" ? (_jsx(Delete, { width: iconSize, height: iconSize })) : iconType === "chatOneBallon" ? (_jsx(ChatOneballon, { width: iconSize, height: iconSize })) : iconType === "qluLogo" ? (_jsx(QluLogo, { width: iconSize, height: iconSize })) : iconType === "gear" ? (_jsx(Gear, { width: iconSize, height: iconSize })) : iconType === "home" ? (_jsx(Home, { width: iconSize, height: iconSize })) : iconType === "paperPlaneUpRight" ? (_jsx(PaperPlaneUpRight, { width: iconSize, height: iconSize })) : iconType === "search" ? (_jsx(Search, { width: iconSize, height: iconSize })) : iconType === "chat" ? (_jsx(Chat, { width: iconSize, height: iconSize })) : iconType === "briefcase" ? (_jsx(Briefcase, { width: iconSize, height: iconSize })) : iconType === "barGraph" ? (_jsx(BarGraph, { width: iconSize, height: iconSize })) : iconType === "book" ? (_jsx(Book, { width: iconSize, height: iconSize })) : iconType === "company" ? (_jsx(Company, { width: iconSize, height: iconSize })) : iconType === "dollarBriefcase" ? (_jsx(DollarBriefcase, { width: iconSize, height: iconSize })) : iconType === "industry" ? (_jsx(Industry, { width: iconSize, height: iconSize })) : iconType === "jobTitle" ? (_jsx(JobTitle, { width: iconSize, height: iconSize })) : iconType === "location" ? (_jsx(Location, { width: iconSize, height: iconSize })) : iconType === "strategyPath" ? (_jsx(StrategyPath, { width: iconSize, height: iconSize })) : iconType === "tools" ? (_jsx(Tools, { width: iconSize, height: iconSize })) : iconType === "management" ? (_jsx(Management, { width: iconSize, height: iconSize })) : iconType === "employees" ? (_jsx(Employees, { width: iconSize, height: iconSize })) : iconType === "cheveronDown" ? (_jsx(CheveronDown, { width: iconSize, height: iconSize })) : iconType === "cheveronUp" ? (_jsx(CheveronUp, { width: iconSize, height: iconSize })) : iconType === "arrowLeft" ? (_jsx(ArrowLeft, { width: iconSize, height: iconSize })) : iconType === "arrowRight" ? (_jsx(ArrowRight, { width: iconSize, height: iconSize })) : iconType === "passTick" ? (_jsx(PassTick, { width: iconSize, height: iconSize })) : iconType === "doNotInclude" ? (_jsx(DoNotInclude, { width: iconSize, height: iconSize })) : iconType === "tickCircle" ? (_jsx(TickCircle, { width: iconSize, height: iconSize })) : iconType === "phone" ? (_jsx(Phone, { width: iconSize, height: iconSize })) : iconType === "email" ? (_jsx(Email, { width: iconSize, height: iconSize })) : iconType === "eye" ? (_jsx(Eye, { width: iconSize, height: iconSize })) : iconType === "eyeOff" ? (_jsx(EyeOff, { width: iconSize, height: iconSize })) : iconType === "congratulations" ? (_jsx(Congratulations, {})) : iconType === "heart" ? (_jsx(Heart, { width: iconSize, height: iconSize })) : iconType === "questionMark" ? (_jsx(QuestionMark, { width: iconSize, height: iconSize })) : iconType === "kebab" ? (_jsx(Kebab, { width: iconSize, height: iconSize })) : iconType === "calendar" ? (_jsx(Calendar, { width: iconSize, height: iconSize })) : iconType === "officeBuilding" ? (_jsx(OfficeBuilding, { width: iconSize, height: iconSize })) : iconType === "notes" ? (_jsx(Notes, { width: iconSize, height: iconSize })) : iconType === "star" ? (_jsx(Star, { width: iconSize, height: iconSize })) : iconType === "filterFunel" ? (_jsx(FilterFunel, { width: iconSize, height: iconSize })) : iconType === "sortUpDownArrows" ? (_jsx(SortUpDownArrows, { width: iconSize, height: iconSize })) : iconType === "download" ? (_jsx(Download, { width: iconSize, height: iconSize })) : iconType === "sparkles" ? (_jsx(Sparkles, { width: iconSize, height: iconSize })) : iconType === "writeNotes" ? (_jsx(WriteNotes, { width: iconSize, height: iconSize })) : iconType === "undo" ? (_jsx(Undo, { width: iconSize, height: iconSize })) : iconType === "emailSend" ? (_jsx(EmailSend, { width: iconSize, height: iconSize })) : iconType === "copy" ? (_jsx(Copy, { width: iconSize, height: iconSize })) : iconType === "openLink" ? (_jsx(OpenLink, { width: iconSize, height: iconSize })) : iconType === "internalUser" ? (_jsx(InternalUser, { width: iconSize, height: iconSize })) : iconType === "link" ? (_jsx(Link, { width: iconSize, height: iconSize })) : iconType === "bell" ? (_jsx(Bell, { width: iconSize, height: iconSize })) : iconType === "graduationHat" ? (_jsx(GraduationHat, { width: iconSize, height: iconSize })) : iconType === "user" ? (_jsx(User, { width: iconSize, height: iconSize })) : iconType === "password" ? (_jsx(Password, { width: iconSize, height: iconSize })) : iconType === "emailDisconnected" ? (_jsx(EmailDisconnected, { width: iconSize, height: iconSize })) : iconType === "bolt" ? (_jsx(Bolt, { width: iconSize, height: iconSize })) : iconType === "images" ? (_jsx(Images, { width: iconSize, height: iconSize })) : iconType === "information" ? (_jsx(Information, { width: iconSize, height: iconSize })) : iconType === "inviteUser" ? (_jsx(InviteUser, { width: iconSize, height: iconSize })) : iconType === "list" ? (_jsx(List, { width: iconSize, height: iconSize })) : iconType === "table" ? (_jsx(Table, { width: iconSize, height: iconSize })) : iconType === "arrowDown" ? (_jsx(ArrowDown, { width: iconSize, height: iconSize })) : iconType === "arrowUp" ? (_jsx(ArrowUp, { width: iconSize, height: iconSize })) : iconType === "chevronLeft" ? (_jsx(ChevronLeft, { width: iconSize, height: iconSize })) : iconType === "chevronRight" ? (_jsx(ChevronRight, { width: iconSize, height: iconSize })) : iconType === "radio" ? (_jsx(Radio, { width: iconSize, height: iconSize })) : iconType === "like" ? (_jsx(Like, { width: iconSize, height: iconSize })) : iconType === "unlike" ? (_jsx(Unlike, { width: iconSize, height: iconSize })) : iconType === "refresh" ? (_jsx(Refresh, { width: iconSize, height: iconSize })) : iconType === "emailRound" ? (_jsx(EmailRound, { width: iconSize, height: iconSize })) : iconType === "abstractGeometric" ? (_jsx(AbstractGeometric, { width: iconSize, height: iconSize })) : iconType === "seo" ? (_jsx(Seo, { width: iconSize, height: iconSize })) : iconType === "abstractCircle" ? (_jsx(AbstractCircle, { width: iconSize, height: iconSize })) : iconType === "checkList" ? (_jsx(CheckList, { width: iconSize, height: iconSize })) : iconType === "penEdit" ? (_jsx(PenEdit, { width: iconSize, height: iconSize })) : iconType === "globeSearch" ? (_jsx(GlobeSearch, { width: iconSize, height: iconSize })) : iconType === "groupIcon" ? (_jsx(GroupIcon, { width: iconSize, height: iconSize })) : iconType === "jD" ? (_jsx(JD, {})) : iconType === "hiringCompany" ? (_jsx(HiringCompany, {})) : iconType === "sampleProfiles" ? (_jsx(SampleProfiles, {})) : iconType === "matchingProfile" ? (_jsx(MatchingProfile, {})) : iconType === "clipBoard" ? (_jsx(ClipBoard, { width: iconSize, height: iconSize })) : iconType === "sortascending" ? (_jsx(SortAscending, { width: iconSize, height: iconSize })) : iconType === "sortdescending" ? (_jsx(SortDescending, { width: iconSize, height: iconSize })) : iconType === "hourglass" ? (_jsx(HourGlass, { width: iconSize, height: iconSize })) : iconType === "exclamation" ? (_jsx(Exclamation, { width: iconSize, height: iconSize })) : iconType === "refresh-ccw" ? (_jsx(RefreshCounterClockWise, { width: iconSize, height: iconSize })) : iconType === "adjustment" ? (_jsx(Adjustment, { width: iconSize, height: iconSize })) : iconType === "outlook" ? (_jsx(Outlook, { width: iconSize, height: iconSize })) : iconType === "menu-alt" ? (_jsx(MenuAlt, { width: iconSize, height: iconSize })) : iconType === "simpler-tick" ? (_jsx(SimplerTick, { width: iconSize, height: iconSize })) : iconType === "menu-extended" ? (_jsx(MenuExtended, { width: iconSize, height: iconSize })) : iconType === "umberalla" ? (_jsx(Umberalla, { width: iconSize, height: iconSize })) : iconType === "sidebar" ? (_jsx(Sidebar, { width: iconSize, height: iconSize })) : iconType === "paperClip" ? (_jsx(PaperClip, { width: iconSize, height: iconSize })) : iconType === "document" ? (_jsx(Document, { width: iconSize, height: iconSize })) : iconType === "file" ? (_jsx(File, { width: iconSize, height: iconSize })) : iconType === "google" ? (_jsx(Google, { width: iconSize, height: iconSize })) : iconType === "pdf" ? (_jsx(PDF, { width: iconSize, height: iconSize })) : iconType === "enter" ? (_jsx(Enter, { width: iconSize, height: iconSize })) : iconType === "key" ? (_jsx(Key, { width: iconSize, height: iconSize })) : iconType === "cornerDown" ? (_jsx(CornerDown, { width: iconSize, height: iconSize })) : iconType === "notAllowed" ? (_jsx(NotAllowed, { width: iconSize, height: iconSize })) : iconType === "university" ? (_jsx(University, { width: iconSize, height: iconSize })) : iconType === "pause" ? (_jsx(Pause, { width: iconSize, height: iconSize })) : iconType === "resume" ? (_jsx(Resume, { width: iconSize, height: iconSize })) : iconType === "ascendingOrder" ? (_jsx(AscendingOrder, { width: iconSize, height: iconSize })) : iconType === "descendingOrder" ? (_jsx(DescendingOrder, { width: iconSize, height: iconSize })) : iconType === "userClock" ? (_jsx(UserClock, { width: iconSize, height: iconSize })) : iconType === "tickVerification" ? (_jsx(TickVerification, { width: iconSize, height: iconSize })) : iconType === "copied" ? (_jsx(Copied, { width: iconSize, height: iconSize })) : iconType === "archive" ? (_jsx(Archive, { width: iconSize, height: iconSize })) : iconType === "additionalInformation" ? (_jsx(AdditionalInformation, { width: iconSize, height: iconSize })) : iconType === "checkCircle" ? (_jsx(CheckCircle, { width: iconSize, height: iconSize })) : iconType === "companyClock" ? (_jsx(CompanyClock, { width: iconSize, height: iconSize })) : iconType === "companyOwnership" ? (_jsx(CompanyOwnership, { width: iconSize, height: iconSize })) : iconType === "cutBriefcase" ? (_jsx(CutBriefcase, { width: iconSize, height: iconSize })) : null;
130
+ return iconType === "cross" ? (_jsx(Cross, { width: iconSize, height: iconSize })) : iconType === "plus" ? (_jsx(Plus, { width: iconSize, height: iconSize })) : iconType === "thumb" ? (_jsx(Thumb, { width: iconSize, height: iconSize })) : iconType === "clock" ? (_jsx(Clock, { width: iconSize, height: iconSize })) : iconType === "tick" ? (_jsx(Tick, { width: iconSize, height: iconSize })) : iconType === "linkedinLogo" ? (_jsx(LinkedinLogo, { width: iconSize, height: iconSize })) : iconType === "searchArrow" ? (_jsx(SearchArrow, { width: iconSize, height: iconSize })) : iconType === "excalamationCircle" ? (_jsx(ExclamationCircle, { width: iconSize, height: iconSize })) : iconType === "edit" ? (_jsx(Edit, { width: iconSize, height: iconSize })) : iconType === "delete" ? (_jsx(Delete, { width: iconSize, height: iconSize })) : iconType === "chatOneBallon" ? (_jsx(ChatOneballon, { width: iconSize, height: iconSize })) : iconType === "qluLogo" ? (_jsx(QluLogo, { width: iconSize, height: iconSize })) : iconType === "gear" ? (_jsx(Gear, { width: iconSize, height: iconSize })) : iconType === "home" ? (_jsx(Home, { width: iconSize, height: iconSize })) : iconType === "paperPlaneUpRight" ? (_jsx(PaperPlaneUpRight, { width: iconSize, height: iconSize })) : iconType === "search" ? (_jsx(Search, { width: iconSize, height: iconSize })) : iconType === "chat" ? (_jsx(Chat, { width: iconSize, height: iconSize })) : iconType === "briefcase" ? (_jsx(Briefcase, { width: iconSize, height: iconSize })) : iconType === "barGraph" ? (_jsx(BarGraph, { width: iconSize, height: iconSize })) : iconType === "book" ? (_jsx(Book, { width: iconSize, height: iconSize })) : iconType === "company" ? (_jsx(Company, { width: iconSize, height: iconSize })) : iconType === "dollarBriefcase" ? (_jsx(DollarBriefcase, { width: iconSize, height: iconSize })) : iconType === "industry" ? (_jsx(Industry, { width: iconSize, height: iconSize })) : iconType === "jobTitle" ? (_jsx(JobTitle, { width: iconSize, height: iconSize })) : iconType === "location" ? (_jsx(Location, { width: iconSize, height: iconSize })) : iconType === "strategyPath" ? (_jsx(StrategyPath, { width: iconSize, height: iconSize })) : iconType === "tools" ? (_jsx(Tools, { width: iconSize, height: iconSize })) : iconType === "management" ? (_jsx(Management, { width: iconSize, height: iconSize })) : iconType === "employees" ? (_jsx(Employees, { width: iconSize, height: iconSize })) : iconType === "cheveronDown" ? (_jsx(CheveronDown, { width: iconSize, height: iconSize })) : iconType === "cheveronUp" ? (_jsx(CheveronUp, { width: iconSize, height: iconSize })) : iconType === "arrowLeft" ? (_jsx(ArrowLeft, { width: iconSize, height: iconSize })) : iconType === "arrowRight" ? (_jsx(ArrowRight, { width: iconSize, height: iconSize })) : iconType === "passTick" ? (_jsx(PassTick, { width: iconSize, height: iconSize })) : iconType === "doNotInclude" ? (_jsx(DoNotInclude, { width: iconSize, height: iconSize })) : iconType === "tickCircle" ? (_jsx(TickCircle, { width: iconSize, height: iconSize })) : iconType === "phone" ? (_jsx(Phone, { width: iconSize, height: iconSize })) : iconType === "email" ? (_jsx(Email, { width: iconSize, height: iconSize })) : iconType === "eye" ? (_jsx(Eye, { width: iconSize, height: iconSize })) : iconType === "eyeOff" ? (_jsx(EyeOff, { width: iconSize, height: iconSize })) : iconType === "congratulations" ? (_jsx(Congratulations, {})) : iconType === "heart" ? (_jsx(Heart, { width: iconSize, height: iconSize })) : iconType === "questionMark" ? (_jsx(QuestionMark, { width: iconSize, height: iconSize })) : iconType === "kebab" ? (_jsx(Kebab, { width: iconSize, height: iconSize })) : iconType === "calendar" ? (_jsx(Calendar, { width: iconSize, height: iconSize })) : iconType === "officeBuilding" ? (_jsx(OfficeBuilding, { width: iconSize, height: iconSize })) : iconType === "notes" ? (_jsx(Notes, { width: iconSize, height: iconSize })) : iconType === "star" ? (_jsx(Star, { width: iconSize, height: iconSize })) : iconType === "filterFunel" ? (_jsx(FilterFunel, { width: iconSize, height: iconSize })) : iconType === "sortUpDownArrows" ? (_jsx(SortUpDownArrows, { width: iconSize, height: iconSize })) : iconType === "download" ? (_jsx(Download, { width: iconSize, height: iconSize })) : iconType === "sparkles" ? (_jsx(Sparkles, { width: iconSize, height: iconSize })) : iconType === "writeNotes" ? (_jsx(WriteNotes, { width: iconSize, height: iconSize })) : iconType === "undo" ? (_jsx(Undo, { width: iconSize, height: iconSize })) : iconType === "emailSend" ? (_jsx(EmailSend, { width: iconSize, height: iconSize })) : iconType === "copy" ? (_jsx(Copy, { width: iconSize, height: iconSize })) : iconType === "openLink" ? (_jsx(OpenLink, { width: iconSize, height: iconSize })) : iconType === "internalUser" ? (_jsx(InternalUser, { width: iconSize, height: iconSize })) : iconType === "link" ? (_jsx(Link, { width: iconSize, height: iconSize })) : iconType === "bell" ? (_jsx(Bell, { width: iconSize, height: iconSize })) : iconType === "graduationHat" ? (_jsx(GraduationHat, { width: iconSize, height: iconSize })) : iconType === "user" ? (_jsx(User, { width: iconSize, height: iconSize })) : iconType === "password" ? (_jsx(Password, { width: iconSize, height: iconSize })) : iconType === "emailDisconnected" ? (_jsx(EmailDisconnected, { width: iconSize, height: iconSize })) : iconType === "bolt" ? (_jsx(Bolt, { width: iconSize, height: iconSize })) : iconType === "images" ? (_jsx(Images, { width: iconSize, height: iconSize })) : iconType === "information" ? (_jsx(Information, { width: iconSize, height: iconSize })) : iconType === "inviteUser" ? (_jsx(InviteUser, { width: iconSize, height: iconSize })) : iconType === "list" ? (_jsx(List, { width: iconSize, height: iconSize })) : iconType === "table" ? (_jsx(Table, { width: iconSize, height: iconSize })) : iconType === "arrowDown" ? (_jsx(ArrowDown, { width: iconSize, height: iconSize })) : iconType === "arrowUp" ? (_jsx(ArrowUp, { width: iconSize, height: iconSize })) : iconType === "chevronLeft" ? (_jsx(ChevronLeft, { width: iconSize, height: iconSize })) : iconType === "chevronRight" ? (_jsx(ChevronRight, { width: iconSize, height: iconSize })) : iconType === "radio" ? (_jsx(Radio, { width: iconSize, height: iconSize })) : iconType === "like" ? (_jsx(Like, { width: iconSize, height: iconSize })) : iconType === "unlike" ? (_jsx(Unlike, { width: iconSize, height: iconSize })) : iconType === "refresh" ? (_jsx(Refresh, { width: iconSize, height: iconSize })) : iconType === "emailRound" ? (_jsx(EmailRound, { width: iconSize, height: iconSize })) : iconType === "abstractGeometric" ? (_jsx(AbstractGeometric, { width: iconSize, height: iconSize })) : iconType === "seo" ? (_jsx(Seo, { width: iconSize, height: iconSize })) : iconType === "abstractCircle" ? (_jsx(AbstractCircle, { width: iconSize, height: iconSize })) : iconType === "checkList" ? (_jsx(CheckList, { width: iconSize, height: iconSize })) : iconType === "penEdit" ? (_jsx(PenEdit, { width: iconSize, height: iconSize })) : iconType === "globeSearch" ? (_jsx(GlobeSearch, { width: iconSize, height: iconSize })) : iconType === "groupIcon" ? (_jsx(GroupIcon, { width: iconSize, height: iconSize })) : iconType === "jD" ? (_jsx(JD, {})) : iconType === "hiringCompany" ? (_jsx(HiringCompany, {})) : iconType === "sampleProfiles" ? (_jsx(SampleProfiles, {})) : iconType === "matchingProfile" ? (_jsx(MatchingProfile, {})) : iconType === "clipBoard" ? (_jsx(ClipBoard, { width: iconSize, height: iconSize })) : iconType === "sortascending" ? (_jsx(SortAscending, { width: iconSize, height: iconSize })) : iconType === "sortdescending" ? (_jsx(SortDescending, { width: iconSize, height: iconSize })) : iconType === "hourglass" ? (_jsx(HourGlass, { width: iconSize, height: iconSize })) : iconType === "exclamation" ? (_jsx(Exclamation, { width: iconSize, height: iconSize })) : iconType === "refresh-ccw" ? (_jsx(RefreshCounterClockWise, { width: iconSize, height: iconSize })) : iconType === "adjustment" ? (_jsx(Adjustment, { width: iconSize, height: iconSize })) : iconType === "outlook" ? (_jsx(Outlook, { width: iconSize, height: iconSize })) : iconType === "menu-alt" ? (_jsx(MenuAlt, { width: iconSize, height: iconSize })) : iconType === "simpler-tick" ? (_jsx(SimplerTick, { width: iconSize, height: iconSize })) : iconType === "menu-extended" ? (_jsx(MenuExtended, { width: iconSize, height: iconSize })) : iconType === "umberalla" ? (_jsx(Umberalla, { width: iconSize, height: iconSize })) : iconType === "sidebar" ? (_jsx(Sidebar, { width: iconSize, height: iconSize })) : iconType === "paperClip" ? (_jsx(PaperClip, { width: iconSize, height: iconSize })) : iconType === "document" ? (_jsx(Document, { width: iconSize, height: iconSize })) : iconType === "file" ? (_jsx(File, { width: iconSize, height: iconSize })) : iconType === "google" ? (_jsx(Google, { width: iconSize, height: iconSize })) : iconType === "pdf" ? (_jsx(PDF, { width: iconSize, height: iconSize })) : iconType === "enter" ? (_jsx(Enter, { width: iconSize, height: iconSize })) : iconType === "key" ? (_jsx(Key, { width: iconSize, height: iconSize })) : iconType === "cornerDown" ? (_jsx(CornerDown, { width: iconSize, height: iconSize })) : iconType === "notAllowed" ? (_jsx(NotAllowed, { width: iconSize, height: iconSize })) : iconType === "university" ? (_jsx(University, { width: iconSize, height: iconSize })) : iconType === "pause" ? (_jsx(Pause, { width: iconSize, height: iconSize })) : iconType === "resume" ? (_jsx(Resume, { width: iconSize, height: iconSize })) : iconType === "ascendingOrder" ? (_jsx(AscendingOrder, { width: iconSize, height: iconSize })) : iconType === "descendingOrder" ? (_jsx(DescendingOrder, { width: iconSize, height: iconSize })) : iconType === "userClock" ? (_jsx(UserClock, { width: iconSize, height: iconSize })) : iconType === "tickVerification" ? (_jsx(TickVerification, { width: iconSize, height: iconSize })) : iconType === "copied" ? (_jsx(Copied, { width: iconSize, height: iconSize })) : iconType === "archive" ? (_jsx(Archive, { width: iconSize, height: iconSize })) : iconType === "additionalInformation" ? (_jsx(AdditionalInformation, { width: iconSize, height: iconSize })) : iconType === "checkCircle" ? (_jsx(CheckCircle, { width: iconSize, height: iconSize })) : iconType === "companyClock" ? (_jsx(CompanyClock, { width: iconSize, height: iconSize })) : iconType === "companyOwnership" ? (_jsx(CompanyOwnership, { width: iconSize, height: iconSize })) : iconType === "cutBriefcase" ? (_jsx(CutBriefcase, { width: iconSize, height: iconSize })) : iconType === "box" ? (_jsx(Box, { width: iconSize, height: iconSize })) : null;
130
131
  };
131
132
  export default GetSvgIcon;
@@ -14,6 +14,8 @@ interface InputFieldProps {
14
14
  register?: any;
15
15
  name?: string;
16
16
  autoComplete?: string;
17
+ dataCyInput?: string;
18
+ dataCyToggle?: string;
17
19
  }
18
- declare const InputField: ({ id, value, type, placeholder, style, disabled, errorState, props, onChangeHandler, errorMessage, name, register, autoComplete, }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
20
+ declare const InputField: ({ id, value, type, placeholder, style, disabled, errorState, props, onChangeHandler, errorMessage, name, register, autoComplete, dataCyInput, dataCyToggle, }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
19
21
  export default InputField;
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import "./style.scss";
4
4
  import GetSvgIcon from "../GetSvgIcon";
5
- const InputField = ({ id, value, type = "text", placeholder = "", style = {}, disabled = false, errorState = false, props = {}, onChangeHandler, errorMessage = "Something went wrong!", name, register = (_prop) => ({}), autoComplete = "on", }) => {
5
+ const InputField = ({ id, value, type = "text", placeholder = "", style = {}, disabled = false, errorState = false, props = {}, onChangeHandler, errorMessage = "Something went wrong!", name, register = (_prop) => ({}), autoComplete = "on", dataCyInput, dataCyToggle, }) => {
6
6
  const [showPassword, setShowPassword] = useState(false);
7
7
  const togglePasswordVisibility = () => {
8
8
  setShowPassword((prevShowPassword) => !prevShowPassword);
9
9
  };
10
- return (_jsxs("div", { className: "parent-inputfiled", children: [_jsxs("div", { className: `inputFieldGeneric ${errorState && "errorInputField"}`, children: [_jsx("input", { id: id, type: showPassword ? "text" : type, disabled: disabled, style: style, placeholder: placeholder, value: value, onChange: onChangeHandler, name: name, ...register(name), ...props, autoComplete: autoComplete }), type === "password" && (_jsx("span", { className: "passwordToggle", onClick: togglePasswordVisibility, children: showPassword ? (_jsx(GetSvgIcon, { iconType: "eye", iconSize: "12" })) : (_jsx(GetSvgIcon, { iconType: "eyeOff", iconSize: "12" })) }))] }), errorState && _jsx("span", { children: errorMessage })] }));
10
+ return (_jsxs("div", { className: "parent-inputfiled", children: [_jsxs("div", { className: `inputFieldGeneric ${errorState && "errorInputField"}`, children: [_jsx("input", { id: id, type: showPassword ? "text" : type, disabled: disabled, style: style, placeholder: placeholder, value: value, onChange: onChangeHandler, name: name, ...register(name), ...props, autoComplete: autoComplete, "data-cy": dataCyInput }), type === "password" && (_jsx("span", { className: "passwordToggle", onClick: togglePasswordVisibility, "data-cy": dataCyToggle, children: showPassword ? (_jsx(GetSvgIcon, { iconType: "eye", iconSize: "12" })) : (_jsx(GetSvgIcon, { iconType: "eyeOff", iconSize: "12" })) }))] }), errorState && _jsx("span", { children: errorMessage })] }));
11
11
  };
12
12
  export default InputField;
@@ -8,6 +8,7 @@ interface InputFieldWithSvgProps {
8
8
  onChange: (value: string) => void;
9
9
  handleOnFocus?: () => void;
10
10
  onEnter?: () => void;
11
+ dataCy?: string;
11
12
  }
12
- declare const InputFieldWithSvg: ({ placeholder, iconType, iconSize, showIconOnLeft, onChange, handleOnFocus, onEnter, }: InputFieldWithSvgProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const InputFieldWithSvg: ({ placeholder, iconType, iconSize, showIconOnLeft, onChange, handleOnFocus, onEnter, dataCy, }: InputFieldWithSvgProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export default InputFieldWithSvg;
@@ -3,7 +3,7 @@ import clsx from "clsx";
3
3
  import "./style.scss";
4
4
  import GetSvgIcon from "../GetSvgIcon";
5
5
  import { useState } from "react";
6
- const InputFieldWithSvg = ({ placeholder = "", iconType = "search", iconSize = "18", showIconOnLeft = false, onChange = () => { }, handleOnFocus = () => { }, onEnter = () => { }, }) => {
6
+ const InputFieldWithSvg = ({ placeholder = "", iconType = "search", iconSize = "18", showIconOnLeft = false, onChange = () => { }, handleOnFocus = () => { }, onEnter = () => { }, dataCy, }) => {
7
7
  const [fieldFocused, setFieldFocused] = useState(false);
8
8
  const className = clsx({
9
9
  "inputFieldWithSvg--Container": true,
@@ -11,13 +11,13 @@ const InputFieldWithSvg = ({ placeholder = "", iconType = "search", iconSize = "
11
11
  "inputFieldWithSvg--RowReverse": showIconOnLeft,
12
12
  });
13
13
  const handleKeyPress = (event) => {
14
- if (event.key === 'Enter') {
14
+ if (event.key === "Enter") {
15
15
  onEnter();
16
16
  }
17
17
  };
18
18
  return (_jsxs("div", { className: className, children: [_jsx("input", { placeholder: placeholder, onFocus: () => {
19
19
  setFieldFocused(true);
20
20
  handleOnFocus();
21
- }, onBlur: () => setFieldFocused(false), onChange: (e) => onChange(e.target.value), onKeyDown: handleKeyPress }), _jsx("button", { className: "inputFieldWithSvg--SvgButton", children: _jsx(GetSvgIcon, { iconType: iconType, iconSize: iconSize }) })] }));
21
+ }, onBlur: () => setFieldFocused(false), onChange: (e) => onChange(e.target.value), onKeyDown: handleKeyPress, "data-cy": `${dataCy}-input` }), _jsx("button", { className: "inputFieldWithSvg--SvgButton", "data-cy": `${dataCy}-submit`, children: _jsx(GetSvgIcon, { iconType: iconType, iconSize: iconSize }) })] }));
22
22
  };
23
23
  export default InputFieldWithSvg;
@@ -10,6 +10,7 @@ interface NumberInputFieldProps {
10
10
  handleChange?: (value: number) => void;
11
11
  onFocus?: () => void;
12
12
  onBlur?: () => void;
13
+ dataCy?: string;
13
14
  }
14
- declare const NumberInputField: ({ onFocus, onBlur, initialNumber, unit, props, placeholder, isDisabled, isIncrementDisabled, isDecrementDisabled, handleChange, }: NumberInputFieldProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const NumberInputField: ({ onFocus, onBlur, initialNumber, unit, props, placeholder, isDisabled, isIncrementDisabled, isDecrementDisabled, handleChange, dataCy, }: NumberInputFieldProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default NumberInputField;
@@ -3,7 +3,7 @@ import clsx from "clsx";
3
3
  import { useRef } from "react";
4
4
  import "./style.scss";
5
5
  import GetSvgIcon from "../GetSvgIcon";
6
- const NumberInputField = ({ onFocus, onBlur, initialNumber = "0", unit, props = {}, placeholder = "123", isDisabled = false, isIncrementDisabled = false, isDecrementDisabled = false, handleChange = () => { }, }) => {
6
+ const NumberInputField = ({ onFocus, onBlur, initialNumber = "0", unit, props = {}, placeholder = "123", isDisabled = false, isIncrementDisabled = false, isDecrementDisabled = false, handleChange = () => { }, dataCy, }) => {
7
7
  const inputRef = useRef(null);
8
8
  const handleInputChange = (event) => {
9
9
  const inputValue = event.target.value.replaceAll(",", "");
@@ -29,6 +29,6 @@ const NumberInputField = ({ onFocus, onBlur, initialNumber = "0", unit, props =
29
29
  inputRef.current.blur();
30
30
  }
31
31
  };
32
- return (_jsxs("div", { className: className, ...props, children: [unit, _jsx("input", { ref: inputRef, onFocus: onFocus, onBlur: onBlur, placeholder: placeholder, type: "text", value: initialNumber, min: "1", onChange: handleInputChange, disabled: isDisabled, onKeyDown: handleKeyDown }), _jsxs("div", { className: "numberInputField-Buttons", children: [_jsx("button", { onClick: handleIncrement, disabled: isDisabled || isIncrementDisabled, children: _jsx(GetSvgIcon, { iconType: "arrowUp", iconSize: "16" }) }), _jsx("button", { onClick: handleDecrement, disabled: isDisabled || isDecrementDisabled, children: _jsx(GetSvgIcon, { iconType: "arrowDown", iconSize: "16" }) })] })] }));
32
+ return (_jsxs("div", { className: className, ...props, children: [unit, _jsx("input", { ref: inputRef, onFocus: onFocus, onBlur: onBlur, placeholder: placeholder, type: "text", value: initialNumber, min: "1", onChange: handleInputChange, disabled: isDisabled, onKeyDown: handleKeyDown, "data-cy": dataCy }), _jsxs("div", { className: "numberInputField-Buttons", children: [_jsx("button", { onClick: handleIncrement, disabled: isDisabled || isIncrementDisabled, children: _jsx(GetSvgIcon, { iconType: "arrowUp", iconSize: "16" }) }), _jsx("button", { onClick: handleDecrement, disabled: isDisabled || isDecrementDisabled, children: _jsx(GetSvgIcon, { iconType: "arrowDown", iconSize: "16" }) })] })] }));
33
33
  };
34
34
  export default NumberInputField;
@@ -10,6 +10,7 @@ interface PersonViewBodyProps {
10
10
  filterSkills: string[];
11
11
  isExpIndustriesLoading: boolean;
12
12
  scrollToEducation?: boolean;
13
+ dataCy?: string;
13
14
  }
14
15
  declare const PersonViewBody: React.FC<PersonViewBodyProps>;
15
16
  export default PersonViewBody;
@@ -6,10 +6,10 @@ const PersonViewBody = ({ personViewActiveTab = "Experience", personViewSummaryP
6
6
  experience: dummyExpPayload,
7
7
  education: dummyEduPayload,
8
8
  totalExperience: "",
9
- }, onCompanyNameClick, industries = [], isIndustryLoading = false, filterIndustries = [], filterSkills = [], isExpIndustriesLoading = false, scrollToEducation = false, }) => {
9
+ }, onCompanyNameClick, industries = [], isIndustryLoading = false, filterIndustries = [], filterSkills = [], isExpIndustriesLoading = false, scrollToEducation = false, dataCy, }) => {
10
10
  switch (personViewActiveTab) {
11
11
  case "Experience":
12
- return (_jsx(PersonViewSummary, { about: personViewSummaryPayload.about, experience: personViewSummaryPayload.experience, education: personViewSummaryPayload.education, onCompanyNameClick: onCompanyNameClick ? onCompanyNameClick : () => { }, totalExperience: personViewSummaryPayload.totalExperience, industries: industries, isIndustryLoading: isIndustryLoading, filterIndustries: filterIndustries, filterSkills: filterSkills, isExpIndustriesLoading: isExpIndustriesLoading, scrollToEducation: scrollToEducation }));
12
+ return (_jsx(PersonViewSummary, { about: personViewSummaryPayload.about, experience: personViewSummaryPayload.experience, education: personViewSummaryPayload.education, onCompanyNameClick: onCompanyNameClick ? onCompanyNameClick : () => { }, totalExperience: personViewSummaryPayload.totalExperience, industries: industries, isIndustryLoading: isIndustryLoading, filterIndustries: filterIndustries, filterSkills: filterSkills, isExpIndustriesLoading: isExpIndustriesLoading, scrollToEducation: scrollToEducation, dataCy: dataCy }));
13
13
  default:
14
14
  return _jsx(_Fragment, {});
15
15
  }
@@ -11,6 +11,7 @@ interface PersonViewExperienceCardProps {
11
11
  companyExp: PersonExperiencePayloadTypes;
12
12
  isNoSkillsOrIndustries: boolean;
13
13
  isSummaryView?: boolean;
14
+ dataCy?: string;
14
15
  }
15
16
  declare const PersonViewExperienceCard: React.FC<PersonViewExperienceCardProps>;
16
17
  export default PersonViewExperienceCard;
@@ -3,7 +3,7 @@ import "./style.scss";
3
3
  import RectangularIcon from "../../RectangularIcon";
4
4
  import PersonViewExperienceDetails from "../PersonViewExperienceDetails";
5
5
  import clsx from "clsx";
6
- const PersonViewExperienceCard = ({ companyLogo = "", experienceDetails = [], onCompanyNameClick, filterIndustries, filterSkills, isExpIndustriesLoading = false, companyExp, isSummaryView = false, }) => {
6
+ const PersonViewExperienceCard = ({ companyLogo = "", experienceDetails = [], onCompanyNameClick, filterIndustries, filterSkills, isExpIndustriesLoading = false, companyExp, isSummaryView = false, dataCy, }) => {
7
7
  const groupedExperiences = {};
8
8
  experienceDetails.forEach((experience) => {
9
9
  const { companyName } = experience;
@@ -20,7 +20,7 @@ const PersonViewExperienceCard = ({ companyLogo = "", experienceDetails = [], on
20
20
  }), children: _jsx(PersonViewExperienceDetails, { showCompanyName: hasMultipleExperiences && key === 0, experienceDetails: {
21
21
  ...experience,
22
22
  location: experience.location,
23
- }, onCompanyNameClick: onCompanyNameClick, filterIndustries: filterIndustries, filterSkills: filterSkills, isExpIndustriesLoading: isExpIndustriesLoading, singleExperience: !hasMultipleExperiences, companyExp: companyExp, isSummaryView: isSummaryView }) })] }, key));
23
+ }, onCompanyNameClick: onCompanyNameClick, filterIndustries: filterIndustries, filterSkills: filterSkills, isExpIndustriesLoading: isExpIndustriesLoading, singleExperience: !hasMultipleExperiences, companyExp: companyExp, isSummaryView: isSummaryView, dataCy: dataCy }) })] }, key));
24
24
  }) }, companyName));
25
25
  }) }));
26
26
  };
@@ -13,6 +13,7 @@ interface PersonViewExperienceDetailsProps {
13
13
  duration: string;
14
14
  };
15
15
  isSummaryView?: boolean;
16
+ dataCy?: string;
16
17
  }
17
18
  declare const PersonViewExperienceDetails: React.FC<PersonViewExperienceDetailsProps>;
18
19
  export default PersonViewExperienceDetails;
@@ -5,7 +5,7 @@ import { detectEntitiesInDescription, dummyExpDetails, getDetectedIndustries, ge
5
5
  import SkillIndustryBadge from "../../SkillIndustryBadge";
6
6
  import { Loader, Tooltip } from "../..";
7
7
  import clsx from "clsx";
8
- const PersonViewExperienceDetails = ({ experienceDetails = dummyExpDetails, showCompanyName = true, onCompanyNameClick, filterIndustries, filterSkills, isExpIndustriesLoading, singleExperience, companyExp, isSummaryView = false, }) => {
8
+ const PersonViewExperienceDetails = ({ experienceDetails = dummyExpDetails, showCompanyName = true, onCompanyNameClick, filterIndustries, filterSkills, isExpIndustriesLoading, singleExperience, companyExp, isSummaryView = false, dataCy, }) => {
9
9
  const id = crypto.randomUUID();
10
10
  const [hoveredPill, setHoveredPill] = useState(null);
11
11
  const { start, end } = experienceDetails;
@@ -51,8 +51,8 @@ const PersonViewExperienceDetails = ({ experienceDetails = dummyExpDetails, show
51
51
  const hasMatchedKeywordsData = detectedIndustries.length > 0 || showDescriptionSkills;
52
52
  return (_jsxs("div", { className: "personViewExperienceDetails--Generic", children: [_jsxs("div", { className: "personViewExperienceDetails--NameAndDuration", children: [showCompanyName && (_jsx("h2", { className: "personViewExperienceDetailsCompanyName", onClick: () => {
53
53
  onCompanyNameClick(experienceDetails.universalName, experienceDetails.urn);
54
- }, children: experienceDetails.companyName })), showCompanyName && (_jsx("span", { className: "expDuration", children: companyExp.duration })), _jsx("h3", { children: experienceDetails.role }), singleExperience && (_jsx("h2", { className: "personViewExperienceDetailsCompanyName", onClick: () => {
54
+ }, "data-cy": `${dataCy}-company`, children: experienceDetails.companyName })), showCompanyName && (_jsx("span", { className: "expDuration", children: companyExp.duration })), _jsx("h3", { children: experienceDetails.role }), singleExperience && (_jsx("h2", { className: "personViewExperienceDetailsCompanyName", onClick: () => {
55
55
  onCompanyNameClick(experienceDetails.universalName, experienceDetails.urn);
56
- }, children: experienceDetails.companyName })), _jsxs("span", { className: "expPeriod", children: [experiencePeriod, " ", experienceDetails.duration && experiencePeriod && _jsx(_Fragment, { children: "\u2022" }), " ", experienceDetails.duration] }), _jsx("span", { children: experienceDetails.location })] }), hasDescriptionData && !isSummaryView && (_jsx("div", { id: id, className: "personViewExperienceDetails--Description", children: highlightedText })), hasMatchedKeywordsData && (_jsx("div", { className: "personViewExperienceDetails--MatchedKeywords", children: isExpIndustriesLoading ? (_jsx(Loader, { width: "24", height: "24" })) : (_jsxs(_Fragment, { children: [detectedIndustries.length > 0 && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "INDUSTRIES MATCHED: " }), _jsx("span", { children: detectedIndustries.map((industry, index) => (_jsx(Tooltip, { content: industry.source, toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: industry.industry }) }, index))) })] })), showDescriptionSkills && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "KEYWORDS/SKILLS: " }), _jsx("span", { children: detectedSkills.map((skill, key) => (_jsx(Tooltip, { content: "Extracted from experience", toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: skill }) }, key))) })] }))] })) }))] }));
56
+ }, "data-cy": `${dataCy}-company`, children: experienceDetails.companyName })), _jsxs("span", { className: "expPeriod", children: [experiencePeriod, " ", experienceDetails.duration && experiencePeriod && _jsx(_Fragment, { children: "\u2022" }), " ", experienceDetails.duration] }), _jsx("span", { children: experienceDetails.location })] }), hasDescriptionData && !isSummaryView && (_jsx("div", { id: id, className: "personViewExperienceDetails--Description", children: highlightedText })), hasMatchedKeywordsData && (_jsx("div", { className: "personViewExperienceDetails--MatchedKeywords", children: isExpIndustriesLoading ? (_jsx(Loader, { width: "24", height: "24" })) : (_jsxs(_Fragment, { children: [detectedIndustries.length > 0 && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "INDUSTRIES MATCHED: " }), _jsx("span", { children: detectedIndustries.map((industry, index) => (_jsx(Tooltip, { content: industry.source, toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: industry.industry }) }, index))) })] })), showDescriptionSkills && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "KEYWORDS/SKILLS: " }), _jsx("span", { children: detectedSkills.map((skill, key) => (_jsx(Tooltip, { content: "Extracted from experience", toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: skill }) }, key))) })] }))] })) }))] }));
57
57
  };
58
58
  export default PersonViewExperienceDetails;
@@ -24,6 +24,7 @@ interface PersonViewHeaderProps {
24
24
  createOrUpdateQuestRequest?: React.ReactNode;
25
25
  viewInQuestButton?: React.ReactNode;
26
26
  markFakeButton?: React.ReactNode;
27
+ dataCy?: string;
27
28
  }
28
29
  declare const PersonViewHeader: React.FC<PersonViewHeaderProps>;
29
30
  export default PersonViewHeader;
@@ -5,9 +5,9 @@ import CircularIcon from "../../CircularIcon";
5
5
  import { ClickableText, EllipsisText, PrimaryButton } from "../..";
6
6
  import IconButton from "../../IconButton";
7
7
  import BadgeWithCount from "../../BadgeWithCount";
8
- const PersonViewHeader = ({ profilePicture = "", fullName = "", id = "", currentRole = "", currentCompany = "", universalName = "", urn = "", location = "", lastUpdated = "", onCheckClick, onClose, onBack, onUpdateClick = () => { }, onCompanyNameClick, isThreeMonthsAgo = false, updateError = false, checkValue = false, addedAssignmentsCount, onAddToAssignmentClick = () => { }, onBadgeClick, createOrUpdateQuestRequest, viewInQuestButton, markFakeButton, }) => {
9
- return (_jsx("div", { children: _jsxs("div", { className: "personViewHeader--Generic", children: [_jsxs("span", { className: "personViewHeader--Left", children: [onBack && (_jsx(IconButton, { color: "gray", variant: "tertiary", iconType: "arrowLeft", sizeVariant: "xs", iconSize: "20", onClick: onBack })), onCheckClick && (_jsx("div", { className: "personViewHeaderCheckBoxLeft", children: _jsx(CheckboxComponent, { sizeVariant: "sm", checked: checkValue, onClick: (flag) => {
8
+ const PersonViewHeader = ({ profilePicture = "", fullName = "", id = "", currentRole = "", currentCompany = "", universalName = "", urn = "", location = "", lastUpdated = "", onCheckClick, onClose, onBack, onUpdateClick = () => { }, onCompanyNameClick, isThreeMonthsAgo = false, updateError = false, checkValue = false, addedAssignmentsCount, onAddToAssignmentClick = () => { }, onBadgeClick, createOrUpdateQuestRequest, viewInQuestButton, markFakeButton, dataCy, }) => {
9
+ return (_jsx("div", { children: _jsxs("div", { className: "personViewHeader--Generic", children: [_jsxs("span", { className: "personViewHeader--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: "personViewHeaderCheckBoxLeft", children: _jsx(CheckboxComponent, { sizeVariant: "sm", checked: checkValue, onClick: (flag) => {
10
10
  onCheckClick(flag);
11
- } }) })), _jsx(CircularIcon, { iconPath: profilePicture, iconSize: "80", altImageType: "profile" }, `${id}-${lastUpdated}`), _jsxs("div", { className: "personViewHeader--PersonDetails", children: [_jsxs("div", { className: "fullNameContainer", children: [_jsx(EllipsisText, { children: _jsx("span", { children: fullName }) }), Boolean(addedAssignmentsCount) && (_jsx(BadgeWithCount, { count: addedAssignmentsCount, toolTipContent: `Added to ${addedAssignmentsCount} assignments`, iconType: "briefcase", iconSize: "16", toolTipPosition: "top", onClick: onBadgeClick }))] }), _jsxs("div", { className: "titleContainer", children: [_jsx(EllipsisText, { children: currentRole }), !!currentCompany && (_jsxs(_Fragment, { children: ["at", _jsx("span", { onClick: () => onCompanyNameClick(universalName, urn), className: "personViewHeaderCompanyLink", children: _jsx(EllipsisText, { children: currentCompany }) })] }))] }), _jsx("h3", { children: location }), _jsxs("div", { className: "questActions", children: [viewInQuestButton, createOrUpdateQuestRequest] }), _jsx("div", { className: "markFake", children: markFakeButton })] })] }), _jsx("div", { className: "personViewHeader--Right", children: _jsxs("div", { className: "personViewHeader--ButtonRight", children: [isThreeMonthsAgo && !updateError && (_jsx(ClickableText, { text: "Update available", onClick: onUpdateClick, sizeVariant: "sm", iconSize: "14" })), !updateError && (_jsx("div", { className: "profileUpdateDetail", children: _jsx(PrimaryButton, { colorVariant: "orange", sizeVariant: "xs", text: "Save to Assignment", onClick: onAddToAssignmentClick }) })), onClose && (_jsx(IconButton, { iconType: "cross", iconSize: "20", onClick: onClose, className: "crossBtn" }))] }) })] }) }));
11
+ }, dataCy: `${dataCy}-checkbox` }) })), _jsx(CircularIcon, { iconPath: profilePicture, iconSize: "80", altImageType: "profile" }, `${id}-${lastUpdated}`), _jsxs("div", { className: "personViewHeader--PersonDetails", children: [_jsxs("div", { className: "fullNameContainer", children: [_jsx(EllipsisText, { children: _jsx("span", { children: fullName }) }), Boolean(addedAssignmentsCount) && (_jsx(BadgeWithCount, { count: addedAssignmentsCount, toolTipContent: `Added to ${addedAssignmentsCount} assignments`, iconType: "briefcase", iconSize: "16", toolTipPosition: "top", onClick: onBadgeClick, dataCy: `${dataCy}-briefcase` }))] }), _jsxs("div", { className: "titleContainer", children: [_jsx(EllipsisText, { children: currentRole }), !!currentCompany && (_jsxs(_Fragment, { children: ["at", _jsx("span", { onClick: () => onCompanyNameClick(universalName, urn), className: "personViewHeaderCompanyLink", "data-cy": `${dataCy}-company`, children: _jsx(EllipsisText, { children: currentCompany }) })] }))] }), _jsx("h3", { children: location }), _jsxs("div", { className: "questActions", children: [viewInQuestButton, createOrUpdateQuestRequest] }), _jsx("div", { className: "markFake", children: markFakeButton })] })] }), _jsx("div", { className: "personViewHeader--Right", children: _jsxs("div", { className: "personViewHeader--ButtonRight", children: [isThreeMonthsAgo && !updateError && (_jsx(ClickableText, { text: "Update available", onClick: onUpdateClick, sizeVariant: "sm", iconSize: "14", dataCy: `${dataCy}-update` })), !updateError && (_jsx("div", { className: "profileUpdateDetail", children: _jsx(PrimaryButton, { colorVariant: "orange", sizeVariant: "xs", text: "Save to Assignment", onClick: onAddToAssignmentClick, dataCy: `${dataCy}-save-to-assignment` }) })), onClose && (_jsx(IconButton, { iconType: "cross", iconSize: "20", onClick: onClose, className: "crossBtn", "data-cy": `${dataCy}-cross` }))] }) })] }) }));
12
12
  };
13
13
  export default PersonViewHeader;
@@ -13,7 +13,8 @@ interface PersonViewSummaryProps {
13
13
  filterSkills: string[];
14
14
  isExpIndustriesLoading?: boolean;
15
15
  scrollToEducation?: boolean;
16
+ dataCy?: string;
16
17
  isSummaryView?: boolean;
17
18
  }
18
- declare const PersonViewSummary: ({ about, experience, totalExperience, education, onCompanyNameClick, industries, isIndustryLoading, filterIndustries, filterSkills, isExpIndustriesLoading, scrollToEducation, isSummaryView, }: PersonViewSummaryProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const PersonViewSummary: ({ about, experience, totalExperience, education, onCompanyNameClick, industries, isIndustryLoading, filterIndustries, filterSkills, isExpIndustriesLoading, scrollToEducation, dataCy, isSummaryView, }: PersonViewSummaryProps) => import("react/jsx-runtime").JSX.Element;
19
20
  export default PersonViewSummary;
@@ -6,7 +6,7 @@ import PersonViewEducationCard from "../PersonViewEducationCard";
6
6
  import { ClickableText, Loader, SkillIndustryBadge, Tooltip } from "../..";
7
7
  import { detectEntitiesInDescription, highlightRichText, splitTextByKeyWords, } from "../../../utils";
8
8
  import { useEffect, useState, useRef } from "react";
9
- const PersonViewSummary = ({ about = "", experience = [], totalExperience = "", education = [], onCompanyNameClick, industries, isIndustryLoading = false, filterIndustries, filterSkills, isExpIndustriesLoading = false, scrollToEducation = false, isSummaryView, }) => {
9
+ const PersonViewSummary = ({ about = "", experience = [], totalExperience = "", education = [], onCompanyNameClick, industries, isIndustryLoading = false, filterIndustries, filterSkills, isExpIndustriesLoading = false, scrollToEducation = false, dataCy, isSummaryView, }) => {
10
10
  const [hoveredPill, setHoveredPill] = useState(null);
11
11
  const [showMore, setShowMore] = useState(false);
12
12
  const educationRef = useRef(null);
@@ -53,9 +53,9 @@ const PersonViewSummary = ({ about = "", experience = [], totalExperience = "",
53
53
  filterIndustries &&
54
54
  onCompanyNameClick &&
55
55
  experience?.length !== 0;
56
- return (_jsx("div", { className: "personViewSummary--Generic", children: _jsxs("div", { className: isAboutNA, children: [about.toLowerCase() !== "not available" && !isSummaryView && (_jsx("h2", { children: "About" })), about.toLowerCase() !== "not available" && (_jsxs("div", { id: "personViewSummary-About-Text", children: [_jsxs("span", { children: [showMore ? highlightedText : truncatedTextHighlighted, !showMore && isTruncated && "..."] }), isTruncated && (_jsx("div", { className: "clickableTextWrapper", children: _jsx(ClickableText, { text: showMore ? "‎ See less" : "See more", onClick: handleToggleShowMore, sizeVariant: "base" }) })), shouldShowMatchedKeywords && (_jsx("div", { className: "personViewExperienceDetails--MatchedKeywordsAbout", children: isIndustryLoading ? (_jsx(Loader, { width: "24", height: "24" })) : (_jsxs(_Fragment, { children: [industries.length > 0 && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "INDUSTRIES MATCHED:" }), _jsx("span", { children: industries.map((industry, key) => (_jsx(Tooltip, { content: 'Extracted from "About"', toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: industry }) }, `industry-${key}`))) })] })), aboutSectionSkills.length > 0 && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "KEYWORDS/SKILLS:" }), _jsx("span", { children: aboutSectionSkills.map((skill, key) => (_jsx(Tooltip, { content: 'Extracted from "About"', toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: skill }) }, `skill-${key}`))) })] }))] })) }))] })), showExperience && (_jsxs("div", { className: "personViewSummary-Experience", children: [_jsx("h2", { children: "Work Experience" }), totalExperience && (_jsxs("span", { className: "totalExperience", children: ["Total: ", totalExperience] })), experience?.map((companyExp, key) => {
57
- return (_jsx(PersonViewExperienceCard, { companyLogo: companyExp?.companyLogo, experienceDetails: companyExp?.experienceDetails, onCompanyNameClick: onCompanyNameClick, filterIndustries: filterIndustries, filterSkills: filterSkills, isExpIndustriesLoading: isExpIndustriesLoading, companyExp: companyExp, isNoSkillsOrIndustries: false }, key));
58
- })] })), !isSummaryView && education?.length !== 0 && (_jsxs("div", { ref: educationRef, className: "personViewSummary-Education", children: [_jsx("h2", { children: "Education" }), education?.map((edu) => {
56
+ return (_jsx("div", { className: "personViewSummary--Generic", children: _jsxs("div", { className: isAboutNA, children: [about.toLowerCase() !== "not available" && !isSummaryView && (_jsx("h2", { children: "About" })), about.toLowerCase() !== "not available" && (_jsxs("div", { id: "personViewSummary-About-Text", "data-cy": `${dataCy}-about-section`, children: [_jsxs("span", { children: [showMore ? highlightedText : truncatedTextHighlighted, !showMore && isTruncated && "..."] }), isTruncated && (_jsx("div", { className: "clickableTextWrapper", children: _jsx(ClickableText, { text: showMore ? "‎ See less" : "See more", onClick: handleToggleShowMore, sizeVariant: "base" }) })), shouldShowMatchedKeywords && (_jsx("div", { className: "personViewExperienceDetails--MatchedKeywordsAbout", children: isIndustryLoading ? (_jsx(Loader, { width: "24", height: "24" })) : (_jsxs(_Fragment, { children: [industries.length > 0 && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "INDUSTRIES MATCHED:" }), _jsx("span", { children: industries.map((industry, key) => (_jsx(Tooltip, { content: 'Extracted from "About"', toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: industry }) }, `industry-${key}`))) })] })), aboutSectionSkills.length > 0 && (_jsxs("span", { className: "personViewExperienceDetails--SkillsAndIndustries", children: [_jsx("h2", { children: "KEYWORDS/SKILLS:" }), _jsx("span", { children: aboutSectionSkills.map((skill, key) => (_jsx(Tooltip, { content: 'Extracted from "About"', toolTipPosition: "bottom", children: _jsx(SkillIndustryBadge, { highlight: handleHoverPill, highlightPill: false, text: skill }) }, `skill-${key}`))) })] }))] })) }))] })), showExperience && (_jsxs("div", { className: "personViewSummary-Experience", "data-cy": `${dataCy}-experience-section`, children: [_jsx("h2", { children: "Work Experience" }), totalExperience && (_jsxs("span", { className: "totalExperience", children: ["Total: ", totalExperience] })), experience?.map((companyExp, key) => {
57
+ return (_jsx(PersonViewExperienceCard, { companyLogo: companyExp?.companyLogo, experienceDetails: companyExp?.experienceDetails, onCompanyNameClick: onCompanyNameClick, filterIndustries: filterIndustries, filterSkills: filterSkills, isExpIndustriesLoading: isExpIndustriesLoading, companyExp: companyExp, isNoSkillsOrIndustries: false, dataCy: `${dataCy}-experience-section` }, key));
58
+ })] })), !isSummaryView && education?.length !== 0 && (_jsxs("div", { ref: educationRef, className: "personViewSummary-Education", "data-cy": `${dataCy}-education-section`, children: [_jsx("h2", { children: "Education" }), education?.map((edu) => {
59
59
  return (_jsx(PersonViewEducationCard, { education: edu }, edu?.index));
60
60
  })] }))] }) }));
61
61
  };
@@ -7,6 +7,7 @@ interface PersonViewTabsComponentProps {
7
7
  }[];
8
8
  activePersonViewTab: PersonViewTabsTypes;
9
9
  onClick: (tabName: PersonViewTabsTypes) => void;
10
+ dataCy?: string;
10
11
  }
11
12
  declare const PersonViewTabsComponent: React.FC<PersonViewTabsComponentProps>;
12
13
  export default PersonViewTabsComponent;
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import { PersonViewTabs } from "../../../utils";
4
4
  import "./style.scss";
5
- const PersonViewTabsComponent = ({ tabs = PersonViewTabs, activePersonViewTab = "Summary", onClick, }) => {
5
+ const PersonViewTabsComponent = ({ tabs = PersonViewTabs, activePersonViewTab = "Summary", onClick, dataCy, }) => {
6
6
  const getPersonViewTabButtonClasses = (tabName, activePersonViewTab) => {
7
7
  return clsx({
8
8
  "personViewTabsComponent-Button--Generic": true,
@@ -11,7 +11,9 @@ const PersonViewTabsComponent = ({ tabs = PersonViewTabs, activePersonViewTab =
11
11
  });
12
12
  };
13
13
  return (_jsx("div", { className: "personViewTabsComponent--Generic", children: tabs.map((entity, key) => {
14
- return (_jsx("button", { onClick: () => onClick(entity.tabName), className: getPersonViewTabButtonClasses(entity.tabName, activePersonViewTab), children: entity.tabName.toUpperCase() }, key));
14
+ return (_jsx("button", { onClick: () => onClick(entity.tabName), className: getPersonViewTabButtonClasses(entity.tabName, activePersonViewTab), "data-cy": `${dataCy}-${entity.tabName
15
+ .toLowerCase()
16
+ .replace(/\s+/g, "-")}}`, children: entity.tabName.toUpperCase() }, key));
15
17
  }) }));
16
18
  };
17
19
  export default PersonViewTabsComponent;
@@ -9,6 +9,7 @@ interface PrimaryButtonProps extends ComponentPropsWithoutRef<"button"> {
9
9
  isDisabled?: boolean;
10
10
  width?: string;
11
11
  children?: ReactNode;
12
+ dataCy?: string;
12
13
  }
13
- declare const PrimaryButton: ({ type, text, primaryButtonClassName, sizeVariant, colorVariant, isDisabled, children, ...props }: PrimaryButtonProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const PrimaryButton: ({ type, text, primaryButtonClassName, sizeVariant, colorVariant, isDisabled, dataCy, children, ...props }: PrimaryButtonProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export default PrimaryButton;
@@ -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 PrimaryButton = ({ type = "button", text = "Button text", primaryButtonClassName = "", sizeVariant = "xs", colorVariant = "orange", isDisabled = false, children, ...props }) => {
4
+ const PrimaryButton = ({ type = "button", text = "Button text", primaryButtonClassName = "", sizeVariant = "xs", colorVariant = "orange", isDisabled = false, dataCy, children, ...props }) => {
5
5
  const className = clsx({
6
6
  primaryButtonGeneric: true,
7
7
  [`${sizeVariant}Size--PrimaryButton`]: true,
8
8
  [`${colorVariant}--PrimaryButton`]: true,
9
9
  });
10
- return (_jsx("button", { ...props, type: type, className: `${className} ${primaryButtonClassName}`, disabled: isDisabled, children: children ? children : text }));
10
+ return (_jsx("button", { ...props, type: type, className: `${className} ${primaryButtonClassName}`, disabled: isDisabled, "data-cy": dataCy, children: children ? children : text }));
11
11
  };
12
12
  export default PrimaryButton;
@@ -7,6 +7,7 @@ interface PromptFieldProps {
7
7
  onSubmit: (message: string) => void;
8
8
  setValue: (value: string) => void;
9
9
  value: string;
10
+ dataCy?: string;
10
11
  }
11
- declare const PromptField: ({ placeholderText, isDisabled, isLoading, isReadOnly, onSubmit, value, setValue, }: PromptFieldProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const PromptField: ({ placeholderText, isDisabled, isLoading, isReadOnly, onSubmit, value, setValue, dataCy, }: PromptFieldProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export default PromptField;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useRef } from "react";
3
3
  import "./style.scss";
4
4
  import { IconButton, Loader } from "..";
5
- const PromptField = ({ placeholderText = "Write here...", isDisabled = false, isLoading = false, isReadOnly = false, onSubmit, value, setValue = () => false, }) => {
5
+ const PromptField = ({ placeholderText = "Write here...", isDisabled = false, isLoading = false, isReadOnly = false, onSubmit, value, setValue = () => false, dataCy, }) => {
6
6
  const textareaRef = useRef(null);
7
7
  useEffect(() => {
8
8
  window.addEventListener("resize", handleAutoResize);
@@ -48,6 +48,6 @@ const PromptField = ({ placeholderText = "Write here...", isDisabled = false, is
48
48
  const onchange = (event) => {
49
49
  setValue(event.target.value);
50
50
  };
51
- return (_jsxs("form", { className: "promptField", onSubmit: (e) => e.preventDefault(), children: [_jsx("textarea", { ref: textareaRef, className: "promptFieldInput", readOnly: isReadOnly, placeholder: placeholderText, value: value, onChange: onchange, onKeyDown: handleKeyDown }), isLoading ? (_jsx(Loader, { height: "24", width: "24", type: "threeDots" })) : (_jsx(IconButton, { isDisabled: isDisabled, iconType: "searchArrow", onClick: handleSubmit, sizeVariant: "sm", variant: "primary", color: "orange" }))] }));
51
+ return (_jsxs("form", { className: "promptField", onSubmit: (e) => e.preventDefault(), children: [_jsx("textarea", { ref: textareaRef, className: "promptFieldInput", readOnly: isReadOnly, placeholder: placeholderText, value: value, onChange: onchange, onKeyDown: handleKeyDown, "data-cy": `${dataCy}-input` }), isLoading ? (_jsx(Loader, { height: "24", width: "24", type: "threeDots" })) : (_jsx(IconButton, { isDisabled: isDisabled, iconType: "searchArrow", onClick: handleSubmit, sizeVariant: "sm", variant: "primary", color: "orange", "data-cy": `${dataCy}-submit` }))] }));
52
52
  };
53
53
  export default PromptField;
@@ -9,6 +9,7 @@ interface SearchFilterButtonProps {
9
9
  filterIconRight?: IconType;
10
10
  onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
11
11
  onCancelClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
12
+ dataCy?: string;
12
13
  }
13
- declare const SearchFilterButton: ({ filterText, filterCount, filterIcon, isFilterLoading, filterIconRight, onClick, onCancelClick, }: SearchFilterButtonProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const SearchFilterButton: ({ filterText, filterCount, filterIcon, isFilterLoading, filterIconRight, onClick, onCancelClick, dataCy, }: SearchFilterButtonProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export default SearchFilterButton;
@@ -4,11 +4,11 @@ import CountCancelButton from "../CountCancelButton";
4
4
  import "./style.scss";
5
5
  import GetSvgIcon from "../GetSvgIcon";
6
6
  import { Loader } from "..";
7
- const SearchFilterButton = ({ filterText = "Name", filterCount = 0, filterIcon = "industry", isFilterLoading = false, filterIconRight, onClick, onCancelClick, }) => {
7
+ const SearchFilterButton = ({ filterText = "Name", filterCount = 0, filterIcon = "industry", isFilterLoading = false, filterIconRight, onClick, onCancelClick, dataCy, }) => {
8
8
  const className = clsx({
9
9
  "searchFilterButton--Generic": true,
10
10
  "searchFilterButton--Selected": filterCount !== 0,
11
11
  });
12
- return (_jsxs("button", { className: className, onClick: onClick, children: [_jsxs("span", { className: "searchFilterButton-FitlerDetails", children: [_jsx(GetSvgIcon, { iconType: filterIcon, iconSize: "18" }), filterText] }), isFilterLoading && _jsx(Loader, { height: "18", width: "18" }), filterCount !== 0 && !isFilterLoading && (_jsxs("div", { className: "searchFilterButton-RigthIcon", children: [!!filterIconRight && !isFilterLoading && (_jsx(GetSvgIcon, { iconType: filterIconRight, iconSize: "18" })), _jsx(CountCancelButton, { count: filterCount, onClick: onCancelClick })] }))] }));
12
+ return (_jsxs("button", { className: className, onClick: onClick, "data-cy": dataCy, children: [_jsxs("span", { className: "searchFilterButton-FitlerDetails", children: [_jsx(GetSvgIcon, { iconType: filterIcon, iconSize: "18" }), filterText] }), isFilterLoading && _jsx(Loader, { height: "18", width: "18" }), filterCount !== 0 && !isFilterLoading && (_jsxs("div", { className: "searchFilterButton-RigthIcon", children: [!!filterIconRight && !isFilterLoading && (_jsx(GetSvgIcon, { iconType: filterIconRight, iconSize: "18" })), _jsx(CountCancelButton, { count: filterCount, onClick: onCancelClick })] }))] }));
13
13
  };
14
14
  export default SearchFilterButton;
@@ -10,6 +10,7 @@ interface SaveSearchProps {
10
10
  handleMoreClick: () => void;
11
11
  isDisabled: boolean;
12
12
  handleBack: () => void;
13
+ dataCy?: string;
13
14
  }
14
- declare const SavedSearches: ({ titles, isLoading, onTitleClick, onDeleteClick, remainingTime, showMore, handleMoreClick, isDisabled, handleBack, }: SaveSearchProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const SavedSearches: ({ titles, isLoading, onTitleClick, onDeleteClick, remainingTime, showMore, handleMoreClick, isDisabled, handleBack, dataCy, }: SaveSearchProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default SavedSearches;