@axzydev/axzy_ui_system 1.8.0 → 1.8.2

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/src/index.css CHANGED
@@ -583,4 +583,265 @@
583
583
  background: rgb(37 99 235 / 0.2);
584
584
  color: var(--color-primary-300);
585
585
  }
586
- }
586
+ }
587
+ /* ── Bento tiles (organismo `ITBento*`) ─────────────────────────────────────
588
+ Superficies del tablero: mosaico de 12 columnas con filas de 84 px, tarjetas
589
+ de radio 20 px que se colapsan a 3/6 columnas en pantallas chicas. Los tonos
590
+ salen de la paleta de marca, no de colores sueltos por pantalla. */
591
+ @keyframes it-bento-draw {
592
+ to {
593
+ stroke-dashoffset: var(--it-bento-off, 0);
594
+ }
595
+ }
596
+
597
+ @keyframes it-bento-wave {
598
+ from {
599
+ transform: translateX(0);
600
+ }
601
+ to {
602
+ transform: translateX(-50%);
603
+ }
604
+ }
605
+
606
+ @keyframes it-bento-rise {
607
+ from {
608
+ transform: scaleY(0.25);
609
+ }
610
+ to {
611
+ transform: scaleY(1);
612
+ }
613
+ }
614
+
615
+ @keyframes it-bento-tick {
616
+ to {
617
+ stroke-dashoffset: 0;
618
+ }
619
+ }
620
+
621
+ @keyframes it-bento-pulse {
622
+ to {
623
+ box-shadow: 0 0 0 7px transparent;
624
+ }
625
+ }
626
+
627
+ @keyframes it-bento-enter {
628
+ from {
629
+ opacity: 0;
630
+ transform: translateY(-8px);
631
+ }
632
+ }
633
+
634
+ .it-bento-grid {
635
+ display: grid;
636
+ grid-template-columns: repeat(12, minmax(0, 1fr));
637
+ grid-auto-rows: 84px;
638
+ gap: 10px;
639
+ }
640
+
641
+ .it-bento-tile {
642
+ --it-bento-bg: var(--it-card-bg, #ffffff);
643
+ --it-bento-ink: var(--color-text-default, #0f172a);
644
+ --it-bento-muted: var(--color-text-muted, #64748b);
645
+ --it-bento-line: rgb(15 23 42 / 0.08);
646
+ position: relative;
647
+ display: flex;
648
+ flex-direction: column;
649
+ min-width: 0;
650
+ overflow: hidden;
651
+ border-radius: 20px;
652
+ padding: 14px 16px;
653
+ background: var(--it-bento-bg);
654
+ color: var(--it-bento-ink);
655
+ box-shadow: inset 0 0 0 1px var(--it-bento-line);
656
+ }
657
+
658
+ .it-bento-tile--sea {
659
+ --it-bento-bg: #0c3b52;
660
+ --it-bento-ink: #eaf6f8;
661
+ --it-bento-muted: rgb(234 246 248 / 0.72);
662
+ --it-bento-line: transparent;
663
+ box-shadow: none;
664
+ }
665
+
666
+ .it-bento-tile--lavender {
667
+ --it-bento-bg: #ece7fa;
668
+ --it-bento-ink: #1c1340;
669
+ --it-bento-muted: rgb(28 19 64 / 0.66);
670
+ --it-bento-line: transparent;
671
+ box-shadow: none;
672
+ }
673
+
674
+ .it-bento-tile--mint {
675
+ --it-bento-bg: #e2f3ec;
676
+ --it-bento-ink: #0f2e25;
677
+ --it-bento-muted: rgb(15 46 37 / 0.62);
678
+ --it-bento-line: transparent;
679
+ box-shadow: none;
680
+ }
681
+
682
+ .it-bento-tile--sun {
683
+ --it-bento-bg: #fcf2d8;
684
+ --it-bento-ink: #3a2a05;
685
+ --it-bento-muted: rgb(58 42 5 / 0.66);
686
+ --it-bento-line: transparent;
687
+ box-shadow: none;
688
+ }
689
+
690
+ .dark .it-bento-tile--lavender {
691
+ --it-bento-bg: #241f3d;
692
+ --it-bento-ink: #f2eefc;
693
+ --it-bento-muted: rgb(242 238 252 / 0.7);
694
+ }
695
+
696
+ .dark .it-bento-tile--mint {
697
+ --it-bento-bg: #12302b;
698
+ --it-bento-ink: #e8f6f1;
699
+ --it-bento-muted: rgb(232 246 241 / 0.7);
700
+ }
701
+
702
+ .dark .it-bento-tile--sun {
703
+ --it-bento-bg: #352d17;
704
+ --it-bento-ink: #fbf0d4;
705
+ --it-bento-muted: rgb(251 240 212 / 0.7);
706
+ }
707
+
708
+ .dark .it-bento-tile {
709
+ --it-bento-line: rgb(229 240 243 / 0.09);
710
+ }
711
+
712
+ .it-bento-tile__label {
713
+ display: flex;
714
+ align-items: center;
715
+ gap: 7px;
716
+ font-size: 12.5px;
717
+ font-weight: 600;
718
+ color: var(--it-bento-muted);
719
+ position: relative;
720
+ z-index: 1;
721
+ }
722
+
723
+ .it-bento-tile__value {
724
+ font-size: 32px;
725
+ font-weight: 800;
726
+ letter-spacing: -0.04em;
727
+ line-height: 1;
728
+ font-variant-numeric: tabular-nums;
729
+ }
730
+
731
+ .it-bento-tile--sea .it-bento-tile__value {
732
+ font-size: 44px;
733
+ }
734
+
735
+ .it-bento-tile__foot {
736
+ margin-top: auto;
737
+ display: flex;
738
+ align-items: flex-end;
739
+ justify-content: space-between;
740
+ gap: 8px;
741
+ position: relative;
742
+ z-index: 1;
743
+ }
744
+
745
+ .it-bento-tile__caption {
746
+ font-size: 12px;
747
+ font-weight: 500;
748
+ color: var(--it-bento-muted);
749
+ }
750
+
751
+ .it-bento-wave {
752
+ position: absolute;
753
+ inset: auto 0 0 0;
754
+ pointer-events: none;
755
+ overflow: hidden;
756
+ }
757
+
758
+ .it-bento-wave svg {
759
+ position: absolute;
760
+ left: 0;
761
+ bottom: 0;
762
+ width: 200%;
763
+ height: 100%;
764
+ }
765
+
766
+ .it-bento-wave__a {
767
+ animation: it-bento-wave 9s linear infinite;
768
+ }
769
+
770
+ .it-bento-wave__b {
771
+ animation: it-bento-wave 6s linear infinite reverse;
772
+ }
773
+
774
+ .it-bento-seg {
775
+ display: grid;
776
+ gap: 2px;
777
+ height: 100%;
778
+ max-height: 42px;
779
+ align-items: end;
780
+ }
781
+
782
+ .it-bento-seg i {
783
+ display: block;
784
+ height: 100%;
785
+ border-radius: 3px;
786
+ transform: scaleY(0.4);
787
+ transform-origin: bottom;
788
+ }
789
+
790
+ .it-bento-seg i.is-on {
791
+ transform: scaleY(1);
792
+ animation: it-bento-rise 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
793
+ animation-delay: calc(var(--it-bento-i, 0) * 26ms + 0.2s);
794
+ }
795
+
796
+ .it-bento-bars {
797
+ display: grid;
798
+ gap: 11px;
799
+ }
800
+
801
+ .it-bento-bar {
802
+ height: 5px;
803
+ border-radius: 9px;
804
+ background: color-mix(in srgb, currentColor 10%, transparent);
805
+ overflow: hidden;
806
+ }
807
+
808
+ .it-bento-bar > i {
809
+ display: block;
810
+ height: 100%;
811
+ border-radius: 9px;
812
+ width: var(--it-bento-w, 0%);
813
+ transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
814
+ }
815
+
816
+ @media (max-width: 1000px) {
817
+ .it-bento-grid {
818
+ grid-template-columns: repeat(6, minmax(0, 1fr));
819
+ grid-auto-rows: auto;
820
+ }
821
+
822
+ .it-bento-tile {
823
+ grid-column: span 3 !important;
824
+ grid-row: auto !important;
825
+ min-height: 130px;
826
+ }
827
+
828
+ .it-bento-tile--wide {
829
+ grid-column: span 6 !important;
830
+ }
831
+ }
832
+
833
+ @media (max-width: 560px) {
834
+ .it-bento-tile {
835
+ grid-column: span 6 !important;
836
+ }
837
+ }
838
+
839
+ @media (prefers-reduced-motion: reduce) {
840
+ .it-bento-wave__a,
841
+ .it-bento-wave__b,
842
+ .it-bento-seg i,
843
+ .it-bento-bar > i {
844
+ animation: none !important;
845
+ transition: none !important;
846
+ }
847
+ }
package/src/index.ts CHANGED
@@ -10,6 +10,19 @@ import useJsonRender from "./hooks/useJsonRender";
10
10
 
11
11
  // COMPONENTES
12
12
  import ITAccordion from "./components/molecules/accordion/accordion";
13
+ import {
14
+ ITBentoGrid,
15
+ ITBentoTile,
16
+ ITBentoGauge,
17
+ ITBentoWaves,
18
+ ITBentoSpark,
19
+ ITBentoSegments,
20
+ ITBentoWeekBars,
21
+ ITBentoDonut,
22
+ ITBentoFeed,
23
+ ITBentoLive,
24
+ useITBentoCountUp,
25
+ } from "./components/organisms/bento/bento";
13
26
  import ITAlert from "./components/molecules/alert/alert";
14
27
  import ITAvatar from "./components/atoms/avatar/avatar";
15
28
  import ITBadget from "./components/atoms/badget/badget";
@@ -251,6 +264,8 @@ export {
251
264
  createValidationSchema,
252
265
  // Components
253
266
  ITAccordion,
267
+ ITBentoGrid, ITBentoTile, ITBentoGauge, ITBentoWaves, ITBentoSpark, ITBentoSegments,
268
+ ITBentoWeekBars, ITBentoDonut, ITBentoFeed, ITBentoLive, useITBentoCountUp,
254
269
  ITAlert, ITAvatar, ITBadget, ITBreadcrumbs, ITButton,
255
270
  ITCalendar,
256
271
  ITCard, ITCheckbox, ITChip, ITChipInput, ITConfirmDialog, ITDataTable, ITDatePicker,