@trafilea/afrodita-components 6.19.1 → 6.21.0

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/index.d.ts CHANGED
@@ -92,8 +92,88 @@ declare type ImageProps = ImageStyleProps & {
92
92
  };
93
93
  declare const Image: React.FC<ImageProps>;
94
94
 
95
- declare type Props$2 = Omit<IconProps$1, 'name'>;
96
- declare type IconComponent = React__default.FC<Props$2>;
95
+ declare enum CardSectionType {
96
+ Header = 0,
97
+ Footer = 1
98
+ }
99
+ declare enum ComponentSize {
100
+ Large = "large",
101
+ Medium = "medium",
102
+ Small = "small",
103
+ XSmall = "xsmall"
104
+ }
105
+ declare enum ComponentPosition {
106
+ Top = 0,
107
+ Bottom = 1,
108
+ Left = 2,
109
+ Right = 3
110
+ }
111
+ declare enum InputValidationType {
112
+ Error = 0,
113
+ Valid = 1,
114
+ Empty = 2
115
+ }
116
+
117
+ interface ClubOfferTagProps {
118
+ clubOfferText?: string;
119
+ className?: string;
120
+ disabled?: boolean;
121
+ backgroundColor?: string;
122
+ borderColor?: string;
123
+ textColor?: string;
124
+ size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
125
+ style?: React__default.CSSProperties;
126
+ }
127
+ declare const ClubOfferTag: ({ clubOfferText, className, disabled, backgroundColor, borderColor, textColor, size, style, }: ClubOfferTagProps) => JSX.Element;
128
+
129
+ interface DiscountTagProps {
130
+ discount: number;
131
+ offText: string;
132
+ savings?: string;
133
+ showSavings?: boolean;
134
+ disabled?: boolean;
135
+ backgroundColor?: string;
136
+ borderColor?: string;
137
+ textColor?: string;
138
+ size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
139
+ style?: React__default.CSSProperties;
140
+ bordersRounded?: boolean;
141
+ }
142
+ declare const DiscountTag: ({ discount, offText, savings, showSavings, disabled, backgroundColor, borderColor, textColor, size, style, bordersRounded, }: DiscountTagProps) => JSX.Element;
143
+
144
+ interface PriceLabelProps {
145
+ finalPrice: string | number;
146
+ originalPrice?: string | number;
147
+ color?: string;
148
+ size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
149
+ discount?: DiscountTagProps;
150
+ clubOffer?: ClubOfferTagProps;
151
+ finalPriceStyled?: boolean;
152
+ finalPriceStyle?: React__default.CSSProperties;
153
+ originalPriceStyled?: boolean;
154
+ originalPriceUnderlined?: boolean;
155
+ testId?: string;
156
+ clubStyle?: boolean;
157
+ bordersRounded?: boolean;
158
+ }
159
+ declare const PriceLabel: React__default.FC<PriceLabelProps>;
160
+
161
+ declare type Props$2 = PriceLabelProps & {
162
+ savingsDisplay?: boolean;
163
+ pricePerItem?: string;
164
+ hasRoundedSavings?: boolean;
165
+ };
166
+ declare const PriceLabelV2: React__default.FC<Props$2>;
167
+
168
+ declare type Props$1 = PriceLabelProps & {
169
+ savingsDisplay?: boolean;
170
+ itemsQuantity?: number;
171
+ packUnitPrice?: string;
172
+ };
173
+ declare const PriceLabelV3: React__default.FC<Props$1>;
174
+
175
+ declare type Props = Omit<IconProps$1, 'name'>;
176
+ declare type IconComponent = React__default.FC<Props>;
97
177
 
98
178
  declare const Add: IconComponent;
99
179
 
@@ -1338,28 +1418,6 @@ declare const CartProductItem: {
1338
1418
  CloseButton: ({ onClick, size }: CloseButtonProps) => JSX.Element;
1339
1419
  };
1340
1420
 
1341
- declare enum CardSectionType {
1342
- Header = 0,
1343
- Footer = 1
1344
- }
1345
- declare enum ComponentSize {
1346
- Large = "large",
1347
- Medium = "medium",
1348
- Small = "small",
1349
- XSmall = "xsmall"
1350
- }
1351
- declare enum ComponentPosition {
1352
- Top = 0,
1353
- Bottom = 1,
1354
- Left = 2,
1355
- Right = 3
1356
- }
1357
- declare enum InputValidationType {
1358
- Error = 0,
1359
- Valid = 1,
1360
- Empty = 2
1361
- }
1362
-
1363
1421
  declare type Themes = 'Shapermint' | 'Truekind' | 'Revel' | 'TheSpaDr' | 'TheBodCon';
1364
1422
  declare type Theme = {
1365
1423
  name: Themes;
@@ -2225,64 +2283,6 @@ interface CheckboxProps {
2225
2283
  }
2226
2284
  declare const Checkbox: React__default.FC<CheckboxProps>;
2227
2285
 
2228
- interface ClubOfferTagProps {
2229
- clubOfferText?: string;
2230
- className?: string;
2231
- disabled?: boolean;
2232
- backgroundColor?: string;
2233
- borderColor?: string;
2234
- textColor?: string;
2235
- size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
2236
- style?: React__default.CSSProperties;
2237
- }
2238
- declare const ClubOfferTag: ({ clubOfferText, className, disabled, backgroundColor, borderColor, textColor, size, style, }: ClubOfferTagProps) => JSX.Element;
2239
-
2240
- interface DiscountTagProps {
2241
- discount: number;
2242
- offText: string;
2243
- savings?: string;
2244
- showSavings?: boolean;
2245
- disabled?: boolean;
2246
- backgroundColor?: string;
2247
- borderColor?: string;
2248
- textColor?: string;
2249
- size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
2250
- style?: React__default.CSSProperties;
2251
- bordersRounded?: boolean;
2252
- }
2253
- declare const DiscountTag: ({ discount, offText, savings, showSavings, disabled, backgroundColor, borderColor, textColor, size, style, bordersRounded, }: DiscountTagProps) => JSX.Element;
2254
-
2255
- interface PriceLabelProps {
2256
- finalPrice: string | number;
2257
- originalPrice?: string | number;
2258
- color?: string;
2259
- size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
2260
- discount?: DiscountTagProps;
2261
- clubOffer?: ClubOfferTagProps;
2262
- finalPriceStyled?: boolean;
2263
- finalPriceStyle?: React__default.CSSProperties;
2264
- originalPriceStyled?: boolean;
2265
- originalPriceUnderlined?: boolean;
2266
- testId?: string;
2267
- clubStyle?: boolean;
2268
- bordersRounded?: boolean;
2269
- }
2270
- declare const PriceLabel: React__default.FC<PriceLabelProps>;
2271
-
2272
- declare type Props$1 = PriceLabelProps & {
2273
- savingsDisplay?: boolean;
2274
- pricePerItem?: string;
2275
- hasRoundedSavings?: boolean;
2276
- };
2277
- declare const PriceLabelV2: React__default.FC<Props$1>;
2278
-
2279
- declare type Props = PriceLabelProps & {
2280
- savingsDisplay?: boolean;
2281
- itemsQuantity?: number;
2282
- packUnitPrice?: string;
2283
- };
2284
- declare const PriceLabelV3: React__default.FC<Props>;
2285
-
2286
2286
  interface RatingProps {
2287
2287
  rating: number;
2288
2288
  size?: ComponentSize;
@@ -3676,11 +3676,38 @@ declare type VideoProps = {
3676
3676
  } & DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
3677
3677
  declare const Video: React.FC<VideoProps>;
3678
3678
 
3679
+ declare type ImagesSliderConfig = {
3680
+ width: string;
3681
+ height: string;
3682
+ borderRadius: string;
3683
+ spacesBetweenImages: string;
3684
+ };
3685
+ declare type ThumbnailSettings = {
3686
+ swipeToSlide: boolean;
3687
+ focusOnSelect: boolean;
3688
+ infinite: boolean;
3689
+ centerPadding: string;
3690
+ slidesToShow: number;
3691
+ speed: number;
3692
+ arrows: boolean;
3693
+ responsive: Responsive[];
3694
+ };
3695
+ declare type Responsive = {
3696
+ breakpoint: number;
3697
+ settings: {
3698
+ slidesToShow: number;
3699
+ slidesToScroll?: number;
3700
+ centerMode?: boolean;
3701
+ };
3702
+ };
3703
+
3679
3704
  declare type ProductGalleryMobileProps = {
3680
3705
  images: ContentType[];
3681
3706
  topTag?: JSX.Element;
3682
3707
  bottomTag?: JSX.Element;
3683
3708
  productImageDataTestId?: string;
3709
+ imagesSliderConfig?: ImagesSliderConfig;
3710
+ thumbnailSettings?: ThumbnailSettings;
3684
3711
  };
3685
3712
  declare const ProductGalleryMobileV4: React__default.FC<ProductGalleryMobileProps>;
3686
3713
 
@@ -3692,6 +3719,56 @@ interface TableProps {
3692
3719
 
3693
3720
  declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
3694
3721
 
3722
+ interface ProductCardProps extends ProductItemProps {
3723
+ size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
3724
+ imageHover?: ImageProps;
3725
+ topTag?: JSX.Element;
3726
+ bottomTag?: JSX.Element;
3727
+ onClick?: () => void;
3728
+ priceLoading?: boolean;
3729
+ noFollow?: boolean;
3730
+ isRatingLoading?: boolean;
3731
+ discountTag?: string;
3732
+ }
3733
+ declare const ProductCard: FC<ProductCardProps>;
3734
+
3735
+ interface ProductCardV2Props extends ProductItemProps {
3736
+ size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
3737
+ imageHover?: ImageProps;
3738
+ topTag?: JSX.Element;
3739
+ bottomTag?: JSX.Element;
3740
+ onClick?: () => void;
3741
+ onClickEye?: () => void;
3742
+ priceDisplayType?: 'default' | 'styled';
3743
+ priceAtBottom?: boolean;
3744
+ priceLoading?: boolean;
3745
+ noFollow?: boolean;
3746
+ showClubPriceLabel?: boolean;
3747
+ isRatingLoading?: boolean;
3748
+ colorsCopy?: string;
3749
+ discountTag?: string;
3750
+ sellingFast?: boolean;
3751
+ }
3752
+ declare const ProductCardV2: FC<ProductCardV2Props>;
3753
+
3754
+ interface ProductCardV3Props extends ProductItemProps {
3755
+ size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
3756
+ imageHover?: ImageProps;
3757
+ topTag?: JSX.Element;
3758
+ bottomTag?: JSX.Element;
3759
+ onClick?: () => void;
3760
+ onClickEye?: () => void;
3761
+ priceDisplayType?: 'default' | 'styled';
3762
+ priceAtBottom?: boolean;
3763
+ priceLoading?: boolean;
3764
+ noFollow?: boolean;
3765
+ showClubPriceLabel?: boolean;
3766
+ isRatingLoading?: boolean;
3767
+ colorsCopy?: string;
3768
+ discountTag?: string;
3769
+ }
3770
+ declare const ProductCardV3: FC<ProductCardV3Props>;
3771
+
3695
3772
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
3696
3773
 
3697
3774
  declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
@@ -3757,4 +3834,4 @@ declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
3757
3834
  declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
3758
3835
  declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
3759
3836
 
3760
- export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ColorPickerOption, ComponentPosition, ComponentSize, ContentType, CouponCard, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, HurryUp, HurryUpProps, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, Icon$1 as LibIcon, IconProps$1 as LibIconProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeDropdown, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, TrackingProgressV2, Video, VideoProps, WithTestId, buildImageUrl, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
3837
+ export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ColorPickerOption, ComponentPosition, ComponentSize, ContentType, CouponCard, index_d as CrossSell, DeliveryDetails, DeviceType, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, HurryUp, HurryUpProps, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, Icon$1 as LibIcon, IconProps$1 as LibIconProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeDropdown, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, TrackingProgressV2, Video, VideoProps, WithTestId, buildImageUrl, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };