@trafilea/afrodita-components 6.23.7 → 6.25.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,41 @@ 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
+ declare const ClubOfferSelector: React__default.FC<ClubOfferProps>;
3727
3728
 
3728
- interface TableProps {
3729
- headers: string[];
3730
- data: string[][];
3731
- newSizeTableCss?: boolean;
3732
- }
3729
+ declare type JoinClubProps = {
3730
+ onCheckToggle: (value: boolean) => void;
3731
+ isChecked: boolean;
3732
+ srcImage: string;
3733
+ link: string;
3734
+ bodyCopy: string;
3735
+ titleCopy: string;
3736
+ };
3733
3737
 
3734
- declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
3738
+ declare function JoinClubCard({ onCheckToggle, isChecked, srcImage, link, bodyCopy, titleCopy, }: JoinClubProps): JSX.Element;
3735
3739
 
3736
3740
  interface ProductCardProps extends ProductItemProps {
3737
3741
  size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
@@ -3783,6 +3787,49 @@ interface ProductCardV3Props extends ProductItemProps {
3783
3787
  }
3784
3788
  declare const ProductCardV3: FC<ProductCardV3Props>;
3785
3789
 
3790
+ declare type ImagesSliderConfig = {
3791
+ width: string;
3792
+ height: string;
3793
+ borderRadius: string;
3794
+ spacesBetweenImages: string;
3795
+ };
3796
+ declare type ThumbnailSettings = {
3797
+ swipeToSlide: boolean;
3798
+ focusOnSelect: boolean;
3799
+ infinite: boolean;
3800
+ centerPadding: string;
3801
+ slidesToShow: number;
3802
+ speed: number;
3803
+ arrows: boolean;
3804
+ responsive: Responsive[];
3805
+ };
3806
+ declare type Responsive = {
3807
+ breakpoint: number;
3808
+ settings: {
3809
+ slidesToShow: number;
3810
+ slidesToScroll?: number;
3811
+ centerMode?: boolean;
3812
+ };
3813
+ };
3814
+
3815
+ declare type ProductGalleryMobileProps = {
3816
+ images: ContentType[];
3817
+ topTag?: JSX.Element;
3818
+ bottomTag?: JSX.Element;
3819
+ productImageDataTestId?: string;
3820
+ imagesSliderConfig?: ImagesSliderConfig;
3821
+ thumbnailSettings?: ThumbnailSettings;
3822
+ };
3823
+ declare const ProductGalleryMobileV4: React__default.FC<ProductGalleryMobileProps>;
3824
+
3825
+ interface TableProps {
3826
+ headers: string[];
3827
+ data: string[][];
3828
+ newSizeTableCss?: boolean;
3829
+ }
3830
+
3831
+ declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
3832
+
3786
3833
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
3787
3834
 
3788
3835
  declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
@@ -3848,4 +3895,4 @@ declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
3848
3895
  declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
3849
3896
  declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
3850
3897
 
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 };
3898
+ 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, JoinClubCard, 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 };