@mechane-ai/elements 0.24.1 → 0.26.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.
@@ -156,7 +156,7 @@ var pe = E({}), me = 76, j = d.compactTable.slice(7), he = /* @__PURE__ */ new M
156
156
  viewport: {
157
157
  k7Eaqz: "xeuugli",
158
158
  kVQacm: "xysyzu8",
159
- kZeWKH: "xish69e",
159
+ kacamN: "xy5w88m",
160
160
  k3XXqK: "x1t137rt",
161
161
  kPJHz1: "x13qnu6",
162
162
  k7shQP: "x9v5kkp",
@@ -522,6 +522,7 @@ function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
522
522
  ...p.props(N.frame, _e[X]),
523
523
  children: [/* @__PURE__ */ x("div", {
524
524
  ref: P.ref,
525
+ "data-table-viewport": !0,
525
526
  role: "region",
526
527
  "aria-label": r,
527
528
  tabIndex: P.tabIndex,
@@ -778,7 +779,7 @@ function W({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, en
778
779
  tabIndex: o.tabIndex,
779
780
  ...{
780
781
  0: { className: "xeuugli" },
781
- 1: { className: "xeuugli x98rzlu x2lwn1j x1odjw0f x1e4zzel x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
782
+ 1: { className: "xeuugli x98rzlu x2lwn1j x1odjw0f xy5w88m x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal" }
782
783
  }[!!r | 0],
783
784
  children: [
784
785
  i === "start" && l,
package/dist/elements.css CHANGED
@@ -2650,10 +2650,18 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2650
2650
  overflow-y: auto;
2651
2651
  }
2652
2652
 
2653
+ .xy5w88m {
2654
+ overscroll-behavior-y: auto;
2655
+ }
2656
+
2653
2657
  .x1e4zzel {
2654
2658
  overscroll-behavior-y: contain;
2655
2659
  }
2656
2660
 
2661
+ .x18d9i69 {
2662
+ padding-bottom: 0;
2663
+ }
2664
+
2657
2665
  .x1a148e8 {
2658
2666
  padding-bottom: env(safe-area-inset-bottom, 0px);
2659
2667
  }
package/dist/layout.js CHANGED
@@ -106,7 +106,7 @@ function te({ children: e, label: t = "Main" }) {
106
106
  children: e
107
107
  });
108
108
  }
109
- function I({ children: e, label: t }) {
109
+ function ne({ children: e, label: t }) {
110
110
  let n = _(M), r = n !== null && !n.isExpanded, i = y();
111
111
  return /* @__PURE__ */ w("section", {
112
112
  "aria-labelledby": i,
@@ -121,7 +121,7 @@ function I({ children: e, label: t }) {
121
121
  }), e]
122
122
  });
123
123
  }
124
- function L({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
124
+ function re({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
125
125
  let c = _(M), l = y(), d = c !== null && !c.isExpanded;
126
126
  return /* @__PURE__ */ C("div", {
127
127
  ...{
@@ -159,7 +159,7 @@ function L({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
159
159
  })
160
160
  });
161
161
  }
162
- function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
162
+ function I({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
163
163
  let s = _(M), c = y(), l = s !== null && !s.isExpanded, u = {
164
164
  0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
165
165
  2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
@@ -195,7 +195,7 @@ function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
195
195
  })]
196
196
  });
197
197
  }
198
- function z({ children: e, shouldGrow: t = !1 }) {
198
+ function L({ children: e, shouldGrow: t = !1 }) {
199
199
  let n = _(M), r = n !== null && !n.isExpanded;
200
200
  return /* @__PURE__ */ C("span", {
201
201
  ...{
@@ -207,14 +207,14 @@ function z({ children: e, shouldGrow: t = !1 }) {
207
207
  children: e
208
208
  });
209
209
  }
210
- function B({ children: e, layout: t = "inline" }) {
210
+ function R({ children: e, layout: t = "inline" }) {
211
211
  let n = _(M), r = n !== null && !n.isExpanded;
212
212
  return /* @__PURE__ */ C("div", {
213
213
  ...m.props(N.footer, r && N.collapsedFooter, P[t]),
214
214
  children: e
215
215
  });
216
216
  }
217
- function V() {
217
+ function z() {
218
218
  let t = _(M);
219
219
  return t === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
220
220
  className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x78zum5 x1ykma7f",
@@ -247,7 +247,7 @@ function V() {
247
247
  })] });
248
248
  }
249
249
  // packages/layout/src/navigation-rail.tsx
250
- var H = g("rail"), U = {
250
+ var B = g("rail"), V = {
251
251
  selected: {
252
252
  kHjaVl: "x1yk04ar",
253
253
  $$css: !0
@@ -277,8 +277,8 @@ var H = g("rail"), U = {
277
277
  $$css: !0
278
278
  }
279
279
  };
280
- function W({ label: e, links: t, action: o }) {
281
- let s = _(H) === "drawer", c = _(M);
280
+ function H({ label: e, links: t, action: o }) {
281
+ let s = _(B) === "drawer", c = _(M);
282
282
  function u(e, t) {
283
283
  e?.(t);
284
284
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
@@ -293,7 +293,7 @@ function W({ label: e, links: t, action: o }) {
293
293
  "aria-label": e,
294
294
  className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
295
295
  children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
296
- ...p(m.props(i.base, i.button, U.mobileLink, U.rounded, U.selected), r),
296
+ ...p(m.props(i.base, i.button, V.mobileLink, V.rounded, V.selected), r),
297
297
  "aria-current": n ? "location" : void 0,
298
298
  onClick: (e) => u(r.onClick, e),
299
299
  children: [/* @__PURE__ */ C("span", {
@@ -354,12 +354,12 @@ function W({ label: e, links: t, action: o }) {
354
354
  }) });
355
355
  }
356
356
  // packages/layout/src/app-shell.tsx
357
- var G = { drawer: {
357
+ var U = { drawer: {
358
358
  kzqmXN: "x68ju84",
359
359
  ks0D6T: "x1recik0",
360
360
  $$css: !0
361
361
  } };
362
- function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, children: o, mainId: s = "main", shouldFocus: c = !1 }) {
362
+ function W({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, children: o, mainId: s = "main", shouldFocus: c = !1 }) {
363
363
  let l = t != null, u = n != null, [d, f] = x(!0), [p, m] = x(!1), h = c || l && !d, [g] = x(() => e.createHandle()), _ = y(), T = b(null), E = b(null), D = b(null), O = b(!1);
364
364
  return v(() => {
365
365
  let e = globalThis.matchMedia(j.sidebarDesktopQuery);
@@ -432,7 +432,7 @@ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, ch
432
432
  onOpenChange: m,
433
433
  children: /* @__PURE__ */ w(e.Portal, { children: [/* @__PURE__ */ C(e.Backdrop, {}), /* @__PURE__ */ C(e.Viewport, { children: /* @__PURE__ */ w(e.Popup, {
434
434
  ref: D,
435
- xstyle: G.drawer,
435
+ xstyle: U.drawer,
436
436
  finalFocus: () => {
437
437
  if (O.current) {
438
438
  O.current = !1;
@@ -450,11 +450,11 @@ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, ch
450
450
  children: "Navigation"
451
451
  }), /* @__PURE__ */ C(F, {
452
452
  header: r,
453
- navigationHeader: l && /* @__PURE__ */ C(H.Provider, {
453
+ navigationHeader: l && /* @__PURE__ */ C(B.Provider, {
454
454
  value: "drawer",
455
455
  children: t
456
456
  }),
457
- footer: /* @__PURE__ */ w(S, { children: [a, l && u && /* @__PURE__ */ C(H.Provider, {
457
+ footer: /* @__PURE__ */ w(S, { children: [a, l && u && /* @__PURE__ */ C(B.Provider, {
458
458
  value: "drawer",
459
459
  children: /* @__PURE__ */ C("div", {
460
460
  className: "x2lah0s x1a148e8",
@@ -472,7 +472,7 @@ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, ch
472
472
  });
473
473
  }
474
474
  // packages/layout/src/navigation-rail-menu.tsx
475
- var q = {
475
+ var G = {
476
476
  rail: {
477
477
  side: "right",
478
478
  align: "end"
@@ -482,8 +482,8 @@ var q = {
482
482
  align: "start"
483
483
  }
484
484
  };
485
- function J({ label: e, icon: r, children: i }) {
486
- let a = _(H), [o, s] = x(!1);
485
+ function K({ label: e, icon: r, children: i }) {
486
+ let a = _(B), [o, s] = x(!1);
487
487
  return v(() => {
488
488
  let e = globalThis.matchMedia(j.sidebarDesktopQuery);
489
489
  function t() {
@@ -507,7 +507,7 @@ function J({ label: e, icon: r, children: i }) {
507
507
  children: /* @__PURE__ */ C(n.Popup, { children: e })
508
508
  }) })]
509
509
  }) }), /* @__PURE__ */ C(t.Portal, { children: /* @__PURE__ */ C(t.Positioner, {
510
- ...q[a],
510
+ ...G[a],
511
511
  sideOffset: 4,
512
512
  collisionPadding: 8,
513
513
  children: /* @__PURE__ */ C(t.Popup, {
@@ -519,14 +519,17 @@ function J({ label: e, icon: r, children: i }) {
519
519
  });
520
520
  }
521
521
  // packages/layout/src/detail-page.tsx
522
- function Y({ children: e }) {
522
+ function q({ children: e, isWide: t = !1 }) {
523
523
  return /* @__PURE__ */ C("div", {
524
- className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y",
524
+ ...{
525
+ 0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
526
+ 1: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
527
+ }[!!t | 0],
525
528
  children: e
526
529
  });
527
530
  }
528
531
  // packages/layout/src/focus-page.tsx
529
- function X({ children: e }) {
532
+ function J({ children: e }) {
530
533
  return /* @__PURE__ */ C("main", {
531
534
  id: "main",
532
535
  tabIndex: -1,
@@ -538,7 +541,7 @@ function X({ children: e }) {
538
541
  });
539
542
  }
540
543
  // packages/layout/src/workbench.tsx
541
- function Z({ header: e, children: t, inspector: n }) {
544
+ function Y({ header: e, children: t, inspector: n }) {
542
545
  return /* @__PURE__ */ w("div", {
543
546
  className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
544
547
  children: [e != null && /* @__PURE__ */ C("div", {
@@ -560,7 +563,7 @@ function Z({ header: e, children: t, inspector: n }) {
560
563
  })]
561
564
  });
562
565
  }
563
- function ne({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
566
+ function X({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
564
567
  let i = d();
565
568
  return /* @__PURE__ */ C("div", {
566
569
  ref: i.ref,
@@ -575,20 +578,20 @@ function ne({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
575
578
  children: t
576
579
  });
577
580
  }
578
- function re({ children: e }) {
581
+ function ie({ children: e }) {
579
582
  return /* @__PURE__ */ C("div", {
580
583
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
581
584
  children: e
582
585
  });
583
586
  }
584
587
  // packages/layout/src/view-stack.tsx
585
- function ie({ children: e }) {
588
+ function ae({ children: e }) {
586
589
  return /* @__PURE__ */ C("div", {
587
590
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
588
591
  children: e
589
592
  });
590
593
  }
591
- function ae({ isActive: e, children: t }) {
594
+ function oe({ isActive: e, children: t }) {
592
595
  return /* @__PURE__ */ C("section", {
593
596
  "aria-hidden": !e,
594
597
  inert: !e,
@@ -599,15 +602,15 @@ function ae({ isActive: e, children: t }) {
599
602
  children: t
600
603
  });
601
604
  }
602
- var oe = {
603
- Root: ie,
604
- Panel: ae
605
- }, se = { action: {
605
+ var se = {
606
+ Root: ae,
607
+ Panel: oe
608
+ }, ce = { action: {
606
609
  k7Eaqz: "xeuugli",
607
610
  ks0D6T: "x193iq5w",
608
611
  $$css: !0
609
612
  } };
610
- function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
613
+ function Z({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
611
614
  let o = h.toArray(e).length > 0, s = h.toArray(t).length > 0, c = h.toArray(i).length > 0, l = h.toArray(a).length > 0;
612
615
  return h.toArray([
613
616
  e,
@@ -620,12 +623,12 @@ function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
620
623
  l ? /* @__PURE__ */ C("div", {
621
624
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
622
625
  children: a
623
- }) : r && /* @__PURE__ */ C(V, {}),
626
+ }) : r && /* @__PURE__ */ C(z, {}),
624
627
  o && /* @__PURE__ */ C(n ? "nav" : "h1", {
625
628
  tabIndex: n ? void 0 : -1,
626
629
  "aria-label": n ? "Breadcrumb" : void 0,
627
630
  className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xeuugli xs83m0k x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
628
- children: /* @__PURE__ */ C("span", {
631
+ children: /* @__PURE__ */ C(n ? "div" : "span", {
629
632
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
630
633
  children: e
631
634
  })
@@ -641,7 +644,7 @@ function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
641
644
  ]
642
645
  });
643
646
  }
644
- function ce({ icon: e, children: t, ...n }) {
647
+ function le({ icon: e, children: t, ...n }) {
645
648
  let i = e != null;
646
649
  return /* @__PURE__ */ C("div", {
647
650
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
@@ -649,7 +652,7 @@ function ce({ icon: e, children: t, ...n }) {
649
652
  ...n,
650
653
  variant: "ghost",
651
654
  "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
652
- xstyle: se.action,
655
+ xstyle: ce.action,
653
656
  children: [i && /* @__PURE__ */ C("span", {
654
657
  "aria-hidden": !0,
655
658
  className: "x3nfvp2 x2lah0s x6s0dn4",
@@ -665,28 +668,50 @@ function ce({ icon: e, children: t, ...n }) {
665
668
  });
666
669
  }
667
670
  // packages/layout/src/page-content.tsx
668
- function le({ children: e }) {
671
+ function Q({ children: e }) {
669
672
  return /* @__PURE__ */ C("div", {
670
673
  className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
671
674
  children: e
672
675
  });
673
676
  }
677
+ // packages/layout/src/report-content.tsx
678
+ function ue({ summary: e, breakdown: t }) {
679
+ return /* @__PURE__ */ w("div", {
680
+ "data-page-layout": "report",
681
+ className: "xeuugli",
682
+ children: [/* @__PURE__ */ C(Q, { children: e }), t]
683
+ });
684
+ }
685
+ // packages/layout/src/collection-layout.tsx
686
+ function de({ header: e, children: t }) {
687
+ return /* @__PURE__ */ w("div", {
688
+ "data-page-layout": "collection",
689
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
690
+ children: [/* @__PURE__ */ C("div", {
691
+ className: "x2lah0s xeuugli",
692
+ children: e
693
+ }), /* @__PURE__ */ C("div", {
694
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
695
+ children: t
696
+ })]
697
+ });
698
+ }
674
699
  // packages/layout/src/report-section.tsx
675
- function ue({ summary: e, children: t }) {
700
+ function fe({ summary: e, children: t }) {
676
701
  return /* @__PURE__ */ w(c, {
677
702
  isCompact: !0,
678
703
  children: [e, t]
679
704
  });
680
705
  }
681
706
  // packages/layout/src/record-page.tsx
682
- function de({ children: e }) {
707
+ function pe({ children: e }) {
683
708
  return /* @__PURE__ */ C("div", {
684
709
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
685
710
  children: e
686
711
  });
687
712
  }
688
- function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
689
- return /* @__PURE__ */ C(Q, {
713
+ function $({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
714
+ return /* @__PURE__ */ C(Z, {
690
715
  showBreadcrumb: !0,
691
716
  showNavigation: i,
692
717
  actions: r,
@@ -709,19 +734,22 @@ function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation:
709
734
  })
710
735
  });
711
736
  }
712
- function pe({ children: e }) {
713
- return /* @__PURE__ */ C(Y, { children: /* @__PURE__ */ C("div", {
714
- className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
715
- children: e
716
- }) });
737
+ function me({ children: e, isWide: t = !1 }) {
738
+ return /* @__PURE__ */ C(q, {
739
+ isWide: t,
740
+ children: /* @__PURE__ */ C("div", {
741
+ className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
742
+ children: e
743
+ })
744
+ });
717
745
  }
718
- function $({ children: e }) {
746
+ function he({ children: e }) {
719
747
  return /* @__PURE__ */ C("div", {
720
748
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
721
749
  children: e
722
750
  });
723
751
  }
724
- function me({ title: e, description: t, icon: n, titleRef: r }) {
752
+ function ge({ title: e, description: t, icon: n, titleRef: r }) {
725
753
  return /* @__PURE__ */ w("header", {
726
754
  className: "xrvj5dj x1n8ia3y xeuugli",
727
755
  children: [/* @__PURE__ */ w("div", {
@@ -739,23 +767,23 @@ function me({ title: e, description: t, icon: n, titleRef: r }) {
739
767
  }), t != null && /* @__PURE__ */ C(o, { children: t })]
740
768
  });
741
769
  }
742
- function he({ children: e, label: t = "Properties" }) {
770
+ function _e({ children: e, label: t = "Properties" }) {
743
771
  return /* @__PURE__ */ C("aside", {
744
772
  "aria-label": t,
745
773
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
746
774
  children: e
747
775
  });
748
776
  }
749
- var ge = {
750
- Root: de,
751
- Toolbar: fe,
752
- Body: pe,
753
- Content: $,
754
- Header: me,
755
- Aside: he
777
+ var ve = {
778
+ Root: pe,
779
+ Toolbar: $,
780
+ Body: me,
781
+ Content: he,
782
+ Header: ge,
783
+ Aside: _e
756
784
  };
757
785
  // packages/layout/src/resizable.tsx
758
- function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
786
+ function ye({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
759
787
  return /* @__PURE__ */ C(O, {
760
788
  orientation: e,
761
789
  defaultLayout: t,
@@ -771,7 +799,7 @@ function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
771
799
  ...p({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
772
800
  });
773
801
  }
774
- function ve({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
802
+ function be({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
775
803
  return /* @__PURE__ */ C(k, {
776
804
  id: e,
777
805
  defaultSize: t === void 0 ? void 0 : `${t}%`,
@@ -782,15 +810,15 @@ function ve({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumS
782
810
  ...p({ className: "xeuugli x2lwn1j xysyzu8" }, o)
783
811
  });
784
812
  }
785
- function ye({ ref: e, ...t }) {
813
+ function xe({ ref: e, ...t }) {
786
814
  return /* @__PURE__ */ C(A, {
787
815
  elementRef: e,
788
816
  ...p({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
789
817
  });
790
818
  }
791
- var be = {
792
- Root: _e,
793
- Pane: ve,
794
- Handle: ye
819
+ var Se = {
820
+ Root: ye,
821
+ Pane: be,
822
+ Handle: xe
795
823
  };
796
- export { K as AppShell, Y as DetailPage, X as FocusPage, te as Navigation, L as NavigationItem, R as NavigationLink, W as NavigationRail, J as NavigationRailMenu, I as NavigationSection, le as PageContent, Q as PageToolbar, ge as RecordPage, ue as ReportSection, be as Resizable, B as SidebarFooter, z as SidebarLabel, ce as ToolbarAction, oe as ViewStack, Z as Workbench, re as WorkbenchFooter, ne as WorkbenchScroll };
824
+ export { W as AppShell, de as CollectionLayout, q as DetailPage, J as FocusPage, te as Navigation, re as NavigationItem, I as NavigationLink, H as NavigationRail, K as NavigationRailMenu, ne as NavigationSection, Q as PageContent, Z as PageToolbar, ve as RecordPage, ue as ReportContent, fe as ReportSection, Se as Resizable, R as SidebarFooter, L as SidebarLabel, le as ToolbarAction, se as ViewStack, Y as Workbench, ie as WorkbenchFooter, X as WorkbenchScroll };
@@ -2,31 +2,32 @@ import { n as e, t } from "./navigation-D2_sGy3C.js";
2
2
  import { t as n } from "./style-composition-uYlczSsB.js";
3
3
  import { mergeProps as r } from "@base-ui/react/merge-props";
4
4
  import "@stylexjs/stylex";
5
- import { jsx as i } from "react/jsx-runtime";
6
- import { Tabs as a } from "@base-ui/react/tabs";
5
+ import { useState as i } from "react";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import { Tabs as s } from "@base-ui/react/tabs";
7
8
  // packages/navigation/src/page-navigation.tsx
8
- function o({ items: e, isEmbedded: t = !1 }) {
9
- return /* @__PURE__ */ i("div", {
9
+ function c({ items: e, isEmbedded: t = !1 }) {
10
+ return /* @__PURE__ */ a("div", {
10
11
  "aria-hidden": !0,
11
12
  inert: !0,
12
13
  ...{
13
14
  0: { className: "x78zum5 xxhr3t xeuugli xw2csxc xso031l x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
14
15
  1: { className: "x78zum5 xxhr3t xeuugli xw2csxc x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal x1qhh985" }
15
16
  }[!!t | 0],
16
- children: e.map((e) => /* @__PURE__ */ i("span", {
17
+ children: e.map((e) => /* @__PURE__ */ a("span", {
17
18
  className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 x2lah0s xid9utz xn9t2bk x1doqdfy xkrqix3 xuxw1ft x153jb6y xp9636p x1s9zmfe x1kl8fbi x1s928wv x1j6awrg x1ccaobo x1xrz1ek x3cntg4 xyhc2n1 x13qnu6 x9v5kkp x19rmrnh x1bqaal",
18
19
  children: e.label
19
20
  }, e.id))
20
21
  });
21
22
  }
22
- function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections", isEmbedded: a = !1 }) {
23
- return /* @__PURE__ */ i("nav", {
23
+ function l({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections", isEmbedded: i = !1 }) {
24
+ return /* @__PURE__ */ a("nav", {
24
25
  "aria-label": r,
25
26
  ...{
26
27
  0: { className: "x78zum5 xxhr3t xeuugli xw2csxc xso031l x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
27
28
  1: { className: "x78zum5 xxhr3t xeuugli xw2csxc x1q0q8m5 x1qndepd x1hz01jw xtqrqnz xj57cvi x1778rvt xvmahel x13qnu6 x9v5kkp x19rmrnh x1bqaal x1qhh985" }
28
- }[!!a | 0],
29
- children: e.map((e) => /* @__PURE__ */ i("a", {
29
+ }[!!i | 0],
30
+ children: e.map((e) => /* @__PURE__ */ a("a", {
30
31
  href: e.href,
31
32
  "aria-current": e.id === t ? "page" : void 0,
32
33
  ...{
@@ -43,12 +44,12 @@ function s({ items: e, selectedId: t, onNavigate: n, label: r = "Page sections",
43
44
  });
44
45
  }
45
46
  // packages/navigation/src/skip-link.tsx
46
- function c(e) {
47
- return /* @__PURE__ */ i("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37 x1b4oyad x174j0rr x1mvvolr x9f619 xvv7f4i xj0a0fe x1ok0vyi xpvm0e4 xbixft x1hz01jw xk4h15q xtqrqnz x1778rvt xvmahel xujl8zx x1wfrlr2 x1tkds87 x1de710j x1gnsi0 x1cm8ssg" }, e) });
47
+ function u(e) {
48
+ return /* @__PURE__ */ a("a", { ...r({ className: "xixxii4 x1ridm32 x12hha37 x1b4oyad x174j0rr x1mvvolr x9f619 xvv7f4i xj0a0fe x1ok0vyi xpvm0e4 xbixft x1hz01jw xk4h15q xtqrqnz x1778rvt xvmahel xujl8zx x1wfrlr2 x1tkds87 x1de710j x1gnsi0 x1cm8ssg" }, e) });
48
49
  }
49
50
  // packages/navigation/src/tabs.tsx
50
- function l({ className: e, style: t, ...r }) {
51
- return /* @__PURE__ */ i(a.Root, {
51
+ function d({ className: e, style: t, ...r }) {
52
+ return /* @__PURE__ */ a(s.Root, {
52
53
  ...r,
53
54
  ...n({
54
55
  className: e,
@@ -57,8 +58,8 @@ function l({ className: e, style: t, ...r }) {
57
58
  })
58
59
  });
59
60
  }
60
- function u({ className: e, style: t, ...r }) {
61
- return /* @__PURE__ */ i(a.List, {
61
+ function f({ className: e, style: t, ...r }) {
62
+ return /* @__PURE__ */ a(s.List, {
62
63
  ...r,
63
64
  ...n({
64
65
  className: e,
@@ -67,8 +68,8 @@ function u({ className: e, style: t, ...r }) {
67
68
  })
68
69
  });
69
70
  }
70
- function d({ className: e, style: t, ...r }) {
71
- return /* @__PURE__ */ i(a.Tab, {
71
+ function p({ className: e, style: t, ...r }) {
72
+ return /* @__PURE__ */ a(s.Tab, {
72
73
  ...r,
73
74
  ...n({
74
75
  className: e,
@@ -77,8 +78,8 @@ function d({ className: e, style: t, ...r }) {
77
78
  })
78
79
  });
79
80
  }
80
- function f({ className: e, style: t, ...r }) {
81
- return /* @__PURE__ */ i(a.Panel, {
81
+ function m({ className: e, style: t, ...r }) {
82
+ return /* @__PURE__ */ a(s.Panel, {
82
83
  ...r,
83
84
  ...n({
84
85
  className: e,
@@ -87,10 +88,45 @@ function f({ className: e, style: t, ...r }) {
87
88
  })
88
89
  });
89
90
  }
90
- var p = {
91
- Root: l,
92
- List: u,
93
- Tab: d,
94
- Panel: f
91
+ var h = {
92
+ Root: d,
93
+ List: f,
94
+ Tab: p,
95
+ Panel: m
95
96
  };
96
- export { t as Breadcrumb, e as Kbd, s as PageNavigation, o as PageNavigationPlaceholder, c as SkipLink, p as Tabs };
97
+ // packages/navigation/src/content-tabs.tsx
98
+ function g(e) {
99
+ let [t, n] = i(e.items[0]?.id), r = e.navigation, s = r?.selectedId ?? t, c = e.items.find((e) => e.id === s) ?? e.items[0];
100
+ return r === void 0 ? /* @__PURE__ */ o(h.Root, {
101
+ value: c?.id,
102
+ onValueChange: (e) => n(String(e)),
103
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
104
+ children: [/* @__PURE__ */ a(h.List, {
105
+ "aria-label": e.label,
106
+ children: e.items.map((e) => /* @__PURE__ */ a(h.Tab, {
107
+ value: e.id,
108
+ children: e.label
109
+ }, e.id))
110
+ }), c !== void 0 && /* @__PURE__ */ a(h.Panel, {
111
+ value: c.id,
112
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j xexx8yu",
113
+ children: c.content
114
+ }, c.id)]
115
+ }) : /* @__PURE__ */ o("div", {
116
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
117
+ children: [/* @__PURE__ */ a(l, {
118
+ label: e.label,
119
+ items: e.items.map((e) => ({
120
+ id: e.id,
121
+ label: e.label,
122
+ href: r.href(e.id)
123
+ })),
124
+ selectedId: c?.id ?? "",
125
+ onNavigate: r.onNavigate
126
+ }), /* @__PURE__ */ a("div", {
127
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j xexx8yu",
128
+ children: c?.content
129
+ })]
130
+ });
131
+ }
132
+ export { t as Breadcrumb, g as ContentTabs, e as Kbd, l as PageNavigation, c as PageNavigationPlaceholder, u as SkipLink, h as Tabs };
@@ -4,7 +4,7 @@ import type { BarComposition, BarSeries } from './bar-data.ts';
4
4
  export type { BarSeries, BarBucket, BarComposition } from './bar-data.ts';
5
5
  export type BarChartProps = {
6
6
  readonly title: string;
7
- readonly description?: string | undefined;
7
+ readonly description?: ReactNode;
8
8
  readonly categories: ReadonlyArray<{
9
9
  readonly id: string;
10
10
  readonly label: string;
@@ -8,5 +8,5 @@ export type { SparklineProps } from './sparkline.tsx';
8
8
  export { Sparkline } from './sparkline.tsx';
9
9
  export type { TimeSeriesPoint, TimeSeries, TimeSeriesMarker } from './time-series-data.ts';
10
10
  export { timeSeriesLimits } from './time-series-data.ts';
11
- export type { TimeSeriesChartProps, AreaChartProps, SmallMultiplesProps } from './time-series.tsx';
12
- export { LineChart, AreaChart, SmallMultiples } from './time-series.tsx';
11
+ export type { TimeSeriesChartProps, TimeSeriesChartPlaceholderProps, AreaChartProps, SmallMultiplesProps, } from './time-series.tsx';
12
+ export { LineChart, AreaChart, SmallMultiples, TimeSeriesChartPlaceholder } from './time-series.tsx';
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import type { TimeSeries, TimeSeriesMarker } from './time-series-data.ts';
3
3
  export type TimeSeriesChartProps = {
4
4
  readonly title: string;
5
- readonly description?: string | undefined;
5
+ readonly description?: ReactNode;
6
6
  readonly series: ReadonlyArray<TimeSeries>;
7
7
  readonly timestampUnit: 'seconds' | 'milliseconds';
8
8
  readonly formatTimestamp: (timestamp: number) => string;
@@ -15,12 +15,15 @@ export type TimeSeriesChartProps = {
15
15
  export type AreaChartProps = TimeSeriesChartProps & {
16
16
  readonly isStacked?: boolean | undefined;
17
17
  };
18
+ export type TimeSeriesChartPlaceholderProps = Pick<TimeSeriesChartProps, 'title' | 'description' | 'height' | 'actions'> & {
19
+ readonly series: ReadonlyArray<Pick<TimeSeries, 'id' | 'label' | 'tone'>>;
20
+ };
18
21
  export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title' | 'description' | 'actions' | 'formatValue' | 'formatTick' | 'markers'> & {
19
22
  readonly charts: ReadonlyArray<{
20
23
  readonly id: string;
21
24
  readonly title: string;
22
25
  readonly series: ReadonlyArray<TimeSeries>;
23
- readonly description?: string | undefined;
26
+ readonly description?: ReactNode;
24
27
  readonly formatValue: (value: number) => string;
25
28
  readonly formatTick?: ((value: number) => string) | undefined;
26
29
  readonly markers?: ReadonlyArray<TimeSeriesMarker> | undefined;
@@ -28,4 +31,5 @@ export type SmallMultiplesProps = Omit<TimeSeriesChartProps, 'series' | 'title'
28
31
  };
29
32
  export declare function LineChart(props: TimeSeriesChartProps): ReactNode;
30
33
  export declare function AreaChart({ isStacked, ...props }: AreaChartProps): ReactNode;
34
+ export declare function TimeSeriesChartPlaceholder({ title, description, series, actions, height, }: TimeSeriesChartPlaceholderProps): ReactNode;
31
35
  export declare function SmallMultiples({ charts, ...props }: SmallMultiplesProps): ReactNode;
@@ -6,7 +6,7 @@ export type ChartSelection = {
6
6
  };
7
7
  export type ChartFrameProps = {
8
8
  readonly title: ReactNode;
9
- readonly description?: string | undefined;
9
+ readonly description?: ReactNode;
10
10
  readonly children: ReactNode;
11
11
  readonly actions?: ReactNode;
12
12
  readonly footer?: ReactNode;
@@ -5,6 +5,6 @@ export declare function hasUniqueIds(records: ReadonlyArray<{
5
5
  }>): boolean;
6
6
  export declare function ChartInputError({ title, description, message, }: {
7
7
  readonly title: string;
8
- readonly description?: string | undefined;
8
+ readonly description?: ReactNode;
9
9
  readonly message: string;
10
10
  }): ReactNode;