@dotss/tictoccroc 0.4.2 → 0.6.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 (205) 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.d.ts +3 -0
  191. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +12 -12
  192. package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
  193. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
  194. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
  195. package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
  196. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
  197. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
  198. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
  199. package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
  200. package/dist/teacher/profile/components/index.mjs +24 -48
  201. package/dist/teacher/profile/utils/index.mjs +2 -4
  202. package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
  203. package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
  204. package/package.json +1 -1
  205. package/dist/purify.es-BGaRrCfO.js +0 -553
@@ -1,81 +1,85 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as s } from "react";
3
- import { Flexbox as t, Typography as o, Button as h, Icon as c } from "@dotss/ui";
4
- import p from "@dotss/ui/core/useTheme";
5
- const x = s(
6
- ({ children: g, totalCount: r, onClickViewAll: l, ...i }, d) => {
7
- const {
8
- palette: { grey: m },
9
- spacing: a
10
- } = p();
11
- return /* @__PURE__ */ n(
12
- t,
13
- {
14
- ref: d,
15
- tag: "section",
16
- gap: 4,
17
- flexDirection: "column",
18
- "aria-labelledby": "parent-review-section-title",
19
- ...i,
20
- inlineCSS: {
21
- width: "100%",
22
- ...i == null ? void 0 : i.inlineCSS
23
- },
24
- children: [
25
- /* @__PURE__ */ n(t, { alignItems: "center", justifyContent: "space-between", gap: 1, children: [
26
- /* @__PURE__ */ e(t, { alignItems: "center", gap: 2, children: /* @__PURE__ */ n(o, { id: "parent-review-section-title", tag: "h2", variant: "h2B", children: [
27
- "부모님 리뷰",
28
- /* @__PURE__ */ n(
29
- o,
30
- {
31
- tag: "span",
32
- variant: "h4R",
33
- color: "grey.70",
34
- inlineCSS: { marginLeft: a.content(2), verticalAlign: 2 },
35
- children: [
36
- "(",
37
- r.toLocaleString(),
38
- "개)"
39
- ]
40
- }
41
- )
42
- ] }) }),
43
- typeof l == "function" && /* @__PURE__ */ e(
44
- h,
45
- {
46
- variant: "text",
47
- size: "small",
48
- color: "secondary",
49
- endAdornment: /* @__PURE__ */ e(c, { name: "ChevronRightLine" }),
50
- onClick: l,
51
- children: "전체보기"
52
- }
53
- )
54
- ] }),
55
- r > 0 && /* @__PURE__ */ e(
56
- t,
57
- {
58
- tag: "ul",
59
- flexDirection: "column",
60
- inlineCSS: {
61
- "& > li + li": {
62
- borderTop: `1px solid ${m[10]}`,
63
- marginTop: a.content(5),
64
- paddingTop: a.content(5)
65
- }
66
- },
67
- children: g
68
- }
69
- ),
70
- r <= 0 && /* @__PURE__ */ n(t, { alignItems: "center", justifyContent: "center", gap: 1, pt: 8, pb: 8, children: [
71
- /* @__PURE__ */ e(c, { name: "OngoingFill", color: "grey.50" }),
72
- /* @__PURE__ */ e(o, { tag: "p", variant: "b4R", color: "grey.70", children: "아직 작성된 부모님 리뷰가 없어요." })
73
- ] })
74
- ]
75
- }
76
- );
77
- }
78
- );
79
- export {
80
- x as default
81
- };
1
+ import { forwardRef as e } from "react";
2
+ import { Button as t, Flexbox as n, Icon as r, Typography as i } from "@dotss/ui";
3
+ import a from "@dotss/ui/core/useTheme";
4
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ //#region teacher/profile/components/ParentReviewSection/ParentReviewSection.tsx
6
+ var c = e(({ children: e, totalCount: c, onClickViewAll: l, ...u }, d) => {
7
+ let { palette: { grey: f }, spacing: p } = a();
8
+ return /* @__PURE__ */ s(n, {
9
+ ref: d,
10
+ tag: "section",
11
+ gap: 4,
12
+ flexDirection: "column",
13
+ "aria-labelledby": "parent-review-section-title",
14
+ ...u,
15
+ inlineCSS: {
16
+ width: "100%",
17
+ ...u?.inlineCSS
18
+ },
19
+ children: [
20
+ /* @__PURE__ */ s(n, {
21
+ alignItems: "center",
22
+ justifyContent: "space-between",
23
+ gap: 1,
24
+ children: [/* @__PURE__ */ o(n, {
25
+ alignItems: "center",
26
+ gap: 2,
27
+ children: /* @__PURE__ */ s(i, {
28
+ id: "parent-review-section-title",
29
+ tag: "h2",
30
+ variant: "h2B",
31
+ children: ["부모님 리뷰", /* @__PURE__ */ s(i, {
32
+ tag: "span",
33
+ variant: "h4R",
34
+ color: "grey.70",
35
+ inlineCSS: {
36
+ marginLeft: p.content(2),
37
+ verticalAlign: 2
38
+ },
39
+ children: [
40
+ "(",
41
+ c.toLocaleString(),
42
+ "개)"
43
+ ]
44
+ })]
45
+ })
46
+ }), typeof l == "function" && /* @__PURE__ */ o(t, {
47
+ variant: "text",
48
+ size: "small",
49
+ color: "secondary",
50
+ endAdornment: /* @__PURE__ */ o(r, { name: "ChevronRightLine" }),
51
+ onClick: l,
52
+ children: "전체보기"
53
+ })]
54
+ }),
55
+ c > 0 && /* @__PURE__ */ o(n, {
56
+ tag: "ul",
57
+ flexDirection: "column",
58
+ inlineCSS: { "& > li + li": {
59
+ borderTop: `1px solid ${f[10]}`,
60
+ marginTop: p.content(5),
61
+ paddingTop: p.content(5)
62
+ } },
63
+ children: e
64
+ }),
65
+ c <= 0 && /* @__PURE__ */ s(n, {
66
+ alignItems: "center",
67
+ justifyContent: "center",
68
+ gap: 1,
69
+ pt: 8,
70
+ pb: 8,
71
+ children: [/* @__PURE__ */ o(r, {
72
+ name: "OngoingFill",
73
+ color: "grey.50"
74
+ }), /* @__PURE__ */ o(i, {
75
+ tag: "p",
76
+ variant: "b4R",
77
+ color: "grey.70",
78
+ children: "아직 작성된 부모님 리뷰가 없어요."
79
+ })]
80
+ })
81
+ ]
82
+ });
83
+ });
84
+ //#endregion
85
+ export { c 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/ParentReviewSection/ParentReviewSection.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,8 +1,7 @@
1
- import r from "./ParentReviewSection.mjs";
2
- import { getChildLabel as o } from "./ParentReviewSection.utils.mjs";
3
- import { default as i } from "./ParentReviewCard/ParentReviewCard.mjs";
4
- export {
5
- i as ParentReviewCard,
6
- r as default,
7
- o as getChildLabel
8
- };
1
+ import e from "./ParentReviewSection.mjs";
2
+ import { getChildLabel as t } from "./ParentReviewSection.utils.mjs";
3
+ import n from "./ParentReviewCard/index.mjs";
4
+ //#region teacher/profile/components/ParentReviewSection/index.ts
5
+ var r = e;
6
+ //#endregion
7
+ export { n as ParentReviewCard, r as default, t as getChildLabel };
@@ -1,37 +1,44 @@
1
- import { jsxs as d, jsx as i } from "react/jsx-runtime";
2
- import { Flexbox as t, Typography as c, Label as g } from "@dotss/ui";
3
- function f({
4
- keywords: r,
5
- title: a = "자신 있는 활동 키워드",
6
- action: n,
7
- ...e
8
- }) {
9
- return /* @__PURE__ */ d(
10
- t,
11
- {
12
- tag: "section",
13
- flexDirection: "column",
14
- gap: 4,
15
- "aria-labelledby": "preferred-activity-keyword-group-title",
16
- ...e,
17
- inlineCSS: { width: "100%", ...e == null ? void 0 : e.inlineCSS },
18
- children: [
19
- /* @__PURE__ */ i(c, { id: "preferred-activity-keyword-group-title", tag: "h2", variant: "h2B", children: a }),
20
- r.length > 0 && /* @__PURE__ */ i(t, { tag: "ul", flexWrap: "wrap", gap: 2, alignItems: "center", children: r.map((l) => /* @__PURE__ */ i(g, { tag: "li", variant: "outlined", children: l }, l)) }),
21
- n && /* @__PURE__ */ i(
22
- t,
23
- {
24
- mt: 2,
25
- alignItems: "center",
26
- justifyContent: "center",
27
- inlineCSS: { width: "inherit" },
28
- children: n
29
- }
30
- )
31
- ]
32
- }
33
- );
1
+ import { Flexbox as e, Label as t, Typography as n } from "@dotss/ui";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ //#region teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.tsx
4
+ function a({ keywords: a, title: o = "자신 있는 활동 키워드", action: s, ...c }) {
5
+ return /* @__PURE__ */ i(e, {
6
+ tag: "section",
7
+ flexDirection: "column",
8
+ gap: 4,
9
+ "aria-labelledby": "preferred-activity-keyword-group-title",
10
+ ...c,
11
+ inlineCSS: {
12
+ width: "100%",
13
+ ...c?.inlineCSS
14
+ },
15
+ children: [
16
+ /* @__PURE__ */ r(n, {
17
+ id: "preferred-activity-keyword-group-title",
18
+ tag: "h2",
19
+ variant: "h2B",
20
+ children: o
21
+ }),
22
+ a.length > 0 && /* @__PURE__ */ r(e, {
23
+ tag: "ul",
24
+ flexWrap: "wrap",
25
+ gap: 2,
26
+ alignItems: "center",
27
+ children: a.map((e) => /* @__PURE__ */ r(t, {
28
+ tag: "li",
29
+ variant: "outlined",
30
+ children: e
31
+ }, e))
32
+ }),
33
+ s && /* @__PURE__ */ r(e, {
34
+ mt: 2,
35
+ alignItems: "center",
36
+ justifyContent: "center",
37
+ inlineCSS: { width: "inherit" },
38
+ children: s
39
+ })
40
+ ]
41
+ });
34
42
  }
35
- export {
36
- f as default
37
- };
43
+ //#endregion
44
+ export { a as default };
@@ -1,4 +1,5 @@
1
1
  import e from "./PreferredActivityKeywordGroup.mjs";
2
- export {
3
- e as default
4
- };
2
+ //#region teacher/profile/components/PreferredActivityKeywordGroup/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,32 +1,45 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
- import { Flexbox as t, Typography as g, Label as c } from "@dotss/ui";
3
- function u({ keywords: r, action: n, ...e }) {
4
- return /* @__PURE__ */ a(
5
- t,
6
- {
7
- tag: "section",
8
- flexDirection: "column",
9
- gap: 4,
10
- "aria-labelledby": "preferred-age-group-title",
11
- ...e,
12
- inlineCSS: { width: "100%", ...e == null ? void 0 : e.inlineCSS },
13
- children: [
14
- /* @__PURE__ */ i(g, { id: "preferred-age-group-title", tag: "h2", variant: "h2B", children: "자신 있는 아이 연령" }),
15
- r.length > 0 && /* @__PURE__ */ i(t, { tag: "ul", flexWrap: "wrap", gap: 2, alignItems: "center", children: r.map((l) => /* @__PURE__ */ i(c, { tag: "li", variant: "outlined", color: "blue", children: l }, l)) }),
16
- n && /* @__PURE__ */ i(
17
- t,
18
- {
19
- mt: 2,
20
- alignItems: "center",
21
- justifyContent: "center",
22
- inlineCSS: { width: "inherit" },
23
- children: n
24
- }
25
- )
26
- ]
27
- }
28
- );
1
+ import { Flexbox as e, Label as t, Typography as n } from "@dotss/ui";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ //#region teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.tsx
4
+ function a({ keywords: a, action: o, ...s }) {
5
+ return /* @__PURE__ */ i(e, {
6
+ tag: "section",
7
+ flexDirection: "column",
8
+ gap: 4,
9
+ "aria-labelledby": "preferred-age-group-title",
10
+ ...s,
11
+ inlineCSS: {
12
+ width: "100%",
13
+ ...s?.inlineCSS
14
+ },
15
+ children: [
16
+ /* @__PURE__ */ r(n, {
17
+ id: "preferred-age-group-title",
18
+ tag: "h2",
19
+ variant: "h2B",
20
+ children: "자신 있는 아이 연령"
21
+ }),
22
+ a.length > 0 && /* @__PURE__ */ r(e, {
23
+ tag: "ul",
24
+ flexWrap: "wrap",
25
+ gap: 2,
26
+ alignItems: "center",
27
+ children: a.map((e) => /* @__PURE__ */ r(t, {
28
+ tag: "li",
29
+ variant: "outlined",
30
+ color: "blue",
31
+ children: e
32
+ }, e))
33
+ }),
34
+ o && /* @__PURE__ */ r(e, {
35
+ mt: 2,
36
+ alignItems: "center",
37
+ justifyContent: "center",
38
+ inlineCSS: { width: "inherit" },
39
+ children: o
40
+ })
41
+ ]
42
+ });
29
43
  }
30
- export {
31
- u as default
32
- };
44
+ //#endregion
45
+ export { a as default };
@@ -1,4 +1,7 @@
1
1
  export declare const preferredAgeGroup: {
2
+ age0: {
3
+ label: string;
4
+ };
2
5
  age1: {
3
6
  label: string;
4
7
  };
@@ -1,14 +1,14 @@
1
- const l = {
2
- age1: { label: "~24개월" },
3
- age2: { label: "2~3세" },
4
- age3: { label: "4~6세" },
5
- age4: { label: "7~9세" },
6
- age5: { label: "10~12세" }
1
+ //#region teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.ts
2
+ var e = {
3
+ age0: { label: "~11개월" },
4
+ age1: { label: "12~24개월" },
5
+ age2: { label: "2~3세" },
6
+ age3: { label: "4~6세" },
7
+ age4: { label: "7~9세" },
8
+ age5: { label: "10~12세" }
7
9
  };
8
- function r(a) {
9
- return Object.keys(l).filter((e) => a[e] === "Y").map((e) => l[e].label);
10
+ function t(t) {
11
+ return Object.keys(e).filter((e) => t[e] === "Y").map((t) => e[t].label);
10
12
  }
11
- export {
12
- r as getPreferredAgeKeywords,
13
- l as preferredAgeGroup
14
- };
13
+ //#endregion
14
+ export { t as getPreferredAgeKeywords, e as preferredAgeGroup };
@@ -1,6 +1,6 @@
1
- import r from "./PreferredAgeGroup.mjs";
1
+ import e from "./PreferredAgeGroup.mjs";
2
2
  import { getPreferredAgeKeywords as t } from "./PreferredAgeGroup.utils.mjs";
3
- export {
4
- r as default,
5
- t as getPreferredAgeKeywords
6
- };
3
+ //#region teacher/profile/components/PreferredAgeGroup/index.ts
4
+ var n = e;
5
+ //#endregion
6
+ export { n as default, t as getPreferredAgeKeywords };