genus-ui 1.33.1 → 1.35.1

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/dist/index.es.js CHANGED
@@ -600,7 +600,7 @@ const Ra = D`
600
600
  color: var(--tab-font-color, #213e70);
601
601
  text-align: center;
602
602
  line-height: 3rem;
603
- width: -webkit-fill-available;
603
+ width: var(--tab-width, -webkit-fill-available);
604
604
  text-transform: capitalize;
605
605
  }
606
606
 
@@ -636,14 +636,14 @@ var Ua = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, Ke = (i, t
636
636
  };
637
637
  let jt = class extends et {
638
638
  constructor() {
639
- super(...arguments), this._numberOfTabs = 0, this._tabsTemplate = [], this._tabNames = [], this.tabNames = "", this._hideCurrentContent = () => {
639
+ super(...arguments), this._numberOfTabs = 0, this._tabsTemplate = [], this._tabNames = [], this.tabNames = [], this._hideCurrentContent = () => {
640
640
  this._tabContents.forEach((i) => {
641
641
  i.classList.contains("show-content") && i.classList.remove("show-content");
642
642
  });
643
643
  }, this._showContent = (i) => {
644
644
  this._hideCurrentContent(), this._tabContents[i].classList.add("show-content");
645
645
  }, this._generateTabs = () => {
646
- this._tabNames = JSON.parse(this.tabNames);
646
+ this._tabNames = this.tabNames;
647
647
  for (let i = 0; i < this._numberOfTabs; i++)
648
648
  i === 0 ? this._tabsTemplate.push(z`
649
649
  <input class="tab-radio" id=${this._tabNames[i]} type="radio" name="tabGroup" @change=${() => {
@@ -685,7 +685,7 @@ Ke([
685
685
  at()
686
686
  ], jt.prototype, "_tabsTemplate", 2);
687
687
  Ke([
688
- O({ attribute: "tab-names" })
688
+ O({ attribute: "tab-names", type: Array })
689
689
  ], jt.prototype, "tabNames", 2);
690
690
  jt = Ke([
691
691
  it("genus-tab-container")
@@ -996,10 +996,10 @@ var ar = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, ee = (i, t
996
996
  };
997
997
  let zt = class extends et {
998
998
  constructor() {
999
- super(...arguments), this.groupName = "", this.labelText = "", this.selectedOption = "", this.options = "", this.withLabel = !1, this.withoutIcon = !1;
999
+ super(...arguments), this.groupName = "", this.labelText = "", this.selectedOption = "", this.options = [], this.withoutLabel = !1, this.withoutIcon = !1;
1000
1000
  }
1001
1001
  render() {
1002
- let i = [], t = JSON.parse(this.options);
1002
+ let i = [], t = this.options;
1003
1003
  for (let e of t)
1004
1004
  e.inputValue === this.selectedOption ? this.withoutIcon ? i.push(
1005
1005
  z`
@@ -1042,17 +1042,17 @@ let zt = class extends et {
1042
1042
  </label>
1043
1043
  `
1044
1044
  );
1045
- return this.withLabel ? z`
1045
+ return this.withoutLabel ? z`
1046
+ <div class="radiobtn-group">
1047
+ ${i}
1048
+ </div>
1049
+ ` : z`
1046
1050
  <div class='form-field'>
1047
1051
  <label class='input-label'>${this.labelText}</label>
1048
1052
  <div class="radiobtn-group">
1049
1053
  ${i}
1050
1054
  </div>
1051
1055
  </div>
1052
- ` : z`
1053
- <div class="radiobtn-group">
1054
- ${i}
1055
- </div>
1056
1056
  `;
1057
1057
  }
1058
1058
  };
@@ -1067,11 +1067,11 @@ ee([
1067
1067
  O({ attribute: "selected-option" })
1068
1068
  ], zt.prototype, "selectedOption", 2);
1069
1069
  ee([
1070
- O()
1070
+ O({ attribute: "group-options", type: Array })
1071
1071
  ], zt.prototype, "options", 2);
1072
1072
  ee([
1073
- O({ attribute: "with-label", type: Boolean })
1074
- ], zt.prototype, "withLabel", 2);
1073
+ O({ attribute: "without-label", type: Boolean })
1074
+ ], zt.prototype, "withoutLabel", 2);
1075
1075
  ee([
1076
1076
  O({ attribute: "without-icon", type: Boolean })
1077
1077
  ], zt.prototype, "withoutIcon", 2);