@trafilea/afrodita-components 5.0.0-beta.76 → 5.0.0-beta.77
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.css +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.esm.css +1 -1
- package/build/index.esm.js +14 -9
- package/build/index.esm.js.map +1 -1
- package/build/index.js +14 -9
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3726,7 +3726,7 @@ var transformFonts = function (fonts) {
|
|
|
3726
3726
|
return inline("@font-face { ".concat(css.join(';\n'), "; }"));
|
|
3727
3727
|
})
|
|
3728
3728
|
.join('\n');
|
|
3729
|
-
return inline("\n ".concat(css, "\n body {\n font-family: \"").concat(fonts.config[0].family, "\";\n }\n "));
|
|
3729
|
+
return inline("\n ".concat(css, "\n body, input {\n font-family: \"").concat(fonts.config[0].family, "\";\n }\n "));
|
|
3730
3730
|
};
|
|
3731
3731
|
var inline = function (text) {
|
|
3732
3732
|
return text.trim().replace(/\s+/g, ' ').replace(/\n/g, '');
|
|
@@ -11604,7 +11604,7 @@ var StyledInput = newStyled.input(templateObject_2$v || (templateObject_2$v = __
|
|
|
11604
11604
|
});
|
|
11605
11605
|
var InputWrapper = newStyled.div(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n position: relative;\n display: flex;\n height: ", ";\n"], ["\n position: relative;\n display: flex;\n height: ", ";\n"])), function (_a) {
|
|
11606
11606
|
var size = _a.size, inlinePlaceholder = _a.inlinePlaceholder;
|
|
11607
|
-
return !inlinePlaceholder ? (size === 'small' ? '36px' : '
|
|
11607
|
+
return !inlinePlaceholder ? (size === 'small' ? '36px' : '40px') : '48px';
|
|
11608
11608
|
});
|
|
11609
11609
|
var AnimatedPlaceholder = newStyled.span(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n color: #8b8b8b;\n font-weight: 400;\n left: 0.9375rem;\n bottom: 0.9375rem;\n transition: all 0.2s ease;\n position: absolute;\n pointer-events: none;\n font-size: 0.875rem;\n"], ["\n color: #8b8b8b;\n font-weight: 400;\n left: 0.9375rem;\n bottom: 0.9375rem;\n transition: all 0.2s ease;\n position: absolute;\n pointer-events: none;\n font-size: 0.875rem;\n"])));
|
|
11610
11610
|
var ClearInput = newStyled.div(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n right: 0.75rem;\n top: 1rem;\n position: absolute;\n cursor: pointer;\n"], ["\n right: 0.75rem;\n top: 1rem;\n position: absolute;\n cursor: pointer;\n"])));
|
|
@@ -11654,6 +11654,7 @@ var BaseInput = function (_a) {
|
|
|
11654
11654
|
placeholderColor: theme.component.input.placeholderColor,
|
|
11655
11655
|
disabledBackgroundColor: theme.colors.background.disabled,
|
|
11656
11656
|
disabledColor: theme.colors.text.disabled,
|
|
11657
|
+
fontFamily: theme.fonts.config[0].family,
|
|
11657
11658
|
fontSize: inlinePlaceholder
|
|
11658
11659
|
? theme.component.inputPlaceholder.fontSize
|
|
11659
11660
|
: theme.component.input.fontSize,
|
|
@@ -17153,11 +17154,11 @@ var IconsWithTitle = function (_a) {
|
|
|
17153
17154
|
console.error('Icon', iconName, 'not found');
|
|
17154
17155
|
return null;
|
|
17155
17156
|
}
|
|
17156
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(Container$1, { children: [jsxRuntime.jsx(IconWrapper, __assign$1({ backgroundColor: backgroundColor }, { children: jsxRuntime.jsx(IconComponent, { width: isMobile ? 3 : 4, height: isMobile ? 3 : 4, fill: iconColor }, void 0) }), void 0), jsxRuntime.jsx(Text$6, __assign$1({ variant: "heading6", style: {
|
|
17157
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(Container$1, { children: [jsxRuntime.jsx(IconWrapper, __assign$1({ backgroundColor: backgroundColor }, { children: jsxRuntime.jsx(IconComponent, { width: isMobile ? 3 : 4, height: isMobile ? 3 : 4, fill: iconColor }, void 0) }), void 0), jsxRuntime.jsx(Text$6, __assign$1({ variant: "heading6", weight: "demi", style: {
|
|
17157
17158
|
fontSize: '14px',
|
|
17158
17159
|
textTransform: 'uppercase',
|
|
17159
17160
|
textAlign: 'center',
|
|
17160
|
-
lineHeight: '
|
|
17161
|
+
lineHeight: '18px',
|
|
17161
17162
|
} }, { children: iconTitle }), void 0)] }, void 0) }, void 0));
|
|
17162
17163
|
};
|
|
17163
17164
|
var templateObject_1$2;
|
|
@@ -17192,20 +17193,24 @@ var Container = newStyled.div(templateObject_3 || (templateObject_3 = __makeTemp
|
|
|
17192
17193
|
var TextContainer = newStyled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 15px;\n gap: 24px;\n text-align: center;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 15px;\n gap: 24px;\n text-align: center;\n"])));
|
|
17193
17194
|
var TextWithImage = function (_a) {
|
|
17194
17195
|
var _b, _c, _d, _e;
|
|
17195
|
-
var title = _a.title, text = _a.text, buttomText = _a.buttomText, backgroundColor = _a.backgroundColor, imageLeftSide = _a.imageLeftSide, props = __rest(_a, ["title", "text", "buttomText", "backgroundColor", "imageLeftSide"]);
|
|
17196
|
+
var title = _a.title, text = _a.text, buttomText = _a.buttomText, backgroundColor = _a.backgroundColor, imageLeftSide = _a.imageLeftSide, titleStyle = _a.titleStyle, textStyle = _a.textStyle, props = __rest(_a, ["title", "text", "buttomText", "backgroundColor", "imageLeftSide", "titleStyle", "textStyle"]);
|
|
17196
17197
|
var isMobile = useWindowDimensions({ desktop: 768, mobile: 0 }).isMobile;
|
|
17197
|
-
var ImageTitle = function () { return (
|
|
17198
|
+
var ImageTitle = function () { return (jsx(Fragment, { children: !isMobile ? (jsx(Text$6, __assign$1({ variant: "heading2", weight: "bold", style: titleStyle
|
|
17199
|
+
? titleStyle
|
|
17200
|
+
: {
|
|
17198
17201
|
color: '#000000',
|
|
17199
17202
|
textAlign: 'center',
|
|
17200
|
-
} }, { children: title }), void 0))
|
|
17203
|
+
} }, { children: title }), void 0)) : (jsx(Text$6, __assign$1({ variant: "heading3", weight: "bold", style: titleStyle
|
|
17204
|
+
? titleStyle
|
|
17205
|
+
: {
|
|
17201
17206
|
color: '#000000',
|
|
17202
17207
|
textAlign: 'center',
|
|
17203
|
-
} }, { children: title }), void 0))
|
|
17208
|
+
} }, { children: title }), void 0)) }, void 0)); };
|
|
17204
17209
|
var buttonAction = function () {
|
|
17205
17210
|
// @ts-ignore
|
|
17206
17211
|
props.isRedirectionURL ? (window.location.href = props.URLLink) : props.onButtonClick;
|
|
17207
17212
|
};
|
|
17208
|
-
return (jsxs(Container, __assign$1({ style: { backgroundColor: backgroundColor } }, { children: [isMobile && jsx(ImageTitle, {}, void 0), (imageLeftSide || isMobile) && (jsx(ImageVideo, { imageLink: (_b = props.imgVideo) === null || _b === void 0 ? void 0 : _b.imageLink, isMobile: isMobile, isVideo: (_c = props.imgVideo) === null || _c === void 0 ? void 0 : _c.isVideo }, void 0)), jsxs(TextContainer, { children: [!isMobile && jsx(ImageTitle, {}, void 0), jsx(Text$6, __assign$1({ variant: "body", weight: "regular", style: { maxWidth: '450px' } }, { children: text }), void 0), jsx(BaseCTA, { text: buttomText, size: exports.ComponentSize.Medium, wide: isMobile ? true : false, onClick: buttonAction, testId: buttomText, css: {
|
|
17213
|
+
return (jsxs(Container, __assign$1({ style: { backgroundColor: backgroundColor } }, { children: [isMobile && jsx(ImageTitle, {}, void 0), (imageLeftSide || isMobile) && (jsx(ImageVideo, { imageLink: (_b = props.imgVideo) === null || _b === void 0 ? void 0 : _b.imageLink, isMobile: isMobile, isVideo: (_c = props.imgVideo) === null || _c === void 0 ? void 0 : _c.isVideo }, void 0)), jsxs(TextContainer, { children: [!isMobile && jsx(ImageTitle, {}, void 0), jsx(Text$6, __assign$1({ variant: "body", weight: "regular", style: textStyle ? textStyle : { maxWidth: '450px' } }, { children: text }), void 0), jsx(BaseCTA, { text: buttomText, size: exports.ComponentSize.Medium, wide: isMobile ? true : false, onClick: buttonAction, testId: buttomText, css: {
|
|
17209
17214
|
backgroundColor: props.btnBGColor,
|
|
17210
17215
|
color: '#ffffff',
|
|
17211
17216
|
border: props.btnBGColor,
|