@crispy-seed/data-table 0.10.5 → 0.11.0

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.
@@ -1,5 +1,6 @@
1
1
  .seed-data-table__root {
2
2
  box-sizing: border-box;
3
+ position: relative;
3
4
  display: flex;
4
5
  flex-direction: column;
5
6
  width: 100%;
@@ -640,6 +641,63 @@ tr:hover .seed-data-table__entityActions {
640
641
  text-align: center;
641
642
  padding: 0;
642
643
  }
644
+ .seed-data-table__bulkBar {
645
+ box-sizing: border-box;
646
+ position: absolute;
647
+ inset-inline-start: 50%;
648
+ transform: translateX(-50%);
649
+ bottom: var(--seed-dimension-x4);
650
+ z-index: 30;
651
+ display: flex;
652
+ align-items: center;
653
+ gap: var(--seed-dimension-x3);
654
+ min-height: 36px;
655
+ padding-inline: var(--seed-dimension-x3_5);
656
+ padding-block: var(--seed-dimension-x2);
657
+ border-radius: var(--seed-radius-full);
658
+ box-shadow: var(--seed-shadow-s3);
659
+ background-color: var(--seed-color-bg-layer-floating);
660
+ color: var(--seed-color-fg-neutral);
661
+ font-family: inherit;
662
+ font-size: var(--seed-font-size-t4);
663
+ font-weight: var(--seed-font-weight-medium);
664
+ white-space: nowrap;
665
+ }
666
+ .seed-data-table__bulkBarCount {
667
+ flex-shrink: 0;
668
+ color: var(--seed-color-fg-neutral);
669
+ font-variant-numeric: tabular-nums;
670
+ }
671
+ .seed-data-table__bulkBarClear {
672
+ box-sizing: border-box;
673
+ display: inline-flex;
674
+ align-items: center;
675
+ justify-content: center;
676
+ flex-shrink: 0;
677
+ width: 20px;
678
+ height: 20px;
679
+ margin: 0;
680
+ padding: 2px;
681
+ border: none;
682
+ border-radius: 6px;
683
+ background: none;
684
+ font-family: inherit;
685
+ color: color-mix(in srgb, var(--seed-color-fg-neutral) 55%, transparent);
686
+ cursor: pointer;
687
+ transition: background-color 0.2s, color 0.2s;
688
+ }
689
+ .seed-data-table__bulkBarClear:hover {
690
+ background-color: color-mix(in srgb, var(--seed-color-fg-neutral) 8%, transparent);
691
+ color: var(--seed-color-fg-neutral);
692
+ }
693
+ .seed-data-table__bulkBarActions {
694
+ display: flex;
695
+ align-items: center;
696
+ flex-shrink: 0;
697
+ gap: var(--seed-dimension-x3);
698
+ padding-inline-start: var(--seed-dimension-x3);
699
+ border-inline-start: 1px solid color-mix(in srgb, var(--seed-color-fg-neutral) 16%, transparent);
700
+ }
643
701
  .seed-data-table__root--surface_card {
644
702
  border-color: var(--seed-color-stroke-neutral-muted);
645
703
  background-color: var(--seed-color-bg-layer-default);
@@ -7,6 +7,7 @@
7
7
  width: 100%;
8
8
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
9
9
  display: flex;
10
+ position: relative;
10
11
  }
11
12
 
12
13
  .seed-data-table__table {
@@ -719,6 +720,68 @@
719
720
  padding: 0;
720
721
  }
721
722
 
723
+ .seed-data-table__bulkBar {
724
+ box-sizing: border-box;
725
+ inset-inline-start: 50%;
726
+ bottom: var(--seed-dimension-x4);
727
+ z-index: 30;
728
+ align-items: center;
729
+ gap: var(--seed-dimension-x3);
730
+ min-height: 36px;
731
+ padding-inline: var(--seed-dimension-x3_5);
732
+ padding-block: var(--seed-dimension-x2);
733
+ border-radius: var(--seed-radius-full);
734
+ box-shadow: var(--seed-shadow-s3);
735
+ background-color: var(--seed-color-bg-layer-floating);
736
+ color: var(--seed-color-fg-neutral);
737
+ font-family: inherit;
738
+ font-size: var(--seed-font-size-t4);
739
+ font-weight: var(--seed-font-weight-medium);
740
+ white-space: nowrap;
741
+ display: flex;
742
+ position: absolute;
743
+ transform: translateX(-50%);
744
+ }
745
+
746
+ .seed-data-table__bulkBarCount {
747
+ color: var(--seed-color-fg-neutral);
748
+ font-variant-numeric: tabular-nums;
749
+ flex-shrink: 0;
750
+ }
751
+
752
+ .seed-data-table__bulkBarClear {
753
+ box-sizing: border-box;
754
+ width: 20px;
755
+ height: 20px;
756
+ color: color-mix(in srgb, var(--seed-color-fg-neutral) 55%, transparent);
757
+ cursor: pointer;
758
+ background: none;
759
+ border: none;
760
+ border-radius: 6px;
761
+ flex-shrink: 0;
762
+ justify-content: center;
763
+ align-items: center;
764
+ margin: 0;
765
+ padding: 2px;
766
+ font-family: inherit;
767
+ transition: background-color .2s, color .2s;
768
+ display: inline-flex;
769
+ }
770
+
771
+ .seed-data-table__bulkBarClear:hover {
772
+ background-color: color-mix(in srgb, var(--seed-color-fg-neutral) 8%, transparent);
773
+ color: var(--seed-color-fg-neutral);
774
+ }
775
+
776
+ .seed-data-table__bulkBarActions {
777
+ align-items: center;
778
+ gap: var(--seed-dimension-x3);
779
+ border-inline-start: 1px solid color-mix(in srgb, var(--seed-color-fg-neutral) 16%, transparent);
780
+ flex-shrink: 0;
781
+ padding-inline-start: var(--seed-dimension-x3);
782
+ display: flex;
783
+ }
784
+
722
785
  .seed-data-table__root--surface_card {
723
786
  border-color: var(--seed-color-stroke-neutral-muted);
724
787
  background-color: var(--seed-color-bg-layer-default);