orbital-ds 0.29.1 → 0.30.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/AGENTS.md +14 -0
- package/components.manifest.json +117 -6
- package/dist/hooks/use-ds-messages.d.ts +9 -0
- package/dist/lib/auth-flow.d.ts +26 -2
- package/dist/lib/auth-flow.js +20 -3
- package/dist/lib/header-control.d.ts +4 -0
- package/dist/lib/header-control.js +14 -0
- package/dist/lib/i18n.d.ts +9 -0
- package/dist/lib/i18n.js +27 -0
- package/dist/ui/app-bar.d.ts +10 -0
- package/dist/ui/app-bar.js +51 -0
- package/dist/ui/attachment.js +1 -1
- package/dist/ui/auth-form.d.ts +5 -1
- package/dist/ui/auth-form.js +5 -0
- package/dist/ui/badge.js +2 -2
- package/dist/ui/button.js +1 -1
- package/dist/ui/content-card.d.ts +6 -2
- package/dist/ui/content-card.js +27 -3
- package/dist/ui/dropzone.js +1 -1
- package/dist/ui/item.js +1 -1
- package/dist/ui/legend.js +1 -1
- package/dist/ui/locale-switcher.d.ts +19 -0
- package/dist/ui/locale-switcher.js +54 -0
- package/dist/ui/menubar.js +1 -1
- package/dist/ui/message-scroller.js +1 -1
- package/dist/ui/navigation-menu.js +2 -2
- package/dist/ui/notice-review.d.ts +1 -0
- package/dist/ui/notifications.d.ts +12 -2
- package/dist/ui/notifications.js +28 -5
- package/dist/ui/sidebar.d.ts +17 -3
- package/dist/ui/sidebar.js +25 -10
- package/dist/ui/theme-toggle.d.ts +14 -0
- package/dist/ui/theme-toggle.js +112 -0
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/week-strip.js +1 -1
- package/docs/CONTRACT.md +1 -1
- package/docs/designer/patrones.md +6 -0
- package/package.json +188 -187
- package/scripts/cli.mjs +452 -452
- package/dist/motion.css +0 -146
- package/dist/styles.css +0 -1656
- package/dist/themes/fractalia.css +0 -549
- package/dist/themes/fractalia.fonts.css +0 -3
- package/dist/themes/fractalia.guide.md +0 -86
- package/dist/themes/fractalia.meta.json +0 -112
- package/dist/themes/fractalia.scoped.css +0 -549
- package/dist/themes/fractalia.tokens.json +0 -39
- package/dist/themes/friendly.css +0 -367
- package/dist/themes/friendly.fonts.css +0 -2
- package/dist/themes/friendly.guide.md +0 -38
- package/dist/themes/friendly.meta.json +0 -82
- package/dist/themes/friendly.scoped.css +0 -367
- package/dist/themes/friendly.tokens.json +0 -45
- package/dist/themes/lagoon.css +0 -348
- package/dist/themes/lagoon.fonts.css +0 -2
- package/dist/themes/lagoon.guide.md +0 -47
- package/dist/themes/lagoon.meta.json +0 -85
- package/dist/themes/lagoon.scoped.css +0 -348
- package/dist/themes/lagoon.tokens.json +0 -49
- package/dist/themes/liquid.css +0 -502
- package/dist/themes/liquid.fonts.css +0 -7
- package/dist/themes/liquid.guide.md +0 -82
- package/dist/themes/liquid.meta.json +0 -134
- package/dist/themes/liquid.scoped.css +0 -502
- package/dist/themes/liquid.tokens.json +0 -47
- package/dist/themes/qratia.css +0 -260
- package/dist/themes/qratia.fonts.css +0 -2
- package/dist/themes/qratia.guide.md +0 -34
- package/dist/themes/qratia.meta.json +0 -49
- package/dist/themes/qratia.scoped.css +0 -260
- package/dist/themes/qratia.tokens.json +0 -49
- package/dist/themes/tactile.css +0 -588
- package/dist/themes/tactile.fonts.css +0 -3
- package/dist/themes/tactile.guide.md +0 -82
- package/dist/themes/tactile.meta.json +0 -182
- package/dist/themes/tactile.scoped.css +0 -588
- package/dist/themes/tactile.tokens.json +0 -42
- package/dist/themes/twitter.css +0 -357
- package/dist/themes/twitter.fonts.css +0 -6
- package/dist/themes/twitter.guide.md +0 -35
- package/dist/themes/twitter.meta.json +0 -90
- package/dist/themes/twitter.scoped.css +0 -357
- package/dist/themes/twitter.tokens.json +0 -45
- package/dist/themes/zyro.css +0 -434
- package/dist/themes/zyro.fonts.css +0 -2
- package/dist/themes/zyro.guide.md +0 -33
- package/dist/themes/zyro.meta.json +0 -74
- package/dist/themes/zyro.scoped.css +0 -434
- package/dist/themes/zyro.tokens.json +0 -46
package/dist/motion.css
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
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
|
-
/* Una entrada de lado o con desplazamiento no debe crear scroll horizontal mientras dura
|
|
28
|
-
(clip no crea contenedor de scroll: el sticky y el scroll de la página siguen igual). */
|
|
29
|
-
:where(body) {
|
|
30
|
-
overflow-x: clip;
|
|
31
|
-
}
|
|
32
|
-
/* `backwards`, no `both`: al terminar no queda ningún efecto vivo (ni contexto de apilado ni
|
|
33
|
-
bloque contenedor para hijos fixed/sticky) y el hover del tema manda sobre translate/scale. */
|
|
34
|
-
:where([data-slot='card'], [data-slot='panel'], [data-slot='stat'], [data-slot='item'][data-variant='card']) {
|
|
35
|
-
animation: var(--ds-enter-surfaces) var(--ds-motion-base) var(--ds-ease-enter) backwards;
|
|
36
|
-
}
|
|
37
|
-
:where([data-slot='alert'], [data-slot='banner'], [data-slot='empty']) {
|
|
38
|
-
animation: var(--ds-enter-notices) var(--ds-motion-base) var(--ds-ease-enter) backwards;
|
|
39
|
-
}
|
|
40
|
-
:where([data-slot='page-header'], [data-slot='section-header'], [data-slot='app-header']) {
|
|
41
|
-
animation: var(--ds-enter-headers) var(--ds-motion-base) var(--ds-ease-enter) backwards;
|
|
42
|
-
}
|
|
43
|
-
:where([data-slot='timeline-item'], [data-slot='table-body'] > [data-slot='table-row']) {
|
|
44
|
-
animation: var(--ds-enter-rows) var(--ds-motion-base) var(--ds-ease-enter) backwards;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Cascada entre hermanas: cada una, un paso de --ds-motion-stagger más tarde (hasta 10). */
|
|
48
|
-
:where(
|
|
49
|
-
[data-slot='card'],
|
|
50
|
-
[data-slot='panel'],
|
|
51
|
-
[data-slot='stat'],
|
|
52
|
-
[data-slot='item'][data-variant='card'],
|
|
53
|
-
[data-slot='timeline-item'],
|
|
54
|
-
[data-slot='table-body'] > [data-slot='table-row']
|
|
55
|
-
) {
|
|
56
|
-
&:nth-child(2) { animation-delay: calc(var(--ds-motion-stagger) * 1); }
|
|
57
|
-
&:nth-child(3) { animation-delay: calc(var(--ds-motion-stagger) * 2); }
|
|
58
|
-
&:nth-child(4) { animation-delay: calc(var(--ds-motion-stagger) * 3); }
|
|
59
|
-
&:nth-child(5) { animation-delay: calc(var(--ds-motion-stagger) * 4); }
|
|
60
|
-
&:nth-child(6) { animation-delay: calc(var(--ds-motion-stagger) * 5); }
|
|
61
|
-
&:nth-child(7) { animation-delay: calc(var(--ds-motion-stagger) * 6); }
|
|
62
|
-
&:nth-child(8) { animation-delay: calc(var(--ds-motion-stagger) * 7); }
|
|
63
|
-
&:nth-child(9) { animation-delay: calc(var(--ds-motion-stagger) * 8); }
|
|
64
|
-
&:nth-child(n + 10) { animation-delay: calc(var(--ds-motion-stagger) * 9); }
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Filas-tarjeta dentro de un ItemGroup: cada una va en su envoltorio role="listitem", así que la
|
|
68
|
-
cascada cuenta los envoltorios. */
|
|
69
|
-
:where([data-slot='item-listitem']) {
|
|
70
|
-
&:nth-child(2) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 1); }
|
|
71
|
-
&:nth-child(3) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 2); }
|
|
72
|
-
&:nth-child(4) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 3); }
|
|
73
|
-
&:nth-child(5) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 4); }
|
|
74
|
-
&:nth-child(6) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 5); }
|
|
75
|
-
&:nth-child(7) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 6); }
|
|
76
|
-
&:nth-child(8) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 7); }
|
|
77
|
-
&:nth-child(9) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 8); }
|
|
78
|
-
&:nth-child(n + 10) > [data-slot='item'][data-variant='card'] { animation-delay: calc(var(--ds-motion-stagger) * 9); }
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* ── Superficies pulsables ───────────────────────────────────────────────── */
|
|
82
|
-
:where(
|
|
83
|
-
a[data-slot='card'],
|
|
84
|
-
button[data-slot='card'],
|
|
85
|
-
a[data-slot='item'][data-variant='card'],
|
|
86
|
-
button[data-slot='item'][data-variant='card']
|
|
87
|
-
) {
|
|
88
|
-
transition:
|
|
89
|
-
box-shadow var(--ds-motion-fast) var(--ds-ease-standard),
|
|
90
|
-
translate var(--ds-motion-fast) var(--ds-ease-standard),
|
|
91
|
-
scale var(--ds-motion-fast) var(--ds-ease-standard);
|
|
92
|
-
|
|
93
|
-
&:hover {
|
|
94
|
-
box-shadow: var(--ds-shadow-card-hover);
|
|
95
|
-
translate: 0 calc(var(--ds-hover-lift) * -1);
|
|
96
|
-
}
|
|
97
|
-
&:active {
|
|
98
|
-
scale: var(--ds-motion-press-scale);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* ── CATÁLOGO de entradas (nombres fijos: el tema elige una por grupo; el doctor lo comprueba) ──
|
|
104
|
-
* Todas toman recorrido, escala y desenfoque del tema; la curva (con o sin rebote), de --ds-ease-enter. */
|
|
105
|
-
:root {
|
|
106
|
-
--ds-dir: 1;
|
|
107
|
-
}
|
|
108
|
-
[dir='rtl'] {
|
|
109
|
-
--ds-dir: -1;
|
|
110
|
-
}
|
|
111
|
-
/* sube y aparece (por defecto) */
|
|
112
|
-
@keyframes ds-auto-enter {
|
|
113
|
-
from {
|
|
114
|
-
opacity: 0;
|
|
115
|
-
translate: 0 var(--ds-motion-distance);
|
|
116
|
-
scale: var(--ds-motion-scale);
|
|
117
|
-
filter: blur(var(--ds-motion-blur));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/* solo aparece */
|
|
121
|
-
@keyframes ds-auto-fade {
|
|
122
|
-
from {
|
|
123
|
-
opacity: 0;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
/* crece desde un poco más pequeño (con rebote si la curva del tema lo tiene) */
|
|
127
|
-
@keyframes ds-auto-pop {
|
|
128
|
-
from {
|
|
129
|
-
opacity: 0;
|
|
130
|
-
scale: var(--ds-motion-scale);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
/* entra de lado, desde el inicio de la línea (respeta RTL) */
|
|
134
|
-
@keyframes ds-auto-slide {
|
|
135
|
-
from {
|
|
136
|
-
opacity: 0;
|
|
137
|
-
translate: calc(var(--ds-motion-distance) * -1 * var(--ds-dir)) 0;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/* se enfoca desde desenfocado (cristal) */
|
|
141
|
-
@keyframes ds-auto-focus {
|
|
142
|
-
from {
|
|
143
|
-
opacity: 0;
|
|
144
|
-
filter: blur(max(var(--ds-motion-blur), var(--ds-motion-focus-blur)));
|
|
145
|
-
}
|
|
146
|
-
}
|