@salla.sa/twilight-components 1.5.8 → 1.5.9

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/{index-0d0167d5.js → index-d43334bf.js} +0 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/salla-add-product-button.cjs.entry.js +5 -5
  4. package/dist/cjs/salla-button_24.cjs.entry.js +2 -2
  5. package/dist/cjs/salla-conditional-fields.cjs.entry.js +1 -1
  6. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  7. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  8. package/dist/cjs/twilight-components.cjs.js +1 -1
  9. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +6 -6
  10. package/dist/collection/components/salla-login-modal/salla-login-modal.js +1 -1
  11. package/dist/components/salla-add-product-button.js +4 -4
  12. package/dist/components/salla-login-modal.js +1 -1
  13. package/dist/esm/{index-4e30ffd0.js → index-c78562f8.js} +0 -0
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/salla-add-product-button.entry.js +5 -5
  16. package/dist/esm/salla-button_24.entry.js +2 -2
  17. package/dist/esm/salla-conditional-fields.entry.js +1 -1
  18. package/dist/esm/salla-installment.entry.js +1 -1
  19. package/dist/esm/salla-scopes.entry.js +1 -1
  20. package/dist/esm/twilight-components.js +1 -1
  21. package/dist/twilight-components/p-11d2a470.entry.js +4 -0
  22. package/dist/twilight-components/{p-952f6c78.entry.js → p-2ae56ddc.entry.js} +1 -1
  23. package/dist/twilight-components/{p-1503d976.js → p-336eda99.js} +0 -0
  24. package/dist/twilight-components/{p-4cba804f.entry.js → p-b5028001.entry.js} +1 -1
  25. package/dist/twilight-components/p-c2947b0f.entry.js +4 -0
  26. package/dist/twilight-components/{p-019bb315.entry.js → p-ca871c42.entry.js} +1 -1
  27. package/dist/twilight-components/twilight-components.esm.js +1 -1
  28. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +2 -2
  29. package/dist/types/components.d.ts +2 -2
  30. package/package.json +2 -2
  31. package/dist/twilight-components/p-a023ad04.entry.js +0 -4
  32. package/dist/twilight-components/p-e7d11878.entry.js +0 -4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-0d0167d5.js');
8
+ const index = require('./index-d43334bf.js');
9
9
 
10
10
  /*
11
11
  Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -5,15 +5,15 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-0d0167d5.js');
8
+ const index = require('./index-d43334bf.js');
9
9
 
10
10
  const sallaAddProductButtonCss = ":host{display:block}salla-add-product-button[width=wide]{width:100%}";
11
11
 
12
12
  const SallaAddProductButton = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
- this.onSuccess = index.createEvent(this, "onSuccess", 7);
16
- this.onFailed = index.createEvent(this, "onFailed", 7);
15
+ this.success = index.createEvent(this, "success", 7);
16
+ this.failed = index.createEvent(this, "failed", 7);
17
17
  this.hostAttributes = {};
18
18
  this.hasLabel = false;
19
19
  /**
@@ -65,10 +65,10 @@ const SallaAddProductButton = class {
65
65
  }).reduce((a, [k, v]) => (v ? (a[k] = v, a) : a), {});
66
66
  return salla.cart.quickAdd(data)
67
67
  .then((response) => {
68
- return this.onSuccess.emit(response);
68
+ return this.success.emit(response);
69
69
  })
70
70
  .catch((error) => {
71
- return this.onFailed.emit(error);
71
+ return this.failed.emit(error);
72
72
  });
73
73
  }
74
74
  getBtnAttributes() {
@@ -5,7 +5,7 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index$1 = require('./index-0d0167d5.js');
8
+ const index$1 = require('./index-d43334bf.js');
9
9
  const search = require('./search-b487cc49.js');
10
10
 
11
11
  const sallaButtonCss = "";
@@ -537,7 +537,7 @@ const SallaLoginModal = class {
537
537
  return;
538
538
  }
539
539
  if (event.detail.data.redirect_url) {
540
- return window.location.href = event.data.redirect_url;
540
+ return window.location.href = event.detail.data.redirect_url;
541
541
  }
542
542
  window.location.reload();
543
543
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-0d0167d5.js');
8
+ const index = require('./index-d43334bf.js');
9
9
 
10
10
  const SallaConditionalFields = class {
11
11
  constructor(hostRef) {
@@ -5,7 +5,7 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-0d0167d5.js');
8
+ const index = require('./index-d43334bf.js');
9
9
 
10
10
  const sallaInstallmentCss = "#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--color-text);font-size:var(--font-sm);line-height:1.25;padding:18px 20px 18px 100px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px;top:18px;margin:0 !important}.ltr .tamara-product-widget .tamara-logo{right:20px;left:auto}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}";
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-0d0167d5.js');
8
+ const index = require('./index-d43334bf.js');
9
9
  const search = require('./search-b487cc49.js');
10
10
 
11
11
  const StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- const index = require('./index-0d0167d5.js');
6
+ const index = require('./index-d43334bf.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -55,10 +55,10 @@ export class SallaAddProductButton {
55
55
  }).reduce((a, [k, v]) => (v ? (a[k] = v, a) : a), {});
56
56
  return salla.cart.quickAdd(data)
57
57
  .then((response) => {
58
- return this.onSuccess.emit(response);
58
+ return this.success.emit(response);
59
59
  })
60
60
  .catch((error) => {
61
- return this.onFailed.emit(error);
61
+ return this.failed.emit(error);
62
62
  });
63
63
  }
64
64
  getBtnAttributes() {
@@ -200,8 +200,8 @@ export class SallaAddProductButton {
200
200
  }
201
201
  }; }
202
202
  static get events() { return [{
203
- "method": "onSuccess",
204
- "name": "onSuccess",
203
+ "method": "success",
204
+ "name": "success",
205
205
  "bubbles": true,
206
206
  "cancelable": true,
207
207
  "composed": true,
@@ -215,8 +215,8 @@ export class SallaAddProductButton {
215
215
  "references": {}
216
216
  }
217
217
  }, {
218
- "method": "onFailed",
219
- "name": "onFailed",
218
+ "method": "failed",
219
+ "name": "failed",
220
220
  "bubbles": true,
221
221
  "cancelable": true,
222
222
  "composed": true,
@@ -125,7 +125,7 @@ export class SallaLoginModal {
125
125
  return;
126
126
  }
127
127
  if (event.detail.data.redirect_url) {
128
- return window.location.href = event.data.redirect_url;
128
+ return window.location.href = event.detail.data.redirect_url;
129
129
  }
130
130
  window.location.reload();
131
131
  }
@@ -14,8 +14,8 @@ const SallaAddProductButton$1 = /*@__PURE__*/ proxyCustomElement(class extends H
14
14
  constructor() {
15
15
  super();
16
16
  this.__registerHost();
17
- this.onSuccess = createEvent(this, "onSuccess", 7);
18
- this.onFailed = createEvent(this, "onFailed", 7);
17
+ this.success = createEvent(this, "success", 7);
18
+ this.failed = createEvent(this, "failed", 7);
19
19
  this.hostAttributes = {};
20
20
  this.hasLabel = false;
21
21
  /**
@@ -67,10 +67,10 @@ const SallaAddProductButton$1 = /*@__PURE__*/ proxyCustomElement(class extends H
67
67
  }).reduce((a, [k, v]) => (v ? (a[k] = v, a) : a), {});
68
68
  return salla.cart.quickAdd(data)
69
69
  .then((response) => {
70
- return this.onSuccess.emit(response);
70
+ return this.success.emit(response);
71
71
  })
72
72
  .catch((error) => {
73
- return this.onFailed.emit(error);
73
+ return this.failed.emit(error);
74
74
  });
75
75
  }
76
76
  getBtnAttributes() {
@@ -136,7 +136,7 @@ const SallaLoginModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
136
136
  return;
137
137
  }
138
138
  if (event.detail.data.redirect_url) {
139
- return window.location.href = event.data.redirect_url;
139
+ return window.location.href = event.detail.data.redirect_url;
140
140
  }
141
141
  window.location.reload();
142
142
  }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { p as promiseResolve, b as bootstrapLazy } from './index-4e30ffd0.js';
4
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c78562f8.js';
5
5
 
6
6
  /*
7
7
  Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4e30ffd0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c78562f8.js';
5
5
 
6
6
  const sallaAddProductButtonCss = ":host{display:block}salla-add-product-button[width=wide]{width:100%}";
7
7
 
8
8
  const SallaAddProductButton = class {
9
9
  constructor(hostRef) {
10
10
  registerInstance(this, hostRef);
11
- this.onSuccess = createEvent(this, "onSuccess", 7);
12
- this.onFailed = createEvent(this, "onFailed", 7);
11
+ this.success = createEvent(this, "success", 7);
12
+ this.failed = createEvent(this, "failed", 7);
13
13
  this.hostAttributes = {};
14
14
  this.hasLabel = false;
15
15
  /**
@@ -61,10 +61,10 @@ const SallaAddProductButton = class {
61
61
  }).reduce((a, [k, v]) => (v ? (a[k] = v, a) : a), {});
62
62
  return salla.cart.quickAdd(data)
63
63
  .then((response) => {
64
- return this.onSuccess.emit(response);
64
+ return this.success.emit(response);
65
65
  })
66
66
  .catch((error) => {
67
- return this.onFailed.emit(error);
67
+ return this.failed.emit(error);
68
68
  });
69
69
  }
70
70
  getBtnAttributes() {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-4e30ffd0.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-c78562f8.js';
5
5
  import { S as Search } from './search-19ea3313.js';
6
6
 
7
7
  const sallaButtonCss = "";
@@ -533,7 +533,7 @@ const SallaLoginModal = class {
533
533
  return;
534
534
  }
535
535
  if (event.detail.data.redirect_url) {
536
- return window.location.href = event.data.redirect_url;
536
+ return window.location.href = event.detail.data.redirect_url;
537
537
  }
538
538
  window.location.reload();
539
539
  }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-4e30ffd0.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-c78562f8.js';
5
5
 
6
6
  const SallaConditionalFields = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-4e30ffd0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-c78562f8.js';
5
5
 
6
6
  const sallaInstallmentCss = "#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--color-text);font-size:var(--font-sm);line-height:1.25;padding:18px 20px 18px 100px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px;top:18px;margin:0 !important}.ltr .tamara-product-widget .tamara-logo{right:20px;left:auto}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-4e30ffd0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-c78562f8.js';
5
5
  import { S as Search } from './search-19ea3313.js';
6
6
 
7
7
  const StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { p as promiseResolve, b as bootstrapLazy } from './index-4e30ffd0.js';
4
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c78562f8.js';
5
5
 
6
6
  /*
7
7
  Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com