@imj_media/ui 1.2.17 → 1.2.18

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 (94) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.esm.js +5328 -4806
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +13 -13
  6. package/dist/index.js.map +1 -1
  7. package/dist/modules/Alert/components/atoms/AlertHeader.d.ts.map +1 -1
  8. package/dist/modules/Alert/hooks/useAlertStyles.d.ts.map +1 -1
  9. package/dist/modules/Alert/index.d.ts +1 -1
  10. package/dist/modules/Alert/index.d.ts.map +1 -1
  11. package/dist/modules/Alert/utils/alert.d.ts.map +1 -1
  12. package/dist/modules/Avatar/components/AvatarStatus.d.ts +3 -0
  13. package/dist/modules/Avatar/components/AvatarStatus.d.ts.map +1 -0
  14. package/dist/modules/Avatar/components/IconAvatar.d.ts +10 -2
  15. package/dist/modules/Avatar/components/IconAvatar.d.ts.map +1 -1
  16. package/dist/modules/Avatar/components/LetterAvatar.d.ts +1 -1
  17. package/dist/modules/Avatar/components/LetterAvatar.d.ts.map +1 -1
  18. package/dist/modules/Avatar/components/PeopleAvatar.d.ts +1 -1
  19. package/dist/modules/Avatar/components/PeopleAvatar.d.ts.map +1 -1
  20. package/dist/modules/Avatar/components/index.d.ts +1 -0
  21. package/dist/modules/Avatar/components/index.d.ts.map +1 -1
  22. package/dist/modules/Avatar/index.d.ts +1 -1
  23. package/dist/modules/Avatar/index.d.ts.map +1 -1
  24. package/dist/modules/Avatar/stories/avatar.stories.d.ts +1 -0
  25. package/dist/modules/Avatar/stories/avatar.stories.d.ts.map +1 -1
  26. package/dist/modules/Avatar/stories/stories/status.story.d.ts +4 -0
  27. package/dist/modules/Avatar/stories/stories/status.story.d.ts.map +1 -0
  28. package/dist/modules/Avatar/types/index.d.ts +34 -1
  29. package/dist/modules/Avatar/types/index.d.ts.map +1 -1
  30. package/dist/modules/Button/stories/Button.stories.d.ts +1 -0
  31. package/dist/modules/Button/stories/Button.stories.d.ts.map +1 -1
  32. package/dist/modules/EmojiPicker/components/organisms/EmojiPicker.d.ts.map +1 -1
  33. package/dist/modules/EmojiPicker/constants/categories.d.ts.map +1 -1
  34. package/dist/modules/Icon/Icon.d.ts.map +1 -1
  35. package/dist/modules/InnerButton/index.d.ts.map +1 -1
  36. package/dist/modules/Lists/components/molecules/ListItemDefault.d.ts.map +1 -1
  37. package/dist/modules/Lists/stories/list.stories.d.ts.map +1 -1
  38. package/dist/modules/Message/components/index.d.ts +2 -0
  39. package/dist/modules/Message/components/index.d.ts.map +1 -0
  40. package/dist/modules/Message/components/molecules/MessageItem.d.ts +7 -0
  41. package/dist/modules/Message/components/molecules/MessageItem.d.ts.map +1 -0
  42. package/dist/modules/Message/components/molecules/MessagePositions.d.ts +7 -0
  43. package/dist/modules/Message/components/molecules/MessagePositions.d.ts.map +1 -0
  44. package/dist/modules/Message/components/molecules/NotificationItem.d.ts +7 -0
  45. package/dist/modules/Message/components/molecules/NotificationItem.d.ts.map +1 -0
  46. package/dist/modules/Message/components/molecules/NotificationPositions.d.ts +7 -0
  47. package/dist/modules/Message/components/molecules/NotificationPositions.d.ts.map +1 -0
  48. package/dist/modules/Message/components/molecules/index.d.ts +5 -0
  49. package/dist/modules/Message/components/molecules/index.d.ts.map +1 -0
  50. package/dist/modules/Message/config/index.d.ts +2 -0
  51. package/dist/modules/Message/config/index.d.ts.map +1 -0
  52. package/dist/modules/Message/config/message.config.d.ts +5 -0
  53. package/dist/modules/Message/config/message.config.d.ts.map +1 -0
  54. package/dist/modules/Message/hooks/index.d.ts +4 -0
  55. package/dist/modules/Message/hooks/index.d.ts.map +1 -0
  56. package/dist/modules/Message/hooks/useMessage.d.ts +6 -0
  57. package/dist/modules/Message/hooks/useMessage.d.ts.map +1 -0
  58. package/dist/modules/Message/hooks/useMessageStyles.d.ts +5 -0
  59. package/dist/modules/Message/hooks/useMessageStyles.d.ts.map +1 -0
  60. package/dist/modules/Message/hooks/useNotification.d.ts +8 -0
  61. package/dist/modules/Message/hooks/useNotification.d.ts.map +1 -0
  62. package/dist/modules/Message/index.d.ts +119 -0
  63. package/dist/modules/Message/index.d.ts.map +1 -0
  64. package/dist/modules/Message/services/MessageService.d.ts +59 -0
  65. package/dist/modules/Message/services/MessageService.d.ts.map +1 -0
  66. package/dist/modules/Message/services/NotificationService.d.ts +84 -0
  67. package/dist/modules/Message/services/NotificationService.d.ts.map +1 -0
  68. package/dist/modules/Message/services/index.d.ts +3 -0
  69. package/dist/modules/Message/services/index.d.ts.map +1 -0
  70. package/dist/modules/Message/stories/message.stories.d.ts +16 -0
  71. package/dist/modules/Message/stories/message.stories.d.ts.map +1 -0
  72. package/dist/modules/Message/stories/notification.stories.d.ts +13 -0
  73. package/dist/modules/Message/stories/notification.stories.d.ts.map +1 -0
  74. package/dist/modules/Switch/components/organisms/Switch.d.ts.map +1 -1
  75. package/dist/modules/Toast/hooks/useToast.d.ts +2 -2
  76. package/dist/modules/Toast/hooks/useToast.d.ts.map +1 -1
  77. package/dist/modules/Toast/index.d.ts +6 -24
  78. package/dist/modules/Toast/index.d.ts.map +1 -1
  79. package/dist/modules/Toast/stories/toast.stories.d.ts.map +1 -1
  80. package/dist/modules/index.d.ts +1 -1
  81. package/dist/modules/index.d.ts.map +1 -1
  82. package/dist/shared/types/alert.d.ts +13 -3
  83. package/dist/shared/types/alert.d.ts.map +1 -1
  84. package/dist/shared/types/emojipicker.d.ts +2 -1
  85. package/dist/shared/types/emojipicker.d.ts.map +1 -1
  86. package/dist/shared/types/index.d.ts +1 -0
  87. package/dist/shared/types/index.d.ts.map +1 -1
  88. package/dist/shared/types/message.d.ts +115 -0
  89. package/dist/shared/types/message.d.ts.map +1 -0
  90. package/dist/shared/types/toast.d.ts +5 -23
  91. package/dist/shared/types/toast.d.ts.map +1 -1
  92. package/dist/shared/types/types.d.ts +1 -1
  93. package/dist/shared/types/types.d.ts.map +1 -1
  94. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,82 @@ Todos los cambios notables de este proyecto serán documentados en este archivo.
5
5
  El formato está basado en [Keep a Changelog](https://keepachangelog.com/es-ES/1.0.0/),
6
6
  y este proyecto adhiere a [Semantic Versioning](https://semver.org/lang/es/).
7
7
 
8
+ ## [1.2.18] - 2026-01-13
9
+
10
+ ### Added
11
+ - **Avatar - Componente AvatarStatus**: Nuevo componente para indicadores de estado en avatares
12
+ - Nuevo componente `AvatarStatus` con soporte para indicadores de color e iconos personalizados
13
+ - Tipos de status: `'color'` (punto de color) y `'icon'` (icono personalizado)
14
+ - Colores disponibles: `brand`, `success`, `warning`, `danger`, `disabled`
15
+ - Tamaños disponibles: `sm`, `md`, `lg` con mapeo automático según el tamaño del avatar
16
+ - Integración de status en todos los tipos de avatar: `IconAvatar`, `LetterAvatar`, y `PeopleAvatar`
17
+ - Nueva prop `status` en `BaseAvatarProps` que acepta `AvatarStatusProps`
18
+ - Mapeo automático de tamaño de avatar a tamaño de status (xxs/xs/sm → sm, md/lg → md, xl → lg)
19
+ - Nueva story `AvatarConStatus` que demuestra el uso del status con diferentes configuraciones
20
+ - Exportación de tipos: `AvatarStatusProps`, `AvatarStatusType`, `AvatarStatusColor`, `AvatarStatusSize`
21
+ - **Alert - Soporte para Avatar**: Nueva funcionalidad para mostrar avatar en lugar del icono por defecto
22
+ - Nueva prop `avatar` en `IAlert` que acepta una URL de imagen para mostrar como avatar
23
+ - `AlertHeader` ahora muestra un `Avatar` con `type="people"` cuando se proporciona la prop `avatar`
24
+ - El avatar se muestra con tamaño `xs` y se posiciona correctamente en el layout del header
25
+ - Si no se proporciona `avatar`, se muestra el icono por defecto según el color del alert
26
+ - Actualización de tipos `AlertHeaderProps` para incluir la prop `avatar`
27
+ - Mejora en el layout del header para acomodar tanto avatar como icono de manera consistente
28
+ - **Message - Sistema de Notificaciones con Agrupación**: Nuevo sistema completo de notificaciones agrupadas
29
+ - Nuevo servicio `NotificationService` que agrupa notificaciones por color (`brand` | `neutral`)
30
+ - Solo se muestra una notificación por grupo con un contador que indica cuántas hay acumuladas
31
+ - Timer compartido que se reinicia automáticamente con cada nueva notificación del mismo tipo
32
+ - Nuevo componente `NotificationItem` para renderizar notificaciones agrupadas
33
+ - Nuevo componente `NotificationPositions` para posicionamiento de notificaciones
34
+ - Hook `useNotification` para suscribirse a cambios de notificaciones y obtener grupos activos
35
+ - API unificada `notify` que combina funcionalidad de toast y notification
36
+ - Componentes `Notifier` (solo notificaciones) y `Messaging` (toasts + notificaciones) para renderizado
37
+ - Contador de mensajes que solo aparece cuando hay más de 1 notificación acumulada
38
+ - Soporte completo para avatar en notificaciones (igual que en Alert)
39
+ - Soporte para botones de acción (primario y secundario) en notificaciones
40
+ - Stories completas que demuestran el comportamiento de agrupación, contador, timer, y comparación con toasts
41
+ - Actualización de tipos para `NotificationGroup`, `NotificationConfig`, `NotificationColor`, etc.
42
+ - Métodos `notify.brand()` y `notify.neutral()` para mostrar notificaciones
43
+ - Método `notification.dismissGroup(color)` para cerrar todas las notificaciones de un tipo
44
+ - Configuración global con `notify.configure()` para duración, posición, tamaño, etc.
45
+
46
+ ### Changed
47
+ - **IconFont - Ajuste menor**: Corrección menor en el componente IconFont
48
+ - **Button - Nuevos colores ghost y soft**: Agregados dos nuevos colores de botón con estilos completos
49
+ - Color `ghost`: Botón sin fondo, solo cambios de color de texto en estados hover y active
50
+ - Color `soft`: Botón con fondo blanco (`ui-bg-fill`), texto secondary, con estados hover y active completos
51
+ - Soporte completo para ambos colores en todas las variantes (solid, icon, emoji)
52
+ - Colores de iconos ajustados: `brand` para ghost, `default` para soft, `current` para link
53
+ - Nueva story `Colors` que demuestra todos los colores disponibles
54
+ - Actualización de tipos `ButtonColors` para incluir `'ghost'` y `'soft'`
55
+ - Agregados colores de borde tertiary en tailwind.config.js para soportar estados pressed
56
+ - **Button - Mejoras en estilos**: Ajustes en estilos de botones existentes
57
+ - Botón `tertiary`: Ahora incluye hover con borde (`hover:ui-border-default`)
58
+ - Botón `primary`: Corrección en borde para forzar estilo con `!ui-border-brand`
59
+ - Estilos de botón `soft` ahora funcionan correctamente incluso cuando `clickable=false`
60
+ - **Switch - Refactorización y mejoras visuales**: Mejoras en el componente Switch
61
+ - Cambio de `InnerButton` a `Button` para mejor consistencia con el resto de componentes
62
+ - Uso de color `soft` cuando la opción está seleccionada (fondo blanco visible)
63
+ - Uso de color `tertiary` cuando la opción no está seleccionada (fondo transparente)
64
+ - Agregada prop `active` para indicar visualmente el estado seleccionado
65
+ - Simplificación del código eliminando props innecesarias (theme, borderable, showShadow)
66
+
67
+ ### Fixed
68
+ - **Alert - Soporte completo para color 'brand'**: Agregado soporte completo para el color `brand` en `useAlertStyles`
69
+ - Agregado `brand` a `typeClasses` con estilos para todas las variantes (contained, outlined, accent, minimal)
70
+ - Agregado `brand` a `colorMap` en `getProgressBarColor` con color `ui-bg-brand`
71
+ - Agregado `brand` a `iconMap` en `getIconForType` usando `faCircleInfo` como icono por defecto
72
+ - **Types - Corrección de nombre de tipo**: Corregido nombre de tipo `AlertAnimation` a `AnimationAlert` en imports y referencias
73
+ - Actualizado import en `message.ts` para usar el nombre correcto `AnimationAlert`
74
+ - Actualizadas todas las referencias de `AlertAnimation` a `AnimationAlert` en `BaseMessageProps` y `BaseMessageOptions`
75
+ - **Toast - Corrección de nombre de propiedad**: Corregido nombre de propiedad `maxToasts` a `maxMessages` para consistencia con tipos
76
+ - Actualizado `toast.config.ts` para usar `maxMessages` en lugar de `maxToasts`
77
+ - Actualizado `useToast.ts` para usar `toastConfig.maxMessages`
78
+ - Actualizado `toast.stories.tsx` para usar `maxMessages` en ejemplos
79
+ - **Notification - Corrección de compatibilidad de tipos**: Corregida incompatibilidad entre `NotificationSize` y `SizeAlert`
80
+ - Agregado mapeo de `'lg'` a `'md'` cuando `NotificationSize` es `'lg'` para compatibilidad con `SizeAlert`
81
+ - Agregado import de `SizeAlert` en `NotificationService.ts`
82
+ - Aplicado cast de tipo para asegurar compatibilidad con `NotificationProps.size`
83
+
8
84
  ## [1.2.17] - 2026-01-08
9
85
 
10
86
  ### Added