@dubix/ui 0.10.0 → 0.12.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 +496 -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 +13 -8
- package/dist/pagination/Pagination.js +8 -3
- 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/search-input/SearchInput.d.ts +4 -2
- package/dist/search-input/SearchInput.js +5 -3
- 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/skip-link/SkipLink.d.ts +11 -0
- package/dist/skip-link/SkipLink.js +9 -0
- package/dist/skip-link/index.d.ts +2 -0
- package/dist/skip-link/index.js +1 -0
- package/dist/styles.css +955 -68
- package/dist/tooltip/Tooltip.d.ts +6 -1
- package/dist/tooltip/Tooltip.js +5 -4
- package/package.json +17 -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.12.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
|
|
@@ -791,74 +953,603 @@
|
|
|
791
953
|
animation: none;
|
|
792
954
|
}
|
|
793
955
|
}
|
|
794
|
-
}
|
|
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 arranca en --dx-size-search y crece hasta 480px; 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
|
+
/* El buscador arranca en --dx-size-search (340px) y, si en su fila sobra lugar, crece hasta el tope: a 340px los
|
|
1100
|
+
textos de ayuda largos de Gestión Web («Nombre, código, CUIT, teléfono o correo») quedaban cortados o al límite. Lo que sobra
|
|
1101
|
+
después del tope sigue empujando la cantidad a la derecha. Autorizado por Fede el 20/11/2026: se aparta del ancho fijo de D2.1. */
|
|
1102
|
+
.dx-filter-bar__search {
|
|
1103
|
+
--dx-filter-bar-search-max: 480px; /* sin token: ancho máximo del buscador cuando hay lugar */
|
|
1104
|
+
|
|
1105
|
+
flex: 1 1 var(--dx-size-search);
|
|
1106
|
+
min-width: 0;
|
|
1107
|
+
max-width: var(--dx-filter-bar-search-max);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.dx-filter-bar__end {
|
|
1111
|
+
display: flex;
|
|
1112
|
+
align-items: center;
|
|
1113
|
+
gap: var(--dx-space-2);
|
|
1114
|
+
margin-left: auto;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
.dx-filter-bar__count {
|
|
1118
|
+
color: var(--dx-fg-3);
|
|
1119
|
+
font-family: var(--dx-font-ui);
|
|
1120
|
+
font-feature-settings: var(--dx-features-ui);
|
|
1121
|
+
font-size: var(--dx-text-sm);
|
|
1122
|
+
line-height: var(--dx-leading-sm);
|
|
1123
|
+
white-space: nowrap;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/* Angosto (contenedor de menos de 640px, sin token: un @container no acepta var(), el umbral de PageHeader): el buscador
|
|
1127
|
+
ocupa su propia fila, a todo el ancho; los filtros y la cantidad envuelven debajo. */
|
|
1128
|
+
@container dx-filter-bar (width < 640px) {
|
|
1129
|
+
.dx-filter-bar__search {
|
|
1130
|
+
flex-basis: 100%;
|
|
1131
|
+
max-width: none;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/* ── Botón de filtro (FilterButton y FilterToggle) ─────────────────────────────────────────────────────────────── */
|
|
1136
|
+
/* [data-size] (Button siempre lo pone) sube la especificidad sobre .dx-btn: no depende del orden de styles.css. */
|
|
1137
|
+
.dx-filter-btn[data-size] {
|
|
1138
|
+
--dx-filter-btn-dot: 6px; /* sin token: diámetro del punto de filtro aplicado */
|
|
1139
|
+
--dx-btn-fg: var(--dx-fg-2);
|
|
1140
|
+
--dx-btn-icon: var(--dx-size-icon-sm);
|
|
1141
|
+
|
|
1142
|
+
gap: var(--dx-space-1_5);
|
|
1143
|
+
font-weight: 400;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.dx-filter-btn[data-size][data-active="true"] {
|
|
1147
|
+
--dx-btn-fg: var(--dx-fg);
|
|
1148
|
+
|
|
1149
|
+
font-weight: 500;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/* Abierto (data-state="open" de PopoverTrigger): el borde del hover, fijo mientras el popover está abierto. */
|
|
1153
|
+
.dx-filter-btn[data-variant][data-state="open"] {
|
|
1154
|
+
--dx-btn-border: var(--dx-border-input);
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.dx-filter-btn .dx-btn__icon {
|
|
1158
|
+
color: var(--dx-fg-3);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.dx-filter-btn__dot {
|
|
1162
|
+
flex: none;
|
|
1163
|
+
width: var(--dx-filter-btn-dot);
|
|
1164
|
+
height: var(--dx-filter-btn-dot);
|
|
1165
|
+
border-radius: var(--dx-radius-full);
|
|
1166
|
+
background: var(--dx-primary);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/* Texto solo para lectores de pantalla («, filtro aplicado»): el punto solo no alcanza. */
|
|
1170
|
+
.dx-filter-btn__sr {
|
|
1171
|
+
position: absolute;
|
|
1172
|
+
width: 1px;
|
|
1173
|
+
height: 1px;
|
|
1174
|
+
margin: -1px;
|
|
1175
|
+
padding: 0;
|
|
1176
|
+
overflow: hidden;
|
|
1177
|
+
clip-path: inset(50%);
|
|
1178
|
+
white-space: nowrap;
|
|
1179
|
+
border: 0;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/* ── Fila de filtros aplicados ─────────────────────────────────────────────────────────────────────────────────── */
|
|
1183
|
+
.dx-applied-filters {
|
|
1184
|
+
display: flex;
|
|
1185
|
+
flex-wrap: wrap;
|
|
1186
|
+
align-items: center;
|
|
1187
|
+
gap: var(--dx-space-1_5);
|
|
1188
|
+
min-width: 0;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/* ── Chip ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1192
|
+
.dx-filter-chip {
|
|
1193
|
+
--dx-filter-chip-max: 360px; /* sin token: ancho máximo del chip; el valor se corta con puntos suspensivos */
|
|
1194
|
+
--dx-filter-chip-remove: 26px; /* sin token: ancho del botón de la × */
|
|
1195
|
+
--dx-filter-chip-inner-radius: calc(var(--dx-radius-md) - 1px); /* el radio del chip menos su borde */
|
|
1196
|
+
|
|
1197
|
+
box-sizing: border-box;
|
|
1198
|
+
display: inline-flex;
|
|
1199
|
+
align-items: stretch;
|
|
1200
|
+
max-width: min(var(--dx-filter-chip-max), 100%);
|
|
1201
|
+
height: var(--dx-size-control-xs);
|
|
1202
|
+
border: 1px solid var(--dx-border-selected);
|
|
1203
|
+
border-radius: var(--dx-radius-md);
|
|
1204
|
+
background: var(--dx-bg-selected);
|
|
1205
|
+
color: var(--dx-fg-2);
|
|
1206
|
+
font-family: var(--dx-font-ui);
|
|
1207
|
+
font-feature-settings: var(--dx-features-ui);
|
|
1208
|
+
font-size: var(--dx-text-sm);
|
|
1209
|
+
line-height: var(--dx-leading-sm);
|
|
1210
|
+
transition: border-color var(--dx-motion-fast) var(--dx-ease);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/* Clicable (hijo de PopoverTrigger): con el puntero encima o con el popover abierto, el borde pasa a --dx-border-input,
|
|
1214
|
+
como el de FilterButton. */
|
|
1215
|
+
.dx-filter-chip:has(> button.dx-filter-chip__body:hover),
|
|
1216
|
+
.dx-filter-chip:has(> .dx-filter-chip__body[data-state="open"]) {
|
|
1217
|
+
border-color: var(--dx-border-input);
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
.dx-filter-chip__body {
|
|
1221
|
+
box-sizing: border-box;
|
|
1222
|
+
display: inline-flex;
|
|
1223
|
+
align-items: center;
|
|
1224
|
+
gap: var(--dx-space-1);
|
|
1225
|
+
min-width: 0;
|
|
1226
|
+
margin: 0;
|
|
1227
|
+
padding: 0 var(--dx-space-2_5);
|
|
1228
|
+
border: 0;
|
|
1229
|
+
border-radius: var(--dx-filter-chip-inner-radius);
|
|
1230
|
+
background: transparent;
|
|
1231
|
+
color: inherit;
|
|
1232
|
+
font: inherit;
|
|
1233
|
+
font-feature-settings: inherit; /* el reset del navegador para <button> no hereda el del chip */
|
|
1234
|
+
letter-spacing: inherit;
|
|
1235
|
+
white-space: nowrap;
|
|
1236
|
+
outline: none;
|
|
1237
|
+
appearance: none;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
button.dx-filter-chip__body {
|
|
1241
|
+
cursor: pointer;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/* Con la ×, el cuerpo no lleva padding a la derecha: el botón de 26px ya separa el texto del borde. */
|
|
1245
|
+
.dx-filter-chip:has(> .dx-filter-chip__remove) .dx-filter-chip__body {
|
|
1246
|
+
padding-right: 0;
|
|
1247
|
+
border-top-right-radius: 0;
|
|
1248
|
+
border-bottom-right-radius: 0;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
.dx-filter-chip__label {
|
|
1252
|
+
flex: none;
|
|
1253
|
+
color: var(--dx-fg-2);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/* El valor (o, sin valor, la etiqueta sola, que es lo que está filtrando): --dx-fg con peso 500, cortado si no entra. */
|
|
1257
|
+
.dx-filter-chip__value {
|
|
1258
|
+
min-width: 0;
|
|
1259
|
+
overflow: hidden;
|
|
1260
|
+
color: var(--dx-fg);
|
|
1261
|
+
font-weight: 500;
|
|
1262
|
+
text-overflow: ellipsis;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.dx-filter-chip__remove {
|
|
1266
|
+
display: inline-flex;
|
|
1267
|
+
flex: none;
|
|
1268
|
+
align-items: center;
|
|
1269
|
+
justify-content: center;
|
|
1270
|
+
width: var(--dx-filter-chip-remove);
|
|
1271
|
+
margin: 0;
|
|
1272
|
+
padding: 0;
|
|
1273
|
+
border: 0;
|
|
1274
|
+
border-radius: 0 var(--dx-filter-chip-inner-radius) var(--dx-filter-chip-inner-radius) 0;
|
|
1275
|
+
background: transparent;
|
|
1276
|
+
color: var(--dx-fg-3);
|
|
1277
|
+
outline: none;
|
|
1278
|
+
appearance: none;
|
|
1279
|
+
cursor: pointer;
|
|
1280
|
+
transition: color var(--dx-motion-fast) var(--dx-ease);
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.dx-filter-chip__remove:hover {
|
|
1284
|
+
color: var(--dx-fg);
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
.dx-filter-chip__remove > svg {
|
|
1288
|
+
width: var(--dx-size-icon-sm);
|
|
1289
|
+
height: var(--dx-size-icon-sm);
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/* Foco por teclado en el cuerpo, en la × o en el texto con Tooltip: anillo de 2px --dx-ring por dentro del chip. */
|
|
1293
|
+
.dx-filter-chip__body:focus-visible,
|
|
1294
|
+
.dx-filter-chip__remove:focus-visible {
|
|
1295
|
+
outline: 2px solid var(--dx-ring);
|
|
1296
|
+
outline-offset: -2px;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/* ── Lista de opciones (FilterOptions) ─────────────────────────────────────────────────────────────────────────
|
|
1300
|
+
Va dentro de un PopoverContent (que pone el padding de 6px). Arriba, el campo para buscar; en el medio, la lista con alto
|
|
1301
|
+
máximo y desplazamiento propio; abajo, «Quitar filtro». El campo y el pie no se desplazan. Cada opción tiene los valores
|
|
1302
|
+
del ítem de DropdownMenu: 36px de alto (más con descripción), padding 0 10px, gap 10px, radio --dx-radius-md,
|
|
1303
|
+
--dx-text-base en --dx-fg; activa (teclado) o con el puntero, --dx-bg-selected. Grupos con el título de DropdownMenu. */
|
|
1304
|
+
.dx-filter-options {
|
|
1305
|
+
--dx-filter-options-max: 320px; /* sin token: alto máximo de la lista antes de desplazarse */
|
|
1306
|
+
|
|
1307
|
+
display: flex;
|
|
1308
|
+
flex-direction: column;
|
|
1309
|
+
min-width: 0;
|
|
1310
|
+
max-height: inherit;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.dx-filter-options__search {
|
|
1314
|
+
flex: none;
|
|
1315
|
+
padding-bottom: var(--dx-space-1_5);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.dx-filter-options__list {
|
|
1319
|
+
flex: 0 1 auto;
|
|
1320
|
+
min-height: 0;
|
|
1321
|
+
max-height: var(--dx-filter-options-max);
|
|
1322
|
+
overflow-y: auto;
|
|
1323
|
+
outline: none;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.dx-filter-options__group-label {
|
|
1327
|
+
padding: var(--dx-space-1_5) var(--dx-space-2_5) var(--dx-space-2);
|
|
1328
|
+
color: var(--dx-fg);
|
|
1329
|
+
font-size: var(--dx-text-sm);
|
|
1330
|
+
font-weight: 600;
|
|
1331
|
+
line-height: var(--dx-leading-sm);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
.dx-filter-options__option {
|
|
1335
|
+
display: flex;
|
|
1336
|
+
align-items: center;
|
|
1337
|
+
gap: var(--dx-space-2_5);
|
|
1338
|
+
box-sizing: border-box;
|
|
1339
|
+
min-height: var(--dx-space-9);
|
|
1340
|
+
padding: 0 var(--dx-space-2_5);
|
|
1341
|
+
border-radius: var(--dx-radius-md);
|
|
1342
|
+
color: var(--dx-fg);
|
|
1343
|
+
font-size: var(--dx-text-base);
|
|
1344
|
+
line-height: var(--dx-leading-base);
|
|
1345
|
+
cursor: pointer;
|
|
1346
|
+
outline: none;
|
|
1347
|
+
user-select: none;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/* Con descripción, dos líneas: 6px arriba y abajo para que no toquen el borde del resaltado. */
|
|
1351
|
+
.dx-filter-options__option[aria-describedby] {
|
|
1352
|
+
padding-block: var(--dx-space-1_5);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/* Activa (el teclado o el puntero): el resaltado de los ítems de DropdownMenu. */
|
|
1356
|
+
.dx-filter-options__option[data-active="true"] {
|
|
1357
|
+
background: var(--dx-bg-selected);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.dx-filter-options__option[aria-disabled="true"] {
|
|
1361
|
+
background: transparent;
|
|
1362
|
+
opacity: 0.45;
|
|
1363
|
+
cursor: not-allowed;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.dx-filter-options__text {
|
|
1367
|
+
display: flex;
|
|
1368
|
+
flex: 1;
|
|
1369
|
+
flex-direction: column;
|
|
1370
|
+
min-width: 0;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.dx-filter-options__label {
|
|
1374
|
+
overflow: hidden;
|
|
1375
|
+
text-overflow: ellipsis;
|
|
1376
|
+
white-space: nowrap;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
/* Un valor: la elegida con peso 500 y el tilde de 16px a la derecha, en --dx-fg. */
|
|
1380
|
+
.dx-filter-options__option[data-selected="true"]:not(.dx-filter-options[data-multiple] *) .dx-filter-options__label {
|
|
1381
|
+
font-weight: 500;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.dx-filter-options__description {
|
|
1385
|
+
color: var(--dx-fg-3);
|
|
1386
|
+
font-size: var(--dx-text-xs);
|
|
1387
|
+
line-height: var(--dx-leading-xs);
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/* meta: texto corto a la derecha (p. ej. un saldo), --dx-text-sm en --dx-fg-3 con cifras tabulares; no se corta. */
|
|
1391
|
+
.dx-filter-options__meta {
|
|
1392
|
+
flex: none;
|
|
1393
|
+
color: var(--dx-fg-3);
|
|
1394
|
+
font-size: var(--dx-text-sm);
|
|
1395
|
+
font-variant-numeric: tabular-nums;
|
|
1396
|
+
line-height: var(--dx-leading-sm);
|
|
1397
|
+
white-space: nowrap;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.dx-filter-options__mark {
|
|
1401
|
+
display: inline-flex;
|
|
1402
|
+
flex: none;
|
|
1403
|
+
width: var(--dx-size-icon);
|
|
1404
|
+
height: var(--dx-size-icon);
|
|
1405
|
+
color: var(--dx-fg);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
.dx-filter-options__mark > svg {
|
|
1409
|
+
width: 100%;
|
|
1410
|
+
height: 100%;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
/* La caja de Checkbox (varios valores) va alineada con la primera línea de la opción. */
|
|
1414
|
+
.dx-filter-options__option > .dx-checkbox {
|
|
1415
|
+
flex: none;
|
|
1416
|
+
align-self: flex-start;
|
|
1417
|
+
margin-top: calc((var(--dx-leading-base) - var(--dx-checkbox-size)) / 2);
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.dx-filter-options__skeleton {
|
|
1421
|
+
display: flex;
|
|
1422
|
+
align-items: center;
|
|
1423
|
+
height: var(--dx-space-9);
|
|
1424
|
+
padding: 0 var(--dx-space-2_5);
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.dx-filter-options__empty {
|
|
1428
|
+
padding: var(--dx-space-2) var(--dx-space-2_5);
|
|
1429
|
+
color: var(--dx-fg-3);
|
|
1430
|
+
font-size: var(--dx-text-sm);
|
|
1431
|
+
line-height: var(--dx-leading-sm);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.dx-filter-options__empty:empty {
|
|
1435
|
+
display: none;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/* 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. */
|
|
1439
|
+
.dx-filter-options__notice {
|
|
1440
|
+
display: flex;
|
|
1441
|
+
flex-wrap: wrap;
|
|
1442
|
+
align-items: center;
|
|
1443
|
+
gap: var(--dx-space-1) var(--dx-space-2);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.dx-filter-options__footer {
|
|
1447
|
+
display: flex;
|
|
1448
|
+
flex: none;
|
|
1449
|
+
justify-content: flex-start;
|
|
1450
|
+
margin-top: var(--dx-space-1_5);
|
|
1451
|
+
padding-top: var(--dx-space-1_5);
|
|
1452
|
+
border-top: 1px solid var(--dx-border);
|
|
1453
|
+
}
|
|
795
1454
|
|
|
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 */
|
|
1455
|
+
/* ── Período (FilterPeriod) e importe (FilterAmountRange) ─────────────────────────────────────────────────────────
|
|
1456
|
+
Los dos campos (Field con Input) lado a lado, en 320px: Desde y Hasta. En el período van debajo de la lista, separados
|
|
1457
|
+
por una línea de 1px --dx-border como el pie de FilterOptions; en el importe, solos en el popover. */
|
|
1458
|
+
.dx-filter-period {
|
|
1459
|
+
--dx-filter-period-fields: 320px; /* sin token: ancho de los dos campos de fecha (un type="date" de es-AR con su ícono) */
|
|
802
1460
|
|
|
803
1461
|
display: flex;
|
|
804
1462
|
flex-direction: column;
|
|
805
|
-
align-items: center;
|
|
806
|
-
gap: var(--dx-space-2_5);
|
|
807
|
-
box-sizing: border-box;
|
|
808
1463
|
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
1464
|
}
|
|
818
1465
|
|
|
819
|
-
.dx-
|
|
820
|
-
display:
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
1466
|
+
.dx-filter-period__range {
|
|
1467
|
+
display: grid;
|
|
1468
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1469
|
+
align-items: start;
|
|
1470
|
+
gap: var(--dx-space-2);
|
|
1471
|
+
box-sizing: border-box;
|
|
1472
|
+
width: var(--dx-filter-period-fields);
|
|
1473
|
+
max-width: 100%;
|
|
1474
|
+
margin-top: var(--dx-space-1_5);
|
|
1475
|
+
padding: var(--dx-space-2) var(--dx-space-1) var(--dx-space-1);
|
|
1476
|
+
border-top: 1px solid var(--dx-border);
|
|
825
1477
|
}
|
|
826
1478
|
|
|
827
|
-
.dx-
|
|
1479
|
+
.dx-filter-amount {
|
|
1480
|
+
--dx-filter-amount-fields: 320px; /* sin token: ancho de los dos campos de importe, como los de fecha */
|
|
1481
|
+
|
|
1482
|
+
display: grid;
|
|
1483
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1484
|
+
align-items: start;
|
|
1485
|
+
gap: var(--dx-space-2);
|
|
1486
|
+
box-sizing: border-box;
|
|
1487
|
+
width: var(--dx-filter-amount-fields);
|
|
1488
|
+
max-width: 100%;
|
|
1489
|
+
padding: var(--dx-space-1);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/* El signo $ en el lugar del ícono inicial del Input (16px, --dx-fg-3): texto, centrado. */
|
|
1493
|
+
.dx-filter-amount__currency {
|
|
1494
|
+
display: inline-flex;
|
|
1495
|
+
align-items: center;
|
|
1496
|
+
justify-content: center;
|
|
828
1497
|
width: 100%;
|
|
829
1498
|
height: 100%;
|
|
1499
|
+
font-weight: 500;
|
|
830
1500
|
}
|
|
831
1501
|
|
|
832
|
-
|
|
833
|
-
|
|
1502
|
+
/* ── Panel «Filtrar» (FilterPanel, FilterPanelSection y FilterField) ──────────────────────────────────────────────
|
|
1503
|
+
Es un Drawer: el panel, el velo, el foco y el cierre salen de drawer.css. Acá, el cuerpo en secciones separadas por
|
|
1504
|
+
--dx-space-6, cada una con el título chico de los grupos de FilterOptions (600, --dx-text-sm, --dx-fg); los campos con
|
|
1505
|
+
la etiqueta de Field arriba y un botón con el aspecto del disparador de Select (38px, borde --dx-border-input como
|
|
1506
|
+
sombra interior, radio --dx-radius-md, la flecha de 16px en --dx-fg-3); el pie con «Limpiar filtros» a la izquierda y el
|
|
1507
|
+
botón que cierra a la derecha. */
|
|
1508
|
+
.dx-filter-panel {
|
|
1509
|
+
display: flex;
|
|
1510
|
+
flex-direction: column;
|
|
1511
|
+
gap: var(--dx-space-6);
|
|
1512
|
+
outline: none;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.dx-filter-panel__section {
|
|
1516
|
+
display: flex;
|
|
1517
|
+
flex-direction: column;
|
|
1518
|
+
gap: var(--dx-space-2);
|
|
1519
|
+
min-width: 0;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.dx-filter-panel__title {
|
|
1523
|
+
margin: 0;
|
|
834
1524
|
color: var(--dx-fg);
|
|
835
|
-
font-size: var(--dx-text-
|
|
1525
|
+
font-size: var(--dx-text-sm);
|
|
836
1526
|
font-weight: 600;
|
|
837
|
-
line-height: var(--dx-leading-
|
|
838
|
-
letter-spacing: var(--dx-tracking-lg);
|
|
1527
|
+
line-height: var(--dx-leading-sm);
|
|
839
1528
|
}
|
|
840
1529
|
|
|
841
|
-
.dx-
|
|
842
|
-
|
|
843
|
-
|
|
1530
|
+
.dx-filter-panel__content {
|
|
1531
|
+
display: flex;
|
|
1532
|
+
flex-direction: column;
|
|
1533
|
+
gap: var(--dx-space-4);
|
|
1534
|
+
min-width: 0;
|
|
844
1535
|
}
|
|
845
1536
|
|
|
846
|
-
.dx-
|
|
1537
|
+
.dx-filter-panel__footer {
|
|
847
1538
|
display: flex;
|
|
848
|
-
flex
|
|
1539
|
+
flex: 1;
|
|
849
1540
|
align-items: center;
|
|
850
|
-
justify-content: center;
|
|
851
1541
|
gap: var(--dx-space-2);
|
|
852
|
-
margin-top: var(--dx-space-1_5);
|
|
853
1542
|
}
|
|
854
|
-
}
|
|
855
1543
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
--dx-field-label-
|
|
1544
|
+
.dx-filter-panel__submit[data-size] {
|
|
1545
|
+
margin-left: auto;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
.dx-filter-field {
|
|
1549
|
+
--dx-filter-field-label-fs: 13px; /* sin token: la etiqueta de Field en D2.1 (entre text-xs y text-sm) */
|
|
1550
|
+
--dx-filter-field-label-lh: 16px; /* sin token: su interlineado */
|
|
1551
|
+
--dx-filter-field-pl: 12px; /* sin token: padding izquierdo de los campos en D2.1 (el de Input y Select) */
|
|
1552
|
+
--dx-filter-field-pr: 10px; /* sin token: padding derecho de los campos en D2.1 */
|
|
862
1553
|
|
|
863
1554
|
display: flex;
|
|
864
1555
|
flex-direction: column;
|
|
@@ -868,43 +1559,105 @@
|
|
|
868
1559
|
font-feature-settings: var(--dx-features-ui);
|
|
869
1560
|
}
|
|
870
1561
|
|
|
871
|
-
.dx-field__label {
|
|
1562
|
+
.dx-filter-field__label {
|
|
872
1563
|
align-self: flex-start;
|
|
873
1564
|
color: var(--dx-fg-2);
|
|
874
|
-
font-size: var(--dx-field-label-fs);
|
|
1565
|
+
font-size: var(--dx-filter-field-label-fs);
|
|
875
1566
|
font-weight: 500;
|
|
876
|
-
line-height: var(--dx-field-label-lh);
|
|
1567
|
+
line-height: var(--dx-filter-field-label-lh);
|
|
877
1568
|
}
|
|
878
1569
|
|
|
879
|
-
.dx-
|
|
880
|
-
|
|
881
|
-
|
|
1570
|
+
.dx-filter-field__control {
|
|
1571
|
+
box-sizing: border-box;
|
|
1572
|
+
display: flex;
|
|
1573
|
+
align-items: center;
|
|
1574
|
+
gap: var(--dx-space-2);
|
|
1575
|
+
width: 100%;
|
|
1576
|
+
height: var(--dx-size-control-md);
|
|
1577
|
+
margin: 0;
|
|
1578
|
+
padding: 0 var(--dx-filter-field-pr) 0 var(--dx-filter-field-pl);
|
|
1579
|
+
border: 0;
|
|
1580
|
+
border-radius: var(--dx-radius-md);
|
|
1581
|
+
background: var(--dx-bg-app);
|
|
1582
|
+
box-shadow: inset 0 0 0 1px var(--dx-border-input);
|
|
1583
|
+
color: var(--dx-fg);
|
|
1584
|
+
font: inherit;
|
|
1585
|
+
font-size: var(--dx-text-ui);
|
|
1586
|
+
line-height: var(--dx-leading-ui);
|
|
1587
|
+
text-align: start;
|
|
1588
|
+
outline: none;
|
|
1589
|
+
appearance: none;
|
|
1590
|
+
cursor: pointer;
|
|
1591
|
+
transition: box-shadow var(--dx-motion-fast) var(--dx-ease);
|
|
882
1592
|
}
|
|
883
1593
|
|
|
884
|
-
.
|
|
885
|
-
.dx-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
line-height: var(--dx-leading-xs);
|
|
1594
|
+
/* Foco por teclado y popover abierto: el foco interior de los campos, como Select. */
|
|
1595
|
+
.dx-filter-field__control:focus-visible,
|
|
1596
|
+
.dx-filter-field__control[data-state="open"] {
|
|
1597
|
+
box-shadow: var(--dx-shadow-focus);
|
|
889
1598
|
}
|
|
890
1599
|
|
|
891
|
-
.dx-
|
|
892
|
-
|
|
1600
|
+
.dx-filter-field__value {
|
|
1601
|
+
flex: 1;
|
|
1602
|
+
min-width: 0;
|
|
1603
|
+
overflow: hidden;
|
|
1604
|
+
text-overflow: ellipsis;
|
|
1605
|
+
white-space: nowrap;
|
|
893
1606
|
}
|
|
894
1607
|
|
|
895
|
-
.
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
gap: var(--dx-space-1);
|
|
899
|
-
color: var(--dx-danger);
|
|
1608
|
+
/* Sin valor: «Cualquiera», en el color del placeholder de Input. */
|
|
1609
|
+
.dx-filter-field__control[data-empty="true"] .dx-filter-field__value {
|
|
1610
|
+
color: var(--dx-fg-3);
|
|
900
1611
|
}
|
|
901
1612
|
|
|
902
|
-
|
|
903
|
-
|
|
1613
|
+
.dx-filter-field__icon {
|
|
1614
|
+
display: inline-flex;
|
|
904
1615
|
flex-shrink: 0;
|
|
905
|
-
width: var(--dx-size-icon
|
|
906
|
-
height: var(--dx-size-icon
|
|
907
|
-
|
|
1616
|
+
width: var(--dx-size-icon);
|
|
1617
|
+
height: var(--dx-size-icon);
|
|
1618
|
+
color: var(--dx-fg-3);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
.dx-filter-field__icon > svg {
|
|
1622
|
+
width: 100%;
|
|
1623
|
+
height: 100%;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
/* Alto contraste: el navegador quita el fondo; el borde del chip ya es un borde real. El punto pasa a un color de sistema
|
|
1627
|
+
(si no, desaparece con el fondo). */
|
|
1628
|
+
@media (forced-colors: active) {
|
|
1629
|
+
.dx-filter-btn__dot {
|
|
1630
|
+
background: CanvasText;
|
|
1631
|
+
forced-color-adjust: none;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
.dx-filter-chip__body:focus-visible,
|
|
1635
|
+
.dx-filter-chip__remove:focus-visible {
|
|
1636
|
+
outline-color: Highlight;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
.dx-filter-options__option[data-active="true"] {
|
|
1640
|
+
outline: 1px solid Highlight;
|
|
1641
|
+
outline-offset: -1px;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
.dx-filter-field__control {
|
|
1645
|
+
outline: 1px solid CanvasText;
|
|
1646
|
+
outline-offset: -1px;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.dx-filter-field__control:focus-visible,
|
|
1650
|
+
.dx-filter-field__control[data-state="open"] {
|
|
1651
|
+
outline: 2px solid Highlight;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1656
|
+
.dx-filter-chip,
|
|
1657
|
+
.dx-filter-chip__remove,
|
|
1658
|
+
.dx-filter-field__control {
|
|
1659
|
+
transition: none;
|
|
1660
|
+
}
|
|
908
1661
|
}
|
|
909
1662
|
}
|
|
910
1663
|
|
|
@@ -1238,6 +1991,27 @@
|
|
|
1238
1991
|
white-space: nowrap;
|
|
1239
1992
|
}
|
|
1240
1993
|
|
|
1994
|
+
/* 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
|
|
1995
|
+
fila; los controles siguen a la derecha y, si no entran, bajan). */
|
|
1996
|
+
.dx-pagination__size {
|
|
1997
|
+
--dx-pagination-size-select: 76px; /* sin token: ancho del Select de filas por página (tres cifras y el chevron) */
|
|
1998
|
+
|
|
1999
|
+
display: flex;
|
|
2000
|
+
margin-right: auto;
|
|
2001
|
+
align-items: center;
|
|
2002
|
+
gap: var(--dx-space-2);
|
|
2003
|
+
white-space: nowrap;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
.dx-pagination__size-label {
|
|
2007
|
+
color: var(--dx-fg-2);
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/* Dentro de .dx-pagination__size sube la especificidad sobre el ancho de .dx-select, sin depender del orden de styles.css. */
|
|
2011
|
+
.dx-pagination__size .dx-pagination__size-select {
|
|
2012
|
+
width: var(--dx-pagination-size-select);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1241
2015
|
.dx-pagination__controls {
|
|
1242
2016
|
display: flex;
|
|
1243
2017
|
align-items: center;
|
|
@@ -1326,6 +2100,57 @@
|
|
|
1326
2100
|
}
|
|
1327
2101
|
}
|
|
1328
2102
|
|
|
2103
|
+
/* src/popover/popover.css */
|
|
2104
|
+
/* Popover · la caja de DropdownMenu (.menu de D2.1) para contenido libre: los filtros de los listados. Mismo contenedor que
|
|
2105
|
+
.dx-menu: ancho mínimo --dx-size-menu-min, padding 6px, radio --dx-radius-lg, fondo --dx-bg-raised, --dx-shadow-pop (que
|
|
2106
|
+
trae su borde de 1px) y --dx-z-menu; misma separación del disparador (6px, en Popover.tsx) y mismo fundido de entrada.
|
|
2107
|
+
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
|
|
2108
|
+
línea, desde Popover.tsx): lo que no entra se desplaza. Radix copia el z-index del contenido a su contenedor posicionado,
|
|
2109
|
+
así que basta declararlo acá. */
|
|
2110
|
+
@layer dx.components {
|
|
2111
|
+
.dx-popover {
|
|
2112
|
+
--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 */
|
|
2113
|
+
|
|
2114
|
+
z-index: var(--dx-z-menu);
|
|
2115
|
+
box-sizing: border-box;
|
|
2116
|
+
min-width: min(var(--dx-size-menu-min), var(--dx-popover-max-width));
|
|
2117
|
+
max-width: var(--dx-popover-max-width);
|
|
2118
|
+
overflow-y: auto;
|
|
2119
|
+
padding: var(--dx-space-1_5);
|
|
2120
|
+
border-radius: var(--dx-radius-lg);
|
|
2121
|
+
background: var(--dx-bg-raised);
|
|
2122
|
+
box-shadow: var(--dx-shadow-pop);
|
|
2123
|
+
color: var(--dx-fg);
|
|
2124
|
+
font-family: var(--dx-font-ui);
|
|
2125
|
+
font-feature-settings: var(--dx-features-ui);
|
|
2126
|
+
font-size: var(--dx-text-ui);
|
|
2127
|
+
line-height: var(--dx-leading-ui);
|
|
2128
|
+
-webkit-font-smoothing: antialiased;
|
|
2129
|
+
outline: none;
|
|
2130
|
+
animation: dx-popover-in var(--dx-motion-fast) var(--dx-ease);
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
@keyframes dx-popover-in {
|
|
2134
|
+
from {
|
|
2135
|
+
opacity: 0;
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
/* Alto contraste: el navegador quita la sombra (y el borde de 1px de --dx-shadow-pop); un contorno de sistema separa el
|
|
2140
|
+
popover de la página sin cambiar su tamaño. */
|
|
2141
|
+
@media (forced-colors: active) {
|
|
2142
|
+
.dx-popover {
|
|
2143
|
+
outline: 1px solid CanvasText;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2148
|
+
.dx-popover {
|
|
2149
|
+
animation: none;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
1329
2154
|
/* src/product-mark/product-mark.css */
|
|
1330
2155
|
/* ProductMark · D2.1. Logo de Dubix + raya + chip con el producto (las medidas de la pantalla de acceso de Gestión). */
|
|
1331
2156
|
@layer dx.components {
|
|
@@ -1445,6 +2270,16 @@
|
|
|
1445
2270
|
transition: box-shadow var(--dx-motion-fast) var(--dx-ease);
|
|
1446
2271
|
}
|
|
1447
2272
|
|
|
2273
|
+
/* sm: el alto de los controles sm (32px) y --dx-text-sm, con los paddings de Button sm a los lados. */
|
|
2274
|
+
.dx-select[data-size="sm"] {
|
|
2275
|
+
--dx-select-pl: 10px; /* sin token: padding izquierdo de sm */
|
|
2276
|
+
--dx-select-pr: 8px; /* sin token: padding derecho de sm (el chevron queda más cerca del borde) */
|
|
2277
|
+
|
|
2278
|
+
height: var(--dx-size-control-sm);
|
|
2279
|
+
font-size: var(--dx-text-sm);
|
|
2280
|
+
line-height: var(--dx-leading-sm);
|
|
2281
|
+
}
|
|
2282
|
+
|
|
1448
2283
|
.dx-select__value {
|
|
1449
2284
|
flex: 1;
|
|
1450
2285
|
min-width: 0;
|
|
@@ -2155,6 +2990,58 @@
|
|
|
2155
2990
|
}
|
|
2156
2991
|
}
|
|
2157
2992
|
|
|
2993
|
+
/* src/skip-link/skip-link.css */
|
|
2994
|
+
/* SkipLink · el enlace «Saltar al contenido». Fijo arriba a la izquierda de la ventana, a --dx-space-2 de los bordes y por
|
|
2995
|
+
encima de todo (--dx-z-toast). Solo se ve con el foco del teclado (:focus-visible): sin él queda recortado a 1px, pero sigue
|
|
2996
|
+
en el orden de tabulación y lo leen los lectores de pantalla. A la vista: alto --dx-size-control-md, fondo --dx-bg-card con
|
|
2997
|
+
--dx-shadow-pop, texto --dx-text-ui en --dx-fg con peso 500 y el anillo de foco de D2.1 (2px --dx-ring, offset 2px). */
|
|
2998
|
+
@layer dx.components {
|
|
2999
|
+
.dx-skip-link {
|
|
3000
|
+
position: fixed;
|
|
3001
|
+
top: var(--dx-space-2);
|
|
3002
|
+
left: var(--dx-space-2);
|
|
3003
|
+
z-index: var(--dx-z-toast);
|
|
3004
|
+
box-sizing: border-box;
|
|
3005
|
+
display: inline-flex;
|
|
3006
|
+
align-items: center;
|
|
3007
|
+
height: var(--dx-size-control-md);
|
|
3008
|
+
padding: 0 var(--dx-space-4);
|
|
3009
|
+
border-radius: var(--dx-radius-md);
|
|
3010
|
+
background: var(--dx-bg-card);
|
|
3011
|
+
box-shadow: var(--dx-shadow-pop);
|
|
3012
|
+
color: var(--dx-fg);
|
|
3013
|
+
font-family: var(--dx-font-ui);
|
|
3014
|
+
font-feature-settings: var(--dx-features-ui);
|
|
3015
|
+
font-size: var(--dx-text-ui);
|
|
3016
|
+
font-weight: 500;
|
|
3017
|
+
line-height: 1;
|
|
3018
|
+
white-space: nowrap;
|
|
3019
|
+
text-decoration: none;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
/* Sin el foco del teclado: oculto a la vista, no a los lectores de pantalla ni al Tab. */
|
|
3023
|
+
.dx-skip-link:not(:focus-visible) {
|
|
3024
|
+
width: 1px;
|
|
3025
|
+
height: 1px;
|
|
3026
|
+
padding: 0;
|
|
3027
|
+
overflow: hidden;
|
|
3028
|
+
clip-path: inset(50%);
|
|
3029
|
+
box-shadow: none;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
.dx-skip-link:focus-visible {
|
|
3033
|
+
outline: 2px solid var(--dx-ring);
|
|
3034
|
+
outline-offset: 2px;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
/* Alto contraste: la sombra desaparece; un borde marca la caja. */
|
|
3038
|
+
@media (forced-colors: active) {
|
|
3039
|
+
.dx-skip-link:focus-visible {
|
|
3040
|
+
border: 1px solid CanvasText;
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
|
|
2158
3045
|
/* src/stat/stat.css */
|
|
2159
3046
|
/* Stat · D2. Indicador (KPI) sin tarjeta ni sombra: etiqueta, valor y una línea secundaria; los indicadores van en una fila
|
|
2160
3047
|
separados por reglas verticales de --dx-border-strong. El grupo es el contenedor de la container query: con menos de
|