@tipp/ui 2.8.0 → 2.10.0
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 +49 -4
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +98 -97
- package/dist/app/platform/coach-question-list.cjs +49 -4
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +33 -32
- package/dist/app/platform/contents-card.cjs +49 -4
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +33 -32
- package/dist/app/platform/curriculum-card.cjs +49 -4
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +5 -4
- package/dist/app/platform/edit-coaching-time.cjs +49 -4
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +80 -79
- package/dist/app/platform/edit-service-type.cjs +49 -4
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +81 -80
- package/dist/app/platform/goal-manage-card-edit.cjs +49 -4
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +80 -79
- package/dist/app/platform/goal-manage-card-read.cjs +49 -4
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +33 -32
- package/dist/app/platform/on-offline-radio-card.cjs +49 -4
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +80 -79
- package/dist/app/platform/report-card.cjs +49 -4
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +33 -32
- package/dist/app/platform/reservation-card.cjs +49 -4
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +81 -80
- package/dist/app/platform/session-card.cjs +49 -4
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +83 -82
- package/dist/app/platform/session-review-simple-read.cjs +49 -4
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -35
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +33 -32
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +49 -4
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +33 -32
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +49 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +33 -32
- package/dist/app/platform/userInfos/utils.cjs +49 -4
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +32 -31
- package/dist/app/roleplay/chart/session-chart.cjs +351 -0
- package/dist/app/roleplay/chart/session-chart.cjs.map +1 -0
- package/dist/app/roleplay/chart/session-chart.d.cts +16 -0
- package/dist/app/roleplay/chart/session-chart.d.ts +16 -0
- package/dist/app/roleplay/chart/session-chart.js +14 -0
- package/dist/app/roleplay/index.cjs +5706 -0
- package/dist/app/roleplay/index.cjs.map +1 -0
- package/dist/app/roleplay/index.d.cts +4 -0
- package/dist/app/roleplay/index.d.ts +4 -0
- package/dist/app/roleplay/index.js +182 -0
- package/dist/app/roleplay/index.js.map +1 -0
- package/dist/app/roleplay/parts/analysis-section.cjs +2178 -0
- package/dist/app/roleplay/parts/analysis-section.cjs.map +1 -0
- package/dist/app/roleplay/parts/analysis-section.d.cts +17 -0
- package/dist/app/roleplay/parts/analysis-section.d.ts +17 -0
- package/dist/app/roleplay/parts/analysis-section.js +97 -0
- package/dist/app/roleplay/parts/analysis-section.js.map +1 -0
- package/dist/app/roleplay/parts/coaching-panel.cjs +2191 -0
- package/dist/app/roleplay/parts/coaching-panel.cjs.map +1 -0
- package/dist/app/roleplay/parts/coaching-panel.d.cts +8 -0
- package/dist/app/roleplay/parts/coaching-panel.d.ts +8 -0
- package/dist/app/roleplay/parts/coaching-panel.js +95 -0
- package/dist/app/roleplay/parts/coaching-panel.js.map +1 -0
- package/dist/app/roleplay/parts/content.cjs +4683 -0
- package/dist/app/roleplay/parts/content.cjs.map +1 -0
- package/dist/app/roleplay/parts/content.d.cts +15 -0
- package/dist/app/roleplay/parts/content.d.ts +15 -0
- package/dist/app/roleplay/parts/content.js +174 -0
- package/dist/app/roleplay/parts/content.js.map +1 -0
- package/dist/app/roleplay/parts/header.cjs +2300 -0
- package/dist/app/roleplay/parts/header.cjs.map +1 -0
- package/dist/app/roleplay/parts/header.d.cts +13 -0
- package/dist/app/roleplay/parts/header.d.ts +13 -0
- package/dist/app/roleplay/parts/header.js +96 -0
- package/dist/app/roleplay/parts/header.js.map +1 -0
- package/dist/app/roleplay/parts/score-summary.cjs +2276 -0
- package/dist/app/roleplay/parts/score-summary.cjs.map +1 -0
- package/dist/app/roleplay/parts/score-summary.d.cts +12 -0
- package/dist/app/roleplay/parts/score-summary.d.ts +12 -0
- package/dist/app/roleplay/parts/score-summary.js +96 -0
- package/dist/app/roleplay/parts/score-summary.js.map +1 -0
- package/dist/app/roleplay/parts/score-trend-section.cjs +3686 -0
- package/dist/app/roleplay/parts/score-trend-section.cjs.map +1 -0
- package/dist/app/roleplay/parts/score-trend-section.d.cts +14 -0
- package/dist/app/roleplay/parts/score-trend-section.d.ts +14 -0
- package/dist/app/roleplay/parts/score-trend-section.js +168 -0
- package/dist/app/roleplay/parts/score-trend-section.js.map +1 -0
- package/dist/app/roleplay/parts/script-transcript.cjs +2288 -0
- package/dist/app/roleplay/parts/script-transcript.cjs.map +1 -0
- package/dist/app/roleplay/parts/script-transcript.d.cts +15 -0
- package/dist/app/roleplay/parts/script-transcript.d.ts +15 -0
- package/dist/app/roleplay/parts/script-transcript.js +96 -0
- package/dist/app/roleplay/parts/script-transcript.js.map +1 -0
- package/dist/app/roleplay/parts/section-nav.cjs +2433 -0
- package/dist/app/roleplay/parts/section-nav.cjs.map +1 -0
- package/dist/app/roleplay/parts/section-nav.d.cts +15 -0
- package/dist/app/roleplay/parts/section-nav.d.ts +15 -0
- package/dist/app/roleplay/parts/section-nav.js +96 -0
- package/dist/app/roleplay/parts/section-nav.js.map +1 -0
- package/dist/app/roleplay/parts/session-replay-dialog.cjs +2598 -0
- package/dist/app/roleplay/parts/session-replay-dialog.cjs.map +1 -0
- package/dist/app/roleplay/parts/session-replay-dialog.d.cts +14 -0
- package/dist/app/roleplay/parts/session-replay-dialog.d.ts +14 -0
- package/dist/app/roleplay/parts/session-replay-dialog.js +97 -0
- package/dist/app/roleplay/parts/session-replay-dialog.js.map +1 -0
- package/dist/app/roleplay/parts/step-detail.cjs +2311 -0
- package/dist/app/roleplay/parts/step-detail.cjs.map +1 -0
- package/dist/app/roleplay/parts/step-detail.d.cts +9 -0
- package/dist/app/roleplay/parts/step-detail.d.ts +9 -0
- package/dist/app/roleplay/parts/step-detail.js +96 -0
- package/dist/app/roleplay/parts/step-detail.js.map +1 -0
- package/dist/app/roleplay/parts/step-radar.cjs +463 -0
- package/dist/app/roleplay/parts/step-radar.cjs.map +1 -0
- package/dist/app/roleplay/parts/step-radar.d.cts +8 -0
- package/dist/app/roleplay/parts/step-radar.d.ts +8 -0
- package/dist/app/roleplay/parts/step-radar.js +14 -0
- package/dist/app/roleplay/parts/step-radar.js.map +1 -0
- package/dist/app/roleplay/parts/step-summary.cjs +2651 -0
- package/dist/app/roleplay/parts/step-summary.cjs.map +1 -0
- package/dist/app/roleplay/parts/step-summary.d.cts +8 -0
- package/dist/app/roleplay/parts/step-summary.d.ts +8 -0
- package/dist/app/roleplay/parts/step-summary.js +101 -0
- package/dist/app/roleplay/parts/step-summary.js.map +1 -0
- package/dist/app/roleplay/rp-session-detail.cjs +5703 -0
- package/dist/app/roleplay/rp-session-detail.cjs.map +1 -0
- package/dist/app/roleplay/rp-session-detail.d.cts +17 -0
- package/dist/app/roleplay/rp-session-detail.d.ts +17 -0
- package/dist/app/roleplay/rp-session-detail.js +179 -0
- package/dist/app/roleplay/rp-session-detail.js.map +1 -0
- package/dist/app/roleplay/types.cjs +19 -0
- package/dist/app/roleplay/types.cjs.map +1 -0
- package/dist/app/roleplay/types.d.cts +42 -0
- package/dist/app/roleplay/types.d.ts +42 -0
- package/dist/app/roleplay/types.js +2 -0
- package/dist/app/roleplay/types.js.map +1 -0
- package/dist/app/roleplay/utils/report-parse.cjs +285 -0
- package/dist/app/roleplay/utils/report-parse.cjs.map +1 -0
- package/dist/app/roleplay/utils/report-parse.d.cts +57 -0
- package/dist/app/roleplay/utils/report-parse.d.ts +57 -0
- package/dist/app/roleplay/utils/report-parse.js +8 -0
- package/dist/app/roleplay/utils/report-parse.js.map +1 -0
- package/dist/app/roleplay/utils/report-parse.test.cjs +491 -0
- package/dist/app/roleplay/utils/report-parse.test.cjs.map +1 -0
- package/dist/app/roleplay/utils/report-parse.test.d.cts +2 -0
- package/dist/app/roleplay/utils/report-parse.test.d.ts +2 -0
- package/dist/app/roleplay/utils/report-parse.test.js +237 -0
- package/dist/app/roleplay/utils/report-parse.test.js.map +1 -0
- package/dist/app/roleplay/utils/session-utils.cjs +204 -0
- package/dist/app/roleplay/utils/session-utils.cjs.map +1 -0
- package/dist/app/roleplay/utils/session-utils.d.cts +38 -0
- package/dist/app/roleplay/utils/session-utils.d.ts +38 -0
- package/dist/app/roleplay/utils/session-utils.js +46 -0
- package/dist/app/roleplay/utils/session-utils.js.map +1 -0
- package/dist/atoms/bullet-text.cjs +29 -2
- package/dist/atoms/bullet-text.cjs.map +1 -1
- package/dist/atoms/bullet-text.js +3 -2
- package/dist/atoms/dialog.cjs +29 -2
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +3 -2
- package/dist/atoms/ellipsis-tooltip.cjs +29 -2
- package/dist/atoms/ellipsis-tooltip.cjs.map +1 -1
- package/dist/atoms/ellipsis-tooltip.js +3 -2
- package/dist/atoms/field-error-wrapper.cjs +29 -2
- package/dist/atoms/field-error-wrapper.cjs.map +1 -1
- package/dist/atoms/field-error-wrapper.js +3 -2
- package/dist/atoms/heading.cjs +29 -2
- package/dist/atoms/heading.cjs.map +1 -1
- package/dist/atoms/heading.d.cts +2 -0
- package/dist/atoms/heading.d.ts +2 -0
- package/dist/atoms/heading.js +2 -1
- package/dist/atoms/index.cjs +49 -4
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +67 -66
- package/dist/atoms/list.cjs +29 -2
- package/dist/atoms/list.cjs.map +1 -1
- package/dist/atoms/list.js +3 -2
- package/dist/atoms/pagination.cjs +29 -2
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +3 -2
- package/dist/atoms/typo.cjs +29 -2
- package/dist/atoms/typo.cjs.map +1 -1
- package/dist/atoms/typo.d.cts +2 -0
- package/dist/atoms/typo.d.ts +2 -0
- package/dist/atoms/typo.js +2 -1
- package/dist/chunk-2TOASXPK.js +131 -0
- package/dist/chunk-2TOASXPK.js.map +1 -0
- package/dist/chunk-36W7VD2Z.js +13 -0
- package/dist/chunk-36W7VD2Z.js.map +1 -0
- package/dist/{chunk-7XMPNH2X.js → chunk-3DZIX4CE.js} +8 -8
- package/dist/chunk-3UGBMKSQ.js +166 -0
- package/dist/chunk-3UGBMKSQ.js.map +1 -0
- package/dist/{chunk-XFFVIWAD.js → chunk-47QYYEMG.js} +2 -2
- package/dist/{chunk-VVJEXKCB.js → chunk-4GH4R4VJ.js} +6 -6
- package/dist/chunk-4YAA25AV.js +161 -0
- package/dist/chunk-4YAA25AV.js.map +1 -0
- package/dist/{chunk-MTESLX7K.js → chunk-5IGBFB67.js} +12 -12
- package/dist/chunk-5QIT4URV.js +87 -0
- package/dist/chunk-5QIT4URV.js.map +1 -0
- package/dist/{chunk-LXL7GJUM.js → chunk-5RIAIE2J.js} +3 -3
- package/dist/{chunk-R43F6ZWT.js → chunk-64DSUMXA.js} +2 -2
- package/dist/{chunk-C2FRAZT2.js → chunk-6OT5OYGM.js} +2 -2
- package/dist/chunk-6YIKOYBQ.js +185 -0
- package/dist/chunk-6YIKOYBQ.js.map +1 -0
- package/dist/{chunk-6Q26H64H.js → chunk-74PR3ZWJ.js} +6 -6
- package/dist/{chunk-IA4WXGVH.js → chunk-75EY7LBP.js} +2 -2
- package/dist/chunk-7MXY3D3Z.js +84 -0
- package/dist/chunk-7MXY3D3Z.js.map +1 -0
- package/dist/{chunk-77YN5S26.js → chunk-AELKCD6B.js} +3 -3
- package/dist/{chunk-L5WSNVSD.js → chunk-AHYOAFOU.js} +3 -3
- package/dist/{chunk-6JPGF4MB.js → chunk-AT5PAJLW.js} +2 -2
- package/dist/{chunk-P6YCD2AV.js → chunk-C4INJWFV.js} +9 -9
- package/dist/{chunk-SGJBQKUD.js → chunk-C6HO3IGE.js} +2 -2
- package/dist/{chunk-7NBGSPZU.js → chunk-CBYIPRND.js} +5 -5
- package/dist/{chunk-UIMDXYPP.js → chunk-CGLDFUOY.js} +6 -6
- package/dist/{chunk-DUXYDGHX.js → chunk-CUS3ORMD.js} +6 -6
- package/dist/{chunk-UILGIMXL.js → chunk-D4U2ZV2A.js} +5 -5
- package/dist/{chunk-PRLNOTMV.js → chunk-DPMDQA3O.js} +6 -6
- package/dist/chunk-EBFQFOUQ.js +138 -0
- package/dist/chunk-EBFQFOUQ.js.map +1 -0
- package/dist/chunk-EHDUKUML.js +183 -0
- package/dist/chunk-EHDUKUML.js.map +1 -0
- package/dist/{chunk-6XASFDTI.js → chunk-EJXZXUD2.js} +15 -15
- package/dist/{chunk-QFSMOKC6.js → chunk-FAL6S2XK.js} +2 -2
- package/dist/{chunk-GMEGTXIV.js → chunk-FJEDSUGU.js} +5 -5
- package/dist/{chunk-WLG6GG26.js → chunk-G3KQN32M.js} +3 -3
- package/dist/chunk-GA6W62DO.js +101 -0
- package/dist/chunk-GA6W62DO.js.map +1 -0
- package/dist/{chunk-72ZC7DBY.js → chunk-GNB4A34H.js} +2 -2
- package/dist/{chunk-KEFAYPBO.js → chunk-IRFNKOKQ.js} +4 -4
- package/dist/{chunk-5BIICWFT.js → chunk-ISSUGCCY.js} +6 -6
- package/dist/{chunk-PZDN6K6R.js → chunk-JCZXPONS.js} +4 -4
- package/dist/{chunk-7TRT4QTP.js → chunk-K4RZTENM.js} +2 -2
- package/dist/{chunk-Z54XTEAF.js → chunk-KDS7OQOY.js} +2 -2
- package/dist/chunk-KJPBBBVK.js +142 -0
- package/dist/chunk-KJPBBBVK.js.map +1 -0
- package/dist/{chunk-YXFHD2PY.js → chunk-L4QQGIYQ.js} +24 -3
- package/dist/chunk-L4QQGIYQ.js.map +1 -0
- package/dist/{chunk-YCV3HR4J.js → chunk-LAGJDIVU.js} +2 -2
- package/dist/{chunk-3UJEOHQT.js → chunk-LK2H4QTJ.js} +6 -6
- package/dist/{chunk-UHAMISMF.js → chunk-LRNO4W2P.js} +4 -4
- package/dist/{chunk-5FLPPHUZ.js → chunk-MQKIIIBW.js} +2 -2
- package/dist/{chunk-6YPAN4D3.js → chunk-N242VJOP.js} +5 -5
- package/dist/{chunk-PWUCBBQP.js → chunk-N3FMP27I.js} +6 -6
- package/dist/{chunk-NIMF5FJI.js → chunk-NK6S7ZMB.js} +6 -6
- package/dist/chunk-NKW6BO5R.js +264 -0
- package/dist/chunk-NKW6BO5R.js.map +1 -0
- package/dist/{chunk-IIA2BVJI.js → chunk-NVRVOTWZ.js} +3 -3
- package/dist/{chunk-GTTZJ2Y7.js → chunk-O332K3SW.js} +4 -4
- package/dist/{chunk-LCR5R743.js → chunk-OOM522XP.js} +2 -2
- package/dist/{chunk-FIQJUO66.js → chunk-OPIVSYLN.js} +5 -5
- package/dist/{chunk-SQZVLRUH.js → chunk-OUDDTPEN.js} +5 -5
- package/dist/chunk-OUP3VFXG.js +1 -0
- package/dist/chunk-OUP3VFXG.js.map +1 -0
- package/dist/{chunk-URSBI6BQ.js → chunk-OW2QNTK3.js} +3 -3
- package/dist/{chunk-GBT2BBZS.js → chunk-P2H3VCIB.js} +3 -3
- package/dist/{chunk-TF3RLGKA.js → chunk-P4DJ5F6Z.js} +4 -4
- package/dist/{chunk-YWLFDIBP.js → chunk-PAUEQXYG.js} +2 -2
- package/dist/{chunk-XOCVP6IW.js → chunk-Q2FDF2AB.js} +8 -8
- package/dist/{chunk-VFWRW7TA.js → chunk-QLNAAZJX.js} +2 -2
- package/dist/{chunk-C5CEDLV6.js → chunk-QLOYGKKM.js} +2 -2
- package/dist/chunk-QMAINJ4G.js +190 -0
- package/dist/chunk-QMAINJ4G.js.map +1 -0
- package/dist/{chunk-DDYPJWZV.js → chunk-RBU2TRYY.js} +10 -10
- package/dist/{chunk-FFGGO6E4.js → chunk-RRC4WFG3.js} +2 -2
- package/dist/{chunk-5SXTL6NO.js → chunk-RWJUXAFY.js} +2 -2
- package/dist/{chunk-BZVA4RGI.js → chunk-S4MEMFKG.js} +2 -2
- package/dist/{chunk-PTUL6MDB.js → chunk-SINRU2A6.js} +2 -2
- package/dist/{chunk-UA2HDDD4.js → chunk-SOKGYD5B.js} +6 -6
- package/dist/{chunk-BZCUF5K6.js → chunk-SQ3FYBJT.js} +5 -5
- package/dist/chunk-T7LKMJVA.js +142 -0
- package/dist/chunk-T7LKMJVA.js.map +1 -0
- package/dist/chunk-TFJJKM3W.js +261 -0
- package/dist/chunk-TFJJKM3W.js.map +1 -0
- package/dist/{chunk-5FXPD4NE.js → chunk-U2EAXN3Y.js} +7 -7
- package/dist/{chunk-B7SKF5RD.js → chunk-U7HF53KK.js} +4 -4
- package/dist/{chunk-YIVIBIK2.js → chunk-USGOLLYO.js} +24 -3
- package/dist/chunk-USGOLLYO.js.map +1 -0
- package/dist/{chunk-Z2U2YQOG.js → chunk-USL6PICI.js} +2 -2
- package/dist/chunk-UXAEOCOH.js +150 -0
- package/dist/chunk-UXAEOCOH.js.map +1 -0
- package/dist/{chunk-DHP7LYK7.js → chunk-UXH2XIB2.js} +2 -2
- package/dist/{chunk-U5LZO2EI.js → chunk-V7KAHLW2.js} +6 -6
- package/dist/{chunk-VYUQXEXS.js → chunk-VBXZIIUA.js} +5 -5
- package/dist/{chunk-IYAN33WP.js → chunk-VVWQZK5L.js} +3 -3
- package/dist/{chunk-DBXQFZBB.js → chunk-WLKK5L3P.js} +8 -8
- package/dist/chunk-WTS75RUC.js +1 -0
- package/dist/chunk-WTS75RUC.js.map +1 -0
- package/dist/{chunk-ANFQJ6YW.js → chunk-WYHDQK2S.js} +9 -9
- package/dist/{chunk-RVHE3UVN.js → chunk-X3TBEGPA.js} +6 -6
- package/dist/chunk-XM4GWPXC.js +236 -0
- package/dist/chunk-XM4GWPXC.js.map +1 -0
- package/dist/{chunk-AEDSRBBB.js → chunk-XWHBJY5V.js} +3 -3
- package/dist/{chunk-SHFN2BOB.js → chunk-ZGTGEBQX.js} +2 -2
- package/dist/context/dynamic-form-context.cjs +49 -4
- package/dist/context/dynamic-form-context.cjs.map +1 -1
- package/dist/context/dynamic-form-context.js +5 -4
- package/dist/context/index.cjs +49 -4
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.js +5 -4
- package/dist/index.cjs +51 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +76 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +161 -157
- package/dist/molecules/autocomplete-textfield.cjs +29 -2
- package/dist/molecules/autocomplete-textfield.cjs.map +1 -1
- package/dist/molecules/autocomplete-textfield.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +14 -13
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +29 -2
- 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 +29 -2
- 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 +10 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +29 -2
- 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 +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +49 -4
- 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 +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +18 -17
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +20 -19
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +49 -4
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +23 -22
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +3 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -7
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +29 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +6 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +49 -4
- 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 +49 -4
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +33 -32
- package/dist/molecules/date-picker/date-picker-button.cjs +49 -4
- 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 +49 -4
- 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 +29 -2
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +5 -4
- package/dist/molecules/download-card.cjs +29 -2
- package/dist/molecules/download-card.cjs.map +1 -1
- package/dist/molecules/download-card.js +3 -2
- package/dist/molecules/dynamic-field.cjs +49 -4
- package/dist/molecules/dynamic-field.cjs.map +1 -1
- package/dist/molecules/dynamic-field.js +7 -6
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +29 -2
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +5 -4
- package/dist/molecules/dynamic-form-editor-field-list-panel.cjs +29 -2
- package/dist/molecules/dynamic-form-editor-field-list-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-list-panel.js +4 -3
- package/dist/molecules/dynamic-form-editor-issues-panel.cjs +29 -2
- package/dist/molecules/dynamic-form-editor-issues-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-issues-panel.js +4 -3
- package/dist/molecules/dynamic-form-editor-preview-panel.cjs +49 -4
- package/dist/molecules/dynamic-form-editor-preview-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-preview-panel.js +10 -9
- package/dist/molecules/dynamic-form-editor.cjs +49 -4
- package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor.js +16 -15
- package/dist/molecules/dynamic-form.cjs +49 -4
- package/dist/molecules/dynamic-form.cjs.map +1 -1
- package/dist/molecules/dynamic-form.js +8 -7
- package/dist/molecules/expand-table/index.cjs +29 -2
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +5 -4
- package/dist/molecules/force-refresh.cjs +29 -2
- package/dist/molecules/force-refresh.cjs.map +1 -1
- package/dist/molecules/force-refresh.js +3 -2
- package/dist/molecules/form/form.cjs +49 -4
- package/dist/molecules/form/form.cjs.map +1 -1
- package/dist/molecules/form/form.js +4 -3
- package/dist/molecules/form/index.cjs +49 -4
- package/dist/molecules/form/index.cjs.map +1 -1
- package/dist/molecules/form/index.js +4 -3
- package/dist/molecules/ghost-post.cjs +29 -2
- package/dist/molecules/ghost-post.cjs.map +1 -1
- package/dist/molecules/ghost-post.js +3 -2
- package/dist/molecules/index.cjs +49 -4
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +76 -75
- package/dist/molecules/learning-post.cjs +49 -4
- package/dist/molecules/learning-post.cjs.map +1 -1
- package/dist/molecules/learning-post.js +6 -5
- package/dist/molecules/navigation.cjs +29 -2
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +3 -2
- package/dist/molecules/one-on-one-guide-list.cjs +49 -4
- package/dist/molecules/one-on-one-guide-list.cjs.map +1 -1
- package/dist/molecules/one-on-one-guide-list.js +5 -4
- package/dist/molecules/stepper.cjs +29 -2
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +4 -3
- package/dist/molecules/tag-selector.cjs +29 -2
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +5 -4
- package/dist/molecules/time-select.js +3 -2
- package/dist/molecules/training-info-guideline.cjs +49 -4
- package/dist/molecules/training-info-guideline.cjs.map +1 -1
- package/dist/molecules/training-info-guideline.js +6 -5
- package/dist/utils/clamp-style.cjs +37 -0
- package/dist/utils/clamp-style.cjs.map +1 -0
- package/dist/utils/clamp-style.d.cts +13 -0
- package/dist/utils/clamp-style.d.ts +13 -0
- package/dist/utils/clamp-style.js +8 -0
- package/dist/utils/clamp-style.js.map +1 -0
- package/dist/utils/index.cjs +11 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +10 -6
- package/package.json +28 -2
- package/src/app/roleplay/chart/session-chart.tsx +185 -0
- package/src/app/roleplay/index.ts +8 -0
- package/src/app/roleplay/parts/analysis-section.tsx +98 -0
- package/src/app/roleplay/parts/coaching-panel.tsx +101 -0
- package/src/app/roleplay/parts/content.tsx +146 -0
- package/src/app/roleplay/parts/header.tsx +168 -0
- package/src/app/roleplay/parts/score-summary.tsx +158 -0
- package/src/app/roleplay/parts/score-trend-section.tsx +255 -0
- package/src/app/roleplay/parts/script-transcript.tsx +190 -0
- package/src/app/roleplay/parts/section-nav.tsx +299 -0
- package/src/app/roleplay/parts/session-replay-dialog.tsx +168 -0
- package/src/app/roleplay/parts/step-detail.tsx +173 -0
- package/src/app/roleplay/parts/step-radar.tsx +80 -0
- package/src/app/roleplay/parts/step-summary.tsx +149 -0
- package/src/app/roleplay/rp-session-detail.tsx +176 -0
- package/src/app/roleplay/types.ts +61 -0
- package/src/app/roleplay/utils/report-parse.test.ts +268 -0
- package/src/app/roleplay/utils/report-parse.ts +443 -0
- package/src/app/roleplay/utils/session-utils.ts +215 -0
- package/src/atoms/heading.tsx +19 -3
- package/src/atoms/typo.tsx +19 -3
- package/src/constrant/trainingLog.dummy.json +1 -0
- package/src/utils/clamp-style.ts +17 -0
- package/src/utils/index.ts +2 -1
- package/dist/chunk-U7PMCTVQ.js +0 -1
- package/dist/chunk-YIVIBIK2.js.map +0 -1
- package/dist/chunk-YXFHD2PY.js.map +0 -1
- /package/dist/{chunk-U7PMCTVQ.js.map → app/roleplay/chart/session-chart.js.map} +0 -0
- /package/dist/{chunk-7XMPNH2X.js.map → chunk-3DZIX4CE.js.map} +0 -0
- /package/dist/{chunk-XFFVIWAD.js.map → chunk-47QYYEMG.js.map} +0 -0
- /package/dist/{chunk-VVJEXKCB.js.map → chunk-4GH4R4VJ.js.map} +0 -0
- /package/dist/{chunk-MTESLX7K.js.map → chunk-5IGBFB67.js.map} +0 -0
- /package/dist/{chunk-LXL7GJUM.js.map → chunk-5RIAIE2J.js.map} +0 -0
- /package/dist/{chunk-R43F6ZWT.js.map → chunk-64DSUMXA.js.map} +0 -0
- /package/dist/{chunk-C2FRAZT2.js.map → chunk-6OT5OYGM.js.map} +0 -0
- /package/dist/{chunk-6Q26H64H.js.map → chunk-74PR3ZWJ.js.map} +0 -0
- /package/dist/{chunk-IA4WXGVH.js.map → chunk-75EY7LBP.js.map} +0 -0
- /package/dist/{chunk-77YN5S26.js.map → chunk-AELKCD6B.js.map} +0 -0
- /package/dist/{chunk-L5WSNVSD.js.map → chunk-AHYOAFOU.js.map} +0 -0
- /package/dist/{chunk-6JPGF4MB.js.map → chunk-AT5PAJLW.js.map} +0 -0
- /package/dist/{chunk-P6YCD2AV.js.map → chunk-C4INJWFV.js.map} +0 -0
- /package/dist/{chunk-SGJBQKUD.js.map → chunk-C6HO3IGE.js.map} +0 -0
- /package/dist/{chunk-7NBGSPZU.js.map → chunk-CBYIPRND.js.map} +0 -0
- /package/dist/{chunk-UIMDXYPP.js.map → chunk-CGLDFUOY.js.map} +0 -0
- /package/dist/{chunk-DUXYDGHX.js.map → chunk-CUS3ORMD.js.map} +0 -0
- /package/dist/{chunk-UILGIMXL.js.map → chunk-D4U2ZV2A.js.map} +0 -0
- /package/dist/{chunk-PRLNOTMV.js.map → chunk-DPMDQA3O.js.map} +0 -0
- /package/dist/{chunk-6XASFDTI.js.map → chunk-EJXZXUD2.js.map} +0 -0
- /package/dist/{chunk-QFSMOKC6.js.map → chunk-FAL6S2XK.js.map} +0 -0
- /package/dist/{chunk-GMEGTXIV.js.map → chunk-FJEDSUGU.js.map} +0 -0
- /package/dist/{chunk-WLG6GG26.js.map → chunk-G3KQN32M.js.map} +0 -0
- /package/dist/{chunk-72ZC7DBY.js.map → chunk-GNB4A34H.js.map} +0 -0
- /package/dist/{chunk-KEFAYPBO.js.map → chunk-IRFNKOKQ.js.map} +0 -0
- /package/dist/{chunk-5BIICWFT.js.map → chunk-ISSUGCCY.js.map} +0 -0
- /package/dist/{chunk-PZDN6K6R.js.map → chunk-JCZXPONS.js.map} +0 -0
- /package/dist/{chunk-7TRT4QTP.js.map → chunk-K4RZTENM.js.map} +0 -0
- /package/dist/{chunk-Z54XTEAF.js.map → chunk-KDS7OQOY.js.map} +0 -0
- /package/dist/{chunk-YCV3HR4J.js.map → chunk-LAGJDIVU.js.map} +0 -0
- /package/dist/{chunk-3UJEOHQT.js.map → chunk-LK2H4QTJ.js.map} +0 -0
- /package/dist/{chunk-UHAMISMF.js.map → chunk-LRNO4W2P.js.map} +0 -0
- /package/dist/{chunk-5FLPPHUZ.js.map → chunk-MQKIIIBW.js.map} +0 -0
- /package/dist/{chunk-6YPAN4D3.js.map → chunk-N242VJOP.js.map} +0 -0
- /package/dist/{chunk-PWUCBBQP.js.map → chunk-N3FMP27I.js.map} +0 -0
- /package/dist/{chunk-NIMF5FJI.js.map → chunk-NK6S7ZMB.js.map} +0 -0
- /package/dist/{chunk-IIA2BVJI.js.map → chunk-NVRVOTWZ.js.map} +0 -0
- /package/dist/{chunk-GTTZJ2Y7.js.map → chunk-O332K3SW.js.map} +0 -0
- /package/dist/{chunk-LCR5R743.js.map → chunk-OOM522XP.js.map} +0 -0
- /package/dist/{chunk-FIQJUO66.js.map → chunk-OPIVSYLN.js.map} +0 -0
- /package/dist/{chunk-SQZVLRUH.js.map → chunk-OUDDTPEN.js.map} +0 -0
- /package/dist/{chunk-URSBI6BQ.js.map → chunk-OW2QNTK3.js.map} +0 -0
- /package/dist/{chunk-GBT2BBZS.js.map → chunk-P2H3VCIB.js.map} +0 -0
- /package/dist/{chunk-TF3RLGKA.js.map → chunk-P4DJ5F6Z.js.map} +0 -0
- /package/dist/{chunk-YWLFDIBP.js.map → chunk-PAUEQXYG.js.map} +0 -0
- /package/dist/{chunk-XOCVP6IW.js.map → chunk-Q2FDF2AB.js.map} +0 -0
- /package/dist/{chunk-VFWRW7TA.js.map → chunk-QLNAAZJX.js.map} +0 -0
- /package/dist/{chunk-C5CEDLV6.js.map → chunk-QLOYGKKM.js.map} +0 -0
- /package/dist/{chunk-DDYPJWZV.js.map → chunk-RBU2TRYY.js.map} +0 -0
- /package/dist/{chunk-FFGGO6E4.js.map → chunk-RRC4WFG3.js.map} +0 -0
- /package/dist/{chunk-5SXTL6NO.js.map → chunk-RWJUXAFY.js.map} +0 -0
- /package/dist/{chunk-BZVA4RGI.js.map → chunk-S4MEMFKG.js.map} +0 -0
- /package/dist/{chunk-PTUL6MDB.js.map → chunk-SINRU2A6.js.map} +0 -0
- /package/dist/{chunk-UA2HDDD4.js.map → chunk-SOKGYD5B.js.map} +0 -0
- /package/dist/{chunk-BZCUF5K6.js.map → chunk-SQ3FYBJT.js.map} +0 -0
- /package/dist/{chunk-5FXPD4NE.js.map → chunk-U2EAXN3Y.js.map} +0 -0
- /package/dist/{chunk-B7SKF5RD.js.map → chunk-U7HF53KK.js.map} +0 -0
- /package/dist/{chunk-Z2U2YQOG.js.map → chunk-USL6PICI.js.map} +0 -0
- /package/dist/{chunk-DHP7LYK7.js.map → chunk-UXH2XIB2.js.map} +0 -0
- /package/dist/{chunk-U5LZO2EI.js.map → chunk-V7KAHLW2.js.map} +0 -0
- /package/dist/{chunk-VYUQXEXS.js.map → chunk-VBXZIIUA.js.map} +0 -0
- /package/dist/{chunk-IYAN33WP.js.map → chunk-VVWQZK5L.js.map} +0 -0
- /package/dist/{chunk-DBXQFZBB.js.map → chunk-WLKK5L3P.js.map} +0 -0
- /package/dist/{chunk-ANFQJ6YW.js.map → chunk-WYHDQK2S.js.map} +0 -0
- /package/dist/{chunk-RVHE3UVN.js.map → chunk-X3TBEGPA.js.map} +0 -0
- /package/dist/{chunk-AEDSRBBB.js.map → chunk-XWHBJY5V.js.map} +0 -0
- /package/dist/{chunk-SHFN2BOB.js.map → chunk-ZGTGEBQX.js.map} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Box, Flex, Heading, Separator, Typo } from '../../../atoms';
|
|
5
|
+
import type { RpReportAnalysisItem } from '../utils/report-parse';
|
|
6
|
+
|
|
7
|
+
/* ───────────────────────── Section ───────────────────────── */
|
|
8
|
+
|
|
9
|
+
export function Section({
|
|
10
|
+
title,
|
|
11
|
+
desc,
|
|
12
|
+
children,
|
|
13
|
+
}: {
|
|
14
|
+
title: string;
|
|
15
|
+
desc?: string;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}): React.ReactElement {
|
|
18
|
+
return (
|
|
19
|
+
<section>
|
|
20
|
+
<Box mb="3">
|
|
21
|
+
<Heading
|
|
22
|
+
size={{ initial: '4', md: '5' }}
|
|
23
|
+
style={{ textWrap: 'balance' }}
|
|
24
|
+
weight="bold"
|
|
25
|
+
>
|
|
26
|
+
{title}
|
|
27
|
+
</Heading>
|
|
28
|
+
{desc ? (
|
|
29
|
+
<Box mt="1" style={{ maxWidth: '65ch' }}>
|
|
30
|
+
<Typo as="p" color="gray" variant="body">
|
|
31
|
+
{desc}
|
|
32
|
+
</Typo>
|
|
33
|
+
</Box>
|
|
34
|
+
) : null}
|
|
35
|
+
</Box>
|
|
36
|
+
{children}
|
|
37
|
+
</section>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ───────────────────────── AnalysisSection ───────────────────────── */
|
|
42
|
+
|
|
43
|
+
export interface AnalysisSectionProps {
|
|
44
|
+
title: string;
|
|
45
|
+
desc?: string;
|
|
46
|
+
items: RpReportAnalysisItem[];
|
|
47
|
+
tone: 'good' | 'bad';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AnalysisSection({
|
|
51
|
+
title,
|
|
52
|
+
desc,
|
|
53
|
+
items,
|
|
54
|
+
tone,
|
|
55
|
+
}: AnalysisSectionProps): React.ReactElement | null {
|
|
56
|
+
if (items.length === 0) return null;
|
|
57
|
+
|
|
58
|
+
const accentBorder = tone === 'good' ? 'var(--green-a6)' : 'var(--amber-a6)';
|
|
59
|
+
const numColor = tone === 'good' ? 'var(--green-11)' : 'var(--amber-11)';
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Section desc={desc} title={title}>
|
|
63
|
+
<Flex direction="column">
|
|
64
|
+
{items.map((item, index) => (
|
|
65
|
+
<Box key={item.title}>
|
|
66
|
+
{index > 0 && <Separator size="4" />}
|
|
67
|
+
<Flex
|
|
68
|
+
gap="3"
|
|
69
|
+
pl="3"
|
|
70
|
+
py="3"
|
|
71
|
+
style={{ borderLeft: `2px solid ${accentBorder}` }}
|
|
72
|
+
>
|
|
73
|
+
<Typo
|
|
74
|
+
as="span"
|
|
75
|
+
mono
|
|
76
|
+
style={{ flexShrink: 0, color: numColor }}
|
|
77
|
+
variant="body"
|
|
78
|
+
weight="bold"
|
|
79
|
+
>
|
|
80
|
+
{index + 1}
|
|
81
|
+
</Typo>
|
|
82
|
+
<Box style={{ minWidth: 0 }}>
|
|
83
|
+
<Typo as="p" variant="body" weight="medium">
|
|
84
|
+
{item.title}
|
|
85
|
+
</Typo>
|
|
86
|
+
<Box mt="1" style={{ maxWidth: '65ch' }}>
|
|
87
|
+
<Typo as="p" variant="body">
|
|
88
|
+
{item.detail}
|
|
89
|
+
</Typo>
|
|
90
|
+
</Box>
|
|
91
|
+
</Box>
|
|
92
|
+
</Flex>
|
|
93
|
+
</Box>
|
|
94
|
+
))}
|
|
95
|
+
</Flex>
|
|
96
|
+
</Section>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Box, Card, Flex, Grid, Heading, Typo } from '../../../atoms';
|
|
4
|
+
import type { RpReportSkill } from '../utils/report-parse';
|
|
5
|
+
|
|
6
|
+
export interface CoachingPanelProps {
|
|
7
|
+
skills: RpReportSkill[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function Section({
|
|
11
|
+
title,
|
|
12
|
+
desc,
|
|
13
|
+
children,
|
|
14
|
+
}: {
|
|
15
|
+
title: string;
|
|
16
|
+
desc?: string;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}): React.ReactElement {
|
|
19
|
+
return (
|
|
20
|
+
<section>
|
|
21
|
+
<Box mb="3">
|
|
22
|
+
<Heading
|
|
23
|
+
size={{ initial: '4', md: '5' }}
|
|
24
|
+
style={{ textWrap: 'balance' }}
|
|
25
|
+
weight="bold"
|
|
26
|
+
>
|
|
27
|
+
{title}
|
|
28
|
+
</Heading>
|
|
29
|
+
{desc ? (
|
|
30
|
+
<Box mt="1" style={{ maxWidth: '65ch' }}>
|
|
31
|
+
<Typo as="p" color="gray" variant="body">
|
|
32
|
+
{desc}
|
|
33
|
+
</Typo>
|
|
34
|
+
</Box>
|
|
35
|
+
) : null}
|
|
36
|
+
</Box>
|
|
37
|
+
{children}
|
|
38
|
+
</section>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CoachingPanel({ skills }: CoachingPanelProps): React.ReactElement | null {
|
|
43
|
+
if (skills.length === 0) return null;
|
|
44
|
+
return (
|
|
45
|
+
<Section desc="다음 재도전에 바로 쓸 대화 기술" title="즉시 적용 스킬">
|
|
46
|
+
<Grid columns="1" gap="6">
|
|
47
|
+
{skills.map((skill, index) => (
|
|
48
|
+
<Card
|
|
49
|
+
key={skill.title}
|
|
50
|
+
style={{ padding: 'var(--space-3)' }}
|
|
51
|
+
variant="surface"
|
|
52
|
+
>
|
|
53
|
+
<Flex align="center" gap="2">
|
|
54
|
+
<Flex
|
|
55
|
+
align="center"
|
|
56
|
+
justify="center"
|
|
57
|
+
style={{
|
|
58
|
+
width: 22,
|
|
59
|
+
height: 22,
|
|
60
|
+
borderRadius: 'var(--radius-full)',
|
|
61
|
+
background: 'var(--accent-9)',
|
|
62
|
+
flexShrink: 0,
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
<Typo
|
|
66
|
+
as="span"
|
|
67
|
+
mono
|
|
68
|
+
style={{ color: 'var(--accent-contrast)' }}
|
|
69
|
+
variant="body"
|
|
70
|
+
weight="bold"
|
|
71
|
+
>
|
|
72
|
+
{index + 1}
|
|
73
|
+
</Typo>
|
|
74
|
+
</Flex>
|
|
75
|
+
<Typo as="span" variant="body" weight="medium">
|
|
76
|
+
{skill.title}
|
|
77
|
+
</Typo>
|
|
78
|
+
</Flex>
|
|
79
|
+
<Box mt="2" style={{ maxWidth: '65ch' }}>
|
|
80
|
+
<Typo as="p" variant="body">
|
|
81
|
+
{skill.description}
|
|
82
|
+
</Typo>
|
|
83
|
+
</Box>
|
|
84
|
+
<Box
|
|
85
|
+
mt="2"
|
|
86
|
+
p="2"
|
|
87
|
+
style={{
|
|
88
|
+
borderRadius: 'var(--radius-2)',
|
|
89
|
+
background: 'var(--accent-a2)',
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
<Typo as="p" style={{ color: 'var(--accent-11)' }} variant="body">
|
|
93
|
+
{skill.example}
|
|
94
|
+
</Typo>
|
|
95
|
+
</Box>
|
|
96
|
+
</Card>
|
|
97
|
+
))}
|
|
98
|
+
</Grid>
|
|
99
|
+
</Section>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Box, Flex, Grid, Heading, Separator, Typo } from '../../../atoms';
|
|
5
|
+
import type { RpSessionDetailData, RpSessionHistoryItem } from '../types';
|
|
6
|
+
import type { RpReport } from '../utils/report-parse';
|
|
7
|
+
import { hasStepSignal } from '../utils/session-utils';
|
|
8
|
+
import type { SpeechShare } from '../utils/session-utils';
|
|
9
|
+
import { AnalysisSection, Section } from './analysis-section';
|
|
10
|
+
import { CoachingPanel } from './coaching-panel';
|
|
11
|
+
import { ScoreSummary } from './score-summary';
|
|
12
|
+
import { ScoreTrendSection } from './score-trend-section';
|
|
13
|
+
import { SectionNav } from './section-nav';
|
|
14
|
+
import type { SectionNavItem } from './section-nav';
|
|
15
|
+
import { StepDetail } from './step-detail';
|
|
16
|
+
import { StepSummary } from './step-summary';
|
|
17
|
+
|
|
18
|
+
export interface ContentProps {
|
|
19
|
+
detail: RpSessionDetailData;
|
|
20
|
+
report: RpReport;
|
|
21
|
+
history: RpSessionHistoryItem[];
|
|
22
|
+
speechShare: SpeechShare | null;
|
|
23
|
+
scrollMarginTop: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function Content({
|
|
27
|
+
detail,
|
|
28
|
+
report,
|
|
29
|
+
history,
|
|
30
|
+
speechShare,
|
|
31
|
+
scrollMarginTop,
|
|
32
|
+
}: ContentProps): React.ReactElement {
|
|
33
|
+
const { steps, skills, strengths, improvements } = report;
|
|
34
|
+
const scoreValue = detail.totalScore ?? report.totalScore;
|
|
35
|
+
|
|
36
|
+
const showTrend = history.length > 1;
|
|
37
|
+
const showStepSummary = steps.length > 0 && steps.some(hasStepSignal);
|
|
38
|
+
const showStepDetail = steps.length > 0;
|
|
39
|
+
|
|
40
|
+
const navItems: SectionNavItem[] = [
|
|
41
|
+
{ id: 'score-summary', label: '종합 점수', score: scoreValue, max: 100 },
|
|
42
|
+
...(strengths.length > 0 ? [{ id: 'strengths', label: '강점' }] : []),
|
|
43
|
+
...(improvements.length > 0 ? [{ id: 'improvements', label: '개선점' }] : []),
|
|
44
|
+
...(showTrend ? [{ id: 'score-trend', label: '총점 추이' }] : []),
|
|
45
|
+
...(showStepSummary ? [{ id: 'step-summary', label: '평가 단계 요약' }] : []),
|
|
46
|
+
...(showStepDetail ? [{ id: 'step-detail', label: '단계별 상세 분석' }] : []),
|
|
47
|
+
...(skills.length > 0 ? [{ id: 'coaching', label: '즉시 적용 스킬' }] : []),
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<Grid
|
|
52
|
+
align="start"
|
|
53
|
+
columns={{ initial: '1', md: 'minmax(0, 1fr) 224px' }}
|
|
54
|
+
gap="7"
|
|
55
|
+
>
|
|
56
|
+
<Flex direction="column" gap="7">
|
|
57
|
+
{report.frameworkTitle !== null || report.frameworkDescription !== null ? (
|
|
58
|
+
<Box>
|
|
59
|
+
{report.frameworkTitle !== null ? (
|
|
60
|
+
<Heading size="5" weight="bold">
|
|
61
|
+
{report.frameworkTitle}
|
|
62
|
+
</Heading>
|
|
63
|
+
) : null}
|
|
64
|
+
{report.frameworkDescription !== null ? (
|
|
65
|
+
<Box mt={report.frameworkTitle !== null ? '2' : '0'}>
|
|
66
|
+
<Typo as="p" variant="body">
|
|
67
|
+
{report.frameworkDescription}
|
|
68
|
+
</Typo>
|
|
69
|
+
</Box>
|
|
70
|
+
) : null}
|
|
71
|
+
</Box>
|
|
72
|
+
) : null}
|
|
73
|
+
|
|
74
|
+
<Box id="score-summary" style={{ scrollMarginTop }}>
|
|
75
|
+
<ScoreSummary detail={detail} report={report} speechShare={speechShare} />
|
|
76
|
+
</Box>
|
|
77
|
+
|
|
78
|
+
{strengths.length > 0 ? (
|
|
79
|
+
<Box id="strengths" style={{ scrollMarginTop }}>
|
|
80
|
+
<AnalysisSection
|
|
81
|
+
desc="이번 세션에서 잘한 점"
|
|
82
|
+
items={strengths}
|
|
83
|
+
title="강점"
|
|
84
|
+
tone="good"
|
|
85
|
+
/>
|
|
86
|
+
</Box>
|
|
87
|
+
) : null}
|
|
88
|
+
|
|
89
|
+
{improvements.length > 0 ? (
|
|
90
|
+
<Box id="improvements" style={{ scrollMarginTop }}>
|
|
91
|
+
<AnalysisSection
|
|
92
|
+
desc="다음 시도에서 보완할 점"
|
|
93
|
+
items={improvements}
|
|
94
|
+
title="개선점"
|
|
95
|
+
tone="bad"
|
|
96
|
+
/>
|
|
97
|
+
</Box>
|
|
98
|
+
) : null}
|
|
99
|
+
|
|
100
|
+
{showTrend ? (
|
|
101
|
+
<Box id="score-trend" style={{ scrollMarginTop }}>
|
|
102
|
+
<ScoreTrendSection history={history} />
|
|
103
|
+
</Box>
|
|
104
|
+
) : null}
|
|
105
|
+
|
|
106
|
+
{showStepSummary ? (
|
|
107
|
+
<Box id="step-summary" style={{ scrollMarginTop }}>
|
|
108
|
+
<StepSummary steps={steps} />
|
|
109
|
+
</Box>
|
|
110
|
+
) : null}
|
|
111
|
+
|
|
112
|
+
{showStepDetail ? (
|
|
113
|
+
<Box id="step-detail" style={{ scrollMarginTop }}>
|
|
114
|
+
<Section
|
|
115
|
+
desc="대화 프레임워크 단계별 평가 결과입니다."
|
|
116
|
+
title="단계별 상세 분석"
|
|
117
|
+
>
|
|
118
|
+
<Flex direction="column">
|
|
119
|
+
{steps.map((step, i) => (
|
|
120
|
+
<Box key={step.key}>
|
|
121
|
+
{i > 0 ? (
|
|
122
|
+
<Separator
|
|
123
|
+
mb="6"
|
|
124
|
+
size="4"
|
|
125
|
+
style={{ marginTop: 'calc(var(--space-9) * 1.6)' }}
|
|
126
|
+
/>
|
|
127
|
+
) : null}
|
|
128
|
+
<StepDetail scrollMarginTop={scrollMarginTop} step={step} />
|
|
129
|
+
</Box>
|
|
130
|
+
))}
|
|
131
|
+
</Flex>
|
|
132
|
+
</Section>
|
|
133
|
+
</Box>
|
|
134
|
+
) : null}
|
|
135
|
+
|
|
136
|
+
{skills.length > 0 ? (
|
|
137
|
+
<Box id="coaching" style={{ scrollMarginTop }}>
|
|
138
|
+
<CoachingPanel skills={skills} />
|
|
139
|
+
</Box>
|
|
140
|
+
) : null}
|
|
141
|
+
</Flex>
|
|
142
|
+
|
|
143
|
+
<SectionNav items={navItems} steps={showStepDetail ? steps : []} />
|
|
144
|
+
</Grid>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Badge, Box, Button, Flex, Heading, Typo } from '../../../atoms';
|
|
4
|
+
import type { RpSessionDetailData } from '../types';
|
|
5
|
+
import { formatDate, formatDuration, statusLabelOf } from '../utils/session-utils';
|
|
6
|
+
|
|
7
|
+
export interface HeaderProps {
|
|
8
|
+
detail: RpSessionDetailData;
|
|
9
|
+
hasScript: boolean;
|
|
10
|
+
onOpenReplay: () => void;
|
|
11
|
+
onResolveMediaUrl?: (
|
|
12
|
+
rawUrl: string,
|
|
13
|
+
options: { disposition: 'inline' | 'attachment' }
|
|
14
|
+
) => string | Promise<string>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function PdfIcon(): React.ReactElement {
|
|
18
|
+
return (
|
|
19
|
+
<svg
|
|
20
|
+
aria-hidden="true"
|
|
21
|
+
fill="none"
|
|
22
|
+
height="13"
|
|
23
|
+
stroke="currentColor"
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
strokeWidth="2"
|
|
27
|
+
viewBox="0 0 24 24"
|
|
28
|
+
width="13"
|
|
29
|
+
>
|
|
30
|
+
<path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z" />
|
|
31
|
+
<path d="M14 3v5h5" />
|
|
32
|
+
<path d="M12 12v5" />
|
|
33
|
+
<path d="M9.5 14.5 12 17l2.5-2.5" />
|
|
34
|
+
</svg>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function VideoIcon(): React.ReactElement {
|
|
39
|
+
return (
|
|
40
|
+
<svg
|
|
41
|
+
aria-hidden="true"
|
|
42
|
+
fill="none"
|
|
43
|
+
height="13"
|
|
44
|
+
stroke="currentColor"
|
|
45
|
+
strokeLinecap="round"
|
|
46
|
+
strokeLinejoin="round"
|
|
47
|
+
strokeWidth="2"
|
|
48
|
+
viewBox="0 0 24 24"
|
|
49
|
+
width="13"
|
|
50
|
+
>
|
|
51
|
+
<rect height="12" rx="2" width="13" x="2" y="6" />
|
|
52
|
+
<path d="m15 10 6-3v10l-6-3z" />
|
|
53
|
+
</svg>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function Header({
|
|
58
|
+
detail,
|
|
59
|
+
hasScript,
|
|
60
|
+
onOpenReplay,
|
|
61
|
+
onResolveMediaUrl,
|
|
62
|
+
}: HeaderProps): React.ReactElement {
|
|
63
|
+
const pdfHref = detail.trainingLogURL;
|
|
64
|
+
const hasReplayMedia = Boolean(
|
|
65
|
+
detail.trainingVideoURL || detail.trainingAudioURL
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const handlePdfClick = (): void => {
|
|
69
|
+
if (!pdfHref || !onResolveMediaUrl) return;
|
|
70
|
+
void Promise.resolve(
|
|
71
|
+
onResolveMediaUrl(pdfHref, { disposition: 'attachment' })
|
|
72
|
+
).then((url) => {
|
|
73
|
+
window.open(url, '_blank');
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const replayActive = hasScript && hasReplayMedia;
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<Box>
|
|
81
|
+
<Flex
|
|
82
|
+
align={{ md: 'start' }}
|
|
83
|
+
direction={{ initial: 'column', md: 'row' }}
|
|
84
|
+
gap="4"
|
|
85
|
+
justify="between"
|
|
86
|
+
>
|
|
87
|
+
<Box style={{ minWidth: 0 }}>
|
|
88
|
+
<Flex align="center" gap="2" mb="2" wrap="wrap">
|
|
89
|
+
<Badge color="neutral" size="small" variant="soft">
|
|
90
|
+
{statusLabelOf(detail.status)}
|
|
91
|
+
</Badge>
|
|
92
|
+
<Typo as="span" style={{ color: 'var(--gray-11)' }} variant="body">
|
|
93
|
+
{detail.trainingSessionNum}회차
|
|
94
|
+
{detail.characterTitle ? ` · ${detail.characterTitle}` : ''}
|
|
95
|
+
</Typo>
|
|
96
|
+
</Flex>
|
|
97
|
+
<Heading
|
|
98
|
+
size={{ initial: '5', md: '7' }}
|
|
99
|
+
style={{ textWrap: 'balance' }}
|
|
100
|
+
weight="bold"
|
|
101
|
+
>
|
|
102
|
+
{detail.scenarioTitle ?? '롤플레잉 세션'}
|
|
103
|
+
</Heading>
|
|
104
|
+
<Typo as="p" color="gray" mono mt="1" variant="body">
|
|
105
|
+
{formatDate(detail.createdAt)} · {formatDuration(detail.trainingTime)}
|
|
106
|
+
</Typo>
|
|
107
|
+
</Box>
|
|
108
|
+
<Flex
|
|
109
|
+
gap="2"
|
|
110
|
+
justify={{ initial: 'start', md: 'end' }}
|
|
111
|
+
style={{ flexShrink: 0 }}
|
|
112
|
+
wrap="wrap"
|
|
113
|
+
>
|
|
114
|
+
{onResolveMediaUrl ? (
|
|
115
|
+
<Button
|
|
116
|
+
color="gray"
|
|
117
|
+
disabled={!pdfHref}
|
|
118
|
+
onClick={pdfHref ? handlePdfClick : undefined}
|
|
119
|
+
size={{ initial: 'small', md: 'medium' }}
|
|
120
|
+
title={pdfHref ? undefined : '산출물 없음'}
|
|
121
|
+
type="button"
|
|
122
|
+
variant="outline"
|
|
123
|
+
>
|
|
124
|
+
<PdfIcon />
|
|
125
|
+
<span style={{ whiteSpace: 'nowrap' }}>PDF 다운로드</span>
|
|
126
|
+
</Button>
|
|
127
|
+
) : (
|
|
128
|
+
<Button
|
|
129
|
+
asChild={Boolean(pdfHref)}
|
|
130
|
+
color="gray"
|
|
131
|
+
disabled={!pdfHref}
|
|
132
|
+
size={{ initial: 'small', md: 'medium' }}
|
|
133
|
+
title={pdfHref ? undefined : '산출물 없음'}
|
|
134
|
+
type="button"
|
|
135
|
+
variant="outline"
|
|
136
|
+
>
|
|
137
|
+
{pdfHref ? (
|
|
138
|
+
<a href={pdfHref} rel="noopener noreferrer" target="_blank">
|
|
139
|
+
<PdfIcon />
|
|
140
|
+
<span style={{ whiteSpace: 'nowrap' }}>PDF 다운로드</span>
|
|
141
|
+
</a>
|
|
142
|
+
) : (
|
|
143
|
+
<span>
|
|
144
|
+
<PdfIcon />
|
|
145
|
+
<span style={{ whiteSpace: 'nowrap' }}>PDF 다운로드</span>
|
|
146
|
+
</span>
|
|
147
|
+
)}
|
|
148
|
+
</Button>
|
|
149
|
+
)}
|
|
150
|
+
{hasScript ? (
|
|
151
|
+
<Button
|
|
152
|
+
color="gray"
|
|
153
|
+
disabled={!replayActive}
|
|
154
|
+
onClick={onOpenReplay}
|
|
155
|
+
size={{ initial: 'small', md: 'medium' }}
|
|
156
|
+
title={replayActive ? undefined : '다시보기 없음'}
|
|
157
|
+
type="button"
|
|
158
|
+
variant="outline"
|
|
159
|
+
>
|
|
160
|
+
<VideoIcon />
|
|
161
|
+
<span style={{ whiteSpace: 'nowrap' }}>영상</span>
|
|
162
|
+
</Button>
|
|
163
|
+
) : null}
|
|
164
|
+
</Flex>
|
|
165
|
+
</Flex>
|
|
166
|
+
</Box>
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Box, Card, Flex, Grid, Separator, Typo } from '../../../atoms';
|
|
4
|
+
import type { RpReport } from '../utils/report-parse';
|
|
5
|
+
import type { RpSessionDetailData } from '../types';
|
|
6
|
+
import { SPEECH_OVERTALK_THRESHOLD, type SpeechShare } from '../utils/session-utils';
|
|
7
|
+
|
|
8
|
+
export interface ScoreSummaryProps {
|
|
9
|
+
detail: RpSessionDetailData;
|
|
10
|
+
report: RpReport;
|
|
11
|
+
speechShare: SpeechShare | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function SpeechShareBar({ share }: { share: SpeechShare }): React.ReactElement {
|
|
15
|
+
const isOvertalking = share.userPct > SPEECH_OVERTALK_THRESHOLD;
|
|
16
|
+
return (
|
|
17
|
+
<Box>
|
|
18
|
+
<Flex align="center" justify="between" mb="1">
|
|
19
|
+
<Typo
|
|
20
|
+
as="span"
|
|
21
|
+
style={{
|
|
22
|
+
fontSize: '0.75rem',
|
|
23
|
+
color: isOvertalking ? 'var(--red-11)' : 'var(--accent-11)',
|
|
24
|
+
}}
|
|
25
|
+
variant="body"
|
|
26
|
+
weight="medium"
|
|
27
|
+
>
|
|
28
|
+
내 발화량 {share.userPct}%
|
|
29
|
+
</Typo>
|
|
30
|
+
<Typo
|
|
31
|
+
as="span"
|
|
32
|
+
color="gray"
|
|
33
|
+
style={{ fontSize: '0.75rem' }}
|
|
34
|
+
variant="body"
|
|
35
|
+
>
|
|
36
|
+
상대 {share.partnerPct}%
|
|
37
|
+
</Typo>
|
|
38
|
+
</Flex>
|
|
39
|
+
<Flex
|
|
40
|
+
style={{
|
|
41
|
+
height: 6,
|
|
42
|
+
borderRadius: 'var(--radius-1)',
|
|
43
|
+
overflow: 'hidden',
|
|
44
|
+
background: 'var(--gray-4)',
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
<Box
|
|
48
|
+
style={{
|
|
49
|
+
width: `${share.userPct}%`,
|
|
50
|
+
background: isOvertalking ? 'var(--red-9)' : 'var(--accent-9)',
|
|
51
|
+
}}
|
|
52
|
+
/>
|
|
53
|
+
</Flex>
|
|
54
|
+
{isOvertalking ? (
|
|
55
|
+
<Typo
|
|
56
|
+
as="p"
|
|
57
|
+
mt="1"
|
|
58
|
+
style={{ fontSize: '0.75rem', color: 'var(--red-11)' }}
|
|
59
|
+
variant="body"
|
|
60
|
+
>
|
|
61
|
+
상대의 말을 더 듣고 질문·경청의 비중을 높여 보세요
|
|
62
|
+
</Typo>
|
|
63
|
+
) : null}
|
|
64
|
+
</Box>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ScoreSummary({
|
|
69
|
+
detail,
|
|
70
|
+
report,
|
|
71
|
+
speechShare,
|
|
72
|
+
}: ScoreSummaryProps): React.ReactElement {
|
|
73
|
+
const scoreValue = detail.totalScore ?? report.totalScore;
|
|
74
|
+
const comment = report.comment;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<Grid
|
|
78
|
+
align="start"
|
|
79
|
+
columns={comment ? { initial: '1', md: 'minmax(0, 240px) 1fr' } : '1'}
|
|
80
|
+
gap="5"
|
|
81
|
+
>
|
|
82
|
+
<Card variant="surface">
|
|
83
|
+
<Flex align="center" direction="column" gap="2" py="3">
|
|
84
|
+
<Typo as="p" color="gray" variant="body" weight="medium">
|
|
85
|
+
종합 점수
|
|
86
|
+
</Typo>
|
|
87
|
+
<Flex align="baseline" gap="1">
|
|
88
|
+
<Typo
|
|
89
|
+
as="span"
|
|
90
|
+
mono
|
|
91
|
+
style={{
|
|
92
|
+
color: 'var(--gray-12)',
|
|
93
|
+
fontSize: '3.75rem',
|
|
94
|
+
lineHeight: 1.1,
|
|
95
|
+
}}
|
|
96
|
+
weight="bold"
|
|
97
|
+
>
|
|
98
|
+
{scoreValue ?? '—'}
|
|
99
|
+
</Typo>
|
|
100
|
+
<Typo as="span" color="gray" mono variant="subtitle">
|
|
101
|
+
/100
|
|
102
|
+
</Typo>
|
|
103
|
+
</Flex>
|
|
104
|
+
</Flex>
|
|
105
|
+
{speechShare ? (
|
|
106
|
+
<>
|
|
107
|
+
<Separator my="3" size="4" />
|
|
108
|
+
<SpeechShareBar share={speechShare} />
|
|
109
|
+
</>
|
|
110
|
+
) : null}
|
|
111
|
+
</Card>
|
|
112
|
+
|
|
113
|
+
{comment ? (
|
|
114
|
+
<Flex direction="column" gap="3">
|
|
115
|
+
<Typo as="p" variant="body" weight="medium">
|
|
116
|
+
종합 분석
|
|
117
|
+
</Typo>
|
|
118
|
+
<Box style={{ maxWidth: '65ch' }}>
|
|
119
|
+
<Typo as="p" variant="body">
|
|
120
|
+
{comment}
|
|
121
|
+
</Typo>
|
|
122
|
+
</Box>
|
|
123
|
+
{report.deduction ? (
|
|
124
|
+
<Box
|
|
125
|
+
pl="3"
|
|
126
|
+
pr="3"
|
|
127
|
+
py="2"
|
|
128
|
+
style={{
|
|
129
|
+
borderLeft: '2px solid var(--amber-a6)',
|
|
130
|
+
background: 'var(--amber-a2)',
|
|
131
|
+
borderRadius: 'var(--radius-2)',
|
|
132
|
+
}}
|
|
133
|
+
>
|
|
134
|
+
<Typo
|
|
135
|
+
as="p"
|
|
136
|
+
mono
|
|
137
|
+
style={{ color: 'var(--amber-11)' }}
|
|
138
|
+
variant="body"
|
|
139
|
+
weight="medium"
|
|
140
|
+
>
|
|
141
|
+
감점 {report.deduction.score}점
|
|
142
|
+
</Typo>
|
|
143
|
+
<Box mt="1" style={{ maxWidth: '65ch' }}>
|
|
144
|
+
<Typo
|
|
145
|
+
as="p"
|
|
146
|
+
style={{ color: 'var(--amber-11)' }}
|
|
147
|
+
variant="body"
|
|
148
|
+
>
|
|
149
|
+
{report.deduction.basis}
|
|
150
|
+
</Typo>
|
|
151
|
+
</Box>
|
|
152
|
+
</Box>
|
|
153
|
+
) : null}
|
|
154
|
+
</Flex>
|
|
155
|
+
) : null}
|
|
156
|
+
</Grid>
|
|
157
|
+
);
|
|
158
|
+
}
|