@cuemath/leap 3.3.24-link.2 → 3.3.24
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/features/auth/account-selector/account-selector-styled.js +5 -6
- package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +57 -51
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list-styled.js +2 -3
- package/dist/features/auth/comps/user-list/user-list-styled.js.map +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +3 -9
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +8 -8
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
- package/dist/features/journey/use-journey/use-journey.js +6 -18
- package/dist/features/journey/use-journey/use-journey.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-helpers.js +7 -13
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +34 -40
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +3 -3
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-view.js +138 -161
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
- package/dist/features/stickers/constants.js +235 -0
- package/dist/features/stickers/constants.js.map +1 -0
- package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/comps/sticker/sticker-styled.js} +15 -45
- package/dist/features/stickers/sticker-selector/comps/sticker/sticker-styled.js.map +1 -0
- package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js +49 -0
- package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js.map +1 -0
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js +28 -0
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js.map +1 -0
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js +26 -0
- package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker-selector-styled.js +13 -0
- package/dist/features/stickers/sticker-selector/sticker-selector-styled.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js +86 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-animations.js +82 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-animations.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-cache.js +19 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-cache.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +105 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +37 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js +67 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
- package/dist/features/trial-session/comps/class-preference/class-preference.js +49 -61
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +15 -15
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js +0 -5
- package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback.js +51 -96
- package/dist/features/trial-session/comps/student-feedback/student-feedback.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +63 -70
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/helper.js +54 -71
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +130 -149
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +98 -107
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +88 -75
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +55 -46
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +48 -15
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +46 -38
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/index.d.ts +71 -66
- package/dist/index.js +391 -401
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/features/auth/account-selector/comps/compact-header/account-selector-header.js +0 -31
- package/dist/features/auth/account-selector/comps/compact-header/account-selector-header.js.map +0 -1
- package/dist/features/parent-dashboard/api/cancel-subscription.js +0 -9
- package/dist/features/parent-dashboard/api/cancel-subscription.js.map +0 -1
- package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js +0 -20
- package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map +0 -1
- package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +0 -96
- package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js +0 -21
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +0 -80
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +0 -23
- package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js +0 -55
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js +0 -59
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map +0 -1
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +0 -93
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +0 -1
- package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js +0 -63
- package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js.map +0 -1
- package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +0 -65
- package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +0 -1
- package/dist/features/student-username/add/add-student-username-constants.js +0 -6
- package/dist/features/student-username/add/add-student-username-constants.js.map +0 -1
- package/dist/features/student-username/add/add-student-username-helpers.js +0 -6
- package/dist/features/student-username/add/add-student-username-helpers.js.map +0 -1
- package/dist/features/student-username/add/add-student-username-styled.js +0 -10
- package/dist/features/student-username/add/add-student-username-styled.js.map +0 -1
- package/dist/features/student-username/add/add-student-username.js +0 -78
- package/dist/features/student-username/add/add-student-username.js.map +0 -1
- package/dist/features/student-username/add/api/update-username.js +0 -9
- package/dist/features/student-username/add/api/update-username.js.map +0 -1
- package/dist/features/student-username/add/api/username-availability.js +0 -10
- package/dist/features/student-username/add/api/username-availability.js.map +0 -1
- package/dist/features/student-username/add/hooks/use-check-username-availability.js +0 -41
- package/dist/features/student-username/add/hooks/use-check-username-availability.js.map +0 -1
- package/dist/features/trial-session/api/teacher-availability.js +0 -9
- package/dist/features/trial-session/api/teacher-availability.js.map +0 -1
- package/dist/features/trial-session/comps/class-preference/helpers.js +0 -28
- package/dist/features/trial-session/comps/class-preference/helpers.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker.js +0 -57
- package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
- package/dist/features/ui/stickers/constants.js +0 -6
- package/dist/features/ui/stickers/constants.js.map +0 -1
- package/dist/features/ui/stickers/stickers-effects.js +0 -64
- package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
- package/dist/features/ui/stickers/stickers-styled.js +0 -29
- package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
- package/dist/features/ui/stickers/stickers-utils.js +0 -91
- package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
- package/dist/features/ui/stickers/stickers.js +0 -40
- package/dist/features/ui/stickers/stickers.js.map +0 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
const t = [
|
|
2
|
+
{
|
|
3
|
+
id: "star-struck",
|
|
4
|
+
emoji: "🤩",
|
|
5
|
+
name: "Star-Struck",
|
|
6
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f929/lottie.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
id: "heart-eyes",
|
|
10
|
+
emoji: "😍",
|
|
11
|
+
name: "Heart Eyes",
|
|
12
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f60d/lottie.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: "holding-back-tears",
|
|
16
|
+
emoji: "🥹",
|
|
17
|
+
name: "Holding Back Tears",
|
|
18
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f979/lottie.json"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "sunglasses",
|
|
22
|
+
emoji: "😎",
|
|
23
|
+
name: "Sunglasses",
|
|
24
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f60e/lottie.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "exploding-head",
|
|
28
|
+
emoji: "🤯",
|
|
29
|
+
name: "Exploding Head",
|
|
30
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f92f/lottie.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "thinking",
|
|
34
|
+
emoji: "🤔",
|
|
35
|
+
name: "Thinking",
|
|
36
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f914/lottie.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: "party",
|
|
40
|
+
emoji: "🥳",
|
|
41
|
+
name: "Party",
|
|
42
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f973/lottie.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "confetti-ball",
|
|
46
|
+
emoji: "🎊",
|
|
47
|
+
name: "Confetti Ball",
|
|
48
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f38a/lottie.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "celebration",
|
|
52
|
+
emoji: "🎉",
|
|
53
|
+
name: "Celebration",
|
|
54
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f389/lottie.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "balloon",
|
|
58
|
+
emoji: "🎈",
|
|
59
|
+
name: "Balloon",
|
|
60
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f388/lottie.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "cake",
|
|
64
|
+
emoji: "🎂",
|
|
65
|
+
name: "Cake",
|
|
66
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f382/lottie.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "clapping",
|
|
70
|
+
emoji: "👏",
|
|
71
|
+
name: "Clapping",
|
|
72
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f44f/lottie.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "thumbs-up",
|
|
76
|
+
emoji: "👍",
|
|
77
|
+
name: "Thumbs Up",
|
|
78
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f44d/lottie.json"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: "peace",
|
|
82
|
+
emoji: "✌️",
|
|
83
|
+
name: "Peace",
|
|
84
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/270c_fe0f/lottie.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "ok-hand",
|
|
88
|
+
emoji: "👌",
|
|
89
|
+
name: "OK Hand",
|
|
90
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f44c/lottie.json"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "muscle",
|
|
94
|
+
emoji: "💪",
|
|
95
|
+
name: "Muscle",
|
|
96
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f4aa/lottie.json"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "rock-on",
|
|
100
|
+
emoji: "🤟",
|
|
101
|
+
name: "Rock On",
|
|
102
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f91f/lottie.json"
|
|
103
|
+
// no src file on google itself
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: "heart",
|
|
107
|
+
emoji: "❤️",
|
|
108
|
+
name: "Heart",
|
|
109
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/2764_fe0f/lottie.json"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "trophy",
|
|
113
|
+
emoji: "🏆",
|
|
114
|
+
name: "Trophy",
|
|
115
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f3c6/lottie.json"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "hundred",
|
|
119
|
+
emoji: "💯",
|
|
120
|
+
name: "Hundred",
|
|
121
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f4af/lottie.json"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "gold-medal",
|
|
125
|
+
emoji: "🥇",
|
|
126
|
+
name: "Gold Medal",
|
|
127
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f947/lottie.json"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "silver-medal",
|
|
131
|
+
emoji: "🥈",
|
|
132
|
+
name: "Silver Medal",
|
|
133
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f948/lottie.json"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: "bronze-medal",
|
|
137
|
+
emoji: "🥉",
|
|
138
|
+
name: "Bronze Medal",
|
|
139
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f949/lottie.json"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: "target",
|
|
143
|
+
emoji: "🎯",
|
|
144
|
+
name: "Target",
|
|
145
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f3af/lottie.json"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: "glowing-star",
|
|
149
|
+
emoji: "🌟",
|
|
150
|
+
name: "Glowing Star",
|
|
151
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f31f/lottie.json"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "lightning",
|
|
155
|
+
emoji: "⚡️",
|
|
156
|
+
name: "Lightning",
|
|
157
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/26a1/lottie.json"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "rocket",
|
|
161
|
+
emoji: "🚀",
|
|
162
|
+
name: "Rocket",
|
|
163
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f680/lottie.json"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: "explosion",
|
|
167
|
+
emoji: "💥",
|
|
168
|
+
name: "Explosion",
|
|
169
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f4a5/lottie.json"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: "graduation",
|
|
173
|
+
emoji: "🎓",
|
|
174
|
+
name: "Graduation",
|
|
175
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f393/lottie.json"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: "clock",
|
|
179
|
+
emoji: "⏰",
|
|
180
|
+
name: "Clock",
|
|
181
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/23f0/lottie.json"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: "bulb",
|
|
185
|
+
emoji: "💡",
|
|
186
|
+
name: "Bulb",
|
|
187
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f4a1/lottie.json"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: "rainbow",
|
|
191
|
+
emoji: "🌈",
|
|
192
|
+
name: "Rainbow",
|
|
193
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f308/lottie.json"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "clown",
|
|
197
|
+
emoji: "🤡",
|
|
198
|
+
name: "Clown",
|
|
199
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f921/lottie.json"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "dancer",
|
|
203
|
+
emoji: "💃",
|
|
204
|
+
name: "Dancer",
|
|
205
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f483/lottie.json"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "flowers",
|
|
209
|
+
emoji: "💐",
|
|
210
|
+
name: "Flowers",
|
|
211
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f490/lottie.json"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: "unicorn",
|
|
215
|
+
emoji: "🦄",
|
|
216
|
+
name: "Unicorn",
|
|
217
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f984/lottie.json"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "drum",
|
|
221
|
+
emoji: "🥁",
|
|
222
|
+
name: "Drum",
|
|
223
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f941/lottie.json"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: "diamond",
|
|
227
|
+
emoji: "💎",
|
|
228
|
+
name: "Diamond",
|
|
229
|
+
lottieUrl: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f48e/lottie.json"
|
|
230
|
+
}
|
|
231
|
+
];
|
|
232
|
+
export {
|
|
233
|
+
t as STICKERS_DATA
|
|
234
|
+
};
|
|
235
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/features/stickers/constants.ts"],"sourcesContent":["import type { IStickerData } from './stickers-types';\n\n/*\n * Noto Emoji animations by Google\n * Licensed under Creative Commons Attribution 4.0 International License\n * https://creativecommons.org/licenses/by/4.0/\n * Source: https://fonts.gstatic.com/s/e/notoemoji/\n */\nexport const STICKERS_DATA: IStickerData[] = [\n {\n id: 'star-struck',\n emoji: '🤩',\n name: 'Star-Struck',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f929/lottie.json',\n },\n {\n id: 'heart-eyes',\n emoji: '😍',\n name: 'Heart Eyes',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f60d/lottie.json',\n },\n {\n id: 'holding-back-tears',\n emoji: '🥹',\n name: 'Holding Back Tears',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f979/lottie.json',\n },\n {\n id: 'sunglasses',\n emoji: '😎',\n name: 'Sunglasses',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f60e/lottie.json',\n },\n {\n id: 'exploding-head',\n emoji: '🤯',\n name: 'Exploding Head',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f92f/lottie.json',\n },\n {\n id: 'thinking',\n emoji: '🤔',\n name: 'Thinking',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f914/lottie.json',\n },\n {\n id: 'party',\n emoji: '🥳',\n name: 'Party',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f973/lottie.json',\n },\n {\n id: 'confetti-ball',\n emoji: '🎊',\n name: 'Confetti Ball',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f38a/lottie.json',\n },\n {\n id: 'celebration',\n emoji: '🎉',\n name: 'Celebration',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f389/lottie.json',\n },\n {\n id: 'balloon',\n emoji: '🎈',\n name: 'Balloon',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f388/lottie.json',\n },\n {\n id: 'cake',\n emoji: '🎂',\n name: 'Cake',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f382/lottie.json',\n },\n {\n id: 'clapping',\n emoji: '👏',\n name: 'Clapping',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f44f/lottie.json',\n },\n {\n id: 'thumbs-up',\n emoji: '👍',\n name: 'Thumbs Up',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f44d/lottie.json',\n },\n {\n id: 'peace',\n emoji: '✌️',\n name: 'Peace',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/270c_fe0f/lottie.json',\n },\n {\n id: 'ok-hand',\n emoji: '👌',\n name: 'OK Hand',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f44c/lottie.json',\n },\n {\n id: 'muscle',\n emoji: '💪',\n name: 'Muscle',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f4aa/lottie.json',\n },\n {\n id: 'rock-on',\n emoji: '🤟',\n name: 'Rock On',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f91f/lottie.json', // no src file on google itself\n },\n {\n id: 'heart',\n emoji: '❤️',\n name: 'Heart',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/2764_fe0f/lottie.json',\n },\n {\n id: 'trophy',\n emoji: '🏆',\n name: 'Trophy',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f3c6/lottie.json',\n },\n {\n id: 'hundred',\n emoji: '💯',\n name: 'Hundred',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f4af/lottie.json',\n },\n {\n id: 'gold-medal',\n emoji: '🥇',\n name: 'Gold Medal',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f947/lottie.json',\n },\n {\n id: 'silver-medal',\n emoji: '🥈',\n name: 'Silver Medal',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f948/lottie.json',\n },\n {\n id: 'bronze-medal',\n emoji: '🥉',\n name: 'Bronze Medal',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f949/lottie.json',\n },\n {\n id: 'target',\n emoji: '🎯',\n name: 'Target',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f3af/lottie.json',\n },\n {\n id: 'glowing-star',\n emoji: '🌟',\n name: 'Glowing Star',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f31f/lottie.json',\n },\n {\n id: 'lightning',\n emoji: '⚡️',\n name: 'Lightning',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/26a1/lottie.json',\n },\n {\n id: 'rocket',\n emoji: '🚀',\n name: 'Rocket',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f680/lottie.json',\n },\n {\n id: 'explosion',\n emoji: '💥',\n name: 'Explosion',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f4a5/lottie.json',\n },\n {\n id: 'graduation',\n emoji: '🎓',\n name: 'Graduation',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f393/lottie.json',\n },\n {\n id: 'clock',\n emoji: '⏰',\n name: 'Clock',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/23f0/lottie.json',\n },\n {\n id: 'bulb',\n emoji: '💡',\n name: 'Bulb',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f4a1/lottie.json',\n },\n {\n id: 'rainbow',\n emoji: '🌈',\n name: 'Rainbow',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f308/lottie.json',\n },\n {\n id: 'clown',\n emoji: '🤡',\n name: 'Clown',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f921/lottie.json',\n },\n {\n id: 'dancer',\n emoji: '💃',\n name: 'Dancer',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f483/lottie.json',\n },\n {\n id: 'flowers',\n emoji: '💐',\n name: 'Flowers',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f490/lottie.json',\n },\n {\n id: 'unicorn',\n emoji: '🦄',\n name: 'Unicorn',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f984/lottie.json',\n },\n {\n id: 'drum',\n emoji: '🥁',\n name: 'Drum',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f941/lottie.json',\n },\n {\n id: 'diamond',\n emoji: '💎',\n name: 'Diamond',\n lottieUrl: 'https://fonts.gstatic.com/s/e/notoemoji/latest/1f48e/lottie.json',\n },\n];\n"],"names":["STICKERS_DATA"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import e from "styled-components";
|
|
2
|
+
const n = e.div`
|
|
3
3
|
position: relative;
|
|
4
4
|
width: ${({ $size: t }) => typeof t == "number" ? `${t}px` : t};
|
|
5
5
|
height: ${({ $size: t }) => typeof t == "number" ? `${t}px` : t};
|
|
@@ -12,6 +12,8 @@ const e = r.div`
|
|
|
12
12
|
transition: all 0.2s ease;
|
|
13
13
|
background-color: transparent;
|
|
14
14
|
opacity: ${({ $disabled: t }) => t ? 0.5 : 1};
|
|
15
|
+
pointer-events: ${({ $disabled: t }) => t ? "none" : "auto"};
|
|
16
|
+
user-select: none;
|
|
15
17
|
|
|
16
18
|
&:hover {
|
|
17
19
|
transform: ${({ $disabled: t }) => t ? "none" : "scale(1.1)"};
|
|
@@ -21,66 +23,34 @@ const e = r.div`
|
|
|
21
23
|
&:active {
|
|
22
24
|
transform: ${({ $disabled: t }) => t ? "none" : "scale(0.95)"};
|
|
23
25
|
}
|
|
24
|
-
`,
|
|
26
|
+
`, r = e.div`
|
|
25
27
|
font-size: ${({ $size: t }) => typeof t == "number" ? `${t * 0.7}px` : "70%"};
|
|
26
28
|
line-height: 1;
|
|
27
|
-
display: flex;
|
|
29
|
+
display: ${({ $visible: t }) => t ? "flex" : "none"};
|
|
28
30
|
align-items: center;
|
|
29
31
|
justify-content: center;
|
|
30
32
|
width: 100%;
|
|
31
33
|
height: 100%;
|
|
32
34
|
transition: opacity 0.2s ease;
|
|
33
|
-
`,
|
|
35
|
+
`, i = e.div`
|
|
34
36
|
position: absolute;
|
|
35
37
|
top: 50%;
|
|
36
38
|
left: 50%;
|
|
37
39
|
width: ${({ $size: t }) => typeof t == "number" ? `${t * 0.7}px` : t};
|
|
38
40
|
height: ${({ $size: t }) => typeof t == "number" ? `${t * 0.7}px` : t};
|
|
39
|
-
opacity: 0;
|
|
40
|
-
transition: opacity 0.2s ease;
|
|
41
41
|
transform: translate(-50%, -50%);
|
|
42
42
|
pointer-events: none;
|
|
43
|
+
display: 'flex';
|
|
44
|
+
opacity: ${({ $visible: t }) => t ? 1 : 0};
|
|
45
|
+
transition: opacity 0.2s ease;
|
|
43
46
|
|
|
44
|
-
${
|
|
47
|
+
${n}:hover & {
|
|
45
48
|
opacity: 1;
|
|
46
49
|
}
|
|
47
|
-
`, i = r.div`
|
|
48
|
-
display: grid;
|
|
49
|
-
grid-template-columns: repeat(${({ $columns: t }) => t}, 1fr);
|
|
50
|
-
gap: ${({ $gap: t }) => t}px;
|
|
51
|
-
padding: 16px;
|
|
52
|
-
background-color: #2a2a2a;
|
|
53
|
-
border-radius: 12px;
|
|
54
|
-
max-height: 400px;
|
|
55
|
-
overflow-y: auto;
|
|
56
|
-
|
|
57
|
-
&::-webkit-scrollbar {
|
|
58
|
-
width: 8px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&::-webkit-scrollbar-track {
|
|
62
|
-
background: rgba(255, 255, 255, 0.1);
|
|
63
|
-
border-radius: 4px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&::-webkit-scrollbar-thumb {
|
|
67
|
-
background: rgba(255, 255, 255, 0.3);
|
|
68
|
-
border-radius: 4px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
72
|
-
background: rgba(255, 255, 255, 0.5);
|
|
73
|
-
}
|
|
74
|
-
`, c = r.div`
|
|
75
|
-
width: 100%;
|
|
76
|
-
max-width: ${({ $width: t }) => t};
|
|
77
|
-
max-height: ${({ $height: t }) => t};
|
|
78
50
|
`;
|
|
79
51
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
i as StickerGrid,
|
|
84
|
-
c as StickerGridContainer
|
|
52
|
+
i as LottieContainer,
|
|
53
|
+
r as StaticEmoji,
|
|
54
|
+
n as StickerContainer
|
|
85
55
|
};
|
|
86
|
-
//# sourceMappingURL=sticker-
|
|
56
|
+
//# sourceMappingURL=sticker-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker-styled.js","sources":["../../../../../../src/features/stickers/sticker-selector/comps/sticker/sticker-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StickerContainer = styled.div<{\n $size: number | string;\n $disabled?: boolean;\n}>`\n position: relative;\n width: ${({ $size }) => (typeof $size === 'number' ? `${$size}px` : $size)};\n height: ${({ $size }) => (typeof $size === 'number' ? `${$size}px` : $size)};\n cursor: ${({ $disabled }) => ($disabled ? 'none' : 'pointer')};\n border-radius: 8px;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n background-color: transparent;\n opacity: ${({ $disabled }) => ($disabled ? 0.5 : 1)};\n pointer-events: ${({ $disabled }) => ($disabled ? 'none' : 'auto')};\n user-select: none;\n\n &:hover {\n transform: ${({ $disabled }) => ($disabled ? 'none' : 'scale(1.1)')};\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n &:active {\n transform: ${({ $disabled }) => ($disabled ? 'none' : 'scale(0.95)')};\n }\n`;\n\nexport const StaticEmoji = styled.div<{ $size: number | string; $visible: boolean }>`\n font-size: ${({ $size }) => {\n if (typeof $size === 'number') {\n return `${$size * 0.7}px`;\n }\n\n return '70%';\n }};\n line-height: 1;\n display: ${({ $visible }) => ($visible ? 'flex' : 'none')};\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n transition: opacity 0.2s ease;\n`;\n\nexport const LottieContainer = styled.div<{\n $size: number | string;\n $visible?: boolean;\n}>`\n position: absolute;\n top: 50%;\n left: 50%;\n width: ${({ $size }) => (typeof $size === 'number' ? `${$size * 0.7}px` : $size)};\n height: ${({ $size }) => (typeof $size === 'number' ? `${$size * 0.7}px` : $size)};\n transform: translate(-50%, -50%);\n pointer-events: none;\n display: 'flex';\n opacity: ${({ $visible }) => ($visible ? 1 : 0)};\n transition: opacity 0.2s ease;\n\n ${StickerContainer}:hover & {\n opacity: 1;\n }\n`;\n"],"names":["StickerContainer","styled","$size","$disabled","StaticEmoji","$visible","LottieContainer"],"mappings":";AAEO,MAAMA,IAAmBC,EAAO;AAAA;AAAA,WAK5B,CAAC,EAAE,OAAAC,EAAa,MAAA,OAAOA,KAAU,WAAW,GAAGA,CAAK,OAAOA,CAAM;AAAA,YAChE,CAAC,EAAE,OAAAA,EAAa,MAAA,OAAOA,KAAU,WAAW,GAAGA,CAAK,OAAOA,CAAM;AAAA,YACjE,CAAC,EAAE,WAAAC,EAAA,MAAiBA,IAAY,SAAS,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQlD,CAAC,EAAE,WAAAA,EAAA,MAAiBA,IAAY,MAAM,CAAE;AAAA,oBACjC,CAAC,EAAE,WAAAA,EAAA,MAAiBA,IAAY,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA,iBAInD,CAAC,EAAE,WAAAA,EAAA,MAAiBA,IAAY,SAAS,YAAa;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKtD,CAAC,EAAE,WAAAA,EAAA,MAAiBA,IAAY,SAAS,aAAc;AAAA;AAAA,GAI3DC,IAAcH,EAAO;AAAA,eACnB,CAAC,EAAE,OAAAC,QACV,OAAOA,KAAU,WACZ,GAAGA,IAAQ,GAAG,OAGhB,KACR;AAAA;AAAA,aAEU,CAAC,EAAE,UAAAG,EAAA,MAAgBA,IAAW,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQ9CC,IAAkBL,EAAO;AAAA;AAAA;AAAA;AAAA,WAO3B,CAAC,EAAE,OAAAC,QAAa,OAAOA,KAAU,WAAW,GAAGA,IAAQ,GAAG,OAAOA,CAAM;AAAA,YACtE,CAAC,EAAE,OAAAA,QAAa,OAAOA,KAAU,WAAW,GAAGA,IAAQ,GAAG,OAAOA,CAAM;AAAA;AAAA;AAAA;AAAA,aAItE,CAAC,EAAE,UAAAG,EAAA,MAAgBA,IAAW,IAAI,CAAE;AAAA;AAAA;AAAA,IAG7CL,CAAgB;AAAA;AAAA;AAAA;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as $, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as E, useState as u, useRef as k, useCallback as r } from "react";
|
|
3
|
+
import g from "../../../../ui/lottie-animation/lottie-animation.js";
|
|
4
|
+
import { StickerContainer as j, StaticEmoji as C, LottieContainer as R } from "./sticker-styled.js";
|
|
5
|
+
const x = {
|
|
6
|
+
renderer: "canvas"
|
|
7
|
+
}, y = ({ emoji: f, lottieUrl: a, size: n = 48, onClick: h, disabled: t = !1 }) => {
|
|
8
|
+
const [c, d] = u(!1), [i, l] = u("idle"), o = k(null), v = r(() => {
|
|
9
|
+
var e;
|
|
10
|
+
l("loaded"), (e = o.current) == null || e.play();
|
|
11
|
+
}, []), S = r(() => {
|
|
12
|
+
l("error");
|
|
13
|
+
}, []), p = r(() => {
|
|
14
|
+
var e;
|
|
15
|
+
d(!0), i === "loaded" && ((e = o.current) == null || e.play());
|
|
16
|
+
}, [i]), L = r(() => {
|
|
17
|
+
var e;
|
|
18
|
+
d(!1), (e = o.current) == null || e.goToAndStop(0, !0);
|
|
19
|
+
}, []), m = c && i === "loaded";
|
|
20
|
+
return /* @__PURE__ */ $(
|
|
21
|
+
j,
|
|
22
|
+
{
|
|
23
|
+
$size: n,
|
|
24
|
+
$disabled: t,
|
|
25
|
+
onPointerEnter: t ? void 0 : p,
|
|
26
|
+
onPointerLeave: t ? void 0 : L,
|
|
27
|
+
onClick: t ? void 0 : h,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ s(C, { $size: n, $visible: !m, children: f }),
|
|
30
|
+
/* @__PURE__ */ s(R, { $size: n, $visible: m, children: c && a && /* @__PURE__ */ s(
|
|
31
|
+
g,
|
|
32
|
+
{
|
|
33
|
+
ref: o,
|
|
34
|
+
src: a,
|
|
35
|
+
width: "100%",
|
|
36
|
+
height: "100%",
|
|
37
|
+
settings: x,
|
|
38
|
+
onRender: v,
|
|
39
|
+
onError: S
|
|
40
|
+
}
|
|
41
|
+
) })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}, b = E(y);
|
|
46
|
+
export {
|
|
47
|
+
b as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=sticker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker.js","sources":["../../../../../../src/features/stickers/sticker-selector/comps/sticker/sticker.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../../ui/lottie-animation/types';\nimport type { IStickerProps } from './sticker-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useRef, useState } from 'react';\n\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './sticker-styled';\n\nconst renderSettings = {\n renderer: 'canvas' as const,\n};\n\nconst Sticker: FC<IStickerProps> = ({ emoji, lottieUrl, size = 48, onClick, disabled = false }) => {\n const [isHovered, setIsHovered] = useState(false);\n const [lottieState, setLottieState] = useState<'idle' | 'loaded' | 'error'>('idle');\n const lottieRef = useRef<ILottieAnimationRef>(null);\n\n const handleLottieReady = useCallback(() => {\n setLottieState('loaded');\n lottieRef.current?.play();\n }, []);\n\n const handleLottieError = useCallback(() => {\n setLottieState('error');\n }, []);\n\n const handleMouseEnter = useCallback(() => {\n setIsHovered(true);\n\n if (lottieState === 'loaded') {\n lottieRef.current?.play();\n }\n }, [lottieState]);\n\n const handleMouseLeave = useCallback(() => {\n setIsHovered(false);\n lottieRef.current?.goToAndStop(0, true);\n }, []);\n\n const hideStaticEmoji = isHovered && lottieState === 'loaded';\n\n return (\n <Styled.StickerContainer\n $size={size}\n $disabled={disabled}\n onPointerEnter={disabled ? undefined : handleMouseEnter}\n onPointerLeave={disabled ? undefined : handleMouseLeave}\n onClick={disabled ? undefined : onClick}\n >\n <Styled.StaticEmoji $size={size} $visible={!hideStaticEmoji}>\n {emoji}\n </Styled.StaticEmoji>\n\n <Styled.LottieContainer $size={size} $visible={hideStaticEmoji}>\n {isHovered && lottieUrl && (\n <LottieAnimation\n ref={lottieRef}\n src={lottieUrl}\n width=\"100%\"\n height=\"100%\"\n settings={renderSettings}\n onRender={handleLottieReady}\n onError={handleLottieError}\n />\n )}\n </Styled.LottieContainer>\n </Styled.StickerContainer>\n );\n};\n\nexport default memo(Sticker);\n"],"names":["renderSettings","Sticker","emoji","lottieUrl","size","onClick","disabled","isHovered","setIsHovered","useState","lottieState","setLottieState","lottieRef","useRef","handleLottieReady","useCallback","_a","handleLottieError","handleMouseEnter","handleMouseLeave","hideStaticEmoji","jsxs","Styled.StickerContainer","jsx","Styled.StaticEmoji","Styled.LottieContainer","LottieAnimation","Sticker$1","memo"],"mappings":";;;;AASA,MAAMA,IAAiB;AAAA,EACrB,UAAU;AACZ,GAEMC,IAA6B,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,MAAAC,IAAO,IAAI,SAAAC,GAAS,UAAAC,IAAW,SAAY;AACjG,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1C,CAACC,GAAaC,CAAc,IAAIF,EAAsC,MAAM,GAC5EG,IAAYC,EAA4B,IAAI,GAE5CC,IAAoBC,EAAY,MAAM;;AAC1C,IAAAJ,EAAe,QAAQ,IACvBK,IAAAJ,EAAU,YAAV,QAAAI,EAAmB;AAAA,EACrB,GAAG,CAAE,CAAA,GAECC,IAAoBF,EAAY,MAAM;AAC1C,IAAAJ,EAAe,OAAO;AAAA,EACxB,GAAG,CAAE,CAAA,GAECO,IAAmBH,EAAY,MAAM;;AACzC,IAAAP,EAAa,EAAI,GAEbE,MAAgB,cAClBM,IAAAJ,EAAU,YAAV,QAAAI,EAAmB;AAAA,EACrB,GACC,CAACN,CAAW,CAAC,GAEVS,IAAmBJ,EAAY,MAAM;;AACzC,IAAAP,EAAa,EAAK,IACRQ,IAAAJ,EAAA,YAAA,QAAAI,EAAS,YAAY,GAAG;AAAA,EACpC,GAAG,CAAE,CAAA,GAECI,IAAkBb,KAAaG,MAAgB;AAGnD,SAAA,gBAAAW;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAOlB;AAAA,MACP,WAAWE;AAAA,MACX,gBAAgBA,IAAW,SAAYY;AAAA,MACvC,gBAAgBZ,IAAW,SAAYa;AAAA,MACvC,SAASb,IAAW,SAAYD;AAAA,MAEhC,UAAA;AAAA,QAAC,gBAAAkB,EAAAC,GAAA,EAAmB,OAAOpB,GAAM,UAAU,CAACgB,GACzC,UACHlB,GAAA;AAAA,QAEA,gBAAAqB,EAACE,GAAA,EAAuB,OAAOrB,GAAM,UAAUgB,GAC5C,UAAAb,KAAaJ,KACZ,gBAAAoB;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,KAAKd;AAAA,YACL,KAAKT;AAAA,YACL,OAAM;AAAA,YACN,QAAO;AAAA,YACP,UAAUH;AAAA,YACV,UAAUc;AAAA,YACV,SAASG;AAAA,UAAA;AAAA,QAAA,GAGf;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeU,IAAAC,EAAK3B,CAAO;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
const e = o.div`
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(${({ $columns: r }) => r}, 1fr);
|
|
5
|
+
gap: ${({ $gap: r }) => r}px;
|
|
6
|
+
padding: 16px;
|
|
7
|
+
background-color: #2a2a2a;
|
|
8
|
+
border-radius: 12px;
|
|
9
|
+
max-height: 400px;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
scrollbar-gutter: stable;
|
|
12
|
+
|
|
13
|
+
scrollbar-width: none;
|
|
14
|
+
-ms-overflow-style: none;
|
|
15
|
+
&::-webkit-scrollbar {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
`, a = o.div`
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: ${({ $width: r }) => r};
|
|
21
|
+
max-height: ${({ $height: r }) => r};
|
|
22
|
+
cursor: ${({ $disabled: r }) => r ? "default" : "pointer"};
|
|
23
|
+
`;
|
|
24
|
+
export {
|
|
25
|
+
e as StickerGrid,
|
|
26
|
+
a as StickerGridContainer
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=sticker-selector-grid-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker-selector-grid-styled.js","sources":["../../../../../../src/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StickerGrid = styled.div<{\n $columns: number;\n $gap: number;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 1fr);\n gap: ${({ $gap }) => $gap}px;\n padding: 16px;\n background-color: #2a2a2a;\n border-radius: 12px;\n max-height: 400px;\n overflow-y: auto;\n scrollbar-gutter: stable;\n\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const StickerGridContainer = styled.div<{\n $width: string;\n $height: string;\n $disabled?: boolean;\n}>`\n width: 100%;\n max-width: ${({ $width }) => $width};\n max-height: ${({ $height }) => $height};\n cursor: ${({ $disabled }) => ($disabled ? 'default' : 'pointer')};\n`;\n"],"names":["StickerGrid","styled","$columns","$gap","StickerGridContainer","$width","$height","$disabled"],"mappings":";AAEO,MAAMA,IAAcC,EAAO;AAAA;AAAA,kCAKA,CAAC,EAAE,UAAAC,EAAS,MAAMA,CAAQ;AAAA,SACnD,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAedC,IAAuBH,EAAO;AAAA;AAAA,eAM5B,CAAC,EAAE,QAAAI,EAAO,MAAMA,CAAM;AAAA,gBACrB,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA,YAC5B,CAAC,EAAE,WAAAC,EAAA,MAAiBA,IAAY,YAAY,SAAU;AAAA;"}
|
package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as c } from "react";
|
|
3
|
+
import { STICKERS_DATA as p } from "../../../constants.js";
|
|
4
|
+
import d from "../sticker/sticker.js";
|
|
5
|
+
import { StickerGridContainer as n, StickerGrid as S } from "./sticker-selector-grid-styled.js";
|
|
6
|
+
const f = ({
|
|
7
|
+
columns: t = 4,
|
|
8
|
+
gap: e = 8,
|
|
9
|
+
stickerSize: m = 72,
|
|
10
|
+
onStickerClick: l,
|
|
11
|
+
disabled: o = !1
|
|
12
|
+
}) => /* @__PURE__ */ i(n, { $width: "350px", $height: "400px", $disabled: o, children: /* @__PURE__ */ i(S, { $columns: t, $gap: e, children: p.map((r) => /* @__PURE__ */ i(
|
|
13
|
+
d,
|
|
14
|
+
{
|
|
15
|
+
emoji: r.emoji,
|
|
16
|
+
lottieUrl: r.lottieUrl,
|
|
17
|
+
size: m,
|
|
18
|
+
onClick: () => l(r),
|
|
19
|
+
disabled: o
|
|
20
|
+
},
|
|
21
|
+
r.id
|
|
22
|
+
)) }) }), G = c(f);
|
|
23
|
+
export {
|
|
24
|
+
G as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=sticker-selector-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker-selector-grid.js","sources":["../../../../../../src/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.tsx"],"sourcesContent":["import type { IStickerSelectorGridProps } from './sticker-selector-grid-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport { STICKERS_DATA } from '../../../constants';\nimport Sticker from '../sticker/sticker';\nimport * as Styled from './sticker-selector-grid-styled';\n\nconst StickerSelectorGrid: FC<IStickerSelectorGridProps> = ({\n columns = 4,\n gap = 8,\n stickerSize = 72,\n onStickerClick,\n disabled = false,\n}) => {\n return (\n <Styled.StickerGridContainer $width=\"350px\" $height=\"400px\" $disabled={disabled}>\n <Styled.StickerGrid $columns={columns} $gap={gap}>\n {STICKERS_DATA.map(sticker => (\n <Sticker\n key={sticker.id}\n emoji={sticker.emoji}\n lottieUrl={sticker.lottieUrl}\n size={stickerSize}\n onClick={() => onStickerClick(sticker)}\n disabled={disabled}\n />\n ))}\n </Styled.StickerGrid>\n </Styled.StickerGridContainer>\n );\n};\n\nexport default memo(StickerSelectorGrid);\n"],"names":["StickerSelectorGrid","columns","gap","stickerSize","onStickerClick","disabled","jsx","Styled.StickerGridContainer","Styled.StickerGrid","STICKERS_DATA","sticker","Sticker","StickerSelectorGrid$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAqD,CAAC;AAAA,EAC1D,SAAAC,IAAU;AAAA,EACV,KAAAC,IAAM;AAAA,EACN,aAAAC,IAAc;AAAA,EACd,gBAAAC;AAAA,EACA,UAAAC,IAAW;AACb,MAEI,gBAAAC,EAACC,GAAA,EAA4B,QAAO,SAAQ,SAAQ,SAAQ,WAAWF,GACrE,4BAACG,GAAA,EAAmB,UAAUP,GAAS,MAAMC,GAC1C,UAAAO,EAAc,IAAI,CACjBC,MAAA,gBAAAJ;AAAA,EAACK;AAAA,EAAA;AAAA,IAEC,OAAOD,EAAQ;AAAA,IACf,WAAWA,EAAQ;AAAA,IACnB,MAAMP;AAAA,IACN,SAAS,MAAMC,EAAeM,CAAO;AAAA,IACrC,UAAAL;AAAA,EAAA;AAAA,EALKK,EAAQ;AAAA,CAOhB,GACH,EACF,CAAA,GAIWE,IAAAC,EAAKb,CAAmB;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
const i = o.div`
|
|
3
|
+
display: inline-block;
|
|
4
|
+
pointer-events: ${({ $disabled: e }) => e ? "none" : "auto"};
|
|
5
|
+
opacity: ${({ $disabled: e }) => e ? 0.5 : 1};
|
|
6
|
+
cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
|
|
7
|
+
|
|
8
|
+
${({ $disabled: e }) => e && "aria-disabled: true;"}
|
|
9
|
+
`;
|
|
10
|
+
export {
|
|
11
|
+
i as TriggerWrapper
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=sticker-selector-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker-selector-styled.js","sources":["../../../../src/features/stickers/sticker-selector/sticker-selector-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const TriggerWrapper = styled.div<{ $disabled: boolean }>`\n display: inline-block;\n pointer-events: ${({ $disabled }) => ($disabled ? 'none' : 'auto')};\n opacity: ${({ $disabled }) => ($disabled ? 0.5 : 1)};\n cursor: ${({ $disabled }) => ($disabled ? 'not-allowed' : 'pointer')};\n\n ${({ $disabled }) => $disabled && `aria-disabled: true;`}\n`;\n"],"names":["TriggerWrapper","styled","$disabled"],"mappings":";AAEO,MAAMA,IAAiBC,EAAO;AAAA;AAAA,oBAEjB,CAAC,EAAE,WAAAC,EAAA,MAAiBA,IAAY,SAAS,MAAO;AAAA,aACvD,CAAC,EAAE,WAAAA,EAAA,MAAiBA,IAAY,MAAM,CAAE;AAAA,YACzC,CAAC,EAAE,WAAAA,EAAA,MAAiBA,IAAY,gBAAgB,SAAU;AAAA;AAAA,IAElE,CAAC,EAAE,WAAAA,EAAU,MAAMA,KAAa,sBAAsB;AAAA;"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as E, useState as G, useCallback as M, useMemo as n } from "react";
|
|
3
|
+
import S from "../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
4
|
+
import $ from "./comps/stiker-selector-grid/sticker-selector-grid.js";
|
|
5
|
+
import { TriggerWrapper as q } from "./sticker-selector-styled.js";
|
|
6
|
+
const v = ({
|
|
7
|
+
triggerNode: e,
|
|
8
|
+
onStickerSend: t,
|
|
9
|
+
gridConfig: c,
|
|
10
|
+
tooltipConfig: d,
|
|
11
|
+
visible: p
|
|
12
|
+
}) => {
|
|
13
|
+
const { columns: i = 4, gap: s = 8, stickerSize: a = 48 } = c, {
|
|
14
|
+
isAnimated: u,
|
|
15
|
+
arrowColor: f,
|
|
16
|
+
arrowSize: b,
|
|
17
|
+
arrowXCoOrdinates: C,
|
|
18
|
+
arrowYCoOrdinates: w,
|
|
19
|
+
backgroundColor: h,
|
|
20
|
+
borderColor: T,
|
|
21
|
+
position: g = "bottom",
|
|
22
|
+
renderAs: k = "primary",
|
|
23
|
+
textVariant: O,
|
|
24
|
+
tooltipOffset: x,
|
|
25
|
+
tooltipXCoOrdinates: y,
|
|
26
|
+
tooltipYCoOrdinates: z,
|
|
27
|
+
width: A,
|
|
28
|
+
widthX: I,
|
|
29
|
+
zIndex: X,
|
|
30
|
+
parentWidth: D,
|
|
31
|
+
isBlocking: V = !1
|
|
32
|
+
} = d, [r, l] = G(!1), m = M(
|
|
33
|
+
(j) => {
|
|
34
|
+
if (r) return;
|
|
35
|
+
t == null || t(j), l(!0);
|
|
36
|
+
const B = setTimeout(() => {
|
|
37
|
+
l(!1);
|
|
38
|
+
}, 5e3);
|
|
39
|
+
return () => clearTimeout(B);
|
|
40
|
+
},
|
|
41
|
+
[t, r]
|
|
42
|
+
), W = n(
|
|
43
|
+
() => /* @__PURE__ */ o(
|
|
44
|
+
$,
|
|
45
|
+
{
|
|
46
|
+
columns: i,
|
|
47
|
+
gap: s,
|
|
48
|
+
stickerSize: a,
|
|
49
|
+
onStickerClick: m,
|
|
50
|
+
disabled: r
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
[i, s, a, m, r]
|
|
54
|
+
), Y = n(() => /* @__PURE__ */ o(q, { $disabled: r, children: e }), [r, e]);
|
|
55
|
+
return /* @__PURE__ */ o(
|
|
56
|
+
S,
|
|
57
|
+
{
|
|
58
|
+
children: Y,
|
|
59
|
+
alwaysVisible: !0,
|
|
60
|
+
hidden: !p,
|
|
61
|
+
tooltipItem: W,
|
|
62
|
+
renderAs: k,
|
|
63
|
+
position: g,
|
|
64
|
+
isBlocking: V,
|
|
65
|
+
isAnimated: u,
|
|
66
|
+
zIndex: X,
|
|
67
|
+
width: A,
|
|
68
|
+
widthX: I,
|
|
69
|
+
parentWidth: D,
|
|
70
|
+
backgroundColor: h,
|
|
71
|
+
borderColor: T,
|
|
72
|
+
textVariant: O,
|
|
73
|
+
tooltipOffset: x,
|
|
74
|
+
arrowColor: f,
|
|
75
|
+
arrowSize: b,
|
|
76
|
+
arrowXCoOrdinates: C,
|
|
77
|
+
arrowYCoOrdinates: w,
|
|
78
|
+
tooltipXCoOrdinates: y,
|
|
79
|
+
tooltipYCoOrdinates: z
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}, P = E(v);
|
|
83
|
+
export {
|
|
84
|
+
P as default
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=sticker-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker-selector.js","sources":["../../../../src/features/stickers/sticker-selector/sticker-selector.tsx"],"sourcesContent":["import type { IStickerData } from '../stickers-types';\nimport type { IStickerSelectorProps } from './sticker-selector-types';\nimport type { FC } from 'react';\n\nimport { memo, useMemo, useState, useCallback } from 'react';\n\nimport ArrowTooltip from '../../ui/arrow-tooltip/arrow-tooltip';\nimport StickerSelectorGrid from './comps/stiker-selector-grid/sticker-selector-grid';\nimport * as Styled from './sticker-selector-styled';\n\nconst StickerSelector: FC<IStickerSelectorProps> = ({\n triggerNode,\n onStickerSend,\n gridConfig,\n tooltipConfig,\n visible,\n}) => {\n const { columns = 4, gap = 8, stickerSize = 48 } = gridConfig;\n const {\n isAnimated,\n arrowColor,\n arrowSize,\n arrowXCoOrdinates,\n arrowYCoOrdinates,\n backgroundColor,\n borderColor,\n position = 'bottom',\n renderAs = 'primary',\n textVariant,\n tooltipOffset,\n tooltipXCoOrdinates,\n tooltipYCoOrdinates,\n width,\n widthX,\n zIndex,\n parentWidth,\n isBlocking = false,\n } = tooltipConfig;\n\n const [isTemporarilyDisabled, setIsTemporarilyDisabled] = useState(false);\n\n const handleStickerSend = useCallback(\n (sticker: IStickerData) => {\n if (isTemporarilyDisabled) return;\n\n onStickerSend?.(sticker);\n setIsTemporarilyDisabled(true);\n\n const timeout = setTimeout(() => {\n setIsTemporarilyDisabled(false);\n }, 5000);\n\n return () => clearTimeout(timeout);\n },\n [onStickerSend, isTemporarilyDisabled],\n );\n\n const tooltipItem = useMemo(\n () => (\n <StickerSelectorGrid\n columns={columns}\n gap={gap}\n stickerSize={stickerSize}\n onStickerClick={handleStickerSend}\n disabled={isTemporarilyDisabled}\n />\n ),\n [columns, gap, stickerSize, handleStickerSend, isTemporarilyDisabled],\n );\n\n const triggerEle = useMemo(() => {\n return (\n <Styled.TriggerWrapper $disabled={isTemporarilyDisabled}>{triggerNode}</Styled.TriggerWrapper>\n );\n }, [isTemporarilyDisabled, triggerNode]);\n\n return (\n <ArrowTooltip\n children={triggerEle}\n alwaysVisible\n hidden={!visible}\n tooltipItem={tooltipItem}\n renderAs={renderAs}\n position={position}\n isBlocking={isBlocking}\n isAnimated={isAnimated}\n zIndex={zIndex}\n width={width}\n widthX={widthX}\n parentWidth={parentWidth}\n backgroundColor={backgroundColor}\n borderColor={borderColor}\n textVariant={textVariant}\n tooltipOffset={tooltipOffset}\n arrowColor={arrowColor}\n arrowSize={arrowSize}\n arrowXCoOrdinates={arrowXCoOrdinates}\n arrowYCoOrdinates={arrowYCoOrdinates}\n tooltipXCoOrdinates={tooltipXCoOrdinates}\n tooltipYCoOrdinates={tooltipYCoOrdinates}\n />\n );\n};\n\nexport default memo(StickerSelector);\n"],"names":["StickerSelector","triggerNode","onStickerSend","gridConfig","tooltipConfig","visible","columns","gap","stickerSize","isAnimated","arrowColor","arrowSize","arrowXCoOrdinates","arrowYCoOrdinates","backgroundColor","borderColor","position","renderAs","textVariant","tooltipOffset","tooltipXCoOrdinates","tooltipYCoOrdinates","width","widthX","zIndex","parentWidth","isBlocking","isTemporarilyDisabled","setIsTemporarilyDisabled","useState","handleStickerSend","useCallback","sticker","timeout","tooltipItem","useMemo","jsx","StickerSelectorGrid","triggerEle","Styled.TriggerWrapper","ArrowTooltip","stickerSelector","memo"],"mappings":";;;;;AAUA,MAAMA,IAA6C,CAAC;AAAA,EAClD,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,SAAAC;AACF,MAAM;AACJ,QAAM,EAAE,SAAAC,IAAU,GAAG,KAAAC,IAAM,GAAG,aAAAC,IAAc,GAAO,IAAAL,GAC7C;AAAA,IACJ,YAAAM;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,EACX,IAAAtB,GAEE,CAACuB,GAAuBC,CAAwB,IAAIC,EAAS,EAAK,GAElEC,IAAoBC;AAAA,IACxB,CAACC,MAA0B;AACzB,UAAIL,EAAuB;AAE3B,MAAAzB,KAAA,QAAAA,EAAgB8B,IAChBJ,EAAyB,EAAI;AAEvB,YAAAK,IAAU,WAAW,MAAM;AAC/B,QAAAL,EAAyB,EAAK;AAAA,SAC7B,GAAI;AAEA,aAAA,MAAM,aAAaK,CAAO;AAAA,IACnC;AAAA,IACA,CAAC/B,GAAeyB,CAAqB;AAAA,EAAA,GAGjCO,IAAcC;AAAA,IAClB,MACE,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAA/B;AAAA,QACA,KAAAC;AAAA,QACA,aAAAC;AAAA,QACA,gBAAgBsB;AAAA,QAChB,UAAUH;AAAA,MAAA;AAAA,IACZ;AAAA,IAEF,CAACrB,GAASC,GAAKC,GAAasB,GAAmBH,CAAqB;AAAA,EAAA,GAGhEW,IAAaH,EAAQ,wBAEtBI,GAAA,EAAsB,WAAWZ,GAAwB,UAAY1B,EAAA,CAAA,GAEvE,CAAC0B,GAAuB1B,CAAW,CAAC;AAGrC,SAAA,gBAAAmC;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,UAAUF;AAAA,MACV,eAAa;AAAA,MACb,QAAQ,CAACjC;AAAA,MACT,aAAA6B;AAAA,MACA,UAAAjB;AAAA,MACA,UAAAD;AAAA,MACA,YAAAU;AAAA,MACA,YAAAjB;AAAA,MACA,QAAAe;AAAA,MACA,OAAAF;AAAA,MACA,QAAAC;AAAA,MACA,aAAAE;AAAA,MACA,iBAAAX;AAAA,MACA,aAAAC;AAAA,MACA,aAAAG;AAAA,MACA,eAAAC;AAAA,MACA,YAAAT;AAAA,MACA,WAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,qBAAAO;AAAA,MACA,qBAAAC;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeoB,IAAAC,EAAK1C,CAAe;"}
|