@cuemath/leap 3.5.30-link.4 → 3.5.31-as1
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 +43 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/images/images.js +0 -12
- package/dist/assets/images/images.js.map +1 -1
- package/dist/assets/line-icons/icons/carat-right.js +26 -0
- package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
- package/dist/assets/line-icons/icons/dots-icon.js +21 -0
- package/dist/assets/line-icons/icons/dots-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/pause-icon.js +24 -0
- package/dist/assets/line-icons/icons/pause-icon.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js +82 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.styled.js +77 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.styled.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +18 -91
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +42 -58
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +16 -32
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +85 -87
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +35 -35
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/homework/card-title.js +8 -8
- package/dist/features/homework/card-title.js.map +1 -1
- package/dist/features/milestone/constants.js +15 -28
- package/dist/features/milestone/constants.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-helpers.js +42 -43
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +5 -5
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -1
- package/dist/features/timeline/comps/constants.js +18 -18
- package/dist/features/timeline/comps/constants.js.map +1 -1
- package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js +14 -14
- package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js.map +1 -1
- package/dist/features/timeline/daily-timeline-styled.js +13 -9
- package/dist/features/timeline/daily-timeline-styled.js.map +1 -1
- package/dist/features/timeline/daily-timeline-types.js +4 -4
- package/dist/features/timeline/daily-timeline-types.js.map +1 -1
- package/dist/features/timeline/daily-timeline-view.js +9 -10
- package/dist/features/timeline/daily-timeline-view.js.map +1 -1
- package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js +13 -0
- package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.js +59 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js +15 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/constant.js +16 -0
- package/dist/features/timeline/monthly-report/comps/achievements/constant.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js +128 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js +53 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +121 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js +58 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities.js +27 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/constants.js +96 -0
- package/dist/features/timeline/monthly-report/comps/activities/constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/utils.js +15 -0
- package/dist/features/timeline/monthly-report/comps/activities/utils.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js +29 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js +107 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.js +44 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js +39 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js +52 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js +9 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback.js +94 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +48 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js +28 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js +113 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js +30 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals.js +22 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report-styled.js +14 -0
- package/dist/features/timeline/monthly-report/monthly-report-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report-types.js +5 -0
- package/dist/features/timeline/monthly-report/monthly-report-types.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report.js +69 -0
- package/dist/features/timeline/monthly-report/monthly-report.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +10 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +87 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/constants.js +40 -0
- package/dist/features/timeline/monthly-timeline/constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +13 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js +6 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js +28 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js +62 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -0
- package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js +9 -0
- package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need.js +35 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js +53 -0
- package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js +19 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js +50 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card.js +22 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support.js +84 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js +11 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies.js +36 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js +55 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js +35 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js +21 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info.js +21 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card.js +30 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js +9 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js +56 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +15 -0
- package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-constants.js +16 -0
- package/dist/features/timeline/ptm-report/ptm-report-constants.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-helpers.js +8 -0
- package/dist/features/timeline/ptm-report/ptm-report-helpers.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-styled.js +11 -0
- package/dist/features/timeline/ptm-report/ptm-report-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-types.js +5 -0
- package/dist/features/timeline/ptm-report/ptm-report-types.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report.js +113 -0
- package/dist/features/timeline/ptm-report/ptm-report.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js +5 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js +42 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js +37 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js.map +1 -0
- package/dist/features/trial-session/comps/school-goals/school-goals.js +71 -82
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/worksheet/worksheet.js +33 -42
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/helper.js +66 -69
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-slide-config-update.js +17 -22
- package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +128 -139
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/left-panel/index.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +9 -16
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +66 -68
- package/dist/features/trial-session/trial-session.js.map +1 -1
- package/dist/features/ui/animated-arc/animated-arc-styled.js +7 -7
- package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -1
- package/dist/features/ui/animated-arc/animated-arc.js +37 -26
- package/dist/features/ui/animated-arc/animated-arc.js.map +1 -1
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.js +39 -0
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.js.map +1 -0
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.styled.js +23 -0
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.styled.js.map +1 -0
- package/dist/features/ui/swipeable-carousel/constants.js +16 -0
- package/dist/features/ui/swipeable-carousel/constants.js.map +1 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel-styled.js +57 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel-styled.js.map +1 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel.js +150 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel.js.map +1 -0
- package/dist/features/ui/swipeable-component/swipeable-component-styled.js.map +1 -0
- package/dist/features/ui/swipeable-component/swipeable-component.js +27 -0
- package/dist/features/ui/swipeable-component/swipeable-component.js.map +1 -0
- package/dist/features/ui/theme/text.js +14 -0
- package/dist/features/ui/theme/text.js.map +1 -1
- package/dist/index.d.ts +246 -41
- package/dist/index.js +588 -568
- package/dist/index.js.map +1 -1
- package/dist/static/2021.2a1a2ec9.svg +1 -0
- package/dist/static/2022.2091553a.svg +1 -0
- package/dist/static/2023.ed718b4e.svg +1 -0
- package/dist/static/2024.aa60edc5.svg +1 -0
- package/dist/static/2025.014a8ad3.svg +1 -0
- package/dist/static/2026.95d70f27.svg +1 -0
- package/dist/static/2027.fe83a41c.svg +1 -0
- package/dist/static/2028.b1c253ef.svg +1 -0
- package/dist/static/apr.cd56f13d.svg +1 -0
- package/dist/static/aug.3ceade02.svg +1 -0
- package/dist/static/coding-report-icon.91a1e900.svg +1 -0
- package/dist/static/dec.90729a5e.svg +1 -0
- package/dist/static/elp-icon.d45b457d.svg +1 -0
- package/dist/static/empty-reports.fe92faad.svg +1 -0
- package/dist/static/english-icon.50c2e005.svg +1 -0
- package/dist/static/feb.a9ecd320.svg +1 -0
- package/dist/static/focus-blue.664be268.svg +1 -0
- package/dist/static/full-report.00112c74.svg +1 -0
- package/dist/static/jan.f8fb9c39.svg +1 -0
- package/dist/static/jul.04a98cf0.svg +1 -0
- package/dist/static/jun.9b6ab6bf.svg +1 -0
- package/dist/static/key.fa0b4c98.svg +1 -0
- package/dist/static/live-session-blue.ec7fa85f.svg +1 -0
- package/dist/static/mar.f8b372ef.svg +1 -0
- package/dist/static/math-fit-grey.c32f37b3.svg +1 -0
- package/dist/static/may.23adae48.svg +1 -0
- package/dist/static/no-report.4158fad3.svg +1 -0
- package/dist/static/nov.c44e4739.svg +1 -0
- package/dist/static/oct.856b3b3f.svg +1 -0
- package/dist/static/opened-book-green.faacda34.svg +1 -0
- package/dist/static/percentage-pattern-yellow.6a25e820.svg +1 -0
- package/dist/static/pi-orange.132b108d.svg +1 -0
- package/dist/static/ptm-report-icon.5089218f.svg +1 -0
- package/dist/static/puzzle-purple.60ff4884.svg +1 -0
- package/dist/static/question-mark-yellow.1925aa04.svg +1 -0
- package/dist/static/renewal-blue.1ab3b2d4.svg +1 -0
- package/dist/static/sat-report-icon.4331be86.svg +1 -0
- package/dist/static/science-report-icon.a0014c40.svg +1 -0
- package/dist/static/sep.2d547b31.svg +1 -0
- package/dist/static/thumbs-up-green.6a03b9d2.svg +1 -0
- package/dist/static/thumps-down.a1192a62.svg +1 -0
- package/dist/static/thumps-up.caa35a98.svg +1 -0
- package/dist/static/time-purple.ab1a458d.svg +1 -0
- package/package.json +3 -2
- 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/circle-games/game-launcher/comps/swipable-component/swipeable-component-styled.js.map +0 -1
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js +0 -26
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js.map +0 -1
- package/dist/static/apr.09a50ff7.png +0 -0
- package/dist/static/aug.7179d37e.png +0 -0
- package/dist/static/dec.09f7e315.png +0 -0
- package/dist/static/feb.9e72504d.png +0 -0
- package/dist/static/jan.da91944a.png +0 -0
- package/dist/static/jul.5a1c4932.png +0 -0
- package/dist/static/jun.62639c2f.png +0 -0
- package/dist/static/mar.f51bcfa6.png +0 -0
- package/dist/static/may.7c542020.png +0 -0
- package/dist/static/nov.058343e7.png +0 -0
- package/dist/static/oct.573ee19d.png +0 -0
- package/dist/static/sep.3ccb6468.png +0 -0
- /package/dist/features/{circle-games/game-launcher/comps/swipable-component → ui/swipeable-component}/swipeable-component-styled.js +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r, { keyframes as a, css as p } from "styled-components";
|
|
2
2
|
import o from "../../../ui/layout/flex-view.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import s from "../../../ui/text/text.js";
|
|
4
|
+
import { ChapterImageWrapper as i, ChapterProgressWrapper as n } from "./chapter-circular-progress/chapter-circular-progress.styled.js";
|
|
5
|
+
const l = a`
|
|
5
6
|
0% {
|
|
6
7
|
transform: translate(100%, -100%) skewX(45deg);
|
|
7
8
|
opacity: 0;
|
|
@@ -11,118 +12,44 @@ const g = l`
|
|
|
11
12
|
transform: translate(-150%, 100%) skewX(45deg);
|
|
12
13
|
opacity: 1;
|
|
13
14
|
}
|
|
14
|
-
`,
|
|
15
|
-
transition: scale 0.3s ease-in-out;
|
|
16
|
-
`, b = e(o)`
|
|
17
|
-
position: absolute;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
border-radius: 50%;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
|
|
23
|
-
&::after {
|
|
24
|
-
content: '';
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
z-index: 1;
|
|
29
|
-
width: 40%;
|
|
30
|
-
height: 150%;
|
|
31
|
-
background: linear-gradient(
|
|
32
|
-
to right,
|
|
33
|
-
rgba(255, 255, 255, 0.7) 0%,
|
|
34
|
-
rgba(255, 255, 255, 0.1) 35%,
|
|
35
|
-
rgba(255, 255, 255, 0.7) 40%,
|
|
36
|
-
rgba(255, 255, 255, 0.7) 80%,
|
|
37
|
-
rgba(255, 255, 255, 0) 100%
|
|
38
|
-
);
|
|
39
|
-
opacity: 0;
|
|
40
|
-
transform: translate(100%, -100%) skew(45deg);
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
}
|
|
43
|
-
`, w = e.svg(({ theme: t }) => `
|
|
44
|
-
position: absolute;
|
|
45
|
-
z-index: ${t.zIndex.CHAPTER_PROGRESS_SVG};
|
|
46
|
-
inset: 50%;
|
|
47
|
-
transform: translate(-50%, -50%) rotate(-90deg);
|
|
48
|
-
`), $ = e.circle(
|
|
49
|
-
({ theme: t, $progressCircle: r, $progress: s }) => {
|
|
50
|
-
const { GREY_2: i, BLACK: p } = t.colors, { gutter: a } = t.layout, n = a * 18.625, c = r ? n - s : s;
|
|
51
|
-
return `
|
|
52
|
-
stroke-dasharray: ${n};
|
|
53
|
-
stroke-dashoffset: ${c};
|
|
54
|
-
stroke: ${r ? p : i};
|
|
55
|
-
|
|
56
|
-
stroke-width: ${a * 0.125}px;
|
|
57
|
-
fill: none;
|
|
58
|
-
`;
|
|
59
|
-
}
|
|
60
|
-
), y = e.img(({ theme: t }) => {
|
|
61
|
-
const { gutter: r } = t.layout;
|
|
62
|
-
return `
|
|
63
|
-
display: block;
|
|
64
|
-
width: ${r * 6}px;
|
|
65
|
-
height: ${r * 6}px;
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
`;
|
|
68
|
-
}), C = e.div(({ theme: t }) => {
|
|
69
|
-
const { layout: r } = t;
|
|
70
|
-
return `
|
|
71
|
-
position: absolute;
|
|
72
|
-
top: 5px;
|
|
73
|
-
right: 5px;
|
|
74
|
-
z-index: 2;
|
|
75
|
-
|
|
76
|
-
width: ${r.gutter * 1.25}px;
|
|
77
|
-
height: ${r.gutter * 1.25}px;
|
|
78
|
-
border-radius: 50%;
|
|
79
|
-
background: ${t.colors.WHITE_1};
|
|
80
|
-
outline: 1px solid ${t.colors.BLACK_1};
|
|
81
|
-
`;
|
|
82
|
-
}), v = e(h)`
|
|
15
|
+
`, h = r(s)`
|
|
83
16
|
display: -webkit-box;
|
|
84
17
|
-webkit-box-orient: vertical;
|
|
85
18
|
-webkit-line-clamp: 2;
|
|
86
19
|
text-overflow: ellipsis;
|
|
87
20
|
overflow: hidden;
|
|
88
21
|
height: 44px;
|
|
89
|
-
`,
|
|
22
|
+
`, m = r(o)`
|
|
90
23
|
position: absolute;
|
|
91
24
|
left: 0;
|
|
92
25
|
top: 0;
|
|
93
|
-
`,
|
|
94
|
-
cursor: ${({ shouldHideClick:
|
|
26
|
+
`, w = r(o)`
|
|
27
|
+
cursor: ${({ shouldHideClick: e }) => e ? "not-allowed" : "pointer"};
|
|
95
28
|
position: relative;
|
|
96
|
-
box-shadow: inset 0px 0px 0px 0.5px ${({ theme:
|
|
29
|
+
box-shadow: inset 0px 0px 0px 0.5px ${({ theme: e }) => e.colors.BLACK_T_15};
|
|
97
30
|
aspect-ratio: 1;
|
|
98
31
|
|
|
99
32
|
&:hover {
|
|
100
|
-
background: ${({ theme:
|
|
33
|
+
background: ${({ theme: e, $bgColor: t }) => t ? e.colors[t] : "none"};
|
|
101
34
|
|
|
102
|
-
${
|
|
35
|
+
${i} {
|
|
103
36
|
scale: 1.05;
|
|
104
37
|
}
|
|
105
38
|
|
|
106
|
-
${
|
|
107
|
-
${
|
|
108
|
-
animation: ${
|
|
39
|
+
${n}::after {
|
|
40
|
+
${p`
|
|
41
|
+
animation: ${l} 1.2s ease-out forwards;
|
|
109
42
|
`}
|
|
110
43
|
}
|
|
111
44
|
|
|
112
|
-
${
|
|
45
|
+
${m} {
|
|
113
46
|
background-color: transparent;
|
|
114
47
|
}
|
|
115
48
|
}
|
|
116
49
|
`;
|
|
117
50
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
I as ChapterItemWrapper,
|
|
122
|
-
v as ChapterName,
|
|
123
|
-
w as ChapterProgressSVG,
|
|
124
|
-
$ as ChapterProgressSVGCircle,
|
|
125
|
-
b as ChapterProgressWrapper,
|
|
126
|
-
C as StyledCheckIconWrapper
|
|
51
|
+
m as ChapterItemNumberWrapper,
|
|
52
|
+
w as ChapterItemWrapper,
|
|
53
|
+
h as ChapterName
|
|
127
54
|
};
|
|
128
55
|
//# sourceMappingURL=chapter-item-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chapter-item-styled.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item-styled.tsx"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport type { TColorNames } from '../../../ui/types';\n\nconst shimmerEffect = keyframes`\n 0% {\n transform: translate(100%, -100%) skewX(45deg);\n opacity: 0;\n }\n\n 100% {\n transform: translate(-150%, 100%) skewX(45deg);\n opacity: 1;\n }\n`;\n\nconst
|
|
1
|
+
{"version":3,"file":"chapter-item-styled.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item-styled.tsx"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport type { TColorNames } from '../../../ui/types';\nimport {\n ChapterProgressWrapper,\n ChapterImageWrapper,\n} from './chapter-circular-progress/chapter-circular-progress.styled';\n\nconst shimmerEffect = keyframes`\n 0% {\n transform: translate(100%, -100%) skewX(45deg);\n opacity: 0;\n }\n\n 100% {\n transform: translate(-150%, 100%) skewX(45deg);\n opacity: 1;\n }\n`;\n\nconst ChapterName = styled(Text)`\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n height: 44px;\n`;\n\ninterface IChapterItemWrapperProps {\n $bgColor?: TColorNames;\n shouldHideClick?: boolean;\n}\n\nconst ChapterItemNumberWrapper = styled(FlexView)`\n position: absolute;\n left: 0;\n top: 0;\n`;\n\nconst ChapterItemWrapper = styled(FlexView)<IChapterItemWrapperProps>`\n cursor: ${({ shouldHideClick }) => (shouldHideClick ? 'not-allowed' : 'pointer')};\n position: relative;\n box-shadow: inset 0px 0px 0px 0.5px ${({ theme }) => theme.colors.BLACK_T_15};\n aspect-ratio: 1;\n\n &:hover {\n background: ${({ theme, $bgColor }) => ($bgColor ? theme.colors[$bgColor] : 'none')};\n\n ${ChapterImageWrapper} {\n scale: 1.05;\n }\n\n ${ChapterProgressWrapper}::after {\n ${css`\n animation: ${shimmerEffect} 1.2s ease-out forwards;\n `}\n }\n\n ${ChapterItemNumberWrapper} {\n background-color: transparent;\n }\n }\n`;\n\nexport { ChapterItemWrapper, ChapterName, ChapterItemNumberWrapper };\n"],"names":["shimmerEffect","keyframes","ChapterName","styled","Text","ChapterItemNumberWrapper","FlexView","ChapterItemWrapper","shouldHideClick","theme","$bgColor","ChapterImageWrapper","ChapterProgressWrapper","css"],"mappings":";;;;AAUA,MAAMA,IAAgBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYhBC,IAAcC,EAAOC,CAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAczBC,IAA2BF,EAAOG,CAAQ;AAAA;AAAA;AAAA;AAAA,GAM1CC,IAAqBJ,EAAOG,CAAQ;AAAA,YAC9B,CAAC,EAAE,iBAAAE,EAAA,MAAuBA,IAAkB,gBAAgB,SAAU;AAAA;AAAA,wCAE1C,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,kBAI5D,CAAC,EAAE,OAAAA,GAAO,UAAAC,QAAgBA,IAAWD,EAAM,OAAOC,CAAQ,IAAI,MAAO;AAAA;AAAA,MAEjFC,CAAmB;AAAA;AAAA;AAAA;AAAA,MAInBC,CAAsB;AAAA,QACpBC;AAAA,qBACab,CAAa;AAAA,OAC3B;AAAA;AAAA;AAAA,MAGDK,CAAwB;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import m from "../../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
1
|
+
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { memo as x, useState as W, useRef as w, useCallback as y, useLayoutEffect as A } from "react";
|
|
3
|
+
import p from "../../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
5
4
|
import H from "../../../ui/layout/flex-view.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
5
|
+
import k from "../../../ui/text/text.js";
|
|
6
|
+
import X from "./chapter-circular-progress/chapter-circular-progress.js";
|
|
7
|
+
import { ChapterItemWrapper as j, ChapterName as S, ChapterItemNumberWrapper as E } from "./chapter-item-styled.js";
|
|
8
|
+
const F = x(function({
|
|
9
9
|
milestoneId: o,
|
|
10
10
|
chapter: i,
|
|
11
|
-
onChapterClick:
|
|
12
|
-
itemIndex:
|
|
13
|
-
shouldShowItemIndex:
|
|
11
|
+
onChapterClick: n,
|
|
12
|
+
itemIndex: a,
|
|
13
|
+
shouldShowItemIndex: h
|
|
14
14
|
}) {
|
|
15
15
|
const {
|
|
16
|
-
name:
|
|
17
|
-
image_url:
|
|
16
|
+
name: l,
|
|
17
|
+
image_url: d,
|
|
18
18
|
progress_stat: u,
|
|
19
|
-
image_hue:
|
|
20
|
-
} = i, { mandatory:
|
|
19
|
+
image_hue: c
|
|
20
|
+
} = i, { mandatory: g, optional: $ } = u || {}, { completed: s = 0, total: m = 0 } = g || {}, { total: f = 0 } = $ || {}, [C, T] = W(!1), e = w(null), b = s > 0 ? Math.floor((s / m || 1) * 100) : 0, r = m + f, I = y(() => {
|
|
21
21
|
if (r === 0)
|
|
22
22
|
return null;
|
|
23
|
-
|
|
24
|
-
}, [i, o,
|
|
23
|
+
n(i, o);
|
|
24
|
+
}, [i, o, n, r]);
|
|
25
25
|
return A(() => {
|
|
26
|
-
|
|
27
|
-
}, [
|
|
28
|
-
|
|
26
|
+
e.current && e.current.scrollHeight > e.current.clientHeight && T(!0);
|
|
27
|
+
}, [e]), /* @__PURE__ */ t(
|
|
28
|
+
p,
|
|
29
29
|
{
|
|
30
30
|
renderAs: "primary",
|
|
31
31
|
position: "bottom",
|
|
@@ -33,76 +33,60 @@ const q = w(function({
|
|
|
33
33
|
hidden: r > 0,
|
|
34
34
|
parentWidth: "100%",
|
|
35
35
|
zIndex: 5,
|
|
36
|
-
children: /* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
children: /* @__PURE__ */ _(
|
|
37
|
+
j,
|
|
38
38
|
{
|
|
39
|
-
id: `milestone-chapter-${o || ""}-${
|
|
39
|
+
id: `milestone-chapter-${o || ""}-${a}`,
|
|
40
40
|
$alignItems: "center",
|
|
41
41
|
$gapX: 1,
|
|
42
42
|
$gutterX: 1,
|
|
43
43
|
$flexGap: 8,
|
|
44
44
|
$background: "WHITE_1",
|
|
45
|
-
onClick:
|
|
45
|
+
onClick: I,
|
|
46
46
|
className: "goal-widget-chapter-item",
|
|
47
|
-
$bgColor: `${
|
|
47
|
+
$bgColor: `${c}_1`,
|
|
48
48
|
shouldHideClick: r === 0,
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
51
|
X,
|
|
52
52
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ n(G, { width: "96px", height: "96px", children: [
|
|
59
|
-
/* @__PURE__ */ e(d, { $progress: 0, r: "47", cx: "48", cy: "48" }),
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
d,
|
|
62
|
-
{
|
|
63
|
-
$progressCircle: !0,
|
|
64
|
-
$progress: h * 2.98,
|
|
65
|
-
r: "47",
|
|
66
|
-
cx: "48",
|
|
67
|
-
cy: "48"
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
] }) }),
|
|
71
|
-
/* @__PURE__ */ e(L, { src: $, alt: "Chapter Image" }),
|
|
72
|
-
h === 100 && /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(S, { width: 20, height: 20 }) })
|
|
73
|
-
]
|
|
53
|
+
completionPercentage: b,
|
|
54
|
+
imageUrl: d,
|
|
55
|
+
imageHue: c,
|
|
56
|
+
imageWidth: 96,
|
|
57
|
+
iconWidth: 20
|
|
74
58
|
}
|
|
75
59
|
),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
60
|
+
/* @__PURE__ */ t(H, { $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ t(
|
|
61
|
+
p,
|
|
78
62
|
{
|
|
79
63
|
renderAs: "primary",
|
|
80
64
|
position: "bottom",
|
|
81
|
-
tooltipItem:
|
|
82
|
-
hidden: !
|
|
65
|
+
tooltipItem: l,
|
|
66
|
+
hidden: !C,
|
|
83
67
|
widthX: 21.75,
|
|
84
68
|
zIndex: 5,
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
|
|
69
|
+
children: /* @__PURE__ */ t(
|
|
70
|
+
S,
|
|
87
71
|
{
|
|
88
|
-
ref:
|
|
72
|
+
ref: e,
|
|
89
73
|
$renderAs: "ab2",
|
|
90
74
|
$color: "BLACK_T_87",
|
|
91
75
|
$align: "center",
|
|
92
|
-
children:
|
|
76
|
+
children: l
|
|
93
77
|
}
|
|
94
78
|
)
|
|
95
79
|
}
|
|
96
80
|
) }),
|
|
97
|
-
!!
|
|
98
|
-
|
|
81
|
+
!!h && /* @__PURE__ */ t(
|
|
82
|
+
E,
|
|
99
83
|
{
|
|
100
84
|
$background: "WHITE_4",
|
|
101
85
|
$widthX: 1.75,
|
|
102
86
|
$heightX: 1.75,
|
|
103
87
|
$alignItems: "center",
|
|
104
88
|
$justifyContent: "center",
|
|
105
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ t(k, { $renderAs: "ab2", $color: "BLACK_1", $align: "center", children: a + 1 })
|
|
106
90
|
}
|
|
107
91
|
)
|
|
108
92
|
]
|
|
@@ -112,6 +96,6 @@ const q = w(function({
|
|
|
112
96
|
);
|
|
113
97
|
});
|
|
114
98
|
export {
|
|
115
|
-
|
|
99
|
+
F as default
|
|
116
100
|
};
|
|
117
101
|
//# sourceMappingURL=chapter-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chapter-item.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item.tsx"],"sourcesContent":["import { useCallback, useLayoutEffect, useRef, useState, memo, type FC } from 'react';\n\nimport
|
|
1
|
+
{"version":3,"file":"chapter-item.js","sources":["../../../../../src/features/chapters/chapters-list/chapter-item/chapter-item.tsx"],"sourcesContent":["import { useCallback, useLayoutEffect, useRef, useState, memo, type FC } from 'react';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport ChapterCircularProgress from './chapter-circular-progress/chapter-circular-progress';\nimport * as Styled from './chapter-item-styled';\nimport type { IChapterItemProps } from './chapter-item-types';\n\nconst ChapterItem: FC<IChapterItemProps> = memo(function ChapterItem({\n milestoneId,\n chapter,\n onChapterClick,\n itemIndex,\n shouldShowItemIndex,\n}) {\n const {\n name,\n image_url: imageUrl,\n progress_stat: chapterProgressStat,\n image_hue: imageHue,\n } = chapter;\n const { mandatory, optional } = chapterProgressStat || {};\n const { completed = 0, total: totalMandatory = 0 } = mandatory || {};\n const { total: optionalTotal = 0 } = optional || {};\n const [showTitleTooltip, setShowTitleTooltip] = useState(false);\n const titleTextRef = useRef<HTMLDivElement>(null);\n const completionPercentage =\n completed > 0 ? Math.floor((completed / totalMandatory || 1) * 100) : 0;\n const totalSheets = totalMandatory + optionalTotal;\n const handleOnChapterClick = useCallback(() => {\n if (totalSheets === 0) {\n return null;\n }\n\n onChapterClick(chapter, milestoneId);\n }, [chapter, milestoneId, onChapterClick, totalSheets]);\n\n useLayoutEffect(() => {\n if (\n titleTextRef.current &&\n titleTextRef.current.scrollHeight > titleTextRef.current.clientHeight\n ) {\n setShowTitleTooltip(true);\n }\n }, [titleTextRef]);\n\n return (\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n tooltipItem=\"Coming soon! We’re building this chapter\"\n hidden={totalSheets > 0}\n parentWidth=\"100%\"\n zIndex={5}\n >\n <Styled.ChapterItemWrapper\n id={`milestone-chapter-${milestoneId || ''}-${itemIndex}`}\n $alignItems=\"center\"\n $gapX={1}\n $gutterX={1}\n $flexGap={8}\n $background=\"WHITE_1\"\n onClick={handleOnChapterClick}\n className=\"goal-widget-chapter-item\"\n $bgColor={`${imageHue}_1`}\n shouldHideClick={totalSheets === 0}\n >\n <ChapterCircularProgress\n completionPercentage={completionPercentage}\n imageUrl={imageUrl}\n imageHue={imageHue}\n imageWidth={96}\n iconWidth={20}\n />\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n tooltipItem={name}\n hidden={!showTitleTooltip}\n widthX={21.75}\n zIndex={5}\n >\n <Styled.ChapterName\n ref={titleTextRef}\n $renderAs=\"ab2\"\n $color=\"BLACK_T_87\"\n $align=\"center\"\n >\n {name}\n </Styled.ChapterName>\n </ArrowTooltip>\n </FlexView>\n {!!shouldShowItemIndex && (\n <Styled.ChapterItemNumberWrapper\n $background=\"WHITE_4\"\n $widthX={1.75}\n $heightX={1.75}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Text $renderAs=\"ab2\" $color=\"BLACK_1\" $align=\"center\">\n {itemIndex + 1}\n </Text>\n </Styled.ChapterItemNumberWrapper>\n )}\n </Styled.ChapterItemWrapper>\n </ArrowTooltip>\n );\n});\n\nexport default ChapterItem;\n"],"names":["ChapterItem","memo","milestoneId","chapter","onChapterClick","itemIndex","shouldShowItemIndex","name","imageUrl","chapterProgressStat","imageHue","mandatory","optional","completed","totalMandatory","optionalTotal","showTitleTooltip","setShowTitleTooltip","useState","titleTextRef","useRef","completionPercentage","totalSheets","handleOnChapterClick","useCallback","useLayoutEffect","jsx","ArrowTooltip","jsxs","Styled.ChapterItemWrapper","ChapterCircularProgress","FlexView","Styled.ChapterName","Styled.ChapterItemNumberWrapper","Text"],"mappings":";;;;;;;AASM,MAAAA,IAAqCC,EAAK,SAAqB;AAAA,EACnE,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,qBAAAC;AACF,GAAG;AACK,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,WAAWC;AAAA,IACX,eAAeC;AAAA,IACf,WAAWC;AAAA,EACT,IAAAP,GACE,EAAE,WAAAQ,GAAW,UAAAC,MAAaH,KAAuB,CAAA,GACjD,EAAE,WAAAI,IAAY,GAAG,OAAOC,IAAiB,EAAE,IAAIH,KAAa,IAC5D,EAAE,OAAOI,IAAgB,EAAE,IAAIH,KAAY,CAAA,GAC3C,CAACI,GAAkBC,CAAmB,IAAIC,EAAS,EAAK,GACxDC,IAAeC,EAAuB,IAAI,GAC1CC,IACJR,IAAY,IAAI,KAAK,OAAOA,IAAYC,KAAkB,KAAK,GAAG,IAAI,GAClEQ,IAAcR,IAAiBC,GAC/BQ,IAAuBC,EAAY,MAAM;AAC7C,QAAIF,MAAgB;AACX,aAAA;AAGT,IAAAlB,EAAeD,GAASD,CAAW;AAAA,KAClC,CAACC,GAASD,GAAaE,GAAgBkB,CAAW,CAAC;AAEtD,SAAAG,EAAgB,MAAM;AACpB,IACEN,EAAa,WACbA,EAAa,QAAQ,eAAeA,EAAa,QAAQ,gBAEzDF,EAAoB,EAAI;AAAA,EAC1B,GACC,CAACE,CAAY,CAAC,GAGf,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,UAAS;AAAA,MACT,aAAY;AAAA,MACZ,QAAQL,IAAc;AAAA,MACtB,aAAY;AAAA,MACZ,QAAQ;AAAA,MAER,UAAA,gBAAAM;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,IAAI,qBAAqB3B,KAAe,EAAE,IAAIG,CAAS;AAAA,UACvD,aAAY;AAAA,UACZ,OAAO;AAAA,UACP,UAAU;AAAA,UACV,UAAU;AAAA,UACV,aAAY;AAAA,UACZ,SAASkB;AAAA,UACT,WAAU;AAAA,UACV,UAAU,GAAGb,CAAQ;AAAA,UACrB,iBAAiBY,MAAgB;AAAA,UAEjC,UAAA;AAAA,YAAA,gBAAAI;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,sBAAAT;AAAA,gBACA,UAAAb;AAAA,gBACA,UAAAE;AAAA,gBACA,YAAY;AAAA,gBACZ,WAAW;AAAA,cAAA;AAAA,YACb;AAAA,YACC,gBAAAgB,EAAAK,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAC7C,UAAA,gBAAAL;AAAA,cAACC;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,UAAS;AAAA,gBACT,aAAapB;AAAA,gBACb,QAAQ,CAACS;AAAA,gBACT,QAAQ;AAAA,gBACR,QAAQ;AAAA,gBAER,UAAA,gBAAAU;AAAA,kBAACM;AAAAA,kBAAA;AAAA,oBACC,KAAKb;AAAA,oBACL,WAAU;AAAA,oBACV,QAAO;AAAA,oBACP,QAAO;AAAA,oBAEN,UAAAZ;AAAA,kBAAA;AAAA,gBACH;AAAA,cAAA;AAAA,YAAA,GAEJ;AAAA,YACC,CAAC,CAACD,KACD,gBAAAoB;AAAA,cAACO;AAAAA,cAAA;AAAA,gBACC,aAAY;AAAA,gBACZ,SAAS;AAAA,gBACT,UAAU;AAAA,gBACV,aAAY;AAAA,gBACZ,iBAAgB;AAAA,gBAEhB,UAAA,gBAAAP,EAACQ,KAAK,WAAU,OAAM,QAAO,WAAU,QAAO,UAC3C,UAAA7B,IAAY,EACf,CAAA;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t, { css as i } from "styled-components";
|
|
2
2
|
import o from "../../../../ui/layout/flex-view.js";
|
|
3
3
|
import { GREEN_TICK_LOTTIE_FOR_MOBILE as n, GREEN_TICK_LOTTIE_FOR_DESKTOP as r } from "./constants.js";
|
|
4
|
-
const
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
position: relative;
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
touch-action: none;
|
|
11
|
-
`, d = e.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex-grow: 1;
|
|
15
|
-
transform: ${({ $translate: t = 0 }) => `translateX(${-t}%)`};
|
|
16
|
-
transition: ${({ $translateDuration: t }) => `all ${t}ms ease-in`};
|
|
17
|
-
touch-action: none;
|
|
18
|
-
`, c = e.div`
|
|
4
|
+
const d = t.div`
|
|
19
5
|
width: 100%;
|
|
20
6
|
display: flex;
|
|
21
7
|
align-items: center;
|
|
@@ -23,12 +9,12 @@ const p = e.div`
|
|
|
23
9
|
flex-grow: 1;
|
|
24
10
|
flex-shrink: 0;
|
|
25
11
|
touch-action: none;
|
|
26
|
-
`,
|
|
12
|
+
`, l = t(o)`
|
|
27
13
|
bottom: -54px;
|
|
28
|
-
${({ theme: { mediaQueries:
|
|
14
|
+
${({ theme: { mediaQueries: e } }) => e.minWidthDesktop} {
|
|
29
15
|
bottom: -64px;
|
|
30
16
|
}
|
|
31
|
-
`,
|
|
17
|
+
`, c = t.div`
|
|
32
18
|
display: flex;
|
|
33
19
|
flex-direction: row;
|
|
34
20
|
align-items: center;
|
|
@@ -36,33 +22,31 @@ const p = e.div`
|
|
|
36
22
|
padding: 2px;
|
|
37
23
|
gap: 2px;
|
|
38
24
|
position: relative;
|
|
39
|
-
background: ${({ theme:
|
|
25
|
+
background: ${({ theme: e }) => e.colors.BLACK_5};
|
|
40
26
|
border-radius: 24px;
|
|
41
27
|
margin-top: 20px;
|
|
42
|
-
${({ theme:
|
|
43
|
-
${
|
|
28
|
+
${({ theme: e }) => i`
|
|
29
|
+
${e.mediaQueries.minWidthSmallDesktop} {
|
|
44
30
|
padding: 8px;
|
|
45
31
|
gap: 8px;
|
|
46
32
|
margin-top: 16px;
|
|
47
|
-
background: ${
|
|
33
|
+
background: ${e.colors.BLACK_3};
|
|
48
34
|
}
|
|
49
35
|
`}
|
|
50
|
-
`,
|
|
36
|
+
`, m = t.div`
|
|
51
37
|
position: absolute;
|
|
52
38
|
align-self: center;
|
|
53
39
|
width: ${n}px;
|
|
54
|
-
${({ theme:
|
|
55
|
-
${
|
|
40
|
+
${({ theme: e }) => `
|
|
41
|
+
${e.mediaQueries.minWidthSmallDesktop} {
|
|
56
42
|
width: ${r}px;
|
|
57
43
|
}
|
|
58
44
|
`}
|
|
59
45
|
`;
|
|
60
46
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
d as CarouselWrapper,
|
|
66
|
-
x as ExtendedFlexView
|
|
47
|
+
m as AllGreenTickLottieWrapper,
|
|
48
|
+
c as CarouselIdicatorContainer,
|
|
49
|
+
d as CarouselItemContainer,
|
|
50
|
+
l as ExtendedFlexView
|
|
67
51
|
};
|
|
68
52
|
//# sourceMappingURL=carousel-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/carousel/carousel-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport { GREEN_TICK_LOTTIE_FOR_DESKTOP, GREEN_TICK_LOTTIE_FOR_MOBILE } from './constants';\n\nexport const
|
|
1
|
+
{"version":3,"file":"carousel-styled.js","sources":["../../../../../../src/features/circle-games/game-launcher/comps/carousel/carousel-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\nimport { GREEN_TICK_LOTTIE_FOR_DESKTOP, GREEN_TICK_LOTTIE_FOR_MOBILE } from './constants';\n\nexport const CarouselItemContainer = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n flex-shrink: 0;\n touch-action: none;\n`;\n\nexport const ExtendedFlexView = styled(FlexView)`\n bottom: -54px;\n ${({ theme: { mediaQueries } }) => mediaQueries.minWidthDesktop} {\n bottom: -64px;\n }\n`;\n\nexport const CarouselIdicatorContainer = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 2px;\n gap: 2px;\n position: relative;\n background: ${({ theme }) => theme.colors.BLACK_5};\n border-radius: 24px;\n margin-top: 20px;\n ${({ theme }) => css`\n ${theme.mediaQueries.minWidthSmallDesktop} {\n padding: 8px;\n gap: 8px;\n margin-top: 16px;\n background: ${theme.colors.BLACK_3};\n }\n `}\n`;\n\nexport const AllGreenTickLottieWrapper = styled.div`\n position: absolute;\n align-self: center;\n width: ${GREEN_TICK_LOTTIE_FOR_MOBILE}px;\n ${({ theme }) => `\n ${theme.mediaQueries.minWidthSmallDesktop} {\n width: ${GREEN_TICK_LOTTIE_FOR_DESKTOP}px;\n }\n `}\n`;\n"],"names":["CarouselItemContainer","styled","ExtendedFlexView","FlexView","mediaQueries","CarouselIdicatorContainer","theme","css","AllGreenTickLottieWrapper","GREEN_TICK_LOTTIE_FOR_MOBILE","GREEN_TICK_LOTTIE_FOR_DESKTOP"],"mappings":";;;AAKO,MAAMA,IAAwBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAU/BC,IAAmBD,EAAOE,CAAQ;AAAA;AAAA,IAE3C,CAAC,EAAE,OAAO,EAAE,cAAAC,IAAe,MAAMA,EAAa,eAAe;AAAA;AAAA;AAAA,GAKpDC,IAA4BJ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAQhC,CAAC,EAAE,OAAAK,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,IAG/C,CAAC,EAAE,OAAAA,EAAY,MAAAC;AAAA,MACbD,EAAM,aAAa,oBAAoB;AAAA;AAAA;AAAA;AAAA,oBAIzBA,EAAM,OAAO,OAAO;AAAA;AAAA,GAErC;AAAA,GAGUE,IAA4BP,EAAO;AAAA;AAAA;AAAA,WAGrCQ,CAA4B;AAAA,IACnC,CAAC,EAAE,OAAAH,EAAA,MAAY;AAAA,MACbA,EAAM,aAAa,oBAAoB;AAAA,eAC9BI,CAA6B;AAAA;AAAA,GAEzC;AAAA;"}
|