@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,54 +1,62 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Typography as l, Flexbox as g, Label as u } from "@dotss/ui";
3
- import x from "@dotss/ui/core/useTheme";
4
- import y from "dayjs";
5
- import C from "../../../../../shared/components/Roller/RollerBlock/RollerBlock.mjs";
6
- import { getChildLabel as S } from "../CareNoteSection.utils.mjs";
7
- function D({ content: h, keywords: t, regDatetime: p, childrenInfo: s, ...n }) {
8
- var c, m;
9
- const {
10
- palette: { grey: f, brand: i }
11
- } = x(), { label: a, other: o } = S(s), b = y(p);
12
- return /* @__PURE__ */ r(
13
- C,
14
- {
15
- p: 4,
16
- flexDirection: "column",
17
- gap: 3,
18
- ...n,
19
- inlineCSS: {
20
- minHeight: 220,
21
- borderRadius: 12,
22
- backgroundColor: f.white,
23
- ...n == null ? void 0 : n.inlineCSS
24
- },
25
- children: [
26
- /* @__PURE__ */ e(l, { tag: "p", variant: "b4R", color: "grey.70", lineClamp: 6, inlineCSS: { flexGrow: 1 }, children: h }),
27
- t.length > 0 && /* @__PURE__ */ e(g, { alignItems: "center", gap: 1, flexWrap: "wrap", children: t.map((d) => /* @__PURE__ */ e(u, { variant: "ghost", color: "yellow", size: "small", children: d }, `activity-keyword-${d}`)) }),
28
- /* @__PURE__ */ r(g, { alignItems: "center", justifyContent: "space-between", gap: 1, children: [
29
- /* @__PURE__ */ e(l, { tag: "p", variant: "b4R", color: "grey.70", children: b.format("YYYY년 M월 D일") }),
30
- /* @__PURE__ */ r(
31
- l,
32
- {
33
- tag: "p",
34
- variant: "b4M",
35
- color: "grey.70",
36
- inlineCSS: {
37
- "& > span": {
38
- color: a.includes("여아") ? (c = i.extend) == null ? void 0 : c.pink : (m = i.extend) == null ? void 0 : m.blue
39
- }
40
- },
41
- children: [
42
- /* @__PURE__ */ e("span", { children: a }),
43
- o ? ` ${o}` : ""
44
- ]
45
- }
46
- )
47
- ] })
48
- ]
49
- }
50
- );
1
+ import e from "../../../../../shared/components/Roller/RollerBlock/index.mjs";
2
+ import { getChildLabel as t } from "../CareNoteSection.utils.mjs";
3
+ import { Flexbox as n, Label as r, Typography as i } from "@dotss/ui";
4
+ import a from "@dotss/ui/core/useTheme";
5
+ import o from "dayjs";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ //#region teacher/profile/components/CareNoteSection/CareNote/CareNote.tsx
8
+ function l({ content: l, keywords: u, regDatetime: d, childrenInfo: f, ...p }) {
9
+ let { palette: { grey: m, brand: h } } = a(), { label: g, other: _ } = t(f), v = o(d);
10
+ return /* @__PURE__ */ c(e, {
11
+ p: 4,
12
+ flexDirection: "column",
13
+ gap: 3,
14
+ ...p,
15
+ inlineCSS: {
16
+ minHeight: 220,
17
+ borderRadius: 12,
18
+ backgroundColor: m.white,
19
+ ...p?.inlineCSS
20
+ },
21
+ children: [
22
+ /* @__PURE__ */ s(i, {
23
+ tag: "p",
24
+ variant: "b4R",
25
+ color: "grey.70",
26
+ lineClamp: 6,
27
+ inlineCSS: { flexGrow: 1 },
28
+ children: l
29
+ }),
30
+ u.length > 0 && /* @__PURE__ */ s(n, {
31
+ alignItems: "center",
32
+ gap: 1,
33
+ flexWrap: "wrap",
34
+ children: u.map((e) => /* @__PURE__ */ s(r, {
35
+ variant: "ghost",
36
+ color: "yellow",
37
+ size: "small",
38
+ children: e
39
+ }, `activity-keyword-${e}`))
40
+ }),
41
+ /* @__PURE__ */ c(n, {
42
+ alignItems: "center",
43
+ justifyContent: "space-between",
44
+ gap: 1,
45
+ children: [/* @__PURE__ */ s(i, {
46
+ tag: "p",
47
+ variant: "b4R",
48
+ color: "grey.70",
49
+ children: v.format("YYYY년 M월 D일")
50
+ }), /* @__PURE__ */ c(i, {
51
+ tag: "p",
52
+ variant: "b4M",
53
+ color: "grey.70",
54
+ inlineCSS: { "& > span": { color: g.includes("여아") ? h.extend?.pink : h.extend?.blue } },
55
+ children: [/* @__PURE__ */ s("span", { children: g }), _ ? ` ${_}` : ""]
56
+ })]
57
+ })
58
+ ]
59
+ });
51
60
  }
52
- export {
53
- D as default
54
- };
61
+ //#endregion
62
+ export { l as default };
@@ -1,4 +1,5 @@
1
- import o from "./CareNote.mjs";
2
- export {
3
- o as default
4
- };
1
+ import e from "./CareNote.mjs";
2
+ //#region teacher/profile/components/CareNoteSection/CareNote/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,81 +1,72 @@
1
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as s, Children as h } from "react";
3
- import { Flexbox as o, Typography as l, Button as p, Icon as f } from "@dotss/ui";
4
- import u from "@dotss/ui/core/useTheme";
5
- import C from "../../../../shared/components/Roller/Roller.mjs";
6
- const w = s(
7
- ({ children: r, totalCount: a = 0, onClickViewAll: c, ...n }, m) => {
8
- const {
9
- palette: { background: g },
10
- spacing: e
11
- } = u(), d = h.count(r);
12
- return /* @__PURE__ */ t(
13
- o,
14
- {
15
- ref: m,
16
- tag: "section",
17
- pt: 10,
18
- pb: 10,
19
- pl: 4,
20
- pr: 4,
21
- gap: 4,
22
- flexDirection: "column",
23
- "aria-labelledby": "care-note-section-title",
24
- ...n,
25
- inlineCSS: {
26
- width: "100%",
27
- backgroundColor: g.primary,
28
- ...n == null ? void 0 : n.inlineCSS
29
- },
30
- children: [
31
- /* @__PURE__ */ t(o, { alignItems: "center", justifyContent: "space-between", gap: 1, children: [
32
- /* @__PURE__ */ i(o, { alignItems: "center", gap: 2, children: /* @__PURE__ */ t(l, { id: "care-note-section-title", tag: "h2", variant: "h2B", children: [
33
- "선생님의 수업 노트",
34
- a > 0 && /* @__PURE__ */ t(
35
- l,
36
- {
37
- tag: "span",
38
- variant: "h4R",
39
- color: "grey.70",
40
- inlineCSS: { marginLeft: e.content(2), verticalAlign: 2 },
41
- children: [
42
- "(",
43
- a.toLocaleString(),
44
- "개)"
45
- ]
46
- }
47
- )
48
- ] }) }),
49
- typeof c == "function" && /* @__PURE__ */ i(
50
- p,
51
- {
52
- variant: "text",
53
- size: "small",
54
- color: "secondary",
55
- endAdornment: /* @__PURE__ */ i(f, { name: "ChevronRightLine" }),
56
- onClick: c,
57
- children: "전체보기"
58
- }
59
- )
60
- ] }),
61
- /* @__PURE__ */ i(
62
- C,
63
- {
64
- rowCount: 1,
65
- spacing: 3,
66
- inlineCSS: {
67
- width: `calc(100% + ${e.content(8)}px)`,
68
- gridAutoColumns: d > 1 ? `calc(100% - ${e.content(8)}px)` : "100%",
69
- margin: `0 -${e.content(4)}px`
70
- },
71
- children: r
72
- }
73
- )
74
- ]
75
- }
76
- );
77
- }
78
- );
79
- export {
80
- w as default
81
- };
1
+ import e from "../../../../shared/components/Roller/index.mjs";
2
+ import { Children as t, forwardRef as n } from "react";
3
+ import { Button as r, Flexbox as i, Icon as a, Typography as o } from "@dotss/ui";
4
+ import s from "@dotss/ui/core/useTheme";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
+ //#region teacher/profile/components/CareNoteSection/CareNoteSection.tsx
7
+ var u = n(({ children: n, totalCount: u = 0, onClickViewAll: d, ...f }, p) => {
8
+ let { palette: { background: m }, spacing: h } = s(), g = t.count(n);
9
+ return /* @__PURE__ */ l(i, {
10
+ ref: p,
11
+ tag: "section",
12
+ pt: 10,
13
+ pb: 10,
14
+ pl: 4,
15
+ pr: 4,
16
+ gap: 4,
17
+ flexDirection: "column",
18
+ "aria-labelledby": "care-note-section-title",
19
+ ...f,
20
+ inlineCSS: {
21
+ width: "100%",
22
+ backgroundColor: m.primary,
23
+ ...f?.inlineCSS
24
+ },
25
+ children: [/* @__PURE__ */ l(i, {
26
+ alignItems: "center",
27
+ justifyContent: "space-between",
28
+ gap: 1,
29
+ children: [/* @__PURE__ */ c(i, {
30
+ alignItems: "center",
31
+ gap: 2,
32
+ children: /* @__PURE__ */ l(o, {
33
+ id: "care-note-section-title",
34
+ tag: "h2",
35
+ variant: "h2B",
36
+ children: ["선생님의 수업 노트", u > 0 && /* @__PURE__ */ l(o, {
37
+ tag: "span",
38
+ variant: "h4R",
39
+ color: "grey.70",
40
+ inlineCSS: {
41
+ marginLeft: h.content(2),
42
+ verticalAlign: 2
43
+ },
44
+ children: [
45
+ "(",
46
+ u.toLocaleString(),
47
+ "개)"
48
+ ]
49
+ })]
50
+ })
51
+ }), typeof d == "function" && /* @__PURE__ */ c(r, {
52
+ variant: "text",
53
+ size: "small",
54
+ color: "secondary",
55
+ endAdornment: /* @__PURE__ */ c(a, { name: "ChevronRightLine" }),
56
+ onClick: d,
57
+ children: "전체보기"
58
+ })]
59
+ }), /* @__PURE__ */ c(e, {
60
+ rowCount: 1,
61
+ spacing: 3,
62
+ inlineCSS: {
63
+ width: `calc(100% + ${h.content(8)}px)`,
64
+ gridAutoColumns: g > 1 ? `calc(100% - ${h.content(8)}px)` : "100%",
65
+ margin: `0 -${h.content(4)}px`
66
+ },
67
+ children: n
68
+ })]
69
+ });
70
+ });
71
+ //#endregion
72
+ export { u as default };
@@ -1,13 +1,18 @@
1
- import c from "../../../../shared/utils/birthDateToAge/birthDateToAge.mjs";
2
- function b(t) {
3
- if (!t || t.length === 0)
4
- return { label: "", other: "" };
5
- const [e] = t;
6
- if (!(e != null && e.childBirth) || !(e != null && e.childGender))
7
- return { label: "", other: "" };
8
- const o = c(e == null ? void 0 : e.childBirth), n = (e == null ? void 0 : e.childGender) === "0" ? "남아" : "여아", r = `${o}세 ${n}`, a = t.length > 1 ? `외 ${t.length - 1}명` : "";
9
- return { label: r, other: a };
1
+ import e from "../../../../shared/utils/birthDateToAge/index.mjs";
2
+ //#region teacher/profile/components/CareNoteSection/CareNoteSection.utils.ts
3
+ function t(t) {
4
+ if (!t || t.length === 0) return {
5
+ label: "",
6
+ other: ""
7
+ };
8
+ let [n] = t;
9
+ return !n?.childBirth || !n?.childGender ? {
10
+ label: "",
11
+ other: ""
12
+ } : {
13
+ label: `${e(n?.childBirth)}세 ${n?.childGender === "0" ? "남아" : "여아"}`,
14
+ other: t.length > 1 ? `외 ${t.length - 1}명` : ""
15
+ };
10
16
  }
11
- export {
12
- b as getChildLabel
13
- };
17
+ //#endregion
18
+ export { t as getChildLabel };
@@ -1,6 +1,6 @@
1
- import o from "./CareNoteSection.mjs";
2
- import { default as a } from "./CareNote/CareNote.mjs";
3
- export {
4
- a as CareNote,
5
- o as default
6
- };
1
+ import e from "./CareNote/index.mjs";
2
+ import t from "./CareNoteSection.mjs";
3
+ //#region teacher/profile/components/CareNoteSection/index.ts
4
+ var n = t;
5
+ //#endregion
6
+ export { e as CareNote, n as default };
@@ -1,135 +1,109 @@
1
- import { jsx as i, jsxs as e, Fragment as s } from "react/jsx-runtime";
2
- import { Flexbox as a, Label as p, Typography as f, Icon as b } from "@dotss/ui";
3
- import w from "@dotss/ui/core/useTheme";
4
- import { useCheckHoverPossible as E } from "@dotss/ui/hooks";
5
- import c from "dayjs";
6
- function T({
7
- title: x,
8
- status: y,
9
- startDate: Y,
10
- endDate: o,
11
- primary: k = !1,
12
- id: S,
13
- ...n
14
- }) {
15
- const { isHoverPossible: I } = E(), {
16
- palette: { grey: m },
17
- spacing: g
18
- } = w(), l = typeof n.onClick == "function", r = c(Y), u = o ? c(o) : c(), h = u.diff(r, "month"), d = Math.floor(h / 12), C = r.isSame(u, "year") && h % 12 < 1 ? 1 : h % 12;
19
- return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ e(
20
- a,
21
- {
22
- role: "button",
23
- tabIndex: l ? 0 : -1,
24
- alignItems: "center",
25
- gap: 4,
26
- pt: 2,
27
- pb: 2,
28
- pl: 4,
29
- pr: 4,
30
- ml: -4,
31
- mr: -4,
32
- onKeyDown: (t) => {
33
- var v;
34
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.currentTarget.click()), (v = n.onKeyDown) == null || v.call(n, t);
35
- },
36
- "aria-labelledby": `career-item-title-${S}`,
37
- ...n,
38
- inlineCSS: {
39
- cursor: l ? "pointer" : "default",
40
- ...l && {
41
- "&:active": {
42
- backgroundColor: m[10]
43
- }
44
- },
45
- ...l && I ? {
46
- "&:hover": {
47
- backgroundColor: m[10]
48
- }
49
- } : {},
50
- ...n == null ? void 0 : n.inlineCSS
51
- },
52
- children: [
53
- /* @__PURE__ */ e(a, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
54
- /* @__PURE__ */ e(a, { alignItems: "center", gap: 1, children: [
55
- k && /* @__PURE__ */ i(
56
- p,
57
- {
58
- variant: "outlined",
59
- size: "small",
60
- color: "orange",
61
- inlineCSS: {
62
- whiteSpace: "nowrap",
63
- marginRight: g.content(1)
64
- },
65
- children: "대표"
66
- }
67
- ),
68
- /* @__PURE__ */ e(f, { id: `career-item-title-${S}`, tag: "p", variant: "b2M", children: [
69
- x,
70
- y === "VERIFIED" && /* @__PURE__ */ i(
71
- b,
72
- {
73
- name: "CertifiedFill",
74
- size: "small",
75
- color: "tictoccroc-teacher.brand.green",
76
- "aria-label": "인증됨",
77
- inlineCSS: {
78
- minWidth: 20,
79
- verticalAlign: "-5px",
80
- marginLeft: g.content(1)
81
- }
82
- }
83
- ),
84
- y === "REJECTED" && /* @__PURE__ */ i(
85
- b,
86
- {
87
- name: "AlertFill",
88
- size: "small",
89
- color: "etc.red",
90
- "aria-label": "인증 안됨",
91
- inlineCSS: {
92
- minWidth: 20,
93
- verticalAlign: "-5px",
94
- marginLeft: g.content(1)
95
- }
96
- }
97
- )
98
- ] })
99
- ] }),
100
- /* @__PURE__ */ e(f, { tag: "p", variant: "b5R", color: "grey.50", children: [
101
- r != null && r.isValid() ? `${r.format("YYYY년 M월")} ~ ` : "",
102
- o ? c(o).format("YYYY년 M월") : "현재"
103
- ] })
104
- ] }),
105
- /* @__PURE__ */ e(a, { alignItems: "center", gap: 2, children: [
106
- /* @__PURE__ */ e(
107
- f,
108
- {
109
- tag: "p",
110
- variant: "h5R",
111
- color: "grey.70",
112
- noWrap: !0,
113
- inlineCSS: { "& strong": { color: m[100], fontWeight: 700 } },
114
- children: [
115
- d > 0 && /* @__PURE__ */ e(s, { children: [
116
- /* @__PURE__ */ i("strong", { children: d }),
117
- "년"
118
- ] }),
119
- C > 0 && /* @__PURE__ */ e(s, { children: [
120
- d > 0 && /* @__PURE__ */ i(s, { children: " " }),
121
- /* @__PURE__ */ i("strong", { children: C }),
122
- "개월"
123
- ] })
124
- ]
125
- }
126
- ),
127
- l && /* @__PURE__ */ i(b, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
128
- ] })
129
- ]
130
- }
131
- ) });
1
+ import { Flexbox as e, Icon as t, Label as n, Typography as r } from "@dotss/ui";
2
+ import i from "@dotss/ui/core/useTheme";
3
+ import a from "dayjs";
4
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ import { useCheckHoverPossible as l } from "@dotss/ui/hooks";
6
+ //#region teacher/profile/components/CareerSection/CareerItem/CareerItem.tsx
7
+ function u({ title: u, status: d, startDate: f, endDate: p, primary: m = !1, id: h, ...g }) {
8
+ let { isHoverPossible: _ } = l(), { palette: { grey: v }, spacing: y } = i(), b = typeof g.onClick == "function", x = a(f), S = p ? a(p) : a(), C = S.diff(x, "month"), w = Math.floor(C / 12), T = x.isSame(S, "year") && C % 12 < 1 ? 1 : C % 12;
9
+ return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c(e, {
10
+ role: "button",
11
+ tabIndex: b ? 0 : -1,
12
+ alignItems: "center",
13
+ gap: 4,
14
+ pt: 2,
15
+ pb: 2,
16
+ pl: 4,
17
+ pr: 4,
18
+ ml: -4,
19
+ mr: -4,
20
+ onKeyDown: (e) => {
21
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click()), g.onKeyDown?.(e);
22
+ },
23
+ "aria-labelledby": `career-item-title-${h}`,
24
+ ...g,
25
+ inlineCSS: {
26
+ cursor: b ? "pointer" : "default",
27
+ ...b && { "&:active": { backgroundColor: v[10] } },
28
+ ...b && _ ? { "&:hover": { backgroundColor: v[10] } } : {},
29
+ ...g?.inlineCSS
30
+ },
31
+ children: [/* @__PURE__ */ c(e, {
32
+ flexDirection: "column",
33
+ gap: 1,
34
+ flexGrow: 1,
35
+ children: [/* @__PURE__ */ c(e, {
36
+ alignItems: "center",
37
+ gap: 1,
38
+ children: [m && /* @__PURE__ */ s(n, {
39
+ variant: "outlined",
40
+ size: "small",
41
+ color: "orange",
42
+ inlineCSS: {
43
+ whiteSpace: "nowrap",
44
+ marginRight: y.content(1)
45
+ },
46
+ children: "대표"
47
+ }), /* @__PURE__ */ c(r, {
48
+ id: `career-item-title-${h}`,
49
+ tag: "p",
50
+ variant: "b2M",
51
+ children: [
52
+ u,
53
+ d === "VERIFIED" && /* @__PURE__ */ s(t, {
54
+ name: "CertifiedFill",
55
+ size: "small",
56
+ color: "tictoccroc-teacher.brand.green",
57
+ "aria-label": "인증됨",
58
+ inlineCSS: {
59
+ minWidth: 20,
60
+ verticalAlign: "-5px",
61
+ marginLeft: y.content(1)
62
+ }
63
+ }),
64
+ d === "REJECTED" && /* @__PURE__ */ s(t, {
65
+ name: "AlertFill",
66
+ size: "small",
67
+ color: "etc.red",
68
+ "aria-label": "인증 안됨",
69
+ inlineCSS: {
70
+ minWidth: 20,
71
+ verticalAlign: "-5px",
72
+ marginLeft: y.content(1)
73
+ }
74
+ })
75
+ ]
76
+ })]
77
+ }), /* @__PURE__ */ c(r, {
78
+ tag: "p",
79
+ variant: "b5R",
80
+ color: "grey.50",
81
+ children: [x?.isValid() ? `${x.format("YYYY년 M월")} ~ ` : "", p ? a(p).format("YYYY년 M월") : "현재"]
82
+ })]
83
+ }), /* @__PURE__ */ c(e, {
84
+ alignItems: "center",
85
+ gap: 2,
86
+ children: [/* @__PURE__ */ c(r, {
87
+ tag: "p",
88
+ variant: "h5R",
89
+ color: "grey.70",
90
+ noWrap: !0,
91
+ inlineCSS: { "& strong": {
92
+ color: v[100],
93
+ fontWeight: 700
94
+ } },
95
+ children: [w > 0 && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("strong", { children: w }), "년"] }), T > 0 && /* @__PURE__ */ c(o, { children: [
96
+ w > 0 && /* @__PURE__ */ s(o, { children: "\xA0" }),
97
+ /* @__PURE__ */ s("strong", { children: T }),
98
+ "개월"
99
+ ] })]
100
+ }), b && /* @__PURE__ */ s(t, {
101
+ name: "ChevronRightLine",
102
+ size: "xSmall",
103
+ color: "grey.50"
104
+ })]
105
+ })]
106
+ }) });
132
107
  }
133
- export {
134
- T as default
135
- };
108
+ //#endregion
109
+ export { u as default };
@@ -1,4 +1,5 @@
1
- import r from "./CareerItem.mjs";
2
- export {
3
- r as default
4
- };
1
+ import e from "./CareerItem.mjs";
2
+ //#region teacher/profile/components/CareerSection/CareerItem/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };