@trafilea/afrodita-components 5.0.0-beta.90 → 5.0.0-beta.93
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 +19 -9
- package/build/index.esm.js +83 -75
- package/build/index.esm.js.map +1 -1
- package/build/index.js +83 -75
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -734,11 +734,12 @@ interface PriceLabelProps {
|
|
|
734
734
|
finalPriceStyled?: boolean;
|
|
735
735
|
finalPriceStyle?: React.CSSProperties;
|
|
736
736
|
originalPriceStyled?: boolean;
|
|
737
|
+
originalPriceUnderlined?: boolean;
|
|
737
738
|
testId?: string;
|
|
738
739
|
}
|
|
739
|
-
declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, finalPriceStyled, finalPriceStyle, originalPriceStyled, size, }: PriceLabelProps) => JSX.Element;
|
|
740
|
+
declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, finalPriceStyled, finalPriceStyle, originalPriceStyled, originalPriceUnderlined, size, }: PriceLabelProps) => JSX.Element;
|
|
740
741
|
|
|
741
|
-
declare const
|
|
742
|
+
declare const PriceLabelV2: ({ finalPrice, originalPrice, discount, color, testId, originalPriceStyled, originalPriceUnderlined, size, }: PriceLabelProps) => JSX.Element;
|
|
742
743
|
|
|
743
744
|
interface ColorPickerProps {
|
|
744
745
|
options: ColorPickerOption[];
|
|
@@ -765,8 +766,9 @@ interface ProductGalleryProps {
|
|
|
765
766
|
productImageDataTestId?: string;
|
|
766
767
|
previewListDataTestId?: string;
|
|
767
768
|
thumbnailPosition?: 'vertical' | 'horizontal';
|
|
769
|
+
borderRadiusVariant?: boolean;
|
|
768
770
|
}
|
|
769
|
-
declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, }: ProductGalleryProps) => JSX.Element;
|
|
771
|
+
declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, borderRadiusVariant, }: ProductGalleryProps) => JSX.Element;
|
|
770
772
|
|
|
771
773
|
interface RatingProps {
|
|
772
774
|
rating: number;
|
|
@@ -1314,16 +1316,18 @@ interface CategoryTagProps {
|
|
|
1314
1316
|
text: string;
|
|
1315
1317
|
size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1316
1318
|
className?: string;
|
|
1319
|
+
styledBorder?: boolean;
|
|
1317
1320
|
}
|
|
1318
|
-
declare const CategoryTag: ({ text, size, className }: CategoryTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1321
|
+
declare const CategoryTag: ({ text, size, className, styledBorder }: CategoryTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1319
1322
|
|
|
1320
1323
|
interface SeasonOfferTagProps {
|
|
1321
1324
|
text: string;
|
|
1322
1325
|
backgroundColor?: string;
|
|
1323
1326
|
size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1324
1327
|
className?: string;
|
|
1328
|
+
styledBorder?: boolean;
|
|
1325
1329
|
}
|
|
1326
|
-
declare const SeasonOfferTag: ({ text, backgroundColor, size, className, }: SeasonOfferTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1330
|
+
declare const SeasonOfferTag: ({ text, backgroundColor, size, className, styledBorder, }: SeasonOfferTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1327
1331
|
|
|
1328
1332
|
interface TimeProps {
|
|
1329
1333
|
hours: number;
|
|
@@ -1337,6 +1341,10 @@ interface TimerProps extends TimeProps {
|
|
|
1337
1341
|
declare const Timer: ({ onTimeUp, displayZeroValues, ...rest }: TimerProps) => JSX.Element;
|
|
1338
1342
|
|
|
1339
1343
|
interface BaseInputCommmonProps {
|
|
1344
|
+
id?: string;
|
|
1345
|
+
innerRef?: React.Ref<HTMLInputElement>;
|
|
1346
|
+
onBlur?: () => void;
|
|
1347
|
+
hideClear?: boolean;
|
|
1340
1348
|
defaultValue?: string;
|
|
1341
1349
|
maxLength?: number;
|
|
1342
1350
|
placeholder?: string;
|
|
@@ -1399,7 +1407,7 @@ declare type CustomProps = BaseInputProps & {
|
|
|
1399
1407
|
};
|
|
1400
1408
|
|
|
1401
1409
|
declare const Input: {
|
|
1402
|
-
Simple: ({ value, onChange, defaultValue, label, children, required, onValidation, size, placeholder, inlinePlaceholder, hasError, inputType, ...rest }: BaseInputProps) => JSX.Element;
|
|
1410
|
+
Simple: ({ value, onChange, defaultValue, label, children, required, onValidation, size, placeholder, inlinePlaceholder, hasError, inputType, hideClear, innerRef, ...rest }: BaseInputProps) => JSX.Element;
|
|
1403
1411
|
Custom: ({ onClick, text, variant, ...rest }: CustomProps) => JSX.Element;
|
|
1404
1412
|
SimplePlusButton: ({ onClick, onClickEdit, text, success, editText, successText, ...rest }: BasePlusButtonProps) => JSX.Element;
|
|
1405
1413
|
SimplePlusIcon: ({ Icon, ...rest }: BasePlusIconProps) => JSX.Element;
|
|
@@ -1616,6 +1624,7 @@ interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
|
1616
1624
|
topTag?: JSX.Element;
|
|
1617
1625
|
bottomTag?: JSX.Element;
|
|
1618
1626
|
onClick?: () => void;
|
|
1627
|
+
priceDisplayType?: 'default' | 'styled';
|
|
1619
1628
|
}
|
|
1620
1629
|
|
|
1621
1630
|
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React.FC<P>, data: ProductItemProps[]): {
|
|
@@ -1624,7 +1633,7 @@ declare function withProductGrid<P extends ProductItemProps>(ProductItemComponen
|
|
|
1624
1633
|
};
|
|
1625
1634
|
|
|
1626
1635
|
declare const Collection: {
|
|
1627
|
-
ProductItemMobile: ({ title, image, price, rating, size, alignName, url, className, topTag, bottomTag, onClick, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1636
|
+
ProductItemMobile: ({ title, image, price, rating, size, alignName, url, className, topTag, bottomTag, onClick, priceDisplayType, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1628
1637
|
withProductGrid: typeof withProductGrid;
|
|
1629
1638
|
};
|
|
1630
1639
|
|
|
@@ -1818,8 +1827,9 @@ interface ProductGalleryMobileProps {
|
|
|
1818
1827
|
bottomTag?: JSX.Element;
|
|
1819
1828
|
productImageDataTestId?: string;
|
|
1820
1829
|
slideDotsDataTestId?: string;
|
|
1830
|
+
borderRadiusVariant?: boolean;
|
|
1821
1831
|
}
|
|
1822
|
-
declare const ProductGalleryMobile: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, }: ProductGalleryMobileProps) => JSX.Element;
|
|
1832
|
+
declare const ProductGalleryMobile: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, borderRadiusVariant, }: ProductGalleryMobileProps) => JSX.Element;
|
|
1823
1833
|
|
|
1824
1834
|
interface RadioProps {
|
|
1825
1835
|
name: string;
|
|
@@ -2064,4 +2074,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
2064
2074
|
currency?: string | undefined;
|
|
2065
2075
|
}) => string;
|
|
2066
2076
|
|
|
2067
|
-
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, PaginatorBlog, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel,
|
|
2077
|
+
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, PaginatorBlog, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, 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 };
|