@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.
Files changed (126) hide show
  1. package/global.css +3 -3
  2. package/lib/global.css +1 -1
  3. package/lib/module/assets/icons/Image.png +0 -0
  4. package/lib/module/components/DataDisplay/Avatar/Avatar.js +1 -1
  5. package/lib/module/components/DataDisplay/Avatar/Avatar.js.map +1 -1
  6. package/lib/module/components/DataDisplay/Banner/Banner.figma.js +17 -3
  7. package/lib/module/components/DataDisplay/Banner/Banner.figma.js.map +1 -1
  8. package/lib/module/components/DataDisplay/Banner/Banner.js +138 -34
  9. package/lib/module/components/DataDisplay/Banner/Banner.js.map +1 -1
  10. package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.js +2 -2
  11. package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.js.map +1 -1
  12. package/lib/module/components/DataDisplay/Card/Card.figma.js +11 -4
  13. package/lib/module/components/DataDisplay/Card/Card.figma.js.map +1 -1
  14. package/lib/module/components/DataDisplay/Card/Card.js +119 -65
  15. package/lib/module/components/DataDisplay/Card/Card.js.map +1 -1
  16. package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.figma.js +54 -0
  17. package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.figma.js.map +1 -0
  18. package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.js +318 -0
  19. package/lib/module/components/DataDisplay/ChatBubble/ChatBubble.js.map +1 -0
  20. package/lib/module/components/DataDisplay/ChatBubble/index.js +4 -0
  21. package/lib/module/components/DataDisplay/ChatBubble/index.js.map +1 -0
  22. package/lib/module/components/DataDisplay/FeedCard/AttachmentDetails.js +69 -0
  23. package/lib/module/components/DataDisplay/FeedCard/AttachmentDetails.js.map +1 -0
  24. package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js +19 -17
  25. package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js.map +1 -1
  26. package/lib/module/components/DataDisplay/FeedCard/FeedCard.js +30 -19
  27. package/lib/module/components/DataDisplay/FeedCard/FeedCard.js.map +1 -1
  28. package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js +5 -5
  29. package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js.map +1 -1
  30. package/lib/module/components/DataDisplay/Greeting/Greeting.js +46 -70
  31. package/lib/module/components/DataDisplay/Greeting/Greeting.js.map +1 -1
  32. package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.figma.js +16 -0
  33. package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.figma.js.map +1 -0
  34. package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.js +111 -0
  35. package/lib/module/components/DataDisplay/ProfileCard/ProfileCard.js.map +1 -0
  36. package/lib/module/components/DataDisplay/ProfileCard/index.js +4 -0
  37. package/lib/module/components/DataDisplay/ProfileCard/index.js.map +1 -0
  38. package/lib/module/components/Input/Button/Button.js +77 -129
  39. package/lib/module/components/Input/Button/Button.js.map +1 -1
  40. package/lib/module/components/Navigation/Appbar/AppBar.figma.js +18 -6
  41. package/lib/module/components/Navigation/Appbar/AppBar.figma.js.map +1 -1
  42. package/lib/module/components/Navigation/Appbar/AppBar.js +36 -9
  43. package/lib/module/components/Navigation/Appbar/AppBar.js.map +1 -1
  44. package/lib/module/components/Navigation/Popover/Popover.js +1 -1
  45. package/lib/module/components/Navigation/Popover/Popover.js.map +1 -1
  46. package/lib/module/components/ui/index.js +2 -0
  47. package/lib/module/components/ui/index.js.map +1 -1
  48. package/lib/module/lib/theme.js +2 -2
  49. package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.figma.js +196 -0
  50. package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.figma.js.map +1 -0
  51. package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.js +255 -0
  52. package/lib/module/patterns/pattern-components/AccountPattern/AccountPattern.js.map +1 -0
  53. package/lib/module/patterns/pattern-components/AccountPattern/index.js +4 -0
  54. package/lib/module/patterns/pattern-components/AccountPattern/index.js.map +1 -0
  55. package/lib/module/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.js +1 -1
  56. package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.js +2 -4
  57. package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.js.map +1 -1
  58. package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.figma.js +144 -0
  59. package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.figma.js.map +1 -0
  60. package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.js +213 -0
  61. package/lib/module/patterns/pattern-components/FeedPattern/FeedPattern.js.map +1 -0
  62. package/lib/module/patterns/pattern-components/FeedPattern/index.js +4 -0
  63. package/lib/module/patterns/pattern-components/FeedPattern/index.js.map +1 -0
  64. package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.figma.js +70 -0
  65. package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.figma.js.map +1 -0
  66. package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.js +260 -0
  67. package/lib/module/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.js.map +1 -0
  68. package/lib/module/patterns/pattern-components/HomeFacultyPattern/index.js +4 -0
  69. package/lib/module/patterns/pattern-components/HomeFacultyPattern/index.js.map +1 -0
  70. package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.js +82 -0
  71. package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.js.map +1 -0
  72. package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.js +256 -0
  73. package/lib/module/patterns/pattern-components/HomeParentPattern/HomeParentPattern.js.map +1 -0
  74. package/lib/module/patterns/pattern-components/HomeParentPattern/index.js +4 -0
  75. package/lib/module/patterns/pattern-components/HomeParentPattern/index.js.map +1 -0
  76. package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.js +73 -0
  77. package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.js.map +1 -0
  78. package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.js +283 -0
  79. package/lib/module/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.js.map +1 -0
  80. package/lib/module/patterns/pattern-components/HomeStudentPattern/index.js +4 -0
  81. package/lib/module/patterns/pattern-components/HomeStudentPattern/index.js.map +1 -0
  82. package/lib/module/patterns/pattern-components/index.js +5 -0
  83. package/lib/module/patterns/pattern-components/index.js.map +1 -1
  84. package/package.json +27 -1
  85. package/src/assets/icons/Image.png +0 -0
  86. package/src/components/DataDisplay/Avatar/Avatar.tsx +24 -21
  87. package/src/components/DataDisplay/Banner/Banner.figma.tsx +18 -3
  88. package/src/components/DataDisplay/Banner/Banner.tsx +153 -26
  89. package/src/components/DataDisplay/CalendarItem/CalendarItem.tsx +2 -2
  90. package/src/components/DataDisplay/Card/Card.figma.tsx +7 -3
  91. package/src/components/DataDisplay/Card/Card.tsx +152 -101
  92. package/src/components/DataDisplay/ChatBubble/ChatBubble.figma.tsx +54 -0
  93. package/src/components/DataDisplay/ChatBubble/ChatBubble.tsx +404 -0
  94. package/src/components/DataDisplay/ChatBubble/index.ts +8 -0
  95. package/src/components/DataDisplay/FeedCard/AttachmentDetails.tsx +96 -0
  96. package/src/components/DataDisplay/FeedCard/FeedCard.figma.tsx +17 -15
  97. package/src/components/DataDisplay/FeedCard/FeedCard.tsx +66 -35
  98. package/src/components/DataDisplay/Greeting/Greeting.figma.tsx +5 -5
  99. package/src/components/DataDisplay/Greeting/Greeting.tsx +58 -96
  100. package/src/components/DataDisplay/ProfileCard/ProfileCard.figma.tsx +17 -0
  101. package/src/components/DataDisplay/ProfileCard/ProfileCard.tsx +173 -0
  102. package/src/components/DataDisplay/ProfileCard/index.ts +1 -0
  103. package/src/components/Input/Button/Button.tsx +71 -157
  104. package/src/components/Navigation/Appbar/AppBar.figma.tsx +18 -6
  105. package/src/components/Navigation/Appbar/AppBar.tsx +58 -13
  106. package/src/components/Navigation/Popover/Popover.tsx +3 -3
  107. package/src/components/ui/index.ts +2 -0
  108. package/src/lib/theme.ts +2 -2
  109. package/src/patterns/pattern-components/AccountPattern/AccountPattern.figma.tsx +193 -0
  110. package/src/patterns/pattern-components/AccountPattern/AccountPattern.tsx +301 -0
  111. package/src/patterns/pattern-components/AccountPattern/index.ts +1 -0
  112. package/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.tsx +1 -1
  113. package/src/patterns/pattern-components/CardListPattern/CardListPattern.tsx +4 -9
  114. package/src/patterns/pattern-components/FeedPattern/FeedPattern.figma.tsx +146 -0
  115. package/src/patterns/pattern-components/FeedPattern/FeedPattern.tsx +264 -0
  116. package/src/patterns/pattern-components/FeedPattern/index.ts +2 -0
  117. package/src/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.figma.tsx +66 -0
  118. package/src/patterns/pattern-components/HomeFacultyPattern/HomeFacultyPattern.tsx +326 -0
  119. package/src/patterns/pattern-components/HomeFacultyPattern/index.ts +2 -0
  120. package/src/patterns/pattern-components/HomeParentPattern/HomeParentPattern.figma.tsx +75 -0
  121. package/src/patterns/pattern-components/HomeParentPattern/HomeParentPattern.tsx +328 -0
  122. package/src/patterns/pattern-components/HomeParentPattern/index.ts +2 -0
  123. package/src/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.figma.tsx +66 -0
  124. package/src/patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.tsx +355 -0
  125. package/src/patterns/pattern-components/HomeStudentPattern/index.ts +2 -0
  126. package/src/patterns/pattern-components/index.ts +5 -0
@@ -0,0 +1,283 @@
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
+ * HomeStudentPattern Component
22
+ *
23
+ * A comprehensive student home screen layout pattern that displays:
24
+ * - Personalized greeting with schedule quick access
25
+ * - Action center for pending items
26
+ * - Next class preparation section
27
+ * - Quick access dashboard (Attendance, Payments, Scores, Services)
28
+ * - Campus life shortcuts (Clubs, Events)
29
+ * - Mentor information
30
+ * - Announcements feed
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * <HomeStudentPattern
35
+ * showGreeting={true}
36
+ * showActionCenter={true}
37
+ * showNextClass={true}
38
+ * showQuickAccess={true}
39
+ * showAnnouncements={true}
40
+ * />
41
+ * ```
42
+ */
43
+ export function HomeStudentPattern({
44
+ // Header section
45
+ showGreeting = true,
46
+ greetingUserName = 'Marshall',
47
+ greetingText = 'Good Morning',
48
+ greetingSubtitle = 'You have 3 Classes today',
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', 'Feedback Submission Pending'],
56
+ // Next Class section
57
+ showNextClass = true,
58
+ nextClassTitle = 'Microprocessors Lab',
59
+ nextClassTime = '10:00 AM - 11:00 AM',
60
+ showCourseButton = true,
61
+ showResourcesButton = true,
62
+ // Quick Access section
63
+ showQuickAccess = true,
64
+ quickAccessItems = [{
65
+ title: 'Attendance',
66
+ subtitle: '84.6 %'
67
+ }, {
68
+ title: 'Payments',
69
+ subtitle: 'No Dues'
70
+ }, {
71
+ title: 'Exam Scores',
72
+ subtitle: 'CGPA : 7.2'
73
+ }, {
74
+ title: 'Services',
75
+ subtitle: '1 Active'
76
+ }],
77
+ // Campus Life section
78
+ showCampusLife = true,
79
+ // Mentor section
80
+ showMentor = true,
81
+ mentorName = 'Dr. Dre',
82
+ mentorTitle = 'Professor, CSE Department',
83
+ // Announcements section
84
+ showAnnouncements = true,
85
+ announcementTitle = 'Examination Timetable Out',
86
+ announcementAuthor = 'CSE HOD',
87
+ announcementContent = 'Examination Timetable has been updated and Published. Students are requested to register before 24th of this Month.',
88
+ // Styling
89
+ style,
90
+ testID
91
+ }) {
92
+ return /*#__PURE__*/_jsx(ScrollView, {
93
+ testID: testID ?? 'home-student-pattern',
94
+ style: style,
95
+ className: "flex-1 bg-surface-page",
96
+ showsVerticalScrollIndicator: false,
97
+ children: /*#__PURE__*/_jsxs(View, {
98
+ className: "gap-8 py-5 px-5",
99
+ children: [showGreeting && /*#__PURE__*/_jsx(View, {
100
+ className: "gap-4",
101
+ children: /*#__PURE__*/_jsx(Greeting, {
102
+ userName: greetingUserName,
103
+ greetingText: greetingText,
104
+ subtitle: greetingSubtitle,
105
+ ctaLayout: "icon",
106
+ showNextUp: false,
107
+ onSchedulePress: onSchedulePress
108
+ })
109
+ }), showActionCenter && /*#__PURE__*/_jsx(View, {
110
+ className: "gap-4",
111
+ children: /*#__PURE__*/_jsx(Banner, {
112
+ style: "solid",
113
+ title: actionCenterTitle,
114
+ subtitle: actionCenterSubtitle,
115
+ showBadge: true,
116
+ badge1Text: `${actionCenterItems.length}`,
117
+ actionItem1: actionCenterItems[0] || 'Fee Due',
118
+ showActionItem2: actionCenterItems.length > 1,
119
+ actionItem2: actionCenterItems[1] || 'Feedback Submission Pending',
120
+ showMoreLabel: actionCenterItems.length > 2,
121
+ moreLabel: `+ ${actionCenterItems.length - 2} more`,
122
+ showActionItems: true,
123
+ showTrailing: true
124
+ })
125
+ }), showNextClass && /*#__PURE__*/_jsxs(View, {
126
+ className: "gap-2",
127
+ children: [/*#__PURE__*/_jsx(Text, {
128
+ className: "text-sm font-semibold text-text-secondary px-5",
129
+ children: "Prep for Next Class"
130
+ }), /*#__PURE__*/_jsxs(View, {
131
+ className: "gap-2 px-5",
132
+ children: [/*#__PURE__*/_jsx(Card, {
133
+ size: "lg",
134
+ title: nextClassTitle,
135
+ subtitle: nextClassTime,
136
+ showSubtitle: true,
137
+ showMedia: false,
138
+ showLeading: false,
139
+ showBadges: false,
140
+ showFooterActions: false
141
+ }), /*#__PURE__*/_jsxs(View, {
142
+ className: "flex-row gap-2",
143
+ children: [showCourseButton && /*#__PURE__*/_jsx(Button, {
144
+ variant: "default",
145
+ size: "default",
146
+ className: "flex-1",
147
+ children: "Open Course"
148
+ }), showResourcesButton && /*#__PURE__*/_jsx(Button, {
149
+ variant: "secondary",
150
+ size: "default",
151
+ className: "flex-1",
152
+ children: "Resources"
153
+ })]
154
+ }), /*#__PURE__*/_jsx(Text, {
155
+ className: "text-center text-sm font-semibold text-text-primary py-3",
156
+ children: "View All Courses \u2192"
157
+ })]
158
+ })]
159
+ }), showQuickAccess && /*#__PURE__*/_jsxs(View, {
160
+ className: "gap-2",
161
+ children: [/*#__PURE__*/_jsx(Text, {
162
+ className: "text-sm font-semibold text-text-secondary px-5",
163
+ children: "Quick Access"
164
+ }), /*#__PURE__*/_jsx(View, {
165
+ className: "flex-row flex-wrap gap-2 px-5 justify-between",
166
+ children: quickAccessItems.map((item, index) => /*#__PURE__*/_jsx(View, {
167
+ style: {
168
+ width: '48%'
169
+ },
170
+ children: /*#__PURE__*/_jsx(Card, {
171
+ size: "sm",
172
+ title: item.title,
173
+ subtitle: item.subtitle,
174
+ showSubtitle: true,
175
+ showMedia: false,
176
+ showLeading: true,
177
+ showBadges: false,
178
+ showFooterActions: false,
179
+ leadingType: "avatar",
180
+ avatarInitials: item.title.slice(0, 2).toUpperCase()
181
+ })
182
+ }, index))
183
+ })]
184
+ }), showCampusLife && /*#__PURE__*/_jsxs(View, {
185
+ className: "gap-2",
186
+ children: [/*#__PURE__*/_jsx(Text, {
187
+ className: "text-sm font-semibold text-text-secondary px-5",
188
+ children: "Campus Life"
189
+ }), /*#__PURE__*/_jsxs(View, {
190
+ className: "flex-row gap-2 px-5",
191
+ children: [/*#__PURE__*/_jsx(View, {
192
+ style: {
193
+ flex: 1
194
+ },
195
+ children: /*#__PURE__*/_jsx(Card, {
196
+ size: "sm",
197
+ title: "Clubs",
198
+ subtitle: "22 Clubs Available",
199
+ showSubtitle: true,
200
+ showMedia: false,
201
+ showLeading: true,
202
+ showBadges: false,
203
+ showFooterActions: false,
204
+ leadingType: "avatar",
205
+ avatarInitials: "CL"
206
+ })
207
+ }), /*#__PURE__*/_jsx(View, {
208
+ style: {
209
+ flex: 1
210
+ },
211
+ children: /*#__PURE__*/_jsx(Card, {
212
+ size: "sm",
213
+ title: "Events",
214
+ subtitle: "2 New Events",
215
+ showSubtitle: true,
216
+ showMedia: false,
217
+ showLeading: true,
218
+ showBadges: false,
219
+ showFooterActions: false,
220
+ leadingType: "avatar",
221
+ avatarInitials: "EV"
222
+ })
223
+ })]
224
+ })]
225
+ }), showMentor && /*#__PURE__*/_jsxs(View, {
226
+ className: "gap-2",
227
+ children: [/*#__PURE__*/_jsx(Text, {
228
+ className: "text-sm font-semibold text-text-secondary px-5",
229
+ children: "Mentor"
230
+ }), /*#__PURE__*/_jsx(View, {
231
+ className: "px-5",
232
+ children: /*#__PURE__*/_jsx(Card, {
233
+ size: "sm",
234
+ title: mentorName,
235
+ subtitle: mentorTitle,
236
+ showSubtitle: true,
237
+ showMedia: false,
238
+ showLeading: true,
239
+ showBadges: false,
240
+ showFooterActions: false,
241
+ leadingType: "avatar",
242
+ avatarInitials: mentorName.slice(0, 2).toUpperCase()
243
+ })
244
+ })]
245
+ }), showAnnouncements && /*#__PURE__*/_jsxs(View, {
246
+ className: "gap-2",
247
+ children: [/*#__PURE__*/_jsxs(View, {
248
+ className: "flex-row justify-between items-center px-5",
249
+ children: [/*#__PURE__*/_jsx(Text, {
250
+ className: "text-sm font-semibold text-text-secondary",
251
+ children: "Announcements"
252
+ }), /*#__PURE__*/_jsx(Text, {
253
+ className: "text-xs",
254
+ children: "\u2192"
255
+ })]
256
+ }), /*#__PURE__*/_jsx(View, {
257
+ className: "px-5",
258
+ children: /*#__PURE__*/_jsx(FeedCard, {
259
+ type: "announcement",
260
+ authorName: announcementAuthor,
261
+ postTitle: announcementTitle,
262
+ postContent: announcementContent,
263
+ showMedia: true,
264
+ showHeader: true,
265
+ showPostContent: true,
266
+ showBody: true,
267
+ showFooterActions: true,
268
+ showLeading: true,
269
+ showSubtitle: false,
270
+ showBadges: false,
271
+ showSecondaryButton: false
272
+ })
273
+ })]
274
+ }), /*#__PURE__*/_jsx(View, {
275
+ style: {
276
+ height: 96
277
+ }
278
+ })]
279
+ })
280
+ });
281
+ }
282
+ HomeStudentPattern.displayName = 'HomeStudentPattern';
283
+ //# sourceMappingURL=HomeStudentPattern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","ScrollView","Greeting","Banner","Card","FeedCard","Text","Button","jsx","_jsx","jsxs","_jsxs","HomeStudentPattern","showGreeting","greetingUserName","greetingText","greetingSubtitle","_showScheduleButton","onSchedulePress","showActionCenter","actionCenterTitle","actionCenterSubtitle","actionCenterItems","showNextClass","nextClassTitle","nextClassTime","showCourseButton","showResourcesButton","showQuickAccess","quickAccessItems","title","subtitle","showCampusLife","showMentor","mentorName","mentorTitle","showAnnouncements","announcementTitle","announcementAuthor","announcementContent","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","flex","type","authorName","postTitle","postContent","showHeader","showPostContent","showBody","showSecondaryButton","height","displayName"],"sourceRoot":"../../../../../src","sources":["patterns/pattern-components/HomeStudentPattern/HomeStudentPattern.tsx"],"mappings":";;AAAA;AACA,SAASA,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entPattern } from "./HomeStudentPattern.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HomeStudentPattern"],"sourceRoot":"../../../../../src","sources":["patterns/pattern-components/HomeStudentPattern/index.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,yBAAsB","ignoreList":[]}
@@ -16,4 +16,9 @@ export * from "./EntityPatternStructured/index.js";
16
16
  export * from "./EntityPatternGuided/index.js";
17
17
  export * from "./CalendarPattern/index.js";
18
18
  export * from "./MonthlyCalendarPattern/index.js";
19
+ export * from "./HomeStudentPattern/index.js";
20
+ export * from "./HomeFacultyPattern/index.js";
21
+ export * from "./HomeParentPattern/index.js";
22
+ export * from "./FeedPattern/index.js";
23
+ export * from "./AccountPattern/index.js";
19
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["patterns/pattern-components/index.ts"],"mappings":";;AAAA;AACA,cAAc,+BAAsB;AACpC,cAAc,6BAAoB;AAClC,cAAc,uBAAc;AAC5B,cAAc,4BAAmB;AACjC,cAAc,4BAAmB;AACjC,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,4BAAmB;AACjC,cAAc,2BAAkB;AAChC,cAAc,wBAAe;AAC7B,cAAc,kCAAyB;AACvC,cAAc,oCAA2B;AACzC,cAAc,gCAAuB;AACrC,cAAc,4BAAmB;AACjC,cAAc,mCAA0B","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["patterns/pattern-components/index.ts"],"mappings":";;AAAA;AACA,cAAc,+BAAsB;AACpC,cAAc,6BAAoB;AAClC,cAAc,uBAAc;AAC5B,cAAc,4BAAmB;AACjC,cAAc,4BAAmB;AACjC,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,4BAAmB;AACjC,cAAc,2BAAkB;AAChC,cAAc,wBAAe;AAC7B,cAAc,kCAAyB;AACvC,cAAc,oCAA2B;AACzC,cAAc,gCAAuB;AACrC,cAAc,4BAAmB;AACjC,cAAc,mCAA0B;AACxC,cAAc,+BAAsB;AACpC,cAAc,+BAAsB;AACpC,cAAc,8BAAqB;AACnC,cAAc,wBAAe;AAC7B,cAAc,2BAAkB","ignoreList":[]}
package/package.json CHANGED
@@ -1,15 +1,41 @@
1
1
  {
2
2
  "name": "@campxdev/react-native-blueprint",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "This is a react-native package for mobile apps",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
7
+ "sideEffects": false,
7
8
  "exports": {
8
9
  ".": {
9
10
  "source": "./src/index.tsx",
10
11
  "types": "./lib/typescript/src/index.d.ts",
11
12
  "default": "./lib/module/index.js"
12
13
  },
14
+ "./lib/theme": {
15
+ "source": "./src/lib/theme.ts",
16
+ "types": "./lib/typescript/src/lib/theme.d.ts",
17
+ "default": "./lib/module/lib/theme.js"
18
+ },
19
+ "./lib/ThemeProvider": {
20
+ "source": "./src/lib/ThemeProvider.tsx",
21
+ "types": "./lib/typescript/src/lib/ThemeProvider.d.ts",
22
+ "default": "./lib/module/lib/ThemeProvider.js"
23
+ },
24
+ "./lib/utils": {
25
+ "source": "./src/lib/utils.ts",
26
+ "types": "./lib/typescript/src/lib/utils.d.ts",
27
+ "default": "./lib/module/lib/utils.js"
28
+ },
29
+ "./components": {
30
+ "source": "./src/components/ui/index.ts",
31
+ "types": "./lib/typescript/src/components/ui/index.d.ts",
32
+ "default": "./lib/module/components/ui/index.js"
33
+ },
34
+ "./patterns": {
35
+ "source": "./src/patterns/pattern-components/index.ts",
36
+ "types": "./lib/typescript/src/patterns/pattern-components/index.d.ts",
37
+ "default": "./lib/module/patterns/pattern-components/index.js"
38
+ },
13
39
  "./package.json": "./package.json",
14
40
  "./style": "./global.css"
15
41
  },
Binary file
@@ -29,29 +29,32 @@ type AvatarType = (typeof AvatarVariants.type)[number];
29
29
  * Variants
30
30
  * --------------------------------------------------- */
31
31
 
32
- const rootVariants = cva('items-center justify-center rounded-full bg-muted', {
33
- variants: {
34
- size: {
35
- sm: 'w-8 h-8', // 32
36
- default: 'w-12 h-12', // 48
37
- lg: 'w-[60px] h-[60px]', // 60
32
+ const rootVariants = cva(
33
+ 'items-center justify-center rounded-full bg-surface-subtle',
34
+ {
35
+ variants: {
36
+ size: {
37
+ sm: 'w-8 h-8', // 32
38
+ default: 'w-12 h-12', // 48
39
+ lg: 'w-[60px] h-[60px]', // 60
40
+ },
41
+ type: {
42
+ initials: '',
43
+ image: 'bg-[lightgray]',
44
+ icon: '',
45
+ },
46
+ ring: {
47
+ false: '',
48
+ true: 'ring-2 ring-primary ring-offset-2 ring-offset-background',
49
+ },
38
50
  },
39
- type: {
40
- initials: '',
41
- image: 'bg-[lightgray]',
42
- icon: '',
51
+ defaultVariants: {
52
+ size: 'sm',
53
+ type: 'initials',
54
+ ring: false,
43
55
  },
44
- ring: {
45
- false: '',
46
- true: 'ring-2 ring-primary ring-offset-2 ring-offset-background',
47
- },
48
- },
49
- defaultVariants: {
50
- size: 'sm',
51
- type: 'initials',
52
- ring: false,
53
- },
54
- });
56
+ }
57
+ );
55
58
 
56
59
  const textVariants = cva('font-semibold uppercase text-muted-foreground', {
57
60
  variants: {
@@ -2,24 +2,39 @@ import figma from '@figma/code-connect';
2
2
  import { Banner } from './Banner';
3
3
 
4
4
  const FIGMA_URL =
5
- 'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=454-8359';
5
+ 'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=554-2196';
6
6
 
7
7
  figma.connect(Banner, FIGMA_URL, {
8
8
  props: {
9
+ style: figma.enum('style', {
10
+ solid: 'solid',
11
+ outline: 'outline',
12
+ subtle: 'subtle',
13
+ }),
9
14
  title: figma.string('Title'),
10
15
  subtitle: figma.string('Subtitle'),
11
16
  showBadge: figma.boolean('Show Badge'),
17
+ actionItem1: figma.string('Action Item 1'),
18
+ showActionItem2: figma.boolean('Show ActionItem2'),
19
+ actionItem2: figma.string('Action Item 2'),
20
+ showMoreLabel: figma.boolean('Show moreLabel'),
21
+ moreLabel: figma.string('moreLabel'),
12
22
  showActionItems: figma.boolean('Show ActionItems'),
13
23
  showTrailing: figma.boolean('Show Trailing'),
14
24
  },
25
+
15
26
  example: (props) => (
16
27
  <Banner
28
+ style={props.style}
17
29
  title={props.title}
18
30
  subtitle={props.subtitle}
19
31
  showBadge={props.showBadge}
20
- badgeText="Badge"
32
+ actionItem1={props.actionItem1}
33
+ showActionItem2={props.showActionItem2}
34
+ actionItem2={props.actionItem2}
35
+ showMoreLabel={props.showMoreLabel}
36
+ moreLabel={props.moreLabel}
21
37
  showActionItems={props.showActionItems}
22
- actionItems={['Action Item', 'Action Item', 'Action Item']}
23
38
  showTrailing={props.showTrailing}
24
39
  />
25
40
  ),