@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
@@ -13,15 +13,17 @@ var _utils = require("./utils.js");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  const Chip = ({
16
- title = 'Chip',
17
- bg,
18
- titleColor,
16
+ label = 'Chip',
17
+ labelColor,
19
18
  fs,
19
+ fScale = 'sm',
20
+ ff,
21
+ bg,
20
22
  br = 7,
21
23
  gap = 7,
22
- paddingV = 9,
23
- paddingH = 13,
24
- stroke = 0.9,
24
+ paddingV = 6,
25
+ paddingH = 15,
26
+ stroke = 0.8,
25
27
  strokeColor,
26
28
  rippleColor,
27
29
  disabled = false,
@@ -29,6 +31,7 @@ const Chip = ({
29
31
  renderRightIcon,
30
32
  containerStyle,
31
33
  textStyle,
34
+ active = false,
32
35
  ...rest
33
36
  }) => {
34
37
  const theme = (0, _index2.useTheme)();
@@ -39,9 +42,10 @@ const Chip = ({
39
42
  } = (0, _utils.getChipColors)({
40
43
  theme,
41
44
  bg,
42
- titleColor,
45
+ labelColor,
43
46
  strokeColor,
44
- disabled
47
+ disabled,
48
+ active
45
49
  });
46
50
  const STYLES = _reactNative.StyleSheet.create({
47
51
  CONTAINER: {
@@ -52,7 +56,8 @@ const Chip = ({
52
56
  backgroundColor: backgroundColor,
53
57
  borderRadius: (0, _ResponsiveCalculations.verticalScale)(br),
54
58
  paddingVertical: (0, _ResponsiveCalculations.verticalScale)(paddingV),
55
- paddingHorizontal: (0, _ResponsiveCalculations.horizontalScale)(paddingH),
59
+ paddingLeft: (0, _ResponsiveCalculations.horizontalScale)((renderLeftIcon && paddingH / 2) ?? paddingH),
60
+ paddingRight: (0, _ResponsiveCalculations.horizontalScale)((renderRightIcon && paddingH / 2) ?? paddingH),
56
61
  gap: (0, _ResponsiveCalculations.horizontalScale)(gap)
57
62
  },
58
63
  TEXT: {
@@ -62,27 +67,18 @@ const Chip = ({
62
67
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
63
68
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
64
69
  alignSelf: "flex-start",
65
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
66
- android_ripple: {
67
- color: rippleColor
68
- },
69
- ...rest,
70
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
70
71
  disabled: disabled,
72
+ ...rest,
71
73
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.StyledView, {
72
74
  style: [STYLES.CONTAINER, containerStyle],
73
- children: [renderLeftIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
74
- disabled: disabled,
75
- children: renderLeftIcon
76
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
77
- primary: true,
78
- variant: "h5",
75
+ children: [/*#__PURE__*/_react.default.isValidElement(renderLeftIcon) && renderLeftIcon, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
76
+ fScale: fScale,
77
+ ff: ff,
79
78
  fs: fs,
80
79
  style: [STYLES.TEXT, textStyle],
81
- children: title
82
- }), renderRightIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
83
- disabled: disabled,
84
- children: renderRightIcon
85
- })]
80
+ children: label
81
+ }), /*#__PURE__*/_react.default.isValidElement(renderRightIcon) && renderRightIcon]
86
82
  })
87
83
  })
88
84
  })
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_ResponsiveCalculations","_index2","_utils","_jsxRuntime","e","__esModule","default","Chip","title","bg","titleColor","fs","br","gap","paddingV","paddingH","stroke","strokeColor","rippleColor","disabled","renderLeftIcon","renderRightIcon","containerStyle","textStyle","rest","theme","useTheme","buttonTextColor","buttonBorderColor","backgroundColor","getChipColors","STYLES","StyleSheet","create","CONTAINER","flexDirection","alignItems","borderWidth","borderColor","borderRadius","verticalScale","paddingVertical","paddingHorizontal","horizontalScale","TEXT","color","jsx","Fragment","children","StyledView","alignSelf","Pressable","android_ripple","jsxs","style","TouchableOpacity","StyledText","primary","variant","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Chip/Chip.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;AACA,IAAAK,MAAA,GAAAL,OAAA;AAAwC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGxC,MAAMG,IAAyB,GAAGA,CAAC;EAC/BC,KAAK,GAAG,MAAM;EACdC,EAAE;EACFC,UAAU;EACVC,EAAE;EACFC,EAAE,GAAG,CAAC;EACNC,GAAG,GAAG,CAAC;EACPC,QAAQ,GAAG,CAAC;EACZC,QAAQ,GAAG,EAAE;EACbC,MAAM,GAAG,GAAG;EACZC,WAAW;EACXC,WAAW;EACXC,QAAQ,GAAG,KAAK;EAChBC,cAAc;EACdC,eAAe;EACfC,cAAc;EACdC,SAAS;EACT,GAAGC;AACP,CAAC,KAAK;EAEF,MAAMC,KAAU,GAAG,IAAAC,gBAAQ,EAAC,CAAC;EAE7B,MAAM;IAAEC,eAAe;IAAEC,iBAAiB;IAAEC;EAAgB,CAAC,GAAG,IAAAC,oBAAa,EAAC;IAC1EL,KAAK;IACLhB,EAAE;IACFC,UAAU;IACVO,WAAW;IACXE;EACJ,CAAC,CAAC;EAEF,MAAMY,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC7BC,SAAS,EAAE;MACPC,aAAa,EAAE,KAAK;MACpBC,UA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CAAE;YAAAyB,QAAA,EAAExC;UAAK,CAAa,CAAC,EAE1Fa,eAAe,iBACf,IAAAlB,WAAA,CAAA2C,GAAA,EAAChD,YAAA,CAAAyD,gBAAgB;YACbpC,QAAQ,EAAEA,QAAS;YAAA6B,QAAA,EAElB3B;UAAe,CACF,CAAC;QAAA,CAEf;MAAC,CAEN;IAAC,CACJ;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAsC,QAAA,GAAAC,OAAA,CAAAtD,OAAA,GACcC,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_ResponsiveCalculations","_index2","_utils","_jsxRuntime","e","__esModule","default","Chip","label","labelColor","fs","fScale","ff","bg","br","gap","paddingV","paddingH","stroke","strokeColor","rippleColor","disabled","renderLeftIcon","renderRightIcon","containerStyle","textStyle","active","rest","theme","useTheme","buttonTextColor","buttonBorderColor","backgroundColor","getChipColors","STYLES","StyleSheet","create","CONTAINER","flexDirection","alignItems","borderWidth","borderColor","borderRadius","verticalScale","paddingVertical","paddingLeft","horizontalScale","paddingRight","TEXT","color","jsx","Fragment","children","StyledView","alignSelf","TouchableOpacity","jsxs","style","React","isValidElement","StyledText","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Chip/Chip.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;AACA,IAAAK,MAAA,GAAAL,OAAA;AAAwC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGxC,MAAMG,IAAmB,GAAGA,CAAC;EACzBC,KAAK,GAAG,MAAM;EACdC,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Q,IAAA3B,WAAA,CAAA+C,GAAA,EAAA/C,WAAA,CAAAgD,QAAA;IAAAC,QAAA,eACJ,IAAAjD,WAAA,CAAA+C,GAAA,EAACnD,MAAA,CAAAsD,UAAU;MAACC,SAAS,EAAC,YAAY;MAAAF,QAAA,eAC9B,IAAAjD,WAAA,CAAA+C,GAAA,EAACpD,YAAA,CAAAyD,gBAAgB;QACblC,QAAQ,EAAEA,QAAS;QAAA,GACfM,IAAI;QAAAyB,QAAA,eAER,IAAAjD,WAAA,CAAAqD,IAAA,EAACzD,MAAA,CAAAsD,UAAU;UAACI,KAAK,EAAE,CAACvB,MAAM,CAACG,SAAS,EAAEb,cAAc,CAAE;UAAA4B,QAAA,GAE9C,aAAAM,cAAK,CAACC,cAAc,CAACrC,cAAc,CAAC,IAAIA,cAAc,eAE1D,IAAAnB,WAAA,CAAA+C,GAAA,EAACnD,MAAA,CAAA6D,UAAU;YAACjD,MAAM,EAAEA,MAAO;YAACC,EAAE,EAAEA,EAAG;YAACF,EAAE,EAAEA,EAAG;YAAC+C,KAAK,EAAE,CAACvB,MAAM,CAACc,IAAI,EAAEvB,SAAS,CAAE;YAAA2B,QAAA,EAAE5C;UAAK,CAAa,CAAC,EAE7F,aAAAkD,cAAK,CAACC,cAAc,CAACpC,eAAe,CAAC,IAAIA,eAAe;QAAA,CAEpD;MAAC,CAEC;IAAC,CACX;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAsC,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GACcC,IAAI","ignoreList":[]}
@@ -4,64 +4,77 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getChipColors = void 0;
7
+ var _color = _interopRequireDefault(require("color"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
9
  const getBorderColor = ({
8
10
  theme,
9
11
  strokeColor,
10
- disabled
12
+ disabled,
13
+ active
11
14
  }) => {
12
15
  if (disabled) {
13
- return theme.colors.disable;
14
- }
15
- if (strokeColor) {
16
+ return theme.colors.border.strong;
17
+ } else if (strokeColor) {
16
18
  return strokeColor;
19
+ } else if (active) {
20
+ return (0, _color.default)(theme.colors.brand.primary).alpha(0.3).rgb().toString();
17
21
  }
18
- return theme.colors.outline;
22
+ return theme.colors.border.default;
19
23
  };
20
24
  const getTextColor = ({
21
25
  theme,
22
- titleColor,
26
+ labelColor,
23
27
  disabled
24
28
  }) => {
25
29
  if (disabled) {
26
- return theme.colors.textDisable;
27
- } else if (titleColor) {
28
- return titleColor;
30
+ return theme.colors.typography.disabled;
31
+ } else if (labelColor) {
32
+ return labelColor;
29
33
  }
30
- return theme.colors.textTertiary;
34
+ return theme.colors.typography.secondary;
31
35
  };
32
36
  const getBgColor = ({
33
37
  theme,
34
38
  bg,
35
- disabled
39
+ disabled,
40
+ active
36
41
  }) => {
37
42
  if (disabled) {
38
- return theme.colors.disable;
43
+ return theme.colors.states.disabled;
39
44
  } else if (bg) {
40
45
  return bg;
46
+ } else if (active) {
47
+ return (0, _color.default)(theme.colors.brand.primary).alpha(0.1).rgb().toString();
41
48
  }
42
- return theme.colors.chipBgColor;
49
+ return 'transparent';
50
+ // return theme.colors.background.default
51
+ // return Color(theme.colors.brand.primary).alpha(0.2).rgb().toString();
52
+ // return Color(theme.colors.brand.primary).alpha(0.1).rgb().toString();
43
53
  };
44
54
  const getChipColors = ({
45
55
  theme,
46
56
  bg,
47
- titleColor,
57
+ labelColor,
48
58
  strokeColor,
49
- disabled
59
+ disabled,
60
+ active
50
61
  }) => {
51
62
  const backgroundColor = getBgColor({
52
63
  theme,
53
64
  bg,
54
- disabled
65
+ disabled,
66
+ active
55
67
  });
56
68
  const buttonTextColor = getTextColor({
57
69
  theme,
58
- titleColor,
70
+ labelColor,
59
71
  disabled
60
72
  });
61
73
  const buttonBorderColor = getBorderColor({
62
74
  theme,
63
75
  strokeColor,
64
- disabled
76
+ disabled,
77
+ active
65
78
  });
66
79
  return {
67
80
  backgroundColor,
@@ -1 +1 @@
1
- {"version":3,"names":["getBorderColor","theme","strokeColor","disabled","colors","disable","outline","getTextColor","titleColor","textDisable","textTertiary","getBgColor","bg","chipBgColor","getChipColors","backgroundColor","buttonTextColor","buttonBorderColor","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Chip/utils.ts"],"mappings":";;;;;;AAEA,MAAMA,cAAc,GAAGA,CAAC;EACpBC,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,CAACE,OAAO;AAC/B,CAAC;AAGD,MAAMC,YAAY,GAAGA,CAAC;EAClBN,KAAK;EACLO,UAAU;EACVL;AAKJ,CAAC,KAAK;EACF,IAAIA,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACG,MAAM,CAACK,WAAW;EACnC,CAAC,MACI,IAAID,UAAU,EAAE;IACjB,OAAOA,UAAU;EACrB;EACA,OAAOP,KAAK,CAACG,MAAM,CAACM,YAAY;AACpC,CAAC;AAED,MAAMC,UAAU,GAAGA,CAAC;EAChBV,KAAK;EACLW,EAAE;EACFT;AAKJ,CAAC,KAAK;EACF,IAAIA,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACG,MAAM,CAACC,OAAO;EAC/B,CAAC,MACI,IAAIO,EAAE,EAAE;IACT,OAAOA,EAAE;EACb;EACA,OAAOX,KAAK,CAACG,MAAM,CAACS,WAAW;AACnC,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAC;EACnBb,KAAK;EACLW,EAAE;EACFJ,UAAU;EACVN,WAAW;EACXC;AAOJ,CAAC,KAAK;EAGF,MAAMY,eAAe,GAAGJ,UAAU,CAAC;IAC/BV,KAAK;IACLW,EAAE;IACFT;EACJ,CAAC,CAAC;EACF,MAAMa,eAAe,GAAGT,YAAY,CAAC;IACjCN,KAAK;IACLO,UAAU;IACVL;EACJ,CAAC,CAAC;EACF,MAAMc,iBAAiB,GAAGjB,cAAc,CAAC;IACrCC,KAAK;IACLC,WAAW;IACXC;EACJ,CAAC,CAAC;EAEF,OAAO;IACHY,eAAe;IACfC,eAAe;IACfC;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAJ,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["_color","_interopRequireDefault","require","e","__esModule","default","getBorderColor","theme","strokeColor","disabled","active","colors","border","strong","Color","brand","primary","alpha","rgb","toString","getTextColor","labelColor","typography","secondary","getBgColor","bg","states","getChipColors","backgroundColor","buttonTextColor","buttonBorderColor","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Chip/utils.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG1B,MAAMG,cAAc,GAAGA,CAAC;EACpBC,KAAK;EACLC,WAAW;EACXC,QAAQ;EACRC;AAMJ,CAAC,KAAK;EACF,IAAID,QAAQ,EAAE;IACV,OAAOF,KAAK,CAACI,MAAM,CAACC,MAAM,CAACC,MAAM;EACrC,CAAC,MAAM,IAAIL,WAAW,EAAE;IACpB,OAAOA,WAAW;EACtB,CAAC,MAAM,IAAIE,MAAM,EAAE;IACf,OAAO,IAAAI,cAAK,EAACP,KAAK,CAACI,MAAM,CAACI,KAAK,CAACC,OAAO,CAAC,CAACC,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACxE;EACA,OAAOZ,KAAK,CAACI,MAAM,CAACC,MAAM,CAACP,OAAO;AACtC,CAAC;AAGD,MAAMe,YAAY,GAAGA,CAAC;EAClBb,KAAK;EACLc,UAAU;EACVZ;AAKJ,CAAC,KAAK;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}
@@ -8,16 +8,16 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _index = require("../../constants/index.js");
10
10
  var _Portal = _interopRequireDefault(require("../Portal/Portal.js"));
11
+ var _index2 = require("../../hooks/index.js");
12
+ var _index3 = require("../../helpers/index.js");
11
13
  var _jsxRuntime = require("react/jsx-runtime");
12
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- 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); }
14
- 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; }
15
+ 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
16
  const Dialog = /*#__PURE__*/(0, _react.forwardRef)(({
16
- variant = 'default',
17
+ variant = 'classic',
17
18
  size = 'lg',
18
19
  fullScreen,
19
- backdropColor = 'rgba(0, 0, 0, 0.5)',
20
- // animationDuration = 800,
20
+ backdropColor,
21
21
  onClose,
22
22
  containerStyle,
23
23
  children
@@ -25,6 +25,7 @@ const Dialog = /*#__PURE__*/(0, _react.forwardRef)(({
25
25
  const [dialogVisible, setDialogVisible] = (0, _react.useState)(false);
26
26
  const scale = (0, _react.useRef)(new _reactNative.Animated.Value(0.9)).current;
27
27
  const opacity = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
28
+ const theme = (0, _index2.useTheme)();
28
29
  (0, _react.useEffect)(() => {
29
30
  _reactNative.Animated.timing(opacity, {
30
31
  toValue: dialogVisible ? 1 : 0,
@@ -53,7 +54,7 @@ const Dialog = /*#__PURE__*/(0, _react.forwardRef)(({
53
54
  }));
54
55
  const backdropAnimatedStyles = {
55
56
  opacity: opacity,
56
- backgroundColor: backdropColor
57
+ backgroundColor: backdropColor ?? theme?.colors.background.backdrop
57
58
  };
58
59
  const modalContAnimatedStyles = {
59
60
  transform: [{
@@ -64,7 +65,10 @@ const Dialog = /*#__PURE__*/(0, _react.forwardRef)(({
64
65
  const dynamicModalContStyles = {
65
66
  minHeight: fullScreen ? '100%' : 'auto',
66
67
  maxHeight: fullScreen ? '100%' : '80%',
67
- width: `${_index.dialogSizes[size]}%`
68
+ width: `${_index.dialogSizes[size]}%`,
69
+ backgroundColor: theme?.colors.background.elevated,
70
+ borderColor: theme?.colors.border.default,
71
+ borderRadius: (0, _index3.verticalScale)(40)
68
72
  };
69
73
  const renderChildrenWithVariant = () => {
70
74
  return _react.default.Children.map(children, child => {
@@ -110,10 +114,10 @@ const STYLES = _reactNative.StyleSheet.create({
110
114
  alignItems: 'center'
111
115
  },
112
116
  MODAL_CONT: {
113
- backgroundColor: '#fff',
117
+ // backgroundColor: '#fff',
114
118
  borderRadius: 5,
115
- borderWidth: 1,
116
- borderColor: '#d4d4d4'
119
+ borderWidth: 1
120
+ // borderColor: '#d4d4d4'
117
121
  }
118
122
  });
119
123
  //# sourceMappingURL=Dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_Portal","_interopRequireDefault","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Dialog","forwardRef","variant","size","fullScreen","backdropColor","onClose","containerStyle","children","ref","dialogVisible","setDialogVisible","useState","scale","useRef","Animated","Value","current","opacity","useEffect","timing","toValue","duration","useNativeDriver","start","spring","damping","stiffness","handler","BackHandler","addEventListener","hardwareBackPress","remove","useImperativeHandle","open","close","backdropAnimatedStyles","backgroundColor","modalContAnimatedStyles","transform","dynamicModalContStyles","minHeight","maxHeight","width","dialogSizes","renderChildrenWithVariant","React","Children","map","child","isValidElement","cloneElement","handleStartShouldSetResponder","Keyboard","dismiss","jsx","Fragment","name","View","style","STYLES","BACKDROP_CONT","pointerEvents","onStartShouldSetResponder","MODAL_CONT","_default","exports","StyleSheet","create","position","top","bottom","left","right","justifyContent","alignItems","borderRadius","borderWidth","borderColor"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/Dialog.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAsC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,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CAAAwC,QAAQ,CAAC2C,IAAI;UACVC,KAAK,EAAE,CAACC,MAAM,CAACI,UAAU,EAAExB,sBAAsB,EAAEF,uBAAuB,EAAE/B,cAAc,CAAE;UAC5FwD,yBAAyB,EAAEA,CAAA,KAAM,IAAK;UAAAvD,QAAA,EAErCqC,yBAAyB,CAAC;QAAC,CACjB;MAAC,CACL;IAAC,CACZ;EAAC,CACX,CAAC;AACP,CAAC,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAApF,OAAA,GACYkB,MAAM;AAGrB,MAAM4D,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC7BP,aAAa,EAAE;IACXQ,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDX,UAAU,EAAE;IACR3B,eAAe,EAAE,MAAM;IACvBuC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACjB;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_Portal","_interopRequireDefault","_index2","_index3","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Dialog","forwardRef","variant","size","fullScreen","backdropColor","onClose","containerStyle","children","ref","dialogVisible","setDialogVisible","useState","scale","useRef","Animated","Value","current","opacity","theme","useTheme","useEffect","timing","toValue","duration","useNativeDriver","start","spring","damping","stiffness","handler","BackHandler","addEventListener","hardwareBackPress","remove","useImperativeHandle","open","close","backdropAnimatedStyles","backgroundColor","colors","background","backdrop","modalContAnimatedStyles","transform","dynamicModalContStyles","minHeight","maxHeight","width","dialogSizes","elevated","borderColor","border","borderRadius","verticalScale","renderChildrenWithVariant","React","Children","map","child","isValidElement","cloneElement","handleStartShouldSetResponder","Keyboard","dismiss","jsx","Fragment","name","View","style","STYLES","BACKDROP_CONT","pointerEvents","onStartShouldSetResponder","MODAL_CONT","_default","exports","StyleSheet","create","position","top","bottom","left","right","justifyContent","alignItems","borderWidth"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/Dialog.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAA8C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAI,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,C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ACjB;MAAC,CACL;IAAC,CACZ;EAAC,CACX,CAAC;AACP,CAAC,CAAC;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAA7F,OAAA,GACYiB,MAAM;AAGrB,MAAMsE,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC7BP,aAAa,EAAE;IACXQ,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDX,UAAU,EAAE;IACR;IACArB,YAAY,EAAE,CAAC;IACfiC,WAAW,EAAE;IACb;EACJ;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -4,28 +4,28 @@ 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 _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
9
+ var _index = require("../StyledComponents/index.js");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
11
  const DialogBody = ({
13
12
  variant,
14
13
  scrollEnable = true,
15
14
  containerStyle,
16
- children
15
+ children,
16
+ ...rest
17
17
  }) => {
18
18
  const style = {
19
- paddingVertical: variant == 'default' ? (0, _ResponsiveCalculations.moderateScale)(16) : 0,
20
- paddingHorizontal: (0, _ResponsiveCalculations.moderateScale)(variant == 'default' ? 16 : 25),
21
- gap: 20
19
+ paddingVertical: variant == 'default' ? (0, _ResponsiveCalculations.verticalScale)(16) : 0,
20
+ paddingHorizontal: (0, _ResponsiveCalculations.horizontalScale)(variant == 'default' ? 16 : 25)
22
21
  };
23
22
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
24
23
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
25
24
  scrollEnabled: scrollEnable,
26
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
25
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
27
26
  style: [style, containerStyle],
28
27
  pointerEvents: "box-none",
28
+ ...rest,
29
29
  children: children
30
30
  })
31
31
  })
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ResponsiveCalculations","_jsxRuntime","e","__esModule","default","DialogBody","variant","scrollEnable","containerStyle","children","style","paddingVertical","moderateScale","paddingHorizontal","gap","jsx","Fragment","ScrollView","scrollEnabled","View","pointerEvents","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogBody.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAAqE,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQrE,MAAMG,UAA2B,GAAGA,CAAC;EACjCC,OAAO;EACPC,YAAY,GAAG,IAAI;EACnBC,cAAc;EACdC;AACJ,CAAC,KAAK;EACF,MAAMC,KAAK,GAAG;IACVC,eAAe,EAAEL,OAAO,IAAI,SAAS,GAAG,IAAAM,qCAAa,EAAC,EAAE,CAAC,GAAG,CAAC;IAC7DC,iBAAiB,EAAE,IAAAD,qCAAa,EAACN,OAAO,IAAI,SAAS,GAAG,EAAE,GAAG,EAAE,CAAC;IAChEQ,GAAG,EAAE;EACT,CAAC;EACD,oBAAQ,IAAAb,WAAA,CAAAc,GAAA,EAAAd,WAAA,CAAAe,QAAA;IAAAP,QAAA,eAEJ,IAAAR,WAAA,CAAAc,GAAA,EAAChB,YAAA,CAAAkB,UAAU;MAACC,aAAa,EAAEX,YAAa;MAAAE,QAAA,eACpC,IAAAR,WAAA,CAAAc,GAAA,EAAChB,YAAA,CAAAoB,IAAI;QAACT,KAAK,EAAE,CAACA,KAAK,EAAEF,cAAc,CAAE;QAACY,aAAa,EAAC,UAAU;QAAAX,QAAA,EACzDA;MAAQ,CACP;IAAC,CACC;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAY,QAAA,GAAAC,OAAA,CAAAlB,OAAA,GACcC,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_ResponsiveCalculations","_index","_jsxRuntime","DialogBody","variant","scrollEnable","containerStyle","children","rest","style","paddingVertical","verticalScale","paddingHorizontal","horizontalScale","jsx","Fragment","ScrollView","scrollEnabled","StyledView","pointerEvents","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogBody.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAAiD,IAAAG,WAAA,GAAAH,OAAA;AAOjD,MAAMI,UAAqB,GAAGA,CAAC;EAC3BC,OAAO;EACPC,YAAY,GAAG,IAAI;EACnBC,cAAc;EACdC,QAAQ;EACR,GAAGC;AACP,CAAC,KAAK;EACF,MAAMC,KAAK,GAAG;IACVC,eAAe,EAAEN,OAAO,IAAI,SAAS,GAAG,IAAAO,qCAAa,EAAC,EAAE,CAAC,GAAG,CAAC;IAC7DC,iBAAiB,EAAE,IAAAC,uCAAe,EAACT,OAAO,IAAI,SAAS,GAAG,EAAE,GAAG,EAAE;EACrE,CAAC;EACD,oBAAQ,IAAAF,WAAA,CAAAY,GAAA,EAAAZ,WAAA,CAAAa,QAAA;IAAAR,QAAA,eACJ,IAAAL,WAAA,CAAAY,GAAA,EAAChB,YAAA,CAAAkB,UAAU;MAACC,aAAa,EAAEZ,YAAa;MAAAE,QAAA,eACpC,IAAAL,WAAA,CAAAY,GAAA,EAACb,MAAA,CAAAiB,UAAU;QAACT,KAAK,EAAE,CAACA,KAAK,EAAEH,cAAc,CAAE;QAACa,aAAa,EAAC,UAAU;QAAA,GAAKX,IAAI;QAAAD,QAAA,EACxEA;MAAQ,CACD;IAAC,CACL;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAa,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACcnB,UAAU","ignoreList":[]}
@@ -4,29 +4,27 @@ 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 _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
10
9
  var _index = require("../StyledComponents/index.js");
11
10
  var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
11
  const DialogDescription = ({
14
- textVariant = 'h5',
15
- fs,
12
+ fScale = 'sm',
16
13
  containerStyle,
17
14
  textStyle,
18
- children
15
+ children,
16
+ ...rest
19
17
  }) => {
20
18
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
21
19
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
22
20
  style: containerStyle,
23
21
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
24
22
  style: [{
25
- lineHeight: (0, _ResponsiveCalculations.moderateVerticalScale)(13)
23
+ lineHeight: (0, _ResponsiveCalculations.verticalScale)(20)
26
24
  }, textStyle],
27
- color: "#a1a1aa",
28
- variant: textVariant,
29
- fs: fs,
25
+ variant: "tertiary",
26
+ fScale: fScale,
27
+ ...rest,
30
28
  children: children
31
29
  })
32
30
  })
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ResponsiveCalculations","_index","_jsxRuntime","e","__esModule","default","DialogDescription","textVariant","fs","containerStyle","textStyle","children","jsx","Fragment","View","style","StyledText","lineHeight","moderateVerticalScale","color","variant","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogDescription.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAiD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGjD,MAAMG,iBAAmD,GAAGA,CAAC;EACzDC,WAAW,GAAG,IAAI;EAClBC,EAAE;EACFC,cAAc;EACdC,SAAS;EACTC;AACJ,CAAC,KAAK;EACF,oBAAQ,IAAAT,WAAA,CAAAU,GAAA,EAAAV,WAAA,CAAAW,QAAA;IAAAF,QAAA,eACJ,IAAAT,WAAA,CAAAU,GAAA,EAACb,YAAA,CAAAe,IAAI;MAACC,KAAK,EAAEN,cAAe;MAAAE,QAAA,eACxB,IAAAT,WAAA,CAAAU,GAAA,EAACX,MAAA,CAAAe,UAAU;QACPD,KAAK,EAAE,CAAC;UAAEE,UAAU,EAAE,IAAAC,6CAAqB,EAAC,EAAE;QAAE,CAAC,EAAER,SAAS,CAAE;QAC9DS,KAAK,EAAC,SAAS;QACfC,OAAO,EAAEb,WAAY;QACrBC,EAAE,EAAEA,EAAG;QAAAG,QAAA,EAENA;MAAQ,CACD;IAAC,CACX;EAAC,CACT,CAAC;AACP,CAAC;AAAA,IAAAU,QAAA,GAAAC,OAAA,CAAAjB,OAAA,GACcC,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_ResponsiveCalculations","_index","_jsxRuntime","DialogDescription","fScale","containerStyle","textStyle","children","rest","jsx","Fragment","View","style","StyledText","lineHeight","verticalScale","variant","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogDescription.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAiD,IAAAG,WAAA,GAAAH,OAAA;AAGjD,MAAMI,iBAA6C,GAAGA,CAAC;EACnDC,MAAM,GAAG,IAAI;EACbC,cAAc;EACdC,SAAS;EACTC,QAAQ;EACR,GAAGC;AACP,CAAC,KAAK;EACF,oBAAQ,IAAAN,WAAA,CAAAO,GAAA,EAAAP,WAAA,CAAAQ,QAAA;IAAAH,QAAA,eACJ,IAAAL,WAAA,CAAAO,GAAA,EAACX,YAAA,CAAAa,IAAI;MAACC,KAAK,EAAEP,cAAe;MAAAE,QAAA,eACxB,IAAAL,WAAA,CAAAO,GAAA,EAACR,MAAA,CAAAY,UAAU;QACPD,KAAK,EAAE,CAAC;UAAEE,UAAU,EAAE,IAAAC,qCAAa,EAAC,EAAE;QAAE,CAAC,EAAET,SAAS,CAAE;QACtDU,OAAO,EAAC,UAAU;QAClBZ,MAAM,EAAEA,MAAO;QAAA,GACXI,IAAI;QAAAD,QAAA,EAEPA;MAAQ,CACD;IAAC,CACX;EAAC,CACT,CAAC;AACP,CAAC;AAAA,IAAAU,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACchB,iBAAiB","ignoreList":[]}
@@ -4,35 +4,32 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _index = _interopRequireDefault(require("../Stack/index.js"));
10
7
  var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
8
+ var _index = require("../../hooks/index.js");
9
+ var _index2 = require("../StyledComponents/index.js");
11
10
  var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
11
  const DialogFoot = ({
14
12
  variant,
15
13
  containerStyle,
16
- children
14
+ children,
15
+ ...rest
17
16
  }) => {
17
+ const theme = (0, _index.useTheme)();
18
18
  const dynamicStyles = {
19
19
  borderTopWidth: variant === 'default' ? 0.7 : 0,
20
- padding: (0, _ResponsiveCalculations.moderateScale)(variant === 'default' ? 16 : 20),
21
- paddingHorizontal: (0, _ResponsiveCalculations.moderateScale)(variant === 'default' ? 16 : 25)
20
+ borderColor: theme?.colors.border.subtle,
21
+ padding: (0, _ResponsiveCalculations.verticalScale)(variant === 'default' ? 16 : 20),
22
+ paddingHorizontal: (0, _ResponsiveCalculations.horizontalScale)(variant === 'default' ? 16 : 25),
23
+ justifyContent: 'flex-end',
24
+ flexDirection: 'row'
22
25
  };
23
26
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
24
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default.H, {
25
- style: [STYLES.CONTAINER, dynamicStyles, containerStyle],
27
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StyledView, {
28
+ style: [dynamicStyles, containerStyle],
29
+ ...rest,
26
30
  children: children
27
31
  })
28
32
  });
29
33
  };
30
34
  var _default = exports.default = DialogFoot;
31
- const STYLES = _reactNative.StyleSheet.create({
32
- CONTAINER: {
33
- borderColor: '#d4d4d4',
34
- justifyContent: 'flex-end',
35
- gap: (0, _ResponsiveCalculations.moderateScale)(15)
36
- }
37
- });
38
35
  //# sourceMappingURL=DialogFoot.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_ResponsiveCalculations","_jsxRuntime","e","__esModule","default","DialogFoot","variant","containerStyle","children","dynamicStyles","borderTopWidth","padding","moderateScale","paddingHorizontal","jsx","Fragment","H","style","STYLES","CONTAINER","_default","exports","StyleSheet","create","borderColor","justifyContent","gap"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogFoot.tsx"],"mappings":";;;;;;AAAA,IAA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","_index","_index2","_jsxRuntime","DialogFoot","variant","containerStyle","children","rest","theme","useTheme","dynamicStyles","borderTopWidth","borderColor","colors","border","subtle","padding","verticalScale","paddingHorizontal","horizontalScale","justifyContent","flexDirection","jsx","Fragment","StyledView","style","_default","exports","default"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogFoot.tsx"],"mappings":";;;;;;AAEA,IAAAA,uBAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAAiD,IAAAG,WAAA,GAAAH,OAAA;AAOjD,MAAMI,UAAqB,GAAGA,CAAC;EAC3BC,OAAO;EACPC,cAAc;EACdC,QAAQ;EACR,GAAGC;AACP,CAAC,KAAK;EACF,MAAMC,KAAK,GAAG,IAAAC,eAAQ,EAAC,CAAC;EAExB,MAAMC,aAAwB,GAAG;IAC7BC,cAAc,EAAEP,OAAO,KAAK,SAAS,GAAG,GAAG,GAAG,CAAC;IAC/CQ,WAAW,EAAEJ,KAAK,EAAEK,MAAM,CAACC,MAAM,CAACC,MAAM;IACxCC,OAAO,EAAE,IAAAC,qCAAa,EAACb,OAAO,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,CAAC;IACvDc,iBAAiB,EAAE,IAAAC,uCAAe,EAACf,OAAO,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,CAAC;IACnEgB,cAAc,EAAE,UAAU;IAC1BC,aAAa,EAAE;EACnB,CAAC;EACD,oBAAQ,IAAAnB,WAAA,CAAAoB,GAAA,EAAApB,WAAA,CAAAqB,QAAA;IAAAjB,QAAA,eACJ,IAAAJ,WAAA,CAAAoB,GAAA,EAACrB,OAAA,CAAAuB,UAAU;MAACC,KAAK,EAAE,CAACf,aAAa,EAAEL,cAAc,CAAE;MAAA,GAAKE,IAAI;MAAAD,QAAA,EACvDA;IAAQ,CACD;EAAC,CACf,CAAC;AACP,CAAC;AAAA,IAAAoB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACczB,UAAU","ignoreList":[]}
@@ -4,56 +4,51 @@ 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 = require("react");
8
8
  var _reactNative = require("react-native");
9
9
  var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
10
- var _index = require("../../assets/svg/index.js");
11
- var _index2 = require("../StyledComponents/index.js");
10
+ var _index = require("../StyledComponents/index.js");
11
+ var _index2 = require("../../hooks/index.js");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
13
  const DialogHead = ({
15
14
  variant = 'default',
16
- title = 'Title',
17
- textVariant = 'h4',
15
+ title,
16
+ fScale = 'xl',
18
17
  fs,
18
+ ff,
19
19
  containerStyle,
20
- textStyle,
20
+ titleStyle,
21
21
  children
22
22
  }) => {
23
+ const theme = (0, _index2.useTheme)();
24
+ const STYLES = (0, _react.useMemo)(Styles, []);
23
25
  const dynamicStyles = {
24
26
  borderBottomWidth: variant == 'default' ? 0.7 : 0,
25
- padding: (0, _ResponsiveCalculations.moderateScale)(variant === 'default' ? 16 : 25)
27
+ borderColor: theme?.colors.border.subtle,
28
+ padding: (0, _ResponsiveCalculations.verticalScale)(variant === 'default' ? 16 : 25)
26
29
  };
27
30
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
31
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
29
32
  style: [STYLES.CONTAINER, dynamicStyles, containerStyle],
30
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
31
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StyledText, {
32
- style: [STYLES.HEADER_TEXT, textStyle],
33
- fs: fs,
34
- variant: textVariant,
35
- children: title
36
- }), children]
37
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
38
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.X, {
39
- color: "gray",
40
- size: (0, _ResponsiveCalculations.moderateScale)(20)
41
- })
42
- })]
33
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledText, {
34
+ style: [STYLES.HEADER_TEXT, titleStyle],
35
+ fs: fs,
36
+ ff: ff,
37
+ fScale: fScale,
38
+ children: title || children
39
+ })
43
40
  })
44
41
  });
45
42
  };
46
43
  var _default = exports.default = DialogHead;
47
- const STYLES = _reactNative.StyleSheet.create({
44
+ const Styles = () => _reactNative.StyleSheet.create({
48
45
  CONTAINER: {
49
- borderColor: '#d4d4d4',
50
- paddingBottom: (0, _ResponsiveCalculations.moderateScale)(16),
46
+ paddingBottom: (0, _ResponsiveCalculations.verticalScale)(16),
51
47
  justifyContent: 'space-between',
52
48
  flexDirection: 'row'
53
49
  },
54
50
  HEADER_TEXT: {
55
- fontWeight: 'bold',
56
- color: '#000'
51
+ fontWeight: 'bold'
57
52
  }
58
53
  });
59
54
  //# sourceMappingURL=DialogHead.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ResponsiveCalculations","_index","_index2","_jsxRuntime","e","__esModule","default","DialogHead","variant","title","textVariant","fs","containerStyle","textStyle","children","dynamicStyles","borderBottomWidth","padding","moderateScale","jsx","Fragment","jsxs","View","style","STYLES","CONTAINER","StyledText","HEADER_TEXT","TouchableOpacity","X","color","size","_default","exports","StyleSheet","create","borderColor","paddingBottom","justifyContent","flexDirection","fontWeight"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogHead.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAC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MAAM;UAACC,IAAI,EAAE,IAAAb,qCAAa,EAAC,EAAE;QAAE,CAAE;MAAC,CAC7B,CAAC;IAAA,CACjB;EAAC,CACT,CAAC;AACP,CAAC;AAAA,IAAAc,QAAA,GAAAC,OAAA,CAAA3B,OAAA,GACcC,UAAU;AAIzB,MAAMiB,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC7BV,SAAS,EAAE;IACPW,WAAW,EAAE,SAAS;IACtBC,aAAa,EAAE,IAAAnB,qCAAa,EAAC,EAAE,CAAC;IAChCoB,cAAc,EAAE,eAAe;IAC/BC,aAAa,EAAE;EACnB,CAAC;EACDZ,WAAW,EAAE;IACTa,UAAU,EAAE,MAAM;IAClBV,KAAK,EAAE;EACX;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_ResponsiveCalculations","_index","_index2","_jsxRuntime","DialogHead","variant","title","fScale","fs","ff","containerStyle","titleStyle","children","theme","useTheme","STYLES","useMemo","Styles","dynamicStyles","borderBottomWidth","borderColor","colors","border","subtle","padding","verticalScale","jsx","Fragment","View","style","CONTAINER","StyledText","HEADER_TEXT","_default","exports","default","StyleSheet","create","paddingBottom","justifyContent","flexDirection","fontWeight"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/Dialog/DialogHead.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAAuC,IAAAK,WAAA,GAAAL,OAAA;AAOvC,MAAMM,UAAqB,GAAGA,CAAC;EAC3BC,OAAO,GAAG,SAAS;EACnBC,KAAK;EACLC,MAAM,GAAG,IAAI;EACbC,EAAE;EACFC,EAAE;EACFC,cAAc;EACdC,UAAU;EACVC;AACJ,CAAC,KAAK;EACF,MAAMC,KAAK,GAAG,IAAAC,gBAA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
  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 _index2 = require("../../hooks/index.js");
10
9
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
10
  const Divider = ({
13
- thickness = 0.2,
11
+ thickness = 0.7,
14
12
  color,
15
13
  style
16
14
  }) => {
17
15
  const theme = (0, _index2.useTheme)();
18
16
  const dynamicStyles = {
19
17
  borderWidth: thickness,
20
- borderColor: color ?? theme?.colors.dividerColor
18
+ borderColor: color ?? theme?.colors.border.subtle
21
19
  };
22
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
23
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
24
- style: [dynamicStyles, style]
25
- })
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
21
+ style: [dynamicStyles, style]
26
22
  });
27
23
  };
28
24
  var _default = exports.default = Divider;