@cuemath/leap 3.2.22-m → 3.2.23-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.
Files changed (82) hide show
  1. package/dist/assets/illustrations/illustrations.js +6 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/images/images.js +10 -0
  4. package/dist/assets/images/images.js.map +1 -1
  5. package/dist/assets/line-icons/icons/cue-coin.js +182 -0
  6. package/dist/assets/line-icons/icons/cue-coin.js.map +1 -0
  7. package/dist/assets/line-icons/icons/wins-common-icon.js +26 -0
  8. package/dist/assets/line-icons/icons/wins-common-icon.js.map +1 -0
  9. package/dist/assets/line-icons/icons/wins-epic-icon.js +25 -0
  10. package/dist/assets/line-icons/icons/wins-epic-icon.js.map +1 -0
  11. package/dist/assets/line-icons/icons/wins-legendary-icon.js +25 -0
  12. package/dist/assets/line-icons/icons/wins-legendary-icon.js.map +1 -0
  13. package/dist/assets/line-icons/icons/wins-mystery-icon.js +105 -0
  14. package/dist/assets/line-icons/icons/wins-mystery-icon.js.map +1 -0
  15. package/dist/assets/line-icons/icons/wins-mythic-icon.js +28 -0
  16. package/dist/assets/line-icons/icons/wins-mythic-icon.js.map +1 -0
  17. package/dist/assets/line-icons/icons/wins-rare-icon.js +28 -0
  18. package/dist/assets/line-icons/icons/wins-rare-icon.js.map +1 -0
  19. package/dist/assets/lottie/lottie.js +6 -1
  20. package/dist/assets/lottie/lottie.js.map +1 -1
  21. package/dist/features/notification/notification.js +129 -0
  22. package/dist/features/notification/notification.js.map +1 -0
  23. package/dist/features/ui/carousal/carousal-styles.js +45 -0
  24. package/dist/features/ui/carousal/carousal-styles.js.map +1 -0
  25. package/dist/features/ui/carousal/carousal.js +76 -0
  26. package/dist/features/ui/carousal/carousal.js.map +1 -0
  27. package/dist/features/ui/constants/z-index.js +5 -3
  28. package/dist/features/ui/constants/z-index.js.map +1 -1
  29. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +44 -29
  30. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
  31. package/dist/features/ui/inputs/base-select-input/base-select-input.js +77 -67
  32. package/dist/features/ui/inputs/base-select-input/base-select-input.js.map +1 -1
  33. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js +108 -0
  34. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js.map +1 -0
  35. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +94 -0
  36. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -0
  37. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +182 -0
  38. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -0
  39. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js +35 -0
  40. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js.map +1 -0
  41. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +82 -0
  42. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -0
  43. package/dist/features/wins-dashboard/constants.js +161 -0
  44. package/dist/features/wins-dashboard/constants.js.map +1 -0
  45. package/dist/features/wins-dashboard/header/wins-header.js +95 -0
  46. package/dist/features/wins-dashboard/header/wins-header.js.map +1 -0
  47. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +65 -0
  48. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -0
  49. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-hook.js +107 -0
  50. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-hook.js.map +1 -0
  51. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js +135 -0
  52. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js.map +1 -0
  53. package/dist/features/wins-dashboard/student-badges/student-badge.js +161 -0
  54. package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -0
  55. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +136 -0
  56. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -0
  57. package/dist/index.d.ts +218 -0
  58. package/dist/index.js +619 -605
  59. package/dist/index.js.map +1 -1
  60. package/dist/static/awesome.4239f583.json +1 -0
  61. package/dist/static/black-belt.81b3ebf9.png +0 -0
  62. package/dist/static/blue-belt.508a1b4b.png +0 -0
  63. package/dist/static/brown-belt.09bb7e93.png +0 -0
  64. package/dist/static/clapping-hands.17e7ecf0.json +1 -0
  65. package/dist/static/common.9e8ceef1.svg +1 -0
  66. package/dist/static/cool.cd6921bb.json +1 -0
  67. package/dist/static/epic.37a0265a.svg +1 -0
  68. package/dist/static/green-belt.5501296f.png +0 -0
  69. package/dist/static/legendary.f15d09ca.svg +1 -0
  70. package/dist/static/like-button.281a2618.json +1 -0
  71. package/dist/static/mastered-badge.91d25e92.png +0 -0
  72. package/dist/static/mystery.81ada5fb.svg +1 -0
  73. package/dist/static/mythic.58ba0ae0.svg +1 -0
  74. package/dist/static/orange-belt.1fefcc8c.png +0 -0
  75. package/dist/static/purple-belt.e15611b4.png +0 -0
  76. package/dist/static/rare.1ffaa311.svg +1 -0
  77. package/dist/static/red-belt.11f841d9.png +0 -0
  78. package/dist/static/star-strike-emoji.c0b31028.json +1 -0
  79. package/dist/static/trophy.5ef1853a.json +1 -0
  80. package/dist/static/white-belt.ea93103e.png +0 -0
  81. package/dist/static/yellow-belt.0c47b8cc.png +0 -0
  82. package/package.json +1 -1
@@ -0,0 +1,136 @@
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import i, { css as G } from "styled-components";
3
+ import S from "../../../assets/line-icons/icons/up.js";
4
+ import o from "../../ui/layout/flex-view.js";
5
+ import $ from "../../ui/text/text.js";
6
+ import { BADGE_TYPE_BACKGROUND as F, BADGE_TYPE_TAB_ICON as _ } from "../constants.js";
7
+ import j from "./animated-tabbar.js";
8
+ import L from "./hooks/use-student-badge-list-hook.js";
9
+ import O from "./student-badge.js";
10
+ const g = 64, { innerHeight: R } = window, N = i(o)`
11
+ width: 100%;
12
+ background-color: ${({ $backgroundColor: t }) => t};
13
+ padding: ${({ $badgeCategoryGap: t }) => t}px 0;
14
+ align-items: center;
15
+ ${({ $isLastCategory: t }) => t && G`
16
+ min-height: ${R - g}px;
17
+ `}
18
+ `, Y = i(o)`
19
+ position: fixed;
20
+ top: ${({ $topOffset: t }) => t}px;
21
+ width: ${({ $width: t }) => t}px;
22
+ z-index: 1;
23
+ transition: transform 200ms linear;
24
+ transform: translateY(${({ $visible: t }) => t ? g : 0}px);
25
+ `, v = i(o)`
26
+ position: fixed;
27
+ top: ${window.innerHeight - 100}px;
28
+ right: 40px;
29
+ width: 48px;
30
+ height: 48px;
31
+ border: 1px solid black;
32
+ background: ${({ theme: t }) => t.colors.WHITE};
33
+ border-radius: 24px;
34
+ cursor: pointer;
35
+ opacity: ${({ $showTabBar: t }) => t ? 1 : 0};
36
+ transition: all 100ms linear;
37
+ `, U = i.div`
38
+ display: grid;
39
+ grid-row-gap: 16px;
40
+ ${({ $containerStyle: t }) => t};
41
+ `, W = ({
42
+ invalidateRewardsHome: t,
43
+ openModal: m,
44
+ topOffset: h = 0,
45
+ userBadges: n,
46
+ currentScreenWidth: a,
47
+ handleScrollTo: f,
48
+ scrollPosition: x
49
+ }) => {
50
+ const {
51
+ badgeCategoryRefs: w,
52
+ categoryConfig: u,
53
+ currentSelectedBadgeType: y,
54
+ onTabClick: B,
55
+ scrollToTop: C,
56
+ showTabBar: c,
57
+ tabs: T,
58
+ totalBadgeCategories: b
59
+ } = L({
60
+ currentScreenWidth: a,
61
+ handleScrollTo: f,
62
+ scrollPosition: x,
63
+ userBadges: n
64
+ }), { badgeCategoryGap: I, badgeCategoryWidth: d, containerStyle: E, badgeWidth: k, maxBadgeNameLines: A } = u;
65
+ return /* @__PURE__ */ s(o, { $alignItems: "center", children: [
66
+ /* @__PURE__ */ e(
67
+ Y,
68
+ {
69
+ $flexDirection: "row",
70
+ $background: "WHITE",
71
+ $visible: c,
72
+ $justifyContent: "center",
73
+ $width: a,
74
+ $topOffset: h,
75
+ children: /* @__PURE__ */ e(o, { $width: d, children: /* @__PURE__ */ e(
76
+ j,
77
+ {
78
+ tabs: T,
79
+ selectedTabId: y,
80
+ onTabClick: B,
81
+ currentScreenWidth: a
82
+ }
83
+ ) })
84
+ }
85
+ ),
86
+ /* @__PURE__ */ e(o, { $flexDirection: "row", $gap: 16, $width: d, children: /* @__PURE__ */ e($, { $renderAs: "h5", children: "BADGES" }) }),
87
+ Object.keys(n).map((r, H) => {
88
+ const l = _[r];
89
+ return /* @__PURE__ */ e(
90
+ N,
91
+ {
92
+ $backgroundColor: F[r] || "#FFFFFF",
93
+ $badgeCategoryGap: I,
94
+ $isLastCategory: H === b - 1,
95
+ ref: w[r],
96
+ children: /* @__PURE__ */ s(o, { $width: d, children: [
97
+ /* @__PURE__ */ s(o, { $flexDirection: "row", $flexGap: 8, $alignItems: "center", children: [
98
+ typeof l == "function" ? /* @__PURE__ */ e(l, {}) : null,
99
+ /* @__PURE__ */ e($, { $renderAs: "eyebrow1", children: r })
100
+ ] }),
101
+ /* @__PURE__ */ e(U, { $containerStyle: E, children: (n[r] || []).map((p) => {
102
+ const { id: D } = p || {};
103
+ return /* @__PURE__ */ e(
104
+ O,
105
+ {
106
+ ...p,
107
+ category: r,
108
+ openModal: m,
109
+ badgeWidth: k,
110
+ maxBadgeNameLines: A,
111
+ invalidateRewardsHome: t
112
+ },
113
+ D
114
+ );
115
+ }) })
116
+ ] })
117
+ },
118
+ r
119
+ );
120
+ }),
121
+ /* @__PURE__ */ e(
122
+ v,
123
+ {
124
+ $justifyContent: "center",
125
+ $alignItems: "center",
126
+ $showTabBar: c,
127
+ onClick: C,
128
+ children: /* @__PURE__ */ e(S, {})
129
+ }
130
+ )
131
+ ] });
132
+ }, Z = W;
133
+ export {
134
+ Z as default
135
+ };
136
+ //# sourceMappingURL=student-badges-lists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"student-badges-lists.js","sources":["../../../../src/features/wins-dashboard/student-badges/student-badges-lists.tsx"],"sourcesContent":["import type { Badge } from './mock/badges-list-mock';\nimport type { RuleSet } from 'styled-components';\n\nimport styled, { css } from 'styled-components';\n\nimport UpIcon from '../../../assets/line-icons/icons/up';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { BADGE_TYPE_BACKGROUND, BADGE_TYPE_TAB_ICON } from '../constants';\nimport AnimatedTabBar from './animated-tabbar';\nimport useStudentBadgeListHook from './hooks/use-student-badge-list-hook';\nimport StudentBadge from './student-badge';\n\nconst HEADER_HEIGHT = 64;\nconst { innerHeight: windowHeight } = window;\n\nconst StudentBadgesContainer = styled(FlexView)<{\n $backgroundColor: string;\n $badgeCategoryGap: number;\n $isLastCategory: boolean;\n}>`\n width: 100%;\n background-color: ${({ $backgroundColor }) => $backgroundColor};\n padding: ${({ $badgeCategoryGap }) => $badgeCategoryGap}px 0;\n align-items: center;\n ${({ $isLastCategory }) =>\n $isLastCategory &&\n css`\n min-height: ${windowHeight - HEADER_HEIGHT}px;\n `}\n`;\n\nconst TabBarContainer = styled(FlexView)<{\n $topOffset: number;\n $width: number;\n $visible: boolean;\n}>`\n position: fixed;\n top: ${({ $topOffset }) => $topOffset}px;\n width: ${({ $width }) => $width}px;\n z-index: 1;\n transition: transform 200ms linear;\n transform: translateY(${({ $visible }) => ($visible ? HEADER_HEIGHT : 0)}px);\n`;\n\nconst ScrollTopButton = styled(FlexView)<{ $showTabBar: boolean }>`\n position: fixed;\n top: ${window.innerHeight - 100}px;\n right: 40px;\n width: 48px;\n height: 48px;\n border: 1px solid black;\n background: ${({ theme }) => theme.colors.WHITE};\n border-radius: 24px;\n cursor: pointer;\n opacity: ${({ $showTabBar }) => ($showTabBar ? 1 : 0)};\n transition: all 100ms linear;\n`;\n\nconst CustomRow = styled.div<{ $containerStyle: RuleSet<object> }>`\n display: grid;\n grid-row-gap: 16px;\n ${({ $containerStyle }) => $containerStyle};\n`;\n\ninterface StudentBadgeListProps {\n invalidateRewardsHome: () => void;\n openModal: (modal: string, props?: unknown) => void;\n topOffset?: number;\n userBadges: Record<string, Badge[]>;\n currentScreenWidth: number;\n handleScrollTo: (position: number) => void;\n scrollPosition: number;\n}\n\nconst StudentBadgeList = ({\n invalidateRewardsHome,\n openModal,\n topOffset = 0,\n userBadges,\n currentScreenWidth,\n handleScrollTo,\n scrollPosition,\n}: StudentBadgeListProps) => {\n const {\n badgeCategoryRefs,\n categoryConfig,\n currentSelectedBadgeType,\n onTabClick,\n scrollToTop,\n showTabBar,\n tabs,\n totalBadgeCategories,\n } = useStudentBadgeListHook({\n currentScreenWidth,\n handleScrollTo,\n scrollPosition,\n userBadges,\n });\n\n const { badgeCategoryGap, badgeCategoryWidth, containerStyle, badgeWidth, maxBadgeNameLines } =\n categoryConfig;\n\n return (\n <FlexView $alignItems=\"center\">\n <TabBarContainer\n $flexDirection=\"row\"\n $background=\"WHITE\"\n $visible={showTabBar}\n $justifyContent=\"center\"\n $width={currentScreenWidth}\n $topOffset={topOffset}\n >\n <FlexView $width={badgeCategoryWidth}>\n <AnimatedTabBar\n tabs={tabs}\n selectedTabId={currentSelectedBadgeType}\n onTabClick={onTabClick}\n currentScreenWidth={currentScreenWidth}\n />\n </FlexView>\n </TabBarContainer>\n <FlexView $flexDirection=\"row\" $gap={16} $width={badgeCategoryWidth}>\n <Text $renderAs=\"h5\">BADGES</Text>\n </FlexView>\n {Object.keys(userBadges).map((badge, index) => {\n const BadgeCategoryIcon = BADGE_TYPE_TAB_ICON[badge];\n\n return (\n <StudentBadgesContainer\n key={badge}\n $backgroundColor={BADGE_TYPE_BACKGROUND[badge] || '#FFFFFF'}\n $badgeCategoryGap={badgeCategoryGap}\n $isLastCategory={index === totalBadgeCategories - 1}\n ref={badgeCategoryRefs[badge]}\n >\n <FlexView $width={badgeCategoryWidth}>\n <FlexView $flexDirection=\"row\" $flexGap={8} $alignItems=\"center\">\n {typeof BadgeCategoryIcon === 'function' ? <BadgeCategoryIcon /> : null}\n <Text $renderAs=\"eyebrow1\">{badge}</Text>\n </FlexView>\n <CustomRow $containerStyle={containerStyle}>\n {(userBadges[badge] || []).map(badgeProps => {\n const { id: studentBadgeId } = badgeProps || {};\n\n return (\n <StudentBadge\n key={studentBadgeId}\n {...badgeProps}\n category={badge}\n openModal={openModal}\n badgeWidth={badgeWidth}\n maxBadgeNameLines={maxBadgeNameLines}\n invalidateRewardsHome={invalidateRewardsHome}\n />\n );\n })}\n </CustomRow>\n </FlexView>\n </StudentBadgesContainer>\n );\n })}\n <ScrollTopButton\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $showTabBar={showTabBar}\n onClick={scrollToTop}\n >\n <UpIcon />\n </ScrollTopButton>\n </FlexView>\n );\n};\n\nexport default StudentBadgeList;\n"],"names":["HEADER_HEIGHT","windowHeight","StudentBadgesContainer","styled","FlexView","$backgroundColor","$badgeCategoryGap","$isLastCategory","css","TabBarContainer","$topOffset","$width","$visible","ScrollTopButton","theme","$showTabBar","CustomRow","$containerStyle","StudentBadgeList","invalidateRewardsHome","openModal","topOffset","userBadges","currentScreenWidth","handleScrollTo","scrollPosition","badgeCategoryRefs","categoryConfig","currentSelectedBadgeType","onTabClick","scrollToTop","showTabBar","tabs","totalBadgeCategories","useStudentBadgeListHook","badgeCategoryGap","badgeCategoryWidth","containerStyle","badgeWidth","maxBadgeNameLines","jsxs","jsx","AnimatedTabBar","Text","badge","index","BadgeCategoryIcon","BADGE_TYPE_TAB_ICON","BADGE_TYPE_BACKGROUND","badgeProps","studentBadgeId","StudentBadge","UpIcon","StudentBadgeList$1"],"mappings":";;;;;;;;;AAaA,MAAMA,IAAgB,IAChB,EAAE,aAAaC,EAAiB,IAAA,QAEhCC,IAAyBC,EAAOC,CAAQ;AAAA;AAAA,sBAMxB,CAAC,EAAE,kBAAAC,EAAiB,MAAMA,CAAgB;AAAA,aACnD,CAAC,EAAE,mBAAAC,EAAkB,MAAMA,CAAiB;A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,KAAK,CAAA,GAAI,IAAI,CAAcK,MAAA;AAC3C,oBAAM,EAAE,IAAIC,MAAmBD,KAAc,CAAA;AAG3C,qBAAA,gBAAAR;AAAA,gBAACU;AAAA,gBAAA;AAAA,kBAEE,GAAGF;AAAA,kBACJ,UAAUL;AAAA,kBACV,WAAAxB;AAAA,kBACA,YAAAkB;AAAA,kBACA,mBAAAC;AAAA,kBACA,uBAAApB;AAAA,gBAAA;AAAA,gBANK+B;AAAA,cAAA;AAAA,YASV,CAAA,GACH;AAAA,UAAA,GACF;AAAA,QAAA;AAAA,QA5BKN;AAAA,MAAA;AAAA,IA6BP,CAEH;AAAA,IACD,gBAAAH;AAAA,MAAC5B;AAAA,MAAA;AAAA,QACC,iBAAgB;AAAA,QAChB,aAAY;AAAA,QACZ,aAAakB;AAAA,QACb,SAASD;AAAA,QAET,4BAACsB,GAAO,EAAA;AAAA,MAAA;AAAA,IACV;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAC,IAAenC;"}
package/dist/index.d.ts CHANGED
@@ -119,6 +119,29 @@ export declare const BackgroundImage: ({ img }: {
119
119
 
120
120
  export declare const BackIcon: React.FC<React.SVGProps<SVGSVGElement>>;
121
121
 
122
+ declare interface Badge {
123
+ category: keyof typeof STUDENT_BADGE_TYPE;
124
+ acknowledged_on: number | null;
125
+ animation_url: string;
126
+ assigned_on: number | null;
127
+ audio_url: string | null;
128
+ badge_id: string;
129
+ code: string;
130
+ current_count: number;
131
+ description: string;
132
+ id: string;
133
+ image_url: string;
134
+ is_global: boolean;
135
+ is_live: boolean;
136
+ is_recent: boolean;
137
+ name: string;
138
+ position: number;
139
+ program_id: null;
140
+ state: string;
141
+ total_count: number;
142
+ user_id: string;
143
+ }
144
+
122
145
  export declare const BaseInput: React_2.FC<IBaseInputProps>;
123
146
 
124
147
  declare interface BaseProject {
@@ -129,6 +152,16 @@ declare interface BaseProject {
129
152
  variant: string;
130
153
  }
131
154
 
155
+ export declare const BeltsElementsStickers: React_2.FC<BeltsElementsStickersProps>;
156
+
157
+ declare interface BeltsElementsStickersProps {
158
+ curriculumHomeData?: CurriculumHomeData;
159
+ rewardHomeData?: RewardHomeData;
160
+ programStream?: string;
161
+ currentScreenWidth: number;
162
+ renderOnTeacher?: boolean;
163
+ }
164
+
132
165
  export declare const Bin2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
133
166
 
134
167
  export declare const BinIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -192,6 +225,36 @@ export declare const CalendarIcon: React.FC<React.SVGProps<SVGSVGElement>>;
192
225
 
193
226
  export declare const Callout: React.FC<ICalloutProps>;
194
227
 
228
+ export declare const Carousel: React_2.FC<CarouselProps>;
229
+
230
+ declare interface CarouselProps {
231
+ children: React_2.ReactNode[] | React_2.ReactNode;
232
+ initialPosition?: number;
233
+ infinite?: boolean;
234
+ slideDuration?: number;
235
+ dotColor?: string;
236
+ changeColor?: (position: number) => void;
237
+ slideAlign?: string | null;
238
+ inactiveDotColor?: string;
239
+ activeIndicatorSize?: string;
240
+ flexCenterIndicators?: boolean;
241
+ isTestimonial?: boolean;
242
+ setColor?: (position: number) => void;
243
+ setPosition?: (position: number) => void;
244
+ carouselSlotPadding?: string;
245
+ wrapperMargin?: string;
246
+ hideIndicators?: boolean;
247
+ autoScroll?: boolean;
248
+ nodeRef?: {
249
+ current?: {
250
+ next?: () => void;
251
+ prev?: () => void;
252
+ position?: number;
253
+ };
254
+ } | null;
255
+ onChange?: () => void;
256
+ }
257
+
195
258
  export declare const CascadingSelectInput: React_2.FC<ICascadingSelectInputProps>;
196
259
 
197
260
  export declare const Chapter: FC<IChapterProps>;
@@ -354,10 +417,33 @@ export declare const CueCanvasProvider: FC<PropsWithChildren<{
354
417
 
355
418
  export declare const CueCanvasSideBar: NamedExoticComponent<ISidebar>;
356
419
 
420
+ export declare const CueCoinIcon: React_2.FC<CueCoinIconProps>;
421
+
422
+ declare interface CueCoinIconProps extends React_2.SVGProps<SVGSVGElement> {
423
+ variant?: 'gold' | 'silver';
424
+ }
425
+
357
426
  export declare const CuemathLogo: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
358
427
 
359
428
  export declare const CueRocket: React.FC<React.SVGProps<SVGSVGElement>>;
360
429
 
430
+ declare interface CurriculumHomeData {
431
+ data?: {
432
+ curriculum_map?: CurriculumMap;
433
+ };
434
+ }
435
+
436
+ declare interface CurriculumMap {
437
+ belts?: {
438
+ current_belt_type?: string;
439
+ goals_required?: number;
440
+ };
441
+ goals?: {
442
+ completed_goals: number;
443
+ total_goals: number;
444
+ };
445
+ }
446
+
361
447
  export declare const CustomInputField: NamedExoticComponent<ICustomInputFieldProps>;
362
448
 
363
449
  export declare const DashArrowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -845,6 +931,7 @@ declare interface IBaseSelectInputProps<IDType extends string | number> extends
845
931
  controlled?: boolean;
846
932
  size?: TInputSizes;
847
933
  theme?: 'light' | 'dark';
934
+ inputLabelOverrides?: (section: ISectionOption<ISelectOption<IDType>>, option: ISelectOption<IDType> | undefined) => string;
848
935
  }
849
936
 
850
937
  declare interface IBaseWebGameProps {
@@ -2106,6 +2193,7 @@ export declare const ILLUSTRATIONS: {
2106
2193
  CIRCLE_CUEMATH_LOGO_WHITE: string;
2107
2194
  CIRCLE_OUTERCIRCLE_BG: string;
2108
2195
  CLOCK_ORANGE: string;
2196
+ COMMON: string;
2109
2197
  COMMUNITY_BULB: string;
2110
2198
  CROSSHAIR_CIRCLE: string;
2111
2199
  CROWN: string;
@@ -2119,6 +2207,7 @@ export declare const ILLUSTRATIONS: {
2119
2207
  DURATION_90MIN_GRAY: string;
2120
2208
  EARTH_GREEN: string;
2121
2209
  ELLIPSE_CLIP: string;
2210
+ EPIC: string;
2122
2211
  FEMALE_AVATAR: string;
2123
2212
  GAME_PLAY: string;
2124
2213
  GLOBE_WITH_BLUE_FILL: string;
@@ -2132,6 +2221,7 @@ export declare const ILLUSTRATIONS: {
2132
2221
  LEARNED_SHIELD_GRAY: string;
2133
2222
  LEARNED_SHIELD_GREEN: string;
2134
2223
  LEARNT: string;
2224
+ LEGENDARY: string;
2135
2225
  LIKE: string;
2136
2226
  LIVE_SESSION: string;
2137
2227
  LOADER: string;
@@ -2148,6 +2238,8 @@ export declare const ILLUSTRATIONS: {
2148
2238
  MILESTONE_INTRO_3: string;
2149
2239
  MISTAKE: string;
2150
2240
  MONEY: string;
2241
+ MYSTERY: string;
2242
+ MYTHIC: string;
2151
2243
  NODE_ACTIVITY_BG: string;
2152
2244
  NODE_CUSTOM_TEST_BG: string;
2153
2245
  NODE_DOWNLOAD_BG: string;
@@ -2181,6 +2273,7 @@ export declare const ILLUSTRATIONS: {
2181
2273
  PUZZLE_PATTERN_PURPLE: string;
2182
2274
  PUZZLE_PATTERN_YELLOW: string;
2183
2275
  PUZZLE_STUDENT: string;
2276
+ RARE: string;
2184
2277
  REFUND_POLICY: string;
2185
2278
  REFUND_POLICY_WITH_HEADPHONE: string;
2186
2279
  REPORT_404: string;
@@ -2233,6 +2326,7 @@ declare interface ILottieAnimationProps {
2233
2326
  callback: EventListener_2<EventType>;
2234
2327
  }[];
2235
2328
  onRender?: () => void;
2329
+ onError?: () => void;
2236
2330
  }
2237
2331
 
2238
2332
  declare interface ILottieAnimationRef {
@@ -2288,6 +2382,9 @@ export declare const IMAGES: {
2288
2382
  AWESOME: string;
2289
2383
  BADGE_SUCCESS: string;
2290
2384
  BG_EMPTY_RESOURCES: string;
2385
+ BLACK_BELT: string;
2386
+ BLUE_BELT: string;
2387
+ BROWN_BELT: string;
2291
2388
  CHATVA: string;
2292
2389
  CONGRATS: string;
2293
2390
  COOL: string;
@@ -2298,20 +2395,27 @@ export declare const IMAGES: {
2298
2395
  EKA: string;
2299
2396
  EMPTY_MIX_TESTS: string;
2300
2397
  GREAT: string;
2398
+ GREEN_BELT: string;
2301
2399
  HEXO: string;
2302
2400
  KUDOS: string;
2303
2401
  LEARNING_PLAN: string;
2304
2402
  LESSON_OVERVIEW_BANNER: string;
2403
+ MASTERED_BADGE: string;
2305
2404
  NO_INFO: string;
2306
2405
  OCTO: string;
2406
+ ORANGE_BELT: string;
2407
+ PURPLE_BELT: string;
2307
2408
  PUZZLE_CARD_EASY: string;
2308
2409
  PUZZLE_CARD_HARD: string;
2309
2410
  PUZZLE_CARD_MEDIUM: string;
2411
+ RED_BELT: string;
2310
2412
  SHARED: string;
2311
2413
  SHEET_REFERENCE: string;
2312
2414
  SPIRAL_PATTERN: string;
2313
2415
  TETRA: string;
2416
+ WHITE_BELT: string;
2314
2417
  WOW: string;
2418
+ YELLOW_BELT: string;
2315
2419
  ZODASA: string;
2316
2420
  };
2317
2421
 
@@ -2934,6 +3038,29 @@ declare interface IPreviewWorksheetProps {
2934
3038
  onUnassign?: () => void;
2935
3039
  }
2936
3040
 
3041
+ declare interface IProgramOption {
3042
+ badges_enabled: boolean;
3043
+ board: string;
3044
+ board_id: string;
3045
+ code: string;
3046
+ cue_program_type: string;
3047
+ description: string;
3048
+ grade: string;
3049
+ grades: string[];
3050
+ id: string;
3051
+ is_active: boolean;
3052
+ is_current: boolean;
3053
+ is_current_stream_program: boolean;
3054
+ is_demo: boolean;
3055
+ is_live: boolean;
3056
+ name: string;
3057
+ program_type: string;
3058
+ rewards_enabled: boolean;
3059
+ stream: string;
3060
+ sub_stream: string | null;
3061
+ [key: string]: unknown;
3062
+ }
3063
+
2937
3064
  export declare interface IProject<T> {
2938
3065
  type: ProjectType;
2939
3066
  data: T[];
@@ -4065,6 +4192,11 @@ export declare interface IWebViewProps extends IframeHTMLAttributes<HTMLIFrameEl
4065
4192
  handleInfoMessage?: (infoMessage: IInfoMessage) => void;
4066
4193
  }
4067
4194
 
4195
+ declare interface IWinsCommonIcon {
4196
+ selected?: boolean;
4197
+ className?: string;
4198
+ }
4199
+
4068
4200
  declare interface IWinsPreviewProps {
4069
4201
  onWinsClick: () => void;
4070
4202
  rewardsHome: TRewardHomeData;
@@ -4415,6 +4547,7 @@ export declare const LOTTIE: {
4415
4547
  ALL_DONE: string;
4416
4548
  ANIMATED_AVATAR: string;
4417
4549
  AVATAR_SELECTED: string;
4550
+ AWESOME: string;
4418
4551
  BEGINNER1X: string;
4419
4552
  BRONZE_1: string;
4420
4553
  BRONZE_2: string;
@@ -4423,6 +4556,7 @@ export declare const LOTTIE: {
4423
4556
  CHAPTER_COMPLETED: string;
4424
4557
  CIRCULAR_LOADER: string;
4425
4558
  CLAP: string;
4559
+ CLAPPING_HANDS: string;
4426
4560
  CLOCK_30MIN: string;
4427
4561
  CLOCK_45MIN: string;
4428
4562
  CLOCK_60MIN: string;
@@ -4431,6 +4565,7 @@ export declare const LOTTIE: {
4431
4565
  COLOR_2: string;
4432
4566
  COLOR_3: string;
4433
4567
  COMPETITIVE_ARENA: string;
4568
+ COOL: string;
4434
4569
  DART: string;
4435
4570
  DIAMOND: string;
4436
4571
  DICE: string;
@@ -4464,6 +4599,7 @@ export declare const LOTTIE: {
4464
4599
  LEVEL_1_ALLSTAR: string;
4465
4600
  LIGHTNING: string;
4466
4601
  LIGHT_BULB: string;
4602
+ LIKE_BUTTON: string;
4467
4603
  MAGICWAND: string;
4468
4604
  MAIL: string;
4469
4605
  MECHANICAL_ARM: string;
@@ -4512,6 +4648,7 @@ export declare const LOTTIE: {
4512
4648
  SPINNER_WHITE: string;
4513
4649
  SPLASH_SCREEN: string;
4514
4650
  STAR: string;
4651
+ STAR_STRIKE_EMOJI: string;
4515
4652
  STUDENT_AVATAR: string;
4516
4653
  SUBJECTIVE: string;
4517
4654
  SUPER: string;
@@ -4703,6 +4840,28 @@ export declare enum NODE_TYPES {
4703
4840
  'PUZZLE_CARD' = "PUZZLE_CARD"
4704
4841
  }
4705
4842
 
4843
+ declare const Notification_2: React.FC<NotificationProps>;
4844
+ export { Notification_2 as Notification }
4845
+
4846
+ declare interface NotificationProps {
4847
+ avatarUrl?: string | null;
4848
+ Component?: React.ComponentType<Record<string, unknown>> | null;
4849
+ componentProps?: Record<string, unknown>;
4850
+ duration?: number | null;
4851
+ gap?: number;
4852
+ gutter?: number;
4853
+ hideNotification?: () => void;
4854
+ horizontalDist?: number;
4855
+ notificationTheme?: NotificationTheme;
4856
+ position?: Position;
4857
+ showCloseIcon?: boolean;
4858
+ text?: string | null;
4859
+ verticalDist?: number;
4860
+ visible?: boolean;
4861
+ }
4862
+
4863
+ declare type NotificationTheme = 'white' | 'black';
4864
+
4706
4865
  export declare const Nudge: React_2.NamedExoticComponent<INudgeProps>;
4707
4866
 
4708
4867
  export declare const NumRangeInput: React.FC<NumRangeInputProps>;
@@ -4787,6 +4946,8 @@ export declare const PlusIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4787
4946
 
4788
4947
  export declare const PointerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4789
4948
 
4949
+ declare type Position = 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right';
4950
+
4790
4951
  export declare const PostGameStats: NamedExoticComponent<IPostGameStatsProps & RefAttributes<IPostGameStatsRef>>;
4791
4952
 
4792
4953
  export declare const PracticeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -4890,6 +5051,20 @@ export declare const ResendOTP: NamedExoticComponent<IOTPResendProps>;
4890
5051
 
4891
5052
  export declare const ResetPasswordForm: MemoExoticComponent<({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX.Element>;
4892
5053
 
5054
+ declare interface RewardElement {
5055
+ aggregate_for?: {
5056
+ name?: string;
5057
+ };
5058
+ aggregates?: number;
5059
+ }
5060
+
5061
+ declare interface RewardHomeData {
5062
+ data?: {
5063
+ user_rewards?: RewardElement[];
5064
+ user_stickers?: StickerElement[];
5065
+ };
5066
+ }
5067
+
4893
5068
  export declare const REWARDS_LIST: string[];
4894
5069
 
4895
5070
  export declare const RightIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5049,6 +5224,11 @@ declare const STICKER_BADGE: {
5049
5224
 
5050
5225
  declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5051
5226
 
5227
+ declare interface StickerElement {
5228
+ badge_id?: string;
5229
+ name?: string;
5230
+ }
5231
+
5052
5232
  export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5053
5233
 
5054
5234
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5079,6 +5259,27 @@ export declare class StreakReductionLocalStorageUtil {
5079
5259
 
5080
5260
  export declare const StrikedEyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5081
5261
 
5262
+ declare const STUDENT_BADGE_TYPE: {
5263
+ COMMON: string;
5264
+ RARE: string;
5265
+ EPIC: string;
5266
+ LEGENDARY: string;
5267
+ MYTHIC: string;
5268
+ MYSTERY: string;
5269
+ };
5270
+
5271
+ export declare const StudentBadgeList: ({ invalidateRewardsHome, openModal, topOffset, userBadges, currentScreenWidth, handleScrollTo, scrollPosition, }: StudentBadgeListProps) => JSX.Element;
5272
+
5273
+ declare interface StudentBadgeListProps {
5274
+ invalidateRewardsHome: () => void;
5275
+ openModal: (modal: string, props?: unknown) => void;
5276
+ topOffset?: number;
5277
+ userBadges: Record<string, Badge[]>;
5278
+ currentScreenWidth: number;
5279
+ handleScrollTo: (position: number) => void;
5280
+ scrollPosition: number;
5281
+ }
5282
+
5082
5283
  export declare const StudentDetails: FC<IStudentDetailsProps>;
5083
5284
 
5084
5285
  export declare const SubmitMilestoneModal: React.FC<ISubmitModalProps>;
@@ -6489,6 +6690,22 @@ export declare enum WebViewEvent {
6489
6690
  */
6490
6691
  export declare const WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]>;
6491
6692
 
6693
+ export declare const WinsCommonIcon: React_2.FC<IWinsCommonIcon>;
6694
+
6695
+ export declare const WinsHeader: React_2.FC<WinsTabHeaderProps>;
6696
+
6697
+ declare interface WinsTabHeaderProps {
6698
+ currentSelectedProgram?: IProgramOption;
6699
+ goldCoins?: number;
6700
+ onBackClick?: () => void;
6701
+ onProgramChange?: (p: IProgramOption) => void;
6702
+ programOptions?: IProgramOption[];
6703
+ silverCoins?: number;
6704
+ showLeftBorder?: boolean;
6705
+ topOffset?: number;
6706
+ widthOffset?: number;
6707
+ }
6708
+
6492
6709
  export declare const Worksheet: NamedExoticComponent<IWorksheetContainerProps & RefAttributes<IWorksheetRef>>;
6493
6710
 
6494
6711
  export declare const WORKSHEET_ACTION_BAR_HEIGHT = 56;
@@ -6516,6 +6733,7 @@ declare const ZINDEX: {
6516
6733
  readonly GOAL_CHAPTER_SHEETS_MENU: 4;
6517
6734
  readonly JOURNEY_OVERLAY: 1000;
6518
6735
  readonly CHAPTER_COMPLETED_LOTTIE: 5;
6736
+ readonly HEADER: 11;
6519
6737
  };
6520
6738
 
6521
6739
  export { }