@campxdev/react-native-blueprint 0.1.9 → 0.1.12

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 (410) hide show
  1. package/README.md +287 -26
  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/components/ui/index.js +24 -19
  132. package/lib/module/components/ui/index.js.map +1 -1
  133. package/lib/module/lib/fonts.js +81 -8
  134. package/lib/module/lib/fonts.js.map +1 -1
  135. package/lib/typescript/commonjs/package.json +1 -0
  136. package/lib/typescript/commonjs/src/app/_layout.d.ts.map +1 -0
  137. package/lib/typescript/commonjs/src/components/theme-config.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/src/components/ui/Accordion.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/src/components/ui/Alert-Dialog.d.ts.map +1 -0
  140. package/lib/typescript/commonjs/src/components/ui/Alert.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/src/components/ui/AppBar.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
  143. package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts +65 -65
  144. package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts.map +1 -1
  145. package/lib/typescript/{src → commonjs/src}/components/ui/Badge.d.ts +3 -3
  146. package/lib/typescript/commonjs/src/components/ui/Badge.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
  148. package/lib/typescript/{src → commonjs/src}/components/ui/Button.d.ts +3 -3
  149. package/lib/typescript/commonjs/src/components/ui/Button.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/src/components/ui/Card.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/components/ui/Checkbox.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/src/components/ui/Collapsible.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/src/components/ui/Context-Menu.d.ts.map +1 -0
  154. package/lib/typescript/commonjs/src/components/ui/Custom-Card.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/src/components/ui/Dialog.d.ts.map +1 -0
  156. package/lib/typescript/commonjs/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/src/components/ui/Floating-Action.d.ts.map +1 -0
  158. package/lib/typescript/commonjs/src/components/ui/Greeting-Card.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/components/ui/Hover-Card.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/src/components/ui/Icon.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/components/ui/Input.d.ts.map +1 -0
  162. package/lib/typescript/commonjs/src/components/ui/Label.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/components/ui/Menubar.d.ts.map +1 -0
  164. package/lib/typescript/commonjs/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/components/ui/NavBar.d.ts.map +1 -0
  166. package/lib/typescript/commonjs/src/components/ui/Popover.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/src/components/ui/Progress.d.ts.map +1 -0
  168. package/lib/typescript/commonjs/src/components/ui/Radio-Group.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/src/components/ui/Select.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/src/components/ui/Separator.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/src/components/ui/SizedBox.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/components/ui/Skeleton.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/components/ui/Slider.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/src/components/ui/Switch.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/src/components/ui/Table.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/src/components/ui/Tabs.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/components/ui/Text.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/components/ui/Textarea.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/src/components/ui/Theme-Toggle.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/src/components/ui/Toast.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/src/components/ui/Toggle-Group.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/components/ui/Toggle.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/src/components/ui/Tooltip.d.ts.map +1 -0
  184. package/lib/typescript/{src → commonjs/src}/components/ui/index.d.ts +19 -19
  185. package/lib/typescript/commonjs/src/components/ui/index.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/lib/ThemeProvider.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/src/lib/cornerRadius.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/src/lib/fonts.d.ts +16 -0
  190. package/lib/typescript/commonjs/src/lib/fonts.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/src/lib/slot-helpers.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/src/lib/theme.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/src/lib/utils.d.ts.map +1 -0
  194. package/lib/typescript/module/src/app/_layout.d.ts +7 -0
  195. package/lib/typescript/module/src/app/_layout.d.ts.map +1 -0
  196. package/lib/typescript/module/src/components/theme-config.d.ts +174 -0
  197. package/lib/typescript/module/src/components/theme-config.d.ts.map +1 -0
  198. package/lib/typescript/module/src/components/ui/Accordion.d.ts +103 -0
  199. package/lib/typescript/module/src/components/ui/Accordion.d.ts.map +1 -0
  200. package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts +145 -0
  201. package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts.map +1 -0
  202. package/lib/typescript/module/src/components/ui/Alert.d.ts +61 -0
  203. package/lib/typescript/module/src/components/ui/Alert.d.ts.map +1 -0
  204. package/lib/typescript/module/src/components/ui/AppBar.d.ts +227 -0
  205. package/lib/typescript/module/src/components/ui/AppBar.d.ts.map +1 -0
  206. package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts +24 -0
  207. package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
  208. package/lib/typescript/module/src/components/ui/Avatar.d.ts +1486 -0
  209. package/lib/typescript/module/src/components/ui/Avatar.d.ts.map +1 -0
  210. package/lib/typescript/module/src/components/ui/Badge.d.ts +77 -0
  211. package/lib/typescript/module/src/components/ui/Badge.d.ts.map +1 -0
  212. package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts +43 -0
  213. package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
  214. package/lib/typescript/module/src/components/ui/Button.d.ts +23 -0
  215. package/lib/typescript/module/src/components/ui/Button.d.ts.map +1 -0
  216. package/lib/typescript/module/src/components/ui/Card.d.ts +93 -0
  217. package/lib/typescript/module/src/components/ui/Card.d.ts.map +1 -0
  218. package/lib/typescript/module/src/components/ui/Checkbox.d.ts +36 -0
  219. package/lib/typescript/module/src/components/ui/Checkbox.d.ts.map +1 -0
  220. package/lib/typescript/module/src/components/ui/Collapsible.d.ts +37 -0
  221. package/lib/typescript/module/src/components/ui/Collapsible.d.ts.map +1 -0
  222. package/lib/typescript/module/src/components/ui/Context-Menu.d.ts +107 -0
  223. package/lib/typescript/module/src/components/ui/Context-Menu.d.ts.map +1 -0
  224. package/lib/typescript/module/src/components/ui/Custom-Card.d.ts +103 -0
  225. package/lib/typescript/module/src/components/ui/Custom-Card.d.ts.map +1 -0
  226. package/lib/typescript/module/src/components/ui/Dialog.d.ts +90 -0
  227. package/lib/typescript/module/src/components/ui/Dialog.d.ts.map +1 -0
  228. package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts +242 -0
  229. package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
  230. package/lib/typescript/module/src/components/ui/Floating-Action.d.ts +44 -0
  231. package/lib/typescript/module/src/components/ui/Floating-Action.d.ts.map +1 -0
  232. package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts +153 -0
  233. package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts.map +1 -0
  234. package/lib/typescript/module/src/components/ui/Hover-Card.d.ts +49 -0
  235. package/lib/typescript/module/src/components/ui/Hover-Card.d.ts.map +1 -0
  236. package/lib/typescript/module/src/components/ui/Icon.d.ts +43 -0
  237. package/lib/typescript/module/src/components/ui/Icon.d.ts.map +1 -0
  238. package/lib/typescript/module/src/components/ui/Input.d.ts +54 -0
  239. package/lib/typescript/module/src/components/ui/Input.d.ts.map +1 -0
  240. package/lib/typescript/module/src/components/ui/Label.d.ts +34 -0
  241. package/lib/typescript/module/src/components/ui/Label.d.ts.map +1 -0
  242. package/lib/typescript/module/src/components/ui/Menubar.d.ts +142 -0
  243. package/lib/typescript/module/src/components/ui/Menubar.d.ts.map +1 -0
  244. package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts +26 -0
  245. package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
  246. package/lib/typescript/module/src/components/ui/NavBar.d.ts +273 -0
  247. package/lib/typescript/module/src/components/ui/NavBar.d.ts.map +1 -0
  248. package/lib/typescript/module/src/components/ui/Popover.d.ts +54 -0
  249. package/lib/typescript/module/src/components/ui/Popover.d.ts.map +1 -0
  250. package/lib/typescript/module/src/components/ui/Progress.d.ts +27 -0
  251. package/lib/typescript/module/src/components/ui/Progress.d.ts.map +1 -0
  252. package/lib/typescript/module/src/components/ui/Radio-Group.d.ts +47 -0
  253. package/lib/typescript/module/src/components/ui/Radio-Group.d.ts.map +1 -0
  254. package/lib/typescript/module/src/components/ui/Select.d.ts +86 -0
  255. package/lib/typescript/module/src/components/ui/Select.d.ts.map +1 -0
  256. package/lib/typescript/module/src/components/ui/Separator.d.ts +40 -0
  257. package/lib/typescript/module/src/components/ui/Separator.d.ts.map +1 -0
  258. package/lib/typescript/module/src/components/ui/SizedBox.d.ts +79 -0
  259. package/lib/typescript/module/src/components/ui/SizedBox.d.ts.map +1 -0
  260. package/lib/typescript/module/src/components/ui/Skeleton.d.ts +42 -0
  261. package/lib/typescript/module/src/components/ui/Skeleton.d.ts.map +1 -0
  262. package/lib/typescript/module/src/components/ui/Slider.d.ts +56 -0
  263. package/lib/typescript/module/src/components/ui/Slider.d.ts.map +1 -0
  264. package/lib/typescript/module/src/components/ui/Switch.d.ts +34 -0
  265. package/lib/typescript/module/src/components/ui/Switch.d.ts.map +1 -0
  266. package/lib/typescript/module/src/components/ui/Table.d.ts +80 -0
  267. package/lib/typescript/module/src/components/ui/Table.d.ts.map +1 -0
  268. package/lib/typescript/module/src/components/ui/Tabs.d.ts +51 -0
  269. package/lib/typescript/module/src/components/ui/Tabs.d.ts.map +1 -0
  270. package/lib/typescript/module/src/components/ui/Text.d.ts +45 -0
  271. package/lib/typescript/module/src/components/ui/Text.d.ts.map +1 -0
  272. package/lib/typescript/module/src/components/ui/Textarea.d.ts +65 -0
  273. package/lib/typescript/module/src/components/ui/Textarea.d.ts.map +1 -0
  274. package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts +67 -0
  275. package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts.map +1 -0
  276. package/lib/typescript/module/src/components/ui/Toast.d.ts +56 -0
  277. package/lib/typescript/module/src/components/ui/Toast.d.ts.map +1 -0
  278. package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts +49 -0
  279. package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts.map +1 -0
  280. package/lib/typescript/module/src/components/ui/Toggle.d.ts +53 -0
  281. package/lib/typescript/module/src/components/ui/Toggle.d.ts.map +1 -0
  282. package/lib/typescript/module/src/components/ui/Tooltip.d.ts +51 -0
  283. package/lib/typescript/module/src/components/ui/Tooltip.d.ts.map +1 -0
  284. package/lib/typescript/module/src/components/ui/index.d.ts +44 -0
  285. package/lib/typescript/module/src/components/ui/index.d.ts.map +1 -0
  286. package/lib/typescript/module/src/index.d.ts +9 -0
  287. package/lib/typescript/module/src/index.d.ts.map +1 -0
  288. package/lib/typescript/module/src/lib/ThemeProvider.d.ts +137 -0
  289. package/lib/typescript/module/src/lib/ThemeProvider.d.ts.map +1 -0
  290. package/lib/typescript/module/src/lib/cornerRadius.d.ts +112 -0
  291. package/lib/typescript/module/src/lib/cornerRadius.d.ts.map +1 -0
  292. package/lib/typescript/module/src/lib/fonts.d.ts +16 -0
  293. package/lib/typescript/module/src/lib/fonts.d.ts.map +1 -0
  294. package/lib/typescript/module/src/lib/slot-helpers.d.ts +32 -0
  295. package/lib/typescript/module/src/lib/slot-helpers.d.ts.map +1 -0
  296. package/lib/typescript/module/src/lib/theme.d.ts +87 -0
  297. package/lib/typescript/module/src/lib/theme.d.ts.map +1 -0
  298. package/lib/typescript/module/src/lib/utils.d.ts +111 -0
  299. package/lib/typescript/module/src/lib/utils.d.ts.map +1 -0
  300. package/package.json +609 -50
  301. package/src/components/ui/Alert-Dialog.tsx +2 -2
  302. package/src/components/ui/Context-Menu.tsx +1 -1
  303. package/src/components/ui/Dropdown-Menu.tsx +1 -1
  304. package/src/components/ui/Menubar.tsx +2 -2
  305. package/src/components/ui/Tabs.tsx +1 -1
  306. package/src/components/ui/Toggle-Group.tsx +2 -2
  307. package/src/components/ui/index.ts +24 -19
  308. package/src/lib/fonts.ts +83 -12
  309. package/lib/typescript/src/app/_layout.d.ts.map +0 -1
  310. package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
  311. package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
  312. package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
  313. package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
  314. package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
  315. package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
  316. package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
  317. package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
  318. package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
  319. package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
  320. package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
  321. package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
  322. package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
  323. package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
  324. package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
  325. package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
  326. package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
  327. package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
  328. package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
  329. package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
  330. package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
  331. package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
  332. package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
  333. package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
  334. package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
  335. package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
  336. package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
  337. package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
  338. package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
  339. package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
  340. package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
  341. package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
  342. package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
  343. package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
  344. package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
  345. package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
  346. package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
  347. package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
  348. package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
  349. package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
  350. package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
  351. package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
  352. package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
  353. package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
  354. package/lib/typescript/src/index.d.ts.map +0 -1
  355. package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
  356. package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
  357. package/lib/typescript/src/lib/fonts.d.ts +0 -21
  358. package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
  359. package/lib/typescript/src/lib/slot-helpers.d.ts.map +0 -1
  360. package/lib/typescript/src/lib/theme.d.ts.map +0 -1
  361. package/lib/typescript/src/lib/utils.d.ts.map +0 -1
  362. /package/lib/typescript/{src → commonjs/src}/app/_layout.d.ts +0 -0
  363. /package/lib/typescript/{src → commonjs/src}/components/theme-config.d.ts +0 -0
  364. /package/lib/typescript/{src → commonjs/src}/components/ui/Accordion.d.ts +0 -0
  365. /package/lib/typescript/{src → commonjs/src}/components/ui/Alert-Dialog.d.ts +0 -0
  366. /package/lib/typescript/{src → commonjs/src}/components/ui/Alert.d.ts +0 -0
  367. /package/lib/typescript/{src → commonjs/src}/components/ui/AppBar.d.ts +0 -0
  368. /package/lib/typescript/{src → commonjs/src}/components/ui/Aspect-Ratio.d.ts +0 -0
  369. /package/lib/typescript/{src → commonjs/src}/components/ui/Bottom-Sheet.d.ts +0 -0
  370. /package/lib/typescript/{src → commonjs/src}/components/ui/Card.d.ts +0 -0
  371. /package/lib/typescript/{src → commonjs/src}/components/ui/Checkbox.d.ts +0 -0
  372. /package/lib/typescript/{src → commonjs/src}/components/ui/Collapsible.d.ts +0 -0
  373. /package/lib/typescript/{src → commonjs/src}/components/ui/Context-Menu.d.ts +0 -0
  374. /package/lib/typescript/{src → commonjs/src}/components/ui/Custom-Card.d.ts +0 -0
  375. /package/lib/typescript/{src → commonjs/src}/components/ui/Dialog.d.ts +0 -0
  376. /package/lib/typescript/{src → commonjs/src}/components/ui/Dropdown-Menu.d.ts +0 -0
  377. /package/lib/typescript/{src → commonjs/src}/components/ui/Floating-Action.d.ts +0 -0
  378. /package/lib/typescript/{src → commonjs/src}/components/ui/Greeting-Card.d.ts +0 -0
  379. /package/lib/typescript/{src → commonjs/src}/components/ui/Hover-Card.d.ts +0 -0
  380. /package/lib/typescript/{src → commonjs/src}/components/ui/Icon.d.ts +0 -0
  381. /package/lib/typescript/{src → commonjs/src}/components/ui/Input.d.ts +0 -0
  382. /package/lib/typescript/{src → commonjs/src}/components/ui/Label.d.ts +0 -0
  383. /package/lib/typescript/{src → commonjs/src}/components/ui/Menubar.d.ts +0 -0
  384. /package/lib/typescript/{src → commonjs/src}/components/ui/Native-Only-Animated-View.d.ts +0 -0
  385. /package/lib/typescript/{src → commonjs/src}/components/ui/NavBar.d.ts +0 -0
  386. /package/lib/typescript/{src → commonjs/src}/components/ui/Popover.d.ts +0 -0
  387. /package/lib/typescript/{src → commonjs/src}/components/ui/Progress.d.ts +0 -0
  388. /package/lib/typescript/{src → commonjs/src}/components/ui/Radio-Group.d.ts +0 -0
  389. /package/lib/typescript/{src → commonjs/src}/components/ui/Select.d.ts +0 -0
  390. /package/lib/typescript/{src → commonjs/src}/components/ui/Separator.d.ts +0 -0
  391. /package/lib/typescript/{src → commonjs/src}/components/ui/SizedBox.d.ts +0 -0
  392. /package/lib/typescript/{src → commonjs/src}/components/ui/Skeleton.d.ts +0 -0
  393. /package/lib/typescript/{src → commonjs/src}/components/ui/Slider.d.ts +0 -0
  394. /package/lib/typescript/{src → commonjs/src}/components/ui/Switch.d.ts +0 -0
  395. /package/lib/typescript/{src → commonjs/src}/components/ui/Table.d.ts +0 -0
  396. /package/lib/typescript/{src → commonjs/src}/components/ui/Tabs.d.ts +0 -0
  397. /package/lib/typescript/{src → commonjs/src}/components/ui/Text.d.ts +0 -0
  398. /package/lib/typescript/{src → commonjs/src}/components/ui/Textarea.d.ts +0 -0
  399. /package/lib/typescript/{src → commonjs/src}/components/ui/Theme-Toggle.d.ts +0 -0
  400. /package/lib/typescript/{src → commonjs/src}/components/ui/Toast.d.ts +0 -0
  401. /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle-Group.d.ts +0 -0
  402. /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle.d.ts +0 -0
  403. /package/lib/typescript/{src → commonjs/src}/components/ui/Tooltip.d.ts +0 -0
  404. /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
  405. /package/lib/typescript/{src → commonjs/src}/lib/ThemeProvider.d.ts +0 -0
  406. /package/lib/typescript/{src → commonjs/src}/lib/cornerRadius.d.ts +0 -0
  407. /package/lib/typescript/{src → commonjs/src}/lib/slot-helpers.d.ts +0 -0
  408. /package/lib/typescript/{src → commonjs/src}/lib/theme.d.ts +0 -0
  409. /package/lib/typescript/{src → commonjs/src}/lib/utils.d.ts +0 -0
  410. /package/lib/typescript/{package.json → module/package.json} +0 -0
package/README.md CHANGED
@@ -21,7 +21,29 @@ 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
+ ### Quick Start
27
+
28
+ ```bash
29
+ # Install the package
30
+ npm install @campxdev/react-native-blueprint
31
+ # or
32
+ yarn add @campxdev/react-native-blueprint
33
+
34
+ # Install required peer dependencies (minimum)
35
+ npm install @rn-primitives/slot @rn-primitives/types nativewind tailwindcss tailwindcss-animate
36
+ # or
37
+ yarn add @rn-primitives/slot @rn-primitives/types nativewind tailwindcss tailwindcss-animate
38
+ ```
39
+
40
+ **Note:** Only install the `@rn-primitives` packages for components you actually use. See the [Component Dependencies](#component-dependencies) table below.
41
+
42
+ ### For Bare React Native CLI Projects (Recommended)
43
+
44
+ Perfect for apps like **CampxMobileApp** using React Native CLI without Expo.
45
+
46
+ #### 1. Install the package
25
47
 
26
48
  ```sh
27
49
  npm install @campxdev/react-native-blueprint
@@ -29,15 +51,80 @@ npm install @campxdev/react-native-blueprint
29
51
  yarn add @campxdev/react-native-blueprint
30
52
  ```
31
53
 
32
- ### 2. Install required peer dependencies
54
+ #### 2. Install required peer dependencies
33
55
 
34
56
  ```sh
35
- npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
57
+ 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
58
  # or
37
- yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
59
+ yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
60
+ ```
61
+
62
+ #### 3. Install optional peer dependencies (as needed)
63
+
64
+ ```sh
65
+ # For bottom sheet components (optional)
66
+ npm install @gorhom/bottom-sheet
67
+
68
+ # For advanced animations (optional)
69
+ npm install react-native-worklets
70
+
71
+ # For specific UI primitives (install only what you need)
72
+ npm install @rn-primitives/accordion @rn-primitives/dialog @rn-primitives/avatar
73
+ # ... add other @rn-primitives packages as needed
74
+ ```
75
+
76
+ #### 4. For iOS, install CocoaPods
77
+
78
+ ```sh
79
+ cd ios && pod install && cd ..
80
+ ```
81
+
82
+ #### 5. Add Reanimated Babel plugin
83
+
84
+ Update your `babel.config.js`:
85
+
86
+ ```js
87
+ module.exports = {
88
+ presets: ['module:@react-native/babel-preset'],
89
+ plugins: [
90
+ 'react-native-reanimated/plugin', // Must be listed last!
91
+ ],
92
+ };
38
93
  ```
39
94
 
40
- ### 3. Import the global styles
95
+ ### For Expo Projects
96
+
97
+ If you're using Expo, the installation is simpler:
98
+
99
+ #### 1. Install the package and peer dependencies
100
+
101
+ ```sh
102
+ npx expo install @campxdev/react-native-blueprint nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg
103
+ # Expo will automatically install compatible versions
104
+ ```
105
+
106
+ #### 2. Install optional fonts (for custom fonts)
107
+
108
+ ```sh
109
+ npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
110
+ ```
111
+
112
+ Then load fonts in your app:
113
+
114
+ ```tsx
115
+ import { useFonts } from 'expo-font';
116
+ import { Poppins_400Regular, Poppins_600SemiBold } from '@expo-google-fonts/poppins';
117
+
118
+ function App() {
119
+ const [fontsLoaded] = useFonts({ Poppins_400Regular, Poppins_600SemiBold });
120
+ if (!fontsLoaded) return null;
121
+ // Your app
122
+ }
123
+ ```
124
+
125
+ ### Common Setup (Required for Both)
126
+
127
+ #### Import the global styles
41
128
 
42
129
  In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
43
130
 
@@ -45,7 +132,7 @@ In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
45
132
  import '@campxdev/react-native-blueprint/global.css';
46
133
  ```
47
134
 
48
- ### 4. Configure NativeWind
135
+ #### Configure NativeWind
49
136
 
50
137
  Create or update `tailwind.config.js`:
51
138
 
@@ -105,9 +192,9 @@ module.exports = {
105
192
  };
106
193
  ```
107
194
 
108
- ### 5. Configure Bundler (Metro or Re.Pack)
195
+ #### Configure Bundler (Metro or Re.Pack)
109
196
 
110
- **Option A: Metro (Standard)**
197
+ **For Expo Projects:**
111
198
 
112
199
  Update `metro.config.js`:
113
200
 
@@ -120,7 +207,22 @@ const config = getDefaultConfig(__dirname);
120
207
  module.exports = withNativeWind(config, { input: './global.css' });
121
208
  ```
122
209
 
123
- **Option B: Re.Pack + Rspack (5x Faster - Used in Example App)**
210
+ **For Bare React Native CLI Projects:**
211
+
212
+ Update `metro.config.js`:
213
+
214
+ ```js
215
+ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
216
+ const { withNativeWind } = require('nativewind/metro');
217
+
218
+ const config = mergeConfig(getDefaultConfig(__dirname), {
219
+ // Your custom Metro config
220
+ });
221
+
222
+ module.exports = withNativeWind(config, { input: './global.css' });
223
+ ```
224
+
225
+ **Alternative: Re.Pack + Rspack (5x Faster - Used in Example App)**
124
226
 
125
227
  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
228
 
@@ -155,7 +257,11 @@ If you want to use Re.Pack in your project:
155
257
 
156
258
  ## Usage
157
259
 
158
- ### Basic Example
260
+ The library supports two import methods:
261
+
262
+ ### Option 1: Main Package Import (Default)
263
+
264
+ Import all components from the main package. You only need to install the `@rn-primitives` packages for components you actually use.
159
265
 
160
266
  ```tsx
161
267
  // Import CSS at the top of your app entry point (do this ONCE)
@@ -199,6 +305,50 @@ function App() {
199
305
  }
200
306
  ```
201
307
 
308
+ ### Option 2: Tree-Shakeable Imports (Recommended for Production)
309
+
310
+ Import components individually for better tree-shaking and smaller bundle sizes. This ensures you only bundle what you use.
311
+
312
+ ```tsx
313
+ // Import CSS at the top of your app entry point (do this ONCE)
314
+ import '@campxdev/react-native-blueprint/global.css';
315
+
316
+ import { Button } from '@campxdev/react-native-blueprint/Button';
317
+ import { Card } from '@campxdev/react-native-blueprint/Card';
318
+ import { Text } from '@campxdev/react-native-blueprint/Text';
319
+ import { Input } from '@campxdev/react-native-blueprint/Input';
320
+ import { Alert } from '@campxdev/react-native-blueprint/Alert';
321
+ import { View } from 'react-native';
322
+
323
+ function App() {
324
+ return (
325
+ <View className="flex-1 p-4 bg-background">
326
+ <Card>
327
+ <Card.Header>
328
+ <Card.Title>Welcome</Card.Title>
329
+ <Card.Description>
330
+ Get started with react-native-blueprint
331
+ </Card.Description>
332
+ </Card.Header>
333
+ <Card.Content>
334
+ <Input placeholder="Enter your name" />
335
+ </Card.Content>
336
+ <Card.Footer>
337
+ <Button>
338
+ <Text>Submit</Text>
339
+ </Button>
340
+ </Card.Footer>
341
+ </Card>
342
+
343
+ <Alert>
344
+ <Alert.Title>Info</Alert.Title>
345
+ <Alert.Description>This is a sample alert component.</Alert.Description>
346
+ </Alert>
347
+ </View>
348
+ );
349
+ }
350
+ ```
351
+
202
352
  ## Available Components
203
353
 
204
354
  ### Layout & Structure
@@ -256,6 +406,72 @@ function App() {
256
406
  - **Toggle** - Toggle button
257
407
  - **Toggle Group** - Group of toggle buttons
258
408
 
409
+ ## Component Dependencies
410
+
411
+ All peer dependencies are **optional** - only install what you need based on the components you use.
412
+
413
+ ### Core Dependencies (Required for Most Components)
414
+
415
+ ```bash
416
+ npm install @rn-primitives/slot @rn-primitives/types
417
+ ```
418
+
419
+ ### Component-Specific Dependencies
420
+
421
+ | Component | Required Packages | Notes |
422
+ |-----------|------------------|-------|
423
+ | **Accordion** | `@rn-primitives/accordion`<br/>`@rn-primitives/collapsible` | Collapsible content sections |
424
+ | **Alert** | None | Always available |
425
+ | **Alert-Dialog** | `@rn-primitives/alert-dialog`<br/>`@rn-primitives/portal` | Confirmation dialogs |
426
+ | **AppBar** | None | Always available |
427
+ | **Aspect-Ratio** | `@rn-primitives/aspect-ratio` | Fixed aspect ratio containers |
428
+ | **Avatar** | `@rn-primitives/avatar` | User avatars with fallback |
429
+ | **Badge** | None | Always available |
430
+ | **Bottom-Sheet** | `@gorhom/bottom-sheet`<br/>`react-native-reanimated`<br/>`react-native-gesture-handler` | Bottom sheet modals |
431
+ | **Button** | `@rn-primitives/slot` | Always available with slot |
432
+ | **Card** | None | Always available |
433
+ | **Checkbox** | `@rn-primitives/checkbox` | Checkbox inputs |
434
+ | **Collapsible** | `@rn-primitives/collapsible` | Expandable content |
435
+ | **Context-Menu** | `@rn-primitives/context-menu` | Right-click menus |
436
+ | **Custom-Card** | None | Always available |
437
+ | **Dialog** | `@rn-primitives/dialog`<br/>`@rn-primitives/portal` | Modal dialogs |
438
+ | **Dropdown-Menu** | `@rn-primitives/dropdown-menu` | Dropdown menus |
439
+ | **Floating-Action** | `react-native-floating-action` | Floating action button |
440
+ | **Greeting-Card** | None | Always available |
441
+ | **Hover-Card** | `@rn-primitives/hover-card` | Hover-triggered cards |
442
+ | **Icon** | `lucide-react-native`<br/>`react-native-svg` | Icon library |
443
+ | **Input** | None | Always available |
444
+ | **Label** | `@rn-primitives/label` | Form labels |
445
+ | **Menubar** | `@rn-primitives/menubar` | Menu bars |
446
+ | **Native-Only-Animated-View** | `react-native-reanimated` | Animated views |
447
+ | **NavBar** | None | Always available |
448
+ | **Popover** | `@rn-primitives/popover` | Floating popovers |
449
+ | **Progress** | `@rn-primitives/progress` | Progress bars |
450
+ | **Radio-Group** | `@rn-primitives/radio-group` | Radio button groups |
451
+ | **Select** | `@rn-primitives/select` | Dropdown selects |
452
+ | **Separator** | None | Always available |
453
+ | **SizedBox** | None | Always available |
454
+ | **Skeleton** | None | Always available (loading states) |
455
+ | **Slider** | `@rn-primitives/slider` | Range sliders |
456
+ | **Switch** | `@rn-primitives/switch` | Toggle switches |
457
+ | **Table** | None | Always available |
458
+ | **Tabs** | `@rn-primitives/tabs` | Tab navigation |
459
+ | **Text** | None | Always available |
460
+ | **Textarea** | None | Always available |
461
+ | **Theme-Toggle** | None | Always available |
462
+ | **Toast** | Custom implementation | Toast notifications |
463
+ | **Toggle** | `@rn-primitives/toggle` | Toggle buttons |
464
+ | **Toggle-Group** | `@rn-primitives/toggle-group` | Toggle button groups |
465
+ | **Tooltip** | `@rn-primitives/tooltip` | Hover tooltips |
466
+
467
+ ### Install All Optional Dependencies (For All Components)
468
+
469
+ If you want to use all components without worrying about individual dependencies:
470
+
471
+ ```bash
472
+ npm install @rn-primitives/accordion @rn-primitives/alert-dialog @rn-primitives/aspect-ratio @rn-primitives/avatar @rn-primitives/checkbox @rn-primitives/collapsible @rn-primitives/context-menu @rn-primitives/dialog @rn-primitives/dropdown-menu @rn-primitives/hover-card @rn-primitives/label @rn-primitives/menubar @rn-primitives/popover @rn-primitives/portal @rn-primitives/progress @rn-primitives/radio-group @rn-primitives/select @rn-primitives/separator @rn-primitives/slider @rn-primitives/slot @rn-primitives/switch @rn-primitives/tabs @rn-primitives/toggle @rn-primitives/toggle-group @rn-primitives/tooltip @rn-primitives/types @gorhom/bottom-sheet react-native-worklets
473
+ ```
474
+
259
475
  ## Theming
260
476
 
261
477
  Components use CSS variables for theming. Customize your app's appearance by modifying the CSS variables in `global.css`:
@@ -366,15 +582,31 @@ content: [
366
582
  ],
367
583
  ```
368
584
 
369
- ## Migration from v0.1.x to v0.2.x
585
+ ## Migration Guides
586
+
587
+ ### Migration from v0.1.x to v0.2.x
588
+
589
+ **Breaking Changes**:
590
+ 1. CSS must now be manually imported
591
+ 2. Expo is no longer a direct dependency (but still supported!)
592
+ 3. Many dependencies moved to peer dependencies
593
+
594
+ #### What changed?
370
595
 
371
- **Breaking Change**: CSS must now be manually imported.
596
+ **v0.1.x**:
597
+ - Included Expo as direct dependency
598
+ - CSS auto-imported via `RootLayout`
599
+ - All packages bundled as direct dependencies
372
600
 
373
- ### What changed?
601
+ **v0.2.x**:
602
+ - ✅ Works with both Expo and bare React Native CLI
603
+ - ✅ CSS must be explicitly imported (better tree-shaking)
604
+ - ✅ Most packages are now peer dependencies (smaller bundle, less conflicts)
605
+ - ✅ CommonJS and ESM support (fixes module warnings)
374
606
 
375
- 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.
607
+ #### Migration Steps
376
608
 
377
- ### Migration steps
609
+ ##### For ALL Projects (Expo & Bare RN CLI)
378
610
 
379
611
  1. **Add CSS import** to your app entry point (e.g., `App.tsx` or `_layout.tsx`):
380
612
 
@@ -382,25 +614,54 @@ In v0.1.x, the CSS was automatically imported when you used `RootLayout`. In v0.
382
614
  import '@campxdev/react-native-blueprint/global.css';
383
615
  ```
384
616
 
385
- 2. **Install peer dependencies** (if not already installed):
617
+ 2. **Install peer dependencies**:
386
618
 
387
619
  ```sh
388
- npm install nativewind tailwindcss tailwindcss-animate
389
- # or
390
- yarn add nativewind tailwindcss tailwindcss-animate
620
+ # Required peer dependencies
621
+ npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
622
+
623
+ # Optional (install as needed)
624
+ npm install @gorhom/bottom-sheet react-native-worklets
625
+ npm install @rn-primitives/accordion @rn-primitives/dialog # ... etc
391
626
  ```
392
627
 
393
- 3. **Update imports** (if using the old package name):
628
+ ##### For Expo Projects ONLY
394
629
 
395
- ```tsx
396
- // Old
397
- import { Button } from 'react-native-blueprint';
630
+ 3. **Install Expo-specific packages** (if you want custom fonts):
398
631
 
399
- // New
400
- import { Button } from '@campxdev/react-native-blueprint';
632
+ ```sh
633
+ npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
401
634
  ```
402
635
 
403
- That's it! Your app should work as before.
636
+ ##### For Bare React Native CLI ONLY
637
+
638
+ 3. **Add Reanimated plugin** to `babel.config.js`:
639
+
640
+ ```js
641
+ module.exports = {
642
+ presets: ['module:@react-native/babel-preset'],
643
+ plugins: [
644
+ 'react-native-reanimated/plugin', // Must be last!
645
+ ],
646
+ };
647
+ ```
648
+
649
+ 4. **For iOS, run pod install**:
650
+
651
+ ```sh
652
+ cd ios && pod install && cd ..
653
+ ```
654
+
655
+ #### Font Handling Changes
656
+
657
+ **v0.1.x**: Fonts were loaded via Expo automatically
658
+
659
+ **v0.2.x**:
660
+ - Uses system fonts by default (works everywhere!)
661
+ - Expo users can still use `expo-font` (see installation guide)
662
+ - Bare RN CLI users can add custom fonts manually (see fonts.ts documentation)
663
+
664
+ That's it! Your app should work as before with better compatibility.
404
665
 
405
666
  ## Contributing
406
667
 
@@ -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":[]}