@aic-kits/react-native 0.0.3 → 0.0.5

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 (655) hide show
  1. package/lib/auth/components/SocialAuthButton/constants.d.ts +7 -0
  2. package/lib/auth/components/SocialAuthButton/constants.d.ts.map +1 -0
  3. package/lib/auth/components/SocialAuthButton/constants.js +14 -0
  4. package/lib/auth/components/SocialAuthButton/index.d.ts +22 -0
  5. package/lib/auth/components/SocialAuthButton/index.d.ts.map +1 -0
  6. package/lib/auth/components/SocialAuthButton/index.js +37 -0
  7. package/lib/auth/components/SocialSignIn/constants.d.ts +3 -0
  8. package/lib/auth/components/SocialSignIn/constants.d.ts.map +1 -0
  9. package/lib/auth/components/SocialSignIn/constants.js +1 -0
  10. package/lib/auth/components/SocialSignIn/index.d.ts +16 -0
  11. package/lib/auth/components/SocialSignIn/index.d.ts.map +1 -0
  12. package/lib/auth/components/SocialSignIn/index.js +11 -0
  13. package/lib/auth/components/index.d.ts +3 -0
  14. package/lib/auth/components/index.d.ts.map +1 -0
  15. package/lib/auth/components/index.js +2 -0
  16. package/lib/auth/hooks/index.d.ts +2 -0
  17. package/lib/auth/hooks/index.d.ts.map +1 -0
  18. package/lib/auth/hooks/index.js +1 -0
  19. package/lib/auth/hooks/useAuthListener.d.ts +6 -0
  20. package/lib/auth/hooks/useAuthListener.d.ts.map +1 -0
  21. package/lib/auth/hooks/useAuthListener.js +40 -0
  22. package/lib/auth/index.d.ts +7 -0
  23. package/lib/auth/index.d.ts.map +1 -0
  24. package/lib/auth/index.js +6 -0
  25. package/lib/auth/types.d.ts +26 -0
  26. package/lib/auth/types.d.ts.map +1 -0
  27. package/lib/auth/types.js +1 -0
  28. package/lib/auth/utils/apple.d.ts +4 -0
  29. package/lib/auth/utils/apple.d.ts.map +1 -0
  30. package/lib/auth/utils/apple.js +90 -0
  31. package/lib/auth/utils/email.d.ts +11 -0
  32. package/lib/auth/utils/email.d.ts.map +1 -0
  33. package/lib/auth/utils/email.js +33 -0
  34. package/lib/auth/utils/facebook.d.ts +4 -0
  35. package/lib/auth/utils/facebook.d.ts.map +1 -0
  36. package/lib/auth/utils/facebook.js +59 -0
  37. package/lib/auth/utils/google.d.ts +3 -0
  38. package/lib/auth/utils/google.d.ts.map +1 -0
  39. package/lib/auth/utils/google.js +33 -0
  40. package/lib/auth/utils/index.d.ts +8 -0
  41. package/lib/auth/utils/index.d.ts.map +1 -0
  42. package/lib/auth/utils/index.js +55 -0
  43. package/lib/components/Art/BrandArt.d.ts +3 -0
  44. package/lib/components/Art/BrandArt.d.ts.map +1 -0
  45. package/lib/components/Art/BrandArt.js +6 -0
  46. package/lib/components/Art/EmojiArt.d.ts +3 -0
  47. package/lib/components/Art/EmojiArt.d.ts.map +1 -0
  48. package/lib/components/Art/EmojiArt.js +25 -0
  49. package/lib/components/Art/IconArt.d.ts +3 -0
  50. package/lib/components/Art/IconArt.d.ts.map +1 -0
  51. package/lib/components/Art/IconArt.js +26 -0
  52. package/lib/components/Art/ImageArt.d.ts +3 -0
  53. package/lib/components/Art/ImageArt.d.ts.map +1 -0
  54. package/lib/components/Art/ImageArt.js +24 -0
  55. package/lib/components/Art/SvgArt.d.ts +3 -0
  56. package/lib/components/Art/SvgArt.d.ts.map +1 -0
  57. package/lib/components/Art/SvgArt.js +51 -0
  58. package/lib/components/Art/constants.d.ts +5 -0
  59. package/lib/components/Art/constants.d.ts.map +1 -0
  60. package/lib/components/Art/constants.js +6 -0
  61. package/lib/components/Art/hooks.d.ts +3 -0
  62. package/lib/components/Art/hooks.d.ts.map +1 -0
  63. package/lib/components/Art/hooks.js +8 -0
  64. package/lib/components/Art/index.d.ts +10 -0
  65. package/lib/components/Art/index.d.ts.map +1 -0
  66. package/lib/components/Art/index.js +29 -0
  67. package/lib/components/Art/types.d.ts +157 -0
  68. package/lib/components/Art/types.d.ts.map +1 -0
  69. package/lib/components/Art/types.js +1 -0
  70. package/lib/components/Art/utils.d.ts +40 -0
  71. package/lib/components/Art/utils.d.ts.map +1 -0
  72. package/lib/components/Art/utils.js +68 -0
  73. package/lib/components/Avatar/Wrapper.d.ts +11 -0
  74. package/lib/components/Avatar/Wrapper.d.ts.map +1 -0
  75. package/lib/components/Avatar/Wrapper.js +67 -0
  76. package/lib/components/Avatar/apiCalls/useUploadCloudinaryImageApi.d.ts +14 -0
  77. package/lib/components/Avatar/apiCalls/useUploadCloudinaryImageApi.d.ts.map +1 -0
  78. package/lib/components/Avatar/apiCalls/useUploadCloudinaryImageApi.js +24 -0
  79. package/lib/components/Avatar/index.d.ts +3 -0
  80. package/lib/components/Avatar/index.d.ts.map +1 -0
  81. package/lib/components/Avatar/index.js +37 -0
  82. package/lib/components/Avatar/types.d.ts +51 -0
  83. package/lib/components/Avatar/types.d.ts.map +1 -0
  84. package/lib/components/Avatar/types.js +1 -0
  85. package/lib/components/Avatar/utils.d.ts +6 -0
  86. package/lib/components/Avatar/utils.d.ts.map +1 -0
  87. package/lib/components/Avatar/utils.js +9 -0
  88. package/lib/components/Base/BaseFooter.d.ts +8 -0
  89. package/lib/components/Base/BaseFooter.d.ts.map +1 -0
  90. package/lib/components/Base/BaseFooter.js +18 -0
  91. package/lib/components/Base/index.d.ts +4 -0
  92. package/lib/components/Base/index.d.ts.map +1 -0
  93. package/lib/components/Base/index.js +49 -0
  94. package/lib/components/Base/types.d.ts +83 -0
  95. package/lib/components/Base/types.d.ts.map +1 -0
  96. package/lib/components/Base/types.js +1 -0
  97. package/lib/components/Box/StyledBox.d.ts +254 -0
  98. package/lib/components/Box/StyledBox.d.ts.map +1 -0
  99. package/lib/components/Box/StyledBox.js +53 -0
  100. package/lib/components/Box/config.d.ts +359 -0
  101. package/lib/components/Box/config.d.ts.map +1 -0
  102. package/lib/components/Box/config.js +227 -0
  103. package/lib/components/Box/index.d.ts +11 -0
  104. package/lib/components/Box/index.d.ts.map +1 -0
  105. package/lib/components/Box/index.js +14 -0
  106. package/lib/components/Box/types.d.ts +53 -0
  107. package/lib/components/Box/types.d.ts.map +1 -0
  108. package/lib/components/Box/types.js +1 -0
  109. package/lib/components/Bubble/index.d.ts +8 -0
  110. package/lib/components/Bubble/index.d.ts.map +1 -0
  111. package/lib/components/Bubble/index.js +20 -0
  112. package/lib/components/Bubble/type.d.ts +18 -0
  113. package/lib/components/Bubble/type.d.ts.map +1 -0
  114. package/lib/components/Bubble/type.js +1 -0
  115. package/lib/components/Bubble/utils.d.ts +12 -0
  116. package/lib/components/Bubble/utils.d.ts.map +1 -0
  117. package/lib/components/Bubble/utils.js +33 -0
  118. package/lib/components/Button/StyledButton.d.ts +34 -0
  119. package/lib/components/Button/StyledButton.d.ts.map +1 -0
  120. package/lib/components/Button/StyledButton.js +49 -0
  121. package/lib/components/Button/index.d.ts +64 -0
  122. package/lib/components/Button/index.d.ts.map +1 -0
  123. package/lib/components/Button/index.js +20 -0
  124. package/lib/components/Button/utils.d.ts +4 -0
  125. package/lib/components/Button/utils.d.ts.map +1 -0
  126. package/lib/components/Button/utils.js +10 -0
  127. package/lib/components/Card/StyledCard.d.ts +226 -0
  128. package/lib/components/Card/StyledCard.d.ts.map +1 -0
  129. package/lib/components/Card/StyledCard.js +17 -0
  130. package/lib/components/Card/index.d.ts +27 -0
  131. package/lib/components/Card/index.d.ts.map +1 -0
  132. package/lib/components/Card/index.js +44 -0
  133. package/lib/components/Chart/LineChart.d.ts +3 -0
  134. package/lib/components/Chart/LineChart.d.ts.map +1 -0
  135. package/lib/components/Chart/LineChart.js +27 -0
  136. package/lib/components/Chart/constants.d.ts +2 -0
  137. package/lib/components/Chart/constants.d.ts.map +1 -0
  138. package/lib/components/Chart/constants.js +47 -0
  139. package/lib/components/Chart/index.d.ts +3 -0
  140. package/lib/components/Chart/index.d.ts.map +1 -0
  141. package/lib/components/Chart/index.js +10 -0
  142. package/lib/components/Chart/types.d.ts +32 -0
  143. package/lib/components/Chart/types.d.ts.map +1 -0
  144. package/lib/components/Chart/types.js +1 -0
  145. package/lib/components/Chart/utils.d.ts +6 -0
  146. package/lib/components/Chart/utils.d.ts.map +1 -0
  147. package/lib/components/Chart/utils.js +8 -0
  148. package/lib/components/Chat/ImageChat.d.ts +8 -0
  149. package/lib/components/Chat/ImageChat.d.ts.map +1 -0
  150. package/lib/components/Chat/ImageChat.js +24 -0
  151. package/lib/components/Chat/TextChat.d.ts +8 -0
  152. package/lib/components/Chat/TextChat.d.ts.map +1 -0
  153. package/lib/components/Chat/TextChat.js +37 -0
  154. package/lib/components/Chat/VideoChat.d.ts +6 -0
  155. package/lib/components/Chat/VideoChat.d.ts.map +1 -0
  156. package/lib/components/Chat/VideoChat.js +56 -0
  157. package/lib/components/Chat/index.d.ts +4 -0
  158. package/lib/components/Chat/index.d.ts.map +1 -0
  159. package/lib/components/Chat/index.js +26 -0
  160. package/lib/components/Chat/type.d.ts +95 -0
  161. package/lib/components/Chat/type.d.ts.map +1 -0
  162. package/lib/components/Chat/type.js +1 -0
  163. package/lib/components/ChatCluster/index.d.ts +4 -0
  164. package/lib/components/ChatCluster/index.d.ts.map +1 -0
  165. package/lib/components/ChatCluster/index.js +22 -0
  166. package/lib/components/ChatCluster/types.d.ts +11 -0
  167. package/lib/components/ChatCluster/types.d.ts.map +1 -0
  168. package/lib/components/ChatCluster/types.js +1 -0
  169. package/lib/components/ChatCluster/utils.d.ts +5 -0
  170. package/lib/components/ChatCluster/utils.d.ts.map +1 -0
  171. package/lib/components/ChatCluster/utils.js +15 -0
  172. package/lib/components/Chip/index.d.ts +3 -0
  173. package/lib/components/Chip/index.d.ts.map +1 -0
  174. package/lib/components/Chip/index.js +16 -0
  175. package/lib/components/Chip/types.d.ts +50 -0
  176. package/lib/components/Chip/types.d.ts.map +1 -0
  177. package/lib/components/Chip/types.js +1 -0
  178. package/lib/components/Divider/StyledDivider.d.ts +12 -0
  179. package/lib/components/Divider/StyledDivider.d.ts.map +1 -0
  180. package/lib/components/Divider/StyledDivider.js +17 -0
  181. package/lib/components/Divider/index.d.ts +15 -0
  182. package/lib/components/Divider/index.d.ts.map +1 -0
  183. package/lib/components/Divider/index.js +4 -0
  184. package/lib/components/FastList/index.d.ts +25 -0
  185. package/lib/components/FastList/index.d.ts.map +1 -0
  186. package/lib/components/FastList/index.js +13 -0
  187. package/lib/components/Filter/index.d.ts +40 -0
  188. package/lib/components/Filter/index.d.ts.map +1 -0
  189. package/lib/components/Filter/index.js +23 -0
  190. package/lib/components/Gradient/index.d.ts +11 -0
  191. package/lib/components/Gradient/index.d.ts.map +1 -0
  192. package/lib/components/Gradient/index.js +10 -0
  193. package/lib/components/Header/BackButton.d.ts +5 -0
  194. package/lib/components/Header/BackButton.d.ts.map +1 -0
  195. package/lib/components/Header/BackButton.js +22 -0
  196. package/lib/components/Header/DefaultHeader.d.ts +8 -0
  197. package/lib/components/Header/DefaultHeader.d.ts.map +1 -0
  198. package/lib/components/Header/DefaultHeader.js +13 -0
  199. package/lib/components/Header/HeaderContent.d.ts +6 -0
  200. package/lib/components/Header/HeaderContent.d.ts.map +1 -0
  201. package/lib/components/Header/HeaderContent.js +18 -0
  202. package/lib/components/Header/IconButton.d.ts +13 -0
  203. package/lib/components/Header/IconButton.d.ts.map +1 -0
  204. package/lib/components/Header/IconButton.js +6 -0
  205. package/lib/components/Header/ProgressHeader.d.ts +7 -0
  206. package/lib/components/Header/ProgressHeader.d.ts.map +1 -0
  207. package/lib/components/Header/ProgressHeader.js +18 -0
  208. package/lib/components/Header/RightButton.d.ts +3 -0
  209. package/lib/components/Header/RightButton.d.ts.map +1 -0
  210. package/lib/components/Header/RightButton.js +15 -0
  211. package/lib/components/Header/index.d.ts +4 -0
  212. package/lib/components/Header/index.d.ts.map +1 -0
  213. package/lib/components/Header/index.js +12 -0
  214. package/lib/components/Header/types.d.ts +86 -0
  215. package/lib/components/Header/types.d.ts.map +1 -0
  216. package/lib/components/Header/types.js +1 -0
  217. package/lib/components/Header/utils.d.ts +10 -0
  218. package/lib/components/Header/utils.d.ts.map +1 -0
  219. package/lib/components/Header/utils.js +3 -0
  220. package/lib/components/Icon/AnimatedIcon.d.ts +6 -0
  221. package/lib/components/Icon/AnimatedIcon.d.ts.map +1 -0
  222. package/lib/components/Icon/AnimatedIcon.js +34 -0
  223. package/lib/components/Icon/PlainIcon.d.ts +16 -0
  224. package/lib/components/Icon/PlainIcon.d.ts.map +1 -0
  225. package/lib/components/Icon/PlainIcon.js +13 -0
  226. package/lib/components/Icon/constants.d.ts +703 -0
  227. package/lib/components/Icon/constants.d.ts.map +1 -0
  228. package/lib/components/Icon/constants.js +702 -0
  229. package/lib/components/Icon/index.d.ts +34 -0
  230. package/lib/components/Icon/index.d.ts.map +1 -0
  231. package/lib/components/Icon/index.js +24 -0
  232. package/lib/components/Icon/utils.d.ts +3 -0
  233. package/lib/components/Icon/utils.d.ts.map +1 -0
  234. package/lib/components/Icon/utils.js +2 -0
  235. package/lib/components/Image/ImageDetail.d.ts +11 -0
  236. package/lib/components/Image/ImageDetail.d.ts.map +1 -0
  237. package/lib/components/Image/ImageDetail.js +33 -0
  238. package/lib/components/Image/index.d.ts +11 -0
  239. package/lib/components/Image/index.d.ts.map +1 -0
  240. package/lib/components/Image/index.js +5 -0
  241. package/lib/components/Image/utils.d.ts +6 -0
  242. package/lib/components/Image/utils.d.ts.map +1 -0
  243. package/lib/components/Image/utils.js +12 -0
  244. package/lib/components/InfoCard/BasicInfoCard.d.ts +19 -0
  245. package/lib/components/InfoCard/BasicInfoCard.d.ts.map +1 -0
  246. package/lib/components/InfoCard/BasicInfoCard.js +18 -0
  247. package/lib/components/InfoCard/NewsInfoCard.d.ts +22 -0
  248. package/lib/components/InfoCard/NewsInfoCard.d.ts.map +1 -0
  249. package/lib/components/InfoCard/NewsInfoCard.js +15 -0
  250. package/lib/components/InfoCard/ThumbnailInfoCard.d.ts +33 -0
  251. package/lib/components/InfoCard/ThumbnailInfoCard.d.ts.map +1 -0
  252. package/lib/components/InfoCard/ThumbnailInfoCard.js +24 -0
  253. package/lib/components/InfoCard/index.d.ts +15 -0
  254. package/lib/components/InfoCard/index.d.ts.map +1 -0
  255. package/lib/components/InfoCard/index.js +16 -0
  256. package/lib/components/Input/StyledInput.d.ts +13 -0
  257. package/lib/components/Input/StyledInput.d.ts.map +1 -0
  258. package/lib/components/Input/StyledInput.js +14 -0
  259. package/lib/components/Input/index.d.ts +34 -0
  260. package/lib/components/Input/index.d.ts.map +1 -0
  261. package/lib/components/Input/index.js +15 -0
  262. package/lib/components/LevelStep/CircularProgress.d.ts +12 -0
  263. package/lib/components/LevelStep/CircularProgress.d.ts.map +1 -0
  264. package/lib/components/LevelStep/CircularProgress.js +27 -0
  265. package/lib/components/LevelStep/TransformedSvg.d.ts +13 -0
  266. package/lib/components/LevelStep/TransformedSvg.d.ts.map +1 -0
  267. package/lib/components/LevelStep/TransformedSvg.js +9 -0
  268. package/lib/components/LevelStep/constants.d.ts +8 -0
  269. package/lib/components/LevelStep/constants.d.ts.map +1 -0
  270. package/lib/components/LevelStep/constants.js +17 -0
  271. package/lib/components/LevelStep/index.d.ts +3 -0
  272. package/lib/components/LevelStep/index.d.ts.map +1 -0
  273. package/lib/components/LevelStep/index.js +78 -0
  274. package/lib/components/LevelStep/types.d.ts +7 -0
  275. package/lib/components/LevelStep/types.d.ts.map +1 -0
  276. package/lib/components/LevelStep/types.js +1 -0
  277. package/lib/components/List/index.d.ts +13 -0
  278. package/lib/components/List/index.d.ts.map +1 -0
  279. package/lib/components/List/index.js +13 -0
  280. package/lib/components/Loading/Loading.d.ts +3 -0
  281. package/lib/components/Loading/Loading.d.ts.map +1 -0
  282. package/lib/components/Loading/Loading.js +61 -0
  283. package/lib/components/Loading/StyledLoading.d.ts +14 -0
  284. package/lib/components/Loading/StyledLoading.d.ts.map +1 -0
  285. package/lib/components/Loading/StyledLoading.js +18 -0
  286. package/lib/components/Loading/index.d.ts +3 -0
  287. package/lib/components/Loading/index.d.ts.map +1 -0
  288. package/lib/components/Loading/index.js +26 -0
  289. package/lib/components/Loading/types.d.ts +25 -0
  290. package/lib/components/Loading/types.d.ts.map +1 -0
  291. package/lib/components/Loading/types.js +1 -0
  292. package/lib/components/Notification/Notification.d.ts +6 -0
  293. package/lib/components/Notification/Notification.d.ts.map +1 -0
  294. package/lib/components/Notification/Notification.js +13 -0
  295. package/lib/components/Notification/NotificationProvider.d.ts +4 -0
  296. package/lib/components/Notification/NotificationProvider.d.ts.map +1 -0
  297. package/lib/components/Notification/NotificationProvider.js +13 -0
  298. package/lib/components/Notification/Toast.d.ts +8 -0
  299. package/lib/components/Notification/Toast.d.ts.map +1 -0
  300. package/lib/components/Notification/Toast.js +32 -0
  301. package/lib/components/Notification/context.d.ts +7 -0
  302. package/lib/components/Notification/context.d.ts.map +1 -0
  303. package/lib/components/Notification/context.js +9 -0
  304. package/lib/components/Notification/index.d.ts +3 -0
  305. package/lib/components/Notification/index.d.ts.map +1 -0
  306. package/lib/components/Notification/index.js +2 -0
  307. package/lib/components/PlaySwitch/index.d.ts +4 -0
  308. package/lib/components/PlaySwitch/index.d.ts.map +1 -0
  309. package/lib/components/PlaySwitch/index.js +62 -0
  310. package/lib/components/PlaySwitch/types.d.ts +23 -0
  311. package/lib/components/PlaySwitch/types.d.ts.map +1 -0
  312. package/lib/components/PlaySwitch/types.js +1 -0
  313. package/lib/components/Progress/StyledProgress.d.ts +225 -0
  314. package/lib/components/Progress/StyledProgress.d.ts.map +1 -0
  315. package/lib/components/Progress/StyledProgress.js +22 -0
  316. package/lib/components/Progress/index.d.ts +25 -0
  317. package/lib/components/Progress/index.d.ts.map +1 -0
  318. package/lib/components/Progress/index.js +33 -0
  319. package/lib/components/Scrollable/StyledScrollable.d.ts +33 -0
  320. package/lib/components/Scrollable/StyledScrollable.d.ts.map +1 -0
  321. package/lib/components/Scrollable/StyledScrollable.js +56 -0
  322. package/lib/components/Scrollable/index.d.ts +6 -0
  323. package/lib/components/Scrollable/index.d.ts.map +1 -0
  324. package/lib/components/Scrollable/index.js +15 -0
  325. package/lib/components/Scrollable/types.d.ts +5 -0
  326. package/lib/components/Scrollable/types.d.ts.map +1 -0
  327. package/lib/components/Scrollable/types.js +1 -0
  328. package/lib/components/Sectional/Item.d.ts +13 -0
  329. package/lib/components/Sectional/Item.d.ts.map +1 -0
  330. package/lib/components/Sectional/Item.js +21 -0
  331. package/lib/components/Sectional/index.d.ts +9 -0
  332. package/lib/components/Sectional/index.d.ts.map +1 -0
  333. package/lib/components/Sectional/index.js +25 -0
  334. package/lib/components/Sectional/types.d.ts +33 -0
  335. package/lib/components/Sectional/types.d.ts.map +1 -0
  336. package/lib/components/Sectional/types.js +1 -0
  337. package/lib/components/Sectional/utils.d.ts +11 -0
  338. package/lib/components/Sectional/utils.d.ts.map +1 -0
  339. package/lib/components/Sectional/utils.js +37 -0
  340. package/lib/components/Selection/index.d.ts +17 -0
  341. package/lib/components/Selection/index.d.ts.map +1 -0
  342. package/lib/components/Selection/index.js +24 -0
  343. package/lib/components/Skeleton/SkeletonBackground.d.ts +6 -0
  344. package/lib/components/Skeleton/SkeletonBackground.d.ts.map +1 -0
  345. package/lib/components/Skeleton/SkeletonBackground.js +23 -0
  346. package/lib/components/Skeleton/SkeletonWrapper.d.ts +8 -0
  347. package/lib/components/Skeleton/SkeletonWrapper.d.ts.map +1 -0
  348. package/lib/components/Skeleton/SkeletonWrapper.js +50 -0
  349. package/lib/components/Skeleton/index.d.ts +4 -0
  350. package/lib/components/Skeleton/index.d.ts.map +1 -0
  351. package/lib/components/Skeleton/index.js +16 -0
  352. package/lib/components/Skeleton/types.d.ts +16 -0
  353. package/lib/components/Skeleton/types.d.ts.map +1 -0
  354. package/lib/components/Skeleton/types.js +1 -0
  355. package/lib/components/Slides/index.d.ts +14 -0
  356. package/lib/components/Slides/index.d.ts.map +1 -0
  357. package/lib/components/Slides/index.js +46 -0
  358. package/lib/components/Squircle/index.d.ts +35 -0
  359. package/lib/components/Squircle/index.d.ts.map +1 -0
  360. package/lib/components/Squircle/index.js +21 -0
  361. package/lib/components/Squircle/types.d.ts +20 -0
  362. package/lib/components/Squircle/types.d.ts.map +1 -0
  363. package/lib/components/Squircle/types.js +1 -0
  364. package/lib/components/Squircle/utils.d.ts +4 -0
  365. package/lib/components/Squircle/utils.d.ts.map +1 -0
  366. package/lib/components/Squircle/utils.js +86 -0
  367. package/lib/components/Text/StyledText.d.ts +18 -0
  368. package/lib/components/Text/StyledText.d.ts.map +1 -0
  369. package/lib/components/Text/StyledText.js +19 -0
  370. package/lib/components/Text/constants.d.ts +3 -0
  371. package/lib/components/Text/constants.d.ts.map +1 -0
  372. package/lib/components/Text/constants.js +6 -0
  373. package/lib/components/Text/index.d.ts +6 -0
  374. package/lib/components/Text/index.d.ts.map +1 -0
  375. package/lib/components/Text/index.js +7 -0
  376. package/lib/components/Text/types.d.ts +55 -0
  377. package/lib/components/Text/types.d.ts.map +1 -0
  378. package/lib/components/Text/types.js +1 -0
  379. package/lib/components/Text/withRichText.d.ts +6 -0
  380. package/lib/components/Text/withRichText.d.ts.map +1 -0
  381. package/lib/components/Text/withRichText.js +38 -0
  382. package/lib/components/Touchable/index.d.ts +5 -0
  383. package/lib/components/Touchable/index.d.ts.map +1 -0
  384. package/lib/components/Touchable/index.js +56 -0
  385. package/lib/components/Touchable/types.d.ts +22 -0
  386. package/lib/components/Touchable/types.d.ts.map +1 -0
  387. package/lib/components/Touchable/types.js +1 -0
  388. package/lib/components/Video/StyledVideoControlManager.d.ts +49 -0
  389. package/lib/components/Video/StyledVideoControlManager.d.ts.map +1 -0
  390. package/lib/components/Video/StyledVideoControlManager.js +64 -0
  391. package/lib/components/Video/StyledVideoDetail.d.ts +16 -0
  392. package/lib/components/Video/StyledVideoDetail.d.ts.map +1 -0
  393. package/lib/components/Video/StyledVideoDetail.js +23 -0
  394. package/lib/components/Video/VideoControlManager.d.ts +10 -0
  395. package/lib/components/Video/VideoControlManager.d.ts.map +1 -0
  396. package/lib/components/Video/VideoControlManager.js +67 -0
  397. package/lib/components/Video/VideoDetail.d.ts +11 -0
  398. package/lib/components/Video/VideoDetail.d.ts.map +1 -0
  399. package/lib/components/Video/VideoDetail.js +102 -0
  400. package/lib/components/Video/index.d.ts +25 -0
  401. package/lib/components/Video/index.d.ts.map +1 -0
  402. package/lib/components/Video/index.js +49 -0
  403. package/lib/components/Vimeo/Player.d.ts +4 -0
  404. package/lib/components/Vimeo/Player.d.ts.map +1 -0
  405. package/lib/components/Vimeo/Player.js +30 -0
  406. package/lib/components/Vimeo/constants.d.ts +2 -0
  407. package/lib/components/Vimeo/constants.d.ts.map +1 -0
  408. package/lib/components/Vimeo/constants.js +23 -0
  409. package/lib/components/Vimeo/index.d.ts +10 -0
  410. package/lib/components/Vimeo/index.d.ts.map +1 -0
  411. package/lib/components/Vimeo/index.js +35 -0
  412. package/lib/components/Vimeo/types.d.ts +74 -0
  413. package/lib/components/Vimeo/types.d.ts.map +1 -0
  414. package/lib/components/Vimeo/types.js +1 -0
  415. package/lib/components/Vimeo/utils.d.ts +4 -0
  416. package/lib/components/Vimeo/utils.d.ts.map +1 -0
  417. package/lib/components/Vimeo/utils.js +126 -0
  418. package/lib/components/index.d.ts +33 -0
  419. package/lib/components/index.d.ts.map +1 -0
  420. package/lib/components/index.js +32 -0
  421. package/lib/hooks/index.d.ts +3 -0
  422. package/lib/hooks/index.d.ts.map +1 -0
  423. package/lib/hooks/index.js +2 -0
  424. package/lib/hooks/useKeyboard.d.ts +10 -0
  425. package/lib/hooks/useKeyboard.d.ts.map +1 -0
  426. package/lib/hooks/useKeyboard.js +54 -0
  427. package/lib/hooks/usePrevious.d.ts +3 -0
  428. package/lib/hooks/usePrevious.d.ts.map +1 -0
  429. package/lib/hooks/usePrevious.js +9 -0
  430. package/lib/index.d.ts +7 -0
  431. package/lib/index.d.ts.map +1 -0
  432. package/lib/index.js +6 -0
  433. package/lib/services/base/BaseResponse.d.ts +12 -0
  434. package/lib/services/base/BaseResponse.d.ts.map +1 -0
  435. package/lib/services/base/BaseResponse.js +9 -0
  436. package/lib/services/base/BaseService.d.ts +8 -0
  437. package/lib/services/base/BaseService.d.ts.map +1 -0
  438. package/lib/services/base/BaseService.js +61 -0
  439. package/lib/services/base/index.d.ts +3 -0
  440. package/lib/services/base/index.d.ts.map +1 -0
  441. package/lib/services/base/index.js +2 -0
  442. package/lib/services/hooks/index.d.ts +2 -0
  443. package/lib/services/hooks/index.d.ts.map +1 -0
  444. package/lib/services/hooks/index.js +1 -0
  445. package/lib/services/hooks/useRequest.d.ts +14 -0
  446. package/lib/services/hooks/useRequest.d.ts.map +1 -0
  447. package/lib/services/hooks/useRequest.js +30 -0
  448. package/lib/services/index.d.ts +3 -0
  449. package/lib/services/index.d.ts.map +1 -0
  450. package/lib/services/index.js +2 -0
  451. package/lib/theme/ThemeProvider.d.ts +13 -0
  452. package/lib/theme/ThemeProvider.d.ts.map +1 -0
  453. package/lib/theme/ThemeProvider.js +5 -0
  454. package/lib/theme/ThemeSwitcher.d.ts +9 -0
  455. package/lib/theme/ThemeSwitcher.d.ts.map +1 -0
  456. package/lib/theme/ThemeSwitcher.js +19 -0
  457. package/lib/theme/common/borders.d.ts +9 -0
  458. package/lib/theme/common/borders.d.ts.map +1 -0
  459. package/lib/theme/common/borders.js +27 -0
  460. package/lib/theme/common/colors.d.ts +74 -0
  461. package/lib/theme/common/colors.d.ts.map +1 -0
  462. package/lib/theme/common/colors.js +73 -0
  463. package/lib/theme/common/gradient.d.ts +13 -0
  464. package/lib/theme/common/gradient.d.ts.map +1 -0
  465. package/lib/theme/common/gradient.js +12 -0
  466. package/lib/theme/common/index.d.ts +50 -0
  467. package/lib/theme/common/index.d.ts.map +1 -0
  468. package/lib/theme/common/index.js +37 -0
  469. package/lib/theme/common/scale.d.ts +12 -0
  470. package/lib/theme/common/scale.d.ts.map +1 -0
  471. package/lib/theme/common/scale.js +16 -0
  472. package/lib/theme/common/shadows.d.ts +17 -0
  473. package/lib/theme/common/shadows.d.ts.map +1 -0
  474. package/lib/theme/common/shadows.js +13 -0
  475. package/lib/theme/common/sizes.d.ts +6 -0
  476. package/lib/theme/common/sizes.d.ts.map +1 -0
  477. package/lib/theme/common/sizes.js +26 -0
  478. package/lib/theme/common/spaces.d.ts +5 -0
  479. package/lib/theme/common/spaces.d.ts.map +1 -0
  480. package/lib/theme/common/spaces.js +31 -0
  481. package/lib/theme/common/text.d.ts +14 -0
  482. package/lib/theme/common/text.d.ts.map +1 -0
  483. package/lib/theme/common/text.js +70 -0
  484. package/lib/theme/components/art.d.ts +17 -0
  485. package/lib/theme/components/art.d.ts.map +1 -0
  486. package/lib/theme/components/art.js +15 -0
  487. package/lib/theme/components/avatar.d.ts +11 -0
  488. package/lib/theme/components/avatar.d.ts.map +1 -0
  489. package/lib/theme/components/avatar.js +20 -0
  490. package/lib/theme/components/base.d.ts +14 -0
  491. package/lib/theme/components/base.d.ts.map +1 -0
  492. package/lib/theme/components/base.js +17 -0
  493. package/lib/theme/components/bubble.d.ts +6 -0
  494. package/lib/theme/components/bubble.d.ts.map +1 -0
  495. package/lib/theme/components/bubble.js +10 -0
  496. package/lib/theme/components/button.d.ts +12 -0
  497. package/lib/theme/components/button.d.ts.map +1 -0
  498. package/lib/theme/components/button.js +22 -0
  499. package/lib/theme/components/card.d.ts +8 -0
  500. package/lib/theme/components/card.d.ts.map +1 -0
  501. package/lib/theme/components/card.js +16 -0
  502. package/lib/theme/components/chart.d.ts +16 -0
  503. package/lib/theme/components/chart.d.ts.map +1 -0
  504. package/lib/theme/components/chart.js +22 -0
  505. package/lib/theme/components/chat.d.ts +11 -0
  506. package/lib/theme/components/chat.d.ts.map +1 -0
  507. package/lib/theme/components/chat.js +20 -0
  508. package/lib/theme/components/chip.d.ts +18 -0
  509. package/lib/theme/components/chip.d.ts.map +1 -0
  510. package/lib/theme/components/chip.js +43 -0
  511. package/lib/theme/components/divider.d.ts +12 -0
  512. package/lib/theme/components/divider.d.ts.map +1 -0
  513. package/lib/theme/components/divider.js +16 -0
  514. package/lib/theme/components/filter.d.ts +5 -0
  515. package/lib/theme/components/filter.d.ts.map +1 -0
  516. package/lib/theme/components/filter.js +8 -0
  517. package/lib/theme/components/header.d.ts +30 -0
  518. package/lib/theme/components/header.d.ts.map +1 -0
  519. package/lib/theme/components/header.js +36 -0
  520. package/lib/theme/components/image.d.ts +4 -0
  521. package/lib/theme/components/image.d.ts.map +1 -0
  522. package/lib/theme/components/image.js +6 -0
  523. package/lib/theme/components/index.d.ts +27 -0
  524. package/lib/theme/components/index.d.ts.map +1 -0
  525. package/lib/theme/components/index.js +26 -0
  526. package/lib/theme/components/infoCard.d.ts +25 -0
  527. package/lib/theme/components/infoCard.d.ts.map +1 -0
  528. package/lib/theme/components/infoCard.js +32 -0
  529. package/lib/theme/components/input.d.ts +21 -0
  530. package/lib/theme/components/input.d.ts.map +1 -0
  531. package/lib/theme/components/input.js +34 -0
  532. package/lib/theme/components/levelStep.d.ts +48 -0
  533. package/lib/theme/components/levelStep.d.ts.map +1 -0
  534. package/lib/theme/components/levelStep.js +56 -0
  535. package/lib/theme/components/loading.d.ts +16 -0
  536. package/lib/theme/components/loading.d.ts.map +1 -0
  537. package/lib/theme/components/loading.js +27 -0
  538. package/lib/theme/components/notification.d.ts +23 -0
  539. package/lib/theme/components/notification.d.ts.map +1 -0
  540. package/lib/theme/components/notification.js +38 -0
  541. package/lib/theme/components/playSwitch.d.ts +10 -0
  542. package/lib/theme/components/playSwitch.d.ts.map +1 -0
  543. package/lib/theme/components/playSwitch.js +14 -0
  544. package/lib/theme/components/progress.d.ts +10 -0
  545. package/lib/theme/components/progress.d.ts.map +1 -0
  546. package/lib/theme/components/progress.js +14 -0
  547. package/lib/theme/components/selection.d.ts +9 -0
  548. package/lib/theme/components/selection.d.ts.map +1 -0
  549. package/lib/theme/components/selection.js +21 -0
  550. package/lib/theme/components/skeleton.d.ts +11 -0
  551. package/lib/theme/components/skeleton.d.ts.map +1 -0
  552. package/lib/theme/components/skeleton.js +18 -0
  553. package/lib/theme/components/slides.d.ts +7 -0
  554. package/lib/theme/components/slides.d.ts.map +1 -0
  555. package/lib/theme/components/slides.js +10 -0
  556. package/lib/theme/components/text.d.ts +21 -0
  557. package/lib/theme/components/text.d.ts.map +1 -0
  558. package/lib/theme/components/text.js +22 -0
  559. package/lib/theme/components/touchable.d.ts +15 -0
  560. package/lib/theme/components/touchable.d.ts.map +1 -0
  561. package/lib/theme/components/touchable.js +41 -0
  562. package/lib/theme/components/video.d.ts +18 -0
  563. package/lib/theme/components/video.d.ts.map +1 -0
  564. package/lib/theme/components/video.js +47 -0
  565. package/lib/theme/getTheme.d.ts +34 -0
  566. package/lib/theme/getTheme.d.ts.map +1 -0
  567. package/lib/theme/getTheme.js +36 -0
  568. package/lib/theme/index.d.ts +10 -0
  569. package/lib/theme/index.d.ts.map +1 -0
  570. package/lib/theme/index.js +7 -0
  571. package/lib/utils/api/index.d.ts +3 -0
  572. package/lib/utils/api/index.d.ts.map +1 -0
  573. package/lib/utils/api/index.js +2 -0
  574. package/lib/utils/api/keys.d.ts +3 -0
  575. package/lib/utils/api/keys.d.ts.map +1 -0
  576. package/lib/utils/api/keys.js +11 -0
  577. package/lib/utils/api/urls.d.ts +3 -0
  578. package/lib/utils/api/urls.d.ts.map +1 -0
  579. package/lib/utils/api/urls.js +8 -0
  580. package/lib/utils/format/index.d.ts +3 -0
  581. package/lib/utils/format/index.d.ts.map +1 -0
  582. package/lib/utils/format/index.js +2 -0
  583. package/lib/utils/format/text.d.ts +4 -0
  584. package/lib/utils/format/text.d.ts.map +1 -0
  585. package/lib/utils/format/text.js +13 -0
  586. package/lib/utils/haptic/index.d.ts +4 -0
  587. package/lib/utils/haptic/index.d.ts.map +1 -0
  588. package/lib/utils/haptic/index.js +3 -0
  589. package/lib/utils/haptic/types.d.ts +25 -0
  590. package/lib/utils/haptic/types.d.ts.map +1 -0
  591. package/lib/utils/haptic/types.js +25 -0
  592. package/lib/utils/haptic/utils.d.ts +3 -0
  593. package/lib/utils/haptic/utils.d.ts.map +1 -0
  594. package/lib/utils/haptic/utils.js +8 -0
  595. package/lib/utils/index.d.ts +9 -0
  596. package/lib/utils/index.d.ts.map +1 -0
  597. package/lib/utils/index.js +8 -0
  598. package/lib/utils/intl/IntlProvider.d.ts +7 -0
  599. package/lib/utils/intl/IntlProvider.d.ts.map +1 -0
  600. package/lib/utils/intl/IntlProvider.js +16 -0
  601. package/lib/utils/intl/context.d.ts +15 -0
  602. package/lib/utils/intl/context.d.ts.map +1 -0
  603. package/lib/utils/intl/context.js +9 -0
  604. package/lib/utils/intl/global.d.ts +7 -0
  605. package/lib/utils/intl/global.d.ts.map +1 -0
  606. package/lib/utils/intl/global.js +1 -0
  607. package/lib/utils/intl/hooks.d.ts +7 -0
  608. package/lib/utils/intl/hooks.d.ts.map +1 -0
  609. package/lib/utils/intl/hooks.js +10 -0
  610. package/lib/utils/intl/index.d.ts +5 -0
  611. package/lib/utils/intl/index.d.ts.map +1 -0
  612. package/lib/utils/intl/index.js +4 -0
  613. package/lib/utils/intl/state.d.ts +12 -0
  614. package/lib/utils/intl/state.d.ts.map +1 -0
  615. package/lib/utils/intl/state.js +14 -0
  616. package/lib/utils/intl/utils.d.ts +6 -0
  617. package/lib/utils/intl/utils.d.ts.map +1 -0
  618. package/lib/utils/intl/utils.js +7 -0
  619. package/lib/utils/notification/index.d.ts +2 -0
  620. package/lib/utils/notification/index.d.ts.map +1 -0
  621. package/lib/utils/notification/index.js +1 -0
  622. package/lib/utils/notification/toast/constants.d.ts +4 -0
  623. package/lib/utils/notification/toast/constants.d.ts.map +1 -0
  624. package/lib/utils/notification/toast/constants.js +7 -0
  625. package/lib/utils/notification/toast/index.d.ts +3 -0
  626. package/lib/utils/notification/toast/index.d.ts.map +1 -0
  627. package/lib/utils/notification/toast/index.js +2 -0
  628. package/lib/utils/notification/toast/types.d.ts +2 -0
  629. package/lib/utils/notification/toast/types.d.ts.map +1 -0
  630. package/lib/utils/notification/toast/types.js +1 -0
  631. package/lib/utils/notification/toast/utils.d.ts +6 -0
  632. package/lib/utils/notification/toast/utils.d.ts.map +1 -0
  633. package/lib/utils/notification/toast/utils.js +23 -0
  634. package/lib/utils/routes/index.d.ts +4 -0
  635. package/lib/utils/routes/index.d.ts.map +1 -0
  636. package/lib/utils/routes/index.js +3 -0
  637. package/lib/utils/routes/types.d.ts +10 -0
  638. package/lib/utils/routes/types.d.ts.map +1 -0
  639. package/lib/utils/routes/types.js +1 -0
  640. package/lib/utils/routes/utils.d.ts +5 -0
  641. package/lib/utils/routes/utils.d.ts.map +1 -0
  642. package/lib/utils/routes/utils.js +3 -0
  643. package/lib/utils/scale.d.ts +4 -0
  644. package/lib/utils/scale.d.ts.map +1 -0
  645. package/lib/utils/scale.js +15 -0
  646. package/lib/utils/ui/color/index.d.ts +3 -0
  647. package/lib/utils/ui/color/index.d.ts.map +1 -0
  648. package/lib/utils/ui/color/index.js +2 -0
  649. package/lib/utils/ui/color/utils.d.ts +2 -0
  650. package/lib/utils/ui/color/utils.d.ts.map +1 -0
  651. package/lib/utils/ui/color/utils.js +9 -0
  652. package/lib/utils/ui/index.d.ts +2 -0
  653. package/lib/utils/ui/index.d.ts.map +1 -0
  654. package/lib/utils/ui/index.js +1 -0
  655. package/package.json +4 -4
@@ -0,0 +1,53 @@
1
+ import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
2
+ import type { AnimatedStyle } from 'react-native-reanimated';
3
+ import type { BorderWidth, Color, Radius, Space } from '../../theme';
4
+ import type { ConfigType, FlexPropsKeyType } from './config';
5
+ export interface ThemeScale {
6
+ colors: Color;
7
+ spaces: Space;
8
+ radii: Radius;
9
+ borderWidths: BorderWidth;
10
+ }
11
+ type ConfigKeyType = keyof ConfigType;
12
+ export type StyleProps = {
13
+ [key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
14
+ };
15
+ export type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
16
+ export interface CustomBoxProps {
17
+ /**
18
+ * If true, the box will take the full width and height of its parent.
19
+ */
20
+ absoluteFill?: boolean | undefined;
21
+ /**
22
+ * If true, the box will use the Animated API from react-native-reanimated.
23
+ */
24
+ useAnimated?: boolean | undefined;
25
+ /**
26
+ * Additional styles for the animated box. Only used if `useAnimated` is true.
27
+ */
28
+ animatedStyle?: StyleProp<AnimatedStyle> | undefined;
29
+ /**
30
+ * Shared transition tag for the box in the shared-element transition of react-navigation.
31
+ * @tutorial
32
+ * https://reactnavigation.org/docs/shared-element-transitions/
33
+ */
34
+ sharedTransitionTag?: string | undefined;
35
+ }
36
+ export interface BoxViewProps extends ViewProps {
37
+ /**
38
+ * Box's content.
39
+ */
40
+ children?: React.ReactNode | undefined;
41
+ /**
42
+ * Additional styles.
43
+ */
44
+ style?: StyleProp<ViewStyle> | undefined;
45
+ /**
46
+ * Testing id of the component.
47
+ */
48
+ testID?: string | undefined;
49
+ }
50
+ export interface BoxProps extends StyleProps, FlexStyleProps, CustomBoxProps, BoxViewProps {
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Box/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,WAAW,CAAC;CAC3B;AAED,KAAK,aAAa,GAAG,MAAM,UAAU,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG;KACtB,GAAG,IAAI,aAAa,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;CAC9D,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,IAAI,CAAC,SAAS,EAAE,MAAM,UAAU,CAAC,EACjC,gBAAgB,CACjB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACJ,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEnC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAElC;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;IAErD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C;;OAEG;IACJ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAEtC;;OAEG;IACJ,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,QACf,SAAQ,UAAU,EAChB,cAAc,EACd,cAAc,EACd,YAAY;CAAG"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { BubbleProps } from './type';
2
+ /**
3
+ * Bubble component that uses the calculateBorderRadius function to determine
4
+ * the border radius properties. It applies these properties along with other styles
5
+ * and text properties to the Box component.
6
+ */
7
+ export declare const Bubble: ({ positionType, ...otherProps }: BubbleProps) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Bubble/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI1C;;;;GAIG;AACH,eAAO,MAAM,MAAM,oCAGhB,WAAW,4CAsBb,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ import { useTheme } from '../../theme';
4
+ import { Box } from '../Box';
5
+ import { calculateAlignment, calculateBorderRadius } from './utils';
6
+ /**
7
+ * Bubble component that uses the calculateBorderRadius function to determine
8
+ * the border radius properties. It applies these properties along with other styles
9
+ * and text properties to the Box component.
10
+ */
11
+ export const Bubble = ({ positionType = 'left', ...otherProps }) => {
12
+ // Use the theme context to get the current theme.
13
+ const theme = useTheme();
14
+ // Memoize themeBubble to avoid recalculating it on every render.
15
+ const themeBubble = useMemo(() => theme.__hd__.bubble, [theme]);
16
+ // Calculate border radius properties based on the type.
17
+ const borderRadiusProps = calculateBorderRadius(positionType);
18
+ const alignSelf = calculateAlignment(positionType);
19
+ return (_jsx(Box, { overflow: "hidden", alignSelf: alignSelf, backgroundColor: themeBubble.defaultBackgroundColor, borderColor: themeBubble.defaultBorderColor, borderWidth: themeBubble.defaultBorderWidth, ...borderRadiusProps, ...otherProps }));
20
+ };
@@ -0,0 +1,18 @@
1
+ import type { BoxProps, RadiiPropsKeyType } from '../Box';
2
+ /**
3
+ * These are the variants of Bubble that correspond to the component's position.
4
+ */
5
+ export type BubblePositionType = 'right-top' | 'right-bottom' | 'right-middle' | 'left-top' | 'left-bottom' | 'left-middle' | 'left' | 'right';
6
+ /**
7
+ * BubbleProps interface extends BoxProps but omits certain border radius properties.
8
+ * It includes a positionType property to determine the bubble's position.
9
+ */
10
+ export interface BubbleProps extends Omit<BoxProps, RadiiPropsKeyType> {
11
+ /**
12
+ * Determines the position and orientation of the bubble.
13
+ * Can be one of the values defined in BubblePositionType.
14
+ * If not provided, a default position will be used.
15
+ */
16
+ positionType?: BubblePositionType;
17
+ }
18
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/Bubble/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,cAAc,GACd,cAAc,GACd,UAAU,GACV,aAAa,GACb,aAAa,GACb,MAAM,GACN,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACpE;;;;OAIG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { FlexAlignType } from 'react-native';
2
+ import type { BoxProps, RadiiPropsKeyType } from '../Box';
3
+ import type { BubblePositionType } from './type';
4
+ /**
5
+ * Helper function to calculate border radius values based on the BubblePositionType.
6
+ * Returns an object with the appropriate border radius values for each corner.
7
+ */
8
+ export declare const calculateBorderRadius: (type: BubblePositionType) => Pick<BoxProps, RadiiPropsKeyType>;
9
+ /**
10
+ */
11
+ export declare const calculateAlignment: (type: any) => FlexAlignType;
12
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Bubble/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,SAC1B,kBAAkB,KACvB,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CA6BlC,CAAC;AAEF;GACG;AACH,eAAO,MAAM,kBAAkB,SAAU,GAAG,KAAG,aAE9C,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Helper function to calculate border radius values based on the BubblePositionType.
3
+ * Returns an object with the appropriate border radius values for each corner.
4
+ */
5
+ export const calculateBorderRadius = (type) => {
6
+ const semiRadius = 'medium';
7
+ const fullRadius = 'xxxlarge';
8
+ const borderTopRightRadius = type.includes('right') &&
9
+ (type.includes('bottom') || type.includes('middle'))
10
+ ? semiRadius
11
+ : fullRadius;
12
+ const borderBottomRightRadius = type.includes('right') && (type.includes('top') || type.includes('middle'))
13
+ ? semiRadius
14
+ : fullRadius;
15
+ const borderTopLeftRadius = type.includes('left') &&
16
+ (type.includes('bottom') || type.includes('middle'))
17
+ ? semiRadius
18
+ : fullRadius;
19
+ const borderBottomLeftRadius = type.includes('left') && (type.includes('top') || type.includes('middle'))
20
+ ? semiRadius
21
+ : fullRadius;
22
+ return {
23
+ borderTopRightRadius,
24
+ borderBottomRightRadius,
25
+ borderTopLeftRadius,
26
+ borderBottomLeftRadius,
27
+ };
28
+ };
29
+ /**
30
+ */
31
+ export const calculateAlignment = (type) => {
32
+ return type.includes('right') ? 'flex-end' : 'flex-start';
33
+ };
@@ -0,0 +1,34 @@
1
+ import type { Theme } from '@emotion/react';
2
+ import { View } from 'react-native';
3
+ import type { Color } from '../../theme';
4
+ export declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("..").CardProps & {
5
+ theme?: Theme;
6
+ as?: React.ElementType;
7
+ }, {}, {}>;
8
+ export declare const StyledButtonText: import("@emotion/native").StyledComponent<import("..").TextProps & {
9
+ useRichText?: boolean;
10
+ } & {
11
+ theme?: Theme;
12
+ as?: React.ElementType;
13
+ } & {
14
+ disabled?: boolean;
15
+ themeColor: Color;
16
+ themeTextColor?: Color;
17
+ }, {}, {}>;
18
+ export declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
19
+ theme?: Theme;
20
+ as?: React.ElementType;
21
+ } & {
22
+ themePosition: "left" | "right";
23
+ }, {}, {
24
+ ref?: import("react").Ref<View> | undefined;
25
+ }>;
26
+ export declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
27
+ theme?: Theme;
28
+ as?: React.ElementType;
29
+ } & {
30
+ disabled?: boolean;
31
+ themeColor: Color;
32
+ themeTextColor?: Color;
33
+ }, {}, {}>;
34
+ //# sourceMappingURL=StyledButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/StyledButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAsBzC,eAAO,MAAM,qBAAqB;;SAgDw2H,MAAO,WAAW;UAxC15H,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;SAsC62H,MAAO,WAAW;;eArCh5H,OAAO;gBACN,KAAK;qBACA,KAAK;UAUrB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;SAuB2iG,MAAO,WAAW;;mBAtBjlG,MAAM,GAAG,OAAO;;;EAQ9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;SAY62H,MAAO,WAAW;;eAXh5H,OAAO;gBACN,KAAK;qBACA,KAAK;UAQrB,CAAC"}
@@ -0,0 +1,49 @@
1
+ import styled from '@emotion/native';
2
+ import { View } from 'react-native';
3
+ import { Card } from '../Card';
4
+ import { Icon } from '../Icon';
5
+ import { Text } from '../Text';
6
+ import { getTextColor } from './utils';
7
+ const genTextStyles = (theme, color, textColor, disabled) => {
8
+ if (disabled) {
9
+ return {
10
+ color: theme.colors.white,
11
+ };
12
+ }
13
+ return { color: theme.colors[getTextColor(theme, color, textColor)] };
14
+ };
15
+ export const StyledButtonContainer = styled(Card)(({ theme }) => {
16
+ return {
17
+ flexDirection: 'row',
18
+ justifyContent: 'center',
19
+ alignItems: 'center',
20
+ alignSelf: 'stretch',
21
+ padding: theme.spaces.large,
22
+ };
23
+ });
24
+ export const StyledButtonText = styled(Text)(({ disabled, themeColor, themeTextColor, theme }) => {
25
+ return {
26
+ flexShrink: 1,
27
+ textAlign: 'center',
28
+ fontSize: theme.fontSizes.large,
29
+ fontFamily: theme.fonts.neutral.bold,
30
+ lineHeight: theme.lineHeights.large,
31
+ ...genTextStyles(theme, themeColor, themeTextColor, disabled),
32
+ };
33
+ });
34
+ export const StyledButtonIconWrapper = styled(View)(({ themePosition, theme }) => {
35
+ return {
36
+ marginRight: themePosition === 'left' ? theme.spaces.medium : undefined,
37
+ marginLeft: themePosition === 'right' ? theme.spaces.medium : undefined,
38
+ width: theme.fontSizes.h5,
39
+ height: theme.fontSizes.h5,
40
+ };
41
+ });
42
+ export const StyledButtonIcon = styled(Icon)(({ disabled, themeColor, themeTextColor, theme }) => {
43
+ return {
44
+ fontSize: theme.fontSizes.h5,
45
+ width: theme.fontSizes.h5,
46
+ height: theme.fontSizes.h5,
47
+ ...genTextStyles(theme, themeColor, themeTextColor, disabled),
48
+ };
49
+ });
@@ -0,0 +1,64 @@
1
+ import type { ReactChild, ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ import type { GestureResponderEvent } from 'react-native/Libraries/Types/CoreEventTypes';
4
+ import type { ButtonCorner, Color } from '../../theme';
5
+ import { type BoxProps } from '../Box';
6
+ import type { IconName } from '../Icon';
7
+ export interface ButtonProps extends BoxProps {
8
+ /**
9
+ * Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
10
+ */
11
+ accessibilityHint?: string;
12
+ /**
13
+ * A succinct label in a localized string that identifies the accessibility element
14
+ */
15
+ accessibilityLabel?: string;
16
+ /**
17
+ * Disable state of button.
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Places an icon within the button, before the button's text
22
+ */
23
+ icon?: IconName | ReactNode;
24
+ /**
25
+ * Visual color to apply to button.
26
+ */
27
+ color?: Color;
28
+ /**
29
+ * Visual color to apply to button's text.
30
+ */
31
+ textColor?: Color;
32
+ /**
33
+ * Loading state of button.
34
+ */
35
+ loading?: boolean;
36
+ /**
37
+ * Set the handler to handle press event.
38
+ *
39
+ * @param event The GestureResponderEvent object
40
+ */
41
+ onPress?: null | ((event: GestureResponderEvent) => void) | undefined;
42
+ /**
43
+ * Places an icon within the button, after the button's text
44
+ */
45
+ rightIcon?: IconName | ReactNode;
46
+ /**
47
+ * Corner style of button.
48
+ */
49
+ corner?: ButtonCorner;
50
+ /**
51
+ * Additional style.
52
+ */
53
+ style?: StyleProp<ViewStyle>;
54
+ /**
55
+ * Testing id of the component.
56
+ */
57
+ testID?: string;
58
+ /**
59
+ * Index label.
60
+ */
61
+ text: ReactChild;
62
+ }
63
+ export declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, color, textColor, loading, onPress, rightIcon, corner, style, testID, text, ...rest }: ButtonProps) => JSX.Element;
64
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,KAAK,QAAQ,EAAe,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAaxC,MAAM,WAAW,WAAY,SAAQ,QAAQ;IAC5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACtE;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAIjB;AAMD,eAAO,MAAM,MAAM,mJAehB,WAAW,KAAG,GAAG,CAAC,OA8EpB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { isNil } from 'lodash';
3
+ import { useMemo } from 'react';
4
+ import { useTheme } from '../../theme';
5
+ import { genBoxStyle } from '../Box';
6
+ import { isSimpledAIIcon } from '../Icon';
7
+ import { Loading } from '../Loading';
8
+ import { Touchable } from '../Touchable';
9
+ import { StyledButtonContainer, StyledButtonIcon, StyledButtonIconWrapper, StyledButtonText, } from './StyledButton';
10
+ import { getTextColor } from './utils';
11
+ const isIconName = (icon) => {
12
+ return isSimpledAIIcon(icon);
13
+ };
14
+ export const Button = ({ accessibilityHint, accessibilityLabel, disabled = false, icon, color = 'primary', textColor, loading = false, onPress, rightIcon, corner = 'circle', style, testID, text, ...rest }) => {
15
+ const theme = useTheme();
16
+ const backgroundColor = useMemo(() => (!loading && disabled ? 'disabled' : color), [color, disabled, loading]);
17
+ const squircleBorderRadius = useMemo(() => theme.__hd__.button.squircleBorderRadii[corner], [corner, theme.__hd__.button.squircleBorderRadii]);
18
+ const boxStyle = useMemo(() => genBoxStyle(theme, rest), [rest, theme]);
19
+ return (_jsx(Touchable, { onPress: onPress, children: _jsx(StyledButtonContainer, { accessibilityHint: accessibilityHint, accessibilityLabel: accessibilityLabel, backgroundColor: backgroundColor, borderRadius: squircleBorderRadius, testID: testID, style: style, ...boxStyle, ...rest, children: _jsxs(Loading, { loading: loading, size: theme.__hd__.button.loadingConfig.size, color: getTextColor(theme, color, textColor), testID: `${testID}-loading-indicator`, flexDirection: "row", justifyContent: "center", alignItems: "center", children: [!isNil(icon) && (_jsx(StyledButtonIconWrapper, { themePosition: "left", children: isIconName(icon) ? (_jsx(StyledButtonIcon, { disabled: disabled, icon: icon, testID: `${testID}-left-icon`, themeColor: color, themeTextColor: textColor })) : (icon) })), _jsx(StyledButtonText, { ellipsizeMode: "tail", numberOfLines: 1, disabled: disabled, themeColor: color, themeTextColor: textColor, children: text }), rightIcon !== undefined && (_jsx(StyledButtonIconWrapper, { themePosition: "right", children: isIconName(rightIcon) ? (_jsx(StyledButtonIcon, { disabled: disabled, icon: rightIcon, testID: `${testID}-right-icon`, themeColor: color, themeTextColor: textColor })) : (rightIcon) }))] }) }) }));
20
+ };
@@ -0,0 +1,4 @@
1
+ import type { ButtonColor, Color, Theme } from '../../theme';
2
+ export declare const isButtonColor: (color: Color) => color is ButtonColor;
3
+ export declare const getTextColor: (theme: Theme, color: Color, textColor?: Color) => Color;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE7D,eAAO,MAAM,aAAa,UAAW,KAAK,KAAG,KAAK,IAAI,WAErD,CAAC;AAEF,eAAO,MAAM,YAAY,UAChB,KAAK,SACL,KAAK,cACA,KAAK,KAChB,KAQF,CAAC"}
@@ -0,0 +1,10 @@
1
+ export const isButtonColor = (color) => {
2
+ return ['primary', 'secondary', 'dark', 'white', 'primary01'].includes(color);
3
+ };
4
+ export const getTextColor = (theme, color, textColor) => {
5
+ const finalTextColor = textColor ||
6
+ (isButtonColor(color)
7
+ ? theme.__hd__.button.defaultTextColors[color]
8
+ : 'white');
9
+ return finalTextColor;
10
+ };