@trafilea/afrodita-components 6.9.1 → 6.11.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 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
 
@@ -1287,6 +1305,10 @@ declare enum InputValidationType {
1287
1305
  declare type Themes = 'Shapermint' | 'Truekind' | 'Revel' | 'TheSpaDr' | 'TheBodCon';
1288
1306
  declare type Theme = {
1289
1307
  name: Themes;
1308
+ config?: {
1309
+ cdn: string;
1310
+ useTrafileaImages?: boolean;
1311
+ };
1290
1312
  fontSizes: number[];
1291
1313
  fontWeights: number[];
1292
1314
  lineHeights: number[];
@@ -2044,6 +2066,7 @@ declare const Viewports: {
2044
2066
  declare type Viewport = typeof Viewports[keyof typeof Viewports];
2045
2067
 
2046
2068
  declare type ThemeProviderProps = {
2069
+ config?: Theme$1['config'];
2047
2070
  isSameOriginIcons?: boolean;
2048
2071
  theme: Theme$1;
2049
2072
  children: ReactNode;
@@ -2051,7 +2074,7 @@ declare type ThemeProviderProps = {
2051
2074
  declare const ThemeProvider: React.FC<ThemeProviderProps>;
2052
2075
  declare const useTheme: () => Theme$1;
2053
2076
 
2054
- declare const ThemeVariables: FC<{
2077
+ declare const ThemeVariables: React.FC<{
2055
2078
  theme: Theme$1;
2056
2079
  Container?: ElementType;
2057
2080
  }>;
@@ -2073,23 +2096,6 @@ interface CheckboxProps {
2073
2096
  }
2074
2097
  declare const Checkbox: React__default.FC<CheckboxProps>;
2075
2098
 
2076
- declare type ImageStyleProps = {
2077
- height?: string;
2078
- width?: string;
2079
- borderRadius?: string;
2080
- objectFit?: string;
2081
- objectPosition?: string;
2082
- className?: string;
2083
- };
2084
- declare type ImageProps = ImageStyleProps & {
2085
- src: string;
2086
- alt: string;
2087
- srcSet?: string;
2088
- sizes?: string;
2089
- loading?: 'lazy' | 'eager';
2090
- };
2091
- declare const Image: React.FC<ImageProps>;
2092
-
2093
2099
  interface ClubOfferTagProps {
2094
2100
  clubOfferText?: string;
2095
2101
  className?: string;
@@ -2284,6 +2290,7 @@ declare type DropdownOption<T> = {
2284
2290
  label: string;
2285
2291
  value: T;
2286
2292
  disabled: boolean;
2293
+ imageURL?: string;
2287
2294
  };
2288
2295
  declare type SizeOption = {
2289
2296
  label: string;
@@ -2519,6 +2526,7 @@ declare type CommonProps<T> = {
2519
2526
  testId?: string;
2520
2527
  required?: string;
2521
2528
  showRequiredPlaceholder?: boolean;
2529
+ imageURL?: string;
2522
2530
  };
2523
2531
  declare type ControlledProps<T> = {
2524
2532
  value: Value<T>;
@@ -3523,4 +3531,4 @@ declare const getSrcSet: (imgLink: string, ...breakpoints: number[]) => string;
3523
3531
 
3524
3532
  declare const mediaQueries: facepaint.DynamicStyleFunction;
3525
3533
 
3526
- 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, 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 };
3534
+ 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 };