@trafilea/afrodita-components 5.0.0-beta.0 → 5.0.0-beta.11
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 +61 -9
- package/build/index.esm.js +4457 -614
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4552 -706
- package/build/index.js.map +1 -1
- package/build/theme/shapermint.theme.d.ts +4 -2
- package/build/theme/shapermint.theme.js +4 -2
- package/build/theme/truekind.theme.d.ts +4 -2
- package/build/theme/truekind.theme.js +4 -2
- package/package.json +2 -1
package/build/index.d.ts
CHANGED
|
@@ -416,6 +416,15 @@ declare namespace SlideDots {
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
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
|
+
|
|
419
428
|
declare type IconType = ({ height, width, fill }: IconProps) => JSX.Element;
|
|
420
429
|
declare const Icon: {
|
|
421
430
|
Custom: typeof Custom;
|
|
@@ -429,6 +438,7 @@ declare const Icon: {
|
|
|
429
438
|
Download: typeof Download;
|
|
430
439
|
Payment: typeof Payment;
|
|
431
440
|
SlideDots: typeof SlideDots;
|
|
441
|
+
Emoji: typeof Emoji;
|
|
432
442
|
};
|
|
433
443
|
|
|
434
444
|
interface CardBodyProps {
|
|
@@ -491,16 +501,17 @@ interface SizeSelectorProps {
|
|
|
491
501
|
selectedValue: SizeOption;
|
|
492
502
|
onChange: (size: SizeOption) => void;
|
|
493
503
|
inline?: boolean;
|
|
504
|
+
width?: string;
|
|
494
505
|
}
|
|
495
|
-
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;
|
|
496
507
|
|
|
497
508
|
interface SizeFitGuideProps {
|
|
498
509
|
title: string;
|
|
499
|
-
|
|
500
|
-
fitPercentage: number;
|
|
510
|
+
fitPercentage?: number;
|
|
501
511
|
onClick: () => void;
|
|
512
|
+
onClickFitPercentage?: () => void;
|
|
502
513
|
}
|
|
503
|
-
declare const SizeFitGuide: ({ title,
|
|
514
|
+
declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, }: SizeFitGuideProps) => JSX.Element;
|
|
504
515
|
|
|
505
516
|
interface BaseButtonProps {
|
|
506
517
|
children: React.ReactNode;
|
|
@@ -1014,8 +1025,10 @@ declare type ThemeComponent = {
|
|
|
1014
1025
|
packSelector: {
|
|
1015
1026
|
borderRadius: string;
|
|
1016
1027
|
borderColor: string;
|
|
1017
|
-
|
|
1018
|
-
|
|
1028
|
+
highlightColor: string;
|
|
1029
|
+
selectedColor: string;
|
|
1030
|
+
selectedContrast: string;
|
|
1031
|
+
tagColor: string;
|
|
1019
1032
|
};
|
|
1020
1033
|
};
|
|
1021
1034
|
declare type ThemeTypography = {
|
|
@@ -1564,8 +1577,9 @@ interface SearchBarProps {
|
|
|
1564
1577
|
onChange: (text: string) => void;
|
|
1565
1578
|
onSearch: (term: string) => void;
|
|
1566
1579
|
resultsPanelDataTestId?: string;
|
|
1580
|
+
allResults?: number;
|
|
1567
1581
|
}
|
|
1568
|
-
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
|
|
1582
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, allResults, }: SearchBarProps) => JSX.Element;
|
|
1569
1583
|
|
|
1570
1584
|
interface ProductGalleryMobileProps {
|
|
1571
1585
|
images: ImageType[];
|
|
@@ -1607,7 +1621,12 @@ declare const Overlay: _emotion_styled.StyledComponent<{
|
|
|
1607
1621
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1608
1622
|
declare const Modal: FC<ModalProps>;
|
|
1609
1623
|
declare const modalEvent: (id: string, detail: Omit<Events['modal'], 'id'>) => void;
|
|
1610
|
-
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1624
|
+
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1625
|
+
declare const useModal: (id: string) => {
|
|
1626
|
+
opened: boolean;
|
|
1627
|
+
open: () => void;
|
|
1628
|
+
close: () => void;
|
|
1629
|
+
};
|
|
1611
1630
|
|
|
1612
1631
|
interface CloseButtonProps {
|
|
1613
1632
|
onClick: () => void;
|
|
@@ -1656,6 +1675,39 @@ declare type SpacingProps = {
|
|
|
1656
1675
|
};
|
|
1657
1676
|
declare const Spacing: FC<SpacingProps>;
|
|
1658
1677
|
|
|
1678
|
+
interface PackOption {
|
|
1679
|
+
label: string;
|
|
1680
|
+
description: string;
|
|
1681
|
+
meta: {
|
|
1682
|
+
discountPercentage: number;
|
|
1683
|
+
originalPrice: number;
|
|
1684
|
+
price: number;
|
|
1685
|
+
quantity: number;
|
|
1686
|
+
icon: string;
|
|
1687
|
+
tag?: string;
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
interface PackSelectorProps {
|
|
1691
|
+
packs: PackOption[];
|
|
1692
|
+
selectedValue: PackOption;
|
|
1693
|
+
onChange: (size: PackOption) => void;
|
|
1694
|
+
}
|
|
1695
|
+
declare const PackSelector: FC<PackSelectorProps>;
|
|
1696
|
+
|
|
1697
|
+
interface FiltersProps {
|
|
1698
|
+
filters: Filter[];
|
|
1699
|
+
onChange: (update: FilterChange) => void;
|
|
1700
|
+
tagsColor?: string;
|
|
1701
|
+
filterByText: string;
|
|
1702
|
+
clearAllText: string;
|
|
1703
|
+
filtersSelectText: string;
|
|
1704
|
+
isMobile: boolean;
|
|
1705
|
+
applyText: string;
|
|
1706
|
+
mobileBackArrowClick: () => void;
|
|
1707
|
+
mobileApplyButtonClick: () => void;
|
|
1708
|
+
}
|
|
1709
|
+
declare const Filters: ({ filters, onChange, tagsColor, filterByText, clearAllText, isMobile, filtersSelectText, applyText, mobileApplyButtonClick, mobileBackArrowClick, }: FiltersProps) => JSX.Element;
|
|
1710
|
+
|
|
1659
1711
|
declare global {
|
|
1660
1712
|
interface Events {
|
|
1661
1713
|
modal: {
|
|
@@ -1695,4 +1747,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
1695
1747
|
currency?: string | undefined;
|
|
1696
1748
|
}) => string;
|
|
1697
1749
|
|
|
1698
|
-
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 };
|
|
1750
|
+
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, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|