@trafilea/afrodita-components 6.23.6 → 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 +79 -41
- package/build/index.esm.js +989 -883
- package/build/index.esm.js.map +1 -1
- package/build/index.js +990 -883
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +10 -0
- package/build/theme/shapermint.theme.d.ts +10 -0
- package/build/theme/thebodcon.theme.d.ts +10 -0
- package/build/theme/thebodcon.theme.js +12 -2
- package/build/theme/thespadr.theme.d.ts +10 -0
- package/build/theme/truekind.theme.d.ts +10 -0
- package/package.json +1 -1
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: {
|
|
@@ -2382,6 +2392,8 @@ interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
|
2382
2392
|
showClubPriceLabel?: boolean;
|
|
2383
2393
|
isRatingLoading?: boolean;
|
|
2384
2394
|
version?: number;
|
|
2395
|
+
showDiscountPercentageTag?: boolean;
|
|
2396
|
+
discountTag?: DiscountTagProps;
|
|
2385
2397
|
}
|
|
2386
2398
|
|
|
2387
2399
|
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React__default.FC<P>, data: ProductItemProps[]): {
|
|
@@ -3107,9 +3119,10 @@ interface RadioProps {
|
|
|
3107
3119
|
disabled?: boolean;
|
|
3108
3120
|
onChange: (option: RadioGroupOption$1) => void;
|
|
3109
3121
|
style?: React__default.CSSProperties;
|
|
3122
|
+
labelStyle?: React__default.CSSProperties;
|
|
3110
3123
|
useV2Style?: boolean;
|
|
3111
3124
|
}
|
|
3112
|
-
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;
|
|
3113
3126
|
|
|
3114
3127
|
interface StarListProps {
|
|
3115
3128
|
rating: number;
|
|
@@ -3688,48 +3701,30 @@ declare type VideoProps = {
|
|
|
3688
3701
|
} & DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
|
3689
3702
|
declare const Video: React.FC<VideoProps>;
|
|
3690
3703
|
|
|
3691
|
-
declare type
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
focusOnSelect: boolean;
|
|
3700
|
-
infinite: boolean;
|
|
3701
|
-
centerPadding: string;
|
|
3702
|
-
slidesToShow: number;
|
|
3703
|
-
speed: number;
|
|
3704
|
-
arrows: boolean;
|
|
3705
|
-
responsive: Responsive[];
|
|
3706
|
-
};
|
|
3707
|
-
declare type Responsive = {
|
|
3708
|
-
breakpoint: number;
|
|
3709
|
-
settings: {
|
|
3710
|
-
slidesToShow: number;
|
|
3711
|
-
slidesToScroll?: number;
|
|
3712
|
-
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;
|
|
3713
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[];
|
|
3714
3725
|
};
|
|
3715
3726
|
|
|
3716
|
-
declare
|
|
3717
|
-
images: ContentType[];
|
|
3718
|
-
topTag?: JSX.Element;
|
|
3719
|
-
bottomTag?: JSX.Element;
|
|
3720
|
-
productImageDataTestId?: string;
|
|
3721
|
-
imagesSliderConfig?: ImagesSliderConfig;
|
|
3722
|
-
thumbnailSettings?: ThumbnailSettings;
|
|
3723
|
-
};
|
|
3724
|
-
declare const ProductGalleryMobileV4: React__default.FC<ProductGalleryMobileProps>;
|
|
3725
|
-
|
|
3726
|
-
interface TableProps {
|
|
3727
|
-
headers: string[];
|
|
3728
|
-
data: string[][];
|
|
3729
|
-
newSizeTableCss?: boolean;
|
|
3730
|
-
}
|
|
3731
|
-
|
|
3732
|
-
declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
|
|
3727
|
+
declare const ClubOfferSelector: React__default.FC<ClubOfferProps>;
|
|
3733
3728
|
|
|
3734
3729
|
interface ProductCardProps extends ProductItemProps {
|
|
3735
3730
|
size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
|
|
@@ -3781,6 +3776,49 @@ interface ProductCardV3Props extends ProductItemProps {
|
|
|
3781
3776
|
}
|
|
3782
3777
|
declare const ProductCardV3: FC<ProductCardV3Props>;
|
|
3783
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
|
+
|
|
3784
3822
|
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
|
|
3785
3823
|
|
|
3786
3824
|
declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
|
|
@@ -3846,4 +3884,4 @@ declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
|
|
|
3846
3884
|
declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
|
|
3847
3885
|
declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
|
|
3848
3886
|
|
|
3849
|
-
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 };
|