@mechane-ai/elements 0.30.0 → 0.31.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.
Files changed (36) hide show
  1. package/dist/ai.js +35 -35
  2. package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-Cfn6nwHi.js} +2 -2
  3. package/dist/{chart-frame-rL7_RAIc.js → chart-frame-C8JU2tlM.js} +9 -9
  4. package/dist/{chart-input-JIyGPusK.js → chart-input-D0hBpH1r.js} +2 -2
  5. package/dist/charts/cartesian.js +6 -6
  6. package/dist/charts/distribution.js +2 -2
  7. package/dist/charts/graph.js +2 -2
  8. package/dist/charts/hierarchy.js +3 -3
  9. package/dist/charts/matrix.js +2 -2
  10. package/dist/charts/timeline.js +3 -3
  11. package/dist/charts.js +1 -1
  12. package/dist/{code-block-BX51BVe1.js → code-block-DlzYynjv.js} +1 -1
  13. package/dist/collections.js +224 -211
  14. package/dist/content/code.js +1 -1
  15. package/dist/content/diff.js +2 -2
  16. package/dist/content/link.js +1 -1
  17. package/dist/content/markdown.js +2 -2
  18. package/dist/content/tree.js +2 -2
  19. package/dist/{content-link-5oRGjDHa.js → content-link-Dh1hon1m.js} +1 -1
  20. package/dist/content.js +1 -1
  21. package/dist/elements.css +33 -23
  22. package/dist/feedback.js +1 -1
  23. package/dist/forms/dates.js +1 -1
  24. package/dist/forms.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/layout.js +392 -318
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/foundations/src/control-styles.d.ts +3 -0
  29. package/dist/packages/foundations/src/header-styles.d.ts +47 -0
  30. package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
  31. package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-tdFSl55t.js} +2 -2
  32. package/dist/{src-BfPaaDxg.js → src-Bb2fDOeE.js} +105 -105
  33. package/dist/{src-DlNMCgVy.js → src-CVleZrPa.js} +17 -17
  34. package/dist/{src-eWcNz_oB.js → src-DvLYUTID.js} +14 -14
  35. package/dist/{src-E3Or8tkO.js → src-SE6QORrJ.js} +347 -290
  36. package/package.json +1 -1
package/dist/layout.js CHANGED
@@ -1,35 +1,47 @@
1
- import { a as e, i as t, t as n } from "./src-d7EAi61b.js";
2
- import { E as r, T as i, i as a, k as o, n as s, w as c } from "./src-E3Or8tkO.js";
3
- import { t as l } from "./style-composition-uYlczSsB.js";
4
- import { t as u } from "./use-scroll-tab-index-Dxpdh4W7.js";
5
- import { Button as d } from "@base-ui/react/button";
6
- import { mergeProps as f } from "@base-ui/react/merge-props";
7
- import * as p from "@stylexjs/stylex";
8
- import { Children as m, createContext as h, useContext as g, useEffect as _, useId as v, useRef as y, useState as b } from "react";
9
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
- import { ArrowLeft as w, PanelLeft as T, X as E } from "lucide-react";
11
- import { Group as D, Panel as O, Separator as k } from "react-resizable-panels";
1
+ import { A as e, D as t, E as n, T as r, i, n as a, u as o } from "./src-SE6QORrJ.js";
2
+ import { a as s, i as c, t as l } from "./src-d7EAi61b.js";
3
+ import { t as u } from "./style-composition-uYlczSsB.js";
4
+ import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
5
+ import { Button as f } from "@base-ui/react/button";
6
+ import { mergeProps as p } from "@base-ui/react/merge-props";
7
+ import * as m from "@stylexjs/stylex";
8
+ import { Children as h, createContext as g, useContext as _, useEffect as v, useId as y, useRef as b, useState as x } from "react";
9
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
10
+ import { ArrowLeft as T, PanelLeft as E, X as D } from "lucide-react";
11
+ import { Group as O, Panel as k, Separator as A } from "react-resizable-panels";
12
12
  // packages/layout/src/frame.stylex.ts
13
- var A = {
13
+ var j = {
14
14
  sidebarMobile: "@media (max-width:800px)",
15
15
  sidebarDesktopQuery: "(min-width:801px)",
16
16
  sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
17
17
  detailMobile: "@media (max-width:720px)",
18
18
  toolbarCompact: "@container toolbar (max-width:600px)",
19
19
  workbenchCompact: "@container workbench (max-width:860px)"
20
- }, j = h(null), M = {
20
+ }, M = g(null), N = {
21
+ header: {
22
+ kB7OPa: "x9f619",
23
+ kVAEAm: "x1n2onr6",
24
+ k1xSpc: "x78zum5",
25
+ kGNEyG: "x1qjc9v5",
26
+ kZKoxP: "xnyqvp6",
27
+ kmuXW: "x2lah0s",
28
+ k7Eaqz: "xeuugli",
29
+ $$css: !0
30
+ },
31
+ emptyHeader: {
32
+ k1xSpc: "x1s85apg x1rhi5y4",
33
+ $$css: !0
34
+ },
21
35
  footer: {
22
36
  kB7OPa: "x9f619",
37
+ kVAEAm: "x1n2onr6",
23
38
  k1xSpc: "x78zum5",
24
39
  kGNEyG: "x6s0dn4",
25
40
  kOIVth: "x1hnptsi",
26
41
  kAzted: "x1sy804",
27
42
  k7Eaqz: "xeuugli",
28
43
  kmuXW: "x2lah0s",
29
- kg3NbH: "x11sw1hy",
30
- kEafiO: "x178xt8z",
31
- kPef9Z: "x13fuv20",
32
- kLZC3w: "xhjagg4",
44
+ kg3NbH: "x1dc62k6",
33
45
  kWkggS: "xpvm0e4",
34
46
  kMwMTN: "x153jb6y",
35
47
  kMv6JI: "x1hz01jw",
@@ -41,7 +53,7 @@ var A = {
41
53
  },
42
54
  collapsedFooter: {
43
55
  kjj79g: "xl56j7k x1l31gyv",
44
- kg3NbH: "xnjsko4 xn5eaz9",
56
+ kg3NbH: "xnjsko4 x7qzpmf",
45
57
  $$css: !0
46
58
  },
47
59
  inlineFooter: { $$css: !0 },
@@ -50,54 +62,73 @@ var A = {
50
62
  kg3NbH: "xnjsko4",
51
63
  k8WAf4: "xn9t2bk",
52
64
  $$css: !0
65
+ },
66
+ toggleCell: {
67
+ kB7OPa: "x9f619",
68
+ kVAEAm: "x1n2onr6",
69
+ k1xSpc: "x78zum5",
70
+ kGNEyG: "x6s0dn4",
71
+ kjj79g: "xl56j7k",
72
+ kmuXW: "x2lah0s",
73
+ kzqmXN: "x14j3e4g",
74
+ $$css: !0
75
+ },
76
+ desktop: {
77
+ k1xSpc: "x78zum5 x1ykma7f",
78
+ $$css: !0
79
+ },
80
+ mobile: {
81
+ k1xSpc: "x1s85apg x1rhi5y4",
82
+ $$css: !0
53
83
  }
54
- }, N = {
55
- inline: M.inlineFooter,
56
- navigation: M.navigationFooter
84
+ }, P = {
85
+ inline: N.inlineFooter,
86
+ navigation: N.navigationFooter
57
87
  };
58
- function P({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
59
- return /* @__PURE__ */ C(x, { children: [
60
- /* @__PURE__ */ C("div", {
61
- ...{
62
- 0: { className: "x9f619 x78zum5 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd" },
63
- 1: { className: "x9f619 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd x1s85apg x1rhi5y4" }
64
- }[e == null | 0],
65
- children: [/* @__PURE__ */ S("div", {
66
- className: "x78zum5 x6s0dn4 x98rzlu xeuugli",
88
+ function F({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
89
+ let a = _(M), s = a !== null && !a.isExpanded, c = e != null;
90
+ return /* @__PURE__ */ w(S, { children: [
91
+ /* @__PURE__ */ w("div", {
92
+ ...m.props(N.header, o.blockEnd, !c && N.emptyHeader),
93
+ children: [/* @__PURE__ */ C("div", {
94
+ ...{
95
+ 0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
96
+ 1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
97
+ }[!!s | 0],
67
98
  children: e
68
99
  }), r]
69
100
  }),
70
101
  t,
71
- /* @__PURE__ */ S("div", {
102
+ /* @__PURE__ */ C("div", {
72
103
  role: "region",
73
104
  "aria-label": "Navigation links",
74
105
  className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
75
106
  children: i
76
107
  }),
77
- n != null && /* @__PURE__ */ S("div", {
108
+ n != null && /* @__PURE__ */ C("div", {
78
109
  className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
79
110
  children: n
80
111
  })
81
112
  ] });
82
113
  }
83
- function F() {
84
- return /* @__PURE__ */ S("div", {
114
+ function I() {
115
+ return /* @__PURE__ */ C("div", {
85
116
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
86
- children: /* @__PURE__ */ S(e.Close, {
87
- render: /* @__PURE__ */ S(i, {
117
+ children: /* @__PURE__ */ C(s.Close, {
118
+ render: /* @__PURE__ */ C(n, {
88
119
  variant: "ghost",
89
120
  "aria-label": "Close navigation"
90
121
  }),
91
- children: /* @__PURE__ */ S(E, {
122
+ children: /* @__PURE__ */ C(D, {
92
123
  size: 16,
93
124
  "aria-hidden": !0
94
125
  })
95
126
  })
96
127
  });
97
128
  }
98
- function ee({ children: e, label: t = "Main" }) {
99
- let n = g(j), r = n !== null && !n.isExpanded;
100
- return /* @__PURE__ */ S("nav", {
129
+ function L({ children: e, label: t = "Main" }) {
130
+ let n = _(M), r = n !== null && !n.isExpanded;
131
+ return /* @__PURE__ */ C("nav", {
101
132
  "aria-label": t,
102
133
  ...{
103
134
  0: { className: "x78zum5 xdt5ytf xksvo5r" },
@@ -106,67 +137,67 @@ function ee({ children: e, label: t = "Main" }) {
106
137
  children: e
107
138
  });
108
139
  }
109
- function te({ children: e, label: t }) {
110
- let n = g(j), r = n !== null && !n.isExpanded, i = v();
111
- return /* @__PURE__ */ C("section", {
140
+ function R({ children: e, label: t }) {
141
+ let n = _(M), r = n !== null && !n.isExpanded, i = y();
142
+ return /* @__PURE__ */ w("section", {
112
143
  "aria-labelledby": i,
113
- className: "xn9t2bk",
114
- children: [/* @__PURE__ */ S("div", {
144
+ className: "xeuugli",
145
+ children: [/* @__PURE__ */ C("div", {
115
146
  id: i,
116
147
  ...{
117
- 0: { className: "xeuugli xn9t2bk xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
118
- 1: { className: "xeuugli xn9t2bk xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe x1s85apg xeod2sa" }
148
+ 0: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
149
+ 1: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe x1s85apg xeod2sa" }
119
150
  }[!!r | 0],
120
151
  children: t
121
152
  }), e]
122
153
  });
123
154
  }
124
- function ne({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
125
- let c = g(j), u = v(), f = c !== null && !c.isExpanded;
126
- return /* @__PURE__ */ S("div", {
155
+ function ee({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
156
+ let c = _(M), l = y(), d = c !== null && !c.isExpanded;
157
+ return /* @__PURE__ */ C("div", {
127
158
  ...{
128
159
  0: { className: "x78zum5 xeuugli x1ok0vyi" },
129
160
  1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
130
161
  }[!!n | 0],
131
- children: /* @__PURE__ */ C(d, {
162
+ children: /* @__PURE__ */ w(f, {
132
163
  ...s,
133
- ...l({
164
+ ...u({
134
165
  className: a,
135
166
  style: o,
136
167
  styles: {
137
- 0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
138
- 1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" }
139
- }[!!f | 0]
168
+ 0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r" },
169
+ 1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" }
170
+ }[!!d | 0]
140
171
  }),
141
172
  "aria-current": n ? "page" : void 0,
142
- "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? u : void 0),
173
+ "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
143
174
  title: s.title ?? (typeof e == "string" ? e : void 0),
144
175
  onClick: (e) => {
145
176
  i !== void 0 && i(e), !e.defaultPrevented && c !== null && r && c.onNavigate();
146
177
  },
147
- children: [t != null && /* @__PURE__ */ S("span", {
178
+ children: [t != null && /* @__PURE__ */ C("span", {
148
179
  "aria-hidden": !0,
149
180
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
150
181
  children: t
151
- }), /* @__PURE__ */ S("span", {
152
- id: u,
182
+ }), /* @__PURE__ */ C("span", {
183
+ id: l,
153
184
  ...{
154
185
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
155
186
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
156
- }[!!f | 0],
187
+ }[!!d | 0],
157
188
  children: e
158
189
  })]
159
190
  })
160
191
  });
161
192
  }
162
- function re({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
163
- let s = g(j), c = v(), l = s !== null && !s.isExpanded, u = {
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
- 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" },
166
- 1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
167
- 3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
193
+ function te({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
194
+ let s = _(M), c = y(), l = s !== null && !s.isExpanded, u = {
195
+ 0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r" },
196
+ 2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
197
+ 1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
198
+ 3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
168
199
  }[!!l << 1 | !!n];
169
- return /* @__PURE__ */ C("a", {
200
+ return /* @__PURE__ */ w("a", {
170
201
  ...o,
171
202
  "aria-current": n ? "page" : void 0,
172
203
  "aria-labelledby": o["aria-labelledby"] ?? (o["aria-label"] === void 0 ? c : void 0),
@@ -181,11 +212,11 @@ function re({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i
181
212
  ...u.style,
182
213
  ...a
183
214
  },
184
- children: [t != null && /* @__PURE__ */ S("span", {
215
+ children: [t != null && /* @__PURE__ */ C("span", {
185
216
  "aria-hidden": !0,
186
217
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
187
218
  children: t
188
- }), /* @__PURE__ */ S("span", {
219
+ }), /* @__PURE__ */ C("span", {
189
220
  id: c,
190
221
  ...{
191
222
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
@@ -195,9 +226,9 @@ function re({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i
195
226
  })]
196
227
  });
197
228
  }
198
- function I({ children: e, shouldGrow: t = !1 }) {
199
- let n = g(j), r = n !== null && !n.isExpanded;
200
- return /* @__PURE__ */ S("span", {
229
+ function ne({ children: e, shouldGrow: t = !1 }) {
230
+ let n = _(M), r = n !== null && !n.isExpanded;
231
+ return /* @__PURE__ */ C("span", {
201
232
  ...{
202
233
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
203
234
  2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
@@ -207,39 +238,39 @@ function I({ children: e, shouldGrow: t = !1 }) {
207
238
  children: e
208
239
  });
209
240
  }
210
- function L({ children: e, layout: t = "inline" }) {
211
- let n = g(j), r = n !== null && !n.isExpanded;
212
- return /* @__PURE__ */ S("div", {
213
- ...p.props(M.footer, r && M.collapsedFooter, N[t]),
241
+ function re({ children: e, layout: t = "inline" }) {
242
+ let n = _(M), r = n !== null && !n.isExpanded;
243
+ return /* @__PURE__ */ C("div", {
244
+ ...m.props(N.footer, o.blockStart, r && N.collapsedFooter, P[t]),
214
245
  children: e
215
246
  });
216
247
  }
217
- function R() {
218
- let t = g(j);
219
- return t === null ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
220
- className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x78zum5 x1ykma7f",
221
- children: /* @__PURE__ */ S(i, {
222
- ref: t.navigationToggleRef,
248
+ function ie() {
249
+ let e = _(M);
250
+ return e === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
251
+ ...m.props(N.toggleCell, o.inlineEnd, N.desktop),
252
+ children: /* @__PURE__ */ C(n, {
253
+ ref: e.navigationToggleRef,
223
254
  variant: "ghost",
224
- "aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
225
- "aria-controls": t.sidebarId,
226
- "aria-expanded": t.isExpanded,
227
- onClick: t.onToggle,
228
- children: /* @__PURE__ */ S(T, {
255
+ "aria-label": e.isExpanded ? "Collapse navigation" : "Expand navigation",
256
+ "aria-controls": e.sidebarId,
257
+ "aria-expanded": e.isExpanded,
258
+ onClick: e.onToggle,
259
+ children: /* @__PURE__ */ C(E, {
229
260
  size: 16,
230
261
  "aria-hidden": !0
231
262
  })
232
263
  })
233
- }), /* @__PURE__ */ S("div", {
234
- className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x1s85apg x1rhi5y4",
235
- children: /* @__PURE__ */ S(e.Trigger, {
236
- ref: t.mobileNavigationToggleRef,
237
- handle: t.drawerHandle,
238
- render: /* @__PURE__ */ S(i, {
264
+ }), /* @__PURE__ */ C("div", {
265
+ ...m.props(N.toggleCell, o.inlineEnd, N.mobile),
266
+ children: /* @__PURE__ */ C(s.Trigger, {
267
+ ref: e.mobileNavigationToggleRef,
268
+ handle: e.drawerHandle,
269
+ render: /* @__PURE__ */ C(n, {
239
270
  variant: "ghost",
240
271
  "aria-label": "Open navigation"
241
272
  }),
242
- children: /* @__PURE__ */ S(T, {
273
+ children: /* @__PURE__ */ C(E, {
243
274
  size: 16,
244
275
  "aria-hidden": !0
245
276
  })
@@ -247,7 +278,7 @@ function R() {
247
278
  })] });
248
279
  }
249
280
  // packages/layout/src/navigation-rail.tsx
250
- var z = h("rail"), B = {
281
+ var z = g("rail"), B = {
251
282
  selected: {
252
283
  kHjaVl: "x1yk04ar",
253
284
  $$css: !0
@@ -277,195 +308,215 @@ var z = h("rail"), B = {
277
308
  $$css: !0
278
309
  }
279
310
  };
280
- function V({ label: e, links: t, action: a }) {
281
- let s = g(z) === "drawer", l = g(j);
311
+ function V({ label: i, links: a, action: o }) {
312
+ let s = _(z) === "drawer", c = _(M);
282
313
  function u(e, t) {
283
314
  e?.(t);
284
315
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
285
- t.button !== 0 || n || r || l?.onNavigate();
316
+ t.button !== 0 || n || r || c?.onNavigate();
286
317
  }
287
318
  let d = (e) => {
288
- a?.onClick(e), e.defaultPrevented || l?.onNavigate();
319
+ o?.onClick(e), e.defaultPrevented || c?.onNavigate();
289
320
  };
290
- return s ? /* @__PURE__ */ C("div", {
321
+ return s ? /* @__PURE__ */ w("div", {
291
322
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
292
- children: [/* @__PURE__ */ S("nav", {
293
- "aria-label": e,
323
+ children: [/* @__PURE__ */ C("nav", {
324
+ "aria-label": i,
294
325
  className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
295
- children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ C("a", {
296
- ...f(p.props(o.base, o.button, B.mobileLink, B.rounded, B.selected), r),
297
- "aria-current": n ? "location" : void 0,
298
- onClick: (e) => u(r.onClick, e),
299
- children: [/* @__PURE__ */ S("span", {
326
+ children: a.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ w("a", {
327
+ ...p(m.props(e.base, e.button, B.mobileLink, B.rounded, B.selected), i),
328
+ "aria-current": r ? "location" : void 0,
329
+ onClick: (e) => u(i.onClick, e),
330
+ children: [/* @__PURE__ */ C("span", {
300
331
  "aria-hidden": !0,
301
332
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
302
- children: t
303
- }), /* @__PURE__ */ S("span", {
333
+ children: n
334
+ }), /* @__PURE__ */ C("span", {
304
335
  className: "xeuugli x193iq5w xj0a0fe",
305
- children: e
336
+ children: t
306
337
  })]
307
- }, r.href))
308
- }), a !== void 0 && /* @__PURE__ */ S("div", {
338
+ }, i.href))
339
+ }), o !== void 0 && /* @__PURE__ */ C("div", {
309
340
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
310
- children: /* @__PURE__ */ C(c, {
341
+ children: /* @__PURE__ */ w(r, {
311
342
  variant: "ghost",
312
343
  onClick: d,
313
- children: [/* @__PURE__ */ S("span", {
344
+ children: [/* @__PURE__ */ C("span", {
314
345
  "aria-hidden": !0,
315
346
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
316
- children: a.icon
317
- }), a.label]
347
+ children: o.icon
348
+ }), o.label]
318
349
  })
319
350
  })]
320
- }) : /* @__PURE__ */ S(n.Provider, { children: /* @__PURE__ */ C("div", {
351
+ }) : /* @__PURE__ */ C(l.Provider, { children: /* @__PURE__ */ w("div", {
321
352
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
322
- children: [/* @__PURE__ */ S("nav", {
323
- "aria-label": e,
353
+ children: [/* @__PURE__ */ C("nav", {
354
+ "aria-label": i,
324
355
  className: "x78zum5 xdt5ytf x1qjc9v5",
325
- children: t.map(({ label: e, icon: t, isCurrent: i = !1, ...a }) => /* @__PURE__ */ S("div", {
356
+ children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ C("div", {
326
357
  className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
327
- children: /* @__PURE__ */ C(n.Root, { children: [/* @__PURE__ */ S(n.Trigger, {
328
- render: /* @__PURE__ */ S(r, {
329
- ...f({ className: "x1yk04ar" }, a),
358
+ children: /* @__PURE__ */ w(l.Root, { children: [/* @__PURE__ */ C(l.Trigger, {
359
+ render: /* @__PURE__ */ C(t, {
360
+ ...p({ className: "x1yk04ar" }, i),
330
361
  "aria-label": e,
331
- "aria-current": i ? "location" : void 0,
332
- onClick: (e) => u(a.onClick, e)
362
+ "aria-current": r ? "location" : void 0,
363
+ onClick: (e) => u(i.onClick, e)
333
364
  }),
334
- children: t
335
- }), /* @__PURE__ */ S(n.Portal, { children: /* @__PURE__ */ S(n.Positioner, {
365
+ children: n
366
+ }), /* @__PURE__ */ C(l.Portal, { children: /* @__PURE__ */ C(l.Positioner, {
336
367
  side: "right",
337
- children: /* @__PURE__ */ S(n.Popup, { children: e })
368
+ children: /* @__PURE__ */ C(l.Popup, { children: e })
338
369
  }) })] })
339
- }, a.href))
340
- }), a !== void 0 && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ S("div", {
370
+ }, i.href))
371
+ }), o !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
341
372
  className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
342
- children: /* @__PURE__ */ C(n.Root, { children: [/* @__PURE__ */ S(n.Trigger, {
343
- render: /* @__PURE__ */ S(i, {
373
+ children: /* @__PURE__ */ w(l.Root, { children: [/* @__PURE__ */ C(l.Trigger, {
374
+ render: /* @__PURE__ */ C(n, {
344
375
  variant: "ghost",
345
- "aria-label": a.label
376
+ "aria-label": o.label
346
377
  }),
347
378
  onClick: d,
348
- children: a.icon
349
- }), /* @__PURE__ */ S(n.Portal, { children: /* @__PURE__ */ S(n.Positioner, {
379
+ children: o.icon
380
+ }), /* @__PURE__ */ C(l.Portal, { children: /* @__PURE__ */ C(l.Positioner, {
350
381
  side: "right",
351
- children: /* @__PURE__ */ S(n.Popup, { children: a.label })
382
+ children: /* @__PURE__ */ C(l.Popup, { children: o.label })
352
383
  }) })] })
353
384
  })] })]
354
385
  }) });
355
386
  }
356
387
  // packages/layout/src/app-shell.tsx
357
- var H = { drawer: {
358
- kzqmXN: "x68ju84",
359
- ks0D6T: "x1recik0",
360
- $$css: !0
361
- } };
362
- function U({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, children: o, mainId: s = "main", shouldFocus: c = !1 }) {
363
- let l = t != null, u = n != null, [d, f] = b(!0), [p, m] = b(!1), h = c || l && !d, [g] = b(() => e.createHandle()), w = v(), T = y(null), E = y(null), D = y(null), O = y(!1);
364
- return _(() => {
365
- let e = globalThis.matchMedia(A.sidebarDesktopQuery);
388
+ var H = {
389
+ sidebar: {
390
+ kB7OPa: "x9f619",
391
+ k1xSpc: "x78zum5 x1ykma7f",
392
+ kXwgrk: "xdt5ytf",
393
+ kWkggS: "xpvm0e4",
394
+ kVAEAm: "x7wzq59",
395
+ k87sOh: "x13vifvy",
396
+ kZKoxP: "xtdtrs8",
397
+ kzqmXN: "x68ju84",
398
+ kmuXW: "x2lah0s",
399
+ kAzted: "x2lwn1j",
400
+ k7Eaqz: "xeuugli",
401
+ $$css: !0
402
+ },
403
+ collapsed: {
404
+ kzqmXN: "x14j3e4g",
405
+ $$css: !0
406
+ },
407
+ secondary: {
408
+ kzqmXN: "xuqhkz3",
409
+ $$css: !0
410
+ },
411
+ rail: {
412
+ kzqmXN: "x14j3e4g",
413
+ $$css: !0
414
+ },
415
+ hidden: {
416
+ k1xSpc: "x1s85apg",
417
+ $$css: !0
418
+ },
419
+ drawer: {
420
+ kzqmXN: "x68ju84",
421
+ ks0D6T: "x1recik0",
422
+ $$css: !0
423
+ }
424
+ };
425
+ function U({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: c = "main", shouldFocus: l = !1 }) {
426
+ let u = e != null, d = t != null, [f, p] = x(!0), [h, g] = x(!1), _ = l || u && !f, [T] = x(() => s.createHandle()), E = y(), D = b(null), O = b(null), k = b(null), A = b(!1);
427
+ return v(() => {
428
+ let e = globalThis.matchMedia(j.sidebarDesktopQuery);
366
429
  function t() {
367
- e.matches && m(!1);
430
+ e.matches && g(!1);
368
431
  }
369
432
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
370
- }, []), /* @__PURE__ */ C(j.Provider, {
433
+ }, []), /* @__PURE__ */ w(M.Provider, {
371
434
  value: {
372
- isExpanded: d,
373
- sidebarId: w,
374
- drawerHandle: g,
375
- navigationToggleRef: T,
376
- mobileNavigationToggleRef: E,
377
- onToggle: () => f((e) => !e),
435
+ isExpanded: f,
436
+ sidebarId: E,
437
+ drawerHandle: T,
438
+ navigationToggleRef: D,
439
+ mobileNavigationToggleRef: O,
440
+ onToggle: () => p((e) => !e),
378
441
  onNavigate: () => {
379
- O.current = p, m(!1);
442
+ A.current = h, g(!1);
380
443
  }
381
444
  },
382
- children: [/* @__PURE__ */ C("div", {
445
+ children: [/* @__PURE__ */ w("div", {
383
446
  className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
384
447
  children: [
385
- l && /* @__PURE__ */ C("div", {
386
- hidden: c,
387
- ...{
388
- 0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
389
- 1: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
390
- }[!!c | 0],
391
- children: [/* @__PURE__ */ S("div", {
448
+ u && /* @__PURE__ */ w("div", {
449
+ hidden: l,
450
+ ...m.props(H.sidebar, o.inlineEnd, H.rail, l && H.hidden),
451
+ children: [/* @__PURE__ */ C("div", {
392
452
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
393
- children: t
394
- }), u && /* @__PURE__ */ S("div", {
453
+ children: e
454
+ }), d && /* @__PURE__ */ C("div", {
395
455
  className: "x2lah0s x1a148e8",
396
- children: /* @__PURE__ */ S("div", {
456
+ children: /* @__PURE__ */ C("div", {
397
457
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
398
- children: n
458
+ children: t
399
459
  })
400
460
  })]
401
461
  }),
402
- /* @__PURE__ */ S("aside", {
403
- id: w,
462
+ /* @__PURE__ */ C("aside", {
463
+ id: E,
404
464
  "aria-label": "Navigation",
405
- hidden: h,
406
- ...{
407
- 0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x68ju84 x2lah0s x2lwn1j xeuugli" },
408
- 4: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3" },
409
- 2: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
410
- 6: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
411
- 1: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x68ju84 x2lah0s x2lwn1j xeuugli x1s85apg" },
412
- 5: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3 x1s85apg" },
413
- 3: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" },
414
- 7: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
415
- }[!!l << 2 | !(l || d) << 1 | !!h],
416
- children: /* @__PURE__ */ S(P, {
417
- header: r,
418
- footer: a,
419
- children: i
465
+ hidden: _,
466
+ ...m.props(H.sidebar, o.inlineEnd, u && H.secondary, !u && !f && H.collapsed, _ && H.hidden),
467
+ children: /* @__PURE__ */ C(F, {
468
+ header: n,
469
+ footer: i,
470
+ children: r
420
471
  })
421
472
  }),
422
- /* @__PURE__ */ S("main", {
423
- id: s,
473
+ /* @__PURE__ */ C("main", {
474
+ id: c,
424
475
  tabIndex: -1,
425
476
  className: "xeuugli x98rzlu",
426
- children: o
477
+ children: a
427
478
  })
428
479
  ]
429
- }), /* @__PURE__ */ S(e.Root, {
430
- handle: g,
431
- open: p && !c,
432
- onOpenChange: m,
433
- children: /* @__PURE__ */ C(e.Portal, { children: [/* @__PURE__ */ S(e.Backdrop, {}), /* @__PURE__ */ S(e.Viewport, { children: /* @__PURE__ */ C(e.Popup, {
434
- ref: D,
480
+ }), /* @__PURE__ */ C(s.Root, {
481
+ handle: T,
482
+ open: h && !l,
483
+ onOpenChange: g,
484
+ children: /* @__PURE__ */ w(s.Portal, { children: [/* @__PURE__ */ C(s.Backdrop, {}), /* @__PURE__ */ C(s.Viewport, { children: /* @__PURE__ */ w(s.Popup, {
485
+ ref: k,
435
486
  xstyle: H.drawer,
436
487
  finalFocus: () => {
437
- if (O.current) {
438
- O.current = !1;
439
- let e = document.querySelector(`#${CSS.escape(s)}`), t = document.activeElement;
488
+ if (A.current) {
489
+ A.current = !1;
490
+ let e = document.querySelector(`#${CSS.escape(c)}`), t = document.activeElement;
440
491
  if (t instanceof HTMLElement) {
441
492
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
442
- if (e !== null && e !== D.current) return t;
493
+ if (e !== null && e !== k.current) return t;
443
494
  }
444
495
  return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
445
496
  }
446
- return globalThis.matchMedia(A.sidebarDesktopQuery).matches ? T.current : E.current;
497
+ return globalThis.matchMedia(j.sidebarDesktopQuery).matches ? D.current : O.current;
447
498
  },
448
- children: [/* @__PURE__ */ S(e.Title, {
499
+ children: [/* @__PURE__ */ C(s.Title, {
449
500
  isVisuallyHidden: !0,
450
501
  children: "Navigation"
451
- }), /* @__PURE__ */ S(P, {
452
- header: r,
453
- navigationHeader: l && /* @__PURE__ */ S(z.Provider, {
502
+ }), /* @__PURE__ */ C(F, {
503
+ header: n,
504
+ navigationHeader: u && /* @__PURE__ */ C(z.Provider, {
454
505
  value: "drawer",
455
- children: t
506
+ children: e
456
507
  }),
457
- footer: /* @__PURE__ */ C(x, { children: [a, l && u && /* @__PURE__ */ S(z.Provider, {
508
+ footer: /* @__PURE__ */ w(S, { children: [i, u && d && /* @__PURE__ */ C(z.Provider, {
458
509
  value: "drawer",
459
- children: /* @__PURE__ */ S("div", {
510
+ children: /* @__PURE__ */ C("div", {
460
511
  className: "x2lah0s x1a148e8",
461
- children: /* @__PURE__ */ S("div", {
512
+ children: /* @__PURE__ */ C("div", {
462
513
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
463
- children: n
514
+ children: t
464
515
  })
465
516
  })
466
517
  })] }),
467
- close: /* @__PURE__ */ S(F, {}),
468
- children: i
518
+ close: /* @__PURE__ */ C(I, {}),
519
+ children: r
469
520
  })]
470
521
  }) })] })
471
522
  })]
@@ -482,45 +533,45 @@ var W = {
482
533
  align: "start"
483
534
  }
484
535
  };
485
- function G({ label: e, icon: r, children: a }) {
486
- let o = g(z), [s, c] = b(!1);
487
- return _(() => {
488
- let e = globalThis.matchMedia(A.sidebarDesktopQuery);
536
+ function G({ label: e, icon: t, children: r }) {
537
+ let i = _(z), [a, o] = x(!1);
538
+ return v(() => {
539
+ let e = globalThis.matchMedia(j.sidebarDesktopQuery);
489
540
  function t() {
490
- c(!1);
541
+ o(!1);
491
542
  }
492
543
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
493
- }, []), /* @__PURE__ */ C(t.Root, {
494
- open: s,
495
- onOpenChange: c,
544
+ }, []), /* @__PURE__ */ w(c.Root, {
545
+ open: a,
546
+ onOpenChange: o,
496
547
  modal: !1,
497
- children: [/* @__PURE__ */ S(n.Provider, { children: /* @__PURE__ */ C(n.Root, {
498
- disabled: s || o === "drawer",
499
- children: [/* @__PURE__ */ S(n.Trigger, {
500
- render: /* @__PURE__ */ S(t.Trigger, { render: /* @__PURE__ */ S(i, {
548
+ children: [/* @__PURE__ */ C(l.Provider, { children: /* @__PURE__ */ w(l.Root, {
549
+ disabled: a || i === "drawer",
550
+ children: [/* @__PURE__ */ C(l.Trigger, {
551
+ render: /* @__PURE__ */ C(c.Trigger, { render: /* @__PURE__ */ C(n, {
501
552
  variant: "ghost",
502
553
  "aria-label": e
503
554
  }) }),
504
- children: r
505
- }), /* @__PURE__ */ S(n.Portal, { children: /* @__PURE__ */ S(n.Positioner, {
555
+ children: t
556
+ }), /* @__PURE__ */ C(l.Portal, { children: /* @__PURE__ */ C(l.Positioner, {
506
557
  side: "right",
507
- children: /* @__PURE__ */ S(n.Popup, { children: e })
558
+ children: /* @__PURE__ */ C(l.Popup, { children: e })
508
559
  }) })]
509
- }) }), /* @__PURE__ */ S(t.Portal, { children: /* @__PURE__ */ S(t.Positioner, {
510
- ...W[o],
560
+ }) }), /* @__PURE__ */ C(c.Portal, { children: /* @__PURE__ */ C(c.Positioner, {
561
+ ...W[i],
511
562
  sideOffset: 4,
512
563
  collisionPadding: 8,
513
- children: /* @__PURE__ */ S(t.Popup, {
564
+ children: /* @__PURE__ */ C(c.Popup, {
514
565
  "aria-label": e,
515
566
  className: "x1uncgzr",
516
- children: a
567
+ children: r
517
568
  })
518
569
  }) })]
519
570
  });
520
571
  }
521
572
  // packages/layout/src/detail-page.tsx
522
573
  function K({ children: e, isWide: t = !1 }) {
523
- return /* @__PURE__ */ S("div", {
574
+ return /* @__PURE__ */ C("div", {
524
575
  ...{
525
576
  0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
526
577
  1: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
@@ -530,11 +581,11 @@ function K({ children: e, isWide: t = !1 }) {
530
581
  }
531
582
  // packages/layout/src/focus-page.tsx
532
583
  function q({ children: e }) {
533
- return /* @__PURE__ */ S("main", {
584
+ return /* @__PURE__ */ C("main", {
534
585
  id: "main",
535
586
  tabIndex: -1,
536
587
  className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
537
- children: /* @__PURE__ */ S("div", {
588
+ children: /* @__PURE__ */ C("div", {
538
589
  className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
539
590
  children: e
540
591
  })
@@ -542,20 +593,20 @@ function q({ children: e }) {
542
593
  }
543
594
  // packages/layout/src/workbench.tsx
544
595
  function J({ header: e, children: t, inspector: n }) {
545
- return /* @__PURE__ */ C("div", {
596
+ return /* @__PURE__ */ w("div", {
546
597
  className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
547
- children: [e != null && /* @__PURE__ */ S("div", {
598
+ children: [e != null && /* @__PURE__ */ C("div", {
548
599
  className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
549
600
  children: e
550
- }), /* @__PURE__ */ C("div", {
601
+ }), /* @__PURE__ */ w("div", {
551
602
  className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
552
- children: [/* @__PURE__ */ S("div", {
603
+ children: [/* @__PURE__ */ C("div", {
553
604
  ...{
554
605
  0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
555
606
  1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
556
607
  }[n !== void 0 | 0],
557
608
  children: t
558
- }), n !== void 0 && /* @__PURE__ */ S("aside", {
609
+ }), n !== void 0 && /* @__PURE__ */ C("aside", {
559
610
  "aria-label": n.label,
560
611
  className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
561
612
  children: n.content
@@ -564,8 +615,8 @@ function J({ header: e, children: t, inspector: n }) {
564
615
  });
565
616
  }
566
617
  function Y({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
567
- let i = u();
568
- return /* @__PURE__ */ S("div", {
618
+ let i = d();
619
+ return /* @__PURE__ */ C("div", {
569
620
  ref: i.ref,
570
621
  role: "region",
571
622
  "aria-label": e,
@@ -578,21 +629,21 @@ function Y({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
578
629
  children: t
579
630
  });
580
631
  }
581
- function X({ children: e }) {
582
- return /* @__PURE__ */ S("div", {
632
+ function ae({ children: e }) {
633
+ return /* @__PURE__ */ C("div", {
583
634
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
584
635
  children: e
585
636
  });
586
637
  }
587
638
  // packages/layout/src/view-stack.tsx
588
- function ie({ children: e }) {
589
- return /* @__PURE__ */ S("div", {
639
+ function oe({ children: e }) {
640
+ return /* @__PURE__ */ C("div", {
590
641
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
591
642
  children: e
592
643
  });
593
644
  }
594
- function ae({ isActive: e, children: t }) {
595
- return /* @__PURE__ */ S("section", {
645
+ function se({ isActive: e, children: t }) {
646
+ return /* @__PURE__ */ C("section", {
596
647
  "aria-hidden": !e,
597
648
  inert: !e,
598
649
  ...{
@@ -602,66 +653,89 @@ function ae({ isActive: e, children: t }) {
602
653
  children: t
603
654
  });
604
655
  }
605
- var oe = {
606
- Root: ie,
607
- Panel: ae
608
- }, se = { action: {
609
- k7Eaqz: "xeuugli",
610
- ks0D6T: "x193iq5w",
611
- $$css: !0
612
- } };
656
+ var ce = {
657
+ Root: oe,
658
+ Panel: se
659
+ }, X = {
660
+ toolbar: {
661
+ kB7OPa: "x9f619",
662
+ kVAEAm: "x1n2onr6",
663
+ k1xSpc: "x78zum5",
664
+ k9g6sI: "x12h1iku",
665
+ kanfag: "x14ut1dr",
666
+ kGNEyG: "x1qjc9v5",
667
+ kZKoxP: "xnyqvp6",
668
+ kmuXW: "x2lah0s",
669
+ kWkggS: "xpvm0e4",
670
+ kMwMTN: "xbixft",
671
+ kMv6JI: "x1hz01jw",
672
+ kGuDYH: "xtqrqnz",
673
+ kLWn49: "x1778rvt",
674
+ k63SB2: "xj57cvi",
675
+ khiITx: "xvmahel",
676
+ k7Eaqz: "xeuugli",
677
+ $$css: !0
678
+ },
679
+ action: {
680
+ k7Eaqz: "xeuugli",
681
+ ks0D6T: "x193iq5w",
682
+ $$css: !0
683
+ }
684
+ };
613
685
  function Z({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
614
- let o = m.toArray(e).length > 0, s = m.toArray(t).length > 0, c = m.toArray(i).length > 0, l = m.toArray(a).length > 0;
615
- return m.toArray([
686
+ let s = h.toArray(e).length > 0, c = h.toArray(t).length > 0, l = h.toArray(i).length > 0, u = h.toArray(a).length > 0;
687
+ if (h.toArray([
616
688
  e,
617
689
  t,
618
690
  i,
619
691
  a
620
- ]).length === 0 ? null : /* @__PURE__ */ C("div", {
621
- className: "x9f619 x78zum5 x12h1iku x14ut1dr x1qjc9v5 xnyqvp6 x2lah0s xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xeuugli",
692
+ ]).length === 0) return null;
693
+ let d = n ? "nav" : "h1", f = n ? "div" : "span";
694
+ return /* @__PURE__ */ w("div", {
695
+ ...m.props(X.toolbar, o.blockEnd),
622
696
  children: [
623
- l ? /* @__PURE__ */ S("div", {
697
+ u ? /* @__PURE__ */ C("div", {
624
698
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
625
699
  children: a
626
- }) : r && /* @__PURE__ */ S(R, {}),
627
- o && /* @__PURE__ */ S(n ? "nav" : "h1", {
700
+ }) : r && /* @__PURE__ */ C(ie, {}),
701
+ s && /* @__PURE__ */ C(d, {
628
702
  tabIndex: n ? void 0 : -1,
629
703
  "aria-label": n ? "Breadcrumb" : void 0,
630
704
  className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xeuugli xs83m0k x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
631
- children: /* @__PURE__ */ S(n ? "div" : "span", {
705
+ children: /* @__PURE__ */ C(f, {
632
706
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
633
707
  children: e
634
708
  })
635
709
  }),
636
- c && /* @__PURE__ */ S("div", {
710
+ l && /* @__PURE__ */ C("div", {
637
711
  className: "x78zum5 x6s0dn4 xeuugli x2lah0s",
638
712
  children: i
639
713
  }),
640
- s && /* @__PURE__ */ S("div", {
714
+ c && /* @__PURE__ */ C("div", {
641
715
  className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli x2lah0s x8x9d4c",
642
716
  children: t
643
717
  })
644
718
  ]
645
719
  });
646
720
  }
647
- function ce({ icon: e, children: t, ...n }) {
648
- let r = e != null;
649
- return /* @__PURE__ */ S("div", {
721
+ function le({ icon: e, children: t, ...n }) {
722
+ let i = e != null;
723
+ return /* @__PURE__ */ C("div", {
650
724
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
651
- children: /* @__PURE__ */ C(c, {
725
+ children: /* @__PURE__ */ w(r, {
652
726
  ...n,
653
727
  variant: "ghost",
654
728
  "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
655
- xstyle: se.action,
656
- children: [r && /* @__PURE__ */ S("span", {
729
+ xstyle: X.action,
730
+ children: [i && /* @__PURE__ */ C("span", {
657
731
  "aria-hidden": !0,
658
732
  className: "x3nfvp2 x2lah0s x6s0dn4",
659
733
  children: e
660
- }), r || typeof t == "string" ? /* @__PURE__ */ S("span", {
734
+ }), i || typeof t == "string" ? /* @__PURE__ */ C("span", {
661
735
  ...{
662
736
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
663
737
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
664
- }[!!r | 0],
738
+ }[!!i | 0],
665
739
  children: t
666
740
  }) : t]
667
741
  })
@@ -669,46 +743,46 @@ function ce({ icon: e, children: t, ...n }) {
669
743
  }
670
744
  // packages/layout/src/page-content.tsx
671
745
  function Q({ children: e }) {
672
- return /* @__PURE__ */ S("div", {
746
+ return /* @__PURE__ */ C("div", {
673
747
  className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
674
748
  children: e
675
749
  });
676
750
  }
677
751
  // packages/layout/src/report-content.tsx
678
- function le({ summary: e, breakdown: t }) {
679
- return /* @__PURE__ */ C("div", {
752
+ function ue({ summary: e, breakdown: t }) {
753
+ return /* @__PURE__ */ w("div", {
680
754
  "data-page-layout": "report",
681
755
  className: "xeuugli",
682
- children: [e != null && e !== !1 && /* @__PURE__ */ S(Q, { children: e }), t]
756
+ children: [e != null && e !== !1 && /* @__PURE__ */ C(Q, { children: e }), t]
683
757
  });
684
758
  }
685
759
  // packages/layout/src/collection-layout.tsx
686
- function ue({ header: e, children: t }) {
687
- return /* @__PURE__ */ C("div", {
760
+ function de({ header: e, children: t }) {
761
+ return /* @__PURE__ */ w("div", {
688
762
  "data-page-layout": "collection",
689
763
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
690
- children: [/* @__PURE__ */ S("div", {
764
+ children: [/* @__PURE__ */ C("div", {
691
765
  className: "x2lah0s xeuugli",
692
766
  children: e
693
- }), /* @__PURE__ */ S("div", {
767
+ }), /* @__PURE__ */ C("div", {
694
768
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
695
769
  children: t
696
770
  })]
697
771
  });
698
772
  }
699
773
  // packages/layout/src/record-page.tsx
700
- function de({ children: e }) {
701
- return /* @__PURE__ */ S("div", {
774
+ function fe({ children: e }) {
775
+ return /* @__PURE__ */ C("div", {
702
776
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
703
777
  children: e
704
778
  });
705
779
  }
706
- function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
707
- return /* @__PURE__ */ S(Z, {
780
+ function pe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
781
+ return /* @__PURE__ */ C(Z, {
708
782
  showBreadcrumb: !0,
709
783
  showNavigation: i,
710
784
  actions: r,
711
- title: /* @__PURE__ */ C("a", {
785
+ title: /* @__PURE__ */ w("a", {
712
786
  href: t,
713
787
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
714
788
  onClick: (e) => {
@@ -716,68 +790,68 @@ function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation:
716
790
  let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
717
791
  t || r || (e.preventDefault(), n());
718
792
  },
719
- children: [/* @__PURE__ */ S(w, {
793
+ children: [/* @__PURE__ */ C(T, {
720
794
  size: 16,
721
795
  "aria-hidden": !0,
722
796
  className: "x2lah0s"
723
- }), /* @__PURE__ */ S("span", {
797
+ }), /* @__PURE__ */ C("span", {
724
798
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
725
799
  children: e
726
800
  })]
727
801
  })
728
802
  });
729
803
  }
730
- function pe({ children: e, isWide: t = !1 }) {
731
- return /* @__PURE__ */ S(K, {
804
+ function $({ children: e, isWide: t = !1 }) {
805
+ return /* @__PURE__ */ C(K, {
732
806
  isWide: t,
733
- children: /* @__PURE__ */ S("div", {
807
+ children: /* @__PURE__ */ C("div", {
734
808
  className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
735
809
  children: e
736
810
  })
737
811
  });
738
812
  }
739
- function $({ children: e }) {
740
- return /* @__PURE__ */ S("div", {
813
+ function me({ children: e }) {
814
+ return /* @__PURE__ */ C("div", {
741
815
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
742
816
  children: e
743
817
  });
744
818
  }
745
- function me({ title: e, description: t, icon: n, titleRef: r }) {
746
- return /* @__PURE__ */ C("header", {
819
+ function he({ title: e, description: t, icon: n, titleRef: r }) {
820
+ return /* @__PURE__ */ w("header", {
747
821
  className: "xrvj5dj x1n8ia3y xeuugli",
748
- children: [/* @__PURE__ */ C("div", {
822
+ children: [/* @__PURE__ */ w("div", {
749
823
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
750
- children: [n != null && /* @__PURE__ */ S("span", {
824
+ children: [n != null && /* @__PURE__ */ C("span", {
751
825
  "aria-hidden": !0,
752
826
  className: "x3nfvp2 x6s0dn4 x2lah0s",
753
827
  children: n
754
- }), /* @__PURE__ */ S(s, {
828
+ }), /* @__PURE__ */ C(a, {
755
829
  ref: r,
756
830
  tabIndex: -1,
757
831
  className: "xeuugli x1t137rt",
758
832
  children: e
759
833
  })]
760
- }), t != null && /* @__PURE__ */ S(a, { children: t })]
834
+ }), t != null && /* @__PURE__ */ C(i, { children: t })]
761
835
  });
762
836
  }
763
- function he({ children: e, label: t = "Properties" }) {
764
- return /* @__PURE__ */ S("aside", {
837
+ function ge({ children: e, label: t = "Properties" }) {
838
+ return /* @__PURE__ */ C("aside", {
765
839
  "aria-label": t,
766
840
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
767
841
  children: e
768
842
  });
769
843
  }
770
- var ge = {
771
- Root: de,
772
- Toolbar: fe,
773
- Body: pe,
774
- Content: $,
775
- Header: me,
776
- Aside: he
844
+ var _e = {
845
+ Root: fe,
846
+ Toolbar: pe,
847
+ Body: $,
848
+ Content: me,
849
+ Header: he,
850
+ Aside: ge
777
851
  };
778
852
  // packages/layout/src/resizable.tsx
779
- function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
780
- return /* @__PURE__ */ S(D, {
853
+ function ve({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
854
+ return /* @__PURE__ */ C(O, {
781
855
  orientation: e,
782
856
  defaultLayout: t,
783
857
  onLayoutChanged: (e, t) => {
@@ -789,29 +863,29 @@ function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
789
863
  coarse: 44,
790
864
  fine: 12
791
865
  },
792
- ...f({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
866
+ ...p({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
793
867
  });
794
868
  }
795
- function ve({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
796
- return /* @__PURE__ */ S(O, {
869
+ function ye({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
870
+ return /* @__PURE__ */ C(k, {
797
871
  id: e,
798
872
  defaultSize: t === void 0 ? void 0 : `${t}%`,
799
873
  minSize: `${n}%`,
800
874
  maxSize: `${r}%`,
801
875
  collapsible: i,
802
876
  elementRef: a,
803
- ...f({ className: "xeuugli x2lwn1j xysyzu8" }, o)
877
+ ...p({ className: "xeuugli x2lwn1j xysyzu8" }, o)
804
878
  });
805
879
  }
806
- function ye({ ref: e, ...t }) {
807
- return /* @__PURE__ */ S(k, {
880
+ function be({ ref: e, ...t }) {
881
+ return /* @__PURE__ */ C(A, {
808
882
  elementRef: e,
809
- ...f({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
883
+ ...p({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
810
884
  });
811
885
  }
812
- var be = {
813
- Root: _e,
814
- Pane: ve,
815
- Handle: ye
886
+ var xe = {
887
+ Root: ve,
888
+ Pane: ye,
889
+ Handle: be
816
890
  };
817
- export { U as AppShell, ue as CollectionLayout, K as DetailPage, q as FocusPage, ee as Navigation, ne as NavigationItem, re as NavigationLink, V as NavigationRail, G as NavigationRailMenu, te as NavigationSection, Q as PageContent, Z as PageToolbar, ge as RecordPage, le as ReportContent, be as Resizable, L as SidebarFooter, I as SidebarLabel, ce as ToolbarAction, oe as ViewStack, J as Workbench, X as WorkbenchFooter, Y as WorkbenchScroll };
891
+ export { U as AppShell, de as CollectionLayout, K as DetailPage, q as FocusPage, L as Navigation, ee as NavigationItem, te as NavigationLink, V as NavigationRail, G as NavigationRailMenu, R as NavigationSection, Q as PageContent, Z as PageToolbar, _e as RecordPage, ue as ReportContent, xe as Resizable, re as SidebarFooter, ne as SidebarLabel, le as ToolbarAction, ce as ViewStack, J as Workbench, ae as WorkbenchFooter, Y as WorkbenchScroll };