@abcagency/hc-ui-components 1.1.1 → 1.2.0
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/.editorconfig +12 -0
- package/.eslintrc +144 -0
- package/.prettierignore +3 -0
- package/dist/_virtual/_rollupPluginBabelHelpers.js +516 -0
- package/dist/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/dist/apis/hcApi.js +189 -0
- package/dist/apis/hcApi.js.map +1 -0
- package/dist/clientToken.js +10 -0
- package/dist/clientToken.js.map +1 -0
- package/dist/components/HireControlMap.js +129 -0
- package/dist/components/HireControlMap.js.map +1 -0
- package/dist/components/modules/accordions/MapAccordionItem.js +76 -0
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -0
- package/dist/components/modules/accordions/default.js +108 -0
- package/dist/components/modules/accordions/default.js.map +1 -0
- package/dist/components/modules/accordions/filterItem.js +50 -0
- package/dist/components/modules/accordions/filterItem.js.map +1 -0
- package/dist/components/modules/accordions/filters.js +46 -0
- package/dist/components/modules/accordions/filters.js.map +1 -0
- package/dist/components/modules/buttons/button-group-apply.js +84 -0
- package/dist/components/modules/buttons/button-group-apply.js.map +1 -0
- package/dist/components/modules/buttons/commute-pill.js +18 -0
- package/dist/components/modules/buttons/commute-pill.js.map +1 -0
- package/dist/components/modules/buttons/default.js +145 -0
- package/dist/components/modules/buttons/default.js.map +1 -0
- package/dist/components/modules/buttons/items-pill.js +23 -0
- package/dist/components/modules/buttons/items-pill.js.map +1 -0
- package/dist/components/modules/buttons/pill-wrapper.js +20 -0
- package/dist/components/modules/buttons/pill-wrapper.js.map +1 -0
- package/dist/components/modules/buttons/show-all-button.js +39 -0
- package/dist/components/modules/buttons/show-all-button.js.map +1 -0
- package/dist/components/modules/cards/default.js +102 -0
- package/dist/components/modules/cards/default.js.map +1 -0
- package/dist/components/modules/cards/filter.js +38 -0
- package/dist/components/modules/cards/filter.js.map +1 -0
- package/dist/components/modules/dialogs/apply-dialog.js +46 -0
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -0
- package/dist/components/modules/filter/commute.js +184 -0
- package/dist/components/modules/filter/commute.js.map +1 -0
- package/dist/components/modules/filter/index.js +79 -0
- package/dist/components/modules/filter/index.js.map +1 -0
- package/dist/components/modules/filter/item.js +71 -0
- package/dist/components/modules/filter/item.js.map +1 -0
- package/dist/components/modules/filter/location.js +68 -0
- package/dist/components/modules/filter/location.js.map +1 -0
- package/dist/components/modules/filter/points-of-interest.js +38 -0
- package/dist/components/modules/filter/points-of-interest.js.map +1 -0
- package/dist/components/modules/filter/radio-item.js +46 -0
- package/dist/components/modules/filter/radio-item.js.map +1 -0
- package/dist/components/modules/filter/search.js +83 -0
- package/dist/components/modules/filter/search.js.map +1 -0
- package/dist/components/modules/filter/sort.js +93 -0
- package/dist/components/modules/filter/sort.js.map +1 -0
- package/dist/components/modules/grid.js +39 -0
- package/dist/components/modules/grid.js.map +1 -0
- package/dist/components/modules/icon.js +23 -0
- package/dist/components/modules/icon.js.map +1 -0
- package/dist/components/modules/jobListing/listing-details.js +69 -0
- package/dist/components/modules/jobListing/listing-details.js.map +1 -0
- package/dist/components/modules/maps/info-window-card.js +14 -0
- package/dist/components/modules/maps/info-window-card.js.map +1 -0
- package/dist/components/modules/maps/info-window-content.js +39 -0
- package/dist/components/modules/maps/info-window-content.js.map +1 -0
- package/dist/components/modules/maps/list/field-mapper.js +88 -0
- package/dist/components/modules/maps/list/field-mapper.js.map +1 -0
- package/dist/components/modules/maps/list/header-item.js +59 -0
- package/dist/components/modules/maps/list/header-item.js.map +1 -0
- package/dist/components/modules/maps/list/header.js +37 -0
- package/dist/components/modules/maps/list/header.js.map +1 -0
- package/dist/components/modules/maps/list/index.js +93 -0
- package/dist/components/modules/maps/list/index.js.map +1 -0
- package/dist/components/modules/maps/list/item-expand-card/index.js +16 -0
- package/dist/components/modules/maps/list/item-expand-card/index.js.map +1 -0
- package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js +38 -0
- package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js.map +1 -0
- package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js +40 -0
- package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js.map +1 -0
- package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js +20 -0
- package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js.map +1 -0
- package/dist/components/modules/maps/list/list-item/index.js +98 -0
- package/dist/components/modules/maps/list/list-item/index.js.map +1 -0
- package/dist/components/modules/maps/map-list.js +57 -0
- package/dist/components/modules/maps/map-list.js.map +1 -0
- package/dist/components/modules/maps/map-marker.js +85 -0
- package/dist/components/modules/maps/map-marker.js.map +1 -0
- package/dist/components/modules/maps/map.js +201 -0
- package/dist/components/modules/maps/map.js.map +1 -0
- package/dist/components/modules/maps/place-marker.js +37 -0
- package/dist/components/modules/maps/place-marker.js.map +1 -0
- package/dist/components/modules/maps/tabs.js +84 -0
- package/dist/components/modules/maps/tabs.js.map +1 -0
- package/dist/constants/placeTypes.js +11 -0
- package/dist/constants/placeTypes.js.map +1 -0
- package/dist/contexts/mapContext.js +133 -0
- package/dist/contexts/mapContext.js.map +1 -0
- package/dist/contexts/mapListContext.js +278 -0
- package/dist/contexts/mapListContext.js.map +1 -0
- package/dist/contexts/placesContext.js +152 -0
- package/dist/contexts/placesContext.js.map +1 -0
- package/dist/hooks/useList.js +119 -0
- package/dist/hooks/useList.js.map +1 -0
- package/dist/index.js +2 -4536
- package/dist/index.js.map +1 -0
- package/dist/services/_virtual/_rollupPluginBabelHelpers.js +372 -0
- package/dist/services/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/dist/services/apis/hcApi.js +189 -0
- package/dist/services/apis/hcApi.js.map +1 -0
- package/dist/services/clientToken.js +7 -0
- package/dist/services/clientToken.js.map +1 -0
- package/dist/services/configService.js +33 -0
- package/dist/services/configService.js.map +1 -0
- package/dist/services/googlePlacesNearbyService.js +61 -0
- package/dist/services/googlePlacesNearbyService.js.map +1 -0
- package/dist/services/listingAggregatorService.js +56 -0
- package/dist/services/listingAggregatorService.js.map +1 -0
- package/dist/services/listingEntityService.js +36 -0
- package/dist/services/listingEntityService.js.map +1 -0
- package/dist/services/listingService.js +60 -112
- package/dist/services/listingService.js.map +1 -0
- package/dist/services/recruiterService.js +36 -0
- package/dist/services/recruiterService.js.map +1 -0
- package/dist/services/styles/index.css +3 -0
- package/dist/styles/index.css +3 -0
- package/dist/util/filterUtil.js +213 -0
- package/dist/util/filterUtil.js.map +1 -0
- package/dist/util/loading.js +16 -0
- package/dist/util/loading.js.map +1 -0
- package/dist/util/localStorageUtil.js +32 -0
- package/dist/util/localStorageUtil.js.map +1 -0
- package/dist/util/mapIconUtil.js +73 -0
- package/dist/util/mapIconUtil.js.map +1 -0
- package/dist/util/mapUtil.js +76 -0
- package/dist/util/mapUtil.js.map +1 -0
- package/dist/util/sortUtil.js +33 -0
- package/dist/util/sortUtil.js.map +1 -0
- package/dist/util/stringUtils.js +9 -0
- package/dist/util/stringUtils.js.map +1 -0
- package/jsconfig.json +7 -0
- package/package.json +51 -38
- package/postcss.config.js +13 -15
- package/{src/tailwind/preset.default.js → preset.default.js} +15 -15
- package/rollup.config.mjs +87 -0
- package/src/apis/hcApi.js +93 -87
- package/src/clientToken.js +9 -9
- package/src/components/HireControlMap.js +120 -0
- package/src/components/modules/accordions/MapAccordionItem.js +72 -69
- package/src/components/modules/accordions/default.js +171 -173
- package/src/components/modules/accordions/filterItem.js +53 -53
- package/src/components/modules/accordions/filters.js +47 -44
- package/src/components/modules/buttons/button-group-apply.js +113 -85
- package/src/components/modules/buttons/commute-pill.js +22 -21
- package/src/components/modules/buttons/default.js +196 -196
- package/src/components/modules/buttons/items-pill.js +32 -31
- package/src/components/modules/buttons/pill-wrapper.js +27 -26
- package/src/components/modules/buttons/show-all-button.js +20 -20
- package/src/components/modules/cards/default.js +167 -168
- package/src/components/modules/cards/filter.js +56 -55
- package/src/components/modules/dialogs/apply-dialog.js +48 -47
- package/src/components/modules/filter/commute.js +148 -151
- package/src/components/modules/filter/index.js +87 -86
- package/src/components/modules/filter/item.js +76 -77
- package/src/components/modules/filter/location.js +71 -69
- package/src/components/modules/filter/points-of-interest.js +44 -43
- package/src/components/modules/filter/radio-item.js +53 -51
- package/src/components/modules/filter/search.js +92 -91
- package/src/components/modules/filter/sort.js +83 -83
- package/src/components/modules/grid.js +55 -56
- package/src/components/modules/icon.js +33 -33
- package/src/components/modules/jobListing/listing-details.js +94 -88
- package/src/components/modules/maps/info-window-card.js +17 -17
- package/src/components/modules/maps/info-window-content.js +58 -60
- package/src/components/modules/maps/list/field-mapper.js +112 -111
- package/src/components/modules/maps/list/header-item.js +91 -90
- package/src/components/modules/maps/list/header.js +47 -46
- package/src/components/modules/maps/list/index.js +107 -104
- package/src/components/modules/maps/list/item-expand-card/index.js +22 -21
- package/src/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js +50 -48
- package/src/components/modules/maps/list/item-expand-card/recruiter-details.js +68 -67
- package/src/components/modules/maps/list/item-expand-card/recruiter-headshot.js +22 -22
- package/src/components/modules/maps/list/list-item/index.js +134 -133
- package/src/components/modules/maps/map-list.js +74 -73
- package/src/components/modules/maps/map-marker.js +86 -84
- package/src/components/modules/maps/map.js +229 -226
- package/src/components/modules/maps/place-marker.js +1 -1
- package/src/components/modules/maps/tabs.js +81 -79
- package/src/constants/placeTypes.js +8 -8
- package/src/contexts/mapContext.js +20 -19
- package/src/contexts/mapListContext.js +20 -15
- package/src/contexts/placesContext.js +4 -0
- package/src/hooks/useList.js +12 -10
- package/src/index.js +3 -103
- package/src/services/configService.js +16 -16
- package/src/services/googlePlacesNearbyService.js +33 -33
- package/src/services/listingAggregatorService.js +5 -4
- package/src/services/listingEntityService.js +2 -1
- package/src/services/listingService.js +27 -28
- package/src/services/recruiterService.js +17 -17
- package/src/styles/{globals.css → index.css} +23 -23
- package/src/util/arrayUtil.js +3 -3
- package/src/util/fieldMapper.js +22 -19
- package/src/util/filterUtil.js +19 -19
- package/src/util/loading.js +17 -17
- package/src/util/localStorageUtil.js +26 -26
- package/src/util/mapIconUtil.js +3 -3
- package/src/util/sortUtil.js +32 -32
- package/src/util/stringUtils.js +6 -6
- package/{src/tailwind/tailwind.config.js → tailwind.config.js} +126 -127
- package/dist/globals.css +0 -3
- package/dist/output.css +0 -784
- package/dist/services/globals.css +0 -3
- package/rollup.config.js +0 -68
- package/src/components/layout/footer.js +0 -34
- package/src/components/layout/header.js +0 -23
- package/src/components/layout/layout.js +0 -36
- package/src/components/modules/animations/slidein.js +0 -41
- package/src/components/modules/navigation/nav-link.js +0 -65
- package/src/components/modules/navigation/navbar.js +0 -106
- package/src/components/modules/navigation/skip-link.js +0 -21
- package/src/components/modules/navigation/social.js +0 -29
- package/src/components/modules/sections/default.js +0 -59
- package/src/components/modules/sections/sectionContext.js +0 -4
- package/src/hooks/useClickOutside.js +0 -16
- package/src/hooks/useEventListener.js +0 -25
- package/src/hooks/useEventTracker.js +0 -19
- package/src/hooks/useRefScrollProgress.js +0 -24
- package/src/hooks/useScript.js +0 -63
- package/src/hooks/useScrollDirection.js +0 -39
- package/src/hooks/useSectionTracker.js +0 -95
- package/src/hooks/useUserAgent.js +0 -43
- package/src/hooks/useWindowSize.js +0 -28
- package/src/index.css +0 -25
- package/src/styles/fonts.js +0 -0
- package/src/util/page-head.js +0 -62
- package/src/util/provider.js +0 -12
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { forwardRef } from
|
|
2
|
-
import * as Select from
|
|
3
|
-
import { twMerge } from
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const FilterSort = ({ className, fields, setSortSetting, fieldNames }) => {
|
|
9
|
-
const handleSortChange = value => {
|
|
10
|
-
const [field, direction] = value.split("-");
|
|
11
|
-
setSortSetting({ field, type: direction });
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div className={className ?? ""}>
|
|
16
|
-
<Select.Root onValueChange={handleSortChange}>
|
|
17
|
-
<Select.Trigger asChild aria-label="Sort">
|
|
18
|
-
<Button.Btn variant="outline" size="sm" className="hc-normal-case">
|
|
19
|
-
<Button.Body className="hc-justify-center">
|
|
20
|
-
<Select.Value placeholder={
|
|
21
|
-
<span className="hc-flex hc-items-center hc-gap-2">
|
|
22
|
-
Sort
|
|
23
|
-
<Icon icon="mdi:sort" />
|
|
24
|
-
</span>
|
|
25
|
-
} />
|
|
26
|
-
<Select.Icon>
|
|
27
|
-
<Button.Icon icon="mdi:chevron-down" />
|
|
28
|
-
</Select.Icon>
|
|
29
|
-
</Button.Body>
|
|
30
|
-
</Button.Btn>
|
|
31
|
-
</Select.Trigger>
|
|
32
|
-
<Select.Portal>
|
|
33
|
-
<Select.Content className={`hc-relative hc-z-[200] hc-overflow-hidden hc-bg-white hc-rounded-md `}>
|
|
34
|
-
<Select.ScrollUpButton className="hc-flex hc-items-center hc-justify-center hc-h-5 hc-bg-white hc-text-primary hc-cursor-default">
|
|
35
|
-
<Icon icon="mdi:chevron-up" />
|
|
36
|
-
</Select.ScrollUpButton>
|
|
37
|
-
<Select.Viewport className="hc-p-1">
|
|
38
|
-
{fields.map(field => (
|
|
39
|
-
<Select.Group key={field}>
|
|
40
|
-
<SelectItem value={`${field}-asc`}>
|
|
41
|
-
<span className="hc-flex hc-items-center hc-justify-between hc-gap-2 hc-w-full">
|
|
42
|
-
{fieldNames[field] ?? field}
|
|
43
|
-
<Icon icon="mdi:sort-ascending" />
|
|
44
|
-
</span>
|
|
45
|
-
</SelectItem>
|
|
46
|
-
<SelectItem value={`${field}-desc`}>
|
|
47
|
-
<span className="hc-flex hc-items-center hc-justify-between hc-gap-2 w-full">
|
|
48
|
-
{fieldNames[field] ?? field}
|
|
49
|
-
<Icon icon="mdi:sort-descending" />
|
|
50
|
-
</span>
|
|
51
|
-
</SelectItem>
|
|
52
|
-
</Select.Group>
|
|
53
|
-
))}
|
|
54
|
-
</Select.Viewport>
|
|
55
|
-
<Select.ScrollDownButton className="hc-flex hc-items-center hc-justify-center hc-h-5 hc-bg-white hc-text-primary hc-cursor-default">
|
|
56
|
-
<Icon icon="mdi:chevron-down" />
|
|
57
|
-
</Select.ScrollDownButton>
|
|
58
|
-
</Select.Content>
|
|
59
|
-
</Select.Portal>
|
|
60
|
-
</Select.Root>
|
|
61
|
-
</div>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const SelectItem = forwardRef(({ children, className, ...props }, forwardedRef) => (
|
|
66
|
-
<Select.Item
|
|
67
|
-
className={twMerge(
|
|
68
|
-
"hc-text-sm hc-leading-none hc-rounded-sm hc-flex hc-items-center hc-w-full hc-py-1.5 hc-pr-4 hc-pl-7 hc-relative hc-select-none hc-cursor-pointer data-[disabled]:hc-text-gray-500 data-[disabled]:hc-pointer-events-none data-[highlighted]:hc-outline-none data-[highlighted]:hc-bg-primary data-[highlighted]:hc-text-white",
|
|
69
|
-
className
|
|
70
|
-
)}
|
|
71
|
-
{...props}
|
|
72
|
-
ref={forwardedRef}
|
|
73
|
-
>
|
|
74
|
-
<Select.ItemText>{children}</Select.ItemText>
|
|
75
|
-
<Select.ItemIndicator className="hc-absolute hc-left-0 hc-w-8 hc-inline-flex hc-items-center hc-justify-center">
|
|
76
|
-
<Icon icon="mdi:check" />
|
|
77
|
-
</Select.ItemIndicator>
|
|
78
|
-
</Select.Item>
|
|
79
|
-
));
|
|
80
|
-
|
|
81
|
-
SelectItem.displayName = "SelectItem";
|
|
82
|
-
|
|
83
|
-
export default FilterSort;
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import * as Select from '@radix-ui/react-select';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
|
|
5
|
+
import Icon from '~/components/modules/icon';
|
|
6
|
+
import Button from '~/components/modules/buttons/default';
|
|
7
|
+
|
|
8
|
+
const FilterSort = ({ className, fields, setSortSetting, fieldNames }) => {
|
|
9
|
+
const handleSortChange = value => {
|
|
10
|
+
const [field, direction] = value.split("-");
|
|
11
|
+
setSortSetting({ field, type: direction });
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className={className ?? ""}>
|
|
16
|
+
<Select.Root onValueChange={handleSortChange}>
|
|
17
|
+
<Select.Trigger asChild aria-label="Sort">
|
|
18
|
+
<Button.Btn variant="outline" size="sm" className="hc-normal-case">
|
|
19
|
+
<Button.Body className="hc-justify-center">
|
|
20
|
+
<Select.Value placeholder={
|
|
21
|
+
<span className="hc-flex hc-items-center hc-gap-2">
|
|
22
|
+
Sort
|
|
23
|
+
<Icon icon="mdi:sort" />
|
|
24
|
+
</span>
|
|
25
|
+
} />
|
|
26
|
+
<Select.Icon>
|
|
27
|
+
<Button.Icon icon="mdi:chevron-down" />
|
|
28
|
+
</Select.Icon>
|
|
29
|
+
</Button.Body>
|
|
30
|
+
</Button.Btn>
|
|
31
|
+
</Select.Trigger>
|
|
32
|
+
<Select.Portal>
|
|
33
|
+
<Select.Content className={`hc-relative hc-z-[200] hc-overflow-hidden hc-bg-white hc-rounded-md `}>
|
|
34
|
+
<Select.ScrollUpButton className="hc-flex hc-items-center hc-justify-center hc-h-5 hc-bg-white hc-text-primary hc-cursor-default">
|
|
35
|
+
<Icon icon="mdi:chevron-up" />
|
|
36
|
+
</Select.ScrollUpButton>
|
|
37
|
+
<Select.Viewport className="hc-p-1">
|
|
38
|
+
{fields.map(field => (
|
|
39
|
+
<Select.Group key={field}>
|
|
40
|
+
<SelectItem value={`${field}-asc`}>
|
|
41
|
+
<span className="hc-flex hc-items-center hc-justify-between hc-gap-2 hc-w-full">
|
|
42
|
+
{fieldNames[field] ?? field}
|
|
43
|
+
<Icon icon="mdi:sort-ascending" />
|
|
44
|
+
</span>
|
|
45
|
+
</SelectItem>
|
|
46
|
+
<SelectItem value={`${field}-desc`}>
|
|
47
|
+
<span className="hc-flex hc-items-center hc-justify-between hc-gap-2 w-full">
|
|
48
|
+
{fieldNames[field] ?? field}
|
|
49
|
+
<Icon icon="mdi:sort-descending" />
|
|
50
|
+
</span>
|
|
51
|
+
</SelectItem>
|
|
52
|
+
</Select.Group>
|
|
53
|
+
))}
|
|
54
|
+
</Select.Viewport>
|
|
55
|
+
<Select.ScrollDownButton className="hc-flex hc-items-center hc-justify-center hc-h-5 hc-bg-white hc-text-primary hc-cursor-default">
|
|
56
|
+
<Icon icon="mdi:chevron-down" />
|
|
57
|
+
</Select.ScrollDownButton>
|
|
58
|
+
</Select.Content>
|
|
59
|
+
</Select.Portal>
|
|
60
|
+
</Select.Root>
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const SelectItem = forwardRef(({ children, className, ...props }, forwardedRef) => (
|
|
66
|
+
<Select.Item
|
|
67
|
+
className={twMerge(
|
|
68
|
+
"hc-text-sm hc-leading-none hc-rounded-sm hc-flex hc-items-center hc-w-full hc-py-1.5 hc-pr-4 hc-pl-7 hc-relative hc-select-none hc-cursor-pointer data-[disabled]:hc-text-gray-500 data-[disabled]:hc-pointer-events-none data-[highlighted]:hc-outline-none data-[highlighted]:hc-bg-primary data-[highlighted]:hc-text-white",
|
|
69
|
+
className
|
|
70
|
+
)}
|
|
71
|
+
{...props}
|
|
72
|
+
ref={forwardedRef}
|
|
73
|
+
>
|
|
74
|
+
<Select.ItemText>{children}</Select.ItemText>
|
|
75
|
+
<Select.ItemIndicator className="hc-absolute hc-left-0 hc-w-8 hc-inline-flex hc-items-center hc-justify-center">
|
|
76
|
+
<Icon icon="mdi:check" />
|
|
77
|
+
</Select.ItemIndicator>
|
|
78
|
+
</Select.Item>
|
|
79
|
+
));
|
|
80
|
+
|
|
81
|
+
SelectItem.displayName = "SelectItem";
|
|
82
|
+
|
|
83
|
+
export default FilterSort;
|
|
@@ -1,56 +1,55 @@
|
|
|
1
|
-
import { forwardRef } from 'react';
|
|
2
|
-
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export default Grid;
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
const Grid = forwardRef((props, ref) => {
|
|
5
|
+
const {
|
|
6
|
+
as = 'div',
|
|
7
|
+
isAnimated = false,
|
|
8
|
+
children,
|
|
9
|
+
className,
|
|
10
|
+
autoRows = true,
|
|
11
|
+
columns = 'md:hc-grid-cols-2',
|
|
12
|
+
gap = 'hc-gap-12 lg:hc-gap-16',
|
|
13
|
+
...rest
|
|
14
|
+
} = props;
|
|
15
|
+
|
|
16
|
+
const Container = as;
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<Container
|
|
20
|
+
ref={ref}
|
|
21
|
+
className={twMerge(
|
|
22
|
+
'hc-grid',
|
|
23
|
+
gap,
|
|
24
|
+
autoRows ? 'hc-auto-rows-min' : '',
|
|
25
|
+
'hc-grid-cols-1',
|
|
26
|
+
columns,
|
|
27
|
+
className ?? ''
|
|
28
|
+
)}
|
|
29
|
+
{...rest}
|
|
30
|
+
>
|
|
31
|
+
{children}
|
|
32
|
+
</Container>
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const GridItem = ({
|
|
37
|
+
as = 'div',
|
|
38
|
+
children,
|
|
39
|
+
className
|
|
40
|
+
}) => {
|
|
41
|
+
const Container = as;
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<Container
|
|
45
|
+
className={className ?? ''}
|
|
46
|
+
>
|
|
47
|
+
{children}
|
|
48
|
+
</Container>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
Grid.Item = GridItem;
|
|
53
|
+
|
|
54
|
+
Grid.displayName = 'Grid';
|
|
55
|
+
export default Grid;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const IconContained = ({
|
|
5
|
-
className,
|
|
6
|
-
size,
|
|
7
|
-
icon,
|
|
8
|
-
iconClasses,
|
|
9
|
-
title,
|
|
10
|
-
...iconProps
|
|
11
|
-
}) => {
|
|
12
|
-
return (
|
|
13
|
-
<span
|
|
14
|
-
title={title}
|
|
15
|
-
className={`
|
|
16
|
-
hc-inline-block hc-align-middle
|
|
17
|
-
${className ?? ''}
|
|
18
|
-
${size ?? ''}
|
|
19
|
-
`}
|
|
20
|
-
>
|
|
21
|
-
<Icon
|
|
22
|
-
icon={icon}
|
|
23
|
-
className={`
|
|
24
|
-
${iconClasses ?? ''}
|
|
25
|
-
${size ?? ''}
|
|
26
|
-
`}
|
|
27
|
-
{...iconProps}
|
|
28
|
-
/>
|
|
29
|
-
</span>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default IconContained;
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Icon } from '@iconify/react';
|
|
3
|
+
|
|
4
|
+
const IconContained = ({
|
|
5
|
+
className,
|
|
6
|
+
size,
|
|
7
|
+
icon,
|
|
8
|
+
iconClasses,
|
|
9
|
+
title,
|
|
10
|
+
...iconProps
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<span
|
|
14
|
+
title={title}
|
|
15
|
+
className={`
|
|
16
|
+
hc-inline-block hc-align-middle
|
|
17
|
+
${className ?? ''}
|
|
18
|
+
${size ?? ''}
|
|
19
|
+
`}
|
|
20
|
+
>
|
|
21
|
+
<Icon
|
|
22
|
+
icon={icon}
|
|
23
|
+
className={`
|
|
24
|
+
${iconClasses ?? ''}
|
|
25
|
+
${size ?? ''}
|
|
26
|
+
`}
|
|
27
|
+
{...iconProps}
|
|
28
|
+
/>
|
|
29
|
+
</span>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default IconContained;
|
|
@@ -1,88 +1,94 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import RecruiterContactNav from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import RecruiterHeadshot from '~/components/modules/maps/list/item-expand-card/recruiter-headshot';
|
|
4
|
+
import RecruiterDetails from '~/components/modules/maps/list/item-expand-card/recruiter-details';
|
|
5
|
+
import RecruiterContactNav from '~/components/modules/maps/list/item-expand-card/recruiter-contact-nav';
|
|
6
|
+
import ApplyButtonGroup from '~/components/modules/buttons/button-group-apply';
|
|
7
|
+
import CommutePill from '~/components/modules/buttons/commute-pill';
|
|
8
|
+
|
|
9
|
+
import { useMap } from '~/contexts/mapContext';
|
|
10
|
+
import { useMapList } from '~/contexts/mapListContext';
|
|
11
|
+
|
|
12
|
+
const ListingDetails = ({ item, recruiters }) => {
|
|
13
|
+
const { travelTime } = useMap();
|
|
14
|
+
const { siteConfig, navigateToDetails, navigateToEasyApply, Link } = useMapList();
|
|
15
|
+
if (!item) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
let matchingRecruiter = !recruiters ? null : recruiters[item?.recruiterId];
|
|
19
|
+
return (
|
|
20
|
+
<div className="hc-w-full">
|
|
21
|
+
<div className="hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4">
|
|
22
|
+
{matchingRecruiter?.headshot && (
|
|
23
|
+
<RecruiterHeadshot
|
|
24
|
+
image={`https:${matchingRecruiter.headshot}`}
|
|
25
|
+
alt={matchingRecruiter?.firstName}
|
|
26
|
+
className="hc-bg-gray-300"
|
|
27
|
+
/>
|
|
28
|
+
)}
|
|
29
|
+
{matchingRecruiter && (
|
|
30
|
+
<RecruiterDetails
|
|
31
|
+
contactNav={
|
|
32
|
+
<RecruiterContactNav>
|
|
33
|
+
{matchingRecruiter?.mobilePhone && (
|
|
34
|
+
<RecruiterContactNav.Button
|
|
35
|
+
href={`tel:${matchingRecruiter.mobilePhone}`}
|
|
36
|
+
title={`Call ${matchingRecruiter.mobilePhone}`}
|
|
37
|
+
icon="fluent:phone-32-regular"
|
|
38
|
+
/>
|
|
39
|
+
)}
|
|
40
|
+
{matchingRecruiter?.email && (
|
|
41
|
+
<RecruiterContactNav.Button
|
|
42
|
+
href={`mailto:${matchingRecruiter.email}`}
|
|
43
|
+
title={`email ${matchingRecruiter.email}`}
|
|
44
|
+
icon="bi:envelope-at"
|
|
45
|
+
/>
|
|
46
|
+
)}
|
|
47
|
+
{matchingRecruiter?.linkedIn && (
|
|
48
|
+
<RecruiterContactNav.Button
|
|
49
|
+
href={matchingRecruiter.linkedIn}
|
|
50
|
+
title="LinkedIn"
|
|
51
|
+
icon="ant-design:linkedin-outlined"
|
|
52
|
+
/>
|
|
53
|
+
)}
|
|
54
|
+
</RecruiterContactNav>
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
{matchingRecruiter?.firstName && matchingRecruiter?.lastName && (
|
|
58
|
+
<RecruiterDetails.Title>
|
|
59
|
+
{`${matchingRecruiter?.firstName} ${matchingRecruiter?.lastName}`}
|
|
60
|
+
</RecruiterDetails.Title>
|
|
61
|
+
)}
|
|
62
|
+
{item.details?.recruiter?.title && (
|
|
63
|
+
<RecruiterDetails.Text>
|
|
64
|
+
{item.details.recruiter.title}
|
|
65
|
+
</RecruiterDetails.Text>
|
|
66
|
+
)}
|
|
67
|
+
</RecruiterDetails>
|
|
68
|
+
)}
|
|
69
|
+
<ApplyButtonGroup
|
|
70
|
+
useDetailsPostMessage={siteConfig.useDetailsPostMessage}
|
|
71
|
+
navigateToDetails={navigateToDetails}
|
|
72
|
+
navigateToEasyApply={navigateToEasyApply}
|
|
73
|
+
Link={Link}
|
|
74
|
+
includeDialog={siteConfig.useApplyDialog}
|
|
75
|
+
internalApplyLink={siteConfig.internalApplyLink}
|
|
76
|
+
companyName={siteConfig.companyName}
|
|
77
|
+
applyUrl={item?.applyUrl}
|
|
78
|
+
itemId={item.id}
|
|
79
|
+
item={item}
|
|
80
|
+
detailsUrl={item.useClientJobUrl ? item?.detailsUrl : `${siteConfig.jobsDomain}${item.id}`}
|
|
81
|
+
className={`
|
|
82
|
+
lg:hc-w-auto hc-order-first lg:hc-order-last md:hc-self-center hc-py-2 lg:hc-p-0 lg:hc-mb-0 hc-border-b lg:hc-border-none hc-border-uiAccent/20
|
|
83
|
+
${matchingRecruiter ? "lg:hc-flex-col lg:hc-w-auto" : "lg:hc-flex-row"}
|
|
84
|
+
`}
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
<div className="hc-w-full">
|
|
88
|
+
<CommutePill travelTime={travelTime} className="hc-ml-0" />
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default ListingDetails;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const CardInfoWindow = ({ className, content, id }) => {
|
|
4
|
-
return (
|
|
5
|
-
<div
|
|
6
|
-
id={id}
|
|
7
|
-
className={`
|
|
8
|
-
hc-relative hc-flex hc-flex-col hc-break-words hc-bg-clip-border
|
|
9
|
-
${className ?? ""}
|
|
10
|
-
`}
|
|
11
|
-
>
|
|
12
|
-
{content}
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default CardInfoWindow;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
const CardInfoWindow = ({ className, content, id }) => {
|
|
4
|
+
return (
|
|
5
|
+
<div
|
|
6
|
+
id={id}
|
|
7
|
+
className={`
|
|
8
|
+
hc-relative hc-flex hc-flex-col hc-break-words hc-bg-clip-border
|
|
9
|
+
${className ?? ""}
|
|
10
|
+
`}
|
|
11
|
+
>
|
|
12
|
+
{content}
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default CardInfoWindow;
|