@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
package/dist/molecules/index.cjs
CHANGED
|
@@ -651,6 +651,67 @@ var CircleFileIcon = React14.forwardRef(
|
|
|
651
651
|
);
|
|
652
652
|
CircleFileIcon.displayName = "CircleFileIcon";
|
|
653
653
|
|
|
654
|
+
// src/icons/headset.tsx
|
|
655
|
+
var React15 = __toESM(require("react"), 1);
|
|
656
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
657
|
+
var HeadsetIcon = React15.forwardRef(
|
|
658
|
+
(_a, forwardedRef) => {
|
|
659
|
+
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
661
|
+
"svg",
|
|
662
|
+
__spreadProps(__spreadValues({
|
|
663
|
+
fill: "none",
|
|
664
|
+
height: "16",
|
|
665
|
+
viewBox: "0 0 16 16",
|
|
666
|
+
width: "16",
|
|
667
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
668
|
+
}, props), {
|
|
669
|
+
ref: forwardedRef,
|
|
670
|
+
children: [
|
|
671
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
672
|
+
"path",
|
|
673
|
+
{
|
|
674
|
+
d: "M3.25 6C3.25 3.75 5.5 2 8 2C10.5 2 12.75 3.75 12.75 6",
|
|
675
|
+
stroke: color,
|
|
676
|
+
strokeLinecap: "round",
|
|
677
|
+
strokeWidth: "1.2"
|
|
678
|
+
}
|
|
679
|
+
),
|
|
680
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
681
|
+
"path",
|
|
682
|
+
{
|
|
683
|
+
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",
|
|
684
|
+
stroke: color,
|
|
685
|
+
strokeLinejoin: "round",
|
|
686
|
+
strokeWidth: "1.2"
|
|
687
|
+
}
|
|
688
|
+
),
|
|
689
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
690
|
+
"path",
|
|
691
|
+
{
|
|
692
|
+
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",
|
|
693
|
+
stroke: color,
|
|
694
|
+
strokeLinejoin: "round",
|
|
695
|
+
strokeWidth: "1.2"
|
|
696
|
+
}
|
|
697
|
+
),
|
|
698
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
699
|
+
"path",
|
|
700
|
+
{
|
|
701
|
+
d: "M4 12.25V13.25C4 13.94 4.56 14.5 5.25 14.5H8",
|
|
702
|
+
stroke: color,
|
|
703
|
+
strokeLinecap: "round",
|
|
704
|
+
strokeLinejoin: "round",
|
|
705
|
+
strokeWidth: "1.2"
|
|
706
|
+
}
|
|
707
|
+
)
|
|
708
|
+
]
|
|
709
|
+
})
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
);
|
|
713
|
+
HeadsetIcon.displayName = "HeadsetIcon";
|
|
714
|
+
|
|
654
715
|
// src/atoms/icon-button.tsx
|
|
655
716
|
var import_react = require("react");
|
|
656
717
|
var import_clsx = require("clsx");
|
|
@@ -688,7 +749,7 @@ var convertSize = (size) => {
|
|
|
688
749
|
};
|
|
689
750
|
|
|
690
751
|
// src/atoms/icon-button.tsx
|
|
691
|
-
var
|
|
752
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
692
753
|
var IconButton = (0, import_react.forwardRef)(
|
|
693
754
|
(props, ref) => {
|
|
694
755
|
const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
|
|
@@ -702,7 +763,7 @@ var IconButton = (0, import_react.forwardRef)(
|
|
|
702
763
|
const className = (0, import_react.useMemo)(() => {
|
|
703
764
|
return (0, import_clsx.clsx)(props.className, { transparent: variant === "transparent" });
|
|
704
765
|
}, [props.className, variant]);
|
|
705
|
-
return /* @__PURE__ */ (0,
|
|
766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
706
767
|
import_themes2.IconButton,
|
|
707
768
|
__spreadProps(__spreadValues({
|
|
708
769
|
style,
|
|
@@ -741,7 +802,7 @@ var mapWithResponsive = (args) => {
|
|
|
741
802
|
};
|
|
742
803
|
|
|
743
804
|
// src/atoms/typo.tsx
|
|
744
|
-
var
|
|
805
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
745
806
|
var Typo = (0, import_react2.forwardRef)(
|
|
746
807
|
(props, ref) => {
|
|
747
808
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
@@ -763,13 +824,13 @@ var Typo = (0, import_react2.forwardRef)(
|
|
|
763
824
|
}
|
|
764
825
|
});
|
|
765
826
|
}, [size, variant]);
|
|
766
|
-
return /* @__PURE__ */ (0,
|
|
827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes3.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
|
|
767
828
|
}
|
|
768
829
|
);
|
|
769
830
|
Typo.displayName = "Typo";
|
|
770
831
|
|
|
771
832
|
// src/atoms/pagination.tsx
|
|
772
|
-
var
|
|
833
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
773
834
|
function Pagination(props) {
|
|
774
835
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
775
836
|
const isControlled = props.page !== void 0;
|
|
@@ -833,19 +894,19 @@ function Pagination(props) {
|
|
|
833
894
|
size: "large",
|
|
834
895
|
style: { borderRadius: "50%" }
|
|
835
896
|
};
|
|
836
|
-
return /* @__PURE__ */ (0,
|
|
837
|
-
/* @__PURE__ */ (0,
|
|
897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes.Flex, { align: "center", className: "tipp-pagination", children: [
|
|
898
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
838
899
|
IconButton,
|
|
839
900
|
__spreadProps(__spreadValues({
|
|
840
901
|
disabled: !doublePrev,
|
|
841
902
|
onClick: onClickDoublePrev
|
|
842
903
|
}, moveButtonProps), {
|
|
843
|
-
children: /* @__PURE__ */ (0,
|
|
904
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
844
905
|
})
|
|
845
906
|
),
|
|
846
|
-
/* @__PURE__ */ (0,
|
|
847
|
-
/* @__PURE__ */ (0,
|
|
848
|
-
return /* @__PURE__ */ (0,
|
|
907
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
908
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
849
910
|
"button",
|
|
850
911
|
{
|
|
851
912
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -853,19 +914,19 @@ function Pagination(props) {
|
|
|
853
914
|
goToPage(item);
|
|
854
915
|
},
|
|
855
916
|
type: "button",
|
|
856
|
-
children: /* @__PURE__ */ (0,
|
|
917
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typo, { variant: "body", children: item })
|
|
857
918
|
},
|
|
858
919
|
item
|
|
859
920
|
);
|
|
860
921
|
}) }),
|
|
861
|
-
/* @__PURE__ */ (0,
|
|
862
|
-
/* @__PURE__ */ (0,
|
|
922
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
863
924
|
IconButton,
|
|
864
925
|
__spreadProps(__spreadValues({
|
|
865
926
|
disabled: !doubleNext,
|
|
866
927
|
onClick: onClickDoubleNext
|
|
867
928
|
}, moveButtonProps), {
|
|
868
|
-
children: /* @__PURE__ */ (0,
|
|
929
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
869
930
|
})
|
|
870
931
|
)
|
|
871
932
|
] });
|
|
@@ -880,7 +941,7 @@ var import_react5 = require("react");
|
|
|
880
941
|
|
|
881
942
|
// src/atoms/collapse.tsx
|
|
882
943
|
var import_react4 = require("react");
|
|
883
|
-
var
|
|
944
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
884
945
|
function Collapse(props) {
|
|
885
946
|
const { children, closedHeight = "0" } = props;
|
|
886
947
|
const [open, setOpen] = (0, import_react4.useState)(() => {
|
|
@@ -895,11 +956,11 @@ function Collapse(props) {
|
|
|
895
956
|
if (!ref.current) return;
|
|
896
957
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
897
958
|
}, [closedHeight, open]);
|
|
898
|
-
return /* @__PURE__ */ (0,
|
|
959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "tipp-collapse", ref, children });
|
|
899
960
|
}
|
|
900
961
|
|
|
901
962
|
// src/molecules/expand-table/row.tsx
|
|
902
|
-
var
|
|
963
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
903
964
|
function Row(props) {
|
|
904
965
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
905
966
|
const [open, setOpen] = (0, import_react5.useState)(false);
|
|
@@ -918,8 +979,8 @@ function Row(props) {
|
|
|
918
979
|
}
|
|
919
980
|
return baseCls.join(" ");
|
|
920
981
|
}, [ExpandComp, props.onRowClick]);
|
|
921
|
-
return /* @__PURE__ */ (0,
|
|
922
|
-
/* @__PURE__ */ (0,
|
|
982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: rowClassName, children: [
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
923
984
|
"button",
|
|
924
985
|
{
|
|
925
986
|
className: "tr",
|
|
@@ -932,7 +993,7 @@ function Row(props) {
|
|
|
932
993
|
var _a, _b, _c;
|
|
933
994
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
934
995
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
935
|
-
return /* @__PURE__ */ (0,
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
936
997
|
"div",
|
|
937
998
|
{
|
|
938
999
|
className: "td",
|
|
@@ -943,7 +1004,7 @@ function Row(props) {
|
|
|
943
1004
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
944
1005
|
children: [
|
|
945
1006
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
946
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1007
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
947
1008
|
cell.column.columnDef.meta.OpenBtn,
|
|
948
1009
|
{
|
|
949
1010
|
data: row.original,
|
|
@@ -959,12 +1020,12 @@ function Row(props) {
|
|
|
959
1020
|
},
|
|
960
1021
|
`tr_${row.id}`
|
|
961
1022
|
),
|
|
962
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1023
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandComp, { row }) }) }) : null
|
|
963
1024
|
] }, `tr-wrapper_${row.id}`);
|
|
964
1025
|
}
|
|
965
1026
|
|
|
966
1027
|
// src/molecules/expand-table/index.tsx
|
|
967
|
-
var
|
|
1028
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
968
1029
|
var sortButtonColorMapper = {
|
|
969
1030
|
card: {
|
|
970
1031
|
selected: "var(--iris-10)",
|
|
@@ -1044,7 +1105,7 @@ function ExpandTable(props) {
|
|
|
1044
1105
|
const helpCompRender = (0, import_react6.useCallback)(
|
|
1045
1106
|
(rowLength) => {
|
|
1046
1107
|
if (isLoading) {
|
|
1047
|
-
return /* @__PURE__ */ (0,
|
|
1108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1048
1109
|
import_themes.Flex,
|
|
1049
1110
|
{
|
|
1050
1111
|
align: "center",
|
|
@@ -1052,12 +1113,12 @@ function ExpandTable(props) {
|
|
|
1052
1113
|
justify: "center",
|
|
1053
1114
|
p: "5",
|
|
1054
1115
|
width: "100%",
|
|
1055
|
-
children: /* @__PURE__ */ (0,
|
|
1116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes4.Spinner, {})
|
|
1056
1117
|
}
|
|
1057
1118
|
);
|
|
1058
1119
|
}
|
|
1059
1120
|
if (rowLength === 0) {
|
|
1060
|
-
return /* @__PURE__ */ (0,
|
|
1121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
1061
1122
|
}
|
|
1062
1123
|
return null;
|
|
1063
1124
|
},
|
|
@@ -1067,9 +1128,9 @@ function ExpandTable(props) {
|
|
|
1067
1128
|
if (!data) return 0;
|
|
1068
1129
|
return Math.ceil(data.length / pageSize);
|
|
1069
1130
|
}, [data, pageSize]);
|
|
1070
|
-
return /* @__PURE__ */ (0,
|
|
1071
|
-
/* @__PURE__ */ (0,
|
|
1072
|
-
/* @__PURE__ */ (0,
|
|
1131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: `expand-table-wrapper ${variant}`, children: [
|
|
1132
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1073
1134
|
"div",
|
|
1074
1135
|
{
|
|
1075
1136
|
className: "tr",
|
|
@@ -1080,36 +1141,36 @@ function ExpandTable(props) {
|
|
|
1080
1141
|
const sortedState = header.column.getIsSorted();
|
|
1081
1142
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1082
1143
|
if (sortable) {
|
|
1083
|
-
return /* @__PURE__ */ (0,
|
|
1144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1084
1145
|
"button",
|
|
1085
1146
|
{
|
|
1086
1147
|
onClick: header.column.getToggleSortingHandler(),
|
|
1087
1148
|
style: { cursor: "pointer" },
|
|
1088
1149
|
type: "button",
|
|
1089
1150
|
children: [
|
|
1090
|
-
/* @__PURE__ */ (0,
|
|
1151
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1091
1152
|
header.column.columnDef.header,
|
|
1092
1153
|
header.getContext()
|
|
1093
1154
|
) }),
|
|
1094
|
-
/* @__PURE__ */ (0,
|
|
1155
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1095
1156
|
import_themes.Flex,
|
|
1096
1157
|
{
|
|
1097
1158
|
direction: "column",
|
|
1098
1159
|
style: { marginLeft: "var(--space-2)" },
|
|
1099
1160
|
children: [
|
|
1100
|
-
sortedState === false && /* @__PURE__ */ (0,
|
|
1161
|
+
sortedState === false && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1101
1162
|
TriangleArrowDownIcon,
|
|
1102
1163
|
{
|
|
1103
1164
|
color: sortButtonColorMapper[variant].unselected
|
|
1104
1165
|
}
|
|
1105
1166
|
),
|
|
1106
|
-
sortedState === "asc" && /* @__PURE__ */ (0,
|
|
1167
|
+
sortedState === "asc" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1107
1168
|
TriangleArrowUpIcon,
|
|
1108
1169
|
{
|
|
1109
1170
|
color: sortButtonColorMapper[variant].selected
|
|
1110
1171
|
}
|
|
1111
1172
|
),
|
|
1112
|
-
sortedState === "desc" && /* @__PURE__ */ (0,
|
|
1173
|
+
sortedState === "desc" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1113
1174
|
TriangleArrowDownIcon,
|
|
1114
1175
|
{
|
|
1115
1176
|
color: sortButtonColorMapper[variant].selected
|
|
@@ -1122,7 +1183,7 @@ function ExpandTable(props) {
|
|
|
1122
1183
|
}
|
|
1123
1184
|
) }, header.id);
|
|
1124
1185
|
}
|
|
1125
|
-
return /* @__PURE__ */ (0,
|
|
1186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1126
1187
|
header.column.columnDef.header,
|
|
1127
1188
|
header.getContext()
|
|
1128
1189
|
) }) }, header.id);
|
|
@@ -1130,8 +1191,8 @@ function ExpandTable(props) {
|
|
|
1130
1191
|
},
|
|
1131
1192
|
headerGroup.id
|
|
1132
1193
|
)) }),
|
|
1133
|
-
/* @__PURE__ */ (0,
|
|
1134
|
-
return /* @__PURE__ */ (0,
|
|
1194
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes5.ScrollArea, { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1135
1196
|
Row,
|
|
1136
1197
|
{
|
|
1137
1198
|
ExpandComp,
|
|
@@ -1146,7 +1207,7 @@ function ExpandTable(props) {
|
|
|
1146
1207
|
);
|
|
1147
1208
|
}) })
|
|
1148
1209
|
] }),
|
|
1149
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
1210
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes.Flex, { justify: "end", pt: "4", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1150
1211
|
Pagination,
|
|
1151
1212
|
{
|
|
1152
1213
|
count: pageCount,
|
|
@@ -1195,7 +1256,7 @@ var convertSize2 = (size) => {
|
|
|
1195
1256
|
};
|
|
1196
1257
|
|
|
1197
1258
|
// src/atoms/button.tsx
|
|
1198
|
-
var
|
|
1259
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1199
1260
|
var Button = (0, import_react7.forwardRef)(
|
|
1200
1261
|
(props, ref) => {
|
|
1201
1262
|
const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
|
|
@@ -1209,7 +1270,7 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1209
1270
|
const className = (0, import_react7.useMemo)(() => {
|
|
1210
1271
|
return (0, import_clsx2.clsx)(props.className, { transparent: variant === "transparent" });
|
|
1211
1272
|
}, [props.className, variant]);
|
|
1212
|
-
return /* @__PURE__ */ (0,
|
|
1273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1213
1274
|
import_themes6.Button,
|
|
1214
1275
|
__spreadProps(__spreadValues({
|
|
1215
1276
|
style,
|
|
@@ -1226,14 +1287,14 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1226
1287
|
Button.displayName = "Button";
|
|
1227
1288
|
|
|
1228
1289
|
// src/molecules/navigation.tsx
|
|
1229
|
-
var
|
|
1290
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1230
1291
|
function Navigation({
|
|
1231
1292
|
items,
|
|
1232
1293
|
fontColor,
|
|
1233
1294
|
backgroundColor,
|
|
1234
1295
|
activeKey
|
|
1235
1296
|
}) {
|
|
1236
|
-
return /* @__PURE__ */ (0,
|
|
1297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1237
1298
|
import_themes.Flex,
|
|
1238
1299
|
{
|
|
1239
1300
|
direction: "column",
|
|
@@ -1245,13 +1306,13 @@ function Navigation({
|
|
|
1245
1306
|
},
|
|
1246
1307
|
children: items == null ? void 0 : items.map((item) => {
|
|
1247
1308
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1248
|
-
return /* @__PURE__ */ (0,
|
|
1249
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes.Flex, { direction: "column", onClick, children: [
|
|
1310
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1250
1311
|
icon,
|
|
1251
|
-
/* @__PURE__ */ (0,
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1252
1313
|
] }),
|
|
1253
1314
|
children == null ? void 0 : children.map((menu) => {
|
|
1254
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1315
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1255
1316
|
Button,
|
|
1256
1317
|
{
|
|
1257
1318
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1289,7 +1350,7 @@ var import_themes8 = require("@radix-ui/themes");
|
|
|
1289
1350
|
var import_themes9 = require("@radix-ui/themes");
|
|
1290
1351
|
var import_react8 = require("react");
|
|
1291
1352
|
var import_themes10 = require("@radix-ui/themes");
|
|
1292
|
-
var
|
|
1353
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1293
1354
|
var mapVariant = (variant) => {
|
|
1294
1355
|
switch (variant) {
|
|
1295
1356
|
case "heading1":
|
|
@@ -1314,11 +1375,11 @@ function Heading2(props) {
|
|
|
1314
1375
|
mapFn: mapVariant
|
|
1315
1376
|
}) : size;
|
|
1316
1377
|
}, [size, variant]);
|
|
1317
|
-
return /* @__PURE__ */ (0,
|
|
1378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes9.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
1318
1379
|
}
|
|
1319
1380
|
|
|
1320
1381
|
// src/molecules/date-picker/index.tsx
|
|
1321
|
-
var
|
|
1382
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1322
1383
|
var DatePicker = (0, import_react9.forwardRef)(
|
|
1323
1384
|
(props, ref) => {
|
|
1324
1385
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
@@ -1349,7 +1410,7 @@ var DatePicker = (0, import_react9.forwardRef)(
|
|
|
1349
1410
|
setIsMonthDropdownOpen
|
|
1350
1411
|
}));
|
|
1351
1412
|
}, [isMonthDropdownOpen, isYearDropdownOpen, props]);
|
|
1352
|
-
return /* @__PURE__ */ (0,
|
|
1413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1353
1414
|
import_react_datepicker.default,
|
|
1354
1415
|
__spreadProps(__spreadValues({
|
|
1355
1416
|
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
@@ -1397,19 +1458,19 @@ function DropdownSelector({
|
|
|
1397
1458
|
});
|
|
1398
1459
|
}
|
|
1399
1460
|
}, [isOpen]);
|
|
1400
|
-
return /* @__PURE__ */ (0,
|
|
1401
|
-
/* @__PURE__ */ (0,
|
|
1461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes8.Popover.Root, { modal: true, onOpenChange, open: isOpen, children: [
|
|
1462
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes8.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button, { className: "react-datepicker_dropdown_header", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1402
1463
|
selectedValue,
|
|
1403
1464
|
suffix
|
|
1404
1465
|
] }) }) }),
|
|
1405
|
-
/* @__PURE__ */ (0,
|
|
1466
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes8.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1406
1467
|
import_themes7.Box,
|
|
1407
1468
|
{
|
|
1408
1469
|
maxHeight: "200px",
|
|
1409
1470
|
overflowY: "auto",
|
|
1410
1471
|
ref: scrollContainerRef,
|
|
1411
1472
|
style: { scrollbarWidth: "none" },
|
|
1412
|
-
children: /* @__PURE__ */ (0,
|
|
1473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes.Flex, { direction: "column", gap: "1", children: options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1413
1474
|
Button,
|
|
1414
1475
|
{
|
|
1415
1476
|
className: "react-datepicker_dropdown_item",
|
|
@@ -1423,7 +1484,7 @@ function DropdownSelector({
|
|
|
1423
1484
|
e.preventDefault();
|
|
1424
1485
|
},
|
|
1425
1486
|
variant: "transparent",
|
|
1426
|
-
children: /* @__PURE__ */ (0,
|
|
1487
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
|
|
1427
1488
|
item,
|
|
1428
1489
|
suffix
|
|
1429
1490
|
] })
|
|
@@ -1454,8 +1515,8 @@ var getRenderCustomHeader = (props) => {
|
|
|
1454
1515
|
} = props;
|
|
1455
1516
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1456
1517
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1457
|
-
return /* @__PURE__ */ (0,
|
|
1458
|
-
/* @__PURE__ */ (0,
|
|
1518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes.Flex, { align: "center", justify: "between", pl: "2", pr: "2", children: [
|
|
1519
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1459
1520
|
IconButton,
|
|
1460
1521
|
{
|
|
1461
1522
|
className: "react-datepicker_dropdown_header",
|
|
@@ -1463,11 +1524,11 @@ var getRenderCustomHeader = (props) => {
|
|
|
1463
1524
|
onClick: decreaseMonth,
|
|
1464
1525
|
type: "button",
|
|
1465
1526
|
variant: "ghost",
|
|
1466
|
-
children: /* @__PURE__ */ (0,
|
|
1527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons.ChevronLeftIcon, {})
|
|
1467
1528
|
}
|
|
1468
1529
|
),
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1470
|
-
/* @__PURE__ */ (0,
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes.Flex, { gap: "3", children: [
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1471
1532
|
DropdownSelector,
|
|
1472
1533
|
{
|
|
1473
1534
|
isOpen: isYearDropdownOpen,
|
|
@@ -1481,7 +1542,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1481
1542
|
suffix: "\uB144"
|
|
1482
1543
|
}
|
|
1483
1544
|
),
|
|
1484
|
-
/* @__PURE__ */ (0,
|
|
1545
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1485
1546
|
DropdownSelector,
|
|
1486
1547
|
{
|
|
1487
1548
|
isOpen: isMonthDropdownOpen,
|
|
@@ -1496,7 +1557,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1496
1557
|
}
|
|
1497
1558
|
)
|
|
1498
1559
|
] }),
|
|
1499
|
-
/* @__PURE__ */ (0,
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1500
1561
|
IconButton,
|
|
1501
1562
|
{
|
|
1502
1563
|
className: "react-datepicker_dropdown_header",
|
|
@@ -1504,7 +1565,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1504
1565
|
onClick: increaseMonth,
|
|
1505
1566
|
type: "button",
|
|
1506
1567
|
variant: "ghost",
|
|
1507
|
-
children: /* @__PURE__ */ (0,
|
|
1568
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons.ChevronRightIcon, {})
|
|
1508
1569
|
}
|
|
1509
1570
|
)
|
|
1510
1571
|
] });
|
|
@@ -1515,7 +1576,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1515
1576
|
// src/molecules/dot-navigation.tsx
|
|
1516
1577
|
var import_react10 = require("react");
|
|
1517
1578
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
1518
|
-
var
|
|
1579
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1519
1580
|
function DotNavigation(props) {
|
|
1520
1581
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1521
1582
|
const [currentDot, setCurrentDot] = (0, import_react10.useState)(
|
|
@@ -1541,9 +1602,9 @@ function DotNavigation(props) {
|
|
|
1541
1602
|
if (typeof dotIndex === "undefined") return;
|
|
1542
1603
|
setCurrentDot(dotIndex);
|
|
1543
1604
|
}, [dotIndex]);
|
|
1544
|
-
return /* @__PURE__ */ (0,
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1545
1606
|
const isSelected = currentDot === index;
|
|
1546
|
-
return /* @__PURE__ */ (0,
|
|
1607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1547
1608
|
import_react_icons2.DotFilledIcon,
|
|
1548
1609
|
{
|
|
1549
1610
|
height: "24px",
|
|
@@ -1568,7 +1629,7 @@ var import_themes12 = require("@radix-ui/themes");
|
|
|
1568
1629
|
// src/atoms/avatar.tsx
|
|
1569
1630
|
var import_themes11 = require("@radix-ui/themes");
|
|
1570
1631
|
var import_react11 = require("react");
|
|
1571
|
-
var
|
|
1632
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1572
1633
|
var Avatar = (0, import_react11.forwardRef)(
|
|
1573
1634
|
(props, ref) => {
|
|
1574
1635
|
const _a = props, { children, size, variant = "soft" } = _a, rest = __objRest(_a, ["children", "size", "variant"]);
|
|
@@ -1599,13 +1660,13 @@ var Avatar = (0, import_react11.forwardRef)(
|
|
|
1599
1660
|
return map;
|
|
1600
1661
|
}
|
|
1601
1662
|
}, [getOriginalSize, size]);
|
|
1602
|
-
return /* @__PURE__ */ (0,
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes11.Avatar, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, variant, children }));
|
|
1603
1664
|
}
|
|
1604
1665
|
);
|
|
1605
1666
|
Avatar.displayName = "Avatar";
|
|
1606
1667
|
|
|
1607
1668
|
// src/molecules/stepper.tsx
|
|
1608
|
-
var
|
|
1669
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1609
1670
|
var StepContext = (0, import_react12.createContext)({
|
|
1610
1671
|
active: false,
|
|
1611
1672
|
completed: false,
|
|
@@ -1620,7 +1681,7 @@ function Root(props) {
|
|
|
1620
1681
|
maxWidth,
|
|
1621
1682
|
direction = "vertical"
|
|
1622
1683
|
} = props;
|
|
1623
|
-
return /* @__PURE__ */ (0,
|
|
1684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1624
1685
|
import_themes.Flex,
|
|
1625
1686
|
{
|
|
1626
1687
|
gap: "3",
|
|
@@ -1630,7 +1691,7 @@ function Root(props) {
|
|
|
1630
1691
|
maxWidth
|
|
1631
1692
|
},
|
|
1632
1693
|
children: import_react12.Children.map(children, (child, index) => {
|
|
1633
|
-
return /* @__PURE__ */ (0,
|
|
1694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1634
1695
|
StepContext.Provider,
|
|
1635
1696
|
{
|
|
1636
1697
|
value: {
|
|
@@ -1654,7 +1715,7 @@ function Step(props) {
|
|
|
1654
1715
|
index,
|
|
1655
1716
|
direction = "vertical"
|
|
1656
1717
|
} = (0, import_react12.useContext)(StepContext);
|
|
1657
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
1718
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1658
1719
|
import_themes12.Separator,
|
|
1659
1720
|
{
|
|
1660
1721
|
style: {
|
|
@@ -1674,7 +1735,7 @@ function Step(props) {
|
|
|
1674
1735
|
}
|
|
1675
1736
|
return IncompleteStep;
|
|
1676
1737
|
}, [completed, active]);
|
|
1677
|
-
return /* @__PURE__ */ (0,
|
|
1738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1678
1739
|
import_themes.Flex,
|
|
1679
1740
|
{
|
|
1680
1741
|
align: "center",
|
|
@@ -1684,7 +1745,7 @@ function Step(props) {
|
|
|
1684
1745
|
style: { flex: 1 },
|
|
1685
1746
|
children: [
|
|
1686
1747
|
connector,
|
|
1687
|
-
/* @__PURE__ */ (0,
|
|
1748
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InnerStep, { Icon, children })
|
|
1688
1749
|
]
|
|
1689
1750
|
}
|
|
1690
1751
|
);
|
|
@@ -1695,11 +1756,11 @@ function CompleteStep(props) {
|
|
|
1695
1756
|
const background = "var(--accent-a4)";
|
|
1696
1757
|
const border = "1px solid var(--accent-7)";
|
|
1697
1758
|
const color = "var(--accent-contrast)";
|
|
1698
|
-
return /* @__PURE__ */ (0,
|
|
1699
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1760
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1700
1761
|
Avatar,
|
|
1701
1762
|
{
|
|
1702
|
-
fallback: /* @__PURE__ */ (0,
|
|
1763
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react_icons.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
1703
1764
|
radius: "full",
|
|
1704
1765
|
size: "medium",
|
|
1705
1766
|
style: {
|
|
@@ -1708,7 +1769,7 @@ function CompleteStep(props) {
|
|
|
1708
1769
|
}
|
|
1709
1770
|
}
|
|
1710
1771
|
),
|
|
1711
|
-
/* @__PURE__ */ (0,
|
|
1772
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
1712
1773
|
] });
|
|
1713
1774
|
}
|
|
1714
1775
|
function IncompleteStep(props) {
|
|
@@ -1716,11 +1777,11 @@ function IncompleteStep(props) {
|
|
|
1716
1777
|
const { completed, active, index } = (0, import_react12.useContext)(StepContext);
|
|
1717
1778
|
const background = "var(--gray-5)";
|
|
1718
1779
|
const color = "var(--gray-a11)";
|
|
1719
|
-
return /* @__PURE__ */ (0,
|
|
1720
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1781
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1721
1782
|
Avatar,
|
|
1722
1783
|
{
|
|
1723
|
-
fallback: /* @__PURE__ */ (0,
|
|
1784
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
1724
1785
|
radius: "full",
|
|
1725
1786
|
size: "medium",
|
|
1726
1787
|
style: {
|
|
@@ -1728,7 +1789,7 @@ function IncompleteStep(props) {
|
|
|
1728
1789
|
}
|
|
1729
1790
|
}
|
|
1730
1791
|
),
|
|
1731
|
-
/* @__PURE__ */ (0,
|
|
1792
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
1732
1793
|
] });
|
|
1733
1794
|
}
|
|
1734
1795
|
function ActiveStep(props) {
|
|
@@ -1736,17 +1797,17 @@ function ActiveStep(props) {
|
|
|
1736
1797
|
const { completed, active, index } = (0, import_react12.useContext)(StepContext);
|
|
1737
1798
|
const background = "var(--accent-10)";
|
|
1738
1799
|
const color = "var(--accent-contrast)";
|
|
1739
|
-
return /* @__PURE__ */ (0,
|
|
1740
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1801
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1741
1802
|
Avatar,
|
|
1742
1803
|
{
|
|
1743
|
-
fallback: /* @__PURE__ */ (0,
|
|
1804
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
1744
1805
|
radius: "full",
|
|
1745
1806
|
size: "medium",
|
|
1746
1807
|
style: { background }
|
|
1747
1808
|
}
|
|
1748
1809
|
),
|
|
1749
|
-
/* @__PURE__ */ (0,
|
|
1810
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
1750
1811
|
] });
|
|
1751
1812
|
}
|
|
1752
1813
|
var Stepper = {
|
|
@@ -1761,7 +1822,7 @@ var import_react_icons3 = require("@radix-ui/react-icons");
|
|
|
1761
1822
|
// src/atoms/auto-sizing-input.tsx
|
|
1762
1823
|
var import_themes13 = require("@radix-ui/themes");
|
|
1763
1824
|
var import_react13 = require("react");
|
|
1764
|
-
var
|
|
1825
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1765
1826
|
var useTextWidth = (text, font) => {
|
|
1766
1827
|
const [textWidth, setTextWidth] = (0, import_react13.useState)(0);
|
|
1767
1828
|
(0, import_react13.useEffect)(() => {
|
|
@@ -1861,7 +1922,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1861
1922
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1862
1923
|
}
|
|
1863
1924
|
}, [inputRef]);
|
|
1864
|
-
return /* @__PURE__ */ (0,
|
|
1925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1865
1926
|
import_themes13.Box,
|
|
1866
1927
|
{
|
|
1867
1928
|
className: "auto-sizing-input wrapper",
|
|
@@ -1869,7 +1930,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1869
1930
|
minWidth,
|
|
1870
1931
|
onClick,
|
|
1871
1932
|
style: { width: dynamicWidth },
|
|
1872
|
-
children: /* @__PURE__ */ (0,
|
|
1933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("input", __spreadValues({ onChange: handleChange, ref: inputRef, value }, rest))
|
|
1873
1934
|
}
|
|
1874
1935
|
);
|
|
1875
1936
|
}
|
|
@@ -1879,7 +1940,7 @@ AutoSizingInput.displayName = "AutoSizingInput";
|
|
|
1879
1940
|
// src/atoms/badge.tsx
|
|
1880
1941
|
var import_themes14 = require("@radix-ui/themes");
|
|
1881
1942
|
var import_react14 = require("react");
|
|
1882
|
-
var
|
|
1943
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1883
1944
|
var Badge = (0, import_react14.forwardRef)(
|
|
1884
1945
|
(props, ref) => {
|
|
1885
1946
|
const _a = props, { size = "small", color = "accent" } = _a, rest = __objRest(_a, ["size", "color"]);
|
|
@@ -1908,7 +1969,7 @@ var Badge = (0, import_react14.forwardRef)(
|
|
|
1908
1969
|
return void 0;
|
|
1909
1970
|
}
|
|
1910
1971
|
}, [color]);
|
|
1911
|
-
return /* @__PURE__ */ (0,
|
|
1972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes14.Badge, __spreadProps(__spreadValues({}, rest), { color: radixColor, ref, size: radixSize }));
|
|
1912
1973
|
}
|
|
1913
1974
|
);
|
|
1914
1975
|
Badge.displayName = "Badge";
|
|
@@ -1920,7 +1981,7 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
1920
1981
|
var import_themes16 = require("@radix-ui/themes");
|
|
1921
1982
|
|
|
1922
1983
|
// src/molecules/tag-selector.tsx
|
|
1923
|
-
var
|
|
1984
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1924
1985
|
var OPTION_HEIGHT = 32;
|
|
1925
1986
|
var stopDefaultEvents = (e) => {
|
|
1926
1987
|
e.preventDefault();
|
|
@@ -2110,11 +2171,11 @@ function TagSelector(props) {
|
|
|
2110
2171
|
const focusClassName = focus ? " focused" : "";
|
|
2111
2172
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2112
2173
|
const errorClassName = error ? " error" : "";
|
|
2113
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2114
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
2174
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2175
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2115
2176
|
}) });
|
|
2116
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2117
|
-
/* @__PURE__ */ (0,
|
|
2177
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2118
2179
|
import_themes.Flex,
|
|
2119
2180
|
{
|
|
2120
2181
|
align: "center",
|
|
@@ -2126,22 +2187,22 @@ function TagSelector(props) {
|
|
|
2126
2187
|
selectedItem.map((item) => {
|
|
2127
2188
|
return tagRender ? tagRender(item, () => {
|
|
2128
2189
|
onDelete(item.id);
|
|
2129
|
-
}) : /* @__PURE__ */ (0,
|
|
2190
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Badge, { size: badgeSize, children: [
|
|
2130
2191
|
item.name,
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2132
2193
|
Button,
|
|
2133
2194
|
{
|
|
2134
2195
|
onClick: () => {
|
|
2135
2196
|
onDelete(item.id);
|
|
2136
2197
|
},
|
|
2137
2198
|
variant: "transparent",
|
|
2138
|
-
children: /* @__PURE__ */ (0,
|
|
2199
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons3.Cross1Icon, {})
|
|
2139
2200
|
}
|
|
2140
2201
|
)
|
|
2141
2202
|
] }, item.id);
|
|
2142
2203
|
}),
|
|
2143
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2144
|
-
/* @__PURE__ */ (0,
|
|
2204
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
2205
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2145
2206
|
AutoSizingInput,
|
|
2146
2207
|
{
|
|
2147
2208
|
onBlur,
|
|
@@ -2155,10 +2216,10 @@ function TagSelector(props) {
|
|
|
2155
2216
|
]
|
|
2156
2217
|
}
|
|
2157
2218
|
),
|
|
2158
|
-
focus ? /* @__PURE__ */ (0,
|
|
2219
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons3.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons3.ChevronRightIcon, {})
|
|
2159
2220
|
] });
|
|
2160
|
-
return /* @__PURE__ */ (0,
|
|
2161
|
-
/* @__PURE__ */ (0,
|
|
2221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes8.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes8.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2162
2223
|
import_themes16.Grid,
|
|
2163
2224
|
{
|
|
2164
2225
|
align: "center",
|
|
@@ -2172,7 +2233,7 @@ function TagSelector(props) {
|
|
|
2172
2233
|
children: readOnly ? readonlyContent : editContent
|
|
2173
2234
|
}
|
|
2174
2235
|
) }),
|
|
2175
|
-
/* @__PURE__ */ (0,
|
|
2236
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2176
2237
|
import_themes8.Popover.Content,
|
|
2177
2238
|
{
|
|
2178
2239
|
onOpenAutoFocus: preventDefault,
|
|
@@ -2182,24 +2243,24 @@ function TagSelector(props) {
|
|
|
2182
2243
|
style: {
|
|
2183
2244
|
pointerEvents: "fill"
|
|
2184
2245
|
},
|
|
2185
|
-
children: /* @__PURE__ */ (0,
|
|
2246
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2186
2247
|
DropdownContainer,
|
|
2187
2248
|
{
|
|
2188
2249
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2189
2250
|
items: filteredOptions,
|
|
2190
|
-
children: /* @__PURE__ */ (0,
|
|
2251
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2191
2252
|
import_themes15.ScrollArea,
|
|
2192
2253
|
{
|
|
2193
2254
|
ref: scrollRef,
|
|
2194
2255
|
scrollbars: "vertical",
|
|
2195
2256
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2196
2257
|
type: "auto",
|
|
2197
|
-
children: /* @__PURE__ */ (0,
|
|
2258
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2198
2259
|
const isSelected = Boolean(
|
|
2199
2260
|
selected.find((el) => el === item.id)
|
|
2200
2261
|
);
|
|
2201
2262
|
const isFocus = i === focusIndex;
|
|
2202
|
-
return /* @__PURE__ */ (0,
|
|
2263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2203
2264
|
Button,
|
|
2204
2265
|
{
|
|
2205
2266
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2212,9 +2273,9 @@ function TagSelector(props) {
|
|
|
2212
2273
|
setFocusIndex(i);
|
|
2213
2274
|
},
|
|
2214
2275
|
variant: isSelected ? "soft" : "outline",
|
|
2215
|
-
children: /* @__PURE__ */ (0,
|
|
2276
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes.Flex, { justify: "between", width: "100%", children: [
|
|
2216
2277
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2217
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2278
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons.CheckIcon, {}) : null
|
|
2218
2279
|
] })
|
|
2219
2280
|
},
|
|
2220
2281
|
item.id
|
|
@@ -2240,16 +2301,16 @@ var preventDefault = (e) => {
|
|
|
2240
2301
|
|
|
2241
2302
|
// src/theme/theme-provider.tsx
|
|
2242
2303
|
var import_themes17 = require("@radix-ui/themes");
|
|
2243
|
-
var
|
|
2304
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2244
2305
|
function ThemeProvider(props) {
|
|
2245
|
-
return /* @__PURE__ */ (0,
|
|
2306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes17.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2246
2307
|
}
|
|
2247
2308
|
|
|
2248
2309
|
// src/atoms/aspect-ratio.tsx
|
|
2249
2310
|
var import_themes18 = require("@radix-ui/themes");
|
|
2250
2311
|
|
|
2251
2312
|
// src/molecules/learning-post.tsx
|
|
2252
|
-
var
|
|
2313
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2253
2314
|
function LearningPost(props) {
|
|
2254
2315
|
const {
|
|
2255
2316
|
defaultThemeProps,
|
|
@@ -2261,13 +2322,13 @@ function LearningPost(props) {
|
|
|
2261
2322
|
onPageBack,
|
|
2262
2323
|
children
|
|
2263
2324
|
} = props;
|
|
2264
|
-
return /* @__PURE__ */ (0,
|
|
2325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2265
2326
|
ThemeProvider,
|
|
2266
2327
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2267
2328
|
accentColor: "iris",
|
|
2268
2329
|
scaling: "110%",
|
|
2269
2330
|
style: {},
|
|
2270
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2331
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2271
2332
|
import_themes16.Grid,
|
|
2272
2333
|
{
|
|
2273
2334
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2279,8 +2340,8 @@ function LearningPost(props) {
|
|
|
2279
2340
|
px: "4",
|
|
2280
2341
|
width: "100%",
|
|
2281
2342
|
children: [
|
|
2282
|
-
/* @__PURE__ */ (0,
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2343
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", {}),
|
|
2344
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2284
2345
|
import_themes.Flex,
|
|
2285
2346
|
{
|
|
2286
2347
|
align: "center",
|
|
@@ -2290,15 +2351,15 @@ function LearningPost(props) {
|
|
|
2290
2351
|
overflow: "hidden",
|
|
2291
2352
|
width: "100%",
|
|
2292
2353
|
children: [
|
|
2293
|
-
/* @__PURE__ */ (0,
|
|
2294
|
-
/* @__PURE__ */ (0,
|
|
2354
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes16.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2295
2356
|
import_themes16.Grid,
|
|
2296
2357
|
{
|
|
2297
2358
|
gap: "3",
|
|
2298
2359
|
mb: { initial: "4", sm: "0" },
|
|
2299
2360
|
style: { alignSelf: "flex-start" },
|
|
2300
2361
|
children: [
|
|
2301
|
-
/* @__PURE__ */ (0,
|
|
2362
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2302
2363
|
Heading2,
|
|
2303
2364
|
{
|
|
2304
2365
|
style: {
|
|
@@ -2310,16 +2371,16 @@ function LearningPost(props) {
|
|
|
2310
2371
|
children: title
|
|
2311
2372
|
}
|
|
2312
2373
|
),
|
|
2313
|
-
/* @__PURE__ */ (0,
|
|
2314
|
-
/* @__PURE__ */ (0,
|
|
2374
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typo, { children: metaDescription }),
|
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2315
2376
|
var _a;
|
|
2316
2377
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
2317
|
-
return /* @__PURE__ */ (0,
|
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
2318
2379
|
}) })
|
|
2319
2380
|
]
|
|
2320
2381
|
}
|
|
2321
2382
|
),
|
|
2322
|
-
/* @__PURE__ */ (0,
|
|
2383
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2323
2384
|
import_themes18.AspectRatio,
|
|
2324
2385
|
{
|
|
2325
2386
|
ratio: 5 / 3,
|
|
@@ -2332,7 +2393,7 @@ function LearningPost(props) {
|
|
|
2332
2393
|
}
|
|
2333
2394
|
)
|
|
2334
2395
|
] }),
|
|
2335
|
-
/* @__PURE__ */ (0,
|
|
2396
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes7.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2336
2397
|
"div",
|
|
2337
2398
|
{
|
|
2338
2399
|
className: "gh-content",
|
|
@@ -2345,7 +2406,7 @@ function LearningPost(props) {
|
|
|
2345
2406
|
children
|
|
2346
2407
|
]
|
|
2347
2408
|
}
|
|
2348
|
-
) : /* @__PURE__ */ (0,
|
|
2409
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2349
2410
|
import_themes.Flex,
|
|
2350
2411
|
{
|
|
2351
2412
|
align: "center",
|
|
@@ -2355,8 +2416,8 @@ function LearningPost(props) {
|
|
|
2355
2416
|
justify: "center",
|
|
2356
2417
|
width: "100%",
|
|
2357
2418
|
children: [
|
|
2358
|
-
/* @__PURE__ */ (0,
|
|
2359
|
-
/* @__PURE__ */ (0,
|
|
2419
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2360
2421
|
Heading2,
|
|
2361
2422
|
{
|
|
2362
2423
|
align: "center",
|
|
@@ -2367,7 +2428,7 @@ function LearningPost(props) {
|
|
|
2367
2428
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2368
2429
|
}
|
|
2369
2430
|
),
|
|
2370
|
-
/* @__PURE__ */ (0,
|
|
2431
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2371
2432
|
]
|
|
2372
2433
|
}
|
|
2373
2434
|
)
|
|
@@ -2385,9 +2446,9 @@ var import_themes19 = require("@radix-ui/themes");
|
|
|
2385
2446
|
var import_themes20 = require("@radix-ui/themes");
|
|
2386
2447
|
|
|
2387
2448
|
// src/molecules/force-refresh.tsx
|
|
2388
|
-
var
|
|
2449
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2389
2450
|
function CodeSize3(props) {
|
|
2390
|
-
return /* @__PURE__ */ (0,
|
|
2451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2391
2452
|
import_themes19.Code,
|
|
2392
2453
|
{
|
|
2393
2454
|
style: {
|
|
@@ -2400,51 +2461,51 @@ function CodeSize3(props) {
|
|
|
2400
2461
|
);
|
|
2401
2462
|
}
|
|
2402
2463
|
function ForceRefresh() {
|
|
2403
|
-
return /* @__PURE__ */ (0,
|
|
2404
|
-
/* @__PURE__ */ (0,
|
|
2464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
2465
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2405
2466
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2406
2467
|
" ",
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2408
|
-
/* @__PURE__ */ (0,
|
|
2468
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CodeSize3, { children: [
|
|
2469
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons4.DotsVerticalIcon, { height: "13px" }),
|
|
2409
2470
|
"\uB354\uBCF4\uAE30"
|
|
2410
2471
|
] }),
|
|
2411
2472
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2412
2473
|
] }),
|
|
2413
|
-
/* @__PURE__ */ (0,
|
|
2474
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2414
2475
|
"2. ",
|
|
2415
|
-
/* @__PURE__ */ (0,
|
|
2476
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
2416
2477
|
" ",
|
|
2417
2478
|
">",
|
|
2418
2479
|
" ",
|
|
2419
|
-
/* @__PURE__ */ (0,
|
|
2480
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2420
2481
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2421
2482
|
] }),
|
|
2422
|
-
/* @__PURE__ */ (0,
|
|
2423
|
-
/* @__PURE__ */ (0,
|
|
2483
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2484
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2424
2485
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2425
|
-
/* @__PURE__ */ (0,
|
|
2486
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "F12" })
|
|
2426
2487
|
] }),
|
|
2427
|
-
/* @__PURE__ */ (0,
|
|
2488
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2428
2489
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2429
|
-
/* @__PURE__ */ (0,
|
|
2490
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "Option" }),
|
|
2430
2491
|
" + ",
|
|
2431
|
-
/* @__PURE__ */ (0,
|
|
2492
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "Command" }),
|
|
2432
2493
|
" + ",
|
|
2433
|
-
/* @__PURE__ */ (0,
|
|
2494
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "I" })
|
|
2434
2495
|
] })
|
|
2435
2496
|
] }),
|
|
2436
|
-
/* @__PURE__ */ (0,
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2437
2498
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
2438
2499
|
" ",
|
|
2439
|
-
/* @__PURE__ */ (0,
|
|
2440
|
-
/* @__PURE__ */ (0,
|
|
2500
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CodeSize3, { children: [
|
|
2501
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons4.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
2441
2502
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
2442
2503
|
] }),
|
|
2443
2504
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2444
2505
|
] }),
|
|
2445
|
-
/* @__PURE__ */ (0,
|
|
2506
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2446
2507
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
2447
|
-
/* @__PURE__ */ (0,
|
|
2508
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
2448
2509
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2449
2510
|
] })
|
|
2450
2511
|
] });
|
|
@@ -2458,7 +2519,7 @@ var import_clsx3 = require("clsx");
|
|
|
2458
2519
|
// src/atoms/text-field.tsx
|
|
2459
2520
|
var import_themes21 = require("@radix-ui/themes");
|
|
2460
2521
|
var import_react16 = require("react");
|
|
2461
|
-
var
|
|
2522
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2462
2523
|
var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
2463
2524
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
2464
2525
|
const fieldStyle = (0, import_react16.useMemo)(() => {
|
|
@@ -2469,7 +2530,7 @@ var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2469
2530
|
return __spreadValues(__spreadValues({}, style || {}), errorStyle);
|
|
2470
2531
|
}, [error, style]);
|
|
2471
2532
|
const classNameStr = error ? `error ${className}` : className;
|
|
2472
|
-
return /* @__PURE__ */ (0,
|
|
2533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2473
2534
|
import_themes21.TextField.Root,
|
|
2474
2535
|
__spreadValues({
|
|
2475
2536
|
className: classNameStr,
|
|
@@ -2482,7 +2543,7 @@ Root2.displayName = "TextField.Root";
|
|
|
2482
2543
|
var TextField = { Root: Root2, Slot: import_themes21.TextField.Slot };
|
|
2483
2544
|
|
|
2484
2545
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2485
|
-
var
|
|
2546
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2486
2547
|
function DatePickerButton(props) {
|
|
2487
2548
|
const _a = props, { size, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "format", "disabled"]);
|
|
2488
2549
|
const placeholder = rest.placeholder || "\uB0A0\uC9DC\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694";
|
|
@@ -2506,18 +2567,18 @@ function DatePickerButton(props) {
|
|
|
2506
2567
|
const placeholderVisible = (0, import_react17.useMemo)(() => {
|
|
2507
2568
|
return rest.selected ? "" : "placeholder-visible";
|
|
2508
2569
|
}, [rest.selected]);
|
|
2509
|
-
return /* @__PURE__ */ (0,
|
|
2570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes7.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2510
2571
|
DatePicker,
|
|
2511
2572
|
__spreadProps(__spreadValues({
|
|
2512
|
-
customInput: /* @__PURE__ */ (0,
|
|
2573
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, __spreadProps(__spreadValues({ asChild: true, className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2513
2574
|
TextField.Root,
|
|
2514
2575
|
{
|
|
2515
2576
|
className: placeholderVisible,
|
|
2516
2577
|
placeholder: placeholder || "",
|
|
2517
2578
|
value: rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2518
2579
|
children: [
|
|
2519
|
-
/* @__PURE__ */ (0,
|
|
2520
|
-
/* @__PURE__ */ (0,
|
|
2580
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField.Slot, { className: "hide-slot" }),
|
|
2581
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField.Slot, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons.CalendarIcon, {}) })
|
|
2521
2582
|
]
|
|
2522
2583
|
}
|
|
2523
2584
|
) })),
|
|
@@ -2535,7 +2596,7 @@ var import_date_fns2 = require("date-fns");
|
|
|
2535
2596
|
// src/atoms/select.tsx
|
|
2536
2597
|
var import_themes22 = require("@radix-ui/themes");
|
|
2537
2598
|
var import_react18 = require("react");
|
|
2538
|
-
var
|
|
2599
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2539
2600
|
var SelectContext = (0, import_react18.createContext)({
|
|
2540
2601
|
error: false
|
|
2541
2602
|
});
|
|
@@ -2547,7 +2608,7 @@ var Content = (0, import_react18.forwardRef)((props, ref) => {
|
|
|
2547
2608
|
const errorCls = error ? "tipp-error" : "";
|
|
2548
2609
|
return [etc, errorCls, className].join(" ");
|
|
2549
2610
|
}, [className, error, isNavigation]);
|
|
2550
|
-
return /* @__PURE__ */ (0,
|
|
2611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2551
2612
|
import_themes22.Select.Content,
|
|
2552
2613
|
__spreadProps(__spreadValues({
|
|
2553
2614
|
position: "popper"
|
|
@@ -2566,13 +2627,13 @@ var Trigger = (0, import_react18.forwardRef)(
|
|
|
2566
2627
|
const errorCls = error ? "error" : "";
|
|
2567
2628
|
return [errorCls, className].join(" ");
|
|
2568
2629
|
}, [className, error]);
|
|
2569
|
-
return /* @__PURE__ */ (0,
|
|
2630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Select.Trigger, __spreadProps(__spreadValues({}, rest), { className: cls, ref }));
|
|
2570
2631
|
}
|
|
2571
2632
|
);
|
|
2572
2633
|
Trigger.displayName = "Select.Trigger";
|
|
2573
2634
|
function Root3(props) {
|
|
2574
2635
|
const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
|
|
2575
|
-
return /* @__PURE__ */ (0,
|
|
2636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Select.Root, __spreadValues({}, rest)) });
|
|
2576
2637
|
}
|
|
2577
2638
|
Root3.displayName = "Select.Root";
|
|
2578
2639
|
var Select = __spreadProps(__spreadValues({}, import_themes22.Select), {
|
|
@@ -2670,7 +2731,7 @@ function getDynamicFormDisplayValue(field, value) {
|
|
|
2670
2731
|
}
|
|
2671
2732
|
|
|
2672
2733
|
// src/molecules/time-select.tsx
|
|
2673
|
-
var
|
|
2734
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2674
2735
|
var getOptionValue = (date, timeValue) => {
|
|
2675
2736
|
if (date && timeValue) {
|
|
2676
2737
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -2696,14 +2757,14 @@ function TimeSelect(_a) {
|
|
|
2696
2757
|
const [minOption, maxOption] = (0, import_react19.useMemo)(() => {
|
|
2697
2758
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2698
2759
|
}, [maxTime, minTime, time]);
|
|
2699
|
-
return /* @__PURE__ */ (0,
|
|
2700
|
-
/* @__PURE__ */ (0,
|
|
2701
|
-
/* @__PURE__ */ (0,
|
|
2760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2761
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
2762
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2702
2763
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2703
2764
|
if (!visible) {
|
|
2704
2765
|
return null;
|
|
2705
2766
|
}
|
|
2706
|
-
return /* @__PURE__ */ (0,
|
|
2767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Item, { value: option, children: option }, option);
|
|
2707
2768
|
}) })
|
|
2708
2769
|
] }));
|
|
2709
2770
|
}
|
|
@@ -2718,7 +2779,7 @@ var import_themes23 = require("@radix-ui/themes");
|
|
|
2718
2779
|
var import_themes24 = require("@radix-ui/themes");
|
|
2719
2780
|
|
|
2720
2781
|
// src/molecules/radio-button-card.tsx
|
|
2721
|
-
var
|
|
2782
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2722
2783
|
var RadioCardContext = (0, import_react20.createContext)({});
|
|
2723
2784
|
function Root4(props) {
|
|
2724
2785
|
const [value, setValue] = (0, import_react20.useState)(props.value || props.defaultValue);
|
|
@@ -2730,7 +2791,7 @@ function Root4(props) {
|
|
|
2730
2791
|
},
|
|
2731
2792
|
[props]
|
|
2732
2793
|
);
|
|
2733
|
-
return /* @__PURE__ */ (0,
|
|
2794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes23.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
2734
2795
|
}
|
|
2735
2796
|
function Item(_a) {
|
|
2736
2797
|
var _b = _a, {
|
|
@@ -2747,9 +2808,9 @@ function Item(_a) {
|
|
|
2747
2808
|
"justify",
|
|
2748
2809
|
"RadioWrapper"
|
|
2749
2810
|
]);
|
|
2750
|
-
return /* @__PURE__ */ (0,
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes23.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_themes.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2751
2812
|
children,
|
|
2752
|
-
/* @__PURE__ */ (0,
|
|
2813
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2753
2814
|
import_themes24.Radio,
|
|
2754
2815
|
{
|
|
2755
2816
|
checked: itemRest.value === value,
|
|
@@ -2771,7 +2832,7 @@ var import_react_icons5 = require("@radix-ui/react-icons");
|
|
|
2771
2832
|
var import_themes25 = require("@radix-ui/themes");
|
|
2772
2833
|
var import_react21 = require("react");
|
|
2773
2834
|
var import_themes26 = require("@radix-ui/themes");
|
|
2774
|
-
var
|
|
2835
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2775
2836
|
function Link(props) {
|
|
2776
2837
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
2777
2838
|
const radixSize = (0, import_react21.useMemo)(() => {
|
|
@@ -2786,28 +2847,28 @@ function Link(props) {
|
|
|
2786
2847
|
return size;
|
|
2787
2848
|
}
|
|
2788
2849
|
}, [size, variant]);
|
|
2789
|
-
return /* @__PURE__ */ (0,
|
|
2850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes25.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
2790
2851
|
}
|
|
2791
2852
|
|
|
2792
2853
|
// src/molecules/download-card.tsx
|
|
2793
|
-
var
|
|
2854
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2794
2855
|
function DownloadCard({
|
|
2795
2856
|
fileName,
|
|
2796
2857
|
url,
|
|
2797
2858
|
createdAt,
|
|
2798
2859
|
size
|
|
2799
2860
|
}) {
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
2861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2801
2862
|
IconButton,
|
|
2802
2863
|
{
|
|
2803
2864
|
mt: "3",
|
|
2804
2865
|
size: "large",
|
|
2805
2866
|
style: { width: "100%", height: 56 },
|
|
2806
2867
|
variant: "soft",
|
|
2807
|
-
children: /* @__PURE__ */ (0,
|
|
2808
|
-
/* @__PURE__ */ (0,
|
|
2809
|
-
/* @__PURE__ */ (0,
|
|
2810
|
-
/* @__PURE__ */ (0,
|
|
2868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_themes.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
2869
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_icons5.DownloadIcon, { height: 20, width: 20 }) }),
|
|
2870
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_themes.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
2871
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2811
2872
|
Typo,
|
|
2812
2873
|
{
|
|
2813
2874
|
style: {
|
|
@@ -2817,7 +2878,7 @@ function DownloadCard({
|
|
|
2817
2878
|
children: fileName
|
|
2818
2879
|
}
|
|
2819
2880
|
),
|
|
2820
|
-
/* @__PURE__ */ (0,
|
|
2881
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
2821
2882
|
] })
|
|
2822
2883
|
] })
|
|
2823
2884
|
}
|
|
@@ -2825,22 +2886,22 @@ function DownloadCard({
|
|
|
2825
2886
|
}
|
|
2826
2887
|
|
|
2827
2888
|
// src/molecules/ghost-post.tsx
|
|
2828
|
-
var
|
|
2889
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2829
2890
|
function GhostPost(props) {
|
|
2830
2891
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
2831
|
-
return /* @__PURE__ */ (0,
|
|
2892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2832
2893
|
ThemeProvider,
|
|
2833
2894
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2834
2895
|
accentColor: "iris",
|
|
2835
2896
|
scaling: "110%",
|
|
2836
2897
|
style: {},
|
|
2837
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2898
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2838
2899
|
"div",
|
|
2839
2900
|
{
|
|
2840
2901
|
className: "gh-content",
|
|
2841
2902
|
dangerouslySetInnerHTML: { __html: html }
|
|
2842
2903
|
}
|
|
2843
|
-
) }) : /* @__PURE__ */ (0,
|
|
2904
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2844
2905
|
import_themes.Flex,
|
|
2845
2906
|
{
|
|
2846
2907
|
align: "center",
|
|
@@ -2850,8 +2911,8 @@ function GhostPost(props) {
|
|
|
2850
2911
|
justify: "center",
|
|
2851
2912
|
width: "100%",
|
|
2852
2913
|
children: [
|
|
2853
|
-
/* @__PURE__ */ (0,
|
|
2854
|
-
/* @__PURE__ */ (0,
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2915
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2855
2916
|
Heading2,
|
|
2856
2917
|
{
|
|
2857
2918
|
align: "center",
|
|
@@ -2862,7 +2923,7 @@ function GhostPost(props) {
|
|
|
2862
2923
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2863
2924
|
}
|
|
2864
2925
|
),
|
|
2865
|
-
/* @__PURE__ */ (0,
|
|
2926
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2866
2927
|
]
|
|
2867
2928
|
}
|
|
2868
2929
|
)
|
|
@@ -2872,7 +2933,7 @@ function GhostPost(props) {
|
|
|
2872
2933
|
|
|
2873
2934
|
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
2874
2935
|
var import_react22 = require("react");
|
|
2875
|
-
var
|
|
2936
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2876
2937
|
var EMPTY_SELECTED_ITEM = {
|
|
2877
2938
|
uuid: "",
|
|
2878
2939
|
type: "sectionTitle",
|
|
@@ -3011,7 +3072,7 @@ function CurriculumProvider(props) {
|
|
|
3011
3072
|
if (item.type === "sectionTitle") return;
|
|
3012
3073
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(item);
|
|
3013
3074
|
}, [list, onChangeSelectedContent, selectedIndexState]);
|
|
3014
|
-
return /* @__PURE__ */ (0,
|
|
3075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3015
3076
|
CurriculumContext.Provider,
|
|
3016
3077
|
{
|
|
3017
3078
|
value: {
|
|
@@ -3051,7 +3112,7 @@ function useCurriculumContext() {
|
|
|
3051
3112
|
|
|
3052
3113
|
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
3053
3114
|
var import_react23 = require("react");
|
|
3054
|
-
var
|
|
3115
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3055
3116
|
function CurriculumSubNav() {
|
|
3056
3117
|
const {
|
|
3057
3118
|
selectedItem,
|
|
@@ -3072,7 +3133,7 @@ function CurriculumSubNav() {
|
|
|
3072
3133
|
scrollNavItem(moveIndex.toString());
|
|
3073
3134
|
});
|
|
3074
3135
|
}, [selectNext, scrollNavItem]);
|
|
3075
|
-
return /* @__PURE__ */ (0,
|
|
3136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3076
3137
|
import_themes16.Grid,
|
|
3077
3138
|
{
|
|
3078
3139
|
align: "center",
|
|
@@ -3082,20 +3143,20 @@ function CurriculumSubNav() {
|
|
|
3082
3143
|
py: "2",
|
|
3083
3144
|
rows: "auto",
|
|
3084
3145
|
children: [
|
|
3085
|
-
hasPrev ? /* @__PURE__ */ (0,
|
|
3146
|
+
hasPrev ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3086
3147
|
IconButton,
|
|
3087
3148
|
{
|
|
3088
3149
|
color: "gray",
|
|
3089
3150
|
onClick: onClickPrev,
|
|
3090
3151
|
size: { initial: "medium", md: "large" },
|
|
3091
3152
|
variant: "ghost",
|
|
3092
|
-
children: /* @__PURE__ */ (0,
|
|
3153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_icons.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
3093
3154
|
}
|
|
3094
|
-
) : /* @__PURE__ */ (0,
|
|
3095
|
-
/* @__PURE__ */ (0,
|
|
3096
|
-
/* @__PURE__ */ (0,
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3098
|
-
/* @__PURE__ */ (0,
|
|
3155
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, {}),
|
|
3156
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes7.Box, { width: "100%", children: [
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Heading2, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3099
3160
|
Typo,
|
|
3100
3161
|
{
|
|
3101
3162
|
as: "p",
|
|
@@ -3107,16 +3168,16 @@ function CurriculumSubNav() {
|
|
|
3107
3168
|
}
|
|
3108
3169
|
)
|
|
3109
3170
|
] }),
|
|
3110
|
-
hasNext ? /* @__PURE__ */ (0,
|
|
3171
|
+
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3111
3172
|
IconButton,
|
|
3112
3173
|
{
|
|
3113
3174
|
color: "gray",
|
|
3114
3175
|
onClick: onClickNext,
|
|
3115
3176
|
size: { initial: "medium", md: "large" },
|
|
3116
3177
|
variant: "ghost",
|
|
3117
|
-
children: /* @__PURE__ */ (0,
|
|
3178
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_icons.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
3118
3179
|
}
|
|
3119
|
-
) : /* @__PURE__ */ (0,
|
|
3180
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, {})
|
|
3120
3181
|
]
|
|
3121
3182
|
}
|
|
3122
3183
|
);
|
|
@@ -3124,12 +3185,12 @@ function CurriculumSubNav() {
|
|
|
3124
3185
|
|
|
3125
3186
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx
|
|
3126
3187
|
var import_react24 = require("react");
|
|
3127
|
-
var
|
|
3188
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3128
3189
|
function CurriculumVideo(props) {
|
|
3129
3190
|
const { item } = props;
|
|
3130
3191
|
const { url } = item;
|
|
3131
3192
|
const [isLoading, setIsLoading] = (0, import_react24.useState)(true);
|
|
3132
|
-
return /* @__PURE__ */ (0,
|
|
3193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3133
3194
|
import_themes.Flex,
|
|
3134
3195
|
{
|
|
3135
3196
|
align: "center",
|
|
@@ -3141,7 +3202,7 @@ function CurriculumVideo(props) {
|
|
|
3141
3202
|
position: "relative"
|
|
3142
3203
|
},
|
|
3143
3204
|
children: [
|
|
3144
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
3205
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3145
3206
|
import_themes.Flex,
|
|
3146
3207
|
{
|
|
3147
3208
|
align: "center",
|
|
@@ -3156,10 +3217,10 @@ function CurriculumVideo(props) {
|
|
|
3156
3217
|
color: "white"
|
|
3157
3218
|
},
|
|
3158
3219
|
width: "100%",
|
|
3159
|
-
children: /* @__PURE__ */ (0,
|
|
3220
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes4.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
3160
3221
|
}
|
|
3161
3222
|
) : null,
|
|
3162
|
-
/* @__PURE__ */ (0,
|
|
3223
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3163
3224
|
"iframe",
|
|
3164
3225
|
{
|
|
3165
3226
|
allowFullScreen: true,
|
|
@@ -3192,7 +3253,7 @@ var import_react26 = require("react");
|
|
|
3192
3253
|
|
|
3193
3254
|
// src/theme/portal-provider.tsx
|
|
3194
3255
|
var import_react25 = require("react");
|
|
3195
|
-
var
|
|
3256
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3196
3257
|
var PortalContext = (0, import_react25.createContext)(
|
|
3197
3258
|
null
|
|
3198
3259
|
);
|
|
@@ -3206,7 +3267,7 @@ var usePortalContainer = () => {
|
|
|
3206
3267
|
};
|
|
3207
3268
|
|
|
3208
3269
|
// src/atoms/dialog.tsx
|
|
3209
|
-
var
|
|
3270
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3210
3271
|
var preventDefault2 = (e) => {
|
|
3211
3272
|
e.preventDefault();
|
|
3212
3273
|
};
|
|
@@ -3241,7 +3302,7 @@ function Content3(props) {
|
|
|
3241
3302
|
"className"
|
|
3242
3303
|
]);
|
|
3243
3304
|
const { dialogContainerRef } = usePortalContainer();
|
|
3244
|
-
return /* @__PURE__ */ (0,
|
|
3305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes27.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Overlay, { className: "rt-BaseDialogScroll rt-DialogScroll DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3245
3306
|
RadixDialog.Content,
|
|
3246
3307
|
__spreadProps(__spreadValues({
|
|
3247
3308
|
className: `DialogContent ${className || ""} rt-BaseDialogContent rt-DialogContent rt-r-size-${size || "3"}`,
|
|
@@ -3256,12 +3317,12 @@ function Content3(props) {
|
|
|
3256
3317
|
}, style)
|
|
3257
3318
|
}, rest), {
|
|
3258
3319
|
children: [
|
|
3259
|
-
/* @__PURE__ */ (0,
|
|
3260
|
-
/* @__PURE__ */ (0,
|
|
3261
|
-
!hideCloseButton && /* @__PURE__ */ (0,
|
|
3320
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes27.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
3321
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" && title !== "" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Heading2, { mb: "2", variant: "heading3", children: title }) : title }),
|
|
3322
|
+
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons6.Cross1Icon, {}) }) })
|
|
3262
3323
|
] }),
|
|
3263
3324
|
children,
|
|
3264
|
-
buttons ? /* @__PURE__ */ (0,
|
|
3325
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes27.Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
3265
3326
|
]
|
|
3266
3327
|
})
|
|
3267
3328
|
) }) }) });
|
|
@@ -3272,7 +3333,7 @@ function Close2(_a) {
|
|
|
3272
3333
|
} = _b, rest = __objRest(_b, [
|
|
3273
3334
|
"children"
|
|
3274
3335
|
]);
|
|
3275
|
-
return /* @__PURE__ */ (0,
|
|
3336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
3276
3337
|
}
|
|
3277
3338
|
function Trigger3(_a) {
|
|
3278
3339
|
var _b = _a, {
|
|
@@ -3280,7 +3341,7 @@ function Trigger3(_a) {
|
|
|
3280
3341
|
} = _b, rest = __objRest(_b, [
|
|
3281
3342
|
"children"
|
|
3282
3343
|
]);
|
|
3283
|
-
return /* @__PURE__ */ (0,
|
|
3344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
3284
3345
|
}
|
|
3285
3346
|
function Root6(props) {
|
|
3286
3347
|
const prevOpenRef = (0, import_react26.useRef)(void 0);
|
|
@@ -3315,7 +3376,7 @@ function Root6(props) {
|
|
|
3315
3376
|
}
|
|
3316
3377
|
};
|
|
3317
3378
|
}, []);
|
|
3318
|
-
return /* @__PURE__ */ (0,
|
|
3379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Root, __spreadValues({}, props));
|
|
3319
3380
|
}
|
|
3320
3381
|
var Dialog = {
|
|
3321
3382
|
Root: Root6,
|
|
@@ -3331,7 +3392,7 @@ var import_react27 = require("react");
|
|
|
3331
3392
|
var import_formik = require("formik");
|
|
3332
3393
|
var import_lodash_es = require("lodash-es");
|
|
3333
3394
|
var Yup = __toESM(require("yup"), 1);
|
|
3334
|
-
var
|
|
3395
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3335
3396
|
var CurriculumReviewContext = (0, import_react27.createContext)(void 0);
|
|
3336
3397
|
function getInitialAnswers(defaultValues, questions) {
|
|
3337
3398
|
return questions.reduce((acc, q) => {
|
|
@@ -3460,7 +3521,7 @@ function CurriculumReviewProvider({
|
|
|
3460
3521
|
});
|
|
3461
3522
|
}
|
|
3462
3523
|
}, [currentQuestion == null ? void 0 : currentQuestion.uuid, currentAnswer, onReviewValueChange]);
|
|
3463
|
-
return /* @__PURE__ */ (0,
|
|
3524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3464
3525
|
CurriculumReviewContext.Provider,
|
|
3465
3526
|
{
|
|
3466
3527
|
value: {
|
|
@@ -3582,7 +3643,7 @@ var getCurriculumContentSubTypeText = (type) => {
|
|
|
3582
3643
|
};
|
|
3583
3644
|
|
|
3584
3645
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
3585
|
-
var
|
|
3646
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3586
3647
|
var renderPreviewContent = (args) => {
|
|
3587
3648
|
const { question } = args;
|
|
3588
3649
|
const Icon = getCurriculumIcon({
|
|
@@ -3595,7 +3656,7 @@ var renderPreviewContent = (args) => {
|
|
|
3595
3656
|
question.duration ? `${question.duration}\uBD84` : ""
|
|
3596
3657
|
].filter(Boolean).join(" | ");
|
|
3597
3658
|
};
|
|
3598
|
-
return /* @__PURE__ */ (0,
|
|
3659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3599
3660
|
import_themes16.Grid,
|
|
3600
3661
|
{
|
|
3601
3662
|
columns: "16px 1fr",
|
|
@@ -3604,10 +3665,10 @@ var renderPreviewContent = (args) => {
|
|
|
3604
3665
|
py: "2",
|
|
3605
3666
|
width: "100%",
|
|
3606
3667
|
children: [
|
|
3607
|
-
/* @__PURE__ */ (0,
|
|
3608
|
-
/* @__PURE__ */ (0,
|
|
3609
|
-
/* @__PURE__ */ (0,
|
|
3610
|
-
/* @__PURE__ */ (0,
|
|
3668
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
3669
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes7.Box, { children: [
|
|
3670
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
3671
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3611
3672
|
] })
|
|
3612
3673
|
]
|
|
3613
3674
|
},
|
|
@@ -3630,7 +3691,7 @@ var renderReviewContent = (args) => {
|
|
|
3630
3691
|
const color = getCurriculumQuestionIconColor(question.type);
|
|
3631
3692
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3632
3693
|
const value = getReviewContentValue(question, answer);
|
|
3633
|
-
return /* @__PURE__ */ (0,
|
|
3694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3634
3695
|
import_themes16.Grid,
|
|
3635
3696
|
{
|
|
3636
3697
|
columns: "16px 1fr",
|
|
@@ -3639,10 +3700,10 @@ var renderReviewContent = (args) => {
|
|
|
3639
3700
|
py: "2",
|
|
3640
3701
|
width: "100%",
|
|
3641
3702
|
children: [
|
|
3642
|
-
/* @__PURE__ */ (0,
|
|
3643
|
-
/* @__PURE__ */ (0,
|
|
3644
|
-
/* @__PURE__ */ (0,
|
|
3645
|
-
/* @__PURE__ */ (0,
|
|
3703
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { color }) }),
|
|
3704
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes7.Box, { children: [
|
|
3705
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3646
3707
|
] })
|
|
3647
3708
|
]
|
|
3648
3709
|
},
|
|
@@ -3651,7 +3712,7 @@ var renderReviewContent = (args) => {
|
|
|
3651
3712
|
};
|
|
3652
3713
|
function StartReview({ onStart }) {
|
|
3653
3714
|
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
3654
|
-
return /* @__PURE__ */ (0,
|
|
3715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3655
3716
|
import_themes.Flex,
|
|
3656
3717
|
{
|
|
3657
3718
|
align: "center",
|
|
@@ -3659,7 +3720,7 @@ function StartReview({ onStart }) {
|
|
|
3659
3720
|
height: "100%",
|
|
3660
3721
|
justify: "center",
|
|
3661
3722
|
width: "100%",
|
|
3662
|
-
children: /* @__PURE__ */ (0,
|
|
3723
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3663
3724
|
import_themes.Flex,
|
|
3664
3725
|
{
|
|
3665
3726
|
align: "center",
|
|
@@ -3672,21 +3733,21 @@ function StartReview({ onStart }) {
|
|
|
3672
3733
|
px: { initial: "4", sm: "0" },
|
|
3673
3734
|
width: "100%",
|
|
3674
3735
|
children: [
|
|
3675
|
-
/* @__PURE__ */ (0,
|
|
3676
|
-
/* @__PURE__ */ (0,
|
|
3677
|
-
/* @__PURE__ */ (0,
|
|
3678
|
-
/* @__PURE__ */ (0,
|
|
3679
|
-
/* @__PURE__ */ (0,
|
|
3736
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
3737
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
3738
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes28.Separator, { my: "4", style: { width: 100 } }),
|
|
3739
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
3740
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
3680
3741
|
" ",
|
|
3681
|
-
/* @__PURE__ */ (0,
|
|
3742
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { children: reviewContents.description })
|
|
3682
3743
|
] }),
|
|
3683
|
-
/* @__PURE__ */ (0,
|
|
3744
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
3684
3745
|
if (done) {
|
|
3685
3746
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
3686
3747
|
}
|
|
3687
3748
|
return renderPreviewContent({ question });
|
|
3688
3749
|
}) }),
|
|
3689
|
-
/* @__PURE__ */ (0,
|
|
3750
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
|
|
3690
3751
|
]
|
|
3691
3752
|
}
|
|
3692
3753
|
)
|
|
@@ -3696,13 +3757,13 @@ function StartReview({ onStart }) {
|
|
|
3696
3757
|
var start_review_default = StartReview;
|
|
3697
3758
|
|
|
3698
3759
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
3699
|
-
var
|
|
3760
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3700
3761
|
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
3701
3762
|
function CompleteReview(props) {
|
|
3702
3763
|
const { onClickReviewMyAnswer } = props;
|
|
3703
3764
|
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
3704
3765
|
const { reviewMeta } = curriculum.contents;
|
|
3705
|
-
return /* @__PURE__ */ (0,
|
|
3766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3706
3767
|
import_themes.Flex,
|
|
3707
3768
|
{
|
|
3708
3769
|
align: "center",
|
|
@@ -3715,9 +3776,9 @@ function CompleteReview(props) {
|
|
|
3715
3776
|
my: "6",
|
|
3716
3777
|
width: "100%",
|
|
3717
3778
|
children: [
|
|
3718
|
-
/* @__PURE__ */ (0,
|
|
3719
|
-
/* @__PURE__ */ (0,
|
|
3720
|
-
/* @__PURE__ */ (0,
|
|
3779
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes.Flex, { align: "center", direction: "column", children: [
|
|
3780
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Heading2, { mb: "6", variant: "heading5", weight: "regular", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewTopTitle) || "\uC751\uB2F5\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uC81C\uCD9C\uD588\uC2B5\uB2C8\uB2E4" }),
|
|
3781
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3721
3782
|
"img",
|
|
3722
3783
|
{
|
|
3723
3784
|
alt: "complete-review",
|
|
@@ -3726,19 +3787,19 @@ function CompleteReview(props) {
|
|
|
3726
3787
|
width: 118
|
|
3727
3788
|
}
|
|
3728
3789
|
),
|
|
3729
|
-
/* @__PURE__ */ (0,
|
|
3730
|
-
/* @__PURE__ */ (0,
|
|
3731
|
-
/* @__PURE__ */ (0,
|
|
3790
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typo, { color: "gray", mt: "6", variant: "caption", children: sectionTitle }),
|
|
3791
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Heading2, { variant: "heading5", children: reviewContents.title }),
|
|
3792
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typo, { align: "center", color: "gray", mt: "6", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewDescription) || `\uC774\uBC88 \uD559\uC2B5\uC774 \uB9AC\uB354\uC2ED\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uAE30\uB97C \uBC14\uB78D\uB2C8\uB2E4.
|
|
3732
3793
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
3733
3794
|
] }),
|
|
3734
|
-
/* @__PURE__ */ (0,
|
|
3735
|
-
/* @__PURE__ */ (0,
|
|
3795
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes16.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
3796
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
3736
3797
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
3737
|
-
/* @__PURE__ */ (0,
|
|
3798
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons.ResetIcon, {})
|
|
3738
3799
|
] }),
|
|
3739
|
-
/* @__PURE__ */ (0,
|
|
3800
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Button, { onClick: onClickNextContents, children: [
|
|
3740
3801
|
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
3741
|
-
/* @__PURE__ */ (0,
|
|
3802
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons.HomeIcon, {})
|
|
3742
3803
|
] })
|
|
3743
3804
|
] })
|
|
3744
3805
|
]
|
|
@@ -3748,9 +3809,9 @@ function CompleteReview(props) {
|
|
|
3748
3809
|
var complete_review_default = CompleteReview;
|
|
3749
3810
|
|
|
3750
3811
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.tsx
|
|
3751
|
-
var
|
|
3812
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3752
3813
|
function AlignCenter(props) {
|
|
3753
|
-
return /* @__PURE__ */ (0,
|
|
3814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3754
3815
|
import_themes.Flex,
|
|
3755
3816
|
__spreadValues({
|
|
3756
3817
|
align: "center",
|
|
@@ -3765,7 +3826,7 @@ function ReviewQuestionLayout({
|
|
|
3765
3826
|
Body,
|
|
3766
3827
|
Footer
|
|
3767
3828
|
}) {
|
|
3768
|
-
return /* @__PURE__ */ (0,
|
|
3829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3769
3830
|
import_themes16.Grid,
|
|
3770
3831
|
{
|
|
3771
3832
|
align: "center",
|
|
@@ -3778,18 +3839,18 @@ function ReviewQuestionLayout({
|
|
|
3778
3839
|
},
|
|
3779
3840
|
width: "100%",
|
|
3780
3841
|
children: [
|
|
3781
|
-
/* @__PURE__ */ (0,
|
|
3782
|
-
/* @__PURE__ */ (0,
|
|
3783
|
-
/* @__PURE__ */ (0,
|
|
3842
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, { maxWidth: "650px", width: "100%", children: Header }) }),
|
|
3843
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3784
3845
|
AlignCenter,
|
|
3785
3846
|
{
|
|
3786
3847
|
p: "3",
|
|
3787
3848
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
3788
|
-
children: /* @__PURE__ */ (0,
|
|
3849
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
3789
3850
|
}
|
|
3790
3851
|
),
|
|
3791
|
-
/* @__PURE__ */ (0,
|
|
3792
|
-
/* @__PURE__ */ (0,
|
|
3852
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3853
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, { maxWidth: "650px", width: "100%", children: Footer }) })
|
|
3793
3854
|
]
|
|
3794
3855
|
}
|
|
3795
3856
|
);
|
|
@@ -3800,14 +3861,14 @@ var review_question_layout_default = ReviewQuestionLayout;
|
|
|
3800
3861
|
var import_themes29 = require("@radix-ui/themes");
|
|
3801
3862
|
|
|
3802
3863
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
3803
|
-
var
|
|
3864
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3804
3865
|
function ReviewQuestionHeader({
|
|
3805
3866
|
index,
|
|
3806
3867
|
total
|
|
3807
3868
|
}) {
|
|
3808
3869
|
const { reviewContents } = useCurriculumReviewContext();
|
|
3809
|
-
return /* @__PURE__ */ (0,
|
|
3810
|
-
/* @__PURE__ */ (0,
|
|
3870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
3871
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes16.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3811
3872
|
Heading2,
|
|
3812
3873
|
{
|
|
3813
3874
|
mb: "3",
|
|
@@ -3816,22 +3877,22 @@ function ReviewQuestionHeader({
|
|
|
3816
3877
|
children: reviewContents.title
|
|
3817
3878
|
}
|
|
3818
3879
|
) }),
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
3820
|
-
/* @__PURE__ */ (0,
|
|
3821
|
-
/* @__PURE__ */ (0,
|
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes.Flex, { justify: "between", mb: "2", width: "100%", children: [
|
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: "\uC9C4\uD589 \uC0C1\uD669" }),
|
|
3882
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: [
|
|
3822
3883
|
index + 1,
|
|
3823
3884
|
" / ",
|
|
3824
3885
|
total,
|
|
3825
3886
|
" \uC644\uB8CC"
|
|
3826
3887
|
] })
|
|
3827
3888
|
] }),
|
|
3828
|
-
/* @__PURE__ */ (0,
|
|
3889
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes29.Progress, { color: "iris", max: total, value: index + 1 })
|
|
3829
3890
|
] });
|
|
3830
3891
|
}
|
|
3831
3892
|
var review_question_header_default = ReviewQuestionHeader;
|
|
3832
3893
|
|
|
3833
3894
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.tsx
|
|
3834
|
-
var
|
|
3895
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3835
3896
|
function ReviewQuestionFooter({
|
|
3836
3897
|
index,
|
|
3837
3898
|
onNext,
|
|
@@ -3841,22 +3902,22 @@ function ReviewQuestionFooter({
|
|
|
3841
3902
|
onSubmit,
|
|
3842
3903
|
isLoading
|
|
3843
3904
|
}) {
|
|
3844
|
-
return /* @__PURE__ */ (0,
|
|
3845
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
3846
|
-
/* @__PURE__ */ (0,
|
|
3905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes16.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
3906
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
3907
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons.ChevronLeftIcon, {}),
|
|
3847
3908
|
"\uC774\uC804\uC73C\uB85C"
|
|
3848
|
-
] }) : /* @__PURE__ */ (0,
|
|
3849
|
-
isLast ? /* @__PURE__ */ (0,
|
|
3850
|
-
/* @__PURE__ */ (0,
|
|
3909
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes7.Box, {}),
|
|
3910
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
3911
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons.PaperPlaneIcon, {}),
|
|
3851
3912
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
3852
|
-
] }) : /* @__PURE__ */ (0,
|
|
3913
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3853
3914
|
Button,
|
|
3854
3915
|
{
|
|
3855
3916
|
disabled: isNextButtonDisabled,
|
|
3856
3917
|
onClick: onNext,
|
|
3857
3918
|
variant: "surface",
|
|
3858
3919
|
children: [
|
|
3859
|
-
/* @__PURE__ */ (0,
|
|
3920
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons.ChevronRightIcon, {}),
|
|
3860
3921
|
"\uB2E4\uC74C\uC73C\uB85C"
|
|
3861
3922
|
]
|
|
3862
3923
|
}
|
|
@@ -3871,7 +3932,7 @@ var import_react29 = require("react");
|
|
|
3871
3932
|
// src/atoms/card.tsx
|
|
3872
3933
|
var import_react28 = require("react");
|
|
3873
3934
|
var import_themes30 = require("@radix-ui/themes");
|
|
3874
|
-
var
|
|
3935
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3875
3936
|
var Card = (0, import_react28.forwardRef)(
|
|
3876
3937
|
(props, forwardedRef) => {
|
|
3877
3938
|
const _a = props, { borderDisable, borderRadius, error } = _a, rest = __objRest(_a, ["borderDisable", "borderRadius", "error"]);
|
|
@@ -3888,7 +3949,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3888
3949
|
const errorClsName = (0, import_react28.useMemo)(() => {
|
|
3889
3950
|
return error ? " error" : "";
|
|
3890
3951
|
}, [error]);
|
|
3891
|
-
return /* @__PURE__ */ (0,
|
|
3952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3892
3953
|
import_themes30.Card,
|
|
3893
3954
|
__spreadProps(__spreadValues({
|
|
3894
3955
|
variant: "surface"
|
|
@@ -3903,7 +3964,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3903
3964
|
Card.displayName = "Card";
|
|
3904
3965
|
|
|
3905
3966
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
3906
|
-
var
|
|
3967
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3907
3968
|
function ReviewQuestionContentHeader({
|
|
3908
3969
|
type,
|
|
3909
3970
|
title,
|
|
@@ -3911,9 +3972,9 @@ function ReviewQuestionContentHeader({
|
|
|
3911
3972
|
icon
|
|
3912
3973
|
}) {
|
|
3913
3974
|
const Icon = getCurriculumIcon({ type, icon });
|
|
3914
|
-
return /* @__PURE__ */ (0,
|
|
3915
|
-
/* @__PURE__ */ (0,
|
|
3916
|
-
/* @__PURE__ */ (0,
|
|
3975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes7.Box, { children: [
|
|
3976
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes.Flex, { gap: "2", mb: "3", children: [
|
|
3977
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3917
3978
|
Icon,
|
|
3918
3979
|
{
|
|
3919
3980
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -3921,14 +3982,14 @@ function ReviewQuestionContentHeader({
|
|
|
3921
3982
|
width: "16"
|
|
3922
3983
|
}
|
|
3923
3984
|
) }),
|
|
3924
|
-
/* @__PURE__ */ (0,
|
|
3985
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", weight: "bold", children: title })
|
|
3925
3986
|
] }),
|
|
3926
|
-
/* @__PURE__ */ (0,
|
|
3987
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { as: "p", color: "gray", children: question })
|
|
3927
3988
|
] });
|
|
3928
3989
|
}
|
|
3929
3990
|
|
|
3930
3991
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
3931
|
-
var
|
|
3992
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3932
3993
|
var correctAnswerStyle = {
|
|
3933
3994
|
backgroundColor: "var(--green-a2)"
|
|
3934
3995
|
};
|
|
@@ -3945,8 +4006,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3945
4006
|
if (isWrong) return "red";
|
|
3946
4007
|
return void 0;
|
|
3947
4008
|
}, [isCorrect, isWrong]);
|
|
3948
|
-
return /* @__PURE__ */ (0,
|
|
3949
|
-
/* @__PURE__ */ (0,
|
|
4009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4010
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3950
4011
|
ReviewQuestionContentHeader,
|
|
3951
4012
|
{
|
|
3952
4013
|
icon: question.icon,
|
|
@@ -3955,8 +4016,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3955
4016
|
type: question.type
|
|
3956
4017
|
}
|
|
3957
4018
|
) }),
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
3959
|
-
/* @__PURE__ */ (0,
|
|
4019
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
4020
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes7.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3960
4021
|
RadioButtonCard.Root,
|
|
3961
4022
|
{
|
|
3962
4023
|
color: radioColor,
|
|
@@ -3968,7 +4029,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3968
4029
|
position: "absolute"
|
|
3969
4030
|
},
|
|
3970
4031
|
value: answer,
|
|
3971
|
-
children: /* @__PURE__ */ (0,
|
|
4032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes.Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
|
|
3972
4033
|
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
3973
4034
|
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
3974
4035
|
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
@@ -3976,15 +4037,15 @@ function ReviewQuestionRadio(props) {
|
|
|
3976
4037
|
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
3977
4038
|
return {};
|
|
3978
4039
|
})();
|
|
3979
|
-
return /* @__PURE__ */ (0,
|
|
4040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3980
4041
|
RadioButtonCard.Item,
|
|
3981
4042
|
{
|
|
3982
4043
|
style,
|
|
3983
4044
|
value: i.toString(),
|
|
3984
|
-
children: /* @__PURE__ */ (0,
|
|
3985
|
-
/* @__PURE__ */ (0,
|
|
3986
|
-
isThisOptionCorrect ? /* @__PURE__ */ (0,
|
|
3987
|
-
isThisOptionWrong ? /* @__PURE__ */ (0,
|
|
4045
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes7.Box, { children: [
|
|
4046
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { as: "p", children: option.label }),
|
|
4047
|
+
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
4048
|
+
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
3988
4049
|
] })
|
|
3989
4050
|
},
|
|
3990
4051
|
`${option.label}-${i}`
|
|
@@ -3992,7 +4053,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3992
4053
|
}) })
|
|
3993
4054
|
}
|
|
3994
4055
|
) }),
|
|
3995
|
-
/* @__PURE__ */ (0,
|
|
4056
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes.Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
|
|
3996
4057
|
] })
|
|
3997
4058
|
] });
|
|
3998
4059
|
}
|
|
@@ -4001,7 +4062,7 @@ var review_question_radio_default = ReviewQuestionRadio;
|
|
|
4001
4062
|
// src/atoms/text-area.tsx
|
|
4002
4063
|
var import_themes31 = require("@radix-ui/themes");
|
|
4003
4064
|
var import_react30 = require("react");
|
|
4004
|
-
var
|
|
4065
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4005
4066
|
var TextArea = (0, import_react30.forwardRef)(
|
|
4006
4067
|
(props, ref) => {
|
|
4007
4068
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
@@ -4013,7 +4074,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
4013
4074
|
return __spreadValues(__spreadValues({}, style || {}), errorStyle);
|
|
4014
4075
|
}, [error, style]);
|
|
4015
4076
|
const classNameStr = error ? `error ${className}` : className;
|
|
4016
|
-
return /* @__PURE__ */ (0,
|
|
4077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4017
4078
|
import_themes31.TextArea,
|
|
4018
4079
|
__spreadProps(__spreadValues({}, rest), {
|
|
4019
4080
|
className: classNameStr,
|
|
@@ -4029,12 +4090,12 @@ TextArea.displayName = "TextArea";
|
|
|
4029
4090
|
var import_themes32 = require("@radix-ui/themes");
|
|
4030
4091
|
|
|
4031
4092
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
4032
|
-
var
|
|
4093
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4033
4094
|
function ReviewQuestionText(props) {
|
|
4034
4095
|
const { question, answer, onChange } = props;
|
|
4035
4096
|
const minLengthNotMet = question.minLength && answer.length < question.minLength;
|
|
4036
4097
|
const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
|
|
4037
|
-
return /* @__PURE__ */ (0,
|
|
4098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4038
4099
|
Card,
|
|
4039
4100
|
{
|
|
4040
4101
|
size: "2",
|
|
@@ -4042,9 +4103,9 @@ function ReviewQuestionText(props) {
|
|
|
4042
4103
|
width: "100%",
|
|
4043
4104
|
height: "100%"
|
|
4044
4105
|
},
|
|
4045
|
-
children: /* @__PURE__ */ (0,
|
|
4046
|
-
/* @__PURE__ */ (0,
|
|
4047
|
-
/* @__PURE__ */ (0,
|
|
4106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
4107
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4108
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4048
4109
|
ReviewQuestionContentHeader,
|
|
4049
4110
|
{
|
|
4050
4111
|
icon: question.icon,
|
|
@@ -4053,7 +4114,7 @@ function ReviewQuestionText(props) {
|
|
|
4053
4114
|
type: question.type
|
|
4054
4115
|
}
|
|
4055
4116
|
),
|
|
4056
|
-
/* @__PURE__ */ (0,
|
|
4117
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4057
4118
|
TextArea,
|
|
4058
4119
|
{
|
|
4059
4120
|
mt: "2",
|
|
@@ -4065,17 +4126,17 @@ function ReviewQuestionText(props) {
|
|
|
4065
4126
|
}
|
|
4066
4127
|
)
|
|
4067
4128
|
] }),
|
|
4068
|
-
minLengthNotMet ? /* @__PURE__ */ (0,
|
|
4069
|
-
/* @__PURE__ */ (0,
|
|
4070
|
-
question.minLengthInfoMessage ? /* @__PURE__ */ (0,
|
|
4129
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes7.Box, { mt: "2", children: [
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
|
|
4131
|
+
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4071
4132
|
import_themes32.Callout.Root,
|
|
4072
4133
|
{
|
|
4073
4134
|
color: "iris",
|
|
4074
4135
|
mt: "2",
|
|
4075
4136
|
style: { alignItems: "center" },
|
|
4076
4137
|
children: [
|
|
4077
|
-
/* @__PURE__ */ (0,
|
|
4078
|
-
/* @__PURE__ */ (0,
|
|
4138
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes32.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons.BellIcon, {}) }),
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes32.Callout.Text, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
|
|
4079
4140
|
]
|
|
4080
4141
|
}
|
|
4081
4142
|
) : null
|
|
@@ -4090,12 +4151,12 @@ var review_question_text_default = ReviewQuestionText;
|
|
|
4090
4151
|
var import_themes33 = require("@radix-ui/themes");
|
|
4091
4152
|
|
|
4092
4153
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
4093
|
-
var
|
|
4154
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4094
4155
|
function ReviewQuestionSatisfisRadio(props) {
|
|
4095
4156
|
var _a, _b, _c;
|
|
4096
4157
|
const { question, answer, onChange } = props;
|
|
4097
|
-
return /* @__PURE__ */ (0,
|
|
4098
|
-
/* @__PURE__ */ (0,
|
|
4158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4099
4160
|
ReviewQuestionContentHeader,
|
|
4100
4161
|
{
|
|
4101
4162
|
icon: question.icon,
|
|
@@ -4104,18 +4165,18 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
4104
4165
|
type: question.type
|
|
4105
4166
|
}
|
|
4106
4167
|
) }),
|
|
4107
|
-
/* @__PURE__ */ (0,
|
|
4168
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes33.RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes.Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes33.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
|
|
4108
4169
|
] });
|
|
4109
4170
|
}
|
|
4110
4171
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
4111
4172
|
|
|
4112
4173
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
4113
|
-
var
|
|
4174
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4114
4175
|
function ReviewQuestionSatisfisText(props) {
|
|
4115
4176
|
var _a, _b;
|
|
4116
4177
|
const { question, answer, onChange } = props;
|
|
4117
|
-
return /* @__PURE__ */ (0,
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
4179
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4119
4180
|
ReviewQuestionContentHeader,
|
|
4120
4181
|
{
|
|
4121
4182
|
icon: question.icon,
|
|
@@ -4124,7 +4185,7 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4124
4185
|
type: question.type
|
|
4125
4186
|
}
|
|
4126
4187
|
),
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4188
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4128
4189
|
TextArea,
|
|
4129
4190
|
{
|
|
4130
4191
|
mt: "2",
|
|
@@ -4142,11 +4203,11 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4142
4203
|
}
|
|
4143
4204
|
|
|
4144
4205
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
4145
|
-
var
|
|
4206
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4146
4207
|
function ReviewQuestionBody(props) {
|
|
4147
4208
|
const { question, answer, error, onChange } = props;
|
|
4148
4209
|
if (question.type === "question_radio") {
|
|
4149
|
-
return /* @__PURE__ */ (0,
|
|
4210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4150
4211
|
review_question_radio_default,
|
|
4151
4212
|
{
|
|
4152
4213
|
answer,
|
|
@@ -4157,7 +4218,7 @@ function ReviewQuestionBody(props) {
|
|
|
4157
4218
|
);
|
|
4158
4219
|
}
|
|
4159
4220
|
if (question.type === "question_text") {
|
|
4160
|
-
return /* @__PURE__ */ (0,
|
|
4221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4161
4222
|
review_question_text_default,
|
|
4162
4223
|
{
|
|
4163
4224
|
answer,
|
|
@@ -4168,7 +4229,7 @@ function ReviewQuestionBody(props) {
|
|
|
4168
4229
|
);
|
|
4169
4230
|
}
|
|
4170
4231
|
if (question.type === "question_satisfaction_option") {
|
|
4171
|
-
return /* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4172
4233
|
review_question_satisfaction_option_default,
|
|
4173
4234
|
{
|
|
4174
4235
|
answer,
|
|
@@ -4179,7 +4240,7 @@ function ReviewQuestionBody(props) {
|
|
|
4179
4240
|
);
|
|
4180
4241
|
}
|
|
4181
4242
|
if (question.type === "question_satisfaction_text") {
|
|
4182
|
-
return /* @__PURE__ */ (0,
|
|
4243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4183
4244
|
ReviewQuestionSatisfisText,
|
|
4184
4245
|
{
|
|
4185
4246
|
answer,
|
|
@@ -4194,7 +4255,7 @@ function ReviewQuestionBody(props) {
|
|
|
4194
4255
|
var review_question_body_default = ReviewQuestionBody;
|
|
4195
4256
|
|
|
4196
4257
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
4197
|
-
var
|
|
4258
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4198
4259
|
function ReviewQuestion({
|
|
4199
4260
|
question,
|
|
4200
4261
|
index,
|
|
@@ -4209,10 +4270,10 @@ function ReviewQuestion({
|
|
|
4209
4270
|
onSubmit,
|
|
4210
4271
|
isLoading
|
|
4211
4272
|
}) {
|
|
4212
|
-
return /* @__PURE__ */ (0,
|
|
4273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4213
4274
|
review_question_layout_default,
|
|
4214
4275
|
{
|
|
4215
|
-
Body: /* @__PURE__ */ (0,
|
|
4276
|
+
Body: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4216
4277
|
review_question_body_default,
|
|
4217
4278
|
{
|
|
4218
4279
|
answer,
|
|
@@ -4221,7 +4282,7 @@ function ReviewQuestion({
|
|
|
4221
4282
|
question
|
|
4222
4283
|
}
|
|
4223
4284
|
),
|
|
4224
|
-
Footer: /* @__PURE__ */ (0,
|
|
4285
|
+
Footer: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4225
4286
|
review_question_footer_default,
|
|
4226
4287
|
{
|
|
4227
4288
|
index,
|
|
@@ -4233,14 +4294,14 @@ function ReviewQuestion({
|
|
|
4233
4294
|
onSubmit
|
|
4234
4295
|
}
|
|
4235
4296
|
),
|
|
4236
|
-
Header: /* @__PURE__ */ (0,
|
|
4297
|
+
Header: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(review_question_header_default, { index, total })
|
|
4237
4298
|
}
|
|
4238
4299
|
);
|
|
4239
4300
|
}
|
|
4240
4301
|
var ReviewQuestion_default = ReviewQuestion;
|
|
4241
4302
|
|
|
4242
4303
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
4243
|
-
var
|
|
4304
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4244
4305
|
function CurriculumReviewStepsInner() {
|
|
4245
4306
|
const {
|
|
4246
4307
|
formik,
|
|
@@ -4258,10 +4319,10 @@ function CurriculumReviewStepsInner() {
|
|
|
4258
4319
|
} = useCurriculumReviewContext();
|
|
4259
4320
|
const { questions } = reviewContents;
|
|
4260
4321
|
if (step === 0) {
|
|
4261
|
-
return /* @__PURE__ */ (0,
|
|
4322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(start_review_default, { onStart: handleStart });
|
|
4262
4323
|
}
|
|
4263
4324
|
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
4264
|
-
return /* @__PURE__ */ (0,
|
|
4325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4265
4326
|
ReviewQuestion_default,
|
|
4266
4327
|
{
|
|
4267
4328
|
answer: currentAnswer,
|
|
@@ -4279,7 +4340,7 @@ function CurriculumReviewStepsInner() {
|
|
|
4279
4340
|
}
|
|
4280
4341
|
);
|
|
4281
4342
|
}
|
|
4282
|
-
return /* @__PURE__ */ (0,
|
|
4343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(complete_review_default, { onClickReviewMyAnswer });
|
|
4283
4344
|
}
|
|
4284
4345
|
function CurriculumReviewSteps({
|
|
4285
4346
|
contents,
|
|
@@ -4292,7 +4353,7 @@ function CurriculumReviewSteps({
|
|
|
4292
4353
|
mode,
|
|
4293
4354
|
done
|
|
4294
4355
|
}) {
|
|
4295
|
-
return /* @__PURE__ */ (0,
|
|
4356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4296
4357
|
CurriculumReviewProvider,
|
|
4297
4358
|
{
|
|
4298
4359
|
curriculum,
|
|
@@ -4304,14 +4365,14 @@ function CurriculumReviewSteps({
|
|
|
4304
4365
|
onSubmit,
|
|
4305
4366
|
reviewContents: contents,
|
|
4306
4367
|
sectionTitle: title,
|
|
4307
|
-
children: /* @__PURE__ */ (0,
|
|
4368
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CurriculumReviewStepsInner, {})
|
|
4308
4369
|
}
|
|
4309
4370
|
);
|
|
4310
4371
|
}
|
|
4311
4372
|
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
4312
4373
|
|
|
4313
4374
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
4314
|
-
var
|
|
4375
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4315
4376
|
function CurriculumReview(props) {
|
|
4316
4377
|
const { item, sectionTitle } = props;
|
|
4317
4378
|
const { description, buttonTitle } = item;
|
|
@@ -4376,8 +4437,8 @@ function CurriculumReview(props) {
|
|
|
4376
4437
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4377
4438
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4378
4439
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4379
|
-
return /* @__PURE__ */ (0,
|
|
4380
|
-
/* @__PURE__ */ (0,
|
|
4440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Dialog.Root, { onOpenChange: setOpen, open, children: [
|
|
4441
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4381
4442
|
import_themes.Flex,
|
|
4382
4443
|
{
|
|
4383
4444
|
align: "center",
|
|
@@ -4394,21 +4455,21 @@ function CurriculumReview(props) {
|
|
|
4394
4455
|
},
|
|
4395
4456
|
width: "100%",
|
|
4396
4457
|
children: [
|
|
4397
|
-
/* @__PURE__ */ (0,
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4399
|
-
/* @__PURE__ */ (0,
|
|
4458
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { color: "gray", weight: "bold", children: curriculum.title }),
|
|
4459
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4460
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4400
4461
|
Button,
|
|
4401
4462
|
{
|
|
4402
4463
|
mt: "3",
|
|
4403
4464
|
style: { minWidth: 232, backgroundColor: bgColor },
|
|
4404
4465
|
variant: done ? "outline" : "solid",
|
|
4405
|
-
children: /* @__PURE__ */ (0,
|
|
4466
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { truncate: true, children: done ? "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC\uBCF4\uAE30" : buttonTitle })
|
|
4406
4467
|
}
|
|
4407
4468
|
) })
|
|
4408
4469
|
]
|
|
4409
4470
|
}
|
|
4410
4471
|
),
|
|
4411
|
-
/* @__PURE__ */ (0,
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4412
4473
|
Dialog.Content,
|
|
4413
4474
|
{
|
|
4414
4475
|
height: "100%",
|
|
@@ -4416,7 +4477,7 @@ function CurriculumReview(props) {
|
|
|
4416
4477
|
style: { borderRadius: 0, padding: 0 },
|
|
4417
4478
|
title: "",
|
|
4418
4479
|
width: "100%",
|
|
4419
|
-
children: /* @__PURE__ */ (0,
|
|
4480
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4420
4481
|
import_themes.Flex,
|
|
4421
4482
|
{
|
|
4422
4483
|
align: "center",
|
|
@@ -4426,7 +4487,7 @@ function CurriculumReview(props) {
|
|
|
4426
4487
|
position: "relative",
|
|
4427
4488
|
width: "100%",
|
|
4428
4489
|
children: [
|
|
4429
|
-
/* @__PURE__ */ (0,
|
|
4490
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4430
4491
|
CurriculumReviewSteps_default,
|
|
4431
4492
|
{
|
|
4432
4493
|
contents: item,
|
|
@@ -4440,27 +4501,27 @@ function CurriculumReview(props) {
|
|
|
4440
4501
|
title: sectionTitle
|
|
4441
4502
|
}
|
|
4442
4503
|
),
|
|
4443
|
-
/* @__PURE__ */ (0,
|
|
4504
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes7.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4444
4505
|
IconButton,
|
|
4445
4506
|
{
|
|
4446
4507
|
color: "gray",
|
|
4447
4508
|
onClick: onClickCloseDrawer,
|
|
4448
4509
|
variant: "ghost",
|
|
4449
4510
|
children: [
|
|
4450
|
-
/* @__PURE__ */ (0,
|
|
4451
|
-
/* @__PURE__ */ (0,
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes7.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons7.Cross1Icon, { height: 20, width: 20 }) }),
|
|
4512
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes7.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons7.Cross1Icon, { height: 16, width: 16 }) })
|
|
4452
4513
|
]
|
|
4453
4514
|
}
|
|
4454
4515
|
) }),
|
|
4455
|
-
/* @__PURE__ */ (0,
|
|
4516
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4456
4517
|
Dialog.Content,
|
|
4457
4518
|
{
|
|
4458
|
-
buttons: /* @__PURE__ */ (0,
|
|
4459
|
-
/* @__PURE__ */ (0,
|
|
4460
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
buttons: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes.Flex, { gap: "3", justify: "end", children: [
|
|
4520
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { color: "gray", variant: "outline", children: "\uB3CC\uC544\uAC00\uAE30" }) }),
|
|
4521
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { color: "red", onClick: onClickEndReview, children: "\uB098\uAC00\uAE30" }) })
|
|
4461
4522
|
] }),
|
|
4462
4523
|
title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
|
|
4463
|
-
children: /* @__PURE__ */ (0,
|
|
4524
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { children: "\uD398\uC774\uC9C0\uC5D0\uC11C \uBC97\uC5B4\uB098\uBA74 \uC791\uC131\uD55C \uB0B4\uC6A9\uC774 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4." })
|
|
4464
4525
|
}
|
|
4465
4526
|
) })
|
|
4466
4527
|
]
|
|
@@ -4474,7 +4535,7 @@ var curriculum_review_default = CurriculumReview;
|
|
|
4474
4535
|
|
|
4475
4536
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx
|
|
4476
4537
|
var import_react32 = require("react");
|
|
4477
|
-
var
|
|
4538
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4478
4539
|
function CurriculumAiTraning({
|
|
4479
4540
|
item
|
|
4480
4541
|
}) {
|
|
@@ -4484,7 +4545,7 @@ function CurriculumAiTraning({
|
|
|
4484
4545
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4485
4546
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4486
4547
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4487
|
-
return /* @__PURE__ */ (0,
|
|
4548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4488
4549
|
import_themes.Flex,
|
|
4489
4550
|
{
|
|
4490
4551
|
align: "center",
|
|
@@ -4499,9 +4560,9 @@ function CurriculumAiTraning({
|
|
|
4499
4560
|
},
|
|
4500
4561
|
width: "100%",
|
|
4501
4562
|
children: [
|
|
4502
|
-
/* @__PURE__ */ (0,
|
|
4503
|
-
/* @__PURE__ */ (0,
|
|
4504
|
-
/* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4564
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4505
4566
|
Button,
|
|
4506
4567
|
{
|
|
4507
4568
|
mt: "3",
|
|
@@ -4512,7 +4573,7 @@ function CurriculumAiTraning({
|
|
|
4512
4573
|
variant: done ? "outline" : "solid",
|
|
4513
4574
|
children: [
|
|
4514
4575
|
done ? "\uB2E4\uC2DC \uC5F0\uC2B5\uD558\uAE30" : buttonTitle || "\uC2DC\uC791\uD558\uAE30",
|
|
4515
|
-
done ? /* @__PURE__ */ (0,
|
|
4576
|
+
done ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons.ResetIcon, {}) : null
|
|
4516
4577
|
]
|
|
4517
4578
|
}
|
|
4518
4579
|
)
|
|
@@ -4524,7 +4585,7 @@ var curriculum_ai_traning_default = CurriculumAiTraning;
|
|
|
4524
4585
|
|
|
4525
4586
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-file-download.tsx
|
|
4526
4587
|
var import_react33 = require("react");
|
|
4527
|
-
var
|
|
4588
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4528
4589
|
function CurriculumFileDownload(props) {
|
|
4529
4590
|
const { item } = props;
|
|
4530
4591
|
const { title, description, files } = item;
|
|
@@ -4538,7 +4599,7 @@ function CurriculumFileDownload(props) {
|
|
|
4538
4599
|
}
|
|
4539
4600
|
onClickfileDownload(item, file);
|
|
4540
4601
|
};
|
|
4541
|
-
return /* @__PURE__ */ (0,
|
|
4602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4542
4603
|
import_themes.Flex,
|
|
4543
4604
|
{
|
|
4544
4605
|
align: "center",
|
|
@@ -4549,9 +4610,9 @@ function CurriculumFileDownload(props) {
|
|
|
4549
4610
|
py: "3",
|
|
4550
4611
|
width: "100%",
|
|
4551
4612
|
children: [
|
|
4552
|
-
/* @__PURE__ */ (0,
|
|
4553
|
-
description ? /* @__PURE__ */ (0,
|
|
4554
|
-
/* @__PURE__ */ (0,
|
|
4613
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4614
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }) : null,
|
|
4615
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4555
4616
|
import_themes.Flex,
|
|
4556
4617
|
{
|
|
4557
4618
|
direction: "column",
|
|
@@ -4559,7 +4620,7 @@ function CurriculumFileDownload(props) {
|
|
|
4559
4620
|
mt: "4",
|
|
4560
4621
|
style: { width: "100%", maxWidth: 520 },
|
|
4561
4622
|
children: files.map((file) => {
|
|
4562
|
-
return /* @__PURE__ */ (0,
|
|
4623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4563
4624
|
Button,
|
|
4564
4625
|
{
|
|
4565
4626
|
disabled: !isCallbackReady,
|
|
@@ -4567,14 +4628,14 @@ function CurriculumFileDownload(props) {
|
|
|
4567
4628
|
handleClickFile(file);
|
|
4568
4629
|
},
|
|
4569
4630
|
variant: "outline",
|
|
4570
|
-
children: /* @__PURE__ */ (0,
|
|
4631
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { truncate: true, children: file.name })
|
|
4571
4632
|
},
|
|
4572
4633
|
file.url
|
|
4573
4634
|
);
|
|
4574
4635
|
})
|
|
4575
4636
|
}
|
|
4576
4637
|
),
|
|
4577
|
-
!isCallbackReady ? /* @__PURE__ */ (0,
|
|
4638
|
+
!isCallbackReady ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { align: "center", color: "gray", mt: "3", variant: "caption", children: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC \uAE30\uB2A5\uC774 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4." }) : null
|
|
4578
4639
|
]
|
|
4579
4640
|
}
|
|
4580
4641
|
);
|
|
@@ -4582,14 +4643,14 @@ function CurriculumFileDownload(props) {
|
|
|
4582
4643
|
var curriculum_file_download_default = CurriculumFileDownload;
|
|
4583
4644
|
|
|
4584
4645
|
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
4585
|
-
var
|
|
4646
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4586
4647
|
function CurriculumBody() {
|
|
4587
4648
|
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
4588
4649
|
switch (selectedItem.type) {
|
|
4589
4650
|
case "video":
|
|
4590
|
-
return /* @__PURE__ */ (0,
|
|
4651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(curriculum_video_default, { item: selectedItem });
|
|
4591
4652
|
case "review":
|
|
4592
|
-
return /* @__PURE__ */ (0,
|
|
4653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4593
4654
|
curriculum_review_default,
|
|
4594
4655
|
{
|
|
4595
4656
|
item: selectedItem,
|
|
@@ -4597,11 +4658,11 @@ function CurriculumBody() {
|
|
|
4597
4658
|
}
|
|
4598
4659
|
);
|
|
4599
4660
|
case "aiTraining":
|
|
4600
|
-
return /* @__PURE__ */ (0,
|
|
4661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(curriculum_ai_traning_default, { item: selectedItem });
|
|
4601
4662
|
case "fileDownload":
|
|
4602
|
-
return /* @__PURE__ */ (0,
|
|
4663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(curriculum_file_download_default, { item: selectedItem });
|
|
4603
4664
|
default:
|
|
4604
|
-
return /* @__PURE__ */ (0,
|
|
4665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4605
4666
|
import_themes.Flex,
|
|
4606
4667
|
{
|
|
4607
4668
|
align: "center",
|
|
@@ -4611,9 +4672,9 @@ function CurriculumBody() {
|
|
|
4611
4672
|
justify: "center",
|
|
4612
4673
|
width: "100%",
|
|
4613
4674
|
children: [
|
|
4614
|
-
/* @__PURE__ */ (0,
|
|
4615
|
-
/* @__PURE__ */ (0,
|
|
4616
|
-
/* @__PURE__ */ (0,
|
|
4675
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons.InfoCircledIcon, { height: 24, width: 24 }),
|
|
4676
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
4677
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
4617
4678
|
${JSON.stringify(selectedItem)}` })
|
|
4618
4679
|
]
|
|
4619
4680
|
}
|
|
@@ -4628,12 +4689,12 @@ var import_react34 = require("react");
|
|
|
4628
4689
|
var import_themes34 = require("@radix-ui/themes");
|
|
4629
4690
|
|
|
4630
4691
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4631
|
-
var
|
|
4692
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4632
4693
|
function SectionTitle(props) {
|
|
4633
4694
|
const { title, duration } = props;
|
|
4634
|
-
return /* @__PURE__ */ (0,
|
|
4635
|
-
/* @__PURE__ */ (0,
|
|
4636
|
-
/* @__PURE__ */ (0,
|
|
4695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes16.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
4696
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Typo, { color: "gray", children: title }),
|
|
4697
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4637
4698
|
duration,
|
|
4638
4699
|
"\uBD84"
|
|
4639
4700
|
] })
|
|
@@ -4642,14 +4703,14 @@ function SectionTitle(props) {
|
|
|
4642
4703
|
var section_title_default = SectionTitle;
|
|
4643
4704
|
|
|
4644
4705
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.tsx
|
|
4645
|
-
var
|
|
4706
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4646
4707
|
function CurriculumSidebarItemWrapper({
|
|
4647
4708
|
children,
|
|
4648
4709
|
isSelected,
|
|
4649
4710
|
onClick,
|
|
4650
4711
|
index
|
|
4651
4712
|
}) {
|
|
4652
|
-
return /* @__PURE__ */ (0,
|
|
4713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
4653
4714
|
import_themes16.Grid,
|
|
4654
4715
|
{
|
|
4655
4716
|
align: "center",
|
|
@@ -4665,7 +4726,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4665
4726
|
cursor: onClick ? "pointer" : void 0
|
|
4666
4727
|
},
|
|
4667
4728
|
children: [
|
|
4668
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
4729
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4669
4730
|
import_themes28.Separator,
|
|
4670
4731
|
{
|
|
4671
4732
|
color: "yellow",
|
|
@@ -4682,15 +4743,15 @@ function CurriculumSidebarItemWrapper({
|
|
|
4682
4743
|
var curriculum_sidebar_item_wrapper_default = CurriculumSidebarItemWrapper;
|
|
4683
4744
|
|
|
4684
4745
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.tsx
|
|
4685
|
-
var
|
|
4746
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4686
4747
|
function CurriculumItemTitle({
|
|
4687
4748
|
title,
|
|
4688
4749
|
subText,
|
|
4689
4750
|
duration
|
|
4690
4751
|
}) {
|
|
4691
|
-
return /* @__PURE__ */ (0,
|
|
4692
|
-
/* @__PURE__ */ (0,
|
|
4693
|
-
/* @__PURE__ */ (0,
|
|
4752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes.Flex, { direction: "column", gap: "1", children: [
|
|
4753
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4754
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4694
4755
|
subText,
|
|
4695
4756
|
duration ? ` | ${duration}\uBD84` : ""
|
|
4696
4757
|
] })
|
|
@@ -4699,7 +4760,7 @@ function CurriculumItemTitle({
|
|
|
4699
4760
|
var curriculum_item_title_default = CurriculumItemTitle;
|
|
4700
4761
|
|
|
4701
4762
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-item.tsx
|
|
4702
|
-
var
|
|
4763
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4703
4764
|
function SectionCommonItem({
|
|
4704
4765
|
title,
|
|
4705
4766
|
duration,
|
|
@@ -4708,21 +4769,21 @@ function SectionCommonItem({
|
|
|
4708
4769
|
color = "gray"
|
|
4709
4770
|
}) {
|
|
4710
4771
|
const IconComp = getCurriculumIcon({ type, icon });
|
|
4711
|
-
return /* @__PURE__ */ (0,
|
|
4712
|
-
/* @__PURE__ */ (0,
|
|
4713
|
-
/* @__PURE__ */ (0,
|
|
4772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
4773
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(IconComp, { color }),
|
|
4774
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(curriculum_item_title_default, { duration, subText: getCurriculumContentSubTypeText(type), title })
|
|
4714
4775
|
] });
|
|
4715
4776
|
}
|
|
4716
4777
|
var section_item_default = SectionCommonItem;
|
|
4717
4778
|
|
|
4718
4779
|
// src/molecules/curriculumV2/CurriculumSidebar/sidebar-item.tsx
|
|
4719
|
-
var
|
|
4780
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4720
4781
|
function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
4721
4782
|
if (item.type === "sectionTitle") {
|
|
4722
|
-
return /* @__PURE__ */ (0,
|
|
4783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(section_title_default, __spreadValues({}, item), item.uuid);
|
|
4723
4784
|
}
|
|
4724
4785
|
const isSelected = selectedIndex === index;
|
|
4725
|
-
return /* @__PURE__ */ (0,
|
|
4786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4726
4787
|
curriculum_sidebar_item_wrapper_default,
|
|
4727
4788
|
{
|
|
4728
4789
|
index,
|
|
@@ -4730,7 +4791,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4730
4791
|
onClick: () => {
|
|
4731
4792
|
setSelectedIndex(index);
|
|
4732
4793
|
},
|
|
4733
|
-
children: /* @__PURE__ */ (0,
|
|
4794
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4734
4795
|
section_item_default,
|
|
4735
4796
|
__spreadProps(__spreadValues({}, item), {
|
|
4736
4797
|
color: getCurriculumIconColor({
|
|
@@ -4746,7 +4807,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4746
4807
|
var sidebar_item_default = SidebarItem;
|
|
4747
4808
|
|
|
4748
4809
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
4749
|
-
var
|
|
4810
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4750
4811
|
var TAB_LIST = [
|
|
4751
4812
|
{
|
|
4752
4813
|
label: "\uAC15\uC758 \uBAA9\uCC28",
|
|
@@ -4774,9 +4835,9 @@ function CurriculumSidebar() {
|
|
|
4774
4835
|
const tabList = (0, import_react34.useMemo)(() => {
|
|
4775
4836
|
return [...TAB_LIST, ...customTabs != null ? customTabs : []];
|
|
4776
4837
|
}, [customTabs]);
|
|
4777
|
-
return /* @__PURE__ */ (0,
|
|
4778
|
-
/* @__PURE__ */ (0,
|
|
4779
|
-
/* @__PURE__ */ (0,
|
|
4838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes34.Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_themes16.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
4839
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes34.Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes34.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
4840
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4780
4841
|
import_themes7.Box,
|
|
4781
4842
|
{
|
|
4782
4843
|
height: "100%",
|
|
@@ -4785,13 +4846,13 @@ function CurriculumSidebar() {
|
|
|
4785
4846
|
ref: scrollAreaRef,
|
|
4786
4847
|
width: "100%",
|
|
4787
4848
|
children: [
|
|
4788
|
-
/* @__PURE__ */ (0,
|
|
4849
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4789
4850
|
import_themes34.Tabs.Content,
|
|
4790
4851
|
{
|
|
4791
4852
|
style: TABS_CONTENT_STYLE,
|
|
4792
4853
|
value: TAB_LIST[0].value,
|
|
4793
4854
|
children: [
|
|
4794
|
-
list.map((item, index) => /* @__PURE__ */ (0,
|
|
4855
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4795
4856
|
sidebar_item_default,
|
|
4796
4857
|
{
|
|
4797
4858
|
done: curriculumCompleteMap[item.uuid],
|
|
@@ -4802,12 +4863,12 @@ function CurriculumSidebar() {
|
|
|
4802
4863
|
},
|
|
4803
4864
|
item.uuid
|
|
4804
4865
|
)),
|
|
4805
|
-
/* @__PURE__ */ (0,
|
|
4866
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes7.Box, { height: "150px" })
|
|
4806
4867
|
]
|
|
4807
4868
|
},
|
|
4808
4869
|
TAB_LIST[0].value
|
|
4809
4870
|
),
|
|
4810
|
-
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0,
|
|
4871
|
+
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4811
4872
|
import_themes34.Tabs.Content,
|
|
4812
4873
|
{
|
|
4813
4874
|
style: TABS_CONTENT_STYLE,
|
|
@@ -4823,11 +4884,11 @@ function CurriculumSidebar() {
|
|
|
4823
4884
|
}
|
|
4824
4885
|
|
|
4825
4886
|
// src/molecules/curriculumV2/curriculum-v2-layout.tsx
|
|
4826
|
-
var
|
|
4887
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4827
4888
|
function CurriculumV2Layout(props) {
|
|
4828
4889
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
4829
|
-
return /* @__PURE__ */ (0,
|
|
4830
|
-
/* @__PURE__ */ (0,
|
|
4890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes16.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
4891
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4831
4892
|
import_themes.Flex,
|
|
4832
4893
|
{
|
|
4833
4894
|
align: "center",
|
|
@@ -4836,8 +4897,8 @@ function CurriculumV2Layout(props) {
|
|
|
4836
4897
|
children: NavBar
|
|
4837
4898
|
}
|
|
4838
4899
|
),
|
|
4839
|
-
/* @__PURE__ */ (0,
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
4900
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4901
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4841
4902
|
import_themes.Flex,
|
|
4842
4903
|
{
|
|
4843
4904
|
align: "center",
|
|
@@ -4845,7 +4906,7 @@ function CurriculumV2Layout(props) {
|
|
|
4845
4906
|
justify: "center",
|
|
4846
4907
|
overflow: "hidden",
|
|
4847
4908
|
width: "100%",
|
|
4848
|
-
children: /* @__PURE__ */ (0,
|
|
4909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4849
4910
|
import_themes16.Grid,
|
|
4850
4911
|
{
|
|
4851
4912
|
columns: { initial: "1", md: "1fr 340px" },
|
|
@@ -4854,8 +4915,8 @@ function CurriculumV2Layout(props) {
|
|
|
4854
4915
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
4855
4916
|
width: "100%",
|
|
4856
4917
|
children: [
|
|
4857
|
-
/* @__PURE__ */ (0,
|
|
4858
|
-
/* @__PURE__ */ (0,
|
|
4918
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
4919
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
4859
4920
|
SideNav
|
|
4860
4921
|
] }),
|
|
4861
4922
|
SideBar
|
|
@@ -4879,11 +4940,11 @@ var import_react36 = require("react");
|
|
|
4879
4940
|
// src/molecules/form/form.tsx
|
|
4880
4941
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
4881
4942
|
var import_react35 = require("react");
|
|
4882
|
-
var
|
|
4943
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4883
4944
|
var Root8 = (0, import_react35.forwardRef)(
|
|
4884
4945
|
(_a, ref) => {
|
|
4885
4946
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4886
|
-
return /* @__PURE__ */ (0,
|
|
4947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4887
4948
|
RadixForm.Root,
|
|
4888
4949
|
__spreadProps(__spreadValues({}, rest), {
|
|
4889
4950
|
className: `FormRoot ${className || ""}`,
|
|
@@ -4900,25 +4961,25 @@ var FieldContext = (0, import_react35.createContext)({
|
|
|
4900
4961
|
var Field2 = (0, import_react35.forwardRef)(
|
|
4901
4962
|
(_a, ref) => {
|
|
4902
4963
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4903
|
-
return /* @__PURE__ */ (0,
|
|
4964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4904
4965
|
RadixForm.Field,
|
|
4905
4966
|
__spreadProps(__spreadValues({}, rest), {
|
|
4906
4967
|
className: `FormField ${className || ""}`,
|
|
4907
4968
|
ref,
|
|
4908
|
-
children: /* @__PURE__ */ (0,
|
|
4969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(FieldContext.Provider, { value: rest, children })
|
|
4909
4970
|
})
|
|
4910
4971
|
);
|
|
4911
4972
|
}
|
|
4912
4973
|
);
|
|
4913
4974
|
Field2.displayName = "FORM_FIELD";
|
|
4914
4975
|
function HeadingLabel(props) {
|
|
4915
|
-
return /* @__PURE__ */ (0,
|
|
4976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
4916
4977
|
}
|
|
4917
4978
|
function CaptionLabel(props) {
|
|
4918
|
-
return /* @__PURE__ */ (0,
|
|
4979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption", weight: "bold" }, props), { children: props.children }));
|
|
4919
4980
|
}
|
|
4920
4981
|
function BodyLabel(props) {
|
|
4921
|
-
return /* @__PURE__ */ (0,
|
|
4982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, __spreadProps(__spreadValues({ variant: "body", weight: "bold" }, props), { children: props.children }));
|
|
4922
4983
|
}
|
|
4923
4984
|
var Label2 = (0, import_react35.forwardRef)(
|
|
4924
4985
|
(_a, ref) => {
|
|
@@ -4935,15 +4996,15 @@ var Label2 = (0, import_react35.forwardRef)(
|
|
|
4935
4996
|
}
|
|
4936
4997
|
}, [variant]);
|
|
4937
4998
|
const fieldProps = (0, import_react35.useContext)(FieldContext);
|
|
4938
|
-
return /* @__PURE__ */ (0,
|
|
4999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4939
5000
|
RadixForm.Label,
|
|
4940
5001
|
__spreadProps(__spreadValues({}, rest), {
|
|
4941
5002
|
asChild: true,
|
|
4942
5003
|
className: `FormLabel ${className || ""}`,
|
|
4943
5004
|
ref,
|
|
4944
|
-
children: /* @__PURE__ */ (0,
|
|
5005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Comp, { children: [
|
|
4945
5006
|
children,
|
|
4946
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
5007
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
4947
5008
|
] })
|
|
4948
5009
|
})
|
|
4949
5010
|
);
|
|
@@ -4953,13 +5014,13 @@ Label2.displayName = "FORM_Label";
|
|
|
4953
5014
|
var Message2 = (0, import_react35.forwardRef)(
|
|
4954
5015
|
(_a, ref) => {
|
|
4955
5016
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4956
|
-
return /* @__PURE__ */ (0,
|
|
5017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4957
5018
|
RadixForm.Message,
|
|
4958
5019
|
__spreadProps(__spreadValues({}, rest), {
|
|
4959
5020
|
asChild: true,
|
|
4960
5021
|
className: `FormMessage ${className || ""}`,
|
|
4961
5022
|
ref,
|
|
4962
|
-
children: /* @__PURE__ */ (0,
|
|
5023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { color: "red", children })
|
|
4963
5024
|
})
|
|
4964
5025
|
);
|
|
4965
5026
|
}
|
|
@@ -4969,7 +5030,7 @@ var Control2 = (0, import_react35.forwardRef)(
|
|
|
4969
5030
|
(_a, ref) => {
|
|
4970
5031
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
4971
5032
|
const fieldProps = (0, import_react35.useContext)(FieldContext);
|
|
4972
|
-
return /* @__PURE__ */ (0,
|
|
5033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4973
5034
|
RadixForm.Control,
|
|
4974
5035
|
__spreadProps(__spreadValues({}, rest), {
|
|
4975
5036
|
className: `FormControl ${className || ""}`,
|
|
@@ -4992,10 +5053,10 @@ function FormItem(_a) {
|
|
|
4992
5053
|
"children",
|
|
4993
5054
|
"errorMessage"
|
|
4994
5055
|
]);
|
|
4995
|
-
return /* @__PURE__ */ (0,
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
5056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
5057
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
4997
5058
|
children,
|
|
4998
|
-
/* @__PURE__ */ (0,
|
|
5059
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
4999
5060
|
] }));
|
|
5000
5061
|
}
|
|
5001
5062
|
var Form = {
|
|
@@ -5009,7 +5070,7 @@ var Form = {
|
|
|
5009
5070
|
};
|
|
5010
5071
|
|
|
5011
5072
|
// src/context/dynamic-form-context.tsx
|
|
5012
|
-
var
|
|
5073
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
5013
5074
|
var DynamicFormContext = (0, import_react36.createContext)(null);
|
|
5014
5075
|
function DynamicFormProvider({
|
|
5015
5076
|
children,
|
|
@@ -5035,7 +5096,7 @@ function DynamicFormProvider({
|
|
|
5035
5096
|
handleChange: formik.handleChange,
|
|
5036
5097
|
handleBlur: formik.handleBlur
|
|
5037
5098
|
};
|
|
5038
|
-
return /* @__PURE__ */ (0,
|
|
5099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
|
|
5039
5100
|
}
|
|
5040
5101
|
function useDynamicForm() {
|
|
5041
5102
|
const context = (0, import_react36.useContext)(DynamicFormContext);
|
|
@@ -5048,7 +5109,7 @@ function useDynamicForm() {
|
|
|
5048
5109
|
// src/atoms/check-box-group.tsx
|
|
5049
5110
|
var import_themes35 = require("@radix-ui/themes");
|
|
5050
5111
|
var import_react37 = require("react");
|
|
5051
|
-
var
|
|
5112
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
5052
5113
|
var Root9 = (0, import_react37.forwardRef)((props, ref) => {
|
|
5053
5114
|
const _a = props, { children, size = "medium" } = _a, rest = __objRest(_a, ["children", "size"]);
|
|
5054
5115
|
const groupSize = (0, import_react37.useMemo)(() => {
|
|
@@ -5062,7 +5123,7 @@ var Root9 = (0, import_react37.forwardRef)((props, ref) => {
|
|
|
5062
5123
|
return "2";
|
|
5063
5124
|
}
|
|
5064
5125
|
}, [size]);
|
|
5065
|
-
return /* @__PURE__ */ (0,
|
|
5126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes35.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
|
|
5066
5127
|
});
|
|
5067
5128
|
Root9.displayName = "CheckboxGroup.Root";
|
|
5068
5129
|
var CheckboxGroup = {
|
|
@@ -5073,7 +5134,7 @@ var CheckboxGroup = {
|
|
|
5073
5134
|
// src/atoms/check-box.tsx
|
|
5074
5135
|
var import_themes36 = require("@radix-ui/themes");
|
|
5075
5136
|
var import_react38 = require("react");
|
|
5076
|
-
var
|
|
5137
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5077
5138
|
var Checkbox = (0, import_react38.forwardRef)(
|
|
5078
5139
|
(props, ref) => {
|
|
5079
5140
|
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
@@ -5087,7 +5148,7 @@ var Checkbox = (0, import_react38.forwardRef)(
|
|
|
5087
5148
|
return "3";
|
|
5088
5149
|
}
|
|
5089
5150
|
}, [size]);
|
|
5090
|
-
return /* @__PURE__ */ (0,
|
|
5151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes36.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
|
|
5091
5152
|
}
|
|
5092
5153
|
);
|
|
5093
5154
|
Checkbox.displayName = "Checkbox";
|
|
@@ -5096,7 +5157,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
5096
5157
|
var import_themes37 = require("@radix-ui/themes");
|
|
5097
5158
|
|
|
5098
5159
|
// src/molecules/dynamic-field.tsx
|
|
5099
|
-
var
|
|
5160
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5100
5161
|
function isRecord(value) {
|
|
5101
5162
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5102
5163
|
}
|
|
@@ -5165,7 +5226,7 @@ function DynamicFormField({
|
|
|
5165
5226
|
const selectedValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
5166
5227
|
switch (field.type) {
|
|
5167
5228
|
case "short_text":
|
|
5168
|
-
return /* @__PURE__ */ (0,
|
|
5229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5169
5230
|
TextField.Root,
|
|
5170
5231
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5171
5232
|
placeholder: field.placeholder,
|
|
@@ -5173,7 +5234,7 @@ function DynamicFormField({
|
|
|
5173
5234
|
})
|
|
5174
5235
|
);
|
|
5175
5236
|
case "email":
|
|
5176
|
-
return /* @__PURE__ */ (0,
|
|
5237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5177
5238
|
TextField.Root,
|
|
5178
5239
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5179
5240
|
placeholder: field.placeholder,
|
|
@@ -5181,7 +5242,7 @@ function DynamicFormField({
|
|
|
5181
5242
|
})
|
|
5182
5243
|
);
|
|
5183
5244
|
case "number":
|
|
5184
|
-
return /* @__PURE__ */ (0,
|
|
5245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5185
5246
|
TextField.Root,
|
|
5186
5247
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5187
5248
|
inputMode: "numeric",
|
|
@@ -5191,9 +5252,9 @@ function DynamicFormField({
|
|
|
5191
5252
|
})
|
|
5192
5253
|
);
|
|
5193
5254
|
case "long_text":
|
|
5194
|
-
return /* @__PURE__ */ (0,
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
5195
5256
|
case "dropdown":
|
|
5196
|
-
return /* @__PURE__ */ (0,
|
|
5257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
5197
5258
|
Select.Root,
|
|
5198
5259
|
{
|
|
5199
5260
|
disabled: readonly,
|
|
@@ -5202,7 +5263,7 @@ function DynamicFormField({
|
|
|
5202
5263
|
},
|
|
5203
5264
|
value: selectedValue,
|
|
5204
5265
|
children: [
|
|
5205
|
-
/* @__PURE__ */ (0,
|
|
5266
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5206
5267
|
Select.Trigger,
|
|
5207
5268
|
{
|
|
5208
5269
|
placeholder: field.placeholder,
|
|
@@ -5214,12 +5275,12 @@ function DynamicFormField({
|
|
|
5214
5275
|
}
|
|
5215
5276
|
}
|
|
5216
5277
|
),
|
|
5217
|
-
/* @__PURE__ */ (0,
|
|
5278
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
5218
5279
|
]
|
|
5219
5280
|
}
|
|
5220
5281
|
);
|
|
5221
5282
|
case "choice":
|
|
5222
|
-
return /* @__PURE__ */ (0,
|
|
5283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5223
5284
|
import_themes33.RadioGroup.Root,
|
|
5224
5285
|
{
|
|
5225
5286
|
disabled: readonly,
|
|
@@ -5228,13 +5289,13 @@ function DynamicFormField({
|
|
|
5228
5289
|
},
|
|
5229
5290
|
orientation: field.orientation,
|
|
5230
5291
|
value: String(value || ""),
|
|
5231
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5292
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes33.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5232
5293
|
}
|
|
5233
5294
|
);
|
|
5234
5295
|
case "radio_cards": {
|
|
5235
5296
|
const options = getOptions(field);
|
|
5236
5297
|
if (!options) return null;
|
|
5237
|
-
return /* @__PURE__ */ (0,
|
|
5298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5238
5299
|
import_themes23.RadioCards.Root,
|
|
5239
5300
|
{
|
|
5240
5301
|
disabled: readonly,
|
|
@@ -5242,12 +5303,12 @@ function DynamicFormField({
|
|
|
5242
5303
|
void setFieldValue(name, newValue);
|
|
5243
5304
|
},
|
|
5244
5305
|
value: selectedValue,
|
|
5245
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
5306
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes23.RadioCards.Item, { value: String(option.value), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Typo, { children: option.label }) }, option.value))
|
|
5246
5307
|
}
|
|
5247
5308
|
);
|
|
5248
5309
|
}
|
|
5249
5310
|
case "choices":
|
|
5250
|
-
return /* @__PURE__ */ (0,
|
|
5311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5251
5312
|
CheckboxGroup.Root,
|
|
5252
5313
|
{
|
|
5253
5314
|
disabled: readonly,
|
|
@@ -5256,12 +5317,12 @@ function DynamicFormField({
|
|
|
5256
5317
|
},
|
|
5257
5318
|
orientation: field.orientation,
|
|
5258
5319
|
value: Array.isArray(value) ? value.map(String) : [],
|
|
5259
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5320
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5260
5321
|
}
|
|
5261
5322
|
);
|
|
5262
5323
|
case "yes_no":
|
|
5263
|
-
return /* @__PURE__ */ (0,
|
|
5264
|
-
/* @__PURE__ */ (0,
|
|
5324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
5325
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5265
5326
|
Checkbox,
|
|
5266
5327
|
{
|
|
5267
5328
|
checked: Boolean(value),
|
|
@@ -5271,7 +5332,7 @@ function DynamicFormField({
|
|
|
5271
5332
|
}
|
|
5272
5333
|
}
|
|
5273
5334
|
),
|
|
5274
|
-
field.description ? /* @__PURE__ */ (0,
|
|
5335
|
+
field.description ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
5275
5336
|
] });
|
|
5276
5337
|
case "image_radio_card": {
|
|
5277
5338
|
const options = getImageOptions(field);
|
|
@@ -5295,23 +5356,23 @@ function DynamicFormField({
|
|
|
5295
5356
|
if (!selectedOption) return;
|
|
5296
5357
|
void setFieldValue(name, selectedOption.value);
|
|
5297
5358
|
};
|
|
5298
|
-
return /* @__PURE__ */ (0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5299
5360
|
import_themes23.RadioCards.Root,
|
|
5300
5361
|
{
|
|
5301
5362
|
disabled: readonly,
|
|
5302
5363
|
onValueChange: readonly ? void 0 : handleValueChange,
|
|
5303
5364
|
value: selectedValue,
|
|
5304
|
-
children: /* @__PURE__ */ (0,
|
|
5365
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes16.Grid, { columns: gridColumns, gap: gridGap, rows: gridRows, children: options.map((option) => {
|
|
5305
5366
|
const optionValue = String(option.value);
|
|
5306
5367
|
const altText = option.alt || option.label;
|
|
5307
|
-
return /* @__PURE__ */ (0,
|
|
5368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5308
5369
|
import_themes23.RadioCards.Item,
|
|
5309
5370
|
{
|
|
5310
5371
|
style: {
|
|
5311
5372
|
padding: 0
|
|
5312
5373
|
},
|
|
5313
5374
|
value: optionValue,
|
|
5314
|
-
children: /* @__PURE__ */ (0,
|
|
5375
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes37.Inset, { style: { width: "100%", height: "100%", padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5315
5376
|
"img",
|
|
5316
5377
|
{
|
|
5317
5378
|
alt: altText,
|
|
@@ -5338,7 +5399,7 @@ function DynamicFormField({
|
|
|
5338
5399
|
}
|
|
5339
5400
|
|
|
5340
5401
|
// src/molecules/dynamic-form.tsx
|
|
5341
|
-
var
|
|
5402
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
5342
5403
|
function scrollToFirstError(errors, _fields) {
|
|
5343
5404
|
const firstErrorFieldName = Object.keys(errors)[0];
|
|
5344
5405
|
if (!firstErrorFieldName) return;
|
|
@@ -5425,7 +5486,7 @@ function DynamicFormRoot({
|
|
|
5425
5486
|
};
|
|
5426
5487
|
}
|
|
5427
5488
|
}, [formik.submitCount, formik.errors, fields]);
|
|
5428
|
-
return /* @__PURE__ */ (0,
|
|
5489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5429
5490
|
DynamicFormProvider,
|
|
5430
5491
|
{
|
|
5431
5492
|
fields,
|
|
@@ -5442,15 +5503,15 @@ function DynamicFormFieldList({
|
|
|
5442
5503
|
}) {
|
|
5443
5504
|
const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
|
|
5444
5505
|
const fields = fieldsProp || fieldsFromContext;
|
|
5445
|
-
return /* @__PURE__ */ (0,
|
|
5506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: fields.map((field) => {
|
|
5446
5507
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
5447
|
-
return /* @__PURE__ */ (0,
|
|
5508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5448
5509
|
import_themes38.Box,
|
|
5449
5510
|
{
|
|
5450
5511
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
5451
5512
|
"data-field-name": field.name,
|
|
5452
5513
|
mb: "2",
|
|
5453
|
-
children: /* @__PURE__ */ (0,
|
|
5514
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
5454
5515
|
Form.FormItem,
|
|
5455
5516
|
{
|
|
5456
5517
|
errorMessage,
|
|
@@ -5459,8 +5520,8 @@ function DynamicFormFieldList({
|
|
|
5459
5520
|
name: field.name,
|
|
5460
5521
|
required: field.required,
|
|
5461
5522
|
children: [
|
|
5462
|
-
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0,
|
|
5463
|
-
/* @__PURE__ */ (0,
|
|
5523
|
+
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Typo, { variant: "caption", children: field.description }) : null,
|
|
5524
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DynamicFormField, { field })
|
|
5464
5525
|
]
|
|
5465
5526
|
}
|
|
5466
5527
|
)
|
|
@@ -5609,7 +5670,7 @@ var import_react41 = require("react");
|
|
|
5609
5670
|
// src/atoms/list.tsx
|
|
5610
5671
|
var import_react40 = require("react");
|
|
5611
5672
|
var import_clsx4 = require("clsx");
|
|
5612
|
-
var
|
|
5673
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5613
5674
|
function Root10(props) {
|
|
5614
5675
|
const _a = props, {
|
|
5615
5676
|
variant,
|
|
@@ -5627,6 +5688,7 @@ function Root10(props) {
|
|
|
5627
5688
|
const Comp = variant === "ol" ? "ol" : "ul";
|
|
5628
5689
|
const className = (0, import_react40.useMemo)(
|
|
5629
5690
|
() => (0, import_clsx4.clsx)(
|
|
5691
|
+
"tipp-list",
|
|
5630
5692
|
{
|
|
5631
5693
|
"pre-space-small": preSpace === "small"
|
|
5632
5694
|
},
|
|
@@ -5634,7 +5696,7 @@ function Root10(props) {
|
|
|
5634
5696
|
),
|
|
5635
5697
|
[preSpace, propsClassName]
|
|
5636
5698
|
);
|
|
5637
|
-
return /* @__PURE__ */ (0,
|
|
5699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes.Flex, __spreadProps(__spreadValues({ asChild: true, direction: "column", gap: "1" }, rest), { className, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Comp, { children }) })) });
|
|
5638
5700
|
}
|
|
5639
5701
|
function Item2(props) {
|
|
5640
5702
|
const { children } = props;
|
|
@@ -5647,7 +5709,7 @@ function Item2(props) {
|
|
|
5647
5709
|
}
|
|
5648
5710
|
});
|
|
5649
5711
|
}, [size]);
|
|
5650
|
-
return /* @__PURE__ */ (0,
|
|
5712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("li", { children }) });
|
|
5651
5713
|
}
|
|
5652
5714
|
var ListContext = (0, import_react40.createContext)({
|
|
5653
5715
|
size: "large"
|
|
@@ -5661,7 +5723,7 @@ var List = {
|
|
|
5661
5723
|
};
|
|
5662
5724
|
|
|
5663
5725
|
// src/molecules/one-on-one-guide-list.tsx
|
|
5664
|
-
var
|
|
5726
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5665
5727
|
var oneOnOneNoteTextReplacer = (args) => {
|
|
5666
5728
|
const { text, userName, templateName } = args;
|
|
5667
5729
|
return text.replace(/\{\{Template_Name\}\}/g, templateName).replace(/\{\{Subject_Name\}\}/g, userName);
|
|
@@ -5681,43 +5743,43 @@ function OneOnOneGuideList(props) {
|
|
|
5681
5743
|
[]
|
|
5682
5744
|
);
|
|
5683
5745
|
}, [data]);
|
|
5684
|
-
return /* @__PURE__ */ (0,
|
|
5685
|
-
/* @__PURE__ */ (0,
|
|
5746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
5747
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Heading2, { mb: "2", variant: "heading5", children: oneOnOneNoteTextReplacer({
|
|
5686
5748
|
text: guideTitle || "",
|
|
5687
5749
|
userName: (relacements == null ? void 0 : relacements.userName) || "",
|
|
5688
5750
|
templateName: (relacements == null ? void 0 : relacements.templateName) || ""
|
|
5689
5751
|
}) }),
|
|
5690
|
-
/* @__PURE__ */ (0,
|
|
5752
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { as: "div", mb: "4", children: oneOnOneNoteTextReplacer({
|
|
5691
5753
|
text: guideDescription || "",
|
|
5692
5754
|
userName: (relacements == null ? void 0 : relacements.userName) || "\uD300\uC6D0",
|
|
5693
5755
|
templateName: (relacements == null ? void 0 : relacements.templateName) || "1on1"
|
|
5694
5756
|
}) }),
|
|
5695
|
-
/* @__PURE__ */ (0,
|
|
5757
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5696
5758
|
List.Root,
|
|
5697
5759
|
{
|
|
5698
5760
|
preSpace: "small",
|
|
5699
5761
|
style: { fontWeight: "bold", gap: "var(--space-5)" },
|
|
5700
5762
|
variant: "ol",
|
|
5701
5763
|
children: groupedData == null ? void 0 : groupedData.map((item) => {
|
|
5702
|
-
return /* @__PURE__ */ (0,
|
|
5703
|
-
/* @__PURE__ */ (0,
|
|
5764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(List.Item, { children: [
|
|
5765
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { as: "div", mb: "1", children: item.title }),
|
|
5704
5766
|
item.children.map((child) => {
|
|
5705
5767
|
if (child.type === "ul") {
|
|
5706
|
-
return /* @__PURE__ */ (0,
|
|
5768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5707
5769
|
List.Root,
|
|
5708
5770
|
{
|
|
5709
5771
|
preSpace: "small",
|
|
5710
5772
|
style: { fontWeight: "normal", gap: "var(--space-2)" },
|
|
5711
5773
|
variant: "ul",
|
|
5712
5774
|
children: child.value.map((el) => {
|
|
5713
|
-
return /* @__PURE__ */ (0,
|
|
5775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(List.Item, { children: el }, el);
|
|
5714
5776
|
})
|
|
5715
5777
|
},
|
|
5716
5778
|
child.value[0]
|
|
5717
5779
|
);
|
|
5718
5780
|
}
|
|
5719
5781
|
if (typeof child.value === "string") {
|
|
5720
|
-
return /* @__PURE__ */ (0,
|
|
5782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { as: "div", mb: "2", weight: "regular", children: child.value }, child.value);
|
|
5721
5783
|
}
|
|
5722
5784
|
return null;
|
|
5723
5785
|
})
|
|
@@ -5729,16 +5791,16 @@ function OneOnOneGuideList(props) {
|
|
|
5729
5791
|
}
|
|
5730
5792
|
|
|
5731
5793
|
// src/molecules/description-json-render.tsx
|
|
5732
|
-
var
|
|
5794
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5733
5795
|
function DescriptionJsonRender(props) {
|
|
5734
5796
|
const { value } = props;
|
|
5735
|
-
return /* @__PURE__ */ (0,
|
|
5797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: value.values.map((block, index) => {
|
|
5736
5798
|
if (block.type === "bullet-list") {
|
|
5737
5799
|
return (
|
|
5738
5800
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5739
|
-
/* @__PURE__ */ (0,
|
|
5801
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes7.Box, { mb: "2", pl: "4", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(List.Root, { preSpace: "small", children: block.value.map((v, i) => (
|
|
5740
5802
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5741
|
-
/* @__PURE__ */ (0,
|
|
5803
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(List.Item, { children: v }, `${index}-${i}`)
|
|
5742
5804
|
)) }) }, `${block.type}-${index}`)
|
|
5743
5805
|
);
|
|
5744
5806
|
}
|
|
@@ -5746,15 +5808,15 @@ function DescriptionJsonRender(props) {
|
|
|
5746
5808
|
const Icon = getCalloutIconComponent(block.icon);
|
|
5747
5809
|
return (
|
|
5748
5810
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5749
|
-
/* @__PURE__ */ (0,
|
|
5750
|
-
/* @__PURE__ */ (0,
|
|
5751
|
-
/* @__PURE__ */ (0,
|
|
5811
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes7.Box, { mb: "2", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_themes32.Callout.Root, { children: [
|
|
5812
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes32.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, {}) }),
|
|
5813
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes32.Callout.Text, { children: block.value })
|
|
5752
5814
|
] }) }, `${block.type}-${index}`)
|
|
5753
5815
|
);
|
|
5754
5816
|
}
|
|
5755
5817
|
return (
|
|
5756
5818
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5757
|
-
/* @__PURE__ */ (0,
|
|
5819
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typo, { mb: "2", weight: "regular", children: block.value }, `${block.type}-${index}`)
|
|
5758
5820
|
);
|
|
5759
5821
|
}) });
|
|
5760
5822
|
}
|
|
@@ -5762,12 +5824,12 @@ function DescriptionJsonRender(props) {
|
|
|
5762
5824
|
// src/molecules/training-info-guideline.tsx
|
|
5763
5825
|
var import_react42 = require("react");
|
|
5764
5826
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
5765
|
-
var
|
|
5827
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5766
5828
|
function TrainingInfoGuideline({
|
|
5767
5829
|
values,
|
|
5768
5830
|
onClickFileDownload
|
|
5769
5831
|
}) {
|
|
5770
|
-
return /* @__PURE__ */ (0,
|
|
5832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: values.map((value) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5771
5833
|
TrainingInfoGuidelineItem,
|
|
5772
5834
|
{
|
|
5773
5835
|
onClickFileDownload,
|
|
@@ -5785,11 +5847,11 @@ function TrainingInfoGuidelineItem({
|
|
|
5785
5847
|
}) {
|
|
5786
5848
|
const [isLoading, setIsLoading] = (0, import_react42.useState)(true);
|
|
5787
5849
|
if (value.type === "file") {
|
|
5788
|
-
return /* @__PURE__ */ (0,
|
|
5850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5789
5851
|
TrainingInfoGuidelineButton,
|
|
5790
5852
|
{
|
|
5791
5853
|
description: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
5792
|
-
icon: /* @__PURE__ */ (0,
|
|
5854
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons8.FileTextIcon, {}),
|
|
5793
5855
|
onClick: () => {
|
|
5794
5856
|
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
5795
5857
|
},
|
|
@@ -5798,11 +5860,11 @@ function TrainingInfoGuidelineItem({
|
|
|
5798
5860
|
);
|
|
5799
5861
|
}
|
|
5800
5862
|
if (value.type === "youtube-shorts") {
|
|
5801
|
-
return /* @__PURE__ */ (0,
|
|
5863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5802
5864
|
TrainingInfoGuidelineButton,
|
|
5803
5865
|
{
|
|
5804
5866
|
description: "TIPP \uC1FC\uCE20 \uBCF4\uAE30",
|
|
5805
|
-
icon: /* @__PURE__ */ (0,
|
|
5867
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons8.VideoIcon, {}),
|
|
5806
5868
|
onClick: () => {
|
|
5807
5869
|
window.open(value.url, "_blank");
|
|
5808
5870
|
},
|
|
@@ -5811,16 +5873,16 @@ function TrainingInfoGuidelineItem({
|
|
|
5811
5873
|
);
|
|
5812
5874
|
}
|
|
5813
5875
|
if (value.type === "video") {
|
|
5814
|
-
return /* @__PURE__ */ (0,
|
|
5815
|
-
/* @__PURE__ */ (0,
|
|
5876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Dialog.Root, { children: [
|
|
5877
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5816
5878
|
TrainingInfoGuidelineButton,
|
|
5817
5879
|
{
|
|
5818
5880
|
description: "\uC601\uC0C1 \uC790\uB8CC",
|
|
5819
|
-
icon: /* @__PURE__ */ (0,
|
|
5881
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons8.VideoIcon, {}),
|
|
5820
5882
|
title: value.videoTitle
|
|
5821
5883
|
}
|
|
5822
5884
|
) }),
|
|
5823
|
-
/* @__PURE__ */ (0,
|
|
5885
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5824
5886
|
Dialog.Content,
|
|
5825
5887
|
{
|
|
5826
5888
|
height: "100%",
|
|
@@ -5828,7 +5890,7 @@ function TrainingInfoGuidelineItem({
|
|
|
5828
5890
|
maxWidth: "800px",
|
|
5829
5891
|
title: value.videoTitle,
|
|
5830
5892
|
width: "100%",
|
|
5831
|
-
children: /* @__PURE__ */ (0,
|
|
5893
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
5832
5894
|
import_themes.Flex,
|
|
5833
5895
|
{
|
|
5834
5896
|
align: "center",
|
|
@@ -5840,7 +5902,7 @@ function TrainingInfoGuidelineItem({
|
|
|
5840
5902
|
position: "relative"
|
|
5841
5903
|
},
|
|
5842
5904
|
children: [
|
|
5843
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
5905
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5844
5906
|
import_themes.Flex,
|
|
5845
5907
|
{
|
|
5846
5908
|
align: "center",
|
|
@@ -5855,10 +5917,10 @@ function TrainingInfoGuidelineItem({
|
|
|
5855
5917
|
color: "white"
|
|
5856
5918
|
},
|
|
5857
5919
|
width: "100%",
|
|
5858
|
-
children: /* @__PURE__ */ (0,
|
|
5920
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes4.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
5859
5921
|
}
|
|
5860
5922
|
) : null,
|
|
5861
|
-
/* @__PURE__ */ (0,
|
|
5923
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5862
5924
|
"iframe",
|
|
5863
5925
|
{
|
|
5864
5926
|
allowFullScreen: true,
|
|
@@ -5888,18 +5950,18 @@ function TrainingInfoGuidelineButton({
|
|
|
5888
5950
|
description,
|
|
5889
5951
|
onClick
|
|
5890
5952
|
}) {
|
|
5891
|
-
return /* @__PURE__ */ (0,
|
|
5953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5892
5954
|
Button,
|
|
5893
5955
|
{
|
|
5894
5956
|
onClick,
|
|
5895
5957
|
style: { width: "100%", height: "48px", textAlign: "left" },
|
|
5896
5958
|
variant: "outline",
|
|
5897
|
-
children: /* @__PURE__ */ (0,
|
|
5959
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes.Flex, { align: "center", gap: "2", width: "100%", children: [
|
|
5898
5960
|
icon,
|
|
5899
|
-
/* @__PURE__ */ (0,
|
|
5900
|
-
/* @__PURE__ */ (0,
|
|
5901
|
-
/* @__PURE__ */ (0,
|
|
5902
|
-
typeof description === "string" && description !== "" ? /* @__PURE__ */ (0,
|
|
5961
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes28.Separator, { orientation: "vertical", size: "2" }),
|
|
5962
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes7.Box, { children: [
|
|
5963
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Typo, { as: "div", children: title }),
|
|
5964
|
+
typeof description === "string" && description !== "" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Typo, { variant: "caption", children: description }) : null
|
|
5903
5965
|
] })
|
|
5904
5966
|
] })
|
|
5905
5967
|
}
|
|
@@ -6215,7 +6277,7 @@ function resetFieldType(field, nextType, allFields) {
|
|
|
6215
6277
|
// src/molecules/dynamic-form-editor-field-editor-panel.tsx
|
|
6216
6278
|
var import_react43 = require("react");
|
|
6217
6279
|
var import_themes39 = require("@radix-ui/themes");
|
|
6218
|
-
var
|
|
6280
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
6219
6281
|
function isRecord4(value) {
|
|
6220
6282
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
6221
6283
|
}
|
|
@@ -6301,11 +6363,11 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6301
6363
|
if (!field) return "";
|
|
6302
6364
|
return String(field.placeholder || "");
|
|
6303
6365
|
}, [field]);
|
|
6304
|
-
return /* @__PURE__ */ (0,
|
|
6305
|
-
/* @__PURE__ */ (0,
|
|
6306
|
-
/* @__PURE__ */ (0,
|
|
6307
|
-
/* @__PURE__ */ (0,
|
|
6308
|
-
/* @__PURE__ */ (0,
|
|
6366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { flex: 1, minWidth: 520, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "4", children: [
|
|
6367
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6368
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC \uD3B8\uC9D1" }),
|
|
6369
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", gap: "1", children: [
|
|
6370
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6309
6371
|
IconButton,
|
|
6310
6372
|
{
|
|
6311
6373
|
"aria-label": "\uD544\uB4DC \uC704\uB85C",
|
|
@@ -6314,10 +6376,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6314
6376
|
onMoveField("up");
|
|
6315
6377
|
},
|
|
6316
6378
|
variant: "soft",
|
|
6317
|
-
children: /* @__PURE__ */ (0,
|
|
6379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
6318
6380
|
}
|
|
6319
6381
|
),
|
|
6320
|
-
/* @__PURE__ */ (0,
|
|
6382
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6321
6383
|
IconButton,
|
|
6322
6384
|
{
|
|
6323
6385
|
"aria-label": "\uD544\uB4DC \uC544\uB798\uB85C",
|
|
@@ -6326,36 +6388,36 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6326
6388
|
onMoveField("down");
|
|
6327
6389
|
},
|
|
6328
6390
|
variant: "soft",
|
|
6329
|
-
children: /* @__PURE__ */ (0,
|
|
6391
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
6330
6392
|
}
|
|
6331
6393
|
),
|
|
6332
|
-
/* @__PURE__ */ (0,
|
|
6394
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6333
6395
|
IconButton,
|
|
6334
6396
|
{
|
|
6335
6397
|
"aria-label": "\uD544\uB4DC \uBCF5\uC81C",
|
|
6336
6398
|
disabled: readonly || !field,
|
|
6337
6399
|
onClick: onDuplicateField,
|
|
6338
6400
|
variant: "soft",
|
|
6339
|
-
children: /* @__PURE__ */ (0,
|
|
6401
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.CopyIcon, {})
|
|
6340
6402
|
}
|
|
6341
6403
|
),
|
|
6342
|
-
/* @__PURE__ */ (0,
|
|
6404
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6343
6405
|
IconButton,
|
|
6344
6406
|
{
|
|
6345
6407
|
"aria-label": "\uD544\uB4DC \uC0AD\uC81C",
|
|
6346
6408
|
disabled: readonly || !field,
|
|
6347
6409
|
onClick: onDeleteField,
|
|
6348
6410
|
variant: "soft",
|
|
6349
|
-
children: /* @__PURE__ */ (0,
|
|
6411
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.TrashIcon, {})
|
|
6350
6412
|
}
|
|
6351
6413
|
)
|
|
6352
6414
|
] })
|
|
6353
6415
|
] }),
|
|
6354
|
-
!field ? /* @__PURE__ */ (0,
|
|
6355
|
-
/* @__PURE__ */ (0,
|
|
6356
|
-
/* @__PURE__ */ (0,
|
|
6357
|
-
/* @__PURE__ */ (0,
|
|
6358
|
-
/* @__PURE__ */ (0,
|
|
6416
|
+
!field ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC67C\uCABD\uC5D0\uC11C \uD544\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694." }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6417
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6418
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6419
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "name" }),
|
|
6420
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6359
6421
|
TextField.Root,
|
|
6360
6422
|
{
|
|
6361
6423
|
disabled: readonly,
|
|
@@ -6366,9 +6428,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6366
6428
|
}
|
|
6367
6429
|
)
|
|
6368
6430
|
] }),
|
|
6369
|
-
/* @__PURE__ */ (0,
|
|
6370
|
-
/* @__PURE__ */ (0,
|
|
6371
|
-
/* @__PURE__ */ (0,
|
|
6431
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6432
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6433
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6372
6434
|
TextField.Root,
|
|
6373
6435
|
{
|
|
6374
6436
|
disabled: readonly,
|
|
@@ -6380,8 +6442,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6380
6442
|
)
|
|
6381
6443
|
] })
|
|
6382
6444
|
] }),
|
|
6383
|
-
/* @__PURE__ */ (0,
|
|
6384
|
-
/* @__PURE__ */ (0,
|
|
6445
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", gap: "2", children: [
|
|
6446
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6385
6447
|
Select.Root,
|
|
6386
6448
|
{
|
|
6387
6449
|
disabled: readonly,
|
|
@@ -6391,13 +6453,13 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6391
6453
|
},
|
|
6392
6454
|
value: field.type,
|
|
6393
6455
|
children: [
|
|
6394
|
-
/* @__PURE__ */ (0,
|
|
6395
|
-
/* @__PURE__ */ (0,
|
|
6456
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6457
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
6396
6458
|
]
|
|
6397
6459
|
}
|
|
6398
6460
|
),
|
|
6399
|
-
/* @__PURE__ */ (0,
|
|
6400
|
-
/* @__PURE__ */ (0,
|
|
6461
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", gap: "2", children: [
|
|
6462
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6401
6463
|
Checkbox,
|
|
6402
6464
|
{
|
|
6403
6465
|
checked: Boolean(field.required),
|
|
@@ -6407,12 +6469,12 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6407
6469
|
}
|
|
6408
6470
|
}
|
|
6409
6471
|
),
|
|
6410
|
-
/* @__PURE__ */ (0,
|
|
6472
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "\uD544\uC218" })
|
|
6411
6473
|
] })
|
|
6412
6474
|
] }),
|
|
6413
|
-
/* @__PURE__ */ (0,
|
|
6414
|
-
/* @__PURE__ */ (0,
|
|
6415
|
-
/* @__PURE__ */ (0,
|
|
6475
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6476
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "description" }),
|
|
6477
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6416
6478
|
TextArea,
|
|
6417
6479
|
{
|
|
6418
6480
|
disabled: readonly,
|
|
@@ -6426,9 +6488,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6426
6488
|
}
|
|
6427
6489
|
)
|
|
6428
6490
|
] }),
|
|
6429
|
-
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0,
|
|
6430
|
-
/* @__PURE__ */ (0,
|
|
6431
|
-
/* @__PURE__ */ (0,
|
|
6491
|
+
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6492
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "placeholder" }),
|
|
6493
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6432
6494
|
TextField.Root,
|
|
6433
6495
|
{
|
|
6434
6496
|
disabled: readonly,
|
|
@@ -6439,9 +6501,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6439
6501
|
}
|
|
6440
6502
|
)
|
|
6441
6503
|
] }) : null,
|
|
6442
|
-
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
6443
|
-
/* @__PURE__ */ (0,
|
|
6444
|
-
/* @__PURE__ */ (0,
|
|
6504
|
+
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6505
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "orientation" }),
|
|
6506
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6445
6507
|
Select.Root,
|
|
6446
6508
|
{
|
|
6447
6509
|
disabled: readonly,
|
|
@@ -6451,19 +6513,19 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6451
6513
|
},
|
|
6452
6514
|
value: field.orientation || "vertical",
|
|
6453
6515
|
children: [
|
|
6454
|
-
/* @__PURE__ */ (0,
|
|
6455
|
-
/* @__PURE__ */ (0,
|
|
6456
|
-
/* @__PURE__ */ (0,
|
|
6457
|
-
/* @__PURE__ */ (0,
|
|
6516
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6517
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Select.Content, { children: [
|
|
6518
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "vertical", children: "vertical" }),
|
|
6519
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "horizontal", children: "horizontal" })
|
|
6458
6520
|
] })
|
|
6459
6521
|
]
|
|
6460
6522
|
}
|
|
6461
6523
|
)
|
|
6462
6524
|
] }) : null,
|
|
6463
|
-
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
6464
|
-
/* @__PURE__ */ (0,
|
|
6465
|
-
/* @__PURE__ */ (0,
|
|
6466
|
-
/* @__PURE__ */ (0,
|
|
6525
|
+
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6526
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6527
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "options" }),
|
|
6528
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6467
6529
|
Button,
|
|
6468
6530
|
{
|
|
6469
6531
|
disabled: readonly,
|
|
@@ -6481,16 +6543,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6481
6543
|
size: "small",
|
|
6482
6544
|
variant: "soft",
|
|
6483
6545
|
children: [
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.PlusIcon, {}),
|
|
6485
6547
|
" \uCD94\uAC00"
|
|
6486
6548
|
]
|
|
6487
6549
|
}
|
|
6488
6550
|
)
|
|
6489
6551
|
] }),
|
|
6490
|
-
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
6491
|
-
/* @__PURE__ */ (0,
|
|
6492
|
-
/* @__PURE__ */ (0,
|
|
6493
|
-
/* @__PURE__ */ (0,
|
|
6552
|
+
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6553
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6554
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6555
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6494
6556
|
TextField.Root,
|
|
6495
6557
|
{
|
|
6496
6558
|
disabled: readonly,
|
|
@@ -6505,9 +6567,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6505
6567
|
}
|
|
6506
6568
|
)
|
|
6507
6569
|
] }),
|
|
6508
|
-
/* @__PURE__ */ (0,
|
|
6509
|
-
/* @__PURE__ */ (0,
|
|
6510
|
-
/* @__PURE__ */ (0,
|
|
6570
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6571
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
6572
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6511
6573
|
TextField.Root,
|
|
6512
6574
|
{
|
|
6513
6575
|
disabled: readonly,
|
|
@@ -6522,8 +6584,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6522
6584
|
}
|
|
6523
6585
|
)
|
|
6524
6586
|
] }),
|
|
6525
|
-
/* @__PURE__ */ (0,
|
|
6526
|
-
/* @__PURE__ */ (0,
|
|
6587
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { gap: "1", children: [
|
|
6588
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6527
6589
|
IconButton,
|
|
6528
6590
|
{
|
|
6529
6591
|
"aria-label": "\uC635\uC158 \uC704\uB85C",
|
|
@@ -6534,10 +6596,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6534
6596
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
6535
6597
|
},
|
|
6536
6598
|
variant: "soft",
|
|
6537
|
-
children: /* @__PURE__ */ (0,
|
|
6599
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
6538
6600
|
}
|
|
6539
6601
|
),
|
|
6540
|
-
/* @__PURE__ */ (0,
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6541
6603
|
IconButton,
|
|
6542
6604
|
{
|
|
6543
6605
|
"aria-label": "\uC635\uC158 \uC544\uB798\uB85C",
|
|
@@ -6548,10 +6610,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6548
6610
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
6549
6611
|
},
|
|
6550
6612
|
variant: "soft",
|
|
6551
|
-
children: /* @__PURE__ */ (0,
|
|
6613
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
6552
6614
|
}
|
|
6553
6615
|
),
|
|
6554
|
-
/* @__PURE__ */ (0,
|
|
6616
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6555
6617
|
IconButton,
|
|
6556
6618
|
{
|
|
6557
6619
|
"aria-label": "\uC635\uC158 \uC0AD\uC81C",
|
|
@@ -6562,16 +6624,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6562
6624
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
6563
6625
|
},
|
|
6564
6626
|
variant: "soft",
|
|
6565
|
-
children: /* @__PURE__ */ (0,
|
|
6627
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.TrashIcon, {})
|
|
6566
6628
|
}
|
|
6567
6629
|
)
|
|
6568
6630
|
] })
|
|
6569
6631
|
] }, `${opt.value}-${opt.label}`))
|
|
6570
6632
|
] }) }) : null,
|
|
6571
|
-
field.type === "image_radio_card" ? /* @__PURE__ */ (0,
|
|
6572
|
-
/* @__PURE__ */ (0,
|
|
6573
|
-
/* @__PURE__ */ (0,
|
|
6574
|
-
/* @__PURE__ */ (0,
|
|
6633
|
+
field.type === "image_radio_card" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6634
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6635
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "image options" }),
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6575
6637
|
Button,
|
|
6576
6638
|
{
|
|
6577
6639
|
disabled: readonly,
|
|
@@ -6590,21 +6652,21 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6590
6652
|
size: "small",
|
|
6591
6653
|
variant: "soft",
|
|
6592
6654
|
children: [
|
|
6593
|
-
/* @__PURE__ */ (0,
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.PlusIcon, {}),
|
|
6594
6656
|
" \uCD94\uAC00"
|
|
6595
6657
|
]
|
|
6596
6658
|
}
|
|
6597
6659
|
)
|
|
6598
6660
|
] }),
|
|
6599
|
-
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
6661
|
+
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6600
6662
|
Card,
|
|
6601
6663
|
{
|
|
6602
6664
|
style: { padding: 10 },
|
|
6603
|
-
children: /* @__PURE__ */ (0,
|
|
6604
|
-
/* @__PURE__ */ (0,
|
|
6605
|
-
/* @__PURE__ */ (0,
|
|
6606
|
-
/* @__PURE__ */ (0,
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6666
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6667
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6668
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6669
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6608
6670
|
TextField.Root,
|
|
6609
6671
|
{
|
|
6610
6672
|
disabled: readonly,
|
|
@@ -6621,9 +6683,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6621
6683
|
}
|
|
6622
6684
|
)
|
|
6623
6685
|
] }),
|
|
6624
|
-
/* @__PURE__ */ (0,
|
|
6625
|
-
/* @__PURE__ */ (0,
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6686
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6687
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
6688
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6627
6689
|
TextField.Root,
|
|
6628
6690
|
{
|
|
6629
6691
|
disabled: readonly,
|
|
@@ -6641,9 +6703,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6641
6703
|
)
|
|
6642
6704
|
] })
|
|
6643
6705
|
] }),
|
|
6644
|
-
/* @__PURE__ */ (0,
|
|
6645
|
-
/* @__PURE__ */ (0,
|
|
6646
|
-
/* @__PURE__ */ (0,
|
|
6706
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6707
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "imageSrc" }),
|
|
6708
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6647
6709
|
TextField.Root,
|
|
6648
6710
|
{
|
|
6649
6711
|
disabled: readonly,
|
|
@@ -6660,10 +6722,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6660
6722
|
}
|
|
6661
6723
|
)
|
|
6662
6724
|
] }),
|
|
6663
|
-
/* @__PURE__ */ (0,
|
|
6664
|
-
/* @__PURE__ */ (0,
|
|
6665
|
-
/* @__PURE__ */ (0,
|
|
6666
|
-
/* @__PURE__ */ (0,
|
|
6725
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6726
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6727
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "alt" }),
|
|
6728
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6667
6729
|
TextField.Root,
|
|
6668
6730
|
{
|
|
6669
6731
|
disabled: readonly,
|
|
@@ -6681,7 +6743,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6681
6743
|
}
|
|
6682
6744
|
)
|
|
6683
6745
|
] }),
|
|
6684
|
-
/* @__PURE__ */ (0,
|
|
6746
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6685
6747
|
IconButton,
|
|
6686
6748
|
{
|
|
6687
6749
|
"aria-label": "\uC774\uBBF8\uC9C0 \uC635\uC158 \uC0AD\uC81C",
|
|
@@ -6694,7 +6756,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6694
6756
|
);
|
|
6695
6757
|
},
|
|
6696
6758
|
variant: "soft",
|
|
6697
|
-
children: /* @__PURE__ */ (0,
|
|
6759
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.TrashIcon, {})
|
|
6698
6760
|
}
|
|
6699
6761
|
)
|
|
6700
6762
|
] })
|
|
@@ -6702,10 +6764,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6702
6764
|
},
|
|
6703
6765
|
`${opt.value}-${opt.label}-${opt.imageSrc}`
|
|
6704
6766
|
)),
|
|
6705
|
-
/* @__PURE__ */ (0,
|
|
6706
|
-
/* @__PURE__ */ (0,
|
|
6707
|
-
/* @__PURE__ */ (0,
|
|
6708
|
-
/* @__PURE__ */ (0,
|
|
6767
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
6768
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6769
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "gridColumnsCount" }),
|
|
6770
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6709
6771
|
TextField.Root,
|
|
6710
6772
|
{
|
|
6711
6773
|
disabled: readonly,
|
|
@@ -6721,9 +6783,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6721
6783
|
}
|
|
6722
6784
|
)
|
|
6723
6785
|
] }),
|
|
6724
|
-
/* @__PURE__ */ (0,
|
|
6725
|
-
/* @__PURE__ */ (0,
|
|
6726
|
-
/* @__PURE__ */ (0,
|
|
6786
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6787
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "gridItemHeight" }),
|
|
6788
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6727
6789
|
TextField.Root,
|
|
6728
6790
|
{
|
|
6729
6791
|
disabled: readonly,
|
|
@@ -6736,9 +6798,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6736
6798
|
}
|
|
6737
6799
|
)
|
|
6738
6800
|
] }),
|
|
6739
|
-
/* @__PURE__ */ (0,
|
|
6740
|
-
/* @__PURE__ */ (0,
|
|
6741
|
-
/* @__PURE__ */ (0,
|
|
6801
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6802
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "gridGap" }),
|
|
6803
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6742
6804
|
TextField.Root,
|
|
6743
6805
|
{
|
|
6744
6806
|
disabled: readonly,
|
|
@@ -6750,9 +6812,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6750
6812
|
)
|
|
6751
6813
|
] })
|
|
6752
6814
|
] }),
|
|
6753
|
-
/* @__PURE__ */ (0,
|
|
6754
|
-
/* @__PURE__ */ (0,
|
|
6755
|
-
/* @__PURE__ */ (0,
|
|
6815
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6816
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "imageFit" }),
|
|
6817
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6756
6818
|
Select.Root,
|
|
6757
6819
|
{
|
|
6758
6820
|
disabled: readonly,
|
|
@@ -6762,22 +6824,22 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6762
6824
|
},
|
|
6763
6825
|
value: field.imageFit || "cover",
|
|
6764
6826
|
children: [
|
|
6765
|
-
/* @__PURE__ */ (0,
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6767
|
-
/* @__PURE__ */ (0,
|
|
6768
|
-
/* @__PURE__ */ (0,
|
|
6827
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6828
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Select.Content, { children: [
|
|
6829
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "cover", children: "cover" }),
|
|
6830
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "contain", children: "contain" })
|
|
6769
6831
|
] })
|
|
6770
6832
|
]
|
|
6771
6833
|
}
|
|
6772
6834
|
)
|
|
6773
6835
|
] })
|
|
6774
6836
|
] }) }) : null,
|
|
6775
|
-
/* @__PURE__ */ (0,
|
|
6776
|
-
/* @__PURE__ */ (0,
|
|
6777
|
-
/* @__PURE__ */ (0,
|
|
6778
|
-
/* @__PURE__ */ (0,
|
|
6779
|
-
/* @__PURE__ */ (0,
|
|
6780
|
-
/* @__PURE__ */ (0,
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "validation" }),
|
|
6839
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
6840
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6841
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "min" }),
|
|
6842
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6781
6843
|
TextField.Root,
|
|
6782
6844
|
{
|
|
6783
6845
|
disabled: readonly,
|
|
@@ -6793,9 +6855,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6793
6855
|
}
|
|
6794
6856
|
)
|
|
6795
6857
|
] }),
|
|
6796
|
-
/* @__PURE__ */ (0,
|
|
6797
|
-
/* @__PURE__ */ (0,
|
|
6798
|
-
/* @__PURE__ */ (0,
|
|
6858
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6859
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "max" }),
|
|
6860
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6799
6861
|
TextField.Root,
|
|
6800
6862
|
{
|
|
6801
6863
|
disabled: readonly,
|
|
@@ -6812,9 +6874,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6812
6874
|
)
|
|
6813
6875
|
] })
|
|
6814
6876
|
] }),
|
|
6815
|
-
/* @__PURE__ */ (0,
|
|
6816
|
-
/* @__PURE__ */ (0,
|
|
6817
|
-
/* @__PURE__ */ (0,
|
|
6877
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6878
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "pattern" }),
|
|
6879
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6818
6880
|
TextField.Root,
|
|
6819
6881
|
{
|
|
6820
6882
|
disabled: readonly,
|
|
@@ -6827,9 +6889,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6827
6889
|
}
|
|
6828
6890
|
)
|
|
6829
6891
|
] }),
|
|
6830
|
-
/* @__PURE__ */ (0,
|
|
6831
|
-
/* @__PURE__ */ (0,
|
|
6832
|
-
/* @__PURE__ */ (0,
|
|
6892
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6893
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "message" }),
|
|
6894
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6833
6895
|
TextField.Root,
|
|
6834
6896
|
{
|
|
6835
6897
|
disabled: readonly,
|
|
@@ -6850,7 +6912,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6850
6912
|
// src/molecules/dynamic-form-editor-field-list-panel.tsx
|
|
6851
6913
|
var import_react44 = require("react");
|
|
6852
6914
|
var import_themes40 = require("@radix-ui/themes");
|
|
6853
|
-
var
|
|
6915
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
6854
6916
|
function isFieldType2(value, types) {
|
|
6855
6917
|
return types.some((t) => t === value);
|
|
6856
6918
|
}
|
|
@@ -6868,10 +6930,10 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6868
6930
|
const triggerPlaceholder = (0, import_react44.useMemo)(() => {
|
|
6869
6931
|
return readonly ? "\uCD94\uAC00(\uC77D\uAE30 \uC804\uC6A9)" : "\uCD94\uAC00";
|
|
6870
6932
|
}, [readonly]);
|
|
6871
|
-
return /* @__PURE__ */ (0,
|
|
6872
|
-
/* @__PURE__ */ (0,
|
|
6873
|
-
/* @__PURE__ */ (0,
|
|
6874
|
-
/* @__PURE__ */ (0,
|
|
6933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Card, { style: { width: 340, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6934
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC" }),
|
|
6936
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
6875
6937
|
Select.Root,
|
|
6876
6938
|
{
|
|
6877
6939
|
disabled: readonly,
|
|
@@ -6881,18 +6943,18 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6881
6943
|
},
|
|
6882
6944
|
value: "",
|
|
6883
6945
|
children: [
|
|
6884
|
-
/* @__PURE__ */ (0,
|
|
6885
|
-
/* @__PURE__ */ (0,
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Select.Trigger, { placeholder: triggerPlaceholder }),
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
6886
6948
|
]
|
|
6887
6949
|
}
|
|
6888
6950
|
)
|
|
6889
6951
|
] }),
|
|
6890
|
-
/* @__PURE__ */ (0,
|
|
6891
|
-
isEmpty ? /* @__PURE__ */ (0,
|
|
6952
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6953
|
+
isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC544\uC9C1 \uD544\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) : null,
|
|
6892
6954
|
fields.map((field) => {
|
|
6893
6955
|
const isSelected = field.name === selectedFieldName;
|
|
6894
6956
|
const hasError = hasFieldError(field.name);
|
|
6895
|
-
return /* @__PURE__ */ (0,
|
|
6957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6896
6958
|
Card,
|
|
6897
6959
|
{
|
|
6898
6960
|
error: isSelected ? hasError : void 0,
|
|
@@ -6905,8 +6967,8 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6905
6967
|
opacity: readonly ? 0.8 : 1,
|
|
6906
6968
|
border: isSelected ? "1px solid var(--accent-9)" : "1px solid transparent"
|
|
6907
6969
|
},
|
|
6908
|
-
children: /* @__PURE__ */ (0,
|
|
6909
|
-
/* @__PURE__ */ (0,
|
|
6970
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes40.Box, { style: { minWidth: 0 }, children: [
|
|
6971
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6910
6972
|
Typo,
|
|
6911
6973
|
{
|
|
6912
6974
|
style: {
|
|
@@ -6918,7 +6980,7 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6918
6980
|
children: field.label
|
|
6919
6981
|
}
|
|
6920
6982
|
),
|
|
6921
|
-
/* @__PURE__ */ (0,
|
|
6983
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
6922
6984
|
field.name,
|
|
6923
6985
|
" \xB7 ",
|
|
6924
6986
|
field.type,
|
|
@@ -6934,13 +6996,13 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6934
6996
|
}
|
|
6935
6997
|
|
|
6936
6998
|
// src/molecules/dynamic-form-editor-issues-panel.tsx
|
|
6937
|
-
var
|
|
6999
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
6938
7000
|
function DynamicFormEditorIssuesPanel(props) {
|
|
6939
7001
|
const { issues } = props;
|
|
6940
7002
|
if (issues.length === 0) return null;
|
|
6941
|
-
return /* @__PURE__ */ (0,
|
|
6942
|
-
/* @__PURE__ */ (0,
|
|
6943
|
-
issues.map((i) => /* @__PURE__ */ (0,
|
|
7003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7004
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Typo, { variant: "caption", children: "\uC2A4\uD0A4\uB9C8 \uC774\uC288" }),
|
|
7005
|
+
issues.map((i) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
6944
7006
|
Typo,
|
|
6945
7007
|
{
|
|
6946
7008
|
color: i.level === "error" ? "red" : "gray",
|
|
@@ -6959,18 +7021,18 @@ function DynamicFormEditorIssuesPanel(props) {
|
|
|
6959
7021
|
}
|
|
6960
7022
|
|
|
6961
7023
|
// src/molecules/dynamic-form-editor-preview-panel.tsx
|
|
6962
|
-
var
|
|
7024
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
6963
7025
|
function DynamicFormEditorPreviewPanel(props) {
|
|
6964
7026
|
const { show, fields } = props;
|
|
6965
7027
|
if (!show) return null;
|
|
6966
|
-
return /* @__PURE__ */ (0,
|
|
6967
|
-
/* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
7028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Card, { style: { width: 420, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
7029
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { variant: "body", children: "\uD504\uB9AC\uBDF0" }),
|
|
7030
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DynamicForm.Root, { fields, onSubmit: () => void 0, readonly: true, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DynamicForm.FieldList, { labelVariant: "body" }) })
|
|
6969
7031
|
] }) });
|
|
6970
7032
|
}
|
|
6971
7033
|
|
|
6972
7034
|
// src/molecules/dynamic-form-editor.tsx
|
|
6973
|
-
var
|
|
7035
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
6974
7036
|
function getInitialSchema(value, defaultValue) {
|
|
6975
7037
|
if (value !== void 0) return normalizeSchema(value);
|
|
6976
7038
|
return normalizeSchema(defaultValue);
|
|
@@ -7120,8 +7182,8 @@ function DynamicFormEditor(props) {
|
|
|
7120
7182
|
void result;
|
|
7121
7183
|
}, [effectiveSchema, onSave]);
|
|
7122
7184
|
const disableSave = readonly || !onSave || hasErrorIssues(issues);
|
|
7123
|
-
return /* @__PURE__ */ (0,
|
|
7124
|
-
/* @__PURE__ */ (0,
|
|
7185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { align: "start", gap: "4", style: { width: "100%" }, children: [
|
|
7186
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7125
7187
|
DynamicFormEditorFieldListPanel,
|
|
7126
7188
|
{
|
|
7127
7189
|
fieldTypes,
|
|
@@ -7133,8 +7195,8 @@ function DynamicFormEditor(props) {
|
|
|
7133
7195
|
selectedFieldName
|
|
7134
7196
|
}
|
|
7135
7197
|
),
|
|
7136
|
-
/* @__PURE__ */ (0,
|
|
7137
|
-
/* @__PURE__ */ (0,
|
|
7198
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { direction: "column", gap: "3", style: { flex: 1, minWidth: 520 }, children: [
|
|
7199
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7138
7200
|
DynamicFormEditorFieldEditorPanel,
|
|
7139
7201
|
{
|
|
7140
7202
|
field: selected.field,
|
|
@@ -7149,13 +7211,13 @@ function DynamicFormEditor(props) {
|
|
|
7149
7211
|
readonly
|
|
7150
7212
|
}
|
|
7151
7213
|
),
|
|
7152
|
-
/* @__PURE__ */ (0,
|
|
7153
|
-
onSave || onCancel ? /* @__PURE__ */ (0,
|
|
7154
|
-
onCancel ? /* @__PURE__ */ (0,
|
|
7155
|
-
onSave ? /* @__PURE__ */ (0,
|
|
7214
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DynamicFormEditorIssuesPanel, { issues }),
|
|
7215
|
+
onSave || onCancel ? /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { gap: "2", justify: "end", children: [
|
|
7216
|
+
onCancel ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { disabled: readonly, onClick: onCancel, variant: "soft", children: "\uCDE8\uC18C" }) : null,
|
|
7217
|
+
onSave ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { disabled: disableSave, onClick: handleSave, children: "\uC800\uC7A5" }) : null
|
|
7156
7218
|
] }) : null
|
|
7157
7219
|
] }),
|
|
7158
|
-
/* @__PURE__ */ (0,
|
|
7220
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DynamicFormEditorPreviewPanel, { fields: effectiveSchema.fields, show: showPreview })
|
|
7159
7221
|
] });
|
|
7160
7222
|
}
|
|
7161
7223
|
|
|
@@ -7166,14 +7228,14 @@ var import_themes42 = require("@radix-ui/themes");
|
|
|
7166
7228
|
// src/atoms/dropdown-menu.tsx
|
|
7167
7229
|
var import_themes41 = require("@radix-ui/themes");
|
|
7168
7230
|
var import_react46 = require("react");
|
|
7169
|
-
var
|
|
7231
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7170
7232
|
var Content4 = (0, import_react46.forwardRef)((props, ref) => {
|
|
7171
7233
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
7172
7234
|
const contentClassName = (0, import_react46.useMemo)(() => {
|
|
7173
7235
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
7174
7236
|
return [cls, className].join(" ");
|
|
7175
7237
|
}, [isNavigation, className]);
|
|
7176
|
-
return /* @__PURE__ */ (0,
|
|
7238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7177
7239
|
import_themes41.DropdownMenu.Content,
|
|
7178
7240
|
__spreadProps(__spreadValues({
|
|
7179
7241
|
ref
|
|
@@ -7186,7 +7248,7 @@ Content4.displayName = "DropdownMenu.Content";
|
|
|
7186
7248
|
var Trigger4 = (0, import_react46.forwardRef)(
|
|
7187
7249
|
(_a, ref) => {
|
|
7188
7250
|
var _b = _a, { asChild: _asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
7189
|
-
return /* @__PURE__ */ (0,
|
|
7251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes41.DropdownMenu.Trigger, __spreadValues({ ref }, props));
|
|
7190
7252
|
}
|
|
7191
7253
|
);
|
|
7192
7254
|
Trigger4.displayName = "DropdownMenu.Trigger";
|
|
@@ -7196,7 +7258,7 @@ var DropdownMenu = __spreadProps(__spreadValues({}, import_themes41.DropdownMenu
|
|
|
7196
7258
|
});
|
|
7197
7259
|
|
|
7198
7260
|
// src/molecules/autocomplete-textfield.tsx
|
|
7199
|
-
var
|
|
7261
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7200
7262
|
var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
7201
7263
|
(_a, ref) => {
|
|
7202
7264
|
var _b = _a, {
|
|
@@ -7322,8 +7384,8 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7322
7384
|
const item = listRef.current.children[highlightedIndex];
|
|
7323
7385
|
item.scrollIntoView({ block: "nearest" });
|
|
7324
7386
|
}, [highlightedIndex]);
|
|
7325
|
-
return /* @__PURE__ */ (0,
|
|
7326
|
-
/* @__PURE__ */ (0,
|
|
7387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes42.Box, { position: "relative", style: { width: "100%" }, children: [
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
7327
7389
|
TextField.Root,
|
|
7328
7390
|
__spreadProps(__spreadValues({
|
|
7329
7391
|
"aria-activedescendant": open && highlightedIndex >= 0 ? `${listboxId}-option-${highlightedIndex}` : void 0,
|
|
@@ -7349,12 +7411,12 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7349
7411
|
value: inputValue
|
|
7350
7412
|
}, rest), {
|
|
7351
7413
|
children: [
|
|
7352
|
-
slotLeft && /* @__PURE__ */ (0,
|
|
7353
|
-
slotRight && /* @__PURE__ */ (0,
|
|
7414
|
+
slotLeft && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TextField.Slot, { side: "left", children: slotLeft }),
|
|
7415
|
+
slotRight && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TextField.Slot, { side: "right", children: slotRight })
|
|
7354
7416
|
]
|
|
7355
7417
|
})
|
|
7356
7418
|
),
|
|
7357
|
-
/* @__PURE__ */ (0,
|
|
7419
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
7358
7420
|
DropdownMenu.Root,
|
|
7359
7421
|
{
|
|
7360
7422
|
modal: false,
|
|
@@ -7366,7 +7428,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7366
7428
|
},
|
|
7367
7429
|
open,
|
|
7368
7430
|
children: [
|
|
7369
|
-
/* @__PURE__ */ (0,
|
|
7431
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7370
7432
|
"span",
|
|
7371
7433
|
{
|
|
7372
7434
|
"aria-hidden": "true",
|
|
@@ -7381,7 +7443,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7381
7443
|
}
|
|
7382
7444
|
}
|
|
7383
7445
|
) }),
|
|
7384
|
-
/* @__PURE__ */ (0,
|
|
7446
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7385
7447
|
DropdownMenu.Content,
|
|
7386
7448
|
{
|
|
7387
7449
|
align: "start",
|
|
@@ -7398,7 +7460,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7398
7460
|
padding: 0,
|
|
7399
7461
|
width: "var(--radix-dropdown-menu-trigger-width)"
|
|
7400
7462
|
},
|
|
7401
|
-
children: filtered.length === 0 && emptyMessage !== null ? /* @__PURE__ */ (0,
|
|
7463
|
+
children: filtered.length === 0 && emptyMessage !== null ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes42.Box, { px: "2", py: "2", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { color: "gray", children: emptyMessage }) }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7402
7464
|
"ul",
|
|
7403
7465
|
{
|
|
7404
7466
|
id: listboxId,
|
|
@@ -7407,7 +7469,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7407
7469
|
style: { listStyle: "none", margin: 0, padding: 0 },
|
|
7408
7470
|
children: filtered.map((option, index) => {
|
|
7409
7471
|
const isHighlighted = index === highlightedIndex;
|
|
7410
|
-
return /* @__PURE__ */ (0,
|
|
7472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7411
7473
|
"li",
|
|
7412
7474
|
{
|
|
7413
7475
|
"aria-selected": isHighlighted,
|
|
@@ -7426,7 +7488,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7426
7488
|
backgroundColor: isHighlighted ? "var(--accent-3)" : "transparent",
|
|
7427
7489
|
transition: "background-color 80ms"
|
|
7428
7490
|
},
|
|
7429
|
-
children: /* @__PURE__ */ (0,
|
|
7491
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { variant: "body", children: option.label })
|
|
7430
7492
|
},
|
|
7431
7493
|
option.value
|
|
7432
7494
|
);
|