@adiraku/react-native-ui 1.2.9-canary-7 → 2.0.0-canary-2

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 (274) hide show
  1. package/lib/commonjs/components/ActionList/ActionList.component.js +8 -7
  2. package/lib/commonjs/components/ActionList/ActionList.component.js.map +1 -1
  3. package/lib/commonjs/components/ActionList/ActionList.styles.js +13 -10
  4. package/lib/commonjs/components/ActionList/ActionList.styles.js.map +1 -1
  5. package/lib/commonjs/components/Appbar/Appbar.component.js +5 -4
  6. package/lib/commonjs/components/Appbar/Appbar.component.js.map +1 -1
  7. package/lib/commonjs/components/Appbar/Appbar.style.js +15 -12
  8. package/lib/commonjs/components/Appbar/Appbar.style.js.map +1 -1
  9. package/lib/commonjs/components/BottomSheet/BottomSheet.component.js +1 -1
  10. package/lib/commonjs/components/BottomSheet/BottomSheet.component.js.map +1 -1
  11. package/lib/commonjs/components/BottomSheet/BottomSheet.style.js +10 -8
  12. package/lib/commonjs/components/BottomSheet/BottomSheet.style.js.map +1 -1
  13. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js +16 -16
  14. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
  15. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.style.js +35 -25
  16. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.style.js.map +1 -1
  17. package/lib/commonjs/components/Checkbox/Checkbox.component.js +8 -4
  18. package/lib/commonjs/components/Checkbox/Checkbox.component.js.map +1 -1
  19. package/lib/commonjs/components/Checkbox/Checkbox.style.js +16 -17
  20. package/lib/commonjs/components/Checkbox/Checkbox.style.js.map +1 -1
  21. package/lib/commonjs/components/Pagination/pagination.component.js +39 -0
  22. package/lib/commonjs/components/Pagination/pagination.component.js.map +1 -0
  23. package/lib/commonjs/components/Pagination/pagination.style.js +26 -0
  24. package/lib/commonjs/components/Pagination/pagination.style.js.map +1 -0
  25. package/lib/commonjs/components/Pagination/pagination.type.js +2 -0
  26. package/lib/commonjs/components/Pagination/pagination.type.js.map +1 -0
  27. package/lib/commonjs/components/RadioButton/RadioButton.component.js +1 -1
  28. package/lib/commonjs/components/RadioButton/RadioButton.component.js.map +1 -1
  29. package/lib/commonjs/components/RadioButton/RadioButton.style.js +15 -12
  30. package/lib/commonjs/components/RadioButton/RadioButton.style.js.map +1 -1
  31. package/lib/commonjs/components/RadioInput/RadioInput.component.js +17 -19
  32. package/lib/commonjs/components/RadioInput/RadioInput.component.js.map +1 -1
  33. package/lib/commonjs/components/RadioInput/RadioInput.style.js +35 -25
  34. package/lib/commonjs/components/RadioInput/RadioInput.style.js.map +1 -1
  35. package/lib/commonjs/components/StickyBar/StickyBar.component.js +67 -0
  36. package/lib/commonjs/components/StickyBar/StickyBar.component.js.map +1 -0
  37. package/lib/commonjs/components/StickyBar/StickyBar.style.js +64 -0
  38. package/lib/commonjs/components/StickyBar/StickyBar.style.js.map +1 -0
  39. package/lib/commonjs/components/StickyBar/StickyBar.type.js +6 -0
  40. package/lib/commonjs/components/StickyBar/StickyBar.type.js.map +1 -0
  41. package/lib/commonjs/components/TextInput/TextInput.component.js +9 -3
  42. package/lib/commonjs/components/TextInput/TextInput.component.js.map +1 -1
  43. package/lib/commonjs/components/TextInput/TextInput.style.js +30 -25
  44. package/lib/commonjs/components/TextInput/TextInput.style.js.map +1 -1
  45. package/lib/commonjs/components/View/View.component.js +42 -0
  46. package/lib/commonjs/components/View/View.component.js.map +1 -0
  47. package/lib/commonjs/components/View/View.type.js +6 -0
  48. package/lib/commonjs/components/View/View.type.js.map +1 -0
  49. package/lib/commonjs/components/button/button.component.js +7 -4
  50. package/lib/commonjs/components/button/button.component.js.map +1 -1
  51. package/lib/commonjs/components/button/button.styles.js +21 -17
  52. package/lib/commonjs/components/button/button.styles.js.map +1 -1
  53. package/lib/commonjs/components/calendars/calendars.component.js +37 -37
  54. package/lib/commonjs/components/calendars/calendars.component.js.map +1 -1
  55. package/lib/commonjs/components/calendars/calendars.service.js.map +1 -1
  56. package/lib/commonjs/components/calendars/calendars.style.js +73 -51
  57. package/lib/commonjs/components/calendars/calendars.style.js.map +1 -1
  58. package/lib/commonjs/components/index.js +21 -0
  59. package/lib/commonjs/components/index.js.map +1 -1
  60. package/lib/commonjs/components/typography/typography.component.js +12 -2
  61. package/lib/commonjs/components/typography/typography.component.js.map +1 -1
  62. package/lib/commonjs/components/typography/typography.style.js +21 -351
  63. package/lib/commonjs/components/typography/typography.style.js.map +1 -1
  64. package/lib/commonjs/config/index.js +50 -0
  65. package/lib/commonjs/config/index.js.map +1 -0
  66. package/lib/commonjs/config/makeStyles.js +37 -0
  67. package/lib/commonjs/config/makeStyles.js.map +1 -0
  68. package/lib/commonjs/config/theme.default.js +422 -0
  69. package/lib/commonjs/config/theme.default.js.map +1 -0
  70. package/lib/commonjs/config/theme.provider.js +48 -0
  71. package/lib/commonjs/config/theme.provider.js.map +1 -0
  72. package/lib/commonjs/config/theme.type.js +6 -0
  73. package/lib/commonjs/config/theme.type.js.map +1 -0
  74. package/lib/commonjs/index.js +11 -0
  75. package/lib/commonjs/index.js.map +1 -1
  76. package/lib/commonjs/themes/border.js.map +1 -1
  77. package/lib/commonjs/themes/colors.js +1 -1
  78. package/lib/commonjs/themes/shadow.js +1 -0
  79. package/lib/commonjs/themes/shadow.js.map +1 -1
  80. package/lib/module/components/ActionList/ActionList.component.js +8 -7
  81. package/lib/module/components/ActionList/ActionList.component.js.map +1 -1
  82. package/lib/module/components/ActionList/ActionList.styles.js +11 -7
  83. package/lib/module/components/ActionList/ActionList.styles.js.map +1 -1
  84. package/lib/module/components/Appbar/Appbar.component.js +4 -3
  85. package/lib/module/components/Appbar/Appbar.component.js.map +1 -1
  86. package/lib/module/components/Appbar/Appbar.style.js +10 -6
  87. package/lib/module/components/Appbar/Appbar.style.js.map +1 -1
  88. package/lib/module/components/BottomSheet/BottomSheet.component.js +2 -2
  89. package/lib/module/components/BottomSheet/BottomSheet.component.js.map +1 -1
  90. package/lib/module/components/BottomSheet/BottomSheet.style.js +10 -7
  91. package/lib/module/components/BottomSheet/BottomSheet.style.js.map +1 -1
  92. package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js +17 -17
  93. package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
  94. package/lib/module/components/CheckBoxInput/CheckBoxInput.style.js +24 -13
  95. package/lib/module/components/CheckBoxInput/CheckBoxInput.style.js.map +1 -1
  96. package/lib/module/components/Checkbox/Checkbox.component.js +9 -5
  97. package/lib/module/components/Checkbox/Checkbox.component.js.map +1 -1
  98. package/lib/module/components/Checkbox/Checkbox.style.js +14 -14
  99. package/lib/module/components/Checkbox/Checkbox.style.js.map +1 -1
  100. package/lib/module/components/Pagination/pagination.component.js +31 -0
  101. package/lib/module/components/Pagination/pagination.component.js.map +1 -0
  102. package/lib/module/components/Pagination/pagination.style.js +20 -0
  103. package/lib/module/components/Pagination/pagination.style.js.map +1 -0
  104. package/lib/module/components/Pagination/pagination.type.js +2 -0
  105. package/lib/module/components/Pagination/pagination.type.js.map +1 -0
  106. package/lib/module/components/RadioButton/RadioButton.component.js +2 -2
  107. package/lib/module/components/RadioButton/RadioButton.component.js.map +1 -1
  108. package/lib/module/components/RadioButton/RadioButton.style.js +12 -8
  109. package/lib/module/components/RadioButton/RadioButton.style.js.map +1 -1
  110. package/lib/module/components/RadioInput/RadioInput.component.js +17 -19
  111. package/lib/module/components/RadioInput/RadioInput.component.js.map +1 -1
  112. package/lib/module/components/RadioInput/RadioInput.style.js +24 -13
  113. package/lib/module/components/RadioInput/RadioInput.style.js.map +1 -1
  114. package/lib/module/components/StickyBar/StickyBar.component.js +60 -0
  115. package/lib/module/components/StickyBar/StickyBar.component.js.map +1 -0
  116. package/lib/module/components/StickyBar/StickyBar.style.js +57 -0
  117. package/lib/module/components/StickyBar/StickyBar.style.js.map +1 -0
  118. package/lib/module/components/StickyBar/StickyBar.type.js +2 -0
  119. package/lib/module/components/StickyBar/StickyBar.type.js.map +1 -0
  120. package/lib/module/components/TextInput/TextInput.component.js +10 -4
  121. package/lib/module/components/TextInput/TextInput.component.js.map +1 -1
  122. package/lib/module/components/TextInput/TextInput.style.js +21 -15
  123. package/lib/module/components/TextInput/TextInput.style.js.map +1 -1
  124. package/lib/module/components/View/View.component.js +35 -0
  125. package/lib/module/components/View/View.component.js.map +1 -0
  126. package/lib/module/components/View/View.type.js +2 -0
  127. package/lib/module/components/View/View.type.js.map +1 -0
  128. package/lib/module/components/button/button.component.js +7 -4
  129. package/lib/module/components/button/button.component.js.map +1 -1
  130. package/lib/module/components/button/button.styles.js +14 -9
  131. package/lib/module/components/button/button.styles.js.map +1 -1
  132. package/lib/module/components/calendars/calendars.component.js +36 -36
  133. package/lib/module/components/calendars/calendars.component.js.map +1 -1
  134. package/lib/module/components/calendars/calendars.service.js.map +1 -1
  135. package/lib/module/components/calendars/calendars.style.js +65 -43
  136. package/lib/module/components/calendars/calendars.style.js.map +1 -1
  137. package/lib/module/components/index.js +3 -0
  138. package/lib/module/components/index.js.map +1 -1
  139. package/lib/module/components/typography/typography.component.js +13 -3
  140. package/lib/module/components/typography/typography.component.js.map +1 -1
  141. package/lib/module/components/typography/typography.style.js +21 -350
  142. package/lib/module/components/typography/typography.style.js.map +1 -1
  143. package/lib/module/config/index.js +5 -0
  144. package/lib/module/config/index.js.map +1 -0
  145. package/lib/module/config/makeStyles.js +30 -0
  146. package/lib/module/config/makeStyles.js.map +1 -0
  147. package/lib/module/config/theme.default.js +416 -0
  148. package/lib/module/config/theme.default.js.map +1 -0
  149. package/lib/module/config/theme.provider.js +35 -0
  150. package/lib/module/config/theme.provider.js.map +1 -0
  151. package/lib/module/config/theme.type.js +2 -0
  152. package/lib/module/config/theme.type.js.map +1 -0
  153. package/lib/module/index.js +1 -0
  154. package/lib/module/index.js.map +1 -1
  155. package/lib/module/themes/border.js.map +1 -1
  156. package/lib/module/themes/colors.js +1 -1
  157. package/lib/module/themes/shadow.js +1 -0
  158. package/lib/module/themes/shadow.js.map +1 -1
  159. package/lib/typescript/components/ActionList/ActionList.component.d.ts.map +1 -1
  160. package/lib/typescript/components/ActionList/ActionList.styles.d.ts +3 -4
  161. package/lib/typescript/components/ActionList/ActionList.styles.d.ts.map +1 -1
  162. package/lib/typescript/components/Appbar/Appbar.component.d.ts.map +1 -1
  163. package/lib/typescript/components/Appbar/Appbar.style.d.ts +2 -3
  164. package/lib/typescript/components/Appbar/Appbar.style.d.ts.map +1 -1
  165. package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts +1 -1
  166. package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts.map +1 -1
  167. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts +1 -1
  168. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts.map +1 -1
  169. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.style.d.ts +5 -4
  170. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.style.d.ts.map +1 -1
  171. package/lib/typescript/components/Checkbox/Checkbox.component.d.ts.map +1 -1
  172. package/lib/typescript/components/Checkbox/Checkbox.style.d.ts +3 -2
  173. package/lib/typescript/components/Checkbox/Checkbox.style.d.ts.map +1 -1
  174. package/lib/typescript/components/Pagination/pagination.component.d.ts +5 -0
  175. package/lib/typescript/components/Pagination/pagination.component.d.ts.map +1 -0
  176. package/lib/typescript/components/Pagination/pagination.style.d.ts +19 -0
  177. package/lib/typescript/components/Pagination/pagination.style.d.ts.map +1 -0
  178. package/lib/typescript/components/Pagination/pagination.type.d.ts +15 -0
  179. package/lib/typescript/components/Pagination/pagination.type.d.ts.map +1 -0
  180. package/lib/typescript/components/RadioButton/RadioButton.component.d.ts +1 -1
  181. package/lib/typescript/components/RadioButton/RadioButton.component.d.ts.map +1 -1
  182. package/lib/typescript/components/RadioButton/RadioButton.style.d.ts +2 -2
  183. package/lib/typescript/components/RadioButton/RadioButton.style.d.ts.map +1 -1
  184. package/lib/typescript/components/RadioInput/RadioInput.component.d.ts.map +1 -1
  185. package/lib/typescript/components/RadioInput/RadioInput.style.d.ts +5 -4
  186. package/lib/typescript/components/RadioInput/RadioInput.style.d.ts.map +1 -1
  187. package/lib/typescript/components/StickyBar/StickyBar.component.d.ts +5 -0
  188. package/lib/typescript/components/StickyBar/StickyBar.component.d.ts.map +1 -0
  189. package/lib/typescript/components/StickyBar/StickyBar.style.d.ts +15 -0
  190. package/lib/typescript/components/StickyBar/StickyBar.style.d.ts.map +1 -0
  191. package/lib/typescript/components/StickyBar/StickyBar.type.d.ts +30 -0
  192. package/lib/typescript/components/StickyBar/StickyBar.type.d.ts.map +1 -0
  193. package/lib/typescript/components/TextInput/TextInput.component.d.ts.map +1 -1
  194. package/lib/typescript/components/TextInput/TextInput.style.d.ts +6 -4
  195. package/lib/typescript/components/TextInput/TextInput.style.d.ts.map +1 -1
  196. package/lib/typescript/components/TextInput/TextInput.type.d.ts +1 -1
  197. package/lib/typescript/components/TextInput/TextInput.type.d.ts.map +1 -1
  198. package/lib/typescript/components/View/View.component.d.ts +4 -0
  199. package/lib/typescript/components/View/View.component.d.ts.map +1 -0
  200. package/lib/typescript/components/View/View.type.d.ts +10 -0
  201. package/lib/typescript/components/View/View.type.d.ts.map +1 -0
  202. package/lib/typescript/components/button/button.component.d.ts.map +1 -1
  203. package/lib/typescript/components/button/button.styles.d.ts +3 -4
  204. package/lib/typescript/components/button/button.styles.d.ts.map +1 -1
  205. package/lib/typescript/components/calendars/calendars.component.d.ts.map +1 -1
  206. package/lib/typescript/components/calendars/calendars.service.d.ts.map +1 -1
  207. package/lib/typescript/components/calendars/calendars.style.d.ts +6 -4
  208. package/lib/typescript/components/calendars/calendars.style.d.ts.map +1 -1
  209. package/lib/typescript/components/index.d.ts +7 -0
  210. package/lib/typescript/components/index.d.ts.map +1 -1
  211. package/lib/typescript/components/typography/typography.component.d.ts +1 -1
  212. package/lib/typescript/components/typography/typography.component.d.ts.map +1 -1
  213. package/lib/typescript/components/typography/typography.style.d.ts +5 -60
  214. package/lib/typescript/components/typography/typography.style.d.ts.map +1 -1
  215. package/lib/typescript/components/typography/typography.type.d.ts +7 -0
  216. package/lib/typescript/components/typography/typography.type.d.ts.map +1 -1
  217. package/lib/typescript/config/index.d.ts +5 -0
  218. package/lib/typescript/config/index.d.ts.map +1 -0
  219. package/lib/typescript/config/makeStyles.d.ts +4 -0
  220. package/lib/typescript/config/makeStyles.d.ts.map +1 -0
  221. package/lib/typescript/config/theme.default.d.ts +178 -0
  222. package/lib/typescript/config/theme.default.d.ts.map +1 -0
  223. package/lib/typescript/config/theme.provider.d.ts +8 -0
  224. package/lib/typescript/config/theme.provider.d.ts.map +1 -0
  225. package/lib/typescript/config/theme.type.d.ts +12 -0
  226. package/lib/typescript/config/theme.type.d.ts.map +1 -0
  227. package/lib/typescript/index.d.ts +1 -0
  228. package/lib/typescript/index.d.ts.map +1 -1
  229. package/lib/typescript/themes/shadow.d.ts +2 -3
  230. package/lib/typescript/themes/shadow.d.ts.map +1 -1
  231. package/package.json +5 -1
  232. package/src/components/ActionList/ActionList.component.tsx +20 -17
  233. package/src/components/ActionList/ActionList.styles.tsx +11 -11
  234. package/src/components/Appbar/Appbar.component.tsx +4 -3
  235. package/src/components/Appbar/Appbar.style.tsx +9 -9
  236. package/src/components/BottomSheet/BottomSheet.component.tsx +2 -2
  237. package/src/components/BottomSheet/BottomSheet.style.tsx +9 -7
  238. package/src/components/CheckBoxInput/CheckBoxInput.component.tsx +21 -20
  239. package/src/components/CheckBoxInput/CheckBoxInput.style.tsx +29 -15
  240. package/src/components/Checkbox/Checkbox.component.tsx +13 -13
  241. package/src/components/Checkbox/Checkbox.style.tsx +16 -17
  242. package/src/components/Pagination/pagination.component.tsx +29 -0
  243. package/src/components/Pagination/pagination.style.tsx +20 -0
  244. package/src/components/Pagination/pagination.type.ts +16 -0
  245. package/src/components/RadioButton/RadioButton.component.tsx +3 -4
  246. package/src/components/RadioButton/RadioButton.style.tsx +10 -10
  247. package/src/components/RadioInput/RadioInput.component.tsx +14 -15
  248. package/src/components/RadioInput/RadioInput.style.tsx +29 -15
  249. package/src/components/StickyBar/StickyBar.component.tsx +74 -0
  250. package/src/components/StickyBar/StickyBar.style.tsx +79 -0
  251. package/src/components/StickyBar/StickyBar.type.ts +35 -0
  252. package/src/components/TextInput/TextInput.component.tsx +7 -6
  253. package/src/components/TextInput/TextInput.style.tsx +86 -70
  254. package/src/components/TextInput/TextInput.type.ts +1 -1
  255. package/src/components/View/View.component.tsx +42 -0
  256. package/src/components/View/View.type.ts +14 -0
  257. package/src/components/button/button.component.tsx +9 -4
  258. package/src/components/button/button.styles.ts +15 -15
  259. package/src/components/calendars/calendars.component.tsx +27 -22
  260. package/src/components/calendars/calendars.service.ts +7 -3
  261. package/src/components/calendars/calendars.style.ts +77 -49
  262. package/src/components/index.ts +15 -0
  263. package/src/components/typography/typography.component.tsx +17 -4
  264. package/src/components/typography/typography.style.tsx +17 -472
  265. package/src/components/typography/typography.type.ts +9 -0
  266. package/src/config/index.ts +4 -0
  267. package/src/config/makeStyles.ts +52 -0
  268. package/src/config/theme.default.ts +440 -0
  269. package/src/config/theme.provider.tsx +53 -0
  270. package/src/config/theme.type.ts +17 -0
  271. package/src/index.tsx +1 -0
  272. package/src/themes/border.ts +3 -3
  273. package/src/themes/colors.ts +1 -1
  274. package/src/themes/shadow.tsx +4 -2
@@ -1,8 +1,8 @@
1
- import { StyleSheet, type ViewStyle } from 'react-native';
2
-
3
- import { Palettes, Radius, Spacing, Shadow } from '../../themes';
1
+ import { ViewStyle } from 'react-native';
4
2
  import { CalendarProps } from 'react-native-calendars';
5
3
 
4
+ import { AppThemeColor, makeStyles } from '../../config';
5
+
6
6
  interface ComputedStyleProps {
7
7
  modalContainer?: ViewStyle;
8
8
  container?: ViewStyle;
@@ -14,9 +14,13 @@ interface ComputedStyleProps {
14
14
 
15
15
  calendarContainer?: ViewStyle;
16
16
  calendarBottomContainer?: ViewStyle;
17
+ calendarStyle?: ViewStyle;
18
+
19
+ flex?: ViewStyle;
17
20
  }
18
21
 
19
- export const getStyle = () => {
22
+ export const useStyles = makeStyles((themes) => {
23
+ const { colors, Spacing, Radius, Shadow } = themes;
20
24
  const computedStyle: ComputedStyleProps = {};
21
25
 
22
26
  computedStyle.modalContainer = {
@@ -26,7 +30,7 @@ export const getStyle = () => {
26
30
 
27
31
  computedStyle.container = {
28
32
  width: 350,
29
- backgroundColor: Palettes.white[50],
33
+ backgroundColor: colors['fill-inverse'],
30
34
  paddingVertical: Spacing[24],
31
35
  borderRadius: Radius[16],
32
36
  overflow: 'hidden',
@@ -34,7 +38,7 @@ export const getStyle = () => {
34
38
  };
35
39
 
36
40
  computedStyle.headerContainer = {
37
- backgroundColor: Palettes.grey[50],
41
+ backgroundColor: colors['fill-inverse'],
38
42
  height: 40,
39
43
  flexGrow: 1,
40
44
  borderRadius: Radius[8],
@@ -62,6 +66,7 @@ export const getStyle = () => {
62
66
  };
63
67
 
64
68
  computedStyle.calendarContainer = {
69
+ backgroundColor: colors['fill-inverse'],
65
70
  height: 440,
66
71
  justifyContent: 'space-between',
67
72
  };
@@ -70,51 +75,74 @@ export const getStyle = () => {
70
75
  flexDirection: 'row',
71
76
  marginTop: Spacing[12],
72
77
  paddingHorizontal: Spacing[16],
73
- }
74
-
75
- return StyleSheet.create(computedStyle);
76
- };
78
+ gap: Spacing[16],
79
+ };
77
80
 
78
- export const calendarTheme: CalendarProps['theme'] & {
79
- 'stylesheet.day.basic'?: any;
80
- 'stylesheet.calendar.header'?: any;
81
- 'stylesheet.calendar.main'?: any;
82
- } = {
83
- 'textDayFontFamily': 'Montserrat-Regular',
84
- 'textDayHeaderFontFamily': 'Montserrat-Regular',
85
- 'selectedDayBackgroundColor': Palettes.yellow[600],
86
- 'selectedDayTextColor': Palettes.black[900],
87
- 'todayTextColor': Palettes.black[900],
88
- 'stylesheet.day.basic': {
89
- today: {
90
- borderWidth: 2,
91
- borderColor: Palettes.yellow[600],
92
- borderRadius: 99,
93
- },
94
- base: {
95
- width: 40,
96
- height: 40,
97
- alignItems: 'center',
98
- justifyContent: 'center',
99
- borderRadius: 99,
100
- },
101
- selected: {
102
- borderRadius: 99,
103
- backgroundColor: Palettes.yellow[600],
81
+ computedStyle.calendarStyle = {
82
+ marginHorizontal: Spacing[12],
83
+ backgroundColor: colors['fill-inverse'],
84
+ };
85
+
86
+ computedStyle.flex = {
87
+ flex: 1,
88
+ };
89
+
90
+ return computedStyle;
91
+ });
92
+
93
+ export const getCalendarTheme = (
94
+ colors: AppThemeColor['colors'],
95
+ colorScheme: AppThemeColor['colorScheme']
96
+ ) => {
97
+ const calendarTheme: CalendarProps['theme'] & {
98
+ 'stylesheet.day.basic'?: any;
99
+ 'stylesheet.calendar.header'?: any;
100
+ 'stylesheet.calendar.main'?: any;
101
+ } = {
102
+ 'calendarBackground': colors['fill-inverse'],
103
+ 'textDayFontFamily': 'Montserrat-Regular',
104
+ 'textDayHeaderFontFamily': 'Montserrat-Regular',
105
+ 'textDayStyle': {
106
+ color: colors['text-primary'],
104
107
  },
105
- },
106
- 'stylesheet.calendar.header': {
107
- week: {
108
- flexDirection: 'row',
109
- justifyContent: 'space-between',
110
- borderBottomWidth: 1,
111
- borderBottomColor: Palettes.grey[200],
112
- paddingBottom: 12,
108
+ 'selectedDayBackgroundColor': colors['fill-warning'],
109
+ 'selectedDayTextColor':
110
+ colorScheme === 'light' ? colors['text-primary'] : colors['text-inverse'],
111
+ 'todayTextColor': colors['text-primary'],
112
+ 'textDisabledColor': colors['text-disable-secondary'],
113
+ 'stylesheet.day.basic': {
114
+ today: {
115
+ borderWidth: 2,
116
+ borderColor: colors['border-warning'],
117
+ borderRadius: 99,
118
+ },
119
+ base: {
120
+ width: 40,
121
+ height: 40,
122
+ alignItems: 'center',
123
+ justifyContent: 'center',
124
+ borderRadius: 99,
125
+ },
126
+ selected: {
127
+ borderRadius: 99,
128
+ backgroundColor: colors['fill-warning'],
129
+ },
113
130
  },
114
- dayHeader: {
115
- fontFamily: 'Montserrat-Regular',
116
- fontSize: 14,
117
- color: Palettes.black[900],
131
+ 'stylesheet.calendar.header': {
132
+ week: {
133
+ flexDirection: 'row',
134
+ justifyContent: 'space-between',
135
+ borderBottomWidth: 1,
136
+ borderBottomColor: colors['border-default'],
137
+ paddingBottom: 12,
138
+ },
139
+ dayHeader: {
140
+ fontFamily: 'Montserrat-Regular',
141
+ fontSize: 14,
142
+ color: colors['text-primary'],
143
+ },
118
144
  },
119
- },
145
+ };
146
+
147
+ return calendarTheme;
120
148
  };
@@ -39,6 +39,7 @@ export { RoundedTab } from './rounded-tab/rounded-tab.component';
39
39
  export { Countdown } from './countdown/countdown.component';
40
40
  export { Loader } from './Loader/loader.component';
41
41
  export { Notification } from './Notification/notification.component';
42
+ export { Pagination } from './Pagination/pagination.component';
42
43
  export {
43
44
  Mask,
44
45
  MaskArray,
@@ -52,6 +53,8 @@ export {
52
53
  } from 'react-native-mask-input';
53
54
  export { SelectionCard } from './selection-card/SelectionCard.component';
54
55
  export { Ribbon } from './Ribbon/Ribbon.component';
56
+ export { StickyBar } from './StickyBar/StickyBar.component';
57
+ export { View } from './View/View.component';
55
58
 
56
59
  export type { ActionListProps } from './ActionList/ActionList.type';
57
60
  export type {
@@ -80,3 +83,15 @@ export type { TabsProps } from './Tabs/Tabs.type';
80
83
  export type { SearchInputProps } from './search-input/search-input.type';
81
84
  export type { SelectionCardProps } from './selection-card/SelectionCard.type';
82
85
  export type { RibbonProps } from './Ribbon/Ribbon.type';
86
+ export type { StickyBarProps } from './StickyBar/StickyBar.type';
87
+ export type { ViewProps } from './View/View.type';
88
+ export type {
89
+ RadioInputProps,
90
+ RadioItemProps,
91
+ RadioItemPropsComponent,
92
+ } from './RadioInput/RadioInput.type';
93
+ export type {
94
+ CheckboxInputProps,
95
+ CheckboxItemProps,
96
+ CheckboxItemPropsComponent,
97
+ } from './CheckBoxInput/CheckBoxInput.type';
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { Text } from 'react-native';
3
- import { getStyle } from './typography.style';
4
- import type { TypographyProps } from './typography.type';
3
+
4
+ import { useStyles } from './typography.style';
5
+ import { TypographyProps } from './typography.type';
6
+ import { useAppTheme } from '../../config';
5
7
 
6
8
  const Typography = (props: TypographyProps) => {
7
9
  const {
@@ -9,14 +11,25 @@ const Typography = (props: TypographyProps) => {
9
11
  children = null,
10
12
  textStyles,
11
13
  style,
14
+ color = 'text-primary',
12
15
  ...rest
13
16
  } = props;
14
17
 
15
- const computedStyle = getStyle(props);
18
+ const styles = useStyles({
19
+ variant,
20
+ ...rest,
21
+ });
22
+
23
+ const { colors } = useAppTheme();
16
24
 
17
25
  return (
18
26
  <Text
19
- style={[computedStyle[variant] || computedStyle.body1, textStyles, style]}
27
+ style={[
28
+ styles.base,
29
+ { color: colors[color] ?? colors['text-primary'] },
30
+ textStyles,
31
+ style,
32
+ ]}
20
33
  {...rest}
21
34
  >
22
35
  {children}