@tipp/ui 2.3.21 → 2.3.23

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 (674) hide show
  1. package/dist/app/index.cjs +217 -195
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +108 -102
  4. package/dist/app/platform/coach-question-list.cjs.map +1 -1
  5. package/dist/app/platform/coach-question-list.js +32 -32
  6. package/dist/app/platform/contents-card.cjs.map +1 -1
  7. package/dist/app/platform/contents-card.js +32 -32
  8. package/dist/app/platform/curriculum-card.cjs.map +1 -1
  9. package/dist/app/platform/curriculum-card.js +6 -6
  10. package/dist/app/platform/edit-coaching-time.cjs +47 -25
  11. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  12. package/dist/app/platform/edit-coaching-time.js +83 -77
  13. package/dist/app/platform/edit-service-type.cjs +42 -20
  14. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  15. package/dist/app/platform/edit-service-type.js +84 -78
  16. package/dist/app/platform/goal-manage-card-edit.cjs +50 -28
  17. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  18. package/dist/app/platform/goal-manage-card-edit.js +83 -77
  19. package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
  20. package/dist/app/platform/goal-manage-card-read.js +32 -32
  21. package/dist/app/platform/on-offline-radio-card.cjs +77 -55
  22. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  23. package/dist/app/platform/on-offline-radio-card.js +83 -77
  24. package/dist/app/platform/report-card.cjs.map +1 -1
  25. package/dist/app/platform/report-card.js +32 -32
  26. package/dist/app/platform/reservation-card.cjs +66 -44
  27. package/dist/app/platform/reservation-card.cjs.map +1 -1
  28. package/dist/app/platform/reservation-card.js +84 -78
  29. package/dist/app/platform/session-card.cjs +92 -70
  30. package/dist/app/platform/session-card.cjs.map +1 -1
  31. package/dist/app/platform/session-card.js +86 -80
  32. package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
  33. package/dist/app/platform/session-review-simple-read.js +32 -32
  34. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  35. package/dist/app/platform/userInfos/coaching-customer-info/index.js +37 -37
  36. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  37. package/dist/app/platform/userInfos/coaching-customer-info/large.js +32 -32
  38. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  39. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +32 -32
  40. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  41. package/dist/app/platform/userInfos/coaching-customer-info/small.js +32 -32
  42. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  43. package/dist/app/platform/userInfos/session-user-info-detail.js +32 -32
  44. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  45. package/dist/app/platform/userInfos/utils.js +31 -31
  46. package/dist/atoms/bullet-text.js +2 -2
  47. package/dist/atoms/dialog.js +2 -2
  48. package/dist/atoms/field-error-wrapper.js +2 -2
  49. package/dist/atoms/index.cjs.map +1 -1
  50. package/dist/atoms/index.js +63 -63
  51. package/dist/atoms/list.js +2 -2
  52. package/dist/atoms/pagination.cjs.map +1 -1
  53. package/dist/atoms/pagination.js +4 -4
  54. package/dist/chunk-2KOE33U7.js +245 -0
  55. package/dist/chunk-2KOE33U7.js.map +1 -0
  56. package/dist/chunk-2U5YD3BH.js +49 -0
  57. package/dist/chunk-2U5YD3BH.js.map +1 -0
  58. package/dist/chunk-2X3I7KDG.js +144 -0
  59. package/dist/chunk-2X3I7KDG.js.map +1 -0
  60. package/dist/chunk-2YSYS4AG.js +233 -0
  61. package/dist/chunk-2YSYS4AG.js.map +1 -0
  62. package/dist/chunk-35HQHUDU.js +228 -0
  63. package/dist/chunk-35HQHUDU.js.map +1 -0
  64. package/dist/chunk-3I55S6EP.js +89 -0
  65. package/dist/chunk-3I55S6EP.js.map +1 -0
  66. package/dist/chunk-3JDLAN5T.js +99 -0
  67. package/dist/chunk-3JDLAN5T.js.map +1 -0
  68. package/dist/chunk-3O2ARPTO.js +161 -0
  69. package/dist/chunk-3O2ARPTO.js.map +1 -0
  70. package/dist/chunk-3OO6ENQ4.js +228 -0
  71. package/dist/chunk-3OO6ENQ4.js.map +1 -0
  72. package/dist/chunk-45F3UCHR.js +222 -0
  73. package/dist/chunk-45F3UCHR.js.map +1 -0
  74. package/dist/chunk-45VET5EX.js +63 -0
  75. package/dist/chunk-45VET5EX.js.map +1 -0
  76. package/dist/chunk-4LUFF5LX.js +98 -0
  77. package/dist/chunk-4LUFF5LX.js.map +1 -0
  78. package/dist/chunk-4MA4T2XQ.js +222 -0
  79. package/dist/chunk-4MA4T2XQ.js.map +1 -0
  80. package/dist/chunk-4VV7VH5L.js +79 -0
  81. package/dist/chunk-4VV7VH5L.js.map +1 -0
  82. package/dist/chunk-5JCJ4QJO.js +245 -0
  83. package/dist/chunk-5JCJ4QJO.js.map +1 -0
  84. package/dist/chunk-5KZJMQCG.js +89 -0
  85. package/dist/chunk-5KZJMQCG.js.map +1 -0
  86. package/dist/chunk-5RAR3DG7.js +117 -0
  87. package/dist/chunk-5RAR3DG7.js.map +1 -0
  88. package/dist/chunk-5XOR7OPD.js +196 -0
  89. package/dist/chunk-5XOR7OPD.js.map +1 -0
  90. package/dist/chunk-5YESTYFF.js +79 -0
  91. package/dist/chunk-5YESTYFF.js.map +1 -0
  92. package/dist/chunk-62AHHT47.js +89 -0
  93. package/dist/chunk-62AHHT47.js.map +1 -0
  94. package/dist/chunk-64A2KJHN.js +276 -0
  95. package/dist/chunk-64A2KJHN.js.map +1 -0
  96. package/dist/chunk-6CSUU4L7.js +230 -0
  97. package/dist/chunk-6CSUU4L7.js.map +1 -0
  98. package/dist/chunk-6FKXUCHD.js +99 -0
  99. package/dist/chunk-6FKXUCHD.js.map +1 -0
  100. package/dist/chunk-6Q73GRZT.js +145 -0
  101. package/dist/chunk-6Q73GRZT.js.map +1 -0
  102. package/dist/chunk-6TQGX5ZU.js +98 -0
  103. package/dist/chunk-6TQGX5ZU.js.map +1 -0
  104. package/dist/chunk-6WGBQSQT.js +228 -0
  105. package/dist/chunk-6WGBQSQT.js.map +1 -0
  106. package/dist/chunk-6YZBHOXQ.js +226 -0
  107. package/dist/chunk-6YZBHOXQ.js.map +1 -0
  108. package/dist/chunk-7344ZPUM.js +117 -0
  109. package/dist/chunk-7344ZPUM.js.map +1 -0
  110. package/dist/chunk-7ABAJEJA.js +63 -0
  111. package/dist/chunk-7ABAJEJA.js.map +1 -0
  112. package/dist/chunk-7B5XAENQ.js +363 -0
  113. package/dist/chunk-7B5XAENQ.js.map +1 -0
  114. package/dist/chunk-7CQX7ELH.js +69 -0
  115. package/dist/chunk-7CQX7ELH.js.map +1 -0
  116. package/dist/chunk-7CRTGYJE.js +80 -0
  117. package/dist/chunk-7CRTGYJE.js.map +1 -0
  118. package/dist/chunk-7ITDAUWI.js +287 -0
  119. package/dist/chunk-7ITDAUWI.js.map +1 -0
  120. package/dist/chunk-7PQGETJT.js +69 -0
  121. package/dist/chunk-7PQGETJT.js.map +1 -0
  122. package/dist/chunk-7R65MUL6.js +106 -0
  123. package/dist/chunk-7R65MUL6.js.map +1 -0
  124. package/dist/chunk-7U5EZJOD.js +89 -0
  125. package/dist/chunk-7U5EZJOD.js.map +1 -0
  126. package/dist/chunk-7ZBZBOPI.js +63 -0
  127. package/dist/chunk-7ZBZBOPI.js.map +1 -0
  128. package/dist/chunk-A2FXUYSB.js +230 -0
  129. package/dist/chunk-A2FXUYSB.js.map +1 -0
  130. package/dist/chunk-A7CT5M2S.js +75 -0
  131. package/dist/chunk-A7CT5M2S.js.map +1 -0
  132. package/dist/chunk-A7JBBBBB.js +100 -0
  133. package/dist/chunk-A7JBBBBB.js.map +1 -0
  134. package/dist/chunk-AA6OYHCE.js +39 -0
  135. package/dist/chunk-AA6OYHCE.js.map +1 -0
  136. package/dist/chunk-ALETVN5F.js +245 -0
  137. package/dist/chunk-ALETVN5F.js.map +1 -0
  138. package/dist/chunk-ARJOCJVD.js +174 -0
  139. package/dist/chunk-ARJOCJVD.js.map +1 -0
  140. package/dist/chunk-ARVLB4CH.js +29 -0
  141. package/dist/chunk-ARVLB4CH.js.map +1 -0
  142. package/dist/chunk-B327EINU.js +43 -0
  143. package/dist/chunk-B327EINU.js.map +1 -0
  144. package/dist/chunk-B4NH4LIJ.js +99 -0
  145. package/dist/chunk-B4NH4LIJ.js.map +1 -0
  146. package/dist/chunk-B4TDMB52.js +226 -0
  147. package/dist/chunk-B4TDMB52.js.map +1 -0
  148. package/dist/chunk-BJZSGZ7H.js +63 -0
  149. package/dist/chunk-BJZSGZ7H.js.map +1 -0
  150. package/dist/chunk-BPMY3CDH.js +106 -0
  151. package/dist/chunk-BPMY3CDH.js.map +1 -0
  152. package/dist/chunk-C2ANXVMQ.js +221 -0
  153. package/dist/chunk-C2ANXVMQ.js.map +1 -0
  154. package/dist/chunk-C6BHVWJI.js +165 -0
  155. package/dist/chunk-C6BHVWJI.js.map +1 -0
  156. package/dist/chunk-CCLZRSGW.js +87 -0
  157. package/dist/chunk-CCLZRSGW.js.map +1 -0
  158. package/dist/chunk-CF3NAPUZ.js +196 -0
  159. package/dist/chunk-CF3NAPUZ.js.map +1 -0
  160. package/dist/chunk-CWRJOY56.js +245 -0
  161. package/dist/chunk-CWRJOY56.js.map +1 -0
  162. package/dist/chunk-D3H7YFTO.js +69 -0
  163. package/dist/chunk-D3H7YFTO.js.map +1 -0
  164. package/dist/chunk-DDAZ4IAG.js +689 -0
  165. package/dist/chunk-DDAZ4IAG.js.map +1 -0
  166. package/dist/chunk-DDVJMAYN.js +230 -0
  167. package/dist/chunk-DDVJMAYN.js.map +1 -0
  168. package/dist/chunk-DJ24574O.js +28 -0
  169. package/dist/chunk-DJ24574O.js.map +1 -0
  170. package/dist/chunk-DJCBLRLH.js +69 -0
  171. package/dist/chunk-DJCBLRLH.js.map +1 -0
  172. package/dist/chunk-DTHR4ABO.js +69 -0
  173. package/dist/chunk-DTHR4ABO.js.map +1 -0
  174. package/dist/chunk-DTK646M6.js +87 -0
  175. package/dist/chunk-DTK646M6.js.map +1 -0
  176. package/dist/chunk-DVZKRKWH.js +174 -0
  177. package/dist/chunk-DVZKRKWH.js.map +1 -0
  178. package/dist/chunk-E232GTT6.js +69 -0
  179. package/dist/chunk-E232GTT6.js.map +1 -0
  180. package/dist/chunk-EGTOU5MK.js +689 -0
  181. package/dist/chunk-EGTOU5MK.js.map +1 -0
  182. package/dist/chunk-EJAC46WB.js +39 -0
  183. package/dist/chunk-EJAC46WB.js.map +1 -0
  184. package/dist/chunk-ENFFYCHI.js +63 -0
  185. package/dist/chunk-ENFFYCHI.js.map +1 -0
  186. package/dist/chunk-EUUNWKHL.js +69 -0
  187. package/dist/chunk-EUUNWKHL.js.map +1 -0
  188. package/dist/chunk-F2I4LA63.js +51 -0
  189. package/dist/chunk-F2I4LA63.js.map +1 -0
  190. package/dist/chunk-F65P7KZI.js +98 -0
  191. package/dist/chunk-F65P7KZI.js.map +1 -0
  192. package/dist/chunk-F76YKHGP.js +245 -0
  193. package/dist/chunk-F76YKHGP.js.map +1 -0
  194. package/dist/chunk-FC4J5OA4.js +144 -0
  195. package/dist/chunk-FC4J5OA4.js.map +1 -0
  196. package/dist/chunk-FGX6IR4Q.js +68 -0
  197. package/dist/chunk-FGX6IR4Q.js.map +1 -0
  198. package/dist/chunk-FN2CUDUP.js +43 -0
  199. package/dist/chunk-FN2CUDUP.js.map +1 -0
  200. package/dist/chunk-FQUAFIUO.js +228 -0
  201. package/dist/chunk-FQUAFIUO.js.map +1 -0
  202. package/dist/chunk-FYHAKQGB.js +220 -0
  203. package/dist/chunk-FYHAKQGB.js.map +1 -0
  204. package/dist/chunk-G6UKOZPL.js +217 -0
  205. package/dist/chunk-G6UKOZPL.js.map +1 -0
  206. package/dist/chunk-GAFIOPGJ.js +54 -0
  207. package/dist/chunk-GAFIOPGJ.js.map +1 -0
  208. package/dist/chunk-GEMXFVWI.js +37 -0
  209. package/dist/chunk-GEMXFVWI.js.map +1 -0
  210. package/dist/chunk-GFBOT2PV.js +101 -0
  211. package/dist/chunk-GFBOT2PV.js.map +1 -0
  212. package/dist/chunk-GFURX6GB.js +76 -0
  213. package/dist/chunk-GFURX6GB.js.map +1 -0
  214. package/dist/chunk-GMHVMQTV.js +245 -0
  215. package/dist/chunk-GMHVMQTV.js.map +1 -0
  216. package/dist/chunk-GQFO7RV5.js +145 -0
  217. package/dist/chunk-GQFO7RV5.js.map +1 -0
  218. package/dist/chunk-GTO7GG2K.js +245 -0
  219. package/dist/chunk-GTO7GG2K.js.map +1 -0
  220. package/dist/chunk-GWNS3C3A.js +144 -0
  221. package/dist/chunk-GWNS3C3A.js.map +1 -0
  222. package/dist/chunk-HNS76MH2.js +69 -0
  223. package/dist/chunk-HNS76MH2.js.map +1 -0
  224. package/dist/chunk-HO462CJM.js +29 -0
  225. package/dist/chunk-HO462CJM.js.map +1 -0
  226. package/dist/chunk-HPW5EHJX.js +233 -0
  227. package/dist/chunk-HPW5EHJX.js.map +1 -0
  228. package/dist/chunk-HQ23GSZM.js +145 -0
  229. package/dist/chunk-HQ23GSZM.js.map +1 -0
  230. package/dist/chunk-HQAX6GAD.js +89 -0
  231. package/dist/chunk-HQAX6GAD.js.map +1 -0
  232. package/dist/chunk-HTNDVNLQ.js +287 -0
  233. package/dist/chunk-HTNDVNLQ.js.map +1 -0
  234. package/dist/chunk-HXOMTUED.js +222 -0
  235. package/dist/chunk-HXOMTUED.js.map +1 -0
  236. package/dist/chunk-INE4EFFO.js +70 -0
  237. package/dist/chunk-INE4EFFO.js.map +1 -0
  238. package/dist/chunk-IQUJPIZD.js +689 -0
  239. package/dist/chunk-IQUJPIZD.js.map +1 -0
  240. package/dist/chunk-ITKUKDDV.js +196 -0
  241. package/dist/chunk-ITKUKDDV.js.map +1 -0
  242. package/dist/chunk-J333WVWG.js +145 -0
  243. package/dist/chunk-J333WVWG.js.map +1 -0
  244. package/dist/chunk-JADEGHJI.js +101 -0
  245. package/dist/chunk-JADEGHJI.js.map +1 -0
  246. package/dist/chunk-JAS77BXB.js +245 -0
  247. package/dist/chunk-JAS77BXB.js.map +1 -0
  248. package/dist/chunk-JDBHOE34.js +51 -0
  249. package/dist/chunk-JDBHOE34.js.map +1 -0
  250. package/dist/chunk-JG4JIBBV.js +245 -0
  251. package/dist/chunk-JG4JIBBV.js.map +1 -0
  252. package/dist/chunk-JHJSR2UT.js +101 -0
  253. package/dist/chunk-JHJSR2UT.js.map +1 -0
  254. package/dist/chunk-JHKIEQKC.js +69 -0
  255. package/dist/chunk-JHKIEQKC.js.map +1 -0
  256. package/dist/chunk-JJDLCVZV.js +37 -0
  257. package/dist/chunk-JJDLCVZV.js.map +1 -0
  258. package/dist/chunk-JJSZK6KF.js +169 -0
  259. package/dist/chunk-JJSZK6KF.js.map +1 -0
  260. package/dist/chunk-JKAMW7OV.js +228 -0
  261. package/dist/chunk-JKAMW7OV.js.map +1 -0
  262. package/dist/chunk-JKWO3SGU.js +79 -0
  263. package/dist/chunk-JKWO3SGU.js.map +1 -0
  264. package/dist/chunk-JRSZNGFD.js +28 -0
  265. package/dist/chunk-JRSZNGFD.js.map +1 -0
  266. package/dist/chunk-JWDXPHJ3.js +117 -0
  267. package/dist/chunk-JWDXPHJ3.js.map +1 -0
  268. package/dist/chunk-JZVK4NDF.js +28 -0
  269. package/dist/chunk-JZVK4NDF.js.map +1 -0
  270. package/dist/chunk-K255663P.js +144 -0
  271. package/dist/chunk-K255663P.js.map +1 -0
  272. package/dist/chunk-K5TTAI44.js +89 -0
  273. package/dist/chunk-K5TTAI44.js.map +1 -0
  274. package/dist/chunk-KCAOUZCT.js +245 -0
  275. package/dist/chunk-KCAOUZCT.js.map +1 -0
  276. package/dist/chunk-KCCYHT23.js +39 -0
  277. package/dist/chunk-KCCYHT23.js.map +1 -0
  278. package/dist/chunk-KFUBWOCN.js +69 -0
  279. package/dist/chunk-KFUBWOCN.js.map +1 -0
  280. package/dist/chunk-KHQ3C5HB.js +125 -0
  281. package/dist/chunk-KHQ3C5HB.js.map +1 -0
  282. package/dist/chunk-KOKKR2GO.js +37 -0
  283. package/dist/chunk-KOKKR2GO.js.map +1 -0
  284. package/dist/chunk-KUKHQCFS.js +233 -0
  285. package/dist/chunk-KUKHQCFS.js.map +1 -0
  286. package/dist/chunk-KV432YFG.js +223 -0
  287. package/dist/chunk-KV432YFG.js.map +1 -0
  288. package/dist/chunk-L5SQIVFO.js +68 -0
  289. package/dist/chunk-L5SQIVFO.js.map +1 -0
  290. package/dist/chunk-LGDFJ7W6.js +174 -0
  291. package/dist/chunk-LGDFJ7W6.js.map +1 -0
  292. package/dist/chunk-LIHMBEQT.js +144 -0
  293. package/dist/chunk-LIHMBEQT.js.map +1 -0
  294. package/dist/chunk-LJDGAKG3.js +196 -0
  295. package/dist/chunk-LJDGAKG3.js.map +1 -0
  296. package/dist/chunk-LSUCPRXN.js +89 -0
  297. package/dist/chunk-LSUCPRXN.js.map +1 -0
  298. package/dist/chunk-LTEJYJUM.js +143 -0
  299. package/dist/chunk-LTEJYJUM.js.map +1 -0
  300. package/dist/chunk-M5RM57U5.js +69 -0
  301. package/dist/chunk-M5RM57U5.js.map +1 -0
  302. package/dist/chunk-MDSCN4PH.js +144 -0
  303. package/dist/chunk-MDSCN4PH.js.map +1 -0
  304. package/dist/chunk-MG2KX3KF.js +69 -0
  305. package/dist/chunk-MG2KX3KF.js.map +1 -0
  306. package/dist/chunk-MIATMZDP.js +39 -0
  307. package/dist/chunk-MIATMZDP.js.map +1 -0
  308. package/dist/chunk-MIVH7X2Q.js +245 -0
  309. package/dist/chunk-MIVH7X2Q.js.map +1 -0
  310. package/dist/chunk-MPZJH3PI.js +287 -0
  311. package/dist/chunk-MPZJH3PI.js.map +1 -0
  312. package/dist/chunk-MQ4ZZJXV.js +51 -0
  313. package/dist/chunk-MQ4ZZJXV.js.map +1 -0
  314. package/dist/chunk-MRTKFR7V.js +144 -0
  315. package/dist/chunk-MRTKFR7V.js.map +1 -0
  316. package/dist/chunk-MTSZUPDJ.js +151 -0
  317. package/dist/chunk-MTSZUPDJ.js.map +1 -0
  318. package/dist/chunk-MTU2IQUS.js +689 -0
  319. package/dist/chunk-MTU2IQUS.js.map +1 -0
  320. package/dist/chunk-MVA6X35R.js +165 -0
  321. package/dist/chunk-MVA6X35R.js.map +1 -0
  322. package/dist/chunk-ND5BRCYV.js +75 -0
  323. package/dist/chunk-ND5BRCYV.js.map +1 -0
  324. package/dist/chunk-NE5S2QWA.js +51 -0
  325. package/dist/chunk-NE5S2QWA.js.map +1 -0
  326. package/dist/chunk-NHK64BOP.js +69 -0
  327. package/dist/chunk-NHK64BOP.js.map +1 -0
  328. package/dist/chunk-NHMDJCXR.js +276 -0
  329. package/dist/chunk-NHMDJCXR.js.map +1 -0
  330. package/dist/chunk-NIBZSFZ6.js +196 -0
  331. package/dist/chunk-NIBZSFZ6.js.map +1 -0
  332. package/dist/chunk-NJ3LHGC6.js +169 -0
  333. package/dist/chunk-NJ3LHGC6.js.map +1 -0
  334. package/dist/chunk-NJKRLSH3.js +287 -0
  335. package/dist/chunk-NJKRLSH3.js.map +1 -0
  336. package/dist/chunk-NLTKDXLB.js +113 -0
  337. package/dist/chunk-NLTKDXLB.js.map +1 -0
  338. package/dist/chunk-NRWZ6JNA.js +69 -0
  339. package/dist/chunk-NRWZ6JNA.js.map +1 -0
  340. package/dist/chunk-NSBBMIXS.js +151 -0
  341. package/dist/chunk-NSBBMIXS.js.map +1 -0
  342. package/dist/chunk-O665PURC.js +63 -0
  343. package/dist/chunk-O665PURC.js.map +1 -0
  344. package/dist/chunk-O6LH7P6V.js +87 -0
  345. package/dist/chunk-O6LH7P6V.js.map +1 -0
  346. package/dist/chunk-OF4RHJCY.js +69 -0
  347. package/dist/chunk-OF4RHJCY.js.map +1 -0
  348. package/dist/chunk-OL4XCMRU.js +363 -0
  349. package/dist/chunk-OL4XCMRU.js.map +1 -0
  350. package/dist/chunk-ORBEMNBA.js +49 -0
  351. package/dist/chunk-ORBEMNBA.js.map +1 -0
  352. package/dist/chunk-OYCRE67S.js +87 -0
  353. package/dist/chunk-OYCRE67S.js.map +1 -0
  354. package/dist/chunk-P4KO43AP.js +245 -0
  355. package/dist/chunk-P4KO43AP.js.map +1 -0
  356. package/dist/chunk-PJHCOBSQ.js +163 -0
  357. package/dist/chunk-PJHCOBSQ.js.map +1 -0
  358. package/dist/chunk-PXPGCDNA.js +106 -0
  359. package/dist/chunk-PXPGCDNA.js.map +1 -0
  360. package/dist/chunk-QBVF4BCB.js +245 -0
  361. package/dist/chunk-QBVF4BCB.js.map +1 -0
  362. package/dist/chunk-QEGDJ4ZD.js +165 -0
  363. package/dist/chunk-QEGDJ4ZD.js.map +1 -0
  364. package/dist/chunk-QKP2KBZ5.js +219 -0
  365. package/dist/chunk-QKP2KBZ5.js.map +1 -0
  366. package/dist/chunk-QVHA4ANB.js +196 -0
  367. package/dist/chunk-QVHA4ANB.js.map +1 -0
  368. package/dist/chunk-QXBRA2T6.js +169 -0
  369. package/dist/chunk-QXBRA2T6.js.map +1 -0
  370. package/dist/chunk-RAMPMKQD.js +245 -0
  371. package/dist/chunk-RAMPMKQD.js.map +1 -0
  372. package/dist/chunk-REPTW53S.js +98 -0
  373. package/dist/chunk-REPTW53S.js.map +1 -0
  374. package/dist/chunk-RFJ5NMY4.js +54 -0
  375. package/dist/chunk-RFJ5NMY4.js.map +1 -0
  376. package/dist/chunk-RMFSOYRW.js +99 -0
  377. package/dist/chunk-RMFSOYRW.js.map +1 -0
  378. package/dist/chunk-RXQHKSIV.js +37 -0
  379. package/dist/chunk-RXQHKSIV.js.map +1 -0
  380. package/dist/chunk-RY7DDHZO.js +51 -0
  381. package/dist/chunk-RY7DDHZO.js.map +1 -0
  382. package/dist/chunk-RZGCNQWE.js +89 -0
  383. package/dist/chunk-RZGCNQWE.js.map +1 -0
  384. package/dist/chunk-S3W44IB3.js +151 -0
  385. package/dist/chunk-S3W44IB3.js.map +1 -0
  386. package/dist/chunk-SEKCH5XW.js +100 -0
  387. package/dist/chunk-SEKCH5XW.js.map +1 -0
  388. package/dist/chunk-SFBPPATA.js +37 -0
  389. package/dist/chunk-SFBPPATA.js.map +1 -0
  390. package/dist/chunk-SGS3LUQ3.js +196 -0
  391. package/dist/chunk-SGS3LUQ3.js.map +1 -0
  392. package/dist/chunk-SLHUNZIR.js +245 -0
  393. package/dist/chunk-SLHUNZIR.js.map +1 -0
  394. package/dist/chunk-STCVW5HT.js +49 -0
  395. package/dist/chunk-STCVW5HT.js.map +1 -0
  396. package/dist/chunk-SVGGVYY7.js +69 -0
  397. package/dist/chunk-SVGGVYY7.js.map +1 -0
  398. package/dist/chunk-T5I3DNHD.js +145 -0
  399. package/dist/chunk-T5I3DNHD.js.map +1 -0
  400. package/dist/chunk-TJDCSV5R.js +230 -0
  401. package/dist/chunk-TJDCSV5R.js.map +1 -0
  402. package/dist/chunk-TJWFURWT.js +43 -0
  403. package/dist/chunk-TJWFURWT.js.map +1 -0
  404. package/dist/chunk-TMO724ZN.js +63 -0
  405. package/dist/chunk-TMO724ZN.js.map +1 -0
  406. package/dist/chunk-TP7DOXLP.js +98 -0
  407. package/dist/chunk-TP7DOXLP.js.map +1 -0
  408. package/dist/chunk-TQJ3HQ7R.js +87 -0
  409. package/dist/chunk-TQJ3HQ7R.js.map +1 -0
  410. package/dist/chunk-TRNLQ7F3.js +245 -0
  411. package/dist/chunk-TRNLQ7F3.js.map +1 -0
  412. package/dist/chunk-U6UGFQIT.js +117 -0
  413. package/dist/chunk-U6UGFQIT.js.map +1 -0
  414. package/dist/chunk-U7OEYXJQ.js +165 -0
  415. package/dist/chunk-U7OEYXJQ.js.map +1 -0
  416. package/dist/chunk-UF6LFXBG.js +230 -0
  417. package/dist/chunk-UF6LFXBG.js.map +1 -0
  418. package/dist/chunk-ULZHPTB5.js +70 -0
  419. package/dist/chunk-ULZHPTB5.js.map +1 -0
  420. package/dist/chunk-UOCLNOC2.js +145 -0
  421. package/dist/chunk-UOCLNOC2.js.map +1 -0
  422. package/dist/chunk-UZ7AGDRK.js +98 -0
  423. package/dist/chunk-UZ7AGDRK.js.map +1 -0
  424. package/dist/chunk-V2RMMVGT.js +51 -0
  425. package/dist/chunk-V2RMMVGT.js.map +1 -0
  426. package/dist/chunk-V2UREEFT.js +89 -0
  427. package/dist/chunk-V2UREEFT.js.map +1 -0
  428. package/dist/chunk-V4WWIPTK.js +363 -0
  429. package/dist/chunk-V4WWIPTK.js.map +1 -0
  430. package/dist/chunk-V7IC4EAC.js +51 -0
  431. package/dist/chunk-V7IC4EAC.js.map +1 -0
  432. package/dist/chunk-VEHTXVLY.js +169 -0
  433. package/dist/chunk-VEHTXVLY.js.map +1 -0
  434. package/dist/chunk-VIVVHI7F.js +63 -0
  435. package/dist/chunk-VIVVHI7F.js.map +1 -0
  436. package/dist/chunk-VQMIOVFO.js +69 -0
  437. package/dist/chunk-VQMIOVFO.js.map +1 -0
  438. package/dist/chunk-VU3C3W4S.js +106 -0
  439. package/dist/chunk-VU3C3W4S.js.map +1 -0
  440. package/dist/chunk-VYPPQUB5.js +196 -0
  441. package/dist/chunk-VYPPQUB5.js.map +1 -0
  442. package/dist/chunk-W2TX267T.js +100 -0
  443. package/dist/chunk-W2TX267T.js.map +1 -0
  444. package/dist/chunk-W3EW7K6L.js +51 -0
  445. package/dist/chunk-W3EW7K6L.js.map +1 -0
  446. package/dist/chunk-W7NQ5NW6.js +100 -0
  447. package/dist/chunk-W7NQ5NW6.js.map +1 -0
  448. package/dist/chunk-WA5A2GB4.js +192 -0
  449. package/dist/chunk-WA5A2GB4.js.map +1 -0
  450. package/dist/chunk-WPAC4HEX.js +87 -0
  451. package/dist/chunk-WPAC4HEX.js.map +1 -0
  452. package/dist/chunk-X2OV53JW.js +196 -0
  453. package/dist/chunk-X2OV53JW.js.map +1 -0
  454. package/dist/chunk-X47BEKKF.js +68 -0
  455. package/dist/chunk-X47BEKKF.js.map +1 -0
  456. package/dist/chunk-X6K6AM4D.js +196 -0
  457. package/dist/chunk-X6K6AM4D.js.map +1 -0
  458. package/dist/chunk-XIKKYBHO.js +69 -0
  459. package/dist/chunk-XIKKYBHO.js.map +1 -0
  460. package/dist/chunk-XYDK5OWF.js +75 -0
  461. package/dist/chunk-XYDK5OWF.js.map +1 -0
  462. package/dist/chunk-Y2H4FXGU.js +68 -0
  463. package/dist/chunk-Y2H4FXGU.js.map +1 -0
  464. package/dist/chunk-YCRTFH4C.js +79 -0
  465. package/dist/chunk-YCRTFH4C.js.map +1 -0
  466. package/dist/chunk-YHGFJ7N6.js +63 -0
  467. package/dist/chunk-YHGFJ7N6.js.map +1 -0
  468. package/dist/chunk-YKDT2D43.js +98 -0
  469. package/dist/chunk-YKDT2D43.js.map +1 -0
  470. package/dist/chunk-YLTKQZ67.js +228 -0
  471. package/dist/chunk-YLTKQZ67.js.map +1 -0
  472. package/dist/chunk-YPGFPLWM.js +69 -0
  473. package/dist/chunk-YPGFPLWM.js.map +1 -0
  474. package/dist/chunk-YWYYPYBK.js +1 -0
  475. package/dist/chunk-YWYYPYBK.js.map +1 -0
  476. package/dist/chunk-Z4NCEYC6.js +70 -0
  477. package/dist/chunk-Z4NCEYC6.js.map +1 -0
  478. package/dist/chunk-Z7WNKARH.js +331 -0
  479. package/dist/chunk-Z7WNKARH.js.map +1 -0
  480. package/dist/chunk-ZA4NYPSW.js +28 -0
  481. package/dist/chunk-ZA4NYPSW.js.map +1 -0
  482. package/dist/chunk-ZDY2M7RX.js +113 -0
  483. package/dist/chunk-ZDY2M7RX.js.map +1 -0
  484. package/dist/chunk-ZFTQ2XBH.js +76 -0
  485. package/dist/chunk-ZFTQ2XBH.js.map +1 -0
  486. package/dist/chunk-ZI3TYUTO.js +196 -0
  487. package/dist/chunk-ZI3TYUTO.js.map +1 -0
  488. package/dist/chunk-ZI7PEVZG.js +89 -0
  489. package/dist/chunk-ZI7PEVZG.js.map +1 -0
  490. package/dist/chunk-ZKFNOCWD.js +125 -0
  491. package/dist/chunk-ZKFNOCWD.js.map +1 -0
  492. package/dist/chunk-ZOITFRX7.js +70 -0
  493. package/dist/chunk-ZOITFRX7.js.map +1 -0
  494. package/dist/chunk-ZPDLTZDJ.js +363 -0
  495. package/dist/chunk-ZPDLTZDJ.js.map +1 -0
  496. package/dist/chunk-ZR4G3PU3.js +89 -0
  497. package/dist/chunk-ZR4G3PU3.js.map +1 -0
  498. package/dist/context/index.js +5 -5
  499. package/dist/icon.cjs +2 -0
  500. package/dist/icon.cjs.map +1 -1
  501. package/dist/icon.d.cts +1 -1
  502. package/dist/icon.d.ts +1 -1
  503. package/dist/icon.js +3 -1
  504. package/dist/index.cjs +1706 -308
  505. package/dist/index.cjs.map +1 -1
  506. package/dist/index.d.cts +4 -3
  507. package/dist/index.d.ts +4 -3
  508. package/dist/index.js +176 -165
  509. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
  510. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +19 -19
  511. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
  512. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +5 -5
  513. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
  514. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +12 -12
  515. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
  516. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +3 -3
  517. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
  518. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
  519. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
  520. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +7 -7
  521. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
  522. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +6 -6
  523. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
  524. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +6 -6
  525. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
  526. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +6 -6
  527. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
  528. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +5 -5
  529. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
  530. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +22 -22
  531. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
  532. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +7 -7
  533. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
  534. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +5 -5
  535. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs.map +1 -1
  536. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +4 -4
  537. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
  538. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +25 -25
  539. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs +4 -4
  540. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
  541. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +1 -1
  542. package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +4 -4
  543. package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
  544. package/dist/molecules/curriculumV2/CurriculumContents/index.js +30 -30
  545. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
  546. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
  547. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +5 -5
  548. package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
  549. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +9 -9
  550. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
  551. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +6 -6
  552. package/dist/molecules/curriculumV2/curriculum-context.cjs +0 -1
  553. package/dist/molecules/curriculumV2/curriculum-context.cjs.map +1 -1
  554. package/dist/molecules/curriculumV2/curriculum-context.js +1 -1
  555. package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
  556. package/dist/molecules/curriculumV2/curriculum-sub-nav.js +6 -6
  557. package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
  558. package/dist/molecules/curriculumV2/index.cjs +4 -5
  559. package/dist/molecules/curriculumV2/index.cjs.map +1 -1
  560. package/dist/molecules/curriculumV2/index.js +39 -39
  561. package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
  562. package/dist/molecules/date-picker/date-picker-button.js +7 -7
  563. package/dist/molecules/date-picker/index.cjs.map +1 -1
  564. package/dist/molecules/date-picker/index.js +6 -6
  565. package/dist/molecules/description-json-render.cjs +1 -1
  566. package/dist/molecules/description-json-render.cjs.map +1 -1
  567. package/dist/molecules/description-json-render.js +7 -7
  568. package/dist/molecules/download-card.js +2 -2
  569. package/dist/molecules/dynamic-field.cjs +147 -5
  570. package/dist/molecules/dynamic-field.cjs.map +1 -1
  571. package/dist/molecules/dynamic-field.js +9 -6
  572. package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +1711 -0
  573. package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -0
  574. package/dist/molecules/dynamic-form-editor-field-editor-panel.d.cts +19 -0
  575. package/dist/molecules/dynamic-form-editor-field-editor-panel.d.ts +19 -0
  576. package/dist/molecules/dynamic-form-editor-field-editor-panel.js +37 -0
  577. package/dist/molecules/dynamic-form-editor-field-editor-panel.js.map +1 -0
  578. package/dist/molecules/dynamic-form-editor-field-list-panel.cjs +298 -0
  579. package/dist/molecules/dynamic-form-editor-field-list-panel.cjs.map +1 -0
  580. package/dist/molecules/dynamic-form-editor-field-list-panel.d.cts +16 -0
  581. package/dist/molecules/dynamic-form-editor-field-list-panel.d.ts +16 -0
  582. package/dist/molecules/dynamic-form-editor-field-list-panel.js +14 -0
  583. package/dist/molecules/dynamic-form-editor-field-list-panel.js.map +1 -0
  584. package/dist/molecules/dynamic-form-editor-issues-panel.cjs +171 -0
  585. package/dist/molecules/dynamic-form-editor-issues-panel.cjs.map +1 -0
  586. package/dist/molecules/dynamic-form-editor-issues-panel.d.cts +10 -0
  587. package/dist/molecules/dynamic-form-editor-issues-panel.d.ts +10 -0
  588. package/dist/molecules/dynamic-form-editor-issues-panel.js +12 -0
  589. package/dist/molecules/dynamic-form-editor-issues-panel.js.map +1 -0
  590. package/dist/molecules/dynamic-form-editor-preview-panel.cjs +1021 -0
  591. package/dist/molecules/dynamic-form-editor-preview-panel.cjs.map +1 -0
  592. package/dist/molecules/dynamic-form-editor-preview-panel.d.cts +10 -0
  593. package/dist/molecules/dynamic-form-editor-preview-panel.d.ts +10 -0
  594. package/dist/molecules/dynamic-form-editor-preview-panel.js +26 -0
  595. package/dist/molecules/dynamic-form-editor-preview-panel.js.map +1 -0
  596. package/dist/molecules/dynamic-form-editor-utils.cjs +396 -0
  597. package/dist/molecules/dynamic-form-editor-utils.cjs.map +1 -0
  598. package/dist/molecules/dynamic-form-editor-utils.d.cts +43 -0
  599. package/dist/molecules/dynamic-form-editor-utils.d.ts +43 -0
  600. package/dist/molecules/dynamic-form-editor-utils.js +44 -0
  601. package/dist/molecules/dynamic-form-editor-utils.js.map +1 -0
  602. package/dist/molecules/dynamic-form-editor.cjs +2925 -0
  603. package/dist/molecules/dynamic-form-editor.cjs.map +1 -0
  604. package/dist/molecules/dynamic-form-editor.d.cts +15 -0
  605. package/dist/molecules/dynamic-form-editor.d.ts +15 -0
  606. package/dist/molecules/dynamic-form-editor.js +51 -0
  607. package/dist/molecules/dynamic-form-editor.js.map +1 -0
  608. package/dist/molecules/dynamic-form-response-item.cjs +21 -12
  609. package/dist/molecules/dynamic-form-response-item.cjs.map +1 -1
  610. package/dist/molecules/dynamic-form-response-item.js +1 -1
  611. package/dist/molecules/dynamic-form.cjs +149 -7
  612. package/dist/molecules/dynamic-form.cjs.map +1 -1
  613. package/dist/molecules/dynamic-form.js +10 -7
  614. package/dist/molecules/expand-table/index.cjs.map +1 -1
  615. package/dist/molecules/expand-table/index.js +6 -6
  616. package/dist/molecules/force-refresh.js +2 -2
  617. package/dist/molecules/ghost-post.js +4 -4
  618. package/dist/molecules/index.cjs +1426 -27
  619. package/dist/molecules/index.cjs.map +1 -1
  620. package/dist/molecules/index.d.cts +1 -0
  621. package/dist/molecules/index.d.ts +1 -0
  622. package/dist/molecules/index.js +94 -84
  623. package/dist/molecules/learning-post.js +6 -6
  624. package/dist/molecules/navigation.js +3 -3
  625. package/dist/molecules/one-on-one-guide-list.js +3 -3
  626. package/dist/molecules/stepper.cjs.map +1 -1
  627. package/dist/molecules/stepper.js +5 -5
  628. package/dist/molecules/tag-selector.cjs.map +1 -1
  629. package/dist/molecules/tag-selector.js +6 -6
  630. package/dist/molecules/time-select.cjs +1 -1
  631. package/dist/molecules/time-select.cjs.map +1 -1
  632. package/dist/molecules/time-select.js +2 -2
  633. package/dist/molecules/training-info-guideline.js +7 -7
  634. package/dist/types/dynamic-form-schema-generated.cjs.map +1 -1
  635. package/dist/types/dynamic-form-schema-generated.d.cts +30 -2
  636. package/dist/types/dynamic-form-schema-generated.d.ts +30 -2
  637. package/dist/types/index.d.cts +1 -1
  638. package/dist/types/index.d.ts +1 -1
  639. package/dist/types/index.js +1 -1
  640. package/dist/utils/curriculum.utils.cjs.map +1 -1
  641. package/dist/utils/curriculum.utils.js +1 -1
  642. package/dist/utils/get-callout-icon-component.cjs +624 -0
  643. package/dist/utils/get-callout-icon-component.cjs.map +1 -0
  644. package/dist/utils/get-callout-icon-component.d.cts +11 -0
  645. package/dist/utils/get-callout-icon-component.d.ts +11 -0
  646. package/dist/utils/get-callout-icon-component.js +26 -0
  647. package/dist/utils/get-callout-icon-component.js.map +1 -0
  648. package/dist/utils/getCalloutIconComponent.cjs.map +1 -1
  649. package/dist/utils/getCalloutIconComponent.js +2 -2
  650. package/dist/utils/index.cjs +1 -1
  651. package/dist/utils/index.cjs.map +1 -1
  652. package/dist/utils/index.d.cts +1 -1
  653. package/dist/utils/index.d.ts +1 -1
  654. package/dist/utils/index.js +2 -2
  655. package/package.json +1 -1
  656. package/src/app/platform/reservation-card.tsx +0 -1
  657. package/src/constrant/dynamic-form-schema.json +55 -0
  658. package/src/icon.ts +2 -1
  659. package/src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx +3 -3
  660. package/src/molecules/curriculumV2/curriculum-context.tsx +0 -1
  661. package/src/molecules/description-json-render.tsx +1 -1
  662. package/src/molecules/dynamic-field.tsx +183 -7
  663. package/src/molecules/dynamic-form-editor-field-editor-panel.tsx +688 -0
  664. package/src/molecules/dynamic-form-editor-field-list-panel.tsx +116 -0
  665. package/src/molecules/dynamic-form-editor-issues-panel.tsx +35 -0
  666. package/src/molecules/dynamic-form-editor-preview-panel.tsx +30 -0
  667. package/src/molecules/dynamic-form-editor-utils.ts +433 -0
  668. package/src/molecules/dynamic-form-editor.tsx +263 -0
  669. package/src/molecules/dynamic-form-response-item.tsx +28 -17
  670. package/src/molecules/dynamic-form.tsx +1 -1
  671. package/src/molecules/index.ts +2 -1
  672. package/src/types/dynamic-form-schema-generated.ts +33 -0
  673. package/src/utils/index.ts +1 -1
  674. package/src/utils/{getCalloutIconComponent.ts → get-callout-icon-component.ts} +3 -3
@@ -0,0 +1,1021 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+ var __async = (__this, __arguments, generator) => {
59
+ return new Promise((resolve, reject) => {
60
+ var fulfilled = (value) => {
61
+ try {
62
+ step(generator.next(value));
63
+ } catch (e) {
64
+ reject(e);
65
+ }
66
+ };
67
+ var rejected = (value) => {
68
+ try {
69
+ step(generator.throw(value));
70
+ } catch (e) {
71
+ reject(e);
72
+ }
73
+ };
74
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
75
+ step((generator = generator.apply(__this, __arguments)).next());
76
+ });
77
+ };
78
+
79
+ // src/molecules/dynamic-form-editor-preview-panel.tsx
80
+ var dynamic_form_editor_preview_panel_exports = {};
81
+ __export(dynamic_form_editor_preview_panel_exports, {
82
+ DynamicFormEditorPreviewPanel: () => DynamicFormEditorPreviewPanel
83
+ });
84
+ module.exports = __toCommonJS(dynamic_form_editor_preview_panel_exports);
85
+
86
+ // src/atoms/card.tsx
87
+ var import_react = require("react");
88
+ var import_themes = require("@radix-ui/themes");
89
+ var import_jsx_runtime = require("react/jsx-runtime");
90
+ var Card = (0, import_react.forwardRef)(
91
+ (props, forwardedRef) => {
92
+ const _a = props, { borderDisable, borderRadius, error } = _a, rest = __objRest(_a, ["borderDisable", "borderRadius", "error"]);
93
+ const borderInsetClassName = (0, import_react.useMemo)(() => {
94
+ if (!borderDisable) return "";
95
+ const { left, right, top, bottom } = borderDisable;
96
+ return [
97
+ left && "disable-inset-left",
98
+ right && "disable-inset-right",
99
+ top && "disable-inset-top",
100
+ bottom && "disable-inset-bottom"
101
+ ].filter(Boolean).join(" ");
102
+ }, [borderDisable]);
103
+ const errorClsName = (0, import_react.useMemo)(() => {
104
+ return error ? " error" : "";
105
+ }, [error]);
106
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
+ import_themes.Card,
108
+ __spreadProps(__spreadValues({
109
+ variant: "surface"
110
+ }, rest), {
111
+ className: `${borderInsetClassName}${errorClsName} ${rest.className || ""}`,
112
+ "data-radius": borderRadius,
113
+ ref: forwardedRef
114
+ })
115
+ );
116
+ }
117
+ );
118
+ Card.displayName = "Card";
119
+
120
+ // src/atoms/flex.tsx
121
+ var import_themes2 = require("@radix-ui/themes");
122
+
123
+ // src/atoms/typo.tsx
124
+ var import_themes3 = require("@radix-ui/themes");
125
+ var import_react2 = require("react");
126
+
127
+ // src/utils/map-with-responsive.ts
128
+ var mapWithResponsive = (args) => {
129
+ const { value, mapFn } = args;
130
+ if (typeof value === "string") {
131
+ return mapFn(value);
132
+ }
133
+ ;
134
+ if (typeof value === "object") {
135
+ const newObj = {};
136
+ let key;
137
+ for (key in value) {
138
+ newObj[key] = mapFn(value[key]);
139
+ }
140
+ return newObj;
141
+ }
142
+ return value;
143
+ };
144
+
145
+ // src/atoms/typo.tsx
146
+ var import_jsx_runtime2 = require("react/jsx-runtime");
147
+ var Typo = (0, import_react2.forwardRef)(
148
+ (props, ref) => {
149
+ const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
150
+ const radixSize = (0, import_react2.useMemo)(() => {
151
+ if (size !== void 0) return size;
152
+ if (variant === void 0) return "2";
153
+ return mapWithResponsive({
154
+ value: variant,
155
+ mapFn: (variantValue) => {
156
+ switch (variantValue) {
157
+ case "caption":
158
+ return "1";
159
+ case "subtitle":
160
+ return "3";
161
+ case "body":
162
+ default:
163
+ return "2";
164
+ }
165
+ }
166
+ });
167
+ }, [size, variant]);
168
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes3.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
169
+ }
170
+ );
171
+ Typo.displayName = "Typo";
172
+
173
+ // src/molecules/dynamic-form.tsx
174
+ var import_react11 = require("react");
175
+ var import_formik = require("formik");
176
+ var Yup = __toESM(require("yup"), 1);
177
+ var import_themes15 = require("@radix-ui/themes");
178
+
179
+ // src/context/dynamic-form-context.tsx
180
+ var import_react5 = require("react");
181
+
182
+ // src/molecules/form/form.tsx
183
+ var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
184
+ var import_react4 = require("react");
185
+
186
+ // src/atoms/heading.tsx
187
+ var import_themes4 = require("@radix-ui/themes");
188
+ var import_react3 = require("react");
189
+ var import_themes5 = require("@radix-ui/themes");
190
+ var import_jsx_runtime3 = require("react/jsx-runtime");
191
+ var mapVariant = (variant) => {
192
+ switch (variant) {
193
+ case "heading1":
194
+ return "7";
195
+ case "heading2":
196
+ return "6";
197
+ case "heading3":
198
+ return "5";
199
+ case "heading4":
200
+ return "4";
201
+ case "heading5":
202
+ return "3";
203
+ default:
204
+ return void 0;
205
+ }
206
+ };
207
+ function Heading2(props) {
208
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
209
+ const radixSize = (0, import_react3.useMemo)(() => {
210
+ return variant ? mapWithResponsive({
211
+ value: variant,
212
+ mapFn: mapVariant
213
+ }) : size;
214
+ }, [size, variant]);
215
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
216
+ }
217
+
218
+ // src/molecules/form/form.tsx
219
+ var import_jsx_runtime4 = require("react/jsx-runtime");
220
+ var Root2 = (0, import_react4.forwardRef)(
221
+ (_a, ref) => {
222
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
223
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
224
+ RadixForm.Root,
225
+ __spreadProps(__spreadValues({}, rest), {
226
+ className: `FormRoot ${className || ""}`,
227
+ ref,
228
+ children
229
+ })
230
+ );
231
+ }
232
+ );
233
+ Root2.displayName = "FORM_ROOT";
234
+ var FieldContext = (0, import_react4.createContext)({
235
+ name: ""
236
+ });
237
+ var Field2 = (0, import_react4.forwardRef)(
238
+ (_a, ref) => {
239
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
240
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
241
+ RadixForm.Field,
242
+ __spreadProps(__spreadValues({}, rest), {
243
+ className: `FormField ${className || ""}`,
244
+ ref,
245
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FieldContext.Provider, { value: rest, children })
246
+ })
247
+ );
248
+ }
249
+ );
250
+ Field2.displayName = "FORM_FIELD";
251
+ function HeadingLabel(props) {
252
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
253
+ }
254
+ function CaptionLabel(props) {
255
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption", weight: "bold" }, props), { children: props.children }));
256
+ }
257
+ function BodyLabel(props) {
258
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Typo, __spreadProps(__spreadValues({ variant: "body", weight: "bold" }, props), { children: props.children }));
259
+ }
260
+ var Label2 = (0, import_react4.forwardRef)(
261
+ (_a, ref) => {
262
+ var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
263
+ const Comp = (0, import_react4.useMemo)(() => {
264
+ switch (variant) {
265
+ case "title":
266
+ return HeadingLabel;
267
+ case "caption":
268
+ return CaptionLabel;
269
+ case "body":
270
+ default:
271
+ return BodyLabel;
272
+ }
273
+ }, [variant]);
274
+ const fieldProps = (0, import_react4.useContext)(FieldContext);
275
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
276
+ RadixForm.Label,
277
+ __spreadProps(__spreadValues({}, rest), {
278
+ asChild: true,
279
+ className: `FormLabel ${className || ""}`,
280
+ ref,
281
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Comp, { children: [
282
+ children,
283
+ fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
284
+ ] })
285
+ })
286
+ );
287
+ }
288
+ );
289
+ Label2.displayName = "FORM_Label";
290
+ var Message2 = (0, import_react4.forwardRef)(
291
+ (_a, ref) => {
292
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
293
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
294
+ RadixForm.Message,
295
+ __spreadProps(__spreadValues({}, rest), {
296
+ asChild: true,
297
+ className: `FormMessage ${className || ""}`,
298
+ ref,
299
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Typo, { color: "red", children })
300
+ })
301
+ );
302
+ }
303
+ );
304
+ Message2.displayName = "FORM_Message";
305
+ var Control2 = (0, import_react4.forwardRef)(
306
+ (_a, ref) => {
307
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
308
+ const fieldProps = (0, import_react4.useContext)(FieldContext);
309
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
310
+ RadixForm.Control,
311
+ __spreadProps(__spreadValues({}, rest), {
312
+ className: `FormControl ${className || ""}`,
313
+ ref,
314
+ required: fieldProps.required
315
+ })
316
+ );
317
+ }
318
+ );
319
+ Control2.displayName = "FORM_Control";
320
+ function FormItem(_a) {
321
+ var _b = _a, {
322
+ label,
323
+ labelVariant,
324
+ children,
325
+ errorMessage
326
+ } = _b, fieldProps = __objRest(_b, [
327
+ "label",
328
+ "labelVariant",
329
+ "children",
330
+ "errorMessage"
331
+ ]);
332
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
333
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Form.Label, { variant: labelVariant, children: label }),
334
+ children,
335
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
336
+ ] }));
337
+ }
338
+ var Form = {
339
+ Root: Root2,
340
+ Field: Field2,
341
+ Label: Label2,
342
+ Message: Message2,
343
+ Control: RadixForm.Control,
344
+ Submit: RadixForm.Submit,
345
+ FormItem
346
+ };
347
+
348
+ // src/context/dynamic-form-context.tsx
349
+ var import_jsx_runtime5 = require("react/jsx-runtime");
350
+ var DynamicFormContext = (0, import_react5.createContext)(null);
351
+ function DynamicFormProvider({
352
+ children,
353
+ fields,
354
+ formik,
355
+ readonly = false,
356
+ formStyle
357
+ }) {
358
+ const contextValue = {
359
+ formik,
360
+ fields,
361
+ readonly,
362
+ getFieldValue: (name) => formik.values[name],
363
+ getFieldError: (name) => {
364
+ const error = formik.errors[name];
365
+ const touched = formik.touched[name];
366
+ return touched && error ? String(error) : void 0;
367
+ },
368
+ getFieldTouched: (name) => Boolean(formik.touched[name]),
369
+ setFieldValue: (field, value) => __async(null, null, function* () {
370
+ yield formik.setFieldValue(field, value);
371
+ }),
372
+ handleChange: formik.handleChange,
373
+ handleBlur: formik.handleBlur
374
+ };
375
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
376
+ }
377
+ function useDynamicForm() {
378
+ const context = (0, import_react5.useContext)(DynamicFormContext);
379
+ if (!context) {
380
+ throw new Error("useDynamicForm must be used within a DynamicFormProvider");
381
+ }
382
+ return context;
383
+ }
384
+
385
+ // src/atoms/text-field.tsx
386
+ var import_themes6 = require("@radix-ui/themes");
387
+ var import_react6 = require("react");
388
+ var import_jsx_runtime6 = require("react/jsx-runtime");
389
+ var Root3 = (0, import_react6.forwardRef)((props, ref) => {
390
+ const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
391
+ const fieldStyle = (0, import_react6.useMemo)(() => {
392
+ if (!error) return style;
393
+ const errorStyle = {
394
+ boxShadow: "inset 0 0 0 var(--text-field-border-width) var(--error-11)"
395
+ };
396
+ return __spreadValues(__spreadValues({}, style || {}), errorStyle);
397
+ }, [error, style]);
398
+ const classNameStr = error ? `error ${className}` : className;
399
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
400
+ import_themes6.TextField.Root,
401
+ __spreadValues({
402
+ className: classNameStr,
403
+ ref,
404
+ style: fieldStyle
405
+ }, rest)
406
+ );
407
+ });
408
+ Root3.displayName = "TextField.Root";
409
+ var TextField = { Root: Root3, Slot: import_themes6.TextField.Slot };
410
+
411
+ // src/atoms/text-area.tsx
412
+ var import_themes7 = require("@radix-ui/themes");
413
+ var import_react7 = require("react");
414
+ var import_jsx_runtime7 = require("react/jsx-runtime");
415
+ var TextArea = (0, import_react7.forwardRef)(
416
+ (props, ref) => {
417
+ const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
418
+ const fieldStyle = (0, import_react7.useMemo)(() => {
419
+ if (!error) return style;
420
+ const errorStyle = {
421
+ boxShadow: "inset 0 0 0 var(--text-area-border-width) var(--error-11)"
422
+ };
423
+ return __spreadValues(__spreadValues({}, style || {}), errorStyle);
424
+ }, [error, style]);
425
+ const classNameStr = error ? `error ${className}` : className;
426
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
427
+ import_themes7.TextArea,
428
+ __spreadProps(__spreadValues({}, rest), {
429
+ className: classNameStr,
430
+ ref,
431
+ style: fieldStyle
432
+ })
433
+ );
434
+ }
435
+ );
436
+ TextArea.displayName = "TextArea";
437
+
438
+ // src/atoms/select.tsx
439
+ var import_themes8 = require("@radix-ui/themes");
440
+ var import_react8 = require("react");
441
+ var import_jsx_runtime8 = require("react/jsx-runtime");
442
+ var SelectContext = (0, import_react8.createContext)({
443
+ error: false
444
+ });
445
+ var Content = (0, import_react8.forwardRef)((props, ref) => {
446
+ const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
447
+ const { error } = (0, import_react8.useContext)(SelectContext);
448
+ const cls = (0, import_react8.useMemo)(() => {
449
+ const etc = isNavigation ? "nav-select" : "";
450
+ const errorCls = error ? "tipp-error" : "";
451
+ return [etc, errorCls, className].join(" ");
452
+ }, [className, error, isNavigation]);
453
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
454
+ import_themes8.Select.Content,
455
+ __spreadProps(__spreadValues({
456
+ position: "popper"
457
+ }, rest), {
458
+ className: cls,
459
+ ref
460
+ })
461
+ );
462
+ });
463
+ Content.displayName = "Select.Content";
464
+ var Trigger = (0, import_react8.forwardRef)(
465
+ (props, ref) => {
466
+ const _a = props, { className } = _a, rest = __objRest(_a, ["className"]);
467
+ const { error } = (0, import_react8.useContext)(SelectContext);
468
+ const cls = (0, import_react8.useMemo)(() => {
469
+ const errorCls = error ? "error" : "";
470
+ return [errorCls, className].join(" ");
471
+ }, [className, error]);
472
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes8.Select.Trigger, __spreadProps(__spreadValues({}, rest), { className: cls, ref }));
473
+ }
474
+ );
475
+ Trigger.displayName = "Select.Trigger";
476
+ function Root4(props) {
477
+ const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
478
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes8.Select.Root, __spreadValues({}, rest)) });
479
+ }
480
+ Root4.displayName = "Select.Root";
481
+ var Select = __spreadProps(__spreadValues({}, import_themes8.Select), {
482
+ Root: Root4,
483
+ Trigger,
484
+ Content
485
+ });
486
+
487
+ // src/atoms/check-box-group.tsx
488
+ var import_themes9 = require("@radix-ui/themes");
489
+ var import_react9 = require("react");
490
+ var import_jsx_runtime9 = require("react/jsx-runtime");
491
+ var Root5 = (0, import_react9.forwardRef)((props, ref) => {
492
+ const _a = props, { children, size = "medium" } = _a, rest = __objRest(_a, ["children", "size"]);
493
+ const groupSize = (0, import_react9.useMemo)(() => {
494
+ switch (size) {
495
+ case "small":
496
+ return "1";
497
+ case "large":
498
+ return "3";
499
+ case "medium":
500
+ default:
501
+ return "2";
502
+ }
503
+ }, [size]);
504
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes9.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
505
+ });
506
+ Root5.displayName = "CheckboxGroup.Root";
507
+ var CheckboxGroup = {
508
+ Root: Root5,
509
+ Item: import_themes9.CheckboxGroup.Item
510
+ };
511
+
512
+ // src/atoms/radio-group.tsx
513
+ var import_themes10 = require("@radix-ui/themes");
514
+
515
+ // src/atoms/check-box.tsx
516
+ var import_themes11 = require("@radix-ui/themes");
517
+ var import_react10 = require("react");
518
+ var import_jsx_runtime10 = require("react/jsx-runtime");
519
+ var Checkbox = (0, import_react10.forwardRef)(
520
+ (props, ref) => {
521
+ const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
522
+ const radixSize = (0, import_react10.useMemo)(() => {
523
+ switch (size) {
524
+ case "small":
525
+ return "1";
526
+ case "medium":
527
+ return "2";
528
+ case "large":
529
+ return "3";
530
+ }
531
+ }, [size]);
532
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes11.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
533
+ }
534
+ );
535
+ Checkbox.displayName = "Checkbox";
536
+
537
+ // src/atoms/radio-cards.tsx
538
+ var import_themes12 = require("@radix-ui/themes");
539
+
540
+ // src/atoms/grid.tsx
541
+ var import_themes13 = require("@radix-ui/themes");
542
+
543
+ // src/atoms/inset.tsx
544
+ var import_themes14 = require("@radix-ui/themes");
545
+
546
+ // src/molecules/dynamic-field.tsx
547
+ var import_jsx_runtime11 = require("react/jsx-runtime");
548
+ function isRecord(value) {
549
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
550
+ }
551
+ function isFieldOption(value) {
552
+ if (!isRecord(value)) return false;
553
+ const label = value.label;
554
+ const optionValue = value.value;
555
+ return typeof label === "string" && (typeof optionValue === "string" || typeof optionValue === "number");
556
+ }
557
+ function isImageFieldOption(value) {
558
+ if (!isRecord(value)) return false;
559
+ if (!isFieldOption(value)) return false;
560
+ const imageSrc = value.imageSrc;
561
+ const alt = value.alt;
562
+ return typeof imageSrc === "string" && (alt === void 0 || typeof alt === "string");
563
+ }
564
+ function getStringProp(obj, key, fallback) {
565
+ if (!isRecord(obj)) return fallback;
566
+ const value = obj[key];
567
+ return typeof value === "string" ? value : fallback;
568
+ }
569
+ function getNumberProp(obj, key, fallback) {
570
+ if (!isRecord(obj)) return fallback;
571
+ const value = obj[key];
572
+ return typeof value === "number" ? value : fallback;
573
+ }
574
+ function getOptions(field) {
575
+ if (!isRecord(field)) return null;
576
+ const options = field.options;
577
+ if (!Array.isArray(options)) return null;
578
+ if (!options.every(isFieldOption)) return null;
579
+ return options;
580
+ }
581
+ function getImageOptions(field) {
582
+ if (!isRecord(field)) return null;
583
+ const options = field.options;
584
+ if (!Array.isArray(options)) return null;
585
+ if (!options.every(isImageFieldOption)) return null;
586
+ return options;
587
+ }
588
+ function DynamicFormField({
589
+ field
590
+ }) {
591
+ const {
592
+ getFieldValue,
593
+ getFieldError,
594
+ getFieldTouched,
595
+ setFieldValue,
596
+ handleChange,
597
+ handleBlur,
598
+ readonly
599
+ } = useDynamicForm();
600
+ const name = field.name;
601
+ const value = getFieldValue(name);
602
+ const error = getFieldError(name);
603
+ const touched = getFieldTouched(name);
604
+ const hasError = Boolean(error && touched);
605
+ const commonProps = {
606
+ name,
607
+ value: String(value || ""),
608
+ onChange: readonly ? void 0 : handleChange,
609
+ onBlur: readonly ? void 0 : handleBlur,
610
+ error: hasError,
611
+ disabled: readonly
612
+ };
613
+ const selectedValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
614
+ switch (field.type) {
615
+ case "short_text":
616
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
617
+ TextField.Root,
618
+ __spreadProps(__spreadValues({}, commonProps), {
619
+ placeholder: field.placeholder,
620
+ type: "text"
621
+ })
622
+ );
623
+ case "email":
624
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
625
+ TextField.Root,
626
+ __spreadProps(__spreadValues({}, commonProps), {
627
+ placeholder: field.placeholder,
628
+ type: "email"
629
+ })
630
+ );
631
+ case "number":
632
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
633
+ TextField.Root,
634
+ __spreadProps(__spreadValues({}, commonProps), {
635
+ inputMode: "numeric",
636
+ pattern: "[0-9]*",
637
+ placeholder: field.placeholder,
638
+ type: "number"
639
+ })
640
+ );
641
+ case "long_text":
642
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
643
+ case "dropdown":
644
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
645
+ Select.Root,
646
+ {
647
+ disabled: readonly,
648
+ onValueChange: readonly ? void 0 : (newValue) => {
649
+ void setFieldValue(name, newValue);
650
+ },
651
+ value: selectedValue,
652
+ children: [
653
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
654
+ Select.Trigger,
655
+ {
656
+ placeholder: field.placeholder,
657
+ style: {
658
+ alignSelf: "flex-start",
659
+ width: "fit-content",
660
+ minWidth: "180px",
661
+ maxWidth: "100%"
662
+ }
663
+ }
664
+ ),
665
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
666
+ ]
667
+ }
668
+ );
669
+ case "choice":
670
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
671
+ import_themes10.RadioGroup.Root,
672
+ {
673
+ disabled: readonly,
674
+ onValueChange: readonly ? void 0 : (newValue) => {
675
+ void setFieldValue(name, newValue);
676
+ },
677
+ orientation: field.orientation,
678
+ value: String(value || ""),
679
+ children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes10.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
680
+ }
681
+ );
682
+ case "radio_cards": {
683
+ const options = getOptions(field);
684
+ if (!options) return null;
685
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
686
+ import_themes12.RadioCards.Root,
687
+ {
688
+ disabled: readonly,
689
+ onValueChange: readonly ? void 0 : (newValue) => {
690
+ void setFieldValue(name, newValue);
691
+ },
692
+ value: selectedValue,
693
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes12.RadioCards.Item, { value: String(option.value), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typo, { children: option.label }) }, option.value))
694
+ }
695
+ );
696
+ }
697
+ case "choices":
698
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
699
+ CheckboxGroup.Root,
700
+ {
701
+ disabled: readonly,
702
+ onValueChange: readonly ? void 0 : (newValue) => {
703
+ void setFieldValue(name, newValue);
704
+ },
705
+ orientation: field.orientation,
706
+ value: Array.isArray(value) ? value.map(String) : [],
707
+ children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
708
+ }
709
+ );
710
+ case "yes_no":
711
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_themes2.Flex, { gap: "2", children: [
712
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
713
+ Checkbox,
714
+ {
715
+ checked: Boolean(value),
716
+ disabled: readonly,
717
+ onCheckedChange: readonly ? void 0 : (checked) => {
718
+ void setFieldValue(name, checked);
719
+ }
720
+ }
721
+ ),
722
+ field.description ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
723
+ ] });
724
+ case "image_radio_card": {
725
+ const options = getImageOptions(field);
726
+ if (!options) return null;
727
+ const gridColumnsCount = Math.max(1, getNumberProp(field, "gridColumnsCount", 4));
728
+ const gridColumns = getStringProp(
729
+ field,
730
+ "gridColumns",
731
+ `repeat(${gridColumnsCount}, 1fr)`
732
+ );
733
+ const gridItemHeight = getStringProp(field, "gridItemHeight", "100px");
734
+ const gridRows = getStringProp(field, "gridRows", gridItemHeight);
735
+ const gridGap = getStringProp(field, "gridGap", "2");
736
+ const imageFitRaw = getStringProp(field, "imageFit", "cover");
737
+ const imageFit = imageFitRaw === "contain" ? "contain" : "cover";
738
+ const handleValueChange = (newValue) => {
739
+ if (readonly) return;
740
+ const selectedOption = options.find(
741
+ (option) => String(option.value) === newValue
742
+ );
743
+ if (!selectedOption) return;
744
+ void setFieldValue(name, selectedOption.value);
745
+ };
746
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
747
+ import_themes12.RadioCards.Root,
748
+ {
749
+ disabled: readonly,
750
+ onValueChange: readonly ? void 0 : handleValueChange,
751
+ value: selectedValue,
752
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes13.Grid, { columns: gridColumns, gap: gridGap, rows: gridRows, children: options.map((option) => {
753
+ const optionValue = String(option.value);
754
+ const altText = option.alt || option.label;
755
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
756
+ import_themes12.RadioCards.Item,
757
+ {
758
+ style: {
759
+ padding: 0
760
+ },
761
+ value: optionValue,
762
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes14.Inset, { style: { width: "100%", height: "100%", padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
763
+ "img",
764
+ {
765
+ alt: altText,
766
+ src: option.imageSrc,
767
+ style: {
768
+ width: "100%",
769
+ height: "100%",
770
+ display: "block",
771
+ objectFit: imageFit,
772
+ opacity: readonly ? 0.7 : 1
773
+ }
774
+ }
775
+ ) })
776
+ },
777
+ optionValue
778
+ );
779
+ }) })
780
+ }
781
+ );
782
+ }
783
+ default:
784
+ return null;
785
+ }
786
+ }
787
+
788
+ // src/molecules/dynamic-form.tsx
789
+ var import_jsx_runtime12 = require("react/jsx-runtime");
790
+ function scrollToFirstError(errors, _fields) {
791
+ const firstErrorFieldName = Object.keys(errors)[0];
792
+ if (!firstErrorFieldName) return;
793
+ let fieldElement = document.querySelector(`[name="${firstErrorFieldName}"]`);
794
+ if (!fieldElement) {
795
+ fieldElement = document.querySelector(
796
+ `[data-field-name="${firstErrorFieldName}"]`
797
+ );
798
+ }
799
+ if (!fieldElement) {
800
+ fieldElement = document.querySelector(
801
+ `[data-error-field="${firstErrorFieldName}"]`
802
+ );
803
+ }
804
+ if (fieldElement) {
805
+ fieldElement.scrollIntoView({
806
+ behavior: "smooth",
807
+ block: "nearest"
808
+ });
809
+ }
810
+ }
811
+ function DynamicFormRoot({
812
+ fields,
813
+ initialValues = {},
814
+ onSubmit,
815
+ children,
816
+ readonly = false,
817
+ formStyle
818
+ }) {
819
+ const validationSchema = (0, import_react11.useMemo)(() => {
820
+ const schema = {};
821
+ fields.forEach((field) => {
822
+ if (field.validation) {
823
+ const validation = createYupValidation(field, field.validation);
824
+ if (validation) {
825
+ schema[field.name] = validation;
826
+ }
827
+ } else if (field.required) {
828
+ if (field.type === "choices") {
829
+ schema[field.name] = Yup.array().min(1, `${field.label}\uC744(\uB97C) \uD558\uB098 \uC774\uC0C1 \uC120\uD0DD\uD574\uC8FC\uC138\uC694`).required(`${field.label}\uC740(\uB294) \uD544\uC218\uC785\uB2C8\uB2E4`);
830
+ } else if (field.type === "yes_no") {
831
+ schema[field.name] = Yup.boolean().oneOf(
832
+ [true],
833
+ `${field.label}\uC5D0 \uB3D9\uC758\uD574\uC8FC\uC138\uC694`
834
+ );
835
+ } else {
836
+ schema[field.name] = Yup.string().required(
837
+ `${field.label}\uC740(\uB294) \uD544\uC218\uC785\uB2C8\uB2E4`
838
+ );
839
+ }
840
+ }
841
+ });
842
+ return Object.keys(schema).length > 0 ? Yup.object(schema) : void 0;
843
+ }, [fields]);
844
+ const handleSubmit = (0, import_react11.useCallback)(
845
+ (values) => __async(null, null, function* () {
846
+ yield onSubmit(values);
847
+ }),
848
+ [onSubmit]
849
+ );
850
+ const formik = (0, import_formik.useFormik)({
851
+ initialValues: fields.reduce((acc, field) => {
852
+ if (field.type === "choices") {
853
+ acc[field.name] = initialValues[field.name] || [];
854
+ } else if (field.type === "yes_no") {
855
+ acc[field.name] = initialValues[field.name] || false;
856
+ } else {
857
+ acc[field.name] = initialValues[field.name] || "";
858
+ }
859
+ return acc;
860
+ }, {}),
861
+ validationSchema,
862
+ validateOnBlur: true,
863
+ validateOnChange: true,
864
+ onSubmit: handleSubmit
865
+ });
866
+ (0, import_react11.useEffect)(() => {
867
+ if (formik.submitCount > 0 && Object.keys(formik.errors).length > 0) {
868
+ const timeoutId = setTimeout(() => {
869
+ scrollToFirstError(formik.errors, fields);
870
+ }, 100);
871
+ return () => {
872
+ clearTimeout(timeoutId);
873
+ };
874
+ }
875
+ }, [formik.submitCount, formik.errors, fields]);
876
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
877
+ DynamicFormProvider,
878
+ {
879
+ fields,
880
+ formStyle,
881
+ formik,
882
+ readonly,
883
+ children
884
+ }
885
+ );
886
+ }
887
+ function DynamicFormFieldList({
888
+ fields: fieldsProp,
889
+ labelVariant
890
+ }) {
891
+ const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
892
+ const fields = fieldsProp || fieldsFromContext;
893
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: fields.map((field) => {
894
+ const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
895
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
896
+ import_themes15.Box,
897
+ {
898
+ "data-error-field": errorMessage ? field.name : void 0,
899
+ "data-field-name": field.name,
900
+ mb: "2",
901
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
902
+ Form.FormItem,
903
+ {
904
+ errorMessage,
905
+ label: field.label,
906
+ labelVariant,
907
+ name: field.name,
908
+ required: field.required,
909
+ children: [
910
+ field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typo, { variant: "caption", children: field.description }) : null,
911
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DynamicFormField, { field })
912
+ ]
913
+ }
914
+ )
915
+ },
916
+ field.name
917
+ );
918
+ }) });
919
+ }
920
+ var DynamicForm = {
921
+ Root: DynamicFormRoot,
922
+ FieldList: DynamicFormFieldList
923
+ };
924
+ function createYupValidation(field, validation) {
925
+ if (!validation) return void 0;
926
+ let schema;
927
+ if (field.type === "number") {
928
+ schema = Yup.number();
929
+ } else if (field.type === "email") {
930
+ schema = Yup.string().email(
931
+ validation.message || "\uC62C\uBC14\uB978 \uC774\uBA54\uC77C \uD615\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4"
932
+ );
933
+ } else if (field.type === "choices") {
934
+ schema = Yup.array();
935
+ } else if (field.type === "yes_no") {
936
+ schema = Yup.boolean();
937
+ } else {
938
+ schema = Yup.string();
939
+ }
940
+ if (validation.min !== void 0) {
941
+ if (field.type === "number") {
942
+ schema = schema.min(
943
+ validation.min,
944
+ validation.message || `\uCD5C\uC18C ${validation.min}\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`
945
+ );
946
+ } else if (field.type === "choices") {
947
+ schema = schema.min(
948
+ validation.min,
949
+ validation.message || `\uCD5C\uC18C ${validation.min}\uAC1C \uC774\uC0C1 \uC120\uD0DD\uD574\uC8FC\uC138\uC694`
950
+ );
951
+ } else if (field.type === "yes_no") {
952
+ } else {
953
+ schema = schema.min(
954
+ validation.min,
955
+ validation.message || `\uCD5C\uC18C ${validation.min}\uC790 \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`
956
+ );
957
+ }
958
+ }
959
+ if (validation.max !== void 0) {
960
+ if (field.type === "number") {
961
+ schema = schema.max(
962
+ validation.max,
963
+ validation.message || `\uCD5C\uB300 ${validation.max}\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`
964
+ );
965
+ } else if (field.type === "choices") {
966
+ schema = schema.max(
967
+ validation.max,
968
+ validation.message || `\uCD5C\uB300 ${validation.max}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD \uAC00\uB2A5\uD569\uB2C8\uB2E4`
969
+ );
970
+ } else if (field.type === "yes_no") {
971
+ } else {
972
+ schema = schema.max(
973
+ validation.max,
974
+ validation.message || `\uCD5C\uB300 ${validation.max}\uC790 \uC774\uD558\uC5EC\uC57C \uD569\uB2C8\uB2E4`
975
+ );
976
+ }
977
+ }
978
+ if (validation.pattern) {
979
+ if (field.type === "yes_no") {
980
+ } else {
981
+ schema = schema.matches(
982
+ new RegExp(validation.pattern),
983
+ validation.message || "\uC62C\uBC14\uB978 \uD615\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4"
984
+ );
985
+ }
986
+ }
987
+ if (field.required) {
988
+ if (field.type === "yes_no") {
989
+ schema = schema.oneOf(
990
+ [true],
991
+ validation.message || `${field.label}\uC5D0 \uB3D9\uC758\uD574\uC8FC\uC138\uC694`
992
+ );
993
+ } else if (field.type === "choices") {
994
+ schema = schema.min(
995
+ 1,
996
+ validation.message || `${field.label}\uC744(\uB97C) \uD558\uB098 \uC774\uC0C1 \uC120\uD0DD\uD574\uC8FC\uC138\uC694`
997
+ );
998
+ } else {
999
+ schema = schema.required(
1000
+ validation.message || `${field.label}\uC740(\uB294) \uD544\uC218\uC785\uB2C8\uB2E4`
1001
+ );
1002
+ }
1003
+ }
1004
+ return schema;
1005
+ }
1006
+
1007
+ // src/molecules/dynamic-form-editor-preview-panel.tsx
1008
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1009
+ function DynamicFormEditorPreviewPanel(props) {
1010
+ const { show, fields } = props;
1011
+ if (!show) return null;
1012
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Card, { style: { width: 420, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
1013
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typo, { variant: "body", children: "\uD504\uB9AC\uBDF0" }),
1014
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DynamicForm.Root, { fields, onSubmit: () => void 0, readonly: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DynamicForm.FieldList, { labelVariant: "body" }) })
1015
+ ] }) });
1016
+ }
1017
+ // Annotate the CommonJS export names for ESM import in node:
1018
+ 0 && (module.exports = {
1019
+ DynamicFormEditorPreviewPanel
1020
+ });
1021
+ //# sourceMappingURL=dynamic-form-editor-preview-panel.cjs.map