@next-degree/pickle-shared-js 0.12.7 → 0.13.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/dist/{company_service_sanity-2J1ZuUnu.d.cts → company_service_sanity-BzaIPM-N.d.ts} +2297 -2297
- package/dist/{company_service_sanity-KaAGfnNV.d.ts → company_service_sanity-Zy8TiORb.d.cts} +2297 -2297
- 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 +2 -3
- package/dist/components/ui/Chip.d.ts +2 -3
- 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.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-DIxMXVLl.d.ts} +2 -2
- package/dist/{displayText-DW0qiJqh.d.cts → displayText-DRyxjHTZ.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_latest-C_TEBzCf.d.cts → job_posting_service_latest-7q4A7RpW.d.cts} +1171 -1171
- package/dist/{job_posting_service_latest-C_TEBzCf.d.ts → job_posting_service_latest-7q4A7RpW.d.ts} +1171 -1171
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.cts → job_posting_service_latest-BrZndMS6.d.cts} +1171 -1171
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.ts → job_posting_service_latest-BrZndMS6.d.ts} +1171 -1171
- package/dist/{job_posting_service_sanity-BNq-Am9N.d.cts → job_posting_service_sanity-B5NZ-7tI.d.cts} +2126 -2126
- package/dist/{job_posting_service_sanity-BKo9TBDT.d.ts → job_posting_service_sanity-LlRkfIpt.d.ts} +2126 -2126
- 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 +149 -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 +4 -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-BwbaqchJ.d.cts} +1220 -1220
- package/dist/{company_service_latest-CITz7F53.d.ts → company_service_latest-BwbaqchJ.d.ts} +1220 -1220
- package/dist/{company_service_latest-C7Moeufo.d.cts → company_service_latest-FHqG4LjA.d.cts} +1220 -1220
- package/dist/{company_service_latest-C7Moeufo.d.ts → company_service_latest-FHqG4LjA.d.ts} +1220 -1220
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.cts → shared_pickle_output_latest-CKHNY1lx.d.cts} +42 -42
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.ts → shared_pickle_output_latest-CKHNY1lx.d.ts} +42 -42
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.cts → shared_pickle_output_latest-DIPgxUul.d.cts} +42 -42
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.ts → shared_pickle_output_latest-DIPgxUul.d.ts} +42 -42
|
@@ -9,18 +9,14 @@ var __export = (target, all) => {
|
|
|
9
9
|
import * as DateFns from "date-fns";
|
|
10
10
|
|
|
11
11
|
// src/components/company/CompanyBenefits.tsx
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
function CompanyBenefits({ benefits }) {
|
|
14
13
|
if (!benefits) return null;
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ 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" }),
|
|
17
|
-
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ jsx("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
18
|
-
] });
|
|
14
|
+
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))));
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
// src/components/ui/LinkButton.tsx
|
|
22
18
|
import Link from "next/link";
|
|
23
|
-
import
|
|
19
|
+
import React2 from "react";
|
|
24
20
|
var LinkButton = ({
|
|
25
21
|
disabled = false,
|
|
26
22
|
useAnchor = false,
|
|
@@ -29,20 +25,19 @@ var LinkButton = ({
|
|
|
29
25
|
...props
|
|
30
26
|
}) => {
|
|
31
27
|
const Component = useAnchor ? "a" : Link;
|
|
32
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ React2.createElement(
|
|
33
29
|
Component,
|
|
34
30
|
{
|
|
35
31
|
href,
|
|
36
32
|
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" : ""} `,
|
|
37
33
|
...disabled && { "aria-disabled": true, tabIndex: -1 },
|
|
38
|
-
...props
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
...props
|
|
35
|
+
},
|
|
36
|
+
children
|
|
41
37
|
);
|
|
42
38
|
};
|
|
43
39
|
|
|
44
40
|
// src/components/company/CompanyInformation.tsx
|
|
45
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
46
41
|
function CompanyInformation({
|
|
47
42
|
name,
|
|
48
43
|
how,
|
|
@@ -50,44 +45,24 @@ function CompanyInformation({
|
|
|
50
45
|
wow,
|
|
51
46
|
website
|
|
52
47
|
}) {
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
] })
|
|
72
|
-
] }),
|
|
73
|
-
wow && /* @__PURE__ */ jsxs2("div", { className: "flex gap-2", children: [
|
|
74
|
-
/* @__PURE__ */ jsx3("span", { children: "\u{1F31F}" }),
|
|
75
|
-
/* @__PURE__ */ jsxs2("p", { className: "text-base text-grey-80", children: [
|
|
76
|
-
/* @__PURE__ */ jsx3("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
77
|
-
wow
|
|
78
|
-
] })
|
|
79
|
-
] }),
|
|
80
|
-
website && /* @__PURE__ */ jsx3("div", { className: "pt-2", children: /* @__PURE__ */ jsx3(
|
|
81
|
-
LinkButton,
|
|
82
|
-
{
|
|
83
|
-
"data-testid": "company-website-link",
|
|
84
|
-
href: website,
|
|
85
|
-
target: "_blank",
|
|
86
|
-
rel: "noopener noreferrer",
|
|
87
|
-
children: "Website"
|
|
88
|
-
}
|
|
89
|
-
) })
|
|
90
|
-
] });
|
|
48
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-2" }, /* @__PURE__ */ React.createElement(
|
|
49
|
+
"h2",
|
|
50
|
+
{
|
|
51
|
+
"data-testid": "company-name",
|
|
52
|
+
className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg"
|
|
53
|
+
},
|
|
54
|
+
"About ",
|
|
55
|
+
name
|
|
56
|
+
), 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(
|
|
57
|
+
LinkButton,
|
|
58
|
+
{
|
|
59
|
+
"data-testid": "company-website-link",
|
|
60
|
+
href: website,
|
|
61
|
+
target: "_blank",
|
|
62
|
+
rel: "noopener noreferrer"
|
|
63
|
+
},
|
|
64
|
+
"Website"
|
|
65
|
+
)));
|
|
91
66
|
}
|
|
92
67
|
|
|
93
68
|
// src/components/ui/Avatar.tsx
|
|
@@ -96,7 +71,7 @@ import Link2 from "next/link";
|
|
|
96
71
|
|
|
97
72
|
// src/components/primitives/avatar.tsx
|
|
98
73
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
99
|
-
import * as
|
|
74
|
+
import * as React3 from "react";
|
|
100
75
|
|
|
101
76
|
// src/lib/utils.ts
|
|
102
77
|
import { clsx } from "clsx";
|
|
@@ -106,8 +81,7 @@ function cn(...inputs) {
|
|
|
106
81
|
}
|
|
107
82
|
|
|
108
83
|
// src/components/primitives/avatar.tsx
|
|
109
|
-
|
|
110
|
-
var AvatarBase = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
84
|
+
var AvatarBase = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
111
85
|
AvatarPrimitive.Root,
|
|
112
86
|
{
|
|
113
87
|
ref,
|
|
@@ -116,7 +90,7 @@ var AvatarBase = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
116
90
|
}
|
|
117
91
|
));
|
|
118
92
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
119
|
-
var AvatarImage =
|
|
93
|
+
var AvatarImage = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
120
94
|
AvatarPrimitive.Image,
|
|
121
95
|
{
|
|
122
96
|
ref,
|
|
@@ -126,7 +100,7 @@ var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
126
100
|
}
|
|
127
101
|
));
|
|
128
102
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
129
|
-
var AvatarFallback =
|
|
103
|
+
var AvatarFallback = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
130
104
|
AvatarPrimitive.Fallback,
|
|
131
105
|
{
|
|
132
106
|
ref,
|
|
@@ -140,17 +114,13 @@ var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
140
114
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
141
115
|
|
|
142
116
|
// src/components/ui/Avatar.tsx
|
|
143
|
-
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
144
117
|
function Avatar({ size, src, href, name, ...linkProps }) {
|
|
145
118
|
const fallbackShort = name?.slice(0, 2);
|
|
146
119
|
const fallbackWords = name?.split(" ").map((n) => n[0]).join("").slice(0, 2);
|
|
147
120
|
const fallback = fallbackWords && fallbackWords.length > 1 ? fallbackWords : fallbackShort;
|
|
148
|
-
const renderAvatar = () => /* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */ jsx5(AvatarImage, { src, alt: name }),
|
|
150
|
-
/* @__PURE__ */ jsx5(AvatarFallback, { children: fallback?.toUpperCase() })
|
|
151
|
-
] });
|
|
121
|
+
const renderAvatar = () => /* @__PURE__ */ React.createElement(AvatarBase, { className: avatarVariants({ size }) }, /* @__PURE__ */ React.createElement(AvatarImage, { src, alt: name }), /* @__PURE__ */ React.createElement(AvatarFallback, null, fallback?.toUpperCase()));
|
|
152
122
|
if (href) {
|
|
153
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ React.createElement(Link2, { href, ...linkProps }, renderAvatar());
|
|
154
124
|
}
|
|
155
125
|
return renderAvatar();
|
|
156
126
|
}
|
|
@@ -168,26 +138,17 @@ var avatarVariants = cva("ring ring-white ring-2", {
|
|
|
168
138
|
});
|
|
169
139
|
|
|
170
140
|
// src/components/company/CompanyTake.tsx
|
|
171
|
-
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
172
141
|
function CompanyTake({ content, avatarSrc }) {
|
|
173
142
|
if (!content) return null;
|
|
174
|
-
return /* @__PURE__ */
|
|
143
|
+
return /* @__PURE__ */ React.createElement(
|
|
175
144
|
"div",
|
|
176
145
|
{
|
|
177
146
|
"data-testid": "company-take",
|
|
178
|
-
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
/* @__PURE__ */ jsx6(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
184
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
185
|
-
/* @__PURE__ */ jsx6("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
186
|
-
/* @__PURE__ */ jsx6("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
187
|
-
] })
|
|
188
|
-
] })
|
|
189
|
-
]
|
|
190
|
-
}
|
|
147
|
+
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6"
|
|
148
|
+
},
|
|
149
|
+
/* @__PURE__ */ React.createElement("p", { className: "text-lg font-bold text-white sm:text-xl" }, "The Real Dill \u2618\uFE0F"),
|
|
150
|
+
/* @__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)),
|
|
151
|
+
/* @__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")))
|
|
191
152
|
);
|
|
192
153
|
}
|
|
193
154
|
|
|
@@ -198,25 +159,36 @@ import Markdown from "react-markdown";
|
|
|
198
159
|
// src/components/ui/Button.tsx
|
|
199
160
|
import { Slot } from "@radix-ui/react-slot";
|
|
200
161
|
import { cva as cva2 } from "cva";
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
162
|
+
import { Loader2 } from "lucide-react";
|
|
163
|
+
import React4, { forwardRef as forwardRef2 } from "react";
|
|
203
164
|
var Button = forwardRef2(
|
|
204
|
-
({
|
|
165
|
+
({
|
|
166
|
+
className,
|
|
167
|
+
variant,
|
|
168
|
+
size,
|
|
169
|
+
asChild = false,
|
|
170
|
+
type = "button",
|
|
171
|
+
children,
|
|
172
|
+
isLoading = false,
|
|
173
|
+
...props
|
|
174
|
+
}, ref) => {
|
|
205
175
|
const Component = asChild ? Slot : "button";
|
|
206
|
-
return /* @__PURE__ */
|
|
176
|
+
return /* @__PURE__ */ React4.createElement(
|
|
207
177
|
Component,
|
|
208
178
|
{
|
|
209
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
179
|
+
className: cn(buttonVariants({ variant, size, className, isLoading, asChild })),
|
|
210
180
|
type,
|
|
211
181
|
ref,
|
|
212
182
|
...props
|
|
213
|
-
}
|
|
183
|
+
},
|
|
184
|
+
asChild ? children : /* @__PURE__ */ React4.createElement(React4.Fragment, null, children, isLoading && /* @__PURE__ */ React4.createElement("div", { className: "absolute inset-0 flex items-center justify-center bg-white/30 backdrop-blur-[0.5px]" }, /* @__PURE__ */ React4.createElement(Loader2, { className: "h-5 w-5 animate-spin text-gray-800" })))
|
|
214
185
|
);
|
|
215
186
|
}
|
|
216
187
|
);
|
|
217
188
|
Button.displayName = "Button";
|
|
218
189
|
var buttonVariants = cva2(
|
|
219
190
|
[
|
|
191
|
+
"relative",
|
|
220
192
|
"flex",
|
|
221
193
|
"items-center",
|
|
222
194
|
"justify-center",
|
|
@@ -226,7 +198,8 @@ var buttonVariants = cva2(
|
|
|
226
198
|
"outline-2",
|
|
227
199
|
"outline-offset-2",
|
|
228
200
|
"outline-dashed",
|
|
229
|
-
"outline-transparent"
|
|
201
|
+
"outline-transparent",
|
|
202
|
+
"overflow-hidden"
|
|
230
203
|
],
|
|
231
204
|
{
|
|
232
205
|
variants: {
|
|
@@ -273,19 +246,92 @@ var buttonVariants = cva2(
|
|
|
273
246
|
"focus:text-black",
|
|
274
247
|
"focus:outline-purple-100",
|
|
275
248
|
"active:text-purple-80"
|
|
249
|
+
],
|
|
250
|
+
"outline-primary": [
|
|
251
|
+
"bg-transparent",
|
|
252
|
+
"border-2",
|
|
253
|
+
"border-pickle-100",
|
|
254
|
+
"text-pickle-100",
|
|
255
|
+
"hover:bg-pickle-100",
|
|
256
|
+
"hover:text-black",
|
|
257
|
+
"active:bg-pickle-80",
|
|
258
|
+
"active:text-black",
|
|
259
|
+
"focus:outline-purple-100",
|
|
260
|
+
"disabled:text-grey-40",
|
|
261
|
+
"disabled:border-grey-40",
|
|
262
|
+
"disabled:hover:bg-transparent",
|
|
263
|
+
"disabled:hover:text-grey-40"
|
|
264
|
+
],
|
|
265
|
+
"outline-secondary": [
|
|
266
|
+
"bg-transparent",
|
|
267
|
+
"border-2",
|
|
268
|
+
"border-green-80",
|
|
269
|
+
"text-green-80",
|
|
270
|
+
"hover:bg-green-80",
|
|
271
|
+
"hover:text-white",
|
|
272
|
+
"active:bg-green-90",
|
|
273
|
+
"active:text-white",
|
|
274
|
+
"focus:outline-pickle-100",
|
|
275
|
+
"disabled:text-grey-40",
|
|
276
|
+
"disabled:border-grey-40",
|
|
277
|
+
"disabled:hover:bg-transparent",
|
|
278
|
+
"disabled:hover:text-grey-40"
|
|
279
|
+
],
|
|
280
|
+
"icon-outline": [
|
|
281
|
+
"bg-transparent",
|
|
282
|
+
"text-black",
|
|
283
|
+
"hover:bg-grey-5",
|
|
284
|
+
"active:bg-grey-10",
|
|
285
|
+
"focus:outline-purple-100",
|
|
286
|
+
"disabled:text-grey-40",
|
|
287
|
+
"disabled:hover:bg-transparent",
|
|
288
|
+
"disabled:hover:text-grey-40"
|
|
289
|
+
],
|
|
290
|
+
"icon-primary": [
|
|
291
|
+
"bg-pickle-100",
|
|
292
|
+
"text-black",
|
|
293
|
+
"hover:bg-pickle-80",
|
|
294
|
+
"active:bg-pickle-60",
|
|
295
|
+
"focus:outline-purple-100",
|
|
296
|
+
"disabled:text-grey-40",
|
|
297
|
+
"disabled:bg-grey-10"
|
|
298
|
+
],
|
|
299
|
+
"icon-secondary": [
|
|
300
|
+
"bg-green-80",
|
|
301
|
+
"text-white",
|
|
302
|
+
"hover:bg-green-90",
|
|
303
|
+
"active:bg-green-100",
|
|
304
|
+
"focus:outline-pickle-100",
|
|
305
|
+
"disabled:text-grey-40",
|
|
306
|
+
"disabled:bg-grey-10"
|
|
276
307
|
]
|
|
277
308
|
},
|
|
278
309
|
size: {
|
|
310
|
+
"extra-small": ["h-8", "text-xs", "px-3", "py-1"],
|
|
279
311
|
small: ["h-10", "text-sm", "px-4", "py-2"],
|
|
280
312
|
medium: ["h-12", "text-base", "px-6", "py-3"],
|
|
281
313
|
large: ["h-14", "text-lg", "px-8", "py-4"]
|
|
314
|
+
},
|
|
315
|
+
isLoading: {
|
|
316
|
+
true: ["cursor-not-allowed", "pointer-events-none"]
|
|
317
|
+
},
|
|
318
|
+
asChild: {
|
|
319
|
+
true: [],
|
|
320
|
+
false: ["cursor-pointer", "pointer-events-auto"]
|
|
282
321
|
}
|
|
283
322
|
},
|
|
284
323
|
defaultVariants: {
|
|
285
324
|
variant: "neutral",
|
|
286
|
-
size: "medium"
|
|
325
|
+
size: "medium",
|
|
326
|
+
isLoading: false,
|
|
327
|
+
asChild: false
|
|
287
328
|
},
|
|
288
329
|
compoundVariants: [
|
|
330
|
+
{
|
|
331
|
+
variant: "link",
|
|
332
|
+
size: "extra-small",
|
|
333
|
+
class: ["h-3", "text-xs", "p-0"]
|
|
334
|
+
},
|
|
289
335
|
{
|
|
290
336
|
variant: "link",
|
|
291
337
|
size: "small",
|
|
@@ -300,13 +346,72 @@ var buttonVariants = cva2(
|
|
|
300
346
|
variant: "link",
|
|
301
347
|
size: "large",
|
|
302
348
|
class: ["h-6", "text-base", "p-0"]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
variant: "icon-outline",
|
|
352
|
+
size: "extra-small",
|
|
353
|
+
class: ["h-8", "w-8", "p-2"]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
variant: "icon-outline",
|
|
357
|
+
size: "small",
|
|
358
|
+
class: ["h-10", "w-10", "p-3"]
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
variant: "icon-outline",
|
|
362
|
+
size: "medium",
|
|
363
|
+
class: ["h-12", "w-12", "p-4"]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
variant: "icon-outline",
|
|
367
|
+
size: "large",
|
|
368
|
+
class: ["h-14", "w-14", "p-4"]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
variant: "icon-primary",
|
|
372
|
+
size: "extra-small",
|
|
373
|
+
class: ["h-8", "w-8", "p-2"]
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
variant: "icon-primary",
|
|
377
|
+
size: "small",
|
|
378
|
+
class: ["h-10", "w-10", "p-3"]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
variant: "icon-primary",
|
|
382
|
+
size: "medium",
|
|
383
|
+
class: ["h-12", "w-12", "p-4"]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
variant: "icon-primary",
|
|
387
|
+
size: "large",
|
|
388
|
+
class: ["h-14", "w-14", "p-4"]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
variant: "icon-secondary",
|
|
392
|
+
size: "extra-small",
|
|
393
|
+
class: ["h-8", "w-8", "p-2"]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
variant: "icon-secondary",
|
|
397
|
+
size: "small",
|
|
398
|
+
class: ["h-10", "w-10", "p-3"]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
variant: "icon-secondary",
|
|
402
|
+
size: "medium",
|
|
403
|
+
class: ["h-12", "w-12", "p-4"]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
variant: "icon-secondary",
|
|
407
|
+
size: "large",
|
|
408
|
+
class: ["h-14", "w-14", "p-4"]
|
|
303
409
|
}
|
|
304
410
|
]
|
|
305
411
|
}
|
|
306
412
|
);
|
|
307
413
|
|
|
308
414
|
// src/components/ui/ReadMore.tsx
|
|
309
|
-
import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
310
415
|
function ReadMore({ text, ...props }) {
|
|
311
416
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
312
417
|
const [maxWords, setMaxWords] = useState(160);
|
|
@@ -333,32 +438,22 @@ function ReadMore({ text, ...props }) {
|
|
|
333
438
|
}
|
|
334
439
|
const toggleText = () => setIsExpanded(!isExpanded);
|
|
335
440
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
"Read ",
|
|
347
|
-
isExpanded ? "less" : "more"
|
|
348
|
-
] })
|
|
349
|
-
}
|
|
350
|
-
)
|
|
351
|
-
] });
|
|
441
|
+
return /* @__PURE__ */ React.createElement("div", { ...props }, /* @__PURE__ */ React.createElement("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg" }, /* @__PURE__ */ React.createElement(Markdown, null, snippet)), isOverMaxWords && /* @__PURE__ */ React.createElement(
|
|
442
|
+
Button,
|
|
443
|
+
{
|
|
444
|
+
type: "button",
|
|
445
|
+
className: "mt-2 flex items-center justify-center",
|
|
446
|
+
variant: "link",
|
|
447
|
+
onClick: toggleText
|
|
448
|
+
},
|
|
449
|
+
/* @__PURE__ */ React.createElement("p", { className: "text-sm font-bold underline underline-offset-2" }, "Read ", isExpanded ? "less" : "more")
|
|
450
|
+
));
|
|
352
451
|
}
|
|
353
452
|
|
|
354
453
|
// src/components/jobPost/JobDescription.tsx
|
|
355
|
-
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
356
454
|
function JobDescription({ description }) {
|
|
357
455
|
if (!description) return null;
|
|
358
|
-
return /* @__PURE__ */
|
|
359
|
-
/* @__PURE__ */ jsx9("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
360
|
-
/* @__PURE__ */ jsx9(ReadMore, { text: description })
|
|
361
|
-
] });
|
|
456
|
+
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 }));
|
|
362
457
|
}
|
|
363
458
|
|
|
364
459
|
// src/components/jobPost/JobHeader.tsx
|
|
@@ -374,11 +469,10 @@ import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
|
374
469
|
import { cva as cva3 } from "cva";
|
|
375
470
|
import { forwardRef as forwardRef3 } from "react";
|
|
376
471
|
import { twMerge as twMerge2 } from "tailwind-merge";
|
|
377
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
378
472
|
var Icon = forwardRef3(
|
|
379
473
|
({ variant, size, active = false, readonly = false, className, ...props }, ref) => {
|
|
380
474
|
const Component = readonly ? Slot2 : "button";
|
|
381
|
-
return /* @__PURE__ */
|
|
475
|
+
return /* @__PURE__ */ React.createElement(
|
|
382
476
|
Component,
|
|
383
477
|
{
|
|
384
478
|
className: cn(
|
|
@@ -452,7 +546,6 @@ import { useContext } from "react";
|
|
|
452
546
|
// src/contexts/WindowHistoryProvider.tsx
|
|
453
547
|
import { useSearchParams } from "next/navigation";
|
|
454
548
|
import { createContext, useEffect as useEffect2, useMemo, useState as useState2 } from "react";
|
|
455
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
456
549
|
var WindowHistoryContext = createContext({});
|
|
457
550
|
|
|
458
551
|
// src/hooks/useWindowHistory.ts
|
|
@@ -462,7 +555,6 @@ function useWindowHistory() {
|
|
|
462
555
|
}
|
|
463
556
|
|
|
464
557
|
// src/components/buttons/BackButton.tsx
|
|
465
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
466
558
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
467
559
|
const { history } = useWindowHistory();
|
|
468
560
|
const router = useRouter();
|
|
@@ -475,7 +567,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
475
567
|
router.push(fallbackHref ?? "/");
|
|
476
568
|
}
|
|
477
569
|
};
|
|
478
|
-
return /* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ React.createElement(
|
|
479
571
|
Icon,
|
|
480
572
|
{
|
|
481
573
|
"aria-label": "back button",
|
|
@@ -483,17 +575,17 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
483
575
|
size: "small",
|
|
484
576
|
onClick: goBack,
|
|
485
577
|
className,
|
|
486
|
-
...props
|
|
487
|
-
|
|
488
|
-
|
|
578
|
+
...props
|
|
579
|
+
},
|
|
580
|
+
/* @__PURE__ */ React.createElement(X, null)
|
|
489
581
|
);
|
|
490
582
|
}
|
|
491
583
|
|
|
492
584
|
// src/components/ui/Chip.tsx
|
|
493
585
|
import { cva as cva4 } from "cva";
|
|
586
|
+
import React5 from "react";
|
|
494
587
|
import { twMerge as twMerge3 } from "tailwind-merge";
|
|
495
|
-
|
|
496
|
-
var Chip = ({ className, variant, size, ...props }) => /* @__PURE__ */ jsx13("div", { className: twMerge3(chipVariants({ variant, size, className })), ...props });
|
|
588
|
+
var Chip = ({ className, variant, size, ...props }) => /* @__PURE__ */ React5.createElement("div", { className: twMerge3(chipVariants({ variant, size, className })), ...props });
|
|
497
589
|
var chipVariants = cva4(["flex", "items-center", "rounded-3xl", "border", "w-fit"], {
|
|
498
590
|
variants: {
|
|
499
591
|
variant: {
|
|
@@ -563,7 +655,6 @@ var iconMap = {
|
|
|
563
655
|
};
|
|
564
656
|
|
|
565
657
|
// src/components/jobPost/JobHeader.tsx
|
|
566
|
-
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
567
658
|
function JobHeader({
|
|
568
659
|
title,
|
|
569
660
|
subtitles,
|
|
@@ -579,130 +670,111 @@ function JobHeader({
|
|
|
579
670
|
}) {
|
|
580
671
|
const renderIcon = (icon) => {
|
|
581
672
|
const Icon2 = iconMap[icon];
|
|
582
|
-
return /* @__PURE__ */
|
|
673
|
+
return /* @__PURE__ */ React.createElement(Icon2, { size: 18 });
|
|
583
674
|
};
|
|
584
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ React.createElement(
|
|
585
676
|
"div",
|
|
586
677
|
{
|
|
587
678
|
"data-testid": "job-header-root",
|
|
588
679
|
className: cn(
|
|
589
680
|
"-mt-8 flex w-full flex-col items-center justify-between gap-6 md:-mt-0",
|
|
590
681
|
!standalone && "rounded-3xl"
|
|
682
|
+
)
|
|
683
|
+
},
|
|
684
|
+
!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(
|
|
685
|
+
Image2,
|
|
686
|
+
{
|
|
687
|
+
className: "h-full w-full rounded-t-3xl object-cover",
|
|
688
|
+
src: bannerSrc,
|
|
689
|
+
alt: "job banner",
|
|
690
|
+
fill: true
|
|
691
|
+
}
|
|
692
|
+
), /* @__PURE__ */ React.createElement(
|
|
693
|
+
BackButton,
|
|
694
|
+
{
|
|
695
|
+
acceptedRoutes: backAcceptedRoutes,
|
|
696
|
+
fallbackHref: backFallbackHref,
|
|
697
|
+
className: "absolute right-2 top-2 flex items-center justify-center text-white sm:hidden",
|
|
698
|
+
"data-testid": "job-header-back-button"
|
|
699
|
+
}
|
|
700
|
+
), /* @__PURE__ */ React.createElement(
|
|
701
|
+
"div",
|
|
702
|
+
{
|
|
703
|
+
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
704
|
+
"data-testid": "job-header-avatar"
|
|
705
|
+
},
|
|
706
|
+
/* @__PURE__ */ React.createElement(
|
|
707
|
+
Avatar,
|
|
708
|
+
{
|
|
709
|
+
size: "large",
|
|
710
|
+
target: "_blank",
|
|
711
|
+
href: avatarHref,
|
|
712
|
+
name: avatarName,
|
|
713
|
+
src: avatarSrc,
|
|
714
|
+
rel: "noopener noreferrer"
|
|
715
|
+
}
|
|
716
|
+
)
|
|
717
|
+
)),
|
|
718
|
+
/* @__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(
|
|
719
|
+
Avatar,
|
|
720
|
+
{
|
|
721
|
+
size: "large",
|
|
722
|
+
target: "_blank",
|
|
723
|
+
href: avatarHref,
|
|
724
|
+
name: avatarName,
|
|
725
|
+
src: avatarSrc,
|
|
726
|
+
rel: "noopener noreferrer"
|
|
727
|
+
}
|
|
728
|
+
)), /* @__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(
|
|
729
|
+
"div",
|
|
730
|
+
{
|
|
731
|
+
key: subtitle,
|
|
732
|
+
"data-testid": `job-header-subtitle-${i}`,
|
|
733
|
+
className: "flex items-center"
|
|
734
|
+
},
|
|
735
|
+
subtitle,
|
|
736
|
+
i < subtitles.length - 1 && /* @__PURE__ */ React.createElement(Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
737
|
+
)))), /* @__PURE__ */ React.createElement(
|
|
738
|
+
"div",
|
|
739
|
+
{
|
|
740
|
+
"data-testid": "job-header-content",
|
|
741
|
+
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1"
|
|
742
|
+
},
|
|
743
|
+
/* @__PURE__ */ React.createElement(
|
|
744
|
+
"h2",
|
|
745
|
+
{
|
|
746
|
+
"data-testid": "job-header-title",
|
|
747
|
+
className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg"
|
|
748
|
+
},
|
|
749
|
+
title
|
|
591
750
|
),
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
{
|
|
620
|
-
size: "large",
|
|
621
|
-
target: "_blank",
|
|
622
|
-
href: avatarHref,
|
|
623
|
-
name: avatarName,
|
|
624
|
-
src: avatarSrc,
|
|
625
|
-
rel: "noopener noreferrer"
|
|
626
|
-
}
|
|
627
|
-
)
|
|
628
|
-
}
|
|
629
|
-
)
|
|
630
|
-
] }),
|
|
631
|
-
/* @__PURE__ */ jsxs7("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
632
|
-
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col md:flex-row", children: [
|
|
633
|
-
standalone && /* @__PURE__ */ jsx14("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ jsx14(
|
|
634
|
-
Avatar,
|
|
635
|
-
{
|
|
636
|
-
size: "large",
|
|
637
|
-
target: "_blank",
|
|
638
|
-
href: avatarHref,
|
|
639
|
-
name: avatarName,
|
|
640
|
-
src: avatarSrc,
|
|
641
|
-
rel: "noopener noreferrer"
|
|
642
|
-
}
|
|
643
|
-
) }),
|
|
644
|
-
/* @__PURE__ */ jsx14("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ jsxs7(
|
|
645
|
-
"div",
|
|
646
|
-
{
|
|
647
|
-
"data-testid": `job-header-subtitle-${i}`,
|
|
648
|
-
className: "flex items-center",
|
|
649
|
-
children: [
|
|
650
|
-
subtitle,
|
|
651
|
-
i < subtitles.length - 1 && /* @__PURE__ */ jsx14(Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
652
|
-
]
|
|
653
|
-
},
|
|
654
|
-
subtitle
|
|
655
|
-
)) })
|
|
656
|
-
] }),
|
|
657
|
-
/* @__PURE__ */ jsxs7(
|
|
658
|
-
"div",
|
|
659
|
-
{
|
|
660
|
-
"data-testid": "job-header-content",
|
|
661
|
-
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
662
|
-
children: [
|
|
663
|
-
/* @__PURE__ */ jsx14(
|
|
664
|
-
"h2",
|
|
665
|
-
{
|
|
666
|
-
"data-testid": "job-header-title",
|
|
667
|
-
className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg",
|
|
668
|
-
children: title
|
|
669
|
-
}
|
|
670
|
-
),
|
|
671
|
-
!!actions && /* @__PURE__ */ jsx14(
|
|
672
|
-
"div",
|
|
673
|
-
{
|
|
674
|
-
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
675
|
-
"data-testid": "job-header-actions",
|
|
676
|
-
children: actions
|
|
677
|
-
}
|
|
678
|
-
)
|
|
679
|
-
]
|
|
680
|
-
}
|
|
681
|
-
),
|
|
682
|
-
/* @__PURE__ */ jsx14(
|
|
683
|
-
"div",
|
|
684
|
-
{
|
|
685
|
-
"data-testid": "job-header-tags",
|
|
686
|
-
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
687
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ jsxs7(
|
|
688
|
-
Chip_default,
|
|
689
|
-
{
|
|
690
|
-
size: "small",
|
|
691
|
-
variant: "neutral",
|
|
692
|
-
"aria-label": name,
|
|
693
|
-
"data-testid": `job-header-tag-${name}`,
|
|
694
|
-
children: [
|
|
695
|
-
renderIcon(icon),
|
|
696
|
-
/* @__PURE__ */ jsx14("span", { children: label })
|
|
697
|
-
]
|
|
698
|
-
},
|
|
699
|
-
`${name}-${label}`
|
|
700
|
-
))
|
|
701
|
-
}
|
|
702
|
-
)
|
|
703
|
-
] })
|
|
704
|
-
]
|
|
705
|
-
}
|
|
751
|
+
!!actions && /* @__PURE__ */ React.createElement(
|
|
752
|
+
"div",
|
|
753
|
+
{
|
|
754
|
+
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
755
|
+
"data-testid": "job-header-actions"
|
|
756
|
+
},
|
|
757
|
+
actions
|
|
758
|
+
)
|
|
759
|
+
), /* @__PURE__ */ React.createElement(
|
|
760
|
+
"div",
|
|
761
|
+
{
|
|
762
|
+
"data-testid": "job-header-tags",
|
|
763
|
+
className: "flex flex-row flex-wrap items-center justify-start gap-2"
|
|
764
|
+
},
|
|
765
|
+
tags?.map(({ name, label, icon }) => /* @__PURE__ */ React.createElement(
|
|
766
|
+
Chip_default,
|
|
767
|
+
{
|
|
768
|
+
key: `${name}-${label}`,
|
|
769
|
+
size: "small",
|
|
770
|
+
variant: "neutral",
|
|
771
|
+
"aria-label": name,
|
|
772
|
+
"data-testid": `job-header-tag-${name}`
|
|
773
|
+
},
|
|
774
|
+
renderIcon(icon),
|
|
775
|
+
/* @__PURE__ */ React.createElement("span", null, label)
|
|
776
|
+
))
|
|
777
|
+
))
|
|
706
778
|
);
|
|
707
779
|
}
|
|
708
780
|
|
|
@@ -1643,7 +1715,6 @@ function salaryRange(salary, showUnitText = true) {
|
|
|
1643
1715
|
}
|
|
1644
1716
|
|
|
1645
1717
|
// src/components/jobPost/JobPost.tsx
|
|
1646
|
-
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1647
1718
|
function JobPost({
|
|
1648
1719
|
job,
|
|
1649
1720
|
bannerSrc,
|
|
@@ -1689,58 +1760,51 @@ function JobPost({
|
|
|
1689
1760
|
label
|
|
1690
1761
|
}))
|
|
1691
1762
|
].filter((t) => !!t);
|
|
1692
|
-
return /* @__PURE__ */
|
|
1763
|
+
return /* @__PURE__ */ React.createElement(
|
|
1693
1764
|
"div",
|
|
1694
1765
|
{
|
|
1695
1766
|
className: cn(
|
|
1696
1767
|
"flex flex-col gap-10 pb-4",
|
|
1697
1768
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
1698
|
-
)
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
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
|
-
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
1739
|
-
}
|
|
1740
|
-
)
|
|
1741
|
-
] })
|
|
1742
|
-
]
|
|
1743
|
-
}
|
|
1769
|
+
)
|
|
1770
|
+
},
|
|
1771
|
+
/* @__PURE__ */ React.createElement(
|
|
1772
|
+
JobHeader,
|
|
1773
|
+
{
|
|
1774
|
+
title: job.title,
|
|
1775
|
+
bannerSrc,
|
|
1776
|
+
avatarName: job.hiringOrganization?.companyName,
|
|
1777
|
+
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
1778
|
+
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
1779
|
+
actions,
|
|
1780
|
+
standalone,
|
|
1781
|
+
avatarHref,
|
|
1782
|
+
backFallbackHref: fallbackHref,
|
|
1783
|
+
backAcceptedRoutes,
|
|
1784
|
+
tags
|
|
1785
|
+
}
|
|
1786
|
+
),
|
|
1787
|
+
/* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-8 px-6" }, /* @__PURE__ */ React.createElement(JobDescription, { description: job.description }), /* @__PURE__ */ React.createElement(
|
|
1788
|
+
CompanyTake,
|
|
1789
|
+
{
|
|
1790
|
+
avatarSrc,
|
|
1791
|
+
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
1792
|
+
}
|
|
1793
|
+
), /* @__PURE__ */ React.createElement(
|
|
1794
|
+
CompanyInformation,
|
|
1795
|
+
{
|
|
1796
|
+
name: job.hiringOrganization?.companyName ?? "",
|
|
1797
|
+
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
1798
|
+
mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
|
|
1799
|
+
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
1800
|
+
website: job.hiringOrganization?.companyWebsite
|
|
1801
|
+
}
|
|
1802
|
+
), /* @__PURE__ */ React.createElement(
|
|
1803
|
+
CompanyBenefits,
|
|
1804
|
+
{
|
|
1805
|
+
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
1806
|
+
}
|
|
1807
|
+
))
|
|
1744
1808
|
);
|
|
1745
1809
|
}
|
|
1746
1810
|
export {
|