@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.cjs
CHANGED
|
@@ -59,6 +59,7 @@ __export(index_exports, {
|
|
|
59
59
|
ReadMore: () => ReadMore,
|
|
60
60
|
Select: () => Select_default,
|
|
61
61
|
SharedService: () => shared_pickle_output_latest_exports2,
|
|
62
|
+
StepTabs: () => StepTabs,
|
|
62
63
|
Switch: () => Switch,
|
|
63
64
|
WindowHistoryProvider: () => WindowHistoryProvider,
|
|
64
65
|
cn: () => cn,
|
|
@@ -2013,18 +2014,90 @@ var datePickerStyle = (0, import_cva9.cva)([
|
|
|
2013
2014
|
"font-normal"
|
|
2014
2015
|
]);
|
|
2015
2016
|
|
|
2016
|
-
// src/components/
|
|
2017
|
+
// src/components/ui/StepTabs.tsx
|
|
2018
|
+
var Tabs = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
2019
|
+
var import_cva10 = require("cva");
|
|
2017
2020
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2021
|
+
var tabParentVariants = (0, import_cva10.cva)("flex flex-col", {
|
|
2022
|
+
variants: {
|
|
2023
|
+
variant: {
|
|
2024
|
+
primary: "rounded-lg border shadow-sm",
|
|
2025
|
+
neutral: ""
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
defaultVariants: {
|
|
2029
|
+
variant: "primary"
|
|
2030
|
+
}
|
|
2031
|
+
});
|
|
2032
|
+
var singleTabVariants = (0, import_cva10.cva)(
|
|
2033
|
+
"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",
|
|
2034
|
+
{
|
|
2035
|
+
variants: {
|
|
2036
|
+
variant: {
|
|
2037
|
+
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",
|
|
2038
|
+
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"
|
|
2039
|
+
}
|
|
2040
|
+
},
|
|
2041
|
+
defaultVariants: {
|
|
2042
|
+
variant: "primary"
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
);
|
|
2046
|
+
function StepTabs({
|
|
2047
|
+
list,
|
|
2048
|
+
currentStep,
|
|
2049
|
+
setCurrentStep,
|
|
2050
|
+
children,
|
|
2051
|
+
className,
|
|
2052
|
+
classNameTab,
|
|
2053
|
+
defaultValue,
|
|
2054
|
+
variant,
|
|
2055
|
+
...props
|
|
2056
|
+
}) {
|
|
2057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2058
|
+
Tabs.Root,
|
|
2059
|
+
{
|
|
2060
|
+
value: currentStep,
|
|
2061
|
+
onValueChange: setCurrentStep,
|
|
2062
|
+
defaultValue: defaultValue ?? "0",
|
|
2063
|
+
className: cn(tabParentVariants({ variant }), className),
|
|
2064
|
+
...props,
|
|
2065
|
+
children: [
|
|
2066
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children: list.length > 1 && list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2067
|
+
Tabs.Trigger,
|
|
2068
|
+
{
|
|
2069
|
+
className: cn(singleTabVariants({ variant }), classNameTab),
|
|
2070
|
+
value: index.toString(),
|
|
2071
|
+
children: item
|
|
2072
|
+
},
|
|
2073
|
+
`${item}-${index}`
|
|
2074
|
+
)) }),
|
|
2075
|
+
children && children.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2076
|
+
Tabs.Content,
|
|
2077
|
+
{
|
|
2078
|
+
className: "grow rounded-b-md bg-white p-5 outline-none",
|
|
2079
|
+
value: index.toString(),
|
|
2080
|
+
children: child
|
|
2081
|
+
},
|
|
2082
|
+
index
|
|
2083
|
+
))
|
|
2084
|
+
]
|
|
2085
|
+
}
|
|
2086
|
+
);
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
// src/components/company/CompanyBenefits.tsx
|
|
2090
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2018
2091
|
function CompanyBenefits({ benefits }) {
|
|
2019
2092
|
if (!benefits) return null;
|
|
2020
|
-
return /* @__PURE__ */ (0,
|
|
2021
|
-
/* @__PURE__ */ (0,
|
|
2022
|
-
/* @__PURE__ */ (0,
|
|
2093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
2094
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.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" }),
|
|
2095
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
2023
2096
|
] });
|
|
2024
2097
|
}
|
|
2025
2098
|
|
|
2026
2099
|
// src/components/company/CompanyInformation.tsx
|
|
2027
|
-
var
|
|
2100
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2028
2101
|
function CompanyInformation({
|
|
2029
2102
|
name,
|
|
2030
2103
|
how,
|
|
@@ -2032,8 +2105,8 @@ function CompanyInformation({
|
|
|
2032
2105
|
wow,
|
|
2033
2106
|
website
|
|
2034
2107
|
}) {
|
|
2035
|
-
return /* @__PURE__ */ (0,
|
|
2036
|
-
/* @__PURE__ */ (0,
|
|
2108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2109
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2037
2110
|
"h2",
|
|
2038
2111
|
{
|
|
2039
2112
|
"data-testid": "company-name",
|
|
@@ -2044,22 +2117,22 @@ function CompanyInformation({
|
|
|
2044
2117
|
]
|
|
2045
2118
|
}
|
|
2046
2119
|
),
|
|
2047
|
-
how && /* @__PURE__ */ (0,
|
|
2048
|
-
mission && /* @__PURE__ */ (0,
|
|
2049
|
-
/* @__PURE__ */ (0,
|
|
2050
|
-
/* @__PURE__ */ (0,
|
|
2051
|
-
/* @__PURE__ */ (0,
|
|
2120
|
+
how && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
2121
|
+
mission && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-2", children: [
|
|
2122
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u{1F680}" }),
|
|
2123
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-base text-grey-80", children: [
|
|
2124
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pr-1 font-bold", children: "Mission" }),
|
|
2052
2125
|
mission
|
|
2053
2126
|
] })
|
|
2054
2127
|
] }),
|
|
2055
|
-
wow && /* @__PURE__ */ (0,
|
|
2056
|
-
/* @__PURE__ */ (0,
|
|
2057
|
-
/* @__PURE__ */ (0,
|
|
2058
|
-
/* @__PURE__ */ (0,
|
|
2128
|
+
wow && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-2", children: [
|
|
2129
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u{1F31F}" }),
|
|
2130
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-base text-grey-80", children: [
|
|
2131
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
2059
2132
|
wow
|
|
2060
2133
|
] })
|
|
2061
2134
|
] }),
|
|
2062
|
-
website && /* @__PURE__ */ (0,
|
|
2135
|
+
website && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2063
2136
|
LinkButton,
|
|
2064
2137
|
{
|
|
2065
2138
|
"data-testid": "company-website-link",
|
|
@@ -2073,22 +2146,22 @@ function CompanyInformation({
|
|
|
2073
2146
|
}
|
|
2074
2147
|
|
|
2075
2148
|
// src/components/company/CompanyTake.tsx
|
|
2076
|
-
var
|
|
2149
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2077
2150
|
function CompanyTake({ content, avatarSrc }) {
|
|
2078
2151
|
if (!content) return null;
|
|
2079
|
-
return /* @__PURE__ */ (0,
|
|
2152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2080
2153
|
"div",
|
|
2081
2154
|
{
|
|
2082
2155
|
"data-testid": "company-take",
|
|
2083
2156
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
2084
2157
|
children: [
|
|
2085
|
-
/* @__PURE__ */ (0,
|
|
2086
|
-
/* @__PURE__ */ (0,
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2088
|
-
/* @__PURE__ */ (0,
|
|
2089
|
-
/* @__PURE__ */ (0,
|
|
2090
|
-
/* @__PURE__ */ (0,
|
|
2091
|
-
/* @__PURE__ */ (0,
|
|
2158
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
2159
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
|
|
2160
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
2161
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
2162
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
2163
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
2164
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
2092
2165
|
] })
|
|
2093
2166
|
] })
|
|
2094
2167
|
]
|
|
@@ -2097,12 +2170,12 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
2097
2170
|
}
|
|
2098
2171
|
|
|
2099
2172
|
// src/components/jobPost/JobDescription.tsx
|
|
2100
|
-
var
|
|
2173
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2101
2174
|
function JobDescription({ description }) {
|
|
2102
2175
|
if (!description) return null;
|
|
2103
|
-
return /* @__PURE__ */ (0,
|
|
2104
|
-
/* @__PURE__ */ (0,
|
|
2105
|
-
/* @__PURE__ */ (0,
|
|
2176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
|
|
2177
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ReadMore, { text: description })
|
|
2106
2179
|
] });
|
|
2107
2180
|
}
|
|
2108
2181
|
|
|
@@ -2120,7 +2193,7 @@ var import_react16 = require("react");
|
|
|
2120
2193
|
// src/contexts/WindowHistoryProvider.tsx
|
|
2121
2194
|
var import_navigation = require("next/navigation");
|
|
2122
2195
|
var import_react15 = require("react");
|
|
2123
|
-
var
|
|
2196
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2124
2197
|
var WindowHistoryContext = (0, import_react15.createContext)({});
|
|
2125
2198
|
function WindowHistoryProvider({ children }) {
|
|
2126
2199
|
const [history, setHistory] = (0, import_react15.useState)([]);
|
|
@@ -2131,7 +2204,7 @@ function WindowHistoryProvider({ children }) {
|
|
|
2131
2204
|
);
|
|
2132
2205
|
}, [searchParams]);
|
|
2133
2206
|
const contextValue = (0, import_react15.useMemo)(() => ({ history }), [history]);
|
|
2134
|
-
return /* @__PURE__ */ (0,
|
|
2207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
2135
2208
|
}
|
|
2136
2209
|
|
|
2137
2210
|
// src/hooks/useWindowHistory.ts
|
|
@@ -2141,7 +2214,7 @@ function useWindowHistory() {
|
|
|
2141
2214
|
}
|
|
2142
2215
|
|
|
2143
2216
|
// src/components/buttons/BackButton.tsx
|
|
2144
|
-
var
|
|
2217
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2145
2218
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
2146
2219
|
const { history } = useWindowHistory();
|
|
2147
2220
|
const router = (0, import_navigation2.useRouter)();
|
|
@@ -2154,7 +2227,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
2154
2227
|
router.push(fallbackHref ?? "/");
|
|
2155
2228
|
}
|
|
2156
2229
|
};
|
|
2157
|
-
return /* @__PURE__ */ (0,
|
|
2230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2158
2231
|
Icon,
|
|
2159
2232
|
{
|
|
2160
2233
|
"aria-label": "back button",
|
|
@@ -2163,7 +2236,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
2163
2236
|
onClick: goBack,
|
|
2164
2237
|
className,
|
|
2165
2238
|
...props,
|
|
2166
|
-
children: /* @__PURE__ */ (0,
|
|
2239
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react15.X, {})
|
|
2167
2240
|
}
|
|
2168
2241
|
);
|
|
2169
2242
|
}
|
|
@@ -2194,7 +2267,7 @@ var iconMap = {
|
|
|
2194
2267
|
};
|
|
2195
2268
|
|
|
2196
2269
|
// src/components/jobPost/JobHeader.tsx
|
|
2197
|
-
var
|
|
2270
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2198
2271
|
function JobHeader({
|
|
2199
2272
|
title,
|
|
2200
2273
|
subtitles,
|
|
@@ -2210,9 +2283,9 @@ function JobHeader({
|
|
|
2210
2283
|
}) {
|
|
2211
2284
|
const renderIcon = (icon) => {
|
|
2212
2285
|
const Icon2 = iconMap[icon];
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon2, { size: 18 });
|
|
2214
2287
|
};
|
|
2215
|
-
return /* @__PURE__ */ (0,
|
|
2288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2216
2289
|
"div",
|
|
2217
2290
|
{
|
|
2218
2291
|
"data-testid": "job-header-root",
|
|
@@ -2221,8 +2294,8 @@ function JobHeader({
|
|
|
2221
2294
|
!standalone && "rounded-3xl"
|
|
2222
2295
|
),
|
|
2223
2296
|
children: [
|
|
2224
|
-
!standalone && /* @__PURE__ */ (0,
|
|
2225
|
-
/* @__PURE__ */ (0,
|
|
2297
|
+
!standalone && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("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: [
|
|
2298
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2226
2299
|
import_image.default,
|
|
2227
2300
|
{
|
|
2228
2301
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -2231,7 +2304,7 @@ function JobHeader({
|
|
|
2231
2304
|
fill: true
|
|
2232
2305
|
}
|
|
2233
2306
|
),
|
|
2234
|
-
/* @__PURE__ */ (0,
|
|
2307
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2235
2308
|
BackButton,
|
|
2236
2309
|
{
|
|
2237
2310
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -2240,12 +2313,12 @@ function JobHeader({
|
|
|
2240
2313
|
"data-testid": "job-header-back-button"
|
|
2241
2314
|
}
|
|
2242
2315
|
),
|
|
2243
|
-
/* @__PURE__ */ (0,
|
|
2316
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2244
2317
|
"div",
|
|
2245
2318
|
{
|
|
2246
2319
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
2247
2320
|
"data-testid": "job-header-avatar",
|
|
2248
|
-
children: /* @__PURE__ */ (0,
|
|
2321
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2249
2322
|
Avatar,
|
|
2250
2323
|
{
|
|
2251
2324
|
size: "large",
|
|
@@ -2259,9 +2332,9 @@ function JobHeader({
|
|
|
2259
2332
|
}
|
|
2260
2333
|
)
|
|
2261
2334
|
] }),
|
|
2262
|
-
/* @__PURE__ */ (0,
|
|
2263
|
-
/* @__PURE__ */ (0,
|
|
2264
|
-
standalone && /* @__PURE__ */ (0,
|
|
2335
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
2336
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
|
|
2337
|
+
standalone && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2265
2338
|
Avatar,
|
|
2266
2339
|
{
|
|
2267
2340
|
size: "large",
|
|
@@ -2272,26 +2345,26 @@ function JobHeader({
|
|
|
2272
2345
|
rel: "noopener noreferrer"
|
|
2273
2346
|
}
|
|
2274
2347
|
) }),
|
|
2275
|
-
/* @__PURE__ */ (0,
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2276
2349
|
"div",
|
|
2277
2350
|
{
|
|
2278
2351
|
"data-testid": `job-header-subtitle-${i}`,
|
|
2279
2352
|
className: "flex items-center",
|
|
2280
2353
|
children: [
|
|
2281
2354
|
subtitle,
|
|
2282
|
-
i < subtitles.length - 1 && /* @__PURE__ */ (0,
|
|
2355
|
+
i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react17.Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
2283
2356
|
]
|
|
2284
2357
|
},
|
|
2285
2358
|
subtitle
|
|
2286
2359
|
)) })
|
|
2287
2360
|
] }),
|
|
2288
|
-
/* @__PURE__ */ (0,
|
|
2361
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2289
2362
|
"div",
|
|
2290
2363
|
{
|
|
2291
2364
|
"data-testid": "job-header-content",
|
|
2292
2365
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
2293
2366
|
children: [
|
|
2294
|
-
/* @__PURE__ */ (0,
|
|
2367
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2295
2368
|
"h2",
|
|
2296
2369
|
{
|
|
2297
2370
|
"data-testid": "job-header-title",
|
|
@@ -2299,7 +2372,7 @@ function JobHeader({
|
|
|
2299
2372
|
children: title
|
|
2300
2373
|
}
|
|
2301
2374
|
),
|
|
2302
|
-
!!actions && /* @__PURE__ */ (0,
|
|
2375
|
+
!!actions && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2303
2376
|
"div",
|
|
2304
2377
|
{
|
|
2305
2378
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -2310,12 +2383,12 @@ function JobHeader({
|
|
|
2310
2383
|
]
|
|
2311
2384
|
}
|
|
2312
2385
|
),
|
|
2313
|
-
/* @__PURE__ */ (0,
|
|
2386
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2314
2387
|
"div",
|
|
2315
2388
|
{
|
|
2316
2389
|
"data-testid": "job-header-tags",
|
|
2317
2390
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
2318
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0,
|
|
2391
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2319
2392
|
Chip_default,
|
|
2320
2393
|
{
|
|
2321
2394
|
size: "small",
|
|
@@ -2324,7 +2397,7 @@ function JobHeader({
|
|
|
2324
2397
|
"data-testid": `job-header-tag-${name}`,
|
|
2325
2398
|
children: [
|
|
2326
2399
|
renderIcon(icon),
|
|
2327
|
-
/* @__PURE__ */ (0,
|
|
2400
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label })
|
|
2328
2401
|
]
|
|
2329
2402
|
},
|
|
2330
2403
|
name
|
|
@@ -3257,7 +3330,7 @@ function salaryRange(salary) {
|
|
|
3257
3330
|
}
|
|
3258
3331
|
|
|
3259
3332
|
// src/components/jobPost/JobPost.tsx
|
|
3260
|
-
var
|
|
3333
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3261
3334
|
function JobPost({
|
|
3262
3335
|
job,
|
|
3263
3336
|
bannerSrc,
|
|
@@ -3303,7 +3376,7 @@ function JobPost({
|
|
|
3303
3376
|
label: formattedLocation
|
|
3304
3377
|
}
|
|
3305
3378
|
].filter((t) => !!t);
|
|
3306
|
-
return /* @__PURE__ */ (0,
|
|
3379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3307
3380
|
"div",
|
|
3308
3381
|
{
|
|
3309
3382
|
className: cn(
|
|
@@ -3311,7 +3384,7 @@ function JobPost({
|
|
|
3311
3384
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
3312
3385
|
),
|
|
3313
3386
|
children: [
|
|
3314
|
-
/* @__PURE__ */ (0,
|
|
3387
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3315
3388
|
JobHeader,
|
|
3316
3389
|
{
|
|
3317
3390
|
title: job.title,
|
|
@@ -3327,16 +3400,16 @@ function JobPost({
|
|
|
3327
3400
|
tags
|
|
3328
3401
|
}
|
|
3329
3402
|
),
|
|
3330
|
-
/* @__PURE__ */ (0,
|
|
3331
|
-
/* @__PURE__ */ (0,
|
|
3332
|
-
/* @__PURE__ */ (0,
|
|
3403
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
3404
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(JobDescription, { description: job.description }),
|
|
3405
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3333
3406
|
CompanyTake,
|
|
3334
3407
|
{
|
|
3335
3408
|
avatarSrc,
|
|
3336
3409
|
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
3337
3410
|
}
|
|
3338
3411
|
),
|
|
3339
|
-
/* @__PURE__ */ (0,
|
|
3412
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3340
3413
|
CompanyInformation,
|
|
3341
3414
|
{
|
|
3342
3415
|
name: job.hiringOrganization?.companyName ?? "",
|
|
@@ -3346,7 +3419,7 @@ function JobPost({
|
|
|
3346
3419
|
website: job.hiringOrganization?.companyWebsite
|
|
3347
3420
|
}
|
|
3348
3421
|
),
|
|
3349
|
-
/* @__PURE__ */ (0,
|
|
3422
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3350
3423
|
CompanyBenefits,
|
|
3351
3424
|
{
|
|
3352
3425
|
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
@@ -3677,6 +3750,7 @@ var jobPostSchema3 = import_zod9.z.object({
|
|
|
3677
3750
|
ReadMore,
|
|
3678
3751
|
Select,
|
|
3679
3752
|
SharedService,
|
|
3753
|
+
StepTabs,
|
|
3680
3754
|
Switch,
|
|
3681
3755
|
WindowHistoryProvider,
|
|
3682
3756
|
cn,
|