@trafilea/afrodita-components 4.4.0-beta.6 → 5.0.0-beta.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
@@ -67,8 +67,11 @@ declare type Pattern = {
67
67
  };
68
68
  declare type ColorPickerOption = {
69
69
  label: string;
70
- color?: Color;
71
- pattern?: Pattern;
70
+ description: string;
71
+ meta: {
72
+ color?: Color;
73
+ pattern?: Pattern;
74
+ };
72
75
  };
73
76
  declare type RadioGroupOption = {
74
77
  value: string;
@@ -1008,6 +1011,12 @@ declare type ThemeComponent = {
1008
1011
  modal: {
1009
1012
  minWidth: string;
1010
1013
  };
1014
+ packSelector: {
1015
+ borderRadius: string;
1016
+ borderColor: string;
1017
+ highlight: string;
1018
+ selected: string;
1019
+ };
1011
1020
  };
1012
1021
  declare type ThemeTypography = {
1013
1022
  config: {
@@ -1602,6 +1611,7 @@ declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal'
1602
1611
 
1603
1612
  interface CloseButtonProps {
1604
1613
  onClick: () => void;
1614
+ size: number;
1605
1615
  }
1606
1616
 
1607
1617
  interface DescriptionProps {
@@ -1621,7 +1631,7 @@ declare const CartProductItem: {
1621
1631
  Tag: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
1622
1632
  Promo: ({ text }: PromoProps) => JSX.Element;
1623
1633
  Description: ({ text }: DescriptionProps) => JSX.Element;
1624
- CloseButton: ({ onClick }: CloseButtonProps) => JSX.Element;
1634
+ CloseButton: ({ onClick, size }: CloseButtonProps) => JSX.Element;
1625
1635
  };
1626
1636
 
1627
1637
  declare type QuantityPickerPropsOnChange = (value: number) => void;
@@ -1646,6 +1656,25 @@ declare type SpacingProps = {
1646
1656
  };
1647
1657
  declare const Spacing: FC<SpacingProps>;
1648
1658
 
1659
+ interface PackOption {
1660
+ label: string;
1661
+ description: string;
1662
+ meta: {
1663
+ discountPercentage: number;
1664
+ originalPrice: number;
1665
+ price: number;
1666
+ quantity: number;
1667
+ icon: string;
1668
+ tag?: string;
1669
+ };
1670
+ }
1671
+ interface PackSelectorProps {
1672
+ packs: PackOption[];
1673
+ selectedValue: PackOption;
1674
+ onChange: (size: PackOption) => void;
1675
+ }
1676
+ declare const PackSelector: FC<PackSelectorProps>;
1677
+
1649
1678
  declare global {
1650
1679
  interface Events {
1651
1680
  modal: {
@@ -1685,4 +1714,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
1685
1714
  currency?: string | undefined;
1686
1715
  }) => string;
1687
1716
 
1688
- export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
1717
+ export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };