@trafilea/afrodita-components 5.0.0-beta.83 → 5.0.0-beta.86

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
@@ -721,8 +721,9 @@ interface DiscountTagProps {
721
721
  borderColor?: string;
722
722
  textColor?: string;
723
723
  size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
724
+ style?: React.CSSProperties;
724
725
  }
725
- declare const DiscountTag: ({ discount, offText, disabled, backgroundColor, borderColor, textColor, size, }: DiscountTagProps) => JSX.Element;
726
+ declare const DiscountTag: ({ discount, offText, disabled, backgroundColor, borderColor, textColor, size, style, }: DiscountTagProps) => JSX.Element;
726
727
 
727
728
  interface PriceLabelProps {
728
729
  finalPrice: string | number;
@@ -737,6 +738,8 @@ interface PriceLabelProps {
737
738
  }
738
739
  declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, finalPriceStyled, finalPriceStyle, originalPriceStyled, size, }: PriceLabelProps) => JSX.Element;
739
740
 
741
+ declare const PriceLabelHomeColPDP: ({ finalPrice, originalPrice, discount, color, testId, originalPriceStyled, size, }: PriceLabelProps) => JSX.Element;
742
+
740
743
  interface ColorPickerProps {
741
744
  options: ColorPickerOption[];
742
745
  selectedValue?: ColorPickerOption;
@@ -812,6 +815,9 @@ declare const Tooltip: ({ children, position, text, align, onClick, header, }: T
812
815
 
813
816
  interface AccordionProps {
814
817
  defaultOpen?: boolean;
818
+ forceOpenHandler?: boolean;
819
+ forceOpenValue?: boolean;
820
+ titleColor?: string;
815
821
  variant: 'simple' | 'box';
816
822
  header: ReactNode;
817
823
  headerOnOpen?: ReactNode;
@@ -819,8 +825,9 @@ interface AccordionProps {
819
825
  disabled?: boolean;
820
826
  openIcon: IconType;
821
827
  closeIcon: IconType;
828
+ onClick?: (index: number) => void;
822
829
  }
823
- declare const Accordion: ({ header, headerOnOpen, content, defaultOpen, variant, disabled, openIcon, closeIcon, }: AccordionProps) => JSX.Element;
830
+ declare const Accordion: ({ header, headerOnOpen, content, defaultOpen, forceOpenHandler, forceOpenValue, titleColor, variant, disabled, openIcon, closeIcon, onClick, }: AccordionProps) => JSX.Element;
824
831
 
825
832
  declare const ThemeProvider: FC<{
826
833
  theme: Theme;
@@ -2003,6 +2010,12 @@ interface TextWithImageProps {
2003
2010
  }
2004
2011
  declare const TextWithImage: ({ title, text, buttomText, backgroundColor, imageLeftSide, titleStyle, textStyle, buttonWideOnMobile, ...props }: TextWithImageProps) => _emotion_react_jsx_runtime.JSX.Element;
2005
2012
 
2013
+ interface AccordionOptionsProps {
2014
+ titleColor: string;
2015
+ accordions: AccordionProps[];
2016
+ }
2017
+ declare const AccordionOptions: ({ titleColor, accordions }: AccordionOptionsProps) => JSX.Element;
2018
+
2006
2019
  declare global {
2007
2020
  interface Events {
2008
2021
  modal: {
@@ -2042,4 +2055,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
2042
2055
  currency?: string | undefined;
2043
2056
  }) => string;
2044
2057
 
2045
- export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
2058
+ export { Accordion, AccordionOptions, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelHomeColPDP, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };