@abcagency/hc-ui-components 1.3.21 → 1.3.22
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/{bundle.js → bundleDist/bundle.js} +30 -19
- package/bundleDist/bundle.js.map +1 -0
- package/bundleDist/dist/styles/index.css +3 -0
- package/bundleDist/dist/types/apis/hcApi.d.ts +5 -0
- package/bundleDist/dist/types/clientToken.d.ts +2 -0
- package/bundleDist/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +12 -0
- package/bundleDist/dist/types/components/containers/jobListing/listing-details-container.d.ts +6 -0
- package/bundleDist/dist/types/components/containers/list/item-list-container.d.ts +9 -0
- package/bundleDist/dist/types/components/containers/list/list-item/list-item-container.d.ts +14 -0
- package/bundleDist/dist/types/components/modules/accordions/MapAccordionItem.d.ts +10 -0
- package/bundleDist/dist/types/components/modules/accordions/default.d.ts +19 -0
- package/bundleDist/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -0
- package/bundleDist/dist/types/components/modules/buttons/commute-pill.d.ts +5 -0
- package/bundleDist/dist/types/components/modules/buttons/default.d.ts +48 -0
- package/bundleDist/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -0
- package/bundleDist/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/filter/sort.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/grid.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/icon.d.ts +10 -0
- package/bundleDist/dist/types/components/modules/jobListing/listing-details.d.ts +18 -0
- package/bundleDist/dist/types/components/modules/list/field-mapper.d.ts +10 -0
- package/bundleDist/dist/types/components/modules/list/header-item.d.ts +11 -0
- package/bundleDist/dist/types/components/modules/list/header.d.ts +11 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -0
- package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -0
- package/bundleDist/dist/types/components/modules/list/item-list.d.ts +20 -0
- package/bundleDist/dist/types/components/modules/list/list-item/list-item.d.ts +3 -0
- package/bundleDist/dist/types/constants/eventTypes.d.ts +13 -0
- package/bundleDist/dist/types/contexts/mapContext.d.ts +29 -0
- package/bundleDist/dist/types/contexts/mapListContext.d.ts +59 -0
- package/bundleDist/dist/types/contexts/trackEventContext.d.ts +6 -0
- package/bundleDist/dist/types/enums/SectionType.d.ts +9 -0
- package/bundleDist/dist/types/hooks/useList.d.ts +13 -0
- package/bundleDist/dist/types/services/configService.d.ts +6 -0
- package/bundleDist/dist/types/services/googlePlacesNearbyService.d.ts +5 -0
- package/bundleDist/dist/types/services/listingAggregatorService.d.ts +12 -0
- package/bundleDist/dist/types/services/listingEntityService.d.ts +6 -0
- package/bundleDist/dist/types/services/listingService.d.ts +9 -0
- package/bundleDist/dist/types/services/recruiterService.d.ts +6 -0
- package/bundleDist/dist/types/types/Address.d.ts +7 -0
- package/bundleDist/dist/types/types/ContentSection.d.ts +8 -0
- package/bundleDist/dist/types/types/GetListingParams.d.ts +8 -0
- package/bundleDist/dist/types/types/LatLng.d.ts +4 -0
- package/bundleDist/dist/types/types/ListingEntity.d.ts +10 -0
- package/bundleDist/dist/types/types/ListingFields.d.ts +25 -0
- package/bundleDist/dist/types/types/Listings.d.ts +31 -0
- package/bundleDist/dist/types/types/Recruiter.d.ts +9 -0
- package/bundleDist/dist/types/types/SimilarListing.d.ts +24 -0
- package/bundleDist/dist/types/types/config/Colors.d.ts +8 -0
- package/bundleDist/dist/types/types/config/MapConfig.d.ts +30 -0
- package/bundleDist/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -0
- package/bundleDist/dist/types/types/config/SearchConfig.d.ts +4 -0
- package/bundleDist/dist/types/util/filterUtil.d.ts +28 -0
- package/bundleDist/dist/types/util/loading.d.ts +3 -0
- package/bundleDist/dist/types/util/localStorageUtil.d.ts +3 -0
- package/bundleDist/dist/types/util/mapUtil.d.ts +15 -0
- package/bundleDist/dist/types/util/sortUtil.d.ts +1 -0
- package/bundleDist/dist/types/util/stringUtils.d.ts +1 -0
- package/bundleDist/dist/types/util/urlFilterUtil.d.ts +8 -0
- package/bundleDist/styles/index.css +3 -0
- package/dist/components/containers/accordions/filter-container.js +4 -2
- package/dist/components/containers/accordions/filter-container.js.map +1 -1
- package/dist/components/containers/accordions/filter-item-container.js +6 -1
- package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js +4 -2
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/jobListing/listing-details-container.js +2 -2
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/item-list-container.js +2 -2
- package/dist/components/containers/list/item-list-container.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js +2 -1
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
- package/dist/components/modules/filter/search.js +1 -1
- package/dist/components/modules/filter/search.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details.js +5 -4
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/list/field-mapper.js +1 -1
- package/dist/components/modules/list/field-mapper.js.map +1 -1
- package/dist/components/modules/list/item-list.js.map +1 -1
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/styles/index.css +3 -1
- package/dist/types/components/containers/jobListing/listing-details-container.d.ts +2 -2
- package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +2 -1
- package/dist/types/components/modules/jobListing/listing-details.d.ts +2 -2
- package/dist/types/components/modules/list/item-list.d.ts +0 -1
- package/dist/types/types/ListingFields.d.ts +5 -0
- package/dist/types/types/config/MapConfig.d.ts +1 -0
- package/dist/util/filterUtil.js +2 -2
- package/dist/util/filterUtil.js.map +1 -1
- package/package.json +1 -1
- package/postcss.config.js +5 -4
- package/rollup.config.mjs +1 -1
- package/src/components/containers/accordions/filter-container.js +2 -1
- package/src/components/containers/accordions/filter-item-container.js +66 -62
- package/src/components/containers/accordions/map-accordion-item-container.js +70 -70
- package/src/components/containers/jobListing/listing-details-container.js +2 -2
- package/src/components/containers/list/item-list-container.tsx +2 -3
- package/src/components/modules/accordions/MapAccordionItem.js +30 -29
- package/src/components/modules/dialogs/apply-dialog.js +48 -48
- package/src/components/modules/filter/search.js +1 -1
- package/src/components/modules/jobListing/listing-details.js +5 -5
- package/src/components/modules/list/field-mapper.js +1 -1
- package/src/components/modules/list/item-list.tsx +0 -1
- package/src/contexts/mapListContext.tsx +311 -311
- package/src/services/listingAggregatorService.ts +76 -76
- package/src/styles/index.css +14 -115
- package/src/types/ListingFields.ts +5 -0
- package/src/types/config/MapConfig.ts +1 -0
- package/src/util/filterUtil.js +239 -239
- package/stats.html +1 -1
- package/tailwind.config.js +4 -4
- package/bundle.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/styles/index.css +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as Dialog from '@radix-ui/react-dialog';
|
|
3
|
-
|
|
4
|
-
import Button from '~/components/modules/buttons/default';
|
|
5
|
-
import Icon from '~/components/modules/icon';
|
|
6
|
-
|
|
7
|
-
const ApplyDialog = ({ children, applyUrl, internalApplyLink, companyName }) => (
|
|
8
|
-
|
|
9
|
-
<Dialog.Root >
|
|
10
|
-
<Dialog.Trigger asChild>
|
|
11
|
-
{children}
|
|
12
|
-
</Dialog.Trigger>
|
|
13
|
-
<Dialog.Portal>
|
|
14
|
-
<Dialog.Overlay className="hc-bg-black/50 hc-fixed hc-inset-0 hc-animate-overlayShow" />
|
|
15
|
-
<Dialog.Content className="hc-fit-content hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center">
|
|
16
|
-
<Dialog.Title className="hc-text-[17px] hc-font-medium hc-w-full">
|
|
17
|
-
Career Opportunities
|
|
18
|
-
</Dialog.Title>
|
|
19
|
-
<Dialog.Description className="hc-mt-4 hc-mb-5 hc-text-[15px] hc-leading-normal hc-w-full">
|
|
20
|
-
Are you currently a {companyName} employee?
|
|
21
|
-
</Dialog.Description>
|
|
22
|
-
<div className="hc-flex hc-justify-center hc-space-x-4 hc-w-full">
|
|
23
|
-
<Dialog.Close asChild>
|
|
24
|
-
<Button.Anchor variant="outline" href={internalApplyLink}>
|
|
25
|
-
Yes
|
|
26
|
-
</Button.Anchor>
|
|
27
|
-
</Dialog.Close>
|
|
28
|
-
<Dialog.Close asChild>
|
|
29
|
-
<Button.Anchor variant="primary" href={applyUrl}>
|
|
30
|
-
No
|
|
31
|
-
</Button.Anchor>
|
|
32
|
-
</Dialog.Close>
|
|
33
|
-
</div>
|
|
34
|
-
<Dialog.Close asChild>
|
|
35
|
-
<Button.Anchor className="hc-absolute hc-top-[10px] hc-right-[10px] hc-inline-flex hc-h-[25px] hc-w-[25px] hc-items-center hc-justify-center hc-rounded-full focus:hc-outline-none"
|
|
36
|
-
variant="ghost" aria-label="Close">
|
|
37
|
-
<Icon
|
|
38
|
-
icon="mdi:times"
|
|
39
|
-
className="hc-cursor-pointer hc-text-black hover:hc-text-gray-500 hover:hc-opacity-75"
|
|
40
|
-
/>
|
|
41
|
-
</Button.Anchor>
|
|
42
|
-
</Dialog.Close>
|
|
43
|
-
</Dialog.Content>
|
|
44
|
-
</Dialog.Portal>
|
|
45
|
-
</Dialog.Root>
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
export default ApplyDialog;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as Dialog from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
import Button from '~/components/modules/buttons/default';
|
|
5
|
+
import Icon from '~/components/modules/icon';
|
|
6
|
+
|
|
7
|
+
const ApplyDialog = ({ children, applyUrl, internalApplyLink, companyName }) => (
|
|
8
|
+
|
|
9
|
+
<Dialog.Root >
|
|
10
|
+
<Dialog.Trigger asChild>
|
|
11
|
+
{children}
|
|
12
|
+
</Dialog.Trigger>
|
|
13
|
+
<Dialog.Portal>
|
|
14
|
+
<Dialog.Overlay className="hc-bg-black/50 hc-fixed hc-inset-0 hc-animate-overlayShow" />
|
|
15
|
+
<Dialog.Content className="z-99 hc-fit-content hc-h-fit hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center">
|
|
16
|
+
<Dialog.Title className="hc-text-[17px] hc-font-medium hc-w-full">
|
|
17
|
+
Career Opportunities
|
|
18
|
+
</Dialog.Title>
|
|
19
|
+
<Dialog.Description className="hc-mt-4 hc-mb-5 hc-text-[15px] hc-leading-normal hc-w-full">
|
|
20
|
+
Are you currently a {companyName} employee?
|
|
21
|
+
</Dialog.Description>
|
|
22
|
+
<div className="hc-flex hc-justify-center hc-space-x-4 hc-w-full">
|
|
23
|
+
<Dialog.Close asChild>
|
|
24
|
+
<Button.Anchor variant="outline" href={internalApplyLink}>
|
|
25
|
+
Yes
|
|
26
|
+
</Button.Anchor>
|
|
27
|
+
</Dialog.Close>
|
|
28
|
+
<Dialog.Close asChild>
|
|
29
|
+
<Button.Anchor variant="primary" href={applyUrl}>
|
|
30
|
+
No
|
|
31
|
+
</Button.Anchor>
|
|
32
|
+
</Dialog.Close>
|
|
33
|
+
</div>
|
|
34
|
+
<Dialog.Close asChild>
|
|
35
|
+
<Button.Anchor className="hc-absolute hc-top-[10px] hc-right-[10px] hc-inline-flex hc-h-[25px] hc-w-[25px] hc-items-center hc-justify-center hc-rounded-full focus:hc-outline-none"
|
|
36
|
+
variant="ghost" aria-label="Close">
|
|
37
|
+
<Icon
|
|
38
|
+
icon="mdi:times"
|
|
39
|
+
className="hc-cursor-pointer hc-text-black hover:hc-text-gray-500 hover:hc-opacity-75"
|
|
40
|
+
/>
|
|
41
|
+
</Button.Anchor>
|
|
42
|
+
</Dialog.Close>
|
|
43
|
+
</Dialog.Content>
|
|
44
|
+
</Dialog.Portal>
|
|
45
|
+
</Dialog.Root>
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
export default ApplyDialog;
|
|
@@ -54,7 +54,7 @@ const Search = ({
|
|
|
54
54
|
className={`transition-opacity ${inputValue ? "hc-opacity-100" : "hc-opacity-0 hc-pointer-events-none"}`}
|
|
55
55
|
onClick={handleReset}
|
|
56
56
|
>
|
|
57
|
-
<span className="sr-only">Clear</span>
|
|
57
|
+
<span className="hc-sr-only">Clear</span>
|
|
58
58
|
<Button.Icon icon="uil:times" className="hc-text-uiAccent" />
|
|
59
59
|
</Button.Btn>
|
|
60
60
|
</div>
|
|
@@ -7,7 +7,7 @@ import CommutePill from '~/components/modules/buttons/commute-pill';
|
|
|
7
7
|
|
|
8
8
|
const ListingDetails = ({
|
|
9
9
|
item,
|
|
10
|
-
|
|
10
|
+
recruiter,
|
|
11
11
|
travelTime,
|
|
12
12
|
useDetailsPostMessage,
|
|
13
13
|
navigateToDetails,
|
|
@@ -25,14 +25,14 @@ const ListingDetails = ({
|
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
let matchingRecruiter =
|
|
29
|
-
|
|
28
|
+
let matchingRecruiter = recruiter;
|
|
29
|
+
console.log(matchingRecruiter);
|
|
30
30
|
return (
|
|
31
31
|
<div className="hc-w-full">
|
|
32
32
|
<div className="hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4">
|
|
33
33
|
{matchingRecruiter?.headshot && (
|
|
34
34
|
<RecruiterHeadshot
|
|
35
|
-
image={
|
|
35
|
+
image={`${matchingRecruiter.headshot.includes("http") ? '' :'https:'}${matchingRecruiter.headshot}`}
|
|
36
36
|
alt={matchingRecruiter?.firstName}
|
|
37
37
|
className="hc-bg-gray-300"
|
|
38
38
|
/>
|
|
@@ -65,7 +65,7 @@ const ListingDetails = ({
|
|
|
65
65
|
</RecruiterContactNav>
|
|
66
66
|
}
|
|
67
67
|
>
|
|
68
|
-
{matchingRecruiter?.firstName
|
|
68
|
+
{matchingRecruiter?.firstName || matchingRecruiter?.lastName && (
|
|
69
69
|
<RecruiterDetails.Title>
|
|
70
70
|
{`${matchingRecruiter?.firstName} ${matchingRecruiter?.lastName}`}
|
|
71
71
|
</RecruiterDetails.Title>
|
|
@@ -19,7 +19,7 @@ const FieldMapper = ({
|
|
|
19
19
|
const specialFeaturePills = field => {
|
|
20
20
|
return field === 'position' && specialFeatures &&
|
|
21
21
|
Object.entries(specialFeatures).map(([featureKey, featureLabel]) => {
|
|
22
|
-
return item.fields[featureKey]
|
|
22
|
+
return item.fields[featureKey] == 1 && (
|
|
23
23
|
<PillWrapper key={featureKey}>{featureLabel}</PillWrapper>
|
|
24
24
|
);
|
|
25
25
|
});
|
|
@@ -17,7 +17,6 @@ interface ItemsListProps {
|
|
|
17
17
|
scrollContainerRef: RefObject<HTMLDivElement>;
|
|
18
18
|
itemRefs: any;
|
|
19
19
|
selectedListItem: Listing | null;
|
|
20
|
-
itemExpandedContent: (item: Listing, recruiters: any) => JSX.Element | null;
|
|
21
20
|
children: ReactNode;
|
|
22
21
|
includeFavorite: boolean;
|
|
23
22
|
}
|