@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,5 +1,5 @@
1
- import i from "./AbilityBadge.mjs";
2
- export {
3
- i as AbilityBadge,
4
- i as default
5
- };
1
+ import e from "./AbilityBadge.mjs";
2
+ //#region teacher/profile/components/AbilityCollection/AbilityBadge/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { e as AbilityBadge, t as default };
@@ -1,110 +1,107 @@
1
- import { jsxs as T, jsx as a } from "react/jsx-runtime";
2
- import { useState as b, useRef as N, Children as A, isValidElement as I, cloneElement as q } from "react";
3
- import { Flexbox as s, Typography as B, Button as j, Icon as G } from "@dotss/ui";
4
- import U from "@dotss/ui/core/useTheme";
5
- import z from "./AbilityBadge/AbilityBadge.mjs";
6
- function Q({ children: $, enableToggle: l = !1, ...c }) {
7
- const { spacing: u } = U(), [n, R] = b(!1), [k, d] = b(0), [F, f] = b(0), i = N(null), m = A.toArray($).filter(I).filter((e) => e.type === z), D = () => R((e) => !e), E = (e) => (t) => {
8
- const r = Number(t.currentTarget.getAttribute("data-row") || -1), o = Number(t.currentTarget.getAttribute("data-col") || -1);
9
- d(r), f(o), e == null || e(t);
10
- }, L = (e) => (t) => {
11
- var g, w, y, h, C, x, S, v;
12
- const r = Number(t.currentTarget.getAttribute("data-row") || -1), o = Number(t.currentTarget.getAttribute("data-col") || -1);
13
- switch (t.key) {
14
- case "ArrowUp": {
15
- if (t.preventDefault(), r === 0)
16
- return;
17
- d(r - 1), (w = (g = i.current) == null ? void 0 : g.querySelector(`[data-row="${r - 1}"][data-col="${o}"]`)) == null || w.focus();
18
- break;
19
- }
20
- case "ArrowDown": {
21
- if (t.preventDefault(), r === 2 || r === 1 && l && !n)
22
- return;
23
- d(r + 1), (h = (y = i.current) == null ? void 0 : y.querySelector(`[data-row="${r + 1}"][data-col="${o}"]`)) == null || h.focus();
24
- break;
25
- }
26
- case "ArrowLeft": {
27
- if (t.preventDefault(), o === 0)
28
- return;
29
- f(o - 1), (x = (C = i.current) == null ? void 0 : C.querySelector(`[data-row="${r}"][data-col="${o - 1}"]`)) == null || x.focus();
30
- break;
31
- }
32
- case "ArrowRight": {
33
- if (t.preventDefault(), o === 2)
34
- return;
35
- f(o + 1), (v = (S = i.current) == null ? void 0 : S.querySelector(`[data-row="${r}"][data-col="${o + 1}"]`)) == null || v.focus();
36
- break;
37
- }
38
- case "Enter":
39
- case " ":
40
- t.preventDefault(), t.currentTarget.click();
41
- break;
42
- }
43
- e == null || e(t);
44
- };
45
- return /* @__PURE__ */ T(
46
- s,
47
- {
48
- tag: "section",
49
- flexDirection: "column",
50
- gap: 4,
51
- "aria-labelledby": "ability-collection-title",
52
- ...c,
53
- inlineCSS: { width: "100%", ...c == null ? void 0 : c.inlineCSS },
54
- children: [
55
- /* @__PURE__ */ a(B, { id: "ability-collection-title", tag: "h2", variant: "h2B", children: "능력치 배지" }),
56
- /* @__PURE__ */ a(
57
- s,
58
- {
59
- ref: i,
60
- id: "ability-badge-grid",
61
- role: "grid",
62
- gap: 2,
63
- pt: 3,
64
- pb: 3,
65
- alignItems: "center",
66
- inlineCSS: {
67
- display: "grid",
68
- gridTemplateColumns: "repeat(3, 1fr)",
69
- width: "inherit",
70
- columnGap: u.content(2),
71
- rowGap: u.content(6),
72
- maxHeight: n ? void 0 : l ? `calc(2 * 74px + ${u.content(12)}px)` : void 0,
73
- overflow: "hidden"
74
- },
75
- children: A.map(m, (e, t) => {
76
- const r = Math.floor(t / 3), o = t % 3;
77
- return /* @__PURE__ */ a(s, { role: "gridcell", children: q(e, {
78
- tabIndex: k === r && F === o ? 0 : -1,
79
- // @ts-expect-error 데이터 속성 타입 오류 무시
80
- "data-row": r,
81
- "data-col": o,
82
- "aria-posinset": t + 1,
83
- "aria-setsize": m.length,
84
- onFocus: E(e.props.onFocus),
85
- onKeyDown: L(e.props.onKeyDown),
86
- ...e.props
87
- }) }, `ability-badge-gridcell-${t}`);
88
- })
89
- }
90
- ),
91
- l && /* @__PURE__ */ a(s, { alignItems: "center", justifyContent: "center", inlineCSS: { width: "inherit" }, children: /* @__PURE__ */ a(
92
- j,
93
- {
94
- fullWidth: !0,
95
- variant: "text",
96
- color: "secondary",
97
- endAdornment: /* @__PURE__ */ a(G, { name: n ? "ChevronUpLine" : "ChevronDownLine" }),
98
- onClick: D,
99
- "aria-controls": "ability-badge-grid",
100
- "aria-expanded": n,
101
- children: n ? "접기" : "더 보기"
102
- }
103
- ) })
104
- ]
105
- }
106
- );
1
+ import e from "./AbilityBadge/index.mjs";
2
+ import { Children as t, cloneElement as n, isValidElement as r, useRef as i, useState as a } from "react";
3
+ import { Button as o, Flexbox as s, Icon as c, Typography as l } from "@dotss/ui";
4
+ import u from "@dotss/ui/core/useTheme";
5
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
+ //#region teacher/profile/components/AbilityCollection/AbilityCollection.tsx
7
+ function p({ children: p, enableToggle: m = !1, ...h }) {
8
+ let { spacing: g } = u(), [_, v] = a(!1), [y, b] = a(0), [x, S] = a(0), C = i(null), w = t.toArray(p).filter(r).filter((t) => t.type === e), T = () => v((e) => !e), E = (e) => (t) => {
9
+ let n = Number(t.currentTarget.getAttribute("data-row") || -1), r = Number(t.currentTarget.getAttribute("data-col") || -1);
10
+ b(n), S(r), e?.(t);
11
+ }, D = (e) => (t) => {
12
+ let n = Number(t.currentTarget.getAttribute("data-row") || -1), r = Number(t.currentTarget.getAttribute("data-col") || -1);
13
+ switch (t.key) {
14
+ case "ArrowUp":
15
+ if (t.preventDefault(), n === 0) return;
16
+ b(n - 1), C.current?.querySelector(`[data-row="${n - 1}"][data-col="${r}"]`)?.focus();
17
+ break;
18
+ case "ArrowDown":
19
+ if (t.preventDefault(), n === 2 || n === 1 && m && !_) return;
20
+ b(n + 1), C.current?.querySelector(`[data-row="${n + 1}"][data-col="${r}"]`)?.focus();
21
+ break;
22
+ case "ArrowLeft":
23
+ if (t.preventDefault(), r === 0) return;
24
+ S(r - 1), C.current?.querySelector(`[data-row="${n}"][data-col="${r - 1}"]`)?.focus();
25
+ break;
26
+ case "ArrowRight":
27
+ if (t.preventDefault(), r === 2) return;
28
+ S(r + 1), C.current?.querySelector(`[data-row="${n}"][data-col="${r + 1}"]`)?.focus();
29
+ break;
30
+ case "Enter":
31
+ case " ":
32
+ t.preventDefault(), t.currentTarget.click();
33
+ break;
34
+ }
35
+ e?.(t);
36
+ };
37
+ return /* @__PURE__ */ f(s, {
38
+ tag: "section",
39
+ flexDirection: "column",
40
+ gap: 4,
41
+ "aria-labelledby": "ability-collection-title",
42
+ ...h,
43
+ inlineCSS: {
44
+ width: "100%",
45
+ ...h?.inlineCSS
46
+ },
47
+ children: [
48
+ /* @__PURE__ */ d(l, {
49
+ id: "ability-collection-title",
50
+ tag: "h2",
51
+ variant: "h2B",
52
+ children: "능력치 배지"
53
+ }),
54
+ /* @__PURE__ */ d(s, {
55
+ ref: C,
56
+ id: "ability-badge-grid",
57
+ role: "grid",
58
+ gap: 2,
59
+ pt: 3,
60
+ pb: 3,
61
+ alignItems: "center",
62
+ inlineCSS: {
63
+ display: "grid",
64
+ gridTemplateColumns: "repeat(3, 1fr)",
65
+ width: "inherit",
66
+ columnGap: g.content(2),
67
+ rowGap: g.content(6),
68
+ maxHeight: _ ? void 0 : m ? `calc(2 * 74px + ${g.content(12)}px)` : void 0,
69
+ overflow: "hidden"
70
+ },
71
+ children: t.map(w, (e, t) => {
72
+ let r = Math.floor(t / 3), i = t % 3;
73
+ return /* @__PURE__ */ d(s, {
74
+ role: "gridcell",
75
+ children: n(e, {
76
+ tabIndex: y === r && x === i ? 0 : -1,
77
+ "data-row": r,
78
+ "data-col": i,
79
+ "aria-posinset": t + 1,
80
+ "aria-setsize": w.length,
81
+ onFocus: E(e.props.onFocus),
82
+ onKeyDown: D(e.props.onKeyDown),
83
+ ...e.props
84
+ })
85
+ }, `ability-badge-gridcell-${t}`);
86
+ })
87
+ }),
88
+ m && /* @__PURE__ */ d(s, {
89
+ alignItems: "center",
90
+ justifyContent: "center",
91
+ inlineCSS: { width: "inherit" },
92
+ children: /* @__PURE__ */ d(o, {
93
+ fullWidth: !0,
94
+ variant: "text",
95
+ color: "secondary",
96
+ endAdornment: /* @__PURE__ */ d(c, { name: _ ? "ChevronUpLine" : "ChevronDownLine" }),
97
+ onClick: T,
98
+ "aria-controls": "ability-badge-grid",
99
+ "aria-expanded": _,
100
+ children: _ ? "접기" : "더 보기"
101
+ })
102
+ })
103
+ ]
104
+ });
107
105
  }
108
- export {
109
- Q as default
110
- };
106
+ //#endregion
107
+ export { p as default };
@@ -1,61 +1,57 @@
1
- function t(a, n) {
2
- let e = "";
3
- switch (a) {
4
- case "창의악어":
5
- e = "creative-icon.png";
6
- break;
7
- case "영어악어":
8
- e = "english-icon.png";
9
- break;
10
- case "영유아악어":
11
- e = "infant-icon.png";
12
- break;
13
- case "산업안전 보건교육":
14
- e = "osh-education-icon.png";
15
- break;
16
- case "아동학대 예방교육":
17
- e = "cap-education-icon.png";
18
- break;
19
- case "응급상황 대처교육":
20
- e = "emergency-response-training-icon.png";
21
- break;
22
- case "놀이돌봄 기초교육":
23
- e = "basic-play-care-education-icon.png";
24
- break;
25
- }
26
- return e = n ? e : `incomplete-${e}`, e;
1
+ //#region teacher/profile/components/AbilityCollection/AbilityCollection.utils.ts
2
+ function e(e, t) {
3
+ let n = "";
4
+ switch (e) {
5
+ case "창의악어":
6
+ n = "creative-icon.png";
7
+ break;
8
+ case "영어악어":
9
+ n = "english-icon.png";
10
+ break;
11
+ case "영유아악어":
12
+ n = "infant-icon.png";
13
+ break;
14
+ case "산업안전 보건교육":
15
+ n = "osh-education-icon.png";
16
+ break;
17
+ case "아동학대 예방교육":
18
+ n = "cap-education-icon.png";
19
+ break;
20
+ case "응급상황 대처교육":
21
+ n = "emergency-response-training-icon.png";
22
+ break;
23
+ case "놀이돌봄 기초교육":
24
+ n = "basic-play-care-education-icon.png";
25
+ break;
26
+ default: break;
27
+ }
28
+ return n = t ? n : `incomplete-${n}`, n;
27
29
  }
28
- const i = {
29
- creativeFlag: "창의악어",
30
- englishFlag: "영어악어",
31
- infantsFlag: "영유아악어"
32
- }, c = {
33
- 창의악어: {
34
- label: "창의악어 배지를 취득해야 창의미술 수업을 할 수 있어요",
35
- description: `창의미술에 대한 이해도와 만들기 능력이 검증된
36
- 미술 수업 특화 선생님이에요.`
37
- },
38
- 영어악어: {
39
- label: "영어악어 배지를 취득해야 영어 수업을 할 수 있어요",
40
- description: `아이들의 발달 상황에 맞도록 영어로 상호작용을
41
- 자유롭게 할 수 있는 회화 실력이 검증된
42
- 영어 수업 특화 선생님이에요.`
43
- },
44
- 영유아악어: {
45
- label: "영유아 배지를 취득해야 12개월~24개월 아이 돌봄이 가능해요",
46
- description: `영유아 발달에 대한 이해와 기저귀 갈이 등의
47
- 기본 돌봄 역량이 검증된 선생님이에요.`
48
- }
30
+ var t = {
31
+ creativeFlag: "창의악어",
32
+ englishFlag: "영어악어",
33
+ infantsFlag: "영유아악어"
34
+ }, n = {
35
+ 창의악어: {
36
+ label: "창의악어 배지를 취득해야 창의미술 수업을 할 수 있어요",
37
+ description: "창의미술에 대한 이해도와 만들기 능력이 검증된\n미술 수업 특화 선생님이에요."
38
+ },
39
+ 영어악어: {
40
+ label: "영어악어 배지를 취득해야 영어 수업을 할 수 있어요",
41
+ description: "아이들의 발달 상황에 맞도록 영어로 상호작용을\n자유롭게 할 수 있는 회화 실력이 검증된\n영어 수업 특화 선생님이에요."
42
+ },
43
+ 영유아악어: {
44
+ label: "영유아 배지를 취득해야 12개월~24개월 아이 돌봄이 가능해요",
45
+ description: "영유아 발달에 대한 이해와 기저귀 갈이 등의\n기본 돌봄 역량이 검증된 선생님이에요."
46
+ }
49
47
  };
50
- function o(a) {
51
- return Object.keys(i).map((n) => ({
52
- key: n,
53
- name: i[n],
54
- completed: a[n] === "Y",
55
- ...c[i[n]]
56
- }));
48
+ function r(e) {
49
+ return Object.keys(t).map((r) => ({
50
+ key: r,
51
+ name: t[r],
52
+ completed: e[r] === "Y",
53
+ ...n[t[r]]
54
+ }));
57
55
  }
58
- export {
59
- o as getAbilityCollection,
60
- t as getIconFileName
61
- };
56
+ //#endregion
57
+ export { r as getAbilityCollection, e as getIconFileName };
@@ -1,8 +1,7 @@
1
- import o from "./AbilityCollection.mjs";
2
- import { default as l } from "./AbilityBadge/AbilityBadge.mjs";
3
- import { getAbilityCollection as a } from "./AbilityCollection.utils.mjs";
4
- export {
5
- l as AbilityBadge,
6
- o as default,
7
- a as getAbilityCollection
8
- };
1
+ import { getAbilityCollection as e } from "./AbilityCollection.utils.mjs";
2
+ import t from "./AbilityBadge/index.mjs";
3
+ import n from "./AbilityCollection.mjs";
4
+ //#region teacher/profile/components/AbilityCollection/index.ts
5
+ var r = n;
6
+ //#endregion
7
+ export { t as AbilityBadge, r as default, e as getAbilityCollection };
@@ -1,105 +1,74 @@
1
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
- import { Children as j, isValidElement as $ } from "react";
3
- import { Flexbox as o, Typography as w, Button as A, Icon as E } from "@dotss/ui";
4
- import G from "../../../../shared/components/Masonry/Masonry.mjs";
5
- import "../../../../shared/components/Masonry/MasonryBlock/MasonryBlock.mjs";
6
- import B from "./ActivityGalleryItem/ActivityGalleryItem.mjs";
7
- function U({
8
- children: s,
9
- onClickViewAll: y,
10
- action: m,
11
- hideHeader: l = !1,
12
- masonryProps: {
13
- columnCount: c = 2,
14
- rowCount: f = 2,
15
- spacing: g = 2,
16
- edgeSpacing: b = 0,
17
- direction: h = "horizontal",
18
- defaultContainerWidth: u = 360,
19
- defaultContainerHeight: v = 0,
20
- ...d
21
- } = {},
22
- ...r
23
- }) {
24
- const i = j.toArray(s).filter($).filter((t) => t.type === B), I = i.length > 0, x = (t, a, C) => {
25
- let n = t.props.type === "VIDEO" || t.props.type === "VIMEO" || t.props.type === "YOUTUBE" ? "동영상" : "사진";
26
- n = t.props.primary ? `대표 ${n}` : n;
27
- const S = {
28
- role: "button",
29
- "aria-label": `${n} (${C}개 중 ${a + 1}번째)`,
30
- ...t.props
31
- };
32
- return /* @__PURE__ */ e(t.type, { ...S }, `activity-gallery-item-${a}`);
33
- };
34
- return /* @__PURE__ */ p(
35
- o,
36
- {
37
- tag: "section",
38
- flexDirection: "column",
39
- "aria-labelledby": l ? void 0 : "activity-gallery-title",
40
- "aria-label": l ? "선생님 활동 갤러리" : void 0,
41
- gap: 4,
42
- ...r,
43
- inlineCSS: {
44
- width: "100%",
45
- ...r == null ? void 0 : r.inlineCSS
46
- },
47
- children: [
48
- !l && /* @__PURE__ */ p(o, { alignItems: "center", justifyContent: "space-between", gap: 2, children: [
49
- /* @__PURE__ */ e(
50
- w,
51
- {
52
- id: "activity-gallery-title",
53
- tag: "h2",
54
- variant: "h2B",
55
- "aria-label": "선생님 활동 갤러리",
56
- children: "활동 갤러리"
57
- }
58
- ),
59
- typeof y == "function" && /* @__PURE__ */ e(
60
- A,
61
- {
62
- variant: "text",
63
- size: "small",
64
- color: "secondary",
65
- endAdornment: /* @__PURE__ */ e(E, { name: "ChevronRightLine" }),
66
- onClick: y,
67
- children: "전체보기"
68
- }
69
- )
70
- ] }),
71
- I && /* @__PURE__ */ e(
72
- G,
73
- {
74
- rowCount: f,
75
- columnCount: c,
76
- spacing: g,
77
- edgeSpacing: b,
78
- direction: h,
79
- defaultContainerWidth: u,
80
- defaultContainerHeight: v,
81
- role: "group",
82
- "aria-label": "콘텐츠 목록",
83
- ...d,
84
- children: i.map((t, a) => x(t, a, i.length))
85
- },
86
- i.map((t) => t.key).join(",")
87
- ),
88
- m && /* @__PURE__ */ e(
89
- o,
90
- {
91
- mt: 2,
92
- flexGrow: 1,
93
- alignItems: "center",
94
- justifyContent: "center",
95
- inlineCSS: { width: "inherit" },
96
- children: m
97
- }
98
- )
99
- ]
100
- }
101
- );
1
+ import e from "./ActivityGalleryItem/index.mjs";
2
+ import t from "../../../../shared/components/Masonry/index.mjs";
3
+ import { Children as n, isValidElement as r } from "react";
4
+ import { Button as i, Flexbox as a, Icon as o, Typography as s } from "@dotss/ui";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
+ //#region teacher/profile/components/ActivityGallery/ActivityGallery.tsx
7
+ function u({ children: u, onClickViewAll: d, action: f, hideHeader: p = !1, masonryProps: { columnCount: m = 2, rowCount: h = 2, spacing: g = 2, edgeSpacing: _ = 0, direction: v = "horizontal", defaultContainerWidth: y = 360, defaultContainerHeight: b = 0, ...x } = {}, ...S }) {
8
+ let C = n.toArray(u).filter(r).filter((t) => t.type === e), w = C.length > 0, T = (e, t, n) => {
9
+ let r = e.props.type === "VIDEO" || e.props.type === "VIMEO" || e.props.type === "YOUTUBE" ? "동영상" : "사진";
10
+ r = e.props.primary ? `대표 ${r}` : r;
11
+ let i = {
12
+ role: "button",
13
+ "aria-label": `${r} (${n}개 중 ${t + 1}번째)`,
14
+ ...e.props
15
+ };
16
+ return /* @__PURE__ */ c(e.type, { ...i }, `activity-gallery-item-${t}`);
17
+ };
18
+ return /* @__PURE__ */ l(a, {
19
+ tag: "section",
20
+ flexDirection: "column",
21
+ "aria-labelledby": p ? void 0 : "activity-gallery-title",
22
+ "aria-label": p ? "선생님 활동 갤러리" : void 0,
23
+ gap: 4,
24
+ ...S,
25
+ inlineCSS: {
26
+ width: "100%",
27
+ ...S?.inlineCSS
28
+ },
29
+ children: [
30
+ !p && /* @__PURE__ */ l(a, {
31
+ alignItems: "center",
32
+ justifyContent: "space-between",
33
+ gap: 2,
34
+ children: [/* @__PURE__ */ c(s, {
35
+ id: "activity-gallery-title",
36
+ tag: "h2",
37
+ variant: "h2B",
38
+ "aria-label": "선생님 활동 갤러리",
39
+ children: "활동 갤러리"
40
+ }), typeof d == "function" && /* @__PURE__ */ c(i, {
41
+ variant: "text",
42
+ size: "small",
43
+ color: "secondary",
44
+ endAdornment: /* @__PURE__ */ c(o, { name: "ChevronRightLine" }),
45
+ onClick: d,
46
+ children: "전체보기"
47
+ })]
48
+ }),
49
+ w && /* @__PURE__ */ c(t, {
50
+ rowCount: h,
51
+ columnCount: m,
52
+ spacing: g,
53
+ edgeSpacing: _,
54
+ direction: v,
55
+ defaultContainerWidth: y,
56
+ defaultContainerHeight: b,
57
+ role: "group",
58
+ "aria-label": "콘텐츠 목록",
59
+ ...x,
60
+ children: C.map((e, t) => T(e, t, C.length))
61
+ }, C.map((e) => e.key).join(",")),
62
+ f && /* @__PURE__ */ c(a, {
63
+ mt: 2,
64
+ flexGrow: 1,
65
+ alignItems: "center",
66
+ justifyContent: "center",
67
+ inlineCSS: { width: "inherit" },
68
+ children: f
69
+ })
70
+ ]
71
+ });
102
72
  }
103
- export {
104
- U as default
105
- };
73
+ //#endregion
74
+ export { u as default };