@next-degree/pickle-shared-js 0.12.1 → 0.12.3
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.cjs +92 -12
- package/dist/components/jobCard/JobLocation.cjs.map +1 -1
- package/dist/components/jobCard/JobLocation.d.cts +7 -5
- package/dist/components/jobCard/JobLocation.d.ts +7 -5
- package/dist/components/jobCard/JobLocation.js +92 -12
- package/dist/components/jobCard/JobLocation.js.map +1 -1
- package/dist/components/jobPost/JobHeader.cjs +1 -0
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.js +1 -0
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +9 -5
- 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 +9 -5
- 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/Chip.cjs +1 -0
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.cts +1 -1
- package/dist/components/ui/Chip.d.ts +1 -1
- package/dist/components/ui/Chip.js +1 -0
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/Select.cjs +1 -0
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +1 -0
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/StepTabs.cjs +21 -4
- package/dist/components/ui/StepTabs.cjs.map +1 -1
- package/dist/components/ui/StepTabs.d.cts +2 -2
- package/dist/components/ui/StepTabs.d.ts +2 -2
- package/dist/components/ui/StepTabs.js +21 -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-DzxDrQAT.d.cts → displayText-DW0qiJqh.d.cts} +2 -2
- package/dist/{displayText-C1DIK8hr.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 +80 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +80 -19
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-DCbi2bXu.d.cts → job_posting_service_latest-DdgK8Nnz.d.cts} +29 -29
- package/dist/{job_posting_service_latest-DCbi2bXu.d.ts → job_posting_service_latest-DdgK8Nnz.d.ts} +29 -29
- package/dist/{job_posting_service_sanity-CfLaGMVK.d.ts → job_posting_service_sanity-BKo9TBDT.d.ts} +106 -106
- package/dist/{job_posting_service_sanity-B7GvIdYQ.d.cts → job_posting_service_sanity-BNq-Am9N.d.cts} +106 -106
- package/dist/lib/locations.cjs +32 -7
- package/dist/lib/locations.cjs.map +1 -1
- package/dist/lib/locations.d.cts +8 -5
- package/dist/lib/locations.d.ts +8 -5
- package/dist/lib/locations.js +30 -6
- package/dist/lib/locations.js.map +1 -1
- 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 +23 -7
- package/dist/styles/globals.css.map +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 +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 +3 -2
- package/dist/{job_posting_service_latest-tqnHqjwc.d.cts → job_posting_service_latest-C_TEBzCf.d.cts} +28 -28
- package/dist/{job_posting_service_latest-tqnHqjwc.d.ts → job_posting_service_latest-C_TEBzCf.d.ts} +28 -28
- 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
package/dist/lib/locations.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
// src/lib/locations.ts
|
|
2
|
-
function formattedAddress(address) {
|
|
2
|
+
function formattedAddress(address, isRemote = false) {
|
|
3
|
+
if (!address) return null;
|
|
3
4
|
const { addressLocality, addressRegion, addressCountry } = address;
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
if (addressCountry) return addressCountry
|
|
5
|
+
const remoteMessage = isRemote ? " | Remote" : "";
|
|
6
|
+
if (addressLocality && addressRegion)
|
|
7
|
+
return `${addressLocality}, ${addressRegion + remoteMessage}`;
|
|
8
|
+
if (addressRegion && addressCountry) return `${addressRegion}, ${addressCountry + remoteMessage}`;
|
|
9
|
+
if (addressRegion) return `${addressRegion + remoteMessage}`;
|
|
10
|
+
if (addressCountry) return `${addressCountry + remoteMessage}`;
|
|
8
11
|
return null;
|
|
9
12
|
}
|
|
13
|
+
function getAddressList(jobPost) {
|
|
14
|
+
const locations = [];
|
|
15
|
+
if (jobPost.jobLocation) {
|
|
16
|
+
const address = formattedAddress(jobPost.jobLocation, jobPost.isRemote);
|
|
17
|
+
if (address) locations.push(address);
|
|
18
|
+
}
|
|
19
|
+
if (jobPost.applicableOffices && jobPost.applicableOffices.length > 0) {
|
|
20
|
+
jobPost.applicableOffices.map((office) => {
|
|
21
|
+
const address = formattedAddress(office?.geoLocation?.address, jobPost.isRemote);
|
|
22
|
+
if (address && !locations.includes(address)) locations.push(address);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (jobPost.applicantLocationRequirements && jobPost.applicantLocationRequirements.length > 0) {
|
|
26
|
+
jobPost.applicantLocationRequirements.map((place) => {
|
|
27
|
+
const address = formattedAddress(place?.address, jobPost.isRemote);
|
|
28
|
+
if (address && !locations.includes(address)) locations.push(address);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return locations;
|
|
32
|
+
}
|
|
10
33
|
function formattedJobLocation(job) {
|
|
11
34
|
const address = job.jobLocation && formattedAddress(job.jobLocation);
|
|
12
35
|
const remote = job.isRemote ? "Remote" : "";
|
|
@@ -14,6 +37,7 @@ function formattedJobLocation(job) {
|
|
|
14
37
|
}
|
|
15
38
|
export {
|
|
16
39
|
formattedAddress,
|
|
17
|
-
formattedJobLocation
|
|
40
|
+
formattedJobLocation,
|
|
41
|
+
getAddressList
|
|
18
42
|
};
|
|
19
43
|
//# sourceMappingURL=locations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/locations.ts"],"sourcesContent":["import { type JobPostModel } from '@/types/data/job_posting_service_latest'\nimport { type PostalAddressModel } from '@/types/data/shared_pickle_output_latest'\n\nexport function formattedAddress(address: PostalAddressModel): string | null {\n const { addressLocality, addressRegion, addressCountry } = address\n if (addressLocality && addressRegion)
|
|
1
|
+
{"version":3,"sources":["../../src/lib/locations.ts"],"sourcesContent":["import { type z } from 'zod'\n\nimport { type JobPostModel } from '@/types/data/job_posting_service_latest'\nimport { type PostalAddressModel } from '@/types/data/shared_pickle_output_latest'\nimport { type jobPostSchema } from '@/types/latest/job_posting_service_latest'\n\ntype JobPost = z.infer<typeof jobPostSchema>\n\nexport function formattedAddress(\n address: PostalAddressModel | undefined,\n isRemote: boolean = false\n): string | null {\n if (!address) return null\n const { addressLocality, addressRegion, addressCountry } = address\n const remoteMessage = isRemote ? ' | Remote' : ''\n if (addressLocality && addressRegion)\n return `${addressLocality}, ${addressRegion + remoteMessage}`\n if (addressRegion && addressCountry) return `${addressRegion}, ${addressCountry + remoteMessage}`\n if (addressRegion) return `${addressRegion + remoteMessage}`\n if (addressCountry) return `${addressCountry + remoteMessage}`\n return null\n}\n\nexport function getAddressList(jobPost: JobPost): string[] {\n const locations: string[] = []\n if (jobPost.jobLocation) {\n const address = formattedAddress(jobPost.jobLocation, jobPost.isRemote)\n if (address) locations.push(address)\n }\n if (jobPost.applicableOffices && jobPost.applicableOffices.length > 0) {\n jobPost.applicableOffices.map((office) => {\n const address = formattedAddress(office?.geoLocation?.address, jobPost.isRemote)\n if (address && !locations.includes(address)) locations.push(address)\n })\n }\n if (jobPost.applicantLocationRequirements && jobPost.applicantLocationRequirements.length > 0) {\n jobPost.applicantLocationRequirements.map((place) => {\n const address = formattedAddress(place?.address, jobPost.isRemote)\n if (address && !locations.includes(address)) locations.push(address)\n })\n }\n return locations\n}\n\nexport function formattedJobLocation(job: JobPostModel) {\n const address = job.jobLocation && formattedAddress(job.jobLocation)\n const remote = job.isRemote ? 'Remote' : ''\n\n return [address, remote].filter(Boolean).join(' | ')\n}\n"],"mappings":";AAQO,SAAS,iBACd,SACA,WAAoB,OACL;AACf,MAAI,CAAC,QAAS,QAAO;AACrB,QAAM,EAAE,iBAAiB,eAAe,eAAe,IAAI;AAC3D,QAAM,gBAAgB,WAAW,cAAc;AAC/C,MAAI,mBAAmB;AACrB,WAAO,GAAG,eAAe,KAAK,gBAAgB,aAAa;AAC7D,MAAI,iBAAiB,eAAgB,QAAO,GAAG,aAAa,KAAK,iBAAiB,aAAa;AAC/F,MAAI,cAAe,QAAO,GAAG,gBAAgB,aAAa;AAC1D,MAAI,eAAgB,QAAO,GAAG,iBAAiB,aAAa;AAC5D,SAAO;AACT;AAEO,SAAS,eAAe,SAA4B;AACzD,QAAM,YAAsB,CAAC;AAC7B,MAAI,QAAQ,aAAa;AACvB,UAAM,UAAU,iBAAiB,QAAQ,aAAa,QAAQ,QAAQ;AACtE,QAAI,QAAS,WAAU,KAAK,OAAO;AAAA,EACrC;AACA,MAAI,QAAQ,qBAAqB,QAAQ,kBAAkB,SAAS,GAAG;AACrE,YAAQ,kBAAkB,IAAI,CAAC,WAAW;AACxC,YAAM,UAAU,iBAAiB,QAAQ,aAAa,SAAS,QAAQ,QAAQ;AAC/E,UAAI,WAAW,CAAC,UAAU,SAAS,OAAO,EAAG,WAAU,KAAK,OAAO;AAAA,IACrE,CAAC;AAAA,EACH;AACA,MAAI,QAAQ,iCAAiC,QAAQ,8BAA8B,SAAS,GAAG;AAC7F,YAAQ,8BAA8B,IAAI,CAAC,UAAU;AACnD,YAAM,UAAU,iBAAiB,OAAO,SAAS,QAAQ,QAAQ;AACjE,UAAI,WAAW,CAAC,UAAU,SAAS,OAAO,EAAG,WAAU,KAAK,OAAO;AAAA,IACrE,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEO,SAAS,qBAAqB,KAAmB;AACtD,QAAM,UAAU,IAAI,eAAe,iBAAiB,IAAI,WAAW;AACnE,QAAM,SAAS,IAAI,WAAW,WAAW;AAEzC,SAAO,CAAC,SAAS,MAAM,EAAE,OAAO,OAAO,EAAE,KAAK,KAAK;AACrD;","names":[]}
|
package/dist/lib/mappings.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { b as bestFitDisplayText, f as clinicalSettingDisplayText, d as clinicalSpecialtyDisplayText, c as currencyDisplayText, g as defaultMappings, a as employmentLevelDisplayText, e as employmentTypeDisplayText, j as jobFunctionDisplayText, s as shiftDisplayText, u as unitTextDisplayText } from '../displayText-
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
2
|
+
export { b as bestFitDisplayText, f as clinicalSettingDisplayText, d as clinicalSpecialtyDisplayText, c as currencyDisplayText, g as defaultMappings, a as employmentLevelDisplayText, e as employmentTypeDisplayText, j as jobFunctionDisplayText, s as shiftDisplayText, u as unitTextDisplayText } from '../displayText-DW0qiJqh.cjs';
|
|
3
|
+
import '../job_posting_service_latest-C_TEBzCf.cjs';
|
|
4
|
+
import '../shared_pickle_output_latest-CXBCG04N.cjs';
|
package/dist/lib/mappings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { b as bestFitDisplayText, f as clinicalSettingDisplayText, d as clinicalSpecialtyDisplayText, c as currencyDisplayText, g as defaultMappings, a as employmentLevelDisplayText, e as employmentTypeDisplayText, j as jobFunctionDisplayText, s as shiftDisplayText, u as unitTextDisplayText } from '../displayText-
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
2
|
+
export { b as bestFitDisplayText, f as clinicalSettingDisplayText, d as clinicalSpecialtyDisplayText, c as currencyDisplayText, g as defaultMappings, a as employmentLevelDisplayText, e as employmentTypeDisplayText, j as jobFunctionDisplayText, s as shiftDisplayText, u as unitTextDisplayText } from '../displayText-DahwdHdi.js';
|
|
3
|
+
import '../job_posting_service_latest-C_TEBzCf.js';
|
|
4
|
+
import '../shared_pickle_output_latest-CXBCG04N.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { D as DisplayTextConfig, h as DisplayTextService, I as IDisplayTextService, S as ServiceMappings } from '../displayText-
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
2
|
+
export { D as DisplayTextConfig, h as DisplayTextService, I as IDisplayTextService, S as ServiceMappings } from '../displayText-DW0qiJqh.cjs';
|
|
3
|
+
import '../job_posting_service_latest-C_TEBzCf.cjs';
|
|
4
|
+
import '../shared_pickle_output_latest-CXBCG04N.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { D as DisplayTextConfig, h as DisplayTextService, I as IDisplayTextService, S as ServiceMappings } from '../displayText-
|
|
3
|
-
import '../job_posting_service_latest-
|
|
4
|
-
import '../shared_pickle_output_latest-
|
|
2
|
+
export { D as DisplayTextConfig, h as DisplayTextService, I as IDisplayTextService, S as ServiceMappings } from '../displayText-DahwdHdi.js';
|
|
3
|
+
import '../job_posting_service_latest-C_TEBzCf.js';
|
|
4
|
+
import '../shared_pickle_output_latest-CXBCG04N.js';
|
package/dist/styles/globals.css
CHANGED
|
@@ -1093,6 +1093,9 @@ video {
|
|
|
1093
1093
|
.flex-1 {
|
|
1094
1094
|
flex: 1 1 0%;
|
|
1095
1095
|
}
|
|
1096
|
+
.flex-none {
|
|
1097
|
+
flex: none;
|
|
1098
|
+
}
|
|
1096
1099
|
.shrink-0 {
|
|
1097
1100
|
flex-shrink: 0;
|
|
1098
1101
|
}
|
|
@@ -1243,6 +1246,9 @@ video {
|
|
|
1243
1246
|
.overflow-hidden {
|
|
1244
1247
|
overflow: hidden;
|
|
1245
1248
|
}
|
|
1249
|
+
.overflow-x-auto {
|
|
1250
|
+
overflow-x: auto;
|
|
1251
|
+
}
|
|
1246
1252
|
.overflow-y-auto {
|
|
1247
1253
|
overflow-y: auto;
|
|
1248
1254
|
}
|
|
@@ -1302,6 +1308,12 @@ video {
|
|
|
1302
1308
|
.border-r {
|
|
1303
1309
|
border-right-width: 1px;
|
|
1304
1310
|
}
|
|
1311
|
+
.border-t {
|
|
1312
|
+
border-top-width: 1px;
|
|
1313
|
+
}
|
|
1314
|
+
.border-none {
|
|
1315
|
+
border-style: none;
|
|
1316
|
+
}
|
|
1305
1317
|
.border-green-80 {
|
|
1306
1318
|
border-color: hsla(164, 76%, 16%, 1);
|
|
1307
1319
|
}
|
|
@@ -1599,10 +1611,6 @@ video {
|
|
|
1599
1611
|
--tw-text-opacity: 1;
|
|
1600
1612
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
1601
1613
|
}
|
|
1602
|
-
.text-gray-700 {
|
|
1603
|
-
--tw-text-opacity: 1;
|
|
1604
|
-
color: rgb(55 65 81 / var(--tw-text-opacity, 1));
|
|
1605
|
-
}
|
|
1606
1614
|
.text-gray-800 {
|
|
1607
1615
|
--tw-text-opacity: 1;
|
|
1608
1616
|
color: rgb(31 41 55 / var(--tw-text-opacity, 1));
|
|
@@ -2259,9 +2267,6 @@ video {
|
|
|
2259
2267
|
.disabled\:opacity-50:disabled {
|
|
2260
2268
|
opacity: 0.5;
|
|
2261
2269
|
}
|
|
2262
|
-
.group:hover .group-hover\:cursor-pointer {
|
|
2263
|
-
cursor: pointer;
|
|
2264
|
-
}
|
|
2265
2270
|
.group:hover .group-hover\:border-grey-20 {
|
|
2266
2271
|
border-color: hsla(0, 0%, 80%, 1);
|
|
2267
2272
|
}
|
|
@@ -2344,6 +2349,9 @@ video {
|
|
|
2344
2349
|
.data-\[state\=checked\]\:pr-10[data-state=checked] {
|
|
2345
2350
|
padding-right: 2.5rem;
|
|
2346
2351
|
}
|
|
2352
|
+
.data-\[state\=active\]\:font-bold[data-state=active] {
|
|
2353
|
+
font-weight: 700;
|
|
2354
|
+
}
|
|
2347
2355
|
.data-\[placeholder\]\:text-grey-50[data-placeholder] {
|
|
2348
2356
|
color: hsla(0, 0%, 50%, 1);
|
|
2349
2357
|
}
|
|
@@ -2387,6 +2395,14 @@ video {
|
|
|
2387
2395
|
var(--tw-ring-shadow, 0 0 #0000),
|
|
2388
2396
|
var(--tw-shadow);
|
|
2389
2397
|
}
|
|
2398
|
+
.data-\[state\=active\]\:shadow-\[inset_0_-2px_0_0\][data-state=active] {
|
|
2399
|
+
--tw-shadow: inset 0 -2px 0 0;
|
|
2400
|
+
--tw-shadow-colored: inset 0 -2px 0 0 var(--tw-shadow-color);
|
|
2401
|
+
box-shadow:
|
|
2402
|
+
var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
2403
|
+
var(--tw-ring-shadow, 0 0 #0000),
|
|
2404
|
+
var(--tw-shadow);
|
|
2405
|
+
}
|
|
2390
2406
|
.data-\[state\=active\]\:shadow-current[data-state=active] {
|
|
2391
2407
|
--tw-shadow-color: currentColor;
|
|
2392
2408
|
--tw-shadow: var(--tw-shadow-colored);
|