@finspringinnovations/fdsdk 0.0.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 (315) hide show
  1. package/README.md +184 -0
  2. package/lib/api/applicationApi.d.ts +1 -0
  3. package/lib/api/applicationApi.js +11 -0
  4. package/lib/api/bankApi.d.ts +352 -0
  5. package/lib/api/bankApi.js +54 -0
  6. package/lib/api/baseApi.d.ts +8 -0
  7. package/lib/api/baseApi.js +456 -0
  8. package/lib/api/customerApi.d.ts +855 -0
  9. package/lib/api/customerApi.js +213 -0
  10. package/lib/api/fdApi.d.ts +979 -0
  11. package/lib/api/fdApi.js +112 -0
  12. package/lib/api/fdCalculatorApi.d.ts +179 -0
  13. package/lib/api/fdCalculatorApi.js +36 -0
  14. package/lib/api/index.d.ts +14 -0
  15. package/lib/api/index.js +45 -0
  16. package/lib/api/interestRateApi.d.ts +585 -0
  17. package/lib/api/interestRateApi.js +101 -0
  18. package/lib/api/kycApi.d.ts +486 -0
  19. package/lib/api/kycApi.js +71 -0
  20. package/lib/api/masterDataApi.d.ts +158 -0
  21. package/lib/api/masterDataApi.js +32 -0
  22. package/lib/api/nomineeApi.d.ts +325 -0
  23. package/lib/api/nomineeApi.js +46 -0
  24. package/lib/api/onboardingApi.d.ts +192 -0
  25. package/lib/api/onboardingApi.js +41 -0
  26. package/lib/api/panApi.d.ts +0 -0
  27. package/lib/api/panApi.js +23 -0
  28. package/lib/api/paymentApi.d.ts +325 -0
  29. package/lib/api/paymentApi.js +46 -0
  30. package/lib/api/workflowApi.d.ts +654 -0
  31. package/lib/api/workflowApi.js +90 -0
  32. package/lib/assets/images/images.d.ts +4 -0
  33. package/lib/assets/images/images.js +10 -0
  34. package/lib/components/AadhaarInput.d.ts +13 -0
  35. package/lib/components/AadhaarInput.js +47 -0
  36. package/lib/components/ActionButton.d.ts +12 -0
  37. package/lib/components/ActionButton.js +87 -0
  38. package/lib/components/ActiveFDCard.d.ts +16 -0
  39. package/lib/components/ActiveFDCard.js +95 -0
  40. package/lib/components/AmountInput.d.ts +20 -0
  41. package/lib/components/AmountInput.js +144 -0
  42. package/lib/components/CheckboxOption.d.ts +11 -0
  43. package/lib/components/CheckboxOption.js +41 -0
  44. package/lib/components/CompanyHeader.d.ts +7 -0
  45. package/lib/components/CompanyHeader.js +57 -0
  46. package/lib/components/DropdownSelector.d.ts +9 -0
  47. package/lib/components/DropdownSelector.js +49 -0
  48. package/lib/components/EmptyState.d.ts +17 -0
  49. package/lib/components/EmptyState.js +44 -0
  50. package/lib/components/ErrorDisplay.d.ts +17 -0
  51. package/lib/components/ErrorDisplay.js +69 -0
  52. package/lib/components/FAQItem.d.ts +9 -0
  53. package/lib/components/FAQItem.js +52 -0
  54. package/lib/components/FDCard.d.ts +21 -0
  55. package/lib/components/FDCard.js +96 -0
  56. package/lib/components/FormDropdown.d.ts +18 -0
  57. package/lib/components/FormDropdown.js +155 -0
  58. package/lib/components/FormSection.d.ts +14 -0
  59. package/lib/components/FormSection.js +38 -0
  60. package/lib/components/Header.d.ts +14 -0
  61. package/lib/components/Header.js +52 -0
  62. package/lib/components/IFSCSearchResultCard.d.ts +13 -0
  63. package/lib/components/IFSCSearchResultCard.js +70 -0
  64. package/lib/components/InfoBox.d.ts +8 -0
  65. package/lib/components/InfoBox.js +39 -0
  66. package/lib/components/InterestRateCard.d.ts +8 -0
  67. package/lib/components/InterestRateCard.js +46 -0
  68. package/lib/components/LoadingIndicator.d.ts +12 -0
  69. package/lib/components/LoadingIndicator.js +30 -0
  70. package/lib/components/OTPInput.d.ts +17 -0
  71. package/lib/components/OTPInput.js +144 -0
  72. package/lib/components/PaymentDetailsCard.d.ts +20 -0
  73. package/lib/components/PaymentDetailsCard.js +68 -0
  74. package/lib/components/PendingFDBottomSheet.d.ts +18 -0
  75. package/lib/components/PendingFDBottomSheet.js +122 -0
  76. package/lib/components/SafeAreaWrapper.d.ts +13 -0
  77. package/lib/components/SafeAreaWrapper.js +41 -0
  78. package/lib/components/ScreenHeader.d.ts +11 -0
  79. package/lib/components/ScreenHeader.js +46 -0
  80. package/lib/components/StatusDisplay.d.ts +15 -0
  81. package/lib/components/StatusDisplay.js +88 -0
  82. package/lib/components/TextFieldWithLabel.d.ts +46 -0
  83. package/lib/components/TextFieldWithLabel.js +326 -0
  84. package/lib/components/TrustBox.d.ts +8 -0
  85. package/lib/components/TrustBox.js +45 -0
  86. package/lib/components/ValidationErrorAlert.d.ts +23 -0
  87. package/lib/components/ValidationErrorAlert.js +39 -0
  88. package/lib/components/ValidationMessage.d.ts +9 -0
  89. package/lib/components/ValidationMessage.js +98 -0
  90. package/lib/components/index.d.ts +35 -0
  91. package/lib/components/index.js +64 -0
  92. package/lib/config/apiConfig.d.ts +34 -0
  93. package/lib/config/apiConfig.js +158 -0
  94. package/lib/config/appDataConfig.d.ts +114 -0
  95. package/lib/config/appDataConfig.js +264 -0
  96. package/lib/config/encryptionConfig.d.ts +21 -0
  97. package/lib/config/encryptionConfig.js +61 -0
  98. package/lib/config/workflowConstants.d.ts +37 -0
  99. package/lib/config/workflowConstants.js +38 -0
  100. package/lib/constants/strings/bank.d.ts +72 -0
  101. package/lib/constants/strings/bank.js +86 -0
  102. package/lib/constants/strings/base64Images.d.ts +25 -0
  103. package/lib/constants/strings/base64Images.js +28 -0
  104. package/lib/constants/strings/common.d.ts +53 -0
  105. package/lib/constants/strings/common.js +62 -0
  106. package/lib/constants/strings/employee.d.ts +61 -0
  107. package/lib/constants/strings/employee.js +77 -0
  108. package/lib/constants/strings/faq.d.ts +14 -0
  109. package/lib/constants/strings/faq.js +20 -0
  110. package/lib/constants/strings/fd.d.ts +122 -0
  111. package/lib/constants/strings/fd.js +151 -0
  112. package/lib/constants/strings/home.d.ts +49 -0
  113. package/lib/constants/strings/home.js +62 -0
  114. package/lib/constants/strings/index.d.ts +16 -0
  115. package/lib/constants/strings/index.js +44 -0
  116. package/lib/constants/strings/kyc.d.ts +80 -0
  117. package/lib/constants/strings/kyc.js +94 -0
  118. package/lib/constants/strings/nominee.d.ts +64 -0
  119. package/lib/constants/strings/nominee.js +81 -0
  120. package/lib/hooks/useAuth.d.ts +25 -0
  121. package/lib/hooks/useAuth.js +39 -0
  122. package/lib/hooks/useFDData.d.ts +11 -0
  123. package/lib/hooks/useFDData.js +40 -0
  124. package/lib/index.d.ts +69 -0
  125. package/lib/index.js +182 -0
  126. package/lib/navigation/RootNavigator.d.ts +8 -0
  127. package/lib/navigation/RootNavigator.js +205 -0
  128. package/lib/navigation/SimpleNavigator.d.ts +11 -0
  129. package/lib/navigation/SimpleNavigator.js +107 -0
  130. package/lib/navigation/helpers.d.ts +11 -0
  131. package/lib/navigation/helpers.js +83 -0
  132. package/lib/navigation/index.d.ts +15 -0
  133. package/lib/navigation/index.js +42 -0
  134. package/lib/navigation/types.d.ts +113 -0
  135. package/lib/navigation/types.js +2 -0
  136. package/lib/navigation/workflowNavigator.d.ts +22 -0
  137. package/lib/navigation/workflowNavigator.js +104 -0
  138. package/lib/providers/ApiProvider.d.ts +7 -0
  139. package/lib/providers/ApiProvider.js +34 -0
  140. package/lib/providers/MasterDataProvider.d.ts +10 -0
  141. package/lib/providers/MasterDataProvider.js +54 -0
  142. package/lib/screens/AadhaarVerification.d.ts +7 -0
  143. package/lib/screens/AadhaarVerification.js +627 -0
  144. package/lib/screens/AddBankAccount.d.ts +22 -0
  145. package/lib/screens/AddBankAccount.js +381 -0
  146. package/lib/screens/BankDetail.d.ts +16 -0
  147. package/lib/screens/BankDetail.js +596 -0
  148. package/lib/screens/BookFD.d.ts +0 -0
  149. package/lib/screens/BookFD.js +315 -0
  150. package/lib/screens/Employee.d.ts +18 -0
  151. package/lib/screens/Employee.js +594 -0
  152. package/lib/screens/FDCalculator.d.ts +18 -0
  153. package/lib/screens/FDCalculator.js +759 -0
  154. package/lib/screens/FDList.d.ts +27 -0
  155. package/lib/screens/FDList.js +1008 -0
  156. package/lib/screens/FindIFSC.d.ts +16 -0
  157. package/lib/screens/FindIFSC.js +248 -0
  158. package/lib/screens/Home.d.ts +0 -0
  159. package/lib/screens/Home.js +143 -0
  160. package/lib/screens/NomineeDetail.d.ts +17 -0
  161. package/lib/screens/NomineeDetail.js +592 -0
  162. package/lib/screens/PayNow.d.ts +14 -0
  163. package/lib/screens/PayNow.js +230 -0
  164. package/lib/screens/Payment.d.ts +11 -0
  165. package/lib/screens/Payment.js +191 -0
  166. package/lib/screens/PaymentStatus.d.ts +16 -0
  167. package/lib/screens/PaymentStatus.js +397 -0
  168. package/lib/screens/ReviewKYC.d.ts +21 -0
  169. package/lib/screens/ReviewKYC.js +660 -0
  170. package/lib/state/paymentSession.d.ts +8 -0
  171. package/lib/state/paymentSession.js +13 -0
  172. package/lib/store/fdListSelectedSlice.d.ts +21 -0
  173. package/lib/store/fdListSelectedSlice.js +26 -0
  174. package/lib/store/hooks.d.ts +8 -0
  175. package/lib/store/hooks.js +31 -0
  176. package/lib/store/index.d.ts +3 -0
  177. package/lib/store/index.js +8 -0
  178. package/lib/store/onboardingSlice.d.ts +12 -0
  179. package/lib/store/onboardingSlice.js +32 -0
  180. package/lib/store/store.d.ts +13 -0
  181. package/lib/store/store.js +33 -0
  182. package/lib/theme/ThemeContext.d.ts +210 -0
  183. package/lib/theme/ThemeContext.js +90 -0
  184. package/lib/theme/colors.d.ts +80 -0
  185. package/lib/theme/colors.js +85 -0
  186. package/lib/theme/index.d.ts +34 -0
  187. package/lib/theme/index.js +69 -0
  188. package/lib/theme/shadows.d.ts +53 -0
  189. package/lib/theme/shadows.js +58 -0
  190. package/lib/theme/typography.d.ts +134 -0
  191. package/lib/theme/typography.js +143 -0
  192. package/lib/types/dataTypes.d.ts +34 -0
  193. package/lib/types/dataTypes.js +2 -0
  194. package/lib/types/workflowTypes.d.ts +2 -0
  195. package/lib/types/workflowTypes.js +2 -0
  196. package/lib/utils/apiLogger.d.ts +48 -0
  197. package/lib/utils/apiLogger.js +105 -0
  198. package/lib/utils/encryption.d.ts +28 -0
  199. package/lib/utils/encryption.js +113 -0
  200. package/lib/utils/getFDData.d.ts +48 -0
  201. package/lib/utils/getFDData.js +154 -0
  202. package/lib/utils/globalData.d.ts +2 -0
  203. package/lib/utils/globalData.js +10 -0
  204. package/package.json +76 -0
  205. package/src/api/applicationApi.ts +12 -0
  206. package/src/api/bankApi.ts +42 -0
  207. package/src/api/baseApi.ts +513 -0
  208. package/src/api/customerApi.ts +291 -0
  209. package/src/api/fdApi.ts +150 -0
  210. package/src/api/fdCalculatorApi.ts +41 -0
  211. package/src/api/index.ts +29 -0
  212. package/src/api/interestRateApi.ts +143 -0
  213. package/src/api/kycApi.ts +63 -0
  214. package/src/api/masterDataApi.ts +34 -0
  215. package/src/api/nomineeApi.ts +34 -0
  216. package/src/api/onboardingApi.ts +64 -0
  217. package/src/api/panApi.ts +25 -0
  218. package/src/api/paymentApi.ts +34 -0
  219. package/src/api/workflowApi.ts +94 -0
  220. package/src/assets/images/arrow-filled.png +0 -0
  221. package/src/assets/images/arrow-left.png +0 -0
  222. package/src/assets/images/backicon.png +0 -0
  223. package/src/assets/images/calendar.png +0 -0
  224. package/src/assets/images/chevron-down.png +0 -0
  225. package/src/assets/images/chevron-down@2x.png +0 -0
  226. package/src/assets/images/chevron-down@3x.png +0 -0
  227. package/src/assets/images/images.js +8 -0
  228. package/src/components/AadhaarInput.tsx +91 -0
  229. package/src/components/ActionButton.tsx +129 -0
  230. package/src/components/ActiveFDCard.tsx +158 -0
  231. package/src/components/AmountInput.tsx +217 -0
  232. package/src/components/CheckboxOption.tsx +93 -0
  233. package/src/components/CompanyHeader.tsx +78 -0
  234. package/src/components/DropdownSelector.tsx +77 -0
  235. package/src/components/EmptyState.tsx +109 -0
  236. package/src/components/ErrorDisplay.tsx +135 -0
  237. package/src/components/FAQItem.tsx +90 -0
  238. package/src/components/FDCard.tsx +165 -0
  239. package/src/components/FormDropdown.tsx +214 -0
  240. package/src/components/FormSection.tsx +86 -0
  241. package/src/components/Header.tsx +110 -0
  242. package/src/components/IFSCSearchResultCard.tsx +139 -0
  243. package/src/components/InfoBox.tsx +55 -0
  244. package/src/components/InterestRateCard.tsx +77 -0
  245. package/src/components/LoadingIndicator.tsx +63 -0
  246. package/src/components/OTPInput.tsx +213 -0
  247. package/src/components/PaymentDetailsCard.tsx +120 -0
  248. package/src/components/PendingFDBottomSheet.tsx +235 -0
  249. package/src/components/README.md +210 -0
  250. package/src/components/SafeAreaWrapper.tsx +68 -0
  251. package/src/components/ScreenHeader.tsx +83 -0
  252. package/src/components/StatusDisplay.tsx +139 -0
  253. package/src/components/TextFieldWithLabel.tsx +502 -0
  254. package/src/components/TrustBox.tsx +63 -0
  255. package/src/components/ValidationErrorAlert.tsx +57 -0
  256. package/src/components/ValidationMessage.tsx +134 -0
  257. package/src/components/index.tsx +47 -0
  258. package/src/config/apiConfig.ts +217 -0
  259. package/src/config/appDataConfig.ts +279 -0
  260. package/src/config/encryptionConfig.ts +65 -0
  261. package/src/config/workflowConstants.ts +43 -0
  262. package/src/constants/strings/README.md +146 -0
  263. package/src/constants/strings/bank.ts +92 -0
  264. package/src/constants/strings/base64Images.ts +29 -0
  265. package/src/constants/strings/common.ts +63 -0
  266. package/src/constants/strings/employee.ts +85 -0
  267. package/src/constants/strings/faq.ts +23 -0
  268. package/src/constants/strings/fd.ts +172 -0
  269. package/src/constants/strings/home.ts +67 -0
  270. package/src/constants/strings/index.ts +21 -0
  271. package/src/constants/strings/kyc.ts +100 -0
  272. package/src/constants/strings/nominee.ts +90 -0
  273. package/src/hooks/useAuth.ts +42 -0
  274. package/src/hooks/useFDData.ts +48 -0
  275. package/src/index.tsx +173 -0
  276. package/src/navigation/RootNavigator.tsx +352 -0
  277. package/src/navigation/SimpleNavigator.tsx +107 -0
  278. package/src/navigation/helpers.ts +85 -0
  279. package/src/navigation/index.tsx +81 -0
  280. package/src/navigation/types.ts +124 -0
  281. package/src/navigation/workflowNavigator.ts +131 -0
  282. package/src/providers/ApiProvider.tsx +43 -0
  283. package/src/providers/MasterDataProvider.tsx +30 -0
  284. package/src/screens/AadhaarVerification.tsx +809 -0
  285. package/src/screens/AddBankAccount.tsx +541 -0
  286. package/src/screens/BankDetail.tsx +826 -0
  287. package/src/screens/BookFD.tsx +330 -0
  288. package/src/screens/Employee.tsx +822 -0
  289. package/src/screens/FDCalculator.tsx +987 -0
  290. package/src/screens/FDList.tsx +1284 -0
  291. package/src/screens/FindIFSC.tsx +332 -0
  292. package/src/screens/Home.tsx +152 -0
  293. package/src/screens/NomineeDetail.tsx +800 -0
  294. package/src/screens/PayNow.tsx +282 -0
  295. package/src/screens/Payment.tsx +224 -0
  296. package/src/screens/PaymentStatus.tsx +561 -0
  297. package/src/screens/ReviewKYC.tsx +956 -0
  298. package/src/state/paymentSession.ts +13 -0
  299. package/src/store/fdListSelectedSlice.ts +42 -0
  300. package/src/store/hooks.ts +27 -0
  301. package/src/store/index.ts +3 -0
  302. package/src/store/onboardingSlice.ts +37 -0
  303. package/src/store/store.ts +35 -0
  304. package/src/theme/ThemeContext.tsx +82 -0
  305. package/src/theme/colors.ts +90 -0
  306. package/src/theme/index.ts +64 -0
  307. package/src/theme/shadows.ts +61 -0
  308. package/src/theme/typography.ts +151 -0
  309. package/src/types/dataTypes.ts +37 -0
  310. package/src/types/env.d.ts +93 -0
  311. package/src/types/workflowTypes.ts +12 -0
  312. package/src/utils/apiLogger.ts +166 -0
  313. package/src/utils/encryption.ts +159 -0
  314. package/src/utils/getFDData.ts +175 -0
  315. package/src/utils/globalData.ts +7 -0
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const ThemeContext_1 = require("../theme/ThemeContext");
9
+ const base64Images_1 = require("../constants/strings/base64Images");
10
+ const CompanyHeader = ({ companyName, rating }) => {
11
+ const colors = (0, ThemeContext_1.useColors)();
12
+ const typography = (0, ThemeContext_1.useTypography)();
13
+ const styles = createStyles(colors, typography);
14
+ return (react_1.default.createElement(react_native_1.View, { style: styles.wrapper },
15
+ react_1.default.createElement(react_native_1.View, { style: styles.card },
16
+ react_1.default.createElement(react_native_1.View, { style: styles.innerBorder },
17
+ react_1.default.createElement(react_native_1.Image, { source: { uri: base64Images_1.base64Images.shriramLogo }, style: styles.logo, resizeMode: "contain" }),
18
+ react_1.default.createElement(react_native_1.View, { style: styles.info },
19
+ react_1.default.createElement(react_native_1.Text, { style: styles.name }, companyName),
20
+ react_1.default.createElement(react_native_1.Text, { style: styles.rating }, rating))))));
21
+ };
22
+ const createStyles = (colors, typography) => react_native_1.StyleSheet.create({
23
+ wrapper: {
24
+ paddingHorizontal: 2,
25
+ paddingTop: 12,
26
+ paddingBottom: 8,
27
+ },
28
+ card: {
29
+ backgroundColor: '#0B2940',
30
+ borderRadius: 24,
31
+ padding: 4,
32
+ borderWidth: 1,
33
+ borderColor: '#124061',
34
+ shadowColor: '#000',
35
+ shadowOpacity: 0.2,
36
+ shadowOffset: { width: 0, height: 4 },
37
+ shadowRadius: 12,
38
+ elevation: 4,
39
+ },
40
+ innerBorder: {
41
+ borderRadius: 20,
42
+ padding: 16,
43
+ flexDirection: 'row',
44
+ alignItems: 'center',
45
+ },
46
+ logo: {
47
+ width: 45,
48
+ height: 45,
49
+ marginRight: 12,
50
+ },
51
+ info: {
52
+ flex: 1,
53
+ },
54
+ name: Object.assign(Object.assign({}, typography.styles.h2), { color: '#FFFFFF', marginBottom: 6 }),
55
+ rating: Object.assign(Object.assign({}, typography.styles.text14Medium), { color: '#BFD5F6' }),
56
+ });
57
+ exports.default = CompanyHeader;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface DropdownSelectorProps {
3
+ label: string;
4
+ value: string;
5
+ onPress?: () => void;
6
+ placeholder?: string;
7
+ }
8
+ declare const DropdownSelector: React.FC<DropdownSelectorProps>;
9
+ export default DropdownSelector;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const base64Images_1 = require("../constants/strings/base64Images");
9
+ const ThemeContext_1 = require("../theme/ThemeContext");
10
+ const theme_1 = require("../theme");
11
+ const DropdownSelector = ({ label, value, onPress, placeholder, }) => {
12
+ const colors = (0, ThemeContext_1.useColors)();
13
+ const typography = (0, ThemeContext_1.useTypography)();
14
+ const { themeName } = (0, ThemeContext_1.useTheme)();
15
+ const styles = createStyles(colors, typography, themeName);
16
+ return (react_1.default.createElement(react_1.default.Fragment, null,
17
+ react_1.default.createElement(react_native_1.Text, { style: styles.label }, label),
18
+ react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.dropdown, onPress: onPress },
19
+ react_1.default.createElement(react_native_1.Text, { style: [styles.dropdownText, !value && styles.placeholderText] }, value || placeholder || 'Select'),
20
+ react_1.default.createElement(react_native_1.Image, { source: { uri: base64Images_1.base64Images.dropdown }, style: styles.icon, resizeMode: "contain" }))));
21
+ };
22
+ const createStyles = (colors, typography, themeName) => react_native_1.StyleSheet.create({
23
+ label: Object.assign(Object.assign({}, typography.styles.bodyMedium), { fontWeight: '600', marginTop: 25, marginBottom: 8, fontSize: 16, color: themeName === 'dark' ? colors.labelColor : colors.text }),
24
+ dropdown: {
25
+ borderWidth: 0.5,
26
+ borderColor: themeName === 'dark' ? colors.inputBorder : (0, theme_1.getBorderColor)({ colors }, 0.36),
27
+ borderRadius: 4,
28
+ paddingHorizontal: 16,
29
+ height: 48,
30
+ marginTop: 8,
31
+ flexDirection: 'row',
32
+ justifyContent: 'space-between',
33
+ alignItems: 'center',
34
+ backgroundColor: themeName === 'dark' ? colors.inputBackground : colors.surface,
35
+ },
36
+ dropdownText: {
37
+ fontSize: 14,
38
+ color: colors.text,
39
+ },
40
+ placeholderText: {
41
+ color: colors.placeholderColor,
42
+ },
43
+ icon: {
44
+ width: 20,
45
+ height: 20,
46
+ tintColor: colors.textLight,
47
+ },
48
+ });
49
+ exports.default = DropdownSelector;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface EmptyStateProps {
3
+ iconName?: string;
4
+ title: string;
5
+ subtitle?: string;
6
+ actionText?: string;
7
+ onAction?: () => void;
8
+ containerStyle?: object;
9
+ iconStyle?: object;
10
+ titleStyle?: object;
11
+ subtitleStyle?: object;
12
+ actionButtonStyle?: object;
13
+ actionTextStyle?: object;
14
+ showAction?: boolean;
15
+ }
16
+ declare const EmptyState: React.FC<EmptyStateProps>;
17
+ export default EmptyState;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const Ionicons_1 = __importDefault(require("react-native-vector-icons/Ionicons"));
9
+ const ThemeContext_1 = require("../theme/ThemeContext");
10
+ const EmptyState = ({ iconName = 'document-outline', title, subtitle, actionText = 'Get Started', onAction, containerStyle, iconStyle, titleStyle, subtitleStyle, actionButtonStyle, actionTextStyle, showAction = true, }) => {
11
+ const colors = (0, ThemeContext_1.useColors)();
12
+ const typography = (0, ThemeContext_1.useTypography)();
13
+ const styles = createStyles(colors, typography);
14
+ return (react_1.default.createElement(react_native_1.View, { style: [styles.container, containerStyle] },
15
+ react_1.default.createElement(Ionicons_1.default, { name: iconName, size: 64, color: colors.textLight, style: [styles.icon, iconStyle] }),
16
+ react_1.default.createElement(react_native_1.Text, { style: [styles.title, titleStyle] }, title),
17
+ subtitle && (react_1.default.createElement(react_native_1.Text, { style: [styles.subtitle, subtitleStyle] }, subtitle)),
18
+ showAction && onAction && (react_1.default.createElement(react_native_1.TouchableOpacity, { style: [styles.actionButton, actionButtonStyle], onPress: onAction },
19
+ react_1.default.createElement(react_native_1.Text, { style: [styles.actionText, actionTextStyle] }, actionText)))));
20
+ };
21
+ const createStyles = (colors, typography) => react_native_1.StyleSheet.create({
22
+ container: {
23
+ alignItems: 'center',
24
+ justifyContent: 'center',
25
+ padding: 32,
26
+ minHeight: 200,
27
+ },
28
+ icon: {
29
+ marginBottom: 16,
30
+ opacity: 0.6,
31
+ },
32
+ title: Object.assign(Object.assign({}, typography.styles.h3), { color: colors.text, textAlign: 'center', marginBottom: 8 }),
33
+ subtitle: Object.assign(Object.assign({}, typography.styles.bodyMedium), { color: colors.textLight, textAlign: 'center', lineHeight: 20, marginBottom: 24 }),
34
+ actionButton: {
35
+ backgroundColor: colors.primary,
36
+ paddingHorizontal: 24,
37
+ paddingVertical: 12,
38
+ borderRadius: 25,
39
+ minWidth: 120,
40
+ alignItems: 'center',
41
+ },
42
+ actionText: Object.assign(Object.assign({}, typography.styles.bodyMedium), { color: colors.background, fontWeight: typography.fontWeight.semiBold }),
43
+ });
44
+ exports.default = EmptyState;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface ErrorDisplayProps {
3
+ title?: string;
4
+ message: string;
5
+ onRetry?: () => void;
6
+ retryText?: string;
7
+ showIcon?: boolean;
8
+ iconName?: string;
9
+ containerStyle?: object;
10
+ titleStyle?: object;
11
+ messageStyle?: object;
12
+ retryButtonStyle?: object;
13
+ retryTextStyle?: object;
14
+ variant?: 'error' | 'warning' | 'info';
15
+ }
16
+ declare const ErrorDisplay: React.FC<ErrorDisplayProps>;
17
+ export default ErrorDisplay;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const Ionicons_1 = __importDefault(require("react-native-vector-icons/Ionicons"));
9
+ const ThemeContext_1 = require("../theme/ThemeContext");
10
+ const ErrorDisplay = ({ title = 'Something went wrong', message, onRetry, retryText = 'Try Again', showIcon = true, iconName, containerStyle, titleStyle, messageStyle, retryButtonStyle, retryTextStyle, variant = 'error', }) => {
11
+ const colors = (0, ThemeContext_1.useColors)();
12
+ const typography = (0, ThemeContext_1.useTypography)();
13
+ const styles = createStyles(colors, typography, variant);
14
+ const getIconName = () => {
15
+ if (iconName)
16
+ return iconName;
17
+ switch (variant) {
18
+ case 'error':
19
+ return 'alert-circle';
20
+ case 'warning':
21
+ return 'warning';
22
+ case 'info':
23
+ return 'information-circle';
24
+ default:
25
+ return 'alert-circle';
26
+ }
27
+ };
28
+ const getIconColor = () => {
29
+ switch (variant) {
30
+ case 'error':
31
+ return colors.error;
32
+ case 'warning':
33
+ return colors.warning;
34
+ case 'info':
35
+ return colors.info;
36
+ default:
37
+ return colors.error;
38
+ }
39
+ };
40
+ return (react_1.default.createElement(react_native_1.View, { style: [styles.container, containerStyle] },
41
+ showIcon && (react_1.default.createElement(Ionicons_1.default, { name: getIconName(), size: 48, color: getIconColor(), style: styles.icon })),
42
+ react_1.default.createElement(react_native_1.Text, { style: [styles.title, titleStyle] }, title),
43
+ react_1.default.createElement(react_native_1.Text, { style: [styles.message, messageStyle] }, message),
44
+ onRetry && (react_1.default.createElement(react_native_1.TouchableOpacity, { style: [styles.retryButton, retryButtonStyle], onPress: onRetry },
45
+ react_1.default.createElement(react_native_1.Text, { style: [styles.retryText, retryTextStyle] }, retryText)))));
46
+ };
47
+ const createStyles = (colors, typography, variant) => react_native_1.StyleSheet.create({
48
+ container: {
49
+ alignItems: 'center',
50
+ justifyContent: 'center',
51
+ padding: 24,
52
+ minHeight: 200,
53
+ },
54
+ icon: {
55
+ marginBottom: 16,
56
+ },
57
+ title: Object.assign(Object.assign({}, typography.styles.h3), { color: colors.text, textAlign: 'center', marginBottom: 8 }),
58
+ message: Object.assign(Object.assign({}, typography.styles.bodyMedium), { color: colors.textLight, textAlign: 'center', lineHeight: 20, marginBottom: 24 }),
59
+ retryButton: {
60
+ backgroundColor: colors.primary,
61
+ paddingHorizontal: 24,
62
+ paddingVertical: 12,
63
+ borderRadius: 25,
64
+ minWidth: 120,
65
+ alignItems: 'center',
66
+ },
67
+ retryText: Object.assign(Object.assign({}, typography.styles.bodyMedium), { color: colors.background, fontWeight: typography.fontWeight.semiBold }),
68
+ });
69
+ exports.default = ErrorDisplay;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface FAQItemProps {
3
+ question: string;
4
+ answer: string;
5
+ isExpanded: boolean;
6
+ onToggle: () => void;
7
+ }
8
+ declare const FAQItem: React.FC<FAQItemProps>;
9
+ export default FAQItem;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const base64Images_1 = require("../constants/strings/base64Images");
9
+ const ThemeContext_1 = require("../theme/ThemeContext");
10
+ const theme_1 = require("../theme");
11
+ const FAQItem = ({ question, answer, isExpanded, onToggle, }) => {
12
+ const colors = (0, ThemeContext_1.useColors)();
13
+ const typography = (0, ThemeContext_1.useTypography)();
14
+ const styles = createStyles(colors, typography);
15
+ return (react_1.default.createElement(react_native_1.View, { style: styles.container },
16
+ react_1.default.createElement(react_native_1.View, { style: styles.headerRow },
17
+ react_1.default.createElement(react_native_1.View, { style: { flex: 1 } },
18
+ react_1.default.createElement(react_native_1.Text, { style: styles.question }, question)),
19
+ react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.toggleButton, onPress: onToggle, hitSlop: { top: 8, bottom: 8, left: 8, right: 8 } },
20
+ react_1.default.createElement(react_native_1.View, { style: styles.toggleCircle },
21
+ react_1.default.createElement(react_native_1.Image, { source: { uri: isExpanded ? base64Images_1.base64Images.minus : base64Images_1.base64Images.plus }, style: { width: 16, height: 16, tintColor: colors.success }, resizeMode: "contain" })))),
22
+ isExpanded && react_1.default.createElement(react_native_1.Text, { style: styles.answer }, answer)));
23
+ };
24
+ const createStyles = (colors, typography) => react_native_1.StyleSheet.create({
25
+ container: {
26
+ borderBottomWidth: 1,
27
+ borderBottomColor: (0, theme_1.getBorderColor)({ colors }, 0.2),
28
+ paddingVertical: 16,
29
+ },
30
+ headerRow: {
31
+ flexDirection: 'row',
32
+ justifyContent: 'space-between',
33
+ alignItems: 'center',
34
+ },
35
+ question: Object.assign(Object.assign({}, typography.styles.bodyMedium), { flex: 1, marginRight: 8, color: colors.text, lineHeight: 20 }),
36
+ answer: Object.assign(Object.assign({}, typography.styles.bodySmall), { color: colors.textLight, marginTop: 8, lineHeight: 20 }),
37
+ toggleButton: {
38
+ marginLeft: 12,
39
+ alignSelf: 'center',
40
+ },
41
+ toggleCircle: {
42
+ width: 20,
43
+ height: 20,
44
+ // borderRadius: 14,
45
+ // backgroundColor: colors.background,
46
+ // borderWidth: 1.5,
47
+ borderColor: colors.success,
48
+ alignItems: 'center',
49
+ justifyContent: 'center',
50
+ },
51
+ });
52
+ exports.default = FAQItem;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ interface FDCardProps {
3
+ id: string;
4
+ name: string;
5
+ accountNumber: string;
6
+ roi: string;
7
+ tenure: string;
8
+ amount: number;
9
+ maturityDate: string;
10
+ status: 'active' | 'matured' | 'pending';
11
+ creditRating: string;
12
+ onPress?: (id: string) => void;
13
+ customStyles?: {
14
+ container?: object;
15
+ name?: object;
16
+ amount?: object;
17
+ statusBadge?: object;
18
+ };
19
+ }
20
+ declare const FDCard: React.FC<FDCardProps>;
21
+ export default FDCard;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const ThemeContext_1 = require("../theme/ThemeContext");
9
+ const theme_1 = require("../theme");
10
+ const FDCard = ({ id, name, accountNumber, roi, tenure, amount, maturityDate, status, creditRating, onPress, customStyles = {}, }) => {
11
+ const colors = (0, ThemeContext_1.useColors)();
12
+ const typography = (0, ThemeContext_1.useTypography)();
13
+ const spacing = (0, ThemeContext_1.useSpacing)();
14
+ const shadows = (0, ThemeContext_1.useShadows)();
15
+ const { themeName } = (0, ThemeContext_1.useTheme)();
16
+ const styles = createStyles(colors, typography, spacing, shadows, themeName);
17
+ const getStatusColor = (status) => {
18
+ switch (status) {
19
+ case 'active':
20
+ return colors.success;
21
+ case 'matured':
22
+ return colors.tabSelected;
23
+ case 'pending':
24
+ return colors.warning;
25
+ default:
26
+ return colors.textSecondary;
27
+ }
28
+ };
29
+ const formatCurrency = (amount) => {
30
+ return amount.toLocaleString('en-IN');
31
+ };
32
+ return (react_1.default.createElement(react_native_1.TouchableOpacity, { style: [styles.fdCard, customStyles.container], onPress: () => onPress === null || onPress === void 0 ? void 0 : onPress(id), activeOpacity: 0.8 },
33
+ react_1.default.createElement(react_native_1.View, { style: styles.fdCardHeader },
34
+ react_1.default.createElement(react_native_1.Text, { style: [styles.fdName, customStyles.name] }, name)),
35
+ react_1.default.createElement(react_native_1.View, { style: styles.fdDetailsRow },
36
+ react_1.default.createElement(react_native_1.View, { style: styles.fdDetailItem },
37
+ react_1.default.createElement(react_native_1.Text, { style: styles.fdDetailLabel }, "ROI"),
38
+ react_1.default.createElement(react_native_1.Text, { style: [styles.fdDetailValue, styles.roiText] }, roi)),
39
+ react_1.default.createElement(react_native_1.View, { style: styles.fdDetailItem },
40
+ react_1.default.createElement(react_native_1.Text, { style: [styles.fdDetailLabel, { textAlign: 'right' }] }, "Tenure"),
41
+ react_1.default.createElement(react_native_1.Text, { style: [styles.fdDetailValue, { textAlign: 'right' }] }, tenure))),
42
+ react_1.default.createElement(react_native_1.View, { style: styles.fdDetailsRowLast },
43
+ react_1.default.createElement(react_native_1.View, { style: styles.fdDetailItem },
44
+ react_1.default.createElement(react_native_1.Text, { style: styles.fdDetailLabel }, "Credit Rating"),
45
+ react_1.default.createElement(react_native_1.Text, { style: styles.fdDetailValue }, creditRating)),
46
+ react_1.default.createElement(react_native_1.View, { style: [styles.fdDetailItem] },
47
+ react_1.default.createElement(react_native_1.Text, { style: [styles.fdDetailLabel, { textAlign: 'right' }] }, "Min. Deposit"),
48
+ react_1.default.createElement(react_native_1.Text, { style: [styles.fdDetailValue, { textAlign: 'right' }] }, "\u20B9 5000")))));
49
+ };
50
+ const createStyles = (colors, typography, spacing, shadows, themeName) => {
51
+ var _a, _b, _c, _d, _e, _f;
52
+ return react_native_1.StyleSheet.create({
53
+ fdCard: {
54
+ backgroundColor: colors.surface,
55
+ borderRadius: 4,
56
+ paddingVertical: react_native_1.Platform.OS === 'ios' ? spacing.md + 2 : spacing.md,
57
+ paddingHorizontal: spacing.md,
58
+ marginBottom: spacing.lg,
59
+ borderWidth: themeName === 'dark' ? 1 : 0.5,
60
+ borderColor: themeName === 'dark' ? colors.border : (0, theme_1.getBorderColor)({ colors }, 0.36),
61
+ shadowColor: '#000000',
62
+ shadowOffset: {
63
+ width: 0,
64
+ height: 2,
65
+ },
66
+ shadowOpacity: 0.1,
67
+ shadowRadius: 4,
68
+ elevation: 3,
69
+ },
70
+ fdCardHeader: {
71
+ flexDirection: 'row',
72
+ justifyContent: 'space-between',
73
+ alignItems: 'center',
74
+ marginBottom: spacing.sm,
75
+ },
76
+ fdName: Object.assign(Object.assign({}, typography.styles.text14Medium), { color: colors.text, flex: 1, lineHeight: ((_b = (_a = typography.styles.text14Medium.lineHeight) !== null && _a !== void 0 ? _a : typography.styles.text14Medium.fontSize) !== null && _b !== void 0 ? _b : 14) + 2 }),
77
+ fdDetailsRow: {
78
+ flexDirection: 'row',
79
+ justifyContent: 'space-between',
80
+ marginBottom: spacing.sm,
81
+ },
82
+ fdDetailsRowLast: {
83
+ flexDirection: 'row',
84
+ justifyContent: 'space-between',
85
+ },
86
+ fdDetailItem: {
87
+ flex: 1,
88
+ },
89
+ fdDetailLabel: Object.assign(Object.assign({}, typography.styles.text11Regular), { color: colors.textSecondary, marginBottom: spacing.xs, lineHeight: ((_d = (_c = typography.styles.text12Medium.lineHeight) !== null && _c !== void 0 ? _c : typography.styles.text12Medium.fontSize) !== null && _d !== void 0 ? _d : 12) + 3 }),
90
+ fdDetailValue: Object.assign(Object.assign({}, typography.styles.text14Medium), { color: colors.text, lineHeight: ((_f = (_e = typography.styles.text12Medium.lineHeight) !== null && _e !== void 0 ? _e : typography.styles.text12Medium.fontSize) !== null && _f !== void 0 ? _f : 12) + 3 }),
91
+ roiText: {
92
+ color: colors.success,
93
+ },
94
+ });
95
+ };
96
+ exports.default = FDCard;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export interface FormDropdownProps {
3
+ label: string;
4
+ value: string;
5
+ options: string[];
6
+ onSelect: (value: string) => void;
7
+ placeholder?: string;
8
+ editable?: boolean;
9
+ required?: boolean;
10
+ error?: string;
11
+ containerStyle?: object;
12
+ dropdownStyle?: object;
13
+ labelStyle?: object;
14
+ optionStyle?: object;
15
+ testID?: string;
16
+ }
17
+ declare const FormDropdown: React.FC<FormDropdownProps>;
18
+ export default FormDropdown;
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const react_1 = __importStar(require("react"));
37
+ const react_native_1 = require("react-native");
38
+ const ThemeContext_1 = require("../theme/ThemeContext");
39
+ const FormDropdown = ({ label, value, options, onSelect, placeholder, editable = true, required = false, error, containerStyle, dropdownStyle, labelStyle, optionStyle, testID, }) => {
40
+ const colors = (0, ThemeContext_1.useColors)();
41
+ const typography = (0, ThemeContext_1.useTypography)();
42
+ const { themeName } = (0, ThemeContext_1.useTheme)();
43
+ const styles = createStyles(colors, typography, themeName);
44
+ const [isOpen, setIsOpen] = (0, react_1.useState)(false);
45
+ const handleToggle = () => {
46
+ if (editable) {
47
+ setIsOpen(prev => !prev);
48
+ }
49
+ };
50
+ const handleSelect = (option) => {
51
+ onSelect(option);
52
+ setIsOpen(false);
53
+ };
54
+ const getDisplayValue = () => {
55
+ if (value)
56
+ return value;
57
+ return placeholder || `Select ${label}`;
58
+ };
59
+ return (react_1.default.createElement(react_native_1.View, { style: [styles.container, containerStyle] },
60
+ react_1.default.createElement(react_native_1.Text, { style: [styles.label, labelStyle] },
61
+ label,
62
+ required && react_1.default.createElement(react_native_1.Text, { style: styles.requiredIndicator }, " *")),
63
+ react_1.default.createElement(react_native_1.TouchableOpacity, { style: [
64
+ styles.dropdown,
65
+ !editable && styles.disabledDropdown,
66
+ error ? styles.errorDropdown : null, // fix
67
+ dropdownStyle,
68
+ ], onPress: handleToggle, disabled: !editable, testID: testID },
69
+ react_1.default.createElement(react_native_1.Text, { style: [
70
+ styles.dropdownText,
71
+ !value && styles.placeholderText,
72
+ !editable && styles.disabledText,
73
+ ] }, getDisplayValue()),
74
+ react_1.default.createElement(react_native_1.Text, { style: [styles.arrow, !editable && styles.disabledText] }, isOpen ? '▲' : '▼')),
75
+ error && react_1.default.createElement(react_native_1.Text, { style: styles.errorText }, error),
76
+ isOpen && editable && (react_1.default.createElement(react_native_1.View, { style: styles.optionsContainer }, options.map((option, index) => (react_1.default.createElement(react_native_1.TouchableOpacity, { key: index, style: [
77
+ styles.option,
78
+ option === value && styles.selectedOption,
79
+ optionStyle,
80
+ ], onPress: () => handleSelect(option) },
81
+ react_1.default.createElement(react_native_1.Text, { style: [
82
+ styles.optionText,
83
+ option === value && styles.selectedOptionText,
84
+ ] }, option))))))));
85
+ };
86
+ const createStyles = (colors, typography, themeName) => react_native_1.StyleSheet.create({
87
+ container: {
88
+ marginBottom: 20,
89
+ },
90
+ label: Object.assign(Object.assign({}, typography.styles.bodySmall), { color: colors.textLight, marginBottom: 8 }),
91
+ requiredIndicator: {
92
+ color: colors.error,
93
+ },
94
+ dropdown: {
95
+ flexDirection: 'row',
96
+ alignItems: 'center',
97
+ justifyContent: 'space-between',
98
+ backgroundColor: colors.surface,
99
+ borderRadius: 25,
100
+ paddingHorizontal: 16,
101
+ paddingVertical: 15,
102
+ borderWidth: 1,
103
+ borderColor: colors.border,
104
+ minHeight: 50,
105
+ },
106
+ disabledDropdown: {
107
+ backgroundColor: '#f5f5f5',
108
+ borderColor: colors.border,
109
+ },
110
+ errorDropdown: {
111
+ borderColor: colors.error,
112
+ },
113
+ dropdownText: Object.assign(Object.assign({}, typography.styles.bodyMedium), { color: colors.text, flex: 1 }),
114
+ placeholderText: {
115
+ color: themeName === 'dark' ? colors.placeholderColor : colors.textLight,
116
+ },
117
+ disabledText: {
118
+ color: colors.textLight,
119
+ },
120
+ arrow: Object.assign(Object.assign({}, typography.styles.bodySmall), { color: colors.textLight, marginLeft: 8 }),
121
+ errorText: Object.assign(Object.assign({}, typography.styles.bodySmall), { color: colors.error, marginTop: 4 }),
122
+ optionsContainer: {
123
+ position: 'absolute',
124
+ top: '100%',
125
+ left: 0,
126
+ right: 0,
127
+ backgroundColor: colors.surface,
128
+ borderRadius: 8,
129
+ borderWidth: 1,
130
+ borderColor: colors.border,
131
+ marginTop: 4,
132
+ maxHeight: 200,
133
+ zIndex: 1000,
134
+ elevation: 5,
135
+ shadowColor: '#000',
136
+ shadowOffset: { width: 0, height: 2 },
137
+ shadowOpacity: 0.1,
138
+ shadowRadius: 4,
139
+ },
140
+ option: {
141
+ paddingHorizontal: 16,
142
+ paddingVertical: 12,
143
+ borderBottomWidth: 1,
144
+ borderBottomColor: colors.border + '20',
145
+ },
146
+ selectedOption: {
147
+ backgroundColor: colors.primary + '10',
148
+ },
149
+ optionText: Object.assign(Object.assign({}, typography.styles.bodyMedium), { color: colors.text }),
150
+ selectedOptionText: {
151
+ color: colors.primary,
152
+ fontWeight: typography.fontWeight.semiBold,
153
+ },
154
+ });
155
+ exports.default = FormDropdown;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface FormSectionProps {
3
+ title?: string;
4
+ subtitle?: string;
5
+ children: React.ReactNode;
6
+ containerStyle?: object;
7
+ titleStyle?: object;
8
+ subtitleStyle?: object;
9
+ contentStyle?: object;
10
+ showDivider?: boolean;
11
+ dividerStyle?: object;
12
+ }
13
+ declare const FormSection: React.FC<FormSectionProps>;
14
+ export default FormSection;