@trafilea/afrodita-components 6.6.5 → 6.8.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.js CHANGED
@@ -3120,17 +3120,13 @@ var AssetsProvider = function (_a) {
3120
3120
  };
3121
3121
  var useThemeAssets = function () { return React$2.useContext(AssetsContext); };
3122
3122
 
3123
- var localeOverrideByCurrency = {
3124
- AUD: 'am-AM',
3125
- };
3126
3123
  var formatPrice = function (value, _a) {
3127
- var _b, _c;
3128
- var _d = _a === void 0 ? {} : _a, _e = _d.locale, locale = _e === void 0 ? 'en-US' : _e, _f = _d.currency, currency = _f === void 0 ? 'USD' : _f;
3129
- var _g = value.toFixed(3).split('.'), integer = _g[0], fraction = _g[1];
3124
+ var _b;
3125
+ var _c = _a === void 0 ? {} : _a, _d = _c.locale, locale = _d === void 0 ? 'en-US' : _d, _e = _c.currency, currency = _e === void 0 ? 'USD' : _e;
3126
+ var _f = value.toFixed(3).split('.'), integer = _f[0], fraction = _f[1];
3130
3127
  // this prevents `Intl.NumberFormat` from rounding the number
3131
3128
  var valueToFormat = parseFloat("".concat(integer, ".").concat((_b = fraction === null || fraction === void 0 ? void 0 : fraction.slice(0, 2)) !== null && _b !== void 0 ? _b : 0));
3132
- var overridedLocale = (_c = localeOverrideByCurrency[currency]) !== null && _c !== void 0 ? _c : locale;
3133
- return new Intl.NumberFormat(overridedLocale, {
3129
+ return new Intl.NumberFormat(locale, {
3134
3130
  style: 'currency',
3135
3131
  currency: currency,
3136
3132
  maximumFractionDigits: 3,
@@ -3582,6 +3578,12 @@ var WireFreeComfort = function (props) { return (jsxRuntime.jsx(Icon$1, __assign
3582
3578
 
3583
3579
  var WireFreeComfortBold = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "custom/wire_free_comfort_bold" }), void 0)); };
3584
3580
 
3581
+ var FreeShippingTruck = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "custom/free_shipping_truck" }), void 0)); };
3582
+
3583
+ var HigherDiscounts = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "custom/higher_discounts" }), void 0)); };
3584
+
3585
+ var PrioritySupport = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "custom/priority_support" }), void 0)); };
3586
+
3585
3587
  var Custom$1 = /*#__PURE__*/Object.freeze({
3586
3588
  __proto__: null,
3587
3589
  Atom: Atom,
@@ -3608,7 +3610,10 @@ var Custom$1 = /*#__PURE__*/Object.freeze({
3608
3610
  TkSixtyDaysBold: TkSixtyDaysBold,
3609
3611
  Underwear: Underwear,
3610
3612
  WireFreeComfort: WireFreeComfort,
3611
- WireFreeComfortBold: WireFreeComfortBold
3613
+ WireFreeComfortBold: WireFreeComfortBold,
3614
+ FreeShippingTruck: FreeShippingTruck,
3615
+ HigherDiscounts: HigherDiscounts,
3616
+ PrioritySupport: PrioritySupport
3612
3617
  });
3613
3618
 
3614
3619
  var AppleStore = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "download/apple_store" }), void 0); };
@@ -5506,7 +5511,7 @@ var PriceLabelV2 = function (_a) {
5506
5511
  var isOriginalPrice = originalPrice && isDiffFinalAndOriginalPrice;
5507
5512
  var isDiscount = discount && isDiffFinalAndOriginalPrice;
5508
5513
  var isClubOffer = clubOffer && isDiffFinalAndOriginalPrice;
5509
- var supportedCurrencies = ['AU$', 'CA$', '£'];
5514
+ var supportedCurrencies = ['A$', 'CA$', '£'];
5510
5515
  var currencySymbol = '$';
5511
5516
  if (typeof productFinalPrice === 'string') {
5512
5517
  supportedCurrencies.forEach(function (availableCurrency) {