@trafilea/afrodita-components 6.31.5 → 6.32.1

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
@@ -196,9 +196,10 @@ declare const Image: React.FC<ImageProps>;
196
196
  declare type ToggleProps = {
197
197
  onToggle: (value: boolean) => void;
198
198
  isChecked?: boolean;
199
+ color?: string;
199
200
  };
200
201
 
201
- declare const ToggleComponent: ({ onToggle, isChecked }: ToggleProps) => JSX.Element;
202
+ declare const ToggleComponent: ({ onToggle, isChecked, color, }: ToggleProps) => JSX.Element;
202
203
 
203
204
  declare type Props = Omit<IconProps$1, 'name'>;
204
205
  declare type IconComponent = react__default.FC<Props>;
@@ -2720,7 +2721,7 @@ declare function FilteringDropdown<T>({ options, disabled, placeHolder, wide, sl
2720
2721
 
2721
2722
  declare type Value<T> = DropdownOption<T>;
2722
2723
  declare type OnChange<T> = (option: Value<T>) => void;
2723
- declare type CommonProps<T> = {
2724
+ declare type CommonProps$1<T> = {
2724
2725
  options: Value<T>[];
2725
2726
  disabled?: boolean;
2726
2727
  wide?: boolean;
@@ -2737,12 +2738,12 @@ declare type ControlledProps<T> = {
2737
2738
  value: Value<T>;
2738
2739
  onChange: OnChange<T>;
2739
2740
  selectedOptionWeight?: number | string;
2740
- } & CommonProps<T>;
2741
+ } & CommonProps$1<T>;
2741
2742
  declare type UncontrolledProps<T> = {
2742
2743
  value?: never;
2743
2744
  onChange?: OnChange<T>;
2744
2745
  selectedOptionWeight?: number | string;
2745
- } & CommonProps<T>;
2746
+ } & CommonProps$1<T>;
2746
2747
  declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
2747
2748
  declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, required, showRequiredPlaceholder, selectedOptionWeight, }: SimpleDropdownProps<T>): JSX.Element;
2748
2749
 
@@ -3785,6 +3786,24 @@ declare type VideoProps = {
3785
3786
  } & DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
3786
3787
  declare const Video: React.FC<VideoProps>;
3787
3788
 
3789
+ declare type AutoshipFrequency$1 = {
3790
+ values: number[];
3791
+ unit: string;
3792
+ };
3793
+ interface ISubscriptionFrequencyDropdown {
3794
+ frequency: AutoshipFrequency$1;
3795
+ onChange?: (value: DropdownOption<number>) => void;
3796
+ }
3797
+ declare const AutoshipFrequencyDropdown: FC<ISubscriptionFrequencyDropdown>;
3798
+
3799
+ declare type BenefitsListProps = {
3800
+ benefits: string[];
3801
+ isSelected: boolean;
3802
+ selectedColor: string;
3803
+ baseColor: string;
3804
+ };
3805
+ declare const BenefitsList: FC<BenefitsListProps>;
3806
+
3788
3807
  interface CartItemCardProps {
3789
3808
  style?: React.CSSProperties;
3790
3809
  className?: string;
@@ -3937,6 +3956,68 @@ interface TableProps {
3937
3956
 
3938
3957
  declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
3939
3958
 
3959
+ declare type SubscriptionPlanSelectorRadios = 'oneTime' | 'subscription';
3960
+ declare type SelectorOnChangeProps = {
3961
+ subscriptionPeriod?: number;
3962
+ withSubscription: boolean;
3963
+ originalPrice: number;
3964
+ discountedPrice: number;
3965
+ };
3966
+ declare type RadioConfig = {
3967
+ label: string;
3968
+ disabled: boolean;
3969
+ checked: boolean;
3970
+ };
3971
+ declare type RadiosConfig = {
3972
+ oneTime: RadioConfig;
3973
+ subscription: RadioConfig;
3974
+ };
3975
+ declare type AutoshipFrequency = {
3976
+ values: number[];
3977
+ unit: string;
3978
+ };
3979
+ declare type TooltipContent = {
3980
+ text: string;
3981
+ color?: string;
3982
+ };
3983
+ declare type TooltipHeader = {
3984
+ title: string;
3985
+ iconFill?: string;
3986
+ iconRight?: string;
3987
+ };
3988
+ declare type TooltipType = {
3989
+ header: TooltipHeader;
3990
+ content: TooltipContent;
3991
+ };
3992
+ declare type PriceType = {
3993
+ listPrice: number;
3994
+ discountedPrice: number;
3995
+ subscriptionDiscountPercentage: number;
3996
+ };
3997
+
3998
+ declare type WithBenefits = {
3999
+ benefits: string[];
4000
+ children?: never;
4001
+ };
4002
+ declare type WithChildren = {
4003
+ benefits?: never;
4004
+ children: ReactNode;
4005
+ };
4006
+ declare type CommonProps = {
4007
+ pricing: PriceType;
4008
+ currencySymbol: string;
4009
+ radios: RadiosConfig;
4010
+ onChange: (values: SelectorOnChangeProps) => void;
4011
+ tooltip?: TooltipType;
4012
+ frequency?: AutoshipFrequency;
4013
+ className?: string;
4014
+ discountTagClassName?: string;
4015
+ closeIcon?: boolean;
4016
+ discountLabel?: string;
4017
+ };
4018
+ declare type SubscriptionPlanSelectorProps = (WithBenefits | WithChildren) & CommonProps;
4019
+ declare const SubscriptionPlanSelector: FC<SubscriptionPlanSelectorProps>;
4020
+
3940
4021
  declare module '@emotion/react' {
3941
4022
  interface Theme extends Theme {
3942
4023
  }
@@ -4007,4 +4088,4 @@ declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
4007
4088
  declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
4008
4089
  declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
4009
4090
 
4010
- export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerOption, ColorPickerWithTooltip, 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, SizeChartTableV3, 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, Toast, ToggleComponent, 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 };
4091
+ export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipFrequency, AutoshipFrequencyDropdown, 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, 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, PriceType, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, 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, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, SubscriptionPlanSelector, 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, 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 };