@next-degree/pickle-shared-js 0.7.51 → 0.7.52
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/components/jobPost/JobPost.d.cts +1 -1
- package/dist/components/jobPost/JobPost.d.ts +1 -1
- package/dist/components/primitives/command.d.cts +2 -2
- package/dist/components/primitives/command.d.ts +2 -2
- package/dist/components/primitives/input-otp.d.cts +2 -2
- package/dist/components/primitives/input-otp.d.ts +2 -2
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/{displayText-CQRZ2fOT.d.cts → displayText-6TMMBOmQ.d.cts} +2 -2
- package/dist/{displayText-LlsLfkTS.d.ts → displayText-BCC_oy5I.d.ts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +284 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +255 -68
- package/dist/index.js.map +1 -1
- package/dist/lib/locations.d.cts +2 -2
- package/dist/lib/locations.d.ts +2 -2
- 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/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/package.json +1 -1
- package/dist/{company_service_latest-8IMr2hMZ.d.cts → company_service_latest-BUKbZgpZ.d.cts} +229 -229
- package/dist/{company_service_latest-8IMr2hMZ.d.ts → company_service_latest-BUKbZgpZ.d.ts} +229 -229
- package/dist/{job_posting_service_latest-CKITrYyz.d.cts → job_posting_service_latest-2KcpupDl.d.cts} +209 -209
- package/dist/{job_posting_service_latest-CKITrYyz.d.ts → job_posting_service_latest-2KcpupDl.d.ts} +209 -209
- package/dist/{shared_pickle_output_latest-Cwf2EMdH.d.cts → shared_pickle_output_latest-D2n-PRlx.d.cts} +17 -17
- package/dist/{shared_pickle_output_latest-Cwf2EMdH.d.ts → shared_pickle_output_latest-D2n-PRlx.d.ts} +17 -17
package/dist/index.d.cts
CHANGED
|
@@ -15,6 +15,7 @@ export { Icon } from './components/ui/Icon.cjs';
|
|
|
15
15
|
export { InputOtp } from './components/ui/InputOtp.cjs';
|
|
16
16
|
export { LinkButton } from './components/ui/LinkButton.cjs';
|
|
17
17
|
export { ReadMore } from './components/ui/ReadMore.cjs';
|
|
18
|
+
export { DatePicker } from './components/ui/DatePicker.cjs';
|
|
18
19
|
export { fetchLocation } from './lib/google.cjs';
|
|
19
20
|
export { cn } from './lib/utils.cjs';
|
|
20
21
|
export { CompanyBenefits } from './components/company/CompanyBenefits.cjs';
|
|
@@ -27,9 +28,9 @@ export { BackButton } from './components/buttons/BackButton.cjs';
|
|
|
27
28
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
28
29
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
29
30
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
30
|
-
export { c as CompanyService } from './company_service_latest-
|
|
31
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
32
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
31
|
+
export { c as CompanyService } from './company_service_latest-BUKbZgpZ.cjs';
|
|
32
|
+
export { j as JobPostService } from './job_posting_service_latest-2KcpupDl.cjs';
|
|
33
|
+
export { s as SharedService } from './shared_pickle_output_latest-D2n-PRlx.cjs';
|
|
33
34
|
import 'react';
|
|
34
35
|
import '@radix-ui/react-checkbox';
|
|
35
36
|
import 'cva/types';
|
|
@@ -40,5 +41,5 @@ import '@googlemaps/google-maps-services-js';
|
|
|
40
41
|
import 'next/link';
|
|
41
42
|
import 'clsx';
|
|
42
43
|
import './lib/icons.cjs';
|
|
43
|
-
import './displayText-
|
|
44
|
+
import './displayText-6TMMBOmQ.cjs';
|
|
44
45
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { Icon } from './components/ui/Icon.js';
|
|
|
15
15
|
export { InputOtp } from './components/ui/InputOtp.js';
|
|
16
16
|
export { LinkButton } from './components/ui/LinkButton.js';
|
|
17
17
|
export { ReadMore } from './components/ui/ReadMore.js';
|
|
18
|
+
export { DatePicker } from './components/ui/DatePicker.js';
|
|
18
19
|
export { fetchLocation } from './lib/google.js';
|
|
19
20
|
export { cn } from './lib/utils.js';
|
|
20
21
|
export { CompanyBenefits } from './components/company/CompanyBenefits.js';
|
|
@@ -27,9 +28,9 @@ export { BackButton } from './components/buttons/BackButton.js';
|
|
|
27
28
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
28
29
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
29
30
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
30
|
-
export { c as CompanyService } from './company_service_latest-
|
|
31
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
32
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
31
|
+
export { c as CompanyService } from './company_service_latest-BUKbZgpZ.js';
|
|
32
|
+
export { j as JobPostService } from './job_posting_service_latest-2KcpupDl.js';
|
|
33
|
+
export { s as SharedService } from './shared_pickle_output_latest-D2n-PRlx.js';
|
|
33
34
|
import 'react';
|
|
34
35
|
import '@radix-ui/react-checkbox';
|
|
35
36
|
import 'cva/types';
|
|
@@ -40,5 +41,5 @@ import '@googlemaps/google-maps-services-js';
|
|
|
40
41
|
import 'next/link';
|
|
41
42
|
import 'clsx';
|
|
42
43
|
import './lib/icons.js';
|
|
43
|
-
import './displayText-
|
|
44
|
+
import './displayText-BCC_oy5I.js';
|
|
44
45
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1636,18 +1636,204 @@ function ReadMore({ text, ...props }) {
|
|
|
1636
1636
|
] });
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
|
+
// src/components/ui/DatePicker.tsx
|
|
1640
|
+
import { cva as cva10 } from "cva";
|
|
1641
|
+
import { forwardRef as forwardRef17, useEffect as useEffect6, useState as useState6 } from "react";
|
|
1642
|
+
import { format } from "date-fns";
|
|
1643
|
+
|
|
1644
|
+
// src/components/ui/calendar.tsx
|
|
1645
|
+
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
1646
|
+
import { DayPicker } from "react-day-picker";
|
|
1647
|
+
|
|
1648
|
+
// src/components/ui/buttonShadcn.tsx
|
|
1649
|
+
import * as React9 from "react";
|
|
1650
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1651
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
1652
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1653
|
+
var buttonVariants2 = cva9(
|
|
1654
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300",
|
|
1655
|
+
{
|
|
1656
|
+
variants: {
|
|
1657
|
+
variant: {
|
|
1658
|
+
default: "bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",
|
|
1659
|
+
destructive: "bg-red-500 text-neutral-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",
|
|
1660
|
+
outline: "border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
|
|
1661
|
+
secondary: "bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",
|
|
1662
|
+
ghost: "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
|
|
1663
|
+
link: "text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"
|
|
1664
|
+
},
|
|
1665
|
+
size: {
|
|
1666
|
+
default: "h-9 px-4 py-2",
|
|
1667
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
1668
|
+
lg: "h-10 rounded-md px-8",
|
|
1669
|
+
icon: "h-9 w-9"
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
defaultVariants: {
|
|
1673
|
+
variant: "default",
|
|
1674
|
+
size: "default"
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
);
|
|
1678
|
+
var Button2 = React9.forwardRef(
|
|
1679
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
1680
|
+
const Comp = asChild ? Slot3 : "button";
|
|
1681
|
+
return /* @__PURE__ */ jsx26(
|
|
1682
|
+
Comp,
|
|
1683
|
+
{
|
|
1684
|
+
className: cn(buttonVariants2({ variant, size, className })),
|
|
1685
|
+
ref,
|
|
1686
|
+
...props
|
|
1687
|
+
}
|
|
1688
|
+
);
|
|
1689
|
+
}
|
|
1690
|
+
);
|
|
1691
|
+
Button2.displayName = "Button";
|
|
1692
|
+
|
|
1693
|
+
// src/components/ui/calendar.tsx
|
|
1694
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1695
|
+
function Calendar({
|
|
1696
|
+
className,
|
|
1697
|
+
classNames,
|
|
1698
|
+
showOutsideDays = true,
|
|
1699
|
+
...props
|
|
1700
|
+
}) {
|
|
1701
|
+
return /* @__PURE__ */ jsx27(
|
|
1702
|
+
DayPicker,
|
|
1703
|
+
{
|
|
1704
|
+
showOutsideDays,
|
|
1705
|
+
className: cn("p-3", className),
|
|
1706
|
+
classNames: {
|
|
1707
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
1708
|
+
month: "space-y-4",
|
|
1709
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
1710
|
+
caption_label: "text-sm font-medium",
|
|
1711
|
+
nav: "space-x-1 flex items-center",
|
|
1712
|
+
nav_button: cn(
|
|
1713
|
+
buttonVariants2({ variant: "outline" }),
|
|
1714
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
1715
|
+
),
|
|
1716
|
+
nav_button_previous: "absolute left-1",
|
|
1717
|
+
nav_button_next: "absolute right-1",
|
|
1718
|
+
table: "w-full border-collapse space-y-1",
|
|
1719
|
+
head_row: "flex",
|
|
1720
|
+
head_cell: "text-neutral-500 rounded-md w-8 font-normal text-[0.8rem] dark:text-neutral-400",
|
|
1721
|
+
row: "flex w-full mt-2",
|
|
1722
|
+
cell: cn(
|
|
1723
|
+
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-neutral-100 [&:has([aria-selected].day-outside)]:bg-neutral-100/50 [&:has([aria-selected].day-range-end)]:rounded-r-md dark:[&:has([aria-selected])]:bg-neutral-800 dark:[&:has([aria-selected].day-outside)]:bg-neutral-800/50",
|
|
1724
|
+
props.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
|
|
1725
|
+
),
|
|
1726
|
+
day: cn(
|
|
1727
|
+
buttonVariants2({ variant: "ghost" }),
|
|
1728
|
+
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
|
1729
|
+
),
|
|
1730
|
+
day_range_start: "day-range-start",
|
|
1731
|
+
day_range_end: "day-range-end",
|
|
1732
|
+
day_selected: "bg-neutral-900 text-neutral-50 hover:bg-neutral-900 hover:text-neutral-50 focus:bg-neutral-900 focus:text-neutral-50 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50 dark:hover:text-neutral-900 dark:focus:bg-neutral-50 dark:focus:text-neutral-900",
|
|
1733
|
+
day_today: "bg-neutral-100 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-50",
|
|
1734
|
+
day_outside: "day-outside text-neutral-500 aria-selected:bg-neutral-100/50 aria-selected:text-neutral-500 dark:text-neutral-400 dark:aria-selected:bg-neutral-800/50 dark:aria-selected:text-neutral-400",
|
|
1735
|
+
day_disabled: "text-neutral-500 opacity-50 dark:text-neutral-400",
|
|
1736
|
+
day_range_middle: "aria-selected:bg-neutral-100 aria-selected:text-neutral-900 dark:aria-selected:bg-neutral-800 dark:aria-selected:text-neutral-50",
|
|
1737
|
+
day_hidden: "invisible",
|
|
1738
|
+
...classNames
|
|
1739
|
+
},
|
|
1740
|
+
components: {
|
|
1741
|
+
IconLeft: ({ className: className2, ...props2 }) => /* @__PURE__ */ jsx27(ChevronLeft, { className: cn("h-4 w-4", className2), ...props2 }),
|
|
1742
|
+
IconRight: ({ className: className2, ...props2 }) => /* @__PURE__ */ jsx27(ChevronRight, { className: cn("h-4 w-4", className2), ...props2 })
|
|
1743
|
+
},
|
|
1744
|
+
...props
|
|
1745
|
+
}
|
|
1746
|
+
);
|
|
1747
|
+
}
|
|
1748
|
+
Calendar.displayName = "Calendar";
|
|
1749
|
+
|
|
1750
|
+
// src/components/ui/DatePicker.tsx
|
|
1751
|
+
import { Calendar as CalendarIcon } from "lucide-react";
|
|
1752
|
+
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1753
|
+
var DatePicker = forwardRef17(({ label, description, required, classNames, value, onChange, error }, ref) => {
|
|
1754
|
+
const [date, setDate] = useState6(null);
|
|
1755
|
+
useEffect6(() => {
|
|
1756
|
+
setDate(value ?? null);
|
|
1757
|
+
}, [value]);
|
|
1758
|
+
const handleDateSelect = (dateSelected) => {
|
|
1759
|
+
if (!dateSelected) return;
|
|
1760
|
+
onChange?.(dateSelected);
|
|
1761
|
+
setDate(dateSelected);
|
|
1762
|
+
};
|
|
1763
|
+
return /* @__PURE__ */ jsxs15("div", { className: cn("flex w-auto flex-col gap-1"), children: [
|
|
1764
|
+
label && /* @__PURE__ */ jsx28(
|
|
1765
|
+
Label_default,
|
|
1766
|
+
{
|
|
1767
|
+
text: label,
|
|
1768
|
+
required,
|
|
1769
|
+
description,
|
|
1770
|
+
className: classNames?.label
|
|
1771
|
+
}
|
|
1772
|
+
),
|
|
1773
|
+
/* @__PURE__ */ jsxs15(Popover, { children: [
|
|
1774
|
+
/* @__PURE__ */ jsx28(PopoverTrigger, { children: /* @__PURE__ */ jsxs15("div", { className: cn(datePickerStyle()), children: [
|
|
1775
|
+
/* @__PURE__ */ jsx28(CalendarIcon, { size: 16 }),
|
|
1776
|
+
date ? format(date, "MM/dd/yyyy") : "Select a date"
|
|
1777
|
+
] }) }),
|
|
1778
|
+
/* @__PURE__ */ jsx28(PopoverContent, { ref, children: /* @__PURE__ */ jsx28(
|
|
1779
|
+
Calendar,
|
|
1780
|
+
{
|
|
1781
|
+
mode: "single",
|
|
1782
|
+
selected: date || void 0,
|
|
1783
|
+
onSelect: handleDateSelect,
|
|
1784
|
+
captionLayout: "dropdown",
|
|
1785
|
+
showOutsideDays: true
|
|
1786
|
+
}
|
|
1787
|
+
) })
|
|
1788
|
+
] }),
|
|
1789
|
+
/* @__PURE__ */ jsx28(ErrorMessage_default, { message: error })
|
|
1790
|
+
] });
|
|
1791
|
+
});
|
|
1792
|
+
var datePickerStyle = cva10(
|
|
1793
|
+
[
|
|
1794
|
+
"placeholder:text-muted-foreground",
|
|
1795
|
+
"focus-visible:ring-ring",
|
|
1796
|
+
"inline-flex",
|
|
1797
|
+
"w-full",
|
|
1798
|
+
"h-11",
|
|
1799
|
+
"items-center",
|
|
1800
|
+
"justify-start",
|
|
1801
|
+
"gap-3",
|
|
1802
|
+
"rounded-lg",
|
|
1803
|
+
"bg-transparent",
|
|
1804
|
+
"px-3",
|
|
1805
|
+
"pt-0.5",
|
|
1806
|
+
"text-sm",
|
|
1807
|
+
"shadow-sm",
|
|
1808
|
+
"ring-grey-50",
|
|
1809
|
+
"transition-colors",
|
|
1810
|
+
"focus-visible:outline-none",
|
|
1811
|
+
"focus-visible:ring-1",
|
|
1812
|
+
"disabled:cursor-not-allowed",
|
|
1813
|
+
"disabled:opacity-50",
|
|
1814
|
+
"appearance-none",
|
|
1815
|
+
"[&::-webkit-search-cancel-button]:appearance-none",
|
|
1816
|
+
"[&::-webkit-search-decoration]:appearance-none",
|
|
1817
|
+
"[&::-webkit-search-results-button]:appearance-none",
|
|
1818
|
+
"[&::-webkit-search-results-decoration]:appearance-none",
|
|
1819
|
+
"[&::-ms-clear]:display-none",
|
|
1820
|
+
"[&::-ms-reveal]:display-none",
|
|
1821
|
+
"text-grey-80 border"
|
|
1822
|
+
]
|
|
1823
|
+
);
|
|
1824
|
+
|
|
1639
1825
|
// src/components/company/CompanyBenefits.tsx
|
|
1640
|
-
import { jsx as
|
|
1826
|
+
import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1641
1827
|
function CompanyBenefits({ benefits }) {
|
|
1642
1828
|
if (!benefits) return null;
|
|
1643
|
-
return /* @__PURE__ */
|
|
1644
|
-
/* @__PURE__ */
|
|
1645
|
-
/* @__PURE__ */
|
|
1829
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
1830
|
+
/* @__PURE__ */ jsx29("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg", children: "Company benefits" }),
|
|
1831
|
+
/* @__PURE__ */ jsx29("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ jsx29("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
1646
1832
|
] });
|
|
1647
1833
|
}
|
|
1648
1834
|
|
|
1649
1835
|
// src/components/company/CompanyInformation.tsx
|
|
1650
|
-
import { jsx as
|
|
1836
|
+
import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1651
1837
|
function CompanyInformation({
|
|
1652
1838
|
name,
|
|
1653
1839
|
how,
|
|
@@ -1655,8 +1841,8 @@ function CompanyInformation({
|
|
|
1655
1841
|
wow,
|
|
1656
1842
|
website
|
|
1657
1843
|
}) {
|
|
1658
|
-
return /* @__PURE__ */
|
|
1659
|
-
/* @__PURE__ */
|
|
1844
|
+
return /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
|
|
1845
|
+
/* @__PURE__ */ jsxs17(
|
|
1660
1846
|
"h2",
|
|
1661
1847
|
{
|
|
1662
1848
|
"data-testid": "company-name",
|
|
@@ -1667,22 +1853,22 @@ function CompanyInformation({
|
|
|
1667
1853
|
]
|
|
1668
1854
|
}
|
|
1669
1855
|
),
|
|
1670
|
-
how && /* @__PURE__ */
|
|
1671
|
-
mission && /* @__PURE__ */
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
/* @__PURE__ */
|
|
1674
|
-
/* @__PURE__ */
|
|
1856
|
+
how && /* @__PURE__ */ jsx30("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
1857
|
+
mission && /* @__PURE__ */ jsxs17("div", { className: "flex gap-2", children: [
|
|
1858
|
+
/* @__PURE__ */ jsx30("span", { children: "\u{1F680}" }),
|
|
1859
|
+
/* @__PURE__ */ jsxs17("p", { className: "text-base text-grey-80", children: [
|
|
1860
|
+
/* @__PURE__ */ jsx30("span", { className: "pr-1 font-bold", children: "Mission" }),
|
|
1675
1861
|
mission
|
|
1676
1862
|
] })
|
|
1677
1863
|
] }),
|
|
1678
|
-
wow && /* @__PURE__ */
|
|
1679
|
-
/* @__PURE__ */
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1864
|
+
wow && /* @__PURE__ */ jsxs17("div", { className: "flex gap-2", children: [
|
|
1865
|
+
/* @__PURE__ */ jsx30("span", { children: "\u{1F31F}" }),
|
|
1866
|
+
/* @__PURE__ */ jsxs17("p", { className: "text-base text-grey-80", children: [
|
|
1867
|
+
/* @__PURE__ */ jsx30("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
1682
1868
|
wow
|
|
1683
1869
|
] })
|
|
1684
1870
|
] }),
|
|
1685
|
-
website && /* @__PURE__ */
|
|
1871
|
+
website && /* @__PURE__ */ jsx30("div", { className: "pt-2", children: /* @__PURE__ */ jsx30(
|
|
1686
1872
|
LinkButton,
|
|
1687
1873
|
{
|
|
1688
1874
|
"data-testid": "company-website-link",
|
|
@@ -1696,22 +1882,22 @@ function CompanyInformation({
|
|
|
1696
1882
|
}
|
|
1697
1883
|
|
|
1698
1884
|
// src/components/company/CompanyTake.tsx
|
|
1699
|
-
import { jsx as
|
|
1885
|
+
import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1700
1886
|
function CompanyTake({ content, avatarSrc }) {
|
|
1701
1887
|
if (!content) return null;
|
|
1702
|
-
return /* @__PURE__ */
|
|
1888
|
+
return /* @__PURE__ */ jsxs18(
|
|
1703
1889
|
"div",
|
|
1704
1890
|
{
|
|
1705
1891
|
"data-testid": "company-take",
|
|
1706
1892
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
1707
1893
|
children: [
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
/* @__PURE__ */
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1712
|
-
/* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */
|
|
1714
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ jsx31("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
1895
|
+
/* @__PURE__ */ jsx31("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ jsx31("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
|
|
1896
|
+
/* @__PURE__ */ jsxs18("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
1897
|
+
/* @__PURE__ */ jsx31(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
1898
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
1899
|
+
/* @__PURE__ */ jsx31("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
1900
|
+
/* @__PURE__ */ jsx31("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
1715
1901
|
] })
|
|
1716
1902
|
] })
|
|
1717
1903
|
]
|
|
@@ -1720,12 +1906,12 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
1720
1906
|
}
|
|
1721
1907
|
|
|
1722
1908
|
// src/components/jobPost/JobDescription.tsx
|
|
1723
|
-
import { jsx as
|
|
1909
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1724
1910
|
function JobDescription({ description }) {
|
|
1725
1911
|
if (!description) return null;
|
|
1726
|
-
return /* @__PURE__ */
|
|
1727
|
-
/* @__PURE__ */
|
|
1728
|
-
/* @__PURE__ */
|
|
1912
|
+
return /* @__PURE__ */ jsxs19("div", { className: "flex w-full flex-col gap-2", children: [
|
|
1913
|
+
/* @__PURE__ */ jsx32("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
1914
|
+
/* @__PURE__ */ jsx32(ReadMore, { text: description })
|
|
1729
1915
|
] });
|
|
1730
1916
|
}
|
|
1731
1917
|
|
|
@@ -1742,19 +1928,19 @@ import { useContext as useContext2 } from "react";
|
|
|
1742
1928
|
|
|
1743
1929
|
// src/contexts/WindowHistoryProvider.tsx
|
|
1744
1930
|
import { useSearchParams } from "next/navigation";
|
|
1745
|
-
import { createContext, useEffect as
|
|
1746
|
-
import { jsx as
|
|
1931
|
+
import { createContext, useEffect as useEffect7, useMemo, useState as useState7 } from "react";
|
|
1932
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1747
1933
|
var WindowHistoryContext = createContext({});
|
|
1748
1934
|
function WindowHistoryProvider({ children }) {
|
|
1749
|
-
const [history, setHistory] =
|
|
1935
|
+
const [history, setHistory] = useState7([]);
|
|
1750
1936
|
const searchParams = useSearchParams();
|
|
1751
|
-
|
|
1937
|
+
useEffect7(() => {
|
|
1752
1938
|
setHistory(
|
|
1753
1939
|
(prev) => prev.at(-1) === window.location.href ? prev : [...prev, window.location.href]
|
|
1754
1940
|
);
|
|
1755
1941
|
}, [searchParams]);
|
|
1756
1942
|
const contextValue = useMemo(() => ({ history }), [history]);
|
|
1757
|
-
return /* @__PURE__ */
|
|
1943
|
+
return /* @__PURE__ */ jsx33(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
1758
1944
|
}
|
|
1759
1945
|
|
|
1760
1946
|
// src/hooks/useWindowHistory.ts
|
|
@@ -1764,7 +1950,7 @@ function useWindowHistory() {
|
|
|
1764
1950
|
}
|
|
1765
1951
|
|
|
1766
1952
|
// src/components/buttons/BackButton.tsx
|
|
1767
|
-
import { jsx as
|
|
1953
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1768
1954
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
1769
1955
|
const { history } = useWindowHistory();
|
|
1770
1956
|
const router = useRouter();
|
|
@@ -1777,7 +1963,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1777
1963
|
router.push(fallbackHref ?? "/");
|
|
1778
1964
|
}
|
|
1779
1965
|
};
|
|
1780
|
-
return /* @__PURE__ */
|
|
1966
|
+
return /* @__PURE__ */ jsx34(
|
|
1781
1967
|
Icon,
|
|
1782
1968
|
{
|
|
1783
1969
|
"aria-label": "back button",
|
|
@@ -1786,7 +1972,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1786
1972
|
onClick: goBack,
|
|
1787
1973
|
className,
|
|
1788
1974
|
...props,
|
|
1789
|
-
children: /* @__PURE__ */
|
|
1975
|
+
children: /* @__PURE__ */ jsx34(X4, {})
|
|
1790
1976
|
}
|
|
1791
1977
|
);
|
|
1792
1978
|
}
|
|
@@ -1838,7 +2024,7 @@ var iconMap = {
|
|
|
1838
2024
|
};
|
|
1839
2025
|
|
|
1840
2026
|
// src/components/jobPost/JobHeader.tsx
|
|
1841
|
-
import { jsx as
|
|
2027
|
+
import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1842
2028
|
function JobHeader({
|
|
1843
2029
|
title,
|
|
1844
2030
|
subtitles,
|
|
@@ -1854,9 +2040,9 @@ function JobHeader({
|
|
|
1854
2040
|
}) {
|
|
1855
2041
|
const renderIcon = (icon) => {
|
|
1856
2042
|
const Icon2 = iconMap[icon];
|
|
1857
|
-
return /* @__PURE__ */
|
|
2043
|
+
return /* @__PURE__ */ jsx35(Icon2, { size: 18 });
|
|
1858
2044
|
};
|
|
1859
|
-
return /* @__PURE__ */
|
|
2045
|
+
return /* @__PURE__ */ jsxs20(
|
|
1860
2046
|
"div",
|
|
1861
2047
|
{
|
|
1862
2048
|
"data-testid": "job-header-root",
|
|
@@ -1865,8 +2051,8 @@ function JobHeader({
|
|
|
1865
2051
|
!standalone && "rounded-3xl"
|
|
1866
2052
|
),
|
|
1867
2053
|
children: [
|
|
1868
|
-
!standalone && /* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
2054
|
+
!standalone && /* @__PURE__ */ jsxs20("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", children: [
|
|
2055
|
+
/* @__PURE__ */ jsx35(
|
|
1870
2056
|
Image2,
|
|
1871
2057
|
{
|
|
1872
2058
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -1875,7 +2061,7 @@ function JobHeader({
|
|
|
1875
2061
|
fill: true
|
|
1876
2062
|
}
|
|
1877
2063
|
),
|
|
1878
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ jsx35(
|
|
1879
2065
|
BackButton,
|
|
1880
2066
|
{
|
|
1881
2067
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -1884,12 +2070,12 @@ function JobHeader({
|
|
|
1884
2070
|
"data-testid": "job-header-back-button"
|
|
1885
2071
|
}
|
|
1886
2072
|
),
|
|
1887
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ jsx35(
|
|
1888
2074
|
"div",
|
|
1889
2075
|
{
|
|
1890
2076
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
1891
2077
|
"data-testid": "job-header-avatar",
|
|
1892
|
-
children: /* @__PURE__ */
|
|
2078
|
+
children: /* @__PURE__ */ jsx35(
|
|
1893
2079
|
Avatar,
|
|
1894
2080
|
{
|
|
1895
2081
|
size: "large",
|
|
@@ -1903,9 +2089,9 @@ function JobHeader({
|
|
|
1903
2089
|
}
|
|
1904
2090
|
)
|
|
1905
2091
|
] }),
|
|
1906
|
-
/* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
standalone && /* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
2093
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex flex-col md:flex-row", children: [
|
|
2094
|
+
standalone && /* @__PURE__ */ jsx35("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ jsx35(
|
|
1909
2095
|
Avatar,
|
|
1910
2096
|
{
|
|
1911
2097
|
size: "large",
|
|
@@ -1916,26 +2102,26 @@ function JobHeader({
|
|
|
1916
2102
|
rel: "noopener noreferrer"
|
|
1917
2103
|
}
|
|
1918
2104
|
) }),
|
|
1919
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ jsx35("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ jsxs20(
|
|
1920
2106
|
"div",
|
|
1921
2107
|
{
|
|
1922
2108
|
"data-testid": `job-header-subtitle-${i}`,
|
|
1923
2109
|
className: "flex items-center",
|
|
1924
2110
|
children: [
|
|
1925
2111
|
subtitle,
|
|
1926
|
-
i < subtitles.length - 1 && /* @__PURE__ */
|
|
2112
|
+
i < subtitles.length - 1 && /* @__PURE__ */ jsx35(Dot2, { className: "mx-1 shrink-0", size: 10 })
|
|
1927
2113
|
]
|
|
1928
2114
|
},
|
|
1929
2115
|
subtitle
|
|
1930
2116
|
)) })
|
|
1931
2117
|
] }),
|
|
1932
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsxs20(
|
|
1933
2119
|
"div",
|
|
1934
2120
|
{
|
|
1935
2121
|
"data-testid": "job-header-content",
|
|
1936
2122
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
1937
2123
|
children: [
|
|
1938
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsx35(
|
|
1939
2125
|
"h2",
|
|
1940
2126
|
{
|
|
1941
2127
|
"data-testid": "job-header-title",
|
|
@@ -1943,7 +2129,7 @@ function JobHeader({
|
|
|
1943
2129
|
children: title
|
|
1944
2130
|
}
|
|
1945
2131
|
),
|
|
1946
|
-
!!actions && /* @__PURE__ */
|
|
2132
|
+
!!actions && /* @__PURE__ */ jsx35(
|
|
1947
2133
|
"div",
|
|
1948
2134
|
{
|
|
1949
2135
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -1954,12 +2140,12 @@ function JobHeader({
|
|
|
1954
2140
|
]
|
|
1955
2141
|
}
|
|
1956
2142
|
),
|
|
1957
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ jsx35(
|
|
1958
2144
|
"div",
|
|
1959
2145
|
{
|
|
1960
2146
|
"data-testid": "job-header-tags",
|
|
1961
2147
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
1962
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */
|
|
2148
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ jsxs20(
|
|
1963
2149
|
Chip_default,
|
|
1964
2150
|
{
|
|
1965
2151
|
size: "small",
|
|
@@ -1968,7 +2154,7 @@ function JobHeader({
|
|
|
1968
2154
|
"data-testid": `job-header-tag-${name}`,
|
|
1969
2155
|
children: [
|
|
1970
2156
|
renderIcon(icon),
|
|
1971
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ jsx35("span", { children: label })
|
|
1972
2158
|
]
|
|
1973
2159
|
},
|
|
1974
2160
|
name
|
|
@@ -1985,7 +2171,7 @@ function JobHeader({
|
|
|
1985
2171
|
import * as DateFns from "date-fns";
|
|
1986
2172
|
|
|
1987
2173
|
// src/hooks/useDisplayText.ts
|
|
1988
|
-
import { useEffect as
|
|
2174
|
+
import { useEffect as useEffect8, useMemo as useMemo2, useState as useState8 } from "react";
|
|
1989
2175
|
|
|
1990
2176
|
// src/lib/mappings.ts
|
|
1991
2177
|
var employmentTypeDisplayText = {
|
|
@@ -2429,9 +2615,9 @@ var DisplayTextService = class {
|
|
|
2429
2615
|
|
|
2430
2616
|
// src/hooks/useDisplayText.ts
|
|
2431
2617
|
var useDisplayText = (scope, value) => {
|
|
2432
|
-
const [displayText, setDisplayText] =
|
|
2618
|
+
const [displayText, setDisplayText] = useState8("");
|
|
2433
2619
|
const displayService = useMemo2(() => new DisplayTextService(), []);
|
|
2434
|
-
|
|
2620
|
+
useEffect8(() => {
|
|
2435
2621
|
if (!displayService || !value) {
|
|
2436
2622
|
setDisplayText("");
|
|
2437
2623
|
return;
|
|
@@ -2570,7 +2756,7 @@ function salaryRange(salary) {
|
|
|
2570
2756
|
}
|
|
2571
2757
|
|
|
2572
2758
|
// src/components/jobPost/JobPost.tsx
|
|
2573
|
-
import { jsx as
|
|
2759
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2574
2760
|
function JobPost({
|
|
2575
2761
|
job,
|
|
2576
2762
|
bannerSrc,
|
|
@@ -2614,7 +2800,7 @@ function JobPost({
|
|
|
2614
2800
|
label: formattedLocation
|
|
2615
2801
|
}
|
|
2616
2802
|
].filter((t) => !!t);
|
|
2617
|
-
return /* @__PURE__ */
|
|
2803
|
+
return /* @__PURE__ */ jsxs21(
|
|
2618
2804
|
"div",
|
|
2619
2805
|
{
|
|
2620
2806
|
className: cn(
|
|
@@ -2622,7 +2808,7 @@ function JobPost({
|
|
|
2622
2808
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
2623
2809
|
),
|
|
2624
2810
|
children: [
|
|
2625
|
-
/* @__PURE__ */
|
|
2811
|
+
/* @__PURE__ */ jsx36(
|
|
2626
2812
|
JobHeader,
|
|
2627
2813
|
{
|
|
2628
2814
|
title: job.title,
|
|
@@ -2636,16 +2822,16 @@ function JobPost({
|
|
|
2636
2822
|
tags
|
|
2637
2823
|
}
|
|
2638
2824
|
),
|
|
2639
|
-
/* @__PURE__ */
|
|
2640
|
-
/* @__PURE__ */
|
|
2641
|
-
/* @__PURE__ */
|
|
2825
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
2826
|
+
/* @__PURE__ */ jsx36(JobDescription, { description: job.description }),
|
|
2827
|
+
/* @__PURE__ */ jsx36(
|
|
2642
2828
|
CompanyTake,
|
|
2643
2829
|
{
|
|
2644
2830
|
avatarSrc,
|
|
2645
2831
|
content: job.hiringOrganization?.companyNdg?.companyNdgTake
|
|
2646
2832
|
}
|
|
2647
2833
|
),
|
|
2648
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ jsx36(
|
|
2649
2835
|
CompanyInformation,
|
|
2650
2836
|
{
|
|
2651
2837
|
name: job.hiringOrganization?.companyName ?? "",
|
|
@@ -2655,7 +2841,7 @@ function JobPost({
|
|
|
2655
2841
|
website: job.hiringOrganization?.companyWebsite
|
|
2656
2842
|
}
|
|
2657
2843
|
),
|
|
2658
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__PURE__ */ jsx36(
|
|
2659
2845
|
CompanyBenefits,
|
|
2660
2846
|
{
|
|
2661
2847
|
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
@@ -2890,6 +3076,7 @@ export {
|
|
|
2890
3076
|
company_service_latest_exports as CompanyService,
|
|
2891
3077
|
CompanyTake,
|
|
2892
3078
|
Counter,
|
|
3079
|
+
DatePicker,
|
|
2893
3080
|
Icon,
|
|
2894
3081
|
Input_default as Input,
|
|
2895
3082
|
InputOtp,
|