@imj_media/ui 1.2.22 → 1.2.23
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 +14 -0
- package/dist/index.esm.js +1036 -1028
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/modules/Switch/components/organisms/Switch.d.ts.map +1 -1
- package/dist/modules/Switch/stories/switch.stories.d.ts +8 -0
- package/dist/modules/Switch/stories/switch.stories.d.ts.map +1 -1
- package/dist/shared/types/switch.d.ts +9 -1
- package/dist/shared/types/switch.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,20 @@ y este proyecto adhiere a [Semantic Versioning](https://semver.org/lang/es/).
|
|
|
17
17
|
- Actualizada la historia `Default` para mostrar ejemplos con ambas formas de uso
|
|
18
18
|
- Actualizados `argTypes` en Storybook para incluir control de `children`
|
|
19
19
|
- Actualizada la documentación del componente para mencionar soporte de `children`
|
|
20
|
+
- **Switch - Soporte para Iconos Font Awesome Duotone**: El componente Switch ahora soporta iconos Font Awesome Duotone con colores personalizados
|
|
21
|
+
- Nuevas props en `SwitchOption` para configurar iconos duotone:
|
|
22
|
+
- `leftSlotDuotonePrimary`, `leftSlotDuotoneSecondary`: Colores primario y secundario para el slot izquierdo
|
|
23
|
+
- `leftSlotDuotoneOpacityPrimary`, `leftSlotDuotoneOpacitySecondary`: Opacidades para el slot izquierdo
|
|
24
|
+
- `rightSlotDuotonePrimary`, `rightSlotDuotoneSecondary`: Colores primario y secundario para el slot derecho
|
|
25
|
+
- `rightSlotDuotoneOpacityPrimary`, `rightSlotDuotoneOpacitySecondary`: Opacidades para el slot derecho
|
|
26
|
+
- El componente Switch ahora pasa todas las props de duotone al componente Button interno
|
|
27
|
+
- Permite usar tanto iconos normales (string) como iconos Font Awesome Duotone (objetos de icono) en los slots
|
|
28
|
+
- Nuevas historias de Storybook agregadas:
|
|
29
|
+
- `WithDuotoneIcons`: Demuestra iconos duotone en el slot izquierdo con diferentes combinaciones de colores
|
|
30
|
+
- `WithDuotoneBothSlots`: Muestra iconos duotone en ambos slots con colores independientes
|
|
31
|
+
- `WithNormalAndDuotoneIcons`: Combina iconos normales y duotone en diferentes opciones del mismo switch
|
|
32
|
+
- `WithSlotLeft`, `WithSlotRight`, `WithBothSlots`, `WithoutSlots`, `MixedSlots`: Historias adicionales que muestran diferentes combinaciones de slots
|
|
33
|
+
- Compatible con iconos importados desde `@fortawesome/pro-duotone-svg-icons`
|
|
20
34
|
|
|
21
35
|
### Fixed
|
|
22
36
|
- **Dropdown - Comparación Flexible de Valores**: Corregido el problema donde las opciones por defecto no se mostraban correctamente cuando se pasaba un valor inicial
|