lizaui 9.0.24 → 9.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.
@@ -277,7 +277,7 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
277
277
 
278
278
  .react-date-picker__wrapper,
279
279
  .react-daterange-picker__wrapper {
280
- min-height: var(--input-default);
280
+ min-height: var(--input-default);
281
281
  padding-right: 8px;
282
282
  padding-left: 8px;
283
283
  border: 1px solid var(--input);
@@ -393,31 +393,50 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
393
393
 
394
394
  /* =========================== estilos para react-calendar ================== */
395
395
  .react-calendar {
396
- ${({ showdoubleview, widthcalendar }) => {
396
+ ${({ showdoubleview }) => {
397
397
  if (showdoubleview === "true") {
398
398
  return styledComponents_browser_esm.lt``;
399
399
  } else {
400
400
  return styledComponents_browser_esm.lt`
401
- width: ${`${widthcalendar}px`};
402
- `;
401
+ /* Forzamos un layout compacto de 256px para vista simple */
402
+ width: 256px;
403
+ min-width: 256px;
404
+ `;
403
405
  }
404
406
  }}
405
407
  border: none;
406
- padding: 12px;
408
+ padding: 8px; /* Compactar padding sin cambiar colores ni fuentes */
407
409
  font-family: var(--font-family-base);
408
- min-width: 300px;
409
410
  border-radius: calc(var(--radius) - 2px);
410
411
  background-color: var(--color-content1-default);
412
+ /* Variable para tamaño de celda compacto */
413
+ --cal-cell-size: 32px;
411
414
  }
412
415
 
413
416
  /* .react-calendar--doubleView {
414
417
  width: ${({ widthcalendar }) => `${widthcalendar}px`};
415
418
  } */
416
419
 
420
+ .react-calendar--doubleView{
421
+ --cal-cell-size: 34px !important;
422
+ width: 512px !important;
423
+ }
424
+
425
+ .react-calendar--doubleView .react-calendar__month-view__weekdays{
426
+ gap: 0px;
427
+ }
428
+
429
+ .react-calendar--doubleView .react-calendar__month-view__days {
430
+ gap: 0px;
431
+ }
432
+
417
433
  .react-calendar__navigation {
418
- height: 44px;
419
- margin-bottom: 6px;
420
- gap: 2px;
434
+ height: 40px; /* Más compacto */
435
+ margin-bottom: 4px;
436
+ gap: 4px;
437
+ /* Alinear y centrar */
438
+ display: flex;
439
+ align-items: center;
421
440
  }
422
441
  .react-calendar__navigation__prev2-button,
423
442
  .react-calendar__navigation__next2-button {
@@ -426,18 +445,34 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
426
445
 
427
446
  .react-calendar__navigation__next-button,
428
447
  .react-calendar__navigation__prev-button {
429
- font-size: 22px;
448
+ font-size: 22px; /* Conserva tamaño del icono */
430
449
  color: var(--color-default-900);
450
+ width: var(--cal-cell-size);
451
+ height: var(--cal-cell-size);
452
+ padding: 0;
453
+ display: flex;
454
+ align-items: center;
455
+ justify-content: center;
456
+ border-radius: 8px;
431
457
  }
432
458
 
433
459
  .react-calendar__navigation__label {
434
- border-radius: 22px;
460
+ border-radius: 8px;
461
+ flex: 1;
462
+ height: var(--cal-cell-size);
463
+ display: flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ padding: 0 4px;
467
+ font-size: 14px;
468
+ font-weight: 600;
469
+ color: var(--color-default-900);
435
470
  }
436
471
 
437
472
  .react-calendar__navigation__label span {
438
473
  text-transform: capitalize;
439
- color: var(--color-default-900);
440
- font-weight: bold;
474
+ color: var(--color-default-500);
475
+ font-weight: 500;
441
476
  font-size: 14px;
442
477
  }
443
478
 
@@ -453,7 +488,12 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
453
488
  .react-calendar__month-view__weekdays__weekday {
454
489
  text-transform: capitalize;
455
490
  font-weight: 500;
456
- color: var(--color-gray-500);
491
+ color: var(--color-default-400);
492
+ display: flex;
493
+ align-items: center;
494
+ justify-content: center;
495
+ height: var(--cal-cell-size);
496
+ width: var(--cal-cell-size);
457
497
  }
458
498
  .react-calendar__month-view__weekdays__weekday abbr {
459
499
  text-decoration: none;
@@ -467,7 +507,7 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
467
507
  font-weight: bold;
468
508
  }
469
509
  .react-calendar__month-view__days__day--weekend {
470
- color: var(--color-red-500);
510
+ color: var(--color-danger-default);
471
511
  }
472
512
  .react-calendar__month-view__days__day--neighboringMonth {
473
513
  color: var(--color-gray-300);
@@ -478,11 +518,52 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
478
518
  padding: 2em 0.5em;
479
519
  }
480
520
  .react-calendar__tile {
481
- font-size: 14px;
482
- line-height: 16px;
521
+ font-size: 14px; /* No cambiamos tipografía */
522
+ line-height: 1; /* Permite centrar vertical con flex */
483
523
  font-weight: 500;
524
+ width: var(--cal-cell-size);
525
+ height: var(--cal-cell-size);
526
+ padding: 0;
527
+ display: flex;
528
+ align-items: center;
529
+ justify-content: center;
530
+ border-radius: 6px; /* Moderno sin afectar colores */
531
+ flex: 0 0 auto; /* Evitar stretching */
532
+ /* Transición suave para cambios de fondo, color y radio */
533
+ transition: background-color 0.18s ease, color 0.18s ease, border-radius 0.25s ease, transform 0.18s ease;
534
+ }
535
+
536
+ /* Suavizar botones navegación (heredan selector button) */
537
+ .react-calendar__navigation button {
538
+ transition: background-color 0.18s ease, color 0.18s ease, border-radius 0.25s ease;
539
+ }
540
+
541
+ /* Hover general (sin tocar colores definidos en variantes) añadimos ligera elevación */
542
+ .react-calendar__tile:enabled:hover,
543
+ .react-calendar__tile:enabled:focus {
544
+ transform: translateY(-2px);
545
+ }
546
+
547
+ /* Evitar salto al active manteniendo animación */
548
+ .react-calendar__tile--active {
549
+ transition: background-color 0.18s ease, color 0.18s ease, border-radius 0.25s ease;
484
550
  }
485
551
 
552
+ /* Grid compacto SOLO cuando no es doble vista */
553
+ ${({ showdoubleview }) => showdoubleview === "false" && styledComponents_browser_esm.lt`
554
+ .react-calendar__month-view__weekdays,
555
+ .react-calendar__month-view__days {
556
+ display: grid !important;
557
+ grid-template-columns: repeat(7, var(--cal-cell-size));
558
+ justify-content: center;
559
+ gap: 2px; /* Sin gaps para exactitud */
560
+ }
561
+
562
+ .react-calendar__month-view__days {
563
+ margin-top: 0;
564
+ }
565
+ `}
566
+
486
567
  .react-calendar__tile:disabled {
487
568
  text-decoration: line-through;
488
569
  color: var(--color-gray-300);
@@ -501,8 +582,19 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
501
582
  align-items: center;
502
583
  justify-content: center;
503
584
  border-radius: 50%;
585
+ width: var(--cal-cell-size);
586
+ height: var(--cal-cell-size);
587
+ min-width: var(--cal-cell-size);
588
+ max-width: var(--cal-cell-size);
589
+ min-height: var(--cal-cell-size);
590
+ max-height: var(--cal-cell-size);
591
+ color: hsl(var(--color-default-400) / 1);
504
592
  }
505
593
 
594
+ .react-calendar__year-view__months__month{
595
+ border-radius: 8px !important;
596
+ }
597
+
506
598
  ${({ color }) => {
507
599
  switch (color) {
508
600
  case "primary":
@@ -512,19 +604,19 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
512
604
  background-color: var(--color-primary-100);
513
605
 
514
606
  color: var(--color-primary-500);
515
- border-radius: 8px;
607
+ border-radius: 50%;
516
608
  }
517
609
 
518
610
  .react-calendar .react-calendar__tile--now {
519
- border-radius: 8px;
611
+ border-radius: 50%;
520
612
  background-color: var(--color-primary-100);
521
613
  color: var(--color-primary-500);
522
614
  }
523
615
 
524
616
  .react-calendar__tile.react-calendar__tile--active.react-calendar__tile--range.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd {
525
- background-color: var(--color-primary-400);
617
+ background-color: var(--color-primary);
526
618
  color: white;
527
- border-radius: 8px;
619
+ border-radius: 50%;
528
620
  }
529
621
 
530
622
  /* .react-calendar__tile--hasActive.react-calendar__year-view__months__month, */
@@ -540,7 +632,7 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
540
632
  .react-calendar .react-calendar__tile--hasActive.react-calendar__tile--rangeStart.react-calendar__year-view__months__month,
541
633
  .react-calendar__tile--hasActive.react-calendar__tile--rangeStart.react-calendar__decade-view__years__year,
542
634
  .react-calendar__tile--hasActive.react-calendar__tile--rangeStart.react-calendar__century-view__decades__decade {
543
- background-color: var(--color-primary-400);
635
+ background-color: var(--color-primary);
544
636
  color: white;
545
637
 
546
638
  border-radius: 8px 0 0 8px;
@@ -556,7 +648,7 @@ const CalendarStyle = styledComponents_browser_esm.dt.div`
556
648
  .react-calendar__tile.react-calendar__tile--hasActive.react-calendar__tile--range.react-calendar__tile--rangeEnd.react-calendar__year-view__months__month,
557
649
  .react-calendar__tile--hasActive.react-calendar__tile--rangeEnd.react-calendar__decade-view__years__year,
558
650
  .react-calendar__tile--hasActive.react-calendar__tile--rangeEnd.react-calendar__century-view__decades__decade {
559
- background-color: var(--color-primary-400);
651
+ background-color: var(--color-primary);
560
652
  color: white;
561
653
 
562
654
  border-radius: 0 8px 8px 0;
@@ -730,6 +822,7 @@ const CalendarPicker = ({
730
822
  containerStyle: {
731
823
  zIndex: "100"
732
824
  },
825
+ align: "start",
733
826
  content: /* @__PURE__ */ jsxRuntime.jsxs(
734
827
  CalendarStyle,
735
828
  {
@@ -757,8 +850,8 @@ const CalendarPicker = ({
757
850
  tileDisabled,
758
851
  selectRange: type === "date-range-picker",
759
852
  returnValue: type === "date-range-picker" ? "range" : "start",
760
- prevLabel: /* @__PURE__ */ jsxRuntime.jsx(FaArrowLeft, { className: "w-4 h-5" }),
761
- nextLabel: /* @__PURE__ */ jsxRuntime.jsx(FaArrowRight, { className: "w-4 h-5" }),
853
+ prevLabel: /* @__PURE__ */ jsxRuntime.jsx(FaArrowLeft, { className: "w-4 h-4 text-default-400" }),
854
+ nextLabel: /* @__PURE__ */ jsxRuntime.jsx(FaArrowRight, { className: "w-4 h-4 text-default-400" }),
762
855
  tileContent
763
856
  }
764
857
  ),