uibee 3.1.5 → 3.1.6

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.
@@ -2735,7 +2735,7 @@ const VARIANT_THEAD = {
2735
2735
  };
2736
2736
  const VARIANT_HEAD_BG = {
2737
2737
  original: "bg-login-700",
2738
- modern: "bg-login-900/95"
2738
+ modern: ""
2739
2739
  };
2740
2740
  const VARIANT_HEAD_BORDER = {
2741
2741
  original: "border-b border-login-600",
package/dist/style.css CHANGED
@@ -459,72 +459,6 @@
459
459
  .col-start-3 {
460
460
  grid-column-start: 3;
461
461
  }
462
- .container {
463
- width: 100%;
464
- @media (width >= 100px) {
465
- max-width: 100px;
466
- }
467
- @media (width >= 200px) {
468
- max-width: 200px;
469
- }
470
- @media (width >= 300px) {
471
- max-width: 300px;
472
- }
473
- @media (width >= 350px) {
474
- max-width: 350px;
475
- }
476
- @media (width >= 400px) {
477
- max-width: 400px;
478
- }
479
- @media (width >= 432px) {
480
- max-width: 432px;
481
- }
482
- @media (width >= 450px) {
483
- max-width: 450px;
484
- }
485
- @media (width >= 500px) {
486
- max-width: 500px;
487
- }
488
- @media (width >= 600px) {
489
- max-width: 600px;
490
- }
491
- @media (width >= 700px) {
492
- max-width: 700px;
493
- }
494
- @media (width >= 800px) {
495
- max-width: 800px;
496
- }
497
- @media (width >= 900px) {
498
- max-width: 900px;
499
- }
500
- @media (width >= 1000px) {
501
- max-width: 1000px;
502
- }
503
- @media (width >= 1200px) {
504
- max-width: 1200px;
505
- }
506
- @media (width >= 30rem) {
507
- max-width: 30rem;
508
- }
509
- @media (width >= 40rem) {
510
- max-width: 40rem;
511
- }
512
- @media (width >= 48rem) {
513
- max-width: 48rem;
514
- }
515
- @media (width >= 64rem) {
516
- max-width: 64rem;
517
- }
518
- @media (width >= 80rem) {
519
- max-width: 80rem;
520
- }
521
- @media (width >= 100rem) {
522
- max-width: 100rem;
523
- }
524
- @media (width >= 120rem) {
525
- max-width: 120rem;
526
- }
527
- }
528
462
  .m-auto {
529
463
  margin: auto;
530
464
  }
@@ -2365,12 +2299,6 @@
2365
2299
  background-color: color-mix(in oklab, var(--color-login-900) 20%, transparent);
2366
2300
  }
2367
2301
  }
2368
- .bg-login-900\/95 {
2369
- background-color: color-mix(in srgb, #121212 95%, transparent);
2370
- @supports (color: color-mix(in lab, red, red)) {
2371
- background-color: color-mix(in oklab, var(--color-login-900) 95%, transparent);
2372
- }
2373
- }
2374
2302
  .bg-login-950 {
2375
2303
  background-color: var(--color-login-950);
2376
2304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -46,7 +46,6 @@ function Cell<T extends Record<string, unknown>>({
46
46
  variant: TableVariant
47
47
  }) {
48
48
  const value = row[col.key]
49
- // Truncate: opt-in, only applied when col.truncate === true (needs an explicit col.width to bite).
50
49
  const shouldTruncate = col.truncate === true
51
50
  const align = col.align ?? 'left'
52
51
 
@@ -57,7 +56,6 @@ function Cell<T extends Record<string, unknown>>({
57
56
  let content: React.ReactNode
58
57
 
59
58
  if (col.render) {
60
- // Custom renderer: caller is responsible for alignment
61
59
  content = col.render(value, row)
62
60
  } else if (col.highlight) {
63
61
  const colorName = col.highlight[String(value)] ?? col.highlight['default']
@@ -124,8 +122,6 @@ export default function Body<T extends Record<string, unknown>>({
124
122
 
125
123
  useEffect(() => {
126
124
  if (openMenuId === null) return
127
- // The menu is anchored to viewport coords, so close it on any scroll (the scroll
128
- // container is now an ancestor of the table). Capture phase since scroll doesn't bubble.
129
125
  document.addEventListener('scroll', closeMenu, true)
130
126
  return () => document.removeEventListener('scroll', closeMenu, true)
131
127
  }, [closeMenu, openMenuId])
@@ -34,11 +34,9 @@ export const VARIANT_THEAD: Record<TableVariant, string> = {
34
34
 
35
35
  export const VARIANT_HEAD_BG: Record<TableVariant, string> = {
36
36
  original: 'bg-login-700',
37
- modern: 'bg-login-900/95',
37
+ modern: '',
38
38
  }
39
39
 
40
- // Bottom border under the header cells (row dividers live on the cells, not the <tr>,
41
- // because native table rows don't render borders in border-separate mode).
42
40
  export const VARIANT_HEAD_BORDER: Record<TableVariant, string> = {
43
41
  original: 'border-b border-login-600',
44
42
  modern: 'border-b border-login-500/40',