anima-ds-nucleus 1.0.18 → 1.0.20

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.18",
3
+ "version": "1.0.20",
4
4
  "description": "Anima Design System - A comprehensive React component library",
5
5
  "author": "Nucleus Labs <ipvasallo@nucleus.com.ar>",
6
6
  "license": "UNLICENSED",
@@ -5,7 +5,7 @@ import { Typography } from '../../Atoms/Typography/Typography';
5
5
  import { SidebarPointMobile } from '../Sidebar/SidebarPoint';
6
6
 
7
7
  // Constantes de diseño reutilizables
8
- const HEADER_HEIGHT = '80px';
8
+ const HEADER_HEIGHT = '64px'; // h-16 equivalente a HeaderCore
9
9
  const SEARCH_INPUT_HEIGHT = '40px';
10
10
  const SEARCH_ICON_SIZE = '40px';
11
11
  const NOTIFICATION_BADGE_COLOR = '#6D3856';
@@ -21,8 +21,8 @@ const FONT_SIZE_BASE = '14px';
21
21
  const LINE_HEIGHT_BASE = '20px';
22
22
 
23
23
  // Constantes de breakpoints
24
- const BREAKPOINT_MOBILE_MAX = '1024px';
25
- const BREAKPOINT_DESKTOP_MIN = '1025px';
24
+ const BREAKPOINT_MOBILE_MAX = '1336px';
25
+ const BREAKPOINT_DESKTOP_MIN = '1337px';
26
26
  const BREAKPOINT_TABLET_MAX = '700px';
27
27
 
28
28
  // Constantes de valores por defecto
@@ -185,9 +185,8 @@ export const HeaderPoint = ({
185
185
  display: flex !important;
186
186
  align-items: center !important;
187
187
  justify-content: space-between !important;
188
- padding: 24px 24px 12px 24px !important;
189
- min-height: 64px !important;
190
- height: 64px !important;
188
+ padding: 8px 4px !important;
189
+ min-height: 48px !important;
191
190
  width: 100% !important;
192
191
  max-width: 100% !important;
193
192
  box-sizing: border-box !important;
@@ -209,7 +208,7 @@ export const HeaderPoint = ({
209
208
  left: 0 !important;
210
209
  right: 0 !important;
211
210
  width: 100% !important;
212
- height: calc(64px + 12px + 20px) !important;
211
+ height: calc(48px + 12px + 8px + 40px) !important;
213
212
  background-color: ${mobileBackgroundColor} !important;
214
213
  background: ${mobileBackgroundColor} !important;
215
214
  z-index: 0 !important;
@@ -227,8 +226,7 @@ export const HeaderPoint = ({
227
226
  position: relative;
228
227
  z-index: 2 !important;
229
228
  display: block;
230
- padding: 12px 24px 0 24px;
231
- margin-top: -8px;
229
+ padding: 12px 4px 8px 4px !important;
232
230
  width: 100% !important;
233
231
  max-width: 100% !important;
234
232
  box-sizing: border-box !important;
@@ -238,13 +236,13 @@ export const HeaderPoint = ({
238
236
  }
239
237
  .header-mobile-layout .header-search-input {
240
238
  font-size: 12px !important;
241
- padding-left: 8px !important;
242
- padding-right: 8px !important;
243
- height: 44px !important;
239
+ padding-left: 12px !important;
240
+ padding-right: 12px !important;
241
+ height: 40px !important;
244
242
  }
245
243
  .header-mobile-layout .header-search-icon-container {
246
- width: 44px !important;
247
- height: 44px !important;
244
+ width: 36px !important;
245
+ height: 40px !important;
248
246
  }
249
247
  .header-mobile-menu-icon {
250
248
  color: var(--color-neutrals-white) !important;
@@ -281,21 +279,39 @@ export const HeaderPoint = ({
281
279
  className={`bg-white header-point-mobile rounded-12 header-point-container ${className}`}
282
280
  {...props}
283
281
  >
284
- <div className="w-full px-1">
285
- {/* Layout Desktop (más de 480px) */}
286
- <div className="header-desktop-layout flex items-center justify-between gap-2 md:gap-4">
282
+ <div className="w-full" style={{ paddingLeft: '4px', paddingRight: '4px' }}>
283
+ {/* Layout Desktop (más de 1336px) */}
284
+ <div className="header-desktop-layout flex items-center justify-between h-16">
287
285
  {/* Barra de búsqueda con icono a la derecha */}
288
- <div className="header-search-wrapper">
286
+ <div className="header-search-wrapper" style={{ marginRight: '16px' }}>
289
287
  <form onSubmit={handleSearchSubmit} className="header-search-form flex items-center w-full">
290
288
  <input
291
289
  type="text"
292
290
  value={searchValue}
293
291
  onChange={handleSearchChange}
294
292
  placeholder={searchPlaceholder}
295
- className="header-search-input flex-1 pl-2 md:pl-4 pr-2 md:pr-4 py-2 md:py-2.5 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm md:text-base border-r-0 rounded-r-none"
293
+ className="header-search-input flex-1 pl-2 md:pl-4 pr-2 md:pr-4 py-2 md:py-2.5 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm md:text-base"
294
+ style={{
295
+ height: '40px',
296
+ borderRight: 'none',
297
+ borderTopRightRadius: '0',
298
+ borderBottomRightRadius: '0',
299
+ color: '#374151',
300
+ fontFamily: 'IBM Plex Sans',
301
+ fontWeight: 400,
302
+ fontStyle: 'italic',
303
+ fontSize: '14px',
304
+ lineHeight: '20px',
305
+ letterSpacing: '0px'
306
+ }}
296
307
  />
297
308
 
298
- <div className="header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white border-l-0">
309
+ <div className="header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white" style={{
310
+ width: '40px',
311
+ height: '40px',
312
+ borderTopLeftRadius: '0',
313
+ borderBottomLeftRadius: '0'
314
+ }}>
299
315
  <Icon
300
316
  name="MagnifyingGlassIcon"
301
317
  variant="24-outline"
@@ -307,12 +323,13 @@ export const HeaderPoint = ({
307
323
  </div>
308
324
 
309
325
  {/* Notificaciones y Perfil */}
310
- <div className="header-actions-wrapper flex items-center gap-3 md:gap-6">
326
+ <div className="header-actions-wrapper flex items-center space-x-3 md:space-x-6 flex-shrink-0" style={{ marginLeft: 'auto', paddingRight: '0px' }}>
311
327
  {notificationCount !== undefined && (
312
328
  <button
313
329
  onClick={onNotificationClick}
314
- className="relative p-2 hover:bg-gray-100 rounded-lg transition-colors"
330
+ className="relative ml-3 p-2 hover:bg-gray-100 rounded-lg transition-colors"
315
331
  aria-label="Notificaciones"
332
+ style={{ transform: 'translateX(12px)' }}
316
333
  >
317
334
  <Icon
318
335
  name="BellIcon"
@@ -419,10 +436,28 @@ export const HeaderPoint = ({
419
436
  value={searchValue}
420
437
  onChange={handleSearchChange}
421
438
  placeholder={searchPlaceholder}
422
- className="header-search-input flex-1 pl-4 pr-4 py-2 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm border-r-0 rounded-r-none"
439
+ className="header-search-input flex-1 pl-3 pr-3 py-2 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm"
440
+ style={{
441
+ height: '40px',
442
+ borderRight: 'none',
443
+ borderTopRightRadius: '0',
444
+ borderBottomRightRadius: '0',
445
+ color: '#374151',
446
+ fontFamily: 'IBM Plex Sans',
447
+ fontWeight: 400,
448
+ fontStyle: 'italic',
449
+ fontSize: '14px',
450
+ lineHeight: '20px',
451
+ letterSpacing: '0px'
452
+ }}
423
453
  />
424
454
 
425
- <div className="header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white border-l-0">
455
+ <div className="header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white" style={{
456
+ width: '36px',
457
+ height: '40px',
458
+ borderTopLeftRadius: '0',
459
+ borderBottomLeftRadius: '0'
460
+ }}>
426
461
  <Icon
427
462
  name="MagnifyingGlassIcon"
428
463
  variant="24-outline"
@@ -13,8 +13,8 @@ const BORDER_RADIUS_TOP = '16px';
13
13
  const SHADOW_COLOR = 'rgba(0, 0, 0, 0.1)';
14
14
 
15
15
  // Constantes de breakpoints
16
- const BREAKPOINT_MOBILE_MAX = '1024px';
17
- const BREAKPOINT_DESKTOP_MIN = '1025px';
16
+ const BREAKPOINT_MOBILE_MAX = '1336px';
17
+ const BREAKPOINT_DESKTOP_MIN = '1337px';
18
18
 
19
19
  const DEFAULT_ITEMS = [
20
20
  { id: 'inicio', label: 'Inicio', icon: 'Squares2X2Icon' },