@opexa/portal-components 0.0.242 → 0.0.244

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 (70) hide show
  1. package/dist/client/hooks/useCamera.d.ts +6 -1
  2. package/dist/client/hooks/useCamera.js +70 -16
  3. package/dist/client/hooks/useFeatureFlag.d.ts +18 -5
  4. package/dist/client/hooks/useFeatureFlag.js +44 -11
  5. package/dist/components/KYC/AutoOpen.js +8 -3
  6. package/dist/components/PortalProvider/FeatureFlag.d.ts +1 -0
  7. package/dist/components/PortalProvider/FeatureFlag.js +34 -0
  8. package/dist/components/PortalProvider/PortalProvider.js +2 -1
  9. package/dist/components/SignIn/MobileNumberSignIn.js +4 -2
  10. package/dist/components/SignIn/NameAndPasswordSignIn.js +3 -2
  11. package/dist/components/SignUp/SignUpForm.js +1 -2
  12. package/dist/components/shared/IdDocumentField.js +18 -27
  13. package/dist/components/shared/SelfieField.d.ts +1 -3
  14. package/dist/components/shared/SelfieField.js +119 -123
  15. package/dist/constants/StorageKey.d.ts +1 -0
  16. package/dist/constants/StorageKey.js +1 -0
  17. package/dist/services/httpRequest.js +25 -4
  18. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  19. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  20. package/package.json +9 -13
  21. package/dist/components/KYC/backup/Header.d.ts +0 -1
  22. package/dist/components/KYC/backup/Header.js +0 -8
  23. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  24. package/dist/components/KYC/backup/Indicator.js +0 -9
  25. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  26. package/dist/components/KYC/backup/KYC.js +0 -14
  27. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  28. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  29. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  30. package/dist/components/KYC/backup/KYCContext.js +0 -2
  31. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  32. package/dist/components/KYC/backup/Step1.js +0 -13
  33. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  34. package/dist/components/KYC/backup/Step2.js +0 -13
  35. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  36. package/dist/components/KYC/backup/Step3.js +0 -13
  37. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  38. package/dist/components/KYC/backup/Step4.js +0 -7
  39. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  40. package/dist/components/KYC/backup/useKYC.js +0 -8
  41. package/dist/components/KYC/loadModels.d.ts +0 -1
  42. package/dist/components/KYC/loadModels.js +0 -9
  43. package/dist/components/Messages/Message.d.ts +0 -1
  44. package/dist/components/Messages/Message.js +0 -35
  45. package/dist/components/Messages/MessageContext.d.ts +0 -6
  46. package/dist/components/Messages/MessageContext.js +0 -2
  47. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  48. package/dist/components/Messages/MessagePopup.js +0 -20
  49. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  50. package/dist/components/Messages/MessageTrigger.js +0 -19
  51. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  52. package/dist/components/Quests/CountdownTimer.js +0 -33
  53. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  54. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  55. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  56. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  57. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  58. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  59. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  60. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  61. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  62. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  63. package/dist/constants/BranchCode.d.ts +0 -4
  64. package/dist/constants/BranchCode.js +0 -42
  65. package/dist/icons/BellRingIcon.d.ts +0 -2
  66. package/dist/icons/BellRingIcon.js +0 -4
  67. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  68. package/dist/utils/dataUrlToBlob.js +0 -11
  69. package/dist/utils/resizeImageSize.d.ts +0 -2
  70. package/dist/utils/resizeImageSize.js +0 -11
@@ -1,9 +0,0 @@
1
- interface Props {
2
- questName: string;
3
- modalState: {
4
- isOpen: boolean;
5
- setIsOpen: (isOpen: boolean) => void;
6
- };
7
- }
8
- export declare function WageringQuestModal(props: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { XIcon } from '../../../icons/XIcon.js';
4
- import { Button } from '../../../ui/Button/index.js';
5
- import { Dialog } from '../../../ui/Dialog/index.js';
6
- import { Portal } from '../../../ui/Portal/index.js';
7
- export function WageringQuestModal(props) {
8
- return (_jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: props.modalState.isOpen, onOpenChange: ({ open }) => props.modalState.setIsOpen(open), closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "min-h-auto mx-auto max-w-[343px] rounded-xl px-4 pb-0 pt-5", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col space-y-5", children: [_jsx("p", { className: "text-text-primary-900 text-lg font-semibold", children: props.questName }), _jsxs("ul", { className: "text-text-tertiary-600 group list-disc text-wrap pl-4 text-sm font-normal", children: [_jsx("li", { children: "Earn extra rewards just by playing Slots, every bet counts, win or lose!" }), _jsx("li", { children: "Reach the wagering requirement in bets to complete the quest and claim your reward." })] })] }), _jsx("div", { className: "pb-4 pt-6", children: _jsx(Button, { onClick: () => props.modalState.setIsOpen(false), children: "Ok" }) })] }) })] }) }));
9
- }
@@ -1,4 +0,0 @@
1
- export declare const BRANCH_CODES: {
2
- code: string;
3
- name: string;
4
- }[];
@@ -1,42 +0,0 @@
1
- export const BRANCH_CODES = [
2
- {
3
- code: 'BRCAL',
4
- name: 'Bingo Republic 2nd floor Primark Center Deparo St., Caloocan City',
5
- },
6
- {
7
- code: 'BRNAG',
8
- name: 'Bingo Republic 3rd floor Robinsons Mall, Naga City, Camarines Sur',
9
- },
10
- {
11
- code: 'BRANT',
12
- name: 'Bingo Republic 2nd floor Robinsons Mall, San Vicente,Antique',
13
- },
14
- {
15
- code: 'BRCLA',
16
- name: 'Clark',
17
- },
18
- {
19
- code: 'BRLAG',
20
- name: 'Laguna',
21
- },
22
- {
23
- code: 'BREAS',
24
- name: 'Eastwood City, Quezon City',
25
- },
26
- {
27
- code: 'BRMAR',
28
- name: 'Bingo ng Bayan 4th floor Marikina Public Market, Marikina City',
29
- },
30
- {
31
- code: 'BRILO',
32
- name: 'Iloilo',
33
- },
34
- {
35
- code: 'BRFIM',
36
- name: 'Fisher Mall,Quezon City',
37
- },
38
- {
39
- code: 'BRCAC',
40
- name: 'Villa Caceres Hotel, Naga City,Camsur',
41
- },
42
- ];
@@ -1,2 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- export declare function BellRingIcon(props: ComponentPropsWithRef<'svg'>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export function BellRingIcon(props) {
3
- return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 25 24", fill: "none", stroke: "currentColor", ...props, children: _jsx("path", { d: "M15.5002 19C15.5002 20.6569 14.1571 22 12.5002 22C10.8434 22 9.50025 20.6569 9.50025 19M14.2968 6.23856C14.7322 5.78864 15.0002 5.17562 15.0002 4.5C15.0002 3.11929 13.881 2 12.5002 2C11.1195 2 10.0002 3.11929 10.0002 4.5C10.0002 5.17562 10.2683 5.78864 10.7037 6.23856M3.04707 8.32296C3.03272 6.87161 3.8152 5.51631 5.07928 4.80306M21.9534 8.32296C21.9678 6.87161 21.1853 5.51631 19.9212 4.80306M18.5002 11.2C18.5002 9.82087 17.8681 8.49823 16.7429 7.52304C15.6177 6.54786 14.0915 6 12.5002 6C10.9089 6 9.38283 6.54786 8.25761 7.52304C7.13239 8.49823 6.50025 9.82087 6.50025 11.2C6.50025 13.4818 5.93438 15.1506 5.22831 16.3447C4.42359 17.7056 4.02122 18.3861 4.03711 18.5486C4.05529 18.7346 4.08876 18.7933 4.23959 18.9036C4.37142 19 5.03376 19 6.35844 19H18.6421C19.9667 19 20.6291 19 20.7609 18.9036C20.9117 18.7933 20.9452 18.7346 20.9634 18.5486C20.9793 18.3861 20.5769 17.7056 19.7722 16.3447C19.0661 15.1506 18.5002 13.4818 18.5002 11.2Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
4
- }
@@ -1 +0,0 @@
1
- export declare function dataURLtoBlob(dataURL: string): Blob;
@@ -1,11 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export declare const resizeFile: (file: File) => Promise<unknown>;
2
- export declare const resizeFileBase64: (file: File) => Promise<string>;
@@ -1,11 +0,0 @@
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
- });