genus-ui 1.64.4 → 1.65.7

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
@@ -1066,9 +1066,10 @@ const Yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1066
1066
 
1067
1067
  .genus-radiobtn-label:hover { cursor: pointer; }
1068
1068
 
1069
+ .genus-radiobtn-label--with-icon { display: block; }
1070
+
1069
1071
  .input-label
1070
1072
  {
1071
- color: (--label-font-color, #213e70);
1072
1073
  justify-self: start;
1073
1074
  grid-area: il;
1074
1075
  }
@@ -1105,6 +1106,7 @@ const Yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1105
1106
  {
1106
1107
  font-family: var(--input-label-font-family, 'Sofia Pro');
1107
1108
  font-size: var(--input-label-font-size, 1rem);
1109
+ color: var(--input-label-font-color, #213e70);
1108
1110
  }
1109
1111
  `, fr = P`
1110
1112
  .form-field
@@ -1127,13 +1129,20 @@ const Yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1127
1129
  grid-area: rg;
1128
1130
  }
1129
1131
 
1130
- .genus-radiobtn-label--with-icon
1132
+ .genus-radiobtn-label
1131
1133
  {
1132
1134
  display: flex;
1133
1135
  align-items: center;
1134
1136
  -moz-column-gap: 0.6rem;
1135
1137
  column-gap: 0.6rem;
1136
1138
  }
1139
+
1140
+ .genus-radiobtn-label--with-icon
1141
+ {
1142
+ align-items: unset;
1143
+ -moz-column-gap: unset;
1144
+ column-gap: unset;
1145
+ }
1137
1146
  `, Zs = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='7'%20fill='%23FDFDFD'%20stroke='%23B9BDBA'/%3e%3c/svg%3e", Us = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20class='radio-icon-svg%20checked-svg'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e%20.radio-icon-svg%20circle%20{%20fill:%20%23fdc54a;%20}%20.checked-svg%20path%20{%20stroke:%20%233c499e;%20}%20%3c/style%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='7.5'/%3e%3cpath%20d='M5%208.005L6.892%209.898L10.79%206'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
1138
1147
  var gr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, Nt = (i, t, e, s) => {
1139
1148
  for (var n = s > 1 ? void 0 : s ? mr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
@@ -1152,7 +1161,7 @@ let gt = class extends G {
1152
1161
  <input type='radio' id=${e.inputValue} class='genus-radiobtn' @change=${() => {
1153
1162
  this.dispatchEvent(new CustomEvent("checked", { detail: e.inputValue })), this._internals.setFormValue(e.inputValue);
1154
1163
  }} value=${e.inputValue} name=${this.groupName} checked />
1155
- <label class='label genus-radiobtn-label' for=${e.inputValue}>
1164
+ <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${e.inputValue}>
1156
1165
  <span class="label-text">${e.labelText}</span>
1157
1166
  </label>
1158
1167
  `
@@ -1161,7 +1170,7 @@ let gt = class extends G {
1161
1170
  <input type='radio' id=${e.inputValue} class='genus-radiobtn' @change=${() => {
1162
1171
  this.dispatchEvent(new CustomEvent("checked", { detail: e.inputValue })), this._internals.setFormValue(e.inputValue);
1163
1172
  }} value=${e.inputValue} name=${this.groupName} checked />
1164
- <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${e.inputValue}>
1173
+ <label class='label genus-radiobtn-label' for=${e.inputValue}>
1165
1174
  <span class="label-text">${e.labelText}</span>
1166
1175
  <img class="component-icon radiobtn-icon unchecked-icon" src='${Zs}' />
1167
1176
  <img class="component-icon radiobtn-icon checked-icon" src='${Us}' />
@@ -1172,7 +1181,7 @@ let gt = class extends G {
1172
1181
  <input type='radio' id=${e.inputValue} class='genus-radiobtn' @change=${() => {
1173
1182
  this.dispatchEvent(new CustomEvent("checked", { detail: e.inputValue })), this._internals.setFormValue(e.inputValue);
1174
1183
  }} value=${e.inputValue} name=${this.groupName} />
1175
- <label class='label genus-radiobtn-label' for=${e.inputValue}>
1184
+ <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${e.inputValue}>
1176
1185
  <span class="label-text">${e.labelText}</span>
1177
1186
  </label>
1178
1187
  `
@@ -1181,7 +1190,7 @@ let gt = class extends G {
1181
1190
  <input type='radio' id=${e.inputValue} class='genus-radiobtn' @change=${() => {
1182
1191
  this.dispatchEvent(new CustomEvent("checked", { detail: e.inputValue })), this._internals.setFormValue(e.inputValue);
1183
1192
  }} value=${e.inputValue} name=${this.groupName} />
1184
- <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${e.inputValue}>
1193
+ <label class='label genus-radiobtn-label' for=${e.inputValue}>
1185
1194
  <span class="label-text">${e.labelText}</span>
1186
1195
  <img class="component-icon radiobtn-icon unchecked-icon" src='${Zs}' />
1187
1196
  <img class="component-icon radiobtn-icon checked-icon" src='${Us}' />
package/dist/index.umd.js CHANGED
@@ -742,9 +742,10 @@
742
742
 
743
743
  .genus-radiobtn-label:hover { cursor: pointer; }
744
744
 
745
+ .genus-radiobtn-label--with-icon { display: block; }
746
+
745
747
  .input-label
746
748
  {
747
- color: (--label-font-color, #213e70);
748
749
  justify-self: start;
749
750
  grid-area: il;
750
751
  }
@@ -781,6 +782,7 @@
781
782
  {
782
783
  font-family: var(--input-label-font-family, 'Sofia Pro');
783
784
  font-size: var(--input-label-font-size, 1rem);
785
+ color: var(--input-label-font-color, #213e70);
784
786
  }
785
787
  `,$a=b.css`
786
788
  .form-field
@@ -803,33 +805,40 @@
803
805
  grid-area: rg;
804
806
  }
805
807
 
806
- .genus-radiobtn-label--with-icon
808
+ .genus-radiobtn-label
807
809
  {
808
810
  display: flex;
809
811
  align-items: center;
810
812
  -moz-column-gap: 0.6rem;
811
813
  column-gap: 0.6rem;
812
814
  }
815
+
816
+ .genus-radiobtn-label--with-icon
817
+ {
818
+ align-items: unset;
819
+ -moz-column-gap: unset;
820
+ column-gap: unset;
821
+ }
813
822
  `,Rn="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='7'%20fill='%23FDFDFD'%20stroke='%23B9BDBA'/%3e%3c/svg%3e",En="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20class='radio-icon-svg%20checked-svg'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e%20.radio-icon-svg%20circle%20{%20fill:%20%23fdc54a;%20}%20.checked-svg%20path%20{%20stroke:%20%233c499e;%20}%20%3c/style%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='7.5'/%3e%3cpath%20d='M5%208.005L6.892%209.898L10.79%206'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";var er=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,Pt=(i,t,e,n)=>{for(var s=n>1?void 0:n?ir(t,e):t,o=i.length-1,a;o>=0;o--)(a=i[o])&&(s=(n?a(t,e,s):a(s))||s);return n&&s&&er(t,e,s),s};v.GenusRadioBtnGroup=class extends b.LitElement{constructor(){super(),this.groupName="",this.labelText="",this.inputName="",this.selectedOption="",this.options=[],this.withoutLabel=!1,this.withoutIcon=!1,this._internals=this.attachInternals()}render(){let t=[],e=this.options;for(let n of e)n.inputValue===this.selectedOption?this.withoutIcon?t.push(b.html`
814
823
  <input type='radio' id=${n.inputValue} class='genus-radiobtn' @change=${()=>{this.dispatchEvent(new CustomEvent("checked",{detail:n.inputValue})),this._internals.setFormValue(n.inputValue)}} value=${n.inputValue} name=${this.groupName} checked />
815
- <label class='label genus-radiobtn-label' for=${n.inputValue}>
824
+ <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${n.inputValue}>
816
825
  <span class="label-text">${n.labelText}</span>
817
826
  </label>
818
827
  `):t.push(b.html`
819
828
  <input type='radio' id=${n.inputValue} class='genus-radiobtn' @change=${()=>{this.dispatchEvent(new CustomEvent("checked",{detail:n.inputValue})),this._internals.setFormValue(n.inputValue)}} value=${n.inputValue} name=${this.groupName} checked />
820
- <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${n.inputValue}>
829
+ <label class='label genus-radiobtn-label' for=${n.inputValue}>
821
830
  <span class="label-text">${n.labelText}</span>
822
831
  <img class="component-icon radiobtn-icon unchecked-icon" src='${Rn}' />
823
832
  <img class="component-icon radiobtn-icon checked-icon" src='${En}' />
824
833
  </label>
825
834
  `):this.withoutIcon?t.push(b.html`
826
835
  <input type='radio' id=${n.inputValue} class='genus-radiobtn' @change=${()=>{this.dispatchEvent(new CustomEvent("checked",{detail:n.inputValue})),this._internals.setFormValue(n.inputValue)}} value=${n.inputValue} name=${this.groupName} />
827
- <label class='label genus-radiobtn-label' for=${n.inputValue}>
836
+ <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${n.inputValue}>
828
837
  <span class="label-text">${n.labelText}</span>
829
838
  </label>
830
839
  `):t.push(b.html`
831
840
  <input type='radio' id=${n.inputValue} class='genus-radiobtn' @change=${()=>{this.dispatchEvent(new CustomEvent("checked",{detail:n.inputValue})),this._internals.setFormValue(n.inputValue)}} value=${n.inputValue} name=${this.groupName} />
832
- <label class='label genus-radiobtn-label genus-radiobtn-label--with-icon' for=${n.inputValue}>
841
+ <label class='label genus-radiobtn-label' for=${n.inputValue}>
833
842
  <span class="label-text">${n.labelText}</span>
834
843
  <img class="component-icon radiobtn-icon unchecked-icon" src='${Rn}' />
835
844
  <img class="component-icon radiobtn-icon checked-icon" src='${En}' />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "1.64.4",
4
+ "version": "1.65.7",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",