@trafilea/afrodita-components 5.0.0-beta.85 → 5.0.0-beta.88
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 +14 -3
- package/build/index.esm.js +271 -230
- package/build/index.esm.js.map +1 -1
- package/build/index.js +271 -229
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -815,6 +815,9 @@ declare const Tooltip: ({ children, position, text, align, onClick, header, }: T
|
|
|
815
815
|
|
|
816
816
|
interface AccordionProps {
|
|
817
817
|
defaultOpen?: boolean;
|
|
818
|
+
forceOpenHandler?: boolean;
|
|
819
|
+
forceOpenValue?: boolean;
|
|
820
|
+
titleColor?: string;
|
|
818
821
|
variant: 'simple' | 'box';
|
|
819
822
|
header: ReactNode;
|
|
820
823
|
headerOnOpen?: ReactNode;
|
|
@@ -822,8 +825,9 @@ interface AccordionProps {
|
|
|
822
825
|
disabled?: boolean;
|
|
823
826
|
openIcon: IconType;
|
|
824
827
|
closeIcon: IconType;
|
|
828
|
+
onClick?: (index: number) => void;
|
|
825
829
|
}
|
|
826
|
-
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;
|
|
827
831
|
|
|
828
832
|
declare const ThemeProvider: FC<{
|
|
829
833
|
theme: Theme;
|
|
@@ -1801,8 +1805,9 @@ interface SearchBarProps {
|
|
|
1801
1805
|
allResults?: number;
|
|
1802
1806
|
initialTerm?: string;
|
|
1803
1807
|
shouldClear?: boolean;
|
|
1808
|
+
isBlogSearchBar?: boolean;
|
|
1804
1809
|
}
|
|
1805
|
-
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, onClose, resultsPanelDataTestId, allResults, initialTerm, shouldClear, }: SearchBarProps) => JSX.Element;
|
|
1810
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, onClose, resultsPanelDataTestId, allResults, initialTerm, shouldClear, isBlogSearchBar, }: SearchBarProps) => JSX.Element;
|
|
1806
1811
|
|
|
1807
1812
|
interface ProductGalleryMobileProps {
|
|
1808
1813
|
images: ImageType[];
|
|
@@ -2006,6 +2011,12 @@ interface TextWithImageProps {
|
|
|
2006
2011
|
}
|
|
2007
2012
|
declare const TextWithImage: ({ title, text, buttomText, backgroundColor, imageLeftSide, titleStyle, textStyle, buttonWideOnMobile, ...props }: TextWithImageProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2008
2013
|
|
|
2014
|
+
interface AccordionOptionsProps {
|
|
2015
|
+
titleColor: string;
|
|
2016
|
+
accordions: AccordionProps[];
|
|
2017
|
+
}
|
|
2018
|
+
declare const AccordionOptions: ({ titleColor, accordions }: AccordionOptionsProps) => JSX.Element;
|
|
2019
|
+
|
|
2009
2020
|
declare global {
|
|
2010
2021
|
interface Events {
|
|
2011
2022
|
modal: {
|
|
@@ -2045,4 +2056,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
2045
2056
|
currency?: string | undefined;
|
|
2046
2057
|
}) => string;
|
|
2047
2058
|
|
|
2048
|
-
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, 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 };
|
|
2059
|
+
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 };
|