orbital-ds 0.18.0 → 0.18.3
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 +97 -97
- package/components.manifest.json +5 -2
- package/dist/motion.css +1 -1
- package/dist/styles.css +41 -2
- package/dist/themes/lagoon.fonts.css +2 -2
- package/dist/themes/lagoon.guide.md +1 -0
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/chart.js +1 -1
- package/dist/ui/command.js +3 -3
- package/dist/ui/gauge.js +6 -6
- package/dist/ui/level-meter.js +2 -2
- package/dist/ui/select.js +1 -1
- package/dist/ui/shield.js +1 -1
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/stat.js +4 -4
- package/package.json +186 -186
- package/scripts/cli.mjs +452 -452
package/README.md
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
# orbital-ds
|
|
2
|
-
|
|
3
|
-
Sistema de diseño genérico: **estructura común + temas intercambiables + ~60 componentes**
|
|
4
|
-
sobre [Base UI](https://base-ui.com) y Tailwind v4 (los de shadcn en su versión Base UI).
|
|
5
|
-
|
|
6
|
-
- `styles.css` — la ESTRUCTURA: mapea variables de tema a utilidades de Tailwind y define los
|
|
7
|
-
tokens semánticos (radios, alturas, sombras, espaciado, capas, movimiento, foco, materiales)
|
|
8
|
-
y la capa base. No lleva colores ni fuentes.
|
|
9
|
-
- `themes/<tema>.css` — un TEMA: paleta (claro/oscuro), radio base y tipografía.
|
|
10
|
-
Hoy: `qratia`, `zyro` (cristal), `liquid` (Liquid Glass de Apple), `lagoon` (pino y jade con dock oscuro), `friendly`, `twitter`, `tactile` y `fractalia` (sistema corporativo de
|
|
11
|
-
Fractalia, para usarlo fiel). Añadir otro = añadir otro fichero.
|
|
12
|
-
- `themes/<tema>.fonts.css` — las fuentes del tema (un `@import url()`; va el primero).
|
|
13
|
-
- `ui/*` — componentes, uno por fichero (`orbital-ds/ui/button`, …): quien no usa gráficos
|
|
14
|
-
no necesita `recharts`, quien no usa el calendario no necesita `react-day-picker`.
|
|
15
|
-
- `contract.json` + `pnpm check:ds` — el contrato de tema y su comprobación.
|
|
16
|
-
|
|
17
|
-
## Uso en una app (Tailwind v4)
|
|
18
|
-
|
|
19
|
-
```css
|
|
20
|
-
@import 'orbital-ds/themes/qratia.fonts.css'; /* fuentes: lo primero */
|
|
21
|
-
@import 'tailwindcss';
|
|
22
|
-
@plugin '@tailwindcss/typography';
|
|
23
|
-
@import 'tw-animate-css';
|
|
24
|
-
@import 'orbital-ds/styles.css'; /* estructura */
|
|
25
|
-
@import 'orbital-ds/themes/qratia.css'; /* tema (después de la estructura) */
|
|
26
|
-
@source '../node_modules/orbital-ds/dist'; /* que Tailwind vea las clases del paquete */
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
```tsx
|
|
30
|
-
import { Button } from 'orbital-ds/ui/button';
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Cambiar de identidad = cambiar `qratia` por `zyro` en esas dos líneas de tema/fuentes.
|
|
34
|
-
Detalle del contrato, tokens y reglas de nombres en [`docs/CONTRACT.md`](docs/CONTRACT.md).
|
|
35
|
-
|
|
36
|
-
## Generar la marca desde un color (asistente)
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
pnpm exec orbital-ds-init # asistente interactivo
|
|
40
|
-
pnpm exec orbital-ds-init --primary "#1D63D8" # sin preguntas (CI, scripts)
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
A partir del **color primario** (hex, `rgb()`, `hsl()` u `oklch()`) deriva en OKLCH los neutros teñidos
|
|
44
|
-
(papel, tinta, tarjeta, bordes, lateral), el texto sobre el primario, el enlace y el foco, en piel clara y
|
|
45
|
-
oscura, y **comprueba el contraste** (AA 4,5:1). Si un color no llega, lo ajusta lo mínimo y te lo dice.
|
|
46
|
-
Escribe solo un bloque delimitado en `brand.css`; con `--update` lo reescribe y lo tuyo de fuera no se
|
|
47
|
-
toca. Opciones: `--theme`, `--accent`, `--no-marker` (apaga el rotulador de `tactile`), `--dry-run`,
|
|
48
|
-
`--yes`, `--out`. Sin dependencias.
|
|
49
|
-
|
|
50
|
-
**Modos de marca** (`--mode`; el asistente los ofrece con el recomendado por la ficha del tema):
|
|
51
|
-
`faithful` deja el tema tal cual (lo que piden los temas de un sistema corporativo, como `fractalia`:
|
|
52
|
-
`--theme fractalia --connect`), `primary` cambia solo el primario sobre la paleta del tema y `full`
|
|
53
|
-
deriva la paleta entera.
|
|
54
|
-
|
|
55
|
-
**Cambiar de tema** sin restos del anterior: `pnpm exec orbital-ds theme <tema>` pregunta qué hacer con la marca
|
|
56
|
-
(`--brand adapt|clean|clean-all|keep` sin preguntas). Desactiva, comentándolos y con copia `.bak`, los colores
|
|
57
|
-
escritos a mano para el tema anterior, y quita los imports de tema sueltos.
|
|
58
|
-
|
|
59
|
-
## Guía de cada tema
|
|
60
|
-
|
|
61
|
-
Cada tema lleva su documentación, que viaja con el paquete:
|
|
62
|
-
|
|
63
|
-
- `orbital-ds/themes/<tema>.guide.md` — guía de diseño: esencia, gesto firma, principios, referencias (qué se tomó de cada una), paleta, tipografía, formas, accesibilidad y estado de los valores (confirmados, aproximados o de diseño propio).
|
|
64
|
-
- `orbital-ds/themes/<tema>.meta.json` — la misma ficha legible por máquina.
|
|
65
|
-
|
|
66
|
-
`pnpm check:ds` falla si a un tema le falta alguna de las dos. Un tema nuevo debe nacer con ambas.
|
|
67
|
-
|
|
68
|
-
## Marca de una app
|
|
69
|
-
|
|
70
|
-
Lo propio de cada app (color principal, acento, radio, fuentes) va en **su** `src/brand.css`,
|
|
71
|
-
importado después del tema. Ninguna actualización de orbital-ds lo toca. `pnpm exec orbital-ds-init`
|
|
72
|
-
lo crea la primera vez. Detalle en [`docs/CONTRACT.md`](docs/CONTRACT.md).
|
|
73
|
-
|
|
74
|
-
## Regla
|
|
75
|
-
|
|
76
|
-
Ningún componente lleva valores propios (colores, medidas, sombras, z-index, duraciones):
|
|
77
|
-
pide un hueco a una variable. Para cambiar el aspecto se cambia el tema, no el componente.
|
|
78
|
-
Si un componente necesita un hueco nuevo, se AÑADE el token con un valor que deje el aspecto
|
|
79
|
-
como estaba. `pnpm check:ds` lo comprueba.
|
|
80
|
-
|
|
81
|
-
## Desarrollo
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
pnpm install
|
|
85
|
-
pnpm verify # doctor + typecheck + build
|
|
86
|
-
pnpm check:ds # solo el contrato de tema y los valores fijos
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Peers obligatorios: `react`, `react-dom`, `@base-ui/react`, `tailwindcss`, `tailwind-merge`,
|
|
90
|
-
`class-variance-authority`, `clsx`, `lucide-react`, `tw-animate-css`.
|
|
91
|
-
Opcionales (solo si usas ese componente): `recharts`, `sonner`, `next-themes`, `cmdk`,
|
|
92
|
-
`date-fns` + `react-day-picker`, `embla-carousel-react`, `input-otp`,
|
|
93
|
-
`react-resizable-panels`, `@shadcn/react`.
|
|
94
|
-
|
|
95
|
-
## Licencia
|
|
96
|
-
|
|
97
|
-
MIT © Fractalia Systems
|
|
1
|
+
# orbital-ds
|
|
2
|
+
|
|
3
|
+
Sistema de diseño genérico: **estructura común + temas intercambiables + ~60 componentes**
|
|
4
|
+
sobre [Base UI](https://base-ui.com) y Tailwind v4 (los de shadcn en su versión Base UI).
|
|
5
|
+
|
|
6
|
+
- `styles.css` — la ESTRUCTURA: mapea variables de tema a utilidades de Tailwind y define los
|
|
7
|
+
tokens semánticos (radios, alturas, sombras, espaciado, capas, movimiento, foco, materiales)
|
|
8
|
+
y la capa base. No lleva colores ni fuentes.
|
|
9
|
+
- `themes/<tema>.css` — un TEMA: paleta (claro/oscuro), radio base y tipografía.
|
|
10
|
+
Hoy: `qratia`, `zyro` (cristal), `liquid` (Liquid Glass de Apple), `lagoon` (pino y jade con dock oscuro), `friendly`, `twitter`, `tactile` y `fractalia` (sistema corporativo de
|
|
11
|
+
Fractalia, para usarlo fiel). Añadir otro = añadir otro fichero.
|
|
12
|
+
- `themes/<tema>.fonts.css` — las fuentes del tema (un `@import url()`; va el primero).
|
|
13
|
+
- `ui/*` — componentes, uno por fichero (`orbital-ds/ui/button`, …): quien no usa gráficos
|
|
14
|
+
no necesita `recharts`, quien no usa el calendario no necesita `react-day-picker`.
|
|
15
|
+
- `contract.json` + `pnpm check:ds` — el contrato de tema y su comprobación.
|
|
16
|
+
|
|
17
|
+
## Uso en una app (Tailwind v4)
|
|
18
|
+
|
|
19
|
+
```css
|
|
20
|
+
@import 'orbital-ds/themes/qratia.fonts.css'; /* fuentes: lo primero */
|
|
21
|
+
@import 'tailwindcss';
|
|
22
|
+
@plugin '@tailwindcss/typography';
|
|
23
|
+
@import 'tw-animate-css';
|
|
24
|
+
@import 'orbital-ds/styles.css'; /* estructura */
|
|
25
|
+
@import 'orbital-ds/themes/qratia.css'; /* tema (después de la estructura) */
|
|
26
|
+
@source '../node_modules/orbital-ds/dist'; /* que Tailwind vea las clases del paquete */
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
import { Button } from 'orbital-ds/ui/button';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Cambiar de identidad = cambiar `qratia` por `zyro` en esas dos líneas de tema/fuentes.
|
|
34
|
+
Detalle del contrato, tokens y reglas de nombres en [`docs/CONTRACT.md`](docs/CONTRACT.md).
|
|
35
|
+
|
|
36
|
+
## Generar la marca desde un color (asistente)
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
pnpm exec orbital-ds-init # asistente interactivo
|
|
40
|
+
pnpm exec orbital-ds-init --primary "#1D63D8" # sin preguntas (CI, scripts)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
A partir del **color primario** (hex, `rgb()`, `hsl()` u `oklch()`) deriva en OKLCH los neutros teñidos
|
|
44
|
+
(papel, tinta, tarjeta, bordes, lateral), el texto sobre el primario, el enlace y el foco, en piel clara y
|
|
45
|
+
oscura, y **comprueba el contraste** (AA 4,5:1). Si un color no llega, lo ajusta lo mínimo y te lo dice.
|
|
46
|
+
Escribe solo un bloque delimitado en `brand.css`; con `--update` lo reescribe y lo tuyo de fuera no se
|
|
47
|
+
toca. Opciones: `--theme`, `--accent`, `--no-marker` (apaga el rotulador de `tactile`), `--dry-run`,
|
|
48
|
+
`--yes`, `--out`. Sin dependencias.
|
|
49
|
+
|
|
50
|
+
**Modos de marca** (`--mode`; el asistente los ofrece con el recomendado por la ficha del tema):
|
|
51
|
+
`faithful` deja el tema tal cual (lo que piden los temas de un sistema corporativo, como `fractalia`:
|
|
52
|
+
`--theme fractalia --connect`), `primary` cambia solo el primario sobre la paleta del tema y `full`
|
|
53
|
+
deriva la paleta entera.
|
|
54
|
+
|
|
55
|
+
**Cambiar de tema** sin restos del anterior: `pnpm exec orbital-ds theme <tema>` pregunta qué hacer con la marca
|
|
56
|
+
(`--brand adapt|clean|clean-all|keep` sin preguntas). Desactiva, comentándolos y con copia `.bak`, los colores
|
|
57
|
+
escritos a mano para el tema anterior, y quita los imports de tema sueltos.
|
|
58
|
+
|
|
59
|
+
## Guía de cada tema
|
|
60
|
+
|
|
61
|
+
Cada tema lleva su documentación, que viaja con el paquete:
|
|
62
|
+
|
|
63
|
+
- `orbital-ds/themes/<tema>.guide.md` — guía de diseño: esencia, gesto firma, principios, referencias (qué se tomó de cada una), paleta, tipografía, formas, accesibilidad y estado de los valores (confirmados, aproximados o de diseño propio).
|
|
64
|
+
- `orbital-ds/themes/<tema>.meta.json` — la misma ficha legible por máquina.
|
|
65
|
+
|
|
66
|
+
`pnpm check:ds` falla si a un tema le falta alguna de las dos. Un tema nuevo debe nacer con ambas.
|
|
67
|
+
|
|
68
|
+
## Marca de una app
|
|
69
|
+
|
|
70
|
+
Lo propio de cada app (color principal, acento, radio, fuentes) va en **su** `src/brand.css`,
|
|
71
|
+
importado después del tema. Ninguna actualización de orbital-ds lo toca. `pnpm exec orbital-ds-init`
|
|
72
|
+
lo crea la primera vez. Detalle en [`docs/CONTRACT.md`](docs/CONTRACT.md).
|
|
73
|
+
|
|
74
|
+
## Regla
|
|
75
|
+
|
|
76
|
+
Ningún componente lleva valores propios (colores, medidas, sombras, z-index, duraciones):
|
|
77
|
+
pide un hueco a una variable. Para cambiar el aspecto se cambia el tema, no el componente.
|
|
78
|
+
Si un componente necesita un hueco nuevo, se AÑADE el token con un valor que deje el aspecto
|
|
79
|
+
como estaba. `pnpm check:ds` lo comprueba.
|
|
80
|
+
|
|
81
|
+
## Desarrollo
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pnpm install
|
|
85
|
+
pnpm verify # doctor + typecheck + build
|
|
86
|
+
pnpm check:ds # solo el contrato de tema y los valores fijos
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Peers obligatorios: `react`, `react-dom`, `@base-ui/react`, `tailwindcss`, `tailwind-merge`,
|
|
90
|
+
`class-variance-authority`, `clsx`, `lucide-react`, `tw-animate-css`.
|
|
91
|
+
Opcionales (solo si usas ese componente): `recharts`, `sonner`, `next-themes`, `cmdk`,
|
|
92
|
+
`date-fns` + `react-day-picker`, `embla-carousel-react`, `input-otp`,
|
|
93
|
+
`react-resizable-panels`, `@shadcn/react`.
|
|
94
|
+
|
|
95
|
+
## Licencia
|
|
96
|
+
|
|
97
|
+
MIT © Fractalia Systems
|
package/components.manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "orbital-ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"engine": "@base-ui/react",
|
|
5
5
|
"docs": [
|
|
6
6
|
"README.md",
|
|
@@ -1246,7 +1246,10 @@
|
|
|
1246
1246
|
"native-select-option",
|
|
1247
1247
|
"native-select-wrapper"
|
|
1248
1248
|
],
|
|
1249
|
-
"optionalPeers": []
|
|
1249
|
+
"optionalPeers": [],
|
|
1250
|
+
"notes": [
|
|
1251
|
+
"Es un <select> nativo: la lista desplegable la dibuja el navegador y ni el componente ni el tema pueden estilarla (solo el campo). Para una lista con el diseño del tema usa Select (orbital-ds/ui/select)."
|
|
1252
|
+
]
|
|
1250
1253
|
},
|
|
1251
1254
|
"navigation-menu": {
|
|
1252
1255
|
"import": "orbital-ds/ui/navigation-menu",
|
package/dist/motion.css
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
:where([data-slot='alert'], [data-slot='banner'], [data-slot='empty']) {
|
|
31
31
|
animation: var(--ds-enter-notices) var(--ds-motion-base) var(--ds-ease-enter) both;
|
|
32
32
|
}
|
|
33
|
-
:where([data-slot='page-header'], [data-slot='section-header']) {
|
|
33
|
+
:where([data-slot='page-header'], [data-slot='section-header'], [data-slot='app-header']) {
|
|
34
34
|
animation: var(--ds-enter-headers) var(--ds-motion-base) var(--ds-ease-enter) both;
|
|
35
35
|
}
|
|
36
36
|
:where([data-slot='timeline-item'], [data-slot='table-body'] > [data-slot='table-row']) {
|
package/dist/styles.css
CHANGED
|
@@ -543,10 +543,14 @@
|
|
|
543
543
|
--ds-status-dot-sm: var(--ds-status-dot); /* StatusDot suelto: size="sm" (sin size, el punto en línea) */
|
|
544
544
|
--ds-status-dot-md: 0.75rem; /* size="md" */
|
|
545
545
|
--ds-status-dot-lg: 1rem; /* size="lg" */
|
|
546
|
+
--ds-menu-gap: 4px; /* separación entre opciones de una lista (Command) */
|
|
547
|
+
--ds-chart-dash-w: 1.5px; /* grosor de las líneas de referencia a trazos (leyenda) */
|
|
546
548
|
--ds-gauge-size: 8.75rem; /* Gauge: lado del anillo (el arco ocupa la mitad de alto) */
|
|
547
549
|
--ds-gauge-stroke: 10px; /* grosor del trazo, en unidades del dibujo */
|
|
548
550
|
--ds-gauge-value-size: 2rem; /* cifra central */
|
|
549
|
-
--ds-gauge-suffix-size: 1.125rem; /* «/1.000» */
|
|
551
|
+
--ds-gauge-suffix-size: 1.125rem; /* sufijo («/1.000») */
|
|
552
|
+
--ds-gauge-value-fit: 20cqw; /* la cifra nunca pasa de esta parte del anillo */
|
|
553
|
+
--ds-gauge-suffix-fit: 11cqw; /* y el sufijo, de esta */
|
|
550
554
|
--ds-shield-w: 7.75rem; /* Shield md */
|
|
551
555
|
--ds-shield-h: 9.375rem;
|
|
552
556
|
--ds-shield-w-sm: 5.3125rem; /* Shield sm */
|
|
@@ -867,7 +871,8 @@
|
|
|
867
871
|
@apply bg-background text-foreground font-sans m-0 antialiased;
|
|
868
872
|
background-image: var(--ds-page-grain, none), var(--ds-page-backdrop);
|
|
869
873
|
background-attachment: fixed;
|
|
870
|
-
|
|
874
|
+
/* un tamaño por capa: grano + hasta 3 degradados del fondo (sobran = se ignoran) */
|
|
875
|
+
background-size: var(--ds-page-grain-size, cover), cover, cover, cover;
|
|
871
876
|
}
|
|
872
877
|
|
|
873
878
|
a {
|
|
@@ -988,6 +993,40 @@
|
|
|
988
993
|
@apply cursor-pointer;
|
|
989
994
|
}
|
|
990
995
|
|
|
996
|
+
/*
|
|
997
|
+
* `<select>` nativo suelto (sin NativeSelect/Select): hereda el campo del tema para no romper el
|
|
998
|
+
* diseño. Con `data-slot` (NativeSelect) manda su componente.
|
|
999
|
+
*/
|
|
1000
|
+
select:not([data-slot]) {
|
|
1001
|
+
height: var(--ds-control-h-md);
|
|
1002
|
+
min-width: 0;
|
|
1003
|
+
padding-block: 0.25rem;
|
|
1004
|
+
padding-inline: var(--ds-field-px);
|
|
1005
|
+
border: 1px solid var(--input);
|
|
1006
|
+
border-radius: var(--radius-control);
|
|
1007
|
+
background-color: var(--ds-field-bg);
|
|
1008
|
+
color: var(--foreground);
|
|
1009
|
+
box-shadow: var(--ds-shadow-control);
|
|
1010
|
+
font: inherit;
|
|
1011
|
+
font-size: 0.875rem;
|
|
1012
|
+
color-scheme: light dark;
|
|
1013
|
+
transition: border-color var(--ds-motion-snap) var(--ds-ease-standard);
|
|
1014
|
+
}
|
|
1015
|
+
select:not([data-slot]):hover:not(:disabled) {
|
|
1016
|
+
border-color: color-mix(in oklch, var(--ring) 60%, transparent);
|
|
1017
|
+
}
|
|
1018
|
+
select:not([data-slot]):focus-visible {
|
|
1019
|
+
border-color: var(--ring);
|
|
1020
|
+
}
|
|
1021
|
+
select:not([data-slot]):disabled {
|
|
1022
|
+
opacity: var(--ds-disabled-opacity);
|
|
1023
|
+
}
|
|
1024
|
+
select:not([data-slot]) option,
|
|
1025
|
+
select:not([data-slot]) optgroup {
|
|
1026
|
+
background-color: var(--popover);
|
|
1027
|
+
color: var(--popover-foreground);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
991
1030
|
button:disabled,
|
|
992
1031
|
select:disabled,
|
|
993
1032
|
input:disabled,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* Fuentes del tema lagoon: Geist (titulares y cuerpo) + Instrument Serif cursiva (palabra de énfasis). Importar el PRIMERO del CSS de la app. */
|
|
2
|
-
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@1&display=swap');
|
|
1
|
+
/* Fuentes del tema lagoon: Geist (titulares y cuerpo) + Instrument Serif cursiva (palabra de énfasis). Importar el PRIMERO del CSS de la app. */
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@1&display=swap');
|
|
@@ -15,6 +15,7 @@ superficies llegan primero y su contenido sube después.
|
|
|
15
15
|
## Movimiento
|
|
16
16
|
- Importa `orbital-ds/motion.css` después del tema; sin ese import no anima nada.
|
|
17
17
|
- Entradas (`motion.auto`): superficies `ds-auto-enter`, avisos `ds-auto-pop`, cabeceras y filas `ds-auto-enter`.
|
|
18
|
+
- La entrada automática actúa por `data-slot`: también en una cabecera propia con `data-slot="app-header"`. El destino activo del `Dock` no se anima solo (usa `scale`/`translate` para la lupa); si la app quiere un gesto ahí, que use `useDsMotion()`.
|
|
18
19
|
- Muelles reales con `linear()` donde el navegador los dibuja; si no, curvas con rebote equivalentes.
|
|
19
20
|
- Para animar a mano, `DsMotionProvider` + `useDsMotion()` (Motion); heredan ritmo y curvas de este tema.
|
|
20
21
|
- Movimiento reducido: lo detiene la estructura, no el tema.
|
package/dist/ui/avatar.js
CHANGED
|
@@ -13,7 +13,7 @@ function Avatar({
|
|
|
13
13
|
"data-slot": "avatar",
|
|
14
14
|
"data-size": size,
|
|
15
15
|
className: cn(
|
|
16
|
-
"group/avatar relative flex size-(--ds-avatar-md) shrink-0 rounded-avatar select-none after:absolute after:inset-0 after:rounded-avatar after:border after:border-border after:mix-blend-darken data-[size=lg]:size-(--ds-avatar-lg) data-[size=sm]:size-(--ds-avatar-sm) dark:after:mix-blend-lighten",
|
|
16
|
+
"group/avatar relative flex aspect-square size-(--ds-avatar-md) min-h-(--ds-avatar-md) min-w-(--ds-avatar-md) shrink-0 basis-(--ds-avatar-md) rounded-avatar select-none after:absolute after:inset-0 after:rounded-avatar after:border after:border-border after:mix-blend-darken data-[size=lg]:size-(--ds-avatar-lg) data-[size=lg]:min-h-(--ds-avatar-lg) data-[size=lg]:min-w-(--ds-avatar-lg) data-[size=lg]:basis-(--ds-avatar-lg) data-[size=sm]:size-(--ds-avatar-sm) data-[size=sm]:min-h-(--ds-avatar-sm) data-[size=sm]:min-w-(--ds-avatar-sm) data-[size=sm]:basis-(--ds-avatar-sm) dark:after:mix-blend-lighten",
|
|
17
17
|
className
|
|
18
18
|
),
|
|
19
19
|
...props
|
package/dist/ui/chart.js
CHANGED
|
@@ -146,7 +146,7 @@ function ChartTooltipContent({
|
|
|
146
146
|
{
|
|
147
147
|
"h-2.5 w-2.5": indicator === "dot",
|
|
148
148
|
"w-1": indicator === "line",
|
|
149
|
-
"w-0 border-
|
|
149
|
+
"w-0 border-(length:--ds-chart-dash-w) border-dashed bg-transparent": indicator === "dashed",
|
|
150
150
|
"my-0.5": nestLabel && indicator === "dashed"
|
|
151
151
|
}
|
|
152
152
|
),
|
package/dist/ui/command.js
CHANGED
|
@@ -115,7 +115,7 @@ function CommandGroup({
|
|
|
115
115
|
{
|
|
116
116
|
"data-slot": "command-group",
|
|
117
117
|
className: cn(
|
|
118
|
-
"overflow-hidden p-(--ds-menu-p) text-foreground **:[[cmdk-group-heading]]:px-(--ds-menu-item-px) **:[[cmdk-group-heading]]:py-(--ds-menu-item-py) **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-(--ds-medium-weight) **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
118
|
+
"overflow-hidden p-(--ds-menu-p) text-foreground **:[[cmdk-group-items]]:flex **:[[cmdk-group-items]]:flex-col **:[[cmdk-group-items]]:gap-(--ds-menu-gap) **:[[cmdk-group-heading]]:px-(--ds-menu-item-px) **:[[cmdk-group-heading]]:py-(--ds-menu-item-py) **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-(--ds-medium-weight) **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
119
119
|
className
|
|
120
120
|
),
|
|
121
121
|
...props
|
|
@@ -145,7 +145,7 @@ function CommandItem({
|
|
|
145
145
|
{
|
|
146
146
|
"data-slot": "command-item",
|
|
147
147
|
className: cn(
|
|
148
|
-
"group/command-item relative flex cursor-
|
|
148
|
+
"group/command-item relative flex cursor-pointer items-center gap-2 rounded-item px-(--ds-menu-item-px) py-(--ds-menu-item-py) text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-(--ds-disabled-opacity) data-[selected=true]:bg-muted data-[selected=true]:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[selected=true]:*:[svg]:text-foreground",
|
|
149
149
|
className
|
|
150
150
|
),
|
|
151
151
|
...props,
|
|
@@ -165,7 +165,7 @@ function CommandShortcut({
|
|
|
165
165
|
{
|
|
166
166
|
"data-slot": "command-shortcut",
|
|
167
167
|
className: cn(
|
|
168
|
-
"ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",
|
|
168
|
+
"ml-auto text-xs tracking-widest text-muted-foreground group-data-[selected=true]/command-item:text-foreground",
|
|
169
169
|
className
|
|
170
170
|
),
|
|
171
171
|
...props
|
package/dist/ui/gauge.js
CHANGED
|
@@ -55,7 +55,7 @@ function Gauge({
|
|
|
55
55
|
"aria-valuenow": now ?? void 0,
|
|
56
56
|
"aria-valuetext": text,
|
|
57
57
|
"data-slot": "gauge-chart",
|
|
58
|
-
className: cn("relative shrink-0 w-(--ds-gauge-size)", semi ? "h-[calc(var(--ds-gauge-size)/2)]" : "h-(--ds-gauge-size)"),
|
|
58
|
+
className: cn("@container relative shrink-0 w-(--ds-gauge-size)", semi ? "h-[calc(var(--ds-gauge-size)/2)]" : "h-(--ds-gauge-size)"),
|
|
59
59
|
children: [
|
|
60
60
|
/* @__PURE__ */ jsxs("svg", { viewBox: geometry.viewBox, "aria-hidden": "true", className: "size-full overflow-visible rtl:-scale-x-100", children: [
|
|
61
61
|
/* @__PURE__ */ jsx(
|
|
@@ -86,7 +86,7 @@ function Gauge({
|
|
|
86
86
|
{
|
|
87
87
|
"data-slot": "gauge-center",
|
|
88
88
|
className: cn(
|
|
89
|
-
"absolute flex flex-col items-center justify-center gap-1 text-center",
|
|
89
|
+
"absolute flex min-w-0 flex-col items-center justify-center gap-1 text-center",
|
|
90
90
|
semi ? "inset-x-0 bottom-0" : "inset-[15%]"
|
|
91
91
|
),
|
|
92
92
|
children
|
|
@@ -103,13 +103,13 @@ function GaugeValue({ className, ...props }) {
|
|
|
103
103
|
"span",
|
|
104
104
|
{
|
|
105
105
|
"data-slot": "gauge-value",
|
|
106
|
-
className: cn("font-display text-(
|
|
106
|
+
className: cn("inline-flex max-w-full flex-col items-center gap-0.5 font-display text-[length:min(var(--ds-gauge-value-size),var(--ds-gauge-value-fit))] leading-none font-(--ds-heading-weight) tabular-nums", className),
|
|
107
107
|
...props
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
function GaugeSuffix({ className, ...props }) {
|
|
112
|
-
return /* @__PURE__ */ jsx("span", { "data-slot": "gauge-value-suffix", className: cn("text-(
|
|
112
|
+
return /* @__PURE__ */ jsx("span", { "data-slot": "gauge-value-suffix", className: cn("max-w-full truncate text-[length:min(var(--ds-gauge-suffix-size),var(--ds-gauge-suffix-fit))]", className), ...props });
|
|
113
113
|
}
|
|
114
114
|
function GaugeTag({ className, style, tone, ...props }) {
|
|
115
115
|
const ctx = React.useContext(GaugeContext);
|
|
@@ -117,7 +117,7 @@ function GaugeTag({ className, style, tone, ...props }) {
|
|
|
117
117
|
"span",
|
|
118
118
|
{
|
|
119
119
|
"data-slot": "gauge-tag",
|
|
120
|
-
className: cn("inline-flex rounded-badge px-(--ds-badge-px) py-(--ds-badge-py) text-xs text-foreground", className),
|
|
120
|
+
className: cn("inline-flex max-w-full justify-center rounded-badge px-(--ds-badge-px) py-(--ds-badge-py) text-xs text-foreground", className),
|
|
121
121
|
style: { backgroundColor: dataToneSoftVar[tone ?? ctx.tone], ...style },
|
|
122
122
|
...props
|
|
123
123
|
}
|
|
@@ -138,7 +138,7 @@ function GaugeScale({
|
|
|
138
138
|
"div",
|
|
139
139
|
{
|
|
140
140
|
"data-slot": "gauge-scale",
|
|
141
|
-
className: cn("flex w-(--ds-gauge-size) justify-between text-xs font-(--ds-strong-weight)", className),
|
|
141
|
+
className: cn("flex w-(--ds-gauge-size) justify-between gap-2 text-xs font-(--ds-strong-weight)", className),
|
|
142
142
|
...props,
|
|
143
143
|
children: [
|
|
144
144
|
/* @__PURE__ */ jsx("span", { "data-slot": "gauge-scale-min", style: { color: dataToneVar[minTone] }, children: min }),
|
package/dist/ui/level-meter.js
CHANGED
|
@@ -30,12 +30,12 @@ function LevelMeter({
|
|
|
30
30
|
className: cn("flex flex-col gap-1 text-foreground", className),
|
|
31
31
|
...props,
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ jsxs("div", { "data-slot": "level-meter-header", className: "flex items-center gap-2", children: [
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "level-meter-header", className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1", children: [
|
|
34
34
|
level && /* @__PURE__ */ jsx(
|
|
35
35
|
"span",
|
|
36
36
|
{
|
|
37
37
|
"data-slot": "level-meter-tag",
|
|
38
|
-
className: "inline-flex rounded-badge px-(--ds-badge-px) py-(--ds-badge-py) text-xs",
|
|
38
|
+
className: "inline-flex max-w-full rounded-badge px-(--ds-badge-px) py-(--ds-badge-py) text-xs",
|
|
39
39
|
style: { backgroundColor: dataToneSoftVar[tone] },
|
|
40
40
|
children: level
|
|
41
41
|
}
|
package/dist/ui/select.js
CHANGED
|
@@ -28,7 +28,7 @@ function SelectTrigger({
|
|
|
28
28
|
"data-slot": "select-trigger",
|
|
29
29
|
"data-size": size,
|
|
30
30
|
className: cn(
|
|
31
|
-
"flex w-fit items-center justify-between gap-1.5 rounded-control shadow-control border border-input bg-(--ds-field-bg) px-(--ds-field-px) py-2 text-sm whitespace-nowrap transition-colors duration-(--ds-motion-snap) outline-none focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) disabled:cursor-not-allowed disabled:opacity-(--ds-disabled-opacity) aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(length:--ds-ring-width) aria-invalid:ring-(--ds-invalid-ring) data-placeholder:text-muted-foreground data-[size=default]:h-(--ds-control-h-md) data-[size=sm]:h-(--ds-control-h-sm) *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 cursor-pointer hover:bg-(--ds-field-bg-hover) data-popup-open:bg-(--ds-field-bg-hover) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
31
|
+
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-control hover:border-ring/60 shadow-control border border-input bg-(--ds-field-bg) px-(--ds-field-px) py-2 text-sm whitespace-nowrap transition-colors duration-(--ds-motion-snap) outline-none focus-visible:border-ring focus-visible:ring-(length:--ds-ring-width) focus-visible:ring-(--ds-ring-color) disabled:cursor-not-allowed disabled:opacity-(--ds-disabled-opacity) aria-invalid:border-(--ds-invalid-border) aria-invalid:ring-(length:--ds-ring-width) aria-invalid:ring-(--ds-invalid-ring) data-placeholder:text-muted-foreground data-[size=default]:h-(--ds-control-h-md) data-[size=sm]:h-(--ds-control-h-sm) *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 cursor-pointer hover:bg-(--ds-field-bg-hover) data-popup-open:bg-(--ds-field-bg-hover) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
32
32
|
className
|
|
33
33
|
),
|
|
34
34
|
...props,
|
package/dist/ui/shield.js
CHANGED
|
@@ -80,7 +80,7 @@ function Shield({
|
|
|
80
80
|
{
|
|
81
81
|
"data-slot": "shield-value",
|
|
82
82
|
"aria-hidden": "true",
|
|
83
|
-
className: "relative font-display text-(length:--ds-shield-value-size) leading-none font-(--ds-shield-value-weight) tabular-nums",
|
|
83
|
+
className: "relative max-w-full truncate font-display text-(length:--ds-shield-value-size) leading-none font-(--ds-shield-value-weight) tabular-nums",
|
|
84
84
|
children: percent
|
|
85
85
|
}
|
|
86
86
|
)
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -429,7 +429,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
const sidebarMenuButtonVariants = cva(
|
|
432
|
-
"peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-(--ds-sidebar-item-radius) px-3 py-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] duration-(--ds-motion-snap) group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:mx-auto hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-(length:--ds-ring-width) active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-(--ds-disabled-opacity) aria-disabled:pointer-events-none aria-disabled:opacity-(--ds-disabled-opacity) data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:font-(--ds-nav-active-weight) data-[active=true]:text-sidebar-accent-foreground [&_svg]:shrink-0 [&>span:last-child]:truncate",
|
|
432
|
+
"peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-(--ds-sidebar-item-radius) px-3 py-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding,background-color,color] duration-(--ds-motion-snap) ease-(--ds-ease-standard) group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:mx-auto hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-(length:--ds-ring-width) active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-(--ds-disabled-opacity) aria-disabled:pointer-events-none aria-disabled:opacity-(--ds-disabled-opacity) data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:font-(--ds-nav-active-weight) data-[active=true]:text-sidebar-accent-foreground [&_svg]:shrink-0 [&>span:last-child]:truncate",
|
|
433
433
|
{
|
|
434
434
|
variants: {
|
|
435
435
|
variant: {
|
package/dist/ui/stat.js
CHANGED
|
@@ -81,7 +81,7 @@ function StatPart({
|
|
|
81
81
|
}
|
|
82
82
|
function StatLabel({ className, ...props }) {
|
|
83
83
|
const { labelId } = React.useContext(StatContext);
|
|
84
|
-
return /* @__PURE__ */ jsx(StatPart, { term: true, id: labelId, "data-slot": "stat-label", className: cn(eyebrowClassName, className), ...props });
|
|
84
|
+
return /* @__PURE__ */ jsx(StatPart, { term: true, id: labelId, "data-slot": "stat-label", className: cn(eyebrowClassName, "min-w-0 text-balance break-words", className), ...props });
|
|
85
85
|
}
|
|
86
86
|
function StatValue({
|
|
87
87
|
value,
|
|
@@ -105,7 +105,7 @@ function StatValue({
|
|
|
105
105
|
}, [value, format, fractionDigits, locale]);
|
|
106
106
|
const state = loading ? "loading" : formatted == null ? "empty" : "filled";
|
|
107
107
|
const base = cn(
|
|
108
|
-
"flex items-baseline gap-1 leading-none font-(--ds-stat-value-weight) text-foreground tabular-nums",
|
|
108
|
+
"flex min-w-0 flex-wrap items-baseline gap-x-1 gap-y-0.5 leading-none font-(--ds-stat-value-weight) text-foreground tabular-nums",
|
|
109
109
|
stat.variant === "inline" ? "text-base" : statValueSize[stat.size],
|
|
110
110
|
className
|
|
111
111
|
);
|
|
@@ -143,7 +143,7 @@ function StatValue({
|
|
|
143
143
|
}
|
|
144
144
|
return /* @__PURE__ */ jsxs(StatPart, { "data-slot": "stat-value", "data-state": state, className: base, ...props, children: [
|
|
145
145
|
prefix != null && /* @__PURE__ */ jsx("span", { "data-slot": "stat-value-prefix", className: "text-sm text-muted-foreground", children: prefix }),
|
|
146
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "stat-value-number", children: formatted }),
|
|
146
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "stat-value-number", className: "min-w-0 break-all", children: formatted }),
|
|
147
147
|
unit != null && /* @__PURE__ */ jsx("span", { "data-slot": "stat-value-unit", className: "text-sm font-(--ds-label-weight) text-muted-foreground", children: unit })
|
|
148
148
|
] });
|
|
149
149
|
}
|
|
@@ -176,7 +176,7 @@ function StatDelta({
|
|
|
176
176
|
"data-state": direction,
|
|
177
177
|
"data-tone": tone,
|
|
178
178
|
className: cn(
|
|
179
|
-
"inline-flex w-fit items-center gap-0.5 rounded-badge px-(--ds-badge-px) py-(--ds-badge-py) text-xs font-(--ds-label-weight) tabular-nums [&>svg]:size-3 [&>svg]:shrink-0",
|
|
179
|
+
"inline-flex w-fit max-w-full items-center gap-0.5 rounded-badge px-(--ds-badge-px) py-(--ds-badge-py) text-xs font-(--ds-label-weight) tabular-nums [&>svg]:size-3 [&>svg]:shrink-0",
|
|
180
180
|
tone === "success" && "bg-success-soft text-success",
|
|
181
181
|
tone === "danger" && "bg-danger-soft text-danger",
|
|
182
182
|
tone === "neutral" && "bg-neutral-soft text-neutral",
|