@tipp/ui 2.3.17 → 2.3.19
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.
- package/dist/app/index.cjs +200 -195
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +94 -93
- package/dist/app/platform/coach-question-list.js +29 -29
- package/dist/app/platform/contents-card.js +29 -29
- package/dist/app/platform/curriculum-card.js +6 -6
- package/dist/app/platform/edit-coaching-time.cjs +29 -24
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +72 -71
- package/dist/app/platform/edit-service-type.cjs +25 -20
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +73 -72
- package/dist/app/platform/goal-manage-card-edit.cjs +32 -27
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +72 -71
- package/dist/app/platform/goal-manage-card-read.js +29 -29
- package/dist/app/platform/on-offline-radio-card.cjs +38 -33
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +72 -71
- package/dist/app/platform/report-card.js +29 -29
- package/dist/app/platform/reservation-card.cjs +48 -43
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +73 -72
- package/dist/app/platform/session-card.cjs +75 -70
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +75 -74
- package/dist/app/platform/session-review-simple-read.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +32 -32
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +29 -29
- package/dist/app/platform/userInfos/session-user-info-detail.js +29 -29
- package/dist/app/platform/userInfos/utils.js +28 -28
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.js +62 -62
- package/dist/atoms/list.js +2 -2
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-232ZBMFV.js +196 -0
- package/dist/chunk-232ZBMFV.js.map +1 -0
- package/dist/chunk-24572XRX.js +140 -0
- package/dist/chunk-24572XRX.js.map +1 -0
- package/dist/chunk-2O2CKXEZ.js +69 -0
- package/dist/chunk-2O2CKXEZ.js.map +1 -0
- package/dist/chunk-2VFMVVWT.js +63 -0
- package/dist/chunk-2VFMVVWT.js.map +1 -0
- package/dist/chunk-2XNMU67K.js +69 -0
- package/dist/chunk-2XNMU67K.js.map +1 -0
- package/dist/chunk-2YBJBKBB.js +82 -0
- package/dist/chunk-2YBJBKBB.js.map +1 -0
- package/dist/chunk-34XTOQID.js +140 -0
- package/dist/chunk-34XTOQID.js.map +1 -0
- package/dist/chunk-367ZYIOP.js +89 -0
- package/dist/chunk-367ZYIOP.js.map +1 -0
- package/dist/chunk-3A3VE6SX.js +160 -0
- package/dist/chunk-3A3VE6SX.js.map +1 -0
- package/dist/chunk-3A45CD76.js +196 -0
- package/dist/chunk-3A45CD76.js.map +1 -0
- package/dist/chunk-3LEW5RYJ.js +163 -0
- package/dist/chunk-3LEW5RYJ.js.map +1 -0
- package/dist/chunk-3MCSM3WD.js +163 -0
- package/dist/chunk-3MCSM3WD.js.map +1 -0
- package/dist/chunk-3MG2RPYN.js +163 -0
- package/dist/chunk-3MG2RPYN.js.map +1 -0
- package/dist/chunk-4JYSUW7I.js +151 -0
- package/dist/chunk-4JYSUW7I.js.map +1 -0
- package/dist/chunk-4SFBZJWH.js +140 -0
- package/dist/chunk-4SFBZJWH.js.map +1 -0
- package/dist/chunk-5IQ4474Z.js +89 -0
- package/dist/chunk-5IQ4474Z.js.map +1 -0
- package/dist/chunk-5RMPQM6F.js +163 -0
- package/dist/chunk-5RMPQM6F.js.map +1 -0
- package/dist/chunk-5TPNUG3Y.js +63 -0
- package/dist/chunk-5TPNUG3Y.js.map +1 -0
- package/dist/chunk-5UUCPFYY.js +140 -0
- package/dist/chunk-5UUCPFYY.js.map +1 -0
- package/dist/chunk-64JB2NO2.js +51 -0
- package/dist/chunk-64JB2NO2.js.map +1 -0
- package/dist/chunk-6F63WEDJ.js +63 -0
- package/dist/chunk-6F63WEDJ.js.map +1 -0
- package/dist/chunk-6LZWYVNE.js +160 -0
- package/dist/chunk-6LZWYVNE.js.map +1 -0
- package/dist/chunk-6PJ7QIPK.js +140 -0
- package/dist/chunk-6PJ7QIPK.js.map +1 -0
- package/dist/chunk-6UCGUA3B.js +30 -0
- package/dist/chunk-6UCGUA3B.js.map +1 -0
- package/dist/chunk-7AGAGV4E.js +69 -0
- package/dist/chunk-7AGAGV4E.js.map +1 -0
- package/dist/chunk-7AZNNMJF.js +129 -0
- package/dist/chunk-7AZNNMJF.js.map +1 -0
- package/dist/chunk-7BAQZVH3.js +152 -0
- package/dist/chunk-7BAQZVH3.js.map +1 -0
- package/dist/chunk-7IFK5DP5.js +69 -0
- package/dist/chunk-7IFK5DP5.js.map +1 -0
- package/dist/chunk-7QDV6YRH.js +196 -0
- package/dist/chunk-7QDV6YRH.js.map +1 -0
- package/dist/chunk-7RB2YZCU.js +159 -0
- package/dist/chunk-7RB2YZCU.js.map +1 -0
- package/dist/chunk-7XG4CK7Y.js +89 -0
- package/dist/chunk-7XG4CK7Y.js.map +1 -0
- package/dist/chunk-A5SSQHU7.js +135 -0
- package/dist/chunk-A5SSQHU7.js.map +1 -0
- package/dist/chunk-A5VFSD3T.js +129 -0
- package/dist/chunk-A5VFSD3T.js.map +1 -0
- package/dist/chunk-B5U2JBLX.js +87 -0
- package/dist/chunk-B5U2JBLX.js.map +1 -0
- package/dist/chunk-BAFUUZ5V.js +163 -0
- package/dist/chunk-BAFUUZ5V.js.map +1 -0
- package/dist/chunk-BDJUL3JV.js +50 -0
- package/dist/chunk-BDJUL3JV.js.map +1 -0
- package/dist/chunk-BI5GANUG.js +75 -0
- package/dist/chunk-BI5GANUG.js.map +1 -0
- package/dist/chunk-BT4BMBJC.js +163 -0
- package/dist/chunk-BT4BMBJC.js.map +1 -0
- package/dist/chunk-BV3ZL4VC.js +196 -0
- package/dist/chunk-BV3ZL4VC.js.map +1 -0
- package/dist/chunk-BWWSZLTV.js +43 -0
- package/dist/chunk-BWWSZLTV.js.map +1 -0
- package/dist/chunk-C5MM3PUD.js +89 -0
- package/dist/chunk-C5MM3PUD.js.map +1 -0
- package/dist/chunk-C5YDIFWN.js +129 -0
- package/dist/chunk-C5YDIFWN.js.map +1 -0
- package/dist/chunk-CC4LSJRN.js +144 -0
- package/dist/chunk-CC4LSJRN.js.map +1 -0
- package/dist/chunk-CIQ7ELE6.js +151 -0
- package/dist/chunk-CIQ7ELE6.js.map +1 -0
- package/dist/chunk-CSLHE7O6.js +196 -0
- package/dist/chunk-CSLHE7O6.js.map +1 -0
- package/dist/chunk-CTCLKPUM.js +50 -0
- package/dist/chunk-CTCLKPUM.js.map +1 -0
- package/dist/chunk-D7NY3IWA.js +152 -0
- package/dist/chunk-D7NY3IWA.js.map +1 -0
- package/dist/chunk-DEAVEZQM.js +1 -0
- package/dist/chunk-DEAVEZQM.js.map +1 -0
- package/dist/chunk-DL5EXP6Q.js +129 -0
- package/dist/chunk-DL5EXP6Q.js.map +1 -0
- package/dist/chunk-EEXQP6FN.js +129 -0
- package/dist/chunk-EEXQP6FN.js.map +1 -0
- package/dist/chunk-ENVZEWF6.js +98 -0
- package/dist/chunk-ENVZEWF6.js.map +1 -0
- package/dist/chunk-EOPCVKLK.js +69 -0
- package/dist/chunk-EOPCVKLK.js.map +1 -0
- package/dist/chunk-FJYLZOAR.js +140 -0
- package/dist/chunk-FJYLZOAR.js.map +1 -0
- package/dist/chunk-FSJP6HQY.js +49 -0
- package/dist/chunk-FSJP6HQY.js.map +1 -0
- package/dist/chunk-FVAZZ46M.js +69 -0
- package/dist/chunk-FVAZZ46M.js.map +1 -0
- package/dist/chunk-GFRV5VDJ.js +132 -0
- package/dist/chunk-GFRV5VDJ.js.map +1 -0
- package/dist/chunk-H53J2DZE.js +157 -0
- package/dist/chunk-H53J2DZE.js.map +1 -0
- package/dist/chunk-H6UISOMV.js +50 -0
- package/dist/chunk-H6UISOMV.js.map +1 -0
- package/dist/chunk-HBQ6WF3C.js +196 -0
- package/dist/chunk-HBQ6WF3C.js.map +1 -0
- package/dist/chunk-HZ5LNRVL.js +101 -0
- package/dist/chunk-HZ5LNRVL.js.map +1 -0
- package/dist/chunk-I25D6CHU.js +50 -0
- package/dist/chunk-I25D6CHU.js.map +1 -0
- package/dist/chunk-I6ITAPUG.js +158 -0
- package/dist/chunk-I6ITAPUG.js.map +1 -0
- package/dist/chunk-IF4Q5NV4.js +129 -0
- package/dist/chunk-IF4Q5NV4.js.map +1 -0
- package/dist/chunk-IPEPHM2U.js +89 -0
- package/dist/chunk-IPEPHM2U.js.map +1 -0
- package/dist/chunk-IYVNZW3B.js +196 -0
- package/dist/chunk-IYVNZW3B.js.map +1 -0
- package/dist/chunk-J65X5ID3.js +136 -0
- package/dist/chunk-J65X5ID3.js.map +1 -0
- package/dist/chunk-J6D5FMYR.js +75 -0
- package/dist/chunk-J6D5FMYR.js.map +1 -0
- package/dist/chunk-JGM5HN2L.js +69 -0
- package/dist/chunk-JGM5HN2L.js.map +1 -0
- package/dist/chunk-K6PJ5GES.js +129 -0
- package/dist/chunk-K6PJ5GES.js.map +1 -0
- package/dist/chunk-KJC6WEFI.js +75 -0
- package/dist/chunk-KJC6WEFI.js.map +1 -0
- package/dist/chunk-LEIPUJCQ.js +75 -0
- package/dist/chunk-LEIPUJCQ.js.map +1 -0
- package/dist/chunk-LFISV2GU.js +160 -0
- package/dist/chunk-LFISV2GU.js.map +1 -0
- package/dist/chunk-LJO2266G.js +64 -0
- package/dist/chunk-LJO2266G.js.map +1 -0
- package/dist/chunk-LPOX4NKE.js +29 -0
- package/dist/chunk-LPOX4NKE.js.map +1 -0
- package/dist/chunk-LRTZTSV6.js +135 -0
- package/dist/chunk-LRTZTSV6.js.map +1 -0
- package/dist/chunk-M2DLW32Z.js +77 -0
- package/dist/chunk-M2DLW32Z.js.map +1 -0
- package/dist/chunk-MOITMVXZ.js +159 -0
- package/dist/chunk-MOITMVXZ.js.map +1 -0
- package/dist/chunk-MYGRIOQM.js +163 -0
- package/dist/chunk-MYGRIOQM.js.map +1 -0
- package/dist/chunk-N662YJXY.js +69 -0
- package/dist/chunk-N662YJXY.js.map +1 -0
- package/dist/chunk-N6LOS7L5.js +89 -0
- package/dist/chunk-N6LOS7L5.js.map +1 -0
- package/dist/chunk-NBVTF6TV.js +163 -0
- package/dist/chunk-NBVTF6TV.js.map +1 -0
- package/dist/chunk-NCCAFJJR.js +83 -0
- package/dist/chunk-NCCAFJJR.js.map +1 -0
- package/dist/chunk-NFI7WDJS.js +50 -0
- package/dist/chunk-NFI7WDJS.js.map +1 -0
- package/dist/chunk-NMOMXXLD.js +163 -0
- package/dist/chunk-NMOMXXLD.js.map +1 -0
- package/dist/chunk-NTJLECYY.js +37 -0
- package/dist/chunk-NTJLECYY.js.map +1 -0
- package/dist/chunk-NTWHDYJV.js +89 -0
- package/dist/chunk-NTWHDYJV.js.map +1 -0
- package/dist/chunk-NVQSH733.js +51 -0
- package/dist/chunk-NVQSH733.js.map +1 -0
- package/dist/chunk-ODHH7CFR.js +196 -0
- package/dist/chunk-ODHH7CFR.js.map +1 -0
- package/dist/chunk-OHSKOJ2Y.js +136 -0
- package/dist/chunk-OHSKOJ2Y.js.map +1 -0
- package/dist/chunk-OILH5J7Q.js +101 -0
- package/dist/chunk-OILH5J7Q.js.map +1 -0
- package/dist/chunk-OX5XYAZM.js +37 -0
- package/dist/chunk-OX5XYAZM.js.map +1 -0
- package/dist/chunk-P76FTCUF.js +64 -0
- package/dist/chunk-P76FTCUF.js.map +1 -0
- package/dist/chunk-PF3LVPOZ.js +87 -0
- package/dist/chunk-PF3LVPOZ.js.map +1 -0
- package/dist/chunk-PWF22OOK.js +64 -0
- package/dist/chunk-PWF22OOK.js.map +1 -0
- package/dist/chunk-QF22MRN6.js +152 -0
- package/dist/chunk-QF22MRN6.js.map +1 -0
- package/dist/chunk-QHAU3JHA.js +152 -0
- package/dist/chunk-QHAU3JHA.js.map +1 -0
- package/dist/chunk-QQTXIKFT.js +163 -0
- package/dist/chunk-QQTXIKFT.js.map +1 -0
- package/dist/chunk-QU5M7KZM.js +50 -0
- package/dist/chunk-QU5M7KZM.js.map +1 -0
- package/dist/chunk-RQFJZYKH.js +160 -0
- package/dist/chunk-RQFJZYKH.js.map +1 -0
- package/dist/chunk-RWK6HLWM.js +75 -0
- package/dist/chunk-RWK6HLWM.js.map +1 -0
- package/dist/chunk-RYEEDHML.js +64 -0
- package/dist/chunk-RYEEDHML.js.map +1 -0
- package/dist/chunk-SQIJY72J.js +69 -0
- package/dist/chunk-SQIJY72J.js.map +1 -0
- package/dist/chunk-SRU4OFM3.js +135 -0
- package/dist/chunk-SRU4OFM3.js.map +1 -0
- package/dist/chunk-SZ73GYOE.js +98 -0
- package/dist/chunk-SZ73GYOE.js.map +1 -0
- package/dist/chunk-T5EBUYAB.js +160 -0
- package/dist/chunk-T5EBUYAB.js.map +1 -0
- package/dist/chunk-THTRJNHI.js +159 -0
- package/dist/chunk-THTRJNHI.js.map +1 -0
- package/dist/chunk-TQ5AJKUH.js +64 -0
- package/dist/chunk-TQ5AJKUH.js.map +1 -0
- package/dist/chunk-UGCYMUQ4.js +89 -0
- package/dist/chunk-UGCYMUQ4.js.map +1 -0
- package/dist/chunk-UK7J2BOO.js +83 -0
- package/dist/chunk-UK7J2BOO.js.map +1 -0
- package/dist/chunk-V4GNPLLT.js +69 -0
- package/dist/chunk-V4GNPLLT.js.map +1 -0
- package/dist/chunk-VKMRA55P.js +144 -0
- package/dist/chunk-VKMRA55P.js.map +1 -0
- package/dist/chunk-VLGR5PZX.js +1 -0
- package/dist/chunk-VLGR5PZX.js.map +1 -0
- package/dist/chunk-VQGBP3JY.js +50 -0
- package/dist/chunk-VQGBP3JY.js.map +1 -0
- package/dist/chunk-WQRH5YGD.js +129 -0
- package/dist/chunk-WQRH5YGD.js.map +1 -0
- package/dist/chunk-WV4WWBKN.js +69 -0
- package/dist/chunk-WV4WWBKN.js.map +1 -0
- package/dist/chunk-X2MARIQ5.js +140 -0
- package/dist/chunk-X2MARIQ5.js.map +1 -0
- package/dist/chunk-X3J2UNWS.js +69 -0
- package/dist/chunk-X3J2UNWS.js.map +1 -0
- package/dist/chunk-X67ER3JU.js +69 -0
- package/dist/chunk-X67ER3JU.js.map +1 -0
- package/dist/chunk-X732NUWY.js +50 -0
- package/dist/chunk-X732NUWY.js.map +1 -0
- package/dist/chunk-X7QZ46BZ.js +63 -0
- package/dist/chunk-X7QZ46BZ.js.map +1 -0
- package/dist/chunk-XDPD6IWK.js +89 -0
- package/dist/chunk-XDPD6IWK.js.map +1 -0
- package/dist/chunk-XKWY6ZQM.js +196 -0
- package/dist/chunk-XKWY6ZQM.js.map +1 -0
- package/dist/chunk-XTU7VQ2V.js +158 -0
- package/dist/chunk-XTU7VQ2V.js.map +1 -0
- package/dist/chunk-XW3D3GLY.js +113 -0
- package/dist/chunk-XW3D3GLY.js.map +1 -0
- package/dist/chunk-Y6BK7ABB.js +1 -0
- package/dist/chunk-Y6BK7ABB.js.map +1 -0
- package/dist/chunk-YBO2LITL.js +163 -0
- package/dist/chunk-YBO2LITL.js.map +1 -0
- package/dist/chunk-YOADPBEF.js +129 -0
- package/dist/chunk-YOADPBEF.js.map +1 -0
- package/dist/chunk-YRCJG2BQ.js +163 -0
- package/dist/chunk-YRCJG2BQ.js.map +1 -0
- package/dist/chunk-YXGSOU62.js +129 -0
- package/dist/chunk-YXGSOU62.js.map +1 -0
- package/dist/chunk-Z2XF3EO2.js +75 -0
- package/dist/chunk-Z2XF3EO2.js.map +1 -0
- package/dist/chunk-ZFEXH655.js +144 -0
- package/dist/chunk-ZFEXH655.js.map +1 -0
- package/dist/chunk-ZKLZRBDG.js +163 -0
- package/dist/chunk-ZKLZRBDG.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +419 -283
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +154 -149
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +16 -16
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +9 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +20 -20
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +22 -22
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.js +37 -37
- package/dist/molecules/date-picker/date-picker-button.js +6 -6
- package/dist/molecules/date-picker/index.js +5 -5
- package/dist/molecules/description-json-render.js +5 -5
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.js +5 -5
- package/dist/molecules/dynamic-form.js +6 -6
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +136 -0
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +2 -0
- package/dist/molecules/index.d.ts +2 -0
- package/dist/molecules/index.js +70 -66
- package/dist/molecules/learning-post.js +5 -5
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/one-on-one-guide-list.js +3 -3
- package/dist/molecules/stepper.js +4 -4
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/training-info-guideline.cjs +569 -0
- package/dist/molecules/training-info-guideline.cjs.map +1 -0
- package/dist/molecules/training-info-guideline.d.cts +13 -0
- package/dist/molecules/training-info-guideline.d.ts +13 -0
- package/dist/molecules/training-info-guideline.js +22 -0
- package/dist/molecules/training-info-guideline.js.map +1 -0
- package/dist/types/curriculumContents.type.cjs.map +1 -1
- package/dist/types/dynamic-form-schema-generated.cjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +2 -1
- package/dist/types/training-info-guideline-schema-generated.cjs +19 -0
- package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -0
- package/dist/types/training-info-guideline-schema-generated.d.cts +22 -0
- package/dist/types/training-info-guideline-schema-generated.d.ts +22 -0
- package/dist/types/training-info-guideline-schema-generated.js +2 -0
- package/dist/types/training-info-guideline-schema-generated.js.map +1 -0
- package/package.json +4 -4
- package/src/constrant/training-info-guideline.schema.json +45 -0
- package/src/molecules/index.ts +2 -1
- package/src/molecules/training-info-guideline.tsx +171 -0
- package/src/types/curriculumContents.type.ts +1 -0
- package/src/types/dynamic-form-schema-generated.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/training-info-guideline-schema-generated.ts +23 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TrainingInfoGuideline
|
|
3
|
+
} from "../chunk-5RMPQM6F.js";
|
|
4
|
+
import "../chunk-FR2GDOU2.js";
|
|
5
|
+
import "../chunk-HYITAA4J.js";
|
|
6
|
+
import "../chunk-JQ7VQ5SB.js";
|
|
7
|
+
import "../chunk-U7N2PWMO.js";
|
|
8
|
+
import "../chunk-XK6VEVOK.js";
|
|
9
|
+
import "../chunk-HF6GNDPV.js";
|
|
10
|
+
import "../chunk-25HMMI7R.js";
|
|
11
|
+
import "../chunk-ZVDAEY5Q.js";
|
|
12
|
+
import "../chunk-LQY4RKWI.js";
|
|
13
|
+
import "../chunk-EAXUQEO5.js";
|
|
14
|
+
import "../chunk-4Y5BEXVN.js";
|
|
15
|
+
import "../chunk-BESTU2AY.js";
|
|
16
|
+
import "../chunk-PMJIFLDT.js";
|
|
17
|
+
import "../chunk-LDBWASUA.js";
|
|
18
|
+
import "../chunk-CRTRMMJ7.js";
|
|
19
|
+
export {
|
|
20
|
+
TrainingInfoGuideline
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=training-info-guideline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/curriculumContents.type.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type CurriculumSectionTitleContents = ContentBaseType & {\n type?: \"sectionTitle\";\n title: string;\n [k: string]: unknown;\n};\nexport type CurriculumVideoContents = ContentBaseType & {\n type?: \"video\";\n title: string;\n url: string;\n icon?: string;\n [k: string]: unknown;\n};\nexport type CurriculumReviewContents = ContentBaseType & {\n type?: \"review\";\n title: string;\n icon?: string;\n buttonTitle?: string;\n description: string;\n questions: (\n | CurriculumReviewQuestionText\n | CurriculumReviewQuestionRadio\n | CurriculumReviewQuestionSatisfactionText\n | CurriculumReviewQuestionSatisfactionOption\n )[];\n [k: string]: unknown;\n};\nexport type CurriculumReviewQuestionText = ContentBaseType &\n QuestionBaseType & {\n type?: \"question_text\";\n minLength?: number;\n placeholder?: string;\n minLengthInfoMessage?: string;\n [k: string]: unknown;\n };\nexport type CurriculumReviewQuestionRadio = ContentBaseType &\n QuestionBaseType & {\n type?: \"question_radio\";\n options: {\n label?: string;\n value?: number;\n [k: string]: unknown;\n }[];\n correctAnswer: number;\n [k: string]: unknown;\n };\nexport type CurriculumReviewQuestionSatisfactionText = ContentBaseType & {\n type?: \"question_satisfaction_text\";\n minLength?: number;\n placeholder?: string;\n required: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n};\nexport type CurriculumReviewQuestionSatisfactionOption = ContentBaseType & {\n type?: \"question_satisfaction_option\";\n options?: {\n label?: string;\n value?: number;\n [k: string]: unknown;\n }[];\n required: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n};\nexport type CurriculumAiTrainingContents = ContentBaseType & {\n type: \"aiTraining\";\n title: string;\n description: string;\n aITrainingInfoId: string;\n aiDuration: number;\n buttonTitle?: string;\n [k: string]: unknown;\n};\nexport type CurriculumFileDownloadContents = ContentBaseType & {\n type?: \"fileDownload\";\n title: string;\n description?: string;\n files: CurriculumFileDownloadFile[];\n [k: string]: unknown;\n};\n\nexport interface CurriculumContents {\n version: number;\n list: (\n | CurriculumSectionTitleContents\n | CurriculumVideoContents\n | CurriculumReviewContents\n | CurriculumAiTrainingContents\n | CurriculumFileDownloadContents\n )[];\n satisfactionOptionMeta?: SatisfactionOptionMeta;\n satisfactionTextMeta?: SatisfactionTextMeta;\n reviewMeta?: {\n endReviewTopTitle?: string;\n endReviewDescription?: string;\n endReviewBackButtonTitle?: string;\n endReviewNextButtonTitle?: string;\n };\n}\nexport interface ContentBaseType {\n uuid: string;\n type: string;\n duration?: number;\n [k: string]: unknown;\n}\nexport interface QuestionBaseType {\n required: boolean;\n question: string;\n title: string;\n icon?: string;\n [k: string]: unknown;\n}\nexport interface CurriculumFileDownloadFile {\n name: string;\n url: string;\n}\nexport interface SatisfactionOptionMeta {\n options?: {\n label?: string;\n value?: number;\n [k: string]: unknown;\n }[];\n required?: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n}\nexport interface SatisfactionTextMeta {\n minLength?: number;\n placeholder?: string;\n required?: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/curriculumContents.type.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type CurriculumSectionTitleContents = ContentBaseType & {\n type?: \"sectionTitle\";\n title: string;\n [k: string]: unknown;\n};\nexport type CurriculumVideoContents = ContentBaseType & {\n type?: \"video\";\n title: string;\n url: string;\n icon?: string;\n [k: string]: unknown;\n};\nexport type CurriculumReviewContents = ContentBaseType & {\n type?: \"review\";\n title: string;\n icon?: string;\n buttonTitle?: string;\n description: string;\n questions: (\n | CurriculumReviewQuestionText\n | CurriculumReviewQuestionRadio\n | CurriculumReviewQuestionSatisfactionText\n | CurriculumReviewQuestionSatisfactionOption\n )[];\n [k: string]: unknown;\n};\nexport type CurriculumReviewQuestionText = ContentBaseType &\n QuestionBaseType & {\n type?: \"question_text\";\n minLength?: number;\n placeholder?: string;\n minLengthInfoMessage?: string;\n [k: string]: unknown;\n };\nexport type CurriculumReviewQuestionRadio = ContentBaseType &\n QuestionBaseType & {\n type?: \"question_radio\";\n options: {\n label?: string;\n value?: number;\n [k: string]: unknown;\n }[];\n correctAnswer: number;\n [k: string]: unknown;\n };\nexport type CurriculumReviewQuestionSatisfactionText = ContentBaseType & {\n type?: \"question_satisfaction_text\";\n minLength?: number;\n placeholder?: string;\n required: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n};\nexport type CurriculumReviewQuestionSatisfactionOption = ContentBaseType & {\n type?: \"question_satisfaction_option\";\n options?: {\n label?: string;\n value?: number;\n [k: string]: unknown;\n }[];\n required: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n};\nexport type CurriculumAiTrainingContents = ContentBaseType & {\n type: \"aiTraining\";\n title: string;\n description: string;\n aITrainingInfoId: string;\n aiDuration: number;\n buttonTitle?: string;\n [k: string]: unknown;\n};\nexport type CurriculumFileDownloadContents = ContentBaseType & {\n type?: \"fileDownload\";\n title: string;\n description?: string;\n files: CurriculumFileDownloadFile[];\n [k: string]: unknown;\n};\n\nexport interface CurriculumContents {\n version: number;\n list: (\n | CurriculumSectionTitleContents\n | CurriculumVideoContents\n | CurriculumReviewContents\n | CurriculumAiTrainingContents\n | CurriculumFileDownloadContents\n )[];\n satisfactionOptionMeta?: SatisfactionOptionMeta;\n satisfactionTextMeta?: SatisfactionTextMeta;\n reviewMeta?: {\n endReviewTopTitle?: string;\n endReviewDescription?: string;\n endReviewBackButtonTitle?: string;\n endReviewNextButtonTitle?: string;\n };\n}\nexport interface ContentBaseType {\n uuid: string;\n type: string;\n duration?: number;\n [k: string]: unknown;\n}\nexport interface QuestionBaseType {\n required: boolean;\n question: string;\n title: string;\n icon?: string;\n [k: string]: unknown;\n}\nexport interface CurriculumFileDownloadFile {\n name: string;\n url: string;\n}\nexport interface SatisfactionOptionMeta {\n options?: {\n label?: string;\n value?: number;\n [k: string]: unknown;\n }[];\n required?: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n}\nexport interface SatisfactionTextMeta {\n minLength?: number;\n placeholder?: string;\n required?: boolean;\n question?: string;\n title?: string;\n icon?: string;\n [k: string]: unknown;\n}\n\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/dynamic-form-schema-generated.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type DynamicFormFieldSchema =\n | ShortTextField\n | LongTextField\n | NumberField\n | EmailField\n | DropdownField\n | ChoiceField\n | ChoicesField\n | YesNoField;\nexport type ShortTextField = FieldBaseType &\n TextFieldCommon & {\n type: \"short_text\";\n [k: string]: unknown;\n };\nexport type LongTextField = FieldBaseType &\n TextFieldCommon & {\n type: \"long_text\";\n [k: string]: unknown;\n };\nexport type NumberField = FieldBaseType &\n TextFieldCommon & {\n type: \"number\";\n [k: string]: unknown;\n };\nexport type EmailField = FieldBaseType &\n TextFieldCommon & {\n type: \"email\";\n [k: string]: unknown;\n };\nexport type DropdownField = FieldBaseType &\n TextFieldCommon &\n OptionFieldCommon & {\n type: \"dropdown\";\n [k: string]: unknown;\n };\nexport type ChoiceField = FieldBaseType &\n OptionFieldCommon &\n OrientationFieldCommon & {\n type: \"choice\";\n [k: string]: unknown;\n };\nexport type ChoicesField = FieldBaseType &\n OptionFieldCommon &\n OrientationFieldCommon & {\n type: \"choices\";\n [k: string]: unknown;\n };\nexport type YesNoField = FieldBaseType & {\n type: \"yes_no\";\n [k: string]: unknown;\n};\n\n/**\n * JSON 스키마 for DynamicForm 컴포넌트\n */\nexport interface DynamicFormSchema {\n /**\n * 폼 필드 정의 배열\n */\n fields: DynamicFormFieldSchema[];\n [k: string]: unknown;\n}\nexport interface FieldBaseType {\n name: string;\n type: string;\n label: string;\n description?: string;\n required?: boolean;\n validation?: ValidationRule;\n [k: string]: unknown;\n}\nexport interface ValidationRule {\n min?: number;\n max?: number;\n pattern?: string;\n message?: string;\n oneOf?: unknown[];\n [k: string]: unknown;\n}\nexport interface TextFieldCommon {\n placeholder?: string;\n [k: string]: unknown;\n}\nexport interface OptionFieldCommon {\n options: FieldOption[];\n [k: string]: unknown;\n}\nexport interface FieldOption {\n label: string;\n value: string | number;\n [k: string]: unknown;\n}\nexport interface OrientationFieldCommon {\n orientation?: \"horizontal\" | \"vertical\";\n [k: string]: unknown;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/dynamic-form-schema-generated.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type DynamicFormFieldSchema =\n | ShortTextField\n | LongTextField\n | NumberField\n | EmailField\n | DropdownField\n | ChoiceField\n | ChoicesField\n | YesNoField;\nexport type ShortTextField = FieldBaseType &\n TextFieldCommon & {\n type: \"short_text\";\n [k: string]: unknown;\n };\nexport type LongTextField = FieldBaseType &\n TextFieldCommon & {\n type: \"long_text\";\n [k: string]: unknown;\n };\nexport type NumberField = FieldBaseType &\n TextFieldCommon & {\n type: \"number\";\n [k: string]: unknown;\n };\nexport type EmailField = FieldBaseType &\n TextFieldCommon & {\n type: \"email\";\n [k: string]: unknown;\n };\nexport type DropdownField = FieldBaseType &\n TextFieldCommon &\n OptionFieldCommon & {\n type: \"dropdown\";\n [k: string]: unknown;\n };\nexport type ChoiceField = FieldBaseType &\n OptionFieldCommon &\n OrientationFieldCommon & {\n type: \"choice\";\n [k: string]: unknown;\n };\nexport type ChoicesField = FieldBaseType &\n OptionFieldCommon &\n OrientationFieldCommon & {\n type: \"choices\";\n [k: string]: unknown;\n };\nexport type YesNoField = FieldBaseType & {\n type: \"yes_no\";\n [k: string]: unknown;\n};\n\n/**\n * JSON 스키마 for DynamicForm 컴포넌트\n */\nexport interface DynamicFormSchema {\n /**\n * 폼 필드 정의 배열\n */\n fields: DynamicFormFieldSchema[];\n [k: string]: unknown;\n}\nexport interface FieldBaseType {\n name: string;\n type: string;\n label: string;\n description?: string;\n required?: boolean;\n validation?: ValidationRule;\n [k: string]: unknown;\n}\nexport interface ValidationRule {\n min?: number;\n max?: number;\n pattern?: string;\n message?: string;\n oneOf?: unknown[];\n [k: string]: unknown;\n}\nexport interface TextFieldCommon {\n placeholder?: string;\n [k: string]: unknown;\n}\nexport interface OptionFieldCommon {\n options: FieldOption[];\n [k: string]: unknown;\n}\nexport interface FieldOption {\n label: string;\n value: string | number;\n [k: string]: unknown;\n}\nexport interface OrientationFieldCommon {\n orientation?: \"horizontal\" | \"vertical\";\n [k: string]: unknown;\n}\n\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from './curriculumContents.type';\nexport * from './curriculum.type';\nexport * from './dynamic-form-schema-generated';\
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from './curriculumContents.type';\nexport * from './curriculum.type';\nexport * from './dynamic-form-schema-generated';\nexport * from './training-info-guideline-schema-generated';"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ContentBaseType, CurriculumAiTrainingContents, CurriculumContents, CurriculumFileDownloadContents, CurriculumFileDownloadFile, CurriculumReviewContents, CurriculumReviewQuestionRadio, CurriculumReviewQuestionSatisfactionOption, CurriculumReviewQuestionSatisfactionText, CurriculumReviewQuestionText, CurriculumSectionTitleContents, CurriculumVideoContents, QuestionBaseType, SatisfactionOptionMeta, SatisfactionTextMeta } from './curriculumContents.type.cjs';
|
|
2
2
|
export { Curriculum, CurriculumListContents, ReviewQuestionElement } from './curriculum.type.cjs';
|
|
3
3
|
export { ChoiceField, ChoicesField, DropdownField, DynamicFormFieldSchema, DynamicFormSchema, EmailField, FieldBaseType, FieldOption, LongTextField, NumberField, OptionFieldCommon, OrientationFieldCommon, ShortTextField, TextFieldCommon, ValidationRule, YesNoField } from './dynamic-form-schema-generated.cjs';
|
|
4
|
+
export { TrainingInfoGuidelineContents, TrainingInfoGuidelineFileValue, TrainingInfoGuidelineVideoValue } from './training-info-guideline-schema-generated.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ContentBaseType, CurriculumAiTrainingContents, CurriculumContents, CurriculumFileDownloadContents, CurriculumFileDownloadFile, CurriculumReviewContents, CurriculumReviewQuestionRadio, CurriculumReviewQuestionSatisfactionOption, CurriculumReviewQuestionSatisfactionText, CurriculumReviewQuestionText, CurriculumSectionTitleContents, CurriculumVideoContents, QuestionBaseType, SatisfactionOptionMeta, SatisfactionTextMeta } from './curriculumContents.type.js';
|
|
2
2
|
export { Curriculum, CurriculumListContents, ReviewQuestionElement } from './curriculum.type.js';
|
|
3
3
|
export { ChoiceField, ChoicesField, DropdownField, DynamicFormFieldSchema, DynamicFormSchema, EmailField, FieldBaseType, FieldOption, LongTextField, NumberField, OptionFieldCommon, OrientationFieldCommon, ShortTextField, TextFieldCommon, ValidationRule, YesNoField } from './dynamic-form-schema-generated.js';
|
|
4
|
+
export { TrainingInfoGuidelineContents, TrainingInfoGuidelineFileValue, TrainingInfoGuidelineVideoValue } from './training-info-guideline-schema-generated.js';
|
package/dist/types/index.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/training-info-guideline-schema-generated.ts
|
|
17
|
+
var training_info_guideline_schema_generated_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(training_info_guideline_schema_generated_exports);
|
|
19
|
+
//# sourceMappingURL=training-info-guideline-schema-generated.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/training-info-guideline-schema-generated.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport interface TrainingInfoGuidelineContents {\n version: 2;\n values: (TrainingInfoGuidelineFileValue | TrainingInfoGuidelineVideoValue)[];\n}\nexport interface TrainingInfoGuidelineFileValue {\n type: \"file\";\n url: string;\n downloadButtonName: string;\n filename: string;\n}\nexport interface TrainingInfoGuidelineVideoValue {\n type: \"video\";\n url: string;\n videoTitle: string;\n}\n\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
interface TrainingInfoGuidelineContents {
|
|
7
|
+
version: 2;
|
|
8
|
+
values: (TrainingInfoGuidelineFileValue | TrainingInfoGuidelineVideoValue)[];
|
|
9
|
+
}
|
|
10
|
+
interface TrainingInfoGuidelineFileValue {
|
|
11
|
+
type: "file";
|
|
12
|
+
url: string;
|
|
13
|
+
downloadButtonName: string;
|
|
14
|
+
filename: string;
|
|
15
|
+
}
|
|
16
|
+
interface TrainingInfoGuidelineVideoValue {
|
|
17
|
+
type: "video";
|
|
18
|
+
url: string;
|
|
19
|
+
videoTitle: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type { TrainingInfoGuidelineContents, TrainingInfoGuidelineFileValue, TrainingInfoGuidelineVideoValue };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
interface TrainingInfoGuidelineContents {
|
|
7
|
+
version: 2;
|
|
8
|
+
values: (TrainingInfoGuidelineFileValue | TrainingInfoGuidelineVideoValue)[];
|
|
9
|
+
}
|
|
10
|
+
interface TrainingInfoGuidelineFileValue {
|
|
11
|
+
type: "file";
|
|
12
|
+
url: string;
|
|
13
|
+
downloadButtonName: string;
|
|
14
|
+
filename: string;
|
|
15
|
+
}
|
|
16
|
+
interface TrainingInfoGuidelineVideoValue {
|
|
17
|
+
type: "video";
|
|
18
|
+
url: string;
|
|
19
|
+
videoTitle: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type { TrainingInfoGuidelineContents, TrainingInfoGuidelineFileValue, TrainingInfoGuidelineVideoValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tipp/ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"ts-node": "^10.9.2",
|
|
59
59
|
"tsup": "^8.0.2",
|
|
60
60
|
"typescript": "^5.0.0",
|
|
61
|
-
"@tipp/
|
|
62
|
-
"@tipp/
|
|
61
|
+
"@tipp/typescript-config": "1.0.1",
|
|
62
|
+
"@tipp/eslint-config": "1.1.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@types/react": "*",
|
|
@@ -95,6 +95,6 @@
|
|
|
95
95
|
"lint-staged": "lint-staged ./src",
|
|
96
96
|
"test": "jest",
|
|
97
97
|
"type-check": "tsc --noEmit",
|
|
98
|
-
"parse-json-to-type": "
|
|
98
|
+
"parse-json-to-type": "node ./scripts/generate-types.mjs"
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "TrainingInfoGuidelineContents",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"version": { "const": 2 },
|
|
7
|
+
"values": {
|
|
8
|
+
"oneOf": [
|
|
9
|
+
{"type":"array",
|
|
10
|
+
"items":{
|
|
11
|
+
"oneOf": [
|
|
12
|
+
{ "$ref": "#/definitions/TrainingInfoGuidelineFileValue" },
|
|
13
|
+
{ "$ref": "#/definitions/TrainingInfoGuidelineVideoValue" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": ["version", "values"],
|
|
21
|
+
"definitions": {
|
|
22
|
+
"TrainingInfoGuidelineFileValue": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"type": { "const": "file" },
|
|
26
|
+
"url": { "type": "string" },
|
|
27
|
+
"downloadButtonName": { "type": "string" },
|
|
28
|
+
"filename": { "type": "string" }
|
|
29
|
+
},
|
|
30
|
+
"required": ["type", "url", "downloadButtonName", "filename"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"TrainingInfoGuidelineVideoValue": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"type": { "const": "video" },
|
|
37
|
+
"url": { "type": "string" },
|
|
38
|
+
"videoTitle": { "type": "string" }
|
|
39
|
+
},
|
|
40
|
+
"required": ["type", "url", "videoTitle"],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
package/src/molecules/index.ts
CHANGED
|
@@ -16,4 +16,5 @@ export * from './dynamic-form';
|
|
|
16
16
|
export * from './dynamic-field';
|
|
17
17
|
export * from './dynamic-form-response-item';
|
|
18
18
|
export * from './one-on-one-guide-list';
|
|
19
|
-
export * from './description-json-render';
|
|
19
|
+
export * from './description-json-render';
|
|
20
|
+
export * from './training-info-guideline';
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { FileTextIcon, VideoIcon } from '@radix-ui/react-icons';
|
|
3
|
+
import { AspectRatio } from '@/atoms/aspect-ratio';
|
|
4
|
+
import { Button } from '@/atoms/button';
|
|
5
|
+
import type { TrainingInfoGuidelineContents } from '@/types/training-info-guideline-schema-generated';
|
|
6
|
+
import { Dialog } from '@/atoms/dialog';
|
|
7
|
+
import { Spinner } from '@/atoms/spinner';
|
|
8
|
+
import { Box } from '@/atoms/box';
|
|
9
|
+
import { Separator } from '@/atoms/separator';
|
|
10
|
+
import { Typo } from '@/atoms/typo';
|
|
11
|
+
import { Flex } from '../atoms/flex';
|
|
12
|
+
|
|
13
|
+
export interface TrainingInfoGuidelineProps {
|
|
14
|
+
values: TrainingInfoGuidelineContents['values'];
|
|
15
|
+
onClickFileDownload: (args: { url: string; filename: string }) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function TrainingInfoGuideline({
|
|
19
|
+
values,
|
|
20
|
+
onClickFileDownload,
|
|
21
|
+
}: TrainingInfoGuidelineProps): React.ReactElement {
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
{values.map((value) => (
|
|
25
|
+
<TrainingInfoGuidelineItem
|
|
26
|
+
key={getItemKey(value)}
|
|
27
|
+
onClickFileDownload={onClickFileDownload}
|
|
28
|
+
value={value}
|
|
29
|
+
/>
|
|
30
|
+
))}
|
|
31
|
+
</>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type TrainingInfoGuidelineValue =
|
|
36
|
+
TrainingInfoGuidelineContents['values'][number];
|
|
37
|
+
|
|
38
|
+
function getItemKey(value: TrainingInfoGuidelineValue): string {
|
|
39
|
+
return value.url;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface TrainingInfoGuidelineItemProps {
|
|
43
|
+
value: TrainingInfoGuidelineValue;
|
|
44
|
+
onClickFileDownload: TrainingInfoGuidelineProps['onClickFileDownload'];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function TrainingInfoGuidelineItem({
|
|
48
|
+
value,
|
|
49
|
+
onClickFileDownload,
|
|
50
|
+
}: TrainingInfoGuidelineItemProps): React.ReactElement | null {
|
|
51
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
52
|
+
|
|
53
|
+
if (value.type === 'file') {
|
|
54
|
+
return (
|
|
55
|
+
<TrainingInfoGuidelineButton
|
|
56
|
+
description={value.filename}
|
|
57
|
+
icon={<FileTextIcon />}
|
|
58
|
+
onClick={() => {
|
|
59
|
+
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
60
|
+
}}
|
|
61
|
+
title={value.downloadButtonName}
|
|
62
|
+
/>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 차후 다른 타입 추가 시 사용
|
|
67
|
+
if (value.type === 'video') {
|
|
68
|
+
return (
|
|
69
|
+
<Dialog.Root>
|
|
70
|
+
<Dialog.Trigger>
|
|
71
|
+
<TrainingInfoGuidelineButton
|
|
72
|
+
description="영상"
|
|
73
|
+
icon={<VideoIcon />}
|
|
74
|
+
title={value.videoTitle}
|
|
75
|
+
/>
|
|
76
|
+
</Dialog.Trigger>
|
|
77
|
+
<Dialog.Content
|
|
78
|
+
height="100%"
|
|
79
|
+
maxHeight="500px"
|
|
80
|
+
maxWidth="800px"
|
|
81
|
+
title={value.videoTitle}
|
|
82
|
+
width="100%"
|
|
83
|
+
>
|
|
84
|
+
<AspectRatio ratio={16 / 9} style={{ width: '100%' }}>
|
|
85
|
+
<Flex
|
|
86
|
+
align="center"
|
|
87
|
+
justify="center"
|
|
88
|
+
style={{
|
|
89
|
+
width: '100%',
|
|
90
|
+
height: '100%',
|
|
91
|
+
backgroundColor: 'black',
|
|
92
|
+
position: 'relative',
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
95
|
+
{isLoading ? (
|
|
96
|
+
<Flex
|
|
97
|
+
align="center"
|
|
98
|
+
height="100%"
|
|
99
|
+
justify="center"
|
|
100
|
+
position="absolute"
|
|
101
|
+
style={{
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
top: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
zIndex: 1,
|
|
106
|
+
color: 'white',
|
|
107
|
+
}}
|
|
108
|
+
width="100%"
|
|
109
|
+
>
|
|
110
|
+
<Spinner size="3" style={{ width: 48, height: 48 }} />
|
|
111
|
+
</Flex>
|
|
112
|
+
) : null}
|
|
113
|
+
|
|
114
|
+
<iframe
|
|
115
|
+
allowFullScreen
|
|
116
|
+
onError={() => {
|
|
117
|
+
setIsLoading(false);
|
|
118
|
+
}} // 필요시 에러 메시지로 대체
|
|
119
|
+
onLoad={() => {
|
|
120
|
+
setIsLoading(false);
|
|
121
|
+
}}
|
|
122
|
+
src={`${value.url}?theme=light`}
|
|
123
|
+
style={{ width: '100%', height: '100%', border: 'none' }}
|
|
124
|
+
title="Curriculum Video"
|
|
125
|
+
/>
|
|
126
|
+
</Flex>
|
|
127
|
+
</AspectRatio>
|
|
128
|
+
</Dialog.Content>
|
|
129
|
+
</Dialog.Root>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
interface TrainingInfoGuidelineButtonProps {
|
|
136
|
+
icon: React.ReactNode;
|
|
137
|
+
title: string;
|
|
138
|
+
description?: string;
|
|
139
|
+
onClick?: () => void;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function TrainingInfoGuidelineButton({
|
|
143
|
+
icon,
|
|
144
|
+
title,
|
|
145
|
+
description,
|
|
146
|
+
onClick,
|
|
147
|
+
}: TrainingInfoGuidelineButtonProps): React.ReactElement {
|
|
148
|
+
return (
|
|
149
|
+
<Button
|
|
150
|
+
onClick={onClick}
|
|
151
|
+
style={{ width: '100%', height: '48px' , textAlign: 'left'}}
|
|
152
|
+
variant="outline"
|
|
153
|
+
>
|
|
154
|
+
<Flex align="center" gap="2" width="100%">
|
|
155
|
+
{icon}
|
|
156
|
+
<Separator orientation="vertical" size="2" />
|
|
157
|
+
<Box>
|
|
158
|
+
<Typo as="div">
|
|
159
|
+
{title}
|
|
160
|
+
</Typo>
|
|
161
|
+
{typeof description === 'string' && description !== '' ? (
|
|
162
|
+
<Typo variant="caption" >
|
|
163
|
+
{description}
|
|
164
|
+
</Typo>
|
|
165
|
+
) : null}
|
|
166
|
+
</Box>
|
|
167
|
+
|
|
168
|
+
</Flex>
|
|
169
|
+
</Button>
|
|
170
|
+
);
|
|
171
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface TrainingInfoGuidelineContents {
|
|
9
|
+
version: 2;
|
|
10
|
+
values: (TrainingInfoGuidelineFileValue | TrainingInfoGuidelineVideoValue)[];
|
|
11
|
+
}
|
|
12
|
+
export interface TrainingInfoGuidelineFileValue {
|
|
13
|
+
type: "file";
|
|
14
|
+
url: string;
|
|
15
|
+
downloadButtonName: string;
|
|
16
|
+
filename: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TrainingInfoGuidelineVideoValue {
|
|
19
|
+
type: "video";
|
|
20
|
+
url: string;
|
|
21
|
+
videoTitle: string;
|
|
22
|
+
}
|
|
23
|
+
|