@trafilea/afrodita-components 4.0.2-beta.15 → 4.0.2-beta.16
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 +26 -1
- package/build/index.esm.js +241 -196
- package/build/index.esm.js.map +1 -1
- package/build/index.js +243 -196
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1553,12 +1553,37 @@ declare type ModalEventDetail = {
|
|
|
1553
1553
|
id: string;
|
|
1554
1554
|
type: 'open' | 'close';
|
|
1555
1555
|
};
|
|
1556
|
+
declare const modalEvent: (id: string, detail: Omit<ModalEventDetail, 'id'>) => void;
|
|
1556
1557
|
declare global {
|
|
1557
1558
|
interface WindowEventMap {
|
|
1558
1559
|
modal: CustomEvent<ModalEventDetail>;
|
|
1559
1560
|
}
|
|
1560
1561
|
}
|
|
1561
1562
|
|
|
1563
|
+
interface CloseButtonProps {
|
|
1564
|
+
onClick: () => void;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
interface DescriptionProps {
|
|
1568
|
+
text: string;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
interface PromoProps {
|
|
1572
|
+
text: string;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
interface TitleProps {
|
|
1576
|
+
title: string;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
declare const CartProductItem: {
|
|
1580
|
+
Title: ({ title }: TitleProps) => JSX.Element;
|
|
1581
|
+
Tag: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
|
|
1582
|
+
Promo: ({ text }: PromoProps) => JSX.Element;
|
|
1583
|
+
Description: ({ text }: DescriptionProps) => JSX.Element;
|
|
1584
|
+
CloseButton: ({ onClick }: CloseButtonProps) => JSX.Element;
|
|
1585
|
+
};
|
|
1586
|
+
|
|
1562
1587
|
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
|
|
1563
1588
|
|
|
1564
1589
|
declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
|
|
@@ -1569,4 +1594,4 @@ declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
|
|
|
1569
1594
|
};
|
|
1570
1595
|
};
|
|
1571
1596
|
|
|
1572
|
-
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, 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, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
1597
|
+
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, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, modalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|