@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,236 +0,0 @@
1
- import React from 'react';
2
- import { StyleSheet, StyleProp, ViewStyle, TextStyle, TouchableOpacity, View } from 'react-native';
3
- import { AtomicText } from './AtomicText';
4
- import { Icon } from '@umituz/react-native-icon';
5
- import { useAppDesignTokens } from '@umituz/react-native-theme';
6
- import type { IconName } from '@umituz/react-native-icon';
7
-
8
- export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'text' | 'danger';
9
- export type ButtonSize = 'sm' | 'md' | 'lg';
10
-
11
- export interface AtomicButtonProps {
12
- title?: string;
13
- children?: React.ReactNode;
14
- onPress: () => void;
15
- variant?: ButtonVariant;
16
- size?: ButtonSize;
17
- disabled?: boolean;
18
- icon?: IconName;
19
- fullWidth?: boolean;
20
- style?: StyleProp<ViewStyle>;
21
- textStyle?: StyleProp<TextStyle>;
22
- testID?: string;
23
- }
24
-
25
- export const AtomicButton: React.FC<AtomicButtonProps> = ({
26
- title,
27
- children,
28
- onPress,
29
- variant = 'primary',
30
- size = 'md',
31
- disabled = false,
32
- icon,
33
- fullWidth = false,
34
- style,
35
- textStyle,
36
- testID,
37
- }) => {
38
- const tokens = useAppDesignTokens();
39
-
40
- const handlePress = () => {
41
- if (!disabled) {
42
- onPress();
43
- }
44
- };
45
-
46
- // Size configurations
47
- const sizeConfig = {
48
- sm: {
49
- paddingVertical: tokens.spacing.xs,
50
- paddingHorizontal: tokens.spacing.sm,
51
- fontSize: tokens.typography.bodySmall.fontSize,
52
- iconSize: 16,
53
- minHeight: 32,
54
- },
55
- md: {
56
- paddingVertical: tokens.spacing.sm,
57
- paddingHorizontal: tokens.spacing.md,
58
- fontSize: tokens.typography.bodyMedium.fontSize,
59
- iconSize: 20,
60
- minHeight: 44,
61
- },
62
- lg: {
63
- paddingVertical: tokens.spacing.md,
64
- paddingHorizontal: tokens.spacing.lg,
65
- fontSize: tokens.typography.bodyLarge.fontSize,
66
- iconSize: 24,
67
- minHeight: 52,
68
- },
69
- };
70
-
71
- const config = sizeConfig[size];
72
-
73
- // Variant styles
74
- const getVariantStyles = () => {
75
- const baseStyle: ViewStyle = {
76
- backgroundColor: tokens.colors.primary,
77
- borderWidth: 0,
78
- };
79
-
80
- const baseTextStyle: TextStyle = {
81
- color: tokens.colors.textInverse,
82
- };
83
-
84
- switch (variant) {
85
- case 'primary':
86
- return {
87
- container: {
88
- ...baseStyle,
89
- backgroundColor: tokens.colors.primary,
90
- },
91
- text: {
92
- ...baseTextStyle,
93
- color: tokens.colors.textInverse,
94
- },
95
- };
96
-
97
- case 'secondary':
98
- return {
99
- container: {
100
- ...baseStyle,
101
- backgroundColor: tokens.colors.surfaceSecondary,
102
- },
103
- text: {
104
- ...baseTextStyle,
105
- color: tokens.colors.textPrimary,
106
- },
107
- };
108
-
109
- case 'outline':
110
- return {
111
- container: {
112
- ...baseStyle,
113
- backgroundColor: 'transparent',
114
- borderWidth: 1,
115
- borderColor: tokens.colors.border,
116
- },
117
- text: {
118
- ...baseTextStyle,
119
- color: tokens.colors.textPrimary,
120
- },
121
- };
122
-
123
- case 'text':
124
- return {
125
- container: {
126
- ...baseStyle,
127
- backgroundColor: 'transparent',
128
- },
129
- text: {
130
- ...baseTextStyle,
131
- color: tokens.colors.primary,
132
- },
133
- };
134
-
135
- case 'danger':
136
- return {
137
- container: {
138
- ...baseStyle,
139
- backgroundColor: tokens.colors.error,
140
- },
141
- text: {
142
- ...baseTextStyle,
143
- color: tokens.colors.textInverse,
144
- },
145
- };
146
-
147
- default:
148
- return {
149
- container: baseStyle,
150
- text: baseTextStyle,
151
- };
152
- }
153
- };
154
-
155
- const variantStyles = getVariantStyles();
156
-
157
- const containerStyle: StyleProp<ViewStyle> = [
158
- styles.button,
159
- {
160
- paddingVertical: config.paddingVertical,
161
- paddingHorizontal: config.paddingHorizontal,
162
- minHeight: config.minHeight,
163
- borderRadius: tokens.borders.radius.md,
164
- },
165
- variantStyles.container,
166
- fullWidth ? styles.fullWidth : undefined,
167
- disabled ? styles.disabled : undefined,
168
- style,
169
- ];
170
-
171
- const buttonTextStyle: StyleProp<TextStyle> = [
172
- {
173
- fontSize: config.fontSize,
174
- fontWeight: '600',
175
- },
176
- variantStyles.text,
177
- disabled ? styles.disabledText : undefined,
178
- textStyle,
179
- ];
180
-
181
- const buttonText = title || children;
182
- const showIcon = icon;
183
- const iconColor = variantStyles.text.color;
184
-
185
- return (
186
- <TouchableOpacity
187
- style={containerStyle}
188
- onPress={handlePress}
189
- activeOpacity={0.8}
190
- disabled={disabled}
191
- testID={testID}
192
- >
193
- <View style={styles.content}>
194
- {showIcon ? (
195
- <Icon
196
- name={icon}
197
- customSize={config.iconSize}
198
- customColor={typeof iconColor === 'string' ? iconColor : undefined}
199
- style={styles.icon}
200
- />
201
- ) : null}
202
-
203
- <AtomicText style={buttonTextStyle}>
204
- {buttonText}
205
- </AtomicText>
206
- </View>
207
- </TouchableOpacity>
208
- );
209
- };
210
-
211
- const styles = StyleSheet.create({
212
- button: {
213
- alignItems: 'center',
214
- justifyContent: 'center',
215
- flexDirection: 'row',
216
- },
217
- content: {
218
- flexDirection: 'row',
219
- alignItems: 'center',
220
- justifyContent: 'center',
221
- },
222
- fullWidth: {
223
- width: '100%',
224
- },
225
- disabled: {
226
- opacity: 0.5,
227
- },
228
- disabledText: {
229
- opacity: 0.7,
230
- },
231
- icon: {
232
- marginRight: 8,
233
- },
234
- });
235
-
236
- export type { AtomicButtonProps as ButtonProps };
@@ -1,107 +0,0 @@
1
- import React from 'react';
2
- import { View, StyleProp, ViewStyle, Pressable } from 'react-native';
3
- import { useAppDesignTokens } from '@umituz/react-native-theme';
4
-
5
- export type AtomicCardVariant = 'flat' | 'elevated' | 'outlined';
6
- export type AtomicCardPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
7
-
8
- export interface AtomicCardProps {
9
- variant?: AtomicCardVariant;
10
- padding?: AtomicCardPadding;
11
- onPress?: () => void;
12
- disabled?: boolean;
13
- style?: StyleProp<ViewStyle>;
14
- children?: React.ReactNode;
15
- testID?: string;
16
- }
17
-
18
-
19
- export const AtomicCard: React.FC<AtomicCardProps> = ({
20
- variant = 'elevated',
21
- padding = 'md',
22
- onPress,
23
- disabled = false,
24
- style,
25
- children,
26
- testID,
27
- }) => {
28
- const tokens = useAppDesignTokens();
29
-
30
- const handlePress = () => {
31
- if (onPress && !disabled) {
32
- onPress();
33
- }
34
- };
35
-
36
- // Map padding to token values
37
- const getPaddingValue = (): number => {
38
- const paddingMap = {
39
- none: 0,
40
- sm: tokens.spacing.sm,
41
- md: tokens.spacing.md,
42
- lg: tokens.spacing.lg,
43
- xl: tokens.spacing.xl,
44
- };
45
- return paddingMap[padding];
46
- };
47
-
48
- // Get variant styles
49
- const getVariantStyle = (): ViewStyle => {
50
- const baseStyle: ViewStyle = {
51
- backgroundColor: tokens.colors.surface,
52
- borderRadius: tokens.borders.radius.md,
53
- };
54
-
55
- switch (variant) {
56
- case 'elevated':
57
- return {
58
- ...baseStyle,
59
- borderWidth: 1,
60
- borderColor: tokens.colors.border,
61
- };
62
-
63
- case 'outlined':
64
- return {
65
- ...baseStyle,
66
- borderWidth: 1,
67
- borderColor: tokens.colors.border,
68
- };
69
-
70
- case 'flat':
71
- return {
72
- ...baseStyle,
73
- borderWidth: 0,
74
- };
75
-
76
- default:
77
- return baseStyle;
78
- }
79
- };
80
-
81
- const cardStyle: StyleProp<ViewStyle> = [
82
- getVariantStyle(),
83
- {
84
- padding: getPaddingValue(),
85
- opacity: disabled ? 0.5 : 1,
86
- },
87
- style,
88
- ];
89
-
90
- const cardContent = (
91
- <View style={cardStyle} testID={testID}>
92
- {children}
93
- </View>
94
- );
95
-
96
- // If onPress provided, wrap with pressable
97
- if (onPress && !disabled) {
98
- return (
99
- <Pressable onPress={handlePress}>
100
- {cardContent}
101
- </Pressable>
102
- );
103
- }
104
-
105
- // Otherwise just return static card
106
- return cardContent;
107
- };
@@ -1,223 +0,0 @@
1
- /**
2
- * AtomicChip - Universal Chip/Tag Component
3
- *
4
- * Displays small tags, labels, or status indicators
5
- * Theme: {{THEME_NAME}} ({{CATEGORY}} category)
6
- *
7
- * Atomic Design Level: ATOM
8
- * Purpose: Tag and label display
9
- *
10
- * Usage:
11
- * - Category tags
12
- * - Status indicators
13
- * - Filter chips
14
- * - Skill labels
15
- * - Badge displays
16
- */
17
-
18
- import React from 'react';
19
- import { View, StyleSheet, ViewStyle, TouchableOpacity } from 'react-native';
20
- import { AtomicText } from './AtomicText';
21
- import { AtomicIcon } from './AtomicIcon';
22
- import { useAppDesignTokens } from '@umituz/react-native-theme';
23
-
24
- // =============================================================================
25
- // TYPE DEFINITIONS
26
- // =============================================================================
27
-
28
- export interface AtomicChipProps {
29
- /** Text content of the chip */
30
- children: React.ReactNode;
31
- /** Chip variant */
32
- variant?: 'filled' | 'outlined' | 'soft';
33
- /** Chip size */
34
- size?: 'sm' | 'md' | 'lg';
35
- /** Chip color theme */
36
- color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
37
- /** Custom background color */
38
- backgroundColor?: string;
39
- /** Custom text color */
40
- textColor?: string;
41
- /** Custom border color */
42
- borderColor?: string;
43
- /** Leading icon */
44
- leadingIcon?: string;
45
- /** Trailing icon */
46
- trailingIcon?: string;
47
- /** Whether the chip is clickable */
48
- clickable?: boolean;
49
- /** Click handler */
50
- onPress?: () => void;
51
- /** Whether the chip is selected */
52
- selected?: boolean;
53
- /** Whether the chip is disabled */
54
- disabled?: boolean;
55
- /** Style overrides */
56
- style?: ViewStyle;
57
- /** Test ID for testing */
58
- testID?: string;
59
- }
60
-
61
- // =============================================================================
62
- // COMPONENT IMPLEMENTATION
63
- // =============================================================================
64
-
65
- export const AtomicChip: React.FC<AtomicChipProps> = ({
66
- children,
67
- variant = 'filled',
68
- size = 'md',
69
- color = 'primary',
70
- backgroundColor,
71
- textColor,
72
- borderColor,
73
- leadingIcon,
74
- trailingIcon,
75
- clickable = false,
76
- onPress,
77
- selected = false,
78
- disabled = false,
79
- style,
80
- testID,
81
- }) => {
82
- const tokens = useAppDesignTokens();
83
-
84
- // Size mapping
85
- const sizeMap = {
86
- sm: {
87
- paddingHorizontal: tokens.spacing.sm,
88
- paddingVertical: tokens.spacing.xs,
89
- fontSize: tokens.typography.bodySmall.fontSize,
90
- iconSize: 'xs' as const
91
- },
92
- md: {
93
- paddingHorizontal: tokens.spacing.md,
94
- paddingVertical: tokens.spacing.sm,
95
- fontSize: tokens.typography.bodyMedium.fontSize,
96
- iconSize: 'sm' as const
97
- },
98
- lg: {
99
- paddingHorizontal: tokens.spacing.md,
100
- paddingVertical: tokens.spacing.sm,
101
- fontSize: tokens.typography.bodyLarge.fontSize,
102
- iconSize: 'sm' as const
103
- },
104
- };
105
-
106
- const sizeConfig = sizeMap[size];
107
-
108
- // Color mapping
109
- const colorMap = {
110
- primary: {
111
- filled: { bg: tokens.colors.primary, text: tokens.colors.onPrimary, border: tokens.colors.primary },
112
- outlined: { bg: 'transparent', text: tokens.colors.primary, border: tokens.colors.primary },
113
- soft: { bg: tokens.colors.primaryContainer, text: tokens.colors.onPrimaryContainer, border: 'transparent' },
114
- },
115
- secondary: {
116
- filled: { bg: tokens.colors.secondary, text: tokens.colors.onSecondary, border: tokens.colors.secondary },
117
- outlined: { bg: 'transparent', text: tokens.colors.secondary, border: tokens.colors.secondary },
118
- soft: { bg: tokens.colors.secondaryContainer, text: tokens.colors.onSecondaryContainer, border: 'transparent' },
119
- },
120
- success: {
121
- filled: { bg: tokens.colors.success, text: tokens.colors.onSuccess, border: tokens.colors.success },
122
- outlined: { bg: 'transparent', text: tokens.colors.success, border: tokens.colors.success },
123
- soft: { bg: tokens.colors.successContainer, text: tokens.colors.onSuccessContainer, border: 'transparent' },
124
- },
125
- warning: {
126
- filled: { bg: tokens.colors.warning, text: tokens.colors.onWarning, border: tokens.colors.warning },
127
- outlined: { bg: 'transparent', text: tokens.colors.warning, border: tokens.colors.warning },
128
- soft: { bg: tokens.colors.warningContainer, text: tokens.colors.onWarningContainer, border: 'transparent' },
129
- },
130
- error: {
131
- filled: { bg: tokens.colors.error, text: tokens.colors.onError, border: tokens.colors.error },
132
- outlined: { bg: 'transparent', text: tokens.colors.error, border: tokens.colors.error },
133
- soft: { bg: tokens.colors.errorContainer, text: tokens.colors.onErrorContainer, border: 'transparent' },
134
- },
135
- info: {
136
- filled: { bg: tokens.colors.info, text: tokens.colors.onInfo, border: tokens.colors.info },
137
- outlined: { bg: 'transparent', text: tokens.colors.info, border: tokens.colors.info },
138
- soft: { bg: tokens.colors.infoContainer, text: tokens.colors.onInfoContainer, border: 'transparent' },
139
- },
140
- };
141
-
142
- const colorConfig = colorMap[color][variant];
143
-
144
- // Apply custom colors if provided
145
- const finalBackgroundColor = backgroundColor || colorConfig.bg;
146
- const finalTextColor = textColor || colorConfig.text;
147
- const finalBorderColor = borderColor || colorConfig.border;
148
-
149
- // Handle disabled state
150
- const isDisabled = disabled || (!clickable && !onPress);
151
- const opacity = isDisabled ? 0.5 : 1;
152
-
153
- // Handle selected state
154
- const selectedStyle = selected ? {
155
- borderWidth: tokens.borders.width.medium,
156
- borderColor: tokens.colors.primary,
157
- } : {};
158
-
159
- const chipStyle: ViewStyle = {
160
- flexDirection: 'row',
161
- alignItems: 'center',
162
- justifyContent: 'center',
163
- paddingHorizontal: sizeConfig.paddingHorizontal,
164
- paddingVertical: sizeConfig.paddingVertical,
165
- backgroundColor: finalBackgroundColor,
166
- borderRadius: tokens.borders.radius.xl,
167
- borderWidth: variant === 'outlined' ? 1 : 0,
168
- borderColor: finalBorderColor,
169
- opacity,
170
- ...selectedStyle,
171
- };
172
-
173
- const textStyle = {
174
- fontSize: sizeConfig.fontSize,
175
- fontWeight: tokens.typography.medium,
176
- };
177
-
178
- const iconColor = finalTextColor;
179
-
180
- const content = (
181
- <View style={[chipStyle, style]} testID={testID}>
182
- {leadingIcon && (
183
- <AtomicIcon
184
- name={leadingIcon}
185
- size={sizeConfig.iconSize}
186
- customColor={iconColor}
187
- style={{ marginRight: tokens.spacing.xs }}
188
- />
189
- )}
190
- <AtomicText
191
- type="labelMedium"
192
- color={finalTextColor}
193
- style={textStyle}
194
- >
195
- {children}
196
- </AtomicText>
197
- {trailingIcon && (
198
- <AtomicIcon
199
- name={trailingIcon}
200
- size={sizeConfig.iconSize}
201
- customColor={iconColor}
202
- style={{ marginLeft: tokens.spacing.xs }}
203
- />
204
- )}
205
- </View>
206
- );
207
-
208
- if (clickable && onPress && !disabled) {
209
- return (
210
- <TouchableOpacity onPress={onPress} activeOpacity={0.7}>
211
- {content}
212
- </TouchableOpacity>
213
- );
214
- }
215
-
216
- return content;
217
- };
218
-
219
- // =============================================================================
220
- // EXPORTS
221
- // =============================================================================
222
-
223
- export default AtomicChip;