@dotss/tictoccroc 0.0.4 → 0.0.6
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/index.mjs +78 -77
- package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +1 -1
- package/dist/shared/components/Roller/Roller.mjs +131 -7
- package/dist/shared/components/Roller/index.mjs +3 -3
- package/dist/shared/components/index.mjs +3 -3
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +23 -24
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.d.ts +2 -2
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +3 -3
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.d.ts +5 -2
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +24 -24
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +42 -41
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.d.ts +5 -2
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs +28 -23
- package/dist/teacher/profile/components/CertificationSection/CertificationSection.mjs +41 -37
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.d.ts +6 -3
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +38 -30
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +35 -34
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.mjs +79 -6
- package/dist/teacher/profile/components/LessonNotesSection/index.mjs +3 -3
- package/dist/teacher/profile/components/index.mjs +5 -5
- package/dist/teacher/profile/utils/index.d.ts +1 -0
- package/dist/teacher/profile/utils/index.mjs +5 -0
- package/dist/teacher/profile/utils/sortItems/index.d.ts +3 -0
- package/dist/teacher/profile/utils/sortItems/index.mjs +6 -0
- package/dist/teacher/profile/utils/sortItems/sortItems.d.ts +9 -0
- package/dist/teacher/profile/utils/sortItems/sortItems.mjs +29 -0
- package/package.json +10 -2
- package/dist/LessonNotesSection-Bg1DHFxg.js +0 -208
- package/dist/shared/utils/birthDateToAge/birthDateToAge.test.mjs +0 -11
- package/dist/shared/utils/getDateRange/getDateRange.test.mjs +0 -60
- package/dist/shared/utils/getImageUrl/getImageUrl.test.mjs +0 -27
- package/dist/shared/utils/getTimeRange/getTimeRange.test.mjs +0 -75
- package/dist/shared/utils/getVimeoId/getVimeoId.test.mjs +0 -14
- package/dist/shared/utils/isAndroid/isAndroid.test.mjs +0 -12
- package/dist/shared/utils/isApp/isApp.test.mjs +0 -22
- package/dist/shared/utils/isDesktop/isDesktop.test.mjs +0 -10
- package/dist/shared/utils/isServer/isServer.test.mjs +0 -12
- package/dist/shared/utils/objectToQueryString/objectToQueryString.test.mjs +0 -11
- package/dist/shared/utils/parseQueryString/parseQueryString.test.mjs +0 -15
- package/dist/shared/utils/share/share.test.mjs +0 -31
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as i, jsxs as e, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import p from "@dotss/ui/core/useTheme";
|
|
1
|
+
import { jsx as i, jsxs as e, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { Flexbox as t, Label as D, Typography as h, Icon as d } from "@dotss/ui";
|
|
3
|
+
import j from "@dotss/ui/core/useTheme";
|
|
5
4
|
import { useCheckHoverPossible as E } from "@dotss/ui/hooks";
|
|
6
5
|
import s from "dayjs";
|
|
7
|
-
function
|
|
6
|
+
function T({
|
|
8
7
|
title: v,
|
|
9
8
|
status: f,
|
|
10
9
|
startDate: y,
|
|
11
10
|
endDate: o,
|
|
12
11
|
primary: x = !1,
|
|
12
|
+
id: b,
|
|
13
13
|
...n
|
|
14
14
|
}) {
|
|
15
|
-
const
|
|
15
|
+
const { isHoverPossible: I } = E(), {
|
|
16
16
|
palette: { grey: a },
|
|
17
17
|
spacing: c
|
|
18
|
-
} =
|
|
18
|
+
} = j(), r = typeof n.onClick == "function", k = s(y), u = (o ? s(o) : s()).diff(k, "month"), m = Math.floor(u / 12), C = u % 12;
|
|
19
19
|
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ e(
|
|
20
20
|
t,
|
|
21
21
|
{
|
|
22
22
|
role: "button",
|
|
23
|
-
tabIndex:
|
|
23
|
+
tabIndex: r ? 0 : -1,
|
|
24
24
|
alignItems: "center",
|
|
25
25
|
gap: 4,
|
|
26
26
|
pt: 2,
|
|
@@ -29,20 +29,20 @@ function A({
|
|
|
29
29
|
pr: 4,
|
|
30
30
|
ml: -4,
|
|
31
31
|
mr: -4,
|
|
32
|
-
onKeyDown: (
|
|
32
|
+
onKeyDown: (l) => {
|
|
33
33
|
var S;
|
|
34
|
-
(
|
|
34
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), l.currentTarget.click()), (S = n.onKeyDown) == null || S.call(n, l);
|
|
35
35
|
},
|
|
36
36
|
"aria-labelledby": `career-item-title-${b}`,
|
|
37
37
|
...n,
|
|
38
38
|
inlineCSS: {
|
|
39
|
-
cursor:
|
|
40
|
-
...
|
|
39
|
+
cursor: r ? "pointer" : "default",
|
|
40
|
+
...r && {
|
|
41
41
|
"&:active": {
|
|
42
42
|
backgroundColor: a[10]
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
...
|
|
45
|
+
...r && I ? {
|
|
46
46
|
"&:hover": {
|
|
47
47
|
backgroundColor: a[10]
|
|
48
48
|
}
|
|
@@ -53,7 +53,7 @@ function A({
|
|
|
53
53
|
/* @__PURE__ */ e(t, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
|
|
54
54
|
/* @__PURE__ */ e(t, { alignItems: "center", gap: 1, children: [
|
|
55
55
|
x && /* @__PURE__ */ i(
|
|
56
|
-
|
|
56
|
+
D,
|
|
57
57
|
{
|
|
58
58
|
variant: "outlined",
|
|
59
59
|
size: "small",
|
|
@@ -64,11 +64,11 @@ function A({
|
|
|
64
64
|
children: "대표"
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */ e(
|
|
67
|
+
/* @__PURE__ */ e(h, { id: `career-item-title-${b}`, tag: "p", variant: "b2M", children: [
|
|
68
68
|
v,
|
|
69
69
|
f === "VERIFIED" && // TODO 아이콘 교체 필요
|
|
70
70
|
/* @__PURE__ */ i(
|
|
71
|
-
|
|
71
|
+
d,
|
|
72
72
|
{
|
|
73
73
|
name: "InfoFill",
|
|
74
74
|
size: "small",
|
|
@@ -82,7 +82,7 @@ function A({
|
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
84
|
f === "REJECTED" && /* @__PURE__ */ i(
|
|
85
|
-
|
|
85
|
+
d,
|
|
86
86
|
{
|
|
87
87
|
name: "AlertFill",
|
|
88
88
|
size: "small",
|
|
@@ -97,7 +97,7 @@ function A({
|
|
|
97
97
|
)
|
|
98
98
|
] })
|
|
99
99
|
] }),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
100
|
+
/* @__PURE__ */ e(h, { tag: "p", variant: "b5R", color: "grey.50", children: [
|
|
101
101
|
y,
|
|
102
102
|
" ~ ",
|
|
103
103
|
o ?? "현재"
|
|
@@ -105,7 +105,7 @@ function A({
|
|
|
105
105
|
] }),
|
|
106
106
|
/* @__PURE__ */ e(t, { alignItems: "center", gap: 2, children: [
|
|
107
107
|
/* @__PURE__ */ e(
|
|
108
|
-
|
|
108
|
+
h,
|
|
109
109
|
{
|
|
110
110
|
tag: "p",
|
|
111
111
|
variant: "h5R",
|
|
@@ -113,24 +113,24 @@ function A({
|
|
|
113
113
|
noWrap: !0,
|
|
114
114
|
inlineCSS: { "& strong": { color: a[100], fontWeight: 700 } },
|
|
115
115
|
children: [
|
|
116
|
-
m > 0 && /* @__PURE__ */ e(
|
|
116
|
+
m > 0 && /* @__PURE__ */ e(g, { children: [
|
|
117
117
|
/* @__PURE__ */ i("strong", { children: m }),
|
|
118
118
|
"년"
|
|
119
119
|
] }),
|
|
120
|
-
C > 0 && /* @__PURE__ */ e(
|
|
121
|
-
m > 0 && /* @__PURE__ */ i(
|
|
120
|
+
C > 0 && /* @__PURE__ */ e(g, { children: [
|
|
121
|
+
m > 0 && /* @__PURE__ */ i(g, { children: " " }),
|
|
122
122
|
/* @__PURE__ */ i("strong", { children: C }),
|
|
123
123
|
"개월"
|
|
124
124
|
] })
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
/* @__PURE__ */ i(
|
|
128
|
+
r && /* @__PURE__ */ i(d, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
|
|
129
129
|
] })
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
) });
|
|
133
133
|
}
|
|
134
134
|
export {
|
|
135
|
-
|
|
135
|
+
T as default
|
|
136
136
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsxs as i, jsx as t, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Flexbox as r, Typography as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as i, jsx as t, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, Children as F, isValidElement as O } from "react";
|
|
3
|
+
import { Flexbox as r, Typography as f, Tooltip as Y, Icon as g, Button as M } from "@dotss/ui";
|
|
4
|
+
import T from "@dotss/ui/core/useTheme";
|
|
5
|
+
import S from "dayjs";
|
|
6
|
+
import W from "./CareerItem/CareerItem.mjs";
|
|
7
|
+
import { sortItemElements as z } from "../../utils/sortItems/sortItems.mjs";
|
|
8
|
+
function V({
|
|
9
|
+
children: u,
|
|
10
|
+
action: y,
|
|
11
|
+
showTooltip: I = !1,
|
|
12
|
+
enableToggle: s = !1,
|
|
12
13
|
...o
|
|
13
14
|
}) {
|
|
14
|
-
const { spacing:
|
|
15
|
-
(e.key === "Enter" || e.key === " ") &&
|
|
15
|
+
const { spacing: d } = T(), [b, w] = x(!1), [a, v] = x(!1), l = F.toArray(u).filter(O).filter((e) => e.type === W), D = l.length > 0, j = l.length > 3, C = l.map((e) => [e.props.startDate, e.props.endDate ?? S().format("YYYY-MM-DD")]).map(([e, n]) => [S(e), S(n)]).map(([e, n]) => n.diff(e, "month")), c = Math.floor(C.reduce((e, n) => e + n, 0) / 12), h = C.reduce((e, n) => e + n, 0) % 12, k = () => v((e) => !e), m = () => w((e) => !e), E = (e) => {
|
|
16
|
+
(e.key === "Enter" || e.key === " ") && m();
|
|
16
17
|
};
|
|
17
18
|
return /* @__PURE__ */ i(
|
|
18
19
|
r,
|
|
@@ -45,7 +46,7 @@ function G({
|
|
|
45
46
|
inlineCSS: { position: "relative" },
|
|
46
47
|
children: [
|
|
47
48
|
/* @__PURE__ */ t(
|
|
48
|
-
|
|
49
|
+
f,
|
|
49
50
|
{
|
|
50
51
|
id: "career-section-title",
|
|
51
52
|
tag: "h2",
|
|
@@ -54,17 +55,17 @@ function G({
|
|
|
54
55
|
children: "경력"
|
|
55
56
|
}
|
|
56
57
|
),
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
I && /* @__PURE__ */ t(
|
|
59
|
+
Y,
|
|
59
60
|
{
|
|
60
|
-
open:
|
|
61
|
-
onClose:
|
|
61
|
+
open: b,
|
|
62
|
+
onClose: m,
|
|
62
63
|
color: "secondary",
|
|
63
64
|
role: "tooltip",
|
|
64
65
|
"aria-labelledby": "career-section-tooltip",
|
|
65
66
|
"aria-describedby": "career-section-tooltip-desc",
|
|
66
67
|
body: /* @__PURE__ */ i(
|
|
67
|
-
|
|
68
|
+
f,
|
|
68
69
|
{
|
|
69
70
|
id: "career-section-tooltip-desc",
|
|
70
71
|
tag: "p",
|
|
@@ -73,7 +74,7 @@ function G({
|
|
|
73
74
|
noWrap: !0,
|
|
74
75
|
inlineCSS: {
|
|
75
76
|
display: "flex",
|
|
76
|
-
gap:
|
|
77
|
+
gap: d.content(1),
|
|
77
78
|
"& svg": {
|
|
78
79
|
width: "20px !important",
|
|
79
80
|
height: "20px !important",
|
|
@@ -82,22 +83,22 @@ function G({
|
|
|
82
83
|
},
|
|
83
84
|
children: [
|
|
84
85
|
"째깍악어가 확인한 정보는",
|
|
85
|
-
/* @__PURE__ */ t(
|
|
86
|
+
/* @__PURE__ */ t(g, { name: "InfoFill", size: "small", color: "tictoccroc-teacher.brand.green" }),
|
|
86
87
|
"인증 마크가 붙어요!"
|
|
87
88
|
]
|
|
88
89
|
}
|
|
89
90
|
),
|
|
90
91
|
inlineCSS: {
|
|
91
92
|
"&:after": {
|
|
92
|
-
transform: `translateX(-${100 +
|
|
93
|
+
transform: `translateX(-${100 + d.content(1)}px)`
|
|
93
94
|
}
|
|
94
95
|
},
|
|
95
96
|
style: {
|
|
96
97
|
top: -8,
|
|
97
|
-
left: `calc(50% + 100px - ${
|
|
98
|
+
left: `calc(50% + 100px - ${d.content(0.5)}px)`
|
|
98
99
|
},
|
|
99
100
|
children: /* @__PURE__ */ t(
|
|
100
|
-
|
|
101
|
+
g,
|
|
101
102
|
{
|
|
102
103
|
id: "career-section-tooltip",
|
|
103
104
|
role: "button",
|
|
@@ -105,8 +106,8 @@ function G({
|
|
|
105
106
|
name: "TooltipFill",
|
|
106
107
|
size: "small",
|
|
107
108
|
color: "grey.50",
|
|
108
|
-
onClick:
|
|
109
|
-
onKeyDown:
|
|
109
|
+
onClick: m,
|
|
110
|
+
onKeyDown: E,
|
|
110
111
|
"aria-label": "추가 정보 안내",
|
|
111
112
|
inlineCSS: {
|
|
112
113
|
cursor: "pointer"
|
|
@@ -118,32 +119,32 @@ function G({
|
|
|
118
119
|
]
|
|
119
120
|
}
|
|
120
121
|
),
|
|
121
|
-
(
|
|
122
|
+
(c > 0 || h > 0) && /* @__PURE__ */ i(f, { tag: "p", variant: "h4R", inlineCSS: { "& strong": { fontWeight: 700 } }, children: [
|
|
122
123
|
"총 ",
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ t("strong", { children:
|
|
124
|
+
c > 0 && /* @__PURE__ */ i(p, { children: [
|
|
125
|
+
/* @__PURE__ */ t("strong", { children: c }),
|
|
125
126
|
"년"
|
|
126
127
|
] }),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/* @__PURE__ */ t("strong", { children:
|
|
128
|
+
h > 0 && /* @__PURE__ */ i(p, { children: [
|
|
129
|
+
c > 0 && /* @__PURE__ */ t(p, { children: " " }),
|
|
130
|
+
/* @__PURE__ */ t("strong", { children: h }),
|
|
130
131
|
"개월"
|
|
131
132
|
] })
|
|
132
133
|
] })
|
|
133
134
|
]
|
|
134
135
|
}
|
|
135
136
|
),
|
|
136
|
-
|
|
137
|
+
D && /* @__PURE__ */ t(
|
|
137
138
|
r,
|
|
138
139
|
{
|
|
139
140
|
id: "career-section-career-items",
|
|
140
141
|
tag: "ul",
|
|
141
142
|
flexDirection: "column",
|
|
142
143
|
inlineCSS: { width: "inherit" },
|
|
143
|
-
children:
|
|
144
|
+
children: z(l).slice(0, !s || a ? void 0 : 3)
|
|
144
145
|
}
|
|
145
146
|
),
|
|
146
|
-
|
|
147
|
+
s && j && /* @__PURE__ */ t(
|
|
147
148
|
r,
|
|
148
149
|
{
|
|
149
150
|
alignItems: "center",
|
|
@@ -151,13 +152,13 @@ function G({
|
|
|
151
152
|
mt: 2,
|
|
152
153
|
inlineCSS: { width: "inherit" },
|
|
153
154
|
children: /* @__PURE__ */ t(
|
|
154
|
-
|
|
155
|
+
M,
|
|
155
156
|
{
|
|
156
157
|
fullWidth: !0,
|
|
157
158
|
variant: "text",
|
|
158
159
|
color: "secondary",
|
|
159
|
-
endAdornment: /* @__PURE__ */ t(
|
|
160
|
-
onClick:
|
|
160
|
+
endAdornment: /* @__PURE__ */ t(g, { name: a ? "ChevronUpLine" : "ChevronDownLine" }),
|
|
161
|
+
onClick: k,
|
|
161
162
|
"aria-controls": "career-section-career-items",
|
|
162
163
|
"aria-expanded": a,
|
|
163
164
|
children: a ? "접기" : "더 보기"
|
|
@@ -165,7 +166,7 @@ function G({
|
|
|
165
166
|
)
|
|
166
167
|
}
|
|
167
168
|
),
|
|
168
|
-
!
|
|
169
|
+
!s && y && /* @__PURE__ */ t(
|
|
169
170
|
r,
|
|
170
171
|
{
|
|
171
172
|
mt: 4,
|
|
@@ -173,7 +174,7 @@ function G({
|
|
|
173
174
|
alignItems: "center",
|
|
174
175
|
justifyContent: "center",
|
|
175
176
|
inlineCSS: { width: "inherit" },
|
|
176
|
-
children:
|
|
177
|
+
children: y
|
|
177
178
|
}
|
|
178
179
|
)
|
|
179
180
|
]
|
|
@@ -181,5 +182,5 @@ function G({
|
|
|
181
182
|
);
|
|
182
183
|
}
|
|
183
184
|
export {
|
|
184
|
-
|
|
185
|
+
V as default
|
|
185
186
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
|
-
export interface CertificationItemProps extends FlexboxProps {
|
|
2
|
+
export interface CertificationItemProps extends Omit<FlexboxProps, 'id'> {
|
|
3
3
|
name: string;
|
|
4
4
|
acquisitionDate: string;
|
|
5
5
|
status: 'VERIFIED' | 'PENDING' | 'REJECTED' | 'DELETED';
|
|
6
|
+
id: string | number;
|
|
7
|
+
regDatetime: string;
|
|
8
|
+
priority: number;
|
|
6
9
|
}
|
|
7
|
-
declare function CertificationItem({ name, acquisitionDate, status, ...props }: CertificationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function CertificationItem({ name, acquisitionDate, status, id, ...props }: CertificationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default CertificationItem;
|
package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useId as u } from "react";
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
3
2
|
import { Flexbox as a, Typography as g, Icon as c } from "@dotss/ui";
|
|
4
|
-
import y from "
|
|
5
|
-
import { useCheckHoverPossible as
|
|
6
|
-
function
|
|
7
|
-
|
|
3
|
+
import y from "@dotss/ui/core/useTheme";
|
|
4
|
+
import { useCheckHoverPossible as u } from "@dotss/ui/hooks";
|
|
5
|
+
function D({
|
|
6
|
+
name: b,
|
|
7
|
+
acquisitionDate: h,
|
|
8
|
+
status: o,
|
|
9
|
+
id: l,
|
|
10
|
+
...e
|
|
11
|
+
}) {
|
|
12
|
+
const { isHoverPossible: s } = u(), {
|
|
8
13
|
palette: { grey: m },
|
|
9
14
|
spacing: d
|
|
10
|
-
} = y(),
|
|
11
|
-
return /* @__PURE__ */
|
|
15
|
+
} = y(), i = typeof e.onClick == "function";
|
|
16
|
+
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ r(
|
|
12
17
|
a,
|
|
13
18
|
{
|
|
14
19
|
role: "button",
|
|
15
|
-
tabIndex:
|
|
20
|
+
tabIndex: i ? 0 : -1,
|
|
16
21
|
alignItems: "center",
|
|
17
22
|
gap: 1,
|
|
18
23
|
pt: 2,
|
|
@@ -21,21 +26,21 @@ function E({ name: b, acquisitionDate: h, status: o, ...e }) {
|
|
|
21
26
|
pr: 4,
|
|
22
27
|
ml: -4,
|
|
23
28
|
mr: -4,
|
|
24
|
-
onKeyDown: (
|
|
29
|
+
onKeyDown: (n) => {
|
|
25
30
|
var f;
|
|
26
|
-
(
|
|
31
|
+
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click()), (f = e.onKeyDown) == null || f.call(e, n);
|
|
27
32
|
},
|
|
28
|
-
"aria-labelledby": `certification-item-name-${
|
|
29
|
-
"aria-describedby": `certification-item-desc-${
|
|
33
|
+
"aria-labelledby": `certification-item-name-${l}`,
|
|
34
|
+
"aria-describedby": `certification-item-desc-${l}`,
|
|
30
35
|
...e,
|
|
31
36
|
inlineCSS: {
|
|
32
|
-
cursor:
|
|
33
|
-
...
|
|
37
|
+
cursor: i ? "pointer" : "default",
|
|
38
|
+
...i && {
|
|
34
39
|
"&:active": {
|
|
35
40
|
backgroundColor: m[10]
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
|
-
...
|
|
43
|
+
...i && s ? {
|
|
39
44
|
"&:hover": {
|
|
40
45
|
backgroundColor: m[10]
|
|
41
46
|
}
|
|
@@ -43,11 +48,11 @@ function E({ name: b, acquisitionDate: h, status: o, ...e }) {
|
|
|
43
48
|
...e == null ? void 0 : e.inlineCSS
|
|
44
49
|
},
|
|
45
50
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ r(a, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
|
|
52
|
+
/* @__PURE__ */ t(a, { alignItems: "center", gap: 1, children: /* @__PURE__ */ r(g, { id: `certification-item-name-${l}`, tag: "p", variant: "b2M", children: [
|
|
48
53
|
b,
|
|
49
54
|
o === "VERIFIED" && // TODO 아이콘 교체 필요
|
|
50
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ t(
|
|
51
56
|
c,
|
|
52
57
|
{
|
|
53
58
|
name: "InfoFill",
|
|
@@ -61,7 +66,7 @@ function E({ name: b, acquisitionDate: h, status: o, ...e }) {
|
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
),
|
|
64
|
-
o === "REJECTED" && /* @__PURE__ */
|
|
69
|
+
o === "REJECTED" && /* @__PURE__ */ t(
|
|
65
70
|
c,
|
|
66
71
|
{
|
|
67
72
|
name: "AlertFill",
|
|
@@ -76,16 +81,16 @@ function E({ name: b, acquisitionDate: h, status: o, ...e }) {
|
|
|
76
81
|
}
|
|
77
82
|
)
|
|
78
83
|
] }) }),
|
|
79
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ r(g, { id: `certification-item-desc-${l}`, tag: "p", variant: "b5R", color: "grey.50", children: [
|
|
80
85
|
h,
|
|
81
86
|
" 취득"
|
|
82
87
|
] })
|
|
83
88
|
] }),
|
|
84
|
-
/* @__PURE__ */
|
|
89
|
+
i && /* @__PURE__ */ t(c, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
|
|
85
90
|
]
|
|
86
91
|
}
|
|
87
92
|
) });
|
|
88
93
|
}
|
|
89
94
|
export {
|
|
90
|
-
|
|
95
|
+
D as default
|
|
91
96
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as m, Children as
|
|
3
|
-
import { Flexbox as
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, Children as w, isValidElement as v } from "react";
|
|
3
|
+
import { Flexbox as e, Typography as h, Tooltip as j, Icon as d, Button as k } from "@dotss/ui";
|
|
4
4
|
import D from "@dotss/ui/core/useTheme";
|
|
5
5
|
import E from "./CertificationItem/CertificationItem.mjs";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { sortItemElements as O } from "../../utils/sortItems/sortItems.mjs";
|
|
7
|
+
function K({
|
|
8
|
+
children: p,
|
|
9
|
+
action: f,
|
|
10
|
+
showTooltip: x = !1,
|
|
11
|
+
enableToggle: r = !1,
|
|
11
12
|
...n
|
|
12
13
|
}) {
|
|
13
|
-
const { spacing:
|
|
14
|
-
(
|
|
15
|
-
},
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
14
|
+
const { spacing: l } = D(), [y, C] = m(!1), [o, g] = m(!1), c = w.toArray(p).filter(v).filter((i) => i.type === E), S = c.length > 0, u = c.length > 3, a = () => C((i) => !i), I = (i) => {
|
|
15
|
+
(i.key === "Enter" || i.key === " ") && a();
|
|
16
|
+
}, b = () => g((i) => !i);
|
|
17
|
+
return /* @__PURE__ */ s(
|
|
18
|
+
e,
|
|
18
19
|
{
|
|
19
20
|
tag: "section",
|
|
20
21
|
flexDirection: "column",
|
|
@@ -27,9 +28,9 @@ function z({
|
|
|
27
28
|
...n == null ? void 0 : n.inlineCSS
|
|
28
29
|
},
|
|
29
30
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ s(e, { alignItems: "center", justifyContent: "center", gap: 1, children: [
|
|
31
32
|
/* @__PURE__ */ t(
|
|
32
|
-
|
|
33
|
+
h,
|
|
33
34
|
{
|
|
34
35
|
id: "certification-section-title",
|
|
35
36
|
tag: "h2",
|
|
@@ -38,17 +39,17 @@ function z({
|
|
|
38
39
|
children: "자격증"
|
|
39
40
|
}
|
|
40
41
|
),
|
|
41
|
-
|
|
42
|
+
x && /* @__PURE__ */ t(
|
|
42
43
|
j,
|
|
43
44
|
{
|
|
44
|
-
open:
|
|
45
|
-
onClose:
|
|
45
|
+
open: y,
|
|
46
|
+
onClose: a,
|
|
46
47
|
color: "secondary",
|
|
47
48
|
role: "tooltip",
|
|
48
49
|
"aria-labelledby": "certification-section-tooltip",
|
|
49
50
|
"aria-describedby": "certification-section-tooltip-desc",
|
|
50
|
-
body: /* @__PURE__ */
|
|
51
|
-
|
|
51
|
+
body: /* @__PURE__ */ s(
|
|
52
|
+
h,
|
|
52
53
|
{
|
|
53
54
|
id: "certification-section-tooltip-desc",
|
|
54
55
|
tag: "p",
|
|
@@ -57,7 +58,7 @@ function z({
|
|
|
57
58
|
noWrap: !0,
|
|
58
59
|
inlineCSS: {
|
|
59
60
|
display: "flex",
|
|
60
|
-
gap:
|
|
61
|
+
gap: l.content(1),
|
|
61
62
|
"& svg": {
|
|
62
63
|
width: "20px !important",
|
|
63
64
|
height: "20px !important",
|
|
@@ -66,22 +67,22 @@ function z({
|
|
|
66
67
|
},
|
|
67
68
|
children: [
|
|
68
69
|
"째깍악어가 확인한 정보는",
|
|
69
|
-
/* @__PURE__ */ t(
|
|
70
|
+
/* @__PURE__ */ t(d, { name: "InfoFill", size: "small", color: "tictoccroc-teacher.brand.green" }),
|
|
70
71
|
"인증 마크가 붙어요!"
|
|
71
72
|
]
|
|
72
73
|
}
|
|
73
74
|
),
|
|
74
75
|
inlineCSS: {
|
|
75
76
|
"&:after": {
|
|
76
|
-
transform: `translateX(-${82.5 +
|
|
77
|
+
transform: `translateX(-${82.5 + l.content(1)}px)`
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
style: {
|
|
80
81
|
top: -8,
|
|
81
|
-
left: `calc(50% + 82.5px - ${
|
|
82
|
+
left: `calc(50% + 82.5px - ${l.content(0.5)}px)`
|
|
82
83
|
},
|
|
83
84
|
children: /* @__PURE__ */ t(
|
|
84
|
-
|
|
85
|
+
d,
|
|
85
86
|
{
|
|
86
87
|
id: "certification-section-tooltip",
|
|
87
88
|
role: "button",
|
|
@@ -89,7 +90,7 @@ function z({
|
|
|
89
90
|
name: "TooltipFill",
|
|
90
91
|
size: "small",
|
|
91
92
|
color: "grey.50",
|
|
92
|
-
onClick:
|
|
93
|
+
onClick: a,
|
|
93
94
|
onKeyDown: I,
|
|
94
95
|
"aria-label": "추가 정보 안내",
|
|
95
96
|
inlineCSS: {
|
|
@@ -100,18 +101,21 @@ function z({
|
|
|
100
101
|
}
|
|
101
102
|
)
|
|
102
103
|
] }),
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
S && /* @__PURE__ */ t(
|
|
105
|
+
e,
|
|
105
106
|
{
|
|
106
107
|
id: "certification-section-certification-items",
|
|
107
108
|
tag: "ul",
|
|
108
109
|
flexDirection: "column",
|
|
109
110
|
inlineCSS: { width: "inherit" },
|
|
110
|
-
children:
|
|
111
|
+
children: O(c).slice(
|
|
112
|
+
0,
|
|
113
|
+
!r || o ? void 0 : 3
|
|
114
|
+
)
|
|
111
115
|
}
|
|
112
116
|
),
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
r && u && /* @__PURE__ */ t(
|
|
118
|
+
e,
|
|
115
119
|
{
|
|
116
120
|
alignItems: "center",
|
|
117
121
|
justifyContent: "center",
|
|
@@ -123,8 +127,8 @@ function z({
|
|
|
123
127
|
fullWidth: !0,
|
|
124
128
|
variant: "text",
|
|
125
129
|
color: "secondary",
|
|
126
|
-
endAdornment: /* @__PURE__ */ t(
|
|
127
|
-
onClick:
|
|
130
|
+
endAdornment: /* @__PURE__ */ t(d, { name: o ? "ChevronUpLine" : "ChevronDownLine" }),
|
|
131
|
+
onClick: b,
|
|
128
132
|
"aria-controls": "certification-section-certification-items",
|
|
129
133
|
"aria-expanded": o,
|
|
130
134
|
children: o ? "접기" : "더 보기"
|
|
@@ -132,15 +136,15 @@ function z({
|
|
|
132
136
|
)
|
|
133
137
|
}
|
|
134
138
|
),
|
|
135
|
-
!
|
|
136
|
-
|
|
139
|
+
!r && f && /* @__PURE__ */ t(
|
|
140
|
+
e,
|
|
137
141
|
{
|
|
138
142
|
mt: 4,
|
|
139
143
|
flexGrow: 1,
|
|
140
144
|
alignItems: "center",
|
|
141
145
|
justifyContent: "center",
|
|
142
146
|
inlineCSS: { width: "inherit" },
|
|
143
|
-
children:
|
|
147
|
+
children: f
|
|
144
148
|
}
|
|
145
149
|
)
|
|
146
150
|
]
|
|
@@ -148,5 +152,5 @@ function z({
|
|
|
148
152
|
);
|
|
149
153
|
}
|
|
150
154
|
export {
|
|
151
|
-
|
|
155
|
+
K as default
|
|
152
156
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
|
-
export interface EducationItemProps extends FlexboxProps {
|
|
2
|
+
export interface EducationItemProps extends Omit<FlexboxProps, 'id'> {
|
|
3
3
|
name: string;
|
|
4
4
|
status: 'VERIFIED' | 'PENDING' | 'REJECTED' | 'DELETED';
|
|
5
|
-
academicStatus: 'STUDYING' | 'ONBREAK' | '
|
|
5
|
+
academicStatus: 'STUDYING' | 'ONBREAK' | 'FINISHED';
|
|
6
6
|
major: string;
|
|
7
|
+
id: string | number;
|
|
8
|
+
regDatetime: string;
|
|
9
|
+
priority: number;
|
|
7
10
|
}
|
|
8
|
-
declare function EducationItem({ name, status, major, academicStatus, ...props }: EducationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function EducationItem({ name, status, major, academicStatus, id, regDatetime, priority, ...props }: EducationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
12
|
export default EducationItem;
|