@trafilea/afrodita-components 6.37.4 → 6.38.0
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 +33 -2
- package/build/index.esm.js +111 -13
- package/build/index.esm.js.map +1 -1
- package/build/index.js +115 -12
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +11 -1
- package/build/theme/revel.theme.js +10 -0
- package/build/theme/shapermint.theme.d.ts +11 -1
- package/build/theme/shapermint.theme.js +14 -0
- package/build/theme/thebodcon.theme.d.ts +11 -1
- package/build/theme/thebodcon.theme.js +10 -0
- package/build/theme/thespadr.theme.d.ts +11 -1
- package/build/theme/thespadr.theme.js +10 -0
- package/build/theme/truekind.theme.d.ts +11 -1
- package/build/theme/truekind.theme.js +10 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3164,6 +3164,7 @@ exports.ComponentSize = void 0;
|
|
|
3164
3164
|
ComponentSize["Medium"] = "medium";
|
|
3165
3165
|
ComponentSize["Small"] = "small";
|
|
3166
3166
|
ComponentSize["XSmall"] = "xsmall";
|
|
3167
|
+
ComponentSize["XXSmall"] = "xxsmall";
|
|
3167
3168
|
})(exports.ComponentSize || (exports.ComponentSize = {}));
|
|
3168
3169
|
exports.ComponentPosition = void 0;
|
|
3169
3170
|
(function (ComponentPosition) {
|
|
@@ -4827,7 +4828,7 @@ var Text$7 = function (_a) {
|
|
|
4827
4828
|
var variant = _a.variant, children = _a.children, testId = _a.testId, asSpan = _a.asSpan, allProps = __rest(_a, ["variant", "children", "testId", "asSpan"]);
|
|
4828
4829
|
var theme = useTheme();
|
|
4829
4830
|
var Tag = asSpan ? 'span' : TAGS[variant] || 'p';
|
|
4830
|
-
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, color = _c.color, props = __rest(_c, ["size", "weight", "color"]);
|
|
4831
|
+
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, color = _c.color, inline = _c.inline, props = __rest(_c, ["size", "weight", "color", "inline"]);
|
|
4831
4832
|
var commonCSS = React$2.useMemo(function () {
|
|
4832
4833
|
var _a, _b;
|
|
4833
4834
|
// These are the common style inside a `variant`.
|
|
@@ -4844,17 +4845,21 @@ var Text$7 = function (_a) {
|
|
|
4844
4845
|
var variantName = [variant, size].filter(Boolean).join('-');
|
|
4845
4846
|
// These are styles specific to `variation-size`.
|
|
4846
4847
|
var variantSizeStyle = (_b = theme.typography.variants[variantName]) !== null && _b !== void 0 ? _b : {};
|
|
4847
|
-
var style = __assign$1(__assign$1(__assign$1({ margin: 0, color: color
|
|
4848
|
-
if (weight) {
|
|
4849
|
-
style.fontWeight = theme.typography.config.weight[weight];
|
|
4850
|
-
}
|
|
4851
|
-
if (props.disabled) {
|
|
4852
|
-
style.opacity = 0.5;
|
|
4853
|
-
style.cursor = 'not-allowed';
|
|
4854
|
-
style.color = theme.colors.text.disabled;
|
|
4855
|
-
}
|
|
4848
|
+
var style = __assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1({ margin: 0, color: props.disabled ? theme.colors.text.disabled : color !== null && color !== void 0 ? color : theme.colors.text.color }, variantstyle), variantSizeStyle), { fontFamily: theme.fonts.config[0].family }), (weight ? { fontWeight: theme.typography.config.weight[weight] } : {})), (props.disabled ? { opacity: 0.5 } : {})), (props.disabled ? { cursor: 'not-allowed' } : {})), (inline ? { display: 'inline-block' } : {}));
|
|
4856
4849
|
return style;
|
|
4857
|
-
}, [
|
|
4850
|
+
}, [
|
|
4851
|
+
theme.typography.variants,
|
|
4852
|
+
theme.typography.config.weight,
|
|
4853
|
+
theme.fonts.config,
|
|
4854
|
+
theme.colors.text.disabled,
|
|
4855
|
+
theme.colors.text.color,
|
|
4856
|
+
variant,
|
|
4857
|
+
size,
|
|
4858
|
+
props.disabled,
|
|
4859
|
+
color,
|
|
4860
|
+
weight,
|
|
4861
|
+
inline,
|
|
4862
|
+
]);
|
|
4858
4863
|
// This is to make TS happy, because `href` doesn't exists on other `variants`
|
|
4859
4864
|
var propsHref = props.href;
|
|
4860
4865
|
var href = React$2.useMemo(function () {
|
|
@@ -5319,6 +5324,89 @@ var CancellationFlowAccordionContentPerPartner = {
|
|
|
5319
5324
|
TheBodCon: [cancellationFlowContentPerKey['TheBodCon']],
|
|
5320
5325
|
};
|
|
5321
5326
|
|
|
5327
|
+
var isDangerouslySetInnerHTML = function (content) {
|
|
5328
|
+
return content && typeof content === 'object' && '__html' in content;
|
|
5329
|
+
};
|
|
5330
|
+
|
|
5331
|
+
var title = (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", size: "small", color: "#D4605B", weight: "demi", inline: true }, { children: "Save 50% OFF" }), void 0), ' ', jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", size: "small", weight: "demi", inline: true }, { children: ["on this best-seller Panty!", ' '] }), void 0), ' ', jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", size: "small", weight: "regular", inline: true }, { children: ["Pay only", ' '] }), void 0), ' ', jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", size: "small", weight: "demi", inline: true }, { children: ["$8,99 each", ' '] }), void 0), ' ', jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", size: "small", weight: "regular", inline: true }, { children: "with autoship:" }), void 0)] }, void 0));
|
|
5332
|
+
var commonIconProps = {
|
|
5333
|
+
fill: 'var(--shapermint-semantic-urgent-salered-140-c-64844, #C64844);',
|
|
5334
|
+
width: '24px',
|
|
5335
|
+
height: '24px',
|
|
5336
|
+
};
|
|
5337
|
+
var benefits = function (size) { return [
|
|
5338
|
+
{
|
|
5339
|
+
icon: __assign$1({ name: 'custom/gift_thin' }, commonIconProps),
|
|
5340
|
+
text: (jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", size: size, weight: "regular", inline: true }, { children: [jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", size: size, weight: "demi", inline: true, asSpan: true }, { children: "Free mystery gift" }), void 0), ' ', "in this order"] }), "first-benefit")),
|
|
5341
|
+
},
|
|
5342
|
+
{
|
|
5343
|
+
icon: __assign$1({ name: 'custom/savings' }, commonIconProps),
|
|
5344
|
+
text: (jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", size: size, weight: "regular", inline: true }, { children: ["Lock-in this", ' ', jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", size: size, weight: "demi", inline: true, asSpan: true }, { children: "Guaranteed lowest price" }), void 0)] }), "second-benefit")),
|
|
5345
|
+
},
|
|
5346
|
+
{
|
|
5347
|
+
icon: __assign$1({ name: 'custom/returns' }, commonIconProps),
|
|
5348
|
+
text: (jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", size: size, weight: "regular", inline: true }, { children: "Receive it every 3 months. Cancel anytime" }), "third-benefit")),
|
|
5349
|
+
},
|
|
5350
|
+
]; };
|
|
5351
|
+
var benefitsRawHtml = [
|
|
5352
|
+
{
|
|
5353
|
+
icon: __assign$1({ name: 'custom/gift_thin' }, commonIconProps),
|
|
5354
|
+
text: '<span style="font-weight: 600;">Free mystery gift</span> in this order',
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
icon: __assign$1({ name: 'custom/savings' }, commonIconProps),
|
|
5358
|
+
text: 'Lock-in this <span style="font-weight: 600;">Guaranteed lowest price</span>',
|
|
5359
|
+
},
|
|
5360
|
+
{
|
|
5361
|
+
icon: __assign$1({ name: 'custom/returns' }, commonIconProps),
|
|
5362
|
+
text: 'Receive it every 3 months. Cancel anytime',
|
|
5363
|
+
},
|
|
5364
|
+
];
|
|
5365
|
+
var sizeOptions = [
|
|
5366
|
+
{
|
|
5367
|
+
key: 'S',
|
|
5368
|
+
label: 'S',
|
|
5369
|
+
value: 'S',
|
|
5370
|
+
disabled: false,
|
|
5371
|
+
},
|
|
5372
|
+
{
|
|
5373
|
+
key: 'M',
|
|
5374
|
+
label: 'M',
|
|
5375
|
+
value: 'M',
|
|
5376
|
+
disabled: false,
|
|
5377
|
+
},
|
|
5378
|
+
{
|
|
5379
|
+
key: 'L',
|
|
5380
|
+
label: 'L',
|
|
5381
|
+
value: 'L',
|
|
5382
|
+
disabled: false,
|
|
5383
|
+
},
|
|
5384
|
+
{
|
|
5385
|
+
key: 'XL',
|
|
5386
|
+
label: 'XL',
|
|
5387
|
+
value: 'XL',
|
|
5388
|
+
disabled: false,
|
|
5389
|
+
},
|
|
5390
|
+
{
|
|
5391
|
+
key: '2XL',
|
|
5392
|
+
label: '2XL',
|
|
5393
|
+
value: '2XL',
|
|
5394
|
+
disabled: false,
|
|
5395
|
+
},
|
|
5396
|
+
{
|
|
5397
|
+
key: '3XL',
|
|
5398
|
+
label: '3XL',
|
|
5399
|
+
value: '3XL',
|
|
5400
|
+
disabled: false,
|
|
5401
|
+
},
|
|
5402
|
+
{
|
|
5403
|
+
key: '4XL',
|
|
5404
|
+
label: '4XL',
|
|
5405
|
+
value: '4XL',
|
|
5406
|
+
disabled: false,
|
|
5407
|
+
},
|
|
5408
|
+
];
|
|
5409
|
+
|
|
5322
5410
|
var ErrorText = newStyled.h3(templateObject_1$1$ || (templateObject_1$1$ = __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; });
|
|
5323
5411
|
var ErrorContainer = newStyled.div(templateObject_2$1s || (templateObject_2$1s = __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"])));
|
|
5324
5412
|
var Error$1 = function (_a) {
|
|
@@ -6218,6 +6306,7 @@ exports.BeforeAfterVariant = void 0;
|
|
|
6218
6306
|
BeforeAfterVariant["ResultFeedback"] = "ResultFeedback";
|
|
6219
6307
|
})(exports.BeforeAfterVariant || (exports.BeforeAfterVariant = {}));
|
|
6220
6308
|
var componentSizeMapper = (_a$2 = {},
|
|
6309
|
+
_a$2[exports.ComponentSize.XXSmall] = exports.ComponentSize.Small,
|
|
6221
6310
|
_a$2[exports.ComponentSize.XSmall] = exports.ComponentSize.Small,
|
|
6222
6311
|
_a$2[exports.ComponentSize.Small] = exports.ComponentSize.Small,
|
|
6223
6312
|
_a$2[exports.ComponentSize.Medium] = exports.ComponentSize.Medium,
|
|
@@ -6619,6 +6708,13 @@ var LabelStyles = {
|
|
|
6619
6708
|
fontWeight: theme.component.rating.fontWeight,
|
|
6620
6709
|
});
|
|
6621
6710
|
},
|
|
6711
|
+
xxsmall: function (theme) {
|
|
6712
|
+
return css({
|
|
6713
|
+
fontSize: theme.component.rating.size.xxsmall.fontSize,
|
|
6714
|
+
lineHeight: theme.component.rating.size.xxsmall.lineHeight,
|
|
6715
|
+
marginLeft: '0.1rem',
|
|
6716
|
+
});
|
|
6717
|
+
},
|
|
6622
6718
|
xsmall: function (theme) {
|
|
6623
6719
|
return css({
|
|
6624
6720
|
fontSize: theme.component.rating.size.xsmall.fontSize,
|
|
@@ -6766,7 +6862,7 @@ var ImageContainer$6 = newStyled.div(function (_a) {
|
|
|
6766
6862
|
var ImageHoverContainer$3 = newStyled.img(templateObject_1$1z || (templateObject_1$1z = __makeTemplateObject(["\n opacity: 0;\n position: absolute;\n transition: all 0.4s ease-in-out;\n"], ["\n opacity: 0;\n position: absolute;\n transition: all 0.4s ease-in-out;\n"])));
|
|
6767
6863
|
var Container$12 = newStyled.a(templateObject_2$1c || (templateObject_2$1c = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n text-decoration: none;\n\n &:hover .hover__image {\n opacity: 1;\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n text-decoration: none;\n\n &:hover .hover__image {\n opacity: 1;\n }\n"])));
|
|
6768
6864
|
var ProdCardContainer$4 = newStyled.div(templateObject_3$Y || (templateObject_3$Y = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: min-content;\n text-decoration: none;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: min-content;\n text-decoration: none;\n"])));
|
|
6769
|
-
var Title$7 = newStyled.
|
|
6865
|
+
var Title$7 = newStyled.h2(templateObject_4$M || (templateObject_4$M = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: 1.375rem;\n min-height: 2.75rem;\n text-align: center;\n color: ", ";\n margin: 0.25rem 0;\n text-align: ", ";\n\n ", "\n\n ", "\n\n @media (max-width: ", "px) {\n font-size: ", ";\n }\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: 1.375rem;\n min-height: 2.75rem;\n text-align: center;\n color: ", ";\n margin: 0.25rem 0;\n text-align: ", ";\n\n ", "\n\n ", "\n\n @media (max-width: ", "px) {\n font-size: ", ";\n }\n"])), function (_a) {
|
|
6770
6866
|
var theme = _a.theme;
|
|
6771
6867
|
return STYLES_BY_THEME[theme.name].title.fontSize;
|
|
6772
6868
|
}, function (_a) {
|
|
@@ -7198,6 +7294,7 @@ var sizeMapper = (_a = {},
|
|
|
7198
7294
|
_a[exports.ComponentSize.Medium] = 'medium',
|
|
7199
7295
|
_a[exports.ComponentSize.Large] = 'large',
|
|
7200
7296
|
_a[exports.ComponentSize.XSmall] = 'small',
|
|
7297
|
+
_a[exports.ComponentSize.XXSmall] = 'small',
|
|
7201
7298
|
_a);
|
|
7202
7299
|
var StyledBaseButton = newStyled(BaseButton)(templateObject_1$1s || (templateObject_1$1s = __makeTemplateObject(["\n width: ", ";\n font-size: ", ";\n padding: ", ";\n font-weight: ", ";\n border-radius: ", ";\n cursor: pointer;\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n svg {\n color: inherit;\n }\n"], ["\n width: ", ";\n font-size: ", ";\n padding: ", ";\n font-weight: ", ";\n border-radius: ", ";\n cursor: pointer;\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n svg {\n color: inherit;\n }\n"])), function (_a) {
|
|
7203
7300
|
var wide = _a.wide;
|
|
@@ -21588,6 +21685,7 @@ var Container$1 = newStyled.div(templateObject_1$1 || (templateObject_1$1 = __ma
|
|
|
21588
21685
|
return (size ? size : '100%');
|
|
21589
21686
|
});
|
|
21590
21687
|
var borderSize = {
|
|
21688
|
+
xxsmall: '0.5px',
|
|
21591
21689
|
xsmall: '1px',
|
|
21592
21690
|
small: '1.5px',
|
|
21593
21691
|
medium: '2px',
|
|
@@ -21889,6 +21987,8 @@ exports.Totals = Totals;
|
|
|
21889
21987
|
exports.TrackingProgress = TrackingProgress;
|
|
21890
21988
|
exports.TrackingProgressV2 = TrackingProgressV2;
|
|
21891
21989
|
exports.Video = Video$1;
|
|
21990
|
+
exports.benefits = benefits;
|
|
21991
|
+
exports.benefitsRawHtml = benefitsRawHtml;
|
|
21892
21992
|
exports.buildImageUrl = buildImageUrl;
|
|
21893
21993
|
exports.componentSizeMapper = componentSizeMapper;
|
|
21894
21994
|
exports.createCache = createCache;
|
|
@@ -21896,6 +21996,7 @@ exports.css = css;
|
|
|
21896
21996
|
exports.decimalFormat = decimalFormat;
|
|
21897
21997
|
exports.formatPrice = formatPrice;
|
|
21898
21998
|
exports.getSrcSet = getSrcSet;
|
|
21999
|
+
exports.isDangerouslySetInnerHTML = isDangerouslySetInnerHTML;
|
|
21899
22000
|
exports.isEmail = isEmail;
|
|
21900
22001
|
exports.isEmpty = isEmpty;
|
|
21901
22002
|
exports.isNumber = isNumber$1;
|
|
@@ -21905,8 +22006,10 @@ exports.mediaQueries = mediaQueries;
|
|
|
21905
22006
|
exports.modalEvent = modalEvent;
|
|
21906
22007
|
exports.seasonOfferRoundedTag = SeasonOfferRoundedTag;
|
|
21907
22008
|
exports.simulateMouseClick = simulateMouseClick;
|
|
22009
|
+
exports.sizeOptions = sizeOptions;
|
|
21908
22010
|
exports.sliceString = sliceString;
|
|
21909
22011
|
exports.styled = newStyled;
|
|
22012
|
+
exports.title = title;
|
|
21910
22013
|
exports.useDeviceType = useDeviceType;
|
|
21911
22014
|
exports.useModal = useModal;
|
|
21912
22015
|
exports.useModalEvent = useModalEvent;
|