@salla.sa/twilight-components 1.0.13 → 1.0.14

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.
@@ -19,7 +19,7 @@ const SallaButton = class {
19
19
  this.hostAttributes.type = this.hostAttributes.type || 'button';
20
20
  this.hostAttributes.class += ' s-button-btn btn--has-loading '
21
21
  + 'btn-' + this.btnStyle
22
- + (this.wide ? ' s-button-btn-wide ' : '')
22
+ + (this.wide ? ' s-button-wide ' : '')
23
23
  + 'loader-' + this.loaderPosition
24
24
  + (this.loaderPosition == 'before' ? ' flex-row-reverse' : '');
25
25
  // if(this.hostAttributes.onclick){
@@ -27,6 +27,9 @@ const SallaButton = class {
27
27
  // }
28
28
  delete this.hostAttributes['btn-style'];
29
29
  delete this.hostAttributes['id'];
30
+ if (this.wide) {
31
+ this.host.classList.add('s-button-wide');
32
+ }
30
33
  }
31
34
  async load() {
32
35
  if (this.loaderPosition == 'center')
@@ -53,7 +53,7 @@ const SallaProductAvailability = class {
53
53
  : h("slot", null, h("salla-button", { wide: true, onClick: () => this.isUser ? this.submit() : this.modal.show() }, this.buttonText)), this.isUser || this.isSubscribed ? '' : this.renderModal()));
54
54
  }
55
55
  renderModal() {
56
- return (h("salla-modal", { ref: modal => this.modal = modal, title: this.title_, subTitle: this.subTitle, icon: "sicon-bell-ring", modalWidth: "w-full" }, h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
56
+ return (h("salla-modal", { ref: modal => this.modal = modal, title: this.title_, subTitle: this.subTitle, icon: "sicon-bell-ring", modalWidth: "w-96" }, h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
57
57
  h("label", { class: "s-product-availability-label" }, this.emailLabel),
58
58
  h("input", { class: "s-product-availability-input", placeholder: this.emailPlaceholder, ref: el => this.email = el, type: "email" })
59
59
  ] : '', this.channels_.includes('sms') ? [
@@ -0,0 +1,3 @@
1
+ salla-button[wide] {
2
+ width: 100%;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "twilight",