@dotss/tictoccroc 0.4.1 → 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 (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.d.ts +3 -1
  24. package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -105
  25. package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
  26. package/dist/parent/notification/components/index.mjs +2 -4
  27. package/dist/parent/notification/utils/index.mjs +2 -4
  28. package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
  29. package/dist/purify.es-D3W4zDrg.js +549 -0
  30. package/dist/shared/components/Calendar/Calendar.mjs +2 -80
  31. package/dist/shared/components/Calendar/index.mjs +5 -4
  32. package/dist/shared/components/Carousel/Carousel.mjs +184 -210
  33. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
  34. package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
  35. package/dist/shared/components/Carousel/index.mjs +6 -6
  36. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
  37. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
  38. package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
  39. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
  40. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
  41. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
  42. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
  43. package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
  44. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
  45. package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
  46. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
  47. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
  48. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
  49. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
  50. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
  51. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
  52. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
  53. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
  54. package/dist/shared/components/ChatKit/index.mjs +13 -29
  55. package/dist/shared/components/Image/Image.d.ts +2 -0
  56. package/dist/shared/components/Image/Image.error.mjs +34 -40
  57. package/dist/shared/components/Image/Image.mjs +247 -289
  58. package/dist/shared/components/Image/index.mjs +6 -6
  59. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
  60. package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
  61. package/dist/shared/components/Masonry/Masonry.mjs +240 -276
  62. package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
  63. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
  64. package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
  65. package/dist/shared/components/Masonry/index.mjs +6 -6
  66. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
  67. package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
  68. package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
  69. package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
  70. package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
  71. package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
  72. package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
  73. package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
  74. package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
  75. package/dist/shared/components/MediaDialog/index.mjs +9 -12
  76. package/dist/shared/components/Roller/Roller.mjs +99 -132
  77. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
  78. package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
  79. package/dist/shared/components/Roller/index.mjs +6 -6
  80. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
  81. package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
  82. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
  83. package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
  84. package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
  85. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
  86. package/dist/shared/components/Scheduler/index.mjs +8 -10
  87. package/dist/shared/components/Swiper/Swiper.mjs +238 -283
  88. package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
  89. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
  90. package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
  91. package/dist/shared/components/Swiper/index.mjs +6 -6
  92. package/dist/shared/components/TextField/TextField.mjs +44 -55
  93. package/dist/shared/components/TextField/index.mjs +5 -4
  94. package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
  95. package/dist/shared/components/TimePicker/index.mjs +5 -4
  96. package/dist/shared/components/index.mjs +36 -75
  97. package/dist/shared/hooks/index.mjs +4 -8
  98. package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
  99. package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
  100. package/dist/shared/hooks/useInView/index.mjs +5 -4
  101. package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
  102. package/dist/shared/hooks/useInView/useInView.mjs +37 -47
  103. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
  104. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
  105. package/dist/shared/typings/common.mjs +6 -4
  106. package/dist/shared/typings/index.mjs +2 -4
  107. package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
  108. package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
  109. package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
  110. package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
  111. package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
  112. package/dist/shared/utils/combineRef/index.mjs +5 -4
  113. package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
  114. package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
  115. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
  116. package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
  117. package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
  118. package/dist/shared/utils/getDateRange/index.mjs +5 -4
  119. package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
  120. package/dist/shared/utils/getImageUrl/index.mjs +5 -6
  121. package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
  122. package/dist/shared/utils/getTimeRange/index.mjs +5 -4
  123. package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
  124. package/dist/shared/utils/getVimeoId/index.mjs +5 -4
  125. package/dist/shared/utils/index.mjs +18 -36
  126. package/dist/shared/utils/isAndroid/index.mjs +5 -4
  127. package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
  128. package/dist/shared/utils/isApp/index.mjs +5 -4
  129. package/dist/shared/utils/isApp/isApp.mjs +4 -4
  130. package/dist/shared/utils/isDesktop/index.mjs +5 -4
  131. package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
  132. package/dist/shared/utils/isIos/index.mjs +5 -4
  133. package/dist/shared/utils/isIos/isIos.mjs +5 -5
  134. package/dist/shared/utils/isServer/index.mjs +4 -3
  135. package/dist/shared/utils/isServer/isServer.mjs +4 -4
  136. package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
  137. package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
  138. package/dist/shared/utils/parseQueryString/index.mjs +4 -3
  139. package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
  140. package/dist/shared/utils/share/index.mjs +5 -4
  141. package/dist/shared/utils/share/share.mjs +12 -14
  142. package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
  143. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
  144. package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
  145. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
  146. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
  147. package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
  148. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
  149. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
  150. package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
  151. package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
  152. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
  153. package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
  154. package/dist/teacher/home/components/index.mjs +9 -18
  155. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
  156. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
  157. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
  158. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
  159. package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
  160. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
  161. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
  162. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
  163. package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
  164. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
  165. package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
  166. package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
  167. package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
  168. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
  169. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
  170. package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
  171. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
  172. package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
  173. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
  174. package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
  175. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
  176. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
  177. package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
  178. package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
  179. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
  180. package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
  181. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
  182. package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
  183. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
  184. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
  185. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
  186. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
  187. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
  188. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
  189. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
  190. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
  191. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -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,331 +1,217 @@
1
- import { jsxs as B, jsx as x } from "react/jsx-runtime";
2
- import { useState as v, useRef as i, Children as nt, isValidElement as ct, useEffect as N, cloneElement as Yt } from "react";
3
- import { Flexbox as $, Typography as at, IconButton as $t } from "@dotss/ui";
4
- import wt from "@dotss/ui/core/useTheme";
5
- import Xt from "@dotss/ui/Dialog";
6
- import st from "./MediaBlock/MediaBlock.mjs";
7
- import Rt from "../Swiper/Swiper.mjs";
8
- function Dt({
9
- children: V,
10
- open: w = !1,
11
- onClose: Z,
12
- onSwipe: q,
13
- initialPage: J = 0,
14
- title: K,
15
- loop: ut = !1,
16
- fallback: it,
17
- ...E
18
- }) {
19
- const {
20
- palette: { grey: ot, etc: Q }
21
- } = wt(), [lt, _] = v(!1), [G, ft] = v(J), [ht, mt] = v("100vh"), [U, b] = v(1), [gt, Y] = v(!1), o = i(null), e = i(1), k = i(1), tt = i(3), y = i(0), M = i(0), W = i(0), A = i(0), n = i(0), c = i(0), l = i(!1), h = i(!1), D = i(null), X = i(0), C = i(0), dt = nt.toArray(V).filter((r) => ct(r)).filter((r) => r.type === st), pt = nt.toArray(V).filter((r) => ct(r)).filter((r) => r.type !== st), xt = (r) => (t) => {
22
- l.current && t.stopPropagation(), W.current = t.clientX - n.current, A.current = t.clientY - c.current, h.current = e.current > 1, r == null || r(t);
23
- }, yt = (r) => (t) => {
24
- if (!h.current) return;
25
- n.current = t.clientX - W.current, c.current = t.clientY - A.current;
26
- const u = t.currentTarget, { width: s, height: a } = u.getBoundingClientRect(), d = s / e.current, m = a / e.current, f = Math.max(
27
- 0,
28
- (d * e.current - o.current.offsetWidth) / 2
29
- ), g = Math.max(
30
- 0,
31
- (m * e.current - o.current.offsetHeight) / 2
32
- );
33
- n.current = Math.min(
34
- Math.max(n.current, -f),
35
- f
36
- ), c.current = Math.min(
37
- Math.max(c.current, -g),
38
- g
39
- ), t.currentTarget.style.cursor = "grabbing", t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`, r == null || r(t);
40
- }, rt = (r) => (t) => {
41
- h.current && (t.currentTarget.style.cursor = "grab"), h.current = !1, r == null || r(t);
42
- }, Mt = (r) => (t) => {
43
- if (W.current = t.touches[0].clientX - n.current, A.current = t.touches[0].clientY - c.current, l.current = t.touches.length === 2, h.current = t.touches.length === 1 && e.current > 1, l.current) {
44
- Y(!0);
45
- const u = t.touches[1].clientX - t.touches[0].clientX, s = t.touches[1].clientY - t.touches[0].clientY;
46
- y.current = Math.hypot(u, s);
47
- }
48
- r == null || r(t);
49
- }, Ct = (r) => (t) => {
50
- const u = t.touches.length === 2, s = t.touches.length === 1;
51
- if (l.current && u) {
52
- const a = t.touches[1].clientX - t.touches[0].clientX, d = t.touches[1].clientY - t.touches[0].clientY;
53
- M.current = Math.hypot(a, d);
54
- const m = M.current / y.current, f = Math.min(
55
- Math.max(k.current, e.current * m),
56
- tt.current
57
- ), g = (t.touches[0].clientX + t.touches[1].clientX) / 2, p = (t.touches[0].clientY + t.touches[1].clientY) / 2, { left: S, top: F, width: R, height: I } = t.currentTarget.getBoundingClientRect(), O = R / e.current, z = I / e.current, L = g - S - R / 2, j = p - F - I / 2, T = f / e.current;
58
- n.current -= L * (T - 1), c.current -= j * (T - 1), e.current = f, b(f), Y(!0);
59
- const H = Math.max(
60
- 0,
61
- (O * e.current - o.current.offsetWidth) / 2
62
- ), P = Math.max(
63
- 0,
64
- (z * e.current - o.current.offsetHeight) / 2
65
- );
66
- n.current = Math.min(
67
- Math.max(n.current, -H),
68
- H
69
- ), c.current = Math.min(
70
- Math.max(c.current, -P),
71
- P
72
- ), y.current = M.current, t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`;
73
- } else if (h.current && s) {
74
- n.current = t.touches[0].clientX - W.current, c.current = t.touches[0].clientY - A.current;
75
- const { width: a, height: d } = t.currentTarget.getBoundingClientRect(), m = a / e.current, f = d / e.current, g = Math.max(
76
- 0,
77
- (m * e.current - o.current.offsetWidth) / 2
78
- ), p = Math.max(
79
- 0,
80
- (f * e.current - o.current.offsetHeight) / 2
81
- );
82
- n.current = Math.min(
83
- Math.max(n.current, -g),
84
- g
85
- ), c.current = Math.min(
86
- Math.max(c.current, -p),
87
- p
88
- ), t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`;
89
- }
90
- r == null || r(t);
91
- }, et = (r) => (t) => {
92
- const u = e.current;
93
- if (l.current && u > 1.2) {
94
- const s = Math.abs(
95
- (t.currentTarget.offsetWidth * e.current - o.current.offsetWidth) / 2
96
- ), a = Math.abs(
97
- (t.currentTarget.offsetHeight * e.current - o.current.offsetHeight) / 2
98
- );
99
- n.current = Math.min(
100
- Math.max(n.current, -s),
101
- s
102
- ), c.current = Math.min(
103
- Math.max(c.current, -a),
104
- a
105
- ), t.currentTarget.style.transition = "transform 0.3s", t.currentTarget.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`;
106
- } else l.current && u <= 1.2 && (n.current = 0, c.current = 0, y.current = 0, M.current = 0, e.current = 1, l.current = !1, h.current = !1, b(1), Y(!1), t.currentTarget.style.transition = "transform 0.3s", t.currentTarget.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`);
107
- h.current = !1, r == null || r(t);
108
- }, St = ({ currentPage: r }) => {
109
- var u;
110
- r !== G ? (n.current = 0, c.current = 0, y.current = 0, e.current = 1, M.current = 0, l.current = !1, h.current = !1, b(1), Array.from(((u = D.current) == null ? void 0 : u.getElementsByTagName("img")) || []).forEach((a) => {
111
- a.style.cursor = "default", a.style.transition = "transform 0.1s 0.1s", a.style.transform = "translate3d(0, 0, 0) scale(1)";
112
- })) : e.current > 1.2 && (l.current = !0), q == null || q(r), ft(r);
113
- }, bt = () => {
114
- h.current = !1;
115
- };
116
- return N(() => {
117
- var u;
118
- const r = Array.from(((u = D.current) == null ? void 0 : u.getElementsByTagName("img")) || []), t = (s) => {
119
- s.preventDefault(), l.current = !0, Y(!0);
120
- const a = s.currentTarget, d = s.deltaY > 0 ? -0.1 : 0.1, m = Math.min(
121
- Math.max(k.current, e.current + d),
122
- tt.current
123
- ), { left: f, top: g, width: p, height: S } = a.getBoundingClientRect(), F = p / e.current, R = S / e.current, I = s.clientX - f - p / 2, O = s.clientY - g - S / 2, z = m / e.current;
124
- n.current -= I * (z - 1), c.current -= O * (z - 1), e.current = m, b(m);
125
- const L = Math.max(
126
- 0,
127
- (F * e.current - o.current.offsetWidth) / 2
128
- ), j = Math.max(
129
- 0,
130
- (R * e.current - o.current.offsetHeight) / 2
131
- );
132
- n.current = Math.min(
133
- Math.max(n.current, -L),
134
- L
135
- ), c.current = Math.min(
136
- Math.max(c.current, -j),
137
- j
138
- ), l.current = !0, a.style.cursor = "grab", a.style.transition = "none", a.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`, C.current && cancelAnimationFrame(C.current), C.current = requestAnimationFrame(() => {
139
- const T = e.current;
140
- if (T > 1) {
141
- const H = Math.max(
142
- 0,
143
- (F * e.current - o.current.offsetWidth) / 2
144
- ), P = Math.max(
145
- 0,
146
- (R * e.current - o.current.offsetHeight) / 2
147
- );
148
- n.current = Math.min(
149
- Math.max(n.current, -H),
150
- H
151
- ), c.current = Math.min(
152
- Math.max(c.current, -P),
153
- P
154
- ), a.style.cursor = "default", a.style.transition = "transform 0.3s", a.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`;
155
- } else T <= 1.2 && (n.current = 0, c.current = 0, y.current = 0, M.current = 0, e.current = 1, l.current = !1, h.current = !1, b(1), Y(!1), a.style.cursor = "default", a.style.transition = "transform 0.3s", a.style.transform = `translate3d(${n.current}px, ${c.current}px, 0) scale(${e.current})`);
156
- });
157
- };
158
- return r.forEach((s) => {
159
- s.addEventListener("wheel", t);
160
- }), () => {
161
- C.current && cancelAnimationFrame(C.current), r.forEach((s) => {
162
- s.removeEventListener("wheel", t);
163
- });
164
- };
165
- }, [lt]), N(() => {
166
- const r = () => {
167
- var u;
168
- const t = (u = D.current) == null ? void 0 : u.offsetHeight;
169
- t && mt(`${t}px`);
170
- };
171
- return r(), window.addEventListener("resize", r), () => {
172
- window.removeEventListener("resize", r);
173
- };
174
- }, []), N(() => (w ? X.current = requestAnimationFrame(() => {
175
- _(!0);
176
- }) : _(!1), () => {
177
- X.current && cancelAnimationFrame(X.current);
178
- }), [w]), N(() => (w && (e.current = 1, b(1), Y(!1), n.current = 0, c.current = 0, y.current = 0, M.current = 0, l.current = !1, h.current = !1), () => {
179
- C.current && cancelAnimationFrame(C.current), X.current && cancelAnimationFrame(X.current);
180
- }), [w]), /* @__PURE__ */ B(
181
- Xt,
182
- {
183
- ref: o,
184
- open: w,
185
- onClose: Z,
186
- fullScreen: !0,
187
- hideStatusBar: !0,
188
- hideSystemNavigationBar: !0,
189
- "aria-modal": !0,
190
- "aria-labelledby": K ? "media-dialog-title" : void 0,
191
- ...E,
192
- inlineCSS: {
193
- backgroundColor: ot.black,
194
- scrollbarWidth: "none",
195
- "&::-webkit-scrollbar": {
196
- display: "none"
197
- },
198
- "& > div": {
199
- scrollbarWidth: "none",
200
- "&::-webkit-scrollbar": {
201
- display: "none"
202
- }
203
- },
204
- ...E == null ? void 0 : E.inlineCSS
205
- },
206
- children: [
207
- /* @__PURE__ */ x(
208
- $,
209
- {
210
- "aria-hidden": !0,
211
- inlineCSS: {
212
- position: "absolute",
213
- top: 0,
214
- left: 0,
215
- width: "100%",
216
- minHeight: "var(--status-bar-height, 0px)",
217
- backgroundColor: Q.dimmed01,
218
- zIndex: 2
219
- }
220
- }
221
- ),
222
- /* @__PURE__ */ x(
223
- $,
224
- {
225
- tag: "header",
226
- inlineCSS: {
227
- position: "absolute",
228
- top: "var(--status-bar-height, 0px)",
229
- left: 0,
230
- width: "100%",
231
- backgroundColor: Q.dimmed01,
232
- zIndex: 2
233
- },
234
- children: /* @__PURE__ */ B(
235
- $,
236
- {
237
- alignItems: "center",
238
- p: 2,
239
- inlineCSS: {
240
- position: "relative",
241
- display: "grid",
242
- gridTemplateColumns: "1fr auto 1fr",
243
- width: "100%",
244
- minHeight: 56,
245
- maxHeight: 56
246
- },
247
- children: [
248
- /* @__PURE__ */ x($, {}),
249
- /* @__PURE__ */ x(
250
- at,
251
- {
252
- id: "media-dialog-title",
253
- tag: "div",
254
- variant: "h4B",
255
- noWrap: !0,
256
- color: "grey.white",
257
- "aria-label": "이미지 확대창",
258
- inlineCSS: {
259
- flexGrow: 1
260
- },
261
- children: K
262
- }
263
- ),
264
- /* @__PURE__ */ x($, { justifyContent: "flex-end", children: /* @__PURE__ */ x($t, { name: "CloseLine", color: "tertiary", onClick: Z, "aria-label": "창 닫기" }) })
265
- ]
266
- }
267
- )
268
- }
269
- ),
270
- /* @__PURE__ */ x(
271
- $,
272
- {
273
- ref: D,
274
- alignItems: "center",
275
- justifyContent: "center",
276
- inlineCSS: {
277
- position: "relative",
278
- width: "100%",
279
- height: "100%",
280
- touchAction: "none",
281
- overflow: "hidden"
282
- },
283
- children: /* @__PURE__ */ x(
284
- Rt,
285
- {
286
- onSwipe: St,
287
- onSwiping: bt,
288
- initialPage: J,
289
- loop: ut,
290
- disableSwipe: gt,
291
- children: dt.map(
292
- (r, t) => {
293
- var u, s, a, d, m, f, g, p, S;
294
- return Yt(r, {
295
- fallback: it,
296
- ...r.props,
297
- imageProps: {
298
- ...r.props.imageProps,
299
- lazy: G - 1 > t || G + 1 < t,
300
- onMouseDown: xt((u = r.props.imageProps) == null ? void 0 : u.onMouseDown),
301
- onMouseMove: yt((s = r.props.imageProps) == null ? void 0 : s.onMouseMove),
302
- onMouseUp: rt((a = r.props.imageProps) == null ? void 0 : a.onMouseUp),
303
- onMouseOut: rt((d = r.props.imageProps) == null ? void 0 : d.onMouseOut),
304
- onTouchStart: Mt((m = r.props.imageProps) == null ? void 0 : m.onTouchStart),
305
- onTouchMove: Ct((f = r.props.imageProps) == null ? void 0 : f.onTouchMove),
306
- onTouchEnd: et((g = r.props.imageProps) == null ? void 0 : g.onTouchEnd),
307
- onTouchCancel: et((p = r.props.imageProps) == null ? void 0 : p.onTouchCancel),
308
- style: {
309
- maxHeight: ht,
310
- ...(S = r.props.imageProps) == null ? void 0 : S.style
311
- }
312
- }
313
- });
314
- }
315
- )
316
- }
317
- )
318
- }
319
- ),
320
- pt,
321
- /* @__PURE__ */ B(at, { role: "status", visuallyHidden: !0, children: [
322
- U > 1 && "이미지가 확대되었어요.",
323
- U <= 1 && "이미지가 원래 크기로 복원되었어요."
324
- ] })
325
- ]
326
- }
327
- );
1
+ import e from "./MediaBlock/MediaBlock.mjs";
2
+ import t from "../Swiper/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, IconButton as l, Typography as u } from "@dotss/ui";
5
+ import d from "@dotss/ui/core/useTheme";
6
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
+ import m from "@dotss/ui/Dialog";
8
+ //#region shared/components/MediaDialog/MediaDialog.tsx
9
+ function h({ children: h, open: g = !1, onClose: _, onSwipe: ee, initialPage: v = 0, title: y, loop: b = !1, fallback: x, ...S }) {
10
+ let { palette: { grey: C, etc: w } } = d(), [T, E] = s(!1), [D, te] = s(v), [O, k] = s("100vh"), [A, j] = s(1), [M, N] = s(!1), P = o(null), F = o(1), I = o(1), L = o(3), R = o(0), z = o(0), B = o(0), V = o(0), H = o(0), U = o(0), W = o(!1), G = o(!1), K = o(null), q = o(0), J = o(0), Y = n.toArray(h).filter((e) => i(e)).filter((t) => t.type === e), X = n.toArray(h).filter((e) => i(e)).filter((t) => t.type !== e), Z = (e) => (t) => {
11
+ W.current && t.stopPropagation(), B.current = t.clientX - H.current, V.current = t.clientY - U.current, G.current = F.current > 1, e?.(t);
12
+ }, ne = (e) => (t) => {
13
+ if (!G.current) return;
14
+ H.current = t.clientX - B.current, U.current = t.clientY - V.current;
15
+ let { width: n, height: r } = t.currentTarget.getBoundingClientRect(), i = n / F.current, a = r / F.current, o = Math.max(0, (i * F.current - P.current.offsetWidth) / 2), s = Math.max(0, (a * F.current - P.current.offsetHeight) / 2);
16
+ H.current = Math.min(Math.max(H.current, -o), o), U.current = Math.min(Math.max(U.current, -s), s), t.currentTarget.style.cursor = "grabbing", t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`, e?.(t);
17
+ }, Q = (e) => (t) => {
18
+ G.current && (t.currentTarget.style.cursor = "grab"), G.current = !1, e?.(t);
19
+ }, re = (e) => (t) => {
20
+ if (B.current = t.touches[0].clientX - H.current, V.current = t.touches[0].clientY - U.current, W.current = t.touches.length === 2, G.current = t.touches.length === 1 && F.current > 1, W.current) {
21
+ N(!0);
22
+ let e = t.touches[1].clientX - t.touches[0].clientX, n = t.touches[1].clientY - t.touches[0].clientY;
23
+ R.current = Math.hypot(e, n);
24
+ }
25
+ e?.(t);
26
+ }, ie = (e) => (t) => {
27
+ let n = t.touches.length === 2, r = t.touches.length === 1;
28
+ if (W.current && n) {
29
+ let e = t.touches[1].clientX - t.touches[0].clientX, n = t.touches[1].clientY - t.touches[0].clientY;
30
+ z.current = Math.hypot(e, n);
31
+ let r = z.current / R.current, i = Math.min(Math.max(I.current, F.current * r), L.current), a = (t.touches[0].clientX + t.touches[1].clientX) / 2, o = (t.touches[0].clientY + t.touches[1].clientY) / 2, { left: s, top: c, width: l, height: u } = t.currentTarget.getBoundingClientRect(), d = l / F.current, f = u / F.current, p = a - s - l / 2, m = o - c - u / 2, h = i / F.current;
32
+ H.current -= p * (h - 1), U.current -= m * (h - 1), F.current = i, j(i), N(!0);
33
+ let g = Math.max(0, (d * F.current - P.current.offsetWidth) / 2), _ = Math.max(0, (f * F.current - P.current.offsetHeight) / 2);
34
+ H.current = Math.min(Math.max(H.current, -g), g), U.current = Math.min(Math.max(U.current, -_), _), R.current = z.current, t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`;
35
+ } else if (G.current && r) {
36
+ H.current = t.touches[0].clientX - B.current, U.current = t.touches[0].clientY - V.current;
37
+ let { width: e, height: n } = t.currentTarget.getBoundingClientRect(), r = e / F.current, i = n / F.current, a = Math.max(0, (r * F.current - P.current.offsetWidth) / 2), o = Math.max(0, (i * F.current - P.current.offsetHeight) / 2);
38
+ H.current = Math.min(Math.max(H.current, -a), a), U.current = Math.min(Math.max(U.current, -o), o), t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`;
39
+ }
40
+ e?.(t);
41
+ }, $ = (e) => (t) => {
42
+ let n = F.current;
43
+ if (W.current && n > 1.2) {
44
+ let e = Math.abs((t.currentTarget.offsetWidth * F.current - P.current.offsetWidth) / 2), n = Math.abs((t.currentTarget.offsetHeight * F.current - P.current.offsetHeight) / 2);
45
+ H.current = Math.min(Math.max(H.current, -e), e), U.current = Math.min(Math.max(U.current, -n), n), t.currentTarget.style.transition = "transform 0.3s", t.currentTarget.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`;
46
+ } else W.current && n <= 1.2 && (H.current = 0, U.current = 0, R.current = 0, z.current = 0, F.current = 1, W.current = !1, G.current = !1, j(1), N(!1), t.currentTarget.style.transition = "transform 0.3s", t.currentTarget.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`);
47
+ G.current = !1, e?.(t);
48
+ }, ae = ({ currentPage: e }) => {
49
+ e === D ? F.current > 1.2 && (W.current = !0) : (H.current = 0, U.current = 0, R.current = 0, F.current = 1, z.current = 0, W.current = !1, G.current = !1, j(1), Array.from(K.current?.getElementsByTagName("img") || []).forEach((e) => {
50
+ e.style.cursor = "default", e.style.transition = "transform 0.1s 0.1s", e.style.transform = "translate3d(0, 0, 0) scale(1)";
51
+ })), ee?.(e), te(e);
52
+ }, oe = () => {
53
+ G.current = !1;
54
+ };
55
+ return a(() => {
56
+ let e = Array.from(K.current?.getElementsByTagName("img") || []), t = (e) => {
57
+ e.preventDefault(), W.current = !0, N(!0);
58
+ let t = e.currentTarget, n = e.deltaY > 0 ? -.1 : .1, r = Math.min(Math.max(I.current, F.current + n), L.current), { left: i, top: a, width: o, height: s } = t.getBoundingClientRect(), c = o / F.current, l = s / F.current, u = e.clientX - i - o / 2, d = e.clientY - a - s / 2, f = r / F.current;
59
+ H.current -= u * (f - 1), U.current -= d * (f - 1), F.current = r, j(r);
60
+ let p = Math.max(0, (c * F.current - P.current.offsetWidth) / 2), m = Math.max(0, (l * F.current - P.current.offsetHeight) / 2);
61
+ H.current = Math.min(Math.max(H.current, -p), p), U.current = Math.min(Math.max(U.current, -m), m), W.current = !0, t.style.cursor = "grab", t.style.transition = "none", t.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`, J.current && cancelAnimationFrame(J.current), J.current = requestAnimationFrame(() => {
62
+ let e = F.current;
63
+ if (e > 1) {
64
+ let e = Math.max(0, (c * F.current - P.current.offsetWidth) / 2), n = Math.max(0, (l * F.current - P.current.offsetHeight) / 2);
65
+ H.current = Math.min(Math.max(H.current, -e), e), U.current = Math.min(Math.max(U.current, -n), n), t.style.cursor = "default", t.style.transition = "transform 0.3s", t.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`;
66
+ } else e <= 1.2 && (H.current = 0, U.current = 0, R.current = 0, z.current = 0, F.current = 1, W.current = !1, G.current = !1, j(1), N(!1), t.style.cursor = "default", t.style.transition = "transform 0.3s", t.style.transform = `translate3d(${H.current}px, ${U.current}px, 0) scale(${F.current})`);
67
+ });
68
+ };
69
+ return e.forEach((e) => {
70
+ e.addEventListener("wheel", t);
71
+ }), () => {
72
+ J.current && cancelAnimationFrame(J.current), e.forEach((e) => {
73
+ e.removeEventListener("wheel", t);
74
+ });
75
+ };
76
+ }, [T]), a(() => {
77
+ let e = () => {
78
+ let e = K.current?.offsetHeight;
79
+ e && k(`${e}px`);
80
+ };
81
+ return e(), window.addEventListener("resize", e), () => {
82
+ window.removeEventListener("resize", e);
83
+ };
84
+ }, []), a(() => (g ? q.current = requestAnimationFrame(() => {
85
+ E(!0);
86
+ }) : E(!1), () => {
87
+ q.current && cancelAnimationFrame(q.current);
88
+ }), [g]), a(() => (g && (F.current = 1, j(1), N(!1), H.current = 0, U.current = 0, R.current = 0, z.current = 0, W.current = !1, G.current = !1), () => {
89
+ J.current && cancelAnimationFrame(J.current), q.current && cancelAnimationFrame(q.current);
90
+ }), [g]), /* @__PURE__ */ p(m, {
91
+ ref: P,
92
+ open: g,
93
+ onClose: _,
94
+ fullScreen: !0,
95
+ hideStatusBar: !0,
96
+ hideSystemNavigationBar: !0,
97
+ "aria-modal": !0,
98
+ "aria-labelledby": y ? "media-dialog-title" : void 0,
99
+ ...S,
100
+ inlineCSS: {
101
+ backgroundColor: C.black,
102
+ scrollbarWidth: "none",
103
+ "&::-webkit-scrollbar": { display: "none" },
104
+ "& > div": {
105
+ scrollbarWidth: "none",
106
+ "&::-webkit-scrollbar": { display: "none" }
107
+ },
108
+ ...S?.inlineCSS
109
+ },
110
+ children: [
111
+ /* @__PURE__ */ f(c, {
112
+ "aria-hidden": !0,
113
+ inlineCSS: {
114
+ position: "absolute",
115
+ top: 0,
116
+ left: 0,
117
+ width: "100%",
118
+ minHeight: "var(--status-bar-height, 0px)",
119
+ backgroundColor: w.dimmed01,
120
+ zIndex: 2
121
+ }
122
+ }),
123
+ /* @__PURE__ */ f(c, {
124
+ tag: "header",
125
+ inlineCSS: {
126
+ position: "absolute",
127
+ top: "var(--status-bar-height, 0px)",
128
+ left: 0,
129
+ width: "100%",
130
+ backgroundColor: w.dimmed01,
131
+ zIndex: 2
132
+ },
133
+ children: /* @__PURE__ */ p(c, {
134
+ alignItems: "center",
135
+ p: 2,
136
+ inlineCSS: {
137
+ position: "relative",
138
+ display: "grid",
139
+ gridTemplateColumns: "1fr auto 1fr",
140
+ width: "100%",
141
+ minHeight: 56,
142
+ maxHeight: 56
143
+ },
144
+ children: [
145
+ /* @__PURE__ */ f(c, {}),
146
+ /* @__PURE__ */ f(u, {
147
+ id: "media-dialog-title",
148
+ tag: "div",
149
+ variant: "h4B",
150
+ noWrap: !0,
151
+ color: "grey.white",
152
+ "aria-label": "이미지 확대창",
153
+ inlineCSS: { flexGrow: 1 },
154
+ children: y
155
+ }),
156
+ /* @__PURE__ */ f(c, {
157
+ justifyContent: "flex-end",
158
+ children: /* @__PURE__ */ f(l, {
159
+ name: "CloseLine",
160
+ color: "tertiary",
161
+ onClick: _,
162
+ "aria-label": "창 닫기"
163
+ })
164
+ })
165
+ ]
166
+ })
167
+ }),
168
+ /* @__PURE__ */ f(c, {
169
+ ref: K,
170
+ alignItems: "center",
171
+ justifyContent: "center",
172
+ inlineCSS: {
173
+ position: "relative",
174
+ width: "100%",
175
+ height: "100%",
176
+ touchAction: "none",
177
+ overflow: "hidden"
178
+ },
179
+ children: /* @__PURE__ */ f(t, {
180
+ onSwipe: ae,
181
+ onSwiping: oe,
182
+ initialPage: v,
183
+ loop: b,
184
+ disableSwipe: M,
185
+ children: Y.map((e, t) => r(e, {
186
+ fallback: x,
187
+ ...e.props,
188
+ imageProps: {
189
+ ...e.props.imageProps,
190
+ lazy: D - 1 > t || D + 1 < t,
191
+ onMouseDown: Z(e.props.imageProps?.onMouseDown),
192
+ onMouseMove: ne(e.props.imageProps?.onMouseMove),
193
+ onMouseUp: Q(e.props.imageProps?.onMouseUp),
194
+ onMouseOut: Q(e.props.imageProps?.onMouseOut),
195
+ onTouchStart: re(e.props.imageProps?.onTouchStart),
196
+ onTouchMove: ie(e.props.imageProps?.onTouchMove),
197
+ onTouchEnd: $(e.props.imageProps?.onTouchEnd),
198
+ onTouchCancel: $(e.props.imageProps?.onTouchCancel),
199
+ style: {
200
+ maxHeight: O,
201
+ ...e.props.imageProps?.style
202
+ }
203
+ }
204
+ }))
205
+ })
206
+ }),
207
+ X,
208
+ /* @__PURE__ */ p(u, {
209
+ role: "status",
210
+ visuallyHidden: !0,
211
+ children: [A > 1 && "이미지가 확대되었어요.", A <= 1 && "이미지가 원래 크기로 복원되었어요."]
212
+ })
213
+ ]
214
+ });
328
215
  }
329
- export {
330
- Dt as default
331
- };
216
+ //#endregion
217
+ export { h as default };
@@ -1,23 +1,20 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
1
  import { Typography as e } from "@dotss/ui";
3
- import i from "@dotss/ui/core/useTheme";
4
- function c({ children: n }) {
5
- const { spacing: o } = i();
6
- return /* @__PURE__ */ t(
7
- e,
8
- {
9
- variant: "b2R",
10
- color: "grey.white",
11
- inlineCSS: {
12
- display: "flex",
13
- flexDirection: "column",
14
- gap: o.content(2),
15
- padding: o.content(4)
16
- },
17
- children: n
18
- }
19
- );
2
+ import t from "@dotss/ui/core/useTheme";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.tsx
5
+ function r({ children: r }) {
6
+ let { spacing: i } = t();
7
+ return /* @__PURE__ */ n(e, {
8
+ variant: "b2R",
9
+ color: "grey.white",
10
+ inlineCSS: {
11
+ display: "flex",
12
+ flexDirection: "column",
13
+ gap: i.content(2),
14
+ padding: i.content(4)
15
+ },
16
+ children: r
17
+ });
20
18
  }
21
- export {
22
- c as default
23
- };
19
+ //#endregion
20
+ export { r as default };
@@ -1,4 +1,5 @@
1
- import t from "./MediaDialogContent.mjs";
2
- export {
3
- t as default
4
- };
1
+ import e from "./MediaDialogContent.mjs";
2
+ //#region shared/components/MediaDialog/MediaDialogContent/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };