@trafilea/afrodita-components 5.0.0-beta.63 → 5.0.0-beta.64

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.js CHANGED
@@ -11804,7 +11804,7 @@ var Text$3 = newStyled.p(templateObject_3$j || (templateObject_3$j = __makeTempl
11804
11804
  var Details = newStyled.span(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n color: ", ";\n font-weight: 700;\n"], ["\n color: ", ";\n font-weight: 700;\n"])), function (props) { return props.color; });
11805
11805
  var Note = function (_a) {
11806
11806
  var accentColor = _a.accentColor, color = _a.color, backgroundColor = _a.backgroundColor, importantNoteText = _a.importantNoteText, text = _a.text;
11807
- return (jsxRuntime.jsxs(Container$m, __assign$1({ color: backgroundColor, "data-testid": "Container" }, { children: [jsxRuntime.jsx(IconContainer$3, { children: jsxRuntime.jsx(Icon.Actions.LightExclamation, { fill: accentColor }, void 0) }, void 0), jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(Text$3, __assign$1({ color: color }, { children: [jsxRuntime.jsxs(Details, __assign$1({ color: accentColor }, { children: [importantNoteText, ":"] }), void 0), " ", text] }), void 0) }, void 0)] }), void 0));
11807
+ return (jsxRuntime.jsxs(Container$m, __assign$1({ color: backgroundColor, "data-testid": "Container" }, { children: [jsxRuntime.jsx(IconContainer$3, { children: jsxRuntime.jsx(Icon.Actions.LightExclamation, { fill: accentColor }, void 0) }, void 0), jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(Text$3, __assign$1({ color: color }, { children: [importantNoteText && jsxRuntime.jsxs(Details, __assign$1({ color: accentColor }, { children: [importantNoteText, ":"] }), void 0), " ", text] }), void 0) }, void 0)] }), void 0));
11808
11808
  };
11809
11809
  var templateObject_1$B, templateObject_2$n, templateObject_3$j, templateObject_4$e;
11810
11810
 
@@ -17079,7 +17079,7 @@ var Tabs = function (_a) {
17079
17079
  };
17080
17080
  var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4;
17081
17081
 
17082
- var Container = newStyled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 150px;\n height: auto;\n text-align: center;\n"], ["\n width: 150px;\n height: auto;\n text-align: center;\n"])));
17082
+ var Container = newStyled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n text-align: center;\n"], ["\n height: auto;\n text-align: center;\n"])));
17083
17083
  var IconWrapper = newStyled.div(function (props) { return ({
17084
17084
  borderRadius: '500px',
17085
17085
  width: '120px',
@@ -17089,17 +17089,22 @@ var IconWrapper = newStyled.div(function (props) { return ({
17089
17089
  alignItems: 'center',
17090
17090
  justifyContent: 'center',
17091
17091
  backgroundColor: props.backgroundColor,
17092
+ '@media (max-width: 767px)': {
17093
+ width: '80px',
17094
+ height: '80px',
17095
+ },
17092
17096
  }); });
17093
17097
  var IconsWithTitle = function (_a) {
17094
17098
  var _b;
17095
17099
  var iconName = _a.iconName, iconTitle = _a.iconTitle, backgroundColor = _a.backgroundColor, iconColor = _a.iconColor;
17100
+ var isMobile = useWindowDimensions({ mobile: 0, desktop: 768 }).isMobile;
17096
17101
  // @ts-ignore
17097
17102
  var IconComponent = (_b = Icon['MyAccount'][iconName]) !== null && _b !== void 0 ? _b : (function () { return 'Not found'; });
17098
17103
  if (IconComponent == null) {
17099
17104
  console.error('Icon', iconName, 'not found');
17100
17105
  return null;
17101
17106
  }
17102
- return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(Container, { children: [jsxRuntime.jsx(IconWrapper, __assign$1({ backgroundColor: backgroundColor }, { children: jsxRuntime.jsx(IconComponent, { width: 4, height: 4, fill: iconColor }, void 0) }), void 0), jsxRuntime.jsx(Text$5, __assign$1({ variant: "heading6", style: {
17107
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(Container, { 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$5, __assign$1({ variant: "heading6", style: {
17103
17108
  fontSize: '14px',
17104
17109
  textTransform: 'uppercase',
17105
17110
  textAlign: 'center',
@@ -17136,6 +17141,7 @@ exports.Image = Image;
17136
17141
  exports.Input = Input$1;
17137
17142
  exports.Modal = Modal;
17138
17143
  exports.MultiColorPicker = MultiColorPicker;
17144
+ exports.Note = Note;
17139
17145
  exports.OfferBanner = OfferBanner;
17140
17146
  exports.OrderBar = OrderBar;
17141
17147
  exports.Overlay = Overlay;