@opexa/portal-components 0.0.2 → 0.0.4
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/Account/Account.d.ts +12 -0
- package/dist/components/Account/Account.jsx +172 -0
- package/dist/components/Account/index.d.ts +1 -0
- package/dist/components/Account/index.js +1 -0
- package/dist/components/Banner/Banner.d.ts +11 -0
- package/dist/components/Banner/Banner.jsx +52 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/BetRecords/BetRecords.d.ts +7 -0
- package/dist/components/BetRecords/BetRecords.jsx +4 -0
- package/dist/components/BetRecords/BetRecordsContent.d.ts +2 -0
- package/dist/components/BetRecords/BetRecordsContent.jsx +413 -0
- package/dist/components/BetRecords/index.d.ts +1 -0
- package/dist/components/BetRecords/index.js +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.d.ts +11 -0
- package/dist/components/DepositWithdrawal/AmountChoices.jsx +31 -0
- package/dist/components/DepositWithdrawal/AvailablePromos.d.ts +8 -0
- package/dist/components/DepositWithdrawal/AvailablePromos.jsx +78 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +82 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +275 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +282 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.jsx +13 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +275 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +22 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.jsx +8 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +286 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +13 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +92 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +14 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +77 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +24 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.jsx +8 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +256 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +14 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +107 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +19 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +15 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +81 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +6 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +101 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +4 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +63 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +10 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.jsx +70 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -0
- package/dist/components/DepositWithdrawal/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/index.js +1 -0
- package/dist/components/DepositWithdrawal/utils.d.ts +3 -0
- package/dist/components/DepositWithdrawal/utils.js +8 -0
- package/dist/components/Disclaimer/Disclaimer.d.ts +5 -0
- package/dist/components/Disclaimer/Disclaimer.jsx +45 -0
- package/dist/components/Disclaimer/index.d.ts +1 -0
- package/dist/components/Disclaimer/index.js +1 -0
- package/dist/components/Disclaimer/useDisclaimer.d.ts +4 -0
- package/dist/components/Disclaimer/useDisclaimer.jsx +39 -0
- package/dist/components/Empty/CloudIcon.d.ts +2 -0
- package/dist/components/Empty/CloudIcon.jsx +42 -0
- package/dist/components/Empty/Empty.d.ts +9 -0
- package/dist/components/Empty/Empty.jsx +16 -0
- package/dist/components/Empty/index.d.ts +1 -0
- package/dist/components/Empty/index.js +1 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +3 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.jsx +8 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +6 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.jsx +19 -0
- package/dist/components/FeatureFlagProvider/index.d.ts +2 -0
- package/dist/components/FeatureFlagProvider/index.js +3 -0
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +8 -0
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +66 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +5 -0
- package/dist/components/GameLaunch/GameLaunch.jsx +225 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +6 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.jsx +107 -0
- package/dist/components/GameLaunch/index.d.ts +2 -0
- package/dist/components/GameLaunch/index.js +2 -0
- package/dist/components/GameProviders/GameProviders.d.ts +14 -0
- package/dist/components/GameProviders/GameProviders.jsx +3 -0
- package/dist/components/Games/Games.d.ts +10 -0
- package/dist/components/Games/Games.jsx +57 -0
- package/dist/components/Games/GamesContent.d.ts +2 -0
- package/dist/components/Games/GamesContent.jsx +138 -0
- package/dist/components/Games/index.d.ts +1 -0
- package/dist/components/Games/index.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +6 -0
- package/dist/components/JackpotCounter/JackpotCounter.jsx +61 -0
- package/dist/components/JackpotCounter/JackpotCounterContent.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounterContent.jsx +87 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +6 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +108 -0
- package/dist/components/JackpotCounter/index.d.ts +1 -0
- package/dist/components/JackpotCounter/index.js +1 -0
- package/dist/components/Marquee/Marquee.d.ts +5 -0
- package/dist/components/Marquee/Marquee.jsx +14 -0
- package/dist/components/Marquee/index.d.ts +1 -0
- package/dist/components/Marquee/index.js +1 -0
- package/dist/components/PortalProvider/PortalProvider.d.ts +2 -0
- package/dist/components/PortalProvider/PortalProvider.jsx +67 -0
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.jsx +49 -0
- package/dist/components/PortalProvider/index.d.ts +1 -0
- package/dist/components/PortalProvider/index.js +1 -0
- package/dist/components/Promo/Promo.d.ts +4 -0
- package/dist/components/Promo/Promo.jsx +50 -0
- package/dist/components/Promo/PromoContent.d.ts +2 -0
- package/dist/components/Promo/PromoContent.jsx +18 -0
- package/dist/components/Promo/index.d.ts +1 -0
- package/dist/components/Promo/index.js +1 -0
- package/dist/components/Promos/PromoCarousel.d.ts +2 -0
- package/dist/components/Promos/PromoCarousel.jsx +110 -0
- package/dist/components/Promos/PromoGrid.d.ts +2 -0
- package/dist/components/Promos/PromoGrid.jsx +24 -0
- package/dist/components/Promos/PromoItem.d.ts +7 -0
- package/dist/components/Promos/PromoItem.jsx +24 -0
- package/dist/components/Promos/Promos.d.ts +11 -0
- package/dist/components/Promos/Promos.jsx +57 -0
- package/dist/components/Promos/PromosContent.d.ts +2 -0
- package/dist/components/Promos/PromosContent.jsx +110 -0
- package/dist/components/Promos/index.d.ts +1 -0
- package/dist/components/Promos/index.js +1 -0
- package/dist/components/Protected/Protected.d.ts +6 -0
- package/dist/components/Protected/Protected.jsx +9 -0
- package/dist/components/Protected/index.d.ts +1 -0
- package/dist/components/Protected/index.js +1 -0
- package/dist/components/SignIn/SignIn.d.ts +8 -0
- package/dist/components/SignIn/SignIn.jsx +39 -0
- package/dist/components/SignIn/SignInForm.d.ts +1 -0
- package/dist/components/SignIn/SignInForm.jsx +308 -0
- package/dist/components/SignIn/index.d.ts +1 -0
- package/dist/components/SignIn/index.js +1 -0
- package/dist/components/SignUp/SignUp.d.ts +8 -0
- package/dist/components/SignUp/SignUp.jsx +37 -0
- package/dist/components/SignUp/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpForm.jsx +312 -0
- package/dist/components/SignUp/index.d.ts +1 -0
- package/dist/components/SignUp/index.js +1 -0
- package/dist/components/TopWins/TopWins.d.ts +5 -0
- package/dist/components/TopWins/TopWins.jsx +45 -0
- package/dist/components/TopWins/TopWinsContent.d.ts +2 -0
- package/dist/components/TopWins/TopWinsContent.jsx +51 -0
- package/dist/components/TopWins/index.d.ts +1 -0
- package/dist/components/TopWins/index.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +6 -0
- package/dist/components/TournamentCounter/TournamentCounter.jsx +54 -0
- package/dist/components/TournamentCounter/TournamentCounterContent.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounterContent.jsx +79 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +111 -0
- package/dist/components/TournamentCounter/index.d.ts +1 -0
- package/dist/components/TournamentCounter/index.js +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +181 -0
- package/dist/components/TransactionRecords/TableFilters.d.ts +26 -0
- package/dist/components/TransactionRecords/TableFilters.jsx +359 -0
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +7 -0
- package/dist/components/TransactionRecords/TransactionRecords.jsx +33 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +141 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +177 -0
- package/dist/components/TransactionRecords/index.d.ts +1 -0
- package/dist/components/TransactionRecords/index.js +1 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.js +18 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/constants/index.js +64 -0
- package/dist/handlers.d.ts +4 -6
- package/dist/handlers.js +291 -303
- package/dist/hooks/useAccountQuery/getAccountQueryKey.d.ts +2 -0
- package/dist/hooks/useAccountQuery/getAccountQueryKey.js +1 -0
- package/dist/hooks/useAccountQuery/prefetchAccountQuery.d.ts +1 -0
- package/dist/hooks/useAccountQuery/prefetchAccountQuery.js +75 -0
- package/dist/hooks/useAccountQuery/useAccountQuery.d.ts +3 -0
- package/dist/hooks/useAccountQuery/useAccountQuery.js +88 -0
- package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.d.ts +2 -0
- package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.js +1 -0
- package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.d.ts +3 -0
- package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.js +70 -0
- package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.d.ts +3 -0
- package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.js +4 -0
- package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.d.ts +2 -0
- package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.js +75 -0
- package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.d.ts +3 -0
- package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.js +88 -0
- package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.js +4 -0
- package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.d.ts +2 -0
- package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.js +75 -0
- package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.d.ts +3 -0
- package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.js +91 -0
- package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.d.ts +2 -0
- package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.js +1 -0
- package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.d.ts +1 -0
- package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.js +67 -0
- package/dist/hooks/useCashbacksQuery/useCashbacksQuery.d.ts +3 -0
- package/dist/hooks/useCashbacksQuery/useCashbacksQuery.js +68 -0
- package/dist/hooks/useControllableState.d.ts +8 -0
- package/dist/hooks/useControllableState.js +47 -0
- package/dist/hooks/useCooldown.d.ts +43 -0
- package/dist/hooks/useCooldown.js +101 -0
- package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.js +125 -0
- package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.js +3 -0
- package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.d.ts +3 -0
- package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.js +171 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.js +125 -0
- package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.js +125 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.js +125 -0
- package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.js +125 -0
- package/dist/hooks/useDepositQuery/getDepositQueryKey.d.ts +2 -0
- package/dist/hooks/useDepositQuery/getDepositQueryKey.js +4 -0
- package/dist/hooks/useDepositQuery/prefetchDepositQuery.d.ts +1 -0
- package/dist/hooks/useDepositQuery/prefetchDepositQuery.js +75 -0
- package/dist/hooks/useDepositQuery/useDepositQuery.d.ts +3 -0
- package/dist/hooks/useDepositQuery/useDepositQuery.js +88 -0
- package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.js +4 -0
- package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.d.ts +2 -0
- package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.js +75 -0
- package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.d.ts +3 -0
- package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.js +93 -0
- package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.d.ts +2 -0
- package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.js +3 -0
- package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.d.ts +1 -0
- package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.js +75 -0
- package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.d.ts +2 -0
- package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.js +88 -0
- package/dist/hooks/useDisclosure.d.ts +11 -0
- package/dist/hooks/useDisclosure.js +13 -0
- package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.d.ts +2 -0
- package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.js +3 -0
- package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.d.ts +6 -0
- package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.js +95 -0
- package/dist/hooks/useGamesQuery/getGamesQueryKey.d.ts +3 -0
- package/dist/hooks/useGamesQuery/getGamesQueryKey.js +1 -0
- package/dist/hooks/useGamesQuery/prefetchGamesQuery.d.ts +2 -0
- package/dist/hooks/useGamesQuery/prefetchGamesQuery.js +80 -0
- package/dist/hooks/useGamesQuery/useGamesQuery.d.ts +3 -0
- package/dist/hooks/useGamesQuery/useGamesQuery.js +33 -0
- package/dist/hooks/useGlobalStore.d.ts +42 -0
- package/dist/hooks/useGlobalStore.js +76 -0
- package/dist/hooks/useInfiniteQueryHelper.d.ts +31 -0
- package/dist/hooks/useInfiniteQueryHelper.js +121 -0
- package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.d.ts +2 -0
- package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.js +3 -0
- package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.d.ts +1 -0
- package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.js +75 -0
- package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.d.ts +3 -0
- package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.js +88 -0
- package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.d.ts +2 -0
- package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.js +3 -0
- package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.d.ts +1 -0
- package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.js +84 -0
- package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.d.ts +2 -0
- package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.js +97 -0
- package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.d.ts +3 -0
- package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.js +1 -0
- package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.d.ts +2 -0
- package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.js +68 -0
- package/dist/hooks/useJackpotsQuery/useJackpotsQuery.d.ts +3 -0
- package/dist/hooks/useJackpotsQuery/useJackpotsQuery.js +32 -0
- package/dist/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/hooks/useLocaleInfo.js +7 -0
- package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.d.ts +2 -0
- package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.js +1 -0
- package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.d.ts +1 -0
- package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.js +75 -0
- package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.d.ts +3 -0
- package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.js +87 -0
- package/dist/hooks/useMobileNumberParser.d.ts +8 -0
- package/dist/hooks/useMobileNumberParser.js +63 -0
- package/dist/hooks/useOnMMA.d.ts +2 -0
- package/dist/hooks/useOnMMA.js +5 -0
- package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.d.ts +2 -0
- package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.js +3 -0
- package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.d.ts +1 -0
- package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.js +75 -0
- package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.d.ts +3 -0
- package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.js +88 -0
- package/dist/hooks/usePlatformQuery/getPlatformQueryKey.d.ts +2 -0
- package/dist/hooks/usePlatformQuery/getPlatformQueryKey.js +1 -0
- package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.d.ts +1 -0
- package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.js +70 -0
- package/dist/hooks/usePlatformQuery/usePlatformQuery.d.ts +3 -0
- package/dist/hooks/usePlatformQuery/usePlatformQuery.js +65 -0
- package/dist/hooks/usePromoQuery/getPromoQueryKey.d.ts +2 -0
- package/dist/hooks/usePromoQuery/getPromoQueryKey.js +1 -0
- package/dist/hooks/usePromoQuery/prefetchPromoQuery.d.ts +1 -0
- package/dist/hooks/usePromoQuery/prefetchPromoQuery.js +67 -0
- package/dist/hooks/usePromoQuery/usePromoQuery.d.ts +3 -0
- package/dist/hooks/usePromoQuery/usePromoQuery.js +68 -0
- package/dist/hooks/usePromosQuery/getPromosQueryKey.d.ts +2 -0
- package/dist/hooks/usePromosQuery/getPromosQueryKey.js +1 -0
- package/dist/hooks/usePromosQuery/prefetchPromosQuery.d.ts +1 -0
- package/dist/hooks/usePromosQuery/prefetchPromosQuery.js +67 -0
- package/dist/hooks/usePromosQuery/usePromosQuery.d.ts +3 -0
- package/dist/hooks/usePromosQuery/usePromosQuery.js +68 -0
- package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.d.ts +2 -0
- package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.js +3 -0
- package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.d.ts +3 -0
- package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.js +68 -0
- package/dist/hooks/useSessionQuery/getSessionQueryKey.d.ts +2 -0
- package/dist/hooks/useSessionQuery/getSessionQueryKey.js +1 -0
- package/dist/hooks/useSessionQuery/prefetchSessionQuery.d.ts +1 -0
- package/dist/hooks/useSessionQuery/prefetchSessionQuery.js +53 -0
- package/dist/hooks/useSessionQuery/useSessionQuery.d.ts +2 -0
- package/dist/hooks/useSessionQuery/useSessionQuery.js +60 -0
- package/dist/hooks/useSignOutMutation/getSignOutMutationKey.d.ts +2 -0
- package/dist/hooks/useSignOutMutation/getSignOutMutationKey.js +1 -0
- package/dist/hooks/useSignOutMutation/useSignOutMutation.d.ts +2 -0
- package/dist/hooks/useSignOutMutation/useSignOutMutation.js +69 -0
- package/dist/hooks/useSignUpMutation/getSignUpMutationKey.d.ts +2 -0
- package/dist/hooks/useSignUpMutation/getSignUpMutationKey.js +1 -0
- package/dist/hooks/useSignUpMutation/useSignUpMutation.d.ts +5 -0
- package/dist/hooks/useSignUpMutation/useSignUpMutation.js +65 -0
- package/dist/hooks/useSigninMutation/getSignInMutationKey.d.ts +2 -0
- package/dist/hooks/useSigninMutation/getSignInMutationKey.js +1 -0
- package/dist/hooks/useSigninMutation/useSignInMutation.d.ts +4 -0
- package/dist/hooks/useSigninMutation/useSignInMutation.js +73 -0
- package/dist/hooks/useSiteQuery/getSiteQueryKey.d.ts +2 -0
- package/dist/hooks/useSiteQuery/getSiteQueryKey.js +1 -0
- package/dist/hooks/useSiteQuery/prefetchSiteQuery.d.ts +1 -0
- package/dist/hooks/useSiteQuery/prefetchSiteQuery.js +70 -0
- package/dist/hooks/useSiteQuery/useSiteQuery.d.ts +3 -0
- package/dist/hooks/useSiteQuery/useSiteQuery.js +68 -0
- package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.d.ts +2 -0
- package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.js +1 -0
- package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.d.ts +1 -0
- package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.js +67 -0
- package/dist/hooks/useTopWinsQuery/useTopWinsQuery.d.ts +3 -0
- package/dist/hooks/useTopWinsQuery/useTopWinsQuery.js +66 -0
- package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.d.ts +3 -0
- package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.js +4 -0
- package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.d.ts +2 -0
- package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.js +68 -0
- package/dist/hooks/useTournamentsQuery/useTournamentsQuery.d.ts +3 -0
- package/dist/hooks/useTournamentsQuery/useTournamentsQuery.js +33 -0
- package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.js +4 -0
- package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.d.ts +2 -0
- package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.js +75 -0
- package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.d.ts +3 -0
- package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.js +93 -0
- package/dist/hooks/useWalletQuery/getWalletQueryKey.d.ts +2 -0
- package/dist/hooks/useWalletQuery/getWalletQueryKey.js +1 -0
- package/dist/hooks/useWalletQuery/prefetchWalletQuery.d.ts +1 -0
- package/dist/hooks/useWalletQuery/prefetchWalletQuery.js +75 -0
- package/dist/hooks/useWalletQuery/useWalletQuery.d.ts +3 -0
- package/dist/hooks/useWalletQuery/useWalletQuery.js +87 -0
- package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.js +1 -0
- package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.d.ts +2 -0
- package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.js +75 -0
- package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.d.ts +3 -0
- package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.js +94 -0
- package/dist/icons/AlertCircleIcon.d.ts +2 -0
- package/dist/icons/AlertCircleIcon.jsx +5 -0
- package/dist/icons/AlertTriangle.d.ts +2 -0
- package/dist/icons/AlertTriangle.jsx +5 -0
- package/dist/icons/ArrowLeftIcon.d.ts +2 -0
- package/dist/icons/ArrowLeftIcon.jsx +5 -0
- package/dist/icons/ArrowNarrowUpRightIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpRightIcon.jsx +5 -0
- package/dist/icons/ArrowRightIcon.d.ts +2 -0
- package/dist/icons/ArrowRightIcon.jsx +5 -0
- package/dist/icons/Award02Icon.d.ts +2 -0
- package/dist/icons/Award02Icon.jsx +5 -0
- package/dist/icons/BankIcon.d.ts +2 -0
- package/dist/icons/BankIcon.jsx +5 -0
- package/dist/icons/CheckCircleBrokenIcon.d.ts +2 -0
- package/dist/icons/CheckCircleBrokenIcon.jsx +5 -0
- package/dist/icons/CheckIcon.d.ts +2 -0
- package/dist/icons/CheckIcon.jsx +5 -0
- package/dist/icons/ChevronDownIcon.d.ts +2 -0
- package/dist/icons/ChevronDownIcon.jsx +5 -0
- package/dist/icons/ChevronLeftIcon.d.ts +2 -0
- package/dist/icons/ChevronLeftIcon.jsx +5 -0
- package/dist/icons/ChevronRightIcon.d.ts +2 -0
- package/dist/icons/ChevronRightIcon.jsx +5 -0
- package/dist/icons/ChevronUpIcon.d.ts +2 -0
- package/dist/icons/ChevronUpIcon.jsx +5 -0
- package/dist/icons/Expand03Icon.d.ts +2 -0
- package/dist/icons/Expand03Icon.jsx +5 -0
- package/dist/icons/FacebookIcon.d.ts +2 -0
- package/dist/icons/FacebookIcon.jsx +6 -0
- package/dist/icons/File02Icon.d.ts +2 -0
- package/dist/icons/File02Icon.jsx +5 -0
- package/dist/icons/Gift01Icon.d.ts +2 -0
- package/dist/icons/Gift01Icon.jsx +5 -0
- package/dist/icons/GoogleIcon.d.ts +2 -0
- package/dist/icons/GoogleIcon.jsx +9 -0
- package/dist/icons/Logout01Icon.d.ts +2 -0
- package/dist/icons/Logout01Icon.jsx +5 -0
- package/dist/icons/QrCode02Icon.d.ts +2 -0
- package/dist/icons/QrCode02Icon.jsx +5 -0
- package/dist/icons/SpinnerIcon.d.ts +2 -0
- package/dist/icons/SpinnerIcon.jsx +9 -0
- package/dist/icons/User01Icon.d.ts +2 -0
- package/dist/icons/User01Icon.jsx +5 -0
- package/dist/icons/Wallet02Icon.d.ts +2 -0
- package/dist/icons/Wallet02Icon.jsx +5 -0
- package/dist/icons/XIcon.d.ts +1 -0
- package/dist/icons/XIcon.jsx +5 -0
- package/dist/images/bank-icon.png +0 -0
- package/dist/images/images/QRPh.png +0 -0
- package/dist/images/images/ball.png +0 -0
- package/dist/images/images/bank-icon.png +0 -0
- package/dist/images/images/card.png +0 -0
- package/dist/images/images/close-chest.png +0 -0
- package/dist/images/images/gcash.png +0 -0
- package/dist/images/images/qrph-icon.png +0 -0
- package/dist/images/maya.png +0 -0
- package/dist/images/online-bank.png +0 -0
- package/dist/images/open-chest.png +0 -0
- package/dist/images/pagcor.png +0 -0
- package/dist/images/qrph-icon.png +0 -0
- package/dist/images/responsible-gaming.png +0 -0
- package/dist/images/trophy.png +0 -0
- package/dist/index.d.ts +1 -144
- package/dist/index.js +1 -7654
- package/dist/middleware.d.ts +2 -5
- package/dist/middleware.js +90 -90
- package/dist/services/client/authenticate.d.ts +2 -0
- package/dist/services/client/authenticate.js +76 -0
- package/dist/services/client/getSession.d.ts +2 -0
- package/dist/services/client/getSession.js +59 -0
- package/dist/services/client/signIn.d.ts +3 -0
- package/dist/services/client/signIn.js +77 -0
- package/dist/services/client/signOut.d.ts +1 -0
- package/dist/services/client/signOut.js +61 -0
- package/dist/services/server/authenticate.d.ts +2 -0
- package/dist/services/server/authenticate.js +69 -0
- package/dist/services/server/getSession.d.ts +2 -0
- package/dist/services/server/getSession.js +55 -0
- package/dist/services/server/signIn.d.ts +2 -0
- package/dist/services/server/signIn.js +74 -0
- package/dist/services/server/signOut.d.ts +1 -0
- package/dist/services/server/signOut.js +67 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/index.js +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +508 -0
- package/dist/ui/AlertDialog/AlertDialog.jsx +17 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +46 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.js +17 -0
- package/dist/ui/AlertDialog/index.d.ts +1 -0
- package/dist/ui/AlertDialog/index.js +1 -0
- package/dist/ui/Avatar/Avatar.d.ts +68 -0
- package/dist/ui/Avatar/Avatar.jsx +9 -0
- package/dist/ui/Avatar/avatar.recipe.d.ts +22 -0
- package/dist/ui/Avatar/avatar.recipe.js +21 -0
- package/dist/ui/Avatar/index.d.ts +1 -0
- package/dist/ui/Avatar/index.js +1 -0
- package/dist/ui/Badge/Badge.d.ts +167 -0
- package/dist/ui/Badge/Badge.jsx +10 -0
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -0
- package/dist/ui/Badge/badge.anatomy.js +2 -0
- package/dist/ui/Badge/badge.recipe.d.ts +52 -0
- package/dist/ui/Badge/badge.recipe.js +67 -0
- package/dist/ui/Badge/index.d.ts +1 -0
- package/dist/ui/Badge/index.js +1 -0
- package/dist/ui/Button/Button.d.ts +7 -0
- package/dist/ui/Button/Button.jsx +19 -0
- package/dist/ui/Button/button.recipe.d.ts +57 -0
- package/dist/ui/Button/button.recipe.js +46 -0
- package/dist/ui/Button/index.d.ts +1 -0
- package/dist/ui/Button/index.js +1 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +286 -0
- package/dist/ui/Checkbox/Checkbox.jsx +13 -0
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +40 -0
- package/dist/ui/Checkbox/checkbox.recipe.js +40 -0
- package/dist/ui/Checkbox/index.d.ts +1 -0
- package/dist/ui/Checkbox/index.js +1 -0
- package/dist/ui/Clipboard/Clipboard.d.ts +224 -0
- package/dist/ui/Clipboard/Clipboard.jsx +12 -0
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +37 -0
- package/dist/ui/Clipboard/clipboard.recipe.js +38 -0
- package/dist/ui/Clipboard/index.d.ts +1 -0
- package/dist/ui/Clipboard/index.js +1 -0
- package/dist/ui/Combobox/Combobox.d.ts +1 -0
- package/dist/ui/Combobox/Combobox.jsx +2 -0
- package/dist/ui/Combobox/combobox.recipe.d.ts +0 -0
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/index.d.ts +1 -0
- package/dist/ui/Combobox/index.js +1 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +2114 -0
- package/dist/ui/DatePicker/DatePicker.jsx +30 -0
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +88 -0
- package/dist/ui/DatePicker/datePicker.recipe.js +15 -0
- package/dist/ui/DatePicker/index.d.ts +1 -0
- package/dist/ui/DatePicker/index.js +1 -0
- package/dist/ui/Dialog/Dialog.d.ts +508 -0
- package/dist/ui/Dialog/Dialog.jsx +17 -0
- package/dist/ui/Dialog/dialog.recipe.d.ts +46 -0
- package/dist/ui/Dialog/dialog.recipe.js +12 -0
- package/dist/ui/Dialog/index.d.ts +1 -0
- package/dist/ui/Dialog/index.js +1 -0
- package/dist/ui/Drawer/Drawer.d.ts +310 -0
- package/dist/ui/Drawer/Drawer.jsx +17 -0
- package/dist/ui/Drawer/drawer.recipe.d.ts +28 -0
- package/dist/ui/Drawer/drawer.recipe.js +24 -0
- package/dist/ui/Drawer/index.d.ts +1 -0
- package/dist/ui/Drawer/index.js +1 -0
- package/dist/ui/Field/Field.d.ts +303 -0
- package/dist/ui/Field/Field.jsx +13 -0
- package/dist/ui/Field/field.recipe.d.ts +43 -0
- package/dist/ui/Field/field.recipe.js +47 -0
- package/dist/ui/Field/index.d.ts +1 -0
- package/dist/ui/Field/index.js +1 -0
- package/dist/ui/IconButton/IconButton.d.ts +7 -0
- package/dist/ui/IconButton/IconButton.jsx +19 -0
- package/dist/ui/IconButton/iconButton.recipe.d.ts +80 -0
- package/dist/ui/IconButton/iconButton.recipe.js +17 -0
- package/dist/ui/IconButton/index.d.ts +1 -0
- package/dist/ui/IconButton/index.js +1 -0
- package/dist/ui/Menu/Menu.d.ts +1 -0
- package/dist/ui/Menu/Menu.jsx +2 -0
- package/dist/ui/Menu/index.d.ts +1 -0
- package/dist/ui/Menu/index.js +1 -0
- package/dist/ui/Menu/menu.recipe.d.ts +0 -0
- package/dist/ui/Menu/menu.recipe.js +1 -0
- package/dist/ui/NumberInput/NumberInput.d.ts +202 -0
- package/dist/ui/NumberInput/NumberInput.jsx +14 -0
- package/dist/ui/NumberInput/index.d.ts +1 -0
- package/dist/ui/NumberInput/index.js +1 -0
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +25 -0
- package/dist/ui/NumberInput/numberInput.recipe.js +24 -0
- package/dist/ui/PinInput/PinInput.d.ts +163 -0
- package/dist/ui/PinInput/PinInput.jsx +11 -0
- package/dist/ui/PinInput/index.d.ts +1 -0
- package/dist/ui/PinInput/index.js +1 -0
- package/dist/ui/PinInput/pinInput.recipe.d.ts +40 -0
- package/dist/ui/PinInput/pinInput.recipe.js +38 -0
- package/dist/ui/Popover/Popover.d.ts +508 -0
- package/dist/ui/Popover/Popover.jsx +17 -0
- package/dist/ui/Popover/index.d.ts +1 -0
- package/dist/ui/Popover/index.js +1 -0
- package/dist/ui/Popover/popover.recipe.d.ts +46 -0
- package/dist/ui/Popover/popover.recipe.js +9 -0
- package/dist/ui/Presence.d.ts +2 -0
- package/dist/ui/Presence.jsx +5 -0
- package/dist/ui/Progress/Progress.d.ts +1 -0
- package/dist/ui/Progress/Progress.jsx +2 -0
- package/dist/ui/Progress/index.d.ts +1 -0
- package/dist/ui/Progress/index.js +1 -0
- package/dist/ui/Progress/progress.recipe.d.ts +0 -0
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +226 -0
- package/dist/ui/SegmentGroup/SegmentGroup.jsx +14 -0
- package/dist/ui/SegmentGroup/index.d.ts +1 -0
- package/dist/ui/SegmentGroup/index.js +1 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +37 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +33 -0
- package/dist/ui/Select/Select.d.ts +739 -0
- package/dist/ui/Select/Select.jsx +24 -0
- package/dist/ui/Select/index.d.ts +1 -0
- package/dist/ui/Select/index.js +1 -0
- package/dist/ui/Select/select.recipe.d.ts +49 -0
- package/dist/ui/Select/select.recipe.js +37 -0
- package/dist/ui/Table/Table.d.ts +301 -0
- package/dist/ui/Table/Table.jsx +12 -0
- package/dist/ui/Table/index.d.ts +1 -0
- package/dist/ui/Table/index.js +1 -0
- package/dist/ui/Table/table.anatomy.d.ts +1 -0
- package/dist/ui/Table/table.anatomy.js +2 -0
- package/dist/ui/Table/table.recipe.d.ts +43 -0
- package/dist/ui/Table/table.recipe.js +27 -0
- package/dist/ui/Tabs/Tabs.d.ts +187 -0
- package/dist/ui/Tabs/Tabs.jsx +11 -0
- package/dist/ui/Tabs/index.d.ts +1 -0
- package/dist/ui/Tabs/index.js +1 -0
- package/dist/ui/Tabs/tabs.recipe.d.ts +37 -0
- package/dist/ui/Tabs/tabs.recipe.js +33 -0
- package/dist/ui/Tooltip/Tooltip.d.ts +1 -0
- package/dist/ui/Tooltip/Tooltip.jsx +2 -0
- package/dist/ui/Tooltip/index.d.ts +1 -0
- package/dist/ui/Tooltip/index.js +1 -0
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +0 -0
- package/dist/ui/Tooltip/tooltip.recipe.js +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.js +23 -0
- package/dist/utils/anatomyToRecipeSlots.d.ts +6 -0
- package/dist/utils/anatomyToRecipeSlots.js +13 -0
- package/dist/utils/capitalize.d.ts +40 -0
- package/dist/utils/capitalize.js +47 -0
- package/dist/utils/createPoll.d.ts +28 -0
- package/dist/utils/createPoll.js +104 -0
- package/dist/utils/createRecipeContext.d.ts +15 -0
- package/dist/utils/createRecipeContext.jsx +73 -0
- package/dist/utils/createSplitProps.d.ts +3 -0
- package/dist/utils/createSplitProps.js +19 -0
- package/dist/utils/dataAttr.d.ts +1 -0
- package/dist/utils/dataAttr.js +3 -0
- package/dist/utils/formatNumber.d.ts +21 -0
- package/dist/utils/formatNumber.js +45 -0
- package/dist/utils/getGameImageUrl.d.ts +12 -0
- package/dist/utils/getGameImageUrl.js +10 -0
- package/dist/utils/getLocaleInfo.d.ts +79 -0
- package/dist/utils/getLocaleInfo.jsx +237 -0
- package/dist/utils/getQueryClient.d.ts +2 -0
- package/dist/utils/getQueryClient.js +26 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/isMobile.d.ts +5 -0
- package/dist/utils/isMobile.js +16 -0
- package/dist/utils/parseDecimal.d.ts +2 -0
- package/dist/utils/parseDecimal.js +18 -0
- package/dist/utils/toaster.d.ts +2 -0
- package/dist/utils/toaster.js +8 -0
- package/package.json +157 -13
- package/dist/JackpotCounter.module-5D2TMSET.module.css +0 -46
- package/dist/chunk-CA3CKIFK.mjs +0 -74
- package/dist/chunk-CA3CKIFK.mjs.map +0 -1
- package/dist/chunk-J5LGTIGS.mjs +0 -10
- package/dist/chunk-J5LGTIGS.mjs.map +0 -1
- package/dist/chunk-WGWFJYET.mjs +0 -1229
- package/dist/chunk-WGWFJYET.mjs.map +0 -1
- package/dist/handlers.d.mts +0 -43
- package/dist/handlers.js.map +0 -1
- package/dist/handlers.mjs +0 -267
- package/dist/handlers.mjs.map +0 -1
- package/dist/index.d.mts +0 -144
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -6422
- package/dist/index.mjs.map +0 -1
- package/dist/middleware.d.mts +0 -8
- package/dist/middleware.js.map +0 -1
- package/dist/middleware.mjs +0 -45
- package/dist/middleware.mjs.map +0 -1
- package/dist/ui.d.mts +0 -6904
- package/dist/ui.d.ts +0 -6904
- package/dist/ui.js +0 -1280
- package/dist/ui.js.map +0 -1
- package/dist/ui.mjs +0 -48
- package/dist/ui.mjs.map +0 -1
- /package/dist/{QRPh-LURVHEVK.png → images/QRPh.png} +0 -0
- /package/dist/{ball-TSKR3KCL.png → images/ball.png} +0 -0
- /package/dist/{card-DTJVRZI7.png → images/card.png} +0 -0
- /package/dist/{close-chest-T4YK5KYS.png → images/close-chest.png} +0 -0
- /package/dist/{gcash-3TV2ZD5Z.png → images/gcash.png} +0 -0
- /package/dist/{maya-2LESMCYJ.png → images/images/maya.png} +0 -0
- /package/dist/{online-bank-ZRRABICE.png → images/images/online-bank.png} +0 -0
- /package/dist/{open-chest-XMGW5QZE.png → images/images/open-chest.png} +0 -0
- /package/dist/{pagcor-AFUY5PSY.png → images/images/pagcor.png} +0 -0
- /package/dist/{responsible-gaming-MQQBK5RV.png → images/images/responsible-gaming.png} +0 -0
- /package/dist/{trophy-QC26LEAT.png → images/images/trophy.png} +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { Tabs } from '@ark-ui/react';
|
|
2
|
+
export declare const Root: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.RootProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
md: {};
|
|
5
|
+
};
|
|
6
|
+
variant: {
|
|
7
|
+
unstyled: {};
|
|
8
|
+
default: {
|
|
9
|
+
list: string;
|
|
10
|
+
indicator: string;
|
|
11
|
+
trigger: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, {
|
|
15
|
+
size: {
|
|
16
|
+
md: {};
|
|
17
|
+
};
|
|
18
|
+
variant: {
|
|
19
|
+
unstyled: {};
|
|
20
|
+
default: {
|
|
21
|
+
list: string;
|
|
22
|
+
indicator: string;
|
|
23
|
+
trigger: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
27
|
+
size: {
|
|
28
|
+
md: {};
|
|
29
|
+
};
|
|
30
|
+
variant: {
|
|
31
|
+
unstyled: {};
|
|
32
|
+
default: {
|
|
33
|
+
list: string;
|
|
34
|
+
indicator: string;
|
|
35
|
+
trigger: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
39
|
+
export declare const Content: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.ContentProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
40
|
+
size: {
|
|
41
|
+
md: {};
|
|
42
|
+
};
|
|
43
|
+
variant: {
|
|
44
|
+
unstyled: {};
|
|
45
|
+
default: {
|
|
46
|
+
list: string;
|
|
47
|
+
indicator: string;
|
|
48
|
+
trigger: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, {
|
|
52
|
+
size: {
|
|
53
|
+
md: {};
|
|
54
|
+
};
|
|
55
|
+
variant: {
|
|
56
|
+
unstyled: {};
|
|
57
|
+
default: {
|
|
58
|
+
list: string;
|
|
59
|
+
indicator: string;
|
|
60
|
+
trigger: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
64
|
+
size: {
|
|
65
|
+
md: {};
|
|
66
|
+
};
|
|
67
|
+
variant: {
|
|
68
|
+
unstyled: {};
|
|
69
|
+
default: {
|
|
70
|
+
list: string;
|
|
71
|
+
indicator: string;
|
|
72
|
+
trigger: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
76
|
+
export declare const Indicator: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
77
|
+
size: {
|
|
78
|
+
md: {};
|
|
79
|
+
};
|
|
80
|
+
variant: {
|
|
81
|
+
unstyled: {};
|
|
82
|
+
default: {
|
|
83
|
+
list: string;
|
|
84
|
+
indicator: string;
|
|
85
|
+
trigger: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, {
|
|
89
|
+
size: {
|
|
90
|
+
md: {};
|
|
91
|
+
};
|
|
92
|
+
variant: {
|
|
93
|
+
unstyled: {};
|
|
94
|
+
default: {
|
|
95
|
+
list: string;
|
|
96
|
+
indicator: string;
|
|
97
|
+
trigger: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
101
|
+
size: {
|
|
102
|
+
md: {};
|
|
103
|
+
};
|
|
104
|
+
variant: {
|
|
105
|
+
unstyled: {};
|
|
106
|
+
default: {
|
|
107
|
+
list: string;
|
|
108
|
+
indicator: string;
|
|
109
|
+
trigger: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
113
|
+
export declare const List: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.ListProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
114
|
+
size: {
|
|
115
|
+
md: {};
|
|
116
|
+
};
|
|
117
|
+
variant: {
|
|
118
|
+
unstyled: {};
|
|
119
|
+
default: {
|
|
120
|
+
list: string;
|
|
121
|
+
indicator: string;
|
|
122
|
+
trigger: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, {
|
|
126
|
+
size: {
|
|
127
|
+
md: {};
|
|
128
|
+
};
|
|
129
|
+
variant: {
|
|
130
|
+
unstyled: {};
|
|
131
|
+
default: {
|
|
132
|
+
list: string;
|
|
133
|
+
indicator: string;
|
|
134
|
+
trigger: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
138
|
+
size: {
|
|
139
|
+
md: {};
|
|
140
|
+
};
|
|
141
|
+
variant: {
|
|
142
|
+
unstyled: {};
|
|
143
|
+
default: {
|
|
144
|
+
list: string;
|
|
145
|
+
indicator: string;
|
|
146
|
+
trigger: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
150
|
+
export declare const Trigger: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
151
|
+
size: {
|
|
152
|
+
md: {};
|
|
153
|
+
};
|
|
154
|
+
variant: {
|
|
155
|
+
unstyled: {};
|
|
156
|
+
default: {
|
|
157
|
+
list: string;
|
|
158
|
+
indicator: string;
|
|
159
|
+
trigger: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, {
|
|
163
|
+
size: {
|
|
164
|
+
md: {};
|
|
165
|
+
};
|
|
166
|
+
variant: {
|
|
167
|
+
unstyled: {};
|
|
168
|
+
default: {
|
|
169
|
+
list: string;
|
|
170
|
+
indicator: string;
|
|
171
|
+
trigger: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
175
|
+
size: {
|
|
176
|
+
md: {};
|
|
177
|
+
};
|
|
178
|
+
variant: {
|
|
179
|
+
unstyled: {};
|
|
180
|
+
default: {
|
|
181
|
+
list: string;
|
|
182
|
+
indicator: string;
|
|
183
|
+
trigger: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
187
|
+
export declare const Context: (props: Tabs.ContextProps) => import("react").ReactNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Tabs } from '@ark-ui/react';
|
|
3
|
+
import { createRecipeContext } from '../../utils/index.js';
|
|
4
|
+
import { tabsRecipe } from './tabs.recipe.js';
|
|
5
|
+
var _a = createRecipeContext(tabsRecipe), withContext = _a.withContext, withProvider = _a.withProvider;
|
|
6
|
+
export var Root = withProvider(Tabs.Root, 'root');
|
|
7
|
+
export var Content = withContext(Tabs.Content, 'content');
|
|
8
|
+
export var Indicator = withContext(Tabs.Indicator, 'indicator');
|
|
9
|
+
export var List = withContext(Tabs.List, 'list');
|
|
10
|
+
export var Trigger = withContext(Tabs.Trigger, 'trigger');
|
|
11
|
+
export var Context = Tabs.Context;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Tabs from './Tabs.jsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Tabs from './Tabs.jsx';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
md: {};
|
|
4
|
+
};
|
|
5
|
+
variant: {
|
|
6
|
+
unstyled: {};
|
|
7
|
+
default: {
|
|
8
|
+
list: string;
|
|
9
|
+
indicator: string;
|
|
10
|
+
trigger: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, {
|
|
14
|
+
size: {
|
|
15
|
+
md: {};
|
|
16
|
+
};
|
|
17
|
+
variant: {
|
|
18
|
+
unstyled: {};
|
|
19
|
+
default: {
|
|
20
|
+
list: string;
|
|
21
|
+
indicator: string;
|
|
22
|
+
trigger: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
26
|
+
size: {
|
|
27
|
+
md: {};
|
|
28
|
+
};
|
|
29
|
+
variant: {
|
|
30
|
+
unstyled: {};
|
|
31
|
+
default: {
|
|
32
|
+
list: string;
|
|
33
|
+
indicator: string;
|
|
34
|
+
trigger: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, Record<"content" | "trigger" | "root" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { tabsAnatomy } from '@ark-ui/react';
|
|
2
|
+
import { tv } from 'tailwind-variants';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
|
+
export var tabsRecipe = tv({
|
|
5
|
+
slots: anatomyToRecipeSlots(tabsAnatomy),
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
md: {},
|
|
9
|
+
},
|
|
10
|
+
variant: {
|
|
11
|
+
unstyled: {},
|
|
12
|
+
default: {
|
|
13
|
+
list: 'border-gray-200 bg-gray-50 relative flex w-fit gap-md rounded-md border p-1',
|
|
14
|
+
indicator: 'h-[var(--height)] w-[var(--width)] bg-white',
|
|
15
|
+
trigger: 'z-1 text-gray-600 ui-selected:text-gray-800 relative transition-all duration-200',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
compoundVariants: [
|
|
20
|
+
{
|
|
21
|
+
size: 'md',
|
|
22
|
+
variant: 'default',
|
|
23
|
+
className: {
|
|
24
|
+
indicator: 'rounded-sm shadow-sm',
|
|
25
|
+
trigger: 'px-lg py-md text-sm font-semibold',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
size: 'md',
|
|
31
|
+
variant: 'default',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Root: () => null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Tooltip from './Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Tooltip from './Tooltip';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './AlertDialog/index.jsx';
|
|
2
|
+
export * from './Avatar/index.jsx';
|
|
3
|
+
export * from './Badge/index.jsx';
|
|
4
|
+
export * from './Button/index.jsx';
|
|
5
|
+
export * from './Checkbox/index.jsx';
|
|
6
|
+
export * from './Clipboard/index.jsx';
|
|
7
|
+
export * from './Combobox/index.jsx';
|
|
8
|
+
export * from './DatePicker/index.jsx';
|
|
9
|
+
export * from './Dialog/index.jsx';
|
|
10
|
+
export * from './Drawer/index.jsx';
|
|
11
|
+
export * from './Field/index.jsx';
|
|
12
|
+
export * from './IconButton/index.jsx';
|
|
13
|
+
export * from './Menu/index.jsx';
|
|
14
|
+
export * from './NumberInput/index.jsx';
|
|
15
|
+
export * from './PinInput/index.jsx';
|
|
16
|
+
export * from './Popover/index.jsx';
|
|
17
|
+
export * from './Presence.jsx';
|
|
18
|
+
export * from './Progress/index.jsx';
|
|
19
|
+
export * from './SegmentGroup/index.jsx';
|
|
20
|
+
export * from './Select/index.jsx';
|
|
21
|
+
export * from './Table/index.jsx';
|
|
22
|
+
export * from './Tabs/index.jsx';
|
|
23
|
+
export * from './Tooltip/index.jsx';
|
package/dist/ui/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './AlertDialog/index.jsx';
|
|
2
|
+
export * from './Avatar/index.jsx';
|
|
3
|
+
export * from './Badge/index.jsx';
|
|
4
|
+
export * from './Button/index.jsx';
|
|
5
|
+
export * from './Checkbox/index.jsx';
|
|
6
|
+
export * from './Clipboard/index.jsx';
|
|
7
|
+
export * from './Combobox/index.jsx';
|
|
8
|
+
export * from './DatePicker/index.jsx';
|
|
9
|
+
export * from './Dialog/index.jsx';
|
|
10
|
+
export * from './Drawer/index.jsx';
|
|
11
|
+
export * from './Field/index.jsx';
|
|
12
|
+
export * from './IconButton/index.jsx';
|
|
13
|
+
export * from './Menu/index.jsx';
|
|
14
|
+
export * from './NumberInput/index.jsx';
|
|
15
|
+
export * from './PinInput/index.jsx';
|
|
16
|
+
export * from './Popover/index.jsx';
|
|
17
|
+
export * from './Presence.jsx';
|
|
18
|
+
export * from './Progress/index.jsx';
|
|
19
|
+
export * from './SegmentGroup/index.jsx';
|
|
20
|
+
export * from './Select/index.jsx';
|
|
21
|
+
export * from './Table/index.jsx';
|
|
22
|
+
export * from './Tabs/index.jsx';
|
|
23
|
+
export * from './Tooltip/index.jsx';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AnatomyInstance } from '@ark-ui/anatomy';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a component anatomy into a valid tailwind variant slot recipe
|
|
4
|
+
* and optionally, accepts initial base styles.
|
|
5
|
+
*/
|
|
6
|
+
export declare function anatomyToRecipeSlots<T extends string>(anatomy: AnatomyInstance<T>, baseStyles?: Partial<Record<T, string | string[]>>): Record<T, string | string[]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a component anatomy into a valid tailwind variant slot recipe
|
|
3
|
+
* and optionally, accepts initial base styles.
|
|
4
|
+
*/
|
|
5
|
+
export function anatomyToRecipeSlots(anatomy, baseStyles) {
|
|
6
|
+
if (baseStyles === void 0) { baseStyles = {}; }
|
|
7
|
+
var styles = anatomy.keys().reduce(function (acc, key) {
|
|
8
|
+
var _a;
|
|
9
|
+
acc[key] = (_a = baseStyles[key]) !== null && _a !== void 0 ? _a : '';
|
|
10
|
+
return acc;
|
|
11
|
+
}, {});
|
|
12
|
+
return styles;
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface CapitalizeConfig {
|
|
2
|
+
/**
|
|
3
|
+
* @description The delimiter used to split the string into words.
|
|
4
|
+
* @default ' '
|
|
5
|
+
*/
|
|
6
|
+
delimiter?: string | RegExp;
|
|
7
|
+
/**
|
|
8
|
+
* @description Whether to convert the string to lowercase before capitalizing.
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
lower?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @description Whether to trim the string before capitalizing.
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
trim?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* capitalize('foo bar baz') // 'Foo Bar Baz'
|
|
22
|
+
* capitalize('foo_bar_baz', { delimiter: capitalize.delimiters.UNDERSCORE }) // 'Foo Bar Baz'
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function capitalize(subject: string, config?: CapitalizeConfig): string;
|
|
26
|
+
export declare namespace capitalize {
|
|
27
|
+
var delimiters: {
|
|
28
|
+
SPACE: RegExp;
|
|
29
|
+
UNDERSCORE: RegExp;
|
|
30
|
+
DASH: RegExp;
|
|
31
|
+
/**
|
|
32
|
+
* ```
|
|
33
|
+
* SpotBonus => Spot Bonus
|
|
34
|
+
* GenericPromo => Generic Promo
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
PASCAL: RegExp;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var SPACE = /\s/g;
|
|
2
|
+
var UNDERSCORE = /_/g;
|
|
3
|
+
var DASH = /-/g;
|
|
4
|
+
var PASCAL = /(?=[A-Z])/;
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* capitalize('foo bar baz') // 'Foo Bar Baz'
|
|
9
|
+
* capitalize('foo_bar_baz', { delimiter: capitalize.delimiters.UNDERSCORE }) // 'Foo Bar Baz'
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export function capitalize(subject, config) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
var trim = (_a = config === null || config === void 0 ? void 0 : config.trim) !== null && _a !== void 0 ? _a : true;
|
|
15
|
+
var lower = (_b = config === null || config === void 0 ? void 0 : config.lower) !== null && _b !== void 0 ? _b : true;
|
|
16
|
+
var delimiter = (_c = config === null || config === void 0 ? void 0 : config.delimiter) !== null && _c !== void 0 ? _c : SPACE;
|
|
17
|
+
if (trim)
|
|
18
|
+
subject = subject.trim();
|
|
19
|
+
if (subject.length < 2) {
|
|
20
|
+
return subject.toUpperCase();
|
|
21
|
+
}
|
|
22
|
+
if (delimiter instanceof RegExp) {
|
|
23
|
+
delimiter.lastIndex = 0;
|
|
24
|
+
}
|
|
25
|
+
return subject
|
|
26
|
+
.split(delimiter)
|
|
27
|
+
.map(function (word) {
|
|
28
|
+
if (word.length < 2)
|
|
29
|
+
return word.toUpperCase();
|
|
30
|
+
var firstChar = word.charAt(0).toUpperCase();
|
|
31
|
+
var otherChars = lower ? word.substring(1).toLowerCase() : word.substring(1);
|
|
32
|
+
return firstChar.concat(otherChars);
|
|
33
|
+
})
|
|
34
|
+
.join(' ');
|
|
35
|
+
}
|
|
36
|
+
capitalize.delimiters = {
|
|
37
|
+
SPACE: SPACE,
|
|
38
|
+
UNDERSCORE: UNDERSCORE,
|
|
39
|
+
DASH: DASH,
|
|
40
|
+
/**
|
|
41
|
+
* ```
|
|
42
|
+
* SpotBonus => Spot Bonus
|
|
43
|
+
* GenericPromo => Generic Promo
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
PASCAL: PASCAL,
|
|
47
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface CreatePollConfig<T = unknown> {
|
|
2
|
+
until(response: T): boolean | Promise<boolean>;
|
|
3
|
+
/**
|
|
4
|
+
* @default 1000
|
|
5
|
+
*/
|
|
6
|
+
interval?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @default 3
|
|
9
|
+
*/
|
|
10
|
+
maxAttempt?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const poll = createPoll(
|
|
16
|
+
* fn,
|
|
17
|
+
* {
|
|
18
|
+
* until: (r) => r.ok,
|
|
19
|
+
* interval: 1000,
|
|
20
|
+
* maxAttempt: 5,
|
|
21
|
+
* }
|
|
22
|
+
* );
|
|
23
|
+
*
|
|
24
|
+
* poll()
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function createPoll<Return, Args = never>(func: (...args: Args[]) => Promise<Return>, config: CreatePollConfig<Return>): (...args: Args[]) => Promise<Return>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var defaultConfig = {
|
|
38
|
+
interval: 1000,
|
|
39
|
+
maxAttempt: 3,
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const poll = createPoll(
|
|
45
|
+
* fn,
|
|
46
|
+
* {
|
|
47
|
+
* until: (r) => r.ok,
|
|
48
|
+
* interval: 1000,
|
|
49
|
+
* maxAttempt: 5,
|
|
50
|
+
* }
|
|
51
|
+
* );
|
|
52
|
+
*
|
|
53
|
+
* poll()
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export function createPoll(func, config) {
|
|
57
|
+
var _this = this;
|
|
58
|
+
var _a = Object.assign(defaultConfig, config), until = _a.until, interval = _a.interval, maxAttempt = _a.maxAttempt;
|
|
59
|
+
function repeater(args, max) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
61
|
+
var remainingAttempts, result, shouldStop, retryCount, maxJitter, jitter;
|
|
62
|
+
return __generator(this, function (_a) {
|
|
63
|
+
switch (_a.label) {
|
|
64
|
+
case 0:
|
|
65
|
+
remainingAttempts = max !== null && max !== void 0 ? max : maxAttempt;
|
|
66
|
+
return [4 /*yield*/, func.apply(void 0, args)];
|
|
67
|
+
case 1:
|
|
68
|
+
result = _a.sent();
|
|
69
|
+
return [4 /*yield*/, until(result)];
|
|
70
|
+
case 2:
|
|
71
|
+
shouldStop = _a.sent();
|
|
72
|
+
if (shouldStop)
|
|
73
|
+
return [2 /*return*/, result];
|
|
74
|
+
retryCount = maxAttempt + 1 - remainingAttempts;
|
|
75
|
+
maxJitter = interval * Math.pow(2, retryCount);
|
|
76
|
+
jitter = Math.random() * maxJitter;
|
|
77
|
+
if (!(remainingAttempts > 1)) return [3 /*break*/, 4];
|
|
78
|
+
return [4 /*yield*/, sleep(jitter)];
|
|
79
|
+
case 3:
|
|
80
|
+
_a.sent();
|
|
81
|
+
return [2 /*return*/, repeater(args, remainingAttempts - 1)];
|
|
82
|
+
case 4: return [2 /*return*/, result];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return function () {
|
|
88
|
+
var args = [];
|
|
89
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
90
|
+
args[_i] = arguments[_i];
|
|
91
|
+
}
|
|
92
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
93
|
+
return __generator(this, function (_a) {
|
|
94
|
+
switch (_a.label) {
|
|
95
|
+
case 0: return [4 /*yield*/, repeater(args)];
|
|
96
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function sleep(ms) {
|
|
103
|
+
return new Promise(function (resolve) { return setTimeout(resolve, ms); });
|
|
104
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Assign } from '@ark-ui/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
4
|
+
type GenericProps = Record<string, any>;
|
|
5
|
+
type GenericRecipeEntries = Record<string, (props: GenericProps) => string>;
|
|
6
|
+
type GenericRecipe = {
|
|
7
|
+
(props: GenericProps): GenericRecipeEntries;
|
|
8
|
+
variantKeys: (string | number | never)[];
|
|
9
|
+
};
|
|
10
|
+
export declare function createRecipeContext<Recipe extends GenericRecipe = GenericRecipe, RecipeProps extends GenericProps = VariantProps<Recipe>, RecipeEntries extends GenericRecipeEntries = ReturnType<Recipe>, RecipeEntry = keyof RecipeEntries>(recipe: Recipe): {
|
|
11
|
+
withRootProvider: <Props extends GenericProps>(Component: React.ComponentType<Props>) => React.ComponentType<Assign<Props, RecipeProps>>;
|
|
12
|
+
withProvider: <Props extends GenericProps>(Component: React.ComponentType<Props>, slot: RecipeEntry) => React.ComponentType<Assign<Props, RecipeProps>>;
|
|
13
|
+
withContext: <Props extends GenericProps>(Component: React.ComponentType<Props>, slot: RecipeEntry) => React.ComponentType<Assign<Props, RecipeProps>>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|