@campxdev/react-native-blueprint 0.1.17 → 0.1.19

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 (364) hide show
  1. package/lib/global.css +1 -0
  2. package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js +42 -0
  3. package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js.map +1 -0
  4. package/lib/module/components/DataDisplay/FeedCard/FeedCard.js +261 -0
  5. package/lib/module/components/DataDisplay/FeedCard/FeedCard.js.map +1 -0
  6. package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js +8 -1
  7. package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js.map +1 -1
  8. package/lib/module/components/DataDisplay/Greeting/Greeting.js +75 -21
  9. package/lib/module/components/DataDisplay/Greeting/Greeting.js.map +1 -1
  10. package/lib/module/components/ui/index.js +1 -0
  11. package/lib/module/components/ui/index.js.map +1 -1
  12. package/lib/typescript/babel.config.d.ts +13 -0
  13. package/lib/typescript/babel.config.d.ts.map +1 -0
  14. package/lib/typescript/package.json +1 -0
  15. package/lib/typescript/src/app/_layout.d.ts +8 -0
  16. package/lib/typescript/src/app/_layout.d.ts.map +1 -0
  17. package/lib/typescript/src/assets/index.d.ts +2 -0
  18. package/lib/typescript/src/assets/index.d.ts.map +1 -0
  19. package/lib/typescript/src/assets/lotties/index.d.ts +14 -0
  20. package/lib/typescript/src/assets/lotties/index.d.ts.map +1 -0
  21. package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.d.ts +35 -0
  22. package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.d.ts.map +1 -0
  23. package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.figma.d.ts +2 -0
  24. package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.figma.d.ts.map +1 -0
  25. package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.d.ts +32 -0
  26. package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.d.ts.map +1 -0
  27. package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.figma.d.ts +2 -0
  28. package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.figma.d.ts.map +1 -0
  29. package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.d.ts +36 -0
  30. package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.d.ts.map +1 -0
  31. package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.figma.d.ts +2 -0
  32. package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.figma.d.ts.map +1 -0
  33. package/lib/typescript/src/components/DataDisplay/Badge/Badge.d.ts +219 -0
  34. package/lib/typescript/src/components/DataDisplay/Badge/Badge.d.ts.map +1 -0
  35. package/lib/typescript/src/components/DataDisplay/Badge/Badge.figma.d.ts +2 -0
  36. package/lib/typescript/src/components/DataDisplay/Badge/Badge.figma.d.ts.map +1 -0
  37. package/lib/typescript/src/components/DataDisplay/Banner/Banner.d.ts +15 -0
  38. package/lib/typescript/src/components/DataDisplay/Banner/Banner.d.ts.map +1 -0
  39. package/lib/typescript/src/components/DataDisplay/Banner/Banner.figma.d.ts +2 -0
  40. package/lib/typescript/src/components/DataDisplay/Banner/Banner.figma.d.ts.map +1 -0
  41. package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.d.ts +61 -0
  42. package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.d.ts.map +1 -0
  43. package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.figma.d.ts +2 -0
  44. package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.figma.d.ts.map +1 -0
  45. package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.d.ts +44 -0
  46. package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.d.ts.map +1 -0
  47. package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.figma.d.ts +2 -0
  48. package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.figma.d.ts.map +1 -0
  49. package/lib/typescript/src/components/DataDisplay/Card/Card.d.ts +65 -0
  50. package/lib/typescript/src/components/DataDisplay/Card/Card.d.ts.map +1 -0
  51. package/lib/typescript/src/components/DataDisplay/Card/Card.figma.d.ts +2 -0
  52. package/lib/typescript/src/components/DataDisplay/Card/Card.figma.d.ts.map +1 -0
  53. package/lib/typescript/src/components/DataDisplay/Chips/Chips.d.ts +37 -0
  54. package/lib/typescript/src/components/DataDisplay/Chips/Chips.d.ts.map +1 -0
  55. package/lib/typescript/src/components/DataDisplay/Chips/Chips.figma.d.ts +2 -0
  56. package/lib/typescript/src/components/DataDisplay/Chips/Chips.figma.d.ts.map +1 -0
  57. package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.d.ts +31 -0
  58. package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.d.ts.map +1 -0
  59. package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.figma.d.ts +2 -0
  60. package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.figma.d.ts.map +1 -0
  61. package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.d.ts +25 -0
  62. package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.d.ts.map +1 -0
  63. package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.figma.d.ts +2 -0
  64. package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.figma.d.ts.map +1 -0
  65. package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.d.ts +47 -0
  66. package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.d.ts.map +1 -0
  67. package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.figma.d.ts +3 -0
  68. package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.figma.d.ts.map +1 -0
  69. package/lib/typescript/src/components/DataDisplay/Datalist/DataList.figma.d.ts +2 -0
  70. package/lib/typescript/src/components/DataDisplay/Datalist/DataList.figma.d.ts.map +1 -0
  71. package/lib/typescript/src/components/DataDisplay/Datalist/Datalist.d.ts +14 -0
  72. package/lib/typescript/src/components/DataDisplay/Datalist/Datalist.d.ts.map +1 -0
  73. package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.d.ts +49 -0
  74. package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.d.ts.map +1 -0
  75. package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.figma.d.ts +2 -0
  76. package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.figma.d.ts.map +1 -0
  77. package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.d.ts +58 -0
  78. package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.d.ts.map +1 -0
  79. package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.figma.d.ts +2 -0
  80. package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.figma.d.ts.map +1 -0
  81. package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.d.ts +6 -0
  82. package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.d.ts.map +1 -0
  83. package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.figma.d.ts +3 -0
  84. package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.figma.d.ts.map +1 -0
  85. package/lib/typescript/src/components/DataDisplay/MonthCalendar/index.d.ts +2 -0
  86. package/lib/typescript/src/components/DataDisplay/MonthCalendar/index.d.ts.map +1 -0
  87. package/lib/typescript/src/components/DataDisplay/Separator/Separator.d.ts +29 -0
  88. package/lib/typescript/src/components/DataDisplay/Separator/Separator.d.ts.map +1 -0
  89. package/lib/typescript/src/components/DataDisplay/Separator/Separator.figma.d.ts +2 -0
  90. package/lib/typescript/src/components/DataDisplay/Separator/Separator.figma.d.ts.map +1 -0
  91. package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.d.ts +45 -0
  92. package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.d.ts.map +1 -0
  93. package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.figma.d.ts +2 -0
  94. package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.figma.d.ts.map +1 -0
  95. package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.d.ts +178 -0
  96. package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.d.ts.map +1 -0
  97. package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.figma.d.ts +2 -0
  98. package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.figma.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Feedback/Alert/Alert.d.ts +32 -0
  100. package/lib/typescript/src/components/Feedback/Alert/Alert.d.ts.map +1 -0
  101. package/lib/typescript/src/components/Feedback/Alert/Alert.figma.d.ts +2 -0
  102. package/lib/typescript/src/components/Feedback/Alert/Alert.figma.d.ts.map +1 -0
  103. package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.d.ts +28 -0
  104. package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.d.ts.map +1 -0
  105. package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.figma.d.ts +2 -0
  106. package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.figma.d.ts.map +1 -0
  107. package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.d.ts +22 -0
  108. package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.d.ts.map +1 -0
  109. package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.figma.d.ts +2 -0
  110. package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.figma.d.ts.map +1 -0
  111. package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.d.ts +47 -0
  112. package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.d.ts.map +1 -0
  113. package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.figma.d.ts +2 -0
  114. package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.figma.d.ts.map +1 -0
  115. package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.d.ts +39 -0
  116. package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.d.ts.map +1 -0
  117. package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.figma.d.ts +2 -0
  118. package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.figma.d.ts.map +1 -0
  119. package/lib/typescript/src/components/Feedback/Stepper/Stepper.d.ts +37 -0
  120. package/lib/typescript/src/components/Feedback/Stepper/Stepper.d.ts.map +1 -0
  121. package/lib/typescript/src/components/Feedback/Stepper/Stepper.figma.d.ts +2 -0
  122. package/lib/typescript/src/components/Feedback/Stepper/Stepper.figma.d.ts.map +1 -0
  123. package/lib/typescript/src/components/Input/Button/Button.d.ts +50 -0
  124. package/lib/typescript/src/components/Input/Button/Button.d.ts.map +1 -0
  125. package/lib/typescript/src/components/Input/Button/Button.figma.d.ts +2 -0
  126. package/lib/typescript/src/components/Input/Button/Button.figma.d.ts.map +1 -0
  127. package/lib/typescript/src/components/Input/Checkbox/Checkbox.d.ts +35 -0
  128. package/lib/typescript/src/components/Input/Checkbox/Checkbox.d.ts.map +1 -0
  129. package/lib/typescript/src/components/Input/Checkbox/Checkbox.figma.d.ts +2 -0
  130. package/lib/typescript/src/components/Input/Checkbox/Checkbox.figma.d.ts.map +1 -0
  131. package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.d.ts +46 -0
  132. package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.d.ts.map +1 -0
  133. package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.figma.d.ts +2 -0
  134. package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.figma.d.ts.map +1 -0
  135. package/lib/typescript/src/components/Input/Select/Select.d.ts +68 -0
  136. package/lib/typescript/src/components/Input/Select/Select.d.ts.map +1 -0
  137. package/lib/typescript/src/components/Input/Select/Select.figma.d.ts +2 -0
  138. package/lib/typescript/src/components/Input/Select/Select.figma.d.ts.map +1 -0
  139. package/lib/typescript/src/components/Input/Text/Text.d.ts +116 -0
  140. package/lib/typescript/src/components/Input/Text/Text.d.ts.map +1 -0
  141. package/lib/typescript/src/components/Input/TextField/Textfield.d.ts +57 -0
  142. package/lib/typescript/src/components/Input/TextField/Textfield.d.ts.map +1 -0
  143. package/lib/typescript/src/components/Input/TextField/Textfield.figma.d.ts +2 -0
  144. package/lib/typescript/src/components/Input/TextField/Textfield.figma.d.ts.map +1 -0
  145. package/lib/typescript/src/components/Input/Toggle/Toggle.d.ts +14 -0
  146. package/lib/typescript/src/components/Input/Toggle/Toggle.d.ts.map +1 -0
  147. package/lib/typescript/src/components/Input/Toggle/Toggle.figma.d.ts +2 -0
  148. package/lib/typescript/src/components/Input/Toggle/Toggle.figma.d.ts.map +1 -0
  149. package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.d.ts +34 -0
  150. package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.d.ts.map +1 -0
  151. package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.figma.d.ts +2 -0
  152. package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.figma.d.ts.map +1 -0
  153. package/lib/typescript/src/components/Input/switch/Switch.d.ts +11 -0
  154. package/lib/typescript/src/components/Input/switch/Switch.d.ts.map +1 -0
  155. package/lib/typescript/src/components/Input/switch/Switch.figma.d.ts +2 -0
  156. package/lib/typescript/src/components/Input/switch/Switch.figma.d.ts.map +1 -0
  157. package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.d.ts +12 -0
  158. package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.d.ts.map +1 -0
  159. package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.figma.d.ts +2 -0
  160. package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.figma.d.ts.map +1 -0
  161. package/lib/typescript/src/components/Layout/Bottomsheet/Bottom-Sheet.d.ts +63 -0
  162. package/lib/typescript/src/components/Layout/Bottomsheet/Bottom-Sheet.d.ts.map +1 -0
  163. package/lib/typescript/src/components/Layout/Bottomsheet/BottomSheet.figma.d.ts +2 -0
  164. package/lib/typescript/src/components/Layout/Bottomsheet/BottomSheet.figma.d.ts.map +1 -0
  165. package/lib/typescript/src/components/Layout/PageContent/PageContent.d.ts +19 -0
  166. package/lib/typescript/src/components/Layout/PageContent/PageContent.d.ts.map +1 -0
  167. package/lib/typescript/src/components/Layout/PageContent/PageContent.figma.d.ts +2 -0
  168. package/lib/typescript/src/components/Layout/PageContent/PageContent.figma.d.ts.map +1 -0
  169. package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.d.ts +40 -0
  170. package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.d.ts.map +1 -0
  171. package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.d.ts +2 -0
  172. package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.d.ts.map +1 -0
  173. package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.d.ts +52 -0
  174. package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.d.ts.map +1 -0
  175. package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.figma.d.ts +2 -0
  176. package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.figma.d.ts.map +1 -0
  177. package/lib/typescript/src/components/Layout/PopoverContainer/Popover-Container.d.ts +288 -0
  178. package/lib/typescript/src/components/Layout/PopoverContainer/Popover-Container.d.ts.map +1 -0
  179. package/lib/typescript/src/components/Layout/PopoverContainer/PopoverContainer.figma.d.ts +2 -0
  180. package/lib/typescript/src/components/Layout/PopoverContainer/PopoverContainer.figma.d.ts.map +1 -0
  181. package/lib/typescript/src/components/Layout/Tabs/Tabs.d.ts +32 -0
  182. package/lib/typescript/src/components/Layout/Tabs/Tabs.d.ts.map +1 -0
  183. package/lib/typescript/src/components/Layout/Tabs/Tabs.figma.d.ts +2 -0
  184. package/lib/typescript/src/components/Layout/Tabs/Tabs.figma.d.ts.map +1 -0
  185. package/lib/typescript/src/components/Navigation/Appbar/AppBar.d.ts +29 -0
  186. package/lib/typescript/src/components/Navigation/Appbar/AppBar.d.ts.map +1 -0
  187. package/lib/typescript/src/components/Navigation/Appbar/AppBar.figma.d.ts +2 -0
  188. package/lib/typescript/src/components/Navigation/Appbar/AppBar.figma.d.ts.map +1 -0
  189. package/lib/typescript/src/components/Navigation/ContextMenu/Context-Menu.d.ts +30 -0
  190. package/lib/typescript/src/components/Navigation/ContextMenu/Context-Menu.d.ts.map +1 -0
  191. package/lib/typescript/src/components/Navigation/ContextMenu/ContextMenu.figma.d.ts +3 -0
  192. package/lib/typescript/src/components/Navigation/ContextMenu/ContextMenu.figma.d.ts.map +1 -0
  193. package/lib/typescript/src/components/Navigation/Dialog/Dialog.d.ts +24 -0
  194. package/lib/typescript/src/components/Navigation/Dialog/Dialog.d.ts.map +1 -0
  195. package/lib/typescript/src/components/Navigation/Dialog/Dialog.figma.d.ts +2 -0
  196. package/lib/typescript/src/components/Navigation/Dialog/Dialog.figma.d.ts.map +1 -0
  197. package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.d.ts +12 -0
  198. package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.d.ts.map +1 -0
  199. package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.figma.d.ts +2 -0
  200. package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.figma.d.ts.map +1 -0
  201. package/lib/typescript/src/components/Navigation/Navbar/NavBar.d.ts +40 -0
  202. package/lib/typescript/src/components/Navigation/Navbar/NavBar.d.ts.map +1 -0
  203. package/lib/typescript/src/components/Navigation/Navbar/NavBar.figma.d.ts +3 -0
  204. package/lib/typescript/src/components/Navigation/Navbar/NavBar.figma.d.ts.map +1 -0
  205. package/lib/typescript/src/components/Navigation/Popover/Popover.d.ts +19 -0
  206. package/lib/typescript/src/components/Navigation/Popover/Popover.d.ts.map +1 -0
  207. package/lib/typescript/src/components/Navigation/Popover/Popover.figma.d.ts +2 -0
  208. package/lib/typescript/src/components/Navigation/Popover/Popover.figma.d.ts.map +1 -0
  209. package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.d.ts +7 -0
  210. package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.d.ts.map +1 -0
  211. package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.figma.d.ts +3 -0
  212. package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.figma.d.ts.map +1 -0
  213. package/lib/typescript/src/components/theme-config.d.ts +174 -0
  214. package/lib/typescript/src/components/theme-config.d.ts.map +1 -0
  215. package/lib/typescript/src/components/ui/Collapsible.d.ts +212 -0
  216. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +1 -0
  217. package/lib/typescript/src/components/ui/Custom-Card.d.ts +864 -0
  218. package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +1 -0
  219. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +430 -0
  220. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
  221. package/lib/typescript/src/components/ui/Hover-Card.d.ts +214 -0
  222. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +1 -0
  223. package/lib/typescript/src/components/ui/Icon.d.ts +43 -0
  224. package/lib/typescript/src/components/ui/Icon.d.ts.map +1 -0
  225. package/lib/typescript/src/components/ui/Input.d.ts +52 -0
  226. package/lib/typescript/src/components/ui/Input.d.ts.map +1 -0
  227. package/lib/typescript/src/components/ui/Label.d.ts +105 -0
  228. package/lib/typescript/src/components/ui/Label.d.ts.map +1 -0
  229. package/lib/typescript/src/components/ui/Menubar.d.ts +142 -0
  230. package/lib/typescript/src/components/ui/Menubar.d.ts.map +1 -0
  231. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts +28 -0
  232. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
  233. package/lib/typescript/src/components/ui/SizedBox.d.ts +79 -0
  234. package/lib/typescript/src/components/ui/SizedBox.d.ts.map +1 -0
  235. package/lib/typescript/src/components/ui/Slider.d.ts +55 -0
  236. package/lib/typescript/src/components/ui/Slider.d.ts.map +1 -0
  237. package/lib/typescript/src/components/ui/Table.d.ts +70 -0
  238. package/lib/typescript/src/components/ui/Table.d.ts.map +1 -0
  239. package/lib/typescript/src/components/ui/Toast.d.ts +55 -0
  240. package/lib/typescript/src/components/ui/Toast.d.ts.map +1 -0
  241. package/lib/typescript/src/components/ui/index.d.ts +61 -0
  242. package/lib/typescript/src/components/ui/index.d.ts.map +1 -0
  243. package/lib/typescript/src/index.d.ts +10 -0
  244. package/lib/typescript/src/index.d.ts.map +1 -0
  245. package/lib/typescript/src/lib/ThemeProvider.d.ts +137 -0
  246. package/lib/typescript/src/lib/ThemeProvider.d.ts.map +1 -0
  247. package/lib/typescript/src/lib/cornerRadius.d.ts +112 -0
  248. package/lib/typescript/src/lib/cornerRadius.d.ts.map +1 -0
  249. package/lib/typescript/src/lib/fonts.d.ts +21 -0
  250. package/lib/typescript/src/lib/fonts.d.ts.map +1 -0
  251. package/lib/typescript/src/lib/theme.d.ts +136 -0
  252. package/lib/typescript/src/lib/theme.d.ts.map +1 -0
  253. package/lib/typescript/src/lib/utils.d.ts +111 -0
  254. package/lib/typescript/src/lib/utils.d.ts.map +1 -0
  255. package/lib/typescript/src/patterns/MonthlyCalendarPattern.d.ts +4 -0
  256. package/lib/typescript/src/patterns/MonthlyCalendarPattern.d.ts.map +1 -0
  257. package/lib/typescript/src/patterns/index.d.ts +2 -0
  258. package/lib/typescript/src/patterns/index.d.ts.map +1 -0
  259. package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.d.ts +27 -0
  260. package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.d.ts.map +1 -0
  261. package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.d.ts +2 -0
  262. package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.d.ts.map +1 -0
  263. package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/index.d.ts +2 -0
  264. package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/index.d.ts.map +1 -0
  265. package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.d.ts +23 -0
  266. package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.d.ts.map +1 -0
  267. package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.figma.d.ts +2 -0
  268. package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.figma.d.ts.map +1 -0
  269. package/lib/typescript/src/patterns/pattern-components/AlertPattern/index.d.ts +3 -0
  270. package/lib/typescript/src/patterns/pattern-components/AlertPattern/index.d.ts.map +1 -0
  271. package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.d.ts +22 -0
  272. package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.d.ts.map +1 -0
  273. package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.d.ts +2 -0
  274. package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.d.ts.map +1 -0
  275. package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/index.d.ts +2 -0
  276. package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/index.d.ts.map +1 -0
  277. package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.d.ts +37 -0
  278. package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.d.ts.map +1 -0
  279. package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.d.ts +2 -0
  280. package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.d.ts.map +1 -0
  281. package/lib/typescript/src/patterns/pattern-components/CalendarPattern/index.d.ts +2 -0
  282. package/lib/typescript/src/patterns/pattern-components/CalendarPattern/index.d.ts.map +1 -0
  283. package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.d.ts +70 -0
  284. package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.d.ts.map +1 -0
  285. package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.figma.d.ts +2 -0
  286. package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.figma.d.ts.map +1 -0
  287. package/lib/typescript/src/patterns/pattern-components/CardListPattern/index.d.ts +3 -0
  288. package/lib/typescript/src/patterns/pattern-components/CardListPattern/index.d.ts.map +1 -0
  289. package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.d.ts +45 -0
  290. package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.d.ts.map +1 -0
  291. package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.d.ts +2 -0
  292. package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.d.ts.map +1 -0
  293. package/lib/typescript/src/patterns/pattern-components/DashboardPattern/index.d.ts +2 -0
  294. package/lib/typescript/src/patterns/pattern-components/DashboardPattern/index.d.ts.map +1 -0
  295. package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.d.ts +49 -0
  296. package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.d.ts.map +1 -0
  297. package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.figma.d.ts +2 -0
  298. package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.figma.d.ts.map +1 -0
  299. package/lib/typescript/src/patterns/pattern-components/DataListPattern/index.d.ts +3 -0
  300. package/lib/typescript/src/patterns/pattern-components/DataListPattern/index.d.ts.map +1 -0
  301. package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.d.ts +24 -0
  302. package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.d.ts.map +1 -0
  303. package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.figma.d.ts +2 -0
  304. package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.figma.d.ts.map +1 -0
  305. package/lib/typescript/src/patterns/pattern-components/DialogPattern/index.d.ts +2 -0
  306. package/lib/typescript/src/patterns/pattern-components/DialogPattern/index.d.ts.map +1 -0
  307. package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.d.ts +38 -0
  308. package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.d.ts.map +1 -0
  309. package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.figma.d.ts +2 -0
  310. package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.figma.d.ts.map +1 -0
  311. package/lib/typescript/src/patterns/pattern-components/EmptyState/index.d.ts +3 -0
  312. package/lib/typescript/src/patterns/pattern-components/EmptyState/index.d.ts.map +1 -0
  313. package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.d.ts +35 -0
  314. package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.d.ts.map +1 -0
  315. package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.d.ts +2 -0
  316. package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.d.ts.map +1 -0
  317. package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/index.d.ts +2 -0
  318. package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/index.d.ts.map +1 -0
  319. package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.d.ts +42 -0
  320. package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.d.ts.map +1 -0
  321. package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.d.ts +2 -0
  322. package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.d.ts.map +1 -0
  323. package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/index.d.ts +3 -0
  324. package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/index.d.ts.map +1 -0
  325. package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.d.ts +43 -0
  326. package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.d.ts.map +1 -0
  327. package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.d.ts +2 -0
  328. package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.d.ts.map +1 -0
  329. package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/index.d.ts +3 -0
  330. package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/index.d.ts.map +1 -0
  331. package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.d.ts +42 -0
  332. package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.d.ts.map +1 -0
  333. package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.figma.d.ts +2 -0
  334. package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.figma.d.ts.map +1 -0
  335. package/lib/typescript/src/patterns/pattern-components/FormPattern/index.d.ts +3 -0
  336. package/lib/typescript/src/patterns/pattern-components/FormPattern/index.d.ts.map +1 -0
  337. package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.d.ts +41 -0
  338. package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.d.ts.map +1 -0
  339. package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.d.ts +2 -0
  340. package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.d.ts.map +1 -0
  341. package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/index.d.ts +3 -0
  342. package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/index.d.ts.map +1 -0
  343. package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.d.ts +42 -0
  344. package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.d.ts.map +1 -0
  345. package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.d.ts +2 -0
  346. package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.d.ts.map +1 -0
  347. package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/index.d.ts +3 -0
  348. package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/index.d.ts.map +1 -0
  349. package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.d.ts +45 -0
  350. package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.d.ts.map +1 -0
  351. package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.d.ts +2 -0
  352. package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.d.ts.map +1 -0
  353. package/lib/typescript/src/patterns/pattern-components/SuccessPattern/index.d.ts +3 -0
  354. package/lib/typescript/src/patterns/pattern-components/SuccessPattern/index.d.ts.map +1 -0
  355. package/lib/typescript/src/patterns/pattern-components/index.d.ts +16 -0
  356. package/lib/typescript/src/patterns/pattern-components/index.d.ts.map +1 -0
  357. package/lib/typescript/tailwind.config.d.ts +3 -0
  358. package/lib/typescript/tailwind.config.d.ts.map +1 -0
  359. package/package.json +7 -5
  360. package/src/components/DataDisplay/FeedCard/FeedCard.figma.tsx +43 -0
  361. package/src/components/DataDisplay/FeedCard/FeedCard.tsx +376 -0
  362. package/src/components/DataDisplay/Greeting/Greeting.figma.tsx +10 -2
  363. package/src/components/DataDisplay/Greeting/Greeting.tsx +107 -26
  364. package/src/components/ui/index.ts +1 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SuccessPattern.figma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuccessPattern.figma.d.ts","sourceRoot":"","sources":["../../../../../../src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export { SuccessPattern } from './SuccessPattern';
2
+ export type { SuccessPatternProps } from './SuccessPattern';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/patterns/pattern-components/SuccessPattern/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export * from './AlertDialogPattern';
2
+ export * from './DashboardPattern';
3
+ export * from './EmptyState';
4
+ export * from './DataListPattern';
5
+ export * from './CardListPattern';
6
+ export * from './AlertPattern';
7
+ export * from './DialogPattern';
8
+ export * from './SkeletonPattern';
9
+ export * from './SuccessPattern';
10
+ export * from './FormPattern';
11
+ export * from './EntityPatternOverview';
12
+ export * from './EntityPatternStructured';
13
+ export * from './EntityPatternGuided';
14
+ export * from './CalendarPattern';
15
+ export * from './MonthlyCalendarPattern';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/patterns/pattern-components/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _exports: import("tailwindcss").Config;
2
+ export = _exports;
3
+ //# sourceMappingURL=tailwind.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind.config.d.ts","sourceRoot":"","sources":["../../tailwind.config.js"],"names":[],"mappings":"wBAEW,OAAO,aAAa,EAAE,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-native-blueprint",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
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",
@@ -10,7 +10,8 @@
10
10
  "types": "./lib/typescript/src/index.d.ts",
11
11
  "default": "./lib/module/index.js"
12
12
  },
13
- "./package.json": "./package.json"
13
+ "./package.json": "./package.json",
14
+ "./style": "./global.css"
14
15
  },
15
16
  "files": [
16
17
  "src",
@@ -43,8 +44,9 @@
43
44
  "typecheck": "tsc --project tsconfig.build.json",
44
45
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
45
46
  "clean": "del-cli lib",
46
- "prepare": "bob build --target module",
47
- "build:full": "bob build && cp global.css lib/",
47
+ "build:css": "tailwindcss -i ./global.css -o ./lib/global.css --content './src/**/*.{ts,tsx}' --minify",
48
+ "prepare": "yarn build:css && bob build --target module",
49
+ "build:full": "yarn build:css && bob build",
48
50
  "release": "release-it --only-version"
49
51
  },
50
52
  "keywords": [
@@ -91,7 +93,6 @@
91
93
  "react-native": "0.81.4",
92
94
  "react-native-builder-bob": "^0.40.13",
93
95
  "release-it": "^19.0.4",
94
- "tailwindcss": "^3.4.17",
95
96
  "typescript": "^5.9.2"
96
97
  },
97
98
  "peerDependencies": {
@@ -213,6 +214,7 @@
213
214
  "react-native-svg": "^15.14.0",
214
215
  "react-native-worklets": "0.5.1",
215
216
  "tailwind-merge": "^3.3.1",
217
+ "tailwindcss": "^3.4.17",
216
218
  "tailwindcss-animate": "^1.0.7"
217
219
  }
218
220
  }
@@ -0,0 +1,43 @@
1
+ import figma from '@figma/code-connect';
2
+ import { FeedCard } from './FeedCard';
3
+
4
+ const FIGMA_URL =
5
+ 'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=511-10139';
6
+
7
+ figma.connect(FeedCard, FIGMA_URL, {
8
+ props: {
9
+ type: figma.enum('type', {
10
+ post: 'post',
11
+ announcement: 'announcement',
12
+ }),
13
+ authorName: figma.string('authorName'),
14
+ postTitle: figma.string('postTitle'),
15
+ subtitle: figma.string('subtitle'),
16
+ postContent: figma.string('postContent'),
17
+ showHeader: figma.boolean('Show Header'),
18
+ showLeading: figma.boolean('Show Leading'),
19
+ showMedia: figma.boolean('Show Media'),
20
+ showPostContent: figma.boolean('Show PostContent'),
21
+ showSubtitle: figma.boolean('Show Subtitle'),
22
+ showBadges: figma.boolean('Show Badges'),
23
+ showFooterActions: figma.boolean('Show FooterActions'),
24
+ showSecondaryButton: figma.boolean('Show SecondaryButton'),
25
+ },
26
+ example: (props) => (
27
+ <FeedCard
28
+ type={props.type}
29
+ authorName={props.authorName}
30
+ postTitle={props.postTitle}
31
+ subtitle={props.subtitle}
32
+ postContent={props.postContent}
33
+ showHeader={props.showHeader}
34
+ showLeading={props.showLeading}
35
+ showMedia={props.showMedia}
36
+ showPostContent={props.showPostContent}
37
+ showSubtitle={props.showSubtitle}
38
+ showBadges={props.showBadges}
39
+ showFooterActions={props.showFooterActions}
40
+ showSecondaryButton={props.showSecondaryButton}
41
+ />
42
+ ),
43
+ });
@@ -0,0 +1,376 @@
1
+ // @ts-nocheck
2
+ import {
3
+ View as RNView,
4
+ Text as RNTextBase,
5
+ Image as RNImage,
6
+ type ImageSourcePropType,
7
+ type StyleProp,
8
+ type ViewStyle,
9
+ } from 'react-native';
10
+ import { cssInterop } from 'nativewind';
11
+ import { cva } from 'class-variance-authority';
12
+
13
+ import { cn } from '../../../lib/utils';
14
+ import { Button } from '../../Input/Button/Button';
15
+ import { Badge } from '../Badge/Badge';
16
+ import { Text } from '../../Input/Text/Text';
17
+ import { Avatar } from '../Avatar/Avatar';
18
+ import { AspectRatio } from '../../Layout/AspectRatio/Aspect-Ratio';
19
+
20
+ // Default placeholder image
21
+ const DEFAULT_MEDIA_IMAGE =
22
+ 'https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe3e?w=400&h=224&fit=crop';
23
+
24
+ // NativeWind interop (className -> style)
25
+ const View = cssInterop(RNView, { className: 'style' });
26
+ const RNText = cssInterop(RNTextBase, { className: 'style' });
27
+ const Image = cssInterop(RNImage, { className: 'style' });
28
+
29
+ /* ============================================================================
30
+ * VARIANTS
31
+ * ============================================================================ */
32
+
33
+ export const FeedCardVariants = {
34
+ type: ['post', 'announcement'] as const,
35
+ } as const;
36
+
37
+ type FeedCardType = (typeof FeedCardVariants.type)[number];
38
+
39
+ const rootVariants = cva('w-full overflow-hidden rounded-3xl', {
40
+ variants: {
41
+ type: {
42
+ post: 'bg-surface-default',
43
+ announcement: 'bg-surface-default border border-border-default',
44
+ },
45
+ },
46
+ defaultVariants: {
47
+ type: 'post',
48
+ },
49
+ });
50
+
51
+ const metaRowVariants = cva('w-full flex-row p-4', {
52
+ variants: {
53
+ type: {
54
+ post: 'items-center gap-2',
55
+ announcement: 'items-center justify-between',
56
+ },
57
+ },
58
+ defaultVariants: {
59
+ type: 'post',
60
+ },
61
+ });
62
+
63
+ const mediaWrapVariants = cva('w-full overflow-hidden px-4 pb-4');
64
+
65
+ const contentWrapVariants = cva('w-full px-4 pb-4 flex-col');
66
+
67
+ const headerVariants = cva('w-full gap-1 flex-col');
68
+
69
+ const titleVariants = cva('text-base font-semibold text-text-primary');
70
+
71
+ const subtitleVariants = cva('text-xs font-medium text-text-secondary');
72
+
73
+ const bodyVariants = cva('text-sm font-medium text-text-primary');
74
+
75
+ const badgesRowVariants = cva('w-full flex-row items-start gap-2 pb-4 px-4');
76
+
77
+ const footerRowVariants = cva(
78
+ 'w-full flex-row items-center justify-between px-4 pb-4'
79
+ );
80
+
81
+ const leftButtonsVariants = cva('flex-row items-center gap-2');
82
+
83
+ const rightButtonsVariants = cva('flex-row items-center');
84
+
85
+ /* ============================================================================
86
+ * HELPERS
87
+ * ============================================================================ */
88
+
89
+ function normalizeType(v: any): FeedCardType {
90
+ const s = String(v ?? 'post').toLowerCase();
91
+ return s === 'announcement' ? 'announcement' : 'post';
92
+ }
93
+
94
+ /* ============================================================================
95
+ * PROPS
96
+ * ============================================================================ */
97
+
98
+ export type FeedCardProps = {
99
+ /** Author/creator name */
100
+ authorName?: string;
101
+
102
+ /** Post/announcement title */
103
+ postTitle?: string;
104
+
105
+ /** Subtitle below title */
106
+ subtitle?: string;
107
+
108
+ /** Main body content */
109
+ postContent?: string;
110
+
111
+ /** Optional image/media */
112
+ image?: ImageSourcePropType;
113
+
114
+ /** Card type variant */
115
+ type?: FeedCardType | 'Post' | 'Announcement';
116
+
117
+ /** Visibility toggles */
118
+ showHeader?: boolean;
119
+ showLeading?: boolean;
120
+ showMedia?: boolean;
121
+ showPostContent?: boolean;
122
+ showSubtitle?: boolean;
123
+ showBadges?: boolean;
124
+ showFooterActions?: boolean;
125
+ showSecondaryButton?: boolean;
126
+
127
+ /** Badge labels */
128
+ badge1Text?: string;
129
+ badge2Text?: string;
130
+
131
+ /** Button labels */
132
+ primaryActionText?: string;
133
+ secondaryActionText?: string;
134
+ tertiaryActionText?: string;
135
+
136
+ /** Callbacks */
137
+ onPrimaryActionPress?: () => void;
138
+ onSecondaryActionPress?: () => void;
139
+ onTertiaryActionPress?: () => void;
140
+
141
+ /** Styling */
142
+ style?: StyleProp<ViewStyle>;
143
+ testID?: string;
144
+ className?: never;
145
+ };
146
+
147
+ /* ============================================================================
148
+ * COMPONENT
149
+ * ============================================================================ */
150
+
151
+ export function FeedCard(props: FeedCardProps) {
152
+ const {
153
+ authorName = 'Author Name',
154
+ postTitle = 'Post Title',
155
+ subtitle = 'Subtitle of the card goes here',
156
+ postContent = 'The card may contain body content which can be truncated to 1-2 lines. Swap Content in Props.',
157
+ image,
158
+
159
+ type = 'post',
160
+
161
+ showHeader = true,
162
+ showLeading = true,
163
+ showMedia = true,
164
+ showPostContent = true,
165
+ showSubtitle = true,
166
+ showBadges = true,
167
+ showFooterActions = true,
168
+ showSecondaryButton = true,
169
+
170
+ badge1Text = 'Badge',
171
+ badge2Text = 'Badge',
172
+
173
+ primaryActionText = 'Button',
174
+ secondaryActionText = 'Button',
175
+
176
+ onPrimaryActionPress,
177
+ onSecondaryActionPress,
178
+ onTertiaryActionPress,
179
+
180
+ style,
181
+ testID,
182
+ } = props;
183
+
184
+ const cardType = normalizeType(type);
185
+ const isAnnouncement = cardType === 'announcement';
186
+
187
+ return (
188
+ <View
189
+ testID={testID ?? 'feed-card'}
190
+ className={cn(rootVariants({ type: cardType }))}
191
+ style={style}
192
+ >
193
+ {/* Meta Section: Author Info */}
194
+ <View
195
+ testID="feed-card-meta"
196
+ className={cn(metaRowVariants({ type: cardType }))}
197
+ >
198
+ {showLeading && (
199
+ <View
200
+ testID="feed-card-leading"
201
+ className="items-center justify-center"
202
+ >
203
+ <Avatar
204
+ initials={(authorName ?? 'AA').slice(0, 2).toUpperCase()}
205
+ size="Default"
206
+ type="Initials"
207
+ />
208
+ </View>
209
+ )}
210
+
211
+ {/* Author Details */}
212
+ <View testID="feed-card-author" className="flex-col flex-1 gap-0.5">
213
+ <RNText
214
+ testID="feed-card-author-name"
215
+ numberOfLines={1}
216
+ className="text-sm font-semibold text-text-primary"
217
+ >
218
+ {authorName}
219
+ </RNText>
220
+ <RNText
221
+ testID="feed-card-timestamp"
222
+ numberOfLines={1}
223
+ className="text-xs font-normal text-text-secondary"
224
+ >
225
+ Posted 1 day ago
226
+ </RNText>
227
+ </View>
228
+
229
+ {/* Announcement Badge */}
230
+ {isAnnouncement && (
231
+ <Badge
232
+ testID="feed-card-type-badge"
233
+ variant="default"
234
+ size="sm"
235
+ showLeftIcon={false}
236
+ showRightIcon={false}
237
+ >
238
+ <Text>Announcement</Text>
239
+ </Badge>
240
+ )}
241
+ </View>
242
+
243
+ {/* Media Section */}
244
+ {showMedia && (
245
+ <View testID="feed-card-media-wrap" className={cn(mediaWrapVariants())}>
246
+ <AspectRatio variant="16:9">
247
+ <View className="w-full h-full bg-surface-subtle rounded-3xl overflow-hidden">
248
+ <Image
249
+ testID="feed-card-media"
250
+ source={image || { uri: DEFAULT_MEDIA_IMAGE }}
251
+ resizeMode="cover"
252
+ className="w-full h-full"
253
+ />
254
+ </View>
255
+ </AspectRatio>
256
+ </View>
257
+ )}
258
+
259
+ {/* Content Section */}
260
+ {showPostContent && (
261
+ <View testID="feed-card-content" className={cn(contentWrapVariants())}>
262
+ {/* Header: Title + Subtitle */}
263
+ {showHeader && (
264
+ <View testID="feed-card-header" className={cn(headerVariants())}>
265
+ <RNText
266
+ testID="feed-card-title"
267
+ numberOfLines={1}
268
+ className={cn(titleVariants())}
269
+ >
270
+ {postTitle}
271
+ </RNText>
272
+
273
+ {showSubtitle && (
274
+ <RNText
275
+ testID="feed-card-subtitle"
276
+ numberOfLines={1}
277
+ className={cn(subtitleVariants())}
278
+ >
279
+ {subtitle}
280
+ </RNText>
281
+ )}
282
+ </View>
283
+ )}
284
+
285
+ {/* Body */}
286
+ <RNText
287
+ testID="feed-card-body"
288
+ numberOfLines={2}
289
+ className={cn(bodyVariants())}
290
+ >
291
+ {postContent}
292
+ </RNText>
293
+ </View>
294
+ )}
295
+
296
+ {/* Badges Section */}
297
+ {showBadges && (
298
+ <View testID="feed-card-badges" className={cn(badgesRowVariants())}>
299
+ <Badge
300
+ testID="feed-card-badge-1"
301
+ variant="default"
302
+ size="sm"
303
+ showLeftIcon={false}
304
+ showRightIcon={false}
305
+ >
306
+ <Text>{badge1Text}</Text>
307
+ </Badge>
308
+ <Badge
309
+ testID="feed-card-badge-2"
310
+ variant="default"
311
+ size="sm"
312
+ showLeftIcon={false}
313
+ showRightIcon={false}
314
+ >
315
+ <Text>{badge2Text}</Text>
316
+ </Badge>
317
+ </View>
318
+ )}
319
+
320
+ {/* Footer Actions */}
321
+ {showFooterActions && (
322
+ <View testID="feed-card-footer" className={cn(footerRowVariants())}>
323
+ <View
324
+ testID="feed-card-footer-left"
325
+ className={cn(leftButtonsVariants())}
326
+ >
327
+ <Button
328
+ testID="feed-card-primary-action"
329
+ disabled={false}
330
+ size="default"
331
+ variant="default"
332
+ showLeftIcon={false}
333
+ showRightIcon={false}
334
+ onPress={onPrimaryActionPress}
335
+ >
336
+ {primaryActionText}
337
+ </Button>
338
+
339
+ {showSecondaryButton && (
340
+ <Button
341
+ testID="feed-card-secondary-action"
342
+ disabled={false}
343
+ size="default"
344
+ variant="secondary"
345
+ showLeftIcon={false}
346
+ showRightIcon={false}
347
+ onPress={onSecondaryActionPress}
348
+ >
349
+ {secondaryActionText}
350
+ </Button>
351
+ )}
352
+ </View>
353
+
354
+ <View
355
+ testID="feed-card-footer-right"
356
+ className={cn(rightButtonsVariants())}
357
+ >
358
+ <Button
359
+ testID="feed-card-tertiary-action"
360
+ disabled={false}
361
+ size="icon"
362
+ variant="secondary"
363
+ showLeftIcon={false}
364
+ showRightIcon={false}
365
+ onPress={onTertiaryActionPress}
366
+ />
367
+ </View>
368
+ </View>
369
+ )}
370
+ </View>
371
+ );
372
+ }
373
+
374
+ FeedCard.displayName = 'FeedCard';
375
+
376
+ export type { FeedCardProps };
@@ -2,11 +2,19 @@ import figma from '@figma/code-connect';
2
2
  import { Greeting } from './Greeting';
3
3
 
4
4
  const FIGMA_URL =
5
- 'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=448-8146';
5
+ 'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=495-8995';
6
6
 
7
7
  figma.connect(Greeting, FIGMA_URL, {
8
8
  props: {
9
+ ctaLayout: figma.enum('CTA Layout', {
10
+ 'icon': 'icon',
11
+ 'none': 'none',
12
+ 'floating': 'floating',
13
+ 'ai summary': 'ai summary',
14
+ }),
9
15
  showNextUp: figma.boolean('Show NextUp'),
10
16
  },
11
- example: (props) => <Greeting showNextUp={props.showNextUp} />,
17
+ example: (props) => (
18
+ <Greeting ctaLayout={props.ctaLayout} showNextUp={props.showNextUp} />
19
+ ),
12
20
  });