@satoshibits/react-json-schema-builder 1.0.0 → 1.0.2

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 (437) hide show
  1. package/README.md +142 -37
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs100.js +1 -1
  5. package/dist/index.cjs100.js.map +1 -1
  6. package/dist/index.cjs101.js +1 -38
  7. package/dist/index.cjs101.js.map +1 -1
  8. package/dist/index.cjs102.js +1 -1
  9. package/dist/index.cjs102.js.map +1 -1
  10. package/dist/index.cjs103.js +1 -1
  11. package/dist/index.cjs103.js.map +1 -1
  12. package/dist/index.cjs11.js +1 -1
  13. package/dist/index.cjs11.js.map +1 -1
  14. package/dist/index.cjs12.js +1 -1
  15. package/dist/index.cjs12.js.map +1 -1
  16. package/dist/index.cjs13.js +1 -1
  17. package/dist/index.cjs13.js.map +1 -1
  18. package/dist/index.cjs14.js +1 -1
  19. package/dist/index.cjs14.js.map +1 -1
  20. package/dist/index.cjs15.js +1 -1
  21. package/dist/index.cjs15.js.map +1 -1
  22. package/dist/index.cjs16.js +1 -1
  23. package/dist/index.cjs16.js.map +1 -1
  24. package/dist/index.cjs17.js +1 -1
  25. package/dist/index.cjs17.js.map +1 -1
  26. package/dist/index.cjs18.js +1 -1
  27. package/dist/index.cjs18.js.map +1 -1
  28. package/dist/index.cjs19.js +1 -1
  29. package/dist/index.cjs19.js.map +1 -1
  30. package/dist/index.cjs2.js +1 -1
  31. package/dist/index.cjs2.js.map +1 -1
  32. package/dist/index.cjs20.js +1 -1
  33. package/dist/index.cjs20.js.map +1 -1
  34. package/dist/index.cjs21.js +1 -1
  35. package/dist/index.cjs21.js.map +1 -1
  36. package/dist/index.cjs22.js +1 -1
  37. package/dist/index.cjs22.js.map +1 -1
  38. package/dist/index.cjs23.js +1 -1
  39. package/dist/index.cjs23.js.map +1 -1
  40. package/dist/index.cjs24.js +1 -1
  41. package/dist/index.cjs24.js.map +1 -1
  42. package/dist/index.cjs25.js +1 -1
  43. package/dist/index.cjs25.js.map +1 -1
  44. package/dist/index.cjs26.js +1 -1
  45. package/dist/index.cjs26.js.map +1 -1
  46. package/dist/index.cjs27.js +1 -1
  47. package/dist/index.cjs27.js.map +1 -1
  48. package/dist/index.cjs28.js +1 -1
  49. package/dist/index.cjs28.js.map +1 -1
  50. package/dist/index.cjs29.js +6 -1
  51. package/dist/index.cjs29.js.map +1 -1
  52. package/dist/index.cjs3.js +1 -1
  53. package/dist/index.cjs3.js.map +1 -1
  54. package/dist/index.cjs30.js +1 -6
  55. package/dist/index.cjs30.js.map +1 -1
  56. package/dist/index.cjs31.js +1 -1
  57. package/dist/index.cjs31.js.map +1 -1
  58. package/dist/index.cjs32.js +1 -1
  59. package/dist/index.cjs32.js.map +1 -1
  60. package/dist/index.cjs33.js +1 -9
  61. package/dist/index.cjs33.js.map +1 -1
  62. package/dist/index.cjs34.js +1 -23
  63. package/dist/index.cjs34.js.map +1 -1
  64. package/dist/index.cjs35.js +1 -1
  65. package/dist/index.cjs35.js.map +1 -1
  66. package/dist/index.cjs36.js +1 -1
  67. package/dist/index.cjs36.js.map +1 -1
  68. package/dist/index.cjs37.js +1 -1
  69. package/dist/index.cjs37.js.map +1 -1
  70. package/dist/index.cjs38.js +1 -1
  71. package/dist/index.cjs38.js.map +1 -1
  72. package/dist/index.cjs39.js +1 -1
  73. package/dist/index.cjs39.js.map +1 -1
  74. package/dist/index.cjs4.js +1 -1
  75. package/dist/index.cjs4.js.map +1 -1
  76. package/dist/index.cjs40.js +1 -1
  77. package/dist/index.cjs40.js.map +1 -1
  78. package/dist/index.cjs41.js +1 -1
  79. package/dist/index.cjs41.js.map +1 -1
  80. package/dist/index.cjs42.js +1 -1
  81. package/dist/index.cjs42.js.map +1 -1
  82. package/dist/index.cjs43.js +6 -1
  83. package/dist/index.cjs43.js.map +1 -1
  84. package/dist/index.cjs44.js +6 -1
  85. package/dist/index.cjs44.js.map +1 -1
  86. package/dist/index.cjs45.js +6 -1
  87. package/dist/index.cjs45.js.map +1 -1
  88. package/dist/index.cjs46.js +7 -1
  89. package/dist/index.cjs46.js.map +1 -1
  90. package/dist/index.cjs47.js +1 -1
  91. package/dist/index.cjs47.js.map +1 -1
  92. package/dist/index.cjs48.js +2 -2
  93. package/dist/index.cjs48.js.map +1 -1
  94. package/dist/index.cjs49.js +2 -2
  95. package/dist/index.cjs49.js.map +1 -1
  96. package/dist/index.cjs5.js +1 -1
  97. package/dist/index.cjs5.js.map +1 -1
  98. package/dist/index.cjs50.js +2 -2
  99. package/dist/index.cjs50.js.map +1 -1
  100. package/dist/index.cjs51.js +6 -7
  101. package/dist/index.cjs51.js.map +1 -1
  102. package/dist/index.cjs52.js +1 -1
  103. package/dist/index.cjs52.js.map +1 -1
  104. package/dist/index.cjs53.js +1 -1
  105. package/dist/index.cjs53.js.map +1 -1
  106. package/dist/index.cjs54.js +5 -1
  107. package/dist/index.cjs54.js.map +1 -1
  108. package/dist/index.cjs55.js +1 -6
  109. package/dist/index.cjs55.js.map +1 -1
  110. package/dist/index.cjs56.js +1 -6
  111. package/dist/index.cjs56.js.map +1 -1
  112. package/dist/index.cjs57.js +1 -6
  113. package/dist/index.cjs57.js.map +1 -1
  114. package/dist/index.cjs58.js +1 -6
  115. package/dist/index.cjs58.js.map +1 -1
  116. package/dist/index.cjs59.js +1 -1
  117. package/dist/index.cjs59.js.map +1 -1
  118. package/dist/index.cjs6.js +1 -1
  119. package/dist/index.cjs6.js.map +1 -1
  120. package/dist/index.cjs60.js +1 -1
  121. package/dist/index.cjs60.js.map +1 -1
  122. package/dist/index.cjs61.js +1 -5
  123. package/dist/index.cjs61.js.map +1 -1
  124. package/dist/index.cjs62.js +1 -1
  125. package/dist/index.cjs62.js.map +1 -1
  126. package/dist/index.cjs64.js +1 -1
  127. package/dist/index.cjs64.js.map +1 -1
  128. package/dist/index.cjs65.js +1 -1
  129. package/dist/index.cjs65.js.map +1 -1
  130. package/dist/index.cjs66.js +1 -1
  131. package/dist/index.cjs66.js.map +1 -1
  132. package/dist/index.cjs67.js +1 -1
  133. package/dist/index.cjs67.js.map +1 -1
  134. package/dist/index.cjs68.js +1 -1
  135. package/dist/index.cjs68.js.map +1 -1
  136. package/dist/index.cjs69.js +1 -1
  137. package/dist/index.cjs69.js.map +1 -1
  138. package/dist/index.cjs7.js +1 -1
  139. package/dist/index.cjs7.js.map +1 -1
  140. package/dist/index.cjs70.js +1 -1
  141. package/dist/index.cjs70.js.map +1 -1
  142. package/dist/index.cjs71.js +1 -1
  143. package/dist/index.cjs71.js.map +1 -1
  144. package/dist/index.cjs72.js +1 -1
  145. package/dist/index.cjs72.js.map +1 -1
  146. package/dist/index.cjs73.js +1 -1
  147. package/dist/index.cjs73.js.map +1 -1
  148. package/dist/index.cjs74.js +1 -1
  149. package/dist/index.cjs74.js.map +1 -1
  150. package/dist/index.cjs75.js +1 -1
  151. package/dist/index.cjs75.js.map +1 -1
  152. package/dist/index.cjs76.js +1 -1
  153. package/dist/index.cjs76.js.map +1 -1
  154. package/dist/index.cjs77.js +1 -1
  155. package/dist/index.cjs77.js.map +1 -1
  156. package/dist/index.cjs78.js +1 -1
  157. package/dist/index.cjs78.js.map +1 -1
  158. package/dist/index.cjs79.js +1 -1
  159. package/dist/index.cjs79.js.map +1 -1
  160. package/dist/index.cjs8.js +1 -1
  161. package/dist/index.cjs8.js.map +1 -1
  162. package/dist/index.cjs80.js +1 -1
  163. package/dist/index.cjs80.js.map +1 -1
  164. package/dist/index.cjs81.js +1 -1
  165. package/dist/index.cjs81.js.map +1 -1
  166. package/dist/index.cjs82.js +1 -1
  167. package/dist/index.cjs82.js.map +1 -1
  168. package/dist/index.cjs83.js +1 -1
  169. package/dist/index.cjs83.js.map +1 -1
  170. package/dist/index.cjs84.js +1 -1
  171. package/dist/index.cjs84.js.map +1 -1
  172. package/dist/index.cjs85.js +1 -1
  173. package/dist/index.cjs85.js.map +1 -1
  174. package/dist/index.cjs86.js +1 -1
  175. package/dist/index.cjs86.js.map +1 -1
  176. package/dist/index.cjs87.js +1 -1
  177. package/dist/index.cjs87.js.map +1 -1
  178. package/dist/index.cjs88.js +4 -1
  179. package/dist/index.cjs88.js.map +1 -1
  180. package/dist/index.cjs89.js +1 -1
  181. package/dist/index.cjs89.js.map +1 -1
  182. package/dist/index.cjs9.js +1 -1
  183. package/dist/index.cjs9.js.map +1 -1
  184. package/dist/index.cjs90.js +1 -1
  185. package/dist/index.cjs90.js.map +1 -1
  186. package/dist/index.cjs91.js +1 -1
  187. package/dist/index.cjs91.js.map +1 -1
  188. package/dist/index.cjs92.js +1 -1
  189. package/dist/index.cjs92.js.map +1 -1
  190. package/dist/index.cjs93.js +1 -1
  191. package/dist/index.cjs93.js.map +1 -1
  192. package/dist/index.cjs94.js +38 -1
  193. package/dist/index.cjs94.js.map +1 -1
  194. package/dist/index.cjs95.js +1 -4
  195. package/dist/index.cjs95.js.map +1 -1
  196. package/dist/index.cjs96.js +1 -1
  197. package/dist/index.cjs96.js.map +1 -1
  198. package/dist/index.cjs97.js +1 -1
  199. package/dist/index.cjs97.js.map +1 -1
  200. package/dist/index.cjs98.js +1 -1
  201. package/dist/index.cjs98.js.map +1 -1
  202. package/dist/index.cjs99.js +1 -1
  203. package/dist/index.cjs99.js.map +1 -1
  204. package/dist/index.es10.js +46 -22
  205. package/dist/index.es10.js.map +1 -1
  206. package/dist/index.es100.js +22 -64
  207. package/dist/index.es100.js.map +1 -1
  208. package/dist/index.es101.js +12 -68
  209. package/dist/index.es101.js.map +1 -1
  210. package/dist/index.es102.js +26 -7
  211. package/dist/index.es102.js.map +1 -1
  212. package/dist/index.es103.js +5 -14
  213. package/dist/index.es103.js.map +1 -1
  214. package/dist/index.es11.js +57 -39
  215. package/dist/index.es11.js.map +1 -1
  216. package/dist/index.es12.js +23 -61
  217. package/dist/index.es12.js.map +1 -1
  218. package/dist/index.es13.js +126 -21
  219. package/dist/index.es13.js.map +1 -1
  220. package/dist/index.es14.js +12 -126
  221. package/dist/index.es14.js.map +1 -1
  222. package/dist/index.es15.js +132 -17
  223. package/dist/index.es15.js.map +1 -1
  224. package/dist/index.es16.js +133 -130
  225. package/dist/index.es16.js.map +1 -1
  226. package/dist/index.es17.js +43 -117
  227. package/dist/index.es17.js.map +1 -1
  228. package/dist/index.es18.js +9 -62
  229. package/dist/index.es18.js.map +1 -1
  230. package/dist/index.es19.js +23 -11
  231. package/dist/index.es19.js.map +1 -1
  232. package/dist/index.es2.js +5 -5
  233. package/dist/index.es2.js.map +1 -1
  234. package/dist/index.es20.js +422 -20
  235. package/dist/index.es20.js.map +1 -1
  236. package/dist/index.es21.js +5 -424
  237. package/dist/index.es21.js.map +1 -1
  238. package/dist/index.es22.js +1 -1
  239. package/dist/index.es22.js.map +1 -1
  240. package/dist/index.es23.js +1 -1
  241. package/dist/index.es23.js.map +1 -1
  242. package/dist/index.es24.js +1 -1
  243. package/dist/index.es24.js.map +1 -1
  244. package/dist/index.es25.js +1 -1
  245. package/dist/index.es25.js.map +1 -1
  246. package/dist/index.es26.js +1 -1
  247. package/dist/index.es26.js.map +1 -1
  248. package/dist/index.es27.js +5 -5
  249. package/dist/index.es27.js.map +1 -1
  250. package/dist/index.es28.js +12 -12
  251. package/dist/index.es28.js.map +1 -1
  252. package/dist/index.es29.js +13 -6
  253. package/dist/index.es29.js.map +1 -1
  254. package/dist/index.es3.js +239 -212
  255. package/dist/index.es3.js.map +1 -1
  256. package/dist/index.es30.js +17 -13
  257. package/dist/index.es30.js.map +1 -1
  258. package/dist/index.es31.js +14 -7
  259. package/dist/index.es31.js.map +1 -1
  260. package/dist/index.es32.js +2477 -2
  261. package/dist/index.es32.js.map +1 -1
  262. package/dist/index.es33.js +39 -31
  263. package/dist/index.es33.js.map +1 -1
  264. package/dist/index.es34.js +33 -406
  265. package/dist/index.es34.js.map +1 -1
  266. package/dist/index.es35.js +115 -16
  267. package/dist/index.es35.js.map +1 -1
  268. package/dist/index.es36.js +113 -14
  269. package/dist/index.es36.js.map +1 -1
  270. package/dist/index.es37.js +52 -2473
  271. package/dist/index.es37.js.map +1 -1
  272. package/dist/index.es38.js +23 -40
  273. package/dist/index.es38.js.map +1 -1
  274. package/dist/index.es39.js +45 -33
  275. package/dist/index.es39.js.map +1 -1
  276. package/dist/index.es4.js +5 -5
  277. package/dist/index.es4.js.map +1 -1
  278. package/dist/index.es40.js +79 -109
  279. package/dist/index.es40.js.map +1 -1
  280. package/dist/index.es41.js +56 -110
  281. package/dist/index.es41.js.map +1 -1
  282. package/dist/index.es42.js +824 -48
  283. package/dist/index.es42.js.map +1 -1
  284. package/dist/index.es43.js +10 -24
  285. package/dist/index.es43.js.map +1 -1
  286. package/dist/index.es44.js +10 -45
  287. package/dist/index.es44.js.map +1 -1
  288. package/dist/index.es45.js +10 -86
  289. package/dist/index.es45.js.map +1 -1
  290. package/dist/index.es46.js +120 -57
  291. package/dist/index.es46.js.map +1 -1
  292. package/dist/index.es47.js +55 -824
  293. package/dist/index.es47.js.map +1 -1
  294. package/dist/index.es48.js +15 -4
  295. package/dist/index.es48.js.map +1 -1
  296. package/dist/index.es49.js +3 -4
  297. package/dist/index.es49.js.map +1 -1
  298. package/dist/index.es5.js +62 -62
  299. package/dist/index.es5.js.map +1 -1
  300. package/dist/index.es50.js +32 -4
  301. package/dist/index.es50.js.map +1 -1
  302. package/dist/index.es51.js +17 -122
  303. package/dist/index.es51.js.map +1 -1
  304. package/dist/index.es52.js +7 -62
  305. package/dist/index.es52.js.map +1 -1
  306. package/dist/index.es53.js +5 -2
  307. package/dist/index.es53.js.map +1 -1
  308. package/dist/index.es54.js +255 -2
  309. package/dist/index.es54.js.map +1 -1
  310. package/dist/index.es55.js +21 -20
  311. package/dist/index.es55.js.map +1 -1
  312. package/dist/index.es56.js +27 -9
  313. package/dist/index.es56.js.map +1 -1
  314. package/dist/index.es57.js +7 -38
  315. package/dist/index.es57.js.map +1 -1
  316. package/dist/index.es58.js +66 -18
  317. package/dist/index.es58.js.map +1 -1
  318. package/dist/index.es59.js +29 -7
  319. package/dist/index.es59.js.map +1 -1
  320. package/dist/index.es6.js +37 -37
  321. package/dist/index.es6.js.map +1 -1
  322. package/dist/index.es60.js +5 -4
  323. package/dist/index.es60.js.map +1 -1
  324. package/dist/index.es61.js +24 -254
  325. package/dist/index.es61.js.map +1 -1
  326. package/dist/index.es62.js +32 -21
  327. package/dist/index.es62.js.map +1 -1
  328. package/dist/index.es64.js +44 -5
  329. package/dist/index.es64.js.map +1 -1
  330. package/dist/index.es65.js +7 -45
  331. package/dist/index.es65.js.map +1 -1
  332. package/dist/index.es66.js +121 -23
  333. package/dist/index.es66.js.map +1 -1
  334. package/dist/index.es67.js +12 -63
  335. package/dist/index.es67.js.map +1 -1
  336. package/dist/index.es68.js +133 -7
  337. package/dist/index.es68.js.map +1 -1
  338. package/dist/index.es69.js +10 -124
  339. package/dist/index.es69.js.map +1 -1
  340. package/dist/index.es7.js +33 -33
  341. package/dist/index.es7.js.map +1 -1
  342. package/dist/index.es70.js +214 -13
  343. package/dist/index.es70.js.map +1 -1
  344. package/dist/index.es71.js +12 -133
  345. package/dist/index.es71.js.map +1 -1
  346. package/dist/index.es72.js +7 -10
  347. package/dist/index.es72.js.map +1 -1
  348. package/dist/index.es73.js +3 -215
  349. package/dist/index.es73.js.map +1 -1
  350. package/dist/index.es74.js +28 -13
  351. package/dist/index.es74.js.map +1 -1
  352. package/dist/index.es75.js +49 -32
  353. package/dist/index.es75.js.map +1 -1
  354. package/dist/index.es76.js +9 -8
  355. package/dist/index.es76.js.map +1 -1
  356. package/dist/index.es77.js +65 -27
  357. package/dist/index.es77.js.map +1 -1
  358. package/dist/index.es78.js +12 -4
  359. package/dist/index.es78.js.map +1 -1
  360. package/dist/index.es79.js +204 -5
  361. package/dist/index.es79.js.map +1 -1
  362. package/dist/index.es8.js +87 -87
  363. package/dist/index.es8.js.map +1 -1
  364. package/dist/index.es80.js +19 -25
  365. package/dist/index.es80.js.map +1 -1
  366. package/dist/index.es81.js +389 -46
  367. package/dist/index.es81.js.map +1 -1
  368. package/dist/index.es82.js +25 -9
  369. package/dist/index.es82.js.map +1 -1
  370. package/dist/index.es83.js +29 -25
  371. package/dist/index.es83.js.map +1 -1
  372. package/dist/index.es84.js +5 -68
  373. package/dist/index.es84.js.map +1 -1
  374. package/dist/index.es85.js +5 -12
  375. package/dist/index.es85.js.map +1 -1
  376. package/dist/index.es86.js +3 -205
  377. package/dist/index.es86.js.map +1 -1
  378. package/dist/index.es87.js +23 -21
  379. package/dist/index.es87.js.map +1 -1
  380. package/dist/index.es88.js +105 -388
  381. package/dist/index.es88.js.map +1 -1
  382. package/dist/index.es89.js +14 -23
  383. package/dist/index.es89.js.map +1 -1
  384. package/dist/index.es9.js +23 -3
  385. package/dist/index.es9.js.map +1 -1
  386. package/dist/index.es90.js +521 -27
  387. package/dist/index.es90.js.map +1 -1
  388. package/dist/index.es91.js +127 -5
  389. package/dist/index.es91.js.map +1 -1
  390. package/dist/index.es92.js +129 -5
  391. package/dist/index.es92.js.map +1 -1
  392. package/dist/index.es93.js +65 -3
  393. package/dist/index.es93.js.map +1 -1
  394. package/dist/index.es94.js +69 -24
  395. package/dist/index.es94.js.map +1 -1
  396. package/dist/index.es95.js +9 -110
  397. package/dist/index.es95.js.map +1 -1
  398. package/dist/index.es96.js +14 -16
  399. package/dist/index.es96.js.map +1 -1
  400. package/dist/index.es97.js +60 -521
  401. package/dist/index.es97.js.map +1 -1
  402. package/dist/index.es98.js +3 -126
  403. package/dist/index.es98.js.map +1 -1
  404. package/dist/index.es99.js +22 -128
  405. package/dist/index.es99.js.map +1 -1
  406. package/dist/packages/builder/schema-builder.d.ts +20 -1
  407. package/dist/packages/builder/schema-builder.d.ts.map +1 -1
  408. package/dist/style.css +0 -3
  409. package/package.json +5 -3
  410. package/dist/index.cjs104.js +0 -2
  411. package/dist/index.cjs104.js.map +0 -1
  412. package/dist/index.cjs105.js +0 -2
  413. package/dist/index.cjs105.js.map +0 -1
  414. package/dist/index.cjs106.js +0 -2
  415. package/dist/index.cjs106.js.map +0 -1
  416. package/dist/index.cjs107.js +0 -2
  417. package/dist/index.cjs107.js.map +0 -1
  418. package/dist/index.cjs108.js +0 -2
  419. package/dist/index.cjs108.js.map +0 -1
  420. package/dist/index.cjs109.js +0 -2
  421. package/dist/index.cjs109.js.map +0 -1
  422. package/dist/index.cjs110.js +0 -2
  423. package/dist/index.cjs110.js.map +0 -1
  424. package/dist/index.es104.js +0 -65
  425. package/dist/index.es104.js.map +0 -1
  426. package/dist/index.es105.js +0 -7
  427. package/dist/index.es105.js.map +0 -1
  428. package/dist/index.es106.js +0 -26
  429. package/dist/index.es106.js.map +0 -1
  430. package/dist/index.es107.js +0 -26
  431. package/dist/index.es107.js.map +0 -1
  432. package/dist/index.es108.js +0 -16
  433. package/dist/index.es108.js.map +0 -1
  434. package/dist/index.es109.js +0 -31
  435. package/dist/index.es109.js.map +0 -1
  436. package/dist/index.es110.js +0 -8
  437. package/dist/index.es110.js.map +0 -1
@@ -1,137 +1,23 @@
1
- import { j as e } from "./index.es9.js";
2
- import { Root as l, Trigger as i, Icon as d, Value as c, Portal as u, Content as m, Viewport as p, Item as f, ItemIndicator as x, ItemText as g, ScrollUpButton as v, ScrollDownButton as h } from "./index.es47.js";
3
- import { cn as r } from "./index.es29.js";
4
- import o from "./index.es48.js";
5
- import j from "./index.es49.js";
6
- import b from "./index.es50.js";
7
- function k({
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Root as a } from "./index.es30.js";
3
+ import { cn as r } from "./index.es21.js";
4
+ function l({
5
+ className: e,
8
6
  ...t
9
7
  }) {
10
- return /* @__PURE__ */ e.jsx(l, { "data-slot": "select", ...t });
11
- }
12
- function B({
13
- ...t
14
- }) {
15
- return /* @__PURE__ */ e.jsx(c, { "data-slot": "select-value", ...t });
16
- }
17
- function D({
18
- className: t,
19
- children: s,
20
- ...a
21
- }) {
22
- return /* @__PURE__ */ e.jsxs(
23
- i,
24
- {
25
- "data-slot": "select-trigger",
26
- "data-testid": "select-trigger",
27
- className: r(
28
- "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
29
- t
30
- ),
31
- ...a,
32
- children: [
33
- s,
34
- /* @__PURE__ */ e.jsx(d, { asChild: !0, children: /* @__PURE__ */ e.jsx(o, { className: "size-4 opacity-50" }) })
35
- ]
36
- }
37
- );
38
- }
39
- function R({
40
- className: t,
41
- children: s,
42
- position: a = "popper",
43
- ...n
44
- }) {
45
- return /* @__PURE__ */ e.jsx(u, { children: /* @__PURE__ */ e.jsxs(
46
- m,
47
- {
48
- "data-slot": "select-content",
49
- className: r(
50
- "bg-popover text-popover-foreground 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-[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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
51
- a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
52
- t
53
- ),
54
- position: a,
55
- ...n,
56
- children: [
57
- /* @__PURE__ */ e.jsx(w, {}),
58
- /* @__PURE__ */ e.jsx(
59
- p,
60
- {
61
- className: r(
62
- "p-1",
63
- a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
64
- ),
65
- children: s
66
- }
67
- ),
68
- /* @__PURE__ */ e.jsx(y, {})
69
- ]
70
- }
71
- ) });
72
- }
73
- function T({
74
- className: t,
75
- children: s,
76
- ...a
77
- }) {
78
- return /* @__PURE__ */ e.jsxs(
79
- f,
80
- {
81
- "data-slot": "select-item",
82
- className: r(
83
- "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
84
- t
85
- ),
86
- ...a,
87
- children: [
88
- /* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(x, { children: /* @__PURE__ */ e.jsx(j, { className: "size-4" }) }) }),
89
- /* @__PURE__ */ e.jsx(g, { children: s })
90
- ]
91
- }
92
- );
93
- }
94
- function w({
95
- className: t,
96
- ...s
97
- }) {
98
- return /* @__PURE__ */ e.jsx(
99
- v,
100
- {
101
- "data-slot": "select-scroll-up-button",
102
- className: r(
103
- "flex cursor-default items-center justify-center py-1",
104
- t
105
- ),
106
- ...s,
107
- children: /* @__PURE__ */ e.jsx(b, { className: "size-4" })
108
- }
109
- );
110
- }
111
- function y({
112
- className: t,
113
- ...s
114
- }) {
115
- return /* @__PURE__ */ e.jsx(
116
- h,
8
+ return /* @__PURE__ */ o(
9
+ a,
117
10
  {
118
- "data-slot": "select-scroll-down-button",
11
+ "data-slot": "label",
119
12
  className: r(
120
- "flex cursor-default items-center justify-center py-1",
121
- t
13
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
14
+ e
122
15
  ),
123
- ...s,
124
- children: /* @__PURE__ */ e.jsx(o, { className: "size-4" })
16
+ ...t
125
17
  }
126
18
  );
127
19
  }
128
20
  export {
129
- k as Select,
130
- R as SelectContent,
131
- T as SelectItem,
132
- y as SelectScrollDownButton,
133
- w as SelectScrollUpButton,
134
- D as SelectTrigger,
135
- B as SelectValue
21
+ l as Label
136
22
  };
137
23
  //# sourceMappingURL=index.es14.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es14.js","sources":["../src/components/ui/select.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-testid=\"select-trigger\"\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n \"bg-popover text-popover-foreground 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-[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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(\"px-2 py-1.5 text-sm font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\"bg-border pointer-events-none -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"names":["Select","props","SelectPrimitive.Root","SelectValue","SelectPrimitive.Value","SelectTrigger","className","children","jsxs","SelectPrimitive.Trigger","cn","jsx","SelectPrimitive.Icon","ChevronDownIcon","SelectContent","position","SelectPrimitive.Portal","SelectPrimitive.Content","SelectScrollUpButton","SelectPrimitive.Viewport","SelectScrollDownButton","SelectItem","SelectPrimitive.Item","SelectPrimitive.ItemIndicator","CheckIcon","SelectPrimitive.ItemText","SelectPrimitive.ScrollUpButton","ChevronUpIcon","SelectPrimitive.ScrollDownButton"],"mappings":"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"}
1
+ {"version":3,"file":"index.es14.js","sources":["../src/components/ui/label.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"names":["Label","className","props","jsx","LabelPrimitive.Root","cn"],"mappings":";;;AAOA,SAASA,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,GAAGC;AACL,GAAqD;AAEjD,SAAA,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACN;AAEJ;"}
@@ -1,23 +1,138 @@
1
- import { j as o } from "./index.es9.js";
2
- import { Root as a } from "./index.es35.js";
3
- import { cn as r } from "./index.es29.js";
4
- function d({
5
- className: e,
6
- ...t
1
+ import { jsx as s, jsxs as u } from "react/jsx-runtime";
2
+ import { useMemo as R, useEffect as V } from "react";
3
+ import { Button as A } from "./index.es10.js";
4
+ import { Dialog as $, DialogContent as N, DialogHeader as j, DialogTitle as w, DialogDescription as E, DialogFooter as I } from "./index.es36.js";
5
+ import { Label as L } from "./index.es14.js";
6
+ import { a as d } from "./index.es9.js";
7
+ import { useConstraints as _ } from "./index.es4.js";
8
+ import k from "./index.es37.js";
9
+ import { Separator as z } from "./index.es38.js";
10
+ import { AddFormSchema as B } from "./index.es20.js";
11
+ import { useForm as H } from "react-hook-form";
12
+ import { zodResolver as M } from "./index.es39.js";
13
+ import { Form as O } from "./index.es40.js";
14
+ const P = B.pick({
15
+ constraints: !0,
16
+ property: !0
17
+ });
18
+ function et({
19
+ open: p,
20
+ onOpenChange: f,
21
+ onSubmit: h,
22
+ property: i,
23
+ propertyKey: g
7
24
  }) {
8
- return /* @__PURE__ */ o.jsx(
9
- a,
10
- {
11
- "data-slot": "label",
12
- className: r(
13
- "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
14
- e
15
- ),
16
- ...t
25
+ const e = H({
26
+ resolver: M(P),
27
+ defaultValues: {
28
+ property: i
17
29
  }
18
- );
30
+ }), m = e.watch("constraints"), {
31
+ getConstraintDefinitionsForType: C,
32
+ getRendererForConstraint: y,
33
+ validateConstraintValue: v
34
+ } = _(), D = (t) => {
35
+ const { constraints: r } = t, a = {
36
+ ...r?.reduce((n, o) => ({
37
+ ...n,
38
+ [o.name]: o.value
39
+ }), {})
40
+ };
41
+ h([g, a]), e.reset();
42
+ }, S = (t, r) => {
43
+ const a = d(m), n = a?.[t];
44
+ if (!n) {
45
+ e.setError(`constraints.${t}`, {
46
+ message: "The constraint was not found",
47
+ type: "constraint_not_found"
48
+ });
49
+ return;
50
+ }
51
+ const o = v(
52
+ n.name,
53
+ r
54
+ );
55
+ if (o.status === "error") {
56
+ let c = o.message;
57
+ o.code === "invalid" && (c = `${c}: ${o.error?.map((b) => b.message).join(", ")}`), e.setError(`constraints.${t}`, {
58
+ type: o.code,
59
+ message: c
60
+ });
61
+ return;
62
+ }
63
+ n.value = r, e.setValue("constraints", a), e.clearErrors(`constraints.${t}`);
64
+ }, F = (t) => {
65
+ if (!m) return;
66
+ const a = d(m).filter((n) => n.name !== t);
67
+ e.setValue("constraints", a);
68
+ }, l = R(() => C(
69
+ typeof i?.type == "string" ? i.type : ""
70
+ ), [i.type]);
71
+ return V(() => {
72
+ const t = [];
73
+ for (const r of l)
74
+ r.name in i && t.push({
75
+ name: r.name,
76
+ value: i[r.name]
77
+ });
78
+ e.setValue("constraints", t);
79
+ }, [l]), /* @__PURE__ */ s($, { open: p, onOpenChange: f, children: /* @__PURE__ */ u(N, { children: [
80
+ /* @__PURE__ */ u(j, { children: [
81
+ /* @__PURE__ */ s(w, { children: "Edit" }),
82
+ /* @__PURE__ */ s(E, { children: "Constraints and other properties" })
83
+ ] }),
84
+ /* @__PURE__ */ s(O, { ...e, children: /* @__PURE__ */ u(
85
+ "form",
86
+ {
87
+ onSubmit: e.handleSubmit(D),
88
+ className: "space-y-4",
89
+ "data-testid": "edit-property-form",
90
+ children: [
91
+ l.length ? /* @__PURE__ */ u("div", { className: "space-y-2", children: [
92
+ /* @__PURE__ */ s(L, { children: "Constraints" }),
93
+ /* @__PURE__ */ s(
94
+ k,
95
+ {
96
+ addedConstraints: m ?? [],
97
+ availableDefinitions: l,
98
+ onAdd: (t) => {
99
+ e.setValue("constraints", t);
100
+ }
101
+ }
102
+ ),
103
+ /* @__PURE__ */ s(z, {}),
104
+ m?.map((t, r) => {
105
+ const a = y(t.name);
106
+ if (!a) return null;
107
+ const n = e.formState.errors.constraints?.[r];
108
+ let o;
109
+ return n && (o = {
110
+ code: n?.type ?? "INVALID",
111
+ message: n.message ?? "An error occurred"
112
+ }), /* @__PURE__ */ s(
113
+ a,
114
+ {
115
+ constraintName: t.name,
116
+ value: t.value,
117
+ onConstraintChange: (c) => {
118
+ S(r, c);
119
+ },
120
+ onRemoveConstraint: () => {
121
+ F(t.name);
122
+ },
123
+ error: o
124
+ },
125
+ t.name
126
+ );
127
+ })
128
+ ] }) : null,
129
+ /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(A, { type: "submit", children: "Save" }) })
130
+ ]
131
+ }
132
+ ) })
133
+ ] }) });
19
134
  }
20
135
  export {
21
- d as Label
136
+ et as EditPropertyDialog
22
137
  };
23
138
  //# sourceMappingURL=index.es15.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es15.js","sources":["../src/components/ui/label.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"names":["Label","className","props","jsx","LabelPrimitive.Root","cn"],"mappings":";;;AAOA,SAASA,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,GAAGC;AACL,GAAqD;AAEjD,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACN;AAEJ;"}
1
+ {"version":3,"file":"index.es15.js","sources":["../src/packages/builder/edit-dialog.tsx"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Dialog,\n DialogContent,\n DialogHeader,\n DialogTitle,\n DialogFooter,\n DialogDescription,\n} from \"@/components/ui/dialog\";\nimport { Label } from \"@/components/ui/label\";\n\nimport type { JSONSchema7 } from \"json-schema\";\nimport { clone } from \"remeda\";\nimport { Constraint, useConstraints } from \"@/packages/constraints/context\";\nimport ConstraintsAdd from \"@/packages/constraints/constraint-add\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { z } from \"zod\";\nimport { AddFormSchema } from \"./add-dialog\";\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { OperationError } from \"./shared-types\";\nimport { Form } from \"@/components/ui/form\";\nimport { useSchema } from \"./context\";\n\nexport interface EditPropertyDialogProps {\n property: JSONSchema7;\n propertyKey: string;\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onSubmit: (\n params: Parameters<ReturnType<typeof useSchema>[\"handlePropertyChange\"]>,\n ) => void;\n}\n\nconst EditFormSchema = AddFormSchema.pick({\n constraints: true,\n property: true,\n});\n\n/**\n * Handles editing a constraints and other properties of a JSON schema property\n * that aren't shown in the main UI.\n */\nexport function EditPropertyDialog({\n open,\n onOpenChange,\n onSubmit,\n property: propertyToEdit,\n propertyKey,\n}: EditPropertyDialogProps) {\n const form = useForm<z.infer<typeof EditFormSchema>>({\n resolver: zodResolver(EditFormSchema),\n defaultValues: {\n property: propertyToEdit,\n },\n });\n\n const currentConstraints = form.watch(\"constraints\");\n\n const {\n getConstraintDefinitionsForType,\n getRendererForConstraint,\n validateConstraintValue,\n } = useConstraints();\n\n const handleSubmit = (data: z.infer<typeof EditFormSchema>) => {\n const { constraints } = data;\n const propertyUpdatesOnly: JSONSchema7 = {\n ...constraints?.reduce((acc, constraint) => {\n return {\n ...acc,\n [constraint.name]: constraint.value,\n } satisfies JSONSchema7;\n }, {}),\n };\n onSubmit([propertyKey, propertyUpdatesOnly]);\n form.reset();\n };\n\n const handleConstraintChange = (\n index: number,\n newVal: Constraint[\"value\"],\n ) => {\n const constraintsCopy = clone(currentConstraints);\n\n const constraintToChange = constraintsCopy?.[index];\n\n if (!constraintToChange) {\n form.setError(`constraints.${index}`, {\n message: \"The constraint was not found\",\n type: \"constraint_not_found\",\n });\n return;\n }\n\n const validationResult = validateConstraintValue(\n constraintToChange.name,\n newVal,\n );\n\n if (validationResult.status === \"error\") {\n let message = validationResult.message;\n if (validationResult.code === \"invalid\") {\n message = `${message}: ${validationResult.error?.map((i) => i.message).join(\", \")}`;\n }\n form.setError(`constraints.${index}`, {\n type: validationResult.code,\n message,\n });\n return;\n }\n\n //edit reference\n constraintToChange.value = newVal;\n form.setValue(\"constraints\", constraintsCopy);\n form.clearErrors(`constraints.${index}`);\n };\n\n const handleRemoveConstraint = (constraintName: Constraint[\"name\"]) => {\n if (!currentConstraints) return;\n const copy = clone(currentConstraints);\n const newConstraints = copy.filter((c) => c.name !== constraintName);\n form.setValue(\"constraints\", newConstraints);\n };\n\n const availableDefinitions = useMemo(() => {\n return getConstraintDefinitionsForType(\n typeof propertyToEdit?.type === \"string\" ? propertyToEdit.type : \"\",\n );\n }, [propertyToEdit.type]);\n\n useEffect(() => {\n //get the current constraints from the property based on the available definitions\n const newConstraints: Constraint[] = [];\n for (const constraintDef of availableDefinitions) {\n if (constraintDef.name in propertyToEdit) {\n newConstraints.push({\n name: constraintDef.name,\n value: propertyToEdit[constraintDef.name],\n });\n }\n }\n form.setValue(\"constraints\", newConstraints);\n }, [availableDefinitions]);\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Edit</DialogTitle>\n <DialogDescription>\n Constraints and other properties\n </DialogDescription>\n </DialogHeader>\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(handleSubmit)}\n className=\"space-y-4\"\n data-testid=\"edit-property-form\"\n >\n {availableDefinitions.length ? (\n <div className=\"space-y-2\">\n <Label>Constraints</Label>\n <ConstraintsAdd\n addedConstraints={currentConstraints ?? []}\n availableDefinitions={availableDefinitions}\n onAdd={(newConstraints) => {\n form.setValue(\"constraints\", newConstraints);\n }}\n />\n <Separator />\n {currentConstraints?.map((constraint, i) => {\n const Renderer = getRendererForConstraint(constraint.name);\n if (!Renderer) return null;\n\n const error = form.formState.errors.constraints?.[i];\n let mappedError: OperationError | undefined;\n\n if (error) {\n mappedError = {\n code: error?.type ?? \"INVALID\",\n message: error.message ?? \"An error occurred\",\n };\n }\n\n return (\n <Renderer\n key={constraint.name}\n constraintName={constraint.name}\n value={constraint.value}\n onConstraintChange={(newVal) => {\n handleConstraintChange(i, newVal);\n }}\n onRemoveConstraint={() => {\n handleRemoveConstraint(constraint.name);\n }}\n error={mappedError}\n />\n );\n })}\n </div>\n ) : null}\n\n <DialogFooter>\n <Button type=\"submit\">Save</Button>\n </DialogFooter>\n </form>\n </Form>\n </DialogContent>\n </Dialog>\n );\n}\n"],"names":["EditFormSchema","AddFormSchema","EditPropertyDialog","open","onOpenChange","onSubmit","propertyToEdit","propertyKey","form","useForm","zodResolver","currentConstraints","getConstraintDefinitionsForType","getRendererForConstraint","validateConstraintValue","useConstraints","handleSubmit","data","constraints","propertyUpdatesOnly","acc","constraint","handleConstraintChange","index","newVal","constraintsCopy","clone","constraintToChange","validationResult","message","i","handleRemoveConstraint","constraintName","newConstraints","c","availableDefinitions","useMemo","useEffect","constraintDef","jsx","Dialog","DialogContent","jsxs","DialogHeader","DialogTitle","DialogDescription","Form","Label","ConstraintsAdd","Separator","Renderer","error","mappedError","DialogFooter","Button"],"mappings":"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"}
@@ -1,138 +1,141 @@
1
- import { j as e } from "./index.es9.js";
2
- import { useMemo as S, useEffect as F } from "react";
3
- import { Button as R } from "./index.es11.js";
4
- import { Dialog as b, DialogContent as V, DialogHeader as A, DialogTitle as $, DialogDescription as E, DialogFooter as N } from "./index.es41.js";
5
- import { Label as w } from "./index.es15.js";
6
- import { a as u } from "./index.es10.js";
7
- import { useConstraints as I } from "./index.es4.js";
8
- import L from "./index.es42.js";
9
- import { Separator as _ } from "./index.es43.js";
10
- import { AddFormSchema as k } from "./index.es21.js";
11
- import { useForm as z } from "react-hook-form";
12
- import { zodResolver as B } from "./index.es44.js";
13
- import { Form as H } from "./index.es45.js";
14
- const M = k.pick({
15
- constraints: !0,
16
- property: !0
17
- });
18
- function tt({
19
- open: p,
20
- onOpenChange: d,
21
- onSubmit: f,
22
- property: i,
23
- propertyKey: h
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import { Root as n, Content as i, Title as s, Description as d, Cancel as c, Action as u, Portal as f, Overlay as m } from "./index.es46.js";
3
+ import { cn as o } from "./index.es21.js";
4
+ import { buttonVariants as l } from "./index.es10.js";
5
+ function N({
6
+ ...t
24
7
  }) {
25
- const r = z({
26
- resolver: B(M),
27
- defaultValues: {
28
- property: i
29
- }
30
- }), m = r.watch("constraints"), {
31
- getConstraintDefinitionsForType: g,
32
- getRendererForConstraint: C,
33
- validateConstraintValue: j
34
- } = I(), y = (t) => {
35
- const { constraints: n } = t, a = {
36
- ...n?.reduce((s, o) => ({
37
- ...s,
38
- [o.name]: o.value
39
- }), {})
40
- };
41
- f([h, a]), r.reset();
42
- }, v = (t, n) => {
43
- const a = u(m), s = a?.[t];
44
- if (!s) {
45
- r.setError(`constraints.${t}`, {
46
- message: "The constraint was not found",
47
- type: "constraint_not_found"
48
- });
49
- return;
50
- }
51
- const o = j(
52
- s.name,
53
- n
54
- );
55
- if (o.status === "error") {
56
- let c = o.message;
57
- o.code === "invalid" && (c = `${c}: ${o.error?.map((D) => D.message).join(", ")}`), r.setError(`constraints.${t}`, {
58
- type: o.code,
59
- message: c
60
- });
61
- return;
8
+ return /* @__PURE__ */ e(n, { "data-slot": "alert-dialog", ...t });
9
+ }
10
+ function g({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ e(f, { "data-slot": "alert-dialog-portal", ...t });
14
+ }
15
+ function p({
16
+ className: t,
17
+ ...a
18
+ }) {
19
+ return /* @__PURE__ */ e(
20
+ m,
21
+ {
22
+ "data-slot": "alert-dialog-overlay",
23
+ className: o(
24
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
25
+ t
26
+ ),
27
+ ...a
62
28
  }
63
- s.value = n, r.setValue("constraints", a), r.clearErrors(`constraints.${t}`);
64
- }, x = (t) => {
65
- if (!m) return;
66
- const a = u(m).filter((s) => s.name !== t);
67
- r.setValue("constraints", a);
68
- }, l = S(() => g(
69
- typeof i?.type == "string" ? i.type : ""
70
- ), [i.type]);
71
- return F(() => {
72
- const t = [];
73
- for (const n of l)
74
- n.name in i && t.push({
75
- name: n.name,
76
- value: i[n.name]
77
- });
78
- r.setValue("constraints", t);
79
- }, [l]), /* @__PURE__ */ e.jsx(b, { open: p, onOpenChange: d, children: /* @__PURE__ */ e.jsxs(V, { children: [
80
- /* @__PURE__ */ e.jsxs(A, { children: [
81
- /* @__PURE__ */ e.jsx($, { children: "Edit" }),
82
- /* @__PURE__ */ e.jsx(E, { children: "Constraints and other properties" })
83
- ] }),
84
- /* @__PURE__ */ e.jsx(H, { ...r, children: /* @__PURE__ */ e.jsxs(
85
- "form",
29
+ );
30
+ }
31
+ function b({
32
+ className: t,
33
+ ...a
34
+ }) {
35
+ return /* @__PURE__ */ r(g, { children: [
36
+ /* @__PURE__ */ e(p, {}),
37
+ /* @__PURE__ */ e(
38
+ i,
86
39
  {
87
- onSubmit: r.handleSubmit(y),
88
- className: "space-y-4",
89
- "data-testid": "edit-property-form",
90
- children: [
91
- l.length ? /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
92
- /* @__PURE__ */ e.jsx(w, { children: "Constraints" }),
93
- /* @__PURE__ */ e.jsx(
94
- L,
95
- {
96
- addedConstraints: m ?? [],
97
- availableDefinitions: l,
98
- onAdd: (t) => {
99
- r.setValue("constraints", t);
100
- }
101
- }
102
- ),
103
- /* @__PURE__ */ e.jsx(_, {}),
104
- m?.map((t, n) => {
105
- const a = C(t.name);
106
- if (!a) return null;
107
- const s = r.formState.errors.constraints?.[n];
108
- let o;
109
- return s && (o = {
110
- code: s?.type ?? "INVALID",
111
- message: s.message ?? "An error occurred"
112
- }), /* @__PURE__ */ e.jsx(
113
- a,
114
- {
115
- constraintName: t.name,
116
- value: t.value,
117
- onConstraintChange: (c) => {
118
- v(n, c);
119
- },
120
- onRemoveConstraint: () => {
121
- x(t.name);
122
- },
123
- error: o
124
- },
125
- t.name
126
- );
127
- })
128
- ] }) : null,
129
- /* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsx(R, { type: "submit", children: "Save" }) })
130
- ]
40
+ "data-slot": "alert-dialog-content",
41
+ className: o(
42
+ "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
43
+ t
44
+ ),
45
+ ...a
131
46
  }
132
- ) })
133
- ] }) });
47
+ )
48
+ ] });
49
+ }
50
+ function y({
51
+ className: t,
52
+ ...a
53
+ }) {
54
+ return /* @__PURE__ */ e(
55
+ "div",
56
+ {
57
+ "data-slot": "alert-dialog-header",
58
+ className: o("flex flex-col gap-2 text-center sm:text-left", t),
59
+ ...a
60
+ }
61
+ );
62
+ }
63
+ function w({
64
+ className: t,
65
+ ...a
66
+ }) {
67
+ return /* @__PURE__ */ e(
68
+ "div",
69
+ {
70
+ "data-slot": "alert-dialog-footer",
71
+ className: o(
72
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
73
+ t
74
+ ),
75
+ ...a
76
+ }
77
+ );
78
+ }
79
+ function C({
80
+ className: t,
81
+ ...a
82
+ }) {
83
+ return /* @__PURE__ */ e(
84
+ s,
85
+ {
86
+ "data-slot": "alert-dialog-title",
87
+ className: o("text-lg font-semibold", t),
88
+ ...a
89
+ }
90
+ );
91
+ }
92
+ function z({
93
+ className: t,
94
+ ...a
95
+ }) {
96
+ return /* @__PURE__ */ e(
97
+ d,
98
+ {
99
+ "data-slot": "alert-dialog-description",
100
+ className: o("text-muted-foreground text-sm", t),
101
+ ...a
102
+ }
103
+ );
104
+ }
105
+ function h({
106
+ className: t,
107
+ ...a
108
+ }) {
109
+ return /* @__PURE__ */ e(
110
+ u,
111
+ {
112
+ className: o(l(), t),
113
+ ...a
114
+ }
115
+ );
116
+ }
117
+ function j({
118
+ className: t,
119
+ ...a
120
+ }) {
121
+ return /* @__PURE__ */ e(
122
+ c,
123
+ {
124
+ className: o(l({ variant: "outline" }), t),
125
+ ...a
126
+ }
127
+ );
134
128
  }
135
129
  export {
136
- tt as EditPropertyDialog
130
+ N as AlertDialog,
131
+ h as AlertDialogAction,
132
+ j as AlertDialogCancel,
133
+ b as AlertDialogContent,
134
+ z as AlertDialogDescription,
135
+ w as AlertDialogFooter,
136
+ y as AlertDialogHeader,
137
+ p as AlertDialogOverlay,
138
+ g as AlertDialogPortal,
139
+ C as AlertDialogTitle
137
140
  };
138
141
  //# sourceMappingURL=index.es16.js.map