@next-degree/pickle-shared-js 0.10.7 → 0.11.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-BZtdt7Df.d.ts → company_service_sanity-CAyYirw5.d.ts} +271 -271
- package/dist/{company_service_sanity-Bedw6Mhk.d.cts → company_service_sanity-CGNCrk8e.d.cts} +271 -271
- package/dist/components/jobCard/JobLocation.cjs +85 -0
- package/dist/components/jobCard/JobLocation.cjs.map +1 -0
- package/dist/components/jobCard/JobLocation.d.cts +9 -0
- package/dist/components/jobCard/JobLocation.d.ts +9 -0
- package/dist/components/jobCard/JobLocation.js +54 -0
- package/dist/components/jobCard/JobLocation.js.map +1 -0
- 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 +1 -1
- package/dist/components/primitives/command.d.ts +1 -1
- package/dist/components/ui/Button.d.cts +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/StepTabs.cjs +32 -4
- package/dist/components/ui/StepTabs.cjs.map +1 -1
- package/dist/components/ui/StepTabs.d.cts +12 -3
- package/dist/components/ui/StepTabs.d.ts +12 -3
- package/dist/components/ui/StepTabs.js +32 -4
- package/dist/components/ui/StepTabs.js.map +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/{displayText-BtujjCCA.d.ts → displayText-D8MYOaYK.d.ts} +2 -2
- package/dist/{displayText-BIzvCN9H.d.cts → displayText-DHKm6_JF.d.cts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +136 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +135 -62
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-C6TSGfcJ.d.cts → job_posting_service_latest-C8PT9mxn.d.cts} +177 -177
- package/dist/{job_posting_service_latest-C6TSGfcJ.d.ts → job_posting_service_latest-C8PT9mxn.d.ts} +177 -177
- package/dist/{job_posting_service_latest-duSSyFvo.d.cts → job_posting_service_latest-DaKYQh30.d.cts} +177 -177
- package/dist/{job_posting_service_latest-duSSyFvo.d.ts → job_posting_service_latest-DaKYQh30.d.ts} +177 -177
- package/dist/{job_posting_service_sanity-CLQAVXTy.d.cts → job_posting_service_sanity-BK7jdr2W.d.cts} +357 -357
- package/dist/{job_posting_service_sanity-B6APEfOO.d.ts → job_posting_service_sanity-nyUCPROx.d.ts} +357 -357
- 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/styles/globals.css +22 -0
- 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 +5 -5
- package/dist/types/index.d.ts +5 -5
- 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 +1 -1
- package/dist/{company_service_latest-Ba8VhDao.d.cts → company_service_latest-DpBsftTD.d.cts} +174 -174
- package/dist/{company_service_latest-Ba8VhDao.d.ts → company_service_latest-DpBsftTD.d.ts} +174 -174
- package/dist/{company_service_latest-BmiEQ4dO.d.cts → company_service_latest-o6X0atwz.d.cts} +174 -174
- package/dist/{company_service_latest-BmiEQ4dO.d.ts → company_service_latest-o6X0atwz.d.ts} +174 -174
- package/dist/{shared_pickle_output_latest--XZhOUyE.d.cts → shared_pickle_output_latest-BVF7Zh2H.d.cts} +11 -11
- package/dist/{shared_pickle_output_latest--XZhOUyE.d.ts → shared_pickle_output_latest-BVF7Zh2H.d.ts} +11 -11
- package/dist/{shared_pickle_output_latest-DKOmTyYk.d.cts → shared_pickle_output_latest-BjRRmT8R.d.cts} +11 -11
- package/dist/{shared_pickle_output_latest-DKOmTyYk.d.ts → shared_pickle_output_latest-BjRRmT8R.d.ts} +11 -11
package/dist/index.d.cts
CHANGED
|
@@ -18,6 +18,7 @@ export { InputOtp } from './components/ui/InputOtp.cjs';
|
|
|
18
18
|
export { LinkButton } from './components/ui/LinkButton.cjs';
|
|
19
19
|
export { ReadMore } from './components/ui/ReadMore.cjs';
|
|
20
20
|
export { DatePicker } from './components/ui/DatePicker.cjs';
|
|
21
|
+
export { StepTabs } from './components/ui/StepTabs.cjs';
|
|
21
22
|
export { fetchLocation } from './lib/google.cjs';
|
|
22
23
|
export { cn } from './lib/utils.cjs';
|
|
23
24
|
export { CompanyBenefits } from './components/company/CompanyBenefits.cjs';
|
|
@@ -30,9 +31,9 @@ export { BackButton } from './components/buttons/BackButton.cjs';
|
|
|
30
31
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
31
32
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
32
33
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
33
|
-
export { c as CompanyService } from './company_service_latest-
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
35
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
34
|
+
export { c as CompanyService } from './company_service_latest-DpBsftTD.cjs';
|
|
35
|
+
export { j as JobPostService } from './job_posting_service_latest-DaKYQh30.cjs';
|
|
36
|
+
export { s as SharedService } from './shared_pickle_output_latest-BjRRmT8R.cjs';
|
|
36
37
|
import 'cva/types';
|
|
37
38
|
import 'react/jsx-runtime';
|
|
38
39
|
import 'cva';
|
|
@@ -44,7 +45,8 @@ import '@radix-ui/react-switch';
|
|
|
44
45
|
import './components/primitives/radio-group.cjs';
|
|
45
46
|
import '@radix-ui/react-radio-group';
|
|
46
47
|
import 'next/link';
|
|
48
|
+
import '@radix-ui/react-tabs';
|
|
47
49
|
import 'clsx';
|
|
48
50
|
import './lib/icons.cjs';
|
|
49
|
-
import './displayText-
|
|
51
|
+
import './displayText-DHKm6_JF.cjs';
|
|
50
52
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { InputOtp } from './components/ui/InputOtp.js';
|
|
|
18
18
|
export { LinkButton } from './components/ui/LinkButton.js';
|
|
19
19
|
export { ReadMore } from './components/ui/ReadMore.js';
|
|
20
20
|
export { DatePicker } from './components/ui/DatePicker.js';
|
|
21
|
+
export { StepTabs } from './components/ui/StepTabs.js';
|
|
21
22
|
export { fetchLocation } from './lib/google.js';
|
|
22
23
|
export { cn } from './lib/utils.js';
|
|
23
24
|
export { CompanyBenefits } from './components/company/CompanyBenefits.js';
|
|
@@ -30,9 +31,9 @@ export { BackButton } from './components/buttons/BackButton.js';
|
|
|
30
31
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
31
32
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
32
33
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
33
|
-
export { c as CompanyService } from './company_service_latest-
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
35
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
34
|
+
export { c as CompanyService } from './company_service_latest-DpBsftTD.js';
|
|
35
|
+
export { j as JobPostService } from './job_posting_service_latest-DaKYQh30.js';
|
|
36
|
+
export { s as SharedService } from './shared_pickle_output_latest-BjRRmT8R.js';
|
|
36
37
|
import 'cva/types';
|
|
37
38
|
import 'react/jsx-runtime';
|
|
38
39
|
import 'cva';
|
|
@@ -44,7 +45,8 @@ import '@radix-ui/react-switch';
|
|
|
44
45
|
import './components/primitives/radio-group.js';
|
|
45
46
|
import '@radix-ui/react-radio-group';
|
|
46
47
|
import 'next/link';
|
|
48
|
+
import '@radix-ui/react-tabs';
|
|
47
49
|
import 'clsx';
|
|
48
50
|
import './lib/icons.js';
|
|
49
|
-
import './displayText-
|
|
51
|
+
import './displayText-D8MYOaYK.js';
|
|
50
52
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1958,18 +1958,90 @@ var datePickerStyle = cva10([
|
|
|
1958
1958
|
"font-normal"
|
|
1959
1959
|
]);
|
|
1960
1960
|
|
|
1961
|
-
// src/components/
|
|
1961
|
+
// src/components/ui/StepTabs.tsx
|
|
1962
|
+
import * as Tabs from "@radix-ui/react-tabs";
|
|
1963
|
+
import { cva as cva11 } from "cva";
|
|
1962
1964
|
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1965
|
+
var tabParentVariants = cva11("flex flex-col", {
|
|
1966
|
+
variants: {
|
|
1967
|
+
variant: {
|
|
1968
|
+
primary: "rounded-lg border shadow-sm",
|
|
1969
|
+
neutral: ""
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
defaultVariants: {
|
|
1973
|
+
variant: "primary"
|
|
1974
|
+
}
|
|
1975
|
+
});
|
|
1976
|
+
var singleTabVariants = cva11(
|
|
1977
|
+
"flex h-[45px] flex-1 cursor-pointer select-none items-center justify-center bg-white px-5 text-[15px] leading-none text-gray-800 outline-none",
|
|
1978
|
+
{
|
|
1979
|
+
variants: {
|
|
1980
|
+
variant: {
|
|
1981
|
+
primary: "first:rounded-tl-md last:rounded-tr-md hover:text-purple-100 data-[state=active]:text-purple-100 data-[state=active]:shadow-[inset_0_-1px_0_0,0_1px_0_0] data-[state=active]:shadow-current data-[state=active]:focus:relative data-[state=active]:focus:shadow-[0_0_0_2px] data-[state=active]:focus:shadow-black",
|
|
1982
|
+
neutral: "first:rounded-tl-md last:rounded-tr-md hover:text-black data-[state=active]:text-black data-[state=active]:shadow-[inset_0_-1px_0_0,0_1px_0_0] data-[state=active]:shadow-current data-[state=active]:focus:relative"
|
|
1983
|
+
}
|
|
1984
|
+
},
|
|
1985
|
+
defaultVariants: {
|
|
1986
|
+
variant: "primary"
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
);
|
|
1990
|
+
function StepTabs({
|
|
1991
|
+
list,
|
|
1992
|
+
currentStep,
|
|
1993
|
+
setCurrentStep,
|
|
1994
|
+
children,
|
|
1995
|
+
className,
|
|
1996
|
+
classNameTab,
|
|
1997
|
+
defaultValue,
|
|
1998
|
+
variant,
|
|
1999
|
+
...props
|
|
2000
|
+
}) {
|
|
2001
|
+
return /* @__PURE__ */ jsxs19(
|
|
2002
|
+
Tabs.Root,
|
|
2003
|
+
{
|
|
2004
|
+
value: currentStep,
|
|
2005
|
+
onValueChange: setCurrentStep,
|
|
2006
|
+
defaultValue: defaultValue ?? "0",
|
|
2007
|
+
className: cn(tabParentVariants({ variant }), className),
|
|
2008
|
+
...props,
|
|
2009
|
+
children: [
|
|
2010
|
+
/* @__PURE__ */ jsx32(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children: list.length > 1 && list.map((item, index) => /* @__PURE__ */ jsx32(
|
|
2011
|
+
Tabs.Trigger,
|
|
2012
|
+
{
|
|
2013
|
+
className: cn(singleTabVariants({ variant }), classNameTab),
|
|
2014
|
+
value: index.toString(),
|
|
2015
|
+
children: item
|
|
2016
|
+
},
|
|
2017
|
+
`${item}-${index}`
|
|
2018
|
+
)) }),
|
|
2019
|
+
children && children.map((child, index) => /* @__PURE__ */ jsx32(
|
|
2020
|
+
Tabs.Content,
|
|
2021
|
+
{
|
|
2022
|
+
className: "grow rounded-b-md bg-white p-5 outline-none",
|
|
2023
|
+
value: index.toString(),
|
|
2024
|
+
children: child
|
|
2025
|
+
},
|
|
2026
|
+
index
|
|
2027
|
+
))
|
|
2028
|
+
]
|
|
2029
|
+
}
|
|
2030
|
+
);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
// src/components/company/CompanyBenefits.tsx
|
|
2034
|
+
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1963
2035
|
function CompanyBenefits({ benefits }) {
|
|
1964
2036
|
if (!benefits) return null;
|
|
1965
|
-
return /* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
1967
|
-
/* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
2038
|
+
/* @__PURE__ */ jsx33("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg", children: "Company benefits" }),
|
|
2039
|
+
/* @__PURE__ */ jsx33("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ jsx33("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
1968
2040
|
] });
|
|
1969
2041
|
}
|
|
1970
2042
|
|
|
1971
2043
|
// src/components/company/CompanyInformation.tsx
|
|
1972
|
-
import { jsx as
|
|
2044
|
+
import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1973
2045
|
function CompanyInformation({
|
|
1974
2046
|
name,
|
|
1975
2047
|
how,
|
|
@@ -1977,8 +2049,8 @@ function CompanyInformation({
|
|
|
1977
2049
|
wow,
|
|
1978
2050
|
website
|
|
1979
2051
|
}) {
|
|
1980
|
-
return /* @__PURE__ */
|
|
1981
|
-
/* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2", children: [
|
|
2053
|
+
/* @__PURE__ */ jsxs21(
|
|
1982
2054
|
"h2",
|
|
1983
2055
|
{
|
|
1984
2056
|
"data-testid": "company-name",
|
|
@@ -1989,22 +2061,22 @@ function CompanyInformation({
|
|
|
1989
2061
|
]
|
|
1990
2062
|
}
|
|
1991
2063
|
),
|
|
1992
|
-
how && /* @__PURE__ */
|
|
1993
|
-
mission && /* @__PURE__ */
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
2064
|
+
how && /* @__PURE__ */ jsx34("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
2065
|
+
mission && /* @__PURE__ */ jsxs21("div", { className: "flex gap-2", children: [
|
|
2066
|
+
/* @__PURE__ */ jsx34("span", { children: "\u{1F680}" }),
|
|
2067
|
+
/* @__PURE__ */ jsxs21("p", { className: "text-base text-grey-80", children: [
|
|
2068
|
+
/* @__PURE__ */ jsx34("span", { className: "pr-1 font-bold", children: "Mission" }),
|
|
1997
2069
|
mission
|
|
1998
2070
|
] })
|
|
1999
2071
|
] }),
|
|
2000
|
-
wow && /* @__PURE__ */
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2072
|
+
wow && /* @__PURE__ */ jsxs21("div", { className: "flex gap-2", children: [
|
|
2073
|
+
/* @__PURE__ */ jsx34("span", { children: "\u{1F31F}" }),
|
|
2074
|
+
/* @__PURE__ */ jsxs21("p", { className: "text-base text-grey-80", children: [
|
|
2075
|
+
/* @__PURE__ */ jsx34("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
2004
2076
|
wow
|
|
2005
2077
|
] })
|
|
2006
2078
|
] }),
|
|
2007
|
-
website && /* @__PURE__ */
|
|
2079
|
+
website && /* @__PURE__ */ jsx34("div", { className: "pt-2", children: /* @__PURE__ */ jsx34(
|
|
2008
2080
|
LinkButton,
|
|
2009
2081
|
{
|
|
2010
2082
|
"data-testid": "company-website-link",
|
|
@@ -2018,22 +2090,22 @@ function CompanyInformation({
|
|
|
2018
2090
|
}
|
|
2019
2091
|
|
|
2020
2092
|
// src/components/company/CompanyTake.tsx
|
|
2021
|
-
import { jsx as
|
|
2093
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2022
2094
|
function CompanyTake({ content, avatarSrc }) {
|
|
2023
2095
|
if (!content) return null;
|
|
2024
|
-
return /* @__PURE__ */
|
|
2096
|
+
return /* @__PURE__ */ jsxs22(
|
|
2025
2097
|
"div",
|
|
2026
2098
|
{
|
|
2027
2099
|
"data-testid": "company-take",
|
|
2028
2100
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
2029
2101
|
children: [
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx35("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
2103
|
+
/* @__PURE__ */ jsx35("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ jsx35("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
|
|
2104
|
+
/* @__PURE__ */ jsxs22("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
2105
|
+
/* @__PURE__ */ jsx35(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
2106
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
2107
|
+
/* @__PURE__ */ jsx35("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
2108
|
+
/* @__PURE__ */ jsx35("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
2037
2109
|
] })
|
|
2038
2110
|
] })
|
|
2039
2111
|
]
|
|
@@ -2042,12 +2114,12 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
2042
2114
|
}
|
|
2043
2115
|
|
|
2044
2116
|
// src/components/jobPost/JobDescription.tsx
|
|
2045
|
-
import { jsx as
|
|
2117
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2046
2118
|
function JobDescription({ description }) {
|
|
2047
2119
|
if (!description) return null;
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2050
|
-
/* @__PURE__ */
|
|
2120
|
+
return /* @__PURE__ */ jsxs23("div", { className: "flex w-full flex-col gap-2", children: [
|
|
2121
|
+
/* @__PURE__ */ jsx36("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
2122
|
+
/* @__PURE__ */ jsx36(ReadMore, { text: description })
|
|
2051
2123
|
] });
|
|
2052
2124
|
}
|
|
2053
2125
|
|
|
@@ -2065,7 +2137,7 @@ import { useContext as useContext2 } from "react";
|
|
|
2065
2137
|
// src/contexts/WindowHistoryProvider.tsx
|
|
2066
2138
|
import { useSearchParams } from "next/navigation";
|
|
2067
2139
|
import { createContext, useEffect as useEffect7, useMemo, useState as useState7 } from "react";
|
|
2068
|
-
import { jsx as
|
|
2140
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2069
2141
|
var WindowHistoryContext = createContext({});
|
|
2070
2142
|
function WindowHistoryProvider({ children }) {
|
|
2071
2143
|
const [history, setHistory] = useState7([]);
|
|
@@ -2076,7 +2148,7 @@ function WindowHistoryProvider({ children }) {
|
|
|
2076
2148
|
);
|
|
2077
2149
|
}, [searchParams]);
|
|
2078
2150
|
const contextValue = useMemo(() => ({ history }), [history]);
|
|
2079
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ jsx37(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
2080
2152
|
}
|
|
2081
2153
|
|
|
2082
2154
|
// src/hooks/useWindowHistory.ts
|
|
@@ -2086,7 +2158,7 @@ function useWindowHistory() {
|
|
|
2086
2158
|
}
|
|
2087
2159
|
|
|
2088
2160
|
// src/components/buttons/BackButton.tsx
|
|
2089
|
-
import { jsx as
|
|
2161
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2090
2162
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
2091
2163
|
const { history } = useWindowHistory();
|
|
2092
2164
|
const router = useRouter();
|
|
@@ -2099,7 +2171,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
2099
2171
|
router.push(fallbackHref ?? "/");
|
|
2100
2172
|
}
|
|
2101
2173
|
};
|
|
2102
|
-
return /* @__PURE__ */
|
|
2174
|
+
return /* @__PURE__ */ jsx38(
|
|
2103
2175
|
Icon,
|
|
2104
2176
|
{
|
|
2105
2177
|
"aria-label": "back button",
|
|
@@ -2108,7 +2180,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
2108
2180
|
onClick: goBack,
|
|
2109
2181
|
className,
|
|
2110
2182
|
...props,
|
|
2111
|
-
children: /* @__PURE__ */
|
|
2183
|
+
children: /* @__PURE__ */ jsx38(X4, {})
|
|
2112
2184
|
}
|
|
2113
2185
|
);
|
|
2114
2186
|
}
|
|
@@ -2160,7 +2232,7 @@ var iconMap = {
|
|
|
2160
2232
|
};
|
|
2161
2233
|
|
|
2162
2234
|
// src/components/jobPost/JobHeader.tsx
|
|
2163
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2164
2236
|
function JobHeader({
|
|
2165
2237
|
title,
|
|
2166
2238
|
subtitles,
|
|
@@ -2176,9 +2248,9 @@ function JobHeader({
|
|
|
2176
2248
|
}) {
|
|
2177
2249
|
const renderIcon = (icon) => {
|
|
2178
2250
|
const Icon2 = iconMap[icon];
|
|
2179
|
-
return /* @__PURE__ */
|
|
2251
|
+
return /* @__PURE__ */ jsx39(Icon2, { size: 18 });
|
|
2180
2252
|
};
|
|
2181
|
-
return /* @__PURE__ */
|
|
2253
|
+
return /* @__PURE__ */ jsxs24(
|
|
2182
2254
|
"div",
|
|
2183
2255
|
{
|
|
2184
2256
|
"data-testid": "job-header-root",
|
|
@@ -2187,8 +2259,8 @@ function JobHeader({
|
|
|
2187
2259
|
!standalone && "rounded-3xl"
|
|
2188
2260
|
),
|
|
2189
2261
|
children: [
|
|
2190
|
-
!standalone && /* @__PURE__ */
|
|
2191
|
-
/* @__PURE__ */
|
|
2262
|
+
!standalone && /* @__PURE__ */ jsxs24("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: [
|
|
2263
|
+
/* @__PURE__ */ jsx39(
|
|
2192
2264
|
Image2,
|
|
2193
2265
|
{
|
|
2194
2266
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -2197,7 +2269,7 @@ function JobHeader({
|
|
|
2197
2269
|
fill: true
|
|
2198
2270
|
}
|
|
2199
2271
|
),
|
|
2200
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsx39(
|
|
2201
2273
|
BackButton,
|
|
2202
2274
|
{
|
|
2203
2275
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -2206,12 +2278,12 @@ function JobHeader({
|
|
|
2206
2278
|
"data-testid": "job-header-back-button"
|
|
2207
2279
|
}
|
|
2208
2280
|
),
|
|
2209
|
-
/* @__PURE__ */
|
|
2281
|
+
/* @__PURE__ */ jsx39(
|
|
2210
2282
|
"div",
|
|
2211
2283
|
{
|
|
2212
2284
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
2213
2285
|
"data-testid": "job-header-avatar",
|
|
2214
|
-
children: /* @__PURE__ */
|
|
2286
|
+
children: /* @__PURE__ */ jsx39(
|
|
2215
2287
|
Avatar,
|
|
2216
2288
|
{
|
|
2217
2289
|
size: "large",
|
|
@@ -2225,9 +2297,9 @@ function JobHeader({
|
|
|
2225
2297
|
}
|
|
2226
2298
|
)
|
|
2227
2299
|
] }),
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
standalone && /* @__PURE__ */
|
|
2300
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
2301
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col md:flex-row", children: [
|
|
2302
|
+
standalone && /* @__PURE__ */ jsx39("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ jsx39(
|
|
2231
2303
|
Avatar,
|
|
2232
2304
|
{
|
|
2233
2305
|
size: "large",
|
|
@@ -2238,26 +2310,26 @@ function JobHeader({
|
|
|
2238
2310
|
rel: "noopener noreferrer"
|
|
2239
2311
|
}
|
|
2240
2312
|
) }),
|
|
2241
|
-
/* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ jsx39("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ jsxs24(
|
|
2242
2314
|
"div",
|
|
2243
2315
|
{
|
|
2244
2316
|
"data-testid": `job-header-subtitle-${i}`,
|
|
2245
2317
|
className: "flex items-center",
|
|
2246
2318
|
children: [
|
|
2247
2319
|
subtitle,
|
|
2248
|
-
i < subtitles.length - 1 && /* @__PURE__ */
|
|
2320
|
+
i < subtitles.length - 1 && /* @__PURE__ */ jsx39(Dot2, { className: "mx-1 shrink-0", size: 10 })
|
|
2249
2321
|
]
|
|
2250
2322
|
},
|
|
2251
2323
|
subtitle
|
|
2252
2324
|
)) })
|
|
2253
2325
|
] }),
|
|
2254
|
-
/* @__PURE__ */
|
|
2326
|
+
/* @__PURE__ */ jsxs24(
|
|
2255
2327
|
"div",
|
|
2256
2328
|
{
|
|
2257
2329
|
"data-testid": "job-header-content",
|
|
2258
2330
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
2259
2331
|
children: [
|
|
2260
|
-
/* @__PURE__ */
|
|
2332
|
+
/* @__PURE__ */ jsx39(
|
|
2261
2333
|
"h2",
|
|
2262
2334
|
{
|
|
2263
2335
|
"data-testid": "job-header-title",
|
|
@@ -2265,7 +2337,7 @@ function JobHeader({
|
|
|
2265
2337
|
children: title
|
|
2266
2338
|
}
|
|
2267
2339
|
),
|
|
2268
|
-
!!actions && /* @__PURE__ */
|
|
2340
|
+
!!actions && /* @__PURE__ */ jsx39(
|
|
2269
2341
|
"div",
|
|
2270
2342
|
{
|
|
2271
2343
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -2276,12 +2348,12 @@ function JobHeader({
|
|
|
2276
2348
|
]
|
|
2277
2349
|
}
|
|
2278
2350
|
),
|
|
2279
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ jsx39(
|
|
2280
2352
|
"div",
|
|
2281
2353
|
{
|
|
2282
2354
|
"data-testid": "job-header-tags",
|
|
2283
2355
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
2284
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */
|
|
2356
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ jsxs24(
|
|
2285
2357
|
Chip_default,
|
|
2286
2358
|
{
|
|
2287
2359
|
size: "small",
|
|
@@ -2290,7 +2362,7 @@ function JobHeader({
|
|
|
2290
2362
|
"data-testid": `job-header-tag-${name}`,
|
|
2291
2363
|
children: [
|
|
2292
2364
|
renderIcon(icon),
|
|
2293
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ jsx39("span", { children: label })
|
|
2294
2366
|
]
|
|
2295
2367
|
},
|
|
2296
2368
|
name
|
|
@@ -3223,7 +3295,7 @@ function salaryRange(salary) {
|
|
|
3223
3295
|
}
|
|
3224
3296
|
|
|
3225
3297
|
// src/components/jobPost/JobPost.tsx
|
|
3226
|
-
import { jsx as
|
|
3298
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3227
3299
|
function JobPost({
|
|
3228
3300
|
job,
|
|
3229
3301
|
bannerSrc,
|
|
@@ -3269,7 +3341,7 @@ function JobPost({
|
|
|
3269
3341
|
label: formattedLocation
|
|
3270
3342
|
}
|
|
3271
3343
|
].filter((t) => !!t);
|
|
3272
|
-
return /* @__PURE__ */
|
|
3344
|
+
return /* @__PURE__ */ jsxs25(
|
|
3273
3345
|
"div",
|
|
3274
3346
|
{
|
|
3275
3347
|
className: cn(
|
|
@@ -3277,7 +3349,7 @@ function JobPost({
|
|
|
3277
3349
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
3278
3350
|
),
|
|
3279
3351
|
children: [
|
|
3280
|
-
/* @__PURE__ */
|
|
3352
|
+
/* @__PURE__ */ jsx40(
|
|
3281
3353
|
JobHeader,
|
|
3282
3354
|
{
|
|
3283
3355
|
title: job.title,
|
|
@@ -3293,16 +3365,16 @@ function JobPost({
|
|
|
3293
3365
|
tags
|
|
3294
3366
|
}
|
|
3295
3367
|
),
|
|
3296
|
-
/* @__PURE__ */
|
|
3297
|
-
/* @__PURE__ */
|
|
3298
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
3369
|
+
/* @__PURE__ */ jsx40(JobDescription, { description: job.description }),
|
|
3370
|
+
/* @__PURE__ */ jsx40(
|
|
3299
3371
|
CompanyTake,
|
|
3300
3372
|
{
|
|
3301
3373
|
avatarSrc,
|
|
3302
3374
|
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
3303
3375
|
}
|
|
3304
3376
|
),
|
|
3305
|
-
/* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ jsx40(
|
|
3306
3378
|
CompanyInformation,
|
|
3307
3379
|
{
|
|
3308
3380
|
name: job.hiringOrganization?.companyName ?? "",
|
|
@@ -3312,7 +3384,7 @@ function JobPost({
|
|
|
3312
3384
|
website: job.hiringOrganization?.companyWebsite
|
|
3313
3385
|
}
|
|
3314
3386
|
),
|
|
3315
|
-
/* @__PURE__ */
|
|
3387
|
+
/* @__PURE__ */ jsx40(
|
|
3316
3388
|
CompanyBenefits,
|
|
3317
3389
|
{
|
|
3318
3390
|
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
@@ -3642,6 +3714,7 @@ export {
|
|
|
3642
3714
|
ReadMore,
|
|
3643
3715
|
Select_default as Select,
|
|
3644
3716
|
shared_pickle_output_latest_exports2 as SharedService,
|
|
3717
|
+
StepTabs,
|
|
3645
3718
|
Switch,
|
|
3646
3719
|
WindowHistoryProvider,
|
|
3647
3720
|
cn,
|