@billgangcom/theme-lib 1.68.0 → 1.69.1
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/App.d.ts +2 -3
- package/dist/abstractions/IBlock.d.ts +1 -1
- package/dist/abstractions/PageContext.d.ts +73 -69
- package/dist/{builder/constants/api.d.ts → api/constants.d.ts} +2 -0
- package/dist/api/index.d.ts +1 -6
- package/dist/api/request.d.ts +8 -4
- package/dist/assets/storefront-icons/index.d.ts +73 -0
- package/dist/builder/api/index.d.ts +4 -0
- package/dist/builder/components/BlockColors/index.d.ts +1 -1
- package/dist/builder/components/BlockSettings/settings.d.ts +1 -1
- package/dist/builder/components/HeaderSaveButton/api/index.d.ts +1 -4
- package/dist/builder/components/HeaderSaveButton/utils/index.d.ts +1 -1
- package/dist/builder/components/HeaderSettingsPages/api/index.d.ts +1 -4
- package/dist/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +1 -1
- package/dist/builder/constants/index.d.ts +0 -2
- package/dist/builder/constants/notification.d.ts +1 -0
- package/dist/builder/store/useGeneralStore.d.ts +3 -3
- package/dist/builder/store/useNotificationStore.d.ts +2 -2
- package/dist/builder/ui/ChooseImage/api/index.d.ts +2 -8
- package/dist/builder/ui/Notification/index.d.ts +11 -0
- package/dist/builder/ui/index.d.ts +0 -1
- package/dist/builder.cjs.js +123 -49
- package/dist/builder.es.js +18334 -2840
- package/dist/index-C1GpRLwI.js +15866 -0
- package/dist/index-CtyrP2GR.cjs +80 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +8 -8
- package/dist/lib/createTicket.d.ts +1 -4
- package/dist/lib/generateDynamicStyles.d.ts +1 -1
- package/dist/lib/setupDynamicFonts.d.ts +1 -1
- package/dist/pages/balance/balance-modal.d.ts +7 -0
- package/dist/pages/balance/index.d.ts +1 -0
- package/dist/pages/balance/model.d.ts +6 -0
- package/dist/pages/charge/index.d.ts +1 -0
- package/dist/pages/checkout/index.d.ts +1 -0
- package/dist/pages/checkout/model.d.ts +1 -0
- package/dist/pages/dynamic-page/api/index.d.ts +1 -4
- package/dist/pages/error-page/api/index.d.ts +1 -4
- package/dist/pages/home/index.d.ts +1 -0
- package/dist/pages/home/model.d.ts +26 -0
- package/dist/pages/order/index.d.ts +1 -0
- package/dist/pages/order/model.d.ts +91 -0
- package/dist/pages/orders/index.d.ts +1 -0
- package/dist/pages/orders/model.d.ts +4 -0
- package/dist/pages/rewards/index.d.ts +1 -0
- package/dist/pages/rewards/model.d.ts +71 -0
- package/dist/pages/subscription/index.d.ts +1 -0
- package/dist/pages/subscription/model.d.ts +1 -0
- package/dist/pages/subscriptions/index.d.ts +1 -0
- package/dist/pages/subscriptions/model.d.ts +6 -0
- package/dist/pages/ticket/index.d.ts +1 -0
- package/dist/pages/ticket/model.d.ts +24 -0
- package/dist/pages/tickets/index.d.ts +1 -0
- package/dist/pages/tickets/model.d.ts +21 -0
- package/dist/pages/top-up-balance/index.d.ts +1 -0
- package/dist/storefront/api/auth.d.ts +20 -0
- package/dist/storefront/api/charge.d.ts +1 -0
- package/dist/storefront/api/coupon.d.ts +2 -0
- package/dist/storefront/api/customer.d.ts +6 -0
- package/dist/storefront/api/discord.d.ts +7 -0
- package/dist/storefront/api/fetchGatewaysDetail.d.ts +1 -0
- package/dist/storefront/api/fetchThemeAndSettings.d.ts +1 -0
- package/dist/storefront/api/fetchWithPages.d.ts +11 -0
- package/dist/storefront/api/index.d.ts +18 -0
- package/dist/storefront/api/order.d.ts +14 -0
- package/dist/storefront/api/postBalanceTopUp.d.ts +2 -0
- package/dist/storefront/api/postCashappLink.d.ts +3 -0
- package/dist/storefront/api/referral.d.ts +3 -0
- package/dist/storefront/api/reviews.d.ts +2 -0
- package/dist/storefront/api/signUpReferral.d.ts +2 -0
- package/dist/storefront/api/store.d.ts +6 -0
- package/dist/storefront/api/subscription.d.ts +22 -0
- package/dist/storefront/api/ticket.d.ts +7 -0
- package/dist/storefront/api/transactions.d.ts +5 -0
- package/dist/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
- package/dist/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
- package/dist/storefront/components/Auth/index.d.ts +11 -0
- package/dist/storefront/components/Auth/otp-input.d.ts +7 -0
- package/dist/storefront/components/AuthModal/index.d.ts +6 -0
- package/dist/storefront/components/CancelSubscription/index.d.ts +8 -0
- package/dist/storefront/components/CashAppVerify/index.d.ts +7 -0
- package/dist/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
- package/dist/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
- package/dist/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
- package/dist/storefront/components/ChargeItems/index.d.ts +7 -0
- package/dist/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
- package/dist/storefront/components/CheckoutFooter/index.d.ts +6 -0
- package/dist/storefront/components/CheckoutHeader/index.d.ts +7 -0
- package/dist/storefront/components/CheckoutItems/index.d.ts +18 -0
- package/dist/storefront/components/CheckoutOperational/index.d.ts +24 -0
- package/dist/storefront/components/CheckoutOrderMainData/index.d.ts +9 -0
- package/dist/storefront/components/CheckoutPrices/index.d.ts +12 -0
- package/dist/storefront/components/CheckoutProduct/index.d.ts +8 -0
- package/dist/storefront/components/CheckoutProduct/model.d.ts +1 -0
- package/dist/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
- package/dist/storefront/components/ConnectDiscord/index.d.ts +6 -0
- package/dist/storefront/components/ConnectDiscord/model.d.ts +22 -0
- package/dist/storefront/components/Coupon/index.d.ts +12 -0
- package/dist/storefront/components/CustomFields/index.d.ts +13 -0
- package/dist/storefront/components/CustomerDashboard/index.d.ts +2 -0
- package/dist/storefront/components/DeliveryItem/index.d.ts +7 -0
- package/dist/storefront/components/InsufficientBalance/index.d.ts +8 -0
- package/dist/storefront/components/LeaveAReview/index.d.ts +9 -0
- package/dist/storefront/components/NoItemsBlock/index.d.ts +7 -0
- package/dist/storefront/components/OpenDelivery/index.d.ts +8 -0
- package/dist/storefront/components/OrderStatusBlock/index.d.ts +9 -0
- package/dist/storefront/components/OrdersTable/index.d.ts +15 -0
- package/dist/storefront/components/PageLoading/index.d.ts +7 -0
- package/dist/storefront/components/PageTitle/index.d.ts +6 -0
- package/dist/storefront/components/Pagination/index.d.ts +15 -0
- package/dist/storefront/components/PayPalF&FNote/index.d.ts +8 -0
- package/dist/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +13 -0
- package/dist/storefront/components/PaymentMethod/index.d.ts +15 -0
- package/dist/storefront/components/PaymentMethod/model.d.ts +16 -0
- package/dist/storefront/components/PaymentMethods/index.d.ts +18 -0
- package/dist/storefront/components/ProcessingPayment/index.d.ts +1 -0
- package/dist/storefront/components/ReferralBlock/index.d.ts +13 -0
- package/dist/storefront/components/ReferralBlock/mask.d.ts +1 -0
- package/dist/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
- package/dist/storefront/components/ReferralBlock/step-item.d.ts +8 -0
- package/dist/storefront/components/SecuredBySsl/index.d.ts +1 -0
- package/dist/storefront/components/Sidebar/card.d.ts +6 -0
- package/dist/storefront/components/Sidebar/index.d.ts +1 -0
- package/dist/storefront/components/Sidebar/nav-list.d.ts +2 -0
- package/dist/storefront/components/StatItem/index.d.ts +14 -0
- package/dist/storefront/components/StatusIndicator/index.d.ts +7 -0
- package/dist/storefront/components/SubmitReview/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
- package/dist/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
- package/dist/storefront/components/SubscriptionProduct/index.d.ts +7 -0
- package/dist/storefront/components/SubscriptionProduct/model.d.ts +9 -0
- package/dist/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
- package/dist/storefront/components/SubscriptionsTable/index.d.ts +11 -0
- package/dist/storefront/components/Table/index.d.ts +17 -0
- package/dist/storefront/components/TermsOfService/index.d.ts +1 -0
- package/dist/storefront/components/TicketRow/index.d.ts +5 -0
- package/dist/storefront/components/TrackPayment/index.d.ts +8 -0
- package/dist/storefront/components/index.d.ts +53 -0
- package/dist/storefront/constants/api.d.ts +3 -0
- package/dist/storefront/constants/index.d.ts +3 -0
- package/dist/storefront/constants/referralSteps.d.ts +6 -0
- package/dist/storefront/constants/routes.d.ts +8 -0
- package/dist/storefront/hooks/index.d.ts +2 -0
- package/dist/storefront/hooks/useCart.d.ts +186 -0
- package/dist/storefront/hooks/useCopy.d.ts +1 -0
- package/dist/storefront/index.d.ts +9 -0
- package/dist/storefront/models/balance.d.ts +46 -0
- package/dist/storefront/models/charge.d.ts +73 -0
- package/dist/storefront/models/checkout.d.ts +16 -0
- package/dist/storefront/models/coupon.d.ts +5 -0
- package/dist/storefront/models/discord.d.ts +22 -0
- package/dist/storefront/models/gateway.d.ts +8 -0
- package/dist/storefront/models/index.d.ts +15 -0
- package/dist/storefront/models/order.d.ts +125 -0
- package/dist/storefront/models/payment.d.ts +15 -0
- package/dist/storefront/models/post.d.ts +5 -0
- package/dist/storefront/models/price.d.ts +5 -0
- package/dist/storefront/models/referral.d.ts +12 -0
- package/dist/storefront/models/referralCode.d.ts +3 -0
- package/dist/{builder/constants/general.d.ts → storefront/models/shop.d.ts} +19 -6
- package/dist/storefront/models/subscription.d.ts +129 -0
- package/dist/storefront/models/transaction.d.ts +12 -0
- package/dist/storefront/store/index.d.ts +6 -0
- package/dist/storefront/store/useCartStore.d.ts +24 -0
- package/dist/storefront/store/useCustomerDashboardStore.d.ts +34 -0
- package/dist/storefront/store/useDiscordStore.d.ts +7 -0
- package/dist/storefront/store/usePaginationPagesStore.d.ts +6 -0
- package/dist/storefront/store/useStorefrontStore.d.ts +21 -0
- package/dist/storefront/store/useSubscriptionStore.d.ts +7 -0
- package/dist/storefront/ui/ActiveBadge/index.d.ts +5 -0
- package/dist/storefront/ui/InputRange/index.d.ts +9 -0
- package/dist/storefront/ui/ProgressBar/index.d.ts +8 -0
- package/dist/storefront/ui/Rating/index.d.ts +8 -0
- package/dist/storefront/ui/Timer/index.d.ts +6 -0
- package/dist/storefront/ui/index.d.ts +5 -0
- package/dist/storefront/utils/index.d.ts +16 -0
- package/dist/storefront/utils/recapcha.d.ts +12 -0
- package/dist/ui/Button/index.d.ts +1 -1
- package/dist/ui/CategorySettings/index.d.ts +1 -1
- package/dist/ui/Input/index.d.ts +2 -0
- package/dist/ui/ItemsSettings/index.d.ts +1 -1
- package/dist/ui/ListingSelector/index.d.ts +1 -1
- package/dist/ui/Loader/index.d.ts +4 -0
- package/dist/ui/Radio/index.d.ts +14 -0
- package/dist/ui/Select/index.d.ts +20 -0
- package/dist/ui/Select/utils/index.d.ts +2 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1105 -1208
- package/package.json +7 -3
- package/dist/api/fetchThemeAndSettings.d.ts +0 -4
- package/dist/index-BaU8m6yb.cjs +0 -194
- package/dist/index-zSoKRTpK.js +0 -34420
- /package/dist/{api → builder/api}/fetchAll.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchData.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchFontsData.d.ts +0 -0
- /package/dist/{api → builder/api}/fetchPagesData.d.ts +0 -0
- /package/dist/{api → storefront/api}/fetchGeneral.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ChargeStatus, GetChargeApiData } from '@storefront/models';
|
|
3
|
+
export declare const CHARGE_STATUS_DISPLAY_NAME: Record<ChargeStatus, string>;
|
|
4
|
+
export declare const CHARGE_STATUS_DESCRIPTION: Record<ChargeStatus, string>;
|
|
5
|
+
export declare const CHARGE_STATUS_ICON: Record<ChargeStatus, ReactNode>;
|
|
6
|
+
interface ChargeStatusBlockProps {
|
|
7
|
+
charge: GetChargeApiData;
|
|
8
|
+
}
|
|
9
|
+
export declare const ChargeStatusBlock: FC<ChargeStatusBlockProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OrderRequest } from '@storefront/models';
|
|
2
|
+
import { Product } from '../../../abstractions';
|
|
3
|
+
import { ValidateCouponApiData } from '@storefront/store';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
interface Props {
|
|
6
|
+
cart: OrderRequest;
|
|
7
|
+
products: Product[];
|
|
8
|
+
applyCoupon: (coupon: string) => Promise<ValidateCouponApiData | null>;
|
|
9
|
+
applyCouponPending: boolean;
|
|
10
|
+
coupon: ValidateCouponApiData | null;
|
|
11
|
+
totalAndDiscount: {
|
|
12
|
+
total: number;
|
|
13
|
+
totalWithDiscount: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
removeCoupon: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const CheckoutItems: React.FC<Props>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OrderRequest, PaymentMethod } from '@storefront/models';
|
|
2
|
+
import { CreateOrderResponseBody, CreateSubscriptionOrderResponseBody, DiscordSettings } from '@storefront/hooks';
|
|
3
|
+
import { Product } from '../../../abstractions';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
interface CheckoutOperationalProps {
|
|
6
|
+
getPossibleGateways: () => {
|
|
7
|
+
availableGateways: string[];
|
|
8
|
+
requiresSignInGateways: string[];
|
|
9
|
+
};
|
|
10
|
+
setGateway: (value: string) => void;
|
|
11
|
+
setPaymentMethod: (value: PaymentMethod) => void;
|
|
12
|
+
getDiscordSettings: () => DiscordSettings;
|
|
13
|
+
cart: OrderRequest;
|
|
14
|
+
products: Product[];
|
|
15
|
+
submitCart: (recaptcha: string) => Promise<CreateOrderResponseBody | CreateSubscriptionOrderResponseBody>;
|
|
16
|
+
totalAndDiscount: {
|
|
17
|
+
total: number;
|
|
18
|
+
totalWithDiscount: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
setCustomFieldsToCart: (customFields: Record<string, string>) => void;
|
|
21
|
+
setDiscordSocialConnectId: (id: string) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const CheckoutOperational: React.FC<CheckoutOperationalProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ValidateCouponApiData } from '@storefront/store';
|
|
3
|
+
interface CheckoutPricesProps {
|
|
4
|
+
formatter: Intl.NumberFormat;
|
|
5
|
+
coupon: ValidateCouponApiData | null;
|
|
6
|
+
total: number;
|
|
7
|
+
discount: number;
|
|
8
|
+
totalWithDiscount?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CheckoutPrices: FC<CheckoutPricesProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SubscriptionFullItem } from '@storefront/models';
|
|
3
|
+
interface ChoosePlanUpgradeMethodProps {
|
|
4
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
selectedVariant: any;
|
|
6
|
+
subscription: SubscriptionFullItem;
|
|
7
|
+
}
|
|
8
|
+
export declare const ChoosePlanUpgradeMethod: React.FC<ChoosePlanUpgradeMethodProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type PostDiscordAuthorization = {
|
|
2
|
+
customerEmail: string;
|
|
3
|
+
};
|
|
4
|
+
export type GetDiscordAuthorizationStatus = {
|
|
5
|
+
id: string;
|
|
6
|
+
customerEmail: string;
|
|
7
|
+
};
|
|
8
|
+
type UnauthorizedDiscordUser = {
|
|
9
|
+
authorized: false;
|
|
10
|
+
};
|
|
11
|
+
type AuthorizedDiscordUser = {
|
|
12
|
+
authorized: true;
|
|
13
|
+
id: string;
|
|
14
|
+
username: string;
|
|
15
|
+
avatar?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type DiscordUser = UnauthorizedDiscordUser | AuthorizedDiscordUser;
|
|
18
|
+
export type CustomerDiscordConnection = {
|
|
19
|
+
id: string;
|
|
20
|
+
email: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ValidateCouponApiData } from '@storefront/store';
|
|
3
|
+
interface CouponProps {
|
|
4
|
+
applyCoupon: (coupon: string) => Promise<ValidateCouponApiData | null>;
|
|
5
|
+
applyCouponPending: boolean;
|
|
6
|
+
couponData: ValidateCouponApiData | null;
|
|
7
|
+
discount: string;
|
|
8
|
+
removeCoupon: () => void;
|
|
9
|
+
gateway: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Coupon: FC<CouponProps>;
|
|
12
|
+
export default Coupon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { ProductVariantExtraField } from '@storefront/hooks';
|
|
3
|
+
interface CustomFieldsProps {
|
|
4
|
+
customFields: ProductVariantExtraField[];
|
|
5
|
+
setCustomFields: React.Dispatch<React.SetStateAction<ProductVariantExtraField[]>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const CustomFields: FC<CustomFieldsProps>;
|
|
8
|
+
interface CustomFieldProps {
|
|
9
|
+
customField: ProductVariantExtraField;
|
|
10
|
+
setCustomFields: React.Dispatch<React.SetStateAction<ProductVariantExtraField[]>>;
|
|
11
|
+
}
|
|
12
|
+
export declare const CustomField: FC<CustomFieldProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { Price } from '@storefront/models';
|
|
3
|
+
interface InsufficientBalanceProps {
|
|
4
|
+
balance?: Price | null;
|
|
5
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
}
|
|
7
|
+
declare const InsufficientBalance: FC<InsufficientBalanceProps>;
|
|
8
|
+
export default InsufficientBalance;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PublicOrderReview, AuthenticatedOrderReview } from '@storefront/models';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface LeaveAReviewProps {
|
|
4
|
+
orderId: string;
|
|
5
|
+
review: PublicOrderReview | AuthenticatedOrderReview | undefined;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const LeaveAReview: React.FC<LeaveAReviewProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { DeliveryConfiguration } from '@storefront/models';
|
|
3
|
+
interface OpenDeliveryProps {
|
|
4
|
+
deliveryConfiguration: DeliveryConfiguration;
|
|
5
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const OpenDelivery: FC<OpenDeliveryProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { OrderStatus } from '@storefront/models';
|
|
3
|
+
export declare const ORDER_STATUS_ICON: Record<OrderStatus, ReactNode>;
|
|
4
|
+
interface OrderStatusBlockProps {
|
|
5
|
+
orderStatus: OrderStatus;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const OrderStatusBlock: FC<OrderStatusBlockProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OrderItem } from '@storefront/models';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { GatewayDetail } from '@storefront/models';
|
|
4
|
+
export declare enum StatusVariant {
|
|
5
|
+
SUCCESS = 1,
|
|
6
|
+
WARNING = 2,
|
|
7
|
+
ERROR = 3
|
|
8
|
+
}
|
|
9
|
+
interface OrdersTableProps {
|
|
10
|
+
orders: OrderItem[] | null;
|
|
11
|
+
gatewaysDetail: GatewayDetail[] | null;
|
|
12
|
+
totalCount: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const OrdersTable: React.FC<OrdersTableProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type PaginationTemplateProps = {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
onPageChange: (page: number) => void;
|
|
4
|
+
siblingCount?: number;
|
|
5
|
+
};
|
|
6
|
+
export type PaginationProps = PaginationTemplateProps & {
|
|
7
|
+
totalPages: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const Pagination: ({ currentPage, totalPages, onPageChange, siblingCount, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const getPaginationText: (page: number, totalEntries: number, pageSize: number) => string;
|
|
11
|
+
export type PaginationWithRangeProps = PaginationTemplateProps & {
|
|
12
|
+
className?: string;
|
|
13
|
+
totalCount: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const PaginationWithRange: ({ className, totalCount, ...props }: PaginationWithRangeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CheckoutBalancePaymentMethodProps {
|
|
3
|
+
align?: 'column' | 'row';
|
|
4
|
+
gateway: string;
|
|
5
|
+
gatewayDisplayName: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
onSelect?: (method: string) => void;
|
|
8
|
+
total: number;
|
|
9
|
+
onSignInClick: () => void;
|
|
10
|
+
reversed?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CheckoutBalancePaymentMethod: React.FC<CheckoutBalancePaymentMethodProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PaymentMethod } from './model.js';
|
|
3
|
+
interface PaymentMethodProps {
|
|
4
|
+
align?: 'column' | 'row';
|
|
5
|
+
gateway: string;
|
|
6
|
+
gatewayDisplayName: string;
|
|
7
|
+
gatewayLogoCfId: string;
|
|
8
|
+
paymentMethod?: PaymentMethod;
|
|
9
|
+
poweredByLogoCfId?: string | undefined;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
onSelect?: (method: PaymentMethod) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const CheckoutPaymentMethod: FC<PaymentMethodProps>;
|
|
15
|
+
export { CheckoutBalancePaymentMethod } from './checkout-balance-payment-method.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum PaymentMethod {
|
|
2
|
+
BankCard = "BANK_CARD",
|
|
3
|
+
BankTransfer = "BANK_TRANSFER",
|
|
4
|
+
PayPal = "PAYPAL",
|
|
5
|
+
CashApp = "CASHAPP",
|
|
6
|
+
Crypto = "CRYPTO",
|
|
7
|
+
AppleGooglePay = "APPLE_AND_GOOGLE_PAY",
|
|
8
|
+
Custom = "CUSTOM"
|
|
9
|
+
}
|
|
10
|
+
export type GatewayInfo = {
|
|
11
|
+
name: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
logoCfImageId: string;
|
|
14
|
+
poweredByImageCfImageId?: string;
|
|
15
|
+
paymentMethods: PaymentMethod[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaymentMethod, Price } from '@storefront/models';
|
|
3
|
+
interface PaymentMethodsProps {
|
|
4
|
+
possibleGateways: {
|
|
5
|
+
availableGateways: string[];
|
|
6
|
+
requiresSignInGateways: string[];
|
|
7
|
+
};
|
|
8
|
+
setGateway: (value: string) => void;
|
|
9
|
+
setPaymentMethod: (value: PaymentMethod) => void;
|
|
10
|
+
balance?: Price | null;
|
|
11
|
+
totalAndDiscount: {
|
|
12
|
+
total: number;
|
|
13
|
+
totalWithDiscount: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
onSignInClick: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const PaymentMethods: React.FC<PaymentMethodsProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProcessingPaymentModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Referral } from '@storefront/models';
|
|
3
|
+
export declare const ReferralBlock: () => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
interface ReferralBlockStepsProps {
|
|
5
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ReferralBlockSteps: React.FC<ReferralBlockStepsProps>;
|
|
8
|
+
interface ReferralBlockInfoProps {
|
|
9
|
+
referral: Referral;
|
|
10
|
+
}
|
|
11
|
+
export declare const ReferralBlockInfo: React.FC<ReferralBlockInfoProps>;
|
|
12
|
+
export declare const SkeletonReferralBlock: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Mask: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SecuredBySsl: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Sidebar: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IconNames } from '@builder/constants';
|
|
2
|
+
type StatItemProps = {
|
|
3
|
+
iconName?: IconNames;
|
|
4
|
+
title: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
image?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
imageName?: string;
|
|
9
|
+
imageDescription?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
logo?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const StatItem: React.FC<StatItemProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusVariant } from '../OrdersTable';
|
|
2
|
+
type StatusIndicatorProps = {
|
|
3
|
+
status: string;
|
|
4
|
+
variant: StatusVariant;
|
|
5
|
+
};
|
|
6
|
+
export declare const StatusIndicator: ({ status, variant }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SubscriptionCoupon as SubscriptionCouponModel } from '@storefront/models';
|
|
2
|
+
interface SubscriptionCouponProps {
|
|
3
|
+
coupon: SubscriptionCouponModel;
|
|
4
|
+
currency: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SubscriptionCoupon: React.FC<SubscriptionCouponProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GatewayDetail, SubscriptionItem } from '@storefront/models';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type SubscriptionsTableProps = {
|
|
4
|
+
subscriptions: SubscriptionItem[] | null;
|
|
5
|
+
gatewaysDetail: GatewayDetail[] | null;
|
|
6
|
+
totalCount: number;
|
|
7
|
+
page: number;
|
|
8
|
+
setPage: (page: number) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const SubscriptionsTable: React.FC<SubscriptionsTableProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TableProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
interface TableItemProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const TableItem: React.FC<TableItemProps>;
|
|
11
|
+
interface TableItemTitleProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const TableItemTitle: React.FC<TableItemTitleProps>;
|
|
16
|
+
export declare const Table: React.FC<TableProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TermsOfService: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from './StatItem';
|
|
2
|
+
export * from './Sidebar';
|
|
3
|
+
export * from './CustomerDashboard';
|
|
4
|
+
export * from './Auth';
|
|
5
|
+
export * from './ReferralBlock';
|
|
6
|
+
export * from './PageTitle';
|
|
7
|
+
export * from './NoItemsBlock';
|
|
8
|
+
export * from './OrdersTable';
|
|
9
|
+
export * from './Table';
|
|
10
|
+
export * from './Pagination';
|
|
11
|
+
export * from './StatusIndicator';
|
|
12
|
+
export * from './CheckoutItems';
|
|
13
|
+
export * from './CheckoutOperational';
|
|
14
|
+
export * from './CheckoutProduct';
|
|
15
|
+
export * from './CheckoutPrices';
|
|
16
|
+
export * from './CheckoutFooter';
|
|
17
|
+
export * from './CheckoutHeader';
|
|
18
|
+
export * from './CheckoutPrices';
|
|
19
|
+
export * from './Coupon';
|
|
20
|
+
export * from './CustomFields';
|
|
21
|
+
export * from './ConnectDiscord';
|
|
22
|
+
export * from './PaymentMethods';
|
|
23
|
+
export * from './PaymentMethod';
|
|
24
|
+
export * from './AuthModal';
|
|
25
|
+
export * from './DeliveryItem';
|
|
26
|
+
export * from './OpenDelivery';
|
|
27
|
+
export * from './InsufficientBalance';
|
|
28
|
+
export * from './TermsOfService';
|
|
29
|
+
export * from './SecuredBySsl';
|
|
30
|
+
export * from './ChargeBlocksRenderer';
|
|
31
|
+
export * from './ChargeStatusBlock';
|
|
32
|
+
export * from './PayPalF&FNote';
|
|
33
|
+
export * from './ChargeItems';
|
|
34
|
+
export * from './CheckoutOrderMainData';
|
|
35
|
+
export * from './CashAppVerify';
|
|
36
|
+
export * from './TrackPayment';
|
|
37
|
+
export * from './TicketRow';
|
|
38
|
+
export * from './SubscriptionsTable';
|
|
39
|
+
export * from './SubscriptionStatusBadge';
|
|
40
|
+
export * from './PageLoading';
|
|
41
|
+
export * from './SubscriptionProduct';
|
|
42
|
+
export * from './ChangeSubscriptionPlan';
|
|
43
|
+
export * from './SubscriptionExpirationDate';
|
|
44
|
+
export * from './SubscriptionCoupon';
|
|
45
|
+
export * from './ActivePaymentMethod';
|
|
46
|
+
export * from './ActiveSubscriptionProduct';
|
|
47
|
+
export * from './ChoosePlanUpgradeMethod';
|
|
48
|
+
export * from './OrderStatusBlock';
|
|
49
|
+
export * from './LeaveAReview';
|
|
50
|
+
export * from './SubmitReview';
|
|
51
|
+
export * from './SubscriptionExpiration';
|
|
52
|
+
export * from './ProcessingPayment';
|
|
53
|
+
export * from './CancelSubscription';
|