@next-degree/pickle-shared-js 0.13.1 → 0.13.4

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.
Files changed (581) hide show
  1. package/dist/chunk-2FGZQI42.js +11 -0
  2. package/dist/chunk-2FGZQI42.js.map +1 -0
  3. package/dist/chunk-325GPWFN.js +24 -0
  4. package/dist/chunk-325GPWFN.js.map +1 -0
  5. package/dist/chunk-37YFXNLL.cjs +46 -0
  6. package/dist/chunk-37YFXNLL.cjs.map +1 -0
  7. package/dist/chunk-3BGXWNKI.cjs +26 -0
  8. package/dist/chunk-3BGXWNKI.cjs.map +1 -0
  9. package/dist/chunk-3CI6PTKT.cjs +82 -0
  10. package/dist/chunk-3CI6PTKT.cjs.map +1 -0
  11. package/dist/chunk-3PARXYUI.cjs +86 -0
  12. package/dist/chunk-3PARXYUI.cjs.map +1 -0
  13. package/dist/chunk-3VIRJK7I.js +63 -0
  14. package/dist/chunk-3VIRJK7I.js.map +1 -0
  15. package/dist/chunk-47H3M7TP.js +72 -0
  16. package/dist/chunk-47H3M7TP.js.map +1 -0
  17. package/dist/chunk-4E3ANVRR.js +35 -0
  18. package/dist/chunk-4E3ANVRR.js.map +1 -0
  19. package/dist/chunk-4GDAUTH4.cjs +112 -0
  20. package/dist/chunk-4GDAUTH4.cjs.map +1 -0
  21. package/dist/chunk-4IJ5TMHI.js +20 -0
  22. package/dist/chunk-4IJ5TMHI.js.map +1 -0
  23. package/dist/chunk-4KXEHU2Z.js +142 -0
  24. package/dist/chunk-4KXEHU2Z.js.map +1 -0
  25. package/dist/chunk-4NEPWF3Z.js +152 -0
  26. package/dist/chunk-4NEPWF3Z.js.map +1 -0
  27. package/dist/chunk-4OJ7NEZU.js +107 -0
  28. package/dist/chunk-4OJ7NEZU.js.map +1 -0
  29. package/dist/chunk-4RVGUZNF.js +72 -0
  30. package/dist/chunk-4RVGUZNF.js.map +1 -0
  31. package/dist/chunk-4TLLJ52E.cjs +28 -0
  32. package/dist/chunk-4TLLJ52E.cjs.map +1 -0
  33. package/dist/chunk-4TP4NYO2.js +41 -0
  34. package/dist/chunk-4TP4NYO2.js.map +1 -0
  35. package/dist/chunk-567FG76G.cjs +39 -0
  36. package/dist/chunk-567FG76G.cjs.map +1 -0
  37. package/dist/chunk-5H35ZVLR.js +43 -0
  38. package/dist/chunk-5H35ZVLR.js.map +1 -0
  39. package/dist/chunk-5H75FIY2.cjs +64 -0
  40. package/dist/chunk-5H75FIY2.cjs.map +1 -0
  41. package/dist/chunk-5QXQ2LBB.cjs +4 -0
  42. package/dist/chunk-5QXQ2LBB.cjs.map +1 -0
  43. package/dist/chunk-5REFGTWO.js +87 -0
  44. package/dist/chunk-5REFGTWO.js.map +1 -0
  45. package/dist/chunk-5RH3VTNV.js +81 -0
  46. package/dist/chunk-5RH3VTNV.js.map +1 -0
  47. package/dist/chunk-5Z4ILTRD.js +48 -0
  48. package/dist/chunk-5Z4ILTRD.js.map +1 -0
  49. package/dist/chunk-7CKQ3FSB.js +24 -0
  50. package/dist/chunk-7CKQ3FSB.js.map +1 -0
  51. package/dist/chunk-7VHZCQL3.js +30 -0
  52. package/dist/chunk-7VHZCQL3.js.map +1 -0
  53. package/dist/chunk-7X6S7GJK.cjs +11 -0
  54. package/dist/chunk-7X6S7GJK.cjs.map +1 -0
  55. package/dist/chunk-A46BJOVJ.cjs +71 -0
  56. package/dist/chunk-A46BJOVJ.cjs.map +1 -0
  57. package/dist/chunk-A7E5UPEP.cjs +36 -0
  58. package/dist/chunk-A7E5UPEP.cjs.map +1 -0
  59. package/dist/chunk-A7MLO6YN.cjs +109 -0
  60. package/dist/chunk-A7MLO6YN.cjs.map +1 -0
  61. package/dist/chunk-AB3775NI.cjs +93 -0
  62. package/dist/chunk-AB3775NI.cjs.map +1 -0
  63. package/dist/chunk-AMNEAWA7.cjs +59 -0
  64. package/dist/chunk-AMNEAWA7.cjs.map +1 -0
  65. package/dist/chunk-AQ54YTF2.js +80 -0
  66. package/dist/chunk-AQ54YTF2.js.map +1 -0
  67. package/dist/chunk-CDQM72QX.cjs +46 -0
  68. package/dist/chunk-CDQM72QX.cjs.map +1 -0
  69. package/dist/chunk-CIFWAE4A.js +39 -0
  70. package/dist/chunk-CIFWAE4A.js.map +1 -0
  71. package/dist/chunk-CUICNKLS.cjs +42 -0
  72. package/dist/chunk-CUICNKLS.cjs.map +1 -0
  73. package/dist/chunk-D5CBPEAR.js +67 -0
  74. package/dist/chunk-D5CBPEAR.js.map +1 -0
  75. package/dist/chunk-DGDBIRAA.js +118 -0
  76. package/dist/chunk-DGDBIRAA.js.map +1 -0
  77. package/dist/chunk-DHB467LV.js +34 -0
  78. package/dist/chunk-DHB467LV.js.map +1 -0
  79. package/dist/chunk-DU5OQA67.cjs +49 -0
  80. package/dist/chunk-DU5OQA67.cjs.map +1 -0
  81. package/dist/chunk-DVSHUNGT.cjs +49 -0
  82. package/dist/chunk-DVSHUNGT.cjs.map +1 -0
  83. package/dist/chunk-E5S6MGBJ.cjs +51 -0
  84. package/dist/chunk-E5S6MGBJ.cjs.map +1 -0
  85. package/dist/chunk-EAFZZSYR.js +69 -0
  86. package/dist/chunk-EAFZZSYR.js.map +1 -0
  87. package/dist/chunk-EBKY3MJH.cjs +72 -0
  88. package/dist/chunk-EBKY3MJH.cjs.map +1 -0
  89. package/dist/chunk-EG7G3RZ2.cjs +79 -0
  90. package/dist/chunk-EG7G3RZ2.cjs.map +1 -0
  91. package/dist/chunk-FMST4EVC.js +11 -0
  92. package/dist/chunk-FMST4EVC.js.map +1 -0
  93. package/dist/chunk-FOJTLQJO.js +152 -0
  94. package/dist/chunk-FOJTLQJO.js.map +1 -0
  95. package/dist/chunk-FRXKCHZ7.cjs +50 -0
  96. package/dist/chunk-FRXKCHZ7.cjs.map +1 -0
  97. package/dist/chunk-FSMBDLNU.js +34 -0
  98. package/dist/chunk-FSMBDLNU.js.map +1 -0
  99. package/dist/chunk-G5ERI2MS.js +59 -0
  100. package/dist/chunk-G5ERI2MS.js.map +1 -0
  101. package/dist/chunk-GK3QI7HQ.js +49 -0
  102. package/dist/chunk-GK3QI7HQ.js.map +1 -0
  103. package/dist/chunk-GN3JZCM3.cjs +99 -0
  104. package/dist/chunk-GN3JZCM3.cjs.map +1 -0
  105. package/dist/chunk-GP5XW2ZR.cjs +36 -0
  106. package/dist/chunk-GP5XW2ZR.cjs.map +1 -0
  107. package/dist/chunk-GQNVPLSG.cjs +44 -0
  108. package/dist/chunk-GQNVPLSG.cjs.map +1 -0
  109. package/dist/chunk-GRLH3A6S.js +40 -0
  110. package/dist/chunk-GRLH3A6S.js.map +1 -0
  111. package/dist/chunk-HCXPKYJR.cjs +37 -0
  112. package/dist/chunk-HCXPKYJR.cjs.map +1 -0
  113. package/dist/chunk-HEHLGQ2U.js +198 -0
  114. package/dist/chunk-HEHLGQ2U.js.map +1 -0
  115. package/dist/chunk-HJYGNJD5.js +27 -0
  116. package/dist/chunk-HJYGNJD5.js.map +1 -0
  117. package/dist/chunk-HMKEBIBE.cjs +14 -0
  118. package/dist/chunk-HMKEBIBE.cjs.map +1 -0
  119. package/dist/chunk-HVNR3VXM.js +34 -0
  120. package/dist/chunk-HVNR3VXM.js.map +1 -0
  121. package/dist/chunk-I4H7XREK.js +91 -0
  122. package/dist/chunk-I4H7XREK.js.map +1 -0
  123. package/dist/chunk-IHWVGIDT.cjs +86 -0
  124. package/dist/chunk-IHWVGIDT.cjs.map +1 -0
  125. package/dist/chunk-IVPCYGXE.cjs +20 -0
  126. package/dist/chunk-IVPCYGXE.cjs.map +1 -0
  127. package/dist/chunk-J5GVGJZA.js +23 -0
  128. package/dist/chunk-J5GVGJZA.js.map +1 -0
  129. package/dist/chunk-JDAV6RWN.js +26 -0
  130. package/dist/chunk-JDAV6RWN.js.map +1 -0
  131. package/dist/chunk-JZVRCP3M.cjs +411 -0
  132. package/dist/chunk-JZVRCP3M.cjs.map +1 -0
  133. package/dist/chunk-K3653KJ6.js +11 -0
  134. package/dist/chunk-K3653KJ6.js.map +1 -0
  135. package/dist/chunk-K76RPF2X.js +37 -0
  136. package/dist/chunk-K76RPF2X.js.map +1 -0
  137. package/dist/chunk-KH3K3OI4.cjs +86 -0
  138. package/dist/chunk-KH3K3OI4.cjs.map +1 -0
  139. package/dist/chunk-KR33HZBW.js +31 -0
  140. package/dist/chunk-KR33HZBW.js.map +1 -0
  141. package/dist/chunk-KWIGG26N.js +3 -0
  142. package/dist/chunk-KWIGG26N.js.map +1 -0
  143. package/dist/chunk-KZBS5RNE.js +41 -0
  144. package/dist/chunk-KZBS5RNE.js.map +1 -0
  145. package/dist/chunk-L4SZQQK6.cjs +171 -0
  146. package/dist/chunk-L4SZQQK6.cjs.map +1 -0
  147. package/dist/chunk-L56JW56Y.cjs +129 -0
  148. package/dist/chunk-L56JW56Y.cjs.map +1 -0
  149. package/dist/chunk-LQPOFYD3.js +47 -0
  150. package/dist/chunk-LQPOFYD3.js.map +1 -0
  151. package/dist/chunk-LQQ244AY.js +28 -0
  152. package/dist/chunk-LQQ244AY.js.map +1 -0
  153. package/dist/chunk-LRBADBNS.cjs +23 -0
  154. package/dist/chunk-LRBADBNS.cjs.map +1 -0
  155. package/dist/chunk-LUCDLADP.cjs +49 -0
  156. package/dist/chunk-LUCDLADP.cjs.map +1 -0
  157. package/dist/chunk-LUFPA3WC.cjs +93 -0
  158. package/dist/chunk-LUFPA3WC.cjs.map +1 -0
  159. package/dist/chunk-M3HMXHAL.cjs +266 -0
  160. package/dist/chunk-M3HMXHAL.cjs.map +1 -0
  161. package/dist/chunk-MDLLVPLD.cjs +35 -0
  162. package/dist/chunk-MDLLVPLD.cjs.map +1 -0
  163. package/dist/chunk-MGWZXPMF.cjs +13 -0
  164. package/dist/chunk-MGWZXPMF.cjs.map +1 -0
  165. package/dist/chunk-NHAD5YHP.js +134 -0
  166. package/dist/chunk-NHAD5YHP.js.map +1 -0
  167. package/dist/chunk-NLGWU2KI.cjs +36 -0
  168. package/dist/chunk-NLGWU2KI.cjs.map +1 -0
  169. package/dist/chunk-NU2XENOZ.js +90 -0
  170. package/dist/chunk-NU2XENOZ.js.map +1 -0
  171. package/dist/chunk-OC2OB575.cjs +200 -0
  172. package/dist/chunk-OC2OB575.cjs.map +1 -0
  173. package/dist/chunk-OT3J7XYM.cjs +120 -0
  174. package/dist/chunk-OT3J7XYM.cjs.map +1 -0
  175. package/dist/chunk-P7CAVAYY.cjs +198 -0
  176. package/dist/chunk-P7CAVAYY.cjs.map +1 -0
  177. package/dist/chunk-PB2N5UFC.js +20 -0
  178. package/dist/chunk-PB2N5UFC.js.map +1 -0
  179. package/dist/chunk-PLL2MFTV.js +26 -0
  180. package/dist/chunk-PLL2MFTV.js.map +1 -0
  181. package/dist/chunk-PLPEZUCB.js +42 -0
  182. package/dist/chunk-PLPEZUCB.js.map +1 -0
  183. package/dist/chunk-PNXBZYED.js +24 -0
  184. package/dist/chunk-PNXBZYED.js.map +1 -0
  185. package/dist/chunk-PONUWUJ7.js +29 -0
  186. package/dist/chunk-PONUWUJ7.js.map +1 -0
  187. package/dist/chunk-PRZZF2EB.js +9 -0
  188. package/dist/chunk-PRZZF2EB.js.map +1 -0
  189. package/dist/chunk-PSRWV7UW.cjs +50 -0
  190. package/dist/chunk-PSRWV7UW.cjs.map +1 -0
  191. package/dist/chunk-PZ5AY32C.js +9 -0
  192. package/dist/chunk-PZ5AY32C.js.map +1 -0
  193. package/dist/chunk-Q7SFCCGT.cjs +11 -0
  194. package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
  195. package/dist/chunk-QDSCHWM3.cjs +64 -0
  196. package/dist/chunk-QDSCHWM3.cjs.map +1 -0
  197. package/dist/chunk-QNVDG3L3.cjs +171 -0
  198. package/dist/chunk-QNVDG3L3.cjs.map +1 -0
  199. package/dist/chunk-RDPMXAQG.cjs +50 -0
  200. package/dist/chunk-RDPMXAQG.cjs.map +1 -0
  201. package/dist/chunk-RIG6I4HV.cjs +49 -0
  202. package/dist/chunk-RIG6I4HV.cjs.map +1 -0
  203. package/dist/chunk-ROBFZCJT.js +176 -0
  204. package/dist/chunk-ROBFZCJT.js.map +1 -0
  205. package/dist/chunk-RYAVZOGW.js +46 -0
  206. package/dist/chunk-RYAVZOGW.js.map +1 -0
  207. package/dist/chunk-SBPJFFRB.js +107 -0
  208. package/dist/chunk-SBPJFFRB.js.map +1 -0
  209. package/dist/chunk-SKMP4FO7.cjs +42 -0
  210. package/dist/chunk-SKMP4FO7.cjs.map +1 -0
  211. package/dist/chunk-SMDQTPJE.cjs +31 -0
  212. package/dist/chunk-SMDQTPJE.cjs.map +1 -0
  213. package/dist/chunk-SPAVM3EE.cjs +95 -0
  214. package/dist/chunk-SPAVM3EE.cjs.map +1 -0
  215. package/dist/chunk-T6O5RJA3.js +91 -0
  216. package/dist/chunk-T6O5RJA3.js.map +1 -0
  217. package/dist/chunk-T7LYMPIA.js +49 -0
  218. package/dist/chunk-T7LYMPIA.js.map +1 -0
  219. package/dist/chunk-TBV7NDAG.cjs +37 -0
  220. package/dist/chunk-TBV7NDAG.cjs.map +1 -0
  221. package/dist/chunk-TCV6N3EK.js +400 -0
  222. package/dist/chunk-TCV6N3EK.js.map +1 -0
  223. package/dist/chunk-TJVXG27I.cjs +13 -0
  224. package/dist/chunk-TJVXG27I.cjs.map +1 -0
  225. package/dist/chunk-U2T647VT.cjs +144 -0
  226. package/dist/chunk-U2T647VT.cjs.map +1 -0
  227. package/dist/chunk-U3D4LL6T.js +54 -0
  228. package/dist/chunk-U3D4LL6T.js.map +1 -0
  229. package/dist/chunk-U6G7EXM6.js +33 -0
  230. package/dist/chunk-U6G7EXM6.js.map +1 -0
  231. package/dist/chunk-USQZOJUG.cjs +121 -0
  232. package/dist/chunk-USQZOJUG.cjs.map +1 -0
  233. package/dist/chunk-UTPXIIHX.js +24 -0
  234. package/dist/chunk-UTPXIIHX.js.map +1 -0
  235. package/dist/chunk-UTYX2NMA.cjs +47 -0
  236. package/dist/chunk-UTYX2NMA.cjs.map +1 -0
  237. package/dist/chunk-V563IKQH.cjs +4 -0
  238. package/dist/chunk-V563IKQH.cjs.map +1 -0
  239. package/dist/chunk-VANX3AQD.js +3 -0
  240. package/dist/chunk-VANX3AQD.js.map +1 -0
  241. package/dist/chunk-VM36U3TK.js +106 -0
  242. package/dist/chunk-VM36U3TK.js.map +1 -0
  243. package/dist/chunk-VUBXXZUL.cjs +22 -0
  244. package/dist/chunk-VUBXXZUL.cjs.map +1 -0
  245. package/dist/chunk-VXNZRGLE.cjs +140 -0
  246. package/dist/chunk-VXNZRGLE.cjs.map +1 -0
  247. package/dist/chunk-VYILTAQR.cjs +51 -0
  248. package/dist/chunk-VYILTAQR.cjs.map +1 -0
  249. package/dist/chunk-W4VQ5YRX.js +45 -0
  250. package/dist/chunk-W4VQ5YRX.js.map +1 -0
  251. package/dist/chunk-W6BMYVY5.js +17 -0
  252. package/dist/chunk-W6BMYVY5.js.map +1 -0
  253. package/dist/chunk-WAZSWGCH.js +47 -0
  254. package/dist/chunk-WAZSWGCH.js.map +1 -0
  255. package/dist/chunk-WPH6SRZT.js +48 -0
  256. package/dist/chunk-WPH6SRZT.js.map +1 -0
  257. package/dist/chunk-WRANITBW.cjs +48 -0
  258. package/dist/chunk-WRANITBW.cjs.map +1 -0
  259. package/dist/chunk-WSDKENUA.cjs +99 -0
  260. package/dist/chunk-WSDKENUA.cjs.map +1 -0
  261. package/dist/chunk-WYSZMCAK.js +12 -0
  262. package/dist/chunk-WYSZMCAK.js.map +1 -0
  263. package/dist/chunk-XAPQTBJR.cjs +45 -0
  264. package/dist/chunk-XAPQTBJR.cjs.map +1 -0
  265. package/dist/chunk-XCYNYXC7.cjs +81 -0
  266. package/dist/chunk-XCYNYXC7.cjs.map +1 -0
  267. package/dist/chunk-XFGURTBJ.js +259 -0
  268. package/dist/chunk-XFGURTBJ.js.map +1 -0
  269. package/dist/chunk-XKKJHTSY.js +77 -0
  270. package/dist/chunk-XKKJHTSY.js.map +1 -0
  271. package/dist/chunk-XUTLQ573.cjs +20 -0
  272. package/dist/chunk-XUTLQ573.cjs.map +1 -0
  273. package/dist/chunk-YB2USB4M.js +17 -0
  274. package/dist/chunk-YB2USB4M.js.map +1 -0
  275. package/dist/chunk-YEYEUQM6.cjs +13 -0
  276. package/dist/chunk-YEYEUQM6.cjs.map +1 -0
  277. package/dist/chunk-YPA6HVCD.cjs +34 -0
  278. package/dist/chunk-YPA6HVCD.cjs.map +1 -0
  279. package/dist/chunk-YUA4DBYT.js +23 -0
  280. package/dist/chunk-YUA4DBYT.js.map +1 -0
  281. package/dist/chunk-Z33TWZHI.js +81 -0
  282. package/dist/chunk-Z33TWZHI.js.map +1 -0
  283. package/dist/chunk-ZBCGHL2Z.cjs +108 -0
  284. package/dist/chunk-ZBCGHL2Z.cjs.map +1 -0
  285. package/dist/chunk-ZC7K3XKN.cjs +51 -0
  286. package/dist/chunk-ZC7K3XKN.cjs.map +1 -0
  287. package/dist/chunk-ZZCTMR2F.cjs +37 -0
  288. package/dist/chunk-ZZCTMR2F.cjs.map +1 -0
  289. package/dist/components/buttons/BackButton.cjs +11 -153
  290. package/dist/components/buttons/BackButton.cjs.map +1 -1
  291. package/dist/components/buttons/BackButton.js +7 -134
  292. package/dist/components/buttons/BackButton.js.map +1 -1
  293. package/dist/components/company/CompanyBenefits.cjs +10 -31
  294. package/dist/components/company/CompanyBenefits.cjs.map +1 -1
  295. package/dist/components/company/CompanyBenefits.js +3 -8
  296. package/dist/components/company/CompanyBenefits.js.map +1 -1
  297. package/dist/components/company/CompanyInformation.cjs +9 -86
  298. package/dist/components/company/CompanyInformation.cjs.map +1 -1
  299. package/dist/components/company/CompanyInformation.js +4 -53
  300. package/dist/components/company/CompanyInformation.js.map +1 -1
  301. package/dist/components/company/CompanyTake.cjs +10 -122
  302. package/dist/components/company/CompanyTake.cjs.map +1 -1
  303. package/dist/components/company/CompanyTake.js +6 -91
  304. package/dist/components/company/CompanyTake.js.map +1 -1
  305. package/dist/components/jobCard/JobLocation.cjs +11 -151
  306. package/dist/components/jobCard/JobLocation.cjs.map +1 -1
  307. package/dist/components/jobCard/JobLocation.js +7 -121
  308. package/dist/components/jobCard/JobLocation.js.map +1 -1
  309. package/dist/components/jobPost/JobDescription.cjs +10 -347
  310. package/dist/components/jobPost/JobDescription.cjs.map +1 -1
  311. package/dist/components/jobPost/JobDescription.js +6 -315
  312. package/dist/components/jobPost/JobDescription.js.map +1 -1
  313. package/dist/components/jobPost/JobHeader.cjs +16 -406
  314. package/dist/components/jobPost/JobHeader.cjs.map +1 -1
  315. package/dist/components/jobPost/JobHeader.js +12 -398
  316. package/dist/components/jobPost/JobHeader.js.map +1 -1
  317. package/dist/components/jobPost/JobPost.cjs +42 -1820
  318. package/dist/components/jobPost/JobPost.cjs.map +1 -1
  319. package/dist/components/jobPost/JobPost.js +33 -1812
  320. package/dist/components/jobPost/JobPost.js.map +1 -1
  321. package/dist/components/primitives/avatar.cjs +17 -82
  322. package/dist/components/primitives/avatar.cjs.map +1 -1
  323. package/dist/components/primitives/avatar.js +4 -50
  324. package/dist/components/primitives/avatar.js.map +1 -1
  325. package/dist/components/primitives/command.cjs +41 -207
  326. package/dist/components/primitives/command.cjs.map +1 -1
  327. package/dist/components/primitives/command.js +5 -170
  328. package/dist/components/primitives/command.js.map +1 -1
  329. package/dist/components/primitives/dialog.cjs +45 -124
  330. package/dist/components/primitives/dialog.cjs.map +1 -1
  331. package/dist/components/primitives/dialog.js +4 -85
  332. package/dist/components/primitives/dialog.js.map +1 -1
  333. package/dist/components/primitives/input-otp.cjs +20 -90
  334. package/dist/components/primitives/input-otp.cjs.map +1 -1
  335. package/dist/components/primitives/input-otp.js +4 -58
  336. package/dist/components/primitives/input-otp.js.map +1 -1
  337. package/dist/components/primitives/popover.cjs +17 -67
  338. package/dist/components/primitives/popover.cjs.map +1 -1
  339. package/dist/components/primitives/popover.js +4 -35
  340. package/dist/components/primitives/popover.js.map +1 -1
  341. package/dist/components/primitives/radio-group.cjs +12 -64
  342. package/dist/components/primitives/radio-group.cjs.map +1 -1
  343. package/dist/components/primitives/radio-group.js +4 -36
  344. package/dist/components/primitives/radio-group.js.map +1 -1
  345. package/dist/components/primitives/separator.cjs +9 -62
  346. package/dist/components/primitives/separator.cjs.map +1 -1
  347. package/dist/components/primitives/separator.js +4 -32
  348. package/dist/components/primitives/separator.js.map +1 -1
  349. package/dist/components/primitives/tooltip.cjs +21 -69
  350. package/dist/components/primitives/tooltip.cjs.map +1 -1
  351. package/dist/components/primitives/tooltip.js +4 -36
  352. package/dist/components/primitives/tooltip.js.map +1 -1
  353. package/dist/components/ui/Avatar.cjs +12 -105
  354. package/dist/components/ui/Avatar.cjs.map +1 -1
  355. package/dist/components/ui/Avatar.js +5 -75
  356. package/dist/components/ui/Avatar.js.map +1 -1
  357. package/dist/components/ui/Badge.cjs +12 -62
  358. package/dist/components/ui/Badge.cjs.map +1 -1
  359. package/dist/components/ui/Badge.js +4 -31
  360. package/dist/components/ui/Badge.js.map +1 -1
  361. package/dist/components/ui/Button.cjs +13 -299
  362. package/dist/components/ui/Button.cjs.map +1 -1
  363. package/dist/components/ui/Button.js +4 -267
  364. package/dist/components/ui/Button.js.map +1 -1
  365. package/dist/components/ui/Checkbox.cjs +13 -109
  366. package/dist/components/ui/Checkbox.cjs.map +1 -1
  367. package/dist/components/ui/Checkbox.js +5 -81
  368. package/dist/components/ui/Checkbox.js.map +1 -1
  369. package/dist/components/ui/Chip.cjs +8 -59
  370. package/dist/components/ui/Chip.cjs.map +1 -1
  371. package/dist/components/ui/Chip.js +3 -29
  372. package/dist/components/ui/Chip.js.map +1 -1
  373. package/dist/components/ui/Combobox.cjs +22 -591
  374. package/dist/components/ui/Combobox.cjs.map +1 -1
  375. package/dist/components/ui/Combobox.js +14 -560
  376. package/dist/components/ui/Combobox.js.map +1 -1
  377. package/dist/components/ui/Counter.cjs +11 -226
  378. package/dist/components/ui/Counter.cjs.map +1 -1
  379. package/dist/components/ui/Counter.js +7 -197
  380. package/dist/components/ui/Counter.js.map +1 -1
  381. package/dist/components/ui/DatePicker.cjs +14 -274
  382. package/dist/components/ui/DatePicker.cjs.map +1 -1
  383. package/dist/components/ui/DatePicker.js +10 -245
  384. package/dist/components/ui/DatePicker.js.map +1 -1
  385. package/dist/components/ui/DismissibleBanner.cjs +9 -77
  386. package/dist/components/ui/DismissibleBanner.cjs.map +1 -1
  387. package/dist/components/ui/DismissibleBanner.js +4 -56
  388. package/dist/components/ui/DismissibleBanner.js.map +1 -1
  389. package/dist/components/ui/ErrorMessage.cjs +7 -36
  390. package/dist/components/ui/ErrorMessage.cjs.map +1 -1
  391. package/dist/components/ui/ErrorMessage.js +4 -16
  392. package/dist/components/ui/ErrorMessage.js.map +1 -1
  393. package/dist/components/ui/Icon.cjs +9 -108
  394. package/dist/components/ui/Icon.cjs.map +1 -1
  395. package/dist/components/ui/Icon.js +4 -87
  396. package/dist/components/ui/Icon.js.map +1 -1
  397. package/dist/components/ui/Input.cjs +9 -186
  398. package/dist/components/ui/Input.cjs.map +1 -1
  399. package/dist/components/ui/Input.js +7 -159
  400. package/dist/components/ui/Input.js.map +1 -1
  401. package/dist/components/ui/InputOtp.cjs +12 -175
  402. package/dist/components/ui/InputOtp.cjs.map +1 -1
  403. package/dist/components/ui/InputOtp.js +8 -145
  404. package/dist/components/ui/InputOtp.js.map +1 -1
  405. package/dist/components/ui/Label.cjs +7 -79
  406. package/dist/components/ui/Label.cjs.map +1 -1
  407. package/dist/components/ui/Label.js +5 -52
  408. package/dist/components/ui/Label.js.map +1 -1
  409. package/dist/components/ui/LinkButton.cjs +10 -58
  410. package/dist/components/ui/LinkButton.cjs.map +1 -1
  411. package/dist/components/ui/LinkButton.js +3 -25
  412. package/dist/components/ui/LinkButton.js.map +1 -1
  413. package/dist/components/ui/ListItem.cjs +8 -150
  414. package/dist/components/ui/ListItem.cjs.map +1 -1
  415. package/dist/components/ui/ListItem.js +6 -125
  416. package/dist/components/ui/ListItem.js.map +1 -1
  417. package/dist/components/ui/Map/ClusterMarker.cjs +9 -74
  418. package/dist/components/ui/Map/ClusterMarker.cjs.map +1 -1
  419. package/dist/components/ui/Map/ClusterMarker.js +5 -55
  420. package/dist/components/ui/Map/ClusterMarker.js.map +1 -1
  421. package/dist/components/ui/Map/FocusCircle.cjs +9 -81
  422. package/dist/components/ui/Map/FocusCircle.cjs.map +1 -1
  423. package/dist/components/ui/Map/FocusCircle.js +4 -61
  424. package/dist/components/ui/Map/FocusCircle.js.map +1 -1
  425. package/dist/components/ui/Map/IndividualMarker.cjs +9 -55
  426. package/dist/components/ui/Map/IndividualMarker.cjs.map +1 -1
  427. package/dist/components/ui/Map/IndividualMarker.js +4 -35
  428. package/dist/components/ui/Map/IndividualMarker.js.map +1 -1
  429. package/dist/components/ui/Map/MapComponent.cjs +16 -395
  430. package/dist/components/ui/Map/MapComponent.cjs.map +1 -1
  431. package/dist/components/ui/Map/MapComponent.js +12 -366
  432. package/dist/components/ui/Map/MapComponent.js.map +1 -1
  433. package/dist/components/ui/Map/MapContent.cjs +13 -273
  434. package/dist/components/ui/Map/MapContent.cjs.map +1 -1
  435. package/dist/components/ui/Map/MapContent.js +9 -254
  436. package/dist/components/ui/Map/MapContent.js.map +1 -1
  437. package/dist/components/ui/Map/clustering.cjs +13 -99
  438. package/dist/components/ui/Map/clustering.cjs.map +1 -1
  439. package/dist/components/ui/Map/clustering.js +5 -76
  440. package/dist/components/ui/Map/clustering.js.map +1 -1
  441. package/dist/components/ui/Map/constants.cjs +33 -61
  442. package/dist/components/ui/Map/constants.cjs.map +1 -1
  443. package/dist/components/ui/Map/constants.js +3 -33
  444. package/dist/components/ui/Map/constants.js.map +1 -1
  445. package/dist/components/ui/Map/hooks.cjs +18 -90
  446. package/dist/components/ui/Map/hooks.cjs.map +1 -1
  447. package/dist/components/ui/Map/hooks.js +6 -58
  448. package/dist/components/ui/Map/hooks.js.map +1 -1
  449. package/dist/components/ui/Map/index.cjs +21 -400
  450. package/dist/components/ui/Map/index.cjs.map +1 -1
  451. package/dist/components/ui/Map/index.js +13 -364
  452. package/dist/components/ui/Map/index.js.map +1 -1
  453. package/dist/components/ui/Map/types.cjs +2 -17
  454. package/dist/components/ui/Map/types.cjs.map +1 -1
  455. package/dist/components/ui/Map/types.js +2 -0
  456. package/dist/components/ui/Map/types.js.map +1 -1
  457. package/dist/components/ui/Map/utils.cjs +25 -75
  458. package/dist/components/ui/Map/utils.cjs.map +1 -1
  459. package/dist/components/ui/Map/utils.js +4 -48
  460. package/dist/components/ui/Map/utils.js.map +1 -1
  461. package/dist/components/ui/PlacesQueryInput.cjs +9 -301
  462. package/dist/components/ui/PlacesQueryInput.cjs.map +1 -1
  463. package/dist/components/ui/PlacesQueryInput.js +7 -275
  464. package/dist/components/ui/PlacesQueryInput.js.map +1 -1
  465. package/dist/components/ui/Radio.cjs +12 -151
  466. package/dist/components/ui/Radio.cjs.map +1 -1
  467. package/dist/components/ui/Radio.js +8 -123
  468. package/dist/components/ui/Radio.js.map +1 -1
  469. package/dist/components/ui/ReadMore.cjs +9 -340
  470. package/dist/components/ui/ReadMore.cjs.map +1 -1
  471. package/dist/components/ui/ReadMore.js +5 -311
  472. package/dist/components/ui/ReadMore.js.map +1 -1
  473. package/dist/components/ui/Select.cjs +11 -303
  474. package/dist/components/ui/Select.cjs.map +1 -1
  475. package/dist/components/ui/Select.js +9 -282
  476. package/dist/components/ui/Select.js.map +1 -1
  477. package/dist/components/ui/StepTabs.cjs +9 -129
  478. package/dist/components/ui/StepTabs.cjs.map +1 -1
  479. package/dist/components/ui/StepTabs.js +4 -99
  480. package/dist/components/ui/StepTabs.js.map +1 -1
  481. package/dist/components/ui/Switch.cjs +9 -69
  482. package/dist/components/ui/Switch.cjs.map +1 -1
  483. package/dist/components/ui/Switch.js +5 -39
  484. package/dist/components/ui/Switch.js.map +1 -1
  485. package/dist/components/ui/buttonShadcn.cjs +13 -81
  486. package/dist/components/ui/buttonShadcn.cjs.map +1 -1
  487. package/dist/components/ui/buttonShadcn.js +4 -49
  488. package/dist/components/ui/buttonShadcn.js.map +1 -1
  489. package/dist/components/ui/calendar.cjs +9 -135
  490. package/dist/components/ui/calendar.cjs.map +1 -1
  491. package/dist/components/ui/calendar.js +5 -106
  492. package/dist/components/ui/calendar.js.map +1 -1
  493. package/dist/contexts/WindowHistoryProvider.cjs +13 -43
  494. package/dist/contexts/WindowHistoryProvider.cjs.map +1 -1
  495. package/dist/contexts/WindowHistoryProvider.js +3 -21
  496. package/dist/contexts/WindowHistoryProvider.js.map +1 -1
  497. package/dist/hooks/useDisplayText.cjs +10 -496
  498. package/dist/hooks/useDisplayText.cjs.map +1 -1
  499. package/dist/hooks/useDisplayText.js +6 -476
  500. package/dist/hooks/useDisplayText.js.map +1 -1
  501. package/dist/hooks/useWindowHistory.cjs +9 -37
  502. package/dist/hooks/useWindowHistory.cjs.map +1 -1
  503. package/dist/hooks/useWindowHistory.js +4 -16
  504. package/dist/hooks/useWindowHistory.js.map +1 -1
  505. package/dist/index.cjs +216 -4128
  506. package/dist/index.cjs.map +1 -1
  507. package/dist/index.js +73 -4107
  508. package/dist/index.js.map +1 -1
  509. package/dist/lib/google.cjs +21 -81
  510. package/dist/lib/google.cjs.map +1 -1
  511. package/dist/lib/google.js +3 -57
  512. package/dist/lib/google.js.map +1 -1
  513. package/dist/lib/icons.cjs +10 -50
  514. package/dist/lib/icons.cjs.map +1 -1
  515. package/dist/lib/icons.js +3 -48
  516. package/dist/lib/icons.js.map +1 -1
  517. package/dist/lib/locations.cjs +17 -66
  518. package/dist/lib/locations.cjs.map +1 -1
  519. package/dist/lib/locations.js +3 -42
  520. package/dist/lib/locations.js.map +1 -1
  521. package/dist/lib/mappings.cjs +45 -439
  522. package/dist/lib/mappings.cjs.map +1 -1
  523. package/dist/lib/mappings.js +3 -408
  524. package/dist/lib/mappings.js.map +1 -1
  525. package/dist/lib/salaryRange.cjs +14 -453
  526. package/dist/lib/salaryRange.cjs.map +1 -1
  527. package/dist/lib/salaryRange.js +10 -437
  528. package/dist/lib/salaryRange.js.map +1 -1
  529. package/dist/lib/utils.cjs +10 -32
  530. package/dist/lib/utils.cjs.map +1 -1
  531. package/dist/lib/utils.js +3 -9
  532. package/dist/lib/utils.js.map +1 -1
  533. package/dist/services/displayText.cjs +9 -464
  534. package/dist/services/displayText.cjs.map +1 -1
  535. package/dist/services/displayText.js +5 -442
  536. package/dist/services/displayText.js.map +1 -1
  537. package/dist/types/data/company_service_latest.cjs +73 -246
  538. package/dist/types/data/company_service_latest.cjs.map +1 -1
  539. package/dist/types/data/company_service_latest.js +4 -209
  540. package/dist/types/data/company_service_latest.js.map +1 -1
  541. package/dist/types/data/job_posting_service_latest.cjs +42 -276
  542. package/dist/types/data/job_posting_service_latest.cjs.map +1 -1
  543. package/dist/types/data/job_posting_service_latest.js +5 -256
  544. package/dist/types/data/job_posting_service_latest.js.map +1 -1
  545. package/dist/types/data/shared_pickle_output_latest.cjs +39 -99
  546. package/dist/types/data/shared_pickle_output_latest.cjs.map +1 -1
  547. package/dist/types/data/shared_pickle_output_latest.js +3 -74
  548. package/dist/types/data/shared_pickle_output_latest.js.map +1 -1
  549. package/dist/types/displayText.errors.cjs +13 -40
  550. package/dist/types/displayText.errors.cjs.map +1 -1
  551. package/dist/types/displayText.errors.js +3 -17
  552. package/dist/types/displayText.errors.js.map +1 -1
  553. package/dist/types/index.cjs +28 -494
  554. package/dist/types/index.cjs.map +1 -1
  555. package/dist/types/index.js +9 -478
  556. package/dist/types/index.js.map +1 -1
  557. package/dist/types/latest/company_service_latest.cjs +73 -246
  558. package/dist/types/latest/company_service_latest.cjs.map +1 -1
  559. package/dist/types/latest/company_service_latest.js +4 -209
  560. package/dist/types/latest/company_service_latest.js.map +1 -1
  561. package/dist/types/latest/custom/company_service_sanity.cjs +46 -307
  562. package/dist/types/latest/custom/company_service_sanity.cjs.map +1 -1
  563. package/dist/types/latest/custom/company_service_sanity.js +6 -287
  564. package/dist/types/latest/custom/company_service_sanity.js.map +1 -1
  565. package/dist/types/latest/custom/custom_sanity_models.cjs +13 -39
  566. package/dist/types/latest/custom/custom_sanity_models.cjs.map +1 -1
  567. package/dist/types/latest/custom/custom_sanity_models.js +3 -16
  568. package/dist/types/latest/custom/custom_sanity_models.js.map +1 -1
  569. package/dist/types/latest/custom/job_posting_service_sanity.cjs +66 -353
  570. package/dist/types/latest/custom/job_posting_service_sanity.cjs.map +1 -1
  571. package/dist/types/latest/custom/job_posting_service_sanity.js +7 -330
  572. package/dist/types/latest/custom/job_posting_service_sanity.js.map +1 -1
  573. package/dist/types/latest/job_posting_service_latest.cjs +42 -276
  574. package/dist/types/latest/job_posting_service_latest.cjs.map +1 -1
  575. package/dist/types/latest/job_posting_service_latest.js +5 -256
  576. package/dist/types/latest/job_posting_service_latest.js.map +1 -1
  577. package/dist/types/latest/shared_pickle_output_latest.cjs +39 -99
  578. package/dist/types/latest/shared_pickle_output_latest.cjs.map +1 -1
  579. package/dist/types/latest/shared_pickle_output_latest.js +3 -74
  580. package/dist/types/latest/shared_pickle_output_latest.js.map +1 -1
  581. package/package.json +2 -2
@@ -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":";;;AAGA,SAAS,SAAS,oBAAoB;AACtC,SAAS,aAAa,WAAW,QAAQ,gBAAgB;;;ACDzD,SAAS,WAAW,wBAAwB;AAC5C,SAAS,cAAc;AACvB,YAAYA,YAAW;;;ACHvB,YAAY,qBAAqB;AACjC,SAAS,SAAS;AAClB,YAAYC,YAAW;;;ACJvB,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ADOA,IAAM,eAA+B;AAIrC,IAAM,gBAAsB,kBAG1B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAiB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,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f,WAAU;AAAA;AAAA,EACZ,GACC,wBACC,oCAAC,gBAAa,WAAU,wHAAuH,GAEhJ,SACC;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAU;AAAA,MACV,SAAS;AAAA;AAAA,IAET,oCAAC,WAAQ,WAAU,0BAAyB;AAAA,EAC9C,CAEJ,GACC,eACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA,mBAAmB,gBAAgB;AAAA,MACrC;AAAA;AAAA,IAEA,oCAAC,oBAAa,YAAU;AAAA,IACxB,oCAAC,oBACE,YAAY,IAAI,CAAC,eAChB;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,WAAW;AAAA,QAChB,UAAU,MAAM,aAAa,UAAU;AAAA,QACvC,WAAU;AAAA;AAAA,MAET,WAAW;AAAA,IACd,CACD,CACH;AAAA,EACF,CAEJ,CACF;AAEJ;AAEA,IAAO,2BAAQ;","names":["React","React"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"PlacesQueryInput.js"}
@@ -1,157 +1,18 @@
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);
1
+ 'use strict';
29
2
 
30
- // src/components/ui/Radio.tsx
31
- var Radio_exports = {};
32
- __export(Radio_exports, {
33
- Radio: () => Radio
34
- });
35
- module.exports = __toCommonJS(Radio_exports);
36
- var import_react2 = require("react");
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 chunkDVSHUNGT_cjs = require('../../chunk-DVSHUNGT.cjs');
4
+ require('../../chunk-3BGXWNKI.cjs');
5
+ require('../../chunk-HMKEBIBE.cjs');
6
+ require('../../chunk-UTYX2NMA.cjs');
7
+ require('../../chunk-RDPMXAQG.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
- // src/components/ui/Radio.tsx
116
- var Radio = (0, import_react2.forwardRef)(
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 chunkDVSHUNGT_cjs.Radio; }
156
16
  });
17
+ //# sourceMappingURL=Radio.cjs.map
157
18
  //# sourceMappingURL=Radio.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ui/Radio.tsx","../../../src/components/primitives/radio-group.tsx","../../../src/lib/utils.ts","../../../src/components/ui/ErrorMessage.tsx","../../../src/components/ui/Label.tsx","../../../src/components/primitives/tooltip.tsx"],"sourcesContent":["import { type ComponentProps, forwardRef } from 'react'\n\nimport { RadioGroup, RadioGroupItem } from '@/components/primitives/radio-group'\nimport ErrorMessage from '@/components/ui/ErrorMessage'\nimport Label from '@/components/ui/Label'\nimport { cn } from '@/lib/utils'\n\ntype RadioItem = { id: string | number; title: string; value: string }\ntype RadioClassNames = { root?: string; group?: string; item?: string }\ntype RadioGroupProps = Omit<ComponentProps<typeof RadioGroup>, 'onValueChange'>\nexport type RadioProps = RadioGroupProps & {\n label?: string\n error?: string\n description?: string\n classNames?: RadioClassNames\n options?: RadioItem[]\n onChange?: (value: string) => void\n}\n\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(\n (\n {\n label,\n error,\n description,\n options,\n classNames,\n onChange: handleValueChange,\n orientation,\n ...props\n },\n ref\n ) => {\n return (\n <div className={cn('flex flex-col gap-1', classNames?.root)}>\n <Label text={label} description={description} required={props.required} />\n\n <RadioGroup\n ref={ref}\n className={cn(\n 'flex text-sm',\n orientation === 'vertical' ? 'flex-col gap-2' : 'flex-row gap-4',\n classNames?.group\n )}\n onValueChange={handleValueChange}\n {...props}\n >\n {options?.map(({ id, title, value }) => (\n <RadioGroupItem\n key={id}\n value={value}\n id={`radio-group-item-${title}`}\n className={classNames?.item}\n >\n {title}\n </RadioGroupItem>\n ))}\n </RadioGroup>\n\n <ErrorMessage message={error} />\n </div>\n )\n }\n)\nRadio.displayName = 'Radio'\n","'use client'\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport {\n type ComponentPropsWithoutRef,\n type ElementRef,\n forwardRef,\n type PropsWithChildren,\n} from 'react'\n\nimport { cn } from '@/lib/utils'\n\nexport const RadioGroup = forwardRef<\n ElementRef<typeof RadioGroupPrimitive.Root>,\n ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Root className={className} {...props} ref={ref} />\n))\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nexport const RadioGroupItem = forwardRef<\n ElementRef<typeof RadioGroupPrimitive.Item>,\n PropsWithChildren<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>>\n>(({ className, children, ...props }, ref) => {\n return (\n <div className=\"group flex flex-row items-center gap-2\">\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n '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',\n className\n )}\n {...props}\n />\n <label htmlFor={props.id} className=\"text-sm peer-data-[disabled]:text-grey-40\">\n {children}\n </label>\n </div>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\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","import { type ComponentPropsWithoutRef } from 'react'\n\nimport { cn } from '@/lib/utils'\n\ninterface Props extends ComponentPropsWithoutRef<'p'> {\n message?: string\n}\n\nfunction ErrorMessage({ message, className, ...props }: Readonly<Props>) {\n if (!message) return null\n\n return (\n <p className={cn('px-1 text-xs text-red-600', className)} {...props}>\n {message}\n </p>\n )\n}\n\nexport default ErrorMessage\n","import { InfoIcon } from 'lucide-react'\nimport { type ComponentPropsWithoutRef } from 'react'\n\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/primitives/tooltip'\nimport { cn } from '@/lib/utils'\n\ninterface Props extends ComponentPropsWithoutRef<'label'> {\n text?: string\n required?: boolean\n description?: string\n}\n\nfunction Label({ text, required, description, className, ...props }: Readonly<Props>) {\n if (!text) return null\n\n return (\n <div className=\"flex w-full flex-row gap-1\">\n <label\n className={cn(\n 'text-xs text-grey-80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n className\n )}\n {...props}\n >\n {text}\n {required && <span className=\"text-red-600\">&nbsp;*</span>}\n </label>\n\n {!!description && (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>\n <InfoIcon className=\"h-4 w-4\" />\n </TooltipTrigger>\n <TooltipContent className=\"max-w-48\">{description}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )}\n </div>\n )\n}\n\nexport default Label\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,gBAAgD;;;ACEhD,0BAAqC;AACrC,mBAKO;;;ACRP,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADOO,IAAM,iBAAa,yBAGxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B,oCAAqB,0BAApB,EAAyB,WAAuB,GAAG,OAAO,KAAU,CACtE;AACD,WAAW,cAAkC,yBAAK;AAE3C,IAAM,qBAAiB,yBAG5B,CAAC,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC5C,SACE,oCAAC,SAAI,WAAU,4CACb;AAAA,IAAqB;AAAA,IAApB;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACA,oCAAC,WAAM,SAAS,MAAM,IAAI,WAAU,+CACjC,QACH,CACF;AAEJ,CAAC;AACD,eAAe,cAAkC,yBAAK;;;AEhCtD,SAAS,aAAa,EAAE,SAAS,WAAW,GAAG,MAAM,GAAoB;AACvE,MAAI,CAAC,QAAS,QAAO;AAErB,SACE,oCAAC,OAAE,WAAW,GAAG,6BAA6B,SAAS,GAAI,GAAG,SAC3D,OACH;AAEJ;AAEA,IAAO,uBAAQ;;;AClBf,0BAAyB;;;ACEzB,uBAAkC;AAClC,IAAAC,SAAuB;A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AAAA,MAEH,SAAS,IAAI,CAAC,EAAE,IAAI,OAAO,MAAM,MAChC;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,UACL;AAAA,UACA,IAAI,oBAAoB,KAAK;AAAA,UAC7B,WAAW,YAAY;AAAA;AAAA,QAEtB;AAAA,MACH,CACD;AAAA,IACH,GAEA,oCAAC,wBAAa,SAAS,OAAO,CAChC;AAAA,EAEJ;AACF;AACA,MAAM,cAAc;","names":["import_react","React"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Radio.cjs"}
@@ -1,124 +1,9 @@
1
- // src/components/ui/Radio.tsx
2
- import { forwardRef as forwardRef3 } from "react";
3
-
4
- // src/components/primitives/radio-group.tsx
5
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
6
- import {
7
- forwardRef
8
- } from "react";
9
-
10
- // src/lib/utils.ts
11
- import { clsx } from "clsx";
12
- import { twMerge } from "tailwind-merge";
13
- function cn(...inputs) {
14
- return twMerge(clsx(inputs));
15
- }
16
-
17
- // src/components/primitives/radio-group.tsx
18
- var RadioGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(RadioGroupPrimitive.Root, { className, ...props, ref }));
19
- RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
20
- var RadioGroupItem = forwardRef(({ className, children, ...props }, ref) => {
21
- return /* @__PURE__ */ React.createElement("div", { className: "group flex flex-row items-center gap-2" }, /* @__PURE__ */ React.createElement(
22
- RadioGroupPrimitive.Item,
23
- {
24
- ref,
25
- className: cn(
26
- "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",
27
- className
28
- ),
29
- ...props
30
- }
31
- ), /* @__PURE__ */ React.createElement("label", { htmlFor: props.id, className: "text-sm peer-data-[disabled]:text-grey-40" }, children));
32
- });
33
- RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
34
-
35
- // src/components/ui/ErrorMessage.tsx
36
- function ErrorMessage({ message, className, ...props }) {
37
- if (!message) return null;
38
- return /* @__PURE__ */ React.createElement("p", { className: cn("px-1 text-xs text-red-600", className), ...props }, message);
39
- }
40
- var ErrorMessage_default = ErrorMessage;
41
-
42
- // src/components/ui/Label.tsx
43
- import { InfoIcon } from "lucide-react";
44
-
45
- // src/components/primitives/tooltip.tsx
46
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
47
- import * as React2 from "react";
48
- var TooltipProvider = TooltipPrimitive.Provider;
49
- var Tooltip = TooltipPrimitive.Root;
50
- var TooltipTrigger = TooltipPrimitive.Trigger;
51
- var TooltipContent = React2.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React2.createElement(
52
- TooltipPrimitive.Content,
53
- {
54
- ref,
55
- sideOffset,
56
- className: cn(
57
- "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",
58
- className
59
- ),
60
- ...props
61
- }
62
- ));
63
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
64
-
65
- // src/components/ui/Label.tsx
66
- function Label({ text, required, description, className, ...props }) {
67
- if (!text) return null;
68
- return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-row gap-1" }, /* @__PURE__ */ React.createElement(
69
- "label",
70
- {
71
- className: cn(
72
- "text-xs text-grey-80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
73
- className
74
- ),
75
- ...props
76
- },
77
- text,
78
- required && /* @__PURE__ */ React.createElement("span", { className: "text-red-600" }, "\xA0*")
79
- ), !!description && /* @__PURE__ */ React.createElement(TooltipProvider, null, /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(TooltipTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(InfoIcon, { className: "h-4 w-4" })), /* @__PURE__ */ React.createElement(TooltipContent, { className: "max-w-48" }, description))));
80
- }
81
- var Label_default = Label;
82
-
83
- // src/components/ui/Radio.tsx
84
- var Radio = forwardRef3(
85
- ({
86
- label,
87
- error,
88
- description,
89
- options,
90
- classNames,
91
- onChange: handleValueChange,
92
- orientation,
93
- ...props
94
- }, ref) => {
95
- 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(
96
- RadioGroup,
97
- {
98
- ref,
99
- className: cn(
100
- "flex text-sm",
101
- orientation === "vertical" ? "flex-col gap-2" : "flex-row gap-4",
102
- classNames?.group
103
- ),
104
- onValueChange: handleValueChange,
105
- ...props
106
- },
107
- options?.map(({ id, title, value }) => /* @__PURE__ */ React.createElement(
108
- RadioGroupItem,
109
- {
110
- key: id,
111
- value,
112
- id: `radio-group-item-${title}`,
113
- className: classNames?.item
114
- },
115
- title
116
- ))
117
- ), /* @__PURE__ */ React.createElement(ErrorMessage_default, { message: error }));
118
- }
119
- );
120
- Radio.displayName = "Radio";
121
- export {
122
- Radio
123
- };
1
+ export { Radio } from '../../chunk-WAZSWGCH.js';
2
+ import '../../chunk-UTPXIIHX.js';
3
+ import '../../chunk-WYSZMCAK.js';
4
+ import '../../chunk-7CKQ3FSB.js';
5
+ import '../../chunk-PNXBZYED.js';
6
+ import '../../chunk-2FGZQI42.js';
7
+ import '../../chunk-PZ5AY32C.js';
8
+ //# sourceMappingURL=Radio.js.map
124
9
  //# sourceMappingURL=Radio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ui/Radio.tsx","../../../src/components/primitives/radio-group.tsx","../../../src/lib/utils.ts","../../../src/components/ui/ErrorMessage.tsx","../../../src/components/ui/Label.tsx","../../../src/components/primitives/tooltip.tsx"],"sourcesContent":["import { type ComponentProps, forwardRef } from 'react'\n\nimport { RadioGroup, RadioGroupItem } from '@/components/primitives/radio-group'\nimport ErrorMessage from '@/components/ui/ErrorMessage'\nimport Label from '@/components/ui/Label'\nimport { cn } from '@/lib/utils'\n\ntype RadioItem = { id: string | number; title: string; value: string }\ntype RadioClassNames = { root?: string; group?: string; item?: string }\ntype RadioGroupProps = Omit<ComponentProps<typeof RadioGroup>, 'onValueChange'>\nexport type RadioProps = RadioGroupProps & {\n label?: string\n error?: string\n description?: string\n classNames?: RadioClassNames\n options?: RadioItem[]\n onChange?: (value: string) => void\n}\n\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(\n (\n {\n label,\n error,\n description,\n options,\n classNames,\n onChange: handleValueChange,\n orientation,\n ...props\n },\n ref\n ) => {\n return (\n <div className={cn('flex flex-col gap-1', classNames?.root)}>\n <Label text={label} description={description} required={props.required} />\n\n <RadioGroup\n ref={ref}\n className={cn(\n 'flex text-sm',\n orientation === 'vertical' ? 'flex-col gap-2' : 'flex-row gap-4',\n classNames?.group\n )}\n onValueChange={handleValueChange}\n {...props}\n >\n {options?.map(({ id, title, value }) => (\n <RadioGroupItem\n key={id}\n value={value}\n id={`radio-group-item-${title}`}\n className={classNames?.item}\n >\n {title}\n </RadioGroupItem>\n ))}\n </RadioGroup>\n\n <ErrorMessage message={error} />\n </div>\n )\n }\n)\nRadio.displayName = 'Radio'\n","'use client'\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport {\n type ComponentPropsWithoutRef,\n type ElementRef,\n forwardRef,\n type PropsWithChildren,\n} from 'react'\n\nimport { cn } from '@/lib/utils'\n\nexport const RadioGroup = forwardRef<\n ElementRef<typeof RadioGroupPrimitive.Root>,\n ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Root className={className} {...props} ref={ref} />\n))\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nexport const RadioGroupItem = forwardRef<\n ElementRef<typeof RadioGroupPrimitive.Item>,\n PropsWithChildren<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>>\n>(({ className, children, ...props }, ref) => {\n return (\n <div className=\"group flex flex-row items-center gap-2\">\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n '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',\n className\n )}\n {...props}\n />\n <label htmlFor={props.id} className=\"text-sm peer-data-[disabled]:text-grey-40\">\n {children}\n </label>\n </div>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\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","import { type ComponentPropsWithoutRef } from 'react'\n\nimport { cn } from '@/lib/utils'\n\ninterface Props extends ComponentPropsWithoutRef<'p'> {\n message?: string\n}\n\nfunction ErrorMessage({ message, className, ...props }: Readonly<Props>) {\n if (!message) return null\n\n return (\n <p className={cn('px-1 text-xs text-red-600', className)} {...props}>\n {message}\n </p>\n )\n}\n\nexport default ErrorMessage\n","import { InfoIcon } from 'lucide-react'\nimport { type ComponentPropsWithoutRef } from 'react'\n\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/primitives/tooltip'\nimport { cn } from '@/lib/utils'\n\ninterface Props extends ComponentPropsWithoutRef<'label'> {\n text?: string\n required?: boolean\n description?: string\n}\n\nfunction Label({ text, required, description, className, ...props }: Readonly<Props>) {\n if (!text) return null\n\n return (\n <div className=\"flex w-full flex-row gap-1\">\n <label\n className={cn(\n 'text-xs text-grey-80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n className\n )}\n {...props}\n >\n {text}\n {required && <span className=\"text-red-600\">&nbsp;*</span>}\n </label>\n\n {!!description && (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>\n <InfoIcon className=\"h-4 w-4\" />\n </TooltipTrigger>\n <TooltipContent className=\"max-w-48\">{description}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )}\n </div>\n )\n}\n\nexport default Label\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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AAAA,EAEJ;AACF;AACA,MAAM,cAAc;","names":["forwardRef","React","forwardRef"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Radio.js"}