ywana-core8 0.1.81 → 0.1.83

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
@@ -3068,7 +3068,6 @@ textarea:read-only ~ label,
3068
3068
  }
3069
3069
 
3070
3070
  .list>header {
3071
- padding: .5rem 0 0 1.5rem;
3072
3071
  color: var(--text-color-light);
3073
3072
  text-transform: capitalize;
3074
3073
  font-size: .8rem;
@@ -3078,10 +3077,10 @@ textarea:read-only ~ label,
3078
3077
  overflow: auto;
3079
3078
  list-style: none;
3080
3079
  margin: 0;
3081
- padding: 0.5rem 0;
3082
3080
  cursor: pointer;
3083
3081
  display: flex;
3084
3082
  flex-direction: column;
3083
+ padding: 0;
3085
3084
  }
3086
3085
 
3087
3086
  .list.grouped>ul {
@@ -3158,17 +3157,25 @@ textarea:read-only ~ label,
3158
3157
  /* Search functionality */
3159
3158
  .list__search {
3160
3159
  padding: 1rem;
3161
- border-bottom: 1px solid var(--divider-color, #e0e0e0);
3162
3160
  background-color: var(--background-color-light, #fafafa);
3163
3161
  }
3164
3162
 
3163
+ /* Outlined variant - search with border */
3164
+ .list--outlined .list__search {
3165
+ border-bottom: 1px solid var(--divider-color, #e0e0e0);
3166
+ }
3167
+
3165
3168
  /* Sort functionality */
3166
3169
  .list__sort {
3167
3170
  padding: 0.5rem 1rem;
3168
- border-bottom: 1px solid var(--divider-color, #e0e0e0);
3169
3171
  background-color: var(--background-color-light, #fafafa);
3170
3172
  }
3171
3173
 
3174
+ /* Outlined variant - sort with border */
3175
+ .list--outlined .list__sort {
3176
+ border-bottom: 1px solid var(--divider-color, #e0e0e0);
3177
+ }
3178
+
3172
3179
  .list__sort-button {
3173
3180
  display: flex;
3174
3181
  align-items: center;
@@ -3221,25 +3228,28 @@ textarea:read-only ~ label,
3221
3228
  align-items: center;
3222
3229
  padding: 0.75rem;
3223
3230
  cursor: pointer;
3224
- border-bottom: solid 1px var(--divider-color, #e0e0e0);
3225
3231
  transition: background-color 0.2s ease, transform 0.1s ease;
3226
3232
  outline: none;
3227
3233
  position: relative;
3228
3234
  }
3229
3235
 
3236
+ /* Outlined variant - items with borders */
3237
+ .list--outlined .list__item {
3238
+ border-bottom: solid 1px var(--divider-color, #e0e0e0);
3239
+ }
3240
+
3230
3241
  .list--dense .list__item {
3231
3242
  padding: 0.5rem 0.75rem;
3232
3243
  }
3233
3244
 
3234
3245
  .list__item:focus {
3235
3246
  background-color: var(--focus-color, rgba(0, 0, 0, 0.08));
3236
- outline: 2px solid var(--primary-color, #2196f3);
3237
3247
  outline-offset: -2px;
3238
3248
  }
3239
3249
 
3240
3250
  .list__item--selected {
3241
3251
  background-color: var(--primary-color-lighter, #e3f2fd);
3242
- border-left: 4px solid var(--primary-color, #2196f3);
3252
+ border-left: .1rem solid var(--primary-color, #2196f3);
3243
3253
  }
3244
3254
 
3245
3255
  .list__item--disabled {
@@ -3372,7 +3382,6 @@ textarea:read-only ~ label,
3372
3382
  align-items: center;
3373
3383
  padding: 0.5rem 0.75rem;
3374
3384
  background-color: var(--background-color-light, #fafafa);
3375
- border-bottom: solid 1px var(--divider-color, #e0e0e0);
3376
3385
  font-weight: 600;
3377
3386
  color: var(--text-color-light, #666);
3378
3387
  cursor: pointer;
@@ -3380,6 +3389,11 @@ textarea:read-only ~ label,
3380
3389
  outline: none;
3381
3390
  }
3382
3391
 
3392
+ /* Outlined variant - group headers with border */
3393
+ .list--outlined .list__group-header {
3394
+ border-bottom: solid 1px var(--divider-color, #e0e0e0);
3395
+ }
3396
+
3383
3397
  .list__group-header:hover {
3384
3398
  background-color: var(--hover-color, rgba(0, 0, 0, 0.04));
3385
3399
  }
@@ -3471,7 +3485,7 @@ textarea:read-only ~ label,
3471
3485
 
3472
3486
  /* High Contrast Mode */
3473
3487
  @media (prefers-contrast: high) {
3474
- .list__item {
3488
+ .list--outlined .list__item {
3475
3489
  border-bottom-width: 2px;
3476
3490
  }
3477
3491
 
@@ -3516,10 +3530,13 @@ textarea:read-only ~ label,
3516
3530
  .list__item {
3517
3531
  -moz-column-break-inside: avoid;
3518
3532
  break-inside: avoid;
3519
- border-bottom: 1px solid black !important;
3520
3533
  background: white !important;
3521
3534
  }
3522
3535
 
3536
+ .list--outlined .list__item {
3537
+ border-bottom: 1px solid black !important;
3538
+ }
3539
+
3523
3540
  .list__item-line1,
3524
3541
  .list__item-line2,
3525
3542
  .list__item-meta {
@@ -6204,22 +6221,22 @@ body.datatable2-resizing {
6204
6221
  }
6205
6222
 
6206
6223
  .datatable2__filter-cell {
6207
- padding: 8px 12px;
6224
+ padding: .5rem;
6208
6225
  }
6209
6226
 
6210
6227
  .datatable2__filter-field {
6211
6228
  width: 100% !important;
6212
6229
  height: 32px !important;
6213
- border: 1px solid var(--divider-color, #e0e0e0) !important;
6214
6230
  border-radius: 4px !important;
6215
- padding: 4px 8px !important;
6216
6231
  font-size: 0.75rem !important;
6217
6232
  background: white !important;
6233
+ padding-top: 0px !important;
6234
+ }
6235
+
6236
+ .datatable2__filter-field>input {
6218
6237
  }
6219
6238
 
6220
6239
  .datatable2__filter-field:focus {
6221
- border-color: var(--primary-color, #2196f3) !important;
6222
- box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2) !important;
6223
6240
  }
6224
6241
 
6225
6242
  .datatable2__filter-actions-cell {
@@ -6532,11 +6549,19 @@ body.datatable2-resizing {
6532
6549
  .textfield2-clear,
6533
6550
  .textfield2-password-toggle {
6534
6551
  position: absolute;
6535
- top: 1.5rem;
6536
- right: 0.2rem;
6552
+ top: 50%;
6553
+ transform: translateY(-50%);
6554
+ right: 0.75rem; /* Más espacio desde el borde */
6537
6555
  color: var(--text-color-light, #666);
6538
6556
  cursor: pointer;
6539
6557
  transition: color 0.2s ease;
6558
+ z-index: 2;
6559
+ }
6560
+
6561
+ /* Icons positioning for outlined variant */
6562
+ .textfield2-outlined .textfield2-clear,
6563
+ .textfield2-outlined .textfield2-password-toggle {
6564
+ right: 0.75rem; /* Alineado con el padding del input */
6540
6565
  }
6541
6566
 
6542
6567
  .textfield2-clear:hover,
@@ -6544,13 +6569,28 @@ body.datatable2-resizing {
6544
6569
  color: var(--text-color, #333);
6545
6570
  }
6546
6571
 
6572
+ /* For fields without labels, the centering still works with transform */
6547
6573
  .textfield2.no-label .textfield2-clear,
6548
6574
  .textfield2.no-label .textfield2-password-toggle {
6549
- top: 0.5rem;
6575
+ /* Remove top override - let transform handle centering */
6550
6576
  }
6551
6577
 
6552
6578
  .textfield2-password-toggle {
6553
- right: 2.2rem;
6579
+ right: 2.5rem; /* Más espacio para el clear button */
6580
+ }
6581
+
6582
+ /* When both clear and password toggle are present */
6583
+ .textfield2.textfield2-password .textfield2-clear {
6584
+ right: 2.5rem;
6585
+ }
6586
+
6587
+ /* Outlined variant - icon spacing */
6588
+ .textfield2-outlined .textfield2-password-toggle {
6589
+ right: 2.5rem;
6590
+ }
6591
+
6592
+ .textfield2-outlined.textfield2-password .textfield2-clear {
6593
+ right: 2.5rem;
6554
6594
  }
6555
6595
 
6556
6596
  .textfield2.textfield2-date .textfield2-clear,
@@ -6597,6 +6637,32 @@ body.datatable2-resizing {
6597
6637
  transform: scale(0.9);
6598
6638
  }
6599
6639
 
6640
+ /* Outlined variant - label positioning when active */
6641
+ .textfield2-outlined > input:focus ~ label,
6642
+ .textfield2-outlined > input:valid ~ label,
6643
+ .textfield2-outlined > input[value]:not([value=""]) ~ label,
6644
+ .textfield2-outlined > textarea:focus ~ label,
6645
+ .textfield2-outlined > textarea:valid ~ label,
6646
+ .textfield2-outlined > textarea[value]:not([value=""]) ~ label,
6647
+ .textfield2-outlined.focused > label,
6648
+ .textfield2-outlined.has-placeholder > label {
6649
+ top: -0.5rem; /* Flotando sobre el borde */
6650
+ left: 0.75rem;
6651
+ font-size: 0.875rem; /* Tamaño más legible */
6652
+ color: var(--primary-color, #2196f3);
6653
+ transform: none; /* Sin escala adicional */
6654
+ }
6655
+
6656
+ /* Error state for outlined labels */
6657
+ .textfield2-outlined.error > input:focus ~ label,
6658
+ .textfield2-outlined.error > textarea:focus ~ label,
6659
+ .textfield2-outlined.invalid > input:focus ~ label,
6660
+ .textfield2-outlined.invalid > textarea:focus ~ label,
6661
+ .textfield2-outlined.error.focused > label,
6662
+ .textfield2-outlined.invalid.focused > label {
6663
+ color: var(--error-color, #f44336);
6664
+ }
6665
+
6600
6666
  .textfield2.error > input:focus ~ label,
6601
6667
  .textfield2.error > textarea:focus ~ label,
6602
6668
  .textfield2.invalid > input:focus ~ label,
@@ -6664,12 +6730,18 @@ body.datatable2-resizing {
6664
6730
  display: flex;
6665
6731
  align-items: center;
6666
6732
  gap: 0.25rem;
6667
- margin-top: 0.25rem;
6733
+ margin-top: 0.5rem; /* Más espacio desde el input */
6668
6734
  font-size: 0.75rem;
6669
6735
  line-height: 1.2;
6670
6736
  min-height: 1rem;
6671
6737
  }
6672
6738
 
6739
+ /* Helper text for outlined variant */
6740
+ .textfield2-outlined .textfield2-helper {
6741
+ margin-top: 0.5rem;
6742
+ margin-left: 0.75rem; /* Alineado con el input */
6743
+ }
6744
+
6673
6745
  .textfield2-helper.helper {
6674
6746
  color: var(--text-color-light, #666);
6675
6747
  }
@@ -6682,39 +6754,71 @@ body.datatable2-resizing {
6682
6754
  flex-shrink: 0;
6683
6755
  }
6684
6756
 
6685
- /* Outlined variant */
6757
+ /* Outlined variant - Container structure */
6686
6758
  .textfield2-outlined {
6687
- border: 1px solid var(--divider-color, #e0e0e0);
6688
- border-radius: 4px;
6689
- padding: 0.5rem;
6690
- background-color: var(--paper-color, #fff);
6759
+ position: relative;
6760
+ margin-bottom: 1.5rem; /* Espacio para helper text */
6691
6761
  }
6692
6762
 
6763
+ /* Outlined input container - solo el input tiene borde */
6693
6764
  .textfield2-outlined > input,
6694
6765
  .textfield2-outlined > textarea {
6695
- border: none;
6696
- padding: 0.5rem;
6766
+ width: 100%;
6767
+ border: 1px solid var(--divider-color, #e0e0e0);
6768
+ border-radius: 4px;
6769
+ padding: 1rem 3rem 1rem 0.75rem; /* Espacio para iconos a la derecha */
6770
+ background-color: var(--paper-color, #fff);
6771
+ font-size: 1rem;
6772
+ line-height: 1.5;
6773
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
6774
+ outline: none;
6697
6775
  }
6698
6776
 
6699
- .textfield2-outlined > label {
6700
- background-color: var(--paper-color, #fff);
6701
- padding: 0 0.25rem;
6702
- left: 0.75rem;
6703
- top: -0.5rem;
6777
+ /* Adjust padding when no icons are present */
6778
+ .textfield2-outlined:not(.has-icons) > input,
6779
+ .textfield2-outlined:not(.has-icons) > textarea {
6780
+ padding-right: 0.75rem;
6704
6781
  }
6705
6782
 
6706
- .textfield2-outlined.focused,
6783
+ /* Focus states for outlined inputs */
6707
6784
  .textfield2-outlined > input:focus,
6708
- .textfield2-outlined > textarea:focus {
6785
+ .textfield2-outlined > textarea:focus,
6786
+ .textfield2-outlined.focused > input,
6787
+ .textfield2-outlined.focused > textarea {
6709
6788
  border-color: var(--primary-color, #2196f3);
6710
- outline: none;
6789
+ box-shadow: 0 0 0 1px var(--primary-color, #2196f3);
6711
6790
  }
6712
6791
 
6713
- .textfield2-outlined.error,
6714
- .textfield2-outlined.invalid {
6792
+ /* Error states for outlined inputs */
6793
+ .textfield2-outlined.error > input,
6794
+ .textfield2-outlined.error > textarea,
6795
+ .textfield2-outlined.invalid > input,
6796
+ .textfield2-outlined.invalid > textarea {
6715
6797
  border-color: var(--error-color, #f44336);
6716
6798
  }
6717
6799
 
6800
+ .textfield2-outlined.error > input:focus,
6801
+ .textfield2-outlined.error > textarea:focus,
6802
+ .textfield2-outlined.invalid > input:focus,
6803
+ .textfield2-outlined.invalid > textarea:focus {
6804
+ box-shadow: 0 0 0 1px var(--error-color, #f44336);
6805
+ }
6806
+
6807
+ /* Outlined label positioning */
6808
+ .textfield2-outlined > label {
6809
+ position: absolute;
6810
+ left: 0.75rem;
6811
+ top: 1rem; /* Centrado en el input */
6812
+ background-color: var(--paper-color, #fff);
6813
+ padding: 0 0.25rem;
6814
+ font-size: 1rem;
6815
+ color: var(--text-color-light, #666);
6816
+ transition: all 0.2s ease;
6817
+ pointer-events: none;
6818
+ z-index: 1;
6819
+ }
6820
+
6821
+ /* Hide the focus bar for outlined variant */
6718
6822
  .textfield2-outlined .textfield2-bar {
6719
6823
  display: none;
6720
6824
  }
@@ -9392,7 +9496,7 @@ li.selected,
9392
9496
  background-color: var(--paper-color);
9393
9497
  }
9394
9498
 
9395
- .login-box > main {
9499
+ .login-box>main {
9396
9500
  padding: 1rem 1rem 0 1rem;
9397
9501
  display: flex;
9398
9502
  flex-direction: column;
@@ -9424,24 +9528,26 @@ li.selected,
9424
9528
  }
9425
9529
 
9426
9530
  @keyframes rotation-counterclock {
9427
- from {
9428
- transform: rotate(359deg);
9429
- }
9430
- to {
9431
- transform: rotate(0deg);
9432
- }
9531
+ from {
9532
+ transform: rotate(359deg);
9433
9533
  }
9434
9534
 
9535
+ to {
9536
+ transform: rotate(0deg);
9537
+ }
9538
+ }
9539
+
9435
9540
  @keyframes rotation {
9436
9541
  from {
9437
9542
  transform: rotate(0deg);
9438
9543
  }
9544
+
9439
9545
  to {
9440
9546
  transform: rotate(359deg);
9441
9547
  }
9442
9548
  }
9443
9549
 
9444
- .login-box > footer {
9550
+ .login-box>footer {
9445
9551
  grid-area: footer;
9446
9552
  padding: 1rem;
9447
9553
  display: flex;
@@ -9453,6 +9559,7 @@ li.selected,
9453
9559
  from {
9454
9560
  opacity: 0;
9455
9561
  }
9562
+
9456
9563
  to {
9457
9564
  opacity: 1;
9458
9565
  }
@@ -9464,9 +9571,9 @@ li.selected,
9464
9571
  }
9465
9572
 
9466
9573
  .login-box .forgot-button {
9467
- text-align: right;
9468
- font-weight: 500;
9469
- max-width: 15rem;
9574
+ text-align: right;
9575
+ font-weight: 500;
9576
+ max-width: 15rem;
9470
9577
  }
9471
9578
  .reset-password-box {
9472
9579
  background-color: var(--paper-color);