genus-ui 1.65.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 +13 -4
- package/dist/index.umd.js +13 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1066,6 +1066,8 @@ 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
1073
|
justify-self: start;
|
|
@@ -1104,7 +1106,7 @@ const Yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1104
1106
|
{
|
|
1105
1107
|
font-family: var(--input-label-font-family, 'Sofia Pro');
|
|
1106
1108
|
font-size: var(--input-label-font-size, 1rem);
|
|
1107
|
-
color: (--input-label-font-color, #213e70);
|
|
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
|
|
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
|
|
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}' />
|
package/dist/index.umd.js
CHANGED
|
@@ -742,6 +742,8 @@
|
|
|
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
749
|
justify-self: start;
|
|
@@ -780,7 +782,7 @@
|
|
|
780
782
|
{
|
|
781
783
|
font-family: var(--input-label-font-family, 'Sofia Pro');
|
|
782
784
|
font-size: var(--input-label-font-size, 1rem);
|
|
783
|
-
color: (--input-label-font-color, #213e70);
|
|
785
|
+
color: var(--input-label-font-color, #213e70);
|
|
784
786
|
}
|
|
785
787
|
`,$a=b.css`
|
|
786
788
|
.form-field
|
|
@@ -803,21 +805,28 @@
|
|
|
803
805
|
grid-area: rg;
|
|
804
806
|
}
|
|
805
807
|
|
|
806
|
-
.genus-radiobtn-label
|
|
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
|
|
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}' />
|