@next-degree/pickle-shared-js 0.10.7 → 0.10.8
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/ui/Button.d.cts +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/{displayText-BIzvCN9H.d.cts → displayText-4cJ7-3Mw.d.cts} +1 -1
- package/dist/{displayText-BtujjCCA.d.ts → displayText-CBIWVZVw.d.ts} +1 -1
- package/dist/hooks/useDisplayText.d.cts +2 -2
- package/dist/hooks/useDisplayText.d.ts +2 -2
- package/dist/index.cjs +108 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +107 -62
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-CLQAVXTy.d.cts → job_posting_service_sanity-Kcoloigd.d.cts} +7 -7
- package/dist/{job_posting_service_sanity-B6APEfOO.d.ts → job_posting_service_sanity-fAGLW3rj.d.ts} +7 -7
- package/dist/lib/locations.d.cts +1 -1
- package/dist/lib/locations.d.ts +1 -1
- package/dist/lib/mappings.d.cts +2 -2
- package/dist/lib/mappings.d.ts +2 -2
- package/dist/services/displayText.d.cts +2 -2
- package/dist/services/displayText.d.ts +2 -2
- 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/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/latest/custom/job_posting_service_sanity.d.cts +2 -2
- package/dist/types/latest/custom/job_posting_service_sanity.d.ts +2 -2
- 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/package.json +1 -1
- package/dist/{job_posting_service_latest-duSSyFvo.d.cts → job_posting_service_latest-DOGQ9tEu.d.cts} +1 -1
- package/dist/{job_posting_service_latest-duSSyFvo.d.ts → job_posting_service_latest-DOGQ9tEu.d.ts} +1 -1
- package/dist/{job_posting_service_latest-C6TSGfcJ.d.cts → job_posting_service_latest-DdsTbMSJ.d.cts} +1 -1
- package/dist/{job_posting_service_latest-C6TSGfcJ.d.ts → job_posting_service_latest-DdsTbMSJ.d.ts} +1 -1
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';
|
|
@@ -31,7 +32,7 @@ export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
|
31
32
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
32
33
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
33
34
|
export { c as CompanyService } from './company_service_latest-Ba8VhDao.cjs';
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
35
|
+
export { j as JobPostService } from './job_posting_service_latest-DOGQ9tEu.cjs';
|
|
35
36
|
export { s as SharedService } from './shared_pickle_output_latest-DKOmTyYk.cjs';
|
|
36
37
|
import 'cva/types';
|
|
37
38
|
import 'react/jsx-runtime';
|
|
@@ -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-4cJ7-3Mw.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';
|
|
@@ -31,7 +32,7 @@ export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
|
31
32
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
32
33
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
33
34
|
export { c as CompanyService } from './company_service_latest-Ba8VhDao.js';
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
35
|
+
export { j as JobPostService } from './job_posting_service_latest-DOGQ9tEu.js';
|
|
35
36
|
export { s as SharedService } from './shared_pickle_output_latest-DKOmTyYk.js';
|
|
36
37
|
import 'cva/types';
|
|
37
38
|
import 'react/jsx-runtime';
|
|
@@ -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-CBIWVZVw.js';
|
|
50
52
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1958,18 +1958,62 @@ 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";
|
|
1962
1963
|
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1964
|
+
function StepTabs({
|
|
1965
|
+
list,
|
|
1966
|
+
currentStep,
|
|
1967
|
+
setCurrentStep,
|
|
1968
|
+
children,
|
|
1969
|
+
className,
|
|
1970
|
+
defaultValue,
|
|
1971
|
+
...props
|
|
1972
|
+
}) {
|
|
1973
|
+
return /* @__PURE__ */ jsxs19(
|
|
1974
|
+
Tabs.Root,
|
|
1975
|
+
{
|
|
1976
|
+
value: currentStep,
|
|
1977
|
+
onValueChange: setCurrentStep,
|
|
1978
|
+
defaultValue: defaultValue ?? "0",
|
|
1979
|
+
className: cn("flex flex-col rounded-lg border shadow-sm", className),
|
|
1980
|
+
...props,
|
|
1981
|
+
children: [
|
|
1982
|
+
/* @__PURE__ */ jsx32(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children: children.length > 1 && list.map((item, index) => /* @__PURE__ */ jsx32(
|
|
1983
|
+
Tabs.Trigger,
|
|
1984
|
+
{
|
|
1985
|
+
className: "flex h-[45px] flex-1 cursor-default select-none items-center justify-center bg-white px-5 text-[15px] leading-none text-gray-800 outline-none 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",
|
|
1986
|
+
value: index.toString(),
|
|
1987
|
+
children: item
|
|
1988
|
+
},
|
|
1989
|
+
`${item}-${index}`
|
|
1990
|
+
)) }),
|
|
1991
|
+
children.map((child, index) => /* @__PURE__ */ jsx32(
|
|
1992
|
+
Tabs.Content,
|
|
1993
|
+
{
|
|
1994
|
+
className: "grow rounded-b-md bg-white p-5 outline-none",
|
|
1995
|
+
value: index.toString(),
|
|
1996
|
+
children: child
|
|
1997
|
+
},
|
|
1998
|
+
index
|
|
1999
|
+
))
|
|
2000
|
+
]
|
|
2001
|
+
}
|
|
2002
|
+
);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
// src/components/company/CompanyBenefits.tsx
|
|
2006
|
+
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1963
2007
|
function CompanyBenefits({ benefits }) {
|
|
1964
2008
|
if (!benefits) return null;
|
|
1965
|
-
return /* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
1967
|
-
/* @__PURE__ */
|
|
2009
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
2010
|
+
/* @__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" }),
|
|
2011
|
+
/* @__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
2012
|
] });
|
|
1969
2013
|
}
|
|
1970
2014
|
|
|
1971
2015
|
// src/components/company/CompanyInformation.tsx
|
|
1972
|
-
import { jsx as
|
|
2016
|
+
import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1973
2017
|
function CompanyInformation({
|
|
1974
2018
|
name,
|
|
1975
2019
|
how,
|
|
@@ -1977,8 +2021,8 @@ function CompanyInformation({
|
|
|
1977
2021
|
wow,
|
|
1978
2022
|
website
|
|
1979
2023
|
}) {
|
|
1980
|
-
return /* @__PURE__ */
|
|
1981
|
-
/* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2", children: [
|
|
2025
|
+
/* @__PURE__ */ jsxs21(
|
|
1982
2026
|
"h2",
|
|
1983
2027
|
{
|
|
1984
2028
|
"data-testid": "company-name",
|
|
@@ -1989,22 +2033,22 @@ function CompanyInformation({
|
|
|
1989
2033
|
]
|
|
1990
2034
|
}
|
|
1991
2035
|
),
|
|
1992
|
-
how && /* @__PURE__ */
|
|
1993
|
-
mission && /* @__PURE__ */
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
2036
|
+
how && /* @__PURE__ */ jsx34("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
2037
|
+
mission && /* @__PURE__ */ jsxs21("div", { className: "flex gap-2", children: [
|
|
2038
|
+
/* @__PURE__ */ jsx34("span", { children: "\u{1F680}" }),
|
|
2039
|
+
/* @__PURE__ */ jsxs21("p", { className: "text-base text-grey-80", children: [
|
|
2040
|
+
/* @__PURE__ */ jsx34("span", { className: "pr-1 font-bold", children: "Mission" }),
|
|
1997
2041
|
mission
|
|
1998
2042
|
] })
|
|
1999
2043
|
] }),
|
|
2000
|
-
wow && /* @__PURE__ */
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2044
|
+
wow && /* @__PURE__ */ jsxs21("div", { className: "flex gap-2", children: [
|
|
2045
|
+
/* @__PURE__ */ jsx34("span", { children: "\u{1F31F}" }),
|
|
2046
|
+
/* @__PURE__ */ jsxs21("p", { className: "text-base text-grey-80", children: [
|
|
2047
|
+
/* @__PURE__ */ jsx34("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
2004
2048
|
wow
|
|
2005
2049
|
] })
|
|
2006
2050
|
] }),
|
|
2007
|
-
website && /* @__PURE__ */
|
|
2051
|
+
website && /* @__PURE__ */ jsx34("div", { className: "pt-2", children: /* @__PURE__ */ jsx34(
|
|
2008
2052
|
LinkButton,
|
|
2009
2053
|
{
|
|
2010
2054
|
"data-testid": "company-website-link",
|
|
@@ -2018,22 +2062,22 @@ function CompanyInformation({
|
|
|
2018
2062
|
}
|
|
2019
2063
|
|
|
2020
2064
|
// src/components/company/CompanyTake.tsx
|
|
2021
|
-
import { jsx as
|
|
2065
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2022
2066
|
function CompanyTake({ content, avatarSrc }) {
|
|
2023
2067
|
if (!content) return null;
|
|
2024
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsxs22(
|
|
2025
2069
|
"div",
|
|
2026
2070
|
{
|
|
2027
2071
|
"data-testid": "company-take",
|
|
2028
2072
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
2029
2073
|
children: [
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ jsx35("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
2075
|
+
/* @__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 }) }),
|
|
2076
|
+
/* @__PURE__ */ jsxs22("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
2077
|
+
/* @__PURE__ */ jsx35(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
2078
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
2079
|
+
/* @__PURE__ */ jsx35("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
2080
|
+
/* @__PURE__ */ jsx35("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
2037
2081
|
] })
|
|
2038
2082
|
] })
|
|
2039
2083
|
]
|
|
@@ -2042,12 +2086,12 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
2042
2086
|
}
|
|
2043
2087
|
|
|
2044
2088
|
// src/components/jobPost/JobDescription.tsx
|
|
2045
|
-
import { jsx as
|
|
2089
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2046
2090
|
function JobDescription({ description }) {
|
|
2047
2091
|
if (!description) return null;
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2050
|
-
/* @__PURE__ */
|
|
2092
|
+
return /* @__PURE__ */ jsxs23("div", { className: "flex w-full flex-col gap-2", children: [
|
|
2093
|
+
/* @__PURE__ */ jsx36("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
2094
|
+
/* @__PURE__ */ jsx36(ReadMore, { text: description })
|
|
2051
2095
|
] });
|
|
2052
2096
|
}
|
|
2053
2097
|
|
|
@@ -2065,7 +2109,7 @@ import { useContext as useContext2 } from "react";
|
|
|
2065
2109
|
// src/contexts/WindowHistoryProvider.tsx
|
|
2066
2110
|
import { useSearchParams } from "next/navigation";
|
|
2067
2111
|
import { createContext, useEffect as useEffect7, useMemo, useState as useState7 } from "react";
|
|
2068
|
-
import { jsx as
|
|
2112
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2069
2113
|
var WindowHistoryContext = createContext({});
|
|
2070
2114
|
function WindowHistoryProvider({ children }) {
|
|
2071
2115
|
const [history, setHistory] = useState7([]);
|
|
@@ -2076,7 +2120,7 @@ function WindowHistoryProvider({ children }) {
|
|
|
2076
2120
|
);
|
|
2077
2121
|
}, [searchParams]);
|
|
2078
2122
|
const contextValue = useMemo(() => ({ history }), [history]);
|
|
2079
|
-
return /* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ jsx37(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
2080
2124
|
}
|
|
2081
2125
|
|
|
2082
2126
|
// src/hooks/useWindowHistory.ts
|
|
@@ -2086,7 +2130,7 @@ function useWindowHistory() {
|
|
|
2086
2130
|
}
|
|
2087
2131
|
|
|
2088
2132
|
// src/components/buttons/BackButton.tsx
|
|
2089
|
-
import { jsx as
|
|
2133
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2090
2134
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
2091
2135
|
const { history } = useWindowHistory();
|
|
2092
2136
|
const router = useRouter();
|
|
@@ -2099,7 +2143,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
2099
2143
|
router.push(fallbackHref ?? "/");
|
|
2100
2144
|
}
|
|
2101
2145
|
};
|
|
2102
|
-
return /* @__PURE__ */
|
|
2146
|
+
return /* @__PURE__ */ jsx38(
|
|
2103
2147
|
Icon,
|
|
2104
2148
|
{
|
|
2105
2149
|
"aria-label": "back button",
|
|
@@ -2108,7 +2152,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
2108
2152
|
onClick: goBack,
|
|
2109
2153
|
className,
|
|
2110
2154
|
...props,
|
|
2111
|
-
children: /* @__PURE__ */
|
|
2155
|
+
children: /* @__PURE__ */ jsx38(X4, {})
|
|
2112
2156
|
}
|
|
2113
2157
|
);
|
|
2114
2158
|
}
|
|
@@ -2160,7 +2204,7 @@ var iconMap = {
|
|
|
2160
2204
|
};
|
|
2161
2205
|
|
|
2162
2206
|
// src/components/jobPost/JobHeader.tsx
|
|
2163
|
-
import { jsx as
|
|
2207
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2164
2208
|
function JobHeader({
|
|
2165
2209
|
title,
|
|
2166
2210
|
subtitles,
|
|
@@ -2176,9 +2220,9 @@ function JobHeader({
|
|
|
2176
2220
|
}) {
|
|
2177
2221
|
const renderIcon = (icon) => {
|
|
2178
2222
|
const Icon2 = iconMap[icon];
|
|
2179
|
-
return /* @__PURE__ */
|
|
2223
|
+
return /* @__PURE__ */ jsx39(Icon2, { size: 18 });
|
|
2180
2224
|
};
|
|
2181
|
-
return /* @__PURE__ */
|
|
2225
|
+
return /* @__PURE__ */ jsxs24(
|
|
2182
2226
|
"div",
|
|
2183
2227
|
{
|
|
2184
2228
|
"data-testid": "job-header-root",
|
|
@@ -2187,8 +2231,8 @@ function JobHeader({
|
|
|
2187
2231
|
!standalone && "rounded-3xl"
|
|
2188
2232
|
),
|
|
2189
2233
|
children: [
|
|
2190
|
-
!standalone && /* @__PURE__ */
|
|
2191
|
-
/* @__PURE__ */
|
|
2234
|
+
!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: [
|
|
2235
|
+
/* @__PURE__ */ jsx39(
|
|
2192
2236
|
Image2,
|
|
2193
2237
|
{
|
|
2194
2238
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -2197,7 +2241,7 @@ function JobHeader({
|
|
|
2197
2241
|
fill: true
|
|
2198
2242
|
}
|
|
2199
2243
|
),
|
|
2200
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ jsx39(
|
|
2201
2245
|
BackButton,
|
|
2202
2246
|
{
|
|
2203
2247
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -2206,12 +2250,12 @@ function JobHeader({
|
|
|
2206
2250
|
"data-testid": "job-header-back-button"
|
|
2207
2251
|
}
|
|
2208
2252
|
),
|
|
2209
|
-
/* @__PURE__ */
|
|
2253
|
+
/* @__PURE__ */ jsx39(
|
|
2210
2254
|
"div",
|
|
2211
2255
|
{
|
|
2212
2256
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
2213
2257
|
"data-testid": "job-header-avatar",
|
|
2214
|
-
children: /* @__PURE__ */
|
|
2258
|
+
children: /* @__PURE__ */ jsx39(
|
|
2215
2259
|
Avatar,
|
|
2216
2260
|
{
|
|
2217
2261
|
size: "large",
|
|
@@ -2225,9 +2269,9 @@ function JobHeader({
|
|
|
2225
2269
|
}
|
|
2226
2270
|
)
|
|
2227
2271
|
] }),
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
standalone && /* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
2273
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col md:flex-row", children: [
|
|
2274
|
+
standalone && /* @__PURE__ */ jsx39("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ jsx39(
|
|
2231
2275
|
Avatar,
|
|
2232
2276
|
{
|
|
2233
2277
|
size: "large",
|
|
@@ -2238,26 +2282,26 @@ function JobHeader({
|
|
|
2238
2282
|
rel: "noopener noreferrer"
|
|
2239
2283
|
}
|
|
2240
2284
|
) }),
|
|
2241
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__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
2286
|
"div",
|
|
2243
2287
|
{
|
|
2244
2288
|
"data-testid": `job-header-subtitle-${i}`,
|
|
2245
2289
|
className: "flex items-center",
|
|
2246
2290
|
children: [
|
|
2247
2291
|
subtitle,
|
|
2248
|
-
i < subtitles.length - 1 && /* @__PURE__ */
|
|
2292
|
+
i < subtitles.length - 1 && /* @__PURE__ */ jsx39(Dot2, { className: "mx-1 shrink-0", size: 10 })
|
|
2249
2293
|
]
|
|
2250
2294
|
},
|
|
2251
2295
|
subtitle
|
|
2252
2296
|
)) })
|
|
2253
2297
|
] }),
|
|
2254
|
-
/* @__PURE__ */
|
|
2298
|
+
/* @__PURE__ */ jsxs24(
|
|
2255
2299
|
"div",
|
|
2256
2300
|
{
|
|
2257
2301
|
"data-testid": "job-header-content",
|
|
2258
2302
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
2259
2303
|
children: [
|
|
2260
|
-
/* @__PURE__ */
|
|
2304
|
+
/* @__PURE__ */ jsx39(
|
|
2261
2305
|
"h2",
|
|
2262
2306
|
{
|
|
2263
2307
|
"data-testid": "job-header-title",
|
|
@@ -2265,7 +2309,7 @@ function JobHeader({
|
|
|
2265
2309
|
children: title
|
|
2266
2310
|
}
|
|
2267
2311
|
),
|
|
2268
|
-
!!actions && /* @__PURE__ */
|
|
2312
|
+
!!actions && /* @__PURE__ */ jsx39(
|
|
2269
2313
|
"div",
|
|
2270
2314
|
{
|
|
2271
2315
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -2276,12 +2320,12 @@ function JobHeader({
|
|
|
2276
2320
|
]
|
|
2277
2321
|
}
|
|
2278
2322
|
),
|
|
2279
|
-
/* @__PURE__ */
|
|
2323
|
+
/* @__PURE__ */ jsx39(
|
|
2280
2324
|
"div",
|
|
2281
2325
|
{
|
|
2282
2326
|
"data-testid": "job-header-tags",
|
|
2283
2327
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
2284
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */
|
|
2328
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ jsxs24(
|
|
2285
2329
|
Chip_default,
|
|
2286
2330
|
{
|
|
2287
2331
|
size: "small",
|
|
@@ -2290,7 +2334,7 @@ function JobHeader({
|
|
|
2290
2334
|
"data-testid": `job-header-tag-${name}`,
|
|
2291
2335
|
children: [
|
|
2292
2336
|
renderIcon(icon),
|
|
2293
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ jsx39("span", { children: label })
|
|
2294
2338
|
]
|
|
2295
2339
|
},
|
|
2296
2340
|
name
|
|
@@ -3223,7 +3267,7 @@ function salaryRange(salary) {
|
|
|
3223
3267
|
}
|
|
3224
3268
|
|
|
3225
3269
|
// src/components/jobPost/JobPost.tsx
|
|
3226
|
-
import { jsx as
|
|
3270
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3227
3271
|
function JobPost({
|
|
3228
3272
|
job,
|
|
3229
3273
|
bannerSrc,
|
|
@@ -3269,7 +3313,7 @@ function JobPost({
|
|
|
3269
3313
|
label: formattedLocation
|
|
3270
3314
|
}
|
|
3271
3315
|
].filter((t) => !!t);
|
|
3272
|
-
return /* @__PURE__ */
|
|
3316
|
+
return /* @__PURE__ */ jsxs25(
|
|
3273
3317
|
"div",
|
|
3274
3318
|
{
|
|
3275
3319
|
className: cn(
|
|
@@ -3277,7 +3321,7 @@ function JobPost({
|
|
|
3277
3321
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
3278
3322
|
),
|
|
3279
3323
|
children: [
|
|
3280
|
-
/* @__PURE__ */
|
|
3324
|
+
/* @__PURE__ */ jsx40(
|
|
3281
3325
|
JobHeader,
|
|
3282
3326
|
{
|
|
3283
3327
|
title: job.title,
|
|
@@ -3293,16 +3337,16 @@ function JobPost({
|
|
|
3293
3337
|
tags
|
|
3294
3338
|
}
|
|
3295
3339
|
),
|
|
3296
|
-
/* @__PURE__ */
|
|
3297
|
-
/* @__PURE__ */
|
|
3298
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
3341
|
+
/* @__PURE__ */ jsx40(JobDescription, { description: job.description }),
|
|
3342
|
+
/* @__PURE__ */ jsx40(
|
|
3299
3343
|
CompanyTake,
|
|
3300
3344
|
{
|
|
3301
3345
|
avatarSrc,
|
|
3302
3346
|
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
3303
3347
|
}
|
|
3304
3348
|
),
|
|
3305
|
-
/* @__PURE__ */
|
|
3349
|
+
/* @__PURE__ */ jsx40(
|
|
3306
3350
|
CompanyInformation,
|
|
3307
3351
|
{
|
|
3308
3352
|
name: job.hiringOrganization?.companyName ?? "",
|
|
@@ -3312,7 +3356,7 @@ function JobPost({
|
|
|
3312
3356
|
website: job.hiringOrganization?.companyWebsite
|
|
3313
3357
|
}
|
|
3314
3358
|
),
|
|
3315
|
-
/* @__PURE__ */
|
|
3359
|
+
/* @__PURE__ */ jsx40(
|
|
3316
3360
|
CompanyBenefits,
|
|
3317
3361
|
{
|
|
3318
3362
|
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
@@ -3642,6 +3686,7 @@ export {
|
|
|
3642
3686
|
ReadMore,
|
|
3643
3687
|
Select_default as Select,
|
|
3644
3688
|
shared_pickle_output_latest_exports2 as SharedService,
|
|
3689
|
+
StepTabs,
|
|
3645
3690
|
Switch,
|
|
3646
3691
|
WindowHistoryProvider,
|
|
3647
3692
|
cn,
|