@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
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Icon","require","_NativeOnlyAnimatedView","_Text","_utils","DropdownMenuPrimitive","_interopRequireWildcard","_lucideReactNative","React","_reactNative","_nativewind","_reactNativeReanimated","_reactNativeScreens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","View","cssInterop","RNView","className","Text","RNText","DropdownMenu","exports","Root","DropdownMenuTrigger","Trigger","DropdownMenuGroup","Group","DropdownMenuPortal","Portal","DropdownMenuSub","Sub","DropdownMenuRadioGroup","RadioGroup","DropdownMenuSubTrigger","_className","inset","children","iconClassName","props","open","useSubContext","icon","Platform","OS","ChevronRight","ChevronUp","ChevronDown","jsx","TextClassContext","Provider","value","cn","jsxs","SubTrigger","select","web","Fragment","Icon","as","DropdownMenuSubContent","NativeOnlyAnimatedView","entering","FadeIn","SubContent","FullWindowOverlay","RNFullWindowOverlay","DropdownMenuContent","overlayClassName","overlayStyle","portalHost","hostName","Overlay","style","undefined","native","StyleSheet","flatten","absoluteFill","Content","side","DropdownMenuItem","variant","Item","disabled","DropdownMenuCheckboxItem","CheckboxItem","ItemIndicator","Check","DropdownMenuRadioItem","RadioItem","DropdownMenuLabel","Label","DropdownMenuSeparator","Separator","DropdownMenuShortcut"],"sourceRoot":"../../../../src","sources":["components/ui/Dropdown-Menu.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AAMA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AASA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,sBAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AAAgF,IAAAY,WAAA,GAAAZ,OAAA;AAAA,SAAAK,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA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IAAA,CACgB;EAAC,CACT,CAAC;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASsD,iBAAiBA,CAAC;EACzBzE,SAAS;EACTkB,KAAK;EACL,GAAGG;AAKH,CAAC,EAAE;EACH,oBACE,IAAA5C,WAAA,CAAAqD,GAAA,EAAC7D,qBAAqB,CAACyG,KAAK;IAC1B1E,SAAS,EAAE,IAAAkC,SAAE,EACX,yDAAyD,EACzDhB,KAAK,IAAI,MAAM,EACflB,SACF,CAAE;IAAA,GACEqB;EAAK,CACV,CAAC;AAEN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASsD,qBAAqBA,CAAC;EAC7B3E,SAAS;EACT,GAAGqB;AAEmD,CAAC,EAAE;EACzD,oBACE,IAAA5C,WAAA,CAAAqD,GAAA,EAAC7D,qBAAqB,CAAC2G,SAAS;IAC9B5E,SAAS,EAAE,IAAAkC,SAAE,EAAC,2BAA2B,EAAElC,SAAS,CAAE;IAAA,GAClDqB;EAAK,CACV,CAAC;AAEN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASwD,oBAAoBA,CAAC;EAC5B7E,SAAS;EACT,GAAGqB;AACkC,CAAC,EAAE;EACxC,oBACE,IAAA5C,WAAA,CAAAqD,GAAA,EAAC7B,IAAI;IACHD,SAAS,EAAE,IAAAkC,SAAE,EACX,uDAAuD,EACvDlC,SACF,CAAE;IAAA,GACEqB;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.FloatingAction = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNativeFloatingAction = require("react-native-floating-action");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ /**
12
+ * FloatingAction Component
13
+ *
14
+ * A customizable floating action button (FAB) component with support for multiple actions.
15
+ * Based on react-native-floating-action with additional styling capabilities.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * import { FloatingAction } from 'react-native-blueprint';
20
+ *
21
+ * const actions = [
22
+ * {
23
+ * text: 'Add',
24
+ * icon: require('./add-icon.png'),
25
+ * name: 'bt_add',
26
+ * position: 1
27
+ * },
28
+ * {
29
+ * text: 'Delete',
30
+ * icon: require('./delete-icon.png'),
31
+ * name: 'bt_delete',
32
+ * position: 2
33
+ * }
34
+ * ];
35
+ *
36
+ * <FloatingAction
37
+ * actions={actions}
38
+ * onPressItem={(name) => {
39
+ * console.log(`Selected button: ${name}`);
40
+ * }}
41
+ * />
42
+ * ```
43
+ */
44
+ const FloatingAction = exports.FloatingAction = /*#__PURE__*/_react.default.forwardRef(({
45
+ className: _className,
46
+ ...props
47
+ }, ref) => {
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeFloatingAction.FloatingAction, {
49
+ ref: ref,
50
+ ...props
51
+ });
52
+ });
53
+ FloatingAction.displayName = 'FloatingAction';
54
+ var _default = exports.default = FloatingAction;
55
+ //# sourceMappingURL=Floating-Action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeFloatingAction","_jsxRuntime","e","__esModule","default","FloatingAction","exports","React","forwardRef","className","_className","props","ref","jsx","displayName","_default"],"sourceRoot":"../../../../src","sources":["components/ui/Floating-Action.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AAAkF,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AASlF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,cAA6C,GAAAC,OAAA,CAAAD,cAAA,gBAAGE,cAAK,CAACC,UAAU,CAG3E,CAAC;EAAEC,SAAS,EAAEC,UAAU;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9C,oBAAO,IAAAX,WAAA,CAAAY,GAAA,EAACb,0BAAA,CAAAK,cAAgB;IAACO,GAAG,EAAEA,GAAI;IAAA,GAAKD;EAAK,CAAG,CAAC;AAClD,CAAC,CAAC;AAEFN,cAAc,CAACS,WAAW,GAAG,gBAAgB;AAAC,IAAAC,QAAA,GAAAT,OAAA,CAAAF,OAAA,GAE/BC,cAAc","ignoreList":[]}
@@ -0,0 +1,401 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GreetingCard = GreetingCard;
7
+ exports.WEATHER_ICONS = void 0;
8
+ exports.fetchWeather = fetchWeather;
9
+ exports.formatDate = formatDate;
10
+ exports.getTimeBasedGreeting = getTimeBasedGreeting;
11
+ exports.getWeatherDescription = getWeatherDescription;
12
+ var React = _interopRequireWildcard(require("react"));
13
+ var _reactNative = require("react-native");
14
+ var _nativewind = require("nativewind");
15
+ var _utils = require("../../lib/utils");
16
+ var _CustomCard = require("./Custom-Card");
17
+ var _Text = require("./Text");
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
+ (0, _nativewind.cssInterop)(_reactNative.View, {
21
+ className: 'style'
22
+ });
23
+ (0, _nativewind.cssInterop)(_reactNative.Pressable, {
24
+ className: 'style'
25
+ });
26
+
27
+ /**
28
+ * Weather data structure for the greeting card
29
+ */
30
+
31
+ /**
32
+ * Weather icon mappings for different weather conditions
33
+ */
34
+ const WEATHER_ICONS = exports.WEATHER_ICONS = {
35
+ sunny: require('../../assets/icons/weather_icons/sunny_weather.png'),
36
+ partlyCloudy: require('../../assets/icons/weather_icons/partly_cloudy.png'),
37
+ foggy: require('../../assets/icons/weather_icons/foggy.png'),
38
+ drizzle: require('../../assets/icons/weather_icons/drizzle.png'),
39
+ rainy: require('../../assets/icons/weather_icons/rainy.png'),
40
+ freezingRain: require('../../assets/icons/weather_icons/freezing_rain.png'),
41
+ showers: require('../../assets/icons/weather_icons/showers.png'),
42
+ thunderstorm: require('../../assets/icons/weather_icons/thunderstorm.png'),
43
+ thunderstormHail: require('../../assets/icons/weather_icons/thunderstorm_hail.png')
44
+ };
45
+
46
+ /**
47
+ * Converts a weather code from Open-Meteo API to a description and icon
48
+ *
49
+ * @param {number} code - Weather code from Open-Meteo API (0-99)
50
+ * @returns {Object} Object containing description and icon path
51
+ *
52
+ * @example
53
+ * ```tsx
54
+ * const weatherInfo = getWeatherDescription(0);
55
+ * // Returns: { description: 'Clear Sky (Sunny)', weatherImage: ... }
56
+ * ```
57
+ */
58
+ function getWeatherDescription(code) {
59
+ const weatherMap = {
60
+ '0': {
61
+ description: 'Clear Sky (Sunny)',
62
+ icon: 'sunny'
63
+ },
64
+ '1,2,3': {
65
+ description: 'Partly Cloudy',
66
+ icon: 'partlyCloudy'
67
+ },
68
+ '45,48': {
69
+ description: 'Foggy',
70
+ icon: 'foggy'
71
+ },
72
+ '51,53,55': {
73
+ description: 'Drizzle',
74
+ icon: 'drizzle'
75
+ },
76
+ '56,57': {
77
+ description: 'Freezing Drizzle',
78
+ icon: 'drizzle'
79
+ },
80
+ '61,63,65': {
81
+ description: 'Rainy',
82
+ icon: 'rainy'
83
+ },
84
+ '66,67': {
85
+ description: 'Freezing Rain',
86
+ icon: 'freezingRain'
87
+ },
88
+ '80,81,82': {
89
+ description: 'Showers',
90
+ icon: 'showers'
91
+ },
92
+ '95': {
93
+ description: 'Thunderstorm',
94
+ icon: 'thunderstorm'
95
+ },
96
+ '96,99': {
97
+ description: 'Thunderstorm with Hail',
98
+ icon: 'thunderstormHail'
99
+ }
100
+ };
101
+ for (const [codes, info] of Object.entries(weatherMap)) {
102
+ if (codes.split(',').map(Number).includes(code)) {
103
+ return {
104
+ description: info.description,
105
+ weatherImage: WEATHER_ICONS[info.icon]
106
+ };
107
+ }
108
+ }
109
+ return {
110
+ description: 'Unknown Weather',
111
+ weatherImage: WEATHER_ICONS.sunny
112
+ };
113
+ }
114
+
115
+ /**
116
+ * Returns a greeting based on the current time of day
117
+ *
118
+ * @returns {string} Time-appropriate greeting
119
+ *
120
+ * @example
121
+ * ```tsx
122
+ * const greeting = getTimeBasedGreeting();
123
+ * // Returns: "Good Morning" (if it's morning)
124
+ * ```
125
+ */
126
+ function getTimeBasedGreeting() {
127
+ const hour = new Date().getHours();
128
+ if (hour >= 5 && hour < 12) {
129
+ return 'Good Morning';
130
+ } else if (hour >= 12 && hour < 17) {
131
+ return 'Good Afternoon';
132
+ } else if (hour >= 17 && hour < 21) {
133
+ return 'Good Evening';
134
+ } else {
135
+ return 'Good Night';
136
+ }
137
+ }
138
+
139
+ /**
140
+ * Formats a date to a readable string format
141
+ *
142
+ * @param {Date} date - Date to format
143
+ * @returns {string} Formatted date string (e.g., "Monday, 16 October")
144
+ */
145
+ function formatDate(date) {
146
+ const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
147
+ const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
148
+ const dayName = days[date.getDay()];
149
+ const day = date.getDate();
150
+ const monthName = months[date.getMonth()];
151
+ return `${dayName}, ${day} ${monthName}`;
152
+ }
153
+
154
+ /**
155
+ * Fetches weather data from Open-Meteo API
156
+ *
157
+ * @param {number} latitude - Latitude coordinate
158
+ * @param {number} longitude - Longitude coordinate
159
+ * @returns {Promise<Weather | null>} Weather data or null if fetch fails
160
+ *
161
+ * @example
162
+ * ```tsx
163
+ * const weather = await fetchWeather(37.7749, -122.4194);
164
+ * ```
165
+ */
166
+ async function fetchWeather(latitude, longitude) {
167
+ const url = `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}&current=temperature_2m,weathercode`;
168
+ try {
169
+ const response = await fetch(url);
170
+ if (response.ok) {
171
+ const data = await response.json();
172
+ const temperature = data.current?.temperature_2m ?? 0;
173
+ const weatherCode = data.current?.weathercode ?? 0;
174
+ const weatherInfo = getWeatherDescription(weatherCode);
175
+ return {
176
+ temperature,
177
+ weatherDescription: weatherInfo.description,
178
+ weatherImage: weatherInfo.weatherImage,
179
+ weatherCode,
180
+ lastUpdated: new Date()
181
+ };
182
+ }
183
+ return null;
184
+ } catch (error) {
185
+ console.error('Failed to fetch weather:', error);
186
+ return null;
187
+ }
188
+ }
189
+
190
+ /**
191
+ * Props for the GreetingCard component
192
+ */
193
+
194
+ /**
195
+ * GreetingCard - A personalized greeting card with weather information
196
+ *
197
+ * Displays a personalized greeting with the user's name, current date, and optional
198
+ * weather information fetched from Open-Meteo API. Includes an optional action button
199
+ * (e.g., "View Schedule"). Weather data is automatically cached for 15 minutes.
200
+ *
201
+ * @component
202
+ * @example
203
+ * ```tsx
204
+ * // Basic usage without weather
205
+ * <GreetingCard
206
+ * userName="John Doe"
207
+ * actionText="View Schedule"
208
+ * onPress={() => navigation.navigate('Schedule')}
209
+ * />
210
+ *
211
+ * // With automatic weather fetching (provide both lat and lng)
212
+ * <GreetingCard
213
+ * userName="Jane Smith"
214
+ * lat={37.7749}
215
+ * lng={-122.4194}
216
+ * actionText="View Dashboard"
217
+ * onPress={() => console.log('Card pressed')}
218
+ * />
219
+ *
220
+ * // Custom greeting without action
221
+ * <GreetingCard
222
+ * userName="Alice"
223
+ * customGreeting="Welcome back"
224
+ * showAction={false}
225
+ * />
226
+ * ```
227
+ *
228
+ * @property {string} userName - User's full name to display in greeting (required)
229
+ * @property {number} [lat] - Latitude coordinate for weather fetching (optional)
230
+ * @property {number} [lng] - Longitude coordinate for weather fetching (optional)
231
+ * @property {string} [customGreeting] - Override the time-based greeting
232
+ * @property {Date} [date] - Custom date to display (defaults to current date)
233
+ * @property {string} [actionText="View Details"] - Text for the action button
234
+ * @property {Function} [onPress] - Handler called when card or action is pressed
235
+ * @property {string} [className] - Additional Tailwind classes for styling
236
+ * @property {boolean} [showAction=true] - Whether to show the action button section
237
+ * @property {number} [cacheDuration=900000] - Cache duration in ms (default: 15 min)
238
+ */
239
+ function GreetingCard({
240
+ userName,
241
+ lat,
242
+ lng,
243
+ customGreeting,
244
+ date = new Date(),
245
+ actionText = 'View Details',
246
+ onPress,
247
+ className,
248
+ showAction = true,
249
+ cacheDuration = 15 * 60 * 1000 // 15 minutes
250
+ }) {
251
+ const colorScheme = (0, _reactNative.useColorScheme)();
252
+ const isDark = colorScheme === 'dark';
253
+ const [weather, setWeather] = React.useState(null);
254
+ const [isLoading, setIsLoading] = React.useState(false);
255
+ const cacheRef = React.useRef(null);
256
+
257
+ // Dynamic styles based on theme
258
+ const dynamicStyles = React.useMemo(() => ({
259
+ separator: {
260
+ ...styles.separator,
261
+ backgroundColor: isDark ? 'rgba(255, 255, 255, 0.15)' : 'rgba(0, 0, 0, 0.1)'
262
+ }
263
+ }), [isDark]);
264
+ React.useEffect(() => {
265
+ const loadWeather = async () => {
266
+ if (lat === undefined || lng === undefined) {
267
+ return;
268
+ }
269
+ const now = Date.now();
270
+
271
+ // Check cache
272
+ if (cacheRef.current && now - cacheRef.current.timestamp < cacheDuration) {
273
+ setWeather(cacheRef.current.data);
274
+ return;
275
+ }
276
+ setIsLoading(true);
277
+ try {
278
+ const weatherData = await fetchWeather(lat, lng);
279
+ setWeather(weatherData);
280
+ cacheRef.current = {
281
+ data: weatherData,
282
+ timestamp: now
283
+ };
284
+ } catch (error) {
285
+ console.error('Error loading weather:', error);
286
+ } finally {
287
+ setIsLoading(false);
288
+ }
289
+ };
290
+ loadWeather();
291
+ }, [lat, lng, cacheDuration]);
292
+ const greeting = customGreeting || getTimeBasedGreeting();
293
+ const formattedDate = formatDate(date);
294
+ const CardWrapper = onPress ? _reactNative.Pressable : _reactNative.View;
295
+ const wrapperProps = onPress ? {
296
+ onPress,
297
+ android_ripple: {
298
+ color: 'rgba(0, 0, 0, 0.1)'
299
+ }
300
+ } : {};
301
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(CardWrapper, {
302
+ ...wrapperProps,
303
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomCard.CustomCard, {
304
+ cornerRadius: 20,
305
+ cornerSmoothing: 1,
306
+ className: (0, _utils.cn)('border-primary/20 dark:border-primary/30', className),
307
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
308
+ style: styles.contentWrapper,
309
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
310
+ style: styles.headerSection,
311
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
312
+ style: styles.greetingText,
313
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.Text, {
314
+ className: "text-sm font-semibold text-card-foreground dark:text-card-foreground",
315
+ children: ["Hi ", userName, ","]
316
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.Text, {
317
+ className: "mt-1.5 text-xs tracking-wider text-muted-foreground dark:text-muted-foreground",
318
+ children: [greeting, ", ", formattedDate]
319
+ })]
320
+ }), (weather || isLoading) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
321
+ style: styles.weatherContainer,
322
+ children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.Text, {
323
+ className: "text-xs text-muted-foreground dark:text-muted-foreground",
324
+ children: "Loading..."
325
+ }) : weather && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
326
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
327
+ style: styles.weatherRow,
328
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
329
+ source: weather.weatherImage,
330
+ style: styles.weatherIcon,
331
+ resizeMode: "contain"
332
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.Text, {
333
+ className: "ml-1 text-xs text-card-foreground dark:text-card-foreground",
334
+ children: [Math.round(weather.temperature), "\xB0 C"]
335
+ })]
336
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.Text, {
337
+ className: "mt-0.5 text-xs text-muted-foreground/70 dark:text-muted-foreground/70",
338
+ children: weather.weatherDescription
339
+ })]
340
+ })
341
+ })]
342
+ }), showAction && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
343
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
344
+ style: dynamicStyles.separator
345
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
346
+ style: styles.actionSection,
347
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.Text, {
348
+ className: "text-sm font-semibold text-card-foreground dark:text-card-foreground",
349
+ children: actionText
350
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.Text, {
351
+ className: "text-2xl text-primary dark:text-primary",
352
+ children: "\u203A"
353
+ })]
354
+ })]
355
+ })]
356
+ })
357
+ })
358
+ });
359
+ }
360
+ GreetingCard.displayName = 'GreetingCard';
361
+ const styles = _reactNative.StyleSheet.create({
362
+ weatherIcon: {
363
+ width: 40,
364
+ height: 35
365
+ },
366
+ contentWrapper: {
367
+ margin: -24 // Counteract CustomCard's default padding of 24
368
+ },
369
+ headerSection: {
370
+ flexDirection: 'row',
371
+ alignItems: 'flex-start',
372
+ justifyContent: 'space-between',
373
+ paddingHorizontal: 20,
374
+ paddingTop: 20,
375
+ paddingBottom: 16
376
+ },
377
+ greetingText: {
378
+ flex: 1
379
+ },
380
+ weatherContainer: {
381
+ marginLeft: 12,
382
+ alignItems: 'flex-end'
383
+ },
384
+ weatherRow: {
385
+ flexDirection: 'row',
386
+ alignItems: 'center'
387
+ },
388
+ separator: {
389
+ height: 1,
390
+ marginVertical: 8
391
+ },
392
+ actionSection: {
393
+ flexDirection: 'row',
394
+ alignItems: 'center',
395
+ justifyContent: 'space-between',
396
+ paddingHorizontal: 20,
397
+ paddingBottom: 12,
398
+ paddingTop: 4
399
+ }
400
+ });
401
+ //# sourceMappingURL=Greeting-Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_nativewind","_utils","_CustomCard","_Text","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","cssInterop","View","className","Pressable","WEATHER_ICONS","exports","sunny","partlyCloudy","foggy","drizzle","rainy","freezingRain","showers","thunderstorm","thunderstormHail","getWeatherDescription","code","weatherMap","description","icon","codes","info","entries","split","map","Number","includes","weatherImage","getTimeBasedGreeting","hour","Date","getHours","formatDate","date","days","months","dayName","getDay","day","getDate","monthName","getMonth","fetchWeather","latitude","longitude","url","response","fetch","ok","data","json","temperature","current","temperature_2m","weatherCode","weathercode","weatherInfo","weatherDescription","lastUpdated","error","console","GreetingCard","userName","lat","lng","customGreeting","actionText","onPress","showAction","cacheDuration","colorScheme","useColorScheme","isDark","weather","setWeather","useState","isLoading","setIsLoading","cacheRef","useRef","dynamicStyles","useMemo","separator","styles","backgroundColor","useEffect","loadWeather","undefined","now","timestamp","weatherData","greeting","formattedDate","CardWrapper","wrapperProps","android_ripple","color","jsx","children","CustomCard","cornerRadius","cornerSmoothing","cn","jsxs","style","contentWrapper","headerSection","greetingText","Text","weatherContainer","Fragment","weatherRow","Image","source","weatherIcon","resizeMode","Math","round","actionSection","displayName","StyleSheet","create","width","height","margin","flexDirection","alignItems","justifyContent","paddingHorizontal","paddingTop","paddingBottom","flex","marginLeft","marginVertical"],"sourceRoot":"../../../../src","sources":["components/ui/Greeting-Card.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAA8B,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,O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,CAAC;EACDf,UAAU,EAAE;IACVc,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACD5C,SAAS,EAAE;IACTyC,MAAM,EAAE,CAAC;IACTU,cAAc,EAAE;EAClB,CAAC;EACDf,aAAa,EAAE;IACbO,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,iBAAiB,EAAE,EAAE;IACrBE,aAAa,EAAE,EAAE;IACjBD,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HoverCard = void 0;
7
+ exports.HoverCardContent = HoverCardContent;
8
+ exports.HoverCardTrigger = void 0;
9
+ var _NativeOnlyAnimatedView = require("./Native-Only-Animated-View");
10
+ var _Text = require("./Text");
11
+ var _utils = require("../../lib/utils");
12
+ var HoverCardPrimitive = _interopRequireWildcard(require("@rn-primitives/hover-card"));
13
+ var React = _interopRequireWildcard(require("react"));
14
+ var _reactNative = require("react-native");
15
+ var _reactNativeReanimated = require("react-native-reanimated");
16
+ var _reactNativeScreens = require("react-native-screens");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
+ /**
20
+ * Root component for hover card - provides context for trigger and content
21
+ *
22
+ * @component
23
+ * @example
24
+ * ```tsx
25
+ * <HoverCard>
26
+ * <HoverCardTrigger>
27
+ * <Text>Hover over me</Text>
28
+ * </HoverCardTrigger>
29
+ * <HoverCardContent>
30
+ * <Text>Additional information appears here</Text>
31
+ * </HoverCardContent>
32
+ * </HoverCard>
33
+ * ```
34
+ */const HoverCard = exports.HoverCard = HoverCardPrimitive.Root;
35
+
36
+ /**
37
+ * Trigger component that shows hover card content on hover/press
38
+ *
39
+ * @component
40
+ */
41
+ const HoverCardTrigger = exports.HoverCardTrigger = HoverCardPrimitive.Trigger;
42
+
43
+ /**
44
+ * Full window overlay wrapper for iOS, Fragment for other platforms
45
+ */
46
+ const FullWindowOverlay = _reactNative.Platform.OS === 'ios' ? _reactNativeScreens.FullWindowOverlay : React.Fragment;
47
+
48
+ /**
49
+ * Content container for hover card
50
+ *
51
+ * Displays rich content in a popover when hovering over or pressing the trigger.
52
+ * Includes smooth fade animations and proper positioning.
53
+ *
54
+ * @component
55
+ * @example
56
+ * ```tsx
57
+ * <HoverCardContent align="center" sideOffset={8}>
58
+ * <View className="gap-2">
59
+ * <Text className="font-semibold">User Profile</Text>
60
+ * <Text className="text-sm">Additional details about the user</Text>
61
+ * </View>
62
+ * </HoverCardContent>
63
+ * ```
64
+ *
65
+ * @accessibility
66
+ * - Content is announced by screen readers
67
+ * - Proper focus management on web
68
+ */
69
+ function HoverCardContent({
70
+ className,
71
+ align = 'center',
72
+ sideOffset = 4,
73
+ ...props
74
+ }) {
75
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(HoverCardPrimitive.Portal, {
76
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FullWindowOverlay, {
77
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(HoverCardPrimitive.Overlay, {
78
+ style: _reactNative.Platform.select({
79
+ native: _reactNative.StyleSheet.absoluteFill
80
+ }),
81
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NativeOnlyAnimatedView.NativeOnlyAnimatedView, {
82
+ entering: _reactNativeReanimated.FadeIn,
83
+ exiting: _reactNativeReanimated.FadeOut,
84
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
85
+ value: "text-popover-foreground",
86
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(HoverCardPrimitive.Content, {
87
+ align: align,
88
+ sideOffset: sideOffset,
89
+ className: (0, _utils.cn)('bg-popover border-border outline-hidden z-50 w-64 rounded-md border p-4 shadow-md shadow-black/5', _reactNative.Platform.select({
90
+ web: (0, _utils.cn)('animate-in fade-in-0 zoom-in-95 origin-(--radix-hover-card-content-transform-origin) cursor-default [&>*]:cursor-auto', props.side === 'bottom' && 'slide-in-from-top-2', props.side === 'top' && 'slide-in-from-bottom-2')
91
+ }), className),
92
+ ...props
93
+ })
94
+ })
95
+ })
96
+ })
97
+ })
98
+ });
99
+ }
100
+ //# sourceMappingURL=Hover-Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_NativeOnlyAnimatedView","require","_Text","_utils","HoverCardPrimitive","_interopRequireWildcard","React","_reactNative","_reactNativeReanimated","_reactNativeScreens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","HoverCard","exports","Root","HoverCardTrigger","Trigger","FullWindowOverlay","Platform","OS","RNFullWindowOverlay","Fragment","HoverCardContent","className","align","sideOffset","props","jsx","Portal","children","Overlay","style","select","native","StyleSheet","absoluteFill","NativeOnlyAnimatedView","entering","FadeIn","exiting","FadeOut","TextClassContext","Provider","value","Content","cn","web","side"],"sourceRoot":"../../../../src","sources":["components/ui/Hover-Card.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAD,uBAAA,CAAAJ,OAAA;AACA,IA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