@soma-vertical-web/multi-lib 0.0.16 → 0.0.18
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/contexts/contexts/NextContext.d.ts +4 -0
- package/contexts/contexts/header/HeaderContext.d.ts +6 -0
- package/contexts/contexts/header/MenuMobileContext.d.ts +6 -0
- package/contexts/contexts/product-card/ProductCardContext.d.ts +6 -0
- package/contexts/index.d.ts +13 -1
- package/contexts/store/header.d.ts +24 -0
- package/contexts/store/helpers.d.ts +3 -0
- package/data/helpers/product/generalInfo.d.ts +7 -0
- package/data/helpers/product/image.d.ts +17 -0
- package/data/helpers/product/index.d.ts +1 -1
- package/data/helpers/product/skuInfos.d.ts +11 -0
- package/index.js +4 -4
- package/index.mjs +6196 -4325
- package/layout/index.d.ts +54 -0
- package/layout/team-component/Header/Composite/Bag.d.ts +7 -0
- package/layout/team-component/Header/Composite/Categories.d.ts +5 -0
- package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +7 -0
- package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +7 -0
- package/layout/team-component/Header/Composite/SearchButton.d.ts +6 -0
- package/layout/team-component/Header/Composite/SubMenu.d.ts +5 -0
- package/layout/team-component/Header/Composite/WishList.d.ts +5 -0
- package/layout/team-component/Header/index.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Common/Thumbnail.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Desktop/Categories.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Desktop/MenuRoot.d.ts +4 -0
- package/layout/team-component/Menu/Composite/Desktop/SubCategories/SubCategories.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/MenuBody.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/MenuCategories.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/MenuCategoriesWrapper.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/SubMenu/SubMenu.d.ts +5 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/SubMenu/SubMenuItem.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Body/SubMenu/SubMenuSubCategory.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Header/MenuHeaderContainer.d.ts +5 -0
- package/layout/team-component/Menu/Composite/Mobile/Header/MenuHeaderNavLinks.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/Header/MenuHeaderWrapper.d.ts +7 -0
- package/layout/team-component/Menu/Composite/Mobile/MenuRoot.d.ts +4 -0
- package/layout/team-component/Menu/Composite/Mobile/Navigation/NavigationBar.d.ts +5 -0
- package/layout/team-component/Menu/Composite/Mobile/Navigation/NavigationBarItem.d.ts +7 -0
- package/layout/team-component/Menu/MenuDesktop.d.ts +12 -0
- package/layout/team-component/Menu/MenuMobile.d.ts +18 -0
- package/layout/team-component/ProductCard/Composite/Actions/Actions.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Actions/BuyButton.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Actions/Header.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Media/Media.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Media/Video.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/OutStock.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Price.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Root.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector/Item.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector/SkuItem.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Selectors/StyleSelector.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Title.d.ts +7 -0
- package/layout/team-component/ProductCard/Composite/Wrapper.d.ts +7 -0
- package/layout/team-component/ProductCard/ProductCard.d.ts +51 -0
- package/layout/team-component/ProductCard/helpers.d.ts +18 -0
- package/layout/team-component/ProductCard/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Footer/index.d.ts +5 -4
- package/types/cms/ContentTypes/Header/index.d.ts +4 -13
- package/types/cms/ContentTypes/HelpButton/index.d.ts +3 -2
- package/types/cms/Factories/index.d.ts +0 -2
- package/types/constants.d.ts +36 -5
- package/types/contexts/contexts/global.d.ts +1 -1
- package/types/contexts/contexts/header.d.ts +8 -0
- package/types/contexts/contexts/next.d.ts +4 -0
- package/types/contexts/store/header.d.ts +18 -0
- package/types/contexts/store/helpers.d.ts +7 -0
- package/types/contexts/store/pdp.d.ts +0 -7
- package/types/data/helpers/index.d.ts +9 -1
- package/types/layout/team-components/AddToCart/index.d.ts +2 -2
- package/types/layout/team-components/Header/index.d.ts +63 -0
- package/types/layout/team-components/Menu/Desktop/index.d.ts +2 -2
- package/types/layout/team-components/Menu/index.d.ts +11 -5
- package/types/layout/team-components/ProductCard/index.d.ts +44 -6
- package/contexts/helpers/cart.d.ts +0 -188
- package/contexts/store/freight.d.ts +0 -0
- package/layout/template/PDP/PDPDataContext.d.ts +0 -10
- package/types/layout/core-components/Header/index.d.ts +0 -33
- package/types/layout/team-components/BuyKit/index.d.ts +0 -43
- package/types/layout/team-components/Header/intex.d.ts +0 -24
package/layout/index.d.ts
CHANGED
|
@@ -11,11 +11,65 @@ export declare const layout: {
|
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
FreightCalculation: ({ className, sellerId, skuId, quantity, size, seller, local, CONSTANTS_PROPS, }: import('../types/layout/team-components/FreightCalculation').FreightCalculationProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Header: {
|
|
15
|
+
({ tipBar, miniCart, UserMenu, SearchModal }: import('../types/layout/team-components/Header').HeaderContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
14
18
|
Link: ({ children, adornments, className, disableUnderline, href, mode, size, title, onClick, disablePadding, ...props }: import('./team-component/Link/interfaces').TeamLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
19
|
Media: {
|
|
16
20
|
Image: ({ alt, className, objectFit, ...props }: import('../types/layout/team-components/Media').CustomImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
Video: ({ videoRef, ...props }: import('../types/layout/team-components/Media').VideoProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
22
|
};
|
|
23
|
+
ProductCard: {
|
|
24
|
+
Actions: {
|
|
25
|
+
({ callback, children, className, data, isKit, ...props }: import('../types/layout/team-components/ProductCard').ActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
BuyButton: {
|
|
29
|
+
({ className, isKit, ...props }: import('../types/layout/team-components/ProductCard').BuyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
Header: {
|
|
33
|
+
({ product, tag, size }: import('../types/layout/team-components/ProductCard').HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
Media: {
|
|
37
|
+
({ className, children, hasPriority, showVideo, ...props }: import('../types/global/product').ProductCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
Root: {
|
|
41
|
+
({ children, className, index, isMobile, item, size, order, outStock, shelfTitle, CONSTANTS, WishListToggle, ...props }: import('../types/layout/team-components/ProductCard').RootProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
OutStock: {
|
|
45
|
+
({ className, callback, children, ...props }: import('../types/layout/team-components/ProductCard').OutStockProps): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
Price: {
|
|
49
|
+
({ className, hasDecimal, ...props }: import('../types/layout/team-components/ProductCard').PriceProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
};
|
|
52
|
+
SizeSelector: {
|
|
53
|
+
({ callback, className, children, setNotify, ...props }: import('../types/layout/team-components/ProductCard/Selectors').SizeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
StyleSelector: {
|
|
57
|
+
({ callback, className, data, images, findTexture, ...props }: import('../types/layout/team-components/ProductCard/Selectors').StyleSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
};
|
|
60
|
+
Title: {
|
|
61
|
+
({ tag, className, }: import('../types/layout/team-components/ProductCard').TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
displayName: string;
|
|
63
|
+
};
|
|
64
|
+
Video: {
|
|
65
|
+
({ className, url, poster, ...props }: import('../types/layout/team-components/ProductCard').VideoProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
Wrapper: {
|
|
69
|
+
({ children, className, type, ...props }: import('../types/layout/team-components/ProductCard').WrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
displayName: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
19
73
|
};
|
|
20
74
|
template: {
|
|
21
75
|
pdp: typeof pdp;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeaderWrappersProps } from '../../../../types/layout/team-components/Header';
|
|
2
|
+
|
|
3
|
+
declare const HeaderDesktopWrapper: {
|
|
4
|
+
({ UserMenu, SearchModal }: HeaderWrappersProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default HeaderDesktopWrapper;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeaderWrappersProps } from '../../../../types/layout/team-components/Header';
|
|
2
|
+
|
|
3
|
+
declare const HeaderMobileWrapper: {
|
|
4
|
+
({ UserMenu, SearchModal }: HeaderWrappersProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default HeaderMobileWrapper;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeaderContainerProps } from '../../../types/layout/team-components/Header';
|
|
2
|
+
|
|
3
|
+
declare const Header: {
|
|
4
|
+
({ tipBar, miniCart, UserMenu, SearchModal }: HeaderContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Header;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ThumbNailProps } from '../../../../../types/layout/team-components/Menu';
|
|
2
|
+
|
|
3
|
+
declare const Thumbnail: {
|
|
4
|
+
({ thumbnails, category, isMobile, callBack, }: ThumbNailProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Thumbnail;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CategoriesProps } from '../../../../../types/layout/team-components/Menu/Desktop';
|
|
2
|
+
|
|
3
|
+
declare const Categories: {
|
|
4
|
+
({ children, dividerOnRight, subMenu, ...props }: CategoriesProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Categories;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuCategoriesProps } from '../../../../../../types/layout/team-components/Menu/Mobile';
|
|
2
|
+
|
|
3
|
+
declare const MenuCategories: {
|
|
4
|
+
({ children, mobileBannerAlt, mobileBannerSrc, onClick, textColor, ...props }: MenuCategoriesProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default MenuCategories;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuCategoriesWrapperProps } from '../../../../../../types/layout/team-components/Menu/Mobile';
|
|
2
|
+
|
|
3
|
+
declare const MenuCategoriesWrapper: {
|
|
4
|
+
({ children, link, }: MenuCategoriesWrapperProps): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default MenuCategoriesWrapper;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SubMenuSubCategoryProps } from '../../../../../../../types/layout/team-components/Menu/Mobile';
|
|
2
|
+
|
|
3
|
+
declare const SubMenuSubCategory: {
|
|
4
|
+
({ subcategory, submenuLabel, }: SubMenuSubCategoryProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default SubMenuSubCategory;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuHeaderNavLinksProps } from '../../../../../../types/layout/team-components/Menu/Mobile';
|
|
2
|
+
|
|
3
|
+
declare const MenuHeaderNavLinks: {
|
|
4
|
+
({ navigationLinks }: MenuHeaderNavLinksProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default MenuHeaderNavLinks;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuHeaderWrapperProps } from '../../../../../../types/layout/team-components/Menu/Mobile';
|
|
2
|
+
|
|
3
|
+
declare const MenuHeaderWrapper: {
|
|
4
|
+
({ title, subtitle }: MenuHeaderWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default MenuHeaderWrapper;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavigationBarItemProps } from '../../../../../../types/layout/team-components/Menu/Mobile';
|
|
2
|
+
|
|
3
|
+
declare const NavigationBarItem: {
|
|
4
|
+
({ children, ...props }: NavigationBarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default NavigationBarItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const MenuDesktop: {
|
|
2
|
+
Root: import('react').ComponentType<import('../../../types/layout/team-components/Menu/Desktop').MenuRootProps>;
|
|
3
|
+
Categories: {
|
|
4
|
+
({ children, dividerOnRight, subMenu, ...props }: import('../../../types/layout/team-components/Menu/Desktop').CategoriesProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
Thumbnail: {
|
|
8
|
+
({ thumbnails, category, isMobile, callBack, }: import('../../../types/layout/team-components/Menu').ThumbNailProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default MenuDesktop;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const MenuMobile: {
|
|
2
|
+
Root: import('react').ComponentType<{
|
|
3
|
+
children?: import('react').ReactNode | undefined;
|
|
4
|
+
}>;
|
|
5
|
+
NavigationBar: {
|
|
6
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
Header: {
|
|
10
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
Body: {
|
|
14
|
+
({ className, ...props }: import('../../../types/layout/team-components/Menu/Mobile').MenuBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default MenuMobile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsProps } from '../../../../../types/layout/team-components/ProductCard';
|
|
2
|
+
|
|
3
|
+
declare const Actions: {
|
|
4
|
+
({ callback, children, className, data, isKit, ...props }: ActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Actions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BuyButtonProps } from '../../../../../types/layout/team-components/ProductCard';
|
|
2
|
+
|
|
3
|
+
declare const BuyButton: {
|
|
4
|
+
({ className, isKit, ...props }: BuyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default BuyButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProductCardMediaProps } from '../../../../../types/global/product';
|
|
2
|
+
|
|
3
|
+
declare const Media: {
|
|
4
|
+
({ className, children, hasPriority, showVideo, ...props }: ProductCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Media;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OutStockProps } from '../../../../types/layout/team-components/ProductCard';
|
|
2
|
+
|
|
3
|
+
declare const OutStock: {
|
|
4
|
+
({ className, callback, children, ...props }: OutStockProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default OutStock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RootProps } from '../../../../types/layout/team-components/ProductCard';
|
|
2
|
+
|
|
3
|
+
declare const Root: {
|
|
4
|
+
({ children, className, index, isMobile, item, size, order, outStock, shelfTitle, CONSTANTS, WishListToggle, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Root;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SizeSelectorItemProps } from '../../../../../../types/layout/team-components/ProductCard/Selectors';
|
|
2
|
+
|
|
3
|
+
declare const Item: {
|
|
4
|
+
({ disabled, label, size, value, onClick, ...props }: SizeSelectorItemProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Item;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SizeSkuItemProps } from '../../../../../../types/layout/team-components/ProductCard/Selectors';
|
|
2
|
+
|
|
3
|
+
declare const SkuItem: {
|
|
4
|
+
({ active, callback, selectedSku, item, setNotify, }: SizeSkuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default SkuItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SizeSelectorProps } from '../../../../../types/layout/team-components/ProductCard/Selectors';
|
|
2
|
+
|
|
3
|
+
declare const SizeSelector: {
|
|
4
|
+
({ callback, className, children, setNotify, ...props }: SizeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default SizeSelector;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleSelectorProps } from '../../../../../types/layout/team-components/ProductCard/Selectors';
|
|
2
|
+
|
|
3
|
+
declare const StyleSelector: {
|
|
4
|
+
({ callback, className, data, images, findTexture, ...props }: StyleSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default StyleSelector;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const ProductCard: {
|
|
2
|
+
Actions: {
|
|
3
|
+
({ callback, children, className, data, isKit, ...props }: import('../../../types/layout/team-components/ProductCard').ActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
BuyButton: {
|
|
7
|
+
({ className, isKit, ...props }: import('../../../types/layout/team-components/ProductCard').BuyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
Header: {
|
|
11
|
+
({ product, tag, size }: import('../../../types/layout/team-components/ProductCard').HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Media: {
|
|
15
|
+
({ className, children, hasPriority, showVideo, ...props }: import('../../../types/global/product').ProductCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Root: {
|
|
19
|
+
({ children, className, index, isMobile, item, size, order, outStock, shelfTitle, CONSTANTS, WishListToggle, ...props }: import('../../../types/layout/team-components/ProductCard').RootProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
OutStock: {
|
|
23
|
+
({ className, callback, children, ...props }: import('../../../types/layout/team-components/ProductCard').OutStockProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
Price: {
|
|
27
|
+
({ className, hasDecimal, ...props }: import('../../../types/layout/team-components/ProductCard').PriceProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
SizeSelector: {
|
|
31
|
+
({ callback, className, children, setNotify, ...props }: import('../../../types/layout/team-components/ProductCard/Selectors').SizeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
StyleSelector: {
|
|
35
|
+
({ callback, className, data, images, findTexture, ...props }: import('../../../types/layout/team-components/ProductCard/Selectors').StyleSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
Title: {
|
|
39
|
+
({ tag, className, }: import('../../../types/layout/team-components/ProductCard').TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
Video: {
|
|
43
|
+
({ className, url, poster, ...props }: import('../../../types/layout/team-components/ProductCard').VideoProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
Wrapper: {
|
|
47
|
+
({ children, className, type, ...props }: import('../../../types/layout/team-components/ProductCard').WrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
displayName: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export default ProductCard;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HasVariant } from '../../../types/global/product';
|
|
2
|
+
import { ProductCardProps } from '../../../types/layout/team-components/ProductCard';
|
|
3
|
+
|
|
4
|
+
export declare const getAspectRatio: (aspectRatio: string) => number;
|
|
5
|
+
export declare const setVideoPlay: (isIntersection: boolean, element: HTMLVideoElement | null, url?: string) => void;
|
|
6
|
+
export declare const disableSKU: (item: HasVariant) => boolean;
|
|
7
|
+
export declare const getFirstImages: (images: ProductCardProps["image"]) => ProductCardProps["image"];
|
|
8
|
+
export declare const getSKUName: (item: HasVariant, key?: string) => string;
|
|
9
|
+
export declare const removeSlashes: (text: string) => string;
|
|
10
|
+
export declare const getValidOffer: (offers: HasVariant["offers"]["offers"], mainSellerId: string) => {
|
|
11
|
+
listPrice: number;
|
|
12
|
+
price: number;
|
|
13
|
+
availability: string;
|
|
14
|
+
quantity?: number;
|
|
15
|
+
seller: {
|
|
16
|
+
identifier: string;
|
|
17
|
+
};
|
|
18
|
+
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProductCard';
|