@campxdev/react-native-blueprint 0.1.8 → 0.1.11

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 (407) hide show
  1. package/README.md +188 -89
  2. package/lib/commonjs/app/_layout.js +34 -0
  3. package/lib/commonjs/app/_layout.js.map +1 -0
  4. package/lib/commonjs/assets/icons/weather_icons/drizzle.png +0 -0
  5. package/lib/commonjs/assets/icons/weather_icons/foggy.png +0 -0
  6. package/lib/commonjs/assets/icons/weather_icons/freezing_rain.png +0 -0
  7. package/lib/commonjs/assets/icons/weather_icons/partly_cloudy.png +0 -0
  8. package/lib/commonjs/assets/icons/weather_icons/rainy.png +0 -0
  9. package/lib/commonjs/assets/icons/weather_icons/showers.png +0 -0
  10. package/lib/commonjs/assets/icons/weather_icons/sunny_weather.png +0 -0
  11. package/lib/commonjs/assets/icons/weather_icons/thunderstorm.png +0 -0
  12. package/lib/commonjs/assets/icons/weather_icons/thunderstorm_hail.png +0 -0
  13. package/lib/commonjs/components/theme-config.js +274 -0
  14. package/lib/commonjs/components/theme-config.js.map +1 -0
  15. package/lib/commonjs/components/ui/Accordion.js +235 -0
  16. package/lib/commonjs/components/ui/Accordion.js.map +1 -0
  17. package/lib/commonjs/components/ui/Alert-Dialog.js +280 -0
  18. package/lib/commonjs/components/ui/Alert-Dialog.js.map +1 -0
  19. package/lib/commonjs/components/ui/Alert.js +113 -0
  20. package/lib/commonjs/components/ui/Alert.js.map +1 -0
  21. package/lib/commonjs/components/ui/AppBar.js +407 -0
  22. package/lib/commonjs/components/ui/AppBar.js.map +1 -0
  23. package/lib/commonjs/components/ui/Aspect-Ratio.js +30 -0
  24. package/lib/commonjs/components/ui/Aspect-Ratio.js.map +1 -0
  25. package/lib/commonjs/components/ui/Avatar.js +101 -0
  26. package/lib/commonjs/components/ui/Avatar.js.map +1 -0
  27. package/lib/commonjs/components/ui/Badge.js +131 -0
  28. package/lib/commonjs/components/ui/Badge.js.map +1 -0
  29. package/lib/commonjs/components/ui/Bottom-Sheet.js +156 -0
  30. package/lib/commonjs/components/ui/Bottom-Sheet.js.map +1 -0
  31. package/lib/commonjs/components/ui/Button.js +92 -0
  32. package/lib/commonjs/components/ui/Button.js.map +1 -0
  33. package/lib/commonjs/components/ui/Card.js +180 -0
  34. package/lib/commonjs/components/ui/Card.js.map +1 -0
  35. package/lib/commonjs/components/ui/Checkbox.js +69 -0
  36. package/lib/commonjs/components/ui/Checkbox.js.map +1 -0
  37. package/lib/commonjs/components/ui/Collapsible.js +45 -0
  38. package/lib/commonjs/components/ui/Collapsible.js.map +1 -0
  39. package/lib/commonjs/components/ui/Context-Menu.js +304 -0
  40. package/lib/commonjs/components/ui/Context-Menu.js.map +1 -0
  41. package/lib/commonjs/components/ui/Custom-Card.js +210 -0
  42. package/lib/commonjs/components/ui/Custom-Card.js.map +1 -0
  43. package/lib/commonjs/components/ui/Dialog.js +214 -0
  44. package/lib/commonjs/components/ui/Dialog.js.map +1 -0
  45. package/lib/commonjs/components/ui/Dropdown-Menu.js +438 -0
  46. package/lib/commonjs/components/ui/Dropdown-Menu.js.map +1 -0
  47. package/lib/commonjs/components/ui/Floating-Action.js +55 -0
  48. package/lib/commonjs/components/ui/Floating-Action.js.map +1 -0
  49. package/lib/commonjs/components/ui/Greeting-Card.js +401 -0
  50. package/lib/commonjs/components/ui/Greeting-Card.js.map +1 -0
  51. package/lib/commonjs/components/ui/Hover-Card.js +100 -0
  52. package/lib/commonjs/components/ui/Hover-Card.js.map +1 -0
  53. package/lib/commonjs/components/ui/Icon.js +76 -0
  54. package/lib/commonjs/components/ui/Icon.js.map +1 -0
  55. package/lib/commonjs/components/ui/Input.js +79 -0
  56. package/lib/commonjs/components/ui/Input.js.map +1 -0
  57. package/lib/commonjs/components/ui/Label.js +48 -0
  58. package/lib/commonjs/components/ui/Label.js.map +1 -0
  59. package/lib/commonjs/components/ui/Menubar.js +392 -0
  60. package/lib/commonjs/components/ui/Menubar.js.map +1 -0
  61. package/lib/commonjs/components/ui/Native-Only-Animated-View.js +43 -0
  62. package/lib/commonjs/components/ui/Native-Only-Animated-View.js.map +1 -0
  63. package/lib/commonjs/components/ui/NavBar.js +356 -0
  64. package/lib/commonjs/components/ui/NavBar.js.map +1 -0
  65. package/lib/commonjs/components/ui/Popover.js +105 -0
  66. package/lib/commonjs/components/ui/Popover.js.map +1 -0
  67. package/lib/commonjs/components/ui/Progress.js +127 -0
  68. package/lib/commonjs/components/ui/Progress.js.map +1 -0
  69. package/lib/commonjs/components/ui/Radio-Group.js +78 -0
  70. package/lib/commonjs/components/ui/Radio-Group.js.map +1 -0
  71. package/lib/commonjs/components/ui/Select.js +283 -0
  72. package/lib/commonjs/components/ui/Select.js.map +1 -0
  73. package/lib/commonjs/components/ui/Separator.js +62 -0
  74. package/lib/commonjs/components/ui/Separator.js.map +1 -0
  75. package/lib/commonjs/components/ui/SizedBox.js +106 -0
  76. package/lib/commonjs/components/ui/SizedBox.js.map +1 -0
  77. package/lib/commonjs/components/ui/Skeleton.js +60 -0
  78. package/lib/commonjs/components/ui/Skeleton.js.map +1 -0
  79. package/lib/commonjs/components/ui/Slider.js +178 -0
  80. package/lib/commonjs/components/ui/Slider.js.map +1 -0
  81. package/lib/commonjs/components/ui/Switch.js +57 -0
  82. package/lib/commonjs/components/ui/Switch.js.map +1 -0
  83. package/lib/commonjs/components/ui/Table.js +161 -0
  84. package/lib/commonjs/components/ui/Table.js.map +1 -0
  85. package/lib/commonjs/components/ui/Tabs.js +111 -0
  86. package/lib/commonjs/components/ui/Tabs.js.map +1 -0
  87. package/lib/commonjs/components/ui/Text.js +73 -0
  88. package/lib/commonjs/components/ui/Text.js.map +1 -0
  89. package/lib/commonjs/components/ui/Textarea.js +93 -0
  90. package/lib/commonjs/components/ui/Textarea.js.map +1 -0
  91. package/lib/commonjs/components/ui/Theme-Toggle.js +160 -0
  92. package/lib/commonjs/components/ui/Theme-Toggle.js.map +1 -0
  93. package/lib/commonjs/components/ui/Toast.js +107 -0
  94. package/lib/commonjs/components/ui/Toast.js.map +1 -0
  95. package/lib/commonjs/components/ui/Toggle-Group.js +133 -0
  96. package/lib/commonjs/components/ui/Toggle-Group.js.map +1 -0
  97. package/lib/commonjs/components/ui/Toggle.js +110 -0
  98. package/lib/commonjs/components/ui/Toggle.js.map +1 -0
  99. package/lib/commonjs/components/ui/Tooltip.js +110 -0
  100. package/lib/commonjs/components/ui/Tooltip.js.map +1 -0
  101. package/lib/commonjs/components/ui/index.js +479 -0
  102. package/lib/commonjs/components/ui/index.js.map +1 -0
  103. package/lib/commonjs/global.css +417 -0
  104. package/lib/commonjs/index.js +118 -0
  105. package/lib/commonjs/index.js.map +1 -0
  106. package/lib/commonjs/lib/ThemeProvider.js +180 -0
  107. package/lib/commonjs/lib/ThemeProvider.js.map +1 -0
  108. package/lib/commonjs/lib/cornerRadius.js +171 -0
  109. package/lib/commonjs/lib/cornerRadius.js.map +1 -0
  110. package/lib/commonjs/lib/fonts.js +101 -0
  111. package/lib/commonjs/lib/fonts.js.map +1 -0
  112. package/lib/commonjs/lib/slot-helpers.js +24 -0
  113. package/lib/commonjs/lib/slot-helpers.js.map +1 -0
  114. package/lib/commonjs/lib/theme.js +215 -0
  115. package/lib/commonjs/lib/theme.js.map +1 -0
  116. package/lib/commonjs/lib/utils.js +142 -0
  117. package/lib/commonjs/lib/utils.js.map +1 -0
  118. package/lib/commonjs/package.json +1 -0
  119. package/lib/commonjs/types/components.d.js +6 -0
  120. package/lib/commonjs/types/components.d.js.map +1 -0
  121. package/lib/commonjs/types/global.d.js +8 -0
  122. package/lib/commonjs/types/global.d.js.map +1 -0
  123. package/lib/commonjs/types/rn-primitives.d.js +6 -0
  124. package/lib/commonjs/types/rn-primitives.d.js.map +1 -0
  125. package/lib/module/components/ui/Alert-Dialog.js.map +1 -1
  126. package/lib/module/components/ui/Context-Menu.js.map +1 -1
  127. package/lib/module/components/ui/Dropdown-Menu.js.map +1 -1
  128. package/lib/module/components/ui/Menubar.js.map +1 -1
  129. package/lib/module/components/ui/Tabs.js.map +1 -1
  130. package/lib/module/components/ui/Toggle-Group.js.map +1 -1
  131. package/lib/module/lib/fonts.js +81 -8
  132. package/lib/module/lib/fonts.js.map +1 -1
  133. package/lib/typescript/commonjs/package.json +1 -0
  134. package/lib/typescript/commonjs/src/app/_layout.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/src/components/theme-config.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/src/components/ui/Accordion.d.ts.map +1 -0
  137. package/lib/typescript/commonjs/src/components/ui/Alert-Dialog.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/src/components/ui/Alert.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/src/components/ui/AppBar.d.ts.map +1 -0
  140. package/lib/typescript/commonjs/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
  141. package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts +59 -59
  142. package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/components/ui/Badge.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/components/ui/Button.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/src/components/ui/Card.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/src/components/ui/Checkbox.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/src/components/ui/Collapsible.d.ts.map +1 -0
  149. package/lib/typescript/commonjs/src/components/ui/Context-Menu.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/src/components/ui/Custom-Card.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/components/ui/Dialog.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/src/components/ui/Floating-Action.d.ts.map +1 -0
  154. package/lib/typescript/commonjs/src/components/ui/Greeting-Card.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/src/components/ui/Hover-Card.d.ts.map +1 -0
  156. package/lib/typescript/commonjs/src/components/ui/Icon.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/src/components/ui/Input.d.ts.map +1 -0
  158. package/lib/typescript/commonjs/src/components/ui/Label.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/components/ui/Menubar.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/components/ui/NavBar.d.ts.map +1 -0
  162. package/lib/typescript/commonjs/src/components/ui/Popover.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/components/ui/Progress.d.ts.map +1 -0
  164. package/lib/typescript/commonjs/src/components/ui/Radio-Group.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/components/ui/Select.d.ts.map +1 -0
  166. package/lib/typescript/commonjs/src/components/ui/Separator.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/src/components/ui/SizedBox.d.ts.map +1 -0
  168. package/lib/typescript/commonjs/src/components/ui/Skeleton.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/src/components/ui/Slider.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/src/components/ui/Switch.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/src/components/ui/Table.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/components/ui/Tabs.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/components/ui/Text.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/src/components/ui/Textarea.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/src/components/ui/Theme-Toggle.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/src/components/ui/Toast.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/components/ui/Toggle-Group.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/components/ui/Toggle.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/src/components/ui/Tooltip.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/src/components/ui/index.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/lib/ThemeProvider.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/src/lib/cornerRadius.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/src/lib/fonts.d.ts +16 -0
  185. package/lib/typescript/commonjs/src/lib/fonts.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/src/lib/slot-helpers.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/lib/theme.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/src/lib/utils.d.ts.map +1 -0
  189. package/lib/typescript/module/src/app/_layout.d.ts +7 -0
  190. package/lib/typescript/module/src/app/_layout.d.ts.map +1 -0
  191. package/lib/typescript/module/src/components/theme-config.d.ts +174 -0
  192. package/lib/typescript/module/src/components/theme-config.d.ts.map +1 -0
  193. package/lib/typescript/module/src/components/ui/Accordion.d.ts +103 -0
  194. package/lib/typescript/module/src/components/ui/Accordion.d.ts.map +1 -0
  195. package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts +145 -0
  196. package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts.map +1 -0
  197. package/lib/typescript/module/src/components/ui/Alert.d.ts +61 -0
  198. package/lib/typescript/module/src/components/ui/Alert.d.ts.map +1 -0
  199. package/lib/typescript/module/src/components/ui/AppBar.d.ts +227 -0
  200. package/lib/typescript/module/src/components/ui/AppBar.d.ts.map +1 -0
  201. package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts +24 -0
  202. package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
  203. package/lib/typescript/module/src/components/ui/Avatar.d.ts +1486 -0
  204. package/lib/typescript/module/src/components/ui/Avatar.d.ts.map +1 -0
  205. package/lib/typescript/module/src/components/ui/Badge.d.ts +77 -0
  206. package/lib/typescript/module/src/components/ui/Badge.d.ts.map +1 -0
  207. package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts +43 -0
  208. package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
  209. package/lib/typescript/module/src/components/ui/Button.d.ts +23 -0
  210. package/lib/typescript/module/src/components/ui/Button.d.ts.map +1 -0
  211. package/lib/typescript/module/src/components/ui/Card.d.ts +93 -0
  212. package/lib/typescript/module/src/components/ui/Card.d.ts.map +1 -0
  213. package/lib/typescript/module/src/components/ui/Checkbox.d.ts +36 -0
  214. package/lib/typescript/module/src/components/ui/Checkbox.d.ts.map +1 -0
  215. package/lib/typescript/module/src/components/ui/Collapsible.d.ts +37 -0
  216. package/lib/typescript/module/src/components/ui/Collapsible.d.ts.map +1 -0
  217. package/lib/typescript/module/src/components/ui/Context-Menu.d.ts +107 -0
  218. package/lib/typescript/module/src/components/ui/Context-Menu.d.ts.map +1 -0
  219. package/lib/typescript/module/src/components/ui/Custom-Card.d.ts +103 -0
  220. package/lib/typescript/module/src/components/ui/Custom-Card.d.ts.map +1 -0
  221. package/lib/typescript/module/src/components/ui/Dialog.d.ts +90 -0
  222. package/lib/typescript/module/src/components/ui/Dialog.d.ts.map +1 -0
  223. package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts +242 -0
  224. package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
  225. package/lib/typescript/module/src/components/ui/Floating-Action.d.ts +44 -0
  226. package/lib/typescript/module/src/components/ui/Floating-Action.d.ts.map +1 -0
  227. package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts +153 -0
  228. package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts.map +1 -0
  229. package/lib/typescript/module/src/components/ui/Hover-Card.d.ts +49 -0
  230. package/lib/typescript/module/src/components/ui/Hover-Card.d.ts.map +1 -0
  231. package/lib/typescript/module/src/components/ui/Icon.d.ts +43 -0
  232. package/lib/typescript/module/src/components/ui/Icon.d.ts.map +1 -0
  233. package/lib/typescript/module/src/components/ui/Input.d.ts +54 -0
  234. package/lib/typescript/module/src/components/ui/Input.d.ts.map +1 -0
  235. package/lib/typescript/module/src/components/ui/Label.d.ts +34 -0
  236. package/lib/typescript/module/src/components/ui/Label.d.ts.map +1 -0
  237. package/lib/typescript/module/src/components/ui/Menubar.d.ts +142 -0
  238. package/lib/typescript/module/src/components/ui/Menubar.d.ts.map +1 -0
  239. package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts +26 -0
  240. package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
  241. package/lib/typescript/module/src/components/ui/NavBar.d.ts +273 -0
  242. package/lib/typescript/module/src/components/ui/NavBar.d.ts.map +1 -0
  243. package/lib/typescript/module/src/components/ui/Popover.d.ts +54 -0
  244. package/lib/typescript/module/src/components/ui/Popover.d.ts.map +1 -0
  245. package/lib/typescript/module/src/components/ui/Progress.d.ts +27 -0
  246. package/lib/typescript/module/src/components/ui/Progress.d.ts.map +1 -0
  247. package/lib/typescript/module/src/components/ui/Radio-Group.d.ts +47 -0
  248. package/lib/typescript/module/src/components/ui/Radio-Group.d.ts.map +1 -0
  249. package/lib/typescript/module/src/components/ui/Select.d.ts +86 -0
  250. package/lib/typescript/module/src/components/ui/Select.d.ts.map +1 -0
  251. package/lib/typescript/module/src/components/ui/Separator.d.ts +40 -0
  252. package/lib/typescript/module/src/components/ui/Separator.d.ts.map +1 -0
  253. package/lib/typescript/module/src/components/ui/SizedBox.d.ts +79 -0
  254. package/lib/typescript/module/src/components/ui/SizedBox.d.ts.map +1 -0
  255. package/lib/typescript/module/src/components/ui/Skeleton.d.ts +42 -0
  256. package/lib/typescript/module/src/components/ui/Skeleton.d.ts.map +1 -0
  257. package/lib/typescript/module/src/components/ui/Slider.d.ts +56 -0
  258. package/lib/typescript/module/src/components/ui/Slider.d.ts.map +1 -0
  259. package/lib/typescript/module/src/components/ui/Switch.d.ts +34 -0
  260. package/lib/typescript/module/src/components/ui/Switch.d.ts.map +1 -0
  261. package/lib/typescript/module/src/components/ui/Table.d.ts +80 -0
  262. package/lib/typescript/module/src/components/ui/Table.d.ts.map +1 -0
  263. package/lib/typescript/module/src/components/ui/Tabs.d.ts +51 -0
  264. package/lib/typescript/module/src/components/ui/Tabs.d.ts.map +1 -0
  265. package/lib/typescript/module/src/components/ui/Text.d.ts +45 -0
  266. package/lib/typescript/module/src/components/ui/Text.d.ts.map +1 -0
  267. package/lib/typescript/module/src/components/ui/Textarea.d.ts +65 -0
  268. package/lib/typescript/module/src/components/ui/Textarea.d.ts.map +1 -0
  269. package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts +67 -0
  270. package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts.map +1 -0
  271. package/lib/typescript/module/src/components/ui/Toast.d.ts +56 -0
  272. package/lib/typescript/module/src/components/ui/Toast.d.ts.map +1 -0
  273. package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts +49 -0
  274. package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts.map +1 -0
  275. package/lib/typescript/module/src/components/ui/Toggle.d.ts +53 -0
  276. package/lib/typescript/module/src/components/ui/Toggle.d.ts.map +1 -0
  277. package/lib/typescript/module/src/components/ui/Tooltip.d.ts +51 -0
  278. package/lib/typescript/module/src/components/ui/Tooltip.d.ts.map +1 -0
  279. package/lib/typescript/module/src/components/ui/index.d.ts +44 -0
  280. package/lib/typescript/module/src/components/ui/index.d.ts.map +1 -0
  281. package/lib/typescript/module/src/index.d.ts +9 -0
  282. package/lib/typescript/module/src/index.d.ts.map +1 -0
  283. package/lib/typescript/module/src/lib/ThemeProvider.d.ts +137 -0
  284. package/lib/typescript/module/src/lib/ThemeProvider.d.ts.map +1 -0
  285. package/lib/typescript/module/src/lib/cornerRadius.d.ts +112 -0
  286. package/lib/typescript/module/src/lib/cornerRadius.d.ts.map +1 -0
  287. package/lib/typescript/module/src/lib/fonts.d.ts +16 -0
  288. package/lib/typescript/module/src/lib/fonts.d.ts.map +1 -0
  289. package/lib/typescript/module/src/lib/slot-helpers.d.ts +32 -0
  290. package/lib/typescript/module/src/lib/slot-helpers.d.ts.map +1 -0
  291. package/lib/typescript/module/src/lib/theme.d.ts +87 -0
  292. package/lib/typescript/module/src/lib/theme.d.ts.map +1 -0
  293. package/lib/typescript/module/src/lib/utils.d.ts +111 -0
  294. package/lib/typescript/module/src/lib/utils.d.ts.map +1 -0
  295. package/package.json +180 -50
  296. package/src/components/ui/Alert-Dialog.tsx +2 -2
  297. package/src/components/ui/Context-Menu.tsx +1 -1
  298. package/src/components/ui/Dropdown-Menu.tsx +1 -1
  299. package/src/components/ui/Menubar.tsx +2 -2
  300. package/src/components/ui/Tabs.tsx +1 -1
  301. package/src/components/ui/Toggle-Group.tsx +2 -2
  302. package/src/lib/fonts.ts +83 -12
  303. package/lib/typescript/src/app/_layout.d.ts.map +0 -1
  304. package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
  305. package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
  306. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
  307. package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
  308. package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
  309. package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
  310. package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
  311. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
  312. package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
  313. package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
  314. package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
  315. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
  316. package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
  317. package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
  318. package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
  319. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
  320. package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
  321. package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
  322. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
  323. package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
  324. package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
  325. package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
  326. package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
  327. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
  328. package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
  329. package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
  330. package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
  331. package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
  332. package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
  333. package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
  334. package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
  335. package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
  336. package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
  337. package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
  338. package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
  339. package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
  340. package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
  341. package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
  342. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
  343. package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
  344. package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
  345. package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
  346. package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
  347. package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
  348. package/lib/typescript/src/index.d.ts.map +0 -1
  349. package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
  350. package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
  351. package/lib/typescript/src/lib/fonts.d.ts +0 -21
  352. package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
  353. package/lib/typescript/src/lib/slot-helpers.d.ts.map +0 -1
  354. package/lib/typescript/src/lib/theme.d.ts.map +0 -1
  355. package/lib/typescript/src/lib/utils.d.ts.map +0 -1
  356. /package/lib/typescript/{src → commonjs/src}/app/_layout.d.ts +0 -0
  357. /package/lib/typescript/{src → commonjs/src}/components/theme-config.d.ts +0 -0
  358. /package/lib/typescript/{src → commonjs/src}/components/ui/Accordion.d.ts +0 -0
  359. /package/lib/typescript/{src → commonjs/src}/components/ui/Alert-Dialog.d.ts +0 -0
  360. /package/lib/typescript/{src → commonjs/src}/components/ui/Alert.d.ts +0 -0
  361. /package/lib/typescript/{src → commonjs/src}/components/ui/AppBar.d.ts +0 -0
  362. /package/lib/typescript/{src → commonjs/src}/components/ui/Aspect-Ratio.d.ts +0 -0
  363. /package/lib/typescript/{src → commonjs/src}/components/ui/Badge.d.ts +0 -0
  364. /package/lib/typescript/{src → commonjs/src}/components/ui/Bottom-Sheet.d.ts +0 -0
  365. /package/lib/typescript/{src → commonjs/src}/components/ui/Button.d.ts +0 -0
  366. /package/lib/typescript/{src → commonjs/src}/components/ui/Card.d.ts +0 -0
  367. /package/lib/typescript/{src → commonjs/src}/components/ui/Checkbox.d.ts +0 -0
  368. /package/lib/typescript/{src → commonjs/src}/components/ui/Collapsible.d.ts +0 -0
  369. /package/lib/typescript/{src → commonjs/src}/components/ui/Context-Menu.d.ts +0 -0
  370. /package/lib/typescript/{src → commonjs/src}/components/ui/Custom-Card.d.ts +0 -0
  371. /package/lib/typescript/{src → commonjs/src}/components/ui/Dialog.d.ts +0 -0
  372. /package/lib/typescript/{src → commonjs/src}/components/ui/Dropdown-Menu.d.ts +0 -0
  373. /package/lib/typescript/{src → commonjs/src}/components/ui/Floating-Action.d.ts +0 -0
  374. /package/lib/typescript/{src → commonjs/src}/components/ui/Greeting-Card.d.ts +0 -0
  375. /package/lib/typescript/{src → commonjs/src}/components/ui/Hover-Card.d.ts +0 -0
  376. /package/lib/typescript/{src → commonjs/src}/components/ui/Icon.d.ts +0 -0
  377. /package/lib/typescript/{src → commonjs/src}/components/ui/Input.d.ts +0 -0
  378. /package/lib/typescript/{src → commonjs/src}/components/ui/Label.d.ts +0 -0
  379. /package/lib/typescript/{src → commonjs/src}/components/ui/Menubar.d.ts +0 -0
  380. /package/lib/typescript/{src → commonjs/src}/components/ui/Native-Only-Animated-View.d.ts +0 -0
  381. /package/lib/typescript/{src → commonjs/src}/components/ui/NavBar.d.ts +0 -0
  382. /package/lib/typescript/{src → commonjs/src}/components/ui/Popover.d.ts +0 -0
  383. /package/lib/typescript/{src → commonjs/src}/components/ui/Progress.d.ts +0 -0
  384. /package/lib/typescript/{src → commonjs/src}/components/ui/Radio-Group.d.ts +0 -0
  385. /package/lib/typescript/{src → commonjs/src}/components/ui/Select.d.ts +0 -0
  386. /package/lib/typescript/{src → commonjs/src}/components/ui/Separator.d.ts +0 -0
  387. /package/lib/typescript/{src → commonjs/src}/components/ui/SizedBox.d.ts +0 -0
  388. /package/lib/typescript/{src → commonjs/src}/components/ui/Skeleton.d.ts +0 -0
  389. /package/lib/typescript/{src → commonjs/src}/components/ui/Slider.d.ts +0 -0
  390. /package/lib/typescript/{src → commonjs/src}/components/ui/Switch.d.ts +0 -0
  391. /package/lib/typescript/{src → commonjs/src}/components/ui/Table.d.ts +0 -0
  392. /package/lib/typescript/{src → commonjs/src}/components/ui/Tabs.d.ts +0 -0
  393. /package/lib/typescript/{src → commonjs/src}/components/ui/Text.d.ts +0 -0
  394. /package/lib/typescript/{src → commonjs/src}/components/ui/Textarea.d.ts +0 -0
  395. /package/lib/typescript/{src → commonjs/src}/components/ui/Theme-Toggle.d.ts +0 -0
  396. /package/lib/typescript/{src → commonjs/src}/components/ui/Toast.d.ts +0 -0
  397. /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle-Group.d.ts +0 -0
  398. /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle.d.ts +0 -0
  399. /package/lib/typescript/{src → commonjs/src}/components/ui/Tooltip.d.ts +0 -0
  400. /package/lib/typescript/{src → commonjs/src}/components/ui/index.d.ts +0 -0
  401. /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
  402. /package/lib/typescript/{src → commonjs/src}/lib/ThemeProvider.d.ts +0 -0
  403. /package/lib/typescript/{src → commonjs/src}/lib/cornerRadius.d.ts +0 -0
  404. /package/lib/typescript/{src → commonjs/src}/lib/slot-helpers.d.ts +0 -0
  405. /package/lib/typescript/{src → commonjs/src}/lib/theme.d.ts +0 -0
  406. /package/lib/typescript/{src → commonjs/src}/lib/utils.d.ts +0 -0
  407. /package/lib/typescript/{package.json → module/package.json} +0 -0
package/README.md CHANGED
@@ -21,7 +21,13 @@ This library requires **NativeWind v4+** to be configured in your React Native p
21
21
 
22
22
  ## Installation
23
23
 
24
- ### 1. Install the package
24
+ This library works with **both Expo and Bare React Native CLI** projects. Choose the installation method for your project type.
25
+
26
+ ### For Bare React Native CLI Projects (Recommended)
27
+
28
+ Perfect for apps like **CampxMobileApp** using React Native CLI without Expo.
29
+
30
+ #### 1. Install the package
25
31
 
26
32
  ```sh
27
33
  npm install @campxdev/react-native-blueprint
@@ -29,15 +35,80 @@ npm install @campxdev/react-native-blueprint
29
35
  yarn add @campxdev/react-native-blueprint
30
36
  ```
31
37
 
32
- ### 2. Install required peer dependencies
38
+ #### 2. Install required peer dependencies
33
39
 
34
40
  ```sh
35
- npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
41
+ npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
36
42
  # or
37
- yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
43
+ yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
44
+ ```
45
+
46
+ #### 3. Install optional peer dependencies (as needed)
47
+
48
+ ```sh
49
+ # For bottom sheet components (optional)
50
+ npm install @gorhom/bottom-sheet
51
+
52
+ # For advanced animations (optional)
53
+ npm install react-native-worklets
54
+
55
+ # For specific UI primitives (install only what you need)
56
+ npm install @rn-primitives/accordion @rn-primitives/dialog @rn-primitives/avatar
57
+ # ... add other @rn-primitives packages as needed
58
+ ```
59
+
60
+ #### 4. For iOS, install CocoaPods
61
+
62
+ ```sh
63
+ cd ios && pod install && cd ..
64
+ ```
65
+
66
+ #### 5. Add Reanimated Babel plugin
67
+
68
+ Update your `babel.config.js`:
69
+
70
+ ```js
71
+ module.exports = {
72
+ presets: ['module:@react-native/babel-preset'],
73
+ plugins: [
74
+ 'react-native-reanimated/plugin', // Must be listed last!
75
+ ],
76
+ };
77
+ ```
78
+
79
+ ### For Expo Projects
80
+
81
+ If you're using Expo, the installation is simpler:
82
+
83
+ #### 1. Install the package and peer dependencies
84
+
85
+ ```sh
86
+ npx expo install @campxdev/react-native-blueprint nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg
87
+ # Expo will automatically install compatible versions
38
88
  ```
39
89
 
40
- ### 3. Import the global styles
90
+ #### 2. Install optional fonts (for custom fonts)
91
+
92
+ ```sh
93
+ npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
94
+ ```
95
+
96
+ Then load fonts in your app:
97
+
98
+ ```tsx
99
+ import { useFonts } from 'expo-font';
100
+ import { Poppins_400Regular, Poppins_600SemiBold } from '@expo-google-fonts/poppins';
101
+
102
+ function App() {
103
+ const [fontsLoaded] = useFonts({ Poppins_400Regular, Poppins_600SemiBold });
104
+ if (!fontsLoaded) return null;
105
+ // Your app
106
+ }
107
+ ```
108
+
109
+ ### Common Setup (Required for Both)
110
+
111
+ #### Import the global styles
41
112
 
42
113
  In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
43
114
 
@@ -45,7 +116,7 @@ In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
45
116
  import '@campxdev/react-native-blueprint/global.css';
46
117
  ```
47
118
 
48
- ### 4. Configure NativeWind
119
+ #### Configure NativeWind
49
120
 
50
121
  Create or update `tailwind.config.js`:
51
122
 
@@ -105,9 +176,9 @@ module.exports = {
105
176
  };
106
177
  ```
107
178
 
108
- ### 5. Configure Bundler (Metro or Re.Pack)
179
+ #### Configure Bundler (Metro or Re.Pack)
109
180
 
110
- **Option A: Metro (Standard)**
181
+ **For Expo Projects:**
111
182
 
112
183
  Update `metro.config.js`:
113
184
 
@@ -120,23 +191,41 @@ const config = getDefaultConfig(__dirname);
120
191
  module.exports = withNativeWind(config, { input: './global.css' });
121
192
  ```
122
193
 
123
- **Option B: Re.Pack + Rspack (5x Faster - Used in Example App)**
194
+ **For Bare React Native CLI Projects:**
195
+
196
+ Update `metro.config.js`:
197
+
198
+ ```js
199
+ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
200
+ const { withNativeWind } = require('nativewind/metro');
201
+
202
+ const config = mergeConfig(getDefaultConfig(__dirname), {
203
+ // Your custom Metro config
204
+ });
205
+
206
+ module.exports = withNativeWind(config, { input: './global.css' });
207
+ ```
208
+
209
+ **Alternative: Re.Pack + Rspack (5x Faster - Used in Example App)**
124
210
 
125
211
  The example app in this repository uses [Re.Pack 5](https://re-pack.dev) with Rspack for **5x faster builds**. See [MIGRATION_REPACK.md](MIGRATION_REPACK.md) for details.
126
212
 
127
213
  If you want to use Re.Pack in your project:
128
214
 
129
215
  1. Install Re.Pack:
216
+
130
217
  ```sh
131
218
  npx @callstack/repack-init
132
219
  ```
133
220
 
134
221
  2. Install NativeWind plugin:
222
+
135
223
  ```sh
136
224
  npm install @callstack/repack-plugin-nativewind
137
225
  ```
138
226
 
139
227
  3. Update `rspack.config.js`:
228
+
140
229
  ```js
141
230
  import { NativeWindPlugin } from '@callstack/repack-plugin-nativewind';
142
231
 
@@ -158,7 +247,13 @@ If you want to use Re.Pack in your project:
158
247
  // Import CSS at the top of your app entry point (do this ONCE)
159
248
  import '@campxdev/react-native-blueprint/global.css';
160
249
 
161
- import { Button, Card, Text, Input, Alert } from '@campxdev/react-native-blueprint';
250
+ import {
251
+ Button,
252
+ Card,
253
+ Text,
254
+ Input,
255
+ Alert,
256
+ } from '@campxdev/react-native-blueprint';
162
257
  import { View } from 'react-native';
163
258
 
164
259
  function App() {
@@ -167,7 +262,9 @@ function App() {
167
262
  <Card>
168
263
  <Card.Header>
169
264
  <Card.Title>Welcome</Card.Title>
170
- <Card.Description>Get started with react-native-blueprint</Card.Description>
265
+ <Card.Description>
266
+ Get started with react-native-blueprint
267
+ </Card.Description>
171
268
  </Card.Header>
172
269
  <Card.Content>
173
270
  <Input placeholder="Enter your name" />
@@ -181,9 +278,7 @@ function App() {
181
278
 
182
279
  <Alert>
183
280
  <Alert.Title>Info</Alert.Title>
184
- <Alert.Description>
185
- This is a sample alert component.
186
- </Alert.Description>
281
+ <Alert.Description>This is a sample alert component.</Alert.Description>
187
282
  </Alert>
188
283
  </View>
189
284
  );
@@ -193,12 +288,14 @@ function App() {
193
288
  ## Available Components
194
289
 
195
290
  ### Layout & Structure
291
+
196
292
  - **Button** - Customizable button with variants (default, destructive, outline, ghost, link)
197
293
  - **Card** - Container with header, content, and footer sections
198
294
  - **Separator** - Horizontal or vertical divider
199
295
  - **Skeleton** - Loading placeholder with shimmer effect
200
296
 
201
297
  ### Form Components
298
+
202
299
  - **Input** - Text input field
203
300
  - **Textarea** - Multi-line text input
204
301
  - **Checkbox** - Checkbox with label support
@@ -209,12 +306,14 @@ function App() {
209
306
  - **Slider** - Range slider input
210
307
 
211
308
  ### Navigation
309
+
212
310
  - **Tabs** - Tab navigation component
213
311
  - **Accordion** - Collapsible content sections
214
312
  - **Collapsible** - Expandable/collapsible content
215
313
  - **Menubar** - Menu bar with nested items
216
314
 
217
315
  ### Overlays & Dialogs
316
+
218
317
  - **Dialog** - Modal dialog
219
318
  - **Alert Dialog** - Alert/confirmation dialog
220
319
  - **Popover** - Floating popover
@@ -224,18 +323,21 @@ function App() {
224
323
  - **Hover Card** - Card that appears on hover
225
324
 
226
325
  ### Feedback & Status
326
+
227
327
  - **Alert** - Informational alert box
228
328
  - **Toast** - Toast notification
229
329
  - **Progress** - Progress bar
230
330
  - **Badge** - Status badge
231
331
 
232
332
  ### Data Display
333
+
233
334
  - **Table** - Data table with sorting
234
335
  - **Avatar** - User avatar with fallback
235
336
  - **Text** - Typography component with variants
236
337
  - **Icon** - Icon component (powered by lucide-react-native)
237
338
 
238
339
  ### Utilities
340
+
239
341
  - **Aspect Ratio** - Container with fixed aspect ratio
240
342
  - **Toggle** - Toggle button
241
343
  - **Toggle Group** - Group of toggle buttons
@@ -246,10 +348,10 @@ Components use CSS variables for theming. Customize your app's appearance by mod
246
348
 
247
349
  ```css
248
350
  :root {
249
- --primary: 220 90% 56%; /* Blue */
250
- --secondary: 280 70% 60%; /* Purple */
251
- --destructive: 0 84% 60%; /* Red */
252
- --radius: 0.75rem; /* Border radius */
351
+ --primary: 220 90% 56%; /* Blue */
352
+ --secondary: 280 70% 60%; /* Purple */
353
+ --destructive: 0 84% 60%; /* Red */
354
+ --radius: 0.75rem; /* Border radius */
253
355
  }
254
356
  ```
255
357
 
@@ -300,6 +402,7 @@ yarn storybook:android # Run Storybook on Android
300
402
  ### Build Performance
301
403
 
302
404
  The example app uses **Re.Pack 5 + Rspack** instead of Metro for:
405
+
303
406
  - ⚡ **5x faster cold builds**
304
407
  - ⚡ **5x faster hot module reload (HMR)**
305
408
  - 📦 **Zero package duplications**
@@ -320,6 +423,7 @@ import type { ButtonProps, CardProps } from '@campxdev/react-native-blueprint';
320
423
  ### "Cannot find module '@campxdev/react-native-blueprint/global.css'"
321
424
 
322
425
  Make sure you've:
426
+
323
427
  1. Installed NativeWind: `npm install nativewind tailwindcss`
324
428
  2. Configured Metro with NativeWind plugin (see Installation Step 5)
325
429
  3. Imported the CSS in your app entry point
@@ -348,15 +452,31 @@ content: [
348
452
  ],
349
453
  ```
350
454
 
351
- ## Migration from v0.1.x to v0.2.x
455
+ ## Migration Guides
352
456
 
353
- **Breaking Change**: CSS must now be manually imported.
457
+ ### Migration from v0.1.x to v0.2.x
354
458
 
355
- ### What changed?
459
+ **Breaking Changes**:
460
+ 1. CSS must now be manually imported
461
+ 2. Expo is no longer a direct dependency (but still supported!)
462
+ 3. Many dependencies moved to peer dependencies
356
463
 
357
- In v0.1.x, the CSS was automatically imported when you used `RootLayout`. In v0.2.x, you need to explicitly import the CSS file.
464
+ #### What changed?
358
465
 
359
- ### Migration steps
466
+ **v0.1.x**:
467
+ - Included Expo as direct dependency
468
+ - CSS auto-imported via `RootLayout`
469
+ - All packages bundled as direct dependencies
470
+
471
+ **v0.2.x**:
472
+ - ✅ Works with both Expo and bare React Native CLI
473
+ - ✅ CSS must be explicitly imported (better tree-shaking)
474
+ - ✅ Most packages are now peer dependencies (smaller bundle, less conflicts)
475
+ - ✅ CommonJS and ESM support (fixes module warnings)
476
+
477
+ #### Migration Steps
478
+
479
+ ##### For ALL Projects (Expo & Bare RN CLI)
360
480
 
361
481
  1. **Add CSS import** to your app entry point (e.g., `App.tsx` or `_layout.tsx`):
362
482
 
@@ -364,25 +484,54 @@ In v0.1.x, the CSS was automatically imported when you used `RootLayout`. In v0.
364
484
  import '@campxdev/react-native-blueprint/global.css';
365
485
  ```
366
486
 
367
- 2. **Install peer dependencies** (if not already installed):
487
+ 2. **Install peer dependencies**:
368
488
 
369
489
  ```sh
370
- npm install nativewind tailwindcss tailwindcss-animate
371
- # or
372
- yarn add nativewind tailwindcss tailwindcss-animate
490
+ # Required peer dependencies
491
+ npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
492
+
493
+ # Optional (install as needed)
494
+ npm install @gorhom/bottom-sheet react-native-worklets
495
+ npm install @rn-primitives/accordion @rn-primitives/dialog # ... etc
373
496
  ```
374
497
 
375
- 3. **Update imports** (if using the old package name):
498
+ ##### For Expo Projects ONLY
376
499
 
377
- ```tsx
378
- // Old
379
- import { Button } from 'react-native-blueprint';
500
+ 3. **Install Expo-specific packages** (if you want custom fonts):
380
501
 
381
- // New
382
- import { Button } from '@campxdev/react-native-blueprint';
502
+ ```sh
503
+ npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
383
504
  ```
384
505
 
385
- That's it! Your app should work as before.
506
+ ##### For Bare React Native CLI ONLY
507
+
508
+ 3. **Add Reanimated plugin** to `babel.config.js`:
509
+
510
+ ```js
511
+ module.exports = {
512
+ presets: ['module:@react-native/babel-preset'],
513
+ plugins: [
514
+ 'react-native-reanimated/plugin', // Must be last!
515
+ ],
516
+ };
517
+ ```
518
+
519
+ 4. **For iOS, run pod install**:
520
+
521
+ ```sh
522
+ cd ios && pod install && cd ..
523
+ ```
524
+
525
+ #### Font Handling Changes
526
+
527
+ **v0.1.x**: Fonts were loaded via Expo automatically
528
+
529
+ **v0.2.x**:
530
+ - Uses system fonts by default (works everywhere!)
531
+ - Expo users can still use `expo-font` (see installation guide)
532
+ - Bare RN CLI users can add custom fonts manually (see fonts.ts documentation)
533
+
534
+ That's it! Your app should work as before with better compatibility.
386
535
 
387
536
  ## Contributing
388
537
 
@@ -397,6 +546,7 @@ Contributions are welcome! Please follow these steps:
397
546
  ### Development Workflow
398
547
 
399
548
  1. Clone the repo and install dependencies:
549
+
400
550
  ```sh
401
551
  git clone https://github.com/campx-org/react-native-blueprint.git
402
552
  cd react-native-blueprint
@@ -406,6 +556,7 @@ Contributions are welcome! Please follow these steps:
406
556
  2. Run the example app:
407
557
 
408
558
  **Normal App Mode:**
559
+
409
560
  ```sh
410
561
  yarn example:app # Start dev server
411
562
  cd example && yarn app:ios # Or run on iOS
@@ -413,6 +564,7 @@ Contributions are welcome! Please follow these steps:
413
564
  ```
414
565
 
415
566
  **Storybook Mode (Component Library):**
567
+
416
568
  ```sh
417
569
  yarn example:storybook # Start Storybook
418
570
  cd example && yarn storybook:ios # Or run on iOS
@@ -422,6 +574,7 @@ Contributions are welcome! Please follow these steps:
422
574
  3. Make your changes in `/src`
423
575
 
424
576
  4. Run type checking and linting:
577
+
425
578
  ```sh
426
579
  yarn typecheck
427
580
  yarn lint
@@ -435,66 +588,12 @@ Contributions are welcome! Please follow these steps:
435
588
  ### Example App Tech Stack
436
589
 
437
590
  The example app showcases modern React Native development with:
591
+
438
592
  - **Re.Pack 5 + Rspack** - 5x faster than Metro bundler
439
593
  - **Storybook React Native** - Interactive component development
440
594
  - **NativeWind v4** - Tailwind CSS for React Native
441
595
  - **Command-based mode switching** - Easy switching between app and Storybook modes
442
596
 
443
- ## Publishing
444
-
445
- For maintainers who need to publish new versions of the package, we provide a comprehensive automated script.
446
-
447
- ### Publishing Script
448
-
449
- The [publish.sh](scripts/publish.sh) script handles the entire publishing workflow with comprehensive error handling.
450
-
451
- #### What it does:
452
-
453
- 1. **Cleans cache** - Removes `node_modules`, `lib`, and clears yarn cache
454
- 2. **Installs dependencies** - Runs `yarn install` to ensure everything is up to date
455
- 3. **Checks CLI tools** - Verifies React Native CLI and Reusables CLI availability
456
- 4. **Builds the library** - Runs `yarn prepare` (bob build) - *Note: TypeScript typecheck is skipped due to className issues*
457
- 5. **Verifies build outputs** - Ensures type declarations, source files, and module outputs are correctly generated
458
- 6. **Increments version** - Interactive prompts for patch/minor/major/custom version increments
459
- 7. **Git operations** - Commits changes with proper message and pushes to remote
460
- 8. **Publishes to npm** - Publishes the package with confirmation prompt
461
-
462
- #### Usage:
463
-
464
- ```sh
465
- # Run directly
466
- ./scripts/publish.sh
467
-
468
- # Or via yarn
469
- yarn publish-package
470
- ```
471
-
472
- #### Prerequisites:
473
-
474
- - Node.js and yarn installed
475
- - Git configured with credentials
476
- - Logged in to npm (`npm login`)
477
- - Publish permissions for the `@campxdev` scope
478
-
479
- #### Error Handling:
480
-
481
- The script provides detailed error messages and resolution steps for common failures:
482
-
483
- - **Cache/Install Issues** - Guides on cleaning and reinstalling dependencies
484
- - **CLI Missing** - Instructions to install required CLI tools
485
- - **Build Failures** - Steps to debug bob build issues
486
- - **Git Issues** - Help with credentials, permissions, and branch management
487
- - **NPM Issues** - Authentication and publish permission troubleshooting
488
-
489
- #### Important Notes:
490
-
491
- - TypeScript typecheck is intentionally skipped due to known className issues
492
- - Manual confirmation is required before publishing to prevent accidents
493
- - Commits are made with the configured git user (should be satya@campx.in)
494
- - The script pushes to your current branch - ensure you're on the correct branch
495
-
496
- For detailed troubleshooting, run the script and follow the error resolution steps provided.
497
-
498
597
  ## License
499
598
 
500
599
  MIT © [CAMPX](https://github.com/campx-org)
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = RootLayout;
7
+ var _portal = require("@rn-primitives/portal");
8
+ var _reactNative = require("react-native");
9
+ var _theme = require("../lib/theme");
10
+ var _native = require("@react-navigation/native");
11
+ var _nativewind = require("nativewind");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ /**
14
+ * RootLayout component - provides theme and navigation setup
15
+ *
16
+ * NOTE: CSS import intentionally removed for library export.
17
+ * Consumers must import '@campxdev/react-native-blueprint/global.css'
18
+ * in their app entry point.
19
+ */
20
+
21
+ function RootLayout({
22
+ children
23
+ }) {
24
+ const {
25
+ colorScheme
26
+ } = (0, _nativewind.useColorScheme)();
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_native.ThemeProvider, {
28
+ value: _theme.NAV_THEME[colorScheme ?? 'light'],
29
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.StatusBar, {
30
+ barStyle: colorScheme === 'dark' ? 'light-content' : 'dark-content'
31
+ }), children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.PortalHost, {})]
32
+ });
33
+ }
34
+ //# sourceMappingURL=_layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_portal","require","_reactNative","_theme","_native","_nativewind","_jsxRuntime","RootLayout","children","colorScheme","useColorScheme","jsxs","ThemeProvider","value","NAV_THEME","jsx","StatusBar","barStyle","PortalHost"],"sourceRoot":"../../../src","sources":["app/_layout.tsx"],"mappings":";;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAA4C,IAAAK,WAAA,GAAAL,OAAA;AAX5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAYe,SAASM,UAAUA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EAChE,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,0BAAc,EAAC,CAAC;EAExC,oBACE,IAAAJ,WAAA,CAAAK,IAAA,EAACP,OAAA,CAAAQ,aAAa;IAACC,KAAK,EAAEC,gBAAS,CAACL,WAAW,IAAI,OAAO,CAAE;IAAAD,QAAA,gBACtD,IAAAF,WAAA,CAAAS,GAAA,EAACb,YAAA,CAAAc,SAAS;MACRC,QAAQ,EAAER,WAAW,KAAK,MAAM,GAAG,eAAe,GAAG;IAAe,CACrE,CAAC,EACDD,QAAQ,eACT,IAAAF,WAAA,CAAAS,GAAA,EAACf,OAAA,CAAAkB,UAAU,IAAE,CAAC;EAAA,CACD,CAAC;AAEpB","ignoreList":[]}