@imj_media/ui 1.2.73 → 1.2.75
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 +29 -0
- package/dist/index.css +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +6871 -6658
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/modules/Icon/constants/size.d.ts.map +1 -1
- package/dist/modules/IconFont/components/organisms/IconFont.d.ts +2 -1
- package/dist/modules/IconFont/components/organisms/IconFont.d.ts.map +1 -1
- package/dist/modules/InnerButton/hooks/useButtonClasses.d.ts.map +1 -1
- package/dist/modules/InnerButton/stories/InnerButton.stories.d.ts.map +1 -1
- package/dist/modules/InnerButton/styles/buttonVariants.d.ts +1 -1
- package/dist/modules/Picture/components/organisms/Picture.d.ts +1 -1
- package/dist/modules/Picture/components/organisms/Picture.d.ts.map +1 -1
- package/dist/modules/Picture/stories/picture.stories.d.ts +1 -0
- package/dist/modules/Picture/stories/picture.stories.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/ButtonCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/DateCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/DropdownCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/IconCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/LinkCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/PrimaryCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/ProgressBarCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/SkeletonCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/StatusCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TableCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TagsCell.d.ts.map +1 -1
- package/dist/modules/Table/components/atoms/TextFieldCell.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/HeaderCell.d.ts.map +1 -1
- package/dist/modules/Table/components/organisms/TableContent.d.ts.map +1 -1
- package/dist/modules/Table/utils/cellStyles.d.ts +12 -0
- package/dist/modules/Table/utils/cellStyles.d.ts.map +1 -1
- package/dist/modules/Tooltip/stories/Tooltip.stories.d.ts.map +1 -1
- package/dist/shared/constants/index.d.ts +1 -0
- package/dist/shared/constants/index.d.ts.map +1 -1
- package/dist/shared/constants/tasksColors.d.ts +173 -0
- package/dist/shared/constants/tasksColors.d.ts.map +1 -0
- package/dist/shared/types/button.d.ts +3 -0
- package/dist/shared/types/button.d.ts.map +1 -1
- package/dist/shared/types/icon.d.ts +4 -2
- package/dist/shared/types/icon.d.ts.map +1 -1
- package/dist/shared/types/picture.d.ts +6 -0
- package/dist/shared/types/picture.d.ts.map +1 -1
- package/dist/shared/types/types.d.ts +3 -1
- package/dist/shared/types/types.d.ts.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ 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.75] - 2026-03-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Paleta `COLORS` (tasks-modules)**: Export de `COLORS` y tipo `TasksModulesColors` desde el índice del paquete. Los valores hex coinciden con `@imj_media/tasks-modules` (`utils/Colors.tsx`) para migrar consumidores gradualmente hacia `@imj_media/ui`. Implementación en `shared/constants/tasksColors.ts` (objeto `as const` para inferencia literal / autocompletado).
|
|
12
|
+
- **Picture**: Prop `fillParent` para que la imagen ocupe y rellene el contenedor (flujos tipo cards/media).
|
|
13
|
+
- **IconFont** e **Icon**: Constantes de tamaño de icono y ajustes asociados en el módulo de fuentes de icono.
|
|
14
|
+
- **Documentación**: Cobertura ampliada de documentación para componentes de `@imj_media/ui`.
|
|
15
|
+
- **Guías internas**: Guías de desarrollo, de componentes y prompts para trabajar el paquete UI.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- **Tailwind / tokens**: Utilidades de `inset`, `margin` y `gap` alineadas con la escala Figma (p. ej. `ui-top-8` según tokens).
|
|
19
|
+
- **Tipos compartidos**: Soporte tipado para `Picture.fillParent`, `IconBackgroundColor` y cambios ligados a iconos y media.
|
|
20
|
+
- **InnerButton**: Refactor de clases, tests y stories.
|
|
21
|
+
- **Tooltip**: Ajuste menor en la story correspondiente.
|
|
22
|
+
|
|
23
|
+
### Deprecated
|
|
24
|
+
- **InnerButton**: Tema de icono heredado marcado como deprecado a favor del modelo actual de iconos.
|
|
25
|
+
|
|
26
|
+
## [1.2.74] - 2026-03-17
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- **Table - Scroll horizontal con columnas de ancho automático**: Cuando hay columnas sin `width` o con `maxWidth: 'auto'`, la tabla ya no se superpone a la columna de acciones en viewports pequeños. Se aplica un ancho mínimo total a la tabla (suma de mínimos por columna) y el contenedor con `overflow-x-auto` muestra scroll horizontal. Columna flex (`maxWidth: 'auto'` sin `width`) tiene mínimo por defecto `DEFAULT_FLEX_COLUMN_MIN_WIDTH` (100px), sobreescribible con `column.minWidth`; el contenido trunca con ellipsis cuando no cabe. Utilidad `getColumnMinWidthPx` y constante `DEFAULT_FLEX_COLUMN_MIN_WIDTH` en `cellStyles`; helper `isFlexColumn(column, hasColumnMaxWidthAuto)` para aplicar truncado en celdas y header. `<colgroup>` en la tabla para que el navegador respete anchos mínimos. Eliminados `console.log` de diagnóstico en TableContent y HeaderCell.
|
|
30
|
+
|
|
31
|
+
## [1.2.73] - 2026-03-14
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
- **Table - Celdas con columna flex**: Componentes de celda (TableCell, PrimaryCell, StatusCell, ActionsCell, LinkCell, AvatarsCell, TextFieldCell, DropdownCell, ButtonCell, ProgressBarCell, SkeletonCell, TagsCell, CheckboxCell, IconCell, StarsCell, DateCell) y HeaderCell aplican truncado (overflow + ellipsis) cuando la columna es flex (`maxWidth: 'auto'` sin `width`) mediante `isFlexColumn` y `hasFixedWidth`/`shouldTruncate`.
|
|
35
|
+
- **Badge**: Mejoras de soporte de truncado en componentes relacionados.
|
|
36
|
+
|
|
8
37
|
## [1.2.72] - 2026-03-13
|
|
9
38
|
|
|
10
39
|
### Added
|