@gustavogalveza/design-system 0.0.0-stage → 0.1.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/CHANGELOG.md +39 -0
- package/LICENSE +21 -0
- package/README.md +275 -2
- package/package.json +49 -4
- package/src/base.css +344 -0
- package/src/behaviors/_shared.js +214 -0
- package/src/behaviors/bottom-sheet.js +436 -0
- package/src/behaviors/carousel.js +76 -0
- package/src/behaviors/date-picker.js +1089 -0
- package/src/behaviors/fab-menu.js +406 -0
- package/src/behaviors/menu.js +549 -0
- package/src/behaviors/navigation-drawer.js +418 -0
- package/src/behaviors/search.js +701 -0
- package/src/behaviors/side-sheet.js +332 -0
- package/src/behaviors/tabs.js +274 -0
- package/src/behaviors/time-picker.js +587 -0
- package/src/behaviors/toolbar.js +125 -0
- package/src/behaviors/tooltip.js +554 -0
- package/src/colors.css +102 -0
- package/src/components/app-bar.css +365 -0
- package/src/components/badge.css +136 -0
- package/src/components/bottom-sheet.css +518 -0
- package/src/components/button-group.css +131 -0
- package/src/components/button.css +182 -0
- package/src/components/card.css +133 -0
- package/src/components/carousel.css +453 -0
- package/src/components/checkbox.css +279 -0
- package/src/components/chip.css +119 -0
- package/src/components/date-picker.css +709 -0
- package/src/components/dialog.css +496 -0
- package/src/components/divider.css +93 -0
- package/src/components/extended-fab.css +233 -0
- package/src/components/fab-menu.css +372 -0
- package/src/components/fab.css +185 -0
- package/src/components/field.css +118 -0
- package/src/components/icon-button.css +293 -0
- package/src/components/list.css +362 -0
- package/src/components/loading-indicator.css +214 -0
- package/src/components/menu.css +458 -0
- package/src/components/navigation-bar.css +326 -0
- package/src/components/navigation-drawer.css +404 -0
- package/src/components/navigation-rail.css +225 -0
- package/src/components/progress.css +315 -0
- package/src/components/radio.css +214 -0
- package/src/components/search.css +568 -0
- package/src/components/segmented-button.css +277 -0
- package/src/components/side-sheet.css +436 -0
- package/src/components/slider.css +330 -0
- package/src/components/snackbar.css +306 -0
- package/src/components/split-button.css +420 -0
- package/src/components/surface.css +28 -0
- package/src/components/switch.css +218 -0
- package/src/components/tabs.css +329 -0
- package/src/components/time-picker.css +875 -0
- package/src/components/toolbar.css +225 -0
- package/src/components/tooltip.css +488 -0
- package/src/icons.css +33 -0
- package/src/index.css +41 -0
- package/src/tokens.css +180 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Formato basado en [Keep a Changelog](https://keepachangelog.com/es-ES/1.1.0/)
|
|
4
|
+
y versionado [SemVer](https://semver.org/lang/es/).
|
|
5
|
+
|
|
6
|
+
## 0.1.0 — 2026-12-02
|
|
7
|
+
|
|
8
|
+
Primera versión pública. Implementación **independiente y no oficial** de
|
|
9
|
+
Material 3 Expressive; el catálogo completo está auditado componente a
|
|
10
|
+
componente.
|
|
11
|
+
|
|
12
|
+
### Licencias
|
|
13
|
+
|
|
14
|
+
- Código: MIT. Ver `LICENSE`.
|
|
15
|
+
|
|
16
|
+
### Añadido
|
|
17
|
+
|
|
18
|
+
- **36 componentes** con clases `m3-*` estables: app bar, badge, bottom sheet,
|
|
19
|
+
button, button group, card, carousel, checkbox, chip, date picker, dialog,
|
|
20
|
+
divider, extended FAB, FAB, FAB menu, field, icon button, list, loading
|
|
21
|
+
indicator, menu, navigation bar, navigation drawer, navigation rail, progress,
|
|
22
|
+
radio, search, segmented button, side sheet, slider, snackbar, split button,
|
|
23
|
+
switch, tabs, time picker, toolbar y tooltip.
|
|
24
|
+
- **Tokens** `--md-sys-*` (color, tipografía, forma, elevación, movimiento) y
|
|
25
|
+
paleta por defecto con tema claro y oscuro.
|
|
26
|
+
- **12 behaviors** ESM sin dependencias en `src/behaviors/`: tabs, tooltip,
|
|
27
|
+
carousel, navigation drawer, side sheet, bottom sheet, FAB menu, menu, toolbar,
|
|
28
|
+
date picker, time picker y search. Nueve se autoinicializan al importarse;
|
|
29
|
+
`globalThis.__M3_MANUAL_INIT__ = true` lo desactiva.
|
|
30
|
+
|
|
31
|
+
### Accesibilidad
|
|
32
|
+
|
|
33
|
+
- Target mínimo de 48 px, anillos de foco visibles, estados que no dependen solo
|
|
34
|
+
del color, `forced-colors` y `prefers-reduced-motion` en todo el catálogo.
|
|
35
|
+
- Verificado a 200 % de texto, 320 px de ancho y en RTL.
|
|
36
|
+
|
|
37
|
+
### Limitaciones conocidas
|
|
38
|
+
|
|
39
|
+
Ver «Límites conocidos» en el README.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 gustavogalveza
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,276 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @gustavogalveza/design-system
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Implementación independiente y **no oficial**. No está afiliada, respaldada ni
|
|
4
|
+
> patrocinada por Google LLC. «Material», «Material Design», «Material 3»,
|
|
5
|
+
> «M3 Expressive» y «Material Symbols» son marcas de Google LLC; el uso aquí es
|
|
6
|
+
> descriptivo y no implica respaldo.
|
|
7
|
+
|
|
8
|
+
Sistema de diseño M3 Expressive en CSS, sin runtime y sin framework. Los
|
|
9
|
+
componentes se usan con HTML nativo: si funciona en las previews del repositorio,
|
|
10
|
+
funciona en Svelte, Angular, Vue o React.
|
|
11
|
+
|
|
12
|
+
El código es original y se distribuye bajo **MIT**. Ver `LICENSE`.
|
|
13
|
+
|
|
14
|
+
## Uso
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import "@gustavogalveza/design-system/index.css";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<button class="m3-button m3-button--filled">
|
|
22
|
+
<span class="m3-button__label">Guardar</span>
|
|
23
|
+
</button>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Tema
|
|
27
|
+
|
|
28
|
+
El paquete trae una paleta por defecto (violeta) en `colors.css`. Para usar la
|
|
29
|
+
tuya, define los roles `--md-sys-color-*` en un selector más específico:
|
|
30
|
+
|
|
31
|
+
```css
|
|
32
|
+
[data-theme="menta"][data-mode="dark"] {
|
|
33
|
+
--md-sys-color-primary: #4dd0c4;
|
|
34
|
+
/* … */
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`data-mode="light|dark"` activa el esquema. El paquete **no incluye fuentes**: el
|
|
39
|
+
consumidor debe servir Roboto Flex y Material Symbols desde su propio origen.
|
|
40
|
+
Sin Material Symbols los iconos aparecen como texto (`arrow_back` en vez de una
|
|
41
|
+
flecha).
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: "Material Symbols Outlined";
|
|
46
|
+
src: url("/fonts/material-symbols-outlined.woff2") format("woff2");
|
|
47
|
+
font-display: swap;
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Evita cargar `fonts.googleapis.com` en producción: transmite la IP del visitante
|
|
52
|
+
a Google y en la UE se ha considerado un incumplimiento del RGPD (LG München I,
|
|
53
|
+
20.01.2022, 3 O 17493/20). La API de Google Fonts queda solo para demos locales.
|
|
54
|
+
|
|
55
|
+
## Personalización por componente
|
|
56
|
+
|
|
57
|
+
Cada componente expone sus propias variables `--m3-<componente>-*` en su archivo
|
|
58
|
+
CSS (`--m3-button-height`, `--m3-tabs-indicator-thickness`, etc.). Tres no las
|
|
59
|
+
define el CSS y vienen de fuera:
|
|
60
|
+
|
|
61
|
+
| Variable | Quién la define |
|
|
62
|
+
|---|---|
|
|
63
|
+
| `--m3-slider-value` | El consumidor (0–100) si no usa el `<input type="range">` |
|
|
64
|
+
| `--m3-divider-length` | El consumidor, para un divider vertical de longitud fija |
|
|
65
|
+
| `--m3-time-picker-angle` | El behavior del time picker, con el ángulo de la manecilla |
|
|
66
|
+
|
|
67
|
+
## Soporte de navegador
|
|
68
|
+
|
|
69
|
+
El CSS usa características recientes. En navegadores antiguos **no da error**:
|
|
70
|
+
se degrada en silencio, así que conviene saber qué se pierde.
|
|
71
|
+
|
|
72
|
+
| Característica | Uso | Sin soporte |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| `color-mix()` | 77 archivos | Colores de estado y deshabilitados quedan planos |
|
|
75
|
+
| `:has()` | 40 archivos | Estados que dependen del contenido no se aplican |
|
|
76
|
+
| `dvh` | 21 archivos | Alturas de hojas y pickers con la barra móvil |
|
|
77
|
+
| `@starting-style` | 11 archivos | Sin animación de entrada |
|
|
78
|
+
| `text-wrap: balance` | 13 archivos | Títulos sin balanceo |
|
|
79
|
+
| `position-area` | 3 archivos | Menús y desplegables centrados por el navegador |
|
|
80
|
+
| `:modal`, `container-type`, `interpolate-size` | 3 / 1 / 1 | Sin bloqueo de fondo, sin escalado por columna, sin animación de ancho |
|
|
81
|
+
|
|
82
|
+
Probado en navegador real (Chrome/Edge 158). Las demás líneas son la versión
|
|
83
|
+
mínima que soporta todas las características de la tabla: **Safari 18+,
|
|
84
|
+
Firefox 128+**.
|
|
85
|
+
|
|
86
|
+
## Behaviors
|
|
87
|
+
|
|
88
|
+
Los módulos de `src/behaviors/` son opcionales. **Nueve de ellos se
|
|
89
|
+
autoinicializan al importarse** (`tabs`, `menu` y `time-picker` no). Para
|
|
90
|
+
inicializar a mano:
|
|
91
|
+
|
|
92
|
+
```js
|
|
93
|
+
globalThis.__M3_MANUAL_INIT__ = true; // antes de importar el módulo
|
|
94
|
+
const { initAllMenus } = await import("@gustavogalveza/design-system/src/behaviors/menu.js");
|
|
95
|
+
initAllMenus(document.querySelector("#mi-zona"));
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Aviso
|
|
99
|
+
|
|
100
|
+
Implementación independiente y **no oficial** de las guías públicas de Material
|
|
101
|
+
Design 3. No está afiliada, respaldada ni patrocinada por Google LLC. «Material»,
|
|
102
|
+
«Material Design», «Material 3», «M3», «M3 Expressive», «Material You» y
|
|
103
|
+
«Material Symbols» son marcas de Google LLC; el uso aquí es descriptivo y no
|
|
104
|
+
implica respaldo.
|
|
105
|
+
|
|
106
|
+
## Contrato por componente
|
|
107
|
+
|
|
108
|
+
### Índice
|
|
109
|
+
|
|
110
|
+
| Componente | Clase raíz | Comportamiento |
|
|
111
|
+
|---|---|---|
|
|
112
|
+
| App bar | `.m3-app-bar` | — |
|
|
113
|
+
| Badge | `.m3-badge` | — |
|
|
114
|
+
| Bottom sheet | `.m3-bottom-sheet` | `behaviors/bottom-sheet.js` |
|
|
115
|
+
| Button | `.m3-button` | — |
|
|
116
|
+
| Button group | `.m3-button-group` | — |
|
|
117
|
+
| Card | `.m3-card` | — |
|
|
118
|
+
| Carousel | `.m3-carousel` | `behaviors/carousel.js` |
|
|
119
|
+
| Checkbox | `.m3-checkbox` | nativo |
|
|
120
|
+
| Chip | `.m3-chip` | — |
|
|
121
|
+
| Date picker | `.m3-date-picker` | `behaviors/date-picker.js` |
|
|
122
|
+
| Dialog | `.m3-dialog` | `<dialog>` nativo |
|
|
123
|
+
| Divider | `.m3-divider` | — |
|
|
124
|
+
| Extended FAB | `.m3-extended-fab` | — |
|
|
125
|
+
| FAB | `.m3-fab` | — |
|
|
126
|
+
| FAB menu | `.m3-fab-menu` | `behaviors/fab-menu.js` |
|
|
127
|
+
| Icon button | `.m3-icon-button` | — |
|
|
128
|
+
| List | `.m3-list` | — |
|
|
129
|
+
| Loading indicator | `.m3-loading-indicator` | — |
|
|
130
|
+
| Menu | `.m3-menu-anchor` | `behaviors/menu.js` |
|
|
131
|
+
| Navigation bar | `.m3-navigation-bar` | — |
|
|
132
|
+
| Navigation drawer | `.m3-navigation-drawer` | `behaviors/navigation-drawer.js` |
|
|
133
|
+
| Navigation rail | `.m3-navigation-rail` | — |
|
|
134
|
+
| Progress | `.m3-progress` | — |
|
|
135
|
+
| Radio | `.m3-radio-group` | nativo |
|
|
136
|
+
| Search | `.m3-search` | `behaviors/search.js` |
|
|
137
|
+
| Segmented button | `.m3-segmented-button` | — |
|
|
138
|
+
| Side sheet | `.m3-side-sheet` | `behaviors/side-sheet.js` |
|
|
139
|
+
| Slider | `.m3-slider` | nativo |
|
|
140
|
+
| Snackbar | `.m3-snackbar-region` | — |
|
|
141
|
+
| Split button | `.m3-split-button` | — |
|
|
142
|
+
| Switch | `.m3-switch` | nativo |
|
|
143
|
+
| Tabs | `.m3-tabs` | `behaviors/tabs.js` |
|
|
144
|
+
| Text field | `.m3-field` | nativo |
|
|
145
|
+
| Time picker | `.m3-time-picker` | `behaviors/time-picker.js` |
|
|
146
|
+
| Toolbar | `.m3-toolbar` | `behaviors/toolbar.js` |
|
|
147
|
+
| Tooltip | `.m3-tooltip-anchor` | `behaviors/tooltip.js` |
|
|
148
|
+
|
|
149
|
+
Los comportamientos son **opcionales**: el CSS funciona sin JavaScript; los
|
|
150
|
+
módulos solo añaden teclado, foco y posición. Se importan como ESM desde
|
|
151
|
+
`src/behaviors/` y cada archivo documenta su contrato en el JSDoc.
|
|
152
|
+
|
|
153
|
+
### Botón
|
|
154
|
+
|
|
155
|
+
```html
|
|
156
|
+
<button class="m3-button m3-button--filled">…</button>
|
|
157
|
+
<span class="m3-button__label">Texto</span>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Variantes: `--filled`, `--tonal`, `--outlined`, `--text`, `--elevated`.
|
|
161
|
+
Altura: 40 por defecto, `--sm` para 32. Icono: `.m3-icon .m3-icon--20` con
|
|
162
|
+
`aria-hidden="true"` si es decorativo.
|
|
163
|
+
|
|
164
|
+
### Chip
|
|
165
|
+
|
|
166
|
+
```html
|
|
167
|
+
<button class="m3-chip" aria-pressed="false">
|
|
168
|
+
<span class="m3-icon m3-icon--18" aria-hidden="true">refresh</span>
|
|
169
|
+
<span class="m3-chip__label">Filtro</span>
|
|
170
|
+
</button>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Seleccionado: `m3-chip--selected` + `aria-pressed="true"`.
|
|
174
|
+
|
|
175
|
+
### Tarjeta
|
|
176
|
+
|
|
177
|
+
```html
|
|
178
|
+
<a class="m3-card m3-card--elevated m3-card--interactive" href="/x">…</a>
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Variantes: `--elevated`, `--filled`, `--outlined`. `--interactive` añade hover,
|
|
182
|
+
pressed y foco.
|
|
183
|
+
|
|
184
|
+
### Switch
|
|
185
|
+
|
|
186
|
+
```html
|
|
187
|
+
<label class="m3-switch">
|
|
188
|
+
<input class="m3-switch__input" type="checkbox" role="switch" checked />
|
|
189
|
+
<span class="m3-switch__track" aria-hidden="true">
|
|
190
|
+
<span class="m3-switch__state"></span>
|
|
191
|
+
<span class="m3-switch__thumb"></span>
|
|
192
|
+
</span>
|
|
193
|
+
<span class="m3-switch__text">
|
|
194
|
+
<span class="m3-type-body-large">Notificaciones</span>
|
|
195
|
+
<span class="m3-type-body-small m3-switch__support">Texto de apoyo</span>
|
|
196
|
+
</span>
|
|
197
|
+
</label>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
El input nativo da teclado, formularios y estado. No requiere JavaScript.
|
|
201
|
+
|
|
202
|
+
### Campo de texto
|
|
203
|
+
|
|
204
|
+
```html
|
|
205
|
+
<div class="m3-field">
|
|
206
|
+
<div class="m3-field__control">
|
|
207
|
+
<input
|
|
208
|
+
class="m3-field__input"
|
|
209
|
+
id="nombre"
|
|
210
|
+
placeholder=" "
|
|
211
|
+
aria-describedby="nombre-support"
|
|
212
|
+
/>
|
|
213
|
+
<label class="m3-field__label" for="nombre">Nombre</label>
|
|
214
|
+
</div>
|
|
215
|
+
<p class="m3-field__support" id="nombre-support">Texto de apoyo</p>
|
|
216
|
+
</div>
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Error: `m3-field--error` + `aria-invalid="true"` en el input.
|
|
220
|
+
Deshabilitado: el atributo nativo `disabled` en el input (la clase
|
|
221
|
+
`m3-field--disabled` existe para contenedores no nativos, pero no deshabilita
|
|
222
|
+
un input por sí sola). Si el campo va sobre un contenedor tonal, define
|
|
223
|
+
`--text-field-label-background` con ese mismo color.
|
|
224
|
+
|
|
225
|
+
### Superficie
|
|
226
|
+
|
|
227
|
+
`m3-surface` + `--surface|lowest|low|container|high|highest`,
|
|
228
|
+
`--shape-{none…full}` y `--pad-{none|sm|md|lg}`.
|
|
229
|
+
|
|
230
|
+
### Tipografía e iconos
|
|
231
|
+
|
|
232
|
+
`m3-type-{display|headline|title|body|label}-{large|medium|small}` y
|
|
233
|
+
`m3-type--emphasized`. Iconos: `m3-icon` + `--18|20|24|32` + `--filled`.
|
|
234
|
+
|
|
235
|
+
## Vista previa
|
|
236
|
+
|
|
237
|
+
En el repositorio, con cualquier servidor estático:
|
|
238
|
+
|
|
239
|
+
- `preview.html`: índice con una entrada por componente.
|
|
240
|
+
- `gallery.html`: los 36 seguidos en una sola página (iframes con carga
|
|
241
|
+
diferida), con índice pegajoso y enlace a cada demo suelta.
|
|
242
|
+
- `preview/<componente>.html`: la demo completa de ese componente.
|
|
243
|
+
|
|
244
|
+
No carga el portafolio ni Solid: es el contrato visual de la librería.
|
|
245
|
+
|
|
246
|
+
Los previews cargan Material Symbols y Roboto desde Google Fonts **solo para la
|
|
247
|
+
demo**, por comodidad. El paquete no las incluye y en producción conviene
|
|
248
|
+
servirlas desde tu origen (ver «Tema»).
|
|
249
|
+
|
|
250
|
+
## Qué no incluye
|
|
251
|
+
|
|
252
|
+
- **Sin runtime obligatorio**: todo el CSS funciona sin JavaScript. Los módulos
|
|
253
|
+
de `src/behaviors/` son mejoras progresivas (teclado, foco, posición) y su
|
|
254
|
+
JSDoc indica qué se pierde sin ellos.
|
|
255
|
+
- **Sin framework**: no hay componentes de React, Solid, Svelte ni Vue; el
|
|
256
|
+
contrato es HTML nativo + clases `m3-*`.
|
|
257
|
+
- **Sin tema propio**: consume tokens `--md-sys-*`; la paleta se genera aparte.
|
|
258
|
+
- **Sin guías por componente**: este README es el contrato. El paquete incluye
|
|
259
|
+
el código y las variables de cada componente documentadas en su CSS; las
|
|
260
|
+
demos viven en el repositorio.
|
|
261
|
+
|
|
262
|
+
## Límites conocidos
|
|
263
|
+
|
|
264
|
+
Cinco límites son **geométricos**, no defectos de implementación:
|
|
265
|
+
|
|
266
|
+
| Límite | Por qué |
|
|
267
|
+
|---|---|
|
|
268
|
+
| Target del día de 40–45 px en calendarios de menos de 332 px | 7 columnas × 48 = 336 > 320; el navegador resuelve el solape por orden de pintado |
|
|
269
|
+
| Etiqueta de navigation bar de 65 px en una celda de 64 | 5 destinos en 320 px; se acepta la segunda línea |
|
|
270
|
+
| Tooltip sin volteo en CSS puro | No hay forma de medir el viewport desde una hoja de estilos; el behavior lo resuelve |
|
|
271
|
+
| Menú alineado con el `direction` del documento | `position-area` no refleja el `direction` del propio menú |
|
|
272
|
+
| Dial del time picker con target menor por debajo de 256 px | 12 círculos de 48 no caben en 220 |
|
|
273
|
+
|
|
274
|
+
Hay además P2 de guía aceptados (rol de Segmented button, modal del Date picker
|
|
275
|
+
con `<div>` en vez de `<dialog>`). Su detalle está documentado en la guía interna
|
|
276
|
+
del componente y no afecta al uso.
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustavogalveza/design-system",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Implementación independiente y no oficial de M3 Expressive: tokens, CSS y HTML nativo, sin framework ni runtime obligatorio",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "gustavogalveza",
|
|
7
|
+
"homepage": "https://github.com/Gustavogalvez/design-system#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Gustavogalvez/design-system.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Gustavogalvez/design-system/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"material-design",
|
|
17
|
+
"material-3",
|
|
18
|
+
"m3",
|
|
19
|
+
"m3-expressive",
|
|
20
|
+
"design-system",
|
|
21
|
+
"css",
|
|
22
|
+
"design-tokens",
|
|
23
|
+
"accessibility",
|
|
24
|
+
"a11y"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"src",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
"README.md",
|
|
37
|
+
"CHANGELOG.md"
|
|
38
|
+
],
|
|
39
|
+
"sideEffects": [
|
|
40
|
+
"*.css",
|
|
41
|
+
"./src/behaviors/*.js"
|
|
42
|
+
],
|
|
43
|
+
"exports": {
|
|
44
|
+
".": "./src/index.css",
|
|
45
|
+
"./index.css": "./src/index.css",
|
|
46
|
+
"./tokens.css": "./src/tokens.css",
|
|
47
|
+
"./colors.css": "./src/colors.css",
|
|
48
|
+
"./src/*": "./src/*",
|
|
49
|
+
"./package.json": "./package.json"
|
|
50
|
+
}
|
|
51
|
+
}
|