@tipp/ui 2.10.3 → 2.10.4
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 +385 -359
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +80 -78
- package/dist/app/platform/coach-question-list.cjs +58 -35
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +30 -29
- package/dist/app/platform/contents-card.cjs +120 -97
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +30 -29
- package/dist/app/platform/curriculum-card.cjs +39 -16
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +5 -4
- package/dist/app/platform/edit-coaching-time.cjs +160 -134
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +64 -62
- package/dist/app/platform/edit-service-type.cjs +152 -126
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +64 -62
- package/dist/app/platform/goal-manage-card-edit.cjs +162 -136
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +65 -63
- package/dist/app/platform/goal-manage-card-read.cjs +88 -65
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +30 -29
- package/dist/app/platform/on-offline-radio-card.cjs +303 -277
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +64 -62
- package/dist/app/platform/report-card.cjs +61 -38
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +30 -29
- package/dist/app/platform/reservation-card.cjs +176 -150
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +65 -63
- package/dist/app/platform/session-card.cjs +205 -179
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +65 -63
- package/dist/app/platform/session-review-simple-read.cjs +59 -36
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +30 -29
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +92 -69
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +34 -33
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +69 -46
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +30 -29
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +72 -49
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +30 -29
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +58 -35
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +29 -28
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +68 -45
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +29 -28
- package/dist/app/platform/userInfos/utils.cjs +60 -37
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +29 -28
- package/dist/app/roleplay/index.cjs +459 -388
- package/dist/app/roleplay/index.cjs.map +1 -1
- package/dist/app/roleplay/index.js +76 -74
- package/dist/app/roleplay/parts/analysis-section.cjs +64 -41
- package/dist/app/roleplay/parts/analysis-section.cjs.map +1 -1
- package/dist/app/roleplay/parts/analysis-section.js +29 -28
- package/dist/app/roleplay/parts/coaching-panel.cjs +65 -42
- package/dist/app/roleplay/parts/coaching-panel.cjs.map +1 -1
- package/dist/app/roleplay/parts/coaching-panel.js +30 -29
- package/dist/app/roleplay/parts/content.cjs +385 -314
- package/dist/app/roleplay/parts/content.cjs.map +1 -1
- package/dist/app/roleplay/parts/content.js +72 -70
- package/dist/app/roleplay/parts/header.cjs +82 -59
- package/dist/app/roleplay/parts/header.cjs.map +1 -1
- package/dist/app/roleplay/parts/header.js +30 -29
- package/dist/app/roleplay/parts/score-summary.cjs +77 -54
- package/dist/app/roleplay/parts/score-summary.cjs.map +1 -1
- package/dist/app/roleplay/parts/score-summary.js +30 -29
- package/dist/app/roleplay/parts/score-trend-section.cjs +228 -157
- package/dist/app/roleplay/parts/score-trend-section.cjs.map +1 -1
- package/dist/app/roleplay/parts/score-trend-section.js +68 -66
- package/dist/app/roleplay/parts/script-transcript.cjs +73 -50
- package/dist/app/roleplay/parts/script-transcript.cjs.map +1 -1
- package/dist/app/roleplay/parts/script-transcript.js +29 -28
- package/dist/app/roleplay/parts/section-nav.cjs +94 -71
- package/dist/app/roleplay/parts/section-nav.cjs.map +1 -1
- package/dist/app/roleplay/parts/section-nav.js +29 -28
- package/dist/app/roleplay/parts/session-replay-dialog.cjs +83 -60
- package/dist/app/roleplay/parts/session-replay-dialog.cjs.map +1 -1
- package/dist/app/roleplay/parts/session-replay-dialog.js +29 -28
- package/dist/app/roleplay/parts/speech-share-bar.cjs +60 -37
- package/dist/app/roleplay/parts/speech-share-bar.cjs.map +1 -1
- package/dist/app/roleplay/parts/speech-share-bar.js +29 -28
- package/dist/app/roleplay/parts/step-detail.cjs +78 -55
- package/dist/app/roleplay/parts/step-detail.cjs.map +1 -1
- package/dist/app/roleplay/parts/step-detail.js +29 -28
- package/dist/app/roleplay/parts/step-summary.cjs +78 -55
- package/dist/app/roleplay/parts/step-summary.cjs.map +1 -1
- package/dist/app/roleplay/parts/step-summary.js +32 -31
- package/dist/app/roleplay/rp-session-detail.cjs +459 -388
- package/dist/app/roleplay/rp-session-detail.cjs.map +1 -1
- package/dist/app/roleplay/rp-session-detail.js +76 -74
- package/dist/atoms/index.cjs +82 -59
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +64 -63
- package/dist/atoms/pagination.cjs +38 -15
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +3 -2
- package/dist/chunk-2EPKY2VT.js +70 -0
- package/dist/chunk-2EPKY2VT.js.map +1 -0
- package/dist/chunk-2PPLSZ4P.js +1 -0
- package/dist/{chunk-ZQLHRK36.js → chunk-2XDAK4B7.js} +4 -4
- package/dist/{chunk-AHAGCAQR.js → chunk-3DZIX4CE.js} +7 -7
- package/dist/{chunk-QOVPEQS3.js → chunk-4GH4R4VJ.js} +4 -4
- package/dist/chunk-5DRITHNR.js +1 -0
- package/dist/{chunk-QVGQBTSJ.js → chunk-5IGBFB67.js} +10 -10
- package/dist/{chunk-5RIAIE2J.js → chunk-73PHGHPI.js} +5 -2
- package/dist/chunk-73PHGHPI.js.map +1 -0
- package/dist/{chunk-UAUA3PMP.js → chunk-74PR3ZWJ.js} +4 -4
- package/dist/{chunk-RPQWRKBW.js → chunk-AYWCLLQ2.js} +7 -7
- package/dist/{chunk-KQIUOEBS.js → chunk-C4INJWFV.js} +4 -4
- package/dist/{chunk-RBWD6IKY.js → chunk-CBYIPRND.js} +4 -4
- package/dist/{chunk-JTVBWQJW.js → chunk-CGLDFUOY.js} +4 -4
- package/dist/{chunk-K4QH4R3O.js → chunk-CUS3ORMD.js} +4 -4
- package/dist/{chunk-H533TE6M.js → chunk-D4U2ZV2A.js} +4 -4
- package/dist/{chunk-RRC4WFG3.js → chunk-DIFGHMGI.js} +2 -2
- package/dist/{chunk-EXMCCYI2.js → chunk-DPMDQA3O.js} +4 -4
- package/dist/{chunk-L4KGHM2H.js → chunk-EJXZXUD2.js} +10 -10
- package/dist/{chunk-ZIHVLMT5.js → chunk-GA6W62DO.js} +4 -4
- package/dist/{chunk-P2H3VCIB.js → chunk-HL3MGRAC.js} +4 -4
- package/dist/chunk-IAKMJR72.js +33 -0
- package/dist/chunk-IAKMJR72.js.map +1 -0
- package/dist/{chunk-6UWQKH6U.js → chunk-IHLFOJD5.js} +2 -2
- package/dist/{chunk-SX46O67F.js → chunk-ISSUGCCY.js} +4 -4
- package/dist/{chunk-3ZJVSSAA.js → chunk-KQ3ME6XY.js} +8 -8
- package/dist/{chunk-OBJA26HX.js → chunk-L7ZHSQES.js} +8 -8
- package/dist/{chunk-PBKV2YMF.js → chunk-LGILQRJM.js} +9 -9
- package/dist/{chunk-YYVSUTXO.js → chunk-LK2H4QTJ.js} +4 -4
- package/dist/{chunk-XMZYZJTH.js → chunk-N3FMP27I.js} +4 -4
- package/dist/{chunk-66SUBB2N.js → chunk-NEJCZABQ.js} +9 -9
- package/dist/{chunk-UMLYWHB2.js → chunk-NK6S7ZMB.js} +4 -4
- package/dist/{chunk-RJ7XSZ2V.js → chunk-OPIVSYLN.js} +4 -4
- package/dist/{chunk-NVBAOOAT.js → chunk-OUDDTPEN.js} +4 -4
- package/dist/{chunk-V4QYGHOJ.js → chunk-Q2FDF2AB.js} +7 -7
- package/dist/{chunk-3FVDFMKP.js → chunk-RBU2TRYY.js} +9 -9
- package/dist/{chunk-PS525SZS.js → chunk-RJ62VZ6O.js} +3 -3
- package/dist/{chunk-WJ35Y2IU.js → chunk-SQ3FYBJT.js} +2 -2
- package/dist/{chunk-2H635UNE.js → chunk-TYM6T7JT.js} +2 -2
- package/dist/{chunk-RZW6FVML.js → chunk-UCTSCSQR.js} +2 -2
- package/dist/{chunk-HNAZV4MI.js → chunk-V7KAHLW2.js} +5 -5
- package/dist/{chunk-PVDHXFLT.js → chunk-VBXZIIUA.js} +4 -4
- package/dist/{chunk-TDWMI7ZT.js → chunk-VBYXXISC.js} +5 -5
- package/dist/{chunk-77J4AZEO.js → chunk-VJREZH2Z.js} +4 -4
- package/dist/{chunk-RJN4QT5J.js → chunk-WLKK5L3P.js} +7 -7
- package/dist/{chunk-A5AZWTXV.js → chunk-WYHDQK2S.js} +7 -7
- package/dist/{chunk-54GRMFDC.js → chunk-X3TBEGPA.js} +4 -4
- package/dist/context/index.js +1 -1
- package/dist/icon.cjs +25 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -0
- package/dist/icon.d.ts +1 -0
- package/dist/icon.js +7 -3
- package/dist/icons/empty-box.cjs +90 -0
- package/dist/icons/empty-box.cjs.map +1 -0
- package/dist/icons/empty-box.d.cts +13 -0
- package/dist/icons/empty-box.d.ts +13 -0
- package/dist/icons/empty-box.js +8 -0
- package/dist/icons/empty-box.js.map +1 -0
- package/dist/icons/index.cjs +25 -0
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.d.cts +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +7 -3
- package/dist/index.cjs +959 -884
- 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 +148 -140
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +95 -72
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +11 -10
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +29 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +71 -48
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +9 -8
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +32 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +41 -18
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +33 -10
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +33 -10
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +42 -19
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +37 -14
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +153 -130
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +14 -13
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +45 -22
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +30 -7
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +171 -148
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +15 -14
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +220 -197
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +18 -17
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +33 -10
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +52 -29
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -7
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +44 -21
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +6 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +36 -13
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +3 -2
- package/dist/molecules/curriculumV2/index.cjs +264 -241
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +28 -27
- package/dist/molecules/date-picker/date-picker-button.cjs +52 -29
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +3 -2
- package/dist/molecules/date-picker/index.cjs +40 -17
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +3 -2
- package/dist/molecules/description-json-render.cjs +31 -8
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +5 -4
- package/dist/molecules/dynamic-field.js +3 -3
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +138 -115
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +6 -5
- package/dist/molecules/dynamic-form-editor-field-list-panel.js +2 -2
- package/dist/molecules/dynamic-form-editor-issues-panel.js +2 -2
- package/dist/molecules/dynamic-form-editor-preview-panel.js +6 -6
- package/dist/molecules/dynamic-form-editor.cjs +223 -200
- package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor.js +14 -13
- package/dist/molecules/dynamic-form.js +4 -4
- package/dist/molecules/empty-state.cjs +328 -0
- package/dist/molecules/empty-state.cjs.map +1 -0
- package/dist/molecules/empty-state.d.cts +21 -0
- package/dist/molecules/empty-state.d.ts +21 -0
- package/dist/molecules/empty-state.js +16 -0
- package/dist/molecules/empty-state.js.map +1 -0
- package/dist/molecules/expand-table/index.cjs +193 -58
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +7 -4
- package/dist/molecules/index.cjs +862 -789
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +2 -1
- package/dist/molecules/index.d.ts +2 -1
- package/dist/molecules/index.js +69 -64
- package/dist/molecules/learning-post.js +3 -3
- package/dist/molecules/stepper.cjs +43 -20
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +5 -4
- package/dist/molecules/tag-selector.cjs +43 -20
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +6 -5
- package/dist/molecules/time-select.cjs +28 -5
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +3 -2
- package/dist/molecules/training-info-guideline.js +1 -1
- package/dist/utils/curriculum.utils.cjs +23 -0
- package/dist/utils/curriculum.utils.cjs.map +1 -1
- package/dist/utils/curriculum.utils.js +3 -2
- package/dist/utils/get-callout-icon-component.cjs +23 -0
- package/dist/utils/get-callout-icon-component.cjs.map +1 -1
- package/dist/utils/get-callout-icon-component.js +3 -2
- package/dist/utils/index.cjs +23 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +3 -2
- package/package.json +1 -1
- package/src/icons/empty-box.tsx +29 -0
- package/src/icons/index.ts +2 -1
- package/src/molecules/empty-state.tsx +79 -0
- package/src/molecules/expand-table/index.tsx +2 -3
- package/src/molecules/index.ts +1 -0
- package/dist/chunk-5RIAIE2J.js.map +0 -1
- package/dist/chunk-JVXATVAC.js +0 -1
- package/dist/chunk-SYMOHU2B.js +0 -1
- /package/dist/{chunk-JVXATVAC.js.map → chunk-2PPLSZ4P.js.map} +0 -0
- /package/dist/{chunk-ZQLHRK36.js.map → chunk-2XDAK4B7.js.map} +0 -0
- /package/dist/{chunk-AHAGCAQR.js.map → chunk-3DZIX4CE.js.map} +0 -0
- /package/dist/{chunk-QOVPEQS3.js.map → chunk-4GH4R4VJ.js.map} +0 -0
- /package/dist/{chunk-SYMOHU2B.js.map → chunk-5DRITHNR.js.map} +0 -0
- /package/dist/{chunk-QVGQBTSJ.js.map → chunk-5IGBFB67.js.map} +0 -0
- /package/dist/{chunk-UAUA3PMP.js.map → chunk-74PR3ZWJ.js.map} +0 -0
- /package/dist/{chunk-RPQWRKBW.js.map → chunk-AYWCLLQ2.js.map} +0 -0
- /package/dist/{chunk-KQIUOEBS.js.map → chunk-C4INJWFV.js.map} +0 -0
- /package/dist/{chunk-RBWD6IKY.js.map → chunk-CBYIPRND.js.map} +0 -0
- /package/dist/{chunk-JTVBWQJW.js.map → chunk-CGLDFUOY.js.map} +0 -0
- /package/dist/{chunk-K4QH4R3O.js.map → chunk-CUS3ORMD.js.map} +0 -0
- /package/dist/{chunk-H533TE6M.js.map → chunk-D4U2ZV2A.js.map} +0 -0
- /package/dist/{chunk-RRC4WFG3.js.map → chunk-DIFGHMGI.js.map} +0 -0
- /package/dist/{chunk-EXMCCYI2.js.map → chunk-DPMDQA3O.js.map} +0 -0
- /package/dist/{chunk-L4KGHM2H.js.map → chunk-EJXZXUD2.js.map} +0 -0
- /package/dist/{chunk-ZIHVLMT5.js.map → chunk-GA6W62DO.js.map} +0 -0
- /package/dist/{chunk-P2H3VCIB.js.map → chunk-HL3MGRAC.js.map} +0 -0
- /package/dist/{chunk-6UWQKH6U.js.map → chunk-IHLFOJD5.js.map} +0 -0
- /package/dist/{chunk-SX46O67F.js.map → chunk-ISSUGCCY.js.map} +0 -0
- /package/dist/{chunk-3ZJVSSAA.js.map → chunk-KQ3ME6XY.js.map} +0 -0
- /package/dist/{chunk-OBJA26HX.js.map → chunk-L7ZHSQES.js.map} +0 -0
- /package/dist/{chunk-PBKV2YMF.js.map → chunk-LGILQRJM.js.map} +0 -0
- /package/dist/{chunk-YYVSUTXO.js.map → chunk-LK2H4QTJ.js.map} +0 -0
- /package/dist/{chunk-XMZYZJTH.js.map → chunk-N3FMP27I.js.map} +0 -0
- /package/dist/{chunk-66SUBB2N.js.map → chunk-NEJCZABQ.js.map} +0 -0
- /package/dist/{chunk-UMLYWHB2.js.map → chunk-NK6S7ZMB.js.map} +0 -0
- /package/dist/{chunk-RJ7XSZ2V.js.map → chunk-OPIVSYLN.js.map} +0 -0
- /package/dist/{chunk-NVBAOOAT.js.map → chunk-OUDDTPEN.js.map} +0 -0
- /package/dist/{chunk-V4QYGHOJ.js.map → chunk-Q2FDF2AB.js.map} +0 -0
- /package/dist/{chunk-3FVDFMKP.js.map → chunk-RBU2TRYY.js.map} +0 -0
- /package/dist/{chunk-PS525SZS.js.map → chunk-RJ62VZ6O.js.map} +0 -0
- /package/dist/{chunk-WJ35Y2IU.js.map → chunk-SQ3FYBJT.js.map} +0 -0
- /package/dist/{chunk-2H635UNE.js.map → chunk-TYM6T7JT.js.map} +0 -0
- /package/dist/{chunk-RZW6FVML.js.map → chunk-UCTSCSQR.js.map} +0 -0
- /package/dist/{chunk-HNAZV4MI.js.map → chunk-V7KAHLW2.js.map} +0 -0
- /package/dist/{chunk-PVDHXFLT.js.map → chunk-VBXZIIUA.js.map} +0 -0
- /package/dist/{chunk-TDWMI7ZT.js.map → chunk-VBYXXISC.js.map} +0 -0
- /package/dist/{chunk-77J4AZEO.js.map → chunk-VJREZH2Z.js.map} +0 -0
- /package/dist/{chunk-RJN4QT5J.js.map → chunk-WLKK5L3P.js.map} +0 -0
- /package/dist/{chunk-A5AZWTXV.js.map → chunk-WYHDQK2S.js.map} +0 -0
- /package/dist/{chunk-54GRMFDC.js.map → chunk-X3TBEGPA.js.map} +0 -0
package/dist/molecules/index.cjs
CHANGED
|
@@ -94,6 +94,7 @@ __export(molecules_exports, {
|
|
|
94
94
|
DynamicFormEditor: () => DynamicFormEditor,
|
|
95
95
|
DynamicFormField: () => DynamicFormField,
|
|
96
96
|
DynamicFormResponseItem: () => DynamicFormResponseItem,
|
|
97
|
+
EmptyState: () => EmptyState,
|
|
97
98
|
ExpandTable: () => ExpandTable,
|
|
98
99
|
ForceRefresh: () => ForceRefresh,
|
|
99
100
|
GhostPost: () => GhostPost,
|
|
@@ -114,8 +115,8 @@ module.exports = __toCommonJS(molecules_exports);
|
|
|
114
115
|
|
|
115
116
|
// src/molecules/expand-table/index.tsx
|
|
116
117
|
var import_react_table2 = require("@tanstack/react-table");
|
|
117
|
-
var
|
|
118
|
-
var
|
|
118
|
+
var import_react7 = require("react");
|
|
119
|
+
var import_themes7 = require("@radix-ui/themes");
|
|
119
120
|
|
|
120
121
|
// src/atoms/flex.tsx
|
|
121
122
|
var import_themes = require("@radix-ui/themes");
|
|
@@ -712,6 +713,29 @@ var HeadsetIcon = React15.forwardRef(
|
|
|
712
713
|
);
|
|
713
714
|
HeadsetIcon.displayName = "HeadsetIcon";
|
|
714
715
|
|
|
716
|
+
// src/icons/empty-box.tsx
|
|
717
|
+
var React16 = __toESM(require("react"), 1);
|
|
718
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
719
|
+
var EmptyBoxIcon = React16.forwardRef(
|
|
720
|
+
(_a, forwardedRef) => {
|
|
721
|
+
var _b = _a, { color = "currentColor", width = 120, height = 120 } = _b, props = __objRest(_b, ["color", "width", "height"]);
|
|
722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
723
|
+
"svg",
|
|
724
|
+
__spreadProps(__spreadValues({
|
|
725
|
+
fill: color,
|
|
726
|
+
height,
|
|
727
|
+
viewBox: "0 0 462.035 462.035",
|
|
728
|
+
width,
|
|
729
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
730
|
+
}, props), {
|
|
731
|
+
ref: forwardedRef,
|
|
732
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M457.83,158.441c-0.021-0.028-0.033-0.058-0.057-0.087l-50.184-62.48c-0.564-0.701-1.201-1.305-1.879-1.845c-2.16-2.562-5.355-4.225-8.967-4.225H65.292c-3.615,0-6.804,1.661-8.965,4.225c-0.678,0.54-1.316,1.138-1.885,1.845l-50.178,62.48c-0.023,0.029-0.034,0.059-0.057,0.087C1.655,160.602,0,163.787,0,167.39v193.07c0,6.5,5.27,11.771,11.77,11.771h438.496c6.5,0,11.77-5.271,11.77-11.771V167.39C462.037,163.787,460.381,160.602,457.83,158.441z M408.516,134.615l16.873,21.005h-16.873V134.615z M384.975,113.345v42.274H296.84c-2.514,0-4.955,0.805-6.979,2.293l-58.837,43.299l-58.849-43.305c-2.023-1.482-4.466-2.287-6.978-2.287H77.061v-42.274H384.975z M53.523,155.62H36.65l16.873-21.005V155.62z M438.498,348.69H23.54V179.16h137.796l62.711,46.148c4.15,3.046,9.805,3.052,13.954-0.005l62.698-46.144h137.799V348.69L438.498,348.69z" })
|
|
733
|
+
})
|
|
734
|
+
);
|
|
735
|
+
}
|
|
736
|
+
);
|
|
737
|
+
EmptyBoxIcon.displayName = "EmptyBoxIcon";
|
|
738
|
+
|
|
715
739
|
// src/atoms/icon-button.tsx
|
|
716
740
|
var import_react = require("react");
|
|
717
741
|
var import_clsx = require("clsx");
|
|
@@ -772,7 +796,7 @@ var resolveColor = (color) => {
|
|
|
772
796
|
};
|
|
773
797
|
|
|
774
798
|
// src/atoms/icon-button.tsx
|
|
775
|
-
var
|
|
799
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
776
800
|
var IconButton = (0, import_react.forwardRef)(
|
|
777
801
|
(props, ref) => {
|
|
778
802
|
const _a = props, { size, style, variant, color } = _a, restProps = __objRest(_a, ["size", "style", "variant", "color"]);
|
|
@@ -792,7 +816,7 @@ var IconButton = (0, import_react.forwardRef)(
|
|
|
792
816
|
transparent: variant === "transparent"
|
|
793
817
|
});
|
|
794
818
|
}, [props.className, colorClassName, variant]);
|
|
795
|
-
return /* @__PURE__ */ (0,
|
|
819
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
796
820
|
import_themes2.IconButton,
|
|
797
821
|
__spreadProps(__spreadValues({
|
|
798
822
|
style,
|
|
@@ -848,7 +872,7 @@ var MONO_STYLE = {
|
|
|
848
872
|
};
|
|
849
873
|
|
|
850
874
|
// src/atoms/typo.tsx
|
|
851
|
-
var
|
|
875
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
852
876
|
var Typo = (0, import_react2.forwardRef)(
|
|
853
877
|
(props, ref) => {
|
|
854
878
|
const _a = props, {
|
|
@@ -892,7 +916,7 @@ var Typo = (0, import_react2.forwardRef)(
|
|
|
892
916
|
}
|
|
893
917
|
});
|
|
894
918
|
}, [size, variant]);
|
|
895
|
-
return /* @__PURE__ */ (0,
|
|
919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
896
920
|
import_themes3.Text,
|
|
897
921
|
__spreadProps(__spreadValues({}, rest), {
|
|
898
922
|
className: (0, import_clsx2.clsx)(colorClassName, className),
|
|
@@ -908,7 +932,7 @@ var Typo = (0, import_react2.forwardRef)(
|
|
|
908
932
|
Typo.displayName = "Typo";
|
|
909
933
|
|
|
910
934
|
// src/atoms/pagination.tsx
|
|
911
|
-
var
|
|
935
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
912
936
|
function Pagination(props) {
|
|
913
937
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
914
938
|
const isControlled = props.page !== void 0;
|
|
@@ -977,7 +1001,7 @@ function Pagination(props) {
|
|
|
977
1001
|
const { color: resolvedColor, className: colorClassName } = resolveColor(
|
|
978
1002
|
props.color
|
|
979
1003
|
);
|
|
980
|
-
return /* @__PURE__ */ (0,
|
|
1004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
981
1005
|
import_themes.Flex,
|
|
982
1006
|
{
|
|
983
1007
|
align: "center",
|
|
@@ -985,18 +1009,18 @@ function Pagination(props) {
|
|
|
985
1009
|
className: colorClassName ? `tipp-pagination ${colorClassName}` : "tipp-pagination",
|
|
986
1010
|
"data-accent-color": resolvedColor,
|
|
987
1011
|
children: [
|
|
988
|
-
/* @__PURE__ */ (0,
|
|
1012
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
989
1013
|
IconButton,
|
|
990
1014
|
__spreadProps(__spreadValues({
|
|
991
1015
|
disabled: !doublePrev,
|
|
992
1016
|
onClick: onClickDoublePrev
|
|
993
1017
|
}, moveButtonProps), {
|
|
994
|
-
children: /* @__PURE__ */ (0,
|
|
1018
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_icons.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
995
1019
|
})
|
|
996
1020
|
),
|
|
997
|
-
/* @__PURE__ */ (0,
|
|
998
|
-
/* @__PURE__ */ (0,
|
|
999
|
-
return /* @__PURE__ */ (0,
|
|
1021
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
1022
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
1023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1000
1024
|
"button",
|
|
1001
1025
|
{
|
|
1002
1026
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -1004,19 +1028,19 @@ function Pagination(props) {
|
|
|
1004
1028
|
goToPage(item);
|
|
1005
1029
|
},
|
|
1006
1030
|
type: "button",
|
|
1007
|
-
children: /* @__PURE__ */ (0,
|
|
1031
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typo, { variant: "body", children: item })
|
|
1008
1032
|
},
|
|
1009
1033
|
item
|
|
1010
1034
|
);
|
|
1011
1035
|
}) }),
|
|
1012
|
-
/* @__PURE__ */ (0,
|
|
1013
|
-
/* @__PURE__ */ (0,
|
|
1036
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1014
1038
|
IconButton,
|
|
1015
1039
|
__spreadProps(__spreadValues({
|
|
1016
1040
|
disabled: !doubleNext,
|
|
1017
1041
|
onClick: onClickDoubleNext
|
|
1018
1042
|
}, moveButtonProps), {
|
|
1019
|
-
children: /* @__PURE__ */ (0,
|
|
1043
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_icons.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
1020
1044
|
})
|
|
1021
1045
|
)
|
|
1022
1046
|
]
|
|
@@ -1027,41 +1051,153 @@ function Pagination(props) {
|
|
|
1027
1051
|
// src/atoms/spinner.tsx
|
|
1028
1052
|
var import_themes4 = require("@radix-ui/themes");
|
|
1029
1053
|
|
|
1054
|
+
// src/atoms/heading.tsx
|
|
1055
|
+
var import_themes5 = require("@radix-ui/themes");
|
|
1056
|
+
var import_clsx3 = require("clsx");
|
|
1057
|
+
var import_react4 = require("react");
|
|
1058
|
+
var import_themes6 = require("@radix-ui/themes");
|
|
1059
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1060
|
+
var mapVariant = (variant) => {
|
|
1061
|
+
switch (variant) {
|
|
1062
|
+
case "heading1":
|
|
1063
|
+
return "7";
|
|
1064
|
+
case "heading2":
|
|
1065
|
+
return "6";
|
|
1066
|
+
case "heading3":
|
|
1067
|
+
return "5";
|
|
1068
|
+
case "heading4":
|
|
1069
|
+
return "4";
|
|
1070
|
+
case "heading5":
|
|
1071
|
+
return "3";
|
|
1072
|
+
default:
|
|
1073
|
+
return void 0;
|
|
1074
|
+
}
|
|
1075
|
+
};
|
|
1076
|
+
function Heading2(props) {
|
|
1077
|
+
const _a = props, {
|
|
1078
|
+
size,
|
|
1079
|
+
children,
|
|
1080
|
+
variant,
|
|
1081
|
+
color,
|
|
1082
|
+
className,
|
|
1083
|
+
mono,
|
|
1084
|
+
clamp,
|
|
1085
|
+
style
|
|
1086
|
+
} = _a, rest = __objRest(_a, [
|
|
1087
|
+
"size",
|
|
1088
|
+
"children",
|
|
1089
|
+
"variant",
|
|
1090
|
+
"color",
|
|
1091
|
+
"className",
|
|
1092
|
+
"mono",
|
|
1093
|
+
"clamp",
|
|
1094
|
+
"style"
|
|
1095
|
+
]);
|
|
1096
|
+
const { color: radixColor, className: colorClassName } = (0, import_react4.useMemo)(
|
|
1097
|
+
() => resolveColor(color),
|
|
1098
|
+
[color]
|
|
1099
|
+
);
|
|
1100
|
+
const radixSize = (0, import_react4.useMemo)(() => {
|
|
1101
|
+
return variant ? mapWithResponsive({
|
|
1102
|
+
value: variant,
|
|
1103
|
+
mapFn: mapVariant
|
|
1104
|
+
}) : size;
|
|
1105
|
+
}, [size, variant]);
|
|
1106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1107
|
+
import_themes5.Heading,
|
|
1108
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
1109
|
+
className: (0, import_clsx3.clsx)(colorClassName, className),
|
|
1110
|
+
color: radixColor,
|
|
1111
|
+
size: radixSize,
|
|
1112
|
+
style: __spreadValues(__spreadValues(__spreadValues({}, mono ? MONO_STYLE : null), clamp ? clampStyle(clamp) : null), style),
|
|
1113
|
+
children
|
|
1114
|
+
})
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
// src/molecules/empty-state.tsx
|
|
1119
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1120
|
+
var ICON_SIZE = {
|
|
1121
|
+
illustration: 120,
|
|
1122
|
+
compact: 56
|
|
1123
|
+
};
|
|
1124
|
+
function EmptyState(_a) {
|
|
1125
|
+
var _b = _a, {
|
|
1126
|
+
size = "illustration",
|
|
1127
|
+
heading,
|
|
1128
|
+
body,
|
|
1129
|
+
icon
|
|
1130
|
+
} = _b, flexProps = __objRest(_b, [
|
|
1131
|
+
"size",
|
|
1132
|
+
"heading",
|
|
1133
|
+
"body",
|
|
1134
|
+
"icon"
|
|
1135
|
+
]);
|
|
1136
|
+
const isCompact = size === "compact";
|
|
1137
|
+
const iconSize = ICON_SIZE[size];
|
|
1138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1139
|
+
import_themes.Flex,
|
|
1140
|
+
__spreadProps(__spreadValues({
|
|
1141
|
+
align: "center",
|
|
1142
|
+
direction: "column",
|
|
1143
|
+
gap: isCompact ? "2" : "3",
|
|
1144
|
+
justify: "center",
|
|
1145
|
+
py: isCompact ? "5" : "9",
|
|
1146
|
+
width: "100%"
|
|
1147
|
+
}, flexProps), {
|
|
1148
|
+
children: [
|
|
1149
|
+
icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1150
|
+
EmptyBoxIcon,
|
|
1151
|
+
{
|
|
1152
|
+
color: "var(--gray-8)",
|
|
1153
|
+
height: iconSize,
|
|
1154
|
+
width: iconSize
|
|
1155
|
+
}
|
|
1156
|
+
),
|
|
1157
|
+
heading || body ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes.Flex, { align: "center", direction: "column", gap: "1", children: [
|
|
1158
|
+
heading ? isCompact ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { color: "gray", variant: "subtitle", children: heading }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Heading2, { color: "gray", variant: "heading5", children: heading }) : null,
|
|
1159
|
+
body ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { color: "gray", variant: isCompact ? "caption" : "body", children: body }) : null
|
|
1160
|
+
] }) : null
|
|
1161
|
+
]
|
|
1162
|
+
})
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1030
1166
|
// src/molecules/expand-table/row.tsx
|
|
1031
1167
|
var import_react_table = require("@tanstack/react-table");
|
|
1032
|
-
var
|
|
1168
|
+
var import_react6 = require("react");
|
|
1033
1169
|
|
|
1034
1170
|
// src/atoms/collapse.tsx
|
|
1035
|
-
var
|
|
1036
|
-
var
|
|
1171
|
+
var import_react5 = require("react");
|
|
1172
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1037
1173
|
function Collapse(props) {
|
|
1038
1174
|
const { children, closedHeight = "0" } = props;
|
|
1039
|
-
const [open, setOpen] = (0,
|
|
1175
|
+
const [open, setOpen] = (0, import_react5.useState)(() => {
|
|
1040
1176
|
return props.open || props.defaultOpen || false;
|
|
1041
1177
|
});
|
|
1042
|
-
(0,
|
|
1178
|
+
(0, import_react5.useEffect)(() => {
|
|
1043
1179
|
if (props.open === void 0) return;
|
|
1044
1180
|
setOpen(props.open);
|
|
1045
1181
|
}, [props.open]);
|
|
1046
|
-
const ref = (0,
|
|
1047
|
-
(0,
|
|
1182
|
+
const ref = (0, import_react5.useRef)(null);
|
|
1183
|
+
(0, import_react5.useEffect)(() => {
|
|
1048
1184
|
if (!ref.current) return;
|
|
1049
1185
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
1050
1186
|
}, [closedHeight, open]);
|
|
1051
|
-
return /* @__PURE__ */ (0,
|
|
1187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "tipp-collapse", ref, children });
|
|
1052
1188
|
}
|
|
1053
1189
|
|
|
1054
1190
|
// src/molecules/expand-table/row.tsx
|
|
1055
|
-
var
|
|
1191
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1056
1192
|
function Row(props) {
|
|
1057
1193
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1058
|
-
const [open, setOpen] = (0,
|
|
1059
|
-
const onClickRow = (0,
|
|
1194
|
+
const [open, setOpen] = (0, import_react6.useState)(false);
|
|
1195
|
+
const onClickRow = (0, import_react6.useCallback)(() => {
|
|
1060
1196
|
var _a;
|
|
1061
1197
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1062
1198
|
setOpen((prev) => !prev);
|
|
1063
1199
|
}, [props, row.original]);
|
|
1064
|
-
const rowClassName = (0,
|
|
1200
|
+
const rowClassName = (0, import_react6.useMemo)(() => {
|
|
1065
1201
|
const baseCls = ["tr-wrapper"];
|
|
1066
1202
|
if (ExpandComp) {
|
|
1067
1203
|
baseCls.push("expandable");
|
|
@@ -1071,8 +1207,8 @@ function Row(props) {
|
|
|
1071
1207
|
}
|
|
1072
1208
|
return baseCls.join(" ");
|
|
1073
1209
|
}, [ExpandComp, props.onRowClick]);
|
|
1074
|
-
return /* @__PURE__ */ (0,
|
|
1075
|
-
/* @__PURE__ */ (0,
|
|
1210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: rowClassName, children: [
|
|
1211
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1076
1212
|
"button",
|
|
1077
1213
|
{
|
|
1078
1214
|
className: "tr",
|
|
@@ -1085,7 +1221,7 @@ function Row(props) {
|
|
|
1085
1221
|
var _a, _b, _c;
|
|
1086
1222
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
1087
1223
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
1088
|
-
return /* @__PURE__ */ (0,
|
|
1224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1089
1225
|
"div",
|
|
1090
1226
|
{
|
|
1091
1227
|
className: "td",
|
|
@@ -1096,7 +1232,7 @@ function Row(props) {
|
|
|
1096
1232
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
1097
1233
|
children: [
|
|
1098
1234
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
1099
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1235
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1100
1236
|
cell.column.columnDef.meta.OpenBtn,
|
|
1101
1237
|
{
|
|
1102
1238
|
data: row.original,
|
|
@@ -1112,12 +1248,12 @@ function Row(props) {
|
|
|
1112
1248
|
},
|
|
1113
1249
|
`tr_${row.id}`
|
|
1114
1250
|
),
|
|
1115
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1251
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ExpandComp, { row }) }) }) : null
|
|
1116
1252
|
] }, `tr-wrapper_${row.id}`);
|
|
1117
1253
|
}
|
|
1118
1254
|
|
|
1119
1255
|
// src/molecules/expand-table/index.tsx
|
|
1120
|
-
var
|
|
1256
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1121
1257
|
var sortButtonColorMapper = {
|
|
1122
1258
|
card: {
|
|
1123
1259
|
selected: "var(--iris-10)",
|
|
@@ -1154,18 +1290,18 @@ function ExpandTable(props) {
|
|
|
1154
1290
|
slim = false
|
|
1155
1291
|
} = props;
|
|
1156
1292
|
const defaultAlign = "left";
|
|
1157
|
-
const [pagination, setPagination] = (0,
|
|
1293
|
+
const [pagination, setPagination] = (0, import_react7.useState)({
|
|
1158
1294
|
pageIndex: pageIndex || 0,
|
|
1159
1295
|
pageSize: pageSize || 9999
|
|
1160
1296
|
});
|
|
1161
|
-
(0,
|
|
1297
|
+
(0, import_react7.useEffect)(() => {
|
|
1162
1298
|
setPagination((prev) => {
|
|
1163
1299
|
const next = pageIndex;
|
|
1164
1300
|
if (prev.pageIndex === next) return prev;
|
|
1165
1301
|
return __spreadProps(__spreadValues({}, prev), { pageIndex: next });
|
|
1166
1302
|
});
|
|
1167
1303
|
}, [pageIndex]);
|
|
1168
|
-
const [sorting, setSorting] = (0,
|
|
1304
|
+
const [sorting, setSorting] = (0, import_react7.useState)([]);
|
|
1169
1305
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
1170
1306
|
data: data || [],
|
|
1171
1307
|
columns,
|
|
@@ -1179,7 +1315,7 @@ function ExpandTable(props) {
|
|
|
1179
1315
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
1180
1316
|
onPaginationChange: setPagination
|
|
1181
1317
|
});
|
|
1182
|
-
const gridTemplateColumns = (0,
|
|
1318
|
+
const gridTemplateColumns = (0, import_react7.useMemo)(() => {
|
|
1183
1319
|
return columns.map((col) => {
|
|
1184
1320
|
var _a;
|
|
1185
1321
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
|
|
@@ -1187,7 +1323,7 @@ function ExpandTable(props) {
|
|
|
1187
1323
|
}).join(" ");
|
|
1188
1324
|
}, [columns]);
|
|
1189
1325
|
const rowModels = getRowModel();
|
|
1190
|
-
const onChangePagination = (0,
|
|
1326
|
+
const onChangePagination = (0, import_react7.useCallback)(
|
|
1191
1327
|
(page) => {
|
|
1192
1328
|
const idx = page - 1;
|
|
1193
1329
|
setPageIndex(idx);
|
|
@@ -1195,10 +1331,10 @@ function ExpandTable(props) {
|
|
|
1195
1331
|
},
|
|
1196
1332
|
[setPageIndex, onPageChange]
|
|
1197
1333
|
);
|
|
1198
|
-
const helpCompRender = (0,
|
|
1334
|
+
const helpCompRender = (0, import_react7.useCallback)(
|
|
1199
1335
|
(rowLength) => {
|
|
1200
1336
|
if (isLoading) {
|
|
1201
|
-
return /* @__PURE__ */ (0,
|
|
1337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1202
1338
|
import_themes.Flex,
|
|
1203
1339
|
{
|
|
1204
1340
|
align: "center",
|
|
@@ -1206,24 +1342,24 @@ function ExpandTable(props) {
|
|
|
1206
1342
|
justify: "center",
|
|
1207
1343
|
p: "5",
|
|
1208
1344
|
width: "100%",
|
|
1209
|
-
children: /* @__PURE__ */ (0,
|
|
1345
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes4.Spinner, {})
|
|
1210
1346
|
}
|
|
1211
1347
|
);
|
|
1212
1348
|
}
|
|
1213
1349
|
if (rowLength === 0) {
|
|
1214
|
-
return /* @__PURE__ */ (0,
|
|
1350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(EmptyState, { heading: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4", size: "compact" }) }) }, "expand_placeholder");
|
|
1215
1351
|
}
|
|
1216
1352
|
return null;
|
|
1217
1353
|
},
|
|
1218
1354
|
[isLoading, placeholder]
|
|
1219
1355
|
);
|
|
1220
|
-
const pageCount = (0,
|
|
1356
|
+
const pageCount = (0, import_react7.useMemo)(() => {
|
|
1221
1357
|
if (!data) return 0;
|
|
1222
1358
|
return Math.ceil(data.length / pageSize);
|
|
1223
1359
|
}, [data, pageSize]);
|
|
1224
|
-
return /* @__PURE__ */ (0,
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1226
|
-
/* @__PURE__ */ (0,
|
|
1360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: `expand-table-wrapper ${variant}${slim ? " slim" : ""}`, children: [
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1362
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1227
1363
|
"div",
|
|
1228
1364
|
{
|
|
1229
1365
|
className: "tr",
|
|
@@ -1234,36 +1370,36 @@ function ExpandTable(props) {
|
|
|
1234
1370
|
const sortedState = header.column.getIsSorted();
|
|
1235
1371
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1236
1372
|
if (sortable) {
|
|
1237
|
-
return /* @__PURE__ */ (0,
|
|
1373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1238
1374
|
"button",
|
|
1239
1375
|
{
|
|
1240
1376
|
onClick: header.column.getToggleSortingHandler(),
|
|
1241
1377
|
style: { cursor: "pointer" },
|
|
1242
1378
|
type: "button",
|
|
1243
1379
|
children: [
|
|
1244
|
-
/* @__PURE__ */ (0,
|
|
1380
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1245
1381
|
header.column.columnDef.header,
|
|
1246
1382
|
header.getContext()
|
|
1247
1383
|
) }),
|
|
1248
|
-
/* @__PURE__ */ (0,
|
|
1384
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1249
1385
|
import_themes.Flex,
|
|
1250
1386
|
{
|
|
1251
1387
|
direction: "column",
|
|
1252
1388
|
style: { marginLeft: "var(--space-2)" },
|
|
1253
1389
|
children: [
|
|
1254
|
-
sortedState === false && /* @__PURE__ */ (0,
|
|
1390
|
+
sortedState === false && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1255
1391
|
TriangleArrowDownIcon,
|
|
1256
1392
|
{
|
|
1257
1393
|
color: sortButtonColorMapper[variant].unselected
|
|
1258
1394
|
}
|
|
1259
1395
|
),
|
|
1260
|
-
sortedState === "asc" && /* @__PURE__ */ (0,
|
|
1396
|
+
sortedState === "asc" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1261
1397
|
TriangleArrowUpIcon,
|
|
1262
1398
|
{
|
|
1263
1399
|
color: sortButtonColorMapper[variant].selected
|
|
1264
1400
|
}
|
|
1265
1401
|
),
|
|
1266
|
-
sortedState === "desc" && /* @__PURE__ */ (0,
|
|
1402
|
+
sortedState === "desc" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1267
1403
|
TriangleArrowDownIcon,
|
|
1268
1404
|
{
|
|
1269
1405
|
color: sortButtonColorMapper[variant].selected
|
|
@@ -1276,7 +1412,7 @@ function ExpandTable(props) {
|
|
|
1276
1412
|
}
|
|
1277
1413
|
) }, header.id);
|
|
1278
1414
|
}
|
|
1279
|
-
return /* @__PURE__ */ (0,
|
|
1415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1280
1416
|
header.column.columnDef.header,
|
|
1281
1417
|
header.getContext()
|
|
1282
1418
|
) }) }, header.id);
|
|
@@ -1284,8 +1420,8 @@ function ExpandTable(props) {
|
|
|
1284
1420
|
},
|
|
1285
1421
|
headerGroup.id
|
|
1286
1422
|
)) }),
|
|
1287
|
-
/* @__PURE__ */ (0,
|
|
1288
|
-
return /* @__PURE__ */ (0,
|
|
1423
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes7.ScrollArea, { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1289
1425
|
Row,
|
|
1290
1426
|
{
|
|
1291
1427
|
ExpandComp,
|
|
@@ -1300,7 +1436,7 @@ function ExpandTable(props) {
|
|
|
1300
1436
|
);
|
|
1301
1437
|
}) })
|
|
1302
1438
|
] }),
|
|
1303
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
1439
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes.Flex, { justify: "end", pt: "4", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1304
1440
|
Pagination,
|
|
1305
1441
|
{
|
|
1306
1442
|
count: pageCount,
|
|
@@ -1313,9 +1449,9 @@ function ExpandTable(props) {
|
|
|
1313
1449
|
}
|
|
1314
1450
|
|
|
1315
1451
|
// src/atoms/button.tsx
|
|
1316
|
-
var
|
|
1317
|
-
var
|
|
1318
|
-
var
|
|
1452
|
+
var import_react8 = require("react");
|
|
1453
|
+
var import_themes8 = require("@radix-ui/themes");
|
|
1454
|
+
var import_clsx4 = require("clsx");
|
|
1319
1455
|
|
|
1320
1456
|
// src/utils/convert-button-size.ts
|
|
1321
1457
|
var convertSizeStr2 = (size) => {
|
|
@@ -1349,28 +1485,28 @@ var convertSize2 = (size) => {
|
|
|
1349
1485
|
};
|
|
1350
1486
|
|
|
1351
1487
|
// src/atoms/button.tsx
|
|
1352
|
-
var
|
|
1353
|
-
var Button = (0,
|
|
1488
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1489
|
+
var Button = (0, import_react8.forwardRef)(
|
|
1354
1490
|
(props, ref) => {
|
|
1355
1491
|
const _a = props, { size, style, variant, color } = _a, restProps = __objRest(_a, ["size", "style", "variant", "color"]);
|
|
1356
|
-
const radixSize = (0,
|
|
1492
|
+
const radixSize = (0, import_react8.useMemo)(() => {
|
|
1357
1493
|
return convertSize2(size);
|
|
1358
1494
|
}, [size]);
|
|
1359
|
-
const radixVariant = (0,
|
|
1495
|
+
const radixVariant = (0, import_react8.useMemo)(() => {
|
|
1360
1496
|
if (variant === "transparent") return "ghost";
|
|
1361
1497
|
return variant;
|
|
1362
1498
|
}, [variant]);
|
|
1363
|
-
const { color: radixColor, className: colorClassName } = (0,
|
|
1499
|
+
const { color: radixColor, className: colorClassName } = (0, import_react8.useMemo)(
|
|
1364
1500
|
() => resolveColor(color),
|
|
1365
1501
|
[color]
|
|
1366
1502
|
);
|
|
1367
|
-
const className = (0,
|
|
1368
|
-
return (0,
|
|
1503
|
+
const className = (0, import_react8.useMemo)(() => {
|
|
1504
|
+
return (0, import_clsx4.clsx)(props.className, colorClassName, {
|
|
1369
1505
|
transparent: variant === "transparent"
|
|
1370
1506
|
});
|
|
1371
1507
|
}, [props.className, colorClassName, variant]);
|
|
1372
|
-
return /* @__PURE__ */ (0,
|
|
1373
|
-
|
|
1508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1509
|
+
import_themes8.Button,
|
|
1374
1510
|
__spreadProps(__spreadValues({
|
|
1375
1511
|
style,
|
|
1376
1512
|
type: "button",
|
|
@@ -1387,14 +1523,14 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1387
1523
|
Button.displayName = "Button";
|
|
1388
1524
|
|
|
1389
1525
|
// src/molecules/navigation.tsx
|
|
1390
|
-
var
|
|
1526
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1391
1527
|
function Navigation({
|
|
1392
1528
|
items,
|
|
1393
1529
|
fontColor,
|
|
1394
1530
|
backgroundColor,
|
|
1395
1531
|
activeKey
|
|
1396
1532
|
}) {
|
|
1397
|
-
return /* @__PURE__ */ (0,
|
|
1533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1398
1534
|
import_themes.Flex,
|
|
1399
1535
|
{
|
|
1400
1536
|
direction: "column",
|
|
@@ -1406,13 +1542,13 @@ function Navigation({
|
|
|
1406
1542
|
},
|
|
1407
1543
|
children: items == null ? void 0 : items.map((item) => {
|
|
1408
1544
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1409
|
-
return /* @__PURE__ */ (0,
|
|
1410
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes.Flex, { direction: "column", onClick, children: [
|
|
1546
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1411
1547
|
icon,
|
|
1412
|
-
/* @__PURE__ */ (0,
|
|
1548
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1413
1549
|
] }),
|
|
1414
1550
|
children == null ? void 0 : children.map((menu) => {
|
|
1415
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1551
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1416
1552
|
Button,
|
|
1417
1553
|
{
|
|
1418
1554
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1441,122 +1577,58 @@ var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
|
1441
1577
|
var import_locale = require("date-fns/locale");
|
|
1442
1578
|
|
|
1443
1579
|
// src/atoms/box.tsx
|
|
1444
|
-
var
|
|
1580
|
+
var import_themes9 = require("@radix-ui/themes");
|
|
1445
1581
|
|
|
1446
1582
|
// src/atoms/popover.tsx
|
|
1447
|
-
var
|
|
1448
|
-
var
|
|
1449
|
-
var
|
|
1583
|
+
var import_themes11 = require("@radix-ui/themes");
|
|
1584
|
+
var import_clsx6 = require("clsx");
|
|
1585
|
+
var import_react10 = require("react");
|
|
1450
1586
|
|
|
1451
1587
|
// src/theme/theme-provider.tsx
|
|
1452
|
-
var
|
|
1453
|
-
var
|
|
1454
|
-
var
|
|
1455
|
-
var
|
|
1456
|
-
var ThemeAccentContext = (0,
|
|
1588
|
+
var import_react9 = require("react");
|
|
1589
|
+
var import_themes10 = require("@radix-ui/themes");
|
|
1590
|
+
var import_clsx5 = require("clsx");
|
|
1591
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1592
|
+
var ThemeAccentContext = (0, import_react9.createContext)(void 0);
|
|
1457
1593
|
function ThemeProvider(props) {
|
|
1458
1594
|
const _a = props, { accentColor = "iris", className } = _a, rest = __objRest(_a, ["accentColor", "className"]);
|
|
1459
1595
|
const { color: radixAccent, className: accentClassName } = resolveColor(accentColor);
|
|
1460
1596
|
const themeAccent = accentClassName ? accentColor : void 0;
|
|
1461
|
-
return /* @__PURE__ */ (0,
|
|
1462
|
-
|
|
1597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ThemeAccentContext.Provider, { value: themeAccent, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1598
|
+
import_themes10.Theme,
|
|
1463
1599
|
__spreadValues({
|
|
1464
1600
|
accentColor: radixAccent != null ? radixAccent : "iris",
|
|
1465
|
-
className: (0,
|
|
1601
|
+
className: (0, import_clsx5.clsx)(accentClassName, className),
|
|
1466
1602
|
radius: "medium"
|
|
1467
1603
|
}, rest)
|
|
1468
1604
|
) });
|
|
1469
1605
|
}
|
|
1470
1606
|
|
|
1471
1607
|
// src/atoms/popover.tsx
|
|
1472
|
-
var
|
|
1473
|
-
var Content = (0,
|
|
1608
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1609
|
+
var Content = (0, import_react10.forwardRef)((props, ref) => {
|
|
1474
1610
|
const _a = props, { className, color } = _a, rest = __objRest(_a, ["className", "color"]);
|
|
1475
|
-
const themeAccent = (0,
|
|
1476
|
-
const { className: colorClassName } = (0,
|
|
1611
|
+
const themeAccent = (0, import_react10.useContext)(ThemeAccentContext);
|
|
1612
|
+
const { className: colorClassName } = (0, import_react10.useMemo)(
|
|
1477
1613
|
() => resolveColor(color != null ? color : themeAccent),
|
|
1478
1614
|
[color, themeAccent]
|
|
1479
1615
|
);
|
|
1480
|
-
return /* @__PURE__ */ (0,
|
|
1481
|
-
|
|
1616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1617
|
+
import_themes11.Popover.Content,
|
|
1482
1618
|
__spreadProps(__spreadValues({
|
|
1483
1619
|
ref
|
|
1484
1620
|
}, rest), {
|
|
1485
|
-
className: (0,
|
|
1621
|
+
className: (0, import_clsx6.clsx)(colorClassName, className)
|
|
1486
1622
|
})
|
|
1487
1623
|
);
|
|
1488
1624
|
});
|
|
1489
1625
|
Content.displayName = "Popover.Content";
|
|
1490
|
-
var Popover = __spreadProps(__spreadValues({},
|
|
1626
|
+
var Popover = __spreadProps(__spreadValues({}, import_themes11.Popover), {
|
|
1491
1627
|
Content
|
|
1492
1628
|
});
|
|
1493
1629
|
|
|
1494
|
-
// src/atoms/heading.tsx
|
|
1495
|
-
var import_themes10 = require("@radix-ui/themes");
|
|
1496
|
-
var import_clsx6 = require("clsx");
|
|
1497
|
-
var import_react10 = require("react");
|
|
1498
|
-
var import_themes11 = require("@radix-ui/themes");
|
|
1499
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1500
|
-
var mapVariant = (variant) => {
|
|
1501
|
-
switch (variant) {
|
|
1502
|
-
case "heading1":
|
|
1503
|
-
return "7";
|
|
1504
|
-
case "heading2":
|
|
1505
|
-
return "6";
|
|
1506
|
-
case "heading3":
|
|
1507
|
-
return "5";
|
|
1508
|
-
case "heading4":
|
|
1509
|
-
return "4";
|
|
1510
|
-
case "heading5":
|
|
1511
|
-
return "3";
|
|
1512
|
-
default:
|
|
1513
|
-
return void 0;
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
function Heading2(props) {
|
|
1517
|
-
const _a = props, {
|
|
1518
|
-
size,
|
|
1519
|
-
children,
|
|
1520
|
-
variant,
|
|
1521
|
-
color,
|
|
1522
|
-
className,
|
|
1523
|
-
mono,
|
|
1524
|
-
clamp,
|
|
1525
|
-
style
|
|
1526
|
-
} = _a, rest = __objRest(_a, [
|
|
1527
|
-
"size",
|
|
1528
|
-
"children",
|
|
1529
|
-
"variant",
|
|
1530
|
-
"color",
|
|
1531
|
-
"className",
|
|
1532
|
-
"mono",
|
|
1533
|
-
"clamp",
|
|
1534
|
-
"style"
|
|
1535
|
-
]);
|
|
1536
|
-
const { color: radixColor, className: colorClassName } = (0, import_react10.useMemo)(
|
|
1537
|
-
() => resolveColor(color),
|
|
1538
|
-
[color]
|
|
1539
|
-
);
|
|
1540
|
-
const radixSize = (0, import_react10.useMemo)(() => {
|
|
1541
|
-
return variant ? mapWithResponsive({
|
|
1542
|
-
value: variant,
|
|
1543
|
-
mapFn: mapVariant
|
|
1544
|
-
}) : size;
|
|
1545
|
-
}, [size, variant]);
|
|
1546
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1547
|
-
import_themes10.Heading,
|
|
1548
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
1549
|
-
className: (0, import_clsx6.clsx)(colorClassName, className),
|
|
1550
|
-
color: radixColor,
|
|
1551
|
-
size: radixSize,
|
|
1552
|
-
style: __spreadValues(__spreadValues(__spreadValues({}, mono ? MONO_STYLE : null), clamp ? clampStyle(clamp) : null), style),
|
|
1553
|
-
children
|
|
1554
|
-
})
|
|
1555
|
-
);
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
1630
|
// src/molecules/date-picker/index.tsx
|
|
1559
|
-
var
|
|
1631
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1560
1632
|
var DatePicker = (0, import_react11.forwardRef)(
|
|
1561
1633
|
(props, ref) => {
|
|
1562
1634
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
@@ -1587,7 +1659,7 @@ var DatePicker = (0, import_react11.forwardRef)(
|
|
|
1587
1659
|
setIsMonthDropdownOpen
|
|
1588
1660
|
}));
|
|
1589
1661
|
}, [isMonthDropdownOpen, isYearDropdownOpen, props]);
|
|
1590
|
-
return /* @__PURE__ */ (0,
|
|
1662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1591
1663
|
import_react_datepicker.default,
|
|
1592
1664
|
__spreadProps(__spreadValues({
|
|
1593
1665
|
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
@@ -1635,19 +1707,19 @@ function DropdownSelector({
|
|
|
1635
1707
|
});
|
|
1636
1708
|
}
|
|
1637
1709
|
}, [isOpen]);
|
|
1638
|
-
return /* @__PURE__ */ (0,
|
|
1639
|
-
/* @__PURE__ */ (0,
|
|
1710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Popover.Root, { modal: true, onOpenChange, open: isOpen, children: [
|
|
1711
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { className: "react-datepicker_dropdown_header", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1640
1712
|
selectedValue,
|
|
1641
1713
|
suffix
|
|
1642
1714
|
] }) }) }),
|
|
1643
|
-
/* @__PURE__ */ (0,
|
|
1644
|
-
|
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1716
|
+
import_themes9.Box,
|
|
1645
1717
|
{
|
|
1646
1718
|
maxHeight: "200px",
|
|
1647
1719
|
overflowY: "auto",
|
|
1648
1720
|
ref: scrollContainerRef,
|
|
1649
1721
|
style: { scrollbarWidth: "none" },
|
|
1650
|
-
children: /* @__PURE__ */ (0,
|
|
1722
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes.Flex, { direction: "column", gap: "1", children: options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1651
1723
|
Button,
|
|
1652
1724
|
{
|
|
1653
1725
|
className: "react-datepicker_dropdown_item",
|
|
@@ -1661,7 +1733,7 @@ function DropdownSelector({
|
|
|
1661
1733
|
e.preventDefault();
|
|
1662
1734
|
},
|
|
1663
1735
|
variant: "transparent",
|
|
1664
|
-
children: /* @__PURE__ */ (0,
|
|
1736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
|
|
1665
1737
|
item,
|
|
1666
1738
|
suffix
|
|
1667
1739
|
] })
|
|
@@ -1692,8 +1764,8 @@ var getRenderCustomHeader = (props) => {
|
|
|
1692
1764
|
} = props;
|
|
1693
1765
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1694
1766
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1695
|
-
return /* @__PURE__ */ (0,
|
|
1696
|
-
/* @__PURE__ */ (0,
|
|
1767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes.Flex, { align: "center", justify: "between", pl: "2", pr: "2", children: [
|
|
1768
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1697
1769
|
IconButton,
|
|
1698
1770
|
{
|
|
1699
1771
|
className: "react-datepicker_dropdown_header",
|
|
@@ -1701,11 +1773,11 @@ var getRenderCustomHeader = (props) => {
|
|
|
1701
1773
|
onClick: decreaseMonth,
|
|
1702
1774
|
type: "button",
|
|
1703
1775
|
variant: "ghost",
|
|
1704
|
-
children: /* @__PURE__ */ (0,
|
|
1776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons.ChevronLeftIcon, {})
|
|
1705
1777
|
}
|
|
1706
1778
|
),
|
|
1707
|
-
/* @__PURE__ */ (0,
|
|
1708
|
-
/* @__PURE__ */ (0,
|
|
1779
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes.Flex, { gap: "3", children: [
|
|
1780
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1709
1781
|
DropdownSelector,
|
|
1710
1782
|
{
|
|
1711
1783
|
isOpen: isYearDropdownOpen,
|
|
@@ -1719,7 +1791,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1719
1791
|
suffix: "\uB144"
|
|
1720
1792
|
}
|
|
1721
1793
|
),
|
|
1722
|
-
/* @__PURE__ */ (0,
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1723
1795
|
DropdownSelector,
|
|
1724
1796
|
{
|
|
1725
1797
|
isOpen: isMonthDropdownOpen,
|
|
@@ -1734,7 +1806,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1734
1806
|
}
|
|
1735
1807
|
)
|
|
1736
1808
|
] }),
|
|
1737
|
-
/* @__PURE__ */ (0,
|
|
1809
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1738
1810
|
IconButton,
|
|
1739
1811
|
{
|
|
1740
1812
|
className: "react-datepicker_dropdown_header",
|
|
@@ -1742,7 +1814,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1742
1814
|
onClick: increaseMonth,
|
|
1743
1815
|
type: "button",
|
|
1744
1816
|
variant: "ghost",
|
|
1745
|
-
children: /* @__PURE__ */ (0,
|
|
1817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons.ChevronRightIcon, {})
|
|
1746
1818
|
}
|
|
1747
1819
|
)
|
|
1748
1820
|
] });
|
|
@@ -1753,7 +1825,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1753
1825
|
// src/molecules/dot-navigation.tsx
|
|
1754
1826
|
var import_react12 = require("react");
|
|
1755
1827
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
1756
|
-
var
|
|
1828
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1757
1829
|
function DotNavigation(props) {
|
|
1758
1830
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1759
1831
|
const [currentDot, setCurrentDot] = (0, import_react12.useState)(
|
|
@@ -1779,9 +1851,9 @@ function DotNavigation(props) {
|
|
|
1779
1851
|
if (typeof dotIndex === "undefined") return;
|
|
1780
1852
|
setCurrentDot(dotIndex);
|
|
1781
1853
|
}, [dotIndex]);
|
|
1782
|
-
return /* @__PURE__ */ (0,
|
|
1854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1783
1855
|
const isSelected = currentDot === index;
|
|
1784
|
-
return /* @__PURE__ */ (0,
|
|
1856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1785
1857
|
import_react_icons2.DotFilledIcon,
|
|
1786
1858
|
{
|
|
1787
1859
|
height: "24px",
|
|
@@ -1807,7 +1879,7 @@ var import_themes13 = require("@radix-ui/themes");
|
|
|
1807
1879
|
var import_themes12 = require("@radix-ui/themes");
|
|
1808
1880
|
var import_clsx7 = require("clsx");
|
|
1809
1881
|
var import_react13 = require("react");
|
|
1810
|
-
var
|
|
1882
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1811
1883
|
var Avatar = (0, import_react13.forwardRef)(
|
|
1812
1884
|
(props, ref) => {
|
|
1813
1885
|
const _a = props, { children, size, variant = "soft", color, className } = _a, rest = __objRest(_a, ["children", "size", "variant", "color", "className"]);
|
|
@@ -1839,7 +1911,7 @@ var Avatar = (0, import_react13.forwardRef)(
|
|
|
1839
1911
|
return map;
|
|
1840
1912
|
}
|
|
1841
1913
|
}, [getOriginalSize, size]);
|
|
1842
|
-
return /* @__PURE__ */ (0,
|
|
1914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1843
1915
|
import_themes12.Avatar,
|
|
1844
1916
|
__spreadProps(__spreadValues({}, rest), {
|
|
1845
1917
|
className: (0, import_clsx7.clsx)(colorClassName, className),
|
|
@@ -1855,7 +1927,7 @@ var Avatar = (0, import_react13.forwardRef)(
|
|
|
1855
1927
|
Avatar.displayName = "Avatar";
|
|
1856
1928
|
|
|
1857
1929
|
// src/molecules/stepper.tsx
|
|
1858
|
-
var
|
|
1930
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1859
1931
|
var StepContext = (0, import_react14.createContext)({
|
|
1860
1932
|
active: false,
|
|
1861
1933
|
completed: false,
|
|
@@ -1870,7 +1942,7 @@ function Root(props) {
|
|
|
1870
1942
|
maxWidth,
|
|
1871
1943
|
direction = "vertical"
|
|
1872
1944
|
} = props;
|
|
1873
|
-
return /* @__PURE__ */ (0,
|
|
1945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1874
1946
|
import_themes.Flex,
|
|
1875
1947
|
{
|
|
1876
1948
|
gap: "3",
|
|
@@ -1880,7 +1952,7 @@ function Root(props) {
|
|
|
1880
1952
|
maxWidth
|
|
1881
1953
|
},
|
|
1882
1954
|
children: import_react14.Children.map(children, (child, index) => {
|
|
1883
|
-
return /* @__PURE__ */ (0,
|
|
1955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1884
1956
|
StepContext.Provider,
|
|
1885
1957
|
{
|
|
1886
1958
|
value: {
|
|
@@ -1904,7 +1976,7 @@ function Step(props) {
|
|
|
1904
1976
|
index,
|
|
1905
1977
|
direction = "vertical"
|
|
1906
1978
|
} = (0, import_react14.useContext)(StepContext);
|
|
1907
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
1979
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1908
1980
|
import_themes13.Separator,
|
|
1909
1981
|
{
|
|
1910
1982
|
style: {
|
|
@@ -1924,7 +1996,7 @@ function Step(props) {
|
|
|
1924
1996
|
}
|
|
1925
1997
|
return IncompleteStep;
|
|
1926
1998
|
}, [completed, active]);
|
|
1927
|
-
return /* @__PURE__ */ (0,
|
|
1999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1928
2000
|
import_themes.Flex,
|
|
1929
2001
|
{
|
|
1930
2002
|
align: "center",
|
|
@@ -1934,7 +2006,7 @@ function Step(props) {
|
|
|
1934
2006
|
style: { flex: 1 },
|
|
1935
2007
|
children: [
|
|
1936
2008
|
connector,
|
|
1937
|
-
/* @__PURE__ */ (0,
|
|
2009
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InnerStep, { Icon, children })
|
|
1938
2010
|
]
|
|
1939
2011
|
}
|
|
1940
2012
|
);
|
|
@@ -1945,11 +2017,11 @@ function CompleteStep(props) {
|
|
|
1945
2017
|
const background = "var(--accent-a4)";
|
|
1946
2018
|
const border = "1px solid var(--accent-7)";
|
|
1947
2019
|
const color = "var(--accent-contrast)";
|
|
1948
|
-
return /* @__PURE__ */ (0,
|
|
1949
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
2021
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1950
2022
|
Avatar,
|
|
1951
2023
|
{
|
|
1952
|
-
fallback: /* @__PURE__ */ (0,
|
|
2024
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_icons.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
1953
2025
|
radius: "full",
|
|
1954
2026
|
size: "medium",
|
|
1955
2027
|
style: {
|
|
@@ -1958,7 +2030,7 @@ function CompleteStep(props) {
|
|
|
1958
2030
|
}
|
|
1959
2031
|
}
|
|
1960
2032
|
),
|
|
1961
|
-
/* @__PURE__ */ (0,
|
|
2033
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
1962
2034
|
] });
|
|
1963
2035
|
}
|
|
1964
2036
|
function IncompleteStep(props) {
|
|
@@ -1966,11 +2038,11 @@ function IncompleteStep(props) {
|
|
|
1966
2038
|
const { completed, active, index } = (0, import_react14.useContext)(StepContext);
|
|
1967
2039
|
const background = "var(--gray-5)";
|
|
1968
2040
|
const color = "var(--gray-a11)";
|
|
1969
|
-
return /* @__PURE__ */ (0,
|
|
1970
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
2042
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1971
2043
|
Avatar,
|
|
1972
2044
|
{
|
|
1973
|
-
fallback: /* @__PURE__ */ (0,
|
|
2045
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
1974
2046
|
radius: "full",
|
|
1975
2047
|
size: "medium",
|
|
1976
2048
|
style: {
|
|
@@ -1978,7 +2050,7 @@ function IncompleteStep(props) {
|
|
|
1978
2050
|
}
|
|
1979
2051
|
}
|
|
1980
2052
|
),
|
|
1981
|
-
/* @__PURE__ */ (0,
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
1982
2054
|
] });
|
|
1983
2055
|
}
|
|
1984
2056
|
function ActiveStep(props) {
|
|
@@ -1986,17 +2058,17 @@ function ActiveStep(props) {
|
|
|
1986
2058
|
const { completed, active, index } = (0, import_react14.useContext)(StepContext);
|
|
1987
2059
|
const background = "var(--accent-10)";
|
|
1988
2060
|
const color = "var(--accent-contrast)";
|
|
1989
|
-
return /* @__PURE__ */ (0,
|
|
1990
|
-
Icon ? /* @__PURE__ */ (0,
|
|
2061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
2062
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1991
2063
|
Avatar,
|
|
1992
2064
|
{
|
|
1993
|
-
fallback: /* @__PURE__ */ (0,
|
|
2065
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
1994
2066
|
radius: "full",
|
|
1995
2067
|
size: "medium",
|
|
1996
2068
|
style: { background }
|
|
1997
2069
|
}
|
|
1998
2070
|
),
|
|
1999
|
-
/* @__PURE__ */ (0,
|
|
2071
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
2000
2072
|
] });
|
|
2001
2073
|
}
|
|
2002
2074
|
var Stepper = {
|
|
@@ -2011,7 +2083,7 @@ var import_react_icons3 = require("@radix-ui/react-icons");
|
|
|
2011
2083
|
// src/atoms/auto-sizing-input.tsx
|
|
2012
2084
|
var import_themes14 = require("@radix-ui/themes");
|
|
2013
2085
|
var import_react15 = require("react");
|
|
2014
|
-
var
|
|
2086
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2015
2087
|
var useTextWidth = (text, font) => {
|
|
2016
2088
|
const [textWidth, setTextWidth] = (0, import_react15.useState)(0);
|
|
2017
2089
|
(0, import_react15.useEffect)(() => {
|
|
@@ -2111,7 +2183,7 @@ var AutoSizingInput = (0, import_react15.forwardRef)(
|
|
|
2111
2183
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
2112
2184
|
}
|
|
2113
2185
|
}, [inputRef]);
|
|
2114
|
-
return /* @__PURE__ */ (0,
|
|
2186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2115
2187
|
import_themes14.Box,
|
|
2116
2188
|
{
|
|
2117
2189
|
className: "auto-sizing-input wrapper",
|
|
@@ -2119,7 +2191,7 @@ var AutoSizingInput = (0, import_react15.forwardRef)(
|
|
|
2119
2191
|
minWidth,
|
|
2120
2192
|
onClick,
|
|
2121
2193
|
style: { width: dynamicWidth },
|
|
2122
|
-
children: /* @__PURE__ */ (0,
|
|
2194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("input", __spreadValues({ onChange: handleChange, ref: inputRef, value }, rest))
|
|
2123
2195
|
}
|
|
2124
2196
|
);
|
|
2125
2197
|
}
|
|
@@ -2130,7 +2202,7 @@ AutoSizingInput.displayName = "AutoSizingInput";
|
|
|
2130
2202
|
var import_themes15 = require("@radix-ui/themes");
|
|
2131
2203
|
var import_clsx8 = require("clsx");
|
|
2132
2204
|
var import_react16 = require("react");
|
|
2133
|
-
var
|
|
2205
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2134
2206
|
var Badge = (0, import_react16.forwardRef)(
|
|
2135
2207
|
(props, ref) => {
|
|
2136
2208
|
const _a = props, { size = "small", color = "accent", className } = _a, rest = __objRest(_a, ["size", "color", "className"]);
|
|
@@ -2150,7 +2222,7 @@ var Badge = (0, import_react16.forwardRef)(
|
|
|
2150
2222
|
() => resolveColor(color),
|
|
2151
2223
|
[color]
|
|
2152
2224
|
);
|
|
2153
|
-
return /* @__PURE__ */ (0,
|
|
2225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2154
2226
|
import_themes15.Badge,
|
|
2155
2227
|
__spreadProps(__spreadValues({}, rest), {
|
|
2156
2228
|
className: (0, import_clsx8.clsx)(colorClassName, className),
|
|
@@ -2170,7 +2242,7 @@ var import_themes16 = require("@radix-ui/themes");
|
|
|
2170
2242
|
var import_themes17 = require("@radix-ui/themes");
|
|
2171
2243
|
|
|
2172
2244
|
// src/molecules/tag-selector.tsx
|
|
2173
|
-
var
|
|
2245
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2174
2246
|
var OPTION_HEIGHT = 32;
|
|
2175
2247
|
var stopDefaultEvents = (e) => {
|
|
2176
2248
|
e.preventDefault();
|
|
@@ -2360,11 +2432,11 @@ function TagSelector(props) {
|
|
|
2360
2432
|
const focusClassName = focus ? " focused" : "";
|
|
2361
2433
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2362
2434
|
const errorClassName = error ? " error" : "";
|
|
2363
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2364
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
2435
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2436
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2365
2437
|
}) });
|
|
2366
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2367
|
-
/* @__PURE__ */ (0,
|
|
2438
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
2439
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2368
2440
|
import_themes.Flex,
|
|
2369
2441
|
{
|
|
2370
2442
|
align: "center",
|
|
@@ -2376,22 +2448,22 @@ function TagSelector(props) {
|
|
|
2376
2448
|
selectedItem.map((item) => {
|
|
2377
2449
|
return tagRender ? tagRender(item, () => {
|
|
2378
2450
|
onDelete(item.id);
|
|
2379
|
-
}) : /* @__PURE__ */ (0,
|
|
2451
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Badge, { size: badgeSize, children: [
|
|
2380
2452
|
item.name,
|
|
2381
|
-
/* @__PURE__ */ (0,
|
|
2453
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2382
2454
|
Button,
|
|
2383
2455
|
{
|
|
2384
2456
|
onClick: () => {
|
|
2385
2457
|
onDelete(item.id);
|
|
2386
2458
|
},
|
|
2387
2459
|
variant: "transparent",
|
|
2388
|
-
children: /* @__PURE__ */ (0,
|
|
2460
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons3.Cross1Icon, {})
|
|
2389
2461
|
}
|
|
2390
2462
|
)
|
|
2391
2463
|
] }, item.id);
|
|
2392
2464
|
}),
|
|
2393
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2394
|
-
/* @__PURE__ */ (0,
|
|
2465
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
2466
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2395
2467
|
AutoSizingInput,
|
|
2396
2468
|
{
|
|
2397
2469
|
onBlur,
|
|
@@ -2405,10 +2477,10 @@ function TagSelector(props) {
|
|
|
2405
2477
|
]
|
|
2406
2478
|
}
|
|
2407
2479
|
),
|
|
2408
|
-
focus ? /* @__PURE__ */ (0,
|
|
2480
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons3.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons3.ChevronRightIcon, {})
|
|
2409
2481
|
] });
|
|
2410
|
-
return /* @__PURE__ */ (0,
|
|
2411
|
-
/* @__PURE__ */ (0,
|
|
2482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2483
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2412
2484
|
import_themes17.Grid,
|
|
2413
2485
|
{
|
|
2414
2486
|
align: "center",
|
|
@@ -2422,7 +2494,7 @@ function TagSelector(props) {
|
|
|
2422
2494
|
children: readOnly ? readonlyContent : editContent
|
|
2423
2495
|
}
|
|
2424
2496
|
) }),
|
|
2425
|
-
/* @__PURE__ */ (0,
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2426
2498
|
Popover.Content,
|
|
2427
2499
|
{
|
|
2428
2500
|
onOpenAutoFocus: preventDefault,
|
|
@@ -2432,24 +2504,24 @@ function TagSelector(props) {
|
|
|
2432
2504
|
style: {
|
|
2433
2505
|
pointerEvents: "fill"
|
|
2434
2506
|
},
|
|
2435
|
-
children: /* @__PURE__ */ (0,
|
|
2507
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2436
2508
|
DropdownContainer,
|
|
2437
2509
|
{
|
|
2438
2510
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2439
2511
|
items: filteredOptions,
|
|
2440
|
-
children: /* @__PURE__ */ (0,
|
|
2512
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2441
2513
|
import_themes16.ScrollArea,
|
|
2442
2514
|
{
|
|
2443
2515
|
ref: scrollRef,
|
|
2444
2516
|
scrollbars: "vertical",
|
|
2445
2517
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2446
2518
|
type: "auto",
|
|
2447
|
-
children: /* @__PURE__ */ (0,
|
|
2519
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2448
2520
|
const isSelected = Boolean(
|
|
2449
2521
|
selected.find((el) => el === item.id)
|
|
2450
2522
|
);
|
|
2451
2523
|
const isFocus = i === focusIndex;
|
|
2452
|
-
return /* @__PURE__ */ (0,
|
|
2524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2453
2525
|
Button,
|
|
2454
2526
|
{
|
|
2455
2527
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2462,9 +2534,9 @@ function TagSelector(props) {
|
|
|
2462
2534
|
setFocusIndex(i);
|
|
2463
2535
|
},
|
|
2464
2536
|
variant: isSelected ? "soft" : "outline",
|
|
2465
|
-
children: /* @__PURE__ */ (0,
|
|
2537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes.Flex, { justify: "between", width: "100%", children: [
|
|
2466
2538
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2467
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2539
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons.CheckIcon, {}) : null
|
|
2468
2540
|
] })
|
|
2469
2541
|
},
|
|
2470
2542
|
item.id
|
|
@@ -2492,7 +2564,7 @@ var preventDefault = (e) => {
|
|
|
2492
2564
|
var import_themes18 = require("@radix-ui/themes");
|
|
2493
2565
|
|
|
2494
2566
|
// src/molecules/learning-post.tsx
|
|
2495
|
-
var
|
|
2567
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2496
2568
|
function LearningPost(props) {
|
|
2497
2569
|
const {
|
|
2498
2570
|
defaultThemeProps,
|
|
@@ -2504,13 +2576,13 @@ function LearningPost(props) {
|
|
|
2504
2576
|
onPageBack,
|
|
2505
2577
|
children
|
|
2506
2578
|
} = props;
|
|
2507
|
-
return /* @__PURE__ */ (0,
|
|
2579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2508
2580
|
ThemeProvider,
|
|
2509
2581
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2510
2582
|
accentColor: "iris",
|
|
2511
2583
|
scaling: "110%",
|
|
2512
2584
|
style: {},
|
|
2513
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2585
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2514
2586
|
import_themes17.Grid,
|
|
2515
2587
|
{
|
|
2516
2588
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2522,8 +2594,8 @@ function LearningPost(props) {
|
|
|
2522
2594
|
px: "4",
|
|
2523
2595
|
width: "100%",
|
|
2524
2596
|
children: [
|
|
2525
|
-
/* @__PURE__ */ (0,
|
|
2526
|
-
/* @__PURE__ */ (0,
|
|
2597
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {}),
|
|
2598
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2527
2599
|
import_themes.Flex,
|
|
2528
2600
|
{
|
|
2529
2601
|
align: "center",
|
|
@@ -2533,15 +2605,15 @@ function LearningPost(props) {
|
|
|
2533
2605
|
overflow: "hidden",
|
|
2534
2606
|
width: "100%",
|
|
2535
2607
|
children: [
|
|
2536
|
-
/* @__PURE__ */ (0,
|
|
2537
|
-
/* @__PURE__ */ (0,
|
|
2608
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes17.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2609
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2538
2610
|
import_themes17.Grid,
|
|
2539
2611
|
{
|
|
2540
2612
|
gap: "3",
|
|
2541
2613
|
mb: { initial: "4", sm: "0" },
|
|
2542
2614
|
style: { alignSelf: "flex-start" },
|
|
2543
2615
|
children: [
|
|
2544
|
-
/* @__PURE__ */ (0,
|
|
2616
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2545
2617
|
Heading2,
|
|
2546
2618
|
{
|
|
2547
2619
|
style: {
|
|
@@ -2553,16 +2625,16 @@ function LearningPost(props) {
|
|
|
2553
2625
|
children: title
|
|
2554
2626
|
}
|
|
2555
2627
|
),
|
|
2556
|
-
/* @__PURE__ */ (0,
|
|
2557
|
-
/* @__PURE__ */ (0,
|
|
2628
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typo, { children: metaDescription }),
|
|
2629
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2558
2630
|
var _a;
|
|
2559
2631
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
2560
|
-
return /* @__PURE__ */ (0,
|
|
2632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
2561
2633
|
}) })
|
|
2562
2634
|
]
|
|
2563
2635
|
}
|
|
2564
2636
|
),
|
|
2565
|
-
/* @__PURE__ */ (0,
|
|
2637
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2566
2638
|
import_themes18.AspectRatio,
|
|
2567
2639
|
{
|
|
2568
2640
|
ratio: 5 / 3,
|
|
@@ -2575,7 +2647,7 @@ function LearningPost(props) {
|
|
|
2575
2647
|
}
|
|
2576
2648
|
)
|
|
2577
2649
|
] }),
|
|
2578
|
-
/* @__PURE__ */ (0,
|
|
2650
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes9.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2579
2651
|
"div",
|
|
2580
2652
|
{
|
|
2581
2653
|
className: "gh-content",
|
|
@@ -2588,7 +2660,7 @@ function LearningPost(props) {
|
|
|
2588
2660
|
children
|
|
2589
2661
|
]
|
|
2590
2662
|
}
|
|
2591
|
-
) : /* @__PURE__ */ (0,
|
|
2663
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2592
2664
|
import_themes.Flex,
|
|
2593
2665
|
{
|
|
2594
2666
|
align: "center",
|
|
@@ -2598,8 +2670,8 @@ function LearningPost(props) {
|
|
|
2598
2670
|
justify: "center",
|
|
2599
2671
|
width: "100%",
|
|
2600
2672
|
children: [
|
|
2601
|
-
/* @__PURE__ */ (0,
|
|
2602
|
-
/* @__PURE__ */ (0,
|
|
2673
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2674
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2603
2675
|
Heading2,
|
|
2604
2676
|
{
|
|
2605
2677
|
align: "center",
|
|
@@ -2610,7 +2682,7 @@ function LearningPost(props) {
|
|
|
2610
2682
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2611
2683
|
}
|
|
2612
2684
|
),
|
|
2613
|
-
/* @__PURE__ */ (0,
|
|
2685
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2614
2686
|
]
|
|
2615
2687
|
}
|
|
2616
2688
|
)
|
|
@@ -2625,12 +2697,12 @@ var import_react_icons4 = require("@radix-ui/react-icons");
|
|
|
2625
2697
|
var import_themes19 = require("@radix-ui/themes");
|
|
2626
2698
|
var import_clsx9 = require("clsx");
|
|
2627
2699
|
var import_react18 = require("react");
|
|
2628
|
-
var
|
|
2700
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2629
2701
|
var Code = (0, import_react18.forwardRef)(
|
|
2630
2702
|
(props, ref) => {
|
|
2631
2703
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
2632
2704
|
const { color: radixColor, className: colorClassName } = resolveColor(color);
|
|
2633
|
-
return /* @__PURE__ */ (0,
|
|
2705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2634
2706
|
import_themes19.Code,
|
|
2635
2707
|
__spreadProps(__spreadValues({}, rest), {
|
|
2636
2708
|
className: (0, import_clsx9.clsx)(colorClassName, className),
|
|
@@ -2646,9 +2718,9 @@ Code.displayName = "Code";
|
|
|
2646
2718
|
var import_themes20 = require("@radix-ui/themes");
|
|
2647
2719
|
|
|
2648
2720
|
// src/molecules/force-refresh.tsx
|
|
2649
|
-
var
|
|
2721
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2650
2722
|
function CodeSize3(props) {
|
|
2651
|
-
return /* @__PURE__ */ (0,
|
|
2723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2652
2724
|
Code,
|
|
2653
2725
|
{
|
|
2654
2726
|
style: {
|
|
@@ -2661,51 +2733,51 @@ function CodeSize3(props) {
|
|
|
2661
2733
|
);
|
|
2662
2734
|
}
|
|
2663
2735
|
function ForceRefresh() {
|
|
2664
|
-
return /* @__PURE__ */ (0,
|
|
2665
|
-
/* @__PURE__ */ (0,
|
|
2736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
2737
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Typo, { children: [
|
|
2666
2738
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2667
2739
|
" ",
|
|
2668
|
-
/* @__PURE__ */ (0,
|
|
2669
|
-
/* @__PURE__ */ (0,
|
|
2740
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(CodeSize3, { children: [
|
|
2741
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons4.DotsVerticalIcon, { height: "13px" }),
|
|
2670
2742
|
"\uB354\uBCF4\uAE30"
|
|
2671
2743
|
] }),
|
|
2672
2744
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2673
2745
|
] }),
|
|
2674
|
-
/* @__PURE__ */ (0,
|
|
2746
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Typo, { children: [
|
|
2675
2747
|
"2. ",
|
|
2676
|
-
/* @__PURE__ */ (0,
|
|
2748
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
2677
2749
|
" ",
|
|
2678
2750
|
">",
|
|
2679
2751
|
" ",
|
|
2680
|
-
/* @__PURE__ */ (0,
|
|
2752
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2681
2753
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2682
2754
|
] }),
|
|
2683
|
-
/* @__PURE__ */ (0,
|
|
2684
|
-
/* @__PURE__ */ (0,
|
|
2755
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2756
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Typo, { children: [
|
|
2685
2757
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2686
|
-
/* @__PURE__ */ (0,
|
|
2758
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes20.Kbd, { children: "F12" })
|
|
2687
2759
|
] }),
|
|
2688
|
-
/* @__PURE__ */ (0,
|
|
2760
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Typo, { children: [
|
|
2689
2761
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2690
|
-
/* @__PURE__ */ (0,
|
|
2762
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes20.Kbd, { children: "Option" }),
|
|
2691
2763
|
" + ",
|
|
2692
|
-
/* @__PURE__ */ (0,
|
|
2764
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes20.Kbd, { children: "Command" }),
|
|
2693
2765
|
" + ",
|
|
2694
|
-
/* @__PURE__ */ (0,
|
|
2766
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes20.Kbd, { children: "I" })
|
|
2695
2767
|
] })
|
|
2696
2768
|
] }),
|
|
2697
|
-
/* @__PURE__ */ (0,
|
|
2769
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Typo, { children: [
|
|
2698
2770
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
2699
2771
|
" ",
|
|
2700
|
-
/* @__PURE__ */ (0,
|
|
2701
|
-
/* @__PURE__ */ (0,
|
|
2772
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(CodeSize3, { children: [
|
|
2773
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons4.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
2702
2774
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
2703
2775
|
] }),
|
|
2704
2776
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2705
2777
|
] }),
|
|
2706
|
-
/* @__PURE__ */ (0,
|
|
2778
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Typo, { children: [
|
|
2707
2779
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
2708
|
-
/* @__PURE__ */ (0,
|
|
2780
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
2709
2781
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2710
2782
|
] })
|
|
2711
2783
|
] });
|
|
@@ -2719,7 +2791,7 @@ var import_clsx10 = require("clsx");
|
|
|
2719
2791
|
// src/atoms/text-field.tsx
|
|
2720
2792
|
var import_themes21 = require("@radix-ui/themes");
|
|
2721
2793
|
var import_react19 = require("react");
|
|
2722
|
-
var
|
|
2794
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2723
2795
|
var Root2 = (0, import_react19.forwardRef)((props, ref) => {
|
|
2724
2796
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
2725
2797
|
const fieldStyle = (0, import_react19.useMemo)(() => {
|
|
@@ -2730,7 +2802,7 @@ var Root2 = (0, import_react19.forwardRef)((props, ref) => {
|
|
|
2730
2802
|
return __spreadValues(__spreadValues({}, style || {}), errorStyle);
|
|
2731
2803
|
}, [error, style]);
|
|
2732
2804
|
const classNameStr = error ? `error ${className}` : className;
|
|
2733
|
-
return /* @__PURE__ */ (0,
|
|
2805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2734
2806
|
import_themes21.TextField.Root,
|
|
2735
2807
|
__spreadValues({
|
|
2736
2808
|
className: classNameStr,
|
|
@@ -2743,7 +2815,7 @@ Root2.displayName = "TextField.Root";
|
|
|
2743
2815
|
var TextField = { Root: Root2, Slot: import_themes21.TextField.Slot };
|
|
2744
2816
|
|
|
2745
2817
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2746
|
-
var
|
|
2818
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2747
2819
|
function DatePickerButton(props) {
|
|
2748
2820
|
const _a = props, { size, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "format", "disabled"]);
|
|
2749
2821
|
const placeholder = rest.placeholder || "\uB0A0\uC9DC\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694";
|
|
@@ -2767,18 +2839,18 @@ function DatePickerButton(props) {
|
|
|
2767
2839
|
const placeholderVisible = (0, import_react20.useMemo)(() => {
|
|
2768
2840
|
return rest.selected ? "" : "placeholder-visible";
|
|
2769
2841
|
}, [rest.selected]);
|
|
2770
|
-
return /* @__PURE__ */ (0,
|
|
2842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes9.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2771
2843
|
DatePicker,
|
|
2772
2844
|
__spreadProps(__spreadValues({
|
|
2773
|
-
customInput: /* @__PURE__ */ (0,
|
|
2845
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, __spreadProps(__spreadValues({ asChild: true, className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2774
2846
|
TextField.Root,
|
|
2775
2847
|
{
|
|
2776
2848
|
className: placeholderVisible,
|
|
2777
2849
|
placeholder: placeholder || "",
|
|
2778
2850
|
value: rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2779
2851
|
children: [
|
|
2780
|
-
/* @__PURE__ */ (0,
|
|
2781
|
-
/* @__PURE__ */ (0,
|
|
2852
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TextField.Slot, { className: "hide-slot" }),
|
|
2853
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TextField.Slot, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_icons.CalendarIcon, {}) })
|
|
2782
2854
|
]
|
|
2783
2855
|
}
|
|
2784
2856
|
) })),
|
|
@@ -2797,7 +2869,7 @@ var import_date_fns2 = require("date-fns");
|
|
|
2797
2869
|
var import_themes22 = require("@radix-ui/themes");
|
|
2798
2870
|
var import_clsx11 = require("clsx");
|
|
2799
2871
|
var import_react21 = require("react");
|
|
2800
|
-
var
|
|
2872
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2801
2873
|
var SelectContext = (0, import_react21.createContext)({
|
|
2802
2874
|
error: false
|
|
2803
2875
|
});
|
|
@@ -2818,7 +2890,7 @@ var Content2 = (0, import_react21.forwardRef)((props, ref) => {
|
|
|
2818
2890
|
const errorCls = error ? "tipp-error" : "";
|
|
2819
2891
|
return (0, import_clsx11.clsx)(etc, errorCls, colorClassName, className);
|
|
2820
2892
|
}, [className, colorClassName, error, isNavigation]);
|
|
2821
|
-
return /* @__PURE__ */ (0,
|
|
2893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2822
2894
|
import_themes22.Select.Content,
|
|
2823
2895
|
__spreadProps(__spreadValues({
|
|
2824
2896
|
position: "popper"
|
|
@@ -2842,7 +2914,7 @@ var Trigger = (0, import_react21.forwardRef)((props, ref) => {
|
|
|
2842
2914
|
const errorCls = error ? "error" : "";
|
|
2843
2915
|
return (0, import_clsx11.clsx)(errorCls, colorClassName, className);
|
|
2844
2916
|
}, [className, colorClassName, error]);
|
|
2845
|
-
return /* @__PURE__ */ (0,
|
|
2917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2846
2918
|
import_themes22.Select.Trigger,
|
|
2847
2919
|
__spreadProps(__spreadValues({}, rest), {
|
|
2848
2920
|
className: cls,
|
|
@@ -2855,7 +2927,7 @@ Trigger.displayName = "Select.Trigger";
|
|
|
2855
2927
|
function Root3(props) {
|
|
2856
2928
|
const _a = props, { error, color } = _a, rest = __objRest(_a, ["error", "color"]);
|
|
2857
2929
|
const value = (0, import_react21.useMemo)(() => ({ error, color }), [error, color]);
|
|
2858
|
-
return /* @__PURE__ */ (0,
|
|
2930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes22.Select.Root, __spreadValues({}, rest)) });
|
|
2859
2931
|
}
|
|
2860
2932
|
Root3.displayName = "Select.Root";
|
|
2861
2933
|
var Select = __spreadProps(__spreadValues({}, import_themes22.Select), {
|
|
@@ -2953,7 +3025,7 @@ function getDynamicFormDisplayValue(field, value) {
|
|
|
2953
3025
|
}
|
|
2954
3026
|
|
|
2955
3027
|
// src/molecules/time-select.tsx
|
|
2956
|
-
var
|
|
3028
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2957
3029
|
var getOptionValue = (date, timeValue) => {
|
|
2958
3030
|
if (date && timeValue) {
|
|
2959
3031
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -2979,14 +3051,14 @@ function TimeSelect(_a) {
|
|
|
2979
3051
|
const [minOption, maxOption] = (0, import_react22.useMemo)(() => {
|
|
2980
3052
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2981
3053
|
}, [maxTime, minTime, time]);
|
|
2982
|
-
return /* @__PURE__ */ (0,
|
|
2983
|
-
/* @__PURE__ */ (0,
|
|
2984
|
-
/* @__PURE__ */ (0,
|
|
3054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
3055
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
3056
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2985
3057
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2986
3058
|
if (!visible) {
|
|
2987
3059
|
return null;
|
|
2988
3060
|
}
|
|
2989
|
-
return /* @__PURE__ */ (0,
|
|
3061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Select.Item, { value: option, children: option }, option);
|
|
2990
3062
|
}) })
|
|
2991
3063
|
] }));
|
|
2992
3064
|
}
|
|
@@ -2998,7 +3070,7 @@ var import_react25 = require("react");
|
|
|
2998
3070
|
var import_themes23 = require("@radix-ui/themes");
|
|
2999
3071
|
var import_clsx12 = require("clsx");
|
|
3000
3072
|
var import_react23 = require("react");
|
|
3001
|
-
var
|
|
3073
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3002
3074
|
var Root4 = (0, import_react23.forwardRef)((props, ref) => {
|
|
3003
3075
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
3004
3076
|
const { color: radixColor, className: colorClassName } = (0, import_react23.useMemo)(
|
|
@@ -3006,7 +3078,7 @@ var Root4 = (0, import_react23.forwardRef)((props, ref) => {
|
|
|
3006
3078
|
[color]
|
|
3007
3079
|
);
|
|
3008
3080
|
const appliedColor = colorClassName ? void 0 : radixColor;
|
|
3009
|
-
return /* @__PURE__ */ (0,
|
|
3081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3010
3082
|
import_themes23.RadioCards.Root,
|
|
3011
3083
|
__spreadProps(__spreadValues({}, rest), {
|
|
3012
3084
|
className: (0, import_clsx12.clsx)(colorClassName, className),
|
|
@@ -3024,11 +3096,11 @@ var RadioCards = __spreadProps(__spreadValues({}, import_themes23.RadioCards), {
|
|
|
3024
3096
|
var import_themes24 = require("@radix-ui/themes");
|
|
3025
3097
|
var import_clsx13 = require("clsx");
|
|
3026
3098
|
var import_react24 = require("react");
|
|
3027
|
-
var
|
|
3099
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3028
3100
|
var Radio = (0, import_react24.forwardRef)((props, ref) => {
|
|
3029
3101
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
3030
3102
|
const { color: radixColor, className: colorClassName } = resolveColor(color);
|
|
3031
|
-
return /* @__PURE__ */ (0,
|
|
3103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3032
3104
|
import_themes24.Radio,
|
|
3033
3105
|
__spreadProps(__spreadValues({}, rest), {
|
|
3034
3106
|
className: (0, import_clsx13.clsx)(colorClassName, className),
|
|
@@ -3040,7 +3112,7 @@ var Radio = (0, import_react24.forwardRef)((props, ref) => {
|
|
|
3040
3112
|
Radio.displayName = "Radio";
|
|
3041
3113
|
|
|
3042
3114
|
// src/molecules/radio-button-card.tsx
|
|
3043
|
-
var
|
|
3115
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3044
3116
|
var RadioCardContext = (0, import_react25.createContext)({});
|
|
3045
3117
|
function Root5(props) {
|
|
3046
3118
|
const [value, setValue] = (0, import_react25.useState)(props.value || props.defaultValue);
|
|
@@ -3052,7 +3124,7 @@ function Root5(props) {
|
|
|
3052
3124
|
},
|
|
3053
3125
|
[props]
|
|
3054
3126
|
);
|
|
3055
|
-
return /* @__PURE__ */ (0,
|
|
3127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
3056
3128
|
}
|
|
3057
3129
|
function Item(_a) {
|
|
3058
3130
|
var _b = _a, {
|
|
@@ -3069,9 +3141,9 @@ function Item(_a) {
|
|
|
3069
3141
|
"justify",
|
|
3070
3142
|
"RadioWrapper"
|
|
3071
3143
|
]);
|
|
3072
|
-
return /* @__PURE__ */ (0,
|
|
3144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
3073
3145
|
children,
|
|
3074
|
-
/* @__PURE__ */ (0,
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3075
3147
|
Radio,
|
|
3076
3148
|
{
|
|
3077
3149
|
checked: itemRest.value === value,
|
|
@@ -3094,7 +3166,7 @@ var import_themes25 = require("@radix-ui/themes");
|
|
|
3094
3166
|
var import_clsx14 = require("clsx");
|
|
3095
3167
|
var import_react26 = require("react");
|
|
3096
3168
|
var import_themes26 = require("@radix-ui/themes");
|
|
3097
|
-
var
|
|
3169
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3098
3170
|
function Link(props) {
|
|
3099
3171
|
const _a = props, { size, children, variant, color, className } = _a, rest = __objRest(_a, ["size", "children", "variant", "color", "className"]);
|
|
3100
3172
|
const { color: radixColor, className: colorClassName } = (0, import_react26.useMemo)(
|
|
@@ -3113,7 +3185,7 @@ function Link(props) {
|
|
|
3113
3185
|
return size;
|
|
3114
3186
|
}
|
|
3115
3187
|
}, [size, variant]);
|
|
3116
|
-
return /* @__PURE__ */ (0,
|
|
3188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3117
3189
|
import_themes25.Link,
|
|
3118
3190
|
__spreadProps(__spreadValues({}, rest), {
|
|
3119
3191
|
className: (0, import_clsx14.clsx)(colorClassName, className),
|
|
@@ -3125,24 +3197,24 @@ function Link(props) {
|
|
|
3125
3197
|
}
|
|
3126
3198
|
|
|
3127
3199
|
// src/molecules/download-card.tsx
|
|
3128
|
-
var
|
|
3200
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3129
3201
|
function DownloadCard({
|
|
3130
3202
|
fileName,
|
|
3131
3203
|
url,
|
|
3132
3204
|
createdAt,
|
|
3133
3205
|
size
|
|
3134
3206
|
}) {
|
|
3135
|
-
return /* @__PURE__ */ (0,
|
|
3207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3136
3208
|
IconButton,
|
|
3137
3209
|
{
|
|
3138
3210
|
mt: "3",
|
|
3139
3211
|
size: "large",
|
|
3140
3212
|
style: { width: "100%", height: 56 },
|
|
3141
3213
|
variant: "soft",
|
|
3142
|
-
children: /* @__PURE__ */ (0,
|
|
3143
|
-
/* @__PURE__ */ (0,
|
|
3144
|
-
/* @__PURE__ */ (0,
|
|
3145
|
-
/* @__PURE__ */ (0,
|
|
3214
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
3215
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons5.DownloadIcon, { height: 20, width: 20 }) }),
|
|
3216
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
3217
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3146
3218
|
Typo,
|
|
3147
3219
|
{
|
|
3148
3220
|
style: {
|
|
@@ -3152,7 +3224,7 @@ function DownloadCard({
|
|
|
3152
3224
|
children: fileName
|
|
3153
3225
|
}
|
|
3154
3226
|
),
|
|
3155
|
-
/* @__PURE__ */ (0,
|
|
3227
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
3156
3228
|
] })
|
|
3157
3229
|
] })
|
|
3158
3230
|
}
|
|
@@ -3160,22 +3232,22 @@ function DownloadCard({
|
|
|
3160
3232
|
}
|
|
3161
3233
|
|
|
3162
3234
|
// src/molecules/ghost-post.tsx
|
|
3163
|
-
var
|
|
3235
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3164
3236
|
function GhostPost(props) {
|
|
3165
3237
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
3166
|
-
return /* @__PURE__ */ (0,
|
|
3238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3167
3239
|
ThemeProvider,
|
|
3168
3240
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
3169
3241
|
accentColor: "iris",
|
|
3170
3242
|
scaling: "110%",
|
|
3171
3243
|
style: {},
|
|
3172
|
-
children: html ? /* @__PURE__ */ (0,
|
|
3244
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes9.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3173
3245
|
"div",
|
|
3174
3246
|
{
|
|
3175
3247
|
className: "gh-content",
|
|
3176
3248
|
dangerouslySetInnerHTML: { __html: html }
|
|
3177
3249
|
}
|
|
3178
|
-
) }) : /* @__PURE__ */ (0,
|
|
3250
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3179
3251
|
import_themes.Flex,
|
|
3180
3252
|
{
|
|
3181
3253
|
align: "center",
|
|
@@ -3185,8 +3257,8 @@ function GhostPost(props) {
|
|
|
3185
3257
|
justify: "center",
|
|
3186
3258
|
width: "100%",
|
|
3187
3259
|
children: [
|
|
3188
|
-
/* @__PURE__ */ (0,
|
|
3189
|
-
/* @__PURE__ */ (0,
|
|
3260
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
3261
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3190
3262
|
Heading2,
|
|
3191
3263
|
{
|
|
3192
3264
|
align: "center",
|
|
@@ -3197,7 +3269,7 @@ function GhostPost(props) {
|
|
|
3197
3269
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
3198
3270
|
}
|
|
3199
3271
|
),
|
|
3200
|
-
/* @__PURE__ */ (0,
|
|
3272
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
3201
3273
|
]
|
|
3202
3274
|
}
|
|
3203
3275
|
)
|
|
@@ -3207,7 +3279,7 @@ function GhostPost(props) {
|
|
|
3207
3279
|
|
|
3208
3280
|
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
3209
3281
|
var import_react27 = require("react");
|
|
3210
|
-
var
|
|
3282
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3211
3283
|
var EMPTY_SELECTED_ITEM = {
|
|
3212
3284
|
uuid: "",
|
|
3213
3285
|
type: "sectionTitle",
|
|
@@ -3346,7 +3418,7 @@ function CurriculumProvider(props) {
|
|
|
3346
3418
|
if (item.type === "sectionTitle") return;
|
|
3347
3419
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(item);
|
|
3348
3420
|
}, [list, onChangeSelectedContent, selectedIndexState]);
|
|
3349
|
-
return /* @__PURE__ */ (0,
|
|
3421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3350
3422
|
CurriculumContext.Provider,
|
|
3351
3423
|
{
|
|
3352
3424
|
value: {
|
|
@@ -3386,7 +3458,7 @@ function useCurriculumContext() {
|
|
|
3386
3458
|
|
|
3387
3459
|
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
3388
3460
|
var import_react28 = require("react");
|
|
3389
|
-
var
|
|
3461
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3390
3462
|
function CurriculumSubNav() {
|
|
3391
3463
|
const {
|
|
3392
3464
|
selectedItem,
|
|
@@ -3407,7 +3479,7 @@ function CurriculumSubNav() {
|
|
|
3407
3479
|
scrollNavItem(moveIndex.toString());
|
|
3408
3480
|
});
|
|
3409
3481
|
}, [selectNext, scrollNavItem]);
|
|
3410
|
-
return /* @__PURE__ */ (0,
|
|
3482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3411
3483
|
import_themes17.Grid,
|
|
3412
3484
|
{
|
|
3413
3485
|
align: "center",
|
|
@@ -3417,20 +3489,20 @@ function CurriculumSubNav() {
|
|
|
3417
3489
|
py: "2",
|
|
3418
3490
|
rows: "auto",
|
|
3419
3491
|
children: [
|
|
3420
|
-
hasPrev ? /* @__PURE__ */ (0,
|
|
3492
|
+
hasPrev ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3421
3493
|
IconButton,
|
|
3422
3494
|
{
|
|
3423
3495
|
color: "gray",
|
|
3424
3496
|
onClick: onClickPrev,
|
|
3425
3497
|
size: { initial: "medium", md: "large" },
|
|
3426
3498
|
variant: "ghost",
|
|
3427
|
-
children: /* @__PURE__ */ (0,
|
|
3499
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
3428
3500
|
}
|
|
3429
|
-
) : /* @__PURE__ */ (0,
|
|
3430
|
-
/* @__PURE__ */ (0,
|
|
3431
|
-
/* @__PURE__ */ (0,
|
|
3432
|
-
/* @__PURE__ */ (0,
|
|
3433
|
-
/* @__PURE__ */ (0,
|
|
3501
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes9.Box, {}),
|
|
3502
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes9.Box, { width: "100%", children: [
|
|
3503
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes9.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Heading2, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
3504
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes9.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3434
3506
|
Typo,
|
|
3435
3507
|
{
|
|
3436
3508
|
as: "p",
|
|
@@ -3442,16 +3514,16 @@ function CurriculumSubNav() {
|
|
|
3442
3514
|
}
|
|
3443
3515
|
)
|
|
3444
3516
|
] }),
|
|
3445
|
-
hasNext ? /* @__PURE__ */ (0,
|
|
3517
|
+
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3446
3518
|
IconButton,
|
|
3447
3519
|
{
|
|
3448
3520
|
color: "gray",
|
|
3449
3521
|
onClick: onClickNext,
|
|
3450
3522
|
size: { initial: "medium", md: "large" },
|
|
3451
3523
|
variant: "ghost",
|
|
3452
|
-
children: /* @__PURE__ */ (0,
|
|
3524
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
3453
3525
|
}
|
|
3454
|
-
) : /* @__PURE__ */ (0,
|
|
3526
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes9.Box, {})
|
|
3455
3527
|
]
|
|
3456
3528
|
}
|
|
3457
3529
|
);
|
|
@@ -3459,12 +3531,12 @@ function CurriculumSubNav() {
|
|
|
3459
3531
|
|
|
3460
3532
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx
|
|
3461
3533
|
var import_react29 = require("react");
|
|
3462
|
-
var
|
|
3534
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3463
3535
|
function CurriculumVideo(props) {
|
|
3464
3536
|
const { item } = props;
|
|
3465
3537
|
const { url } = item;
|
|
3466
3538
|
const [isLoading, setIsLoading] = (0, import_react29.useState)(true);
|
|
3467
|
-
return /* @__PURE__ */ (0,
|
|
3539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3468
3540
|
import_themes.Flex,
|
|
3469
3541
|
{
|
|
3470
3542
|
align: "center",
|
|
@@ -3476,7 +3548,7 @@ function CurriculumVideo(props) {
|
|
|
3476
3548
|
position: "relative"
|
|
3477
3549
|
},
|
|
3478
3550
|
children: [
|
|
3479
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
3551
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3480
3552
|
import_themes.Flex,
|
|
3481
3553
|
{
|
|
3482
3554
|
align: "center",
|
|
@@ -3491,10 +3563,10 @@ function CurriculumVideo(props) {
|
|
|
3491
3563
|
color: "white"
|
|
3492
3564
|
},
|
|
3493
3565
|
width: "100%",
|
|
3494
|
-
children: /* @__PURE__ */ (0,
|
|
3566
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes4.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
3495
3567
|
}
|
|
3496
3568
|
) : null,
|
|
3497
|
-
/* @__PURE__ */ (0,
|
|
3569
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3498
3570
|
"iframe",
|
|
3499
3571
|
{
|
|
3500
3572
|
allowFullScreen: true,
|
|
@@ -3527,7 +3599,7 @@ var import_react31 = require("react");
|
|
|
3527
3599
|
|
|
3528
3600
|
// src/theme/portal-provider.tsx
|
|
3529
3601
|
var import_react30 = require("react");
|
|
3530
|
-
var
|
|
3602
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3531
3603
|
var PortalContext = (0, import_react30.createContext)(
|
|
3532
3604
|
null
|
|
3533
3605
|
);
|
|
@@ -3541,7 +3613,7 @@ var usePortalContainer = () => {
|
|
|
3541
3613
|
};
|
|
3542
3614
|
|
|
3543
3615
|
// src/atoms/dialog.tsx
|
|
3544
|
-
var
|
|
3616
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3545
3617
|
var preventDefault2 = (e) => {
|
|
3546
3618
|
e.preventDefault();
|
|
3547
3619
|
};
|
|
@@ -3576,7 +3648,7 @@ function Content4(props) {
|
|
|
3576
3648
|
"className"
|
|
3577
3649
|
]);
|
|
3578
3650
|
const { dialogContainerRef } = usePortalContainer();
|
|
3579
|
-
return /* @__PURE__ */ (0,
|
|
3651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes27.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Overlay, { className: "rt-BaseDialogScroll rt-DialogScroll DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3580
3652
|
RadixDialog.Content,
|
|
3581
3653
|
__spreadProps(__spreadValues({
|
|
3582
3654
|
className: `DialogContent ${className || ""} rt-BaseDialogContent rt-DialogContent rt-r-size-${size || "3"}`,
|
|
@@ -3591,12 +3663,12 @@ function Content4(props) {
|
|
|
3591
3663
|
}, style)
|
|
3592
3664
|
}, rest), {
|
|
3593
3665
|
children: [
|
|
3594
|
-
/* @__PURE__ */ (0,
|
|
3595
|
-
/* @__PURE__ */ (0,
|
|
3596
|
-
!hideCloseButton && /* @__PURE__ */ (0,
|
|
3666
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes27.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
3667
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" && title !== "" ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Heading2, { mb: "2", variant: "heading3", children: title }) : title }),
|
|
3668
|
+
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons6.Cross1Icon, {}) }) })
|
|
3597
3669
|
] }),
|
|
3598
3670
|
children,
|
|
3599
|
-
buttons ? /* @__PURE__ */ (0,
|
|
3671
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes27.Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
3600
3672
|
]
|
|
3601
3673
|
})
|
|
3602
3674
|
) }) }) });
|
|
@@ -3607,7 +3679,7 @@ function Close2(_a) {
|
|
|
3607
3679
|
} = _b, rest = __objRest(_b, [
|
|
3608
3680
|
"children"
|
|
3609
3681
|
]);
|
|
3610
|
-
return /* @__PURE__ */ (0,
|
|
3682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
3611
3683
|
}
|
|
3612
3684
|
function Trigger3(_a) {
|
|
3613
3685
|
var _b = _a, {
|
|
@@ -3615,7 +3687,7 @@ function Trigger3(_a) {
|
|
|
3615
3687
|
} = _b, rest = __objRest(_b, [
|
|
3616
3688
|
"children"
|
|
3617
3689
|
]);
|
|
3618
|
-
return /* @__PURE__ */ (0,
|
|
3690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
3619
3691
|
}
|
|
3620
3692
|
function Root7(props) {
|
|
3621
3693
|
const prevOpenRef = (0, import_react31.useRef)(void 0);
|
|
@@ -3650,7 +3722,7 @@ function Root7(props) {
|
|
|
3650
3722
|
}
|
|
3651
3723
|
};
|
|
3652
3724
|
}, []);
|
|
3653
|
-
return /* @__PURE__ */ (0,
|
|
3725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadixDialog.Root, __spreadValues({}, props));
|
|
3654
3726
|
}
|
|
3655
3727
|
var Dialog = {
|
|
3656
3728
|
Root: Root7,
|
|
@@ -3666,7 +3738,7 @@ var import_react32 = require("react");
|
|
|
3666
3738
|
var import_formik = require("formik");
|
|
3667
3739
|
var import_lodash_es = require("lodash-es");
|
|
3668
3740
|
var Yup = __toESM(require("yup"), 1);
|
|
3669
|
-
var
|
|
3741
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3670
3742
|
var CurriculumReviewContext = (0, import_react32.createContext)(void 0);
|
|
3671
3743
|
function getInitialAnswers(defaultValues, questions) {
|
|
3672
3744
|
return questions.reduce((acc, q) => {
|
|
@@ -3795,7 +3867,7 @@ function CurriculumReviewProvider({
|
|
|
3795
3867
|
});
|
|
3796
3868
|
}
|
|
3797
3869
|
}, [currentQuestion == null ? void 0 : currentQuestion.uuid, currentAnswer, onReviewValueChange]);
|
|
3798
|
-
return /* @__PURE__ */ (0,
|
|
3870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3799
3871
|
CurriculumReviewContext.Provider,
|
|
3800
3872
|
{
|
|
3801
3873
|
value: {
|
|
@@ -3917,7 +3989,7 @@ var getCurriculumContentSubTypeText = (type) => {
|
|
|
3917
3989
|
};
|
|
3918
3990
|
|
|
3919
3991
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
3920
|
-
var
|
|
3992
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3921
3993
|
var renderPreviewContent = (args) => {
|
|
3922
3994
|
const { question } = args;
|
|
3923
3995
|
const Icon = getCurriculumIcon({
|
|
@@ -3930,7 +4002,7 @@ var renderPreviewContent = (args) => {
|
|
|
3930
4002
|
question.duration ? `${question.duration}\uBD84` : ""
|
|
3931
4003
|
].filter(Boolean).join(" | ");
|
|
3932
4004
|
};
|
|
3933
|
-
return /* @__PURE__ */ (0,
|
|
4005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3934
4006
|
import_themes17.Grid,
|
|
3935
4007
|
{
|
|
3936
4008
|
columns: "16px 1fr",
|
|
@@ -3939,10 +4011,10 @@ var renderPreviewContent = (args) => {
|
|
|
3939
4011
|
py: "2",
|
|
3940
4012
|
width: "100%",
|
|
3941
4013
|
children: [
|
|
3942
|
-
/* @__PURE__ */ (0,
|
|
3943
|
-
/* @__PURE__ */ (0,
|
|
3944
|
-
/* @__PURE__ */ (0,
|
|
3945
|
-
/* @__PURE__ */ (0,
|
|
4014
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes9.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
4015
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes9.Box, { children: [
|
|
4016
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
4017
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3946
4018
|
] })
|
|
3947
4019
|
]
|
|
3948
4020
|
},
|
|
@@ -3965,7 +4037,7 @@ var renderReviewContent = (args) => {
|
|
|
3965
4037
|
const color = getCurriculumQuestionIconColor(question.type);
|
|
3966
4038
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3967
4039
|
const value = getReviewContentValue(question, answer);
|
|
3968
|
-
return /* @__PURE__ */ (0,
|
|
4040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3969
4041
|
import_themes17.Grid,
|
|
3970
4042
|
{
|
|
3971
4043
|
columns: "16px 1fr",
|
|
@@ -3974,10 +4046,10 @@ var renderReviewContent = (args) => {
|
|
|
3974
4046
|
py: "2",
|
|
3975
4047
|
width: "100%",
|
|
3976
4048
|
children: [
|
|
3977
|
-
/* @__PURE__ */ (0,
|
|
3978
|
-
/* @__PURE__ */ (0,
|
|
3979
|
-
/* @__PURE__ */ (0,
|
|
3980
|
-
/* @__PURE__ */ (0,
|
|
4049
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes9.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { color }) }),
|
|
4050
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes9.Box, { children: [
|
|
4051
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
4052
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3981
4053
|
] })
|
|
3982
4054
|
]
|
|
3983
4055
|
},
|
|
@@ -3986,7 +4058,7 @@ var renderReviewContent = (args) => {
|
|
|
3986
4058
|
};
|
|
3987
4059
|
function StartReview({ onStart }) {
|
|
3988
4060
|
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
3989
|
-
return /* @__PURE__ */ (0,
|
|
4061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3990
4062
|
import_themes.Flex,
|
|
3991
4063
|
{
|
|
3992
4064
|
align: "center",
|
|
@@ -3994,7 +4066,7 @@ function StartReview({ onStart }) {
|
|
|
3994
4066
|
height: "100%",
|
|
3995
4067
|
justify: "center",
|
|
3996
4068
|
width: "100%",
|
|
3997
|
-
children: /* @__PURE__ */ (0,
|
|
4069
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3998
4070
|
import_themes.Flex,
|
|
3999
4071
|
{
|
|
4000
4072
|
align: "center",
|
|
@@ -4007,21 +4079,21 @@ function StartReview({ onStart }) {
|
|
|
4007
4079
|
px: { initial: "4", sm: "0" },
|
|
4008
4080
|
width: "100%",
|
|
4009
4081
|
children: [
|
|
4010
|
-
/* @__PURE__ */ (0,
|
|
4011
|
-
/* @__PURE__ */ (0,
|
|
4012
|
-
/* @__PURE__ */ (0,
|
|
4013
|
-
/* @__PURE__ */ (0,
|
|
4014
|
-
/* @__PURE__ */ (0,
|
|
4082
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
4084
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes28.Separator, { my: "4", style: { width: 100 } }),
|
|
4085
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
4086
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
4015
4087
|
" ",
|
|
4016
|
-
/* @__PURE__ */ (0,
|
|
4088
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { children: reviewContents.description })
|
|
4017
4089
|
] }),
|
|
4018
|
-
/* @__PURE__ */ (0,
|
|
4090
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes9.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
4019
4091
|
if (done) {
|
|
4020
4092
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
4021
4093
|
}
|
|
4022
4094
|
return renderPreviewContent({ question });
|
|
4023
4095
|
}) }),
|
|
4024
|
-
/* @__PURE__ */ (0,
|
|
4096
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
|
|
4025
4097
|
]
|
|
4026
4098
|
}
|
|
4027
4099
|
)
|
|
@@ -4031,13 +4103,13 @@ function StartReview({ onStart }) {
|
|
|
4031
4103
|
var start_review_default = StartReview;
|
|
4032
4104
|
|
|
4033
4105
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
4034
|
-
var
|
|
4106
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4035
4107
|
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
4036
4108
|
function CompleteReview(props) {
|
|
4037
4109
|
const { onClickReviewMyAnswer } = props;
|
|
4038
4110
|
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
4039
4111
|
const { reviewMeta } = curriculum.contents;
|
|
4040
|
-
return /* @__PURE__ */ (0,
|
|
4112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
4041
4113
|
import_themes.Flex,
|
|
4042
4114
|
{
|
|
4043
4115
|
align: "center",
|
|
@@ -4050,9 +4122,9 @@ function CompleteReview(props) {
|
|
|
4050
4122
|
my: "6",
|
|
4051
4123
|
width: "100%",
|
|
4052
4124
|
children: [
|
|
4053
|
-
/* @__PURE__ */ (0,
|
|
4054
|
-
/* @__PURE__ */ (0,
|
|
4055
|
-
/* @__PURE__ */ (0,
|
|
4125
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes.Flex, { align: "center", direction: "column", children: [
|
|
4126
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Heading2, { mb: "6", variant: "heading5", weight: "regular", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewTopTitle) || "\uC751\uB2F5\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uC81C\uCD9C\uD588\uC2B5\uB2C8\uB2E4" }),
|
|
4127
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4056
4128
|
"img",
|
|
4057
4129
|
{
|
|
4058
4130
|
alt: "complete-review",
|
|
@@ -4061,19 +4133,19 @@ function CompleteReview(props) {
|
|
|
4061
4133
|
width: 118
|
|
4062
4134
|
}
|
|
4063
4135
|
),
|
|
4064
|
-
/* @__PURE__ */ (0,
|
|
4065
|
-
/* @__PURE__ */ (0,
|
|
4066
|
-
/* @__PURE__ */ (0,
|
|
4136
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { color: "gray", mt: "6", variant: "caption", children: sectionTitle }),
|
|
4137
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Heading2, { variant: "heading5", children: reviewContents.title }),
|
|
4138
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { align: "center", color: "gray", mt: "6", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewDescription) || `\uC774\uBC88 \uD559\uC2B5\uC774 \uB9AC\uB354\uC2ED\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uAE30\uB97C \uBC14\uB78D\uB2C8\uB2E4.
|
|
4067
4139
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
4068
4140
|
] }),
|
|
4069
|
-
/* @__PURE__ */ (0,
|
|
4070
|
-
/* @__PURE__ */ (0,
|
|
4141
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes17.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
4142
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
4071
4143
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
4072
|
-
/* @__PURE__ */ (0,
|
|
4144
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons.ResetIcon, {})
|
|
4073
4145
|
] }),
|
|
4074
|
-
/* @__PURE__ */ (0,
|
|
4146
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Button, { onClick: onClickNextContents, children: [
|
|
4075
4147
|
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
4076
|
-
/* @__PURE__ */ (0,
|
|
4148
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons.HomeIcon, {})
|
|
4077
4149
|
] })
|
|
4078
4150
|
] })
|
|
4079
4151
|
]
|
|
@@ -4083,9 +4155,9 @@ function CompleteReview(props) {
|
|
|
4083
4155
|
var complete_review_default = CompleteReview;
|
|
4084
4156
|
|
|
4085
4157
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.tsx
|
|
4086
|
-
var
|
|
4158
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4087
4159
|
function AlignCenter(props) {
|
|
4088
|
-
return /* @__PURE__ */ (0,
|
|
4160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4089
4161
|
import_themes.Flex,
|
|
4090
4162
|
__spreadValues({
|
|
4091
4163
|
align: "center",
|
|
@@ -4100,7 +4172,7 @@ function ReviewQuestionLayout({
|
|
|
4100
4172
|
Body,
|
|
4101
4173
|
Footer
|
|
4102
4174
|
}) {
|
|
4103
|
-
return /* @__PURE__ */ (0,
|
|
4175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
4104
4176
|
import_themes17.Grid,
|
|
4105
4177
|
{
|
|
4106
4178
|
align: "center",
|
|
@@ -4113,18 +4185,18 @@ function ReviewQuestionLayout({
|
|
|
4113
4185
|
},
|
|
4114
4186
|
width: "100%",
|
|
4115
4187
|
children: [
|
|
4116
|
-
/* @__PURE__ */ (0,
|
|
4117
|
-
/* @__PURE__ */ (0,
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4188
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes9.Box, { maxWidth: "650px", width: "100%", children: Header }) }),
|
|
4189
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4190
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4119
4191
|
AlignCenter,
|
|
4120
4192
|
{
|
|
4121
4193
|
p: "3",
|
|
4122
4194
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
4123
|
-
children: /* @__PURE__ */ (0,
|
|
4195
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes9.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
4124
4196
|
}
|
|
4125
4197
|
),
|
|
4126
|
-
/* @__PURE__ */ (0,
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4198
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4199
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes9.Box, { maxWidth: "650px", width: "100%", children: Footer }) })
|
|
4128
4200
|
]
|
|
4129
4201
|
}
|
|
4130
4202
|
);
|
|
@@ -4135,11 +4207,11 @@ var review_question_layout_default = ReviewQuestionLayout;
|
|
|
4135
4207
|
var import_themes29 = require("@radix-ui/themes");
|
|
4136
4208
|
var import_clsx15 = require("clsx");
|
|
4137
4209
|
var import_react33 = require("react");
|
|
4138
|
-
var
|
|
4210
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4139
4211
|
var Progress = (0, import_react33.forwardRef)((props, ref) => {
|
|
4140
4212
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
4141
4213
|
const { color: radixColor, className: colorClassName } = resolveColor(color);
|
|
4142
|
-
return /* @__PURE__ */ (0,
|
|
4214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4143
4215
|
import_themes29.Progress,
|
|
4144
4216
|
__spreadProps(__spreadValues({}, rest), {
|
|
4145
4217
|
className: (0, import_clsx15.clsx)(colorClassName, className),
|
|
@@ -4151,14 +4223,14 @@ var Progress = (0, import_react33.forwardRef)((props, ref) => {
|
|
|
4151
4223
|
Progress.displayName = "Progress";
|
|
4152
4224
|
|
|
4153
4225
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
4154
|
-
var
|
|
4226
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4155
4227
|
function ReviewQuestionHeader({
|
|
4156
4228
|
index,
|
|
4157
4229
|
total
|
|
4158
4230
|
}) {
|
|
4159
4231
|
const { reviewContents } = useCurriculumReviewContext();
|
|
4160
|
-
return /* @__PURE__ */ (0,
|
|
4161
|
-
/* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes9.Box, { height: "100%", width: "100%", children: [
|
|
4233
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes17.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4162
4234
|
Heading2,
|
|
4163
4235
|
{
|
|
4164
4236
|
mb: "3",
|
|
@@ -4167,22 +4239,22 @@ function ReviewQuestionHeader({
|
|
|
4167
4239
|
children: reviewContents.title
|
|
4168
4240
|
}
|
|
4169
4241
|
) }),
|
|
4170
|
-
/* @__PURE__ */ (0,
|
|
4171
|
-
/* @__PURE__ */ (0,
|
|
4172
|
-
/* @__PURE__ */ (0,
|
|
4242
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes.Flex, { justify: "between", mb: "2", width: "100%", children: [
|
|
4243
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: "\uC9C4\uD589 \uC0C1\uD669" }),
|
|
4244
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: [
|
|
4173
4245
|
index + 1,
|
|
4174
4246
|
" / ",
|
|
4175
4247
|
total,
|
|
4176
4248
|
" \uC644\uB8CC"
|
|
4177
4249
|
] })
|
|
4178
4250
|
] }),
|
|
4179
|
-
/* @__PURE__ */ (0,
|
|
4251
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Progress, { color: "iris", max: total, value: index + 1 })
|
|
4180
4252
|
] });
|
|
4181
4253
|
}
|
|
4182
4254
|
var review_question_header_default = ReviewQuestionHeader;
|
|
4183
4255
|
|
|
4184
4256
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.tsx
|
|
4185
|
-
var
|
|
4257
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4186
4258
|
function ReviewQuestionFooter({
|
|
4187
4259
|
index,
|
|
4188
4260
|
onNext,
|
|
@@ -4192,22 +4264,22 @@ function ReviewQuestionFooter({
|
|
|
4192
4264
|
onSubmit,
|
|
4193
4265
|
isLoading
|
|
4194
4266
|
}) {
|
|
4195
|
-
return /* @__PURE__ */ (0,
|
|
4196
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
4197
|
-
/* @__PURE__ */ (0,
|
|
4267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes17.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
4268
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
4269
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons.ChevronLeftIcon, {}),
|
|
4198
4270
|
"\uC774\uC804\uC73C\uB85C"
|
|
4199
|
-
] }) : /* @__PURE__ */ (0,
|
|
4200
|
-
isLast ? /* @__PURE__ */ (0,
|
|
4201
|
-
/* @__PURE__ */ (0,
|
|
4271
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_themes9.Box, {}),
|
|
4272
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
4273
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons.PaperPlaneIcon, {}),
|
|
4202
4274
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
4203
|
-
] }) : /* @__PURE__ */ (0,
|
|
4275
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4204
4276
|
Button,
|
|
4205
4277
|
{
|
|
4206
4278
|
disabled: isNextButtonDisabled,
|
|
4207
4279
|
onClick: onNext,
|
|
4208
4280
|
variant: "surface",
|
|
4209
4281
|
children: [
|
|
4210
|
-
/* @__PURE__ */ (0,
|
|
4282
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons.ChevronRightIcon, {}),
|
|
4211
4283
|
"\uB2E4\uC74C\uC73C\uB85C"
|
|
4212
4284
|
]
|
|
4213
4285
|
}
|
|
@@ -4222,7 +4294,7 @@ var import_react35 = require("react");
|
|
|
4222
4294
|
// src/atoms/card.tsx
|
|
4223
4295
|
var import_react34 = require("react");
|
|
4224
4296
|
var import_themes30 = require("@radix-ui/themes");
|
|
4225
|
-
var
|
|
4297
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4226
4298
|
var Card = (0, import_react34.forwardRef)(
|
|
4227
4299
|
(props, forwardedRef) => {
|
|
4228
4300
|
const _a = props, { borderDisable, borderRadius, error } = _a, rest = __objRest(_a, ["borderDisable", "borderRadius", "error"]);
|
|
@@ -4239,7 +4311,7 @@ var Card = (0, import_react34.forwardRef)(
|
|
|
4239
4311
|
const errorClsName = (0, import_react34.useMemo)(() => {
|
|
4240
4312
|
return error ? " error" : "";
|
|
4241
4313
|
}, [error]);
|
|
4242
|
-
return /* @__PURE__ */ (0,
|
|
4314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4243
4315
|
import_themes30.Card,
|
|
4244
4316
|
__spreadProps(__spreadValues({
|
|
4245
4317
|
variant: "surface"
|
|
@@ -4254,7 +4326,7 @@ var Card = (0, import_react34.forwardRef)(
|
|
|
4254
4326
|
Card.displayName = "Card";
|
|
4255
4327
|
|
|
4256
4328
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
4257
|
-
var
|
|
4329
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4258
4330
|
function ReviewQuestionContentHeader({
|
|
4259
4331
|
type,
|
|
4260
4332
|
title,
|
|
@@ -4262,9 +4334,9 @@ function ReviewQuestionContentHeader({
|
|
|
4262
4334
|
icon
|
|
4263
4335
|
}) {
|
|
4264
4336
|
const Icon = getCurriculumIcon({ type, icon });
|
|
4265
|
-
return /* @__PURE__ */ (0,
|
|
4266
|
-
/* @__PURE__ */ (0,
|
|
4267
|
-
/* @__PURE__ */ (0,
|
|
4337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes9.Box, { children: [
|
|
4338
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_themes.Flex, { gap: "2", mb: "3", children: [
|
|
4339
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes9.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4268
4340
|
Icon,
|
|
4269
4341
|
{
|
|
4270
4342
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -4272,14 +4344,14 @@ function ReviewQuestionContentHeader({
|
|
|
4272
4344
|
width: "16"
|
|
4273
4345
|
}
|
|
4274
4346
|
) }),
|
|
4275
|
-
/* @__PURE__ */ (0,
|
|
4347
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typo, { color: "gray", weight: "bold", children: title })
|
|
4276
4348
|
] }),
|
|
4277
|
-
/* @__PURE__ */ (0,
|
|
4349
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typo, { as: "p", color: "gray", children: question })
|
|
4278
4350
|
] });
|
|
4279
4351
|
}
|
|
4280
4352
|
|
|
4281
4353
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
4282
|
-
var
|
|
4354
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4283
4355
|
var correctAnswerStyle = {
|
|
4284
4356
|
backgroundColor: "var(--green-a2)"
|
|
4285
4357
|
};
|
|
@@ -4296,8 +4368,8 @@ function ReviewQuestionRadio(props) {
|
|
|
4296
4368
|
if (isWrong) return "red";
|
|
4297
4369
|
return void 0;
|
|
4298
4370
|
}, [isCorrect, isWrong]);
|
|
4299
|
-
return /* @__PURE__ */ (0,
|
|
4300
|
-
/* @__PURE__ */ (0,
|
|
4371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes17.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4372
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4301
4373
|
ReviewQuestionContentHeader,
|
|
4302
4374
|
{
|
|
4303
4375
|
icon: question.icon,
|
|
@@ -4306,8 +4378,8 @@ function ReviewQuestionRadio(props) {
|
|
|
4306
4378
|
type: question.type
|
|
4307
4379
|
}
|
|
4308
4380
|
) }),
|
|
4309
|
-
/* @__PURE__ */ (0,
|
|
4310
|
-
/* @__PURE__ */ (0,
|
|
4381
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes17.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
4382
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes9.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4311
4383
|
RadioButtonCard.Root,
|
|
4312
4384
|
{
|
|
4313
4385
|
color: radioColor,
|
|
@@ -4319,7 +4391,7 @@ function ReviewQuestionRadio(props) {
|
|
|
4319
4391
|
position: "absolute"
|
|
4320
4392
|
},
|
|
4321
4393
|
value: answer,
|
|
4322
|
-
children: /* @__PURE__ */ (0,
|
|
4394
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes.Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
|
|
4323
4395
|
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
4324
4396
|
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
4325
4397
|
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
@@ -4327,15 +4399,15 @@ function ReviewQuestionRadio(props) {
|
|
|
4327
4399
|
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
4328
4400
|
return {};
|
|
4329
4401
|
})();
|
|
4330
|
-
return /* @__PURE__ */ (0,
|
|
4402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4331
4403
|
RadioButtonCard.Item,
|
|
4332
4404
|
{
|
|
4333
4405
|
style,
|
|
4334
4406
|
value: i.toString(),
|
|
4335
|
-
children: /* @__PURE__ */ (0,
|
|
4336
|
-
/* @__PURE__ */ (0,
|
|
4337
|
-
isThisOptionCorrect ? /* @__PURE__ */ (0,
|
|
4338
|
-
isThisOptionWrong ? /* @__PURE__ */ (0,
|
|
4407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_themes9.Box, { children: [
|
|
4408
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { as: "p", children: option.label }),
|
|
4409
|
+
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
4410
|
+
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
4339
4411
|
] })
|
|
4340
4412
|
},
|
|
4341
4413
|
`${option.label}-${i}`
|
|
@@ -4343,7 +4415,7 @@ function ReviewQuestionRadio(props) {
|
|
|
4343
4415
|
}) })
|
|
4344
4416
|
}
|
|
4345
4417
|
) }),
|
|
4346
|
-
/* @__PURE__ */ (0,
|
|
4418
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes.Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
|
|
4347
4419
|
] })
|
|
4348
4420
|
] });
|
|
4349
4421
|
}
|
|
@@ -4352,7 +4424,7 @@ var review_question_radio_default = ReviewQuestionRadio;
|
|
|
4352
4424
|
// src/atoms/text-area.tsx
|
|
4353
4425
|
var import_themes31 = require("@radix-ui/themes");
|
|
4354
4426
|
var import_react36 = require("react");
|
|
4355
|
-
var
|
|
4427
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4356
4428
|
var TextArea = (0, import_react36.forwardRef)(
|
|
4357
4429
|
(props, ref) => {
|
|
4358
4430
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
@@ -4364,7 +4436,7 @@ var TextArea = (0, import_react36.forwardRef)(
|
|
|
4364
4436
|
return __spreadValues(__spreadValues({}, style || {}), errorStyle);
|
|
4365
4437
|
}, [error, style]);
|
|
4366
4438
|
const classNameStr = error ? `error ${className}` : className;
|
|
4367
|
-
return /* @__PURE__ */ (0,
|
|
4439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4368
4440
|
import_themes31.TextArea,
|
|
4369
4441
|
__spreadProps(__spreadValues({}, rest), {
|
|
4370
4442
|
className: classNameStr,
|
|
@@ -4380,7 +4452,7 @@ TextArea.displayName = "TextArea";
|
|
|
4380
4452
|
var import_themes32 = require("@radix-ui/themes");
|
|
4381
4453
|
var import_clsx16 = require("clsx");
|
|
4382
4454
|
var import_react37 = require("react");
|
|
4383
|
-
var
|
|
4455
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4384
4456
|
var Root8 = (0, import_react37.forwardRef)((props, ref) => {
|
|
4385
4457
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
4386
4458
|
const { color: radixColor, className: colorClassName } = (0, import_react37.useMemo)(
|
|
@@ -4388,7 +4460,7 @@ var Root8 = (0, import_react37.forwardRef)((props, ref) => {
|
|
|
4388
4460
|
[color]
|
|
4389
4461
|
);
|
|
4390
4462
|
const appliedColor = colorClassName ? void 0 : radixColor;
|
|
4391
|
-
return /* @__PURE__ */ (0,
|
|
4463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4392
4464
|
import_themes32.Callout.Root,
|
|
4393
4465
|
__spreadProps(__spreadValues({}, rest), {
|
|
4394
4466
|
className: (0, import_clsx16.clsx)(colorClassName, className),
|
|
@@ -4403,12 +4475,12 @@ var Callout = __spreadProps(__spreadValues({}, import_themes32.Callout), {
|
|
|
4403
4475
|
});
|
|
4404
4476
|
|
|
4405
4477
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
4406
|
-
var
|
|
4478
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4407
4479
|
function ReviewQuestionText(props) {
|
|
4408
4480
|
const { question, answer, onChange } = props;
|
|
4409
4481
|
const minLengthNotMet = question.minLength && answer.length < question.minLength;
|
|
4410
4482
|
const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
|
|
4411
|
-
return /* @__PURE__ */ (0,
|
|
4483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4412
4484
|
Card,
|
|
4413
4485
|
{
|
|
4414
4486
|
size: "2",
|
|
@@ -4416,9 +4488,9 @@ function ReviewQuestionText(props) {
|
|
|
4416
4488
|
width: "100%",
|
|
4417
4489
|
height: "100%"
|
|
4418
4490
|
},
|
|
4419
|
-
children: /* @__PURE__ */ (0,
|
|
4420
|
-
/* @__PURE__ */ (0,
|
|
4421
|
-
/* @__PURE__ */ (0,
|
|
4491
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes17.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
4492
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes17.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4493
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4422
4494
|
ReviewQuestionContentHeader,
|
|
4423
4495
|
{
|
|
4424
4496
|
icon: question.icon,
|
|
@@ -4427,7 +4499,7 @@ function ReviewQuestionText(props) {
|
|
|
4427
4499
|
type: question.type
|
|
4428
4500
|
}
|
|
4429
4501
|
),
|
|
4430
|
-
/* @__PURE__ */ (0,
|
|
4502
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4431
4503
|
TextArea,
|
|
4432
4504
|
{
|
|
4433
4505
|
mt: "2",
|
|
@@ -4439,17 +4511,17 @@ function ReviewQuestionText(props) {
|
|
|
4439
4511
|
}
|
|
4440
4512
|
)
|
|
4441
4513
|
] }),
|
|
4442
|
-
minLengthNotMet ? /* @__PURE__ */ (0,
|
|
4443
|
-
/* @__PURE__ */ (0,
|
|
4444
|
-
question.minLengthInfoMessage ? /* @__PURE__ */ (0,
|
|
4514
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_themes9.Box, { mt: "2", children: [
|
|
4515
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
|
|
4516
|
+
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4445
4517
|
Callout.Root,
|
|
4446
4518
|
{
|
|
4447
4519
|
color: "iris",
|
|
4448
4520
|
mt: "2",
|
|
4449
4521
|
style: { alignItems: "center" },
|
|
4450
4522
|
children: [
|
|
4451
|
-
/* @__PURE__ */ (0,
|
|
4452
|
-
/* @__PURE__ */ (0,
|
|
4523
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_icons.BellIcon, {}) }),
|
|
4524
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Callout.Text, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
|
|
4453
4525
|
]
|
|
4454
4526
|
}
|
|
4455
4527
|
) : null
|
|
@@ -4464,7 +4536,7 @@ var review_question_text_default = ReviewQuestionText;
|
|
|
4464
4536
|
var import_themes33 = require("@radix-ui/themes");
|
|
4465
4537
|
var import_clsx17 = require("clsx");
|
|
4466
4538
|
var import_react38 = require("react");
|
|
4467
|
-
var
|
|
4539
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4468
4540
|
var Root9 = (0, import_react38.forwardRef)((props, ref) => {
|
|
4469
4541
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
4470
4542
|
const { color: radixColor, className: colorClassName } = (0, import_react38.useMemo)(
|
|
@@ -4472,7 +4544,7 @@ var Root9 = (0, import_react38.forwardRef)((props, ref) => {
|
|
|
4472
4544
|
[color]
|
|
4473
4545
|
);
|
|
4474
4546
|
const appliedColor = colorClassName ? void 0 : radixColor;
|
|
4475
|
-
return /* @__PURE__ */ (0,
|
|
4547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4476
4548
|
import_themes33.RadioGroup.Root,
|
|
4477
4549
|
__spreadProps(__spreadValues({}, rest), {
|
|
4478
4550
|
className: (0, import_clsx17.clsx)(colorClassName, className),
|
|
@@ -4487,12 +4559,12 @@ var RadioGroup = __spreadProps(__spreadValues({}, import_themes33.RadioGroup), {
|
|
|
4487
4559
|
});
|
|
4488
4560
|
|
|
4489
4561
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
4490
|
-
var
|
|
4562
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4491
4563
|
function ReviewQuestionSatisfisRadio(props) {
|
|
4492
4564
|
var _a, _b, _c;
|
|
4493
4565
|
const { question, answer, onChange } = props;
|
|
4494
|
-
return /* @__PURE__ */ (0,
|
|
4495
|
-
/* @__PURE__ */ (0,
|
|
4566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
4567
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4496
4568
|
ReviewQuestionContentHeader,
|
|
4497
4569
|
{
|
|
4498
4570
|
icon: question.icon,
|
|
@@ -4501,18 +4573,18 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
4501
4573
|
type: question.type
|
|
4502
4574
|
}
|
|
4503
4575
|
) }),
|
|
4504
|
-
/* @__PURE__ */ (0,
|
|
4576
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes.Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
|
|
4505
4577
|
] });
|
|
4506
4578
|
}
|
|
4507
4579
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
4508
4580
|
|
|
4509
4581
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
4510
|
-
var
|
|
4582
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4511
4583
|
function ReviewQuestionSatisfisText(props) {
|
|
4512
4584
|
var _a, _b;
|
|
4513
4585
|
const { question, answer, onChange } = props;
|
|
4514
|
-
return /* @__PURE__ */ (0,
|
|
4515
|
-
/* @__PURE__ */ (0,
|
|
4586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_themes17.Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
4587
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4516
4588
|
ReviewQuestionContentHeader,
|
|
4517
4589
|
{
|
|
4518
4590
|
icon: question.icon,
|
|
@@ -4521,7 +4593,7 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4521
4593
|
type: question.type
|
|
4522
4594
|
}
|
|
4523
4595
|
),
|
|
4524
|
-
/* @__PURE__ */ (0,
|
|
4596
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4525
4597
|
TextArea,
|
|
4526
4598
|
{
|
|
4527
4599
|
mt: "2",
|
|
@@ -4539,11 +4611,11 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4539
4611
|
}
|
|
4540
4612
|
|
|
4541
4613
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
4542
|
-
var
|
|
4614
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4543
4615
|
function ReviewQuestionBody(props) {
|
|
4544
4616
|
const { question, answer, error, onChange } = props;
|
|
4545
4617
|
if (question.type === "question_radio") {
|
|
4546
|
-
return /* @__PURE__ */ (0,
|
|
4618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4547
4619
|
review_question_radio_default,
|
|
4548
4620
|
{
|
|
4549
4621
|
answer,
|
|
@@ -4554,7 +4626,7 @@ function ReviewQuestionBody(props) {
|
|
|
4554
4626
|
);
|
|
4555
4627
|
}
|
|
4556
4628
|
if (question.type === "question_text") {
|
|
4557
|
-
return /* @__PURE__ */ (0,
|
|
4629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4558
4630
|
review_question_text_default,
|
|
4559
4631
|
{
|
|
4560
4632
|
answer,
|
|
@@ -4565,7 +4637,7 @@ function ReviewQuestionBody(props) {
|
|
|
4565
4637
|
);
|
|
4566
4638
|
}
|
|
4567
4639
|
if (question.type === "question_satisfaction_option") {
|
|
4568
|
-
return /* @__PURE__ */ (0,
|
|
4640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4569
4641
|
review_question_satisfaction_option_default,
|
|
4570
4642
|
{
|
|
4571
4643
|
answer,
|
|
@@ -4576,7 +4648,7 @@ function ReviewQuestionBody(props) {
|
|
|
4576
4648
|
);
|
|
4577
4649
|
}
|
|
4578
4650
|
if (question.type === "question_satisfaction_text") {
|
|
4579
|
-
return /* @__PURE__ */ (0,
|
|
4651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4580
4652
|
ReviewQuestionSatisfisText,
|
|
4581
4653
|
{
|
|
4582
4654
|
answer,
|
|
@@ -4591,7 +4663,7 @@ function ReviewQuestionBody(props) {
|
|
|
4591
4663
|
var review_question_body_default = ReviewQuestionBody;
|
|
4592
4664
|
|
|
4593
4665
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
4594
|
-
var
|
|
4666
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4595
4667
|
function ReviewQuestion({
|
|
4596
4668
|
question,
|
|
4597
4669
|
index,
|
|
@@ -4606,10 +4678,10 @@ function ReviewQuestion({
|
|
|
4606
4678
|
onSubmit,
|
|
4607
4679
|
isLoading
|
|
4608
4680
|
}) {
|
|
4609
|
-
return /* @__PURE__ */ (0,
|
|
4681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4610
4682
|
review_question_layout_default,
|
|
4611
4683
|
{
|
|
4612
|
-
Body: /* @__PURE__ */ (0,
|
|
4684
|
+
Body: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4613
4685
|
review_question_body_default,
|
|
4614
4686
|
{
|
|
4615
4687
|
answer,
|
|
@@ -4618,7 +4690,7 @@ function ReviewQuestion({
|
|
|
4618
4690
|
question
|
|
4619
4691
|
}
|
|
4620
4692
|
),
|
|
4621
|
-
Footer: /* @__PURE__ */ (0,
|
|
4693
|
+
Footer: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4622
4694
|
review_question_footer_default,
|
|
4623
4695
|
{
|
|
4624
4696
|
index,
|
|
@@ -4630,14 +4702,14 @@ function ReviewQuestion({
|
|
|
4630
4702
|
onSubmit
|
|
4631
4703
|
}
|
|
4632
4704
|
),
|
|
4633
|
-
Header: /* @__PURE__ */ (0,
|
|
4705
|
+
Header: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(review_question_header_default, { index, total })
|
|
4634
4706
|
}
|
|
4635
4707
|
);
|
|
4636
4708
|
}
|
|
4637
4709
|
var ReviewQuestion_default = ReviewQuestion;
|
|
4638
4710
|
|
|
4639
4711
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
4640
|
-
var
|
|
4712
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4641
4713
|
function CurriculumReviewStepsInner() {
|
|
4642
4714
|
const {
|
|
4643
4715
|
formik,
|
|
@@ -4655,10 +4727,10 @@ function CurriculumReviewStepsInner() {
|
|
|
4655
4727
|
} = useCurriculumReviewContext();
|
|
4656
4728
|
const { questions } = reviewContents;
|
|
4657
4729
|
if (step === 0) {
|
|
4658
|
-
return /* @__PURE__ */ (0,
|
|
4730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(start_review_default, { onStart: handleStart });
|
|
4659
4731
|
}
|
|
4660
4732
|
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
4661
|
-
return /* @__PURE__ */ (0,
|
|
4733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4662
4734
|
ReviewQuestion_default,
|
|
4663
4735
|
{
|
|
4664
4736
|
answer: currentAnswer,
|
|
@@ -4676,7 +4748,7 @@ function CurriculumReviewStepsInner() {
|
|
|
4676
4748
|
}
|
|
4677
4749
|
);
|
|
4678
4750
|
}
|
|
4679
|
-
return /* @__PURE__ */ (0,
|
|
4751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(complete_review_default, { onClickReviewMyAnswer });
|
|
4680
4752
|
}
|
|
4681
4753
|
function CurriculumReviewSteps({
|
|
4682
4754
|
contents,
|
|
@@ -4689,7 +4761,7 @@ function CurriculumReviewSteps({
|
|
|
4689
4761
|
mode,
|
|
4690
4762
|
done
|
|
4691
4763
|
}) {
|
|
4692
|
-
return /* @__PURE__ */ (0,
|
|
4764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4693
4765
|
CurriculumReviewProvider,
|
|
4694
4766
|
{
|
|
4695
4767
|
curriculum,
|
|
@@ -4701,14 +4773,14 @@ function CurriculumReviewSteps({
|
|
|
4701
4773
|
onSubmit,
|
|
4702
4774
|
reviewContents: contents,
|
|
4703
4775
|
sectionTitle: title,
|
|
4704
|
-
children: /* @__PURE__ */ (0,
|
|
4776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CurriculumReviewStepsInner, {})
|
|
4705
4777
|
}
|
|
4706
4778
|
);
|
|
4707
4779
|
}
|
|
4708
4780
|
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
4709
4781
|
|
|
4710
4782
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
4711
|
-
var
|
|
4783
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4712
4784
|
function CurriculumReview(props) {
|
|
4713
4785
|
const { item, sectionTitle } = props;
|
|
4714
4786
|
const { description, buttonTitle } = item;
|
|
@@ -4773,8 +4845,8 @@ function CurriculumReview(props) {
|
|
|
4773
4845
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4774
4846
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4775
4847
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4776
|
-
return /* @__PURE__ */ (0,
|
|
4777
|
-
/* @__PURE__ */ (0,
|
|
4848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Dialog.Root, { onOpenChange: setOpen, open, children: [
|
|
4849
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4778
4850
|
import_themes.Flex,
|
|
4779
4851
|
{
|
|
4780
4852
|
align: "center",
|
|
@@ -4791,21 +4863,21 @@ function CurriculumReview(props) {
|
|
|
4791
4863
|
},
|
|
4792
4864
|
width: "100%",
|
|
4793
4865
|
children: [
|
|
4794
|
-
/* @__PURE__ */ (0,
|
|
4795
|
-
/* @__PURE__ */ (0,
|
|
4796
|
-
/* @__PURE__ */ (0,
|
|
4866
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typo, { color: "gray", weight: "bold", children: curriculum.title }),
|
|
4867
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4868
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4797
4869
|
Button,
|
|
4798
4870
|
{
|
|
4799
4871
|
mt: "3",
|
|
4800
4872
|
style: { minWidth: 232, backgroundColor: bgColor },
|
|
4801
4873
|
variant: done ? "outline" : "solid",
|
|
4802
|
-
children: /* @__PURE__ */ (0,
|
|
4874
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typo, { truncate: true, children: done ? "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC\uBCF4\uAE30" : buttonTitle })
|
|
4803
4875
|
}
|
|
4804
4876
|
) })
|
|
4805
4877
|
]
|
|
4806
4878
|
}
|
|
4807
4879
|
),
|
|
4808
|
-
/* @__PURE__ */ (0,
|
|
4880
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4809
4881
|
Dialog.Content,
|
|
4810
4882
|
{
|
|
4811
4883
|
height: "100%",
|
|
@@ -4813,7 +4885,7 @@ function CurriculumReview(props) {
|
|
|
4813
4885
|
style: { borderRadius: 0, padding: 0 },
|
|
4814
4886
|
title: "",
|
|
4815
4887
|
width: "100%",
|
|
4816
|
-
children: /* @__PURE__ */ (0,
|
|
4888
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4817
4889
|
import_themes.Flex,
|
|
4818
4890
|
{
|
|
4819
4891
|
align: "center",
|
|
@@ -4823,7 +4895,7 @@ function CurriculumReview(props) {
|
|
|
4823
4895
|
position: "relative",
|
|
4824
4896
|
width: "100%",
|
|
4825
4897
|
children: [
|
|
4826
|
-
/* @__PURE__ */ (0,
|
|
4898
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4827
4899
|
CurriculumReviewSteps_default,
|
|
4828
4900
|
{
|
|
4829
4901
|
contents: item,
|
|
@@ -4837,27 +4909,27 @@ function CurriculumReview(props) {
|
|
|
4837
4909
|
title: sectionTitle
|
|
4838
4910
|
}
|
|
4839
4911
|
),
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
4912
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes9.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4841
4913
|
IconButton,
|
|
4842
4914
|
{
|
|
4843
4915
|
color: "gray",
|
|
4844
4916
|
onClick: onClickCloseDrawer,
|
|
4845
4917
|
variant: "ghost",
|
|
4846
4918
|
children: [
|
|
4847
|
-
/* @__PURE__ */ (0,
|
|
4848
|
-
/* @__PURE__ */ (0,
|
|
4919
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes9.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons7.Cross1Icon, { height: 20, width: 20 }) }),
|
|
4920
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes9.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_icons7.Cross1Icon, { height: 16, width: 16 }) })
|
|
4849
4921
|
]
|
|
4850
4922
|
}
|
|
4851
4923
|
) }),
|
|
4852
|
-
/* @__PURE__ */ (0,
|
|
4924
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4853
4925
|
Dialog.Content,
|
|
4854
4926
|
{
|
|
4855
|
-
buttons: /* @__PURE__ */ (0,
|
|
4856
|
-
/* @__PURE__ */ (0,
|
|
4857
|
-
/* @__PURE__ */ (0,
|
|
4927
|
+
buttons: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_themes.Flex, { gap: "3", justify: "end", children: [
|
|
4928
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { color: "gray", variant: "outline", children: "\uB3CC\uC544\uAC00\uAE30" }) }),
|
|
4929
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { color: "red", onClick: onClickEndReview, children: "\uB098\uAC00\uAE30" }) })
|
|
4858
4930
|
] }),
|
|
4859
4931
|
title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
|
|
4860
|
-
children: /* @__PURE__ */ (0,
|
|
4932
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typo, { children: "\uD398\uC774\uC9C0\uC5D0\uC11C \uBC97\uC5B4\uB098\uBA74 \uC791\uC131\uD55C \uB0B4\uC6A9\uC774 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4." })
|
|
4861
4933
|
}
|
|
4862
4934
|
) })
|
|
4863
4935
|
]
|
|
@@ -4871,7 +4943,7 @@ var curriculum_review_default = CurriculumReview;
|
|
|
4871
4943
|
|
|
4872
4944
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx
|
|
4873
4945
|
var import_react40 = require("react");
|
|
4874
|
-
var
|
|
4946
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4875
4947
|
function CurriculumAiTraning({
|
|
4876
4948
|
item
|
|
4877
4949
|
}) {
|
|
@@ -4881,7 +4953,7 @@ function CurriculumAiTraning({
|
|
|
4881
4953
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4882
4954
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4883
4955
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4884
|
-
return /* @__PURE__ */ (0,
|
|
4956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4885
4957
|
import_themes.Flex,
|
|
4886
4958
|
{
|
|
4887
4959
|
align: "center",
|
|
@@ -4896,9 +4968,9 @@ function CurriculumAiTraning({
|
|
|
4896
4968
|
},
|
|
4897
4969
|
width: "100%",
|
|
4898
4970
|
children: [
|
|
4899
|
-
/* @__PURE__ */ (0,
|
|
4900
|
-
/* @__PURE__ */ (0,
|
|
4901
|
-
/* @__PURE__ */ (0,
|
|
4971
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4972
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4973
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4902
4974
|
Button,
|
|
4903
4975
|
{
|
|
4904
4976
|
mt: "3",
|
|
@@ -4909,7 +4981,7 @@ function CurriculumAiTraning({
|
|
|
4909
4981
|
variant: done ? "outline" : "solid",
|
|
4910
4982
|
children: [
|
|
4911
4983
|
done ? "\uB2E4\uC2DC \uC5F0\uC2B5\uD558\uAE30" : buttonTitle || "\uC2DC\uC791\uD558\uAE30",
|
|
4912
|
-
done ? /* @__PURE__ */ (0,
|
|
4984
|
+
done ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_icons.ResetIcon, {}) : null
|
|
4913
4985
|
]
|
|
4914
4986
|
}
|
|
4915
4987
|
)
|
|
@@ -4921,7 +4993,7 @@ var curriculum_ai_traning_default = CurriculumAiTraning;
|
|
|
4921
4993
|
|
|
4922
4994
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-file-download.tsx
|
|
4923
4995
|
var import_react41 = require("react");
|
|
4924
|
-
var
|
|
4996
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4925
4997
|
function CurriculumFileDownload(props) {
|
|
4926
4998
|
const { item } = props;
|
|
4927
4999
|
const { title, description, files } = item;
|
|
@@ -4935,7 +5007,7 @@ function CurriculumFileDownload(props) {
|
|
|
4935
5007
|
}
|
|
4936
5008
|
onClickfileDownload(item, file);
|
|
4937
5009
|
};
|
|
4938
|
-
return /* @__PURE__ */ (0,
|
|
5010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
4939
5011
|
import_themes.Flex,
|
|
4940
5012
|
{
|
|
4941
5013
|
align: "center",
|
|
@@ -4946,9 +5018,9 @@ function CurriculumFileDownload(props) {
|
|
|
4946
5018
|
py: "3",
|
|
4947
5019
|
width: "100%",
|
|
4948
5020
|
children: [
|
|
4949
|
-
/* @__PURE__ */ (0,
|
|
4950
|
-
description ? /* @__PURE__ */ (0,
|
|
4951
|
-
/* @__PURE__ */ (0,
|
|
5021
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
5022
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }) : null,
|
|
5023
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4952
5024
|
import_themes.Flex,
|
|
4953
5025
|
{
|
|
4954
5026
|
direction: "column",
|
|
@@ -4956,7 +5028,7 @@ function CurriculumFileDownload(props) {
|
|
|
4956
5028
|
mt: "4",
|
|
4957
5029
|
style: { width: "100%", maxWidth: 520 },
|
|
4958
5030
|
children: files.map((file) => {
|
|
4959
|
-
return /* @__PURE__ */ (0,
|
|
5031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4960
5032
|
Button,
|
|
4961
5033
|
{
|
|
4962
5034
|
disabled: !isCallbackReady,
|
|
@@ -4964,14 +5036,14 @@ function CurriculumFileDownload(props) {
|
|
|
4964
5036
|
handleClickFile(file);
|
|
4965
5037
|
},
|
|
4966
5038
|
variant: "outline",
|
|
4967
|
-
children: /* @__PURE__ */ (0,
|
|
5039
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { truncate: true, children: file.name })
|
|
4968
5040
|
},
|
|
4969
5041
|
file.url
|
|
4970
5042
|
);
|
|
4971
5043
|
})
|
|
4972
5044
|
}
|
|
4973
5045
|
),
|
|
4974
|
-
!isCallbackReady ? /* @__PURE__ */ (0,
|
|
5046
|
+
!isCallbackReady ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { align: "center", color: "gray", mt: "3", variant: "caption", children: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC \uAE30\uB2A5\uC774 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4." }) : null
|
|
4975
5047
|
]
|
|
4976
5048
|
}
|
|
4977
5049
|
);
|
|
@@ -4979,14 +5051,14 @@ function CurriculumFileDownload(props) {
|
|
|
4979
5051
|
var curriculum_file_download_default = CurriculumFileDownload;
|
|
4980
5052
|
|
|
4981
5053
|
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
4982
|
-
var
|
|
5054
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4983
5055
|
function CurriculumBody() {
|
|
4984
5056
|
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
4985
5057
|
switch (selectedItem.type) {
|
|
4986
5058
|
case "video":
|
|
4987
|
-
return /* @__PURE__ */ (0,
|
|
5059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(curriculum_video_default, { item: selectedItem });
|
|
4988
5060
|
case "review":
|
|
4989
|
-
return /* @__PURE__ */ (0,
|
|
5061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4990
5062
|
curriculum_review_default,
|
|
4991
5063
|
{
|
|
4992
5064
|
item: selectedItem,
|
|
@@ -4994,11 +5066,11 @@ function CurriculumBody() {
|
|
|
4994
5066
|
}
|
|
4995
5067
|
);
|
|
4996
5068
|
case "aiTraining":
|
|
4997
|
-
return /* @__PURE__ */ (0,
|
|
5069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(curriculum_ai_traning_default, { item: selectedItem });
|
|
4998
5070
|
case "fileDownload":
|
|
4999
|
-
return /* @__PURE__ */ (0,
|
|
5071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(curriculum_file_download_default, { item: selectedItem });
|
|
5000
5072
|
default:
|
|
5001
|
-
return /* @__PURE__ */ (0,
|
|
5073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
5002
5074
|
import_themes.Flex,
|
|
5003
5075
|
{
|
|
5004
5076
|
align: "center",
|
|
@@ -5008,9 +5080,9 @@ function CurriculumBody() {
|
|
|
5008
5080
|
justify: "center",
|
|
5009
5081
|
width: "100%",
|
|
5010
5082
|
children: [
|
|
5011
|
-
/* @__PURE__ */ (0,
|
|
5012
|
-
/* @__PURE__ */ (0,
|
|
5013
|
-
/* @__PURE__ */ (0,
|
|
5083
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_icons.InfoCircledIcon, { height: 24, width: 24 }),
|
|
5084
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
5085
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
5014
5086
|
${JSON.stringify(selectedItem)}` })
|
|
5015
5087
|
]
|
|
5016
5088
|
}
|
|
@@ -5025,14 +5097,14 @@ var import_react43 = require("react");
|
|
|
5025
5097
|
var import_themes34 = require("@radix-ui/themes");
|
|
5026
5098
|
var import_clsx18 = require("clsx");
|
|
5027
5099
|
var import_react42 = require("react");
|
|
5028
|
-
var
|
|
5100
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
5029
5101
|
var Root10 = (0, import_react42.forwardRef)((props, ref) => {
|
|
5030
5102
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
5031
5103
|
const { className: colorClassName } = (0, import_react42.useMemo)(
|
|
5032
5104
|
() => resolveColor(color),
|
|
5033
5105
|
[color]
|
|
5034
5106
|
);
|
|
5035
|
-
return /* @__PURE__ */ (0,
|
|
5107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
5036
5108
|
import_themes34.Tabs.Root,
|
|
5037
5109
|
__spreadProps(__spreadValues({}, rest), {
|
|
5038
5110
|
className: (0, import_clsx18.clsx)(colorClassName, className),
|
|
@@ -5046,12 +5118,12 @@ var Tabs = __spreadProps(__spreadValues({}, import_themes34.Tabs), {
|
|
|
5046
5118
|
});
|
|
5047
5119
|
|
|
5048
5120
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
5049
|
-
var
|
|
5121
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5050
5122
|
function SectionTitle(props) {
|
|
5051
5123
|
const { title, duration } = props;
|
|
5052
|
-
return /* @__PURE__ */ (0,
|
|
5053
|
-
/* @__PURE__ */ (0,
|
|
5054
|
-
/* @__PURE__ */ (0,
|
|
5124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_themes17.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
5125
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { color: "gray", children: title }),
|
|
5126
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
5055
5127
|
duration,
|
|
5056
5128
|
"\uBD84"
|
|
5057
5129
|
] })
|
|
@@ -5060,14 +5132,14 @@ function SectionTitle(props) {
|
|
|
5060
5132
|
var section_title_default = SectionTitle;
|
|
5061
5133
|
|
|
5062
5134
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.tsx
|
|
5063
|
-
var
|
|
5135
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5064
5136
|
function CurriculumSidebarItemWrapper({
|
|
5065
5137
|
children,
|
|
5066
5138
|
isSelected,
|
|
5067
5139
|
onClick,
|
|
5068
5140
|
index
|
|
5069
5141
|
}) {
|
|
5070
|
-
return /* @__PURE__ */ (0,
|
|
5142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
5071
5143
|
import_themes17.Grid,
|
|
5072
5144
|
{
|
|
5073
5145
|
align: "center",
|
|
@@ -5083,7 +5155,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
5083
5155
|
cursor: onClick ? "pointer" : void 0
|
|
5084
5156
|
},
|
|
5085
5157
|
children: [
|
|
5086
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
5158
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5087
5159
|
import_themes28.Separator,
|
|
5088
5160
|
{
|
|
5089
5161
|
color: "yellow",
|
|
@@ -5100,15 +5172,15 @@ function CurriculumSidebarItemWrapper({
|
|
|
5100
5172
|
var curriculum_sidebar_item_wrapper_default = CurriculumSidebarItemWrapper;
|
|
5101
5173
|
|
|
5102
5174
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.tsx
|
|
5103
|
-
var
|
|
5175
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
5104
5176
|
function CurriculumItemTitle({
|
|
5105
5177
|
title,
|
|
5106
5178
|
subText,
|
|
5107
5179
|
duration
|
|
5108
5180
|
}) {
|
|
5109
|
-
return /* @__PURE__ */ (0,
|
|
5110
|
-
/* @__PURE__ */ (0,
|
|
5111
|
-
/* @__PURE__ */ (0,
|
|
5181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_themes.Flex, { direction: "column", gap: "1", children: [
|
|
5182
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
5183
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
5112
5184
|
subText,
|
|
5113
5185
|
duration ? ` | ${duration}\uBD84` : ""
|
|
5114
5186
|
] })
|
|
@@ -5117,7 +5189,7 @@ function CurriculumItemTitle({
|
|
|
5117
5189
|
var curriculum_item_title_default = CurriculumItemTitle;
|
|
5118
5190
|
|
|
5119
5191
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-item.tsx
|
|
5120
|
-
var
|
|
5192
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5121
5193
|
function SectionCommonItem({
|
|
5122
5194
|
title,
|
|
5123
5195
|
duration,
|
|
@@ -5126,21 +5198,21 @@ function SectionCommonItem({
|
|
|
5126
5198
|
color = "gray"
|
|
5127
5199
|
}) {
|
|
5128
5200
|
const IconComp = getCurriculumIcon({ type, icon });
|
|
5129
|
-
return /* @__PURE__ */ (0,
|
|
5130
|
-
/* @__PURE__ */ (0,
|
|
5131
|
-
/* @__PURE__ */ (0,
|
|
5201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
5202
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(IconComp, { color }),
|
|
5203
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(curriculum_item_title_default, { duration, subText: getCurriculumContentSubTypeText(type), title })
|
|
5132
5204
|
] });
|
|
5133
5205
|
}
|
|
5134
5206
|
var section_item_default = SectionCommonItem;
|
|
5135
5207
|
|
|
5136
5208
|
// src/molecules/curriculumV2/CurriculumSidebar/sidebar-item.tsx
|
|
5137
|
-
var
|
|
5209
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5138
5210
|
function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
5139
5211
|
if (item.type === "sectionTitle") {
|
|
5140
|
-
return /* @__PURE__ */ (0,
|
|
5212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(section_title_default, __spreadValues({}, item), item.uuid);
|
|
5141
5213
|
}
|
|
5142
5214
|
const isSelected = selectedIndex === index;
|
|
5143
|
-
return /* @__PURE__ */ (0,
|
|
5215
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5144
5216
|
curriculum_sidebar_item_wrapper_default,
|
|
5145
5217
|
{
|
|
5146
5218
|
index,
|
|
@@ -5148,7 +5220,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
5148
5220
|
onClick: () => {
|
|
5149
5221
|
setSelectedIndex(index);
|
|
5150
5222
|
},
|
|
5151
|
-
children: /* @__PURE__ */ (0,
|
|
5223
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5152
5224
|
section_item_default,
|
|
5153
5225
|
__spreadProps(__spreadValues({}, item), {
|
|
5154
5226
|
color: getCurriculumIconColor({
|
|
@@ -5164,7 +5236,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
5164
5236
|
var sidebar_item_default = SidebarItem;
|
|
5165
5237
|
|
|
5166
5238
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
5167
|
-
var
|
|
5239
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5168
5240
|
var TAB_LIST = [
|
|
5169
5241
|
{
|
|
5170
5242
|
label: "\uAC15\uC758 \uBAA9\uCC28",
|
|
@@ -5192,10 +5264,10 @@ function CurriculumSidebar() {
|
|
|
5192
5264
|
const tabList = (0, import_react43.useMemo)(() => {
|
|
5193
5265
|
return [...TAB_LIST, ...customTabs != null ? customTabs : []];
|
|
5194
5266
|
}, [customTabs]);
|
|
5195
|
-
return /* @__PURE__ */ (0,
|
|
5196
|
-
/* @__PURE__ */ (0,
|
|
5197
|
-
/* @__PURE__ */ (0,
|
|
5198
|
-
|
|
5267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_themes17.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
5268
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
5269
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
5270
|
+
import_themes9.Box,
|
|
5199
5271
|
{
|
|
5200
5272
|
height: "100%",
|
|
5201
5273
|
overflowY: "auto",
|
|
@@ -5203,13 +5275,13 @@ function CurriculumSidebar() {
|
|
|
5203
5275
|
ref: scrollAreaRef,
|
|
5204
5276
|
width: "100%",
|
|
5205
5277
|
children: [
|
|
5206
|
-
/* @__PURE__ */ (0,
|
|
5278
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
5207
5279
|
Tabs.Content,
|
|
5208
5280
|
{
|
|
5209
5281
|
style: TABS_CONTENT_STYLE,
|
|
5210
5282
|
value: TAB_LIST[0].value,
|
|
5211
5283
|
children: [
|
|
5212
|
-
list.map((item, index) => /* @__PURE__ */ (0,
|
|
5284
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
5213
5285
|
sidebar_item_default,
|
|
5214
5286
|
{
|
|
5215
5287
|
done: curriculumCompleteMap[item.uuid],
|
|
@@ -5220,12 +5292,12 @@ function CurriculumSidebar() {
|
|
|
5220
5292
|
},
|
|
5221
5293
|
item.uuid
|
|
5222
5294
|
)),
|
|
5223
|
-
/* @__PURE__ */ (0,
|
|
5295
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes9.Box, { height: "150px" })
|
|
5224
5296
|
]
|
|
5225
5297
|
},
|
|
5226
5298
|
TAB_LIST[0].value
|
|
5227
5299
|
),
|
|
5228
|
-
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0,
|
|
5300
|
+
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
5229
5301
|
Tabs.Content,
|
|
5230
5302
|
{
|
|
5231
5303
|
style: TABS_CONTENT_STYLE,
|
|
@@ -5241,11 +5313,11 @@ function CurriculumSidebar() {
|
|
|
5241
5313
|
}
|
|
5242
5314
|
|
|
5243
5315
|
// src/molecules/curriculumV2/curriculum-v2-layout.tsx
|
|
5244
|
-
var
|
|
5316
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5245
5317
|
function CurriculumV2Layout(props) {
|
|
5246
5318
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
5247
|
-
return /* @__PURE__ */ (0,
|
|
5248
|
-
/* @__PURE__ */ (0,
|
|
5319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes17.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
5320
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5249
5321
|
import_themes.Flex,
|
|
5250
5322
|
{
|
|
5251
5323
|
align: "center",
|
|
@@ -5254,8 +5326,8 @@ function CurriculumV2Layout(props) {
|
|
|
5254
5326
|
children: NavBar
|
|
5255
5327
|
}
|
|
5256
5328
|
),
|
|
5257
|
-
/* @__PURE__ */ (0,
|
|
5258
|
-
/* @__PURE__ */ (0,
|
|
5329
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes28.Separator, { size: "4" }),
|
|
5330
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5259
5331
|
import_themes.Flex,
|
|
5260
5332
|
{
|
|
5261
5333
|
align: "center",
|
|
@@ -5263,7 +5335,7 @@ function CurriculumV2Layout(props) {
|
|
|
5263
5335
|
justify: "center",
|
|
5264
5336
|
overflow: "hidden",
|
|
5265
5337
|
width: "100%",
|
|
5266
|
-
children: /* @__PURE__ */ (0,
|
|
5338
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
5267
5339
|
import_themes17.Grid,
|
|
5268
5340
|
{
|
|
5269
5341
|
columns: { initial: "1", md: "1fr 340px" },
|
|
@@ -5272,8 +5344,8 @@ function CurriculumV2Layout(props) {
|
|
|
5272
5344
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
5273
5345
|
width: "100%",
|
|
5274
5346
|
children: [
|
|
5275
|
-
/* @__PURE__ */ (0,
|
|
5276
|
-
/* @__PURE__ */ (0,
|
|
5347
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes9.Box, { height: "100%", width: "100%", children: [
|
|
5348
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
5277
5349
|
SideNav
|
|
5278
5350
|
] }),
|
|
5279
5351
|
SideBar
|
|
@@ -5297,11 +5369,11 @@ var import_react45 = require("react");
|
|
|
5297
5369
|
// src/molecules/form/form.tsx
|
|
5298
5370
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
5299
5371
|
var import_react44 = require("react");
|
|
5300
|
-
var
|
|
5372
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5301
5373
|
var Root12 = (0, import_react44.forwardRef)(
|
|
5302
5374
|
(_a, ref) => {
|
|
5303
5375
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
5304
|
-
return /* @__PURE__ */ (0,
|
|
5376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5305
5377
|
RadixForm.Root,
|
|
5306
5378
|
__spreadProps(__spreadValues({}, rest), {
|
|
5307
5379
|
className: `FormRoot ${className || ""}`,
|
|
@@ -5318,25 +5390,25 @@ var FieldContext = (0, import_react44.createContext)({
|
|
|
5318
5390
|
var Field2 = (0, import_react44.forwardRef)(
|
|
5319
5391
|
(_a, ref) => {
|
|
5320
5392
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
5321
|
-
return /* @__PURE__ */ (0,
|
|
5393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5322
5394
|
RadixForm.Field,
|
|
5323
5395
|
__spreadProps(__spreadValues({}, rest), {
|
|
5324
5396
|
className: `FormField ${className || ""}`,
|
|
5325
5397
|
ref,
|
|
5326
|
-
children: /* @__PURE__ */ (0,
|
|
5398
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldContext.Provider, { value: rest, children })
|
|
5327
5399
|
})
|
|
5328
5400
|
);
|
|
5329
5401
|
}
|
|
5330
5402
|
);
|
|
5331
5403
|
Field2.displayName = "FORM_FIELD";
|
|
5332
5404
|
function HeadingLabel(props) {
|
|
5333
|
-
return /* @__PURE__ */ (0,
|
|
5405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
5334
5406
|
}
|
|
5335
5407
|
function CaptionLabel(props) {
|
|
5336
|
-
return /* @__PURE__ */ (0,
|
|
5408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption", weight: "bold" }, props), { children: props.children }));
|
|
5337
5409
|
}
|
|
5338
5410
|
function BodyLabel(props) {
|
|
5339
|
-
return /* @__PURE__ */ (0,
|
|
5411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, __spreadProps(__spreadValues({ variant: "body", weight: "bold" }, props), { children: props.children }));
|
|
5340
5412
|
}
|
|
5341
5413
|
var Label2 = (0, import_react44.forwardRef)(
|
|
5342
5414
|
(_a, ref) => {
|
|
@@ -5353,15 +5425,15 @@ var Label2 = (0, import_react44.forwardRef)(
|
|
|
5353
5425
|
}
|
|
5354
5426
|
}, [variant]);
|
|
5355
5427
|
const fieldProps = (0, import_react44.useContext)(FieldContext);
|
|
5356
|
-
return /* @__PURE__ */ (0,
|
|
5428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5357
5429
|
RadixForm.Label,
|
|
5358
5430
|
__spreadProps(__spreadValues({}, rest), {
|
|
5359
5431
|
asChild: true,
|
|
5360
5432
|
className: `FormLabel ${className || ""}`,
|
|
5361
5433
|
ref,
|
|
5362
|
-
children: /* @__PURE__ */ (0,
|
|
5434
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Comp, { children: [
|
|
5363
5435
|
children,
|
|
5364
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
5436
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
5365
5437
|
] })
|
|
5366
5438
|
})
|
|
5367
5439
|
);
|
|
@@ -5371,13 +5443,13 @@ Label2.displayName = "FORM_Label";
|
|
|
5371
5443
|
var Message2 = (0, import_react44.forwardRef)(
|
|
5372
5444
|
(_a, ref) => {
|
|
5373
5445
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
5374
|
-
return /* @__PURE__ */ (0,
|
|
5446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5375
5447
|
RadixForm.Message,
|
|
5376
5448
|
__spreadProps(__spreadValues({}, rest), {
|
|
5377
5449
|
asChild: true,
|
|
5378
5450
|
className: `FormMessage ${className || ""}`,
|
|
5379
5451
|
ref,
|
|
5380
|
-
children: /* @__PURE__ */ (0,
|
|
5452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { color: "red", children })
|
|
5381
5453
|
})
|
|
5382
5454
|
);
|
|
5383
5455
|
}
|
|
@@ -5387,7 +5459,7 @@ var Control2 = (0, import_react44.forwardRef)(
|
|
|
5387
5459
|
(_a, ref) => {
|
|
5388
5460
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
5389
5461
|
const fieldProps = (0, import_react44.useContext)(FieldContext);
|
|
5390
|
-
return /* @__PURE__ */ (0,
|
|
5462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5391
5463
|
RadixForm.Control,
|
|
5392
5464
|
__spreadProps(__spreadValues({}, rest), {
|
|
5393
5465
|
className: `FormControl ${className || ""}`,
|
|
@@ -5410,10 +5482,10 @@ function FormItem(_a) {
|
|
|
5410
5482
|
"children",
|
|
5411
5483
|
"errorMessage"
|
|
5412
5484
|
]);
|
|
5413
|
-
return /* @__PURE__ */ (0,
|
|
5414
|
-
/* @__PURE__ */ (0,
|
|
5485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
5486
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
5415
5487
|
children,
|
|
5416
|
-
/* @__PURE__ */ (0,
|
|
5488
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
5417
5489
|
] }));
|
|
5418
5490
|
}
|
|
5419
5491
|
var Form = {
|
|
@@ -5427,7 +5499,7 @@ var Form = {
|
|
|
5427
5499
|
};
|
|
5428
5500
|
|
|
5429
5501
|
// src/context/dynamic-form-context.tsx
|
|
5430
|
-
var
|
|
5502
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5431
5503
|
var DynamicFormContext = (0, import_react45.createContext)(null);
|
|
5432
5504
|
function DynamicFormProvider({
|
|
5433
5505
|
children,
|
|
@@ -5453,7 +5525,7 @@ function DynamicFormProvider({
|
|
|
5453
5525
|
handleChange: formik.handleChange,
|
|
5454
5526
|
handleBlur: formik.handleBlur
|
|
5455
5527
|
};
|
|
5456
|
-
return /* @__PURE__ */ (0,
|
|
5528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
|
|
5457
5529
|
}
|
|
5458
5530
|
function useDynamicForm() {
|
|
5459
5531
|
const context = (0, import_react45.useContext)(DynamicFormContext);
|
|
@@ -5467,7 +5539,7 @@ function useDynamicForm() {
|
|
|
5467
5539
|
var import_themes35 = require("@radix-ui/themes");
|
|
5468
5540
|
var import_clsx19 = require("clsx");
|
|
5469
5541
|
var import_react46 = require("react");
|
|
5470
|
-
var
|
|
5542
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5471
5543
|
var Root13 = (0, import_react46.forwardRef)((props, ref) => {
|
|
5472
5544
|
const _a = props, { children, size = "medium", color, className } = _a, rest = __objRest(_a, ["children", "size", "color", "className"]);
|
|
5473
5545
|
const groupSize = (0, import_react46.useMemo)(() => {
|
|
@@ -5485,7 +5557,7 @@ var Root13 = (0, import_react46.forwardRef)((props, ref) => {
|
|
|
5485
5557
|
() => resolveColor(color),
|
|
5486
5558
|
[color]
|
|
5487
5559
|
);
|
|
5488
|
-
return /* @__PURE__ */ (0,
|
|
5560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5489
5561
|
import_themes35.CheckboxGroup.Root,
|
|
5490
5562
|
__spreadProps(__spreadValues({}, rest), {
|
|
5491
5563
|
className: (0, import_clsx19.clsx)(colorClassName, className),
|
|
@@ -5505,7 +5577,7 @@ var CheckboxGroup = {
|
|
|
5505
5577
|
var import_themes36 = require("@radix-ui/themes");
|
|
5506
5578
|
var import_clsx20 = require("clsx");
|
|
5507
5579
|
var import_react47 = require("react");
|
|
5508
|
-
var
|
|
5580
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5509
5581
|
var Checkbox = (0, import_react47.forwardRef)(
|
|
5510
5582
|
(props, ref) => {
|
|
5511
5583
|
const _a = props, { size = "medium", color, className } = _a, rest = __objRest(_a, ["size", "color", "className"]);
|
|
@@ -5520,7 +5592,7 @@ var Checkbox = (0, import_react47.forwardRef)(
|
|
|
5520
5592
|
}
|
|
5521
5593
|
}, [size]);
|
|
5522
5594
|
const { color: radixColor, className: colorClassName } = resolveColor(color);
|
|
5523
|
-
return /* @__PURE__ */ (0,
|
|
5595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5524
5596
|
import_themes36.Checkbox,
|
|
5525
5597
|
__spreadProps(__spreadValues({}, rest), {
|
|
5526
5598
|
className: (0, import_clsx20.clsx)(colorClassName, className),
|
|
@@ -5537,7 +5609,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
5537
5609
|
var import_themes37 = require("@radix-ui/themes");
|
|
5538
5610
|
|
|
5539
5611
|
// src/molecules/dynamic-field.tsx
|
|
5540
|
-
var
|
|
5612
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
5541
5613
|
function isRecord(value) {
|
|
5542
5614
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5543
5615
|
}
|
|
@@ -5606,7 +5678,7 @@ function DynamicFormField({
|
|
|
5606
5678
|
const selectedValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
5607
5679
|
switch (field.type) {
|
|
5608
5680
|
case "short_text":
|
|
5609
|
-
return /* @__PURE__ */ (0,
|
|
5681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5610
5682
|
TextField.Root,
|
|
5611
5683
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5612
5684
|
placeholder: field.placeholder,
|
|
@@ -5614,7 +5686,7 @@ function DynamicFormField({
|
|
|
5614
5686
|
})
|
|
5615
5687
|
);
|
|
5616
5688
|
case "email":
|
|
5617
|
-
return /* @__PURE__ */ (0,
|
|
5689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5618
5690
|
TextField.Root,
|
|
5619
5691
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5620
5692
|
placeholder: field.placeholder,
|
|
@@ -5622,7 +5694,7 @@ function DynamicFormField({
|
|
|
5622
5694
|
})
|
|
5623
5695
|
);
|
|
5624
5696
|
case "number":
|
|
5625
|
-
return /* @__PURE__ */ (0,
|
|
5697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5626
5698
|
TextField.Root,
|
|
5627
5699
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5628
5700
|
inputMode: "numeric",
|
|
@@ -5632,9 +5704,9 @@ function DynamicFormField({
|
|
|
5632
5704
|
})
|
|
5633
5705
|
);
|
|
5634
5706
|
case "long_text":
|
|
5635
|
-
return /* @__PURE__ */ (0,
|
|
5707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
5636
5708
|
case "dropdown":
|
|
5637
|
-
return /* @__PURE__ */ (0,
|
|
5709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
5638
5710
|
Select.Root,
|
|
5639
5711
|
{
|
|
5640
5712
|
disabled: readonly,
|
|
@@ -5643,7 +5715,7 @@ function DynamicFormField({
|
|
|
5643
5715
|
},
|
|
5644
5716
|
value: selectedValue,
|
|
5645
5717
|
children: [
|
|
5646
|
-
/* @__PURE__ */ (0,
|
|
5718
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5647
5719
|
Select.Trigger,
|
|
5648
5720
|
{
|
|
5649
5721
|
placeholder: field.placeholder,
|
|
@@ -5655,12 +5727,12 @@ function DynamicFormField({
|
|
|
5655
5727
|
}
|
|
5656
5728
|
}
|
|
5657
5729
|
),
|
|
5658
|
-
/* @__PURE__ */ (0,
|
|
5730
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
5659
5731
|
]
|
|
5660
5732
|
}
|
|
5661
5733
|
);
|
|
5662
5734
|
case "choice":
|
|
5663
|
-
return /* @__PURE__ */ (0,
|
|
5735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5664
5736
|
RadioGroup.Root,
|
|
5665
5737
|
{
|
|
5666
5738
|
disabled: readonly,
|
|
@@ -5669,13 +5741,13 @@ function DynamicFormField({
|
|
|
5669
5741
|
},
|
|
5670
5742
|
orientation: field.orientation,
|
|
5671
5743
|
value: String(value || ""),
|
|
5672
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5744
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5673
5745
|
}
|
|
5674
5746
|
);
|
|
5675
5747
|
case "radio_cards": {
|
|
5676
5748
|
const options = getOptions(field);
|
|
5677
5749
|
if (!options) return null;
|
|
5678
|
-
return /* @__PURE__ */ (0,
|
|
5750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5679
5751
|
RadioCards.Root,
|
|
5680
5752
|
{
|
|
5681
5753
|
disabled: readonly,
|
|
@@ -5683,12 +5755,12 @@ function DynamicFormField({
|
|
|
5683
5755
|
void setFieldValue(name, newValue);
|
|
5684
5756
|
},
|
|
5685
5757
|
value: selectedValue,
|
|
5686
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
5758
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(RadioCards.Item, { value: String(option.value), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typo, { children: option.label }) }, option.value))
|
|
5687
5759
|
}
|
|
5688
5760
|
);
|
|
5689
5761
|
}
|
|
5690
5762
|
case "choices":
|
|
5691
|
-
return /* @__PURE__ */ (0,
|
|
5763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5692
5764
|
CheckboxGroup.Root,
|
|
5693
5765
|
{
|
|
5694
5766
|
disabled: readonly,
|
|
@@ -5697,12 +5769,12 @@ function DynamicFormField({
|
|
|
5697
5769
|
},
|
|
5698
5770
|
orientation: field.orientation,
|
|
5699
5771
|
value: Array.isArray(value) ? value.map(String) : [],
|
|
5700
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5772
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5701
5773
|
}
|
|
5702
5774
|
);
|
|
5703
5775
|
case "yes_no":
|
|
5704
|
-
return /* @__PURE__ */ (0,
|
|
5705
|
-
/* @__PURE__ */ (0,
|
|
5776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
5777
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5706
5778
|
Checkbox,
|
|
5707
5779
|
{
|
|
5708
5780
|
checked: Boolean(value),
|
|
@@ -5712,7 +5784,7 @@ function DynamicFormField({
|
|
|
5712
5784
|
}
|
|
5713
5785
|
}
|
|
5714
5786
|
),
|
|
5715
|
-
field.description ? /* @__PURE__ */ (0,
|
|
5787
|
+
field.description ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
5716
5788
|
] });
|
|
5717
5789
|
case "image_radio_card": {
|
|
5718
5790
|
const options = getImageOptions(field);
|
|
@@ -5736,23 +5808,23 @@ function DynamicFormField({
|
|
|
5736
5808
|
if (!selectedOption) return;
|
|
5737
5809
|
void setFieldValue(name, selectedOption.value);
|
|
5738
5810
|
};
|
|
5739
|
-
return /* @__PURE__ */ (0,
|
|
5811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5740
5812
|
RadioCards.Root,
|
|
5741
5813
|
{
|
|
5742
5814
|
disabled: readonly,
|
|
5743
5815
|
onValueChange: readonly ? void 0 : handleValueChange,
|
|
5744
5816
|
value: selectedValue,
|
|
5745
|
-
children: /* @__PURE__ */ (0,
|
|
5817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes17.Grid, { columns: gridColumns, gap: gridGap, rows: gridRows, children: options.map((option) => {
|
|
5746
5818
|
const optionValue = String(option.value);
|
|
5747
5819
|
const altText = option.alt || option.label;
|
|
5748
|
-
return /* @__PURE__ */ (0,
|
|
5820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5749
5821
|
RadioCards.Item,
|
|
5750
5822
|
{
|
|
5751
5823
|
style: {
|
|
5752
5824
|
padding: 0
|
|
5753
5825
|
},
|
|
5754
5826
|
value: optionValue,
|
|
5755
|
-
children: /* @__PURE__ */ (0,
|
|
5827
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_themes37.Inset, { style: { width: "100%", height: "100%", padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5756
5828
|
"img",
|
|
5757
5829
|
{
|
|
5758
5830
|
alt: altText,
|
|
@@ -5779,7 +5851,7 @@ function DynamicFormField({
|
|
|
5779
5851
|
}
|
|
5780
5852
|
|
|
5781
5853
|
// src/molecules/dynamic-form.tsx
|
|
5782
|
-
var
|
|
5854
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5783
5855
|
function scrollToFirstError(errors, _fields) {
|
|
5784
5856
|
const firstErrorFieldName = Object.keys(errors)[0];
|
|
5785
5857
|
if (!firstErrorFieldName) return;
|
|
@@ -5866,7 +5938,7 @@ function DynamicFormRoot({
|
|
|
5866
5938
|
};
|
|
5867
5939
|
}
|
|
5868
5940
|
}, [formik.submitCount, formik.errors, fields]);
|
|
5869
|
-
return /* @__PURE__ */ (0,
|
|
5941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5870
5942
|
DynamicFormProvider,
|
|
5871
5943
|
{
|
|
5872
5944
|
fields,
|
|
@@ -5883,15 +5955,15 @@ function DynamicFormFieldList({
|
|
|
5883
5955
|
}) {
|
|
5884
5956
|
const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
|
|
5885
5957
|
const fields = fieldsProp || fieldsFromContext;
|
|
5886
|
-
return /* @__PURE__ */ (0,
|
|
5958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, { children: fields.map((field) => {
|
|
5887
5959
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
5888
|
-
return /* @__PURE__ */ (0,
|
|
5960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5889
5961
|
import_themes38.Box,
|
|
5890
5962
|
{
|
|
5891
5963
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
5892
5964
|
"data-field-name": field.name,
|
|
5893
5965
|
mb: "2",
|
|
5894
|
-
children: /* @__PURE__ */ (0,
|
|
5966
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
5895
5967
|
Form.FormItem,
|
|
5896
5968
|
{
|
|
5897
5969
|
errorMessage,
|
|
@@ -5900,8 +5972,8 @@ function DynamicFormFieldList({
|
|
|
5900
5972
|
name: field.name,
|
|
5901
5973
|
required: field.required,
|
|
5902
5974
|
children: [
|
|
5903
|
-
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0,
|
|
5904
|
-
/* @__PURE__ */ (0,
|
|
5975
|
+
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Typo, { variant: "caption", children: field.description }) : null,
|
|
5976
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DynamicFormField, { field })
|
|
5905
5977
|
]
|
|
5906
5978
|
}
|
|
5907
5979
|
)
|
|
@@ -6050,7 +6122,7 @@ var import_react50 = require("react");
|
|
|
6050
6122
|
// src/atoms/list.tsx
|
|
6051
6123
|
var import_react49 = require("react");
|
|
6052
6124
|
var import_clsx21 = require("clsx");
|
|
6053
|
-
var
|
|
6125
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
6054
6126
|
function Root14(props) {
|
|
6055
6127
|
const _a = props, {
|
|
6056
6128
|
variant,
|
|
@@ -6076,7 +6148,7 @@ function Root14(props) {
|
|
|
6076
6148
|
),
|
|
6077
6149
|
[preSpace, propsClassName]
|
|
6078
6150
|
);
|
|
6079
|
-
return /* @__PURE__ */ (0,
|
|
6151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes.Flex, __spreadProps(__spreadValues({ asChild: true, direction: "column", gap: "1" }, rest), { className, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Comp, { children }) })) });
|
|
6080
6152
|
}
|
|
6081
6153
|
function Item2(props) {
|
|
6082
6154
|
const { children } = props;
|
|
@@ -6089,7 +6161,7 @@ function Item2(props) {
|
|
|
6089
6161
|
}
|
|
6090
6162
|
});
|
|
6091
6163
|
}, [size]);
|
|
6092
|
-
return /* @__PURE__ */ (0,
|
|
6164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("li", { children }) });
|
|
6093
6165
|
}
|
|
6094
6166
|
var ListContext = (0, import_react49.createContext)({
|
|
6095
6167
|
size: "large"
|
|
@@ -6103,7 +6175,7 @@ var List = {
|
|
|
6103
6175
|
};
|
|
6104
6176
|
|
|
6105
6177
|
// src/molecules/one-on-one-guide-list.tsx
|
|
6106
|
-
var
|
|
6178
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6107
6179
|
var oneOnOneNoteTextReplacer = (args) => {
|
|
6108
6180
|
const { text, userName, templateName } = args;
|
|
6109
6181
|
return text.replace(/\{\{Template_Name\}\}/g, templateName).replace(/\{\{Subject_Name\}\}/g, userName);
|
|
@@ -6123,43 +6195,43 @@ function OneOnOneGuideList(props) {
|
|
|
6123
6195
|
[]
|
|
6124
6196
|
);
|
|
6125
6197
|
}, [data]);
|
|
6126
|
-
return /* @__PURE__ */ (0,
|
|
6127
|
-
/* @__PURE__ */ (0,
|
|
6198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
6199
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Heading2, { mb: "2", variant: "heading5", children: oneOnOneNoteTextReplacer({
|
|
6128
6200
|
text: guideTitle || "",
|
|
6129
6201
|
userName: (relacements == null ? void 0 : relacements.userName) || "",
|
|
6130
6202
|
templateName: (relacements == null ? void 0 : relacements.templateName) || ""
|
|
6131
6203
|
}) }),
|
|
6132
|
-
/* @__PURE__ */ (0,
|
|
6204
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Typo, { as: "div", mb: "4", children: oneOnOneNoteTextReplacer({
|
|
6133
6205
|
text: guideDescription || "",
|
|
6134
6206
|
userName: (relacements == null ? void 0 : relacements.userName) || "\uD300\uC6D0",
|
|
6135
6207
|
templateName: (relacements == null ? void 0 : relacements.templateName) || "1on1"
|
|
6136
6208
|
}) }),
|
|
6137
|
-
/* @__PURE__ */ (0,
|
|
6209
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6138
6210
|
List.Root,
|
|
6139
6211
|
{
|
|
6140
6212
|
preSpace: "small",
|
|
6141
6213
|
style: { fontWeight: "bold", gap: "var(--space-5)" },
|
|
6142
6214
|
variant: "ol",
|
|
6143
6215
|
children: groupedData == null ? void 0 : groupedData.map((item) => {
|
|
6144
|
-
return /* @__PURE__ */ (0,
|
|
6145
|
-
/* @__PURE__ */ (0,
|
|
6216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(List.Item, { children: [
|
|
6217
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Typo, { as: "div", mb: "1", children: item.title }),
|
|
6146
6218
|
item.children.map((child) => {
|
|
6147
6219
|
if (child.type === "ul") {
|
|
6148
|
-
return /* @__PURE__ */ (0,
|
|
6220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6149
6221
|
List.Root,
|
|
6150
6222
|
{
|
|
6151
6223
|
preSpace: "small",
|
|
6152
6224
|
style: { fontWeight: "normal", gap: "var(--space-2)" },
|
|
6153
6225
|
variant: "ul",
|
|
6154
6226
|
children: child.value.map((el) => {
|
|
6155
|
-
return /* @__PURE__ */ (0,
|
|
6227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(List.Item, { children: el }, el);
|
|
6156
6228
|
})
|
|
6157
6229
|
},
|
|
6158
6230
|
child.value[0]
|
|
6159
6231
|
);
|
|
6160
6232
|
}
|
|
6161
6233
|
if (typeof child.value === "string") {
|
|
6162
|
-
return /* @__PURE__ */ (0,
|
|
6234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Typo, { as: "div", mb: "2", weight: "regular", children: child.value }, child.value);
|
|
6163
6235
|
}
|
|
6164
6236
|
return null;
|
|
6165
6237
|
})
|
|
@@ -6171,16 +6243,16 @@ function OneOnOneGuideList(props) {
|
|
|
6171
6243
|
}
|
|
6172
6244
|
|
|
6173
6245
|
// src/molecules/description-json-render.tsx
|
|
6174
|
-
var
|
|
6246
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
6175
6247
|
function DescriptionJsonRender(props) {
|
|
6176
6248
|
const { value } = props;
|
|
6177
|
-
return /* @__PURE__ */ (0,
|
|
6249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: value.values.map((block, index) => {
|
|
6178
6250
|
if (block.type === "bullet-list") {
|
|
6179
6251
|
return (
|
|
6180
6252
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
6181
|
-
/* @__PURE__ */ (0,
|
|
6253
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes9.Box, { mb: "2", pl: "4", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(List.Root, { preSpace: "small", children: block.value.map((v, i) => (
|
|
6182
6254
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6255
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(List.Item, { children: v }, `${index}-${i}`)
|
|
6184
6256
|
)) }) }, `${block.type}-${index}`)
|
|
6185
6257
|
);
|
|
6186
6258
|
}
|
|
@@ -6188,15 +6260,15 @@ function DescriptionJsonRender(props) {
|
|
|
6188
6260
|
const Icon = getCalloutIconComponent(block.icon);
|
|
6189
6261
|
return (
|
|
6190
6262
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
6191
|
-
/* @__PURE__ */ (0,
|
|
6192
|
-
/* @__PURE__ */ (0,
|
|
6193
|
-
/* @__PURE__ */ (0,
|
|
6263
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_themes9.Box, { mb: "2", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Callout.Root, { children: [
|
|
6264
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Icon, {}) }),
|
|
6265
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Callout.Text, { children: block.value })
|
|
6194
6266
|
] }) }, `${block.type}-${index}`)
|
|
6195
6267
|
);
|
|
6196
6268
|
}
|
|
6197
6269
|
return (
|
|
6198
6270
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
6199
|
-
/* @__PURE__ */ (0,
|
|
6271
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Typo, { mb: "2", weight: "regular", children: block.value }, `${block.type}-${index}`)
|
|
6200
6272
|
);
|
|
6201
6273
|
}) });
|
|
6202
6274
|
}
|
|
@@ -6204,12 +6276,12 @@ function DescriptionJsonRender(props) {
|
|
|
6204
6276
|
// src/molecules/training-info-guideline.tsx
|
|
6205
6277
|
var import_react51 = require("react");
|
|
6206
6278
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
6207
|
-
var
|
|
6279
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
6208
6280
|
function TrainingInfoGuideline({
|
|
6209
6281
|
values,
|
|
6210
6282
|
onClickFileDownload
|
|
6211
6283
|
}) {
|
|
6212
|
-
return /* @__PURE__ */ (0,
|
|
6284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_jsx_runtime94.Fragment, { children: values.map((value) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6213
6285
|
TrainingInfoGuidelineItem,
|
|
6214
6286
|
{
|
|
6215
6287
|
onClickFileDownload,
|
|
@@ -6227,11 +6299,11 @@ function TrainingInfoGuidelineItem({
|
|
|
6227
6299
|
}) {
|
|
6228
6300
|
const [isLoading, setIsLoading] = (0, import_react51.useState)(true);
|
|
6229
6301
|
if (value.type === "file") {
|
|
6230
|
-
return /* @__PURE__ */ (0,
|
|
6302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6231
6303
|
TrainingInfoGuidelineButton,
|
|
6232
6304
|
{
|
|
6233
6305
|
description: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
6234
|
-
icon: /* @__PURE__ */ (0,
|
|
6306
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons8.FileTextIcon, {}),
|
|
6235
6307
|
onClick: () => {
|
|
6236
6308
|
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
6237
6309
|
},
|
|
@@ -6240,11 +6312,11 @@ function TrainingInfoGuidelineItem({
|
|
|
6240
6312
|
);
|
|
6241
6313
|
}
|
|
6242
6314
|
if (value.type === "youtube-shorts") {
|
|
6243
|
-
return /* @__PURE__ */ (0,
|
|
6315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6244
6316
|
TrainingInfoGuidelineButton,
|
|
6245
6317
|
{
|
|
6246
6318
|
description: "TIPP \uC1FC\uCE20 \uBCF4\uAE30",
|
|
6247
|
-
icon: /* @__PURE__ */ (0,
|
|
6319
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons8.VideoIcon, {}),
|
|
6248
6320
|
onClick: () => {
|
|
6249
6321
|
window.open(value.url, "_blank");
|
|
6250
6322
|
},
|
|
@@ -6253,16 +6325,16 @@ function TrainingInfoGuidelineItem({
|
|
|
6253
6325
|
);
|
|
6254
6326
|
}
|
|
6255
6327
|
if (value.type === "video") {
|
|
6256
|
-
return /* @__PURE__ */ (0,
|
|
6257
|
-
/* @__PURE__ */ (0,
|
|
6328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Dialog.Root, { children: [
|
|
6329
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6258
6330
|
TrainingInfoGuidelineButton,
|
|
6259
6331
|
{
|
|
6260
6332
|
description: "\uC601\uC0C1 \uC790\uB8CC",
|
|
6261
|
-
icon: /* @__PURE__ */ (0,
|
|
6333
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_icons8.VideoIcon, {}),
|
|
6262
6334
|
title: value.videoTitle
|
|
6263
6335
|
}
|
|
6264
6336
|
) }),
|
|
6265
|
-
/* @__PURE__ */ (0,
|
|
6337
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6266
6338
|
Dialog.Content,
|
|
6267
6339
|
{
|
|
6268
6340
|
height: "100%",
|
|
@@ -6270,7 +6342,7 @@ function TrainingInfoGuidelineItem({
|
|
|
6270
6342
|
maxWidth: "800px",
|
|
6271
6343
|
title: value.videoTitle,
|
|
6272
6344
|
width: "100%",
|
|
6273
|
-
children: /* @__PURE__ */ (0,
|
|
6345
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
6274
6346
|
import_themes.Flex,
|
|
6275
6347
|
{
|
|
6276
6348
|
align: "center",
|
|
@@ -6282,7 +6354,7 @@ function TrainingInfoGuidelineItem({
|
|
|
6282
6354
|
position: "relative"
|
|
6283
6355
|
},
|
|
6284
6356
|
children: [
|
|
6285
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
6357
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6286
6358
|
import_themes.Flex,
|
|
6287
6359
|
{
|
|
6288
6360
|
align: "center",
|
|
@@ -6297,10 +6369,10 @@ function TrainingInfoGuidelineItem({
|
|
|
6297
6369
|
color: "white"
|
|
6298
6370
|
},
|
|
6299
6371
|
width: "100%",
|
|
6300
|
-
children: /* @__PURE__ */ (0,
|
|
6372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes4.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
6301
6373
|
}
|
|
6302
6374
|
) : null,
|
|
6303
|
-
/* @__PURE__ */ (0,
|
|
6375
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6304
6376
|
"iframe",
|
|
6305
6377
|
{
|
|
6306
6378
|
allowFullScreen: true,
|
|
@@ -6330,7 +6402,7 @@ function TrainingInfoGuidelineButton({
|
|
|
6330
6402
|
description,
|
|
6331
6403
|
onClick
|
|
6332
6404
|
}) {
|
|
6333
|
-
return /* @__PURE__ */ (0,
|
|
6405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6334
6406
|
Button,
|
|
6335
6407
|
{
|
|
6336
6408
|
onClick,
|
|
@@ -6343,11 +6415,11 @@ function TrainingInfoGuidelineButton({
|
|
|
6343
6415
|
paddingBottom: 8
|
|
6344
6416
|
},
|
|
6345
6417
|
variant: "outline",
|
|
6346
|
-
children: /* @__PURE__ */ (0,
|
|
6347
|
-
/* @__PURE__ */ (0,
|
|
6348
|
-
/* @__PURE__ */ (0,
|
|
6349
|
-
/* @__PURE__ */ (0,
|
|
6350
|
-
/* @__PURE__ */ (0,
|
|
6418
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes.Flex, { align: "center", gap: "2", width: "100%", children: [
|
|
6419
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes.Flex, { align: "center", flexShrink: "0", children: icon }),
|
|
6420
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_themes28.Separator, { orientation: "vertical", size: "2", style: { flexShrink: 0 } }),
|
|
6421
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_themes9.Box, { flexGrow: "1", style: { minWidth: 0 }, children: [
|
|
6422
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6351
6423
|
Typo,
|
|
6352
6424
|
{
|
|
6353
6425
|
as: "div",
|
|
@@ -6359,7 +6431,7 @@ function TrainingInfoGuidelineButton({
|
|
|
6359
6431
|
children: title
|
|
6360
6432
|
}
|
|
6361
6433
|
),
|
|
6362
|
-
typeof description === "string" && description !== "" ? /* @__PURE__ */ (0,
|
|
6434
|
+
typeof description === "string" && description !== "" ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6363
6435
|
Typo,
|
|
6364
6436
|
{
|
|
6365
6437
|
style: {
|
|
@@ -6687,7 +6759,7 @@ function resetFieldType(field, nextType, allFields) {
|
|
|
6687
6759
|
// src/molecules/dynamic-form-editor-field-editor-panel.tsx
|
|
6688
6760
|
var import_react52 = require("react");
|
|
6689
6761
|
var import_themes39 = require("@radix-ui/themes");
|
|
6690
|
-
var
|
|
6762
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
6691
6763
|
function isRecord4(value) {
|
|
6692
6764
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
6693
6765
|
}
|
|
@@ -6773,11 +6845,11 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6773
6845
|
if (!field) return "";
|
|
6774
6846
|
return String(field.placeholder || "");
|
|
6775
6847
|
}, [field]);
|
|
6776
|
-
return /* @__PURE__ */ (0,
|
|
6777
|
-
/* @__PURE__ */ (0,
|
|
6778
|
-
/* @__PURE__ */ (0,
|
|
6779
|
-
/* @__PURE__ */ (0,
|
|
6780
|
-
/* @__PURE__ */ (0,
|
|
6848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card, { style: { flex: 1, minWidth: 520, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { direction: "column", gap: "4", children: [
|
|
6849
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6850
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC \uD3B8\uC9D1" }),
|
|
6851
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "center", gap: "1", children: [
|
|
6852
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6781
6853
|
IconButton,
|
|
6782
6854
|
{
|
|
6783
6855
|
"aria-label": "\uD544\uB4DC \uC704\uB85C",
|
|
@@ -6786,10 +6858,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6786
6858
|
onMoveField("up");
|
|
6787
6859
|
},
|
|
6788
6860
|
variant: "soft",
|
|
6789
|
-
children: /* @__PURE__ */ (0,
|
|
6861
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
6790
6862
|
}
|
|
6791
6863
|
),
|
|
6792
|
-
/* @__PURE__ */ (0,
|
|
6864
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6793
6865
|
IconButton,
|
|
6794
6866
|
{
|
|
6795
6867
|
"aria-label": "\uD544\uB4DC \uC544\uB798\uB85C",
|
|
@@ -6798,36 +6870,36 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6798
6870
|
onMoveField("down");
|
|
6799
6871
|
},
|
|
6800
6872
|
variant: "soft",
|
|
6801
|
-
children: /* @__PURE__ */ (0,
|
|
6873
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
6802
6874
|
}
|
|
6803
6875
|
),
|
|
6804
|
-
/* @__PURE__ */ (0,
|
|
6876
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6805
6877
|
IconButton,
|
|
6806
6878
|
{
|
|
6807
6879
|
"aria-label": "\uD544\uB4DC \uBCF5\uC81C",
|
|
6808
6880
|
disabled: readonly || !field,
|
|
6809
6881
|
onClick: onDuplicateField,
|
|
6810
6882
|
variant: "soft",
|
|
6811
|
-
children: /* @__PURE__ */ (0,
|
|
6883
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.CopyIcon, {})
|
|
6812
6884
|
}
|
|
6813
6885
|
),
|
|
6814
|
-
/* @__PURE__ */ (0,
|
|
6886
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6815
6887
|
IconButton,
|
|
6816
6888
|
{
|
|
6817
6889
|
"aria-label": "\uD544\uB4DC \uC0AD\uC81C",
|
|
6818
6890
|
disabled: readonly || !field,
|
|
6819
6891
|
onClick: onDeleteField,
|
|
6820
6892
|
variant: "soft",
|
|
6821
|
-
children: /* @__PURE__ */ (0,
|
|
6893
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.TrashIcon, {})
|
|
6822
6894
|
}
|
|
6823
6895
|
)
|
|
6824
6896
|
] })
|
|
6825
6897
|
] }),
|
|
6826
|
-
!field ? /* @__PURE__ */ (0,
|
|
6827
|
-
/* @__PURE__ */ (0,
|
|
6828
|
-
/* @__PURE__ */ (0,
|
|
6829
|
-
/* @__PURE__ */ (0,
|
|
6830
|
-
/* @__PURE__ */ (0,
|
|
6898
|
+
!field ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC67C\uCABD\uC5D0\uC11C \uD544\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694." }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6899
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6900
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6901
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "name" }),
|
|
6902
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6831
6903
|
TextField.Root,
|
|
6832
6904
|
{
|
|
6833
6905
|
disabled: readonly,
|
|
@@ -6838,9 +6910,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6838
6910
|
}
|
|
6839
6911
|
)
|
|
6840
6912
|
] }),
|
|
6841
|
-
/* @__PURE__ */ (0,
|
|
6842
|
-
/* @__PURE__ */ (0,
|
|
6843
|
-
/* @__PURE__ */ (0,
|
|
6913
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6914
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6915
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6844
6916
|
TextField.Root,
|
|
6845
6917
|
{
|
|
6846
6918
|
disabled: readonly,
|
|
@@ -6852,8 +6924,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6852
6924
|
)
|
|
6853
6925
|
] })
|
|
6854
6926
|
] }),
|
|
6855
|
-
/* @__PURE__ */ (0,
|
|
6856
|
-
/* @__PURE__ */ (0,
|
|
6927
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "center", gap: "2", children: [
|
|
6928
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
6857
6929
|
Select.Root,
|
|
6858
6930
|
{
|
|
6859
6931
|
disabled: readonly,
|
|
@@ -6863,13 +6935,13 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6863
6935
|
},
|
|
6864
6936
|
value: field.type,
|
|
6865
6937
|
children: [
|
|
6866
|
-
/* @__PURE__ */ (0,
|
|
6867
|
-
/* @__PURE__ */ (0,
|
|
6938
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6939
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
6868
6940
|
]
|
|
6869
6941
|
}
|
|
6870
6942
|
),
|
|
6871
|
-
/* @__PURE__ */ (0,
|
|
6872
|
-
/* @__PURE__ */ (0,
|
|
6943
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "center", gap: "2", children: [
|
|
6944
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6873
6945
|
Checkbox,
|
|
6874
6946
|
{
|
|
6875
6947
|
checked: Boolean(field.required),
|
|
@@ -6879,12 +6951,12 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6879
6951
|
}
|
|
6880
6952
|
}
|
|
6881
6953
|
),
|
|
6882
|
-
/* @__PURE__ */ (0,
|
|
6954
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "\uD544\uC218" })
|
|
6883
6955
|
] })
|
|
6884
6956
|
] }),
|
|
6885
|
-
/* @__PURE__ */ (0,
|
|
6886
|
-
/* @__PURE__ */ (0,
|
|
6887
|
-
/* @__PURE__ */ (0,
|
|
6957
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "description" }),
|
|
6959
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6888
6960
|
TextArea,
|
|
6889
6961
|
{
|
|
6890
6962
|
disabled: readonly,
|
|
@@ -6898,9 +6970,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6898
6970
|
}
|
|
6899
6971
|
)
|
|
6900
6972
|
] }),
|
|
6901
|
-
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0,
|
|
6902
|
-
/* @__PURE__ */ (0,
|
|
6903
|
-
/* @__PURE__ */ (0,
|
|
6973
|
+
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
6974
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "placeholder" }),
|
|
6975
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6904
6976
|
TextField.Root,
|
|
6905
6977
|
{
|
|
6906
6978
|
disabled: readonly,
|
|
@@ -6911,9 +6983,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6911
6983
|
}
|
|
6912
6984
|
)
|
|
6913
6985
|
] }) : null,
|
|
6914
|
-
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
6915
|
-
/* @__PURE__ */ (0,
|
|
6916
|
-
/* @__PURE__ */ (0,
|
|
6986
|
+
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
6987
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "orientation" }),
|
|
6988
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
6917
6989
|
Select.Root,
|
|
6918
6990
|
{
|
|
6919
6991
|
disabled: readonly,
|
|
@@ -6923,19 +6995,19 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6923
6995
|
},
|
|
6924
6996
|
value: field.orientation || "vertical",
|
|
6925
6997
|
children: [
|
|
6926
|
-
/* @__PURE__ */ (0,
|
|
6927
|
-
/* @__PURE__ */ (0,
|
|
6928
|
-
/* @__PURE__ */ (0,
|
|
6929
|
-
/* @__PURE__ */ (0,
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6999
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Select.Content, { children: [
|
|
7000
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Item, { value: "vertical", children: "vertical" }),
|
|
7001
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Item, { value: "horizontal", children: "horizontal" })
|
|
6930
7002
|
] })
|
|
6931
7003
|
]
|
|
6932
7004
|
}
|
|
6933
7005
|
)
|
|
6934
7006
|
] }) : null,
|
|
6935
|
-
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
6936
|
-
/* @__PURE__ */ (0,
|
|
6937
|
-
/* @__PURE__ */ (0,
|
|
6938
|
-
/* @__PURE__ */ (0,
|
|
7007
|
+
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7008
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
7009
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "options" }),
|
|
7010
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
6939
7011
|
Button,
|
|
6940
7012
|
{
|
|
6941
7013
|
disabled: readonly,
|
|
@@ -6953,16 +7025,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6953
7025
|
size: "small",
|
|
6954
7026
|
variant: "soft",
|
|
6955
7027
|
children: [
|
|
6956
|
-
/* @__PURE__ */ (0,
|
|
7028
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.PlusIcon, {}),
|
|
6957
7029
|
" \uCD94\uAC00"
|
|
6958
7030
|
]
|
|
6959
7031
|
}
|
|
6960
7032
|
)
|
|
6961
7033
|
] }),
|
|
6962
|
-
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
6963
|
-
/* @__PURE__ */ (0,
|
|
6964
|
-
/* @__PURE__ */ (0,
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
7034
|
+
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
7035
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7036
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
7037
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6966
7038
|
TextField.Root,
|
|
6967
7039
|
{
|
|
6968
7040
|
disabled: readonly,
|
|
@@ -6977,9 +7049,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6977
7049
|
}
|
|
6978
7050
|
)
|
|
6979
7051
|
] }),
|
|
6980
|
-
/* @__PURE__ */ (0,
|
|
6981
|
-
/* @__PURE__ */ (0,
|
|
6982
|
-
/* @__PURE__ */ (0,
|
|
7052
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7053
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
7054
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6983
7055
|
TextField.Root,
|
|
6984
7056
|
{
|
|
6985
7057
|
disabled: readonly,
|
|
@@ -6994,8 +7066,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6994
7066
|
}
|
|
6995
7067
|
)
|
|
6996
7068
|
] }),
|
|
6997
|
-
/* @__PURE__ */ (0,
|
|
6998
|
-
/* @__PURE__ */ (0,
|
|
7069
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { gap: "1", children: [
|
|
7070
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
6999
7071
|
IconButton,
|
|
7000
7072
|
{
|
|
7001
7073
|
"aria-label": "\uC635\uC158 \uC704\uB85C",
|
|
@@ -7006,10 +7078,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7006
7078
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
7007
7079
|
},
|
|
7008
7080
|
variant: "soft",
|
|
7009
|
-
children: /* @__PURE__ */ (0,
|
|
7081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
7010
7082
|
}
|
|
7011
7083
|
),
|
|
7012
|
-
/* @__PURE__ */ (0,
|
|
7084
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7013
7085
|
IconButton,
|
|
7014
7086
|
{
|
|
7015
7087
|
"aria-label": "\uC635\uC158 \uC544\uB798\uB85C",
|
|
@@ -7020,10 +7092,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7020
7092
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
7021
7093
|
},
|
|
7022
7094
|
variant: "soft",
|
|
7023
|
-
children: /* @__PURE__ */ (0,
|
|
7095
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
7024
7096
|
}
|
|
7025
7097
|
),
|
|
7026
|
-
/* @__PURE__ */ (0,
|
|
7098
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7027
7099
|
IconButton,
|
|
7028
7100
|
{
|
|
7029
7101
|
"aria-label": "\uC635\uC158 \uC0AD\uC81C",
|
|
@@ -7034,16 +7106,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7034
7106
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
7035
7107
|
},
|
|
7036
7108
|
variant: "soft",
|
|
7037
|
-
children: /* @__PURE__ */ (0,
|
|
7109
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.TrashIcon, {})
|
|
7038
7110
|
}
|
|
7039
7111
|
)
|
|
7040
7112
|
] })
|
|
7041
7113
|
] }, `${opt.value}-${opt.label}`))
|
|
7042
7114
|
] }) }) : null,
|
|
7043
|
-
field.type === "image_radio_card" ? /* @__PURE__ */ (0,
|
|
7044
|
-
/* @__PURE__ */ (0,
|
|
7045
|
-
/* @__PURE__ */ (0,
|
|
7046
|
-
/* @__PURE__ */ (0,
|
|
7115
|
+
field.type === "image_radio_card" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
7116
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
7117
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "image options" }),
|
|
7118
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
7047
7119
|
Button,
|
|
7048
7120
|
{
|
|
7049
7121
|
disabled: readonly,
|
|
@@ -7062,21 +7134,21 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7062
7134
|
size: "small",
|
|
7063
7135
|
variant: "soft",
|
|
7064
7136
|
children: [
|
|
7065
|
-
/* @__PURE__ */ (0,
|
|
7137
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.PlusIcon, {}),
|
|
7066
7138
|
" \uCD94\uAC00"
|
|
7067
7139
|
]
|
|
7068
7140
|
}
|
|
7069
7141
|
)
|
|
7070
7142
|
] }),
|
|
7071
|
-
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
7143
|
+
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7072
7144
|
Card,
|
|
7073
7145
|
{
|
|
7074
7146
|
style: { padding: 10 },
|
|
7075
|
-
children: /* @__PURE__ */ (0,
|
|
7076
|
-
/* @__PURE__ */ (0,
|
|
7077
|
-
/* @__PURE__ */ (0,
|
|
7078
|
-
/* @__PURE__ */ (0,
|
|
7079
|
-
/* @__PURE__ */ (0,
|
|
7147
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7148
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
7149
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7150
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
7151
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7080
7152
|
TextField.Root,
|
|
7081
7153
|
{
|
|
7082
7154
|
disabled: readonly,
|
|
@@ -7093,9 +7165,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7093
7165
|
}
|
|
7094
7166
|
)
|
|
7095
7167
|
] }),
|
|
7096
|
-
/* @__PURE__ */ (0,
|
|
7097
|
-
/* @__PURE__ */ (0,
|
|
7098
|
-
/* @__PURE__ */ (0,
|
|
7168
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7169
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
7170
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7099
7171
|
TextField.Root,
|
|
7100
7172
|
{
|
|
7101
7173
|
disabled: readonly,
|
|
@@ -7113,9 +7185,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7113
7185
|
)
|
|
7114
7186
|
] })
|
|
7115
7187
|
] }),
|
|
7116
|
-
/* @__PURE__ */ (0,
|
|
7117
|
-
/* @__PURE__ */ (0,
|
|
7118
|
-
/* @__PURE__ */ (0,
|
|
7188
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
7189
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "imageSrc" }),
|
|
7190
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7119
7191
|
TextField.Root,
|
|
7120
7192
|
{
|
|
7121
7193
|
disabled: readonly,
|
|
@@ -7132,10 +7204,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7132
7204
|
}
|
|
7133
7205
|
)
|
|
7134
7206
|
] }),
|
|
7135
|
-
/* @__PURE__ */ (0,
|
|
7136
|
-
/* @__PURE__ */ (0,
|
|
7137
|
-
/* @__PURE__ */ (0,
|
|
7138
|
-
/* @__PURE__ */ (0,
|
|
7207
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
7208
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7209
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "alt" }),
|
|
7210
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7139
7211
|
TextField.Root,
|
|
7140
7212
|
{
|
|
7141
7213
|
disabled: readonly,
|
|
@@ -7153,7 +7225,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7153
7225
|
}
|
|
7154
7226
|
)
|
|
7155
7227
|
] }),
|
|
7156
|
-
/* @__PURE__ */ (0,
|
|
7228
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7157
7229
|
IconButton,
|
|
7158
7230
|
{
|
|
7159
7231
|
"aria-label": "\uC774\uBBF8\uC9C0 \uC635\uC158 \uC0AD\uC81C",
|
|
@@ -7166,7 +7238,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7166
7238
|
);
|
|
7167
7239
|
},
|
|
7168
7240
|
variant: "soft",
|
|
7169
|
-
children: /* @__PURE__ */ (0,
|
|
7241
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_icons.TrashIcon, {})
|
|
7170
7242
|
}
|
|
7171
7243
|
)
|
|
7172
7244
|
] })
|
|
@@ -7174,10 +7246,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7174
7246
|
},
|
|
7175
7247
|
`${opt.value}-${opt.label}-${opt.imageSrc}`
|
|
7176
7248
|
)),
|
|
7177
|
-
/* @__PURE__ */ (0,
|
|
7178
|
-
/* @__PURE__ */ (0,
|
|
7179
|
-
/* @__PURE__ */ (0,
|
|
7180
|
-
/* @__PURE__ */ (0,
|
|
7249
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
7250
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7251
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "gridColumnsCount" }),
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7181
7253
|
TextField.Root,
|
|
7182
7254
|
{
|
|
7183
7255
|
disabled: readonly,
|
|
@@ -7193,9 +7265,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7193
7265
|
}
|
|
7194
7266
|
)
|
|
7195
7267
|
] }),
|
|
7196
|
-
/* @__PURE__ */ (0,
|
|
7197
|
-
/* @__PURE__ */ (0,
|
|
7198
|
-
/* @__PURE__ */ (0,
|
|
7268
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7269
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "gridItemHeight" }),
|
|
7270
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7199
7271
|
TextField.Root,
|
|
7200
7272
|
{
|
|
7201
7273
|
disabled: readonly,
|
|
@@ -7208,9 +7280,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7208
7280
|
}
|
|
7209
7281
|
)
|
|
7210
7282
|
] }),
|
|
7211
|
-
/* @__PURE__ */ (0,
|
|
7212
|
-
/* @__PURE__ */ (0,
|
|
7213
|
-
/* @__PURE__ */ (0,
|
|
7283
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7284
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "gridGap" }),
|
|
7285
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7214
7286
|
TextField.Root,
|
|
7215
7287
|
{
|
|
7216
7288
|
disabled: readonly,
|
|
@@ -7222,9 +7294,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7222
7294
|
)
|
|
7223
7295
|
] })
|
|
7224
7296
|
] }),
|
|
7225
|
-
/* @__PURE__ */ (0,
|
|
7226
|
-
/* @__PURE__ */ (0,
|
|
7227
|
-
/* @__PURE__ */ (0,
|
|
7297
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
7298
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "imageFit" }),
|
|
7299
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
7228
7300
|
Select.Root,
|
|
7229
7301
|
{
|
|
7230
7302
|
disabled: readonly,
|
|
@@ -7234,22 +7306,22 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7234
7306
|
},
|
|
7235
7307
|
value: field.imageFit || "cover",
|
|
7236
7308
|
children: [
|
|
7237
|
-
/* @__PURE__ */ (0,
|
|
7238
|
-
/* @__PURE__ */ (0,
|
|
7239
|
-
/* @__PURE__ */ (0,
|
|
7240
|
-
/* @__PURE__ */ (0,
|
|
7309
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
7310
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Select.Content, { children: [
|
|
7311
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Item, { value: "cover", children: "cover" }),
|
|
7312
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Select.Item, { value: "contain", children: "contain" })
|
|
7241
7313
|
] })
|
|
7242
7314
|
]
|
|
7243
7315
|
}
|
|
7244
7316
|
)
|
|
7245
7317
|
] })
|
|
7246
7318
|
] }) }) : null,
|
|
7247
|
-
/* @__PURE__ */ (0,
|
|
7248
|
-
/* @__PURE__ */ (0,
|
|
7249
|
-
/* @__PURE__ */ (0,
|
|
7250
|
-
/* @__PURE__ */ (0,
|
|
7251
|
-
/* @__PURE__ */ (0,
|
|
7252
|
-
/* @__PURE__ */ (0,
|
|
7319
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7320
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "validation" }),
|
|
7321
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
7322
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7323
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "min" }),
|
|
7324
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7253
7325
|
TextField.Root,
|
|
7254
7326
|
{
|
|
7255
7327
|
disabled: readonly,
|
|
@@ -7265,9 +7337,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7265
7337
|
}
|
|
7266
7338
|
)
|
|
7267
7339
|
] }),
|
|
7268
|
-
/* @__PURE__ */ (0,
|
|
7269
|
-
/* @__PURE__ */ (0,
|
|
7270
|
-
/* @__PURE__ */ (0,
|
|
7340
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
7341
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "max" }),
|
|
7342
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7271
7343
|
TextField.Root,
|
|
7272
7344
|
{
|
|
7273
7345
|
disabled: readonly,
|
|
@@ -7284,9 +7356,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7284
7356
|
)
|
|
7285
7357
|
] })
|
|
7286
7358
|
] }),
|
|
7287
|
-
/* @__PURE__ */ (0,
|
|
7288
|
-
/* @__PURE__ */ (0,
|
|
7289
|
-
/* @__PURE__ */ (0,
|
|
7359
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
7360
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "pattern" }),
|
|
7361
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7290
7362
|
TextField.Root,
|
|
7291
7363
|
{
|
|
7292
7364
|
disabled: readonly,
|
|
@@ -7299,9 +7371,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7299
7371
|
}
|
|
7300
7372
|
)
|
|
7301
7373
|
] }),
|
|
7302
|
-
/* @__PURE__ */ (0,
|
|
7303
|
-
/* @__PURE__ */ (0,
|
|
7304
|
-
/* @__PURE__ */ (0,
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_themes39.Box, { children: [
|
|
7375
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Typo, { variant: "caption", children: "message" }),
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7305
7377
|
TextField.Root,
|
|
7306
7378
|
{
|
|
7307
7379
|
disabled: readonly,
|
|
@@ -7322,7 +7394,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
7322
7394
|
// src/molecules/dynamic-form-editor-field-list-panel.tsx
|
|
7323
7395
|
var import_react53 = require("react");
|
|
7324
7396
|
var import_themes40 = require("@radix-ui/themes");
|
|
7325
|
-
var
|
|
7397
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7326
7398
|
function isFieldType2(value, types) {
|
|
7327
7399
|
return types.some((t) => t === value);
|
|
7328
7400
|
}
|
|
@@ -7340,10 +7412,10 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
7340
7412
|
const triggerPlaceholder = (0, import_react53.useMemo)(() => {
|
|
7341
7413
|
return readonly ? "\uCD94\uAC00(\uC77D\uAE30 \uC804\uC6A9)" : "\uCD94\uAC00";
|
|
7342
7414
|
}, [readonly]);
|
|
7343
|
-
return /* @__PURE__ */ (0,
|
|
7344
|
-
/* @__PURE__ */ (0,
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7346
|
-
/* @__PURE__ */ (0,
|
|
7415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card, { style: { width: 340, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
7416
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
7417
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC" }),
|
|
7418
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
7347
7419
|
Select.Root,
|
|
7348
7420
|
{
|
|
7349
7421
|
disabled: readonly,
|
|
@@ -7353,18 +7425,18 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
7353
7425
|
},
|
|
7354
7426
|
value: "",
|
|
7355
7427
|
children: [
|
|
7356
|
-
/* @__PURE__ */ (0,
|
|
7357
|
-
/* @__PURE__ */ (0,
|
|
7428
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Select.Trigger, { placeholder: triggerPlaceholder }),
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
7358
7430
|
]
|
|
7359
7431
|
}
|
|
7360
7432
|
)
|
|
7361
7433
|
] }),
|
|
7362
|
-
/* @__PURE__ */ (0,
|
|
7363
|
-
isEmpty ? /* @__PURE__ */ (0,
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7435
|
+
isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC544\uC9C1 \uD544\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) : null,
|
|
7364
7436
|
fields.map((field) => {
|
|
7365
7437
|
const isSelected = field.name === selectedFieldName;
|
|
7366
7438
|
const hasError = hasFieldError(field.name);
|
|
7367
|
-
return /* @__PURE__ */ (0,
|
|
7439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7368
7440
|
Card,
|
|
7369
7441
|
{
|
|
7370
7442
|
error: isSelected ? hasError : void 0,
|
|
@@ -7377,8 +7449,8 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
7377
7449
|
opacity: readonly ? 0.8 : 1,
|
|
7378
7450
|
border: isSelected ? "1px solid var(--accent-9)" : "1px solid transparent"
|
|
7379
7451
|
},
|
|
7380
|
-
children: /* @__PURE__ */ (0,
|
|
7381
|
-
/* @__PURE__ */ (0,
|
|
7452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_themes40.Box, { style: { minWidth: 0 }, children: [
|
|
7453
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7382
7454
|
Typo,
|
|
7383
7455
|
{
|
|
7384
7456
|
style: {
|
|
@@ -7390,7 +7462,7 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
7390
7462
|
children: field.label
|
|
7391
7463
|
}
|
|
7392
7464
|
),
|
|
7393
|
-
/* @__PURE__ */ (0,
|
|
7465
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
7394
7466
|
field.name,
|
|
7395
7467
|
" \xB7 ",
|
|
7396
7468
|
field.type,
|
|
@@ -7406,13 +7478,13 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
7406
7478
|
}
|
|
7407
7479
|
|
|
7408
7480
|
// src/molecules/dynamic-form-editor-issues-panel.tsx
|
|
7409
|
-
var
|
|
7481
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7410
7482
|
function DynamicFormEditorIssuesPanel(props) {
|
|
7411
7483
|
const { issues } = props;
|
|
7412
7484
|
if (issues.length === 0) return null;
|
|
7413
|
-
return /* @__PURE__ */ (0,
|
|
7414
|
-
/* @__PURE__ */ (0,
|
|
7415
|
-
issues.map((i) => /* @__PURE__ */ (0,
|
|
7485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7486
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Typo, { variant: "caption", children: "\uC2A4\uD0A4\uB9C8 \uC774\uC288" }),
|
|
7487
|
+
issues.map((i) => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7416
7488
|
Typo,
|
|
7417
7489
|
{
|
|
7418
7490
|
color: i.level === "error" ? "red" : "gray",
|
|
@@ -7431,18 +7503,18 @@ function DynamicFormEditorIssuesPanel(props) {
|
|
|
7431
7503
|
}
|
|
7432
7504
|
|
|
7433
7505
|
// src/molecules/dynamic-form-editor-preview-panel.tsx
|
|
7434
|
-
var
|
|
7506
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7435
7507
|
function DynamicFormEditorPreviewPanel(props) {
|
|
7436
7508
|
const { show, fields } = props;
|
|
7437
7509
|
if (!show) return null;
|
|
7438
|
-
return /* @__PURE__ */ (0,
|
|
7439
|
-
/* @__PURE__ */ (0,
|
|
7440
|
-
/* @__PURE__ */ (0,
|
|
7510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Card, { style: { width: 420, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
7511
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Typo, { variant: "body", children: "\uD504\uB9AC\uBDF0" }),
|
|
7512
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(DynamicForm.Root, { fields, onSubmit: () => void 0, readonly: true, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(DynamicForm.FieldList, { labelVariant: "body" }) })
|
|
7441
7513
|
] }) });
|
|
7442
7514
|
}
|
|
7443
7515
|
|
|
7444
7516
|
// src/molecules/dynamic-form-editor.tsx
|
|
7445
|
-
var
|
|
7517
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7446
7518
|
function getInitialSchema(value, defaultValue) {
|
|
7447
7519
|
if (value !== void 0) return normalizeSchema(value);
|
|
7448
7520
|
return normalizeSchema(defaultValue);
|
|
@@ -7592,8 +7664,8 @@ function DynamicFormEditor(props) {
|
|
|
7592
7664
|
void result;
|
|
7593
7665
|
}, [effectiveSchema, onSave]);
|
|
7594
7666
|
const disableSave = readonly || !onSave || hasErrorIssues(issues);
|
|
7595
|
-
return /* @__PURE__ */ (0,
|
|
7596
|
-
/* @__PURE__ */ (0,
|
|
7667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes.Flex, { align: "start", gap: "4", style: { width: "100%" }, children: [
|
|
7668
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
7597
7669
|
DynamicFormEditorFieldListPanel,
|
|
7598
7670
|
{
|
|
7599
7671
|
fieldTypes,
|
|
@@ -7605,8 +7677,8 @@ function DynamicFormEditor(props) {
|
|
|
7605
7677
|
selectedFieldName
|
|
7606
7678
|
}
|
|
7607
7679
|
),
|
|
7608
|
-
/* @__PURE__ */ (0,
|
|
7609
|
-
/* @__PURE__ */ (0,
|
|
7680
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes.Flex, { direction: "column", gap: "3", style: { flex: 1, minWidth: 520 }, children: [
|
|
7681
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
7610
7682
|
DynamicFormEditorFieldEditorPanel,
|
|
7611
7683
|
{
|
|
7612
7684
|
field: selected.field,
|
|
@@ -7621,13 +7693,13 @@ function DynamicFormEditor(props) {
|
|
|
7621
7693
|
readonly
|
|
7622
7694
|
}
|
|
7623
7695
|
),
|
|
7624
|
-
/* @__PURE__ */ (0,
|
|
7625
|
-
onSave || onCancel ? /* @__PURE__ */ (0,
|
|
7626
|
-
onCancel ? /* @__PURE__ */ (0,
|
|
7627
|
-
onSave ? /* @__PURE__ */ (0,
|
|
7696
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DynamicFormEditorIssuesPanel, { issues }),
|
|
7697
|
+
onSave || onCancel ? /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_themes.Flex, { gap: "2", justify: "end", children: [
|
|
7698
|
+
onCancel ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { disabled: readonly, onClick: onCancel, variant: "soft", children: "\uCDE8\uC18C" }) : null,
|
|
7699
|
+
onSave ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { disabled: disableSave, onClick: handleSave, children: "\uC800\uC7A5" }) : null
|
|
7628
7700
|
] }) : null
|
|
7629
7701
|
] }),
|
|
7630
|
-
/* @__PURE__ */ (0,
|
|
7702
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DynamicFormEditorPreviewPanel, { fields: effectiveSchema.fields, show: showPreview })
|
|
7631
7703
|
] });
|
|
7632
7704
|
}
|
|
7633
7705
|
|
|
@@ -7638,7 +7710,7 @@ var import_themes42 = require("@radix-ui/themes");
|
|
|
7638
7710
|
// src/atoms/dropdown-menu.tsx
|
|
7639
7711
|
var import_themes41 = require("@radix-ui/themes");
|
|
7640
7712
|
var import_react55 = require("react");
|
|
7641
|
-
var
|
|
7713
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
7642
7714
|
var DropdownMenuContext = (0, import_react55.createContext)({});
|
|
7643
7715
|
var Content5 = (0, import_react55.forwardRef)((props, ref) => {
|
|
7644
7716
|
const _a = props, { isNavigation, className, color } = _a, rest = __objRest(_a, ["isNavigation", "className", "color"]);
|
|
@@ -7656,7 +7728,7 @@ var Content5 = (0, import_react55.forwardRef)((props, ref) => {
|
|
|
7656
7728
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
7657
7729
|
return [cls, colorClassName, className].filter(Boolean).join(" ");
|
|
7658
7730
|
}, [isNavigation, colorClassName, className]);
|
|
7659
|
-
return /* @__PURE__ */ (0,
|
|
7731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7660
7732
|
import_themes41.DropdownMenu.Content,
|
|
7661
7733
|
__spreadProps(__spreadValues({
|
|
7662
7734
|
ref
|
|
@@ -7670,14 +7742,14 @@ Content5.displayName = "DropdownMenu.Content";
|
|
|
7670
7742
|
var Trigger4 = (0, import_react55.forwardRef)(
|
|
7671
7743
|
(_a, ref) => {
|
|
7672
7744
|
var _b = _a, { asChild: _asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
7673
|
-
return /* @__PURE__ */ (0,
|
|
7745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes41.DropdownMenu.Trigger, __spreadValues({ ref }, props));
|
|
7674
7746
|
}
|
|
7675
7747
|
);
|
|
7676
7748
|
Trigger4.displayName = "DropdownMenu.Trigger";
|
|
7677
7749
|
function Root15(props) {
|
|
7678
7750
|
const _a = props, { color } = _a, rest = __objRest(_a, ["color"]);
|
|
7679
7751
|
const value = (0, import_react55.useMemo)(() => ({ color }), [color]);
|
|
7680
|
-
return /* @__PURE__ */ (0,
|
|
7752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(DropdownMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_themes41.DropdownMenu.Root, __spreadValues({}, rest)) });
|
|
7681
7753
|
}
|
|
7682
7754
|
Root15.displayName = "DropdownMenu.Root";
|
|
7683
7755
|
var DropdownMenu = __spreadProps(__spreadValues({}, import_themes41.DropdownMenu), {
|
|
@@ -7687,7 +7759,7 @@ var DropdownMenu = __spreadProps(__spreadValues({}, import_themes41.DropdownMenu
|
|
|
7687
7759
|
});
|
|
7688
7760
|
|
|
7689
7761
|
// src/molecules/autocomplete-textfield.tsx
|
|
7690
|
-
var
|
|
7762
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
7691
7763
|
var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
7692
7764
|
(_a, ref) => {
|
|
7693
7765
|
var _b = _a, {
|
|
@@ -7813,8 +7885,8 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7813
7885
|
const item = listRef.current.children[highlightedIndex];
|
|
7814
7886
|
item.scrollIntoView({ block: "nearest" });
|
|
7815
7887
|
}, [highlightedIndex]);
|
|
7816
|
-
return /* @__PURE__ */ (0,
|
|
7817
|
-
/* @__PURE__ */ (0,
|
|
7888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_themes42.Box, { position: "relative", style: { width: "100%" }, children: [
|
|
7889
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
7818
7890
|
TextField.Root,
|
|
7819
7891
|
__spreadProps(__spreadValues({
|
|
7820
7892
|
"aria-activedescendant": open && highlightedIndex >= 0 ? `${listboxId}-option-${highlightedIndex}` : void 0,
|
|
@@ -7840,12 +7912,12 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7840
7912
|
value: inputValue
|
|
7841
7913
|
}, rest), {
|
|
7842
7914
|
children: [
|
|
7843
|
-
slotLeft && /* @__PURE__ */ (0,
|
|
7844
|
-
slotRight && /* @__PURE__ */ (0,
|
|
7915
|
+
slotLeft && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TextField.Slot, { side: "left", children: slotLeft }),
|
|
7916
|
+
slotRight && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TextField.Slot, { side: "right", children: slotRight })
|
|
7845
7917
|
]
|
|
7846
7918
|
})
|
|
7847
7919
|
),
|
|
7848
|
-
/* @__PURE__ */ (0,
|
|
7920
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
7849
7921
|
DropdownMenu.Root,
|
|
7850
7922
|
{
|
|
7851
7923
|
modal: false,
|
|
@@ -7857,7 +7929,7 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7857
7929
|
},
|
|
7858
7930
|
open,
|
|
7859
7931
|
children: [
|
|
7860
|
-
/* @__PURE__ */ (0,
|
|
7932
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7861
7933
|
"span",
|
|
7862
7934
|
{
|
|
7863
7935
|
"aria-hidden": "true",
|
|
@@ -7872,7 +7944,7 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7872
7944
|
}
|
|
7873
7945
|
}
|
|
7874
7946
|
) }),
|
|
7875
|
-
/* @__PURE__ */ (0,
|
|
7947
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7876
7948
|
DropdownMenu.Content,
|
|
7877
7949
|
{
|
|
7878
7950
|
align: "start",
|
|
@@ -7889,7 +7961,7 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7889
7961
|
padding: 0,
|
|
7890
7962
|
width: "var(--radix-dropdown-menu-trigger-width)"
|
|
7891
7963
|
},
|
|
7892
|
-
children: filtered.length === 0 && emptyMessage !== null ? /* @__PURE__ */ (0,
|
|
7964
|
+
children: filtered.length === 0 && emptyMessage !== null ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_themes42.Box, { px: "2", py: "2", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Typo, { color: "gray", children: emptyMessage }) }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7893
7965
|
"ul",
|
|
7894
7966
|
{
|
|
7895
7967
|
id: listboxId,
|
|
@@ -7898,7 +7970,7 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7898
7970
|
style: { listStyle: "none", margin: 0, padding: 0 },
|
|
7899
7971
|
children: filtered.map((option, index) => {
|
|
7900
7972
|
const isHighlighted = index === highlightedIndex;
|
|
7901
|
-
return /* @__PURE__ */ (0,
|
|
7973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7902
7974
|
"li",
|
|
7903
7975
|
{
|
|
7904
7976
|
"aria-selected": isHighlighted,
|
|
@@ -7917,7 +7989,7 @@ var AutocompleteTextfield = (0, import_react56.forwardRef)(
|
|
|
7917
7989
|
backgroundColor: isHighlighted ? "var(--accent-3)" : "transparent",
|
|
7918
7990
|
transition: "background-color 80ms"
|
|
7919
7991
|
},
|
|
7920
|
-
children: /* @__PURE__ */ (0,
|
|
7992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Typo, { variant: "body", children: option.label })
|
|
7921
7993
|
},
|
|
7922
7994
|
option.value
|
|
7923
7995
|
);
|
|
@@ -7950,6 +8022,7 @@ AutocompleteTextfield.displayName = "AutocompleteTextfield";
|
|
|
7950
8022
|
DynamicFormEditor,
|
|
7951
8023
|
DynamicFormField,
|
|
7952
8024
|
DynamicFormResponseItem,
|
|
8025
|
+
EmptyState,
|
|
7953
8026
|
ExpandTable,
|
|
7954
8027
|
ForceRefresh,
|
|
7955
8028
|
GhostPost,
|