orbital-ds 0.10.1 → 0.13.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 +63 -7
- package/README.md +93 -87
- package/components.manifest.json +1906 -1713
- package/contract.json +37 -0
- package/dist/hooks/use-ds-messages.d.ts +17 -0
- package/dist/lib/i18n.d.ts +17 -0
- package/dist/lib/i18n.js +54 -3
- package/dist/motion.css +139 -0
- package/dist/styles.css +124 -0
- package/dist/themes/fractalia.css +473 -0
- package/dist/themes/fractalia.fonts.css +3 -0
- package/dist/themes/fractalia.guide.md +79 -0
- package/dist/themes/fractalia.meta.json +99 -0
- package/dist/themes/fractalia.scoped.css +473 -0
- package/dist/themes/fractalia.tokens.json +39 -0
- package/dist/themes/friendly.css +7 -1
- package/dist/themes/friendly.meta.json +7 -0
- package/dist/themes/friendly.scoped.css +7 -1
- 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 +7 -1
- package/dist/themes/tactile.meta.json +7 -0
- package/dist/themes/tactile.scoped.css +7 -1
- package/dist/themes/twitter.css +7 -1
- package/dist/themes/twitter.meta.json +7 -0
- package/dist/themes/twitter.scoped.css +7 -1
- package/dist/themes/zyro.css +7 -1
- package/dist/themes/zyro.meta.json +7 -0
- package/dist/themes/zyro.scoped.css +7 -1
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/alert.js +6 -5
- package/dist/ui/attachment.d.ts +1 -1
- package/dist/ui/attachment.js +1 -1
- package/dist/ui/badge.js +7 -7
- package/dist/ui/banner.js +6 -6
- package/dist/ui/button-group.js +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +7 -7
- package/dist/ui/calendar.js +2 -2
- package/dist/ui/chart.js +3 -3
- package/dist/ui/combobox.js +2 -2
- package/dist/ui/command.js +1 -1
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/dropdown-menu.js +4 -4
- package/dist/ui/empty.js +1 -1
- package/dist/ui/field.js +2 -2
- package/dist/ui/gauge.d.ts +40 -0
- package/dist/ui/gauge.js +157 -0
- package/dist/ui/heatmap-grid.js +1 -1
- package/dist/ui/input-group.d.ts +1 -1
- package/dist/ui/input-group.js +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/item.d.ts +3 -3
- package/dist/ui/item.js +15 -5
- package/dist/ui/kbd.js +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/legend.d.ts +3 -1
- package/dist/ui/legend.js +15 -1
- package/dist/ui/level-meter.d.ts +16 -0
- package/dist/ui/level-meter.js +60 -0
- package/dist/ui/marker.d.ts +1 -1
- package/dist/ui/menubar.js +5 -5
- package/dist/ui/message.js +2 -2
- package/dist/ui/native-select.js +2 -2
- package/dist/ui/navigation-menu.js +1 -1
- package/dist/ui/password-strength.d.ts +14 -0
- package/dist/ui/password-strength.js +61 -0
- package/dist/ui/progress.js +1 -1
- package/dist/ui/proportion-bar.js +2 -2
- package/dist/ui/questionnaire.js +2 -2
- package/dist/ui/select.js +7 -8
- package/dist/ui/shield.d.ts +21 -0
- package/dist/ui/shield.js +141 -0
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/stat.d.ts +11 -1
- package/dist/ui/stat.js +13 -3
- package/dist/ui/status-badge.d.ts +3 -2
- package/dist/ui/status-badge.js +10 -8
- package/dist/ui/status-hero.d.ts +12 -0
- package/dist/ui/status-hero.js +60 -0
- package/dist/ui/step-dots.d.ts +10 -0
- package/dist/ui/step-dots.js +40 -0
- package/dist/ui/step-ring.d.ts +12 -0
- package/dist/ui/step-ring.js +35 -0
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/task-loader.d.ts +14 -0
- package/dist/ui/task-loader.js +50 -0
- package/dist/ui/task-progress.d.ts +18 -0
- package/dist/ui/task-progress.js +84 -0
- package/dist/ui/toggle.js +1 -1
- package/docs/adr/0002-sistemas-corporativos-al-modelo.md +176 -0
- 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 +55 -15
- package/scripts/cli.mjs +370 -0
- package/scripts/doctor.mjs +578 -451
- package/scripts/init.mjs +329 -111
- 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
|
@@ -148,6 +148,43 @@
|
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
150
|
},
|
|
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. Hoy aviso en todos (transición: ADR 0002, F1b); pasará a error en los temas «strict».",
|
|
153
|
+
"slots": {
|
|
154
|
+
"button": {
|
|
155
|
+
"border-radius": "--ds-radius-button"
|
|
156
|
+
},
|
|
157
|
+
"badge": {
|
|
158
|
+
"border-radius": "--ds-radius-badge"
|
|
159
|
+
},
|
|
160
|
+
"tabs-trigger": {
|
|
161
|
+
"border-radius": "--ds-radius-tab"
|
|
162
|
+
},
|
|
163
|
+
"tabs-list": {
|
|
164
|
+
"border-radius": "--ds-radius-tabs-list"
|
|
165
|
+
},
|
|
166
|
+
"input": {
|
|
167
|
+
"background": "--ds-field-bg",
|
|
168
|
+
"background-color": "--ds-field-bg"
|
|
169
|
+
},
|
|
170
|
+
"textarea": {
|
|
171
|
+
"background": "--ds-field-bg",
|
|
172
|
+
"background-color": "--ds-field-bg"
|
|
173
|
+
},
|
|
174
|
+
"select-trigger": {
|
|
175
|
+
"background": "--ds-field-bg",
|
|
176
|
+
"background-color": "--ds-field-bg"
|
|
177
|
+
},
|
|
178
|
+
"native-select": {
|
|
179
|
+
"background": "--ds-field-bg",
|
|
180
|
+
"background-color": "--ds-field-bg"
|
|
181
|
+
},
|
|
182
|
+
"input-group": {
|
|
183
|
+
"background": "--ds-field-bg",
|
|
184
|
+
"background-color": "--ds-field-bg"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
151
188
|
"brand": {
|
|
152
189
|
"descripcion": "Grupo ESTABLE de variables que una app suele personalizar en su fichero de marca (brand.css). Renombrar o quitar una es versión MAYOR. Todas están también en `root` salvo las --ds-*.",
|
|
153
190
|
"tokens": [
|
|
@@ -83,6 +83,23 @@ declare const DsMessagesContext: React.Context<{
|
|
|
83
83
|
statusMeaning: string;
|
|
84
84
|
statusCause: string;
|
|
85
85
|
statusAction: string;
|
|
86
|
+
shieldLabel: string;
|
|
87
|
+
strengthLabel: string;
|
|
88
|
+
strengthWeak: string;
|
|
89
|
+
strengthMedium: string;
|
|
90
|
+
strengthStrong: string;
|
|
91
|
+
stepOf: string;
|
|
92
|
+
stepRingLabel: string;
|
|
93
|
+
progressNotStarted: string;
|
|
94
|
+
progressRunning: string;
|
|
95
|
+
progressDone: string;
|
|
96
|
+
progressError: string;
|
|
97
|
+
progressCounter: string;
|
|
98
|
+
toneSuccess: string;
|
|
99
|
+
toneWarning: string;
|
|
100
|
+
toneDanger: string;
|
|
101
|
+
toneInfo: string;
|
|
102
|
+
toneNeutral: string;
|
|
86
103
|
}>;
|
|
87
104
|
/** Textos de los componentes en el idioma activo. */
|
|
88
105
|
declare function useDsMessages(): DsMessages;
|
package/dist/lib/i18n.d.ts
CHANGED
|
@@ -82,6 +82,23 @@ declare const en: {
|
|
|
82
82
|
statusMeaning: string;
|
|
83
83
|
statusCause: string;
|
|
84
84
|
statusAction: string;
|
|
85
|
+
shieldLabel: string;
|
|
86
|
+
strengthLabel: string;
|
|
87
|
+
strengthWeak: string;
|
|
88
|
+
strengthMedium: string;
|
|
89
|
+
strengthStrong: string;
|
|
90
|
+
stepOf: string;
|
|
91
|
+
stepRingLabel: string;
|
|
92
|
+
progressNotStarted: string;
|
|
93
|
+
progressRunning: string;
|
|
94
|
+
progressDone: string;
|
|
95
|
+
progressError: string;
|
|
96
|
+
progressCounter: string;
|
|
97
|
+
toneSuccess: string;
|
|
98
|
+
toneWarning: string;
|
|
99
|
+
toneDanger: string;
|
|
100
|
+
toneInfo: string;
|
|
101
|
+
toneNeutral: string;
|
|
85
102
|
};
|
|
86
103
|
type DsMessages = typeof en;
|
|
87
104
|
type DsMessageKey = keyof DsMessages;
|
package/dist/lib/i18n.js
CHANGED
|
@@ -80,7 +80,24 @@ const en = {
|
|
|
80
80
|
notificationUnread: "Unread",
|
|
81
81
|
statusMeaning: "What it means",
|
|
82
82
|
statusCause: "Why",
|
|
83
|
-
statusAction: "What to do"
|
|
83
|
+
statusAction: "What to do",
|
|
84
|
+
shieldLabel: "Protection level: {value}",
|
|
85
|
+
strengthLabel: "Strength:",
|
|
86
|
+
strengthWeak: "Weak",
|
|
87
|
+
strengthMedium: "Medium",
|
|
88
|
+
strengthStrong: "Strong",
|
|
89
|
+
stepOf: "Step {n} of {total}",
|
|
90
|
+
stepRingLabel: "{completed} of {total} steps completed",
|
|
91
|
+
progressNotStarted: "Not started",
|
|
92
|
+
progressRunning: "In progress",
|
|
93
|
+
progressDone: "Completed",
|
|
94
|
+
progressError: "Failed",
|
|
95
|
+
progressCounter: "{n} of {total}",
|
|
96
|
+
toneSuccess: "Correct",
|
|
97
|
+
toneWarning: "Warning",
|
|
98
|
+
toneDanger: "Error",
|
|
99
|
+
toneInfo: "Information",
|
|
100
|
+
toneNeutral: "Neutral"
|
|
84
101
|
};
|
|
85
102
|
const es = {
|
|
86
103
|
close: "Cerrar",
|
|
@@ -162,7 +179,24 @@ const es = {
|
|
|
162
179
|
notificationUnread: "Sin leer",
|
|
163
180
|
statusMeaning: "Qu\xE9 significa",
|
|
164
181
|
statusCause: "Por qu\xE9",
|
|
165
|
-
statusAction: "Qu\xE9 hacer"
|
|
182
|
+
statusAction: "Qu\xE9 hacer",
|
|
183
|
+
shieldLabel: "Nivel de protecci\xF3n: {value}",
|
|
184
|
+
strengthLabel: "Nivel de fuerza:",
|
|
185
|
+
strengthWeak: "Baja",
|
|
186
|
+
strengthMedium: "Media",
|
|
187
|
+
strengthStrong: "Alta",
|
|
188
|
+
stepOf: "Paso {n} de {total}",
|
|
189
|
+
stepRingLabel: "{completed} de {total} pasos completados",
|
|
190
|
+
progressNotStarted: "No iniciado",
|
|
191
|
+
progressRunning: "En proceso",
|
|
192
|
+
progressDone: "Completado",
|
|
193
|
+
progressError: "Con errores",
|
|
194
|
+
progressCounter: "{n} de {total}",
|
|
195
|
+
toneSuccess: "Correcto",
|
|
196
|
+
toneWarning: "Alerta",
|
|
197
|
+
toneDanger: "Error",
|
|
198
|
+
toneInfo: "Informaci\xF3n",
|
|
199
|
+
toneNeutral: "Neutro"
|
|
166
200
|
};
|
|
167
201
|
const ptBR = {
|
|
168
202
|
close: "Fechar",
|
|
@@ -244,7 +278,24 @@ const ptBR = {
|
|
|
244
278
|
notificationUnread: "N\xE3o lida",
|
|
245
279
|
statusMeaning: "O que significa",
|
|
246
280
|
statusCause: "Por qu\xEA",
|
|
247
|
-
statusAction: "O que fazer"
|
|
281
|
+
statusAction: "O que fazer",
|
|
282
|
+
shieldLabel: "N\xEDvel de prote\xE7\xE3o: {value}",
|
|
283
|
+
strengthLabel: "N\xEDvel de for\xE7a:",
|
|
284
|
+
strengthWeak: "Fraca",
|
|
285
|
+
strengthMedium: "M\xE9dia",
|
|
286
|
+
strengthStrong: "Forte",
|
|
287
|
+
stepOf: "Etapa {n} de {total}",
|
|
288
|
+
stepRingLabel: "{completed} de {total} etapas conclu\xEDdas",
|
|
289
|
+
progressNotStarted: "N\xE3o iniciado",
|
|
290
|
+
progressRunning: "Em andamento",
|
|
291
|
+
progressDone: "Conclu\xEDdo",
|
|
292
|
+
progressError: "Com erros",
|
|
293
|
+
progressCounter: "{n} de {total}",
|
|
294
|
+
toneSuccess: "Correto",
|
|
295
|
+
toneWarning: "Alerta",
|
|
296
|
+
toneDanger: "Erro",
|
|
297
|
+
toneInfo: "Informa\xE7\xE3o",
|
|
298
|
+
toneNeutral: "Neutro"
|
|
248
299
|
};
|
|
249
300
|
const dsCatalogs = { en, es, "pt-BR": ptBR };
|
|
250
301
|
function resolveDsLocale(tag) {
|
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
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
--radius-code: var(--ds-radius-code);
|
|
106
106
|
--radius-tooltip: var(--ds-radius-tooltip);
|
|
107
107
|
--radius-tab: var(--ds-radius-tab);
|
|
108
|
+
--radius-tabs-list: var(--ds-radius-tabs-list);
|
|
108
109
|
--radius-field-multiline: var(--ds-radius-field-multiline);
|
|
109
110
|
--radius-inset: var(--ds-radius-inset);
|
|
110
111
|
--radius-skeleton: var(--ds-radius-skeleton);
|
|
@@ -133,6 +134,7 @@
|
|
|
133
134
|
--ds-radius-xs: 2px; /* marcas de leyenda y flecha del tooltip */
|
|
134
135
|
--ds-radius-tooltip: var(--ds-radius-2xl);
|
|
135
136
|
--ds-radius-tab: var(--ds-radius-xl);
|
|
137
|
+
--ds-radius-tabs-list: var(--ds-radius-control); /* contenedor de las pestañas */
|
|
136
138
|
--ds-radius-field-multiline: var(--ds-radius-md); /* textarea y campos de varias líneas */
|
|
137
139
|
--ds-radius-inset: var(--ds-radius-xl); /* contenido junto al lateral «inset» */
|
|
138
140
|
--ds-radius-skeleton: var(--ds-radius-xl);
|
|
@@ -191,6 +193,7 @@
|
|
|
191
193
|
|
|
192
194
|
/* Curvas de aceleración: un tema cambia aquí su «personalidad de movimiento». */
|
|
193
195
|
--ds-ease-standard: cubic-bezier(0.22, 1, 0.36, 1); /* entrar y moverse */
|
|
196
|
+
--ds-ease-pulse: var(--ds-ease-standard); /* latidos en bucle (radar, carga indeterminada) */
|
|
194
197
|
--ds-ease-emphasized: cubic-bezier(0.32, 0.72, 0, 1); /* paneles que llegan desde el borde */
|
|
195
198
|
--ds-ease-enter: cubic-bezier(0.23, 1, 0.32, 1); /* aparecer */
|
|
196
199
|
--ds-ease-exit: cubic-bezier(0.7, 0, 0.84, 0); /* desaparecer */
|
|
@@ -205,6 +208,13 @@
|
|
|
205
208
|
--ds-spring-bounce: 0.15;
|
|
206
209
|
--ds-motion-stagger: 40ms;
|
|
207
210
|
--ds-motion-press-scale: 0.97;
|
|
211
|
+
/* Movimiento automático (orbital-ds/motion.css): interruptor por grupo. ds-auto-enter = anima; none = apagado */
|
|
212
|
+
--ds-enter-surfaces: ds-auto-enter; /* tarjetas, paneles, KPI, filas-tarjeta */
|
|
213
|
+
--ds-enter-notices: ds-auto-enter; /* avisos, banners, vacíos */
|
|
214
|
+
--ds-enter-headers: ds-auto-enter; /* cabeceras de página y de sección */
|
|
215
|
+
--ds-enter-rows: ds-auto-enter; /* filas de tabla y línea de tiempo */
|
|
216
|
+
/* Catálogo: ds-auto-enter (sube) · ds-auto-fade · ds-auto-pop (crece) · ds-auto-slide (de lado) · ds-auto-focus (se enfoca) · none */
|
|
217
|
+
--ds-motion-focus-blur: 6px; /* desenfoque mínimo de ds-auto-focus */
|
|
208
218
|
|
|
209
219
|
--ds-z-stack: 1000; /* base del apilado interno (toasts unos sobre otros) */
|
|
210
220
|
|
|
@@ -254,6 +264,7 @@
|
|
|
254
264
|
--ds-title-leading: 1.25;
|
|
255
265
|
--ds-label-tracking: 0.05em;
|
|
256
266
|
--ds-strong-weight: 600;
|
|
267
|
+
--ds-medium-weight: 500; /* texto «medio» de los componentes (antes font-medium a mano) */
|
|
257
268
|
--ds-nav-weight: 500;
|
|
258
269
|
--ds-nav-active-weight: 500;
|
|
259
270
|
--ds-tab-weight: 500;
|
|
@@ -271,6 +282,21 @@
|
|
|
271
282
|
--ds-button-case: none;
|
|
272
283
|
--ds-button-tracking: normal;
|
|
273
284
|
--ds-button-outline-w: 1px;
|
|
285
|
+
/* Colores por variante del botón (0.12.0): por defecto, el aspecto de siempre */
|
|
286
|
+
--ds-button-primary-hover: color-mix(in oklab, var(--primary) 80%, transparent); /* fondo del primario al pasar */
|
|
287
|
+
--ds-button-primary-hover-fg: var(--primary-foreground);
|
|
288
|
+
--ds-button-outline-bg: var(--ds-field-bg); /* botón outline */
|
|
289
|
+
--ds-button-outline-fg: currentColor;
|
|
290
|
+
--ds-button-outline-border: var(--border);
|
|
291
|
+
--ds-button-secondary-border: transparent; /* borde del botón secundario */
|
|
292
|
+
--ds-badge-weight: var(--ds-label-weight); /* peso de la insignia */
|
|
293
|
+
/* --ds-on-soft (OPCIONAL): texto sobre el fondo suave de un estado (Alert, Banner, Badge y StatusBadge suaves).
|
|
294
|
+
* Sin definir, cada tono usa su color. Un tema cuyos tonos no llegan a AA sobre su fondo suave la pone en
|
|
295
|
+
* tinta (var(--foreground)); el color del estado queda en el icono y el borde. El doctor la mide. */
|
|
296
|
+
--ds-button-disabled-opacity: var(--ds-disabled-opacity); /* botón desactivado: 1 si el tema lo pinta con color */
|
|
297
|
+
/* Desactivado CON COLOR (opcional): sin definir, cada variante conserva su color y se atenúa con la
|
|
298
|
+
* opacidad. Un tema que lo quiera define las tres y pone --ds-button-disabled-opacity: 1.
|
|
299
|
+
* --ds-button-disabled-bg · --ds-button-disabled-fg · --ds-button-disabled-border */
|
|
274
300
|
--ds-shadow-button: 0 0 #0000;
|
|
275
301
|
--ds-shadow-button-hover: 0 0 #0000;
|
|
276
302
|
--ds-hover-lift: 0px;
|
|
@@ -402,6 +428,9 @@
|
|
|
402
428
|
--ds-menu-p: 0.25rem;
|
|
403
429
|
--ds-menu-item-px: 0.75rem;
|
|
404
430
|
--ds-menu-item-py: 0.5rem;
|
|
431
|
+
--ds-select-max-h: 18rem; /* alto máximo de la lista de Select y Combobox (≈ 8 filas; luego, scroll) */
|
|
432
|
+
--ds-select-min-w: 9rem; /* ancho mínimo de la lista (y nunca menos que el disparador) */
|
|
433
|
+
--ds-select-max-w: min(32rem, calc(100vw - 2rem)); /* ancho máximo: el texto largo se recorta */
|
|
405
434
|
--ds-button-px-sm: 0.75rem;
|
|
406
435
|
--ds-button-px-md: 1rem;
|
|
407
436
|
--ds-button-px-lg: 1rem;
|
|
@@ -437,6 +466,61 @@
|
|
|
437
466
|
--ds-banner-px: 1rem; /* aviso de página (Banner) */
|
|
438
467
|
--ds-banner-py: 0.625rem;
|
|
439
468
|
--ds-tabs-gap: 0.25rem; /* separación entre pestañas cuando el tema las separa */
|
|
469
|
+
/* Piezas de estado y progreso (0.12.0): medidas y efectos propios, ajustables por tema y app */
|
|
470
|
+
--ds-track-bg: var(--muted); /* pista de barras, anillos y segmentos sin rellenar */
|
|
471
|
+
--ds-status-dot-sm: var(--ds-status-dot); /* StatusDot suelto: size="sm" (sin size, el punto en línea) */
|
|
472
|
+
--ds-status-dot-md: 0.75rem; /* size="md" */
|
|
473
|
+
--ds-status-dot-lg: 1rem; /* size="lg" */
|
|
474
|
+
--ds-gauge-size: 8.75rem; /* Gauge: lado del anillo (el arco ocupa la mitad de alto) */
|
|
475
|
+
--ds-gauge-stroke: 10px; /* grosor del trazo, en unidades del dibujo */
|
|
476
|
+
--ds-gauge-value-size: 2rem; /* cifra central */
|
|
477
|
+
--ds-gauge-suffix-size: 1.125rem; /* «/1.000» */
|
|
478
|
+
--ds-shield-w: 7.75rem; /* Shield md */
|
|
479
|
+
--ds-shield-h: 9.375rem;
|
|
480
|
+
--ds-shield-w-sm: 5.3125rem; /* Shield sm */
|
|
481
|
+
--ds-shield-h-sm: 6.4375rem;
|
|
482
|
+
--ds-shield-stroke: 10px; /* contorno del escudo */
|
|
483
|
+
--ds-shield-track: var(--border); /* contorno sin rellenar */
|
|
484
|
+
--ds-shield-fill: var(--card); /* interior */
|
|
485
|
+
--ds-shield-progress: var(--primary); /* contorno relleno */
|
|
486
|
+
--ds-shield-filter: drop-shadow(0 0 #0000); /* sombra del escudo (sin sombra por defecto) */
|
|
487
|
+
--ds-shield-value-size: 1.5rem;
|
|
488
|
+
--ds-shield-value-weight: var(--ds-heading-weight);
|
|
489
|
+
--ds-shield-badge: 2.5rem; /* insignia (estrella, icono) */
|
|
490
|
+
--ds-shield-radar-size: 15rem; /* ShieldRadar: marco */
|
|
491
|
+
--ds-shield-radar-circle: 11.375rem; /* círculo interior */
|
|
492
|
+
--ds-shield-radar-glow: 12px; /* brillo interior del círculo */
|
|
493
|
+
--ds-strength-segment-w: 1.5rem; /* PasswordStrength */
|
|
494
|
+
--ds-strength-segment-h: 0.3125rem;
|
|
495
|
+
--ds-strength-gap: 2px;
|
|
496
|
+
--ds-strength-radius: var(--ds-radius-track);
|
|
497
|
+
--ds-step-dot: 0.75rem; /* StepDots */
|
|
498
|
+
--ds-step-dot-active-w: 2rem;
|
|
499
|
+
--ds-step-dot-gap: 0.75rem;
|
|
500
|
+
--ds-step-dot-bg: var(--ds-track-bg); /* punto inactivo */
|
|
501
|
+
--ds-step-ring-size: 1.5rem; /* StepRing: círculo de sectores */
|
|
502
|
+
--ds-task-progress-h: var(--ds-track-h); /* TaskProgress */
|
|
503
|
+
--ds-level-value-size: 1.125rem; /* LevelMeter: porcentaje */
|
|
504
|
+
--ds-level-range-size: 1.625rem; /* LevelMeter: rango */
|
|
505
|
+
--ds-status-hero: 5.5rem; /* StatusHero: disco */
|
|
506
|
+
--ds-status-hero-p: 0.75rem;
|
|
507
|
+
--ds-status-hero-radius: var(--ds-radius-2xl);
|
|
508
|
+
--ds-status-hero-badge: 1.75rem;
|
|
509
|
+
--ds-status-halo-blur: 10px; /* halo alrededor del disco */
|
|
510
|
+
--ds-status-halo-inset: 3px; /* halo por dentro del disco */
|
|
511
|
+
--ds-status-halo-success: color-mix(in oklch, var(--success) 40%, transparent);
|
|
512
|
+
--ds-status-halo-warning: color-mix(in oklch, var(--warning) 40%, transparent);
|
|
513
|
+
--ds-status-halo-danger: color-mix(in oklch, var(--danger) 40%, transparent);
|
|
514
|
+
--ds-status-halo-info: color-mix(in oklch, var(--info) 40%, transparent);
|
|
515
|
+
--ds-status-halo-neutral: color-mix(in oklch, var(--neutral) 30%, transparent);
|
|
516
|
+
--ds-loader-size: 5.5rem; /* TaskLoader */
|
|
517
|
+
--ds-loader-p: 0.75rem;
|
|
518
|
+
--ds-loader-radius: var(--ds-radius-2xl);
|
|
519
|
+
--ds-loader-icon: 4rem;
|
|
520
|
+
--ds-loader-bar-h: 2px;
|
|
521
|
+
--ds-loader-bg: var(--muted);
|
|
522
|
+
--ds-loader-done-bg: var(--card);
|
|
523
|
+
--ds-loader-done-glow: 0 0 #0000; /* brillo al terminar (sin sombra por defecto) */
|
|
440
524
|
|
|
441
525
|
/* ── MATERIALES ─────────────────────────────────────────────────────────
|
|
442
526
|
* Cómo es la superficie, más allá del color. Cada valor es un
|
|
@@ -622,6 +706,46 @@
|
|
|
622
706
|
height: var(--accordion-panel-height, auto);
|
|
623
707
|
}
|
|
624
708
|
}
|
|
709
|
+
/* Latido del radar (ShieldRadar) e indeterminado (TaskLoader): ritmo y curva del tema; quietos con
|
|
710
|
+
* movimiento reducido (motion-reduce:animate-none en cada pieza). */
|
|
711
|
+
@utility animate-ds-ring-inner {
|
|
712
|
+
animation: ds-ring-inner var(--ds-motion-pulse) var(--ds-ease-pulse) infinite alternate both;
|
|
713
|
+
}
|
|
714
|
+
@utility animate-ds-ring-outer {
|
|
715
|
+
animation: ds-ring-outer var(--ds-motion-pulse) var(--ds-ease-pulse) infinite alternate both;
|
|
716
|
+
}
|
|
717
|
+
@utility animate-ds-indeterminate {
|
|
718
|
+
animation: ds-indeterminate var(--ds-motion-pulse) var(--ds-ease-pulse) infinite;
|
|
719
|
+
}
|
|
720
|
+
@keyframes ds-ring-inner {
|
|
721
|
+
from {
|
|
722
|
+
transform: scale(0.813);
|
|
723
|
+
opacity: 0.5;
|
|
724
|
+
}
|
|
725
|
+
to {
|
|
726
|
+
transform: scale(1);
|
|
727
|
+
opacity: 0.3;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
@keyframes ds-ring-outer {
|
|
731
|
+
from {
|
|
732
|
+
transform: scale(0.892);
|
|
733
|
+
opacity: 0.3;
|
|
734
|
+
}
|
|
735
|
+
to {
|
|
736
|
+
transform: scale(1);
|
|
737
|
+
opacity: 0.5;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
@keyframes ds-indeterminate {
|
|
741
|
+
/* --ds-dir: 1 en LTR, -1 en RTL (lo pone la pista): recorre la pista desde el inicio */
|
|
742
|
+
from {
|
|
743
|
+
transform: translateX(calc(-100% * var(--ds-dir, 1)));
|
|
744
|
+
}
|
|
745
|
+
to {
|
|
746
|
+
transform: translateX(calc(250% * var(--ds-dir, 1)));
|
|
747
|
+
}
|
|
748
|
+
}
|
|
625
749
|
@keyframes ds-accordion-close {
|
|
626
750
|
from {
|
|
627
751
|
height: var(--accordion-panel-height, auto);
|