@umituz/react-native-design-system 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/README.md +2 -2
  2. package/package.json +56 -30
  3. package/src/index.ts +67 -265
  4. package/lib/index.d.ts +0 -61
  5. package/lib/index.d.ts.map +0 -1
  6. package/lib/index.js +0 -101
  7. package/lib/index.js.map +0 -1
  8. package/lib/presentation/atoms/AtomicAvatar.d.ts +0 -48
  9. package/lib/presentation/atoms/AtomicAvatar.d.ts.map +0 -1
  10. package/lib/presentation/atoms/AtomicAvatar.js +0 -85
  11. package/lib/presentation/atoms/AtomicAvatar.js.map +0 -1
  12. package/lib/presentation/atoms/AtomicAvatarGroup.d.ts +0 -56
  13. package/lib/presentation/atoms/AtomicAvatarGroup.d.ts.map +0 -1
  14. package/lib/presentation/atoms/AtomicAvatarGroup.js +0 -83
  15. package/lib/presentation/atoms/AtomicAvatarGroup.js.map +0 -1
  16. package/lib/presentation/atoms/AtomicBadge.d.ts +0 -42
  17. package/lib/presentation/atoms/AtomicBadge.d.ts.map +0 -1
  18. package/lib/presentation/atoms/AtomicBadge.js +0 -168
  19. package/lib/presentation/atoms/AtomicBadge.js.map +0 -1
  20. package/lib/presentation/atoms/AtomicButton.d.ts +0 -21
  21. package/lib/presentation/atoms/AtomicButton.d.ts.map +0 -1
  22. package/lib/presentation/atoms/AtomicButton.js +0 -172
  23. package/lib/presentation/atoms/AtomicButton.js.map +0 -1
  24. package/lib/presentation/atoms/AtomicCard.d.ts +0 -15
  25. package/lib/presentation/atoms/AtomicCard.d.ts.map +0 -1
  26. package/lib/presentation/atoms/AtomicCard.js +0 -70
  27. package/lib/presentation/atoms/AtomicCard.js.map +0 -1
  28. package/lib/presentation/atoms/AtomicChip.d.ts +0 -53
  29. package/lib/presentation/atoms/AtomicChip.d.ts.map +0 -1
  30. package/lib/presentation/atoms/AtomicChip.js +0 -131
  31. package/lib/presentation/atoms/AtomicChip.js.map +0 -1
  32. package/lib/presentation/atoms/AtomicDatePicker.d.ts +0 -75
  33. package/lib/presentation/atoms/AtomicDatePicker.d.ts.map +0 -1
  34. package/lib/presentation/atoms/AtomicDatePicker.js +0 -246
  35. package/lib/presentation/atoms/AtomicDatePicker.js.map +0 -1
  36. package/lib/presentation/atoms/AtomicDivider.d.ts +0 -45
  37. package/lib/presentation/atoms/AtomicDivider.d.ts.map +0 -1
  38. package/lib/presentation/atoms/AtomicDivider.js +0 -58
  39. package/lib/presentation/atoms/AtomicDivider.js.map +0 -1
  40. package/lib/presentation/atoms/AtomicFab.d.ts +0 -37
  41. package/lib/presentation/atoms/AtomicFab.d.ts.map +0 -1
  42. package/lib/presentation/atoms/AtomicFab.js +0 -68
  43. package/lib/presentation/atoms/AtomicFab.js.map +0 -1
  44. package/lib/presentation/atoms/AtomicFilter.d.ts +0 -37
  45. package/lib/presentation/atoms/AtomicFilter.d.ts.map +0 -1
  46. package/lib/presentation/atoms/AtomicFilter.js +0 -104
  47. package/lib/presentation/atoms/AtomicFilter.js.map +0 -1
  48. package/lib/presentation/atoms/AtomicFormError.d.ts +0 -30
  49. package/lib/presentation/atoms/AtomicFormError.d.ts.map +0 -1
  50. package/lib/presentation/atoms/AtomicFormError.js +0 -64
  51. package/lib/presentation/atoms/AtomicFormError.js.map +0 -1
  52. package/lib/presentation/atoms/AtomicIcon.d.ts +0 -35
  53. package/lib/presentation/atoms/AtomicIcon.d.ts.map +0 -1
  54. package/lib/presentation/atoms/AtomicIcon.js +0 -30
  55. package/lib/presentation/atoms/AtomicIcon.js.map +0 -1
  56. package/lib/presentation/atoms/AtomicImage.d.ts +0 -40
  57. package/lib/presentation/atoms/AtomicImage.d.ts.map +0 -1
  58. package/lib/presentation/atoms/AtomicImage.js +0 -92
  59. package/lib/presentation/atoms/AtomicImage.js.map +0 -1
  60. package/lib/presentation/atoms/AtomicInput.d.ts +0 -71
  61. package/lib/presentation/atoms/AtomicInput.d.ts.map +0 -1
  62. package/lib/presentation/atoms/AtomicInput.js +0 -196
  63. package/lib/presentation/atoms/AtomicInput.js.map +0 -1
  64. package/lib/presentation/atoms/AtomicNumberInput.d.ts +0 -69
  65. package/lib/presentation/atoms/AtomicNumberInput.d.ts.map +0 -1
  66. package/lib/presentation/atoms/AtomicNumberInput.js +0 -125
  67. package/lib/presentation/atoms/AtomicNumberInput.js.map +0 -1
  68. package/lib/presentation/atoms/AtomicPicker.d.ts +0 -52
  69. package/lib/presentation/atoms/AtomicPicker.d.ts.map +0 -1
  70. package/lib/presentation/atoms/AtomicPicker.js +0 -299
  71. package/lib/presentation/atoms/AtomicPicker.js.map +0 -1
  72. package/lib/presentation/atoms/AtomicProgress.d.ts +0 -44
  73. package/lib/presentation/atoms/AtomicProgress.d.ts.map +0 -1
  74. package/lib/presentation/atoms/AtomicProgress.js +0 -80
  75. package/lib/presentation/atoms/AtomicProgress.js.map +0 -1
  76. package/lib/presentation/atoms/AtomicSearchBar.d.ts +0 -19
  77. package/lib/presentation/atoms/AtomicSearchBar.d.ts.map +0 -1
  78. package/lib/presentation/atoms/AtomicSearchBar.js +0 -46
  79. package/lib/presentation/atoms/AtomicSearchBar.js.map +0 -1
  80. package/lib/presentation/atoms/AtomicSort.d.ts +0 -72
  81. package/lib/presentation/atoms/AtomicSort.d.ts.map +0 -1
  82. package/lib/presentation/atoms/AtomicSort.js +0 -77
  83. package/lib/presentation/atoms/AtomicSort.js.map +0 -1
  84. package/lib/presentation/atoms/AtomicSwitch.d.ts +0 -43
  85. package/lib/presentation/atoms/AtomicSwitch.d.ts.map +0 -1
  86. package/lib/presentation/atoms/AtomicSwitch.js +0 -104
  87. package/lib/presentation/atoms/AtomicSwitch.js.map +0 -1
  88. package/lib/presentation/atoms/AtomicText.d.ts +0 -14
  89. package/lib/presentation/atoms/AtomicText.d.ts.map +0 -1
  90. package/lib/presentation/atoms/AtomicText.js +0 -36
  91. package/lib/presentation/atoms/AtomicText.js.map +0 -1
  92. package/lib/presentation/atoms/AtomicTextArea.d.ts +0 -85
  93. package/lib/presentation/atoms/AtomicTextArea.d.ts.map +0 -1
  94. package/lib/presentation/atoms/AtomicTextArea.js +0 -196
  95. package/lib/presentation/atoms/AtomicTextArea.js.map +0 -1
  96. package/lib/presentation/atoms/AtomicTouchable.d.ts +0 -77
  97. package/lib/presentation/atoms/AtomicTouchable.d.ts.map +0 -1
  98. package/lib/presentation/atoms/AtomicTouchable.js +0 -138
  99. package/lib/presentation/atoms/AtomicTouchable.js.map +0 -1
  100. package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +0 -23
  101. package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +0 -1
  102. package/lib/presentation/atoms/fab/styles/fabStyles.js +0 -63
  103. package/lib/presentation/atoms/fab/styles/fabStyles.js.map +0 -1
  104. package/lib/presentation/atoms/fab/types/index.d.ts +0 -71
  105. package/lib/presentation/atoms/fab/types/index.d.ts.map +0 -1
  106. package/lib/presentation/atoms/fab/types/index.js +0 -2
  107. package/lib/presentation/atoms/fab/types/index.js.map +0 -1
  108. package/lib/presentation/atoms/filter/styles/filterStyles.d.ts +0 -15
  109. package/lib/presentation/atoms/filter/styles/filterStyles.d.ts.map +0 -1
  110. package/lib/presentation/atoms/filter/styles/filterStyles.js +0 -29
  111. package/lib/presentation/atoms/filter/styles/filterStyles.js.map +0 -1
  112. package/lib/presentation/atoms/filter/types/index.d.ts +0 -76
  113. package/lib/presentation/atoms/filter/types/index.d.ts.map +0 -1
  114. package/lib/presentation/atoms/filter/types/index.js +0 -2
  115. package/lib/presentation/atoms/filter/types/index.js.map +0 -1
  116. package/lib/presentation/atoms/index.d.ts +0 -273
  117. package/lib/presentation/atoms/index.d.ts.map +0 -1
  118. package/lib/presentation/atoms/index.js +0 -146
  119. package/lib/presentation/atoms/index.js.map +0 -1
  120. package/lib/presentation/atoms/input/hooks/useInputState.d.ts +0 -7
  121. package/lib/presentation/atoms/input/hooks/useInputState.d.ts.map +0 -1
  122. package/lib/presentation/atoms/input/hooks/useInputState.js +0 -13
  123. package/lib/presentation/atoms/input/hooks/useInputState.js.map +0 -1
  124. package/lib/presentation/atoms/input/styles/inputStyles.d.ts +0 -13
  125. package/lib/presentation/atoms/input/styles/inputStyles.d.ts.map +0 -1
  126. package/lib/presentation/atoms/input/styles/inputStyles.js +0 -59
  127. package/lib/presentation/atoms/input/styles/inputStyles.js.map +0 -1
  128. package/lib/presentation/atoms/input/types/index.d.ts +0 -24
  129. package/lib/presentation/atoms/input/types/index.d.ts.map +0 -1
  130. package/lib/presentation/atoms/input/types/index.js +0 -2
  131. package/lib/presentation/atoms/input/types/index.js.map +0 -1
  132. package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +0 -85
  133. package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +0 -1
  134. package/lib/presentation/atoms/picker/styles/pickerStyles.js +0 -177
  135. package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +0 -1
  136. package/lib/presentation/atoms/picker/types/index.d.ts +0 -38
  137. package/lib/presentation/atoms/picker/types/index.d.ts.map +0 -1
  138. package/lib/presentation/atoms/picker/types/index.js +0 -2
  139. package/lib/presentation/atoms/picker/types/index.js.map +0 -1
  140. package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts +0 -31
  141. package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts.map +0 -1
  142. package/lib/presentation/atoms/touchable/styles/touchableStyles.js +0 -54
  143. package/lib/presentation/atoms/touchable/styles/touchableStyles.js.map +0 -1
  144. package/lib/presentation/atoms/touchable/types/index.d.ts +0 -134
  145. package/lib/presentation/atoms/touchable/types/index.d.ts.map +0 -1
  146. package/lib/presentation/atoms/touchable/types/index.js +0 -2
  147. package/lib/presentation/atoms/touchable/types/index.js.map +0 -1
  148. package/lib/presentation/hooks/useResponsive.d.ts +0 -80
  149. package/lib/presentation/hooks/useResponsive.d.ts.map +0 -1
  150. package/lib/presentation/hooks/useResponsive.js +0 -82
  151. package/lib/presentation/hooks/useResponsive.js.map +0 -1
  152. package/lib/presentation/molecules/AtomicConfirmationModal.d.ts +0 -73
  153. package/lib/presentation/molecules/AtomicConfirmationModal.d.ts.map +0 -1
  154. package/lib/presentation/molecules/AtomicConfirmationModal.js +0 -154
  155. package/lib/presentation/molecules/AtomicConfirmationModal.js.map +0 -1
  156. package/lib/presentation/molecules/EmptyState.d.ts +0 -41
  157. package/lib/presentation/molecules/EmptyState.d.ts.map +0 -1
  158. package/lib/presentation/molecules/EmptyState.js +0 -68
  159. package/lib/presentation/molecules/EmptyState.js.map +0 -1
  160. package/lib/presentation/molecules/FormField.d.ts +0 -22
  161. package/lib/presentation/molecules/FormField.d.ts.map +0 -1
  162. package/lib/presentation/molecules/FormField.js +0 -76
  163. package/lib/presentation/molecules/FormField.js.map +0 -1
  164. package/lib/presentation/molecules/GridContainer.d.ts +0 -40
  165. package/lib/presentation/molecules/GridContainer.d.ts.map +0 -1
  166. package/lib/presentation/molecules/GridContainer.js +0 -77
  167. package/lib/presentation/molecules/GridContainer.js.map +0 -1
  168. package/lib/presentation/molecules/IconContainer.d.ts +0 -29
  169. package/lib/presentation/molecules/IconContainer.d.ts.map +0 -1
  170. package/lib/presentation/molecules/IconContainer.js +0 -60
  171. package/lib/presentation/molecules/IconContainer.js.map +0 -1
  172. package/lib/presentation/molecules/ListItem.d.ts +0 -5
  173. package/lib/presentation/molecules/ListItem.d.ts.map +0 -1
  174. package/lib/presentation/molecules/ListItem.js +0 -24
  175. package/lib/presentation/molecules/ListItem.js.map +0 -1
  176. package/lib/presentation/molecules/ScreenHeader.d.ts +0 -55
  177. package/lib/presentation/molecules/ScreenHeader.d.ts.map +0 -1
  178. package/lib/presentation/molecules/ScreenHeader.js +0 -94
  179. package/lib/presentation/molecules/ScreenHeader.js.map +0 -1
  180. package/lib/presentation/molecules/SearchBar.d.ts +0 -18
  181. package/lib/presentation/molecules/SearchBar.d.ts.map +0 -1
  182. package/lib/presentation/molecules/SearchBar.js +0 -47
  183. package/lib/presentation/molecules/SearchBar.js.map +0 -1
  184. package/lib/presentation/molecules/SectionCard.d.ts +0 -25
  185. package/lib/presentation/molecules/SectionCard.d.ts.map +0 -1
  186. package/lib/presentation/molecules/SectionCard.js +0 -47
  187. package/lib/presentation/molecules/SectionCard.js.map +0 -1
  188. package/lib/presentation/molecules/SectionContainer.d.ts +0 -33
  189. package/lib/presentation/molecules/SectionContainer.d.ts.map +0 -1
  190. package/lib/presentation/molecules/SectionContainer.js +0 -64
  191. package/lib/presentation/molecules/SectionContainer.js.map +0 -1
  192. package/lib/presentation/molecules/SectionHeader.d.ts +0 -37
  193. package/lib/presentation/molecules/SectionHeader.d.ts.map +0 -1
  194. package/lib/presentation/molecules/SectionHeader.js +0 -73
  195. package/lib/presentation/molecules/SectionHeader.js.map +0 -1
  196. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +0 -50
  197. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +0 -1
  198. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.js +0 -115
  199. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.js.map +0 -1
  200. package/lib/presentation/molecules/confirmation-modal/types/index.d.ts +0 -86
  201. package/lib/presentation/molecules/confirmation-modal/types/index.d.ts.map +0 -1
  202. package/lib/presentation/molecules/confirmation-modal/types/index.js +0 -7
  203. package/lib/presentation/molecules/confirmation-modal/types/index.js.map +0 -1
  204. package/lib/presentation/molecules/index.d.ts +0 -27
  205. package/lib/presentation/molecules/index.d.ts.map +0 -1
  206. package/lib/presentation/molecules/index.js +0 -17
  207. package/lib/presentation/molecules/index.js.map +0 -1
  208. package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts +0 -12
  209. package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts.map +0 -1
  210. package/lib/presentation/molecules/listitem/styles/listItemStyles.js +0 -15
  211. package/lib/presentation/molecules/listitem/styles/listItemStyles.js.map +0 -1
  212. package/lib/presentation/molecules/listitem/types/index.d.ts +0 -17
  213. package/lib/presentation/molecules/listitem/types/index.d.ts.map +0 -1
  214. package/lib/presentation/molecules/listitem/types/index.js +0 -2
  215. package/lib/presentation/molecules/listitem/types/index.js.map +0 -1
  216. package/lib/presentation/organisms/AppHeader.d.ts +0 -31
  217. package/lib/presentation/organisms/AppHeader.d.ts.map +0 -1
  218. package/lib/presentation/organisms/AppHeader.js +0 -78
  219. package/lib/presentation/organisms/AppHeader.js.map +0 -1
  220. package/lib/presentation/organisms/FormContainer.d.ts +0 -76
  221. package/lib/presentation/organisms/FormContainer.d.ts.map +0 -1
  222. package/lib/presentation/organisms/FormContainer.js +0 -127
  223. package/lib/presentation/organisms/FormContainer.js.map +0 -1
  224. package/lib/presentation/organisms/ScreenLayout.d.ts +0 -84
  225. package/lib/presentation/organisms/ScreenLayout.d.ts.map +0 -1
  226. package/lib/presentation/organisms/ScreenLayout.js +0 -69
  227. package/lib/presentation/organisms/ScreenLayout.js.map +0 -1
  228. package/lib/presentation/organisms/index.d.ts +0 -16
  229. package/lib/presentation/organisms/index.d.ts.map +0 -1
  230. package/lib/presentation/organisms/index.js +0 -14
  231. package/lib/presentation/organisms/index.js.map +0 -1
  232. package/lib/presentation/tokens/commonStyles.d.ts +0 -122
  233. package/lib/presentation/tokens/commonStyles.d.ts.map +0 -1
  234. package/lib/presentation/tokens/commonStyles.js +0 -220
  235. package/lib/presentation/tokens/commonStyles.js.map +0 -1
  236. package/lib/presentation/utils/platformConstants.d.ts +0 -100
  237. package/lib/presentation/utils/platformConstants.d.ts.map +0 -1
  238. package/lib/presentation/utils/platformConstants.js +0 -114
  239. package/lib/presentation/utils/platformConstants.js.map +0 -1
  240. package/lib/presentation/utils/responsive.d.ts +0 -218
  241. package/lib/presentation/utils/responsive.d.ts.map +0 -1
  242. package/lib/presentation/utils/responsive.js +0 -452
  243. package/lib/presentation/utils/responsive.js.map +0 -1
  244. package/lib/presentation/utils/variants/compound.d.ts +0 -10
  245. package/lib/presentation/utils/variants/compound.d.ts.map +0 -1
  246. package/lib/presentation/utils/variants/compound.js +0 -16
  247. package/lib/presentation/utils/variants/compound.js.map +0 -1
  248. package/lib/presentation/utils/variants/core.d.ts +0 -15
  249. package/lib/presentation/utils/variants/core.d.ts.map +0 -1
  250. package/lib/presentation/utils/variants/core.js +0 -23
  251. package/lib/presentation/utils/variants/core.js.map +0 -1
  252. package/lib/presentation/utils/variants/helpers.d.ts +0 -5
  253. package/lib/presentation/utils/variants/helpers.d.ts.map +0 -1
  254. package/lib/presentation/utils/variants/helpers.js +0 -10
  255. package/lib/presentation/utils/variants/helpers.js.map +0 -1
  256. package/lib/presentation/utils/variants.d.ts +0 -4
  257. package/lib/presentation/utils/variants.d.ts.map +0 -1
  258. package/lib/presentation/utils/variants.js +0 -4
  259. package/lib/presentation/utils/variants.js.map +0 -1
  260. package/src/presentation/atoms/AtomicAvatar.tsx +0 -157
  261. package/src/presentation/atoms/AtomicAvatarGroup.tsx +0 -169
  262. package/src/presentation/atoms/AtomicBadge.tsx +0 -232
  263. package/src/presentation/atoms/AtomicButton.tsx +0 -236
  264. package/src/presentation/atoms/AtomicCard.tsx +0 -107
  265. package/src/presentation/atoms/AtomicChip.tsx +0 -223
  266. package/src/presentation/atoms/AtomicDatePicker.tsx +0 -354
  267. package/src/presentation/atoms/AtomicDivider.tsx +0 -114
  268. package/src/presentation/atoms/AtomicFab.tsx +0 -98
  269. package/src/presentation/atoms/AtomicFilter.tsx +0 -154
  270. package/src/presentation/atoms/AtomicFormError.tsx +0 -105
  271. package/src/presentation/atoms/AtomicIcon.tsx +0 -40
  272. package/src/presentation/atoms/AtomicImage.tsx +0 -149
  273. package/src/presentation/atoms/AtomicInput.tsx +0 -350
  274. package/src/presentation/atoms/AtomicNumberInput.tsx +0 -182
  275. package/src/presentation/atoms/AtomicPicker.tsx +0 -458
  276. package/src/presentation/atoms/AtomicProgress.tsx +0 -139
  277. package/src/presentation/atoms/AtomicSearchBar.tsx +0 -114
  278. package/src/presentation/atoms/AtomicSort.tsx +0 -145
  279. package/src/presentation/atoms/AtomicSwitch.tsx +0 -166
  280. package/src/presentation/atoms/AtomicText.tsx +0 -82
  281. package/src/presentation/atoms/AtomicTextArea.tsx +0 -313
  282. package/src/presentation/atoms/AtomicTouchable.tsx +0 -209
  283. package/src/presentation/atoms/fab/styles/fabStyles.ts +0 -69
  284. package/src/presentation/atoms/fab/types/index.ts +0 -82
  285. package/src/presentation/atoms/filter/styles/filterStyles.ts +0 -32
  286. package/src/presentation/atoms/filter/types/index.ts +0 -89
  287. package/src/presentation/atoms/index.ts +0 -366
  288. package/src/presentation/atoms/input/hooks/useInputState.ts +0 -15
  289. package/src/presentation/atoms/input/styles/inputStyles.ts +0 -66
  290. package/src/presentation/atoms/input/types/index.ts +0 -25
  291. package/src/presentation/atoms/picker/styles/pickerStyles.ts +0 -207
  292. package/src/presentation/atoms/picker/types/index.ts +0 -40
  293. package/src/presentation/atoms/touchable/styles/touchableStyles.ts +0 -62
  294. package/src/presentation/atoms/touchable/types/index.ts +0 -155
  295. package/src/presentation/hooks/useResponsive.ts +0 -180
  296. package/src/presentation/molecules/AtomicConfirmationModal.tsx +0 -243
  297. package/src/presentation/molecules/EmptyState.tsx +0 -130
  298. package/src/presentation/molecules/FormField.tsx +0 -128
  299. package/src/presentation/molecules/GridContainer.tsx +0 -124
  300. package/src/presentation/molecules/IconContainer.tsx +0 -94
  301. package/src/presentation/molecules/ListItem.tsx +0 -36
  302. package/src/presentation/molecules/ScreenHeader.tsx +0 -140
  303. package/src/presentation/molecules/SearchBar.tsx +0 -85
  304. package/src/presentation/molecules/SectionCard.tsx +0 -74
  305. package/src/presentation/molecules/SectionContainer.tsx +0 -106
  306. package/src/presentation/molecules/SectionHeader.tsx +0 -125
  307. package/src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts +0 -133
  308. package/src/presentation/molecules/confirmation-modal/types/index.ts +0 -105
  309. package/src/presentation/molecules/index.ts +0 -41
  310. package/src/presentation/molecules/listitem/styles/listItemStyles.ts +0 -19
  311. package/src/presentation/molecules/listitem/types/index.ts +0 -17
  312. package/src/presentation/organisms/AppHeader.tsx +0 -137
  313. package/src/presentation/organisms/FormContainer.tsx +0 -180
  314. package/src/presentation/organisms/ScreenLayout.tsx +0 -171
  315. package/src/presentation/organisms/index.ts +0 -25
  316. package/src/presentation/tokens/commonStyles.ts +0 -253
  317. package/src/presentation/utils/platformConstants.ts +0 -124
  318. package/src/presentation/utils/responsive.ts +0 -516
@@ -1,85 +0,0 @@
1
- /**
2
- * SearchBar Molecule - Search Input with Icon and Clear Button
3
- *
4
- * Combines AtomicInput + AtomicIcon + AtomicButton
5
- * Theme: {{THEME_NAME}} ({{CATEGORY}} category)
6
- *
7
- * Atomic Design Level: MOLECULE
8
- * Composition: AtomicInput + AtomicIcon + TouchableOpacity
9
- */
10
-
11
- import React from 'react';
12
- import { View, TouchableOpacity, ViewStyle } from 'react-native';
13
- import { useAppDesignTokens } from '@umituz/react-native-theme';
14
- import { AtomicInput, AtomicInputProps } from '../atoms/AtomicInput';
15
- import { AtomicIcon } from '../atoms/AtomicIcon';
16
-
17
- // =============================================================================
18
- // TYPE DEFINITIONS
19
- // =============================================================================
20
-
21
- export interface SearchBarProps extends Omit<AtomicInputProps, 'leftIcon' | 'rightIcon'> {
22
- onClear?: () => void;
23
- containerStyle?: ViewStyle;
24
- }
25
-
26
- // =============================================================================
27
- // COMPONENT IMPLEMENTATION
28
- // =============================================================================
29
-
30
- export const SearchBar: React.FC<SearchBarProps> = ({
31
- value,
32
- onChangeText,
33
- onClear,
34
- placeholder = 'Search...',
35
- containerStyle,
36
- ...inputProps
37
- }) => {
38
- const tokens = useAppDesignTokens();
39
-
40
- const handleClear = () => {
41
- if (onChangeText) {
42
- onChangeText('');
43
- }
44
- if (onClear) {
45
- onClear();
46
- }
47
- };
48
-
49
- const styles = getStyles(tokens);
50
-
51
- return (
52
- <View style={[styles.container, containerStyle]}>
53
- <AtomicInput
54
- {...inputProps}
55
- value={value}
56
- onChangeText={onChangeText}
57
- placeholder={placeholder}
58
- variant="filled"
59
- style={styles.input}
60
- leadingIcon="Search"
61
- trailingIcon={value && value.length > 0 ? "X" : undefined}
62
- onTrailingIconPress={value && value.length > 0 ? handleClear : undefined}
63
- />
64
- </View>
65
- );
66
- };
67
-
68
- // =============================================================================
69
- // STYLES
70
- // =============================================================================
71
-
72
- const getStyles = (tokens: ReturnType<typeof useAppDesignTokens>) => ({
73
- container: {
74
- width: '100%',
75
- marginVertical: tokens.spacing.sm,
76
- } as ViewStyle,
77
- input: {
78
- backgroundColor: tokens.colors.surfaceVariant,
79
- } as ViewStyle,
80
- });
81
-
82
- // =============================================================================
83
- // EXPORTS
84
- // =============================================================================
85
-
@@ -1,74 +0,0 @@
1
- /**
2
- * SectionCard Molecule Component
3
- *
4
- * Reusable section card with title and content area.
5
- * Used throughout settings screens for consistent grouping.
6
- *
7
- * Features:
8
- * - Automatic theme-aware styling
9
- * - Uppercase section titles with proper spacing
10
- * - Built on AtomicCard for consistency
11
- * - Flexible content area
12
- *
13
- * Atomic Design: Molecule (Card + Text)
14
- */
15
-
16
- import React from 'react';
17
- import { View, StyleSheet } from 'react-native';
18
- import { useAppDesignTokens } from '@umituz/react-native-theme';
19
- import { AtomicCard } from '../atoms/AtomicCard';
20
- import { AtomicText } from '../atoms/AtomicText';
21
-
22
- interface SectionCardProps {
23
- title: string;
24
- children: React.ReactNode;
25
- style?: object;
26
- contentStyle?: object;
27
- testID?: string;
28
- }
29
-
30
- export const SectionCard: React.FC<SectionCardProps> = ({
31
- title,
32
- children,
33
- style,
34
- contentStyle,
35
- testID,
36
- }) => {
37
- const tokens = useAppDesignTokens();
38
- const styles = getStyles(tokens);
39
-
40
- return (
41
- <AtomicCard
42
- variant="outlined"
43
- style={StyleSheet.flatten([styles.card, style])}
44
- testID={testID}
45
- >
46
- <AtomicText
47
- type="labelLarge"
48
- color={tokens.colors.textSecondary}
49
- style={styles.title}
50
- >
51
- {title.toUpperCase()}
52
- </AtomicText>
53
- <View style={contentStyle}>
54
- {children}
55
- </View>
56
- </AtomicCard>
57
- );
58
- };
59
-
60
- const getStyles = (tokens: ReturnType<typeof useAppDesignTokens>) => StyleSheet.create({
61
- card: {
62
- paddingVertical: tokens.spacing.md,
63
- paddingHorizontal: 0,
64
- marginHorizontal: tokens.spacing.md,
65
- marginBottom: tokens.spacing.lg,
66
- },
67
- title: {
68
- fontSize: tokens.typography.labelLarge.fontSize,
69
- fontWeight: tokens.typography.labelLarge.fontWeight,
70
- letterSpacing: 0.5,
71
- paddingHorizontal: tokens.spacing.md,
72
- marginBottom: tokens.spacing.sm,
73
- },
74
- });
@@ -1,106 +0,0 @@
1
- /**
2
- * SectionContainer Molecule - Universal Section Wrapper
3
- *
4
- * Provides consistent section layout with optional title
5
- * Theme: {{THEME_NAME}} ({{CATEGORY}} category)
6
- *
7
- * Atomic Design Level: MOLECULE
8
- * Composition: View + AtomicText + Layout
9
- *
10
- * Usage:
11
- * - Home screen sections
12
- * - Dashboard sections
13
- * - Settings groups
14
- * - Content sections
15
- */
16
-
17
- import React from 'react';
18
- import { View, StyleSheet, ViewStyle, TextStyle } from 'react-native';
19
- import { AtomicText } from '../atoms/AtomicText';
20
- import { useAppDesignTokens } from '@umituz/react-native-theme';
21
-
22
- // =============================================================================
23
- // TYPE DEFINITIONS
24
- // =============================================================================
25
-
26
- export interface SectionContainerProps {
27
- /** Section title (optional) */
28
- title?: string;
29
- /** Section title color (default: textPrimary) */
30
- titleColor?: string;
31
- /** Section title style override */
32
- titleStyle?: TextStyle;
33
- /** Container style override */
34
- style?: ViewStyle;
35
- /** Content to render inside section */
36
- children: React.ReactNode;
37
- /** Right action element (e.g., "See All" link) */
38
- rightAction?: React.ReactNode;
39
- }
40
-
41
- // =============================================================================
42
- // COMPONENT IMPLEMENTATION
43
- // =============================================================================
44
-
45
- export const SectionContainer: React.FC<SectionContainerProps> = ({
46
- title,
47
- titleColor,
48
- titleStyle,
49
- style,
50
- children,
51
- rightAction,
52
- }) => {
53
- const tokens = useAppDesignTokens();
54
- const styles = getStyles(tokens);
55
-
56
- return (
57
- <View style={[styles.section, style]}>
58
- {title && (
59
- <View style={styles.header}>
60
- <AtomicText
61
- type="titleLarge"
62
- color={titleColor || "primary"}
63
- style={StyleSheet.flatten([
64
- styles.sectionTitle,
65
- titleStyle,
66
- ])}
67
- >
68
- {title}
69
- </AtomicText>
70
- {rightAction && <View style={styles.rightAction}>{rightAction}</View>}
71
- </View>
72
- )}
73
- {children}
74
- </View>
75
- );
76
- };
77
-
78
- // =============================================================================
79
- // STYLES
80
- // =============================================================================
81
-
82
- const getStyles = (tokens: ReturnType<typeof useAppDesignTokens>) =>
83
- StyleSheet.create({
84
- section: {
85
- marginBottom: tokens.spacing.lg,
86
- paddingHorizontal: tokens.spacing.md,
87
- },
88
- header: {
89
- flexDirection: 'row',
90
- justifyContent: 'space-between',
91
- alignItems: 'center',
92
- marginBottom: tokens.spacing.md,
93
- },
94
- sectionTitle: {
95
- fontSize: tokens.typography.titleLarge.fontSize,
96
- fontWeight: tokens.typography.titleLarge.fontWeight,
97
- },
98
- rightAction: {
99
- marginLeft: tokens.spacing.sm,
100
- },
101
- });
102
-
103
- // =============================================================================
104
- // EXPORTS
105
- // =============================================================================
106
-
@@ -1,125 +0,0 @@
1
- /**
2
- * SectionHeader Molecule - Universal Section Header
3
- *
4
- * Displays section title with optional subtitle
5
- * Theme: {{THEME_NAME}} ({{CATEGORY}} category)
6
- *
7
- * Atomic Design Level: MOLECULE
8
- * Composition: AtomicText + Layout
9
- *
10
- * Usage:
11
- * - List headers
12
- * - Grid headers
13
- * - Section dividers
14
- * - Screen headers
15
- */
16
-
17
- import React from 'react';
18
- import { View, StyleSheet, ViewStyle, TextStyle } from 'react-native';
19
- import { AtomicText } from '../atoms/AtomicText';
20
- import { useAppDesignTokens } from '@umituz/react-native-theme';
21
-
22
- // =============================================================================
23
- // TYPE DEFINITIONS
24
- // =============================================================================
25
-
26
- export interface SectionHeaderProps {
27
- /** Main heading text */
28
- title: string;
29
- /** Optional subtitle text */
30
- subtitle?: string;
31
- /** Custom title color (default: textPrimary) */
32
- titleColor?: string;
33
- /** Custom subtitle color (default: textSecondary) */
34
- subtitleColor?: string;
35
- /** Container style override */
36
- style?: ViewStyle;
37
- /** Title style override */
38
- titleStyle?: TextStyle;
39
- /** Subtitle style override */
40
- subtitleStyle?: TextStyle;
41
- /** Right action element (e.g., button, icon) */
42
- rightAction?: React.ReactNode;
43
- }
44
-
45
- // =============================================================================
46
- // COMPONENT IMPLEMENTATION
47
- // =============================================================================
48
-
49
- export const SectionHeader: React.FC<SectionHeaderProps> = ({
50
- title,
51
- subtitle,
52
- titleColor,
53
- subtitleColor,
54
- style,
55
- titleStyle,
56
- subtitleStyle,
57
- rightAction,
58
- }) => {
59
- const tokens = useAppDesignTokens();
60
- const styles = getStyles(tokens);
61
-
62
- return (
63
- <View style={[styles.container, style]}>
64
- <View style={styles.textContainer}>
65
- <AtomicText
66
- type="headlineLarge"
67
- color={titleColor || "primary"}
68
- style={StyleSheet.flatten([
69
- styles.title,
70
- titleStyle,
71
- ])}
72
- >
73
- {title}
74
- </AtomicText>
75
- {subtitle && (
76
- <AtomicText
77
- type="bodyMedium"
78
- color={subtitleColor || "secondary"}
79
- style={StyleSheet.flatten([
80
- styles.subtitle,
81
- subtitleStyle,
82
- ])}
83
- >
84
- {subtitle}
85
- </AtomicText>
86
- )}
87
- </View>
88
- {rightAction && <View style={styles.rightAction}>{rightAction}</View>}
89
- </View>
90
- );
91
- };
92
-
93
- // =============================================================================
94
- // STYLES
95
- // =============================================================================
96
-
97
- const getStyles = (tokens: ReturnType<typeof useAppDesignTokens>) =>
98
- StyleSheet.create({
99
- container: {
100
- flexDirection: 'row',
101
- justifyContent: 'space-between',
102
- alignItems: 'center',
103
- paddingHorizontal: tokens.spacing.md,
104
- paddingVertical: tokens.spacing.sm,
105
- },
106
- textContainer: {
107
- flex: 1,
108
- },
109
- title: {
110
- fontSize: tokens.typography.headlineLarge.fontSize,
111
- fontWeight: tokens.typography.headlineLarge.fontWeight,
112
- marginBottom: tokens.spacing.xs,
113
- },
114
- subtitle: {
115
- fontSize: tokens.typography.bodyMedium.fontSize,
116
- },
117
- rightAction: {
118
- marginLeft: tokens.spacing.sm,
119
- },
120
- });
121
-
122
- // =============================================================================
123
- // EXPORTS
124
- // =============================================================================
125
-
@@ -1,133 +0,0 @@
1
- /**
2
- * AtomicConfirmationModal Style Utilities
3
- *
4
- * Styling functions for confirmation modal component
5
- */
6
-
7
- import { ViewStyle } from 'react-native';
8
- import { ConfirmationModalVariant, ConfirmationModalVariantConfig } from '../types';
9
- import type { DesignTokens } from '@umituz/react-native-theme';
10
-
11
- /**
12
- * Get variant configuration (icon and color only)
13
- * Note: Confirm text is handled in component with translations
14
- */
15
- export const getVariantConfig = (
16
- variant: ConfirmationModalVariant,
17
- tokens: DesignTokens
18
- ): Omit<ConfirmationModalVariantConfig, 'confirmText'> => {
19
- switch (variant) {
20
- case 'destructive':
21
- return {
22
- icon: 'warning',
23
- iconColor: 'error',
24
- };
25
- case 'warning':
26
- return {
27
- icon: 'warning',
28
- iconColor: 'warning',
29
- };
30
- case 'success':
31
- return {
32
- icon: 'check-circle',
33
- iconColor: 'success',
34
- };
35
- case 'default':
36
- default:
37
- return {
38
- icon: 'help-circle',
39
- iconColor: 'primary',
40
- };
41
- }
42
- };
43
-
44
- /**
45
- * Get modal overlay style
46
- */
47
- export const getModalOverlayStyle = (tokens: DesignTokens): ViewStyle => ({
48
- flex: 1,
49
- justifyContent: 'center',
50
- alignItems: 'center',
51
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
52
- });
53
-
54
- /**
55
- * Get backdrop style (invisible layer for dismissing)
56
- */
57
- export const getBackdropStyle = (): ViewStyle => ({
58
- position: 'absolute',
59
- top: 0,
60
- left: 0,
61
- right: 0,
62
- bottom: 0,
63
- });
64
-
65
- /**
66
- * Get modal container style
67
- */
68
- export const getModalContainerStyle = (tokens: DesignTokens): ViewStyle => ({
69
- width: '85%',
70
- maxWidth: 400,
71
- backgroundColor: tokens.colors.surface,
72
- borderRadius: 16,
73
- padding: 24,
74
- alignItems: 'center',
75
- borderWidth: 1,
76
- borderColor: tokens.colors.outline,
77
- });
78
-
79
- /**
80
- * Get icon container style
81
- */
82
- export const getIconContainerStyle = (tokens: DesignTokens): ViewStyle => ({
83
- marginBottom: 16,
84
- });
85
-
86
- /**
87
- * Get title container style
88
- */
89
- export const getTitleContainerStyle = (tokens: DesignTokens): ViewStyle => ({
90
- marginBottom: 8,
91
- });
92
-
93
- /**
94
- * Get message container style
95
- */
96
- export const getMessageContainerStyle = (tokens: DesignTokens): ViewStyle => ({
97
- marginBottom: 24,
98
- });
99
-
100
- /**
101
- * Get button container style
102
- */
103
- export const getButtonContainerStyle = (tokens: DesignTokens): ViewStyle => ({
104
- flexDirection: 'row',
105
- gap: 12,
106
- width: '100%',
107
- });
108
-
109
- /**
110
- * Get button style
111
- */
112
- export const getButtonStyle = (): ViewStyle => ({
113
- flex: 1,
114
- });
115
-
116
- /**
117
- * Get confirm button variant based on modal variant
118
- */
119
- export const getConfirmButtonVariant = (
120
- variant: ConfirmationModalVariant
121
- ): 'primary' | 'secondary' | 'tertiary' | 'outline' | 'ghost' => {
122
- switch (variant) {
123
- case 'destructive':
124
- return 'primary'; // Will use error color
125
- case 'warning':
126
- return 'primary'; // Will use warning color
127
- case 'success':
128
- return 'primary'; // Will use success color
129
- case 'default':
130
- default:
131
- return 'primary';
132
- }
133
- };
@@ -1,105 +0,0 @@
1
- /**
2
- * AtomicConfirmationModal Type Definitions
3
- *
4
- * Type-safe interfaces for confirmation modal component
5
- */
6
-
7
- import { StyleProp, ViewStyle } from 'react-native';
8
- import type { AtomicIconColor } from '../../../atoms/AtomicIcon';
9
-
10
- /**
11
- * Confirmation modal variant
12
- * Determines the visual style and default behavior
13
- */
14
- export type ConfirmationModalVariant =
15
- | 'default' // Generic confirmation (blue/primary)
16
- | 'destructive' // Delete/remove actions (red/error)
17
- | 'warning' // Warning/caution (orange/warning)
18
- | 'success'; // Success confirmation (green/success)
19
-
20
- /**
21
- * Props for AtomicConfirmationModal component
22
- */
23
- export interface AtomicConfirmationModalProps {
24
- /**
25
- * Whether the modal is visible
26
- */
27
- visible: boolean;
28
-
29
- /**
30
- * Modal title (required)
31
- * e.g., "Delete Item?", "Confirm Action", "Are you sure?"
32
- */
33
- title: string;
34
-
35
- /**
36
- * Modal message/description (required)
37
- * e.g., "This action cannot be undone."
38
- */
39
- message: string;
40
-
41
- /**
42
- * Variant determines visual style
43
- * @default 'default'
44
- */
45
- variant?: ConfirmationModalVariant;
46
-
47
- /**
48
- * Confirm button text (required)
49
- */
50
- confirmText: string;
51
-
52
- /**
53
- * Cancel button text (required)
54
- */
55
- cancelText: string;
56
-
57
- /**
58
- * Icon name to display at top (MaterialIcons name)
59
- * If not provided, uses variant-specific default icon
60
- * @see https://fonts.google.com/icons
61
- */
62
- icon?: string;
63
-
64
- /**
65
- * Callback when user confirms
66
- */
67
- onConfirm: () => void;
68
-
69
- /**
70
- * Callback when user cancels or dismisses
71
- */
72
- onCancel: () => void;
73
-
74
- /**
75
- * Whether to show backdrop (tap outside to close)
76
- * @default true
77
- */
78
- showBackdrop?: boolean;
79
-
80
- /**
81
- * Whether backdrop is dismissible
82
- * @default true
83
- */
84
- backdropDismissible?: boolean;
85
-
86
- /**
87
- * Custom style for modal container
88
- */
89
- style?: StyleProp<ViewStyle>;
90
-
91
- /**
92
- * Test ID for testing
93
- */
94
- testID?: string;
95
- }
96
-
97
- /**
98
- * Variant configuration
99
- * Maps variant to icon, colors, and default text
100
- */
101
- export interface ConfirmationModalVariantConfig {
102
- icon: string; // MaterialIcons name
103
- confirmText: string;
104
- iconColor: AtomicIconColor;
105
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * Molecule Components Export Index
3
- *
4
- * Molecules are combinations of atoms that form more complex UI components
5
- * Theme: {{THEME_NAME}} ({{CATEGORY}} category)
6
- *
7
- * Atomic Design Level: MOLECULES
8
- */
9
-
10
- // Component exports
11
- export { FormField } from './FormField';
12
- export { ListItem } from './ListItem';
13
- export { SearchBar } from './SearchBar';
14
- export { SectionCard } from './SectionCard';
15
- export { IconContainer } from './IconContainer';
16
- export { ScreenHeader } from './ScreenHeader';
17
- export { AtomicConfirmationModal, useConfirmationModal } from './AtomicConfirmationModal';
18
-
19
- // SettingItem moved to @domains/settings/presentation/components/SettingItem
20
- // Import directly: import { SettingItem } from '@domains/settings/presentation/components/SettingItem';
21
-
22
- // Type exports
23
- export type { FormFieldProps } from './FormField';
24
- export type { ListItemProps } from './ListItem';
25
- export type { SearchBarProps } from './SearchBar';
26
- export type { ScreenHeaderProps } from './ScreenHeader';
27
- export type { AtomicConfirmationModalProps, ConfirmationModalVariant } from './AtomicConfirmationModal';
28
-
29
- // Union type for all molecule props (used for type narrowing)
30
- import type { FormFieldProps } from './FormField';
31
- import type { ListItemProps } from './ListItem';
32
- import type { SearchBarProps } from './SearchBar';
33
- import type { ScreenHeaderProps } from './ScreenHeader';
34
- import type { AtomicConfirmationModalProps } from './AtomicConfirmationModal';
35
-
36
- export type MoleculeComponentProps =
37
- | FormFieldProps
38
- | ListItemProps
39
- | SearchBarProps
40
- | ScreenHeaderProps
41
- | AtomicConfirmationModalProps;
@@ -1,19 +0,0 @@
1
- import { ViewStyle } from 'react-native';
2
- import { useAppDesignTokens } from '@umituz/react-native-theme';
3
-
4
- type DesignTokens = ReturnType<typeof useAppDesignTokens>;
5
-
6
- export const getListItemStyles = (tokens: DesignTokens) => ({
7
- container: {
8
- flexDirection: 'row' as const,
9
- alignItems: 'center' as const,
10
- padding: tokens.spacing.md,
11
- backgroundColor: tokens.colors.surface,
12
- borderRadius: tokens.borders.radius.lg,
13
- marginBottom: tokens.spacing.sm,
14
- } as ViewStyle,
15
- disabled: { opacity: 0.6 } as ViewStyle,
16
- iconContainer: { marginHorizontal: tokens.spacing.sm } as ViewStyle,
17
- content: { flex: 1 } as ViewStyle,
18
- subtitle: { marginTop: tokens.spacing.xs } as ViewStyle,
19
- });