@nexara/nativeflow 0.1.1

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 (717) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +67 -0
  3. package/lib/commonjs/assets/svg/Check.js +26 -0
  4. package/lib/commonjs/assets/svg/Check.js.map +1 -0
  5. package/lib/commonjs/assets/svg/X.js +24 -0
  6. package/lib/commonjs/assets/svg/X.js.map +1 -0
  7. package/lib/commonjs/assets/svg/index.js +21 -0
  8. package/lib/commonjs/assets/svg/index.js.map +1 -0
  9. package/lib/commonjs/components/Avatar/AvatarImage.js +45 -0
  10. package/lib/commonjs/components/Avatar/AvatarImage.js.map +1 -0
  11. package/lib/commonjs/components/Avatar/AvatarText.js +45 -0
  12. package/lib/commonjs/components/Avatar/AvatarText.js.map +1 -0
  13. package/lib/commonjs/components/Avatar/index.js +15 -0
  14. package/lib/commonjs/components/Avatar/index.js.map +1 -0
  15. package/lib/commonjs/components/Button/Button.js +148 -0
  16. package/lib/commonjs/components/Button/Button.js.map +1 -0
  17. package/lib/commonjs/components/Button/utils.js +105 -0
  18. package/lib/commonjs/components/Button/utils.js.map +1 -0
  19. package/lib/commonjs/components/CheckBox/CheckBox.js +105 -0
  20. package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -0
  21. package/lib/commonjs/components/Chip/Chip.js +92 -0
  22. package/lib/commonjs/components/Chip/Chip.js.map +1 -0
  23. package/lib/commonjs/components/Chip/utils.js +73 -0
  24. package/lib/commonjs/components/Chip/utils.js.map +1 -0
  25. package/lib/commonjs/components/Dialog/Dialog.js +114 -0
  26. package/lib/commonjs/components/Dialog/Dialog.js.map +1 -0
  27. package/lib/commonjs/components/Dialog/DialogBody.js +37 -0
  28. package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -0
  29. package/lib/commonjs/components/Dialog/DialogDescription.js +39 -0
  30. package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -0
  31. package/lib/commonjs/components/Dialog/DialogFoot.js +38 -0
  32. package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -0
  33. package/lib/commonjs/components/Dialog/DialogHead.js +58 -0
  34. package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -0
  35. package/lib/commonjs/components/Dialog/index.js +42 -0
  36. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  37. package/lib/commonjs/components/Divider/Divider.js +33 -0
  38. package/lib/commonjs/components/Divider/Divider.js.map +1 -0
  39. package/lib/commonjs/components/Grid/Grid.js +66 -0
  40. package/lib/commonjs/components/Grid/Grid.js.map +1 -0
  41. package/lib/commonjs/components/Header/Header.js +78 -0
  42. package/lib/commonjs/components/Header/Header.js.map +1 -0
  43. package/lib/commonjs/components/Icon/Icon.js +26 -0
  44. package/lib/commonjs/components/Icon/Icon.js.map +1 -0
  45. package/lib/commonjs/components/IconButton/IconButton.js +39 -0
  46. package/lib/commonjs/components/IconButton/IconButton.js.map +1 -0
  47. package/lib/commonjs/components/Link/Link.js +45 -0
  48. package/lib/commonjs/components/Link/Link.js.map +1 -0
  49. package/lib/commonjs/components/Menu/Menu.js +165 -0
  50. package/lib/commonjs/components/Menu/Menu.js.map +1 -0
  51. package/lib/commonjs/components/Menu/MenuItem.js +39 -0
  52. package/lib/commonjs/components/Menu/MenuItem.js.map +1 -0
  53. package/lib/commonjs/components/Menu/MenuItemLabel.js +31 -0
  54. package/lib/commonjs/components/Menu/MenuItemLabel.js.map +1 -0
  55. package/lib/commonjs/components/Menu/calculations.js +31 -0
  56. package/lib/commonjs/components/Menu/calculations.js.map +1 -0
  57. package/lib/commonjs/components/Menu/index.js +28 -0
  58. package/lib/commonjs/components/Menu/index.js.map +1 -0
  59. package/lib/commonjs/components/Portal/Portal.js +29 -0
  60. package/lib/commonjs/components/Portal/Portal.js.map +1 -0
  61. package/lib/commonjs/components/Portal/PortalContext.js +19 -0
  62. package/lib/commonjs/components/Portal/PortalContext.js.map +1 -0
  63. package/lib/commonjs/components/Portal/PortalProvider.js +47 -0
  64. package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -0
  65. package/lib/commonjs/components/Progress/Progress.js +58 -0
  66. package/lib/commonjs/components/Progress/Progress.js.map +1 -0
  67. package/lib/commonjs/components/Provider/NativeProvider.js +44 -0
  68. package/lib/commonjs/components/Provider/NativeProvider.js.map +1 -0
  69. package/lib/commonjs/components/Slider/Slider.js +43 -0
  70. package/lib/commonjs/components/Slider/Slider.js.map +1 -0
  71. package/lib/commonjs/components/Stack/HStack.js +43 -0
  72. package/lib/commonjs/components/Stack/HStack.js.map +1 -0
  73. package/lib/commonjs/components/Stack/VStack.js +36 -0
  74. package/lib/commonjs/components/Stack/VStack.js.map +1 -0
  75. package/lib/commonjs/components/Stack/index.js +15 -0
  76. package/lib/commonjs/components/Stack/index.js.map +1 -0
  77. package/lib/commonjs/components/StyledComponents/StyledText.js +49 -0
  78. package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -0
  79. package/lib/commonjs/components/StyledComponents/StyledView.js +43 -0
  80. package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -0
  81. package/lib/commonjs/components/StyledComponents/index.js +21 -0
  82. package/lib/commonjs/components/StyledComponents/index.js.map +1 -0
  83. package/lib/commonjs/components/Surface/Surface.js +36 -0
  84. package/lib/commonjs/components/Surface/Surface.js.map +1 -0
  85. package/lib/commonjs/components/Switch/Switch.js +48 -0
  86. package/lib/commonjs/components/Switch/Switch.js.map +1 -0
  87. package/lib/commonjs/components/TouchableRipple/TouchableRipple.js +105 -0
  88. package/lib/commonjs/components/TouchableRipple/TouchableRipple.js.map +1 -0
  89. package/lib/commonjs/components/UserInput/UserInput.js +122 -0
  90. package/lib/commonjs/components/UserInput/UserInput.js.map +1 -0
  91. package/lib/commonjs/components/UserInput/UserInputV2.js +95 -0
  92. package/lib/commonjs/components/UserInput/UserInputV2.js.map +1 -0
  93. package/lib/commonjs/components/UserInput/generateColors.js +18 -0
  94. package/lib/commonjs/components/UserInput/generateColors.js.map +1 -0
  95. package/lib/commonjs/constants/breakPoints.js +15 -0
  96. package/lib/commonjs/constants/breakPoints.js.map +1 -0
  97. package/lib/commonjs/constants/dialogSizes.js +15 -0
  98. package/lib/commonjs/constants/dialogSizes.js.map +1 -0
  99. package/lib/commonjs/constants/index.js +28 -0
  100. package/lib/commonjs/constants/index.js.map +1 -0
  101. package/lib/commonjs/constants/theme.js +21 -0
  102. package/lib/commonjs/constants/theme.js.map +1 -0
  103. package/lib/commonjs/constants/typographySizes.js +17 -0
  104. package/lib/commonjs/constants/typographySizes.js.map +1 -0
  105. package/lib/commonjs/helpers/CalculateGridSize.js +27 -0
  106. package/lib/commonjs/helpers/CalculateGridSize.js.map +1 -0
  107. package/lib/commonjs/helpers/DeviceSizeCategory.js +40 -0
  108. package/lib/commonjs/helpers/DeviceSizeCategory.js.map +1 -0
  109. package/lib/commonjs/helpers/LightenColorShades.js +14 -0
  110. package/lib/commonjs/helpers/LightenColorShades.js.map +1 -0
  111. package/lib/commonjs/helpers/ResponsiveCalculations.js +77 -0
  112. package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -0
  113. package/lib/commonjs/helpers/index.js +21 -0
  114. package/lib/commonjs/helpers/index.js.map +1 -0
  115. package/lib/commonjs/hooks/index.js +35 -0
  116. package/lib/commonjs/hooks/index.js.map +1 -0
  117. package/lib/commonjs/hooks/useColorScheme.js +17 -0
  118. package/lib/commonjs/hooks/useColorScheme.js.map +1 -0
  119. package/lib/commonjs/hooks/useConditionalWindowDimension.js +15 -0
  120. package/lib/commonjs/hooks/useConditionalWindowDimension.js.map +1 -0
  121. package/lib/commonjs/hooks/useResponsive.js +11 -0
  122. package/lib/commonjs/hooks/useResponsive.js.map +1 -0
  123. package/lib/commonjs/hooks/useTheme.js +17 -0
  124. package/lib/commonjs/hooks/useTheme.js.map +1 -0
  125. package/lib/commonjs/index.js +255 -0
  126. package/lib/commonjs/index.js.map +1 -0
  127. package/lib/commonjs/themes/DarkTheme.js +38 -0
  128. package/lib/commonjs/themes/DarkTheme.js.map +1 -0
  129. package/lib/commonjs/themes/LightTheme.js +97 -0
  130. package/lib/commonjs/themes/LightTheme.js.map +1 -0
  131. package/lib/commonjs/themes/createTheme.js +25 -0
  132. package/lib/commonjs/themes/createTheme.js.map +1 -0
  133. package/lib/commonjs/themes/index.js +21 -0
  134. package/lib/commonjs/themes/index.js.map +1 -0
  135. package/lib/commonjs/types/avatar.type.js +6 -0
  136. package/lib/commonjs/types/avatar.type.js.map +1 -0
  137. package/lib/commonjs/types/button.type.js +6 -0
  138. package/lib/commonjs/types/button.type.js.map +1 -0
  139. package/lib/commonjs/types/checkbox.type.js +6 -0
  140. package/lib/commonjs/types/checkbox.type.js.map +1 -0
  141. package/lib/commonjs/types/chip.type.js +6 -0
  142. package/lib/commonjs/types/chip.type.js.map +1 -0
  143. package/lib/commonjs/types/common.type.js +6 -0
  144. package/lib/commonjs/types/common.type.js.map +1 -0
  145. package/lib/commonjs/types/dialog.type.js +6 -0
  146. package/lib/commonjs/types/dialog.type.js.map +1 -0
  147. package/lib/commonjs/types/grid.type.js +6 -0
  148. package/lib/commonjs/types/grid.type.js.map +1 -0
  149. package/lib/commonjs/types/index.js +138 -0
  150. package/lib/commonjs/types/index.js.map +1 -0
  151. package/lib/commonjs/types/menu.type.js +6 -0
  152. package/lib/commonjs/types/menu.type.js.map +1 -0
  153. package/lib/commonjs/types/stack.type.js +6 -0
  154. package/lib/commonjs/types/stack.type.js.map +1 -0
  155. package/lib/commonjs/types/styledComponents.type.js +6 -0
  156. package/lib/commonjs/types/styledComponents.type.js.map +1 -0
  157. package/lib/commonjs/types/switch.type.js +6 -0
  158. package/lib/commonjs/types/switch.type.js.map +1 -0
  159. package/lib/commonjs/types/userInput.type.js +6 -0
  160. package/lib/commonjs/types/userInput.type.js.map +1 -0
  161. package/lib/module/assets/svg/Check.js +22 -0
  162. package/lib/module/assets/svg/Check.js.map +1 -0
  163. package/lib/module/assets/svg/X.js +20 -0
  164. package/lib/module/assets/svg/X.js.map +1 -0
  165. package/lib/module/assets/svg/index.js +5 -0
  166. package/lib/module/assets/svg/index.js.map +1 -0
  167. package/lib/module/components/Avatar/AvatarImage.js +40 -0
  168. package/lib/module/components/Avatar/AvatarImage.js.map +1 -0
  169. package/lib/module/components/Avatar/AvatarText.js +40 -0
  170. package/lib/module/components/Avatar/AvatarText.js.map +1 -0
  171. package/lib/module/components/Avatar/index.js +10 -0
  172. package/lib/module/components/Avatar/index.js.map +1 -0
  173. package/lib/module/components/Button/Button.js +143 -0
  174. package/lib/module/components/Button/Button.js.map +1 -0
  175. package/lib/module/components/Button/utils.js +101 -0
  176. package/lib/module/components/Button/utils.js.map +1 -0
  177. package/lib/module/components/CheckBox/CheckBox.js +99 -0
  178. package/lib/module/components/CheckBox/CheckBox.js.map +1 -0
  179. package/lib/module/components/Chip/Chip.js +87 -0
  180. package/lib/module/components/Chip/Chip.js.map +1 -0
  181. package/lib/module/components/Chip/utils.js +69 -0
  182. package/lib/module/components/Chip/utils.js.map +1 -0
  183. package/lib/module/components/Dialog/Dialog.js +107 -0
  184. package/lib/module/components/Dialog/Dialog.js.map +1 -0
  185. package/lib/module/components/Dialog/DialogBody.js +32 -0
  186. package/lib/module/components/Dialog/DialogBody.js.map +1 -0
  187. package/lib/module/components/Dialog/DialogDescription.js +34 -0
  188. package/lib/module/components/Dialog/DialogDescription.js.map +1 -0
  189. package/lib/module/components/Dialog/DialogFoot.js +33 -0
  190. package/lib/module/components/Dialog/DialogFoot.js.map +1 -0
  191. package/lib/module/components/Dialog/DialogHead.js +53 -0
  192. package/lib/module/components/Dialog/DialogHead.js.map +1 -0
  193. package/lib/module/components/Dialog/index.js +8 -0
  194. package/lib/module/components/Dialog/index.js.map +1 -0
  195. package/lib/module/components/Divider/Divider.js +28 -0
  196. package/lib/module/components/Divider/Divider.js.map +1 -0
  197. package/lib/module/components/Grid/Grid.js +60 -0
  198. package/lib/module/components/Grid/Grid.js.map +1 -0
  199. package/lib/module/components/Header/Header.js +73 -0
  200. package/lib/module/components/Header/Header.js.map +1 -0
  201. package/lib/module/components/Icon/Icon.js +21 -0
  202. package/lib/module/components/Icon/Icon.js.map +1 -0
  203. package/lib/module/components/IconButton/IconButton.js +34 -0
  204. package/lib/module/components/IconButton/IconButton.js.map +1 -0
  205. package/lib/module/components/Link/Link.js +41 -0
  206. package/lib/module/components/Link/Link.js.map +1 -0
  207. package/lib/module/components/Menu/Menu.js +158 -0
  208. package/lib/module/components/Menu/Menu.js.map +1 -0
  209. package/lib/module/components/Menu/MenuItem.js +34 -0
  210. package/lib/module/components/Menu/MenuItem.js.map +1 -0
  211. package/lib/module/components/Menu/MenuItemLabel.js +26 -0
  212. package/lib/module/components/Menu/MenuItemLabel.js.map +1 -0
  213. package/lib/module/components/Menu/calculations.js +27 -0
  214. package/lib/module/components/Menu/calculations.js.map +1 -0
  215. package/lib/module/components/Menu/index.js +6 -0
  216. package/lib/module/components/Menu/index.js.map +1 -0
  217. package/lib/module/components/Portal/Portal.js +24 -0
  218. package/lib/module/components/Portal/Portal.js.map +1 -0
  219. package/lib/module/components/Portal/PortalContext.js +13 -0
  220. package/lib/module/components/Portal/PortalContext.js.map +1 -0
  221. package/lib/module/components/Portal/PortalProvider.js +40 -0
  222. package/lib/module/components/Portal/PortalProvider.js.map +1 -0
  223. package/lib/module/components/Progress/Progress.js +52 -0
  224. package/lib/module/components/Progress/Progress.js.map +1 -0
  225. package/lib/module/components/Provider/NativeProvider.js +38 -0
  226. package/lib/module/components/Provider/NativeProvider.js.map +1 -0
  227. package/lib/module/components/Slider/Slider.js +38 -0
  228. package/lib/module/components/Slider/Slider.js.map +1 -0
  229. package/lib/module/components/Stack/HStack.js +37 -0
  230. package/lib/module/components/Stack/HStack.js.map +1 -0
  231. package/lib/module/components/Stack/VStack.js +30 -0
  232. package/lib/module/components/Stack/VStack.js.map +1 -0
  233. package/lib/module/components/Stack/index.js +10 -0
  234. package/lib/module/components/Stack/index.js.map +1 -0
  235. package/lib/module/components/StyledComponents/StyledText.js +44 -0
  236. package/lib/module/components/StyledComponents/StyledText.js.map +1 -0
  237. package/lib/module/components/StyledComponents/StyledView.js +38 -0
  238. package/lib/module/components/StyledComponents/StyledView.js.map +1 -0
  239. package/lib/module/components/StyledComponents/index.js +5 -0
  240. package/lib/module/components/StyledComponents/index.js.map +1 -0
  241. package/lib/module/components/Surface/Surface.js +31 -0
  242. package/lib/module/components/Surface/Surface.js.map +1 -0
  243. package/lib/module/components/Switch/Switch.js +43 -0
  244. package/lib/module/components/Switch/Switch.js.map +1 -0
  245. package/lib/module/components/TouchableRipple/TouchableRipple.js +98 -0
  246. package/lib/module/components/TouchableRipple/TouchableRipple.js.map +1 -0
  247. package/lib/module/components/UserInput/UserInput.js +119 -0
  248. package/lib/module/components/UserInput/UserInput.js.map +1 -0
  249. package/lib/module/components/UserInput/UserInputV2.js +90 -0
  250. package/lib/module/components/UserInput/UserInputV2.js.map +1 -0
  251. package/lib/module/components/UserInput/generateColors.js +14 -0
  252. package/lib/module/components/UserInput/generateColors.js.map +1 -0
  253. package/lib/module/constants/breakPoints.js +11 -0
  254. package/lib/module/constants/breakPoints.js.map +1 -0
  255. package/lib/module/constants/dialogSizes.js +11 -0
  256. package/lib/module/constants/dialogSizes.js.map +1 -0
  257. package/lib/module/constants/index.js +6 -0
  258. package/lib/module/constants/index.js.map +1 -0
  259. package/lib/module/constants/theme.js +17 -0
  260. package/lib/module/constants/theme.js.map +1 -0
  261. package/lib/module/constants/typographySizes.js +13 -0
  262. package/lib/module/constants/typographySizes.js.map +1 -0
  263. package/lib/module/helpers/CalculateGridSize.js +22 -0
  264. package/lib/module/helpers/CalculateGridSize.js.map +1 -0
  265. package/lib/module/helpers/DeviceSizeCategory.js +36 -0
  266. package/lib/module/helpers/DeviceSizeCategory.js.map +1 -0
  267. package/lib/module/helpers/LightenColorShades.js +10 -0
  268. package/lib/module/helpers/LightenColorShades.js.map +1 -0
  269. package/lib/module/helpers/ResponsiveCalculations.js +68 -0
  270. package/lib/module/helpers/ResponsiveCalculations.js.map +1 -0
  271. package/lib/module/helpers/index.js +5 -0
  272. package/lib/module/helpers/index.js.map +1 -0
  273. package/lib/module/hooks/index.js +7 -0
  274. package/lib/module/hooks/index.js.map +1 -0
  275. package/lib/module/hooks/useColorScheme.js +13 -0
  276. package/lib/module/hooks/useColorScheme.js.map +1 -0
  277. package/lib/module/hooks/useConditionalWindowDimension.js +11 -0
  278. package/lib/module/hooks/useConditionalWindowDimension.js.map +1 -0
  279. package/lib/module/hooks/useResponsive.js +7 -0
  280. package/lib/module/hooks/useResponsive.js.map +1 -0
  281. package/lib/module/hooks/useTheme.js +13 -0
  282. package/lib/module/hooks/useTheme.js.map +1 -0
  283. package/lib/module/index.js +34 -0
  284. package/lib/module/index.js.map +2 -0
  285. package/lib/module/themes/DarkTheme.js +34 -0
  286. package/lib/module/themes/DarkTheme.js.map +1 -0
  287. package/lib/module/themes/LightTheme.js +92 -0
  288. package/lib/module/themes/LightTheme.js.map +1 -0
  289. package/lib/module/themes/createTheme.js +25 -0
  290. package/lib/module/themes/createTheme.js.map +1 -0
  291. package/lib/module/themes/index.js +6 -0
  292. package/lib/module/themes/index.js.map +1 -0
  293. package/lib/module/types/avatar.type.js +4 -0
  294. package/lib/module/types/avatar.type.js.map +1 -0
  295. package/lib/module/types/button.type.js +4 -0
  296. package/lib/module/types/button.type.js.map +1 -0
  297. package/lib/module/types/checkbox.type.js +4 -0
  298. package/lib/module/types/checkbox.type.js.map +1 -0
  299. package/lib/module/types/chip.type.js +4 -0
  300. package/lib/module/types/chip.type.js.map +1 -0
  301. package/lib/module/types/common.type.js +4 -0
  302. package/lib/module/types/common.type.js.map +1 -0
  303. package/lib/module/types/dialog.type.js +4 -0
  304. package/lib/module/types/dialog.type.js.map +1 -0
  305. package/lib/module/types/grid.type.js +4 -0
  306. package/lib/module/types/grid.type.js.map +1 -0
  307. package/lib/module/types/index.js +15 -0
  308. package/lib/module/types/index.js.map +1 -0
  309. package/lib/module/types/menu.type.js +4 -0
  310. package/lib/module/types/menu.type.js.map +1 -0
  311. package/lib/module/types/stack.type.js +4 -0
  312. package/lib/module/types/stack.type.js.map +1 -0
  313. package/lib/module/types/styledComponents.type.js +4 -0
  314. package/lib/module/types/styledComponents.type.js.map +1 -0
  315. package/lib/module/types/switch.type.js +4 -0
  316. package/lib/module/types/switch.type.js.map +1 -0
  317. package/lib/module/types/userInput.type.js +4 -0
  318. package/lib/module/types/userInput.type.js.map +1 -0
  319. package/lib/typescript/commonjs/package.json +1 -0
  320. package/lib/typescript/commonjs/src/assets/svg/Check.d.ts +6 -0
  321. package/lib/typescript/commonjs/src/assets/svg/Check.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/src/assets/svg/X.d.ts +6 -0
  323. package/lib/typescript/commonjs/src/assets/svg/X.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/src/assets/svg/index.d.ts +3 -0
  325. package/lib/typescript/commonjs/src/assets/svg/index.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts +6 -0
  327. package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts +6 -0
  329. package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts +8 -0
  331. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/components/Button/Button.d.ts +6 -0
  333. package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/components/Button/utils.d.ts +16 -0
  335. package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts +6 -0
  337. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts +6 -0
  339. package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/components/Chip/utils.d.ts +14 -0
  341. package/lib/typescript/commonjs/src/components/Chip/utils.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts +6 -0
  343. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts +9 -0
  345. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts +6 -0
  347. package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts +9 -0
  349. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts +9 -0
  351. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/src/components/Dialog/index.d.ts +11 -0
  353. package/lib/typescript/commonjs/src/components/Dialog/index.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts +11 -0
  355. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts +6 -0
  357. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/src/components/Header/Header.d.ts +15 -0
  359. package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts +9 -0
  361. package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts +11 -0
  363. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/components/Link/Link.d.ts +8 -0
  365. package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts +6 -0
  367. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts +6 -0
  369. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts +6 -0
  371. package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/src/components/Menu/calculations.d.ts +18 -0
  373. package/lib/typescript/commonjs/src/components/Menu/calculations.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/components/Menu/index.d.ts +7 -0
  375. package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts +8 -0
  377. package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts.map +1 -0
  378. package/lib/typescript/commonjs/src/components/Portal/PortalContext.d.ts +11 -0
  379. package/lib/typescript/commonjs/src/components/Portal/PortalContext.d.ts.map +1 -0
  380. package/lib/typescript/commonjs/src/components/Portal/PortalProvider.d.ts +7 -0
  381. package/lib/typescript/commonjs/src/components/Portal/PortalProvider.d.ts.map +1 -0
  382. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +17 -0
  383. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -0
  384. package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts +32 -0
  385. package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts.map +1 -0
  386. package/lib/typescript/commonjs/src/components/Slider/Slider.d.ts +11 -0
  387. package/lib/typescript/commonjs/src/components/Slider/Slider.d.ts.map +1 -0
  388. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts +6 -0
  389. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -0
  390. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts +6 -0
  391. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -0
  392. package/lib/typescript/commonjs/src/components/Stack/index.d.ts +8 -0
  393. package/lib/typescript/commonjs/src/components/Stack/index.d.ts.map +1 -0
  394. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts +6 -0
  395. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -0
  396. package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts +6 -0
  397. package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -0
  398. package/lib/typescript/commonjs/src/components/StyledComponents/index.d.ts +5 -0
  399. package/lib/typescript/commonjs/src/components/StyledComponents/index.d.ts.map +1 -0
  400. package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts +6 -0
  401. package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts.map +1 -0
  402. package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts +6 -0
  403. package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts +11 -0
  405. package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +38 -0
  407. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -0
  408. package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts +30 -0
  409. package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts.map +1 -0
  410. package/lib/typescript/commonjs/src/components/UserInput/generateColors.d.ts +8 -0
  411. package/lib/typescript/commonjs/src/components/UserInput/generateColors.d.ts.map +1 -0
  412. package/lib/typescript/commonjs/src/constants/breakPoints.d.ts +11 -0
  413. package/lib/typescript/commonjs/src/constants/breakPoints.d.ts.map +1 -0
  414. package/lib/typescript/commonjs/src/constants/dialogSizes.d.ts +4 -0
  415. package/lib/typescript/commonjs/src/constants/dialogSizes.d.ts.map +1 -0
  416. package/lib/typescript/commonjs/src/constants/index.d.ts +4 -0
  417. package/lib/typescript/commonjs/src/constants/index.d.ts.map +1 -0
  418. package/lib/typescript/commonjs/src/constants/theme.d.ts +17 -0
  419. package/lib/typescript/commonjs/src/constants/theme.d.ts.map +1 -0
  420. package/lib/typescript/commonjs/src/constants/typographySizes.d.ts +13 -0
  421. package/lib/typescript/commonjs/src/constants/typographySizes.d.ts.map +1 -0
  422. package/lib/typescript/commonjs/src/helpers/CalculateGridSize.d.ts +3 -0
  423. package/lib/typescript/commonjs/src/helpers/CalculateGridSize.d.ts.map +1 -0
  424. package/lib/typescript/commonjs/src/helpers/DeviceSizeCategory.d.ts +7 -0
  425. package/lib/typescript/commonjs/src/helpers/DeviceSizeCategory.d.ts.map +1 -0
  426. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +3 -0
  427. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +1 -0
  428. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +6 -0
  429. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -0
  430. package/lib/typescript/commonjs/src/helpers/index.d.ts +3 -0
  431. package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -0
  432. package/lib/typescript/commonjs/src/hooks/index.d.ts +5 -0
  433. package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
  434. package/lib/typescript/commonjs/src/hooks/useColorScheme.d.ts +3 -0
  435. package/lib/typescript/commonjs/src/hooks/useColorScheme.d.ts.map +1 -0
  436. package/lib/typescript/commonjs/src/hooks/useConditionalWindowDimension.d.ts +6 -0
  437. package/lib/typescript/commonjs/src/hooks/useConditionalWindowDimension.d.ts.map +1 -0
  438. package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts +3 -0
  439. package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts.map +1 -0
  440. package/lib/typescript/commonjs/src/hooks/useTheme.d.ts +5 -0
  441. package/lib/typescript/commonjs/src/hooks/useTheme.d.ts.map +1 -0
  442. package/lib/typescript/commonjs/src/index.d.ts +48 -0
  443. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  444. package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts +4 -0
  445. package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts.map +1 -0
  446. package/lib/typescript/commonjs/src/themes/LightTheme.d.ts +4 -0
  447. package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -0
  448. package/lib/typescript/commonjs/src/themes/createTheme.d.ts +1 -0
  449. package/lib/typescript/commonjs/src/themes/createTheme.d.ts.map +1 -0
  450. package/lib/typescript/commonjs/src/themes/index.d.ts +3 -0
  451. package/lib/typescript/commonjs/src/themes/index.d.ts.map +1 -0
  452. package/lib/typescript/commonjs/src/types/avatar.type.d.ts +34 -0
  453. package/lib/typescript/commonjs/src/types/avatar.type.d.ts.map +1 -0
  454. package/lib/typescript/commonjs/src/types/button.type.d.ts +54 -0
  455. package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -0
  456. package/lib/typescript/commonjs/src/types/checkbox.type.d.ts +41 -0
  457. package/lib/typescript/commonjs/src/types/checkbox.type.d.ts.map +1 -0
  458. package/lib/typescript/commonjs/src/types/chip.type.d.ts +38 -0
  459. package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -0
  460. package/lib/typescript/commonjs/src/types/common.type.d.ts +47 -0
  461. package/lib/typescript/commonjs/src/types/common.type.d.ts.map +1 -0
  462. package/lib/typescript/commonjs/src/types/dialog.type.d.ts +66 -0
  463. package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -0
  464. package/lib/typescript/commonjs/src/types/grid.type.d.ts +58 -0
  465. package/lib/typescript/commonjs/src/types/grid.type.d.ts.map +1 -0
  466. package/lib/typescript/commonjs/src/types/index.d.ts +13 -0
  467. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
  468. package/lib/typescript/commonjs/src/types/menu.type.d.ts +90 -0
  469. package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -0
  470. package/lib/typescript/commonjs/src/types/stack.type.d.ts +46 -0
  471. package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -0
  472. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +91 -0
  473. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -0
  474. package/lib/typescript/commonjs/src/types/switch.type.d.ts +33 -0
  475. package/lib/typescript/commonjs/src/types/switch.type.d.ts.map +1 -0
  476. package/lib/typescript/commonjs/src/types/userInput.type.d.ts +74 -0
  477. package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -0
  478. package/lib/typescript/module/package.json +1 -0
  479. package/lib/typescript/module/src/assets/svg/Check.d.ts +6 -0
  480. package/lib/typescript/module/src/assets/svg/Check.d.ts.map +1 -0
  481. package/lib/typescript/module/src/assets/svg/X.d.ts +6 -0
  482. package/lib/typescript/module/src/assets/svg/X.d.ts.map +1 -0
  483. package/lib/typescript/module/src/assets/svg/index.d.ts +3 -0
  484. package/lib/typescript/module/src/assets/svg/index.d.ts.map +1 -0
  485. package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts +6 -0
  486. package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts.map +1 -0
  487. package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts +6 -0
  488. package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts.map +1 -0
  489. package/lib/typescript/module/src/components/Avatar/index.d.ts +8 -0
  490. package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -0
  491. package/lib/typescript/module/src/components/Button/Button.d.ts +6 -0
  492. package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -0
  493. package/lib/typescript/module/src/components/Button/utils.d.ts +16 -0
  494. package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -0
  495. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts +6 -0
  496. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -0
  497. package/lib/typescript/module/src/components/Chip/Chip.d.ts +6 -0
  498. package/lib/typescript/module/src/components/Chip/Chip.d.ts.map +1 -0
  499. package/lib/typescript/module/src/components/Chip/utils.d.ts +14 -0
  500. package/lib/typescript/module/src/components/Chip/utils.d.ts.map +1 -0
  501. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts +6 -0
  502. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -0
  503. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts +9 -0
  504. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -0
  505. package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts +6 -0
  506. package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts.map +1 -0
  507. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts +9 -0
  508. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -0
  509. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts +9 -0
  510. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -0
  511. package/lib/typescript/module/src/components/Dialog/index.d.ts +11 -0
  512. package/lib/typescript/module/src/components/Dialog/index.d.ts.map +1 -0
  513. package/lib/typescript/module/src/components/Divider/Divider.d.ts +11 -0
  514. package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -0
  515. package/lib/typescript/module/src/components/Grid/Grid.d.ts +6 -0
  516. package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -0
  517. package/lib/typescript/module/src/components/Header/Header.d.ts +15 -0
  518. package/lib/typescript/module/src/components/Header/Header.d.ts.map +1 -0
  519. package/lib/typescript/module/src/components/Icon/Icon.d.ts +9 -0
  520. package/lib/typescript/module/src/components/Icon/Icon.d.ts.map +1 -0
  521. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts +11 -0
  522. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts.map +1 -0
  523. package/lib/typescript/module/src/components/Link/Link.d.ts +8 -0
  524. package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -0
  525. package/lib/typescript/module/src/components/Menu/Menu.d.ts +6 -0
  526. package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -0
  527. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts +6 -0
  528. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -0
  529. package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts +6 -0
  530. package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts.map +1 -0
  531. package/lib/typescript/module/src/components/Menu/calculations.d.ts +18 -0
  532. package/lib/typescript/module/src/components/Menu/calculations.d.ts.map +1 -0
  533. package/lib/typescript/module/src/components/Menu/index.d.ts +7 -0
  534. package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -0
  535. package/lib/typescript/module/src/components/Portal/Portal.d.ts +8 -0
  536. package/lib/typescript/module/src/components/Portal/Portal.d.ts.map +1 -0
  537. package/lib/typescript/module/src/components/Portal/PortalContext.d.ts +11 -0
  538. package/lib/typescript/module/src/components/Portal/PortalContext.d.ts.map +1 -0
  539. package/lib/typescript/module/src/components/Portal/PortalProvider.d.ts +7 -0
  540. package/lib/typescript/module/src/components/Portal/PortalProvider.d.ts.map +1 -0
  541. package/lib/typescript/module/src/components/Progress/Progress.d.ts +17 -0
  542. package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -0
  543. package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts +32 -0
  544. package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts.map +1 -0
  545. package/lib/typescript/module/src/components/Slider/Slider.d.ts +11 -0
  546. package/lib/typescript/module/src/components/Slider/Slider.d.ts.map +1 -0
  547. package/lib/typescript/module/src/components/Stack/HStack.d.ts +6 -0
  548. package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -0
  549. package/lib/typescript/module/src/components/Stack/VStack.d.ts +6 -0
  550. package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -0
  551. package/lib/typescript/module/src/components/Stack/index.d.ts +8 -0
  552. package/lib/typescript/module/src/components/Stack/index.d.ts.map +1 -0
  553. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts +6 -0
  554. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -0
  555. package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts +6 -0
  556. package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -0
  557. package/lib/typescript/module/src/components/StyledComponents/index.d.ts +5 -0
  558. package/lib/typescript/module/src/components/StyledComponents/index.d.ts.map +1 -0
  559. package/lib/typescript/module/src/components/Surface/Surface.d.ts +6 -0
  560. package/lib/typescript/module/src/components/Surface/Surface.d.ts.map +1 -0
  561. package/lib/typescript/module/src/components/Switch/Switch.d.ts +6 -0
  562. package/lib/typescript/module/src/components/Switch/Switch.d.ts.map +1 -0
  563. package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts +11 -0
  564. package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -0
  565. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +38 -0
  566. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -0
  567. package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts +30 -0
  568. package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts.map +1 -0
  569. package/lib/typescript/module/src/components/UserInput/generateColors.d.ts +8 -0
  570. package/lib/typescript/module/src/components/UserInput/generateColors.d.ts.map +1 -0
  571. package/lib/typescript/module/src/constants/breakPoints.d.ts +11 -0
  572. package/lib/typescript/module/src/constants/breakPoints.d.ts.map +1 -0
  573. package/lib/typescript/module/src/constants/dialogSizes.d.ts +4 -0
  574. package/lib/typescript/module/src/constants/dialogSizes.d.ts.map +1 -0
  575. package/lib/typescript/module/src/constants/index.d.ts +4 -0
  576. package/lib/typescript/module/src/constants/index.d.ts.map +1 -0
  577. package/lib/typescript/module/src/constants/theme.d.ts +17 -0
  578. package/lib/typescript/module/src/constants/theme.d.ts.map +1 -0
  579. package/lib/typescript/module/src/constants/typographySizes.d.ts +13 -0
  580. package/lib/typescript/module/src/constants/typographySizes.d.ts.map +1 -0
  581. package/lib/typescript/module/src/helpers/CalculateGridSize.d.ts +3 -0
  582. package/lib/typescript/module/src/helpers/CalculateGridSize.d.ts.map +1 -0
  583. package/lib/typescript/module/src/helpers/DeviceSizeCategory.d.ts +7 -0
  584. package/lib/typescript/module/src/helpers/DeviceSizeCategory.d.ts.map +1 -0
  585. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +3 -0
  586. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +1 -0
  587. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +6 -0
  588. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -0
  589. package/lib/typescript/module/src/helpers/index.d.ts +3 -0
  590. package/lib/typescript/module/src/helpers/index.d.ts.map +1 -0
  591. package/lib/typescript/module/src/hooks/index.d.ts +5 -0
  592. package/lib/typescript/module/src/hooks/index.d.ts.map +1 -0
  593. package/lib/typescript/module/src/hooks/useColorScheme.d.ts +3 -0
  594. package/lib/typescript/module/src/hooks/useColorScheme.d.ts.map +1 -0
  595. package/lib/typescript/module/src/hooks/useConditionalWindowDimension.d.ts +6 -0
  596. package/lib/typescript/module/src/hooks/useConditionalWindowDimension.d.ts.map +1 -0
  597. package/lib/typescript/module/src/hooks/useResponsive.d.ts +3 -0
  598. package/lib/typescript/module/src/hooks/useResponsive.d.ts.map +1 -0
  599. package/lib/typescript/module/src/hooks/useTheme.d.ts +5 -0
  600. package/lib/typescript/module/src/hooks/useTheme.d.ts.map +1 -0
  601. package/lib/typescript/module/src/index.d.ts +48 -0
  602. package/lib/typescript/module/src/index.d.ts.map +1 -0
  603. package/lib/typescript/module/src/themes/DarkTheme.d.ts +4 -0
  604. package/lib/typescript/module/src/themes/DarkTheme.d.ts.map +1 -0
  605. package/lib/typescript/module/src/themes/LightTheme.d.ts +4 -0
  606. package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -0
  607. package/lib/typescript/module/src/themes/createTheme.d.ts +1 -0
  608. package/lib/typescript/module/src/themes/createTheme.d.ts.map +1 -0
  609. package/lib/typescript/module/src/themes/index.d.ts +3 -0
  610. package/lib/typescript/module/src/themes/index.d.ts.map +1 -0
  611. package/lib/typescript/module/src/types/avatar.type.d.ts +34 -0
  612. package/lib/typescript/module/src/types/avatar.type.d.ts.map +1 -0
  613. package/lib/typescript/module/src/types/button.type.d.ts +54 -0
  614. package/lib/typescript/module/src/types/button.type.d.ts.map +1 -0
  615. package/lib/typescript/module/src/types/checkbox.type.d.ts +41 -0
  616. package/lib/typescript/module/src/types/checkbox.type.d.ts.map +1 -0
  617. package/lib/typescript/module/src/types/chip.type.d.ts +38 -0
  618. package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -0
  619. package/lib/typescript/module/src/types/common.type.d.ts +47 -0
  620. package/lib/typescript/module/src/types/common.type.d.ts.map +1 -0
  621. package/lib/typescript/module/src/types/dialog.type.d.ts +66 -0
  622. package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -0
  623. package/lib/typescript/module/src/types/grid.type.d.ts +58 -0
  624. package/lib/typescript/module/src/types/grid.type.d.ts.map +1 -0
  625. package/lib/typescript/module/src/types/index.d.ts +13 -0
  626. package/lib/typescript/module/src/types/index.d.ts.map +1 -0
  627. package/lib/typescript/module/src/types/menu.type.d.ts +90 -0
  628. package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -0
  629. package/lib/typescript/module/src/types/stack.type.d.ts +46 -0
  630. package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -0
  631. package/lib/typescript/module/src/types/styledComponents.type.d.ts +91 -0
  632. package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -0
  633. package/lib/typescript/module/src/types/switch.type.d.ts +33 -0
  634. package/lib/typescript/module/src/types/switch.type.d.ts.map +1 -0
  635. package/lib/typescript/module/src/types/userInput.type.d.ts +74 -0
  636. package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -0
  637. package/package.json +197 -0
  638. package/src/assets/svg/Check.tsx +17 -0
  639. package/src/assets/svg/X.tsx +16 -0
  640. package/src/assets/svg/index.ts +2 -0
  641. package/src/components/Avatar/AvatarImage.tsx +39 -0
  642. package/src/components/Avatar/AvatarText.tsx +35 -0
  643. package/src/components/Avatar/index.ts +9 -0
  644. package/src/components/Button/Button.tsx +153 -0
  645. package/src/components/Button/utils.ts +142 -0
  646. package/src/components/CheckBox/CheckBox.tsx +102 -0
  647. package/src/components/Chip/Chip.tsx +89 -0
  648. package/src/components/Chip/utils.ts +96 -0
  649. package/src/components/Dialog/Dialog.tsx +116 -0
  650. package/src/components/Dialog/DialogBody.tsx +34 -0
  651. package/src/components/Dialog/DialogDescription.tsx +28 -0
  652. package/src/components/Dialog/DialogFoot.tsx +35 -0
  653. package/src/components/Dialog/DialogHead.tsx +51 -0
  654. package/src/components/Dialog/index.ts +11 -0
  655. package/src/components/Divider/Divider.tsx +35 -0
  656. package/src/components/Grid/Grid.tsx +61 -0
  657. package/src/components/Header/Header.tsx +81 -0
  658. package/src/components/Icon/Icon.tsx +28 -0
  659. package/src/components/IconButton/IconButton.tsx +36 -0
  660. package/src/components/Link/Link.tsx +31 -0
  661. package/src/components/Menu/Menu.tsx +139 -0
  662. package/src/components/Menu/MenuItem.tsx +36 -0
  663. package/src/components/Menu/MenuItemLabel.tsx +27 -0
  664. package/src/components/Menu/calculations.ts +34 -0
  665. package/src/components/Menu/index.ts +8 -0
  666. package/src/components/Portal/Portal.tsx +19 -0
  667. package/src/components/Portal/PortalContext.tsx +10 -0
  668. package/src/components/Portal/PortalProvider.tsx +37 -0
  669. package/src/components/Progress/Progress.tsx +69 -0
  670. package/src/components/Provider/NativeProvider.tsx +58 -0
  671. package/src/components/Slider/Slider.tsx +45 -0
  672. package/src/components/Stack/HStack.tsx +38 -0
  673. package/src/components/Stack/VStack.tsx +31 -0
  674. package/src/components/Stack/index.ts +9 -0
  675. package/src/components/StyledComponents/StyledText.tsx +44 -0
  676. package/src/components/StyledComponents/StyledView.tsx +42 -0
  677. package/src/components/StyledComponents/index.tsx +6 -0
  678. package/src/components/Surface/Surface.tsx +38 -0
  679. package/src/components/Switch/Switch.tsx +35 -0
  680. package/src/components/TouchableRipple/TouchableRipple.tsx +92 -0
  681. package/src/components/UserInput/UserInput.tsx +124 -0
  682. package/src/components/UserInput/UserInputV2.tsx +132 -0
  683. package/src/components/UserInput/generateColors.ts +14 -0
  684. package/src/constants/breakPoints.ts +18 -0
  685. package/src/constants/dialogSizes.ts +12 -0
  686. package/src/constants/index.ts +3 -0
  687. package/src/constants/theme.ts +33 -0
  688. package/src/constants/typographySizes.ts +22 -0
  689. package/src/helpers/CalculateGridSize.ts +26 -0
  690. package/src/helpers/DeviceSizeCategory.ts +22 -0
  691. package/src/helpers/LightenColorShades.ts +7 -0
  692. package/src/helpers/ResponsiveCalculations.ts +78 -0
  693. package/src/helpers/index.ts +2 -0
  694. package/src/hooks/index.ts +4 -0
  695. package/src/hooks/useColorScheme.tsx +12 -0
  696. package/src/hooks/useConditionalWindowDimension.tsx +7 -0
  697. package/src/hooks/useResponsive.tsx +6 -0
  698. package/src/hooks/useTheme.tsx +13 -0
  699. package/src/index.ts +52 -0
  700. package/src/index.tsx +3 -0
  701. package/src/themes/DarkTheme.ts +39 -0
  702. package/src/themes/LightTheme.ts +97 -0
  703. package/src/themes/createTheme.ts +23 -0
  704. package/src/themes/index.ts +4 -0
  705. package/src/types/avatar.type.ts +43 -0
  706. package/src/types/button.type.ts +76 -0
  707. package/src/types/checkbox.type.ts +57 -0
  708. package/src/types/chip.type.ts +55 -0
  709. package/src/types/common.type.ts +50 -0
  710. package/src/types/dialog.type.ts +91 -0
  711. package/src/types/grid.type.ts +70 -0
  712. package/src/types/index.ts +12 -0
  713. package/src/types/menu.type.ts +110 -0
  714. package/src/types/stack.type.ts +55 -0
  715. package/src/types/styledComponents.type.ts +111 -0
  716. package/src/types/switch.type.ts +39 -0
  717. package/src/types/userInput.type.ts +95 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 yash
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # @nexara/nativeflow
2
+
3
+ ## 🚀 Features 🚀
4
+
5
+ ✔️ Stunning, modern UI components 🎨✨\
6
+ ✔️ Fully customizable with props and theming 🎧🎨\
7
+ ✔️ Blazing-fast ⚡ performance\
8
+ ✔️ Strong type safety with TypeScript 🛡️📚\
9
+ ✔️ Smooth animations powered by React Native Reanimated 🎭🌀
10
+
11
+ ---
12
+
13
+ ## 📦 Installation 📦
14
+
15
+ ### Step 1: Install the packages
16
+
17
+ #### Install rn-nativeflow
18
+ ```sh
19
+ npm install rn-nativeflow
20
+ ```
21
+
22
+ #### Install react-native-reanimated
23
+ ```sh
24
+ npm install react-native-reanimated
25
+ ```
26
+
27
+ #### Install react-native-gesture-handler
28
+ ```sh
29
+ npm install react-native-gesture-handler
30
+ ```
31
+
32
+ ### Step 2: Add Reanimated's Babel plugin
33
+
34
+ Add `react-native-reanimated/plugin` to your `babel.config.js`
35
+
36
+ #### `babel.config.js`
37
+ ```js
38
+ module.exports = {
39
+ presets: [
40
+ ... // don't add it here :)
41
+ ],
42
+ plugins: [
43
+ ...
44
+ 'react-native-reanimated/plugin',
45
+ ],
46
+ };
47
+ ```
48
+
49
+ ### Step 3: Clear Metro bundler cache (recommended)
50
+ ```sh
51
+ npx expo start -c
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 📚 Documentation 📚
57
+
58
+ Check out the **[📝 full documentation](https://rn-nativeflow-docs.onrender.com/docs/getting-started)** for more details on usage, customization, and API references.
59
+
60
+ ---
61
+
62
+ ## 📝 License 📝
63
+
64
+ This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.
65
+
66
+ ---
67
+
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNativeSvg = require("react-native-svg");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ const Check = ({
10
+ size = 24,
11
+ color = '#000'
12
+ }) => {
13
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
14
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Svg, {
15
+ height: size,
16
+ viewBox: "0 -960 960 960",
17
+ width: size,
18
+ fill: color,
19
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
20
+ d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"
21
+ })
22
+ })
23
+ });
24
+ };
25
+ var _default = exports.default = Check;
26
+ //# sourceMappingURL=Check.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeSvg","require","_jsxRuntime","Check","size","color","jsx","Fragment","children","Svg","height","viewBox","width","fill","Path","d","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["assets/svg/Check.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAA6C,IAAAC,WAAA,GAAAD,OAAA;AAE7C,MAAME,KAAK,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAO,CAAC,KAAK;EAC7C,oBAAQ,IAAAH,WAAA,CAAAI,GAAA,EAAAJ,WAAA,CAAAK,QAAA;IAAAC,QAAA,eACJ,IAAAN,WAAA,CAAAI,GAAA,EAACN,eAAA,CAAAS,GAAG;MACAC,MAAM,EAAEN,IAAK;MACbO,OAAO,EAAC,gBAAgB;MACxBC,KAAK,EAAER,IAAK;MACZS,IAAI,EAAER,KAAM;MAAAG,QAAA,eAEZ,IAAAN,WAAA,CAAAI,GAAA,EAACN,eAAA,CAAAc,IAAI;QAAEC,CAAC,EAAC;MAAuD,CAAE;IAAC,CAClE;EAAC,CAER,CAAC;AACP,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcf,KAAK","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNativeSvg = require("react-native-svg");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ const X = ({
10
+ size = 24,
11
+ color = '#000'
12
+ }) => {
13
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Svg, {
14
+ height: size,
15
+ viewBox: "0 -960 960 960",
16
+ width: size,
17
+ fill: color,
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
19
+ d: "m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"
20
+ })
21
+ });
22
+ };
23
+ var _default = exports.default = X;
24
+ //# sourceMappingURL=X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeSvg","require","_jsxRuntime","X","size","color","jsx","Svg","height","viewBox","width","fill","children","Path","d","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["assets/svg/X.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAA6C,IAAAC,WAAA,GAAAD,OAAA;AAE7C,MAAME,CAAC,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAO,CAAC,KAAK;EACzC,oBACI,IAAAH,WAAA,CAAAI,GAAA,EAACN,eAAA,CAAAO,GAAG;IACAC,MAAM,EAAEJ,IAAK;IACbK,OAAO,EAAC,gBAAgB;IACxBC,KAAK,EAAEN,IAAK;IACZO,IAAI,EAAEN,KAAM;IAAAO,QAAA,eAEZ,IAAAV,WAAA,CAAAI,GAAA,EAACN,eAAA,CAAAa,IAAI;MAACC,CAAC,EAAC;IAAmG,CAAE;EAAC,CAC7G,CAAC;AAEd,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcd,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Check", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Check.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "X", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _X.default;
16
+ }
17
+ });
18
+ var _X = _interopRequireDefault(require("./X.js"));
19
+ var _Check = _interopRequireDefault(require("./Check.js"));
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_X","_interopRequireDefault","require","_Check","e","__esModule","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["assets/svg/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,EAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../StyledComponents/index.js");
10
+ var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
11
+ var _index2 = require("../../hooks/index.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ const AvatarImage = ({
15
+ size = 70,
16
+ source,
17
+ bg,
18
+ resizeMode = 'cover',
19
+ containerStyle,
20
+ imageStyle
21
+ }) => {
22
+ const theme = (0, _index2.useTheme)();
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
25
+ backgroundColor: bg ?? theme.colors.primary
26
+ // alignSelf='flex-start'
27
+ ,
28
+ height: (0, _ResponsiveCalculations.verticalScale)(size),
29
+ width: (0, _ResponsiveCalculations.verticalScale)(size),
30
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(size),
31
+ overflow: "hidden",
32
+ style: containerStyle,
33
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
34
+ source: source,
35
+ style: [{
36
+ height: '100%',
37
+ width: '100%'
38
+ }, imageStyle],
39
+ resizeMode: resizeMode
40
+ })
41
+ })
42
+ });
43
+ };
44
+ var _default = exports.default = AvatarImage;
45
+ //# sourceMappingURL=AvatarImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_ResponsiveCalculations","_index2","_jsxRuntime","e","__esModule","default","AvatarImage","size","source","bg","resizeMode","containerStyle","imageStyle","theme","useTheme","jsx","Fragment","children","StyledView","backgroundColor","colors","primary","height","verticalScale","width","borderRadius","overflow","style","Image","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Avatar/AvatarImage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAuC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIvC,MAAMG,WAAuC,GAAGA,CAAC;EAC7CC,IAAI,GAAG,EAAE;EACTC,MAAM;EACNC,EAAE;EACFC,UAAU,GAAG,OAAO;EACpBC,cAAc;EACdC;AACJ,CAAC,KAAK;EAEF,MAAMC,KAAU,GAAG,IAAAC,gBAAQ,EAAC,CAAC;EAE7B,oBAAQ,IAAAZ,WAAA,CAAAa,GAAA,EAAAb,WAAA,CAAAc,QAAA;IAAAC,QAAA,eACJ,IAAAf,WAAA,CAAAa,GAAA,EAAChB,MAAA,CAAAmB,UAAU;MACPC,eAAe,EAAEV,EAAE,IAAII,KAAK,CAACO,MAAM,CAACC;MACpC;MAAA;MACAC,MAAM,EAAE,IAAAC,qCAAa,EAAChB,IAAI,CAAE;MAC5BiB,KAAK,EAAE,IAAAD,qCAAa,EAAChB,IAAI,CAAE;MAC3BkB,YAAY,EAAE,IAAAF,qCAAa,EAAChB,IAAI,CAAE;MAClCmB,QAAQ,EAAC,QAAQ;MACjBC,KAAK,EAAEhB,cAAe;MAAAM,QAAA,eAEtB,IAAAf,WAAA,CAAAa,GAAA,EAACjB,YAAA,CAAA8B,KAAK;QACFpB,MAAM,EAAEA,MAAO;QACfmB,KAAK,EAAE,CAAC;UAAEL,MAAM,EAAE,MAAM;UAAEE,KAAK,EAAE;QAAO,CAAC,EAAEZ,UAAU,CAAE;QACvDF,UAAU,EAAEA;MAAW,CAC1B;IAAC,CACM;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAmB,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GACcC,WAAW","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _index = require("../StyledComponents/index.js");
9
+ var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
10
+ var _index2 = require("../../hooks/index.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ const AvatarText = ({
14
+ size = 70,
15
+ fs,
16
+ text = 'YH',
17
+ bg,
18
+ containerStyle,
19
+ textStyle
20
+ }) => {
21
+ text = text.slice(0, 2).toUpperCase();
22
+ const theme = (0, _index2.useTheme)();
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
25
+ bg: bg ?? theme.colors.primary
26
+ // alignSelf='flex-start'
27
+ ,
28
+ h: (0, _ResponsiveCalculations.verticalScale)(size),
29
+ w: (0, _ResponsiveCalculations.verticalScale)(size),
30
+ align: "center",
31
+ justify: "center",
32
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(size),
33
+ style: containerStyle,
34
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
35
+ secondary: true,
36
+ fw: "bold",
37
+ fs: fs ?? size / 3,
38
+ style: textStyle,
39
+ children: text
40
+ })
41
+ })
42
+ });
43
+ };
44
+ var _default = exports.default = AvatarText;
45
+ //# sourceMappingURL=AvatarText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_index","_ResponsiveCalculations","_index2","_jsxRuntime","e","__esModule","default","AvatarText","size","fs","text","bg","containerStyle","textStyle","slice","toUpperCase","theme","useTheme","jsx","Fragment","children","StyledView","colors","primary","h","verticalScale","w","align","justify","borderRadius","style","StyledText","secondary","fw","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Avatar/AvatarText.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAuC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIvC,MAAMG,UAAqC,GAAGA,CAAC;EAC3CC,IAAI,GAAG,EAAE;EACTC,EAAE;EACFC,IAAI,GAAG,IAAI;EACXC,EAAE;EACFC,cAAc;EACdC;AACJ,CAAC,KAAK;EACFH,IAAI,GAAGA,IAAI,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EACrC,MAAMC,KAAU,GAAG,IAAAC,gBAAQ,EAAC,CAAC;EAE7B,oBAAQ,IAAAd,WAAA,CAAAe,GAAA,EAAAf,WAAA,CAAAgB,QAAA;IAAAC,QAAA,eACJ,IAAAjB,WAAA,CAAAe,GAAA,EAAClB,MAAA,CAAAqB,UAAU;MACPV,EAAE,EAAEA,EAAE,IAAIK,KAAK,CAACM,MAAM,CAACC;MACvB;MAAA;MACAC,CAAC,EAAE,IAAAC,qCAAa,EAACjB,IAAI,CAAE;MACvBkB,CAAC,EAAE,IAAAD,qCAAa,EAACjB,IAAI,CAAE;MACvBmB,KAAK,EAAC,QAAQ;MACdC,OAAO,EAAC,QAAQ;MAChBC,YAAY,EAAE,IAAAJ,qCAAa,EAACjB,IAAI,CAAE;MAClCsB,KAAK,EAAElB,cAAe;MAAAQ,QAAA,eAEtB,IAAAjB,WAAA,CAAAe,GAAA,EAAClB,MAAA,CAAA+B,UAAU;QAACC,SAAS;QAACC,EAAE,EAAC,MAAM;QAACxB,EAAE,EAAEA,EAAE,IAAKD,IAAI,GAAG,CAAG;QAACsB,KAAK,EAAEjB,SAAU;QAAAO,QAAA,EAAEV;MAAI,CAAa;IAAC,CACnF;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAwB,QAAA,GAAAC,OAAA,CAAA7B,OAAA,GACcC,UAAU","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _AvatarImage = _interopRequireDefault(require("./AvatarImage.js"));
8
+ var _AvatarText = _interopRequireDefault(require("./AvatarText.js"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ const Avatar = {
11
+ Image: _AvatarImage.default,
12
+ Text: _AvatarText.default
13
+ };
14
+ var _default = exports.default = Avatar;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_AvatarImage","_interopRequireDefault","require","_AvatarText","e","__esModule","default","Avatar","Image","AvatarImage","Text","AvatarText","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Avatar/index.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAsC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AACtC,MAAMG,MAAM,GAAG;EACXC,KAAK,EAAEC,oBAAW;EAClBC,IAAI,EAAEC;AACV,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAP,OAAA,GAGaC,MAAM","ignoreList":[]}
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
10
+ var _index = require("../StyledComponents/index.js");
11
+ var _index2 = require("../../hooks/index.js");
12
+ var _utils = require("./utils.js");
13
+ var _TouchableRipple = _interopRequireDefault(require("../TouchableRipple/TouchableRipple.js"));
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ const Button = ({
17
+ variant = 'contained',
18
+ type = 'flat',
19
+ fullWidth = false,
20
+ paddingH = 19,
21
+ paddingV = 14,
22
+ bg,
23
+ br = 5,
24
+ stroke = 1,
25
+ strokeColor,
26
+ titleColor,
27
+ title = 'Button',
28
+ titleFS,
29
+ titleVariant = 'h5',
30
+ titleFF,
31
+ size = 50,
32
+ rippleColor,
33
+ renderIcon,
34
+ renderLeftIcon,
35
+ renderRightIcon,
36
+ disabled = false,
37
+ buttonContainerStyle,
38
+ textStyle,
39
+ onPress,
40
+ ...props
41
+ }) => {
42
+ const theme = (0, _index2.useTheme)();
43
+ const {
44
+ backgroundColor,
45
+ buttonTextColor,
46
+ buttonBorderColor,
47
+ buttonIconColor
48
+ } = (0, _utils.getButtonColors)({
49
+ theme,
50
+ variant,
51
+ bg,
52
+ titleColor,
53
+ strokeColor,
54
+ disabled
55
+ });
56
+ const STYLES = _reactNative.StyleSheet.create({
57
+ BUTTON_CONT: {
58
+ backgroundColor: backgroundColor,
59
+ borderWidth: variant === 'contained' ? 0 : stroke,
60
+ borderColor: buttonBorderColor,
61
+ maxWidth: '100%'
62
+ },
63
+ BUTTON_TEXT: {
64
+ color: buttonTextColor,
65
+ textAlign: 'center',
66
+ fontFamily: titleFF ?? ''
67
+ },
68
+ FLAT_BTN_CONT: {
69
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(br),
70
+ overflow: 'hidden',
71
+ alignSelf: fullWidth ? 'stretch' : 'flex-start'
72
+ },
73
+ FLAT_BUTTON_CONT: {
74
+ paddingVertical: (0, _ResponsiveCalculations.verticalScale)(paddingV),
75
+ paddingHorizontal: (0, _ResponsiveCalculations.horizontalScale)(!fullWidth ? paddingH : 30),
76
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(br),
77
+ flexDirection: 'row',
78
+ alignItems: 'center',
79
+ justifyContent: 'space-between',
80
+ gap: (0, _ResponsiveCalculations.horizontalScale)(10)
81
+ },
82
+ ROUND_BUTTON_CONT: {
83
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(100),
84
+ height: (0, _ResponsiveCalculations.verticalScale)(size),
85
+ width: (0, _ResponsiveCalculations.verticalScale)(size),
86
+ alignItems: 'center',
87
+ justifyContent: 'center'
88
+ }
89
+ });
90
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
91
+ children: [type === 'flat' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
92
+ style: STYLES.FLAT_BTN_CONT,
93
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TouchableRipple.default, {
94
+ onPress: onPress,
95
+ rippleColor: rippleColor,
96
+ disabled: disabled
97
+ // ref={ref}
98
+ ,
99
+ ...props,
100
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.StyledView, {
101
+ style: [STYLES.FLAT_BUTTON_CONT, STYLES.BUTTON_CONT, buttonContainerStyle],
102
+ children: [(renderLeftIcon || fullWidth && renderRightIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
103
+ f: fullWidth ? 1 : undefined,
104
+ children: renderLeftIcon && /*#__PURE__*/_react.default.cloneElement(renderLeftIcon, {
105
+ color: buttonIconColor
106
+ })
107
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
108
+ flexShrink: 1,
109
+ f: fullWidth ? 8 : undefined,
110
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
111
+ numberOfLines: 1,
112
+ fs: titleFS,
113
+ variant: titleVariant,
114
+ style: [STYLES.BUTTON_TEXT, textStyle],
115
+ children: title
116
+ })
117
+ }), (renderRightIcon || fullWidth && renderLeftIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
118
+ alignItems: "flex-end",
119
+ f: fullWidth ? 1 : undefined,
120
+ children: renderRightIcon && /*#__PURE__*/_react.default.cloneElement(renderRightIcon, {
121
+ color: buttonIconColor
122
+ })
123
+ })]
124
+ })
125
+ })
126
+ }), type === 'round' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
127
+ alignSelf: "flex-start",
128
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(100),
129
+ overflow: "hidden",
130
+ style: {
131
+ overflow: 'hidden',
132
+ borderRadius: (0, _ResponsiveCalculations.verticalScale)(100),
133
+ alignSelf: 'flex-start'
134
+ },
135
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TouchableRipple.default, {
136
+ onPress: onPress,
137
+ rippleColor: rippleColor,
138
+ ...props,
139
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
140
+ style: [STYLES.BUTTON_CONT, STYLES.ROUND_BUTTON_CONT, buttonContainerStyle],
141
+ children: renderIcon
142
+ })
143
+ })
144
+ })]
145
+ });
146
+ };
147
+ var _default = exports.default = Button;
148
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ResponsiveCalculations","_index","_index2","_utils","_TouchableRipple","_jsxRuntime","e","__esModule","default","Button","variant","type","fullWidth","paddingH","paddingV","bg","br","stroke","strokeColor","titleColor","title","titleFS","titleVariant","titleFF","size","rippleColor","renderIcon","renderLeftIcon","renderRightIcon","disabled","buttonContainerStyle","textStyle","onPress","props","theme","useTheme","backgroundColor","buttonTextColor","buttonBorderColor","buttonIconColor","getButtonColors","STYLES","StyleSheet","create","BUTTON_CONT","borderWidth","borderColor","maxWidth","BUTTON_TEXT","color","textAlign","fontFamily","FLAT_BTN_CONT","borderRadius","verticalScale","overflow","alignSelf","FLAT_BUTTON_CONT","paddingVertical","paddingHorizontal","horizontalScale","flexDirection","alignItems","justifyContent","gap","ROUND_BUTTON_CONT","height","width","jsxs","Fragment","children","jsx","StyledView","style","f","undefined","React","cloneElement","flexShrink","StyledText","numberOfLines","fs","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Button/Button.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAiE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIjE,MAAMG,MAA6B,GAAGA,CAAC;EACnCC,OAAO,GAAG,WAAW;EACrBC,IAAI,GAAG,MAAM;EACbC,SAAS,GAAG,KAAK;EACjBC,QAA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AAAjE,WAAA,CAAAkE,GAAA,EAACnE,gBAAA,CAAAI,OAAe;QACZwB,OAAO,EAAEA,OAAQ;QACjBP,WAAW,EAAEA,WAAY;QAAA,GACrBQ,KAAK;QAAAqC,QAAA,eAET,IAAAjE,WAAA,CAAAkE,GAAA,EAACtE,MAAA,CAAAuE,UAAU;UACPC,KAAK,EAAE,CAAChC,MAAM,CAACG,WAAW,EAAEH,MAAM,CAACwB,iBAAiB,EAAEnC,oBAAoB,CAAE;UAAAwC,QAAA,EAE3E5C;QAAU,CACH;MAAC,CACA;IAAC,CACV,CACf;EAAA,CACH,CAAC;AAEX,CAAC;AAAC,IAAAwD,QAAA,GAAAC,OAAA,CAAA3E,OAAA,GAEaC,MAAM","ignoreList":[]}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getButtonColors = void 0;
7
+ const getButtonBorderColor = ({
8
+ theme,
9
+ strokeColor,
10
+ disabled
11
+ }) => {
12
+ if (disabled) {
13
+ return theme.colors.outline;
14
+ }
15
+ if (strokeColor) {
16
+ return strokeColor;
17
+ }
18
+ return theme.colors.outline;
19
+ };
20
+ const getButtonTextColor = ({
21
+ theme,
22
+ checkVariant,
23
+ titleColor,
24
+ disabled
25
+ }) => {
26
+ if (disabled) {
27
+ return theme.colors.textDisable;
28
+ } else if (titleColor) {
29
+ return titleColor;
30
+ } else if (checkVariant('outlined')) {
31
+ return theme.colors.textPrimary;
32
+ }
33
+ return theme.colors.textSecondary;
34
+ };
35
+ const getButtonBackgroundColor = ({
36
+ theme,
37
+ checkVariant,
38
+ bg,
39
+ disabled
40
+ }) => {
41
+ if (disabled) {
42
+ return theme.colors.disable;
43
+ } else if (bg) {
44
+ return bg;
45
+ } else if (checkVariant('contained')) {
46
+ return theme.colors.primary;
47
+ } else if (checkVariant('outlined')) {
48
+ return 'transparent';
49
+ }
50
+ return theme.colors.primary;
51
+ };
52
+ const getButtonIconColor = ({
53
+ theme,
54
+ checkVariant,
55
+ disabled
56
+ }) => {
57
+ if (disabled) {
58
+ return theme.colors.iconDisable;
59
+ } else if (checkVariant('outlined')) {
60
+ return theme.colors.iconPrimary;
61
+ }
62
+ return theme.colors.iconSecondary;
63
+ };
64
+ const getButtonColors = ({
65
+ theme,
66
+ variant,
67
+ bg,
68
+ titleColor,
69
+ strokeColor,
70
+ disabled
71
+ }) => {
72
+ const checkVariant = variantToCompare => {
73
+ return variant === variantToCompare;
74
+ };
75
+ const backgroundColor = getButtonBackgroundColor({
76
+ theme,
77
+ checkVariant,
78
+ bg,
79
+ disabled
80
+ });
81
+ const buttonTextColor = getButtonTextColor({
82
+ theme,
83
+ checkVariant,
84
+ titleColor,
85
+ disabled
86
+ });
87
+ const buttonBorderColor = getButtonBorderColor({
88
+ theme,
89
+ strokeColor,
90
+ disabled
91
+ });
92
+ const buttonIconColor = getButtonIconColor({
93
+ checkVariant,
94
+ theme,
95
+ disabled
96
+ });
97
+ return {
98
+ backgroundColor,
99
+ buttonTextColor,
100
+ buttonBorderColor,
101
+ buttonIconColor
102
+ };
103
+ };
104
+ exports.getButtonColors = getButtonColors;
105
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getButtonBorderColor","theme","strokeColor","disabled","colors","outline","getButtonTextColor","checkVariant","titleColor","textDisable","textPrimary","textSecondary","getButtonBackgroundColor","bg","disable","primary","getButtonIconColor","iconDisable","iconPrimary","iconSecondary","getButtonColors","variant","variantToCompare","backgroundColor","buttonTextColor","buttonBorderColor","buttonIconColor","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Button/utils.ts"],"mappings":";;;;;;AAGA,MAAMA,oBAAoB,GAAGA,CAAC;EAC1BC,KAAK;EACLC,WAAW;EACXC;AAKJ,CAAC,KAAK;EACF,IAAIA,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACG,MAAM,CAACC,OAAO;EAC/B;EACA,IAAIH,WAAW,EAAE;IACb,OA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