Repository URL to install this package:
|
Version:
2.1.0 ▾
|
import { CommonState } from '@skava/ui/dist/state';
import { ProductItemPlaceholderProps, ItemDetailsType as ItemDetailsTypePlaceholderProps } from 'abstractions/Order/ProductItem/typings';
export interface ProductItemRenderEventProps extends Function {
(state: CommonState): void;
}
export interface OptionDetails {
color?: string;
fit?: string;
size?: string | number;
}
export interface ItemDetails extends ItemDetailsTypePlaceholderProps, OptionDetails {
image?: string;
title?: string;
description?: string;
skuId?: string;
facets?: OptionDetails;
quantity?: string | number;
price?: string;
ratings?: string | number;
regularPrice?: string;
salePrice?: string;
frequencyContent?: string;
}
export declare type ItemDetailType = ItemDetails;
export interface ProductItemButtonLabels {
primary?: string;
secondary?: string;
teritary?: string;
}
export interface ProductItemProps extends ProductItemPlaceholderProps {
itemDetails?: ItemDetailType;
isSubscriptionItem?: boolean;
handleMouseOver?: ProductItemRenderEventProps;
handleMouseOut?: ProductItemRenderEventProps;
handleClick?: ProductItemRenderEventProps;
}