@automattic/wpcom-checkout
Version:
Functions and components used by WordPress.com checkout.
74 lines • 2.75 kB
TypeScript
import { Theme } from '@automattic/composite-checkout';
import { Dispatch, SetStateAction } from 'react';
import type { LineItemType } from './types';
import type { ResponseCart, RemoveProductFromCart, ResponseCartProduct } from '@automattic/shopping-cart';
export declare const NonProductLineItem: import("@emotion/styled").StyledComponent<{
lineItem: LineItemType;
className?: string | null;
isSummary?: boolean;
hasDeleteButton?: boolean;
removeProductFromCart?: () => void;
createUserAndSiteBeforeTransaction?: boolean;
isPwpoUser?: boolean;
} & {
theme?: import("@emotion/react").Theme;
} & {
theme?: Theme;
total?: boolean;
tax?: boolean;
coupon?: boolean;
subtotal?: boolean;
}, {}, {}>;
export declare const LineItem: import("@emotion/styled").StyledComponent<{
product: ResponseCartProduct;
className?: string;
hasDeleteButton?: boolean;
removeProductFromCart?: RemoveProductFromCart;
isRestorable?: boolean;
isSummary?: boolean;
createUserAndSiteBeforeTransaction?: boolean;
responseCart: ResponseCart;
restorableProducts?: ResponseCartProduct[];
setRestorableProducts?: Dispatch<SetStateAction<ResponseCartProduct[]>>;
isPwpoUser?: boolean;
onRemoveProduct?: (label: string) => void;
onRemoveProductClick?: (label: string) => void;
onRemoveProductCancel?: (label: string) => void;
isAkPro500Cart?: boolean;
shouldShowBillingInterval?: boolean;
shouldShowComparison?: boolean;
compareToPrice?: number;
} & {
children?: import("react").ReactNode | undefined;
} & {
theme?: import("@emotion/react").Theme;
} & {
theme?: Theme;
}, {}, {}>;
export declare const CouponLineItem: import("@emotion/styled").StyledComponent<{
lineItem: LineItemType;
className?: string | null;
isSummary?: boolean;
hasDeleteButton?: boolean;
removeProductFromCart?: () => void;
createUserAndSiteBeforeTransaction?: boolean;
isPwpoUser?: boolean;
hasPartnerCoupon?: boolean;
} & {
theme?: import("@emotion/react").Theme;
} & {
theme?: Theme;
}, {}, {}>;
export declare function LineItemPrice({ actualAmount, crossedOutAmount, }: {
actualAmount?: string;
crossedOutAmount?: string;
}): import("react/jsx-runtime").JSX.Element;
export declare function LineItemSublabelAndPrice({ product, shouldShowComparison, compareToPrice, }: {
product: ResponseCartProduct;
shouldShowComparison?: boolean;
compareToPrice?: number;
}): import("react/jsx-runtime").JSX.Element;
export declare function LineItemBillingInterval({ product }: {
product: ResponseCartProduct;
}): import("react/jsx-runtime").JSX.Element | null | undefined;
//# sourceMappingURL=checkout-line-items.d.ts.map