ywana-core8 0.2.58 → 0.2.59

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 CHANGED
@@ -7446,40 +7446,25 @@ input:checked~.checkmark:after {
7446
7446
  min-width: max-content;
7447
7447
  }
7448
7448
 
7449
- /* Active label states */
7450
- .textfield2 > input:focus ~ label,
7451
- .textfield2 > input[value]:not([value=""]) ~ label,
7452
- .textfield2 > textarea:focus ~ label,
7453
- .textfield2 > textarea[value]:not([value=""]) ~ label,
7454
- .textfield2.focused > label,
7455
- .textfield2.has-placeholder > label {
7449
+ /* Active label states - only for non-outlined variant */
7450
+ .textfield2:not(.textfield2-outlined) > input:focus ~ label,
7451
+ .textfield2:not(.textfield2-outlined) > input[value]:not([value=""]) ~ label,
7452
+ .textfield2:not(.textfield2-outlined) > textarea:focus ~ label,
7453
+ .textfield2:not(.textfield2-outlined) > textarea[value]:not([value=""]) ~ label,
7454
+ .textfield2:not(.textfield2-outlined).focused > label,
7455
+ .textfield2:not(.textfield2-outlined).has-placeholder > label {
7456
7456
  top: 0.3rem;
7457
7457
  font-size: 0.8rem;
7458
7458
  color: var(--primary-color, #2196f3);
7459
7459
  transform: scale(0.9);
7460
7460
  }
7461
7461
 
7462
- /* Outlined variant - label positioning when active */
7463
- .textfield2-outlined > input:focus ~ label,
7464
- .textfield2-outlined > input[value]:not([value=""]) ~ label,
7465
- .textfield2-outlined > textarea:focus ~ label,
7466
- .textfield2-outlined > textarea[value]:not([value=""]) ~ label,
7467
- .textfield2-outlined.focused > label,
7468
- .textfield2-outlined.has-placeholder > label {
7469
- top: -0.5rem; /* Flotando sobre el borde */
7470
- left: 0.75rem;
7471
- font-size: 0.875rem; /* Tamaño más legible */
7472
- color: var(--primary-color, #2196f3);
7473
- transform: none; /* Sin escala adicional */
7474
- }
7462
+ /* Outlined variant - label always on top (like DropDown) */
7463
+ /* No animation, no position change - label is always visible above the input */
7475
7464
 
7476
7465
  /* Error state for outlined labels */
7477
- .textfield2-outlined.error > input:focus ~ label,
7478
- .textfield2-outlined.error > textarea:focus ~ label,
7479
- .textfield2-outlined.invalid > input:focus ~ label,
7480
- .textfield2-outlined.invalid > textarea:focus ~ label,
7481
- .textfield2-outlined.error.focused > label,
7482
- .textfield2-outlined.invalid.focused > label {
7466
+ .textfield2-outlined.error > label,
7467
+ .textfield2-outlined.invalid > label {
7483
7468
  color: var(--error-color, #f44336);
7484
7469
  }
7485
7470
 
@@ -7574,17 +7559,30 @@ input:checked~.checkmark:after {
7574
7559
  flex-shrink: 0;
7575
7560
  }
7576
7561
 
7577
- /* Outlined variant - Container structure */
7562
+ /* Outlined variant - Same styles as DropDown */
7578
7563
  .textfield2-outlined {
7579
7564
  position: relative;
7565
+ padding-top: 0; /* No extra padding, like DropDown */
7566
+ display: flex;
7567
+ flex-direction: column;
7580
7568
  }
7581
7569
 
7582
- /* Outlined input container - same dimensions as normal, just with border all around */
7570
+ /* Outlined input - same dimensions as dropdown2-control */
7583
7571
  .textfield2-outlined > input,
7584
7572
  .textfield2-outlined > textarea {
7573
+ min-height: 2.5rem;
7574
+ height: 2.5rem;
7575
+ padding: 0.5rem;
7585
7576
  border: 1px solid var(--divider-color, #e0e0e0);
7586
7577
  border-radius: 4px;
7578
+ background-color: var(--paper-color, #fff);
7587
7579
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
7580
+ box-sizing: border-box;
7581
+ }
7582
+
7583
+ .textfield2-outlined > textarea {
7584
+ height: auto;
7585
+ min-height: 4rem;
7588
7586
  }
7589
7587
 
7590
7588
  /* Focus states for outlined inputs */
@@ -7592,6 +7590,7 @@ input:checked~.checkmark:after {
7592
7590
  .textfield2-outlined > textarea:focus,
7593
7591
  .textfield2-outlined.focused > input,
7594
7592
  .textfield2-outlined.focused > textarea {
7593
+ outline: none;
7595
7594
  border-color: var(--primary-color, #2196f3);
7596
7595
  box-shadow: 0 0 0 1px var(--primary-color, #2196f3);
7597
7596
  }
@@ -7611,18 +7610,18 @@ input:checked~.checkmark:after {
7611
7610
  box-shadow: 0 0 0 1px var(--error-color, #f44336);
7612
7611
  }
7613
7612
 
7614
- /* Outlined label positioning */
7613
+ /* Outlined label - EXACTLY like dropdown2-label */
7615
7614
  .textfield2-outlined > label {
7616
7615
  position: absolute;
7616
+ top: -0.5rem;
7617
7617
  left: 0.75rem;
7618
- top: 1rem; /* Centrado en el input */
7619
7618
  background-color: var(--paper-color, #fff);
7620
7619
  padding: 0 0.25rem;
7621
- font-size: 1rem;
7622
- color: var(--text-color-light, #666);
7623
- transition: all 0.2s ease;
7620
+ font-size: 0.8rem;
7621
+ color: var(--primary-color, #2196f3);
7624
7622
  pointer-events: none;
7625
7623
  z-index: 1;
7624
+ /* No transition, no animation - static like DropDown */
7626
7625
  }
7627
7626
 
7628
7627
  /* Hide the focus bar for outlined variant */
@@ -7630,6 +7629,13 @@ input:checked~.checkmark:after {
7630
7629
  display: none;
7631
7630
  }
7632
7631
 
7632
+ /* Outlined clear button positioning */
7633
+ .textfield2-outlined .textfield2-clear,
7634
+ .textfield2-outlined .textfield2-password-toggle {
7635
+ top: 50%;
7636
+ transform: translateY(-50%);
7637
+ }
7638
+
7633
7639
  /* Responsive adjustments */
7634
7640
  @media (max-width: 768px) {
7635
7641
  .textfield2 {
@@ -7766,7 +7772,7 @@ input:checked~.checkmark:after {
7766
7772
  display: flex;
7767
7773
  align-items: center;
7768
7774
  min-height: 2.5rem;
7769
- padding: 0.5rem;
7775
+ padding: 0 0.5rem;
7770
7776
  border: 1px solid var(--divider-color, #e0e0e0);
7771
7777
  border-radius: 4px;
7772
7778
  background-color: var(--paper-color, #fff);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.2.58",
3
+ "version": "0.2.59",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -157,40 +157,25 @@
157
157
  min-width: max-content;
158
158
  }
159
159
 
160
- /* Active label states */
161
- .textfield2 > input:focus ~ label,
162
- .textfield2 > input[value]:not([value=""]) ~ label,
163
- .textfield2 > textarea:focus ~ label,
164
- .textfield2 > textarea[value]:not([value=""]) ~ label,
165
- .textfield2.focused > label,
166
- .textfield2.has-placeholder > label {
160
+ /* Active label states - only for non-outlined variant */
161
+ .textfield2:not(.textfield2-outlined) > input:focus ~ label,
162
+ .textfield2:not(.textfield2-outlined) > input[value]:not([value=""]) ~ label,
163
+ .textfield2:not(.textfield2-outlined) > textarea:focus ~ label,
164
+ .textfield2:not(.textfield2-outlined) > textarea[value]:not([value=""]) ~ label,
165
+ .textfield2:not(.textfield2-outlined).focused > label,
166
+ .textfield2:not(.textfield2-outlined).has-placeholder > label {
167
167
  top: 0.3rem;
168
168
  font-size: 0.8rem;
169
169
  color: var(--primary-color, #2196f3);
170
170
  transform: scale(0.9);
171
171
  }
172
172
 
173
- /* Outlined variant - label positioning when active */
174
- .textfield2-outlined > input:focus ~ label,
175
- .textfield2-outlined > input[value]:not([value=""]) ~ label,
176
- .textfield2-outlined > textarea:focus ~ label,
177
- .textfield2-outlined > textarea[value]:not([value=""]) ~ label,
178
- .textfield2-outlined.focused > label,
179
- .textfield2-outlined.has-placeholder > label {
180
- top: -0.5rem; /* Flotando sobre el borde */
181
- left: 0.75rem;
182
- font-size: 0.875rem; /* Tamaño más legible */
183
- color: var(--primary-color, #2196f3);
184
- transform: none; /* Sin escala adicional */
185
- }
173
+ /* Outlined variant - label always on top (like DropDown) */
174
+ /* No animation, no position change - label is always visible above the input */
186
175
 
187
176
  /* Error state for outlined labels */
188
- .textfield2-outlined.error > input:focus ~ label,
189
- .textfield2-outlined.error > textarea:focus ~ label,
190
- .textfield2-outlined.invalid > input:focus ~ label,
191
- .textfield2-outlined.invalid > textarea:focus ~ label,
192
- .textfield2-outlined.error.focused > label,
193
- .textfield2-outlined.invalid.focused > label {
177
+ .textfield2-outlined.error > label,
178
+ .textfield2-outlined.invalid > label {
194
179
  color: var(--error-color, #f44336);
195
180
  }
196
181
 
@@ -285,17 +270,30 @@
285
270
  flex-shrink: 0;
286
271
  }
287
272
 
288
- /* Outlined variant - Container structure */
273
+ /* Outlined variant - Same styles as DropDown */
289
274
  .textfield2-outlined {
290
275
  position: relative;
276
+ padding-top: 0; /* No extra padding, like DropDown */
277
+ display: flex;
278
+ flex-direction: column;
291
279
  }
292
280
 
293
- /* Outlined input container - same dimensions as normal, just with border all around */
281
+ /* Outlined input - same dimensions as dropdown2-control */
294
282
  .textfield2-outlined > input,
295
283
  .textfield2-outlined > textarea {
284
+ min-height: 2.5rem;
285
+ height: 2.5rem;
286
+ padding: 0.5rem;
296
287
  border: 1px solid var(--divider-color, #e0e0e0);
297
288
  border-radius: 4px;
289
+ background-color: var(--paper-color, #fff);
298
290
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
291
+ box-sizing: border-box;
292
+ }
293
+
294
+ .textfield2-outlined > textarea {
295
+ height: auto;
296
+ min-height: 4rem;
299
297
  }
300
298
 
301
299
  /* Focus states for outlined inputs */
@@ -303,6 +301,7 @@
303
301
  .textfield2-outlined > textarea:focus,
304
302
  .textfield2-outlined.focused > input,
305
303
  .textfield2-outlined.focused > textarea {
304
+ outline: none;
306
305
  border-color: var(--primary-color, #2196f3);
307
306
  box-shadow: 0 0 0 1px var(--primary-color, #2196f3);
308
307
  }
@@ -322,18 +321,18 @@
322
321
  box-shadow: 0 0 0 1px var(--error-color, #f44336);
323
322
  }
324
323
 
325
- /* Outlined label positioning */
324
+ /* Outlined label - EXACTLY like dropdown2-label */
326
325
  .textfield2-outlined > label {
327
326
  position: absolute;
327
+ top: -0.5rem;
328
328
  left: 0.75rem;
329
- top: 1rem; /* Centrado en el input */
330
329
  background-color: var(--paper-color, #fff);
331
330
  padding: 0 0.25rem;
332
- font-size: 1rem;
333
- color: var(--text-color-light, #666);
334
- transition: all 0.2s ease;
331
+ font-size: 0.8rem;
332
+ color: var(--primary-color, #2196f3);
335
333
  pointer-events: none;
336
334
  z-index: 1;
335
+ /* No transition, no animation - static like DropDown */
337
336
  }
338
337
 
339
338
  /* Hide the focus bar for outlined variant */
@@ -341,6 +340,13 @@
341
340
  display: none;
342
341
  }
343
342
 
343
+ /* Outlined clear button positioning */
344
+ .textfield2-outlined .textfield2-clear,
345
+ .textfield2-outlined .textfield2-password-toggle {
346
+ top: 50%;
347
+ transform: translateY(-50%);
348
+ }
349
+
344
350
  /* Responsive adjustments */
345
351
  @media (max-width: 768px) {
346
352
  .textfield2 {
@@ -477,7 +483,7 @@
477
483
  display: flex;
478
484
  align-items: center;
479
485
  min-height: 2.5rem;
480
- padding: 0.5rem;
486
+ padding: 0 0.5rem;
481
487
  border: 1px solid var(--divider-color, #e0e0e0);
482
488
  border-radius: 4px;
483
489
  background-color: var(--paper-color, #fff);