@tipp/ui 2.10.3 → 2.10.5
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 +82 -80
- 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 +66 -64
- 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 +66 -64
- 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 +67 -65
- 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 +66 -64
- 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 +67 -65
- 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 +67 -65
- 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 +463 -389
- package/dist/app/roleplay/index.cjs.map +1 -1
- package/dist/app/roleplay/index.js +78 -76
- 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 +389 -315
- package/dist/app/roleplay/parts/content.cjs.map +1 -1
- package/dist/app/roleplay/parts/content.js +74 -72
- 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 +232 -158
- package/dist/app/roleplay/parts/score-trend-section.cjs.map +1 -1
- package/dist/app/roleplay/parts/score-trend-section.js +70 -68
- 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 +463 -389
- package/dist/app/roleplay/rp-session-detail.cjs.map +1 -1
- package/dist/app/roleplay/rp-session-detail.js +78 -76
- 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-RZW6FVML.js → chunk-2IRG44IV.js} +2 -2
- 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-OBJA26HX.js → chunk-6GODZ2YW.js} +8 -8
- 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-PBKV2YMF.js → chunk-CPSXONQO.js} +9 -9
- 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-YYVSUTXO.js → chunk-LK2H4QTJ.js} +4 -4
- package/dist/{chunk-XMZYZJTH.js → chunk-N3FMP27I.js} +4 -4
- 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-5RIAIE2J.js → chunk-U4XM7VNI.js} +9 -3
- package/dist/chunk-U4XM7VNI.js.map +1 -0
- 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-66SUBB2N.js → chunk-W7LO5KYT.js} +9 -9
- 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 +963 -885
- 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 +156 -148
- 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 +197 -59
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +7 -4
- package/dist/molecules/index.cjs +866 -790
- 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 +76 -71
- 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 +5 -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-RZW6FVML.js.map → chunk-2IRG44IV.js.map} +0 -0
- /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-OBJA26HX.js.map → chunk-6GODZ2YW.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-PBKV2YMF.js.map → chunk-CPSXONQO.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-YYVSUTXO.js.map → chunk-LK2H4QTJ.js.map} +0 -0
- /package/dist/{chunk-XMZYZJTH.js.map → chunk-N3FMP27I.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-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-66SUBB2N.js.map → chunk-W7LO5KYT.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
|
@@ -1451,8 +1451,31 @@ var HeadsetIcon = React19.forwardRef(
|
|
|
1451
1451
|
);
|
|
1452
1452
|
HeadsetIcon.displayName = "HeadsetIcon";
|
|
1453
1453
|
|
|
1454
|
-
// src/
|
|
1454
|
+
// src/icons/empty-box.tsx
|
|
1455
|
+
var React20 = __toESM(require("react"), 1);
|
|
1455
1456
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1457
|
+
var EmptyBoxIcon = React20.forwardRef(
|
|
1458
|
+
(_a, forwardedRef) => {
|
|
1459
|
+
var _b = _a, { color = "currentColor", width = 120, height = 120 } = _b, props = __objRest(_b, ["color", "width", "height"]);
|
|
1460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1461
|
+
"svg",
|
|
1462
|
+
__spreadProps(__spreadValues({
|
|
1463
|
+
fill: color,
|
|
1464
|
+
height,
|
|
1465
|
+
viewBox: "0 0 462.035 462.035",
|
|
1466
|
+
width,
|
|
1467
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1468
|
+
}, props), {
|
|
1469
|
+
ref: forwardedRef,
|
|
1470
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.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" })
|
|
1471
|
+
})
|
|
1472
|
+
);
|
|
1473
|
+
}
|
|
1474
|
+
);
|
|
1475
|
+
EmptyBoxIcon.displayName = "EmptyBoxIcon";
|
|
1476
|
+
|
|
1477
|
+
// src/molecules/dynamic-form-editor-field-editor-panel.tsx
|
|
1478
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1456
1479
|
function isRecord2(value) {
|
|
1457
1480
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
1458
1481
|
}
|
|
@@ -1538,11 +1561,11 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1538
1561
|
if (!field) return "";
|
|
1539
1562
|
return String(field.placeholder || "");
|
|
1540
1563
|
}, [field]);
|
|
1541
|
-
return /* @__PURE__ */ (0,
|
|
1542
|
-
/* @__PURE__ */ (0,
|
|
1543
|
-
/* @__PURE__ */ (0,
|
|
1544
|
-
/* @__PURE__ */ (0,
|
|
1545
|
-
/* @__PURE__ */ (0,
|
|
1564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Card, { style: { flex: 1, minWidth: 520, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { direction: "column", gap: "4", children: [
|
|
1565
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1566
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC \uD3B8\uC9D1" }),
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "center", gap: "1", children: [
|
|
1568
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1546
1569
|
IconButton,
|
|
1547
1570
|
{
|
|
1548
1571
|
"aria-label": "\uD544\uB4DC \uC704\uB85C",
|
|
@@ -1551,10 +1574,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1551
1574
|
onMoveField("up");
|
|
1552
1575
|
},
|
|
1553
1576
|
variant: "soft",
|
|
1554
|
-
children: /* @__PURE__ */ (0,
|
|
1577
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
1555
1578
|
}
|
|
1556
1579
|
),
|
|
1557
|
-
/* @__PURE__ */ (0,
|
|
1580
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1558
1581
|
IconButton,
|
|
1559
1582
|
{
|
|
1560
1583
|
"aria-label": "\uD544\uB4DC \uC544\uB798\uB85C",
|
|
@@ -1563,36 +1586,36 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1563
1586
|
onMoveField("down");
|
|
1564
1587
|
},
|
|
1565
1588
|
variant: "soft",
|
|
1566
|
-
children: /* @__PURE__ */ (0,
|
|
1589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
1567
1590
|
}
|
|
1568
1591
|
),
|
|
1569
|
-
/* @__PURE__ */ (0,
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1570
1593
|
IconButton,
|
|
1571
1594
|
{
|
|
1572
1595
|
"aria-label": "\uD544\uB4DC \uBCF5\uC81C",
|
|
1573
1596
|
disabled: readonly || !field,
|
|
1574
1597
|
onClick: onDuplicateField,
|
|
1575
1598
|
variant: "soft",
|
|
1576
|
-
children: /* @__PURE__ */ (0,
|
|
1599
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.CopyIcon, {})
|
|
1577
1600
|
}
|
|
1578
1601
|
),
|
|
1579
|
-
/* @__PURE__ */ (0,
|
|
1602
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1580
1603
|
IconButton,
|
|
1581
1604
|
{
|
|
1582
1605
|
"aria-label": "\uD544\uB4DC \uC0AD\uC81C",
|
|
1583
1606
|
disabled: readonly || !field,
|
|
1584
1607
|
onClick: onDeleteField,
|
|
1585
1608
|
variant: "soft",
|
|
1586
|
-
children: /* @__PURE__ */ (0,
|
|
1609
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.TrashIcon, {})
|
|
1587
1610
|
}
|
|
1588
1611
|
)
|
|
1589
1612
|
] })
|
|
1590
1613
|
] }),
|
|
1591
|
-
!field ? /* @__PURE__ */ (0,
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1593
|
-
/* @__PURE__ */ (0,
|
|
1594
|
-
/* @__PURE__ */ (0,
|
|
1595
|
-
/* @__PURE__ */ (0,
|
|
1614
|
+
!field ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC67C\uCABD\uC5D0\uC11C \uD544\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694." }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
1615
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1616
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1617
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "name" }),
|
|
1618
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1596
1619
|
TextField.Root,
|
|
1597
1620
|
{
|
|
1598
1621
|
disabled: readonly,
|
|
@@ -1603,9 +1626,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1603
1626
|
}
|
|
1604
1627
|
)
|
|
1605
1628
|
] }),
|
|
1606
|
-
/* @__PURE__ */ (0,
|
|
1607
|
-
/* @__PURE__ */ (0,
|
|
1608
|
-
/* @__PURE__ */ (0,
|
|
1629
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1630
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
1631
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1609
1632
|
TextField.Root,
|
|
1610
1633
|
{
|
|
1611
1634
|
disabled: readonly,
|
|
@@ -1617,8 +1640,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1617
1640
|
)
|
|
1618
1641
|
] })
|
|
1619
1642
|
] }),
|
|
1620
|
-
/* @__PURE__ */ (0,
|
|
1621
|
-
/* @__PURE__ */ (0,
|
|
1643
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "center", gap: "2", children: [
|
|
1644
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1622
1645
|
Select.Root,
|
|
1623
1646
|
{
|
|
1624
1647
|
disabled: readonly,
|
|
@@ -1628,13 +1651,13 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1628
1651
|
},
|
|
1629
1652
|
value: field.type,
|
|
1630
1653
|
children: [
|
|
1631
|
-
/* @__PURE__ */ (0,
|
|
1632
|
-
/* @__PURE__ */ (0,
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
1633
1656
|
]
|
|
1634
1657
|
}
|
|
1635
1658
|
),
|
|
1636
|
-
/* @__PURE__ */ (0,
|
|
1637
|
-
/* @__PURE__ */ (0,
|
|
1659
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "center", gap: "2", children: [
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1638
1661
|
Checkbox,
|
|
1639
1662
|
{
|
|
1640
1663
|
checked: Boolean(field.required),
|
|
@@ -1644,12 +1667,12 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1644
1667
|
}
|
|
1645
1668
|
}
|
|
1646
1669
|
),
|
|
1647
|
-
/* @__PURE__ */ (0,
|
|
1670
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "\uD544\uC218" })
|
|
1648
1671
|
] })
|
|
1649
1672
|
] }),
|
|
1650
|
-
/* @__PURE__ */ (0,
|
|
1651
|
-
/* @__PURE__ */ (0,
|
|
1652
|
-
/* @__PURE__ */ (0,
|
|
1673
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
1674
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "description" }),
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1653
1676
|
TextArea,
|
|
1654
1677
|
{
|
|
1655
1678
|
disabled: readonly,
|
|
@@ -1663,9 +1686,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1663
1686
|
}
|
|
1664
1687
|
)
|
|
1665
1688
|
] }),
|
|
1666
|
-
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0,
|
|
1667
|
-
/* @__PURE__ */ (0,
|
|
1668
|
-
/* @__PURE__ */ (0,
|
|
1689
|
+
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
1690
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "placeholder" }),
|
|
1691
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1669
1692
|
TextField.Root,
|
|
1670
1693
|
{
|
|
1671
1694
|
disabled: readonly,
|
|
@@ -1676,9 +1699,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1676
1699
|
}
|
|
1677
1700
|
)
|
|
1678
1701
|
] }) : null,
|
|
1679
|
-
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
1680
|
-
/* @__PURE__ */ (0,
|
|
1681
|
-
/* @__PURE__ */ (0,
|
|
1702
|
+
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
1703
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "orientation" }),
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1682
1705
|
Select.Root,
|
|
1683
1706
|
{
|
|
1684
1707
|
disabled: readonly,
|
|
@@ -1688,19 +1711,19 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1688
1711
|
},
|
|
1689
1712
|
value: field.orientation || "vertical",
|
|
1690
1713
|
children: [
|
|
1691
|
-
/* @__PURE__ */ (0,
|
|
1692
|
-
/* @__PURE__ */ (0,
|
|
1693
|
-
/* @__PURE__ */ (0,
|
|
1694
|
-
/* @__PURE__ */ (0,
|
|
1714
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Select.Content, { children: [
|
|
1716
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Item, { value: "vertical", children: "vertical" }),
|
|
1717
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Item, { value: "horizontal", children: "horizontal" })
|
|
1695
1718
|
] })
|
|
1696
1719
|
]
|
|
1697
1720
|
}
|
|
1698
1721
|
)
|
|
1699
1722
|
] }) : null,
|
|
1700
|
-
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
1701
|
-
/* @__PURE__ */ (0,
|
|
1702
|
-
/* @__PURE__ */ (0,
|
|
1703
|
-
/* @__PURE__ */ (0,
|
|
1723
|
+
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
1724
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1725
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "options" }),
|
|
1726
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1704
1727
|
Button,
|
|
1705
1728
|
{
|
|
1706
1729
|
disabled: readonly,
|
|
@@ -1718,16 +1741,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1718
1741
|
size: "small",
|
|
1719
1742
|
variant: "soft",
|
|
1720
1743
|
children: [
|
|
1721
|
-
/* @__PURE__ */ (0,
|
|
1744
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.PlusIcon, {}),
|
|
1722
1745
|
" \uCD94\uAC00"
|
|
1723
1746
|
]
|
|
1724
1747
|
}
|
|
1725
1748
|
)
|
|
1726
1749
|
] }),
|
|
1727
|
-
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
1728
|
-
/* @__PURE__ */ (0,
|
|
1729
|
-
/* @__PURE__ */ (0,
|
|
1730
|
-
/* @__PURE__ */ (0,
|
|
1750
|
+
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1751
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1752
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
1753
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1731
1754
|
TextField.Root,
|
|
1732
1755
|
{
|
|
1733
1756
|
disabled: readonly,
|
|
@@ -1742,9 +1765,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1742
1765
|
}
|
|
1743
1766
|
)
|
|
1744
1767
|
] }),
|
|
1745
|
-
/* @__PURE__ */ (0,
|
|
1746
|
-
/* @__PURE__ */ (0,
|
|
1747
|
-
/* @__PURE__ */ (0,
|
|
1768
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1769
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
1770
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1748
1771
|
TextField.Root,
|
|
1749
1772
|
{
|
|
1750
1773
|
disabled: readonly,
|
|
@@ -1759,8 +1782,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1759
1782
|
}
|
|
1760
1783
|
)
|
|
1761
1784
|
] }),
|
|
1762
|
-
/* @__PURE__ */ (0,
|
|
1763
|
-
/* @__PURE__ */ (0,
|
|
1785
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { gap: "1", children: [
|
|
1786
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1764
1787
|
IconButton,
|
|
1765
1788
|
{
|
|
1766
1789
|
"aria-label": "\uC635\uC158 \uC704\uB85C",
|
|
@@ -1771,10 +1794,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1771
1794
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
1772
1795
|
},
|
|
1773
1796
|
variant: "soft",
|
|
1774
|
-
children: /* @__PURE__ */ (0,
|
|
1797
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
1775
1798
|
}
|
|
1776
1799
|
),
|
|
1777
|
-
/* @__PURE__ */ (0,
|
|
1800
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1778
1801
|
IconButton,
|
|
1779
1802
|
{
|
|
1780
1803
|
"aria-label": "\uC635\uC158 \uC544\uB798\uB85C",
|
|
@@ -1785,10 +1808,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1785
1808
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
1786
1809
|
},
|
|
1787
1810
|
variant: "soft",
|
|
1788
|
-
children: /* @__PURE__ */ (0,
|
|
1811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
1789
1812
|
}
|
|
1790
1813
|
),
|
|
1791
|
-
/* @__PURE__ */ (0,
|
|
1814
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1792
1815
|
IconButton,
|
|
1793
1816
|
{
|
|
1794
1817
|
"aria-label": "\uC635\uC158 \uC0AD\uC81C",
|
|
@@ -1799,16 +1822,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1799
1822
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
1800
1823
|
},
|
|
1801
1824
|
variant: "soft",
|
|
1802
|
-
children: /* @__PURE__ */ (0,
|
|
1825
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.TrashIcon, {})
|
|
1803
1826
|
}
|
|
1804
1827
|
)
|
|
1805
1828
|
] })
|
|
1806
1829
|
] }, `${opt.value}-${opt.label}`))
|
|
1807
1830
|
] }) }) : null,
|
|
1808
|
-
field.type === "image_radio_card" ? /* @__PURE__ */ (0,
|
|
1809
|
-
/* @__PURE__ */ (0,
|
|
1810
|
-
/* @__PURE__ */ (0,
|
|
1811
|
-
/* @__PURE__ */ (0,
|
|
1831
|
+
field.type === "image_radio_card" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
1832
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1833
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "image options" }),
|
|
1834
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1812
1835
|
Button,
|
|
1813
1836
|
{
|
|
1814
1837
|
disabled: readonly,
|
|
@@ -1827,21 +1850,21 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1827
1850
|
size: "small",
|
|
1828
1851
|
variant: "soft",
|
|
1829
1852
|
children: [
|
|
1830
|
-
/* @__PURE__ */ (0,
|
|
1853
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.PlusIcon, {}),
|
|
1831
1854
|
" \uCD94\uAC00"
|
|
1832
1855
|
]
|
|
1833
1856
|
}
|
|
1834
1857
|
)
|
|
1835
1858
|
] }),
|
|
1836
|
-
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
1859
|
+
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1837
1860
|
Card,
|
|
1838
1861
|
{
|
|
1839
1862
|
style: { padding: 10 },
|
|
1840
|
-
children: /* @__PURE__ */ (0,
|
|
1841
|
-
/* @__PURE__ */ (0,
|
|
1842
|
-
/* @__PURE__ */ (0,
|
|
1843
|
-
/* @__PURE__ */ (0,
|
|
1844
|
-
/* @__PURE__ */ (0,
|
|
1863
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
1864
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1865
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1866
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1845
1868
|
TextField.Root,
|
|
1846
1869
|
{
|
|
1847
1870
|
disabled: readonly,
|
|
@@ -1858,9 +1881,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1858
1881
|
}
|
|
1859
1882
|
)
|
|
1860
1883
|
] }),
|
|
1861
|
-
/* @__PURE__ */ (0,
|
|
1862
|
-
/* @__PURE__ */ (0,
|
|
1863
|
-
/* @__PURE__ */ (0,
|
|
1884
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1885
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
1886
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1864
1887
|
TextField.Root,
|
|
1865
1888
|
{
|
|
1866
1889
|
disabled: readonly,
|
|
@@ -1878,9 +1901,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1878
1901
|
)
|
|
1879
1902
|
] })
|
|
1880
1903
|
] }),
|
|
1881
|
-
/* @__PURE__ */ (0,
|
|
1882
|
-
/* @__PURE__ */ (0,
|
|
1883
|
-
/* @__PURE__ */ (0,
|
|
1904
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
1905
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "imageSrc" }),
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1884
1907
|
TextField.Root,
|
|
1885
1908
|
{
|
|
1886
1909
|
disabled: readonly,
|
|
@@ -1897,10 +1920,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1897
1920
|
}
|
|
1898
1921
|
)
|
|
1899
1922
|
] }),
|
|
1900
|
-
/* @__PURE__ */ (0,
|
|
1901
|
-
/* @__PURE__ */ (0,
|
|
1902
|
-
/* @__PURE__ */ (0,
|
|
1903
|
-
/* @__PURE__ */ (0,
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1924
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1925
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "alt" }),
|
|
1926
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1904
1927
|
TextField.Root,
|
|
1905
1928
|
{
|
|
1906
1929
|
disabled: readonly,
|
|
@@ -1918,7 +1941,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1918
1941
|
}
|
|
1919
1942
|
)
|
|
1920
1943
|
] }),
|
|
1921
|
-
/* @__PURE__ */ (0,
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1922
1945
|
IconButton,
|
|
1923
1946
|
{
|
|
1924
1947
|
"aria-label": "\uC774\uBBF8\uC9C0 \uC635\uC158 \uC0AD\uC81C",
|
|
@@ -1931,7 +1954,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1931
1954
|
);
|
|
1932
1955
|
},
|
|
1933
1956
|
variant: "soft",
|
|
1934
|
-
children: /* @__PURE__ */ (0,
|
|
1957
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons.TrashIcon, {})
|
|
1935
1958
|
}
|
|
1936
1959
|
)
|
|
1937
1960
|
] })
|
|
@@ -1939,10 +1962,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1939
1962
|
},
|
|
1940
1963
|
`${opt.value}-${opt.label}-${opt.imageSrc}`
|
|
1941
1964
|
)),
|
|
1942
|
-
/* @__PURE__ */ (0,
|
|
1943
|
-
/* @__PURE__ */ (0,
|
|
1944
|
-
/* @__PURE__ */ (0,
|
|
1945
|
-
/* @__PURE__ */ (0,
|
|
1965
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { gap: "2", children: [
|
|
1966
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "gridColumnsCount" }),
|
|
1968
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1946
1969
|
TextField.Root,
|
|
1947
1970
|
{
|
|
1948
1971
|
disabled: readonly,
|
|
@@ -1958,9 +1981,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1958
1981
|
}
|
|
1959
1982
|
)
|
|
1960
1983
|
] }),
|
|
1961
|
-
/* @__PURE__ */ (0,
|
|
1962
|
-
/* @__PURE__ */ (0,
|
|
1963
|
-
/* @__PURE__ */ (0,
|
|
1984
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "gridItemHeight" }),
|
|
1986
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1964
1987
|
TextField.Root,
|
|
1965
1988
|
{
|
|
1966
1989
|
disabled: readonly,
|
|
@@ -1973,9 +1996,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1973
1996
|
}
|
|
1974
1997
|
)
|
|
1975
1998
|
] }),
|
|
1976
|
-
/* @__PURE__ */ (0,
|
|
1977
|
-
/* @__PURE__ */ (0,
|
|
1978
|
-
/* @__PURE__ */ (0,
|
|
1999
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
2000
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "gridGap" }),
|
|
2001
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1979
2002
|
TextField.Root,
|
|
1980
2003
|
{
|
|
1981
2004
|
disabled: readonly,
|
|
@@ -1987,9 +2010,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1987
2010
|
)
|
|
1988
2011
|
] })
|
|
1989
2012
|
] }),
|
|
1990
|
-
/* @__PURE__ */ (0,
|
|
1991
|
-
/* @__PURE__ */ (0,
|
|
1992
|
-
/* @__PURE__ */ (0,
|
|
2013
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
2014
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "imageFit" }),
|
|
2015
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1993
2016
|
Select.Root,
|
|
1994
2017
|
{
|
|
1995
2018
|
disabled: readonly,
|
|
@@ -1999,22 +2022,22 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1999
2022
|
},
|
|
2000
2023
|
value: field.imageFit || "cover",
|
|
2001
2024
|
children: [
|
|
2002
|
-
/* @__PURE__ */ (0,
|
|
2003
|
-
/* @__PURE__ */ (0,
|
|
2004
|
-
/* @__PURE__ */ (0,
|
|
2005
|
-
/* @__PURE__ */ (0,
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
2026
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Select.Content, { children: [
|
|
2027
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Item, { value: "cover", children: "cover" }),
|
|
2028
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Select.Item, { value: "contain", children: "contain" })
|
|
2006
2029
|
] })
|
|
2007
2030
|
]
|
|
2008
2031
|
}
|
|
2009
2032
|
)
|
|
2010
2033
|
] })
|
|
2011
2034
|
] }) }) : null,
|
|
2012
|
-
/* @__PURE__ */ (0,
|
|
2013
|
-
/* @__PURE__ */ (0,
|
|
2014
|
-
/* @__PURE__ */ (0,
|
|
2015
|
-
/* @__PURE__ */ (0,
|
|
2016
|
-
/* @__PURE__ */ (0,
|
|
2017
|
-
/* @__PURE__ */ (0,
|
|
2035
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
2036
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "validation" }),
|
|
2037
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes2.Flex, { gap: "2", children: [
|
|
2038
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
2039
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "min" }),
|
|
2040
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2018
2041
|
TextField.Root,
|
|
2019
2042
|
{
|
|
2020
2043
|
disabled: readonly,
|
|
@@ -2030,9 +2053,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
2030
2053
|
}
|
|
2031
2054
|
)
|
|
2032
2055
|
] }),
|
|
2033
|
-
/* @__PURE__ */ (0,
|
|
2034
|
-
/* @__PURE__ */ (0,
|
|
2035
|
-
/* @__PURE__ */ (0,
|
|
2056
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { style: { flex: 1 }, children: [
|
|
2057
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "max" }),
|
|
2058
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2036
2059
|
TextField.Root,
|
|
2037
2060
|
{
|
|
2038
2061
|
disabled: readonly,
|
|
@@ -2049,9 +2072,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
2049
2072
|
)
|
|
2050
2073
|
] })
|
|
2051
2074
|
] }),
|
|
2052
|
-
/* @__PURE__ */ (0,
|
|
2053
|
-
/* @__PURE__ */ (0,
|
|
2054
|
-
/* @__PURE__ */ (0,
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
2076
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "pattern" }),
|
|
2077
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2055
2078
|
TextField.Root,
|
|
2056
2079
|
{
|
|
2057
2080
|
disabled: readonly,
|
|
@@ -2064,9 +2087,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
2064
2087
|
}
|
|
2065
2088
|
)
|
|
2066
2089
|
] }),
|
|
2067
|
-
/* @__PURE__ */ (0,
|
|
2068
|
-
/* @__PURE__ */ (0,
|
|
2069
|
-
/* @__PURE__ */ (0,
|
|
2090
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes11.Box, { children: [
|
|
2091
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "message" }),
|
|
2092
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2070
2093
|
TextField.Root,
|
|
2071
2094
|
{
|
|
2072
2095
|
disabled: readonly,
|
|
@@ -2087,7 +2110,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
2087
2110
|
// src/molecules/dynamic-form-editor-field-list-panel.tsx
|
|
2088
2111
|
var import_react11 = require("react");
|
|
2089
2112
|
var import_themes12 = require("@radix-ui/themes");
|
|
2090
|
-
var
|
|
2113
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2091
2114
|
function isFieldType2(value, types) {
|
|
2092
2115
|
return types.some((t) => t === value);
|
|
2093
2116
|
}
|
|
@@ -2105,10 +2128,10 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
2105
2128
|
const triggerPlaceholder = (0, import_react11.useMemo)(() => {
|
|
2106
2129
|
return readonly ? "\uCD94\uAC00(\uC77D\uAE30 \uC804\uC6A9)" : "\uCD94\uAC00";
|
|
2107
2130
|
}, [readonly]);
|
|
2108
|
-
return /* @__PURE__ */ (0,
|
|
2109
|
-
/* @__PURE__ */ (0,
|
|
2110
|
-
/* @__PURE__ */ (0,
|
|
2111
|
-
/* @__PURE__ */ (0,
|
|
2131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Card, { style: { width: 340, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
2132
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
2133
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC" }),
|
|
2134
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2112
2135
|
Select.Root,
|
|
2113
2136
|
{
|
|
2114
2137
|
disabled: readonly,
|
|
@@ -2118,18 +2141,18 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
2118
2141
|
},
|
|
2119
2142
|
value: "",
|
|
2120
2143
|
children: [
|
|
2121
|
-
/* @__PURE__ */ (0,
|
|
2122
|
-
/* @__PURE__ */ (0,
|
|
2144
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Select.Trigger, { placeholder: triggerPlaceholder }),
|
|
2145
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
2123
2146
|
]
|
|
2124
2147
|
}
|
|
2125
2148
|
)
|
|
2126
2149
|
] }),
|
|
2127
|
-
/* @__PURE__ */ (0,
|
|
2128
|
-
isEmpty ? /* @__PURE__ */ (0,
|
|
2150
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
2151
|
+
isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC544\uC9C1 \uD544\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) : null,
|
|
2129
2152
|
fields.map((field) => {
|
|
2130
2153
|
const isSelected = field.name === selectedFieldName;
|
|
2131
2154
|
const hasError = hasFieldError(field.name);
|
|
2132
|
-
return /* @__PURE__ */ (0,
|
|
2155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2133
2156
|
Card,
|
|
2134
2157
|
{
|
|
2135
2158
|
error: isSelected ? hasError : void 0,
|
|
@@ -2142,8 +2165,8 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
2142
2165
|
opacity: readonly ? 0.8 : 1,
|
|
2143
2166
|
border: isSelected ? "1px solid var(--accent-9)" : "1px solid transparent"
|
|
2144
2167
|
},
|
|
2145
|
-
children: /* @__PURE__ */ (0,
|
|
2146
|
-
/* @__PURE__ */ (0,
|
|
2168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes12.Box, { style: { minWidth: 0 }, children: [
|
|
2169
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2147
2170
|
Typo,
|
|
2148
2171
|
{
|
|
2149
2172
|
style: {
|
|
@@ -2155,7 +2178,7 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
2155
2178
|
children: field.label
|
|
2156
2179
|
}
|
|
2157
2180
|
),
|
|
2158
|
-
/* @__PURE__ */ (0,
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
2159
2182
|
field.name,
|
|
2160
2183
|
" \xB7 ",
|
|
2161
2184
|
field.type,
|
|
@@ -2171,13 +2194,13 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
2171
2194
|
}
|
|
2172
2195
|
|
|
2173
2196
|
// src/molecules/dynamic-form-editor-issues-panel.tsx
|
|
2174
|
-
var
|
|
2197
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2175
2198
|
function DynamicFormEditorIssuesPanel(props) {
|
|
2176
2199
|
const { issues } = props;
|
|
2177
2200
|
if (issues.length === 0) return null;
|
|
2178
|
-
return /* @__PURE__ */ (0,
|
|
2179
|
-
/* @__PURE__ */ (0,
|
|
2180
|
-
issues.map((i) => /* @__PURE__ */ (0,
|
|
2201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { variant: "caption", children: "\uC2A4\uD0A4\uB9C8 \uC774\uC288" }),
|
|
2203
|
+
issues.map((i) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2181
2204
|
Typo,
|
|
2182
2205
|
{
|
|
2183
2206
|
color: i.level === "error" ? "red" : "gray",
|
|
@@ -2213,7 +2236,7 @@ var import_themes13 = require("@radix-ui/themes");
|
|
|
2213
2236
|
var import_clsx7 = require("clsx");
|
|
2214
2237
|
var import_react12 = require("react");
|
|
2215
2238
|
var import_themes14 = require("@radix-ui/themes");
|
|
2216
|
-
var
|
|
2239
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2217
2240
|
var mapVariant = (variant) => {
|
|
2218
2241
|
switch (variant) {
|
|
2219
2242
|
case "heading1":
|
|
@@ -2260,7 +2283,7 @@ function Heading2(props) {
|
|
|
2260
2283
|
mapFn: mapVariant
|
|
2261
2284
|
}) : size;
|
|
2262
2285
|
}, [size, variant]);
|
|
2263
|
-
return /* @__PURE__ */ (0,
|
|
2286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2264
2287
|
import_themes13.Heading,
|
|
2265
2288
|
__spreadProps(__spreadValues({}, rest), {
|
|
2266
2289
|
className: (0, import_clsx7.clsx)(colorClassName, className),
|
|
@@ -2273,11 +2296,11 @@ function Heading2(props) {
|
|
|
2273
2296
|
}
|
|
2274
2297
|
|
|
2275
2298
|
// src/molecules/form/form.tsx
|
|
2276
|
-
var
|
|
2299
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2277
2300
|
var Root4 = (0, import_react13.forwardRef)(
|
|
2278
2301
|
(_a, ref) => {
|
|
2279
2302
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
2280
|
-
return /* @__PURE__ */ (0,
|
|
2303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2281
2304
|
RadixForm.Root,
|
|
2282
2305
|
__spreadProps(__spreadValues({}, rest), {
|
|
2283
2306
|
className: `FormRoot ${className || ""}`,
|
|
@@ -2294,25 +2317,25 @@ var FieldContext = (0, import_react13.createContext)({
|
|
|
2294
2317
|
var Field2 = (0, import_react13.forwardRef)(
|
|
2295
2318
|
(_a, ref) => {
|
|
2296
2319
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
2297
|
-
return /* @__PURE__ */ (0,
|
|
2320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2298
2321
|
RadixForm.Field,
|
|
2299
2322
|
__spreadProps(__spreadValues({}, rest), {
|
|
2300
2323
|
className: `FormField ${className || ""}`,
|
|
2301
2324
|
ref,
|
|
2302
|
-
children: /* @__PURE__ */ (0,
|
|
2325
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FieldContext.Provider, { value: rest, children })
|
|
2303
2326
|
})
|
|
2304
2327
|
);
|
|
2305
2328
|
}
|
|
2306
2329
|
);
|
|
2307
2330
|
Field2.displayName = "FORM_FIELD";
|
|
2308
2331
|
function HeadingLabel(props) {
|
|
2309
|
-
return /* @__PURE__ */ (0,
|
|
2332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
2310
2333
|
}
|
|
2311
2334
|
function CaptionLabel(props) {
|
|
2312
|
-
return /* @__PURE__ */ (0,
|
|
2335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption", weight: "bold" }, props), { children: props.children }));
|
|
2313
2336
|
}
|
|
2314
2337
|
function BodyLabel(props) {
|
|
2315
|
-
return /* @__PURE__ */ (0,
|
|
2338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, __spreadProps(__spreadValues({ variant: "body", weight: "bold" }, props), { children: props.children }));
|
|
2316
2339
|
}
|
|
2317
2340
|
var Label2 = (0, import_react13.forwardRef)(
|
|
2318
2341
|
(_a, ref) => {
|
|
@@ -2329,15 +2352,15 @@ var Label2 = (0, import_react13.forwardRef)(
|
|
|
2329
2352
|
}
|
|
2330
2353
|
}, [variant]);
|
|
2331
2354
|
const fieldProps = (0, import_react13.useContext)(FieldContext);
|
|
2332
|
-
return /* @__PURE__ */ (0,
|
|
2355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2333
2356
|
RadixForm.Label,
|
|
2334
2357
|
__spreadProps(__spreadValues({}, rest), {
|
|
2335
2358
|
asChild: true,
|
|
2336
2359
|
className: `FormLabel ${className || ""}`,
|
|
2337
2360
|
ref,
|
|
2338
|
-
children: /* @__PURE__ */ (0,
|
|
2361
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Comp, { children: [
|
|
2339
2362
|
children,
|
|
2340
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
2363
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
2341
2364
|
] })
|
|
2342
2365
|
})
|
|
2343
2366
|
);
|
|
@@ -2347,13 +2370,13 @@ Label2.displayName = "FORM_Label";
|
|
|
2347
2370
|
var Message2 = (0, import_react13.forwardRef)(
|
|
2348
2371
|
(_a, ref) => {
|
|
2349
2372
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
2350
|
-
return /* @__PURE__ */ (0,
|
|
2373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2351
2374
|
RadixForm.Message,
|
|
2352
2375
|
__spreadProps(__spreadValues({}, rest), {
|
|
2353
2376
|
asChild: true,
|
|
2354
2377
|
className: `FormMessage ${className || ""}`,
|
|
2355
2378
|
ref,
|
|
2356
|
-
children: /* @__PURE__ */ (0,
|
|
2379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { color: "red", children })
|
|
2357
2380
|
})
|
|
2358
2381
|
);
|
|
2359
2382
|
}
|
|
@@ -2363,7 +2386,7 @@ var Control2 = (0, import_react13.forwardRef)(
|
|
|
2363
2386
|
(_a, ref) => {
|
|
2364
2387
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
2365
2388
|
const fieldProps = (0, import_react13.useContext)(FieldContext);
|
|
2366
|
-
return /* @__PURE__ */ (0,
|
|
2389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2367
2390
|
RadixForm.Control,
|
|
2368
2391
|
__spreadProps(__spreadValues({}, rest), {
|
|
2369
2392
|
className: `FormControl ${className || ""}`,
|
|
@@ -2386,10 +2409,10 @@ function FormItem(_a) {
|
|
|
2386
2409
|
"children",
|
|
2387
2410
|
"errorMessage"
|
|
2388
2411
|
]);
|
|
2389
|
-
return /* @__PURE__ */ (0,
|
|
2390
|
-
/* @__PURE__ */ (0,
|
|
2412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
2413
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
2391
2414
|
children,
|
|
2392
|
-
/* @__PURE__ */ (0,
|
|
2415
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
2393
2416
|
] }));
|
|
2394
2417
|
}
|
|
2395
2418
|
var Form = {
|
|
@@ -2403,7 +2426,7 @@ var Form = {
|
|
|
2403
2426
|
};
|
|
2404
2427
|
|
|
2405
2428
|
// src/context/dynamic-form-context.tsx
|
|
2406
|
-
var
|
|
2429
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2407
2430
|
var DynamicFormContext = (0, import_react14.createContext)(null);
|
|
2408
2431
|
function DynamicFormProvider({
|
|
2409
2432
|
children,
|
|
@@ -2429,7 +2452,7 @@ function DynamicFormProvider({
|
|
|
2429
2452
|
handleChange: formik.handleChange,
|
|
2430
2453
|
handleBlur: formik.handleBlur
|
|
2431
2454
|
};
|
|
2432
|
-
return /* @__PURE__ */ (0,
|
|
2455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
|
|
2433
2456
|
}
|
|
2434
2457
|
function useDynamicForm() {
|
|
2435
2458
|
const context = (0, import_react14.useContext)(DynamicFormContext);
|
|
@@ -2443,7 +2466,7 @@ function useDynamicForm() {
|
|
|
2443
2466
|
var import_themes15 = require("@radix-ui/themes");
|
|
2444
2467
|
var import_clsx8 = require("clsx");
|
|
2445
2468
|
var import_react15 = require("react");
|
|
2446
|
-
var
|
|
2469
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2447
2470
|
var Root5 = (0, import_react15.forwardRef)((props, ref) => {
|
|
2448
2471
|
const _a = props, { children, size = "medium", color, className } = _a, rest = __objRest(_a, ["children", "size", "color", "className"]);
|
|
2449
2472
|
const groupSize = (0, import_react15.useMemo)(() => {
|
|
@@ -2461,7 +2484,7 @@ var Root5 = (0, import_react15.forwardRef)((props, ref) => {
|
|
|
2461
2484
|
() => resolveColor(color),
|
|
2462
2485
|
[color]
|
|
2463
2486
|
);
|
|
2464
|
-
return /* @__PURE__ */ (0,
|
|
2487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2465
2488
|
import_themes15.CheckboxGroup.Root,
|
|
2466
2489
|
__spreadProps(__spreadValues({}, rest), {
|
|
2467
2490
|
className: (0, import_clsx8.clsx)(colorClassName, className),
|
|
@@ -2481,7 +2504,7 @@ var CheckboxGroup = {
|
|
|
2481
2504
|
var import_themes16 = require("@radix-ui/themes");
|
|
2482
2505
|
var import_clsx9 = require("clsx");
|
|
2483
2506
|
var import_react16 = require("react");
|
|
2484
|
-
var
|
|
2507
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2485
2508
|
var Root6 = (0, import_react16.forwardRef)((props, ref) => {
|
|
2486
2509
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
2487
2510
|
const { color: radixColor, className: colorClassName } = (0, import_react16.useMemo)(
|
|
@@ -2489,7 +2512,7 @@ var Root6 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2489
2512
|
[color]
|
|
2490
2513
|
);
|
|
2491
2514
|
const appliedColor = colorClassName ? void 0 : radixColor;
|
|
2492
|
-
return /* @__PURE__ */ (0,
|
|
2515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2493
2516
|
import_themes16.RadioGroup.Root,
|
|
2494
2517
|
__spreadProps(__spreadValues({}, rest), {
|
|
2495
2518
|
className: (0, import_clsx9.clsx)(colorClassName, className),
|
|
@@ -2507,7 +2530,7 @@ var RadioGroup = __spreadProps(__spreadValues({}, import_themes16.RadioGroup), {
|
|
|
2507
2530
|
var import_themes17 = require("@radix-ui/themes");
|
|
2508
2531
|
var import_clsx10 = require("clsx");
|
|
2509
2532
|
var import_react17 = require("react");
|
|
2510
|
-
var
|
|
2533
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2511
2534
|
var Root7 = (0, import_react17.forwardRef)((props, ref) => {
|
|
2512
2535
|
const _a = props, { color, className } = _a, rest = __objRest(_a, ["color", "className"]);
|
|
2513
2536
|
const { color: radixColor, className: colorClassName } = (0, import_react17.useMemo)(
|
|
@@ -2515,7 +2538,7 @@ var Root7 = (0, import_react17.forwardRef)((props, ref) => {
|
|
|
2515
2538
|
[color]
|
|
2516
2539
|
);
|
|
2517
2540
|
const appliedColor = colorClassName ? void 0 : radixColor;
|
|
2518
|
-
return /* @__PURE__ */ (0,
|
|
2541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2519
2542
|
import_themes17.RadioCards.Root,
|
|
2520
2543
|
__spreadProps(__spreadValues({}, rest), {
|
|
2521
2544
|
className: (0, import_clsx10.clsx)(colorClassName, className),
|
|
@@ -2536,7 +2559,7 @@ var import_themes18 = require("@radix-ui/themes");
|
|
|
2536
2559
|
var import_themes19 = require("@radix-ui/themes");
|
|
2537
2560
|
|
|
2538
2561
|
// src/molecules/dynamic-field.tsx
|
|
2539
|
-
var
|
|
2562
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2540
2563
|
function isRecord3(value) {
|
|
2541
2564
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
2542
2565
|
}
|
|
@@ -2605,7 +2628,7 @@ function DynamicFormField({
|
|
|
2605
2628
|
const selectedValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
2606
2629
|
switch (field.type) {
|
|
2607
2630
|
case "short_text":
|
|
2608
|
-
return /* @__PURE__ */ (0,
|
|
2631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2609
2632
|
TextField.Root,
|
|
2610
2633
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
2611
2634
|
placeholder: field.placeholder,
|
|
@@ -2613,7 +2636,7 @@ function DynamicFormField({
|
|
|
2613
2636
|
})
|
|
2614
2637
|
);
|
|
2615
2638
|
case "email":
|
|
2616
|
-
return /* @__PURE__ */ (0,
|
|
2639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2617
2640
|
TextField.Root,
|
|
2618
2641
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
2619
2642
|
placeholder: field.placeholder,
|
|
@@ -2621,7 +2644,7 @@ function DynamicFormField({
|
|
|
2621
2644
|
})
|
|
2622
2645
|
);
|
|
2623
2646
|
case "number":
|
|
2624
|
-
return /* @__PURE__ */ (0,
|
|
2647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2625
2648
|
TextField.Root,
|
|
2626
2649
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
2627
2650
|
inputMode: "numeric",
|
|
@@ -2631,9 +2654,9 @@ function DynamicFormField({
|
|
|
2631
2654
|
})
|
|
2632
2655
|
);
|
|
2633
2656
|
case "long_text":
|
|
2634
|
-
return /* @__PURE__ */ (0,
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
2635
2658
|
case "dropdown":
|
|
2636
|
-
return /* @__PURE__ */ (0,
|
|
2659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2637
2660
|
Select.Root,
|
|
2638
2661
|
{
|
|
2639
2662
|
disabled: readonly,
|
|
@@ -2642,7 +2665,7 @@ function DynamicFormField({
|
|
|
2642
2665
|
},
|
|
2643
2666
|
value: selectedValue,
|
|
2644
2667
|
children: [
|
|
2645
|
-
/* @__PURE__ */ (0,
|
|
2668
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2646
2669
|
Select.Trigger,
|
|
2647
2670
|
{
|
|
2648
2671
|
placeholder: field.placeholder,
|
|
@@ -2654,12 +2677,12 @@ function DynamicFormField({
|
|
|
2654
2677
|
}
|
|
2655
2678
|
}
|
|
2656
2679
|
),
|
|
2657
|
-
/* @__PURE__ */ (0,
|
|
2680
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
2658
2681
|
]
|
|
2659
2682
|
}
|
|
2660
2683
|
);
|
|
2661
2684
|
case "choice":
|
|
2662
|
-
return /* @__PURE__ */ (0,
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2663
2686
|
RadioGroup.Root,
|
|
2664
2687
|
{
|
|
2665
2688
|
disabled: readonly,
|
|
@@ -2668,13 +2691,13 @@ function DynamicFormField({
|
|
|
2668
2691
|
},
|
|
2669
2692
|
orientation: field.orientation,
|
|
2670
2693
|
value: String(value || ""),
|
|
2671
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
2694
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
2672
2695
|
}
|
|
2673
2696
|
);
|
|
2674
2697
|
case "radio_cards": {
|
|
2675
2698
|
const options = getOptions(field);
|
|
2676
2699
|
if (!options) return null;
|
|
2677
|
-
return /* @__PURE__ */ (0,
|
|
2700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2678
2701
|
RadioCards.Root,
|
|
2679
2702
|
{
|
|
2680
2703
|
disabled: readonly,
|
|
@@ -2682,12 +2705,12 @@ function DynamicFormField({
|
|
|
2682
2705
|
void setFieldValue(name, newValue);
|
|
2683
2706
|
},
|
|
2684
2707
|
value: selectedValue,
|
|
2685
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
2708
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RadioCards.Item, { value: String(option.value), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { children: option.label }) }, option.value))
|
|
2686
2709
|
}
|
|
2687
2710
|
);
|
|
2688
2711
|
}
|
|
2689
2712
|
case "choices":
|
|
2690
|
-
return /* @__PURE__ */ (0,
|
|
2713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2691
2714
|
CheckboxGroup.Root,
|
|
2692
2715
|
{
|
|
2693
2716
|
disabled: readonly,
|
|
@@ -2696,12 +2719,12 @@ function DynamicFormField({
|
|
|
2696
2719
|
},
|
|
2697
2720
|
orientation: field.orientation,
|
|
2698
2721
|
value: Array.isArray(value) ? value.map(String) : [],
|
|
2699
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
2722
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
2700
2723
|
}
|
|
2701
2724
|
);
|
|
2702
2725
|
case "yes_no":
|
|
2703
|
-
return /* @__PURE__ */ (0,
|
|
2704
|
-
/* @__PURE__ */ (0,
|
|
2726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes2.Flex, { gap: "2", children: [
|
|
2727
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2705
2728
|
Checkbox,
|
|
2706
2729
|
{
|
|
2707
2730
|
checked: Boolean(value),
|
|
@@ -2711,7 +2734,7 @@ function DynamicFormField({
|
|
|
2711
2734
|
}
|
|
2712
2735
|
}
|
|
2713
2736
|
),
|
|
2714
|
-
field.description ? /* @__PURE__ */ (0,
|
|
2737
|
+
field.description ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
2715
2738
|
] });
|
|
2716
2739
|
case "image_radio_card": {
|
|
2717
2740
|
const options = getImageOptions(field);
|
|
@@ -2735,23 +2758,23 @@ function DynamicFormField({
|
|
|
2735
2758
|
if (!selectedOption) return;
|
|
2736
2759
|
void setFieldValue(name, selectedOption.value);
|
|
2737
2760
|
};
|
|
2738
|
-
return /* @__PURE__ */ (0,
|
|
2761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2739
2762
|
RadioCards.Root,
|
|
2740
2763
|
{
|
|
2741
2764
|
disabled: readonly,
|
|
2742
2765
|
onValueChange: readonly ? void 0 : handleValueChange,
|
|
2743
2766
|
value: selectedValue,
|
|
2744
|
-
children: /* @__PURE__ */ (0,
|
|
2767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes18.Grid, { columns: gridColumns, gap: gridGap, rows: gridRows, children: options.map((option) => {
|
|
2745
2768
|
const optionValue = String(option.value);
|
|
2746
2769
|
const altText = option.alt || option.label;
|
|
2747
|
-
return /* @__PURE__ */ (0,
|
|
2770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2748
2771
|
RadioCards.Item,
|
|
2749
2772
|
{
|
|
2750
2773
|
style: {
|
|
2751
2774
|
padding: 0
|
|
2752
2775
|
},
|
|
2753
2776
|
value: optionValue,
|
|
2754
|
-
children: /* @__PURE__ */ (0,
|
|
2777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes19.Inset, { style: { width: "100%", height: "100%", padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2755
2778
|
"img",
|
|
2756
2779
|
{
|
|
2757
2780
|
alt: altText,
|
|
@@ -2778,7 +2801,7 @@ function DynamicFormField({
|
|
|
2778
2801
|
}
|
|
2779
2802
|
|
|
2780
2803
|
// src/molecules/dynamic-form.tsx
|
|
2781
|
-
var
|
|
2804
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2782
2805
|
function scrollToFirstError(errors, _fields) {
|
|
2783
2806
|
const firstErrorFieldName = Object.keys(errors)[0];
|
|
2784
2807
|
if (!firstErrorFieldName) return;
|
|
@@ -2865,7 +2888,7 @@ function DynamicFormRoot({
|
|
|
2865
2888
|
};
|
|
2866
2889
|
}
|
|
2867
2890
|
}, [formik.submitCount, formik.errors, fields]);
|
|
2868
|
-
return /* @__PURE__ */ (0,
|
|
2891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2869
2892
|
DynamicFormProvider,
|
|
2870
2893
|
{
|
|
2871
2894
|
fields,
|
|
@@ -2882,15 +2905,15 @@ function DynamicFormFieldList({
|
|
|
2882
2905
|
}) {
|
|
2883
2906
|
const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
|
|
2884
2907
|
const fields = fieldsProp || fieldsFromContext;
|
|
2885
|
-
return /* @__PURE__ */ (0,
|
|
2908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: fields.map((field) => {
|
|
2886
2909
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
2887
|
-
return /* @__PURE__ */ (0,
|
|
2910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2888
2911
|
import_themes20.Box,
|
|
2889
2912
|
{
|
|
2890
2913
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
2891
2914
|
"data-field-name": field.name,
|
|
2892
2915
|
mb: "2",
|
|
2893
|
-
children: /* @__PURE__ */ (0,
|
|
2916
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2894
2917
|
Form.FormItem,
|
|
2895
2918
|
{
|
|
2896
2919
|
errorMessage,
|
|
@@ -2899,8 +2922,8 @@ function DynamicFormFieldList({
|
|
|
2899
2922
|
name: field.name,
|
|
2900
2923
|
required: field.required,
|
|
2901
2924
|
children: [
|
|
2902
|
-
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0,
|
|
2903
|
-
/* @__PURE__ */ (0,
|
|
2925
|
+
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Typo, { variant: "caption", children: field.description }) : null,
|
|
2926
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DynamicFormField, { field })
|
|
2904
2927
|
]
|
|
2905
2928
|
}
|
|
2906
2929
|
)
|
|
@@ -2997,18 +3020,18 @@ function createYupValidation(field, validation) {
|
|
|
2997
3020
|
}
|
|
2998
3021
|
|
|
2999
3022
|
// src/molecules/dynamic-form-editor-preview-panel.tsx
|
|
3000
|
-
var
|
|
3023
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3001
3024
|
function DynamicFormEditorPreviewPanel(props) {
|
|
3002
3025
|
const { show, fields } = props;
|
|
3003
3026
|
if (!show) return null;
|
|
3004
|
-
return /* @__PURE__ */ (0,
|
|
3005
|
-
/* @__PURE__ */ (0,
|
|
3006
|
-
/* @__PURE__ */ (0,
|
|
3027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Card, { style: { width: 420, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
3028
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Typo, { variant: "body", children: "\uD504\uB9AC\uBDF0" }),
|
|
3029
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DynamicForm.Root, { fields, onSubmit: () => void 0, readonly: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DynamicForm.FieldList, { labelVariant: "body" }) })
|
|
3007
3030
|
] }) });
|
|
3008
3031
|
}
|
|
3009
3032
|
|
|
3010
3033
|
// src/molecules/dynamic-form-editor.tsx
|
|
3011
|
-
var
|
|
3034
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3012
3035
|
function getInitialSchema(value, defaultValue) {
|
|
3013
3036
|
if (value !== void 0) return normalizeSchema(value);
|
|
3014
3037
|
return normalizeSchema(defaultValue);
|
|
@@ -3158,8 +3181,8 @@ function DynamicFormEditor(props) {
|
|
|
3158
3181
|
void result;
|
|
3159
3182
|
}, [effectiveSchema, onSave]);
|
|
3160
3183
|
const disableSave = readonly || !onSave || hasErrorIssues(issues);
|
|
3161
|
-
return /* @__PURE__ */ (0,
|
|
3162
|
-
/* @__PURE__ */ (0,
|
|
3184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes2.Flex, { align: "start", gap: "4", style: { width: "100%" }, children: [
|
|
3185
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3163
3186
|
DynamicFormEditorFieldListPanel,
|
|
3164
3187
|
{
|
|
3165
3188
|
fieldTypes,
|
|
@@ -3171,8 +3194,8 @@ function DynamicFormEditor(props) {
|
|
|
3171
3194
|
selectedFieldName
|
|
3172
3195
|
}
|
|
3173
3196
|
),
|
|
3174
|
-
/* @__PURE__ */ (0,
|
|
3175
|
-
/* @__PURE__ */ (0,
|
|
3197
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", style: { flex: 1, minWidth: 520 }, children: [
|
|
3198
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3176
3199
|
DynamicFormEditorFieldEditorPanel,
|
|
3177
3200
|
{
|
|
3178
3201
|
field: selected.field,
|
|
@@ -3187,13 +3210,13 @@ function DynamicFormEditor(props) {
|
|
|
3187
3210
|
readonly
|
|
3188
3211
|
}
|
|
3189
3212
|
),
|
|
3190
|
-
/* @__PURE__ */ (0,
|
|
3191
|
-
onSave || onCancel ? /* @__PURE__ */ (0,
|
|
3192
|
-
onCancel ? /* @__PURE__ */ (0,
|
|
3193
|
-
onSave ? /* @__PURE__ */ (0,
|
|
3213
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DynamicFormEditorIssuesPanel, { issues }),
|
|
3214
|
+
onSave || onCancel ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_themes2.Flex, { gap: "2", justify: "end", children: [
|
|
3215
|
+
onCancel ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { disabled: readonly, onClick: onCancel, variant: "soft", children: "\uCDE8\uC18C" }) : null,
|
|
3216
|
+
onSave ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { disabled: disableSave, onClick: handleSave, children: "\uC800\uC7A5" }) : null
|
|
3194
3217
|
] }) : null
|
|
3195
3218
|
] }),
|
|
3196
|
-
/* @__PURE__ */ (0,
|
|
3219
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DynamicFormEditorPreviewPanel, { fields: effectiveSchema.fields, show: showPreview })
|
|
3197
3220
|
] });
|
|
3198
3221
|
}
|
|
3199
3222
|
// Annotate the CommonJS export names for ESM import in node:
|