@next-degree/pickle-shared-js 0.12.4 → 0.12.6
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-Br0R7m-A.d.cts → company_service_sanity-2J1ZuUnu.d.cts} +1 -1
- package/dist/{company_service_sanity-DF01qvTz.d.ts → company_service_sanity-KaAGfnNV.d.ts} +1 -1
- package/dist/components/jobCard/JobLocation.d.cts +1 -1
- package/dist/components/jobCard/JobLocation.d.ts +1 -1
- package/dist/components/jobPost/JobHeader.cjs +1 -1
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.js +1 -1
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +24 -9
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +1 -1
- package/dist/components/jobPost/JobPost.d.ts +1 -1
- package/dist/components/jobPost/JobPost.js +24 -9
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/command.d.cts +3 -3
- package/dist/components/primitives/command.d.ts +3 -3
- package/dist/components/primitives/input-otp.d.cts +2 -2
- package/dist/components/primitives/input-otp.d.ts +2 -2
- 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-BDPndCI9.d.cts → displayText-DW0qiJqh.d.cts} +2 -2
- package/dist/{displayText-EpnIpZ38.d.ts → displayText-DahwdHdi.d.ts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +5 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-BNQsNQs2.d.ts → job_posting_service_sanity-BKo9TBDT.d.ts} +40 -40
- package/dist/{job_posting_service_sanity-BN7XcVxU.d.cts → job_posting_service_sanity-BNq-Am9N.d.cts} +40 -40
- package/dist/lib/locations.d.cts +3 -3
- package/dist/lib/locations.d.ts +3 -3
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/types/data/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 +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/latest/custom/company_service_sanity.d.cts +2 -2
- package/dist/types/latest/custom/company_service_sanity.d.ts +2 -2
- 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/{job_posting_service_latest-B6Trs6sX.d.cts → job_posting_service_latest-C_TEBzCf.d.cts} +7 -7
- package/dist/{job_posting_service_latest-B6Trs6sX.d.ts → job_posting_service_latest-C_TEBzCf.d.ts} +7 -7
- package/dist/{job_posting_service_latest-BKz5U2Gp.d.cts → job_posting_service_latest-DdgK8Nnz.d.cts} +7 -7
- package/dist/{job_posting_service_latest-BKz5U2Gp.d.ts → job_posting_service_latest-DdgK8Nnz.d.ts} +7 -7
- package/dist/{shared_pickle_output_latest-DKOmTyYk.d.cts → shared_pickle_output_latest-CXBCG04N.d.cts} +4 -4
- package/dist/{shared_pickle_output_latest-DKOmTyYk.d.ts → shared_pickle_output_latest-CXBCG04N.d.ts} +4 -4
- package/dist/{shared_pickle_output_latest--XZhOUyE.d.cts → shared_pickle_output_latest-CtvHTPeX.d.cts} +4 -4
- package/dist/{shared_pickle_output_latest--XZhOUyE.d.ts → shared_pickle_output_latest-CtvHTPeX.d.ts} +4 -4
|
@@ -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>>, "
|
|
28
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
29
29
|
value?: string;
|
|
30
30
|
onValueChange?: (search: string) => void;
|
|
31
31
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -51,7 +51,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
51
51
|
ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
} & {
|
|
53
53
|
asChild?: boolean;
|
|
54
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
54
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
55
55
|
heading?: React.ReactNode;
|
|
56
56
|
value?: string;
|
|
57
57
|
forceMount?: boolean;
|
|
@@ -69,7 +69,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
69
69
|
ref?: React.Ref<HTMLDivElement>;
|
|
70
70
|
} & {
|
|
71
71
|
asChild?: boolean;
|
|
72
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
72
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
73
73
|
disabled?: boolean;
|
|
74
74
|
onSelect?: (value: string) => void;
|
|
75
75
|
value?: string;
|
|
@@ -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>>, "
|
|
28
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
29
29
|
value?: string;
|
|
30
30
|
onValueChange?: (search: string) => void;
|
|
31
31
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -51,7 +51,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
51
51
|
ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
} & {
|
|
53
53
|
asChild?: boolean;
|
|
54
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
54
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
55
55
|
heading?: React.ReactNode;
|
|
56
56
|
value?: string;
|
|
57
57
|
forceMount?: boolean;
|
|
@@ -69,7 +69,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
69
69
|
ref?: React.Ref<HTMLDivElement>;
|
|
70
70
|
} & {
|
|
71
71
|
asChild?: boolean;
|
|
72
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
72
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
73
73
|
disabled?: boolean;
|
|
74
74
|
onSelect?: (value: string) => void;
|
|
75
75
|
value?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as input_otp from 'input-otp';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (newValue: string) => unknown;
|
|
7
7
|
maxLength: number;
|
|
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
14
14
|
} & {
|
|
15
15
|
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
16
|
children?: never;
|
|
17
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
18
|
value?: string;
|
|
19
19
|
onChange?: (newValue: string) => unknown;
|
|
20
20
|
maxLength: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as input_otp from 'input-otp';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (newValue: string) => unknown;
|
|
7
7
|
maxLength: number;
|
|
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
14
14
|
} & {
|
|
15
15
|
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
16
|
children?: never;
|
|
17
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
18
|
value?: string;
|
|
19
19
|
onChange?: (newValue: string) => unknown;
|
|
20
20
|
maxLength: number;
|
|
@@ -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
|
|
|
@@ -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-C_TEBzCf.cjs';
|
|
4
|
+
import { U as UnitTextEnum, C as CurrencyEnum } from './shared_pickle_output_latest-CXBCG04N.cjs';
|
|
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-C_TEBzCf.js';
|
|
4
|
+
import { U as UnitTextEnum, C as CurrencyEnum } from './shared_pickle_output_latest-CXBCG04N.js';
|
|
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-DW0qiJqh.cjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
3
|
+
import '../job_posting_service_latest-C_TEBzCf.cjs';
|
|
4
|
+
import '../shared_pickle_output_latest-CXBCG04N.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-DahwdHdi.js';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
3
|
+
import '../job_posting_service_latest-C_TEBzCf.js';
|
|
4
|
+
import '../shared_pickle_output_latest-CXBCG04N.js';
|
|
5
5
|
|
|
6
6
|
declare const useDisplayText: (scope: keyof ServiceMappings, value: string | string[] | undefined | null) => string;
|
|
7
7
|
|
package/dist/index.cjs
CHANGED
|
@@ -2909,7 +2909,7 @@ function JobHeader({
|
|
|
2909
2909
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: label })
|
|
2910
2910
|
]
|
|
2911
2911
|
},
|
|
2912
|
-
name
|
|
2912
|
+
`${name}-${label}`
|
|
2913
2913
|
))
|
|
2914
2914
|
}
|
|
2915
2915
|
)
|
|
@@ -3428,11 +3428,6 @@ function getAddressList(jobPost) {
|
|
|
3428
3428
|
}
|
|
3429
3429
|
return locations;
|
|
3430
3430
|
}
|
|
3431
|
-
function formattedJobLocation(job) {
|
|
3432
|
-
const address = job.jobLocation && formattedAddress(job.jobLocation);
|
|
3433
|
-
const remote = job.isRemote ? "Remote" : "";
|
|
3434
|
-
return [address, remote].filter(Boolean).join(" | ");
|
|
3435
|
-
}
|
|
3436
3431
|
|
|
3437
3432
|
// src/components/jobPost/JobPost.tsx
|
|
3438
3433
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
@@ -3449,7 +3444,7 @@ function JobPost({
|
|
|
3449
3444
|
const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
|
|
3450
3445
|
const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
|
|
3451
3446
|
const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
|
|
3452
|
-
const
|
|
3447
|
+
const formattedLocations = getAddressList(job);
|
|
3453
3448
|
const formattedSalary = salaryRange(job.estimatedSalary);
|
|
3454
3449
|
const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
|
|
3455
3450
|
addSuffix: true
|
|
@@ -3475,11 +3470,11 @@ function JobPost({
|
|
|
3475
3470
|
name: "jobFunction",
|
|
3476
3471
|
label: formattedJobFunction
|
|
3477
3472
|
},
|
|
3478
|
-
|
|
3473
|
+
...formattedLocations.map((label) => ({
|
|
3479
3474
|
icon: "map-pin",
|
|
3480
3475
|
name: "location",
|
|
3481
|
-
label
|
|
3482
|
-
}
|
|
3476
|
+
label
|
|
3477
|
+
}))
|
|
3483
3478
|
].filter((t) => !!t);
|
|
3484
3479
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3485
3480
|
"div",
|