@trafilea/afrodita-components 7.11.1 → 7.12.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/es/components/icons/PDP/AiMagic.js +2 -0
- package/build/es/components/icons/PDP/AiMagic.js.map +1 -0
- package/build/es/components/icons/PDP/index.js +1 -1
- package/build/es/components/rating/Rating.js +1 -1
- package/build/index.d.ts +11 -6
- package/build/lib/components/icons/PDP/AiMagic.js +2 -0
- package/build/lib/components/icons/PDP/AiMagic.js.map +1 -0
- package/build/lib/components/icons/PDP/index.js +1 -1
- package/build/lib/components/rating/Rating.js +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as t}from"react/jsx-runtime";import"../../../core/theme/Theme.js";import"react";import"../../../types/enums.js";import"../../pricing/clubOffer/ClubOfferTag.js";import"../../pricing/discount/styled.js";import"../../pricing/styles.js";import"../../tooltip/Styled.js";import"../../atoms/PriceLabel/PriceLabel.js";import"../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../atoms/HorizontalDivider/HorizontalDivider.js";import{Icon as e}from"../../atoms/Icon/Icon.js";import"../../atoms/Image/styled.js";import"../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../atoms/Toggle/toggle.styled.js";var i=function(i){return t(e,r({},i,{name:"pdp/ai_magic"}),void 0)};export{i as AiMagic};
|
|
2
|
+
//# sourceMappingURL=AiMagic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiMagic.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{AfterPayLogo}from"./AfterPayLogo.js";export{CircleNumber}from"./CircleNumber.js";export{Clock}from"./Clock.js";export{Drop}from"./Drop.js";export{DropEmpty}from"./DropEmpty.js";export{DropV2}from"./DropV2.js";export{ErrorCross}from"./ErrorCross.js";export{FewDrops}from"./FewDrops.js";export{FlagUSA}from"./FlagUSA.js";export{FreeReturnsV2}from"./FreeReturnsV2.js";export{FreeShippingV2}from"./FreeShippingV2.js";export{Hours}from"./Hours.js";export{KlarnaLogo}from"./KlarnaLogo.js";export{LightBulb}from"./LightBulb.js";export{LoadingTrafisizy}from"./LoadingTrafisizy.js";export{
|
|
1
|
+
export{AfterPayLogo}from"./AfterPayLogo.js";export{AiMagic}from"./AiMagic.js";export{CircleNumber}from"./CircleNumber.js";export{Clock}from"./Clock.js";export{Drop}from"./Drop.js";export{DropEmpty}from"./DropEmpty.js";export{DropV2}from"./DropV2.js";export{ErrorCross}from"./ErrorCross.js";export{FewDrops}from"./FewDrops.js";export{FlagUSA}from"./FlagUSA.js";export{FreeReturnsV2}from"./FreeReturnsV2.js";export{FreeShippingV2}from"./FreeShippingV2.js";export{Hours}from"./Hours.js";export{KlarnaLogo}from"./KlarnaLogo.js";export{LightBulb}from"./LightBulb.js";export{LoadingTrafisizy}from"./LoadingTrafisizy.js";export{Minus}from"./Minus.js";export{Moon}from"./Moon.js";export{NewClock}from"./NewClock.js";export{PlayMini}from"./PlayMini.js";export{PlayVideo}from"./PlayVideo.js";export{Plus}from"./Plus.js";export{Rule}from"./Rule.js";export{Shipping}from"./Shipping.js";export{ShippingEmpty}from"./ShippingEmpty.js";export{SizeEmpty}from"./SizeEmpty.js";export{SizeEmptyV2}from"./SizeEmptyV2.js";export{SizeWithStars}from"./SizeWithStars.js";export{Star}from"./Star.js";export{StarEmpty}from"./StarEmpty.js";export{StarHalf}from"./StarHalf.js";export{Stars}from"./Stars.js";export{Stopwatch}from"./Stopwatch.js";export{TapeMeasure}from"./TapeMeasure.js";export{TrustBadge}from"./TrustBadge.js";export{TrustPilotHalfStar}from"./TrustPilotHalfStar.js";export{TrustPilotStar}from"./TrustPilotStar.js";export{Verified}from"./Verified.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useTheme as i}from"../../core/theme/Theme.js";import{ComponentSize as o}from"../../types/enums.js";import{STARTS_NUMBER as s}from"./constants.js";import{StarList as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useTheme as i}from"../../core/theme/Theme.js";import{ComponentSize as o}from"../../types/enums.js";import{STARTS_NUMBER as s}from"./constants.js";import{StarList as n}from"./starList/StarList.js";import{Container as a,RatingLabel as d,CustomLabel as l}from"./styles.js";var m=function(m){var c=m.size,v=void 0===c?o.Medium:c,h=m.reviews,u=m.reviewsText,p=m.rating,f=m.showRatingText,w=void 0!==f&&f,b=m.wrapWithParenthesis,j=void 0!==b&&b,C=m.underline,g=void 0!==C&&C,x=m.reviewsContainerId,L=m.additionalContent;var y=i();return t(a,e({as:x?"a":"div"},x?{href:x}:{},{"data-testid":"Container",onClick:function(e){var t;e.cancelable&&e.preventDefault(),x&&(null===(t=document.querySelector(x))||void 0===t||t.scrollIntoView({behavior:"smooth"}))}},{children:[w&&r(d,e({color:y.colors.shades[700].color,"data-testid":"RatingLabel"},{children:p}),void 0),r(n,{rating:p,size:v,starsNumber:s,fill:y.component.stars.element.color},void 0),(h||u)&&t(l,e({theme:y,size:v,wrapWithParenthesis:j,underline:g,"data-testid":"CustomLabel"},{children:[h||""," ",u||""]}),void 0),L]}),void 0)};export{m as Rating};
|
|
2
2
|
//# sourceMappingURL=Rating.js.map
|
package/build/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ declare type MyAccount$1 = 'myaccount/birthday_gifts' | 'myaccount/community' |
|
|
|
211
211
|
declare type Navigation$1 = 'navigation/address_information' | 'navigation/benefits' | 'navigation/benefits_v2' | 'navigation/club_membership' | 'navigation/ellipsis' | 'navigation/ellipsis_horizontal' | 'navigation/filters' | 'navigation/hamburger' | 'navigation/home' | 'navigation/home_solid' | 'navigation/loading' | 'navigation/lock' | 'navigation/lock_solid' | 'navigation/map_marker' | 'navigation/map_marker_light' | 'navigation/map_solid' | 'navigation/menu_lines' | 'navigation/search' | 'navigation/shaperbox' | 'navigation/shopping_bag' | 'navigation/shopping_bag_v2' | 'navigation/shopping_bag_v3' | 'navigation/shopping_bag_v4' | 'navigation/shopping_cart' | 'navigation/shopping_cart_v2' | 'navigation/slide_dot' | 'navigation/slide_dot_solid' | 'navigation/user' | 'navigation/address_information_light' | 'navigation/user_solid' | 'navigation/user_v2' | 'navigation/filters_v2' | 'navigation/gift';
|
|
212
212
|
declare type Other$1 = 'other/alarm_on' | 'other/bod_con_label' | 'other/bod_con_mobile_label' | 'other/call_us' | 'other/chat' | 'other/email' | 'other/express_shipping' | 'other/fit_guarantee' | 'other/fit_predictor' | 'other/free_exchange' | 'other/get_discount' | 'other/hassel_free_returns' | 'other/loading' | 'other/mc_afee' | 'other/megafone' | 'other/play' | 'other/qr_code' | 'other/question_with_circle' | 'other/revel_beauty' | 'other/shapermint' | 'other/shapermint_club_icon' | 'other/shapermint_club_icon2' | 'other/shapermint_club_label' | 'other/shapermint_club_mobile_label' | 'other/shapermint_logo' | 'other/shm_club' | 'other/shop_now' | 'other/sign_form' | 'other/sixty_days_tsd' | 'other/the_bod_con' | 'other/the_spa_dr' | 'other/lock' | 'other/help_center' | 'other/arrow_outward' | 'other/coupons' | 'other/flag_usa' | 'other/flag_canada' | 'other/flag_aus' | 'other/flag_uk' | 'other/flag_nz' | 'other/flag_sg' | 'other/bookmark' | 'other/stars' | 'other/club_filled';
|
|
213
213
|
declare type Payment$1 = 'payment/amazon' | 'payment/amex' | 'payment/jcb' | 'payment/klarna' | 'payment/master_card' | 'payment/paypal' | 'payment/visa' | 'payment/payment_methods';
|
|
214
|
-
declare type PDP$1 = 'pdp/circle_number' | 'pdp/clock' | 'pdp/drop' | 'pdp/drop_empty' | 'pdp/error_cross' | 'pdp/flag_usa' | 'pdp/hours' | 'pdp/klarna_logo' | 'pdp/light_bulb' | 'pdp/free_returns_v2' | 'pdp/free_shipping_v2' | 'pdp/loading_trafisizy' | 'pdp/minus' | 'pdp/moon' | 'pdp/tape_measure' | 'pdp/new_clock' | 'pdp/play_mini' | 'pdp/play_video' | 'pdp/plus' | 'pdp/rule' | 'pdp/shipping' | 'pdp/shipping_empty' | 'pdp/size_empty' | 'pdp/size_empty_v2' | 'pdp/size_with_stars' | 'pdp/star' | 'pdp/stars' | 'pdp/star_empty' | 'pdp/star_half' | 'pdp/stopwatch' | 'pdp/drop_v2' | 'pdp/few_drops' | 'pdp/trust_badge' | 'pdp/verified' | 'pdp/wrinkle_free_face' | 'pdp/skin_appearance' | 'pdp/shine_heart' | 'pdp/cruelty_free' | 'pdp/ph_formula' | 'pdp/box' | 'pdp/afterpay_logo' | 'pdp/trustpilot_star' | 'pdp/trustpilot_half_star';
|
|
214
|
+
declare type PDP$1 = 'pdp/circle_number' | 'pdp/ai_magic' | 'pdp/clock' | 'pdp/drop' | 'pdp/drop_empty' | 'pdp/error_cross' | 'pdp/flag_usa' | 'pdp/hours' | 'pdp/klarna_logo' | 'pdp/light_bulb' | 'pdp/free_returns_v2' | 'pdp/free_shipping_v2' | 'pdp/loading_trafisizy' | 'pdp/minus' | 'pdp/moon' | 'pdp/tape_measure' | 'pdp/new_clock' | 'pdp/play_mini' | 'pdp/play_video' | 'pdp/plus' | 'pdp/rule' | 'pdp/shipping' | 'pdp/shipping_empty' | 'pdp/size_empty' | 'pdp/size_empty_v2' | 'pdp/size_with_stars' | 'pdp/star' | 'pdp/stars' | 'pdp/star_empty' | 'pdp/star_half' | 'pdp/stopwatch' | 'pdp/drop_v2' | 'pdp/few_drops' | 'pdp/trust_badge' | 'pdp/verified' | 'pdp/wrinkle_free_face' | 'pdp/skin_appearance' | 'pdp/shine_heart' | 'pdp/cruelty_free' | 'pdp/ph_formula' | 'pdp/box' | 'pdp/afterpay_logo' | 'pdp/trustpilot_star' | 'pdp/trustpilot_half_star' | 'pdp/zoom';
|
|
215
215
|
declare type SlideDots$1 = 'slidedots/slide_dot';
|
|
216
216
|
declare type SocialMedia$1 = 'socialmedia/facebook' | 'socialmedia/facebook_solid' | 'socialmedia/instagram' | 'socialmedia/instagram_solid' | 'socialmedia/interaction' | 'socialmedia/pinterest' | 'socialmedia/twitter' | 'socialmedia/youtube' | 'socialmedia/spotify' | 'socialmedia/apple_podcast';
|
|
217
217
|
declare type IconName = Actions$1 | Arrows$1 | Custom$1 | Download$1 | Emoji$1 | Messaging$1 | MyAccount$1 | Navigation$1 | Other$1 | Payment$1 | PDP$1 | SlideDots$1 | SocialMedia$1;
|
|
@@ -1138,6 +1138,8 @@ declare namespace Other {
|
|
|
1138
1138
|
|
|
1139
1139
|
declare const AfterPayLogo: IconComponent;
|
|
1140
1140
|
|
|
1141
|
+
declare const AiMagic: IconComponent;
|
|
1142
|
+
|
|
1141
1143
|
declare const CircleNumber: IconComponent;
|
|
1142
1144
|
|
|
1143
1145
|
declare const Clock: IconComponent;
|
|
@@ -1166,8 +1168,6 @@ declare const LightBulb: IconComponent;
|
|
|
1166
1168
|
|
|
1167
1169
|
declare const LoadingTrafisizy: IconComponent;
|
|
1168
1170
|
|
|
1169
|
-
declare const TapeMeasure: IconComponent;
|
|
1170
|
-
|
|
1171
1171
|
declare const Minus: IconComponent;
|
|
1172
1172
|
|
|
1173
1173
|
declare const Moon: IconComponent;
|
|
@@ -1202,6 +1202,8 @@ declare const Stars: IconComponent;
|
|
|
1202
1202
|
|
|
1203
1203
|
declare const Stopwatch: IconComponent;
|
|
1204
1204
|
|
|
1205
|
+
declare const TapeMeasure: IconComponent;
|
|
1206
|
+
|
|
1205
1207
|
declare const TrustBadge: IconComponent;
|
|
1206
1208
|
|
|
1207
1209
|
declare const TrustPilotHalfStar: IconComponent;
|
|
@@ -1211,6 +1213,7 @@ declare const TrustPilotStar: IconComponent;
|
|
|
1211
1213
|
declare const Verified: IconComponent;
|
|
1212
1214
|
|
|
1213
1215
|
declare const PDP_AfterPayLogo: typeof AfterPayLogo;
|
|
1216
|
+
declare const PDP_AiMagic: typeof AiMagic;
|
|
1214
1217
|
declare const PDP_CircleNumber: typeof CircleNumber;
|
|
1215
1218
|
declare const PDP_Clock: typeof Clock;
|
|
1216
1219
|
declare const PDP_Drop: typeof Drop;
|
|
@@ -1225,7 +1228,6 @@ declare const PDP_Hours: typeof Hours;
|
|
|
1225
1228
|
declare const PDP_KlarnaLogo: typeof KlarnaLogo;
|
|
1226
1229
|
declare const PDP_LightBulb: typeof LightBulb;
|
|
1227
1230
|
declare const PDP_LoadingTrafisizy: typeof LoadingTrafisizy;
|
|
1228
|
-
declare const PDP_TapeMeasure: typeof TapeMeasure;
|
|
1229
1231
|
declare const PDP_Minus: typeof Minus;
|
|
1230
1232
|
declare const PDP_Moon: typeof Moon;
|
|
1231
1233
|
declare const PDP_NewClock: typeof NewClock;
|
|
@@ -1243,6 +1245,7 @@ declare const PDP_StarEmpty: typeof StarEmpty;
|
|
|
1243
1245
|
declare const PDP_StarHalf: typeof StarHalf;
|
|
1244
1246
|
declare const PDP_Stars: typeof Stars;
|
|
1245
1247
|
declare const PDP_Stopwatch: typeof Stopwatch;
|
|
1248
|
+
declare const PDP_TapeMeasure: typeof TapeMeasure;
|
|
1246
1249
|
declare const PDP_TrustBadge: typeof TrustBadge;
|
|
1247
1250
|
declare const PDP_TrustPilotHalfStar: typeof TrustPilotHalfStar;
|
|
1248
1251
|
declare const PDP_TrustPilotStar: typeof TrustPilotStar;
|
|
@@ -1250,6 +1253,7 @@ declare const PDP_Verified: typeof Verified;
|
|
|
1250
1253
|
declare namespace PDP {
|
|
1251
1254
|
export {
|
|
1252
1255
|
PDP_AfterPayLogo as AfterPayLogo,
|
|
1256
|
+
PDP_AiMagic as AiMagic,
|
|
1253
1257
|
PDP_CircleNumber as CircleNumber,
|
|
1254
1258
|
PDP_Clock as Clock,
|
|
1255
1259
|
PDP_Drop as Drop,
|
|
@@ -1264,7 +1268,6 @@ declare namespace PDP {
|
|
|
1264
1268
|
PDP_KlarnaLogo as KlarnaLogo,
|
|
1265
1269
|
PDP_LightBulb as LightBulb,
|
|
1266
1270
|
PDP_LoadingTrafisizy as LoadingTrafisizy,
|
|
1267
|
-
PDP_TapeMeasure as TapeMeasure,
|
|
1268
1271
|
PDP_Minus as Minus,
|
|
1269
1272
|
PDP_Moon as Moon,
|
|
1270
1273
|
PDP_NewClock as NewClock,
|
|
@@ -1282,6 +1285,7 @@ declare namespace PDP {
|
|
|
1282
1285
|
PDP_StarHalf as StarHalf,
|
|
1283
1286
|
PDP_Stars as Stars,
|
|
1284
1287
|
PDP_Stopwatch as Stopwatch,
|
|
1288
|
+
PDP_TapeMeasure as TapeMeasure,
|
|
1285
1289
|
PDP_TrustBadge as TrustBadge,
|
|
1286
1290
|
PDP_TrustPilotHalfStar as TrustPilotHalfStar,
|
|
1287
1291
|
PDP_TrustPilotStar as TrustPilotStar,
|
|
@@ -2695,8 +2699,9 @@ interface RatingProps {
|
|
|
2695
2699
|
showRatingText?: boolean;
|
|
2696
2700
|
underline?: boolean;
|
|
2697
2701
|
reviewsContainerId?: string;
|
|
2702
|
+
additionalContent?: react__default.ReactNode;
|
|
2698
2703
|
}
|
|
2699
|
-
declare const Rating: ({ size, reviews, reviewsText, rating, showRatingText, wrapWithParenthesis, underline, reviewsContainerId, }: RatingProps) => JSX.Element;
|
|
2704
|
+
declare const Rating: ({ size, reviews, reviewsText, rating, showRatingText, wrapWithParenthesis, underline, reviewsContainerId, additionalContent, }: RatingProps) => JSX.Element;
|
|
2700
2705
|
|
|
2701
2706
|
interface ProductItemProps {
|
|
2702
2707
|
title: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");require("../../../core/theme/Theme.js"),require("react"),require("../../../types/enums.js"),require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/styled.js"),require("../../pricing/styles.js"),require("../../tooltip/Styled.js"),require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js");var i=require("../../atoms/Icon/Icon.js");require("../../atoms/Image/styled.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/Toggle/toggle.styled.js");exports.AiMagic=function(s){return r.jsx(i.Icon,e.__assign({},s,{name:"pdp/ai_magic"}),void 0)};
|
|
2
|
+
//# sourceMappingURL=AiMagic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiMagic.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./AfterPayLogo.js"),e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./AfterPayLogo.js"),e=require("./AiMagic.js"),s=require("./CircleNumber.js"),i=require("./Clock.js"),t=require("./Drop.js"),o=require("./DropEmpty.js"),p=require("./DropV2.js"),u=require("./ErrorCross.js"),a=require("./FewDrops.js"),S=require("./FlagUSA.js"),l=require("./FreeReturnsV2.js"),j=require("./FreeShippingV2.js"),x=require("./Hours.js"),q=require("./KlarnaLogo.js"),g=require("./LightBulb.js"),n=require("./LoadingTrafisizy.js"),y=require("./Minus.js"),P=require("./Moon.js"),h=require("./NewClock.js"),m=require("./PlayMini.js"),E=require("./PlayVideo.js"),V=require("./Plus.js"),c=require("./Rule.js"),f=require("./Shipping.js"),M=require("./ShippingEmpty.js"),T=require("./SizeEmpty.js"),d=require("./SizeEmptyV2.js"),z=require("./SizeWithStars.js"),C=require("./Star.js"),D=require("./StarEmpty.js"),F=require("./StarHalf.js"),L=require("./Stars.js"),w=require("./Stopwatch.js"),A=require("./TapeMeasure.js"),H=require("./TrustBadge.js"),b=require("./TrustPilotHalfStar.js"),k=require("./TrustPilotStar.js"),B=require("./Verified.js");exports.AfterPayLogo=r.AfterPayLogo,exports.AiMagic=e.AiMagic,exports.CircleNumber=s.CircleNumber,exports.Clock=i.Clock,exports.Drop=t.Drop,exports.DropEmpty=o.DropEmpty,exports.DropV2=p.DropV2,exports.ErrorCross=u.ErrorCross,exports.FewDrops=a.FewDrops,exports.FlagUSA=S.FlagUSA,exports.FreeReturnsV2=l.FreeReturnsV2,exports.FreeShippingV2=j.FreeShippingV2,exports.Hours=x.Hours,exports.KlarnaLogo=q.KlarnaLogo,exports.LightBulb=g.LightBulb,exports.LoadingTrafisizy=n.LoadingTrafisizy,exports.Minus=y.Minus,exports.Moon=P.Moon,exports.NewClock=h.NewClock,exports.PlayMini=m.PlayMini,exports.PlayVideo=E.PlayVideo,exports.Plus=V.Plus,exports.Rule=c.Rule,exports.Shipping=f.Shipping,exports.ShippingEmpty=M.ShippingEmpty,exports.SizeEmpty=T.SizeEmpty,exports.SizeEmptyV2=d.SizeEmptyV2,exports.SizeWithStars=z.SizeWithStars,exports.Star=C.Star,exports.StarEmpty=D.StarEmpty,exports.StarHalf=F.StarHalf,exports.Stars=L.Stars,exports.Stopwatch=w.Stopwatch,exports.TapeMeasure=A.TapeMeasure,exports.TrustBadge=H.TrustBadge,exports.TrustPilotHalfStar=b.TrustPilotHalfStar,exports.TrustPilotStar=k.TrustPilotStar,exports.Verified=B.Verified;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("../../core/theme/Theme.js"),r=require("../../types/enums.js"),s=require("./constants.js"),n=require("./starList/StarList.js"),a=require("./styles.js");exports.Rating=function(o){var l=o.size,d=void 0===l?r.ComponentSize.Medium:l,u=o.reviews,c=o.reviewsText,v=o.rating,h=o.showRatingText,m=void 0!==h&&h,j=o.wrapWithParenthesis,b=void 0!==j&&j,g=o.underline,p=void 0!==g&&g,x=o.reviewsContainerId,_=o.additionalContent;var q=t.useTheme(),C=x?{href:x}:{};return i.jsxs(a.Container,e.__assign({as:x?"a":"div"},C,{"data-testid":"Container",onClick:function(e){var i;e.cancelable&&e.preventDefault(),x&&(null===(i=document.querySelector(x))||void 0===i||i.scrollIntoView({behavior:"smooth"}))}},{children:[m&&i.jsx(a.RatingLabel,e.__assign({color:q.colors.shades[700].color,"data-testid":"RatingLabel"},{children:v}),void 0),i.jsx(n.StarList,{rating:v,size:d,starsNumber:s.STARTS_NUMBER,fill:q.component.stars.element.color},void 0),(u||c)&&i.jsxs(a.CustomLabel,e.__assign({theme:q,size:d,wrapWithParenthesis:b,underline:p,"data-testid":"CustomLabel"},{children:[u||""," ",c||""]}),void 0),_]}),void 0)};
|
|
2
2
|
//# sourceMappingURL=Rating.js.map
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Trafilea's Design System",
|
|
4
4
|
"author": "Trafilea",
|
|
5
5
|
"repository": "https://github.com/trafilea/afrodita-components",
|
|
6
|
-
"version": "7.
|
|
6
|
+
"version": "7.12.0",
|
|
7
7
|
"private": false,
|
|
8
8
|
"main": "build/lib/index.js",
|
|
9
9
|
"style": "build/es/index.css",
|
|
@@ -41,11 +41,12 @@
|
|
|
41
41
|
"@ribeirolabs/events": "3.0.0",
|
|
42
42
|
"facepaint": "^1.2.1",
|
|
43
43
|
"html-react-parser": "1.4.8",
|
|
44
|
+
"react": "^17.0.2",
|
|
45
|
+
"react-dom": "^17.0.2",
|
|
44
46
|
"react-inner-image-zoom": "^3.0.2",
|
|
45
47
|
"react-swipeable": "6.2.0",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"react-dom": "^17.0.2"
|
|
48
|
+
"react-zoom-pan-pinch": "^3.7.0",
|
|
49
|
+
"typescript": "^4.3.5"
|
|
49
50
|
},
|
|
50
51
|
"scripts": {
|
|
51
52
|
"build": "rollup -c",
|