@ikas/storefront 0.0.78 → 0.0.80

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.es.js CHANGED
@@ -12679,10 +12679,17 @@ var IkasOrderLineItem = /** @class */ (function () {
12679
12679
  : new IkasOrderLineVariant();
12680
12680
  makeAutoObservable(this);
12681
12681
  }
12682
+ Object.defineProperty(IkasOrderLineItem.prototype, "finalPriceWithQuantity", {
12683
+ get: function () {
12684
+ return this.finalPrice * this.quantity;
12685
+ },
12686
+ enumerable: false,
12687
+ configurable: true
12688
+ });
12682
12689
  Object.defineProperty(IkasOrderLineItem.prototype, "tax", {
12683
12690
  get: function () {
12684
12691
  var taxValue = this.taxValue || 0;
12685
- return (this.finalPrice / (100 + taxValue)) * taxValue;
12692
+ return (this.finalPriceWithQuantity / (100 + taxValue)) * taxValue;
12686
12693
  },
12687
12694
  enumerable: false,
12688
12695
  configurable: true
@@ -23784,7 +23791,6 @@ function simpleToProduct(simple) {
23784
23791
  metaData: new IkasHTMLMetaData(simple.metaData || undefined),
23785
23792
  name: simple.name,
23786
23793
  shortDescription: simple.shortDescription || undefined,
23787
- taxValue: simple.taxValue || undefined,
23788
23794
  type: simple.type || undefined,
23789
23795
  variantTypes: simple.productVariantTypes.map(function (pvt) {
23790
23796
  return new IkasProductVariantType({
@@ -26181,7 +26187,7 @@ var CartItem = observer(function (_a) {
26181
26187
  createElement("div", { className: styles$e.VariantName }, cartItem.variant.variantValues
26182
26188
  .map(function (vv) { return vv.variantValueName; })
26183
26189
  .join(", "))),
26184
- createElement("div", { className: styles$e.Price }, formatMoney(cartItem.finalPrice, currencyCode))));
26190
+ createElement("div", { className: styles$e.Price }, formatMoney(cartItem.finalPriceWithQuantity, currencyCode))));
26185
26191
  });
26186
26192
 
26187
26193
  var css_248z$g = ".style-module_CartSummary__30RcF {\n background-color: #FAFAFA;\n padding: 0 0.7em;\n border-bottom: 1px solid #d9d9d9;\n overflow: hidden; }\n .style-module_CartSummary__30RcF.style-module_AllowExpand__3kDXF {\n border-top: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 56px;\n padding: 0 1em;\n width: calc(100% + 1.4em);\n margin-left: -0.7em;\n border-bottom: 1px solid transparent;\n transition: border-bottom .3s;\n user-select: none; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv {\n display: flex;\n align-items: center;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_Label__3E7LF {\n margin-left: 0.5em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d {\n transition: all .3s; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d.style-module_Rotated__3sgbm {\n transform: rotate(-180deg); }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Price__sosrJ {\n font-weight: 500; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA.style-module_Expanded__3VBL2 {\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {\n overflow: hidden;\n width: 100%;\n transition: height .3s ease-in-out; }\n .style-module_CartSummary__30RcF .style-module_Details__3-X_i {\n overflow: hidden; }\n .style-module_CartSummary__30RcF .style-module_Divider__2d0Zk {\n width: 100%;\n height: 1px;\n margin: auto;\n background-color: #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA {\n display: flex;\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA .style-module_CouponButton__14hL- {\n flex: 0 0 auto;\n width: 60px;\n margin-left: 0.5em;\n display: flex;\n justify-content: center;\n align-items: center;\n color: white; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr {\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0.3em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF {\n color: #545454;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ:last-of-type {\n margin-bottom: 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1.5em 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Title__16M5E {\n font-size: 1em; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Tax__17g6O {\n font-size: 0.8em;\n color: #545454; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TotalPrice__2s7DC {\n font-size: 1.5em;\n font-weight: 500; }\n @media only screen and (min-width: 1000px) {\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF,\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.9em; } }\n";
package/build/index.js CHANGED
@@ -12692,10 +12692,17 @@ var IkasOrderLineItem = /** @class */ (function () {
12692
12692
  : new IkasOrderLineVariant();
12693
12693
  mobx.makeAutoObservable(this);
12694
12694
  }
12695
+ Object.defineProperty(IkasOrderLineItem.prototype, "finalPriceWithQuantity", {
12696
+ get: function () {
12697
+ return this.finalPrice * this.quantity;
12698
+ },
12699
+ enumerable: false,
12700
+ configurable: true
12701
+ });
12695
12702
  Object.defineProperty(IkasOrderLineItem.prototype, "tax", {
12696
12703
  get: function () {
12697
12704
  var taxValue = this.taxValue || 0;
12698
- return (this.finalPrice / (100 + taxValue)) * taxValue;
12705
+ return (this.finalPriceWithQuantity / (100 + taxValue)) * taxValue;
12699
12706
  },
12700
12707
  enumerable: false,
12701
12708
  configurable: true
@@ -23764,7 +23771,6 @@ function simpleToProduct(simple) {
23764
23771
  metaData: new IkasHTMLMetaData(simple.metaData || undefined),
23765
23772
  name: simple.name,
23766
23773
  shortDescription: simple.shortDescription || undefined,
23767
- taxValue: simple.taxValue || undefined,
23768
23774
  type: simple.type || undefined,
23769
23775
  variantTypes: simple.productVariantTypes.map(function (pvt) {
23770
23776
  return new IkasProductVariantType({
@@ -26161,7 +26167,7 @@ var CartItem = mobxReactLite.observer(function (_a) {
26161
26167
  React.createElement("div", { className: styles$e.VariantName }, cartItem.variant.variantValues
26162
26168
  .map(function (vv) { return vv.variantValueName; })
26163
26169
  .join(", "))),
26164
- React.createElement("div", { className: styles$e.Price }, formatMoney(cartItem.finalPrice, currencyCode))));
26170
+ React.createElement("div", { className: styles$e.Price }, formatMoney(cartItem.finalPriceWithQuantity, currencyCode))));
26165
26171
  });
26166
26172
 
26167
26173
  var css_248z$g = ".style-module_CartSummary__30RcF {\n background-color: #FAFAFA;\n padding: 0 0.7em;\n border-bottom: 1px solid #d9d9d9;\n overflow: hidden; }\n .style-module_CartSummary__30RcF.style-module_AllowExpand__3kDXF {\n border-top: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 56px;\n padding: 0 1em;\n width: calc(100% + 1.4em);\n margin-left: -0.7em;\n border-bottom: 1px solid transparent;\n transition: border-bottom .3s;\n user-select: none; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv {\n display: flex;\n align-items: center;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_Label__3E7LF {\n margin-left: 0.5em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d {\n transition: all .3s; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d.style-module_Rotated__3sgbm {\n transform: rotate(-180deg); }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Price__sosrJ {\n font-weight: 500; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA.style-module_Expanded__3VBL2 {\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {\n overflow: hidden;\n width: 100%;\n transition: height .3s ease-in-out; }\n .style-module_CartSummary__30RcF .style-module_Details__3-X_i {\n overflow: hidden; }\n .style-module_CartSummary__30RcF .style-module_Divider__2d0Zk {\n width: 100%;\n height: 1px;\n margin: auto;\n background-color: #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA {\n display: flex;\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA .style-module_CouponButton__14hL- {\n flex: 0 0 auto;\n width: 60px;\n margin-left: 0.5em;\n display: flex;\n justify-content: center;\n align-items: center;\n color: white; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr {\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0.3em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF {\n color: #545454;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ:last-of-type {\n margin-bottom: 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1.5em 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Title__16M5E {\n font-size: 1em; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Tax__17g6O {\n font-size: 0.8em;\n color: #545454; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TotalPrice__2s7DC {\n font-size: 1.5em;\n font-weight: 500; }\n @media only screen and (min-width: 1000px) {\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF,\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.9em; } }\n";
@@ -15,5 +15,6 @@ export declare class IkasOrderLineItem {
15
15
  taxValue?: number | null;
16
16
  variant: IkasOrderLineVariant;
17
17
  constructor(data: Partial<IkasOrderLineItem>);
18
+ get finalPriceWithQuantity(): number;
18
19
  get tax(): number;
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",