@tipp/ui 2.3.18 → 2.3.20
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.map +1 -1
- package/dist/app/index.js +91 -91
- package/dist/app/platform/coach-question-list.js +31 -31
- package/dist/app/platform/contents-card.js +31 -31
- package/dist/app/platform/curriculum-card.js +5 -5
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +72 -72
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +73 -73
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +72 -72
- package/dist/app/platform/goal-manage-card-read.js +31 -31
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +72 -72
- package/dist/app/platform/report-card.js +31 -31
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +73 -73
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +75 -75
- package/dist/app/platform/session-review-simple-read.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -36
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +31 -31
- package/dist/app/platform/userInfos/session-user-info-detail.js +31 -31
- package/dist/app/platform/userInfos/utils.js +30 -30
- 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-232ZBMFV.js +196 -0
- package/dist/chunk-232ZBMFV.js.map +1 -0
- package/dist/chunk-24572XRX.js +140 -0
- package/dist/chunk-24572XRX.js.map +1 -0
- package/dist/chunk-34XTOQID.js +140 -0
- package/dist/chunk-34XTOQID.js.map +1 -0
- package/dist/chunk-3A3VE6SX.js +160 -0
- package/dist/chunk-3A3VE6SX.js.map +1 -0
- package/dist/chunk-3LEW5RYJ.js +163 -0
- package/dist/chunk-3LEW5RYJ.js.map +1 -0
- package/dist/chunk-3MCSM3WD.js +163 -0
- package/dist/chunk-3MCSM3WD.js.map +1 -0
- package/dist/chunk-3MG2RPYN.js +163 -0
- package/dist/chunk-3MG2RPYN.js.map +1 -0
- package/dist/chunk-3P5XU4EK.js +87 -0
- package/dist/chunk-3P5XU4EK.js.map +1 -0
- package/dist/chunk-4SFBZJWH.js +140 -0
- package/dist/chunk-4SFBZJWH.js.map +1 -0
- package/dist/chunk-5IQ4474Z.js +89 -0
- package/dist/chunk-5IQ4474Z.js.map +1 -0
- package/dist/chunk-5P7255ZD.js +144 -0
- package/dist/chunk-5P7255ZD.js.map +1 -0
- package/dist/chunk-5RMPQM6F.js +163 -0
- package/dist/chunk-5RMPQM6F.js.map +1 -0
- package/dist/chunk-5UUCPFYY.js +140 -0
- package/dist/chunk-5UUCPFYY.js.map +1 -0
- package/dist/chunk-6LZWYVNE.js +160 -0
- package/dist/chunk-6LZWYVNE.js.map +1 -0
- package/dist/chunk-6PJ7QIPK.js +140 -0
- package/dist/chunk-6PJ7QIPK.js.map +1 -0
- package/dist/chunk-6VWGOH4J.js +218 -0
- package/dist/chunk-6VWGOH4J.js.map +1 -0
- package/dist/chunk-7AGAGV4E.js +69 -0
- package/dist/chunk-7AGAGV4E.js.map +1 -0
- package/dist/chunk-7AZNNMJF.js +129 -0
- package/dist/chunk-7AZNNMJF.js.map +1 -0
- package/dist/chunk-7BAQZVH3.js +152 -0
- package/dist/chunk-7BAQZVH3.js.map +1 -0
- package/dist/chunk-7RB2YZCU.js +159 -0
- package/dist/chunk-7RB2YZCU.js.map +1 -0
- package/dist/chunk-A5SSQHU7.js +135 -0
- package/dist/chunk-A5SSQHU7.js.map +1 -0
- package/dist/chunk-B5J4YCG2.js +98 -0
- package/dist/chunk-B5J4YCG2.js.map +1 -0
- package/dist/chunk-BAFUUZ5V.js +163 -0
- package/dist/chunk-BAFUUZ5V.js.map +1 -0
- package/dist/chunk-BT4BMBJC.js +163 -0
- package/dist/chunk-BT4BMBJC.js.map +1 -0
- package/dist/chunk-C5HQZR32.js +196 -0
- package/dist/chunk-C5HQZR32.js.map +1 -0
- package/dist/chunk-D7NY3IWA.js +152 -0
- package/dist/chunk-D7NY3IWA.js.map +1 -0
- package/dist/chunk-DGOKT7ZK.js +163 -0
- package/dist/chunk-DGOKT7ZK.js.map +1 -0
- package/dist/chunk-DL5EXP6Q.js +129 -0
- package/dist/chunk-DL5EXP6Q.js.map +1 -0
- package/dist/chunk-DR3ELFWR.js +69 -0
- package/dist/chunk-DR3ELFWR.js.map +1 -0
- package/dist/chunk-EEXQP6FN.js +129 -0
- package/dist/chunk-EEXQP6FN.js.map +1 -0
- package/dist/chunk-EOPCVKLK.js +69 -0
- package/dist/chunk-EOPCVKLK.js.map +1 -0
- package/dist/chunk-FJYLZOAR.js +140 -0
- package/dist/chunk-FJYLZOAR.js.map +1 -0
- package/dist/chunk-GFRV5VDJ.js +132 -0
- package/dist/chunk-GFRV5VDJ.js.map +1 -0
- package/dist/chunk-GRD6VL3Q.js +49 -0
- package/dist/chunk-GRD6VL3Q.js.map +1 -0
- package/dist/chunk-H53J2DZE.js +157 -0
- package/dist/chunk-H53J2DZE.js.map +1 -0
- package/dist/chunk-HBQ6WF3C.js +196 -0
- package/dist/chunk-HBQ6WF3C.js.map +1 -0
- package/dist/chunk-I6ITAPUG.js +158 -0
- package/dist/chunk-I6ITAPUG.js.map +1 -0
- package/dist/chunk-IPEPHM2U.js +89 -0
- package/dist/chunk-IPEPHM2U.js.map +1 -0
- package/dist/chunk-J65X5ID3.js +136 -0
- package/dist/chunk-J65X5ID3.js.map +1 -0
- package/dist/chunk-K6PJ5GES.js +129 -0
- package/dist/chunk-K6PJ5GES.js.map +1 -0
- package/dist/chunk-LFISV2GU.js +160 -0
- package/dist/chunk-LFISV2GU.js.map +1 -0
- package/dist/chunk-LRTZTSV6.js +135 -0
- package/dist/chunk-LRTZTSV6.js.map +1 -0
- package/dist/chunk-MOITMVXZ.js +159 -0
- package/dist/chunk-MOITMVXZ.js.map +1 -0
- package/dist/chunk-MYGRIOQM.js +163 -0
- package/dist/chunk-MYGRIOQM.js.map +1 -0
- package/dist/chunk-N3A4EUDH.js +101 -0
- package/dist/chunk-N3A4EUDH.js.map +1 -0
- package/dist/chunk-NBVTF6TV.js +163 -0
- package/dist/chunk-NBVTF6TV.js.map +1 -0
- package/dist/chunk-NMOMXXLD.js +163 -0
- package/dist/chunk-NMOMXXLD.js.map +1 -0
- package/dist/chunk-OHSKOJ2Y.js +136 -0
- package/dist/chunk-OHSKOJ2Y.js.map +1 -0
- package/dist/chunk-OWJKGWFQ.js +89 -0
- package/dist/chunk-OWJKGWFQ.js.map +1 -0
- package/dist/chunk-P4ELC3C3.js +145 -0
- package/dist/chunk-P4ELC3C3.js.map +1 -0
- package/dist/chunk-QF22MRN6.js +152 -0
- package/dist/chunk-QF22MRN6.js.map +1 -0
- package/dist/chunk-QHAU3JHA.js +152 -0
- package/dist/chunk-QHAU3JHA.js.map +1 -0
- package/dist/chunk-QQTXIKFT.js +163 -0
- package/dist/chunk-QQTXIKFT.js.map +1 -0
- package/dist/chunk-RQFJZYKH.js +160 -0
- package/dist/chunk-RQFJZYKH.js.map +1 -0
- package/dist/chunk-SI6QBFXF.js +29 -0
- package/dist/chunk-SI6QBFXF.js.map +1 -0
- package/dist/chunk-SRU4OFM3.js +135 -0
- package/dist/chunk-SRU4OFM3.js.map +1 -0
- package/dist/chunk-T5EBUYAB.js +160 -0
- package/dist/chunk-T5EBUYAB.js.map +1 -0
- package/dist/chunk-THTRJNHI.js +159 -0
- package/dist/chunk-THTRJNHI.js.map +1 -0
- package/dist/chunk-TKX3HVMK.js +30 -0
- package/dist/chunk-TKX3HVMK.js.map +1 -0
- package/dist/chunk-TLEAX2CO.js +43 -0
- package/dist/chunk-TLEAX2CO.js.map +1 -0
- package/dist/chunk-TQCYWSCL.js +69 -0
- package/dist/chunk-TQCYWSCL.js.map +1 -0
- package/dist/chunk-UFKDKEI7.js +151 -0
- package/dist/chunk-UFKDKEI7.js.map +1 -0
- package/dist/chunk-WE2VD6CD.js +37 -0
- package/dist/chunk-WE2VD6CD.js.map +1 -0
- package/dist/chunk-WQRH5YGD.js +129 -0
- package/dist/chunk-WQRH5YGD.js.map +1 -0
- package/dist/chunk-X2MARIQ5.js +140 -0
- package/dist/chunk-X2MARIQ5.js.map +1 -0
- package/dist/chunk-XPTGW7ZC.js +69 -0
- package/dist/chunk-XPTGW7ZC.js.map +1 -0
- package/dist/chunk-XTU7VQ2V.js +158 -0
- package/dist/chunk-XTU7VQ2V.js.map +1 -0
- package/dist/chunk-XUTEGDQM.js +51 -0
- package/dist/chunk-XUTEGDQM.js.map +1 -0
- package/dist/chunk-YBO2LITL.js +163 -0
- package/dist/chunk-YBO2LITL.js.map +1 -0
- package/dist/chunk-YOADPBEF.js +129 -0
- package/dist/chunk-YOADPBEF.js.map +1 -0
- package/dist/chunk-YRCJG2BQ.js +163 -0
- package/dist/chunk-YRCJG2BQ.js.map +1 -0
- package/dist/chunk-YXGSOU62.js +129 -0
- package/dist/chunk-YXGSOU62.js.map +1 -0
- package/dist/chunk-Z6B4C5AB.js +63 -0
- package/dist/chunk-Z6B4C5AB.js.map +1 -0
- package/dist/chunk-ZKLZRBDG.js +163 -0
- package/dist/chunk-ZKLZRBDG.js.map +1 -0
- package/dist/chunk-ZYFRVFJE.js +163 -0
- package/dist/chunk-ZYFRVFJE.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +36 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +136 -136
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +18 -18
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +11 -11
- 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 +6 -6
- 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 +21 -21
- 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 +23 -23
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +27 -27
- 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 +7 -7
- 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 +36 -36
- 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 +6 -6
- package/dist/molecules/dynamic-form.js +7 -7
- package/dist/molecules/expand-table/index.js +5 -5
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +36 -11
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +64 -64
- package/dist/molecules/learning-post.js +6 -6
- 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 +85 -24
- package/dist/molecules/training-info-guideline.cjs.map +1 -1
- package/dist/molecules/training-info-guideline.js +7 -4
- package/package.json +1 -1
- package/src/molecules/training-info-guideline.tsx +51 -10
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Separator
|
|
3
|
+
} from "./chunk-HYITAA4J.js";
|
|
4
|
+
import {
|
|
5
|
+
Spinner
|
|
6
|
+
} from "./chunk-FR2GDOU2.js";
|
|
7
|
+
import {
|
|
8
|
+
Dialog
|
|
9
|
+
} from "./chunk-AH4A53SZ.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-PMJIFLDT.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
import {
|
|
20
|
+
Button
|
|
21
|
+
} from "./chunk-ZVDAEY5Q.js";
|
|
22
|
+
import {
|
|
23
|
+
AspectRatio
|
|
24
|
+
} from "./chunk-EAXUQEO5.js";
|
|
25
|
+
|
|
26
|
+
// src/molecules/training-info-guideline.tsx
|
|
27
|
+
import { useState } from "react";
|
|
28
|
+
import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
|
|
29
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
function TrainingInfoGuideline({
|
|
31
|
+
values,
|
|
32
|
+
onClickFileDownload
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Fragment, { children: values.map((value) => /* @__PURE__ */ jsx(
|
|
35
|
+
TrainingInfoGuidelineItem,
|
|
36
|
+
{
|
|
37
|
+
onClickFileDownload,
|
|
38
|
+
value
|
|
39
|
+
},
|
|
40
|
+
getItemKey(value)
|
|
41
|
+
)) });
|
|
42
|
+
}
|
|
43
|
+
function getItemKey(value) {
|
|
44
|
+
return value.url;
|
|
45
|
+
}
|
|
46
|
+
function TrainingInfoGuidelineItem({
|
|
47
|
+
value,
|
|
48
|
+
onClickFileDownload
|
|
49
|
+
}) {
|
|
50
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
51
|
+
if (value.type === "file") {
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
TrainingInfoGuidelineButton,
|
|
54
|
+
{
|
|
55
|
+
description: value.filename,
|
|
56
|
+
icon: /* @__PURE__ */ jsx(FileTextIcon, {}),
|
|
57
|
+
onClick: () => {
|
|
58
|
+
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
59
|
+
},
|
|
60
|
+
title: value.downloadButtonName
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
if (value.type === "video") {
|
|
65
|
+
return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsx(
|
|
67
|
+
TrainingInfoGuidelineButton,
|
|
68
|
+
{
|
|
69
|
+
description: "\uC601\uC0C1",
|
|
70
|
+
icon: /* @__PURE__ */ jsx(VideoIcon, {}),
|
|
71
|
+
title: value.videoTitle
|
|
72
|
+
}
|
|
73
|
+
) }),
|
|
74
|
+
/* @__PURE__ */ jsx(
|
|
75
|
+
Dialog.Content,
|
|
76
|
+
{
|
|
77
|
+
height: "100%",
|
|
78
|
+
maxHeight: "500px",
|
|
79
|
+
maxWidth: "800px",
|
|
80
|
+
title: value.videoTitle,
|
|
81
|
+
width: "100%",
|
|
82
|
+
children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
|
|
83
|
+
Flex,
|
|
84
|
+
{
|
|
85
|
+
align: "center",
|
|
86
|
+
justify: "center",
|
|
87
|
+
style: {
|
|
88
|
+
width: "100%",
|
|
89
|
+
height: "100%",
|
|
90
|
+
backgroundColor: "black",
|
|
91
|
+
position: "relative"
|
|
92
|
+
},
|
|
93
|
+
children: [
|
|
94
|
+
isLoading ? /* @__PURE__ */ jsx(
|
|
95
|
+
Flex,
|
|
96
|
+
{
|
|
97
|
+
align: "center",
|
|
98
|
+
height: "100%",
|
|
99
|
+
justify: "center",
|
|
100
|
+
position: "absolute",
|
|
101
|
+
style: {
|
|
102
|
+
position: "absolute",
|
|
103
|
+
top: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
zIndex: 1,
|
|
106
|
+
color: "white"
|
|
107
|
+
},
|
|
108
|
+
width: "100%",
|
|
109
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
110
|
+
}
|
|
111
|
+
) : null,
|
|
112
|
+
/* @__PURE__ */ jsx(
|
|
113
|
+
"iframe",
|
|
114
|
+
{
|
|
115
|
+
allowFullScreen: true,
|
|
116
|
+
onError: () => {
|
|
117
|
+
setIsLoading(false);
|
|
118
|
+
},
|
|
119
|
+
onLoad: () => {
|
|
120
|
+
setIsLoading(false);
|
|
121
|
+
},
|
|
122
|
+
src: `${value.url}?theme=light`,
|
|
123
|
+
style: { width: "100%", height: "100%", border: "none" },
|
|
124
|
+
title: "Curriculum Video"
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
) })
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] });
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
function TrainingInfoGuidelineButton({
|
|
137
|
+
icon,
|
|
138
|
+
title,
|
|
139
|
+
description,
|
|
140
|
+
onClick
|
|
141
|
+
}) {
|
|
142
|
+
return /* @__PURE__ */ jsx(
|
|
143
|
+
Button,
|
|
144
|
+
{
|
|
145
|
+
onClick,
|
|
146
|
+
style: { width: "100%", height: "48px", textAlign },
|
|
147
|
+
variant: "outline",
|
|
148
|
+
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
|
|
149
|
+
icon,
|
|
150
|
+
/* @__PURE__ */ jsx(Separator, { orientation: "vertical", size: "2" }),
|
|
151
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
152
|
+
/* @__PURE__ */ jsx(Typo, { as: "div", mb: "1", children: title }),
|
|
153
|
+
typeof description === "string" && description !== "" ? /* @__PURE__ */ jsx(Typo, { variant: "caption", children: description }) : null
|
|
154
|
+
] })
|
|
155
|
+
] })
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export {
|
|
161
|
+
TrainingInfoGuideline
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=chunk-NMOMXXLD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/training-info-guideline.tsx"],"sourcesContent":["import React, { useState } 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 { Spinner } from '@/atoms/spinner';\nimport { Box } from '@/atoms/box';\nimport { Separator } from '@/atoms/separator';\nimport { Typo } from '@/atoms/typo';\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 <>\n {values.map((value) => (\n <TrainingInfoGuidelineItem\n key={getItemKey(value)}\n onClickFileDownload={onClickFileDownload}\n value={value}\n />\n ))}\n </>\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\n if (value.type === 'file') {\n return (\n <TrainingInfoGuidelineButton\n description={value.filename}\n icon={<FileTextIcon />}\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n title={value.downloadButtonName}\n />\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 <TrainingInfoGuidelineButton\n description=\"영상\"\n icon={<VideoIcon />}\n title={value.videoTitle}\n />\n </Dialog.Trigger>\n <Dialog.Content\n height=\"100%\"\n maxHeight=\"500px\"\n maxWidth=\"800px\"\n title={value.videoTitle}\n width=\"100%\"\n >\n <AspectRatio ratio={16 / 9} style={{ width: '100%' }}>\n <Flex\n align=\"center\"\n justify=\"center\"\n style={{\n width: '100%',\n height: '100%',\n backgroundColor: 'black',\n position: 'relative',\n }}\n >\n {isLoading ? (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n position=\"absolute\"\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n color: 'white',\n }}\n width=\"100%\"\n >\n <Spinner size=\"3\" style={{ width: 48, height: 48 }} />\n </Flex>\n ) : null}\n\n <iframe\n allowFullScreen\n onError={() => {\n setIsLoading(false);\n }} // 필요시 에러 메시지로 대체\n onLoad={() => {\n setIsLoading(false);\n }}\n src={`${value.url}?theme=light`}\n style={{ width: '100%', height: '100%', border: 'none' }}\n title=\"Curriculum Video\"\n />\n </Flex>\n </AspectRatio>\n </Dialog.Content>\n </Dialog.Root>\n );\n }\n return null;\n}\n\ninterface TrainingInfoGuidelineButtonProps {\n icon: React.ReactNode;\n title: string;\n description?: string;\n onClick?: () => void;\n}\n\nfunction TrainingInfoGuidelineButton({\n icon,\n title,\n description,\n onClick,\n}: TrainingInfoGuidelineButtonProps): React.ReactElement {\n return (\n <Button\n onClick={onClick}\n style={{ width: '100%', height: '48px' , textAlign}}\n variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n {icon}\n <Separator orientation=\"vertical\" size=\"2\" />\n <Box>\n <Typo as=\"div\" mb=\"1\">\n {title}\n </Typo>\n {typeof description === 'string' && description !== '' ? (\n <Typo variant=\"caption\" >\n {description}\n </Typo>\n ) : null}\n </Box>\n </Flex>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,gBAAgB;AAChC,SAAS,cAAc,iBAAiB;AAqBpC,mBAEI,KA4DI,YA9DR;AALG,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AACF,GAAmD;AACjD,SACE,gCACG,iBAAO,IAAI,CAAC,UACX;AAAA,IAAC;AAAA;AAAA,MAEC;AAAA,MACA;AAAA;AAAA,IAFK,WAAW,KAAK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|
+
import {
|
|
8
|
+
Typo
|
|
9
|
+
} from "./chunk-PMJIFLDT.js";
|
|
10
|
+
import {
|
|
11
|
+
Flex
|
|
12
|
+
} from "./chunk-25HMMI7R.js";
|
|
13
|
+
import {
|
|
14
|
+
Button
|
|
15
|
+
} from "./chunk-ZVDAEY5Q.js";
|
|
16
|
+
import {
|
|
17
|
+
AspectRatio
|
|
18
|
+
} from "./chunk-EAXUQEO5.js";
|
|
19
|
+
|
|
20
|
+
// src/molecules/training-info-guideline.tsx
|
|
21
|
+
import { useState } from "react";
|
|
22
|
+
import { FileTextIcon, VideoIcon } from "@radix-ui/react-icons";
|
|
23
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
+
function TrainingInfoGuideline({
|
|
25
|
+
values,
|
|
26
|
+
onClickFileDownload
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Fragment, { children: values.map((value) => /* @__PURE__ */ jsx(
|
|
29
|
+
TrainingInfoGuidelineItem,
|
|
30
|
+
{
|
|
31
|
+
onClickFileDownload,
|
|
32
|
+
value
|
|
33
|
+
},
|
|
34
|
+
getItemKey(value)
|
|
35
|
+
)) });
|
|
36
|
+
}
|
|
37
|
+
function getItemKey(value) {
|
|
38
|
+
return value.url;
|
|
39
|
+
}
|
|
40
|
+
function TrainingInfoGuidelineItem({
|
|
41
|
+
value,
|
|
42
|
+
onClickFileDownload
|
|
43
|
+
}) {
|
|
44
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
45
|
+
if (value.type === "file") {
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
Button,
|
|
48
|
+
{
|
|
49
|
+
onClick: () => {
|
|
50
|
+
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
51
|
+
},
|
|
52
|
+
style: { height: "48px" },
|
|
53
|
+
variant: "outline",
|
|
54
|
+
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", width: "100%", children: [
|
|
55
|
+
/* @__PURE__ */ jsx(FileTextIcon, {}),
|
|
56
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "1", children: [
|
|
57
|
+
/* @__PURE__ */ jsx(Typo, { children: value.downloadButtonName }),
|
|
58
|
+
/* @__PURE__ */ jsx(Typo, { variant: "caption", children: value.filename })
|
|
59
|
+
] })
|
|
60
|
+
] })
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
if (value.type === "video") {
|
|
65
|
+
return /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsxs(Button, { variant: "surface", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(VideoIcon, {}),
|
|
68
|
+
value.videoTitle
|
|
69
|
+
] }) }),
|
|
70
|
+
/* @__PURE__ */ jsx(
|
|
71
|
+
Dialog.Content,
|
|
72
|
+
{
|
|
73
|
+
height: "100%",
|
|
74
|
+
maxHeight: "500px",
|
|
75
|
+
maxWidth: "800px",
|
|
76
|
+
title: value.videoTitle,
|
|
77
|
+
width: "100%",
|
|
78
|
+
children: /* @__PURE__ */ jsx(AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ jsxs(
|
|
79
|
+
Flex,
|
|
80
|
+
{
|
|
81
|
+
align: "center",
|
|
82
|
+
justify: "center",
|
|
83
|
+
style: {
|
|
84
|
+
width: "100%",
|
|
85
|
+
height: "100%",
|
|
86
|
+
backgroundColor: "black",
|
|
87
|
+
position: "relative"
|
|
88
|
+
},
|
|
89
|
+
children: [
|
|
90
|
+
isLoading ? /* @__PURE__ */ jsx(
|
|
91
|
+
Flex,
|
|
92
|
+
{
|
|
93
|
+
align: "center",
|
|
94
|
+
height: "100%",
|
|
95
|
+
justify: "center",
|
|
96
|
+
position: "absolute",
|
|
97
|
+
style: {
|
|
98
|
+
position: "absolute",
|
|
99
|
+
top: 0,
|
|
100
|
+
left: 0,
|
|
101
|
+
zIndex: 1,
|
|
102
|
+
color: "white"
|
|
103
|
+
},
|
|
104
|
+
width: "100%",
|
|
105
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
106
|
+
}
|
|
107
|
+
) : null,
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
"iframe",
|
|
110
|
+
{
|
|
111
|
+
allowFullScreen: true,
|
|
112
|
+
onError: () => {
|
|
113
|
+
setIsLoading(false);
|
|
114
|
+
},
|
|
115
|
+
onLoad: () => {
|
|
116
|
+
setIsLoading(false);
|
|
117
|
+
},
|
|
118
|
+
src: `${value.url}?theme=light`,
|
|
119
|
+
style: { width: "100%", height: "100%", border: "none" },
|
|
120
|
+
title: "Curriculum Video"
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
) })
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] });
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export {
|
|
134
|
+
TrainingInfoGuideline
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=chunk-OHSKOJ2Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/training-info-guideline.tsx"],"sourcesContent":["import React, { useState } 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 { Spinner } from '@/atoms/spinner';\nimport { Flex } from '../atoms/flex';\nimport { Typo } from '@/atoms';\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 <>\n {values.map((value) => (\n <TrainingInfoGuidelineItem\n key={getItemKey(value)}\n onClickFileDownload={onClickFileDownload}\n value={value}\n />\n ))}\n </>\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\n if (value.type === 'file') {\n return (\n <Button\n onClick={() => {\n onClickFileDownload({ url: value.url, filename: value.filename });\n }}\n style={{ height: '48px' }}\n variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"2\" width=\"100%\">\n <FileTextIcon />\n <Flex direction=\"column\" gap=\"1\">\n <Typo>{value.downloadButtonName}</Typo>\n <Typo variant=\"caption\">{value.filename}</Typo>\n </Flex>\n </Flex>\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\n height=\"100%\"\n maxHeight=\"500px\"\n maxWidth=\"800px\"\n title={value.videoTitle}\n width=\"100%\"\n >\n <AspectRatio ratio={16 / 9} style={{ width: '100%' }}>\n <Flex\n align=\"center\"\n justify=\"center\"\n style={{\n width: '100%',\n height: '100%',\n backgroundColor: 'black',\n position: 'relative',\n }}\n >\n {isLoading ? (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n position=\"absolute\"\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n color: 'white',\n }}\n width=\"100%\"\n >\n <Spinner size=\"3\" style={{ width: 48, height: 48 }} />\n </Flex>\n ) : null}\n\n <iframe\n allowFullScreen\n onError={() => {\n setIsLoading(false);\n }} // 필요시 에러 메시지로 대체\n onLoad={() => {\n setIsLoading(false);\n }}\n src={`${value.url}?theme=light`}\n style={{ width: '100%', height: '100%', border: 'none' }}\n title=\"Curriculum Video\"\n />\n </Flex>\n </AspectRatio>\n </Dialog.Content>\n </Dialog.Root>\n );\n }\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,gBAAgB;AAChC,SAAS,cAAc,iBAAiB;AAmBpC,mBAEI,KAuCE,YAzCN;AALG,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AACF,GAAmD;AACjD,SACE,gCACG,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;AAE/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,OAAO,EAAE,QAAQ,OAAO;AAAA,QACxB,SAAQ;AAAA,QAER,+BAAC,QAAK,OAAM,UAAS,KAAI,KAAI,OAAM,QACjC;AAAA,8BAAC,gBAAa;AAAA,UACd,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,gCAAC,QAAM,gBAAM,oBAAmB;AAAA,YAChC,oBAAC,QAAK,SAAQ,WAAW,gBAAM,UAAS;AAAA,aAC1C;AAAA,WACF;AAAA;AA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;AAAA;AAAA,UACF,GACF;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EAEJ;AACA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
start_review_default
|
|
3
|
+
} from "./chunk-UFKDKEI7.js";
|
|
4
|
+
import {
|
|
5
|
+
ReviewQuestion_default
|
|
6
|
+
} from "./chunk-Z6B4C5AB.js";
|
|
7
|
+
import {
|
|
8
|
+
complete_review_default
|
|
9
|
+
} from "./chunk-PYGTM7ML.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-OWJKGWFQ.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 C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+
TextField
|
|
6
|
+
} from "./chunk-6NPTJBFE.js";
|
|
7
|
+
import {
|
|
8
|
+
Select
|
|
9
|
+
} from "./chunk-X2GMDZ7M.js";
|
|
10
|
+
import {
|
|
11
|
+
RadioGroup
|
|
12
|
+
} from "./chunk-6DJOIRMF.js";
|
|
13
|
+
import {
|
|
14
|
+
CheckboxGroup
|
|
15
|
+
} from "./chunk-W7X7KSJP.js";
|
|
16
|
+
import {
|
|
17
|
+
Checkbox
|
|
18
|
+
} from "./chunk-VYCYVN3L.js";
|
|
19
|
+
import {
|
|
20
|
+
Flex
|
|
21
|
+
} from "./chunk-25HMMI7R.js";
|
|
22
|
+
import {
|
|
23
|
+
useDynamicForm
|
|
24
|
+
} from "./chunk-NCSMSA3X.js";
|
|
25
|
+
import {
|
|
26
|
+
Typo
|
|
27
|
+
} from "./chunk-PMJIFLDT.js";
|
|
28
|
+
import {
|
|
29
|
+
__spreadProps,
|
|
30
|
+
__spreadValues
|
|
31
|
+
} from "./chunk-CRTRMMJ7.js";
|
|
32
|
+
|
|
33
|
+
// src/molecules/dynamic-field.tsx
|
|
34
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
35
|
+
function DynamicFormField({
|
|
36
|
+
field
|
|
37
|
+
}) {
|
|
38
|
+
const {
|
|
39
|
+
getFieldValue,
|
|
40
|
+
getFieldError,
|
|
41
|
+
getFieldTouched,
|
|
42
|
+
setFieldValue,
|
|
43
|
+
handleChange,
|
|
44
|
+
handleBlur,
|
|
45
|
+
readonly
|
|
46
|
+
} = useDynamicForm();
|
|
47
|
+
const { name, type } = field;
|
|
48
|
+
const value = getFieldValue(name);
|
|
49
|
+
const error = getFieldError(name);
|
|
50
|
+
const touched = getFieldTouched(name);
|
|
51
|
+
const hasError = Boolean(error && touched);
|
|
52
|
+
const commonProps = {
|
|
53
|
+
name,
|
|
54
|
+
value: String(value || ""),
|
|
55
|
+
onChange: readonly ? void 0 : handleChange,
|
|
56
|
+
onBlur: readonly ? void 0 : handleBlur,
|
|
57
|
+
error: hasError,
|
|
58
|
+
disabled: readonly
|
|
59
|
+
};
|
|
60
|
+
switch (type) {
|
|
61
|
+
case "short_text":
|
|
62
|
+
case "email":
|
|
63
|
+
return /* @__PURE__ */ jsx(
|
|
64
|
+
TextField.Root,
|
|
65
|
+
__spreadProps(__spreadValues({}, commonProps), {
|
|
66
|
+
placeholder: field.placeholder,
|
|
67
|
+
type: type === "short_text" ? "text" : type
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
case "number":
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
TextField.Root,
|
|
73
|
+
__spreadProps(__spreadValues({}, commonProps), {
|
|
74
|
+
inputMode: "numeric",
|
|
75
|
+
pattern: "[0-9]*",
|
|
76
|
+
placeholder: field.placeholder,
|
|
77
|
+
type: "number"
|
|
78
|
+
})
|
|
79
|
+
);
|
|
80
|
+
case "long_text":
|
|
81
|
+
return /* @__PURE__ */ jsx(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
82
|
+
case "dropdown":
|
|
83
|
+
return /* @__PURE__ */ jsxs(
|
|
84
|
+
Select.Root,
|
|
85
|
+
{
|
|
86
|
+
disabled: readonly,
|
|
87
|
+
onValueChange: readonly ? void 0 : (newValue) => {
|
|
88
|
+
void setFieldValue(name, newValue);
|
|
89
|
+
},
|
|
90
|
+
value,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Select.Trigger, { placeholder: field.placeholder }),
|
|
93
|
+
/* @__PURE__ */ jsx(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ jsx(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
case "choice":
|
|
98
|
+
return /* @__PURE__ */ jsx(
|
|
99
|
+
RadioGroup.Root,
|
|
100
|
+
{
|
|
101
|
+
disabled: readonly,
|
|
102
|
+
onValueChange: readonly ? void 0 : (newValue) => {
|
|
103
|
+
void setFieldValue(name, newValue);
|
|
104
|
+
},
|
|
105
|
+
orientation: field.orientation,
|
|
106
|
+
value: String(value || ""),
|
|
107
|
+
children: field.options.map((option) => /* @__PURE__ */ jsx(RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
case "choices":
|
|
111
|
+
return /* @__PURE__ */ jsx(
|
|
112
|
+
CheckboxGroup.Root,
|
|
113
|
+
{
|
|
114
|
+
disabled: readonly,
|
|
115
|
+
onValueChange: readonly ? void 0 : (newValue) => {
|
|
116
|
+
void setFieldValue(name, newValue);
|
|
117
|
+
},
|
|
118
|
+
orientation: field.orientation,
|
|
119
|
+
value: Array.isArray(value) ? value.map(String) : [],
|
|
120
|
+
children: field.options.map((option) => /* @__PURE__ */ jsx(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
case "yes_no":
|
|
124
|
+
return /* @__PURE__ */ jsxs(Flex, { gap: "2", children: [
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
Checkbox,
|
|
127
|
+
{
|
|
128
|
+
checked: Boolean(value),
|
|
129
|
+
disabled: readonly,
|
|
130
|
+
onCheckedChange: readonly ? void 0 : (checked) => {
|
|
131
|
+
void setFieldValue(name, checked);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
field.description ? /* @__PURE__ */ jsx(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
136
|
+
] });
|
|
137
|
+
default:
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export {
|
|
143
|
+
DynamicFormField
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=chunk-P4ELC3C3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/dynamic-field.tsx"],"sourcesContent":["\nimport { Flex } from '@/atoms/flex';\nimport { Typo } from '@/atoms/typo';\nimport { useDynamicForm } from '../context/dynamic-form-context';\nimport { TextField } from '../atoms/text-field';\nimport { TextArea } from '../atoms/text-area';\nimport { Select } from '../atoms/select';\nimport { CheckboxGroup } from '../atoms/check-box-group';\nimport { RadioGroup } from '../atoms/radio-group';\nimport { Checkbox } from '../atoms/check-box';\nimport type { DynamicFormFieldSchema } from '../types/dynamic-form-schema-generated';\n\ninterface DynamicFormFieldRendererProps {\n field: DynamicFormFieldSchema;\n}\n\nexport function DynamicFormField({\n field,\n}: DynamicFormFieldRendererProps): React.ReactElement | null {\n const {\n getFieldValue,\n getFieldError,\n getFieldTouched,\n setFieldValue,\n handleChange,\n handleBlur,\n readonly,\n } = useDynamicForm();\n const { name, type } = field;\n\n const value = getFieldValue(name);\n const error = getFieldError(name);\n const touched = getFieldTouched(name);\n const hasError = Boolean(error && touched);\n\n const commonProps = {\n name,\n value: String(value || ''),\n onChange: readonly ? undefined : handleChange,\n onBlur: readonly ? undefined : handleBlur,\n error: hasError,\n disabled: readonly,\n };\n\n switch (type) {\n case 'short_text':\n case 'email':\n return (\n <TextField.Root \n {...commonProps} \n placeholder={field.placeholder}\n type={type === 'short_text' ? 'text' : type}\n />\n );\n case 'number':\n return (\n <TextField.Root\n {...commonProps}\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n placeholder={field.placeholder}\n type=\"number\"\n />\n );\n case 'long_text':\n return <TextArea rows={4} {...commonProps} placeholder={field.placeholder} />;\n\n case 'dropdown':\n return (\n <Select.Root\n disabled={readonly}\n onValueChange={readonly ? undefined : (newValue: string) => {\n void setFieldValue(name, newValue);\n }}\n value={value as string}\n >\n <Select.Trigger placeholder={field.placeholder} />\n <Select.Content>\n {field.options.map((option) => (\n <Select.Item key={option.value} value={String(option.value)}>\n {option.label}\n </Select.Item>\n ))}\n </Select.Content>\n </Select.Root>\n );\n\n case 'choice':\n return (\n <RadioGroup.Root\n disabled={readonly}\n onValueChange={readonly ? undefined : (newValue: string) => {\n void setFieldValue(name, newValue);\n }}\n orientation={field.orientation}\n value={String(value || '')}\n >\n {field.options.map((option) => (\n <RadioGroup.Item key={option.value} value={String(option.value)}>\n {option.label}\n </RadioGroup.Item>\n ))}\n </RadioGroup.Root>\n );\n\n case 'choices':\n return (\n <CheckboxGroup.Root\n disabled={readonly}\n onValueChange={readonly ? undefined : (newValue: string[]) => {\n void setFieldValue(name, newValue);\n }}\n orientation={field.orientation}\n value={Array.isArray(value) ? value.map(String) : []}\n >\n {field.options.map((option) => (\n <CheckboxGroup.Item key={option.value} value={String(option.value)}>\n {option.label}\n </CheckboxGroup.Item>\n ))}\n </CheckboxGroup.Root>\n );\n\n case 'yes_no':\n return (\n <Flex gap=\"2\">\n <Checkbox\n checked={Boolean(value)}\n disabled={readonly}\n onCheckedChange={readonly ? undefined : (checked: boolean) => {\n void setFieldValue(name, checked);\n }}\n />\n {field.description ? (\n <Typo color=\"gray\" variant=\"caption\">\n {field.description}\n </Typo>\n ) : null}\n </Flex>\n );\n\n default:\n return null;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDQ,cAqBA,YArBA;AAhCD,SAAS,iBAAiB;AAAA,EAC/B;AACF,GAA6D;AAC3D,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,eAAe;AACnB,QAAM,EAAE,MAAM,KAAK,IAAI;AAEvB,QAAM,QAAQ,cAAc,IAAI;AAChC,QAAM,QAAQ,cAAc,IAAI;AAChC,QAAM,UAAU,gBAAgB,IAAI;AACpC,QAAM,WAAW,QAAQ,SAAS,OAAO;AAEzC,QAAM,cAAc;AAAA,IAClB;AAAA,IACA,OAAO,OAAO,SAAS,EAAE;AAAA,IACzB,UAAU,WAAW,SAAY;AAAA,IACjC,QAAQ,WAAW,SAAY;AAAA,IAC/B,OAAO;AAAA,IACP,UAAU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