@tap-payments/auth-jsconnect 2.5.22-test → 3.0.0-test

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 (442) hide show
  1. package/build/@types/app.d.ts +4 -0
  2. package/build/@types/app.js +5 -0
  3. package/build/api/country.d.ts +1 -0
  4. package/build/api/country.js +11 -1
  5. package/build/api/index.d.ts +1 -0
  6. package/build/app/settings.d.ts +5 -2
  7. package/build/app/settings.js +13 -3
  8. package/build/assets/locales/ar.json +107 -5
  9. package/build/assets/locales/en.json +108 -7
  10. package/build/components/AnimationFlow/AnimationFlow.d.ts +3 -3
  11. package/build/components/AnimationFlow/AnimationFlow.js +4 -4
  12. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -4
  13. package/build/components/AnimationFlow/BottomSheet.js +33 -27
  14. package/build/components/AnimationFlow/Dialog.d.ts +3 -4
  15. package/build/components/AnimationFlow/Dialog.js +17 -54
  16. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +3 -1
  17. package/build/components/ArabicDatePicker/ArabicDatePicker.js +12 -5
  18. package/build/components/ArabicDatePicker/style.css +2 -0
  19. package/build/components/Button/Button.js +21 -10
  20. package/build/components/CheckBox/CheckBox.d.ts +2 -1
  21. package/build/components/CheckBox/CheckBox.js +41 -19
  22. package/build/components/DatePicker/DatePicker.d.ts +3 -1
  23. package/build/components/DatePicker/DatePicker.js +12 -6
  24. package/build/components/DatePicker/customStyle.css +1 -0
  25. package/build/components/ExpandIcon/ExpandIcon.js +8 -5
  26. package/build/components/FileInput/DragAndDrop.js +43 -39
  27. package/build/components/Icon/Icon.js +1 -1
  28. package/build/components/OTPField/OTPField.js +5 -4
  29. package/build/components/OTPTimer/OTPTimer.js +2 -6
  30. package/build/components/Popover/Popover.d.ts +6 -0
  31. package/build/components/Popover/Popover.js +79 -0
  32. package/build/components/Popover/index.d.ts +3 -0
  33. package/build/components/Popover/index.js +2 -0
  34. package/build/components/ProgressBar/CircularProgressBar.js +14 -15
  35. package/build/components/Radio/Radio.js +16 -6
  36. package/build/components/RadioLabel/RadioLabel.js +3 -2
  37. package/build/components/SimpleList/SimpleList.d.ts +15 -1
  38. package/build/components/SimpleList/SimpleList.js +48 -37
  39. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  40. package/build/components/SocialMediaGroup/SocialMediaGroup.js +1 -1
  41. package/build/components/TextField/TextField.d.ts +17 -0
  42. package/build/components/TextField/TextField.js +89 -0
  43. package/build/components/TextField/index.d.ts +3 -0
  44. package/build/components/TextField/index.js +2 -0
  45. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -1
  46. package/build/components/Tooltip/Tooltip.js +38 -7
  47. package/build/components/Warning/Warning.js +4 -4
  48. package/build/constants/app.js +35 -11
  49. package/build/constants/assets.d.ts +72 -0
  50. package/build/constants/assets.js +131 -59
  51. package/build/constants/date.d.ts +1 -0
  52. package/build/constants/date.js +14 -0
  53. package/build/constants/index.d.ts +1 -0
  54. package/build/constants/index.js +1 -0
  55. package/build/features/app/brand/brandStore.d.ts +3 -2
  56. package/build/features/app/brand/brandStore.js +4 -1
  57. package/build/features/app/business/businessStore.d.ts +4 -2
  58. package/build/features/app/business/businessStore.js +12 -6
  59. package/build/features/app/entity/entityStore.d.ts +3 -2
  60. package/build/features/app/entity/entityStore.js +4 -1
  61. package/build/features/app/individual/individualStore.d.ts +3 -2
  62. package/build/features/app/individual/individualStore.js +4 -1
  63. package/build/features/bank/Bank.js +3 -3
  64. package/build/features/bank/screens/BankDetails/BankDetails.js +3 -8
  65. package/build/features/bank/screens/BankDetails/BankName.js +7 -3
  66. package/build/features/bank/screens/BankDetails/BankStatement.js +1 -1
  67. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -3
  68. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +7 -16
  69. package/build/features/bank/screens/BankDetails/IBAN.js +7 -2
  70. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  71. package/build/features/bank/screens/Success/Success.js +14 -2
  72. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  73. package/build/features/bank/screens/Verify/Verify.js +5 -8
  74. package/build/features/brand/Brand.js +3 -3
  75. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -51
  76. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +17 -55
  77. package/build/features/brand/screens/BrandActivities/BrandActivities.js +9 -7
  78. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +2 -31
  79. package/build/features/brand/screens/BrandActivities/CustomerBase.js +14 -32
  80. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  81. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +12 -13
  82. package/build/features/brand/screens/BrandActivities/ExpectedSaleField.d.ts +8 -0
  83. package/build/features/brand/screens/BrandActivities/ExpectedSaleField.js +55 -0
  84. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +9 -16
  85. package/build/features/brand/screens/BrandActivities/TAC.js +8 -21
  86. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +4 -2
  87. package/build/features/brand/screens/BrandInfo/BrandInfo.js +2 -2
  88. package/build/features/brand/screens/BrandInfo/BrandLogo.js +1 -1
  89. package/build/features/brand/screens/BrandInfo/BrandName.js +7 -51
  90. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +8 -4
  91. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
  92. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +11 -5
  93. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
  94. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +10 -4
  95. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
  96. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +10 -4
  97. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
  98. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.js +10 -4
  99. package/build/features/brand/screens/ExpectedSales/ExpectedSaleList.d.ts +29 -0
  100. package/build/features/brand/screens/ExpectedSales/ExpectedSaleList.js +136 -0
  101. package/build/features/brand/screens/ExpectedSales/ExpectedSales.d.ts +5 -0
  102. package/build/features/brand/screens/ExpectedSales/ExpectedSales.js +91 -0
  103. package/build/features/brand/screens/ExpectedSales/index.d.ts +2 -0
  104. package/build/features/brand/screens/ExpectedSales/index.js +2 -0
  105. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  106. package/build/features/brand/screens/Success/Success.js +13 -1
  107. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  108. package/build/features/brand/screens/Verify/Verify.js +5 -8
  109. package/build/features/business/Business.js +3 -3
  110. package/build/features/business/screens/Activities/Activities.js +7 -11
  111. package/build/features/business/screens/Activities/ActivityField.d.ts +22 -0
  112. package/build/features/business/screens/Activities/ActivityField.js +63 -0
  113. package/build/features/business/screens/Activities/LicenseName.js +4 -2
  114. package/build/features/business/screens/Activities/OperationStartDate.js +3 -3
  115. package/build/features/business/screens/BrandDetails/BrandDetails.js +3 -2
  116. package/build/features/business/screens/BrandDetails/BrandName.js +5 -9
  117. package/build/features/business/screens/BrandDetails/Header.js +4 -3
  118. package/build/features/business/screens/BrandDetails/LicenseInfo.js +5 -9
  119. package/build/features/business/screens/BrandDetails/SalesChannel.js +9 -5
  120. package/build/features/business/screens/BusinessActivities/ActivityList.d.ts +30 -0
  121. package/build/features/business/screens/BusinessActivities/ActivityList.js +265 -0
  122. package/build/features/business/screens/BusinessActivities/BusinessActivities.d.ts +5 -0
  123. package/build/features/business/screens/BusinessActivities/BusinessActivities.js +90 -0
  124. package/build/features/business/screens/BusinessActivities/index.d.ts +2 -0
  125. package/build/features/business/screens/BusinessActivities/index.js +2 -0
  126. package/build/features/business/screens/BusinessType/Article.js +1 -1
  127. package/build/features/business/screens/BusinessType/BusinessType.js +6 -4
  128. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +2 -1
  129. package/build/features/business/screens/BusinessType/EntityLicenseList.js +9 -11
  130. package/build/features/business/screens/BusinessType/EntityName.js +6 -3
  131. package/build/features/business/screens/BusinessType/LicenseList.d.ts +2 -1
  132. package/build/features/business/screens/BusinessType/LicenseList.js +9 -6
  133. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -3
  134. package/build/features/business/screens/BusinessType/LicenseType.js +16 -11
  135. package/build/features/business/screens/CivilID/CivilID.js +8 -16
  136. package/build/features/business/screens/CivilID/IDNumber.js +5 -18
  137. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -18
  138. package/build/features/business/screens/Customers/CustomerLocations.js +11 -26
  139. package/build/features/business/screens/Customers/Customers.js +12 -10
  140. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
  141. package/build/features/business/screens/Customers/ExpectedCustomers.js +10 -13
  142. package/build/features/business/screens/Customers/ExpectedSaleField.d.ts +6 -0
  143. package/build/features/business/screens/Customers/ExpectedSaleField.js +49 -0
  144. package/build/features/business/screens/Customers/RefundPolicy.js +8 -16
  145. package/build/features/business/screens/Customers/TransactionPolicy.js +4 -2
  146. package/build/features/business/screens/ExpectedSales/ExpectedSaleList.d.ts +29 -0
  147. package/build/features/business/screens/ExpectedSales/ExpectedSaleList.js +136 -0
  148. package/build/features/business/screens/ExpectedSales/ExpectedSales.d.ts +5 -0
  149. package/build/features/business/screens/ExpectedSales/ExpectedSales.js +91 -0
  150. package/build/features/business/screens/ExpectedSales/index.d.ts +2 -0
  151. package/build/features/business/screens/ExpectedSales/index.js +2 -0
  152. package/build/features/business/screens/IDBOD/DOB.js +3 -12
  153. package/build/features/business/screens/IDBOD/ID.js +2 -2
  154. package/build/features/business/screens/IDBOD/IDBOD.js +9 -16
  155. package/build/features/business/screens/OTP/OTP.js +10 -22
  156. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  157. package/build/features/business/screens/Success/Success.js +13 -1
  158. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  159. package/build/features/business/screens/Verify/Verify.js +5 -8
  160. package/build/features/connect/Connect.js +3 -3
  161. package/build/features/connect/screens/BrandSegment/BrandSegment.js +8 -4
  162. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +2 -1
  163. package/build/features/connect/screens/BrandSegment/SegmentLocations.js +9 -5
  164. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +2 -1
  165. package/build/features/connect/screens/BrandSegment/SegmentProfits.js +8 -4
  166. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +2 -1
  167. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +8 -4
  168. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
  169. package/build/features/connect/screens/BrandSegment/TeamSize.js +8 -4
  170. package/build/features/connect/screens/CivilID/CivilID.js +11 -12
  171. package/build/features/connect/screens/CivilID/IDNumber.js +3 -18
  172. package/build/features/connect/screens/Individual/Email.js +6 -2
  173. package/build/features/connect/screens/Individual/Individual.js +11 -9
  174. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -0
  175. package/build/features/connect/screens/Individual/MobileNumber.js +29 -22
  176. package/build/features/connect/screens/Individual/Name.js +4 -2
  177. package/build/features/connect/screens/Merchant/BrandList.d.ts +2 -1
  178. package/build/features/connect/screens/Merchant/BrandList.js +8 -4
  179. package/build/features/connect/screens/Merchant/BrandName.d.ts +2 -1
  180. package/build/features/connect/screens/Merchant/BrandName.js +7 -42
  181. package/build/features/connect/screens/Merchant/Merchant.js +8 -4
  182. package/build/features/connect/screens/Merchant/TAC.js +12 -24
  183. package/build/features/connect/screens/Mobile/Mobile.js +19 -21
  184. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -0
  185. package/build/features/connect/screens/Mobile/MobileNumber.js +22 -19
  186. package/build/features/connect/screens/NID/DOB.d.ts +1 -1
  187. package/build/features/connect/screens/NID/DOB.js +5 -26
  188. package/build/features/connect/screens/NID/IDNumber.js +3 -18
  189. package/build/features/connect/screens/NID/NID.js +13 -14
  190. package/build/features/connect/screens/OTP/OTP.js +5 -8
  191. package/build/features/connect/screens/ThankYou/ThankYou.js +13 -1
  192. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +0 -61
  193. package/build/features/connectExpress/ConnectExpress.js +3 -3
  194. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +13 -1
  195. package/build/features/connectExpress/screens/Brand/Brand.js +4 -2
  196. package/build/features/connectExpress/screens/CivilID/CivilID.js +7 -8
  197. package/build/features/connectExpress/screens/CivilID/IDNumber.js +3 -18
  198. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
  199. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +3 -18
  200. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -40
  201. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +9 -5
  202. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +2 -1
  203. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +11 -6
  204. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +8 -3
  205. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +9 -17
  206. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -4
  207. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -2
  208. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -0
  209. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +33 -26
  210. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +6 -2
  211. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +5 -8
  212. package/build/features/connectExpress/screens/Mobile/Mobile.js +21 -12
  213. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -0
  214. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +33 -26
  215. package/build/features/connectExpress/screens/Mobile/TAC.js +12 -24
  216. package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -1
  217. package/build/features/connectExpress/screens/NID/DOB.js +4 -24
  218. package/build/features/connectExpress/screens/NID/IDNumber.js +8 -18
  219. package/build/features/connectExpress/screens/NID/NID.js +7 -8
  220. package/build/features/connectExpress/screens/NID/TAC.js +9 -17
  221. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -1
  222. package/build/features/connectExpress/screens/NIDMissed/DOB.js +3 -24
  223. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +5 -18
  224. package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
  225. package/build/features/connectExpress/screens/OTP/OTP.js +5 -8
  226. package/build/features/connectExpress/screens/OTP/OTPInput.js +1 -1
  227. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  228. package/build/features/entity/Entity.js +3 -3
  229. package/build/features/entity/screens/EntityActivities/ActivityList.d.ts +30 -0
  230. package/build/features/entity/screens/EntityActivities/ActivityList.js +265 -0
  231. package/build/features/entity/screens/EntityActivities/EntityActivities.d.ts +5 -0
  232. package/build/features/entity/screens/EntityActivities/EntityActivities.js +89 -0
  233. package/build/features/entity/screens/EntityActivities/index.d.ts +2 -0
  234. package/build/features/entity/screens/EntityActivities/index.js +2 -0
  235. package/build/features/entity/screens/EntityCapital/ActivityField.d.ts +22 -0
  236. package/build/features/entity/screens/EntityCapital/ActivityField.js +63 -0
  237. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -3
  238. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -2
  239. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -3
  240. package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -11
  241. package/build/features/entity/screens/EntityName/Article.js +1 -1
  242. package/build/features/entity/screens/EntityName/EntityName.js +6 -4
  243. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +1 -50
  244. package/build/features/entity/screens/EntityName/EntityTypeList.js +19 -50
  245. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -15
  246. package/build/features/entity/screens/EntityName/ExpiryDate.js +5 -11
  247. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -15
  248. package/build/features/entity/screens/EntityName/IssuingDate.js +5 -11
  249. package/build/features/entity/screens/EntityName/LegalName.js +6 -2
  250. package/build/features/entity/screens/EntityName/LicenseNumber.js +4 -2
  251. package/build/features/entity/screens/EntityName/UnifiedNumber.js +6 -2
  252. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  253. package/build/features/entity/screens/Success/Success.js +13 -1
  254. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  255. package/build/features/entity/screens/Verify/Verify.js +5 -8
  256. package/build/features/featuresScreens.js +26 -1
  257. package/build/features/individual/Individual.js +3 -3
  258. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -9
  259. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +3 -3
  260. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -0
  261. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -3
  262. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -3
  263. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -100
  264. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +14 -7
  265. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -2
  266. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -3
  267. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -0
  268. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -3
  269. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +1 -1
  270. package/build/features/individual/screens/IndividualList/Email.js +4 -2
  271. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +1 -27
  272. package/build/features/individual/screens/IndividualList/IndividualList.js +2 -21
  273. package/build/features/individual/screens/IndividualList/MobileNumber.js +30 -24
  274. package/build/features/individual/screens/IndividualList/UserList.js +36 -15
  275. package/build/features/individual/screens/IndividualOccupation/IndividualOccupation.d.ts +5 -0
  276. package/build/features/individual/screens/IndividualOccupation/IndividualOccupation.js +91 -0
  277. package/build/features/individual/screens/IndividualOccupation/OccupationList.d.ts +29 -0
  278. package/build/features/individual/screens/IndividualOccupation/OccupationList.js +136 -0
  279. package/build/features/individual/screens/IndividualOccupation/index.d.ts +2 -0
  280. package/build/features/individual/screens/IndividualOccupation/index.js +2 -0
  281. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
  282. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +10 -4
  283. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
  284. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +10 -4
  285. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  286. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +4 -13
  287. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +6 -2
  288. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  289. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +4 -13
  290. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +16 -12
  291. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +7 -2
  292. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +7 -4
  293. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
  294. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +10 -4
  295. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
  296. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +31 -24
  297. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +6 -2
  298. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
  299. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +10 -4
  300. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -0
  301. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +34 -30
  302. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +10 -2
  303. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  304. package/build/features/individual/screens/Success/Success.js +13 -1
  305. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  306. package/build/features/individual/screens/Verify/Verify.js +5 -8
  307. package/build/features/password/Password.js +3 -3
  308. package/build/features/password/screens/CreatePassword/ConditionText.js +2 -1
  309. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +15 -2
  310. package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -3
  311. package/build/features/password/screens/CreatePassword/Password.js +17 -9
  312. package/build/features/password/screens/CreatePassword/PasswordBar.js +4 -4
  313. package/build/features/password/screens/OTP/OTP.js +10 -22
  314. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  315. package/build/features/password/screens/Success/Success.js +13 -1
  316. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  317. package/build/features/password/screens/Verify/Verify.js +5 -8
  318. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +16 -11
  319. package/build/features/shared/Background/Background.js +11 -2
  320. package/build/features/shared/Button/AbsherButton.js +12 -2
  321. package/build/features/shared/Button/Button.js +16 -11
  322. package/build/features/shared/Button/EmailProvidersButtons.js +34 -22
  323. package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
  324. package/build/features/shared/Button/FlowsButtons.js +79 -69
  325. package/build/features/shared/Button/IndividualActionButtons.js +39 -40
  326. package/build/features/shared/Button/MobileButton.js +16 -2
  327. package/build/features/shared/Button/SuccessButton.d.ts +1 -1
  328. package/build/features/shared/Button/SuccessButton.js +10 -15
  329. package/build/features/shared/Calender/Calender.d.ts +3 -1
  330. package/build/features/shared/Calender/Calender.js +4 -4
  331. package/build/features/shared/Calender/CustomCalender.d.ts +15 -0
  332. package/build/features/shared/Calender/CustomCalender.js +46 -0
  333. package/build/features/shared/Calender/CustomDatePicker.d.ts +29 -0
  334. package/build/features/shared/Calender/CustomDatePicker.js +252 -0
  335. package/build/features/shared/Calender/CustomHijriDatePicker.d.ts +29 -0
  336. package/build/features/shared/Calender/CustomHijriDatePicker.js +258 -0
  337. package/build/features/shared/Calender/DatePicker.d.ts +29 -0
  338. package/build/features/shared/Calender/DatePicker.js +229 -0
  339. package/build/features/shared/Calender/index.d.ts +2 -0
  340. package/build/features/shared/Calender/index.js +2 -0
  341. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -2
  342. package/build/features/shared/CheckIcon/CheckIcon.js +9 -7
  343. package/build/features/shared/Chip/Chip.js +2 -1
  344. package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -0
  345. package/build/features/shared/ClearIcon/ClearIcon.js +2 -1
  346. package/build/features/shared/Containers/ContainerWithHeader.d.ts +11 -0
  347. package/build/features/shared/Containers/ContainerWithHeader.js +52 -0
  348. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -2
  349. package/build/features/shared/Containers/FeatureContainer.js +6 -4
  350. package/build/features/shared/Containers/index.d.ts +2 -1
  351. package/build/features/shared/Containers/index.js +2 -1
  352. package/build/features/shared/CountryPopup/CountryPopup.d.ts +7 -0
  353. package/build/features/shared/CountryPopup/CountryPopup.js +166 -0
  354. package/build/features/shared/CountryPopup/index.d.ts +2 -0
  355. package/build/features/shared/CountryPopup/index.js +2 -0
  356. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +6 -6
  357. package/build/features/shared/DataLoading/DataLoading.js +6 -6
  358. package/build/features/shared/DropDownStyle/DropDownStyle.d.ts +24 -0
  359. package/build/features/shared/DropDownStyle/DropDownStyle.js +61 -0
  360. package/build/features/shared/DropDownStyle/index.d.ts +2 -0
  361. package/build/features/shared/DropDownStyle/index.js +2 -0
  362. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
  363. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
  364. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -2
  365. package/build/features/shared/Footer/PoweredByFooter.js +3 -3
  366. package/build/features/shared/GenericError/GenericError.js +3 -2
  367. package/build/features/shared/Header/Header.d.ts +8 -0
  368. package/build/features/shared/Header/Header.js +88 -0
  369. package/build/features/shared/Header/index.d.ts +3 -0
  370. package/build/features/shared/Header/index.js +2 -0
  371. package/build/features/shared/InputSelect/InputSelect.js +0 -1
  372. package/build/features/shared/LanguagePopup/LanguagePopup.d.ts +5 -0
  373. package/build/features/shared/LanguagePopup/LanguagePopup.js +178 -0
  374. package/build/features/shared/LanguagePopup/index.d.ts +2 -0
  375. package/build/features/shared/LanguagePopup/index.js +2 -0
  376. package/build/features/shared/Mandatory/Mandatory.js +2 -2
  377. package/build/features/shared/OTP/OTP.js +10 -11
  378. package/build/features/shared/PaciVerification/PaciVerification.js +5 -4
  379. package/build/features/shared/PasswordIcon/PasswordIcon.js +3 -2
  380. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +47 -22
  381. package/build/features/shared/SalesChannels/SalesChannel.d.ts +13 -0
  382. package/build/features/shared/SalesChannels/SalesChannel.js +11 -24
  383. package/build/features/shared/Search/Search.d.ts +3 -1
  384. package/build/features/shared/Search/Search.js +39 -3
  385. package/build/features/shared/SearchIcon/SearchIcon.d.ts +0 -1
  386. package/build/features/shared/SearchIcon/SearchIcon.js +6 -7
  387. package/build/features/shared/SearchIcon/index.d.ts +2 -0
  388. package/build/features/shared/SearchIcon/index.js +2 -0
  389. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +23 -8
  390. package/build/features/shared/SuccessScreen/SuccessScreen.js +9 -7
  391. package/build/features/shared/{UploadFile/UploadFile.d.ts → TextField/TextField.d.ts} +14 -24
  392. package/build/features/shared/TextField/TextField.js +63 -0
  393. package/build/features/shared/TextField/index.d.ts +3 -0
  394. package/build/features/shared/TextField/index.js +2 -0
  395. package/build/features/shared/TextFieldSelect/TextFieldSelect.d.ts +4 -0
  396. package/build/features/shared/TextFieldSelect/TextFieldSelect.js +32 -0
  397. package/build/features/shared/TextFieldSelect/index.d.ts +2 -0
  398. package/build/features/shared/TextFieldSelect/index.js +2 -0
  399. package/build/features/shared/TitleDescription/TitleDescription.d.ts +9 -0
  400. package/build/features/shared/TitleDescription/TitleDescription.js +77 -0
  401. package/build/features/shared/TitleDescription/index.d.ts +2 -0
  402. package/build/features/shared/TitleDescription/index.js +2 -0
  403. package/build/features/shared/UploadFile/FileUpload.d.ts +8 -2
  404. package/build/features/shared/UploadFile/FileUpload.js +58 -31
  405. package/build/features/shared/UploadFile/UploadWrapper.js +7 -3
  406. package/build/features/shared/UploadFile/index.d.ts +1 -2
  407. package/build/features/shared/UploadFile/index.js +1 -2
  408. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +8 -2
  409. package/build/features/shared/UploadMultipleFile/UploadFile.js +58 -31
  410. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +14 -9
  411. package/build/features/signIn/SignIn.js +3 -3
  412. package/build/features/signIn/screens/Mobile/MobileNumber.js +7 -4
  413. package/build/features/tax/Tax.js +3 -3
  414. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  415. package/build/features/tax/screens/Success/Success.js +13 -1
  416. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  417. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +7 -16
  418. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -2
  419. package/build/features/tax/screens/TaxDetails/TaxDocument.js +2 -2
  420. package/build/features/tax/screens/TaxDetails/VATId.js +7 -2
  421. package/build/features/tax/screens/Verify/Verify.js +9 -9
  422. package/build/hooks/useAppConfig.js +10 -1
  423. package/build/theme/palette.js +81 -27
  424. package/build/theme/shadows.js +7 -7
  425. package/build/theme/typography.js +3 -3
  426. package/build/utils/array.d.ts +1 -1
  427. package/build/utils/array.js +2 -2
  428. package/build/utils/string.js +14 -16
  429. package/package.json +3 -1
  430. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +0 -10
  431. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +0 -143
  432. package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -37
  433. package/build/features/business/screens/Activities/ActivitiesList.js +0 -292
  434. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +0 -8
  435. package/build/features/business/screens/Customers/ExpectedSalesRange.js +0 -138
  436. package/build/features/connect/screens/Mobile/Title.d.ts +0 -8
  437. package/build/features/connect/screens/Mobile/Title.js +0 -29
  438. package/build/features/connectExpress/screens/Mobile/Title.d.ts +0 -8
  439. package/build/features/connectExpress/screens/Mobile/Title.js +0 -29
  440. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +0 -38
  441. package/build/features/entity/screens/EntityCapital/ActivityList.js +0 -290
  442. package/build/features/shared/UploadFile/UploadFile.js +0 -91
@@ -26,11 +26,9 @@ import { BottomSheet } from 'react-spring-bottom-sheet';
26
26
  import { styled } from '@mui/material/styles';
27
27
  import Box from '@mui/material/Box';
28
28
  import 'react-spring-bottom-sheet/dist/style.css';
29
- import { ICONS_NAMES } from '../../constants';
30
- import { useLanguage } from '../../hooks';
31
- import { CustomFooter, PoweredByFooter } from '../../features/shared/Footer';
32
- import LogoBadge from '../LogoBadge';
33
- var LanguageFooterStyled = styled(Box)(function (_a) {
29
+ import CountryPopup from '../../features/shared/CountryPopup';
30
+ import LanguagePopup from '../../features/shared/LanguagePopup';
31
+ var LanguageCountryStyled = styled(Box)(function (_a) {
34
32
  var theme = _a.theme;
35
33
  return ({
36
34
  top: theme.spacing(2.5),
@@ -38,24 +36,38 @@ var LanguageFooterStyled = styled(Box)(function (_a) {
38
36
  alignItems: 'center',
39
37
  width: '100%',
40
38
  cursor: 'pointer',
41
- zIndex: 99999
39
+ zIndex: 99999,
40
+ display: 'flex',
41
+ justifyContent: 'center',
42
+ gap: theme.spacing(1)
42
43
  });
43
44
  });
44
45
  var BottomSheetStyled = styled(BottomSheet, {
45
- shouldForwardProp: function (prop) { return !['isMaturityExpress', 'languageBarHeight'].includes(prop.toString()); }
46
+ shouldForwardProp: function (prop) { return !['languageBarHeight'].includes(prop.toString()); }
46
47
  })(function (_a) {
47
- var theme = _a.theme, isMaturityExpress = _a.isMaturityExpress, languageBarHeight = _a.languageBarHeight;
48
+ var theme = _a.theme, languageBarHeight = _a.languageBarHeight;
48
49
  return ({
49
- '[data-rsbs-header]:before': __assign({ width: '75px', height: '5px' }, (isMaturityExpress && { width: '0px', height: '0px' })),
50
+ '[data-rsbs-header]:before': {
51
+ width: theme.spacing(9.125),
52
+ height: theme.spacing(0.5),
53
+ backgroundColor: theme.palette.secondary.contrastText,
54
+ borderRadius: theme.spacing(7.75)
55
+ },
50
56
  '[data-rsbs-backdrop]': {
51
57
  backgroundColor: 'transparent'
52
58
  },
53
- '[data-rsbs-header]': __assign({ paddingBottom: theme.spacing(6), position: 'absolute', width: '100vw' }, (isMaturityExpress && { display: 'none' })),
54
- '[data-rsbs-overlay]': __assign({ backgroundColor: theme.palette.background.paper, zIndex: 9999, maxHeight: "calc(100vh - ".concat(languageBarHeight, "px)") }, (isMaturityExpress && {
55
- marginBottom: theme.spacing(5.625),
56
- paddingTop: theme.spacing(5)
57
- })),
59
+ '[data-rsbs-header]': {
60
+ position: 'absolute',
61
+ width: '100vw',
62
+ top: theme.spacing(0.5)
63
+ },
64
+ '[data-rsbs-overlay]': {
65
+ backgroundColor: 'transparent',
66
+ zIndex: 9999,
67
+ maxHeight: "calc(100vh - ".concat(languageBarHeight, "px)")
68
+ },
58
69
  '[data-rsbs-scroll]': {
70
+ marginTop: theme.spacing(7.5),
59
71
  '&::-webkit-scrollbar': {
60
72
  width: '0px'
61
73
  },
@@ -70,26 +82,20 @@ var BottomSheetStyled = styled(BottomSheet, {
70
82
  }
71
83
  });
72
84
  });
73
- var FooterStyled = styled(Box)(function (_a) {
74
- var theme = _a.theme;
75
- return (__assign(__assign({ bottom: theme.spacing(-5.625), position: 'fixed', height: theme.spacing(5.625), display: 'flex' }, theme.typography.caption), { justifyContent: 'center', alignItems: 'center', width: '100vw', background: '#E6E7E9', borderTop: '1px solid rgba(156, 160, 169, 0.3)' }));
76
- });
77
85
  var BottomSheetComponent = function (_a) {
78
- var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo"]);
86
+ var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, countries = _a.countries, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "countries"]);
79
87
  var sheetRef = React.useRef(null);
80
- var isAr = useLanguage().isAr;
81
- var logo = (merchantInfo || {}).logo;
82
88
  var getLanguageBarHeight = function () {
83
89
  var viewportHeight = window.innerHeight;
84
90
  var documentHeight = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
85
- return documentHeight - viewportHeight + (isMaturityExpress ? 150 : 70);
91
+ return documentHeight - viewportHeight + 30;
86
92
  };
87
93
  var getMinHeight = function (maxHeight) {
88
94
  var el = document.getElementById('main-feature-container');
89
- var footer = document.getElementById('bottom-sheet-powered_by_footer');
95
+ var header = document.getElementById('main-feature-container-header');
90
96
  var height = el ? el.clientHeight : 0;
91
- var footerHeight = footer ? footer.clientHeight + 20 : 0;
92
- return (height || maxHeight * 0.7) + footerHeight;
97
+ var headerHeight = header ? header.clientHeight : 0;
98
+ return (height || maxHeight * 0.7) + headerHeight - 10;
93
99
  };
94
100
  React.useEffect(function () {
95
101
  if (sheetRef.current && screenId) {
@@ -102,9 +108,9 @@ var BottomSheetComponent = function (_a) {
102
108
  }, 500);
103
109
  }
104
110
  }, [screenId]);
105
- return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), sibling: _jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) }), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
111
+ return (_jsx(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), sibling: _jsxs(LanguageCountryStyled, { children: [_jsx(CountryPopup, { isSmallDevice: true, list: countries }), _jsx(LanguagePopup, { isSmallDevice: true })] }), blocking: false, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
106
112
  var maxHeight = _a.maxHeight;
107
113
  return [getMinHeight(maxHeight), maxHeight * 0.95];
108
- } }, rest, { children: [isMaturityExpress && _jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), children, isMaturityExpress && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
114
+ } }, rest, { children: children })));
109
115
  };
110
116
  export default React.memo(BottomSheetComponent);
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DialogProps as MUIDialogProps } from '@mui/material/Dialog';
3
- import { MerchantInfo } from '../../@types';
3
+ import { CountryCode } from '../../@types';
4
4
  export interface DialogProps extends MUIDialogProps {
5
5
  open: boolean;
6
6
  isTapOrigin?: boolean;
@@ -10,8 +10,7 @@ export interface DialogProps extends MUIDialogProps {
10
10
  onClose?: () => void;
11
11
  onConfirm?: () => void;
12
12
  pointerEvents?: 'none' | 'auto';
13
- merchantInfo?: MerchantInfo;
14
- isMaturityExpress?: boolean;
13
+ countries: Array<CountryCode>;
15
14
  }
16
- declare const _default: React.MemoExoticComponent<({ open, children, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, pointerEvents, merchantInfo, isMaturityExpress, ...rest }: DialogProps) => JSX.Element>;
15
+ declare const _default: React.MemoExoticComponent<({ open, children, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, pointerEvents, countries, ...rest }: DialogProps) => JSX.Element>;
17
16
  export default _default;
@@ -26,27 +26,23 @@ import MuiDialog from '@mui/material/Dialog';
26
26
  import DialogContent from '@mui/material/DialogContent';
27
27
  import Paper from '@mui/material/Paper';
28
28
  import Box from '@mui/material/Box';
29
- import { styled } from '@mui/material/styles';
30
- import { DIALOG_ID, ICONS_NAMES } from '../../constants';
31
- import { useLanguage } from '../../hooks';
29
+ import { alpha, styled } from '@mui/material/styles';
30
+ import { DIALOG_ID } from '../../constants';
32
31
  import DialogContainer from '../../features/shared/Dialog';
33
- import { CustomFooter, PoweredByFooter } from '../../features/shared/Footer';
32
+ import CountryPopup from '../../features/shared/CountryPopup';
33
+ import LanguagePopup from '../../features/shared/LanguagePopup';
34
34
  import Slide from '../Slide';
35
- import LogoBadge from '../LogoBadge';
36
- import Icon from '../Icon';
37
- import Collapse from '../Collapse';
38
35
  var Transition = React.forwardRef(function Transition(props, ref) {
39
36
  return _jsx(Slide, __assign({ direction: 'up', ref: ref }, props));
40
37
  });
41
38
  var PaperStyled = styled(Paper)(function (_a) {
42
39
  var theme = _a.theme;
43
40
  return ({
44
- boxShadow: theme.shadows[1],
45
41
  borderRadius: theme.spacing(1.5),
46
- backgroundColor: theme.palette.background.paper,
42
+ backgroundColor: 'transparent',
47
43
  color: theme.palette.text.primary,
48
44
  margin: "".concat(theme.spacing(5, 4, 5, 4), " !important"),
49
- maxHeight: "calc(100% - ".concat(theme.spacing(10), ") !important"),
45
+ maxHeight: "calc(100% - ".concat(theme.spacing(15.625), ") !important"),
50
46
  width: theme.spacing(46.875),
51
47
  maxWidth: theme.spacing(46.875)
52
48
  });
@@ -55,80 +51,47 @@ var DialogContentStyled = styled(DialogContent, { shouldForwardProp: function (p
55
51
  var theme = _a.theme, isTapOrigin = _a.isTapOrigin;
56
52
  return ({
57
53
  padding: theme.spacing(0),
54
+ borderRadius: theme.spacing(1.5),
58
55
  marginTop: isTapOrigin ? theme.spacing(3.75) : theme.spacing(4.375),
59
56
  width: '100%',
60
57
  '&::-webkit-scrollbar': {
61
58
  width: '0px'
62
59
  },
63
60
  '&::-webkit-scrollbar-track': {
64
- boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
65
- webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
61
+ boxShadow: theme.shadows[4],
62
+ webkitBoxShadow: theme.shadows[4]
66
63
  },
67
64
  '&::-webkit-scrollbar-thumb': {
68
- backgroundColor: 'rgba(0,0,0,.1)',
65
+ backgroundColor: alpha(theme.palette.common.black, 0.1),
69
66
  outline: '1px solid slategrey'
70
67
  }
71
68
  });
72
69
  });
73
- var LogoIconBoxStyled = styled(Box)(function (_a) {
74
- var _b;
75
- var theme = _a.theme;
76
- return (_b = {
77
- paddingTop: theme.spacing(3.125),
78
- width: '100%',
79
- display: 'flex',
80
- justifyContent: 'center'
81
- },
82
- _b[theme.transitions.create(['top'])] = {
83
- duration: theme.transitions.duration.standard
84
- },
85
- _b);
86
- });
87
- var LogoIconStyled = styled(Icon)(function (_a) {
70
+ var LanguageCountryStyled = styled(Box)(function (_a) {
88
71
  var theme = _a.theme;
89
- return ({
90
- width: theme.spacing(5.875),
91
- height: '10%',
92
- padding: theme.spacing(0)
93
- });
94
- });
95
- var LanguageFooterStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'showLanguage'; } })(function (_a) {
96
- var theme = _a.theme, showLanguage = _a.showLanguage;
97
72
  return ({
98
73
  position: 'fixed',
99
- bottom: theme.spacing(7.5),
74
+ bottom: theme.spacing(3.75),
100
75
  left: '50%',
101
76
  transform: 'translateX(-50%)',
102
- opacity: showLanguage ? 1 : 0,
103
- transition: 'opacity 300ms'
77
+ transition: 'opacity 300ms',
78
+ display: 'flex',
79
+ gap: theme.spacing(1)
104
80
  });
105
81
  });
106
82
  var Dialog = function (_a) {
107
- var open = _a.open, children = _a.children, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, _c = _a.pointerEvents, pointerEvents = _c === void 0 ? 'auto' : _c, merchantInfo = _a.merchantInfo, isMaturityExpress = _a.isMaturityExpress, rest = __rest(_a, ["open", "children", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm", "pointerEvents", "merchantInfo", "isMaturityExpress"]);
108
- var isAr = useLanguage().isAr;
83
+ var open = _a.open, children = _a.children, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, _c = _a.pointerEvents, pointerEvents = _c === void 0 ? 'auto' : _c, countries = _a.countries, rest = __rest(_a, ["open", "children", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm", "pointerEvents", "countries"]);
109
84
  var animation = {};
110
85
  if (animationType === 'slide') {
111
86
  Object.assign(animation, { TransitionComponent: Transition });
112
87
  }
113
- var logo = (merchantInfo || {}).logo;
114
- var _d = React.useState(false), showLanguage = _d[0], setShowLanguage = _d[1];
115
- React.useEffect(function () {
116
- if (isMaturityExpress) {
117
- setTimeout(function () {
118
- setShowLanguage(true);
119
- }, transitionDuration || 500);
120
- }
121
- }, []);
122
88
  return (_jsxs(MuiDialog, __assign({ id: DIALOG_ID, PaperProps: {
123
89
  elevation: 0
124
90
  }, sx: {
125
91
  '& .MuiDialog-paper': {
126
92
  overflowY: 'visible'
127
93
  },
128
- '&.MuiDialog-root': {
129
- marginBottom: isMaturityExpress ? '60px' : '0px'
130
- },
131
94
  pointerEvents: pointerEvents
132
- }, hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), !isMaturityExpress && (_jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) }))] })), children] })) })), isMaturityExpress ? _jsx(PoweredByFooter, {}) : _jsx(CustomFooter, {}), _jsx(LanguageFooterStyled, __assign({ showLanguage: showLanguage }, { children: _jsx(CustomFooter, {}) }))] })));
95
+ }, hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsx(DialogContentStyled, __assign({ isTapOrigin: isTapOrigin }, { children: children })) })), _jsxs(LanguageCountryStyled, { children: [_jsx(CountryPopup, { list: countries }), _jsx(LanguagePopup, {})] })] })));
133
96
  };
134
97
  export default React.memo(Dialog);
@@ -11,6 +11,8 @@ export interface DatePickerProps extends CalendarProps {
11
11
  onDatePicked?: () => void;
12
12
  isDob?: boolean;
13
13
  isVerified?: boolean;
14
+ label?: string;
15
+ required?: boolean;
14
16
  }
15
- declare const _default: React.MemoExoticComponent<({ open, disabled, dir, readOnly, onDateChange, onClick, onDatePicked, value, isDob, isVerified, ...rest }: DatePickerProps) => JSX.Element>;
17
+ declare const _default: React.MemoExoticComponent<({ open, disabled, dir, readOnly, onDateChange, onClick, onDatePicked, value, isDob, isVerified, label, required, ...rest }: DatePickerProps) => JSX.Element>;
16
18
  export default _default;
@@ -27,12 +27,13 @@ import arabic from 'react-date-object/calendars/arabic';
27
27
  import Box from '@mui/material/Box';
28
28
  import { styled } from '@mui/material/styles';
29
29
  import Divider from '@mui/material/Divider';
30
+ import InputAdornment from '@mui/material/InputAdornment';
30
31
  import Collapse from '../Collapse';
31
32
  import Icon from '../Icon';
32
33
  import { ICONS_NAMES } from '../../constants';
33
34
  import { getEighteenYearsAgo } from '../../utils';
34
35
  import { EndAdornmentExpanded } from '../../features/shared/EndAdornment';
35
- import Input from '../Input';
36
+ import Input from '../TextField';
36
37
  import Text from '../Text';
37
38
  import arabic_en from './arabicEn';
38
39
  import arabic_ar from './arabicAr';
@@ -48,13 +49,16 @@ var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !
48
49
  cursor: disabled ? 'auto' : 'pointer',
49
50
  opacity: disabled ? '0.6' : '1',
50
51
  fontFamily: theme.typography.fontFamily,
51
- minHeight: openCalender ? '345px' : '46px'
52
+ minHeight: openCalender ? '345px' : '46px',
53
+ margin: theme.spacing(0, 3, 0, 3)
52
54
  });
53
55
  });
54
56
  var InputFieldStyled = styled(Input)(function (_a) {
55
57
  var theme = _a.theme, disabled = _a.disabled;
56
58
  return ({
57
59
  cursor: disabled ? 'auto' : 'pointer',
60
+ width: '100%',
61
+ direction: theme.direction,
58
62
  '&::placeholder': __assign(__assign({ opacity: 1, color: theme.palette.text.primary, lineHeight: theme.spacing(2.125) }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight }),
59
63
  '& .MuiInputBase-input': {
60
64
  WebkitTextFillColor: 'inherit',
@@ -71,7 +75,7 @@ var ArrowIcon = styled(Text, { shouldForwardProp: function (prop) { return prop
71
75
  });
72
76
  });
73
77
  var DatePicker = function (_a) {
74
- var _b = _a.open, open = _b === void 0 ? false : _b, disabled = _a.disabled, dir = _a.dir, readOnly = _a.readOnly, onDateChange = _a.onDateChange, onClick = _a.onClick, onDatePicked = _a.onDatePicked, value = _a.value, isDob = _a.isDob, isVerified = _a.isVerified, rest = __rest(_a, ["open", "disabled", "dir", "readOnly", "onDateChange", "onClick", "onDatePicked", "value", "isDob", "isVerified"]);
78
+ var _b = _a.open, open = _b === void 0 ? false : _b, disabled = _a.disabled, dir = _a.dir, readOnly = _a.readOnly, onDateChange = _a.onDateChange, onClick = _a.onClick, onDatePicked = _a.onDatePicked, value = _a.value, isDob = _a.isDob, isVerified = _a.isVerified, label = _a.label, required = _a.required, rest = __rest(_a, ["open", "disabled", "dir", "readOnly", "onDateChange", "onClick", "onDatePicked", "value", "isDob", "isVerified", "label", "required"]);
75
79
  var _c = React.useState(), date = _c[0], setDate = _c[1];
76
80
  var _d = React.useState(null), anchor = _d[0], setAnchor = _d[1];
77
81
  var _e = React.useState(open), openCalender = _e[0], setOpenCalender = _e[1];
@@ -108,9 +112,12 @@ var DatePicker = function (_a) {
108
112
  var dateObject = toDateObject(date);
109
113
  return dateObject.convert(arabic).format(DATE_FORMAT);
110
114
  };
111
- return (_jsxs(Container, __assign({ openCalender: openCalender, disabled: disabled, id: 'arabic-container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: getEndAdornment() })), value: date ? formateDate(date) : '', placeholder: DATE_FORMAT, onClick: function (e) {
115
+ return (_jsxs(Container, __assign({ openCalender: openCalender, disabled: disabled, id: 'arabic-container-calendar' }, { children: [_jsx(InputFieldStyled, { label: label, required: required, InputProps: {
116
+ endAdornment: _jsx(InputAdornment, __assign({ position: 'end' }, { children: calenderIcon })),
117
+ readOnly: readOnly
118
+ }, value: date ? formateDate(date) : '', placeholder: DATE_FORMAT, onClick: function (e) {
112
119
  if (!disabled)
113
120
  toggleCalender(e);
114
- }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({ calendar: arabic, locale: dir === 'rtl' ? arabic_ar : arabic_en, maxDate: rest.maxDate || defaultMax, minDate: defaultMin, format: DATE_FORMAT, onChange: handleOnDateChange, value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), className: 'custom-container' }, rest)), _jsx(Divider, {})] }))] })));
121
+ }, disabled: disabled, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({ calendar: arabic, locale: dir === 'rtl' ? arabic_ar : arabic_en, maxDate: rest.maxDate || defaultMax, minDate: defaultMin, format: DATE_FORMAT, onChange: handleOnDateChange, value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), className: 'custom-container' }, rest)), _jsx(Divider, {})] }))] })));
115
122
  };
116
123
  export default memo(DatePicker);
@@ -2,6 +2,8 @@
2
2
  box-shadow: none !important;
3
3
  width: 100% !important;
4
4
  z-index: 0 !important;
5
+ border-radius: 0px !important;
6
+ margin-top: -5px;
5
7
  }
6
8
 
7
9
  .rmdp-day-picker > div {
@@ -24,6 +24,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import Button from '@mui/material/Button';
26
26
  import { styled, alpha } from '@mui/material/styles';
27
+ import { ThemeMode } from '../../@types';
27
28
  var ButtonStyled = styled(Button, {
28
29
  shouldForwardProp: function (prop) { return !['outLineColor', 'touched'].includes(prop.toString()); }
29
30
  })(function (_a) {
@@ -31,7 +32,7 @@ var ButtonStyled = styled(Button, {
31
32
  var theme = _a.theme, touched = _a.touched, outLineColor = _a.outLineColor;
32
33
  return ({
33
34
  '&.MuiButton-contained': {
34
- color: theme.palette.common.white,
35
+ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.text.primary : theme.palette.common.white,
35
36
  backgroundColor: theme.palette.primary.main,
36
37
  '&:hover': {
37
38
  backgroundColor: theme.palette.primary.main
@@ -40,9 +41,9 @@ var ButtonStyled = styled(Button, {
40
41
  backgroundColor: theme.palette.primary.main
41
42
  },
42
43
  ':disabled': {
43
- backgroundColor: alpha(theme.palette.primary.main, 0.3),
44
- borderColor: alpha(theme.palette.primary.main, 0.2),
45
- color: theme.palette.common.white
44
+ backgroundColor: theme.palette.action.disabled,
45
+ borderColor: theme.palette.action.disabled,
46
+ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.text.disabled : theme.palette.common.white
46
47
  },
47
48
  '& .MuiButton-endIcon': {
48
49
  margin: theme.spacing(0)
@@ -54,19 +55,19 @@ var ButtonStyled = styled(Button, {
54
55
  minHeight: theme.spacing(5.5),
55
56
  maxHeight: theme.spacing(5.5),
56
57
  borderRadius: theme.spacing(4.1),
57
- fontWeight: 'bold',
58
+ fontWeight: 600,
58
59
  lineHeight: 1.7,
59
60
  display: 'flex',
60
61
  justifyContent: 'space-between',
61
62
  paddingInlineStart: theme.spacing(0.75),
62
63
  textTransform: 'none',
63
64
  '&.MuiButton-outlined': (_b = {
64
- backgroundColor: theme.palette.common.white,
65
+ backgroundColor: theme.palette.mode === ThemeMode.DARK ? 'transparent' : theme.palette.common.white,
65
66
  border: "1px solid ".concat(!!outLineColor ? outLineColor : theme.palette.primary.main),
66
67
  color: !!outLineColor ? outLineColor : theme.palette.primary.main,
67
68
  '&:hover': {
68
69
  backgroundColor: !!outLineColor ? outLineColor : theme.palette.primary.main,
69
- color: theme.palette.common.white,
70
+ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.text.disabled : theme.palette.common.white,
70
71
  img: {
71
72
  filter: 'brightness(0) invert(1)'
72
73
  }
@@ -75,15 +76,25 @@ var ButtonStyled = styled(Button, {
75
76
  _b[theme.breakpoints.down('sm')] = {
76
77
  '&:hover': {
77
78
  backgroundColor: touched ? (!!outLineColor ? outLineColor : theme.palette.primary.main) : theme.palette.common.white,
78
- color: touched ? theme.palette.common.white : !!outLineColor ? outLineColor : theme.palette.primary.main,
79
+ color: touched
80
+ ? theme.palette.mode === ThemeMode.DARK
81
+ ? theme.palette.text.primary
82
+ : theme.palette.common.white
83
+ : !!outLineColor
84
+ ? outLineColor
85
+ : theme.palette.primary.main,
79
86
  img: {
80
87
  filter: touched ? 'brightness(0) invert(1)' : 'none'
81
88
  }
82
89
  }
83
90
  },
84
91
  _b['&:disabled'] = {
85
- backgroundColor: theme.palette.common.white,
86
- color: alpha(!!outLineColor ? outLineColor : theme.palette.primary.main, 0.3)
92
+ backgroundColor: theme.palette.action.disabled,
93
+ color: outLineColor
94
+ ? alpha(outLineColor, 0.3)
95
+ : theme.palette.mode === ThemeMode.DARK
96
+ ? theme.palette.text.disabled
97
+ : theme.palette.common.white
87
98
  },
88
99
  _b)
89
100
  });
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { CheckboxProps } from '@mui/material/Checkbox/Checkbox';
3
3
  export type { CheckboxProps };
4
- declare const _default: React.MemoExoticComponent<({ ...rest }: CheckboxProps) => JSX.Element>;
4
+ declare function CheckBoxComponent(props: CheckboxProps): JSX.Element;
5
+ declare const _default: React.MemoExoticComponent<typeof CheckBoxComponent>;
5
6
  export default _default;
@@ -9,31 +9,53 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import * as React from 'react';
25
14
  import { styled } from '@mui/material/styles';
26
15
  import Checkbox from '@mui/material/Checkbox/Checkbox';
27
- var CheckBoxStyled = styled(Checkbox)(function (_a) {
16
+ import { ThemeMode } from '../../@types';
17
+ var CheckBoxIcon = styled('span')(function (_a) {
28
18
  var theme = _a.theme;
29
19
  return ({
30
- paddingInlineStart: theme.spacing(2.5),
31
- paddingInlineEnd: theme.spacing(1.25),
32
- marginBlockStart: theme.spacing(1.9)
20
+ borderRadius: 3,
21
+ width: 16,
22
+ height: 16,
23
+ opacity: 1,
24
+ borderStyle: 'solid',
25
+ borderWidth: theme.spacing(0.125),
26
+ borderColor: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.common.black,
27
+ 'input:disabled ~ &': {
28
+ opacity: 0.6
29
+ }
33
30
  });
34
31
  });
35
- var CheckBoxComponent = function (_a) {
36
- var rest = __rest(_a, []);
37
- return _jsx(CheckBoxStyled, __assign({}, rest));
38
- };
32
+ var CheckedIcon = styled(CheckBoxIcon)(function (_a) {
33
+ var theme = _a.theme;
34
+ return ({
35
+ backgroundColor: theme.palette.action.active,
36
+ borderWidth: theme.spacing(0),
37
+ '&:before': {
38
+ display: 'block',
39
+ width: theme.spacing(2),
40
+ height: theme.spacing(2),
41
+ backgroundRepeat: 'no-repeat',
42
+ position: 'absolute',
43
+ top: theme.spacing(1.75),
44
+ left: theme.spacing(1.5),
45
+ backgroundImage: theme.palette.mode === ThemeMode.DARK
46
+ ? "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath" +
47
+ " d='M8.07433 0.226874C8.21025 0.0872426 8.39518 0.00598767 8.58996 0.000311011C8.74093 -0.00403712 8.8897 0.0372929 9.0168 0.118893C9.14389 0.200493 9.24339 0.318561 9.30228 0.457645C9.36116 0.596729 9.37668 0.75035 9.34682 0.898402C9.31695 1.04646 9.24308 1.18204 9.13488 1.28742L4.13488 6.28742C3.99422 6.42802 3.80349 6.507 3.60461 6.507C3.40573 6.507 3.21499 6.42802 3.07433 6.28742L0.574334 3.78742C0.502356 3.71831 0.444891 3.63553 0.405304 3.54394C0.365716 3.45234 0.344803 3.35377 0.343789 3.25399C0.342774 3.15421 0.361679 3.05523 0.399396 2.96285C0.437113 2.87047 0.492884 2.78654 0.563442 2.71598C0.634 2.64542 0.717928 2.58965 0.81031 2.55194C0.902691 2.51422 1.00167 2.49531 1.10145 2.49633C1.20123 2.49734 1.2998 2.51825 1.3914 2.55784C1.483 2.59743 1.56577 2.6549 1.63488 2.72687L3.60461 4.6966L8.07433 0.226874Z'" +
48
+ " fill='%23000'/%3E%3C/svg%3E\")"
49
+ : "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath" +
50
+ " d='M8.07433 0.226874C8.21025 0.0872426 8.39518 0.00598767 8.58996 0.000311011C8.74093 -0.00403712 8.8897 0.0372929 9.0168 0.118893C9.14389 0.200493 9.24339 0.318561 9.30228 0.457645C9.36116 0.596729 9.37668 0.75035 9.34682 0.898402C9.31695 1.04646 9.24308 1.18204 9.13488 1.28742L4.13488 6.28742C3.99422 6.42802 3.80349 6.507 3.60461 6.507C3.40573 6.507 3.21499 6.42802 3.07433 6.28742L0.574334 3.78742C0.502356 3.71831 0.444891 3.63553 0.405304 3.54394C0.365716 3.45234 0.344803 3.35377 0.343789 3.25399C0.342774 3.15421 0.361679 3.05523 0.399396 2.96285C0.437113 2.87047 0.492884 2.78654 0.563442 2.71598C0.634 2.64542 0.717928 2.58965 0.81031 2.55194C0.902691 2.51422 1.00167 2.49531 1.10145 2.49633C1.20123 2.49734 1.2998 2.51825 1.3914 2.55784C1.483 2.59743 1.56577 2.6549 1.63488 2.72687L3.60461 4.6966L8.07433 0.226874Z'" +
51
+ " fill='%23fff'/%3E%3C/svg%3E\")",
52
+ content: '""'
53
+ }
54
+ });
55
+ });
56
+ function CheckBoxComponent(props) {
57
+ return (_jsx(Checkbox, __assign({ sx: {
58
+ '&:hover': { bgcolor: 'transparent' }
59
+ }, disableRipple: true, color: 'default', checkedIcon: _jsx(CheckedIcon, {}), icon: _jsx(CheckBoxIcon, {}), inputProps: { 'aria-label': 'Checkbox' } }, props)));
60
+ }
39
61
  export default React.memo(CheckBoxComponent);
@@ -12,6 +12,8 @@ export interface DatePickerProps extends CalendarProps {
12
12
  dir?: string;
13
13
  isDob?: boolean;
14
14
  isVerified?: boolean;
15
+ label?: string;
16
+ required?: boolean;
15
17
  }
16
- declare const _default: React.MemoExoticComponent<({ onDateChange, disabled, readOnly, onClick, onDatePicked, dir, defaultValue, isDob, isVerified, open, ...rest }: DatePickerProps) => JSX.Element>;
18
+ declare const _default: React.MemoExoticComponent<({ onDateChange, disabled, readOnly, onClick, onDatePicked, dir, defaultValue, isDob, isVerified, open, label, required, ...rest }: DatePickerProps) => JSX.Element>;
17
19
  export default _default;
@@ -25,14 +25,15 @@ import React, { useEffect, useState, memo } from 'react';
25
25
  import Calendar from 'react-calendar';
26
26
  import 'react-calendar/dist/Calendar.css';
27
27
  import Box from '@mui/material/Box';
28
+ import InputAdornment from '@mui/material/InputAdornment';
28
29
  import { styled } from '@mui/material/styles';
29
30
  import Divider from '@mui/material/Divider';
30
31
  import Collapse from '../Collapse';
31
32
  import Icon from '../Icon';
33
+ import Input from '../TextField';
32
34
  import { ICONS_NAMES } from '../../constants';
33
35
  import { convertToEnglishDateFormat, getEighteenYearsAgo, scrollDown, scrollUp } from '../../utils';
34
36
  import { EndAdornmentExpanded } from '../../features/shared/EndAdornment';
35
- import Input from '../Input';
36
37
  import Text from '../Text';
37
38
  import './customStyle.css';
38
39
  var ContainerIcon = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
@@ -44,14 +45,16 @@ var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !
44
45
  return ({
45
46
  cursor: disabled ? 'auto' : 'pointer',
46
47
  opacity: disabled ? '0.6' : '1',
47
- fontFamily: theme.typography.fontFamily
48
+ fontFamily: theme.typography.fontFamily,
49
+ margin: theme.spacing(0, 3, 0, 3)
48
50
  });
49
51
  });
50
52
  var InputFieldStyled = styled(Input)(function (_a) {
51
53
  var theme = _a.theme, disabled = _a.disabled;
52
54
  return ({
53
55
  cursor: disabled ? 'auto' : 'pointer',
54
- '&::placeholder': __assign(__assign({ opacity: 1, color: theme.palette.text.primary, lineHeight: theme.spacing(2.125) }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight }),
56
+ width: '100%',
57
+ direction: theme.direction,
55
58
  '& .MuiInputBase-input': {
56
59
  WebkitTextFillColor: 'inherit',
57
60
  cursor: disabled ? 'auto' : 'pointer'
@@ -67,7 +70,7 @@ var ArrowIcon = styled(Text, { shouldForwardProp: function (prop) { return prop
67
70
  });
68
71
  });
69
72
  var DatePicker = function (_a) {
70
- var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, isDob = _a.isDob, isVerified = _a.isVerified, open = _a.open, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue", "isDob", "isVerified", "open"]);
73
+ var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, isDob = _a.isDob, isVerified = _a.isVerified, open = _a.open, label = _a.label, required = _a.required, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue", "isDob", "isVerified", "open", "label", "required"]);
71
74
  var _b = useState(), date = _b[0], setDate = _b[1];
72
75
  var _c = React.useState(null), anchor = _c[0], setAnchor = _c[1];
73
76
  var _d = React.useState(open), openCalender = _d[0], setOpenCalender = _d[1];
@@ -103,9 +106,12 @@ var DatePicker = function (_a) {
103
106
  return '';
104
107
  return _jsx(EndAdornmentExpanded, { isVerified: isVerified, anchorEl: anchor });
105
108
  };
106
- return (_jsxs(Container, __assign({ disabled: disabled, id: 'container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: getEndAdornment() })), value: date ? convertToEnglishDateFormat(date) : '', placeholder: 'YYYY-MM-DD', onClick: function (e) {
109
+ return (_jsxs(Container, __assign({ disabled: disabled, id: 'container-calendar' }, { children: [_jsx(InputFieldStyled, { label: label, required: required, InputProps: {
110
+ endAdornment: _jsx(InputAdornment, __assign({ position: 'end' }, { children: calenderIcon })),
111
+ readOnly: readOnly
112
+ }, value: date ? convertToEnglishDateFormat(date) : '', placeholder: 'YYYY-MM-DD', onClick: function (e) {
107
113
  if (!disabled)
108
114
  toggleCalender(e);
109
- }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({}, rest, { value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: rest.maxDate || defaultMax, minDate: rest.minDate || defaultMin })), _jsx(Divider, {})] }))] })));
115
+ }, disabled: disabled, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({}, rest, { value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: rest.maxDate || defaultMax, minDate: rest.minDate || defaultMin })), _jsx(Divider, {})] }))] })));
110
116
  };
111
117
  export default memo(DatePicker);
@@ -6,6 +6,7 @@
6
6
  width: 100%;
7
7
  border: none;
8
8
  padding: 15px 0px 15px 0px;
9
+ margin-top: -5px;
9
10
  }
10
11
 
11
12
  .react-calendar__navigation {
@@ -10,15 +10,18 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { styled } from '@mui/material/styles';
14
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
15
- var ExpandIcon = styled(ExpandMoreIcon, { shouldForwardProp: function (prop) { return prop !== 'anchorEl'; } })(function (_a) {
13
+ import { styled, useTheme } from '@mui/material/styles';
14
+ import { ICONS_NAMES } from '../../constants';
15
+ import Icon from '../Icon';
16
+ var ExpandIcon = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'anchorEl'; } })(function (_a) {
16
17
  var _b;
17
18
  var theme = _a.theme, anchorEl = _a.anchorEl;
18
- return (__assign(__assign({}, theme.typography.h6), (_b = { display: 'flex', cursor: 'pointer', width: theme.spacing(2.25), height: theme.spacing(2.25), transform: !!anchorEl ? 'rotate(180deg)' : '' }, _b[theme.transitions.create(['transform'])] = {
19
+ return (__assign(__assign({}, theme.typography.h6), (_b = { display: 'flex', cursor: 'pointer', width: theme.spacing(1.75), height: theme.spacing(1.75), transform: !!anchorEl ? 'rotate(180deg)' : '' }, _b[theme.transitions.create(['transform'])] = {
19
20
  duration: theme.transitions.duration.standard
20
21
  }, _b)));
21
22
  });
22
23
  export default function CustomExpandIcon(props) {
23
- return _jsx(ExpandIcon, __assign({}, props));
24
+ var theme = useTheme();
25
+ var url = theme.palette.mode === 'dark' ? ICONS_NAMES.expand_more_dark : ICONS_NAMES.expand_more_light;
26
+ return _jsx(ExpandIcon, __assign({ src: url }, props));
24
27
  }