@opexa/portal-components 0.0.831 → 0.0.833

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 (90) hide show
  1. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
  2. package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
  3. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .d.ts +1 -0
  4. package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .js +191 -0
  5. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Confirmed.d.ts +1 -0
  6. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Confirmed.js +11 -0
  7. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Failed.d.ts +1 -0
  8. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Failed.js +11 -0
  9. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Form.d.ts +1 -0
  10. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Form.js +126 -0
  11. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/GeneratingQrCode.d.ts +1 -0
  12. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/GeneratingQrCode.js +10 -0
  13. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDeposit.d.ts +1 -0
  14. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDeposit.js +12 -0
  15. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.d.ts +17 -0
  16. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.js +2 -0
  17. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QrCodeGenerated.d.ts +1 -0
  18. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QrCodeGenerated.js +41 -0
  19. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.d.ts +13 -0
  20. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.js +91 -0
  21. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  22. package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  23. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  24. package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  25. package/dist/components/GamesSearch/GamesSearch.js +1 -0
  26. package/dist/components/KYC/KYCSumsub.d.ts +0 -1
  27. package/dist/components/KYC/KYCSumsub.js +5 -5
  28. package/dist/components/KYC/KYCVerificationStatus.lazy.js +4 -7
  29. package/dist/components/KYC/KycOpenOnHomeMount.d.ts +1 -0
  30. package/dist/components/KYC/KycOpenOnHomeMount.js +5 -1
  31. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  32. package/dist/components/Search/Search.lazy.js +1 -0
  33. package/dist/icons/LinkBrokenIcon.d.ts +2 -0
  34. package/dist/icons/LinkBrokenIcon.js +4 -0
  35. package/dist/ui/Avatar/Avatar.d.ts +9 -9
  36. package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
  37. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  38. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  39. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  40. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  41. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  42. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  43. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  44. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  45. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  46. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  47. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  48. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  49. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  50. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  51. package/dist/ui/Menu/Menu.d.ts +144 -144
  52. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  53. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  54. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  55. package/dist/ui/Popover/Popover.d.ts +154 -154
  56. package/dist/ui/Popover/popover.recipe.d.ts +14 -14
  57. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  58. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  59. package/dist/ui/Select/Select.d.ts +45 -45
  60. package/dist/ui/Select/select.recipe.d.ts +3 -3
  61. package/dist/ui/Table/Table.d.ts +21 -21
  62. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  63. package/dist/ui/Table/table.recipe.d.ts +3 -3
  64. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  65. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  66. package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
  67. package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
  68. package/package.json +1 -1
  69. package/dist/components/Banner/Banner.client.d.ts +0 -12
  70. package/dist/components/Banner/Banner.client.js +0 -49
  71. package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +0 -1
  72. package/dist/components/PortalProvider/AndroidOnlyComponents.js +0 -12
  73. package/dist/components/SignIn/utils.d.ts +0 -8
  74. package/dist/components/SignIn/utils.js +0 -26
  75. package/dist/constants/Branches.d.ts +0 -2
  76. package/dist/constants/Branches.js +0 -42
  77. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  78. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  79. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  80. package/dist/third-parties/FacebookPixel/api.js +0 -1
  81. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  82. package/dist/third-parties/FacebookPixel/index.js +0 -1
  83. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  84. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  85. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  86. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  87. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  88. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  89. package/dist/third-parties/index.d.ts +0 -2
  90. package/dist/third-parties/index.js +0 -2
@@ -3,9 +3,9 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  content?: import("tailwind-variants").ClassValue;
5
5
  trigger?: import("tailwind-variants").ClassValue;
6
+ positioner?: import("tailwind-variants").ClassValue;
6
7
  arrow?: import("tailwind-variants").ClassValue;
7
8
  arrowTip?: import("tailwind-variants").ClassValue;
8
- positioner?: import("tailwind-variants").ClassValue;
9
9
  };
10
10
  };
11
11
  } | {
@@ -13,19 +13,19 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
13
13
  [x: string]: import("tailwind-variants").ClassValue | {
14
14
  content?: import("tailwind-variants").ClassValue;
15
15
  trigger?: import("tailwind-variants").ClassValue;
16
+ positioner?: import("tailwind-variants").ClassValue;
16
17
  arrow?: import("tailwind-variants").ClassValue;
17
18
  arrowTip?: import("tailwind-variants").ClassValue;
18
- positioner?: import("tailwind-variants").ClassValue;
19
19
  };
20
20
  };
21
- } | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
21
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
22
22
  [key: string]: {
23
23
  [key: string]: import("tailwind-variants").ClassValue | {
24
24
  content?: import("tailwind-variants").ClassValue;
25
25
  trigger?: import("tailwind-variants").ClassValue;
26
+ positioner?: import("tailwind-variants").ClassValue;
26
27
  arrow?: import("tailwind-variants").ClassValue;
27
28
  arrowTip?: import("tailwind-variants").ClassValue;
28
- positioner?: import("tailwind-variants").ClassValue;
29
29
  };
30
30
  };
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>>;
31
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.831",
3
+ "version": "0.0.833",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",
@@ -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
- }
@@ -1 +0,0 @@
1
- export declare function AndroidOnlyComponents(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,12 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Capacitor } from '@capacitor/core';
4
- import { AndroidRoutingHandler } from './AndroidRoutingHandler.js';
5
- import PushNotification from './PushNotifications.js';
6
- export function AndroidOnlyComponents() {
7
- const platform = Capacitor.getPlatform();
8
- const isNative = platform === 'android' || platform === 'ios';
9
- if (!isNative)
10
- return null;
11
- return (_jsxs(_Fragment, { children: [_jsx(PushNotification, {}), _jsx(AndroidRoutingHandler, {})] }));
12
- }
@@ -1,8 +0,0 @@
1
- type Options = {
2
- accountName?: string;
3
- siteName?: string;
4
- signInOptions?: 'MOBILE_NUMBER' | 'NAME_AND_PASSWORD';
5
- };
6
- export type ErrorCode = 'MEMBER_ACCOUNT_BLACKLISTED' | 'MEMBER_ACCOUNT_SUSPENDED' | 'INVALID_RECAPTCHA_RESPONSE' | 'MEMBER_NOT_FOUND' | 'RATE_LIMIT_REACH' | 'NOT_READY_TO_SEND_VERIFICATION_ERROR' | 'Forbidden';
7
- export declare function getFriendlyErrorMessage(code: ErrorCode, options?: Options): string;
8
- export {};
@@ -1,26 +0,0 @@
1
- export function getFriendlyErrorMessage(code, options) {
2
- const accountName = options?.accountName ?? '';
3
- const siteName = options?.siteName ?? '';
4
- const signInOptions = options?.signInOptions ?? 'NAME_AND_PASSWORD';
5
- switch (code) {
6
- case 'MEMBER_ACCOUNT_BLACKLISTED':
7
- return `Your account ${accountName} has been blacklisted due to a serious violation of our policies. For more information or to appeal, please contact the ${siteName} Chat Support team.`;
8
- case 'MEMBER_ACCOUNT_SUSPENDED':
9
- return `Your account ${accountName} has been temporarily suspended. Please reach out to the ${siteName} Chat Support team to learn more and get help with resolving the issue.`;
10
- case 'INVALID_RECAPTCHA_RESPONSE':
11
- return 'Invalid reCAPTCHA response';
12
- case 'MEMBER_NOT_FOUND':
13
- return 'Account not found. Please check your username and try again.';
14
- case 'RATE_LIMIT_REACH':
15
- return 'Rate limit exceeded';
16
- case 'NOT_READY_TO_SEND_VERIFICATION_ERROR':
17
- return 'Your account is not ready to send verification requests. Please try again later.';
18
- case 'Forbidden':
19
- if (signInOptions === 'MOBILE_NUMBER') {
20
- return 'Invalid verification code. Please check the code and try again.';
21
- }
22
- return 'Invalid username or password, please try again.';
23
- default:
24
- return 'Something went wrong. Please try again later.';
25
- }
26
- }
@@ -1,2 +0,0 @@
1
- import type { Branch } from '../types';
2
- export declare const BRANCHES: Branch[];
@@ -1,42 +0,0 @@
1
- export const BRANCHES = [
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,4 +0,0 @@
1
- export interface FacebookPixelProps {
2
- fbId: string;
3
- }
4
- export declare function FacebookPixel(props: FacebookPixelProps): null;
@@ -1,4 +0,0 @@
1
- export function FacebookPixel(props) {
2
- console.log(props);
3
- return null;
4
- }
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- export * from './FacebookPixel';
@@ -1 +0,0 @@
1
- export * from './FacebookPixel.js';
@@ -1,4 +0,0 @@
1
- export interface GoogleRecaptchaProps {
2
- siteKey: string;
3
- }
4
- export declare function GoogleRecaptcha(props: GoogleRecaptchaProps): null;
@@ -1,4 +0,0 @@
1
- export function GoogleRecaptcha(props) {
2
- console.log(props);
3
- return null;
4
- }
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- export * from './GoogleRecaptcha';
@@ -1 +0,0 @@
1
- export * from './GoogleRecaptcha.js';
@@ -1,2 +0,0 @@
1
- export * from './FacebookPixel';
2
- export * from './GoogleRecaptcha';
@@ -1,2 +0,0 @@
1
- export * from './FacebookPixel/index.js';
2
- export * from './GoogleRecaptcha/index.js';