@opexa/portal-components 0.0.12 → 0.0.13
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/{hooks → client/hooks}/useAccountQuery.d.ts +1 -1
- package/dist/client/hooks/useAccountQuery.js +1 -0
- package/dist/client/hooks/useAccountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.js +1 -0
- package/dist/client/hooks/useAuthenticateMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.js +1 -0
- package/dist/client/hooks/useAvailablePromosQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.js +1 -0
- package/dist/client/hooks/useBetRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useCashbacksQuery.d.ts +1 -1
- package/dist/client/hooks/useCashbacksQuery.js +1 -0
- package/dist/client/hooks/useCashbacksQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.mjs +15 -18
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.mjs +20 -23
- package/dist/{hooks → client/hooks}/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +1 -0
- package/dist/client/hooks/useCreateMayaAppDepositMutation.mjs +66 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.mjs +24 -27
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.mjs +14 -17
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.mjs +14 -17
- package/dist/{hooks → client/hooks}/useDepositQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositQuery.js +1 -0
- package/dist/client/hooks/useDepositQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.js +1 -0
- package/dist/client/hooks/useDepositRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useDepositsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositsCountQuery.js +1 -0
- package/dist/client/hooks/useDepositsCountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.mjs +12 -15
- package/dist/{hooks → client/hooks}/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.js +1 -0
- package/dist/client/hooks/useGamesQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.d.ts +1 -1
- package/dist/{hooks → client/hooks}/useInstapayBankListQuery.d.ts +1 -1
- package/dist/client/hooks/useInstapayBankListQuery.js +1 -0
- package/dist/client/hooks/useInstapayBankListQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useIsMayaSessionValidQuery.d.ts +1 -1
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +1 -0
- package/dist/client/hooks/useIsMayaSessionValidQuery.mjs +48 -0
- package/dist/{hooks → client/hooks}/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.js +1 -0
- package/dist/client/hooks/useJackpotsQuery.mjs +31 -0
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/client/hooks/useLocaleInfo.js +1 -0
- package/dist/client/hooks/useLocaleInfo.mjs +15 -0
- package/dist/{hooks → client/hooks}/useMemberVerificationQuery.d.ts +1 -1
- package/dist/client/hooks/useMemberVerificationQuery.js +1 -0
- package/dist/client/hooks/useMemberVerificationQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePaymentSettingsQuery.d.ts +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +1 -0
- package/dist/client/hooks/usePaymentSettingsQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePlatformQuery.d.ts +1 -1
- package/dist/client/hooks/usePlatformQuery.js +1 -0
- package/dist/client/hooks/usePlatformQuery.mjs +21 -0
- package/dist/{hooks → client/hooks}/usePromoQuery.d.ts +1 -1
- package/dist/client/hooks/usePromoQuery.js +1 -0
- package/dist/client/hooks/usePromoQuery.mjs +24 -0
- package/dist/{hooks → client/hooks}/usePromosQuery.d.ts +1 -1
- package/dist/client/hooks/usePromosQuery.js +1 -0
- package/dist/client/hooks/usePromosQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -0
- package/dist/client/hooks/useSendVerificationCodeMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useSessionQuery.d.ts +1 -1
- package/dist/client/hooks/useSessionQuery.js +1 -0
- package/dist/client/hooks/useSessionQuery.mjs +19 -0
- package/dist/{hooks → client/hooks}/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.js +1 -0
- package/dist/client/hooks/useSignInMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSignOutMutation.d.ts +1 -1
- package/dist/client/hooks/useSignOutMutation.js +1 -0
- package/dist/client/hooks/useSignOutMutation.mjs +22 -0
- package/dist/{hooks → client/hooks}/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.js +1 -0
- package/dist/client/hooks/useSignUpMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSiteQuery.d.ts +1 -1
- package/dist/client/hooks/useSiteQuery.js +1 -0
- package/dist/client/hooks/useSiteQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useTopWinsQuery.d.ts +1 -1
- package/dist/client/hooks/useTopWinsQuery.js +1 -0
- package/dist/client/hooks/useTopWinsQuery.mjs +22 -0
- package/dist/{hooks → client/hooks}/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.js +1 -0
- package/dist/client/hooks/useTournamentsQuery.mjs +32 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.js +1 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.mjs +17 -20
- package/dist/{hooks → client/hooks}/useWalletQuery.d.ts +1 -1
- package/dist/client/hooks/useWalletQuery.js +1 -0
- package/dist/client/hooks/useWalletQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +1 -0
- package/dist/client/hooks/useWithdrawalRecordsQuery.mjs +47 -0
- package/dist/client/services/authenticate.js +1 -0
- package/dist/{services → client/services}/authenticate.mjs +1 -1
- package/dist/{services → client/services}/getSession.d.ts +1 -1
- package/dist/client/services/signIn.js +1 -0
- package/dist/{services → client/services}/signIn.mjs +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -0
- package/dist/client/utils/createRecipeContext.mjs +55 -0
- package/dist/client/utils/index.d.ts +2 -0
- package/dist/client-hooks.d.ts +2 -0
- package/dist/client-hooks.js +1 -0
- package/dist/client-hooks.mjs +88 -0
- package/dist/client-services.d.ts +2 -0
- package/dist/client-services.js +1 -0
- package/dist/client-services.mjs +10 -0
- package/dist/client-utils.d.ts +2 -0
- package/dist/client-utils.js +1 -0
- package/dist/client-utils.mjs +6 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +16 -17
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +16 -17
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +6 -7
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +10 -11
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +7 -8
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +30 -54
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +12 -12
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +12 -12
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +9 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +8 -9
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -9
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +7 -8
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +10 -11
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +2 -3
- package/dist/components/Disclaimer/useDisclaimer.js +1 -1
- package/dist/components/Disclaimer/useDisclaimer.mjs +2 -2
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +15 -16
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +8 -8
- package/dist/components/Games/Games.client.d.ts +2 -0
- package/dist/components/Games/Games.client.js +1 -0
- package/dist/components/Games/Games.client.mjs +150 -0
- package/dist/components/Games/Games.d.ts +1 -1
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +11 -141
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +5 -6
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +14 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +18 -58
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.js +1 -0
- package/dist/components/PortalProvider/Providers.mjs +65 -0
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +6 -7
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +16 -17
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +10 -11
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +2 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +6 -8
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +5 -6
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +8 -8
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +25 -26
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +9 -9
- package/dist/components/TopWins/TopWins.client.d.ts +2 -0
- package/dist/components/TopWins/TopWins.client.js +1 -0
- package/dist/components/TopWins/TopWins.client.mjs +64 -0
- package/dist/components/TopWins/TopWins.d.ts +1 -1
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +12 -61
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +5 -6
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +5 -6
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +6 -7
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +5 -6
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +4 -6
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +6 -7
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +6 -7
- package/dist/components/index.d.ts +0 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +34 -39
- package/dist/dist/constants/index.js +1 -0
- package/dist/dist/constants/index.mjs +27 -0
- package/dist/dist/server/utils/prefetchTopWinsQuery.js +1 -0
- package/dist/dist/server/utils/prefetchTopWinsQuery.mjs +22 -0
- package/dist/dist/utils/getLocaleInfo.js +1 -0
- package/dist/dist/utils/getLocaleInfo.mjs +397 -0
- package/dist/dist/utils/getQueryClient.js +1 -0
- package/dist/dist/utils/getQueryClient.mjs +23 -0
- package/dist/dist/utils/isMobile.js +1 -0
- package/dist/dist/utils/isMobile.mjs +7 -0
- package/dist/dist/utils/parseDecimal.js +1 -0
- package/dist/dist/utils/parseDecimal.mjs +8 -0
- package/dist/dist/utils/queryKeys.js +1 -0
- package/dist/dist/utils/queryKeys.mjs +4 -0
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +9 -12
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +10 -13
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +8 -11
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +10 -13
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +13 -16
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +13 -16
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +9 -12
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +8 -11
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +12 -15
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +9 -12
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +8 -11
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +2 -5
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +2 -5
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -10
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +7 -10
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +2 -5
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +6 -9
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +6 -9
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +2 -5
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +6 -9
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +11 -14
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +2 -5
- package/dist/ui/AlertDialog/AlertDialog.js +1 -1
- package/dist/ui/AlertDialog/AlertDialog.mjs +15 -21
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +2 -5
- package/dist/ui/Avatar/Avatar.js +1 -1
- package/dist/ui/Avatar/Avatar.mjs +8 -14
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +5 -8
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +10 -16
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +2 -5
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +2 -4
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/Checkbox/Checkbox.mjs +12 -18
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +5 -8
- package/dist/ui/Clipboard/Clipboard.js +1 -1
- package/dist/ui/Clipboard/Clipboard.mjs +11 -17
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +2 -5
- package/dist/ui/DatePicker/DatePicker.js +1 -1
- package/dist/ui/DatePicker/DatePicker.mjs +31 -37
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +2 -5
- package/dist/ui/Dialog/Dialog.js +1 -1
- package/dist/ui/Dialog/Dialog.mjs +15 -21
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +2 -5
- package/dist/ui/Drawer/Drawer.js +1 -1
- package/dist/ui/Drawer/Drawer.mjs +15 -21
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +5 -8
- package/dist/ui/Field/Field.js +1 -1
- package/dist/ui/Field/Field.mjs +11 -17
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +2 -5
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +2 -4
- package/dist/ui/NumberInput/NumberInput.js +1 -1
- package/dist/ui/NumberInput/NumberInput.mjs +17 -23
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +2 -5
- package/dist/ui/PinInput/PinInput.js +1 -1
- package/dist/ui/PinInput/PinInput.mjs +10 -16
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +2 -5
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/Popover.mjs +15 -21
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +5 -8
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +7 -6
- package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.mjs +12 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +4 -7
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/Select/Select.mjs +23 -29
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +5 -8
- package/dist/ui/Table/Table.js +1 -1
- package/dist/ui/Table/Table.mjs +10 -16
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +2 -5
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/Tabs.mjs +10 -16
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +4 -7
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +54 -58
- package/package.json +143 -128
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +0 -13
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +0 -64
- package/dist/components/FeatureFlagProvider/index.d.ts +0 -2
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +0 -8
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +0 -1
- package/dist/components/FeatureFlagProvider/useFeatureFlag.mjs +0 -22
- package/dist/hooks/useAccountQuery.js +0 -1
- package/dist/hooks/useAccountQuery.mjs +0 -41
- package/dist/hooks/useAuthenticateMutation.js +0 -1
- package/dist/hooks/useAuthenticateMutation.mjs +0 -27
- package/dist/hooks/useAvailablePromosQuery.js +0 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +0 -41
- package/dist/hooks/useBetRecordsQuery.js +0 -1
- package/dist/hooks/useBetRecordsQuery.mjs +0 -50
- package/dist/hooks/useCashbacksQuery.js +0 -1
- package/dist/hooks/useCashbacksQuery.mjs +0 -26
- package/dist/hooks/useCreateGCashDepositMutation.js +0 -1
- package/dist/hooks/useCreateGameSessionMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +0 -69
- package/dist/hooks/useCreateMayaDepositMutation.js +0 -1
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +0 -1
- package/dist/hooks/useCreateQRPHDepositMutation.js +0 -1
- package/dist/hooks/useDepositQuery.js +0 -1
- package/dist/hooks/useDepositQuery.mjs +0 -42
- package/dist/hooks/useDepositRecordsQuery.js +0 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +0 -50
- package/dist/hooks/useDepositsCountQuery.js +0 -1
- package/dist/hooks/useDepositsCountQuery.mjs +0 -41
- package/dist/hooks/useEndGameSessionMutation.js +0 -1
- package/dist/hooks/useGamesQuery.js +0 -1
- package/dist/hooks/useGamesQuery.mjs +0 -42
- package/dist/hooks/useInstapayBankListQuery.js +0 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +0 -41
- package/dist/hooks/useIsMayaSessionValidQuery.js +0 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +0 -51
- package/dist/hooks/useJackpotsQuery.js +0 -1
- package/dist/hooks/useJackpotsQuery.mjs +0 -34
- package/dist/hooks/useLocaleInfo.d.ts +0 -1
- package/dist/hooks/useLocaleInfo.js +0 -1
- package/dist/hooks/useLocaleInfo.mjs +0 -18
- package/dist/hooks/useMemberVerificationQuery.js +0 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +0 -41
- package/dist/hooks/usePaymentSettingsQuery.js +0 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +0 -41
- package/dist/hooks/usePlatformQuery.js +0 -1
- package/dist/hooks/usePlatformQuery.mjs +0 -24
- package/dist/hooks/usePromoQuery.js +0 -1
- package/dist/hooks/usePromoQuery.mjs +0 -27
- package/dist/hooks/usePromosQuery.js +0 -1
- package/dist/hooks/usePromosQuery.mjs +0 -26
- package/dist/hooks/useSendVerificationCodeMutation.js +0 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +0 -27
- package/dist/hooks/useSessionQuery.js +0 -1
- package/dist/hooks/useSessionQuery.mjs +0 -22
- package/dist/hooks/useSignInMutation.js +0 -1
- package/dist/hooks/useSignInMutation.mjs +0 -28
- package/dist/hooks/useSignOutMutation.js +0 -1
- package/dist/hooks/useSignOutMutation.mjs +0 -25
- package/dist/hooks/useSignUpMutation.js +0 -1
- package/dist/hooks/useSignUpMutation.mjs +0 -28
- package/dist/hooks/useSiteQuery.js +0 -1
- package/dist/hooks/useSiteQuery.mjs +0 -26
- package/dist/hooks/useTopWinsQuery.js +0 -1
- package/dist/hooks/useTopWinsQuery.mjs +0 -25
- package/dist/hooks/useTournamentsQuery.js +0 -1
- package/dist/hooks/useTournamentsQuery.mjs +0 -35
- package/dist/hooks/useTransactionRecordsQuery.js +0 -1
- package/dist/hooks/useWalletQuery.js +0 -1
- package/dist/hooks/useWalletQuery.mjs +0 -41
- package/dist/hooks/useWithdrawalRecordsQuery.js +0 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +0 -50
- package/dist/hooks.d.ts +0 -2
- package/dist/hooks.js +0 -1
- package/dist/hooks.mjs +0 -88
- package/dist/services/authenticate.js +0 -1
- package/dist/services/signIn.js +0 -1
- package/dist/services.d.ts +0 -2
- package/dist/services.js +0 -1
- package/dist/services.mjs +0 -10
- package/dist/utils/createRecipeContext.js +0 -1
- package/dist/utils/createRecipeContext.mjs +0 -49
- /package/dist/{hooks → client/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.js +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.js +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.js +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.js +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.js +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.js +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.js +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.mjs +0 -0
- /package/dist/{services → client/services}/authenticate.d.ts +0 -0
- /package/dist/{services → client/services}/getSession.js +0 -0
- /package/dist/{services → client/services}/getSession.mjs +0 -0
- /package/dist/{services → client/services}/index.d.ts +0 -0
- /package/dist/{services → client/services}/signIn.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.js +0 -0
- /package/dist/{services → client/services}/signOut.mjs +0 -0
- /package/dist/{utils → client/utils}/createRecipeContext.d.ts +0 -0
- /package/dist/{utils → client/utils}/toaster.d.ts +0 -0
- /package/dist/{utils → client/utils}/toaster.js +0 -0
- /package/dist/{utils → client/utils}/toaster.mjs +0 -0
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { getPlatform as t } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as e, ENVIRONMENT as o } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as m } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getPlatformQueryKey as i } from "../../utils/queryKeys.mjs";
|
|
11
|
-
|
|
12
|
-
async function h() {
|
|
9
|
+
async function P() {
|
|
13
10
|
await m().prefetchQuery({
|
|
14
11
|
queryKey: i(),
|
|
15
12
|
queryFn: async ({ signal: r }) => await t({
|
|
@@ -22,5 +19,5 @@ async function h() {
|
|
|
22
19
|
});
|
|
23
20
|
}
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
P as prefetchPlatformQuery
|
|
26
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@opexa/portal-sdk-core"),r=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const u=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const n=require("../../utils/queryKeys.js"),i=async e=>{await u.getQueryClient().prefetchQuery({queryKey:n.getPromoQueryKey(e),queryFn:async({signal:t})=>await o.getPromo(e,{signal:t,environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE}})})};exports.prefetchPromoQuery=i;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { getPromo as
|
|
2
|
-
import { PLATFORM_CODE as
|
|
1
|
+
import { getPromo as o } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { PLATFORM_CODE as t, ENVIRONMENT as m } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as i } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getPromoQueryKey as p } from "../../utils/queryKeys.mjs";
|
|
11
|
-
|
|
12
|
-
const C = async (r) => {
|
|
9
|
+
const Q = async (r) => {
|
|
13
10
|
await i().prefetchQuery({
|
|
14
11
|
queryKey: p(r),
|
|
15
|
-
queryFn: async ({ signal:
|
|
16
|
-
signal:
|
|
12
|
+
queryFn: async ({ signal: e }) => await o(r, {
|
|
13
|
+
signal: e,
|
|
17
14
|
environment: m,
|
|
18
15
|
headers: {
|
|
19
|
-
"Platform-Code":
|
|
16
|
+
"Platform-Code": t
|
|
20
17
|
}
|
|
21
18
|
})
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
Q as prefetchPromoQuery
|
|
26
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const o=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),i=async()=>{await o.getQueryClient().prefetchQuery({queryKey:u.getPromosQueryKey(),queryFn:async({signal:r})=>await t.getPromos({signal:r,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})})};exports.prefetchPromosQuery=i;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { getPromos as
|
|
2
|
-
import { PLATFORM_CODE as
|
|
1
|
+
import { getPromos as e } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { PLATFORM_CODE as o, ENVIRONMENT as t } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as m } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getPromosQueryKey as i } from "../../utils/queryKeys.mjs";
|
|
11
|
-
|
|
12
|
-
const h = async () => {
|
|
9
|
+
const P = async () => {
|
|
13
10
|
await m().prefetchQuery({
|
|
14
11
|
queryKey: i(),
|
|
15
|
-
queryFn: async ({ signal: r }) => await
|
|
12
|
+
queryFn: async ({ signal: r }) => await e({
|
|
16
13
|
signal: r,
|
|
17
|
-
environment:
|
|
14
|
+
environment: t,
|
|
18
15
|
headers: {
|
|
19
|
-
"Platform-Code":
|
|
16
|
+
"Platform-Code": o
|
|
20
17
|
}
|
|
21
18
|
})
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
P as prefetchPromosQuery
|
|
26
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");const e=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const r=require("../../utils/queryKeys.js"),t=require("../services/getSession.js");function u(){return e.getQueryClient().prefetchQuery({queryKey:r.getSessionQueryKey(),queryFn:async()=>await t.getSession()})}exports.prefetchSessionQuery=u;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import "../../utils/capitalize.mjs";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "react";
|
|
4
2
|
import "../../utils/parseDecimal.mjs";
|
|
5
3
|
import "../../constants/index.mjs";
|
|
6
4
|
import "../../utils/getLocaleInfo.mjs";
|
|
7
5
|
import { getQueryClient as r } from "../../utils/getQueryClient.mjs";
|
|
8
6
|
import "../../utils/isMobile.mjs";
|
|
9
7
|
import { getSessionQueryKey as e } from "../../utils/queryKeys.mjs";
|
|
10
|
-
import "../../utils/toaster.mjs";
|
|
11
8
|
import { getSession as t } from "../services/getSession.mjs";
|
|
12
|
-
function
|
|
9
|
+
function f() {
|
|
13
10
|
return r().prefetchQuery({
|
|
14
11
|
queryKey: e(),
|
|
15
12
|
queryFn: async () => await t()
|
|
16
13
|
});
|
|
17
14
|
}
|
|
18
15
|
export {
|
|
19
|
-
|
|
16
|
+
f as prefetchSessionQuery
|
|
20
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const i=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),n=async()=>{await i.getQueryClient().prefetchQuery({queryKey:u.getSiteQueryKey(),queryFn:async({signal:r})=>await t.getSite(e.SITE_ID,{signal:r,environment:e.ENVIRONMENT,headers:{"Platform-ID":e.PLATFORM_ID}})})};exports.prefetchSiteQuery=n;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { getSite as
|
|
2
|
-
import { SITE_ID as
|
|
1
|
+
import { getSite as t } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { SITE_ID as r, PLATFORM_ID as i, ENVIRONMENT as o } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as m } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getSiteQueryKey as p } from "../../utils/queryKeys.mjs";
|
|
11
|
-
|
|
12
|
-
const D = async () => {
|
|
9
|
+
const S = async () => {
|
|
13
10
|
await m().prefetchQuery({
|
|
14
11
|
queryKey: p(),
|
|
15
|
-
queryFn: async ({ signal:
|
|
16
|
-
signal:
|
|
12
|
+
queryFn: async ({ signal: e }) => await t(r, {
|
|
13
|
+
signal: e,
|
|
17
14
|
environment: o,
|
|
18
15
|
headers: {
|
|
19
16
|
"Platform-ID": i
|
|
@@ -22,5 +19,5 @@ const D = async () => {
|
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
S as prefetchSiteQuery
|
|
26
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const i=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const n=require("../../utils/queryKeys.js"),u=async()=>{await i.getQueryClient().prefetchQuery({queryKey:n.getTopWinsQueryKey(),queryFn:async({signal:r})=>await t.getTopWins({signal:r,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})})};exports.prefetchTopWinsQuery=u;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { getTopWins as
|
|
2
|
-
import { PLATFORM_CODE as
|
|
1
|
+
import { getTopWins as e } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { PLATFORM_CODE as t, ENVIRONMENT as o } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as i } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getTopWinsQueryKey as m } from "../../utils/queryKeys.mjs";
|
|
11
|
-
|
|
12
|
-
const h = async () => {
|
|
9
|
+
const T = async () => {
|
|
13
10
|
await i().prefetchQuery({
|
|
14
11
|
queryKey: m(),
|
|
15
|
-
queryFn: async ({ signal: r }) => await
|
|
12
|
+
queryFn: async ({ signal: r }) => await e({
|
|
16
13
|
signal: r,
|
|
17
14
|
environment: o,
|
|
18
15
|
headers: {
|
|
19
|
-
"Platform-Code":
|
|
16
|
+
"Platform-Code": t
|
|
20
17
|
}
|
|
21
18
|
})
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
T as prefetchTopWinsQuery
|
|
26
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@opexa/portal-sdk-core"),r=require("../../constants/index.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@opexa/portal-sdk-core"),r=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const u=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("../../utils/queryKeys.js"),a=async e=>{await u.getQueryClient().prefetchInfiniteQuery({queryKey:i.getTournamentsQueryKey(e),queryFn:async({signal:t})=>await n.getTournaments(e,{signal:t,environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE}}),initialPageParam:void 0})};exports.prefetchTournamentsQuery=a;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { getTournaments as t } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as o, ENVIRONMENT as m } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as i } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getTournamentsQueryKey as n } from "../../utils/queryKeys.mjs";
|
|
11
|
-
|
|
12
|
-
const d = async (r) => {
|
|
9
|
+
const g = async (r) => {
|
|
13
10
|
await i().prefetchInfiniteQuery({
|
|
14
11
|
queryKey: n(r),
|
|
15
12
|
queryFn: async ({ signal: e }) => await t(r, {
|
|
@@ -23,5 +20,5 @@ const d = async (r) => {
|
|
|
23
20
|
});
|
|
24
21
|
};
|
|
25
22
|
export {
|
|
26
|
-
|
|
23
|
+
g as prefetchTournamentsQuery
|
|
27
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@opexa/portal-sdk-core"),t=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const s=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("../../utils/queryKeys.js"),a=require("../services/getSession.js"),u=async e=>{const r=await a.getSession();r.status!=="unauthenticated"&&await s.getQueryClient().prefetchQuery({queryKey:i.getTransactionRecordsQueryKey(e),queryFn:async({signal:n})=>await o.getTransactionRecords(e,{signal:n,environment:t.ENVIRONMENT,headers:{"Platform-Code":t.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})})};exports.prefetchTransactionRecordsQuery=u;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { getTransactionRecords as o } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as i, ENVIRONMENT as n } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as a } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
|
-
import { getTransactionRecordsQueryKey as
|
|
11
|
-
import "
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const t = await s();
|
|
8
|
+
import { getTransactionRecordsQueryKey as s } from "../../utils/queryKeys.mjs";
|
|
9
|
+
import { getSession as m } from "../services/getSession.mjs";
|
|
10
|
+
const g = async (r) => {
|
|
11
|
+
const t = await m();
|
|
15
12
|
t.status !== "unauthenticated" && await a().prefetchQuery({
|
|
16
|
-
queryKey:
|
|
13
|
+
queryKey: s(r),
|
|
17
14
|
queryFn: async ({ signal: e }) => await o(r, {
|
|
18
15
|
signal: e,
|
|
19
16
|
environment: n,
|
|
@@ -25,5 +22,5 @@ const C = async (r) => {
|
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
24
|
export {
|
|
28
|
-
|
|
25
|
+
g as prefetchTransactionRecordsQuery
|
|
29
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@opexa/portal-sdk-core"),r=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const u=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("../../utils/queryKeys.js"),a=require("../services/getSession.js"),o=async()=>{const e=await a.getSession();e.status!=="unauthenticated"&&await u.getQueryClient().prefetchQuery({queryKey:i.getWalletQueryKey(),queryFn:async({signal:t})=>await n.getWallet({signal:t,environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})})};exports.prefetchWalletQuery=o;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { getWallet as
|
|
1
|
+
import { getWallet as r } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as o, ENVIRONMENT as i } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
-
import { getQueryClient as
|
|
6
|
+
import { getQueryClient as a } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
|
-
import { getWalletQueryKey as
|
|
11
|
-
import "
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
signal: r,
|
|
8
|
+
import { getWalletQueryKey as n } from "../../utils/queryKeys.mjs";
|
|
9
|
+
import { getSession as m } from "../services/getSession.mjs";
|
|
10
|
+
const Q = async () => {
|
|
11
|
+
const t = await m();
|
|
12
|
+
t.status !== "unauthenticated" && await a().prefetchQuery({
|
|
13
|
+
queryKey: n(),
|
|
14
|
+
queryFn: async ({ signal: e }) => await r({
|
|
15
|
+
signal: e,
|
|
19
16
|
environment: i,
|
|
20
17
|
headers: {
|
|
21
18
|
"Platform-Code": o,
|
|
@@ -25,5 +22,5 @@ const C = async () => {
|
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
24
|
export {
|
|
28
|
-
|
|
25
|
+
Q as prefetchWalletQuery
|
|
29
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@opexa/portal-sdk-core"),t=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const n=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const o=require("../../utils/queryKeys.js"),s=require("../services/getSession.js"),u=async e=>{const r=await s.getSession();r.status!=="unauthenticated"&&await n.getQueryClient().prefetchQuery({queryKey:o.getWithdrawalRecordsQueryKey(e),queryFn:async({signal:i})=>await a.getWithdrawalRecords(e,{signal:i,environment:t.ENVIRONMENT,headers:{"Platform-Code":t.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})})};exports.prefetchWithdrawalRecordsQuery=u;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { getWithdrawalRecords as o } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as i, ENVIRONMENT as a } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as m } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getWithdrawalRecordsQueryKey as n } from "../../utils/queryKeys.mjs";
|
|
11
|
-
import "../../utils/toaster.mjs";
|
|
12
9
|
import { getSession as s } from "../services/getSession.mjs";
|
|
13
|
-
const
|
|
10
|
+
const R = async (r) => {
|
|
14
11
|
const t = await s();
|
|
15
12
|
t.status !== "unauthenticated" && await m().prefetchQuery({
|
|
16
13
|
queryKey: n(r),
|
|
@@ -25,5 +22,5 @@ const C = async (r) => {
|
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
24
|
export {
|
|
28
|
-
|
|
25
|
+
R as prefetchWithdrawalRecordsQuery
|
|
29
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@ark-ui/react"),t=require("../../client/utils/createRecipeContext.js");require("../../client/utils/toaster.js");const i=require("./alertDialog.recipe.js"),{withContext:e,withRootProvider:r}=t.createRecipeContext(i.alertDialogRecipe),n=r(o.Dialog.Root),c=e(o.Dialog.Backdrop,"backdrop"),s=e(o.Dialog.CloseTrigger,"closeTrigger"),g=e(o.Dialog.Content,"content"),a=e(o.Dialog.Description,"description"),l=e(o.Dialog.Positioner,"positioner"),d=e(o.Dialog.Title,"title"),p=e(o.Dialog.Trigger,"trigger"),D=e(o.ark.section,"header"),C=e(o.ark.section,"body"),T=e(o.ark.section,"footer"),u=o.Dialog.Context;exports.Backdrop=c;exports.Body=C;exports.CloseTrigger=s;exports.Content=g;exports.Context=u;exports.Description=a;exports.Footer=T;exports.Header=D;exports.Positioner=l;exports.Root=n;exports.Title=d;exports.Trigger=p;
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Dialog as t, ark as e } from "@ark-ui/react";
|
|
3
|
-
import "../../utils/
|
|
4
|
-
import
|
|
5
|
-
import "../../utils/parseDecimal.mjs";
|
|
6
|
-
import "../../constants/index.mjs";
|
|
7
|
-
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
-
import "../../utils/getQueryClient.mjs";
|
|
9
|
-
import "../../utils/isMobile.mjs";
|
|
10
|
-
import "../../utils/toaster.mjs";
|
|
3
|
+
import { createRecipeContext as r } from "../../client/utils/createRecipeContext.mjs";
|
|
4
|
+
import "../../client/utils/toaster.mjs";
|
|
11
5
|
import { alertDialogRecipe as i } from "./alertDialog.recipe.mjs";
|
|
12
|
-
const { withContext: o, withRootProvider: n } = r(i),
|
|
6
|
+
const { withContext: o, withRootProvider: n } = r(i), a = n(t.Root), l = o(t.Backdrop, "backdrop"), d = o(t.CloseTrigger, "closeTrigger"), C = o(t.Content, "content"), m = o(t.Description, "description"), T = o(t.Positioner, "positioner"), x = o(t.Title, "title"), R = o(t.Trigger, "trigger"), f = o(e.section, "header"), k = o(e.section, "body"), D = o(e.section, "footer"), h = t.Context;
|
|
13
7
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
l as Backdrop,
|
|
9
|
+
k as Body,
|
|
10
|
+
d as CloseTrigger,
|
|
11
|
+
C as Content,
|
|
12
|
+
h as Context,
|
|
13
|
+
m as Description,
|
|
14
|
+
D as Footer,
|
|
15
|
+
f as Header,
|
|
16
|
+
T as Positioner,
|
|
17
|
+
a as Root,
|
|
18
|
+
x as Title,
|
|
19
|
+
R as Trigger
|
|
26
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ark-ui/react"),t=require("tailwind-variants"),i=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ark-ui/react"),t=require("tailwind-variants"),i=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const o=e.dialogAnatomy.extendWith("header","body","footer"),r=t.tv({slots:i.anatomyToRecipeSlots(o,{backdrop:"z-backdrop ui-open:animate-backdrop-in ui-closed:animate-backdrop-out fixed inset-0 bg-black/50",positioner:"z-dialog fixed inset-0 flex items-center justify-center",content:"ui-open:animate-alertdialog-in ui-closed:animate-alertdialog-out relative w-[400px] max-w-[90vw] rounded-xl bg-white p-3xl shadow-xl",header:"flex items-start justify-between",body:"mt-xl",title:"text-lg font-semibold",description:"text-gray-600 mt-xs text-sm",closeTrigger:"text-gray-400 icon:size-6",footer:"mt-4xl flex items-center justify-center gap-lg"})});exports.alertDialogRecipe=r;
|
|
@@ -2,15 +2,12 @@ import { dialogAnatomy as t } from "@ark-ui/react";
|
|
|
2
2
|
import { tv as e } from "tailwind-variants";
|
|
3
3
|
import { anatomyToRecipeSlots as o } from "../../utils/anatomyToRecipeSlots.mjs";
|
|
4
4
|
import "../../utils/capitalize.mjs";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
5
|
import "../../utils/parseDecimal.mjs";
|
|
8
6
|
import "../../constants/index.mjs";
|
|
9
7
|
import "../../utils/getLocaleInfo.mjs";
|
|
10
8
|
import "../../utils/getQueryClient.mjs";
|
|
11
9
|
import "../../utils/isMobile.mjs";
|
|
12
|
-
|
|
13
|
-
const i = t.extendWith("header", "body", "footer"), b = e({
|
|
10
|
+
const i = t.extendWith("header", "body", "footer"), x = e({
|
|
14
11
|
slots: o(i, {
|
|
15
12
|
backdrop: "z-backdrop ui-open:animate-backdrop-in ui-closed:animate-backdrop-out fixed inset-0 bg-black/50",
|
|
16
13
|
positioner: "z-dialog fixed inset-0 flex items-center justify-center",
|
|
@@ -24,5 +21,5 @@ const i = t.extendWith("header", "body", "footer"), b = e({
|
|
|
24
21
|
})
|
|
25
22
|
});
|
|
26
23
|
export {
|
|
27
|
-
|
|
24
|
+
x as alertDialogRecipe
|
|
28
25
|
};
|
package/dist/ui/Avatar/Avatar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ark-ui/react"),a=require("../../client/utils/createRecipeContext.js");require("../../client/utils/toaster.js");const o=require("./avatar.recipe.js"),{withContext:e,withProvider:r}=a.createRecipeContext(o.avatarRecipe),c=r(t.Avatar.Root,"root"),n=e(t.Avatar.Image,"image"),i=e(t.Avatar.Fallback,"fallback"),l=t.Avatar.Context;exports.Context=l;exports.Fallback=i;exports.Image=n;exports.Root=c;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Avatar as t } from "@ark-ui/react";
|
|
3
|
-
import "../../utils/
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
-
import "../../utils/getQueryClient.mjs";
|
|
9
|
-
import "../../utils/isMobile.mjs";
|
|
10
|
-
import "../../utils/toaster.mjs";
|
|
11
|
-
import { avatarRecipe as e } from "./avatar.recipe.mjs";
|
|
12
|
-
const { withContext: o, withProvider: i } = r(e), R = i(t.Root, "root"), b = o(t.Image, "image"), g = o(t.Fallback, "fallback"), k = t.Context;
|
|
3
|
+
import { createRecipeContext as e } from "../../client/utils/createRecipeContext.mjs";
|
|
4
|
+
import "../../client/utils/toaster.mjs";
|
|
5
|
+
import { avatarRecipe as a } from "./avatar.recipe.mjs";
|
|
6
|
+
const { withContext: o, withProvider: r } = e(a), l = r(t.Root, "root"), p = o(t.Image, "image"), s = o(t.Fallback, "fallback"), x = t.Context;
|
|
13
7
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
x as Context,
|
|
9
|
+
s as Fallback,
|
|
10
|
+
p as Image,
|
|
11
|
+
l as Root
|
|
18
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ark-ui/react"),r=require("tailwind-variants"),t=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ark-ui/react"),r=require("tailwind-variants"),t=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=r.tv({slots:t.anatomyToRecipeSlots(e.avatarAnatomy,{root:"border-gray-200 bg-gray-50 flex items-center justify-center overflow-hidden rounded-full border",fallback:"text-gray-600 icon:text-gray-500 flex size-full items-center justify-center",image:"size-full object-cover"}),variants:{size:{md:{root:"size-10",fallback:"icon:size-6 text-sm font-semibold"}}},defaultVariants:{size:"md"}});exports.avatarRecipe=i;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { avatarAnatomy as t } from "@ark-ui/react";
|
|
2
|
-
import { tv as
|
|
3
|
-
import { anatomyToRecipeSlots as
|
|
2
|
+
import { tv as e } from "tailwind-variants";
|
|
3
|
+
import { anatomyToRecipeSlots as o } from "../../utils/anatomyToRecipeSlots.mjs";
|
|
4
4
|
import "../../utils/capitalize.mjs";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
5
|
import "../../utils/parseDecimal.mjs";
|
|
8
6
|
import "../../constants/index.mjs";
|
|
9
7
|
import "../../utils/getLocaleInfo.mjs";
|
|
10
8
|
import "../../utils/getQueryClient.mjs";
|
|
11
9
|
import "../../utils/isMobile.mjs";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
slots: r(t, {
|
|
10
|
+
const p = e({
|
|
11
|
+
slots: o(t, {
|
|
15
12
|
root: "border-gray-200 bg-gray-50 flex items-center justify-center overflow-hidden rounded-full border",
|
|
16
13
|
fallback: "text-gray-600 icon:text-gray-500 flex size-full items-center justify-center",
|
|
17
14
|
image: "size-full object-cover"
|
|
@@ -29,5 +26,5 @@ const b = o({
|
|
|
29
26
|
}
|
|
30
27
|
});
|
|
31
28
|
export {
|
|
32
|
-
|
|
29
|
+
p as avatarRecipe
|
|
33
30
|
};
|
package/dist/ui/Badge/Badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("@ark-ui/react"),i=require("../../client/utils/createRecipeContext.js");require("../../client/utils/toaster.js");const c=require("./badge.anatomy.js"),n=require("./badge.recipe.js"),{withProvider:s,withContext:a}=i.createRecipeContext(n.badgeRecipe),o=c.badgeAnatomy.build(),d=s(e=>t.jsx(r.ark.div,{...o.root.attrs,...e}),"root"),u=a(e=>t.jsx(r.ark.span,{...o.label.attrs,...e}),"label"),l=a(e=>t.jsx(r.ark.svg,{...o.indicator.attrs,asChild:!0,...e}),"indicator");exports.Indicator=l;exports.Label=u;exports.Root=d;
|
package/dist/ui/Badge/Badge.mjs
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { ark as r } from "@ark-ui/react";
|
|
4
|
-
import "../../utils/
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
|
|
9
|
-
import "../../utils/getQueryClient.mjs";
|
|
10
|
-
import "../../utils/isMobile.mjs";
|
|
11
|
-
import "../../utils/toaster.mjs";
|
|
12
|
-
import { badgeAnatomy as a } from "./badge.anatomy.mjs";
|
|
13
|
-
import { badgeRecipe as p } from "./badge.recipe.mjs";
|
|
14
|
-
const { withProvider: s, withContext: e } = m(p), i = a.build(), R = s(
|
|
4
|
+
import { createRecipeContext as a } from "../../client/utils/createRecipeContext.mjs";
|
|
5
|
+
import "../../client/utils/toaster.mjs";
|
|
6
|
+
import { badgeAnatomy as s } from "./badge.anatomy.mjs";
|
|
7
|
+
import { badgeRecipe as n } from "./badge.recipe.mjs";
|
|
8
|
+
const { withProvider: c, withContext: e } = a(n), i = s.build(), x = c(
|
|
15
9
|
(t) => /* @__PURE__ */ o(r.div, { ...i.root.attrs, ...t }),
|
|
16
10
|
"root"
|
|
17
|
-
),
|
|
11
|
+
), g = e(
|
|
18
12
|
(t) => /* @__PURE__ */ o(r.span, { ...i.label.attrs, ...t }),
|
|
19
13
|
"label"
|
|
20
|
-
),
|
|
14
|
+
), h = e(
|
|
21
15
|
(t) => /* @__PURE__ */ o(r.svg, { ...i.indicator.attrs, asChild: !0, ...t }),
|
|
22
16
|
"indicator"
|
|
23
17
|
);
|
|
24
18
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
h as Indicator,
|
|
20
|
+
g as Label,
|
|
21
|
+
x as Root
|
|
28
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),r=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),r=require("../../utils/anatomyToRecipeSlots.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const a=require("./badge.anatomy.js"),t=e.tv({slots:r.anatomyToRecipeSlots(a.badgeAnatomy,{root:"inline-flex items-center",label:"",indicator:""}),variants:{size:{md:{root:"gap-1 rounded-full px-2 py-0.5",label:"text-xs font-medium leading-tight"}},variant:{subtle:{}},colorScheme:{gray:{},danger:{},success:{},warning:{},info:{}}},compoundVariants:[{variant:"subtle",colorScheme:"gray",className:{root:"bg-gray-50 border-gray-200 border",label:"text-gray-700"}},{variant:"subtle",colorScheme:"success",className:{root:"bg-green-50 border-green-200 border",label:"text-green-700"}},{variant:"subtle",colorScheme:"warning",className:{root:"bg-amber-50 border-amber-200 border",label:"text-amber-700"}},{variant:"subtle",colorScheme:"danger",className:{root:"bg-red-50 border-red-200 border",label:"text-red-700"}}],defaultVariants:{size:"md",variant:"subtle",colorScheme:"success"}});exports.badgeRecipe=t;
|