@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
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet, ScrollView } from 'react-native';
3
+ import { moderateScale } from '../../helpers/ResponsiveCalculations';
4
+ import type { DialogBodyProps } from '../../types';
5
+
6
+
7
+ interface props extends DialogBodyProps {
8
+ variant?: 'classic' | 'default';
9
+ }
10
+
11
+ const DialogBody: React.FC<props> = ({
12
+ variant,
13
+ scrollEnable = true,
14
+ containerStyle,
15
+ children,
16
+ }) => {
17
+ const STYLES = StyleSheet.create({
18
+ CONTAINER: {
19
+ paddingVertical: variant == 'default' ? moderateScale(16) : 0,
20
+ paddingHorizontal: moderateScale(variant == 'default' ? 16 : 25),
21
+ gap: 20,
22
+ },
23
+ });
24
+ return (<>
25
+
26
+ <ScrollView scrollEnabled={scrollEnable}>
27
+ <View style={[STYLES.CONTAINER, containerStyle]} pointerEvents='box-none'>
28
+ {children}
29
+ </View>
30
+ </ScrollView>
31
+ </>);
32
+ }
33
+ export default DialogBody;
34
+ export type { DialogBodyProps };
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet } from 'react-native';
3
+ import { moderateVerticalScale } from '../../helpers/ResponsiveCalculations';
4
+ import { StyledText } from '../StyledComponents';
5
+ import type { DialogDescriptionProps } from '../../types';
6
+
7
+ const DialogDescription: React.FC<DialogDescriptionProps> = ({
8
+ fs,
9
+ textVariant = 'h5',
10
+ containerStyle,
11
+ textStyle,
12
+ children,
13
+ }) => {
14
+ const STYLES = StyleSheet.create({
15
+ TEXT: {
16
+ color: '#a1a1aa',
17
+ lineHeight: moderateVerticalScale(13)
18
+ }
19
+ });
20
+ return (<>
21
+
22
+ <View style={containerStyle}>
23
+ <StyledText style={[STYLES.TEXT, textStyle]} variant={textVariant} fs={fs}>{children}</StyledText>
24
+ </View>
25
+ </>);
26
+ }
27
+ export default DialogDescription;
28
+ export type { DialogDescriptionProps };
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { StyleSheet } from 'react-native';
3
+ import Stack from '../Stack';
4
+ import { moderateScale } from '../../helpers/ResponsiveCalculations';
5
+ import type { DialogFootProps } from '../../types';
6
+
7
+
8
+ interface props extends DialogFootProps {
9
+ variant?: 'classic' | 'default';
10
+ }
11
+
12
+ const DialogFoot: React.FC<props> = ({
13
+ variant,
14
+ containerStyle,
15
+ children
16
+ }) => {
17
+
18
+ const STYLES = StyleSheet.create({
19
+ CONTAINER: {
20
+ borderTopWidth: variant === 'default' ? 0.7 : 0,
21
+ borderColor: '#d4d4d4',
22
+ padding: moderateScale(variant === 'default' ? 16 : 20),
23
+ paddingHorizontal: moderateScale(variant === 'default' ? 16 : 25),
24
+ justifyContent: 'flex-end',
25
+ gap: moderateScale(15)
26
+ },
27
+ });
28
+ return (<>
29
+ <Stack.H justify='flex-end' gap={moderateScale(15)} containerStyle={[STYLES.CONTAINER, containerStyle]}>
30
+ {children}
31
+ </Stack.H>
32
+ </>);
33
+ }
34
+ export default DialogFoot;
35
+ export type { DialogFootProps };
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet, TouchableOpacity } from 'react-native';
3
+ import { moderateScale } from '../../helpers/ResponsiveCalculations';
4
+ import { X } from '../../assets/svg';
5
+ import { StyledText } from '../StyledComponents';
6
+ import type { DialogHeadProps } from '../../types';
7
+
8
+
9
+ interface props extends DialogHeadProps {
10
+ variant?: 'classic' | 'default';
11
+ }
12
+
13
+ const DialogHead: React.FC<props> = ({
14
+ variant = 'default',
15
+ title = 'Title',
16
+ textVariant = 'h4',
17
+ fs,
18
+ containerStyle,
19
+ textStyle,
20
+ children
21
+ }) => {
22
+ const STYLES = StyleSheet.create({
23
+ CONTAINER: {
24
+ borderBottomWidth: variant == 'default' ? 0.7 : 0,
25
+ borderColor: '#d4d4d4',
26
+ padding: moderateScale(variant === 'default' ? 16 : 25),
27
+ paddingBottom: moderateScale(16),
28
+ justifyContent: 'space-between',
29
+ flexDirection: 'row',
30
+ },
31
+ HEADER_TEXT: {
32
+ // fontSize: responsiveFontSize(15),
33
+ fontWeight: 'bold',
34
+ color: '#000',
35
+ }
36
+ });
37
+ return (<>
38
+
39
+ <View style={[STYLES.CONTAINER, containerStyle]}>
40
+ <View>
41
+ <StyledText style={[STYLES.HEADER_TEXT, textStyle]} fs={fs} variant={textVariant}>{title}</StyledText>
42
+ {children}
43
+ </View>
44
+ <TouchableOpacity>
45
+ <X color='gray' size={moderateScale(20)} />
46
+ </TouchableOpacity>
47
+ </View>
48
+ </>);
49
+ }
50
+ export default DialogHead;
51
+ export type { DialogHeadProps };
@@ -0,0 +1,11 @@
1
+ export { default as Dialog } from './Dialog';
2
+ export { default as DialogHead } from './DialogHead';
3
+ export { default as DialogBody } from './DialogBody';
4
+ export { default as DialogFoot } from './DialogFoot';
5
+ export { default as DialogDescription } from './DialogDescription';
6
+
7
+ export type { DialogProps } from './Dialog';
8
+ export type { DialogHeadProps } from './DialogHead';
9
+ export type { DialogBodyProps } from './DialogBody';
10
+ export type { DialogFootProps } from './DialogFoot';
11
+ export type { DialogDescriptionProps } from './DialogDescription';
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { StyleSheet } from "react-native";
3
+ import type { ViewStyle, StyleProp } from "react-native";
4
+ import { StyledView } from '../StyledComponents';
5
+ import { useTheme } from '../../hooks';
6
+
7
+
8
+ type DividerProps = {
9
+ thickness?: number;
10
+ style?: StyleProp<ViewStyle>
11
+ color?: string;
12
+ }
13
+
14
+ const Divider: React.FC<DividerProps> = ({
15
+ thickness = 0.2,
16
+ // color = '#DCDBDB',
17
+ color,
18
+ style
19
+ }) => {
20
+
21
+ const theme = useTheme();
22
+
23
+ const STYLES = StyleSheet.create({
24
+ CONTAINER: {
25
+ borderWidth: thickness,
26
+ borderColor: color ?? theme?.colors.dividerColor
27
+ }
28
+ });
29
+
30
+ return (<>
31
+ <StyledView style={[STYLES.CONTAINER, style]} />
32
+ </>);
33
+ };
34
+ export default Divider;
35
+ export type { DividerProps };
@@ -0,0 +1,61 @@
1
+ import React, { useMemo } from 'react';
2
+ import { View, StyleSheet } from "react-native";
3
+ import { getGridValue } from '../../helpers';
4
+ import { useConditionalWindowDimension } from '../../hooks';
5
+ import type { GridProps } from '../../types';
6
+
7
+ const Grid: React.FC<GridProps> = ({
8
+ container = false,
9
+ item = false,
10
+ spacing = 0,
11
+ spacingH = 0,
12
+ spacingV = 0,
13
+ size = 12,
14
+ xs = 12,
15
+ sm = 0,
16
+ md = 0,
17
+ lg = 0,
18
+ xl = 0,
19
+ containerStyle,
20
+ children,
21
+ ...rest
22
+ }) => {
23
+ container = !item;
24
+ xs = Math.min(xs, 12);
25
+ sm = Math.min(sm, 12);
26
+ md = Math.min(md, 12);
27
+ lg = Math.min(lg, 12);
28
+ xl = Math.min(xl, 12);
29
+
30
+ const { width: windowWidth } = useConditionalWindowDimension(item);
31
+
32
+ const calculatedGridValue: number = item ? useMemo(() => getGridValue({
33
+ xs,
34
+ sm,
35
+ md,
36
+ lg,
37
+ xl,
38
+ }, windowWidth), [windowWidth, xs, sm, md, lg, xl]) : 12;
39
+
40
+ const STYLES = StyleSheet.create({
41
+ MAIN_CONT: {
42
+ width: item ? `${((calculatedGridValue / size) * 100)}%` : "100%",
43
+ flexDirection: 'row',
44
+ flexWrap: container ? 'wrap' : 'nowrap',
45
+ paddingHorizontal: spacingH,
46
+ paddingVertical: spacingV,
47
+ gap: spacing,
48
+ // flexShrink:1
49
+ },
50
+ });
51
+ return (<>
52
+ <View
53
+ style={[STYLES.MAIN_CONT, containerStyle]}
54
+ {...rest}
55
+ >
56
+ {children}
57
+ </View>
58
+ </>);
59
+ };
60
+ export default Grid;
61
+ export type { GridProps };
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet, TouchableOpacity } from 'react-native';
3
+ import { moderateScale, moderateVerticalScale, responsiveFontSize } from '../../helpers/ResponsiveCalculations';
4
+ import { StyledText } from '../StyledComponents';
5
+ import { DefaultTheme } from '../../constants/theme';
6
+
7
+ type HeaderProps = {
8
+ title?: string;
9
+ titleSize?: number;
10
+ titleColor?: string;
11
+ titleAlignment?: "center" | "auto" | "left" | "right" | "justify";
12
+ bg?: string;
13
+ renderRightIcon?: () => JSX.Element;
14
+ renderLeftIcon?: () => JSX.Element;
15
+ isBack?: boolean;
16
+ }
17
+
18
+ const Header: React.FC<HeaderProps> = ({
19
+ title = 'Header',
20
+ titleSize = 13,
21
+ titleColor = DefaultTheme.TEXT_TARTARY_COLOR,
22
+ titleAlignment = 'center',
23
+ bg = '#000',
24
+ renderRightIcon,
25
+ renderLeftIcon,
26
+ }) => {
27
+
28
+ const Styles = StyleSheet.create({
29
+ MAIN_CONT: {
30
+ flexDirection: 'row',
31
+ justifyContent: 'space-between',
32
+ alignItems: 'center',
33
+ paddingVertical: moderateVerticalScale(13),
34
+ paddingHorizontal: moderateScale(10),
35
+ backgroundColor: bg,
36
+ gap: moderateScale(10)
37
+ },
38
+ TEXT: {
39
+ fontSize: titleSize && responsiveFontSize(titleSize),
40
+ textAlign: titleAlignment,
41
+ color: titleColor
42
+ // fontFamily: FONTS_STYLES.POPPINS_SEMI_BOLD
43
+ },
44
+ RIGHT_ICON: {
45
+ flexGrow: renderRightIcon && 0.1
46
+ },
47
+ LEFT_ICON: {
48
+ flexGrow: renderLeftIcon && 0.1,
49
+ alignItems: 'flex-end'
50
+ }
51
+ });
52
+
53
+ // const navigation = useNavigation();
54
+
55
+ return (<>
56
+ <View style={Styles.MAIN_CONT}>
57
+ <View style={Styles.RIGHT_ICON}>
58
+ {renderLeftIcon &&
59
+ <TouchableOpacity
60
+ // onPress={() => navigation.goBack()}
61
+ >
62
+ {
63
+ renderLeftIcon()
64
+ }
65
+ </TouchableOpacity>
66
+ }
67
+ </View>
68
+ <View style={{ flex: 1 }}>
69
+ <StyledText primary style={Styles.TEXT} tas>{title}</StyledText>
70
+ </View>
71
+ <View style={Styles.LEFT_ICON}>
72
+ {
73
+ renderRightIcon &&
74
+ renderRightIcon()
75
+ }
76
+ </View>
77
+ </View>
78
+ </>);
79
+ }
80
+ export default Header;
81
+ export type { HeaderProps };
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { verticalScale } from "../../helpers/ResponsiveCalculations";
3
+ import { useTheme } from "../../hooks";
4
+
5
+
6
+ type IconProps = {
7
+ renderIcon: JSX.Element;
8
+ color?: string;
9
+ }
10
+
11
+ const Icon: React.FC<IconProps> = ({
12
+ renderIcon,
13
+ color
14
+ }) => {
15
+ const theme = useTheme(!color && !renderIcon?.props.color);
16
+
17
+ return (<>
18
+ {React.cloneElement(renderIcon as React.ReactElement<any>,
19
+ {
20
+ ...renderIcon?.props,
21
+ size: verticalScale(renderIcon?.props?.size ?? 15),
22
+ color: color ?? (renderIcon?.props.color ?? theme?.colors.iconPrimary)
23
+ }
24
+ )}
25
+ </>)
26
+ }
27
+ export default Icon;
28
+ export type { IconProps };
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import type { ReactNode } from "react";
3
+ import type { PressableProps } from "react-native";
4
+ import { StyledView } from "../StyledComponents";
5
+ import TouchableRipple from "../TouchableRipple/TouchableRipple";
6
+ import Icon from "../Icon/Icon";
7
+ import { verticalScale } from "../../helpers/ResponsiveCalculations";
8
+
9
+
10
+ type IconButtonProps = PressableProps & {
11
+ rippleColor?: string;
12
+ children?: ReactNode;
13
+ }
14
+
15
+ const IconButton: React.FC<IconButtonProps> = ({
16
+ rippleColor,
17
+ children,
18
+ ...rest
19
+ }) => {
20
+
21
+ return (<>
22
+ <StyledView style={{ alignSelf: 'flex-start' }}>
23
+ <TouchableRipple
24
+ rippleColor={rippleColor}
25
+ style={{ borderRadius: 100, padding: verticalScale(8) }}
26
+ {...rest}
27
+ >
28
+ <Icon
29
+ renderIcon={React.cloneElement(children as React.ReactElement<any>)}
30
+ />
31
+ </TouchableRipple>
32
+ </StyledView>
33
+ </>)
34
+ }
35
+ export default IconButton;
36
+ export type { IconButtonProps };
@@ -0,0 +1,31 @@
1
+ import type React from "react";
2
+ import { StyledText } from "../StyledComponents";
3
+ import { Linking, TouchableOpacity } from "react-native";
4
+ import { useCallback } from "react";
5
+
6
+
7
+ type props = {
8
+ title: string;
9
+ href: string;
10
+ }
11
+
12
+ const Link: React.FC<props> = ({
13
+ title = '',
14
+ href
15
+ }) => {
16
+ const onUserPress = useCallback(async () => {
17
+ const supported = await Linking.canOpenURL(href);
18
+ if (supported) {
19
+ await Linking.openURL(href);
20
+ }
21
+ }, []);
22
+ return (<>
23
+ <TouchableOpacity onPress={onUserPress}>
24
+ <StyledText variant='h5' color='#0000FF'
25
+ style={{ includeFontPadding: false, alignItems: 'baseline', borderBottomColor: '#0000FF', borderBottomWidth: 1, alignSelf: 'flex-start', padding: 0, margin: 0, lineHeight: undefined, flexShrink: 1, textAlignVertical: 'bottom', }}
26
+ >{title}</StyledText>
27
+ </TouchableOpacity>
28
+ </>)
29
+ }
30
+
31
+ export default Link;
@@ -0,0 +1,139 @@
1
+ import React, { useState, useRef, useCallback, useEffect, } from "react";
2
+ import { StyleSheet, Pressable, View, ScrollView } from "react-native";
3
+ import { StyledView } from "../StyledComponents";
4
+ import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
5
+ import Portal from "../Portal/Portal";
6
+ import { positionCalculations } from "./calculations";
7
+ import type { menuLayoutTypes, anchorLayoutTypes } from "./calculations";
8
+ import { horizontalScale, verticalScale } from "../../helpers/ResponsiveCalculations";
9
+ import type { MenuProps } from "../../types";
10
+
11
+ const Menu: React.FC<MenuProps> = ({
12
+ placement = 'top',
13
+ anchor,
14
+ disableBuiltInState = false,
15
+ isOpen = false,
16
+ onRequestOpen,
17
+ onRequestClose,
18
+ onSelect,
19
+ style,
20
+ children
21
+ }) => {
22
+
23
+ const [isVisible, setIsVisible] = useState<boolean>(false);
24
+ const anchorLayoutRef = useRef<anchorLayoutTypes>({ pageY: 0, pageX: 0, height: 0, width: 0 });
25
+ const menuLayoutRef = useRef<menuLayoutTypes>({ height: 0, width: 0 });
26
+ const buttonRef = useRef<View | null>(null);
27
+ const scaleSharedValue = useSharedValue(0.5);
28
+ const positions = (useCallback(() => (positionCalculations(anchorLayoutRef.current, menuLayoutRef.current, placement)), [menuLayoutRef, anchorLayoutRef, placement]))();
29
+
30
+ useEffect(() => {
31
+ if ((disableBuiltInState && isOpen) || isVisible) {
32
+ scaleSharedValue.value = withTiming(1, { duration: 150 });
33
+ } else {
34
+ scaleSharedValue.value = 0;
35
+ }
36
+ }, [isOpen, isVisible]);
37
+
38
+ const measureLayout = useCallback(() => {
39
+ return new Promise((resolve) => {
40
+ buttonRef.current?.measure((_x, _y, width, height, pageX, pageY) => {
41
+ anchorLayoutRef.current = { pageY, pageX, height, width };
42
+ resolve(true);
43
+ });
44
+ });
45
+ }, []);
46
+
47
+ const onOpen = async () => {
48
+ await measureLayout();
49
+ if (disableBuiltInState) {
50
+ onRequestOpen?.();
51
+ } else {
52
+ setIsVisible(true);
53
+ }
54
+ }
55
+
56
+ const onClose = () => {
57
+ if (disableBuiltInState) {
58
+ onRequestClose?.();
59
+ } else {
60
+ setIsVisible(false);
61
+ }
62
+ }
63
+
64
+ const renderChildren = (useCallback(() => {
65
+ return (<ScrollView>
66
+ {React.Children?.toArray(children).map((e) => {
67
+ return React.cloneElement(e as React.ReactElement, {
68
+ onPress: () => {
69
+ (e as React.ReactElement)?.props?.onPress?.();
70
+ onSelect?.((e as React.ReactElement)?.props?.name);
71
+ onClose();
72
+ }
73
+ });
74
+ })}
75
+ </ScrollView>)
76
+
77
+ }, [children]))();
78
+
79
+ const scale: number = disableBuiltInState ? Number(isOpen) : Number(isVisible);
80
+ const pointerEvent = (isVisible && !disableBuiltInState) || (isOpen && disableBuiltInState) ? 'auto' : 'none';
81
+
82
+ const STYLES = StyleSheet.create({
83
+ CONTAINER: {
84
+ // width: horizontalScale(130),
85
+ shadowColor: "#000",
86
+ backgroundColor: '#fff',
87
+ shadowOffset: {
88
+ width: 0,
89
+ height: 2,
90
+ },
91
+ shadowOpacity: 0.23,
92
+ shadowRadius: 2.62,
93
+ elevation: 4,
94
+ position: 'absolute',
95
+ left: positions.left,
96
+ top: positions.top,
97
+ borderRadius: 5,
98
+ maxHeight: 400,
99
+ minWidth: horizontalScale(150),
100
+ paddingVertical: verticalScale(5)
101
+ }
102
+ });
103
+
104
+ const menuAnimatedStyle = useAnimatedStyle(() => {
105
+ return {
106
+ transform: [{ scale: scaleSharedValue.value }],
107
+ opacity: scaleSharedValue.value
108
+ }
109
+ });
110
+
111
+ return (<>
112
+
113
+ <Portal
114
+ name='Menu'
115
+ >
116
+ <Pressable
117
+ style={[StyleSheet.absoluteFill, { transform: [{ scale }] }]}
118
+ pointerEvents={pointerEvent}
119
+ onPress={onClose}>
120
+ <Animated.View
121
+ onStartShouldSetResponder={() => true}
122
+ style={[STYLES.CONTAINER, menuAnimatedStyle, style]}
123
+ onLayout={({ nativeEvent: { layout: { height, width } } }) => menuLayoutRef.current = { width, height }}
124
+ >
125
+ {renderChildren}
126
+ </Animated.View>
127
+ </Pressable>
128
+ </Portal>
129
+
130
+ <StyledView alignItems='flex-start'>
131
+ <View ref={buttonRef} onLayout={measureLayout}>
132
+ {anchor && React.cloneElement(anchor, { onPress: onOpen })}
133
+ </View>
134
+ </StyledView>
135
+
136
+ </>)
137
+ }
138
+ export default Menu;
139
+ export type { MenuProps };
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import { TouchableOpacity } from "react-native";
3
+ import { StyledView } from "../StyledComponents";
4
+ import { horizontalScale, moderateScale, verticalScale } from "../../helpers/ResponsiveCalculations";
5
+ import type { MenuItemProps } from "../../types";
6
+
7
+ const MenuItem: React.FC<MenuItemProps> = ({
8
+ // paddingV = 12,
9
+ // paddingH = 12,
10
+ paddingV = 11,
11
+ paddingH = 17,
12
+ gap = 12,
13
+ style,
14
+ children,
15
+ ...rest
16
+ }) => {
17
+
18
+ return (<>
19
+ <TouchableOpacity
20
+ {...rest}
21
+ >
22
+ <StyledView
23
+ paddingHorizontal={horizontalScale(paddingH)}
24
+ paddingVertical={verticalScale(paddingV)}
25
+ flexDirection='row'
26
+ align="center"
27
+ gap={moderateScale(gap)}
28
+ style={style}
29
+ >
30
+ {children}
31
+ </StyledView>
32
+ </TouchableOpacity>
33
+ </>)
34
+ }
35
+ export default MenuItem;
36
+ export type { MenuItemProps };
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { StyledText } from "../StyledComponents";
3
+ import type { MenuItemLabelProps } from "../../types";
4
+
5
+ const MenuItemLabel: React.FC<MenuItemLabelProps> = ({
6
+ fs,
7
+ style,
8
+ children,
9
+ textVariant = 'h5',
10
+ ...rest
11
+ }) => {
12
+
13
+ return (<>
14
+ <StyledText
15
+ fs={fs}
16
+ variant={textVariant}
17
+ color="#000"
18
+ numberOfLines={1}
19
+ flexShrink={1}
20
+ {...rest}
21
+ >
22
+ {children}
23
+ </StyledText>
24
+ </>)
25
+ }
26
+ export default MenuItemLabel;
27
+ export type { MenuItemLabelProps };
@@ -0,0 +1,34 @@
1
+ export type anchorLayoutTypes = {
2
+ pageY: number;
3
+ pageX: number;
4
+ height: number;
5
+ width: number;
6
+ }
7
+ export type menuLayoutTypes = {
8
+ height: number;
9
+ width: number;
10
+ }
11
+
12
+ const positionCalculations = ((anchorLayoutRef: anchorLayoutTypes, menuLayoutRef: menuLayoutTypes, placement: any) => {
13
+ let positionValues = { top: 0, bottom: 0, left: 0, right: 0 };
14
+
15
+ if (anchorLayoutRef.pageX < menuLayoutRef.width) {
16
+ positionValues.left = anchorLayoutRef.pageX + anchorLayoutRef.width;
17
+ } else {
18
+ positionValues.left = anchorLayoutRef.pageX - menuLayoutRef.width;
19
+ }
20
+ // else if (anchorLayoutRef.current.pageX + menuLayoutRef.current.width > SCREEN_WIDTH) {
21
+ // positionValues.left = anchorLayoutRef.current.pageX - menuLayoutRef.current.width;
22
+ // }
23
+
24
+ if (placement === 'top') {
25
+ positionValues.top = anchorLayoutRef.pageY;
26
+ } else if (placement === 'bottom') {
27
+ positionValues.top = (anchorLayoutRef.pageY - menuLayoutRef.height) + anchorLayoutRef.height;
28
+ }
29
+ return positionValues;
30
+ });
31
+
32
+ export {
33
+ positionCalculations,
34
+ }
@@ -0,0 +1,8 @@
1
+ export { default as Menu } from './Menu';
2
+ export { default as MenuItem } from './MenuItem';
3
+ export { default as MenuItemLabel } from './MenuItemLabel';
4
+
5
+
6
+ export type { MenuProps } from './Menu';
7
+ export type { MenuItemProps } from './MenuItem';
8
+ export type { MenuItemLabelProps } from './MenuItemLabel';