@tipp/ui 2.0.6 → 2.1.1
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 +505 -308
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +23 -18
- package/dist/app/platform/coach-question-list.cjs +231 -34
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +10 -5
- package/dist/app/platform/contents-card.cjs +259 -62
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +10 -5
- package/dist/app/platform/curriculum-card.cjs +213 -16
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +8 -3
- package/dist/app/platform/edit-coaching-time.cjs +275 -78
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +14 -9
- package/dist/app/platform/edit-service-type.cjs +268 -71
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +13 -8
- package/dist/app/platform/goal-manage-card-edit.cjs +277 -80
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +14 -9
- package/dist/app/platform/goal-manage-card-read.cjs +261 -64
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +10 -5
- package/dist/app/platform/on-offline-radio-card.cjs +261 -64
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +13 -8
- package/dist/app/platform/report-card.cjs +234 -37
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +10 -5
- package/dist/app/platform/reservation-card.cjs +303 -106
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +14 -9
- package/dist/app/platform/session-card.cjs +320 -123
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +15 -10
- package/dist/app/platform/session-review-simple-read.cjs +232 -35
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +10 -5
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +265 -68
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +11 -6
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +242 -45
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +10 -5
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +245 -48
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +10 -5
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +231 -34
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +10 -5
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +241 -44
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +10 -5
- package/dist/app/platform/userInfos/utils.cjs +233 -36
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +10 -5
- package/dist/atoms/index.cjs +256 -59
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +10 -5
- package/dist/atoms/pagination.cjs +210 -13
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +8 -3
- package/dist/atoms/toast.cjs +1 -1
- package/dist/atoms/toast.cjs.map +1 -1
- package/dist/atoms/toast.js +1 -1
- package/dist/chunk-26ZU5KUR.js +39 -0
- package/dist/chunk-26ZU5KUR.js.map +1 -0
- package/dist/chunk-3UJOUGH3.js +169 -0
- package/dist/chunk-3UJOUGH3.js.map +1 -0
- package/dist/chunk-4LUNQ3CA.js +1 -0
- package/dist/chunk-4YKESXWQ.js +68 -0
- package/dist/chunk-4YKESXWQ.js.map +1 -0
- package/dist/{chunk-KDEUSAQW.js → chunk-5QDXJKPG.js} +2 -2
- package/dist/{chunk-A2NYBAVH.js → chunk-6BCKUMXK.js} +11 -11
- package/dist/chunk-BFLGQQJZ.js +30 -0
- package/dist/chunk-BFLGQQJZ.js.map +1 -0
- package/dist/chunk-BUR6IEYN.js +54 -0
- package/dist/chunk-BUR6IEYN.js.map +1 -0
- package/dist/chunk-D3T4W2PT.js +96 -0
- package/dist/chunk-D3T4W2PT.js.map +1 -0
- package/dist/chunk-D6WG5BHL.js +39 -0
- package/dist/chunk-D6WG5BHL.js.map +1 -0
- package/dist/chunk-D7EHLF4N.js +63 -0
- package/dist/chunk-D7EHLF4N.js.map +1 -0
- package/dist/chunk-D7EYDD4E.js +52 -0
- package/dist/chunk-D7EYDD4E.js.map +1 -0
- package/dist/chunk-E5TUJ7QP.js +281 -0
- package/dist/chunk-E5TUJ7QP.js.map +1 -0
- package/dist/chunk-ECVAWQXV.js +54 -0
- package/dist/chunk-ECVAWQXV.js.map +1 -0
- package/dist/chunk-EHNRZEFC.js +145 -0
- package/dist/chunk-EHNRZEFC.js.map +1 -0
- package/dist/chunk-EJ3JNXLY.js +99 -0
- package/dist/chunk-EJ3JNXLY.js.map +1 -0
- package/dist/chunk-ERRML4CH.js +190 -0
- package/dist/chunk-ERRML4CH.js.map +1 -0
- package/dist/chunk-F5MKSWHL.js +163 -0
- package/dist/chunk-F5MKSWHL.js.map +1 -0
- package/dist/chunk-IVB77FRN.js +52 -0
- package/dist/chunk-IVB77FRN.js.map +1 -0
- package/dist/{chunk-JPZNEPCW.js → chunk-JKJCI4MU.js} +5 -5
- package/dist/chunk-JMS4TRIK.js +64 -0
- package/dist/chunk-JMS4TRIK.js.map +1 -0
- package/dist/chunk-K25BYIJ7.js +42 -0
- package/dist/chunk-K25BYIJ7.js.map +1 -0
- package/dist/chunk-KXEHA6WD.js +63 -0
- package/dist/chunk-KXEHA6WD.js.map +1 -0
- package/dist/chunk-MOJBAKSR.js +144 -0
- package/dist/chunk-MOJBAKSR.js.map +1 -0
- package/dist/chunk-NNPT6BV4.js +117 -0
- package/dist/chunk-NNPT6BV4.js.map +1 -0
- package/dist/chunk-OPYRUOKP.js +145 -0
- package/dist/chunk-OPYRUOKP.js.map +1 -0
- package/dist/{chunk-TF3Q4TQM.js → chunk-QAHOUIRL.js} +2 -2
- package/dist/{chunk-ECLZ3IGO.js → chunk-QD5ZSFPG.js} +1 -1
- package/dist/chunk-QD5ZSFPG.js.map +1 -0
- package/dist/chunk-QJ5OFLUS.js +144 -0
- package/dist/chunk-QJ5OFLUS.js.map +1 -0
- package/dist/chunk-RIGG6NNZ.js +74 -0
- package/dist/chunk-RIGG6NNZ.js.map +1 -0
- package/dist/chunk-S52LOF3I.js +354 -0
- package/dist/chunk-S52LOF3I.js.map +1 -0
- package/dist/chunk-S57U6FZO.js +42 -0
- package/dist/chunk-S57U6FZO.js.map +1 -0
- package/dist/chunk-T2ORCMNM.js +145 -0
- package/dist/chunk-T2ORCMNM.js.map +1 -0
- package/dist/chunk-TTBHLLMV.js +281 -0
- package/dist/chunk-TTBHLLMV.js.map +1 -0
- package/dist/chunk-UQN63IRS.js +54 -0
- package/dist/chunk-UQN63IRS.js.map +1 -0
- package/dist/chunk-VO7TWLMN.js +144 -0
- package/dist/chunk-VO7TWLMN.js.map +1 -0
- package/dist/chunk-VPSEKCUO.js +281 -0
- package/dist/chunk-VPSEKCUO.js.map +1 -0
- package/dist/chunk-VY56ZADJ.js +1 -0
- package/dist/chunk-VY56ZADJ.js.map +1 -0
- package/dist/chunk-X2Q6QPMS.js +165 -0
- package/dist/chunk-X2Q6QPMS.js.map +1 -0
- package/dist/chunk-XSX6K7SK.js +45 -0
- package/dist/chunk-XSX6K7SK.js.map +1 -0
- package/dist/chunk-YAKBC4L7.js +45 -0
- package/dist/chunk-YAKBC4L7.js.map +1 -0
- package/dist/chunk-Z6DWN5OD.js +174 -0
- package/dist/chunk-Z6DWN5OD.js.map +1 -0
- package/dist/icon.cjs +207 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +5 -0
- package/dist/icon.d.ts +5 -0
- package/dist/icon.js +25 -5
- package/dist/icons/circle-check.cjs +102 -0
- package/dist/icons/circle-check.cjs.map +1 -0
- package/dist/icons/circle-check.d.cts +6 -0
- package/dist/icons/circle-check.d.ts +6 -0
- package/dist/icons/circle-check.js +8 -0
- package/dist/icons/circle-check.js.map +1 -0
- package/dist/icons/circle-pencil.cjs +111 -0
- package/dist/icons/circle-pencil.cjs.map +1 -0
- package/dist/icons/circle-pencil.d.cts +6 -0
- package/dist/icons/circle-pencil.d.ts +6 -0
- package/dist/icons/circle-pencil.js +8 -0
- package/dist/icons/circle-pencil.js.map +1 -0
- package/dist/icons/circle-play.cjs +99 -0
- package/dist/icons/circle-play.cjs.map +1 -0
- package/dist/icons/circle-play.d.cts +6 -0
- package/dist/icons/circle-play.d.ts +6 -0
- package/dist/icons/circle-play.js +8 -0
- package/dist/icons/circle-play.js.map +1 -0
- package/dist/icons/circle-quote.cjs +111 -0
- package/dist/icons/circle-quote.cjs.map +1 -0
- package/dist/icons/circle-quote.d.cts +6 -0
- package/dist/icons/circle-quote.d.ts +6 -0
- package/dist/icons/circle-quote.js +8 -0
- package/dist/icons/circle-quote.js.map +1 -0
- package/dist/icons/circle-satisfaction.cjs +109 -0
- package/dist/icons/circle-satisfaction.cjs.map +1 -0
- package/dist/icons/circle-satisfaction.d.cts +6 -0
- package/dist/icons/circle-satisfaction.d.ts +6 -0
- package/dist/icons/circle-satisfaction.js +8 -0
- package/dist/icons/circle-satisfaction.js.map +1 -0
- package/dist/icons/circle_check.cjs +102 -0
- package/dist/icons/circle_check.cjs.map +1 -0
- package/dist/icons/circle_check.d.cts +6 -0
- package/dist/icons/circle_check.d.ts +6 -0
- package/dist/icons/circle_check.js +8 -0
- package/dist/icons/circle_check.js.map +1 -0
- package/dist/icons/circle_pencil.cjs +111 -0
- package/dist/icons/circle_pencil.cjs.map +1 -0
- package/dist/icons/circle_pencil.d.cts +6 -0
- package/dist/icons/circle_pencil.d.ts +6 -0
- package/dist/icons/circle_pencil.js +8 -0
- package/dist/icons/circle_pencil.js.map +1 -0
- package/dist/icons/circle_play.cjs +99 -0
- package/dist/icons/circle_play.cjs.map +1 -0
- package/dist/icons/circle_play.d.cts +6 -0
- package/dist/icons/circle_play.d.ts +6 -0
- package/dist/icons/circle_play.js +8 -0
- package/dist/icons/circle_play.js.map +1 -0
- package/dist/icons/circle_quote.cjs +111 -0
- package/dist/icons/circle_quote.cjs.map +1 -0
- package/dist/icons/circle_quote.d.cts +6 -0
- package/dist/icons/circle_quote.d.ts +6 -0
- package/dist/icons/circle_quote.js +53 -0
- package/dist/icons/circle_quote.js.map +1 -0
- package/dist/icons/circle_satisfaction.cjs +109 -0
- package/dist/icons/circle_satisfaction.cjs.map +1 -0
- package/dist/icons/circle_satisfaction.d.cts +6 -0
- package/dist/icons/circle_satisfaction.d.ts +6 -0
- package/dist/icons/circle_satisfaction.js +8 -0
- package/dist/icons/circle_satisfaction.js.map +1 -0
- package/dist/icons/index.cjs +207 -0
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.d.cts +5 -0
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/index.js +25 -5
- package/dist/index.cjs +654 -447
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +49 -29
- package/dist/molecules/date-picker/date-picker-button.cjs +239 -42
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +12 -7
- package/dist/molecules/date-picker/index.cjs +209 -12
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +9 -4
- package/dist/molecules/expand-table/index.cjs +255 -58
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +10 -5
- package/dist/molecules/expand-table/row.cjs +231 -34
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +10 -5
- package/dist/molecules/form/form.cjs.map +1 -1
- package/dist/molecules/form/form.d.cts +11 -11
- package/dist/molecules/form/form.d.ts +11 -11
- package/dist/molecules/form/form.js +1 -1
- package/dist/molecules/form/index.cjs.map +1 -1
- package/dist/molecules/form/index.d.cts +1 -1
- package/dist/molecules/form/index.d.ts +1 -1
- package/dist/molecules/form/index.js +1 -1
- package/dist/molecules/index.cjs +379 -182
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +17 -12
- package/dist/molecules/navigation.cjs +231 -34
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +10 -5
- package/dist/molecules/radio-button-card.cjs +229 -32
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +10 -5
- package/dist/molecules/stepper.cjs +217 -20
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +8 -3
- package/dist/molecules/tag-selector.cjs +271 -74
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +10 -5
- package/dist/molecules/time-select.cjs +230 -33
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +11 -6
- package/dist/utils/index.js +3 -3
- package/package.json +14 -5
- package/src/atoms/toast.tsx +1 -2
- package/src/icons/circle-check.tsx +29 -0
- package/src/icons/circle-pencil.tsx +35 -0
- package/src/icons/circle-play.tsx +26 -0
- package/src/icons/circle-quote.tsx +35 -0
- package/src/icons/circle-satisfaction.tsx +33 -0
- package/src/icons/index.ts +5 -0
- package/src/molecules/date-picker/index.tsx +0 -2
- package/src/molecules/form/form.tsx +1 -1
- package/dist/chunk-7WVKYXIG.js +0 -1
- package/dist/chunk-ECLZ3IGO.js.map +0 -1
- /package/dist/{chunk-7WVKYXIG.js.map → chunk-4LUNQ3CA.js.map} +0 -0
- /package/dist/{chunk-KDEUSAQW.js.map → chunk-5QDXJKPG.js.map} +0 -0
- /package/dist/{chunk-A2NYBAVH.js.map → chunk-6BCKUMXK.js.map} +0 -0
- /package/dist/{chunk-JPZNEPCW.js.map → chunk-JKJCI4MU.js.map} +0 -0
- /package/dist/{chunk-TF3Q4TQM.js.map → chunk-QAHOUIRL.js.map} +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Grid
|
|
3
|
+
} from "./chunk-EGEQY3KT.js";
|
|
4
|
+
import {
|
|
5
|
+
Heading
|
|
6
|
+
} from "./chunk-3IT3NVK6.js";
|
|
7
|
+
import {
|
|
8
|
+
Separator
|
|
9
|
+
} from "./chunk-HYITAA4J.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-LH57PIY2.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
import {
|
|
20
|
+
ArrowRightIcon,
|
|
21
|
+
TimerIcon
|
|
22
|
+
} from "./chunk-HLFG5ZTU.js";
|
|
23
|
+
import {
|
|
24
|
+
Badge
|
|
25
|
+
} from "./chunk-FCIHNIOH.js";
|
|
26
|
+
|
|
27
|
+
// src/app/platform/curriculum-card.tsx
|
|
28
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
+
function CurriculumCard(props) {
|
|
30
|
+
const {
|
|
31
|
+
title,
|
|
32
|
+
imgTitle,
|
|
33
|
+
imgSrc,
|
|
34
|
+
description,
|
|
35
|
+
runningTime,
|
|
36
|
+
bgColor,
|
|
37
|
+
onClick
|
|
38
|
+
} = props;
|
|
39
|
+
return /* @__PURE__ */ jsxs(
|
|
40
|
+
Grid,
|
|
41
|
+
{
|
|
42
|
+
columns: { initial: "1", sm: "275px 1fr" },
|
|
43
|
+
gapX: "5",
|
|
44
|
+
gapY: "2",
|
|
45
|
+
onClick,
|
|
46
|
+
style: { cursor: "pointer" },
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
49
|
+
Box,
|
|
50
|
+
{
|
|
51
|
+
height: "165px",
|
|
52
|
+
p: "3",
|
|
53
|
+
style: {
|
|
54
|
+
backgroundImage: `url(${imgSrc})`,
|
|
55
|
+
backgroundColor: bgColor,
|
|
56
|
+
backgroundPositionX: "right",
|
|
57
|
+
backgroundPositionY: "bottom",
|
|
58
|
+
backgroundRepeat: "no-repeat",
|
|
59
|
+
backgroundSize: "contain",
|
|
60
|
+
backgroundAttachment: "local"
|
|
61
|
+
},
|
|
62
|
+
width: "100%",
|
|
63
|
+
children: /* @__PURE__ */ jsx(Heading, { style: { whiteSpace: "break-spaces" }, variant: "heading3", children: imgTitle })
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
|
|
67
|
+
/* @__PURE__ */ jsxs(Grid, { columns: { initial: "1", xs: "1fr auto" }, gapY: "3", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: title }),
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
Badge,
|
|
71
|
+
{
|
|
72
|
+
size: "medium",
|
|
73
|
+
style: { justifySelf: "flex-start" },
|
|
74
|
+
variant: "outline",
|
|
75
|
+
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "1", children: [
|
|
76
|
+
/* @__PURE__ */ jsx(TimerIcon, {}),
|
|
77
|
+
runningTime
|
|
78
|
+
] })
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ jsx(Box, { style: { marginBottom: "auto" }, children: /* @__PURE__ */ jsx("ul", { style: { margin: 0, paddingLeft: 20 }, children: description == null ? void 0 : description.map((el) => {
|
|
83
|
+
return /* @__PURE__ */ jsx("li", { style: { marginBottom: 8 }, children: /* @__PURE__ */ jsx(Heading, { truncate: true, variant: "heading5", weight: "regular", children: el }) }, el);
|
|
84
|
+
}) }) }),
|
|
85
|
+
/* @__PURE__ */ jsx(Separator, { size: "4" }),
|
|
86
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", justify: "end", children: [
|
|
87
|
+
/* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uAC15\uC758 \uB4E3\uACE0 \uCF54\uCE58\uB2D8\uACFC \uBB34\uC81C\uD55C Q&A" }),
|
|
88
|
+
/* @__PURE__ */ jsx(ArrowRightIcon, { color: "gray" })
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
CurriculumCard
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=chunk-EJ3JNXLY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/curriculum-card.tsx"],"sourcesContent":["import React from 'react';\nimport { Badge } from '@/atoms/badge';\nimport { Box } from '@/atoms/box';\nimport { Grid } from '@/atoms/grid';\nimport { Heading } from '@/atoms/heading';\nimport { Typo } from '@/atoms/typo';\nimport { Separator } from '@/atoms/separator';\nimport { Flex } from '@/atoms/flex';\nimport { ArrowRightIcon, TimerIcon } from '@/icon';\n\nexport interface CurriculumCardProps {\n title?: string;\n imgTitle?: string;\n imgSrc?: string;\n description?: string[];\n runningTime?: string;\n bgColor?: string;\n onClick?: () => void;\n}\n\nexport function CurriculumCard(props: CurriculumCardProps): React.ReactNode {\n const {\n title,\n imgTitle,\n imgSrc,\n description,\n runningTime,\n bgColor,\n onClick,\n } = props;\n return (\n <Grid\n columns={{ initial: '1', sm: '275px 1fr' }}\n gapX=\"5\"\n gapY=\"2\"\n onClick={onClick}\n style={{ cursor: 'pointer' }}\n >\n {/* 섬네일 */}\n <Box\n height=\"165px\"\n p=\"3\"\n style={{\n backgroundImage: `url(${imgSrc})`,\n backgroundColor: bgColor,\n backgroundPositionX: 'right',\n backgroundPositionY: 'bottom',\n backgroundRepeat: 'no-repeat',\n backgroundSize: 'contain',\n backgroundAttachment: 'local',\n }}\n width=\"100%\"\n >\n <Heading style={{ whiteSpace: 'break-spaces' }} variant=\"heading3\">\n {imgTitle}\n </Heading>\n </Box>\n {/* 텍스트 */}\n <Flex direction=\"column\" gap=\"3\">\n {/* 제목 */}\n <Grid columns={{ initial: '1', xs: '1fr auto' }} gapY=\"3\">\n <Heading variant=\"heading4\">{title}</Heading>\n <Badge\n size=\"medium\"\n style={{ justifySelf: 'flex-start' }}\n variant=\"outline\"\n >\n <Flex align=\"center\" gap=\"1\">\n <TimerIcon />\n {runningTime}\n </Flex>\n </Badge>\n </Grid>\n {/* 설명 */}\n <Box style={{ marginBottom: 'auto' }}>\n <ul style={{ margin: 0, paddingLeft: 20 }}>\n {description?.map((el) => {\n return (\n <li key={el} style={{ marginBottom: 8 }}>\n <Heading truncate variant=\"heading5\" weight=\"regular\">\n {el}\n </Heading>\n </li>\n );\n })}\n </ul>\n </Box>\n <Separator size=\"4\" />\n <Flex align=\"center\" gap=\"2\" justify=\"end\">\n <Typo color=\"gray\">강의 듣고 코치님과 무제한 Q&A</Typo>\n <ArrowRightIcon color=\"gray\" />\n </Flex>\n </Flex>\n </Grid>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDQ,cAcI,YAdJ;AAjCD,SAAS,eAAe,OAA6C;AAC1E,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,EAAE,SAAS,KAAK,IAAI,YAAY;AAAA,MACzC,MAAK;AAAA,MACL,M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AA,YACrC,oBAAC,kBAAe,OAAM,QAAO;AAAA,aAC/B;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Row
|
|
3
|
+
} from "./chunk-WDUSQ6HR.js";
|
|
4
|
+
import {
|
|
5
|
+
Spinner
|
|
6
|
+
} from "./chunk-FR2GDOU2.js";
|
|
7
|
+
import {
|
|
8
|
+
Pagination
|
|
9
|
+
} from "./chunk-K2BK4S2S.js";
|
|
10
|
+
import {
|
|
11
|
+
Typo
|
|
12
|
+
} from "./chunk-LH57PIY2.js";
|
|
13
|
+
import {
|
|
14
|
+
Flex
|
|
15
|
+
} from "./chunk-25HMMI7R.js";
|
|
16
|
+
import {
|
|
17
|
+
TriangleArrowDownIcon
|
|
18
|
+
} from "./chunk-2TPQQBUQ.js";
|
|
19
|
+
import {
|
|
20
|
+
TriangleArrowUpIcon
|
|
21
|
+
} from "./chunk-PVL7SJYR.js";
|
|
22
|
+
|
|
23
|
+
// src/molecules/expand-table/index.tsx
|
|
24
|
+
import {
|
|
25
|
+
flexRender,
|
|
26
|
+
getCoreRowModel,
|
|
27
|
+
useReactTable,
|
|
28
|
+
getSortedRowModel,
|
|
29
|
+
createColumnHelper,
|
|
30
|
+
getPaginationRowModel
|
|
31
|
+
} from "@tanstack/react-table";
|
|
32
|
+
import { useCallback, useMemo, useState } from "react";
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
function ExpandTable(props) {
|
|
35
|
+
const {
|
|
36
|
+
data,
|
|
37
|
+
columns,
|
|
38
|
+
ExpandComp,
|
|
39
|
+
placeholder,
|
|
40
|
+
onRowClick,
|
|
41
|
+
tableStyle,
|
|
42
|
+
showPagination = true,
|
|
43
|
+
isLoading,
|
|
44
|
+
pageIndex = 0,
|
|
45
|
+
pageSize = 10,
|
|
46
|
+
siblingCount = 2,
|
|
47
|
+
getRowStyle,
|
|
48
|
+
getCellStyle
|
|
49
|
+
} = props;
|
|
50
|
+
const defaultAlign = "left";
|
|
51
|
+
const [pagination, setPagination] = useState({
|
|
52
|
+
pageIndex: pageIndex || 0,
|
|
53
|
+
pageSize: pageSize || 9999
|
|
54
|
+
});
|
|
55
|
+
const [sorting, setSorting] = useState([]);
|
|
56
|
+
const { getRowModel, getHeaderGroups, setPageIndex } = useReactTable({
|
|
57
|
+
data: data || [],
|
|
58
|
+
columns,
|
|
59
|
+
getCoreRowModel: getCoreRowModel(),
|
|
60
|
+
getSortedRowModel: getSortedRowModel(),
|
|
61
|
+
state: {
|
|
62
|
+
sorting,
|
|
63
|
+
pagination
|
|
64
|
+
},
|
|
65
|
+
onSortingChange: setSorting,
|
|
66
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
67
|
+
onPaginationChange: setPagination
|
|
68
|
+
});
|
|
69
|
+
const gridTemplateColumns = useMemo(() => {
|
|
70
|
+
return columns.map((col) => {
|
|
71
|
+
var _a;
|
|
72
|
+
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return "1fr";
|
|
73
|
+
return `${col.size || 150}px`;
|
|
74
|
+
}).join(" ");
|
|
75
|
+
}, [columns]);
|
|
76
|
+
const rowModels = getRowModel();
|
|
77
|
+
const onChangePagination = useCallback(
|
|
78
|
+
(page) => {
|
|
79
|
+
setPageIndex(page - 1);
|
|
80
|
+
},
|
|
81
|
+
[setPageIndex]
|
|
82
|
+
);
|
|
83
|
+
const helpCompRender = useCallback(
|
|
84
|
+
(rowLength) => {
|
|
85
|
+
if (isLoading) {
|
|
86
|
+
return /* @__PURE__ */ jsx(
|
|
87
|
+
Flex,
|
|
88
|
+
{
|
|
89
|
+
align: "center",
|
|
90
|
+
height: "100%",
|
|
91
|
+
justify: "center",
|
|
92
|
+
p: "5",
|
|
93
|
+
width: "100%",
|
|
94
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
if (rowLength === 0) {
|
|
99
|
+
return /* @__PURE__ */ jsx("div", { className: "tr", children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ jsx(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
},
|
|
103
|
+
[isLoading, placeholder]
|
|
104
|
+
);
|
|
105
|
+
const pageCount = useMemo(() => {
|
|
106
|
+
if (!data) return 0;
|
|
107
|
+
return Math.ceil(data.length / pageSize);
|
|
108
|
+
}, [data, pageSize]);
|
|
109
|
+
return /* @__PURE__ */ jsxs("div", { className: "expand-table", style: tableStyle, children: [
|
|
110
|
+
/* @__PURE__ */ jsx("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
className: "tr",
|
|
114
|
+
style: { gridTemplateColumns },
|
|
115
|
+
children: headerGroup.headers.map((header) => {
|
|
116
|
+
var _a;
|
|
117
|
+
const sortable = header.column.getCanSort();
|
|
118
|
+
const sortedState = header.column.getIsSorted();
|
|
119
|
+
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
120
|
+
return /* @__PURE__ */ jsx("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ jsxs(
|
|
121
|
+
"button",
|
|
122
|
+
{
|
|
123
|
+
onClick: header.column.getToggleSortingHandler(),
|
|
124
|
+
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
125
|
+
type: "button",
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ jsx(Typo, { as: "div", variant: "body", children: flexRender(
|
|
128
|
+
header.column.columnDef.header,
|
|
129
|
+
header.getContext()
|
|
130
|
+
) }),
|
|
131
|
+
sortable ? /* @__PURE__ */ jsxs(
|
|
132
|
+
Flex,
|
|
133
|
+
{
|
|
134
|
+
direction: "column",
|
|
135
|
+
style: { marginLeft: "var(--space-2)" },
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ jsx(
|
|
138
|
+
TriangleArrowUpIcon,
|
|
139
|
+
{
|
|
140
|
+
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ jsx(
|
|
144
|
+
TriangleArrowDownIcon,
|
|
145
|
+
{
|
|
146
|
+
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
) : null
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
) }, header.id);
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
headerGroup.id
|
|
158
|
+
)) }),
|
|
159
|
+
/* @__PURE__ */ jsx("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
160
|
+
return /* @__PURE__ */ jsx(
|
|
161
|
+
Row,
|
|
162
|
+
{
|
|
163
|
+
ExpandComp,
|
|
164
|
+
defaultAlign,
|
|
165
|
+
getCellStyle,
|
|
166
|
+
getRowStyle,
|
|
167
|
+
gridTemplateColumns,
|
|
168
|
+
onRowClick,
|
|
169
|
+
row
|
|
170
|
+
},
|
|
171
|
+
`row_${row.id}`
|
|
172
|
+
);
|
|
173
|
+
}) }),
|
|
174
|
+
showPagination ? /* @__PURE__ */ jsx(Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ jsx(
|
|
175
|
+
Pagination,
|
|
176
|
+
{
|
|
177
|
+
count: pageCount,
|
|
178
|
+
onChange: onChangePagination,
|
|
179
|
+
page: pagination.pageIndex + 1,
|
|
180
|
+
siblingCount
|
|
181
|
+
}
|
|
182
|
+
) }) : null
|
|
183
|
+
] });
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export {
|
|
187
|
+
createColumnHelper,
|
|
188
|
+
ExpandTable
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=chunk-ERRML4CH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/expand-table/index.tsx"],"sourcesContent":["import type {\n ColumnDef,\n SortingState,\n RowData,\n Row as RowType,\n PaginationState,\n} from '@tanstack/react-table';\nimport type { CSSProperties } from 'react';\nimport {\n flexRender,\n getCoreRowModel,\n useReactTable,\n getSortedRowModel,\n createColumnHelper,\n getPaginationRowModel,\n} from '@tanstack/react-table';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { Flex, Pagination, Spinner, Typo } from '../../atoms';\nimport { TriangleArrowDownIcon } from '../../icons/down';\nimport { TriangleArrowUpIcon } from '../../icons/up';\nimport { Row, type ExpandComp, type OnRowClick } from './row';\n\nexport type { ExpandComp, OnRowClick, ColumnDef, RowType as Row };\nexport { createColumnHelper };\n\nexport interface ExpandTableProps<Datum extends RowData> {\n /** 렌더할 데이터 배열 */\n data?: Datum[];\n /** 테이블 컬럼의 메타 데이터 */\n columns: ColumnDef<Datum>[];\n /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */\n ExpandComp?: ExpandComp<Datum>;\n /** 데이테가 없을 시 화면에 표시할 컴포넌트 */\n placeholder?: React.ReactNode;\n /** 행 클릭 시 실행할 콜백 */\n onRowClick?: OnRowClick<Datum>;\n getRowStyle?: (data: Datum) => CSSProperties;\n getCellStyle?: (data: Datum) => CSSProperties;\n tableStyle?: CSSProperties;\n isLoading?: boolean;\n\n /** pagination - 표시 유무, 기본값 true */\n showPagination?: boolean;\n /** pagination - 현재 선택된 페이지, 0부터 시작 */\n pageIndex?: number;\n /** pagination - 한 페이지에 표시될 컬럼 개수, 기본값 10 */\n pageSize?: number;\n /** pagination - */\n siblingCount?: number;\n}\n\nexport function ExpandTable<Datum extends RowData>(\n props: ExpandTableProps<Datum>\n): React.ReactNode {\n const {\n data,\n columns,\n ExpandComp,\n placeholder,\n onRowClick,\n tableStyle,\n showPagination = true,\n isLoading,\n pageIndex = 0,\n pageSize = 10,\n siblingCount = 2,\n getRowStyle,\n getCellStyle,\n } = props;\n const defaultAlign = 'left';\n const [pagination, setPagination] = useState<PaginationState>({\n pageIndex: pageIndex || 0,\n pageSize: pageSize || 9999,\n });\n\n const [sorting, setSorting] = useState<SortingState>([]);\n const { getRowModel, getHeaderGroups, setPageIndex } = useReactTable({\n data: data || [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n pagination,\n },\n onSortingChange: setSorting,\n getPaginationRowModel: getPaginationRowModel(),\n onPaginationChange: setPagination,\n });\n\n const gridTemplateColumns = useMemo<string>(() => {\n return columns\n .map((col) => {\n if (col.meta?.autoSize) return '1fr';\n return `${col.size || 150}px`;\n })\n .join(' ');\n }, [columns]);\n\n const rowModels = getRowModel();\n\n const onChangePagination = useCallback(\n (page: number) => {\n setPageIndex(page - 1);\n },\n [setPageIndex]\n );\n\n const helpCompRender = useCallback(\n (rowLength: number) => {\n if (isLoading) {\n return (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n p=\"5\"\n width=\"100%\"\n >\n <Spinner />\n </Flex>\n );\n }\n if (rowLength === 0) {\n return (\n <div className=\"tr\" key=\"expand_placeholder\">\n <Flex align=\"center\" justify=\"center\">\n {placeholder || (\n <Typo color=\"gray\" mb=\"6\" mt=\"6\" variant=\"body\">\n 데이터가 없습니다\n </Typo>\n )}\n </Flex>\n </div>\n );\n }\n return null;\n },\n [isLoading, placeholder]\n );\n\n const pageCount = useMemo(() => {\n if (!data) return 0;\n return Math.ceil(data.length / pageSize);\n }, [data, pageSize]);\n\n return (\n <div className=\"expand-table\" style={tableStyle}>\n <div className=\"thead\">\n {getHeaderGroups().map((headerGroup) => (\n <div\n className=\"tr\"\n key={headerGroup.id}\n style={{ gridTemplateColumns }}\n >\n {headerGroup.headers.map((header) => {\n const sortable = header.column.getCanSort();\n const sortedState = header.column.getIsSorted();\n const justifyContent =\n header.column.columnDef.meta?.align || defaultAlign;\n\n return (\n <div className={`${justifyContent} th`} key={header.id}>\n <button\n onClick={header.column.getToggleSortingHandler()}\n style={\n sortable ? { cursor: 'pointer' } : { cursor: 'default' }\n }\n type=\"button\"\n >\n <Typo as=\"div\" variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n {sortable ? (\n <Flex\n direction=\"column\"\n style={{ marginLeft: 'var(--space-2)' }}\n >\n <TriangleArrowUpIcon\n color={\n sortedState === 'asc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n <TriangleArrowDownIcon\n color={\n sortedState === 'desc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n </Flex>\n ) : null}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n <div className=\"tbody\">\n {/* 조건에 따라 placeholder 또는 loading 렌더*/}\n {helpCompRender(rowModels.rows.length) ||\n rowModels.rows.map((row) => {\n return (\n <Row\n ExpandComp={ExpandComp}\n defaultAlign={defaultAlign}\n getCellStyle={getCellStyle}\n getRowStyle={getRowStyle}\n gridTemplateColumns={gridTemplateColumns}\n key={`row_${row.id}`}\n onRowClick={onRowClick}\n row={row}\n />\n );\n })}\n </div>\n\n {showPagination ? (\n <Flex justify=\"end\" pt=\"3\" width=\"100%\">\n <Pagination\n count={pageCount}\n onChange={onChangePagination}\n page={pagination.pageIndex + 1}\n siblingCount={siblingCount}\n />\n </Flex>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,aAAa,SAAS,gBAAgB;AAuG1C,cA0DU,YA1DV;AApEL,SAAS,YACd,OACiB;AACjB,QAAM;AAAA,IACJ;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,iBAAiB;AAAA,oBAEtC;AAAA;AAAA,wBAAC;AAAA;AAAA,0BACC,OACE,gBAAgB,QACZ,mBACA;AAAA;AAAA,sBAER;AAAA,sBACA;AAAA,wBAAC;AAAA;AAAA,0BACC,OACE,gBAAgB,SACZ,mBACA;AAAA;AAAA,sBAER;AAAA;AAAA;AAAA,gBACF,IACE;AAAA;AAAA;AAAA,UACN,KAnC2C,OAAO,EAoCpD;AAAA,QAEJ,CAAC;AAAA;AAAA,MAhDI,YAAY;AAAA,IAiDnB,CACD,GACH;AAAA,IACA,oBAAC,SAAI,WAAU,SAEZ,yBAAe,UAAU,KAAK,MAAM,KACnC,UAAU,KAAK,IAAI,CAAC,QAAQ;AAC1B,aACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UAEA;AAAA,UACA;AAAA;AAAA,QAFK,OAAO,IAAI,EAAE;AAAA,MAGpB;AAAA,IAEJ,CAAC,GACL;AAAA,IAEC,iBACC,oBAAC,QAAK,SAAQ,OAAM,IAAG,KAAI,OAAM,QAC/B;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,UAAU;AAAA,QACV,MAAM,WAAW,YAAY;AAAA,QAC7B;AAAA;AAAA,IACF,GACF,IACE;AAAA,KACN;AAEJ;","names":[]}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ThemeProvider
|
|
3
|
+
} from "./chunk-RX5DC5KO.js";
|
|
4
|
+
import {
|
|
5
|
+
Grid
|
|
6
|
+
} from "./chunk-EGEQY3KT.js";
|
|
7
|
+
import {
|
|
8
|
+
Heading
|
|
9
|
+
} from "./chunk-3IT3NVK6.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-LH57PIY2.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
import {
|
|
20
|
+
Button
|
|
21
|
+
} from "./chunk-AFPH32MF.js";
|
|
22
|
+
import {
|
|
23
|
+
AspectRatio
|
|
24
|
+
} from "./chunk-EAXUQEO5.js";
|
|
25
|
+
import {
|
|
26
|
+
Badge
|
|
27
|
+
} from "./chunk-FCIHNIOH.js";
|
|
28
|
+
import {
|
|
29
|
+
__spreadProps,
|
|
30
|
+
__spreadValues
|
|
31
|
+
} from "./chunk-2NMEKWO5.js";
|
|
32
|
+
|
|
33
|
+
// src/molecules/learning-post.tsx
|
|
34
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
35
|
+
function LearningPost(props) {
|
|
36
|
+
const {
|
|
37
|
+
defaultThemeProps,
|
|
38
|
+
html,
|
|
39
|
+
tags,
|
|
40
|
+
title,
|
|
41
|
+
metaDescription,
|
|
42
|
+
imageComp,
|
|
43
|
+
onPageBack,
|
|
44
|
+
children
|
|
45
|
+
} = props;
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
ThemeProvider,
|
|
48
|
+
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
49
|
+
accentColor: "iris",
|
|
50
|
+
scaling: "110%",
|
|
51
|
+
style: {},
|
|
52
|
+
children: html ? /* @__PURE__ */ jsxs(
|
|
53
|
+
Grid,
|
|
54
|
+
{
|
|
55
|
+
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
56
|
+
gap: { initial: "2", md: "5" },
|
|
57
|
+
height: "100%",
|
|
58
|
+
justify: "center",
|
|
59
|
+
pb: "160px",
|
|
60
|
+
position: "relative",
|
|
61
|
+
px: "4",
|
|
62
|
+
width: "100%",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx("div", {}),
|
|
65
|
+
/* @__PURE__ */ jsxs(
|
|
66
|
+
Flex,
|
|
67
|
+
{
|
|
68
|
+
align: "center",
|
|
69
|
+
direction: "column",
|
|
70
|
+
maxWidth: "880px",
|
|
71
|
+
mt: { initial: "3", md: "8" },
|
|
72
|
+
overflow: "hidden",
|
|
73
|
+
width: "100%",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsxs(Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs(
|
|
77
|
+
Grid,
|
|
78
|
+
{
|
|
79
|
+
gap: "3",
|
|
80
|
+
mb: { initial: "4", sm: "0" },
|
|
81
|
+
style: { alignSelf: "flex-start" },
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
Heading,
|
|
85
|
+
{
|
|
86
|
+
style: {
|
|
87
|
+
fontSize: "2.4rem",
|
|
88
|
+
lineHeight: 1.25,
|
|
89
|
+
wordBreak: "keep-all"
|
|
90
|
+
},
|
|
91
|
+
variant: "heading1",
|
|
92
|
+
children: title
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ jsx(Typo, { children: metaDescription }),
|
|
96
|
+
/* @__PURE__ */ jsx(Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
97
|
+
var _a;
|
|
98
|
+
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
99
|
+
return /* @__PURE__ */ jsx(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
100
|
+
}) })
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ jsx(
|
|
105
|
+
AspectRatio,
|
|
106
|
+
{
|
|
107
|
+
ratio: 5 / 3,
|
|
108
|
+
style: {
|
|
109
|
+
overflow: "hidden",
|
|
110
|
+
borderRadius: "var(--radius-4)",
|
|
111
|
+
objectFit: "cover"
|
|
112
|
+
},
|
|
113
|
+
children: imageComp
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ jsx(Box, { mt: "5", width: "100%", children: /* @__PURE__ */ jsx(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
className: "gh-content",
|
|
121
|
+
dangerouslySetInnerHTML: { __html: html }
|
|
122
|
+
}
|
|
123
|
+
) })
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
children
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
) : /* @__PURE__ */ jsxs(
|
|
131
|
+
Flex,
|
|
132
|
+
{
|
|
133
|
+
align: "center",
|
|
134
|
+
direction: "column",
|
|
135
|
+
gap: "6",
|
|
136
|
+
height: "100%",
|
|
137
|
+
justify: "center",
|
|
138
|
+
width: "100%",
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
Heading,
|
|
143
|
+
{
|
|
144
|
+
align: "center",
|
|
145
|
+
color: "gray",
|
|
146
|
+
variant: "heading4",
|
|
147
|
+
weight: "regular",
|
|
148
|
+
children: `\uC694\uCCAD\uD558\uC2E0 \uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
|
149
|
+
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ jsx(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
})
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export {
|
|
161
|
+
LearningPost
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=chunk-F5MKSWHL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/learning-post.tsx"],"sourcesContent":["import React from 'react';\nimport type { ThemeProviderProps } from '../theme/theme-provider';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { Grid } from '../atoms/grid';\nimport { Flex } from '../atoms/flex';\nimport { Heading } from '../atoms/heading';\nimport { Typo } from '../atoms/typo';\nimport { AspectRatio } from '../atoms/aspect-ratio';\nimport { Badge } from '../atoms/badge';\nimport { Box } from '../atoms/box';\nimport { Button } from '../atoms/button';\n\ninterface Tag {\n name?: string;\n id: string;\n}\nexport interface LearningPostProps {\n defaultThemeProps?: Partial<ThemeProviderProps>;\n html?: string;\n title?: string;\n metaDescription?: string;\n /** 섬네일에 해당하는 이미지 컴포넌트 */\n imageComp?: React.ReactNode;\n tags?: Tag[];\n children?: React.ReactNode;\n onPageBack?: () => void;\n}\n\nexport function LearningPost(props: LearningPostProps): React.ReactNode {\n const {\n defaultThemeProps,\n html,\n tags,\n title,\n metaDescription,\n imageComp,\n onPageBack,\n children,\n } = props;\n return (\n <ThemeProvider\n {...defaultThemeProps}\n accentColor=\"iris\"\n scaling=\"110%\"\n style={{}}\n >\n {html ? (\n <Grid\n columns={{ initial: '1', md: '130px 1fr 130px' }}\n gap={{ initial: '2', md: '5' }}\n height=\"100%\"\n justify=\"center\"\n pb=\"160px\"\n position=\"relative\"\n px=\"4\"\n width=\"100%\"\n >\n <div />\n <Flex\n align=\"center\"\n direction=\"column\"\n maxWidth=\"880px\"\n mt={{ initial: '3', md: '8' }}\n overflow=\"hidden\"\n width=\"100%\"\n >\n <Grid align=\"start\" columns={{ initial: '1', sm: '2' }} gap=\"2\">\n <Grid\n gap=\"3\"\n mb={{ initial: '4', sm: '0' }}\n style={{ alignSelf: 'flex-start' }}\n >\n <Heading\n style={{\n fontSize: '2.4rem',\n lineHeight: 1.25,\n wordBreak: 'keep-all',\n }}\n variant=\"heading1\"\n >\n {title}\n </Heading>\n <Typo>{metaDescription}</Typo>\n <Flex gap=\"1\" wrap=\"wrap\">\n {tags?.map((el) => {\n if (el.name?.startsWith('filter')) return;\n return (\n <Badge key={el.id} size=\"large\" variant=\"solid\">\n {el.name}\n </Badge>\n );\n })}\n </Flex>\n </Grid>\n\n <AspectRatio\n ratio={5 / 3}\n style={{\n overflow: 'hidden',\n borderRadius: 'var(--radius-4)',\n objectFit: 'cover',\n }}\n >\n {imageComp}\n </AspectRatio>\n </Grid>\n\n <Box mt=\"5\" width=\"100%\">\n <div\n className=\"gh-content\"\n dangerouslySetInnerHTML={{ __html: html }}\n />\n </Box>\n </Flex>\n {children}\n </Grid>\n ) : (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"6\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <Heading variant=\"heading1\">콘텐츠를 찾을 수 없습니다.</Heading>\n <Heading\n align=\"center\"\n color=\"gray\"\n variant=\"heading4\"\n weight=\"regular\"\n >\n {`요청하신 콘텐츠를 찾을 수 없습니다.\n 잠시 후 다시 시도해주세요.`}\n </Heading>\n <Button onClick={onPageBack} size=\"large\">\n 뒤로가기\n </Button>\n </Flex>\n )}\n </ThemeProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDU,cAUI,YAVJ;AA7BH,SAAS,aAAa,OAA2C;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,SACE;AAAA,IAAC;AAAA,qCACK,oBADL;AAAA,MAEC,aAAY;AAAA,MACZ,SAAQ;AAAA,MACR,OAAO,CAAC;AAAA,MAEP,iBACC;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,EAAE,SAAS,KAAK,IAAI,kBAAkB;AAAA,UAC/C,KAAK,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,UAC7B,QAAO;AAAA,UACP,SAAQ;AA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A,sBACV,yBAAyB,EAAE,QAAQ,KAAK;AAAA;AAAA,kBAC1C,GACF;AAAA;AAAA;AAAA,YACF;AAAA,YACC;AAAA;AAAA;AAAA,MACH,IAEA;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,WAAQ,SAAQ,YAAW,oFAAe;AAAA,YAC3C;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,OAAM;AAAA,gBACN,SAAQ;AAAA,gBACR,QAAO;AAAA,gBAEN;AAAA;AAAA;AAAA,YAEH;AAAA,YACA,oBAAC,UAAO,SAAS,YAAY,MAAK,SAAQ,sCAE1C;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-2NMEKWO5.js";
|
|
6
|
+
|
|
7
|
+
// src/icons/circle_satisfaction.tsx
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var CircleSatisfactionIcon = React.forwardRef(
|
|
11
|
+
(_a, forwardedRef) => {
|
|
12
|
+
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
13
|
+
return /* @__PURE__ */ jsxs(
|
|
14
|
+
"svg",
|
|
15
|
+
__spreadProps(__spreadValues({
|
|
16
|
+
width: "16",
|
|
17
|
+
height: "16",
|
|
18
|
+
viewBox: "0 0 16 16",
|
|
19
|
+
fill: "none",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
+
}, props), {
|
|
22
|
+
ref: forwardedRef,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7.5", fill: "white", stroke: color }),
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
"rect",
|
|
27
|
+
{
|
|
28
|
+
width: "12",
|
|
29
|
+
height: "12",
|
|
30
|
+
transform: "translate(2 2)",
|
|
31
|
+
fill: "white",
|
|
32
|
+
"fill-opacity": "0.01"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
"path",
|
|
37
|
+
{
|
|
38
|
+
d: "M7.77842 2.53284C7.86041 2.33573 8.13963 2.33573 8.22162 2.53284L9.53074 5.68036C9.5653 5.76346 9.64346 5.82023 9.73316 5.82742L13.1312 6.09985C13.344 6.1169 13.4302 6.38246 13.2682 6.52134L10.6792 8.73904C10.6109 8.79758 10.581 8.88946 10.6019 8.97699L11.3929 12.2928C11.4424 12.5005 11.2165 12.6647 11.0343 12.5534L8.12512 10.7764C8.04832 10.7296 7.95172 10.7296 7.87492 10.7764L4.96574 12.5534C4.78356 12.6647 4.55766 12.5005 4.60719 12.2928L5.39815 8.97699C5.41904 8.88946 5.38918 8.79758 5.32084 8.73904L2.73191 6.52134C2.56978 6.38246 2.65607 6.1169 2.86886 6.09985L6.26688 5.82742C6.35658 5.82023 6.43474 5.76346 6.4693 5.68036L7.77842 2.53284Z",
|
|
39
|
+
fill: color
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
]
|
|
43
|
+
})
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
CircleSatisfactionIcon.displayName = "CircleSatisfactionIcon";
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
CircleSatisfactionIcon
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chunk-IVB77FRN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/icons/circle_satisfaction.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { IconProps } from './types';\n\nexport const CircleSatisfactionIcon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ color = 'currentColor', ...props }, forwardedRef) => {\n return (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <circle cx=\"8\" cy=\"8\" r=\"7.5\" fill=\"white\" stroke={color} />\n <rect\n width=\"12\"\n height=\"12\"\n transform=\"translate(2 2)\"\n fill=\"white\"\n fill-opacity=\"0.01\"\n />\n <path\n d=\"M7.77842 2.53284C7.86041 2.33573 8.13963 2.33573 8.22162 2.53284L9.53074 5.68036C9.5653 5.76346 9.64346 5.82023 9.73316 5.82742L13.1312 6.09985C13.344 6.1169 13.4302 6.38246 13.2682 6.52134L10.6792 8.73904C10.6109 8.79758 10.581 8.88946 10.6019 8.97699L11.3929 12.2928C11.4424 12.5005 11.2165 12.6647 11.0343 12.5534L8.12512 10.7764C8.04832 10.7296 7.95172 10.7296 7.87492 10.7764L4.96574 12.5534C4.78356 12.6647 4.55766 12.5005 4.60719 12.2928L5.39815 8.97699C5.41904 8.88946 5.38918 8.79758 5.32084 8.73904L2.73191 6.52134C2.56978 6.38246 2.65607 6.1169 2.86886 6.09985L6.26688 5.82742C6.35658 5.82023 6.43474 5.76346 6.4693 5.68036L7.77842 2.53284Z\"\n fill={color}\n />\n </svg>\n );\n }\n);\n\nCircleSatisfactionIcon.displayName = 'CircleSatisfactionIcon';\n"],"mappings":";;;;;;;AAAA,YAAY,WAAW;AAMjB,SASE,KATF;AAHC,IAAM,yBAA+B;AAAA,EAC1C,CAAC,IAAsC,iBAAiB;AAAvD,iBAAE,UAAQ,eAJb,IAIG,IAA6B,kBAA7B,IAA6B,CAA3B;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,SACF,QANL;AAAA,QAOC,KAAK;AAAA,QAEL;AAAA,8BAAC,YAAO,IAAG,KAAI,IAAG,KAAI,GAAE,OAAM,MAAK,SAAQ,QAAQ,OAAO;AAAA,UAC1D;AAAA,YAAC;AAAA;AAAA,cACC,OAAM;AAAA,cACN,QAAO;AAAA,cACP,WAAU;AAAA,cACV,MAAK;AAAA,cACL,gBAAa;AAAA;AAAA,UACf;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,GAAE;AAAA,cACF,MAAM;AAAA;AAAA,UACR;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,uBAAuB,cAAc;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EditCoachingTime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QAHOUIRL.js";
|
|
4
4
|
import {
|
|
5
5
|
EditServiceType
|
|
6
6
|
} from "./chunk-44Y6LSNA.js";
|
|
@@ -16,9 +16,6 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
Heading
|
|
18
18
|
} from "./chunk-3IT3NVK6.js";
|
|
19
|
-
import {
|
|
20
|
-
Card
|
|
21
|
-
} from "./chunk-HEDMSFPW.js";
|
|
22
19
|
import {
|
|
23
20
|
BulletText
|
|
24
21
|
} from "./chunk-LMWTEDYS.js";
|
|
@@ -28,6 +25,9 @@ import {
|
|
|
28
25
|
import {
|
|
29
26
|
Button
|
|
30
27
|
} from "./chunk-AFPH32MF.js";
|
|
28
|
+
import {
|
|
29
|
+
Card
|
|
30
|
+
} from "./chunk-HEDMSFPW.js";
|
|
31
31
|
import {
|
|
32
32
|
Pencil1Icon
|
|
33
33
|
} from "./chunk-HLFG5ZTU.js";
|
|
@@ -141,4 +141,4 @@ function SessionCard(props) {
|
|
|
141
141
|
export {
|
|
142
142
|
SessionCard
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=chunk-
|
|
144
|
+
//# sourceMappingURL=chunk-JKJCI4MU.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
infoList,
|
|
3
|
+
renderDataListItem,
|
|
4
|
+
sessionList
|
|
5
|
+
} from "./chunk-I2ZOU3LX.js";
|
|
6
|
+
import {
|
|
7
|
+
DataList
|
|
8
|
+
} from "./chunk-VTJZMOSP.js";
|
|
9
|
+
import {
|
|
10
|
+
Heading
|
|
11
|
+
} from "./chunk-3IT3NVK6.js";
|
|
12
|
+
import {
|
|
13
|
+
Separator
|
|
14
|
+
} from "./chunk-HYITAA4J.js";
|
|
15
|
+
import {
|
|
16
|
+
Box
|
|
17
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
18
|
+
import {
|
|
19
|
+
Flex
|
|
20
|
+
} from "./chunk-25HMMI7R.js";
|
|
21
|
+
import {
|
|
22
|
+
Card
|
|
23
|
+
} from "./chunk-HEDMSFPW.js";
|
|
24
|
+
|
|
25
|
+
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
26
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
+
function CoachingCustomerInfoLarge({
|
|
28
|
+
customer,
|
|
29
|
+
session,
|
|
30
|
+
children,
|
|
31
|
+
badge,
|
|
32
|
+
onClickCopy
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
35
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
36
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
38
|
+
badge
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ jsx(Heading, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
41
|
+
] }),
|
|
42
|
+
children,
|
|
43
|
+
/* @__PURE__ */ jsx(Card, { size: "2", children: /* @__PURE__ */ jsx(DataList.Root, { children: sessionList.map(
|
|
44
|
+
(el) => renderDataListItem({
|
|
45
|
+
info: el,
|
|
46
|
+
data: session,
|
|
47
|
+
onClickCopy
|
|
48
|
+
})
|
|
49
|
+
) }) }),
|
|
50
|
+
/* @__PURE__ */ jsx(Separator, { size: "4" }),
|
|
51
|
+
/* @__PURE__ */ jsx(DataList.Root, { children: infoList.map(
|
|
52
|
+
(info) => renderDataListItem({
|
|
53
|
+
info,
|
|
54
|
+
data: customer,
|
|
55
|
+
onClickCopy
|
|
56
|
+
})
|
|
57
|
+
) })
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
CoachingCustomerInfoLarge
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=chunk-JMS4TRIK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/large.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Box,\n Card,\n DataList,\n Flex,\n Heading,\n Separator,\n} from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport { infoList, renderDataListItem, sessionList } from '../utils';\n\nexport function CoachingCustomerInfoLarge({\n customer,\n session,\n children,\n badge,\n onClickCopy,\n}: CoachingCustomerInfoProps): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"5\">\n {/* 이름, 사명 */}\n <Box>\n <Flex align=\"center\" justify=\"between\" mb=\"1\" width=\"100%\">\n <Heading variant=\"heading2\">\n {customer?.username || '이름 없음'}\n </Heading>\n {badge}\n </Flex>\n <Heading truncate variant=\"heading4\" weight=\"regular\">\n {customer?.company}\n </Heading>\n </Box>\n\n {children}\n\n {/* 세션 정보 */}\n <Card size=\"2\">\n <DataList.Root>\n {sessionList.map((el) =>\n renderDataListItem({\n info: el,\n data: session,\n onClickCopy,\n })\n )}\n </DataList.Root>\n </Card>\n\n {/* 회원 정보 */}\n <Separator size=\"4\" />\n <DataList.Root>\n {infoList.map((info) =>\n renderDataListItem({\n info,\n data: customer,\n onClickCopy,\n })\n )}\n </DataList.Root>\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuBQ,SACE,KADF;AAXD,SAAS,0BAA0B;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA+C;AAC7C,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAE3B;AAAA,yBAAC,OACC;AAAA,2BAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,IAAG,KAAI,OAAM,QAClD;AAAA,4BAAC,WAAQ,SAAQ,YACd,gDAAU,aAAY,6BACzB;AAAA,QACC;AAAA,SACH;AAAA,MACA,oBAAC,WAAQ,UAAQ,MAAC,SAAQ,YAAW,QAAO,WACzC,+CAAU,SACb;AAAA,OACF;AAAA,IAEC;AAAA,IAGD,oBAAC,QAAK,MAAK,KACT,8BAAC,SAAS,MAAT,EACE,sBAAY;AAAA,MAAI,CAAC,OAChB,mBAAmB;AAAA,QACjB,MAAM;AAAA,QACN,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,IACH,GACF,GACF;AAAA,IAGA,oBAAC,aAAU,MAAK,KAAI;AAAA,IACpB,oBAAC,SAAS,MAAT,EACE,mBAAS;AAAA,MAAI,CAAC,SACb,mBAAmB;AAAA,QACjB;AAAA,QACA,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,IACH,GACF;AAAA,KACF;AAEJ;","names":[]}
|