@mathwiz/ui-components 0.1.32 → 0.1.33

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.
@@ -0,0 +1,4 @@
1
+ import type { DashboardPageProps } from './types';
2
+ export declare function DashboardPage({ data, loading, error, onContinueLearning, onLessonSelect, onTaskToggle, }: DashboardPageProps): import("react/jsx-runtime").JSX.Element;
3
+ export default DashboardPage;
4
+ //# sourceMappingURL=DashboardPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardPage.d.ts","sourceRoot":"","sources":["../../../src/pages/DashboardPage/DashboardPage.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,OAAe,EACf,KAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,EAAE,kBAAkB,2CAwLpB;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { DashboardPage } from './DashboardPage';
2
+ export type { DashboardPageProps, DashboardData } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/DashboardPage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Task item for daily milestones
3
+ */
4
+ export interface Task {
5
+ id: string;
6
+ titleEn: string;
7
+ titleZh: string;
8
+ isCompleted: boolean;
9
+ }
10
+ /**
11
+ * Lesson item for learning pathway
12
+ */
13
+ export interface PathwayLesson {
14
+ id: string;
15
+ title: string;
16
+ status: 'completed' | 'current' | 'locked';
17
+ }
18
+ /**
19
+ * Recommendation item for personalized suggestions
20
+ */
21
+ export interface RecommendationItem {
22
+ id: string;
23
+ variant: 'weakness' | 'challenge' | 'explore';
24
+ badgeText: string;
25
+ reasoning: string;
26
+ title: string;
27
+ contentType: 'exercise' | 'challenge' | 'lesson' | 'practice';
28
+ }
29
+ /**
30
+ * User data structure
31
+ */
32
+ export interface UserData {
33
+ name: string;
34
+ avatar: string;
35
+ level: number;
36
+ }
37
+ /**
38
+ * Gamified statistics
39
+ */
40
+ export interface GamifiedData {
41
+ streakDays: number;
42
+ coins: number;
43
+ }
44
+ /**
45
+ * Continue learning section data
46
+ */
47
+ export interface ContinueLearningData {
48
+ grade: string;
49
+ subject: string;
50
+ lessonTitle: string;
51
+ lessonTitleCn: string;
52
+ progress: number;
53
+ }
54
+ /**
55
+ * Daily milestones data
56
+ */
57
+ export interface DailyMilestonesData {
58
+ currentXP: number;
59
+ targetXP: number;
60
+ tasks: Task[];
61
+ }
62
+ /**
63
+ * Learning pathway data
64
+ */
65
+ export interface LearningPathwayData {
66
+ activeTab: 'curriculum' | 'skillTree';
67
+ lessons: PathwayLesson[];
68
+ }
69
+ /**
70
+ * Activity data point for charts
71
+ */
72
+ export interface ActivityDataPoint {
73
+ day: string;
74
+ count: number;
75
+ }
76
+ /**
77
+ * Skill data for rings
78
+ */
79
+ export interface SkillDataItem {
80
+ nameEn: string;
81
+ nameZh: string;
82
+ percentage: number;
83
+ color: string;
84
+ }
85
+ /**
86
+ * Complete dashboard data structure
87
+ */
88
+ export interface DashboardData {
89
+ user: UserData;
90
+ gamified: GamifiedData;
91
+ continueLearning: ContinueLearningData;
92
+ dailyMilestones: DailyMilestonesData;
93
+ learningPathway: LearningPathwayData;
94
+ recommendations: RecommendationItem[];
95
+ activityData: ActivityDataPoint[];
96
+ skillData: SkillDataItem[];
97
+ }
98
+ /**
99
+ * Props for the DashboardPage component
100
+ */
101
+ export interface DashboardPageProps {
102
+ /** Complete dashboard data */
103
+ data: DashboardData;
104
+ /** Loading state */
105
+ loading?: boolean;
106
+ /** Error state */
107
+ error?: Error | null;
108
+ /** Callback when continue learning is clicked */
109
+ onContinueLearning?: () => void;
110
+ /** Callback when a lesson is selected */
111
+ onLessonSelect?: (lessonId: string) => void;
112
+ /** Callback when a task is toggled */
113
+ onTaskToggle?: (taskId: string, completed: boolean) => void;
114
+ }
115
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/pages/DashboardPage/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC/D;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,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QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,sCAAsC;IACtC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7D"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mathwiz/ui-components",
3
3
  "private": false,
4
- "version": "0.1.32",
4
+ "version": "0.1.33",
5
5
  "description": "A collection of reusable UI components for React applications within the mathwiz ecosystem.",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -147,4 +147,4 @@
147
147
  "public"
148
148
  ]
149
149
  }
150
- }
150
+ }