@campxdev/react-native-blueprint 0.1.9 → 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 +156 -25
  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,235 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Accordion = Accordion;
7
+ exports.AccordionContent = AccordionContent;
8
+ exports.AccordionItem = AccordionItem;
9
+ exports.AccordionTrigger = AccordionTrigger;
10
+ var AccordionPrimitive = _interopRequireWildcard(require("@rn-primitives/accordion"));
11
+ var _lucideReactNative = require("lucide-react-native");
12
+ var _nativewind = require("nativewind");
13
+ var _reactNative = require("react-native");
14
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
15
+ var _utils = require("../../lib/utils");
16
+ var _Icon = require("./Icon");
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
+ * Root accordion container with smooth animations
29
+ *
30
+ * A vertically stacked set of interactive panels where only one or multiple panels can be expanded at a time.
31
+ * Features smooth layout animations using Reanimated for a polished user experience.
32
+ *
33
+ * @component
34
+ * @example
35
+ * ```tsx
36
+ * // Single selection
37
+ * <Accordion type="single" collapsible defaultValue="item-1">
38
+ * <AccordionItem value="item-1">
39
+ * <AccordionTrigger>
40
+ * <Text>Question 1</Text>
41
+ * </AccordionTrigger>
42
+ * <AccordionContent>
43
+ * <Text>Answer 1</Text>
44
+ * </AccordionContent>
45
+ * </AccordionItem>
46
+ * </Accordion>
47
+ *
48
+ * // Multiple selection
49
+ * <Accordion type="multiple">
50
+ * <AccordionItem value="item-1">
51
+ * <AccordionTrigger><Text>Section 1</Text></AccordionTrigger>
52
+ * <AccordionContent><Text>Content 1</Text></AccordionContent>
53
+ * </AccordionItem>
54
+ * <AccordionItem value="item-2">
55
+ * <AccordionTrigger><Text>Section 2</Text></AccordionTrigger>
56
+ * <AccordionContent><Text>Content 2</Text></AccordionContent>
57
+ * </AccordionItem>
58
+ * </Accordion>
59
+ * ```
60
+ *
61
+ * @accessibility
62
+ * - Implements WAI-ARIA accordion pattern
63
+ * - Keyboard navigation with arrow keys and Enter/Space
64
+ * - Proper ARIA attributes for expanded/collapsed states
65
+ */
66
+ function Accordion({
67
+ children,
68
+ ...props
69
+ }) {
70
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.LayoutAnimationConfig, {
71
+ skipEntering: true,
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionPrimitive.Root, {
73
+ ...props,
74
+ asChild: _reactNative.Platform.OS !== 'web',
75
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
76
+ layout: _reactNativeReanimated.LinearTransition.duration(200),
77
+ children: children
78
+ })
79
+ })
80
+ });
81
+ }
82
+
83
+ /**
84
+ * Individual accordion item with border styling
85
+ *
86
+ * Contains a trigger and content section. Each item must have a unique value prop
87
+ * for identification within the parent Accordion.
88
+ *
89
+ * @component
90
+ * @example
91
+ * ```tsx
92
+ * <AccordionItem value="item-1">
93
+ * <AccordionTrigger>
94
+ * <Text>Click to expand</Text>
95
+ * </AccordionTrigger>
96
+ * <AccordionContent>
97
+ * <Text>Hidden content revealed on expansion</Text>
98
+ * </AccordionContent>
99
+ * </AccordionItem>
100
+ * ```
101
+ */
102
+ function AccordionItem({
103
+ children,
104
+ className,
105
+ value,
106
+ ...props
107
+ }) {
108
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionPrimitive.Item, {
109
+ className: (0, _utils.cn)('border-border border-b', _reactNative.Platform.select({
110
+ web: 'last:border-b-0'
111
+ }), className),
112
+ value: value,
113
+ asChild: true,
114
+ ...props,
115
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
116
+ className: "native:overflow-hidden",
117
+ layout: _reactNative.Platform.select({
118
+ native: _reactNativeReanimated.LinearTransition.duration(200)
119
+ }),
120
+ children: children
121
+ })
122
+ });
123
+ }
124
+ const Trigger = _reactNative.Platform.OS === 'web' ? _reactNative.View : _reactNative.Pressable;
125
+
126
+ /**
127
+ * Clickable trigger button that toggles accordion item expansion
128
+ *
129
+ * Features an animated chevron icon that rotates based on expansion state.
130
+ * Automatically manages focus states and hover effects on web.
131
+ *
132
+ * @component
133
+ * @example
134
+ * ```tsx
135
+ * <AccordionTrigger>
136
+ * <Text>Click to toggle</Text>
137
+ * </AccordionTrigger>
138
+ * ```
139
+ *
140
+ * @accessibility
141
+ * - Automatically includes chevron icon for visual expansion indicator
142
+ * - Focus visible states for keyboard navigation on web
143
+ * - Disabled state prevents interaction
144
+ */
145
+ function AccordionTrigger({
146
+ className,
147
+ children,
148
+ ...props
149
+ }) {
150
+ const {
151
+ isExpanded
152
+ } = AccordionPrimitive.useItemContext();
153
+ const progress = (0, _reactNativeReanimated.useDerivedValue)(() => isExpanded ? (0, _reactNativeReanimated.withTiming)(1, {
154
+ duration: 250
155
+ }) : (0, _reactNativeReanimated.withTiming)(0, {
156
+ duration: 200
157
+ }), [isExpanded]);
158
+ const chevronStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
159
+ transform: [{
160
+ rotate: `${progress.value * 180}deg`
161
+ }]
162
+ }), [progress]);
163
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
164
+ value: (0, _utils.cn)('text-foreground text-left text-sm font-medium', _reactNative.Platform.select({
165
+ web: 'group-hover:underline'
166
+ })),
167
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionPrimitive.Header, {
168
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionPrimitive.Trigger, {
169
+ ...props,
170
+ asChild: true,
171
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Trigger, {
172
+ className: (0, _utils.cn)('flex-row items-start justify-between gap-4 rounded-md py-4 disabled:opacity-50', _reactNative.Platform.select({
173
+ web: 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 outline-none transition-all hover:underline focus-visible:ring-[3px] disabled:pointer-events-none [&[data-state=open]>svg]:rotate-180'
174
+ }), className),
175
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
176
+ children: children
177
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
178
+ style: chevronStyle,
179
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
180
+ as: _lucideReactNative.ChevronDown,
181
+ size: 16,
182
+ className: (0, _utils.cn)('text-muted-foreground shrink-0', _reactNative.Platform.select({
183
+ web: 'pointer-events-none translate-y-0.5 transition-transform duration-200'
184
+ }))
185
+ })
186
+ })]
187
+ })
188
+ })
189
+ })
190
+ });
191
+ }
192
+
193
+ /**
194
+ * Collapsible content container with smooth animations
195
+ *
196
+ * Automatically animates height changes when expanding/collapsing. Uses platform-specific
197
+ * animations (CSS transitions on web, Reanimated on native).
198
+ *
199
+ * @component
200
+ * @example
201
+ * ```tsx
202
+ * <AccordionContent>
203
+ * <Text>This content slides in and out smoothly</Text>
204
+ * <View className="mt-2">
205
+ * <Text>Additional content here</Text>
206
+ * </View>
207
+ * </AccordionContent>
208
+ * ```
209
+ */
210
+ function AccordionContent({
211
+ className,
212
+ children,
213
+ ...props
214
+ }) {
215
+ const {
216
+ isExpanded
217
+ } = AccordionPrimitive.useItemContext();
218
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
219
+ value: "text-foreground text-sm",
220
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionPrimitive.Content, {
221
+ className: (0, _utils.cn)('overflow-hidden', _reactNative.Platform.select({
222
+ web: isExpanded ? 'animate-accordion-down' : 'animate-accordion-up'
223
+ })),
224
+ ...props,
225
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
226
+ exiting: _reactNative.Platform.select({
227
+ native: _reactNativeReanimated.FadeOutUp.duration(200)
228
+ }),
229
+ className: (0, _utils.cn)('pb-4', className),
230
+ children: children
231
+ })
232
+ })
233
+ });
234
+ }
235
+ //# sourceMappingURL=Accordion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AccordionPrimitive","_interopRequireWildcard","require","_lucideReactNative","_nativewind","_reactNative","_reactNativeReanimated","_utils","_Icon","_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","Accordion","children","props","jsx","LayoutAnimationConfig","skipEntering","Root","asChild","Platform","OS","layout","LinearTransition","duration","AccordionItem","value","Item","cn","select","web","native","Trigger","AccordionTrigger","isExpanded","useItemContext","progress","useDerivedValue","withTiming","chevronStyle","useAnimatedStyle","transform","rotate","TextClassContext","Provider","Header","jsxs","Fragment","style","Icon","as","ChevronDown","size","AccordionContent","Content","exiting","FadeOutUp"],"sourceRoot":"../../../../src","sources":["components/ui/Accordion.tsx"],"mappings":";;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAL,uBAAA,CAAAC,OAAA;AAQA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAA0C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,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,C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.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,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,KAAA,GAAAD,uBAAA,CAAAL,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,sBAAA,GAAAT,OAAA;AACA,IAAAU,mBAAA,GAAAV,OAAA;AAAgF,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAK,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,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,C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AA,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,KAAA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