@campxdev/react-native-blueprint 0.1.23 → 0.1.24
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/global.css +3 -3
- package/lib/global.css +1 -1
- package/lib/module/assets/icons/Image.png +0 -0
- package/lib/module/components/DataDisplay/Avatar/Avatar.js +1 -1
- package/lib/module/components/DataDisplay/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/DataDisplay/Banner/Banner.figma.js +17 -3
- package/lib/module/components/DataDisplay/Banner/Banner.figma.js.map +1 -1
- package/lib/module/components/DataDisplay/Banner/Banner.js +138 -34
- package/lib/module/components/DataDisplay/Banner/Banner.js.map +1 -1
- package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.js +2 -2
- package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.js.map +1 -1
- package/lib/module/components/DataDisplay/Card/Card.figma.js +11 -4
- package/lib/module/components/DataDisplay/Card/Card.figma.js.map +1 -1
- package/lib/module/components/DataDisplay/Card/Card.js +119 -65
- package/lib/module/components/DataDisplay/Card/Card.js.map +1 -1
- package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.figma.js +54 -0
- package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.js +318 -0
- package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.js.map +1 -0
- package/lib/module/components/DataDisplay/ChatBubble/index.js +4 -0
- package/lib/module/components/DataDisplay/ChatBubble/index.js.map +1 -0
- package/lib/module/components/DataDisplay/FeedCard/AttachmentDetails.js +69 -0
- package/lib/module/components/DataDisplay/FeedCard/AttachmentDetails.js.map +1 -0
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js +19 -17
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js.map +1 -1
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.js +30 -19
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.js.map +1 -1
- package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js +5 -5
- package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js.map +1 -1
- package/lib/module/components/DataDisplay/Greeting/Greeting.js +46 -70
- package/lib/module/components/DataDisplay/Greeting/Greeting.js.map +1 -1
- package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.figma.js +16 -0
- package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.js +111 -0
- package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.js.map +1 -0
- package/lib/module/components/DataDisplay/ProfileCard/index.js +4 -0
- package/lib/module/components/DataDisplay/ProfileCard/index.js.map +1 -0
- package/lib/module/components/Input/Button/Button.js +77 -129
- package/lib/module/components/Input/Button/Button.js.map +1 -1
- package/lib/module/components/Navigation/Appbar/AppBar.figma.js +18 -6
- package/lib/module/components/Navigation/Appbar/AppBar.figma.js.map +1 -1
- package/lib/module/components/Navigation/Appbar/AppBar.js +36 -9
- package/lib/module/components/Navigation/Appbar/AppBar.js.map +1 -1
- package/lib/module/components/Navigation/Popover/Popover.js +1 -1
- package/lib/module/components/Navigation/Popover/Popover.js.map +1 -1
- package/lib/module/components/ui/index.js +2 -0
- package/lib/module/components/ui/index.js.map +1 -1
- package/lib/module/lib/theme.js +2 -2
- package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.figma.js +196 -0
- package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.js +255 -0
- package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/AccountPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/AccountPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.js +1 -1
- package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.js +2 -4
- package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.js.map +1 -1
- package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.figma.js +144 -0
- package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.js +213 -0
- package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/FeedPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/FeedPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.figma.js +70 -0
- package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.js +260 -0
- package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeFacultyPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/HomeFacultyPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.js +82 -0
- package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.js +256 -0
- package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeParentPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/HomeParentPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.js +73 -0
- package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.js +283 -0
- package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/HomeStudentPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/HomeStudentPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/index.js +5 -0
- package/lib/module/patterns/pattern-components/index.js.map +1 -1
- package/package.json +27 -1
- package/src/assets/icons/Image.png +0 -0
- package/src/components/DataDisplay/Avatar/Avatar.tsx +24 -21
- package/src/components/DataDisplay/Banner/Banner.figma.tsx +18 -3
- package/src/components/DataDisplay/Banner/Banner.tsx +153 -26
- package/src/components/DataDisplay/CalendarItem/CalendarItem.tsx +2 -2
- package/src/components/DataDisplay/Card/Card.figma.tsx +7 -3
- package/src/components/DataDisplay/Card/Card.tsx +152 -101
- package/src/components/DataDisplay/ChatBubble/ChatBubble.figma.tsx +54 -0
- package/src/components/DataDisplay/ChatBubble/ChatBubble.tsx +404 -0
- package/src/components/DataDisplay/ChatBubble/index.ts +8 -0
- package/src/components/DataDisplay/FeedCard/AttachmentDetails.tsx +96 -0
- package/src/components/DataDisplay/FeedCard/FeedCard.figma.tsx +17 -15
- package/src/components/DataDisplay/FeedCard/FeedCard.tsx +66 -35
- package/src/components/DataDisplay/Greeting/Greeting.figma.tsx +5 -5
- package/src/components/DataDisplay/Greeting/Greeting.tsx +58 -96
- package/src/components/DataDisplay/ProfileCard/ProfileCard.figma.tsx +17 -0
- package/src/components/DataDisplay/ProfileCard/ProfileCard.tsx +173 -0
- package/src/components/DataDisplay/ProfileCard/index.ts +1 -0
- package/src/components/Input/Button/Button.tsx +71 -157
- package/src/components/Navigation/Appbar/AppBar.figma.tsx +18 -6
- package/src/components/Navigation/Appbar/AppBar.tsx +58 -13
- package/src/components/Navigation/Popover/Popover.tsx +3 -3
- package/src/components/ui/index.ts +2 -0
- package/src/lib/theme.ts +2 -2
- package/src/patterns/pattern-components/AccountPattern/AccountPattern.figma.tsx +193 -0
- package/src/patterns/pattern-components/AccountPattern/AccountPattern.tsx +301 -0
- package/src/patterns/pattern-components/AccountPattern/index.ts +1 -0
- package/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.tsx +1 -1
- package/src/patterns/pattern-components/CardListPattern/CardListPattern.tsx +4 -9
- package/src/patterns/pattern-components/FeedPattern/FeedPattern.figma.tsx +146 -0
- package/src/patterns/pattern-components/FeedPattern/FeedPattern.tsx +264 -0
- package/src/patterns/pattern-components/FeedPattern/index.ts +2 -0
- package/src/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.figma.tsx +66 -0
- package/src/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.tsx +326 -0
- package/src/patterns/pattern-components/HomeFacultyPattern/index.ts +2 -0
- package/src/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.tsx +75 -0
- package/src/patterns/pattern-components/HomeParentPattern/HomeParentPattern.tsx +328 -0
- package/src/patterns/pattern-components/HomeParentPattern/index.ts +2 -0
- package/src/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.tsx +66 -0
- package/src/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.tsx +355 -0
- package/src/patterns/pattern-components/HomeStudentPattern/index.ts +2 -0
- package/src/patterns/pattern-components/index.ts +5 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import figma from '@figma/code-connect';
|
|
4
|
+
import { HomeParentPattern } from "./HomeParentPattern.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const FIGMA_URL = 'https://www.figma.com/design/YTb27Onq7Zk8OV16fHptxJ/Campx-App?node-id=283-22416';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* HomeParentPattern - Parent home screen layout pattern
|
|
10
|
+
*
|
|
11
|
+
* Use cases:
|
|
12
|
+
* - Parent portal home screens
|
|
13
|
+
* - Parental monitoring dashboards
|
|
14
|
+
* - Student progress tracking interfaces
|
|
15
|
+
* - Parent notification and update screens
|
|
16
|
+
*
|
|
17
|
+
* Features:
|
|
18
|
+
* - Personalized greeting with student info and overview
|
|
19
|
+
* - Overview metrics (Attendance, Fees status)
|
|
20
|
+
* - Action center for pending items and alerts
|
|
21
|
+
* - Academics section with semester and course information
|
|
22
|
+
* - Quick access dashboard (Attendance, Payments, Exam Scores, Services)
|
|
23
|
+
* - Teacher/Mentor information card
|
|
24
|
+
* - Announcements feed with file attachments for important documents
|
|
25
|
+
* - All sections are independently configurable
|
|
26
|
+
*
|
|
27
|
+
* Customization:
|
|
28
|
+
* - Show/hide individual sections
|
|
29
|
+
* - Customize titles, subtitles, and content
|
|
30
|
+
* - Configure button callbacks
|
|
31
|
+
* - Customize student/academic information
|
|
32
|
+
* - Add attachment details for announcements
|
|
33
|
+
* - Adapt data based on backend responses
|
|
34
|
+
*/
|
|
35
|
+
figma.connect(HomeParentPattern, FIGMA_URL, {
|
|
36
|
+
example: () => /*#__PURE__*/_jsx(HomeParentPattern, {
|
|
37
|
+
showGreeting: true,
|
|
38
|
+
greetingUserName: "Mathers",
|
|
39
|
+
greetingText: "Good Morning",
|
|
40
|
+
greetingSubtitle: "Viewing : Marshall, CSE - B",
|
|
41
|
+
greetingOverviewText: "Attendance : 84.6 % \u2022 Fees : Due in 3 days",
|
|
42
|
+
showScheduleButton: true,
|
|
43
|
+
showActionCenter: true,
|
|
44
|
+
actionCenterTitle: "Action Center",
|
|
45
|
+
actionCenterSubtitle: "Actions that need your attention",
|
|
46
|
+
actionCenterItems: ['Fee Due'],
|
|
47
|
+
showAcademics: true,
|
|
48
|
+
academicsTitle: "Academics",
|
|
49
|
+
semesterTitle: "Semester 4",
|
|
50
|
+
courseCount: "5 Courses",
|
|
51
|
+
showViewCoursesButton: true,
|
|
52
|
+
showCalendarButton: true,
|
|
53
|
+
showQuickAccess: true,
|
|
54
|
+
quickAccessItems: [{
|
|
55
|
+
title: 'Attendance',
|
|
56
|
+
subtitle: '84.6 %'
|
|
57
|
+
}, {
|
|
58
|
+
title: 'Payments',
|
|
59
|
+
subtitle: 'No Dues'
|
|
60
|
+
}, {
|
|
61
|
+
title: 'Exam Scores',
|
|
62
|
+
subtitle: 'CGPA : 7.2'
|
|
63
|
+
}, {
|
|
64
|
+
title: 'Services',
|
|
65
|
+
subtitle: '1 Active'
|
|
66
|
+
}],
|
|
67
|
+
showMentor: true,
|
|
68
|
+
mentorName: "Dr. Dre",
|
|
69
|
+
mentorTitle: "Professor, CSE Department",
|
|
70
|
+
showAnnouncements: true,
|
|
71
|
+
announcementTitle: "Examination Timetable Out",
|
|
72
|
+
announcementAuthor: "CSE HOD",
|
|
73
|
+
announcementSubtitle: "CSE : Batch 2023-24",
|
|
74
|
+
announcementContent: "Examination Timetable has been updated and Published. Students are requested to register before 24th of this Month.",
|
|
75
|
+
showAttachmentDetails: true,
|
|
76
|
+
attachmentFileName: "File Name",
|
|
77
|
+
attachmentPages: "27 Pages",
|
|
78
|
+
attachmentSizeMB: "3 MB",
|
|
79
|
+
attachmentType: "PDF"
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=HomeParentPattern.figma.js.map
|
package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","HomeParentPattern","jsx","_jsx","FIGMA_URL","connect","example","showGreeting","greetingUserName","greetingText","greetingSubtitle","greetingOverviewText","showScheduleButton","showActionCenter","actionCenterTitle","actionCenterSubtitle","actionCenterItems","showAcademics","academicsTitle","semesterTitle","courseCount","showViewCoursesButton","showCalendarButton","showQuickAccess","quickAccessItems","title","subtitle","showMentor","mentorName","mentorTitle","showAnnouncements","announcementTitle","announcementAuthor","announcementSubtitle","announcementContent","showAttachmentDetails","attachmentFileName","attachmentPages","attachmentSizeMB","attachmentType"],"sourceRoot":"../../../../../src","sources":["patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,iBAAiB,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExD,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B;IAC1CC,mBAAmB,EAAC,qHAAqH;IACzIC,qBAAqB,EAAE,IAAK;IAC5BC,kBAAkB,EAAC,WAAW;IAC9BC,eAAe,EAAC,UAAU;IAC1BC,gBAAgB,EAAC,MAAM;IACvBC,cAAc,EAAC;EAAK,CACrB;AAEL,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import { View, ScrollView } from 'react-native';
|
|
5
|
+
import { Greeting } from "../../../components/DataDisplay/Greeting/Greeting.js";
|
|
6
|
+
import { Banner } from "../../../components/DataDisplay/Banner/Banner.js";
|
|
7
|
+
import { Card } from "../../../components/DataDisplay/Card/Card.js";
|
|
8
|
+
import { FeedCard } from "../../../components/DataDisplay/FeedCard/FeedCard.js";
|
|
9
|
+
import { Text } from "../../../components/Input/Text/Text.js";
|
|
10
|
+
import { Button } from "../../../components/Input/Button/Button.js";
|
|
11
|
+
|
|
12
|
+
/* ============================================================================
|
|
13
|
+
* Types
|
|
14
|
+
* ============================================================================ */
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
/* ============================================================================
|
|
17
|
+
* Component
|
|
18
|
+
* ============================================================================ */
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* HomeParentPattern Component
|
|
22
|
+
*
|
|
23
|
+
* A comprehensive parent home screen layout pattern that displays:
|
|
24
|
+
* - Personalized greeting with attendance overview and schedule
|
|
25
|
+
* - Action center for pending items and alerts
|
|
26
|
+
* - Academics section with semester and course information
|
|
27
|
+
* - Quick access dashboard (Attendance, Payments, Exam Scores, Services)
|
|
28
|
+
* - Mentor/Teacher information card
|
|
29
|
+
* - Announcements feed with file attachments
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <HomeParentPattern
|
|
34
|
+
* showGreeting={true}
|
|
35
|
+
* showActionCenter={true}
|
|
36
|
+
* showAcademics={true}
|
|
37
|
+
* showQuickAccess={true}
|
|
38
|
+
* showAnnouncements={true}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export function HomeParentPattern({
|
|
43
|
+
// Header section
|
|
44
|
+
showGreeting = true,
|
|
45
|
+
greetingUserName = 'Mathers',
|
|
46
|
+
greetingText = 'Good Morning',
|
|
47
|
+
greetingSubtitle = 'Viewing : Marshall, CSE - B',
|
|
48
|
+
greetingOverviewText = 'Attendance : 84.6 % • Fees : Due in 3 days',
|
|
49
|
+
_showScheduleButton = true,
|
|
50
|
+
onSchedulePress,
|
|
51
|
+
// Action Center section
|
|
52
|
+
showActionCenter = true,
|
|
53
|
+
actionCenterTitle = 'Action Center',
|
|
54
|
+
actionCenterSubtitle = 'Actions that need your attention',
|
|
55
|
+
actionCenterItems = ['Fee Due'],
|
|
56
|
+
// Academics section
|
|
57
|
+
showAcademics = true,
|
|
58
|
+
academicsTitle = 'Academics',
|
|
59
|
+
semesterTitle = 'Semester 4',
|
|
60
|
+
courseCount = '5 Courses',
|
|
61
|
+
showViewCoursesButton = true,
|
|
62
|
+
showCalendarButton = true,
|
|
63
|
+
// Quick Access section
|
|
64
|
+
showQuickAccess = true,
|
|
65
|
+
quickAccessItems = [{
|
|
66
|
+
title: 'Attendance',
|
|
67
|
+
subtitle: '84.6 %'
|
|
68
|
+
}, {
|
|
69
|
+
title: 'Payments',
|
|
70
|
+
subtitle: 'No Dues'
|
|
71
|
+
}, {
|
|
72
|
+
title: 'Exam Scores',
|
|
73
|
+
subtitle: 'CGPA : 7.2'
|
|
74
|
+
}, {
|
|
75
|
+
title: 'Services',
|
|
76
|
+
subtitle: '1 Active'
|
|
77
|
+
}],
|
|
78
|
+
// Mentor section
|
|
79
|
+
showMentor = true,
|
|
80
|
+
mentorName = 'Dr. Dre',
|
|
81
|
+
mentorTitle = 'Professor, CSE Department',
|
|
82
|
+
// Announcements section
|
|
83
|
+
showAnnouncements = true,
|
|
84
|
+
announcementTitle = 'Examination Timetable Out',
|
|
85
|
+
announcementAuthor = 'CSE HOD',
|
|
86
|
+
announcementSubtitle = 'CSE : Batch 2023-24',
|
|
87
|
+
announcementContent = 'Examination Timetable has been updated and Published. Students are requested to register before 24th of this Month.',
|
|
88
|
+
showAttachmentDetails = true,
|
|
89
|
+
attachmentFileName = 'File Name',
|
|
90
|
+
attachmentPages = '27 Pages',
|
|
91
|
+
attachmentSizeMB = '3 MB',
|
|
92
|
+
attachmentType = 'PDF',
|
|
93
|
+
// Styling
|
|
94
|
+
style,
|
|
95
|
+
testID
|
|
96
|
+
}) {
|
|
97
|
+
return /*#__PURE__*/_jsx(ScrollView, {
|
|
98
|
+
testID: testID ?? 'home-parent-pattern',
|
|
99
|
+
style: style,
|
|
100
|
+
className: "flex-1 bg-surface-page",
|
|
101
|
+
showsVerticalScrollIndicator: false,
|
|
102
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
103
|
+
className: "gap-8 py-5 px-5",
|
|
104
|
+
children: [showGreeting && /*#__PURE__*/_jsx(View, {
|
|
105
|
+
className: "gap-4",
|
|
106
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
107
|
+
className: "gap-2",
|
|
108
|
+
children: [/*#__PURE__*/_jsx(Greeting, {
|
|
109
|
+
userName: greetingUserName,
|
|
110
|
+
greetingText: greetingText,
|
|
111
|
+
subtitle: greetingSubtitle,
|
|
112
|
+
ctaLayout: "icon",
|
|
113
|
+
showNextUp: true,
|
|
114
|
+
onSchedulePress: onSchedulePress
|
|
115
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
116
|
+
className: "text-xs text-text-secondary px-0",
|
|
117
|
+
children: greetingOverviewText
|
|
118
|
+
})]
|
|
119
|
+
})
|
|
120
|
+
}), showActionCenter && /*#__PURE__*/_jsx(View, {
|
|
121
|
+
className: "gap-4",
|
|
122
|
+
children: /*#__PURE__*/_jsx(Banner, {
|
|
123
|
+
style: "solid",
|
|
124
|
+
title: actionCenterTitle,
|
|
125
|
+
subtitle: actionCenterSubtitle,
|
|
126
|
+
showBadge: true,
|
|
127
|
+
badge1Text: `${actionCenterItems.length}`,
|
|
128
|
+
actionItem1: actionCenterItems[0] || 'Fee Due',
|
|
129
|
+
showActionItem2: actionCenterItems.length > 1,
|
|
130
|
+
actionItem2: actionCenterItems[1] || '',
|
|
131
|
+
showMoreLabel: actionCenterItems.length > 2,
|
|
132
|
+
moreLabel: `+ ${actionCenterItems.length - 2} more`,
|
|
133
|
+
showActionItems: true,
|
|
134
|
+
showTrailing: true
|
|
135
|
+
})
|
|
136
|
+
}), showAcademics && /*#__PURE__*/_jsxs(View, {
|
|
137
|
+
className: "gap-2",
|
|
138
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
139
|
+
className: "text-sm font-semibold text-text-secondary px-5",
|
|
140
|
+
children: academicsTitle
|
|
141
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
142
|
+
className: "gap-2 px-5",
|
|
143
|
+
children: [/*#__PURE__*/_jsx(Card, {
|
|
144
|
+
size: "lg",
|
|
145
|
+
title: semesterTitle,
|
|
146
|
+
subtitle: courseCount,
|
|
147
|
+
showSubtitle: true,
|
|
148
|
+
showMedia: false,
|
|
149
|
+
showLeading: false,
|
|
150
|
+
showBadges: false,
|
|
151
|
+
showFooterActions: false
|
|
152
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
153
|
+
className: "flex-row gap-2",
|
|
154
|
+
children: [showViewCoursesButton && /*#__PURE__*/_jsx(Button, {
|
|
155
|
+
variant: "default",
|
|
156
|
+
size: "default",
|
|
157
|
+
className: "flex-1",
|
|
158
|
+
children: "View Courses"
|
|
159
|
+
}), showCalendarButton && /*#__PURE__*/_jsx(Button, {
|
|
160
|
+
variant: "secondary",
|
|
161
|
+
size: "default",
|
|
162
|
+
className: "flex-1",
|
|
163
|
+
children: "Calendar"
|
|
164
|
+
})]
|
|
165
|
+
})]
|
|
166
|
+
})]
|
|
167
|
+
}), showQuickAccess && /*#__PURE__*/_jsxs(View, {
|
|
168
|
+
className: "gap-2",
|
|
169
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
170
|
+
className: "text-sm font-semibold text-text-secondary px-5",
|
|
171
|
+
children: "Quick Access"
|
|
172
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
173
|
+
className: "flex-row flex-wrap gap-2 px-5 justify-between",
|
|
174
|
+
children: quickAccessItems.map((item, index) => /*#__PURE__*/_jsx(View, {
|
|
175
|
+
style: {
|
|
176
|
+
width: '48%'
|
|
177
|
+
},
|
|
178
|
+
children: /*#__PURE__*/_jsx(Card, {
|
|
179
|
+
size: "sm",
|
|
180
|
+
title: item.title,
|
|
181
|
+
subtitle: item.subtitle,
|
|
182
|
+
showSubtitle: true,
|
|
183
|
+
showMedia: false,
|
|
184
|
+
showLeading: true,
|
|
185
|
+
showBadges: false,
|
|
186
|
+
showFooterActions: false,
|
|
187
|
+
leadingType: "avatar",
|
|
188
|
+
avatarInitials: item.title.slice(0, 2).toUpperCase()
|
|
189
|
+
})
|
|
190
|
+
}, index))
|
|
191
|
+
})]
|
|
192
|
+
}), showMentor && /*#__PURE__*/_jsxs(View, {
|
|
193
|
+
className: "gap-2",
|
|
194
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
195
|
+
className: "text-sm font-semibold text-text-secondary px-5",
|
|
196
|
+
children: "Mentor"
|
|
197
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
198
|
+
className: "px-5",
|
|
199
|
+
children: /*#__PURE__*/_jsx(Card, {
|
|
200
|
+
size: "sm",
|
|
201
|
+
title: mentorName,
|
|
202
|
+
subtitle: mentorTitle,
|
|
203
|
+
showSubtitle: true,
|
|
204
|
+
showMedia: false,
|
|
205
|
+
showLeading: true,
|
|
206
|
+
showBadges: false,
|
|
207
|
+
showFooterActions: false,
|
|
208
|
+
leadingType: "avatar",
|
|
209
|
+
avatarInitials: mentorName.slice(0, 2).toUpperCase()
|
|
210
|
+
})
|
|
211
|
+
})]
|
|
212
|
+
}), showAnnouncements && /*#__PURE__*/_jsxs(View, {
|
|
213
|
+
className: "gap-2",
|
|
214
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
215
|
+
className: "flex-row justify-between items-center px-5",
|
|
216
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
217
|
+
className: "text-sm font-semibold text-text-secondary",
|
|
218
|
+
children: "Announcements"
|
|
219
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
220
|
+
className: "text-xs",
|
|
221
|
+
children: "\u2192"
|
|
222
|
+
})]
|
|
223
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
224
|
+
className: "px-5",
|
|
225
|
+
children: /*#__PURE__*/_jsx(FeedCard, {
|
|
226
|
+
type: "announcement",
|
|
227
|
+
authorName: announcementAuthor,
|
|
228
|
+
postTitle: announcementTitle,
|
|
229
|
+
subtitle: announcementSubtitle,
|
|
230
|
+
postContent: announcementContent,
|
|
231
|
+
mediaType: showAttachmentDetails ? 'file' : 'image',
|
|
232
|
+
fileName: attachmentFileName,
|
|
233
|
+
filePages: attachmentPages,
|
|
234
|
+
fileSizeMB: attachmentSizeMB,
|
|
235
|
+
fileType: attachmentType,
|
|
236
|
+
showMedia: showAttachmentDetails,
|
|
237
|
+
showHeader: true,
|
|
238
|
+
showPostContent: true,
|
|
239
|
+
showBody: true,
|
|
240
|
+
showFooterActions: true,
|
|
241
|
+
showLeading: true,
|
|
242
|
+
showSubtitle: true,
|
|
243
|
+
showBadges: false,
|
|
244
|
+
showSecondaryButton: false
|
|
245
|
+
})
|
|
246
|
+
})]
|
|
247
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
248
|
+
style: {
|
|
249
|
+
height: 96
|
|
250
|
+
}
|
|
251
|
+
})]
|
|
252
|
+
})
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
HomeParentPattern.displayName = 'HomeParentPattern';
|
|
256
|
+
//# sourceMappingURL=HomeParentPattern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","ScrollView","Greeting","Banner","Card","FeedCard","Text","Button","jsx","_jsx","jsxs","_jsxs","HomeParentPattern","showGreeting","greetingUserName","greetingText","greetingSubtitle","greetingOverviewText","_showScheduleButton","onSchedulePress","showActionCenter","actionCenterTitle","actionCenterSubtitle","actionCenterItems","showAcademics","academicsTitle","semesterTitle","courseCount","showViewCoursesButton","showCalendarButton","showQuickAccess","quickAccessItems","title","subtitle","showMentor","mentorName","mentorTitle","showAnnouncements","announcementTitle","announcementAuthor","announcementSubtitle","announcementContent","showAttachmentDetails","attachmentFileName","attachmentPages","attachmentSizeMB","attachmentType","style","testID","className","showsVerticalScrollIndicator","children","userName","ctaLayout","showNextUp","showBadge","badge1Text","length","actionItem1","showActionItem2","actionItem2","showMoreLabel","moreLabel","showActionItems","showTrailing","size","showSubtitle","showMedia","showLeading","showBadges","showFooterActions","variant","map","item","index","width","leadingType","avatarInitials","slice","toUpperCase","type","authorName","postTitle","postContent","mediaType","fileName","filePages","fileSizeMB","fileType","showHeader","showPostContent","showBody","showSecondaryButton","height","displayName"],"sourceRoot":"../../../../../src","sources":["patterns/pattern-components/HomeParentPattern/HomeParentPattern.tsx"],"mappings":";;AAAA;AACA,SAASA,IAAI,EAAEC,UAAU,QAAwC,cAAc;AAE/E,SAASC,QAAQ,QAAQ,sDAAmD;AAC5E,SAASC,MAAM,QAAQ,kDAA+C;AACtE,SAASC,IAAI,QAAQ,8CAA2C;AAChE,SAASC,QAAQ,QAAQ,sDAAmD;AAC5E,SAASC,IAAI,QAAQ,wCAAqC;AAC1D,SAASC,MAAM,QAAQ,4CAAyC;;AAEhE;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA0DA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,i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MAAE,CAAE,CAAC;IAAA,CAC3B;EAAC,CACG,CAAC;AAEjB;AAEAjF,iBAAiB,CAACkF,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HomeParentPattern"],"sourceRoot":"../../../../../src","sources":["patterns/pattern-components/HomeParentPattern/index.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,wBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import figma from '@figma/code-connect';
|
|
4
|
+
import { HomeStudentPattern } from "./HomeStudentPattern.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const FIGMA_URL = 'https://www.figma.com/design/YTb27Onq7Zk8OV16fHptxJ/Campx-App?node-id=178-2147';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* HomeStudentPattern - Student home screen layout pattern
|
|
10
|
+
*
|
|
11
|
+
* Use cases:
|
|
12
|
+
* - Student dashboard home screens
|
|
13
|
+
* - Educational app main screens
|
|
14
|
+
* - Course management interfaces
|
|
15
|
+
* - Campus life discovery screens
|
|
16
|
+
*
|
|
17
|
+
* Features:
|
|
18
|
+
* - Personalized greeting with schedule quick access
|
|
19
|
+
* - Action center for pending items and alerts
|
|
20
|
+
* - Next class preparation section with course details
|
|
21
|
+
* - Quick access dashboard (Attendance, Payments, Scores, Services)
|
|
22
|
+
* - Campus life shortcuts (Clubs, Events)
|
|
23
|
+
* - Mentor information card
|
|
24
|
+
* - Announcements feed with latest updates
|
|
25
|
+
* - All sections are independently configurable
|
|
26
|
+
*
|
|
27
|
+
* Customization:
|
|
28
|
+
* - Show/hide individual sections
|
|
29
|
+
* - Customize titles, subtitles, and content
|
|
30
|
+
* - Configure button callbacks
|
|
31
|
+
* - Adapt data based on backend responses
|
|
32
|
+
*/
|
|
33
|
+
figma.connect(HomeStudentPattern, FIGMA_URL, {
|
|
34
|
+
example: () => /*#__PURE__*/_jsx(HomeStudentPattern, {
|
|
35
|
+
showGreeting: true,
|
|
36
|
+
greetingUserName: "Marshall",
|
|
37
|
+
greetingText: "Good Morning",
|
|
38
|
+
greetingSubtitle: "You have 3 Classes today",
|
|
39
|
+
showScheduleButton: true,
|
|
40
|
+
showActionCenter: true,
|
|
41
|
+
actionCenterTitle: "Action Center",
|
|
42
|
+
actionCenterSubtitle: "Actions that need your attention",
|
|
43
|
+
actionCenterItems: ['Fee Due', 'Feedback Submission Pending'],
|
|
44
|
+
showNextClass: true,
|
|
45
|
+
nextClassTitle: "Microprocessors Lab",
|
|
46
|
+
nextClassTime: "10:00 AM - 11:00 AM",
|
|
47
|
+
showCourseButton: true,
|
|
48
|
+
showResourcesButton: true,
|
|
49
|
+
showQuickAccess: true,
|
|
50
|
+
quickAccessItems: [{
|
|
51
|
+
title: 'Attendance',
|
|
52
|
+
subtitle: '84.6 %'
|
|
53
|
+
}, {
|
|
54
|
+
title: 'Payments',
|
|
55
|
+
subtitle: 'No Dues'
|
|
56
|
+
}, {
|
|
57
|
+
title: 'Exam Scores',
|
|
58
|
+
subtitle: 'CGPA : 7.2'
|
|
59
|
+
}, {
|
|
60
|
+
title: 'Services',
|
|
61
|
+
subtitle: '1 Active'
|
|
62
|
+
}],
|
|
63
|
+
showCampusLife: true,
|
|
64
|
+
showMentor: true,
|
|
65
|
+
mentorName: "Dr. Dre",
|
|
66
|
+
mentorTitle: "Professor, CSE Department",
|
|
67
|
+
showAnnouncements: true,
|
|
68
|
+
announcementTitle: "Examination Timetable Out",
|
|
69
|
+
announcementAuthor: "CSE HOD",
|
|
70
|
+
announcementContent: "Examination Timetable has been updated and Published. Students are requested to register before 24th of this Month."
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=HomeStudentPattern.figma.js.map
|
package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","HomeStudentPattern","jsx","_jsx","FIGMA_URL","connect","example","showGreeting","greetingUserName","greetingText","greetingSubtitle","showScheduleButton","showActionCenter","actionCenterTitle","actionCenterSubtitle","actionCenterItems","showNextClass","nextClassTitle","nextClassTime","showCourseButton","showResourcesButton","showQuickAccess","quickAccessItems","title","subtitle","showCampusLife","showMentor","mentorName","mentorTitle","showAnnouncements","announcementTitle","announcementAuthor","announcementContent"],"sourceRoot":"../../../../../src","sources":["patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,kBAAkB,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1D,MAAMC,SAAS,GACb,gFAAgF;;AAElF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAJ,KAAK,CAACK,OAAO,CAACJ,kBAAkB,EAAEG,SAAS,EAAE;EAC3CE,OAAO,EAAEA,CAAA,kBACPH,IAAA,CAACF,kBAAkB;IACjBM,YAAY,EAAE,IAAK;IACnBC,gBAAgB,EAAC,UAAU;IAC3BC,YAAY,EAAC,cAAc;IAC3BC,gBAAgB,EAAC,0BAA0B;IAC3CC,kBAAkB,EAAE,IAAK;IACzBC,gBAAgB,EAAE,IAAK;IACvBC,iBAAiB,EAAC,eAAe;IACjCC,oBAAoB,EAAC,kCAAkC;IACvDC,iBAAiB,EAAE,CAAC,SAAS,EAAE,6BAA6B,CAAE;IAC9DC,aAAa,EAAE,IAAK;IACpBC,cAAc,EAAC,qBAAqB;IACpCC,aAAa,EAAC,qBAAqB;IACnCC,gBAAgB,EAAE,IAAK;IACvBC,mBAAmB,EAAE,IAAK;IAC1BC,eAAe,EAAE,IAAK;IACtBC,gBAAgB,EAAE,CAChB;MAAEC,KAAK,EAAE,YA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