@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.d.ts +13 -1
- package/build/index.esm.js +15 -10
- package/build/index.esm.js.map +1 -1
- package/build/index.js +15 -10
- package/build/index.js.map +1 -1
- package/build/theme/shapermint.theme.js +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare type StyledIconProps = {
|
|
|
49
49
|
|
|
50
50
|
declare type Actions$1 = 'actions/add' | 'actions/check_box_empty' | 'actions/check_box_light' | 'actions/check_box_solid' | 'actions/check' | 'actions/circle_check' | 'actions/circle_clear' | 'actions/circle_info' | 'actions/circle_minus' | 'actions/circle_plus' | 'actions/circle_question' | 'actions/circle_solid_check' | 'actions/circle_solid_clear' | 'actions/circle_solid_info' | 'actions/circle_solid_minus' | 'actions/circle_solid_plus' | 'actions/circle_solid_question' | 'actions/circle_solid_styled_check' | 'actions/circle_solid_warning' | 'actions/circle_warning' | 'actions/clear_light' | 'actions/close' | 'actions/copy_outlined' | 'actions/copy' | 'actions/edit' | 'actions/light_check' | 'actions/light_exclamation' | 'actions/like_solid' | 'actions/like' | 'actions/minus' | 'actions/not_allowed' | 'actions/question' | 'actions/radio_empty' | 'actions/radio_filled' | 'actions/settings_solid' | 'actions/settings' | 'actions/share' | 'actions/signout' | 'actions/trash' | 'actions/warning';
|
|
51
51
|
declare type Arrows$1 = 'arrows/chevron_down' | 'arrows/chevron_down_variant' | 'arrows/chevron_left' | 'arrows/chevron_left_lite' | 'arrows/chevron_left_variant' | 'arrows/chevron_right' | 'arrows/chevron_right_lite' | 'arrows/chevron_right_variant' | 'arrows/chevron_up' | 'arrows/chevron_up_solid' | 'arrows/chevron_up_variant' | 'arrows/circle_chevron_down' | 'arrows/circle_chevron_left' | 'arrows/circle_chevron_right' | 'arrows/circle_chevron_up' | 'arrows/circle_line_down' | 'arrows/circle_line_left' | 'arrows/circle_line_right' | 'arrows/circle_line_up' | 'arrows/circle_up' | 'arrows/double_arrow_up';
|
|
52
|
-
declare type Custom$1 = 'custom/atom' | 'custom/bra' | 'custom/bubbles' | 'custom/bullet_one' | 'custom/bullet_three' | 'custom/bullet_two' | 'custom/certified' | 'custom/clinically_tested' | 'custom/cruelty_free' | 'custom/fair_advantages' | 'custom/frown' | 'custom/frown' | 'custom/money_flow' | 'custom/new_sixty_days_guarantee' | 'custom/packs_and_bundles' | 'custom/seamless_support_bra' | 'custom/sixty_days_bold' | 'custom/sixty_days_guarantee' | 'custom/smiling' | 'custom/subscription' | 'custom/thumbs_down' | 'custom/thumbs_up' | 'custom/underwear' | 'custom/wire_free_comfort' | 'custom/wire_free_comfort_bold' | 'custom/tk_sixty_days_bold';
|
|
52
|
+
declare type Custom$1 = 'custom/atom' | 'custom/bra' | 'custom/bubbles' | 'custom/bullet_one' | 'custom/bullet_three' | 'custom/bullet_two' | 'custom/certified' | 'custom/clinically_tested' | 'custom/cruelty_free' | 'custom/fair_advantages' | 'custom/frown' | 'custom/frown' | 'custom/money_flow' | 'custom/new_sixty_days_guarantee' | 'custom/packs_and_bundles' | 'custom/seamless_support_bra' | 'custom/sixty_days_bold' | 'custom/sixty_days_guarantee' | 'custom/smiling' | 'custom/subscription' | 'custom/thumbs_down' | 'custom/thumbs_up' | 'custom/underwear' | 'custom/wire_free_comfort' | 'custom/wire_free_comfort_bold' | 'custom/tk_sixty_days_bold' | 'custom/free_shipping_truck' | 'custom/higher_discounts' | 'custom/priority_support';
|
|
53
53
|
declare type Download$1 = 'download/apple_store' | 'download/google_play';
|
|
54
54
|
declare type Emoji$1 = 'emoji/blowing_kiss' | 'emoji/frowning' | 'emoji/grinning' | 'emoji/grinning_with_sweat' | 'emoji/relieved' | 'emoji/smiling_v2' | 'emoji/thinking';
|
|
55
55
|
declare type Messaging$1 = 'messaging/ada_chat' | 'messaging/comment' | 'messaging/comment_dots' | 'messaging/comment_light' | 'messaging/comment_money' | 'messaging/community' | 'messaging/light' | 'messaging/light_bulb' | 'messaging/light_bulb_solid' | 'messaging/mail' | 'messaging/messenger' | 'messaging/question_circle' | 'messaging/quote_left' | 'messaging/quote_right' | 'messaging/quote_solid_left' | 'messaging/quote_solid_right';
|
|
@@ -376,6 +376,12 @@ declare const WireFreeComfort: IconComponent;
|
|
|
376
376
|
|
|
377
377
|
declare const WireFreeComfortBold: IconComponent;
|
|
378
378
|
|
|
379
|
+
declare const FreeShippingTruck: IconComponent;
|
|
380
|
+
|
|
381
|
+
declare const HigherDiscounts: IconComponent;
|
|
382
|
+
|
|
383
|
+
declare const PrioritySupport: IconComponent;
|
|
384
|
+
|
|
379
385
|
declare const Custom_Atom: typeof Atom;
|
|
380
386
|
declare const Custom_Bra: typeof Bra;
|
|
381
387
|
declare const Custom_Bubbles: typeof Bubbles;
|
|
@@ -401,6 +407,9 @@ declare const Custom_TkSixtyDaysBold: typeof TkSixtyDaysBold;
|
|
|
401
407
|
declare const Custom_Underwear: typeof Underwear;
|
|
402
408
|
declare const Custom_WireFreeComfort: typeof WireFreeComfort;
|
|
403
409
|
declare const Custom_WireFreeComfortBold: typeof WireFreeComfortBold;
|
|
410
|
+
declare const Custom_FreeShippingTruck: typeof FreeShippingTruck;
|
|
411
|
+
declare const Custom_HigherDiscounts: typeof HigherDiscounts;
|
|
412
|
+
declare const Custom_PrioritySupport: typeof PrioritySupport;
|
|
404
413
|
declare namespace Custom {
|
|
405
414
|
export {
|
|
406
415
|
Custom_Atom as Atom,
|
|
@@ -428,6 +437,9 @@ declare namespace Custom {
|
|
|
428
437
|
Custom_Underwear as Underwear,
|
|
429
438
|
Custom_WireFreeComfort as WireFreeComfort,
|
|
430
439
|
Custom_WireFreeComfortBold as WireFreeComfortBold,
|
|
440
|
+
Custom_FreeShippingTruck as FreeShippingTruck,
|
|
441
|
+
Custom_HigherDiscounts as HigherDiscounts,
|
|
442
|
+
Custom_PrioritySupport as PrioritySupport,
|
|
431
443
|
};
|
|
432
444
|
}
|
|
433
445
|
|
package/build/index.esm.js
CHANGED
|
@@ -3094,17 +3094,13 @@ var AssetsProvider = function (_a) {
|
|
|
3094
3094
|
};
|
|
3095
3095
|
var useThemeAssets = function () { return useContext(AssetsContext); };
|
|
3096
3096
|
|
|
3097
|
-
var localeOverrideByCurrency = {
|
|
3098
|
-
AUD: 'am-AM',
|
|
3099
|
-
};
|
|
3100
3097
|
var formatPrice = function (value, _a) {
|
|
3101
|
-
var _b
|
|
3102
|
-
var
|
|
3103
|
-
var
|
|
3098
|
+
var _b;
|
|
3099
|
+
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;
|
|
3100
|
+
var _f = value.toFixed(3).split('.'), integer = _f[0], fraction = _f[1];
|
|
3104
3101
|
// this prevents `Intl.NumberFormat` from rounding the number
|
|
3105
3102
|
var valueToFormat = parseFloat("".concat(integer, ".").concat((_b = fraction === null || fraction === void 0 ? void 0 : fraction.slice(0, 2)) !== null && _b !== void 0 ? _b : 0));
|
|
3106
|
-
|
|
3107
|
-
return new Intl.NumberFormat(overridedLocale, {
|
|
3103
|
+
return new Intl.NumberFormat(locale, {
|
|
3108
3104
|
style: 'currency',
|
|
3109
3105
|
currency: currency,
|
|
3110
3106
|
maximumFractionDigits: 3,
|
|
@@ -3556,6 +3552,12 @@ var WireFreeComfort = function (props) { return (jsx$1(Icon$1, __assign$1({}, pr
|
|
|
3556
3552
|
|
|
3557
3553
|
var WireFreeComfortBold = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "custom/wire_free_comfort_bold" }), void 0)); };
|
|
3558
3554
|
|
|
3555
|
+
var FreeShippingTruck = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "custom/free_shipping_truck" }), void 0)); };
|
|
3556
|
+
|
|
3557
|
+
var HigherDiscounts = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "custom/higher_discounts" }), void 0)); };
|
|
3558
|
+
|
|
3559
|
+
var PrioritySupport = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "custom/priority_support" }), void 0)); };
|
|
3560
|
+
|
|
3559
3561
|
var Custom$1 = /*#__PURE__*/Object.freeze({
|
|
3560
3562
|
__proto__: null,
|
|
3561
3563
|
Atom: Atom,
|
|
@@ -3582,7 +3584,10 @@ var Custom$1 = /*#__PURE__*/Object.freeze({
|
|
|
3582
3584
|
TkSixtyDaysBold: TkSixtyDaysBold,
|
|
3583
3585
|
Underwear: Underwear,
|
|
3584
3586
|
WireFreeComfort: WireFreeComfort,
|
|
3585
|
-
WireFreeComfortBold: WireFreeComfortBold
|
|
3587
|
+
WireFreeComfortBold: WireFreeComfortBold,
|
|
3588
|
+
FreeShippingTruck: FreeShippingTruck,
|
|
3589
|
+
HigherDiscounts: HigherDiscounts,
|
|
3590
|
+
PrioritySupport: PrioritySupport
|
|
3586
3591
|
});
|
|
3587
3592
|
|
|
3588
3593
|
var AppleStore = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "download/apple_store" }), void 0); };
|
|
@@ -5480,7 +5485,7 @@ var PriceLabelV2 = function (_a) {
|
|
|
5480
5485
|
var isOriginalPrice = originalPrice && isDiffFinalAndOriginalPrice;
|
|
5481
5486
|
var isDiscount = discount && isDiffFinalAndOriginalPrice;
|
|
5482
5487
|
var isClubOffer = clubOffer && isDiffFinalAndOriginalPrice;
|
|
5483
|
-
var supportedCurrencies = ['
|
|
5488
|
+
var supportedCurrencies = ['A$', 'CA$', '£'];
|
|
5484
5489
|
var currencySymbol = '$';
|
|
5485
5490
|
if (typeof productFinalPrice === 'string') {
|
|
5486
5491
|
supportedCurrencies.forEach(function (availableCurrency) {
|