@eka-care/abdm-dashboard 0.0.22 → 0.0.23

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 (51) hide show
  1. package/eslint.config.js +23 -0
  2. package/{dist/index.html → index.html} +1 -2
  3. package/package.json +1 -1
  4. package/postcss.config.js +6 -0
  5. package/public/headerImg.png +0 -0
  6. package/public/iphoneStep2.png +0 -0
  7. package/public/iphoneStep3.png +0 -0
  8. package/public/vite.svg +1 -0
  9. package/src/abdm-dashboard.tsx +18 -0
  10. package/src/app/store.ts +15 -0
  11. package/src/appointment-token-pdf/pdf-page1.tsx +324 -0
  12. package/src/appointment-token-pdf/pdf-page2.tsx +346 -0
  13. package/src/assets/react.svg +1 -0
  14. package/src/components/abha-metric.tsx +322 -0
  15. package/src/components/abha-workflows.tsx +225 -0
  16. package/src/components/automate-strip.tsx +29 -0
  17. package/src/components/cards/metric-card.tsx +75 -0
  18. package/src/components/cards/request-card.tsx +23 -0
  19. package/src/components/cards/request-cards.tsx +24 -0
  20. package/src/components/cards/workflow-card.tsx +55 -0
  21. package/src/components/custom/calendar.tsx +59 -0
  22. package/src/components/custom/switch.tsx +32 -0
  23. package/src/components/loader/abdm-dash-loader.tsx +21 -0
  24. package/src/components/loader/card-loader.tsx +20 -0
  25. package/src/components/modal/automateTaks-modal.tsx +110 -0
  26. package/src/components/modal/modal.tsx +67 -0
  27. package/src/components/modal/select-lang-modal.tsx +38 -0
  28. package/src/components/notification-header.tsx +11 -0
  29. package/src/config/runtime-config.ts +3 -0
  30. package/src/features/api/baseApi.ts +24 -0
  31. package/src/features/cardApis/cardApi.ts +15 -0
  32. package/src/features/landingApi/landingApi.ts +20 -0
  33. package/src/features/slice/landingApiSlice.ts +49 -0
  34. package/src/features/tasksApis/taskGetApi.ts +12 -0
  35. package/src/features/tasksApis/taskUpdateApi.ts +15 -0
  36. package/src/home.tsx +132 -0
  37. package/src/index.css +297 -0
  38. package/src/main.tsx +164 -0
  39. package/src/tailwind-theme-config/pds2/border.ts +69 -0
  40. package/src/tailwind-theme-config/pds2/colors.ts +88 -0
  41. package/src/tailwind-theme-config/pds2/spacing.ts +1007 -0
  42. package/src/types/pagify-sdk.d.ts +17 -0
  43. package/src/utils/constants.ts +19 -0
  44. package/src/utils/helpers.ts +32 -0
  45. package/tailwind.config.ts +131 -0
  46. package/tsconfig.app.json +28 -0
  47. package/tsconfig.json +7 -0
  48. package/tsconfig.node.json +26 -0
  49. package/vite.config.ts +62 -0
  50. package/dist/sdk/abdm/css/abdm.css +0 -1
  51. package/dist/sdk/abdm/js/abdm.js +0 -1890
@@ -0,0 +1,23 @@
1
+ import js from '@eslint/js'
2
+ import globals from 'globals'
3
+ import reactHooks from 'eslint-plugin-react-hooks'
4
+ import reactRefresh from 'eslint-plugin-react-refresh'
5
+ import tseslint from 'typescript-eslint'
6
+ import { defineConfig, globalIgnores } from 'eslint/config'
7
+
8
+ export default defineConfig([
9
+ globalIgnores(['dist']),
10
+ {
11
+ files: ['**/*.{ts,tsx}'],
12
+ extends: [
13
+ js.configs.recommended,
14
+ tseslint.configs.recommended,
15
+ reactHooks.configs.flat.recommended,
16
+ reactRefresh.configs.vite,
17
+ ],
18
+ languageOptions: {
19
+ ecmaVersion: 2020,
20
+ globals: globals.browser,
21
+ },
22
+ },
23
+ ])
@@ -14,8 +14,6 @@
14
14
  </style>
15
15
  <script src="https://elixir-dr.dev.eka.care/pagify/main/pagify.standalone.js?v=3"></script>
16
16
  <title>abdm</title>
17
- <script type="module" crossorigin src="/sdk/abdm/js/abdm.js"></script>
18
- <link rel="stylesheet" crossorigin href="/sdk/abdm/css/abdm.css">
19
17
  </head>
20
18
  <body>
21
19
  <h1>Host Application</h1>
@@ -24,5 +22,6 @@
24
22
  <div id="abdm-root">
25
23
  Loading ABHA Dashboard...
26
24
  </div>
25
+ <script type="module" src="/src/main.tsx"></script>
27
26
  </body>
28
27
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/abdm-dashboard",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ };
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,18 @@
1
+ import { Provider } from "react-redux";
2
+ import { store } from "./app/store";
3
+ import Home from "./home";
4
+
5
+ const AbdmDashboard = ({
6
+ clinicId,
7
+ clientId,
8
+ }: {
9
+ clinicId: string;
10
+ clientId: string;
11
+ }) => {
12
+ return (
13
+ <Provider store={store}>
14
+ <Home clinicId={clinicId} clientId={clientId} />
15
+ </Provider>
16
+ );
17
+ };
18
+ export default AbdmDashboard;
@@ -0,0 +1,15 @@
1
+ import { configureStore } from "@reduxjs/toolkit";
2
+ import { baseApi } from "../features/api/baseApi";
3
+ import landingReducer from "../features/slice/landingApiSlice";
4
+
5
+ export const store = configureStore({
6
+ reducer: {
7
+ landing: landingReducer,
8
+ [baseApi.reducerPath]: baseApi.reducer,
9
+ },
10
+ middleware: (getDefaultMiddleware) =>
11
+ getDefaultMiddleware().concat(baseApi.middleware),
12
+ });
13
+
14
+ export type RootState = ReturnType<typeof store.getState>;
15
+ export type AppDispatch = typeof store.dispatch;