@opexa/portal-components 0.0.494 → 0.0.496

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 (157) hide show
  1. package/dist/components/DigitainLauncher/Loading.js +1 -1
  2. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +10 -0
  3. package/dist/components/Disclaimer/ResponsibleGaming.js +13 -0
  4. package/dist/components/Disclaimer/TermsOfUse.d.ts +11 -0
  5. package/dist/components/Disclaimer/TermsOfUse.js +13 -0
  6. package/dist/components/FeatureFlag/FeatureFlag.d.ts +1 -0
  7. package/dist/components/FeatureFlag/FeatureFlag.js +29 -0
  8. package/dist/components/FeatureFlag/index.d.ts +1 -0
  9. package/dist/components/FeatureFlag/index.js +1 -0
  10. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  11. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  12. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  13. package/dist/components/KYC/AutoOpen.d.ts +1 -0
  14. package/dist/components/KYC/AutoOpen.js +40 -0
  15. package/dist/components/KYC/BasicInformation.js +1 -1
  16. package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
  17. package/dist/components/KYC/CaptureIdDocument.js +219 -0
  18. package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
  19. package/dist/components/KYC/CaptureSelfie.js +285 -0
  20. package/dist/components/KYC/DisplayImage.d.ts +5 -0
  21. package/dist/components/KYC/DisplayImage.js +8 -0
  22. package/dist/components/KYC/FileUpload.d.ts +10 -0
  23. package/dist/components/KYC/FileUpload.js +72 -0
  24. package/dist/components/KYC/IdentityVerification.js +1 -1
  25. package/dist/components/KYC/KYC.lazy.js +1 -1
  26. package/dist/components/KYC/KYCSumsub.js +7 -2
  27. package/dist/components/KYC/NoCameraError.d.ts +7 -0
  28. package/dist/components/KYC/NoCameraError.js +6 -0
  29. package/dist/components/KYC/PersonOverlayDesktop.d.ts +7 -0
  30. package/dist/components/KYC/PersonOverlayDesktop.js +9 -0
  31. package/dist/components/KYC/PersonalInformation.js +1 -1
  32. package/dist/components/KYC/backup/Header.d.ts +1 -0
  33. package/dist/components/KYC/backup/Header.js +8 -0
  34. package/dist/components/KYC/backup/Indicator.d.ts +1 -0
  35. package/dist/components/KYC/backup/Indicator.js +9 -0
  36. package/dist/components/KYC/backup/KYC.d.ts +1 -0
  37. package/dist/components/KYC/backup/KYC.js +14 -0
  38. package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
  39. package/dist/components/KYC/backup/KYC.lazy.js +26 -0
  40. package/dist/components/KYC/backup/KYCContext.d.ts +6 -0
  41. package/dist/components/KYC/backup/KYCContext.js +2 -0
  42. package/dist/components/KYC/backup/Step1.d.ts +1 -0
  43. package/dist/components/KYC/backup/Step1.js +13 -0
  44. package/dist/components/KYC/backup/Step2.d.ts +1 -0
  45. package/dist/components/KYC/backup/Step2.js +13 -0
  46. package/dist/components/KYC/backup/Step3.d.ts +1 -0
  47. package/dist/components/KYC/backup/Step3.js +13 -0
  48. package/dist/components/KYC/backup/Step4.d.ts +1 -0
  49. package/dist/components/KYC/backup/Step4.js +7 -0
  50. package/dist/components/KYC/backup/useKYC.d.ts +10 -0
  51. package/dist/components/KYC/backup/useKYC.js +8 -0
  52. package/dist/components/KYC/loadModels.d.ts +1 -0
  53. package/dist/components/KYC/loadModels.js +9 -0
  54. package/dist/components/KYC/utils.d.ts +9 -0
  55. package/dist/components/KYC/utils.js +79 -0
  56. package/dist/components/Messages/Message.d.ts +1 -0
  57. package/dist/components/Messages/Message.js +35 -0
  58. package/dist/components/Messages/MessageContext.d.ts +6 -0
  59. package/dist/components/Messages/MessageContext.js +2 -0
  60. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  61. package/dist/components/Messages/MessagePopup.js +20 -0
  62. package/dist/components/Messages/MessageTrigger.d.ts +8 -0
  63. package/dist/components/Messages/MessageTrigger.js +19 -0
  64. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  65. package/dist/components/Quests/CountdownTimer.d.ts +15 -0
  66. package/dist/components/Quests/CountdownTimer.js +33 -0
  67. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
  68. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
  69. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  70. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
  71. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
  72. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
  73. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
  74. package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
  75. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
  76. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
  77. package/dist/components/SignUp/SignUp.lazy.d.ts +12 -0
  78. package/dist/components/SignUp/SignUp.lazy.js +18 -0
  79. package/dist/components/SignUp/SignUpContext.d.ts +6 -0
  80. package/dist/components/SignUp/SignUpContext.js +2 -0
  81. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +17 -0
  82. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +18 -0
  83. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +6 -0
  84. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +2 -0
  85. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +1 -0
  86. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +310 -0
  87. package/dist/components/SignUp/SignUpForm.d.ts +1 -0
  88. package/dist/components/SignUp/SignUpForm.js +284 -0
  89. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +1 -0
  90. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +198 -0
  91. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +1 -0
  92. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +251 -0
  93. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +10 -0
  94. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +42 -0
  95. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +7 -0
  96. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +9 -0
  97. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +1 -0
  98. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +464 -0
  99. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +11 -0
  100. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +20 -0
  101. package/dist/components/SignUp/SignUpKYC/utils.d.ts +9 -0
  102. package/dist/components/SignUp/SignUpKYC/utils.js +79 -0
  103. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +1 -0
  104. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +198 -0
  105. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +1 -0
  106. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +251 -0
  107. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +10 -0
  108. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +41 -0
  109. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +1 -0
  110. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +429 -0
  111. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +13 -0
  112. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +26 -0
  113. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +7 -0
  114. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +2 -0
  115. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +11 -0
  116. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +20 -0
  117. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  118. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  119. package/dist/components/shared/IdDocumentField.client.d.ts +25 -0
  120. package/dist/components/shared/IdDocumentField.client.js +204 -0
  121. package/dist/components/shared/IdDocumentField.d.ts +2 -0
  122. package/dist/components/shared/IdDocumentField.js +11 -0
  123. package/dist/components/shared/SelfieField.client.d.ts +20 -0
  124. package/dist/components/shared/SelfieField.client.js +327 -0
  125. package/dist/components/shared/SelfieField.d.ts +2 -0
  126. package/dist/components/shared/SelfieField.js +11 -0
  127. package/dist/constants/BranchCode.d.ts +4 -0
  128. package/dist/constants/BranchCode.js +42 -0
  129. package/dist/handlers/postTransformIdFrontImage.d.ts +3 -0
  130. package/dist/handlers/postTransformIdFrontImage.js +67 -0
  131. package/dist/handlers/postTransformSelfieImage.d.ts +3 -0
  132. package/dist/handlers/postTransformSelfieImage.js +71 -0
  133. package/dist/handlers.d.ts +43 -0
  134. package/dist/handlers.js +297 -0
  135. package/dist/icons/BellRingIcon.d.ts +2 -0
  136. package/dist/icons/BellRingIcon.js +4 -0
  137. package/dist/services/queries.js +2755 -2755
  138. package/dist/styles/theme.css +731 -731
  139. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  140. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  141. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  142. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  143. package/dist/ui/Menu/Menu.d.ts +198 -198
  144. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  145. package/dist/utils/dataUrlToBlob.d.ts +1 -0
  146. package/dist/utils/dataUrlToBlob.js +11 -0
  147. package/dist/utils/gamesAvailable3pmTo3am.d.ts +1 -0
  148. package/dist/utils/gamesAvailable3pmTo3am.js +1 -0
  149. package/dist/utils/getGameName.d.ts +1 -0
  150. package/dist/utils/getGameName.js +6 -0
  151. package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
  152. package/dist/utils/isBetween3amAnd3pm.js +5 -0
  153. package/dist/utils/resizeImageSize.d.ts +2 -0
  154. package/dist/utils/resizeImageSize.js +11 -0
  155. package/package.json +162 -162
  156. package/dist/components/Banner/Banner.client.d.ts +0 -12
  157. package/dist/components/Banner/Banner.client.js +0 -49
@@ -6,13 +6,13 @@ export declare const menuRecipe: import("tailwind-variants").TVReturnType<{
6
6
  positioner?: import("tailwind-variants").ClassValue;
7
7
  item?: import("tailwind-variants").ClassValue;
8
8
  indicator?: import("tailwind-variants").ClassValue;
9
+ separator?: import("tailwind-variants").ClassValue;
10
+ arrow?: import("tailwind-variants").ClassValue;
11
+ arrowTip?: import("tailwind-variants").ClassValue;
9
12
  itemText?: import("tailwind-variants").ClassValue;
10
13
  itemIndicator?: import("tailwind-variants").ClassValue;
11
14
  itemGroup?: import("tailwind-variants").ClassValue;
12
15
  itemGroupLabel?: import("tailwind-variants").ClassValue;
13
- arrow?: import("tailwind-variants").ClassValue;
14
- arrowTip?: import("tailwind-variants").ClassValue;
15
- separator?: import("tailwind-variants").ClassValue;
16
16
  contextTrigger?: import("tailwind-variants").ClassValue;
17
17
  triggerItem?: import("tailwind-variants").ClassValue;
18
18
  };
@@ -25,18 +25,18 @@ export declare const menuRecipe: import("tailwind-variants").TVReturnType<{
25
25
  positioner?: import("tailwind-variants").ClassValue;
26
26
  item?: import("tailwind-variants").ClassValue;
27
27
  indicator?: import("tailwind-variants").ClassValue;
28
+ separator?: import("tailwind-variants").ClassValue;
29
+ arrow?: import("tailwind-variants").ClassValue;
30
+ arrowTip?: import("tailwind-variants").ClassValue;
28
31
  itemText?: import("tailwind-variants").ClassValue;
29
32
  itemIndicator?: import("tailwind-variants").ClassValue;
30
33
  itemGroup?: import("tailwind-variants").ClassValue;
31
34
  itemGroupLabel?: import("tailwind-variants").ClassValue;
32
- arrow?: import("tailwind-variants").ClassValue;
33
- arrowTip?: import("tailwind-variants").ClassValue;
34
- separator?: import("tailwind-variants").ClassValue;
35
35
  contextTrigger?: import("tailwind-variants").ClassValue;
36
36
  triggerItem?: import("tailwind-variants").ClassValue;
37
37
  };
38
38
  };
39
- } | {}, Record<"content" | "trigger" | "positioner" | "item" | "indicator" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "arrow" | "arrowTip" | "separator" | "contextTrigger" | "triggerItem", string | string[]>, undefined, {
39
+ } | {}, Record<"content" | "trigger" | "positioner" | "item" | "indicator" | "separator" | "arrow" | "arrowTip" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "contextTrigger" | "triggerItem", string | string[]>, undefined, {
40
40
  [key: string]: {
41
41
  [key: string]: import("tailwind-variants").ClassValue | {
42
42
  content?: import("tailwind-variants").ClassValue;
@@ -44,15 +44,15 @@ export declare const menuRecipe: import("tailwind-variants").TVReturnType<{
44
44
  positioner?: import("tailwind-variants").ClassValue;
45
45
  item?: import("tailwind-variants").ClassValue;
46
46
  indicator?: import("tailwind-variants").ClassValue;
47
+ separator?: import("tailwind-variants").ClassValue;
48
+ arrow?: import("tailwind-variants").ClassValue;
49
+ arrowTip?: import("tailwind-variants").ClassValue;
47
50
  itemText?: import("tailwind-variants").ClassValue;
48
51
  itemIndicator?: import("tailwind-variants").ClassValue;
49
52
  itemGroup?: import("tailwind-variants").ClassValue;
50
53
  itemGroupLabel?: import("tailwind-variants").ClassValue;
51
- arrow?: import("tailwind-variants").ClassValue;
52
- arrowTip?: import("tailwind-variants").ClassValue;
53
- separator?: import("tailwind-variants").ClassValue;
54
54
  contextTrigger?: import("tailwind-variants").ClassValue;
55
55
  triggerItem?: import("tailwind-variants").ClassValue;
56
56
  };
57
57
  };
58
- } | {}, Record<"content" | "trigger" | "positioner" | "item" | "indicator" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "arrow" | "arrowTip" | "separator" | "contextTrigger" | "triggerItem", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "item" | "indicator" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "arrow" | "arrowTip" | "separator" | "contextTrigger" | "triggerItem", string | string[]>, undefined, unknown, unknown, undefined>>;
58
+ } | {}, Record<"content" | "trigger" | "positioner" | "item" | "indicator" | "separator" | "arrow" | "arrowTip" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "contextTrigger" | "triggerItem", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "item" | "indicator" | "separator" | "arrow" | "arrowTip" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "contextTrigger" | "triggerItem", string | string[]>, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1 @@
1
+ export declare function dataURLtoBlob(dataURL: string): Blob;
@@ -0,0 +1,11 @@
1
+ export function dataURLtoBlob(dataURL) {
2
+ const parts = dataURL.split(';base64,');
3
+ const contentType = parts[0].split(':')[1];
4
+ const raw = window.atob(parts[1]);
5
+ const rawLength = raw.length;
6
+ const uInt8Array = new Uint8Array(rawLength);
7
+ for (let i = 0; i < rawLength; ++i) {
8
+ uInt8Array[i] = raw.charCodeAt(i);
9
+ }
10
+ return new Blob([uInt8Array], { type: contentType });
11
+ }
@@ -0,0 +1 @@
1
+ export declare const GAMES_AVAILABLE_3PM_TO_3AM: string[];
@@ -0,0 +1 @@
1
+ export const GAMES_AVAILABLE_3PM_TO_3AM = ['Marble Race', 'Rainbow Ball'];
@@ -0,0 +1 @@
1
+ export declare function getGameName(reference: string, defaultName: string): string;
@@ -0,0 +1,6 @@
1
+ export function getGameName(reference, defaultName) {
2
+ if (reference === 'Hwd1wEWHU6Gvfwecuh') {
3
+ return 'Marble Speedway';
4
+ }
5
+ return defaultName;
6
+ }
@@ -0,0 +1 @@
1
+ export declare const isBetween3amAnd3pm: () => boolean;
@@ -0,0 +1,5 @@
1
+ export const isBetween3amAnd3pm = () => {
2
+ const now = new Date();
3
+ const hour = now.getHours();
4
+ return hour >= 15 || hour < 3;
5
+ };
@@ -0,0 +1,2 @@
1
+ export declare const resizeFile: (file: File) => Promise<unknown>;
2
+ export declare const resizeFileBase64: (file: File) => Promise<string>;
@@ -0,0 +1,11 @@
1
+ import Resizer from 'react-image-file-resizer';
2
+ export const resizeFile = (file) => new Promise((resolve) => {
3
+ Resizer.imageFileResizer(file, 300, 300, 'jpeg', 100, 0, (uri) => {
4
+ resolve(uri);
5
+ }, 'file');
6
+ });
7
+ export const resizeFileBase64 = (file) => new Promise((resolve) => {
8
+ Resizer.imageFileResizer(file, 1200, 300, 'WEBP', 100, 0, (uri) => {
9
+ resolve(uri);
10
+ }, 'base64');
11
+ });
package/package.json CHANGED
@@ -1,162 +1,162 @@
1
- {
2
- "name": "@opexa/portal-components",
3
- "version": "0.0.494",
4
- "exports": {
5
- "./ui/*": {
6
- "types": "./dist/ui/*/index.d.ts",
7
- "default": "./dist/ui/*/index.js"
8
- },
9
- "./utils/*": {
10
- "types": "./dist/utils/*.d.ts",
11
- "import": "./dist/utils/*.js"
12
- },
13
- "./types": {
14
- "types": "./dist/types/index.d.ts",
15
- "import": "./dist/types/index.js"
16
- },
17
- "./handlers": {
18
- "types": "./dist/handlers/index.d.ts",
19
- "default": "./dist/handlers/index.js"
20
- },
21
- "./middleware": {
22
- "types": "./dist/middleware.d.ts",
23
- "default": "./dist/middleware.js"
24
- },
25
- "./constants": {
26
- "types": "./dist/constants/index.d.ts",
27
- "default": "./dist/constants/index.js"
28
- },
29
- "./services/*": {
30
- "types": "./dist/services/*.d.ts",
31
- "default": "./dist/services/*.js"
32
- },
33
- "./client-utils/*": {
34
- "types": "./dist/client/utils/*.d.ts",
35
- "default": "./dist/client/utils/*.js"
36
- },
37
- "./client-hooks/*": {
38
- "types": "./dist/client/hooks/*.d.ts",
39
- "default": "./dist/client/hooks/*.js"
40
- },
41
- "./client-services/*": {
42
- "types": "./dist/client/services/*.d.ts",
43
- "default": "./dist/client/services/*.js"
44
- },
45
- "./server-utils/*": {
46
- "types": "./dist/server/utils/*.d.ts",
47
- "default": "./dist/server/utils/*.js"
48
- },
49
- "./server-services/*": {
50
- "types": "./dist/server/services/*.d.ts",
51
- "default": "./dist/server/services/*.js"
52
- },
53
- "./next.config": {
54
- "types": "./dist/next.config.d.ts",
55
- "default": "./dist/next.config.js"
56
- },
57
- "./theme.css": "./dist/styles/theme.css",
58
- "./*": {
59
- "types": "./dist/components/*/index.d.ts",
60
- "default": "./dist/components/*/index.js"
61
- }
62
- },
63
- "files": [
64
- "dist",
65
- "!dist/tsconfig.tsbuildinfo",
66
- "!dist/tsconfig.build.tsbuildinfo"
67
- ],
68
- "publishConfig": {
69
- "access": "public"
70
- },
71
- "scripts": {
72
- "dev": "next dev --port 4000",
73
- "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
74
- "build:app": "next build",
75
- "start": "next start",
76
- "release": "release-it"
77
- },
78
- "dependencies": {
79
- "@ark-ui/react": "^5.16.0",
80
- "@date-fns/tz": "^1.2.0",
81
- "@greatsumini/react-facebook-login": "^3.4.0",
82
- "@mediapipe/tasks-vision": "0.10.22-rc.20250304",
83
- "@next/third-parties": "^15.4.1",
84
- "@radix-ui/react-use-controllable-state": "^1.2.2",
85
- "@react-oauth/google": "^0.12.2",
86
- "@sumsub/websdk": "^2.3.18",
87
- "@sumsub/websdk-react": "^2.3.18",
88
- "@tailwindcss/typography": "^0.5.16",
89
- "date-fns": "^4.1.0",
90
- "embla-carousel-autoplay": "^8.6.0",
91
- "embla-carousel-react": "^8.6.0",
92
- "is-mobile": "^5.0.0",
93
- "lodash-es": "^4.17.21",
94
- "next-recaptcha-v3": "^1.5.2",
95
- "tailwind-merge": "^3.3.1",
96
- "tailwind-variants": "^1.0.0",
97
- "tailwind-zag": "^1.0.2",
98
- "tiny-invariant": "^1.3.3",
99
- "type-fest": "^4.41.0",
100
- "usehooks-ts": "^3.1.1",
101
- "zustand": "^5.0.6"
102
- },
103
- "devDependencies": {
104
- "@hookform/resolvers": "5.1.1",
105
- "@opexa/object-id": "0.1.6",
106
- "@tailwindcss/postcss": "4",
107
- "@tanstack/react-query": "5.83.0",
108
- "@tanstack/react-query-devtools": "5.83.0",
109
- "@total-typescript/ts-reset": "0.6.1",
110
- "@types/lodash-es": "4.17.12",
111
- "@types/node": "24",
112
- "@types/react": "19.1.8",
113
- "@types/react-dom": "19.1.6",
114
- "copy-files-from-to": "3.12.1",
115
- "next": "15.4.2-canary.0",
116
- "react": "19.1.0",
117
- "react-dom": "19.1.0",
118
- "react-hook-form": "7.60.0",
119
- "release-it": "19.0.3",
120
- "tailwindcss": "4.1.11",
121
- "tsc-alias": "1.8.16",
122
- "typescript": "5",
123
- "zod": "4.0.5"
124
- },
125
- "peerDependencies": {
126
- "@hookform/resolvers": "^4.0.0 || ^5.0.0",
127
- "@opexa/object-id": "^0.1.0",
128
- "@tanstack/react-query": "^5.0.0",
129
- "next": "^15.4.0-canary.1",
130
- "react": "^19.0.0",
131
- "react-dom": "^19.0.0",
132
- "react-hook-form": "^7.0.0",
133
- "tailwindcss": "^4.0.0",
134
- "zod": "^3.0.0"
135
- },
136
- "release-it": {
137
- "git": {
138
- "commitMessage": "chore: release ${npm.name} v${version}",
139
- "tagName": "${npm.name}@${version}"
140
- },
141
- "github": {
142
- "release": false
143
- },
144
- "hooks": {
145
- "after:bump": [
146
- "pnpm build"
147
- ]
148
- }
149
- },
150
- "copyFiles": [
151
- {
152
- "from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
153
- "to": "dist/",
154
- "toFlat": false
155
- }
156
- ],
157
- "copyFilesSettings": {
158
- "whenFileExists": "overwrite",
159
- "removeSourceMappingURL": true,
160
- "ignoreDotFilesAndFolders": false
161
- }
162
- }
1
+ {
2
+ "name": "@opexa/portal-components",
3
+ "version": "0.0.496",
4
+ "exports": {
5
+ "./ui/*": {
6
+ "types": "./dist/ui/*/index.d.ts",
7
+ "default": "./dist/ui/*/index.js"
8
+ },
9
+ "./utils/*": {
10
+ "types": "./dist/utils/*.d.ts",
11
+ "import": "./dist/utils/*.js"
12
+ },
13
+ "./types": {
14
+ "types": "./dist/types/index.d.ts",
15
+ "import": "./dist/types/index.js"
16
+ },
17
+ "./handlers": {
18
+ "types": "./dist/handlers/index.d.ts",
19
+ "default": "./dist/handlers/index.js"
20
+ },
21
+ "./middleware": {
22
+ "types": "./dist/middleware.d.ts",
23
+ "default": "./dist/middleware.js"
24
+ },
25
+ "./constants": {
26
+ "types": "./dist/constants/index.d.ts",
27
+ "default": "./dist/constants/index.js"
28
+ },
29
+ "./services/*": {
30
+ "types": "./dist/services/*.d.ts",
31
+ "default": "./dist/services/*.js"
32
+ },
33
+ "./client-utils/*": {
34
+ "types": "./dist/client/utils/*.d.ts",
35
+ "default": "./dist/client/utils/*.js"
36
+ },
37
+ "./client-hooks/*": {
38
+ "types": "./dist/client/hooks/*.d.ts",
39
+ "default": "./dist/client/hooks/*.js"
40
+ },
41
+ "./client-services/*": {
42
+ "types": "./dist/client/services/*.d.ts",
43
+ "default": "./dist/client/services/*.js"
44
+ },
45
+ "./server-utils/*": {
46
+ "types": "./dist/server/utils/*.d.ts",
47
+ "default": "./dist/server/utils/*.js"
48
+ },
49
+ "./server-services/*": {
50
+ "types": "./dist/server/services/*.d.ts",
51
+ "default": "./dist/server/services/*.js"
52
+ },
53
+ "./next.config": {
54
+ "types": "./dist/next.config.d.ts",
55
+ "default": "./dist/next.config.js"
56
+ },
57
+ "./theme.css": "./dist/styles/theme.css",
58
+ "./*": {
59
+ "types": "./dist/components/*/index.d.ts",
60
+ "default": "./dist/components/*/index.js"
61
+ }
62
+ },
63
+ "files": [
64
+ "dist",
65
+ "!dist/tsconfig.tsbuildinfo",
66
+ "!dist/tsconfig.build.tsbuildinfo"
67
+ ],
68
+ "publishConfig": {
69
+ "access": "public"
70
+ },
71
+ "scripts": {
72
+ "dev": "next dev --port 4000",
73
+ "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
74
+ "build:app": "next build",
75
+ "start": "next start",
76
+ "release": "release-it"
77
+ },
78
+ "dependencies": {
79
+ "@ark-ui/react": "^5.16.0",
80
+ "@date-fns/tz": "^1.2.0",
81
+ "@greatsumini/react-facebook-login": "^3.4.0",
82
+ "@mediapipe/tasks-vision": "0.10.22-rc.20250304",
83
+ "@next/third-parties": "^15.4.1",
84
+ "@radix-ui/react-use-controllable-state": "^1.2.2",
85
+ "@react-oauth/google": "^0.12.2",
86
+ "@sumsub/websdk": "^2.3.18",
87
+ "@sumsub/websdk-react": "^2.3.18",
88
+ "@tailwindcss/typography": "^0.5.16",
89
+ "date-fns": "^4.1.0",
90
+ "embla-carousel-autoplay": "^8.6.0",
91
+ "embla-carousel-react": "^8.6.0",
92
+ "is-mobile": "^5.0.0",
93
+ "lodash-es": "^4.17.21",
94
+ "next-recaptcha-v3": "^1.5.2",
95
+ "tailwind-merge": "^3.3.1",
96
+ "tailwind-variants": "^1.0.0",
97
+ "tailwind-zag": "^1.0.2",
98
+ "tiny-invariant": "^1.3.3",
99
+ "type-fest": "^4.41.0",
100
+ "usehooks-ts": "^3.1.1",
101
+ "zustand": "^5.0.6"
102
+ },
103
+ "devDependencies": {
104
+ "@hookform/resolvers": "5.1.1",
105
+ "@opexa/object-id": "0.1.6",
106
+ "@tailwindcss/postcss": "4",
107
+ "@tanstack/react-query": "5.83.0",
108
+ "@tanstack/react-query-devtools": "5.83.0",
109
+ "@total-typescript/ts-reset": "0.6.1",
110
+ "@types/lodash-es": "4.17.12",
111
+ "@types/node": "24",
112
+ "@types/react": "19.1.8",
113
+ "@types/react-dom": "19.1.6",
114
+ "copy-files-from-to": "3.12.1",
115
+ "next": "15.4.2-canary.0",
116
+ "react": "19.1.0",
117
+ "react-dom": "19.1.0",
118
+ "react-hook-form": "7.60.0",
119
+ "release-it": "19.0.3",
120
+ "tailwindcss": "4.1.11",
121
+ "tsc-alias": "1.8.16",
122
+ "typescript": "5",
123
+ "zod": "4.0.5"
124
+ },
125
+ "peerDependencies": {
126
+ "@hookform/resolvers": "^4.0.0 || ^5.0.0",
127
+ "@opexa/object-id": "^0.1.0",
128
+ "@tanstack/react-query": "^5.0.0",
129
+ "next": "^15.4.0-canary.1",
130
+ "react": "^19.0.0",
131
+ "react-dom": "^19.0.0",
132
+ "react-hook-form": "^7.0.0",
133
+ "tailwindcss": "^4.0.0",
134
+ "zod": "^3.0.0"
135
+ },
136
+ "release-it": {
137
+ "git": {
138
+ "commitMessage": "chore: release ${npm.name} v${version}",
139
+ "tagName": "${npm.name}@${version}"
140
+ },
141
+ "github": {
142
+ "release": false
143
+ },
144
+ "hooks": {
145
+ "after:bump": [
146
+ "pnpm build"
147
+ ]
148
+ }
149
+ },
150
+ "copyFiles": [
151
+ {
152
+ "from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
153
+ "to": "dist/",
154
+ "toFlat": false
155
+ }
156
+ ],
157
+ "copyFilesSettings": {
158
+ "whenFileExists": "overwrite",
159
+ "removeSourceMappingURL": true,
160
+ "ignoreDotFilesAndFolders": false
161
+ }
162
+ }
@@ -1,12 +0,0 @@
1
- import type { ImageProps } from 'next/image';
2
- export interface BannerEntry {
3
- src: ImageProps['src'];
4
- redirectUrl?: string;
5
- }
6
- export interface BannerProps {
7
- banners: BannerEntry[];
8
- imageWidth?: number | [mobile: number, desktop: number];
9
- imageHeight?: number | [mobile: number, desktop: number];
10
- className?: string;
11
- }
12
- export declare function Banner__client(props: BannerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,49 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import emblaCarouselAutoplay from 'embla-carousel-autoplay';
4
- import useEmblaCarousel, {} from 'embla-carousel-react';
5
- import isMobile from 'is-mobile';
6
- import Image from 'next/image';
7
- import Link from 'next/link';
8
- import { Fragment, useEffect, useState } from 'react';
9
- import { twMerge } from 'tailwind-merge';
10
- import { dataAttr } from '../../utils/dataAttr.js';
11
- export function Banner__client(props) {
12
- const [emblaRef, emblaApi] = useEmblaCarousel({
13
- loop: true,
14
- align: 'start',
15
- }, [
16
- emblaCarouselAutoplay({
17
- playOnInit: true,
18
- delay: 5000,
19
- }),
20
- ]);
21
- const [currentIndex, setCurrentIndex] = useState(0);
22
- useEffect(() => {
23
- function handler(detail) {
24
- setCurrentIndex(detail?.selectedScrollSnap() ?? 0);
25
- }
26
- emblaApi?.on('scroll', handler);
27
- emblaApi?.on('init', handler);
28
- return () => {
29
- emblaApi?.on('init', handler);
30
- emblaApi?.off('scroll', handler);
31
- };
32
- }, [emblaApi]);
33
- const imageWidth = !props.imageWidth
34
- ? [400, 1200]
35
- : Array.isArray(props.imageWidth)
36
- ? props.imageWidth
37
- : [props.imageWidth, props.imageWidth];
38
- const imageHeight = !props.imageHeight
39
- ? [225, 300]
40
- : Array.isArray(props.imageHeight)
41
- ? props.imageHeight
42
- : [props.imageHeight, props.imageHeight];
43
- return (_jsxs("div", { className: twMerge('relative', props.className), children: [_jsx("div", { ref: emblaRef, className: "overflow-hidden", children: _jsx("div", { className: "flex gap-2", children: props.banners.map((banner, index) => {
44
- const img = (_jsx(Image, { src: banner.src, alt: "", width: isMobile() ? imageWidth[0] : imageWidth[1], height: isMobile() ? imageHeight[0] : imageHeight[1], className: "block h-auto w-full", priority: index === 0 }));
45
- return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", "aria-label": `Open ${banner.redirectUrl}`, children: img })) }, index));
46
- }) }) }), _jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: props.banners.map((_, index) => (_jsx("button", { type: "button", className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9", onClick: () => {
47
- emblaApi?.scrollTo(index);
48
- }, "aria-label": `Go to slide ${index + 1}`, "data-active": dataAttr(index === currentIndex) }, index))) })] }));
49
- }