@tipp/ui 2.3.17 → 2.3.18
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 +200 -195
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +94 -93
- package/dist/app/platform/coach-question-list.js +29 -29
- package/dist/app/platform/contents-card.js +29 -29
- package/dist/app/platform/curriculum-card.js +6 -6
- package/dist/app/platform/edit-coaching-time.cjs +29 -24
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +72 -71
- package/dist/app/platform/edit-service-type.cjs +25 -20
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +73 -72
- package/dist/app/platform/goal-manage-card-edit.cjs +32 -27
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +72 -71
- package/dist/app/platform/goal-manage-card-read.js +29 -29
- package/dist/app/platform/on-offline-radio-card.cjs +38 -33
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +72 -71
- package/dist/app/platform/report-card.js +29 -29
- package/dist/app/platform/reservation-card.cjs +48 -43
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +73 -72
- package/dist/app/platform/session-card.cjs +75 -70
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +75 -74
- package/dist/app/platform/session-review-simple-read.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +32 -32
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +29 -29
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +29 -29
- package/dist/app/platform/userInfos/session-user-info-detail.js +29 -29
- package/dist/app/platform/userInfos/utils.js +28 -28
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.js +62 -62
- package/dist/atoms/list.js +2 -2
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-2O2CKXEZ.js +69 -0
- package/dist/chunk-2O2CKXEZ.js.map +1 -0
- package/dist/chunk-2VFMVVWT.js +63 -0
- package/dist/chunk-2VFMVVWT.js.map +1 -0
- package/dist/chunk-2XNMU67K.js +69 -0
- package/dist/chunk-2XNMU67K.js.map +1 -0
- package/dist/chunk-2YBJBKBB.js +82 -0
- package/dist/chunk-2YBJBKBB.js.map +1 -0
- package/dist/chunk-367ZYIOP.js +89 -0
- package/dist/chunk-367ZYIOP.js.map +1 -0
- package/dist/chunk-3A45CD76.js +196 -0
- package/dist/chunk-3A45CD76.js.map +1 -0
- package/dist/chunk-4JYSUW7I.js +151 -0
- package/dist/chunk-4JYSUW7I.js.map +1 -0
- package/dist/chunk-5TPNUG3Y.js +63 -0
- package/dist/chunk-5TPNUG3Y.js.map +1 -0
- package/dist/chunk-64JB2NO2.js +51 -0
- package/dist/chunk-64JB2NO2.js.map +1 -0
- package/dist/chunk-6F63WEDJ.js +63 -0
- package/dist/chunk-6F63WEDJ.js.map +1 -0
- package/dist/chunk-6UCGUA3B.js +30 -0
- package/dist/chunk-6UCGUA3B.js.map +1 -0
- package/dist/chunk-7IFK5DP5.js +69 -0
- package/dist/chunk-7IFK5DP5.js.map +1 -0
- package/dist/chunk-7QDV6YRH.js +196 -0
- package/dist/chunk-7QDV6YRH.js.map +1 -0
- package/dist/chunk-7XG4CK7Y.js +89 -0
- package/dist/chunk-7XG4CK7Y.js.map +1 -0
- package/dist/chunk-A5VFSD3T.js +129 -0
- package/dist/chunk-A5VFSD3T.js.map +1 -0
- package/dist/chunk-B5U2JBLX.js +87 -0
- package/dist/chunk-B5U2JBLX.js.map +1 -0
- package/dist/chunk-BDJUL3JV.js +50 -0
- package/dist/chunk-BDJUL3JV.js.map +1 -0
- package/dist/chunk-BI5GANUG.js +75 -0
- package/dist/chunk-BI5GANUG.js.map +1 -0
- package/dist/chunk-BV3ZL4VC.js +196 -0
- package/dist/chunk-BV3ZL4VC.js.map +1 -0
- package/dist/chunk-BWWSZLTV.js +43 -0
- package/dist/chunk-BWWSZLTV.js.map +1 -0
- package/dist/chunk-C5MM3PUD.js +89 -0
- package/dist/chunk-C5MM3PUD.js.map +1 -0
- package/dist/chunk-C5YDIFWN.js +129 -0
- package/dist/chunk-C5YDIFWN.js.map +1 -0
- package/dist/chunk-CC4LSJRN.js +144 -0
- package/dist/chunk-CC4LSJRN.js.map +1 -0
- package/dist/chunk-CIQ7ELE6.js +151 -0
- package/dist/chunk-CIQ7ELE6.js.map +1 -0
- package/dist/chunk-CSLHE7O6.js +196 -0
- package/dist/chunk-CSLHE7O6.js.map +1 -0
- package/dist/chunk-CTCLKPUM.js +50 -0
- package/dist/chunk-CTCLKPUM.js.map +1 -0
- package/dist/chunk-DEAVEZQM.js +1 -0
- package/dist/chunk-DEAVEZQM.js.map +1 -0
- package/dist/chunk-ENVZEWF6.js +98 -0
- package/dist/chunk-ENVZEWF6.js.map +1 -0
- package/dist/chunk-FSJP6HQY.js +49 -0
- package/dist/chunk-FSJP6HQY.js.map +1 -0
- package/dist/chunk-FVAZZ46M.js +69 -0
- package/dist/chunk-FVAZZ46M.js.map +1 -0
- package/dist/chunk-H6UISOMV.js +50 -0
- package/dist/chunk-H6UISOMV.js.map +1 -0
- package/dist/chunk-HZ5LNRVL.js +101 -0
- package/dist/chunk-HZ5LNRVL.js.map +1 -0
- package/dist/chunk-I25D6CHU.js +50 -0
- package/dist/chunk-I25D6CHU.js.map +1 -0
- package/dist/chunk-IF4Q5NV4.js +129 -0
- package/dist/chunk-IF4Q5NV4.js.map +1 -0
- package/dist/chunk-IYVNZW3B.js +196 -0
- package/dist/chunk-IYVNZW3B.js.map +1 -0
- package/dist/chunk-J6D5FMYR.js +75 -0
- package/dist/chunk-J6D5FMYR.js.map +1 -0
- package/dist/chunk-JGM5HN2L.js +69 -0
- package/dist/chunk-JGM5HN2L.js.map +1 -0
- package/dist/chunk-KJC6WEFI.js +75 -0
- package/dist/chunk-KJC6WEFI.js.map +1 -0
- package/dist/chunk-LEIPUJCQ.js +75 -0
- package/dist/chunk-LEIPUJCQ.js.map +1 -0
- package/dist/chunk-LJO2266G.js +64 -0
- package/dist/chunk-LJO2266G.js.map +1 -0
- package/dist/chunk-LPOX4NKE.js +29 -0
- package/dist/chunk-LPOX4NKE.js.map +1 -0
- package/dist/chunk-M2DLW32Z.js +77 -0
- package/dist/chunk-M2DLW32Z.js.map +1 -0
- package/dist/chunk-N662YJXY.js +69 -0
- package/dist/chunk-N662YJXY.js.map +1 -0
- package/dist/chunk-N6LOS7L5.js +89 -0
- package/dist/chunk-N6LOS7L5.js.map +1 -0
- package/dist/chunk-NCCAFJJR.js +83 -0
- package/dist/chunk-NCCAFJJR.js.map +1 -0
- package/dist/chunk-NFI7WDJS.js +50 -0
- package/dist/chunk-NFI7WDJS.js.map +1 -0
- package/dist/chunk-NTJLECYY.js +37 -0
- package/dist/chunk-NTJLECYY.js.map +1 -0
- package/dist/chunk-NTWHDYJV.js +89 -0
- package/dist/chunk-NTWHDYJV.js.map +1 -0
- package/dist/chunk-NVQSH733.js +51 -0
- package/dist/chunk-NVQSH733.js.map +1 -0
- package/dist/chunk-ODHH7CFR.js +196 -0
- package/dist/chunk-ODHH7CFR.js.map +1 -0
- package/dist/chunk-OILH5J7Q.js +101 -0
- package/dist/chunk-OILH5J7Q.js.map +1 -0
- package/dist/chunk-OX5XYAZM.js +37 -0
- package/dist/chunk-OX5XYAZM.js.map +1 -0
- package/dist/chunk-P76FTCUF.js +64 -0
- package/dist/chunk-P76FTCUF.js.map +1 -0
- package/dist/chunk-PF3LVPOZ.js +87 -0
- package/dist/chunk-PF3LVPOZ.js.map +1 -0
- package/dist/chunk-PWF22OOK.js +64 -0
- package/dist/chunk-PWF22OOK.js.map +1 -0
- package/dist/chunk-QU5M7KZM.js +50 -0
- package/dist/chunk-QU5M7KZM.js.map +1 -0
- package/dist/chunk-RWK6HLWM.js +75 -0
- package/dist/chunk-RWK6HLWM.js.map +1 -0
- package/dist/chunk-RYEEDHML.js +64 -0
- package/dist/chunk-RYEEDHML.js.map +1 -0
- package/dist/chunk-SQIJY72J.js +69 -0
- package/dist/chunk-SQIJY72J.js.map +1 -0
- package/dist/chunk-SZ73GYOE.js +98 -0
- package/dist/chunk-SZ73GYOE.js.map +1 -0
- package/dist/chunk-TQ5AJKUH.js +64 -0
- package/dist/chunk-TQ5AJKUH.js.map +1 -0
- package/dist/chunk-UGCYMUQ4.js +89 -0
- package/dist/chunk-UGCYMUQ4.js.map +1 -0
- package/dist/chunk-UK7J2BOO.js +83 -0
- package/dist/chunk-UK7J2BOO.js.map +1 -0
- package/dist/chunk-V4GNPLLT.js +69 -0
- package/dist/chunk-V4GNPLLT.js.map +1 -0
- package/dist/chunk-VKMRA55P.js +144 -0
- package/dist/chunk-VKMRA55P.js.map +1 -0
- package/dist/chunk-VLGR5PZX.js +1 -0
- package/dist/chunk-VLGR5PZX.js.map +1 -0
- package/dist/chunk-VQGBP3JY.js +50 -0
- package/dist/chunk-VQGBP3JY.js.map +1 -0
- package/dist/chunk-WV4WWBKN.js +69 -0
- package/dist/chunk-WV4WWBKN.js.map +1 -0
- package/dist/chunk-X3J2UNWS.js +69 -0
- package/dist/chunk-X3J2UNWS.js.map +1 -0
- package/dist/chunk-X67ER3JU.js +69 -0
- package/dist/chunk-X67ER3JU.js.map +1 -0
- package/dist/chunk-X732NUWY.js +50 -0
- package/dist/chunk-X732NUWY.js.map +1 -0
- package/dist/chunk-X7QZ46BZ.js +63 -0
- package/dist/chunk-X7QZ46BZ.js.map +1 -0
- package/dist/chunk-XDPD6IWK.js +89 -0
- package/dist/chunk-XDPD6IWK.js.map +1 -0
- package/dist/chunk-XKWY6ZQM.js +196 -0
- package/dist/chunk-XKWY6ZQM.js.map +1 -0
- package/dist/chunk-XW3D3GLY.js +113 -0
- package/dist/chunk-XW3D3GLY.js.map +1 -0
- package/dist/chunk-Y6BK7ABB.js +1 -0
- package/dist/chunk-Y6BK7ABB.js.map +1 -0
- package/dist/chunk-Z2XF3EO2.js +75 -0
- package/dist/chunk-Z2XF3EO2.js.map +1 -0
- package/dist/chunk-ZFEXH655.js +144 -0
- package/dist/chunk-ZFEXH655.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +394 -283
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +156 -151
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +16 -16
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +9 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +20 -20
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-file-download.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +22 -22
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.js +37 -37
- package/dist/molecules/date-picker/date-picker-button.js +6 -6
- package/dist/molecules/date-picker/index.js +5 -5
- package/dist/molecules/description-json-render.js +5 -5
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.js +5 -5
- package/dist/molecules/dynamic-form.js +6 -6
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +111 -0
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.d.cts +2 -0
- package/dist/molecules/index.d.ts +2 -0
- package/dist/molecules/index.js +73 -69
- package/dist/molecules/learning-post.js +5 -5
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/one-on-one-guide-list.js +3 -3
- package/dist/molecules/stepper.js +4 -4
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/training-info-guideline.cjs +508 -0
- package/dist/molecules/training-info-guideline.cjs.map +1 -0
- package/dist/molecules/training-info-guideline.d.cts +13 -0
- package/dist/molecules/training-info-guideline.d.ts +13 -0
- package/dist/molecules/training-info-guideline.js +19 -0
- package/dist/molecules/training-info-guideline.js.map +1 -0
- package/dist/types/curriculumContents.type.cjs.map +1 -1
- package/dist/types/dynamic-form-schema-generated.cjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +2 -1
- package/dist/types/training-info-guideline-schema-generated.cjs +19 -0
- package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -0
- package/dist/types/training-info-guideline-schema-generated.d.cts +22 -0
- package/dist/types/training-info-guideline-schema-generated.d.ts +22 -0
- package/dist/types/training-info-guideline-schema-generated.js +2 -0
- package/dist/types/training-info-guideline-schema-generated.js.map +1 -0
- package/package.json +2 -2
- package/src/constrant/training-info-guideline.schema.json +45 -0
- package/src/molecules/index.ts +2 -1
- package/src/molecules/training-info-guideline.tsx +130 -0
- package/src/types/curriculumContents.type.ts +1 -0
- package/src/types/dynamic-form-schema-generated.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/training-info-guideline-schema-generated.ts +23 -0
package/dist/atoms/index.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import "../chunk-HBF6IIVZ.js";
|
|
2
|
-
import {
|
|
3
|
-
Form,
|
|
4
|
-
FormItem
|
|
5
|
-
} from "../chunk-2OMSNCRH.js";
|
|
6
|
-
import {
|
|
7
|
-
TextArea
|
|
8
|
-
} from "../chunk-5XYPLDI5.js";
|
|
9
|
-
import {
|
|
10
|
-
TextField
|
|
11
|
-
} from "../chunk-6NPTJBFE.js";
|
|
12
2
|
import {
|
|
13
3
|
ToastContainer,
|
|
14
4
|
toast
|
|
15
5
|
} from "../chunk-EEKOTWBE.js";
|
|
16
|
-
import {
|
|
17
|
-
Select
|
|
18
|
-
} from "../chunk-X2GMDZ7M.js";
|
|
19
|
-
import {
|
|
20
|
-
Separator
|
|
21
|
-
} from "../chunk-HYITAA4J.js";
|
|
22
6
|
import {
|
|
23
7
|
Skeleton
|
|
24
8
|
} from "../chunk-5H3YPCZK.js";
|
|
@@ -38,11 +22,11 @@ import {
|
|
|
38
22
|
Tabs
|
|
39
23
|
} from "../chunk-5ZITU5L7.js";
|
|
40
24
|
import {
|
|
41
|
-
|
|
42
|
-
} from "../chunk-
|
|
25
|
+
TextArea
|
|
26
|
+
} from "../chunk-5XYPLDI5.js";
|
|
43
27
|
import {
|
|
44
|
-
|
|
45
|
-
} from "../chunk-
|
|
28
|
+
TextField
|
|
29
|
+
} from "../chunk-6NPTJBFE.js";
|
|
46
30
|
import {
|
|
47
31
|
RadioCards
|
|
48
32
|
} from "../chunk-6IVCARWS.js";
|
|
@@ -61,6 +45,12 @@ import {
|
|
|
61
45
|
import {
|
|
62
46
|
SegmentedControl
|
|
63
47
|
} from "../chunk-TVDKGMBI.js";
|
|
48
|
+
import {
|
|
49
|
+
Select
|
|
50
|
+
} from "../chunk-X2GMDZ7M.js";
|
|
51
|
+
import {
|
|
52
|
+
Separator
|
|
53
|
+
} from "../chunk-HYITAA4J.js";
|
|
64
54
|
import {
|
|
65
55
|
Inset
|
|
66
56
|
} from "../chunk-XQOL7UBI.js";
|
|
@@ -73,41 +63,31 @@ import {
|
|
|
73
63
|
import {
|
|
74
64
|
List,
|
|
75
65
|
useList
|
|
76
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-WV2HN6H4.js";
|
|
77
67
|
import {
|
|
78
68
|
Pagination
|
|
79
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-SBJOKO35.js";
|
|
80
70
|
import {
|
|
81
71
|
Popover
|
|
82
72
|
} from "../chunk-5AVBYDPB.js";
|
|
83
73
|
import {
|
|
84
|
-
|
|
85
|
-
} from "../chunk-
|
|
86
|
-
import {
|
|
87
|
-
EllipsisTooltip
|
|
88
|
-
} from "../chunk-Y4U24VXI.js";
|
|
74
|
+
Progress
|
|
75
|
+
} from "../chunk-365QMK4D.js";
|
|
89
76
|
import {
|
|
90
|
-
|
|
91
|
-
} from "../chunk-
|
|
92
|
-
import "../chunk-PT57HCAI.js";
|
|
77
|
+
Quote
|
|
78
|
+
} from "../chunk-YO3BQW6S.js";
|
|
93
79
|
import {
|
|
94
80
|
Em
|
|
95
81
|
} from "../chunk-2DZ2Y3JI.js";
|
|
96
82
|
import {
|
|
97
83
|
FieldErrorWrapper
|
|
98
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-VRJR534I.js";
|
|
99
85
|
import {
|
|
100
86
|
Grid
|
|
101
87
|
} from "../chunk-EGEQY3KT.js";
|
|
102
88
|
import {
|
|
103
89
|
HoverCard
|
|
104
90
|
} from "../chunk-O3T3TM3V.js";
|
|
105
|
-
import {
|
|
106
|
-
CheckboxGroup
|
|
107
|
-
} from "../chunk-W7X7KSJP.js";
|
|
108
|
-
import {
|
|
109
|
-
Checkbox
|
|
110
|
-
} from "../chunk-VYCYVN3L.js";
|
|
111
91
|
import {
|
|
112
92
|
Code
|
|
113
93
|
} from "../chunk-OHMOP5PV.js";
|
|
@@ -122,10 +102,7 @@ import {
|
|
|
122
102
|
} from "../chunk-VTJZMOSP.js";
|
|
123
103
|
import {
|
|
124
104
|
Dialog
|
|
125
|
-
} from "../chunk-
|
|
126
|
-
import {
|
|
127
|
-
Heading
|
|
128
|
-
} from "../chunk-BESTU2AY.js";
|
|
105
|
+
} from "../chunk-JQ7VQ5SB.js";
|
|
129
106
|
import {
|
|
130
107
|
Content,
|
|
131
108
|
Drawer,
|
|
@@ -139,18 +116,17 @@ import {
|
|
|
139
116
|
} from "../chunk-XK6VEVOK.js";
|
|
140
117
|
import "../chunk-HF6GNDPV.js";
|
|
141
118
|
import {
|
|
142
|
-
|
|
143
|
-
} from "../chunk-
|
|
119
|
+
DropdownMenu
|
|
120
|
+
} from "../chunk-D4U2MCJG.js";
|
|
144
121
|
import {
|
|
145
|
-
|
|
146
|
-
} from "../chunk-
|
|
122
|
+
EllipsisTooltip
|
|
123
|
+
} from "../chunk-Y4U24VXI.js";
|
|
147
124
|
import {
|
|
148
|
-
|
|
149
|
-
} from "../chunk-
|
|
125
|
+
Tooltip
|
|
126
|
+
} from "../chunk-3NUQAVE6.js";
|
|
150
127
|
import {
|
|
151
|
-
|
|
152
|
-
} from "../chunk-
|
|
153
|
-
import "../chunk-LDBWASUA.js";
|
|
128
|
+
BulletText
|
|
129
|
+
} from "../chunk-QRI6ARS6.js";
|
|
154
130
|
import {
|
|
155
131
|
Flex
|
|
156
132
|
} from "../chunk-25HMMI7R.js";
|
|
@@ -168,6 +144,33 @@ import {
|
|
|
168
144
|
import {
|
|
169
145
|
CheckboxCards
|
|
170
146
|
} from "../chunk-MIMJ7LON.js";
|
|
147
|
+
import {
|
|
148
|
+
CheckboxGroup
|
|
149
|
+
} from "../chunk-W7X7KSJP.js";
|
|
150
|
+
import {
|
|
151
|
+
Checkbox
|
|
152
|
+
} from "../chunk-VYCYVN3L.js";
|
|
153
|
+
import {
|
|
154
|
+
AlertDialog
|
|
155
|
+
} from "../chunk-J242TTFH.js";
|
|
156
|
+
import {
|
|
157
|
+
AspectRatio
|
|
158
|
+
} from "../chunk-EAXUQEO5.js";
|
|
159
|
+
import {
|
|
160
|
+
AutoSizingInput
|
|
161
|
+
} from "../chunk-6SYFG6YY.js";
|
|
162
|
+
import {
|
|
163
|
+
Avatar
|
|
164
|
+
} from "../chunk-K36TPMKL.js";
|
|
165
|
+
import {
|
|
166
|
+
Badge
|
|
167
|
+
} from "../chunk-U3BQT7ZO.js";
|
|
168
|
+
import {
|
|
169
|
+
Blockquote
|
|
170
|
+
} from "../chunk-YGL6SWKN.js";
|
|
171
|
+
import {
|
|
172
|
+
Box
|
|
173
|
+
} from "../chunk-4Y5BEXVN.js";
|
|
171
174
|
import "../chunk-W5TPOFOO.js";
|
|
172
175
|
import "../chunk-VD7AQ7HK.js";
|
|
173
176
|
import "../chunk-ZQE7SP6P.js";
|
|
@@ -184,21 +187,18 @@ import "../chunk-YSYJCYHY.js";
|
|
|
184
187
|
import "../chunk-5OM2H6RI.js";
|
|
185
188
|
import "../chunk-ZUYCXCPW.js";
|
|
186
189
|
import "../chunk-YVFNJE4E.js";
|
|
190
|
+
import "../chunk-PT57HCAI.js";
|
|
187
191
|
import {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
AspectRatio
|
|
192
|
-
} from "../chunk-EAXUQEO5.js";
|
|
193
|
-
import {
|
|
194
|
-
AutoSizingInput
|
|
195
|
-
} from "../chunk-6SYFG6YY.js";
|
|
192
|
+
Form,
|
|
193
|
+
FormItem
|
|
194
|
+
} from "../chunk-2OMSNCRH.js";
|
|
196
195
|
import {
|
|
197
|
-
|
|
198
|
-
} from "../chunk-
|
|
196
|
+
Heading
|
|
197
|
+
} from "../chunk-BESTU2AY.js";
|
|
199
198
|
import {
|
|
200
|
-
|
|
201
|
-
} from "../chunk-
|
|
199
|
+
Typo
|
|
200
|
+
} from "../chunk-PMJIFLDT.js";
|
|
201
|
+
import "../chunk-LDBWASUA.js";
|
|
202
202
|
import "../chunk-CRTRMMJ7.js";
|
|
203
203
|
export {
|
|
204
204
|
AlertDialog,
|
package/dist/atoms/list.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
List,
|
|
3
3
|
useList
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WV2HN6H4.js";
|
|
5
|
+
import "../chunk-25HMMI7R.js";
|
|
5
6
|
import "../chunk-PMJIFLDT.js";
|
|
6
7
|
import "../chunk-LDBWASUA.js";
|
|
7
|
-
import "../chunk-25HMMI7R.js";
|
|
8
8
|
import "../chunk-CRTRMMJ7.js";
|
|
9
9
|
export {
|
|
10
10
|
List,
|
package/dist/atoms/pagination.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Pagination
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SBJOKO35.js";
|
|
4
4
|
import "../chunk-XK6VEVOK.js";
|
|
5
5
|
import "../chunk-HF6GNDPV.js";
|
|
6
|
-
import "../chunk-PMJIFLDT.js";
|
|
7
|
-
import "../chunk-LDBWASUA.js";
|
|
8
6
|
import "../chunk-25HMMI7R.js";
|
|
9
7
|
import "../chunk-W5TPOFOO.js";
|
|
10
8
|
import "../chunk-VD7AQ7HK.js";
|
|
@@ -22,6 +20,8 @@ import "../chunk-YSYJCYHY.js";
|
|
|
22
20
|
import "../chunk-5OM2H6RI.js";
|
|
23
21
|
import "../chunk-ZUYCXCPW.js";
|
|
24
22
|
import "../chunk-YVFNJE4E.js";
|
|
23
|
+
import "../chunk-PMJIFLDT.js";
|
|
24
|
+
import "../chunk-LDBWASUA.js";
|
|
25
25
|
import "../chunk-CRTRMMJ7.js";
|
|
26
26
|
export {
|
|
27
27
|
Pagination
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
curriculum_ai_traning_default
|
|
3
|
+
} from "./chunk-Q7AMZ7ES.js";
|
|
4
|
+
import {
|
|
5
|
+
curriculum_file_download_default
|
|
6
|
+
} from "./chunk-5ZA5HGOV.js";
|
|
7
|
+
import {
|
|
8
|
+
curriculum_review_default
|
|
9
|
+
} from "./chunk-IYVNZW3B.js";
|
|
10
|
+
import {
|
|
11
|
+
curriculum_video_default
|
|
12
|
+
} from "./chunk-QGKQ3IX7.js";
|
|
13
|
+
import {
|
|
14
|
+
useCurriculumContext
|
|
15
|
+
} from "./chunk-Y7SJF3Y3.js";
|
|
16
|
+
import {
|
|
17
|
+
Typo
|
|
18
|
+
} from "./chunk-PMJIFLDT.js";
|
|
19
|
+
import {
|
|
20
|
+
Flex
|
|
21
|
+
} from "./chunk-25HMMI7R.js";
|
|
22
|
+
import {
|
|
23
|
+
InfoCircledIcon
|
|
24
|
+
} from "./chunk-W5TPOFOO.js";
|
|
25
|
+
|
|
26
|
+
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
27
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
+
function CurriculumBody() {
|
|
29
|
+
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
30
|
+
switch (selectedItem.type) {
|
|
31
|
+
case "video":
|
|
32
|
+
return /* @__PURE__ */ jsx(curriculum_video_default, { item: selectedItem });
|
|
33
|
+
case "review":
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
curriculum_review_default,
|
|
36
|
+
{
|
|
37
|
+
item: selectedItem,
|
|
38
|
+
sectionTitle: selectedSectionTitle == null ? void 0 : selectedSectionTitle.title
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
case "aiTraining":
|
|
42
|
+
return /* @__PURE__ */ jsx(curriculum_ai_traning_default, { item: selectedItem });
|
|
43
|
+
case "fileDownload":
|
|
44
|
+
return /* @__PURE__ */ jsx(curriculum_file_download_default, { item: selectedItem });
|
|
45
|
+
default:
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
Flex,
|
|
48
|
+
{
|
|
49
|
+
align: "center",
|
|
50
|
+
direction: "column",
|
|
51
|
+
gap: "2",
|
|
52
|
+
height: "100%",
|
|
53
|
+
justify: "center",
|
|
54
|
+
width: "100%",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx(InfoCircledIcon, { height: 24, width: 24 }),
|
|
57
|
+
/* @__PURE__ */ jsx(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
58
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
59
|
+
${JSON.stringify(selectedItem)}` })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
CurriculumBody
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=chunk-2O2CKXEZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '@/atoms/flex';\nimport { Typo } from '@/atoms/typo';\nimport { InfoCircledIcon } from '@/icon';\nimport { useCurriculumContext } from '../curriculum-context';\nimport CurriculumVideo from './curriculum-video';\nimport CurriculumReview from './curriculum-review';\nimport CurriculumAiTraning from './curriculum-ai-traning';\nimport CurriculumFileDownload from './curriculum-file-download';\n\nexport function CurriculumBody(): React.ReactNode {\n const { selectedItem, selectedSectionTitle } = useCurriculumContext();\n\n switch (selectedItem.type) {\n case 'video':\n return <CurriculumVideo item={selectedItem} />;\n case 'review':\n return (\n <CurriculumReview\n item={selectedItem}\n sectionTitle={selectedSectionTitle?.title}\n />\n );\n case 'aiTraining':\n return <CurriculumAiTraning item={selectedItem} />;\n case 'fileDownload':\n return <CurriculumFileDownload item={selectedItem} />;\n default:\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"2\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <InfoCircledIcon height={24} width={24} />\n <Typo>컨텐츠를 로딩 할 수 없습니다</Typo>\n <Typo align=\"center\" color=\"gray\" variant=\"caption\">\n {`[debug info]\n ${JSON.stringify(selectedItem)}`}\n </Typo>\n </Flex>\n );\n }\n} "],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAea,cAcL,YAdK;AALN,SAAS,iBAAkC;AAChD,QAAM,EAAE,cAAc,qBAAqB,IAAI,qBAAqB;AAEpE,UAAQ,aAAa,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,oBAAC,4BAAgB,MAAM,cAAc;AAAA,IAC9C,KAAK;AACH,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,cAAc,6DAAsB;AAAA;AAAA,MACtC;AAAA,IAEJ,KAAK;AACH,aAAO,oBAAC,iCAAoB,MAAM,cAAc;AAAA,IAClD,KAAK;AACH,aAAO,oBAAC,oCAAuB,MAAM,cAAc;AAAA,IACrD;AACE,aACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAU;AAAA,UACV,KAAI;AAAA,UACJ,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,OAAM;AAAA,UAEN;AAAA,gCAAC,mBAAgB,QAAQ,IAAI,OAAO,IAAI;AAAA,YACxC,oBAAC,QAAK,0FAAgB;AAAA,YACtB,oBAAC,QAAK,OAAM,UAAS,OAAM,QAAO,SAAQ,WACvC;AAAA,cACC,KAAK,UAAU,YAAY,CAAC,IAChC;AAAA;AAAA;AAAA,MACF;AAAA,EAEN;AACF;","names":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
review_question_body_default
|
|
3
|
+
} from "./chunk-7IFK5DP5.js";
|
|
4
|
+
import {
|
|
5
|
+
review_question_footer_default
|
|
6
|
+
} from "./chunk-PLXD7ZKF.js";
|
|
7
|
+
import {
|
|
8
|
+
review_question_header_default
|
|
9
|
+
} from "./chunk-SAEPW5JF.js";
|
|
10
|
+
import {
|
|
11
|
+
review_question_layout_default
|
|
12
|
+
} from "./chunk-VK6INFSB.js";
|
|
13
|
+
|
|
14
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
function ReviewQuestion({
|
|
17
|
+
question,
|
|
18
|
+
index,
|
|
19
|
+
total,
|
|
20
|
+
answer,
|
|
21
|
+
error,
|
|
22
|
+
onChange,
|
|
23
|
+
onNext,
|
|
24
|
+
onPrev,
|
|
25
|
+
isLast,
|
|
26
|
+
isNextDisabled,
|
|
27
|
+
onSubmit,
|
|
28
|
+
isLoading
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
review_question_layout_default,
|
|
32
|
+
{
|
|
33
|
+
Body: /* @__PURE__ */ jsx(
|
|
34
|
+
review_question_body_default,
|
|
35
|
+
{
|
|
36
|
+
answer,
|
|
37
|
+
error,
|
|
38
|
+
onChange,
|
|
39
|
+
question
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
Footer: /* @__PURE__ */ jsx(
|
|
43
|
+
review_question_footer_default,
|
|
44
|
+
{
|
|
45
|
+
index,
|
|
46
|
+
isLast,
|
|
47
|
+
isLoading,
|
|
48
|
+
isNextButtonDisabled: isNextDisabled,
|
|
49
|
+
onNext,
|
|
50
|
+
onPrev,
|
|
51
|
+
onSubmit
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
Header: /* @__PURE__ */ jsx(review_question_header_default, { index, total })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
var ReviewQuestion_default = ReviewQuestion;
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
ReviewQuestion_default
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=chunk-2VFMVVWT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx"],"sourcesContent":["import React from 'react';\nimport type { ReviewQuestionElement } from '@/types/curriculum.type';\nimport ReviewQuestionLayout from './review-question-layout';\nimport ReviewQuestionHeader from './review-question-header';\nimport ReviewQuestionFooter from './review-question-footer';\nimport ReviewQuestionBody from './review-question-body';\n\ninterface ReviewQuestionProps {\n question: ReviewQuestionElement;\n index: number;\n total: number;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n onNext: () => void;\n onPrev: () => void;\n isLast: boolean;\n isNextDisabled?: boolean;\n onSubmit: () => void;\n isLoading?: boolean;\n}\n\nfunction ReviewQuestion({\n question,\n index,\n total,\n answer,\n error,\n onChange,\n onNext,\n onPrev,\n isLast,\n isNextDisabled,\n onSubmit,\n isLoading,\n}: ReviewQuestionProps): React.ReactElement {\n \n return (\n <ReviewQuestionLayout\n Body={\n <ReviewQuestionBody\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n }\n Footer={\n <ReviewQuestionFooter\n index={index}\n isLast={isLast}\n isLoading={isLoading}\n isNextButtonDisabled={isNextDisabled}\n onNext={onNext}\n onPrev={onPrev}\n onSubmit={onSubmit}\n />\n }\n Header={<ReviewQuestionHeader index={index} total={total} />}\n />\n );\n}\n\nexport default ReviewQuestion;\n"],"mappings":";;;;;;;;;;;;;;AAwCQ;AAlBR,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA4C;AAE1C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MAEF,QACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA,sBAAsB;AAAA,UACtB;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MAEF,QAAQ,oBAAC,kCAAqB,OAAc,OAAc;AAAA;AAAA,EAC5D;AAEJ;AAEA,IAAO,yBAAQ;","names":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
curriculum_ai_traning_default
|
|
3
|
+
} from "./chunk-AZ2ZKABM.js";
|
|
4
|
+
import {
|
|
5
|
+
curriculum_file_download_default
|
|
6
|
+
} from "./chunk-PEFP2QUH.js";
|
|
7
|
+
import {
|
|
8
|
+
curriculum_review_default
|
|
9
|
+
} from "./chunk-3A45CD76.js";
|
|
10
|
+
import {
|
|
11
|
+
curriculum_video_default
|
|
12
|
+
} from "./chunk-QGKQ3IX7.js";
|
|
13
|
+
import {
|
|
14
|
+
useCurriculumContext
|
|
15
|
+
} from "./chunk-Y7SJF3Y3.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
import {
|
|
20
|
+
InfoCircledIcon
|
|
21
|
+
} from "./chunk-W5TPOFOO.js";
|
|
22
|
+
import {
|
|
23
|
+
Typo
|
|
24
|
+
} from "./chunk-PMJIFLDT.js";
|
|
25
|
+
|
|
26
|
+
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
27
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
+
function CurriculumBody() {
|
|
29
|
+
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
30
|
+
switch (selectedItem.type) {
|
|
31
|
+
case "video":
|
|
32
|
+
return /* @__PURE__ */ jsx(curriculum_video_default, { item: selectedItem });
|
|
33
|
+
case "review":
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
curriculum_review_default,
|
|
36
|
+
{
|
|
37
|
+
item: selectedItem,
|
|
38
|
+
sectionTitle: selectedSectionTitle == null ? void 0 : selectedSectionTitle.title
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
case "aiTraining":
|
|
42
|
+
return /* @__PURE__ */ jsx(curriculum_ai_traning_default, { item: selectedItem });
|
|
43
|
+
case "fileDownload":
|
|
44
|
+
return /* @__PURE__ */ jsx(curriculum_file_download_default, { item: selectedItem });
|
|
45
|
+
default:
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
Flex,
|
|
48
|
+
{
|
|
49
|
+
align: "center",
|
|
50
|
+
direction: "column",
|
|
51
|
+
gap: "2",
|
|
52
|
+
height: "100%",
|
|
53
|
+
justify: "center",
|
|
54
|
+
width: "100%",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx(InfoCircledIcon, { height: 24, width: 24 }),
|
|
57
|
+
/* @__PURE__ */ jsx(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
58
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
59
|
+
${JSON.stringify(selectedItem)}` })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
CurriculumBody
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=chunk-2XNMU67K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '@/atoms/flex';\nimport { Typo } from '@/atoms/typo';\nimport { InfoCircledIcon } from '@/icon';\nimport { useCurriculumContext } from '../curriculum-context';\nimport CurriculumVideo from './curriculum-video';\nimport CurriculumReview from './curriculum-review';\nimport CurriculumAiTraning from './curriculum-ai-traning';\nimport CurriculumFileDownload from './curriculum-file-download';\n\nexport function CurriculumBody(): React.ReactNode {\n const { selectedItem, selectedSectionTitle } = useCurriculumContext();\n\n switch (selectedItem.type) {\n case 'video':\n return <CurriculumVideo item={selectedItem} />;\n case 'review':\n return (\n <CurriculumReview\n item={selectedItem}\n sectionTitle={selectedSectionTitle?.title}\n />\n );\n case 'aiTraining':\n return <CurriculumAiTraning item={selectedItem} />;\n case 'fileDownload':\n return <CurriculumFileDownload item={selectedItem} />;\n default:\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"2\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <InfoCircledIcon height={24} width={24} />\n <Typo>컨텐츠를 로딩 할 수 없습니다</Typo>\n <Typo align=\"center\" color=\"gray\" variant=\"caption\">\n {`[debug info]\n ${JSON.stringify(selectedItem)}`}\n </Typo>\n </Flex>\n );\n }\n} "],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAea,cAcL,YAdK;AALN,SAAS,iBAAkC;AAChD,QAAM,EAAE,cAAc,qBAAqB,IAAI,qBAAqB;AAEpE,UAAQ,aAAa,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,oBAAC,4BAAgB,MAAM,cAAc;AAAA,IAC9C,KAAK;AACH,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,cAAc,6DAAsB;AAAA;AAAA,MACtC;AAAA,IAEJ,KAAK;AACH,aAAO,oBAAC,iCAAoB,MAAM,cAAc;AAAA,IAClD,KAAK;AACH,aAAO,oBAAC,oCAAuB,MAAM,cAAc;AAAA,IACrD;AACE,aACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAU;AAAA,UACV,KAAI;AAAA,UACJ,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,OAAM;AAAA,UAEN;AAAA,gCAAC,mBAAgB,QAAQ,IAAI,OAAO,IAAI;AAAA,YACxC,oBAAC,QAAK,0FAAgB;AAAA,YACtB,oBAAC,QAAK,OAAM,UAAS,OAAM,QAAO,SAAQ,WACvC;AAAA,cACC,KAAK,UAAU,YAAY,CAAC,IAChC;AAAA;AAAA;AAAA,MACF;AAAA,EAEN;AACF;","names":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Dialog
|
|
3
|
+
} from "./chunk-AH4A53SZ.js";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-25HMMI7R.js";
|
|
7
|
+
import {
|
|
8
|
+
Button
|
|
9
|
+
} from "./chunk-ZVDAEY5Q.js";
|
|
10
|
+
import {
|
|
11
|
+
AspectRatio
|
|
12
|
+
} from "./chunk-EAXUQEO5.js";
|
|
13
|
+
|
|
14
|
+
// src/molecules/training-info-guideline.tsx
|
|
15
|
+
import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
function TrainingInfoGuideline({
|
|
18
|
+
values,
|
|
19
|
+
onClickFileDownload
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: values.map((value) => /* @__PURE__ */ jsx(
|
|
22
|
+
TrainingInfoGuidelineItem,
|
|
23
|
+
{
|
|
24
|
+
onClickFileDownload,
|
|
25
|
+
value
|
|
26
|
+
},
|
|
27
|
+
getItemKey(value)
|
|
28
|
+
)) });
|
|
29
|
+
}
|
|
30
|
+
function getItemKey(value) {
|
|
31
|
+
return value.url;
|
|
32
|
+
}
|
|
33
|
+
function TrainingInfoGuidelineItem({
|
|
34
|
+
value,
|
|
35
|
+
onClickFileDownload
|
|
36
|
+
}) {
|
|
37
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
38
|
+
if (value.type === "file") {
|
|
39
|
+
return /* @__PURE__ */ jsxs(
|
|
40
|
+
Button,
|
|
41
|
+
{
|
|
42
|
+
onClick: () => {
|
|
43
|
+
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
44
|
+
},
|
|
45
|
+
variant: "surface",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(FileTextIcon, {}),
|
|
48
|
+
value.downloadButtonName
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
if (value.type === "video") {
|
|
54
|
+
return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsxs(Button, { variant: "surface", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(VideoIcon, {}),
|
|
57
|
+
value.videoTitle
|
|
58
|
+
] }) }),
|
|
59
|
+
/* @__PURE__ */ jsx(Dialog.Content, { height: "100%", maxHeight: "500px", maxWidth: "800px", title: value.videoTitle, width: "100%", children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
60
|
+
"iframe",
|
|
61
|
+
{
|
|
62
|
+
allowFullScreen: true,
|
|
63
|
+
onLoad: () => {
|
|
64
|
+
setIsLoading(false);
|
|
65
|
+
},
|
|
66
|
+
src: `${url}?theme=light`,
|
|
67
|
+
style: { width: "100%", height: "100%", border: "none" },
|
|
68
|
+
title: "Curriculum Video",
|
|
69
|
+
onError: () => {
|
|
70
|
+
setIsLoading(false);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
) }) })
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
TrainingInfoGuideline
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=chunk-2YBJBKBB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/training-info-guideline.tsx"],"sourcesContent":["import React from 'react';\nimport { FileTextIcon, VideoIcon } from '@radix-ui/react-icons';\nimport { AspectRatio } from '@/atoms/aspect-ratio';\nimport { Button } from '@/atoms/button';\nimport type { TrainingInfoGuidelineContents } from '@/types/training-info-guideline-schema-generated';\nimport { Dialog } from '@/atoms/dialog';\nimport { Flex } from '../atoms/flex';\n\nexport interface TrainingInfoGuidelineProps {\n values: TrainingInfoGuidelineContents['values'];\n onClickFileDownload: (args: { url: string; filename: string }) => void;\n}\n\nexport function TrainingInfoGuideline({\n values,\n onClickFileDownload,\n}: TrainingInfoGuidelineProps): React.ReactElement {\n return (\n <Flex direction=\"column\" gap=\"4\">\n {values.map((value) => (\n <TrainingInfoGuidelineItem\n key={getItemKey(value)}\n onClickFileDownload={onClickFileDownload}\n value={value}\n />\n ))}\n </Flex>\n );\n}\n\ntype TrainingInfoGuidelineValue =\n TrainingInfoGuidelineContents['values'][number];\n\nfunction getItemKey(value: TrainingInfoGuidelineValue): string {\n return value.url;\n}\n\ninterface TrainingInfoGuidelineItemProps {\n value: TrainingInfoGuidelineValue;\n onClickFileDownload: TrainingInfoGuidelineProps['onClickFileDownload'];\n}\n\nfunction TrainingInfoGuidelineItem({\n value,\n onClickFileDownload,\n}: TrainingInfoGuidelineItemProps): React.ReactElement | null {\n const [isLoading, setIsLoading] = useState(true);\n if (value.type === 'file') {\n return (\n <Button\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n variant=\"surface\"\n >\n <FileTextIcon />\n {value.downloadButtonName}\n </Button>\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 차후 다른 타입 추가 시 사용\n if (value.type === 'video') {\n return (\n <Dialog.Root>\n <Dialog.Trigger>\n <Button variant=\"surface\">\n <VideoIcon />\n {value.videoTitle}\n </Button>\n </Dialog.Trigger>\n <Dialog.Content height=\"100%\" maxHeight='500px' maxWidth='800px' title={value.videoTitle} width=\"100%\">\n <AspectRatio ratio={16 / 9} style={{ width: '100%' }}>\n \n <iframe\n allowFullScreen\n onLoad={() => {\n setIsLoading(false);\n }}\n src={`${url}?theme=light`}\n style={{ width: '100%', height: '100%', border: 'none' }}\n title=\"Curriculum Video\"\n onError={() => {\n setIsLoading(false);\n }} // 필요시 에러 메시지로 대체\n /> \n </AspectRatio>\n </Dialog.Content>\n </Dialog.Root>\n );\n }\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;AACA,SAAS,cAAc,iBAAiB;AAmBhC,cA6BF,YA7BE;AAPD,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AACF,GAAmD;AACjD,SACE,oBAAC,QAAK,WAAU,UAAS,KAAI,KAC1B,iBAAO,IAAI,CAAC,UACX;AAAA,IAAC;AAAA;AAAA,MAEC;AAAA,MACA;AAAA;AAAA,IAFK,WAAW,KAAK;AAAA,EAGvB,CACD,GACH;AAEJ;AAKA,SAAS,WAAW,OAA2C;AAC7D,SAAO,MAAM;AACf;AAOA,SAAS,0BAA0B;AAAA,EACjC;AAAA,EACA;AACF,GAA8D;AAC5D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,IAAI;AAC/C,MAAI,MAAM,SAAS,QAAQ;AACzB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM;AACb,8BAAoB,EAAE,KAAK,MAAM,KAAK,UAAU,MAAM,SAAS,CAAC;AAAA,QAClE;AAAA,QACA,SAAQ;AAAA,QAER;AAAA,8BAAC,gBAAa;AAAA,UACb,MAAM;AAAA;AAAA;AAAA,IACT;AAAA,EAEJ;AAGA,MAAI,MAAM,SAAS,SAAS;AAC1B,WACE,qBAAC,OAAO,MAAP,EACC;AAAA,0BAAC,OAAO,SAAP,EACC,+BAAC,UAAO,SAAQ,WACd;AAAA,4BAAC,aAAU;AAAA,QACV,MAAM;AAAA,SACT,GACF;AAAA,MACA,oBAAC,OAAO,SAAP,EAAe,QAAO,QAAO,WAAU,SAAQ,UAAS,SAAQ,OAAO,MAAM,YAAY,OAAM,QAC9F,8BAAC,eAAY,OAAO,KAAK,GAAG,OAAO,EAAE,OAAO,OAAO,GAEvD;AAAA,QAAC;AAAA;AAAA,UACC,iBAAe;AAAA,UACf,QAAQ,MAAM;AACZ,yBAAa,KAAK;AAAA,UACpB;AAAA,UACA,KAAK,GAAG,GAAG;AAAA,UACX,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAQ,QAAQ,OAAO;AAAA,UACvD,OAAM;AAAA,UACN,SAAS,MAAM;AACb,yBAAa,KAAK;AAAA,UACpB;AAAA;AAAA,MACF,GACI,GACF;AAAA,OACF;AAAA,EAEJ;AACA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
complete_review_default
|
|
3
|
+
} from "./chunk-W747CDDK.js";
|
|
4
|
+
import {
|
|
5
|
+
start_review_default
|
|
6
|
+
} from "./chunk-CIQ7ELE6.js";
|
|
7
|
+
import {
|
|
8
|
+
ReviewQuestion_default
|
|
9
|
+
} from "./chunk-6F63WEDJ.js";
|
|
10
|
+
import {
|
|
11
|
+
CurriculumReviewProvider,
|
|
12
|
+
useCurriculumReviewContext
|
|
13
|
+
} from "./chunk-GMKRNFH5.js";
|
|
14
|
+
|
|
15
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
function CurriculumReviewStepsInner() {
|
|
18
|
+
const {
|
|
19
|
+
formik,
|
|
20
|
+
step,
|
|
21
|
+
handleStart,
|
|
22
|
+
handleNext,
|
|
23
|
+
handlePrev,
|
|
24
|
+
onClickReviewMyAnswer,
|
|
25
|
+
handleSubmit,
|
|
26
|
+
currentQuestion,
|
|
27
|
+
currentAnswer,
|
|
28
|
+
currentError,
|
|
29
|
+
reviewContents,
|
|
30
|
+
handleAnswerChange
|
|
31
|
+
} = useCurriculumReviewContext();
|
|
32
|
+
const { questions } = reviewContents;
|
|
33
|
+
if (step === 0) {
|
|
34
|
+
return /* @__PURE__ */ jsx(start_review_default, { onStart: handleStart });
|
|
35
|
+
}
|
|
36
|
+
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
ReviewQuestion_default,
|
|
39
|
+
{
|
|
40
|
+
answer: currentAnswer,
|
|
41
|
+
error: currentError,
|
|
42
|
+
index: step - 1,
|
|
43
|
+
isLast: step === questions.length,
|
|
44
|
+
isLoading: formik.isSubmitting,
|
|
45
|
+
isNextDisabled: currentError !== void 0,
|
|
46
|
+
onChange: handleAnswerChange,
|
|
47
|
+
onNext: handleNext,
|
|
48
|
+
onPrev: handlePrev,
|
|
49
|
+
onSubmit: handleSubmit,
|
|
50
|
+
question: currentQuestion,
|
|
51
|
+
total: questions.length
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
return /* @__PURE__ */ jsx(complete_review_default, { onClickReviewMyAnswer });
|
|
56
|
+
}
|
|
57
|
+
function CurriculumReviewSteps({
|
|
58
|
+
contents,
|
|
59
|
+
title,
|
|
60
|
+
onClickEndReview,
|
|
61
|
+
onSubmit,
|
|
62
|
+
defaultValues,
|
|
63
|
+
curriculum,
|
|
64
|
+
onReviewValueChange,
|
|
65
|
+
mode,
|
|
66
|
+
done
|
|
67
|
+
}) {
|
|
68
|
+
return /* @__PURE__ */ jsx(
|
|
69
|
+
CurriculumReviewProvider,
|
|
70
|
+
{
|
|
71
|
+
curriculum,
|
|
72
|
+
defaultValues,
|
|
73
|
+
done,
|
|
74
|
+
mode,
|
|
75
|
+
onClickEndReview,
|
|
76
|
+
onReviewValueChange,
|
|
77
|
+
onSubmit,
|
|
78
|
+
reviewContents: contents,
|
|
79
|
+
sectionTitle: title,
|
|
80
|
+
children: /* @__PURE__ */ jsx(CurriculumReviewStepsInner, {})
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
85
|
+
|
|
86
|
+
export {
|
|
87
|
+
CurriculumReviewSteps_default
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=chunk-367ZYIOP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx"],"sourcesContent":["import React from 'react';\nimport { type CurriculumReviewContents } from '@/types/curriculumContents.type';\nimport type { Curriculum } from '@/types'; \nimport {\n CurriculumReviewProvider,\n useCurriculumReviewContext,\n} from './curriculum-review-context';\nimport StartReview from './start-review';\nimport CompleteReview from './complete-review';\nimport ReviewQuestion from './ReviewQuestion';\n \nfunction CurriculumReviewStepsInner(): React.ReactNode {\n const {\n formik,\n step,\n handleStart,\n handleNext,\n handlePrev,\n onClickReviewMyAnswer,\n handleSubmit,\n currentQuestion,\n currentAnswer,\n currentError,\n reviewContents,\n handleAnswerChange,\n } = useCurriculumReviewContext();\n const { questions } = reviewContents;\n\n if (step === 0) {\n return <StartReview onStart={handleStart} />;\n }\n if (step > 0 && step <= questions.length && currentQuestion) {\n return (\n <ReviewQuestion\n answer={currentAnswer}\n error={currentError}\n index={step - 1}\n isLast={step === questions.length}\n isLoading={formik.isSubmitting}\n isNextDisabled={currentError !== undefined}\n onChange={handleAnswerChange}\n onNext={handleNext}\n onPrev={handlePrev}\n onSubmit={handleSubmit}\n question={currentQuestion}\n total={questions.length}\n />\n );\n }\n return <CompleteReview onClickReviewMyAnswer={onClickReviewMyAnswer} />;\n}\n\ninterface CurriculumReviewStepsProps {\n contents: CurriculumReviewContents;\n title: string | undefined;\n onClickEndReview: () => void;\n onSubmit: (values: Record<string, string>) => Promise<boolean>;\n defaultValues?: Record<string, string>;\n curriculum: Curriculum;\n onReviewValueChange: ({\n reviewId,\n answer,\n }: {\n reviewId: string;\n answer: Record<string, string>;\n }) => void;\n mode: 'edit' | 'create';\n done: boolean; \n}\n\nfunction CurriculumReviewSteps({\n contents,\n title,\n onClickEndReview,\n onSubmit,\n defaultValues,\n curriculum,\n onReviewValueChange,\n mode,\n done,\n}: CurriculumReviewStepsProps): React.ReactNode { \n\n return (\n <CurriculumReviewProvider\n curriculum={curriculum}\n defaultValues={defaultValues}\n done={done}\n mode={mode}\n onClickEndReview={onClickEndReview}\n onReviewValueChange={onReviewValueChange}\n onSubmit={onSubmit}\n reviewContents={contents}\n sectionTitle={title}\n >\n <CurriculumReviewStepsInner />\n </CurriculumReviewProvider>\n );\n}\n\nexport default CurriculumReviewSteps;\n"],"mappings":";;;;;;;;;;;;;;;AA6BW;AAlBX,SAAS,6BAA8C;AACrD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,2BAA2B;AAC/B,QAAM,EAAE,UAAU,IAAI;AAEtB,MAAI,SAAS,GAAG;AACd,WAAO,oBAAC,wBAAY,SAAS,aAAa;AAAA,EAC5C;AACA,MAAI,OAAO,KAAK,QAAQ,UAAU,UAAU,iBAAiB;AAC3D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,OAAO,OAAO;AAAA,QACd,QAAQ,SAAS,UAAU;AAAA,QAC3B,WAAW,OAAO;AAAA,QAClB,gBAAgB,iBAAiB;AAAA,QACjC,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,UAAU;AAAA,QACV,OAAO,UAAU;AAAA;AAAA,IACnB;AAAA,EAEJ;AACA,SAAO,oBAAC,2BAAe,uBAA8C;AACvE;AAoBA,SAAS,sBAAsB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAgD;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,gBAAgB;AAAA,MAChB,cAAc;AAAA,MAEd,8BAAC,8BAA2B;AAAA;AAAA,EAC9B;AAEJ;AAEA,IAAO,gCAAQ;","names":[]}
|