@dotss/tictoccroc 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.d.ts +3 -1
- package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -105
- 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.mjs +11 -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,284 +1,239 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
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
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
flexGrow: 1,
|
|
238
|
-
onMouseDown: ar,
|
|
239
|
-
onMouseUp: K,
|
|
240
|
-
onMouseLeave: K,
|
|
241
|
-
onTouchStart: or,
|
|
242
|
-
onTouchEnd: O,
|
|
243
|
-
onTouchCancel: O,
|
|
244
|
-
inlineCSS: {
|
|
245
|
-
"& > div:first-of-type": {
|
|
246
|
-
visibility: h ? "visible" : "hidden"
|
|
247
|
-
},
|
|
248
|
-
"& > div:last-of-type": {
|
|
249
|
-
visibility: h ? "visible" : "hidden"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
style: {
|
|
253
|
-
transition: "transform 0.2s",
|
|
254
|
-
transform: "translate3d(-100%, 0, 0)",
|
|
255
|
-
cursor: "grab"
|
|
256
|
-
},
|
|
257
|
-
children: [
|
|
258
|
-
ur,
|
|
259
|
-
d.map(
|
|
260
|
-
(r, e) => vr(r, {
|
|
261
|
-
role: "listitem",
|
|
262
|
-
tabIndex: e === k ? 0 : -1,
|
|
263
|
-
onKeyDown: ir(r.props.onKeyDown),
|
|
264
|
-
"aria-roledescription": "slide",
|
|
265
|
-
"aria-hidden": e !== k,
|
|
266
|
-
"aria-current": e === k ? "page" : void 0,
|
|
267
|
-
"aria-label": `${c}개 중 ${e + 1}번째 슬라이드`,
|
|
268
|
-
"aria-posinset": e + 1,
|
|
269
|
-
"aria-setsize": c,
|
|
270
|
-
...r.props
|
|
271
|
-
})
|
|
272
|
-
),
|
|
273
|
-
sr
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
),
|
|
277
|
-
typeof q == "function" && q({ page: k, totalPages: c, onChange: lr })
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
);
|
|
1
|
+
import e from "./SwiperBlock/index.mjs";
|
|
2
|
+
import t from "../MediaDialog/MediaBlock/index.mjs";
|
|
3
|
+
import { createSwipeEvent as n } from "./Swiper.utils.mjs";
|
|
4
|
+
import { Children as r, cloneElement as i, isValidElement as a, useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
5
|
+
import { Flexbox as u } from "@dotss/ui";
|
|
6
|
+
import { jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
//#region shared/components/Swiper/Swiper.tsx
|
|
8
|
+
function f({ children: f, initialPage: p = 0, onSwipe: m, onSwiping: h, loop: g = !1, disableSwipe: _ = !1, renderPagination: v, inlineCSS: y, autoSwipe: b = !1, autoSwipeInterval: x = 3e3, autoSwipeDuration: S = 1e3, ...C }) {
|
|
9
|
+
let [w, T] = l(p), [E, D] = l(1), O = c(null), k = c(0), A = c(0), j = c(0), M = c(0), N = c(!1), P = c(!0), F = c(""), I = c(p), L = c(!1), R = c(null), z = r.count(f), B = r.toArray(f).filter(a).filter((n) => n.type === e || n.type === t), V = z > 1 && !_, H = r.toArray(B?.[0]).filter(a).filter((n) => n.type === e || n.type === t), U = r.toArray(B?.[B?.length - 1]).filter(a).filter((n) => n.type === e || n.type === t), W = (e, t, n) => {
|
|
10
|
+
!O.current || !V || (F.current = O.current.style.transform, A.current = e, k.current = e + O.current.offsetWidth * (n + 1), j.current = t);
|
|
11
|
+
}, G = o((e, t, r, { isAutoSwiped: i = !1, shouldFocus: a = !1 } = {}) => {
|
|
12
|
+
if (!O.current || !V || !N.current || !P.current) return;
|
|
13
|
+
P.current = !1, O.current.style.transition = i ? `transform ${S}ms` : "transform 0.2s", O.current.style.cursor = "grab", R.current &&= (O.current.removeEventListener("transitionend", R.current), null);
|
|
14
|
+
let o = t || w, s = r || k.current - O.current.offsetWidth * (o + 1) - e, c = O.current.offsetWidth * .1;
|
|
15
|
+
if (Math.abs(s) < c && !t) {
|
|
16
|
+
O.current.style.transform = F.current, N.current = !1, P.current = !0, m?.(n({
|
|
17
|
+
realPage: I.current,
|
|
18
|
+
totalPages: E,
|
|
19
|
+
lastPage: I.current,
|
|
20
|
+
isLoop: !1
|
|
21
|
+
}));
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let l = s <= -c && o - 1 < 0, u = s >= c && o + 1 === E, d = s >= c && o + 1 < E, f = s <= -c && o - 1 >= 0;
|
|
25
|
+
if (l) {
|
|
26
|
+
I.current = E - 1, m?.(n({
|
|
27
|
+
realPage: I.current,
|
|
28
|
+
totalPages: E,
|
|
29
|
+
lastPage: 0,
|
|
30
|
+
isLoop: !0
|
|
31
|
+
})), O.current.style.transform = "translate3d(0, 0, 0)", R.current = (e) => {
|
|
32
|
+
if (e.propertyName === "transform") {
|
|
33
|
+
if (!O.current) return;
|
|
34
|
+
if (O.current.style.transition = "none", O.current.style.transform = `translate3d(calc(-100% * ${E}), 0, 0)`, T(E - 1), N.current = !1, P.current = !0, a) (O.current?.children)?.[E]?.focus();
|
|
35
|
+
else {
|
|
36
|
+
if (i) return;
|
|
37
|
+
document.activeElement?.blur();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, O.current.addEventListener("transitionend", R.current);
|
|
41
|
+
return;
|
|
42
|
+
} else if (u) {
|
|
43
|
+
I.current = 0, m?.(n({
|
|
44
|
+
realPage: I.current,
|
|
45
|
+
totalPages: E,
|
|
46
|
+
lastPage: E - 1,
|
|
47
|
+
isLoop: !0
|
|
48
|
+
})), O.current.style.transform = `translate3d(calc(-100% * ${o + 2}), 0, 0)`, R.current = (e) => {
|
|
49
|
+
if (e.propertyName === "transform") {
|
|
50
|
+
if (!O.current) return;
|
|
51
|
+
if (O.current.style.transition = "none", O.current.style.transform = "translate3d(-100%, 0, 0)", T(0), N.current = !1, P.current = !0, a) (O.current?.children)?.[1]?.focus();
|
|
52
|
+
else {
|
|
53
|
+
if (i) return;
|
|
54
|
+
document.activeElement?.blur();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}, O.current.addEventListener("transitionend", R.current);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
d ? (I.current = o + 1, m?.(n({
|
|
61
|
+
realPage: I.current,
|
|
62
|
+
totalPages: E,
|
|
63
|
+
lastPage: o,
|
|
64
|
+
isLoop: !0
|
|
65
|
+
})), T(I.current), O.current.style.transform = `translate3d(calc(-100% * ${o + 2}), 0, 0)`) : f ? (I.current = o - 1, m?.(n({
|
|
66
|
+
realPage: I.current,
|
|
67
|
+
totalPages: E,
|
|
68
|
+
lastPage: o,
|
|
69
|
+
isLoop: !1
|
|
70
|
+
})), T(I.current), O.current.style.transform = `translate3d(calc(-100% * ${o}), 0, 0)`) : (m?.(n({
|
|
71
|
+
realPage: I.current,
|
|
72
|
+
totalPages: E,
|
|
73
|
+
lastPage: I.current,
|
|
74
|
+
isLoop: !1
|
|
75
|
+
})), O.current.style.transform = F.current), R.current = (e) => {
|
|
76
|
+
if (e.propertyName === "transform") {
|
|
77
|
+
N.current = !1, P.current = !0;
|
|
78
|
+
let e = Array.from(O.current?.children ?? []).find((e) => e.getAttribute("aria-current") === "page");
|
|
79
|
+
if (a && e) e.focus();
|
|
80
|
+
else {
|
|
81
|
+
if (i) return;
|
|
82
|
+
document.activeElement?.blur();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, O.current.addEventListener("transitionend", R.current);
|
|
86
|
+
}, [
|
|
87
|
+
w,
|
|
88
|
+
E,
|
|
89
|
+
m,
|
|
90
|
+
V,
|
|
91
|
+
S
|
|
92
|
+
]), K = (e) => {
|
|
93
|
+
N.current = !0, W(e.clientX, e.clientY, I.current);
|
|
94
|
+
}, q = (e) => G(e.clientX), J = (e) => {
|
|
95
|
+
W(e.touches[0].clientX, e.touches[0].clientY, I.current);
|
|
96
|
+
}, Y = (e) => G(e.changedTouches[0].clientX), X = (e) => {
|
|
97
|
+
N.current = !0;
|
|
98
|
+
let t = e - 1;
|
|
99
|
+
T(t <= 0 ? 0 : t), G(0, e);
|
|
100
|
+
}, Z = (e) => (t) => {
|
|
101
|
+
switch (t.key) {
|
|
102
|
+
case "ArrowRight": {
|
|
103
|
+
if (t.preventDefault(), N.current || !P.current) return;
|
|
104
|
+
let e = I.current === E - 1;
|
|
105
|
+
if (!g && e) return;
|
|
106
|
+
N.current = !0, G(0, I.current, (O.current?.offsetWidth ?? 0) * .1, { shouldFocus: !0 });
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case "ArrowLeft": {
|
|
110
|
+
if (t.preventDefault(), N.current || !P.current) return;
|
|
111
|
+
let e = I.current === 0;
|
|
112
|
+
if (!g && e) return;
|
|
113
|
+
N.current = !0, G(0, I.current, -((O.current?.offsetWidth ?? 0) * .1), { shouldFocus: !0 });
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
case "Enter":
|
|
117
|
+
t.preventDefault(), t.currentTarget.click();
|
|
118
|
+
break;
|
|
119
|
+
case " ":
|
|
120
|
+
t.preventDefault(), t.currentTarget.click();
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
e?.(t);
|
|
124
|
+
};
|
|
125
|
+
return s(() => {
|
|
126
|
+
let e = O.current, t = (e, t, r) => {
|
|
127
|
+
if (!(!O.current || !V || !P.current) && (M.current = e - k.current, N.current = N.current || Math.abs(M.current) > 5 && Math.abs(t - j.current) < 5, N.current)) {
|
|
128
|
+
let t = A.current < e, i = A.current > e;
|
|
129
|
+
if (!g && t && I.current === 0) {
|
|
130
|
+
N.current = !1;
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (!g && i && I.current === E - 1) {
|
|
134
|
+
N.current = !1;
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
r.cancelable && r.preventDefault(), h?.(n({
|
|
138
|
+
realPage: I.current,
|
|
139
|
+
totalPages: E,
|
|
140
|
+
lastPage: I.current,
|
|
141
|
+
isLoop: !1
|
|
142
|
+
})), O.current.style.transition = "none", O.current.style.cursor = "grabbing", O.current.style.transform = `translate3d(${M.current}px, 0, 0)`;
|
|
143
|
+
}
|
|
144
|
+
}, r = (e) => {
|
|
145
|
+
N.current && t(e.clientX, e.clientY, e);
|
|
146
|
+
}, i = (e) => t(e.touches[0].clientX, e.touches[0].clientY, e);
|
|
147
|
+
return e && (e.addEventListener("mousemove", r), e.addEventListener("touchmove", i)), () => {
|
|
148
|
+
e && (e.removeEventListener("mousemove", r), e.removeEventListener("touchmove", i));
|
|
149
|
+
};
|
|
150
|
+
}, [
|
|
151
|
+
V,
|
|
152
|
+
h,
|
|
153
|
+
g,
|
|
154
|
+
E
|
|
155
|
+
]), s(() => {
|
|
156
|
+
let e = O.current, t = (e) => {
|
|
157
|
+
P.current || (e.stopPropagation(), e.preventDefault());
|
|
158
|
+
};
|
|
159
|
+
return e?.addEventListener("click", t), () => {
|
|
160
|
+
e?.removeEventListener("click", t);
|
|
161
|
+
};
|
|
162
|
+
}, []), s(() => {
|
|
163
|
+
let e = O.current;
|
|
164
|
+
return () => {
|
|
165
|
+
R.current && e && (e.removeEventListener("transitionend", R.current), R.current = null);
|
|
166
|
+
};
|
|
167
|
+
}, []), s(() => {
|
|
168
|
+
D(z);
|
|
169
|
+
}, [z]), s(() => {
|
|
170
|
+
O.current && !L.current && (L.current = !0, O.current.style.transition = "none", O.current.style.transform = `translate3d(calc(-100% * ${z < p + 1 ? z : p + 1}), 0, 0)`);
|
|
171
|
+
}, [p, z]), s(() => {
|
|
172
|
+
if (b) {
|
|
173
|
+
let e = setInterval(() => {
|
|
174
|
+
N.current || !P.current || O.current && (!g && I.current === E - 1 || document.activeElement && O.current && O.current.contains(document.activeElement) || (N.current = !0, G(0, I.current, (O.current.offsetWidth ?? 0) * .1, { isAutoSwiped: !0 })));
|
|
175
|
+
}, x);
|
|
176
|
+
return () => {
|
|
177
|
+
clearInterval(e);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}, [
|
|
181
|
+
b,
|
|
182
|
+
x,
|
|
183
|
+
g,
|
|
184
|
+
E,
|
|
185
|
+
G
|
|
186
|
+
]), /* @__PURE__ */ d(u, {
|
|
187
|
+
flexGrow: 1,
|
|
188
|
+
role: "list",
|
|
189
|
+
"aria-roledescription": "carousel",
|
|
190
|
+
"aria-label": "슬라이더",
|
|
191
|
+
...C,
|
|
192
|
+
inlineCSS: {
|
|
193
|
+
width: "100%",
|
|
194
|
+
position: "relative",
|
|
195
|
+
...y
|
|
196
|
+
},
|
|
197
|
+
children: [/* @__PURE__ */ d(u, {
|
|
198
|
+
ref: O,
|
|
199
|
+
flexGrow: 1,
|
|
200
|
+
onMouseDown: K,
|
|
201
|
+
onMouseUp: q,
|
|
202
|
+
onMouseLeave: q,
|
|
203
|
+
onTouchStart: J,
|
|
204
|
+
onTouchEnd: Y,
|
|
205
|
+
onTouchCancel: Y,
|
|
206
|
+
inlineCSS: {
|
|
207
|
+
"& > div:first-of-type": { visibility: g ? "visible" : "hidden" },
|
|
208
|
+
"& > div:last-of-type": { visibility: g ? "visible" : "hidden" }
|
|
209
|
+
},
|
|
210
|
+
style: {
|
|
211
|
+
transition: "transform 0.2s",
|
|
212
|
+
transform: "translate3d(-100%, 0, 0)",
|
|
213
|
+
cursor: "grab"
|
|
214
|
+
},
|
|
215
|
+
children: [
|
|
216
|
+
U,
|
|
217
|
+
B.map((e, t) => i(e, {
|
|
218
|
+
role: "listitem",
|
|
219
|
+
tabIndex: t === w ? 0 : -1,
|
|
220
|
+
onKeyDown: Z(e.props.onKeyDown),
|
|
221
|
+
"aria-roledescription": "slide",
|
|
222
|
+
"aria-hidden": t !== w,
|
|
223
|
+
"aria-current": t === w ? "page" : void 0,
|
|
224
|
+
"aria-label": `${E}개 중 ${t + 1}번째 슬라이드`,
|
|
225
|
+
"aria-posinset": t + 1,
|
|
226
|
+
"aria-setsize": E,
|
|
227
|
+
...e.props
|
|
228
|
+
})),
|
|
229
|
+
H
|
|
230
|
+
]
|
|
231
|
+
}), typeof v == "function" && v({
|
|
232
|
+
page: w,
|
|
233
|
+
totalPages: E,
|
|
234
|
+
onChange: X
|
|
235
|
+
})]
|
|
236
|
+
});
|
|
281
237
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
};
|
|
238
|
+
//#endregion
|
|
239
|
+
export { f as default };
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
currentPage: i,
|
|
19
|
-
nextPage: i + 1 >= n ? n - 1 : i + 1,
|
|
20
|
-
lastPage: u
|
|
21
|
-
};
|
|
1
|
+
//#region shared/components/Swiper/Swiper.utils.ts
|
|
2
|
+
function e({ realPage: e, totalPages: t, lastPage: n, isLoop: r }) {
|
|
3
|
+
return r ? {
|
|
4
|
+
isFirstPage: e === 0,
|
|
5
|
+
isLastPage: e === t - 1,
|
|
6
|
+
prevPage: e - 2 < 0 ? 0 : e - 2,
|
|
7
|
+
currentPage: e,
|
|
8
|
+
nextPage: e + 2 >= t ? t - 1 : e + 2,
|
|
9
|
+
lastPage: n
|
|
10
|
+
} : {
|
|
11
|
+
isFirstPage: e === 0,
|
|
12
|
+
isLastPage: e === t - 1,
|
|
13
|
+
prevPage: e - 1 < 0 ? 0 : e - 1,
|
|
14
|
+
currentPage: e,
|
|
15
|
+
nextPage: e + 1 >= t ? t - 1 : e + 1,
|
|
16
|
+
lastPage: n
|
|
17
|
+
};
|
|
22
18
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as createSwipeEvent };
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
1
|
import { Flexbox as e } from "@dotss/ui";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
);
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region shared/components/Swiper/SwiperBlock/SwiperBlock.tsx
|
|
4
|
+
function n({ children: n, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t(e, {
|
|
6
|
+
...r,
|
|
7
|
+
inlineCSS: {
|
|
8
|
+
minWidth: "100%",
|
|
9
|
+
transform: "translate3d(0, 0, 0)",
|
|
10
|
+
...r?.inlineCSS
|
|
11
|
+
},
|
|
12
|
+
children: n
|
|
13
|
+
});
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./SwiperBlock.mjs";
|
|
2
|
+
//#region shared/components/Swiper/SwiperBlock/index.ts
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import e from "./SwiperBlock/index.mjs";
|
|
2
|
+
import t from "./Swiper.mjs";
|
|
3
|
+
//#region shared/components/Swiper/index.ts
|
|
4
|
+
var n = t;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as SwiperBlock, n as default };
|