@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,28 +1,23 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Flexbox as i } from "@dotss/ui";
3
- import r from "@dotss/ui/core/useTheme";
4
- function l({ children: o }) {
5
- const {
6
- palette: { etc: t }
7
- } = r();
8
- return /* @__PURE__ */ e(
9
- i,
10
- {
11
- tag: "footer",
12
- flexDirection: "column",
13
- inlineCSS: {
14
- position: "absolute",
15
- left: 0,
16
- bottom: 0,
17
- paddingBottom: "var(--system-navigation-bar-height, 0px)",
18
- width: "100%",
19
- backgroundColor: t.dimmed01,
20
- zIndex: 2
21
- },
22
- children: o
23
- }
24
- );
1
+ import { Flexbox as e } from "@dotss/ui";
2
+ import t from "@dotss/ui/core/useTheme";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.tsx
5
+ function r({ children: r }) {
6
+ let { palette: { etc: i } } = t();
7
+ return /* @__PURE__ */ n(e, {
8
+ tag: "footer",
9
+ flexDirection: "column",
10
+ inlineCSS: {
11
+ position: "absolute",
12
+ left: 0,
13
+ bottom: 0,
14
+ paddingBottom: "var(--system-navigation-bar-height, 0px)",
15
+ width: "100%",
16
+ backgroundColor: i.dimmed01,
17
+ zIndex: 2
18
+ },
19
+ children: r
20
+ });
25
21
  }
26
- export {
27
- l as default
28
- };
22
+ //#endregion
23
+ export { r as default };
@@ -1,4 +1,5 @@
1
- import a from "./MediaDialogFooter.mjs";
2
- export {
3
- a as default
4
- };
1
+ import e from "./MediaDialogFooter.mjs";
2
+ //#region shared/components/MediaDialog/MediaDialogFooter/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,22 +1,16 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Children as n } from "react";
3
- import { Flexbox as r } from "@dotss/ui";
4
- function l({ children: t }) {
5
- const e = n.count(t);
6
- return /* @__PURE__ */ o(
7
- r,
8
- {
9
- pl: 2,
10
- pr: 2,
11
- alignItems: "center",
12
- justifyContent: e > 1 ? "space-between" : "center",
13
- inlineCSS: {
14
- minHeight: 48
15
- },
16
- children: t
17
- }
18
- );
1
+ import { Children as e } from "react";
2
+ import { Flexbox as t } from "@dotss/ui";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.tsx
5
+ function r({ children: r }) {
6
+ return /* @__PURE__ */ n(t, {
7
+ pl: 2,
8
+ pr: 2,
9
+ alignItems: "center",
10
+ justifyContent: e.count(r) > 1 ? "space-between" : "center",
11
+ inlineCSS: { minHeight: 48 },
12
+ children: r
13
+ });
19
14
  }
20
- export {
21
- l as default
22
- };
15
+ //#endregion
16
+ export { r as default };
@@ -1,4 +1,5 @@
1
- import a from "./MediaDialogToolbar.mjs";
2
- export {
3
- a as default
4
- };
1
+ import e from "./MediaDialogToolbar.mjs";
2
+ //#region shared/components/MediaDialog/MediaDialogToolbar/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,12 +1,9 @@
1
- import a from "./MediaDialog.mjs";
2
- import { default as r } from "./MediaBlock/MediaBlock.mjs";
3
- import { default as d } from "./MediaDialogContent/MediaDialogContent.mjs";
4
- import { default as i } from "./MediaDialogFooter/MediaDialogFooter.mjs";
5
- import { default as p } from "./MediaDialogToolbar/MediaDialogToolbar.mjs";
6
- export {
7
- r as MediaBlock,
8
- d as MediaDialogContent,
9
- i as MediaDialogFooter,
10
- p as MediaDialogToolbar,
11
- a as default
12
- };
1
+ import e from "./MediaBlock/index.mjs";
2
+ import t from "./MediaDialog.mjs";
3
+ import n from "./MediaDialogContent/index.mjs";
4
+ import r from "./MediaDialogFooter/index.mjs";
5
+ import i from "./MediaDialogToolbar/index.mjs";
6
+ //#region shared/components/MediaDialog/index.ts
7
+ var a = t;
8
+ //#endregion
9
+ export { e as MediaBlock, n as MediaDialogContent, r as MediaDialogFooter, i as MediaDialogToolbar, a as default };
@@ -1,133 +1,100 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import { useState as w, useRef as a, Children as k, isValidElement as X, useEffect as g, cloneElement as N } from "react";
3
- import { Flexbox as P } from "@dotss/ui";
4
- import U from "./RollerBlock/RollerBlock.mjs";
5
- import S from "../../../teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs";
6
- function V({
7
- children: A,
8
- spacing: L = 2,
9
- edgeSpacing: m = 4,
10
- rowCount: o = 1,
11
- inlineCSS: M,
12
- ...R
13
- }) {
14
- const [y, x] = w(0), n = a(null), i = a(!1), u = a(!0), b = a(0), l = a(0), c = a(0), v = k.toArray(A).filter(X).filter((r) => r.type === U || r.type === S), f = v.length, E = (r) => {
15
- var e, t;
16
- i.current = !0, b.current = r.clientX - (((e = n.current) == null ? void 0 : e.offsetLeft) || 0), l.current = ((t = n.current) == null ? void 0 : t.scrollLeft) || 0;
17
- }, I = (r) => {
18
- i.current && (r.currentTarget.style.cursor = "grabbing", n.current && (n.current.scrollLeft = l.current - (r.clientX - n.current.offsetLeft - b.current)));
19
- }, d = (r) => {
20
- var t;
21
- i.current = !1, l.current !== ((t = n.current) == null ? void 0 : t.scrollLeft) ? (r.currentTarget.style.cursor = "grab", u.current = !1, c.current && cancelAnimationFrame(c.current), c.current = requestAnimationFrame(() => {
22
- u.current = !0;
23
- })) : u.current = !0;
24
- }, T = (r) => (e) => {
25
- var D;
26
- e.stopPropagation();
27
- const t = Number(e.currentTarget.getAttribute("aria-posinset")) - 1;
28
- let s = t;
29
- switch (e.key) {
30
- case "ArrowRight": {
31
- e.preventDefault(), t + o < f && (s = t + o);
32
- break;
33
- }
34
- case "ArrowLeft": {
35
- e.preventDefault(), t - o >= 0 && (s = t - o);
36
- break;
37
- }
38
- case "ArrowDown": {
39
- e.preventDefault(), (t + 1) % o !== 0 && t + 1 < f && (s = t + 1);
40
- break;
41
- }
42
- case "ArrowUp": {
43
- e.preventDefault(), t % o !== 0 && t - 1 >= 0 && (s = t - 1);
44
- break;
45
- }
46
- case "Enter":
47
- case " ": {
48
- e.preventDefault(), e.currentTarget.click();
49
- return;
50
- }
51
- default:
52
- return;
53
- }
54
- if (s !== t) {
55
- const p = (D = n.current) == null ? void 0 : D.children[s];
56
- p == null || p.focus();
57
- }
58
- r == null || r(e);
59
- }, F = (r) => (e) => {
60
- const t = Number(e.currentTarget.getAttribute("aria-posinset")) - 1;
61
- x(t), r == null || r(e);
62
- };
63
- return g(() => {
64
- const r = n.current, e = (t) => {
65
- u.current || t.stopPropagation();
66
- };
67
- return r == null || r.addEventListener("click", e), () => {
68
- r == null || r.removeEventListener("click", e);
69
- };
70
- }, []), g(() => {
71
- const r = n.current, e = (t) => {
72
- t.stopPropagation();
73
- };
74
- return r == null || r.addEventListener("touchmove", e), () => {
75
- r == null || r.removeEventListener("touchmove", e);
76
- };
77
- }, []), g(() => () => {
78
- c.current && cancelAnimationFrame(c.current);
79
- }, []), /* @__PURE__ */ h(
80
- P,
81
- {
82
- ref: n,
83
- alignItems: "baseline",
84
- gap: L,
85
- pl: m,
86
- pr: m,
87
- onMouseDown: E,
88
- onMouseMove: I,
89
- onMouseUp: d,
90
- onMouseLeave: d,
91
- role: "list",
92
- "aria-roledescription": "carousel",
93
- "aria-label": "슬라이더",
94
- ...R,
95
- inlineCSS: {
96
- display: "grid",
97
- gridAutoFlow: "column",
98
- gridAutoColumns: "min-content",
99
- overflowX: "auto",
100
- scrollbarWidth: "none",
101
- cursor: "grab",
102
- transform: "translate3d(0, 0, 0)",
103
- "&::-webkit-scrollbar": {
104
- display: "none"
105
- },
106
- ...M
107
- },
108
- children: k.map(
109
- v,
110
- (r, e) => {
111
- var t;
112
- return N(r, {
113
- role: "listitem",
114
- tabIndex: e === y ? 0 : -1,
115
- "aria-roledescription": "slide",
116
- "aria-posinset": e + 1,
117
- "aria-setsize": f,
118
- onKeyDown: T(r.props.onKeyDown),
119
- onFocus: F(r.props.onFocus),
120
- ...r.props,
121
- style: {
122
- ...(t = r.props) == null ? void 0 : t.style,
123
- gridRow: `${e % o + 1} / ${e % o + 1}`
124
- }
125
- });
126
- }
127
- )
128
- }
129
- );
1
+ import e from "./RollerBlock/index.mjs";
2
+ import t from "../../../teacher/profile/components/CareNoteSection/CareNote/index.mjs";
3
+ import { Children as n, cloneElement as r, isValidElement as i, useEffect as a, useRef as o, useState as s } from "react";
4
+ import { Flexbox as c } from "@dotss/ui";
5
+ import { jsx as l } from "react/jsx-runtime";
6
+ //#region shared/components/Roller/Roller.tsx
7
+ function u({ children: u, spacing: d = 2, edgeSpacing: f = 4, rowCount: p = 1, inlineCSS: m, ...h }) {
8
+ let [g, _] = s(0), v = o(null), y = o(!1), b = o(!0), x = o(0), S = o(0), C = o(0), w = n.toArray(u).filter(i).filter((n) => n.type === e || n.type === t), T = w.length, E = (e) => {
9
+ y.current = !0, x.current = e.clientX - (v.current?.offsetLeft || 0), S.current = v.current?.scrollLeft || 0;
10
+ }, D = (e) => {
11
+ y.current && (e.currentTarget.style.cursor = "grabbing", v.current && (v.current.scrollLeft = S.current - (e.clientX - v.current.offsetLeft - x.current)));
12
+ }, O = (e) => {
13
+ y.current = !1, S.current === v.current?.scrollLeft ? b.current = !0 : (e.currentTarget.style.cursor = "grab", b.current = !1, C.current && cancelAnimationFrame(C.current), C.current = requestAnimationFrame(() => {
14
+ b.current = !0;
15
+ }));
16
+ }, k = (e) => (t) => {
17
+ t.stopPropagation();
18
+ let n = Number(t.currentTarget.getAttribute("aria-posinset")) - 1, r = n;
19
+ switch (t.key) {
20
+ case "ArrowRight":
21
+ t.preventDefault(), n + p < T && (r = n + p);
22
+ break;
23
+ case "ArrowLeft":
24
+ t.preventDefault(), n - p >= 0 && (r = n - p);
25
+ break;
26
+ case "ArrowDown":
27
+ t.preventDefault(), (n + 1) % p !== 0 && n + 1 < T && (r = n + 1);
28
+ break;
29
+ case "ArrowUp":
30
+ t.preventDefault(), n % p !== 0 && n - 1 >= 0 && (r = n - 1);
31
+ break;
32
+ case "Enter":
33
+ case " ":
34
+ t.preventDefault(), t.currentTarget.click();
35
+ return;
36
+ default: return;
37
+ }
38
+ r !== n && (v.current?.children[r])?.focus(), e?.(t);
39
+ }, A = (e) => (t) => {
40
+ _(Number(t.currentTarget.getAttribute("aria-posinset")) - 1), e?.(t);
41
+ };
42
+ return a(() => {
43
+ let e = v.current, t = (e) => {
44
+ b.current || e.stopPropagation();
45
+ };
46
+ return e?.addEventListener("click", t), () => {
47
+ e?.removeEventListener("click", t);
48
+ };
49
+ }, []), a(() => {
50
+ let e = v.current, t = (e) => {
51
+ e.stopPropagation();
52
+ };
53
+ return e?.addEventListener("touchmove", t), () => {
54
+ e?.removeEventListener("touchmove", t);
55
+ };
56
+ }, []), a(() => () => {
57
+ C.current && cancelAnimationFrame(C.current);
58
+ }, []), /* @__PURE__ */ l(c, {
59
+ ref: v,
60
+ alignItems: "baseline",
61
+ gap: d,
62
+ pl: f,
63
+ pr: f,
64
+ onMouseDown: E,
65
+ onMouseMove: D,
66
+ onMouseUp: O,
67
+ onMouseLeave: O,
68
+ role: "list",
69
+ "aria-roledescription": "carousel",
70
+ "aria-label": "슬라이더",
71
+ ...h,
72
+ inlineCSS: {
73
+ display: "grid",
74
+ gridAutoFlow: "column",
75
+ gridAutoColumns: "min-content",
76
+ overflowX: "auto",
77
+ scrollbarWidth: "none",
78
+ cursor: "grab",
79
+ transform: "translate3d(0, 0, 0)",
80
+ "&::-webkit-scrollbar": { display: "none" },
81
+ ...m
82
+ },
83
+ children: n.map(w, (e, t) => r(e, {
84
+ role: "listitem",
85
+ tabIndex: t === g ? 0 : -1,
86
+ "aria-roledescription": "slide",
87
+ "aria-posinset": t + 1,
88
+ "aria-setsize": T,
89
+ onKeyDown: k(e.props.onKeyDown),
90
+ onFocus: A(e.props.onFocus),
91
+ ...e.props,
92
+ style: {
93
+ ...e.props?.style,
94
+ gridRow: `${t % p + 1} / ${t % p + 1}`
95
+ }
96
+ }))
97
+ });
130
98
  }
131
- export {
132
- V as default
133
- };
99
+ //#endregion
100
+ export { u as default };
@@ -1,8 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
1
  import { Flexbox as e } from "@dotss/ui";
3
- function m({ children: o, ...r }) {
4
- return /* @__PURE__ */ t(e, { ...r, children: o });
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region shared/components/Roller/RollerBlock/RollerBlock.tsx
4
+ function n({ children: n, ...r }) {
5
+ return /* @__PURE__ */ t(e, {
6
+ ...r,
7
+ children: n
8
+ });
5
9
  }
6
- export {
7
- m as default
8
- };
10
+ //#endregion
11
+ export { n as default };
@@ -1,4 +1,5 @@
1
- import l from "./RollerBlock.mjs";
2
- export {
3
- l as default
4
- };
1
+ import e from "./RollerBlock.mjs";
2
+ //#region shared/components/Roller/RollerBlock/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,6 +1,6 @@
1
- import l from "./Roller.mjs";
2
- import { default as t } from "./RollerBlock/RollerBlock.mjs";
3
- export {
4
- t as RollerBlock,
5
- l as default
6
- };
1
+ import e from "./RollerBlock/index.mjs";
2
+ import t from "./Roller.mjs";
3
+ //#region shared/components/Roller/index.ts
4
+ var n = t;
5
+ //#endregion
6
+ export { e as RollerBlock, n as default };
@@ -1,31 +1,23 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Flexbox as o, Typography as a } from "@dotss/ui";
3
- function x({ children: r, style: t, ...l }) {
4
- return /* @__PURE__ */ e(
5
- o,
6
- {
7
- p: 0.5,
8
- flex: 1,
9
- flexWrap: "wrap",
10
- ...l,
11
- style: {
12
- overflowX: "auto",
13
- ...t
14
- },
15
- children: /* @__PURE__ */ e(
16
- a,
17
- {
18
- variant: "c5M",
19
- textAlign: "center",
20
- style: {
21
- flex: 1
22
- },
23
- children: r
24
- }
25
- )
26
- }
27
- );
1
+ import { Flexbox as e, Typography as t } from "@dotss/ui";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ //#region shared/components/Scheduler/ScheduleBlock/ScheduleBlock.tsx
4
+ function r({ children: r, style: i, ...a }) {
5
+ return /* @__PURE__ */ n(e, {
6
+ p: .5,
7
+ flex: 1,
8
+ flexWrap: "wrap",
9
+ ...a,
10
+ style: {
11
+ overflowX: "auto",
12
+ ...i
13
+ },
14
+ children: /* @__PURE__ */ n(t, {
15
+ variant: "c5M",
16
+ textAlign: "center",
17
+ style: { flex: 1 },
18
+ children: r
19
+ })
20
+ });
28
21
  }
29
- export {
30
- x as default
31
- };
22
+ //#endregion
23
+ export { r as default };
@@ -1,4 +1,5 @@
1
- import o from "./ScheduleBlock.mjs";
2
- export {
3
- o as default
4
- };
1
+ import e from "./ScheduleBlock.mjs";
2
+ //#region shared/components/Scheduler/ScheduleBlock/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,36 +1,26 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Flexbox as l, Typography as n } from "@dotss/ui";
3
- import p from "@dotss/ui/core/useTheme";
4
- function s({ children: r, style: t, startDate: f, endDate: i, ...o }) {
5
- const {
6
- palette: { brand: a }
7
- } = p();
8
- return /* @__PURE__ */ e(
9
- l,
10
- {
11
- p: 0.5,
12
- flex: 1,
13
- flexWrap: "wrap",
14
- ...o,
15
- style: {
16
- backgroundColor: a.primary.main,
17
- overflowX: "auto",
18
- ...t
19
- },
20
- children: /* @__PURE__ */ e(
21
- n,
22
- {
23
- variant: "c5M",
24
- textAlign: "center",
25
- style: {
26
- flex: 1
27
- },
28
- children: r
29
- }
30
- )
31
- }
32
- );
1
+ import { Flexbox as e, Typography as t } from "@dotss/ui";
2
+ import n from "@dotss/ui/core/useTheme";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ //#region shared/components/Scheduler/ScheduleEvent/ScheduleEvent.tsx
5
+ function i({ children: i, style: a, startDate: o, endDate: s, ...c }) {
6
+ let { palette: { brand: l } } = n();
7
+ return /* @__PURE__ */ r(e, {
8
+ p: .5,
9
+ flex: 1,
10
+ flexWrap: "wrap",
11
+ ...c,
12
+ style: {
13
+ backgroundColor: l.primary.main,
14
+ overflowX: "auto",
15
+ ...a
16
+ },
17
+ children: /* @__PURE__ */ r(t, {
18
+ variant: "c5M",
19
+ textAlign: "center",
20
+ style: { flex: 1 },
21
+ children: i
22
+ })
23
+ });
33
24
  }
34
- export {
35
- s as default
36
- };
25
+ //#endregion
26
+ export { i as default };
@@ -1,4 +1,5 @@
1
- import t from "./ScheduleEvent.mjs";
2
- export {
3
- t as default
4
- };
1
+ import e from "./ScheduleEvent.mjs";
2
+ //#region shared/components/Scheduler/ScheduleEvent/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };