@imj_media/ui 1.2.20 → 1.2.21
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 +13 -0
- package/dist/index.esm.js +3668 -3435
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/modules/Text/index.d.ts +3 -3
- package/dist/modules/Text/index.d.ts.map +1 -1
- package/dist/modules/Text/stories/Text.stories.d.ts.map +1 -1
- package/dist/modules/Title/components/organisms/Title.d.ts +1 -1
- package/dist/modules/Title/components/organisms/Title.d.ts.map +1 -1
- package/dist/modules/Title/stories/Title.stories.d.ts +1 -0
- package/dist/modules/Title/stories/Title.stories.d.ts.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/shared/types/title.d.ts +3 -1
- package/dist/shared/types/title.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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.21] - 2026-01-XX
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Title - Soporte para Children**: El componente Title ahora puede recibir el contenido tanto mediante la prop `title` como mediante `children`
|
|
12
|
+
- La prop `title` ahora es opcional (`title?: string`)
|
|
13
|
+
- Nueva prop `children?: ReactNode` para pasar el contenido como children
|
|
14
|
+
- El componente usa `title || children` para determinar el contenido a mostrar
|
|
15
|
+
- Permite mayor flexibilidad: usar `title` para texto simple o `children` para contenido más complejo (JSX, elementos con formato, etc.)
|
|
16
|
+
- Nueva historia `WithChildren` en Storybook que demuestra diferentes casos de uso con children
|
|
17
|
+
- Actualizada la historia `Default` para mostrar ejemplos con ambas formas de uso
|
|
18
|
+
- Actualizados `argTypes` en Storybook para incluir control de `children`
|
|
19
|
+
- Actualizada la documentación del componente para mencionar soporte de `children`
|
|
20
|
+
|
|
8
21
|
## [1.2.20] - 2026-01-XX
|
|
9
22
|
|
|
10
23
|
### Added
|