@tipp/ui 2.3.24 → 2.3.26

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 (377) hide show
  1. package/dist/app/index.cjs +26 -18
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +44 -44
  4. package/dist/app/platform/coach-question-list.cjs +4 -3
  5. package/dist/app/platform/coach-question-list.cjs.map +1 -1
  6. package/dist/app/platform/coach-question-list.js +4 -4
  7. package/dist/app/platform/contents-card.cjs +4 -3
  8. package/dist/app/platform/contents-card.cjs.map +1 -1
  9. package/dist/app/platform/contents-card.js +5 -5
  10. package/dist/app/platform/curriculum-card.cjs.map +1 -1
  11. package/dist/app/platform/curriculum-card.js +2 -2
  12. package/dist/app/platform/edit-coaching-time.cjs +19 -11
  13. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  14. package/dist/app/platform/edit-coaching-time.js +36 -36
  15. package/dist/app/platform/edit-service-type.cjs +21 -13
  16. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  17. package/dist/app/platform/edit-service-type.js +36 -36
  18. package/dist/app/platform/goal-manage-card-edit.cjs +10 -9
  19. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  20. package/dist/app/platform/goal-manage-card-edit.js +36 -36
  21. package/dist/app/platform/goal-manage-card-read.cjs +4 -3
  22. package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
  23. package/dist/app/platform/goal-manage-card-read.js +5 -5
  24. package/dist/app/platform/on-offline-radio-card.cjs +7 -6
  25. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  26. package/dist/app/platform/on-offline-radio-card.js +35 -35
  27. package/dist/app/platform/report-card.cjs +4 -3
  28. package/dist/app/platform/report-card.cjs.map +1 -1
  29. package/dist/app/platform/report-card.js +5 -5
  30. package/dist/app/platform/reservation-card.cjs +15 -14
  31. package/dist/app/platform/reservation-card.cjs.map +1 -1
  32. package/dist/app/platform/reservation-card.js +36 -36
  33. package/dist/app/platform/session-card.cjs +22 -14
  34. package/dist/app/platform/session-card.cjs.map +1 -1
  35. package/dist/app/platform/session-card.js +38 -38
  36. package/dist/app/platform/session-review-simple-read.cjs +4 -3
  37. package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
  38. package/dist/app/platform/session-review-simple-read.js +4 -4
  39. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +6 -5
  40. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  41. package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
  42. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +6 -5
  43. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  44. package/dist/app/platform/userInfos/coaching-customer-info/large.js +4 -4
  45. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +6 -5
  46. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  47. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +4 -4
  48. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +4 -3
  49. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  50. package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -4
  51. package/dist/app/platform/userInfos/session-user-info-detail.cjs +6 -5
  52. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  53. package/dist/app/platform/userInfos/session-user-info-detail.js +4 -4
  54. package/dist/app/platform/userInfos/utils.cjs +6 -5
  55. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  56. package/dist/app/platform/userInfos/utils.js +4 -4
  57. package/dist/atoms/dialog.cjs +8 -1
  58. package/dist/atoms/dialog.cjs.map +1 -1
  59. package/dist/atoms/dialog.js +1 -1
  60. package/dist/atoms/index.cjs +20 -22
  61. package/dist/atoms/index.cjs.map +1 -1
  62. package/dist/atoms/index.d.cts +2 -2
  63. package/dist/atoms/index.d.ts +2 -2
  64. package/dist/atoms/index.js +4 -4
  65. package/dist/atoms/pagination.cjs.map +1 -1
  66. package/dist/atoms/pagination.js +2 -2
  67. package/dist/atoms/toast.cjs +12 -21
  68. package/dist/atoms/toast.cjs.map +1 -1
  69. package/dist/atoms/toast.d.cts +11 -3
  70. package/dist/atoms/toast.d.ts +11 -3
  71. package/dist/atoms/toast.js +1 -1
  72. package/dist/chunk-2C72X65G.js +69 -0
  73. package/dist/chunk-2C72X65G.js.map +1 -0
  74. package/dist/chunk-2KJXXQZZ.js +69 -0
  75. package/dist/chunk-2KJXXQZZ.js.map +1 -0
  76. package/dist/chunk-2UHKEWYM.js +69 -0
  77. package/dist/chunk-2UHKEWYM.js.map +1 -0
  78. package/dist/chunk-2Y5K7X4K.js +174 -0
  79. package/dist/chunk-2Y5K7X4K.js.map +1 -0
  80. package/dist/chunk-3EVBMGYP.js +69 -0
  81. package/dist/chunk-3EVBMGYP.js.map +1 -0
  82. package/dist/chunk-3NZHEIZS.js +228 -0
  83. package/dist/chunk-3NZHEIZS.js.map +1 -0
  84. package/dist/chunk-3VQKU4OQ.js +87 -0
  85. package/dist/chunk-3VQKU4OQ.js.map +1 -0
  86. package/dist/chunk-3WNHPKHP.js +69 -0
  87. package/dist/chunk-3WNHPKHP.js.map +1 -0
  88. package/dist/chunk-3Z2XZ4ZG.js +169 -0
  89. package/dist/chunk-3Z2XZ4ZG.js.map +1 -0
  90. package/dist/chunk-4SKQ6CCD.js +79 -0
  91. package/dist/chunk-4SKQ6CCD.js.map +1 -0
  92. package/dist/chunk-5FF4ZJNV.js +228 -0
  93. package/dist/chunk-5FF4ZJNV.js.map +1 -0
  94. package/dist/chunk-5J4YHHVX.js +222 -0
  95. package/dist/chunk-5J4YHHVX.js.map +1 -0
  96. package/dist/chunk-5QPYMQS2.js +228 -0
  97. package/dist/chunk-5QPYMQS2.js.map +1 -0
  98. package/dist/chunk-5SDV4LVM.js +63 -0
  99. package/dist/chunk-5SDV4LVM.js.map +1 -0
  100. package/dist/chunk-5SY47XS3.js +196 -0
  101. package/dist/chunk-5SY47XS3.js.map +1 -0
  102. package/dist/chunk-5VLRQ6WR.js +144 -0
  103. package/dist/chunk-5VLRQ6WR.js.map +1 -0
  104. package/dist/chunk-5XIKOTFB.js +28 -0
  105. package/dist/chunk-5XIKOTFB.js.map +1 -0
  106. package/dist/chunk-5YR6Q4EF.js +63 -0
  107. package/dist/chunk-5YR6Q4EF.js.map +1 -0
  108. package/dist/chunk-67QUQ2F5.js +144 -0
  109. package/dist/chunk-67QUQ2F5.js.map +1 -0
  110. package/dist/chunk-6BEIF6A5.js +89 -0
  111. package/dist/chunk-6BEIF6A5.js.map +1 -0
  112. package/dist/chunk-6HMQEUHX.js +54 -0
  113. package/dist/chunk-6HMQEUHX.js.map +1 -0
  114. package/dist/chunk-76PNGKCB.js +54 -0
  115. package/dist/chunk-76PNGKCB.js.map +1 -0
  116. package/dist/chunk-77ZEIVE7.js +196 -0
  117. package/dist/chunk-77ZEIVE7.js.map +1 -0
  118. package/dist/chunk-7F2FYVKU.js +37 -0
  119. package/dist/chunk-7F2FYVKU.js.map +1 -0
  120. package/dist/chunk-7PTOIFNI.js +63 -0
  121. package/dist/chunk-7PTOIFNI.js.map +1 -0
  122. package/dist/chunk-ARKE5GOZ.js +144 -0
  123. package/dist/chunk-ARKE5GOZ.js.map +1 -0
  124. package/dist/chunk-AYHBNTO7.js +69 -0
  125. package/dist/chunk-AYHBNTO7.js.map +1 -0
  126. package/dist/chunk-B5CKZFDM.js +144 -0
  127. package/dist/chunk-B5CKZFDM.js.map +1 -0
  128. package/dist/chunk-BAPRGYN5.js +144 -0
  129. package/dist/chunk-BAPRGYN5.js.map +1 -0
  130. package/dist/chunk-BFRNEBJN.js +51 -0
  131. package/dist/chunk-BFRNEBJN.js.map +1 -0
  132. package/dist/chunk-BFZ7QRHZ.js +144 -0
  133. package/dist/chunk-BFZ7QRHZ.js.map +1 -0
  134. package/dist/chunk-BKYPABII.js +230 -0
  135. package/dist/chunk-BKYPABII.js.map +1 -0
  136. package/dist/chunk-BXPBEVCW.js +689 -0
  137. package/dist/chunk-BXPBEVCW.js.map +1 -0
  138. package/dist/chunk-C2Y4YJO3.js +233 -0
  139. package/dist/chunk-C2Y4YJO3.js.map +1 -0
  140. package/dist/chunk-C4Q5FSCJ.js +174 -0
  141. package/dist/chunk-C4Q5FSCJ.js.map +1 -0
  142. package/dist/chunk-C4ULIWFL.js +174 -0
  143. package/dist/chunk-C4ULIWFL.js.map +1 -0
  144. package/dist/chunk-C4XNOWYZ.js +144 -0
  145. package/dist/chunk-C4XNOWYZ.js.map +1 -0
  146. package/dist/chunk-CI2XFT7Y.js +99 -0
  147. package/dist/chunk-CI2XFT7Y.js.map +1 -0
  148. package/dist/chunk-CIY34NSI.js +69 -0
  149. package/dist/chunk-CIY34NSI.js.map +1 -0
  150. package/dist/chunk-CJO6Z4Q3.js +99 -0
  151. package/dist/chunk-CJO6Z4Q3.js.map +1 -0
  152. package/dist/chunk-CPL5RXFI.js +28 -0
  153. package/dist/chunk-CPL5RXFI.js.map +1 -0
  154. package/dist/chunk-D7YJFAFB.js +69 -0
  155. package/dist/chunk-D7YJFAFB.js.map +1 -0
  156. package/dist/chunk-DGIQBNCB.js +89 -0
  157. package/dist/chunk-DGIQBNCB.js.map +1 -0
  158. package/dist/chunk-DLP4UUNG.js +149 -0
  159. package/dist/chunk-DLP4UUNG.js.map +1 -0
  160. package/dist/chunk-E42MODEQ.js +228 -0
  161. package/dist/chunk-E42MODEQ.js.map +1 -0
  162. package/dist/chunk-E64DFRHD.js +147 -0
  163. package/dist/chunk-E64DFRHD.js.map +1 -0
  164. package/dist/chunk-E7J77JLC.js +174 -0
  165. package/dist/chunk-E7J77JLC.js.map +1 -0
  166. package/dist/chunk-EMSN4H2D.js +174 -0
  167. package/dist/chunk-EMSN4H2D.js.map +1 -0
  168. package/dist/chunk-F63OFWIY.js +29 -0
  169. package/dist/chunk-F63OFWIY.js.map +1 -0
  170. package/dist/chunk-FIHKW3GC.js +51 -0
  171. package/dist/chunk-FIHKW3GC.js.map +1 -0
  172. package/dist/chunk-GVQ7YWH6.js +228 -0
  173. package/dist/chunk-GVQ7YWH6.js.map +1 -0
  174. package/dist/chunk-GXPEADVY.js +689 -0
  175. package/dist/chunk-GXPEADVY.js.map +1 -0
  176. package/dist/chunk-GXWE3QNN.js +145 -0
  177. package/dist/chunk-GXWE3QNN.js.map +1 -0
  178. package/dist/chunk-H4CWIKGZ.js +117 -0
  179. package/dist/chunk-H4CWIKGZ.js.map +1 -0
  180. package/dist/chunk-HLL4QJJY.js +69 -0
  181. package/dist/chunk-HLL4QJJY.js.map +1 -0
  182. package/dist/chunk-HWK3UPZ3.js +75 -0
  183. package/dist/chunk-HWK3UPZ3.js.map +1 -0
  184. package/dist/chunk-I5RQ5T4B.js +165 -0
  185. package/dist/chunk-I5RQ5T4B.js.map +1 -0
  186. package/dist/chunk-IB5IOECM.js +89 -0
  187. package/dist/chunk-IB5IOECM.js.map +1 -0
  188. package/dist/chunk-IGI364QI.js +230 -0
  189. package/dist/chunk-IGI364QI.js.map +1 -0
  190. package/dist/chunk-ISO6DVO7.js +70 -0
  191. package/dist/chunk-ISO6DVO7.js.map +1 -0
  192. package/dist/chunk-IU34SSBQ.js +174 -0
  193. package/dist/chunk-IU34SSBQ.js.map +1 -0
  194. package/dist/chunk-JHFNUWIU.js +165 -0
  195. package/dist/chunk-JHFNUWIU.js.map +1 -0
  196. package/dist/chunk-JHINWCGH.js +100 -0
  197. package/dist/chunk-JHINWCGH.js.map +1 -0
  198. package/dist/chunk-JX5PAPCI.js +98 -0
  199. package/dist/chunk-JX5PAPCI.js.map +1 -0
  200. package/dist/chunk-JXDRLVBC.js +69 -0
  201. package/dist/chunk-JXDRLVBC.js.map +1 -0
  202. package/dist/chunk-KJG7MHSH.js +196 -0
  203. package/dist/chunk-KJG7MHSH.js.map +1 -0
  204. package/dist/chunk-KZ2VG4AA.js +145 -0
  205. package/dist/chunk-KZ2VG4AA.js.map +1 -0
  206. package/dist/chunk-L3JO2STC.js +51 -0
  207. package/dist/chunk-L3JO2STC.js.map +1 -0
  208. package/dist/chunk-L3K5EUV3.js +144 -0
  209. package/dist/chunk-L3K5EUV3.js.map +1 -0
  210. package/dist/chunk-LFYQFYWO.js +233 -0
  211. package/dist/chunk-LFYQFYWO.js.map +1 -0
  212. package/dist/chunk-LT6LBTA7.js +37 -0
  213. package/dist/chunk-LT6LBTA7.js.map +1 -0
  214. package/dist/chunk-M6C7IXCB.js +100 -0
  215. package/dist/chunk-M6C7IXCB.js.map +1 -0
  216. package/dist/chunk-MFIOT62L.js +125 -0
  217. package/dist/chunk-MFIOT62L.js.map +1 -0
  218. package/dist/chunk-N24SAQVI.js +196 -0
  219. package/dist/chunk-N24SAQVI.js.map +1 -0
  220. package/dist/chunk-N4QP66T6.js +69 -0
  221. package/dist/chunk-N4QP66T6.js.map +1 -0
  222. package/dist/chunk-NIMLBANB.js +79 -0
  223. package/dist/chunk-NIMLBANB.js.map +1 -0
  224. package/dist/chunk-P7UMHVCJ.js +196 -0
  225. package/dist/chunk-P7UMHVCJ.js.map +1 -0
  226. package/dist/chunk-PD7RTFGB.js +117 -0
  227. package/dist/chunk-PD7RTFGB.js.map +1 -0
  228. package/dist/chunk-PJMC4WGI.js +75 -0
  229. package/dist/chunk-PJMC4WGI.js.map +1 -0
  230. package/dist/chunk-PTQYV3OA.js +174 -0
  231. package/dist/chunk-PTQYV3OA.js.map +1 -0
  232. package/dist/chunk-QJHJSVES.js +363 -0
  233. package/dist/chunk-QJHJSVES.js.map +1 -0
  234. package/dist/chunk-QNX7VRSV.js +174 -0
  235. package/dist/chunk-QNX7VRSV.js.map +1 -0
  236. package/dist/chunk-QUMNS3ZD.js +144 -0
  237. package/dist/chunk-QUMNS3ZD.js.map +1 -0
  238. package/dist/chunk-R3B56UDE.js +228 -0
  239. package/dist/chunk-R3B56UDE.js.map +1 -0
  240. package/dist/chunk-R3ZYNS4D.js +196 -0
  241. package/dist/chunk-R3ZYNS4D.js.map +1 -0
  242. package/dist/chunk-RBYUAMFV.js +222 -0
  243. package/dist/chunk-RBYUAMFV.js.map +1 -0
  244. package/dist/chunk-RCXETV5J.js +174 -0
  245. package/dist/chunk-RCXETV5J.js.map +1 -0
  246. package/dist/chunk-RHEE2JJT.js +228 -0
  247. package/dist/chunk-RHEE2JJT.js.map +1 -0
  248. package/dist/chunk-RPUTSCDA.js +230 -0
  249. package/dist/chunk-RPUTSCDA.js.map +1 -0
  250. package/dist/chunk-SIJNA3RF.js +230 -0
  251. package/dist/chunk-SIJNA3RF.js.map +1 -0
  252. package/dist/chunk-SINCLKBW.js +145 -0
  253. package/dist/chunk-SINCLKBW.js.map +1 -0
  254. package/dist/chunk-SKGQELEY.js +89 -0
  255. package/dist/chunk-SKGQELEY.js.map +1 -0
  256. package/dist/chunk-SLJLEPD2.js +163 -0
  257. package/dist/chunk-SLJLEPD2.js.map +1 -0
  258. package/dist/chunk-SNPAB3HJ.js +68 -0
  259. package/dist/chunk-SNPAB3HJ.js.map +1 -0
  260. package/dist/chunk-TB3ZF5TJ.js +63 -0
  261. package/dist/chunk-TB3ZF5TJ.js.map +1 -0
  262. package/dist/chunk-TR4ZQZBK.js +125 -0
  263. package/dist/chunk-TR4ZQZBK.js.map +1 -0
  264. package/dist/chunk-UAW736IB.js +169 -0
  265. package/dist/chunk-UAW736IB.js.map +1 -0
  266. package/dist/chunk-UUEWUEQZ.js +228 -0
  267. package/dist/chunk-UUEWUEQZ.js.map +1 -0
  268. package/dist/chunk-VH37R5IH.js +70 -0
  269. package/dist/chunk-VH37R5IH.js.map +1 -0
  270. package/dist/chunk-VQM4VH2K.js +89 -0
  271. package/dist/chunk-VQM4VH2K.js.map +1 -0
  272. package/dist/chunk-VUM6ZMZ5.js +28 -0
  273. package/dist/chunk-VUM6ZMZ5.js.map +1 -0
  274. package/dist/chunk-VXD2K6FG.js +228 -0
  275. package/dist/chunk-VXD2K6FG.js.map +1 -0
  276. package/dist/chunk-W26JPI7J.js +69 -0
  277. package/dist/chunk-W26JPI7J.js.map +1 -0
  278. package/dist/chunk-WDVDNGEZ.js +144 -0
  279. package/dist/chunk-WDVDNGEZ.js.map +1 -0
  280. package/dist/chunk-WOAZK56Z.js +89 -0
  281. package/dist/chunk-WOAZK56Z.js.map +1 -0
  282. package/dist/chunk-WZVW5OA4.js +68 -0
  283. package/dist/chunk-WZVW5OA4.js.map +1 -0
  284. package/dist/chunk-XU7MLWQ2.js +196 -0
  285. package/dist/chunk-XU7MLWQ2.js.map +1 -0
  286. package/dist/chunk-XXMZLXDE.js +87 -0
  287. package/dist/chunk-XXMZLXDE.js.map +1 -0
  288. package/dist/chunk-ZIROJYXS.js +54 -0
  289. package/dist/chunk-ZIROJYXS.js.map +1 -0
  290. package/dist/chunk-ZVSATS4O.js +363 -0
  291. package/dist/chunk-ZVSATS4O.js.map +1 -0
  292. package/dist/icon.cjs +6 -0
  293. package/dist/icon.cjs.map +1 -1
  294. package/dist/icon.d.cts +1 -1
  295. package/dist/icon.d.ts +1 -1
  296. package/dist/icon.js +7 -1
  297. package/dist/index.cjs +50 -46
  298. package/dist/index.cjs.map +1 -1
  299. package/dist/index.css +23 -770
  300. package/dist/index.d.cts +3 -3
  301. package/dist/index.d.ts +3 -3
  302. package/dist/index.js +59 -53
  303. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
  304. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +5 -5
  305. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
  306. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +1 -1
  307. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
  308. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +3 -3
  309. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
  310. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
  311. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
  312. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +1 -1
  313. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
  314. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +1 -1
  315. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
  316. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +1 -1
  317. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
  318. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +2 -2
  319. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
  320. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +2 -2
  321. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
  322. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +7 -7
  323. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
  324. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +1 -1
  325. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
  326. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +2 -2
  327. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +8 -1
  328. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
  329. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +9 -9
  330. package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +8 -1
  331. package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
  332. package/dist/molecules/curriculumV2/CurriculumContents/index.js +12 -12
  333. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
  334. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +1 -1
  335. package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
  336. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +2 -2
  337. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
  338. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +2 -2
  339. package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
  340. package/dist/molecules/curriculumV2/curriculum-sub-nav.js +2 -2
  341. package/dist/molecules/curriculumV2/index.cjs +8 -1
  342. package/dist/molecules/curriculumV2/index.cjs.map +1 -1
  343. package/dist/molecules/curriculumV2/index.js +21 -21
  344. package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
  345. package/dist/molecules/date-picker/date-picker-button.js +3 -3
  346. package/dist/molecules/date-picker/index.cjs.map +1 -1
  347. package/dist/molecules/date-picker/index.js +2 -2
  348. package/dist/molecules/description-json-render.cjs.map +1 -1
  349. package/dist/molecules/description-json-render.js +3 -3
  350. package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
  351. package/dist/molecules/dynamic-form-editor-field-editor-panel.js +2 -2
  352. package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
  353. package/dist/molecules/dynamic-form-editor.js +3 -3
  354. package/dist/molecules/expand-table/index.cjs.map +1 -1
  355. package/dist/molecules/expand-table/index.js +3 -3
  356. package/dist/molecules/index.cjs +8 -1
  357. package/dist/molecules/index.cjs.map +1 -1
  358. package/dist/molecules/index.js +41 -41
  359. package/dist/molecules/stepper.cjs.map +1 -1
  360. package/dist/molecules/stepper.js +2 -2
  361. package/dist/molecules/tag-selector.cjs.map +1 -1
  362. package/dist/molecules/tag-selector.js +2 -2
  363. package/dist/molecules/time-select.cjs.map +1 -1
  364. package/dist/molecules/time-select.js +2 -2
  365. package/dist/molecules/training-info-guideline.cjs +8 -1
  366. package/dist/molecules/training-info-guideline.cjs.map +1 -1
  367. package/dist/molecules/training-info-guideline.js +2 -2
  368. package/dist/utils/curriculum.utils.cjs.map +1 -1
  369. package/dist/utils/curriculum.utils.js +1 -1
  370. package/dist/utils/get-callout-icon-component.cjs.map +1 -1
  371. package/dist/utils/get-callout-icon-component.js +2 -2
  372. package/dist/utils/index.cjs.map +1 -1
  373. package/dist/utils/index.js +2 -2
  374. package/package.json +2 -3
  375. package/src/atoms/dialog.tsx +14 -5
  376. package/src/atoms/toast.tsx +21 -21
  377. package/src/icon.ts +4 -1
@@ -0,0 +1,689 @@
1
+ import {
2
+ getFieldTypeLabel,
3
+ resetFieldType,
4
+ updateFieldCommonProps,
5
+ updateFieldValidation,
6
+ updateImageLayout,
7
+ updateImageOptions,
8
+ updateOptions,
9
+ updateOrientation,
10
+ updateTextPlaceholder
11
+ } from "./chunk-Z7WNKARH.js";
12
+ import {
13
+ TextArea
14
+ } from "./chunk-5XYPLDI5.js";
15
+ import {
16
+ TextField
17
+ } from "./chunk-6NPTJBFE.js";
18
+ import {
19
+ Select
20
+ } from "./chunk-X2GMDZ7M.js";
21
+ import {
22
+ IconButton
23
+ } from "./chunk-XK6VEVOK.js";
24
+ import {
25
+ Card
26
+ } from "./chunk-RP2RGCAW.js";
27
+ import {
28
+ Checkbox
29
+ } from "./chunk-VYCYVN3L.js";
30
+ import {
31
+ Typo
32
+ } from "./chunk-PMJIFLDT.js";
33
+ import {
34
+ Flex
35
+ } from "./chunk-25HMMI7R.js";
36
+ import {
37
+ Button
38
+ } from "./chunk-ZVDAEY5Q.js";
39
+ import {
40
+ ChevronDownIcon,
41
+ ChevronUpIcon,
42
+ CopyIcon,
43
+ PlusIcon,
44
+ TrashIcon
45
+ } from "./chunk-E64DFRHD.js";
46
+ import {
47
+ __spreadProps,
48
+ __spreadValues
49
+ } from "./chunk-CRTRMMJ7.js";
50
+
51
+ // src/molecules/dynamic-form-editor-field-editor-panel.tsx
52
+ import { useMemo } from "react";
53
+ import { Box } from "@radix-ui/themes";
54
+ import { jsx, jsxs } from "react/jsx-runtime";
55
+ function isRecord(value) {
56
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
57
+ }
58
+ function isFieldType(value, types) {
59
+ return types.some((t) => t === value);
60
+ }
61
+ function parseOptionalNumber(value) {
62
+ const trimmed = value.trim();
63
+ if (trimmed.length === 0) return void 0;
64
+ const num = Number(trimmed);
65
+ return Number.isFinite(num) ? num : void 0;
66
+ }
67
+ function getValidation(field) {
68
+ return field.validation ? field.validation : {};
69
+ }
70
+ function cleanValidation(next) {
71
+ const hasAny = next.min !== void 0 || next.max !== void 0 || typeof next.pattern === "string" && next.pattern.trim().length > 0 || typeof next.message === "string" && next.message.trim().length > 0;
72
+ return hasAny ? next : void 0;
73
+ }
74
+ function moveItem(items, fromIndex, toIndex) {
75
+ if (fromIndex < 0 || fromIndex >= items.length) return items;
76
+ if (toIndex < 0 || toIndex >= items.length) return items;
77
+ if (fromIndex === toIndex) return items;
78
+ const next = [...items];
79
+ const [item] = next.splice(fromIndex, 1);
80
+ next.splice(toIndex, 0, item);
81
+ return next;
82
+ }
83
+ function getOptionDrafts(field) {
84
+ const raw = field.options;
85
+ if (!Array.isArray(raw)) return [];
86
+ return raw.map((o) => {
87
+ if (!isRecord(o)) return null;
88
+ const label = typeof o.label === "string" ? o.label : "";
89
+ const valueRaw = o.value;
90
+ const value = typeof valueRaw === "string" || typeof valueRaw === "number" ? String(valueRaw) : "";
91
+ return { label, value };
92
+ }).filter((v) => v !== null);
93
+ }
94
+ function getImageOptionDrafts(field) {
95
+ const raw = field.options;
96
+ if (!Array.isArray(raw)) return [];
97
+ return raw.map(
98
+ (o) => {
99
+ if (!isRecord(o)) return null;
100
+ const label = typeof o.label === "string" ? o.label : "";
101
+ const valueRaw = o.value;
102
+ const value = typeof valueRaw === "string" || typeof valueRaw === "number" ? String(valueRaw) : "";
103
+ const imageSrc = typeof o.imageSrc === "string" ? o.imageSrc : "";
104
+ const alt = typeof o.alt === "string" ? o.alt : void 0;
105
+ return __spreadValues({ label, value, imageSrc }, alt ? { alt } : {});
106
+ }
107
+ ).filter(
108
+ (v) => v !== null
109
+ );
110
+ }
111
+ function toFieldOptions(options) {
112
+ return options.map((o) => ({ label: o.label, value: o.value }));
113
+ }
114
+ function toImageFieldOptions(options) {
115
+ return options.map((o) => __spreadValues({
116
+ label: o.label,
117
+ value: o.value,
118
+ imageSrc: o.imageSrc
119
+ }, o.alt !== void 0 ? { alt: o.alt } : {}));
120
+ }
121
+ function DynamicFormEditorFieldEditorPanel(props) {
122
+ const {
123
+ field,
124
+ fieldIndex,
125
+ fields,
126
+ readonly,
127
+ fieldTypes,
128
+ onRenameField,
129
+ onUpdateField,
130
+ onDeleteField,
131
+ onMoveField,
132
+ onDuplicateField
133
+ } = props;
134
+ const canMoveUp = fieldIndex > 0;
135
+ const canMoveDown = fieldIndex >= 0 && fieldIndex < fields.length - 1;
136
+ const placeholderValue = useMemo(() => {
137
+ if (!field) return "";
138
+ return String(field.placeholder || "");
139
+ }, [field]);
140
+ return /* @__PURE__ */ jsx(Card, { style: { flex: 1, minWidth: 520, padding: 12 }, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "4", children: [
141
+ /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", children: [
142
+ /* @__PURE__ */ jsx(Typo, { variant: "body", children: "\uD544\uB4DC \uD3B8\uC9D1" }),
143
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "1", children: [
144
+ /* @__PURE__ */ jsx(
145
+ IconButton,
146
+ {
147
+ "aria-label": "\uD544\uB4DC \uC704\uB85C",
148
+ disabled: readonly || !field || !canMoveUp,
149
+ onClick: () => {
150
+ onMoveField("up");
151
+ },
152
+ variant: "soft",
153
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, {})
154
+ }
155
+ ),
156
+ /* @__PURE__ */ jsx(
157
+ IconButton,
158
+ {
159
+ "aria-label": "\uD544\uB4DC \uC544\uB798\uB85C",
160
+ disabled: readonly || !field || !canMoveDown,
161
+ onClick: () => {
162
+ onMoveField("down");
163
+ },
164
+ variant: "soft",
165
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
166
+ }
167
+ ),
168
+ /* @__PURE__ */ jsx(
169
+ IconButton,
170
+ {
171
+ "aria-label": "\uD544\uB4DC \uBCF5\uC81C",
172
+ disabled: readonly || !field,
173
+ onClick: onDuplicateField,
174
+ variant: "soft",
175
+ children: /* @__PURE__ */ jsx(CopyIcon, {})
176
+ }
177
+ ),
178
+ /* @__PURE__ */ jsx(
179
+ IconButton,
180
+ {
181
+ "aria-label": "\uD544\uB4DC \uC0AD\uC81C",
182
+ disabled: readonly || !field,
183
+ onClick: onDeleteField,
184
+ variant: "soft",
185
+ children: /* @__PURE__ */ jsx(TrashIcon, {})
186
+ }
187
+ )
188
+ ] })
189
+ ] }),
190
+ !field ? /* @__PURE__ */ jsx(Typo, { color: "gray", variant: "caption", children: "\uC67C\uCABD\uC5D0\uC11C \uD544\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694." }) : /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
191
+ /* @__PURE__ */ jsxs(Flex, { align: "end", gap: "2", children: [
192
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
193
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "name" }),
194
+ /* @__PURE__ */ jsx(
195
+ TextField.Root,
196
+ {
197
+ disabled: readonly,
198
+ onChange: (e) => {
199
+ onRenameField(e.target.value);
200
+ },
201
+ value: field.name
202
+ }
203
+ )
204
+ ] }),
205
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
206
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "label" }),
207
+ /* @__PURE__ */ jsx(
208
+ TextField.Root,
209
+ {
210
+ disabled: readonly,
211
+ onChange: (e) => {
212
+ onUpdateField(updateFieldCommonProps(field, { label: e.target.value }));
213
+ },
214
+ value: field.label
215
+ }
216
+ )
217
+ ] })
218
+ ] }),
219
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
220
+ /* @__PURE__ */ jsxs(
221
+ Select.Root,
222
+ {
223
+ disabled: readonly,
224
+ onValueChange: (v) => {
225
+ if (!isFieldType(v, fieldTypes)) return;
226
+ onUpdateField(resetFieldType(field, v, fields));
227
+ },
228
+ value: field.type,
229
+ children: [
230
+ /* @__PURE__ */ jsx(Select.Trigger, { style: { minWidth: 220 } }),
231
+ /* @__PURE__ */ jsx(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ jsx(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
232
+ ]
233
+ }
234
+ ),
235
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
236
+ /* @__PURE__ */ jsx(
237
+ Checkbox,
238
+ {
239
+ checked: Boolean(field.required),
240
+ disabled: readonly,
241
+ onCheckedChange: (checked) => {
242
+ onUpdateField(updateFieldCommonProps(field, { required: checked }));
243
+ }
244
+ }
245
+ ),
246
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "\uD544\uC218" })
247
+ ] })
248
+ ] }),
249
+ /* @__PURE__ */ jsxs(Box, { children: [
250
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "description" }),
251
+ /* @__PURE__ */ jsx(
252
+ TextArea,
253
+ {
254
+ disabled: readonly,
255
+ onChange: (e) => {
256
+ onUpdateField(
257
+ updateFieldCommonProps(field, { description: e.target.value })
258
+ );
259
+ },
260
+ rows: 3,
261
+ value: field.description || ""
262
+ }
263
+ )
264
+ ] }),
265
+ field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ jsxs(Box, { children: [
266
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "placeholder" }),
267
+ /* @__PURE__ */ jsx(
268
+ TextField.Root,
269
+ {
270
+ disabled: readonly,
271
+ onChange: (e) => {
272
+ onUpdateField(updateTextPlaceholder(field, e.target.value));
273
+ },
274
+ value: placeholderValue
275
+ }
276
+ )
277
+ ] }) : null,
278
+ field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ jsxs(Box, { children: [
279
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "orientation" }),
280
+ /* @__PURE__ */ jsxs(
281
+ Select.Root,
282
+ {
283
+ disabled: readonly,
284
+ onValueChange: (v) => {
285
+ const nextOrientation = v === "horizontal" ? "horizontal" : "vertical";
286
+ onUpdateField(updateOrientation(field, nextOrientation));
287
+ },
288
+ value: field.orientation || "vertical",
289
+ children: [
290
+ /* @__PURE__ */ jsx(Select.Trigger, { style: { minWidth: 220 } }),
291
+ /* @__PURE__ */ jsxs(Select.Content, { children: [
292
+ /* @__PURE__ */ jsx(Select.Item, { value: "vertical", children: "vertical" }),
293
+ /* @__PURE__ */ jsx(Select.Item, { value: "horizontal", children: "horizontal" })
294
+ ] })
295
+ ]
296
+ }
297
+ )
298
+ ] }) : null,
299
+ field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ jsx(Card, { style: { padding: 12 }, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
300
+ /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", children: [
301
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "options" }),
302
+ /* @__PURE__ */ jsxs(
303
+ Button,
304
+ {
305
+ disabled: readonly,
306
+ onClick: () => {
307
+ const drafts = getOptionDrafts(field);
308
+ const nextDrafts = [
309
+ ...drafts,
310
+ {
311
+ label: `\uC635\uC158 ${drafts.length + 1}`,
312
+ value: `option${drafts.length + 1}`
313
+ }
314
+ ];
315
+ onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
316
+ },
317
+ size: "small",
318
+ variant: "soft",
319
+ children: [
320
+ /* @__PURE__ */ jsx(PlusIcon, {}),
321
+ " \uCD94\uAC00"
322
+ ]
323
+ }
324
+ )
325
+ ] }),
326
+ getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ jsxs(Flex, { align: "end", gap: "2", children: [
327
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
328
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "label" }),
329
+ /* @__PURE__ */ jsx(
330
+ TextField.Root,
331
+ {
332
+ disabled: readonly,
333
+ onChange: (e) => {
334
+ const drafts = getOptionDrafts(field);
335
+ const nextDrafts = drafts.map(
336
+ (d, idx) => idx === i ? __spreadProps(__spreadValues({}, d), { label: e.target.value }) : d
337
+ );
338
+ onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
339
+ },
340
+ value: opt.label
341
+ }
342
+ )
343
+ ] }),
344
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
345
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "value" }),
346
+ /* @__PURE__ */ jsx(
347
+ TextField.Root,
348
+ {
349
+ disabled: readonly,
350
+ onChange: (e) => {
351
+ const drafts = getOptionDrafts(field);
352
+ const nextDrafts = drafts.map(
353
+ (d, idx) => idx === i ? __spreadProps(__spreadValues({}, d), { value: e.target.value }) : d
354
+ );
355
+ onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
356
+ },
357
+ value: opt.value
358
+ }
359
+ )
360
+ ] }),
361
+ /* @__PURE__ */ jsxs(Flex, { gap: "1", children: [
362
+ /* @__PURE__ */ jsx(
363
+ IconButton,
364
+ {
365
+ "aria-label": "\uC635\uC158 \uC704\uB85C",
366
+ disabled: readonly || i === 0,
367
+ onClick: () => {
368
+ const drafts = getOptionDrafts(field);
369
+ const nextDrafts = moveItem(drafts, i, i - 1);
370
+ onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
371
+ },
372
+ variant: "soft",
373
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, {})
374
+ }
375
+ ),
376
+ /* @__PURE__ */ jsx(
377
+ IconButton,
378
+ {
379
+ "aria-label": "\uC635\uC158 \uC544\uB798\uB85C",
380
+ disabled: readonly || i === getOptionDrafts(field).length - 1,
381
+ onClick: () => {
382
+ const drafts = getOptionDrafts(field);
383
+ const nextDrafts = moveItem(drafts, i, i + 1);
384
+ onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
385
+ },
386
+ variant: "soft",
387
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
388
+ }
389
+ ),
390
+ /* @__PURE__ */ jsx(
391
+ IconButton,
392
+ {
393
+ "aria-label": "\uC635\uC158 \uC0AD\uC81C",
394
+ disabled: readonly,
395
+ onClick: () => {
396
+ const drafts = getOptionDrafts(field);
397
+ const nextDrafts = drafts.filter((_, idx) => idx !== i);
398
+ onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
399
+ },
400
+ variant: "soft",
401
+ children: /* @__PURE__ */ jsx(TrashIcon, {})
402
+ }
403
+ )
404
+ ] })
405
+ ] }, `${opt.value}-${opt.label}`))
406
+ ] }) }) : null,
407
+ field.type === "image_radio_card" ? /* @__PURE__ */ jsx(Card, { style: { padding: 12 }, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
408
+ /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", children: [
409
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "image options" }),
410
+ /* @__PURE__ */ jsxs(
411
+ Button,
412
+ {
413
+ disabled: readonly,
414
+ onClick: () => {
415
+ const drafts = getImageOptionDrafts(field);
416
+ const nextDrafts = [
417
+ ...drafts,
418
+ {
419
+ label: `\uC774\uBBF8\uC9C0 ${drafts.length + 1}`,
420
+ value: `option${drafts.length + 1}`,
421
+ imageSrc: "https://placehold.co/300x300/png?text=new"
422
+ }
423
+ ];
424
+ onUpdateField(updateImageOptions(field, toImageFieldOptions(nextDrafts)));
425
+ },
426
+ size: "small",
427
+ variant: "soft",
428
+ children: [
429
+ /* @__PURE__ */ jsx(PlusIcon, {}),
430
+ " \uCD94\uAC00"
431
+ ]
432
+ }
433
+ )
434
+ ] }),
435
+ getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ jsx(
436
+ Card,
437
+ {
438
+ style: { padding: 10 },
439
+ children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
440
+ /* @__PURE__ */ jsxs(Flex, { align: "end", gap: "2", children: [
441
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
442
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "label" }),
443
+ /* @__PURE__ */ jsx(
444
+ TextField.Root,
445
+ {
446
+ disabled: readonly,
447
+ onChange: (e) => {
448
+ const drafts = getImageOptionDrafts(field);
449
+ const nextDrafts = drafts.map(
450
+ (d, idx) => idx === i ? __spreadProps(__spreadValues({}, d), { label: e.target.value }) : d
451
+ );
452
+ onUpdateField(
453
+ updateImageOptions(field, toImageFieldOptions(nextDrafts))
454
+ );
455
+ },
456
+ value: opt.label
457
+ }
458
+ )
459
+ ] }),
460
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
461
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "value" }),
462
+ /* @__PURE__ */ jsx(
463
+ TextField.Root,
464
+ {
465
+ disabled: readonly,
466
+ onChange: (e) => {
467
+ const drafts = getImageOptionDrafts(field);
468
+ const nextDrafts = drafts.map(
469
+ (d, idx) => idx === i ? __spreadProps(__spreadValues({}, d), { value: e.target.value }) : d
470
+ );
471
+ onUpdateField(
472
+ updateImageOptions(field, toImageFieldOptions(nextDrafts))
473
+ );
474
+ },
475
+ value: opt.value
476
+ }
477
+ )
478
+ ] })
479
+ ] }),
480
+ /* @__PURE__ */ jsxs(Box, { children: [
481
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "imageSrc" }),
482
+ /* @__PURE__ */ jsx(
483
+ TextField.Root,
484
+ {
485
+ disabled: readonly,
486
+ onChange: (e) => {
487
+ const drafts = getImageOptionDrafts(field);
488
+ const nextDrafts = drafts.map(
489
+ (d, idx) => idx === i ? __spreadProps(__spreadValues({}, d), { imageSrc: e.target.value }) : d
490
+ );
491
+ onUpdateField(
492
+ updateImageOptions(field, toImageFieldOptions(nextDrafts))
493
+ );
494
+ },
495
+ value: opt.imageSrc
496
+ }
497
+ )
498
+ ] }),
499
+ /* @__PURE__ */ jsxs(Flex, { align: "end", gap: "2", children: [
500
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
501
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "alt" }),
502
+ /* @__PURE__ */ jsx(
503
+ TextField.Root,
504
+ {
505
+ disabled: readonly,
506
+ onChange: (e) => {
507
+ const drafts = getImageOptionDrafts(field);
508
+ const nextAlt = e.target.value.trim().length === 0 ? void 0 : e.target.value;
509
+ const nextDrafts = drafts.map(
510
+ (d, idx) => idx === i ? __spreadProps(__spreadValues({}, d), { alt: nextAlt }) : d
511
+ );
512
+ onUpdateField(
513
+ updateImageOptions(field, toImageFieldOptions(nextDrafts))
514
+ );
515
+ },
516
+ value: opt.alt || ""
517
+ }
518
+ )
519
+ ] }),
520
+ /* @__PURE__ */ jsx(
521
+ IconButton,
522
+ {
523
+ "aria-label": "\uC774\uBBF8\uC9C0 \uC635\uC158 \uC0AD\uC81C",
524
+ disabled: readonly,
525
+ onClick: () => {
526
+ const drafts = getImageOptionDrafts(field);
527
+ const nextDrafts = drafts.filter((_, idx) => idx !== i);
528
+ onUpdateField(
529
+ updateImageOptions(field, toImageFieldOptions(nextDrafts))
530
+ );
531
+ },
532
+ variant: "soft",
533
+ children: /* @__PURE__ */ jsx(TrashIcon, {})
534
+ }
535
+ )
536
+ ] })
537
+ ] })
538
+ },
539
+ `${opt.value}-${opt.label}-${opt.imageSrc}`
540
+ )),
541
+ /* @__PURE__ */ jsxs(Flex, { gap: "2", children: [
542
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
543
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "gridColumnsCount" }),
544
+ /* @__PURE__ */ jsx(
545
+ TextField.Root,
546
+ {
547
+ disabled: readonly,
548
+ inputMode: "numeric",
549
+ onChange: (e) => {
550
+ onUpdateField(
551
+ updateImageLayout(field, {
552
+ gridColumnsCount: parseOptionalNumber(e.target.value)
553
+ })
554
+ );
555
+ },
556
+ value: String(field.gridColumnsCount || "")
557
+ }
558
+ )
559
+ ] }),
560
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
561
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "gridItemHeight" }),
562
+ /* @__PURE__ */ jsx(
563
+ TextField.Root,
564
+ {
565
+ disabled: readonly,
566
+ onChange: (e) => {
567
+ onUpdateField(
568
+ updateImageLayout(field, { gridItemHeight: e.target.value })
569
+ );
570
+ },
571
+ value: String(field.gridItemHeight || "")
572
+ }
573
+ )
574
+ ] }),
575
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
576
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "gridGap" }),
577
+ /* @__PURE__ */ jsx(
578
+ TextField.Root,
579
+ {
580
+ disabled: readonly,
581
+ onChange: (e) => {
582
+ onUpdateField(updateImageLayout(field, { gridGap: e.target.value }));
583
+ },
584
+ value: String(field.gridGap || "")
585
+ }
586
+ )
587
+ ] })
588
+ ] }),
589
+ /* @__PURE__ */ jsxs(Box, { children: [
590
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "imageFit" }),
591
+ /* @__PURE__ */ jsxs(
592
+ Select.Root,
593
+ {
594
+ disabled: readonly,
595
+ onValueChange: (v) => {
596
+ const nextFit = v === "contain" ? "contain" : "cover";
597
+ onUpdateField(updateImageLayout(field, { imageFit: nextFit }));
598
+ },
599
+ value: field.imageFit || "cover",
600
+ children: [
601
+ /* @__PURE__ */ jsx(Select.Trigger, { style: { minWidth: 220 } }),
602
+ /* @__PURE__ */ jsxs(Select.Content, { children: [
603
+ /* @__PURE__ */ jsx(Select.Item, { value: "cover", children: "cover" }),
604
+ /* @__PURE__ */ jsx(Select.Item, { value: "contain", children: "contain" })
605
+ ] })
606
+ ]
607
+ }
608
+ )
609
+ ] })
610
+ ] }) }) : null,
611
+ /* @__PURE__ */ jsx(Card, { style: { padding: 12 }, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
612
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "validation" }),
613
+ /* @__PURE__ */ jsxs(Flex, { gap: "2", children: [
614
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
615
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "min" }),
616
+ /* @__PURE__ */ jsx(
617
+ TextField.Root,
618
+ {
619
+ disabled: readonly,
620
+ inputMode: "numeric",
621
+ onChange: (e) => {
622
+ const current = getValidation(field);
623
+ const next = cleanValidation(__spreadProps(__spreadValues({}, current), {
624
+ min: parseOptionalNumber(e.target.value)
625
+ }));
626
+ onUpdateField(updateFieldValidation(field, next));
627
+ },
628
+ value: getValidation(field).min !== void 0 ? String(getValidation(field).min) : ""
629
+ }
630
+ )
631
+ ] }),
632
+ /* @__PURE__ */ jsxs(Box, { style: { flex: 1 }, children: [
633
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "max" }),
634
+ /* @__PURE__ */ jsx(
635
+ TextField.Root,
636
+ {
637
+ disabled: readonly,
638
+ inputMode: "numeric",
639
+ onChange: (e) => {
640
+ const current = getValidation(field);
641
+ const next = cleanValidation(__spreadProps(__spreadValues({}, current), {
642
+ max: parseOptionalNumber(e.target.value)
643
+ }));
644
+ onUpdateField(updateFieldValidation(field, next));
645
+ },
646
+ value: getValidation(field).max !== void 0 ? String(getValidation(field).max) : ""
647
+ }
648
+ )
649
+ ] })
650
+ ] }),
651
+ /* @__PURE__ */ jsxs(Box, { children: [
652
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "pattern" }),
653
+ /* @__PURE__ */ jsx(
654
+ TextField.Root,
655
+ {
656
+ disabled: readonly,
657
+ onChange: (e) => {
658
+ const current = getValidation(field);
659
+ const next = cleanValidation(__spreadProps(__spreadValues({}, current), { pattern: e.target.value }));
660
+ onUpdateField(updateFieldValidation(field, next));
661
+ },
662
+ value: String(getValidation(field).pattern || "")
663
+ }
664
+ )
665
+ ] }),
666
+ /* @__PURE__ */ jsxs(Box, { children: [
667
+ /* @__PURE__ */ jsx(Typo, { variant: "caption", children: "message" }),
668
+ /* @__PURE__ */ jsx(
669
+ TextField.Root,
670
+ {
671
+ disabled: readonly,
672
+ onChange: (e) => {
673
+ const current = getValidation(field);
674
+ const next = cleanValidation(__spreadProps(__spreadValues({}, current), { message: e.target.value }));
675
+ onUpdateField(updateFieldValidation(field, next));
676
+ },
677
+ value: String(getValidation(field).message || "")
678
+ }
679
+ )
680
+ ] })
681
+ ] }) })
682
+ ] })
683
+ ] }) });
684
+ }
685
+
686
+ export {
687
+ DynamicFormEditorFieldEditorPanel
688
+ };
689
+ //# sourceMappingURL=chunk-BXPBEVCW.js.map