@dotss/tictoccroc 0.4.2 → 0.5.0

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 (204) hide show
  1. package/dist/Calendar-BOLCHnjh.js +97 -0
  2. package/dist/TimePicker-BwACyeBR.js +120 -0
  3. package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
  4. package/dist/index.mjs +105 -200
  5. package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
  6. package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
  7. package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
  8. package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
  9. package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
  10. package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
  11. package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
  12. package/dist/parent/b2b/components/NameField/index.mjs +5 -4
  13. package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
  14. package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
  15. package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
  16. package/dist/parent/b2b/components/Title/Title.mjs +22 -16
  17. package/dist/parent/b2b/components/Title/index.mjs +4 -3
  18. package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
  19. package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
  20. package/dist/parent/b2b/components/index.mjs +9 -19
  21. package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
  22. package/dist/parent/b2b/utils/index.mjs +2 -4
  23. package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -108
  24. package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
  25. package/dist/parent/notification/components/index.mjs +2 -4
  26. package/dist/parent/notification/utils/index.mjs +2 -4
  27. package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
  28. package/dist/purify.es-D3W4zDrg.js +549 -0
  29. package/dist/shared/components/Calendar/Calendar.mjs +2 -80
  30. package/dist/shared/components/Calendar/index.mjs +5 -4
  31. package/dist/shared/components/Carousel/Carousel.mjs +184 -210
  32. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
  33. package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
  34. package/dist/shared/components/Carousel/index.mjs +6 -6
  35. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
  36. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
  37. package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
  38. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
  39. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
  40. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
  41. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
  42. package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
  43. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
  44. package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
  45. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
  46. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
  47. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
  48. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
  49. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
  50. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
  51. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
  52. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
  53. package/dist/shared/components/ChatKit/index.mjs +13 -29
  54. package/dist/shared/components/Image/Image.d.ts +2 -0
  55. package/dist/shared/components/Image/Image.error.mjs +34 -40
  56. package/dist/shared/components/Image/Image.mjs +247 -289
  57. package/dist/shared/components/Image/index.mjs +6 -6
  58. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
  59. package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
  60. package/dist/shared/components/Masonry/Masonry.mjs +240 -276
  61. package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
  62. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
  63. package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
  64. package/dist/shared/components/Masonry/index.mjs +6 -6
  65. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
  66. package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
  67. package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
  68. package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
  69. package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
  70. package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
  71. package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
  72. package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
  73. package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
  74. package/dist/shared/components/MediaDialog/index.mjs +9 -12
  75. package/dist/shared/components/Roller/Roller.mjs +99 -132
  76. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
  77. package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
  78. package/dist/shared/components/Roller/index.mjs +6 -6
  79. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
  80. package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
  81. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
  82. package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
  83. package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
  84. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
  85. package/dist/shared/components/Scheduler/index.mjs +8 -10
  86. package/dist/shared/components/Swiper/Swiper.mjs +238 -283
  87. package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
  88. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
  89. package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
  90. package/dist/shared/components/Swiper/index.mjs +6 -6
  91. package/dist/shared/components/TextField/TextField.mjs +44 -55
  92. package/dist/shared/components/TextField/index.mjs +5 -4
  93. package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
  94. package/dist/shared/components/TimePicker/index.mjs +5 -4
  95. package/dist/shared/components/index.mjs +36 -75
  96. package/dist/shared/hooks/index.mjs +4 -8
  97. package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
  98. package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
  99. package/dist/shared/hooks/useInView/index.mjs +5 -4
  100. package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
  101. package/dist/shared/hooks/useInView/useInView.mjs +37 -47
  102. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
  103. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
  104. package/dist/shared/typings/common.mjs +6 -4
  105. package/dist/shared/typings/index.mjs +2 -4
  106. package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
  107. package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
  108. package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
  109. package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
  110. package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
  111. package/dist/shared/utils/combineRef/index.mjs +5 -4
  112. package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
  113. package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
  114. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
  115. package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
  116. package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
  117. package/dist/shared/utils/getDateRange/index.mjs +5 -4
  118. package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
  119. package/dist/shared/utils/getImageUrl/index.mjs +5 -6
  120. package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
  121. package/dist/shared/utils/getTimeRange/index.mjs +5 -4
  122. package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
  123. package/dist/shared/utils/getVimeoId/index.mjs +5 -4
  124. package/dist/shared/utils/index.mjs +18 -36
  125. package/dist/shared/utils/isAndroid/index.mjs +5 -4
  126. package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
  127. package/dist/shared/utils/isApp/index.mjs +5 -4
  128. package/dist/shared/utils/isApp/isApp.mjs +4 -4
  129. package/dist/shared/utils/isDesktop/index.mjs +5 -4
  130. package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
  131. package/dist/shared/utils/isIos/index.mjs +5 -4
  132. package/dist/shared/utils/isIos/isIos.mjs +5 -5
  133. package/dist/shared/utils/isServer/index.mjs +4 -3
  134. package/dist/shared/utils/isServer/isServer.mjs +4 -4
  135. package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
  136. package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
  137. package/dist/shared/utils/parseQueryString/index.mjs +4 -3
  138. package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
  139. package/dist/shared/utils/share/index.mjs +5 -4
  140. package/dist/shared/utils/share/share.mjs +12 -14
  141. package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
  142. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
  143. package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
  144. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
  145. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
  146. package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
  147. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
  148. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
  149. package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
  150. package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
  151. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
  152. package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
  153. package/dist/teacher/home/components/index.mjs +9 -18
  154. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
  155. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
  156. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
  157. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
  158. package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
  159. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
  160. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
  161. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
  162. package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
  163. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
  164. package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
  165. package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
  166. package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
  167. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
  168. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
  169. package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
  170. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
  171. package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
  172. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
  173. package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
  174. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
  175. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
  176. package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
  177. package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
  178. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
  179. package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
  180. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
  181. package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
  182. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
  183. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
  184. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
  185. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
  186. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
  187. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
  188. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
  189. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
  190. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -12
  191. package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
  192. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
  193. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
  194. package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
  195. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
  196. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
  197. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
  198. package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
  199. package/dist/teacher/profile/components/index.mjs +24 -48
  200. package/dist/teacher/profile/utils/index.mjs +2 -4
  201. package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
  202. package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
  203. package/package.json +1 -1
  204. package/dist/purify.es-BGaRrCfO.js +0 -553
@@ -1,142 +1,113 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { useState as h, Children as b, isValidElement as v } from "react";
3
- import { Flexbox as n, Typography as m, Tooltip as E, Icon as s, Button as j } from "@dotss/ui";
4
- import k from "@dotss/ui/core/useTheme";
5
- import D from "./EducationItem/EducationItem.mjs";
6
- function B({
7
- children: f,
8
- action: d,
9
- showTooltip: u = !1,
10
- enableToggle: l = !1,
11
- ...i
12
- }) {
13
- const { spacing: p } = k(), [x, y] = h(!1), [o, g] = h(!1), r = b.toArray(f).filter(v).filter((t) => t.type === D), C = r.length > 0, S = r.length > 3, a = () => y((t) => !t), w = (t) => {
14
- (t.key === "Enter" || t.key === " ") && a();
15
- }, I = () => g((t) => !t);
16
- return /* @__PURE__ */ c(
17
- n,
18
- {
19
- tag: "section",
20
- flexDirection: "column",
21
- alignItems: "flex-start",
22
- "aria-labelledby": "education-section-title",
23
- gap: 2,
24
- ...i,
25
- inlineCSS: {
26
- width: "100%",
27
- ...i == null ? void 0 : i.inlineCSS
28
- },
29
- children: [
30
- /* @__PURE__ */ c(n, { alignItems: "center", justifyContent: "center", gap: 1, children: [
31
- /* @__PURE__ */ e(
32
- m,
33
- {
34
- id: "education-section-title",
35
- tag: "h2",
36
- variant: "h2B",
37
- "aria-label": "선생님 학력 목록",
38
- children: "학력"
39
- }
40
- ),
41
- u && /* @__PURE__ */ e(
42
- E,
43
- {
44
- open: x,
45
- onClose: a,
46
- color: "secondary",
47
- id: "education-section-tooltip",
48
- bodyId: "education-section-tooltip-body",
49
- body: /* @__PURE__ */ c(
50
- m,
51
- {
52
- tag: "p",
53
- variant: "b4R",
54
- color: "grey.white",
55
- noWrap: !0,
56
- inlineCSS: {
57
- display: "flex",
58
- gap: p.content(1),
59
- "& svg": {
60
- width: "20px !important",
61
- height: "20px !important",
62
- flexShrink: 0
63
- }
64
- },
65
- children: [
66
- "째깍악어가 확인한 정보는",
67
- /* @__PURE__ */ e(s, { name: "CertifiedFill", size: "small", color: "tictoccroc-teacher.brand.green" }),
68
- "인증 마크가 붙어요!"
69
- ]
70
- }
71
- ),
72
- offset: { x: 98 },
73
- arrowOffset: { x: -98 },
74
- children: /* @__PURE__ */ e(
75
- s,
76
- {
77
- role: "button",
78
- tabIndex: 0,
79
- name: "TooltipFill",
80
- size: "small",
81
- color: "grey.50",
82
- onClick: a,
83
- onKeyDown: w,
84
- "aria-label": "추가 정보 안내",
85
- inlineCSS: {
86
- cursor: "pointer"
87
- }
88
- }
89
- )
90
- }
91
- )
92
- ] }),
93
- C && /* @__PURE__ */ e(
94
- n,
95
- {
96
- id: "education-section-education-items",
97
- tag: "ul",
98
- flexDirection: "column",
99
- inlineCSS: { width: "inherit" },
100
- children: r.slice(0, !l || o ? void 0 : 3)
101
- }
102
- ),
103
- l && S && /* @__PURE__ */ e(
104
- n,
105
- {
106
- alignItems: "center",
107
- justifyContent: "center",
108
- mt: 2,
109
- inlineCSS: { width: "inherit" },
110
- children: /* @__PURE__ */ e(
111
- j,
112
- {
113
- fullWidth: !0,
114
- variant: "text",
115
- color: "secondary",
116
- endAdornment: /* @__PURE__ */ e(s, { name: o ? "ChevronUpLine" : "ChevronDownLine" }),
117
- onClick: I,
118
- "aria-controls": "education-section-education-items",
119
- "aria-expanded": o,
120
- children: o ? "접기" : "더 보기"
121
- }
122
- )
123
- }
124
- ),
125
- !l && d && /* @__PURE__ */ e(
126
- n,
127
- {
128
- mt: 4,
129
- flexGrow: 1,
130
- alignItems: "center",
131
- justifyContent: "center",
132
- inlineCSS: { width: "inherit" },
133
- children: d
134
- }
135
- )
136
- ]
137
- }
138
- );
1
+ import e from "./EducationItem/index.mjs";
2
+ import { Children as t, isValidElement as n, useState as r } from "react";
3
+ import { Button as i, Flexbox as a, Icon as o, Tooltip as s, Typography as c } from "@dotss/ui";
4
+ import l from "@dotss/ui/core/useTheme";
5
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ //#region teacher/profile/components/EducationSection/EducationSection.tsx
7
+ function f({ children: f, action: p, showTooltip: m = !1, enableToggle: h = !1, ...g }) {
8
+ let { spacing: _ } = l(), [v, y] = r(!1), [b, x] = r(!1), S = t.toArray(f).filter(n).filter((t) => t.type === e), C = S.length > 0, w = S.length > 3, T = () => y((e) => !e), E = (e) => {
9
+ (e.key === "Enter" || e.key === " ") && T();
10
+ }, D = () => x((e) => !e);
11
+ return /* @__PURE__ */ d(a, {
12
+ tag: "section",
13
+ flexDirection: "column",
14
+ alignItems: "flex-start",
15
+ "aria-labelledby": "education-section-title",
16
+ gap: 2,
17
+ ...g,
18
+ inlineCSS: {
19
+ width: "100%",
20
+ ...g?.inlineCSS
21
+ },
22
+ children: [
23
+ /* @__PURE__ */ d(a, {
24
+ alignItems: "center",
25
+ justifyContent: "center",
26
+ gap: 1,
27
+ children: [/* @__PURE__ */ u(c, {
28
+ id: "education-section-title",
29
+ tag: "h2",
30
+ variant: "h2B",
31
+ "aria-label": "선생님 학력 목록",
32
+ children: "학력"
33
+ }), m && /* @__PURE__ */ u(s, {
34
+ open: v,
35
+ onClose: T,
36
+ color: "secondary",
37
+ id: "education-section-tooltip",
38
+ bodyId: "education-section-tooltip-body",
39
+ body: /* @__PURE__ */ d(c, {
40
+ tag: "p",
41
+ variant: "b4R",
42
+ color: "grey.white",
43
+ noWrap: !0,
44
+ inlineCSS: {
45
+ display: "flex",
46
+ gap: _.content(1),
47
+ "& svg": {
48
+ width: "20px !important",
49
+ height: "20px !important",
50
+ flexShrink: 0
51
+ }
52
+ },
53
+ children: [
54
+ "째깍악어가 확인한 정보는",
55
+ /* @__PURE__ */ u(o, {
56
+ name: "CertifiedFill",
57
+ size: "small",
58
+ color: "tictoccroc-teacher.brand.green"
59
+ }),
60
+ "인증 마크가 붙어요!"
61
+ ]
62
+ }),
63
+ offset: { x: 98 },
64
+ arrowOffset: { x: -98 },
65
+ children: /* @__PURE__ */ u(o, {
66
+ role: "button",
67
+ tabIndex: 0,
68
+ name: "TooltipFill",
69
+ size: "small",
70
+ color: "grey.50",
71
+ onClick: T,
72
+ onKeyDown: E,
73
+ "aria-label": "추가 정보 안내",
74
+ inlineCSS: { cursor: "pointer" }
75
+ })
76
+ })]
77
+ }),
78
+ C && /* @__PURE__ */ u(a, {
79
+ id: "education-section-education-items",
80
+ tag: "ul",
81
+ flexDirection: "column",
82
+ inlineCSS: { width: "inherit" },
83
+ children: S.slice(0, !h || b ? void 0 : 3)
84
+ }),
85
+ h && w && /* @__PURE__ */ u(a, {
86
+ alignItems: "center",
87
+ justifyContent: "center",
88
+ mt: 2,
89
+ inlineCSS: { width: "inherit" },
90
+ children: /* @__PURE__ */ u(i, {
91
+ fullWidth: !0,
92
+ variant: "text",
93
+ color: "secondary",
94
+ endAdornment: /* @__PURE__ */ u(o, { name: b ? "ChevronUpLine" : "ChevronDownLine" }),
95
+ onClick: D,
96
+ "aria-controls": "education-section-education-items",
97
+ "aria-expanded": b,
98
+ children: b ? "접기" : "더 보기"
99
+ })
100
+ }),
101
+ !h && p && /* @__PURE__ */ u(a, {
102
+ mt: 4,
103
+ flexGrow: 1,
104
+ alignItems: "center",
105
+ justifyContent: "center",
106
+ inlineCSS: { width: "inherit" },
107
+ children: p
108
+ })
109
+ ]
110
+ });
139
111
  }
140
- export {
141
- B as default
142
- };
112
+ //#endregion
113
+ export { f as default };
@@ -1,6 +1,6 @@
1
- import o from "./EducationSection.mjs";
2
- import { default as r } from "./EducationItem/EducationItem.mjs";
3
- export {
4
- r as EducationItem,
5
- o as default
6
- };
1
+ import e from "./EducationItem/index.mjs";
2
+ import t from "./EducationSection.mjs";
3
+ //#region teacher/profile/components/EducationSection/index.ts
4
+ var n = t;
5
+ //#endregion
6
+ export { e as EducationItem, n as default };
@@ -1,103 +1,108 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { useState as f, useRef as z, useEffect as j } from "react";
3
- import { Flexbox as i, Icon as u, Typography as t, Button as D } from "@dotss/ui";
4
- import H from "@dotss/ui/core/useTheme";
5
- import Y from "dayjs";
6
- import { getChildLabel as k } from "../ParentReviewSection.utils.mjs";
7
- function B({
8
- score: l = 0,
9
- content: c,
10
- careTypeLabel: v,
11
- childrenInfo: x,
12
- regDatetime: w,
13
- ...b
14
- }) {
15
- var h, g;
16
- const {
17
- palette: { brand: s }
18
- } = H(), [y, C] = f(!1), [a, S] = f(!1), o = z(null), { label: d, other: p } = k(x), I = Y(w), R = () => S((r) => !r);
19
- return j(() => {
20
- const r = () => {
21
- if (!o.current) return;
22
- const m = o.current, E = parseInt(window.getComputedStyle(m).lineHeight), L = m.scrollHeight, M = Math.ceil(L / E);
23
- C(M > 3);
24
- };
25
- return r(), window.addEventListener("resize", r), () => {
26
- window.removeEventListener("resize", r);
27
- };
28
- }, [c]), /* @__PURE__ */ n(i, { tag: "li", flexDirection: "column", gap: 2, flexGrow: 1, ...b, children: [
29
- /* @__PURE__ */ n(i, { alignItems: "center", gap: 1, children: [
30
- /* @__PURE__ */ e(u, { name: "ReviewFill", size: "small", color: "tictoccroc-teacher.brand.yellow" }),
31
- /* @__PURE__ */ e(t, { tag: "span", variant: "h4M", "aria-label": `${l}점`, children: l })
32
- ] }),
33
- /* @__PURE__ */ n(i, { alignItems: "center", justifyContent: "space-between", gap: 1, children: [
34
- /* @__PURE__ */ n(i, { flexGrow: 1, gap: 1, alignItems: "center", children: [
35
- /* @__PURE__ */ e(t, { tag: "span", variant: "b4M", color: "grey.70", children: v }),
36
- /* @__PURE__ */ e(
37
- t,
38
- {
39
- tag: "span",
40
- variant: "b5M",
41
- color: "grey.70",
42
- textAlign: "center",
43
- "aria-hidden": !0,
44
- inlineCSS: {
45
- width: 7,
46
- height: 20,
47
- lineHeight: "20px"
48
- },
49
- children: "•"
50
- }
51
- ),
52
- /* @__PURE__ */ n(
53
- t,
54
- {
55
- tag: "p",
56
- variant: "b4M",
57
- color: "grey.70",
58
- inlineCSS: {
59
- "& > span": {
60
- color: d.includes("여아") ? (h = s.extend) == null ? void 0 : h.pink : (g = s.extend) == null ? void 0 : g.blue
61
- }
62
- },
63
- children: [
64
- /* @__PURE__ */ e("span", { children: d }),
65
- p ? ` ${p}` : ""
66
- ]
67
- }
68
- )
69
- ] }),
70
- /* @__PURE__ */ e(t, { tag: "span", variant: "b4R", color: "grey.70", children: I.format("YYYY년 M월 D일") })
71
- ] }),
72
- /* @__PURE__ */ n(i, { flexDirection: "column", children: [
73
- /* @__PURE__ */ e(
74
- t,
75
- {
76
- ref: o,
77
- id: "parent-review-content",
78
- tag: "p",
79
- variant: "b4R",
80
- lineClamp: a ? void 0 : 3,
81
- children: c
82
- }
83
- ),
84
- y && /* @__PURE__ */ e(
85
- D,
86
- {
87
- variant: "text",
88
- size: "xSmall",
89
- color: "secondary",
90
- endAdornment: /* @__PURE__ */ e(u, { name: a ? "ChevronUpLine" : "ChevronDownLine" }),
91
- onClick: R,
92
- "aria-expanded": a,
93
- "aria-controls": "parent-review-content",
94
- inlineCSS: { marginLeft: "auto" },
95
- children: a ? "접기" : "더 보기"
96
- }
97
- )
98
- ] })
99
- ] });
1
+ import { getChildLabel as e } from "../ParentReviewSection.utils.mjs";
2
+ import { useEffect as t, useRef as n, useState as r } from "react";
3
+ import { Button as i, Flexbox as a, Icon as o, Typography as s } from "@dotss/ui";
4
+ import c from "@dotss/ui/core/useTheme";
5
+ import l from "dayjs";
6
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
+ //#region teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.tsx
8
+ function f({ score: f = 0, content: p, careTypeLabel: m, childrenInfo: h, regDatetime: g, ..._ }) {
9
+ let { palette: { brand: v } } = c(), [y, b] = r(!1), [x, S] = r(!1), C = n(null), { label: w, other: T } = e(h), E = l(g), D = () => S((e) => !e);
10
+ return t(() => {
11
+ let e = () => {
12
+ if (!C.current) return;
13
+ let e = C.current, t = parseInt(window.getComputedStyle(e).lineHeight), n = e.scrollHeight;
14
+ b(Math.ceil(n / t) > 3);
15
+ };
16
+ return e(), window.addEventListener("resize", e), () => {
17
+ window.removeEventListener("resize", e);
18
+ };
19
+ }, [p]), /* @__PURE__ */ d(a, {
20
+ tag: "li",
21
+ flexDirection: "column",
22
+ gap: 2,
23
+ flexGrow: 1,
24
+ ..._,
25
+ children: [
26
+ /* @__PURE__ */ d(a, {
27
+ alignItems: "center",
28
+ gap: 1,
29
+ children: [/* @__PURE__ */ u(o, {
30
+ name: "ReviewFill",
31
+ size: "small",
32
+ color: "tictoccroc-teacher.brand.yellow"
33
+ }), /* @__PURE__ */ u(s, {
34
+ tag: "span",
35
+ variant: "h4M",
36
+ "aria-label": `${f}점`,
37
+ children: f
38
+ })]
39
+ }),
40
+ /* @__PURE__ */ d(a, {
41
+ alignItems: "center",
42
+ justifyContent: "space-between",
43
+ gap: 1,
44
+ children: [/* @__PURE__ */ d(a, {
45
+ flexGrow: 1,
46
+ gap: 1,
47
+ alignItems: "center",
48
+ children: [
49
+ /* @__PURE__ */ u(s, {
50
+ tag: "span",
51
+ variant: "b4M",
52
+ color: "grey.70",
53
+ children: m
54
+ }),
55
+ /* @__PURE__ */ u(s, {
56
+ tag: "span",
57
+ variant: "b5M",
58
+ color: "grey.70",
59
+ textAlign: "center",
60
+ "aria-hidden": !0,
61
+ inlineCSS: {
62
+ width: 7,
63
+ height: 20,
64
+ lineHeight: "20px"
65
+ },
66
+ children: "•"
67
+ }),
68
+ /* @__PURE__ */ d(s, {
69
+ tag: "p",
70
+ variant: "b4M",
71
+ color: "grey.70",
72
+ inlineCSS: { "& > span": { color: w.includes("여아") ? v.extend?.pink : v.extend?.blue } },
73
+ children: [/* @__PURE__ */ u("span", { children: w }), T ? ` ${T}` : ""]
74
+ })
75
+ ]
76
+ }), /* @__PURE__ */ u(s, {
77
+ tag: "span",
78
+ variant: "b4R",
79
+ color: "grey.70",
80
+ children: E.format("YYYY년 M월 D일")
81
+ })]
82
+ }),
83
+ /* @__PURE__ */ d(a, {
84
+ flexDirection: "column",
85
+ children: [/* @__PURE__ */ u(s, {
86
+ ref: C,
87
+ id: "parent-review-content",
88
+ tag: "p",
89
+ variant: "b4R",
90
+ lineClamp: x ? void 0 : 3,
91
+ children: p
92
+ }), y && /* @__PURE__ */ u(i, {
93
+ variant: "text",
94
+ size: "xSmall",
95
+ color: "secondary",
96
+ endAdornment: /* @__PURE__ */ u(o, { name: x ? "ChevronUpLine" : "ChevronDownLine" }),
97
+ onClick: D,
98
+ "aria-expanded": x,
99
+ "aria-controls": "parent-review-content",
100
+ inlineCSS: { marginLeft: "auto" },
101
+ children: x ? "접기" : "더 보기"
102
+ })]
103
+ })
104
+ ]
105
+ });
100
106
  }
101
- export {
102
- B as default
103
- };
107
+ //#endregion
108
+ export { f as default };
@@ -1,4 +1,5 @@
1
- import r from "./ParentReviewCard.mjs";
2
- export {
3
- r as default
4
- };
1
+ import e from "./ParentReviewCard.mjs";
2
+ //#region teacher/profile/components/ParentReviewSection/ParentReviewCard/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };