@dotss/tictoccroc 0.0.5 → 0.0.7

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.
Files changed (25) hide show
  1. package/dist/shared/components/Scheduler/Scheduler.d.ts +2 -2
  2. package/dist/shared/components/Scheduler/Scheduler.mjs +164 -164
  3. package/dist/shared/components/Scheduler/Scheduler.utils.d.ts +13 -7
  4. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +65 -54
  5. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +23 -24
  6. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.d.ts +3 -3
  7. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +3 -3
  8. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.d.ts +5 -2
  9. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +24 -24
  10. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +42 -41
  11. package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.d.ts +5 -2
  12. package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs +27 -22
  13. package/dist/teacher/profile/components/CertificationSection/CertificationSection.mjs +41 -37
  14. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.d.ts +6 -3
  15. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +38 -30
  16. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +35 -34
  17. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +33 -31
  18. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +4 -4
  19. package/dist/teacher/profile/utils/index.d.ts +1 -0
  20. package/dist/teacher/profile/utils/index.mjs +5 -0
  21. package/dist/teacher/profile/utils/sortItems/index.d.ts +3 -0
  22. package/dist/teacher/profile/utils/sortItems/index.mjs +6 -0
  23. package/dist/teacher/profile/utils/sortItems/sortItems.d.ts +9 -0
  24. package/dist/teacher/profile/utils/sortItems/sortItems.mjs +29 -0
  25. package/package.json +9 -1
@@ -1,18 +1,19 @@
1
- import { jsxs as i, jsx as t, Fragment as m } from "react/jsx-runtime";
2
- import { useState as u, Children as b, isValidElement as O } from "react";
3
- import { Flexbox as r, Typography as p, Tooltip as T, Icon as f, Button as Y } from "@dotss/ui";
4
- import A from "@dotss/ui/core/useTheme";
5
- import g from "dayjs";
6
- import M from "./CareerItem/CareerItem.mjs";
7
- function G({
8
- children: y,
9
- action: S,
10
- showTooltip: w = !1,
11
- enableToggle: C = !1,
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: c } = A(), [I, v] = u(!1), [a, D] = u(!1), s = b.toArray(y).filter(O).filter((e) => e.type === M), j = s.length > 0, k = s.length > 3, x = s.map((e) => [e.props.startDate, e.props.endDate ?? g().format("YYYY-MM-DD")]).map(([e, n]) => [g(e), g(n)]).map(([e, n]) => n.diff(e, "month")), l = Math.floor(x.reduce((e, n) => e + n, 0) / 12), d = x.reduce((e, n) => e + n, 0) % 12, E = () => D((e) => !e), h = () => v((e) => !e), F = (e) => {
15
- (e.key === "Enter" || e.key === " ") && h();
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
- p,
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
- w && /* @__PURE__ */ t(
58
- T,
58
+ I && /* @__PURE__ */ t(
59
+ Y,
59
60
  {
60
- open: I,
61
- onClose: h,
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
- p,
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: c.content(1),
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(f, { name: "InfoFill", size: "small", color: "tictoccroc-teacher.brand.green" }),
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 + c.content(1)}px)`
93
+ transform: `translateX(-${100 + d.content(1)}px)`
93
94
  }
94
95
  },
95
96
  style: {
96
97
  top: -8,
97
- left: `calc(50% + 100px - ${c.content(0.5)}px)`
98
+ left: `calc(50% + 100px - ${d.content(0.5)}px)`
98
99
  },
99
100
  children: /* @__PURE__ */ t(
100
- f,
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: h,
109
- onKeyDown: F,
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
- (l > 0 || d > 0) && /* @__PURE__ */ i(p, { tag: "p", variant: "h4R", inlineCSS: { "& strong": { fontWeight: 700 } }, children: [
122
+ (c > 0 || h > 0) && /* @__PURE__ */ i(f, { tag: "p", variant: "h4R", inlineCSS: { "& strong": { fontWeight: 700 } }, children: [
122
123
  "총 ",
123
- l > 0 && /* @__PURE__ */ i(m, { children: [
124
- /* @__PURE__ */ t("strong", { children: l }),
124
+ c > 0 && /* @__PURE__ */ i(p, { children: [
125
+ /* @__PURE__ */ t("strong", { children: c }),
125
126
  "년"
126
127
  ] }),
127
- d > 0 && /* @__PURE__ */ i(m, { children: [
128
- l > 0 && /* @__PURE__ */ t(m, { children: " " }),
129
- /* @__PURE__ */ t("strong", { children: d }),
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
- j && /* @__PURE__ */ t(
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: b.toArray(y).slice(0, a ? void 0 : 3)
144
+ children: z(l).slice(0, !s || a ? void 0 : 3)
144
145
  }
145
146
  ),
146
- C && k && /* @__PURE__ */ t(
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
- Y,
155
+ M,
155
156
  {
156
157
  fullWidth: !0,
157
158
  variant: "text",
158
159
  color: "secondary",
159
- endAdornment: /* @__PURE__ */ t(f, { name: a ? "ChevronUpLine" : "ChevronDownLine" }),
160
- onClick: E,
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
- !C && S && /* @__PURE__ */ t(
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: S
177
+ children: y
177
178
  }
178
179
  )
179
180
  ]
@@ -181,5 +182,5 @@ function G({
181
182
  );
182
183
  }
183
184
  export {
184
- G as default
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;
@@ -1,18 +1,23 @@
1
- import { jsx as n, jsxs as l } from "react/jsx-runtime";
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
3
  import y from "@dotss/ui/core/useTheme";
5
- import { useCheckHoverPossible as C } from "@dotss/ui/hooks";
6
- function E({ name: b, acquisitionDate: h, status: o, ...e }) {
7
- const t = u(), { isHoverPossible: s } = C(), {
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(), r = typeof e.onClick == "function";
11
- return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ l(
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: r ? 0 : -1,
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: (i) => {
29
+ onKeyDown: (n) => {
25
30
  var f;
26
- (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.currentTarget.click()), (f = e.onKeyDown) == null || f.call(e, i);
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-${t}`,
29
- "aria-describedby": `certification-item-desc-${t}`,
33
+ "aria-labelledby": `certification-item-name-${l}`,
34
+ "aria-describedby": `certification-item-desc-${l}`,
30
35
  ...e,
31
36
  inlineCSS: {
32
- cursor: r ? "pointer" : "default",
33
- ...r && {
37
+ cursor: i ? "pointer" : "default",
38
+ ...i && {
34
39
  "&:active": {
35
40
  backgroundColor: m[10]
36
41
  }
37
42
  },
38
- ...r && s ? {
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__ */ l(a, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
47
- /* @__PURE__ */ n(a, { alignItems: "center", gap: 1, children: /* @__PURE__ */ l(g, { id: `certification-item-name-${t}`, tag: "p", variant: "b2M", children: [
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__ */ n(
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__ */ n(
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__ */ l(g, { id: `certification-item-desc-${t}`, tag: "p", variant: "b5R", color: "grey.50", children: [
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__ */ n(c, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
89
+ i && /* @__PURE__ */ t(c, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
85
90
  ]
86
91
  }
87
92
  ) });
88
93
  }
89
94
  export {
90
- E as default
95
+ D as default
91
96
  };
@@ -1,20 +1,21 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import { useState as m, Children as p, isValidElement as v } from "react";
3
- import { Flexbox as i, Typography as y, Tooltip as j, Icon as a, Button as k } from "@dotss/ui";
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
- function z({
7
- children: s,
8
- action: d,
9
- showTooltip: g = !1,
10
- enableToggle: f = !1,
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: r } = D(), [x, C] = m(!1), [o, S] = m(!1), h = p.toArray(s).filter(v).filter((e) => e.type === E), u = h.length > 0, b = h.length > 3, l = () => C((e) => !e), I = (e) => {
14
- (e.key === "Enter" || e.key === " ") && l();
15
- }, w = () => S((e) => !e);
16
- return /* @__PURE__ */ c(
17
- i,
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__ */ c(i, { alignItems: "center", justifyContent: "center", gap: 1, children: [
31
+ /* @__PURE__ */ s(e, { alignItems: "center", justifyContent: "center", gap: 1, children: [
31
32
  /* @__PURE__ */ t(
32
- y,
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
- g && /* @__PURE__ */ t(
42
+ x && /* @__PURE__ */ t(
42
43
  j,
43
44
  {
44
- open: x,
45
- onClose: l,
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__ */ c(
51
- y,
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: r.content(1),
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(a, { name: "InfoFill", size: "small", color: "tictoccroc-teacher.brand.green" }),
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 + r.content(1)}px)`
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 - ${r.content(0.5)}px)`
82
+ left: `calc(50% + 82.5px - ${l.content(0.5)}px)`
82
83
  },
83
84
  children: /* @__PURE__ */ t(
84
- a,
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: l,
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
- u && /* @__PURE__ */ t(
104
- i,
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: p.toArray(s).slice(0, o ? void 0 : 3)
111
+ children: O(c).slice(
112
+ 0,
113
+ !r || o ? void 0 : 3
114
+ )
111
115
  }
112
116
  ),
113
- f && b && /* @__PURE__ */ t(
114
- i,
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(a, { name: o ? "ChevronUpLine" : "ChevronDownLine" }),
127
- onClick: w,
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
- !f && d && /* @__PURE__ */ t(
136
- i,
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: d
147
+ children: f
144
148
  }
145
149
  )
146
150
  ]
@@ -148,5 +152,5 @@ function z({
148
152
  );
149
153
  }
150
154
  export {
151
- z as default
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' | 'GRADUATED';
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;
@@ -1,18 +1,26 @@
1
- import { jsx as i, jsxs as t } from "react/jsx-runtime";
2
- import { useId as y } from "react";
3
- import { Flexbox as c, Typography as d, Icon as m } from "@dotss/ui";
4
- import C from "@dotss/ui/core/useTheme";
5
- import { useCheckHoverPossible as v } from "@dotss/ui/hooks";
6
- function R({ name: f, status: g, major: u, academicStatus: o, ...e }) {
7
- const l = y(), { isHoverPossible: s } = v(), {
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import { Flexbox as c, Typography as m, Icon as g } from "@dotss/ui";
3
+ import s from "@dotss/ui/core/useTheme";
4
+ import { useCheckHoverPossible as C } from "@dotss/ui/hooks";
5
+ function R({
6
+ name: f,
7
+ status: d,
8
+ major: u,
9
+ academicStatus: o,
10
+ id: r,
11
+ regDatetime: v,
12
+ priority: x,
13
+ ...e
14
+ }) {
15
+ const { isHoverPossible: y } = C(), {
8
16
  palette: { grey: a },
9
17
  spacing: b
10
- } = C(), r = typeof e.onClick == "function";
11
- return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ t(
18
+ } = s(), n = typeof e.onClick == "function";
19
+ return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l(
12
20
  c,
13
21
  {
14
22
  role: "button",
15
- tabIndex: r ? 0 : -1,
23
+ tabIndex: n ? 0 : -1,
16
24
  alignItems: "center",
17
25
  gap: 4,
18
26
  pt: 2,
@@ -21,21 +29,21 @@ function R({ name: f, status: g, major: u, academicStatus: o, ...e }) {
21
29
  pr: 4,
22
30
  ml: -4,
23
31
  mr: -4,
24
- onKeyDown: (n) => {
32
+ onKeyDown: (i) => {
25
33
  var h;
26
- (n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click()), (h = e.onKeyDown) == null || h.call(e, n);
34
+ (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.currentTarget.click()), (h = e.onKeyDown) == null || h.call(e, i);
27
35
  },
28
- "aria-labelledby": `education-item-title-${l}`,
29
- "aria-describedby": `education-item-desc-${l}`,
36
+ "aria-labelledby": `education-item-title-${r}`,
37
+ "aria-describedby": `education-item-desc-${r}`,
30
38
  ...e,
31
39
  inlineCSS: {
32
- cursor: r ? "pointer" : "default",
33
- ...r && {
40
+ cursor: n ? "pointer" : "default",
41
+ ...n && {
34
42
  "&:active": {
35
43
  backgroundColor: a[10]
36
44
  }
37
45
  },
38
- ...r && s ? {
46
+ ...n && y ? {
39
47
  "&:hover": {
40
48
  backgroundColor: a[10]
41
49
  }
@@ -43,12 +51,12 @@ function R({ name: f, status: g, major: u, academicStatus: o, ...e }) {
43
51
  ...e == null ? void 0 : e.inlineCSS
44
52
  },
45
53
  children: [
46
- /* @__PURE__ */ t(c, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
47
- /* @__PURE__ */ t(d, { id: `education-item-title-${l}`, tag: "p", variant: "b2M", children: [
54
+ /* @__PURE__ */ l(c, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
55
+ /* @__PURE__ */ l(m, { id: `education-item-title-${r}`, tag: "p", variant: "b2M", children: [
48
56
  f,
49
- g === "VERIFIED" && // TODO 아이콘 교체 필요
50
- /* @__PURE__ */ i(
51
- m,
57
+ d === "VERIFIED" && // TODO 아이콘 교체 필요
58
+ /* @__PURE__ */ t(
59
+ g,
52
60
  {
53
61
  name: "InfoFill",
54
62
  size: "small",
@@ -61,8 +69,8 @@ function R({ name: f, status: g, major: u, academicStatus: o, ...e }) {
61
69
  }
62
70
  }
63
71
  ),
64
- g === "REJECTED" && /* @__PURE__ */ i(
65
- m,
72
+ d === "REJECTED" && /* @__PURE__ */ t(
73
+ g,
66
74
  {
67
75
  name: "AlertFill",
68
76
  size: "small",
@@ -76,11 +84,11 @@ function R({ name: f, status: g, major: u, academicStatus: o, ...e }) {
76
84
  }
77
85
  )
78
86
  ] }),
79
- /* @__PURE__ */ i(d, { id: `education-item-desc-${l}`, tag: "p", variant: "b5R", color: "grey.50", children: u })
87
+ /* @__PURE__ */ t(m, { id: `education-item-desc-${r}`, tag: "p", variant: "b5R", color: "grey.50", children: u })
80
88
  ] }),
81
- /* @__PURE__ */ t(c, { alignItems: "center", gap: 2, children: [
82
- /* @__PURE__ */ t(
83
- d,
89
+ /* @__PURE__ */ l(c, { alignItems: "center", gap: 2, children: [
90
+ /* @__PURE__ */ l(
91
+ m,
84
92
  {
85
93
  tag: "p",
86
94
  variant: "b4R",
@@ -90,11 +98,11 @@ function R({ name: f, status: g, major: u, academicStatus: o, ...e }) {
90
98
  children: [
91
99
  o === "STUDYING" && "재학중",
92
100
  o === "ONBREAK" && "휴학",
93
- o === "GRADUATED" && "졸업"
101
+ o === "FINISHED" && "졸업"
94
102
  ]
95
103
  }
96
104
  ),
97
- /* @__PURE__ */ i(m, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
105
+ n && /* @__PURE__ */ t(g, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
98
106
  ] })
99
107
  ]
100
108
  }