@ikas/storefront 1.0.18 → 1.0.20
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.css +5 -1
- package/build/index.es.css +5 -1
- package/build/index.es.js +14 -8
- package/build/index.js +14 -8
- package/package.json +1 -1
package/build/index.css
CHANGED
|
@@ -1212,7 +1212,11 @@
|
|
|
1212
1212
|
.style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF {
|
|
1213
1213
|
color: var(--checkout-secondary-text-color);
|
|
1214
1214
|
display: flex;
|
|
1215
|
-
align-items: center;
|
|
1215
|
+
align-items: center;
|
|
1216
|
+
flex: 1 1 auto; }
|
|
1217
|
+
.style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {
|
|
1218
|
+
flex: 0 0 auto;
|
|
1219
|
+
padding-left: 8px; }
|
|
1216
1220
|
.style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ:last-of-type {
|
|
1217
1221
|
margin-bottom: 0; }
|
|
1218
1222
|
|
package/build/index.es.css
CHANGED
|
@@ -1212,7 +1212,11 @@
|
|
|
1212
1212
|
.style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF {
|
|
1213
1213
|
color: var(--checkout-secondary-text-color);
|
|
1214
1214
|
display: flex;
|
|
1215
|
-
align-items: center;
|
|
1215
|
+
align-items: center;
|
|
1216
|
+
flex: 1 1 auto; }
|
|
1217
|
+
.style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {
|
|
1218
|
+
flex: 0 0 auto;
|
|
1219
|
+
padding-left: 8px; }
|
|
1216
1220
|
.style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ:last-of-type {
|
|
1217
1221
|
margin-bottom: 0; }
|
|
1218
1222
|
|
package/build/index.es.js
CHANGED
|
@@ -37010,12 +37010,19 @@ var IkasProductDetail = /** @class */ (function () {
|
|
|
37010
37010
|
return variant.variantValues.some(function (vvv) { return vvv.id === vv.id; });
|
|
37011
37011
|
});
|
|
37012
37012
|
});
|
|
37013
|
+
var variantWithStock = _this.product.variants.find(function (variant) {
|
|
37014
|
+
return variant.isActive &&
|
|
37015
|
+
variant.hasStock &&
|
|
37016
|
+
variantValues.every(function (vv) {
|
|
37017
|
+
return variant.variantValues.some(function (vvv) { return vvv.id === vv.id; });
|
|
37018
|
+
});
|
|
37019
|
+
});
|
|
37013
37020
|
var isSelected = _this.selectedVariant.variantValues.some(function (vv) { return vv.id === variantValue.id; });
|
|
37014
37021
|
if (variant) {
|
|
37015
37022
|
displayedVariantValues.push({
|
|
37016
37023
|
variant: variant,
|
|
37017
37024
|
variantValue: variantValue,
|
|
37018
|
-
hasStock:
|
|
37025
|
+
hasStock: !!variantWithStock,
|
|
37019
37026
|
isSelected: isSelected,
|
|
37020
37027
|
});
|
|
37021
37028
|
}
|
|
@@ -46267,12 +46274,11 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
46267
46274
|
_a.sent();
|
|
46268
46275
|
return [3 /*break*/, 1];
|
|
46269
46276
|
case 3:
|
|
46270
|
-
|
|
46271
|
-
|
|
46272
|
-
|
|
46273
|
-
.
|
|
46274
|
-
|
|
46275
|
-
});
|
|
46277
|
+
targets.forEach(function (target) {
|
|
46278
|
+
var metaData = metaDataList.find(function (md) { return md.targetId === target.id; });
|
|
46279
|
+
if (metaData) {
|
|
46280
|
+
target.navigationLink.href += metaData.slug;
|
|
46281
|
+
}
|
|
46276
46282
|
});
|
|
46277
46283
|
return [2 /*return*/];
|
|
46278
46284
|
}
|
|
@@ -71270,7 +71276,7 @@ var SVGGift = function (_a) {
|
|
|
71270
71276
|
createElement("rect", { width: "16", height: "16", fill: "white" })))));
|
|
71271
71277
|
};
|
|
71272
71278
|
|
|
71273
|
-
var styles$h = {"CartSummary":"style-module_CartSummary__30RcF","AllowExpand":"style-module_AllowExpand__3kDXF","ExpandHeader":"style-module_ExpandHeader__2ICjA","Left":"style-module_Left__A54sv","Price":"style-module_Price__sosrJ","PriceText":"style-module_PriceText__1ePGb","ArrowDown":"style-module_ArrowDown__2ET-d","Rotated":"style-module_Rotated__3sgbm","DetailsContainer":"style-module_DetailsContainer__FBBIP","Details":"style-module_Details__3-X_i","Divider":"style-module_Divider__2d0Zk","ActionTextBtn":"style-module_ActionTextBtn__FXJQX","NoUnderline":"style-module_NoUnderline__34-1r","Light":"style-module_Light__WFzH8","SubTotalInfo":"style-module_SubTotalInfo__1QMnr","InfoRow":"style-module_InfoRow__3eZdJ","Label":"style-module_Label__3E7LF","TotalContainer":"style-module_TotalContainer__36DNt","TitleContainer":"style-module_TitleContainer__3ptQE","Title":"style-module_Title__16M5E","TotalPrice":"style-module_TotalPrice__2s7DC","AppliedCoupon":"style-module_AppliedCoupon__37qv8","CouponCode":"style-module_CouponCode__3rgOu","ClearCoupon":"style-module_ClearCoupon__1Rx4A","NotificationContainer":"style-module_NotificationContainer__Zblek","CheckoutNoteContainer":"style-module_CheckoutNoteContainer__zQQjd","CheckoutNoteDisplay":"style-module_CheckoutNoteDisplay__kTFTx","Success":"style-module_Success__2vqWA","GiftLabel":"style-module_GiftLabel__2f-wC","PoweredBy":"style-module_PoweredBy__1hgWQ"};
|
|
71279
|
+
var styles$h = {"CartSummary":"style-module_CartSummary__30RcF","AllowExpand":"style-module_AllowExpand__3kDXF","ExpandHeader":"style-module_ExpandHeader__2ICjA","Left":"style-module_Left__A54sv","Price":"style-module_Price__sosrJ","PriceText":"style-module_PriceText__1ePGb","ArrowDown":"style-module_ArrowDown__2ET-d","Rotated":"style-module_Rotated__3sgbm","DetailsContainer":"style-module_DetailsContainer__FBBIP","Details":"style-module_Details__3-X_i","Divider":"style-module_Divider__2d0Zk","ActionTextBtn":"style-module_ActionTextBtn__FXJQX","NoUnderline":"style-module_NoUnderline__34-1r","Light":"style-module_Light__WFzH8","SubTotalInfo":"style-module_SubTotalInfo__1QMnr","InfoRow":"style-module_InfoRow__3eZdJ","Label":"style-module_Label__3E7LF","Value":"style-module_Value__3mBvk","TotalContainer":"style-module_TotalContainer__36DNt","TitleContainer":"style-module_TitleContainer__3ptQE","Title":"style-module_Title__16M5E","TotalPrice":"style-module_TotalPrice__2s7DC","AppliedCoupon":"style-module_AppliedCoupon__37qv8","CouponCode":"style-module_CouponCode__3rgOu","ClearCoupon":"style-module_ClearCoupon__1Rx4A","NotificationContainer":"style-module_NotificationContainer__Zblek","CheckoutNoteContainer":"style-module_CheckoutNoteContainer__zQQjd","CheckoutNoteDisplay":"style-module_CheckoutNoteDisplay__kTFTx","Success":"style-module_Success__2vqWA","GiftLabel":"style-module_GiftLabel__2f-wC","PoweredBy":"style-module_PoweredBy__1hgWQ"};
|
|
71274
71280
|
|
|
71275
71281
|
var SVGIkas = function (_a) {
|
|
71276
71282
|
var className = _a.className;
|
package/build/index.js
CHANGED
|
@@ -36990,12 +36990,19 @@ var IkasProductDetail = /** @class */ (function () {
|
|
|
36990
36990
|
return variant.variantValues.some(function (vvv) { return vvv.id === vv.id; });
|
|
36991
36991
|
});
|
|
36992
36992
|
});
|
|
36993
|
+
var variantWithStock = _this.product.variants.find(function (variant) {
|
|
36994
|
+
return variant.isActive &&
|
|
36995
|
+
variant.hasStock &&
|
|
36996
|
+
variantValues.every(function (vv) {
|
|
36997
|
+
return variant.variantValues.some(function (vvv) { return vvv.id === vv.id; });
|
|
36998
|
+
});
|
|
36999
|
+
});
|
|
36993
37000
|
var isSelected = _this.selectedVariant.variantValues.some(function (vv) { return vv.id === variantValue.id; });
|
|
36994
37001
|
if (variant) {
|
|
36995
37002
|
displayedVariantValues.push({
|
|
36996
37003
|
variant: variant,
|
|
36997
37004
|
variantValue: variantValue,
|
|
36998
|
-
hasStock:
|
|
37005
|
+
hasStock: !!variantWithStock,
|
|
36999
37006
|
isSelected: isSelected,
|
|
37000
37007
|
});
|
|
37001
37008
|
}
|
|
@@ -46244,12 +46251,11 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
46244
46251
|
_a.sent();
|
|
46245
46252
|
return [3 /*break*/, 1];
|
|
46246
46253
|
case 3:
|
|
46247
|
-
|
|
46248
|
-
|
|
46249
|
-
|
|
46250
|
-
.
|
|
46251
|
-
|
|
46252
|
-
});
|
|
46254
|
+
targets.forEach(function (target) {
|
|
46255
|
+
var metaData = metaDataList.find(function (md) { return md.targetId === target.id; });
|
|
46256
|
+
if (metaData) {
|
|
46257
|
+
target.navigationLink.href += metaData.slug;
|
|
46258
|
+
}
|
|
46253
46259
|
});
|
|
46254
46260
|
return [2 /*return*/];
|
|
46255
46261
|
}
|
|
@@ -71247,7 +71253,7 @@ var SVGGift = function (_a) {
|
|
|
71247
71253
|
React.createElement("rect", { width: "16", height: "16", fill: "white" })))));
|
|
71248
71254
|
};
|
|
71249
71255
|
|
|
71250
|
-
var styles$h = {"CartSummary":"style-module_CartSummary__30RcF","AllowExpand":"style-module_AllowExpand__3kDXF","ExpandHeader":"style-module_ExpandHeader__2ICjA","Left":"style-module_Left__A54sv","Price":"style-module_Price__sosrJ","PriceText":"style-module_PriceText__1ePGb","ArrowDown":"style-module_ArrowDown__2ET-d","Rotated":"style-module_Rotated__3sgbm","DetailsContainer":"style-module_DetailsContainer__FBBIP","Details":"style-module_Details__3-X_i","Divider":"style-module_Divider__2d0Zk","ActionTextBtn":"style-module_ActionTextBtn__FXJQX","NoUnderline":"style-module_NoUnderline__34-1r","Light":"style-module_Light__WFzH8","SubTotalInfo":"style-module_SubTotalInfo__1QMnr","InfoRow":"style-module_InfoRow__3eZdJ","Label":"style-module_Label__3E7LF","TotalContainer":"style-module_TotalContainer__36DNt","TitleContainer":"style-module_TitleContainer__3ptQE","Title":"style-module_Title__16M5E","TotalPrice":"style-module_TotalPrice__2s7DC","AppliedCoupon":"style-module_AppliedCoupon__37qv8","CouponCode":"style-module_CouponCode__3rgOu","ClearCoupon":"style-module_ClearCoupon__1Rx4A","NotificationContainer":"style-module_NotificationContainer__Zblek","CheckoutNoteContainer":"style-module_CheckoutNoteContainer__zQQjd","CheckoutNoteDisplay":"style-module_CheckoutNoteDisplay__kTFTx","Success":"style-module_Success__2vqWA","GiftLabel":"style-module_GiftLabel__2f-wC","PoweredBy":"style-module_PoweredBy__1hgWQ"};
|
|
71256
|
+
var styles$h = {"CartSummary":"style-module_CartSummary__30RcF","AllowExpand":"style-module_AllowExpand__3kDXF","ExpandHeader":"style-module_ExpandHeader__2ICjA","Left":"style-module_Left__A54sv","Price":"style-module_Price__sosrJ","PriceText":"style-module_PriceText__1ePGb","ArrowDown":"style-module_ArrowDown__2ET-d","Rotated":"style-module_Rotated__3sgbm","DetailsContainer":"style-module_DetailsContainer__FBBIP","Details":"style-module_Details__3-X_i","Divider":"style-module_Divider__2d0Zk","ActionTextBtn":"style-module_ActionTextBtn__FXJQX","NoUnderline":"style-module_NoUnderline__34-1r","Light":"style-module_Light__WFzH8","SubTotalInfo":"style-module_SubTotalInfo__1QMnr","InfoRow":"style-module_InfoRow__3eZdJ","Label":"style-module_Label__3E7LF","Value":"style-module_Value__3mBvk","TotalContainer":"style-module_TotalContainer__36DNt","TitleContainer":"style-module_TitleContainer__3ptQE","Title":"style-module_Title__16M5E","TotalPrice":"style-module_TotalPrice__2s7DC","AppliedCoupon":"style-module_AppliedCoupon__37qv8","CouponCode":"style-module_CouponCode__3rgOu","ClearCoupon":"style-module_ClearCoupon__1Rx4A","NotificationContainer":"style-module_NotificationContainer__Zblek","CheckoutNoteContainer":"style-module_CheckoutNoteContainer__zQQjd","CheckoutNoteDisplay":"style-module_CheckoutNoteDisplay__kTFTx","Success":"style-module_Success__2vqWA","GiftLabel":"style-module_GiftLabel__2f-wC","PoweredBy":"style-module_PoweredBy__1hgWQ"};
|
|
71251
71257
|
|
|
71252
71258
|
var SVGIkas = function (_a) {
|
|
71253
71259
|
var className = _a.className;
|