@dotss/tictoccroc 0.0.0 → 0.0.2
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.
- package/dist/LessonNotesSection-a2QNdQtj.js +196 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +109 -52
- package/dist/shared/components/Calendar/Calendar.d.ts +3 -2
- package/dist/shared/components/Calendar/Calendar.mjs +1 -1
- package/dist/shared/components/Carousel/Carousel.d.ts +1 -1
- package/dist/shared/components/Carousel/Carousel.mjs +13 -13
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.d.ts +1 -1
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +1 -1
- package/dist/shared/components/Image/Image.d.ts +1 -1
- package/dist/shared/components/Image/Image.mjs +94 -93
- package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.mjs +12 -26
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.mjs +77 -98
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs +4 -4
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs +4 -4
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs +1 -1
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.d.ts +7 -0
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -0
- package/dist/shared/components/LoadingAnnouncer/index.d.ts +3 -0
- package/dist/shared/components/LoadingAnnouncer/index.mjs +4 -0
- package/dist/shared/components/Masonry/Masonry.d.ts +12 -0
- package/dist/shared/components/Masonry/Masonry.mjs +220 -0
- package/dist/shared/components/Masonry/Masonry.utils.d.ts +7 -0
- package/dist/shared/components/Masonry/Masonry.utils.mjs +76 -0
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.d.ts +11 -0
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +77 -0
- package/dist/shared/components/Masonry/MasonryBlock/index.d.ts +3 -0
- package/dist/shared/components/Masonry/MasonryBlock/index.mjs +4 -0
- package/dist/shared/components/Masonry/index.d.ts +4 -0
- package/dist/shared/components/Masonry/index.mjs +6 -0
- package/dist/shared/components/Roller/Roller.d.ts +1 -2
- package/dist/shared/components/Roller/Roller.mjs +7 -120
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.d.ts +1 -1
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +1 -1
- package/dist/shared/components/Roller/index.mjs +3 -3
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.d.ts +2 -5
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +1 -1
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.d.ts +1 -1
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +2 -2
- package/dist/shared/components/Scheduler/Scheduler.d.ts +4 -4
- package/dist/shared/components/Scheduler/Scheduler.mjs +167 -178
- package/dist/shared/components/Swiper/Swiper.d.ts +1 -1
- package/dist/shared/components/Swiper/Swiper.mjs +77 -97
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.d.ts +1 -1
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +1 -1
- package/dist/shared/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/shared/components/TimePicker/TimePicker.mjs +1 -1
- package/dist/shared/components/index.d.ts +14 -1
- package/dist/shared/components/index.mjs +40 -28
- package/dist/shared/utils/birthDateToAge/birthDateToAge.test.mjs +9 -10
- package/dist/shared/utils/getDateRange/getDateRange.d.ts +1 -1
- package/dist/shared/utils/getDateRange/getDateRange.test.mjs +27 -28
- package/dist/shared/utils/getImageUrl/getImageUrl.test.mjs +19 -20
- package/dist/shared/utils/getTimeRange/getTimeRange.test.mjs +22 -23
- package/dist/shared/utils/getVimeoId/getVimeoId.test.mjs +11 -12
- package/dist/shared/utils/index.d.ts +1 -0
- package/dist/shared/utils/index.mjs +6 -4
- package/dist/shared/utils/isAndroid/isAndroid.test.mjs +9 -10
- package/dist/shared/utils/isApp/isApp.test.mjs +14 -15
- package/dist/shared/utils/isDesktop/isDesktop.test.mjs +8 -9
- package/dist/shared/utils/isServer/isServer.test.mjs +10 -11
- package/dist/shared/utils/objectToQueryString/objectToQueryString.test.mjs +7 -7
- package/dist/shared/utils/parseQueryString/parseQueryString.test.mjs +10 -11
- package/dist/shared/utils/share/index.d.ts +2 -0
- package/dist/shared/utils/share/index.mjs +4 -0
- package/dist/shared/utils/share/share.d.ts +9 -0
- package/dist/shared/utils/share/share.mjs +15 -0
- package/dist/shared/utils/share/share.test.d.ts +1 -0
- package/dist/shared/utils/share/share.test.mjs +31 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.d.ts +15 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +441 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.d.ts +3 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.d.ts +6 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +111 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.d.ts +6 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +43 -0
- package/dist/teacher/profile/components/AbilityCollection/index.d.ts +5 -0
- package/dist/teacher/profile/components/AbilityCollection/index.mjs +8 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.d.ts +11 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +101 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.d.ts +8 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +124 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -0
- package/dist/teacher/profile/components/ActivityGallery/index.d.ts +4 -0
- package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.d.ts +22 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +179 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/index.d.ts +3 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +4 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.d.ts +10 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +136 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +4 -0
- package/dist/teacher/profile/components/CareerSection/CareerSection.d.ts +9 -0
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +185 -0
- package/dist/teacher/profile/components/CareerSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/CareerSection/index.mjs +6 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.d.ts +8 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs +91 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.mjs +4 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationSection.d.ts +9 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationSection.mjs +152 -0
- package/dist/teacher/profile/components/CertificationSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/CertificationSection/index.mjs +6 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.d.ts +9 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +105 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +4 -0
- package/dist/teacher/profile/components/EducationSection/EducationSection.d.ts +9 -0
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +152 -0
- package/dist/teacher/profile/components/EducationSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/EducationSection/index.mjs +6 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.d.ts +9 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs +54 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.d.ts +3 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.mjs +4 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.d.ts +7 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.mjs +8 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.utils.d.ts +4 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.utils.mjs +13 -0
- package/dist/teacher/profile/components/LessonNotesSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/LessonNotesSection/index.mjs +6 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.d.ts +10 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +103 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.d.ts +3 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +4 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.d.ts +7 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +79 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.d.ts +4 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +13 -0
- package/dist/teacher/profile/components/ParentReviewSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/ParentReviewSection/index.mjs +6 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.d.ts +9 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +37 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.d.ts +3 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.d.ts +8 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +32 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.d.ts +18 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +14 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/index.d.ts +4 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +6 -0
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.d.ts +25 -1
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +413 -5
- package/dist/teacher/profile/components/ProfileSummary/index.d.ts +2 -1
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.d.ts +7 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +105 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.d.ts +3 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +4 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.d.ts +6 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +28 -0
- package/dist/teacher/profile/components/StatBadgeCollection/index.d.ts +4 -0
- package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -0
- package/dist/teacher/profile/components/index.d.ts +24 -0
- package/dist/teacher/profile/components/index.mjs +46 -0
- package/package.json +2 -2
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as q, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { useState as W, useRef as u, useEffect as A } from "react";
|
|
3
|
-
import pt from "@
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import yt from "/Users/dong-yeon/Desktop/codes/dots/node_modules/.pnpm/@thedotscorp+ui@1.1.0_@emotion+react@11.14.0_@types+react@19.1.6_react@18.3.1__@emotion_5e74bcb90e85c612e05d311f1928ebed/node_modules/@thedotscorp/ui/IconButton/index.es.js";
|
|
7
|
-
import Ct from "@thedotscorp/ui/Typography";
|
|
3
|
+
import { Flexbox as w, Typography as et, IconButton as pt } from "@dotss/ui";
|
|
4
|
+
import yt from "@dotss/ui/core/useTheme";
|
|
5
|
+
import Ct from "@dotss/ui/Dialog";
|
|
8
6
|
import bt from "./ImageBlock/ImageBlock.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
function
|
|
12
|
-
children:
|
|
7
|
+
import Tt from "../Swiper/Swiper.mjs";
|
|
8
|
+
import St from "../Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
9
|
+
function Wt({
|
|
10
|
+
children: nt,
|
|
13
11
|
open: $ = !1,
|
|
14
|
-
onClose:
|
|
12
|
+
onClose: C,
|
|
15
13
|
onSwipe: P,
|
|
16
14
|
sources: L,
|
|
17
15
|
initialPage: G = 0,
|
|
18
16
|
title: U,
|
|
19
|
-
fallback:
|
|
20
|
-
loop:
|
|
17
|
+
fallback: ct,
|
|
18
|
+
loop: at = !1
|
|
21
19
|
}) {
|
|
22
20
|
const {
|
|
23
21
|
palette: { grey: Z, etc: O }
|
|
24
|
-
} =
|
|
22
|
+
} = yt(), [it, J] = W(!1), [st, ut] = W(G), [ot, b] = W(!1), [lt, ht] = W("100vh"), [K, T] = W(1), l = u(null), r = u(1), Q = u(1), V = u(3), g = u(0), x = u(0), B = u(0), D = u(0), e = u(0), n = u(0), o = u(!1), f = u(!1), k = u(null), Y = u(0), M = u(0), ft = (t) => {
|
|
25
23
|
o.current && t.stopPropagation(), B.current = t.clientX - e.current, D.current = t.clientY - n.current, f.current = r.current > 1;
|
|
26
|
-
},
|
|
24
|
+
}, mt = (t) => {
|
|
27
25
|
if (!f.current) return;
|
|
28
26
|
e.current = t.clientX - B.current, n.current = t.clientY - D.current;
|
|
29
|
-
const i = t.currentTarget, { width: s, height: a } = i.getBoundingClientRect(), c = s / r.current,
|
|
27
|
+
const i = t.currentTarget, { width: s, height: a } = i.getBoundingClientRect(), c = s / r.current, p = a / r.current, h = Math.max(
|
|
30
28
|
0,
|
|
31
29
|
(c * r.current - l.current.offsetWidth) / 2
|
|
32
30
|
), m = Math.max(
|
|
33
31
|
0,
|
|
34
|
-
(
|
|
32
|
+
(p * r.current - l.current.offsetHeight) / 2
|
|
35
33
|
);
|
|
36
34
|
e.current = Math.min(
|
|
37
35
|
Math.max(e.current, -h),
|
|
@@ -39,31 +37,31 @@ function Bt({
|
|
|
39
37
|
), n.current = Math.min(
|
|
40
38
|
Math.max(n.current, -m),
|
|
41
39
|
m
|
|
42
|
-
), Math.abs(e.current) >= h && (o.current = !1,
|
|
40
|
+
), Math.abs(e.current) >= h && (o.current = !1, b(!1)), t.currentTarget.style.cursor = "grabbing", t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`;
|
|
43
41
|
}, _ = (t) => {
|
|
44
42
|
f.current && (t.currentTarget.style.cursor = "grab"), f.current = !1;
|
|
45
|
-
},
|
|
43
|
+
}, dt = (t) => {
|
|
46
44
|
if (B.current = t.touches[0].clientX - e.current, D.current = t.touches[0].clientY - n.current, o.current = t.touches.length === 2, f.current = t.touches.length === 1 && r.current > 1, o.current) {
|
|
47
|
-
|
|
45
|
+
b(!0);
|
|
48
46
|
const i = t.touches[1].clientX - t.touches[0].clientX, s = t.touches[1].clientY - t.touches[0].clientY;
|
|
49
|
-
g.current = Math.
|
|
47
|
+
g.current = Math.hypot(i, s);
|
|
50
48
|
}
|
|
51
|
-
},
|
|
49
|
+
}, gt = (t) => {
|
|
52
50
|
const i = t.touches.length === 2, s = t.touches.length === 1;
|
|
53
51
|
if (o.current && i) {
|
|
54
52
|
const a = t.touches[1].clientX - t.touches[0].clientX, c = t.touches[1].clientY - t.touches[0].clientY;
|
|
55
|
-
x.current = Math.
|
|
56
|
-
const
|
|
57
|
-
Math.max(Q.current, r.current *
|
|
53
|
+
x.current = Math.hypot(a, c);
|
|
54
|
+
const p = x.current / g.current, h = Math.min(
|
|
55
|
+
Math.max(Q.current, r.current * p),
|
|
58
56
|
V.current
|
|
59
|
-
), m = (t.touches[0].clientX + t.touches[1].clientX) / 2, y = (t.touches[0].clientY + t.touches[1].clientY) / 2, { left:
|
|
60
|
-
e.current -= F * (R - 1), n.current -= z * (R - 1), r.current = h,
|
|
57
|
+
), m = (t.touches[0].clientX + t.touches[1].clientX) / 2, y = (t.touches[0].clientY + t.touches[1].clientY) / 2, { left: S, top: I, width: X, height: v } = t.currentTarget.getBoundingClientRect(), j = X / r.current, N = v / r.current, F = m - S - X / 2, z = y - I - v / 2, R = h / r.current;
|
|
58
|
+
e.current -= F * (R - 1), n.current -= z * (R - 1), r.current = h, T(h);
|
|
61
59
|
const E = Math.max(
|
|
62
60
|
0,
|
|
63
61
|
(j * r.current - l.current.offsetWidth) / 2
|
|
64
62
|
), H = Math.max(
|
|
65
63
|
0,
|
|
66
|
-
(
|
|
64
|
+
(N * r.current - l.current.offsetHeight) / 2
|
|
67
65
|
);
|
|
68
66
|
e.current = Math.min(
|
|
69
67
|
Math.max(e.current, -E),
|
|
@@ -74,9 +72,9 @@ function Bt({
|
|
|
74
72
|
), g.current = x.current, t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`;
|
|
75
73
|
} else if (f.current && s) {
|
|
76
74
|
e.current = t.touches[0].clientX - B.current, n.current = t.touches[0].clientY - D.current;
|
|
77
|
-
const { width: a, height: c } = t.currentTarget.getBoundingClientRect(),
|
|
75
|
+
const { width: a, height: c } = t.currentTarget.getBoundingClientRect(), p = a / r.current, h = c / r.current, m = Math.max(
|
|
78
76
|
0,
|
|
79
|
-
(
|
|
77
|
+
(p * r.current - l.current.offsetWidth) / 2
|
|
80
78
|
), y = Math.max(
|
|
81
79
|
0,
|
|
82
80
|
(h * r.current - l.current.offsetHeight) / 2
|
|
@@ -88,8 +86,8 @@ function Bt({
|
|
|
88
86
|
Math.max(n.current, -y),
|
|
89
87
|
y
|
|
90
88
|
);
|
|
91
|
-
const
|
|
92
|
-
|
|
89
|
+
const S = Math.abs(e.current) >= m;
|
|
90
|
+
b(!S), t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`;
|
|
93
91
|
}
|
|
94
92
|
}, tt = (t) => {
|
|
95
93
|
const i = r.current;
|
|
@@ -106,25 +104,25 @@ function Bt({
|
|
|
106
104
|
Math.max(n.current, -a),
|
|
107
105
|
a
|
|
108
106
|
), t.currentTarget.style.transition = "transform 0.3s", t.currentTarget.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`;
|
|
109
|
-
} else o.current && i <= 1.2 && (e.current = 0, n.current = 0, g.current = 0, x.current = 0, r.current = 1,
|
|
107
|
+
} else o.current && i <= 1.2 && (e.current = 0, n.current = 0, g.current = 0, x.current = 0, r.current = 1, T(1), o.current = !1, f.current = !1, t.currentTarget.style.transition = "transform 0.3s", t.currentTarget.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`, b(!1));
|
|
110
108
|
f.current = !1;
|
|
111
|
-
},
|
|
109
|
+
}, xt = ({ currentPage: t }) => {
|
|
112
110
|
var s;
|
|
113
|
-
t !==
|
|
111
|
+
t !== st ? (e.current = 0, n.current = 0, g.current = 0, r.current = 1, T(1), x.current = 0, o.current = !1, f.current = !1, Array.from(((s = k.current) == null ? void 0 : s.getElementsByTagName("img")) || []).forEach((c) => {
|
|
114
112
|
c.style.cursor = "default", c.style.transition = "transform 0.1s 0.1s", c.style.transform = "translate3d(0, 0, 0) scale(1)";
|
|
115
|
-
})) : r.current > 1.2 && (o.current = !0), P == null || P(t),
|
|
116
|
-
},
|
|
113
|
+
})) : r.current > 1.2 && (o.current = !0), P == null || P(t), ut(t);
|
|
114
|
+
}, Mt = () => {
|
|
117
115
|
f.current = !1;
|
|
118
116
|
};
|
|
119
117
|
return A(() => {
|
|
120
118
|
var s;
|
|
121
119
|
const t = Array.from(((s = k.current) == null ? void 0 : s.getElementsByTagName("img")) || []), i = (a) => {
|
|
122
|
-
a.preventDefault(), o.current = !0,
|
|
123
|
-
const c = a.currentTarget,
|
|
124
|
-
Math.max(Q.current, r.current +
|
|
120
|
+
a.preventDefault(), o.current = !0, b(!0);
|
|
121
|
+
const c = a.currentTarget, p = a.deltaY > 0 ? -0.1 : 0.1, h = Math.min(
|
|
122
|
+
Math.max(Q.current, r.current + p),
|
|
125
123
|
V.current
|
|
126
|
-
), { left: m, top: y, width:
|
|
127
|
-
e.current -= j * (F - 1), n.current -=
|
|
124
|
+
), { left: m, top: y, width: S, height: I } = c.getBoundingClientRect(), X = S / r.current, v = I / r.current, j = a.clientX - m - S / 2, N = a.clientY - y - I / 2, F = h / r.current;
|
|
125
|
+
e.current -= j * (F - 1), n.current -= N * (F - 1), r.current = h, T(h);
|
|
128
126
|
const z = Math.max(
|
|
129
127
|
0,
|
|
130
128
|
(X * r.current - l.current.offsetWidth) / 2
|
|
@@ -138,7 +136,7 @@ function Bt({
|
|
|
138
136
|
), n.current = Math.min(
|
|
139
137
|
Math.max(n.current, -R),
|
|
140
138
|
R
|
|
141
|
-
), o.current = !0, c.style.cursor = "grab", c.style.transition = "none", c.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`,
|
|
139
|
+
), o.current = !0, c.style.cursor = "grab", c.style.transition = "none", c.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`, M.current && cancelAnimationFrame(M.current), M.current = requestAnimationFrame(() => {
|
|
142
140
|
const E = r.current;
|
|
143
141
|
if (E > 1) {
|
|
144
142
|
const H = Math.max(
|
|
@@ -155,21 +153,21 @@ function Bt({
|
|
|
155
153
|
Math.max(n.current, -rt),
|
|
156
154
|
rt
|
|
157
155
|
), c.style.cursor = "default", c.style.transition = "transform 0.3s", c.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`;
|
|
158
|
-
} else E <= 1.2 && (
|
|
156
|
+
} else E <= 1.2 && (b(!1), e.current = 0, n.current = 0, g.current = 0, x.current = 0, r.current = 1, T(1), o.current = !1, f.current = !1, c.style.cursor = "default", c.style.transition = "transform 0.3s", c.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`);
|
|
159
157
|
});
|
|
160
158
|
};
|
|
161
159
|
return t.forEach((a) => {
|
|
162
160
|
a.addEventListener("wheel", i);
|
|
163
161
|
}), () => {
|
|
164
|
-
|
|
162
|
+
M.current && cancelAnimationFrame(M.current), t.forEach((a) => {
|
|
165
163
|
a.removeEventListener("wheel", i);
|
|
166
164
|
});
|
|
167
165
|
};
|
|
168
|
-
}, [
|
|
166
|
+
}, [it]), A(() => {
|
|
169
167
|
const t = () => {
|
|
170
168
|
var s;
|
|
171
169
|
const i = (s = k.current) == null ? void 0 : s.offsetHeight;
|
|
172
|
-
i &&
|
|
170
|
+
i && ht(`${i}px`);
|
|
173
171
|
};
|
|
174
172
|
return t(), window.addEventListener("resize", t), () => {
|
|
175
173
|
window.removeEventListener("resize", t);
|
|
@@ -178,16 +176,16 @@ function Bt({
|
|
|
178
176
|
J(!0);
|
|
179
177
|
}) : J(!1), () => {
|
|
180
178
|
Y.current && cancelAnimationFrame(Y.current);
|
|
181
|
-
}), [$]), A(() => ($ && (r.current = 1,
|
|
182
|
-
|
|
179
|
+
}), [$]), A(() => ($ && (r.current = 1, T(1), e.current = 0, n.current = 0, g.current = 0, x.current = 0, o.current = !1, f.current = !1), () => {
|
|
180
|
+
M.current && cancelAnimationFrame(M.current), Y.current && cancelAnimationFrame(Y.current);
|
|
183
181
|
}), [$]), A(() => {
|
|
184
|
-
L.length ||
|
|
185
|
-
}, [L,
|
|
186
|
-
|
|
182
|
+
L.length || C == null || C();
|
|
183
|
+
}, [L, C]), /* @__PURE__ */ q(
|
|
184
|
+
Ct,
|
|
187
185
|
{
|
|
188
186
|
ref: l,
|
|
189
187
|
open: $,
|
|
190
|
-
onClose:
|
|
188
|
+
onClose: C,
|
|
191
189
|
fullScreen: !0,
|
|
192
190
|
statusBarColor: Z.black,
|
|
193
191
|
hideSystemNavigationBar: !0,
|
|
@@ -208,7 +206,7 @@ function Bt({
|
|
|
208
206
|
},
|
|
209
207
|
children: [
|
|
210
208
|
/* @__PURE__ */ d(
|
|
211
|
-
|
|
209
|
+
w,
|
|
212
210
|
{
|
|
213
211
|
"aria-hidden": !0,
|
|
214
212
|
inlineCSS: {
|
|
@@ -223,7 +221,7 @@ function Bt({
|
|
|
223
221
|
}
|
|
224
222
|
),
|
|
225
223
|
/* @__PURE__ */ d(
|
|
226
|
-
|
|
224
|
+
w,
|
|
227
225
|
{
|
|
228
226
|
tag: "header",
|
|
229
227
|
inlineCSS: {
|
|
@@ -234,8 +232,8 @@ function Bt({
|
|
|
234
232
|
backgroundColor: O.dimmed01,
|
|
235
233
|
zIndex: 2
|
|
236
234
|
},
|
|
237
|
-
children: /* @__PURE__ */
|
|
238
|
-
|
|
235
|
+
children: /* @__PURE__ */ q(
|
|
236
|
+
w,
|
|
239
237
|
{
|
|
240
238
|
alignItems: "center",
|
|
241
239
|
p: 2,
|
|
@@ -248,9 +246,9 @@ function Bt({
|
|
|
248
246
|
maxHeight: 56
|
|
249
247
|
},
|
|
250
248
|
children: [
|
|
251
|
-
/* @__PURE__ */ d(
|
|
249
|
+
/* @__PURE__ */ d(w, {}),
|
|
252
250
|
/* @__PURE__ */ d(
|
|
253
|
-
|
|
251
|
+
et,
|
|
254
252
|
{
|
|
255
253
|
id: "image-zoom-dialog-title",
|
|
256
254
|
tag: "div",
|
|
@@ -264,14 +262,14 @@ function Bt({
|
|
|
264
262
|
children: U
|
|
265
263
|
}
|
|
266
264
|
),
|
|
267
|
-
/* @__PURE__ */ d(
|
|
265
|
+
/* @__PURE__ */ d(w, { justifyContent: "flex-end", children: /* @__PURE__ */ d(pt, { name: "CloseLine", color: "tertiary", onClick: C, "aria-label": "창 닫기" }) })
|
|
268
266
|
]
|
|
269
267
|
}
|
|
270
268
|
)
|
|
271
269
|
}
|
|
272
270
|
),
|
|
273
271
|
/* @__PURE__ */ d(
|
|
274
|
-
|
|
272
|
+
w,
|
|
275
273
|
{
|
|
276
274
|
ref: k,
|
|
277
275
|
alignItems: "center",
|
|
@@ -283,26 +281,26 @@ function Bt({
|
|
|
283
281
|
touchAction: "none"
|
|
284
282
|
},
|
|
285
283
|
children: /* @__PURE__ */ d(
|
|
286
|
-
|
|
284
|
+
Tt,
|
|
287
285
|
{
|
|
288
|
-
onSwipe:
|
|
289
|
-
onSwiping:
|
|
286
|
+
onSwipe: xt,
|
|
287
|
+
onSwiping: Mt,
|
|
290
288
|
initialPage: G,
|
|
291
|
-
disableSwipe:
|
|
292
|
-
loop:
|
|
293
|
-
children: L.map(({ url: t, alt: i }) => /* @__PURE__ */ d(
|
|
289
|
+
disableSwipe: ot,
|
|
290
|
+
loop: at,
|
|
291
|
+
children: L.map(({ url: t, alt: i }) => /* @__PURE__ */ d(St, { children: /* @__PURE__ */ d(
|
|
294
292
|
bt,
|
|
295
293
|
{
|
|
296
294
|
src: t,
|
|
297
295
|
alt: i,
|
|
298
|
-
containerHeight:
|
|
299
|
-
fallback:
|
|
300
|
-
onMouseDown:
|
|
301
|
-
onMouseMove:
|
|
296
|
+
containerHeight: lt,
|
|
297
|
+
fallback: ct,
|
|
298
|
+
onMouseDown: ft,
|
|
299
|
+
onMouseMove: mt,
|
|
302
300
|
onMouseUp: _,
|
|
303
301
|
onMouseOut: _,
|
|
304
|
-
onTouchStart:
|
|
305
|
-
onTouchMove:
|
|
302
|
+
onTouchStart: dt,
|
|
303
|
+
onTouchMove: gt,
|
|
306
304
|
onTouchEnd: tt,
|
|
307
305
|
onTouchCancel: tt
|
|
308
306
|
}
|
|
@@ -311,34 +309,15 @@ function Bt({
|
|
|
311
309
|
)
|
|
312
310
|
}
|
|
313
311
|
),
|
|
314
|
-
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
inlineCSS: {
|
|
320
|
-
position: "absolute",
|
|
321
|
-
top: 0,
|
|
322
|
-
left: 0,
|
|
323
|
-
width: "1px",
|
|
324
|
-
height: "1px",
|
|
325
|
-
padding: 0,
|
|
326
|
-
margin: "-1px",
|
|
327
|
-
overflow: "hidden",
|
|
328
|
-
clip: "rect(0, 0, 0, 0)",
|
|
329
|
-
whiteSpace: "nowrap",
|
|
330
|
-
border: 0
|
|
331
|
-
},
|
|
332
|
-
children: [
|
|
333
|
-
K > 1 && "이미지가 확대되었어요.",
|
|
334
|
-
K <= 1 && "이미지가 원래 크기로 복원되었어요."
|
|
335
|
-
]
|
|
336
|
-
}
|
|
337
|
-
)
|
|
312
|
+
nt,
|
|
313
|
+
/* @__PURE__ */ q(et, { role: "status", visuallyHidden: !0, children: [
|
|
314
|
+
K > 1 && "이미지가 확대되었어요.",
|
|
315
|
+
K <= 1 && "이미지가 원래 크기로 복원되었어요."
|
|
316
|
+
] })
|
|
338
317
|
]
|
|
339
318
|
}
|
|
340
319
|
);
|
|
341
320
|
}
|
|
342
321
|
export {
|
|
343
|
-
|
|
322
|
+
Wt as default
|
|
344
323
|
};
|
package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import e from "@
|
|
3
|
-
import i from "@
|
|
2
|
+
import { Typography as e } from "@dotss/ui";
|
|
3
|
+
import i from "@dotss/ui/core/useTheme";
|
|
4
4
|
function p({ children: n }) {
|
|
5
|
-
const { spacing: o } =
|
|
5
|
+
const { spacing: o } = i();
|
|
6
6
|
return /* @__PURE__ */ t(
|
|
7
|
-
|
|
7
|
+
e,
|
|
8
8
|
{
|
|
9
9
|
variant: "b2R",
|
|
10
10
|
color: "grey.white",
|
package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import i from "@
|
|
3
|
-
import r from "@
|
|
2
|
+
import { Flexbox as i } from "@dotss/ui";
|
|
3
|
+
import r from "@dotss/ui/core/useTheme";
|
|
4
4
|
function l({ children: o }) {
|
|
5
5
|
const {
|
|
6
6
|
palette: { etc: t }
|
|
7
|
-
} =
|
|
7
|
+
} = r();
|
|
8
8
|
return /* @__PURE__ */ e(
|
|
9
|
-
|
|
9
|
+
i,
|
|
10
10
|
{
|
|
11
11
|
tag: "footer",
|
|
12
12
|
flexDirection: "column",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypographyProps } from 'node_modules/@dotss/ui/Typography/Typography';
|
|
2
|
+
export interface LoadingAnnouncerProps extends Omit<TypographyProps, 'visuallyHidden'> {
|
|
3
|
+
delay?: number;
|
|
4
|
+
message?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function LoadingAnnouncer({ delay, message, ...props }: LoadingAnnouncerProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default LoadingAnnouncer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useEffect as l } from "react";
|
|
3
|
+
import { Typography as c } from "@dotss/ui";
|
|
4
|
+
function d({
|
|
5
|
+
delay: e = 1e3,
|
|
6
|
+
message: t = "데이터를 불러오는 중입니다.",
|
|
7
|
+
...o
|
|
8
|
+
}) {
|
|
9
|
+
const [n, r] = i(!1);
|
|
10
|
+
return l(() => {
|
|
11
|
+
const u = setTimeout(() => {
|
|
12
|
+
r(!0);
|
|
13
|
+
}, e);
|
|
14
|
+
return () => clearTimeout(u);
|
|
15
|
+
}, [e]), n ? /* @__PURE__ */ s(c, { role: "status", ...o, visuallyHidden: !0, children: t }) : null;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
|
+
export interface MasonryProps extends FlexboxProps {
|
|
3
|
+
columnCount?: number;
|
|
4
|
+
rowCount?: number;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
edgeSpacing?: number;
|
|
7
|
+
direction?: 'vertical' | 'horizontal';
|
|
8
|
+
defaultContainerWidth?: number;
|
|
9
|
+
defaultContainerHeight?: number;
|
|
10
|
+
}
|
|
11
|
+
declare function Masonry({ children, columnCount, rowCount, spacing, edgeSpacing, direction, defaultContainerWidth, defaultContainerHeight, ...props }: MasonryProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Masonry;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useRef as u, Children as T, isValidElement as G, useEffect as l, cloneElement as x } from "react";
|
|
3
|
+
import { Box as j, Flexbox as st } from "@dotss/ui";
|
|
4
|
+
import at from "@dotss/ui/core/useTheme";
|
|
5
|
+
import { findImageInChildren as ut, getHorizontalLayoutRows as it, getNextIndexHorizontalFromRows as ct, findNextFocusableElement as M } from "./Masonry.utils.mjs";
|
|
6
|
+
import q from "./MasonryBlock/MasonryBlock.mjs";
|
|
7
|
+
import V from "../../../teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs";
|
|
8
|
+
function wt({
|
|
9
|
+
children: h,
|
|
10
|
+
columnCount: z = 2,
|
|
11
|
+
rowCount: S = 2,
|
|
12
|
+
spacing: c = 2,
|
|
13
|
+
edgeSpacing: v = 0,
|
|
14
|
+
direction: w = "vertical",
|
|
15
|
+
defaultContainerWidth: $ = 0,
|
|
16
|
+
defaultContainerHeight: J = 0,
|
|
17
|
+
...d
|
|
18
|
+
}) {
|
|
19
|
+
const { spacing: y } = at(), [Q, Y] = m($), [Z, _] = m(J), [F, K] = m(0), o = u(null), i = u([]), b = u([]), A = u(!1), R = u(!0), H = u(0), E = u(0), f = u(0), k = 4 / 3, p = (Q - c) / z, g = w === "horizontal" ? (Z - c) / S : p * k, [I, B] = m(
|
|
20
|
+
T.toArray(h).filter(G).filter((t) => t.type === q || t.type === V)
|
|
21
|
+
), [W, O] = m([]), N = I.length, P = (t) => {
|
|
22
|
+
var r, e;
|
|
23
|
+
A.current = !0, H.current = t.clientX - (((r = o.current) == null ? void 0 : r.offsetLeft) || 0), E.current = ((e = o.current) == null ? void 0 : e.scrollLeft) || 0;
|
|
24
|
+
}, U = (t) => {
|
|
25
|
+
A.current && (t.currentTarget.style.cursor = "grabbing", o.current && (o.current.scrollLeft = E.current - (t.clientX - o.current.offsetLeft - H.current)));
|
|
26
|
+
}, L = (t) => {
|
|
27
|
+
var e;
|
|
28
|
+
A.current = !1, E.current !== ((e = o.current) == null ? void 0 : e.scrollLeft) ? (t.currentTarget.style.cursor = "grab", R.current = !1, f.current && cancelAnimationFrame(f.current), f.current = requestAnimationFrame(() => {
|
|
29
|
+
R.current = !0;
|
|
30
|
+
})) : R.current = !0;
|
|
31
|
+
}, tt = (t) => (r) => {
|
|
32
|
+
r.stopPropagation();
|
|
33
|
+
let e = null;
|
|
34
|
+
switch (r.key) {
|
|
35
|
+
case "ArrowRight":
|
|
36
|
+
r.preventDefault(), e = M(r.currentTarget, "right", i.current);
|
|
37
|
+
break;
|
|
38
|
+
case "ArrowLeft":
|
|
39
|
+
r.preventDefault(), e = M(r.currentTarget, "left", i.current);
|
|
40
|
+
break;
|
|
41
|
+
case "ArrowDown":
|
|
42
|
+
r.preventDefault(), e = M(r.currentTarget, "down", i.current);
|
|
43
|
+
break;
|
|
44
|
+
case "ArrowUp":
|
|
45
|
+
r.preventDefault(), e = M(r.currentTarget, "up", i.current);
|
|
46
|
+
break;
|
|
47
|
+
case "Enter":
|
|
48
|
+
case " ": {
|
|
49
|
+
r.preventDefault(), r.currentTarget.click();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
e == null || e.focus(), t == null || t(r);
|
|
56
|
+
}, rt = (t) => (r) => {
|
|
57
|
+
if (r.stopPropagation(), r.key === "Enter" || r.key === " ") {
|
|
58
|
+
r.preventDefault(), r.currentTarget.click();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const e = Number(r.currentTarget.getAttribute("aria-posinset")) - 1, n = r.key.replace("Arrow", "").toLowerCase();
|
|
62
|
+
if (!["left", "right", "up", "down"].includes(n)) {
|
|
63
|
+
t == null || t(r);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
r.preventDefault();
|
|
67
|
+
const a = ct(
|
|
68
|
+
b.current,
|
|
69
|
+
e,
|
|
70
|
+
n
|
|
71
|
+
), s = i.current[a ?? -1];
|
|
72
|
+
s == null || s.focus(), t == null || t(r);
|
|
73
|
+
}, et = (t) => (r) => {
|
|
74
|
+
i.current[t] = r;
|
|
75
|
+
}, nt = (t, r, e) => (n) => {
|
|
76
|
+
b.current[r] || (b.current[r] = []), i.current[t] = n, b.current[r][e] = n;
|
|
77
|
+
}, X = (t) => (r) => {
|
|
78
|
+
K(Number(r.currentTarget.getAttribute("aria-posinset")) - 1), t == null || t(r);
|
|
79
|
+
};
|
|
80
|
+
if (l(() => {
|
|
81
|
+
const t = o.current, r = (e) => {
|
|
82
|
+
R.current || e.stopPropagation();
|
|
83
|
+
};
|
|
84
|
+
return t == null || t.addEventListener("click", r), () => {
|
|
85
|
+
t == null || t.removeEventListener("click", r);
|
|
86
|
+
};
|
|
87
|
+
}, []), l(() => {
|
|
88
|
+
const t = o.current, r = (e) => {
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
};
|
|
91
|
+
return t == null || t.addEventListener("touchmove", r), () => {
|
|
92
|
+
t == null || t.removeEventListener("touchmove", r);
|
|
93
|
+
};
|
|
94
|
+
}, []), l(() => {
|
|
95
|
+
const t = T.toArray(h).filter(G).filter((e) => e.type === q || e.type === V), r = t.map((e) => {
|
|
96
|
+
var n;
|
|
97
|
+
return ((n = ut(e.props.children)) == null ? void 0 : n.props.src) ?? "";
|
|
98
|
+
}).filter(Boolean);
|
|
99
|
+
B(t), O(r);
|
|
100
|
+
}, [h]), l(() => {
|
|
101
|
+
g <= 0 || W.forEach((t, r) => {
|
|
102
|
+
const e = new window.Image();
|
|
103
|
+
e.src = t, e.onload = () => {
|
|
104
|
+
B(
|
|
105
|
+
(n) => n.map((a, s) => s === r ? x(a, {
|
|
106
|
+
...a.props,
|
|
107
|
+
width: a.props.width ?? e.width / e.height * (a.props.height ?? g),
|
|
108
|
+
height: a.props.height ?? g
|
|
109
|
+
}) : a)
|
|
110
|
+
), e.onload = null;
|
|
111
|
+
}, e.onerror = () => {
|
|
112
|
+
e.onload = null;
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
}, [h, W, g]), l(() => {
|
|
116
|
+
const t = () => {
|
|
117
|
+
var r, e, n;
|
|
118
|
+
Y(((e = (r = o.current) == null ? void 0 : r.parentElement) == null ? void 0 : e.offsetWidth) ?? 0), _(((n = o.current) == null ? void 0 : n.offsetHeight) ?? 0);
|
|
119
|
+
};
|
|
120
|
+
return t(), window.addEventListener("resize", t), () => {
|
|
121
|
+
window.removeEventListener("resize", t);
|
|
122
|
+
};
|
|
123
|
+
}, []), l(() => () => {
|
|
124
|
+
f.current && cancelAnimationFrame(f.current);
|
|
125
|
+
}, []), w === "horizontal") {
|
|
126
|
+
const t = it(I, S, p * k / 2);
|
|
127
|
+
let r = p * k / 2;
|
|
128
|
+
r = r < 0 ? 120 : r;
|
|
129
|
+
let e = 0;
|
|
130
|
+
return /* @__PURE__ */ D(
|
|
131
|
+
j,
|
|
132
|
+
{
|
|
133
|
+
ref: o,
|
|
134
|
+
role: "list",
|
|
135
|
+
"aria-label": "콘텐츠",
|
|
136
|
+
"aria-orientation": "horizontal",
|
|
137
|
+
onMouseDown: P,
|
|
138
|
+
onMouseMove: U,
|
|
139
|
+
onMouseUp: L,
|
|
140
|
+
onMouseLeave: L,
|
|
141
|
+
pl: v,
|
|
142
|
+
pr: v,
|
|
143
|
+
inlineCSS: {
|
|
144
|
+
position: "relative",
|
|
145
|
+
width: "100%",
|
|
146
|
+
height: "100%",
|
|
147
|
+
overflowX: "auto",
|
|
148
|
+
scrollbarWidth: "none",
|
|
149
|
+
cursor: "grab",
|
|
150
|
+
transform: "translate3d(0, 0, 0)",
|
|
151
|
+
"&::-webkit-scrollbar": {
|
|
152
|
+
display: "none"
|
|
153
|
+
},
|
|
154
|
+
...d.inlineCSS
|
|
155
|
+
},
|
|
156
|
+
...d,
|
|
157
|
+
children: t.map((n, a) => /* @__PURE__ */ D(st, { gap: c, children: n.map((s, ot) => {
|
|
158
|
+
const C = e++;
|
|
159
|
+
return x(s, {
|
|
160
|
+
setInnerRef: nt(C, a, ot),
|
|
161
|
+
tabIndex: C === F ? 0 : -1,
|
|
162
|
+
role: "listitem",
|
|
163
|
+
"aria-posinset": C + 1,
|
|
164
|
+
"aria-setsize": N,
|
|
165
|
+
width: s.props.width ?? r,
|
|
166
|
+
height: s.props.height ?? g,
|
|
167
|
+
spacing: y.content(c),
|
|
168
|
+
direction: w,
|
|
169
|
+
onKeyDown: rt(s.props.onKeyDown),
|
|
170
|
+
onFocus: X(s.props.onFocus),
|
|
171
|
+
...s.props
|
|
172
|
+
});
|
|
173
|
+
}) }, `masonry-row-${a}`))
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
return /* @__PURE__ */ D(
|
|
178
|
+
j,
|
|
179
|
+
{
|
|
180
|
+
ref: o,
|
|
181
|
+
role: "list",
|
|
182
|
+
"aria-label": "콘텐츠",
|
|
183
|
+
"aria-orientation": "vertical",
|
|
184
|
+
onMouseDown: P,
|
|
185
|
+
onMouseMove: U,
|
|
186
|
+
onMouseUp: L,
|
|
187
|
+
onMouseLeave: L,
|
|
188
|
+
pt: v,
|
|
189
|
+
pb: v,
|
|
190
|
+
inlineCSS: {
|
|
191
|
+
width: "100%",
|
|
192
|
+
position: "relative",
|
|
193
|
+
columnCount: z,
|
|
194
|
+
columnGap: y.content(c),
|
|
195
|
+
...d.inlineCSS
|
|
196
|
+
},
|
|
197
|
+
...d,
|
|
198
|
+
children: T.map(
|
|
199
|
+
I,
|
|
200
|
+
(t, r) => x(t, {
|
|
201
|
+
setInnerRef: et(r),
|
|
202
|
+
role: "listitem",
|
|
203
|
+
tabIndex: r === F ? 0 : -1,
|
|
204
|
+
"aria-posinset": r + 1,
|
|
205
|
+
"aria-setsize": N,
|
|
206
|
+
width: t.props.width ?? p,
|
|
207
|
+
height: t.props.height ?? p * k / 2,
|
|
208
|
+
spacing: y.content(c),
|
|
209
|
+
direction: w,
|
|
210
|
+
onKeyDown: tt(t.props.onKeyDown),
|
|
211
|
+
onFocus: X(t.props.onFocus),
|
|
212
|
+
...t.props
|
|
213
|
+
})
|
|
214
|
+
)
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
export {
|
|
219
|
+
wt as default
|
|
220
|
+
};
|