@dubix/ui 0.9.0 → 0.11.0
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/README.md +466 -15
- package/dist/checkbox/Checkbox.d.ts +61 -0
- package/dist/checkbox/Checkbox.js +41 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +1 -0
- package/dist/filter-bar/AppliedFilters.d.ts +41 -0
- package/dist/filter-bar/AppliedFilters.js +123 -0
- package/dist/filter-bar/FilterAmountRange.d.ts +27 -0
- package/dist/filter-bar/FilterAmountRange.js +86 -0
- package/dist/filter-bar/FilterBar.d.ts +32 -0
- package/dist/filter-bar/FilterBar.js +21 -0
- package/dist/filter-bar/FilterOptions.d.ts +71 -0
- package/dist/filter-bar/FilterOptions.js +181 -0
- package/dist/filter-bar/FilterPanel.d.ts +63 -0
- package/dist/filter-bar/FilterPanel.js +50 -0
- package/dist/filter-bar/FilterPeriod.d.ts +25 -0
- package/dist/filter-bar/FilterPeriod.js +71 -0
- package/dist/filter-bar/FilterSearch.d.ts +54 -0
- package/dist/filter-bar/FilterSearch.js +100 -0
- package/dist/filter-bar/FilterToggle.d.ts +16 -0
- package/dist/filter-bar/FilterToggle.js +24 -0
- package/dist/filter-bar/format.d.ts +53 -0
- package/dist/filter-bar/format.js +104 -0
- package/dist/filter-bar/index.d.ts +18 -0
- package/dist/filter-bar/index.js +9 -0
- package/dist/pagination/Pagination.d.ts +11 -8
- package/dist/pagination/Pagination.js +7 -2
- package/dist/popover/Popover.d.ts +65 -0
- package/dist/popover/Popover.js +87 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +1 -0
- package/dist/select/Select.d.ts +5 -1
- package/dist/select/Select.js +2 -2
- package/dist/select/index.d.ts +1 -1
- package/dist/styles.css +965 -72
- package/dist/table/Table.d.ts +14 -3
- package/dist/table/Table.js +10 -4
- package/dist/tooltip/Tooltip.d.ts +6 -1
- package/dist/tooltip/Tooltip.js +5 -4
- package/package.json +13 -1
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer dx.base, dx.components;
|
|
2
|
-
/* Dubix Design System · @dubix/ui 0.
|
|
2
|
+
/* Dubix Design System · @dubix/ui 0.11.0 · generado por scripts/build-css.mjs — no editar a mano.
|
|
3
3
|
Requiere @dubix/tokens/tokens.css antes. Las reglas base de .dx-app las emite @dubix/tokens. */
|
|
4
4
|
|
|
5
5
|
/* src/avatar/avatar.css */
|
|
@@ -434,6 +434,168 @@
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
+
/* src/checkbox/checkbox.css */
|
|
438
|
+
/* Checkbox · casilla de 16px con el radio de las casillas (--dx-radius-xs) y el borde de los campos (1px --dx-border-input,
|
|
439
|
+
como sombra interior, como Input). Marcada e indeterminada: fondo --dx-primary y el glifo de 12px (Check o Minus) en
|
|
440
|
+
--dx-on-primary. Foco, error y deshabilitado como Input: --dx-shadow-focus solo con teclado (es un botón), borde y halo
|
|
441
|
+
--dx-danger-mark con aria-invalid (con foco, el halo pasa a un anillo de 2px --dx-ring) y opacidad .45. El área de clic
|
|
442
|
+
es un ::before de 24 × 24 centrado en la caja: no ocupa lugar. Etiqueta en --dx-text-base / --dx-fg, alineada con la
|
|
443
|
+
caja en la primera línea, y descripción debajo en --dx-text-xs / --dx-fg-3 (la ayuda de Field). */
|
|
444
|
+
@layer dx.components {
|
|
445
|
+
.dx-checkbox {
|
|
446
|
+
--dx-checkbox-size: 16px; /* sin token: lado de la caja */
|
|
447
|
+
--dx-checkbox-hit: 24px; /* sin token: área de clic mínima (WCAG 2.5.8) */
|
|
448
|
+
--dx-checkbox-glyph: 12px; /* sin token: lado del glifo (Check o Minus) */
|
|
449
|
+
|
|
450
|
+
position: relative; /* contiene el <input> oculto que agrega Radix dentro de un form */
|
|
451
|
+
display: inline-flex;
|
|
452
|
+
align-items: flex-start;
|
|
453
|
+
gap: var(--dx-space-2);
|
|
454
|
+
vertical-align: top;
|
|
455
|
+
font-family: var(--dx-font-ui);
|
|
456
|
+
font-feature-settings: var(--dx-features-ui);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.dx-checkbox__box {
|
|
460
|
+
position: relative;
|
|
461
|
+
display: inline-flex;
|
|
462
|
+
flex: none;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
box-sizing: border-box;
|
|
466
|
+
width: var(--dx-checkbox-size);
|
|
467
|
+
height: var(--dx-checkbox-size);
|
|
468
|
+
margin: 0;
|
|
469
|
+
padding: 0;
|
|
470
|
+
border: 0;
|
|
471
|
+
border-radius: var(--dx-radius-xs);
|
|
472
|
+
background: var(--dx-bg-app);
|
|
473
|
+
box-shadow: inset 0 0 0 1px var(--dx-border-input);
|
|
474
|
+
color: var(--dx-on-primary);
|
|
475
|
+
outline: none;
|
|
476
|
+
appearance: none;
|
|
477
|
+
cursor: pointer;
|
|
478
|
+
transition: background-color var(--dx-motion-fast) var(--dx-ease), box-shadow var(--dx-motion-fast) var(--dx-ease);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* Con etiqueta o descripción, la caja queda centrada en la primera línea de la etiqueta (20px). */
|
|
482
|
+
.dx-checkbox:has(> .dx-checkbox__text) .dx-checkbox__box {
|
|
483
|
+
margin-top: calc((var(--dx-leading-base) - var(--dx-checkbox-size)) / 2);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/* Área de clic de 24 × 24 alrededor de la caja: el pseudo-elemento es parte del botón para el puntero. */
|
|
487
|
+
.dx-checkbox__box::before {
|
|
488
|
+
content: "";
|
|
489
|
+
position: absolute;
|
|
490
|
+
inset: calc((var(--dx-checkbox-size) - var(--dx-checkbox-hit)) / 2);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.dx-checkbox__box[data-state="checked"],
|
|
494
|
+
.dx-checkbox__box[data-state="indeterminate"] {
|
|
495
|
+
background: var(--dx-primary);
|
|
496
|
+
box-shadow: inset 0 0 0 1px var(--dx-primary);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/* Puntero encima de la casilla sin marcar (también en el área de 24px): fondo --dx-bg-hover. Input no tiene hover, así
|
|
500
|
+
que este es el del pedido. Marcada, indeterminada o deshabilitada no cambia. */
|
|
501
|
+
.dx-checkbox__box[data-state="unchecked"]:not(:disabled):hover {
|
|
502
|
+
background: var(--dx-bg-hover);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.dx-checkbox__indicator {
|
|
506
|
+
display: inline-flex;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.dx-checkbox__glyph {
|
|
510
|
+
width: var(--dx-checkbox-glyph);
|
|
511
|
+
height: var(--dx-checkbox-glyph);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* Foco del DS, solo con teclado: el de los campos (borde --dx-ring y halo de 3px). */
|
|
515
|
+
.dx-checkbox__box:focus-visible {
|
|
516
|
+
box-shadow: var(--dx-shadow-focus);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/* Error, como Input: borde --dx-danger-mark y halo de 3px. */
|
|
520
|
+
.dx-checkbox__box[aria-invalid="true"] {
|
|
521
|
+
box-shadow:
|
|
522
|
+
inset 0 0 0 1px var(--dx-danger-mark),
|
|
523
|
+
0 0 0 3px color-mix(in srgb, var(--dx-danger-mark) 18%, transparent);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* Error con foco: el borde sigue rojo y el halo pasa a un anillo de --dx-ring (WCAG 2.4.7), como Input. */
|
|
527
|
+
.dx-checkbox__box[aria-invalid="true"]:focus-visible {
|
|
528
|
+
box-shadow:
|
|
529
|
+
inset 0 0 0 1px var(--dx-danger-mark),
|
|
530
|
+
0 0 0 2px var(--dx-ring);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.dx-checkbox__text {
|
|
534
|
+
display: flex;
|
|
535
|
+
flex-direction: column;
|
|
536
|
+
gap: var(--dx-space-0_5);
|
|
537
|
+
min-width: 0;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.dx-checkbox__label {
|
|
541
|
+
color: var(--dx-fg);
|
|
542
|
+
font-size: var(--dx-text-base);
|
|
543
|
+
line-height: var(--dx-leading-base);
|
|
544
|
+
cursor: pointer;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.dx-checkbox__description {
|
|
548
|
+
color: var(--dx-fg-3);
|
|
549
|
+
font-size: var(--dx-text-xs);
|
|
550
|
+
line-height: var(--dx-leading-xs);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* Deshabilitado (la casilla o un <fieldset disabled>): caja y textos al 45 %, como Input. */
|
|
554
|
+
.dx-checkbox:has(> .dx-checkbox__box:disabled) {
|
|
555
|
+
opacity: 0.45;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.dx-checkbox__box:disabled,
|
|
559
|
+
.dx-checkbox:has(> .dx-checkbox__box:disabled) .dx-checkbox__label {
|
|
560
|
+
cursor: not-allowed;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/* Alto contraste: el navegador quita fondos y sombras. La caja pasa a un contorno de sistema de 1px (2px con foco,
|
|
564
|
+
punteado con error); marcada o indeterminada, fondo Highlight con el glifo en HighlightText. */
|
|
565
|
+
@media (forced-colors: active) {
|
|
566
|
+
.dx-checkbox__box {
|
|
567
|
+
outline: 1px solid CanvasText;
|
|
568
|
+
outline-offset: -1px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.dx-checkbox__box[data-state="checked"],
|
|
572
|
+
.dx-checkbox__box[data-state="indeterminate"] {
|
|
573
|
+
background: Highlight;
|
|
574
|
+
color: HighlightText;
|
|
575
|
+
forced-color-adjust: none;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.dx-checkbox__box:focus-visible {
|
|
579
|
+
outline: 2px solid Highlight;
|
|
580
|
+
outline-offset: 1px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.dx-checkbox__box[aria-invalid="true"] {
|
|
584
|
+
outline-style: dotted;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.dx-checkbox:has(> .dx-checkbox__box:disabled) .dx-checkbox__box {
|
|
588
|
+
outline-color: GrayText;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
@media (prefers-reduced-motion: reduce) {
|
|
593
|
+
.dx-checkbox__box {
|
|
594
|
+
transition: none;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
437
599
|
/* src/confirm-dialog/confirm-dialog.css */
|
|
438
600
|
/* ConfirmDialog · DS v1 (confirmación) y hoja modal de D2.1. Ancho 560px con un margen de 24px a cada lado de la ventana
|
|
439
601
|
como máximo (y scroll si no entra), radio --dx-radius-2xl, fondo --dx-bg-raised, --dx-shadow-pop y --dx-z-sheet, sobre
|
|
@@ -786,79 +948,601 @@
|
|
|
786
948
|
}
|
|
787
949
|
}
|
|
788
950
|
|
|
789
|
-
@media (prefers-reduced-motion: reduce) {
|
|
790
|
-
.dx-menu {
|
|
791
|
-
animation: none;
|
|
792
|
-
}
|
|
951
|
+
@media (prefers-reduced-motion: reduce) {
|
|
952
|
+
.dx-menu {
|
|
953
|
+
animation: none;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
/* src/empty-state/empty-state.css */
|
|
959
|
+
/* EmptyState · D2.1. Columna centrada, sin ilustración: ícono opcional, título, descripción y acciones. */
|
|
960
|
+
@layer dx.components {
|
|
961
|
+
.dx-empty-state {
|
|
962
|
+
--dx-empty-icon: 32px; /* sin token: tamaño del ícono (los tokens llegan a 18px) */
|
|
963
|
+
--dx-empty-description-max: 380px; /* sin token: ancho máximo de la descripción, un renglón legible */
|
|
964
|
+
|
|
965
|
+
display: flex;
|
|
966
|
+
flex-direction: column;
|
|
967
|
+
align-items: center;
|
|
968
|
+
gap: var(--dx-space-2_5);
|
|
969
|
+
box-sizing: border-box;
|
|
970
|
+
min-width: 0;
|
|
971
|
+
margin: 0;
|
|
972
|
+
padding: var(--dx-space-16) var(--dx-space-6);
|
|
973
|
+
color: var(--dx-fg-2);
|
|
974
|
+
font-family: var(--dx-font-ui);
|
|
975
|
+
font-feature-settings: var(--dx-features-ui);
|
|
976
|
+
font-size: var(--dx-text-base);
|
|
977
|
+
line-height: var(--dx-leading-base);
|
|
978
|
+
text-align: center;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.dx-empty-state__icon {
|
|
982
|
+
display: inline-flex;
|
|
983
|
+
flex-shrink: 0;
|
|
984
|
+
width: var(--dx-empty-icon);
|
|
985
|
+
height: var(--dx-empty-icon);
|
|
986
|
+
color: var(--dx-fg-3);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.dx-empty-state__icon > svg {
|
|
990
|
+
width: 100%;
|
|
991
|
+
height: 100%;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.dx-empty-state__title {
|
|
995
|
+
margin: var(--dx-space-1_5) 0 0;
|
|
996
|
+
color: var(--dx-fg);
|
|
997
|
+
font-size: var(--dx-text-lg);
|
|
998
|
+
font-weight: 600;
|
|
999
|
+
line-height: var(--dx-leading-lg);
|
|
1000
|
+
letter-spacing: var(--dx-tracking-lg);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.dx-empty-state__description {
|
|
1004
|
+
max-width: var(--dx-empty-description-max);
|
|
1005
|
+
margin: 0;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.dx-empty-state__actions {
|
|
1009
|
+
display: flex;
|
|
1010
|
+
flex-wrap: wrap;
|
|
1011
|
+
align-items: center;
|
|
1012
|
+
justify-content: center;
|
|
1013
|
+
gap: var(--dx-space-2);
|
|
1014
|
+
margin-top: var(--dx-space-1_5);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/* src/field/field.css */
|
|
1019
|
+
/* Field · D2.1. Etiqueta arriba, control en el medio, ayuda o error abajo. */
|
|
1020
|
+
@layer dx.components {
|
|
1021
|
+
.dx-field {
|
|
1022
|
+
--dx-field-label-fs: 13px; /* sin token: etiqueta de campo en D2.1 (entre text-xs 12,5px y text-sm 13,5px) */
|
|
1023
|
+
--dx-field-label-lh: 16px; /* sin token: interlineado de la etiqueta en D2.1 */
|
|
1024
|
+
|
|
1025
|
+
display: flex;
|
|
1026
|
+
flex-direction: column;
|
|
1027
|
+
gap: var(--dx-space-1_5);
|
|
1028
|
+
min-width: 0;
|
|
1029
|
+
font-family: var(--dx-font-ui);
|
|
1030
|
+
font-feature-settings: var(--dx-features-ui);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.dx-field__label {
|
|
1034
|
+
align-self: flex-start;
|
|
1035
|
+
color: var(--dx-fg-2);
|
|
1036
|
+
font-size: var(--dx-field-label-fs);
|
|
1037
|
+
font-weight: 500;
|
|
1038
|
+
line-height: var(--dx-field-label-lh);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.dx-field__required {
|
|
1042
|
+
margin-left: var(--dx-space-0_5);
|
|
1043
|
+
color: var(--dx-danger);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.dx-field__help,
|
|
1047
|
+
.dx-field__error {
|
|
1048
|
+
margin: 0;
|
|
1049
|
+
font-size: var(--dx-text-xs);
|
|
1050
|
+
line-height: var(--dx-leading-xs);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.dx-field__help {
|
|
1054
|
+
color: var(--dx-fg-3);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.dx-field__error {
|
|
1058
|
+
display: flex;
|
|
1059
|
+
align-items: flex-start;
|
|
1060
|
+
gap: var(--dx-space-1);
|
|
1061
|
+
color: var(--dx-danger);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/* el ícono (14px) centrado en la primera línea (16px) */
|
|
1065
|
+
.dx-field__error-icon {
|
|
1066
|
+
flex-shrink: 0;
|
|
1067
|
+
width: var(--dx-size-icon-sm);
|
|
1068
|
+
height: var(--dx-size-icon-sm);
|
|
1069
|
+
margin-top: calc((var(--dx-leading-xs) - var(--dx-size-icon-sm)) / 2);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/* src/filter-bar/filter-bar.css */
|
|
1074
|
+
/* Barra de filtros y filtros aplicados (tanda 2). Cuatro bloques en un archivo, la entrada @dubix/ui/filter-bar:
|
|
1075
|
+
- .dx-filter-bar: role="search". Una fila que envuelve con separación --dx-space-2; el buscador de --dx-size-search; la
|
|
1076
|
+
cantidad (--dx-text-sm, --dx-fg-3) y los controles extra empujados a la derecha. Es el contenedor de una container query:
|
|
1077
|
+
con menos de 640px, el buscador ocupa todo el ancho. Sin márgenes propios.
|
|
1078
|
+
- .dx-filter-btn: FilterButton y FilterToggle. Es un Button secondary sm (alto, borde, radio, fondo, hover y foco salen de
|
|
1079
|
+
button.css); acá, el texto en --dx-text-sm y --dx-fg-2 con peso 400, la flecha o el más de 14px en --dx-fg-3, y con un
|
|
1080
|
+
valor (data-active) la etiqueta en --dx-fg con peso 500 y un punto de 6px en --dx-primary. Abierto: borde --dx-border-input.
|
|
1081
|
+
- .dx-applied-filters: role="group"; los chips en una fila que envuelve con separación --dx-space-1_5. Sin márgenes propios.
|
|
1082
|
+
- .dx-filter-chip: alto --dx-size-control-xs, borde de 1px --dx-border-selected, radio --dx-radius-md, fondo
|
|
1083
|
+
--dx-bg-selected, --dx-text-sm; el campo en --dx-fg-2 y el valor en --dx-fg con peso 500, cortado con puntos suspensivos
|
|
1084
|
+
a los 360px; la × de 14px en --dx-fg-3, en un botón de 26px de ancho y todo el alto. */
|
|
1085
|
+
@layer dx.components {
|
|
1086
|
+
/* ── Barra ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1087
|
+
.dx-filter-bar {
|
|
1088
|
+
container: dx-filter-bar / inline-size;
|
|
1089
|
+
min-width: 0;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.dx-filter-bar__row {
|
|
1093
|
+
display: flex;
|
|
1094
|
+
flex-wrap: wrap;
|
|
1095
|
+
align-items: center;
|
|
1096
|
+
gap: var(--dx-space-2);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.dx-filter-bar__search {
|
|
1100
|
+
flex: 0 1 var(--dx-size-search);
|
|
1101
|
+
min-width: 0;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.dx-filter-bar__end {
|
|
1105
|
+
display: flex;
|
|
1106
|
+
align-items: center;
|
|
1107
|
+
gap: var(--dx-space-2);
|
|
1108
|
+
margin-left: auto;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.dx-filter-bar__count {
|
|
1112
|
+
color: var(--dx-fg-3);
|
|
1113
|
+
font-family: var(--dx-font-ui);
|
|
1114
|
+
font-feature-settings: var(--dx-features-ui);
|
|
1115
|
+
font-size: var(--dx-text-sm);
|
|
1116
|
+
line-height: var(--dx-leading-sm);
|
|
1117
|
+
white-space: nowrap;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
/* Angosto (contenedor de menos de 640px, sin token: un @container no acepta var(), el umbral de PageHeader): el buscador
|
|
1121
|
+
ocupa su propia fila, a todo el ancho; los filtros y la cantidad envuelven debajo. */
|
|
1122
|
+
@container dx-filter-bar (width < 640px) {
|
|
1123
|
+
.dx-filter-bar__search {
|
|
1124
|
+
flex-basis: 100%;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/* ── Botón de filtro (FilterButton y FilterToggle) ─────────────────────────────────────────────────────────────── */
|
|
1129
|
+
/* [data-size] (Button siempre lo pone) sube la especificidad sobre .dx-btn: no depende del orden de styles.css. */
|
|
1130
|
+
.dx-filter-btn[data-size] {
|
|
1131
|
+
--dx-filter-btn-dot: 6px; /* sin token: diámetro del punto de filtro aplicado */
|
|
1132
|
+
--dx-btn-fg: var(--dx-fg-2);
|
|
1133
|
+
--dx-btn-icon: var(--dx-size-icon-sm);
|
|
1134
|
+
|
|
1135
|
+
gap: var(--dx-space-1_5);
|
|
1136
|
+
font-weight: 400;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.dx-filter-btn[data-size][data-active="true"] {
|
|
1140
|
+
--dx-btn-fg: var(--dx-fg);
|
|
1141
|
+
|
|
1142
|
+
font-weight: 500;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/* Abierto (data-state="open" de PopoverTrigger): el borde del hover, fijo mientras el popover está abierto. */
|
|
1146
|
+
.dx-filter-btn[data-variant][data-state="open"] {
|
|
1147
|
+
--dx-btn-border: var(--dx-border-input);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
.dx-filter-btn .dx-btn__icon {
|
|
1151
|
+
color: var(--dx-fg-3);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.dx-filter-btn__dot {
|
|
1155
|
+
flex: none;
|
|
1156
|
+
width: var(--dx-filter-btn-dot);
|
|
1157
|
+
height: var(--dx-filter-btn-dot);
|
|
1158
|
+
border-radius: var(--dx-radius-full);
|
|
1159
|
+
background: var(--dx-primary);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/* Texto solo para lectores de pantalla («, filtro aplicado»): el punto solo no alcanza. */
|
|
1163
|
+
.dx-filter-btn__sr {
|
|
1164
|
+
position: absolute;
|
|
1165
|
+
width: 1px;
|
|
1166
|
+
height: 1px;
|
|
1167
|
+
margin: -1px;
|
|
1168
|
+
padding: 0;
|
|
1169
|
+
overflow: hidden;
|
|
1170
|
+
clip-path: inset(50%);
|
|
1171
|
+
white-space: nowrap;
|
|
1172
|
+
border: 0;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
/* ── Fila de filtros aplicados ─────────────────────────────────────────────────────────────────────────────────── */
|
|
1176
|
+
.dx-applied-filters {
|
|
1177
|
+
display: flex;
|
|
1178
|
+
flex-wrap: wrap;
|
|
1179
|
+
align-items: center;
|
|
1180
|
+
gap: var(--dx-space-1_5);
|
|
1181
|
+
min-width: 0;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/* ── Chip ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1185
|
+
.dx-filter-chip {
|
|
1186
|
+
--dx-filter-chip-max: 360px; /* sin token: ancho máximo del chip; el valor se corta con puntos suspensivos */
|
|
1187
|
+
--dx-filter-chip-remove: 26px; /* sin token: ancho del botón de la × */
|
|
1188
|
+
--dx-filter-chip-inner-radius: calc(var(--dx-radius-md) - 1px); /* el radio del chip menos su borde */
|
|
1189
|
+
|
|
1190
|
+
box-sizing: border-box;
|
|
1191
|
+
display: inline-flex;
|
|
1192
|
+
align-items: stretch;
|
|
1193
|
+
max-width: min(var(--dx-filter-chip-max), 100%);
|
|
1194
|
+
height: var(--dx-size-control-xs);
|
|
1195
|
+
border: 1px solid var(--dx-border-selected);
|
|
1196
|
+
border-radius: var(--dx-radius-md);
|
|
1197
|
+
background: var(--dx-bg-selected);
|
|
1198
|
+
color: var(--dx-fg-2);
|
|
1199
|
+
font-family: var(--dx-font-ui);
|
|
1200
|
+
font-feature-settings: var(--dx-features-ui);
|
|
1201
|
+
font-size: var(--dx-text-sm);
|
|
1202
|
+
line-height: var(--dx-leading-sm);
|
|
1203
|
+
transition: border-color var(--dx-motion-fast) var(--dx-ease);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/* Clicable (hijo de PopoverTrigger): con el puntero encima o con el popover abierto, el borde pasa a --dx-border-input,
|
|
1207
|
+
como el de FilterButton. */
|
|
1208
|
+
.dx-filter-chip:has(> button.dx-filter-chip__body:hover),
|
|
1209
|
+
.dx-filter-chip:has(> .dx-filter-chip__body[data-state="open"]) {
|
|
1210
|
+
border-color: var(--dx-border-input);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.dx-filter-chip__body {
|
|
1214
|
+
box-sizing: border-box;
|
|
1215
|
+
display: inline-flex;
|
|
1216
|
+
align-items: center;
|
|
1217
|
+
gap: var(--dx-space-1);
|
|
1218
|
+
min-width: 0;
|
|
1219
|
+
margin: 0;
|
|
1220
|
+
padding: 0 var(--dx-space-2_5);
|
|
1221
|
+
border: 0;
|
|
1222
|
+
border-radius: var(--dx-filter-chip-inner-radius);
|
|
1223
|
+
background: transparent;
|
|
1224
|
+
color: inherit;
|
|
1225
|
+
font: inherit;
|
|
1226
|
+
font-feature-settings: inherit; /* el reset del navegador para <button> no hereda el del chip */
|
|
1227
|
+
letter-spacing: inherit;
|
|
1228
|
+
white-space: nowrap;
|
|
1229
|
+
outline: none;
|
|
1230
|
+
appearance: none;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
button.dx-filter-chip__body {
|
|
1234
|
+
cursor: pointer;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/* Con la ×, el cuerpo no lleva padding a la derecha: el botón de 26px ya separa el texto del borde. */
|
|
1238
|
+
.dx-filter-chip:has(> .dx-filter-chip__remove) .dx-filter-chip__body {
|
|
1239
|
+
padding-right: 0;
|
|
1240
|
+
border-top-right-radius: 0;
|
|
1241
|
+
border-bottom-right-radius: 0;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
.dx-filter-chip__label {
|
|
1245
|
+
flex: none;
|
|
1246
|
+
color: var(--dx-fg-2);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/* El valor (o, sin valor, la etiqueta sola, que es lo que está filtrando): --dx-fg con peso 500, cortado si no entra. */
|
|
1250
|
+
.dx-filter-chip__value {
|
|
1251
|
+
min-width: 0;
|
|
1252
|
+
overflow: hidden;
|
|
1253
|
+
color: var(--dx-fg);
|
|
1254
|
+
font-weight: 500;
|
|
1255
|
+
text-overflow: ellipsis;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.dx-filter-chip__remove {
|
|
1259
|
+
display: inline-flex;
|
|
1260
|
+
flex: none;
|
|
1261
|
+
align-items: center;
|
|
1262
|
+
justify-content: center;
|
|
1263
|
+
width: var(--dx-filter-chip-remove);
|
|
1264
|
+
margin: 0;
|
|
1265
|
+
padding: 0;
|
|
1266
|
+
border: 0;
|
|
1267
|
+
border-radius: 0 var(--dx-filter-chip-inner-radius) var(--dx-filter-chip-inner-radius) 0;
|
|
1268
|
+
background: transparent;
|
|
1269
|
+
color: var(--dx-fg-3);
|
|
1270
|
+
outline: none;
|
|
1271
|
+
appearance: none;
|
|
1272
|
+
cursor: pointer;
|
|
1273
|
+
transition: color var(--dx-motion-fast) var(--dx-ease);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.dx-filter-chip__remove:hover {
|
|
1277
|
+
color: var(--dx-fg);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.dx-filter-chip__remove > svg {
|
|
1281
|
+
width: var(--dx-size-icon-sm);
|
|
1282
|
+
height: var(--dx-size-icon-sm);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/* Foco por teclado en el cuerpo, en la × o en el texto con Tooltip: anillo de 2px --dx-ring por dentro del chip. */
|
|
1286
|
+
.dx-filter-chip__body:focus-visible,
|
|
1287
|
+
.dx-filter-chip__remove:focus-visible {
|
|
1288
|
+
outline: 2px solid var(--dx-ring);
|
|
1289
|
+
outline-offset: -2px;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/* ── Lista de opciones (FilterOptions) ─────────────────────────────────────────────────────────────────────────
|
|
1293
|
+
Va dentro de un PopoverContent (que pone el padding de 6px). Arriba, el campo para buscar; en el medio, la lista con alto
|
|
1294
|
+
máximo y desplazamiento propio; abajo, «Quitar filtro». El campo y el pie no se desplazan. Cada opción tiene los valores
|
|
1295
|
+
del ítem de DropdownMenu: 36px de alto (más con descripción), padding 0 10px, gap 10px, radio --dx-radius-md,
|
|
1296
|
+
--dx-text-base en --dx-fg; activa (teclado) o con el puntero, --dx-bg-selected. Grupos con el título de DropdownMenu. */
|
|
1297
|
+
.dx-filter-options {
|
|
1298
|
+
--dx-filter-options-max: 320px; /* sin token: alto máximo de la lista antes de desplazarse */
|
|
1299
|
+
|
|
1300
|
+
display: flex;
|
|
1301
|
+
flex-direction: column;
|
|
1302
|
+
min-width: 0;
|
|
1303
|
+
max-height: inherit;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.dx-filter-options__search {
|
|
1307
|
+
flex: none;
|
|
1308
|
+
padding-bottom: var(--dx-space-1_5);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.dx-filter-options__list {
|
|
1312
|
+
flex: 0 1 auto;
|
|
1313
|
+
min-height: 0;
|
|
1314
|
+
max-height: var(--dx-filter-options-max);
|
|
1315
|
+
overflow-y: auto;
|
|
1316
|
+
outline: none;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.dx-filter-options__group-label {
|
|
1320
|
+
padding: var(--dx-space-1_5) var(--dx-space-2_5) var(--dx-space-2);
|
|
1321
|
+
color: var(--dx-fg);
|
|
1322
|
+
font-size: var(--dx-text-sm);
|
|
1323
|
+
font-weight: 600;
|
|
1324
|
+
line-height: var(--dx-leading-sm);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.dx-filter-options__option {
|
|
1328
|
+
display: flex;
|
|
1329
|
+
align-items: center;
|
|
1330
|
+
gap: var(--dx-space-2_5);
|
|
1331
|
+
box-sizing: border-box;
|
|
1332
|
+
min-height: var(--dx-space-9);
|
|
1333
|
+
padding: 0 var(--dx-space-2_5);
|
|
1334
|
+
border-radius: var(--dx-radius-md);
|
|
1335
|
+
color: var(--dx-fg);
|
|
1336
|
+
font-size: var(--dx-text-base);
|
|
1337
|
+
line-height: var(--dx-leading-base);
|
|
1338
|
+
cursor: pointer;
|
|
1339
|
+
outline: none;
|
|
1340
|
+
user-select: none;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/* Con descripción, dos líneas: 6px arriba y abajo para que no toquen el borde del resaltado. */
|
|
1344
|
+
.dx-filter-options__option[aria-describedby] {
|
|
1345
|
+
padding-block: var(--dx-space-1_5);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/* Activa (el teclado o el puntero): el resaltado de los ítems de DropdownMenu. */
|
|
1349
|
+
.dx-filter-options__option[data-active="true"] {
|
|
1350
|
+
background: var(--dx-bg-selected);
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.dx-filter-options__option[aria-disabled="true"] {
|
|
1354
|
+
background: transparent;
|
|
1355
|
+
opacity: 0.45;
|
|
1356
|
+
cursor: not-allowed;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.dx-filter-options__text {
|
|
1360
|
+
display: flex;
|
|
1361
|
+
flex: 1;
|
|
1362
|
+
flex-direction: column;
|
|
1363
|
+
min-width: 0;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.dx-filter-options__label {
|
|
1367
|
+
overflow: hidden;
|
|
1368
|
+
text-overflow: ellipsis;
|
|
1369
|
+
white-space: nowrap;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
/* Un valor: la elegida con peso 500 y el tilde de 16px a la derecha, en --dx-fg. */
|
|
1373
|
+
.dx-filter-options__option[data-selected="true"]:not(.dx-filter-options[data-multiple] *) .dx-filter-options__label {
|
|
1374
|
+
font-weight: 500;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.dx-filter-options__description {
|
|
1378
|
+
color: var(--dx-fg-3);
|
|
1379
|
+
font-size: var(--dx-text-xs);
|
|
1380
|
+
line-height: var(--dx-leading-xs);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/* meta: texto corto a la derecha (p. ej. un saldo), --dx-text-sm en --dx-fg-3 con cifras tabulares; no se corta. */
|
|
1384
|
+
.dx-filter-options__meta {
|
|
1385
|
+
flex: none;
|
|
1386
|
+
color: var(--dx-fg-3);
|
|
1387
|
+
font-size: var(--dx-text-sm);
|
|
1388
|
+
font-variant-numeric: tabular-nums;
|
|
1389
|
+
line-height: var(--dx-leading-sm);
|
|
1390
|
+
white-space: nowrap;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.dx-filter-options__mark {
|
|
1394
|
+
display: inline-flex;
|
|
1395
|
+
flex: none;
|
|
1396
|
+
width: var(--dx-size-icon);
|
|
1397
|
+
height: var(--dx-size-icon);
|
|
1398
|
+
color: var(--dx-fg);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
.dx-filter-options__mark > svg {
|
|
1402
|
+
width: 100%;
|
|
1403
|
+
height: 100%;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/* La caja de Checkbox (varios valores) va alineada con la primera línea de la opción. */
|
|
1407
|
+
.dx-filter-options__option > .dx-checkbox {
|
|
1408
|
+
flex: none;
|
|
1409
|
+
align-self: flex-start;
|
|
1410
|
+
margin-top: calc((var(--dx-leading-base) - var(--dx-checkbox-size)) / 2);
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
.dx-filter-options__skeleton {
|
|
1414
|
+
display: flex;
|
|
1415
|
+
align-items: center;
|
|
1416
|
+
height: var(--dx-space-9);
|
|
1417
|
+
padding: 0 var(--dx-space-2_5);
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.dx-filter-options__empty {
|
|
1421
|
+
padding: var(--dx-space-2) var(--dx-space-2_5);
|
|
1422
|
+
color: var(--dx-fg-3);
|
|
1423
|
+
font-size: var(--dx-text-sm);
|
|
1424
|
+
line-height: var(--dx-leading-sm);
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.dx-filter-options__empty:empty {
|
|
1428
|
+
display: none;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/* Un aviso con su acción (p. ej. «No se pudo buscar» y «Reintentar»): el texto y el botón en una fila que envuelve. */
|
|
1432
|
+
.dx-filter-options__notice {
|
|
1433
|
+
display: flex;
|
|
1434
|
+
flex-wrap: wrap;
|
|
1435
|
+
align-items: center;
|
|
1436
|
+
gap: var(--dx-space-1) var(--dx-space-2);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.dx-filter-options__footer {
|
|
1440
|
+
display: flex;
|
|
1441
|
+
flex: none;
|
|
1442
|
+
justify-content: flex-start;
|
|
1443
|
+
margin-top: var(--dx-space-1_5);
|
|
1444
|
+
padding-top: var(--dx-space-1_5);
|
|
1445
|
+
border-top: 1px solid var(--dx-border);
|
|
793
1446
|
}
|
|
794
|
-
}
|
|
795
1447
|
|
|
796
|
-
/*
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
.dx-
|
|
800
|
-
--dx-
|
|
801
|
-
--dx-empty-description-max: 380px; /* sin token: ancho máximo de la descripción, un renglón legible */
|
|
1448
|
+
/* ── Período (FilterPeriod) e importe (FilterAmountRange) ─────────────────────────────────────────────────────────
|
|
1449
|
+
Los dos campos (Field con Input) lado a lado, en 320px: Desde y Hasta. En el período van debajo de la lista, separados
|
|
1450
|
+
por una línea de 1px --dx-border como el pie de FilterOptions; en el importe, solos en el popover. */
|
|
1451
|
+
.dx-filter-period {
|
|
1452
|
+
--dx-filter-period-fields: 320px; /* sin token: ancho de los dos campos de fecha (un type="date" de es-AR con su ícono) */
|
|
802
1453
|
|
|
803
1454
|
display: flex;
|
|
804
1455
|
flex-direction: column;
|
|
805
|
-
align-items: center;
|
|
806
|
-
gap: var(--dx-space-2_5);
|
|
807
|
-
box-sizing: border-box;
|
|
808
1456
|
min-width: 0;
|
|
809
|
-
margin: 0;
|
|
810
|
-
padding: var(--dx-space-16) var(--dx-space-6);
|
|
811
|
-
color: var(--dx-fg-2);
|
|
812
|
-
font-family: var(--dx-font-ui);
|
|
813
|
-
font-feature-settings: var(--dx-features-ui);
|
|
814
|
-
font-size: var(--dx-text-base);
|
|
815
|
-
line-height: var(--dx-leading-base);
|
|
816
|
-
text-align: center;
|
|
817
1457
|
}
|
|
818
1458
|
|
|
819
|
-
.dx-
|
|
820
|
-
display:
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
1459
|
+
.dx-filter-period__range {
|
|
1460
|
+
display: grid;
|
|
1461
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1462
|
+
align-items: start;
|
|
1463
|
+
gap: var(--dx-space-2);
|
|
1464
|
+
box-sizing: border-box;
|
|
1465
|
+
width: var(--dx-filter-period-fields);
|
|
1466
|
+
max-width: 100%;
|
|
1467
|
+
margin-top: var(--dx-space-1_5);
|
|
1468
|
+
padding: var(--dx-space-2) var(--dx-space-1) var(--dx-space-1);
|
|
1469
|
+
border-top: 1px solid var(--dx-border);
|
|
825
1470
|
}
|
|
826
1471
|
|
|
827
|
-
.dx-
|
|
1472
|
+
.dx-filter-amount {
|
|
1473
|
+
--dx-filter-amount-fields: 320px; /* sin token: ancho de los dos campos de importe, como los de fecha */
|
|
1474
|
+
|
|
1475
|
+
display: grid;
|
|
1476
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1477
|
+
align-items: start;
|
|
1478
|
+
gap: var(--dx-space-2);
|
|
1479
|
+
box-sizing: border-box;
|
|
1480
|
+
width: var(--dx-filter-amount-fields);
|
|
1481
|
+
max-width: 100%;
|
|
1482
|
+
padding: var(--dx-space-1);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
/* El signo $ en el lugar del ícono inicial del Input (16px, --dx-fg-3): texto, centrado. */
|
|
1486
|
+
.dx-filter-amount__currency {
|
|
1487
|
+
display: inline-flex;
|
|
1488
|
+
align-items: center;
|
|
1489
|
+
justify-content: center;
|
|
828
1490
|
width: 100%;
|
|
829
1491
|
height: 100%;
|
|
1492
|
+
font-weight: 500;
|
|
830
1493
|
}
|
|
831
1494
|
|
|
832
|
-
|
|
833
|
-
|
|
1495
|
+
/* ── Panel «Filtrar» (FilterPanel, FilterPanelSection y FilterField) ──────────────────────────────────────────────
|
|
1496
|
+
Es un Drawer: el panel, el velo, el foco y el cierre salen de drawer.css. Acá, el cuerpo en secciones separadas por
|
|
1497
|
+
--dx-space-6, cada una con el título chico de los grupos de FilterOptions (600, --dx-text-sm, --dx-fg); los campos con
|
|
1498
|
+
la etiqueta de Field arriba y un botón con el aspecto del disparador de Select (38px, borde --dx-border-input como
|
|
1499
|
+
sombra interior, radio --dx-radius-md, la flecha de 16px en --dx-fg-3); el pie con «Limpiar filtros» a la izquierda y el
|
|
1500
|
+
botón que cierra a la derecha. */
|
|
1501
|
+
.dx-filter-panel {
|
|
1502
|
+
display: flex;
|
|
1503
|
+
flex-direction: column;
|
|
1504
|
+
gap: var(--dx-space-6);
|
|
1505
|
+
outline: none;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.dx-filter-panel__section {
|
|
1509
|
+
display: flex;
|
|
1510
|
+
flex-direction: column;
|
|
1511
|
+
gap: var(--dx-space-2);
|
|
1512
|
+
min-width: 0;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.dx-filter-panel__title {
|
|
1516
|
+
margin: 0;
|
|
834
1517
|
color: var(--dx-fg);
|
|
835
|
-
font-size: var(--dx-text-
|
|
1518
|
+
font-size: var(--dx-text-sm);
|
|
836
1519
|
font-weight: 600;
|
|
837
|
-
line-height: var(--dx-leading-
|
|
838
|
-
letter-spacing: var(--dx-tracking-lg);
|
|
1520
|
+
line-height: var(--dx-leading-sm);
|
|
839
1521
|
}
|
|
840
1522
|
|
|
841
|
-
.dx-
|
|
842
|
-
|
|
843
|
-
|
|
1523
|
+
.dx-filter-panel__content {
|
|
1524
|
+
display: flex;
|
|
1525
|
+
flex-direction: column;
|
|
1526
|
+
gap: var(--dx-space-4);
|
|
1527
|
+
min-width: 0;
|
|
844
1528
|
}
|
|
845
1529
|
|
|
846
|
-
.dx-
|
|
1530
|
+
.dx-filter-panel__footer {
|
|
847
1531
|
display: flex;
|
|
848
|
-
flex
|
|
1532
|
+
flex: 1;
|
|
849
1533
|
align-items: center;
|
|
850
|
-
justify-content: center;
|
|
851
1534
|
gap: var(--dx-space-2);
|
|
852
|
-
margin-top: var(--dx-space-1_5);
|
|
853
1535
|
}
|
|
854
|
-
}
|
|
855
1536
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
--dx-field-label-
|
|
1537
|
+
.dx-filter-panel__submit[data-size] {
|
|
1538
|
+
margin-left: auto;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
.dx-filter-field {
|
|
1542
|
+
--dx-filter-field-label-fs: 13px; /* sin token: la etiqueta de Field en D2.1 (entre text-xs y text-sm) */
|
|
1543
|
+
--dx-filter-field-label-lh: 16px; /* sin token: su interlineado */
|
|
1544
|
+
--dx-filter-field-pl: 12px; /* sin token: padding izquierdo de los campos en D2.1 (el de Input y Select) */
|
|
1545
|
+
--dx-filter-field-pr: 10px; /* sin token: padding derecho de los campos en D2.1 */
|
|
862
1546
|
|
|
863
1547
|
display: flex;
|
|
864
1548
|
flex-direction: column;
|
|
@@ -868,43 +1552,105 @@
|
|
|
868
1552
|
font-feature-settings: var(--dx-features-ui);
|
|
869
1553
|
}
|
|
870
1554
|
|
|
871
|
-
.dx-field__label {
|
|
1555
|
+
.dx-filter-field__label {
|
|
872
1556
|
align-self: flex-start;
|
|
873
1557
|
color: var(--dx-fg-2);
|
|
874
|
-
font-size: var(--dx-field-label-fs);
|
|
1558
|
+
font-size: var(--dx-filter-field-label-fs);
|
|
875
1559
|
font-weight: 500;
|
|
876
|
-
line-height: var(--dx-field-label-lh);
|
|
1560
|
+
line-height: var(--dx-filter-field-label-lh);
|
|
877
1561
|
}
|
|
878
1562
|
|
|
879
|
-
.dx-
|
|
880
|
-
|
|
881
|
-
|
|
1563
|
+
.dx-filter-field__control {
|
|
1564
|
+
box-sizing: border-box;
|
|
1565
|
+
display: flex;
|
|
1566
|
+
align-items: center;
|
|
1567
|
+
gap: var(--dx-space-2);
|
|
1568
|
+
width: 100%;
|
|
1569
|
+
height: var(--dx-size-control-md);
|
|
1570
|
+
margin: 0;
|
|
1571
|
+
padding: 0 var(--dx-filter-field-pr) 0 var(--dx-filter-field-pl);
|
|
1572
|
+
border: 0;
|
|
1573
|
+
border-radius: var(--dx-radius-md);
|
|
1574
|
+
background: var(--dx-bg-app);
|
|
1575
|
+
box-shadow: inset 0 0 0 1px var(--dx-border-input);
|
|
1576
|
+
color: var(--dx-fg);
|
|
1577
|
+
font: inherit;
|
|
1578
|
+
font-size: var(--dx-text-ui);
|
|
1579
|
+
line-height: var(--dx-leading-ui);
|
|
1580
|
+
text-align: start;
|
|
1581
|
+
outline: none;
|
|
1582
|
+
appearance: none;
|
|
1583
|
+
cursor: pointer;
|
|
1584
|
+
transition: box-shadow var(--dx-motion-fast) var(--dx-ease);
|
|
882
1585
|
}
|
|
883
1586
|
|
|
884
|
-
.
|
|
885
|
-
.dx-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
line-height: var(--dx-leading-xs);
|
|
1587
|
+
/* Foco por teclado y popover abierto: el foco interior de los campos, como Select. */
|
|
1588
|
+
.dx-filter-field__control:focus-visible,
|
|
1589
|
+
.dx-filter-field__control[data-state="open"] {
|
|
1590
|
+
box-shadow: var(--dx-shadow-focus);
|
|
889
1591
|
}
|
|
890
1592
|
|
|
891
|
-
.dx-
|
|
892
|
-
|
|
1593
|
+
.dx-filter-field__value {
|
|
1594
|
+
flex: 1;
|
|
1595
|
+
min-width: 0;
|
|
1596
|
+
overflow: hidden;
|
|
1597
|
+
text-overflow: ellipsis;
|
|
1598
|
+
white-space: nowrap;
|
|
893
1599
|
}
|
|
894
1600
|
|
|
895
|
-
.
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
gap: var(--dx-space-1);
|
|
899
|
-
color: var(--dx-danger);
|
|
1601
|
+
/* Sin valor: «Cualquiera», en el color del placeholder de Input. */
|
|
1602
|
+
.dx-filter-field__control[data-empty="true"] .dx-filter-field__value {
|
|
1603
|
+
color: var(--dx-fg-3);
|
|
900
1604
|
}
|
|
901
1605
|
|
|
902
|
-
|
|
903
|
-
|
|
1606
|
+
.dx-filter-field__icon {
|
|
1607
|
+
display: inline-flex;
|
|
904
1608
|
flex-shrink: 0;
|
|
905
|
-
width: var(--dx-size-icon
|
|
906
|
-
height: var(--dx-size-icon
|
|
907
|
-
|
|
1609
|
+
width: var(--dx-size-icon);
|
|
1610
|
+
height: var(--dx-size-icon);
|
|
1611
|
+
color: var(--dx-fg-3);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.dx-filter-field__icon > svg {
|
|
1615
|
+
width: 100%;
|
|
1616
|
+
height: 100%;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
/* Alto contraste: el navegador quita el fondo; el borde del chip ya es un borde real. El punto pasa a un color de sistema
|
|
1620
|
+
(si no, desaparece con el fondo). */
|
|
1621
|
+
@media (forced-colors: active) {
|
|
1622
|
+
.dx-filter-btn__dot {
|
|
1623
|
+
background: CanvasText;
|
|
1624
|
+
forced-color-adjust: none;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
.dx-filter-chip__body:focus-visible,
|
|
1628
|
+
.dx-filter-chip__remove:focus-visible {
|
|
1629
|
+
outline-color: Highlight;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.dx-filter-options__option[data-active="true"] {
|
|
1633
|
+
outline: 1px solid Highlight;
|
|
1634
|
+
outline-offset: -1px;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.dx-filter-field__control {
|
|
1638
|
+
outline: 1px solid CanvasText;
|
|
1639
|
+
outline-offset: -1px;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
.dx-filter-field__control:focus-visible,
|
|
1643
|
+
.dx-filter-field__control[data-state="open"] {
|
|
1644
|
+
outline: 2px solid Highlight;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1649
|
+
.dx-filter-chip,
|
|
1650
|
+
.dx-filter-chip__remove,
|
|
1651
|
+
.dx-filter-field__control {
|
|
1652
|
+
transition: none;
|
|
1653
|
+
}
|
|
908
1654
|
}
|
|
909
1655
|
}
|
|
910
1656
|
|
|
@@ -1238,6 +1984,27 @@
|
|
|
1238
1984
|
white-space: nowrap;
|
|
1239
1985
|
}
|
|
1240
1986
|
|
|
1987
|
+
/* Filas por página: el texto y un Select sm de 76px, al lado del rango (margin-right: auto le gana al space-between de la
|
|
1988
|
+
fila; los controles siguen a la derecha y, si no entran, bajan). */
|
|
1989
|
+
.dx-pagination__size {
|
|
1990
|
+
--dx-pagination-size-select: 76px; /* sin token: ancho del Select de filas por página (tres cifras y el chevron) */
|
|
1991
|
+
|
|
1992
|
+
display: flex;
|
|
1993
|
+
margin-right: auto;
|
|
1994
|
+
align-items: center;
|
|
1995
|
+
gap: var(--dx-space-2);
|
|
1996
|
+
white-space: nowrap;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.dx-pagination__size-label {
|
|
2000
|
+
color: var(--dx-fg-2);
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
/* Dentro de .dx-pagination__size sube la especificidad sobre el ancho de .dx-select, sin depender del orden de styles.css. */
|
|
2004
|
+
.dx-pagination__size .dx-pagination__size-select {
|
|
2005
|
+
width: var(--dx-pagination-size-select);
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1241
2008
|
.dx-pagination__controls {
|
|
1242
2009
|
display: flex;
|
|
1243
2010
|
align-items: center;
|
|
@@ -1326,6 +2093,57 @@
|
|
|
1326
2093
|
}
|
|
1327
2094
|
}
|
|
1328
2095
|
|
|
2096
|
+
/* src/popover/popover.css */
|
|
2097
|
+
/* Popover · la caja de DropdownMenu (.menu de D2.1) para contenido libre: los filtros de los listados. Mismo contenedor que
|
|
2098
|
+
.dx-menu: ancho mínimo --dx-size-menu-min, padding 6px, radio --dx-radius-lg, fondo --dx-bg-raised, --dx-shadow-pop (que
|
|
2099
|
+
trae su borde de 1px) y --dx-z-menu; misma separación del disparador (6px, en Popover.tsx) y mismo fundido de entrada.
|
|
2100
|
+
Nunca más ancho que la ventana menos 8px por lado (el margen de Radix), ni más alto que lo que queda hasta el borde (en
|
|
2101
|
+
línea, desde Popover.tsx): lo que no entra se desplaza. Radix copia el z-index del contenido a su contenedor posicionado,
|
|
2102
|
+
así que basta declararlo acá. */
|
|
2103
|
+
@layer dx.components {
|
|
2104
|
+
.dx-popover {
|
|
2105
|
+
--dx-popover-max-width: calc(100vw - 2 * var(--dx-space-2)); /* sin token: el ancho de la ventana menos el margen de 8px de Radix */
|
|
2106
|
+
|
|
2107
|
+
z-index: var(--dx-z-menu);
|
|
2108
|
+
box-sizing: border-box;
|
|
2109
|
+
min-width: min(var(--dx-size-menu-min), var(--dx-popover-max-width));
|
|
2110
|
+
max-width: var(--dx-popover-max-width);
|
|
2111
|
+
overflow-y: auto;
|
|
2112
|
+
padding: var(--dx-space-1_5);
|
|
2113
|
+
border-radius: var(--dx-radius-lg);
|
|
2114
|
+
background: var(--dx-bg-raised);
|
|
2115
|
+
box-shadow: var(--dx-shadow-pop);
|
|
2116
|
+
color: var(--dx-fg);
|
|
2117
|
+
font-family: var(--dx-font-ui);
|
|
2118
|
+
font-feature-settings: var(--dx-features-ui);
|
|
2119
|
+
font-size: var(--dx-text-ui);
|
|
2120
|
+
line-height: var(--dx-leading-ui);
|
|
2121
|
+
-webkit-font-smoothing: antialiased;
|
|
2122
|
+
outline: none;
|
|
2123
|
+
animation: dx-popover-in var(--dx-motion-fast) var(--dx-ease);
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
@keyframes dx-popover-in {
|
|
2127
|
+
from {
|
|
2128
|
+
opacity: 0;
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
/* Alto contraste: el navegador quita la sombra (y el borde de 1px de --dx-shadow-pop); un contorno de sistema separa el
|
|
2133
|
+
popover de la página sin cambiar su tamaño. */
|
|
2134
|
+
@media (forced-colors: active) {
|
|
2135
|
+
.dx-popover {
|
|
2136
|
+
outline: 1px solid CanvasText;
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2141
|
+
.dx-popover {
|
|
2142
|
+
animation: none;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
|
|
1329
2147
|
/* src/product-mark/product-mark.css */
|
|
1330
2148
|
/* ProductMark · D2.1. Logo de Dubix + raya + chip con el producto (las medidas de la pantalla de acceso de Gestión). */
|
|
1331
2149
|
@layer dx.components {
|
|
@@ -1445,6 +2263,16 @@
|
|
|
1445
2263
|
transition: box-shadow var(--dx-motion-fast) var(--dx-ease);
|
|
1446
2264
|
}
|
|
1447
2265
|
|
|
2266
|
+
/* sm: el alto de los controles sm (32px) y --dx-text-sm, con los paddings de Button sm a los lados. */
|
|
2267
|
+
.dx-select[data-size="sm"] {
|
|
2268
|
+
--dx-select-pl: 10px; /* sin token: padding izquierdo de sm */
|
|
2269
|
+
--dx-select-pr: 8px; /* sin token: padding derecho de sm (el chevron queda más cerca del borde) */
|
|
2270
|
+
|
|
2271
|
+
height: var(--dx-size-control-sm);
|
|
2272
|
+
font-size: var(--dx-text-sm);
|
|
2273
|
+
line-height: var(--dx-leading-sm);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
1448
2276
|
.dx-select__value {
|
|
1449
2277
|
flex: 1;
|
|
1450
2278
|
min-width: 0;
|
|
@@ -2281,6 +3109,16 @@
|
|
|
2281
3109
|
--dx-table-edge: var(--dx-space-3);
|
|
2282
3110
|
/* Sin token: la cabecera de tabla de D2.1 va en 13px, entre --dx-text-xs (12.5px) y --dx-text-sm (13.5px). */
|
|
2283
3111
|
--dx-table-head-text: 13px;
|
|
3112
|
+
/* Celda con secondary: los dos renglones apilados, el principal en 14/16 (D2.1 lo dibuja en 13,5: va en 14 para que el
|
|
3113
|
+
nombre mida lo mismo con y sin secundario; autorizado por Fede, 17/11/2026). 16 + 16 en la fila de 40. Cada densidad
|
|
3114
|
+
lo cambia en la tabla (no en un selector de descendiente): una tabla anidada declara los suyos. */
|
|
3115
|
+
--dx-table-lines-direction: column;
|
|
3116
|
+
--dx-table-lines-align: stretch;
|
|
3117
|
+
--dx-table-lines-gap: 0px;
|
|
3118
|
+
--dx-table-primary-leading: var(--dx-leading-xs);
|
|
3119
|
+
/* Sin token: el ancho del divisor inferior de la celda. Arriba, en las celdas de dos renglones, para centrarlos en la
|
|
3120
|
+
fila completa (4 + 32 + 4 en la de 40) y no en lo que queda sobre el divisor (3,5 arriba y 4,5 abajo). */
|
|
3121
|
+
--dx-table-lines-offset: 1px;
|
|
2284
3122
|
|
|
2285
3123
|
width: 100%;
|
|
2286
3124
|
margin: 0;
|
|
@@ -2291,6 +3129,20 @@
|
|
|
2291
3129
|
font-feature-settings: var(--dx-features-ui);
|
|
2292
3130
|
}
|
|
2293
3131
|
|
|
3132
|
+
/* comfortable (46px): el principal en 14/18; 18 + 16 en la fila de 46. */
|
|
3133
|
+
.dx-table[data-density="comfortable"] {
|
|
3134
|
+
--dx-table-primary-leading: var(--dx-leading-sm);
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
/* compact (34px): los dos renglones en la misma línea, alineados por la base y separados por --dx-space-2; el principal
|
|
3138
|
+
con el interlineado de una celda común. */
|
|
3139
|
+
.dx-table[data-density="compact"] {
|
|
3140
|
+
--dx-table-lines-direction: row;
|
|
3141
|
+
--dx-table-lines-align: baseline;
|
|
3142
|
+
--dx-table-lines-gap: var(--dx-space-2);
|
|
3143
|
+
--dx-table-primary-leading: var(--dx-leading-base);
|
|
3144
|
+
}
|
|
3145
|
+
|
|
2294
3146
|
.dx-table__head,
|
|
2295
3147
|
.dx-table__cell {
|
|
2296
3148
|
box-sizing: border-box;
|
|
@@ -2343,6 +3195,47 @@
|
|
|
2343
3195
|
color: var(--dx-fg-2);
|
|
2344
3196
|
}
|
|
2345
3197
|
|
|
3198
|
+
.dx-table__cell[data-lines="2"] {
|
|
3199
|
+
padding-top: var(--dx-table-lines-offset);
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
.dx-table__cell[data-strong="true"] {
|
|
3203
|
+
font-weight: 500;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
/* Dos renglones (secondary): cada uno con su elipsis. Con align="end", los dos a la derecha (text-align heredado al
|
|
3207
|
+
apilar; justify-content en compacta, donde van en fila). */
|
|
3208
|
+
.dx-table__lines {
|
|
3209
|
+
display: flex;
|
|
3210
|
+
flex-direction: var(--dx-table-lines-direction);
|
|
3211
|
+
align-items: var(--dx-table-lines-align);
|
|
3212
|
+
column-gap: var(--dx-table-lines-gap);
|
|
3213
|
+
min-width: 0;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
.dx-table__cell[data-align="end"] > .dx-table__lines {
|
|
3217
|
+
justify-content: flex-end;
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
.dx-table__primary,
|
|
3221
|
+
.dx-table__secondary {
|
|
3222
|
+
min-width: 0;
|
|
3223
|
+
overflow: hidden;
|
|
3224
|
+
text-overflow: ellipsis;
|
|
3225
|
+
white-space: nowrap;
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
.dx-table__primary {
|
|
3229
|
+
line-height: var(--dx-table-primary-leading);
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
.dx-table__secondary {
|
|
3233
|
+
color: var(--dx-fg-3);
|
|
3234
|
+
font-size: var(--dx-text-xs);
|
|
3235
|
+
font-weight: 400;
|
|
3236
|
+
line-height: var(--dx-leading-xs);
|
|
3237
|
+
}
|
|
3238
|
+
|
|
2346
3239
|
.dx-table__body > .dx-table__row:hover {
|
|
2347
3240
|
background-color: var(--dx-bg-hover);
|
|
2348
3241
|
}
|