@nexara/nativeflow 0.1.7 → 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 (453) 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 +23 -24
  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 +41 -38
  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 -11
  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 -19
  23. package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
  24. package/lib/commonjs/components/Dialog/DialogHead.js +20 -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 +2 -3
  31. package/lib/commonjs/components/Icon/Icon.js.map +1 -1
  32. package/lib/commonjs/components/IconButton/IconButton.js +1 -2
  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 +12 -8
  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/NativeProvider.js +1 -2
  49. package/lib/commonjs/components/Provider/NativeProvider.js.map +1 -1
  50. package/lib/commonjs/components/Radio/RadioGroup.js +46 -0
  51. package/lib/commonjs/components/Radio/RadioGroup.js.map +1 -0
  52. package/lib/commonjs/components/Radio/RadioItem.js +77 -0
  53. package/lib/commonjs/components/Radio/RadioItem.js.map +1 -0
  54. package/lib/commonjs/components/Radio/index.js +15 -0
  55. package/lib/commonjs/components/Radio/index.js.map +1 -0
  56. package/lib/commonjs/components/Slider/Slider.js +4 -4
  57. package/lib/commonjs/components/Slider/Slider.js.map +1 -1
  58. package/lib/commonjs/components/Stack/HStack.js +3 -9
  59. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  60. package/lib/commonjs/components/Stack/VStack.js +4 -10
  61. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  62. package/lib/commonjs/components/StyledComponents/StyledText.js +20 -9
  63. package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
  64. package/lib/commonjs/components/StyledComponents/StyledView.js +3 -3
  65. package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
  66. package/lib/commonjs/components/Surface/Surface.js +24 -21
  67. package/lib/commonjs/components/Surface/Surface.js.map +1 -1
  68. package/lib/commonjs/components/Switch/Switch.js +13 -10
  69. package/lib/commonjs/components/Switch/Switch.js.map +1 -1
  70. package/lib/commonjs/components/UserInput/UserInput.js +17 -14
  71. package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
  72. package/lib/commonjs/components/UserInput/generateColors.js +3 -3
  73. package/lib/commonjs/components/UserInput/generateColors.js.map +1 -1
  74. package/lib/commonjs/constants/typographySizes.js +11 -7
  75. package/lib/commonjs/constants/typographySizes.js.map +1 -1
  76. package/lib/commonjs/helpers/ResponsiveCalculations.js +25 -31
  77. package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
  78. package/lib/commonjs/index.js +23 -42
  79. package/lib/commonjs/index.js.map +1 -1
  80. package/lib/commonjs/themes/DarkTheme.js +185 -25
  81. package/lib/commonjs/themes/DarkTheme.js.map +1 -1
  82. package/lib/commonjs/themes/LightTheme.js +89 -81
  83. package/lib/commonjs/themes/LightTheme.js.map +1 -1
  84. package/lib/commonjs/types/divider.type.js +6 -0
  85. package/lib/commonjs/types/divider.type.js.map +1 -0
  86. package/lib/commonjs/types/index.js +44 -0
  87. package/lib/commonjs/types/index.js.map +1 -1
  88. package/lib/commonjs/types/link.type.js +6 -0
  89. package/lib/commonjs/types/link.type.js.map +1 -0
  90. package/lib/commonjs/types/radio.type.js +6 -0
  91. package/lib/commonjs/types/radio.type.js.map +1 -0
  92. package/lib/commonjs/types/surface.type.js +6 -0
  93. package/lib/commonjs/types/surface.type.js.map +1 -0
  94. package/lib/module/components/Avatar/AvatarImage.js +3 -8
  95. package/lib/module/components/Avatar/AvatarImage.js.map +1 -1
  96. package/lib/module/components/Avatar/AvatarText.js +2 -3
  97. package/lib/module/components/Avatar/AvatarText.js.map +1 -1
  98. package/lib/module/components/Button/Button.js +22 -22
  99. package/lib/module/components/Button/Button.js.map +1 -1
  100. package/lib/module/components/Button/utils.js +34 -27
  101. package/lib/module/components/Button/utils.js.map +1 -1
  102. package/lib/module/components/CheckBox/CheckBox.js +35 -30
  103. package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
  104. package/lib/module/components/Chip/Chip.js +22 -26
  105. package/lib/module/components/Chip/Chip.js.map +1 -1
  106. package/lib/module/components/Chip/utils.js +30 -18
  107. package/lib/module/components/Chip/utils.js.map +1 -1
  108. package/lib/module/components/Dialog/Dialog.js +13 -9
  109. package/lib/module/components/Dialog/Dialog.js.map +1 -1
  110. package/lib/module/components/Dialog/DialogBody.js +9 -8
  111. package/lib/module/components/Dialog/DialogBody.js.map +1 -1
  112. package/lib/module/components/Dialog/DialogDescription.js +8 -9
  113. package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
  114. package/lib/module/components/Dialog/DialogFoot.js +14 -17
  115. package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
  116. package/lib/module/components/Dialog/DialogHead.js +22 -27
  117. package/lib/module/components/Dialog/DialogHead.js.map +1 -1
  118. package/lib/module/components/Divider/Divider.js +5 -8
  119. package/lib/module/components/Divider/Divider.js.map +1 -1
  120. package/lib/module/components/Grid/Grid.js +4 -3
  121. package/lib/module/components/Grid/Grid.js.map +1 -1
  122. package/lib/module/components/Icon/Icon.js +1 -1
  123. package/lib/module/components/Icon/Icon.js.map +1 -1
  124. package/lib/module/components/IconButton/IconButton.js.map +1 -1
  125. package/lib/module/components/Link/Link.js +15 -19
  126. package/lib/module/components/Link/Link.js.map +1 -1
  127. package/lib/module/components/Menu/Menu.js +11 -6
  128. package/lib/module/components/Menu/Menu.js.map +1 -1
  129. package/lib/module/components/Menu/MenuItem.js +4 -5
  130. package/lib/module/components/Menu/MenuItem.js.map +1 -1
  131. package/lib/module/components/Menu/MenuItemLabel.js +2 -7
  132. package/lib/module/components/Menu/MenuItemLabel.js.map +1 -1
  133. package/lib/module/components/Progress/Progress.js +7 -6
  134. package/lib/module/components/Progress/Progress.js.map +1 -1
  135. package/lib/module/components/Radio/RadioGroup.js +41 -0
  136. package/lib/module/components/Radio/RadioGroup.js.map +1 -0
  137. package/lib/module/components/Radio/RadioItem.js +73 -0
  138. package/lib/module/components/Radio/RadioItem.js.map +1 -0
  139. package/lib/module/components/Radio/index.js +10 -0
  140. package/lib/module/components/Radio/index.js.map +1 -0
  141. package/lib/module/components/Slider/Slider.js +5 -5
  142. package/lib/module/components/Slider/Slider.js.map +1 -1
  143. package/lib/module/components/Stack/HStack.js +3 -7
  144. package/lib/module/components/Stack/HStack.js.map +1 -1
  145. package/lib/module/components/Stack/VStack.js +4 -8
  146. package/lib/module/components/Stack/VStack.js.map +1 -1
  147. package/lib/module/components/StyledComponents/StyledText.js +20 -8
  148. package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
  149. package/lib/module/components/StyledComponents/StyledView.js +3 -3
  150. package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
  151. package/lib/module/components/Surface/Surface.js +24 -20
  152. package/lib/module/components/Surface/Surface.js.map +1 -1
  153. package/lib/module/components/Switch/Switch.js +14 -11
  154. package/lib/module/components/Switch/Switch.js.map +1 -1
  155. package/lib/module/components/UserInput/UserInput.js +18 -15
  156. package/lib/module/components/UserInput/UserInput.js.map +1 -1
  157. package/lib/module/components/UserInput/generateColors.js +3 -3
  158. package/lib/module/components/UserInput/generateColors.js.map +1 -1
  159. package/lib/module/constants/typographySizes.js +11 -7
  160. package/lib/module/constants/typographySizes.js.map +1 -1
  161. package/lib/module/helpers/ResponsiveCalculations.js +25 -28
  162. package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
  163. package/lib/module/index.js +3 -4
  164. package/lib/module/index.js.map +1 -1
  165. package/lib/module/themes/DarkTheme.js +188 -24
  166. package/lib/module/themes/DarkTheme.js.map +1 -1
  167. package/lib/module/themes/LightTheme.js +88 -81
  168. package/lib/module/themes/LightTheme.js.map +1 -1
  169. package/lib/module/themes/index.js +0 -1
  170. package/lib/module/themes/index.js.map +1 -1
  171. package/lib/module/types/divider.type.js +4 -0
  172. package/lib/module/types/divider.type.js.map +1 -0
  173. package/lib/module/types/index.js +4 -0
  174. package/lib/module/types/index.js.map +1 -1
  175. package/lib/module/types/link.type.js +4 -0
  176. package/lib/module/types/link.type.js.map +1 -0
  177. package/lib/module/types/radio.type.js +4 -0
  178. package/lib/module/types/radio.type.js.map +1 -0
  179. package/lib/module/types/surface.type.js +4 -0
  180. package/lib/module/types/surface.type.js.map +1 -0
  181. package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts +2 -2
  182. package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts +2 -2
  184. package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/src/components/Button/Button.d.ts +2 -2
  186. package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/src/components/Button/utils.d.ts +0 -1
  188. package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts +2 -2
  190. package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts +2 -2
  192. package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/src/components/Chip/utils.d.ts +3 -2
  194. package/lib/typescript/commonjs/src/components/Chip/utils.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
  196. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts +4 -4
  197. package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -1
  198. package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts +2 -2
  199. package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts +2 -2
  201. package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  202. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts +2 -2
  203. package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -1
  204. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts +3 -8
  205. package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
  206. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts +2 -2
  207. package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -1
  208. package/lib/typescript/commonjs/src/components/Link/Link.d.ts +3 -10
  209. package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts +2 -2
  211. package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts +2 -2
  213. package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts +2 -2
  215. package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +2 -2
  217. package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/src/components/Radio/RadioGroup.d.ts +5 -0
  219. package/lib/typescript/commonjs/src/components/Radio/RadioGroup.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/src/components/Radio/RadioItem.d.ts +5 -0
  221. package/lib/typescript/commonjs/src/components/Radio/RadioItem.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/src/components/Radio/index.d.ts +6 -0
  223. package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts +2 -2
  225. package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts +2 -2
  227. package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts +2 -2
  229. package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts +3 -3
  231. package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts +2 -2
  233. package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +36 -2
  235. package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/constants/typographySizes.d.ts +2 -8
  237. package/lib/typescript/commonjs/src/constants/typographySizes.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +0 -2
  239. package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/src/index.d.ts +4 -4
  241. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -1
  244. package/lib/typescript/commonjs/src/types/avatar.type.d.ts +0 -2
  245. package/lib/typescript/commonjs/src/types/avatar.type.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/src/types/button.type.d.ts +20 -20
  247. package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/src/types/checkbox.type.d.ts +20 -14
  249. package/lib/typescript/commonjs/src/types/checkbox.type.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/types/chip.type.d.ts +21 -13
  251. package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/src/types/common.type.d.ts +71 -22
  253. package/lib/typescript/commonjs/src/types/common.type.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/src/types/dialog.type.d.ts +13 -12
  255. package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/src/types/divider.type.d.ts +11 -0
  257. package/lib/typescript/commonjs/src/types/divider.type.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/src/types/grid.type.d.ts +2 -1
  259. package/lib/typescript/commonjs/src/types/grid.type.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/types/index.d.ts +4 -0
  261. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/types/link.type.d.ts +12 -0
  263. package/lib/typescript/commonjs/src/types/link.type.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/src/types/menu.type.d.ts +2 -15
  265. package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/types/radio.type.d.ts +61 -0
  267. package/lib/typescript/commonjs/src/types/radio.type.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/src/types/stack.type.d.ts +6 -14
  269. package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +24 -71
  271. package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/src/types/surface.type.d.ts +16 -0
  273. package/lib/typescript/commonjs/src/types/surface.type.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/src/types/userInput.type.d.ts +10 -14
  275. package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
  276. package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts +2 -2
  277. package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts.map +1 -1
  278. package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts +2 -2
  279. package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts.map +1 -1
  280. package/lib/typescript/module/src/components/Button/Button.d.ts +2 -2
  281. package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
  282. package/lib/typescript/module/src/components/Button/utils.d.ts +0 -1
  283. package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -1
  284. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts +2 -2
  285. package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -1
  286. package/lib/typescript/module/src/components/Chip/Chip.d.ts +2 -2
  287. package/lib/typescript/module/src/components/Chip/Chip.d.ts.map +1 -1
  288. package/lib/typescript/module/src/components/Chip/utils.d.ts +3 -2
  289. package/lib/typescript/module/src/components/Chip/utils.d.ts.map +1 -1
  290. package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
  291. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts +4 -4
  292. package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -1
  293. package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts +2 -2
  294. package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts.map +1 -1
  295. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts +2 -2
  296. package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -1
  297. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts +2 -2
  298. package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -1
  299. package/lib/typescript/module/src/components/Divider/Divider.d.ts +3 -8
  300. package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
  301. package/lib/typescript/module/src/components/Grid/Grid.d.ts +2 -2
  302. package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -1
  303. package/lib/typescript/module/src/components/Link/Link.d.ts +3 -10
  304. package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -1
  305. package/lib/typescript/module/src/components/Menu/Menu.d.ts +2 -2
  306. package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -1
  307. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts +2 -2
  308. package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -1
  309. package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts +2 -2
  310. package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts.map +1 -1
  311. package/lib/typescript/module/src/components/Progress/Progress.d.ts +2 -2
  312. package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -1
  313. package/lib/typescript/module/src/components/Radio/RadioGroup.d.ts +5 -0
  314. package/lib/typescript/module/src/components/Radio/RadioGroup.d.ts.map +1 -0
  315. package/lib/typescript/module/src/components/Radio/RadioItem.d.ts +5 -0
  316. package/lib/typescript/module/src/components/Radio/RadioItem.d.ts.map +1 -0
  317. package/lib/typescript/module/src/components/Radio/index.d.ts +6 -0
  318. package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -0
  319. package/lib/typescript/module/src/components/Stack/HStack.d.ts +2 -2
  320. package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
  321. package/lib/typescript/module/src/components/Stack/VStack.d.ts +2 -2
  322. package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
  323. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts +2 -2
  324. package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
  325. package/lib/typescript/module/src/components/Surface/Surface.d.ts +3 -3
  326. package/lib/typescript/module/src/components/Surface/Surface.d.ts.map +1 -1
  327. package/lib/typescript/module/src/components/Switch/Switch.d.ts +2 -2
  328. package/lib/typescript/module/src/components/Switch/Switch.d.ts.map +1 -1
  329. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +36 -2
  330. package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
  331. package/lib/typescript/module/src/constants/typographySizes.d.ts +2 -8
  332. package/lib/typescript/module/src/constants/typographySizes.d.ts.map +1 -1
  333. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +0 -2
  334. package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
  335. package/lib/typescript/module/src/index.d.ts +4 -4
  336. package/lib/typescript/module/src/index.d.ts.map +1 -1
  337. package/lib/typescript/module/src/themes/DarkTheme.d.ts.map +1 -1
  338. package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -1
  339. package/lib/typescript/module/src/types/avatar.type.d.ts +0 -2
  340. package/lib/typescript/module/src/types/avatar.type.d.ts.map +1 -1
  341. package/lib/typescript/module/src/types/button.type.d.ts +20 -20
  342. package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
  343. package/lib/typescript/module/src/types/checkbox.type.d.ts +20 -14
  344. package/lib/typescript/module/src/types/checkbox.type.d.ts.map +1 -1
  345. package/lib/typescript/module/src/types/chip.type.d.ts +21 -13
  346. package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -1
  347. package/lib/typescript/module/src/types/common.type.d.ts +71 -22
  348. package/lib/typescript/module/src/types/common.type.d.ts.map +1 -1
  349. package/lib/typescript/module/src/types/dialog.type.d.ts +13 -12
  350. package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
  351. package/lib/typescript/module/src/types/divider.type.d.ts +11 -0
  352. package/lib/typescript/module/src/types/divider.type.d.ts.map +1 -0
  353. package/lib/typescript/module/src/types/grid.type.d.ts +2 -1
  354. package/lib/typescript/module/src/types/grid.type.d.ts.map +1 -1
  355. package/lib/typescript/module/src/types/index.d.ts +4 -0
  356. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  357. package/lib/typescript/module/src/types/link.type.d.ts +12 -0
  358. package/lib/typescript/module/src/types/link.type.d.ts.map +1 -0
  359. package/lib/typescript/module/src/types/menu.type.d.ts +2 -15
  360. package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -1
  361. package/lib/typescript/module/src/types/radio.type.d.ts +61 -0
  362. package/lib/typescript/module/src/types/radio.type.d.ts.map +1 -0
  363. package/lib/typescript/module/src/types/stack.type.d.ts +6 -14
  364. package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
  365. package/lib/typescript/module/src/types/styledComponents.type.d.ts +24 -71
  366. package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -1
  367. package/lib/typescript/module/src/types/surface.type.d.ts +16 -0
  368. package/lib/typescript/module/src/types/surface.type.d.ts.map +1 -0
  369. package/lib/typescript/module/src/types/userInput.type.d.ts +10 -14
  370. package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
  371. package/package.json +9 -4
  372. package/src/components/Avatar/AvatarImage.tsx +2 -7
  373. package/src/components/Avatar/AvatarText.tsx +4 -4
  374. package/src/components/Button/Button.tsx +32 -26
  375. package/src/components/Button/utils.ts +30 -30
  376. package/src/components/CheckBox/CheckBox.tsx +30 -28
  377. package/src/components/Chip/Chip.tsx +23 -31
  378. package/src/components/Chip/utils.ts +34 -20
  379. package/src/components/Dialog/Dialog.tsx +11 -7
  380. package/src/components/Dialog/DialogBody.tsx +13 -13
  381. package/src/components/Dialog/DialogDescription.tsx +9 -9
  382. package/src/components/Dialog/DialogFoot.tsx +19 -21
  383. package/src/components/Dialog/DialogHead.tsx +15 -20
  384. package/src/components/Divider/Divider.tsx +7 -15
  385. package/src/components/Grid/Grid.tsx +6 -5
  386. package/src/components/Icon/Icon.tsx +1 -1
  387. package/src/components/IconButton/IconButton.tsx +2 -2
  388. package/src/components/Link/Link.tsx +20 -29
  389. package/src/components/Menu/Menu.tsx +9 -6
  390. package/src/components/Menu/MenuItem.tsx +6 -6
  391. package/src/components/Menu/MenuItemLabel.tsx +4 -9
  392. package/src/components/Progress/Progress.tsx +8 -7
  393. package/src/components/Radio/RadioGroup.tsx +40 -0
  394. package/src/components/Radio/RadioItem.tsx +72 -0
  395. package/src/components/Radio/index.ts +9 -0
  396. package/src/components/Slider/Slider.tsx +3 -3
  397. package/src/components/Stack/HStack.tsx +5 -8
  398. package/src/components/Stack/VStack.tsx +6 -11
  399. package/src/components/StyledComponents/StyledText.tsx +17 -8
  400. package/src/components/StyledComponents/StyledView.tsx +4 -4
  401. package/src/components/Surface/Surface.tsx +20 -27
  402. package/src/components/Switch/Switch.tsx +12 -10
  403. package/src/components/UserInput/UserInput.tsx +19 -16
  404. package/src/components/UserInput/generateColors.ts +3 -3
  405. package/src/constants/typographySizes.ts +13 -15
  406. package/src/helpers/ResponsiveCalculations.ts +25 -29
  407. package/src/index.ts +5 -6
  408. package/src/themes/DarkTheme.ts +169 -30
  409. package/src/themes/LightTheme.ts +78 -85
  410. package/src/themes/index.ts +0 -1
  411. package/src/types/avatar.type.ts +0 -3
  412. package/src/types/button.type.ts +20 -20
  413. package/src/types/checkbox.type.ts +22 -15
  414. package/src/types/chip.type.ts +24 -15
  415. package/src/types/common.type.ts +81 -23
  416. package/src/types/dialog.type.ts +15 -14
  417. package/src/types/divider.type.ts +15 -0
  418. package/src/types/grid.type.ts +2 -1
  419. package/src/types/index.ts +5 -1
  420. package/src/types/link.type.ts +15 -0
  421. package/src/types/menu.type.ts +2 -18
  422. package/src/types/radio.type.ts +78 -0
  423. package/src/types/stack.type.ts +7 -17
  424. package/src/types/styledComponents.type.ts +26 -74
  425. package/src/types/surface.type.ts +19 -0
  426. package/src/types/userInput.type.ts +10 -15
  427. package/lib/commonjs/components/Header/Header.js +0 -78
  428. package/lib/commonjs/components/Header/Header.js.map +0 -1
  429. package/lib/commonjs/helpers/LightenColorShades.js +0 -27
  430. package/lib/commonjs/helpers/LightenColorShades.js.map +0 -1
  431. package/lib/commonjs/themes/createTheme.js +0 -25
  432. package/lib/commonjs/themes/createTheme.js.map +0 -1
  433. package/lib/module/components/Header/Header.js +0 -73
  434. package/lib/module/components/Header/Header.js.map +0 -1
  435. package/lib/module/helpers/LightenColorShades.js +0 -23
  436. package/lib/module/helpers/LightenColorShades.js.map +0 -1
  437. package/lib/module/themes/createTheme.js +0 -25
  438. package/lib/module/themes/createTheme.js.map +0 -1
  439. package/lib/typescript/commonjs/src/components/Header/Header.d.ts +0 -16
  440. package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +0 -1
  441. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +0 -3
  442. package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +0 -1
  443. package/lib/typescript/commonjs/src/themes/createTheme.d.ts +0 -1
  444. package/lib/typescript/commonjs/src/themes/createTheme.d.ts.map +0 -1
  445. package/lib/typescript/module/src/components/Header/Header.d.ts +0 -16
  446. package/lib/typescript/module/src/components/Header/Header.d.ts.map +0 -1
  447. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +0 -3
  448. package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +0 -1
  449. package/lib/typescript/module/src/themes/createTheme.d.ts +0 -1
  450. package/lib/typescript/module/src/themes/createTheme.d.ts.map +0 -1
  451. package/src/components/Header/Header.tsx +0 -82
  452. package/src/helpers/LightenColorShades.ts +0 -27
  453. package/src/themes/createTheme.ts +0 -23
@@ -1,96 +1,89 @@
1
+ import Color from "color";
1
2
  import { dialogSizes, typographySizes } from "../constants";
2
3
  import type { ThemeTypes } from "../types";
3
4
 
4
- // const base = Color(theme.colors.primary);
5
-
6
- // const createTheme = (theme: { primary: string; secondary: string }) => {
7
- // return {
8
- // isDark: false,
9
- // colors: {
10
- // ...theme,
11
- // outline: '#8080805e',
12
- // disable: Color(theme.primary).mix(Color("white"), 0.4).hex(),
13
-
14
- // textPrimary: '#000000',
15
- // textSecondary: '#ffffff',
16
- // textTertiary: 'gray',
17
- // textDisable: '#9E9E9E',
18
- // cursorColor: '#000000',
19
- // placeholderColor: '#808080',
20
-
21
- // iconPrimary: '#000000',
22
- // iconSecondary: '#E0E0E0',
23
- // iconDisable: '#9E9E9E',
24
-
25
- // dividerColor: "#DCDBDB",
26
-
27
- // switchColor: '#353935',
28
- // error: '#ED2939',
29
- // },
30
- // typography: {
31
- // variantSizes: typographySizes
32
- // },
33
- // // screenBreakpoints: BreakPoints,
34
- // dialogSizes
35
- // }
36
- // }
37
-
38
- // const LightTheme = createTheme({
39
- // primary: '#000000',
40
- // secondary: '#ffffff',
41
- // textPrimary: '#000000',
42
-
43
- // textSecondary: '#ffffff',
44
- // textTertiary: 'gray',
45
- // textDisable: '#9E9E9E',
46
- // cursorColor: '#000000',
47
- // placeholderColor: '#808080',
48
-
49
- // iconPrimary: '#000000',
50
- // iconSecondary: '#E0E0E0',
51
- // iconDisable: '#9E9E9E',
52
-
53
- // dividerColor: "#DCDBDB",
5
+ const colorPalette = {
6
+ natural: {
7
+ 0: "#FFFFFF", // pure white
8
+ 50: "#F9FAFB", // very light gray (default page background)
9
+ 100: "#F3F4F6", // light gray (elevated surfaces)
10
+ 200: "#E5E7EB", // subtle borders, dividers
11
+ 300: "#D1D5DB", // default borders, secondary text
12
+ 400: "#9CA3AF", // strong borders, muted text
13
+ 500: "#6B7280", // tertiary text
14
+ 600: "#4B5563", // secondary text
15
+ 700: "#374151", // primary text on light backgrounds
16
+ 800: "#1F2937", // strong primary text
17
+ 900: "#111827", // almost black
18
+ }
19
+ }
54
20
 
55
- // switchColor: '#353935',
56
- // error: '#ED2939',
57
- // })
58
- // console.log(Color('rgba(0, 0, 0, 1)').alpha(0.12).rgb().string())
59
21
  const LightTheme: ThemeTypes = {
60
22
  isDark: false,
61
23
  colors: {
62
- primary: '#000000',
63
- secondary: '#ffffff',
64
- // tertiary: '#8080805e',
65
- // outline: '#8080805e',
66
- outline: '#cbd5e1',
67
- // disable: '#E0E0E0',
68
- disable: 'rgba(100, 100, 100, 0.15)',
69
-
70
- textPrimary: '#000000',
71
- textSecondary: '#ffffff',
72
- textTertiary: '#808080',
73
- textDisable: '#9E9E9E',
74
- cursorColor: '#000000',
75
- // placeholderColor: '#808080',
76
- placeholderColor: '#cbd5e1',
77
-
78
- iconPrimary: '#000000',
79
- iconSecondary: '#E0E0E0',
80
- iconDisable: '#9E9E9E',
81
-
82
- dividerColor: "#DCDBDB",
83
-
84
- inputBgColor: '#f9fbfd',
85
- chipBgColor: '#f9fbfd',
86
-
87
- switchColor: '#353935',
88
- error: '#ED2939',
89
- },
90
- typography: {
91
- variantSizes: typographySizes
24
+ palette: colorPalette,
25
+ brand: {
26
+ primary: "#034C53",
27
+ onPrimary: "#FFFFFF",
28
+ secondary: "#6366F1",
29
+ onSecondary: "#FFFFFF",
30
+ tertiary: "#F59E0B",
31
+ onTertiary: "#111827",
32
+ },
33
+ semantic: {
34
+ success: "#22C55E",
35
+ onSuccess: "#FFFFFF",
36
+ warning: "#FACC15",
37
+ onWarning: "#111827",
38
+ danger: "#EF4444",
39
+ onDanger: "#FFFFFF",
40
+ info: "#3B82F6",
41
+ onInfo: "#FFFFFF",
42
+ },
43
+ background: {
44
+ default: "#F9FAFB",
45
+ // default: "#FFFFFF",
46
+ surface: "#FFFFFF",
47
+ // elevated: "#F3F4F6",
48
+ // elevated: "#FAFAFA",
49
+ elevated: "#FFFFFF",
50
+ backdrop: "rgba(0,0,0,0.4)",
51
+ },
52
+ border: {
53
+ subtle: "#E5E7EB",
54
+ default: "#D1D5DB",
55
+ // default: colorPalette.natural[300],
56
+ strong: "#9CA3AF",
57
+ focus: "#F97316",
58
+ },
59
+ typography: {
60
+ primary: "#1A1A1A",
61
+ secondary: "#4D4D4D",
62
+ tertiary: "#808080",
63
+ // disabled: "#B3B3B3",
64
+ disabled: "#808080",
65
+ inverse: "#FFFFFF"
66
+ },
67
+ states: {
68
+ hover: "rgba(0, 0, 0, 0.04)",
69
+ pressed: "rgba(0, 0, 0, 0.08)",
70
+ focus: '',
71
+ // disabled: "rgba(0, 0, 0, 0.26)"
72
+ disabled: "rgb(184, 184, 184)"
73
+ },
74
+ elevation: {
75
+ level0: "none",
76
+ level1: "0px 1px 3px rgba(0,0,0,0.2), 0px 1px 1px rgba(0,0,0,0.14), 0px 2px 1px -1px rgba(0,0,0,0.12)",
77
+ level2: "0px 2px 4px rgba(0,0,0,0.12), 0px 2px 3px rgba(0,0,0,0.18)",
78
+ level3: "0px 4px 6px rgba(0,0,0,0.15), 0px 2px 4px rgba(0,0,0,0.12)",
79
+ level4: "0px 8px 12px rgba(0,0,0,0.16), 0px 4px 8px rgba(0,0,0,0.12)"
80
+ }
92
81
  },
93
- dialogSizes
82
+ sizes: {
83
+ typography: typographySizes,
84
+ dialog: dialogSizes
85
+ }
94
86
  }
87
+ LightTheme.colors.states.focus = Color(LightTheme.colors.brand.primary).mix(Color("white"), 0.8).alpha(0.3).rgb().string();
95
88
 
96
89
  export default LightTheme;
@@ -1,4 +1,3 @@
1
1
  export { default as LightTheme } from './LightTheme';
2
2
  export { default as DarkTheme } from './DarkTheme';
3
- // export { default as createTheme } from './createTheme';
4
3
 
@@ -8,9 +8,6 @@ export type AvatarImageProps = {
8
8
  /** Image source (can be a remote URI or a local asset reference) */
9
9
  source?: { uri?: string } | number;
10
10
 
11
- /** Background color of the avatar */
12
- bg?: string;
13
-
14
11
  /** Defines how the image should be resized to fit its container */
15
12
  resizeMode?: NonNullable<ImageProps['resizeMode']>;
16
13
 
@@ -1,5 +1,5 @@
1
1
  import type { StyleProp, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";
2
- import type { ButtonVariant, TypographyVariant } from "./common.type";
2
+ import type { ButtonVariant, TypographyScale } from "./common.type";
3
3
  import type { JSX } from "react";
4
4
 
5
5
  /**
@@ -12,7 +12,7 @@ export type ButtonProps = TouchableOpacityProps & {
12
12
  /** Determines button shape - 'round' or 'flat' */
13
13
  type?: 'round' | 'flat';
14
14
 
15
- /** Whether the button should expand to full width */
15
+ /** Expands the button to occupy the full available width */
16
16
  fullWidth?: boolean;
17
17
 
18
18
  /** Horizontal padding inside the button */
@@ -21,56 +21,56 @@ export type ButtonProps = TouchableOpacityProps & {
21
21
  /** Vertical padding inside the button */
22
22
  paddingV?: number;
23
23
 
24
- /** Custom background color */
24
+ /** Custom background color (applies to contained buttons) */
25
25
  bg?: string;
26
26
 
27
27
  /** Border radius of the button */
28
28
  br?: number;
29
29
 
30
- /** Border width (for outlined buttons) */
30
+ /** Border width (used in outlined variant) */
31
31
  stroke?: number;
32
32
 
33
- /** Border color */
33
+ /** Border color (used in outlined variant) */
34
34
  strokeColor?: string;
35
35
 
36
- /** Text color */
36
+ /** Text (label) color */
37
37
  titleColor?: string;
38
38
 
39
- /** Button text */
39
+ /** Text (label) displayed on the button */
40
40
  title?: string;
41
41
 
42
42
  /** Font size of the button text */
43
- titleFS?: number;
43
+ fs?: number;
44
44
 
45
- /** Typography variant (h1, h2, h3, etc.) */
46
- titleVariant?: TypographyVariant;
45
+ /** Typography scale (h1, h2, body, caption, etc.) */
46
+ fScale?: TypographyScale;
47
47
 
48
48
  /** Font family for the button text */
49
- titleFF?: string;
49
+ ff?: string;
50
50
 
51
- /** Custom size (for round buttons) */
51
+ /** Size of the button (applies when `type="round"`) */
52
52
  size?: number;
53
53
 
54
- /** Ripple effect color */
54
+ /** Ripple effect color for button press feedback */
55
55
  rippleColor?: string;
56
56
 
57
- /** Icon element to be displayed inside the button */
57
+ /** Single icon element placed at the center (used mostly in round buttons) */
58
58
  renderIcon?: JSX.Element;
59
59
 
60
- /** Left-side icon */
60
+ /** Icon displayed before the button text */
61
61
  renderLeftIcon?: JSX.Element;
62
62
 
63
- /** Right-side icon */
63
+ /** Icon displayed after the button text */
64
64
  renderRightIcon?: JSX.Element;
65
65
 
66
- /** Disables the button when `true` */
66
+ /** Disables the button when true */
67
67
  disabled?: boolean;
68
68
 
69
69
  /** Custom styles for the button container */
70
- buttonContainerStyle?: StyleProp<ViewStyle>;
70
+ containerStyle?: StyleProp<ViewStyle>;
71
71
 
72
- /** Custom styles for the text */
73
- textStyle?: StyleProp<TextStyle>;
72
+ /** Custom styles for the title text */
73
+ titleStyle?: StyleProp<TextStyle>;
74
74
 
75
75
  /** Function to execute when button is pressed */
76
76
  onPress?: () => void;
@@ -1,11 +1,14 @@
1
1
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
2
- import type { TypographyVariant } from "./common.type";
2
+ import type { TypographyScale } from "./common.type";
3
3
 
4
+ /**
5
+ * Props for the CheckBox component
6
+ */
4
7
  export type CheckBoxProps = {
5
- /** Defines the shape of the checkbox: 'square' or 'round' */
8
+ /** Shape of the checkbox: 'square' or 'round' */
6
9
  variant?: 'square' | 'round';
7
10
 
8
- /** Current checked state of the checkbox (controlled component) */
11
+ /** Current checked state (for controlled component) */
9
12
  isChecked?: boolean;
10
13
 
11
14
  /** Default checked state (for uncontrolled component) */
@@ -20,20 +23,23 @@ export type CheckBoxProps = {
20
23
  /** Color of the checkmark icon */
21
24
  iconColor?: string;
22
25
 
23
- /** If true, disables the built-in state management (for controlled usage) */
26
+ /** Disables built-in state handling (for controlled usage) */
24
27
  disableBuiltInState?: boolean;
25
28
 
26
29
  /** Disables the checkbox, preventing user interaction */
27
30
  disabled?: boolean;
28
31
 
29
32
  /** Text label displayed next to the checkbox */
30
- text?: string;
33
+ label?: string;
31
34
 
32
- /** Font size of the text label */
35
+ /** Typography scale for the label text (maps to your design system) */
36
+ fScale?: TypographyScale;
37
+
38
+ /** Font size of the label text (overrides fScale if provided) */
33
39
  fs?: number;
34
40
 
35
- /** Typography variant for text styling */
36
- textVariant?: TypographyVariant;
41
+ /** Font family for the label text */
42
+ ff?: string;
37
43
 
38
44
  /** Size of the checkbox (width & height) */
39
45
  size?: number;
@@ -41,17 +47,18 @@ export type CheckBoxProps = {
41
47
  /** Size of the checkmark icon inside the checkbox */
42
48
  iconSize?: number;
43
49
 
44
- /** Custom styles for the checkbox container */
50
+ /** Custom styles for the outer container of checkbox + label */
45
51
  containerStyle?: StyleProp<ViewStyle>;
46
52
 
47
53
  /** Custom styles for the checkbox itself */
48
54
  checkBoxStyle?: StyleProp<ViewStyle>;
49
55
 
50
- /** Custom styles for the text label */
51
- textStyle?: StyleProp<TextStyle>;
56
+ /** Custom styles for the label text */
57
+ labelStyle?: StyleProp<TextStyle>;
52
58
 
53
- /** Callback function triggered when the checkbox is pressed
54
- * @param e - The new checked state (true/false)
59
+ /**
60
+ * Callback triggered when the checkbox is pressed.
61
+ * @param checked - The new checked state (true/false)
55
62
  */
56
- onPress?: (e: boolean) => void;
57
- };
63
+ onPress?: (checked: boolean) => void;
64
+ };
@@ -1,20 +1,29 @@
1
1
  import type { JSX } from "react";
2
- import type { PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
3
-
4
- export type ChipProps = PressableProps & {
2
+ import type { StyleProp, TextStyle, ViewStyle, TouchableOpacityProps } from "react-native";
3
+ import type { TypographyScale } from "./common.type";
5
4
 
5
+ /**
6
+ * Props for the Chip component
7
+ */
8
+ export type ChipProps = TouchableOpacityProps & {
6
9
  /** Text displayed inside the chip */
7
- title?: string;
10
+ label?: string;
8
11
 
9
12
  /** Background color of the chip */
10
13
  bg?: string;
11
14
 
12
- /** Color of the text inside the chip */
13
- titleColor?: string;
15
+ /** Color of the label text */
16
+ labelColor?: string;
14
17
 
15
- /** Font size of the title */
18
+ /** Font size of the label text (overrides fScale if provided) */
16
19
  fs?: number;
17
20
 
21
+ /** Typography scale of the label text (e.g., xs, sm, md, lg, xl) */
22
+ fScale?: TypographyScale;
23
+
24
+ /** Font family for the label text */
25
+ ff?: string;
26
+
18
27
  /** Border radius of the chip */
19
28
  br?: number;
20
29
 
@@ -30,8 +39,8 @@ export type ChipProps = PressableProps & {
30
39
  /** Border width of the chip */
31
40
  stroke?: number;
32
41
 
33
- /** General color for the chip (could be used for text, border, or background) */
34
- color?: string;
42
+ /** Border color of the chip */
43
+ strokeColor?: string;
35
44
 
36
45
  /** Ripple effect color when pressed */
37
46
  rippleColor?: string;
@@ -39,18 +48,18 @@ export type ChipProps = PressableProps & {
39
48
  /** Disables the chip, preventing interaction */
40
49
  disabled?: boolean;
41
50
 
42
- /** Color of the chip's border */
43
- strokeColor?: string;
51
+ /** Indicates the chip is active (for styling purposes) */
52
+ active?: boolean;
44
53
 
45
- /** Icon to render on the left side of the chip */
54
+ /** Icon element to render on the left side of the chip */
46
55
  renderLeftIcon?: JSX.Element;
47
56
 
48
- /** Icon to render on the right side of the chip */
57
+ /** Icon element to render on the right side of the chip */
49
58
  renderRightIcon?: JSX.Element;
50
59
 
51
60
  /** Custom styles for the chip container */
52
61
  containerStyle?: StyleProp<ViewStyle>;
53
62
 
54
- /** Custom styles for the title text */
63
+ /** Custom styles for the label text */
55
64
  textStyle?: StyleProp<TextStyle>;
56
- };
65
+ };
@@ -3,7 +3,9 @@ import type { typographySizeTypes } from "../constants/typographySizes";
3
3
  export type UserInputVariant = 'outlined' | 'standard';
4
4
  export type DialogVariant = 'classic' | 'default';
5
5
  export type ButtonVariant = 'outlined' | 'contained';
6
- export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7';
6
+ // export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7';
7
+ export type TypographyScale = 'xxs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
8
+ export type TypographyVariant = keyof ThemeColorTypes['typography'];
7
9
  export type themeModeTypes = 'light' | 'dark';
8
10
  export type scalingModeTypes = 'full' | 'partial';
9
11
 
@@ -15,34 +17,90 @@ export type dialogSizesTypes = {
15
17
  full: number,
16
18
  };
17
19
 
18
- type ThemeColorTypes = {
19
- primary: string;
20
- secondary: string;
21
- outline: string;
22
- disable: string;
23
- textPrimary: string;
24
- textSecondary: string;
25
- textTertiary: string;
26
- textDisable: string;
27
- cursorColor: string;
28
- placeholderColor: string;
29
- iconPrimary: string;
30
- iconSecondary: string;
31
- iconDisable: string;
32
- dividerColor: string;
33
- switchColor: string;
34
- inputBgColor: string;
35
- chipBgColor: string;
36
- error: string;
20
+ type ColorPalette = {
21
+ natural: {
22
+ 0: string;
23
+ 50: string;
24
+ 100: string;
25
+ 200: string;
26
+ 300: string;
27
+ 400: string;
28
+ 500: string;
29
+ 600: string;
30
+ 700: string;
31
+ 800: string;
32
+ 900: string;
33
+ }
37
34
  }
35
+ type ThemeColorTypes = {
36
+
37
+ palette: ColorPalette;
38
+
39
+ brand: {
40
+ primary: string; // Main brand color (buttons, highlights)
41
+ onPrimary: string; // Text/icons on primary background
42
+ secondary: string; // Secondary brand color (accents)
43
+ onSecondary: string; // Text/icons on secondary background
44
+ tertiary: string; // Optional brand accent (extra highlight)
45
+ onTertiary: string; // Text/icons on tertiary background
46
+ };
47
+
48
+ semantic: {
49
+ success: string; // Success indicators (green states)
50
+ onSuccess: string; // Text/icons on success background
51
+ warning: string; // Warning indicators (yellow states)
52
+ onWarning: string; // Text/icons on warning background
53
+ danger: string; // Error/destructive indicators (red states)
54
+ onDanger: string; // Text/icons on danger background
55
+ info: string; // Informational highlights (blue states)
56
+ onInfo: string; // Text/icons on info background
57
+ };
58
+
59
+ background: {
60
+ default: string; // App/page root background
61
+ surface: string; // Surfaces like cards, sections
62
+ elevated: string; // Floating UI (menus, dialogs)
63
+ backdrop: string; // Dimmed overlay behind modals
64
+ };
65
+
66
+ border: {
67
+ subtle: string; // For dividers, separators, very low-emphasis outlines like Card dividers.
68
+ default: string; // The “go-to” border color for most components. like Button borders, Input fields when idle, Container outlines.
69
+ strong: string; // High-contrast, visible borders that must stand out, Modals or cards against busy backgrounds.
70
+ focus: string; //Special border color for focus rings or interactive states, Input fields when focused.
71
+ };
72
+
73
+ typography: {
74
+ primary: string;
75
+ secondary: string;
76
+ tertiary: string;
77
+ disabled: string;
78
+ inverse: string; // for text over dark backgrounds
79
+ };
80
+
81
+ states: {
82
+ hover: string;
83
+ pressed: string;
84
+ focus: string;
85
+ disabled: string;
86
+ };
87
+
88
+ elevation?: {
89
+ level0: string; // shadow for flat
90
+ level1: string; // small cards
91
+ level2: string; // dialogs
92
+ level3: string; // modals
93
+ level4: string; // modals
94
+ };
95
+ };
38
96
 
39
97
  export type ThemeTypes = {
40
98
  isDark: boolean,
41
99
  colors: ThemeColorTypes;
42
- typography: {
43
- variantSizes: typographySizeTypes;
100
+ sizes: {
101
+ typography: typographySizeTypes;
102
+ dialog: dialogSizesTypes;
44
103
  };
45
- dialogSizes: dialogSizesTypes;
46
104
  }
47
105
 
48
106
  export type Theme = {
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
- import type { DialogVariant, TypographyVariant } from "./common.type";
3
+ import type { DialogVariant, TypographyScale } from "./common.type";
4
+ import type { StyledTextProps, StyledViewProps } from "./styledComponents.type";
4
5
 
5
6
 
6
7
  export type DialogRefProps = {
@@ -42,13 +43,10 @@ export type DialogBodyProps = {
42
43
  children?: ReactNode;
43
44
  };
44
45
 
45
- export type DialogDescriptionProps = {
46
+ export type DialogDescriptionProps = StyledTextProps & {
46
47
 
47
48
  /** Variant of the typography to be applied to the text */
48
- textVariant?: TypographyVariant;
49
-
50
- /** Font size for the dialog description text */
51
- fs?: number;
49
+ fScale?: TypographyScale;
52
50
 
53
51
  /** Style for the container wrapping the dialog description */
54
52
  containerStyle?: StyleProp<ViewStyle>;
@@ -60,7 +58,7 @@ export type DialogDescriptionProps = {
60
58
  children?: ReactNode;
61
59
  };
62
60
 
63
- export type DialogFootProps = {
61
+ export type DialogFootProps = StyledViewProps & {
64
62
  /** Custom styles for the container wrapping the dialog footer */
65
63
  containerStyle?: StyleProp<ViewStyle>;
66
64
 
@@ -69,21 +67,24 @@ export type DialogFootProps = {
69
67
  };
70
68
 
71
69
  export type DialogHeadProps = {
72
- /** Title text to be displayed in the dialog header */
70
+ /** Title text to be displayed in the dialog header. If not provided, `children` will be rendered. */
73
71
  title?: string;
74
72
 
75
- /** Typography variant for styling the title text */
76
- textVariant?: TypographyVariant;
73
+ /** Typography scale for the title text (e.g., xs, sm, md, lg, xl) */
74
+ fScale?: TypographyScale;
77
75
 
78
- /** Font size of the title text */
76
+ /** Font size of the title text (overrides fScale if provided) */
79
77
  fs?: number;
80
78
 
79
+ /** Font family for the title text */
80
+ ff?: string;
81
+
81
82
  /** Custom styles for the container wrapping the dialog header */
82
83
  containerStyle?: StyleProp<ViewStyle>;
83
84
 
84
85
  /** Custom styles for the title text */
85
- textStyle?: StyleProp<TextStyle>;
86
+ titleStyle?: StyleProp<TextStyle>;
86
87
 
87
88
  /** Additional elements or components to be rendered inside the dialog header */
88
- children?: React.ReactNode;
89
- };
89
+ children?: ReactNode;
90
+ };
@@ -0,0 +1,15 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+
3
+ /** Props for the Divider component */
4
+
5
+ export type DividerProps = {
6
+
7
+ /** Thickness of the divider line */
8
+ thickness?: number;
9
+
10
+ /** Custom styles to apply to the divider */
11
+ style?: StyleProp<ViewStyle>;
12
+
13
+ /** Color of the divider line; defaults to theme's subtle border color if not provided */
14
+ color?: string;
15
+ }
@@ -1,6 +1,7 @@
1
1
  import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { StyledViewProps } from "./styledComponents.type";
2
3
 
3
- export type GridProps = ViewStyle & {
4
+ export type GridProps = StyledViewProps & {
4
5
  /**
5
6
  * If true, the component will act as a grid container.
6
7
  * Similar to CSS flex/grid container.
@@ -10,4 +10,8 @@ export * from './stack.type';
10
10
  export * from './styledComponents.type';
11
11
  export * from './switch.type';
12
12
  export * from './userInput.type';
13
- export * from './progress.type'
13
+ export * from './progress.type'
14
+ export * from './surface.type'
15
+ export * from './radio.type'
16
+ export * from './divider.type'
17
+ export * from './link.type'