@salla.sa/twilight-components 2.11.106 → 2.11.108

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.
Files changed (32) hide show
  1. package/dist/cjs/salla-add-product-button_40.cjs.entry.js +4 -4
  2. package/dist/cjs/salla-add-product-button_40.cjs.entry.js.map +1 -1
  3. package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
  4. package/dist/cjs/salla-products-list.cjs.entry.js.map +1 -1
  5. package/dist/collection/components/salla-product-card/salla-product-card.js +4 -4
  6. package/dist/collection/components/salla-product-card/salla-product-card.js.map +1 -1
  7. package/dist/collection/components/salla-products-list/salla-products-list.js +2 -2
  8. package/dist/collection/components/salla-products-list/salla-products-list.js.map +1 -1
  9. package/dist/components/salla-product-card2.js +4 -4
  10. package/dist/components/salla-product-card2.js.map +1 -1
  11. package/dist/components/salla-products-list.js +2 -2
  12. package/dist/components/salla-products-list.js.map +1 -1
  13. package/dist/esm/salla-add-product-button_40.entry.js +4 -4
  14. package/dist/esm/salla-add-product-button_40.entry.js.map +1 -1
  15. package/dist/esm/salla-products-list.entry.js +2 -2
  16. package/dist/esm/salla-products-list.entry.js.map +1 -1
  17. package/dist/esm-es5/salla-add-product-button_40.entry.js +1 -1
  18. package/dist/esm-es5/salla-add-product-button_40.entry.js.map +1 -1
  19. package/dist/esm-es5/salla-products-list.entry.js +1 -1
  20. package/dist/esm-es5/salla-products-list.entry.js.map +1 -1
  21. package/dist/twilight/{p-72178dda.system.entry.js → p-0cc4cea9.system.entry.js} +2 -2
  22. package/dist/twilight/{p-8cdc1bfd.entry.js.map → p-0cc4cea9.system.entry.js.map} +1 -1
  23. package/dist/twilight/{p-13b40fc0.entry.js → p-3f02fec6.entry.js} +2 -2
  24. package/dist/twilight/{p-13b40fc0.entry.js.map → p-3f02fec6.entry.js.map} +1 -1
  25. package/dist/twilight/p-93adca89.system.js +1 -1
  26. package/dist/twilight/{p-8cdc1bfd.entry.js → p-ac63f24c.entry.js} +2 -2
  27. package/dist/twilight/p-ac63f24c.entry.js.map +1 -0
  28. package/dist/twilight/{p-6aa3dcd4.system.entry.js → p-b9ddde16.system.entry.js} +2 -2
  29. package/dist/twilight/{p-6aa3dcd4.system.entry.js.map → p-b9ddde16.system.entry.js.map} +1 -1
  30. package/dist/twilight/twilight.esm.js +1 -1
  31. package/package.json +2 -2
  32. package/dist/twilight/p-72178dda.system.entry.js.map +0 -1
@@ -23452,7 +23452,7 @@ const SallaProductCard = class {
23452
23452
  return index.h("h4", { class: "s-product-card-price" }, this.getPriceFormat((_c = this.productData) === null || _c === void 0 ? void 0 : _c.price));
23453
23453
  }
23454
23454
  render() {
23455
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
23455
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
23456
23456
  const classes = {
23457
23457
  's-product-card-entry': true,
23458
23458
  's-product-card-vertical': !this.horizontal && !this.fullImage && !this.minimal,
@@ -23461,7 +23461,7 @@ const SallaProductCard = class {
23461
23461
  's-product-card-special': this.isSpecial,
23462
23462
  's-product-card-full-image': this.fullImage,
23463
23463
  's-product-card-minimal': this.minimal,
23464
- 's-product-card-donation': (_a = this.productData) === null || _a === void 0 ? void 0 : _a.is_donation,
23464
+ 's-product-card-donation': (_a = this.productData) === null || _a === void 0 ? void 0 : _a.donation,
23465
23465
  's-product-card-shadow': this.shadowOnHover,
23466
23466
  's-product-card-out-of-stock': (_b = this.productData) === null || _b === void 0 ? void 0 : _b.is_out_of_stock,
23467
23467
  };
@@ -23474,8 +23474,8 @@ const SallaProductCard = class {
23474
23474
  index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number((_p = this.productData) === null || _p === void 0 ? void 0 : _p.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
23475
23475
  : '', index.h("div", { class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { class: "s-product-card-content-title" }, index.h("a", { href: (_q = this.productData) === null || _q === void 0 ? void 0 : _q.url }, (_r = this.productData) === null || _r === void 0 ? void 0 : _r.name)), ((_s = this.productData) === null || _s === void 0 ? void 0 : _s.subtitle) && !this.minimal ?
23476
23476
  index.h("p", { class: "s-product-card-content-subtitle" }, (_t = this.productData) === null || _t === void 0 ? void 0 : _t.subtitle)
23477
- : ''), ((_u = this.productData) === null || _u === void 0 ? void 0 : _u.is_donation) && !this.minimal && !this.fullImage ?
23478
- [index.h("salla-progress-bar", { donation: (_v = this.productData) === null || _v === void 0 ? void 0 : _v.donation }), index.h("div", { class: "s-product-card-donation-input" }, ((_w = this.productData) === null || _w === void 0 ? void 0 : _w.can_donate) ?
23477
+ : ''), ((_u = this.productData) === null || _u === void 0 ? void 0 : _u.donation) && !this.minimal && !this.fullImage ?
23478
+ [index.h("salla-progress-bar", { donation: (_v = this.productData) === null || _v === void 0 ? void 0 : _v.donation }), index.h("div", { class: "s-product-card-donation-input" }, ((_x = (_w = this.productData) === null || _w === void 0 ? void 0 : _w.donation) === null || _x === void 0 ? void 0 : _x.can_donate) ?
23479
23479
  [index.h("label", { htmlFor: "donation-amount" }, this.donationAmount, " ", index.h("span", null, "*")), index.h("input", { type: "text", onInput: e => {
23480
23480
  salla.helpers.inputDigitsOnly(e.target);
23481
23481
  this.addBtn.donatingAmount = e.target.value;