@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
@@ -0,0 +1,280 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AlertDialog = void 0;
7
+ exports.AlertDialogAction = AlertDialogAction;
8
+ exports.AlertDialogCancel = AlertDialogCancel;
9
+ exports.AlertDialogContent = AlertDialogContent;
10
+ exports.AlertDialogDescription = AlertDialogDescription;
11
+ exports.AlertDialogFooter = AlertDialogFooter;
12
+ exports.AlertDialogHeader = AlertDialogHeader;
13
+ exports.AlertDialogOverlay = AlertDialogOverlay;
14
+ exports.AlertDialogPortal = void 0;
15
+ exports.AlertDialogTitle = AlertDialogTitle;
16
+ exports.AlertDialogTrigger = void 0;
17
+ var _Button = require("./Button");
18
+ var _NativeOnlyAnimatedView = require("./Native-Only-Animated-View");
19
+ var _Text = require("./Text");
20
+ var _utils = require("../../lib/utils");
21
+ var AlertDialogPrimitive = _interopRequireWildcard(require("@rn-primitives/alert-dialog"));
22
+ var React = _interopRequireWildcard(require("react"));
23
+ var _reactNative = require("react-native");
24
+ var _nativewind = require("nativewind");
25
+ var _reactNativeReanimated = require("react-native-reanimated");
26
+ var _reactNativeScreens = require("react-native-screens");
27
+ var _jsxRuntime = require("react/jsx-runtime");
28
+ 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); }
29
+ const View = (0, _nativewind.cssInterop)(_reactNative.View, {
30
+ className: 'style'
31
+ });
32
+
33
+ /**
34
+ * Root alert dialog container
35
+ *
36
+ * A modal dialog that interrupts the user with important content and expects a response.
37
+ * Use for critical actions that require user confirmation before proceeding.
38
+ *
39
+ * @component
40
+ * @example
41
+ * ```tsx
42
+ * <AlertDialog>
43
+ * <AlertDialogTrigger asChild>
44
+ * <Button variant="destructive"><Text>Delete Account</Text></Button>
45
+ * </AlertDialogTrigger>
46
+ * <AlertDialogContent>
47
+ * <AlertDialogHeader>
48
+ * <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
49
+ * <AlertDialogDescription>
50
+ * This action cannot be undone.
51
+ * </AlertDialogDescription>
52
+ * </AlertDialogHeader>
53
+ * <AlertDialogFooter>
54
+ * <AlertDialogCancel><Text>Cancel</Text></AlertDialogCancel>
55
+ * <AlertDialogAction><Text>Continue</Text></AlertDialogAction>
56
+ * </AlertDialogFooter>
57
+ * </AlertDialogContent>
58
+ * </AlertDialog>
59
+ * ```
60
+ *
61
+ * @accessibility
62
+ * - Traps focus within dialog when open
63
+ * - Closes on Escape key press
64
+ * - Returns focus to trigger on close
65
+ * - Uses appropriate ARIA attributes
66
+ */
67
+ const AlertDialog = exports.AlertDialog = AlertDialogPrimitive.Root;
68
+
69
+ /**
70
+ * Trigger button that opens the alert dialog
71
+ *
72
+ * @component
73
+ * @example
74
+ * ```tsx
75
+ * <AlertDialogTrigger asChild>
76
+ * <Button><Text>Open Dialog</Text></Button>
77
+ * </AlertDialogTrigger>
78
+ * ```
79
+ */
80
+ const AlertDialogTrigger = exports.AlertDialogTrigger = AlertDialogPrimitive.Trigger;
81
+
82
+ /**
83
+ * Portal component for rendering dialog content outside the DOM hierarchy
84
+ */
85
+ const AlertDialogPortal = exports.AlertDialogPortal = AlertDialogPrimitive.Portal;
86
+ const FullWindowOverlay = _reactNative.Platform.OS === 'ios' ? _reactNativeScreens.FullWindowOverlay : React.Fragment;
87
+
88
+ /**
89
+ * Semi-transparent overlay behind the alert dialog
90
+ *
91
+ * Provides backdrop that dims background content and handles click-outside behavior.
92
+ * Uses platform-specific full window overlay on iOS for proper z-index layering.
93
+ *
94
+ * @component
95
+ * @example
96
+ * ```tsx
97
+ * <AlertDialogOverlay>
98
+ * <AlertDialogContent>...</AlertDialogContent>
99
+ * </AlertDialogOverlay>
100
+ * ```
101
+ */
102
+ function AlertDialogOverlay({
103
+ className,
104
+ children,
105
+ ...props
106
+ }) {
107
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(FullWindowOverlay, {
108
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPrimitive.Overlay, {
109
+ className: (0, _utils.cn)('absolute bottom-0 left-0 right-0 top-0 z-50 flex items-center justify-center bg-black/50 p-2', _reactNative.Platform.select({
110
+ web: 'animate-in fade-in-0 fixed'
111
+ }), className),
112
+ ...props,
113
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NativeOnlyAnimatedView.NativeOnlyAnimatedView, {
114
+ entering: _reactNativeReanimated.FadeIn.duration(200).delay(50),
115
+ exiting: _reactNativeReanimated.FadeOut.duration(150),
116
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
117
+ children: children
118
+ })
119
+ })
120
+ })
121
+ });
122
+ }
123
+
124
+ /**
125
+ * Main alert dialog content container
126
+ *
127
+ * Contains the dialog's title, description, and action buttons. Automatically centered
128
+ * on screen with smooth entrance animations.
129
+ *
130
+ * @component
131
+ * @example
132
+ * ```tsx
133
+ * <AlertDialogContent>
134
+ * <AlertDialogHeader>
135
+ * <AlertDialogTitle>Confirm Action</AlertDialogTitle>
136
+ * <AlertDialogDescription>Description here</AlertDialogDescription>
137
+ * </AlertDialogHeader>
138
+ * <AlertDialogFooter>
139
+ * <AlertDialogCancel><Text>Cancel</Text></AlertDialogCancel>
140
+ * <AlertDialogAction><Text>Continue</Text></AlertDialogAction>
141
+ * </AlertDialogFooter>
142
+ * </AlertDialogContent>
143
+ * ```
144
+ */
145
+ function AlertDialogContent({
146
+ className,
147
+ portalHost,
148
+ ...props
149
+ }) {
150
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPortal, {
151
+ hostName: portalHost,
152
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogOverlay, {
153
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPrimitive.Content, {
154
+ className: (0, _utils.cn)('bg-background border-border z-50 flex w-full max-w-[calc(100%-2rem)] flex-col gap-4 rounded-lg border p-6 shadow-lg shadow-black/5 sm:max-w-lg', _reactNative.Platform.select({
155
+ web: 'animate-in fade-in-0 zoom-in-95 duration-200'
156
+ }), className),
157
+ ...props
158
+ })
159
+ })
160
+ });
161
+ }
162
+
163
+ /**
164
+ * Header section for alert dialog content
165
+ *
166
+ * Groups the title and description with proper spacing and text alignment.
167
+ *
168
+ * @component
169
+ */
170
+ function AlertDialogHeader({
171
+ className,
172
+ ...props
173
+ }) {
174
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
175
+ value: "text-center sm:text-left",
176
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
177
+ className: (0, _utils.cn)('flex flex-col gap-2', className),
178
+ ...props
179
+ })
180
+ });
181
+ }
182
+
183
+ /**
184
+ * Footer section for alert dialog action buttons
185
+ *
186
+ * Contains cancel and action buttons with responsive layout (stacked on mobile, row on desktop).
187
+ *
188
+ * @component
189
+ */
190
+ function AlertDialogFooter({
191
+ className,
192
+ ...props
193
+ }) {
194
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
195
+ className: (0, _utils.cn)('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className),
196
+ ...props
197
+ });
198
+ }
199
+
200
+ /**
201
+ * Title text for the alert dialog
202
+ *
203
+ * Prominently displays the main heading with large, semibold text.
204
+ *
205
+ * @component
206
+ */
207
+ function AlertDialogTitle({
208
+ className,
209
+ ...props
210
+ }) {
211
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPrimitive.Title, {
212
+ className: (0, _utils.cn)('text-foreground text-lg font-semibold', className),
213
+ ...props
214
+ });
215
+ }
216
+
217
+ /**
218
+ * Description text for the alert dialog
219
+ *
220
+ * Provides additional context below the title with muted styling.
221
+ *
222
+ * @component
223
+ */
224
+ function AlertDialogDescription({
225
+ className,
226
+ ...props
227
+ }) {
228
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPrimitive.Description, {
229
+ className: (0, _utils.cn)('text-muted-foreground text-sm', className),
230
+ ...props
231
+ });
232
+ }
233
+
234
+ /**
235
+ * Primary action button that confirms the alert dialog action
236
+ *
237
+ * Styled as a primary button. Automatically closes dialog on press.
238
+ *
239
+ * @component
240
+ */
241
+ function AlertDialogAction({
242
+ className,
243
+ ...props
244
+ }) {
245
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
246
+ value: (0, _Button.buttonTextVariants)({
247
+ className
248
+ }),
249
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPrimitive.Action, {
250
+ className: (0, _utils.cn)((0, _Button.buttonVariants)(), className),
251
+ ...props
252
+ })
253
+ });
254
+ }
255
+
256
+ /**
257
+ * Cancel button that dismisses the alert dialog
258
+ *
259
+ * Styled as an outline button. Automatically closes dialog on press without performing action.
260
+ *
261
+ * @component
262
+ */
263
+ function AlertDialogCancel({
264
+ className,
265
+ ...props
266
+ }) {
267
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
268
+ value: (0, _Button.buttonTextVariants)({
269
+ className,
270
+ variant: 'outline'
271
+ }),
272
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertDialogPrimitive.Cancel, {
273
+ className: (0, _utils.cn)((0, _Button.buttonVariants)({
274
+ variant: 'outline'
275
+ }), className),
276
+ ...props
277
+ })
278
+ });
279
+ }
280
+ //# sourceMappingURL=Alert-Dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Button","require","_NativeOnlyAnimatedView","_Text","_utils","AlertDialogPrimitive","_interopRequireWildcard","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","AlertDialog","exports","Root","AlertDialogTrigger","Trigger","AlertDialogPortal","Portal","FullWindowOverlay","Platform","OS","RNFullWindowOverlay","Fragment","AlertDialogOverlay","children","props","jsx","Overlay","cn","select","web","NativeOnlyAnimatedView","entering","FadeIn","duration","delay","exiting","FadeOut","AlertDialogContent","portalHost","hostName","Content","AlertDialogHeader","TextClassContext","Provider","value","AlertDialogFooter","AlertDialogTitle","Title","AlertDialogDescription","Description","AlertDialogAction","buttonTextVariants","Action","buttonVariants","AlertDialogCancel","variant","Cancel"],"sourceRoot":"../../../../src","sources":["components/ui/Alert-Dialog.tsx"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAA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AA,CAAAuC,GAAA,EAAC9C,oBAAoB,CAACyE,MAAM;MAC1B3C,SAAS,EAAE,IAAAkB,SAAE,EAAC,IAAA0B,sBAAc,EAAC,CAAC,EAAE5C,SAAS,CAAE;MAAA,GACtCe;IAAK,CACX;EAAC,CACuB,CAAC;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS8B,iBAAiBA,CAAC;EACzB7C,SAAS;EACT,GAAGe;AAE+C,CAAC,EAAE;EACrD,oBACE,IAAAtC,WAAA,CAAAuC,GAAA,EAAChD,KAAA,CAAAiE,gBAAgB,CAACC,QAAQ;IACxBC,KAAK,EAAE,IAAAO,0BAAkB,EAAC;MAAE1C,SAAS;MAAE8C,OAAO,EAAE;IAAU,CAAC,CAAE;IAAAhC,QAAA,eAE7D,IAAArC,WAAA,CAAAuC,GAAA,EAAC9C,oBAAoB,CAAC6E,MAAM;MAC1B/C,SAAS,EAAE,IAAAkB,SAAE,EAAC,IAAA0B,sBAAc,EAAC;QAAEE,OAAO,EAAE;MAAU,CAAC,CAAC,EAAE9C,SAAS,CAAE;MAAA,GAC5De;IAAK,CACX;EAAC,CACuB,CAAC;AAEhC","ignoreList":[]}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Alert = Alert;
7
+ exports.AlertDescription = AlertDescription;
8
+ exports.AlertTitle = AlertTitle;
9
+ var _Icon = require("./Icon");
10
+ var _Text = require("./Text");
11
+ var _utils = require("../../lib/utils");
12
+ var React = _interopRequireWildcard(require("react"));
13
+ var _reactNative = require("react-native");
14
+ var _nativewind = require("nativewind");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ 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); }
17
+ const View = (0, _nativewind.cssInterop)(_reactNative.View, {
18
+ className: 'style'
19
+ });
20
+
21
+ /**
22
+ * Alert component for displaying important messages or notifications
23
+ *
24
+ * Features an icon on the left side with title and description.
25
+ * Supports default and destructive variants for different severity levels.
26
+ *
27
+ * @component
28
+ * @example
29
+ * ```tsx
30
+ * <Alert icon={AlertCircle} variant="default">
31
+ * <AlertTitle><Text>Heads up!</Text></AlertTitle>
32
+ * <AlertDescription>
33
+ * <Text>You can add components to your app using the cli.</Text>
34
+ * </AlertDescription>
35
+ * </Alert>
36
+ *
37
+ * // Destructive variant
38
+ * <Alert icon={AlertTriangle} variant="destructive">
39
+ * <AlertTitle><Text>Error</Text></AlertTitle>
40
+ * <AlertDescription>
41
+ * <Text>Your session has expired. Please login again.</Text>
42
+ * </AlertDescription>
43
+ * </Alert>
44
+ * ```
45
+ *
46
+ * @param {LucideIcon} icon - Icon component to display
47
+ * @param {'default' | 'destructive'} [variant='default'] - Alert style variant
48
+ * @param {string} [iconClassName] - Additional classes for the icon
49
+ * @param {string} [className] - Additional classes for the container
50
+ *
51
+ * @accessibility Sets role="alert" for screen reader announcement
52
+ */
53
+ function Alert({
54
+ className,
55
+ variant,
56
+ children,
57
+ icon,
58
+ iconClassName,
59
+ ...props
60
+ }) {
61
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
62
+ value: (0, _utils.cn)('text-sm text-foreground dark:text-foreground', variant === 'destructive' && 'text-destructive dark:text-destructive', className),
63
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(View, {
64
+ role: "alert",
65
+ className: (0, _utils.cn)('bg-card dark:bg-card border-border dark:border-border relative w-full rounded-lg border px-4 pb-2 pt-3.5', className),
66
+ ...props,
67
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
68
+ className: "absolute left-3.5 top-3",
69
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
70
+ as: icon,
71
+ className: (0, _utils.cn)('size-4 text-foreground dark:text-foreground', variant === 'destructive' && 'text-destructive dark:text-destructive', iconClassName)
72
+ })
73
+ }), children]
74
+ })
75
+ });
76
+ }
77
+
78
+ /**
79
+ * AlertTitle - Title text for the alert
80
+ *
81
+ * Displays as a medium-weight heading with appropriate spacing from the icon.
82
+ *
83
+ * @param {string} [className] - Additional Tailwind classes
84
+ */
85
+ function AlertTitle({
86
+ className,
87
+ ...props
88
+ }) {
89
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.Text, {
90
+ className: (0, _utils.cn)('mb-1 ml-0.5 min-h-4 pl-6 font-medium leading-none tracking-tight', className),
91
+ ...props
92
+ });
93
+ }
94
+
95
+ /**
96
+ * AlertDescription - Description text for the alert
97
+ *
98
+ * Displays detailed message content with muted styling and appropriate spacing.
99
+ * Automatically adjusts color for destructive variants.
100
+ *
101
+ * @param {string} [className] - Additional Tailwind classes
102
+ */
103
+ function AlertDescription({
104
+ className,
105
+ ...props
106
+ }) {
107
+ const textClass = React.useContext(_Text.TextClassContext);
108
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.Text, {
109
+ className: (0, _utils.cn)('text-muted-foreground dark:text-muted-foreground ml-0.5 pb-1.5 pl-6 text-sm leading-relaxed', textClass?.includes('text-destructive') && 'text-destructive/90 dark:text-destructive/90', className),
110
+ ...props
111
+ });
112
+ }
113
+ //# sourceMappingURL=Alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Icon","require","_Text","_utils","React","_interopRequireWildcard","_reactNative","_nativewind","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","View","cssInterop","RNView","className","Alert","variant","children","icon","iconClassName","props","jsx","TextClassContext","Provider","value","cn","jsxs","role","Icon","as","AlertTitle","Text","AlertDescription","textClass","useContext","includes"],"sourceRoot":"../../../../src","sources":["components/ui/Alert.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAAwC,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAI,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,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,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,C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