@next-degree/pickle-shared-js 0.10.8 → 0.12.1
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-Bedw6Mhk.d.cts → company_service_sanity-Br0R7m-A.d.cts} +114 -114
- package/dist/{company_service_sanity-BZtdt7Df.d.ts → company_service_sanity-DF01qvTz.d.ts} +114 -114
- package/dist/components/jobCard/JobLocation.cjs +88 -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 +53 -0
- package/dist/components/jobCard/JobLocation.js.map +1 -0
- package/dist/components/jobPost/JobDescription.cjs +3 -1
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.js +3 -1
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +17 -13
- 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 +17 -13
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/ui/Button.d.cts +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Combobox.cjs +28 -19
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.js +29 -20
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/DismissibleBanner.cjs +85 -0
- package/dist/components/ui/DismissibleBanner.cjs.map +1 -0
- package/dist/components/ui/DismissibleBanner.d.cts +11 -0
- package/dist/components/ui/DismissibleBanner.d.ts +11 -0
- package/dist/components/ui/DismissibleBanner.js +60 -0
- package/dist/components/ui/DismissibleBanner.js.map +1 -0
- package/dist/components/ui/ReadMore.cjs +3 -1
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.js +3 -1
- package/dist/components/ui/ReadMore.js.map +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-CBIWVZVw.d.ts → displayText-C1DIK8hr.d.ts} +1 -1
- package/dist/{displayText-4cJ7-3Mw.d.cts → displayText-DzxDrQAT.d.cts} +1 -1
- package/dist/hooks/useDisplayText.d.cts +2 -2
- package/dist/hooks/useDisplayText.d.ts +2 -2
- package/dist/index.cjs +1240 -1127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1375 -1265
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-Kcoloigd.d.cts → job_posting_service_sanity-B7GvIdYQ.d.cts} +173 -173
- package/dist/{job_posting_service_sanity-fAGLW3rj.d.ts → job_posting_service_sanity-CfLaGMVK.d.ts} +173 -173
- package/dist/lib/locations.d.cts +1 -1
- package/dist/lib/locations.d.ts +1 -1
- package/dist/lib/mappings.d.cts +2 -2
- package/dist/lib/mappings.d.ts +2 -2
- package/dist/lib/salaryRange.cjs +14 -12
- package/dist/lib/salaryRange.cjs.map +1 -1
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/lib/salaryRange.js +14 -12
- package/dist/lib/salaryRange.js.map +1 -1
- package/dist/services/displayText.d.cts +2 -2
- package/dist/services/displayText.d.ts +2 -2
- package/dist/styles/globals.css +25 -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/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- 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 +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 +2 -2
- package/dist/types/latest/custom/job_posting_service_sanity.d.ts +2 -2
- package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
- package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
- package/package.json +2 -2
- package/dist/{company_service_latest-BmiEQ4dO.d.cts → company_service_latest-C7Moeufo.d.cts} +54 -54
- package/dist/{company_service_latest-BmiEQ4dO.d.ts → company_service_latest-C7Moeufo.d.ts} +54 -54
- package/dist/{company_service_latest-Ba8VhDao.d.cts → company_service_latest-CITz7F53.d.cts} +54 -54
- package/dist/{company_service_latest-Ba8VhDao.d.ts → company_service_latest-CITz7F53.d.ts} +54 -54
- package/dist/{job_posting_service_latest-DdsTbMSJ.d.cts → job_posting_service_latest-DCbi2bXu.d.cts} +85 -85
- package/dist/{job_posting_service_latest-DdsTbMSJ.d.ts → job_posting_service_latest-DCbi2bXu.d.ts} +85 -85
- package/dist/{job_posting_service_latest-DOGQ9tEu.d.cts → job_posting_service_latest-tqnHqjwc.d.cts} +85 -85
- package/dist/{job_posting_service_latest-DOGQ9tEu.d.ts → job_posting_service_latest-tqnHqjwc.d.ts} +85 -85
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OfficeTypeEnum, P as PublishStatusEnum, T as TitleEnum, i as industrySchema, o as officeSchema, s as socialMediaSchema } from './company_service_latest-
|
|
2
|
+
import { O as OfficeTypeEnum, P as PublishStatusEnum, T as TitleEnum, i as industrySchema, o as officeSchema, s as socialMediaSchema } from './company_service_latest-C7Moeufo.js';
|
|
3
3
|
import { i as imageSchema } from './shared_pickle_output_latest--XZhOUyE.js';
|
|
4
4
|
|
|
5
5
|
declare const foundingInformationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
@@ -1646,26 +1646,26 @@ declare const companyNdgSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.obj
|
|
|
1646
1646
|
companyNDGTake: z.ZodNullable<z.ZodString>;
|
|
1647
1647
|
}>, "type">, "strict", z.ZodTypeAny, {
|
|
1648
1648
|
version: "1.0.0";
|
|
1649
|
-
companyNDGTake: string | null;
|
|
1650
1649
|
_type: string;
|
|
1650
|
+
companyNDGTake: string | null;
|
|
1651
1651
|
companyWow?: string | undefined;
|
|
1652
|
+
companyNdgTake?: string | undefined;
|
|
1652
1653
|
companyBestFit?: string[] | undefined;
|
|
1653
1654
|
companyInterests?: string[] | undefined;
|
|
1654
|
-
companyNdgTake?: string | undefined;
|
|
1655
1655
|
}, {
|
|
1656
1656
|
companyNDGTake: string | null;
|
|
1657
1657
|
version?: "1.0.0" | undefined;
|
|
1658
1658
|
companyWow?: string | undefined;
|
|
1659
|
+
companyNdgTake?: string | undefined;
|
|
1659
1660
|
companyBestFit?: string[] | undefined;
|
|
1660
1661
|
companyInterests?: string[] | undefined;
|
|
1661
|
-
companyNdgTake?: string | undefined;
|
|
1662
1662
|
_type?: string | undefined;
|
|
1663
1663
|
}>, {
|
|
1664
1664
|
type: string;
|
|
1665
1665
|
companyNdgTake: string | null;
|
|
1666
1666
|
version: "1.0.0";
|
|
1667
|
-
companyNDGTake: string | null;
|
|
1668
1667
|
_type: string;
|
|
1668
|
+
companyNDGTake: string | null;
|
|
1669
1669
|
companyWow?: string | undefined;
|
|
1670
1670
|
companyBestFit?: string[] | undefined;
|
|
1671
1671
|
companyInterests?: string[] | undefined;
|
|
@@ -1673,9 +1673,9 @@ declare const companyNdgSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.obj
|
|
|
1673
1673
|
companyNDGTake: string | null;
|
|
1674
1674
|
version?: "1.0.0" | undefined;
|
|
1675
1675
|
companyWow?: string | undefined;
|
|
1676
|
+
companyNdgTake?: string | undefined;
|
|
1676
1677
|
companyBestFit?: string[] | undefined;
|
|
1677
1678
|
companyInterests?: string[] | undefined;
|
|
1678
|
-
companyNdgTake?: string | undefined;
|
|
1679
1679
|
_type?: string | undefined;
|
|
1680
1680
|
}>, {
|
|
1681
1681
|
type: string;
|
|
@@ -1688,9 +1688,9 @@ declare const companyNdgSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.obj
|
|
|
1688
1688
|
companyNDGTake: string | null;
|
|
1689
1689
|
version?: "1.0.0" | undefined;
|
|
1690
1690
|
companyWow?: string | undefined;
|
|
1691
|
+
companyNdgTake?: string | undefined;
|
|
1691
1692
|
companyBestFit?: string[] | undefined;
|
|
1692
1693
|
companyInterests?: string[] | undefined;
|
|
1693
|
-
companyNdgTake?: string | undefined;
|
|
1694
1694
|
_type?: string | undefined;
|
|
1695
1695
|
}>;
|
|
1696
1696
|
declare const ngdMetadataSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
@@ -2881,16 +2881,16 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
2881
2881
|
type: string;
|
|
2882
2882
|
version: "1.0.0";
|
|
2883
2883
|
companyWow?: string | undefined;
|
|
2884
|
+
companyNdgTake?: string | undefined;
|
|
2884
2885
|
companyBestFit?: string[] | undefined;
|
|
2885
2886
|
companyInterests?: string[] | undefined;
|
|
2886
|
-
companyNdgTake?: string | undefined;
|
|
2887
2887
|
}, {
|
|
2888
2888
|
type: string;
|
|
2889
2889
|
version?: "1.0.0" | undefined;
|
|
2890
2890
|
companyWow?: string | undefined;
|
|
2891
|
+
companyNdgTake?: string | undefined;
|
|
2891
2892
|
companyBestFit?: string[] | undefined;
|
|
2892
2893
|
companyInterests?: string[] | undefined;
|
|
2893
|
-
companyNdgTake?: string | undefined;
|
|
2894
2894
|
}>>;
|
|
2895
2895
|
foundingInfo: z.ZodOptional<z.ZodObject<{
|
|
2896
2896
|
version: z.ZodDefault<z.ZodLiteral<"1.0.0">>;
|
|
@@ -4169,26 +4169,26 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
4169
4169
|
companyNDGTake: z.ZodNullable<z.ZodString>;
|
|
4170
4170
|
}>, "type">, "strict", z.ZodTypeAny, {
|
|
4171
4171
|
version: "1.0.0";
|
|
4172
|
-
companyNDGTake: string | null;
|
|
4173
4172
|
_type: string;
|
|
4173
|
+
companyNDGTake: string | null;
|
|
4174
4174
|
companyWow?: string | undefined;
|
|
4175
|
+
companyNdgTake?: string | undefined;
|
|
4175
4176
|
companyBestFit?: string[] | undefined;
|
|
4176
4177
|
companyInterests?: string[] | undefined;
|
|
4177
|
-
companyNdgTake?: string | undefined;
|
|
4178
4178
|
}, {
|
|
4179
4179
|
companyNDGTake: string | null;
|
|
4180
4180
|
version?: "1.0.0" | undefined;
|
|
4181
4181
|
companyWow?: string | undefined;
|
|
4182
|
+
companyNdgTake?: string | undefined;
|
|
4182
4183
|
companyBestFit?: string[] | undefined;
|
|
4183
4184
|
companyInterests?: string[] | undefined;
|
|
4184
|
-
companyNdgTake?: string | undefined;
|
|
4185
4185
|
_type?: string | undefined;
|
|
4186
4186
|
}>, {
|
|
4187
4187
|
type: string;
|
|
4188
4188
|
companyNdgTake: string | null;
|
|
4189
4189
|
version: "1.0.0";
|
|
4190
|
-
companyNDGTake: string | null;
|
|
4191
4190
|
_type: string;
|
|
4191
|
+
companyNDGTake: string | null;
|
|
4192
4192
|
companyWow?: string | undefined;
|
|
4193
4193
|
companyBestFit?: string[] | undefined;
|
|
4194
4194
|
companyInterests?: string[] | undefined;
|
|
@@ -4196,9 +4196,9 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
4196
4196
|
companyNDGTake: string | null;
|
|
4197
4197
|
version?: "1.0.0" | undefined;
|
|
4198
4198
|
companyWow?: string | undefined;
|
|
4199
|
+
companyNdgTake?: string | undefined;
|
|
4199
4200
|
companyBestFit?: string[] | undefined;
|
|
4200
4201
|
companyInterests?: string[] | undefined;
|
|
4201
|
-
companyNdgTake?: string | undefined;
|
|
4202
4202
|
_type?: string | undefined;
|
|
4203
4203
|
}>, {
|
|
4204
4204
|
type: string;
|
|
@@ -4211,9 +4211,9 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
4211
4211
|
companyNDGTake: string | null;
|
|
4212
4212
|
version?: "1.0.0" | undefined;
|
|
4213
4213
|
companyWow?: string | undefined;
|
|
4214
|
+
companyNdgTake?: string | undefined;
|
|
4214
4215
|
companyBestFit?: string[] | undefined;
|
|
4215
4216
|
companyInterests?: string[] | undefined;
|
|
4216
|
-
companyNdgTake?: string | undefined;
|
|
4217
4217
|
_type?: string | undefined;
|
|
4218
4218
|
}>>;
|
|
4219
4219
|
foundingInfo: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
@@ -6117,14 +6117,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6117
6117
|
companyHow?: string | undefined;
|
|
6118
6118
|
companyCulture?: string[] | undefined;
|
|
6119
6119
|
} | null;
|
|
6120
|
-
companyNDG: {
|
|
6121
|
-
type: string;
|
|
6122
|
-
companyNdgTake: string | null;
|
|
6123
|
-
version: "1.0.0";
|
|
6124
|
-
companyWow?: string | undefined;
|
|
6125
|
-
companyBestFit?: string[] | undefined;
|
|
6126
|
-
companyInterests?: string[] | undefined;
|
|
6127
|
-
} | null;
|
|
6128
6120
|
foundingInfo: {
|
|
6129
6121
|
type: string;
|
|
6130
6122
|
founders: {
|
|
@@ -6194,6 +6186,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6194
6186
|
foundedCity?: string | undefined;
|
|
6195
6187
|
} | null;
|
|
6196
6188
|
_type: string;
|
|
6189
|
+
companyNDG: {
|
|
6190
|
+
type: string;
|
|
6191
|
+
companyNdgTake: string | null;
|
|
6192
|
+
version: "1.0.0";
|
|
6193
|
+
companyWow?: string | undefined;
|
|
6194
|
+
companyBestFit?: string[] | undefined;
|
|
6195
|
+
companyInterests?: string[] | undefined;
|
|
6196
|
+
} | null;
|
|
6197
6197
|
ndgMetadata: {
|
|
6198
6198
|
type: string;
|
|
6199
6199
|
version: "1.0.0";
|
|
@@ -6215,6 +6215,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6215
6215
|
}[] | undefined;
|
|
6216
6216
|
companyWebsite?: string | undefined;
|
|
6217
6217
|
brandColor?: string | undefined;
|
|
6218
|
+
companyNdg?: {
|
|
6219
|
+
type: string;
|
|
6220
|
+
version: "1.0.0";
|
|
6221
|
+
companyWow?: string | undefined;
|
|
6222
|
+
companyNdgTake?: string | undefined;
|
|
6223
|
+
companyBestFit?: string[] | undefined;
|
|
6224
|
+
companyInterests?: string[] | undefined;
|
|
6225
|
+
} | undefined;
|
|
6218
6226
|
headquartersLocation?: {
|
|
6219
6227
|
version: "1.0.0";
|
|
6220
6228
|
address?: {
|
|
@@ -6244,14 +6252,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6244
6252
|
uniqueRunId?: string | undefined;
|
|
6245
6253
|
postProcessorUniqueRunId?: string | undefined;
|
|
6246
6254
|
} | undefined;
|
|
6247
|
-
companyNdg?: {
|
|
6248
|
-
type: string;
|
|
6249
|
-
version: "1.0.0";
|
|
6250
|
-
companyWow?: string | undefined;
|
|
6251
|
-
companyBestFit?: string[] | undefined;
|
|
6252
|
-
companyInterests?: string[] | undefined;
|
|
6253
|
-
companyNdgTake?: string | undefined;
|
|
6254
|
-
} | undefined;
|
|
6255
6255
|
logoImageURL?: string | undefined;
|
|
6256
6256
|
industryList?: {
|
|
6257
6257
|
_ref: string;
|
|
@@ -6344,15 +6344,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6344
6344
|
companyCulture?: string[] | undefined;
|
|
6345
6345
|
_type?: string | undefined;
|
|
6346
6346
|
} | null;
|
|
6347
|
-
companyNDG: {
|
|
6348
|
-
companyNDGTake: string | null;
|
|
6349
|
-
version?: "1.0.0" | undefined;
|
|
6350
|
-
companyWow?: string | undefined;
|
|
6351
|
-
companyBestFit?: string[] | undefined;
|
|
6352
|
-
companyInterests?: string[] | undefined;
|
|
6353
|
-
companyNdgTake?: string | undefined;
|
|
6354
|
-
_type?: string | undefined;
|
|
6355
|
-
} | null;
|
|
6356
6347
|
foundingInfo: {
|
|
6357
6348
|
version?: "1.0.0" | undefined;
|
|
6358
6349
|
foundedDate?: string | undefined;
|
|
@@ -6482,6 +6473,15 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6482
6473
|
_key?: string | undefined;
|
|
6483
6474
|
}[] | null | undefined;
|
|
6484
6475
|
} | null;
|
|
6476
|
+
companyNDG: {
|
|
6477
|
+
companyNDGTake: string | null;
|
|
6478
|
+
version?: "1.0.0" | undefined;
|
|
6479
|
+
companyWow?: string | undefined;
|
|
6480
|
+
companyNdgTake?: string | undefined;
|
|
6481
|
+
companyBestFit?: string[] | undefined;
|
|
6482
|
+
companyInterests?: string[] | undefined;
|
|
6483
|
+
_type?: string | undefined;
|
|
6484
|
+
} | null;
|
|
6485
6485
|
ndgMetadata: {
|
|
6486
6486
|
version?: "1.0.0" | undefined;
|
|
6487
6487
|
lastScraped?: string | undefined;
|
|
@@ -6504,6 +6504,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6504
6504
|
}[] | undefined;
|
|
6505
6505
|
companyWebsite?: string | undefined;
|
|
6506
6506
|
brandColor?: string | undefined;
|
|
6507
|
+
companyNdg?: {
|
|
6508
|
+
type: string;
|
|
6509
|
+
version?: "1.0.0" | undefined;
|
|
6510
|
+
companyWow?: string | undefined;
|
|
6511
|
+
companyNdgTake?: string | undefined;
|
|
6512
|
+
companyBestFit?: string[] | undefined;
|
|
6513
|
+
companyInterests?: string[] | undefined;
|
|
6514
|
+
} | undefined;
|
|
6507
6515
|
headquartersLocation?: {
|
|
6508
6516
|
address?: {
|
|
6509
6517
|
type: string;
|
|
@@ -6533,14 +6541,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6533
6541
|
postProcessorUniqueRunId?: string | undefined;
|
|
6534
6542
|
isScrapeManaged?: boolean | undefined;
|
|
6535
6543
|
} | undefined;
|
|
6536
|
-
companyNdg?: {
|
|
6537
|
-
type: string;
|
|
6538
|
-
version?: "1.0.0" | undefined;
|
|
6539
|
-
companyWow?: string | undefined;
|
|
6540
|
-
companyBestFit?: string[] | undefined;
|
|
6541
|
-
companyInterests?: string[] | undefined;
|
|
6542
|
-
companyNdgTake?: string | undefined;
|
|
6543
|
-
} | undefined;
|
|
6544
6544
|
_type?: string | undefined;
|
|
6545
6545
|
logoImageURL?: string | undefined;
|
|
6546
6546
|
industryList?: {
|
|
@@ -6640,14 +6640,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6640
6640
|
companyHow?: string | undefined;
|
|
6641
6641
|
companyCulture?: string[] | undefined;
|
|
6642
6642
|
} | null;
|
|
6643
|
-
companyNDG: {
|
|
6644
|
-
type: string;
|
|
6645
|
-
companyNdgTake: string | null;
|
|
6646
|
-
version: "1.0.0";
|
|
6647
|
-
companyWow?: string | undefined;
|
|
6648
|
-
companyBestFit?: string[] | undefined;
|
|
6649
|
-
companyInterests?: string[] | undefined;
|
|
6650
|
-
} | null;
|
|
6651
6643
|
foundingInfo: {
|
|
6652
6644
|
type: string;
|
|
6653
6645
|
founders: {
|
|
@@ -6717,6 +6709,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6717
6709
|
foundedCity?: string | undefined;
|
|
6718
6710
|
} | null;
|
|
6719
6711
|
_type: string;
|
|
6712
|
+
companyNDG: {
|
|
6713
|
+
type: string;
|
|
6714
|
+
companyNdgTake: string | null;
|
|
6715
|
+
version: "1.0.0";
|
|
6716
|
+
companyWow?: string | undefined;
|
|
6717
|
+
companyBestFit?: string[] | undefined;
|
|
6718
|
+
companyInterests?: string[] | undefined;
|
|
6719
|
+
} | null;
|
|
6720
6720
|
ndgMetadata: {
|
|
6721
6721
|
type: string;
|
|
6722
6722
|
version: "1.0.0";
|
|
@@ -6738,6 +6738,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6738
6738
|
}[] | undefined;
|
|
6739
6739
|
companyWebsite?: string | undefined;
|
|
6740
6740
|
brandColor?: string | undefined;
|
|
6741
|
+
companyNdg?: {
|
|
6742
|
+
type: string;
|
|
6743
|
+
version: "1.0.0";
|
|
6744
|
+
companyWow?: string | undefined;
|
|
6745
|
+
companyNdgTake?: string | undefined;
|
|
6746
|
+
companyBestFit?: string[] | undefined;
|
|
6747
|
+
companyInterests?: string[] | undefined;
|
|
6748
|
+
} | undefined;
|
|
6741
6749
|
headquartersLocation?: {
|
|
6742
6750
|
version: "1.0.0";
|
|
6743
6751
|
address?: {
|
|
@@ -6767,14 +6775,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6767
6775
|
uniqueRunId?: string | undefined;
|
|
6768
6776
|
postProcessorUniqueRunId?: string | undefined;
|
|
6769
6777
|
} | undefined;
|
|
6770
|
-
companyNdg?: {
|
|
6771
|
-
type: string;
|
|
6772
|
-
version: "1.0.0";
|
|
6773
|
-
companyWow?: string | undefined;
|
|
6774
|
-
companyBestFit?: string[] | undefined;
|
|
6775
|
-
companyInterests?: string[] | undefined;
|
|
6776
|
-
companyNdgTake?: string | undefined;
|
|
6777
|
-
} | undefined;
|
|
6778
6778
|
logoImageURL?: string | undefined;
|
|
6779
6779
|
industryList?: {
|
|
6780
6780
|
_ref: string;
|
|
@@ -6867,15 +6867,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
6867
6867
|
companyCulture?: string[] | undefined;
|
|
6868
6868
|
_type?: string | undefined;
|
|
6869
6869
|
} | null;
|
|
6870
|
-
companyNDG: {
|
|
6871
|
-
companyNDGTake: string | null;
|
|
6872
|
-
version?: "1.0.0" | undefined;
|
|
6873
|
-
companyWow?: string | undefined;
|
|
6874
|
-
companyBestFit?: string[] | undefined;
|
|
6875
|
-
companyInterests?: string[] | undefined;
|
|
6876
|
-
companyNdgTake?: string | undefined;
|
|
6877
|
-
_type?: string | undefined;
|
|
6878
|
-
} | null;
|
|
6879
6870
|
foundingInfo: {
|
|
6880
6871
|
version?: "1.0.0" | undefined;
|
|
6881
6872
|
foundedDate?: string | undefined;
|
|
@@ -7005,6 +6996,15 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7005
6996
|
_key?: string | undefined;
|
|
7006
6997
|
}[] | null | undefined;
|
|
7007
6998
|
} | null;
|
|
6999
|
+
companyNDG: {
|
|
7000
|
+
companyNDGTake: string | null;
|
|
7001
|
+
version?: "1.0.0" | undefined;
|
|
7002
|
+
companyWow?: string | undefined;
|
|
7003
|
+
companyNdgTake?: string | undefined;
|
|
7004
|
+
companyBestFit?: string[] | undefined;
|
|
7005
|
+
companyInterests?: string[] | undefined;
|
|
7006
|
+
_type?: string | undefined;
|
|
7007
|
+
} | null;
|
|
7008
7008
|
ndgMetadata: {
|
|
7009
7009
|
version?: "1.0.0" | undefined;
|
|
7010
7010
|
lastScraped?: string | undefined;
|
|
@@ -7027,6 +7027,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7027
7027
|
}[] | undefined;
|
|
7028
7028
|
companyWebsite?: string | undefined;
|
|
7029
7029
|
brandColor?: string | undefined;
|
|
7030
|
+
companyNdg?: {
|
|
7031
|
+
type: string;
|
|
7032
|
+
version?: "1.0.0" | undefined;
|
|
7033
|
+
companyWow?: string | undefined;
|
|
7034
|
+
companyNdgTake?: string | undefined;
|
|
7035
|
+
companyBestFit?: string[] | undefined;
|
|
7036
|
+
companyInterests?: string[] | undefined;
|
|
7037
|
+
} | undefined;
|
|
7030
7038
|
headquartersLocation?: {
|
|
7031
7039
|
address?: {
|
|
7032
7040
|
type: string;
|
|
@@ -7056,14 +7064,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7056
7064
|
postProcessorUniqueRunId?: string | undefined;
|
|
7057
7065
|
isScrapeManaged?: boolean | undefined;
|
|
7058
7066
|
} | undefined;
|
|
7059
|
-
companyNdg?: {
|
|
7060
|
-
type: string;
|
|
7061
|
-
version?: "1.0.0" | undefined;
|
|
7062
|
-
companyWow?: string | undefined;
|
|
7063
|
-
companyBestFit?: string[] | undefined;
|
|
7064
|
-
companyInterests?: string[] | undefined;
|
|
7065
|
-
companyNdgTake?: string | undefined;
|
|
7066
|
-
} | undefined;
|
|
7067
7067
|
_type?: string | undefined;
|
|
7068
7068
|
logoImageURL?: string | undefined;
|
|
7069
7069
|
industryList?: {
|
|
@@ -7163,14 +7163,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7163
7163
|
companyHow?: string | undefined;
|
|
7164
7164
|
companyCulture?: string[] | undefined;
|
|
7165
7165
|
} | null;
|
|
7166
|
-
companyNDG: {
|
|
7167
|
-
type: string;
|
|
7168
|
-
companyNdgTake: string | null;
|
|
7169
|
-
version: "1.0.0";
|
|
7170
|
-
companyWow?: string | undefined;
|
|
7171
|
-
companyBestFit?: string[] | undefined;
|
|
7172
|
-
companyInterests?: string[] | undefined;
|
|
7173
|
-
} | null;
|
|
7174
7166
|
foundingInfo: {
|
|
7175
7167
|
type: string;
|
|
7176
7168
|
founders: {
|
|
@@ -7239,6 +7231,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7239
7231
|
foundedCountry?: string | undefined;
|
|
7240
7232
|
foundedCity?: string | undefined;
|
|
7241
7233
|
} | null;
|
|
7234
|
+
companyNDG: {
|
|
7235
|
+
type: string;
|
|
7236
|
+
companyNdgTake: string | null;
|
|
7237
|
+
version: "1.0.0";
|
|
7238
|
+
companyWow?: string | undefined;
|
|
7239
|
+
companyBestFit?: string[] | undefined;
|
|
7240
|
+
companyInterests?: string[] | undefined;
|
|
7241
|
+
} | null;
|
|
7242
7242
|
ndgMetadata: {
|
|
7243
7243
|
type: string;
|
|
7244
7244
|
version: "1.0.0";
|
|
@@ -7256,6 +7256,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7256
7256
|
}[] | undefined;
|
|
7257
7257
|
companyWebsite?: string | undefined;
|
|
7258
7258
|
brandColor?: string | undefined;
|
|
7259
|
+
companyNdg?: {
|
|
7260
|
+
type: string;
|
|
7261
|
+
version: "1.0.0";
|
|
7262
|
+
companyWow?: string | undefined;
|
|
7263
|
+
companyNdgTake?: string | undefined;
|
|
7264
|
+
companyBestFit?: string[] | undefined;
|
|
7265
|
+
companyInterests?: string[] | undefined;
|
|
7266
|
+
} | undefined;
|
|
7259
7267
|
headquartersLocation?: {
|
|
7260
7268
|
version: "1.0.0";
|
|
7261
7269
|
address?: {
|
|
@@ -7285,14 +7293,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7285
7293
|
uniqueRunId?: string | undefined;
|
|
7286
7294
|
postProcessorUniqueRunId?: string | undefined;
|
|
7287
7295
|
} | undefined;
|
|
7288
|
-
companyNdg?: {
|
|
7289
|
-
type: string;
|
|
7290
|
-
version: "1.0.0";
|
|
7291
|
-
companyWow?: string | undefined;
|
|
7292
|
-
companyBestFit?: string[] | undefined;
|
|
7293
|
-
companyInterests?: string[] | undefined;
|
|
7294
|
-
companyNdgTake?: string | undefined;
|
|
7295
|
-
} | undefined;
|
|
7296
7296
|
logoImageURL?: string | undefined;
|
|
7297
7297
|
industryList?: {
|
|
7298
7298
|
_ref: string;
|
|
@@ -7385,15 +7385,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7385
7385
|
companyCulture?: string[] | undefined;
|
|
7386
7386
|
_type?: string | undefined;
|
|
7387
7387
|
} | null;
|
|
7388
|
-
companyNDG: {
|
|
7389
|
-
companyNDGTake: string | null;
|
|
7390
|
-
version?: "1.0.0" | undefined;
|
|
7391
|
-
companyWow?: string | undefined;
|
|
7392
|
-
companyBestFit?: string[] | undefined;
|
|
7393
|
-
companyInterests?: string[] | undefined;
|
|
7394
|
-
companyNdgTake?: string | undefined;
|
|
7395
|
-
_type?: string | undefined;
|
|
7396
|
-
} | null;
|
|
7397
7388
|
foundingInfo: {
|
|
7398
7389
|
version?: "1.0.0" | undefined;
|
|
7399
7390
|
foundedDate?: string | undefined;
|
|
@@ -7523,6 +7514,15 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7523
7514
|
_key?: string | undefined;
|
|
7524
7515
|
}[] | null | undefined;
|
|
7525
7516
|
} | null;
|
|
7517
|
+
companyNDG: {
|
|
7518
|
+
companyNDGTake: string | null;
|
|
7519
|
+
version?: "1.0.0" | undefined;
|
|
7520
|
+
companyWow?: string | undefined;
|
|
7521
|
+
companyNdgTake?: string | undefined;
|
|
7522
|
+
companyBestFit?: string[] | undefined;
|
|
7523
|
+
companyInterests?: string[] | undefined;
|
|
7524
|
+
_type?: string | undefined;
|
|
7525
|
+
} | null;
|
|
7526
7526
|
ndgMetadata: {
|
|
7527
7527
|
version?: "1.0.0" | undefined;
|
|
7528
7528
|
lastScraped?: string | undefined;
|
|
@@ -7545,6 +7545,14 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7545
7545
|
}[] | undefined;
|
|
7546
7546
|
companyWebsite?: string | undefined;
|
|
7547
7547
|
brandColor?: string | undefined;
|
|
7548
|
+
companyNdg?: {
|
|
7549
|
+
type: string;
|
|
7550
|
+
version?: "1.0.0" | undefined;
|
|
7551
|
+
companyWow?: string | undefined;
|
|
7552
|
+
companyNdgTake?: string | undefined;
|
|
7553
|
+
companyBestFit?: string[] | undefined;
|
|
7554
|
+
companyInterests?: string[] | undefined;
|
|
7555
|
+
} | undefined;
|
|
7548
7556
|
headquartersLocation?: {
|
|
7549
7557
|
address?: {
|
|
7550
7558
|
type: string;
|
|
@@ -7574,14 +7582,6 @@ declare const companySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<Omit<z.object
|
|
|
7574
7582
|
postProcessorUniqueRunId?: string | undefined;
|
|
7575
7583
|
isScrapeManaged?: boolean | undefined;
|
|
7576
7584
|
} | undefined;
|
|
7577
|
-
companyNdg?: {
|
|
7578
|
-
type: string;
|
|
7579
|
-
version?: "1.0.0" | undefined;
|
|
7580
|
-
companyWow?: string | undefined;
|
|
7581
|
-
companyBestFit?: string[] | undefined;
|
|
7582
|
-
companyInterests?: string[] | undefined;
|
|
7583
|
-
companyNdgTake?: string | undefined;
|
|
7584
|
-
} | undefined;
|
|
7585
7585
|
_type?: string | undefined;
|
|
7586
7586
|
logoImageURL?: string | undefined;
|
|
7587
7587
|
industryList?: {
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
JobLocation: () => JobLocation
|
|
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 text-nowrap 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
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
JobLocation
|
|
87
|
+
});
|
|
88
|
+
//# 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\nexport type JobLocationProps = Readonly<{\n mainLocation: string\n extendedLocations?: string[]\n}>\n\nexport function 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 text-nowrap 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","'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;AAHC,SAAS,YAAY,EAAE,cAAc,kBAAkB,GAAqB;AACjF,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,6HAA4H;AAAA;AAAA,QACtI,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;","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, type JobLocationProps };
|
|
@@ -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, type JobLocationProps };
|
|
@@ -0,0 +1,53 @@
|
|
|
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 text-nowrap 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
|
+
export {
|
|
51
|
+
JobLocation
|
|
52
|
+
};
|
|
53
|
+
//# 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\nexport type JobLocationProps = Readonly<{\n mainLocation: string\n extendedLocations?: string[]\n}>\n\nexport function 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 text-nowrap 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","'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;AAHC,SAAS,YAAY,EAAE,cAAc,kBAAkB,GAAqB;AACjF,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,6HAA4H;AAAA;AAAA,QACtI,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;","names":["jsx"]}
|