ywana-core8 0.1.94 → 0.1.96
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.css +38 -21
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield2.css +38 -21
- package/src/widgets/login/LoginBox.example.js +195 -0
package/dist/index.css
CHANGED
@@ -6762,19 +6762,27 @@ body.datatable2-resizing {
|
|
6762
6762
|
.textfield2-clear,
|
6763
6763
|
.textfield2-password-toggle {
|
6764
6764
|
position: absolute;
|
6765
|
-
|
6765
|
+
/* Centrado respecto al input, no al contenedor completo */
|
6766
|
+
top: calc(1.5rem + 1.25rem); /* padding-top del contenedor + mitad de la altura del input */
|
6766
6767
|
transform: translateY(-50%);
|
6767
6768
|
right: 0.75rem; /* Más espacio desde el borde */
|
6768
6769
|
color: var(--text-color-light, #666);
|
6769
6770
|
cursor: pointer;
|
6770
6771
|
transition: color 0.2s ease;
|
6771
6772
|
z-index: 2;
|
6773
|
+
/* Asegurar que el icono tenga el tamaño correcto */
|
6774
|
+
width: 1.5rem;
|
6775
|
+
height: 1.5rem;
|
6776
|
+
display: flex;
|
6777
|
+
align-items: center;
|
6778
|
+
justify-content: center;
|
6772
6779
|
}
|
6773
6780
|
|
6774
6781
|
/* Icons positioning for outlined variant */
|
6775
6782
|
.textfield2-outlined .textfield2-clear,
|
6776
6783
|
.textfield2-outlined .textfield2-password-toggle {
|
6777
|
-
|
6784
|
+
/* Para outlined, centramos respecto al input que tiene padding de 1rem */
|
6785
|
+
top: 3.3rem;
|
6778
6786
|
}
|
6779
6787
|
|
6780
6788
|
.textfield2-clear:hover,
|
@@ -6782,24 +6790,11 @@ body.datatable2-resizing {
|
|
6782
6790
|
color: var(--text-color, #333);
|
6783
6791
|
}
|
6784
6792
|
|
6785
|
-
/* For fields without labels,
|
6793
|
+
/* For fields without labels, ajustar posición */
|
6786
6794
|
.textfield2.no-label .textfield2-clear,
|
6787
6795
|
.textfield2.no-label .textfield2-password-toggle {
|
6788
|
-
/*
|
6789
|
-
|
6790
|
-
|
6791
|
-
.textfield2-password-toggle {
|
6792
|
-
right: 2.5rem; /* Más espacio para el clear button */
|
6793
|
-
}
|
6794
|
-
|
6795
|
-
/* When both clear and password toggle are present */
|
6796
|
-
.textfield2.textfield2-password .textfield2-clear {
|
6797
|
-
right: 2.5rem;
|
6798
|
-
}
|
6799
|
-
|
6800
|
-
/* Outlined variant - icon spacing */
|
6801
|
-
.textfield2-outlined .textfield2-password-toggle {
|
6802
|
-
right: 2.5rem;
|
6796
|
+
/* Para campos sin label, centramos respecto al input directamente */
|
6797
|
+
top: calc(0.5rem + 1.25rem); /* padding-top reducido + mitad altura input */
|
6803
6798
|
}
|
6804
6799
|
|
6805
6800
|
.textfield2-outlined.textfield2-password .textfield2-clear {
|
@@ -7041,21 +7036,43 @@ body.datatable2-resizing {
|
|
7041
7036
|
.textfield2 {
|
7042
7037
|
padding-top: 1.25rem;
|
7043
7038
|
}
|
7044
|
-
|
7039
|
+
|
7045
7040
|
.textfield2 > input,
|
7046
7041
|
.textfield2 > textarea {
|
7047
7042
|
font-size: 0.9rem;
|
7048
7043
|
padding: 8px 8px 8px 0.4rem;
|
7049
7044
|
}
|
7050
|
-
|
7045
|
+
|
7051
7046
|
.textfield2 > label {
|
7052
7047
|
font-size: 0.8rem;
|
7053
7048
|
left: 0.3rem;
|
7054
7049
|
}
|
7055
|
-
|
7050
|
+
|
7056
7051
|
.textfield2-helper {
|
7057
7052
|
font-size: 0.7rem;
|
7058
7053
|
}
|
7054
|
+
|
7055
|
+
/* Ajustar posición de iconos en móvil */
|
7056
|
+
.textfield2-clear,
|
7057
|
+
.textfield2-password-toggle {
|
7058
|
+
top: calc(1.25rem + 1.2rem); /* padding-top móvil + mitad altura input móvil */
|
7059
|
+
right: 0.5rem;
|
7060
|
+
width: 1.3rem;
|
7061
|
+
height: 1.3rem;
|
7062
|
+
}
|
7063
|
+
|
7064
|
+
.textfield2.no-label .textfield2-clear,
|
7065
|
+
.textfield2.no-label .textfield2-password-toggle {
|
7066
|
+
top: calc(0.5rem + 1.2rem); /* padding-top reducido + mitad altura input móvil */
|
7067
|
+
}
|
7068
|
+
|
7069
|
+
.textfield2-password-toggle {
|
7070
|
+
right: 2.2rem;
|
7071
|
+
}
|
7072
|
+
|
7073
|
+
.textfield2.textfield2-password .textfield2-clear {
|
7074
|
+
right: 2.2rem;
|
7075
|
+
}
|
7059
7076
|
}
|
7060
7077
|
|
7061
7078
|
/* High contrast mode support */
|