@trafilea/afrodita-components 4.4.0-beta.7 → 5.0.0-beta.10

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;
@@ -413,6 +416,15 @@ declare namespace SlideDots {
413
416
  };
414
417
  }
415
418
 
419
+ declare const Thinking: ({ height, width }: IconProps$1) => JSX.Element;
420
+
421
+ declare const Emoji_Thinking: typeof Thinking;
422
+ declare namespace Emoji {
423
+ export {
424
+ Emoji_Thinking as Thinking,
425
+ };
426
+ }
427
+
416
428
  declare type IconType = ({ height, width, fill }: IconProps) => JSX.Element;
417
429
  declare const Icon: {
418
430
  Custom: typeof Custom;
@@ -426,6 +438,7 @@ declare const Icon: {
426
438
  Download: typeof Download;
427
439
  Payment: typeof Payment;
428
440
  SlideDots: typeof SlideDots;
441
+ Emoji: typeof Emoji;
429
442
  };
430
443
 
431
444
  interface CardBodyProps {
@@ -488,16 +501,16 @@ interface SizeSelectorProps {
488
501
  selectedValue: SizeOption;
489
502
  onChange: (size: SizeOption) => void;
490
503
  inline?: boolean;
504
+ width?: string;
491
505
  }
492
- declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
506
+ declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, width, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
493
507
 
494
508
  interface SizeFitGuideProps {
495
509
  title: string;
496
- fitPercentageLabel: string;
497
- fitPercentage: number;
510
+ fitPercentage?: number;
498
511
  onClick: () => void;
499
512
  }
500
- declare const SizeFitGuide: ({ title, fitPercentageLabel, fitPercentage, onClick }: SizeFitGuideProps) => JSX.Element;
513
+ declare const SizeFitGuide: ({ title, fitPercentage, onClick }: SizeFitGuideProps) => JSX.Element;
501
514
 
502
515
  interface BaseButtonProps {
503
516
  children: React.ReactNode;
@@ -1011,8 +1024,10 @@ declare type ThemeComponent = {
1011
1024
  packSelector: {
1012
1025
  borderRadius: string;
1013
1026
  borderColor: string;
1014
- highlight: string;
1015
- selected: string;
1027
+ highlightColor: string;
1028
+ selectedColor: string;
1029
+ selectedContrast: string;
1030
+ tagColor: string;
1016
1031
  };
1017
1032
  };
1018
1033
  declare type ThemeTypography = {
@@ -1561,8 +1576,9 @@ interface SearchBarProps {
1561
1576
  onChange: (text: string) => void;
1562
1577
  onSearch: (term: string) => void;
1563
1578
  resultsPanelDataTestId?: string;
1579
+ allResults?: number;
1564
1580
  }
1565
- declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
1581
+ declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, allResults, }: SearchBarProps) => JSX.Element;
1566
1582
 
1567
1583
  interface ProductGalleryMobileProps {
1568
1584
  images: ImageType[];
@@ -1653,6 +1669,39 @@ declare type SpacingProps = {
1653
1669
  };
1654
1670
  declare const Spacing: FC<SpacingProps>;
1655
1671
 
1672
+ interface PackOption {
1673
+ label: string;
1674
+ description: string;
1675
+ meta: {
1676
+ discountPercentage: number;
1677
+ originalPrice: number;
1678
+ price: number;
1679
+ quantity: number;
1680
+ icon: string;
1681
+ tag?: string;
1682
+ };
1683
+ }
1684
+ interface PackSelectorProps {
1685
+ packs: PackOption[];
1686
+ selectedValue: PackOption;
1687
+ onChange: (size: PackOption) => void;
1688
+ }
1689
+ declare const PackSelector: FC<PackSelectorProps>;
1690
+
1691
+ interface FiltersProps {
1692
+ filters: Filter[];
1693
+ onChange: (update: FilterChange) => void;
1694
+ tagsColor?: string;
1695
+ filterByText: string;
1696
+ clearAllText: string;
1697
+ filtersSelectText: string;
1698
+ isMobile: boolean;
1699
+ applyText: string;
1700
+ mobileBackArrowClick: () => void;
1701
+ mobileApplyButtonClick: () => void;
1702
+ }
1703
+ declare const Filters: ({ filters, onChange, tagsColor, filterByText, clearAllText, isMobile, filtersSelectText, applyText, mobileApplyButtonClick, mobileBackArrowClick, }: FiltersProps) => JSX.Element;
1704
+
1656
1705
  declare global {
1657
1706
  interface Events {
1658
1707
  modal: {
@@ -1692,4 +1741,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
1692
1741
  currency?: string | undefined;
1693
1742
  }) => string;
1694
1743
 
1695
- 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 };
1744
+ 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, Filters, 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 };