@eka-care/abha-stg 0.0.41 → 0.1.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 (119) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc +29 -0
  3. package/.prettierrc +7 -0
  4. package/.turbo/daemon/da13e0828a6aedf8-turbo.log.2025-10-30 +0 -0
  5. package/{dist/index.html → index.html} +1 -2
  6. package/package/styles/pds2/border.ts +69 -0
  7. package/package/styles/pds2/colors.ts +70 -0
  8. package/package/styles/pds2/spacing.ts +1007 -0
  9. package/package/tailwind/tailwind.config.ts +124 -0
  10. package/package.json +9 -8
  11. package/postcss.config.js +6 -0
  12. package/scripts/build-purged-css.cjs +70 -0
  13. package/src/App.css +0 -0
  14. package/src/App.tsx +43 -0
  15. package/src/api-queries/aorta-go/v3/get-profile-patient.ts +32 -0
  16. package/src/api-queries/aorta-go/v3/get-profiles-phr-user.ts +26 -0
  17. package/src/api-queries/aorta-go/v3/post-auth-init-v2.ts +34 -0
  18. package/src/api-queries/aorta-go/v3/post-auth-logout-v2.ts +32 -0
  19. package/src/api-queries/aorta-go/v3/post-auth-verify-v2.ts +38 -0
  20. package/src/api-queries/aorta-go/v3/post-profile-switch.ts +39 -0
  21. package/src/api-queries/ndhm/get-abdm-register-suggest.ts +37 -0
  22. package/src/api-queries/ndhm/get-pincode-details.ts +28 -0
  23. package/src/api-queries/ndhm/post-abdm-login-init.ts +37 -0
  24. package/src/api-queries/ndhm/post-abdm-login-phr.ts +37 -0
  25. package/src/api-queries/ndhm/post-abdm-login-verify.ts +37 -0
  26. package/src/api-queries/ndhm/post-abdm-profile-eka-link-phr.ts +40 -0
  27. package/src/api-queries/ndhm/post-abdm-profile-eka.ts +66 -0
  28. package/src/api-queries/ndhm/post-abdm-register-abha-number-create-phr.ts +37 -0
  29. package/src/api-queries/ndhm/post-abdm-register-mobile-create-phr.ts +66 -0
  30. package/src/api-queries/ndhm/post-abdm-register-mobile-resend-otp.ts +32 -0
  31. package/src/api-queries/ndhm/post-abdm-register-mobile-verify.ts +38 -0
  32. package/src/api-queries/ndhm/post-abdm-register-phr-check.ts +34 -0
  33. package/src/api-queries/ndhm/post-register-aadhaar-create-phr.ts +37 -0
  34. package/src/api-queries/ndhm/post-register-aadhaar-init.ts +34 -0
  35. package/src/api-queries/ndhm/post-register-aadhaar-mobile-resend-otp.ts +34 -0
  36. package/src/api-queries/ndhm/post-register-aadhaar-mobile-verify.ts +37 -0
  37. package/src/api-queries/ndhm/post-register-aadhaar-resend-otp.ts +34 -0
  38. package/src/api-queries/ndhm/post-register-aadhaar-verify.ts +40 -0
  39. package/src/api-queries/ndhm/post-register-mobile-init.ts +34 -0
  40. package/src/api-queries/use-get-profiles-patient.ts +12 -0
  41. package/src/api-queries/use-get-profiles-phr-user.ts +28 -0
  42. package/src/api-queries/use-post-abdm-login-verify-v1.ts +26 -0
  43. package/src/api-queries/use-post-auth-verify-v2.ts +50 -0
  44. package/src/api-queries/use-post-profile-switch.ts +58 -0
  45. package/src/api-queries/use-post-register-mobile-create-phr.ts +39 -0
  46. package/src/api-queries/user-post-abdm-profile-login-phr.ts +26 -0
  47. package/src/assets/Success.json +1 -0
  48. package/src/assets/react.svg +1 -0
  49. package/src/atoms/button/custom-button.tsx +32 -0
  50. package/src/atoms/button/index.tsx +40 -0
  51. package/src/atoms/button/types.d.ts +31 -0
  52. package/src/atoms/header.tsx +25 -0
  53. package/src/atoms/input-field/index.tsx +63 -0
  54. package/src/atoms/input-field/patient-input-field.tsx +16 -0
  55. package/src/atoms/input-field/types.ts +24 -0
  56. package/src/atoms/pds2-otp-input/index.tsx +35 -0
  57. package/src/atoms/pds2-otp-input/types.d.ts +3 -0
  58. package/src/atoms/single-input-chip/index.tsx +32 -0
  59. package/src/atoms/single-input-chip/types.ts +6 -0
  60. package/src/atoms/spinner.tsx +33 -0
  61. package/src/atoms/text-separator.tsx +11 -0
  62. package/src/atoms/ui/spinner.tsx +75 -0
  63. package/src/constants/constants.ts +376 -0
  64. package/src/fetch-client/index.ts +164 -0
  65. package/src/index.css +152 -0
  66. package/src/main.tsx +374 -0
  67. package/src/molecules/abha/bottom-sheet/bottom-sheet-wrapper.tsx +40 -0
  68. package/src/molecules/abha/bottom-sheet/index.tsx +66 -0
  69. package/src/molecules/abha/spaced-input-component.tsx +168 -0
  70. package/src/molecules/copyright-year.tsx +16 -0
  71. package/src/molecules/exit-popup/index.tsx +101 -0
  72. package/src/molecules/pds2-otp-component/index.tsx +147 -0
  73. package/src/organisms/abha/abha-header.tsx +25 -0
  74. package/src/organisms/abha/abha-stepper.tsx +83 -0
  75. package/src/organisms/abha/error-bottom-sheet.tsx +27 -0
  76. package/src/organisms/abha/otp-card.tsx +99 -0
  77. package/src/organisms/abha/verification-status.tsx +30 -0
  78. package/src/organisms/choose-language/choose-language.tsx +53 -0
  79. package/src/organisms/choose-language/types.ts +10 -0
  80. package/src/organisms/screen-switcher/screen-switcher.tsx +80 -0
  81. package/src/routes/abha-aadhaar-verification-status-screen.tsx +246 -0
  82. package/src/routes/abha-created-screen.tsx +45 -0
  83. package/src/routes/abha-login-otp-verify-screen.tsx +519 -0
  84. package/src/routes/abha-mobile-linking-status-screen.tsx +267 -0
  85. package/src/routes/abha-otp-and-mobile-screen.tsx +435 -0
  86. package/src/routes/abha-phone-number-verification-screen.tsx +388 -0
  87. package/src/routes/create-abha-address-screen.tsx +928 -0
  88. package/src/routes/create-abha-with-aadhaar-screen.tsx +986 -0
  89. package/src/routes/create-eka-profile-screen.tsx +831 -0
  90. package/src/routes/get-all-profiles-screen.tsx +161 -0
  91. package/src/routes/login-or-create-abha-address-screen.tsx +1056 -0
  92. package/src/routes/login-with-abha-screen.tsx +454 -0
  93. package/src/routes/select-abha-from-list-screen.tsx +792 -0
  94. package/src/routes/select-eka-profile-screen.tsx +446 -0
  95. package/src/routes/utils/trackAbhaEvent.ts +41 -0
  96. package/src/stores/auth-abha-store/index.ts +152 -0
  97. package/src/stores/auth-abha-store/types.ts +217 -0
  98. package/src/utils/mock-auth-response.ts +29 -0
  99. package/src/utils/send-event-utils.ts +76 -0
  100. package/src/utils/validations.ts +89 -0
  101. package/src/vite-env.d.ts +1 -0
  102. package/tailwind.config.ts +9 -0
  103. package/tsconfig.json +25 -0
  104. package/tsconfig.node.json +10 -0
  105. package/tsconfig.node.tsbuildinfo +1 -0
  106. package/tsconfig.tsbuildinfo +1 -0
  107. package/vite.config.d.ts +2 -0
  108. package/vite.config.js +45 -0
  109. package/vite.config.ts +50 -0
  110. package/dist/sdk/abha/css/abha.css +0 -1
  111. package/dist/sdk/abha/js/abha.js +0 -146
  112. /package/{dist → public}/images/adhaar.webp +0 -0
  113. /package/{dist → public}/images/at-the-rate.webp +0 -0
  114. /package/{dist → public}/images/avatar.webp +0 -0
  115. /package/{dist → public}/images/ayushman-bharat.webp +0 -0
  116. /package/{dist → public}/images/circle-checkmark.webp +0 -0
  117. /package/{dist → public}/images/link-abha.webp +0 -0
  118. /package/{dist → public}/images/national-authority.webp +0 -0
  119. /package/{dist → public}/images/three-dots.webp +0 -0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes