@randstad-uca/design-system 1.0.56 → 1.0.57
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.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -925,11 +925,18 @@ function z(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
925
925
|
border: 2px solid var(--primary-color)
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
.form.disabled .form-input,
|
|
929
|
-
|
|
928
|
+
.form.disabled .form-input,
|
|
929
|
+
.form.disabled .toggle-password randstad-icon,
|
|
930
|
+
.form.disabled .clean-button randstad-icon {
|
|
931
|
+
background-color: var( --secondary-color-10 );
|
|
930
932
|
color: #9FA3B3;
|
|
931
933
|
cursor: default;
|
|
932
934
|
}
|
|
935
|
+
|
|
936
|
+
.form.disabled .toggle-password,
|
|
937
|
+
.form.disabled .clean-button {
|
|
938
|
+
cursor: default;
|
|
939
|
+
}
|
|
933
940
|
|
|
934
941
|
.input-with-button {
|
|
935
942
|
display: flex;
|
|
@@ -1019,6 +1026,7 @@ function z(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1019
1026
|
.clean-button randstad-icon {
|
|
1020
1027
|
width: 24px;
|
|
1021
1028
|
height: 24px;
|
|
1029
|
+
color: var( --primary-color );
|
|
1022
1030
|
}
|
|
1023
1031
|
`}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){this.handleInputCustom(t);const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleInputCustom(t){"number"===this.keydown?this.onlyNumeric(t):"text"===this.keydown&&this.onlyText(t)}onlyNumeric(t){const e=t.target,i=e.value.replace(/[^0-9]/g,"");e.value=i}onlyText(t){const e=t.target,i=e.value.replace(/[^a-zA-Z\sáéíóúñÁÉÍÓÚÑ]/g,"");e.value=i}handleKeyDown(t){if("Enter"!==t.key)return;const e=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),i=this.closest("form");i&&i.dispatchEvent(e)}render(){const t=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type,o="textarea"===this.type?`height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto;`:"",r=e`
|
|
1024
1032
|
${this.labelColor?`--label-color: ${this.labelColor};`:""}
|
|
@@ -1087,8 +1095,7 @@ function z(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1087
1095
|
>
|
|
1088
1096
|
<randstad-icon
|
|
1089
1097
|
name="close"
|
|
1090
|
-
size="24px"
|
|
1091
|
-
style="--icon-color: var(--primary-color);"
|
|
1098
|
+
size="24px"
|
|
1092
1099
|
>
|
|
1093
1100
|
</randstad-icon>
|
|
1094
1101
|
</button>`:i}
|