@nexara/nativeflow 0.1.6 → 0.1.8

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 (525) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/Avatar/AvatarImage.js +3 -9
  3. package/lib/commonjs/components/Avatar/AvatarImage.js.map +1 -1
  4. package/lib/commonjs/components/Avatar/AvatarText.js +2 -4
  5. package/lib/commonjs/components/Avatar/AvatarText.js.map +1 -1
  6. package/lib/commonjs/components/Button/Button.js +24 -23
  7. package/lib/commonjs/components/Button/Button.js.map +1 -1
  8. package/lib/commonjs/components/Button/utils.js +34 -27
  9. package/lib/commonjs/components/Button/utils.js.map +1 -1
  10. package/lib/commonjs/components/CheckBox/CheckBox.js +43 -39
  11. package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
  12. package/lib/commonjs/components/Chip/Chip.js +21 -25
  13. package/lib/commonjs/components/Chip/Chip.js.map +1 -1
  14. package/lib/commonjs/components/Chip/utils.js +31 -18
  15. package/lib/commonjs/components/Chip/utils.js.map +1 -1
  16. package/lib/commonjs/components/Dialog/Dialog.js +14 -10
  17. package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
  18. package/lib/commonjs/components/Dialog/DialogBody.js +7 -7
  19. package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
  20. package/lib/commonjs/components/Dialog/DialogDescription.js +7 -9
  21. package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
  22. package/lib/commonjs/components/Dialog/DialogFoot.js +13 -16
  23. package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
  24. package/lib/commonjs/components/Dialog/DialogHead.js +22 -27
  25. package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -1
  26. package/lib/commonjs/components/Divider/Divider.js +4 -8
  27. package/lib/commonjs/components/Divider/Divider.js.map +1 -1
  28. package/lib/commonjs/components/Grid/Grid.js +3 -4
  29. package/lib/commonjs/components/Grid/Grid.js.map +1 -1
  30. package/lib/commonjs/components/Icon/Icon.js +4 -5
  31. package/lib/commonjs/components/Icon/Icon.js.map +1 -1
  32. package/lib/commonjs/components/IconButton/IconButton.js +21 -20
  33. package/lib/commonjs/components/IconButton/IconButton.js.map +1 -1
  34. package/lib/commonjs/components/Link/Link.js +13 -17
  35. package/lib/commonjs/components/Link/Link.js.map +1 -1
  36. package/lib/commonjs/components/Menu/Menu.js +14 -9
  37. package/lib/commonjs/components/Menu/Menu.js.map +1 -1
  38. package/lib/commonjs/components/Menu/MenuItem.js +3 -5
  39. package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
  40. package/lib/commonjs/components/Menu/MenuItemLabel.js +2 -8
  41. package/lib/commonjs/components/Menu/MenuItemLabel.js.map +1 -1
  42. package/lib/commonjs/components/Portal/PortalContext.js +1 -2
  43. package/lib/commonjs/components/Portal/PortalContext.js.map +1 -1
  44. package/lib/commonjs/components/Portal/PortalProvider.js +1 -2
  45. package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -1
  46. package/lib/commonjs/components/Progress/Progress.js +6 -7
  47. package/lib/commonjs/components/Progress/Progress.js.map +1 -1
  48. package/lib/commonjs/components/Provider/ContextManager.js +16 -0
  49. package/lib/commonjs/components/Provider/ContextManager.js.map +1 -0
  50. package/lib/commonjs/components/Provider/NativeProvider.js +18 -9
  51. package/lib/commonjs/components/Provider/NativeProvider.js.map +1 -1
  52. package/lib/commonjs/components/Radio/RadioGroup.js +46 -0
  53. package/lib/commonjs/components/Radio/RadioGroup.js.map +1 -0
  54. package/lib/commonjs/components/Radio/RadioItem.js +77 -0
  55. package/lib/commonjs/components/Radio/RadioItem.js.map +1 -0
  56. package/lib/commonjs/components/Radio/index.js +15 -0
  57. package/lib/commonjs/components/Radio/index.js.map +1 -0
  58. package/lib/commonjs/components/Slider/Slider.js +4 -4
  59. package/lib/commonjs/components/Slider/Slider.js.map +1 -1
  60. package/lib/commonjs/components/Stack/HStack.js +3 -9
  61. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  62. package/lib/commonjs/components/Stack/VStack.js +4 -10
  63. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  64. package/lib/commonjs/components/StyledComponents/StyledText.js +20 -9
  65. package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
  66. package/lib/commonjs/components/StyledComponents/StyledView.js +6 -8
  67. package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
  68. package/lib/commonjs/components/Surface/Surface.js +24 -21
  69. package/lib/commonjs/components/Surface/Surface.js.map +1 -1
  70. package/lib/commonjs/components/Switch/Switch.js +13 -10
  71. package/lib/commonjs/components/Switch/Switch.js.map +1 -1
  72. package/lib/commonjs/components/UserInput/UserInput.js +23 -18
  73. package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
  74. package/lib/commonjs/components/UserInput/generateColors.js +3 -3
  75. package/lib/commonjs/components/UserInput/generateColors.js.map +1 -1
  76. package/lib/commonjs/constants/typographySizes.js +11 -7
  77. package/lib/commonjs/constants/typographySizes.js.map +1 -1
  78. package/lib/commonjs/helpers/ResponsiveCalculations.js +47 -53
  79. package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
  80. package/lib/commonjs/hooks/index.js +3 -3
  81. package/lib/commonjs/hooks/index.js.map +1 -1
  82. package/lib/commonjs/hooks/{useResponsive.js → useScalingMode.js} +3 -3
  83. package/lib/commonjs/hooks/useScalingMode.js.map +1 -0
  84. package/lib/commonjs/index.d.js +2 -0
  85. package/lib/commonjs/index.d.js.map +1 -0
  86. package/lib/commonjs/index.js +27 -40
  87. package/lib/commonjs/index.js.map +1 -1
  88. package/lib/commonjs/themes/DarkTheme.js +185 -25
  89. package/lib/commonjs/themes/DarkTheme.js.map +1 -1
  90. package/lib/commonjs/themes/LightTheme.js +89 -81
  91. package/lib/commonjs/themes/LightTheme.js.map +1 -1
  92. package/lib/commonjs/types/divider.type.js +6 -0
  93. package/lib/commonjs/types/divider.type.js.map +1 -0
  94. package/lib/commonjs/types/index.js +44 -0
  95. package/lib/commonjs/types/index.js.map +1 -1
  96. package/lib/commonjs/types/link.type.js +6 -0
  97. package/lib/commonjs/types/link.type.js.map +1 -0
  98. package/lib/commonjs/types/radio.type.js +6 -0
  99. package/lib/commonjs/types/radio.type.js.map +1 -0
  100. package/lib/commonjs/types/surface.type.js +6 -0
  101. package/lib/commonjs/types/surface.type.js.map +1 -0
  102. package/lib/commonjs/utils/index.js +2 -0
  103. package/lib/commonjs/utils/index.js.map +1 -0
  104. package/lib/module/components/Avatar/AvatarImage.js +3 -8
  105. package/lib/module/components/Avatar/AvatarImage.js.map +1 -1
  106. package/lib/module/components/Avatar/AvatarText.js +2 -3
  107. package/lib/module/components/Avatar/AvatarText.js.map +1 -1
  108. package/lib/module/components/Button/Button.js +23 -22
  109. package/lib/module/components/Button/Button.js.map +1 -1
  110. package/lib/module/components/Button/utils.js +34 -27
  111. package/lib/module/components/Button/utils.js.map +1 -1
  112. package/lib/module/components/CheckBox/CheckBox.js +37 -31
  113. package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
  114. package/lib/module/components/Chip/Chip.js +22 -26
  115. package/lib/module/components/Chip/Chip.js.map +1 -1
  116. package/lib/module/components/Chip/utils.js +30 -18
  117. package/lib/module/components/Chip/utils.js.map +1 -1
  118. package/lib/module/components/Dialog/Dialog.js +13 -8
  119. package/lib/module/components/Dialog/Dialog.js.map +1 -1
  120. package/lib/module/components/Dialog/DialogBody.js +9 -8
  121. package/lib/module/components/Dialog/DialogBody.js.map +1 -1
  122. package/lib/module/components/Dialog/DialogDescription.js +8 -9
  123. package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
  124. package/lib/module/components/Dialog/DialogFoot.js +14 -16
  125. package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
  126. package/lib/module/components/Dialog/DialogHead.js +24 -28
  127. package/lib/module/components/Dialog/DialogHead.js.map +1 -1
  128. package/lib/module/components/Divider/Divider.js +5 -8
  129. package/lib/module/components/Divider/Divider.js.map +1 -1
  130. package/lib/module/components/Grid/Grid.js +4 -3
  131. package/lib/module/components/Grid/Grid.js.map +1 -1
  132. package/lib/module/components/Icon/Icon.js +3 -3
  133. package/lib/module/components/Icon/Icon.js.map +1 -1
  134. package/lib/module/components/IconButton/IconButton.js +20 -19
  135. package/lib/module/components/IconButton/IconButton.js.map +1 -1
  136. package/lib/module/components/Link/Link.js +15 -19
  137. package/lib/module/components/Link/Link.js.map +1 -1
  138. package/lib/module/components/Menu/Menu.js +14 -8
  139. package/lib/module/components/Menu/Menu.js.map +1 -1
  140. package/lib/module/components/Menu/MenuItem.js +4 -5
  141. package/lib/module/components/Menu/MenuItem.js.map +1 -1
  142. package/lib/module/components/Menu/MenuItemLabel.js +2 -7
  143. package/lib/module/components/Menu/MenuItemLabel.js.map +1 -1
  144. package/lib/module/components/Progress/Progress.js +7 -6
  145. package/lib/module/components/Progress/Progress.js.map +1 -1
  146. package/lib/module/components/Provider/ContextManager.js +10 -0
  147. package/lib/module/components/Provider/ContextManager.js.map +1 -0
  148. package/lib/module/components/Provider/NativeProvider.js +17 -7
  149. package/lib/module/components/Provider/NativeProvider.js.map +1 -1
  150. package/lib/module/components/Radio/RadioGroup.js +41 -0
  151. package/lib/module/components/Radio/RadioGroup.js.map +1 -0
  152. package/lib/module/components/Radio/RadioItem.js +73 -0
  153. package/lib/module/components/Radio/RadioItem.js.map +1 -0
  154. package/lib/module/components/Radio/index.js +10 -0
  155. package/lib/module/components/Radio/index.js.map +1 -0
  156. package/lib/module/components/Slider/Slider.js +5 -5
  157. package/lib/module/components/Slider/Slider.js.map +1 -1
  158. package/lib/module/components/Stack/HStack.js +3 -7
  159. package/lib/module/components/Stack/HStack.js.map +1 -1
  160. package/lib/module/components/Stack/VStack.js +4 -8
  161. package/lib/module/components/Stack/VStack.js.map +1 -1
  162. package/lib/module/components/StyledComponents/StyledText.js +20 -8
  163. package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
  164. package/lib/module/components/StyledComponents/StyledView.js +6 -7
  165. package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
  166. package/lib/module/components/Surface/Surface.js +24 -20
  167. package/lib/module/components/Surface/Surface.js.map +1 -1
  168. package/lib/module/components/Switch/Switch.js +14 -11
  169. package/lib/module/components/Switch/Switch.js.map +1 -1
  170. package/lib/module/components/UserInput/UserInput.js +24 -19
  171. package/lib/module/components/UserInput/UserInput.js.map +1 -1
  172. package/lib/module/components/UserInput/generateColors.js +3 -3
  173. package/lib/module/components/UserInput/generateColors.js.map +1 -1
  174. package/lib/module/constants/typographySizes.js +11 -7
  175. package/lib/module/constants/typographySizes.js.map +1 -1
  176. package/lib/module/helpers/ResponsiveCalculations.js +46 -48
  177. package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
  178. package/lib/module/hooks/index.js +1 -1
  179. package/lib/module/hooks/index.js.map +1 -1
  180. package/lib/module/hooks/useScalingMode.js +7 -0
  181. package/lib/module/hooks/useScalingMode.js.map +1 -0
  182. package/lib/module/index.d.js +2 -0
  183. package/lib/module/index.d.js.map +1 -0
  184. package/lib/module/index.js +4 -5
  185. package/lib/module/index.js.map +1 -1
  186. package/lib/module/themes/DarkTheme.js +188 -24
  187. package/lib/module/themes/DarkTheme.js.map +1 -1
  188. package/lib/module/themes/LightTheme.js +88 -81
  189. package/lib/module/themes/LightTheme.js.map +1 -1
  190. package/lib/module/themes/index.js +0 -1
  191. package/lib/module/themes/index.js.map +1 -1
  192. package/lib/module/types/divider.type.js +4 -0
  193. package/lib/module/types/divider.type.js.map +1 -0
  194. package/lib/module/types/index.js +4 -0
  195. package/lib/module/types/index.js.map +1 -1
  196. package/lib/module/types/link.type.js +4 -0
  197. package/lib/module/types/link.type.js.map +1 -0
  198. package/lib/module/types/radio.type.js +4 -0
  199. package/lib/module/types/radio.type.js.map +1 -0
  200. package/lib/module/types/surface.type.js +4 -0
  201. package/lib/module/types/surface.type.js.map +1 -0
  202. package/lib/module/utils/index.js +2 -0
  203. package/lib/module/utils/index.js.map +1 -0
  204. package/lib/typescript/commonjs/scripts/generateConfig.d.ts +1 -0
  205. package/lib/typescript/commonjs/scripts/generateConfig.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/scripts/readConfig.d.ts +1 -0
  207. package/lib/typescript/commonjs/scripts/readConfig.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts +2 -2
  209. package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts +2 -2
  211. package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/src/components/Button/Button.d.ts +2 -2
  213. package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/src/components/Button/utils.d.ts +0 -1
  215. package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts +2 -2
  217. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts +2 -2
  219. package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/src/components/Chip/utils.d.ts +3 -2
  221. package/lib/typescript/commonjs/src/components/Chip/utils.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts +4 -4
  224. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts +2 -2
  226. package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts +2 -2
  228. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts +2 -2
  230. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts +3 -8
  232. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts +2 -2
  234. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts +4 -2
  236. package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/src/components/Link/Link.d.ts +3 -10
  238. package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts +2 -2
  240. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts +2 -2
  242. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts +2 -2
  244. package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +2 -2
  246. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/components/Provider/ContextManager.d.ts +3 -0
  248. package/lib/typescript/commonjs/src/components/Provider/ContextManager.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts +9 -4
  250. package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/components/Radio/RadioGroup.d.ts +5 -0
  252. package/lib/typescript/commonjs/src/components/Radio/RadioGroup.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/src/components/Radio/RadioItem.d.ts +5 -0
  254. package/lib/typescript/commonjs/src/components/Radio/RadioItem.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/components/Radio/index.d.ts +6 -0
  256. package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts +2 -2
  258. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts +2 -2
  260. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts +2 -2
  262. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts +2 -2
  264. package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts +3 -3
  266. package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts +2 -2
  268. package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +36 -1
  270. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/constants/typographySizes.d.ts +2 -8
  272. package/lib/typescript/commonjs/src/constants/typographySizes.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +0 -3
  274. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/hooks/index.d.ts +1 -1
  276. package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/hooks/useScalingMode.d.ts +5 -0
  278. package/lib/typescript/commonjs/src/hooks/useScalingMode.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/src/index.d.ts +5 -5
  280. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/src/types/avatar.type.d.ts +0 -2
  284. package/lib/typescript/commonjs/src/types/avatar.type.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/types/button.type.d.ts +20 -20
  286. package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/src/types/checkbox.type.d.ts +20 -14
  288. package/lib/typescript/commonjs/src/types/checkbox.type.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/src/types/chip.type.d.ts +21 -13
  290. package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/src/types/common.type.d.ts +72 -22
  292. package/lib/typescript/commonjs/src/types/common.type.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/src/types/dialog.type.d.ts +13 -12
  294. package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/types/divider.type.d.ts +11 -0
  296. package/lib/typescript/commonjs/src/types/divider.type.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/src/types/grid.type.d.ts +2 -1
  298. package/lib/typescript/commonjs/src/types/grid.type.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/src/types/index.d.ts +4 -0
  300. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/types/link.type.d.ts +12 -0
  302. package/lib/typescript/commonjs/src/types/link.type.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/src/types/menu.type.d.ts +4 -16
  304. package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/src/types/radio.type.d.ts +61 -0
  306. package/lib/typescript/commonjs/src/types/radio.type.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/types/stack.type.d.ts +6 -14
  308. package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +25 -72
  310. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/types/surface.type.d.ts +16 -0
  312. package/lib/typescript/commonjs/src/types/surface.type.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/types/userInput.type.d.ts +10 -13
  314. package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/utils/index.d.ts +1 -0
  316. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
  317. package/lib/typescript/module/scripts/generateConfig.d.ts +1 -0
  318. package/lib/typescript/module/scripts/generateConfig.d.ts.map +1 -0
  319. package/lib/typescript/module/scripts/readConfig.d.ts +1 -0
  320. package/lib/typescript/module/scripts/readConfig.d.ts.map +1 -0
  321. package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts +2 -2
  322. package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts.map +1 -1
  323. package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts +2 -2
  324. package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts.map +1 -1
  325. package/lib/typescript/module/src/components/Button/Button.d.ts +2 -2
  326. package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
  327. package/lib/typescript/module/src/components/Button/utils.d.ts +0 -1
  328. package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -1
  329. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts +2 -2
  330. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  331. package/lib/typescript/module/src/components/Chip/Chip.d.ts +2 -2
  332. package/lib/typescript/module/src/components/Chip/Chip.d.ts.map +1 -1
  333. package/lib/typescript/module/src/components/Chip/utils.d.ts +3 -2
  334. package/lib/typescript/module/src/components/Chip/utils.d.ts.map +1 -1
  335. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
  336. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts +4 -4
  337. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -1
  338. package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts +2 -2
  339. package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts.map +1 -1
  340. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts +2 -2
  341. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  342. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts +2 -2
  343. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -1
  344. package/lib/typescript/module/src/components/Divider/Divider.d.ts +3 -8
  345. package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
  346. package/lib/typescript/module/src/components/Grid/Grid.d.ts +2 -2
  347. package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -1
  348. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts +4 -2
  349. package/lib/typescript/module/src/components/IconButton/IconButton.d.ts.map +1 -1
  350. package/lib/typescript/module/src/components/Link/Link.d.ts +3 -10
  351. package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -1
  352. package/lib/typescript/module/src/components/Menu/Menu.d.ts +2 -2
  353. package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -1
  354. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts +2 -2
  355. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -1
  356. package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts +2 -2
  357. package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts.map +1 -1
  358. package/lib/typescript/module/src/components/Progress/Progress.d.ts +2 -2
  359. package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -1
  360. package/lib/typescript/module/src/components/Provider/ContextManager.d.ts +3 -0
  361. package/lib/typescript/module/src/components/Provider/ContextManager.d.ts.map +1 -0
  362. package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts +9 -4
  363. package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts.map +1 -1
  364. package/lib/typescript/module/src/components/Radio/RadioGroup.d.ts +5 -0
  365. package/lib/typescript/module/src/components/Radio/RadioGroup.d.ts.map +1 -0
  366. package/lib/typescript/module/src/components/Radio/RadioItem.d.ts +5 -0
  367. package/lib/typescript/module/src/components/Radio/RadioItem.d.ts.map +1 -0
  368. package/lib/typescript/module/src/components/Radio/index.d.ts +6 -0
  369. package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -0
  370. package/lib/typescript/module/src/components/Stack/HStack.d.ts +2 -2
  371. package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
  372. package/lib/typescript/module/src/components/Stack/VStack.d.ts +2 -2
  373. package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
  374. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts +2 -2
  375. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  376. package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts +2 -2
  377. package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -1
  378. package/lib/typescript/module/src/components/Surface/Surface.d.ts +3 -3
  379. package/lib/typescript/module/src/components/Surface/Surface.d.ts.map +1 -1
  380. package/lib/typescript/module/src/components/Switch/Switch.d.ts +2 -2
  381. package/lib/typescript/module/src/components/Switch/Switch.d.ts.map +1 -1
  382. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +36 -1
  383. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
  384. package/lib/typescript/module/src/constants/typographySizes.d.ts +2 -8
  385. package/lib/typescript/module/src/constants/typographySizes.d.ts.map +1 -1
  386. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +0 -3
  387. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  388. package/lib/typescript/module/src/hooks/index.d.ts +1 -1
  389. package/lib/typescript/module/src/hooks/index.d.ts.map +1 -1
  390. package/lib/typescript/module/src/hooks/useScalingMode.d.ts +5 -0
  391. package/lib/typescript/module/src/hooks/useScalingMode.d.ts.map +1 -0
  392. package/lib/typescript/module/src/index.d.ts +5 -5
  393. package/lib/typescript/module/src/index.d.ts.map +1 -1
  394. package/lib/typescript/module/src/themes/DarkTheme.d.ts.map +1 -1
  395. package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -1
  396. package/lib/typescript/module/src/types/avatar.type.d.ts +0 -2
  397. package/lib/typescript/module/src/types/avatar.type.d.ts.map +1 -1
  398. package/lib/typescript/module/src/types/button.type.d.ts +20 -20
  399. package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
  400. package/lib/typescript/module/src/types/checkbox.type.d.ts +20 -14
  401. package/lib/typescript/module/src/types/checkbox.type.d.ts.map +1 -1
  402. package/lib/typescript/module/src/types/chip.type.d.ts +21 -13
  403. package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -1
  404. package/lib/typescript/module/src/types/common.type.d.ts +72 -22
  405. package/lib/typescript/module/src/types/common.type.d.ts.map +1 -1
  406. package/lib/typescript/module/src/types/dialog.type.d.ts +13 -12
  407. package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
  408. package/lib/typescript/module/src/types/divider.type.d.ts +11 -0
  409. package/lib/typescript/module/src/types/divider.type.d.ts.map +1 -0
  410. package/lib/typescript/module/src/types/grid.type.d.ts +2 -1
  411. package/lib/typescript/module/src/types/grid.type.d.ts.map +1 -1
  412. package/lib/typescript/module/src/types/index.d.ts +4 -0
  413. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  414. package/lib/typescript/module/src/types/link.type.d.ts +12 -0
  415. package/lib/typescript/module/src/types/link.type.d.ts.map +1 -0
  416. package/lib/typescript/module/src/types/menu.type.d.ts +4 -16
  417. package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -1
  418. package/lib/typescript/module/src/types/radio.type.d.ts +61 -0
  419. package/lib/typescript/module/src/types/radio.type.d.ts.map +1 -0
  420. package/lib/typescript/module/src/types/stack.type.d.ts +6 -14
  421. package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
  422. package/lib/typescript/module/src/types/styledComponents.type.d.ts +25 -72
  423. package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -1
  424. package/lib/typescript/module/src/types/surface.type.d.ts +16 -0
  425. package/lib/typescript/module/src/types/surface.type.d.ts.map +1 -0
  426. package/lib/typescript/module/src/types/userInput.type.d.ts +10 -13
  427. package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
  428. package/lib/typescript/module/src/utils/index.d.ts +1 -0
  429. package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
  430. package/package.json +9 -4
  431. package/src/components/Avatar/AvatarImage.tsx +2 -7
  432. package/src/components/Avatar/AvatarText.tsx +4 -4
  433. package/src/components/Button/Button.tsx +35 -26
  434. package/src/components/Button/utils.ts +30 -30
  435. package/src/components/CheckBox/CheckBox.tsx +33 -29
  436. package/src/components/Chip/Chip.tsx +25 -32
  437. package/src/components/Chip/utils.ts +34 -20
  438. package/src/components/Dialog/Dialog.tsx +11 -6
  439. package/src/components/Dialog/DialogBody.tsx +13 -13
  440. package/src/components/Dialog/DialogDescription.tsx +9 -9
  441. package/src/components/Dialog/DialogFoot.tsx +19 -20
  442. package/src/components/Dialog/DialogHead.tsx +17 -21
  443. package/src/components/Divider/Divider.tsx +7 -15
  444. package/src/components/Grid/Grid.tsx +6 -5
  445. package/src/components/Icon/Icon.tsx +3 -3
  446. package/src/components/IconButton/IconButton.tsx +26 -17
  447. package/src/components/Link/Link.tsx +20 -29
  448. package/src/components/Menu/Menu.tsx +11 -7
  449. package/src/components/Menu/MenuItem.tsx +6 -6
  450. package/src/components/Menu/MenuItemLabel.tsx +4 -9
  451. package/src/components/Progress/Progress.tsx +8 -7
  452. package/src/components/Provider/ContextManager.tsx +9 -0
  453. package/src/components/Provider/NativeProvider.tsx +25 -10
  454. package/src/components/Radio/RadioGroup.tsx +40 -0
  455. package/src/components/Radio/RadioItem.tsx +72 -0
  456. package/src/components/Radio/index.ts +9 -0
  457. package/src/components/Slider/Slider.tsx +3 -3
  458. package/src/components/Stack/HStack.tsx +5 -8
  459. package/src/components/Stack/VStack.tsx +6 -11
  460. package/src/components/StyledComponents/StyledText.tsx +17 -8
  461. package/src/components/StyledComponents/StyledView.tsx +7 -8
  462. package/src/components/Surface/Surface.tsx +20 -27
  463. package/src/components/Switch/Switch.tsx +12 -10
  464. package/src/components/UserInput/UserInput.tsx +25 -19
  465. package/src/components/UserInput/generateColors.ts +3 -3
  466. package/src/constants/typographySizes.ts +13 -15
  467. package/src/helpers/ResponsiveCalculations.ts +50 -49
  468. package/src/hooks/index.ts +1 -1
  469. package/src/hooks/{useResponsive.tsx → useScalingMode.tsx} +2 -2
  470. package/src/index.d.ts +3 -0
  471. package/src/index.ts +7 -7
  472. package/src/themes/DarkTheme.ts +169 -30
  473. package/src/themes/LightTheme.ts +78 -85
  474. package/src/themes/index.ts +0 -1
  475. package/src/types/avatar.type.ts +0 -3
  476. package/src/types/button.type.ts +20 -20
  477. package/src/types/checkbox.type.ts +22 -15
  478. package/src/types/chip.type.ts +24 -15
  479. package/src/types/common.type.ts +82 -23
  480. package/src/types/dialog.type.ts +15 -14
  481. package/src/types/divider.type.ts +15 -0
  482. package/src/types/grid.type.ts +2 -1
  483. package/src/types/index.ts +5 -1
  484. package/src/types/link.type.ts +15 -0
  485. package/src/types/menu.type.ts +4 -19
  486. package/src/types/radio.type.ts +78 -0
  487. package/src/types/stack.type.ts +7 -17
  488. package/src/types/styledComponents.type.ts +27 -75
  489. package/src/types/surface.type.ts +19 -0
  490. package/src/types/userInput.type.ts +10 -14
  491. package/src/utils/index.ts +0 -0
  492. package/lib/commonjs/components/Header/Header.js +0 -78
  493. package/lib/commonjs/components/Header/Header.js.map +0 -1
  494. package/lib/commonjs/helpers/LightenColorShades.js +0 -27
  495. package/lib/commonjs/helpers/LightenColorShades.js.map +0 -1
  496. package/lib/commonjs/hooks/useResponsive.js.map +0 -1
  497. package/lib/commonjs/themes/createTheme.js +0 -25
  498. package/lib/commonjs/themes/createTheme.js.map +0 -1
  499. package/lib/module/components/Header/Header.js +0 -73
  500. package/lib/module/components/Header/Header.js.map +0 -1
  501. package/lib/module/helpers/LightenColorShades.js +0 -23
  502. package/lib/module/helpers/LightenColorShades.js.map +0 -1
  503. package/lib/module/hooks/useResponsive.js +0 -7
  504. package/lib/module/hooks/useResponsive.js.map +0 -1
  505. package/lib/module/themes/createTheme.js +0 -25
  506. package/lib/module/themes/createTheme.js.map +0 -1
  507. package/lib/typescript/commonjs/src/components/Header/Header.d.ts +0 -16
  508. package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +0 -1
  509. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +0 -3
  510. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +0 -1
  511. package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts +0 -3
  512. package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts.map +0 -1
  513. package/lib/typescript/commonjs/src/themes/createTheme.d.ts +0 -1
  514. package/lib/typescript/commonjs/src/themes/createTheme.d.ts.map +0 -1
  515. package/lib/typescript/module/src/components/Header/Header.d.ts +0 -16
  516. package/lib/typescript/module/src/components/Header/Header.d.ts.map +0 -1
  517. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +0 -3
  518. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +0 -1
  519. package/lib/typescript/module/src/hooks/useResponsive.d.ts +0 -3
  520. package/lib/typescript/module/src/hooks/useResponsive.d.ts.map +0 -1
  521. package/lib/typescript/module/src/themes/createTheme.d.ts +0 -1
  522. package/lib/typescript/module/src/themes/createTheme.d.ts.map +0 -1
  523. package/src/components/Header/Header.tsx +0 -82
  524. package/src/helpers/LightenColorShades.ts +0 -27
  525. package/src/themes/createTheme.ts +0 -23
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  ✔️ Fully customizable with props and theming 🎧🎨\
7
7
  ✔️ Blazing-fast ⚡ performance\
8
8
  ✔️ Strong type safety with TypeScript 🛡️📚\
9
- ✔️ Smooth animations powered by React Native Reanimated 🎭🌀
9
+ ✔️ Smooth animations 🎭🌀
10
10
 
11
11
  ---
12
12
 
@@ -4,27 +4,21 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
7
  var _reactNative = require("react-native");
9
8
  var _index = require("../StyledComponents/index.js");
10
9
  var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
11
- var _index2 = require("../../hooks/index.js");
12
10
  var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
11
  const AvatarImage = ({
15
12
  size = 70,
16
13
  source,
17
- bg,
18
14
  resizeMode = 'cover',
19
15
  containerStyle,
20
16
  imageStyle
21
17
  }) => {
22
- const theme = (0, _index2.useTheme)();
23
18
  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
- ,
19
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView
20
+ // alignSelf='flex-start'
21
+ , {
28
22
  height: (0, _ResponsiveCalculations.verticalScale)(size),
29
23
  width: (0, _ResponsiveCalculations.verticalScale)(size),
30
24
  borderRadius: (0, _ResponsiveCalculations.verticalScale)(size),
@@ -1 +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":[]}
1
+ {"version":3,"names":["_reactNative","require","_index","_ResponsiveCalculations","_jsxRuntime","AvatarImage","size","source","resizeMode","containerStyle","imageStyle","jsx","Fragment","children","StyledView","height","verticalScale","width","borderRadius","overflow","style","Image","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Avatar/AvatarImage.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAAqE,IAAAG,WAAA,GAAAH,OAAA;AAIrE,MAAMI,WAAiC,GAAGA,CAAC;EACvCC,IAAI,GAAG,EAAE;EACTC,MAAM;EACNC,UAAU,GAAG,OAAO;EACpBC,cAAc;EACdC;AACJ,CAAC,KAAK;EAEF,oBAAQ,IAAAN,WAAA,CAAAO,GAAA,EAAAP,WAAA,CAAAQ,QAAA;IAAAC,QAAA,eACJ,IAAAT,WAAA,CAAAO,GAAA,EAACT,MAAA,CAAAY;IACG;IAAA;MACAC,MAAM,EAAE,IAAAC,qCAAa,EAACV,IAAI,CAAE;MAC5BW,KAAK,EAAE,IAAAD,qCAAa,EAACV,IAAI,CAAE;MAC3BY,YAAY,EAAE,IAAAF,qCAAa,EAACV,IAAI,CAAE;MAClCa,QAAQ,EAAC,QAAQ;MACjBC,KAAK,EAAEX,cAAe;MAAAI,QAAA,eAEtB,IAAAT,WAAA,CAAAO,GAAA,EAACX,YAAA,CAAAqB,KAAK;QACFd,MAAM,EAAEA,MAAO;QACfa,KAAK,EAAE,CAAC;UAAEL,MAAM,EAAE,MAAM;UAAEE,KAAK,EAAE;QAAO,CAAC,EAAEP,UAAU,CAAE;QACvDF,UAAU,EAAEA;MAAW,CAC1B;IAAC,CACM;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAc,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACcnB,WAAW","ignoreList":[]}
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
7
  var _index = require("../StyledComponents/index.js");
9
8
  var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
10
9
  var _index2 = require("../../hooks/index.js");
11
10
  var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
11
  const AvatarText = ({
14
12
  size = 70,
15
13
  fs,
@@ -22,7 +20,7 @@ const AvatarText = ({
22
20
  const theme = (0, _index2.useTheme)();
23
21
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
24
22
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
25
- bg: bg ?? theme.colors.primary
23
+ bg: bg ?? theme.colors.brand.primary
26
24
  // alignSelf='flex-start'
27
25
  ,
28
26
  h: (0, _ResponsiveCalculations.verticalScale)(size),
@@ -32,7 +30,7 @@ const AvatarText = ({
32
30
  borderRadius: (0, _ResponsiveCalculations.verticalScale)(size),
33
31
  style: containerStyle,
34
32
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
35
- secondary: true,
33
+ color: theme.colors.brand.onPrimary,
36
34
  fw: "bold",
37
35
  fs: fs ?? size / 3,
38
36
  style: textStyle,
@@ -1 +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","second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AE,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":[]}
1
+ {"version":3,"names":["_index","require","_ResponsiveCalculations","_index2","_jsxRuntime","AvatarText","size","fs","text","bg","containerStyle","textStyle","slice","toUpperCase","theme","useTheme","jsx","Fragment","children","StyledView","colors","brand","primary","h","verticalScale","w","align","justify","borderRadius","style","StyledText","color","onPrimary","fw","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Avatar/AvatarText.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAAuC,IAAAG,WAAA,GAAAH,OAAA;AAIvC,MAAMI,UAA+B,GAAGA,CAAC;EACrCC,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,IAAAX,WAAA,CAAAY,GAAA,EAAAZ,WAAA,CAAAa,QAAA;IAAAC,QAAA,eACJ,IAAAd,WAAA,CAAAY,GAAA,EAAChB,MAAA,CAAAmB,UAAU;MACPV,EAAE,EAAEA,EAAE,IAAIK,KAAK,CAACM,MAAM,CAACC,KAAK,CAACC;MAC7B;MAAA;MACAC,CAAC,EAAE,IAAAC,qCAAa,EAAClB,IAAI,CAAE;MACvBmB,CAAC,EAAE,IAAAD,qCAAa,EAAClB,IAAI,CAAE;MACvBoB,KAAK,EAAC,QAAQ;MACdC,OAAO,EAAC,QAAQ;MAChBC,YAAY,EAAE,IAAAJ,qCAAa,EAAClB,IAAI,CAAE;MAClCuB,KAAK,EAAEnB,cAAe;MAAAQ,QAAA,eAEtB,IAAAd,WAAA,CAAAY,GAAA,EAAChB,MAAA,CAAA8B,UAAU;QAACC,KAAK,EAAEjB,KAAK,CAACM,MAAM,CAACC,KAAK,CAACW,SAAU;QAACC,EAAE,EAAC,MAAM;QAAC1B,EAAE,EAAEA,EAAE,IAAKD,IAAI,GAAG,CAAG;QAACuB,KAAK,EAAElB,SAAU;QAAAO,QAAA,EAAEV;MAAI,CAAa;IAAC,CAC9G;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAA0B,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACc/B,UAAU","ignoreList":[]}
@@ -4,46 +4,46 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
10
10
  var _index = require("../StyledComponents/index.js");
11
11
  var _index2 = require("../../hooks/index.js");
12
12
  var _utils = require("./utils.js");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
15
  const Button = ({
16
16
  variant = 'contained',
17
17
  type = 'flat',
18
18
  fullWidth = false,
19
19
  paddingH = 19,
20
- paddingV = 14,
20
+ paddingV = 12,
21
21
  bg,
22
- br = 5,
22
+ br = 8,
23
23
  stroke = 1,
24
24
  strokeColor,
25
25
  titleColor,
26
- title = 'Button',
27
- titleFS,
28
- titleVariant = 'h5',
29
- titleFF,
26
+ title,
27
+ fScale = 'base',
28
+ fs,
29
+ ff,
30
30
  size = 50,
31
31
  rippleColor,
32
32
  renderIcon,
33
33
  renderLeftIcon,
34
34
  renderRightIcon,
35
35
  disabled = false,
36
- buttonContainerStyle,
37
- textStyle,
36
+ containerStyle,
37
+ titleStyle,
38
38
  onPress,
39
+ children,
39
40
  ...rest
40
41
  }) => {
41
42
  const theme = (0, _index2.useTheme)();
42
43
  const {
43
44
  backgroundColor,
44
45
  buttonTextColor,
45
- buttonBorderColor,
46
- buttonIconColor
46
+ buttonBorderColor
47
47
  } = (0, _utils.getButtonColors)({
48
48
  theme,
49
49
  variant,
@@ -52,6 +52,7 @@ const Button = ({
52
52
  strokeColor,
53
53
  disabled
54
54
  });
55
+ const STYLES = (0, _react.useMemo)(customStyles, []);
55
56
  const dynamicStyles = {
56
57
  BUTTON_CONT: {
57
58
  backgroundColor: backgroundColor,
@@ -60,7 +61,7 @@ const Button = ({
60
61
  },
61
62
  BUTTON_TEXT: {
62
63
  color: buttonTextColor,
63
- fontFamily: titleFF ?? ''
64
+ fontFamily: ff ?? ''
64
65
  },
65
66
  FLAT_BTN_MAIN_CONT: {
66
67
  borderRadius: (0, _ResponsiveCalculations.verticalScale)(br),
@@ -79,7 +80,7 @@ const Button = ({
79
80
  const cloneElement = element => {
80
81
  if (/*#__PURE__*/_react.default.isValidElement(element)) {
81
82
  return /*#__PURE__*/_react.default.cloneElement(element, {
82
- color: buttonIconColor
83
+ color: element.props.color ?? buttonTextColor
83
84
  });
84
85
  }
85
86
  return null;
@@ -96,20 +97,20 @@ const Button = ({
96
97
  ,
97
98
  ...rest,
98
99
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.StyledView, {
99
- style: [STYLES.FLAT_BTN_INNER_CONT, STYLES.BUTTON_CONT, dynamicStyles.FLAT_BTN_INNER_CONT, dynamicStyles.BUTTON_CONT, buttonContainerStyle],
100
+ style: [STYLES.FLAT_BTN_INNER_CONT, STYLES.BUTTON_CONT, dynamicStyles.FLAT_BTN_INNER_CONT, dynamicStyles.BUTTON_CONT, containerStyle],
100
101
  children: [(renderLeftIcon || fullWidth && renderRightIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
101
102
  f: fullWidth ? 1 : undefined,
102
103
  children: renderLeftIcon && cloneElement(renderLeftIcon)
103
104
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
104
105
  flexShrink: 1,
105
106
  f: fullWidth ? 8 : undefined,
106
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
107
+ children: title ?? children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
107
108
  numberOfLines: 1,
108
- fs: titleFS,
109
- variant: titleVariant,
110
- style: [STYLES.BUTTON_TEXT, dynamicStyles.BUTTON_TEXT, textStyle],
111
- children: title
112
- })
109
+ fs: fs,
110
+ fScale: fScale,
111
+ style: [STYLES.BUTTON_TEXT, dynamicStyles.BUTTON_TEXT, titleStyle],
112
+ children: title ?? children
113
+ }) : renderIcon && cloneElement(renderIcon)
113
114
  }), (renderRightIcon || fullWidth && renderLeftIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
114
115
  alignItems: "flex-end",
115
116
  f: fullWidth ? 1 : undefined,
@@ -125,7 +126,7 @@ const Button = ({
125
126
  ,
126
127
  ...rest,
127
128
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
128
- style: [STYLES.BUTTON_CONT, STYLES.ROUND_BTN_INNER_CONT, dynamicStyles.BUTTON_CONT, dynamicStyles.ROUND_BTN_INNER_CONT, buttonContainerStyle],
129
+ style: [STYLES.BUTTON_CONT, STYLES.ROUND_BTN_INNER_CONT, dynamicStyles.BUTTON_CONT, dynamicStyles.ROUND_BTN_INNER_CONT, containerStyle],
129
130
  children: renderIcon && cloneElement(renderIcon)
130
131
  })
131
132
  })
@@ -133,7 +134,7 @@ const Button = ({
133
134
  });
134
135
  };
135
136
  var _default = exports.default = Button;
136
- const STYLES = _reactNative.StyleSheet.create({
137
+ const customStyles = () => _reactNative.StyleSheet.create({
137
138
  BUTTON_CONT: {
138
139
  maxWidth: '100%'
139
140
  },
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ResponsiveCalculations","_index","_index2","_utils","_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","rest","theme","useTheme","backgroundColor","buttonTextColor","buttonBorderColor","buttonIconColor","getButtonColors","dynamicStyles","BUTTON_CONT","borderWidth","borderColor","BUTTON_TEXT","color","fontFamily","FLAT_BTN_MAIN_CONT","borderRadius","verticalScale","alignSelf","FLAT_BTN_INNER_CONT","paddingVertical","paddingHorizontal","horizontalScale","ROUND_BTN_INNER_CONT","height","width","cloneElement","element","React","isValidElement","jsxs","Fragment","children","jsx","StyledView","style","STYLES","TouchableOpacity","f","undefined","flexShrink","StyledText","numberOfLines","fs","alignItems","ROUND_BTN_MAIN_CONT","_default","exports","StyleSheet","create","maxWidth","textAlign","overflow","flexDirection","justifyContent","gap"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Button/Button.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,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AA,eAC1C,IAAA5D,WAAA,CAAA6D,GAAA,EAAClE,YAAA,CAAAsE,gBAAgB;QACbtC,OAAO,EAAEA;QACT;QAAA;QAAA,GACIC,IAAI;QAAAgC,QAAA,eAER,IAAA5D,WAAA,CAAA6D,GAAA,EAAChE,MAAA,CAAAiE,UAAU;UACPC,KAAK,EAAE,CACHC,MAAM,CAAC3B,WAAW,EAClB2B,MAAM,CAACb,oBAAoB,EAC3Bf,aAAa,CAACC,WAAW,EACzBD,aAAa,CAACe,oBAAoB,EAClC1B,oBAAoB,CACtB;UAAAmC,QAAA,EAEDvC,UAAU,IAAIiC,YAAY,CAACjC,UAAU;QAAC,CAC/B;MAAC,CACC;IAAC,CACX,CACf;EAAA,CACH,CAAC;AAEP,CAAC;AAAC,IAAAqD,QAAA,GAAAC,OAAA,CAAAxE,OAAA,GAEaC,MAAM;AAGrB,MAAM4D,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC7BxC,WAAW,EAAE;IACTyC,QAAQ,EAAE;EACd,CAAC;EACDtC,WAAW,EAAE;IACTuC,SAAS,EAAE;EACf,CAAC;EACDpC,kBAAkB,EAAE;IAChBqC,QAAQ,EAAE;EACd,CAAC;EACDjC,mBAAmB,EAAE;IACjBkC,aAAa,EAAE,KAAK;IACpBT,UAAU,EAAE,QAAQ;IACpBU,cAAc,EAAE,eAAe;IAC/BC,GAAG,EAAE,IAAAjC,uCAAe,EAAC,EAAE;EAC3B,CAAC;EACDuB,mBAAmB,EAAE;IACjBO,QAAQ,EAAE,QAAQ;IAClBpC,YAAY,EAAE,IAAAC,qCAAa,EAAC,GAAG,CAAC;IAChCC,SAAS,EAAE;EACf,CAAC;EACDK,oBAAoB,EAAE;IAClBqB,UAAU,EAAE,QAAQ;IACpBU,cAAc,EAAE;EACpB;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_ResponsiveCalculations","_index","_index2","_utils","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Button","variant","type","fullWidth","paddingH","paddingV","bg","br","stroke","strokeColor","titleColor","title","fScale","fs","ff","size","rippleColor","renderIcon","renderLeftIcon","renderRightIcon","disabled","containerStyle","titleStyle","onPress","children","rest","theme","useTheme","backgroundColor","buttonTextColor","buttonBorderColor","getButtonColors","STYLES","useMemo","customStyles","dynamicStyles","BUTTON_CONT","borderWidth","borderColor","BUTTON_TEXT","color","fontFamily","FLAT_BTN_MAIN_CONT","borderRadius","verticalScale","alignSelf","FLAT_BTN_INNER_CONT","paddingVertical","paddingHorizontal","horizontalScale","ROUND_BTN_INNER_CONT","height","width","cloneElement","element","React","isValidElement","props","jsxs","Fragment","jsx","StyledView","style","TouchableOpacity","undefined","flexShrink","StyledText","numberOfLines","alignItems","ROUND_BTN_MAIN_CONT","_default","exports","StyleSheet","create","maxWidth","textAlign","overflow","flexDirection","justifyContent","gap"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Button/Button.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAA0C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA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AAQ,EAAE;EACd,CAAC;EACDnC,WAAW,EAAE;IACToC,SAAS,EAAE;EACf,CAAC;EACDjC,kBAAkB,EAAE;IAChBkC,QAAQ,EAAE;EACd,CAAC;EACD9B,mBAAmB,EAAE;IACjB+B,aAAa,EAAE,KAAK;IACpBT,UAAU,EAAE,QAAQ;IACpBU,cAAc,EAAE,eAAe;IAC/BC,GAAG,EAAE,IAAA9B,uCAAe,EAAC,EAAE;EAC3B,CAAC;EACDoB,mBAAmB,EAAE;IACjBO,QAAQ,EAAE,QAAQ;IAClBjC,YAAY,EAAE,IAAAC,qCAAa,EAAC,GAAG,CAAC;IAChCC,SAAS,EAAE;EACf,CAAC;EACDK,oBAAoB,EAAE;IAClBkB,UAAU,EAAE,QAAQ;IACpBU,cAAc,EAAE;EACpB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -10,12 +10,12 @@ const getButtonBorderColor = ({
10
10
  disabled
11
11
  }) => {
12
12
  if (disabled) {
13
- return theme.colors.outline;
13
+ return theme.colors.border.default;
14
14
  }
15
15
  if (strokeColor) {
16
16
  return strokeColor;
17
17
  }
18
- return theme.colors.outline;
18
+ return theme.colors.border.default;
19
19
  };
20
20
  const getButtonTextColor = ({
21
21
  theme,
@@ -24,13 +24,13 @@ const getButtonTextColor = ({
24
24
  disabled
25
25
  }) => {
26
26
  if (disabled) {
27
- return theme.colors.textDisable;
27
+ return theme.colors.typography.disabled;
28
28
  } else if (titleColor) {
29
29
  return titleColor;
30
30
  } else if (checkVariant('outlined')) {
31
- return theme.colors.textPrimary;
31
+ return theme.colors.typography.primary;
32
32
  }
33
- return theme.colors.textSecondary;
33
+ return theme.colors.brand.onPrimary;
34
34
  };
35
35
  const getButtonBackgroundColor = ({
36
36
  theme,
@@ -39,28 +39,34 @@ const getButtonBackgroundColor = ({
39
39
  disabled
40
40
  }) => {
41
41
  if (disabled) {
42
- return theme.colors.disable;
42
+ return theme.colors.states.disabled;
43
43
  } else if (bg) {
44
44
  return bg;
45
45
  } else if (checkVariant('contained')) {
46
- return theme.colors.primary;
46
+ return theme.colors.brand.primary;
47
47
  } else if (checkVariant('outlined')) {
48
48
  return 'transparent';
49
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;
50
+ return theme.colors.brand.primary;
63
51
  };
52
+
53
+ // const getButtonIconColor = ({
54
+ // theme,
55
+ // checkVariant,
56
+ // disabled,
57
+ // }: {
58
+ // theme: ThemeTypes;
59
+ // checkVariant: (variant: ButtonVariant) => boolean;
60
+ // disabled: boolean;
61
+ // }) => {
62
+ // if (disabled) {
63
+ // return theme.colors.iconDisable;
64
+ // } else if (checkVariant('outlined')) {
65
+ // return theme.colors.iconPrimary
66
+ // }
67
+ // return theme.colors.iconSecondary;
68
+ // };
69
+
64
70
  const getButtonColors = ({
65
71
  theme,
66
72
  variant,
@@ -89,16 +95,17 @@ const getButtonColors = ({
89
95
  strokeColor,
90
96
  disabled
91
97
  });
92
- const buttonIconColor = getButtonIconColor({
93
- checkVariant,
94
- theme,
95
- disabled
96
- });
98
+ // const buttonIconColor = getButtonIconColor({
99
+ // checkVariant,
100
+ // theme,
101
+ // disabled
102
+ // });
103
+
97
104
  return {
98
105
  backgroundColor,
99
106
  buttonTextColor,
100
- buttonBorderColor,
101
- buttonIconColor
107
+ buttonBorderColor
108
+ // buttonIconColor
102
109
  };
103
110
  };
104
111
  exports.getButtonColors = getButtonColors;
@@ -1 +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,OAAOA,WAAW;EACtB;EACA,OAAOD,KAAK,CAACG,MAAM,CAACC,OAAO;AAC/B,CAAC;AAGD,MAAMC,kBAAkB,GAAGA,CAAC;EACxBL,KAAK;EACLM,YAAY;EACZC,UAAU;EACVL;AAMJ,CAAC,KAAK;EAEF,IAAIA,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACG,MAAM,CAACK,WAAW;EACnC,CAAC,MACI,IAAID,UAAU,EAAE;IACjB,OAAOA,UAAU;EACrB,CAAC,MACI,IAAID,YAAY,CAAC,UAAU,CAAC,EAAE;IAC/B,OAAON,KAAK,CAACG,MAAM,CAACM,WAAW;EACnC;EACA,OAAOT,KAAK,CAACG,MAAM,CAACO,aAAa;AACrC,CAAC;AAED,MAAMC,wBAAwB,GAAGA,CAAC;EAC9BX,KAAK;EACLM,YAAY;EACZM,EAAE;EACFV;AAMJ,CAAC,KAAK;EAEF,IAAIA,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACG,MAAM,CAACU,OAAO;EAC/B,CAAC,MACI,IAAID,EAAE,EAAE;IACT,OAAOA,EAAE;EACb,CAAC,MACI,IAAIN,YAAY,CAAC,WAAW,CAAC,EAAE;IAChC,OAAON,KAAK,CAACG,MAAM,CAACW,OAAO;EAC/B,CAAC,MACI,IAAIR,YAAY,CAAC,UAAU,CAAC,EAAE;IAC/B,OAAO,aAAa;EACxB;EACA,OAAON,KAAK,CAACG,MAAM,CAACW,OAAO;AAC/B,CAAC;AAGD,MAAMC,kBAAkB,GAAGA,CAAC;EACxBf,KAAK;EACLM,YAAY;EACZJ;AAKJ,CAAC,KAAK;EACF,IAAIA,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACG,MAAM,CAACa,WAAW;EACnC,CAAC,MAAM,IAAIV,YAAY,CAAC,UAAU,CAAC,EAAE;IACjC,OAAON,KAAK,CAACG,MAAM,CAACc,WAAW;EACnC;EACA,OAAOjB,KAAK,CAACG,MAAM,CAACe,aAAa;AACrC,CAAC;AAED,MAAMC,eAAe,GAAGA,CAAC;EACrBnB,KAAK;EACLoB,OAAO;EACPR,EAAE;EACFL,UAAU;EACVN,WAAW;EACXC;AAQJ,CAAC,KAAK;EAEF,MAAMI,YAAY,GAAIe,gBAA+B,IAAK;IACtD,OAAOD,OAAO,KAAKC,gBAAgB;EACvC,CAAC;EACD,MAAMC,eAAe,GAAGX,wBAAwB,CAAC;IAC7CX,KAAK;IACLM,YAAY;IACZM,EAAE;IACFV;EACJ,CAAC,CAAC;EACF,MAAMqB,eAAe,GAAGlB,kBAAkB,CAAC;IACvCL,KAAK;IACLM,YAAY;IACZC,UAAU;IACVL;EACJ,CAAC,CAAC;EACF,MAAMsB,iBAAiB,GAAGzB,oBAAoB,CAAC;IAC3CC,KAAK;IACLC,WAAW;IACXC;EACJ,CAAC,CAAC;EACF,MAAMuB,eAAe,GAAGV,kBAAkB,CAAC;IACvCT,YAAY;IACZN,KAAK;IACLE;EACJ,CAAC,CAAC;EAEF,OAAO;IACHoB,eAAe;IACfC,eAAe;IACfC,iBAAiB;IACjBC;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAP,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["getButtonBorderColor","theme","strokeColor","disabled","colors","border","default","getButtonTextColor","checkVariant","titleColor","typography","primary","brand","onPrimary","getButtonBackgroundColor","bg","states","getButtonColors","variant","variantToCompare","backgroundColor","buttonTextColor","buttonBorderColor","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Button/utils.ts"],"mappings":";;;;;;AAGA,MAAMA,oBAAoB,GAAGA,C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A;AACA;AACA;AACA;;AAEA,MAAMM,eAAe,GAAGA,CAAC;EACrBhB,KAAK;EACLiB,OAAO;EACPH,EAAE;EACFN,UAAU;EACVP,WAAW;EACXC;AAQJ,CAAC,KAAK;EAEF,MAAMK,YAAY,GAAIW,gBAA+B,IAAK;IACtD,OAAOD,OAAO,KAAKC,gBAAgB;EACvC,CAAC;EACD,MAAMC,eAAe,GAAGN,wBAAwB,CAAC;IAC7Cb,KAAK;IACLO,YAAY;IACZO,EAAE;IACFZ;EACJ,CAAC,CAAC;EACF,MAAMkB,eAAe,GAAGd,kBAAkB,CAAC;IACvCN,KAAK;IACLO,YAAY;IACZC,UAAU;IACVN;EACJ,CAAC,CAAC;EACF,MAAMmB,iBAAiB,GAAGtB,oBAAoB,CAAC;IAC3CC,KAAK;IACLC,WAAW;IACXC;EACJ,CAAC,CAAC;EACF;EACA;EACA;EACA;EACA;;EAEA,OAAO;IACHiB,eAAe;IACfC,eAAe;IACfC;IACA;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAN,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
7
+ var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
9
  var _index = require("../StyledComponents/index.js");
10
10
  var _index2 = require("../../hooks/index.js");
11
- var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
12
- var _index3 = require("../../assets/svg/index.js");
11
+ var _index3 = require("../../helpers/index.js");
12
+ var _index4 = require("../../assets/svg/index.js");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
14
  const CheckBox = ({
17
15
  variant = 'square',
18
16
  isChecked = false,
@@ -22,13 +20,15 @@ const CheckBox = ({
22
20
  iconColor,
23
21
  disableBuiltInState = false,
24
22
  disabled = false,
25
- text,
23
+ label = 'Checkbox',
24
+ fScale = 'xs',
26
25
  fs,
27
- textVariant = 'h6',
26
+ ff,
27
+ // size = 22,
28
28
  size = 20,
29
29
  iconSize,
30
30
  containerStyle,
31
- textStyle,
31
+ labelStyle,
32
32
  checkBoxStyle,
33
33
  onPress
34
34
  }) => {
@@ -36,19 +36,20 @@ const CheckBox = ({
36
36
  (0, _react.useEffect)(() => {
37
37
  setIsCheckboxChecked(defaultValue);
38
38
  }, [defaultValue]);
39
+ const STYLES = (0, _react.useMemo)(Styles, []);
39
40
  const scaleVal = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
40
41
  const {
41
42
  colors
42
43
  } = (0, _index2.useTheme)();
43
- activeBgColor = disabled ? colors.disable : activeBgColor ?? colors.primary;
44
+ activeBgColor = disabled ? colors.states.disabled : activeBgColor ?? colors.brand.primary;
44
45
  iconSize = iconSize ?? size / 1.5;
45
46
  const bgColor = !disableBuiltInState && isCheckboxChecked || disableBuiltInState && isChecked ? activeBgColor : inActiveBgColor;
46
- const textColor = disabled ? colors.textDisable : colors.textPrimary;
47
+ const textColor = disabled ? colors.typography.disabled : colors.typography.primary;
47
48
  const dynamicMainContStyles = {
48
- height: (0, _ResponsiveCalculations.verticalScale)(size),
49
- width: (0, _ResponsiveCalculations.verticalScale)(size),
50
- borderColor: disabled ? colors.disable : activeBgColor,
51
- borderRadius: variant === 'square' ? 5 : (0, _ResponsiveCalculations.verticalScale)(size),
49
+ height: (0, _index3.verticalScale)(size),
50
+ width: (0, _index3.verticalScale)(size),
51
+ borderColor: disabled ? colors.border.default : activeBgColor,
52
+ borderRadius: (0, _index3.verticalScale)(variant === 'square' ? 5 : size),
52
53
  backgroundColor: bgColor
53
54
  };
54
55
  const animatedStyle = {
@@ -72,44 +73,47 @@ const CheckBox = ({
72
73
  onPress?.(!isChecked);
73
74
  }
74
75
  };
75
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
76
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
77
- onPressIn: () => animateScale(0.8),
78
- onPressOut: () => animateScale(1),
79
- onPress: onUserClick,
80
- disabled: disabled,
81
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.StyledView, {
82
- style: [STYLES.CONTAINER, containerStyle],
83
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
76
+ return (
77
+ /*#__PURE__*/
78
+ // <StyledView>
79
+ (0, _jsxRuntime.jsxs)(_index.StyledView, {
80
+ style: [STYLES.CONTAINER, containerStyle],
81
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
82
+ onPressIn: () => animateScale(0.8),
83
+ onPressOut: () => animateScale(1),
84
+ onPress: onUserClick,
85
+ disabled: disabled,
86
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
84
87
  style: [STYLES.CHECKBOX_PARENT_CONT, dynamicMainContStyles, checkBoxStyle, animatedStyle],
85
- children: (disableBuiltInState ? isChecked : isCheckboxChecked) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Check, {
86
- color: iconColor ?? colors.iconSecondary,
87
- size: (0, _ResponsiveCalculations.verticalScale)(iconSize)
88
+ children: (disableBuiltInState ? isChecked : isCheckboxChecked) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Check, {
89
+ color: disabled ? colors.states.disabled : iconColor ?? colors.brand.onPrimary,
90
+ size: (0, _index3.verticalScale)(iconSize)
88
91
  })
89
- }), text && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
90
- style: textStyle,
91
- fs: fs,
92
- color: textColor,
93
- variant: textVariant,
94
- primary: true,
95
- children: text
96
- })]
97
- })
92
+ })
93
+ }), label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
94
+ style: labelStyle,
95
+ fs: fs,
96
+ ff: ff,
97
+ color: textColor,
98
+ fScale: fScale,
99
+ children: label
100
+ })]
98
101
  })
99
- });
102
+ // </StyledView>
103
+ );
100
104
  };
101
105
  var _default = exports.default = CheckBox;
102
- const STYLES = _reactNative.StyleSheet.create({
106
+ const Styles = () => _reactNative.StyleSheet.create({
103
107
  CONTAINER: {
104
108
  flexDirection: 'row',
105
- gap: (0, _ResponsiveCalculations.horizontalScale)(10),
109
+ gap: (0, _index3.horizontalScale)(10),
106
110
  alignItems: 'center'
107
111
  },
108
112
  CHECKBOX_PARENT_CONT: {
109
113
  borderWidth: 0.8,
110
114
  alignItems: 'center',
111
115
  justifyContent: 'center',
112
- padding: (0, _ResponsiveCalculations.verticalScale)(7)
116
+ padding: (0, _index3.horizontalScale)(7)
113
117
  }
114
118
  });
115
119
  //# sourceMappingURL=CheckBox.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_ResponsiveCalculations","_index3","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CheckBox","variant","isChecked","defaultValue","activeBgColor","inActiveBgColor","iconColor","disableBuiltInState","disabled","text","fs","textVariant","size","iconSize","containerStyle","textStyle","checkBoxStyle","onPress","isCheckboxChecked","setIsCheckboxChecked","useState","useEffect","scaleVal","useRef","Animated","Value","current","colors","useTheme","disable","primary","bgColor","textColor","textDisable","textPrimary","dynamicMainContStyles","height","verticalScale","width","borderColor","borderRadius","backgroundColor","animatedStyle","transform","scale","animateScale","toValue","spring","speed","bounciness","useNativeDriver","start","onUserClick","jsx","StyledView","children","TouchableWithoutFeedback","onPressIn","onPressOut","jsxs","style","STYLES","CONTAINER","View","CHECKBOX_PARENT_CONT","Check","color","iconSecondary","StyledText","_default","exports","StyleSheet","create","flexDirection","gap","horizontalScale","alignItems","borderWidth","justifyContent","padding"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/CheckBox/CheckBox.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAyC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IA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F,OAAA,GACcc,QAAQ;AAGvB,MAAM6D,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC7BV,SAAS,EAAE;IACPW,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,IAAAC,uCAAe,EAAC,EAAE,CAAC;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDZ,oBAAoB,EAAE;IAClBa,WAAW,EAAE,GAAG;IAChBD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBC,OAAO,EAAE,IAAA1C,qCAAa,EAAC,CAAC;EAC5B;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_index","_index2","_index3","_index4","_jsxRuntime","CheckBox","variant","isChecked","defaultValue","activeBgColor","inActiveBgColor","iconColor","disableBuiltInState","disabled","label","fScale","fs","ff","size","iconSize","containerStyle","labelStyle","checkBoxStyle","onPress","isCheckboxChecked","setIsCheckboxChecked","useState","useEffect","STYLES","useMemo","Styles","scaleVal","useRef","Animated","Value","current","colors","useTheme","states","brand","primary","bgColor","textColor","typography","dynamicMainContStyles","height","verticalScale","width","borderColor","border","default","borderRadius","backgroundColor","animatedStyle","transform","scale","animateScale","toValue","spring","speed","bounciness","useNativeDriver","start","onUserClick","jsxs","StyledView","style","CONTAINER","children","jsx","TouchableWithoutFeedback","onPressIn","onPressOut","View","CHECKBOX_PARENT_CONT","Check","color","onPrimary","StyledText","_default","exports","StyleSheet","create","flexDirection","gap","horizontalScale","alignItems","borderWidth","justifyContent","padding"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/CheckBox/CheckBox.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAyC,IAAAM,WAAA,GAA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