@adamosuiteservices/ui 2.10.1 → 2.10.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.
Files changed (41) hide show
  1. package/dist/accordion-rounded.cjs +1 -1
  2. package/dist/accordion-rounded.js +1 -1
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/breadcrumb.cjs +1 -1
  6. package/dist/breadcrumb.js +1 -1
  7. package/dist/calendar.cjs +1 -1
  8. package/dist/calendar.js +1 -1
  9. package/dist/{checkbox-CFGlO5wt.cjs → checkbox-Bn7H8EaT.cjs} +1 -1
  10. package/dist/{checkbox-DsN1IQGA.js → checkbox-DmvyFfB3.js} +1 -1
  11. package/dist/checkbox.cjs +1 -1
  12. package/dist/checkbox.js +1 -1
  13. package/dist/combobox.cjs +1 -1
  14. package/dist/combobox.js +2 -2
  15. package/dist/components/ui/dialog/dialog.d.ts +1 -1
  16. package/dist/context-menu.cjs +1 -1
  17. package/dist/context-menu.js +1 -1
  18. package/dist/dialog.cjs +2 -2
  19. package/dist/dialog.js +35 -35
  20. package/dist/dropdown-menu.cjs +1 -1
  21. package/dist/dropdown-menu.js +1 -1
  22. package/dist/{icon-SWksUOv5.cjs → icon-Bg5HV6Ls.cjs} +1 -1
  23. package/dist/{icon-D0vVkV-A.js → icon-DG_i4bz2.js} +3 -3
  24. package/dist/icon.cjs +1 -1
  25. package/dist/icon.js +1 -1
  26. package/dist/pagination.cjs +1 -1
  27. package/dist/pagination.js +1 -1
  28. package/dist/radio-group.cjs +1 -1
  29. package/dist/radio-group.js +1 -1
  30. package/dist/select.cjs +1 -1
  31. package/dist/select.js +1 -1
  32. package/dist/{sheet-DfRu4ByS.cjs → sheet-IGhaVAfU.cjs} +1 -1
  33. package/dist/{sheet-DM7b3ckK.js → sheet-mV8cYfd2.js} +1 -1
  34. package/dist/sheet.cjs +1 -1
  35. package/dist/sheet.js +1 -1
  36. package/dist/sidebar.cjs +1 -1
  37. package/dist/sidebar.js +2 -2
  38. package/dist/spinner.cjs +1 -1
  39. package/dist/spinner.js +1 -1
  40. package/docs/components/ui/icon.md +22 -2
  41. package/package.json +1 -1
@@ -8,11 +8,13 @@ Componente para mostrar **iconos Material Symbols Outlined** con configuración
8
8
 
9
9
  - ✅ Material Symbols Outlined con fuente local para mejor rendimiento
10
10
  - ✅ Tamaños controlados por clases Tailwind: `text-lg`, `text-2xl`, `text-4xl`, `text-5xl`
11
+ - ✅ Tamaño por defecto: `text-2xl` (~24px) para uso general
11
12
  - ✅ 7 pesos tipográficos: 100-700 (default: 300)
12
13
  - ✅ Fill modes: outlined (0) y filled (1)
13
14
  - ✅ 3 grados ópticos: -25, 0 (default), 200
14
15
  - ✅ 4 tamaños ópticos: 20, 24 (default), 40, 48
15
16
  - ✅ Configuración via CSS font-variation-settings
17
+ - ✅ Data slot `data-slot="icon"` para CSS targeting específico
16
18
  - ✅ Tipos exportados: IconProps para extensibilidad
17
19
  - ✅ Extensión de ComponentProps<"span"> para máxima flexibilidad
18
20
  - ✅ Soporte completo para className y style customizados
@@ -479,12 +481,12 @@ La fuente se carga localmente desde `assets/icons/`:
479
481
 
480
482
  ```css
481
483
  .material-symbols-outlined {
482
- font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24;
484
+ font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
483
485
  /* ... otros estilos de optimización */
484
486
  }
485
487
  ```
486
488
 
487
- **Nota**: Tanto el CSS como el componente React usan 200 como peso por defecto.
489
+ **Nota**: Tanto el CSS como el componente React usan 300 como peso por defecto para un aspecto ligero y moderno.
488
490
 
489
491
  ### TypeScript Interface
490
492
 
@@ -500,6 +502,24 @@ export type IconProps = ComponentProps<"span"> & {
500
502
 
501
503
  **Tipos Exportados**: Usa `IconProps` para crear componentes custom. Los tamaños ahora se controlan via `className` con clases Tailwind.
502
504
 
505
+ ### Component Structure
506
+
507
+ El componente renderiza un `<span>` con las siguientes características:
508
+
509
+ ```tsx
510
+ <span
511
+ data-slot="icon"
512
+ className="material-symbols-outlined adm:inline-block adm:text-2xl"
513
+ style={{ fontVariationSettings: '...' }}
514
+ >
515
+ {symbol}
516
+ </span>
517
+ ```
518
+
519
+ - **data-slot="icon"**: Permite targeting CSS específico, útil para estilos contextuales (ej: `[&>[data-slot=icon]]:text-current`)
520
+ - **className base**: `material-symbols-outlined adm:inline-block adm:text-2xl` (puede ser extendido via prop `className`)
521
+ - **style**: Genera `font-variation-settings` dinámicamente según props
522
+
503
523
  ## Recursos
504
524
 
505
525
  ### Material Symbols
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamosuiteservices/ui",
3
- "version": "2.10.1",
3
+ "version": "2.10.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",