anima-ds-nucleus 1.0.24 → 1.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anima-ds-nucleus",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Anima Design System - A comprehensive React component library",
5
5
  "author": "Nucleus Labs <ipvasallo@nucleus.com.ar>",
6
6
  "license": "UNLICENSED",
@@ -128,6 +128,8 @@ export const ForgotPassword = ({
128
128
  <div
129
129
  className={`${isPageLayout ? 'min-h-screen flex flex-col' : ''} ${className}`}
130
130
  style={isPageLayout ? { backgroundColor: '#f5f5f5' } : undefined}
131
+ data-variant={isHexaLogin ? 'hexa-login' : undefined}
132
+ data-layout={layout}
131
133
  {...props}
132
134
  >
133
135
  <div className={isPageLayout ? 'flex-1 flex items-center justify-center p-4' : 'p-4'}>
@@ -77,7 +77,7 @@ export const LoginForm = ({
77
77
 
78
78
  return (
79
79
  isHexaLogin ? (
80
- <div className={`anima-loginform__container ${className}`} {...props}>
80
+ <div className={`anima-loginform__container ${className}`} data-variant="hexa-login" {...props}>
81
81
  <div className="anima-loginform__card">
82
82
  <form onSubmit={handleSubmit}>
83
83
  {/* 1) Email */}
@@ -63,6 +63,8 @@ export const NewPassword = ({
63
63
  <div
64
64
  className={`${isPageLayout ? 'min-h-screen flex flex-col' : ''} ${className}`}
65
65
  style={isPageLayout ? { backgroundColor: '#f5f5f5' } : undefined}
66
+ data-variant={isHexaLogin ? 'hexa-login' : undefined}
67
+ data-layout={layout}
66
68
  {...props}
67
69
  >
68
70
  <div className={isPageLayout ? 'flex-1 flex items-center justify-center p-4' : 'p-4'}>
@@ -157,6 +159,8 @@ export const NewPassword = ({
157
159
  <div
158
160
  className={`${isPageLayout ? 'min-h-screen flex flex-col' : ''} ${className}`}
159
161
  style={isPageLayout ? { backgroundColor: '#f5f5f5' } : undefined}
162
+ data-variant={isHexaLogin ? 'hexa-login' : undefined}
163
+ data-layout={layout}
160
164
  {...props}
161
165
  >
162
166
  <div className={isPageLayout ? 'flex-1 flex items-center justify-center p-4' : 'p-4'}>
package/src/style.css CHANGED
@@ -847,10 +847,59 @@
847
847
  background: none;
848
848
  border: none;
849
849
  cursor: pointer;
850
- padding: 0;
851
- display: flex;
852
- align-items: center;
853
- justify-content: center;
850
+ }
851
+
852
+ /* ============================================
853
+ ESTILOS PERSONALIZADOS PARA VARIANTE HEXA-LOGIN
854
+ ============================================ */
855
+
856
+ /* 1. Tipografía IBM Plex Sans en LoginForm (variante hexa-login) */
857
+ .anima-loginform__container[data-variant="hexa-login"],
858
+ .anima-loginform__container[data-variant="hexa-login"] .anima-loginform__card,
859
+ .anima-loginform__container[data-variant="hexa-login"] p,
860
+ .anima-loginform__container[data-variant="hexa-login"] span,
861
+ .anima-loginform__container[data-variant="hexa-login"] label,
862
+ .anima-loginform__container[data-variant="hexa-login"] button {
863
+ font-family: var(--anima-hexa-login-font-family, 'IBM Plex Sans', sans-serif) !important;
864
+ }
865
+
866
+ /* 2. Tamaño fijo de iconos en botones sociales de LoginForm (variante hexa-login) */
867
+ .anima-loginform__container[data-variant="hexa-login"] .anima-loginform__socialButton svg {
868
+ width: var(--anima-hexa-login-social-icon-size, 18px) !important;
869
+ height: var(--anima-hexa-login-social-icon-size, 18px) !important;
870
+ min-width: var(--anima-hexa-login-social-icon-size, 18px) !important;
871
+ min-height: var(--anima-hexa-login-social-icon-size, 18px) !important;
872
+ max-width: var(--anima-hexa-login-social-icon-size, 18px) !important;
873
+ max-height: var(--anima-hexa-login-social-icon-size, 18px) !important;
874
+ flex-shrink: 0;
875
+ }
876
+
877
+ /* 3. Tipografía IBM Plex Sans en NewPassword y ForgotPassword (variante hexa-login) - títulos y subtítulos */
878
+ [data-variant="hexa-login"] div[class*="mb-8"] h3,
879
+ [data-variant="hexa-login"] div[class*="mb-8"] p,
880
+ [data-variant="hexa-login"] div[class*="text-center"] h3,
881
+ [data-variant="hexa-login"] div[class*="text-center"] p {
882
+ font-family: var(--anima-hexa-login-font-family, 'IBM Plex Sans', sans-serif) !important;
883
+ }
884
+
885
+ /* ============================================
886
+ ESTILOS PERSONALIZADOS PARA VARIANTE LOGIN EN HEADER
887
+ ============================================ */
888
+
889
+ /* 4. Responsive: Ocultar icono de idioma en HeaderGeneral (variante login) */
890
+ @media (max-width: var(--anima-login-header-mobile-breakpoint, 768px)) {
891
+ /* Ocultar el icono LanguageIcon en el header de login */
892
+ /* El icono es el primer hijo del contenedor flex dentro del div.relative del selector de idioma */
893
+ header[data-variant="login"] .relative > .flex.items-center > *:first-child:not(button),
894
+ header[data-variant="login"] .relative > div.flex.items-center > *:first-child:not(button) {
895
+ display: none !important;
896
+ }
897
+
898
+ /* Ajustar el contenedor del selector para que no tenga gap cuando el icono desaparece */
899
+ header[data-variant="login"] .relative > .flex.items-center,
900
+ header[data-variant="login"] .relative > div.flex.items-center {
901
+ gap: 0 !important;
902
+ }
854
903
  }
855
904
 
856
905
  .anima-passwordfield__toggle:hover {