@opexa/portal-components 0.0.28 → 0.0.29
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/client/hooks/index.js +54 -54
- package/dist/client/hooks/useAccountQuery.js +4 -4
- package/dist/client/hooks/useAuthenticateMutation.js +2 -2
- package/dist/client/hooks/useAvailablePromosQuery.js +4 -4
- package/dist/client/hooks/useBetRecordsQuery.js +4 -4
- package/dist/client/hooks/useBonusesQuery.js +4 -4
- package/dist/client/hooks/useCashbacksQuery.js +2 -2
- package/dist/client/hooks/useCreateGCashDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateGameSessionMutation.js +3 -3
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +3 -3
- package/dist/client/hooks/useDepositQuery.js +4 -4
- package/dist/client/hooks/useDepositRecordsQuery.js +4 -4
- package/dist/client/hooks/useDepositsCountQuery.js +4 -4
- package/dist/client/hooks/useDisclosure.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +3 -3
- package/dist/client/hooks/useFavoriteGamesQuery.js +4 -4
- package/dist/client/hooks/useGamesQuery.js +2 -2
- package/dist/client/hooks/useInstapayBankListQuery.js +4 -4
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +4 -4
- package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
- package/dist/client/hooks/useJackpotsQuery.js +2 -2
- package/dist/client/hooks/useLocaleInfo.js +2 -2
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +3 -3
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +3 -3
- package/dist/client/hooks/useMemberVerificationQuery.js +4 -4
- package/dist/client/hooks/useMessagesQuery.js +4 -4
- package/dist/client/hooks/useMobileNumberParser.js +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +4 -4
- package/dist/client/hooks/usePlatformQuery.js +2 -2
- package/dist/client/hooks/useProfileCompletionQuery.js +4 -4
- package/dist/client/hooks/usePromoQuery.js +2 -2
- package/dist/client/hooks/usePromosQuery.js +2 -2
- package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
- package/dist/client/hooks/useSessionQuery.js +2 -2
- package/dist/client/hooks/useSignInMutation.js +2 -2
- package/dist/client/hooks/useSignOutMutation.js +2 -2
- package/dist/client/hooks/useSignUpMutation.js +2 -2
- package/dist/client/hooks/useTopWinsQuery.js +2 -2
- package/dist/client/hooks/useTournamentsQuery.js +2 -2
- package/dist/client/hooks/useTransactionRecordsQuery.js +4 -4
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +3 -3
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +4 -4
- package/dist/client/hooks/useWalletQuery.js +4 -4
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +4 -4
- package/dist/client/services/authenticate.js +1 -1
- package/dist/client/services/index.js +4 -4
- package/dist/client/services/signIn.js +1 -1
- package/dist/client/utils/createRecipeContext.jsx +1 -1
- package/dist/client/utils/index.js +1 -1
- package/dist/components/Account/Account.jsx +5 -5
- package/dist/components/AccountInfo/AccountInfo.jsx +3 -3
- package/dist/components/AccountSecurity/AccountSecurity.jsx +3 -3
- package/dist/components/Banner/Banner.jsx +1 -1
- package/dist/components/BetRecords/BetRecords.jsx +4 -4
- package/dist/components/Bonus/Bonus.client.jsx +2 -2
- package/dist/components/Bonuses/Bonuses.jsx +2 -2
- package/dist/components/DepositWithdrawal/AmountChoices.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +4 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +4 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +2 -2
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +4 -4
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +1 -1
- package/dist/components/DepositWithdrawal/MayaSessionExpired.jsx +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.jsx +4 -4
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -3
- package/dist/components/Disclaimer/Disclaimer.jsx +1 -1
- package/dist/components/Disclaimer/useDisclaimer.jsx +2 -2
- package/dist/components/FavoriteGames/FavoriteGames.client.jsx +5 -5
- package/dist/components/FavoriteGames/FavoriteGames.jsx +1 -1
- package/dist/components/GameLaunch/GameLaunch.jsx +3 -3
- package/dist/components/GameLaunch/GameLaunchTrigger.jsx +2 -2
- package/dist/components/GameProviders/GameProviders.jsx +2 -2
- package/dist/components/Games/Games.client.jsx +4 -4
- package/dist/components/Games/Games.jsx +1 -1
- package/dist/components/GamesSearch/GamesSearch.jsx +4 -4
- package/dist/components/GamesSearch/GamesSearchTrigger.jsx +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.client.jsx +3 -3
- package/dist/components/JackpotCounter/JackpotCounter.jsx +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +4 -4
- package/dist/components/Jackpots/JackpotGameProviders.jsx +2 -2
- package/dist/components/Jackpots/JackpotItemDesktop.jsx +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.jsx +3 -3
- package/dist/components/Jackpots/JackpotRules.jsx +2 -2
- package/dist/components/Jackpots/Jackpots.jsx +1 -1
- package/dist/components/Jackpots/useJackpotItemData.jsx +3 -3
- package/dist/components/KYC/KYC.jsx +2 -2
- package/dist/components/KYC/KYCTrigger.jsx +1 -1
- package/dist/components/KYC/Step1.jsx +1 -1
- package/dist/components/KYC/Step2.jsx +2 -2
- package/dist/components/KYC/Step3.jsx +2 -2
- package/dist/components/KYC/StepIndicator.jsx +1 -1
- package/dist/components/KYC/UploadDocument.jsx +2 -2
- package/dist/components/KYC/UploadSelfie.jsx +2 -2
- package/dist/components/KYC/useKYC.js +1 -1
- package/dist/components/Messages/MessageItem.jsx +2 -2
- package/dist/components/Messages/MessagePopup.jsx +4 -4
- package/dist/components/Messages/Messages.jsx +3 -3
- package/dist/components/Messages/MessagesTrigger.jsx +1 -1
- package/dist/components/Messages/utils.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.client.jsx +4 -4
- package/dist/components/PortalProvider/PortalProvider.jsx +2 -2
- package/dist/components/Promo/PromoContent.jsx +2 -2
- package/dist/components/Promos/PromoCarousel.jsx +3 -3
- package/dist/components/Promos/PromoGrid.jsx +2 -2
- package/dist/components/Promos/PromoItem.jsx +1 -1
- package/dist/components/Protected/Protected.jsx +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.jsx +2 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.jsx +2 -2
- package/dist/components/Quests/WageringQuest/WageringQuest.jsx +2 -2
- package/dist/components/Quests/WageringQuest/WageringQuestModal.jsx +2 -2
- package/dist/components/SignIn/SignIn.jsx +3 -3
- package/dist/components/SignIn/SignInForm.jsx +4 -4
- package/dist/components/SignIn/SignInTrigger.jsx +1 -1
- package/dist/components/SignUp/SignUp.jsx +3 -3
- package/dist/components/SignUp/SignUpForm.jsx +4 -4
- package/dist/components/SignUp/SignUpTrigger.jsx +1 -1
- package/dist/components/TopWins/TopWins.client.jsx +2 -2
- package/dist/components/TopWins/TopWins.jsx +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.client.jsx +3 -3
- package/dist/components/TournamentCounter/TournamentCounter.jsx +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +3 -3
- package/dist/components/Tournaments/TournamentGameProviders.jsx +2 -2
- package/dist/components/Tournaments/TournamentItem.jsx +3 -3
- package/dist/components/Tournaments/TournamentItemMobile.jsx +4 -4
- package/dist/components/Tournaments/TournamentRules.jsx +2 -2
- package/dist/components/Tournaments/Tournaments.jsx +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +4 -4
- package/dist/components/TransactionRecords/TableFilters.jsx +4 -4
- package/dist/components/TransactionRecords/TransactionRecords.jsx +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +4 -4
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +4 -4
- package/dist/components/index.js +32 -32
- package/dist/handlers.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/server/services/authenticate.js +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/index.js +4 -4
- package/dist/server/services/signIn.js +1 -1
- package/dist/server/services/signOut.js +1 -1
- package/dist/server/utils/index.js +24 -24
- package/dist/server/utils/prefetchAccountQuery.js +3 -3
- package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -3
- package/dist/server/utils/prefetchBetRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchBonusesQuery.js +3 -3
- package/dist/server/utils/prefetchCashbacksQuery.js +2 -2
- package/dist/server/utils/prefetchDepositQuery.js +3 -3
- package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchDepositsCountQuery.js +3 -3
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +3 -3
- package/dist/server/utils/prefetchGamesQuery.js +2 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -3
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -3
- package/dist/server/utils/prefetchJackpotsQuery.js +2 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -3
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -3
- package/dist/server/utils/prefetchPlatformQuery.js +2 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -3
- package/dist/server/utils/prefetchPromoQuery.js +2 -2
- package/dist/server/utils/prefetchPromosQuery.js +2 -2
- package/dist/server/utils/prefetchSessionQuery.js +2 -2
- package/dist/server/utils/prefetchTopWinsQuery.js +2 -2
- package/dist/server/utils/prefetchTournamentsQuery.js +2 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -3
- package/dist/server/utils/prefetchWalletQuery.js +3 -3
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -3
- package/dist/third-parties/index.js +2 -2
- package/dist/ui/AlertDialog/AlertDialog.jsx +2 -2
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/Avatar/Avatar.jsx +2 -2
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Badge/Badge.jsx +3 -3
- package/dist/ui/Badge/badge.recipe.js +2 -2
- package/dist/ui/Button/Button.jsx +2 -2
- package/dist/ui/Checkbox/Checkbox.jsx +2 -2
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Clipboard/Clipboard.jsx +2 -2
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Collapsible/Collapsible.jsx +2 -2
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
- package/dist/ui/Combobox/Combobox.jsx +2 -2
- package/dist/ui/Combobox/combobox.recipe.js +1 -1
- package/dist/ui/DatePicker/DatePicker.jsx +2 -2
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/Dialog/Dialog.jsx +2 -2
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Drawer/Drawer.jsx +2 -2
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Field/Field.jsx +2 -2
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/IconButton/IconButton.jsx +2 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/NumberInput/NumberInput.jsx +2 -2
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/PasswordInput/PasswordInput.jsx +2 -2
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
- package/dist/ui/PinInput/PinInput.jsx +2 -2
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/Popover/Popover.jsx +2 -2
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Progress/Progress.jsx +2 -2
- package/dist/ui/Progress/progress.recipe.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.jsx +2 -2
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/Select/Select.jsx +2 -2
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Table/Table.jsx +2 -2
- package/dist/ui/Table/table.recipe.js +2 -2
- package/dist/ui/Tabs/Tabs.jsx +2 -2
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/index.js +24 -24
- package/dist/utils/formatNumber.js +1 -1
- package/dist/utils/getGameImageUrl.js +1 -1
- package/dist/utils/index.js +11 -11
- package/package.json +2 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDepositsCount } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getDepositsCountQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getDepositsCountQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchDepositsCountQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getFavoriteGames } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getFavoriteGamesQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getFavoriteGamesQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/index.js';
|
|
5
5
|
export const prefetchFavoriteGamesQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getGames } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_ID, SITE_ID } from '../../constants';
|
|
3
|
-
import { getGamesQueryKey, getQueryClient } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_ID, SITE_ID } from '../../constants/index.js';
|
|
3
|
+
import { getGamesQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
4
|
export const prefetchGamesQuery = async (input) => {
|
|
5
5
|
await getQueryClient().prefetchInfiniteQuery({
|
|
6
6
|
queryKey: getGamesQueryKey(input),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getInstapayBankList } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getInstapayBankListQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getInstapayBankListQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchInstapayBankListQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { validateMayaSession } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getIsMayaSessionValidQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getIsMayaSessionValidQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchIsMayaSessionValidQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getJackpots } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getJackpotsQueryKey, getQueryClient } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getJackpotsQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
4
|
export const prefetchJackpotsQuery = async (input) => {
|
|
5
5
|
await getQueryClient().prefetchInfiniteQuery({
|
|
6
6
|
queryKey: getJackpotsQueryKey(input),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMemberVerification } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getMemberVerificationQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getMemberVerificationQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchMemberVerificationQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPaymentSettings } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getPaymentSettingsQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getPaymentSettingsQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchPaymentSettingsQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPlatform } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getPlatformQueryKey, getQueryClient } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getPlatformQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
4
|
export async function prefetchPlatformQuery() {
|
|
5
5
|
await getQueryClient().prefetchQuery({
|
|
6
6
|
queryKey: getPlatformQueryKey(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getProfileCompletion } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getProfileCompletionQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getProfileCompletionQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchProfileCompletionQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPromo } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getPromoQueryKey, getQueryClient } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getPromoQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
4
|
export const prefetchPromoQuery = async (id) => {
|
|
5
5
|
await getQueryClient().prefetchQuery({
|
|
6
6
|
queryKey: getPromoQueryKey(id),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPromos } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getPromosQueryKey, getQueryClient } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getPromosQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
4
|
export const prefetchPromosQuery = async () => {
|
|
5
5
|
await getQueryClient().prefetchQuery({
|
|
6
6
|
queryKey: getPromosQueryKey(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getQueryClient, getSessionQueryKey } from '../../utils';
|
|
2
|
-
import { getSession } from '../services/getSession';
|
|
1
|
+
import { getQueryClient, getSessionQueryKey } from '../../utils/index.js';
|
|
2
|
+
import { getSession } from '../services/getSession.js';
|
|
3
3
|
export function prefetchSessionQuery() {
|
|
4
4
|
return getQueryClient().prefetchQuery({
|
|
5
5
|
queryKey: getSessionQueryKey(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getTopWins } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getQueryClient, getTopWinsQueryKey } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getQueryClient, getTopWinsQueryKey } from '../../utils/index.js';
|
|
4
4
|
export const prefetchTopWinsQuery = async () => {
|
|
5
5
|
await getQueryClient().prefetchQuery({
|
|
6
6
|
queryKey: getTopWinsQueryKey(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getTournaments } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getQueryClient, getTournamentsQueryKey } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getQueryClient, getTournamentsQueryKey } from '../../utils/index.js';
|
|
4
4
|
export const prefetchTournamentsQuery = async (input) => {
|
|
5
5
|
await getQueryClient().prefetchInfiniteQuery({
|
|
6
6
|
queryKey: getTournamentsQueryKey(input),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getTransactionRecords, } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getQueryClient, getTransactionRecordsQueryKey } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getQueryClient, getTransactionRecordsQueryKey } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchTransactionRecordsQuery = async (input) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getUnreadMessagesCount, } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getAccountQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getAccountQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchUnreadMessagesCountQuery = async (input) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getWallet } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getQueryClient, getWalletQueryKey } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getQueryClient, getWalletQueryKey } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchWalletQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getWithdrawalRecords, } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getQueryClient, getWithdrawalRecordsQueryKey } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getQueryClient, getWithdrawalRecordsQueryKey } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchWithdrawalRecordsQuery = async (input) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './FacebookPixel';
|
|
2
|
-
export * from './GoogleRecaptcha';
|
|
1
|
+
export * from './FacebookPixel/index.js';
|
|
2
|
+
export * from './GoogleRecaptcha/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark, Dialog } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { alertDialogRecipe } from './alertDialog.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { alertDialogRecipe } from './alertDialog.recipe.js';
|
|
5
5
|
const { withContext, withRootProvider } = createRecipeContext(alertDialogRecipe);
|
|
6
6
|
export const Root = withRootProvider(Dialog.Root);
|
|
7
7
|
export const Backdrop = withContext(Dialog.Backdrop, 'backdrop');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dialogAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
const anatomy = dialogAnatomy.extendWith('header', 'body', 'footer');
|
|
5
5
|
export const alertDialogRecipe = tv({
|
|
6
6
|
slots: anatomyToRecipeSlots(anatomy, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Avatar } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { avatarRecipe } from './avatar.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { avatarRecipe } from './avatar.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(avatarRecipe);
|
|
6
6
|
export const Root = withProvider(Avatar.Root, 'root');
|
|
7
7
|
export const Image = withContext(Avatar.Image, 'image');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { avatarAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const avatarRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(avatarAnatomy, {
|
|
6
6
|
root: 'border-gray-200 bg-gray-50 flex items-center justify-center overflow-hidden rounded-full border',
|
package/dist/ui/Badge/Badge.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { badgeAnatomy } from './badge.anatomy';
|
|
5
|
-
import { badgeRecipe } from './badge.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { badgeAnatomy } from './badge.anatomy.js';
|
|
5
|
+
import { badgeRecipe } from './badge.recipe.js';
|
|
6
6
|
const { withProvider, withContext } = createRecipeContext(badgeRecipe);
|
|
7
7
|
const parts = badgeAnatomy.build();
|
|
8
8
|
export const Root = withProvider((props) => <ark.div {...parts.root.attrs} {...props}/>, 'root');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
-
import { badgeAnatomy } from './badge.anatomy';
|
|
2
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
3
|
+
import { badgeAnatomy } from './badge.anatomy.js';
|
|
4
4
|
export const badgeRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(badgeAnatomy, {
|
|
6
6
|
root: 'inline-flex items-center',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark } from '@ark-ui/react';
|
|
3
|
-
import { createSplitProps, dataAttr } from '../../utils';
|
|
4
|
-
import { buttonRecipe } from './button.recipe';
|
|
3
|
+
import { createSplitProps, dataAttr } from '../../utils/index.js';
|
|
4
|
+
import { buttonRecipe } from './button.recipe.js';
|
|
5
5
|
export function Button(props) {
|
|
6
6
|
const [recipeProps, localProps] = createSplitProps(buttonRecipe.variantKeys)(props);
|
|
7
7
|
return (<ark.button type="button" {...localProps} className={buttonRecipe({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Checkbox } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { checkboxRecipe } from './checkbox.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { checkboxRecipe } from './checkbox.recipe.js';
|
|
5
5
|
export const { withContext, withProvider } = createRecipeContext(checkboxRecipe);
|
|
6
6
|
export const Root = withProvider(Checkbox.Root, 'root');
|
|
7
7
|
export const Control = withContext(Checkbox.Control, 'control');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { checkboxAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const checkboxRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(checkboxAnatomy, {
|
|
6
6
|
root: 'flex items-start gap-2',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Clipboard } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { clipboardRecipe } from './clipboard.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { clipboardRecipe } from './clipboard.recipe.js';
|
|
5
5
|
const { withProvider, withContext } = createRecipeContext(clipboardRecipe);
|
|
6
6
|
export const Root = withProvider(Clipboard.Root, 'root');
|
|
7
7
|
export const Control = withContext(Clipboard.Control, 'control');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clipboardAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const clipboardRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(clipboardAnatomy, {
|
|
6
6
|
label: 'text-input-label-fg mb-sm inline-block text-sm font-medium',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Collapsible } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { collapsibleRecipe } from './collapsible.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { collapsibleRecipe } from './collapsible.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(collapsibleRecipe);
|
|
6
6
|
export const Root = withProvider(Collapsible.Root, 'root');
|
|
7
7
|
export const Content = withContext(Collapsible.Content, 'content');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collapsibleAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const collapsibleRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(collapsibleAnatomy, {
|
|
6
6
|
indicator: 'transition-transform duration-200 ease-in-out ui-open:rotate-90',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
'use client';
|
|
3
3
|
import { Combobox } from '@ark-ui/react';
|
|
4
|
-
import { createRecipeContext } from '../../client/utils';
|
|
5
|
-
import { comboboxRecipe } from './combobox.recipe';
|
|
4
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
5
|
+
import { comboboxRecipe } from './combobox.recipe.js';
|
|
6
6
|
const { withProvider, withContext } = createRecipeContext(comboboxRecipe);
|
|
7
7
|
export const Root = withProvider((Combobox.Root), 'root');
|
|
8
8
|
export const ClearTrigger = withContext(Combobox.ClearTrigger, 'clearTrigger');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { comboboxAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const comboboxRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(comboboxAnatomy),
|
|
6
6
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { DatePicker } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { datePickerRecipe } from './datePicker.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { datePickerRecipe } from './datePicker.recipe.js';
|
|
5
5
|
const { withProvider, withContext } = createRecipeContext(datePickerRecipe);
|
|
6
6
|
export const Root = withProvider(DatePicker.Root, 'root');
|
|
7
7
|
export const ClearTrigger = withContext(DatePicker.ClearTrigger, 'clearTrigger');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { datePickerAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const datePickerRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(datePickerAnatomy, {
|
|
6
6
|
content: 'border-border-secondary ui-placement-top:ui-open:animate-popover-in-top ui-placement-top-end:ui-open:animate-popover-in-top ui-placement-top-start:ui-open:animate-popover-in-top ui-placement-top:ui-closed:animate-popover-out-top ui-placement-top-end:ui-closed:animate-popover-out-top ui-placement-top-start:ui-closed:animate-popover-out-top ui-placement-bottom:ui-open:animate-popover-in-bottom ui-placement-bottom-start:ui-open:animate-popover-in-bottom ui-placement-bottom-end:ui-open:animate-popover-in-bottom ui-placement-bottom:ui-closed:animate-popover-out-bottom ui-placement-bottom-start:ui-closed:animate-popover-out-bottom ui-placement-bottom-end:ui-closed:animate-popover-out-bottom ui-placement-left:ui-open:animate-popover-in-left ui-placement-left-start:ui-open:animate-popover-in-left ui-placement-left-end:ui-open:animate-popover-in-left ui-placement-left:ui-closed:animate-popover-out-left ui-placement-left-start:ui-closed:animate-popover-out-left ui-placement-left-end:ui-closed:animate-popover-out-left ui-placement-right:ui-open:animate-popover-in-right ui-placement-right-start:ui-open:animate-popover-in-right ui-placement-right-end:ui-open:animate-popover-in-right ui-placement-right:ui-closed:animate-popover-out-right ui-placement-right-start:ui-closed:animate-popover-out-right ui-placement-right-end:ui-closed:animate-popover-out-right bg-bg-primary z-dropdown rounded-xl border p-4',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark, Dialog } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { dialogRecipe } from './dialog.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { dialogRecipe } from './dialog.recipe.js';
|
|
5
5
|
const { withContext, withRootProvider } = createRecipeContext(dialogRecipe);
|
|
6
6
|
export const Root = withRootProvider(Dialog.Root);
|
|
7
7
|
export const Backdrop = withContext(Dialog.Backdrop, 'backdrop');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dialogAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
const anatomy = dialogAnatomy.extendWith('header', 'body', 'footer');
|
|
5
5
|
export const dialogRecipe = tv({
|
|
6
6
|
slots: anatomyToRecipeSlots(anatomy, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark, Dialog } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { drawerRecipe } from './drawer.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { drawerRecipe } from './drawer.recipe.js';
|
|
5
5
|
const { withContext, withRootProvider } = createRecipeContext(drawerRecipe);
|
|
6
6
|
export const Root = withRootProvider(Dialog.Root);
|
|
7
7
|
export const Backdrop = withContext(Dialog.Backdrop, 'backdrop');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dialogAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
const anatomy = dialogAnatomy.extendWith('header', 'body', 'footer');
|
|
5
5
|
export const drawerRecipe = tv({
|
|
6
6
|
slots: anatomyToRecipeSlots(anatomy, {
|
package/dist/ui/Field/Field.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Field } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { fieldRecipe } from './field.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { fieldRecipe } from './field.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(fieldRecipe);
|
|
6
6
|
export const Root = withProvider(Field.Root, 'root');
|
|
7
7
|
export const Label = withContext(Field.Label, 'label');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fieldAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
import { tv } from 'tailwind-variants';
|
|
4
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
4
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
5
5
|
const outlineGrayInputStyle = twMerge('border', 'bg-bg-primary', 'border-border-primary', 'shadow-xs', 'focus:border-border-brand', 'focus:shadow-brand-xs', 'placeholder:text-text-placeholder', 'disabled:opacity-60', 'disabled:shadow-none', 'read-only:opacity-60', 'read-only:shadow-none');
|
|
6
6
|
export const fieldRecipe = tv({
|
|
7
7
|
slots: anatomyToRecipeSlots(fieldAnatomy, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark } from '@ark-ui/react';
|
|
3
|
-
import { createSplitProps, dataAttr } from '../../utils';
|
|
4
|
-
import { iconButtonRecipe, } from './iconButton.recipe';
|
|
3
|
+
import { createSplitProps, dataAttr } from '../../utils/index.js';
|
|
4
|
+
import { iconButtonRecipe, } from './iconButton.recipe.js';
|
|
5
5
|
export function IconButton(props) {
|
|
6
6
|
const [recipeProps, localProps] = createSplitProps(iconButtonRecipe.variantKeys)(props);
|
|
7
7
|
return (<ark.button type="button" {...localProps} className={iconButtonRecipe({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { NumberInput } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { numberInputRecipe } from './numberInput.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { numberInputRecipe } from './numberInput.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(numberInputRecipe);
|
|
6
6
|
export const Root = withProvider(NumberInput.Root, 'root');
|
|
7
7
|
export const Control = withContext(NumberInput.Control, 'control');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { numberInputAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const numberInputRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(numberInputAnatomy, {
|
|
6
6
|
control: 'border-border-primary bg-bg-primary ui-focus:border-border-brand ui-focus:shadow-brand-xs grid grid-cols-[1fr_32px] grid-rows-[1fr_1fr] overflow-hidden rounded-lg border ui-disabled:opacity-60 ui-readonly:cursor-default ui-readonly:opacity-50',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { PasswordInput } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { passwordInputRecipe } from './passwordInput.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { passwordInputRecipe } from './passwordInput.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(passwordInputRecipe);
|
|
6
6
|
export const Root = withProvider(PasswordInput.Root, 'root');
|
|
7
7
|
export const Control = withContext(PasswordInput.Control, 'control');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { passwordInputAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const passwordInputRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(passwordInputAnatomy, {
|
|
6
6
|
input: 'placeholder:text-text-placeholder w-full grow outline-none',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { PinInput } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { pinInputRecipe } from './pinInput.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { pinInputRecipe } from './pinInput.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(pinInputRecipe);
|
|
6
6
|
export const Root = withProvider(PinInput.Root, 'root');
|
|
7
7
|
export const Label = withContext(PinInput.Label, 'label');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pinInputAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const pinInputRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(pinInputAnatomy, {
|
|
6
6
|
control: 'grid',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Popover } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { popoverRecipe } from './popover.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { popoverRecipe } from './popover.recipe.js';
|
|
5
5
|
const { withRootProvider, withContext } = createRecipeContext(popoverRecipe);
|
|
6
6
|
export const Root = withRootProvider(Popover.Root);
|
|
7
7
|
export const Anchor = withContext(Popover.Anchor, 'anchor');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { popoverAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const popoverRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(popoverAnatomy, {
|
|
6
6
|
content: 'ui-placement-top:ui-open:animate-popover-in-top ui-placement-top-end:ui-open:animate-popover-in-top ui-placement-top-start:ui-open:animate-popover-in-top ui-placement-top:ui-closed:animate-popover-out-top ui-placement-top-end:ui-closed:animate-popover-out-top ui-placement-top-start:ui-closed:animate-popover-out-top ui-placement-bottom:ui-open:animate-popover-in-bottom ui-placement-bottom-start:ui-open:animate-popover-in-bottom ui-placement-bottom-end:ui-open:animate-popover-in-bottom ui-placement-bottom:ui-closed:animate-popover-out-bottom ui-placement-bottom-start:ui-closed:animate-popover-out-bottom ui-placement-bottom-end:ui-closed:animate-popover-out-bottom ui-placement-left:ui-open:animate-popover-in-left ui-placement-left-start:ui-open:animate-popover-in-left ui-placement-left-end:ui-open:animate-popover-in-left ui-placement-left:ui-closed:animate-popover-out-left ui-placement-left-start:ui-closed:animate-popover-out-left ui-placement-left-end:ui-closed:animate-popover-out-left ui-placement-right:ui-open:animate-popover-in-right ui-placement-right-start:ui-open:animate-popover-in-right ui-placement-right-end:ui-open:animate-popover-in-right ui-placement-right:ui-closed:animate-popover-out-right ui-placement-right-start:ui-closed:animate-popover-out-right ui-placement-right-end:ui-closed:animate-popover-out-right bg-bg-primary z-popover',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Progress } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { progressRecipe } from './progress.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { progressRecipe } from './progress.recipe.js';
|
|
5
5
|
const { withContext, withProvider } = createRecipeContext(progressRecipe);
|
|
6
6
|
export const Root = withProvider(Progress.Root, 'root');
|
|
7
7
|
export const Circle = withContext(Progress.Circle, 'circle');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { progressAnatomy } from '@ark-ui/react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
|
-
import { anatomyToRecipeSlots } from '../../utils';
|
|
3
|
+
import { anatomyToRecipeSlots } from '../../utils/index.js';
|
|
4
4
|
export const progressRecipe = tv({
|
|
5
5
|
slots: anatomyToRecipeSlots(progressAnatomy),
|
|
6
6
|
variants: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { SegmentGroup } from '@ark-ui/react';
|
|
3
|
-
import { createRecipeContext } from '../../client/utils';
|
|
4
|
-
import { segmentGroupRecipe } from './segmentGroup.recipe';
|
|
3
|
+
import { createRecipeContext } from '../../client/utils/index.js';
|
|
4
|
+
import { segmentGroupRecipe } from './segmentGroup.recipe.js';
|
|
5
5
|
const { withProvider, withContext } = createRecipeContext(segmentGroupRecipe);
|
|
6
6
|
export const Root = withProvider(SegmentGroup.Root, 'root');
|
|
7
7
|
export const Indicator = withContext(SegmentGroup.Indicator, 'indicator');
|