@crispy-seed/data-table 0.5.0 → 0.7.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.
package/dist/styles.css CHANGED
@@ -462,17 +462,42 @@
462
462
  --seed-dimension-spacing-y-nav-to-title: var(--seed-dimension-x5);
463
463
  --seed-dimension-spacing-y-screen-bottom: var(--seed-dimension-x14);
464
464
  --seed-dimension-spacing-y-between-text: var(--seed-dimension-x1_5);
465
- --seed-radius-r0_5: 2px;
466
- --seed-radius-r1: 4px;
467
- --seed-radius-r1_5: 6px;
468
- --seed-radius-r2: 8px;
469
- --seed-radius-r2_5: 10px;
470
- --seed-radius-r3: 12px;
471
- --seed-radius-r3_5: 14px;
472
- --seed-radius-r4: 16px;
473
- --seed-radius-r5: 20px;
474
- --seed-radius-r6: 24px;
475
- --seed-radius-full: 9999px;
465
+ --seed-duration-d1: 50ms;
466
+ --seed-duration-d2: .1s;
467
+ --seed-duration-d3: .15s;
468
+ --seed-duration-d4: .2s;
469
+ --seed-duration-d5: .25s;
470
+ --seed-duration-d6: .3s;
471
+ --seed-duration-color-transition: var(--seed-duration-d3);
472
+ --seed-duration-pressed-scale: var(--seed-duration-d3);
473
+ --seed-font-size-t1: clamp(calc(var(--seed-font-size-t1-static) * var(--seed-font-size-limit-min, 1)), calc(.6875rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t1-static) * var(--seed-font-size-limit-max, 1)));
474
+ --seed-font-size-t2: clamp(calc(var(--seed-font-size-t2-static) * var(--seed-font-size-limit-min, 1)), calc(.75rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t2-static) * var(--seed-font-size-limit-max, 1)));
475
+ --seed-font-size-t3: clamp(calc(var(--seed-font-size-t3-static) * var(--seed-font-size-limit-min, 1)), calc(.8125rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t3-static) * var(--seed-font-size-limit-max, 1)));
476
+ --seed-font-size-t4: clamp(calc(var(--seed-font-size-t4-static) * var(--seed-font-size-limit-min, 1)), calc(.875rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t4-static) * var(--seed-font-size-limit-max, 1)));
477
+ --seed-font-size-t5: clamp(calc(var(--seed-font-size-t5-static) * var(--seed-font-size-limit-min, 1)), calc(1rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t5-static) * var(--seed-font-size-limit-max, 1)));
478
+ --seed-font-size-t6: clamp(calc(var(--seed-font-size-t6-static) * var(--seed-font-size-limit-min, 1)), calc(1.125rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t6-static) * var(--seed-font-size-limit-max, 1)));
479
+ --seed-font-size-t7: clamp(calc(var(--seed-font-size-t7-static) * var(--seed-font-size-limit-min, 1)), calc(1.25rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t7-static) * var(--seed-font-size-limit-max, 1)));
480
+ --seed-font-size-t8: clamp(calc(var(--seed-font-size-t8-static) * var(--seed-font-size-limit-min, 1)), calc(1.375rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t8-static) * var(--seed-font-size-limit-max, 1)));
481
+ --seed-font-size-t9: clamp(calc(var(--seed-font-size-t9-static) * var(--seed-font-size-limit-min, 1)), calc(1.5rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t9-static) * var(--seed-font-size-limit-max, 1)));
482
+ --seed-font-size-t10: clamp(calc(var(--seed-font-size-t10-static) * var(--seed-font-size-limit-min, 1)), calc(1.625rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t10-static) * var(--seed-font-size-limit-max, 1)));
483
+ --seed-font-size-t11: clamp(calc(var(--seed-font-size-t11-static) * var(--seed-font-size-limit-min, 1)), calc(1.75rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t11-static) * var(--seed-font-size-limit-max, 1)));
484
+ --seed-font-size-t12: clamp(calc(var(--seed-font-size-t12-static) * var(--seed-font-size-limit-min, 1)), calc(2rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t12-static) * var(--seed-font-size-limit-max, 1)));
485
+ --seed-font-size-t13: clamp(calc(var(--seed-font-size-t13-static) * var(--seed-font-size-limit-min, 1)), calc(2.5rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t13-static) * var(--seed-font-size-limit-max, 1)));
486
+ --seed-font-size-t14: clamp(calc(var(--seed-font-size-t14-static) * var(--seed-font-size-limit-min, 1)), calc(3rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t14-static) * var(--seed-font-size-limit-max, 1)));
487
+ --seed-font-size-t1-static: calc(11px / var(--seed-static-font-scale, 1));
488
+ --seed-font-size-t2-static: calc(12px / var(--seed-static-font-scale, 1));
489
+ --seed-font-size-t3-static: calc(13px / var(--seed-static-font-scale, 1));
490
+ --seed-font-size-t4-static: calc(14px / var(--seed-static-font-scale, 1));
491
+ --seed-font-size-t5-static: calc(16px / var(--seed-static-font-scale, 1));
492
+ --seed-font-size-t6-static: calc(18px / var(--seed-static-font-scale, 1));
493
+ --seed-font-size-t7-static: calc(20px / var(--seed-static-font-scale, 1));
494
+ --seed-font-size-t8-static: calc(22px / var(--seed-static-font-scale, 1));
495
+ --seed-font-size-t9-static: calc(24px / var(--seed-static-font-scale, 1));
496
+ --seed-font-size-t10-static: calc(26px / var(--seed-static-font-scale, 1));
497
+ --seed-font-size-t11-static: calc(28px / var(--seed-static-font-scale, 1));
498
+ --seed-font-size-t12-static: calc(32px / var(--seed-static-font-scale, 1));
499
+ --seed-font-size-t13-static: calc(40px / var(--seed-static-font-scale, 1));
500
+ --seed-font-size-t14-static: calc(48px / var(--seed-static-font-scale, 1));
476
501
  --seed-font-weight-regular: 400;
477
502
  --seed-font-weight-medium: 500;
478
503
  --seed-font-weight-bold: 700;
@@ -504,34 +529,17 @@
504
529
  --seed-line-height-t12-static: calc(42px / var(--seed-static-font-scale, 1));
505
530
  --seed-line-height-t13-static: calc(52px / var(--seed-static-font-scale, 1));
506
531
  --seed-line-height-t14-static: calc(60px / var(--seed-static-font-scale, 1));
507
- --seed-font-size-t1: clamp(calc(var(--seed-font-size-t1-static) * var(--seed-font-size-limit-min, 1)), calc(.6875rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t1-static) * var(--seed-font-size-limit-max, 1)));
508
- --seed-font-size-t2: clamp(calc(var(--seed-font-size-t2-static) * var(--seed-font-size-limit-min, 1)), calc(.75rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t2-static) * var(--seed-font-size-limit-max, 1)));
509
- --seed-font-size-t3: clamp(calc(var(--seed-font-size-t3-static) * var(--seed-font-size-limit-min, 1)), calc(.8125rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t3-static) * var(--seed-font-size-limit-max, 1)));
510
- --seed-font-size-t4: clamp(calc(var(--seed-font-size-t4-static) * var(--seed-font-size-limit-min, 1)), calc(.875rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t4-static) * var(--seed-font-size-limit-max, 1)));
511
- --seed-font-size-t5: clamp(calc(var(--seed-font-size-t5-static) * var(--seed-font-size-limit-min, 1)), calc(1rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t5-static) * var(--seed-font-size-limit-max, 1)));
512
- --seed-font-size-t6: clamp(calc(var(--seed-font-size-t6-static) * var(--seed-font-size-limit-min, 1)), calc(1.125rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t6-static) * var(--seed-font-size-limit-max, 1)));
513
- --seed-font-size-t7: clamp(calc(var(--seed-font-size-t7-static) * var(--seed-font-size-limit-min, 1)), calc(1.25rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t7-static) * var(--seed-font-size-limit-max, 1)));
514
- --seed-font-size-t8: clamp(calc(var(--seed-font-size-t8-static) * var(--seed-font-size-limit-min, 1)), calc(1.375rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t8-static) * var(--seed-font-size-limit-max, 1)));
515
- --seed-font-size-t9: clamp(calc(var(--seed-font-size-t9-static) * var(--seed-font-size-limit-min, 1)), calc(1.5rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t9-static) * var(--seed-font-size-limit-max, 1)));
516
- --seed-font-size-t10: clamp(calc(var(--seed-font-size-t10-static) * var(--seed-font-size-limit-min, 1)), calc(1.625rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t10-static) * var(--seed-font-size-limit-max, 1)));
517
- --seed-font-size-t11: clamp(calc(var(--seed-font-size-t11-static) * var(--seed-font-size-limit-min, 1)), calc(1.75rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t11-static) * var(--seed-font-size-limit-max, 1)));
518
- --seed-font-size-t12: clamp(calc(var(--seed-font-size-t12-static) * var(--seed-font-size-limit-min, 1)), calc(2rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t12-static) * var(--seed-font-size-limit-max, 1)));
519
- --seed-font-size-t13: clamp(calc(var(--seed-font-size-t13-static) * var(--seed-font-size-limit-min, 1)), calc(2.5rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t13-static) * var(--seed-font-size-limit-max, 1)));
520
- --seed-font-size-t14: clamp(calc(var(--seed-font-size-t14-static) * var(--seed-font-size-limit-min, 1)), calc(3rem * var(--seed-font-size-multiplier, 1)), calc(var(--seed-font-size-t14-static) * var(--seed-font-size-limit-max, 1)));
521
- --seed-font-size-t1-static: calc(11px / var(--seed-static-font-scale, 1));
522
- --seed-font-size-t2-static: calc(12px / var(--seed-static-font-scale, 1));
523
- --seed-font-size-t3-static: calc(13px / var(--seed-static-font-scale, 1));
524
- --seed-font-size-t4-static: calc(14px / var(--seed-static-font-scale, 1));
525
- --seed-font-size-t5-static: calc(16px / var(--seed-static-font-scale, 1));
526
- --seed-font-size-t6-static: calc(18px / var(--seed-static-font-scale, 1));
527
- --seed-font-size-t7-static: calc(20px / var(--seed-static-font-scale, 1));
528
- --seed-font-size-t8-static: calc(22px / var(--seed-static-font-scale, 1));
529
- --seed-font-size-t9-static: calc(24px / var(--seed-static-font-scale, 1));
530
- --seed-font-size-t10-static: calc(26px / var(--seed-static-font-scale, 1));
531
- --seed-font-size-t11-static: calc(28px / var(--seed-static-font-scale, 1));
532
- --seed-font-size-t12-static: calc(32px / var(--seed-static-font-scale, 1));
533
- --seed-font-size-t13-static: calc(40px / var(--seed-static-font-scale, 1));
534
- --seed-font-size-t14-static: calc(48px / var(--seed-static-font-scale, 1));
532
+ --seed-radius-r0_5: 2px;
533
+ --seed-radius-r1: 4px;
534
+ --seed-radius-r1_5: 6px;
535
+ --seed-radius-r2: 8px;
536
+ --seed-radius-r2_5: 10px;
537
+ --seed-radius-r3: 12px;
538
+ --seed-radius-r3_5: 14px;
539
+ --seed-radius-r4: 16px;
540
+ --seed-radius-r5: 20px;
541
+ --seed-radius-r6: 24px;
542
+ --seed-radius-full: 9999px;
535
543
  --seed-timing-function-linear: cubic-bezier(0, 0, 1, 1);
536
544
  --seed-timing-function-easing: cubic-bezier(.35, 0, .35, 1);
537
545
  --seed-timing-function-enter: cubic-bezier(0, 0, .15, 1);
@@ -539,27 +547,9 @@
539
547
  --seed-timing-function-enter-expressive: cubic-bezier(.03, .4, .1, 1);
540
548
  --seed-timing-function-exit-expressive: cubic-bezier(.35, 0, .95, .55);
541
549
  --seed-timing-function-pressed-scale: cubic-bezier(0, 0, .15, 1);
542
- --seed-duration-d1: 50ms;
543
- --seed-duration-d2: .1s;
544
- --seed-duration-d3: .15s;
545
- --seed-duration-d4: .2s;
546
- --seed-duration-d5: .25s;
547
- --seed-duration-d6: .3s;
548
- --seed-duration-color-transition: var(--seed-duration-d3);
549
- --seed-duration-pressed-scale: var(--seed-duration-d3);
550
550
  }
551
551
 
552
552
  :root, :root[data-seed-color-mode="system"][data-seed-user-color-scheme="light"], :root[data-seed-color-mode="light-only"], :root [data-seed-color-mode="light-only"] {
553
- --seed-gradient-fade-mask: #0000 0%, #00000003 8%, #00000005 16%, #0000000d 22%, #00000014 29.0%, #00000021 35%, #0000002e 41%, #00000040 47%, #00000052 53%, #0006 59%, #0000007a 65%, #00000094 71%, #000000ab 78%, #000000c7 84%, #000000e3 92%, #000 100%;
554
- --seed-gradient-glow-magic: #fef6f7 0%, #fef0e7 80%, #f9f7f5 100%;
555
- --seed-gradient-glow-magic-pressed: #fbf0f2 0%, #ffe8db 80%, #f5f2ef 100%;
556
- --seed-gradient-highlight-magic: #f60 20%, #d25aca 100%;
557
- --seed-gradient-highlight-magic-pressed: #e14f00 20%, #ae58bf 100%;
558
- --seed-gradient-shimmer-magic: #fff9f500 0%, #fff9f5cc 46%, #fff9f5cc 54%, #fff9f500 100%;
559
- --seed-gradient-shimmer-neutral: #fff0 0%, #ffffffab 46%, #ffffffab 54%, #fff0 100%;
560
- --seed-shadow-s1: 0px 1px 4px 0px #00000014;
561
- --seed-shadow-s2: 0px 2px 10px 0px #0000001a;
562
- --seed-shadow-s3: 0px 4px 16px 0px #0000001f;
563
553
  --seed-color-palette-gray-00: #fff;
564
554
  --seed-color-palette-gray-100: #f7f8f9;
565
555
  --seed-color-palette-gray-200: #f3f4f5;
@@ -759,19 +749,19 @@
759
749
  --seed-color-banner-teal: #e6faf6;
760
750
  --seed-color-banner-warm-gray: #f2f0ee;
761
751
  --seed-color-banner-yellow: #fffae1;
752
+ --seed-gradient-fade-mask: #0000 0%, #00000003 8%, #00000005 16%, #0000000d 22%, #00000014 29.0%, #00000021 35%, #0000002e 41%, #00000040 47%, #00000052 53%, #0006 59%, #0000007a 65%, #00000094 71%, #000000ab 78%, #000000c7 84%, #000000e3 92%, #000 100%;
753
+ --seed-gradient-glow-magic: #fef6f7 0%, #fef0e7 80%, #f9f7f5 100%;
754
+ --seed-gradient-glow-magic-pressed: #fbf0f2 0%, #ffe8db 80%, #f5f2ef 100%;
755
+ --seed-gradient-highlight-magic: #f60 20%, #d25aca 100%;
756
+ --seed-gradient-highlight-magic-pressed: #e14f00 20%, #ae58bf 100%;
757
+ --seed-gradient-shimmer-magic: #fff9f500 0%, #fff9f5cc 46%, #fff9f5cc 54%, #fff9f500 100%;
758
+ --seed-gradient-shimmer-neutral: #fff0 0%, #ffffffab 46%, #ffffffab 54%, #fff0 100%;
759
+ --seed-shadow-s1: 0px 1px 4px 0px #00000014;
760
+ --seed-shadow-s2: 0px 2px 10px 0px #0000001a;
761
+ --seed-shadow-s3: 0px 4px 16px 0px #0000001f;
762
762
  }
763
763
 
764
764
  :root[data-seed-color-mode="system"][data-seed-user-color-scheme="dark"], :root[data-seed-color-mode="dark-only"], :root [data-seed-color-mode="dark-only"] {
765
- --seed-gradient-fade-mask: #0000 0%, #00000003 8%, #00000005 16%, #0000000d 22%, #00000014 29.0%, #00000021 35%, #0000002e 41%, #00000040 47%, #00000052 53%, #0006 59%, #0000007a 65%, #00000094 71%, #000000ab 78%, #000000c7 84%, #000000e3 92%, #000 100%;
766
- --seed-gradient-glow-magic: #2d252d 0%, #3a312b 80%, #333232 100%;
767
- --seed-gradient-glow-magic-pressed: #3e333e 0%, #51453e 80%, #434242 100%;
768
- --seed-gradient-highlight-magic: #f60 20%, #d25aca 100%;
769
- --seed-gradient-highlight-magic-pressed: #ff9e65 20%, #e89bee 100%;
770
- --seed-gradient-shimmer-magic: #fff9f500 0%, #fff9f51a 46%, #fff9f51a 54%, #fff9f500 100%;
771
- --seed-gradient-shimmer-neutral: #fff0 0%, #ffffff1a 46%, #ffffff1a 54%, #fff0 100%;
772
- --seed-shadow-s1: 0px 1px 4px 0px #00000080;
773
- --seed-shadow-s2: 0px 2px 10px 0px #000000ad;
774
- --seed-shadow-s3: 0px 4px 16px 0px #000c;
775
765
  --seed-color-palette-gray-00: #000;
776
766
  --seed-color-palette-gray-100: #16171b;
777
767
  --seed-color-palette-gray-200: #1d2025;
@@ -971,6 +961,16 @@
971
961
  --seed-color-banner-teal: #143633;
972
962
  --seed-color-banner-warm-gray: #2f2b27;
973
963
  --seed-color-banner-yellow: #3e2b00;
964
+ --seed-gradient-fade-mask: #0000 0%, #00000003 8%, #00000005 16%, #0000000d 22%, #00000014 29.0%, #00000021 35%, #0000002e 41%, #00000040 47%, #00000052 53%, #0006 59%, #0000007a 65%, #00000094 71%, #000000ab 78%, #000000c7 84%, #000000e3 92%, #000 100%;
965
+ --seed-gradient-glow-magic: #2d252d 0%, #3a312b 80%, #333232 100%;
966
+ --seed-gradient-glow-magic-pressed: #3e333e 0%, #51453e 80%, #434242 100%;
967
+ --seed-gradient-highlight-magic: #f60 20%, #d25aca 100%;
968
+ --seed-gradient-highlight-magic-pressed: #ff9e65 20%, #e89bee 100%;
969
+ --seed-gradient-shimmer-magic: #fff9f500 0%, #fff9f51a 46%, #fff9f51a 54%, #fff9f500 100%;
970
+ --seed-gradient-shimmer-neutral: #fff0 0%, #ffffff1a 46%, #ffffff1a 54%, #fff0 100%;
971
+ --seed-shadow-s1: 0px 1px 4px 0px #00000080;
972
+ --seed-shadow-s2: 0px 2px 10px 0px #000000ad;
973
+ --seed-shadow-s3: 0px 4px 16px 0px #000c;
974
974
  }
975
975
 
976
976
  :root {
@@ -4931,6 +4931,41 @@ tbody tr:last-child .seed-data-table__cell {
4931
4931
  overflow: hidden;
4932
4932
  }
4933
4933
 
4934
+ .seed-data-table__entityActions {
4935
+ opacity: 0;
4936
+ flex-shrink: 0;
4937
+ align-items: center;
4938
+ gap: 6px;
4939
+ margin-inline-start: auto;
4940
+ display: flex;
4941
+ }
4942
+
4943
+ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-within {
4944
+ opacity: 1;
4945
+ }
4946
+
4947
+ .seed-data-table__entityAction {
4948
+ width: 20px;
4949
+ height: 20px;
4950
+ color: color-mix(in srgb, var(--seed-color-fg-neutral) 55%, transparent);
4951
+ cursor: pointer;
4952
+ background: none;
4953
+ border: none;
4954
+ border-radius: 6px;
4955
+ flex-shrink: 0;
4956
+ justify-content: center;
4957
+ align-items: center;
4958
+ margin: 0;
4959
+ padding: 0;
4960
+ font-family: inherit;
4961
+ display: inline-flex;
4962
+ }
4963
+
4964
+ .seed-data-table__entityAction:hover {
4965
+ background: color-mix(in srgb, var(--seed-color-fg-neutral) 4%, transparent);
4966
+ color: var(--seed-color-fg-neutral);
4967
+ }
4968
+
4934
4969
  .seed-data-table__link {
4935
4970
  color: var(--seed-color-fg-neutral);
4936
4971
  text-overflow: ellipsis;
@@ -9988,6 +10023,426 @@ tbody tr:last-child .seed-data-table__cell {
9988
10023
  --seed-prefix-icon-size: 18px;
9989
10024
  }
9990
10025
 
10026
+ .seed-record-preview__root {
10027
+ background: var(--seed-color-bg-layer-default);
10028
+ flex-direction: column;
10029
+ height: 100%;
10030
+ font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
10031
+ display: flex;
10032
+ overflow: hidden;
10033
+ }
10034
+
10035
+ .seed-record-preview__toolbar {
10036
+ border-bottom: 1px solid var(--seed-color-stroke-neutral-muted);
10037
+ flex-shrink: 0;
10038
+ align-items: center;
10039
+ height: 49px;
10040
+ padding: 8px 10px;
10041
+ display: flex;
10042
+ }
10043
+
10044
+ .seed-record-preview__toolbarSpacer {
10045
+ flex: 1;
10046
+ }
10047
+
10048
+ .seed-record-preview__pager {
10049
+ align-items: center;
10050
+ gap: 6px;
10051
+ margin-inline-start: 12px;
10052
+ display: flex;
10053
+ }
10054
+
10055
+ .seed-record-preview__counter {
10056
+ color: var(--seed-color-fg-neutral-subtle);
10057
+ white-space: nowrap;
10058
+ text-overflow: ellipsis;
10059
+ margin-inline-start: 12px;
10060
+ font-size: 12px;
10061
+ font-weight: 500;
10062
+ overflow: hidden;
10063
+ }
10064
+
10065
+ .seed-record-preview__iconbtn {
10066
+ width: 28px;
10067
+ height: 28px;
10068
+ color: var(--seed-color-fg-neutral-subtle);
10069
+ cursor: pointer;
10070
+ background: none;
10071
+ border: none;
10072
+ border-radius: 6px;
10073
+ flex-shrink: 0;
10074
+ justify-content: center;
10075
+ align-items: center;
10076
+ padding: 0;
10077
+ font-family: inherit;
10078
+ transition: background-color .12s;
10079
+ display: inline-flex;
10080
+ }
10081
+
10082
+ .seed-record-preview__iconbtn:hover {
10083
+ background: var(--seed-color-bg-layer-fill);
10084
+ color: var(--seed-color-fg-neutral);
10085
+ }
10086
+
10087
+ .seed-record-preview__navbtn {
10088
+ background: var(--seed-color-bg-layer-default);
10089
+ width: 28px;
10090
+ height: 28px;
10091
+ color: var(--seed-color-fg-neutral);
10092
+ cursor: pointer;
10093
+ border: none;
10094
+ border-radius: 6px;
10095
+ flex-shrink: 0;
10096
+ justify-content: center;
10097
+ align-items: center;
10098
+ padding: 0;
10099
+ font-family: inherit;
10100
+ display: inline-flex;
10101
+ box-shadow: inset 0 0 0 1px #0000000f, 0 0 2px #1c28402e, 0 1px 3px #0000000a;
10102
+ }
10103
+
10104
+ .seed-record-preview__navbtn:hover:not(:disabled) {
10105
+ background: var(--seed-color-bg-layer-fill);
10106
+ }
10107
+
10108
+ .seed-record-preview__navbtn:disabled {
10109
+ opacity: .4;
10110
+ cursor: not-allowed;
10111
+ }
10112
+
10113
+ .seed-record-preview__header {
10114
+ flex-shrink: 0;
10115
+ align-items: center;
10116
+ gap: 8px;
10117
+ height: 52px;
10118
+ padding: 0 12px;
10119
+ display: flex;
10120
+ }
10121
+
10122
+ .seed-record-preview__fav {
10123
+ object-fit: cover;
10124
+ background: var(--seed-color-bg-layer-fill);
10125
+ border-radius: 4px;
10126
+ flex-shrink: 0;
10127
+ width: 22px;
10128
+ height: 22px;
10129
+ }
10130
+
10131
+ .seed-record-preview__title {
10132
+ letter-spacing: -.2px;
10133
+ min-width: 0;
10134
+ color: var(--seed-color-fg-neutral);
10135
+ text-overflow: ellipsis;
10136
+ white-space: nowrap;
10137
+ flex: 1;
10138
+ font-size: 16px;
10139
+ font-weight: 600;
10140
+ overflow: hidden;
10141
+ }
10142
+
10143
+ .seed-record-preview__body {
10144
+ flex: 1;
10145
+ min-height: 0;
10146
+ padding: 8px 12px;
10147
+ overflow-y: auto;
10148
+ }
10149
+
10150
+ .seed-record-preview__section {
10151
+ padding: 8px 4px 0;
10152
+ }
10153
+
10154
+ .seed-record-preview__sectionHead {
10155
+ justify-content: space-between;
10156
+ align-items: center;
10157
+ gap: 8px;
10158
+ height: 20px;
10159
+ margin-bottom: 8px;
10160
+ display: flex;
10161
+ }
10162
+
10163
+ .seed-record-preview__sectionLabel {
10164
+ color: var(--seed-color-fg-neutral-subtle);
10165
+ font-size: 14px;
10166
+ font-weight: 500;
10167
+ }
10168
+
10169
+ .seed-record-preview__sectionAction {
10170
+ color: color-mix(in srgb, var(--seed-color-fg-neutral) 55%, transparent);
10171
+ cursor: pointer;
10172
+ background: none;
10173
+ border: none;
10174
+ padding: 0;
10175
+ font-family: inherit;
10176
+ font-size: 10px;
10177
+ font-weight: 400;
10178
+ }
10179
+
10180
+ .seed-record-preview__sectionAction:hover {
10181
+ color: var(--seed-color-fg-neutral);
10182
+ }
10183
+
10184
+ .seed-record-preview__highlights {
10185
+ grid-template-columns: 1fr 1fr;
10186
+ gap: 8px;
10187
+ display: grid;
10188
+ }
10189
+
10190
+ .seed-record-preview__highlight {
10191
+ flex-direction: column;
10192
+ gap: 6px;
10193
+ min-width: 0;
10194
+ display: flex;
10195
+ }
10196
+
10197
+ .seed-record-preview__highlightLabel {
10198
+ color: var(--seed-color-fg-neutral-subtle);
10199
+ align-items: center;
10200
+ gap: 4px;
10201
+ font-size: 12px;
10202
+ font-weight: 500;
10203
+ display: flex;
10204
+ }
10205
+
10206
+ .seed-record-preview__highlightLabel span {
10207
+ text-overflow: ellipsis;
10208
+ white-space: nowrap;
10209
+ overflow: hidden;
10210
+ }
10211
+
10212
+ .seed-record-preview__highlightLabel svg {
10213
+ color: var(--seed-color-fg-neutral-subtle);
10214
+ flex-shrink: 0;
10215
+ }
10216
+
10217
+ .seed-record-preview__highlightValue {
10218
+ color: var(--seed-color-fg-neutral);
10219
+ text-overflow: ellipsis;
10220
+ font-size: 14px;
10221
+ font-weight: 500;
10222
+ overflow: hidden;
10223
+ }
10224
+
10225
+ .seed-record-preview__activity {
10226
+ font-size: 14px;
10227
+ }
10228
+
10229
+ .seed-record-preview__sections {
10230
+ flex-direction: column;
10231
+ padding-top: 8px;
10232
+ display: flex;
10233
+ }
10234
+
10235
+ .seed-record-preview__sectionTrigger {
10236
+ text-align: start;
10237
+ cursor: pointer;
10238
+ background: none;
10239
+ border: none;
10240
+ align-items: center;
10241
+ gap: 4px;
10242
+ width: 100%;
10243
+ height: 20px;
10244
+ padding: 0 8px 0 12px;
10245
+ font-family: inherit;
10246
+ display: flex;
10247
+ }
10248
+
10249
+ .seed-record-preview__sectionTrigger[data-inert] {
10250
+ cursor: default;
10251
+ }
10252
+
10253
+ .seed-record-preview__sectionRowLabel {
10254
+ color: var(--seed-color-fg-neutral);
10255
+ font-size: 14px;
10256
+ font-weight: 500;
10257
+ }
10258
+
10259
+ .seed-record-preview__sectionRowCount {
10260
+ color: var(--seed-color-fg-neutral-subtle);
10261
+ font-size: 14px;
10262
+ }
10263
+
10264
+ .seed-record-preview__sectionChevron {
10265
+ color: var(--seed-color-fg-neutral-subtle);
10266
+ flex-shrink: 0;
10267
+ margin-inline-start: auto;
10268
+ transition: transform .15s;
10269
+ }
10270
+
10271
+ .seed-record-preview__sectionChevron[data-open] {
10272
+ transform: rotate(180deg);
10273
+ }
10274
+
10275
+ .seed-record-preview__sectionContent {
10276
+ padding: 8px 8px 8px 12px;
10277
+ }
10278
+
10279
+ .seed-record-preview__footer {
10280
+ border-top: 1px solid var(--seed-color-stroke-neutral-muted);
10281
+ flex-shrink: 0;
10282
+ align-items: center;
10283
+ gap: 8px;
10284
+ padding: 8px 12px;
10285
+ display: flex;
10286
+ }
10287
+
10288
+ .seed-resizable-panel__root {
10289
+ height: 100%;
10290
+ display: flex;
10291
+ position: relative;
10292
+ }
10293
+
10294
+ .seed-resizable-panel__spacer {
10295
+ flex: none;
10296
+ height: 100%;
10297
+ transition: width .14s;
10298
+ }
10299
+
10300
+ .seed-resizable-panel__panel {
10301
+ box-sizing: border-box;
10302
+ background: var(--seed-color-bg-layer-default);
10303
+ position: absolute;
10304
+ top: 0;
10305
+ bottom: 0;
10306
+ overflow: hidden;
10307
+ }
10308
+
10309
+ .seed-resizable-panel__panel[data-side="left"] {
10310
+ left: 0;
10311
+ }
10312
+
10313
+ .seed-resizable-panel__panel[data-side="right"] {
10314
+ right: 0;
10315
+ }
10316
+
10317
+ .seed-resizable-panel__panel[data-floating="false"] {
10318
+ box-shadow: none;
10319
+ border-radius: 0;
10320
+ }
10321
+
10322
+ .seed-resizable-panel__panel[data-floating="false"][data-side="left"] {
10323
+ border-inline-end: 1px solid var(--seed-color-stroke-neutral-muted);
10324
+ }
10325
+
10326
+ .seed-resizable-panel__panel[data-floating="false"][data-side="right"] {
10327
+ border-inline-start: 1px solid var(--seed-color-stroke-neutral-muted);
10328
+ }
10329
+
10330
+ .seed-resizable-panel__panel[data-floating="true"] {
10331
+ border-inline: none;
10332
+ border-radius: 10px;
10333
+ transition: transform .14s, padding .14s;
10334
+ position: fixed;
10335
+ top: 8px;
10336
+ bottom: 8px;
10337
+ transform: none;
10338
+ box-shadow: inset 0 0 0 1px #0000, 0 0 0 1px #1c28400a, 0 4px 8px -4px #1c28401f, 0 4px 12px -2px #18294b29;
10339
+ }
10340
+
10341
+ .seed-resizable-panel__panel[data-floating="true"][data-side="left"] {
10342
+ padding: 8px 0 8px 8px;
10343
+ }
10344
+
10345
+ @starting-style {
10346
+ .seed-resizable-panel__panel[data-floating="true"][data-side="left"] {
10347
+ transform: translateX(calc(-100% - 8px));
10348
+ }
10349
+ }
10350
+
10351
+ .seed-resizable-panel__panel[data-floating="true"][data-side="right"] {
10352
+ padding: 8px 8px 8px 0;
10353
+ }
10354
+
10355
+ @starting-style {
10356
+ .seed-resizable-panel__panel[data-floating="true"][data-side="right"] {
10357
+ transform: translateX(calc(100% + 8px));
10358
+ }
10359
+ }
10360
+
10361
+ .seed-resizable-panel__inner {
10362
+ opacity: 1;
10363
+ height: 100%;
10364
+ }
10365
+
10366
+ [data-floating="true"] > .seed-resizable-panel__inner {
10367
+ transition: opacity .14s;
10368
+ }
10369
+
10370
+ @starting-style {
10371
+ [data-floating="true"] > .seed-resizable-panel__inner {
10372
+ opacity: 0;
10373
+ }
10374
+ }
10375
+
10376
+ .seed-resizable-panel__handle {
10377
+ z-index: 2;
10378
+ cursor: col-resize;
10379
+ touch-action: none;
10380
+ background: none;
10381
+ width: 10px;
10382
+ height: 100%;
10383
+ position: absolute;
10384
+ top: 0;
10385
+ }
10386
+
10387
+ .seed-resizable-panel__handle[data-side="left"] {
10388
+ right: 0;
10389
+ }
10390
+
10391
+ .seed-resizable-panel__handle[data-side="right"] {
10392
+ left: 0;
10393
+ }
10394
+
10395
+ .seed-resizable-panel__handle:before {
10396
+ content: "";
10397
+ background: var(--seed-color-stroke-neutral-muted);
10398
+ width: 1px;
10399
+ height: 100%;
10400
+ transition: background-color .16s, height .16s;
10401
+ position: absolute;
10402
+ top: 0;
10403
+ }
10404
+
10405
+ .seed-resizable-panel__handle[data-side="left"]:before {
10406
+ right: 0;
10407
+ }
10408
+
10409
+ .seed-resizable-panel__handle[data-side="right"]:before {
10410
+ left: 0;
10411
+ }
10412
+
10413
+ .seed-resizable-panel__handle:hover:before, .seed-resizable-panel__handle[data-dragging]:before {
10414
+ background: #0298d9;
10415
+ width: 2px;
10416
+ }
10417
+
10418
+ .seed-resizable-panel__handle.crisp-seed-resizable-panel-handle--column {
10419
+ z-index: 1;
10420
+ cursor: col-resize;
10421
+ justify-content: center;
10422
+ align-items: center;
10423
+ width: 7px;
10424
+ display: flex;
10425
+ left: -3px;
10426
+ right: -3px;
10427
+ }
10428
+
10429
+ .seed-resizable-panel__handle.crisp-seed-resizable-panel-handle--column:before {
10430
+ content: none;
10431
+ }
10432
+
10433
+ .seed-resizable-panel__handleInner {
10434
+ opacity: 0;
10435
+ background: #0298d9;
10436
+ border-radius: 3px;
10437
+ width: 3px;
10438
+ height: 100%;
10439
+ transition: opacity .1s .1s;
10440
+ }
10441
+
10442
+ .seed-resizable-panel__handle:hover .seed-resizable-panel__handleInner, .seed-resizable-panel__handle[data-dragging] .seed-resizable-panel__handleInner {
10443
+ opacity: 1;
10444
+ }
10445
+
9991
10446
  .seed-scroll-fog {
9992
10447
  width: 100%;
9993
10448
  height: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crispy-seed/data-table",
3
- "version": "0.5.0",
4
- "description": "Self-contained, publishable build of seed-design's Attio-measured DataTable — one install, one CSS import.",
3
+ "version": "0.7.0",
4
+ "description": "Self-contained, publishable build of seed-design's Attio-measured DataTable, ResizablePanel and RecordPreview — one install, one CSS import.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -21,6 +21,10 @@
21
21
  "./styles.css": "./dist/styles.css",
22
22
  "./data-table-recipe.css": "./dist/data-table-recipe.css",
23
23
  "./data-table-recipe.layered.css": "./dist/data-table-recipe.layered.css",
24
+ "./resizable-panel-recipe.css": "./dist/resizable-panel-recipe.css",
25
+ "./resizable-panel-recipe.layered.css": "./dist/resizable-panel-recipe.layered.css",
26
+ "./record-preview-recipe.css": "./dist/record-preview-recipe.css",
27
+ "./record-preview-recipe.layered.css": "./dist/record-preview-recipe.layered.css",
24
28
  "./package.json": "./package.json"
25
29
  },
26
30
  "main": "./dist/index.cjs",
@@ -59,6 +63,7 @@
59
63
  "@seed-design/react-image": "^1.1.0",
60
64
  "@seed-design/react-menu": "^2.0.2",
61
65
  "@seed-design/react-primitive": "^2.0.1",
66
+ "@seed-design/react-resizable-panel": "^0.1.0",
62
67
  "@seed-design/react-scale-feedback": "^1.0.0",
63
68
  "@seed-design/react-segmented-control": "^2.0.2",
64
69
  "@seed-design/react-select": "^1.0.1",