@trafilea/afrodita-components 6.31.5 → 6.32.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 +84 -4
- package/build/index.esm.js +955 -798
- package/build/index.esm.js.map +1 -1
- package/build/index.js +958 -798
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -2720,7 +2720,7 @@ declare function FilteringDropdown<T>({ options, disabled, placeHolder, wide, sl
|
|
|
2720
2720
|
|
|
2721
2721
|
declare type Value<T> = DropdownOption<T>;
|
|
2722
2722
|
declare type OnChange<T> = (option: Value<T>) => void;
|
|
2723
|
-
declare type CommonProps<T> = {
|
|
2723
|
+
declare type CommonProps$1<T> = {
|
|
2724
2724
|
options: Value<T>[];
|
|
2725
2725
|
disabled?: boolean;
|
|
2726
2726
|
wide?: boolean;
|
|
@@ -2737,12 +2737,12 @@ declare type ControlledProps<T> = {
|
|
|
2737
2737
|
value: Value<T>;
|
|
2738
2738
|
onChange: OnChange<T>;
|
|
2739
2739
|
selectedOptionWeight?: number | string;
|
|
2740
|
-
} & CommonProps<T>;
|
|
2740
|
+
} & CommonProps$1<T>;
|
|
2741
2741
|
declare type UncontrolledProps<T> = {
|
|
2742
2742
|
value?: never;
|
|
2743
2743
|
onChange?: OnChange<T>;
|
|
2744
2744
|
selectedOptionWeight?: number | string;
|
|
2745
|
-
} & CommonProps<T>;
|
|
2745
|
+
} & CommonProps$1<T>;
|
|
2746
2746
|
declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
|
|
2747
2747
|
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, required, showRequiredPlaceholder, selectedOptionWeight, }: SimpleDropdownProps<T>): JSX.Element;
|
|
2748
2748
|
|
|
@@ -3785,6 +3785,24 @@ declare type VideoProps = {
|
|
|
3785
3785
|
} & DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
|
3786
3786
|
declare const Video: React.FC<VideoProps>;
|
|
3787
3787
|
|
|
3788
|
+
declare type AutoshipFrequency$1 = {
|
|
3789
|
+
values: number[];
|
|
3790
|
+
unit: string;
|
|
3791
|
+
};
|
|
3792
|
+
interface ISubscriptionFrequencyDropdown {
|
|
3793
|
+
frequency: AutoshipFrequency$1;
|
|
3794
|
+
onChange?: (value: DropdownOption<number>) => void;
|
|
3795
|
+
}
|
|
3796
|
+
declare const AutoshipFrequencyDropdown: FC<ISubscriptionFrequencyDropdown>;
|
|
3797
|
+
|
|
3798
|
+
declare type BenefitsListProps = {
|
|
3799
|
+
benefits: string[];
|
|
3800
|
+
isSelected: boolean;
|
|
3801
|
+
selectedColor: string;
|
|
3802
|
+
baseColor: string;
|
|
3803
|
+
};
|
|
3804
|
+
declare const BenefitsList: FC<BenefitsListProps>;
|
|
3805
|
+
|
|
3788
3806
|
interface CartItemCardProps {
|
|
3789
3807
|
style?: React.CSSProperties;
|
|
3790
3808
|
className?: string;
|
|
@@ -3937,6 +3955,68 @@ interface TableProps {
|
|
|
3937
3955
|
|
|
3938
3956
|
declare const SizeChartTableV2: ({ headers, data: tableContent, newSizeTableCss }: TableProps) => JSX.Element;
|
|
3939
3957
|
|
|
3958
|
+
declare type SubscriptionPlanSelectorRadios = 'oneTime' | 'subscription';
|
|
3959
|
+
declare type SelectorOnChangeProps = {
|
|
3960
|
+
subscriptionPeriod?: number;
|
|
3961
|
+
withSubscription: boolean;
|
|
3962
|
+
originalPrice: number;
|
|
3963
|
+
discountedPrice: number;
|
|
3964
|
+
};
|
|
3965
|
+
declare type RadioConfig = {
|
|
3966
|
+
label: string;
|
|
3967
|
+
disabled: boolean;
|
|
3968
|
+
checked: boolean;
|
|
3969
|
+
};
|
|
3970
|
+
declare type RadiosConfig = {
|
|
3971
|
+
oneTime: RadioConfig;
|
|
3972
|
+
subscription: RadioConfig;
|
|
3973
|
+
};
|
|
3974
|
+
declare type AutoshipFrequency = {
|
|
3975
|
+
values: number[];
|
|
3976
|
+
unit: string;
|
|
3977
|
+
};
|
|
3978
|
+
declare type TooltipContent = {
|
|
3979
|
+
text: string;
|
|
3980
|
+
color?: string;
|
|
3981
|
+
};
|
|
3982
|
+
declare type TooltipHeader = {
|
|
3983
|
+
title: string;
|
|
3984
|
+
iconFill?: string;
|
|
3985
|
+
iconRight?: string;
|
|
3986
|
+
};
|
|
3987
|
+
declare type TooltipType = {
|
|
3988
|
+
header: TooltipHeader;
|
|
3989
|
+
content: TooltipContent;
|
|
3990
|
+
};
|
|
3991
|
+
declare type PriceType = {
|
|
3992
|
+
listPrice: number;
|
|
3993
|
+
discountedPrice: number;
|
|
3994
|
+
subscriptionDiscountPercentage: number;
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
declare type WithBenefits = {
|
|
3998
|
+
benefits: string[];
|
|
3999
|
+
children?: never;
|
|
4000
|
+
};
|
|
4001
|
+
declare type WithChildren = {
|
|
4002
|
+
benefits?: never;
|
|
4003
|
+
children: ReactNode;
|
|
4004
|
+
};
|
|
4005
|
+
declare type CommonProps = {
|
|
4006
|
+
pricing: PriceType;
|
|
4007
|
+
currencySymbol: string;
|
|
4008
|
+
radios: RadiosConfig;
|
|
4009
|
+
onChange: (values: SelectorOnChangeProps) => void;
|
|
4010
|
+
tooltip?: TooltipType;
|
|
4011
|
+
frequency?: AutoshipFrequency;
|
|
4012
|
+
className?: string;
|
|
4013
|
+
discountTagClassName?: string;
|
|
4014
|
+
closeIcon?: boolean;
|
|
4015
|
+
discountLabel?: string;
|
|
4016
|
+
};
|
|
4017
|
+
declare type SubscriptionPlanSelectorProps = (WithBenefits | WithChildren) & CommonProps;
|
|
4018
|
+
declare const SubscriptionPlanSelector: FC<SubscriptionPlanSelectorProps>;
|
|
4019
|
+
|
|
3940
4020
|
declare module '@emotion/react' {
|
|
3941
4021
|
interface Theme extends Theme {
|
|
3942
4022
|
}
|
|
@@ -4007,4 +4087,4 @@ declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
|
|
|
4007
4087
|
declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
|
|
4008
4088
|
declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
|
|
4009
4089
|
|
|
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 };
|
|
4090
|
+
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 };
|