@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
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/jobCard/JobLocation.tsx
|
|
31
|
+
var JobLocation_exports = {};
|
|
32
|
+
__export(JobLocation_exports, {
|
|
33
|
+
default: () => JobLocation_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(JobLocation_exports);
|
|
36
|
+
var import_lucide_react = require("lucide-react");
|
|
37
|
+
|
|
38
|
+
// src/components/primitives/tooltip.tsx
|
|
39
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
40
|
+
var React = __toESM(require("react"), 1);
|
|
41
|
+
|
|
42
|
+
// src/lib/utils.ts
|
|
43
|
+
var import_clsx = require("clsx");
|
|
44
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
45
|
+
function cn(...inputs) {
|
|
46
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// src/components/primitives/tooltip.tsx
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
52
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
53
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
54
|
+
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
TooltipPrimitive.Content,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
sideOffset,
|
|
59
|
+
className: cn(
|
|
60
|
+
"z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
|
|
61
|
+
className
|
|
62
|
+
),
|
|
63
|
+
...props
|
|
64
|
+
}
|
|
65
|
+
));
|
|
66
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
67
|
+
|
|
68
|
+
// src/components/jobCard/JobLocation.tsx
|
|
69
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
70
|
+
function JobLocation({ mainLocation, extendedLocations }) {
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex items-center gap-2", "data-testid": "job-card-location", children: [
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.MapPin, { size: 16 }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-sm font-thin", children: mainLocation }),
|
|
74
|
+
extendedLocations && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Tooltip, { children: [
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TooltipTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "length-text group rounded-full bg-grey-5 px-2 py-1 text-sm font-bold text-gray-700 group-hover:cursor-pointer", children: [
|
|
76
|
+
"+ ",
|
|
77
|
+
extendedLocations.length,
|
|
78
|
+
" more"
|
|
79
|
+
] }) }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TooltipContent, { className: "border-1 rounded-md border border-grey-5 bg-white p-2", children: extendedLocations.map((location) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "text-nowrap text-sm", children: location }, location)) })
|
|
81
|
+
] }) })
|
|
82
|
+
] });
|
|
83
|
+
}
|
|
84
|
+
var JobLocation_default = JobLocation;
|
|
85
|
+
//# sourceMappingURL=JobLocation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/jobCard/JobLocation.tsx","../../../src/components/primitives/tooltip.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import { MapPin } from 'lucide-react'\n\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/primitives/tooltip'\n\ntype JobLocationProps = Readonly<{\n mainLocation: string\n extendedLocations?: string[]\n}>\n\nfunction JobLocation({ mainLocation, extendedLocations }: JobLocationProps) {\n return (\n <div className=\"flex items-center gap-2\" data-testid=\"job-card-location\">\n <MapPin size={16} />\n <span className=\"text-sm font-thin\">{mainLocation}</span>\n {extendedLocations && (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger>\n <div className=\"length-text group rounded-full bg-grey-5 px-2 py-1 text-sm font-bold text-gray-700 group-hover:cursor-pointer\">\n + {extendedLocations.length} more\n </div>\n </TooltipTrigger>\n <TooltipContent className=\"border-1 rounded-md border border-grey-5 bg-white p-2\">\n {extendedLocations.map((location) => (\n <div key={location} className=\"text-nowrap text-sm\">\n {location}\n </div>\n ))}\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )}\n </div>\n )\n}\n\nexport default JobLocation\n","'use client'\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50',\n className\n )}\n {...props}\n />\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAuB;;;ACEvB,uBAAkC;AAClC,YAAuB;;;ACHvB,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADYE;AAVF,IAAM,kBAAmC;AAEzC,IAAM,UAA2B;AAEjC,IAAM,iBAAkC;AAExC,IAAM,iBAAuB,iBAG3B,CAAC,EAAE,WAAW,aAAa,GAAG,GAAG,MAAM,GAAG,QAC1C;AAAA,EAAkB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAA+B,yBAAQ;;;ADVhD,IAAAA,sBAAA;AAHN,SAAS,YAAY,EAAE,cAAc,kBAAkB,GAAqB;AAC1E,SACE,8CAAC,SAAI,WAAU,2BAA0B,eAAY,qBACnD;AAAA,iDAAC,8BAAO,MAAM,IAAI;AAAA,IAClB,6CAAC,UAAK,WAAU,qBAAqB,wBAAa;AAAA,IACjD,qBACC,6CAAC,mBACC,wDAAC,WACC;AAAA,mDAAC,kBACC,wDAAC,SAAI,WAAU,iHAAgH;AAAA;AAAA,QAC1H,kBAAkB;AAAA,QAAO;AAAA,SAC9B,GACF;AAAA,MACA,6CAAC,kBAAe,WAAU,yDACvB,4BAAkB,IAAI,CAAC,aACtB,6CAAC,SAAmB,WAAU,uBAC3B,sBADO,QAEV,CACD,GACH;AAAA,OACF,GACF;AAAA,KAEJ;AAEJ;AAEA,IAAO,sBAAQ;","names":["import_jsx_runtime"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
type JobLocationProps = Readonly<{
|
|
4
|
+
mainLocation: string;
|
|
5
|
+
extendedLocations?: string[];
|
|
6
|
+
}>;
|
|
7
|
+
declare function JobLocation({ mainLocation, extendedLocations }: JobLocationProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { JobLocation as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
type JobLocationProps = Readonly<{
|
|
4
|
+
mainLocation: string;
|
|
5
|
+
extendedLocations?: string[];
|
|
6
|
+
}>;
|
|
7
|
+
declare function JobLocation({ mainLocation, extendedLocations }: JobLocationProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { JobLocation as default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// src/components/jobCard/JobLocation.tsx
|
|
2
|
+
import { MapPin } from "lucide-react";
|
|
3
|
+
|
|
4
|
+
// src/components/primitives/tooltip.tsx
|
|
5
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
// src/lib/utils.ts
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
|
+
import { twMerge } from "tailwind-merge";
|
|
11
|
+
function cn(...inputs) {
|
|
12
|
+
return twMerge(clsx(inputs));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// src/components/primitives/tooltip.tsx
|
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
18
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
19
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
20
|
+
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21
|
+
TooltipPrimitive.Content,
|
|
22
|
+
{
|
|
23
|
+
ref,
|
|
24
|
+
sideOffset,
|
|
25
|
+
className: cn(
|
|
26
|
+
"z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
|
|
27
|
+
className
|
|
28
|
+
),
|
|
29
|
+
...props
|
|
30
|
+
}
|
|
31
|
+
));
|
|
32
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
33
|
+
|
|
34
|
+
// src/components/jobCard/JobLocation.tsx
|
|
35
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
36
|
+
function JobLocation({ mainLocation, extendedLocations }) {
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", "data-testid": "job-card-location", children: [
|
|
38
|
+
/* @__PURE__ */ jsx2(MapPin, { size: 16 }),
|
|
39
|
+
/* @__PURE__ */ jsx2("span", { className: "text-sm font-thin", children: mainLocation }),
|
|
40
|
+
extendedLocations && /* @__PURE__ */ jsx2(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx2(TooltipTrigger, { children: /* @__PURE__ */ jsxs("div", { className: "length-text group rounded-full bg-grey-5 px-2 py-1 text-sm font-bold text-gray-700 group-hover:cursor-pointer", children: [
|
|
42
|
+
"+ ",
|
|
43
|
+
extendedLocations.length,
|
|
44
|
+
" more"
|
|
45
|
+
] }) }),
|
|
46
|
+
/* @__PURE__ */ jsx2(TooltipContent, { className: "border-1 rounded-md border border-grey-5 bg-white p-2", children: extendedLocations.map((location) => /* @__PURE__ */ jsx2("div", { className: "text-nowrap text-sm", children: location }, location)) })
|
|
47
|
+
] }) })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
var JobLocation_default = JobLocation;
|
|
51
|
+
export {
|
|
52
|
+
JobLocation_default as default
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=JobLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/jobCard/JobLocation.tsx","../../../src/components/primitives/tooltip.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import { MapPin } from 'lucide-react'\n\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/primitives/tooltip'\n\ntype JobLocationProps = Readonly<{\n mainLocation: string\n extendedLocations?: string[]\n}>\n\nfunction JobLocation({ mainLocation, extendedLocations }: JobLocationProps) {\n return (\n <div className=\"flex items-center gap-2\" data-testid=\"job-card-location\">\n <MapPin size={16} />\n <span className=\"text-sm font-thin\">{mainLocation}</span>\n {extendedLocations && (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger>\n <div className=\"length-text group rounded-full bg-grey-5 px-2 py-1 text-sm font-bold text-gray-700 group-hover:cursor-pointer\">\n + {extendedLocations.length} more\n </div>\n </TooltipTrigger>\n <TooltipContent className=\"border-1 rounded-md border border-grey-5 bg-white p-2\">\n {extendedLocations.map((location) => (\n <div key={location} className=\"text-nowrap text-sm\">\n {location}\n </div>\n ))}\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )}\n </div>\n )\n}\n\nexport default JobLocation\n","'use client'\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 overflow-hidden rounded-md border border-neutral-200 bg-white px-3 py-1.5 text-sm text-neutral-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50',\n className\n )}\n {...props}\n />\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";AAAA,SAAS,cAAc;;;ACEvB,YAAY,sBAAsB;AAClC,YAAY,WAAW;;;ACHvB,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ADYE;AAVF,IAAM,kBAAmC;AAEzC,IAAM,UAA2B;AAEjC,IAAM,iBAAkC;AAExC,IAAM,iBAAuB,iBAG3B,CAAC,EAAE,WAAW,aAAa,GAAG,GAAG,MAAM,GAAG,QAC1C;AAAA,EAAkB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAA+B,yBAAQ;;;ADVhD,gBAAAA,MAMQ,YANR;AAHN,SAAS,YAAY,EAAE,cAAc,kBAAkB,GAAqB;AAC1E,SACE,qBAAC,SAAI,WAAU,2BAA0B,eAAY,qBACnD;AAAA,oBAAAA,KAAC,UAAO,MAAM,IAAI;AAAA,IAClB,gBAAAA,KAAC,UAAK,WAAU,qBAAqB,wBAAa;AAAA,IACjD,qBACC,gBAAAA,KAAC,mBACC,+BAAC,WACC;AAAA,sBAAAA,KAAC,kBACC,+BAAC,SAAI,WAAU,iHAAgH;AAAA;AAAA,QAC1H,kBAAkB;AAAA,QAAO;AAAA,SAC9B,GACF;AAAA,MACA,gBAAAA,KAAC,kBAAe,WAAU,yDACvB,4BAAkB,IAAI,CAAC,aACtB,gBAAAA,KAAC,SAAmB,WAAU,uBAC3B,sBADO,QAEV,CACD,GACH;AAAA,OACF,GACF;AAAA,KAEJ;AAEJ;AAEA,IAAO,sBAAQ;","names":["jsx"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { J as JobPostModel } from '../../job_posting_service_latest-
|
|
3
|
+
import { J as JobPostModel } from '../../job_posting_service_latest-DaKYQh30.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type JobPostProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { J as JobPostModel } from '../../job_posting_service_latest-
|
|
3
|
+
import { J as JobPostModel } from '../../job_posting_service_latest-DaKYQh30.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type JobPostProps = {
|
|
@@ -25,7 +25,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
25
25
|
ref?: React.Ref<HTMLInputElement>;
|
|
26
26
|
} & {
|
|
27
27
|
asChild?: boolean;
|
|
28
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "
|
|
28
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
29
29
|
value?: string;
|
|
30
30
|
onValueChange?: (search: string) => void;
|
|
31
31
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -25,7 +25,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
25
25
|
ref?: React.Ref<HTMLInputElement>;
|
|
26
26
|
} & {
|
|
27
27
|
asChild?: boolean;
|
|
28
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "
|
|
28
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
29
29
|
value?: string;
|
|
30
30
|
onValueChange?: (search: string) => void;
|
|
31
31
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -40,7 +40,7 @@ declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & Rea
|
|
|
40
40
|
* Provides consistent styling across different button variations.
|
|
41
41
|
*/
|
|
42
42
|
declare const buttonVariants: (props?: ({
|
|
43
|
-
variant?: "
|
|
43
|
+
variant?: "neutral" | "primary" | "link" | "secondary" | "transparent" | null | undefined;
|
|
44
44
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
45
45
|
} & cva_types.ClassProp) | undefined) => string;
|
|
46
46
|
|
|
@@ -40,7 +40,7 @@ declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & Rea
|
|
|
40
40
|
* Provides consistent styling across different button variations.
|
|
41
41
|
*/
|
|
42
42
|
declare const buttonVariants: (props?: ({
|
|
43
|
-
variant?: "
|
|
43
|
+
variant?: "neutral" | "primary" | "link" | "secondary" | "transparent" | null | undefined;
|
|
44
44
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
45
45
|
} & cva_types.ClassProp) | undefined) => string;
|
|
46
46
|
|
|
@@ -35,6 +35,7 @@ __export(StepTabs_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(StepTabs_exports);
|
|
37
37
|
var Tabs = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
38
|
+
var import_cva = require("cva");
|
|
38
39
|
|
|
39
40
|
// src/lib/utils.ts
|
|
40
41
|
var import_clsx = require("clsx");
|
|
@@ -45,13 +46,40 @@ function cn(...inputs) {
|
|
|
45
46
|
|
|
46
47
|
// src/components/ui/StepTabs.tsx
|
|
47
48
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
|
+
var tabParentVariants = (0, import_cva.cva)("flex flex-col", {
|
|
50
|
+
variants: {
|
|
51
|
+
variant: {
|
|
52
|
+
primary: "rounded-lg border shadow-sm",
|
|
53
|
+
neutral: ""
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
variant: "primary"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var singleTabVariants = (0, import_cva.cva)(
|
|
61
|
+
"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",
|
|
62
|
+
{
|
|
63
|
+
variants: {
|
|
64
|
+
variant: {
|
|
65
|
+
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",
|
|
66
|
+
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"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
defaultVariants: {
|
|
70
|
+
variant: "primary"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
48
74
|
function StepTabs({
|
|
49
75
|
list,
|
|
50
76
|
currentStep,
|
|
51
77
|
setCurrentStep,
|
|
52
78
|
children,
|
|
53
79
|
className,
|
|
80
|
+
classNameTab,
|
|
54
81
|
defaultValue,
|
|
82
|
+
variant,
|
|
55
83
|
...props
|
|
56
84
|
}) {
|
|
57
85
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
@@ -60,19 +88,19 @@ function StepTabs({
|
|
|
60
88
|
value: currentStep,
|
|
61
89
|
onValueChange: setCurrentStep,
|
|
62
90
|
defaultValue: defaultValue ?? "0",
|
|
63
|
-
className: cn(
|
|
91
|
+
className: cn(tabParentVariants({ variant }), className),
|
|
64
92
|
...props,
|
|
65
93
|
children: [
|
|
66
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children:
|
|
94
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children: list.length > 1 && list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
95
|
Tabs.Trigger,
|
|
68
96
|
{
|
|
69
|
-
className:
|
|
97
|
+
className: cn(singleTabVariants({ variant }), classNameTab),
|
|
70
98
|
value: index.toString(),
|
|
71
99
|
children: item
|
|
72
100
|
},
|
|
73
101
|
`${item}-${index}`
|
|
74
102
|
)) }),
|
|
75
|
-
children.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
103
|
+
children && children.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
104
|
Tabs.Content,
|
|
77
105
|
{
|
|
78
106
|
className: "grow rounded-b-md bg-white p-5 outline-none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/StepTabs.tsx","../../../src/lib/utils.ts"],"sourcesContent":["'use client'\n\nimport * as Tabs from '@radix-ui/react-tabs'\nimport { type ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\ntype StepTabsProps = Tabs.TabsProps & {\n
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/StepTabs.tsx","../../../src/lib/utils.ts"],"sourcesContent":["'use client'\n\nimport * as Tabs from '@radix-ui/react-tabs'\nimport { cva, type VariantProps } from 'cva'\nimport { type ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst tabParentVariants = cva('flex flex-col', {\n variants: {\n variant: {\n primary: 'rounded-lg border shadow-sm',\n neutral: '',\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n})\n\nconst singleTabVariants = cva(\n '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',\n {\n variants: {\n variant: {\n primary:\n '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',\n neutral:\n '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',\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n }\n)\n\ntype StepTabsProps = Tabs.TabsProps &\n VariantProps<typeof tabParentVariants> &\n VariantProps<typeof singleTabVariants> & {\n list: string[]\n currentStep?: string\n setCurrentStep?: (step: string) => void\n children?: ReactNode[]\n classNameTab?: string\n }\n\nexport function StepTabs({\n list,\n currentStep,\n setCurrentStep,\n children,\n className,\n classNameTab,\n defaultValue,\n variant,\n ...props\n}: StepTabsProps) {\n return (\n <Tabs.Root\n value={currentStep}\n onValueChange={setCurrentStep}\n defaultValue={defaultValue ?? '0'}\n className={cn(tabParentVariants({ variant }), className)}\n {...props}\n >\n <Tabs.List className=\"flex shrink-0 border-b border-grey-20\">\n {list.length > 1 &&\n list.map((item, index) => (\n <Tabs.Trigger\n key={`${item}-${index}`}\n className={cn(singleTabVariants({ variant }), classNameTab)}\n value={index.toString()}\n >\n {item}\n </Tabs.Trigger>\n ))}\n </Tabs.List>\n\n {children &&\n children.map((child, index) => (\n <Tabs.Content\n key={index}\n className=\"grow rounded-b-md bg-white p-5 outline-none\"\n value={index.toString()}\n >\n {child}\n </Tabs.Content>\n ))}\n </Tabs.Root>\n )\n}\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,WAAsB;AACtB,iBAAuC;;;ACHvC,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADsDI;AAnDJ,IAAM,wBAAoB,gBAAI,iBAAiB;AAAA,EAC7C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;AAED,IAAM,wBAAoB;AAAA,EACxB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,SACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAYO,SAAS,SAAS;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,SACE;AAAA,IAAM;AAAA,IAAL;AAAA,MACC,OAAO;AAAA,MACP,eAAe;AAAA,MACf,cAAc,gBAAgB;AAAA,MAC9B,WAAW,GAAG,kBAAkB,EAAE,QAAQ,CAAC,GAAG,SAAS;AAAA,MACtD,GAAG;AAAA,MAEJ;AAAA,oDAAM,WAAL,EAAU,WAAU,yCAClB,eAAK,SAAS,KACb,KAAK,IAAI,CAAC,MAAM,UACd;AAAA,UAAM;AAAA,UAAL;AAAA,YAEC,WAAW,GAAG,kBAAkB,EAAE,QAAQ,CAAC,GAAG,YAAY;AAAA,YAC1D,OAAO,MAAM,SAAS;AAAA,YAErB;AAAA;AAAA,UAJI,GAAG,IAAI,IAAI,KAAK;AAAA,QAKvB,CACD,GACL;AAAA,QAEC,YACC,SAAS,IAAI,CAAC,OAAO,UACnB;AAAA,UAAM;AAAA,UAAL;AAAA,YAEC,WAAU;AAAA,YACV,OAAO,MAAM,SAAS;AAAA,YAErB;AAAA;AAAA,UAJI;AAAA,QAKP,CACD;AAAA;AAAA;AAAA,EACL;AAEJ;","names":[]}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as cva_types from 'cva/types';
|
|
2
3
|
import * as Tabs from '@radix-ui/react-tabs';
|
|
4
|
+
import { VariantProps } from 'cva';
|
|
3
5
|
import { ReactNode } from 'react';
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
declare const tabParentVariants: (props?: ({
|
|
8
|
+
variant?: "neutral" | "primary" | null | undefined;
|
|
9
|
+
} & cva_types.ClassProp) | undefined) => string;
|
|
10
|
+
declare const singleTabVariants: (props?: ({
|
|
11
|
+
variant?: "neutral" | "primary" | null | undefined;
|
|
12
|
+
} & cva_types.ClassProp) | undefined) => string;
|
|
13
|
+
type StepTabsProps = Tabs.TabsProps & VariantProps<typeof tabParentVariants> & VariantProps<typeof singleTabVariants> & {
|
|
6
14
|
list: string[];
|
|
7
15
|
currentStep?: string;
|
|
8
16
|
setCurrentStep?: (step: string) => void;
|
|
9
|
-
children
|
|
17
|
+
children?: ReactNode[];
|
|
18
|
+
classNameTab?: string;
|
|
10
19
|
};
|
|
11
|
-
declare function StepTabs({ list, currentStep, setCurrentStep, children, className, defaultValue, ...props }: StepTabsProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function StepTabs({ list, currentStep, setCurrentStep, children, className, classNameTab, defaultValue, variant, ...props }: StepTabsProps): react_jsx_runtime.JSX.Element;
|
|
12
21
|
|
|
13
22
|
export { StepTabs };
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as cva_types from 'cva/types';
|
|
2
3
|
import * as Tabs from '@radix-ui/react-tabs';
|
|
4
|
+
import { VariantProps } from 'cva';
|
|
3
5
|
import { ReactNode } from 'react';
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
declare const tabParentVariants: (props?: ({
|
|
8
|
+
variant?: "neutral" | "primary" | null | undefined;
|
|
9
|
+
} & cva_types.ClassProp) | undefined) => string;
|
|
10
|
+
declare const singleTabVariants: (props?: ({
|
|
11
|
+
variant?: "neutral" | "primary" | null | undefined;
|
|
12
|
+
} & cva_types.ClassProp) | undefined) => string;
|
|
13
|
+
type StepTabsProps = Tabs.TabsProps & VariantProps<typeof tabParentVariants> & VariantProps<typeof singleTabVariants> & {
|
|
6
14
|
list: string[];
|
|
7
15
|
currentStep?: string;
|
|
8
16
|
setCurrentStep?: (step: string) => void;
|
|
9
|
-
children
|
|
17
|
+
children?: ReactNode[];
|
|
18
|
+
classNameTab?: string;
|
|
10
19
|
};
|
|
11
|
-
declare function StepTabs({ list, currentStep, setCurrentStep, children, className, defaultValue, ...props }: StepTabsProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function StepTabs({ list, currentStep, setCurrentStep, children, className, classNameTab, defaultValue, variant, ...props }: StepTabsProps): react_jsx_runtime.JSX.Element;
|
|
12
21
|
|
|
13
22
|
export { StepTabs };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/components/ui/StepTabs.tsx
|
|
4
4
|
import * as Tabs from "@radix-ui/react-tabs";
|
|
5
|
+
import { cva } from "cva";
|
|
5
6
|
|
|
6
7
|
// src/lib/utils.ts
|
|
7
8
|
import { clsx } from "clsx";
|
|
@@ -12,13 +13,40 @@ function cn(...inputs) {
|
|
|
12
13
|
|
|
13
14
|
// src/components/ui/StepTabs.tsx
|
|
14
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var tabParentVariants = cva("flex flex-col", {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
primary: "rounded-lg border shadow-sm",
|
|
20
|
+
neutral: ""
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "primary"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var singleTabVariants = cva(
|
|
28
|
+
"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",
|
|
29
|
+
{
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
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",
|
|
33
|
+
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"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
variant: "primary"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
);
|
|
15
41
|
function StepTabs({
|
|
16
42
|
list,
|
|
17
43
|
currentStep,
|
|
18
44
|
setCurrentStep,
|
|
19
45
|
children,
|
|
20
46
|
className,
|
|
47
|
+
classNameTab,
|
|
21
48
|
defaultValue,
|
|
49
|
+
variant,
|
|
22
50
|
...props
|
|
23
51
|
}) {
|
|
24
52
|
return /* @__PURE__ */ jsxs(
|
|
@@ -27,19 +55,19 @@ function StepTabs({
|
|
|
27
55
|
value: currentStep,
|
|
28
56
|
onValueChange: setCurrentStep,
|
|
29
57
|
defaultValue: defaultValue ?? "0",
|
|
30
|
-
className: cn(
|
|
58
|
+
className: cn(tabParentVariants({ variant }), className),
|
|
31
59
|
...props,
|
|
32
60
|
children: [
|
|
33
|
-
/* @__PURE__ */ jsx(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children:
|
|
61
|
+
/* @__PURE__ */ jsx(Tabs.List, { className: "flex shrink-0 border-b border-grey-20", children: list.length > 1 && list.map((item, index) => /* @__PURE__ */ jsx(
|
|
34
62
|
Tabs.Trigger,
|
|
35
63
|
{
|
|
36
|
-
className:
|
|
64
|
+
className: cn(singleTabVariants({ variant }), classNameTab),
|
|
37
65
|
value: index.toString(),
|
|
38
66
|
children: item
|
|
39
67
|
},
|
|
40
68
|
`${item}-${index}`
|
|
41
69
|
)) }),
|
|
42
|
-
children.map((child, index) => /* @__PURE__ */ jsx(
|
|
70
|
+
children && children.map((child, index) => /* @__PURE__ */ jsx(
|
|
43
71
|
Tabs.Content,
|
|
44
72
|
{
|
|
45
73
|
className: "grow rounded-b-md bg-white p-5 outline-none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/StepTabs.tsx","../../../src/lib/utils.ts"],"sourcesContent":["'use client'\n\nimport * as Tabs from '@radix-ui/react-tabs'\nimport { type ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\ntype StepTabsProps = Tabs.TabsProps & {\n
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/StepTabs.tsx","../../../src/lib/utils.ts"],"sourcesContent":["'use client'\n\nimport * as Tabs from '@radix-ui/react-tabs'\nimport { cva, type VariantProps } from 'cva'\nimport { type ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst tabParentVariants = cva('flex flex-col', {\n variants: {\n variant: {\n primary: 'rounded-lg border shadow-sm',\n neutral: '',\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n})\n\nconst singleTabVariants = cva(\n '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',\n {\n variants: {\n variant: {\n primary:\n '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',\n neutral:\n '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',\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n }\n)\n\ntype StepTabsProps = Tabs.TabsProps &\n VariantProps<typeof tabParentVariants> &\n VariantProps<typeof singleTabVariants> & {\n list: string[]\n currentStep?: string\n setCurrentStep?: (step: string) => void\n children?: ReactNode[]\n classNameTab?: string\n }\n\nexport function StepTabs({\n list,\n currentStep,\n setCurrentStep,\n children,\n className,\n classNameTab,\n defaultValue,\n variant,\n ...props\n}: StepTabsProps) {\n return (\n <Tabs.Root\n value={currentStep}\n onValueChange={setCurrentStep}\n defaultValue={defaultValue ?? '0'}\n className={cn(tabParentVariants({ variant }), className)}\n {...props}\n >\n <Tabs.List className=\"flex shrink-0 border-b border-grey-20\">\n {list.length > 1 &&\n list.map((item, index) => (\n <Tabs.Trigger\n key={`${item}-${index}`}\n className={cn(singleTabVariants({ variant }), classNameTab)}\n value={index.toString()}\n >\n {item}\n </Tabs.Trigger>\n ))}\n </Tabs.List>\n\n {children &&\n children.map((child, index) => (\n <Tabs.Content\n key={index}\n className=\"grow rounded-b-md bg-white p-5 outline-none\"\n value={index.toString()}\n >\n {child}\n </Tabs.Content>\n ))}\n </Tabs.Root>\n )\n}\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";;;AAEA,YAAY,UAAU;AACtB,SAAS,WAA8B;;;ACHvC,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ADsDI,SAUQ,KAVR;AAnDJ,IAAM,oBAAoB,IAAI,iBAAiB;AAAA,EAC7C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;AAED,IAAM,oBAAoB;AAAA,EACxB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,SACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAYO,SAAS,SAAS;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,SACE;AAAA,IAAM;AAAA,IAAL;AAAA,MACC,OAAO;AAAA,MACP,eAAe;AAAA,MACf,cAAc,gBAAgB;AAAA,MAC9B,WAAW,GAAG,kBAAkB,EAAE,QAAQ,CAAC,GAAG,SAAS;AAAA,MACtD,GAAG;AAAA,MAEJ;AAAA,4BAAM,WAAL,EAAU,WAAU,yCAClB,eAAK,SAAS,KACb,KAAK,IAAI,CAAC,MAAM,UACd;AAAA,UAAM;AAAA,UAAL;AAAA,YAEC,WAAW,GAAG,kBAAkB,EAAE,QAAQ,CAAC,GAAG,YAAY;AAAA,YAC1D,OAAO,MAAM,SAAS;AAAA,YAErB;AAAA;AAAA,UAJI,GAAG,IAAI,IAAI,KAAK;AAAA,QAKvB,CACD,GACL;AAAA,QAEC,YACC,SAAS,IAAI,CAAC,OAAO,UACnB;AAAA,UAAM;AAAA,UAAL;AAAA,YAEC,WAAU;AAAA,YACV,OAAO,MAAM,SAAS;AAAA,YAErB;AAAA;AAAA,UAJI;AAAA,QAKP,CACD;AAAA;AAAA;AAAA,EACL;AAEJ;","names":[]}
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "link" | "outline" | "secondary" | "destructive" | "ghost" | null | undefined;
|
|
7
7
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & cva_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "link" | "outline" | "secondary" | "destructive" | "ghost" | null | undefined;
|
|
7
7
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & cva_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { E as EmploymentTypeEnum, a as EmploymentLevelEnum, b as JobFunctionEnum, B as BestFitEnum, C as ClinicalSpecialtyEnum, S as ShiftEnum, c as ClinicalSettingEnum } from './job_posting_service_latest-
|
|
4
|
-
import { U as UnitTextEnum, C as CurrencyEnum } from './shared_pickle_output_latest-
|
|
3
|
+
import { E as EmploymentTypeEnum, a as EmploymentLevelEnum, b as JobFunctionEnum, B as BestFitEnum, C as ClinicalSpecialtyEnum, S as ShiftEnum, c as ClinicalSettingEnum } from './job_posting_service_latest-DaKYQh30.js';
|
|
4
|
+
import { U as UnitTextEnum, C as CurrencyEnum } from './shared_pickle_output_latest-BjRRmT8R.js';
|
|
5
5
|
|
|
6
6
|
declare const employmentTypeDisplayText: DisplayTextConfig<typeof EmploymentTypeEnum>;
|
|
7
7
|
declare const unitTextDisplayText: DisplayTextConfig<typeof UnitTextEnum>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { E as EmploymentTypeEnum, a as EmploymentLevelEnum, b as JobFunctionEnum, B as BestFitEnum, C as ClinicalSpecialtyEnum, S as ShiftEnum, c as ClinicalSettingEnum } from './job_posting_service_latest-
|
|
4
|
-
import { U as UnitTextEnum, C as CurrencyEnum } from './shared_pickle_output_latest-
|
|
3
|
+
import { E as EmploymentTypeEnum, a as EmploymentLevelEnum, b as JobFunctionEnum, B as BestFitEnum, C as ClinicalSpecialtyEnum, S as ShiftEnum, c as ClinicalSettingEnum } from './job_posting_service_latest-DaKYQh30.cjs';
|
|
4
|
+
import { U as UnitTextEnum, C as CurrencyEnum } from './shared_pickle_output_latest-BjRRmT8R.cjs';
|
|
5
5
|
|
|
6
6
|
declare const employmentTypeDisplayText: DisplayTextConfig<typeof EmploymentTypeEnum>;
|
|
7
7
|
declare const unitTextDisplayText: DisplayTextConfig<typeof UnitTextEnum>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ServiceMappings } from '../displayText-
|
|
1
|
+
import { S as ServiceMappings } from '../displayText-DHKm6_JF.cjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
3
|
+
import '../job_posting_service_latest-DaKYQh30.cjs';
|
|
4
|
+
import '../shared_pickle_output_latest-BjRRmT8R.cjs';
|
|
5
5
|
|
|
6
6
|
declare const useDisplayText: (scope: keyof ServiceMappings, value: string | string[] | undefined | null) => string;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ServiceMappings } from '../displayText-
|
|
1
|
+
import { S as ServiceMappings } from '../displayText-D8MYOaYK.js';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
3
|
+
import '../job_posting_service_latest-DaKYQh30.js';
|
|
4
|
+
import '../shared_pickle_output_latest-BjRRmT8R.js';
|
|
5
5
|
|
|
6
6
|
declare const useDisplayText: (scope: keyof ServiceMappings, value: string | string[] | undefined | null) => string;
|
|
7
7
|
|