@trafilea/afrodita-components 6.23.7 → 6.24.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
@@ -1975,6 +1975,12 @@ declare type ThemeComponent = {
1975
1975
  };
1976
1976
  };
1977
1977
  };
1978
+ subtitle?: {
1979
+ fontSize: string;
1980
+ color: string;
1981
+ fontWeight: string;
1982
+ lineHeight: string;
1983
+ };
1978
1984
  };
1979
1985
  orderSummary: {
1980
1986
  headingTextAlign: string;
@@ -2081,6 +2087,10 @@ declare type ThemeComponent = {
2081
2087
  creditCardSection: {
2082
2088
  borderRadius?: string;
2083
2089
  };
2090
+ coupon?: {
2091
+ paddingDesktop: string;
2092
+ paddingMobile: string;
2093
+ };
2084
2094
  };
2085
2095
  upsell: {
2086
2096
  banner: {
@@ -3109,9 +3119,10 @@ interface RadioProps {
3109
3119
  disabled?: boolean;
3110
3120
  onChange: (option: RadioGroupOption$1) => void;
3111
3121
  style?: React__default.CSSProperties;
3122
+ labelStyle?: React__default.CSSProperties;
3112
3123
  useV2Style?: boolean;
3113
3124
  }
3114
- declare const RadioInput: ({ style, name, value, id, label, checked, disabled, onChange, size, useV2Style, }: RadioProps) => JSX.Element;
3125
+ declare const RadioInput: ({ style, name, value, id, label, checked, disabled, onChange, size, useV2Style, labelStyle, }: RadioProps) => JSX.Element;
3115
3126
 
3116
3127
  interface StarListProps {
3117
3128
  rating: number;
@@ -3690,48 +3701,30 @@ declare type VideoProps = {
3690
3701
  } & DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
3691
3702
  declare const Video: React.FC<VideoProps>;
3692
3703
 
3693
- declare type ImagesSliderConfig = {
3694
- width: string;
3695
- height: string;
3696
- borderRadius: string;
3697
- spacesBetweenImages: string;
3698
- };
3699
- declare type ThumbnailSettings = {
3700
- swipeToSlide: boolean;
3701
- focusOnSelect: boolean;
3702
- infinite: boolean;
3703
- centerPadding: string;
3704
- slidesToShow: number;
3705
- speed: number;
3706
- arrows: boolean;
3707
- responsive: Responsive[];
3708
- };
3709
- declare type Responsive = {
3710
- breakpoint: number;
3711
- settings: {
3712
- slidesToShow: number;
3713
- slidesToScroll?: number;
3714
- centerMode?: boolean;
3704
+ declare type ClubOfferRadios = 'one-time-purchase' | 'club-offer-selector-subscribe-and-save';
3705
+ declare type ClubOfferProps = {
3706
+ singlePurchaseLabel: string;
3707
+ subscriptionLabel: string;
3708
+ pricing: {
3709
+ listPrice: number;
3710
+ discountedPrice: number;
3711
+ clubOfferDiscountPercentage: number;
3715
3712
  };
3713
+ clubOfferBenefits: string[];
3714
+ benefits?: string[];
3715
+ onChange: (values: {
3716
+ clubOffer: boolean;
3717
+ originalPrice: number;
3718
+ discountedPrice: number;
3719
+ }) => void;
3720
+ className?: string;
3721
+ closeIcon?: boolean;
3722
+ currencySymbol: string;
3723
+ discountLabel?: string;
3724
+ disabledInputs?: ClubOfferRadios[];
3716
3725
  };
3717
3726
 
3718
- declare type ProductGalleryMobileProps = {
3719
- images: ContentType[];
3720
- topTag?: JSX.Element;
3721
- bottomTag?: JSX.Element;
3722
- productImageDataTestId?: string;
3723
- imagesSliderConfig?: ImagesSliderConfig;
3724
- thumbnailSettings?: ThumbnailSettings;
3725
- };
3726
- declare const ProductGalleryMobileV4: React__default.FC<ProductGalleryMobileProps>;
3727
-
3728
- interface TableProps {
3729
- headers: string[];
3730
- data: string[][];
3731
- newSizeTableCss?: boolean;
3732
- }
3733
-
3734
- declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
3727
+ declare const ClubOfferSelector: React__default.FC<ClubOfferProps>;
3735
3728
 
3736
3729
  interface ProductCardProps extends ProductItemProps {
3737
3730
  size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
@@ -3783,6 +3776,49 @@ interface ProductCardV3Props extends ProductItemProps {
3783
3776
  }
3784
3777
  declare const ProductCardV3: FC<ProductCardV3Props>;
3785
3778
 
3779
+ declare type ImagesSliderConfig = {
3780
+ width: string;
3781
+ height: string;
3782
+ borderRadius: string;
3783
+ spacesBetweenImages: string;
3784
+ };
3785
+ declare type ThumbnailSettings = {
3786
+ swipeToSlide: boolean;
3787
+ focusOnSelect: boolean;
3788
+ infinite: boolean;
3789
+ centerPadding: string;
3790
+ slidesToShow: number;
3791
+ speed: number;
3792
+ arrows: boolean;
3793
+ responsive: Responsive[];
3794
+ };
3795
+ declare type Responsive = {
3796
+ breakpoint: number;
3797
+ settings: {
3798
+ slidesToShow: number;
3799
+ slidesToScroll?: number;
3800
+ centerMode?: boolean;
3801
+ };
3802
+ };
3803
+
3804
+ declare type ProductGalleryMobileProps = {
3805
+ images: ContentType[];
3806
+ topTag?: JSX.Element;
3807
+ bottomTag?: JSX.Element;
3808
+ productImageDataTestId?: string;
3809
+ imagesSliderConfig?: ImagesSliderConfig;
3810
+ thumbnailSettings?: ThumbnailSettings;
3811
+ };
3812
+ declare const ProductGalleryMobileV4: React__default.FC<ProductGalleryMobileProps>;
3813
+
3814
+ interface TableProps {
3815
+ headers: string[];
3816
+ data: string[][];
3817
+ newSizeTableCss?: boolean;
3818
+ }
3819
+
3820
+ declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
3821
+
3786
3822
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
3787
3823
 
3788
3824
  declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
@@ -3848,4 +3884,4 @@ declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
3848
3884
  declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
3849
3885
  declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
3850
3886
 
3851
- 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 };
3887
+ 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, ClubOfferSelector, 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 };