@dotss/tictoccroc 0.4.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Calendar-BOLCHnjh.js +97 -0
- package/dist/TimePicker-BwACyeBR.js +120 -0
- package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
- package/dist/index.mjs +105 -200
- package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
- package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
- package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
- package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
- package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
- package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
- package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
- package/dist/parent/b2b/components/NameField/index.mjs +5 -4
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
- package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
- package/dist/parent/b2b/components/Title/Title.mjs +22 -16
- package/dist/parent/b2b/components/Title/index.mjs +4 -3
- package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
- package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
- package/dist/parent/b2b/components/index.mjs +9 -19
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
- package/dist/parent/b2b/utils/index.mjs +2 -4
- package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -108
- package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
- package/dist/parent/notification/components/index.mjs +2 -4
- package/dist/parent/notification/utils/index.mjs +2 -4
- package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
- package/dist/purify.es-D3W4zDrg.js +549 -0
- package/dist/shared/components/Calendar/Calendar.mjs +2 -80
- package/dist/shared/components/Calendar/index.mjs +5 -4
- package/dist/shared/components/Carousel/Carousel.mjs +184 -210
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
- package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
- package/dist/shared/components/Carousel/index.mjs +6 -6
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
- package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
- package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
- package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
- package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
- package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
- package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
- package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
- package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
- package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
- package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
- package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
- package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
- package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
- package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
- package/dist/shared/components/ChatKit/index.mjs +13 -29
- package/dist/shared/components/Image/Image.d.ts +2 -0
- package/dist/shared/components/Image/Image.error.mjs +34 -40
- package/dist/shared/components/Image/Image.mjs +247 -289
- package/dist/shared/components/Image/index.mjs +6 -6
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
- package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
- package/dist/shared/components/Masonry/Masonry.mjs +240 -276
- package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
- package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
- package/dist/shared/components/Masonry/index.mjs +6 -6
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
- package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
- package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
- package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
- package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/index.mjs +9 -12
- package/dist/shared/components/Roller/Roller.mjs +99 -132
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
- package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
- package/dist/shared/components/Roller/index.mjs +6 -6
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
- package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
- package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
- package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
- package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
- package/dist/shared/components/Scheduler/index.mjs +8 -10
- package/dist/shared/components/Swiper/Swiper.mjs +238 -283
- package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
- package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
- package/dist/shared/components/Swiper/index.mjs +6 -6
- package/dist/shared/components/TextField/TextField.mjs +44 -55
- package/dist/shared/components/TextField/index.mjs +5 -4
- package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
- package/dist/shared/components/TimePicker/index.mjs +5 -4
- package/dist/shared/components/index.mjs +36 -75
- package/dist/shared/hooks/index.mjs +4 -8
- package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
- package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
- package/dist/shared/hooks/useInView/index.mjs +5 -4
- package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
- package/dist/shared/hooks/useInView/useInView.mjs +37 -47
- package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
- package/dist/shared/typings/common.mjs +6 -4
- package/dist/shared/typings/index.mjs +2 -4
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
- package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
- package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
- package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
- package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
- package/dist/shared/utils/combineRef/index.mjs +5 -4
- package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
- package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
- package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
- package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
- package/dist/shared/utils/getDateRange/index.mjs +5 -4
- package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
- package/dist/shared/utils/getImageUrl/index.mjs +5 -6
- package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
- package/dist/shared/utils/getTimeRange/index.mjs +5 -4
- package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
- package/dist/shared/utils/getVimeoId/index.mjs +5 -4
- package/dist/shared/utils/index.mjs +18 -36
- package/dist/shared/utils/isAndroid/index.mjs +5 -4
- package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
- package/dist/shared/utils/isApp/index.mjs +5 -4
- package/dist/shared/utils/isApp/isApp.mjs +4 -4
- package/dist/shared/utils/isDesktop/index.mjs +5 -4
- package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
- package/dist/shared/utils/isIos/index.mjs +5 -4
- package/dist/shared/utils/isIos/isIos.mjs +5 -5
- package/dist/shared/utils/isServer/index.mjs +4 -3
- package/dist/shared/utils/isServer/isServer.mjs +4 -4
- package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
- package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
- package/dist/shared/utils/parseQueryString/index.mjs +4 -3
- package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
- package/dist/shared/utils/share/index.mjs +5 -4
- package/dist/shared/utils/share/share.mjs +12 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
- package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
- package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
- package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
- package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
- package/dist/teacher/home/components/index.mjs +9 -18
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
- package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
- package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
- package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
- package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
- package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
- package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
- package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
- package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.d.ts +3 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +12 -12
- package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
- package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
- package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
- package/dist/teacher/profile/components/index.mjs +24 -48
- package/dist/teacher/profile/utils/index.mjs +2 -4
- package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
- package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
- package/package.json +1 -1
- package/dist/purify.es-BGaRrCfO.js +0 -553
|
@@ -1,331 +1,217 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
330
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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 };
|