@trafilea/afrodita-components 6.9.0 → 6.10.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 +55 -19
- package/build/index.esm.js +336 -186
- package/build/index.esm.js.map +1 -1
- package/build/index.js +337 -186
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +4 -0
- package/build/theme/shapermint.theme.d.ts +4 -0
- package/build/theme/thebodcon.theme.d.ts +4 -0
- package/build/theme/thespadr.theme.d.ts +4 -0
- package/build/theme/truekind.theme.d.ts +4 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -74,6 +74,24 @@ declare type IconProps$1 = {
|
|
|
74
74
|
|
|
75
75
|
declare const Icon$1: React__default.NamedExoticComponent<IconProps$1>;
|
|
76
76
|
|
|
77
|
+
declare type ImageStyleProps = {
|
|
78
|
+
height?: string;
|
|
79
|
+
width?: string;
|
|
80
|
+
borderRadius?: string;
|
|
81
|
+
objectFit?: string;
|
|
82
|
+
objectPosition?: string;
|
|
83
|
+
className?: string;
|
|
84
|
+
};
|
|
85
|
+
declare type ImageProps = ImageStyleProps & {
|
|
86
|
+
src: string;
|
|
87
|
+
alt: string;
|
|
88
|
+
srcSet?: string;
|
|
89
|
+
sizes?: string;
|
|
90
|
+
loading?: 'lazy' | 'eager';
|
|
91
|
+
quality?: number;
|
|
92
|
+
};
|
|
93
|
+
declare const Image: React.FC<ImageProps>;
|
|
94
|
+
|
|
77
95
|
declare type Props$2 = Omit<IconProps$1, 'name'>;
|
|
78
96
|
declare type IconComponent = React__default.FC<Props$2>;
|
|
79
97
|
|
|
@@ -1136,6 +1154,36 @@ declare type AutoshipProps = {
|
|
|
1136
1154
|
};
|
|
1137
1155
|
declare const Autoship: React.FC<AutoshipProps>;
|
|
1138
1156
|
|
|
1157
|
+
declare type AutoshipPropsV2 = {
|
|
1158
|
+
singlePurchaseLabel: string;
|
|
1159
|
+
subscriptionLabel: string;
|
|
1160
|
+
tooltipContent?: {
|
|
1161
|
+
text: string;
|
|
1162
|
+
color?: string;
|
|
1163
|
+
};
|
|
1164
|
+
tooltipHeader?: {
|
|
1165
|
+
title: string;
|
|
1166
|
+
};
|
|
1167
|
+
pricing: {
|
|
1168
|
+
listPrice: number;
|
|
1169
|
+
discountedPrice: number;
|
|
1170
|
+
autoshipDiscountPercentage: number;
|
|
1171
|
+
};
|
|
1172
|
+
frequencyValues?: Array<number>;
|
|
1173
|
+
frequencyUnit?: string;
|
|
1174
|
+
autoshipBenefits: string[];
|
|
1175
|
+
onChange: (values: {
|
|
1176
|
+
subscriptionPeriod: number;
|
|
1177
|
+
autoship: boolean;
|
|
1178
|
+
originalPrice: number;
|
|
1179
|
+
discountedPrice: number;
|
|
1180
|
+
}) => void;
|
|
1181
|
+
className?: string;
|
|
1182
|
+
closeIcon?: boolean;
|
|
1183
|
+
currencySymbol: string;
|
|
1184
|
+
};
|
|
1185
|
+
declare const AutoshipV2: React.FC<AutoshipPropsV2>;
|
|
1186
|
+
|
|
1139
1187
|
declare enum BeforeAfterVariant {
|
|
1140
1188
|
UserInfoText = "UserInfoText",
|
|
1141
1189
|
ResultFeedback = "ResultFeedback"
|
|
@@ -1257,6 +1305,10 @@ declare enum InputValidationType {
|
|
|
1257
1305
|
declare type Themes = 'Shapermint' | 'Truekind' | 'Revel' | 'TheSpaDr' | 'TheBodCon';
|
|
1258
1306
|
declare type Theme = {
|
|
1259
1307
|
name: Themes;
|
|
1308
|
+
config?: {
|
|
1309
|
+
cdn: string;
|
|
1310
|
+
useTrafileaImages?: boolean;
|
|
1311
|
+
};
|
|
1260
1312
|
fontSizes: number[];
|
|
1261
1313
|
fontWeights: number[];
|
|
1262
1314
|
lineHeights: number[];
|
|
@@ -2014,6 +2066,7 @@ declare const Viewports: {
|
|
|
2014
2066
|
declare type Viewport = typeof Viewports[keyof typeof Viewports];
|
|
2015
2067
|
|
|
2016
2068
|
declare type ThemeProviderProps = {
|
|
2069
|
+
config?: Theme$1['config'];
|
|
2017
2070
|
isSameOriginIcons?: boolean;
|
|
2018
2071
|
theme: Theme$1;
|
|
2019
2072
|
children: ReactNode;
|
|
@@ -2021,7 +2074,7 @@ declare type ThemeProviderProps = {
|
|
|
2021
2074
|
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
2022
2075
|
declare const useTheme: () => Theme$1;
|
|
2023
2076
|
|
|
2024
|
-
declare const ThemeVariables: FC<{
|
|
2077
|
+
declare const ThemeVariables: React.FC<{
|
|
2025
2078
|
theme: Theme$1;
|
|
2026
2079
|
Container?: ElementType;
|
|
2027
2080
|
}>;
|
|
@@ -2043,23 +2096,6 @@ interface CheckboxProps {
|
|
|
2043
2096
|
}
|
|
2044
2097
|
declare const Checkbox: React__default.FC<CheckboxProps>;
|
|
2045
2098
|
|
|
2046
|
-
declare type ImageStyleProps = {
|
|
2047
|
-
height?: string;
|
|
2048
|
-
width?: string;
|
|
2049
|
-
borderRadius?: string;
|
|
2050
|
-
objectFit?: string;
|
|
2051
|
-
objectPosition?: string;
|
|
2052
|
-
className?: string;
|
|
2053
|
-
};
|
|
2054
|
-
declare type ImageProps = ImageStyleProps & {
|
|
2055
|
-
src: string;
|
|
2056
|
-
alt: string;
|
|
2057
|
-
srcSet?: string;
|
|
2058
|
-
sizes?: string;
|
|
2059
|
-
loading?: 'lazy' | 'eager';
|
|
2060
|
-
};
|
|
2061
|
-
declare const Image: React.FC<ImageProps>;
|
|
2062
|
-
|
|
2063
2099
|
interface ClubOfferTagProps {
|
|
2064
2100
|
clubOfferText?: string;
|
|
2065
2101
|
className?: string;
|
|
@@ -3493,4 +3529,4 @@ declare const getSrcSet: (imgLink: string, ...breakpoints: number[]) => string;
|
|
|
3493
3529
|
|
|
3494
3530
|
declare const mediaQueries: facepaint.DynamicStyleFunction;
|
|
3495
3531
|
|
|
3496
|
-
export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, _default as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ColorPickerOption, ComponentPosition, ComponentSize, ContentType, index_d as CrossSell, DeliveryDetails, 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, Input, InputValidationType, Icon$1 as LibIcon, IconProps$1 as LibIconProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, 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, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, TrackingProgressV2, WithTestId, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
3532
|
+
export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, _default as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ColorPickerOption, ComponentPosition, ComponentSize, ContentType, index_d as CrossSell, DeliveryDetails, 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, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, 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, WithTestId, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|