@cuemath/leap 3.2.15-link.3 → 3.2.15-mb
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/assets/illustrations/illustrations.js +0 -6
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +0 -10
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +25 -26
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +14 -20
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/resend-otp/resend-otp.js +47 -54
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +17 -29
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
- package/dist/features/auth/comps/tabs/tabs-styled.js +10 -22
- package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -1
- package/dist/features/auth/comps/tabs/tabs.js +5 -5
- package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +31 -30
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list.js +34 -35
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +15 -14
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +7 -6
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
- package/dist/features/auth/login/login-styled.js +9 -8
- package/dist/features/auth/login/login-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +98 -121
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +28 -29
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +42 -43
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/games/tutorial/tutorial.js +35 -43
- package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +24 -26
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/constants.js +1 -3
- package/dist/features/circle-games/sign-up/constants.js.map +1 -1
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
- package/dist/features/hooks/use-viewport/use-viewport.js +22 -0
- package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
- package/dist/features/journey/comps/coachmark/coachmark.js +17 -18
- package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
- package/dist/features/stickers/sticker-data.js +228 -0
- package/dist/features/stickers/sticker-data.js.map +1 -0
- package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +1 -1
- package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js +25 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
- package/dist/features/{ui/sticker-grid → stickers/sticker-selector}/sticker.js +9 -9
- package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
- package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
- package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
- package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
- package/dist/features/{ui/stickers/stickers-utils.js → stickers/stickers-effects/stickers-effects-utils.js} +6 -6
- package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js +39 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
- package/dist/features/trial-session/comps/student-profile/student-profile.js +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js +50 -7
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +69 -15
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/ui/error/error.js +27 -65
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/ui/image/image.js +1 -1
- package/dist/features/ui/image/image.js.map +1 -1
- package/dist/features/ui/inputs/base-input/base-input.js +11 -11
- package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
- package/dist/features/ui/inputs/text-input/text-input.js +18 -19
- package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +58 -69
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +14 -50
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
- package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
- package/dist/features/ui/streak-icon/streak-icon.js +15 -17
- package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
- package/dist/features/ui/text/text.js +38 -44
- package/dist/features/ui/text/text.js.map +1 -1
- package/dist/features/ui/theme/button.js +78 -78
- package/dist/features/ui/theme/button.js.map +1 -1
- package/dist/features/ui/theme/constants.js +2 -4
- package/dist/features/ui/theme/constants.js.map +1 -1
- package/dist/features/ui/theme/get-device.js +3 -3
- package/dist/features/ui/theme/get-device.js.map +1 -1
- package/dist/features/worksheet/worksheet/constants.js +13 -12
- package/dist/features/worksheet/worksheet/constants.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +260 -246
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +28 -37
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +164 -166
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/index.d.ts +49 -212
- package/dist/index.js +583 -615
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/assets/line-icons/icons/after-noon.js +0 -34
- package/dist/assets/line-icons/icons/after-noon.js.map +0 -1
- package/dist/assets/line-icons/icons/apple-icon-white.js +0 -42
- package/dist/assets/line-icons/icons/apple-icon-white.js.map +0 -1
- package/dist/assets/line-icons/icons/evening.js +0 -35
- package/dist/assets/line-icons/icons/evening.js.map +0 -1
- package/dist/assets/line-icons/icons/morning.js +0 -35
- package/dist/assets/line-icons/icons/morning.js.map +0 -1
- package/dist/assets/line-icons/icons/star3.js +0 -32
- package/dist/assets/line-icons/icons/star3.js.map +0 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +0 -9
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +0 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +0 -52
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +0 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +0 -93
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +0 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js +0 -10
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js.map +0 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +0 -17
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +0 -1
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +0 -12
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +0 -1
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +0 -34
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +0 -1
- package/dist/features/auth/comps/otp-input/otp-input-styled.js +0 -22
- package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +0 -1
- package/dist/features/auth/comps/otp-input/otp-input.js +0 -51
- package/dist/features/auth/comps/otp-input/otp-input.js.map +0 -1
- package/dist/features/auth/comps/pill-button/pill-button-styled.js +0 -44
- package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +0 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +0 -75
- package/dist/features/auth/comps/pill-button/pill-button.js.map +0 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +0 -17
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +0 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +0 -67
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +0 -1
- package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-constants.js +0 -19
- package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-constants.js.map +0 -1
- package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-styled.js +0 -32
- package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide-styled.js.map +0 -1
- package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide.js +0 -44
- package/dist/features/auth/signup-v2/onboarding-guide/onboarding-guide.js.map +0 -1
- package/dist/features/auth/signup-v2/signup-header/signup-header.js +0 -54
- package/dist/features/auth/signup-v2/signup-header/signup-header.js.map +0 -1
- package/dist/features/auth/signup-v2/signup-options/signup-options.js +0 -83
- package/dist/features/auth/signup-v2/signup-options/signup-options.js.map +0 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +0 -49
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +0 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +0 -64
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +0 -1
- package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js +0 -28
- package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js.map +0 -1
- package/dist/features/ui/accordion/accordion-items/accordion-items.js +0 -83
- package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +0 -1
- package/dist/features/ui/accordion/accordion.js +0 -62
- package/dist/features/ui/accordion/accordion.js.map +0 -1
- package/dist/features/ui/drawer/drawer-styled.js +0 -34
- package/dist/features/ui/drawer/drawer-styled.js.map +0 -1
- package/dist/features/ui/drawer/drawer.js +0 -42
- package/dist/features/ui/drawer/drawer.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.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.map +0 -1
- package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
- 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
- package/dist/static/animated-avatar.1ad58b1d.json +0 -1
- package/dist/static/animated-avatar.69b07505.json +0 -1
- package/dist/static/animated-avatar.9c560b46.json +0 -1
- package/dist/static/calendar-purple.1a840b41.svg +0 -1
- package/dist/static/flying-disk.c7f6ed39.json +0 -1
- package/dist/static/graduation-cap.3be3340a.json +0 -1
- package/dist/static/handshake.287e7dfb.svg +0 -1
- package/dist/static/light-bulb.c6db0b23.json +0 -1
- package/dist/static/money.332aacf1.svg +0 -1
- package/dist/static/muscle.9bcfb8a7.json +0 -1
- package/dist/static/parent-avatar.822c7b9b.svg +0 -1
- package/dist/static/pencil.23df9da0.json +0 -1
- package/dist/static/plus-sign.de6af957.json +0 -1
- package/dist/static/racing-car.2cbf864e.json +0 -1
- package/dist/static/rocket.0a3ccab0.json +0 -1
- package/dist/static/shovel.abeec04c.json +0 -1
- package/dist/static/stripe-blurple.6abf422f.svg +0 -1
- package/dist/static/trustpilot.bd3d79e1.svg +0 -1
@@ -0,0 +1,228 @@
|
|
1
|
+
const e = [
|
2
|
+
{
|
3
|
+
id: "cowboy",
|
4
|
+
emoji: "🤠",
|
5
|
+
name: "Cowboy"
|
6
|
+
// lottieUrl: '/lottie/cowboy.json',
|
7
|
+
},
|
8
|
+
{
|
9
|
+
id: "heart-eyes",
|
10
|
+
emoji: "😍",
|
11
|
+
name: "Heart Eyes"
|
12
|
+
// lottieUrl: '/lottie/heart-eyes.json',
|
13
|
+
},
|
14
|
+
{
|
15
|
+
id: "pleading",
|
16
|
+
emoji: "🥺",
|
17
|
+
name: "Pleading"
|
18
|
+
// lottieUrl: '/lottie/pleading.json',
|
19
|
+
},
|
20
|
+
{
|
21
|
+
id: "sunglasses",
|
22
|
+
emoji: "😎",
|
23
|
+
name: "Sunglasses"
|
24
|
+
// lottieUrl: '/lottie/sunglasses.json',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
id: "angry",
|
28
|
+
emoji: "😡",
|
29
|
+
name: "Angry"
|
30
|
+
// lottieUrl: '/lottie/angry.json',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
id: "thinking",
|
34
|
+
emoji: "🤔",
|
35
|
+
name: "Thinking"
|
36
|
+
// lottieUrl: '/lottie/thinking.json',
|
37
|
+
},
|
38
|
+
{
|
39
|
+
id: "party",
|
40
|
+
emoji: "🥳",
|
41
|
+
name: "Party"
|
42
|
+
// lottieUrl: '/lottie/party.json',
|
43
|
+
},
|
44
|
+
{
|
45
|
+
id: "celebration",
|
46
|
+
emoji: "🎉",
|
47
|
+
name: "Celebration"
|
48
|
+
// lottieUrl: '/lottie/celebration.json',
|
49
|
+
},
|
50
|
+
{
|
51
|
+
id: "balloon",
|
52
|
+
emoji: "🎈",
|
53
|
+
name: "Balloon"
|
54
|
+
// lottieUrl: '/lottie/balloon.json',
|
55
|
+
},
|
56
|
+
{
|
57
|
+
id: "cake",
|
58
|
+
emoji: "🎂",
|
59
|
+
name: "Cake"
|
60
|
+
// lottieUrl: '/lottie/cake.json',
|
61
|
+
},
|
62
|
+
{
|
63
|
+
id: "clapping",
|
64
|
+
emoji: "👏",
|
65
|
+
name: "Clapping"
|
66
|
+
// lottieUrl: '/lottie/clapping.json',
|
67
|
+
},
|
68
|
+
{
|
69
|
+
id: "thumbs-up",
|
70
|
+
emoji: "👍",
|
71
|
+
name: "Thumbs Up"
|
72
|
+
// lottieUrl: '/lottie/thumbs-up.json',
|
73
|
+
},
|
74
|
+
{
|
75
|
+
id: "peace",
|
76
|
+
emoji: "✌️",
|
77
|
+
name: "Peace"
|
78
|
+
// lottieUrl: '/lottie/peace.json',
|
79
|
+
},
|
80
|
+
{
|
81
|
+
id: "ok-hand",
|
82
|
+
emoji: "👌",
|
83
|
+
name: "OK Hand"
|
84
|
+
// lottieUrl: '/lottie/ok-hand.json',
|
85
|
+
},
|
86
|
+
{
|
87
|
+
id: "muscle",
|
88
|
+
emoji: "💪",
|
89
|
+
name: "Muscle"
|
90
|
+
// lottieUrl: '/lottie/muscle.json',
|
91
|
+
},
|
92
|
+
{
|
93
|
+
id: "rock-on",
|
94
|
+
emoji: "🤘",
|
95
|
+
name: "Rock On"
|
96
|
+
// lottieUrl: '/lottie/rock-on.json',
|
97
|
+
},
|
98
|
+
{
|
99
|
+
id: "heart",
|
100
|
+
emoji: "❤️",
|
101
|
+
name: "Heart"
|
102
|
+
// lottieUrl: '/lottie/heart.json',
|
103
|
+
},
|
104
|
+
{
|
105
|
+
id: "trophy",
|
106
|
+
emoji: "🏆",
|
107
|
+
name: "Trophy"
|
108
|
+
// lottieUrl: '/lottie/trophy.json',
|
109
|
+
},
|
110
|
+
{
|
111
|
+
id: "hundred",
|
112
|
+
emoji: "💯",
|
113
|
+
name: "Hundred"
|
114
|
+
// lottieUrl: '/lottie/hundred.json',
|
115
|
+
},
|
116
|
+
{
|
117
|
+
id: "gold-medal",
|
118
|
+
emoji: "🥇",
|
119
|
+
name: "Gold Medal"
|
120
|
+
// lottieUrl: '/lottie/gold-medal.json',
|
121
|
+
},
|
122
|
+
{
|
123
|
+
id: "silver-medal",
|
124
|
+
emoji: "🥈",
|
125
|
+
name: "Silver Medal"
|
126
|
+
// lottieUrl: '/lottie/silver-medal.json',
|
127
|
+
},
|
128
|
+
{
|
129
|
+
id: "bronze-medal",
|
130
|
+
emoji: "🥉",
|
131
|
+
name: "Bronze Medal"
|
132
|
+
// lottieUrl: '/lottie/bronze-medal.json',
|
133
|
+
},
|
134
|
+
{
|
135
|
+
id: "target",
|
136
|
+
emoji: "🎯",
|
137
|
+
name: "Target"
|
138
|
+
// lottieUrl: '/lottie/target.json',
|
139
|
+
},
|
140
|
+
{
|
141
|
+
id: "star",
|
142
|
+
emoji: "⭐",
|
143
|
+
name: "Star"
|
144
|
+
// lottieUrl: '/lottie/star.json',
|
145
|
+
},
|
146
|
+
{
|
147
|
+
id: "lightning",
|
148
|
+
emoji: "⚡",
|
149
|
+
name: "Lightning"
|
150
|
+
// lottieUrl: '/lottie/lightning.json',
|
151
|
+
},
|
152
|
+
{
|
153
|
+
id: "rocket",
|
154
|
+
emoji: "🚀",
|
155
|
+
name: "Rocket"
|
156
|
+
// lottieUrl: '/lottie/rocket.json',
|
157
|
+
},
|
158
|
+
{
|
159
|
+
id: "explosion",
|
160
|
+
emoji: "💥",
|
161
|
+
name: "Explosion"
|
162
|
+
// lottieUrl: '/lottie/explosion.json',
|
163
|
+
},
|
164
|
+
{
|
165
|
+
id: "graduation",
|
166
|
+
emoji: "🎓",
|
167
|
+
name: "Graduation"
|
168
|
+
// lottieUrl: '/lottie/graduation.json',
|
169
|
+
},
|
170
|
+
{
|
171
|
+
id: "clock",
|
172
|
+
emoji: "⏰",
|
173
|
+
name: "Clock"
|
174
|
+
// lottieUrl: '/lottie/clock.json',
|
175
|
+
},
|
176
|
+
{
|
177
|
+
id: "bulb",
|
178
|
+
emoji: "💡",
|
179
|
+
name: "Bulb"
|
180
|
+
// lottieUrl: '/lottie/bulb.json',
|
181
|
+
},
|
182
|
+
{
|
183
|
+
id: "rainbow",
|
184
|
+
emoji: "🌈",
|
185
|
+
name: "Rainbow"
|
186
|
+
// lottieUrl: '/lottie/rainbow.json',
|
187
|
+
},
|
188
|
+
{
|
189
|
+
id: "clown",
|
190
|
+
emoji: "🤡",
|
191
|
+
name: "Clown"
|
192
|
+
// lottieUrl: '/lottie/clown.json',
|
193
|
+
},
|
194
|
+
{
|
195
|
+
id: "dancer",
|
196
|
+
emoji: "💃",
|
197
|
+
name: "Dancer"
|
198
|
+
// lottieUrl: '/lottie/dancer.json',
|
199
|
+
},
|
200
|
+
{
|
201
|
+
id: "flowers",
|
202
|
+
emoji: "💐",
|
203
|
+
name: "Flowers"
|
204
|
+
// lottieUrl: '/lottie/flowers.json',
|
205
|
+
},
|
206
|
+
{
|
207
|
+
id: "unicorn",
|
208
|
+
emoji: "🦄",
|
209
|
+
name: "Unicorn"
|
210
|
+
// lottieUrl: '/lottie/unicorn.json',
|
211
|
+
},
|
212
|
+
{
|
213
|
+
id: "drum",
|
214
|
+
emoji: "🥁",
|
215
|
+
name: "Drum"
|
216
|
+
// lottieUrl: '/lottie/drum.json',
|
217
|
+
},
|
218
|
+
{
|
219
|
+
id: "diamond",
|
220
|
+
emoji: "💎",
|
221
|
+
name: "Diamond"
|
222
|
+
// lottieUrl: '/lottie/diamond.json',
|
223
|
+
}
|
224
|
+
];
|
225
|
+
export {
|
226
|
+
e as stickerData
|
227
|
+
};
|
228
|
+
//# sourceMappingURL=sticker-data.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sticker-data.js","sources":["../../../src/features/stickers/sticker-data.ts"],"sourcesContent":["import type { IStickerData } from './sticker-selector/sticker-selector-types';\n\nexport const stickerData: IStickerData[] = [\n {\n id: 'cowboy',\n emoji: '🤠',\n name: 'Cowboy',\n // lottieUrl: '/lottie/cowboy.json',\n },\n {\n id: 'heart-eyes',\n emoji: '😍',\n name: 'Heart Eyes',\n // lottieUrl: '/lottie/heart-eyes.json',\n },\n {\n id: 'pleading',\n emoji: '🥺',\n name: 'Pleading',\n // lottieUrl: '/lottie/pleading.json',\n },\n {\n id: 'sunglasses',\n emoji: '😎',\n name: 'Sunglasses',\n // lottieUrl: '/lottie/sunglasses.json',\n },\n {\n id: 'angry',\n emoji: '😡',\n name: 'Angry',\n // lottieUrl: '/lottie/angry.json',\n },\n {\n id: 'thinking',\n emoji: '🤔',\n name: 'Thinking',\n // lottieUrl: '/lottie/thinking.json',\n },\n {\n id: 'party',\n emoji: '🥳',\n name: 'Party',\n // lottieUrl: '/lottie/party.json',\n },\n {\n id: 'celebration',\n emoji: '🎉',\n name: 'Celebration',\n // lottieUrl: '/lottie/celebration.json',\n },\n {\n id: 'balloon',\n emoji: '🎈',\n name: 'Balloon',\n // lottieUrl: '/lottie/balloon.json',\n },\n {\n id: 'cake',\n emoji: '🎂',\n name: 'Cake',\n // lottieUrl: '/lottie/cake.json',\n },\n {\n id: 'clapping',\n emoji: '👏',\n name: 'Clapping',\n // lottieUrl: '/lottie/clapping.json',\n },\n {\n id: 'thumbs-up',\n emoji: '👍',\n name: 'Thumbs Up',\n // lottieUrl: '/lottie/thumbs-up.json',\n },\n {\n id: 'peace',\n emoji: '✌️',\n name: 'Peace',\n // lottieUrl: '/lottie/peace.json',\n },\n {\n id: 'ok-hand',\n emoji: '👌',\n name: 'OK Hand',\n // lottieUrl: '/lottie/ok-hand.json',\n },\n {\n id: 'muscle',\n emoji: '💪',\n name: 'Muscle',\n // lottieUrl: '/lottie/muscle.json',\n },\n {\n id: 'rock-on',\n emoji: '🤘',\n name: 'Rock On',\n // lottieUrl: '/lottie/rock-on.json',\n },\n {\n id: 'heart',\n emoji: '❤️',\n name: 'Heart',\n // lottieUrl: '/lottie/heart.json',\n },\n {\n id: 'trophy',\n emoji: '🏆',\n name: 'Trophy',\n // lottieUrl: '/lottie/trophy.json',\n },\n {\n id: 'hundred',\n emoji: '💯',\n name: 'Hundred',\n // lottieUrl: '/lottie/hundred.json',\n },\n {\n id: 'gold-medal',\n emoji: '🥇',\n name: 'Gold Medal',\n // lottieUrl: '/lottie/gold-medal.json',\n },\n {\n id: 'silver-medal',\n emoji: '🥈',\n name: 'Silver Medal',\n // lottieUrl: '/lottie/silver-medal.json',\n },\n {\n id: 'bronze-medal',\n emoji: '🥉',\n name: 'Bronze Medal',\n // lottieUrl: '/lottie/bronze-medal.json',\n },\n {\n id: 'target',\n emoji: '🎯',\n name: 'Target',\n // lottieUrl: '/lottie/target.json',\n },\n {\n id: 'star',\n emoji: '⭐',\n name: 'Star',\n // lottieUrl: '/lottie/star.json',\n },\n {\n id: 'lightning',\n emoji: '⚡',\n name: 'Lightning',\n // lottieUrl: '/lottie/lightning.json',\n },\n {\n id: 'rocket',\n emoji: '🚀',\n name: 'Rocket',\n // lottieUrl: '/lottie/rocket.json',\n },\n {\n id: 'explosion',\n emoji: '💥',\n name: 'Explosion',\n // lottieUrl: '/lottie/explosion.json',\n },\n {\n id: 'graduation',\n emoji: '🎓',\n name: 'Graduation',\n // lottieUrl: '/lottie/graduation.json',\n },\n {\n id: 'clock',\n emoji: '⏰',\n name: 'Clock',\n // lottieUrl: '/lottie/clock.json',\n },\n {\n id: 'bulb',\n emoji: '💡',\n name: 'Bulb',\n // lottieUrl: '/lottie/bulb.json',\n },\n {\n id: 'rainbow',\n emoji: '🌈',\n name: 'Rainbow',\n // lottieUrl: '/lottie/rainbow.json',\n },\n {\n id: 'clown',\n emoji: '🤡',\n name: 'Clown',\n // lottieUrl: '/lottie/clown.json',\n },\n {\n id: 'dancer',\n emoji: '💃',\n name: 'Dancer',\n // lottieUrl: '/lottie/dancer.json',\n },\n {\n id: 'flowers',\n emoji: '💐',\n name: 'Flowers',\n // lottieUrl: '/lottie/flowers.json',\n },\n {\n id: 'unicorn',\n emoji: '🦄',\n name: 'Unicorn',\n // lottieUrl: '/lottie/unicorn.json',\n },\n {\n id: 'drum',\n emoji: '🥁',\n name: 'Drum',\n // lottieUrl: '/lottie/drum.json',\n },\n {\n id: 'diamond',\n emoji: '💎',\n name: 'Diamond',\n // lottieUrl: '/lottie/diamond.json',\n },\n];\n"],"names":["stickerData"],"mappings":"AAEO,MAAMA,IAA8B;AAAA,EACzC;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,EAER;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,EAER;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,EAER;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,EAER;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,EAER;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,EAER;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AA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"sticker-selector-styles.js","sources":["../../../../src/features/stickers/sticker-selector/sticker-selector-styles.ts"],"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\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 }>`\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: flex;\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<{ $size: number | string }>`\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 opacity: 0;\n transition: opacity 0.2s ease;\n transform: translate(-50%, -50%);\n pointer-events: none;\n\n ${StickerContainer}:hover & {\n opacity: 1;\n }\n`;\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\n &::-webkit-scrollbar {\n width: 8px;\n }\n\n &::-webkit-scrollbar-track {\n background: rgba(255, 255, 255, 0.1);\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(255, 255, 255, 0.3);\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: rgba(255, 255, 255, 0.5);\n }\n`;\n\nexport const StickerGridContainer = styled.div<{\n $width: string;\n $height: string;\n}>`\n width: 100%;\n max-width: ${({ $width }) => $width};\n max-height: ${({ $height }) => $height};\n`;\n"],"names":["StickerContainer","styled","$size","$disabled","StaticEmoji","LottieContainer","StickerGrid","$columns","$gap","StickerGridContainer","$width","$height"],"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;AAAA;AAAA,iBAGpC,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUUG,IAAkBJ,EAAO;AAAA;AAAA;AAAA;AAAA,WAI3B,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;AAAA;AAAA,IAM/EF,CAAgB;AAAA;AAAA;AAAA,GAKPM,IAAcL,EAAO;AAAA;AAAA,kCAKA,CAAC,EAAE,UAAAM,EAAS,MAAMA,CAAQ;AAAA,SACnD,CAAC,EAAE,MAAAC,EAAK,MAAMA,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GA0BdC,IAAuBR,EAAO;AAAA;AAAA,eAK5B,CAAC,EAAE,QAAAS,EAAO,MAAMA,CAAM;AAAA,gBACrB,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
2
|
+
import { memo as a } from "react";
|
3
|
+
import { stickerData as d } from "../sticker-data.js";
|
4
|
+
import l from "./sticker.js";
|
5
|
+
import { StickerGridContainer as f, StickerGrid as h } from "./sticker-selector-styles.js";
|
6
|
+
const n = ({
|
7
|
+
stickers: e = d,
|
8
|
+
columns: m = 4,
|
9
|
+
gap: i = 8,
|
10
|
+
stickerSize: p = 48,
|
11
|
+
onStickerClick: o
|
12
|
+
}) => /* @__PURE__ */ t(f, { $width: "350px", $height: "400px", children: /* @__PURE__ */ t(h, { $columns: m, $gap: i, children: e.map((r) => /* @__PURE__ */ t(
|
13
|
+
l,
|
14
|
+
{
|
15
|
+
emoji: r.emoji,
|
16
|
+
lottieUrl: r.lottieUrl,
|
17
|
+
size: p,
|
18
|
+
onClick: () => o == null ? void 0 : o(r)
|
19
|
+
},
|
20
|
+
r.id
|
21
|
+
)) }) }), u = a(n);
|
22
|
+
export {
|
23
|
+
u as default
|
24
|
+
};
|
25
|
+
//# 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 { IStickerGridProps } from './sticker-selector-types';\n\nimport React, { memo } from 'react';\n\nimport { stickerData } from '../sticker-data';\nimport Sticker from './sticker';\nimport * as S from './sticker-selector-styles';\n\nconst StickerSelector: React.FC<IStickerGridProps> = ({\n stickers = stickerData,\n columns = 4,\n gap = 8,\n stickerSize = 48,\n onStickerClick,\n}) => {\n return (\n <S.StickerGridContainer $width=\"350px\" $height=\"400px\">\n <S.StickerGrid $columns={columns} $gap={gap}>\n {stickers.map(sticker => (\n <Sticker\n key={sticker.id}\n emoji={sticker.emoji}\n lottieUrl={sticker.lottieUrl}\n size={stickerSize}\n onClick={() => onStickerClick?.(sticker)}\n />\n ))}\n </S.StickerGrid>\n </S.StickerGridContainer>\n );\n};\n\nexport default memo(StickerSelector);\n"],"names":["StickerSelector","stickers","stickerData","columns","gap","stickerSize","onStickerClick","S.StickerGridContainer","jsx","S.StickerGrid","sticker","Sticker","stickerSelector","memo"],"mappings":";;;;;AAQA,MAAMA,IAA+C,CAAC;AAAA,EACpD,UAAAC,IAAWC;AAAA,EACX,SAAAC,IAAU;AAAA,EACV,KAAAC,IAAM;AAAA,EACN,aAAAC,IAAc;AAAA,EACd,gBAAAC;AACF,wBAEKC,GAAA,EAAuB,QAAO,SAAQ,SAAQ,SAC7C,UAAA,gBAAAC,EAACC,GAAA,EAAc,UAAUN,GAAS,MAAMC,GACrC,UAAAH,EAAS,IAAI,CACZS,MAAA,gBAAAF;AAAA,EAACG;AAAA,EAAA;AAAA,IAEC,OAAOD,EAAQ;AAAA,IACf,WAAWA,EAAQ;AAAA,IACnB,MAAML;AAAA,IACN,SAAS,MAAMC,KAAA,gBAAAA,EAAiBI;AAAA,EAAO;AAAA,EAJlCA,EAAQ;AAAA,CAMhB,GACH,EACF,CAAA,GAIWE,IAAAC,EAAKb,CAAe;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
2
|
-
import { memo as S, useState as v, useRef as
|
3
|
-
import
|
4
|
-
import { StickerContainer as
|
2
|
+
import { memo as S, useState as v, useRef as M, useEffect as $, useCallback as i, useMemo as g } from "react";
|
3
|
+
import k from "../../ui/lottie-animation/lottie-animation.js";
|
4
|
+
import { StickerContainer as E, StaticEmoji as L, LottieContainer as j } from "./sticker-selector-styles.js";
|
5
5
|
const x = ({
|
6
6
|
emoji: a,
|
7
7
|
lottieUrl: c,
|
@@ -9,8 +9,8 @@ const x = ({
|
|
9
9
|
onClick: o,
|
10
10
|
disabled: e = !1
|
11
11
|
}) => {
|
12
|
-
const [r, u] = v(!1), n =
|
13
|
-
|
12
|
+
const [r, u] = v(!1), n = M(null);
|
13
|
+
$(() => {
|
14
14
|
n.current && n.current.playSegments([0, 1], !0);
|
15
15
|
}, []);
|
16
16
|
const f = i(() => {
|
@@ -19,7 +19,7 @@ const x = ({
|
|
19
19
|
e || u(!1);
|
20
20
|
}, [e]), l = i(() => {
|
21
21
|
!e && o && o();
|
22
|
-
}, [e, o]), h =
|
22
|
+
}, [e, o]), h = g(
|
23
23
|
() => ({
|
24
24
|
loop: !0,
|
25
25
|
renderer: "canvas",
|
@@ -28,7 +28,7 @@ const x = ({
|
|
28
28
|
[r]
|
29
29
|
);
|
30
30
|
return /* @__PURE__ */ p(
|
31
|
-
|
31
|
+
E,
|
32
32
|
{
|
33
33
|
$size: t,
|
34
34
|
$disabled: e,
|
@@ -36,9 +36,9 @@ const x = ({
|
|
36
36
|
onMouseLeave: m,
|
37
37
|
onClick: l,
|
38
38
|
children: [
|
39
|
-
!r && /* @__PURE__ */ s(
|
39
|
+
!r && /* @__PURE__ */ s(L, { $size: t, children: a }),
|
40
40
|
c && /* @__PURE__ */ s(j, { $size: t, children: /* @__PURE__ */ s(
|
41
|
-
|
41
|
+
k,
|
42
42
|
{
|
43
43
|
ref: n,
|
44
44
|
src: c,
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sticker.js","sources":["../../../../src/features/stickers/sticker-selector/sticker.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../ui/lottie-animation/types';\nimport type { IStickerProps } from './sticker-selector-types';\n\nimport React, { useCallback, useMemo, useRef, useState, memo, useEffect } from 'react';\n\nimport LottieAnimation from '../../ui/lottie-animation/lottie-animation';\nimport * as S from './sticker-selector-styles';\n\nconst Sticker: React.FC<IStickerProps> = ({\n emoji,\n lottieUrl,\n size = 48,\n onClick,\n disabled = false,\n}) => {\n const [isHovered, setIsHovered] = useState(false);\n const lottieRef = useRef<ILottieAnimationRef>(null);\n\n useEffect(() => {\n if (lottieRef.current) {\n lottieRef.current.playSegments([0, 1], true);\n }\n }, []);\n\n const handleMouseEnter = useCallback(() => {\n if (!disabled) setIsHovered(true);\n }, [disabled]);\n\n const handleMouseLeave = useCallback(() => {\n if (!disabled) setIsHovered(false);\n }, [disabled]);\n\n const handleClick = useCallback(() => {\n if (!disabled && onClick) onClick();\n }, [disabled, onClick]);\n\n const lottieSettings = useMemo(\n () => ({\n loop: true,\n renderer: 'canvas',\n autoplay: isHovered,\n }),\n [isHovered],\n );\n\n return (\n <S.StickerContainer\n $size={size}\n $disabled={disabled}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onClick={handleClick}\n >\n {!isHovered && <S.StaticEmoji $size={size}>{emoji}</S.StaticEmoji>}\n\n {lottieUrl && (\n <S.LottieContainer $size={size}>\n <LottieAnimation\n ref={lottieRef}\n src={lottieUrl}\n width=\"100%\"\n height=\"100%\"\n settings={lottieSettings}\n />\n </S.LottieContainer>\n )}\n </S.StickerContainer>\n );\n};\n\nexport default memo(Sticker);\n"],"names":["Sticker","emoji","lottieUrl","size","onClick","disabled","isHovered","setIsHovered","useState","lottieRef","useRef","useEffect","handleMouseEnter","useCallback","handleMouseLeave","handleClick","lottieSettings","useMemo","jsxs","S.StickerContainer","jsx","S.StaticEmoji","S.LottieContainer","LottieAnimation","Sticker$1","memo"],"mappings":";;;;AAQA,MAAMA,IAAmC,CAAC;AAAA,EACxC,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,SAAAC;AAAA,EACA,UAAAC,IAAW;AACb,MAAM;AACJ,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1CC,IAAYC,EAA4B,IAAI;AAElD,EAAAC,EAAU,MAAM;AACd,IAAIF,EAAU,WACZA,EAAU,QAAQ,aAAa,CAAC,GAAG,CAAC,GAAG,EAAI;AAAA,EAE/C,GAAG,CAAE,CAAA;AAEC,QAAAG,IAAmBC,EAAY,MAAM;AACrC,IAACR,KAAUE,EAAa,EAAI;AAAA,EAAA,GAC/B,CAACF,CAAQ,CAAC,GAEPS,IAAmBD,EAAY,MAAM;AACrC,IAACR,KAAUE,EAAa,EAAK;AAAA,EAAA,GAChC,CAACF,CAAQ,CAAC,GAEPU,IAAcF,EAAY,MAAM;AAChC,IAAA,CAACR,KAAYD,KAAiBA;EAAA,GACjC,CAACC,GAAUD,CAAO,CAAC,GAEhBY,IAAiBC;AAAA,IACrB,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,MACV,UAAUX;AAAA,IAAA;AAAA,IAEZ,CAACA,CAAS;AAAA,EAAA;AAIV,SAAA,gBAAAY;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAOhB;AAAA,MACP,WAAWE;AAAA,MACX,cAAcO;AAAA,MACd,cAAcE;AAAA,MACd,SAASC;AAAA,MAER,UAAA;AAAA,QAAA,CAACT,KAAc,gBAAAc,EAAAC,GAAA,EAAc,OAAOlB,GAAO,UAAMF,GAAA;AAAA,QAEjDC,KACE,gBAAAkB,EAAAE,GAAA,EAAkB,OAAOnB,GACxB,UAAA,gBAAAiB;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,KAAKd;AAAA,YACL,KAAKP;AAAA,YACL,OAAM;AAAA,YACN,QAAO;AAAA,YACP,UAAUc;AAAA,UAAA;AAAA,QAAA,GAEd;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,GAEeQ,IAAAC,EAAKzB,CAAO;"}
|
package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { keyframes as r, css as t } from "styled-components";
|
2
|
-
import { randomizeDuration as o } from "./stickers-utils.js";
|
2
|
+
import { randomizeDuration as o } from "./stickers-effects-utils.js";
|
3
3
|
const s = r`
|
4
4
|
0% {
|
5
5
|
transform: translateY(0vh);
|
@@ -45,20 +45,20 @@ const s = r`
|
|
45
45
|
opacity: 0;
|
46
46
|
}
|
47
47
|
`, i = {
|
48
|
-
|
48
|
+
"float-up": (a) => t`
|
49
49
|
animation: ${s} ${o(a)}ms ease-out forwards;
|
50
50
|
`,
|
51
|
-
|
51
|
+
"fall-down": (a) => t`
|
52
52
|
animation: ${n} ${o(a)}ms ease-out forwards;
|
53
53
|
`,
|
54
|
-
|
54
|
+
"burst-from-edges": (a) => t`
|
55
55
|
animation: ${e} ${o(a)}ms linear forwards;
|
56
56
|
`,
|
57
|
-
|
57
|
+
"pop-expand": (a) => t`
|
58
58
|
animation: ${m} ${a}ms cubic-bezier(0.5, 0.1, 0.7, 1) forwards;
|
59
59
|
`
|
60
60
|
};
|
61
61
|
export {
|
62
62
|
i as effectAnimations
|
63
63
|
};
|
64
|
-
//# sourceMappingURL=
|
64
|
+
//# sourceMappingURL=effects.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"effects.js","sources":["../../../../src/features/stickers/stickers-effects/effects.ts"],"sourcesContent":["import type { IStickersProps } from './stickers-effects-types';\n\nimport { keyframes, css } from 'styled-components';\n\nimport { randomizeDuration } from './stickers-effects-utils';\n\nconst floatUp = keyframes`\n 0% {\n transform: translateY(0vh);\n opacity: 1;\n }\n 100% {\n transform: translateY(-100vh);\n opacity: 0;\n }\n`;\n\nconst fallDown = keyframes`\n 0% {\n transform: translateY(0vh);\n opacity: 1;\n }\n 100% {\n transform: translateY(100vh);\n opacity: 0;\n }\n`;\n\nconst burstFromEdges = keyframes`\n 0% {\n transform: translateX(var(--from-x)) translateY(var(--from-y)) scale(1);\n opacity: 1;\n }\n 100% {\n transform: translateX(0vw) translateY(0vh) scale(1.25);\n opacity: 0;\n }\n`;\n\nconst popExpand = keyframes`\n 0% {\n transform: translateX(0) translateY(0vh);\n opacity: 1;\n }\n 35% {\n transform: translateX(0) translateY(-50vh) scale(1.25);\n opacity: 1;\n }\n 60% {\n transform: translateX(var(--from-x)) translateY(var(--from-y)) scale(1.25);\n opacity: 0.75;\n }\n 100% {\n transform: translateX(var(--from-x)) translateY(-110vh) scale(1.25);\n opacity: 0;\n }\n`;\n\nexport const effectAnimations: Record<\n IStickersProps['effect'],\n (duration: number) => ReturnType<typeof css>\n> = {\n 'float-up': (duration: number) => css`\n animation: ${floatUp} ${randomizeDuration(duration)}ms ease-out forwards;\n `,\n 'fall-down': (duration: number) => css`\n animation: ${fallDown} ${randomizeDuration(duration)}ms ease-out forwards;\n `,\n 'burst-from-edges': (duration: number) => css`\n animation: ${burstFromEdges} ${randomizeDuration(duration)}ms linear forwards;\n `,\n 'pop-expand': (duration: number) => css`\n animation: ${popExpand} ${duration}ms cubic-bezier(0.5, 0.1, 0.7, 1) forwards;\n `,\n};\n"],"names":["floatUp","keyframes","fallDown","burstFromEdges","popExpand","effectAnimations","duration","css","randomizeDuration"],"mappings":";;AAMA,MAAMA,IAAUC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWVC,IAAWD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWXE,IAAiBF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWjBG,IAAYH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAmBLI,IAGT;AAAA,EACF,YAAY,CAACC,MAAqBC;AAAA,iBACnBP,CAAO,IAAIQ,EAAkBF,CAAQ,CAAC;AAAA;AAAA,EAErD,aAAa,CAACA,MAAqBC;AAAA,iBACpBL,CAAQ,IAAIM,EAAkBF,CAAQ,CAAC;AAAA;AAAA,EAEtD,oBAAoB,CAACA,MAAqBC;AAAA,iBAC3BJ,CAAc,IAAIK,EAAkBF,CAAQ,CAAC;AAAA;AAAA,EAE5D,cAAc,CAACA,MAAqBC;AAAA,iBACrBH,CAAS,IAAIE,CAAQ;AAAA;AAEtC;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import $, { css as s } from "styled-components";
|
2
|
-
import { effectAnimations as n } from "./
|
2
|
+
import { effectAnimations as n } from "./effects.js";
|
3
3
|
const h = $.div`
|
4
4
|
position: relative;
|
5
5
|
width: 100vw;
|
@@ -26,4 +26,4 @@ export {
|
|
26
26
|
h as Container,
|
27
27
|
a as Sticker
|
28
28
|
};
|
29
|
-
//# sourceMappingURL=stickers-styled.js.map
|
29
|
+
//# sourceMappingURL=stickers-effects-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stickers-effects-styled.js","sources":["../../../../src/features/stickers/stickers-effects/stickers-effects-styled.ts"],"sourcesContent":["import type { IStickersProps } from './stickers-effects-types';\n\nimport styled, { css } from 'styled-components';\n\nimport { effectAnimations } from './effects';\n\nexport const Container = styled.div`\n position: relative;\n width: 100vw;\n height: 100vh;\n background: transparent;\n pointer-events: none;\n`;\n\nexport const Sticker = styled.div<{\n effect: IStickersProps['effect'];\n duration: number;\n fromX?: string;\n fromY?: string;\n x: number;\n y: number;\n size: number;\n}>`\n position: absolute;\n z-index: 10;\n\n left: ${({ x }) => `${x}%`};\n top: ${({ y }) => `${y}%`};\n width: ${({ size }) => `${size}px`};\n height: ${({ size }) => `${size}px`};\n font-size: ${({ size }) => `${size}px`};\n\n ${({ effect, duration, fromX, fromY }) =>\n fromX && fromY\n ? css`\n ${effectAnimations[effect](duration)}\n --from-x: ${fromX};\n --from-y: ${fromY};\n `\n : effectAnimations[effect](duration)}\n`;\n"],"names":["Container","styled","Sticker","x","y","size","effect","duration","fromX","fromY","css","effectAnimations"],"mappings":";;AAMO,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQnBC,IAAUD,EAAO;AAAA;AAAA;AAAA;AAAA,UAYpB,CAAC,EAAE,GAAAE,EAAQ,MAAA,GAAGA,CAAC,GAAG;AAAA,SACnB,CAAC,EAAE,GAAAC,EAAQ,MAAA,GAAGA,CAAC,GAAG;AAAA,WAChB,CAAC,EAAE,MAAAC,EAAW,MAAA,GAAGA,CAAI,IAAI;AAAA,YACxB,CAAC,EAAE,MAAAA,EAAW,MAAA,GAAGA,CAAI,IAAI;AAAA,eACtB,CAAC,EAAE,MAAAA,EAAW,MAAA,GAAGA,CAAI,IAAI;AAAA;AAAA,IAEpC,CAAC,EAAE,QAAAC,GAAQ,UAAAC,GAAU,OAAAC,GAAO,OAAAC,QAC5BD,KAASC,IACLC;AAAA,YACIC,EAAiBL,CAAM,EAAEC,CAAQ,CAAC;AAAA,sBACxBC,CAAK;AAAA,sBACLC,CAAK;AAAA,YAEnBE,EAAiBL,CAAM,EAAEC,CAAQ,CAAC;AAAA;"}
|
@@ -40,10 +40,10 @@ function x({
|
|
40
40
|
minSize: r,
|
41
41
|
maxSize: d
|
42
42
|
}) {
|
43
|
-
const c = 100 / n * 2, M = () => Math.random() * (d - r) + r, h = [], i = ["
|
43
|
+
const c = 100 / n * 2, M = () => Math.random() * (d - r) + r, h = [], i = ["float-up", "fall-down"].includes(s) ? g(n, c) : [];
|
44
44
|
for (let o = 0; o < n; o++) {
|
45
45
|
const a = t[o % t.length] ?? "", e = M();
|
46
|
-
if (s === "
|
46
|
+
if (s === "float-up")
|
47
47
|
h.push({
|
48
48
|
id: o,
|
49
49
|
sticker: a,
|
@@ -51,7 +51,7 @@ function x({
|
|
51
51
|
y: 110 + (Math.random() - 0.5) * e,
|
52
52
|
size: e
|
53
53
|
});
|
54
|
-
else if (s === "
|
54
|
+
else if (s === "fall-down")
|
55
55
|
h.push({
|
56
56
|
id: o,
|
57
57
|
sticker: a,
|
@@ -59,10 +59,10 @@ function x({
|
|
59
59
|
y: -10 + (Math.random() - 0.5) * e,
|
60
60
|
size: e
|
61
61
|
});
|
62
|
-
else if (s === "
|
62
|
+
else if (s === "burst-from-edges") {
|
63
63
|
const { x: l, y: m, fromX: p, fromY: u } = f(o, n);
|
64
64
|
h.push({ id: o, sticker: a, x: l, y: m, fromX: p, fromY: u, size: e });
|
65
|
-
} else s === "
|
65
|
+
} else s === "pop-expand" ? h.push({
|
66
66
|
id: o,
|
67
67
|
sticker: a,
|
68
68
|
x: 50,
|
@@ -88,4 +88,4 @@ export {
|
|
88
88
|
x as generateStickerData,
|
89
89
|
v as randomizeDuration
|
90
90
|
};
|
91
|
-
//# sourceMappingURL=stickers-utils.js.map
|
91
|
+
//# sourceMappingURL=stickers-effects-utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stickers-effects-utils.js","sources":["../../../../src/features/stickers/stickers-effects/stickers-effects-utils.ts"],"sourcesContent":["import type { TStickerData, IStickersProps } from './stickers-effects-types';\n\nconst getBurstPosition = (\n index: number,\n total: number,\n): {\n fromX: string;\n fromY: string;\n x: number;\n y: number;\n} => {\n const countPerSide = Math.ceil(total / 4);\n const sideIndex = Math.floor(index / countPerSide);\n const pos = index % countPerSide;\n\n const sides = ['top', 'right', 'bottom', 'left'] as const;\n const side = sides[sideIndex] ?? 'left';\n\n const basePercent = ((pos + 0.5) / countPerSide) * 100;\n const jitter = (Math.random() - 0.5) * 25;\n const edgePercent = Math.min(Math.max(basePercent + jitter, 0), 100);\n\n const centerX = 45 + Math.random() * 10;\n const centerY = 45 + Math.random() * 10;\n\n let fromX = 0;\n let fromY = 0;\n\n switch (side) {\n case 'top':\n fromX = edgePercent - centerX;\n fromY = -centerY + jitter;\n break;\n case 'right':\n fromX = 100 - centerX + jitter;\n fromY = edgePercent - centerY;\n break;\n case 'bottom':\n fromX = edgePercent - centerX;\n fromY = 100 - centerY + jitter;\n break;\n case 'left':\n fromX = -centerX + jitter;\n fromY = edgePercent - centerY;\n break;\n }\n\n return {\n fromX: `${fromX}vw`,\n fromY: `${fromY}vh`,\n x: centerX,\n y: centerY,\n };\n};\n\nconst getRandomNonOverlappingPositions = (count: number, buffer = 10): number[] => {\n const used: number[] = [];\n let attempts = 0;\n const maxAttempts = count;\n\n while (used.length < count && attempts < maxAttempts) {\n const value = Math.floor(Math.random() * (100 - 2 * buffer) + buffer);\n\n if (used.every(v => Math.abs(v - value) >= buffer)) {\n used.push(value);\n }\n attempts++;\n }\n\n while (used.length < count) {\n used.push(Math.floor(Math.random() * (100 - 2 * buffer) + buffer));\n }\n\n return used;\n};\n\nexport function generateStickerData({\n count,\n effect,\n stickers,\n minSize,\n maxSize,\n}: {\n count: number;\n effect: IStickersProps['effect'];\n stickers: string[];\n minSize: number;\n maxSize: number;\n}): TStickerData[] {\n const buffer = (100 / count) * 2;\n const getSize = () => Math.random() * (maxSize - minSize) + minSize;\n const result: TStickerData[] = [];\n const xPositions = ['float-up', 'fall-down'].includes(effect)\n ? getRandomNonOverlappingPositions(count, buffer)\n : [];\n\n for (let i = 0; i < count; i++) {\n const sticker = stickers[i % stickers.length] ?? '';\n const size = getSize();\n\n if (effect === 'float-up') {\n result.push({\n id: i,\n sticker,\n x: xPositions[i]!,\n y: 110 + (Math.random() - 0.5) * size,\n size,\n });\n } else if (effect === 'fall-down') {\n result.push({\n id: i,\n sticker,\n x: xPositions[i]!,\n y: -10 + (Math.random() - 0.5) * size,\n size,\n });\n } else if (effect === 'burst-from-edges') {\n const { x, y, fromX, fromY } = getBurstPosition(i, count);\n\n result.push({ id: i, sticker, x, y, fromX, fromY, size });\n } else if (effect === 'pop-expand') {\n result.push({\n id: i,\n sticker,\n x: 50,\n y: 100,\n fromX: `${(Math.random() - 0.5) * 27.5}vw`,\n fromY: `${-50 - Math.random() * 27.5}vh`,\n size,\n });\n } else {\n result.push({\n id: i,\n sticker,\n x: Math.random() * 100,\n y: Math.random() * 100,\n size,\n });\n }\n }\n\n return result;\n}\n\nexport const randomizeDuration = (base: number, variancePercent = 0.2): number => {\n const delta = base * variancePercent;\n const min = base - delta;\n const max = base + delta;\n\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\n"],"names":["getBurstPosition","index","total","countPerSide","sideIndex","pos","side","basePercent","jitter","edgePercent","centerX","centerY","fromX","fromY","getRandomNonOverlappingPositions","count","buffer","used","attempts","maxAttempts","value","v","generateStickerData","effect","stickers","minSize","maxSize","getSize","result","xPositions","i","sticker","size","x","y","randomizeDuration","base","variancePercent","delta","min","max"],"mappings":"AAEA,MAAMA,IAAmB,CACvBC,GACAC,MAMG;AACH,QAAMC,IAAe,KAAK,KAAKD,IAAQ,CAAC,GAClCE,IAAY,KAAK,MAAMH,IAAQE,CAAY,GAC3CE,IAAMJ,IAAQE,GAGdG,IADQ,CAAC,OAAO,SAAS,UAAU,MAAM,EAC5BF,CAAS,KAAK,QAE3BG,KAAgBF,IAAM,OAAOF,IAAgB,KAC7CK,KAAU,KAAK,OAAO,IAAI,OAAO,IACjCC,IAAc,KAAK,IAAI,KAAK,IAAIF,IAAcC,GAAQ,CAAC,GAAG,GAAG,GAE7DE,IAAU,KAAK,KAAK,OAAA,IAAW,IAC/BC,IAAU,KAAK,KAAK,OAAA,IAAW;AAErC,MAAIC,IAAQ,GACRC,IAAQ;AAEZ,UAAQP,GAAM;AAAA,IACZ,KAAK;AACH,MAAAM,IAAQH,IAAcC,GACtBG,IAAQ,CAACF,IAAUH;AACnB;AAAA,IACF,KAAK;AACH,MAAAI,IAAQ,MAAMF,IAAUF,GACxBK,IA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MAAM,KAAK,OAAA,KAAYE,IAAMD,IAAM,EAAE,IAAIA;AACvD;"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
2
|
+
import { memo as l, useState as x, useEffect as D } from "react";
|
3
|
+
import { Container as z, Sticker as E } from "./stickers-effects-styled.js";
|
4
|
+
import { generateStickerData as d } from "./stickers-effects-utils.js";
|
5
|
+
const h = ({ stickers: i, effect: t, count: o, duration: e }) => {
|
6
|
+
const [a, m] = x([]);
|
7
|
+
return D(() => {
|
8
|
+
const r = d({
|
9
|
+
count: o,
|
10
|
+
effect: t,
|
11
|
+
stickers: i,
|
12
|
+
minSize: 32,
|
13
|
+
maxSize: 48
|
14
|
+
});
|
15
|
+
m(r);
|
16
|
+
const s = setTimeout(() => m([]), e);
|
17
|
+
return () => clearTimeout(s);
|
18
|
+
}, [i, t, o, e]), /* @__PURE__ */ c(z, { children: a.map((r) => {
|
19
|
+
const { id: s, sticker: n, x: f, y: k, size: S, fromX: p, fromY: u } = r;
|
20
|
+
return /* @__PURE__ */ c(
|
21
|
+
E,
|
22
|
+
{
|
23
|
+
effect: t,
|
24
|
+
duration: e,
|
25
|
+
fromX: p,
|
26
|
+
fromY: u,
|
27
|
+
x: f,
|
28
|
+
y: k,
|
29
|
+
size: S,
|
30
|
+
children: n
|
31
|
+
},
|
32
|
+
s
|
33
|
+
);
|
34
|
+
}) });
|
35
|
+
}, C = l(h);
|
36
|
+
export {
|
37
|
+
C as default
|
38
|
+
};
|
39
|
+
//# sourceMappingURL=stickers-effects.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stickers-effects.js","sources":["../../../../src/features/stickers/stickers-effects/stickers-effects.tsx"],"sourcesContent":["import type { TStickerData, IStickersProps } from './stickers-effects-types';\n\nimport React, { memo, useEffect, useState } from 'react';\n\nimport * as S from './stickers-effects-styled';\nimport { generateStickerData } from './stickers-effects-utils';\n\nconst StickersEffects: React.FC<IStickersProps> = ({ stickers, effect, count, duration }) => {\n const [stickersData, setStickersData] = useState<ReturnType<typeof generateStickerData>>([]);\n\n useEffect(() => {\n const stickerData = generateStickerData({\n count,\n effect,\n stickers,\n minSize: 32,\n maxSize: 48,\n });\n\n setStickersData(stickerData);\n\n const timeout = setTimeout(() => setStickersData([]), duration);\n\n return () => clearTimeout(timeout);\n }, [stickers, effect, count, duration]);\n\n return (\n <S.Container>\n {stickersData.map((data: TStickerData) => {\n const { id, sticker, x, y, size, fromX, fromY } = data;\n\n return (\n <S.Sticker\n key={id}\n effect={effect}\n duration={duration}\n fromX={fromX}\n fromY={fromY}\n x={x}\n y={y}\n size={size}\n >\n {sticker}\n </S.Sticker>\n );\n })}\n </S.Container>\n );\n};\n\nexport default memo(StickersEffects);\n"],"names":["StickersEffects","stickers","effect","count","duration","stickersData","setStickersData","useState","useEffect","stickerData","generateStickerData","timeout","S.Container","data","id","sticker","x","y","size","fromX","fromY","jsx","S.Sticker","stickersEffects","memo"],"mappings":";;;;AAOA,MAAMA,IAA4C,CAAC,EAAE,UAAAC,GAAU,QAAAC,GAAQ,OAAAC,GAAO,UAAAC,QAAe;AAC3F,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAiD,CAAE,CAAA;AAE3F,SAAAC,EAAU,MAAM;AACd,UAAMC,IAAcC,EAAoB;AAAA,MACtC,OAAAP;AAAA,MACA,QAAAD;AAAA,MACA,UAAAD;AAAA,MACA,SAAS;AAAA,MACT,SAAS;AAAA,IAAA,CACV;AAED,IAAAK,EAAgBG,CAAW;AAE3B,UAAME,IAAU,WAAW,MAAML,EAAgB,CAAE,CAAA,GAAGF,CAAQ;AAEvD,WAAA,MAAM,aAAaO,CAAO;AAAA,KAChC,CAACV,GAAUC,GAAQC,GAAOC,CAAQ,CAAC,qBAGnCQ,GAAA,EACE,UAAaP,EAAA,IAAI,CAACQ,MAAuB;AAClC,UAAA,EAAE,IAAAC,GAAI,SAAAC,GAAS,GAAAC,GAAG,GAAAC,GAAG,MAAAC,GAAM,OAAAC,GAAO,OAAAC,EAAU,IAAAP;AAGhD,WAAA,gBAAAQ;AAAA,MAACC;AAAAA,MAAA;AAAA,QAEC,QAAApB;AAAA,QACA,UAAAE;AAAA,QACA,OAAAe;AAAA,QACA,OAAAC;AAAA,QACA,GAAAJ;AAAA,QACA,GAAAC;AAAA,QACA,MAAAC;AAAA,QAEC,UAAAH;AAAA,MAAA;AAAA,MATID;AAAA,IAAA;AAAA,EAYV,CAAA,EACH,CAAA;AAEJ,GAEeS,IAAAC,EAAKxB,CAAe;"}
|
@@ -11,7 +11,7 @@ import { useGetStudentProfileSummary as X } from "../../api/student-profile-summ
|
|
11
11
|
import { useTrialSessionContext as M } from "../../context/use-trial-session-context.js";
|
12
12
|
import O from "../slide-header/index.js";
|
13
13
|
import { Container as k, ContentWrapper as B, AbsoluteImage as H, ImageWrapper as R } from "./student-profile-styled.js";
|
14
|
-
import {
|
14
|
+
import { getMilestoneGoalName as P, getDummyProfileImage as W } from "./student-profile-utils.js";
|
15
15
|
const re = b(() => {
|
16
16
|
const { isTeacher: t, studentId: l, formData: $, updateSlideConfig: d, updateButtonState: f } = M(), { name: y, goals: r, studentProfile: o } = $ || {}, { dummyProfileImageIndex: I, profileSummary: x } = o || {}, C = W(I), m = A(() => r && r.length > 0 ? {
|
17
17
|
school_success_goal: P(r, g.SCHOOL_SUCCESS),
|
@@ -1,13 +1,56 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
|
1
|
+
import o from "styled-components";
|
2
|
+
import e from "../../../ui/image/image.js";
|
3
|
+
import t from "../../../ui/layout/flex-view.js";
|
4
|
+
const l = o.div`
|
4
5
|
width: 100%;
|
5
6
|
height: 100%;
|
6
|
-
`,
|
7
|
+
`, c = o(t)`
|
7
8
|
margin: auto;
|
8
|
-
|
9
|
+
`, h = o(e)`
|
10
|
+
object-fit: cover;
|
11
|
+
`, s = o.div(
|
12
|
+
({ theme: r }) => `
|
13
|
+
flex: 1;
|
14
|
+
display: grid;
|
15
|
+
border-left: 1px solid ${r.colors.BLACK_T_87};
|
16
|
+
grid-template-columns: repeat(2, 1fr);
|
17
|
+
grid-template-rows: auto auto auto;
|
18
|
+
`
|
19
|
+
), p = o(t)(
|
20
|
+
({ theme: r }) => `
|
21
|
+
border: 0.5px solid ${r.colors.WHITE_5};
|
22
|
+
&:first-child,
|
23
|
+
&:nth-child(2) {
|
24
|
+
grid-column: span 1;
|
25
|
+
}
|
26
|
+
&:nth-child(3),
|
27
|
+
&:nth-child(4) {
|
28
|
+
grid-column: span 2;
|
29
|
+
}
|
30
|
+
&:first-child {
|
31
|
+
border-left: none;
|
32
|
+
border-top: none;
|
33
|
+
}
|
34
|
+
&:nth-child(2) {
|
35
|
+
border-right: none;
|
36
|
+
border-top: none;
|
37
|
+
}
|
38
|
+
&:nth-child(3) {
|
39
|
+
border-left: none;
|
40
|
+
border-right: none;
|
41
|
+
}
|
42
|
+
&:nth-child(4) {
|
43
|
+
border-left: none;
|
44
|
+
border-right: none;
|
45
|
+
border-bottom: none;
|
46
|
+
}
|
47
|
+
`
|
48
|
+
);
|
9
49
|
export {
|
10
|
-
|
11
|
-
|
50
|
+
l as Container,
|
51
|
+
c as ContentWrapper,
|
52
|
+
s as GridContainer,
|
53
|
+
p as GridItem,
|
54
|
+
h as ProfilePicture
|
12
55
|
};
|
13
56
|
//# sourceMappingURL=teacher-intro-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"teacher-intro-styled.js","sources":["../../../../../src/features/trial-session/comps/teacher-intro/teacher-intro-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst ContentWrapper = styled(FlexView)`\n margin: auto;\n`;\n\nexport { Container, ContentWrapper };\n"],"names":["Container","styled","ContentWrapper","FlexView"],"mappings":"
|
1
|
+
{"version":3,"file":"teacher-intro-styled.js","sources":["../../../../../src/features/trial-session/comps/teacher-intro/teacher-intro-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\n\nconst Container = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nconst ContentWrapper = styled(FlexView)`\n margin: auto;\n`;\n\nconst ProfilePicture = styled(Image)`\n object-fit: cover;\n`;\n\nconst GridContainer = styled.div(\n ({ theme }) => `\n flex: 1;\n display: grid;\n border-left: 1px solid ${theme.colors.BLACK_T_87};\n grid-template-columns: repeat(2, 1fr);\n grid-template-rows: auto auto auto;\n`,\n);\n\nconst GridItem = styled(FlexView)(\n ({ theme }) => `\n border: 0.5px solid ${theme.colors.WHITE_5};\n &:first-child,\n &:nth-child(2) {\n grid-column: span 1;\n }\n &:nth-child(3),\n &:nth-child(4) {\n grid-column: span 2;\n }\n &:first-child {\n border-left: none;\n border-top: none;\n }\n &:nth-child(2) {\n border-right: none;\n border-top: none;\n }\n &:nth-child(3) {\n border-left: none;\n border-right: none;\n }\n &:nth-child(4) {\n border-left: none;\n border-right: none;\n border-bottom: none;\n }\n`,\n);\n\nexport { Container, ContentWrapper, ProfilePicture, GridContainer, GridItem };\n"],"names":["Container","styled","ContentWrapper","FlexView","ProfilePicture","Image","GridContainer","theme","GridItem"],"mappings":";;;AAKA,MAAMA,IAAYC,EAAO;AAAA;AAAA;AAAA,GAKnBC,IAAiBD,EAAOE,CAAQ;AAAA;AAAA,GAIhCC,IAAiBH,EAAOI,CAAK;AAAA;AAAA,GAI7BC,IAAgBL,EAAO;AAAA,EAC3B,CAAC,EAAE,OAAAM,EAAA,MAAY;AAAA;AAAA;AAAA,2BAGUA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAIlD,GAEMC,IAAWP,EAAOE,CAAQ;AAAA,EAC9B,CAAC,EAAE,OAAAI,EAAA,MAAY;AAAA,wBACOA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2B5C;"}
|