@opexa/portal-components 0.0.154 → 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.
Files changed (68) hide show
  1. package/dist/components/AccountVerification/AccountVerification.js +1 -5
  2. package/dist/components/KYC/AutoOpen.d.ts +1 -0
  3. package/dist/components/KYC/AutoOpen.js +25 -0
  4. package/dist/components/KYC/BasicInformation.js +6 -4
  5. package/dist/components/KYC/FileUpload.js +29 -3
  6. package/dist/components/KYC/KYC.js +2 -1
  7. package/dist/components/KYC/KYC.lazy.js +3 -26
  8. package/dist/components/KYC/useKYC.d.ts +1 -0
  9. package/dist/components/KYC/useKYC.js +8 -0
  10. package/dist/components/Messages/Message.js +8 -10
  11. package/dist/components/Messages/MessageContext.d.ts +1 -1
  12. package/dist/components/Messages/MessageContext.js +1 -1
  13. package/dist/components/Messages/MessagePopup.d.ts +1 -1
  14. package/dist/components/Messages/MessagePopup.js +7 -11
  15. package/dist/components/Quests/CountdownTimer.d.ts +15 -0
  16. package/dist/components/Quests/CountdownTimer.js +33 -0
  17. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
  18. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
  19. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  20. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
  21. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
  22. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
  23. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
  24. package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
  25. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
  26. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
  27. package/dist/components/SignUp/SignUpForm.js +0 -4
  28. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  29. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  30. package/dist/ui/Badge/Badge.d.ts +12 -12
  31. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  32. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  33. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  34. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  35. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  36. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  37. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  38. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  39. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  40. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  41. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  42. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  43. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  44. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  45. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  46. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  47. package/dist/ui/Menu/Menu.d.ts +90 -90
  48. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  49. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  50. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  51. package/dist/ui/Progress/Progress.d.ts +27 -27
  52. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  53. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  54. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  55. package/dist/ui/Select/Select.d.ts +45 -45
  56. package/dist/ui/Select/select.recipe.d.ts +3 -3
  57. package/dist/ui/Table/Table.d.ts +21 -21
  58. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  59. package/dist/ui/Table/table.recipe.d.ts +3 -3
  60. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  61. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  62. package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
  63. package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
  64. package/dist/utils/dataUrlToBlob.d.ts +1 -0
  65. package/dist/utils/dataUrlToBlob.js +11 -0
  66. package/dist/utils/resizeImageSize.d.ts +2 -0
  67. package/dist/utils/resizeImageSize.js +11 -0
  68. 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" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
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" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>;
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,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.154",
3
+ "version": "0.0.155",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",