@tipp/ui 2.3.37 → 2.3.39
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 +421 -360
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +59 -58
- package/dist/app/platform/coach-question-list.cjs +96 -35
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +5 -4
- package/dist/app/platform/contents-card.cjs +128 -67
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +6 -5
- package/dist/app/platform/curriculum-card.cjs +77 -16
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +4 -3
- package/dist/app/platform/edit-coaching-time.cjs +196 -135
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +39 -38
- package/dist/app/platform/edit-service-type.cjs +188 -127
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +38 -37
- package/dist/app/platform/goal-manage-card-edit.cjs +198 -137
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +39 -38
- package/dist/app/platform/goal-manage-card-read.cjs +126 -65
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +6 -5
- package/dist/app/platform/on-offline-radio-card.cjs +216 -155
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +38 -37
- package/dist/app/platform/report-card.cjs +99 -38
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +6 -5
- package/dist/app/platform/reservation-card.cjs +212 -151
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +39 -38
- package/dist/app/platform/session-card.cjs +241 -180
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +40 -39
- package/dist/app/platform/session-review-simple-read.cjs +97 -36
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +5 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +130 -69
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +9 -8
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +107 -46
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +5 -4
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +110 -49
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +5 -4
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +96 -35
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +5 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +106 -45
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +5 -4
- package/dist/app/platform/userInfos/utils.cjs +98 -37
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +5 -4
- package/dist/atoms/index.cjs +121 -59
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +5 -4
- package/dist/atoms/list.cjs +1 -0
- package/dist/atoms/list.cjs.map +1 -1
- package/dist/atoms/list.js +1 -1
- package/dist/atoms/pagination.cjs +76 -15
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +4 -3
- package/dist/{chunk-GXPEADVY.js → chunk-2REWQIZJ.js} +2 -2
- package/dist/{chunk-ZKS3IW7D.js → chunk-55K447PE.js} +5 -5
- package/dist/{chunk-LT6LBTA7.js → chunk-ADAQSPUA.js} +2 -2
- package/dist/chunk-B3VSXNTH.js +71 -0
- package/dist/chunk-B3VSXNTH.js.map +1 -0
- package/dist/{chunk-2XNWJT3U.js → chunk-BXRTYDSY.js} +2 -2
- package/dist/{chunk-XXMZLXDE.js → chunk-CIQ66LY6.js} +2 -2
- package/dist/{chunk-CI2XFT7Y.js → chunk-DKUHYVHC.js} +2 -2
- package/dist/{chunk-VH37R5IH.js → chunk-HBQY4ELG.js} +2 -2
- package/dist/{chunk-I5RQ5T4B.js → chunk-HXLXXCB7.js} +2 -2
- package/dist/{chunk-BFRNEBJN.js → chunk-HYMODLGE.js} +3 -3
- package/dist/{chunk-XWNFR24N.js → chunk-IZOZGJPW.js} +3 -3
- package/dist/{chunk-DLP4UUNG.js → chunk-JU7GB6R2.js} +3 -1
- package/dist/{chunk-DLP4UUNG.js.map → chunk-JU7GB6R2.js.map} +1 -1
- package/dist/chunk-JVXATVAC.js +1 -0
- package/dist/{chunk-HIMIOODO.js → chunk-K2XSUIM7.js} +3 -3
- package/dist/{chunk-FVNXDLRU.js → chunk-LE6CNJWH.js} +2 -2
- package/dist/{chunk-LFYQFYWO.js → chunk-OE2AVQED.js} +2 -2
- package/dist/{chunk-NIMLBANB.js → chunk-OOXXMKJS.js} +2 -2
- package/dist/{chunk-TTVJOFG5.js → chunk-P6DHFQXU.js} +4 -4
- package/dist/{chunk-ZVSATS4O.js → chunk-Q3NPY6DI.js} +2 -2
- package/dist/{chunk-HWK3UPZ3.js → chunk-Q7KT3UPO.js} +3 -3
- package/dist/{chunk-SNPAB3HJ.js → chunk-QHHD36G7.js} +2 -2
- package/dist/{chunk-3Z2XZ4ZG.js → chunk-QNJ2H7J4.js} +2 -2
- package/dist/{chunk-V7MD4RRM.js → chunk-R4BUPO55.js} +2 -2
- package/dist/{chunk-6TQGX5ZU.js → chunk-REPTW53S.js} +2 -2
- package/dist/{chunk-76PNGKCB.js → chunk-RSZDAY62.js} +2 -2
- package/dist/{chunk-QANVXCYU.js → chunk-S23S57PQ.js} +6 -6
- package/dist/{chunk-OXZ25J7F.js → chunk-SE5TPTP2.js} +2 -2
- package/dist/{chunk-MTGKF6SO.js → chunk-SLFUYRIC.js} +2 -2
- package/dist/{chunk-E5ZJDDZH.js → chunk-SLZNCBSK.js} +3 -3
- package/dist/{chunk-M6C7IXCB.js → chunk-UMUSNH2D.js} +2 -2
- package/dist/{chunk-GFRYS4IN.js → chunk-UTMCR27N.js} +2 -2
- package/dist/{chunk-4PYFMD24.js → chunk-V7IC4EAC.js} +4 -4
- package/dist/{chunk-GXWE3QNN.js → chunk-VPKWECOE.js} +2 -2
- package/dist/{chunk-JIJLOKVN.js → chunk-X4OCUESK.js} +2 -1
- package/dist/chunk-X4OCUESK.js.map +1 -0
- package/dist/{chunk-BKYPABII.js → chunk-YC5XSFKC.js} +8 -8
- package/dist/{chunk-3DEAIJBF.js → chunk-YZLPQOH2.js} +3 -3
- package/dist/icon.cjs +65 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +2 -1
- package/dist/icon.d.ts +2 -1
- package/dist/icon.js +8 -2
- package/dist/icons/headset.cjs +128 -0
- package/dist/icons/headset.cjs.map +1 -0
- package/dist/icons/headset.d.cts +6 -0
- package/dist/icons/headset.d.ts +6 -0
- package/dist/icons/headset.js +8 -0
- package/dist/icons/headset.js.map +1 -0
- package/dist/icons/index.cjs +63 -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 +5 -1
- package/dist/index.cjs +951 -885
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +18 -12
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +82 -76
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +125 -64
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +8 -7
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +67 -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 +105 -44
- 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 +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +70 -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 +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +79 -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 +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +71 -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 +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +71 -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 +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +78 -17
- 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 +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +75 -14
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +181 -120
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +83 -22
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +68 -7
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +199 -138
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +11 -10
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +248 -187
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +15 -14
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +71 -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 +90 -29
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +6 -5
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +82 -21
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -4
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +74 -13
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -3
- package/dist/molecules/curriculumV2/index.cjs +290 -229
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +24 -23
- package/dist/molecules/date-picker/date-picker-button.cjs +87 -26
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +5 -4
- package/dist/molecules/date-picker/index.cjs +78 -17
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +4 -3
- package/dist/molecules/description-json-render.cjs +70 -8
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +6 -5
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +176 -115
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +4 -3
- package/dist/molecules/dynamic-form-editor.cjs +257 -196
- package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor.js +6 -5
- package/dist/molecules/expand-table/index.cjs +101 -40
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +5 -4
- package/dist/molecules/index.cjs +725 -663
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +52 -51
- package/dist/molecules/one-on-one-guide-list.cjs +1 -0
- package/dist/molecules/one-on-one-guide-list.cjs.map +1 -1
- package/dist/molecules/one-on-one-guide-list.js +2 -2
- package/dist/molecules/stepper.cjs +81 -20
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +4 -3
- package/dist/molecules/tag-selector.cjs +81 -20
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +4 -3
- package/dist/molecules/time-select.cjs +66 -5
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -3
- package/dist/types/index.js +1 -1
- package/dist/utils/curriculum.utils.cjs +61 -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 +61 -0
- package/dist/utils/get-callout-icon-component.cjs.map +1 -1
- package/dist/utils/get-callout-icon-component.js +4 -3
- package/dist/utils/index.cjs +61 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +4 -3
- package/package.json +1 -1
- package/src/atoms/list.tsx +1 -0
- package/src/icon.ts +1 -0
- package/src/icons/headset.tsx +46 -0
- package/src/icons/index.ts +2 -1
- package/dist/chunk-JIJLOKVN.js.map +0 -1
- package/dist/chunk-VD7AQ7HK.js +0 -1
- /package/dist/{chunk-GXPEADVY.js.map → chunk-2REWQIZJ.js.map} +0 -0
- /package/dist/{chunk-ZKS3IW7D.js.map → chunk-55K447PE.js.map} +0 -0
- /package/dist/{chunk-LT6LBTA7.js.map → chunk-ADAQSPUA.js.map} +0 -0
- /package/dist/{chunk-2XNWJT3U.js.map → chunk-BXRTYDSY.js.map} +0 -0
- /package/dist/{chunk-XXMZLXDE.js.map → chunk-CIQ66LY6.js.map} +0 -0
- /package/dist/{chunk-CI2XFT7Y.js.map → chunk-DKUHYVHC.js.map} +0 -0
- /package/dist/{chunk-VH37R5IH.js.map → chunk-HBQY4ELG.js.map} +0 -0
- /package/dist/{chunk-I5RQ5T4B.js.map → chunk-HXLXXCB7.js.map} +0 -0
- /package/dist/{chunk-BFRNEBJN.js.map → chunk-HYMODLGE.js.map} +0 -0
- /package/dist/{chunk-XWNFR24N.js.map → chunk-IZOZGJPW.js.map} +0 -0
- /package/dist/{chunk-VD7AQ7HK.js.map → chunk-JVXATVAC.js.map} +0 -0
- /package/dist/{chunk-HIMIOODO.js.map → chunk-K2XSUIM7.js.map} +0 -0
- /package/dist/{chunk-FVNXDLRU.js.map → chunk-LE6CNJWH.js.map} +0 -0
- /package/dist/{chunk-LFYQFYWO.js.map → chunk-OE2AVQED.js.map} +0 -0
- /package/dist/{chunk-NIMLBANB.js.map → chunk-OOXXMKJS.js.map} +0 -0
- /package/dist/{chunk-TTVJOFG5.js.map → chunk-P6DHFQXU.js.map} +0 -0
- /package/dist/{chunk-ZVSATS4O.js.map → chunk-Q3NPY6DI.js.map} +0 -0
- /package/dist/{chunk-HWK3UPZ3.js.map → chunk-Q7KT3UPO.js.map} +0 -0
- /package/dist/{chunk-SNPAB3HJ.js.map → chunk-QHHD36G7.js.map} +0 -0
- /package/dist/{chunk-3Z2XZ4ZG.js.map → chunk-QNJ2H7J4.js.map} +0 -0
- /package/dist/{chunk-V7MD4RRM.js.map → chunk-R4BUPO55.js.map} +0 -0
- /package/dist/{chunk-6TQGX5ZU.js.map → chunk-REPTW53S.js.map} +0 -0
- /package/dist/{chunk-76PNGKCB.js.map → chunk-RSZDAY62.js.map} +0 -0
- /package/dist/{chunk-QANVXCYU.js.map → chunk-S23S57PQ.js.map} +0 -0
- /package/dist/{chunk-OXZ25J7F.js.map → chunk-SE5TPTP2.js.map} +0 -0
- /package/dist/{chunk-MTGKF6SO.js.map → chunk-SLFUYRIC.js.map} +0 -0
- /package/dist/{chunk-E5ZJDDZH.js.map → chunk-SLZNCBSK.js.map} +0 -0
- /package/dist/{chunk-M6C7IXCB.js.map → chunk-UMUSNH2D.js.map} +0 -0
- /package/dist/{chunk-GFRYS4IN.js.map → chunk-UTMCR27N.js.map} +0 -0
- /package/dist/{chunk-4PYFMD24.js.map → chunk-V7IC4EAC.js.map} +0 -0
- /package/dist/{chunk-GXWE3QNN.js.map → chunk-VPKWECOE.js.map} +0 -0
- /package/dist/{chunk-BKYPABII.js.map → chunk-YC5XSFKC.js.map} +0 -0
- /package/dist/{chunk-3DEAIJBF.js.map → chunk-YZLPQOH2.js.map} +0 -0
|
@@ -1264,8 +1264,69 @@ var CircleFileIcon = React17.forwardRef(
|
|
|
1264
1264
|
);
|
|
1265
1265
|
CircleFileIcon.displayName = "CircleFileIcon";
|
|
1266
1266
|
|
|
1267
|
-
// src/
|
|
1267
|
+
// src/icons/headset.tsx
|
|
1268
|
+
var React18 = __toESM(require("react"), 1);
|
|
1268
1269
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1270
|
+
var HeadsetIcon = React18.forwardRef(
|
|
1271
|
+
(_a, forwardedRef) => {
|
|
1272
|
+
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
1273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1274
|
+
"svg",
|
|
1275
|
+
__spreadProps(__spreadValues({
|
|
1276
|
+
fill: "none",
|
|
1277
|
+
height: "16",
|
|
1278
|
+
viewBox: "0 0 16 16",
|
|
1279
|
+
width: "16",
|
|
1280
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1281
|
+
}, props), {
|
|
1282
|
+
ref: forwardedRef,
|
|
1283
|
+
children: [
|
|
1284
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1285
|
+
"path",
|
|
1286
|
+
{
|
|
1287
|
+
d: "M3.25 6C3.25 3.75 5.5 2 8 2C10.5 2 12.75 3.75 12.75 6",
|
|
1288
|
+
stroke: color,
|
|
1289
|
+
strokeLinecap: "round",
|
|
1290
|
+
strokeWidth: "1.2"
|
|
1291
|
+
}
|
|
1292
|
+
),
|
|
1293
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1294
|
+
"path",
|
|
1295
|
+
{
|
|
1296
|
+
d: "M4.75 6H3.25A1.5 1.5 0 0 0 1.75 7.5V10.75A1.5 1.5 0 0 0 3.25 12.25H4.75Z",
|
|
1297
|
+
stroke: color,
|
|
1298
|
+
strokeLinejoin: "round",
|
|
1299
|
+
strokeWidth: "1.2"
|
|
1300
|
+
}
|
|
1301
|
+
),
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1303
|
+
"path",
|
|
1304
|
+
{
|
|
1305
|
+
d: "M11.25 6H12.75A1.5 1.5 0 0 1 14.25 7.5V10.75A1.5 1.5 0 0 1 12.75 12.25H11.25Z",
|
|
1306
|
+
stroke: color,
|
|
1307
|
+
strokeLinejoin: "round",
|
|
1308
|
+
strokeWidth: "1.2"
|
|
1309
|
+
}
|
|
1310
|
+
),
|
|
1311
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1312
|
+
"path",
|
|
1313
|
+
{
|
|
1314
|
+
d: "M4 12.25V13.25C4 13.94 4.56 14.5 5.25 14.5H8",
|
|
1315
|
+
stroke: color,
|
|
1316
|
+
strokeLinecap: "round",
|
|
1317
|
+
strokeLinejoin: "round",
|
|
1318
|
+
strokeWidth: "1.2"
|
|
1319
|
+
}
|
|
1320
|
+
)
|
|
1321
|
+
]
|
|
1322
|
+
})
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
);
|
|
1326
|
+
HeadsetIcon.displayName = "HeadsetIcon";
|
|
1327
|
+
|
|
1328
|
+
// src/molecules/dynamic-form-editor-field-editor-panel.tsx
|
|
1329
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1269
1330
|
function isRecord2(value) {
|
|
1270
1331
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
1271
1332
|
}
|
|
@@ -1351,11 +1412,11 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1351
1412
|
if (!field) return "";
|
|
1352
1413
|
return String(field.placeholder || "");
|
|
1353
1414
|
}, [field]);
|
|
1354
|
-
return /* @__PURE__ */ (0,
|
|
1355
|
-
/* @__PURE__ */ (0,
|
|
1356
|
-
/* @__PURE__ */ (0,
|
|
1357
|
-
/* @__PURE__ */ (0,
|
|
1358
|
-
/* @__PURE__ */ (0,
|
|
1415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Card, { style: { flex: 1, minWidth: 520, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { direction: "column", gap: "4", children: [
|
|
1416
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1417
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC \uD3B8\uC9D1" }),
|
|
1418
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "center", gap: "1", children: [
|
|
1419
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1359
1420
|
IconButton,
|
|
1360
1421
|
{
|
|
1361
1422
|
"aria-label": "\uD544\uB4DC \uC704\uB85C",
|
|
@@ -1364,10 +1425,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1364
1425
|
onMoveField("up");
|
|
1365
1426
|
},
|
|
1366
1427
|
variant: "soft",
|
|
1367
|
-
children: /* @__PURE__ */ (0,
|
|
1428
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
1368
1429
|
}
|
|
1369
1430
|
),
|
|
1370
|
-
/* @__PURE__ */ (0,
|
|
1431
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1371
1432
|
IconButton,
|
|
1372
1433
|
{
|
|
1373
1434
|
"aria-label": "\uD544\uB4DC \uC544\uB798\uB85C",
|
|
@@ -1376,36 +1437,36 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1376
1437
|
onMoveField("down");
|
|
1377
1438
|
},
|
|
1378
1439
|
variant: "soft",
|
|
1379
|
-
children: /* @__PURE__ */ (0,
|
|
1440
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
1380
1441
|
}
|
|
1381
1442
|
),
|
|
1382
|
-
/* @__PURE__ */ (0,
|
|
1443
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1383
1444
|
IconButton,
|
|
1384
1445
|
{
|
|
1385
1446
|
"aria-label": "\uD544\uB4DC \uBCF5\uC81C",
|
|
1386
1447
|
disabled: readonly || !field,
|
|
1387
1448
|
onClick: onDuplicateField,
|
|
1388
1449
|
variant: "soft",
|
|
1389
|
-
children: /* @__PURE__ */ (0,
|
|
1450
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.CopyIcon, {})
|
|
1390
1451
|
}
|
|
1391
1452
|
),
|
|
1392
|
-
/* @__PURE__ */ (0,
|
|
1453
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1393
1454
|
IconButton,
|
|
1394
1455
|
{
|
|
1395
1456
|
"aria-label": "\uD544\uB4DC \uC0AD\uC81C",
|
|
1396
1457
|
disabled: readonly || !field,
|
|
1397
1458
|
onClick: onDeleteField,
|
|
1398
1459
|
variant: "soft",
|
|
1399
|
-
children: /* @__PURE__ */ (0,
|
|
1460
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.TrashIcon, {})
|
|
1400
1461
|
}
|
|
1401
1462
|
)
|
|
1402
1463
|
] })
|
|
1403
1464
|
] }),
|
|
1404
|
-
!field ? /* @__PURE__ */ (0,
|
|
1405
|
-
/* @__PURE__ */ (0,
|
|
1406
|
-
/* @__PURE__ */ (0,
|
|
1407
|
-
/* @__PURE__ */ (0,
|
|
1408
|
-
/* @__PURE__ */ (0,
|
|
1465
|
+
!field ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC67C\uCABD\uC5D0\uC11C \uD544\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694." }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
1466
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1467
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1468
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "name" }),
|
|
1469
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1409
1470
|
TextField.Root,
|
|
1410
1471
|
{
|
|
1411
1472
|
disabled: readonly,
|
|
@@ -1416,9 +1477,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1416
1477
|
}
|
|
1417
1478
|
)
|
|
1418
1479
|
] }),
|
|
1419
|
-
/* @__PURE__ */ (0,
|
|
1420
|
-
/* @__PURE__ */ (0,
|
|
1421
|
-
/* @__PURE__ */ (0,
|
|
1480
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1481
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1422
1483
|
TextField.Root,
|
|
1423
1484
|
{
|
|
1424
1485
|
disabled: readonly,
|
|
@@ -1430,8 +1491,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1430
1491
|
)
|
|
1431
1492
|
] })
|
|
1432
1493
|
] }),
|
|
1433
|
-
/* @__PURE__ */ (0,
|
|
1434
|
-
/* @__PURE__ */ (0,
|
|
1494
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "center", gap: "2", children: [
|
|
1495
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1435
1496
|
Select.Root,
|
|
1436
1497
|
{
|
|
1437
1498
|
disabled: readonly,
|
|
@@ -1441,13 +1502,13 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1441
1502
|
},
|
|
1442
1503
|
value: field.type,
|
|
1443
1504
|
children: [
|
|
1444
|
-
/* @__PURE__ */ (0,
|
|
1445
|
-
/* @__PURE__ */ (0,
|
|
1505
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
1506
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
1446
1507
|
]
|
|
1447
1508
|
}
|
|
1448
1509
|
),
|
|
1449
|
-
/* @__PURE__ */ (0,
|
|
1450
|
-
/* @__PURE__ */ (0,
|
|
1510
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "center", gap: "2", children: [
|
|
1511
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1451
1512
|
Checkbox,
|
|
1452
1513
|
{
|
|
1453
1514
|
checked: Boolean(field.required),
|
|
@@ -1457,12 +1518,12 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1457
1518
|
}
|
|
1458
1519
|
}
|
|
1459
1520
|
),
|
|
1460
|
-
/* @__PURE__ */ (0,
|
|
1521
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "\uD544\uC218" })
|
|
1461
1522
|
] })
|
|
1462
1523
|
] }),
|
|
1463
|
-
/* @__PURE__ */ (0,
|
|
1464
|
-
/* @__PURE__ */ (0,
|
|
1465
|
-
/* @__PURE__ */ (0,
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1525
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "description" }),
|
|
1526
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1466
1527
|
TextArea,
|
|
1467
1528
|
{
|
|
1468
1529
|
disabled: readonly,
|
|
@@ -1476,9 +1537,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1476
1537
|
}
|
|
1477
1538
|
)
|
|
1478
1539
|
] }),
|
|
1479
|
-
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0,
|
|
1480
|
-
/* @__PURE__ */ (0,
|
|
1481
|
-
/* @__PURE__ */ (0,
|
|
1540
|
+
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1541
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "placeholder" }),
|
|
1542
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1482
1543
|
TextField.Root,
|
|
1483
1544
|
{
|
|
1484
1545
|
disabled: readonly,
|
|
@@ -1489,9 +1550,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1489
1550
|
}
|
|
1490
1551
|
)
|
|
1491
1552
|
] }) : null,
|
|
1492
|
-
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1494
|
-
/* @__PURE__ */ (0,
|
|
1553
|
+
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1554
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "orientation" }),
|
|
1555
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1495
1556
|
Select.Root,
|
|
1496
1557
|
{
|
|
1497
1558
|
disabled: readonly,
|
|
@@ -1501,19 +1562,19 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1501
1562
|
},
|
|
1502
1563
|
value: field.orientation || "vertical",
|
|
1503
1564
|
children: [
|
|
1504
|
-
/* @__PURE__ */ (0,
|
|
1505
|
-
/* @__PURE__ */ (0,
|
|
1506
|
-
/* @__PURE__ */ (0,
|
|
1507
|
-
/* @__PURE__ */ (0,
|
|
1565
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
1566
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Select.Content, { children: [
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Item, { value: "vertical", children: "vertical" }),
|
|
1568
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Item, { value: "horizontal", children: "horizontal" })
|
|
1508
1569
|
] })
|
|
1509
1570
|
]
|
|
1510
1571
|
}
|
|
1511
1572
|
)
|
|
1512
1573
|
] }) : null,
|
|
1513
|
-
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
1514
|
-
/* @__PURE__ */ (0,
|
|
1515
|
-
/* @__PURE__ */ (0,
|
|
1516
|
-
/* @__PURE__ */ (0,
|
|
1574
|
+
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
1575
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1576
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "options" }),
|
|
1577
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1517
1578
|
Button,
|
|
1518
1579
|
{
|
|
1519
1580
|
disabled: readonly,
|
|
@@ -1531,16 +1592,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1531
1592
|
size: "small",
|
|
1532
1593
|
variant: "soft",
|
|
1533
1594
|
children: [
|
|
1534
|
-
/* @__PURE__ */ (0,
|
|
1595
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.PlusIcon, {}),
|
|
1535
1596
|
" \uCD94\uAC00"
|
|
1536
1597
|
]
|
|
1537
1598
|
}
|
|
1538
1599
|
)
|
|
1539
1600
|
] }),
|
|
1540
|
-
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
1541
|
-
/* @__PURE__ */ (0,
|
|
1542
|
-
/* @__PURE__ */ (0,
|
|
1543
|
-
/* @__PURE__ */ (0,
|
|
1601
|
+
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1602
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1603
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
1604
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1544
1605
|
TextField.Root,
|
|
1545
1606
|
{
|
|
1546
1607
|
disabled: readonly,
|
|
@@ -1555,9 +1616,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1555
1616
|
}
|
|
1556
1617
|
)
|
|
1557
1618
|
] }),
|
|
1558
|
-
/* @__PURE__ */ (0,
|
|
1559
|
-
/* @__PURE__ */ (0,
|
|
1560
|
-
/* @__PURE__ */ (0,
|
|
1619
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1620
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
1621
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1561
1622
|
TextField.Root,
|
|
1562
1623
|
{
|
|
1563
1624
|
disabled: readonly,
|
|
@@ -1572,8 +1633,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1572
1633
|
}
|
|
1573
1634
|
)
|
|
1574
1635
|
] }),
|
|
1575
|
-
/* @__PURE__ */ (0,
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1636
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { gap: "1", children: [
|
|
1637
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1577
1638
|
IconButton,
|
|
1578
1639
|
{
|
|
1579
1640
|
"aria-label": "\uC635\uC158 \uC704\uB85C",
|
|
@@ -1584,10 +1645,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1584
1645
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
1585
1646
|
},
|
|
1586
1647
|
variant: "soft",
|
|
1587
|
-
children: /* @__PURE__ */ (0,
|
|
1648
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
1588
1649
|
}
|
|
1589
1650
|
),
|
|
1590
|
-
/* @__PURE__ */ (0,
|
|
1651
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1591
1652
|
IconButton,
|
|
1592
1653
|
{
|
|
1593
1654
|
"aria-label": "\uC635\uC158 \uC544\uB798\uB85C",
|
|
@@ -1598,10 +1659,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1598
1659
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
1599
1660
|
},
|
|
1600
1661
|
variant: "soft",
|
|
1601
|
-
children: /* @__PURE__ */ (0,
|
|
1662
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
1602
1663
|
}
|
|
1603
1664
|
),
|
|
1604
|
-
/* @__PURE__ */ (0,
|
|
1665
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1605
1666
|
IconButton,
|
|
1606
1667
|
{
|
|
1607
1668
|
"aria-label": "\uC635\uC158 \uC0AD\uC81C",
|
|
@@ -1612,16 +1673,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1612
1673
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
1613
1674
|
},
|
|
1614
1675
|
variant: "soft",
|
|
1615
|
-
children: /* @__PURE__ */ (0,
|
|
1676
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.TrashIcon, {})
|
|
1616
1677
|
}
|
|
1617
1678
|
)
|
|
1618
1679
|
] })
|
|
1619
1680
|
] }, `${opt.value}-${opt.label}`))
|
|
1620
1681
|
] }) }) : null,
|
|
1621
|
-
field.type === "image_radio_card" ? /* @__PURE__ */ (0,
|
|
1622
|
-
/* @__PURE__ */ (0,
|
|
1623
|
-
/* @__PURE__ */ (0,
|
|
1624
|
-
/* @__PURE__ */ (0,
|
|
1682
|
+
field.type === "image_radio_card" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
1683
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1684
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "image options" }),
|
|
1685
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1625
1686
|
Button,
|
|
1626
1687
|
{
|
|
1627
1688
|
disabled: readonly,
|
|
@@ -1640,21 +1701,21 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1640
1701
|
size: "small",
|
|
1641
1702
|
variant: "soft",
|
|
1642
1703
|
children: [
|
|
1643
|
-
/* @__PURE__ */ (0,
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.PlusIcon, {}),
|
|
1644
1705
|
" \uCD94\uAC00"
|
|
1645
1706
|
]
|
|
1646
1707
|
}
|
|
1647
1708
|
)
|
|
1648
1709
|
] }),
|
|
1649
|
-
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
1710
|
+
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1650
1711
|
Card,
|
|
1651
1712
|
{
|
|
1652
1713
|
style: { padding: 10 },
|
|
1653
|
-
children: /* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
1657
|
-
/* @__PURE__ */ (0,
|
|
1714
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1716
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1717
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1658
1719
|
TextField.Root,
|
|
1659
1720
|
{
|
|
1660
1721
|
disabled: readonly,
|
|
@@ -1671,9 +1732,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1671
1732
|
}
|
|
1672
1733
|
)
|
|
1673
1734
|
] }),
|
|
1674
|
-
/* @__PURE__ */ (0,
|
|
1675
|
-
/* @__PURE__ */ (0,
|
|
1676
|
-
/* @__PURE__ */ (0,
|
|
1735
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1736
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
1737
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1677
1738
|
TextField.Root,
|
|
1678
1739
|
{
|
|
1679
1740
|
disabled: readonly,
|
|
@@ -1691,9 +1752,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1691
1752
|
)
|
|
1692
1753
|
] })
|
|
1693
1754
|
] }),
|
|
1694
|
-
/* @__PURE__ */ (0,
|
|
1695
|
-
/* @__PURE__ */ (0,
|
|
1696
|
-
/* @__PURE__ */ (0,
|
|
1755
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1756
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "imageSrc" }),
|
|
1757
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1697
1758
|
TextField.Root,
|
|
1698
1759
|
{
|
|
1699
1760
|
disabled: readonly,
|
|
@@ -1710,10 +1771,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1710
1771
|
}
|
|
1711
1772
|
)
|
|
1712
1773
|
] }),
|
|
1713
|
-
/* @__PURE__ */ (0,
|
|
1714
|
-
/* @__PURE__ */ (0,
|
|
1715
|
-
/* @__PURE__ */ (0,
|
|
1716
|
-
/* @__PURE__ */ (0,
|
|
1774
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { align: "end", gap: "2", children: [
|
|
1775
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1776
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "alt" }),
|
|
1777
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1717
1778
|
TextField.Root,
|
|
1718
1779
|
{
|
|
1719
1780
|
disabled: readonly,
|
|
@@ -1731,7 +1792,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1731
1792
|
}
|
|
1732
1793
|
)
|
|
1733
1794
|
] }),
|
|
1734
|
-
/* @__PURE__ */ (0,
|
|
1795
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1735
1796
|
IconButton,
|
|
1736
1797
|
{
|
|
1737
1798
|
"aria-label": "\uC774\uBBF8\uC9C0 \uC635\uC158 \uC0AD\uC81C",
|
|
@@ -1744,7 +1805,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1744
1805
|
);
|
|
1745
1806
|
},
|
|
1746
1807
|
variant: "soft",
|
|
1747
|
-
children: /* @__PURE__ */ (0,
|
|
1808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.TrashIcon, {})
|
|
1748
1809
|
}
|
|
1749
1810
|
)
|
|
1750
1811
|
] })
|
|
@@ -1752,10 +1813,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1752
1813
|
},
|
|
1753
1814
|
`${opt.value}-${opt.label}-${opt.imageSrc}`
|
|
1754
1815
|
)),
|
|
1755
|
-
/* @__PURE__ */ (0,
|
|
1756
|
-
/* @__PURE__ */ (0,
|
|
1757
|
-
/* @__PURE__ */ (0,
|
|
1758
|
-
/* @__PURE__ */ (0,
|
|
1816
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { gap: "2", children: [
|
|
1817
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1818
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "gridColumnsCount" }),
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1759
1820
|
TextField.Root,
|
|
1760
1821
|
{
|
|
1761
1822
|
disabled: readonly,
|
|
@@ -1771,9 +1832,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1771
1832
|
}
|
|
1772
1833
|
)
|
|
1773
1834
|
] }),
|
|
1774
|
-
/* @__PURE__ */ (0,
|
|
1775
|
-
/* @__PURE__ */ (0,
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1835
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1836
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "gridItemHeight" }),
|
|
1837
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1777
1838
|
TextField.Root,
|
|
1778
1839
|
{
|
|
1779
1840
|
disabled: readonly,
|
|
@@ -1786,9 +1847,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1786
1847
|
}
|
|
1787
1848
|
)
|
|
1788
1849
|
] }),
|
|
1789
|
-
/* @__PURE__ */ (0,
|
|
1790
|
-
/* @__PURE__ */ (0,
|
|
1791
|
-
/* @__PURE__ */ (0,
|
|
1850
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1851
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "gridGap" }),
|
|
1852
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1792
1853
|
TextField.Root,
|
|
1793
1854
|
{
|
|
1794
1855
|
disabled: readonly,
|
|
@@ -1800,9 +1861,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1800
1861
|
)
|
|
1801
1862
|
] })
|
|
1802
1863
|
] }),
|
|
1803
|
-
/* @__PURE__ */ (0,
|
|
1804
|
-
/* @__PURE__ */ (0,
|
|
1805
|
-
/* @__PURE__ */ (0,
|
|
1864
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1865
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "imageFit" }),
|
|
1866
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1806
1867
|
Select.Root,
|
|
1807
1868
|
{
|
|
1808
1869
|
disabled: readonly,
|
|
@@ -1812,22 +1873,22 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1812
1873
|
},
|
|
1813
1874
|
value: field.imageFit || "cover",
|
|
1814
1875
|
children: [
|
|
1815
|
-
/* @__PURE__ */ (0,
|
|
1816
|
-
/* @__PURE__ */ (0,
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
1818
|
-
/* @__PURE__ */ (0,
|
|
1876
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Select.Content, { children: [
|
|
1878
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Item, { value: "cover", children: "cover" }),
|
|
1879
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Select.Item, { value: "contain", children: "contain" })
|
|
1819
1880
|
] })
|
|
1820
1881
|
]
|
|
1821
1882
|
}
|
|
1822
1883
|
)
|
|
1823
1884
|
] })
|
|
1824
1885
|
] }) }) : null,
|
|
1825
|
-
/* @__PURE__ */ (0,
|
|
1826
|
-
/* @__PURE__ */ (0,
|
|
1827
|
-
/* @__PURE__ */ (0,
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1830
|
-
/* @__PURE__ */ (0,
|
|
1886
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
1887
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "validation" }),
|
|
1888
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes2.Flex, { gap: "2", children: [
|
|
1889
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1890
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "min" }),
|
|
1891
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1831
1892
|
TextField.Root,
|
|
1832
1893
|
{
|
|
1833
1894
|
disabled: readonly,
|
|
@@ -1843,9 +1904,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1843
1904
|
}
|
|
1844
1905
|
)
|
|
1845
1906
|
] }),
|
|
1846
|
-
/* @__PURE__ */ (0,
|
|
1847
|
-
/* @__PURE__ */ (0,
|
|
1848
|
-
/* @__PURE__ */ (0,
|
|
1907
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { style: { flex: 1 }, children: [
|
|
1908
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "max" }),
|
|
1909
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1849
1910
|
TextField.Root,
|
|
1850
1911
|
{
|
|
1851
1912
|
disabled: readonly,
|
|
@@ -1862,9 +1923,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1862
1923
|
)
|
|
1863
1924
|
] })
|
|
1864
1925
|
] }),
|
|
1865
|
-
/* @__PURE__ */ (0,
|
|
1866
|
-
/* @__PURE__ */ (0,
|
|
1867
|
-
/* @__PURE__ */ (0,
|
|
1926
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1927
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "pattern" }),
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1868
1929
|
TextField.Root,
|
|
1869
1930
|
{
|
|
1870
1931
|
disabled: readonly,
|
|
@@ -1877,9 +1938,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1877
1938
|
}
|
|
1878
1939
|
)
|
|
1879
1940
|
] }),
|
|
1880
|
-
/* @__PURE__ */ (0,
|
|
1881
|
-
/* @__PURE__ */ (0,
|
|
1882
|
-
/* @__PURE__ */ (0,
|
|
1941
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Box, { children: [
|
|
1942
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "caption", children: "message" }),
|
|
1943
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1883
1944
|
TextField.Root,
|
|
1884
1945
|
{
|
|
1885
1946
|
disabled: readonly,
|
|
@@ -1900,7 +1961,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
1900
1961
|
// src/molecules/dynamic-form-editor-field-list-panel.tsx
|
|
1901
1962
|
var import_react10 = require("react");
|
|
1902
1963
|
var import_themes11 = require("@radix-ui/themes");
|
|
1903
|
-
var
|
|
1964
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1904
1965
|
function isFieldType2(value, types) {
|
|
1905
1966
|
return types.some((t) => t === value);
|
|
1906
1967
|
}
|
|
@@ -1918,10 +1979,10 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
1918
1979
|
const triggerPlaceholder = (0, import_react10.useMemo)(() => {
|
|
1919
1980
|
return readonly ? "\uCD94\uAC00(\uC77D\uAE30 \uC804\uC6A9)" : "\uCD94\uAC00";
|
|
1920
1981
|
}, [readonly]);
|
|
1921
|
-
return /* @__PURE__ */ (0,
|
|
1922
|
-
/* @__PURE__ */ (0,
|
|
1923
|
-
/* @__PURE__ */ (0,
|
|
1924
|
-
/* @__PURE__ */ (0,
|
|
1982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Card, { style: { width: 340, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
1983
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes2.Flex, { align: "center", justify: "between", children: [
|
|
1984
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC" }),
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1925
1986
|
Select.Root,
|
|
1926
1987
|
{
|
|
1927
1988
|
disabled: readonly,
|
|
@@ -1931,18 +1992,18 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
1931
1992
|
},
|
|
1932
1993
|
value: "",
|
|
1933
1994
|
children: [
|
|
1934
|
-
/* @__PURE__ */ (0,
|
|
1935
|
-
/* @__PURE__ */ (0,
|
|
1995
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Select.Trigger, { placeholder: triggerPlaceholder }),
|
|
1996
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
1936
1997
|
]
|
|
1937
1998
|
}
|
|
1938
1999
|
)
|
|
1939
2000
|
] }),
|
|
1940
|
-
/* @__PURE__ */ (0,
|
|
1941
|
-
isEmpty ? /* @__PURE__ */ (0,
|
|
2001
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes2.Flex, { direction: "column", gap: "2", children: [
|
|
2002
|
+
isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC544\uC9C1 \uD544\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) : null,
|
|
1942
2003
|
fields.map((field) => {
|
|
1943
2004
|
const isSelected = field.name === selectedFieldName;
|
|
1944
2005
|
const hasError = hasFieldError(field.name);
|
|
1945
|
-
return /* @__PURE__ */ (0,
|
|
2006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1946
2007
|
Card,
|
|
1947
2008
|
{
|
|
1948
2009
|
error: isSelected ? hasError : void 0,
|
|
@@ -1955,8 +2016,8 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
1955
2016
|
opacity: readonly ? 0.8 : 1,
|
|
1956
2017
|
border: isSelected ? "1px solid var(--accent-9)" : "1px solid transparent"
|
|
1957
2018
|
},
|
|
1958
|
-
children: /* @__PURE__ */ (0,
|
|
1959
|
-
/* @__PURE__ */ (0,
|
|
2019
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes11.Box, { style: { minWidth: 0 }, children: [
|
|
2020
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1960
2021
|
Typo,
|
|
1961
2022
|
{
|
|
1962
2023
|
style: {
|
|
@@ -1968,7 +2029,7 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
1968
2029
|
children: field.label
|
|
1969
2030
|
}
|
|
1970
2031
|
),
|
|
1971
|
-
/* @__PURE__ */ (0,
|
|
2032
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
1972
2033
|
field.name,
|
|
1973
2034
|
" \xB7 ",
|
|
1974
2035
|
field.type,
|
|
@@ -1984,13 +2045,13 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
1984
2045
|
}
|
|
1985
2046
|
|
|
1986
2047
|
// src/molecules/dynamic-form-editor-issues-panel.tsx
|
|
1987
|
-
var
|
|
2048
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1988
2049
|
function DynamicFormEditorIssuesPanel(props) {
|
|
1989
2050
|
const { issues } = props;
|
|
1990
2051
|
if (issues.length === 0) return null;
|
|
1991
|
-
return /* @__PURE__ */ (0,
|
|
1992
|
-
/* @__PURE__ */ (0,
|
|
1993
|
-
issues.map((i) => /* @__PURE__ */ (0,
|
|
2052
|
+
return /* @__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: [
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typo, { variant: "caption", children: "\uC2A4\uD0A4\uB9C8 \uC774\uC288" }),
|
|
2054
|
+
issues.map((i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1994
2055
|
Typo,
|
|
1995
2056
|
{
|
|
1996
2057
|
color: i.level === "error" ? "red" : "gray",
|
|
@@ -2025,7 +2086,7 @@ var import_react12 = require("react");
|
|
|
2025
2086
|
var import_themes12 = require("@radix-ui/themes");
|
|
2026
2087
|
var import_react11 = require("react");
|
|
2027
2088
|
var import_themes13 = require("@radix-ui/themes");
|
|
2028
|
-
var
|
|
2089
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2029
2090
|
var mapVariant = (variant) => {
|
|
2030
2091
|
switch (variant) {
|
|
2031
2092
|
case "heading1":
|
|
@@ -2050,15 +2111,15 @@ function Heading2(props) {
|
|
|
2050
2111
|
mapFn: mapVariant
|
|
2051
2112
|
}) : size;
|
|
2052
2113
|
}, [size, variant]);
|
|
2053
|
-
return /* @__PURE__ */ (0,
|
|
2114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes12.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
2054
2115
|
}
|
|
2055
2116
|
|
|
2056
2117
|
// src/molecules/form/form.tsx
|
|
2057
|
-
var
|
|
2118
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2058
2119
|
var Root4 = (0, import_react12.forwardRef)(
|
|
2059
2120
|
(_a, ref) => {
|
|
2060
2121
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
2061
|
-
return /* @__PURE__ */ (0,
|
|
2122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2062
2123
|
RadixForm.Root,
|
|
2063
2124
|
__spreadProps(__spreadValues({}, rest), {
|
|
2064
2125
|
className: `FormRoot ${className || ""}`,
|
|
@@ -2075,25 +2136,25 @@ var FieldContext = (0, import_react12.createContext)({
|
|
|
2075
2136
|
var Field2 = (0, import_react12.forwardRef)(
|
|
2076
2137
|
(_a, ref) => {
|
|
2077
2138
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
2078
|
-
return /* @__PURE__ */ (0,
|
|
2139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2079
2140
|
RadixForm.Field,
|
|
2080
2141
|
__spreadProps(__spreadValues({}, rest), {
|
|
2081
2142
|
className: `FormField ${className || ""}`,
|
|
2082
2143
|
ref,
|
|
2083
|
-
children: /* @__PURE__ */ (0,
|
|
2144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FieldContext.Provider, { value: rest, children })
|
|
2084
2145
|
})
|
|
2085
2146
|
);
|
|
2086
2147
|
}
|
|
2087
2148
|
);
|
|
2088
2149
|
Field2.displayName = "FORM_FIELD";
|
|
2089
2150
|
function HeadingLabel(props) {
|
|
2090
|
-
return /* @__PURE__ */ (0,
|
|
2151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
2091
2152
|
}
|
|
2092
2153
|
function CaptionLabel(props) {
|
|
2093
|
-
return /* @__PURE__ */ (0,
|
|
2154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption", weight: "bold" }, props), { children: props.children }));
|
|
2094
2155
|
}
|
|
2095
2156
|
function BodyLabel(props) {
|
|
2096
|
-
return /* @__PURE__ */ (0,
|
|
2157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, __spreadProps(__spreadValues({ variant: "body", weight: "bold" }, props), { children: props.children }));
|
|
2097
2158
|
}
|
|
2098
2159
|
var Label2 = (0, import_react12.forwardRef)(
|
|
2099
2160
|
(_a, ref) => {
|
|
@@ -2110,15 +2171,15 @@ var Label2 = (0, import_react12.forwardRef)(
|
|
|
2110
2171
|
}
|
|
2111
2172
|
}, [variant]);
|
|
2112
2173
|
const fieldProps = (0, import_react12.useContext)(FieldContext);
|
|
2113
|
-
return /* @__PURE__ */ (0,
|
|
2174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2114
2175
|
RadixForm.Label,
|
|
2115
2176
|
__spreadProps(__spreadValues({}, rest), {
|
|
2116
2177
|
asChild: true,
|
|
2117
2178
|
className: `FormLabel ${className || ""}`,
|
|
2118
2179
|
ref,
|
|
2119
|
-
children: /* @__PURE__ */ (0,
|
|
2180
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Comp, { children: [
|
|
2120
2181
|
children,
|
|
2121
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
2182
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
2122
2183
|
] })
|
|
2123
2184
|
})
|
|
2124
2185
|
);
|
|
@@ -2128,13 +2189,13 @@ Label2.displayName = "FORM_Label";
|
|
|
2128
2189
|
var Message2 = (0, import_react12.forwardRef)(
|
|
2129
2190
|
(_a, ref) => {
|
|
2130
2191
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
2131
|
-
return /* @__PURE__ */ (0,
|
|
2192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2132
2193
|
RadixForm.Message,
|
|
2133
2194
|
__spreadProps(__spreadValues({}, rest), {
|
|
2134
2195
|
asChild: true,
|
|
2135
2196
|
className: `FormMessage ${className || ""}`,
|
|
2136
2197
|
ref,
|
|
2137
|
-
children: /* @__PURE__ */ (0,
|
|
2198
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { color: "red", children })
|
|
2138
2199
|
})
|
|
2139
2200
|
);
|
|
2140
2201
|
}
|
|
@@ -2144,7 +2205,7 @@ var Control2 = (0, import_react12.forwardRef)(
|
|
|
2144
2205
|
(_a, ref) => {
|
|
2145
2206
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
2146
2207
|
const fieldProps = (0, import_react12.useContext)(FieldContext);
|
|
2147
|
-
return /* @__PURE__ */ (0,
|
|
2208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2148
2209
|
RadixForm.Control,
|
|
2149
2210
|
__spreadProps(__spreadValues({}, rest), {
|
|
2150
2211
|
className: `FormControl ${className || ""}`,
|
|
@@ -2167,10 +2228,10 @@ function FormItem(_a) {
|
|
|
2167
2228
|
"children",
|
|
2168
2229
|
"errorMessage"
|
|
2169
2230
|
]);
|
|
2170
|
-
return /* @__PURE__ */ (0,
|
|
2171
|
-
/* @__PURE__ */ (0,
|
|
2231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
2172
2233
|
children,
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2234
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
2174
2235
|
] }));
|
|
2175
2236
|
}
|
|
2176
2237
|
var Form = {
|
|
@@ -2184,7 +2245,7 @@ var Form = {
|
|
|
2184
2245
|
};
|
|
2185
2246
|
|
|
2186
2247
|
// src/context/dynamic-form-context.tsx
|
|
2187
|
-
var
|
|
2248
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2188
2249
|
var DynamicFormContext = (0, import_react13.createContext)(null);
|
|
2189
2250
|
function DynamicFormProvider({
|
|
2190
2251
|
children,
|
|
@@ -2210,7 +2271,7 @@ function DynamicFormProvider({
|
|
|
2210
2271
|
handleChange: formik.handleChange,
|
|
2211
2272
|
handleBlur: formik.handleBlur
|
|
2212
2273
|
};
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
|
|
2214
2275
|
}
|
|
2215
2276
|
function useDynamicForm() {
|
|
2216
2277
|
const context = (0, import_react13.useContext)(DynamicFormContext);
|
|
@@ -2223,7 +2284,7 @@ function useDynamicForm() {
|
|
|
2223
2284
|
// src/atoms/check-box-group.tsx
|
|
2224
2285
|
var import_themes14 = require("@radix-ui/themes");
|
|
2225
2286
|
var import_react14 = require("react");
|
|
2226
|
-
var
|
|
2287
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2227
2288
|
var Root5 = (0, import_react14.forwardRef)((props, ref) => {
|
|
2228
2289
|
const _a = props, { children, size = "medium" } = _a, rest = __objRest(_a, ["children", "size"]);
|
|
2229
2290
|
const groupSize = (0, import_react14.useMemo)(() => {
|
|
@@ -2237,7 +2298,7 @@ var Root5 = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
2237
2298
|
return "2";
|
|
2238
2299
|
}
|
|
2239
2300
|
}, [size]);
|
|
2240
|
-
return /* @__PURE__ */ (0,
|
|
2301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes14.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
|
|
2241
2302
|
});
|
|
2242
2303
|
Root5.displayName = "CheckboxGroup.Root";
|
|
2243
2304
|
var CheckboxGroup = {
|
|
@@ -2258,7 +2319,7 @@ var import_themes17 = require("@radix-ui/themes");
|
|
|
2258
2319
|
var import_themes18 = require("@radix-ui/themes");
|
|
2259
2320
|
|
|
2260
2321
|
// src/molecules/dynamic-field.tsx
|
|
2261
|
-
var
|
|
2322
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2262
2323
|
function isRecord3(value) {
|
|
2263
2324
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
2264
2325
|
}
|
|
@@ -2327,7 +2388,7 @@ function DynamicFormField({
|
|
|
2327
2388
|
const selectedValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
2328
2389
|
switch (field.type) {
|
|
2329
2390
|
case "short_text":
|
|
2330
|
-
return /* @__PURE__ */ (0,
|
|
2391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2331
2392
|
TextField.Root,
|
|
2332
2393
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
2333
2394
|
placeholder: field.placeholder,
|
|
@@ -2335,7 +2396,7 @@ function DynamicFormField({
|
|
|
2335
2396
|
})
|
|
2336
2397
|
);
|
|
2337
2398
|
case "email":
|
|
2338
|
-
return /* @__PURE__ */ (0,
|
|
2399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2339
2400
|
TextField.Root,
|
|
2340
2401
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
2341
2402
|
placeholder: field.placeholder,
|
|
@@ -2343,7 +2404,7 @@ function DynamicFormField({
|
|
|
2343
2404
|
})
|
|
2344
2405
|
);
|
|
2345
2406
|
case "number":
|
|
2346
|
-
return /* @__PURE__ */ (0,
|
|
2407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2347
2408
|
TextField.Root,
|
|
2348
2409
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
2349
2410
|
inputMode: "numeric",
|
|
@@ -2353,9 +2414,9 @@ function DynamicFormField({
|
|
|
2353
2414
|
})
|
|
2354
2415
|
);
|
|
2355
2416
|
case "long_text":
|
|
2356
|
-
return /* @__PURE__ */ (0,
|
|
2417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
2357
2418
|
case "dropdown":
|
|
2358
|
-
return /* @__PURE__ */ (0,
|
|
2419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2359
2420
|
Select.Root,
|
|
2360
2421
|
{
|
|
2361
2422
|
disabled: readonly,
|
|
@@ -2364,7 +2425,7 @@ function DynamicFormField({
|
|
|
2364
2425
|
},
|
|
2365
2426
|
value: selectedValue,
|
|
2366
2427
|
children: [
|
|
2367
|
-
/* @__PURE__ */ (0,
|
|
2428
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2368
2429
|
Select.Trigger,
|
|
2369
2430
|
{
|
|
2370
2431
|
placeholder: field.placeholder,
|
|
@@ -2376,12 +2437,12 @@ function DynamicFormField({
|
|
|
2376
2437
|
}
|
|
2377
2438
|
}
|
|
2378
2439
|
),
|
|
2379
|
-
/* @__PURE__ */ (0,
|
|
2440
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
2380
2441
|
]
|
|
2381
2442
|
}
|
|
2382
2443
|
);
|
|
2383
2444
|
case "choice":
|
|
2384
|
-
return /* @__PURE__ */ (0,
|
|
2445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2385
2446
|
import_themes15.RadioGroup.Root,
|
|
2386
2447
|
{
|
|
2387
2448
|
disabled: readonly,
|
|
@@ -2390,13 +2451,13 @@ function DynamicFormField({
|
|
|
2390
2451
|
},
|
|
2391
2452
|
orientation: field.orientation,
|
|
2392
2453
|
value: String(value || ""),
|
|
2393
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
2454
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes15.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
2394
2455
|
}
|
|
2395
2456
|
);
|
|
2396
2457
|
case "radio_cards": {
|
|
2397
2458
|
const options = getOptions(field);
|
|
2398
2459
|
if (!options) return null;
|
|
2399
|
-
return /* @__PURE__ */ (0,
|
|
2460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2400
2461
|
import_themes16.RadioCards.Root,
|
|
2401
2462
|
{
|
|
2402
2463
|
disabled: readonly,
|
|
@@ -2404,12 +2465,12 @@ function DynamicFormField({
|
|
|
2404
2465
|
void setFieldValue(name, newValue);
|
|
2405
2466
|
},
|
|
2406
2467
|
value: selectedValue,
|
|
2407
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
2468
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes16.RadioCards.Item, { value: String(option.value), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { children: option.label }) }, option.value))
|
|
2408
2469
|
}
|
|
2409
2470
|
);
|
|
2410
2471
|
}
|
|
2411
2472
|
case "choices":
|
|
2412
|
-
return /* @__PURE__ */ (0,
|
|
2473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2413
2474
|
CheckboxGroup.Root,
|
|
2414
2475
|
{
|
|
2415
2476
|
disabled: readonly,
|
|
@@ -2418,12 +2479,12 @@ function DynamicFormField({
|
|
|
2418
2479
|
},
|
|
2419
2480
|
orientation: field.orientation,
|
|
2420
2481
|
value: Array.isArray(value) ? value.map(String) : [],
|
|
2421
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
2482
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
2422
2483
|
}
|
|
2423
2484
|
);
|
|
2424
2485
|
case "yes_no":
|
|
2425
|
-
return /* @__PURE__ */ (0,
|
|
2426
|
-
/* @__PURE__ */ (0,
|
|
2486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes2.Flex, { gap: "2", children: [
|
|
2487
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2427
2488
|
Checkbox,
|
|
2428
2489
|
{
|
|
2429
2490
|
checked: Boolean(value),
|
|
@@ -2433,7 +2494,7 @@ function DynamicFormField({
|
|
|
2433
2494
|
}
|
|
2434
2495
|
}
|
|
2435
2496
|
),
|
|
2436
|
-
field.description ? /* @__PURE__ */ (0,
|
|
2497
|
+
field.description ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
2437
2498
|
] });
|
|
2438
2499
|
case "image_radio_card": {
|
|
2439
2500
|
const options = getImageOptions(field);
|
|
@@ -2457,23 +2518,23 @@ function DynamicFormField({
|
|
|
2457
2518
|
if (!selectedOption) return;
|
|
2458
2519
|
void setFieldValue(name, selectedOption.value);
|
|
2459
2520
|
};
|
|
2460
|
-
return /* @__PURE__ */ (0,
|
|
2521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2461
2522
|
import_themes16.RadioCards.Root,
|
|
2462
2523
|
{
|
|
2463
2524
|
disabled: readonly,
|
|
2464
2525
|
onValueChange: readonly ? void 0 : handleValueChange,
|
|
2465
2526
|
value: selectedValue,
|
|
2466
|
-
children: /* @__PURE__ */ (0,
|
|
2527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes17.Grid, { columns: gridColumns, gap: gridGap, rows: gridRows, children: options.map((option) => {
|
|
2467
2528
|
const optionValue = String(option.value);
|
|
2468
2529
|
const altText = option.alt || option.label;
|
|
2469
|
-
return /* @__PURE__ */ (0,
|
|
2530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2470
2531
|
import_themes16.RadioCards.Item,
|
|
2471
2532
|
{
|
|
2472
2533
|
style: {
|
|
2473
2534
|
padding: 0
|
|
2474
2535
|
},
|
|
2475
2536
|
value: optionValue,
|
|
2476
|
-
children: /* @__PURE__ */ (0,
|
|
2537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes18.Inset, { style: { width: "100%", height: "100%", padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2477
2538
|
"img",
|
|
2478
2539
|
{
|
|
2479
2540
|
alt: altText,
|
|
@@ -2500,7 +2561,7 @@ function DynamicFormField({
|
|
|
2500
2561
|
}
|
|
2501
2562
|
|
|
2502
2563
|
// src/molecules/dynamic-form.tsx
|
|
2503
|
-
var
|
|
2564
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2504
2565
|
function scrollToFirstError(errors, _fields) {
|
|
2505
2566
|
const firstErrorFieldName = Object.keys(errors)[0];
|
|
2506
2567
|
if (!firstErrorFieldName) return;
|
|
@@ -2587,7 +2648,7 @@ function DynamicFormRoot({
|
|
|
2587
2648
|
};
|
|
2588
2649
|
}
|
|
2589
2650
|
}, [formik.submitCount, formik.errors, fields]);
|
|
2590
|
-
return /* @__PURE__ */ (0,
|
|
2651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2591
2652
|
DynamicFormProvider,
|
|
2592
2653
|
{
|
|
2593
2654
|
fields,
|
|
@@ -2604,15 +2665,15 @@ function DynamicFormFieldList({
|
|
|
2604
2665
|
}) {
|
|
2605
2666
|
const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
|
|
2606
2667
|
const fields = fieldsProp || fieldsFromContext;
|
|
2607
|
-
return /* @__PURE__ */ (0,
|
|
2668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: fields.map((field) => {
|
|
2608
2669
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
2609
|
-
return /* @__PURE__ */ (0,
|
|
2670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2610
2671
|
import_themes19.Box,
|
|
2611
2672
|
{
|
|
2612
2673
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
2613
2674
|
"data-field-name": field.name,
|
|
2614
2675
|
mb: "2",
|
|
2615
|
-
children: /* @__PURE__ */ (0,
|
|
2676
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2616
2677
|
Form.FormItem,
|
|
2617
2678
|
{
|
|
2618
2679
|
errorMessage,
|
|
@@ -2621,8 +2682,8 @@ function DynamicFormFieldList({
|
|
|
2621
2682
|
name: field.name,
|
|
2622
2683
|
required: field.required,
|
|
2623
2684
|
children: [
|
|
2624
|
-
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0,
|
|
2625
|
-
/* @__PURE__ */ (0,
|
|
2685
|
+
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typo, { variant: "caption", children: field.description }) : null,
|
|
2686
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DynamicFormField, { field })
|
|
2626
2687
|
]
|
|
2627
2688
|
}
|
|
2628
2689
|
)
|
|
@@ -2719,18 +2780,18 @@ function createYupValidation(field, validation) {
|
|
|
2719
2780
|
}
|
|
2720
2781
|
|
|
2721
2782
|
// src/molecules/dynamic-form-editor-preview-panel.tsx
|
|
2722
|
-
var
|
|
2783
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2723
2784
|
function DynamicFormEditorPreviewPanel(props) {
|
|
2724
2785
|
const { show, fields } = props;
|
|
2725
2786
|
if (!show) return null;
|
|
2726
|
-
return /* @__PURE__ */ (0,
|
|
2727
|
-
/* @__PURE__ */ (0,
|
|
2728
|
-
/* @__PURE__ */ (0,
|
|
2787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Card, { style: { width: 420, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", children: [
|
|
2788
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typo, { variant: "body", children: "\uD504\uB9AC\uBDF0" }),
|
|
2789
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DynamicForm.Root, { fields, onSubmit: () => void 0, readonly: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DynamicForm.FieldList, { labelVariant: "body" }) })
|
|
2729
2790
|
] }) });
|
|
2730
2791
|
}
|
|
2731
2792
|
|
|
2732
2793
|
// src/molecules/dynamic-form-editor.tsx
|
|
2733
|
-
var
|
|
2794
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2734
2795
|
function getInitialSchema(value, defaultValue) {
|
|
2735
2796
|
if (value !== void 0) return normalizeSchema(value);
|
|
2736
2797
|
return normalizeSchema(defaultValue);
|
|
@@ -2880,8 +2941,8 @@ function DynamicFormEditor(props) {
|
|
|
2880
2941
|
void result;
|
|
2881
2942
|
}, [effectiveSchema, onSave]);
|
|
2882
2943
|
const disableSave = readonly || !onSave || hasErrorIssues(issues);
|
|
2883
|
-
return /* @__PURE__ */ (0,
|
|
2884
|
-
/* @__PURE__ */ (0,
|
|
2944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes2.Flex, { align: "start", gap: "4", style: { width: "100%" }, children: [
|
|
2945
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2885
2946
|
DynamicFormEditorFieldListPanel,
|
|
2886
2947
|
{
|
|
2887
2948
|
fieldTypes,
|
|
@@ -2893,8 +2954,8 @@ function DynamicFormEditor(props) {
|
|
|
2893
2954
|
selectedFieldName
|
|
2894
2955
|
}
|
|
2895
2956
|
),
|
|
2896
|
-
/* @__PURE__ */ (0,
|
|
2897
|
-
/* @__PURE__ */ (0,
|
|
2957
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes2.Flex, { direction: "column", gap: "3", style: { flex: 1, minWidth: 520 }, children: [
|
|
2958
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2898
2959
|
DynamicFormEditorFieldEditorPanel,
|
|
2899
2960
|
{
|
|
2900
2961
|
field: selected.field,
|
|
@@ -2909,13 +2970,13 @@ function DynamicFormEditor(props) {
|
|
|
2909
2970
|
readonly
|
|
2910
2971
|
}
|
|
2911
2972
|
),
|
|
2912
|
-
/* @__PURE__ */ (0,
|
|
2913
|
-
onSave || onCancel ? /* @__PURE__ */ (0,
|
|
2914
|
-
onCancel ? /* @__PURE__ */ (0,
|
|
2915
|
-
onSave ? /* @__PURE__ */ (0,
|
|
2973
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DynamicFormEditorIssuesPanel, { issues }),
|
|
2974
|
+
onSave || onCancel ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes2.Flex, { gap: "2", justify: "end", children: [
|
|
2975
|
+
onCancel ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { disabled: readonly, onClick: onCancel, variant: "soft", children: "\uCDE8\uC18C" }) : null,
|
|
2976
|
+
onSave ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { disabled: disableSave, onClick: handleSave, children: "\uC800\uC7A5" }) : null
|
|
2916
2977
|
] }) : null
|
|
2917
2978
|
] }),
|
|
2918
|
-
/* @__PURE__ */ (0,
|
|
2979
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DynamicFormEditorPreviewPanel, { fields: effectiveSchema.fields, show: showPreview })
|
|
2919
2980
|
] });
|
|
2920
2981
|
}
|
|
2921
2982
|
// Annotate the CommonJS export names for ESM import in node:
|