@next-degree/pickle-shared-js 0.12.7 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{company_service_sanity-2J1ZuUnu.d.cts → company_service_sanity-ByIKe90u.d.cts} +560 -560
- package/dist/{company_service_sanity-KaAGfnNV.d.ts → company_service_sanity-DbYwWmnS.d.ts} +560 -560
- package/dist/components/buttons/BackButton.cjs +5 -8
- package/dist/components/buttons/BackButton.cjs.map +1 -1
- package/dist/components/buttons/BackButton.d.cts +2 -2
- package/dist/components/buttons/BackButton.d.ts +2 -2
- package/dist/components/buttons/BackButton.js +5 -8
- package/dist/components/buttons/BackButton.js.map +1 -1
- package/dist/components/company/CompanyBenefits.cjs +1 -5
- package/dist/components/company/CompanyBenefits.cjs.map +1 -1
- package/dist/components/company/CompanyBenefits.d.cts +2 -2
- package/dist/components/company/CompanyBenefits.d.ts +2 -2
- package/dist/components/company/CompanyBenefits.js +1 -5
- package/dist/components/company/CompanyBenefits.js.map +1 -1
- package/dist/components/company/CompanyInformation.cjs +23 -44
- package/dist/components/company/CompanyInformation.cjs.map +1 -1
- package/dist/components/company/CompanyInformation.d.cts +2 -2
- package/dist/components/company/CompanyInformation.d.ts +2 -2
- package/dist/components/company/CompanyInformation.js +23 -44
- package/dist/components/company/CompanyInformation.js.map +1 -1
- package/dist/components/company/CompanyTake.cjs +12 -26
- package/dist/components/company/CompanyTake.cjs.map +1 -1
- package/dist/components/company/CompanyTake.d.cts +2 -2
- package/dist/components/company/CompanyTake.d.ts +2 -2
- package/dist/components/company/CompanyTake.js +12 -26
- package/dist/components/company/CompanyTake.js.map +1 -1
- package/dist/components/jobCard/JobLocation.cjs +23 -34
- package/dist/components/jobCard/JobLocation.cjs.map +1 -1
- package/dist/components/jobCard/JobLocation.d.cts +3 -3
- package/dist/components/jobCard/JobLocation.d.ts +3 -3
- package/dist/components/jobCard/JobLocation.js +23 -34
- package/dist/components/jobCard/JobLocation.js.map +1 -1
- package/dist/components/jobPost/JobDescription.cjs +164 -30
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.d.cts +2 -2
- package/dist/components/jobPost/JobDescription.d.ts +2 -2
- package/dist/components/jobPost/JobDescription.js +164 -30
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobHeader.cjs +110 -138
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.d.cts +2 -2
- package/dist/components/jobPost/JobHeader.d.ts +2 -2
- package/dist/components/jobPost/JobHeader.js +110 -138
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +382 -318
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +3 -3
- package/dist/components/jobPost/JobPost.d.ts +3 -3
- package/dist/components/jobPost/JobPost.js +344 -280
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/avatar.cjs +3 -4
- package/dist/components/primitives/avatar.cjs.map +1 -1
- package/dist/components/primitives/avatar.js +3 -4
- package/dist/components/primitives/avatar.js.map +1 -1
- package/dist/components/primitives/command.cjs +37 -50
- package/dist/components/primitives/command.cjs.map +1 -1
- package/dist/components/primitives/command.d.cts +5 -6
- package/dist/components/primitives/command.d.ts +5 -6
- package/dist/components/primitives/command.js +37 -50
- package/dist/components/primitives/command.js.map +1 -1
- package/dist/components/primitives/dialog.cjs +18 -27
- package/dist/components/primitives/dialog.cjs.map +1 -1
- package/dist/components/primitives/dialog.d.cts +2 -3
- package/dist/components/primitives/dialog.d.ts +2 -3
- package/dist/components/primitives/dialog.js +18 -27
- package/dist/components/primitives/dialog.js.map +1 -1
- package/dist/components/primitives/input-otp.cjs +8 -11
- package/dist/components/primitives/input-otp.cjs.map +1 -1
- package/dist/components/primitives/input-otp.d.cts +2 -2
- package/dist/components/primitives/input-otp.d.ts +2 -2
- package/dist/components/primitives/input-otp.js +8 -11
- package/dist/components/primitives/input-otp.js.map +1 -1
- package/dist/components/primitives/popover.cjs +2 -3
- package/dist/components/primitives/popover.cjs.map +1 -1
- package/dist/components/primitives/popover.js +2 -3
- package/dist/components/primitives/popover.js.map +1 -1
- package/dist/components/primitives/radio-group.cjs +12 -16
- package/dist/components/primitives/radio-group.cjs.map +1 -1
- package/dist/components/primitives/radio-group.js +12 -16
- package/dist/components/primitives/radio-group.js.map +1 -1
- package/dist/components/primitives/separator.cjs +1 -2
- package/dist/components/primitives/separator.cjs.map +1 -1
- package/dist/components/primitives/separator.js +1 -2
- package/dist/components/primitives/separator.js.map +1 -1
- package/dist/components/primitives/tooltip.cjs +1 -2
- package/dist/components/primitives/tooltip.cjs.map +1 -1
- package/dist/components/primitives/tooltip.js +1 -2
- package/dist/components/primitives/tooltip.js.map +1 -1
- package/dist/components/ui/Avatar.cjs +6 -11
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.d.cts +3 -3
- package/dist/components/ui/Avatar.d.ts +3 -3
- package/dist/components/ui/Avatar.js +6 -11
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/Badge.cjs +12 -2
- package/dist/components/ui/Badge.cjs.map +1 -1
- package/dist/components/ui/Badge.d.cts +1 -2
- package/dist/components/ui/Badge.d.ts +1 -2
- package/dist/components/ui/Badge.js +2 -2
- package/dist/components/ui/Badge.js.map +1 -1
- package/dist/components/ui/Button.cjs +163 -8
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.cts +4 -8
- package/dist/components/ui/Button.d.ts +4 -8
- package/dist/components/ui/Button.js +153 -8
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +18 -28
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.js +18 -28
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +12 -2
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.cts +1 -2
- package/dist/components/ui/Chip.d.ts +1 -2
- package/dist/components/ui/Chip.js +2 -2
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/Combobox.cjs +171 -233
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.js +171 -233
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/Counter.cjs +56 -74
- package/dist/components/ui/Counter.cjs.map +1 -1
- package/dist/components/ui/Counter.js +56 -74
- package/dist/components/ui/Counter.js.map +1 -1
- package/dist/components/ui/DatePicker.cjs +44 -68
- package/dist/components/ui/DatePicker.cjs.map +1 -1
- package/dist/components/ui/DatePicker.js +44 -68
- package/dist/components/ui/DatePicker.js.map +1 -1
- package/dist/components/ui/DismissibleBanner.cjs +13 -16
- package/dist/components/ui/DismissibleBanner.cjs.map +1 -1
- package/dist/components/ui/DismissibleBanner.d.cts +2 -2
- package/dist/components/ui/DismissibleBanner.d.ts +2 -2
- package/dist/components/ui/DismissibleBanner.js +13 -16
- package/dist/components/ui/DismissibleBanner.js.map +1 -1
- package/dist/components/ui/ErrorMessage.cjs +1 -2
- package/dist/components/ui/ErrorMessage.cjs.map +1 -1
- package/dist/components/ui/ErrorMessage.d.cts +2 -2
- package/dist/components/ui/ErrorMessage.d.ts +2 -2
- package/dist/components/ui/ErrorMessage.js +1 -2
- package/dist/components/ui/ErrorMessage.js.map +1 -1
- package/dist/components/ui/Icon.cjs +1 -2
- package/dist/components/ui/Icon.cjs.map +1 -1
- package/dist/components/ui/Icon.js +1 -2
- package/dist/components/ui/Icon.js.map +1 -1
- package/dist/components/ui/Input.cjs +48 -68
- package/dist/components/ui/Input.cjs.map +1 -1
- package/dist/components/ui/Input.js +48 -68
- package/dist/components/ui/Input.js.map +1 -1
- package/dist/components/ui/InputOtp.cjs +56 -73
- package/dist/components/ui/InputOtp.cjs.map +1 -1
- package/dist/components/ui/InputOtp.js +56 -73
- package/dist/components/ui/InputOtp.js.map +1 -1
- package/dist/components/ui/Label.cjs +14 -24
- package/dist/components/ui/Label.cjs.map +1 -1
- package/dist/components/ui/Label.d.cts +2 -2
- package/dist/components/ui/Label.d.ts +2 -2
- package/dist/components/ui/Label.js +14 -24
- package/dist/components/ui/Label.js.map +1 -1
- package/dist/components/ui/LinkButton.cjs +5 -5
- package/dist/components/ui/LinkButton.cjs.map +1 -1
- package/dist/components/ui/LinkButton.d.cts +1 -2
- package/dist/components/ui/LinkButton.d.ts +1 -2
- package/dist/components/ui/LinkButton.js +5 -5
- package/dist/components/ui/LinkButton.js.map +1 -1
- package/dist/components/ui/ListItem.cjs +32 -48
- package/dist/components/ui/ListItem.cjs.map +1 -1
- package/dist/components/ui/ListItem.d.cts +2 -2
- package/dist/components/ui/ListItem.d.ts +2 -2
- package/dist/components/ui/ListItem.js +32 -48
- package/dist/components/ui/ListItem.js.map +1 -1
- package/dist/components/ui/Map/ClusterMarker.cjs +80 -0
- package/dist/components/ui/Map/ClusterMarker.cjs.map +1 -0
- package/dist/components/ui/Map/ClusterMarker.d.cts +6 -0
- package/dist/components/ui/Map/ClusterMarker.d.ts +6 -0
- package/dist/components/ui/Map/ClusterMarker.js +56 -0
- package/dist/components/ui/Map/ClusterMarker.js.map +1 -0
- package/dist/components/ui/Map/FocusCircle.cjs +86 -0
- package/dist/components/ui/Map/FocusCircle.cjs.map +1 -0
- package/dist/components/ui/Map/FocusCircle.d.cts +5 -0
- package/dist/components/ui/Map/FocusCircle.d.ts +5 -0
- package/dist/components/ui/Map/FocusCircle.js +62 -0
- package/dist/components/ui/Map/FocusCircle.js.map +1 -0
- package/dist/components/ui/Map/IndividualMarker.cjs +60 -0
- package/dist/components/ui/Map/IndividualMarker.cjs.map +1 -0
- package/dist/components/ui/Map/IndividualMarker.d.cts +6 -0
- package/dist/components/ui/Map/IndividualMarker.d.ts +6 -0
- package/dist/components/ui/Map/IndividualMarker.js +36 -0
- package/dist/components/ui/Map/IndividualMarker.js.map +1 -0
- package/dist/components/ui/Map/MapComponent.cjs +401 -0
- package/dist/components/ui/Map/MapComponent.cjs.map +1 -0
- package/dist/components/ui/Map/MapComponent.d.cts +6 -0
- package/dist/components/ui/Map/MapComponent.d.ts +6 -0
- package/dist/components/ui/Map/MapComponent.js +367 -0
- package/dist/components/ui/Map/MapComponent.js.map +1 -0
- package/dist/components/ui/Map/MapContent.cjs +279 -0
- package/dist/components/ui/Map/MapContent.cjs.map +1 -0
- package/dist/components/ui/Map/MapContent.d.cts +6 -0
- package/dist/components/ui/Map/MapContent.d.ts +6 -0
- package/dist/components/ui/Map/MapContent.js +255 -0
- package/dist/components/ui/Map/MapContent.js.map +1 -0
- package/dist/components/ui/Map/clustering.cjs +105 -0
- package/dist/components/ui/Map/clustering.cjs.map +1 -0
- package/dist/components/ui/Map/clustering.d.cts +17 -0
- package/dist/components/ui/Map/clustering.d.ts +17 -0
- package/dist/components/ui/Map/clustering.js +77 -0
- package/dist/components/ui/Map/clustering.js.map +1 -0
- package/dist/components/ui/Map/constants.cjs +65 -0
- package/dist/components/ui/Map/constants.cjs.map +1 -0
- package/dist/components/ui/Map/constants.d.cts +28 -0
- package/dist/components/ui/Map/constants.d.ts +28 -0
- package/dist/components/ui/Map/constants.js +34 -0
- package/dist/components/ui/Map/constants.js.map +1 -0
- package/dist/components/ui/Map/hooks.cjs +96 -0
- package/dist/components/ui/Map/hooks.cjs.map +1 -0
- package/dist/components/ui/Map/hooks.d.cts +17 -0
- package/dist/components/ui/Map/hooks.d.ts +17 -0
- package/dist/components/ui/Map/hooks.js +59 -0
- package/dist/components/ui/Map/hooks.js.map +1 -0
- package/dist/components/ui/Map/index.cjs +402 -0
- package/dist/components/ui/Map/index.cjs.map +1 -0
- package/dist/components/ui/Map/index.d.cts +3 -0
- package/dist/components/ui/Map/index.d.ts +3 -0
- package/dist/components/ui/Map/index.js +365 -0
- package/dist/components/ui/Map/index.js.map +1 -0
- package/dist/components/ui/Map/types.cjs +19 -0
- package/dist/components/ui/Map/types.cjs.map +1 -0
- package/dist/components/ui/Map/types.d.cts +82 -0
- package/dist/components/ui/Map/types.d.ts +82 -0
- package/dist/components/ui/Map/types.js +1 -0
- package/dist/components/ui/Map/types.js.map +1 -0
- package/dist/components/ui/Map/utils.cjs +80 -0
- package/dist/components/ui/Map/utils.cjs.map +1 -0
- package/dist/components/ui/Map/utils.d.cts +9 -0
- package/dist/components/ui/Map/utils.d.ts +9 -0
- package/dist/components/ui/Map/utils.js +49 -0
- package/dist/components/ui/Map/utils.js.map +1 -0
- package/dist/components/ui/PlacesQueryInput.cjs +71 -94
- package/dist/components/ui/PlacesQueryInput.cjs.map +1 -1
- package/dist/components/ui/PlacesQueryInput.d.cts +2 -2
- package/dist/components/ui/PlacesQueryInput.d.ts +2 -2
- package/dist/components/ui/PlacesQueryInput.js +71 -94
- package/dist/components/ui/PlacesQueryInput.js.map +1 -1
- package/dist/components/ui/Radio.cjs +49 -69
- package/dist/components/ui/Radio.cjs.map +1 -1
- package/dist/components/ui/Radio.js +49 -69
- package/dist/components/ui/Radio.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs +163 -25
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.d.cts +2 -2
- package/dist/components/ui/ReadMore.d.ts +2 -2
- package/dist/components/ui/ReadMore.js +163 -25
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/Select.cjs +138 -172
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +132 -166
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/StepTabs.cjs +24 -27
- package/dist/components/ui/StepTabs.cjs.map +1 -1
- package/dist/components/ui/StepTabs.d.cts +3 -3
- package/dist/components/ui/StepTabs.d.ts +3 -3
- package/dist/components/ui/StepTabs.js +24 -27
- package/dist/components/ui/StepTabs.js.map +1 -1
- package/dist/components/ui/Switch.cjs +13 -21
- package/dist/components/ui/Switch.cjs.map +1 -1
- package/dist/components/ui/Switch.js +13 -21
- package/dist/components/ui/Switch.js.map +1 -1
- package/dist/components/ui/buttonShadcn.cjs +1 -2
- package/dist/components/ui/buttonShadcn.cjs.map +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/components/ui/buttonShadcn.js +1 -2
- package/dist/components/ui/buttonShadcn.js.map +1 -1
- package/dist/components/ui/calendar.cjs +5 -6
- package/dist/components/ui/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar.d.cts +1 -2
- package/dist/components/ui/calendar.d.ts +1 -2
- package/dist/components/ui/calendar.js +5 -6
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/contexts/WindowHistoryProvider.cjs +1 -2
- package/dist/contexts/WindowHistoryProvider.cjs.map +1 -1
- package/dist/contexts/WindowHistoryProvider.d.cts +1 -2
- package/dist/contexts/WindowHistoryProvider.d.ts +1 -2
- package/dist/contexts/WindowHistoryProvider.js +1 -2
- package/dist/contexts/WindowHistoryProvider.js.map +1 -1
- package/dist/{displayText-DahwdHdi.d.ts → displayText-Ce_aqgGP.d.ts} +2 -2
- package/dist/{displayText-DW0qiJqh.d.cts → displayText-Cm8PqS6s.d.cts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/hooks/useWindowHistory.cjs +0 -1
- package/dist/hooks/useWindowHistory.cjs.map +1 -1
- package/dist/hooks/useWindowHistory.d.cts +0 -1
- package/dist/hooks/useWindowHistory.d.ts +0 -1
- package/dist/hooks/useWindowHistory.js +0 -1
- package/dist/hooks/useWindowHistory.js.map +1 -1
- package/dist/index.cjs +1343 -1111
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1293 -1061
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-BKo9TBDT.d.ts → job_posting_service_sanity-1eG3Jh9_.d.ts} +496 -496
- package/dist/{job_posting_service_sanity-BNq-Am9N.d.cts → job_posting_service_sanity-DKYye6oH.d.cts} +496 -496
- package/dist/lib/locations.d.cts +3 -3
- package/dist/lib/locations.d.ts +3 -3
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/styles/globals.css +179 -6
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/company_service_latest.d.cts +1 -1
- package/dist/types/data/company_service_latest.d.ts +1 -1
- package/dist/types/data/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
- package/dist/types/index.d.cts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/latest/company_service_latest.d.cts +1 -1
- package/dist/types/latest/company_service_latest.d.ts +1 -1
- package/dist/types/latest/custom/company_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/company_service_sanity.d.ts +3 -3
- package/dist/types/latest/custom/job_posting_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/job_posting_service_sanity.d.ts +3 -3
- package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
- package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.ts +1 -1
- package/package.json +5 -3
- package/dist/components/ui/MapComponent.cjs +0 -61
- package/dist/components/ui/MapComponent.cjs.map +0 -1
- package/dist/components/ui/MapComponent.d.cts +0 -15
- package/dist/components/ui/MapComponent.d.ts +0 -15
- package/dist/components/ui/MapComponent.js +0 -41
- package/dist/components/ui/MapComponent.js.map +0 -1
- package/dist/{company_service_latest-CITz7F53.d.cts → company_service_latest-BjyG4KCB.d.cts} +319 -319
- package/dist/{company_service_latest-CITz7F53.d.ts → company_service_latest-BjyG4KCB.d.ts} +319 -319
- package/dist/{company_service_latest-C7Moeufo.d.cts → company_service_latest-KJi2W9Ij.d.cts} +319 -319
- package/dist/{company_service_latest-C7Moeufo.d.ts → company_service_latest-KJi2W9Ij.d.ts} +319 -319
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.cts → job_posting_service_latest-82DHqOGu.d.cts} +274 -274
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.ts → job_posting_service_latest-82DHqOGu.d.ts} +274 -274
- package/dist/{job_posting_service_latest-C_TEBzCf.d.cts → job_posting_service_latest-D9I5NE7l.d.cts} +274 -274
- package/dist/{job_posting_service_latest-C_TEBzCf.d.ts → job_posting_service_latest-D9I5NE7l.d.ts} +274 -274
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.cts → shared_pickle_output_latest-YbRs_xtC.d.cts} +22 -22
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.ts → shared_pickle_output_latest-YbRs_xtC.d.ts} +22 -22
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.cts → shared_pickle_output_latest-dO-t8iZx.d.cts} +22 -22
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.ts → shared_pickle_output_latest-dO-t8iZx.d.ts} +22 -22
|
@@ -37,18 +37,14 @@ module.exports = __toCommonJS(JobPost_exports);
|
|
|
37
37
|
var DateFns = __toESM(require("date-fns"), 1);
|
|
38
38
|
|
|
39
39
|
// src/components/company/CompanyBenefits.tsx
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
40
|
function CompanyBenefits({ benefits }) {
|
|
42
41
|
if (!benefits) return null;
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg", children: "Company benefits" }),
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
46
|
-
] });
|
|
42
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits" }, /* @__PURE__ */ React.createElement("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg" }, "Company benefits"), /* @__PURE__ */ React.createElement("ul", { className: "flex flex-col gap-3" }, benefits.map((benefit, i) => /* @__PURE__ */ React.createElement("li", { key: `${benefit}-${i}`, className: "text-base text-grey-80" }, benefit))));
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
// src/components/ui/LinkButton.tsx
|
|
50
46
|
var import_link = __toESM(require("next/link"), 1);
|
|
51
|
-
var
|
|
47
|
+
var import_react = __toESM(require("react"), 1);
|
|
52
48
|
var LinkButton = ({
|
|
53
49
|
disabled = false,
|
|
54
50
|
useAnchor = false,
|
|
@@ -57,20 +53,19 @@ var LinkButton = ({
|
|
|
57
53
|
...props
|
|
58
54
|
}) => {
|
|
59
55
|
const Component = useAnchor ? "a" : import_link.default;
|
|
60
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
61
57
|
Component,
|
|
62
58
|
{
|
|
63
59
|
href,
|
|
64
60
|
className: `inline-flex items-center justify-center gap-2 rounded-full text-sm font-bold leading-tight text-black underline outline-dashed outline-2 outline-offset-2 outline-transparent hover:text-purple-100 focus:text-black focus:outline-purple-100 active:text-purple-80 ${disabled ? "pointer-events-none text-grey-40" : ""} `,
|
|
65
61
|
...disabled && { "aria-disabled": true, tabIndex: -1 },
|
|
66
|
-
...props
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
...props
|
|
63
|
+
},
|
|
64
|
+
children
|
|
69
65
|
);
|
|
70
66
|
};
|
|
71
67
|
|
|
72
68
|
// src/components/company/CompanyInformation.tsx
|
|
73
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
74
69
|
function CompanyInformation({
|
|
75
70
|
name,
|
|
76
71
|
how,
|
|
@@ -78,44 +73,24 @@ function CompanyInformation({
|
|
|
78
73
|
wow,
|
|
79
74
|
website
|
|
80
75
|
}) {
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
] })
|
|
100
|
-
] }),
|
|
101
|
-
wow && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex gap-2", children: [
|
|
102
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "\u{1F31F}" }),
|
|
103
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("p", { className: "text-base text-grey-80", children: [
|
|
104
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
105
|
-
wow
|
|
106
|
-
] })
|
|
107
|
-
] }),
|
|
108
|
-
website && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
109
|
-
LinkButton,
|
|
110
|
-
{
|
|
111
|
-
"data-testid": "company-website-link",
|
|
112
|
-
href: website,
|
|
113
|
-
target: "_blank",
|
|
114
|
-
rel: "noopener noreferrer",
|
|
115
|
-
children: "Website"
|
|
116
|
-
}
|
|
117
|
-
) })
|
|
118
|
-
] });
|
|
76
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-2" }, /* @__PURE__ */ React.createElement(
|
|
77
|
+
"h2",
|
|
78
|
+
{
|
|
79
|
+
"data-testid": "company-name",
|
|
80
|
+
className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg"
|
|
81
|
+
},
|
|
82
|
+
"About ",
|
|
83
|
+
name
|
|
84
|
+
), how && /* @__PURE__ */ React.createElement("p", { "data-testid": "company-information", className: "text-base text-grey-80" }, how), mission && /* @__PURE__ */ React.createElement("div", { className: "flex gap-2" }, /* @__PURE__ */ React.createElement("span", null, "\u{1F680}"), /* @__PURE__ */ React.createElement("p", { className: "text-base text-grey-80" }, /* @__PURE__ */ React.createElement("span", { className: "pr-1 font-bold" }, "Mission"), mission)), wow && /* @__PURE__ */ React.createElement("div", { className: "flex gap-2" }, /* @__PURE__ */ React.createElement("span", null, "\u{1F31F}"), /* @__PURE__ */ React.createElement("p", { className: "text-base text-grey-80" }, /* @__PURE__ */ React.createElement("span", { className: "pr-1 font-bold" }, "Wow Factor"), wow)), website && /* @__PURE__ */ React.createElement("div", { className: "pt-2" }, /* @__PURE__ */ React.createElement(
|
|
85
|
+
LinkButton,
|
|
86
|
+
{
|
|
87
|
+
"data-testid": "company-website-link",
|
|
88
|
+
href: website,
|
|
89
|
+
target: "_blank",
|
|
90
|
+
rel: "noopener noreferrer"
|
|
91
|
+
},
|
|
92
|
+
"Website"
|
|
93
|
+
)));
|
|
119
94
|
}
|
|
120
95
|
|
|
121
96
|
// src/components/ui/Avatar.tsx
|
|
@@ -124,7 +99,7 @@ var import_link2 = __toESM(require("next/link"), 1);
|
|
|
124
99
|
|
|
125
100
|
// src/components/primitives/avatar.tsx
|
|
126
101
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
127
|
-
var
|
|
102
|
+
var React3 = __toESM(require("react"), 1);
|
|
128
103
|
|
|
129
104
|
// src/lib/utils.ts
|
|
130
105
|
var import_clsx = require("clsx");
|
|
@@ -134,8 +109,7 @@ function cn(...inputs) {
|
|
|
134
109
|
}
|
|
135
110
|
|
|
136
111
|
// src/components/primitives/avatar.tsx
|
|
137
|
-
var
|
|
138
|
-
var AvatarBase = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
112
|
+
var AvatarBase = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
139
113
|
AvatarPrimitive.Root,
|
|
140
114
|
{
|
|
141
115
|
ref,
|
|
@@ -144,7 +118,7 @@ var AvatarBase = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
144
118
|
}
|
|
145
119
|
));
|
|
146
120
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
147
|
-
var AvatarImage =
|
|
121
|
+
var AvatarImage = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
148
122
|
AvatarPrimitive.Image,
|
|
149
123
|
{
|
|
150
124
|
ref,
|
|
@@ -154,7 +128,7 @@ var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
154
128
|
}
|
|
155
129
|
));
|
|
156
130
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
157
|
-
var AvatarFallback =
|
|
131
|
+
var AvatarFallback = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
158
132
|
AvatarPrimitive.Fallback,
|
|
159
133
|
{
|
|
160
134
|
ref,
|
|
@@ -168,17 +142,13 @@ var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
168
142
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
169
143
|
|
|
170
144
|
// src/components/ui/Avatar.tsx
|
|
171
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
172
145
|
function Avatar({ size, src, href, name, ...linkProps }) {
|
|
173
146
|
const fallbackShort = name?.slice(0, 2);
|
|
174
147
|
const fallbackWords = name?.split(" ").map((n) => n[0]).join("").slice(0, 2);
|
|
175
148
|
const fallback = fallbackWords && fallbackWords.length > 1 ? fallbackWords : fallbackShort;
|
|
176
|
-
const renderAvatar = () => /* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarImage, { src, alt: name }),
|
|
178
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarFallback, { children: fallback?.toUpperCase() })
|
|
179
|
-
] });
|
|
149
|
+
const renderAvatar = () => /* @__PURE__ */ React.createElement(AvatarBase, { className: avatarVariants({ size }) }, /* @__PURE__ */ React.createElement(AvatarImage, { src, alt: name }), /* @__PURE__ */ React.createElement(AvatarFallback, null, fallback?.toUpperCase()));
|
|
180
150
|
if (href) {
|
|
181
|
-
return /* @__PURE__ */
|
|
151
|
+
return /* @__PURE__ */ React.createElement(import_link2.default, { href, ...linkProps }, renderAvatar());
|
|
182
152
|
}
|
|
183
153
|
return renderAvatar();
|
|
184
154
|
}
|
|
@@ -196,55 +166,57 @@ var avatarVariants = (0, import_cva.cva)("ring ring-white ring-2", {
|
|
|
196
166
|
});
|
|
197
167
|
|
|
198
168
|
// src/components/company/CompanyTake.tsx
|
|
199
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
200
169
|
function CompanyTake({ content, avatarSrc }) {
|
|
201
170
|
if (!content) return null;
|
|
202
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ React.createElement(
|
|
203
172
|
"div",
|
|
204
173
|
{
|
|
205
174
|
"data-testid": "company-take",
|
|
206
|
-
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6"
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
212
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
213
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
214
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
215
|
-
] })
|
|
216
|
-
] })
|
|
217
|
-
]
|
|
218
|
-
}
|
|
175
|
+
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6"
|
|
176
|
+
},
|
|
177
|
+
/* @__PURE__ */ React.createElement("p", { className: "text-lg font-bold text-white sm:text-xl" }, "The Real Dill \u2618\uFE0F"),
|
|
178
|
+
/* @__PURE__ */ React.createElement("div", { className: "mt-2 flex items-center justify-start" }, /* @__PURE__ */ React.createElement("p", { className: "text-sm font-normal text-grey-10" }, content)),
|
|
179
|
+
/* @__PURE__ */ React.createElement("div", { className: "mt-8 flex w-full items-center gap-3" }, /* @__PURE__ */ React.createElement(Avatar, { name: "Jon Lee", src: avatarSrc }), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col flex-wrap items-start" }, /* @__PURE__ */ React.createElement("p", { className: "text-sm font-bold text-white" }, "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA"), /* @__PURE__ */ React.createElement("p", { className: "text-xs font-normal text-grey-30" }, "Pickle co-founder")))
|
|
219
180
|
);
|
|
220
181
|
}
|
|
221
182
|
|
|
222
183
|
// src/components/ui/ReadMore.tsx
|
|
223
|
-
var
|
|
184
|
+
var import_react3 = require("react");
|
|
224
185
|
var import_react_markdown = __toESM(require("react-markdown"), 1);
|
|
225
186
|
|
|
226
187
|
// src/components/ui/Button.tsx
|
|
227
188
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
228
189
|
var import_cva2 = require("cva");
|
|
229
|
-
var
|
|
230
|
-
var
|
|
231
|
-
var Button = (0,
|
|
232
|
-
({
|
|
190
|
+
var import_lucide_react = require("lucide-react");
|
|
191
|
+
var import_react2 = __toESM(require("react"), 1);
|
|
192
|
+
var Button = (0, import_react2.forwardRef)(
|
|
193
|
+
({
|
|
194
|
+
className,
|
|
195
|
+
variant,
|
|
196
|
+
size,
|
|
197
|
+
asChild = false,
|
|
198
|
+
type = "button",
|
|
199
|
+
children,
|
|
200
|
+
isLoading = false,
|
|
201
|
+
...props
|
|
202
|
+
}, ref) => {
|
|
233
203
|
const Component = asChild ? import_react_slot.Slot : "button";
|
|
234
|
-
return /* @__PURE__ */
|
|
204
|
+
return /* @__PURE__ */ import_react2.default.createElement(
|
|
235
205
|
Component,
|
|
236
206
|
{
|
|
237
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
207
|
+
className: cn(buttonVariants({ variant, size, className, isLoading, asChild })),
|
|
238
208
|
type,
|
|
239
209
|
ref,
|
|
240
210
|
...props
|
|
241
|
-
}
|
|
211
|
+
},
|
|
212
|
+
asChild ? children : /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, children, isLoading && /* @__PURE__ */ import_react2.default.createElement("div", { className: "absolute inset-0 flex items-center justify-center bg-white/30 backdrop-blur-[0.5px]" }, /* @__PURE__ */ import_react2.default.createElement(import_lucide_react.Loader2, { className: "h-5 w-5 animate-spin text-gray-800" })))
|
|
242
213
|
);
|
|
243
214
|
}
|
|
244
215
|
);
|
|
245
216
|
Button.displayName = "Button";
|
|
246
217
|
var buttonVariants = (0, import_cva2.cva)(
|
|
247
218
|
[
|
|
219
|
+
"relative",
|
|
248
220
|
"flex",
|
|
249
221
|
"items-center",
|
|
250
222
|
"justify-center",
|
|
@@ -254,7 +226,8 @@ var buttonVariants = (0, import_cva2.cva)(
|
|
|
254
226
|
"outline-2",
|
|
255
227
|
"outline-offset-2",
|
|
256
228
|
"outline-dashed",
|
|
257
|
-
"outline-transparent"
|
|
229
|
+
"outline-transparent",
|
|
230
|
+
"overflow-hidden"
|
|
258
231
|
],
|
|
259
232
|
{
|
|
260
233
|
variants: {
|
|
@@ -301,19 +274,92 @@ var buttonVariants = (0, import_cva2.cva)(
|
|
|
301
274
|
"focus:text-black",
|
|
302
275
|
"focus:outline-purple-100",
|
|
303
276
|
"active:text-purple-80"
|
|
277
|
+
],
|
|
278
|
+
"outline-primary": [
|
|
279
|
+
"bg-transparent",
|
|
280
|
+
"border-2",
|
|
281
|
+
"border-pickle-100",
|
|
282
|
+
"text-pickle-100",
|
|
283
|
+
"hover:bg-pickle-100",
|
|
284
|
+
"hover:text-black",
|
|
285
|
+
"active:bg-pickle-80",
|
|
286
|
+
"active:text-black",
|
|
287
|
+
"focus:outline-purple-100",
|
|
288
|
+
"disabled:text-grey-40",
|
|
289
|
+
"disabled:border-grey-40",
|
|
290
|
+
"disabled:hover:bg-transparent",
|
|
291
|
+
"disabled:hover:text-grey-40"
|
|
292
|
+
],
|
|
293
|
+
"outline-secondary": [
|
|
294
|
+
"bg-transparent",
|
|
295
|
+
"border-2",
|
|
296
|
+
"border-green-80",
|
|
297
|
+
"text-green-80",
|
|
298
|
+
"hover:bg-green-80",
|
|
299
|
+
"hover:text-white",
|
|
300
|
+
"active:bg-green-90",
|
|
301
|
+
"active:text-white",
|
|
302
|
+
"focus:outline-pickle-100",
|
|
303
|
+
"disabled:text-grey-40",
|
|
304
|
+
"disabled:border-grey-40",
|
|
305
|
+
"disabled:hover:bg-transparent",
|
|
306
|
+
"disabled:hover:text-grey-40"
|
|
307
|
+
],
|
|
308
|
+
"icon-outline": [
|
|
309
|
+
"bg-transparent",
|
|
310
|
+
"text-black",
|
|
311
|
+
"hover:bg-grey-5",
|
|
312
|
+
"active:bg-grey-10",
|
|
313
|
+
"focus:outline-purple-100",
|
|
314
|
+
"disabled:text-grey-40",
|
|
315
|
+
"disabled:hover:bg-transparent",
|
|
316
|
+
"disabled:hover:text-grey-40"
|
|
317
|
+
],
|
|
318
|
+
"icon-primary": [
|
|
319
|
+
"bg-pickle-100",
|
|
320
|
+
"text-black",
|
|
321
|
+
"hover:bg-pickle-80",
|
|
322
|
+
"active:bg-pickle-60",
|
|
323
|
+
"focus:outline-purple-100",
|
|
324
|
+
"disabled:text-grey-40",
|
|
325
|
+
"disabled:bg-grey-10"
|
|
326
|
+
],
|
|
327
|
+
"icon-secondary": [
|
|
328
|
+
"bg-green-80",
|
|
329
|
+
"text-white",
|
|
330
|
+
"hover:bg-green-90",
|
|
331
|
+
"active:bg-green-100",
|
|
332
|
+
"focus:outline-pickle-100",
|
|
333
|
+
"disabled:text-grey-40",
|
|
334
|
+
"disabled:bg-grey-10"
|
|
304
335
|
]
|
|
305
336
|
},
|
|
306
337
|
size: {
|
|
338
|
+
"extra-small": ["h-8", "text-xs", "px-3", "py-1"],
|
|
307
339
|
small: ["h-10", "text-sm", "px-4", "py-2"],
|
|
308
340
|
medium: ["h-12", "text-base", "px-6", "py-3"],
|
|
309
341
|
large: ["h-14", "text-lg", "px-8", "py-4"]
|
|
342
|
+
},
|
|
343
|
+
isLoading: {
|
|
344
|
+
true: ["cursor-not-allowed", "pointer-events-none"]
|
|
345
|
+
},
|
|
346
|
+
asChild: {
|
|
347
|
+
true: [],
|
|
348
|
+
false: ["cursor-pointer", "pointer-events-auto"]
|
|
310
349
|
}
|
|
311
350
|
},
|
|
312
351
|
defaultVariants: {
|
|
313
352
|
variant: "neutral",
|
|
314
|
-
size: "medium"
|
|
353
|
+
size: "medium",
|
|
354
|
+
isLoading: false,
|
|
355
|
+
asChild: false
|
|
315
356
|
},
|
|
316
357
|
compoundVariants: [
|
|
358
|
+
{
|
|
359
|
+
variant: "link",
|
|
360
|
+
size: "extra-small",
|
|
361
|
+
class: ["h-3", "text-xs", "p-0"]
|
|
362
|
+
},
|
|
317
363
|
{
|
|
318
364
|
variant: "link",
|
|
319
365
|
size: "small",
|
|
@@ -328,18 +374,77 @@ var buttonVariants = (0, import_cva2.cva)(
|
|
|
328
374
|
variant: "link",
|
|
329
375
|
size: "large",
|
|
330
376
|
class: ["h-6", "text-base", "p-0"]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
variant: "icon-outline",
|
|
380
|
+
size: "extra-small",
|
|
381
|
+
class: ["h-8", "w-8", "p-1.5", "[&>svg]:w-5", "[&>svg]:h-5"]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
variant: "icon-outline",
|
|
385
|
+
size: "small",
|
|
386
|
+
class: ["h-10", "w-10", "p-2", "[&>svg]:w-6", "[&>svg]:h-6"]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
variant: "icon-outline",
|
|
390
|
+
size: "medium",
|
|
391
|
+
class: ["h-12", "w-12", "p-2.5", "[&>svg]:w-7", "[&>svg]:h-7"]
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
variant: "icon-outline",
|
|
395
|
+
size: "large",
|
|
396
|
+
class: ["h-14", "w-14", "p-3", "[&>svg]:w-8", "[&>svg]:h-8"]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
variant: "icon-primary",
|
|
400
|
+
size: "extra-small",
|
|
401
|
+
class: ["h-8", "w-8", "p-1.5", "[&>svg]:w-5", "[&>svg]:h-5"]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
variant: "icon-primary",
|
|
405
|
+
size: "small",
|
|
406
|
+
class: ["h-10", "w-10", "p-2", "[&>svg]:w-6", "[&>svg]:h-6"]
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
variant: "icon-primary",
|
|
410
|
+
size: "medium",
|
|
411
|
+
class: ["h-12", "w-12", "p-2.5", "[&>svg]:w-7", "[&>svg]:h-7"]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
variant: "icon-primary",
|
|
415
|
+
size: "large",
|
|
416
|
+
class: ["h-14", "w-14", "p-3", "[&>svg]:w-8", "[&>svg]:h-8"]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
variant: "icon-secondary",
|
|
420
|
+
size: "extra-small",
|
|
421
|
+
class: ["h-8", "w-8", "p-1.5", "[&>svg]:w-5", "[&>svg]:h-5"]
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
variant: "icon-secondary",
|
|
425
|
+
size: "small",
|
|
426
|
+
class: ["h-10", "w-10", "p-2", "[&>svg]:w-6", "[&>svg]:h-6"]
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
variant: "icon-secondary",
|
|
430
|
+
size: "medium",
|
|
431
|
+
class: ["h-12", "w-12", "p-2.5", "[&>svg]:w-7", "[&>svg]:h-7"]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
variant: "icon-secondary",
|
|
435
|
+
size: "large",
|
|
436
|
+
class: ["h-14", "w-14", "p-3", "[&>svg]:w-8", "[&>svg]:h-8"]
|
|
331
437
|
}
|
|
332
438
|
]
|
|
333
439
|
}
|
|
334
440
|
);
|
|
335
441
|
|
|
336
442
|
// src/components/ui/ReadMore.tsx
|
|
337
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
338
443
|
function ReadMore({ text, ...props }) {
|
|
339
|
-
const [isExpanded, setIsExpanded] = (0,
|
|
340
|
-
const [maxWords, setMaxWords] = (0,
|
|
444
|
+
const [isExpanded, setIsExpanded] = (0, import_react3.useState)(false);
|
|
445
|
+
const [maxWords, setMaxWords] = (0, import_react3.useState)(160);
|
|
341
446
|
const isOverMaxWords = text.split(" ").length > maxWords;
|
|
342
|
-
(0,
|
|
447
|
+
(0, import_react3.useEffect)(() => {
|
|
343
448
|
const updateMaxWords = () => {
|
|
344
449
|
const windowWidth = window.innerWidth;
|
|
345
450
|
if (windowWidth <= 768) {
|
|
@@ -361,52 +466,41 @@ function ReadMore({ text, ...props }) {
|
|
|
361
466
|
}
|
|
362
467
|
const toggleText = () => setIsExpanded(!isExpanded);
|
|
363
468
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
364
|
-
return /* @__PURE__ */ (
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
"Read ",
|
|
375
|
-
isExpanded ? "less" : "more"
|
|
376
|
-
] })
|
|
377
|
-
}
|
|
378
|
-
)
|
|
379
|
-
] });
|
|
469
|
+
return /* @__PURE__ */ React.createElement("div", { ...props }, /* @__PURE__ */ React.createElement("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg" }, /* @__PURE__ */ React.createElement(import_react_markdown.default, null, snippet)), isOverMaxWords && /* @__PURE__ */ React.createElement(
|
|
470
|
+
Button,
|
|
471
|
+
{
|
|
472
|
+
type: "button",
|
|
473
|
+
className: "mt-2 flex items-center justify-center",
|
|
474
|
+
variant: "link",
|
|
475
|
+
onClick: toggleText
|
|
476
|
+
},
|
|
477
|
+
/* @__PURE__ */ React.createElement("p", { className: "text-sm font-bold underline underline-offset-2" }, "Read ", isExpanded ? "less" : "more")
|
|
478
|
+
));
|
|
380
479
|
}
|
|
381
480
|
|
|
382
481
|
// src/components/jobPost/JobDescription.tsx
|
|
383
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
384
482
|
function JobDescription({ description }) {
|
|
385
483
|
if (!description) return null;
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
388
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ReadMore, { text: description })
|
|
389
|
-
] });
|
|
484
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-col gap-2" }, /* @__PURE__ */ React.createElement("h3", { className: "text-xl font-bold" }, "Job Description"), /* @__PURE__ */ React.createElement(ReadMore, { text: description }));
|
|
390
485
|
}
|
|
391
486
|
|
|
392
487
|
// src/components/jobPost/JobHeader.tsx
|
|
393
|
-
var
|
|
488
|
+
var import_lucide_react4 = require("lucide-react");
|
|
394
489
|
var import_image = __toESM(require("next/image"), 1);
|
|
395
490
|
|
|
396
491
|
// src/components/buttons/BackButton.tsx
|
|
397
|
-
var
|
|
492
|
+
var import_lucide_react2 = require("lucide-react");
|
|
398
493
|
var import_navigation2 = require("next/navigation");
|
|
399
494
|
|
|
400
495
|
// src/components/ui/Icon.tsx
|
|
401
496
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
402
497
|
var import_cva3 = require("cva");
|
|
403
|
-
var
|
|
498
|
+
var import_react4 = require("react");
|
|
404
499
|
var import_tailwind_merge2 = require("tailwind-merge");
|
|
405
|
-
var
|
|
406
|
-
var Icon = (0, import_react3.forwardRef)(
|
|
500
|
+
var Icon = (0, import_react4.forwardRef)(
|
|
407
501
|
({ variant, size, active = false, readonly = false, className, ...props }, ref) => {
|
|
408
502
|
const Component = readonly ? import_react_slot2.Slot : "button";
|
|
409
|
-
return /* @__PURE__ */
|
|
503
|
+
return /* @__PURE__ */ React.createElement(
|
|
410
504
|
Component,
|
|
411
505
|
{
|
|
412
506
|
className: cn(
|
|
@@ -475,22 +569,20 @@ var iconVariants = (0, import_cva3.cva)(
|
|
|
475
569
|
);
|
|
476
570
|
|
|
477
571
|
// src/hooks/useWindowHistory.ts
|
|
478
|
-
var
|
|
572
|
+
var import_react6 = require("react");
|
|
479
573
|
|
|
480
574
|
// src/contexts/WindowHistoryProvider.tsx
|
|
481
575
|
var import_navigation = require("next/navigation");
|
|
482
|
-
var
|
|
483
|
-
var
|
|
484
|
-
var WindowHistoryContext = (0, import_react4.createContext)({});
|
|
576
|
+
var import_react5 = require("react");
|
|
577
|
+
var WindowHistoryContext = (0, import_react5.createContext)({});
|
|
485
578
|
|
|
486
579
|
// src/hooks/useWindowHistory.ts
|
|
487
580
|
function useWindowHistory() {
|
|
488
|
-
const windowHistoryContext = (0,
|
|
581
|
+
const windowHistoryContext = (0, import_react6.useContext)(WindowHistoryContext);
|
|
489
582
|
return windowHistoryContext;
|
|
490
583
|
}
|
|
491
584
|
|
|
492
585
|
// src/components/buttons/BackButton.tsx
|
|
493
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
494
586
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
495
587
|
const { history } = useWindowHistory();
|
|
496
588
|
const router = (0, import_navigation2.useRouter)();
|
|
@@ -503,7 +595,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
503
595
|
router.push(fallbackHref ?? "/");
|
|
504
596
|
}
|
|
505
597
|
};
|
|
506
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ React.createElement(
|
|
507
599
|
Icon,
|
|
508
600
|
{
|
|
509
601
|
"aria-label": "back button",
|
|
@@ -511,17 +603,17 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
511
603
|
size: "small",
|
|
512
604
|
onClick: goBack,
|
|
513
605
|
className,
|
|
514
|
-
...props
|
|
515
|
-
|
|
516
|
-
|
|
606
|
+
...props
|
|
607
|
+
},
|
|
608
|
+
/* @__PURE__ */ React.createElement(import_lucide_react2.X, null)
|
|
517
609
|
);
|
|
518
610
|
}
|
|
519
611
|
|
|
520
612
|
// src/components/ui/Chip.tsx
|
|
521
613
|
var import_cva4 = require("cva");
|
|
614
|
+
var import_react7 = __toESM(require("react"), 1);
|
|
522
615
|
var import_tailwind_merge3 = require("tailwind-merge");
|
|
523
|
-
var
|
|
524
|
-
var Chip = ({ className, variant, size, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_tailwind_merge3.twMerge)(chipVariants({ variant, size, className })), ...props });
|
|
616
|
+
var Chip = ({ className, variant, size, ...props }) => /* @__PURE__ */ import_react7.default.createElement("div", { className: (0, import_tailwind_merge3.twMerge)(chipVariants({ variant, size, className })), ...props });
|
|
525
617
|
var chipVariants = (0, import_cva4.cva)(["flex", "items-center", "rounded-3xl", "border", "w-fit"], {
|
|
526
618
|
variants: {
|
|
527
619
|
variant: {
|
|
@@ -545,32 +637,31 @@ var chipVariants = (0, import_cva4.cva)(["flex", "items-center", "rounded-3xl",
|
|
|
545
637
|
var Chip_default = Chip;
|
|
546
638
|
|
|
547
639
|
// src/lib/icons.ts
|
|
548
|
-
var
|
|
640
|
+
var import_lucide_react3 = require("lucide-react");
|
|
549
641
|
var iconMap = {
|
|
550
|
-
house:
|
|
551
|
-
layers:
|
|
552
|
-
users:
|
|
553
|
-
settings:
|
|
554
|
-
building:
|
|
555
|
-
bell:
|
|
556
|
-
wallet:
|
|
557
|
-
contact:
|
|
558
|
-
banknote:
|
|
559
|
-
"message-square-dot":
|
|
560
|
-
"life-buoy":
|
|
561
|
-
"building-2":
|
|
562
|
-
"gallery-vertical-end":
|
|
563
|
-
"square-kanban":
|
|
564
|
-
"briefcase-business":
|
|
565
|
-
"circle-user":
|
|
566
|
-
"key-round":
|
|
567
|
-
"clock-2":
|
|
568
|
-
"circle-user-round":
|
|
569
|
-
"map-pin":
|
|
642
|
+
house: import_lucide_react3.Home,
|
|
643
|
+
layers: import_lucide_react3.Layers,
|
|
644
|
+
users: import_lucide_react3.Users,
|
|
645
|
+
settings: import_lucide_react3.Settings,
|
|
646
|
+
building: import_lucide_react3.Building,
|
|
647
|
+
bell: import_lucide_react3.Bell,
|
|
648
|
+
wallet: import_lucide_react3.Wallet,
|
|
649
|
+
contact: import_lucide_react3.Contact,
|
|
650
|
+
banknote: import_lucide_react3.Banknote,
|
|
651
|
+
"message-square-dot": import_lucide_react3.MessageSquareDot,
|
|
652
|
+
"life-buoy": import_lucide_react3.LifeBuoy,
|
|
653
|
+
"building-2": import_lucide_react3.Building2,
|
|
654
|
+
"gallery-vertical-end": import_lucide_react3.GalleryVerticalEnd,
|
|
655
|
+
"square-kanban": import_lucide_react3.SquareKanban,
|
|
656
|
+
"briefcase-business": import_lucide_react3.BriefcaseBusiness,
|
|
657
|
+
"circle-user": import_lucide_react3.CircleUser,
|
|
658
|
+
"key-round": import_lucide_react3.KeyRound,
|
|
659
|
+
"clock-2": import_lucide_react3.Clock2,
|
|
660
|
+
"circle-user-round": import_lucide_react3.CircleUserRound,
|
|
661
|
+
"map-pin": import_lucide_react3.MapPin
|
|
570
662
|
};
|
|
571
663
|
|
|
572
664
|
// src/components/jobPost/JobHeader.tsx
|
|
573
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
574
665
|
function JobHeader({
|
|
575
666
|
title,
|
|
576
667
|
subtitles,
|
|
@@ -586,135 +677,116 @@ function JobHeader({
|
|
|
586
677
|
}) {
|
|
587
678
|
const renderIcon = (icon) => {
|
|
588
679
|
const Icon2 = iconMap[icon];
|
|
589
|
-
return /* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ React.createElement(Icon2, { size: 18 });
|
|
590
681
|
};
|
|
591
|
-
return /* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ React.createElement(
|
|
592
683
|
"div",
|
|
593
684
|
{
|
|
594
685
|
"data-testid": "job-header-root",
|
|
595
686
|
className: cn(
|
|
596
687
|
"-mt-8 flex w-full flex-col items-center justify-between gap-6 md:-mt-0",
|
|
597
688
|
!standalone && "rounded-3xl"
|
|
689
|
+
)
|
|
690
|
+
},
|
|
691
|
+
!standalone && /* @__PURE__ */ React.createElement("div", { className: "relative flex min-h-16 w-full items-center rounded-t-3xl bg-transparent md:min-h-24 md:flex-row lg:min-h-32" }, /* @__PURE__ */ React.createElement(
|
|
692
|
+
import_image.default,
|
|
693
|
+
{
|
|
694
|
+
className: "h-full w-full rounded-t-3xl object-cover",
|
|
695
|
+
src: bannerSrc,
|
|
696
|
+
alt: "job banner",
|
|
697
|
+
fill: true
|
|
698
|
+
}
|
|
699
|
+
), /* @__PURE__ */ React.createElement(
|
|
700
|
+
BackButton,
|
|
701
|
+
{
|
|
702
|
+
acceptedRoutes: backAcceptedRoutes,
|
|
703
|
+
fallbackHref: backFallbackHref,
|
|
704
|
+
className: "absolute right-2 top-2 flex items-center justify-center text-white sm:hidden",
|
|
705
|
+
"data-testid": "job-header-back-button"
|
|
706
|
+
}
|
|
707
|
+
), /* @__PURE__ */ React.createElement(
|
|
708
|
+
"div",
|
|
709
|
+
{
|
|
710
|
+
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
711
|
+
"data-testid": "job-header-avatar"
|
|
712
|
+
},
|
|
713
|
+
/* @__PURE__ */ React.createElement(
|
|
714
|
+
Avatar,
|
|
715
|
+
{
|
|
716
|
+
size: "large",
|
|
717
|
+
target: "_blank",
|
|
718
|
+
href: avatarHref,
|
|
719
|
+
name: avatarName,
|
|
720
|
+
src: avatarSrc,
|
|
721
|
+
rel: "noopener noreferrer"
|
|
722
|
+
}
|
|
723
|
+
)
|
|
724
|
+
)),
|
|
725
|
+
/* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6" }, /* @__PURE__ */ React.createElement("div", { className: "flex flex-col md:flex-row" }, standalone && /* @__PURE__ */ React.createElement("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar" }, /* @__PURE__ */ React.createElement(
|
|
726
|
+
Avatar,
|
|
727
|
+
{
|
|
728
|
+
size: "large",
|
|
729
|
+
target: "_blank",
|
|
730
|
+
href: avatarHref,
|
|
731
|
+
name: avatarName,
|
|
732
|
+
src: avatarSrc,
|
|
733
|
+
rel: "noopener noreferrer"
|
|
734
|
+
}
|
|
735
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg" }, subtitles?.map((subtitle, i) => /* @__PURE__ */ React.createElement(
|
|
736
|
+
"div",
|
|
737
|
+
{
|
|
738
|
+
key: subtitle,
|
|
739
|
+
"data-testid": `job-header-subtitle-${i}`,
|
|
740
|
+
className: "flex items-center"
|
|
741
|
+
},
|
|
742
|
+
subtitle,
|
|
743
|
+
i < subtitles.length - 1 && /* @__PURE__ */ React.createElement(import_lucide_react4.Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
744
|
+
)))), /* @__PURE__ */ React.createElement(
|
|
745
|
+
"div",
|
|
746
|
+
{
|
|
747
|
+
"data-testid": "job-header-content",
|
|
748
|
+
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1"
|
|
749
|
+
},
|
|
750
|
+
/* @__PURE__ */ React.createElement(
|
|
751
|
+
"h2",
|
|
752
|
+
{
|
|
753
|
+
"data-testid": "job-header-title",
|
|
754
|
+
className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg"
|
|
755
|
+
},
|
|
756
|
+
title
|
|
598
757
|
),
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
{
|
|
627
|
-
size: "large",
|
|
628
|
-
target: "_blank",
|
|
629
|
-
href: avatarHref,
|
|
630
|
-
name: avatarName,
|
|
631
|
-
src: avatarSrc,
|
|
632
|
-
rel: "noopener noreferrer"
|
|
633
|
-
}
|
|
634
|
-
)
|
|
635
|
-
}
|
|
636
|
-
)
|
|
637
|
-
] }),
|
|
638
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
639
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
|
|
640
|
-
standalone && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
641
|
-
Avatar,
|
|
642
|
-
{
|
|
643
|
-
size: "large",
|
|
644
|
-
target: "_blank",
|
|
645
|
-
href: avatarHref,
|
|
646
|
-
name: avatarName,
|
|
647
|
-
src: avatarSrc,
|
|
648
|
-
rel: "noopener noreferrer"
|
|
649
|
-
}
|
|
650
|
-
) }),
|
|
651
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
652
|
-
"div",
|
|
653
|
-
{
|
|
654
|
-
"data-testid": `job-header-subtitle-${i}`,
|
|
655
|
-
className: "flex items-center",
|
|
656
|
-
children: [
|
|
657
|
-
subtitle,
|
|
658
|
-
i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react3.Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
659
|
-
]
|
|
660
|
-
},
|
|
661
|
-
subtitle
|
|
662
|
-
)) })
|
|
663
|
-
] }),
|
|
664
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
665
|
-
"div",
|
|
666
|
-
{
|
|
667
|
-
"data-testid": "job-header-content",
|
|
668
|
-
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
669
|
-
children: [
|
|
670
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
671
|
-
"h2",
|
|
672
|
-
{
|
|
673
|
-
"data-testid": "job-header-title",
|
|
674
|
-
className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg",
|
|
675
|
-
children: title
|
|
676
|
-
}
|
|
677
|
-
),
|
|
678
|
-
!!actions && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
679
|
-
"div",
|
|
680
|
-
{
|
|
681
|
-
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
682
|
-
"data-testid": "job-header-actions",
|
|
683
|
-
children: actions
|
|
684
|
-
}
|
|
685
|
-
)
|
|
686
|
-
]
|
|
687
|
-
}
|
|
688
|
-
),
|
|
689
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
690
|
-
"div",
|
|
691
|
-
{
|
|
692
|
-
"data-testid": "job-header-tags",
|
|
693
|
-
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
694
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
695
|
-
Chip_default,
|
|
696
|
-
{
|
|
697
|
-
size: "small",
|
|
698
|
-
variant: "neutral",
|
|
699
|
-
"aria-label": name,
|
|
700
|
-
"data-testid": `job-header-tag-${name}`,
|
|
701
|
-
children: [
|
|
702
|
-
renderIcon(icon),
|
|
703
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: label })
|
|
704
|
-
]
|
|
705
|
-
},
|
|
706
|
-
`${name}-${label}`
|
|
707
|
-
))
|
|
708
|
-
}
|
|
709
|
-
)
|
|
710
|
-
] })
|
|
711
|
-
]
|
|
712
|
-
}
|
|
758
|
+
!!actions && /* @__PURE__ */ React.createElement(
|
|
759
|
+
"div",
|
|
760
|
+
{
|
|
761
|
+
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
762
|
+
"data-testid": "job-header-actions"
|
|
763
|
+
},
|
|
764
|
+
actions
|
|
765
|
+
)
|
|
766
|
+
), /* @__PURE__ */ React.createElement(
|
|
767
|
+
"div",
|
|
768
|
+
{
|
|
769
|
+
"data-testid": "job-header-tags",
|
|
770
|
+
className: "flex flex-row flex-wrap items-center justify-start gap-2"
|
|
771
|
+
},
|
|
772
|
+
tags?.map(({ name, label, icon }) => /* @__PURE__ */ React.createElement(
|
|
773
|
+
Chip_default,
|
|
774
|
+
{
|
|
775
|
+
key: `${name}-${label}`,
|
|
776
|
+
size: "small",
|
|
777
|
+
variant: "neutral",
|
|
778
|
+
"aria-label": name,
|
|
779
|
+
"data-testid": `job-header-tag-${name}`
|
|
780
|
+
},
|
|
781
|
+
renderIcon(icon),
|
|
782
|
+
/* @__PURE__ */ React.createElement("span", null, label)
|
|
783
|
+
))
|
|
784
|
+
))
|
|
713
785
|
);
|
|
714
786
|
}
|
|
715
787
|
|
|
716
788
|
// src/hooks/useDisplayText.ts
|
|
717
|
-
var
|
|
789
|
+
var import_react8 = require("react");
|
|
718
790
|
|
|
719
791
|
// src/lib/mappings.ts
|
|
720
792
|
var employmentTypeDisplayText = {
|
|
@@ -1158,9 +1230,9 @@ var DisplayTextService = class {
|
|
|
1158
1230
|
|
|
1159
1231
|
// src/hooks/useDisplayText.ts
|
|
1160
1232
|
var useDisplayText = (scope, value) => {
|
|
1161
|
-
const [displayText, setDisplayText] = (0,
|
|
1162
|
-
const displayService = (0,
|
|
1163
|
-
(0,
|
|
1233
|
+
const [displayText, setDisplayText] = (0, import_react8.useState)("");
|
|
1234
|
+
const displayService = (0, import_react8.useMemo)(() => new DisplayTextService(), []);
|
|
1235
|
+
(0, import_react8.useEffect)(() => {
|
|
1164
1236
|
if (!displayService || !value) {
|
|
1165
1237
|
setDisplayText("");
|
|
1166
1238
|
return;
|
|
@@ -1650,7 +1722,6 @@ function salaryRange(salary, showUnitText = true) {
|
|
|
1650
1722
|
}
|
|
1651
1723
|
|
|
1652
1724
|
// src/components/jobPost/JobPost.tsx
|
|
1653
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1654
1725
|
function JobPost({
|
|
1655
1726
|
job,
|
|
1656
1727
|
bannerSrc,
|
|
@@ -1696,58 +1767,51 @@ function JobPost({
|
|
|
1696
1767
|
label
|
|
1697
1768
|
}))
|
|
1698
1769
|
].filter((t) => !!t);
|
|
1699
|
-
return /* @__PURE__ */
|
|
1770
|
+
return /* @__PURE__ */ React.createElement(
|
|
1700
1771
|
"div",
|
|
1701
1772
|
{
|
|
1702
1773
|
className: cn(
|
|
1703
1774
|
"flex flex-col gap-10 pb-4",
|
|
1704
1775
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
1705
|
-
)
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
{
|
|
1745
|
-
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
1746
|
-
}
|
|
1747
|
-
)
|
|
1748
|
-
] })
|
|
1749
|
-
]
|
|
1750
|
-
}
|
|
1776
|
+
)
|
|
1777
|
+
},
|
|
1778
|
+
/* @__PURE__ */ React.createElement(
|
|
1779
|
+
JobHeader,
|
|
1780
|
+
{
|
|
1781
|
+
title: job.title,
|
|
1782
|
+
bannerSrc,
|
|
1783
|
+
avatarName: job.hiringOrganization?.companyName,
|
|
1784
|
+
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
1785
|
+
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
1786
|
+
actions,
|
|
1787
|
+
standalone,
|
|
1788
|
+
avatarHref,
|
|
1789
|
+
backFallbackHref: fallbackHref,
|
|
1790
|
+
backAcceptedRoutes,
|
|
1791
|
+
tags
|
|
1792
|
+
}
|
|
1793
|
+
),
|
|
1794
|
+
/* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-8 px-6" }, /* @__PURE__ */ React.createElement(JobDescription, { description: job.description }), /* @__PURE__ */ React.createElement(
|
|
1795
|
+
CompanyTake,
|
|
1796
|
+
{
|
|
1797
|
+
avatarSrc,
|
|
1798
|
+
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
1799
|
+
}
|
|
1800
|
+
), /* @__PURE__ */ React.createElement(
|
|
1801
|
+
CompanyInformation,
|
|
1802
|
+
{
|
|
1803
|
+
name: job.hiringOrganization?.companyName ?? "",
|
|
1804
|
+
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
1805
|
+
mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
|
|
1806
|
+
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
1807
|
+
website: job.hiringOrganization?.companyWebsite
|
|
1808
|
+
}
|
|
1809
|
+
), /* @__PURE__ */ React.createElement(
|
|
1810
|
+
CompanyBenefits,
|
|
1811
|
+
{
|
|
1812
|
+
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
1813
|
+
}
|
|
1814
|
+
))
|
|
1751
1815
|
);
|
|
1752
1816
|
}
|
|
1753
1817
|
// Annotate the CommonJS export names for ESM import in node:
|