@trafilea/afrodita-components 2.3.1 → 2.3.2
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/build/dts/components/collection/index.d.ts +5 -0
- package/build/dts/components/collection/product/mobile/ProductItemMobile.d.ts +1 -1
- package/build/dts/components/collection/product/mobile/ProductItemMobile.stories.d.ts +1 -1
- package/build/dts/components/collection/product/types.d.ts +1 -0
- package/build/dts/components/index.d.ts +2 -1
- package/build/index.d.ts +28 -1
- package/build/index.esm.js +265 -210
- package/build/index.esm.js.map +1 -1
- package/build/index.js +265 -209
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import withProductGrid from './grid/WithProductGrid';
|
|
2
|
+
export declare const Collection: {
|
|
3
|
+
ProductItemMobile: ({ title, image, price, rating, size, tags, alignName, }: import("./product/mobile/ProductItemMobile").ProductItemSmallMobileProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
4
|
+
withProductGrid: typeof withProductGrid;
|
|
5
|
+
};
|
|
@@ -3,5 +3,5 @@ import { ProductItemProps } from '../types';
|
|
|
3
3
|
export interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
4
4
|
size: ComponentSize.Medium | ComponentSize.Small;
|
|
5
5
|
}
|
|
6
|
-
declare const ProductItemMobile: ({ title, image, price, rating, size, tags, }: ProductItemSmallMobileProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const ProductItemMobile: ({ title, image, price, rating, size, tags, alignName, }: ProductItemSmallMobileProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default ProductItemMobile;
|
|
@@ -3,7 +3,7 @@ import { ProductItemSmallMobileProps } from './ProductItemMobile';
|
|
|
3
3
|
import { ComponentSize } from '../../../../types/enums';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ title, image, price, rating, size, tags, }: ProductItemSmallMobileProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
6
|
+
component: ({ title, image, price, rating, size, tags, alignName, }: ProductItemSmallMobileProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
7
7
|
argTypes: {
|
|
8
8
|
size: {
|
|
9
9
|
options: ComponentSize[];
|
|
@@ -38,4 +38,5 @@ import { DropdownListIcons } from './dropdown-list-icons/DropdownListIcons';
|
|
|
38
38
|
import Image from './shared/image/Image';
|
|
39
39
|
import * as AmazonAndPaypalButtons from './icon-button/amazonAndPaypal/AmazonPaypalButtons';
|
|
40
40
|
import * as CrossSell from './cross-sell';
|
|
41
|
-
|
|
41
|
+
import { Collection } from './collection/index';
|
|
42
|
+
export { ThemeProvider, Icon, Card, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, SimpleDropdown, SizeSelector, SizeFitGuide, TextButton, DiscountTag, PriceLabel, SingleColorPicker, MultiColorPicker, ProductGallery, Rating, FitPredictor, ProgressBar, IconButton, Tooltip, Accordion, AccordionBox, AccordionIcon, Checkbox, RadioGroupInput, Bundle, CategoryTag, SeasonOfferTag, Timer, Input, PaymentMethod, OfferBanner, Totals, DeliveryDetails, ScrollToTop, OrderBar, SizeTable, SimpleOrderItem, Review, SliderNavigation, DropdownListIcons, Image, AmazonAndPaypalButtons, CrossSell, Collection, };
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React, { ReactNode, ElementType } from 'react';
|
|
3
3
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
4
|
+
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
4
5
|
|
|
5
6
|
declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
6
7
|
|
|
@@ -959,4 +960,30 @@ declare namespace index_d {
|
|
|
959
960
|
};
|
|
960
961
|
}
|
|
961
962
|
|
|
962
|
-
|
|
963
|
+
interface ProductItemProps {
|
|
964
|
+
title: string;
|
|
965
|
+
image: ImageProps;
|
|
966
|
+
price: Pick<PriceLabelProps, 'finalPrice' | 'originalPrice' | 'color'>;
|
|
967
|
+
rating: Pick<RatingProps, 'rating' | 'reviews'>;
|
|
968
|
+
tags?: {
|
|
969
|
+
categoryTagText: string;
|
|
970
|
+
seasonOfferTagText: string;
|
|
971
|
+
};
|
|
972
|
+
alignName?: 'left' | 'center';
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
976
|
+
size: ComponentSize.Medium | ComponentSize.Small;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React.FC<P>, data: ProductItemProps[]): {
|
|
980
|
+
(props: Omit<P, 'title' | 'image' | 'price' | 'rating'>): JSX.Element;
|
|
981
|
+
displayName: string;
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
declare const Collection: {
|
|
985
|
+
ProductItemMobile: ({ title, image, price, rating, size, tags, alignName, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
986
|
+
withProductGrid: typeof withProductGrid;
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
export { _default as Accordion, AccordionBox, AccordionIcon, AmazonPaypalButtons_d as AmazonAndPaypalButtons, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default$1 as Card, CardSectionType, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, index_d$1 as Input, InputValidationType, MultiColorPicker, OfferBanner, OrderBar, Pattern, PaymentMethod, PriceLabel, ProductGallery, ProgressBar, RadioGroupInput, RadioGroupOption, Rating, Review, ScrollToTop, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, TextButton, Theme, ThemeProvider, Timer, Tooltip, Totals, WithTestId };
|