@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.
Files changed (120) hide show
  1. package/{bundle.js → bundleDist/bundle.js} +30 -19
  2. package/bundleDist/bundle.js.map +1 -0
  3. package/bundleDist/dist/styles/index.css +3 -0
  4. package/bundleDist/dist/types/apis/hcApi.d.ts +5 -0
  5. package/bundleDist/dist/types/clientToken.d.ts +2 -0
  6. package/bundleDist/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +12 -0
  7. package/bundleDist/dist/types/components/containers/jobListing/listing-details-container.d.ts +6 -0
  8. package/bundleDist/dist/types/components/containers/list/item-list-container.d.ts +9 -0
  9. package/bundleDist/dist/types/components/containers/list/list-item/list-item-container.d.ts +14 -0
  10. package/bundleDist/dist/types/components/modules/accordions/MapAccordionItem.d.ts +10 -0
  11. package/bundleDist/dist/types/components/modules/accordions/default.d.ts +19 -0
  12. package/bundleDist/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -0
  13. package/bundleDist/dist/types/components/modules/buttons/commute-pill.d.ts +5 -0
  14. package/bundleDist/dist/types/components/modules/buttons/default.d.ts +48 -0
  15. package/bundleDist/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -0
  16. package/bundleDist/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -0
  17. package/bundleDist/dist/types/components/modules/filter/sort.d.ts +8 -0
  18. package/bundleDist/dist/types/components/modules/grid.d.ts +8 -0
  19. package/bundleDist/dist/types/components/modules/icon.d.ts +10 -0
  20. package/bundleDist/dist/types/components/modules/jobListing/listing-details.d.ts +18 -0
  21. package/bundleDist/dist/types/components/modules/list/field-mapper.d.ts +10 -0
  22. package/bundleDist/dist/types/components/modules/list/header-item.d.ts +11 -0
  23. package/bundleDist/dist/types/components/modules/list/header.d.ts +11 -0
  24. package/bundleDist/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -0
  25. package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -0
  26. package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -0
  27. package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -0
  28. package/bundleDist/dist/types/components/modules/list/item-list.d.ts +20 -0
  29. package/bundleDist/dist/types/components/modules/list/list-item/list-item.d.ts +3 -0
  30. package/bundleDist/dist/types/constants/eventTypes.d.ts +13 -0
  31. package/bundleDist/dist/types/contexts/mapContext.d.ts +29 -0
  32. package/bundleDist/dist/types/contexts/mapListContext.d.ts +59 -0
  33. package/bundleDist/dist/types/contexts/trackEventContext.d.ts +6 -0
  34. package/bundleDist/dist/types/enums/SectionType.d.ts +9 -0
  35. package/bundleDist/dist/types/hooks/useList.d.ts +13 -0
  36. package/bundleDist/dist/types/services/configService.d.ts +6 -0
  37. package/bundleDist/dist/types/services/googlePlacesNearbyService.d.ts +5 -0
  38. package/bundleDist/dist/types/services/listingAggregatorService.d.ts +12 -0
  39. package/bundleDist/dist/types/services/listingEntityService.d.ts +6 -0
  40. package/bundleDist/dist/types/services/listingService.d.ts +9 -0
  41. package/bundleDist/dist/types/services/recruiterService.d.ts +6 -0
  42. package/bundleDist/dist/types/types/Address.d.ts +7 -0
  43. package/bundleDist/dist/types/types/ContentSection.d.ts +8 -0
  44. package/bundleDist/dist/types/types/GetListingParams.d.ts +8 -0
  45. package/bundleDist/dist/types/types/LatLng.d.ts +4 -0
  46. package/bundleDist/dist/types/types/ListingEntity.d.ts +10 -0
  47. package/bundleDist/dist/types/types/ListingFields.d.ts +25 -0
  48. package/bundleDist/dist/types/types/Listings.d.ts +31 -0
  49. package/bundleDist/dist/types/types/Recruiter.d.ts +9 -0
  50. package/bundleDist/dist/types/types/SimilarListing.d.ts +24 -0
  51. package/bundleDist/dist/types/types/config/Colors.d.ts +8 -0
  52. package/bundleDist/dist/types/types/config/MapConfig.d.ts +30 -0
  53. package/bundleDist/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -0
  54. package/bundleDist/dist/types/types/config/SearchConfig.d.ts +4 -0
  55. package/bundleDist/dist/types/util/filterUtil.d.ts +28 -0
  56. package/bundleDist/dist/types/util/loading.d.ts +3 -0
  57. package/bundleDist/dist/types/util/localStorageUtil.d.ts +3 -0
  58. package/bundleDist/dist/types/util/mapUtil.d.ts +15 -0
  59. package/bundleDist/dist/types/util/sortUtil.d.ts +1 -0
  60. package/bundleDist/dist/types/util/stringUtils.d.ts +1 -0
  61. package/bundleDist/dist/types/util/urlFilterUtil.d.ts +8 -0
  62. package/bundleDist/styles/index.css +3 -0
  63. package/dist/components/containers/accordions/filter-container.js +4 -2
  64. package/dist/components/containers/accordions/filter-container.js.map +1 -1
  65. package/dist/components/containers/accordions/filter-item-container.js +6 -1
  66. package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
  67. package/dist/components/containers/accordions/map-accordion-item-container.js +4 -2
  68. package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
  69. package/dist/components/containers/jobListing/listing-details-container.js +2 -2
  70. package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
  71. package/dist/components/containers/list/item-list-container.js +2 -2
  72. package/dist/components/containers/list/item-list-container.js.map +1 -1
  73. package/dist/components/modules/accordions/MapAccordionItem.js +2 -1
  74. package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
  75. package/dist/components/modules/dialogs/apply-dialog.js +1 -1
  76. package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
  77. package/dist/components/modules/filter/search.js +1 -1
  78. package/dist/components/modules/filter/search.js.map +1 -1
  79. package/dist/components/modules/jobListing/listing-details.js +5 -4
  80. package/dist/components/modules/jobListing/listing-details.js.map +1 -1
  81. package/dist/components/modules/list/field-mapper.js +1 -1
  82. package/dist/components/modules/list/field-mapper.js.map +1 -1
  83. package/dist/components/modules/list/item-list.js.map +1 -1
  84. package/dist/contexts/mapListContext.js.map +1 -1
  85. package/dist/services/listingAggregatorService.js.map +1 -1
  86. package/dist/styles/index.css +3 -1
  87. package/dist/types/components/containers/jobListing/listing-details-container.d.ts +2 -2
  88. package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +2 -1
  89. package/dist/types/components/modules/jobListing/listing-details.d.ts +2 -2
  90. package/dist/types/components/modules/list/item-list.d.ts +0 -1
  91. package/dist/types/types/ListingFields.d.ts +5 -0
  92. package/dist/types/types/config/MapConfig.d.ts +1 -0
  93. package/dist/util/filterUtil.js +2 -2
  94. package/dist/util/filterUtil.js.map +1 -1
  95. package/package.json +1 -1
  96. package/postcss.config.js +5 -4
  97. package/rollup.config.mjs +1 -1
  98. package/src/components/containers/accordions/filter-container.js +2 -1
  99. package/src/components/containers/accordions/filter-item-container.js +66 -62
  100. package/src/components/containers/accordions/map-accordion-item-container.js +70 -70
  101. package/src/components/containers/jobListing/listing-details-container.js +2 -2
  102. package/src/components/containers/list/item-list-container.tsx +2 -3
  103. package/src/components/modules/accordions/MapAccordionItem.js +30 -29
  104. package/src/components/modules/dialogs/apply-dialog.js +48 -48
  105. package/src/components/modules/filter/search.js +1 -1
  106. package/src/components/modules/jobListing/listing-details.js +5 -5
  107. package/src/components/modules/list/field-mapper.js +1 -1
  108. package/src/components/modules/list/item-list.tsx +0 -1
  109. package/src/contexts/mapListContext.tsx +311 -311
  110. package/src/services/listingAggregatorService.ts +76 -76
  111. package/src/styles/index.css +14 -115
  112. package/src/types/ListingFields.ts +5 -0
  113. package/src/types/config/MapConfig.ts +1 -0
  114. package/src/util/filterUtil.js +239 -239
  115. package/stats.html +1 -1
  116. package/tailwind.config.js +4 -4
  117. package/bundle.js.map +0 -1
  118. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
  119. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  120. 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
- recruiters,
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 = !recruiters ? null : recruiters[item?.recruiterId];
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={`https:${matchingRecruiter.headshot}`}
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 && matchingRecruiter?.lastName && (
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] === 1 && (
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
  }