@tipp/ui 2.1.33 → 2.1.34

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 (507) hide show
  1. package/dist/app/index.cjs +399 -382
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +95 -94
  4. package/dist/app/platform/coach-question-list.cjs +11 -6
  5. package/dist/app/platform/coach-question-list.cjs.map +1 -1
  6. package/dist/app/platform/coach-question-list.js +39 -38
  7. package/dist/app/platform/contents-card.cjs +19 -14
  8. package/dist/app/platform/contents-card.cjs.map +1 -1
  9. package/dist/app/platform/contents-card.js +39 -38
  10. package/dist/app/platform/curriculum-card.js +11 -11
  11. package/dist/app/platform/edit-coaching-time.cjs +139 -122
  12. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  13. package/dist/app/platform/edit-coaching-time.js +73 -72
  14. package/dist/app/platform/edit-service-type.cjs +129 -112
  15. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  16. package/dist/app/platform/edit-service-type.js +73 -72
  17. package/dist/app/platform/goal-manage-card-edit.cjs +120 -115
  18. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  19. package/dist/app/platform/goal-manage-card-edit.js +73 -72
  20. package/dist/app/platform/goal-manage-card-read.cjs +48 -43
  21. package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
  22. package/dist/app/platform/goal-manage-card-read.js +39 -38
  23. package/dist/app/platform/on-offline-radio-card.cjs +103 -98
  24. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  25. package/dist/app/platform/on-offline-radio-card.js +72 -71
  26. package/dist/app/platform/report-card.cjs +16 -11
  27. package/dist/app/platform/report-card.cjs.map +1 -1
  28. package/dist/app/platform/report-card.js +39 -38
  29. package/dist/app/platform/reservation-card.cjs +143 -138
  30. package/dist/app/platform/reservation-card.cjs.map +1 -1
  31. package/dist/app/platform/reservation-card.js +73 -72
  32. package/dist/app/platform/session-card.cjs +191 -174
  33. package/dist/app/platform/session-card.cjs.map +1 -1
  34. package/dist/app/platform/session-card.js +75 -74
  35. package/dist/app/platform/session-review-simple-read.cjs +14 -9
  36. package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
  37. package/dist/app/platform/session-review-simple-read.js +39 -38
  38. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +45 -40
  39. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  40. package/dist/app/platform/userInfos/coaching-customer-info/index.js +41 -40
  41. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +22 -17
  42. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  43. package/dist/app/platform/userInfos/coaching-customer-info/large.js +39 -38
  44. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +25 -20
  45. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  46. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +39 -38
  47. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +11 -6
  48. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  49. package/dist/app/platform/userInfos/coaching-customer-info/small.js +38 -37
  50. package/dist/app/platform/userInfos/session-user-info-detail.cjs +21 -16
  51. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  52. package/dist/app/platform/userInfos/session-user-info-detail.js +39 -38
  53. package/dist/app/platform/userInfos/utils.cjs +13 -8
  54. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  55. package/dist/app/platform/userInfos/utils.js +38 -37
  56. package/dist/atoms/badge.d.cts +1 -1
  57. package/dist/atoms/badge.d.ts +1 -1
  58. package/dist/atoms/dialog.cjs +16 -4
  59. package/dist/atoms/dialog.cjs.map +1 -1
  60. package/dist/atoms/dialog.js +2 -2
  61. package/dist/atoms/drawer.js +2 -2
  62. package/dist/atoms/index.cjs +54 -6
  63. package/dist/atoms/index.cjs.map +1 -1
  64. package/dist/atoms/index.d.cts +1 -0
  65. package/dist/atoms/index.d.ts +1 -0
  66. package/dist/atoms/index.js +89 -83
  67. package/dist/atoms/list.cjs +144 -0
  68. package/dist/atoms/list.cjs.map +1 -0
  69. package/dist/atoms/list.d.cts +22 -0
  70. package/dist/atoms/list.d.ts +22 -0
  71. package/dist/atoms/list.js +13 -0
  72. package/dist/atoms/list.js.map +1 -0
  73. package/dist/atoms/pagination.js +10 -10
  74. package/dist/chunk-27IXBDJQ.js +90 -0
  75. package/dist/chunk-27IXBDJQ.js.map +1 -0
  76. package/dist/chunk-2JGT2QQW.js +196 -0
  77. package/dist/chunk-2JGT2QQW.js.map +1 -0
  78. package/dist/chunk-2OMXOTNW.js +151 -0
  79. package/dist/chunk-2OMXOTNW.js.map +1 -0
  80. package/dist/chunk-2RXLA7OV.js +51 -0
  81. package/dist/chunk-2RXLA7OV.js.map +1 -0
  82. package/dist/chunk-2TE2EXNX.js +174 -0
  83. package/dist/chunk-2TE2EXNX.js.map +1 -0
  84. package/dist/chunk-2VKZQNCV.js +144 -0
  85. package/dist/chunk-2VKZQNCV.js.map +1 -0
  86. package/dist/chunk-2VLAXZJK.js +87 -0
  87. package/dist/chunk-2VLAXZJK.js.map +1 -0
  88. package/dist/chunk-34KIRC6F.js +63 -0
  89. package/dist/chunk-34KIRC6F.js.map +1 -0
  90. package/dist/chunk-35BL2NBL.js +69 -0
  91. package/dist/chunk-35BL2NBL.js.map +1 -0
  92. package/dist/chunk-3GRMLPWM.js +37 -0
  93. package/dist/chunk-3GRMLPWM.js.map +1 -0
  94. package/dist/chunk-3JMLCMH4.js +64 -0
  95. package/dist/chunk-3JMLCMH4.js.map +1 -0
  96. package/dist/chunk-3SK5EPKI.js +47 -0
  97. package/dist/chunk-3SK5EPKI.js.map +1 -0
  98. package/dist/chunk-3WOTHG5M.js +37 -0
  99. package/dist/chunk-3WOTHG5M.js.map +1 -0
  100. package/dist/chunk-3XFN6H6U.js +165 -0
  101. package/dist/chunk-3XFN6H6U.js.map +1 -0
  102. package/dist/chunk-46P3RBWT.js +63 -0
  103. package/dist/chunk-46P3RBWT.js.map +1 -0
  104. package/dist/chunk-475ADHCO.js +29 -0
  105. package/dist/chunk-475ADHCO.js.map +1 -0
  106. package/dist/chunk-4BUS3FM6.js +61 -0
  107. package/dist/chunk-4BUS3FM6.js.map +1 -0
  108. package/dist/chunk-4LAT6AOV.js +363 -0
  109. package/dist/chunk-4LAT6AOV.js.map +1 -0
  110. package/dist/chunk-4MFKSSU4.js +49 -0
  111. package/dist/chunk-4MFKSSU4.js.map +1 -0
  112. package/dist/chunk-5GIG2AAT.js +54 -0
  113. package/dist/chunk-5GIG2AAT.js.map +1 -0
  114. package/dist/chunk-5WDQPEHO.js +169 -0
  115. package/dist/chunk-5WDQPEHO.js.map +1 -0
  116. package/dist/chunk-62LTE2PQ.js +51 -0
  117. package/dist/chunk-62LTE2PQ.js.map +1 -0
  118. package/dist/chunk-654PDCHT.js +196 -0
  119. package/dist/chunk-654PDCHT.js.map +1 -0
  120. package/dist/chunk-67J64K4I.js +43 -0
  121. package/dist/chunk-67J64K4I.js.map +1 -0
  122. package/dist/chunk-6JHJ4TQD.js +174 -0
  123. package/dist/chunk-6JHJ4TQD.js.map +1 -0
  124. package/dist/chunk-6KHZRBOY.js +174 -0
  125. package/dist/chunk-6KHZRBOY.js.map +1 -0
  126. package/dist/chunk-6NUSAUJF.js +144 -0
  127. package/dist/chunk-6NUSAUJF.js.map +1 -0
  128. package/dist/chunk-6OSTER2K.js +174 -0
  129. package/dist/chunk-6OSTER2K.js.map +1 -0
  130. package/dist/chunk-6P3LKZ7P.js +101 -0
  131. package/dist/chunk-6P3LKZ7P.js.map +1 -0
  132. package/dist/chunk-6TM7YGPN.js +144 -0
  133. package/dist/chunk-6TM7YGPN.js.map +1 -0
  134. package/dist/chunk-7EW7ITLX.js +99 -0
  135. package/dist/chunk-7EW7ITLX.js.map +1 -0
  136. package/dist/chunk-7F2CHUVP.js +120 -0
  137. package/dist/chunk-7F2CHUVP.js.map +1 -0
  138. package/dist/chunk-7GDYUWXU.js +70 -0
  139. package/dist/chunk-7GDYUWXU.js.map +1 -0
  140. package/dist/chunk-7OZICHBX.js +165 -0
  141. package/dist/chunk-7OZICHBX.js.map +1 -0
  142. package/dist/chunk-7U2KTBYL.js +127 -0
  143. package/dist/chunk-7U2KTBYL.js.map +1 -0
  144. package/dist/chunk-A33C4B6T.js +125 -0
  145. package/dist/chunk-A33C4B6T.js.map +1 -0
  146. package/dist/chunk-A5KGOVLX.js +196 -0
  147. package/dist/chunk-A5KGOVLX.js.map +1 -0
  148. package/dist/chunk-AGKQ5QOB.js +117 -0
  149. package/dist/chunk-AGKQ5QOB.js.map +1 -0
  150. package/dist/chunk-B3N5QFBU.js +196 -0
  151. package/dist/chunk-B3N5QFBU.js.map +1 -0
  152. package/dist/chunk-BCR6KNVT.js +49 -0
  153. package/dist/chunk-BCR6KNVT.js.map +1 -0
  154. package/dist/chunk-BKBJG6FJ.js +64 -0
  155. package/dist/chunk-BKBJG6FJ.js.map +1 -0
  156. package/dist/chunk-BL4EC2PY.js +49 -0
  157. package/dist/chunk-BL4EC2PY.js.map +1 -0
  158. package/dist/chunk-C5ZELKPG.js +228 -0
  159. package/dist/chunk-C5ZELKPG.js.map +1 -0
  160. package/dist/chunk-CFUPBURD.js +144 -0
  161. package/dist/chunk-CFUPBURD.js.map +1 -0
  162. package/dist/chunk-CHMBHKEE.js +54 -0
  163. package/dist/chunk-CHMBHKEE.js.map +1 -0
  164. package/dist/chunk-CIGUY6XH.js +89 -0
  165. package/dist/chunk-CIGUY6XH.js.map +1 -0
  166. package/dist/chunk-CTFK7YTW.js +61 -0
  167. package/dist/chunk-CTFK7YTW.js.map +1 -0
  168. package/dist/chunk-CVRGXNMT.js +135 -0
  169. package/dist/chunk-CVRGXNMT.js.map +1 -0
  170. package/dist/chunk-DXKCSEHL.js +123 -0
  171. package/dist/chunk-DXKCSEHL.js.map +1 -0
  172. package/dist/chunk-E2YDBR4K.js +231 -0
  173. package/dist/chunk-E2YDBR4K.js.map +1 -0
  174. package/dist/chunk-EIM3P5F3.js +63 -0
  175. package/dist/chunk-EIM3P5F3.js.map +1 -0
  176. package/dist/chunk-EIUAHMCS.js +101 -0
  177. package/dist/chunk-EIUAHMCS.js.map +1 -0
  178. package/dist/chunk-EJZDHKCG.js +33 -0
  179. package/dist/chunk-EJZDHKCG.js.map +1 -0
  180. package/dist/chunk-EN6XRDGV.js +87 -0
  181. package/dist/chunk-EN6XRDGV.js.map +1 -0
  182. package/dist/chunk-ESTPXKUX.js +144 -0
  183. package/dist/chunk-ESTPXKUX.js.map +1 -0
  184. package/dist/chunk-ETEI6RB7.js +151 -0
  185. package/dist/chunk-ETEI6RB7.js.map +1 -0
  186. package/dist/chunk-EVT2JPJF.js +68 -0
  187. package/dist/chunk-EVT2JPJF.js.map +1 -0
  188. package/dist/chunk-EYVJ3NYL.js +144 -0
  189. package/dist/chunk-EYVJ3NYL.js.map +1 -0
  190. package/dist/chunk-FCSHFW6Y.js +64 -0
  191. package/dist/chunk-FCSHFW6Y.js.map +1 -0
  192. package/dist/chunk-FJNAWOWU.js +49 -0
  193. package/dist/chunk-FJNAWOWU.js.map +1 -0
  194. package/dist/chunk-FK4XGWN3.js +101 -0
  195. package/dist/chunk-FK4XGWN3.js.map +1 -0
  196. package/dist/chunk-FL76HE2W.js +70 -0
  197. package/dist/chunk-FL76HE2W.js.map +1 -0
  198. package/dist/chunk-FM6GARAX.js +54 -0
  199. package/dist/chunk-FM6GARAX.js.map +1 -0
  200. package/dist/chunk-FOVALDGG.js +144 -0
  201. package/dist/chunk-FOVALDGG.js.map +1 -0
  202. package/dist/chunk-FU6AFL6I.js +145 -0
  203. package/dist/chunk-FU6AFL6I.js.map +1 -0
  204. package/dist/chunk-G4VJMH6W.js +89 -0
  205. package/dist/chunk-G4VJMH6W.js.map +1 -0
  206. package/dist/chunk-GB67H6CZ.js +30 -0
  207. package/dist/chunk-GB67H6CZ.js.map +1 -0
  208. package/dist/chunk-GH53QZCU.js +231 -0
  209. package/dist/chunk-GH53QZCU.js.map +1 -0
  210. package/dist/chunk-GKJAOG66.js +174 -0
  211. package/dist/chunk-GKJAOG66.js.map +1 -0
  212. package/dist/chunk-GP6PSLJ6.js +144 -0
  213. package/dist/chunk-GP6PSLJ6.js.map +1 -0
  214. package/dist/chunk-GPLLJ4CH.js +192 -0
  215. package/dist/chunk-GPLLJ4CH.js.map +1 -0
  216. package/dist/chunk-H5UXVAZZ.js +87 -0
  217. package/dist/chunk-H5UXVAZZ.js.map +1 -0
  218. package/dist/chunk-HBF6IIVZ.js +1 -0
  219. package/dist/chunk-HBF6IIVZ.js.map +1 -0
  220. package/dist/chunk-HBZ5QXXB.js +79 -0
  221. package/dist/chunk-HBZ5QXXB.js.map +1 -0
  222. package/dist/chunk-HISC62OE.js +64 -0
  223. package/dist/chunk-HISC62OE.js.map +1 -0
  224. package/dist/chunk-HOBCE62P.js +44 -0
  225. package/dist/chunk-HOBCE62P.js.map +1 -0
  226. package/dist/chunk-HPZI64PT.js +54 -0
  227. package/dist/chunk-HPZI64PT.js.map +1 -0
  228. package/dist/chunk-HYMVCRWV.js +101 -0
  229. package/dist/chunk-HYMVCRWV.js.map +1 -0
  230. package/dist/chunk-I5UATPSZ.js +196 -0
  231. package/dist/chunk-I5UATPSZ.js.map +1 -0
  232. package/dist/chunk-IDEUPXIR.js +29 -0
  233. package/dist/chunk-IDEUPXIR.js.map +1 -0
  234. package/dist/chunk-IGFQAHJL.js +228 -0
  235. package/dist/chunk-IGFQAHJL.js.map +1 -0
  236. package/dist/chunk-IP7FQWAX.js +123 -0
  237. package/dist/chunk-IP7FQWAX.js.map +1 -0
  238. package/dist/chunk-ITJ2PYOE.js +135 -0
  239. package/dist/chunk-ITJ2PYOE.js.map +1 -0
  240. package/dist/chunk-J3XSSNRH.js +151 -0
  241. package/dist/chunk-J3XSSNRH.js.map +1 -0
  242. package/dist/chunk-J4SNIRT4.js +64 -0
  243. package/dist/chunk-J4SNIRT4.js.map +1 -0
  244. package/dist/chunk-JOSRDNQN.js +174 -0
  245. package/dist/chunk-JOSRDNQN.js.map +1 -0
  246. package/dist/chunk-K7CSSGBZ.js +69 -0
  247. package/dist/chunk-K7CSSGBZ.js.map +1 -0
  248. package/dist/chunk-KCGJ23AA.js +64 -0
  249. package/dist/chunk-KCGJ23AA.js.map +1 -0
  250. package/dist/chunk-KG5UMPMF.js +63 -0
  251. package/dist/chunk-KG5UMPMF.js.map +1 -0
  252. package/dist/chunk-KQNWWP5M.js +105 -0
  253. package/dist/chunk-KQNWWP5M.js.map +1 -0
  254. package/dist/chunk-KRQ2VPG4.js +117 -0
  255. package/dist/chunk-KRQ2VPG4.js.map +1 -0
  256. package/dist/chunk-L34XD255.js +54 -0
  257. package/dist/chunk-L34XD255.js.map +1 -0
  258. package/dist/chunk-L7MYSONR.js +196 -0
  259. package/dist/chunk-L7MYSONR.js.map +1 -0
  260. package/dist/chunk-LERP3GK2.js +145 -0
  261. package/dist/chunk-LERP3GK2.js.map +1 -0
  262. package/dist/chunk-M74YR6B2.js +174 -0
  263. package/dist/chunk-M74YR6B2.js.map +1 -0
  264. package/dist/chunk-MLT6OPXG.js +64 -0
  265. package/dist/chunk-MLT6OPXG.js.map +1 -0
  266. package/dist/chunk-MS2GLWHY.js +87 -0
  267. package/dist/chunk-MS2GLWHY.js.map +1 -0
  268. package/dist/chunk-MUHVMLDB.js +90 -0
  269. package/dist/chunk-MUHVMLDB.js.map +1 -0
  270. package/dist/chunk-N4EY6LEK.js +192 -0
  271. package/dist/chunk-N4EY6LEK.js.map +1 -0
  272. package/dist/chunk-NFGSIVXS.js +64 -0
  273. package/dist/chunk-NFGSIVXS.js.map +1 -0
  274. package/dist/chunk-NIGZA3RF.js +54 -0
  275. package/dist/chunk-NIGZA3RF.js.map +1 -0
  276. package/dist/chunk-NJRMOYV5.js +64 -0
  277. package/dist/chunk-NJRMOYV5.js.map +1 -0
  278. package/dist/chunk-NPEPCI7G.js +61 -0
  279. package/dist/chunk-NPEPCI7G.js.map +1 -0
  280. package/dist/chunk-NVUBDEA4.js +43 -0
  281. package/dist/chunk-NVUBDEA4.js.map +1 -0
  282. package/dist/chunk-O45V4P7P.js +89 -0
  283. package/dist/chunk-O45V4P7P.js.map +1 -0
  284. package/dist/chunk-O4LYVHQM.js +144 -0
  285. package/dist/chunk-O4LYVHQM.js.map +1 -0
  286. package/dist/chunk-O5NVFJKP.js +54 -0
  287. package/dist/chunk-O5NVFJKP.js.map +1 -0
  288. package/dist/chunk-ODCUQK4E.js +174 -0
  289. package/dist/chunk-ODCUQK4E.js.map +1 -0
  290. package/dist/chunk-OJVKGD4K.js +69 -0
  291. package/dist/chunk-OJVKGD4K.js.map +1 -0
  292. package/dist/chunk-OOL7ILBR.js +33 -0
  293. package/dist/chunk-OOL7ILBR.js.map +1 -0
  294. package/dist/chunk-OX2FAMRT.js +89 -0
  295. package/dist/chunk-OX2FAMRT.js.map +1 -0
  296. package/dist/chunk-OXBD23TL.js +70 -0
  297. package/dist/chunk-OXBD23TL.js.map +1 -0
  298. package/dist/chunk-OY7GKEXW.js +37 -0
  299. package/dist/chunk-OY7GKEXW.js.map +1 -0
  300. package/dist/chunk-P7HKZJMH.js +196 -0
  301. package/dist/chunk-P7HKZJMH.js.map +1 -0
  302. package/dist/chunk-PJMOTDUQ.js +64 -0
  303. package/dist/chunk-PJMOTDUQ.js.map +1 -0
  304. package/dist/chunk-PQLG7NGM.js +145 -0
  305. package/dist/chunk-PQLG7NGM.js.map +1 -0
  306. package/dist/chunk-PX4CZC22.js +64 -0
  307. package/dist/chunk-PX4CZC22.js.map +1 -0
  308. package/dist/chunk-Q2PKN5WG.js +363 -0
  309. package/dist/chunk-Q2PKN5WG.js.map +1 -0
  310. package/dist/chunk-QDTJUKKO.js +29 -0
  311. package/dist/chunk-QDTJUKKO.js.map +1 -0
  312. package/dist/chunk-QEFBVVFO.js +127 -0
  313. package/dist/chunk-QEFBVVFO.js.map +1 -0
  314. package/dist/chunk-QW7JJGPV.js +37 -0
  315. package/dist/chunk-QW7JJGPV.js.map +1 -0
  316. package/dist/chunk-QY66Y3EJ.js +363 -0
  317. package/dist/chunk-QY66Y3EJ.js.map +1 -0
  318. package/dist/chunk-RCYIIMS3.js +196 -0
  319. package/dist/chunk-RCYIIMS3.js.map +1 -0
  320. package/dist/chunk-RJ4UB3J7.js +136 -0
  321. package/dist/chunk-RJ4UB3J7.js.map +1 -0
  322. package/dist/chunk-RQ5OU57M.js +99 -0
  323. package/dist/chunk-RQ5OU57M.js.map +1 -0
  324. package/dist/chunk-SNACTIHC.js +196 -0
  325. package/dist/chunk-SNACTIHC.js.map +1 -0
  326. package/dist/chunk-SO444K26.js +196 -0
  327. package/dist/chunk-SO444K26.js.map +1 -0
  328. package/dist/chunk-SSGC3C5T.js +69 -0
  329. package/dist/chunk-SSGC3C5T.js.map +1 -0
  330. package/dist/chunk-SWVTBAWM.js +26 -0
  331. package/dist/chunk-SWVTBAWM.js.map +1 -0
  332. package/dist/chunk-T4VFQNKS.js +196 -0
  333. package/dist/chunk-T4VFQNKS.js.map +1 -0
  334. package/dist/chunk-TVQ5B56X.js +64 -0
  335. package/dist/chunk-TVQ5B56X.js.map +1 -0
  336. package/dist/chunk-U6FL2JKD.js +63 -0
  337. package/dist/chunk-U6FL2JKD.js.map +1 -0
  338. package/dist/chunk-UC5L5RY7.js +63 -0
  339. package/dist/chunk-UC5L5RY7.js.map +1 -0
  340. package/dist/chunk-UQKHEGJH.js +63 -0
  341. package/dist/chunk-UQKHEGJH.js.map +1 -0
  342. package/dist/chunk-UZWE2VAP.js +105 -0
  343. package/dist/chunk-UZWE2VAP.js.map +1 -0
  344. package/dist/chunk-V6CMKNK2.js +63 -0
  345. package/dist/chunk-V6CMKNK2.js.map +1 -0
  346. package/dist/chunk-VC64LH4X.js +151 -0
  347. package/dist/chunk-VC64LH4X.js.map +1 -0
  348. package/dist/chunk-VN2JWNYC.js +101 -0
  349. package/dist/chunk-VN2JWNYC.js.map +1 -0
  350. package/dist/chunk-VOGIASD5.js +12 -0
  351. package/dist/chunk-VOGIASD5.js.map +1 -0
  352. package/dist/chunk-VQXFU7H5.js +39 -0
  353. package/dist/chunk-VQXFU7H5.js.map +1 -0
  354. package/dist/chunk-W2ILD6TB.js +105 -0
  355. package/dist/chunk-W2ILD6TB.js.map +1 -0
  356. package/dist/chunk-WJUTX4PL.js +151 -0
  357. package/dist/chunk-WJUTX4PL.js.map +1 -0
  358. package/dist/chunk-WKVEMGCB.js +68 -0
  359. package/dist/chunk-WKVEMGCB.js.map +1 -0
  360. package/dist/chunk-X2OE3M2Z.js +63 -0
  361. package/dist/chunk-X2OE3M2Z.js.map +1 -0
  362. package/dist/chunk-XHLO7WZC.js +51 -0
  363. package/dist/chunk-XHLO7WZC.js.map +1 -0
  364. package/dist/chunk-Y27RDJBU.js +54 -0
  365. package/dist/chunk-Y27RDJBU.js.map +1 -0
  366. package/dist/chunk-YBI4D4S2.js +44 -0
  367. package/dist/chunk-YBI4D4S2.js.map +1 -0
  368. package/dist/chunk-YMZ3JQMA.js +87 -0
  369. package/dist/chunk-YMZ3JQMA.js.map +1 -0
  370. package/dist/chunk-YSCMLGQQ.js +43 -0
  371. package/dist/chunk-YSCMLGQQ.js.map +1 -0
  372. package/dist/chunk-YZZNPVHA.js +101 -0
  373. package/dist/chunk-YZZNPVHA.js.map +1 -0
  374. package/dist/chunk-Z5SX6G37.js +79 -0
  375. package/dist/chunk-Z5SX6G37.js.map +1 -0
  376. package/dist/chunk-ZDBULVVQ.js +228 -0
  377. package/dist/chunk-ZDBULVVQ.js.map +1 -0
  378. package/dist/chunk-ZMSM3NG6.js +163 -0
  379. package/dist/chunk-ZMSM3NG6.js.map +1 -0
  380. package/dist/chunk-ZW4PTCEW.js +69 -0
  381. package/dist/chunk-ZW4PTCEW.js.map +1 -0
  382. package/dist/chunk-ZYCBLMCB.js +89 -0
  383. package/dist/chunk-ZYCBLMCB.js.map +1 -0
  384. package/dist/chunk-ZYX72AYO.js +74 -0
  385. package/dist/chunk-ZYX72AYO.js.map +1 -0
  386. package/dist/icon.js +15 -15
  387. package/dist/icons/index.js +15 -15
  388. package/dist/index.cjs +809 -761
  389. package/dist/index.cjs.map +1 -1
  390. package/dist/index.css +20 -0
  391. package/dist/index.d.cts +1 -0
  392. package/dist/index.d.ts +1 -0
  393. package/dist/index.js +177 -171
  394. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +95 -90
  395. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
  396. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +47 -46
  397. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +11 -6
  398. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
  399. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +40 -39
  400. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +60 -55
  401. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
  402. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +45 -44
  403. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +14 -9
  404. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
  405. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +38 -37
  406. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +16 -11
  407. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs.map +1 -1
  408. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +38 -37
  409. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs +14 -9
  410. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs.map +1 -1
  411. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +39 -38
  412. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +36 -31
  413. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
  414. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +41 -40
  415. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +15 -10
  416. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
  417. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +41 -40
  418. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +15 -10
  419. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
  420. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +41 -40
  421. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +22 -17
  422. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
  423. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +41 -40
  424. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +22 -17
  425. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
  426. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +39 -38
  427. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +131 -126
  428. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
  429. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +50 -49
  430. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +30 -25
  431. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
  432. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +40 -39
  433. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +16 -11
  434. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
  435. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +39 -38
  436. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +197 -180
  437. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
  438. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +51 -50
  439. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs +12 -7
  440. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
  441. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +38 -37
  442. package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +220 -203
  443. package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
  444. package/dist/molecules/curriculumV2/CurriculumContents/index.js +54 -53
  445. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +9 -4
  446. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
  447. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +38 -37
  448. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs +8 -3
  449. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs.map +1 -1
  450. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.js +39 -38
  451. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +13 -8
  452. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
  453. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +40 -39
  454. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +9 -4
  455. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
  456. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +38 -37
  457. package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +34 -29
  458. package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
  459. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +43 -42
  460. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +24 -19
  461. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
  462. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +42 -41
  463. package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +23 -18
  464. package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
  465. package/dist/molecules/curriculumV2/curriculum-sub-nav.js +39 -38
  466. package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs +13 -8
  467. package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs.map +1 -1
  468. package/dist/molecules/curriculumV2/curriculum-v2-layout.js +39 -38
  469. package/dist/molecules/curriculumV2/index.cjs +266 -249
  470. package/dist/molecules/curriculumV2/index.cjs.map +1 -1
  471. package/dist/molecules/curriculumV2/index.js +62 -61
  472. package/dist/molecules/date-picker/date-picker-button.cjs +35 -30
  473. package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
  474. package/dist/molecules/date-picker/date-picker-button.js +40 -39
  475. package/dist/molecules/date-picker/index.cjs +27 -22
  476. package/dist/molecules/date-picker/index.cjs.map +1 -1
  477. package/dist/molecules/date-picker/index.js +39 -38
  478. package/dist/molecules/expand-table/index.cjs +37 -32
  479. package/dist/molecules/expand-table/index.cjs.map +1 -1
  480. package/dist/molecules/expand-table/index.js +39 -38
  481. package/dist/molecules/expand-table/row.cjs +15 -10
  482. package/dist/molecules/expand-table/row.cjs.map +1 -1
  483. package/dist/molecules/expand-table/row.js +38 -37
  484. package/dist/molecules/ghost-post.js +3 -3
  485. package/dist/molecules/index.cjs +491 -474
  486. package/dist/molecules/index.cjs.map +1 -1
  487. package/dist/molecules/index.js +88 -87
  488. package/dist/molecules/learning-post.js +5 -5
  489. package/dist/molecules/navigation.cjs +11 -6
  490. package/dist/molecules/navigation.cjs.map +1 -1
  491. package/dist/molecules/navigation.js +39 -38
  492. package/dist/molecules/radio-button-card.cjs +15 -10
  493. package/dist/molecules/radio-button-card.cjs.map +1 -1
  494. package/dist/molecules/radio-button-card.js +38 -37
  495. package/dist/molecules/stepper.js +9 -9
  496. package/dist/molecules/tag-selector.cjs +49 -44
  497. package/dist/molecules/tag-selector.cjs.map +1 -1
  498. package/dist/molecules/tag-selector.js +39 -38
  499. package/dist/molecules/time-select.cjs +13 -8
  500. package/dist/molecules/time-select.cjs.map +1 -1
  501. package/dist/molecules/time-select.js +39 -38
  502. package/dist/utils/curriculum.utils.js +6 -6
  503. package/dist/utils/index.js +3 -3
  504. package/package.json +1 -1
  505. package/src/atoms/dialog.tsx +30 -14
  506. package/src/atoms/index.ts +1 -0
  507. package/src/atoms/list.tsx +61 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/dialog.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { useEffect } from 'react';\nimport { usePortalContainer } from '@/theme/portal-provider';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: string;\n hideCloseButton?: boolean;\n buttons?: React.ReactNode;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactNode {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n hideCloseButton,\n className,\n ...rest\n } = props;\n const { dialogContainerRef } = usePortalContainer();\n\n return (\n <RadixDialog.Portal container={dialogContainerRef.current}>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className={`DialogContent ${className || ''}`}\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\" width=\"100%\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' && title !== '' ? (\n <Heading mb=\"2\" variant=\"heading3\">\n {title}\n </Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n {!hideCloseButton && (\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n )}\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\" width=\"100%\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactNode {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactNode {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nfunction Root(props: RadixDialog.DialogProps): React.ReactNode {\n\n // 모달이 닫힌 후 포커스 복원 및 이벤트 정리\n useEffect(() => {\n if (!props.open) {\n // 모달이 닫힌 후 약간의 지연을 두고 포커스 복원\n const timer = setTimeout(() => {\n // 활성 요소에 포커스 복원\n const activeElement = document.activeElement as HTMLElement | null;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 어떤 dom인지 확실하지 않음\n activeElement?.blur?.();\n\n // body의 pointer-events 복원\n document.body.style.pointerEvents = '';\n\n // 이벤트 리스너 정리\n // document.removeEventListener('click', () => {\n // // 이벤트 리스너 정리\n // });\n }, 100);\n\n return () => { clearTimeout(timer); };\n }\n }, [props.open]);\n return <RadixDialog.Root {...props} />;\n}\n\nexport const Dialog = {\n Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY,iBAAiB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,MAAM,aAAa;AAC5B,SAAS,iBAAiB;AA2Dd,SAGM,KAHN;AA1CZ,IAAM,iBAAyE,CAC7E,MACG;AACH,IAAE,eAAe;AACnB;AAEA,SAASA,SAAQ,OAAsC;AACrD,QAcI,YAbF;AAAA;AAAA,IACA,QAAQ,CAAC;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAC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;AAEA,SAASC,SAAQ,IAGmC;AAHnC,eACf;AAAA;AAAA,EAzGF,IAwGiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,oBAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEA,SAASC,MAAK,OAAiD;AAG7D,YAAU,MAAM;AACd,QAAI,CAAC,MAAM,MAAM;AAEf,YAAM,QAAQ,WAAW,MAAM;AAzHrC;AA2HQ,cAAM,gBAAgB,SAAS;AAE/B,6DAAe,SAAf;AAGA,iBAAS,KAAK,MAAM,gBAAgB;AAAA,MAMtC,GAAG,GAAG;AAEN,aAAO,MAAM;AAAE,qBAAa,KAAK;AAAA,MAAG;AAAA,IACtC;AAAA,EACF,GAAG,CAAC,MAAM,IAAI,CAAC;AACf,SAAO,oBAAa,kBAAZ,mBAAqB,MAAO;AACtC;AAEO,IAAM,SAAS;AAAA,EACpB,MAAAA;AAAA,EACA,SAAAD;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["Content","Close","Trigger","Root"]}
@@ -0,0 +1,231 @@
1
+ import {
2
+ Popover
3
+ } from "./chunk-5AVBYDPB.js";
4
+ import {
5
+ Heading
6
+ } from "./chunk-34OQDUQR.js";
7
+ import {
8
+ Box
9
+ } from "./chunk-4Y5BEXVN.js";
10
+ import {
11
+ Button
12
+ } from "./chunk-AFPH32MF.js";
13
+ import {
14
+ ChevronLeftIcon,
15
+ ChevronRightIcon
16
+ } from "./chunk-V5XKNSCK.js";
17
+ import {
18
+ IconButton
19
+ } from "./chunk-O3DNDMV3.js";
20
+ import {
21
+ Typo
22
+ } from "./chunk-PARGQUJB.js";
23
+ import {
24
+ Flex
25
+ } from "./chunk-25HMMI7R.js";
26
+ import {
27
+ __objRest,
28
+ __spreadProps,
29
+ __spreadValues
30
+ } from "./chunk-2NMEKWO5.js";
31
+
32
+ // src/molecules/date-picker/index.tsx
33
+ import { forwardRef, useMemo, useState, useEffect, useRef } from "react";
34
+ import ReactDatePicker from "react-datepicker";
35
+ import { ko } from "date-fns/locale";
36
+ import { jsx, jsxs } from "react/jsx-runtime";
37
+ var DatePicker = forwardRef(
38
+ (props, ref) => {
39
+ const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
40
+ const fullWidthClassName = fullWidth ? "full-width" : "";
41
+ const [isYearDropdownOpen, setIsYearDropdownOpen] = useState(false);
42
+ const [isMonthDropdownOpen, setIsMonthDropdownOpen] = useState(false);
43
+ const renderCustomHeader = useMemo(() => {
44
+ const getYears = () => {
45
+ const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
46
+ return Array.from(
47
+ { length: currentYear + 5 - 1920 },
48
+ (_, index) => 1920 + index
49
+ ).filter((year) => {
50
+ if (props.minDate && year < props.minDate.getFullYear()) {
51
+ return false;
52
+ }
53
+ if (props.maxDate && year > props.maxDate.getFullYear()) {
54
+ return false;
55
+ }
56
+ return true;
57
+ });
58
+ };
59
+ return getRenderCustomHeader(__spreadProps(__spreadValues({}, props), {
60
+ years: getYears(),
61
+ isYearDropdownOpen,
62
+ setIsYearDropdownOpen,
63
+ isMonthDropdownOpen,
64
+ setIsMonthDropdownOpen
65
+ }));
66
+ }, [isMonthDropdownOpen, isYearDropdownOpen, props]);
67
+ return /* @__PURE__ */ jsx(Flex, { p: "0", width: "100%", children: /* @__PURE__ */ jsx(
68
+ ReactDatePicker,
69
+ __spreadProps(__spreadValues({
70
+ dateFormat: "yyyy/MM/dd h:mm aa",
71
+ formatWeekDay: (nameOfDay) => {
72
+ return nameOfDay[0];
73
+ },
74
+ locale: ko,
75
+ nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
76
+ placeholderText: "YYYY/MM/DD hh:mm AM/PM",
77
+ popperProps: { strategy: "fixed" },
78
+ previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
79
+ ref,
80
+ renderCustomHeader,
81
+ showPopperArrow: false,
82
+ timeCaption: "\uC2DC\uAC04",
83
+ timeFormat: "aa h:mm",
84
+ timeIntervals: 10
85
+ }, rest), {
86
+ calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
87
+ wrapperClassName: `tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ""}`
88
+ })
89
+ ) });
90
+ }
91
+ );
92
+ DatePicker.displayName = "DatePicker";
93
+ function DropdownSelector({
94
+ isOpen,
95
+ onOpenChange,
96
+ onSelect,
97
+ options,
98
+ selectedValue,
99
+ suffix
100
+ }) {
101
+ const scrollContainerRef = useRef(null);
102
+ useEffect(() => {
103
+ if (isOpen) {
104
+ queueMicrotask(() => {
105
+ var _a;
106
+ const item = (_a = scrollContainerRef.current) == null ? void 0 : _a.querySelector(
107
+ `[data-year-month-dropdown-tiem="${selectedValue}"]`
108
+ );
109
+ if (item) {
110
+ item.scrollIntoView({ behavior: "instant" });
111
+ }
112
+ });
113
+ }
114
+ }, [isOpen]);
115
+ return /* @__PURE__ */ jsxs(Popover.Root, { onOpenChange, open: isOpen, modal: true, children: [
116
+ /* @__PURE__ */ jsx(Popover.Trigger, { children: /* @__PURE__ */ jsx(Button, { variant: "ghost", children: /* @__PURE__ */ jsxs(Heading, { variant: "heading4", weight: "regular", children: [
117
+ selectedValue,
118
+ suffix
119
+ ] }) }) }),
120
+ /* @__PURE__ */ jsx(Popover.Content, { side: "bottom", children: /* @__PURE__ */ jsx(
121
+ Box,
122
+ {
123
+ maxHeight: "200px",
124
+ overflowY: "auto",
125
+ ref: scrollContainerRef,
126
+ style: { scrollbarWidth: "none" },
127
+ children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "1", children: options.map((item) => /* @__PURE__ */ jsx(
128
+ Button,
129
+ {
130
+ color: "gray",
131
+ "data-year-month-dropdown-tiem": item,
132
+ className: "react-datepicker_dropdown_item",
133
+ onMouseDown: (e) => {
134
+ e.stopPropagation();
135
+ e.preventDefault();
136
+ },
137
+ onClick: () => {
138
+ onSelect(item);
139
+ },
140
+ variant: "transparent",
141
+ children: /* @__PURE__ */ jsxs(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
142
+ item,
143
+ suffix
144
+ ] })
145
+ },
146
+ item
147
+ )) })
148
+ }
149
+ ) })
150
+ ] });
151
+ }
152
+ var getRenderCustomHeader = (props) => {
153
+ const renderer = (renderCustomHeaderProps) => {
154
+ const {
155
+ date,
156
+ decreaseMonth,
157
+ increaseMonth,
158
+ prevMonthButtonDisabled,
159
+ nextMonthButtonDisabled,
160
+ changeYear,
161
+ changeMonth
162
+ } = renderCustomHeaderProps;
163
+ const {
164
+ years,
165
+ isYearDropdownOpen,
166
+ setIsYearDropdownOpen,
167
+ isMonthDropdownOpen,
168
+ setIsMonthDropdownOpen
169
+ } = props;
170
+ const year = date ? new Date(date).getFullYear() : "-";
171
+ const month = date ? new Date(date).getMonth() + 1 : "-";
172
+ return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pl: "2", pr: "2", children: [
173
+ /* @__PURE__ */ jsx(
174
+ IconButton,
175
+ {
176
+ disabled: prevMonthButtonDisabled,
177
+ onClick: decreaseMonth,
178
+ type: "button",
179
+ variant: "ghost",
180
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
181
+ }
182
+ ),
183
+ /* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
184
+ /* @__PURE__ */ jsx(
185
+ DropdownSelector,
186
+ {
187
+ isOpen: isYearDropdownOpen,
188
+ onOpenChange: setIsYearDropdownOpen,
189
+ onSelect: (value) => {
190
+ changeYear(value);
191
+ setIsYearDropdownOpen(false);
192
+ },
193
+ options: years,
194
+ selectedValue: year,
195
+ suffix: "\uB144"
196
+ }
197
+ ),
198
+ /* @__PURE__ */ jsx(
199
+ DropdownSelector,
200
+ {
201
+ isOpen: isMonthDropdownOpen,
202
+ onOpenChange: setIsMonthDropdownOpen,
203
+ onSelect: (value) => {
204
+ changeMonth(value - 1);
205
+ setIsMonthDropdownOpen(false);
206
+ },
207
+ options: Array.from({ length: 12 }, (_, index) => index + 1),
208
+ selectedValue: month,
209
+ suffix: "\uC6D4"
210
+ }
211
+ )
212
+ ] }),
213
+ /* @__PURE__ */ jsx(
214
+ IconButton,
215
+ {
216
+ disabled: nextMonthButtonDisabled,
217
+ onClick: increaseMonth,
218
+ type: "button",
219
+ variant: "ghost",
220
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
221
+ }
222
+ )
223
+ ] });
224
+ };
225
+ return renderer;
226
+ };
227
+
228
+ export {
229
+ DatePicker
230
+ };
231
+ //# sourceMappingURL=chunk-E2YDBR4K.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["import type { ElementRef } from 'react';\nimport React, { forwardRef, useMemo, useState, useEffect, useRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport ReactDatePicker from 'react-datepicker';\nimport { ko } from 'date-fns/locale';\nimport { Box, Button, Popover, Typo } from '@/atoms';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nexport type DatePickerProps = ReactDatePickerProps & {\n fullWidth?: boolean;\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactNode => {\n const { fullWidth, ...rest } = props;\n const fullWidthClassName = fullWidth ? 'full-width' : '';\n const [isYearDropdownOpen, setIsYearDropdownOpen] = useState(false);\n const [isMonthDropdownOpen, setIsMonthDropdownOpen] = useState(false);\n\n const renderCustomHeader = useMemo(() => {\n const getYears = (): number[] => {\n const currentYear = new Date().getFullYear();\n return Array.from(\n { length: currentYear + 5 - 1920 },\n (_, index) => 1920 + index\n ).filter((year) => {\n if (props.minDate && year < props.minDate.getFullYear()) {\n return false;\n }\n if (props.maxDate && year > props.maxDate.getFullYear()) {\n return false;\n }\n return true;\n });\n };\n\n return getRenderCustomHeader({\n ...props,\n years: getYears(),\n isYearDropdownOpen,\n setIsYearDropdownOpen,\n isMonthDropdownOpen,\n setIsMonthDropdownOpen,\n });\n }, [isMonthDropdownOpen, isYearDropdownOpen, props]);\n\n return (\n <Flex p=\"0\" width=\"100%\">\n <ReactDatePicker\n dateFormat=\"yyyy/MM/dd h:mm aa\"\n formatWeekDay={(nameOfDay) => {\n return nameOfDay[0];\n }}\n locale={ko}\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"YYYY/MM/DD hh:mm AM/PM\"\n popperProps={{ strategy: 'fixed' }}\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n timeCaption=\"시간\"\n timeFormat=\"aa h:mm\"\n timeIntervals={10}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n wrapperClassName={`tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ''}`}\n />\n </Flex>\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\ninterface DropdownSelectorProps {\n isOpen: boolean;\n onOpenChange: (open: boolean) => void;\n onSelect: (value: number) => void;\n options: number[];\n selectedValue: number | string;\n suffix: string;\n}\n\nfunction DropdownSelector({\n isOpen,\n onOpenChange,\n onSelect,\n options,\n selectedValue,\n suffix,\n}: DropdownSelectorProps): React.JSX.Element {\n const scrollContainerRef = useRef<HTMLDivElement>(null);\n useEffect(() => {\n if (isOpen) {\n queueMicrotask(() => {\n const item = scrollContainerRef.current?.querySelector(\n `[data-year-month-dropdown-tiem=\"${selectedValue}\"]`\n );\n if (item) {\n item.scrollIntoView({ behavior: 'instant' });\n }\n });\n }\n }, [isOpen]);\n\n return (\n <Popover.Root onOpenChange={onOpenChange} open={isOpen} modal>\n <Popover.Trigger>\n <Button variant=\"ghost\">\n <Heading variant=\"heading4\" weight=\"regular\">\n {selectedValue}\n {suffix}\n </Heading>\n </Button>\n </Popover.Trigger>\n <Popover.Content side=\"bottom\">\n <Box\n maxHeight=\"200px\"\n overflowY=\"auto\"\n ref={scrollContainerRef}\n style={{ scrollbarWidth: 'none' }}\n >\n <Flex direction=\"column\" gap=\"1\">\n {options.map((item: number) => (\n <Button\n color=\"gray\"\n data-year-month-dropdown-tiem={item}\n key={item}\n className={'react-datepicker_dropdown_item'}\n onMouseDown={(e) => {\n e.stopPropagation();\n e.preventDefault();\n }}\n onClick={() => {\n onSelect(item);\n }}\n variant=\"transparent\"\n >\n <Typo weight={item === selectedValue ? 'bold' : undefined}>\n {item}\n {suffix}\n </Typo>\n </Button>\n ))}\n </Flex>\n </Box>\n </Popover.Content>\n </Popover.Root>\n );\n}\n\nconst getRenderCustomHeader: (\n props: ReactDatePickerProps & {\n years: number[];\n isYearDropdownOpen: boolean;\n setIsYearDropdownOpen: (show: boolean) => void;\n isMonthDropdownOpen: boolean;\n setIsMonthDropdownOpen: (show: boolean) => void;\n }\n) => ReactDatePickerProps['renderCustomHeader'] = (props) => {\n const renderer: ReactDatePickerProps['renderCustomHeader'] = (\n renderCustomHeaderProps\n ) => {\n const {\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n changeYear,\n changeMonth,\n } = renderCustomHeaderProps;\n const {\n years,\n isYearDropdownOpen,\n setIsYearDropdownOpen,\n isMonthDropdownOpen,\n setIsMonthDropdownOpen,\n } = props;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const year = date ? new Date(date).getFullYear() : '-';\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const month = date ? new Date(date).getMonth() + 1 : '-';\n\n return (\n <Flex align=\"center\" justify=\"between\" pl=\"2\" pr=\"2\">\n <IconButton\n disabled={prevMonthButtonDisabled}\n onClick={decreaseMonth}\n type=\"button\"\n variant=\"ghost\"\n >\n <ChevronLeftIcon />\n </IconButton>\n <Flex gap=\"3\">\n <DropdownSelector\n isOpen={isYearDropdownOpen}\n onOpenChange={setIsYearDropdownOpen}\n onSelect={(value) => {\n changeYear(value);\n setIsYearDropdownOpen(false);\n }}\n options={years}\n selectedValue={year}\n suffix=\"년\"\n />\n <DropdownSelector\n isOpen={isMonthDropdownOpen}\n onOpenChange={setIsMonthDropdownOpen}\n onSelect={(value) => {\n changeMonth(value - 1);\n setIsMonthDropdownOpen(false);\n }}\n options={Array.from({ length: 12 }, (_, index) => index + 1)}\n selectedValue={month}\n suffix=\"월\"\n />\n </Flex>\n\n <IconButton\n disabled={nextMonthButtonDisabled}\n onClick={increaseMonth}\n type=\"button\"\n variant=\"ghost\"\n >\n <ChevronRightIcon />\n </IconButton>\n </Flex>\n );\n };\n return renderer;\n};\n\n// DatePicker.displayName = 'DatePicker';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAgB,YAAY,SAAS,UAAU,WAAW,cAAc;AAExE,OAAO,qBAAqB;AAC5B,SAAS,UAAU;AAgDX,cA8DE,YA9DF;AApCD,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,YAlBZ,IAkBmC,IAAT,iBAAS,IAAT,CAAd;AACR,UAAM,qBAAqB,YAAY,eAAe;AACtD,UAAM,CAAC,oBAAoB,qBAAqB,IAAI,SAAS,KAAK;AAClE,UAAM,CAAC,qBAAqB,sBAAsB,IAAI,SAAS,KAAK;AAEpE,UAAM,qBAAqB,QAAQ,MAAM;AACvC,YAAM,WAAW,MAAgB;AAC/B,cAAM,eAAc,oBAAI,KAAK,GAAE,YAAY;AAC3C,eAAO,MAAM;AAAA,UACX,EAAE,QAAQ,cAAc,IAAI,KAAK;AAAA,UACjC,CAAC,GAAG,UAAU,OAAO;AAAA,QACvB,EAAE,OAAO,CAAC,SAAS;AACjB,cAAI,MAAM,WAAW,OAAO,MAAM,QAAQ,YAAY,GAAG;AACvD,mBAAO;AAAA,UACT;AACA,c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AAErD,WACE,qBAAC,QAAK,OAAM,UAAU,SAAQ,WAAU,IAAG,KAAI,IAAG,KAChD;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,UAAU;AAAA,UACV,SAAS;AAAA,UACT,MAAK;AAAA,UACL,SAAQ;AAAA,UAER,8BAAC,mBAAgB;AAAA;AAAA,MACnB;AAAA,MACA,qBAAC,QAAK,KAAI,KACR;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ;AAAA,YACR,cAAc;AAAA,YACd,UAAU,CAAC,UAAU;AACnB,yBAAW,KAAK;AAChB,oCAAsB,KAAK;AAAA,YAC7B;AAAA,YACA,SAAS;AAAA,YACT,eAAe;AAAA,YACf,QAAO;AAAA;AAAA,QACT;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ;AAAA,YACR,cAAc;AAAA,YACd,UAAU,CAAC,UAAU;AACnB,0BAAY,QAAQ,CAAC;AACrB,qCAAuB,KAAK;AAAA,YAC9B;AAAA,YACA,SAAS,MAAM,KAAK,EAAE,QAAQ,GAAG,GAAG,CAAC,GAAG,UAAU,QAAQ,CAAC;AAAA,YAC3D,eAAe;AAAA,YACf,QAAO;AAAA;AAAA,QACT;AAAA,SACF;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,UAAU;AAAA,UACV,SAAS;AAAA,UACT,MAAK;AAAA,UACL,SAAQ;AAAA,UAER,8BAAC,oBAAiB;AAAA;AAAA,MACpB;AAAA,OACF;AAAA,EAEJ;AACA,SAAO;AACT;","names":[]}
@@ -0,0 +1,63 @@
1
+ import {
2
+ Card
3
+ } from "./chunk-HEDMSFPW.js";
4
+ import {
5
+ Badge
6
+ } from "./chunk-FCIHNIOH.js";
7
+ import {
8
+ Heading
9
+ } from "./chunk-34OQDUQR.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ Typo
15
+ } from "./chunk-PARGQUJB.js";
16
+ import {
17
+ Flex
18
+ } from "./chunk-25HMMI7R.js";
19
+
20
+ // src/app/platform/session-review-simple-read.tsx
21
+ import { useMemo } from "react";
22
+ import { jsx, jsxs } from "react/jsx-runtime";
23
+ function SubTitleWrapper({
24
+ children,
25
+ title
26
+ }) {
27
+ return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
28
+ /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: title }),
29
+ /* @__PURE__ */ jsx(Box, { children })
30
+ ] });
31
+ }
32
+ function SessionReviewSimpleRead({
33
+ helpfulness,
34
+ review
35
+ }) {
36
+ const helpfulnessMeta = useMemo(() => {
37
+ if (helpfulness) {
38
+ return {
39
+ text: "\uB124",
40
+ color: "success"
41
+ };
42
+ }
43
+ if (typeof helpfulness === "undefined") {
44
+ return {
45
+ text: "-",
46
+ color: "neutral"
47
+ };
48
+ }
49
+ return {
50
+ text: "\uC544\uB2C8\uC694",
51
+ color: "error"
52
+ };
53
+ }, [helpfulness]);
54
+ return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
55
+ /* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ jsx(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
56
+ /* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ jsx(Card, { children: review ? /* @__PURE__ */ jsx(Typo, { as: "p", children: review }) : /* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
57
+ ] }) });
58
+ }
59
+
60
+ export {
61
+ SessionReviewSimpleRead
62
+ };
63
+ //# sourceMappingURL=chunk-EIM3P5F3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/app/platform/session-review-simple-read.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport type { BadgeProps } from '../../atoms';\nimport { Badge, Box, Card, Flex, Heading, Typo } from '../../atoms';\n\nexport interface SessionReviewSimpleReadProps {\n helpfulness?: boolean;\n review?: string;\n}\n\nfunction SubTitleWrapper({\n children,\n title,\n}: {\n children: React.ReactNode;\n title: string;\n}): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"2\">\n <Heading mb=\"2\" variant=\"heading5\" weight=\"regular\">\n {title}\n </Heading>\n\n <Box>{children}</Box>\n </Flex>\n );\n}\n\nexport function SessionReviewSimpleRead({\n helpfulness,\n review,\n}: SessionReviewSimpleReadProps): React.ReactNode {\n const helpfulnessMeta = useMemo<{\n text: string;\n color: BadgeProps['color'];\n }>(() => {\n if (helpfulness) {\n return {\n text: '네',\n color: 'success',\n };\n }\n if (typeof helpfulness === 'undefined') {\n return {\n text: '-',\n color: 'neutral',\n };\n }\n return {\n text: '아니요',\n color: 'error',\n };\n }, [helpfulness]);\n\n return (\n <Box>\n <Flex direction=\"column\" gap=\"5\">\n <SubTitleWrapper title=\"이번 코칭이 목표 달성에 도움이 되었나요?\">\n <Badge color={helpfulnessMeta.color}>{helpfulnessMeta.text}</Badge>\n </SubTitleWrapper>\n <SubTitleWrapper title=\"세션 후기\">\n <Card>\n {review ? (\n <Typo as=\"p\">{review}</Typo>\n ) : (\n <Typo color=\"gray\">입력된 후기가 없습니다.</Typo>\n )}\n </Card>\n </SubTitleWrapper>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AAiB3B,SACE,KADF;AARJ,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AACF,GAGoB;AAClB,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,WAAQ,IAAG,KAAI,SAAQ,YAAW,QAAO,WACvC,iBACH;AAAA,IAEA,oBAAC,OAAK,UAAS;AAAA,KACjB;AAEJ;AAEO,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AACF,GAAkD;AAChD,QAAM,kBAAkB,QAGrB,MAAM;AACP,QAAI,aAAa;AACf,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,QAAI,OAAO,gBAAgB,aAAa;AACtC,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,WAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,WAAW,CAAC;AAEhB,SACE,oBAAC,OACC,+BAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,mBAAgB,OAAM,gHACrB,8BAAC,SAAM,OAAO,gBAAgB,OAAQ,0BAAgB,MAAK,GAC7D;AAAA,IACA,oBAAC,mBAAgB,OAAM,6BACrB,8BAAC,QACE,mBACC,oBAAC,QAAK,IAAG,KAAK,kBAAO,IAErB,oBAAC,QAAK,OAAM,QAAO,6EAAa,GAEpC,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -0,0 +1,101 @@
1
+ import {
2
+ ReviewQuestionContentHeader
3
+ } from "./chunk-YSCMLGQQ.js";
4
+ import {
5
+ RadioButtonCard
6
+ } from "./chunk-SLXXCM56.js";
7
+ import {
8
+ Grid
9
+ } from "./chunk-EGEQY3KT.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ Typo
15
+ } from "./chunk-PARGQUJB.js";
16
+ import {
17
+ Flex
18
+ } from "./chunk-25HMMI7R.js";
19
+ import {
20
+ Button
21
+ } from "./chunk-AFPH32MF.js";
22
+ import {
23
+ Card
24
+ } from "./chunk-HEDMSFPW.js";
25
+
26
+ // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
27
+ import { useCallback, useMemo, useState } from "react";
28
+ import { jsx, jsxs } from "react/jsx-runtime";
29
+ var correctAnswerStyle = {
30
+ backgroundColor: "var(--green-a2)"
31
+ };
32
+ function ReviewQuestionRadio(props) {
33
+ const { question, answer, onChange } = props;
34
+ const [isCheckAnswer, setIsCheckAnswer] = useState(false);
35
+ const checkAnswer = useCallback(() => {
36
+ setIsCheckAnswer(true);
37
+ }, []);
38
+ const isCorrect = isCheckAnswer && Number(answer) === question.correctAnswer;
39
+ const isWrong = isCheckAnswer && Number(answer) !== question.correctAnswer;
40
+ const radioColor = useMemo(() => {
41
+ if (isCorrect) return "green";
42
+ if (isWrong) return "red";
43
+ return void 0;
44
+ }, [isCorrect, isWrong]);
45
+ return /* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
46
+ /* @__PURE__ */ jsx(Card, { mb: "4", size: "2", children: /* @__PURE__ */ jsx(
47
+ ReviewQuestionContentHeader,
48
+ {
49
+ icon: question.icon,
50
+ question: question.question,
51
+ title: question.title,
52
+ type: question.type
53
+ }
54
+ ) }),
55
+ /* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
56
+ /* @__PURE__ */ jsx(Box, { position: "relative", children: /* @__PURE__ */ jsx(
57
+ RadioButtonCard.Root,
58
+ {
59
+ color: radioColor,
60
+ onValueChange: onChange,
61
+ style: {
62
+ width: "100%",
63
+ height: "100%",
64
+ overflowY: "auto",
65
+ position: "absolute"
66
+ },
67
+ value: answer,
68
+ children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
69
+ const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
70
+ const isThisOptionSelected = isCheckAnswer && i === Number(answer);
71
+ const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
72
+ const style = (() => {
73
+ if (isThisOptionCorrect) return correctAnswerStyle;
74
+ return {};
75
+ })();
76
+ return /* @__PURE__ */ jsx(
77
+ RadioButtonCard.Item,
78
+ {
79
+ style,
80
+ value: i.toString(),
81
+ children: /* @__PURE__ */ jsxs(Box, { children: [
82
+ /* @__PURE__ */ jsx(Typo, { as: "p", children: option.label }),
83
+ isThisOptionCorrect ? /* @__PURE__ */ jsx(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
84
+ isThisOptionWrong ? /* @__PURE__ */ jsx(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
85
+ ] })
86
+ },
87
+ `${option.label}-${i}`
88
+ );
89
+ }) })
90
+ }
91
+ ) }),
92
+ /* @__PURE__ */ jsx(Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ jsx(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
93
+ ] })
94
+ ] });
95
+ }
96
+ var review_question_radio_default = ReviewQuestionRadio;
97
+
98
+ export {
99
+ review_question_radio_default
100
+ };
101
+ //# sourceMappingURL=chunk-EIUAHMCS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { Box, Button, Card, Flex, Grid, Typo } from '@/atoms';\nimport { type CurriculumReviewQuestionRadio } from '@/types/curriculumContents.type'; \nimport { RadioButtonCard } from \"../../../../radio-button-card\";\nimport { ReviewQuestionContentHeader } from './review-comp';\n\ninterface ReviewQuestionRadioProps {\n question: CurriculumReviewQuestionRadio;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nconst correctAnswerStyle: React.CSSProperties = {\n backgroundColor: 'var(--green-a2)',\n};\n\nfunction ReviewQuestionRadio(props: ReviewQuestionRadioProps): React.ReactNode {\n const { question, answer, onChange } = props;\n const [isCheckAnswer, setIsCheckAnswer] = useState(false);\n\n const checkAnswer = useCallback(() => {\n setIsCheckAnswer(true);\n }, []);\n\n const isCorrect = isCheckAnswer && Number(answer) === question.correctAnswer;\n const isWrong = isCheckAnswer && Number(answer) !== question.correctAnswer;\n const radioColor = useMemo(() => {\n if (isCorrect) return 'green';\n if (isWrong) return 'red';\n return undefined;\n }, [isCorrect, isWrong]);\n\n return (\n <Grid height=\"100%\" rows=\"auto 1fr\" width=\"100%\">\n <Card mb=\"4\" size=\"2\">\n <ReviewQuestionContentHeader\n icon={question.icon}\n question={question.question}\n title={question.title}\n type={question.type}\n />\n </Card>\n\n <Grid height=\"100%\" rows=\"1fr auto\" width=\"100%\">\n <Box position=\"relative\">\n <RadioButtonCard.Root\n color={radioColor}\n onValueChange={onChange}\n style={{\n width: '100%',\n height: '100%',\n overflowY: 'auto',\n position: 'absolute',\n }}\n value={answer}\n >\n <Flex direction=\"column\" gap=\"2\" width=\"100%\">\n {question.options.map((option, i) => {\n const isThisOptionCorrect =\n isCheckAnswer && i === question.correctAnswer;\n const isThisOptionSelected =\n isCheckAnswer && i === Number(answer);\n const isThisOptionWrong =\n isCheckAnswer &&\n isThisOptionSelected &&\n i !== question.correctAnswer;\n const style = (() => {\n if (isThisOptionCorrect) return correctAnswerStyle;\n return {};\n })();\n\n return (\n <RadioButtonCard.Item\n // eslint-disable-next-line react/no-array-index-key -- 조합 키로 중복 회피\n key={`${option.label}-${i}`}\n style={style}\n value={i.toString()}\n >\n <Box>\n <Typo as=\"p\">{option.label}</Typo>\n {isThisOptionCorrect ? (\n <Typo color=\"green\">정답입니다</Typo>\n ) : null}\n {isThisOptionWrong ? (\n <Typo color=\"red\">정답이 아닙니다</Typo>\n ) : null}\n </Box>\n </RadioButtonCard.Item>\n );\n })}\n </Flex>\n </RadioButtonCard.Root>\n </Box>\n <Flex justify=\"end\" mt=\"2\">\n <Button onClick={checkAnswer}>정답 확인</Button>\n </Flex>\n </Grid>\n </Grid>\n );\n}\n\nexport default ReviewQuestionRadio;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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OAAO,MAAM;AACtC,kBAAM,oBACJ,iBACA,wBACA,MAAM,SAAS;AACjB,kBAAM,SAAS,MAAM;AACnB,kBAAI,oBAAqB,QAAO;AAChC,qBAAO,CAAC;AAAA,YACV,GAAG;AAEH,mBACE;AAAA,cAAC,gBAAgB;AAAA,cAAhB;AAAA,gBAGC;AAAA,gBACA,OAAO,EAAE,SAAS;AAAA,gBAElB,+BAAC,OACC;AAAA,sCAAC,QAAK,IAAG,KAAK,iBAAO,OAAM;AAAA,kBAC1B,sBACC,oBAAC,QAAK,OAAM,SAAQ,4CAAK,IACvB;AAAA,kBACH,oBACC,oBAAC,QAAK,OAAM,OAAM,yDAAQ,IACxB;AAAA,mBACN;AAAA;AAAA,cAZK,GAAG,OAAO,KAAK,IAAI,CAAC;AAAA,YAa3B;AAAA,UAEJ,CAAC,GACH;AAAA;AAAA,MACF,GACF;AAAA,MACA,oBAAC,QAAK,SAAQ,OAAM,IAAG,KACrB,8BAAC,UAAO,SAAS,aAAa,uCAAK,GACrC;AAAA,OACF;AAAA,KACF;AAEJ;AAEA,IAAO,gCAAQ;","names":[]}
@@ -0,0 +1,33 @@
1
+ import {
2
+ Typo
3
+ } from "./chunk-PARGQUJB.js";
4
+
5
+ // src/atoms/list.tsx
6
+ import { createContext, useContext } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ function Root(props) {
9
+ const { variant, size = "large", children } = props;
10
+ const Comp = variant === "ol" ? "ol" : "ul";
11
+ return /* @__PURE__ */ jsx(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx(Comp, { children }) });
12
+ }
13
+ function Item(props) {
14
+ const { children } = props;
15
+ const { size } = useList();
16
+ return /* @__PURE__ */ jsx(Typo, { asChild: true, children: /* @__PURE__ */ jsx("li", { children }) });
17
+ }
18
+ var ListContext = createContext({ size: "large" });
19
+ function useList() {
20
+ return useContext(ListContext);
21
+ }
22
+ var List = {
23
+ Root,
24
+ Item
25
+ };
26
+
27
+ export {
28
+ Root,
29
+ Item,
30
+ useList,
31
+ List
32
+ };
33
+ //# sourceMappingURL=chunk-EJZDHKCG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/list.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props'\nimport React, { createContext, useContext } from 'react'\nimport { Typo } from './typo';\n\nexport interface ListProps {\n variant?: 'ol' | 'ul'\n size?: Responsive<'small' | 'large'>\n children?: React.ReactNode\n}\n\nexport function Root(props: ListProps):React.ReactElement {\n const {variant, size = 'large', children} = props;\n const Comp = variant === 'ol' ? 'ol' : \"ul\";\n return (\n <ListContext.Provider value={{size}}> \n <Comp >\n {children}\n </Comp>\n </ListContext.Provider>\n )\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode\n}\n\nexport function Item(props: ListItemProps):React.ReactElement {\n const {children} = props;\n const {size} = useList();\n\n return <Typo asChild>\n <li>{children}</li>\n </Typo>\n}\n\nconst ListContext = createContext<{size: Responsive<'small' | 'large'>}>({size: 'large'});\n\nexport function useList(): {size: Responsive<'small' | 'large'>} {\n return useContext(ListContext);\n}\n\n\nexport const List = {\n Root,\n Item,\n}"],"mappings":";;;;;AACA,SAAgB,eAAe,kBAAkB;AAc7C;AALG,SAAS,KAAK,OAAqC;AACxD,QAAM,EAAC,SAAS,OAAO,SAAS,SAAQ,IAAI;AAC5C,QAAM,OAAO,YAAY,OAAO,OAAO;AACvC,SACE,oBAAC,YAAY,UAAZ,EAAqB,OAAO,EAAC,KAAI,GAClC,8BAAC,QACE,UACH,GACA;AAEJ;AAMO,SAAS,KAAK,OAAyC;AAC5D,QAAM,EAAC,SAAQ,IAAI;AACnB,QAAM,EAAC,KAAI,IAAI,QAAQ;AAEvB,SAAO,oBAAC,QAAK,SAAO,MAClB,8BAAC,QAAI,UAAS,GAChB;AACF;AAEA,IAAM,cAAc,cAAqD,EAAC,MAAM,QAAO,CAAC;AAEjF,SAAS,UAAiD;AAC/D,SAAO,WAAW,WAAW;AAC/B;AAGO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":[]}
@@ -0,0 +1,87 @@
1
+ import {
2
+ ReviewQuestionContentHeader
3
+ } from "./chunk-67J64K4I.js";
4
+ import {
5
+ TextArea
6
+ } from "./chunk-3F45OPXG.js";
7
+ import {
8
+ Grid
9
+ } from "./chunk-EGEQY3KT.js";
10
+ import {
11
+ Callout
12
+ } from "./chunk-B6XJN6EC.js";
13
+ import {
14
+ Card
15
+ } from "./chunk-HEDMSFPW.js";
16
+ import {
17
+ Box
18
+ } from "./chunk-4Y5BEXVN.js";
19
+ import {
20
+ Typo
21
+ } from "./chunk-PARGQUJB.js";
22
+ import {
23
+ BellIcon
24
+ } from "./chunk-V5XKNSCK.js";
25
+
26
+ // src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
27
+ import { jsx, jsxs } from "react/jsx-runtime";
28
+ function ReviewQuestionText(props) {
29
+ const { question, answer, onChange } = props;
30
+ const minLengthNotMet = question.minLength && answer.length < question.minLength;
31
+ const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
32
+ return /* @__PURE__ */ jsx(
33
+ Card,
34
+ {
35
+ size: "2",
36
+ style: {
37
+ width: "100%",
38
+ height: "100%"
39
+ },
40
+ children: /* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "1fr auto", children: [
41
+ /* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
42
+ /* @__PURE__ */ jsx(
43
+ ReviewQuestionContentHeader,
44
+ {
45
+ icon: question.icon,
46
+ question: question.question,
47
+ title: question.title,
48
+ type: question.type
49
+ }
50
+ ),
51
+ /* @__PURE__ */ jsx(
52
+ TextArea,
53
+ {
54
+ mt: "2",
55
+ onChange: (e) => {
56
+ onChange(e.target.value);
57
+ },
58
+ placeholder: question.placeholder,
59
+ value: answer
60
+ }
61
+ )
62
+ ] }),
63
+ minLengthNotMet ? /* @__PURE__ */ jsxs(Box, { mt: "2", children: [
64
+ /* @__PURE__ */ jsx(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
65
+ question.minLengthInfoMessage ? /* @__PURE__ */ jsxs(
66
+ Callout.Root,
67
+ {
68
+ color: "iris",
69
+ mt: "2",
70
+ style: { alignItems: "center" },
71
+ children: [
72
+ /* @__PURE__ */ jsx(Callout.Icon, { children: /* @__PURE__ */ jsx(BellIcon, {}) }),
73
+ /* @__PURE__ */ jsx(Callout.Text, { children: /* @__PURE__ */ jsx(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
74
+ ]
75
+ }
76
+ ) : null
77
+ ] }) : null
78
+ ] })
79
+ }
80
+ );
81
+ }
82
+ var review_question_text_default = ReviewQuestionText;
83
+
84
+ export {
85
+ review_question_text_default
86
+ };
87
+ //# sourceMappingURL=chunk-EN6XRDGV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Card, Callout, Grid, TextArea, Typo } from '@/atoms';\nimport { BellIcon } from '@/icon';\nimport { type CurriculumReviewQuestionText } from '@/types/curriculumContents.type';\nimport { ReviewQuestionContentHeader } from './review-comp';\n\ninterface ReviewQuestionTextProps {\n question: CurriculumReviewQuestionText;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nfunction ReviewQuestionText(props: ReviewQuestionTextProps): React.ReactNode {\n const { question, answer, onChange } = props;\n\n const minLengthNotMet =\n question.minLength && answer.length < question.minLength;\n\n const remainingLength =\n question.minLength && answer.length < question.minLength\n ? question.minLength - answer.length\n : 0;\n\n return (\n <Card\n size=\"2\"\n style={{\n width: '100%',\n height: '100%',\n }}\n >\n <Grid height=\"100%\" rows=\"1fr auto\">\n <Grid height=\"100%\" rows=\"auto 1fr\" width=\"100%\">\n <ReviewQuestionContentHeader\n icon={question.icon}\n question={question.question}\n title={question.title}\n type={question.type}\n />\n\n <TextArea\n mt=\"2\"\n onChange={(e) => {\n onChange(e.target.value);\n }}\n placeholder={question.placeholder}\n value={answer}\n />\n </Grid>\n {minLengthNotMet ? (\n <Box mt=\"2\">\n <Typo align=\"right\" as=\"p\" color=\"red\" variant=\"caption\">\n {`${remainingLength}자 더 작성해주세요.`}\n </Typo>\n {question.minLengthInfoMessage ? (\n <Callout.Root\n color=\"iris\"\n mt=\"2\"\n style={{ alignItems: 'center' }}\n >\n <Callout.Icon>\n <BellIcon />\n </Callout.Icon>\n <Callout.Text>\n <Typo as=\"p\" variant=\"caption\">\n {question.minLengthInfoMessage}\n </Typo>\n </Callout.Text>\n </Callout.Root>\n ) : null}\n </Box>\n ) : null}\n </Grid>\n </Card>\n );\n}\n\nexport default ReviewQuestionText;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiCQ,SACE,KADF;AApBR,SAAS,mBAAmB,OAAiD;AAC3E,QAAM,EAAE,UAAU,QAAQ,SAAS,IAAI;AAEvC,QAAM,kBACJ,SAAS,aAAa,OAAO,SAAS,SAAS;AAEjD,QAAM,kBACJ,SAAS,aAAa,OAAO,SAAS,SAAS,YAC3C,SAAS,YAAY,OAAO,SAC5B;AAEN,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,OAAO;AAAA,QACL,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,MAEA,+BAAC,QAAK,QAAO,QAAO,MAAK,YACvB;AAAA,6BAAC,QAAK,QAAO,QAAO,MAAK,YAAW,OAAM,QACxC;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,MAAM,SAAS;AAAA,cACf,UAAU,SAAS;AAAA,cACnB,OAAO,SAAS;AAAA,cAChB,MAAM,SAAS;AAAA;AAAA,UACjB;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,IAAG;AAAA,cACH,UAAU,CAAC,MAAM;AACf,yBAAS,EAAE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