@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,96 +1,82 @@
1
- import { jsxs as o, jsx as e, Fragment as c } from "react/jsx-runtime";
2
- import { Label as u, Flexbox as l, Icon as m, Typography as b } from "@dotss/ui";
3
- import h from "@dotss/ui/core/useTheme";
4
- import f from "../../../../../shared/components/Masonry/MasonryBlock/MasonryBlock.mjs";
5
- function g({
6
- children: n,
7
- type: i,
8
- primary: a = !1,
9
- status: d,
10
- id: r,
11
- ...t
12
- }) {
13
- const {
14
- palette: { background: s }
15
- } = h();
16
- return /* @__PURE__ */ o(
17
- f,
18
- {
19
- role: "button",
20
- borderRadius: 12,
21
- "aria-describedby": `activity-gallery-item-status-desc-${r}`,
22
- ...t,
23
- inlineCSS: { position: "relative", overflow: "hidden", ...t.inlineCSS },
24
- children: [
25
- a && /* @__PURE__ */ e(
26
- u,
27
- {
28
- size: "xSmall",
29
- color: "orange",
30
- "aria-hidden": !0,
31
- inlineCSS: { position: "absolute", top: 8, left: 8, zIndex: 1 },
32
- children: "대표"
33
- }
34
- ),
35
- d === "REJECTED" && /* @__PURE__ */ o(c, { children: [
36
- /* @__PURE__ */ e(
37
- l,
38
- {
39
- alignItems: "center",
40
- justifyContent: "center",
41
- inlineCSS: {
42
- position: "absolute",
43
- top: 0,
44
- left: 0,
45
- width: "100%",
46
- height: "100%",
47
- opacity: 0.8,
48
- backgroundColor: s.primary,
49
- zIndex: 1
50
- }
51
- }
52
- ),
53
- /* @__PURE__ */ e(
54
- m,
55
- {
56
- name: "AlertFill",
57
- size: "xSmall",
58
- color: "etc.red",
59
- inlineCSS: {
60
- position: "absolute",
61
- top: "50%",
62
- left: "50%",
63
- transform: "translate(-50%, -50%)",
64
- zIndex: 1
65
- }
66
- }
67
- ),
68
- /* @__PURE__ */ o(b, { id: `activity-gallery-item-status-desc-${r}`, visuallyHidden: !0, children: [
69
- i === "VIDEO" || i === "VIMEO" || i === "YOUTUBE" ? "동영상" : "사진",
70
- "이 반려되었어요. 다시 등록해 주세요."
71
- ] })
72
- ] }),
73
- /* @__PURE__ */ e(
74
- l,
75
- {
76
- "aria-hidden": !0,
77
- inlineCSS: {
78
- position: "absolute",
79
- top: 0,
80
- left: 0,
81
- width: "100%",
82
- height: "100%",
83
- border: "1px solid rgba(0, 0, 0, 0.05)",
84
- zIndex: 1,
85
- borderRadius: t.borderRadius || 12
86
- }
87
- }
88
- ),
89
- n
90
- ]
91
- }
92
- );
1
+ import e from "../../../../../shared/components/Masonry/MasonryBlock/index.mjs";
2
+ import { Flexbox as t, Icon as n, Label as r, Typography as i } from "@dotss/ui";
3
+ import a from "@dotss/ui/core/useTheme";
4
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ //#region teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.tsx
6
+ function l({ children: l, type: u, primary: d = !1, status: f, id: p, ...m }) {
7
+ let { palette: { background: h } } = a();
8
+ return /* @__PURE__ */ c(e, {
9
+ role: "button",
10
+ borderRadius: 12,
11
+ "aria-describedby": `activity-gallery-item-status-desc-${p}`,
12
+ ...m,
13
+ inlineCSS: {
14
+ position: "relative",
15
+ overflow: "hidden",
16
+ ...m.inlineCSS
17
+ },
18
+ children: [
19
+ d && /* @__PURE__ */ s(r, {
20
+ size: "xSmall",
21
+ color: "orange",
22
+ "aria-hidden": !0,
23
+ inlineCSS: {
24
+ position: "absolute",
25
+ top: 8,
26
+ left: 8,
27
+ zIndex: 1
28
+ },
29
+ children: "대표"
30
+ }),
31
+ f === "REJECTED" && /* @__PURE__ */ c(o, { children: [
32
+ /* @__PURE__ */ s(t, {
33
+ alignItems: "center",
34
+ justifyContent: "center",
35
+ inlineCSS: {
36
+ position: "absolute",
37
+ top: 0,
38
+ left: 0,
39
+ width: "100%",
40
+ height: "100%",
41
+ opacity: .8,
42
+ backgroundColor: h.primary,
43
+ zIndex: 1
44
+ }
45
+ }),
46
+ /* @__PURE__ */ s(n, {
47
+ name: "AlertFill",
48
+ size: "xSmall",
49
+ color: "etc.red",
50
+ inlineCSS: {
51
+ position: "absolute",
52
+ top: "50%",
53
+ left: "50%",
54
+ transform: "translate(-50%, -50%)",
55
+ zIndex: 1
56
+ }
57
+ }),
58
+ /* @__PURE__ */ c(i, {
59
+ id: `activity-gallery-item-status-desc-${p}`,
60
+ visuallyHidden: !0,
61
+ children: [u === "VIDEO" || u === "VIMEO" || u === "YOUTUBE" ? "동영상" : "사진", "이 반려되었어요. 다시 등록해 주세요."]
62
+ })
63
+ ] }),
64
+ /* @__PURE__ */ s(t, {
65
+ "aria-hidden": !0,
66
+ inlineCSS: {
67
+ position: "absolute",
68
+ top: 0,
69
+ left: 0,
70
+ width: "100%",
71
+ height: "100%",
72
+ border: "1px solid rgba(0, 0, 0, 0.05)",
73
+ zIndex: 1,
74
+ borderRadius: m.borderRadius || 12
75
+ }
76
+ }),
77
+ l
78
+ ]
79
+ });
93
80
  }
94
- export {
95
- g as default
96
- };
81
+ //#endregion
82
+ export { l as default };
@@ -1,4 +1,5 @@
1
1
  import e from "./ActivityGalleryItem.mjs";
2
- export {
3
- e as default
4
- };
2
+ //#region teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,6 +1,6 @@
1
- import e from "./ActivityGallery.mjs";
2
- import { default as l } from "./ActivityGalleryItem/ActivityGalleryItem.mjs";
3
- export {
4
- l as ActivityGalleryItem,
5
- e as default
6
- };
1
+ import e from "./ActivityGalleryItem/index.mjs";
2
+ import t from "./ActivityGallery.mjs";
3
+ //#region teacher/profile/components/ActivityGallery/index.ts
4
+ var n = t;
5
+ //#endregion
6
+ export { e as ActivityGalleryItem, n as default };
@@ -1,194 +1,148 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as w, useState as S } from "react";
3
- import { Flexbox as l, Typography as o, Button as k, Icon as I } from "@dotss/ui";
4
- import R from "@dotss/ui/core/useTheme";
5
- import D from "@dotss/ui/Switch";
6
- import j from "../../../../shared/components/Image/Image.mjs";
7
- import A from "../../../../shared/components/Scheduler/Scheduler.mjs";
8
- import "dayjs";
9
- const M = w(
10
- function({
11
- children: g,
12
- title: m = "수업 가능 일정",
13
- action: r,
14
- footer: d,
15
- flat: s = !1,
16
- schedulerProps: p,
17
- enableToggle: h = !0,
18
- teacherStatus: i,
19
- ...a
20
- }, v) {
21
- const {
22
- palette: { grey: b, background: f }
23
- } = R(), [t, C] = S(!1), x = () => C((c) => !c), y = (c) => {
24
- var u;
25
- return (u = i.onChange) == null ? void 0 : u.call(i, c);
26
- };
27
- return /* @__PURE__ */ n(
28
- l,
29
- {
30
- ref: v,
31
- tag: "section",
32
- flexDirection: "column",
33
- gap: 4,
34
- "aria-labelledby": "available-schedule-section-title",
35
- "aria-describedby": d ? "available-schedule-section-footer" : void 0,
36
- ...a,
37
- inlineCSS: {
38
- width: "100%",
39
- ...a == null ? void 0 : a.inlineCSS
40
- },
41
- children: [
42
- /* @__PURE__ */ e(o, { id: "available-schedule-section-title", tag: "h2", variant: "h2B", children: m }),
43
- i.active && /* @__PURE__ */ n(l, { flexDirection: "column", gap: 2, children: [
44
- /* @__PURE__ */ n(
45
- l,
46
- {
47
- flexDirection: "column",
48
- inlineCSS: {
49
- ...s ? void 0 : {
50
- border: `1px solid ${b[20]}`,
51
- borderRadius: 12
52
- },
53
- maxHeight: t ? void 0 : h ? 384 : void 0,
54
- overflow: "hidden"
55
- },
56
- children: [
57
- !s && /* @__PURE__ */ e(l, { pt: 4 }),
58
- /* @__PURE__ */ e(
59
- A,
60
- {
61
- id: "available-schedule-section-scheduler",
62
- "aria-labelledby": "available-schedule-section-title",
63
- ...p,
64
- children: g
65
- }
66
- ),
67
- h && /* @__PURE__ */ e(
68
- k,
69
- {
70
- variant: "text",
71
- color: "secondary",
72
- endAdornment: /* @__PURE__ */ e(I, { name: t ? "ChevronUpLine" : "ChevronDownLine" }),
73
- onClick: x,
74
- "aria-expanded": t,
75
- "aria-controls": "available-schedule-section-scheduler",
76
- inlineCSS: {
77
- position: "sticky",
78
- bottom: 0,
79
- borderTopRightRadius: 0,
80
- borderTopLeftRadius: 0,
81
- backgroundColor: b.white,
82
- zIndex: 1
83
- },
84
- children: t ? "접기" : "펼쳐보기"
85
- }
86
- )
87
- ]
88
- }
89
- ),
90
- d && /* @__PURE__ */ e(l, { id: "available-schedule-section-footer", tag: "footer", pl: 12, pr: 2, children: d })
91
- ] }),
92
- typeof i.onChange == "function" && /* @__PURE__ */ n(
93
- l,
94
- {
95
- alignItems: "center",
96
- justifyContent: "space-between",
97
- gap: 2,
98
- inlineCSS: {
99
- width: "inherit"
100
- },
101
- children: [
102
- /* @__PURE__ */ e(o, { tag: "label", variant: "h4M", htmlFor: "available-schedule-section-switch", children: "활동 여부" }),
103
- /* @__PURE__ */ e(
104
- D,
105
- {
106
- selected: !!i.active,
107
- onChange: y,
108
- selectedLabel: "활동중",
109
- unselectedLabel: "쉬는중",
110
- inputProps: {
111
- id: "available-schedule-section-switch"
112
- }
113
- }
114
- )
115
- ]
116
- }
117
- ),
118
- !i.active && /* @__PURE__ */ n(
119
- l,
120
- {
121
- role: "status",
122
- pt: 5,
123
- pb: 5,
124
- pl: 4,
125
- pr: 4,
126
- flexDirection: "column",
127
- alignItems: "center",
128
- justifyContent: "center",
129
- gap: 2,
130
- "aria-labelledby": "available-schedule-section-status-title",
131
- "aria-describedby": "available-schedule-section-status-desc",
132
- inlineCSS: {
133
- borderRadius: 8,
134
- backgroundColor: f.primary
135
- },
136
- children: [
137
- /* @__PURE__ */ e(
138
- j,
139
- {
140
- width: 48,
141
- height: 48,
142
- src: `${i.fallback.iconBasePath}/images/design-system/graphic/illustration3D/island.png`,
143
- alt: "쉬는 중",
144
- "aria-hidden": !0
145
- }
146
- ),
147
- /* @__PURE__ */ e(
148
- o,
149
- {
150
- id: "available-schedule-section-status-title",
151
- tag: "h3",
152
- variant: "h4B",
153
- textAlign: "center",
154
- children: i.fallback.title || "쉬는 중일 때는 수업 요청이 오지 않아요!"
155
- }
156
- ),
157
- /* @__PURE__ */ e(
158
- o,
159
- {
160
- id: "available-schedule-section-status-desc",
161
- tag: "p",
162
- variant: "b4R",
163
- color: "grey.70",
164
- textAlign: "center",
165
- inlineCSS: {
166
- whiteSpace: "pre-line"
167
- },
168
- children: i.fallback.description || `이미 매칭된 수업은 그대로 유지되니
169
- 변경이 필요한 경우 부모님과 소통해 주세요.`
170
- }
171
- )
172
- ]
173
- }
174
- ),
175
- r && /* @__PURE__ */ e(
176
- l,
177
- {
178
- mt: 2,
179
- alignItems: "center",
180
- justifyContent: "center",
181
- inlineCSS: {
182
- width: "inherit"
183
- },
184
- children: r
185
- }
186
- )
187
- ]
188
- }
189
- );
190
- }
191
- );
192
- export {
193
- M as default
194
- };
1
+ import e from "../../../../shared/components/Image/index.mjs";
2
+ import t from "../../../../shared/components/Scheduler/index.mjs";
3
+ import { forwardRef as n, useState as r } from "react";
4
+ import { Button as i, Flexbox as a, Icon as o, Typography as s } from "@dotss/ui";
5
+ import c from "@dotss/ui/core/useTheme";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ import d from "@dotss/ui/Switch";
8
+ //#region teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.tsx
9
+ var f = n(function({ children: n, title: f = "수업 가능 일정", action: p, footer: m, flat: h = !1, schedulerProps: g, enableToggle: _ = !0, teacherStatus: v, ...y }, b) {
10
+ let { palette: { grey: x, background: S } } = c(), [C, w] = r(!1), T = () => w((e) => !e), E = (e) => v.onChange?.(e);
11
+ return /* @__PURE__ */ u(a, {
12
+ ref: b,
13
+ tag: "section",
14
+ flexDirection: "column",
15
+ gap: 4,
16
+ "aria-labelledby": "available-schedule-section-title",
17
+ "aria-describedby": m ? "available-schedule-section-footer" : void 0,
18
+ ...y,
19
+ inlineCSS: {
20
+ width: "100%",
21
+ ...y?.inlineCSS
22
+ },
23
+ children: [
24
+ /* @__PURE__ */ l(s, {
25
+ id: "available-schedule-section-title",
26
+ tag: "h2",
27
+ variant: "h2B",
28
+ children: f
29
+ }),
30
+ v.active && /* @__PURE__ */ u(a, {
31
+ flexDirection: "column",
32
+ gap: 2,
33
+ children: [/* @__PURE__ */ u(a, {
34
+ flexDirection: "column",
35
+ inlineCSS: {
36
+ ...h ? void 0 : {
37
+ border: `1px solid ${x[20]}`,
38
+ borderRadius: 12
39
+ },
40
+ maxHeight: C ? void 0 : _ ? 384 : void 0,
41
+ overflow: "hidden"
42
+ },
43
+ children: [
44
+ !h && /* @__PURE__ */ l(a, { pt: 4 }),
45
+ /* @__PURE__ */ l(t, {
46
+ id: "available-schedule-section-scheduler",
47
+ "aria-labelledby": "available-schedule-section-title",
48
+ ...g,
49
+ children: n
50
+ }),
51
+ _ && /* @__PURE__ */ l(i, {
52
+ variant: "text",
53
+ color: "secondary",
54
+ endAdornment: /* @__PURE__ */ l(o, { name: C ? "ChevronUpLine" : "ChevronDownLine" }),
55
+ onClick: T,
56
+ "aria-expanded": C,
57
+ "aria-controls": "available-schedule-section-scheduler",
58
+ inlineCSS: {
59
+ position: "sticky",
60
+ bottom: 0,
61
+ borderTopRightRadius: 0,
62
+ borderTopLeftRadius: 0,
63
+ backgroundColor: x.white,
64
+ zIndex: 1
65
+ },
66
+ children: C ? "접기" : "펼쳐보기"
67
+ })
68
+ ]
69
+ }), m && /* @__PURE__ */ l(a, {
70
+ id: "available-schedule-section-footer",
71
+ tag: "footer",
72
+ pl: 12,
73
+ pr: 2,
74
+ children: m
75
+ })]
76
+ }),
77
+ typeof v.onChange == "function" && /* @__PURE__ */ u(a, {
78
+ alignItems: "center",
79
+ justifyContent: "space-between",
80
+ gap: 2,
81
+ inlineCSS: { width: "inherit" },
82
+ children: [/* @__PURE__ */ l(s, {
83
+ tag: "label",
84
+ variant: "h4M",
85
+ htmlFor: "available-schedule-section-switch",
86
+ children: "활동 여부"
87
+ }), /* @__PURE__ */ l(d, {
88
+ selected: !!v.active,
89
+ onChange: E,
90
+ selectedLabel: "활동중",
91
+ unselectedLabel: "쉬는중",
92
+ inputProps: { id: "available-schedule-section-switch" }
93
+ })]
94
+ }),
95
+ !v.active && /* @__PURE__ */ u(a, {
96
+ role: "status",
97
+ pt: 5,
98
+ pb: 5,
99
+ pl: 4,
100
+ pr: 4,
101
+ flexDirection: "column",
102
+ alignItems: "center",
103
+ justifyContent: "center",
104
+ gap: 2,
105
+ "aria-labelledby": "available-schedule-section-status-title",
106
+ "aria-describedby": "available-schedule-section-status-desc",
107
+ inlineCSS: {
108
+ borderRadius: 8,
109
+ backgroundColor: S.primary
110
+ },
111
+ children: [
112
+ /* @__PURE__ */ l(e, {
113
+ width: 48,
114
+ height: 48,
115
+ src: `${v.fallback.iconBasePath}/images/design-system/graphic/illustration3D/island.png`,
116
+ alt: "쉬는 중",
117
+ "aria-hidden": !0
118
+ }),
119
+ /* @__PURE__ */ l(s, {
120
+ id: "available-schedule-section-status-title",
121
+ tag: "h3",
122
+ variant: "h4B",
123
+ textAlign: "center",
124
+ children: v.fallback.title || "쉬는 중일 때는 수업 요청이 오지 않아요!"
125
+ }),
126
+ /* @__PURE__ */ l(s, {
127
+ id: "available-schedule-section-status-desc",
128
+ tag: "p",
129
+ variant: "b4R",
130
+ color: "grey.70",
131
+ textAlign: "center",
132
+ inlineCSS: { whiteSpace: "pre-line" },
133
+ children: v.fallback.description || "이미 매칭된 수업은 그대로 유지되니\n변경이 필요한 경우 부모님과 소통해 주세요."
134
+ })
135
+ ]
136
+ }),
137
+ p && /* @__PURE__ */ l(a, {
138
+ mt: 2,
139
+ alignItems: "center",
140
+ justifyContent: "center",
141
+ inlineCSS: { width: "inherit" },
142
+ children: p
143
+ })
144
+ ]
145
+ });
146
+ });
147
+ //#endregion
148
+ export { f as default };
@@ -1,4 +1,5 @@
1
- import a from "./AvailableScheduleSection.mjs";
2
- export {
3
- a as default
4
- };
1
+ import e from "./AvailableScheduleSection.mjs";
2
+ //#region teacher/profile/components/AvailableScheduleSection/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };