@cuemath/leap 2.8.24 → 2.8.25-link.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/lottie/lottie.js +61 -0
- package/dist/assets/lottie/lottie.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js +81 -79
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js.map +1 -1
- package/dist/features/circle-games/game-launcher/game-launcher.js +61 -65
- package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
- package/dist/features/circle-games/leaderboard/comps/banner/banner.js +35 -53
- package/dist/features/circle-games/leaderboard/comps/banner/banner.js.map +1 -1
- package/dist/features/circle-games/leaderboard/leaderboard.js +56 -55
- package/dist/features/circle-games/leaderboard/leaderboard.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js +40 -41
- package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/spinner/spinner-styled.js +4 -8
- package/dist/features/circle-games/sign-up/comp/spinner/spinner-styled.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/spinner/spinner.js +6 -23
- package/dist/features/circle-games/sign-up/comp/spinner/spinner.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/splash-screen/splash-screen.js +40 -35
- package/dist/features/circle-games/sign-up/comp/splash-screen/splash-screen.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/difficulty-and-duration-selection/difficulty-and-duration-selection.js +2 -2
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/difficulty-and-duration-selection/test-radio-card/test-card-lottie-animation.js +8 -23
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/difficulty-and-duration-selection/test-radio-card/test-card-lottie-animation.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/difficulty-and-duration-selection/test-radio-card/test-radio-card.js +11 -11
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/difficulty-and-duration-selection/test-radio-card/test-radio-card.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/utils/index.js +37 -43
- package/dist/features/milestone/milestone-tests/tests-creation/utils/index.js.map +1 -1
- package/dist/features/post-game-stats/accuracy/accuracy.js +38 -34
- package/dist/features/post-game-stats/accuracy/accuracy.js.map +1 -1
- package/dist/features/post-game-stats/clock/clock.js +43 -39
- package/dist/features/post-game-stats/clock/clock.js.map +1 -1
- package/dist/features/post-game-stats/points/points.js +43 -44
- package/dist/features/post-game-stats/points/points.js.map +1 -1
- package/dist/features/post-game-stats/streak/streak.js +30 -28
- package/dist/features/post-game-stats/streak/streak.js.map +1 -1
- package/dist/features/trial-session/comps/av-panels/teacher-av-panel/teacher-av-panel.js +56 -54
- package/dist/features/trial-session/comps/av-panels/teacher-av-panel/teacher-av-panel.js.map +1 -1
- package/dist/features/trial-session/comps/parent-app/parent-app.js +25 -20
- package/dist/features/trial-session/comps/parent-app/parent-app.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights.js +40 -39
- package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
- package/dist/features/ui/loader/circular-loader/circular-loader.js +16 -20
- package/dist/features/ui/loader/circular-loader/circular-loader.js.map +1 -1
- package/dist/features/ui/lottie-animation/helper.js +13 -0
- package/dist/features/ui/lottie-animation/helper.js.map +1 -0
- package/dist/features/ui/lottie-animation/lottie-animation.js +37 -0
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -0
- package/dist/features/ui/nudge/nudge-styled.js +4 -8
- package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
- package/dist/features/ui/nudge/nudge.js +13 -30
- package/dist/features/ui/nudge/nudge.js.map +1 -1
- package/dist/features/ui/perfect-hits/perfect-hits-helpers.js +22 -20
- package/dist/features/ui/perfect-hits/perfect-hits-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js +25 -48
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/header/validated-animation.js +12 -26
- package/dist/features/worksheet/worksheet/worksheet-question/header/validated-animation.js.map +1 -1
- package/dist/index.d.ts +58 -0
- package/dist/index.js +466 -464
- package/dist/index.js.map +1 -1
- package/dist/static/accuracy-meter.99585cba.json +4218 -0
- package/dist/static/accuracy-needle.cd6e63ac.json +618 -0
- package/dist/static/beginner1x.489908a7.json +3508 -0
- package/dist/static/bronze-1.da4e4b5f.json +4176 -0
- package/dist/static/bronze-2.97f9c639.json +4433 -0
- package/dist/static/bronze-3.6a433ebd.json +4786 -0
- package/dist/static/circular-loader.a5a1a0a6.json +238 -0
- package/dist/static/clock-30min.eae818b8.json +1197 -0
- package/dist/static/clock-45min.df8adf51.json +1197 -0
- package/dist/static/clock-60min.2b48d875.json +1197 -0
- package/dist/static/clock-90min.3e557ed7.json +1407 -0
- package/dist/static/color-1.45101b9a.json +4545 -0
- package/dist/static/color-2.ccdc7d0a.json +4828 -0
- package/dist/static/color-3.5e8e1422.json +5273 -0
- package/dist/static/difficult.6846c064.json +2755 -0
- package/dist/static/easy-rescheduling-lottie.28026af9.json +9301 -0
- package/dist/static/easy.68242ddd.json +2658 -0
- package/dist/static/elite-circle.3df58972.json +6876 -0
- package/dist/static/error-lottie.b3507a4b.json +5255 -0
- package/dist/static/familiar1x.7c9c7f15.json +3046 -0
- package/dist/static/fifteen-min-clock.0af4e303.json +715 -0
- package/dist/static/five-min-clock.6be5cc41.json +721 -0
- package/dist/static/gold-1.ab2489fe.json +4176 -0
- package/dist/static/gold-2.34045826.json +4441 -0
- package/dist/static/gold-3.d704698b.json +4810 -0
- package/dist/static/levelup-rings.b1055283.json +549 -0
- package/dist/static/medium.94c3829b.json +2289 -0
- package/dist/static/nudge-tap.5cb30093.json +1057 -0
- package/dist/static/point1.b53831de.json +2942 -0
- package/dist/static/point10.7b5e536d.json +3179 -0
- package/dist/static/point100.1df16f82.json +3196 -0
- package/dist/static/point15.fea00c32.json +3179 -0
- package/dist/static/point20.c88d776d.json +3178 -0
- package/dist/static/point25.a18c346a.json +3178 -0
- package/dist/static/point30.c5224b0b.json +3202 -0
- package/dist/static/point35.fad343dd.json +3058 -0
- package/dist/static/point40.10a16f72.json +3082 -0
- package/dist/static/point45.2ad7561f.json +3082 -0
- package/dist/static/point5.da40ed1f.json +2948 -0
- package/dist/static/point50.5718cb3d.json +3046 -0
- package/dist/static/point60.17380d9f.json +3076 -0
- package/dist/static/proficient1x.fa6e7b80.json +3430 -0
- package/dist/static/silver-1.0396328a.json +4168 -0
- package/dist/static/silver-2.bf50615f.json +4433 -0
- package/dist/static/silver-3.13d66b84.json +4810 -0
- package/dist/static/sleepy-boi.031a1165.json +1008 -0
- package/dist/static/spinner-white.639e0d87.json +122 -0
- package/dist/static/splash-screen.bbf567ce.json +2411 -0
- package/dist/static/stay-connected-lottie.111439b3.json +3547 -0
- package/dist/static/teacher-validation.7577ecdc.json +245 -0
- package/dist/static/total-streak.d5ce7669.json +842 -0
- package/dist/static/total-time-spent.434005d3.json +200 -0
- package/dist/static/total-time.d979cbb9.json +24383 -0
- package/dist/static/tournament-ripple.e5c239a5.json +1047 -0
- package/dist/static/track-progress-lottie.422108cf.json +2972 -0
- package/package.json +1 -1
- package/dist/assets/lotties/circle/100pts.json.js +0 -7957
- package/dist/assets/lotties/circle/100pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/10pts.json.js +0 -7753
- package/dist/assets/lotties/circle/10pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/15pts.json.js +0 -7879
- package/dist/assets/lotties/circle/15pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/1pts.json.js +0 -7257
- package/dist/assets/lotties/circle/1pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/20pts.json.js +0 -7845
- package/dist/assets/lotties/circle/20pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/25pts.json.js +0 -7971
- package/dist/assets/lotties/circle/25pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/30pts.json.js +0 -7941
- package/dist/assets/lotties/circle/30pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/35pts.json.js +0 -7881
- package/dist/assets/lotties/circle/35pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/40pts.json.js +0 -7725
- package/dist/assets/lotties/circle/40pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/45pts.json.js +0 -7851
- package/dist/assets/lotties/circle/45pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/50pts.json.js +0 -7707
- package/dist/assets/lotties/circle/50pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/5pts.json.js +0 -7420
- package/dist/assets/lotties/circle/5pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/60pts.json.js +0 -7701
- package/dist/assets/lotties/circle/60pts.json.js.map +0 -1
- package/dist/assets/lotties/circle/accuracy-meter-lottie.json.js +0 -6811
- package/dist/assets/lotties/circle/accuracy-meter-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/accuracy-needle-lottie.json.js +0 -1503
- package/dist/assets/lotties/circle/accuracy-needle-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/circular-loader.json.js +0 -635
- package/dist/assets/lotties/circle/circular-loader.json.js.map +0 -1
- package/dist/assets/lotties/circle/elite-circle-lottie.json.js +0 -12079
- package/dist/assets/lotties/circle/elite-circle-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/levelup-rings-lottie.json.js +0 -1412
- package/dist/assets/lotties/circle/levelup-rings-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/sleepy-boi-lottie.json.js +0 -2632
- package/dist/assets/lotties/circle/sleepy-boi-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/spinner-white.json.js +0 -316
- package/dist/assets/lotties/circle/spinner-white.json.js.map +0 -1
- package/dist/assets/lotties/circle/splash-screen.json.js +0 -5864
- package/dist/assets/lotties/circle/splash-screen.json.js.map +0 -1
- package/dist/assets/lotties/circle/total-streak-lottie.json.js +0 -2103
- package/dist/assets/lotties/circle/total-streak-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/total-time-lottie.json.js +0 -33016
- package/dist/assets/lotties/circle/total-time-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/total-time-spent-lottie.json.js +0 -260
- package/dist/assets/lotties/circle/total-time-spent-lottie.json.js.map +0 -1
- package/dist/assets/lotties/circle/tournament-ripple-lottie.json.js +0 -1563
- package/dist/assets/lotties/circle/tournament-ripple-lottie.json.js.map +0 -1
- package/dist/assets/lotties/common/nudge-tap.json.js +0 -3597
- package/dist/assets/lotties/common/nudge-tap.json.js.map +0 -1
- package/dist/assets/lotties/error-lottie.json.js +0 -12755
- package/dist/assets/lotties/error-lottie.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/bronze-1.json.js +0 -10871
- package/dist/assets/lotties/perfect-hits/bronze-1.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/bronze-2.json.js +0 -11389
- package/dist/assets/lotties/perfect-hits/bronze-2.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/bronze-3.json.js +0 -12169
- package/dist/assets/lotties/perfect-hits/bronze-3.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/color-1.json.js +0 -12348
- package/dist/assets/lotties/perfect-hits/color-1.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/color-2.json.js +0 -12941
- package/dist/assets/lotties/perfect-hits/color-2.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/color-3.json.js +0 -14034
- package/dist/assets/lotties/perfect-hits/color-3.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/gold-1.json.js +0 -10871
- package/dist/assets/lotties/perfect-hits/gold-1.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/gold-2.json.js +0 -11389
- package/dist/assets/lotties/perfect-hits/gold-2.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/gold-3.json.js +0 -12169
- package/dist/assets/lotties/perfect-hits/gold-3.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/silver-1.json.js +0 -10871
- package/dist/assets/lotties/perfect-hits/silver-1.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/silver-2.json.js +0 -11389
- package/dist/assets/lotties/perfect-hits/silver-2.json.js.map +0 -1
- package/dist/assets/lotties/perfect-hits/silver-3.json.js +0 -12169
- package/dist/assets/lotties/perfect-hits/silver-3.json.js.map +0 -1
- package/dist/assets/lotties/teacher-validation.json.js +0 -649
- package/dist/assets/lotties/teacher-validation.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/clock_30_min.json.js +0 -2857
- package/dist/assets/lotties/tests-creation/clock_30_min.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/clock_45_min.json.js +0 -2857
- package/dist/assets/lotties/tests-creation/clock_45_min.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/clock_60_min.json.js +0 -2857
- package/dist/assets/lotties/tests-creation/clock_60_min.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/clock_90_min.json.js +0 -3345
- package/dist/assets/lotties/tests-creation/clock_90_min.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/difficult.json.js +0 -6713
- package/dist/assets/lotties/tests-creation/difficult.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/easy.json.js +0 -6525
- package/dist/assets/lotties/tests-creation/easy.json.js.map +0 -1
- package/dist/assets/lotties/tests-creation/medium.json.js +0 -5603
- package/dist/assets/lotties/tests-creation/medium.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/15min-clock.json.js +0 -2037
- package/dist/assets/lotties/trial-v3/15min-clock.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/5min-clock.json.js +0 -2062
- package/dist/assets/lotties/trial-v3/5min-clock.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/insight/beginner1x.json.js +0 -8517
- package/dist/assets/lotties/trial-v3/insight/beginner1x.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/insight/familiar1x.json.js +0 -7396
- package/dist/assets/lotties/trial-v3/insight/familiar1x.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/insight/proficient1x.json.js +0 -8559
- package/dist/assets/lotties/trial-v3/insight/proficient1x.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/parent-app/easy-rescheduling-lottie.json.js +0 -23284
- package/dist/assets/lotties/trial-v3/parent-app/easy-rescheduling-lottie.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/parent-app/stay-connected-lottie.json.js +0 -9090
- package/dist/assets/lotties/trial-v3/parent-app/stay-connected-lottie.json.js.map +0 -1
- package/dist/assets/lotties/trial-v3/parent-app/track-progress-lottie.json.js +0 -8675
- package/dist/assets/lotties/trial-v3/parent-app/track-progress-lottie.json.js.map +0 -1
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/fetch-lottie.js +0 -13
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/fetch-lottie.js.map +0 -1
- package/dist/features/circle-games/game-launcher/game-launcher-styled.js +0 -10
- package/dist/features/circle-games/game-launcher/game-launcher-styled.js.map +0 -1
- package/dist/features/post-game-stats/points/points-styled.js +0 -10
- package/dist/features/post-game-stats/points/points-styled.js.map +0 -1
- package/dist/features/trial-session/comps/render-lottie/index.js +0 -26
- package/dist/features/trial-session/comps/render-lottie/index.js.map +0 -1
- package/dist/features/ui/loader/circular-loader/circular-loader-styled.js +0 -17
- package/dist/features/ui/loader/circular-loader/circular-loader-styled.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"perfect-hits-helpers.js","sources":["../../../../src/features/ui/perfect-hits/perfect-hits-helpers.ts"],"sourcesContent":["import { RANGE_SIZE, TIERS } from './constants';\n\ntype AnimationData = Record<string, unknown>;\n\nconst animationFilesMap: Record<string,
|
1
|
+
{"version":3,"file":"perfect-hits-helpers.js","sources":["../../../../src/features/ui/perfect-hits/perfect-hits-helpers.ts"],"sourcesContent":["import { LOTTIE } from '../../../assets/lottie/lottie';\nimport { fetchLottie } from '../lottie-animation/helper';\nimport { RANGE_SIZE, TIERS } from './constants';\n\ntype AnimationData = Record<string, unknown>;\n\nconst animationFilesMap: Record<string, string> = {\n bronze_1: LOTTIE.BRONZE_1,\n bronze_2: LOTTIE.BRONZE_2,\n bronze_3: LOTTIE.BRONZE_3,\n silver_1: LOTTIE.SILVER_1,\n silver_2: LOTTIE.SILVER_2,\n silver_3: LOTTIE.SILVER_3,\n gold_1: LOTTIE.GOLD_1,\n gold_2: LOTTIE.GOLD_2,\n gold_3: LOTTIE.GOLD_3,\n color_1: LOTTIE.COLOR_1,\n color_2: LOTTIE.COLOR_2,\n color_3: LOTTIE.COLOR_3,\n};\n\n/**\n * [0-4] => bronze_1\n * [5-9] => silver_1\n * [10-14] => gold_1\n * [15-19] => color_1\n * [20-24] => bronze_2\n * [25-29] => silver_2\n * [30-34] => gold_2\n * [35-39] => color_2\n * [40-44] => bronze_3\n * [45-49] => silver_3\n * [50-54] => gold_3\n * [55-59] => color_3\n * [>60] => color_3\n */\n\nasync function getAnimationFile(num: number): Promise<AnimationData | null> {\n const setNumber = num >= RANGE_SIZE * 12 ? 3 : Math.floor(num / (TIERS.length * RANGE_SIZE)) + 1;\n\n const tierIndex = Math.floor((num % (TIERS.length * RANGE_SIZE)) / RANGE_SIZE);\n const tier = num >= RANGE_SIZE * 12 ? 'color' : TIERS[tierIndex];\n const fileName = `${tier}_${setNumber}`;\n\n const loadAnimationPath = animationFilesMap[fileName];\n\n if (loadAnimationPath) {\n try {\n const lottieModule = await fetchLottie(loadAnimationPath);\n\n return lottieModule;\n } catch (error) {\n return null;\n }\n }\n\n return null;\n}\n\nexport { getAnimationFile, RANGE_SIZE };\n"],"names":["animationFilesMap","LOTTIE","getAnimationFile","num","setNumber","RANGE_SIZE","TIERS","tierIndex","fileName","loadAnimationPath","fetchLottie"],"mappings":";;;AAMA,MAAMA,IAA4C;AAAA,EAChD,UAAUC,EAAO;AAAA,EACjB,UAAUA,EAAO;AAAA,EACjB,UAAUA,EAAO;AAAA,EACjB,UAAUA,EAAO;AAAA,EACjB,UAAUA,EAAO;AAAA,EACjB,UAAUA,EAAO;AAAA,EACjB,QAAQA,EAAO;AAAA,EACf,QAAQA,EAAO;AAAA,EACf,QAAQA,EAAO;AAAA,EACf,SAASA,EAAO;AAAA,EAChB,SAASA,EAAO;AAAA,EAChB,SAASA,EAAO;AAClB;AAkBA,eAAeC,EAAiBC,GAA4C;AACpE,QAAAC,IAAYD,KAAOE,IAAa,KAAK,IAAI,KAAK,MAAMF,KAAOG,EAAM,SAASD,EAAW,IAAI,GAEzFE,IAAY,KAAK,MAAOJ,KAAOG,EAAM,SAASD,KAAeA,CAAU,GAEvEG,IAAW,GADJL,KAAOE,IAAa,KAAK,UAAUC,EAAMC,CAAS,CACvC,IAAIH,CAAS,IAE/BK,IAAoBT,EAAkBQ,CAAQ;AAEpD,MAAIC;AACE,QAAA;AAGK,aAFc,MAAMC,EAAYD,CAAiB;AAAA,YAG1C;AACP,aAAA;AAAA,IACT;AAGK,SAAA;AACT;"}
|
@@ -1,52 +1,29 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { memo as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
renderer: "svg",
|
24
|
-
loop: !0,
|
25
|
-
autoplay: !0,
|
26
|
-
animationData: t
|
27
|
-
});
|
28
|
-
return () => {
|
29
|
-
n.destroy();
|
30
|
-
};
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
2
|
+
import { memo as n } from "react";
|
3
|
+
import { LOTTIE as p } from "../../../../assets/lottie/lottie.js";
|
4
|
+
import a from "../../../ui/buttons/button/button.js";
|
5
|
+
import h from "../../../ui/layout/flex-view.js";
|
6
|
+
import c from "../../../ui/lottie-animation/lottie-animation.js";
|
7
|
+
import o from "../../../ui/separator/separator.js";
|
8
|
+
import l from "../../../ui/text/text.js";
|
9
|
+
import { BaseWrapper as s } from "./styles.js";
|
10
|
+
const d = ({ buttonLabel: e = "Home", error: t, handleClick: i }) => /* @__PURE__ */ r(s, { $background: "BLACK_75", children: /* @__PURE__ */ m(h, { $alignItems: "center", children: [
|
11
|
+
/* @__PURE__ */ r(o, { heightX: 4 }),
|
12
|
+
/* @__PURE__ */ r(c, { src: p.ERROR_LOTTIE, height: 320, width: 320 }),
|
13
|
+
/* @__PURE__ */ r(l, { $renderAs: "h6", $color: "WHITE", $align: "center", children: t || "Oh No! Error detected..." }),
|
14
|
+
/* @__PURE__ */ r(o, { heightX: 1 }),
|
15
|
+
/* @__PURE__ */ r(
|
16
|
+
a,
|
17
|
+
{
|
18
|
+
label: e,
|
19
|
+
onClick: i,
|
20
|
+
renderAs: "primary",
|
21
|
+
size: "regular",
|
22
|
+
widthX: 14
|
31
23
|
}
|
32
|
-
|
33
|
-
|
34
|
-
/* @__PURE__ */ e(m, { $width: 320, $height: 320, id: o }),
|
35
|
-
/* @__PURE__ */ e($, { $renderAs: "h6", $color: "WHITE", $align: "center", children: d || "Oh No! Error detected..." }),
|
36
|
-
/* @__PURE__ */ e(l, { heightX: 1 }),
|
37
|
-
/* @__PURE__ */ e(
|
38
|
-
E,
|
39
|
-
{
|
40
|
-
label: s,
|
41
|
-
onClick: c,
|
42
|
-
renderAs: "primary",
|
43
|
-
size: "regular",
|
44
|
-
widthX: 14
|
45
|
-
}
|
46
|
-
)
|
47
|
-
] }) });
|
48
|
-
}, R = A(y);
|
24
|
+
)
|
25
|
+
] }) }), L = n(d);
|
49
26
|
export {
|
50
|
-
|
27
|
+
L as default
|
51
28
|
};
|
52
29
|
//# sourceMappingURL=error.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"error.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-permissions/error.tsx"],"sourcesContent":["import
|
1
|
+
{"version":3,"file":"error.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-permissions/error.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { BaseWrapper } from './styles';\n\ninterface ErrorProps {\n buttonLabel?: string;\n error: string;\n handleClick: () => void;\n}\n\nconst Error: React.FC<ErrorProps> = ({ buttonLabel = 'Home', error, handleClick }) => (\n <BaseWrapper $background=\"BLACK_75\">\n <FlexView $alignItems=\"center\">\n <Separator heightX={4} />\n <LottieAnimation src={LOTTIE.ERROR_LOTTIE} height={320} width={320} />\n <Text $renderAs=\"h6\" $color=\"WHITE\" $align=\"center\">\n {error || 'Oh No! Error detected...'}\n </Text>\n <Separator heightX={1} />\n <Button\n label={buttonLabel}\n onClick={handleClick}\n renderAs=\"primary\"\n size=\"regular\"\n widthX={14}\n />\n </FlexView>\n </BaseWrapper>\n);\n\nexport default memo(Error);\n"],"names":["Error","buttonLabel","error","handleClick","jsx","BaseWrapper","jsxs","FlexView","Separator","LottieAnimation","LOTTIE","Text","Button","memo"],"mappings":";;;;;;;;;AAgBA,MAAMA,IAA8B,CAAC,EAAE,aAAAC,IAAc,QAAQ,OAAAC,GAAO,aAAAC,EAAA,MAClE,gBAAAC,EAACC,KAAY,aAAY,YACvB,UAAC,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UACpB,UAAA;AAAA,EAAC,gBAAAH,EAAAI,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAJ,EAACK,KAAgB,KAAKC,EAAO,cAAc,QAAQ,KAAK,OAAO,KAAK;AAAA,EACpE,gBAAAN,EAACO,KAAK,WAAU,MAAK,QAAO,SAAQ,QAAO,UACxC,UAAAT,KAAS,2BACZ,CAAA;AAAA,EACA,gBAAAE,EAACI,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAJ;AAAA,IAACQ;AAAA,IAAA;AAAA,MACC,OAAOX;AAAA,MACP,SAASE;AAAA,MACT,UAAS;AAAA,MACT,MAAK;AAAA,MACL,QAAQ;AAAA,IAAA;AAAA,EACV;AAAA,EACF,CAAA,EACF,CAAA,GAGaD,IAAAW,EAAKb,CAAK;"}
|
@@ -1,27 +1,13 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
const
|
8
|
-
const [
|
9
|
-
return
|
10
|
-
|
11
|
-
const i = a.loadAnimation({
|
12
|
-
name: "validated",
|
13
|
-
container: r.current,
|
14
|
-
renderer: "svg",
|
15
|
-
loop: !1,
|
16
|
-
autoplay: !0,
|
17
|
-
animationData: u
|
18
|
-
});
|
19
|
-
return () => {
|
20
|
-
i.destroy();
|
21
|
-
};
|
22
|
-
}
|
23
|
-
}, [e, n]), n ? /* @__PURE__ */ t(o, { $width: 40, $height: 40, $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ t(
|
24
|
-
o,
|
2
|
+
import { memo as n, useState as r } from "react";
|
3
|
+
import m from "../../../../../assets/line-icons/icons/check2.js";
|
4
|
+
import { LOTTIE as a } from "../../../../../assets/lottie/lottie.js";
|
5
|
+
import e from "../../../../ui/layout/flex-view.js";
|
6
|
+
import s from "../../../../ui/lottie-animation/lottie-animation.js";
|
7
|
+
const d = { name: "validated", loop: !1 }, g = n(({ validated: i }) => {
|
8
|
+
const [o] = r(i);
|
9
|
+
return o ? /* @__PURE__ */ t(e, { $width: 40, $height: 40, $alignItems: "center", $justifyContent: "center", children: /* @__PURE__ */ t(
|
10
|
+
e,
|
25
11
|
{
|
26
12
|
$borderRadius: 10,
|
27
13
|
$background: "REAL_BLACK",
|
@@ -29,11 +15,11 @@ const w = m(({ validated: e }) => {
|
|
29
15
|
$height: 20,
|
30
16
|
$alignItems: "center",
|
31
17
|
$justifyContent: "center",
|
32
|
-
children: /* @__PURE__ */ t(
|
18
|
+
children: /* @__PURE__ */ t(m, { color: "WHITE", width: 16, height: 16 })
|
33
19
|
}
|
34
|
-
) }) : /* @__PURE__ */ t(
|
20
|
+
) }) : /* @__PURE__ */ t(s, { src: a.TEACHER_VALIDATION, settings: d });
|
35
21
|
});
|
36
22
|
export {
|
37
|
-
|
23
|
+
g as default
|
38
24
|
};
|
39
25
|
//# sourceMappingURL=validated-animation.js.map
|
package/dist/features/worksheet/worksheet/worksheet-question/header/validated-animation.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validated-animation.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/header/validated-animation.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport
|
1
|
+
{"version":3,"file":"validated-animation.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/header/validated-animation.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport { memo, useState } from 'react';\n\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport { LOTTIE } from '../../../../../assets/lottie/lottie';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\n\ninterface IValidatedAnimationProps {\n validated: boolean;\n}\n\nconst animationSettings = { name: 'validated', loop: false };\n\nconst ValidatedAnimation: FC<IValidatedAnimationProps> = memo(({ validated }) => {\n const [validatedOnMount] = useState(validated);\n\n if (validatedOnMount) {\n return (\n <FlexView $width={40} $height={40} $alignItems=\"center\" $justifyContent=\"center\">\n <FlexView\n $borderRadius={10}\n $background=\"REAL_BLACK\"\n $width={20}\n $height={20}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Check2Icon color=\"WHITE\" width={16} height={16} />\n </FlexView>\n </FlexView>\n );\n }\n\n return <LottieAnimation src={LOTTIE.TEACHER_VALIDATION} settings={animationSettings} />;\n});\n\nexport default ValidatedAnimation;\n"],"names":["animationSettings","ValidatedAnimation","memo","validated","validatedOnMount","useState","jsx","FlexView","Check2Icon","LottieAnimation","LOTTIE"],"mappings":";;;;;;AAaA,MAAMA,IAAoB,EAAE,MAAM,aAAa,MAAM,GAAM,GAErDC,IAAmDC,EAAK,CAAC,EAAE,WAAAC,QAAgB;AAC/E,QAAM,CAACC,CAAgB,IAAIC,EAASF,CAAS;AAE7C,SAAIC,IAEA,gBAAAE,EAACC,KAAS,QAAQ,IAAI,SAAS,IAAI,aAAY,UAAS,iBAAgB,UACtE,UAAA,gBAAAD;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,eAAe;AAAA,MACf,aAAY;AAAA,MACZ,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAEhB,4BAACC,GAAW,EAAA,OAAM,SAAQ,OAAO,IAAI,QAAQ,IAAI;AAAA,IAAA;AAAA,EAErD,EAAA,CAAA,sBAIIC,GAAgB,EAAA,KAAKC,EAAO,oBAAoB,UAAUV,EAAmB,CAAA;AACvF,CAAC;"}
|
package/dist/index.d.ts
CHANGED
@@ -3280,6 +3280,64 @@ export declare const Lock2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
3280
3280
|
|
3281
3281
|
export declare const LockIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3282
3282
|
|
3283
|
+
export declare const LOTTIE: {
|
3284
|
+
ACCURACY_METER: string;
|
3285
|
+
ACCURACY_NEEDLE: string;
|
3286
|
+
BEGINNER1X: string;
|
3287
|
+
BRONZE_1: string;
|
3288
|
+
BRONZE_2: string;
|
3289
|
+
BRONZE_3: string;
|
3290
|
+
CIRCULAR_LOADER: string;
|
3291
|
+
CLOCK_30MIN: string;
|
3292
|
+
CLOCK_45MIN: string;
|
3293
|
+
CLOCK_60MIN: string;
|
3294
|
+
CLOCK_90MIN: string;
|
3295
|
+
COLOR_1: string;
|
3296
|
+
COLOR_2: string;
|
3297
|
+
COLOR_3: string;
|
3298
|
+
DIFFICULT: string;
|
3299
|
+
EASY: string;
|
3300
|
+
EASY_RESCHEDULING_LOTTIE: string;
|
3301
|
+
ELITE_CIRCLE: string;
|
3302
|
+
ERROR_LOTTIE: string;
|
3303
|
+
FAMILIAR1X: string;
|
3304
|
+
FIFTEEN_MIN_CLOCK: string;
|
3305
|
+
FIVE_MIN_CLOCK: string;
|
3306
|
+
GOLD_1: string;
|
3307
|
+
GOLD_2: string;
|
3308
|
+
GOLD_3: string;
|
3309
|
+
LEVELUP_RINGS: string;
|
3310
|
+
MEDIUM: string;
|
3311
|
+
NUDGE_TAP: string;
|
3312
|
+
POINT100: string;
|
3313
|
+
POINT10: string;
|
3314
|
+
POINT15: string;
|
3315
|
+
POINT1: string;
|
3316
|
+
POINT20: string;
|
3317
|
+
POINT25: string;
|
3318
|
+
POINT30: string;
|
3319
|
+
POINT35: string;
|
3320
|
+
POINT40: string;
|
3321
|
+
POINT45: string;
|
3322
|
+
POINT50: string;
|
3323
|
+
POINT5: string;
|
3324
|
+
POINT60: string;
|
3325
|
+
PROFICIENT1X: string;
|
3326
|
+
SILVER_1: string;
|
3327
|
+
SILVER_2: string;
|
3328
|
+
SILVER_3: string;
|
3329
|
+
SLEEPY_BOI: string;
|
3330
|
+
SPINNER_WHITE: string;
|
3331
|
+
SPLASH_SCREEN: string;
|
3332
|
+
STAY_CONNECTED_LOTTIE: string;
|
3333
|
+
TEACHER_VALIDATION: string;
|
3334
|
+
TOTAL_STREAK: string;
|
3335
|
+
TOTAL_TIME: string;
|
3336
|
+
TOTAL_TIME_SPENT: string;
|
3337
|
+
TOURNAMENT_RIPPLE: string;
|
3338
|
+
TRACK_PROGRESS_LOTTIE: string;
|
3339
|
+
};
|
3340
|
+
|
3283
3341
|
export declare const LPARChapter: FC<ILPARChapterProps>;
|
3284
3342
|
|
3285
3343
|
export declare const LPARMilestoneChapter: FC<ILPARMilestoneChapter>;
|