mainstack-payments 0.0.0

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 (55) hide show
  1. package/.env.sample +1 -0
  2. package/.eslintignore +5 -0
  3. package/.eslintrc.json +95 -0
  4. package/.github/PULL_REQUEST_TEMPLATE.md +15 -0
  5. package/.husky/commit-msg +4 -0
  6. package/.husky/pre-commit +6 -0
  7. package/.prettierignore +7 -0
  8. package/.prettierrc +9 -0
  9. package/.vscode/extensions.json +10 -0
  10. package/README.md +113 -0
  11. package/build/_redirects +1 -0
  12. package/build/mainstack-payments.js +97183 -0
  13. package/build/manifest.json +15 -0
  14. package/build/robots.txt +3 -0
  15. package/build/style.css +6 -0
  16. package/build/vite.svg +1 -0
  17. package/commitlint.config.cjs +1 -0
  18. package/index.html +31 -0
  19. package/package.json +86 -0
  20. package/public/_redirects +1 -0
  21. package/public/manifest.json +15 -0
  22. package/public/robots.txt +3 -0
  23. package/public/vite.svg +1 -0
  24. package/src/api/config.ts +36 -0
  25. package/src/api/index.ts +84 -0
  26. package/src/app.tsx +39 -0
  27. package/src/assets/images/tired-emoji.png +0 -0
  28. package/src/assets/styles/index.css +26 -0
  29. package/src/assets/themes/baseThemes.ts +30 -0
  30. package/src/components/CheckoutForm.tsx +426 -0
  31. package/src/components/DrawerModal.tsx +63 -0
  32. package/src/components/Payment.tsx +772 -0
  33. package/src/components/PaystackPaymentErrorModal.tsx +120 -0
  34. package/src/components/PaystackPaymentModal.tsx +120 -0
  35. package/src/components/WalletPay.tsx +160 -0
  36. package/src/constants/index.ts +3 -0
  37. package/src/enums/currenciesEnums.ts +7 -0
  38. package/src/hooks/usePayment.ts +60 -0
  39. package/src/index.ts +3 -0
  40. package/src/pages/Home.tsx +97 -0
  41. package/src/pages/Index.tsx +23 -0
  42. package/src/pages/Login.tsx +13 -0
  43. package/src/pages/Page404.tsx +13 -0
  44. package/src/pages/PaymentRedirect.tsx +15 -0
  45. package/src/routes/index.tsx +8 -0
  46. package/src/types/index.ts +48 -0
  47. package/src/utils/countries-flag.json +1752 -0
  48. package/src/utils/countries_flag.json +1502 -0
  49. package/src/utils/countries_with_flags_and_currencies.json +4004 -0
  50. package/src/utils/formatUnderscoreText.ts +5 -0
  51. package/src/utils/index.ts +4 -0
  52. package/src/utils/stringifyPrice.ts +37 -0
  53. package/src/utils/validations.ts +44 -0
  54. package/tsconfig.json +35 -0
  55. package/vite.config.ts +36 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "short_name": "Mainstack Template",
3
+ "name": "This is a template to build mainstack app going forward",
4
+ "icons": [
5
+ {
6
+ "src": "vite.svg",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon"
9
+ }
10
+ ],
11
+ "start_url": ".",
12
+ "display": "standalone",
13
+ "theme_color": "#000000",
14
+ "background_color": "#ffffff"
15
+ }
@@ -0,0 +1,3 @@
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
3
+ Disallow: