baaz-custom-components 5.0.22 → 5.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/dist/index.css CHANGED
@@ -46,7 +46,9 @@
46
46
  --tracking-widest: 0.1em;
47
47
  --radius-xs: 0.125rem;
48
48
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
49
+ --animate-spin: spin 1s linear infinite;
49
50
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
51
+ --blur-sm: 8px;
50
52
  --default-transition-duration: 150ms;
51
53
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
52
54
  --default-font-family: var(--font-sans);
@@ -347,6 +349,24 @@
347
349
  .z-\[1\] {
348
350
  z-index: 1;
349
351
  }
352
+ .container {
353
+ width: 100%;
354
+ @media (width >= 40rem) {
355
+ max-width: 40rem;
356
+ }
357
+ @media (width >= 48rem) {
358
+ max-width: 48rem;
359
+ }
360
+ @media (width >= 64rem) {
361
+ max-width: 64rem;
362
+ }
363
+ @media (width >= 80rem) {
364
+ max-width: 80rem;
365
+ }
366
+ @media (width >= 96rem) {
367
+ max-width: 96rem;
368
+ }
369
+ }
350
370
  .-mx-1 {
351
371
  margin-inline: calc(var(--spacing) * -1);
352
372
  }
@@ -383,9 +403,6 @@
383
403
  .mt-auto {
384
404
  margin-top: auto;
385
405
  }
386
- .mr-auto {
387
- margin-right: auto;
388
- }
389
406
  .ml-1 {
390
407
  margin-left: calc(var(--spacing) * 1);
391
408
  }
@@ -492,6 +509,9 @@
492
509
  .h-96 {
493
510
  height: calc(var(--spacing) * 96);
494
511
  }
512
+ .h-\[40px\] {
513
+ height: 40px;
514
+ }
495
515
  .h-\[calc\(100dvh-3rem\)\] {
496
516
  height: calc(100dvh - 3rem);
497
517
  }
@@ -561,8 +581,11 @@
561
581
  .w-80 {
562
582
  width: calc(var(--spacing) * 80);
563
583
  }
564
- .w-\[20rem\] {
565
- width: 20rem;
584
+ .w-\[40px\] {
585
+ width: 40px;
586
+ }
587
+ .w-\[90px\] {
588
+ width: 90px;
566
589
  }
567
590
  .w-\[94\%\] {
568
591
  width: 94%;
@@ -570,6 +593,12 @@
570
593
  .w-\[100px\] {
571
594
  width: 100px;
572
595
  }
596
+ .w-\[250px\] {
597
+ width: 250px;
598
+ }
599
+ .w-\[650px\] {
600
+ width: 650px;
601
+ }
573
602
  .w-auto {
574
603
  width: auto;
575
604
  }
@@ -579,15 +608,15 @@
579
608
  .w-full {
580
609
  width: 100%;
581
610
  }
582
- .w-grid {
583
- width: calc(100% - 2px);
584
- }
585
611
  .w-max {
586
612
  width: max-content;
587
613
  }
588
614
  .max-w-\(--skeleton-width\) {
589
615
  max-width: var(--skeleton-width);
590
616
  }
617
+ .max-w-\[95vw\] {
618
+ max-width: 95vw;
619
+ }
591
620
  .max-w-\[calc\(100\%-2rem\)\] {
592
621
  max-width: calc(100% - 2rem);
593
622
  }
@@ -666,6 +695,9 @@
666
695
  .animate-pulse {
667
696
  animation: var(--animate-pulse);
668
697
  }
698
+ .animate-spin {
699
+ animation: var(--animate-spin);
700
+ }
669
701
  .cursor-default {
670
702
  cursor: default;
671
703
  }
@@ -702,9 +734,6 @@
702
734
  .justify-center {
703
735
  justify-content: center;
704
736
  }
705
- .justify-end {
706
- justify-content: flex-end;
707
- }
708
737
  .gap-1 {
709
738
  gap: calc(var(--spacing) * 1);
710
739
  }
@@ -726,6 +755,20 @@
726
755
  .gap-8 {
727
756
  gap: calc(var(--spacing) * 8);
728
757
  }
758
+ .space-y-3 {
759
+ :where(& > :not(:last-child)) {
760
+ --tw-space-y-reverse: 0;
761
+ margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
762
+ margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
763
+ }
764
+ }
765
+ .space-y-4 {
766
+ :where(& > :not(:last-child)) {
767
+ --tw-space-y-reverse: 0;
768
+ margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
769
+ margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
770
+ }
771
+ }
729
772
  .overflow-auto {
730
773
  overflow: auto;
731
774
  }
@@ -766,6 +809,10 @@
766
809
  border-style: var(--tw-border-style);
767
810
  border-width: 1px;
768
811
  }
812
+ .border-2 {
813
+ border-style: var(--tw-border-style);
814
+ border-width: 2px;
815
+ }
769
816
  .border-t {
770
817
  border-top-style: var(--tw-border-style);
771
818
  border-top-width: 1px;
@@ -818,6 +865,12 @@
818
865
  .bg-background {
819
866
  background-color: var(--background);
820
867
  }
868
+ .bg-background\/60 {
869
+ background-color: var(--background);
870
+ @supports (color: color-mix(in lab, red, red)) {
871
+ background-color: color-mix(in oklab, var(--background) 60%, transparent);
872
+ }
873
+ }
821
874
  .bg-black\/50 {
822
875
  background-color: color-mix(in srgb, #000 50%, transparent);
823
876
  @supports (color: color-mix(in lab, red, red)) {
@@ -845,12 +898,6 @@
845
898
  .bg-destructive {
846
899
  background-color: var(--destructive);
847
900
  }
848
- .bg-destructive\/40 {
849
- background-color: var(--destructive);
850
- @supports (color: color-mix(in lab, red, red)) {
851
- background-color: color-mix(in oklab, var(--destructive) 40%, transparent);
852
- }
853
- }
854
901
  .bg-input {
855
902
  background-color: var(--input);
856
903
  }
@@ -902,9 +949,6 @@
902
949
  .p-2 {
903
950
  padding: calc(var(--spacing) * 2);
904
951
  }
905
- .p-3 {
906
- padding: calc(var(--spacing) * 3);
907
- }
908
952
  .p-4 {
909
953
  padding: calc(var(--spacing) * 4);
910
954
  }
@@ -1181,6 +1225,11 @@
1181
1225
  .filter {
1182
1226
  filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
1183
1227
  }
1228
+ .backdrop-blur-sm {
1229
+ --tw-backdrop-blur: blur(var(--blur-sm));
1230
+ -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
1231
+ backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
1232
+ }
1184
1233
  .transition {
1185
1234
  transition-property:
1186
1235
  color,
@@ -1670,10 +1719,13 @@
1670
1719
  }
1671
1720
  }
1672
1721
  }
1673
- .hover\:bg-destructive {
1722
+ .hover\:bg-destructive\/30 {
1674
1723
  &:hover {
1675
1724
  @media (hover: hover) {
1676
1725
  background-color: var(--destructive);
1726
+ @supports (color: color-mix(in lab, red, red)) {
1727
+ background-color: color-mix(in oklab, var(--destructive) 30%, transparent);
1728
+ }
1677
1729
  }
1678
1730
  }
1679
1731
  }
@@ -1687,6 +1739,13 @@
1687
1739
  }
1688
1740
  }
1689
1741
  }
1742
+ .hover\:bg-input {
1743
+ &:hover {
1744
+ @media (hover: hover) {
1745
+ background-color: var(--input);
1746
+ }
1747
+ }
1748
+ }
1690
1749
  .hover\:bg-muted {
1691
1750
  &:hover {
1692
1751
  @media (hover: hover) {
@@ -7391,6 +7450,9 @@ i.wx-U0Bx7pIR {
7391
7450
  box-shadow: 0 4px 16px #0009;
7392
7451
  outline: var(--wx-border);
7393
7452
  }
7453
+ * {
7454
+ box-sizing: border-box;
7455
+ }
7394
7456
  :root {
7395
7457
  --radius: 0.625rem;
7396
7458
  --background: oklch(0.2758 0.0182 262.2);
@@ -7407,6 +7469,7 @@ i.wx-U0Bx7pIR {
7407
7469
  --muted-foreground: oklch(0.9851 0 0);
7408
7470
  --accent: oklch(0.6437 0.1913 274.74);
7409
7471
  --accent-foreground: oklch(0.9851 0 0);
7472
+ --surface-alt: oklch(0.305 0.02 260);
7410
7473
  --destructive: oklch(0.577 0.245 27.325);
7411
7474
  --border: oklch(0.4448 0.0409 263.25);
7412
7475
  --input: oklch(0.4448 0.0409 263.25);
@@ -7499,7 +7562,7 @@ i.wx-U0Bx7pIR {
7499
7562
  }
7500
7563
  }
7501
7564
  .wx-willow-dark-theme {
7502
- --wx-table-header-background: var(--card);
7565
+ --wx-table-header-background: var(--surface-alt);
7503
7566
  --wx-table-select-background: var(--popover);
7504
7567
  --wx-table-select-focus-background: var(--card-foreground);
7505
7568
  --wx-table-select-border: inset 3px 0 var(--primary);
@@ -7517,7 +7580,8 @@ i.wx-U0Bx7pIR {
7517
7580
  }
7518
7581
  .wx-theme {
7519
7582
  height: 100%;
7520
- overflow-y: hidden;
7583
+ width: 100%;
7584
+ max-width: 100%;
7521
7585
  }
7522
7586
  .wx-willow-dark-theme .menu {
7523
7587
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.6);
@@ -7542,6 +7606,7 @@ i.wx-U0Bx7pIR {
7542
7606
  @property --tw-rotate-z { syntax: "*"; inherits: false; }
7543
7607
  @property --tw-skew-x { syntax: "*"; inherits: false; }
7544
7608
  @property --tw-skew-y { syntax: "*"; inherits: false; }
7609
+ @property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
7545
7610
  @property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
7546
7611
  @property --tw-leading { syntax: "*"; inherits: false; }
7547
7612
  @property --tw-font-weight { syntax: "*"; inherits: false; }
@@ -7579,9 +7644,23 @@ i.wx-U0Bx7pIR {
7579
7644
  @property --tw-drop-shadow-color { syntax: "*"; inherits: false; }
7580
7645
  @property --tw-drop-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
7581
7646
  @property --tw-drop-shadow-size { syntax: "*"; inherits: false; }
7647
+ @property --tw-backdrop-blur { syntax: "*"; inherits: false; }
7648
+ @property --tw-backdrop-brightness { syntax: "*"; inherits: false; }
7649
+ @property --tw-backdrop-contrast { syntax: "*"; inherits: false; }
7650
+ @property --tw-backdrop-grayscale { syntax: "*"; inherits: false; }
7651
+ @property --tw-backdrop-hue-rotate { syntax: "*"; inherits: false; }
7652
+ @property --tw-backdrop-invert { syntax: "*"; inherits: false; }
7653
+ @property --tw-backdrop-opacity { syntax: "*"; inherits: false; }
7654
+ @property --tw-backdrop-saturate { syntax: "*"; inherits: false; }
7655
+ @property --tw-backdrop-sepia { syntax: "*"; inherits: false; }
7582
7656
  @property --tw-duration { syntax: "*"; inherits: false; }
7583
7657
  @property --tw-ease { syntax: "*"; inherits: false; }
7584
7658
  @property --tw-content { syntax: "*"; initial-value: ""; inherits: false; }
7659
+ @keyframes spin {
7660
+ to {
7661
+ transform: rotate(360deg);
7662
+ }
7663
+ }
7585
7664
  @keyframes pulse {
7586
7665
  50% {
7587
7666
  opacity: 0.5;
@@ -7615,6 +7694,7 @@ i.wx-U0Bx7pIR {
7615
7694
  --tw-rotate-z: initial;
7616
7695
  --tw-skew-x: initial;
7617
7696
  --tw-skew-y: initial;
7697
+ --tw-space-y-reverse: 0;
7618
7698
  --tw-border-style: solid;
7619
7699
  --tw-leading: initial;
7620
7700
  --tw-font-weight: initial;
@@ -7652,6 +7732,15 @@ i.wx-U0Bx7pIR {
7652
7732
  --tw-drop-shadow-color: initial;
7653
7733
  --tw-drop-shadow-alpha: 100%;
7654
7734
  --tw-drop-shadow-size: initial;
7735
+ --tw-backdrop-blur: initial;
7736
+ --tw-backdrop-brightness: initial;
7737
+ --tw-backdrop-contrast: initial;
7738
+ --tw-backdrop-grayscale: initial;
7739
+ --tw-backdrop-hue-rotate: initial;
7740
+ --tw-backdrop-invert: initial;
7741
+ --tw-backdrop-opacity: initial;
7742
+ --tw-backdrop-saturate: initial;
7743
+ --tw-backdrop-sepia: initial;
7655
7744
  --tw-duration: initial;
7656
7745
  --tw-ease: initial;
7657
7746
  --tw-content: "";
package/dist/index.d.mts CHANGED
@@ -68,7 +68,10 @@ type GridColumn = {
68
68
  resize?: boolean;
69
69
  };
70
70
  type Filters = {
71
- columnName: string;
71
+ columnName: {
72
+ label: string;
73
+ value: string;
74
+ };
72
75
  operators: {
73
76
  label: string;
74
77
  value: "input" | "date" | "select" | "date-range" | null;
@@ -96,6 +99,7 @@ type GridProps = {
96
99
  search: boolean;
97
100
  searchkey: string;
98
101
  searchValue: string;
102
+ loading: boolean;
99
103
  onExportPdf?: () => void;
100
104
  onExportExcel?: () => void;
101
105
  onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
package/dist/index.d.ts CHANGED
@@ -68,7 +68,10 @@ type GridColumn = {
68
68
  resize?: boolean;
69
69
  };
70
70
  type Filters = {
71
- columnName: string;
71
+ columnName: {
72
+ label: string;
73
+ value: string;
74
+ };
72
75
  operators: {
73
76
  label: string;
74
77
  value: "input" | "date" | "select" | "date-range" | null;
@@ -96,6 +99,7 @@ type GridProps = {
96
99
  search: boolean;
97
100
  searchkey: string;
98
101
  searchValue: string;
102
+ loading: boolean;
99
103
  onExportPdf?: () => void;
100
104
  onExportExcel?: () => void;
101
105
  onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;