@trafilea/afrodita-components 5.0.0-beta.184 → 5.0.0-beta.186
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 +8 -3
- package/build/index.esm.js +89 -91
- package/build/index.esm.js.map +1 -1
- package/build/index.js +89 -90
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { default as styled } from '@emotion/styled';
|
|
|
8
8
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
9
9
|
import * as _emotion_react from '@emotion/react';
|
|
10
10
|
import { ComponentSize as ComponentSize$1 } from 'src/types/enums';
|
|
11
|
+
import facepaint from 'facepaint';
|
|
11
12
|
|
|
12
13
|
declare enum CardSectionType {
|
|
13
14
|
Header = 0,
|
|
@@ -2022,7 +2023,7 @@ interface Price extends Pick<PriceLabelProps, 'finalPrice' | 'originalPrice'> {
|
|
|
2022
2023
|
color?: string;
|
|
2023
2024
|
}
|
|
2024
2025
|
interface ProductOrderItemProps {
|
|
2025
|
-
title: string;
|
|
2026
|
+
title: React.ReactNode | string;
|
|
2026
2027
|
subtitle: string;
|
|
2027
2028
|
className?: string;
|
|
2028
2029
|
image: {
|
|
@@ -2229,7 +2230,7 @@ declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, b
|
|
|
2229
2230
|
|
|
2230
2231
|
declare const PaginatorBlog: ({ from, to, currentPage, onChange, }: Pick<PaginationProps, 'from' | 'to' | 'onChange' | 'currentPage'>) => JSX.Element;
|
|
2231
2232
|
|
|
2232
|
-
declare const Text: ({ variant, children, testId, ...allProps }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2233
|
+
declare const Text: ({ variant, children, testId, asSpan, ...allProps }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2233
2234
|
declare type TextHeroProps = {
|
|
2234
2235
|
variant: 'hero1' | 'hero2' | 'hero3';
|
|
2235
2236
|
weight?: 'heavy' | 'bold' | 'demi';
|
|
@@ -2335,6 +2336,8 @@ declare type TextProps<T = Element> = AriaAttributes & HTMLAttributes<T> & {
|
|
|
2335
2336
|
style?: CSSProperties;
|
|
2336
2337
|
className?: string;
|
|
2337
2338
|
testId?: string;
|
|
2339
|
+
asSpan?: boolean;
|
|
2340
|
+
color?: string;
|
|
2338
2341
|
} & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
|
|
2339
2342
|
|
|
2340
2343
|
interface SearchBarProps {
|
|
@@ -2723,4 +2726,6 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
2723
2726
|
currency?: string | undefined;
|
|
2724
2727
|
}) => string;
|
|
2725
2728
|
|
|
2726
|
-
|
|
2729
|
+
declare const mediaQueries: facepaint.DynamicStyleFunction;
|
|
2730
|
+
|
|
2731
|
+
export { Accordion, AccordionOptions, AmazonButton, AssetsProvider, BeforeAfterCard, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageType, Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review$1 as Review, Review as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, 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, TrackingProgress, WithTestId, decimalFormat, formatPrice, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
package/build/index.esm.js
CHANGED
|
@@ -4812,13 +4812,11 @@ var TAGS = {
|
|
|
4812
4812
|
tag: newStyled.span(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["\n display: inline-block;\n text-transform: ", ";\n "], ["\n display: inline-block;\n text-transform: ", ";\n "])), function (props) { return (props.allCaps ? 'uppercase' : ''); }),
|
|
4813
4813
|
};
|
|
4814
4814
|
var Text$6 = function (_a) {
|
|
4815
|
-
var
|
|
4815
|
+
var _b;
|
|
4816
|
+
var variant = _a.variant, children = _a.children, testId = _a.testId, asSpan = _a.asSpan, allProps = __rest(_a, ["variant", "children", "testId", "asSpan"]);
|
|
4816
4817
|
var theme = useTheme();
|
|
4817
|
-
var Tag =
|
|
4818
|
-
var
|
|
4819
|
-
var _a;
|
|
4820
|
-
return (__assign$1(__assign$1({}, ((_a = DEFAULTS === null || DEFAULTS === void 0 ? void 0 : DEFAULTS[variant]) !== null && _a !== void 0 ? _a : {})), allProps));
|
|
4821
|
-
}, [variant, allProps]), size = _b.size, weight = _b.weight, props = __rest(_b, ["size", "weight"]);
|
|
4818
|
+
var Tag = asSpan ? 'span' : TAGS[variant] || 'p';
|
|
4819
|
+
var _c = __assign$1(__assign$1({}, ((_b = DEFAULTS === null || DEFAULTS === void 0 ? void 0 : DEFAULTS[variant]) !== null && _b !== void 0 ? _b : {})), allProps), size = _c.size, weight = _c.weight, props = __rest(_c, ["size", "weight"]);
|
|
4822
4820
|
var commonCSS = useMemo(function () {
|
|
4823
4821
|
var _a, _b;
|
|
4824
4822
|
// These are the common style inside a `variant`.
|
|
@@ -12077,6 +12075,90 @@ var formatPrice = function (value, _a) {
|
|
|
12077
12075
|
}).format(valueToFormat);
|
|
12078
12076
|
};
|
|
12079
12077
|
|
|
12078
|
+
/* eslint-disable no-param-reassign */
|
|
12079
|
+
var index$1 = function (breakpoints) {
|
|
12080
|
+
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
12081
|
+
literal = _ref.literal,
|
|
12082
|
+
overlap = _ref.overlap;
|
|
12083
|
+
|
|
12084
|
+
var mq = literal ? breakpoints : ['&'].concat(breakpoints);
|
|
12085
|
+
|
|
12086
|
+
function flatten(obj) {
|
|
12087
|
+
if (typeof obj !== 'object' || obj == null) {
|
|
12088
|
+
return [];
|
|
12089
|
+
}
|
|
12090
|
+
|
|
12091
|
+
if (Array.isArray(obj)) {
|
|
12092
|
+
return obj.map(flatten);
|
|
12093
|
+
}
|
|
12094
|
+
|
|
12095
|
+
var slots = {};
|
|
12096
|
+
var objects = {};
|
|
12097
|
+
var props = {};
|
|
12098
|
+
Object.keys(obj).forEach(function (key) {
|
|
12099
|
+
// Check if value is an array, but skip if it looks like a selector.
|
|
12100
|
+
// key.indexOf('&') === 0
|
|
12101
|
+
|
|
12102
|
+
var item = obj[key];
|
|
12103
|
+
if (!Array.isArray(item) && literal) item = [item];
|
|
12104
|
+
|
|
12105
|
+
if ((literal || Array.isArray(item)) && key.charCodeAt(0) !== 38) {
|
|
12106
|
+
var prior = void 0;
|
|
12107
|
+
item.forEach(function (v, index) {
|
|
12108
|
+
// Optimize by removing duplicated media query entries
|
|
12109
|
+
// when they are explicitly known to overlap.
|
|
12110
|
+
if (overlap && prior === v) {
|
|
12111
|
+
return;
|
|
12112
|
+
}
|
|
12113
|
+
|
|
12114
|
+
if (v == null) {
|
|
12115
|
+
// Do not create entries for undefined values as this will
|
|
12116
|
+
// generate empty media media quries
|
|
12117
|
+
return;
|
|
12118
|
+
}
|
|
12119
|
+
|
|
12120
|
+
prior = v;
|
|
12121
|
+
|
|
12122
|
+
if (index === 0 && !literal) {
|
|
12123
|
+
props[key] = v;
|
|
12124
|
+
} else if (slots[mq[index]] === undefined) {
|
|
12125
|
+
var _slots$mq$index;
|
|
12126
|
+
|
|
12127
|
+
slots[mq[index]] = (_slots$mq$index = {}, _slots$mq$index[key] = v, _slots$mq$index);
|
|
12128
|
+
} else {
|
|
12129
|
+
slots[mq[index]][key] = v;
|
|
12130
|
+
}
|
|
12131
|
+
});
|
|
12132
|
+
} else if (typeof item === 'object') {
|
|
12133
|
+
objects[key] = flatten(item);
|
|
12134
|
+
} else {
|
|
12135
|
+
props[key] = item;
|
|
12136
|
+
}
|
|
12137
|
+
});
|
|
12138
|
+
|
|
12139
|
+
// Ensure that all slots and then child objects are pushed to the end
|
|
12140
|
+
mq.forEach(function (el) {
|
|
12141
|
+
if (slots[el]) {
|
|
12142
|
+
props[el] = slots[el];
|
|
12143
|
+
}
|
|
12144
|
+
});
|
|
12145
|
+
Object.assign(props, objects);
|
|
12146
|
+
return props;
|
|
12147
|
+
}
|
|
12148
|
+
|
|
12149
|
+
return function () {
|
|
12150
|
+
for (var _len = arguments.length, values = Array(_len), _key = 0; _key < _len; _key++) {
|
|
12151
|
+
values[_key] = arguments[_key];
|
|
12152
|
+
}
|
|
12153
|
+
|
|
12154
|
+
return values.map(flatten);
|
|
12155
|
+
};
|
|
12156
|
+
};
|
|
12157
|
+
|
|
12158
|
+
var mediaQueries = index$1(["@media(max-width: 900px)", "@media(min-width: 900px)"], {
|
|
12159
|
+
literal: true,
|
|
12160
|
+
});
|
|
12161
|
+
|
|
12080
12162
|
var ErrorText = newStyled.h3(templateObject_1$Y || (templateObject_1$Y = __makeTemplateObject(["\n color: ", " !important;\n font-size: 0.75rem;\n font-weight: 600;\n margin: 0;\n font-height: 1rem;\n margin-left: 0.313rem;\n"], ["\n color: ", " !important;\n font-size: 0.75rem;\n font-weight: 600;\n margin: 0;\n font-height: 1rem;\n margin-left: 0.313rem;\n"])), function (props) { return props.color; });
|
|
12081
12163
|
var ErrorContainer = newStyled.div(templateObject_2$F || (templateObject_2$F = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-top: 12px;\n"], ["\n display: flex;\n align-items: center;\n margin-top: 12px;\n"])));
|
|
12082
12164
|
var Error$1 = function (_a) {
|
|
@@ -12392,90 +12474,6 @@ var Note = function (_a) {
|
|
|
12392
12474
|
};
|
|
12393
12475
|
var templateObject_1$O, templateObject_2$y, templateObject_3$u, templateObject_4$l;
|
|
12394
12476
|
|
|
12395
|
-
/* eslint-disable no-param-reassign */
|
|
12396
|
-
var index$1 = function (breakpoints) {
|
|
12397
|
-
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
12398
|
-
literal = _ref.literal,
|
|
12399
|
-
overlap = _ref.overlap;
|
|
12400
|
-
|
|
12401
|
-
var mq = literal ? breakpoints : ['&'].concat(breakpoints);
|
|
12402
|
-
|
|
12403
|
-
function flatten(obj) {
|
|
12404
|
-
if (typeof obj !== 'object' || obj == null) {
|
|
12405
|
-
return [];
|
|
12406
|
-
}
|
|
12407
|
-
|
|
12408
|
-
if (Array.isArray(obj)) {
|
|
12409
|
-
return obj.map(flatten);
|
|
12410
|
-
}
|
|
12411
|
-
|
|
12412
|
-
var slots = {};
|
|
12413
|
-
var objects = {};
|
|
12414
|
-
var props = {};
|
|
12415
|
-
Object.keys(obj).forEach(function (key) {
|
|
12416
|
-
// Check if value is an array, but skip if it looks like a selector.
|
|
12417
|
-
// key.indexOf('&') === 0
|
|
12418
|
-
|
|
12419
|
-
var item = obj[key];
|
|
12420
|
-
if (!Array.isArray(item) && literal) item = [item];
|
|
12421
|
-
|
|
12422
|
-
if ((literal || Array.isArray(item)) && key.charCodeAt(0) !== 38) {
|
|
12423
|
-
var prior = void 0;
|
|
12424
|
-
item.forEach(function (v, index) {
|
|
12425
|
-
// Optimize by removing duplicated media query entries
|
|
12426
|
-
// when they are explicitly known to overlap.
|
|
12427
|
-
if (overlap && prior === v) {
|
|
12428
|
-
return;
|
|
12429
|
-
}
|
|
12430
|
-
|
|
12431
|
-
if (v == null) {
|
|
12432
|
-
// Do not create entries for undefined values as this will
|
|
12433
|
-
// generate empty media media quries
|
|
12434
|
-
return;
|
|
12435
|
-
}
|
|
12436
|
-
|
|
12437
|
-
prior = v;
|
|
12438
|
-
|
|
12439
|
-
if (index === 0 && !literal) {
|
|
12440
|
-
props[key] = v;
|
|
12441
|
-
} else if (slots[mq[index]] === undefined) {
|
|
12442
|
-
var _slots$mq$index;
|
|
12443
|
-
|
|
12444
|
-
slots[mq[index]] = (_slots$mq$index = {}, _slots$mq$index[key] = v, _slots$mq$index);
|
|
12445
|
-
} else {
|
|
12446
|
-
slots[mq[index]][key] = v;
|
|
12447
|
-
}
|
|
12448
|
-
});
|
|
12449
|
-
} else if (typeof item === 'object') {
|
|
12450
|
-
objects[key] = flatten(item);
|
|
12451
|
-
} else {
|
|
12452
|
-
props[key] = item;
|
|
12453
|
-
}
|
|
12454
|
-
});
|
|
12455
|
-
|
|
12456
|
-
// Ensure that all slots and then child objects are pushed to the end
|
|
12457
|
-
mq.forEach(function (el) {
|
|
12458
|
-
if (slots[el]) {
|
|
12459
|
-
props[el] = slots[el];
|
|
12460
|
-
}
|
|
12461
|
-
});
|
|
12462
|
-
Object.assign(props, objects);
|
|
12463
|
-
return props;
|
|
12464
|
-
}
|
|
12465
|
-
|
|
12466
|
-
return function () {
|
|
12467
|
-
for (var _len = arguments.length, values = Array(_len), _key = 0; _key < _len; _key++) {
|
|
12468
|
-
values[_key] = arguments[_key];
|
|
12469
|
-
}
|
|
12470
|
-
|
|
12471
|
-
return values.map(flatten);
|
|
12472
|
-
};
|
|
12473
|
-
};
|
|
12474
|
-
|
|
12475
|
-
var mediaQueries = index$1(["@media(max-width: 900px)", "@media(min-width: 900px)"], {
|
|
12476
|
-
literal: true,
|
|
12477
|
-
});
|
|
12478
|
-
|
|
12479
12477
|
var Title$4 = newStyled.h1(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n color: ", ";\n font-size: 1.25rem;\n line-height: 1.75rem;\n font-weight: 600;\n margin: 0;\n text-align: center;\n"], ["\n color: ", ";\n font-size: 1.25rem;\n line-height: 1.75rem;\n font-weight: 600;\n margin: 0;\n text-align: center;\n"])), function (props) { return props.color; });
|
|
12480
12478
|
var Line = newStyled.div(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n width: 100%;\n height: 0.063rem;\n background-color: ", ";\n margin: 0.938rem 0;\n"], ["\n width: 100%;\n height: 0.063rem;\n background-color: ", ";\n margin: 0.938rem 0;\n"])), function (props) { return props.backgroundColor; });
|
|
12481
12479
|
var Row$1 = newStyled.div(templateObject_3$t || (templateObject_3$t = __makeTemplateObject(["\n display: flex;\n ", "\n justify-content: space-between;\n align-items: flex-start;\n"], ["\n display: flex;\n ", "\n justify-content: space-between;\n align-items: flex-start;\n"])), mediaQueries({
|
|
@@ -18334,5 +18332,5 @@ var ProductGalleryMobileV2 = function (_a) {
|
|
|
18334
18332
|
};
|
|
18335
18333
|
var templateObject_1;
|
|
18336
18334
|
|
|
18337
|
-
export { Accordion$1 as Accordion, AccordionOptions, AmazonButton, AssetsProvider, BeforeAfterCard, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, Card$3 as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ComponentPosition, ComponentSize, index as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconsWithTitle, Image, ImageCardWithDescription, Input$1 as Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProgressBar, QuantityPicker, RadioGroupInput, RadioInput, Rating, Review$1 as Review, Review as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text$6 as Text, TextButton, TextWithImage, ThemeProvider, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, decimalFormat, formatPrice, isEmail, isEmpty, isNumber$1 as isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, newStyled as styled, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
18335
|
+
export { Accordion$1 as Accordion, AccordionOptions, AmazonButton, AssetsProvider, BeforeAfterCard, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, Card$3 as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ComponentPosition, ComponentSize, index as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconsWithTitle, Image, ImageCardWithDescription, Input$1 as Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProgressBar, QuantityPicker, RadioGroupInput, RadioInput, Rating, Review$1 as Review, Review as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text$6 as Text, TextButton, TextWithImage, ThemeProvider, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, decimalFormat, formatPrice, isEmail, isEmpty, isNumber$1 as isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, simulateMouseClick, sliceString, newStyled as styled, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
18338
18336
|
//# sourceMappingURL=index.esm.js.map
|