@trafilea/afrodita-components 6.2.0 → 6.4.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 CHANGED
@@ -72,7 +72,7 @@ declare type IconProps$1 = {
72
72
  className?: string;
73
73
  } & StyledIconProps;
74
74
 
75
- declare const Icon$1: React__default.FC<IconProps$1>;
75
+ declare const Icon$1: React__default.NamedExoticComponent<IconProps$1>;
76
76
 
77
77
  declare type Props$1 = Omit<IconProps$1, 'name'>;
78
78
  declare type IconComponent = React__default.FC<Props$1>;
@@ -1219,7 +1219,7 @@ declare type Theme = {
1219
1219
  };
1220
1220
  declare type ThemeBreakpoints = {
1221
1221
  mobile: number;
1222
- tablet?: number;
1222
+ tablet: number;
1223
1223
  desktop: number;
1224
1224
  };
1225
1225
  declare type ThemeBasicPallete = {
@@ -1943,7 +1943,14 @@ declare type ThemeAssets = {
1943
1943
  };
1944
1944
  };
1945
1945
  [key: string]: any;
1946
- };
1946
+ };
1947
+ declare const Viewports: {
1948
+ readonly mobile: "mobile";
1949
+ readonly tablet: "tablet";
1950
+ readonly desktop: "desktop";
1951
+ readonly desktopLarge: "desktopLarge";
1952
+ };
1953
+ declare type Viewport = typeof Viewports[keyof typeof Viewports];
1947
1954
 
1948
1955
  declare type ThemeProviderProps = {
1949
1956
  isSameOriginIcons?: boolean;
@@ -3338,13 +3345,19 @@ declare const Spinner: React.FC<SpinnerProps>;
3338
3345
 
3339
3346
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
3340
3347
 
3341
- declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
3348
+ declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
3349
+ shouldListenChanges?: boolean;
3350
+ }) => {
3351
+ viewport: Viewport;
3342
3352
  isMobile: boolean;
3353
+ isTablet: boolean;
3354
+ isDesktop: boolean;
3343
3355
  windowDimensions: {
3344
3356
  width: number;
3345
3357
  height: number;
3346
3358
  };
3347
- };
3359
+ };
3360
+ declare const useWindowDimensions: UseWindowDimensions;
3348
3361
 
3349
3362
  declare global {
3350
3363
  interface Events {
@@ -3107,6 +3107,20 @@ var formatPrice = function (value, _a) {
3107
3107
  }).format(valueToFormat);
3108
3108
  };
3109
3109
 
3110
+ var Viewports = {
3111
+ mobile: 'mobile',
3112
+ tablet: 'tablet',
3113
+ desktop: 'desktop',
3114
+ desktopLarge: 'desktopLarge',
3115
+ };
3116
+
3117
+ //ANNOTATION: Those values are up to.
3118
+ var DEFAULT_BREAKPOINTS = {
3119
+ mobile: 640,
3120
+ tablet: 1024,
3121
+ desktop: 1280,
3122
+ };
3123
+
3110
3124
  var Container$17 = newStyled.div(templateObject_1$1O || (templateObject_1$1O = __makeTemplateObject(["\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n }\n\n display: inline-block;\n height: ", ";\n width: ", ";\n position: relative;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n\n ::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(\n 90deg,\n ", ",\n ", ",\n ", "\n );\n animation: shimmer 2s infinite;\n content: '';\n box-sizing: border-box;\n }\n"], ["\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n }\n\n display: inline-block;\n height: ", ";\n width: ", ";\n position: relative;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n\n ::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(\n 90deg,\n ", ",\n ", ",\n ", "\n );\n animation: shimmer 2s infinite;\n content: '';\n box-sizing: border-box;\n }\n"])), function (_a) {
3111
3125
  var height = _a.height;
3112
3126
  return (height ? height : '1.5em');
@@ -3201,19 +3215,26 @@ var fetchWithCache = function (request, saveToCacheFn) {
3201
3215
  var createIconImage = function (_a) {
3202
3216
  var src = _a.src;
3203
3217
  return __awaiter(void 0, void 0, void 0, function () {
3204
- var blob, localUrl_1, cleanup, error_1;
3218
+ var localUrl, error_1;
3205
3219
  return __generator(this, function (_b) {
3206
3220
  switch (_b.label) {
3207
3221
  case 0:
3208
3222
  _b.trys.push([0, 2, , 3]);
3209
- return [4 /*yield*/, fetchWithCache(src, function (response) { return response.blob(); })];
3223
+ return [4 /*yield*/, fetchWithCache(src, function (response) { return __awaiter(void 0, void 0, void 0, function () {
3224
+ var blob;
3225
+ return __generator(this, function (_a) {
3226
+ switch (_a.label) {
3227
+ case 0: return [4 /*yield*/, response.blob()];
3228
+ case 1:
3229
+ blob = _a.sent();
3230
+ return [2 /*return*/, URL.createObjectURL(blob)];
3231
+ }
3232
+ });
3233
+ }); })];
3210
3234
  case 1:
3211
- blob = _b.sent();
3212
- localUrl_1 = URL.createObjectURL(blob);
3213
- cleanup = function () { return URL.revokeObjectURL(localUrl_1); };
3235
+ localUrl = _b.sent();
3214
3236
  return [2 /*return*/, {
3215
- src: localUrl_1,
3216
- cleanup: cleanup,
3237
+ src: localUrl,
3217
3238
  }];
3218
3239
  case 2:
3219
3240
  error_1 = _b.sent();
@@ -3262,11 +3283,10 @@ var IconFromExtSource = function (_a) {
3262
3283
  if (!localSource) {
3263
3284
  fetchIcon();
3264
3285
  }
3265
- return localSource === null || localSource === void 0 ? void 0 : localSource.cleanup;
3266
- }, [iconURL, localSource === null || localSource === void 0 ? void 0 : localSource.cleanup]);
3286
+ }, [iconURL]);
3267
3287
  var imageProperties = __assign$1({ alt: title !== null && title !== void 0 ? title : name, 'data-testid': testId, height: height, width: width }, rest);
3268
3288
  if (error) {
3269
- return jsx$1(StyledImageWrapper, __assign$1({}, imageProperties, rest, { src: iconURL }), void 0);
3289
+ return jsx$1(StyledImageWrapper, __assign$1({}, imageProperties, { src: iconURL }), void 0);
3270
3290
  }
3271
3291
  if (!localSource) {
3272
3292
  return jsx$1(SkeletonBox, { width: width, height: height }, void 0);
@@ -3278,7 +3298,7 @@ var IconFromExtSource = function (_a) {
3278
3298
  };
3279
3299
 
3280
3300
  /* eslint-disable react/forbid-component-props */
3281
- var Icon$1 = function (_a) {
3301
+ var UnmemoIcon = function (_a) {
3282
3302
  var height = _a.height, _b = _a.width, width = _b === void 0 ? 1 : _b, title = _a.title, testId = _a.testId, fill = _a.fill, name = _a.name, svgProps = _a.svgProps, rest = __rest(_a, ["height", "width", "title", "testId", "fill", "name", "svgProps"]);
3283
3303
  var assets = useTheme().assets;
3284
3304
  var newWidth = width && getIconDimension(width);
@@ -3290,7 +3310,8 @@ var Icon$1 = function (_a) {
3290
3310
  return (jsxs$1(StyledSvgWrapper, __assign$1({ "data-testid": testId, fill: fill, height: newHeight, type: "image/svg+xml", width: newWidth }, rest, svgProps, { children: [jsx$1("title", { children: title !== null && title !== void 0 ? title : name }, void 0), jsx$1("use", { xlinkHref: "".concat(iconURL, "#").concat(svgId) }, void 0)] }), void 0));
3291
3311
  }
3292
3312
  return (jsx$1(IconFromExtSource, __assign$1({ svgId: svgId, iconURL: iconURL, testId: testId, fill: fill, height: newHeight, svgProps: svgProps, width: newWidth, name: name, title: title }, rest), void 0));
3293
- };
3313
+ };
3314
+ var Icon$1 = React__default.memo(UnmemoIcon, function (prevProps, nextProps) { return prevProps.name !== nextProps.name; });
3294
3315
 
3295
3316
  var Add = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "actions/add" }), void 0); };
3296
3317
 
@@ -5210,27 +5231,56 @@ var DiscountTag = function (_a) {
5210
5231
  var templateObject_1$1A, templateObject_2$10;
5211
5232
 
5212
5233
  function getWindowDimensions() {
5234
+ if (typeof window === 'undefined')
5235
+ return { width: 0, height: 0 };
5213
5236
  var width = window.innerWidth, height = window.innerHeight;
5214
5237
  return {
5215
5238
  width: width,
5216
5239
  height: height,
5217
5240
  };
5218
5241
  }
5219
- var useWindowDimensions = function (breakpoints) {
5220
- var _a = useState({ width: 0, height: 0 }), windowDimensions = _a[0], setWindowDimensions = _a[1];
5242
+ var getViewport = function (breakpoints, width) {
5243
+ if (width <= breakpoints.mobile)
5244
+ return Viewports.mobile;
5245
+ if (width <= breakpoints.tablet)
5246
+ return Viewports.tablet;
5247
+ if (width <= breakpoints.desktop)
5248
+ return Viewports.desktop;
5249
+ return Viewports.desktopLarge;
5250
+ };
5251
+ var useWindowDimensions = function (breakpoints, _a) {
5252
+ if (breakpoints === void 0) { breakpoints = DEFAULT_BREAKPOINTS; }
5253
+ var _b = _a === void 0 ? {} : _a, shouldListenChanges = _b.shouldListenChanges;
5254
+ var _c = useState(function () {
5255
+ var dimension = getWindowDimensions();
5256
+ return {
5257
+ windowDimensions: dimension,
5258
+ viewport: getViewport(breakpoints, dimension.width),
5259
+ };
5260
+ }), state = _c[0], setState = _c[1];
5221
5261
  useEffect(function () {
5222
5262
  function handleResize() {
5223
- setWindowDimensions(getWindowDimensions());
5263
+ var newDimension = getWindowDimensions();
5264
+ var newViewport = getViewport(breakpoints, newDimension.width);
5265
+ setState(function (oldState) {
5266
+ if (shouldListenChanges || oldState.viewport !== newViewport) {
5267
+ return {
5268
+ windowDimensions: newDimension,
5269
+ viewport: newViewport,
5270
+ };
5271
+ }
5272
+ return oldState;
5273
+ });
5224
5274
  }
5225
- // calling it here updates the dimensions on first render
5226
5275
  handleResize();
5227
5276
  window.addEventListener('resize', handleResize);
5228
5277
  return function () { return window.removeEventListener('resize', handleResize); };
5229
- }, []);
5230
- return {
5231
- isMobile: windowDimensions.width < breakpoints.desktop,
5232
- windowDimensions: windowDimensions,
5233
- };
5278
+ // eslint-disable-next-line react-hooks/exhaustive-deps
5279
+ }, [shouldListenChanges]);
5280
+ var isMobile = state.viewport === Viewports.mobile;
5281
+ var isTablet = state.viewport === Viewports.tablet;
5282
+ var isDesktop = state.viewport === Viewports.desktop || state.viewport === Viewports.desktopLarge;
5283
+ return __assign$1(__assign$1({}, state), { isMobile: isMobile, isTablet: isTablet, isDesktop: isDesktop });
5234
5284
  };
5235
5285
 
5236
5286
  var getStylesBySize$c = function (size, theme) {
@@ -5313,7 +5363,7 @@ function getTestId() {
5313
5363
  var PriceLabel = function (_a) {
5314
5364
  var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, discount = _a.discount, color = _a.color, testId = _a.testId, _b = _a.finalPriceStyled, finalPriceStyled = _b === void 0 ? false : _b, finalPriceStyle = _a.finalPriceStyle, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.originalPriceUnderlined, originalPriceUnderlined = _d === void 0 ? true : _d, _e = _a.size, size = _e === void 0 ? ComponentSize.Medium : _e, _f = _a.clubStyle, clubStyle = _f === void 0 ? false : _f, rest = __rest(_a, ["finalPrice", "originalPrice", "discount", "color", "testId", "finalPriceStyled", "finalPriceStyle", "originalPriceStyled", "originalPriceUnderlined", "size", "clubStyle"]);
5315
5365
  var theme = useTheme();
5316
- var isMobile = useWindowDimensions({ mobile: 0, desktop: 768 }).isMobile;
5366
+ var isMobile = useWindowDimensions().isMobile;
5317
5367
  var priceCommonProps = {
5318
5368
  size: finalPriceStyled ? ComponentSize.Small : size,
5319
5369
  color: color || theme.colors.pallete.secondary.color,
@@ -5859,7 +5909,7 @@ var DesktopDollarPart = newStyled(DollarPart)(templateObject_7$e || (templateObj
5859
5909
  var DesktopClubMembersText = newStyled(ClubMembersText)(templateObject_8$a || (templateObject_8$a = __makeTemplateObject(["\n font-size: 13px;\n"], ["\n font-size: 13px;\n"])));
5860
5910
  var ClubPriceLabel = function (_a) {
5861
5911
  var clubPrice = _a.clubPrice;
5862
- var isMobile = useWindowDimensions({ mobile: 0, desktop: 768 }).isMobile;
5912
+ var isMobile = useWindowDimensions().isMobile;
5863
5913
  return (jsx$1(Fragment$2, { children: isMobile ? (jsxs$1(MobileContainer, { children: [jsx$1(MobileDollarPart, { children: clubPrice }, void 0), jsx$1(MobileClubMembersText, { children: "FOR CLUB MEMBERS" }, void 0)] }, void 0)) : (jsxs$1(Container$S, { children: [jsx$1(DesktopDollarPart, { children: clubPrice }, void 0), jsx$1(DesktopClubMembersText, { children: "FOR CLUB MEMBERS" }, void 0)] }, void 0)) }, void 0));
5864
5914
  };
5865
5915
  var templateObject_1$1h, templateObject_2$T, templateObject_3$I, templateObject_4$x, templateObject_5$m, templateObject_6$k, templateObject_7$e, templateObject_8$a;
@@ -6056,7 +6106,7 @@ var ProductItemMobile = function (_a) {
6056
6106
  } : _g, _h = _a.clubPrice, clubPrice = _h === void 0 ? '' : _h, _j = _a.showClubPriceLabel, showClubPriceLabel = _j === void 0 ? false : _j, isRatingLoading = _a.isRatingLoading;
6057
6107
  var theme = useTheme();
6058
6108
  var styles = getStylesBySize$9(size);
6059
- var isMobile = useWindowDimensions({ mobile: 0, desktop: 768 }).isMobile;
6109
+ var isMobile = useWindowDimensions().isMobile;
6060
6110
  var space = useMemo(function () {
6061
6111
  var _a;
6062
6112
  return (_a = {},
@@ -6155,7 +6205,7 @@ var ProductItemTK = function (_a) {
6155
6205
  } : _h, _j = _a.clubPrice, clubPrice = _j === void 0 ? '' : _j, _k = _a.showClubPriceLabel, showClubPriceLabel = _k === void 0 ? false : _k;
6156
6206
  var theme = useTheme();
6157
6207
  var styles = getStylesBySize$8(size);
6158
- var isMobile = useWindowDimensions({ mobile: 0, desktop: 768 }).isMobile;
6208
+ var isMobile = useWindowDimensions().isMobile;
6159
6209
  var space = useMemo(function () {
6160
6210
  var _a;
6161
6211
  return (_a = {},
@@ -13041,7 +13091,7 @@ var IconWrapper = newStyled.div(function (props) { return ({
13041
13091
  var IconsWithTitle = function (_a) {
13042
13092
  var _b;
13043
13093
  var iconName = _a.iconName, iconTitle = _a.iconTitle, _c = _a.iconFolder, iconFolder = _c === void 0 ? 'MyAccount' : _c, _d = _a.withWrapper, withWrapper = _d === void 0 ? true : _d, backgroundColor = _a.backgroundColor, iconColor = _a.iconColor, _e = _a.iconSizeDesktop, iconSizeDesktop = _e === void 0 ? 4 : _e, _f = _a.iconSizeMobile, iconSizeMobile = _f === void 0 ? 3 : _f, _g = _a.iconTitlePosition, iconTitlePosition = _g === void 0 ? 'bottom' : _g, _h = _a.iconTitleStyle, iconTitleStyle = _h === void 0 ? '' : _h, _j = _a.iconStyle, iconStyle = _j === void 0 ? '' : _j, _k = _a.isTitleInnerHtml, isTitleInnerHtml = _k === void 0 ? false : _k;
13044
- var isMobile = useWindowDimensions({ mobile: 0, desktop: 768 }).isMobile;
13094
+ var isMobile = useWindowDimensions().isMobile;
13045
13095
  // @ts-ignore
13046
13096
  var IconComponent = (_b = Icon[iconFolder][iconName]) !== null && _b !== void 0 ? _b : (function () { return 'Not found'; });
13047
13097
  if (IconComponent == null) {
@@ -13076,7 +13126,7 @@ var StyledTitle = newStyled.div(templateObject_3$s || (templateObject_3$s = __ma
13076
13126
  });
13077
13127
  var ImageCardWithDescription = function (_a) {
13078
13128
  var image = _a.image, title = _a.title, description = _a.description, _b = _a.titlePosition, titlePosition = _b === void 0 ? 'left' : _b;
13079
- var isMobile = useWindowDimensions({ desktop: 768, mobile: 0 }).isMobile;
13129
+ var isMobile = useWindowDimensions().isMobile;
13080
13130
  return (jsxs$1(Container$B, __assign$1({ "data-testid": "Container", isMobile: isMobile }, { children: [jsx$1(ImageContainer$2, __assign$1({ "data-testid": "ImageContainer", isMobile: isMobile }, { children: jsx$1(Image$3, { src: image, borderRadius: "40px", alt: "before", height: "100%", width: "100%" }, void 0) }), void 0), jsx$1(StyledTitle, __assign$1({ titlePosition: titlePosition, "data-testid": "StyledTitle" }, { children: isMobile ? (jsx$1(Text$8, __assign$1({ variant: "link", weight: "demi" }, { children: title }), void 0)) : (jsx$1(Text$8, __assign$1({ variant: "heading6", weight: "demi" }, { children: title }), void 0)) }), void 0), jsx$1(Text$8, __assign$1({ variant: "link", weight: "regular" }, { children: description }), void 0)] }), void 0));
13081
13131
  };
13082
13132
  var templateObject_1$P, templateObject_2$y, templateObject_3$s;
@@ -13701,9 +13751,9 @@ var range = function (limit) { return __spreadArray([], new Array(limit), true).
13701
13751
  var SlideDots = function (_a) {
13702
13752
  var quantity = _a.quantity, selectedIndex = _a.selectedIndex, containerDataTestId = _a.containerDataTestId;
13703
13753
  var theme = useTheme();
13704
- return (jsx$1(Container$u, __assign$1({ "data-testid": containerDataTestId }, { children: range(quantity).map(function (index) { return (jsx$1(Icon.SlideDots.SlideDot, { height: 0.75, width: 0.75, fill: index === selectedIndex
13754
+ return (jsx$1(Container$u, __assign$1({ "data-testid": containerDataTestId }, { children: range(quantity).map(function (index) { return (jsx$1(Icon$1, { name: "navigation/slide_dot".concat(index === selectedIndex ? '_solid' : ''), height: 0.75, width: 0.75, fill: index === selectedIndex
13705
13755
  ? theme.component.slideNavigation.slideDots.selectedDotColor
13706
- : theme.component.slideNavigation.slideDots.unselectedDotColor, opacity: theme.component.slideNavigation.slideDots.dotsOpacity, testId: "slide-dot-".concat(index) }, index)); }) }), void 0));
13756
+ : theme.component.slideNavigation.slideDots.unselectedDotColor, opacity: theme.component.slideNavigation.slideDots.dotsOpacity, testId: "slide-dot-".concat(index) }, "Icon-".concat(index, "-navigation/slide_dot").concat(index === selectedIndex ? '_solid' : ''))); }) }), void 0));
13707
13757
  };
13708
13758
  var templateObject_1$E;
13709
13759
 
@@ -18946,7 +18996,7 @@ var TextContainer = newStyled.div(templateObject_4$4 || (templateObject_4$4 = __
18946
18996
  var TextWithImage = function (_a) {
18947
18997
  var _b, _c, _d, _e;
18948
18998
  var title = _a.title, text = _a.text, children = _a.children, buttomText = _a.buttomText, backgroundColor = _a.backgroundColor, imageLeftSide = _a.imageLeftSide, titleStyle = _a.titleStyle, textStyle = _a.textStyle, _f = _a.buttonWideOnMobile, buttonWideOnMobile = _f === void 0 ? false : _f, props = __rest(_a, ["title", "text", "children", "buttomText", "backgroundColor", "imageLeftSide", "titleStyle", "textStyle", "buttonWideOnMobile"]);
18949
- var isMobile = useWindowDimensions({ desktop: 768, mobile: 0 }).isMobile;
18999
+ var isMobile = useWindowDimensions().isMobile;
18950
19000
  var ImageTitle = function () { return (jsx(Fragment, { children: !isMobile ? (jsx(Text$8, __assign$1({ variant: "heading2", weight: "bold", style: titleStyle
18951
19001
  ? titleStyle
18952
19002
  : {
@@ -19201,7 +19251,7 @@ var getDefaultCountdown = function () {
19201
19251
  var HurryUp = function (_a) {
19202
19252
  var hurryUpText = _a.hurryUpText, backgroundColor = _a.backgroundColor, _b = _a.iconSize, iconSize = _b === void 0 ? 1.5 : _b, _c = _a.textPosition, textPosition = _c === void 0 ? 'center' : _c, _d = _a.showTimer, showTimer = _d === void 0 ? false : _d, _e = _a.clockPosition, clockPosition = _e === void 0 ? 'left' : _e, _f = _a.countdown, countdown = _f === void 0 ? getDefaultCountdown() : _f, timerProps = __rest(_a, ["hurryUpText", "backgroundColor", "iconSize", "textPosition", "showTimer", "clockPosition", "countdown"]);
19203
19253
  var theme = useTheme();
19204
- return (jsxs$1(TimerContainer, __assign$1({ backgroundColor: backgroundColor || theme.component.card.backgroundColor, textPosition: textPosition, borderRadius: theme.component.hurryUp.borderRadius, "data-testid": "HurryUp" }, { children: [clockPosition === 'left' && (jsxs$1(Fragment$2, { children: [jsx$1(Icon.PDP.Stopwatch, { width: iconSize, height: iconSize, fill: theme.colors.pallete.secondary.color }, void 0), "\u00A0"] }, void 0)), jsx$1(Text$8, __assign$1({ testId: "HurryUpText", variant: "body", size: "small", weight: "demi" }, { children: hurryUpText }), void 0), clockPosition === 'right' && (jsxs$1(Fragment$2, { children: [jsx$1(Icon.PDP.Stopwatch, { width: iconSize, height: iconSize, fill: theme.colors.pallete.secondary.color }, void 0), "\u00A0"] }, void 0)), showTimer && jsx$1(Timer, __assign$1({ countdown: countdown, onTimeUp: function () { } }, timerProps), void 0)] }), void 0));
19254
+ return (jsxs$1(TimerContainer, __assign$1({ backgroundColor: backgroundColor || theme.component.card.backgroundColor, textPosition: textPosition, borderRadius: theme.component.hurryUp.borderRadius, "data-testid": "HurryUp" }, { children: [clockPosition === 'left' && (jsxs$1(Fragment$2, { children: [jsx$1(Icon.PDP.Stopwatch, { width: iconSize, height: iconSize, fill: theme.colors.pallete.secondary.color }, void 0), "\u00A0"] }, void 0)), jsx$1(Text$8, __assign$1({ testId: "HurryUpText", variant: "body", size: "small", weight: "demi" }, { children: hurryUpText }), void 0), "\u00A0", clockPosition === 'right' && (jsxs$1(Fragment$2, { children: [jsx$1(Icon.PDP.Stopwatch, { width: iconSize, height: iconSize, fill: theme.colors.pallete.secondary.color }, void 0), "\u00A0"] }, void 0)), showTimer && jsx$1(Timer, __assign$1({ countdown: countdown, onTimeUp: function () { } }, timerProps), void 0)] }), void 0));
19205
19255
  };
19206
19256
 
19207
19257
  var Container = newStyled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n svg {\n vertical-align: unset;\n }\n"], ["\n width: ", ";\n height: ", ";\n svg {\n vertical-align: unset;\n }\n"])), function (_a) {