@opexa/portal-components 0.0.153 → 0.0.155
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.
- package/dist/components/AccountVerification/AccountVerification.js +1 -5
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +8 -1
- package/dist/components/KYC/AutoOpen.d.ts +1 -0
- package/dist/components/KYC/AutoOpen.js +25 -0
- package/dist/components/KYC/BasicInformation.js +6 -4
- package/dist/components/KYC/FileUpload.js +29 -3
- package/dist/components/KYC/KYC.js +2 -1
- package/dist/components/KYC/KYC.lazy.js +3 -26
- package/dist/components/KYC/useKYC.d.ts +1 -0
- package/dist/components/KYC/useKYC.js +8 -0
- package/dist/components/Messages/Message.js +8 -10
- package/dist/components/Messages/MessageContext.d.ts +1 -1
- package/dist/components/Messages/MessageContext.js +1 -1
- package/dist/components/Messages/MessagePopup.d.ts +1 -1
- package/dist/components/Messages/MessagePopup.js +7 -11
- package/dist/components/Messages/MessagesPopup.js +10 -2
- package/dist/components/Quests/CountdownTimer.d.ts +15 -0
- package/dist/components/Quests/CountdownTimer.js +33 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
- package/dist/components/SignUp/SignUpForm.js +0 -4
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +45 -45
- package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +90 -90
- package/dist/ui/Menu/menu.recipe.d.ts +5 -5
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
- package/dist/utils/dataUrlToBlob.d.ts +1 -0
- package/dist/utils/dataUrlToBlob.js +11 -0
- package/dist/utils/resizeImageSize.d.ts +2 -0
- package/dist/utils/resizeImageSize.js +11 -0
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
2
2
|
[key: string]: {
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
content?: import("tailwind-variants").ClassValue;
|
|
5
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
5
6
|
arrow?: import("tailwind-variants").ClassValue;
|
|
6
7
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
7
|
-
trigger?: import("tailwind-variants").ClassValue;
|
|
8
8
|
positioner?: import("tailwind-variants").ClassValue;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -12,20 +12,20 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
[x: string]: {
|
|
13
13
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
14
|
content?: import("tailwind-variants").ClassValue;
|
|
15
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
15
16
|
arrow?: import("tailwind-variants").ClassValue;
|
|
16
17
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
17
|
-
trigger?: import("tailwind-variants").ClassValue;
|
|
18
18
|
positioner?: import("tailwind-variants").ClassValue;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
} | {}, Record<"content" | "
|
|
21
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
22
22
|
[key: string]: {
|
|
23
23
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
24
|
content?: import("tailwind-variants").ClassValue;
|
|
25
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
25
26
|
arrow?: import("tailwind-variants").ClassValue;
|
|
26
27
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
27
|
-
trigger?: import("tailwind-variants").ClassValue;
|
|
28
28
|
positioner?: import("tailwind-variants").ClassValue;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
} | {}, Record<"content" | "
|
|
31
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", 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,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
|
+
});
|