@next-degree/pickle-shared-js 0.13.1 → 0.13.5
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/chunk-2FGZQI42.js +11 -0
- package/dist/chunk-2FGZQI42.js.map +1 -0
- package/dist/chunk-2I2TWTPC.js +115 -0
- package/dist/chunk-2I2TWTPC.js.map +1 -0
- package/dist/chunk-2TEFWPFS.js +34 -0
- package/dist/chunk-2TEFWPFS.js.map +1 -0
- package/dist/chunk-2YUUVN7E.cjs +37 -0
- package/dist/chunk-2YUUVN7E.cjs.map +1 -0
- package/dist/chunk-3FQTSGHL.cjs +90 -0
- package/dist/chunk-3FQTSGHL.cjs.map +1 -0
- package/dist/chunk-3HO3CCXD.js +44 -0
- package/dist/chunk-3HO3CCXD.js.map +1 -0
- package/dist/chunk-3NDL2JQ7.js +81 -0
- package/dist/chunk-3NDL2JQ7.js.map +1 -0
- package/dist/chunk-3PARXYUI.cjs +86 -0
- package/dist/chunk-3PARXYUI.cjs.map +1 -0
- package/dist/chunk-46HHHYSV.cjs +30 -0
- package/dist/chunk-46HHHYSV.cjs.map +1 -0
- package/dist/chunk-46SPIPCF.cjs +54 -0
- package/dist/chunk-46SPIPCF.cjs.map +1 -0
- package/dist/chunk-47H3M7TP.js +72 -0
- package/dist/chunk-47H3M7TP.js.map +1 -0
- package/dist/chunk-4IMEF4J5.cjs +58 -0
- package/dist/chunk-4IMEF4J5.cjs.map +1 -0
- package/dist/chunk-4JSV7KA3.cjs +43 -0
- package/dist/chunk-4JSV7KA3.cjs.map +1 -0
- package/dist/chunk-4LUPQO4R.cjs +16 -0
- package/dist/chunk-4LUPQO4R.cjs.map +1 -0
- package/dist/chunk-4NEPWF3Z.js +152 -0
- package/dist/chunk-4NEPWF3Z.js.map +1 -0
- package/dist/chunk-4RVGUZNF.js +72 -0
- package/dist/chunk-4RVGUZNF.js.map +1 -0
- package/dist/chunk-4VYXUFJA.js +72 -0
- package/dist/chunk-4VYXUFJA.js.map +1 -0
- package/dist/chunk-53OQ6M2O.js +25 -0
- package/dist/chunk-53OQ6M2O.js.map +1 -0
- package/dist/chunk-5H35ZVLR.js +43 -0
- package/dist/chunk-5H35ZVLR.js.map +1 -0
- package/dist/chunk-5LMIRRED.js +59 -0
- package/dist/chunk-5LMIRRED.js.map +1 -0
- package/dist/chunk-5NQTYPZG.js +14 -0
- package/dist/chunk-5NQTYPZG.js.map +1 -0
- package/dist/chunk-5QXQ2LBB.cjs +4 -0
- package/dist/chunk-5QXQ2LBB.cjs.map +1 -0
- package/dist/chunk-5REFGTWO.js +87 -0
- package/dist/chunk-5REFGTWO.js.map +1 -0
- package/dist/chunk-5RH3VTNV.js +81 -0
- package/dist/chunk-5RH3VTNV.js.map +1 -0
- package/dist/chunk-5Z4ILTRD.js +48 -0
- package/dist/chunk-5Z4ILTRD.js.map +1 -0
- package/dist/chunk-62OBBM7T.js +95 -0
- package/dist/chunk-62OBBM7T.js.map +1 -0
- package/dist/chunk-6BFFHI2V.cjs +33 -0
- package/dist/chunk-6BFFHI2V.cjs.map +1 -0
- package/dist/chunk-6EW2D7K7.cjs +51 -0
- package/dist/chunk-6EW2D7K7.cjs.map +1 -0
- package/dist/chunk-6V7WZMBZ.cjs +83 -0
- package/dist/chunk-6V7WZMBZ.cjs.map +1 -0
- package/dist/chunk-AB3775NI.cjs +93 -0
- package/dist/chunk-AB3775NI.cjs.map +1 -0
- package/dist/chunk-AEYPJ5YA.cjs +51 -0
- package/dist/chunk-AEYPJ5YA.cjs.map +1 -0
- package/dist/chunk-AMNEAWA7.cjs +59 -0
- package/dist/chunk-AMNEAWA7.cjs.map +1 -0
- package/dist/chunk-APHLSON7.cjs +29 -0
- package/dist/chunk-APHLSON7.cjs.map +1 -0
- package/dist/chunk-B7NHA4GE.js +33 -0
- package/dist/chunk-B7NHA4GE.js.map +1 -0
- package/dist/chunk-BJT6JTXX.js +49 -0
- package/dist/chunk-BJT6JTXX.js.map +1 -0
- package/dist/chunk-BLMWXMW4.js +14 -0
- package/dist/chunk-BLMWXMW4.js.map +1 -0
- package/dist/chunk-C3DCFPJC.cjs +125 -0
- package/dist/chunk-C3DCFPJC.cjs.map +1 -0
- package/dist/chunk-C63PYADW.cjs +115 -0
- package/dist/chunk-C63PYADW.cjs.map +1 -0
- package/dist/chunk-CAGLLWPR.js +33 -0
- package/dist/chunk-CAGLLWPR.js.map +1 -0
- package/dist/chunk-CPZFINPG.js +37 -0
- package/dist/chunk-CPZFINPG.js.map +1 -0
- package/dist/chunk-CQSYXCIU.cjs +221 -0
- package/dist/chunk-CQSYXCIU.cjs.map +1 -0
- package/dist/chunk-CTR2QSI6.js +121 -0
- package/dist/chunk-CTR2QSI6.js.map +1 -0
- package/dist/chunk-CWTO3NXW.js +12 -0
- package/dist/chunk-CWTO3NXW.js.map +1 -0
- package/dist/chunk-DMNSL52U.cjs +160 -0
- package/dist/chunk-DMNSL52U.cjs.map +1 -0
- package/dist/chunk-DU5OQA67.cjs +49 -0
- package/dist/chunk-DU5OQA67.cjs.map +1 -0
- package/dist/chunk-DURKKV2E.js +52 -0
- package/dist/chunk-DURKKV2E.js.map +1 -0
- package/dist/chunk-DUVGFEGU.js +149 -0
- package/dist/chunk-DUVGFEGU.js.map +1 -0
- package/dist/chunk-DWB5TTR6.cjs +55 -0
- package/dist/chunk-DWB5TTR6.cjs.map +1 -0
- package/dist/chunk-DXLVRZFU.js +21 -0
- package/dist/chunk-DXLVRZFU.js.map +1 -0
- package/dist/chunk-EAFZZSYR.js +69 -0
- package/dist/chunk-EAFZZSYR.js.map +1 -0
- package/dist/chunk-EBKY3MJH.cjs +72 -0
- package/dist/chunk-EBKY3MJH.cjs.map +1 -0
- package/dist/chunk-EBOIU23Q.cjs +137 -0
- package/dist/chunk-EBOIU23Q.cjs.map +1 -0
- package/dist/chunk-EBZRXX6P.js +41 -0
- package/dist/chunk-EBZRXX6P.js.map +1 -0
- package/dist/chunk-EWFDWOL2.js +27 -0
- package/dist/chunk-EWFDWOL2.js.map +1 -0
- package/dist/chunk-F3FYMCRO.js +52 -0
- package/dist/chunk-F3FYMCRO.js.map +1 -0
- package/dist/chunk-FNCPK4RH.js +24 -0
- package/dist/chunk-FNCPK4RH.js.map +1 -0
- package/dist/chunk-FOJTLQJO.js +152 -0
- package/dist/chunk-FOJTLQJO.js.map +1 -0
- package/dist/chunk-FSMBDLNU.js +34 -0
- package/dist/chunk-FSMBDLNU.js.map +1 -0
- package/dist/chunk-FVJL3PEK.js +40 -0
- package/dist/chunk-FVJL3PEK.js.map +1 -0
- package/dist/chunk-GAN7Z4NB.js +93 -0
- package/dist/chunk-GAN7Z4NB.js.map +1 -0
- package/dist/chunk-GN3JZCM3.cjs +99 -0
- package/dist/chunk-GN3JZCM3.cjs.map +1 -0
- package/dist/chunk-GQNVPLSG.cjs +44 -0
- package/dist/chunk-GQNVPLSG.cjs.map +1 -0
- package/dist/chunk-GZUD5PBL.js +219 -0
- package/dist/chunk-GZUD5PBL.js.map +1 -0
- package/dist/chunk-HD3VN7GE.cjs +37 -0
- package/dist/chunk-HD3VN7GE.cjs.map +1 -0
- package/dist/chunk-HVZBUDYS.js +51 -0
- package/dist/chunk-HVZBUDYS.js.map +1 -0
- package/dist/chunk-I46VZAK7.cjs +65 -0
- package/dist/chunk-I46VZAK7.cjs.map +1 -0
- package/dist/chunk-I4H7XREK.js +91 -0
- package/dist/chunk-I4H7XREK.js.map +1 -0
- package/dist/chunk-I5FAUNN6.js +48 -0
- package/dist/chunk-I5FAUNN6.js.map +1 -0
- package/dist/chunk-IHWVGIDT.cjs +86 -0
- package/dist/chunk-IHWVGIDT.cjs.map +1 -0
- package/dist/chunk-IJQTUD3D.js +35 -0
- package/dist/chunk-IJQTUD3D.js.map +1 -0
- package/dist/chunk-IMAHT6W4.cjs +65 -0
- package/dist/chunk-IMAHT6W4.cjs.map +1 -0
- package/dist/chunk-IVPCYGXE.cjs +20 -0
- package/dist/chunk-IVPCYGXE.cjs.map +1 -0
- package/dist/chunk-IX3GUXML.cjs +24 -0
- package/dist/chunk-IX3GUXML.cjs.map +1 -0
- package/dist/chunk-J3UEZGEG.js +53 -0
- package/dist/chunk-J3UEZGEG.js.map +1 -0
- package/dist/chunk-JZVRCP3M.cjs +411 -0
- package/dist/chunk-JZVRCP3M.cjs.map +1 -0
- package/dist/chunk-KWIGG26N.js +3 -0
- package/dist/chunk-KWIGG26N.js.map +1 -0
- package/dist/chunk-KZBS5RNE.js +41 -0
- package/dist/chunk-KZBS5RNE.js.map +1 -0
- package/dist/chunk-L4SZQQK6.cjs +171 -0
- package/dist/chunk-L4SZQQK6.cjs.map +1 -0
- package/dist/chunk-LQ4DG6ST.js +31 -0
- package/dist/chunk-LQ4DG6ST.js.map +1 -0
- package/dist/chunk-LQQ244AY.js +28 -0
- package/dist/chunk-LQQ244AY.js.map +1 -0
- package/dist/chunk-LT35HARQ.cjs +119 -0
- package/dist/chunk-LT35HARQ.cjs.map +1 -0
- package/dist/chunk-LTJXX7NG.cjs +14 -0
- package/dist/chunk-LTJXX7NG.cjs.map +1 -0
- package/dist/chunk-LUFPA3WC.cjs +93 -0
- package/dist/chunk-LUFPA3WC.cjs.map +1 -0
- package/dist/chunk-LV6BHE7Q.cjs +266 -0
- package/dist/chunk-LV6BHE7Q.cjs.map +1 -0
- package/dist/chunk-MF24QPA6.js +28 -0
- package/dist/chunk-MF24QPA6.js.map +1 -0
- package/dist/chunk-MGWZXPMF.cjs +13 -0
- package/dist/chunk-MGWZXPMF.cjs.map +1 -0
- package/dist/chunk-MPWBYIWU.cjs +50 -0
- package/dist/chunk-MPWBYIWU.cjs.map +1 -0
- package/dist/chunk-MTNMKBY6.cjs +123 -0
- package/dist/chunk-MTNMKBY6.cjs.map +1 -0
- package/dist/chunk-NLGWU2KI.cjs +36 -0
- package/dist/chunk-NLGWU2KI.cjs.map +1 -0
- package/dist/chunk-ODHIUBLC.js +25 -0
- package/dist/chunk-ODHIUBLC.js.map +1 -0
- package/dist/chunk-ORVF255B.cjs +55 -0
- package/dist/chunk-ORVF255B.cjs.map +1 -0
- package/dist/chunk-OXDKVZZ5.cjs +39 -0
- package/dist/chunk-OXDKVZZ5.cjs.map +1 -0
- package/dist/chunk-OZJZVEF2.js +35 -0
- package/dist/chunk-OZJZVEF2.js.map +1 -0
- package/dist/chunk-P6ZEOB4L.cjs +108 -0
- package/dist/chunk-P6ZEOB4L.cjs.map +1 -0
- package/dist/chunk-PAMM6ETE.js +52 -0
- package/dist/chunk-PAMM6ETE.js.map +1 -0
- package/dist/chunk-PCSQPFNK.js +198 -0
- package/dist/chunk-PCSQPFNK.js.map +1 -0
- package/dist/chunk-PLPEZUCB.js +42 -0
- package/dist/chunk-PLPEZUCB.js.map +1 -0
- package/dist/chunk-PONUWUJ7.js +29 -0
- package/dist/chunk-PONUWUJ7.js.map +1 -0
- package/dist/chunk-PSRWV7UW.cjs +50 -0
- package/dist/chunk-PSRWV7UW.cjs.map +1 -0
- package/dist/chunk-PTNATMEI.cjs +95 -0
- package/dist/chunk-PTNATMEI.cjs.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-QNVDG3L3.cjs +171 -0
- package/dist/chunk-QNVDG3L3.cjs.map +1 -0
- package/dist/chunk-QOYVMNQ6.cjs +13 -0
- package/dist/chunk-QOYVMNQ6.cjs.map +1 -0
- package/dist/chunk-QRMNGILI.cjs +16 -0
- package/dist/chunk-QRMNGILI.cjs.map +1 -0
- package/dist/chunk-QURNDLRE.js +55 -0
- package/dist/chunk-QURNDLRE.js.map +1 -0
- package/dist/chunk-RKLUMDJB.cjs +50 -0
- package/dist/chunk-RKLUMDJB.cjs.map +1 -0
- package/dist/chunk-SKMP4FO7.cjs +42 -0
- package/dist/chunk-SKMP4FO7.cjs.map +1 -0
- package/dist/chunk-SMDQTPJE.cjs +31 -0
- package/dist/chunk-SMDQTPJE.cjs.map +1 -0
- package/dist/chunk-SP2IO6PC.cjs +220 -0
- package/dist/chunk-SP2IO6PC.cjs.map +1 -0
- package/dist/chunk-SPAVM3EE.cjs +95 -0
- package/dist/chunk-SPAVM3EE.cjs.map +1 -0
- package/dist/chunk-SZ5XKNVG.js +11 -0
- package/dist/chunk-SZ5XKNVG.js.map +1 -0
- package/dist/chunk-TCV6N3EK.js +400 -0
- package/dist/chunk-TCV6N3EK.js.map +1 -0
- package/dist/chunk-TPZCCL4L.js +76 -0
- package/dist/chunk-TPZCCL4L.js.map +1 -0
- package/dist/chunk-TVYLTYUK.js +23 -0
- package/dist/chunk-TVYLTYUK.js.map +1 -0
- package/dist/chunk-U27VO642.js +117 -0
- package/dist/chunk-U27VO642.js.map +1 -0
- package/dist/chunk-U3D4LL6T.js +54 -0
- package/dist/chunk-U3D4LL6T.js.map +1 -0
- package/dist/chunk-U7LTIWUS.js +28 -0
- package/dist/chunk-U7LTIWUS.js.map +1 -0
- package/dist/chunk-UMVE26I5.cjs +61 -0
- package/dist/chunk-UMVE26I5.cjs.map +1 -0
- package/dist/chunk-UQT2I2CC.js +42 -0
- package/dist/chunk-UQT2I2CC.js.map +1 -0
- package/dist/chunk-UW6NEKBF.cjs +151 -0
- package/dist/chunk-UW6NEKBF.cjs.map +1 -0
- package/dist/chunk-UXROFDSM.cjs +33 -0
- package/dist/chunk-UXROFDSM.cjs.map +1 -0
- package/dist/chunk-V563IKQH.cjs +4 -0
- package/dist/chunk-V563IKQH.cjs.map +1 -0
- package/dist/chunk-VAHZQJTA.cjs +117 -0
- package/dist/chunk-VAHZQJTA.cjs.map +1 -0
- package/dist/chunk-VANX3AQD.js +3 -0
- package/dist/chunk-VANX3AQD.js.map +1 -0
- package/dist/chunk-VB32IBQC.cjs +54 -0
- package/dist/chunk-VB32IBQC.cjs.map +1 -0
- package/dist/chunk-W2UGL7QI.cjs +41 -0
- package/dist/chunk-W2UGL7QI.cjs.map +1 -0
- package/dist/chunk-W6BMYVY5.js +17 -0
- package/dist/chunk-W6BMYVY5.js.map +1 -0
- package/dist/chunk-WFQHWK6X.cjs +53 -0
- package/dist/chunk-WFQHWK6X.cjs.map +1 -0
- package/dist/chunk-XAPQTBJR.cjs +45 -0
- package/dist/chunk-XAPQTBJR.cjs.map +1 -0
- package/dist/chunk-XGQDWAHV.js +27 -0
- package/dist/chunk-XGQDWAHV.js.map +1 -0
- package/dist/chunk-XGQU7BQK.js +88 -0
- package/dist/chunk-XGQU7BQK.js.map +1 -0
- package/dist/chunk-XKLOANYB.cjs +57 -0
- package/dist/chunk-XKLOANYB.cjs.map +1 -0
- package/dist/chunk-XO6LO5CU.cjs +47 -0
- package/dist/chunk-XO6LO5CU.cjs.map +1 -0
- package/dist/chunk-XUTLQ573.cjs +20 -0
- package/dist/chunk-XUTLQ573.cjs.map +1 -0
- package/dist/chunk-XWQI5MC3.cjs +35 -0
- package/dist/chunk-XWQI5MC3.cjs.map +1 -0
- package/dist/chunk-Y2UMEYQS.js +115 -0
- package/dist/chunk-Y2UMEYQS.js.map +1 -0
- package/dist/chunk-YB2USB4M.js +17 -0
- package/dist/chunk-YB2USB4M.js.map +1 -0
- package/dist/chunk-YLWUHTOZ.js +154 -0
- package/dist/chunk-YLWUHTOZ.js.map +1 -0
- package/dist/chunk-YNREEZ75.cjs +26 -0
- package/dist/chunk-YNREEZ75.cjs.map +1 -0
- package/dist/chunk-Z33TWZHI.js +81 -0
- package/dist/chunk-Z33TWZHI.js.map +1 -0
- package/dist/chunk-ZCRWSWPJ.cjs +46 -0
- package/dist/chunk-ZCRWSWPJ.cjs.map +1 -0
- package/dist/chunk-ZQFFPZMA.cjs +74 -0
- package/dist/chunk-ZQFFPZMA.cjs.map +1 -0
- package/dist/chunk-ZSNEG5J7.js +263 -0
- package/dist/chunk-ZSNEG5J7.js.map +1 -0
- package/dist/{company_service_sanity-ByIKe90u.d.cts → company_service_sanity-Br0R7m-A.d.cts} +560 -560
- package/dist/{company_service_sanity-DbYwWmnS.d.ts → company_service_sanity-DF01qvTz.d.ts} +560 -560
- package/dist/components/buttons/BackButton.cjs +11 -153
- package/dist/components/buttons/BackButton.cjs.map +1 -1
- package/dist/components/buttons/BackButton.d.cts +2 -2
- package/dist/components/buttons/BackButton.d.ts +2 -2
- package/dist/components/buttons/BackButton.js +7 -134
- package/dist/components/buttons/BackButton.js.map +1 -1
- package/dist/components/company/CompanyBenefits.cjs +10 -31
- package/dist/components/company/CompanyBenefits.cjs.map +1 -1
- package/dist/components/company/CompanyBenefits.d.cts +2 -2
- package/dist/components/company/CompanyBenefits.d.ts +2 -2
- package/dist/components/company/CompanyBenefits.js +3 -8
- package/dist/components/company/CompanyBenefits.js.map +1 -1
- package/dist/components/company/CompanyInformation.cjs +9 -86
- package/dist/components/company/CompanyInformation.cjs.map +1 -1
- package/dist/components/company/CompanyInformation.d.cts +2 -2
- package/dist/components/company/CompanyInformation.d.ts +2 -2
- package/dist/components/company/CompanyInformation.js +4 -53
- package/dist/components/company/CompanyInformation.js.map +1 -1
- package/dist/components/company/CompanyTake.cjs +10 -122
- package/dist/components/company/CompanyTake.cjs.map +1 -1
- package/dist/components/company/CompanyTake.d.cts +2 -2
- package/dist/components/company/CompanyTake.d.ts +2 -2
- package/dist/components/company/CompanyTake.js +6 -91
- package/dist/components/company/CompanyTake.js.map +1 -1
- package/dist/components/jobCard/JobLocation.cjs +11 -151
- package/dist/components/jobCard/JobLocation.cjs.map +1 -1
- package/dist/components/jobCard/JobLocation.d.cts +3 -3
- package/dist/components/jobCard/JobLocation.d.ts +3 -3
- package/dist/components/jobCard/JobLocation.js +7 -121
- package/dist/components/jobCard/JobLocation.js.map +1 -1
- package/dist/components/jobPost/JobDescription.cjs +10 -347
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.d.cts +2 -2
- package/dist/components/jobPost/JobDescription.d.ts +2 -2
- package/dist/components/jobPost/JobDescription.js +6 -315
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobHeader.cjs +16 -406
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.d.cts +2 -2
- package/dist/components/jobPost/JobHeader.d.ts +2 -2
- package/dist/components/jobPost/JobHeader.js +12 -398
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +42 -1820
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +3 -3
- package/dist/components/jobPost/JobPost.d.ts +3 -3
- package/dist/components/jobPost/JobPost.js +33 -1812
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/avatar.cjs +17 -82
- package/dist/components/primitives/avatar.cjs.map +1 -1
- package/dist/components/primitives/avatar.js +4 -50
- package/dist/components/primitives/avatar.js.map +1 -1
- package/dist/components/primitives/command.cjs +41 -207
- package/dist/components/primitives/command.cjs.map +1 -1
- package/dist/components/primitives/command.d.cts +3 -2
- package/dist/components/primitives/command.d.ts +3 -2
- package/dist/components/primitives/command.js +5 -170
- package/dist/components/primitives/command.js.map +1 -1
- package/dist/components/primitives/dialog.cjs +45 -124
- package/dist/components/primitives/dialog.cjs.map +1 -1
- package/dist/components/primitives/dialog.d.cts +3 -2
- package/dist/components/primitives/dialog.d.ts +3 -2
- package/dist/components/primitives/dialog.js +4 -85
- package/dist/components/primitives/dialog.js.map +1 -1
- package/dist/components/primitives/input-otp.cjs +20 -90
- package/dist/components/primitives/input-otp.cjs.map +1 -1
- package/dist/components/primitives/input-otp.js +4 -58
- package/dist/components/primitives/input-otp.js.map +1 -1
- package/dist/components/primitives/popover.cjs +17 -67
- package/dist/components/primitives/popover.cjs.map +1 -1
- package/dist/components/primitives/popover.js +4 -35
- package/dist/components/primitives/popover.js.map +1 -1
- package/dist/components/primitives/radio-group.cjs +12 -64
- package/dist/components/primitives/radio-group.cjs.map +1 -1
- package/dist/components/primitives/radio-group.js +4 -36
- package/dist/components/primitives/radio-group.js.map +1 -1
- package/dist/components/primitives/separator.cjs +9 -62
- package/dist/components/primitives/separator.cjs.map +1 -1
- package/dist/components/primitives/separator.js +4 -32
- package/dist/components/primitives/separator.js.map +1 -1
- package/dist/components/primitives/tooltip.cjs +21 -69
- package/dist/components/primitives/tooltip.cjs.map +1 -1
- package/dist/components/primitives/tooltip.js +4 -36
- package/dist/components/primitives/tooltip.js.map +1 -1
- package/dist/components/ui/Avatar.cjs +12 -105
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.d.cts +3 -3
- package/dist/components/ui/Avatar.d.ts +3 -3
- package/dist/components/ui/Avatar.js +5 -75
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/Badge.cjs +12 -62
- package/dist/components/ui/Badge.cjs.map +1 -1
- package/dist/components/ui/Badge.d.cts +2 -1
- package/dist/components/ui/Badge.d.ts +2 -1
- package/dist/components/ui/Badge.js +4 -31
- package/dist/components/ui/Badge.js.map +1 -1
- package/dist/components/ui/Button.cjs +13 -299
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.js +4 -267
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +13 -109
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.js +5 -81
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +8 -59
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.cts +2 -1
- package/dist/components/ui/Chip.d.ts +2 -1
- package/dist/components/ui/Chip.js +3 -29
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/Combobox.cjs +22 -591
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.js +14 -560
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/Counter.cjs +11 -226
- package/dist/components/ui/Counter.cjs.map +1 -1
- package/dist/components/ui/Counter.js +7 -197
- package/dist/components/ui/Counter.js.map +1 -1
- package/dist/components/ui/DatePicker.cjs +14 -274
- package/dist/components/ui/DatePicker.cjs.map +1 -1
- package/dist/components/ui/DatePicker.js +10 -245
- package/dist/components/ui/DatePicker.js.map +1 -1
- package/dist/components/ui/DismissibleBanner.cjs +9 -77
- package/dist/components/ui/DismissibleBanner.cjs.map +1 -1
- package/dist/components/ui/DismissibleBanner.d.cts +2 -2
- package/dist/components/ui/DismissibleBanner.d.ts +2 -2
- package/dist/components/ui/DismissibleBanner.js +4 -56
- package/dist/components/ui/DismissibleBanner.js.map +1 -1
- package/dist/components/ui/ErrorMessage.cjs +7 -36
- package/dist/components/ui/ErrorMessage.cjs.map +1 -1
- package/dist/components/ui/ErrorMessage.d.cts +2 -2
- package/dist/components/ui/ErrorMessage.d.ts +2 -2
- package/dist/components/ui/ErrorMessage.js +4 -16
- package/dist/components/ui/ErrorMessage.js.map +1 -1
- package/dist/components/ui/Icon.cjs +9 -108
- package/dist/components/ui/Icon.cjs.map +1 -1
- package/dist/components/ui/Icon.js +4 -87
- package/dist/components/ui/Icon.js.map +1 -1
- package/dist/components/ui/Input.cjs +9 -186
- package/dist/components/ui/Input.cjs.map +1 -1
- package/dist/components/ui/Input.js +7 -159
- package/dist/components/ui/Input.js.map +1 -1
- package/dist/components/ui/InputOtp.cjs +12 -175
- package/dist/components/ui/InputOtp.cjs.map +1 -1
- package/dist/components/ui/InputOtp.js +8 -145
- package/dist/components/ui/InputOtp.js.map +1 -1
- package/dist/components/ui/Label.cjs +7 -79
- package/dist/components/ui/Label.cjs.map +1 -1
- package/dist/components/ui/Label.d.cts +2 -2
- package/dist/components/ui/Label.d.ts +2 -2
- package/dist/components/ui/Label.js +5 -52
- package/dist/components/ui/Label.js.map +1 -1
- package/dist/components/ui/LinkButton.cjs +10 -58
- package/dist/components/ui/LinkButton.cjs.map +1 -1
- package/dist/components/ui/LinkButton.d.cts +2 -1
- package/dist/components/ui/LinkButton.d.ts +2 -1
- package/dist/components/ui/LinkButton.js +3 -25
- package/dist/components/ui/LinkButton.js.map +1 -1
- package/dist/components/ui/ListItem.cjs +8 -150
- package/dist/components/ui/ListItem.cjs.map +1 -1
- package/dist/components/ui/ListItem.d.cts +2 -2
- package/dist/components/ui/ListItem.d.ts +2 -2
- package/dist/components/ui/ListItem.js +6 -125
- package/dist/components/ui/ListItem.js.map +1 -1
- package/dist/components/ui/Map/ClusterMarker.cjs +9 -74
- package/dist/components/ui/Map/ClusterMarker.cjs.map +1 -1
- package/dist/components/ui/Map/ClusterMarker.d.cts +2 -2
- package/dist/components/ui/Map/ClusterMarker.d.ts +2 -2
- package/dist/components/ui/Map/ClusterMarker.js +5 -55
- package/dist/components/ui/Map/ClusterMarker.js.map +1 -1
- package/dist/components/ui/Map/FocusCircle.cjs +9 -81
- package/dist/components/ui/Map/FocusCircle.cjs.map +1 -1
- package/dist/components/ui/Map/FocusCircle.js +4 -61
- package/dist/components/ui/Map/FocusCircle.js.map +1 -1
- package/dist/components/ui/Map/IndividualMarker.cjs +9 -55
- package/dist/components/ui/Map/IndividualMarker.cjs.map +1 -1
- package/dist/components/ui/Map/IndividualMarker.d.cts +2 -2
- package/dist/components/ui/Map/IndividualMarker.d.ts +2 -2
- package/dist/components/ui/Map/IndividualMarker.js +4 -35
- package/dist/components/ui/Map/IndividualMarker.js.map +1 -1
- package/dist/components/ui/Map/MapComponent.cjs +16 -395
- package/dist/components/ui/Map/MapComponent.cjs.map +1 -1
- package/dist/components/ui/Map/MapComponent.d.cts +2 -2
- package/dist/components/ui/Map/MapComponent.d.ts +2 -2
- package/dist/components/ui/Map/MapComponent.js +12 -366
- package/dist/components/ui/Map/MapComponent.js.map +1 -1
- package/dist/components/ui/Map/MapContent.cjs +13 -273
- package/dist/components/ui/Map/MapContent.cjs.map +1 -1
- package/dist/components/ui/Map/MapContent.d.cts +2 -2
- package/dist/components/ui/Map/MapContent.d.ts +2 -2
- package/dist/components/ui/Map/MapContent.js +9 -254
- package/dist/components/ui/Map/MapContent.js.map +1 -1
- package/dist/components/ui/Map/clustering.cjs +13 -99
- package/dist/components/ui/Map/clustering.cjs.map +1 -1
- package/dist/components/ui/Map/clustering.js +5 -76
- package/dist/components/ui/Map/clustering.js.map +1 -1
- package/dist/components/ui/Map/constants.cjs +33 -61
- package/dist/components/ui/Map/constants.cjs.map +1 -1
- package/dist/components/ui/Map/constants.js +3 -33
- package/dist/components/ui/Map/constants.js.map +1 -1
- package/dist/components/ui/Map/hooks.cjs +18 -90
- package/dist/components/ui/Map/hooks.cjs.map +1 -1
- package/dist/components/ui/Map/hooks.js +6 -58
- package/dist/components/ui/Map/hooks.js.map +1 -1
- package/dist/components/ui/Map/index.cjs +21 -400
- package/dist/components/ui/Map/index.cjs.map +1 -1
- package/dist/components/ui/Map/index.d.cts +1 -1
- package/dist/components/ui/Map/index.d.ts +1 -1
- package/dist/components/ui/Map/index.js +13 -364
- package/dist/components/ui/Map/index.js.map +1 -1
- package/dist/components/ui/Map/types.cjs +2 -17
- package/dist/components/ui/Map/types.cjs.map +1 -1
- package/dist/components/ui/Map/types.js +2 -0
- package/dist/components/ui/Map/types.js.map +1 -1
- package/dist/components/ui/Map/utils.cjs +25 -75
- package/dist/components/ui/Map/utils.cjs.map +1 -1
- package/dist/components/ui/Map/utils.js +4 -48
- package/dist/components/ui/Map/utils.js.map +1 -1
- package/dist/components/ui/PlacesQueryInput.cjs +9 -301
- package/dist/components/ui/PlacesQueryInput.cjs.map +1 -1
- package/dist/components/ui/PlacesQueryInput.d.cts +2 -2
- package/dist/components/ui/PlacesQueryInput.d.ts +2 -2
- package/dist/components/ui/PlacesQueryInput.js +7 -275
- package/dist/components/ui/PlacesQueryInput.js.map +1 -1
- package/dist/components/ui/Radio.cjs +12 -151
- package/dist/components/ui/Radio.cjs.map +1 -1
- package/dist/components/ui/Radio.js +8 -123
- package/dist/components/ui/Radio.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs +9 -340
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.d.cts +2 -2
- package/dist/components/ui/ReadMore.d.ts +2 -2
- package/dist/components/ui/ReadMore.js +5 -311
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/Select.cjs +11 -303
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +9 -282
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/StepTabs.cjs +9 -129
- package/dist/components/ui/StepTabs.cjs.map +1 -1
- package/dist/components/ui/StepTabs.d.cts +3 -3
- package/dist/components/ui/StepTabs.d.ts +3 -3
- package/dist/components/ui/StepTabs.js +4 -99
- package/dist/components/ui/StepTabs.js.map +1 -1
- package/dist/components/ui/Switch.cjs +9 -69
- package/dist/components/ui/Switch.cjs.map +1 -1
- package/dist/components/ui/Switch.js +5 -39
- package/dist/components/ui/Switch.js.map +1 -1
- package/dist/components/ui/buttonShadcn.cjs +13 -81
- package/dist/components/ui/buttonShadcn.cjs.map +1 -1
- package/dist/components/ui/buttonShadcn.js +4 -49
- package/dist/components/ui/buttonShadcn.js.map +1 -1
- package/dist/components/ui/calendar.cjs +9 -135
- package/dist/components/ui/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar.d.cts +2 -1
- package/dist/components/ui/calendar.d.ts +2 -1
- package/dist/components/ui/calendar.js +5 -106
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/contexts/WindowHistoryProvider.cjs +13 -43
- package/dist/contexts/WindowHistoryProvider.cjs.map +1 -1
- package/dist/contexts/WindowHistoryProvider.d.cts +2 -1
- package/dist/contexts/WindowHistoryProvider.d.ts +2 -1
- package/dist/contexts/WindowHistoryProvider.js +3 -21
- package/dist/contexts/WindowHistoryProvider.js.map +1 -1
- package/dist/{displayText-Cm8PqS6s.d.cts → displayText-BDPndCI9.d.cts} +2 -2
- package/dist/{displayText-Ce_aqgGP.d.ts → displayText-EpnIpZ38.d.ts} +2 -2
- package/dist/hooks/useDisplayText.cjs +10 -496
- package/dist/hooks/useDisplayText.cjs.map +1 -1
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/hooks/useDisplayText.js +6 -476
- package/dist/hooks/useDisplayText.js.map +1 -1
- package/dist/hooks/useWindowHistory.cjs +9 -37
- package/dist/hooks/useWindowHistory.cjs.map +1 -1
- package/dist/hooks/useWindowHistory.d.cts +1 -0
- package/dist/hooks/useWindowHistory.d.ts +1 -0
- package/dist/hooks/useWindowHistory.js +4 -16
- package/dist/hooks/useWindowHistory.js.map +1 -1
- package/dist/index.cjs +216 -4128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +73 -4107
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-DKYye6oH.d.cts → job_posting_service_sanity-BN7XcVxU.d.cts} +460 -460
- package/dist/{job_posting_service_sanity-1eG3Jh9_.d.ts → job_posting_service_sanity-BNQsNQs2.d.ts} +460 -460
- package/dist/lib/google.cjs +21 -81
- package/dist/lib/google.cjs.map +1 -1
- package/dist/lib/google.js +3 -57
- package/dist/lib/google.js.map +1 -1
- package/dist/lib/icons.cjs +10 -50
- package/dist/lib/icons.cjs.map +1 -1
- package/dist/lib/icons.js +3 -48
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/locations.cjs +17 -66
- package/dist/lib/locations.cjs.map +1 -1
- package/dist/lib/locations.d.cts +3 -3
- package/dist/lib/locations.d.ts +3 -3
- package/dist/lib/locations.js +3 -42
- package/dist/lib/locations.js.map +1 -1
- package/dist/lib/mappings.cjs +45 -439
- package/dist/lib/mappings.cjs.map +1 -1
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/mappings.js +3 -408
- package/dist/lib/mappings.js.map +1 -1
- package/dist/lib/salaryRange.cjs +14 -453
- 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 +10 -437
- package/dist/lib/salaryRange.js.map +1 -1
- package/dist/lib/utils.cjs +10 -32
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.js +3 -9
- package/dist/lib/utils.js.map +1 -1
- package/dist/services/displayText.cjs +9 -464
- package/dist/services/displayText.cjs.map +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/services/displayText.js +5 -442
- package/dist/services/displayText.js.map +1 -1
- package/dist/types/data/company_service_latest.cjs +73 -246
- package/dist/types/data/company_service_latest.cjs.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/company_service_latest.js +4 -209
- package/dist/types/data/company_service_latest.js.map +1 -1
- package/dist/types/data/job_posting_service_latest.cjs +42 -276
- package/dist/types/data/job_posting_service_latest.cjs.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/job_posting_service_latest.js +5 -256
- package/dist/types/data/job_posting_service_latest.js.map +1 -1
- package/dist/types/data/shared_pickle_output_latest.cjs +39 -99
- package/dist/types/data/shared_pickle_output_latest.cjs.map +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/data/shared_pickle_output_latest.js +3 -74
- package/dist/types/data/shared_pickle_output_latest.js.map +1 -1
- package/dist/types/displayText.errors.cjs +13 -40
- package/dist/types/displayText.errors.cjs.map +1 -1
- package/dist/types/displayText.errors.js +3 -17
- package/dist/types/displayText.errors.js.map +1 -1
- package/dist/types/index.cjs +28 -494
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +9 -478
- package/dist/types/index.js.map +1 -1
- package/dist/types/latest/company_service_latest.cjs +73 -246
- package/dist/types/latest/company_service_latest.cjs.map +1 -1
- 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/company_service_latest.js +4 -209
- package/dist/types/latest/company_service_latest.js.map +1 -1
- package/dist/types/latest/custom/company_service_sanity.cjs +46 -307
- package/dist/types/latest/custom/company_service_sanity.cjs.map +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/company_service_sanity.js +6 -287
- package/dist/types/latest/custom/company_service_sanity.js.map +1 -1
- package/dist/types/latest/custom/custom_sanity_models.cjs +13 -39
- package/dist/types/latest/custom/custom_sanity_models.cjs.map +1 -1
- package/dist/types/latest/custom/custom_sanity_models.js +3 -16
- package/dist/types/latest/custom/custom_sanity_models.js.map +1 -1
- package/dist/types/latest/custom/job_posting_service_sanity.cjs +66 -353
- package/dist/types/latest/custom/job_posting_service_sanity.cjs.map +1 -1
- 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/custom/job_posting_service_sanity.js +7 -330
- package/dist/types/latest/custom/job_posting_service_sanity.js.map +1 -1
- package/dist/types/latest/job_posting_service_latest.cjs +42 -276
- package/dist/types/latest/job_posting_service_latest.cjs.map +1 -1
- 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/job_posting_service_latest.js +5 -256
- package/dist/types/latest/job_posting_service_latest.js.map +1 -1
- package/dist/types/latest/shared_pickle_output_latest.cjs +39 -99
- package/dist/types/latest/shared_pickle_output_latest.cjs.map +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/dist/types/latest/shared_pickle_output_latest.js +3 -74
- package/dist/types/latest/shared_pickle_output_latest.js.map +1 -1
- package/package.json +2 -2
- package/dist/{company_service_latest-KJi2W9Ij.d.cts → company_service_latest-C7Moeufo.d.cts} +319 -319
- package/dist/{company_service_latest-KJi2W9Ij.d.ts → company_service_latest-C7Moeufo.d.ts} +319 -319
- package/dist/{company_service_latest-BjyG4KCB.d.cts → company_service_latest-CITz7F53.d.cts} +319 -319
- package/dist/{company_service_latest-BjyG4KCB.d.ts → company_service_latest-CITz7F53.d.ts} +319 -319
- package/dist/{job_posting_service_latest-D9I5NE7l.d.cts → job_posting_service_latest-B6Trs6sX.d.cts} +266 -266
- package/dist/{job_posting_service_latest-D9I5NE7l.d.ts → job_posting_service_latest-B6Trs6sX.d.ts} +266 -266
- package/dist/{job_posting_service_latest-82DHqOGu.d.cts → job_posting_service_latest-BKz5U2Gp.d.cts} +266 -266
- package/dist/{job_posting_service_latest-82DHqOGu.d.ts → job_posting_service_latest-BKz5U2Gp.d.ts} +266 -266
- package/dist/{shared_pickle_output_latest-YbRs_xtC.d.cts → shared_pickle_output_latest--XZhOUyE.d.cts} +18 -18
- package/dist/{shared_pickle_output_latest-YbRs_xtC.d.ts → shared_pickle_output_latest--XZhOUyE.d.ts} +18 -18
- package/dist/{shared_pickle_output_latest-dO-t8iZx.d.cts → shared_pickle_output_latest-DKOmTyYk.d.cts} +18 -18
- package/dist/{shared_pickle_output_latest-dO-t8iZx.d.ts → shared_pickle_output_latest-DKOmTyYk.d.ts} +18 -18
|
@@ -1,276 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
9
|
-
import { Search } from "lucide-react";
|
|
10
|
-
import * as React3 from "react";
|
|
11
|
-
|
|
12
|
-
// src/components/primitives/dialog.tsx
|
|
13
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
14
|
-
import { X } from "lucide-react";
|
|
15
|
-
import * as React2 from "react";
|
|
16
|
-
|
|
17
|
-
// src/lib/utils.ts
|
|
18
|
-
import { clsx } from "clsx";
|
|
19
|
-
import { twMerge } from "tailwind-merge";
|
|
20
|
-
function cn(...inputs) {
|
|
21
|
-
return twMerge(clsx(inputs));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// src/components/primitives/dialog.tsx
|
|
25
|
-
var DialogPortal = DialogPrimitive.Portal;
|
|
26
|
-
var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
27
|
-
DialogPrimitive.Overlay,
|
|
28
|
-
{
|
|
29
|
-
ref,
|
|
30
|
-
className: cn(
|
|
31
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
32
|
-
className
|
|
33
|
-
),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
));
|
|
37
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
38
|
-
var DialogContent = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(DialogPortal, null, /* @__PURE__ */ React2.createElement(DialogOverlay, null), /* @__PURE__ */ React2.createElement(
|
|
39
|
-
DialogPrimitive.Content,
|
|
40
|
-
{
|
|
41
|
-
ref,
|
|
42
|
-
className: cn(
|
|
43
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950 sm:rounded-lg",
|
|
44
|
-
className
|
|
45
|
-
),
|
|
46
|
-
...props
|
|
47
|
-
},
|
|
48
|
-
children,
|
|
49
|
-
/* @__PURE__ */ React2.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400" }, /* @__PURE__ */ React2.createElement(X, { className: "h-4 w-4" }), /* @__PURE__ */ React2.createElement("span", { className: "sr-only" }, "Close"))
|
|
50
|
-
)));
|
|
51
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
52
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React2.createElement("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
53
|
-
DialogHeader.displayName = "DialogHeader";
|
|
54
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React2.createElement(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
58
|
-
...props
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
DialogFooter.displayName = "DialogFooter";
|
|
62
|
-
var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
63
|
-
DialogPrimitive.Title,
|
|
64
|
-
{
|
|
65
|
-
ref,
|
|
66
|
-
className: cn("text-lg font-semibold leading-none tracking-tight", className),
|
|
67
|
-
...props
|
|
68
|
-
}
|
|
69
|
-
));
|
|
70
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
71
|
-
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
72
|
-
DialogPrimitive.Description,
|
|
73
|
-
{
|
|
74
|
-
ref,
|
|
75
|
-
className: cn("text-sm text-neutral-500 dark:text-neutral-400", className),
|
|
76
|
-
...props
|
|
77
|
-
}
|
|
78
|
-
));
|
|
79
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
80
|
-
|
|
81
|
-
// src/components/primitives/command.tsx
|
|
82
|
-
var Command = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
83
|
-
CommandPrimitive,
|
|
84
|
-
{
|
|
85
|
-
ref,
|
|
86
|
-
className: cn(
|
|
87
|
-
"flex h-full w-full flex-col overflow-hidden rounded-xl bg-white text-neutral-950",
|
|
88
|
-
className
|
|
89
|
-
),
|
|
90
|
-
...props
|
|
91
|
-
}
|
|
92
|
-
));
|
|
93
|
-
Command.displayName = CommandPrimitive.displayName;
|
|
94
|
-
var CommandInput = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement("div", { className: "m-1 flex items-center rounded-xl border px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React3.createElement(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ React3.createElement(
|
|
95
|
-
CommandPrimitive.Input,
|
|
96
|
-
{
|
|
97
|
-
ref,
|
|
98
|
-
className: cn(
|
|
99
|
-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50",
|
|
100
|
-
className
|
|
101
|
-
),
|
|
102
|
-
...props
|
|
103
|
-
}
|
|
104
|
-
)));
|
|
105
|
-
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
106
|
-
var CommandList = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
107
|
-
CommandPrimitive.List,
|
|
108
|
-
{
|
|
109
|
-
ref,
|
|
110
|
-
className: cn("overflow-y-auto overflow-x-hidden", className),
|
|
111
|
-
...props
|
|
112
|
-
}
|
|
113
|
-
));
|
|
114
|
-
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
115
|
-
var CommandEmpty = React3.forwardRef((props, ref) => /* @__PURE__ */ React3.createElement(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
116
|
-
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
117
|
-
var CommandGroup = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
118
|
-
CommandPrimitive.Group,
|
|
119
|
-
{
|
|
120
|
-
ref,
|
|
121
|
-
className: cn(
|
|
122
|
-
"overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500",
|
|
123
|
-
className
|
|
124
|
-
),
|
|
125
|
-
...props
|
|
126
|
-
}
|
|
127
|
-
));
|
|
128
|
-
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
129
|
-
var CommandSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
130
|
-
CommandPrimitive.Separator,
|
|
131
|
-
{
|
|
132
|
-
ref,
|
|
133
|
-
className: cn("-mx-1 h-px bg-neutral-200", className),
|
|
134
|
-
...props
|
|
135
|
-
}
|
|
136
|
-
));
|
|
137
|
-
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
138
|
-
var CommandItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
139
|
-
CommandPrimitive.Item,
|
|
140
|
-
{
|
|
141
|
-
ref,
|
|
142
|
-
className: cn(
|
|
143
|
-
"relative flex cursor-pointer select-none items-center rounded-xl px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50",
|
|
144
|
-
className
|
|
145
|
-
),
|
|
146
|
-
...props
|
|
147
|
-
}
|
|
148
|
-
));
|
|
149
|
-
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
150
|
-
var CommandShortcut = ({ className, ...props }) => {
|
|
151
|
-
return /* @__PURE__ */ React3.createElement(
|
|
152
|
-
"span",
|
|
153
|
-
{
|
|
154
|
-
className: cn("ml-auto text-xs tracking-widest text-neutral-500", className),
|
|
155
|
-
...props
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
CommandShortcut.displayName = "CommandShortcut";
|
|
160
|
-
|
|
161
|
-
// src/lib/google.ts
|
|
162
|
-
import { Client, PlaceAutocompleteType } from "@googlemaps/google-maps-services-js";
|
|
163
|
-
var client = new Client();
|
|
164
|
-
var autocomplete = async (input, key) => {
|
|
165
|
-
try {
|
|
166
|
-
const response = await client.placeAutocomplete({
|
|
167
|
-
params: { input, key, types: PlaceAutocompleteType.address }
|
|
168
|
-
});
|
|
169
|
-
return response.data.predictions;
|
|
170
|
-
} catch (error) {
|
|
171
|
-
console.error(error);
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
// src/components/ui/PlacesQueryInput.tsx
|
|
176
|
-
function PlacesQueryInput({
|
|
177
|
-
apiKey,
|
|
178
|
-
selected,
|
|
179
|
-
onSelect,
|
|
180
|
-
className
|
|
181
|
-
}) {
|
|
182
|
-
const [predictions, setPredictions] = useState(null);
|
|
183
|
-
const [input, setInput] = useState(selected?.description ?? "");
|
|
184
|
-
const [isLoadingPredictions, setIsLoadingPredictions] = useState(false);
|
|
185
|
-
const [shouldOpenUpward, setShouldOpenUpward] = useState(false);
|
|
186
|
-
const timeoutRef = useRef(null);
|
|
187
|
-
const inputRef = useRef(null);
|
|
188
|
-
const debouncedAutocomplete = useCallback((value) => {
|
|
189
|
-
if (timeoutRef.current) {
|
|
190
|
-
clearTimeout(timeoutRef.current);
|
|
191
|
-
}
|
|
192
|
-
timeoutRef.current = setTimeout(async () => {
|
|
193
|
-
try {
|
|
194
|
-
if (value.length > 2) {
|
|
195
|
-
setIsLoadingPredictions(true);
|
|
196
|
-
const fetchedPredictions = await autocomplete(value, apiKey);
|
|
197
|
-
setIsLoadingPredictions(false);
|
|
198
|
-
setPredictions(fetchedPredictions ?? []);
|
|
199
|
-
} else {
|
|
200
|
-
setPredictions(null);
|
|
201
|
-
}
|
|
202
|
-
} catch (error) {
|
|
203
|
-
setIsLoadingPredictions(false);
|
|
204
|
-
setPredictions([]);
|
|
205
|
-
console.error("Autocomplete error:", error);
|
|
206
|
-
}
|
|
207
|
-
}, 300);
|
|
208
|
-
}, []);
|
|
209
|
-
const handleInputChange = (value) => {
|
|
210
|
-
setInput(value);
|
|
211
|
-
debouncedAutocomplete(value);
|
|
212
|
-
};
|
|
213
|
-
const handleSelect = (prediction) => {
|
|
214
|
-
onSelect(prediction);
|
|
215
|
-
setPredictions(null);
|
|
216
|
-
setInput(prediction.description);
|
|
217
|
-
};
|
|
218
|
-
const handleClear = () => {
|
|
219
|
-
onSelect();
|
|
220
|
-
setPredictions(null);
|
|
221
|
-
setInput("");
|
|
222
|
-
};
|
|
223
|
-
const handleBlur = () => setTimeout(() => setPredictions(null), 200);
|
|
224
|
-
useEffect(() => {
|
|
225
|
-
const checkDropdownPosition = () => {
|
|
226
|
-
if (inputRef.current) {
|
|
227
|
-
const rect = inputRef.current.getBoundingClientRect();
|
|
228
|
-
const windowHeight = window.innerHeight;
|
|
229
|
-
setShouldOpenUpward(rect.bottom + 200 > windowHeight);
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
checkDropdownPosition();
|
|
233
|
-
window.addEventListener("resize", checkDropdownPosition);
|
|
234
|
-
return () => window.removeEventListener("resize", checkDropdownPosition);
|
|
235
|
-
}, []);
|
|
236
|
-
return /* @__PURE__ */ React.createElement("div", { className: cn("relative w-full", className), ref: inputRef, onBlur: handleBlur }, /* @__PURE__ */ React.createElement(Command, null, /* @__PURE__ */ React.createElement("div", { className: "relative w-full" }, /* @__PURE__ */ React.createElement(
|
|
237
|
-
CommandInput,
|
|
238
|
-
{
|
|
239
|
-
placeholder: "Type an address to search...",
|
|
240
|
-
value: input,
|
|
241
|
-
onValueChange: handleInputChange,
|
|
242
|
-
className: "truncate pr-8"
|
|
243
|
-
}
|
|
244
|
-
), isLoadingPredictions && /* @__PURE__ */ React.createElement(LoaderCircle, { className: "absolute inset-y-0 right-2 my-auto flex h-8 w-8 animate-spin items-center justify-center rounded-full text-green-100" }), input && /* @__PURE__ */ React.createElement(
|
|
245
|
-
"button",
|
|
246
|
-
{
|
|
247
|
-
type: "button",
|
|
248
|
-
className: "absolute inset-y-0 right-2 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20",
|
|
249
|
-
onClick: handleClear
|
|
250
|
-
},
|
|
251
|
-
/* @__PURE__ */ React.createElement(CircleX, { className: "h-4 w-4 text-green-100" })
|
|
252
|
-
)), predictions && /* @__PURE__ */ React.createElement(
|
|
253
|
-
CommandList,
|
|
254
|
-
{
|
|
255
|
-
className: cn(
|
|
256
|
-
"absolute z-50 w-full rounded-md border bg-white shadow-lg",
|
|
257
|
-
shouldOpenUpward ? "bottom-full" : "top-full"
|
|
258
|
-
)
|
|
259
|
-
},
|
|
260
|
-
/* @__PURE__ */ React.createElement(CommandEmpty, null, "No results"),
|
|
261
|
-
/* @__PURE__ */ React.createElement(CommandGroup, null, predictions.map((prediction) => /* @__PURE__ */ React.createElement(
|
|
262
|
-
CommandItem,
|
|
263
|
-
{
|
|
264
|
-
key: prediction.place_id,
|
|
265
|
-
onSelect: () => handleSelect(prediction),
|
|
266
|
-
className: "truncate"
|
|
267
|
-
},
|
|
268
|
-
prediction.description
|
|
269
|
-
)))
|
|
270
|
-
)));
|
|
271
|
-
}
|
|
272
|
-
var PlacesQueryInput_default = PlacesQueryInput;
|
|
273
|
-
export {
|
|
274
|
-
PlacesQueryInput_default as default
|
|
275
|
-
};
|
|
1
|
+
export { PlacesQueryInput_default as default } from '../../chunk-U27VO642.js';
|
|
2
|
+
import '../../chunk-62OBBM7T.js';
|
|
3
|
+
import '../../chunk-TPZCCL4L.js';
|
|
4
|
+
import '../../chunk-2FGZQI42.js';
|
|
5
|
+
import '../../chunk-U3D4LL6T.js';
|
|
6
|
+
import '../../chunk-PZ5AY32C.js';
|
|
7
|
+
//# sourceMappingURL=PlacesQueryInput.js.map
|
|
276
8
|
//# sourceMappingURL=PlacesQueryInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/PlacesQueryInput.tsx","../../../src/components/primitives/command.tsx","../../../src/components/primitives/dialog.tsx","../../../src/lib/utils.ts","../../../src/lib/google.ts"],"sourcesContent":["'use client'\n\nimport { type PlaceAutocompleteResult } from '@googlemaps/google-maps-services-js'\nimport { CircleX, LoaderCircle } from 'lucide-react'\nimport { useCallback, useEffect, useRef, useState } from 'react'\n\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/primitives/command'\nimport { autocomplete } from '@/lib/google'\nimport { cn } from '@/lib/utils'\n\n/**\n * The idea is of this type is to have a more specific type for the Place object,\n * without the repos that use it having to import the PlaceAutocompleteResult type.\n * 'place_id' can be used to query the Google Places API directly for more information about the place.\n */\nexport type Place = Pick<PlaceAutocompleteResult, 'description' | 'place_id'>\n\ninterface PlacesQueryInputProps {\n apiKey: string\n selected?: Place\n onSelect: (place?: Place) => void\n className?: string\n}\n\nfunction PlacesQueryInput({\n apiKey,\n selected,\n onSelect,\n className,\n}: Readonly<PlacesQueryInputProps>) {\n const [predictions, setPredictions] = useState<PlaceAutocompleteResult[] | null>(null)\n const [input, setInput] = useState(selected?.description ?? '')\n const [isLoadingPredictions, setIsLoadingPredictions] = useState(false)\n const [shouldOpenUpward, setShouldOpenUpward] = useState(false)\n const timeoutRef = useRef<NodeJS.Timeout | null>(null)\n const inputRef = useRef<HTMLDivElement | null>(null)\n\n const debouncedAutocomplete = useCallback((value: string) => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n timeoutRef.current = setTimeout(async () => {\n try {\n if (value.length > 2) {\n setIsLoadingPredictions(true)\n const fetchedPredictions = await autocomplete(value, apiKey)\n setIsLoadingPredictions(false)\n setPredictions(fetchedPredictions ?? [])\n } else {\n setPredictions(null)\n }\n } catch (error) {\n setIsLoadingPredictions(false)\n setPredictions([])\n console.error('Autocomplete error:', error)\n }\n }, 300)\n }, [])\n\n const handleInputChange = (value: string) => {\n setInput(value)\n debouncedAutocomplete(value)\n }\n\n const handleSelect = (prediction: PlaceAutocompleteResult) => {\n onSelect(prediction)\n setPredictions(null)\n setInput(prediction.description)\n }\n\n const handleClear = () => {\n onSelect()\n setPredictions(null)\n setInput('')\n }\n\n /** Close the dropdown when the input loses focus, with the timeout to allow the user to click on a prediction.\n * */\n const handleBlur = () => setTimeout(() => setPredictions(null), 200)\n\n useEffect(() => {\n const checkDropdownPosition = () => {\n if (inputRef.current) {\n const rect = inputRef.current.getBoundingClientRect()\n const windowHeight = window.innerHeight\n setShouldOpenUpward(rect.bottom + 200 > windowHeight)\n }\n }\n\n checkDropdownPosition()\n window.addEventListener('resize', checkDropdownPosition)\n return () => window.removeEventListener('resize', checkDropdownPosition)\n }, [])\n\n return (\n <div className={cn('relative w-full', className)} ref={inputRef} onBlur={handleBlur}>\n <Command>\n <div className=\"relative w-full\">\n <CommandInput\n placeholder=\"Type an address to search...\"\n value={input}\n onValueChange={handleInputChange}\n className=\"truncate pr-8\"\n />\n {isLoadingPredictions && (\n <LoaderCircle className=\"absolute inset-y-0 right-2 my-auto flex h-8 w-8 animate-spin items-center justify-center rounded-full text-green-100\" />\n )}\n {input && (\n <button\n type=\"button\"\n className=\"absolute inset-y-0 right-2 my-auto flex h-8 w-8 cursor-pointer items-center justify-center rounded-full hover:bg-pickle-20\"\n onClick={handleClear}\n >\n <CircleX className=\"h-4 w-4 text-green-100\" />\n </button>\n )}\n </div>\n {predictions && (\n <CommandList\n className={cn(\n 'absolute z-50 w-full rounded-md border bg-white shadow-lg',\n shouldOpenUpward ? 'bottom-full' : 'top-full'\n )}\n >\n <CommandEmpty>No results</CommandEmpty>\n <CommandGroup>\n {predictions.map((prediction) => (\n <CommandItem\n key={prediction.place_id}\n onSelect={() => handleSelect(prediction)}\n className=\"truncate\"\n >\n {prediction.description}\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n )}\n </Command>\n </div>\n )\n}\n\nexport default PlacesQueryInput\n","'use client'\n\nimport { type DialogProps } from '@radix-ui/react-dialog'\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { Search } from 'lucide-react'\nimport * as React from 'react'\n\nimport { Dialog, DialogContent } from '@/components/primitives/dialog'\nimport { cn } from '@/lib/utils'\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-xl bg-white text-neutral-950',\n className\n )}\n {...props}\n />\n))\nCommand.displayName = CommandPrimitive.displayName\n\ntype CommandDialogProps = DialogProps\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0 shadow-lg\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <div className=\"m-1 flex items-center rounded-xl border px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500',\n className\n )}\n {...props}\n />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 h-px bg-neutral-200', className)}\n {...props}\n />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-pointer select-none items-center rounded-xl px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50\",\n className\n )}\n {...props}\n />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-neutral-500', className)}\n {...props}\n />\n )\n}\nCommandShortcut.displayName = 'CommandShortcut'\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n}\n","'use client'\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { X } from 'lucide-react'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950 sm:rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('text-sm text-neutral-500 dark:text-neutral-400', className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\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","'use server'\n\nimport { Client, PlaceAutocompleteType, type PlaceData } from '@googlemaps/google-maps-services-js'\n\nconst client = new Client()\n\nexport const autocomplete = async (input: string, key: string) => {\n try {\n const response = await client.placeAutocomplete({\n params: { input, key, types: PlaceAutocompleteType.address },\n })\n\n return response.data.predictions\n } catch (error) {\n console.error(error)\n }\n}\n\ntype Place = {\n place_id?: string\n address?: string\n}\n/**\n * This is the exported function that calls the Google api to fetch the location based on the place_id or address.\n */\nexport const fetchLocation = async (\n place: Place,\n key: string\n): Promise<Partial<PlaceData> | undefined> => {\n try {\n if (place.place_id) {\n const placeDetails = await getPlaceDetails(place.place_id, key)\n if (placeDetails) return placeDetails\n }\n if (place.address) {\n const result = await geocode(place.address, key)\n const firstAddress = result?.[0]\n return firstAddress\n }\n\n return undefined\n } catch (error) {\n console.error('Error fetching location:', error)\n }\n}\n\n/**\n * If you have a place ID, you can use the placeDetails method to get more information about a place.\n * The advantage over an address is that there will be no ambiguity about the location.\n * @param place_id\n * @param key\n * @returns\n */\nexport const getPlaceDetails = async (place_id: string, key: string) => {\n try {\n const response = await client.placeDetails({\n params: { place_id, key },\n })\n\n return response.data.result\n } catch (error) {\n console.error(error)\n }\n}\n\n/**\n * The geocode method is used to convert an address into actual location(s) with lat/long.\n */\nexport const geocode = async (address: string, key: string) => {\n try {\n const response = await client.geocode({\n params: { address, key },\n })\n\n return response.data.results\n } catch (error) {\n console.error(error)\n }\n}\n"],"mappings":"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","names":["React","React"]}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"PlacesQueryInput.js"}
|
|
@@ -1,157 +1,18 @@
|
|
|
1
|
-
|
|
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);
|
|
1
|
+
'use strict';
|
|
29
2
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// src/components/primitives/radio-group.tsx
|
|
39
|
-
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
40
|
-
var import_react = require("react");
|
|
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/radio-group.tsx
|
|
50
|
-
var RadioGroup = (0, import_react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(RadioGroupPrimitive.Root, { className, ...props, ref }));
|
|
51
|
-
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
52
|
-
var RadioGroupItem = (0, import_react.forwardRef)(({ className, children, ...props }, ref) => {
|
|
53
|
-
return /* @__PURE__ */ React.createElement("div", { className: "group flex flex-row items-center gap-2" }, /* @__PURE__ */ React.createElement(
|
|
54
|
-
RadioGroupPrimitive.Item,
|
|
55
|
-
{
|
|
56
|
-
ref,
|
|
57
|
-
className: cn(
|
|
58
|
-
"peer aspect-square h-4 rounded-full border border-grey-10 shadow outline outline-1 outline-offset-2 outline-transparent focus:outline-none focus:outline-purple-100 focus-visible:ring-1 focus-visible:ring-ring active:border-green-80 disabled:cursor-not-allowed disabled:opacity-50 group-hover:border-grey-20 data-[state=checked]:border-4 data-[disabled]:border-grey-20 data-[state=checked]:border-green-90 data-[disabled]:bg-grey-10 data-[state=checked]:group-hover:border-green-80",
|
|
59
|
-
className
|
|
60
|
-
),
|
|
61
|
-
...props
|
|
62
|
-
}
|
|
63
|
-
), /* @__PURE__ */ React.createElement("label", { htmlFor: props.id, className: "text-sm peer-data-[disabled]:text-grey-40" }, children));
|
|
64
|
-
});
|
|
65
|
-
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
66
|
-
|
|
67
|
-
// src/components/ui/ErrorMessage.tsx
|
|
68
|
-
function ErrorMessage({ message, className, ...props }) {
|
|
69
|
-
if (!message) return null;
|
|
70
|
-
return /* @__PURE__ */ React.createElement("p", { className: cn("px-1 text-xs text-red-600", className), ...props }, message);
|
|
71
|
-
}
|
|
72
|
-
var ErrorMessage_default = ErrorMessage;
|
|
73
|
-
|
|
74
|
-
// src/components/ui/Label.tsx
|
|
75
|
-
var import_lucide_react = require("lucide-react");
|
|
3
|
+
var chunkVB32IBQC_cjs = require('../../chunk-VB32IBQC.cjs');
|
|
4
|
+
require('../../chunk-XWQI5MC3.cjs');
|
|
5
|
+
require('../../chunk-LTJXX7NG.cjs');
|
|
6
|
+
require('../../chunk-6EW2D7K7.cjs');
|
|
7
|
+
require('../../chunk-AEYPJ5YA.cjs');
|
|
8
|
+
require('../../chunk-MGWZXPMF.cjs');
|
|
9
|
+
require('../../chunk-Q7SFCCGT.cjs');
|
|
76
10
|
|
|
77
|
-
// src/components/primitives/tooltip.tsx
|
|
78
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
79
|
-
var React2 = __toESM(require("react"), 1);
|
|
80
|
-
var TooltipProvider = TooltipPrimitive.Provider;
|
|
81
|
-
var Tooltip = TooltipPrimitive.Root;
|
|
82
|
-
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
83
|
-
var TooltipContent = React2.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
84
|
-
TooltipPrimitive.Content,
|
|
85
|
-
{
|
|
86
|
-
ref,
|
|
87
|
-
sideOffset,
|
|
88
|
-
className: cn(
|
|
89
|
-
"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",
|
|
90
|
-
className
|
|
91
|
-
),
|
|
92
|
-
...props
|
|
93
|
-
}
|
|
94
|
-
));
|
|
95
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
96
11
|
|
|
97
|
-
// src/components/ui/Label.tsx
|
|
98
|
-
function Label({ text, required, description, className, ...props }) {
|
|
99
|
-
if (!text) return null;
|
|
100
|
-
return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-row gap-1" }, /* @__PURE__ */ React.createElement(
|
|
101
|
-
"label",
|
|
102
|
-
{
|
|
103
|
-
className: cn(
|
|
104
|
-
"text-xs text-grey-80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
105
|
-
className
|
|
106
|
-
),
|
|
107
|
-
...props
|
|
108
|
-
},
|
|
109
|
-
text,
|
|
110
|
-
required && /* @__PURE__ */ React.createElement("span", { className: "text-red-600" }, "\xA0*")
|
|
111
|
-
), !!description && /* @__PURE__ */ React.createElement(TooltipProvider, null, /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(TooltipTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(import_lucide_react.InfoIcon, { className: "h-4 w-4" })), /* @__PURE__ */ React.createElement(TooltipContent, { className: "max-w-48" }, description))));
|
|
112
|
-
}
|
|
113
|
-
var Label_default = Label;
|
|
114
12
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
({
|
|
118
|
-
label,
|
|
119
|
-
error,
|
|
120
|
-
description,
|
|
121
|
-
options,
|
|
122
|
-
classNames,
|
|
123
|
-
onChange: handleValueChange,
|
|
124
|
-
orientation,
|
|
125
|
-
...props
|
|
126
|
-
}, ref) => {
|
|
127
|
-
return /* @__PURE__ */ React.createElement("div", { className: cn("flex flex-col gap-1", classNames?.root) }, /* @__PURE__ */ React.createElement(Label_default, { text: label, description, required: props.required }), /* @__PURE__ */ React.createElement(
|
|
128
|
-
RadioGroup,
|
|
129
|
-
{
|
|
130
|
-
ref,
|
|
131
|
-
className: cn(
|
|
132
|
-
"flex text-sm",
|
|
133
|
-
orientation === "vertical" ? "flex-col gap-2" : "flex-row gap-4",
|
|
134
|
-
classNames?.group
|
|
135
|
-
),
|
|
136
|
-
onValueChange: handleValueChange,
|
|
137
|
-
...props
|
|
138
|
-
},
|
|
139
|
-
options?.map(({ id, title, value }) => /* @__PURE__ */ React.createElement(
|
|
140
|
-
RadioGroupItem,
|
|
141
|
-
{
|
|
142
|
-
key: id,
|
|
143
|
-
value,
|
|
144
|
-
id: `radio-group-item-${title}`,
|
|
145
|
-
className: classNames?.item
|
|
146
|
-
},
|
|
147
|
-
title
|
|
148
|
-
))
|
|
149
|
-
), /* @__PURE__ */ React.createElement(ErrorMessage_default, { message: error }));
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
Radio.displayName = "Radio";
|
|
153
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
154
|
-
0 && (module.exports = {
|
|
155
|
-
Radio
|
|
13
|
+
Object.defineProperty(exports, "Radio", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkVB32IBQC_cjs.Radio; }
|
|
156
16
|
});
|
|
17
|
+
//# sourceMappingURL=Radio.cjs.map
|
|
157
18
|
//# sourceMappingURL=Radio.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"Radio.cjs"}
|