orbital-ds 0.12.0 → 0.13.1
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/AGENTS.md +33 -5
- package/README.md +93 -93
- package/components.manifest.json +1906 -1854
- package/contract.json +1 -1
- package/dist/motion.css +139 -0
- package/dist/styles.css +17 -2
- package/dist/themes/fractalia.css +473 -464
- package/dist/themes/fractalia.fonts.css +3 -3
- package/dist/themes/fractalia.guide.md +79 -77
- package/dist/themes/fractalia.meta.json +99 -96
- package/dist/themes/fractalia.scoped.css +473 -464
- package/dist/themes/friendly.css +16 -13
- package/dist/themes/friendly.meta.json +7 -0
- package/dist/themes/friendly.scoped.css +16 -13
- package/dist/themes/qratia.css +13 -8
- package/dist/themes/qratia.meta.json +8 -1
- package/dist/themes/qratia.scoped.css +13 -8
- package/dist/themes/tactile.css +17 -6
- package/dist/themes/tactile.meta.json +7 -0
- package/dist/themes/tactile.scoped.css +17 -6
- package/dist/themes/twitter.css +13 -12
- package/dist/themes/twitter.meta.json +7 -0
- package/dist/themes/twitter.scoped.css +13 -12
- package/dist/themes/zyro.css +15 -26
- package/dist/themes/zyro.meta.json +7 -0
- package/dist/themes/zyro.scoped.css +15 -26
- package/dist/ui/alert.js +6 -5
- package/dist/ui/badge.js +6 -6
- package/dist/ui/banner.js +4 -4
- package/dist/ui/button.js +4 -4
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/dropdown-menu.js +4 -4
- package/dist/ui/item.d.ts +2 -2
- package/dist/ui/item.js +14 -4
- package/dist/ui/menubar.js +4 -4
- package/dist/ui/native-select.js +2 -2
- package/dist/ui/select.js +7 -8
- package/dist/ui/stat.d.ts +11 -1
- package/dist/ui/stat.js +13 -3
- package/dist/ui/status-badge.js +6 -6
- package/docs/adr/0002-sistemas-corporativos-al-modelo.md +176 -176
- package/docs/designer/flujo.md +79 -0
- package/docs/designer/patrones.md +116 -0
- package/docs/designer/revision.md +60 -0
- package/docs/designer/ux.md +71 -0
- package/package.json +9 -2
- package/scripts/brand-core.mjs +51 -13
- package/scripts/cli.mjs +370 -0
- package/scripts/doctor.mjs +76 -7
- package/scripts/init.mjs +187 -125
- package/scripts/manifest.mjs +85 -79
- package/scripts/setup.mjs +2 -1
- package/scripts/skill.mjs +67 -0
- package/skill/SKILL.md +47 -0
package/contract.json
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
"slotTokens": {
|
|
152
|
-
"descripcion": "Huecos públicos de una pieza: si la PERSONALIDAD de un tema pinta esa propiedad de esa pieza, debe hacerlo rellenando el hueco (en sus VARIABLES), no con una regla que lo rodee.
|
|
152
|
+
"descripcion": "Huecos públicos de una pieza: si la PERSONALIDAD de un tema pinta esa propiedad de esa pieza, debe hacerlo rellenando el hueco (en sus VARIABLES), no con una regla que lo rodee. Error en los temas «strict» y aviso en los demás (ADR 0002, F1b).",
|
|
153
153
|
"slots": {
|
|
154
154
|
"button": {
|
|
155
155
|
"border-radius": "--ds-radius-button"
|
package/dist/motion.css
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* orbital-ds · MOVIMIENTO AUTOMÁTICO (opcional): animaciones de fábrica sin escribir código.
|
|
3
|
+
*
|
|
4
|
+
* @import 'orbital-ds/motion.css'; (después del tema, en el CSS de la app)
|
|
5
|
+
*
|
|
6
|
+
* Qué hace, con el ritmo y la coreografía del TEMA activo (--ds-motion-*, --ds-ease-*,
|
|
7
|
+
* --ds-motion-distance, -scale, -blur, -stagger, -press-scale, --ds-hover-lift):
|
|
8
|
+
* - ENTRADA: tarjetas, paneles, KPI, filas-tarjeta, avisos, cabeceras de página y filas de
|
|
9
|
+
* tabla aparecen subiendo y fundiéndose, en CASCADA entre hermanas.
|
|
10
|
+
* - SUPERFICIES PULSABLES (tarjeta o fila-tarjeta que es enlace o botón): al pasar, la sombra
|
|
11
|
+
* de hover del tema y su elevación; al pulsar, se hunden un poco.
|
|
12
|
+
* - Movimiento reducido: no anima nada (y la regla global de la estructura lo refuerza).
|
|
13
|
+
*
|
|
14
|
+
* Interruptores por grupo (variables de la estructura; el tema los fija y la app los cambia en
|
|
15
|
+
* brand.css): --ds-enter-surfaces (tarjetas, paneles, KPI, filas-tarjeta), --ds-enter-notices
|
|
16
|
+
* (avisos, banners, vacíos), --ds-enter-headers (cabeceras) y --ds-enter-rows (filas de tabla y
|
|
17
|
+
* línea de tiempo). Valor: ds-auto-enter (anima) o none (apagado). La ficha del tema lo describe
|
|
18
|
+
* en motion.auto.
|
|
19
|
+
*
|
|
20
|
+
* Todo con :where() (especificidad cero): un tema o una app lo ajustan sin pelear. Para quitarlo
|
|
21
|
+
* en una pieza concreta: class="animate-none" o style="animation: none".
|
|
22
|
+
* Motion (motion.dev) sigue siendo la vía para coreografías a medida (DsMotionProvider + useDsMotion).
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
26
|
+
/* ── Entrada (cada grupo, con su interruptor: none lo apaga) ───────────── */
|
|
27
|
+
:where([data-slot='card'], [data-slot='panel'], [data-slot='stat'], [data-slot='item'][data-variant='card']) {
|
|
28
|
+
animation: var(--ds-enter-surfaces) var(--ds-motion-base) var(--ds-ease-enter) both;
|
|
29
|
+
}
|
|
30
|
+
:where([data-slot='alert'], [data-slot='banner'], [data-slot='empty']) {
|
|
31
|
+
animation: var(--ds-enter-notices) var(--ds-motion-base) var(--ds-ease-enter) both;
|
|
32
|
+
}
|
|
33
|
+
:where([data-slot='page-header'], [data-slot='section-header']) {
|
|
34
|
+
animation: var(--ds-enter-headers) var(--ds-motion-base) var(--ds-ease-enter) both;
|
|
35
|
+
}
|
|
36
|
+
:where([data-slot='timeline-item'], [data-slot='table-body'] > [data-slot='table-row']) {
|
|
37
|
+
animation: var(--ds-enter-rows) var(--ds-motion-base) var(--ds-ease-enter) both;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Cascada entre hermanas: cada una, un paso de --ds-motion-stagger más tarde (hasta 10). */
|
|
41
|
+
:where(
|
|
42
|
+
[data-slot='card'],
|
|
43
|
+
[data-slot='panel'],
|
|
44
|
+
[data-slot='stat'],
|
|
45
|
+
[data-slot='item'][data-variant='card'],
|
|
46
|
+
[data-slot='timeline-item'],
|
|
47
|
+
[data-slot='table-body'] > [data-slot='table-row']
|
|
48
|
+
) {
|
|
49
|
+
&:nth-child(2) { animation-delay: calc(var(--ds-motion-stagger) * 1); }
|
|
50
|
+
&:nth-child(3) { animation-delay: calc(var(--ds-motion-stagger) * 2); }
|
|
51
|
+
&:nth-child(4) { animation-delay: calc(var(--ds-motion-stagger) * 3); }
|
|
52
|
+
&:nth-child(5) { animation-delay: calc(var(--ds-motion-stagger) * 4); }
|
|
53
|
+
&:nth-child(6) { animation-delay: calc(var(--ds-motion-stagger) * 5); }
|
|
54
|
+
&:nth-child(7) { animation-delay: calc(var(--ds-motion-stagger) * 6); }
|
|
55
|
+
&:nth-child(8) { animation-delay: calc(var(--ds-motion-stagger) * 7); }
|
|
56
|
+
&:nth-child(9) { animation-delay: calc(var(--ds-motion-stagger) * 8); }
|
|
57
|
+
&:nth-child(n + 10) { animation-delay: calc(var(--ds-motion-stagger) * 9); }
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Filas-tarjeta dentro de un ItemGroup: cada una va en su envoltorio role="listitem", así que la
|
|
61
|
+
cascada cuenta los envoltorios. */
|
|
62
|
+
:where([data-slot='item-listitem']) {
|
|
63
|
+
&:nth-child(2) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 1); }
|
|
64
|
+
&:nth-child(3) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 2); }
|
|
65
|
+
&:nth-child(4) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 3); }
|
|
66
|
+
&:nth-child(5) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 4); }
|
|
67
|
+
&:nth-child(6) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 5); }
|
|
68
|
+
&:nth-child(7) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 6); }
|
|
69
|
+
&:nth-child(8) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 7); }
|
|
70
|
+
&:nth-child(9) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 8); }
|
|
71
|
+
&:nth-child(n + 10) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 9); }
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* ── Superficies pulsables ───────────────────────────────────────────────── */
|
|
75
|
+
:where(
|
|
76
|
+
a[data-slot='card'],
|
|
77
|
+
button[data-slot='card'],
|
|
78
|
+
a[data-slot='item'][data-variant='card'],
|
|
79
|
+
button[data-slot='item'][data-variant='card']
|
|
80
|
+
) {
|
|
81
|
+
transition:
|
|
82
|
+
box-shadow var(--ds-motion-fast) var(--ds-ease-standard),
|
|
83
|
+
translate var(--ds-motion-fast) var(--ds-ease-standard),
|
|
84
|
+
scale var(--ds-motion-fast) var(--ds-ease-standard);
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
box-shadow: var(--ds-shadow-card-hover);
|
|
88
|
+
translate: 0 calc(var(--ds-hover-lift) * -1);
|
|
89
|
+
}
|
|
90
|
+
&:active {
|
|
91
|
+
scale: var(--ds-motion-press-scale);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ── CATÁLOGO de entradas (nombres fijos: el tema elige una por grupo; el doctor lo comprueba) ──
|
|
97
|
+
* Todas toman recorrido, escala y desenfoque del tema; la curva (con o sin rebote), de --ds-ease-enter. */
|
|
98
|
+
:root {
|
|
99
|
+
--ds-dir: 1;
|
|
100
|
+
}
|
|
101
|
+
[dir='rtl'] {
|
|
102
|
+
--ds-dir: -1;
|
|
103
|
+
}
|
|
104
|
+
/* sube y aparece (por defecto) */
|
|
105
|
+
@keyframes ds-auto-enter {
|
|
106
|
+
from {
|
|
107
|
+
opacity: 0;
|
|
108
|
+
translate: 0 var(--ds-motion-distance);
|
|
109
|
+
scale: var(--ds-motion-scale);
|
|
110
|
+
filter: blur(var(--ds-motion-blur));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/* solo aparece */
|
|
114
|
+
@keyframes ds-auto-fade {
|
|
115
|
+
from {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/* crece desde un poco más pequeño (con rebote si la curva del tema lo tiene) */
|
|
120
|
+
@keyframes ds-auto-pop {
|
|
121
|
+
from {
|
|
122
|
+
opacity: 0;
|
|
123
|
+
scale: var(--ds-motion-scale);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/* entra de lado, desde el inicio de la línea (respeta RTL) */
|
|
127
|
+
@keyframes ds-auto-slide {
|
|
128
|
+
from {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
translate: calc(var(--ds-motion-distance) * -1 * var(--ds-dir)) 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/* se enfoca desde desenfocado (cristal) */
|
|
134
|
+
@keyframes ds-auto-focus {
|
|
135
|
+
from {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
filter: blur(max(var(--ds-motion-blur), var(--ds-motion-focus-blur)));
|
|
138
|
+
}
|
|
139
|
+
}
|
package/dist/styles.css
CHANGED
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
--radius-popover: var(--ds-radius-popover);
|
|
95
95
|
--radius-item: var(--ds-radius-item);
|
|
96
96
|
--radius-button: var(--ds-radius-button);
|
|
97
|
+
--radius-button-icon: var(--ds-radius-button-icon);
|
|
97
98
|
--radius-badge: var(--ds-radius-badge);
|
|
98
99
|
--radius-check: var(--ds-radius-check);
|
|
99
100
|
--radius-card: var(--ds-radius-card);
|
|
@@ -123,6 +124,7 @@
|
|
|
123
124
|
--ds-radius-popover: var(--ds-radius-2xl); /* menús, listas, popover, hover-card */
|
|
124
125
|
--ds-radius-item: var(--ds-radius-xl); /* filas de menú, lista y comando */
|
|
125
126
|
--ds-radius-button: var(--ds-radius-lg);
|
|
127
|
+
--ds-radius-button-icon: var(--ds-radius-button); /* botón de solo icono */
|
|
126
128
|
--ds-radius-badge: var(--ds-radius-md);
|
|
127
129
|
--ds-radius-check: 6px; /* casilla */
|
|
128
130
|
--ds-radius-card: var(--ds-radius-xl);
|
|
@@ -208,6 +210,13 @@
|
|
|
208
210
|
--ds-spring-bounce: 0.15;
|
|
209
211
|
--ds-motion-stagger: 40ms;
|
|
210
212
|
--ds-motion-press-scale: 0.97;
|
|
213
|
+
/* Movimiento automático (orbital-ds/motion.css): interruptor por grupo. ds-auto-enter = anima; none = apagado */
|
|
214
|
+
--ds-enter-surfaces: ds-auto-enter; /* tarjetas, paneles, KPI, filas-tarjeta */
|
|
215
|
+
--ds-enter-notices: ds-auto-enter; /* avisos, banners, vacíos */
|
|
216
|
+
--ds-enter-headers: ds-auto-enter; /* cabeceras de página y de sección */
|
|
217
|
+
--ds-enter-rows: ds-auto-enter; /* filas de tabla y línea de tiempo */
|
|
218
|
+
/* Catálogo: ds-auto-enter (sube) · ds-auto-fade · ds-auto-pop (crece) · ds-auto-slide (de lado) · ds-auto-focus (se enfoca) · none */
|
|
219
|
+
--ds-motion-focus-blur: 6px; /* desenfoque mínimo de ds-auto-focus */
|
|
211
220
|
|
|
212
221
|
--ds-z-stack: 1000; /* base del apilado interno (toasts unos sobre otros) */
|
|
213
222
|
|
|
@@ -275,7 +284,7 @@
|
|
|
275
284
|
--ds-button-case: none;
|
|
276
285
|
--ds-button-tracking: normal;
|
|
277
286
|
--ds-button-outline-w: 1px;
|
|
278
|
-
/* Colores por variante del botón (0.
|
|
287
|
+
/* Colores por variante del botón (0.12.0): por defecto, el aspecto de siempre */
|
|
279
288
|
--ds-button-primary-hover: color-mix(in oklab, var(--primary) 80%, transparent); /* fondo del primario al pasar */
|
|
280
289
|
--ds-button-primary-hover-fg: var(--primary-foreground);
|
|
281
290
|
--ds-button-outline-bg: var(--ds-field-bg); /* botón outline */
|
|
@@ -283,6 +292,9 @@
|
|
|
283
292
|
--ds-button-outline-border: var(--border);
|
|
284
293
|
--ds-button-secondary-border: transparent; /* borde del botón secundario */
|
|
285
294
|
--ds-badge-weight: var(--ds-label-weight); /* peso de la insignia */
|
|
295
|
+
/* --ds-on-soft (OPCIONAL): texto sobre el fondo suave de un estado (Alert, Banner, Badge y StatusBadge suaves).
|
|
296
|
+
* Sin definir, cada tono usa su color. Un tema cuyos tonos no llegan a AA sobre su fondo suave la pone en
|
|
297
|
+
* tinta (var(--foreground)); el color del estado queda en el icono y el borde. El doctor la mide. */
|
|
286
298
|
--ds-button-disabled-opacity: var(--ds-disabled-opacity); /* botón desactivado: 1 si el tema lo pinta con color */
|
|
287
299
|
/* Desactivado CON COLOR (opcional): sin definir, cada variante conserva su color y se atenúa con la
|
|
288
300
|
* opacidad. Un tema que lo quiera define las tres y pone --ds-button-disabled-opacity: 1.
|
|
@@ -418,6 +430,9 @@
|
|
|
418
430
|
--ds-menu-p: 0.25rem;
|
|
419
431
|
--ds-menu-item-px: 0.75rem;
|
|
420
432
|
--ds-menu-item-py: 0.5rem;
|
|
433
|
+
--ds-select-max-h: 18rem; /* alto máximo de la lista de Select y Combobox (≈ 8 filas; luego, scroll) */
|
|
434
|
+
--ds-select-min-w: 9rem; /* ancho mínimo de la lista (y nunca menos que el disparador) */
|
|
435
|
+
--ds-select-max-w: min(32rem, calc(100vw - 2rem)); /* ancho máximo: el texto largo se recorta */
|
|
421
436
|
--ds-button-px-sm: 0.75rem;
|
|
422
437
|
--ds-button-px-md: 1rem;
|
|
423
438
|
--ds-button-px-lg: 1rem;
|
|
@@ -453,7 +468,7 @@
|
|
|
453
468
|
--ds-banner-px: 1rem; /* aviso de página (Banner) */
|
|
454
469
|
--ds-banner-py: 0.625rem;
|
|
455
470
|
--ds-tabs-gap: 0.25rem; /* separación entre pestañas cuando el tema las separa */
|
|
456
|
-
/* Piezas de estado y progreso (0.
|
|
471
|
+
/* Piezas de estado y progreso (0.12.0): medidas y efectos propios, ajustables por tema y app */
|
|
457
472
|
--ds-track-bg: var(--muted); /* pista de barras, anillos y segmentos sin rellenar */
|
|
458
473
|
--ds-status-dot-sm: var(--ds-status-dot); /* StatusDot suelto: size="sm" (sin size, el punto en línea) */
|
|
459
474
|
--ds-status-dot-md: 0.75rem; /* size="md" */
|