@dotss/tictoccroc 0.0.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 (155) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.mjs +54 -0
  3. package/dist/shared/components/Calendar/Calendar.d.ts +10 -0
  4. package/dist/shared/components/Calendar/Calendar.mjs +80 -0
  5. package/dist/shared/components/Calendar/index.d.ts +2 -0
  6. package/dist/shared/components/Calendar/index.mjs +4 -0
  7. package/dist/shared/components/Carousel/Carousel.d.ts +16 -0
  8. package/dist/shared/components/Carousel/Carousel.mjs +205 -0
  9. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.d.ts +4 -0
  10. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +8 -0
  11. package/dist/shared/components/Carousel/CarouselSlide/index.d.ts +3 -0
  12. package/dist/shared/components/Carousel/CarouselSlide/index.mjs +4 -0
  13. package/dist/shared/components/Carousel/index.d.ts +4 -0
  14. package/dist/shared/components/Carousel/index.mjs +6 -0
  15. package/dist/shared/components/Image/Image.d.ts +20 -0
  16. package/dist/shared/components/Image/Image.mjs +181 -0
  17. package/dist/shared/components/Image/index.d.ts +3 -0
  18. package/dist/shared/components/Image/index.mjs +4 -0
  19. package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.d.ts +8 -0
  20. package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.mjs +50 -0
  21. package/dist/shared/components/ImageZoomDialog/ImageBlock/index.d.ts +2 -0
  22. package/dist/shared/components/ImageZoomDialog/ImageBlock/index.mjs +4 -0
  23. package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.d.ts +16 -0
  24. package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.mjs +344 -0
  25. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.d.ts +3 -0
  26. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs +23 -0
  27. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/index.d.ts +2 -0
  28. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/index.mjs +4 -0
  29. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.d.ts +3 -0
  30. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs +28 -0
  31. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/index.d.ts +2 -0
  32. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/index.mjs +4 -0
  33. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.d.ts +3 -0
  34. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs +22 -0
  35. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/index.d.ts +2 -0
  36. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/index.mjs +4 -0
  37. package/dist/shared/components/ImageZoomDialog/index.d.ts +6 -0
  38. package/dist/shared/components/ImageZoomDialog/index.mjs +10 -0
  39. package/dist/shared/components/Roller/Roller.d.ts +9 -0
  40. package/dist/shared/components/Roller/Roller.mjs +122 -0
  41. package/dist/shared/components/Roller/RollerBlock/RollerBlock.d.ts +4 -0
  42. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +8 -0
  43. package/dist/shared/components/Roller/RollerBlock/index.d.ts +3 -0
  44. package/dist/shared/components/Roller/RollerBlock/index.mjs +4 -0
  45. package/dist/shared/components/Roller/index.d.ts +4 -0
  46. package/dist/shared/components/Roller/index.mjs +6 -0
  47. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.d.ts +7 -0
  48. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +31 -0
  49. package/dist/shared/components/Scheduler/ScheduleBlock/index.d.ts +3 -0
  50. package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +4 -0
  51. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.d.ts +9 -0
  52. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +36 -0
  53. package/dist/shared/components/Scheduler/ScheduleEvent/index.d.ts +3 -0
  54. package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +4 -0
  55. package/dist/shared/components/Scheduler/Scheduler.d.ts +15 -0
  56. package/dist/shared/components/Scheduler/Scheduler.mjs +552 -0
  57. package/dist/shared/components/Scheduler/Scheduler.utils.d.ts +32 -0
  58. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +92 -0
  59. package/dist/shared/components/Scheduler/index.d.ts +6 -0
  60. package/dist/shared/components/Scheduler/index.mjs +10 -0
  61. package/dist/shared/components/Swiper/Swiper.d.ts +25 -0
  62. package/dist/shared/components/Swiper/Swiper.mjs +274 -0
  63. package/dist/shared/components/Swiper/Swiper.utils.d.ts +13 -0
  64. package/dist/shared/components/Swiper/Swiper.utils.mjs +25 -0
  65. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.d.ts +4 -0
  66. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +19 -0
  67. package/dist/shared/components/Swiper/SwiperBlock/index.d.ts +3 -0
  68. package/dist/shared/components/Swiper/SwiperBlock/index.mjs +4 -0
  69. package/dist/shared/components/Swiper/index.d.ts +4 -0
  70. package/dist/shared/components/Swiper/index.mjs +6 -0
  71. package/dist/shared/components/TimePicker/TimePicker.d.ts +23 -0
  72. package/dist/shared/components/TimePicker/TimePicker.mjs +122 -0
  73. package/dist/shared/components/TimePicker/index.d.ts +3 -0
  74. package/dist/shared/components/TimePicker/index.mjs +4 -0
  75. package/dist/shared/components/index.d.ts +7 -0
  76. package/dist/shared/components/index.mjs +30 -0
  77. package/dist/shared/hooks/index.d.ts +1 -0
  78. package/dist/shared/hooks/index.mjs +4 -0
  79. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.d.ts +2 -0
  80. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +4 -0
  81. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +3 -0
  82. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -0
  83. package/dist/shared/utils/birthDateToAge/birthDateToAge.d.ts +1 -0
  84. package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +11 -0
  85. package/dist/shared/utils/birthDateToAge/birthDateToAge.test.d.ts +1 -0
  86. package/dist/shared/utils/birthDateToAge/birthDateToAge.test.mjs +12 -0
  87. package/dist/shared/utils/birthDateToAge/index.d.ts +2 -0
  88. package/dist/shared/utils/birthDateToAge/index.mjs +4 -0
  89. package/dist/shared/utils/getDateRange/getDateRange.d.ts +11 -0
  90. package/dist/shared/utils/getDateRange/getDateRange.mjs +21 -0
  91. package/dist/shared/utils/getDateRange/getDateRange.test.d.ts +1 -0
  92. package/dist/shared/utils/getDateRange/getDateRange.test.mjs +61 -0
  93. package/dist/shared/utils/getDateRange/index.d.ts +2 -0
  94. package/dist/shared/utils/getDateRange/index.mjs +4 -0
  95. package/dist/shared/utils/getImageUrl/getImageUrl.d.ts +3 -0
  96. package/dist/shared/utils/getImageUrl/getImageUrl.mjs +17 -0
  97. package/dist/shared/utils/getImageUrl/getImageUrl.test.d.ts +1 -0
  98. package/dist/shared/utils/getImageUrl/getImageUrl.test.mjs +28 -0
  99. package/dist/shared/utils/getImageUrl/index.d.ts +3 -0
  100. package/dist/shared/utils/getImageUrl/index.mjs +6 -0
  101. package/dist/shared/utils/getTimeRange/getTimeRange.d.ts +12 -0
  102. package/dist/shared/utils/getTimeRange/getTimeRange.mjs +22 -0
  103. package/dist/shared/utils/getTimeRange/getTimeRange.test.d.ts +1 -0
  104. package/dist/shared/utils/getTimeRange/getTimeRange.test.mjs +76 -0
  105. package/dist/shared/utils/getTimeRange/index.d.ts +2 -0
  106. package/dist/shared/utils/getTimeRange/index.mjs +4 -0
  107. package/dist/shared/utils/getVimeoId/getVimeoId.d.ts +1 -0
  108. package/dist/shared/utils/getVimeoId/getVimeoId.mjs +12 -0
  109. package/dist/shared/utils/getVimeoId/getVimeoId.test.d.ts +1 -0
  110. package/dist/shared/utils/getVimeoId/getVimeoId.test.mjs +15 -0
  111. package/dist/shared/utils/getVimeoId/index.d.ts +2 -0
  112. package/dist/shared/utils/getVimeoId/index.mjs +4 -0
  113. package/dist/shared/utils/index.d.ts +11 -0
  114. package/dist/shared/utils/index.mjs +24 -0
  115. package/dist/shared/utils/isAndroid/index.d.ts +2 -0
  116. package/dist/shared/utils/isAndroid/index.mjs +4 -0
  117. package/dist/shared/utils/isAndroid/isAndroid.d.ts +1 -0
  118. package/dist/shared/utils/isAndroid/isAndroid.mjs +6 -0
  119. package/dist/shared/utils/isAndroid/isAndroid.test.d.ts +1 -0
  120. package/dist/shared/utils/isAndroid/isAndroid.test.mjs +13 -0
  121. package/dist/shared/utils/isApp/index.d.ts +2 -0
  122. package/dist/shared/utils/isApp/index.mjs +4 -0
  123. package/dist/shared/utils/isApp/isApp.d.ts +1 -0
  124. package/dist/shared/utils/isApp/isApp.mjs +6 -0
  125. package/dist/shared/utils/isApp/isApp.test.d.ts +1 -0
  126. package/dist/shared/utils/isApp/isApp.test.mjs +23 -0
  127. package/dist/shared/utils/isDesktop/index.d.ts +2 -0
  128. package/dist/shared/utils/isDesktop/index.mjs +4 -0
  129. package/dist/shared/utils/isDesktop/isDesktop.d.ts +1 -0
  130. package/dist/shared/utils/isDesktop/isDesktop.mjs +16 -0
  131. package/dist/shared/utils/isDesktop/isDesktop.test.d.ts +1 -0
  132. package/dist/shared/utils/isDesktop/isDesktop.test.mjs +11 -0
  133. package/dist/shared/utils/isServer/index.d.ts +2 -0
  134. package/dist/shared/utils/isServer/index.mjs +4 -0
  135. package/dist/shared/utils/isServer/isServer.d.ts +1 -0
  136. package/dist/shared/utils/isServer/isServer.mjs +6 -0
  137. package/dist/shared/utils/isServer/isServer.test.d.ts +1 -0
  138. package/dist/shared/utils/isServer/isServer.test.mjs +13 -0
  139. package/dist/shared/utils/objectToQueryString/index.d.ts +2 -0
  140. package/dist/shared/utils/objectToQueryString/index.mjs +4 -0
  141. package/dist/shared/utils/objectToQueryString/objectToQueryString.d.ts +1 -0
  142. package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +9 -0
  143. package/dist/shared/utils/objectToQueryString/objectToQueryString.test.d.ts +1 -0
  144. package/dist/shared/utils/objectToQueryString/objectToQueryString.test.mjs +11 -0
  145. package/dist/shared/utils/parseQueryString/index.d.ts +2 -0
  146. package/dist/shared/utils/parseQueryString/index.mjs +4 -0
  147. package/dist/shared/utils/parseQueryString/parseQueryString.d.ts +4 -0
  148. package/dist/shared/utils/parseQueryString/parseQueryString.mjs +6 -0
  149. package/dist/shared/utils/parseQueryString/parseQueryString.test.d.ts +1 -0
  150. package/dist/shared/utils/parseQueryString/parseQueryString.test.mjs +16 -0
  151. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.d.ts +2 -0
  152. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +8 -0
  153. package/dist/teacher/profile/components/ProfileSummary/index.d.ts +2 -0
  154. package/dist/teacher/profile/components/ProfileSummary/index.mjs +4 -0
  155. package/package.json +100 -0
@@ -0,0 +1,50 @@
1
+ import { jsxs as s, Fragment as n, jsx as a } from "react/jsx-runtime";
2
+ import { useState as l } from "react";
3
+ import d from "@thedotscorp/ui/Flexbox";
4
+ import m from "../../Image/Image.mjs";
5
+ function x({ fallback: t, containerHeight: e, ...o }) {
6
+ const [r, i] = l(!1);
7
+ return /* @__PURE__ */ s(n, { children: [
8
+ /* @__PURE__ */ a(
9
+ m,
10
+ {
11
+ ...o,
12
+ onLoad: () => i(!0),
13
+ disabledResizing: !0,
14
+ draggable: !1,
15
+ wrapperProps: {
16
+ inlineCSS: {
17
+ overflow: "visible",
18
+ margin: "0 auto"
19
+ }
20
+ },
21
+ style: {
22
+ position: "static",
23
+ maxWidth: "100%",
24
+ maxHeight: e,
25
+ objectFit: "contain",
26
+ transform: "translate3d(0, 0, 0) scale(1)",
27
+ marginTop: "calc(var(--status-bar-height, 0px) * -1)",
28
+ zIndex: 1
29
+ }
30
+ }
31
+ ),
32
+ !r && !!t && /* @__PURE__ */ a(
33
+ d,
34
+ {
35
+ "aria-busy": !0,
36
+ inlineCSS: {
37
+ position: "absolute",
38
+ top: "50%",
39
+ left: "50%",
40
+ transform: "translate(-50%, -50%)",
41
+ cursor: "wait"
42
+ },
43
+ children: t
44
+ }
45
+ )
46
+ ] });
47
+ }
48
+ export {
49
+ x as default
50
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ImageBlock } from './ImageBlock';
2
+ export default ImageBlock;
@@ -0,0 +1,4 @@
1
+ import a from "./ImageBlock.mjs";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,16 @@
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+ export interface ImageZoomDialogProps {
3
+ open?: boolean;
4
+ onClose?: () => void;
5
+ onSwipe?: (page: number) => void;
6
+ sources: {
7
+ url: string;
8
+ alt: string;
9
+ }[];
10
+ initialPage?: number;
11
+ title?: ReactNode;
12
+ fallback?: ReactNode;
13
+ loop?: boolean;
14
+ }
15
+ declare function ImageZoomDialog({ children, open, onClose, onSwipe, sources, initialPage, title, fallback, loop }: PropsWithChildren<ImageZoomDialogProps>): import("@emotion/react/jsx-runtime").JSX.Element;
16
+ export default ImageZoomDialog;
@@ -0,0 +1,344 @@
1
+ import { jsxs as N, jsx as d } from "react/jsx-runtime";
2
+ import { useState as W, useRef as u, useEffect as A } from "react";
3
+ import pt from "@thedotscorp/ui/core/useTheme";
4
+ import Mt from "@thedotscorp/ui/Dialog";
5
+ import C from "@thedotscorp/ui/Flexbox";
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";
8
+ import bt from "./ImageBlock/ImageBlock.mjs";
9
+ import St from "../Swiper/Swiper.mjs";
10
+ import wt from "../Swiper/SwiperBlock/SwiperBlock.mjs";
11
+ function Bt({
12
+ children: et,
13
+ open: $ = !1,
14
+ onClose: b,
15
+ onSwipe: P,
16
+ sources: L,
17
+ initialPage: G = 0,
18
+ title: U,
19
+ fallback: nt,
20
+ loop: ct = !1
21
+ }) {
22
+ const {
23
+ palette: { grey: Z, etc: O }
24
+ } = pt(), [at, J] = W(!1), [it, st] = W(G), [ut, S] = W(!1), [ot, lt] = W("100vh"), [K, w] = 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), p = u(0), ht = (t) => {
25
+ o.current && t.stopPropagation(), B.current = t.clientX - e.current, D.current = t.clientY - n.current, f.current = r.current > 1;
26
+ }, ft = (t) => {
27
+ if (!f.current) return;
28
+ 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, M = a / r.current, h = Math.max(
30
+ 0,
31
+ (c * r.current - l.current.offsetWidth) / 2
32
+ ), m = Math.max(
33
+ 0,
34
+ (M * r.current - l.current.offsetHeight) / 2
35
+ );
36
+ e.current = Math.min(
37
+ Math.max(e.current, -h),
38
+ h
39
+ ), n.current = Math.min(
40
+ Math.max(n.current, -m),
41
+ m
42
+ ), Math.abs(e.current) >= h && (o.current = !1, S(!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
+ }, _ = (t) => {
44
+ f.current && (t.currentTarget.style.cursor = "grab"), f.current = !1;
45
+ }, mt = (t) => {
46
+ 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
+ S(!0);
48
+ const i = t.touches[1].clientX - t.touches[0].clientX, s = t.touches[1].clientY - t.touches[0].clientY;
49
+ g.current = Math.sqrt(i ** 2 + s ** 2);
50
+ }
51
+ }, dt = (t) => {
52
+ const i = t.touches.length === 2, s = t.touches.length === 1;
53
+ if (o.current && i) {
54
+ const a = t.touches[1].clientX - t.touches[0].clientX, c = t.touches[1].clientY - t.touches[0].clientY;
55
+ x.current = Math.sqrt(a ** 2 + c ** 2);
56
+ const M = x.current / g.current, h = Math.min(
57
+ Math.max(Q.current, r.current * M),
58
+ V.current
59
+ ), m = (t.touches[0].clientX + t.touches[1].clientX) / 2, y = (t.touches[0].clientY + t.touches[1].clientY) / 2, { left: T, top: I, width: X, height: v } = t.currentTarget.getBoundingClientRect(), j = X / r.current, q = v / r.current, F = m - T - X / 2, z = y - I - v / 2, R = h / r.current;
60
+ e.current -= F * (R - 1), n.current -= z * (R - 1), r.current = h, w(h);
61
+ const E = Math.max(
62
+ 0,
63
+ (j * r.current - l.current.offsetWidth) / 2
64
+ ), H = Math.max(
65
+ 0,
66
+ (q * r.current - l.current.offsetHeight) / 2
67
+ );
68
+ e.current = Math.min(
69
+ Math.max(e.current, -E),
70
+ E
71
+ ), n.current = Math.min(
72
+ Math.max(n.current, -H),
73
+ H
74
+ ), 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
+ } else if (f.current && s) {
76
+ 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(), M = a / r.current, h = c / r.current, m = Math.max(
78
+ 0,
79
+ (M * r.current - l.current.offsetWidth) / 2
80
+ ), y = Math.max(
81
+ 0,
82
+ (h * r.current - l.current.offsetHeight) / 2
83
+ );
84
+ e.current = Math.min(
85
+ Math.max(e.current, -m),
86
+ m
87
+ ), n.current = Math.min(
88
+ Math.max(n.current, -y),
89
+ y
90
+ );
91
+ const T = Math.abs(e.current) >= m;
92
+ S(!T), t.currentTarget.style.transition = "none", t.currentTarget.style.transform = `translate3d(${e.current}px, ${n.current}px, 0) scale(${r.current})`;
93
+ }
94
+ }, tt = (t) => {
95
+ const i = r.current;
96
+ if (o.current && i > 1.2) {
97
+ const s = Math.abs(
98
+ (t.currentTarget.offsetWidth * r.current - l.current.offsetWidth) / 2
99
+ ), a = Math.abs(
100
+ (t.currentTarget.offsetHeight * r.current - l.current.offsetHeight) / 2
101
+ );
102
+ e.current = Math.min(
103
+ Math.max(e.current, -s),
104
+ s
105
+ ), n.current = Math.min(
106
+ Math.max(n.current, -a),
107
+ a
108
+ ), 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, w(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})`, S(!1));
110
+ f.current = !1;
111
+ }, gt = ({ currentPage: t }) => {
112
+ var s;
113
+ t !== it ? (e.current = 0, n.current = 0, g.current = 0, r.current = 1, w(1), x.current = 0, o.current = !1, f.current = !1, Array.from(((s = k.current) == null ? void 0 : s.getElementsByTagName("img")) || []).forEach((c) => {
114
+ 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), st(t);
116
+ }, xt = () => {
117
+ f.current = !1;
118
+ };
119
+ return A(() => {
120
+ var s;
121
+ const t = Array.from(((s = k.current) == null ? void 0 : s.getElementsByTagName("img")) || []), i = (a) => {
122
+ a.preventDefault(), o.current = !0, S(!0);
123
+ const c = a.currentTarget, M = a.deltaY > 0 ? -0.1 : 0.1, h = Math.min(
124
+ Math.max(Q.current, r.current + M),
125
+ V.current
126
+ ), { left: m, top: y, width: T, height: I } = c.getBoundingClientRect(), X = T / r.current, v = I / r.current, j = a.clientX - m - T / 2, q = a.clientY - y - I / 2, F = h / r.current;
127
+ e.current -= j * (F - 1), n.current -= q * (F - 1), r.current = h, w(h);
128
+ const z = Math.max(
129
+ 0,
130
+ (X * r.current - l.current.offsetWidth) / 2
131
+ ), R = Math.max(
132
+ 0,
133
+ (v * r.current - l.current.offsetHeight) / 2
134
+ );
135
+ e.current = Math.min(
136
+ Math.max(e.current, -z),
137
+ z
138
+ ), n.current = Math.min(
139
+ Math.max(n.current, -R),
140
+ 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})`, p.current && cancelAnimationFrame(p.current), p.current = requestAnimationFrame(() => {
142
+ const E = r.current;
143
+ if (E > 1) {
144
+ const H = Math.max(
145
+ 0,
146
+ (X * r.current - l.current.offsetWidth) / 2
147
+ ), rt = Math.max(
148
+ 0,
149
+ (v * r.current - l.current.offsetHeight) / 2
150
+ );
151
+ e.current = Math.min(
152
+ Math.max(e.current, -H),
153
+ H
154
+ ), n.current = Math.min(
155
+ Math.max(n.current, -rt),
156
+ rt
157
+ ), 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 && (S(!1), e.current = 0, n.current = 0, g.current = 0, x.current = 0, r.current = 1, w(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
+ });
160
+ };
161
+ return t.forEach((a) => {
162
+ a.addEventListener("wheel", i);
163
+ }), () => {
164
+ p.current && cancelAnimationFrame(p.current), t.forEach((a) => {
165
+ a.removeEventListener("wheel", i);
166
+ });
167
+ };
168
+ }, [at]), A(() => {
169
+ const t = () => {
170
+ var s;
171
+ const i = (s = k.current) == null ? void 0 : s.offsetHeight;
172
+ i && lt(`${i}px`);
173
+ };
174
+ return t(), window.addEventListener("resize", t), () => {
175
+ window.removeEventListener("resize", t);
176
+ };
177
+ }, []), A(() => ($ ? Y.current = requestAnimationFrame(() => {
178
+ J(!0);
179
+ }) : J(!1), () => {
180
+ Y.current && cancelAnimationFrame(Y.current);
181
+ }), [$]), A(() => ($ && (r.current = 1, w(1), e.current = 0, n.current = 0, g.current = 0, x.current = 0, o.current = !1, f.current = !1), () => {
182
+ p.current && cancelAnimationFrame(p.current), Y.current && cancelAnimationFrame(Y.current);
183
+ }), [$]), A(() => {
184
+ L.length || b == null || b();
185
+ }, [L, b]), /* @__PURE__ */ N(
186
+ Mt,
187
+ {
188
+ ref: l,
189
+ open: $,
190
+ onClose: b,
191
+ fullScreen: !0,
192
+ statusBarColor: Z.black,
193
+ hideSystemNavigationBar: !0,
194
+ "aria-modal": !0,
195
+ "aria-labelledby": U ? "image-zoom-dialog-title" : void 0,
196
+ inlineCSS: {
197
+ backgroundColor: Z.black,
198
+ scrollbarWidth: "none",
199
+ "&::-webkit-scrollbar": {
200
+ display: "none"
201
+ },
202
+ "& > div": {
203
+ scrollbarWidth: "none",
204
+ "&::-webkit-scrollbar": {
205
+ display: "none"
206
+ }
207
+ }
208
+ },
209
+ children: [
210
+ /* @__PURE__ */ d(
211
+ C,
212
+ {
213
+ "aria-hidden": !0,
214
+ inlineCSS: {
215
+ position: "absolute",
216
+ top: 0,
217
+ left: 0,
218
+ width: "100%",
219
+ minHeight: "var(--status-bar-height, 0px)",
220
+ backgroundColor: O.dimmed01,
221
+ zIndex: 2
222
+ }
223
+ }
224
+ ),
225
+ /* @__PURE__ */ d(
226
+ C,
227
+ {
228
+ tag: "header",
229
+ inlineCSS: {
230
+ position: "absolute",
231
+ top: "var(--status-bar-height, 0px)",
232
+ left: 0,
233
+ width: "100%",
234
+ backgroundColor: O.dimmed01,
235
+ zIndex: 2
236
+ },
237
+ children: /* @__PURE__ */ N(
238
+ C,
239
+ {
240
+ alignItems: "center",
241
+ p: 2,
242
+ inlineCSS: {
243
+ position: "relative",
244
+ display: "grid",
245
+ gridTemplateColumns: "1fr auto 1fr",
246
+ width: "100%",
247
+ minHeight: 56,
248
+ maxHeight: 56
249
+ },
250
+ children: [
251
+ /* @__PURE__ */ d(C, { "aria-hidden": !0 }),
252
+ /* @__PURE__ */ d(
253
+ Ct,
254
+ {
255
+ id: "image-zoom-dialog-title",
256
+ tag: "div",
257
+ variant: "h4B",
258
+ noWrap: !0,
259
+ color: "grey.white",
260
+ "aria-label": "이미지 확대창",
261
+ inlineCSS: {
262
+ flexGrow: 1
263
+ },
264
+ children: U
265
+ }
266
+ ),
267
+ /* @__PURE__ */ d(C, { justifyContent: "flex-end", children: /* @__PURE__ */ d(yt, { name: "CloseLine", color: "tertiary", onClick: b, "aria-label": "창 닫기" }) })
268
+ ]
269
+ }
270
+ )
271
+ }
272
+ ),
273
+ /* @__PURE__ */ d(
274
+ C,
275
+ {
276
+ ref: k,
277
+ alignItems: "center",
278
+ justifyContent: "center",
279
+ inlineCSS: {
280
+ position: "relative",
281
+ width: "100%",
282
+ height: "100%",
283
+ touchAction: "none"
284
+ },
285
+ children: /* @__PURE__ */ d(
286
+ St,
287
+ {
288
+ onSwipe: gt,
289
+ onSwiping: xt,
290
+ initialPage: G,
291
+ disableSwipe: ut,
292
+ loop: ct,
293
+ children: L.map(({ url: t, alt: i }) => /* @__PURE__ */ d(wt, { children: /* @__PURE__ */ d(
294
+ bt,
295
+ {
296
+ src: t,
297
+ alt: i,
298
+ containerHeight: ot,
299
+ fallback: nt,
300
+ onMouseDown: ht,
301
+ onMouseMove: ft,
302
+ onMouseUp: _,
303
+ onMouseOut: _,
304
+ onTouchStart: mt,
305
+ onTouchMove: dt,
306
+ onTouchEnd: tt,
307
+ onTouchCancel: tt
308
+ }
309
+ ) }, `image-${t}`))
310
+ }
311
+ )
312
+ }
313
+ ),
314
+ et,
315
+ /* @__PURE__ */ N(
316
+ C,
317
+ {
318
+ role: "status",
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
+ )
338
+ ]
339
+ }
340
+ );
341
+ }
342
+ export {
343
+ Bt as default
344
+ };
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from 'react';
2
+ declare function ImageZoomDialogContent({ children }: PropsWithChildren): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export default ImageZoomDialogContent;
@@ -0,0 +1,23 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import e from "@thedotscorp/ui/core/useTheme";
3
+ import i from "@thedotscorp/ui/Typography";
4
+ function p({ children: n }) {
5
+ const { spacing: o } = e();
6
+ return /* @__PURE__ */ t(
7
+ i,
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
+ );
20
+ }
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ImageZoomDialogContent } from './ImageZoomDialogContent';
2
+ export default ImageZoomDialogContent;
@@ -0,0 +1,4 @@
1
+ import t from "./ImageZoomDialogContent.mjs";
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from 'react';
2
+ declare function ImageZoomDialogFooter({ children }: PropsWithChildren): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export default ImageZoomDialogFooter;
@@ -0,0 +1,28 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import i from "@thedotscorp/ui/core/useTheme";
3
+ import r from "@thedotscorp/ui/Flexbox";
4
+ function l({ children: o }) {
5
+ const {
6
+ palette: { etc: t }
7
+ } = i();
8
+ return /* @__PURE__ */ e(
9
+ r,
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
+ );
25
+ }
26
+ export {
27
+ l as default
28
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ImageZoomDialogFooter } from './ImageZoomDialogFooter';
2
+ export default ImageZoomDialogFooter;
@@ -0,0 +1,4 @@
1
+ import a from "./ImageZoomDialogFooter.mjs";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from 'react';
2
+ declare function ImageZoomDialogToolbar({ children }: PropsWithChildren): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export default ImageZoomDialogToolbar;
@@ -0,0 +1,22 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Children as n } from "react";
3
+ import r from "@thedotscorp/ui/Flexbox";
4
+ function l({ children: o }) {
5
+ const t = n.count(o);
6
+ return /* @__PURE__ */ e(
7
+ r,
8
+ {
9
+ pl: 2,
10
+ pr: 2,
11
+ alignItems: "center",
12
+ justifyContent: t > 1 ? "space-between" : "center",
13
+ inlineCSS: {
14
+ minHeight: 48
15
+ },
16
+ children: o
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ l as default
22
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ImageZoomDialogToolbar } from './ImageZoomDialogToolbar';
2
+ export default ImageZoomDialogToolbar;
@@ -0,0 +1,4 @@
1
+ import a from "./ImageZoomDialogToolbar.mjs";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import { default as ImageZoomDialog, ImageZoomDialogProps } from './ImageZoomDialog';
2
+ export { default as ImageZoomDialogContent } from './ImageZoomDialogContent';
3
+ export { default as ImageZoomDialogFooter } from './ImageZoomDialogFooter';
4
+ export { default as ImageZoomDialogToolbar } from './ImageZoomDialogToolbar';
5
+ export type { ImageZoomDialogProps };
6
+ export default ImageZoomDialog;
@@ -0,0 +1,10 @@
1
+ import a from "./ImageZoomDialog.mjs";
2
+ import { default as t } from "./ImageZoomDialogContent/ImageZoomDialogContent.mjs";
3
+ import { default as l } from "./ImageZoomDialogFooter/ImageZoomDialogFooter.mjs";
4
+ import { default as g } from "./ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs";
5
+ export {
6
+ t as ImageZoomDialogContent,
7
+ l as ImageZoomDialogFooter,
8
+ g as ImageZoomDialogToolbar,
9
+ a as default
10
+ };
@@ -0,0 +1,9 @@
1
+ import { FlexboxProps } from 'node_modules/@thedotscorp/ui/Flexbox/Flexbox';
2
+ export interface RollerProps extends FlexboxProps {
3
+ spacing?: number;
4
+ edgeSpacing?: number;
5
+ rowCount?: number;
6
+ maxWidth?: number;
7
+ }
8
+ declare function Roller({ children, spacing, edgeSpacing, rowCount, inlineCSS }: RollerProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export default Roller;