@trafilea/afrodita-components 6.48.1 → 6.49.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 +56 -5
- package/build/index.esm.js +1077 -929
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1079 -929
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { CacheProvider, Global, css } from '@emotion/react';
|
|
|
14
14
|
import { RadioGroupOption as RadioGroupOption$1, IconProps as IconProps$2, ContentType as ContentType$1 } from 'src/types/types';
|
|
15
15
|
import { IconName as IconName$1 } from 'src/components/atoms/Icon/types';
|
|
16
16
|
import { OfferAtCartBenefitProps as OfferAtCartBenefitProps$1 } from 'src/components/molecules';
|
|
17
|
-
import { ImageProps as ImageProps$1 } from 'src/components/atoms';
|
|
17
|
+
import { ImageProps as ImageProps$1, IconName as IconName$2 } from 'src/components/atoms';
|
|
18
18
|
import { ProductItemProps as ProductItemProps$1 } from 'src/components/collection/product/types';
|
|
19
19
|
import facepaint from 'facepaint';
|
|
20
20
|
export { default as createCache } from '@emotion/cache';
|
|
@@ -1493,7 +1493,7 @@ interface CloseButtonProps {
|
|
|
1493
1493
|
size: number;
|
|
1494
1494
|
}
|
|
1495
1495
|
|
|
1496
|
-
interface DescriptionProps {
|
|
1496
|
+
interface DescriptionProps$1 {
|
|
1497
1497
|
text: string;
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
@@ -1515,7 +1515,7 @@ declare const CartProductItem: {
|
|
|
1515
1515
|
Title: ({ title }: TitleProps) => JSX.Element;
|
|
1516
1516
|
Tag: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
|
|
1517
1517
|
Promo: ({ text }: PromoProps) => JSX.Element;
|
|
1518
|
-
Description: ({ text }: DescriptionProps) => JSX.Element;
|
|
1518
|
+
Description: ({ text }: DescriptionProps$1) => JSX.Element;
|
|
1519
1519
|
CloseButton: ({ onClick, size }: CloseButtonProps) => JSX.Element;
|
|
1520
1520
|
TrashButton: ({ onClick, size }: TrashButtonProps) => JSX.Element;
|
|
1521
1521
|
};
|
|
@@ -3985,6 +3985,31 @@ declare namespace CartItemCard {
|
|
|
3985
3985
|
};
|
|
3986
3986
|
}
|
|
3987
3987
|
|
|
3988
|
+
declare type ClubOfferRadios$1 = 'one-time-purchase' | 'club-offer-selector-subscribe-and-save';
|
|
3989
|
+
declare type ClubOfferProps$1 = {
|
|
3990
|
+
singlePurchaseLabel: string;
|
|
3991
|
+
subscriptionLabel: string;
|
|
3992
|
+
pricing: {
|
|
3993
|
+
listPrice: number;
|
|
3994
|
+
discountedPrice: number;
|
|
3995
|
+
clubOfferDiscountPercentage: number;
|
|
3996
|
+
};
|
|
3997
|
+
clubOfferBenefits: string[];
|
|
3998
|
+
benefits?: string[];
|
|
3999
|
+
onChange: (values: {
|
|
4000
|
+
clubOffer: boolean;
|
|
4001
|
+
originalPrice: number;
|
|
4002
|
+
discountedPrice: number;
|
|
4003
|
+
}) => void;
|
|
4004
|
+
className?: string;
|
|
4005
|
+
closeIcon?: boolean;
|
|
4006
|
+
currencySymbol: string;
|
|
4007
|
+
discountLabel?: string;
|
|
4008
|
+
disabledInputs?: ClubOfferRadios$1[];
|
|
4009
|
+
};
|
|
4010
|
+
|
|
4011
|
+
declare const ClubOfferSelector: react__default.FC<ClubOfferProps$1>;
|
|
4012
|
+
|
|
3988
4013
|
declare type ClubOfferRadios = 'one-time-purchase' | 'club-offer-selector-subscribe-and-save';
|
|
3989
4014
|
declare type ClubOfferProps = {
|
|
3990
4015
|
singlePurchaseLabel: string;
|
|
@@ -4006,9 +4031,10 @@ declare type ClubOfferProps = {
|
|
|
4006
4031
|
currencySymbol: string;
|
|
4007
4032
|
discountLabel?: string;
|
|
4008
4033
|
disabledInputs?: ClubOfferRadios[];
|
|
4034
|
+
termsTextLink?: string;
|
|
4009
4035
|
};
|
|
4010
4036
|
|
|
4011
|
-
declare const
|
|
4037
|
+
declare const ClubOfferSelector2: react__default.FC<ClubOfferProps>;
|
|
4012
4038
|
|
|
4013
4039
|
declare type JoinClubProps = {
|
|
4014
4040
|
onCheckToggle: (value: boolean) => void;
|
|
@@ -4289,6 +4315,31 @@ declare type PriceType = {
|
|
|
4289
4315
|
|
|
4290
4316
|
declare const SubscriptionPlanSelector: FC<SubscriptionPlanSelectorProps>;
|
|
4291
4317
|
|
|
4318
|
+
declare const BottomButtonVersionsTypes: {
|
|
4319
|
+
outline: string;
|
|
4320
|
+
link: string;
|
|
4321
|
+
};
|
|
4322
|
+
declare type TwoCtasCardVersionsTypes = typeof BottomButtonVersionsTypes[keyof typeof BottomButtonVersionsTypes];
|
|
4323
|
+
declare type DescriptionProps = {
|
|
4324
|
+
text: string;
|
|
4325
|
+
smallerText?: string;
|
|
4326
|
+
iconName?: IconName$2;
|
|
4327
|
+
type?: 'terms' | 'default';
|
|
4328
|
+
link?: string;
|
|
4329
|
+
};
|
|
4330
|
+
|
|
4331
|
+
declare type TwoCtasAtCartProps = {
|
|
4332
|
+
title: string;
|
|
4333
|
+
saveMoreButtonLabel: string;
|
|
4334
|
+
saveMoreButtonAction: () => void;
|
|
4335
|
+
descriptions: DescriptionProps[];
|
|
4336
|
+
saveLessButtonLabel: string;
|
|
4337
|
+
saveLessButtonAction: () => void;
|
|
4338
|
+
bottomCopy?: string;
|
|
4339
|
+
version: TwoCtasCardVersionsTypes;
|
|
4340
|
+
};
|
|
4341
|
+
declare function TwoCtasAtCart({ title, saveLessButtonAction, saveLessButtonLabel, saveMoreButtonAction, saveMoreButtonLabel, descriptions, version, bottomCopy, }: Readonly<TwoCtasAtCartProps>): JSX.Element;
|
|
4342
|
+
|
|
4292
4343
|
declare module '@emotion/react' {
|
|
4293
4344
|
interface Theme extends Theme {
|
|
4294
4345
|
}
|
|
@@ -4369,4 +4420,4 @@ declare const benefitsRawHtml: OfferAtCartBenefitProps[];
|
|
|
4369
4420
|
declare const benefitsRawHtmlV2: OfferAtCartBenefitProps[];
|
|
4370
4421
|
declare const sizeOptions: SizeOptionProps[];
|
|
4371
4422
|
|
|
4372
|
-
export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipFrequency, AutoshipFrequencyDropdown, AutoshipOfferCard, AutoshipOfferCardCta, AutoshipPdpCard, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, BenefitsList, BenefitsListProps, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerOption, ColorPickerWithTooltip, ColorsState, CommonProps, 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, HorizontalDivider, HorizontalDividerProps, HurryUp, HurryUpProps, ISubscriptionFrequencyDropdown, Icon, IconButton, IconName, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, JoinClubCard, Icon$1 as LibIcon, IconProps$1 as LibIconProps, LikeButton, LikeButtonColors, LikeButtonProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferAtCart, OfferAtCartBenefitProps, OfferAtCartProps, OfferAtCartV2, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, PriceLabelV5, PriceType, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProductGalleryMobileV5, ProgressBar, QuantityPicker, RadioConfig, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, RadiosConfig, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SelectorOnChangeProps, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeChartTableV3, SizeDropdown, SizeFitGuide, SizeOption, SizeOptionProps, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, SubscriptionPlanSelector, SubscriptionPlanSelectorProps, SubscriptionPlanSelectorRadios, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Toast, ToggleComponent, Tooltip, TooltipContent, TooltipHeader, TooltipType, Totals, TrackingProgress, TrackingProgressV2, Video, VideoProps, WithBenefits, WithChildren, WithTestId, benefits, benefitsRawHtml, benefitsRawHtmlV2, buildImageUrl, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isDangerouslySetInnerHTML, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sizeOptions, sliceString, title, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
4423
|
+
export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipFrequency, AutoshipFrequencyDropdown, AutoshipOfferCard, AutoshipOfferCardCta, AutoshipPdpCard, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, BenefitsList, BenefitsListProps, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferSelector2, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerOption, ColorPickerWithTooltip, ColorsState, CommonProps, 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, HorizontalDivider, HorizontalDividerProps, HurryUp, HurryUpProps, ISubscriptionFrequencyDropdown, Icon, IconButton, IconName, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, JoinClubCard, Icon$1 as LibIcon, IconProps$1 as LibIconProps, LikeButton, LikeButtonColors, LikeButtonProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferAtCart, OfferAtCartBenefitProps, OfferAtCartProps, OfferAtCartV2, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, PriceLabelV5, PriceType, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProductGalleryMobileV5, ProgressBar, QuantityPicker, RadioConfig, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, RadiosConfig, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SelectorOnChangeProps, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeChartTableV3, SizeDropdown, SizeFitGuide, SizeOption, SizeOptionProps, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, SubscriptionPlanSelector, SubscriptionPlanSelectorProps, SubscriptionPlanSelectorRadios, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Toast, ToggleComponent, Tooltip, TooltipContent, TooltipHeader, TooltipType, Totals, TrackingProgress, TrackingProgressV2, TwoCtasAtCart, Video, VideoProps, WithBenefits, WithChildren, WithTestId, benefits, benefitsRawHtml, benefitsRawHtmlV2, buildImageUrl, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isDangerouslySetInnerHTML, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sizeOptions, sliceString, title, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|