@mechane-ai/elements 0.19.0 → 0.20.1
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/README.md +15 -4
- package/dist/ai.js +4 -4
- package/dist/{categorical-values-D-sSI9JB.js → categorical-values-DG0kzYxN.js} +2 -2
- package/dist/{chart-frame-vwS7YVgv.js → chart-frame-DxAZ0h_q.js} +50 -51
- package/dist/{chart-input-D6Fw2UGV.js → chart-input-Dru0GScv.js} +2 -2
- package/dist/charts/cartesian.js +279 -229
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +82 -80
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +136 -134
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +1 -1
- package/dist/code-block-DlUwVaPP.js +182 -0
- package/dist/collections.js +144 -143
- package/dist/{constants.stylex-bbdiv1fD.js → constants.stylex-BILvnwUk.js} +1 -0
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +108 -102
- package/dist/content/tree.js +43 -41
- package/dist/{content-link-rdxJ94P8.js → content-link-BIMrgXbz.js} +1 -1
- package/dist/content.js +139 -137
- package/dist/elements.css +34 -0
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +349 -212
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +0 -1
- package/dist/packages/charts/src/chart-cursor.d.ts +7 -0
- package/dist/packages/charts/src/chart-theme.d.ts +1 -7
- package/dist/packages/feedback/src/async-region.d.ts +3 -1
- package/dist/packages/foundations/src/constants.stylex.d.ts +1 -0
- package/dist/packages/foundations/src/use-scroll-tab-index.d.ts +6 -0
- package/dist/packages/layout/src/app-shell.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/navigation-rail.d.ts +18 -0
- package/dist/packages/layout/src/sidebar.d.ts +2 -1
- package/dist/pierre-diff-CHQsoQSZ.js +72 -0
- package/dist/{pierre-theme-BUeJim8s.js → pierre-theme-CLgk9v3e.js} +1 -1
- package/dist/{pierre-tree-BQBbAhmI.js → pierre-tree-D3XsgEH6.js} +4 -4
- package/dist/{src-BVsyKLQ8.js → src-0mocxTaR.js} +64 -43
- package/dist/{src-Dven_9lR.js → src-D4zPPr32.js} +1 -1
- package/dist/{src-BXh4g2VY.js → src-qU5Z5LRH.js} +1 -0
- package/dist/tokens.js +1 -1
- package/dist/use-scroll-tab-index-Dxpdh4W7.js +45 -0
- package/package.json +1 -1
- package/packages/foundations/src/constants.stylex.ts +1 -1
- package/dist/code-block-DB42-a0M.js +0 -180
- package/dist/pierre-diff-C_j0nxwS.js +0 -71
package/dist/layout.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { a as e } from "./src-d7EAi61b.js";
|
|
2
|
-
import { C as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { a as e, t } from "./src-d7EAi61b.js";
|
|
2
|
+
import { C as n, O as r, T as i, i as a, n as o, w as s } from "./src-qU5Z5LRH.js";
|
|
3
|
+
import { t as c } from "./style-composition-uYlczSsB.js";
|
|
4
|
+
import { t as l } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
5
|
+
import { Button as u } from "@base-ui/react/button";
|
|
6
|
+
import { mergeProps as d } from "@base-ui/react/merge-props";
|
|
7
|
+
import * as f from "@stylexjs/stylex";
|
|
8
|
+
import { Children as p, createContext as m, useContext as h, useEffect as g, useId as _, useRef as v, useState as y } from "react";
|
|
9
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
10
|
+
import { ArrowLeft as C, PanelLeft as w, X as T } from "lucide-react";
|
|
11
|
+
import { Group as E, Panel as D, Separator as ee } from "react-resizable-panels";
|
|
11
12
|
// packages/layout/src/frame.stylex.ts
|
|
12
|
-
var
|
|
13
|
+
var O = {
|
|
13
14
|
sidebarMobile: "@media (max-width:800px)",
|
|
14
15
|
sidebarDesktopQuery: "(min-width:801px)",
|
|
15
16
|
sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
|
|
16
17
|
detailMobile: "@media (max-width:720px)",
|
|
17
18
|
toolbarCompact: "@container toolbar (max-width:600px)",
|
|
18
19
|
workbenchCompact: "@container workbench (max-width:860px)"
|
|
19
|
-
},
|
|
20
|
+
}, k = m(null), A = {
|
|
20
21
|
footer: {
|
|
21
22
|
kB7OPa: "x9f619",
|
|
22
23
|
k1xSpc: "x78zum5",
|
|
@@ -50,53 +51,53 @@ var T = {
|
|
|
50
51
|
k8WAf4: "xn9t2bk",
|
|
51
52
|
$$css: !0
|
|
52
53
|
}
|
|
53
|
-
},
|
|
54
|
-
inline:
|
|
55
|
-
navigation:
|
|
54
|
+
}, te = {
|
|
55
|
+
inline: A.inlineFooter,
|
|
56
|
+
navigation: A.navigationFooter
|
|
56
57
|
};
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
58
|
+
function j({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
|
|
59
|
+
return /* @__PURE__ */ S(b, { children: [
|
|
60
|
+
/* @__PURE__ */ S("div", {
|
|
60
61
|
...{
|
|
61
62
|
0: { className: "x9f619 x78zum5 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd" },
|
|
62
63
|
1: { className: "x9f619 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd x1s85apg x1rhi5y4" }
|
|
63
64
|
}[e == null | 0],
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ x("div", {
|
|
65
66
|
className: "x78zum5 x6s0dn4 x98rzlu xeuugli",
|
|
66
67
|
children: e
|
|
67
|
-
}),
|
|
68
|
+
}), r]
|
|
68
69
|
}),
|
|
69
|
-
|
|
70
|
+
t,
|
|
71
|
+
/* @__PURE__ */ x("div", {
|
|
70
72
|
role: "region",
|
|
71
73
|
"aria-label": "Navigation links",
|
|
72
|
-
tabIndex: 0,
|
|
73
74
|
className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
74
|
-
children:
|
|
75
|
+
children: i
|
|
75
76
|
}),
|
|
76
|
-
|
|
77
|
+
n != null && /* @__PURE__ */ x("div", {
|
|
77
78
|
className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
|
|
78
|
-
children:
|
|
79
|
+
children: n
|
|
79
80
|
})
|
|
80
81
|
] });
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
function M() {
|
|
84
|
+
return /* @__PURE__ */ x("div", {
|
|
84
85
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
render: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ x(e.Close, {
|
|
87
|
+
render: /* @__PURE__ */ x(s, {
|
|
87
88
|
variant: "ghost",
|
|
88
89
|
"aria-label": "Close navigation"
|
|
89
90
|
}),
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
+
children: /* @__PURE__ */ x(T, {
|
|
91
92
|
size: 16,
|
|
92
93
|
"aria-hidden": !0
|
|
93
94
|
})
|
|
94
95
|
})
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
-
let n =
|
|
99
|
-
return /* @__PURE__ */
|
|
98
|
+
function N({ children: e, label: t = "Main" }) {
|
|
99
|
+
let n = h(k), r = n !== null && !n.isExpanded;
|
|
100
|
+
return /* @__PURE__ */ x("nav", {
|
|
100
101
|
"aria-label": t,
|
|
101
102
|
...{
|
|
102
103
|
0: { className: "x78zum5 xdt5ytf xksvo5r" },
|
|
@@ -105,12 +106,12 @@ function j({ children: e, label: t = "Main" }) {
|
|
|
105
106
|
children: e
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
let n =
|
|
110
|
-
return /* @__PURE__ */
|
|
109
|
+
function P({ children: e, label: t }) {
|
|
110
|
+
let n = h(k), r = n !== null && !n.isExpanded, i = _();
|
|
111
|
+
return /* @__PURE__ */ S("section", {
|
|
111
112
|
"aria-labelledby": i,
|
|
112
113
|
className: "xn9t2bk",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ x("div", {
|
|
114
115
|
id: i,
|
|
115
116
|
...{
|
|
116
117
|
0: { className: "xeuugli xn9t2bk xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
|
|
@@ -120,52 +121,52 @@ function M({ children: e, label: t }) {
|
|
|
120
121
|
}), e]
|
|
121
122
|
});
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
-
let
|
|
125
|
-
return /* @__PURE__ */
|
|
124
|
+
function F({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
125
|
+
let l = h(k), d = _(), f = l !== null && !l.isExpanded;
|
|
126
|
+
return /* @__PURE__ */ x("div", {
|
|
126
127
|
...{
|
|
127
128
|
0: { className: "x78zum5 xeuugli x1ok0vyi" },
|
|
128
129
|
1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
|
|
129
130
|
}[!!n | 0],
|
|
130
|
-
children: /* @__PURE__ */
|
|
131
|
-
...
|
|
132
|
-
...
|
|
133
|
-
className:
|
|
134
|
-
style:
|
|
131
|
+
children: /* @__PURE__ */ S(u, {
|
|
132
|
+
...s,
|
|
133
|
+
...c({
|
|
134
|
+
className: a,
|
|
135
|
+
style: o,
|
|
135
136
|
styles: {
|
|
136
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" },
|
|
137
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" }
|
|
138
|
-
}[!!
|
|
139
|
+
}[!!f | 0]
|
|
139
140
|
}),
|
|
140
141
|
"aria-current": n ? "page" : void 0,
|
|
141
|
-
"aria-labelledby":
|
|
142
|
-
title:
|
|
142
|
+
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? d : void 0),
|
|
143
|
+
title: s.title ?? (typeof e == "string" ? e : void 0),
|
|
143
144
|
onClick: (e) => {
|
|
144
|
-
i !== void 0 && i(e), !e.defaultPrevented &&
|
|
145
|
+
i !== void 0 && i(e), !e.defaultPrevented && l !== null && r && l.onNavigate();
|
|
145
146
|
},
|
|
146
|
-
children: [t != null && /* @__PURE__ */
|
|
147
|
+
children: [t != null && /* @__PURE__ */ x("span", {
|
|
147
148
|
"aria-hidden": !0,
|
|
148
149
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
149
150
|
children: t
|
|
150
|
-
}), /* @__PURE__ */
|
|
151
|
-
id:
|
|
151
|
+
}), /* @__PURE__ */ x("span", {
|
|
152
|
+
id: d,
|
|
152
153
|
...{
|
|
153
154
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
154
155
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
|
|
155
|
-
}[!!
|
|
156
|
+
}[!!f | 0],
|
|
156
157
|
children: e
|
|
157
158
|
})]
|
|
158
159
|
})
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
-
let s =
|
|
162
|
+
function I({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
|
|
163
|
+
let s = h(k), c = _(), l = s !== null && !s.isExpanded, u = {
|
|
163
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" },
|
|
164
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" },
|
|
165
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" },
|
|
166
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" }
|
|
167
168
|
}[!!l << 1 | !!n];
|
|
168
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ S("a", {
|
|
169
170
|
...o,
|
|
170
171
|
"aria-current": n ? "page" : void 0,
|
|
171
172
|
"aria-labelledby": o["aria-labelledby"] ?? (o["aria-label"] === void 0 ? c : void 0),
|
|
@@ -180,11 +181,11 @@ function P({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
180
181
|
...u.style,
|
|
181
182
|
...a
|
|
182
183
|
},
|
|
183
|
-
children: [t != null && /* @__PURE__ */
|
|
184
|
+
children: [t != null && /* @__PURE__ */ x("span", {
|
|
184
185
|
"aria-hidden": !0,
|
|
185
186
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
186
187
|
children: t
|
|
187
|
-
}), /* @__PURE__ */
|
|
188
|
+
}), /* @__PURE__ */ x("span", {
|
|
188
189
|
id: c,
|
|
189
190
|
...{
|
|
190
191
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
@@ -194,9 +195,9 @@ function P({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
194
195
|
})]
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
let n =
|
|
199
|
-
return /* @__PURE__ */
|
|
198
|
+
function L({ children: e, shouldGrow: t = !1 }) {
|
|
199
|
+
let n = h(k), r = n !== null && !n.isExpanded;
|
|
200
|
+
return /* @__PURE__ */ x("span", {
|
|
200
201
|
...{
|
|
201
202
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
202
203
|
2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
|
|
@@ -206,156 +207,290 @@ function F({ children: e, shouldGrow: t = !1 }) {
|
|
|
206
207
|
children: e
|
|
207
208
|
});
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
-
let n =
|
|
211
|
-
return /* @__PURE__ */
|
|
212
|
-
...
|
|
210
|
+
function R({ children: e, layout: t = "inline" }) {
|
|
211
|
+
let n = h(k), r = n !== null && !n.isExpanded;
|
|
212
|
+
return /* @__PURE__ */ x("div", {
|
|
213
|
+
...f.props(A.footer, r && A.collapsedFooter, te[t]),
|
|
213
214
|
children: e
|
|
214
215
|
});
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
-
let t =
|
|
218
|
-
return t === null ? null : /* @__PURE__ */
|
|
217
|
+
function z() {
|
|
218
|
+
let t = h(k);
|
|
219
|
+
return t === null ? null : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
219
220
|
className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x78zum5 x1ykma7f",
|
|
220
|
-
children: /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ x(s, {
|
|
221
222
|
ref: t.navigationToggleRef,
|
|
222
223
|
variant: "ghost",
|
|
223
224
|
"aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
224
225
|
"aria-controls": t.sidebarId,
|
|
225
226
|
"aria-expanded": t.isExpanded,
|
|
226
227
|
onClick: t.onToggle,
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ x(w, {
|
|
228
229
|
size: 16,
|
|
229
230
|
"aria-hidden": !0
|
|
230
231
|
})
|
|
231
232
|
})
|
|
232
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ x("div", {
|
|
233
234
|
className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x1s85apg x1rhi5y4",
|
|
234
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ x(e.Trigger, {
|
|
235
236
|
ref: t.mobileNavigationToggleRef,
|
|
236
237
|
handle: t.drawerHandle,
|
|
237
|
-
render: /* @__PURE__ */
|
|
238
|
+
render: /* @__PURE__ */ x(s, {
|
|
238
239
|
variant: "ghost",
|
|
239
240
|
"aria-label": "Open navigation"
|
|
240
241
|
}),
|
|
241
|
-
children: /* @__PURE__ */
|
|
242
|
+
children: /* @__PURE__ */ x(w, {
|
|
242
243
|
size: 16,
|
|
243
244
|
"aria-hidden": !0
|
|
244
245
|
})
|
|
245
246
|
})
|
|
246
247
|
})] });
|
|
247
248
|
}
|
|
249
|
+
// packages/layout/src/navigation-rail.tsx
|
|
250
|
+
var B = m(!1), V = {
|
|
251
|
+
mobileSelected: {
|
|
252
|
+
kWkggS: "x1r7kqkb",
|
|
253
|
+
$$css: !0
|
|
254
|
+
},
|
|
255
|
+
mobileLink: {
|
|
256
|
+
kXwgrk: "xdt5ytf",
|
|
257
|
+
kAzted: "xid9utz",
|
|
258
|
+
kg3NbH: "x14w6jbu",
|
|
259
|
+
k8WAf4: "x1hmw7ec",
|
|
260
|
+
kOIVth: "xunmzkg",
|
|
261
|
+
kVAM5u: "x9r1u3d",
|
|
262
|
+
kWkggS: "xjbqb8w",
|
|
263
|
+
kMwMTN: "xbixft",
|
|
264
|
+
kGuDYH: "xy8obcc",
|
|
265
|
+
kLWn49: "xas2l8k",
|
|
266
|
+
kMnn75: "xkrqix3",
|
|
267
|
+
kGzVvX: "xif5pkx",
|
|
268
|
+
kSReZ0: "x1ecmtor",
|
|
269
|
+
kPJHz1: "x13qnu6",
|
|
270
|
+
k7shQP: "x9v5kkp",
|
|
271
|
+
kZs9gx: "x19rmrnh",
|
|
272
|
+
kiEn40: "x1bqaal",
|
|
273
|
+
$$css: !0
|
|
274
|
+
},
|
|
275
|
+
rounded: {
|
|
276
|
+
kaIpWk: "x1ok0vyi",
|
|
277
|
+
$$css: !0
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
function H({ label: e, links: a, action: o }) {
|
|
281
|
+
let c = h(B), l = h(k);
|
|
282
|
+
function u(e, t) {
|
|
283
|
+
e?.(t);
|
|
284
|
+
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
285
|
+
t.button !== 0 || n || r || l?.onNavigate();
|
|
286
|
+
}
|
|
287
|
+
let p = (e) => {
|
|
288
|
+
o?.onClick(e), e.defaultPrevented || l?.onNavigate();
|
|
289
|
+
};
|
|
290
|
+
return c ? /* @__PURE__ */ S("div", {
|
|
291
|
+
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
292
|
+
children: [/* @__PURE__ */ x("nav", {
|
|
293
|
+
"aria-label": e,
|
|
294
|
+
className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
|
|
295
|
+
children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...i }) => /* @__PURE__ */ S("a", {
|
|
296
|
+
...d(f.props(r.base, r.button, V.mobileLink, V.rounded, n && V.mobileSelected), i),
|
|
297
|
+
"aria-current": n ? "location" : void 0,
|
|
298
|
+
onClick: (e) => u(i.onClick, e),
|
|
299
|
+
children: [/* @__PURE__ */ x("span", {
|
|
300
|
+
"aria-hidden": !0,
|
|
301
|
+
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
302
|
+
children: t
|
|
303
|
+
}), /* @__PURE__ */ x("span", {
|
|
304
|
+
className: "xeuugli x193iq5w xj0a0fe",
|
|
305
|
+
children: e
|
|
306
|
+
})]
|
|
307
|
+
}, i.href))
|
|
308
|
+
}), o !== void 0 && /* @__PURE__ */ x("div", {
|
|
309
|
+
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
310
|
+
children: /* @__PURE__ */ S(n, {
|
|
311
|
+
variant: "ghost",
|
|
312
|
+
onClick: p,
|
|
313
|
+
children: [/* @__PURE__ */ x("span", {
|
|
314
|
+
"aria-hidden": !0,
|
|
315
|
+
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
316
|
+
children: o.icon
|
|
317
|
+
}), o.label]
|
|
318
|
+
})
|
|
319
|
+
})]
|
|
320
|
+
}) : /* @__PURE__ */ x(t.Provider, { children: /* @__PURE__ */ S("div", {
|
|
321
|
+
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
322
|
+
children: [/* @__PURE__ */ x("nav", {
|
|
323
|
+
"aria-label": e,
|
|
324
|
+
className: "x78zum5 xdt5ytf x1qjc9v5",
|
|
325
|
+
children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...a }) => /* @__PURE__ */ x("div", {
|
|
326
|
+
...{
|
|
327
|
+
0: { className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp" },
|
|
328
|
+
1: { className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp x1r7kqkb xh3r7i3" }
|
|
329
|
+
}[!!r | 0],
|
|
330
|
+
children: /* @__PURE__ */ S(t.Root, { children: [/* @__PURE__ */ x(t.Trigger, {
|
|
331
|
+
render: /* @__PURE__ */ x(i, {
|
|
332
|
+
...a,
|
|
333
|
+
"aria-label": e,
|
|
334
|
+
"aria-current": r ? "location" : void 0,
|
|
335
|
+
onClick: (e) => u(a.onClick, e)
|
|
336
|
+
}),
|
|
337
|
+
children: n
|
|
338
|
+
}), /* @__PURE__ */ x(t.Portal, { children: /* @__PURE__ */ x(t.Positioner, {
|
|
339
|
+
side: "right",
|
|
340
|
+
children: /* @__PURE__ */ x(t.Popup, { children: e })
|
|
341
|
+
}) })] })
|
|
342
|
+
}, a.href))
|
|
343
|
+
}), o !== void 0 && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ x("div", {
|
|
344
|
+
className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
|
|
345
|
+
children: /* @__PURE__ */ S(t.Root, { children: [/* @__PURE__ */ x(t.Trigger, {
|
|
346
|
+
render: /* @__PURE__ */ x(s, {
|
|
347
|
+
variant: "ghost",
|
|
348
|
+
"aria-label": o.label
|
|
349
|
+
}),
|
|
350
|
+
onClick: p,
|
|
351
|
+
children: o.icon
|
|
352
|
+
}), /* @__PURE__ */ x(t.Portal, { children: /* @__PURE__ */ x(t.Positioner, {
|
|
353
|
+
side: "right",
|
|
354
|
+
children: /* @__PURE__ */ x(t.Popup, { children: o.label })
|
|
355
|
+
}) })] })
|
|
356
|
+
})] })]
|
|
357
|
+
}) });
|
|
358
|
+
}
|
|
248
359
|
// packages/layout/src/app-shell.tsx
|
|
249
|
-
var
|
|
360
|
+
var U = { drawer: {
|
|
250
361
|
kzqmXN: "x68ju84",
|
|
251
362
|
ks0D6T: "x1recik0",
|
|
252
363
|
$$css: !0
|
|
253
364
|
} };
|
|
254
|
-
function
|
|
255
|
-
let [
|
|
256
|
-
return
|
|
257
|
-
let e = globalThis.matchMedia(
|
|
365
|
+
function W({ rail: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
|
|
366
|
+
let c = t != null, [l, u] = y(!0), [d, f] = y(!1), p = s || c && !l, [m] = y(() => e.createHandle()), h = _(), b = v(null), C = v(null), w = v(null), T = v(!1);
|
|
367
|
+
return g(() => {
|
|
368
|
+
let e = globalThis.matchMedia(O.sidebarDesktopQuery);
|
|
258
369
|
function t() {
|
|
259
|
-
e.matches &&
|
|
370
|
+
e.matches && f(!1);
|
|
260
371
|
}
|
|
261
372
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
262
|
-
}, []), /* @__PURE__ */
|
|
373
|
+
}, []), /* @__PURE__ */ S(k.Provider, {
|
|
263
374
|
value: {
|
|
264
|
-
isExpanded:
|
|
265
|
-
sidebarId:
|
|
266
|
-
drawerHandle:
|
|
267
|
-
navigationToggleRef:
|
|
268
|
-
mobileNavigationToggleRef:
|
|
269
|
-
onToggle: () =>
|
|
375
|
+
isExpanded: l,
|
|
376
|
+
sidebarId: h,
|
|
377
|
+
drawerHandle: m,
|
|
378
|
+
navigationToggleRef: b,
|
|
379
|
+
mobileNavigationToggleRef: C,
|
|
380
|
+
onToggle: () => u((e) => !e),
|
|
270
381
|
onNavigate: () => {
|
|
271
|
-
|
|
382
|
+
T.current = d, f(!1);
|
|
272
383
|
}
|
|
273
384
|
},
|
|
274
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ S("div", {
|
|
275
386
|
className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
276
|
-
children: [
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
387
|
+
children: [
|
|
388
|
+
c && /* @__PURE__ */ x("div", {
|
|
389
|
+
hidden: s,
|
|
390
|
+
...{
|
|
391
|
+
0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
|
|
392
|
+
1: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
|
|
393
|
+
}[!!s | 0],
|
|
394
|
+
children: t
|
|
395
|
+
}),
|
|
396
|
+
/* @__PURE__ */ x("aside", {
|
|
397
|
+
id: h,
|
|
398
|
+
"aria-label": "Navigation",
|
|
399
|
+
hidden: p,
|
|
400
|
+
...{
|
|
401
|
+
0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x68ju84 x2lah0s x2lwn1j xeuugli" },
|
|
402
|
+
4: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3" },
|
|
403
|
+
2: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
|
|
404
|
+
6: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
|
|
405
|
+
1: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x68ju84 x2lah0s x2lwn1j xeuugli x1s85apg" },
|
|
406
|
+
5: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3 x1s85apg" },
|
|
407
|
+
3: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" },
|
|
408
|
+
7: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
|
|
409
|
+
}[!!c << 2 | !(c || l) << 1 | !!p],
|
|
410
|
+
children: /* @__PURE__ */ x(j, {
|
|
411
|
+
header: n,
|
|
412
|
+
footer: i,
|
|
413
|
+
children: r
|
|
414
|
+
})
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ x("main", {
|
|
417
|
+
id: o,
|
|
418
|
+
tabIndex: -1,
|
|
419
|
+
className: "xeuugli x98rzlu",
|
|
420
|
+
children: a
|
|
290
421
|
})
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
open: l && !o,
|
|
300
|
-
onOpenChange: u,
|
|
301
|
-
children: /* @__PURE__ */ v(e.Portal, { children: [/* @__PURE__ */ _(e.Backdrop, {}), /* @__PURE__ */ _(e.Viewport, { children: /* @__PURE__ */ v(e.Popup, {
|
|
302
|
-
xstyle: R.drawer,
|
|
422
|
+
]
|
|
423
|
+
}), /* @__PURE__ */ x(e.Root, {
|
|
424
|
+
handle: m,
|
|
425
|
+
open: d && !s,
|
|
426
|
+
onOpenChange: f,
|
|
427
|
+
children: /* @__PURE__ */ S(e.Portal, { children: [/* @__PURE__ */ x(e.Backdrop, {}), /* @__PURE__ */ x(e.Viewport, { children: /* @__PURE__ */ S(e.Popup, {
|
|
428
|
+
ref: w,
|
|
429
|
+
xstyle: U.drawer,
|
|
303
430
|
finalFocus: () => {
|
|
304
|
-
if (
|
|
305
|
-
|
|
306
|
-
let e = document.querySelector(`#${CSS.escape(
|
|
431
|
+
if (T.current) {
|
|
432
|
+
T.current = !1;
|
|
433
|
+
let e = document.querySelector(`#${CSS.escape(o)}`), t = document.activeElement;
|
|
434
|
+
if (t instanceof HTMLElement) {
|
|
435
|
+
let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
|
|
436
|
+
if (e !== null && e !== w.current) return t;
|
|
437
|
+
}
|
|
307
438
|
return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
|
|
308
439
|
}
|
|
309
|
-
return globalThis.matchMedia(
|
|
440
|
+
return globalThis.matchMedia(O.sidebarDesktopQuery).matches ? b.current : C.current;
|
|
310
441
|
},
|
|
311
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ x(e.Title, {
|
|
312
443
|
isVisuallyHidden: !0,
|
|
313
444
|
children: "Navigation"
|
|
314
|
-
}), /* @__PURE__ */
|
|
315
|
-
header:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
445
|
+
}), /* @__PURE__ */ x(j, {
|
|
446
|
+
header: n,
|
|
447
|
+
navigationHeader: c && /* @__PURE__ */ x(B.Provider, {
|
|
448
|
+
value: !0,
|
|
449
|
+
children: t
|
|
450
|
+
}),
|
|
451
|
+
footer: i,
|
|
452
|
+
close: /* @__PURE__ */ x(M, {}),
|
|
453
|
+
children: r
|
|
319
454
|
})]
|
|
320
455
|
}) })] })
|
|
321
456
|
})]
|
|
322
457
|
});
|
|
323
458
|
}
|
|
324
459
|
// packages/layout/src/detail-page.tsx
|
|
325
|
-
function
|
|
326
|
-
return /* @__PURE__ */
|
|
460
|
+
function G({ children: e }) {
|
|
461
|
+
return /* @__PURE__ */ x("div", {
|
|
327
462
|
className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y",
|
|
328
463
|
children: e
|
|
329
464
|
});
|
|
330
465
|
}
|
|
331
466
|
// packages/layout/src/focus-page.tsx
|
|
332
|
-
function
|
|
333
|
-
return /* @__PURE__ */
|
|
467
|
+
function K({ children: e }) {
|
|
468
|
+
return /* @__PURE__ */ x("main", {
|
|
334
469
|
id: "main",
|
|
335
470
|
tabIndex: -1,
|
|
336
471
|
className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
337
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ x("div", {
|
|
338
473
|
className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
|
|
339
474
|
children: e
|
|
340
475
|
})
|
|
341
476
|
});
|
|
342
477
|
}
|
|
343
478
|
// packages/layout/src/workbench.tsx
|
|
344
|
-
function
|
|
345
|
-
return /* @__PURE__ */
|
|
479
|
+
function q({ header: e, children: t, inspector: n }) {
|
|
480
|
+
return /* @__PURE__ */ S("div", {
|
|
346
481
|
className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
347
|
-
children: [e != null && /* @__PURE__ */
|
|
482
|
+
children: [e != null && /* @__PURE__ */ x("div", {
|
|
348
483
|
className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
|
|
349
484
|
children: e
|
|
350
|
-
}), /* @__PURE__ */
|
|
485
|
+
}), /* @__PURE__ */ S("div", {
|
|
351
486
|
className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
|
|
352
|
-
children: [/* @__PURE__ */
|
|
487
|
+
children: [/* @__PURE__ */ x("div", {
|
|
353
488
|
...{
|
|
354
489
|
0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
|
|
355
490
|
1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
|
|
356
491
|
}[n !== void 0 | 0],
|
|
357
492
|
children: t
|
|
358
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
493
|
+
}), n !== void 0 && /* @__PURE__ */ x("aside", {
|
|
359
494
|
"aria-label": n.label,
|
|
360
495
|
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
361
496
|
children: n.content
|
|
@@ -363,11 +498,13 @@ function H({ header: e, children: t, inspector: n }) {
|
|
|
363
498
|
})]
|
|
364
499
|
});
|
|
365
500
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
501
|
+
function ne({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
502
|
+
let i = l();
|
|
503
|
+
return /* @__PURE__ */ x("div", {
|
|
504
|
+
ref: i.ref,
|
|
368
505
|
role: "region",
|
|
369
506
|
"aria-label": e,
|
|
370
|
-
tabIndex:
|
|
507
|
+
tabIndex: i.tabIndex,
|
|
371
508
|
"data-scroll-restoration-id": r,
|
|
372
509
|
...{
|
|
373
510
|
0: { className: "x1odjw0f x1e4zzel x98rzlu xeuugli x2lwn1j x1jvlu93 x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
|
|
@@ -376,21 +513,21 @@ function U({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
|
376
513
|
children: t
|
|
377
514
|
});
|
|
378
515
|
}
|
|
379
|
-
function
|
|
380
|
-
return /* @__PURE__ */
|
|
516
|
+
function J({ children: e }) {
|
|
517
|
+
return /* @__PURE__ */ x("div", {
|
|
381
518
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
382
519
|
children: e
|
|
383
520
|
});
|
|
384
521
|
}
|
|
385
522
|
// packages/layout/src/view-stack.tsx
|
|
386
|
-
function
|
|
387
|
-
return /* @__PURE__ */
|
|
523
|
+
function Y({ children: e }) {
|
|
524
|
+
return /* @__PURE__ */ x("div", {
|
|
388
525
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
389
526
|
children: e
|
|
390
527
|
});
|
|
391
528
|
}
|
|
392
|
-
function
|
|
393
|
-
return /* @__PURE__ */
|
|
529
|
+
function X({ isActive: e, children: t }) {
|
|
530
|
+
return /* @__PURE__ */ x("section", {
|
|
394
531
|
"aria-hidden": !e,
|
|
395
532
|
inert: !e,
|
|
396
533
|
...{
|
|
@@ -400,91 +537,91 @@ function G({ isActive: e, children: t }) {
|
|
|
400
537
|
children: t
|
|
401
538
|
});
|
|
402
539
|
}
|
|
403
|
-
var
|
|
404
|
-
Root:
|
|
405
|
-
Panel:
|
|
406
|
-
},
|
|
540
|
+
var Z = {
|
|
541
|
+
Root: Y,
|
|
542
|
+
Panel: X
|
|
543
|
+
}, re = { action: {
|
|
407
544
|
k7Eaqz: "xeuugli",
|
|
408
545
|
ks0D6T: "x193iq5w",
|
|
409
546
|
$$css: !0
|
|
410
547
|
} };
|
|
411
|
-
function
|
|
412
|
-
let o =
|
|
413
|
-
return
|
|
548
|
+
function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
|
|
549
|
+
let o = p.toArray(e).length > 0, s = p.toArray(t).length > 0, c = p.toArray(i).length > 0, l = p.toArray(a).length > 0;
|
|
550
|
+
return p.toArray([
|
|
414
551
|
e,
|
|
415
552
|
t,
|
|
416
553
|
i,
|
|
417
554
|
a
|
|
418
|
-
]).length === 0 ? null : /* @__PURE__ */
|
|
555
|
+
]).length === 0 ? null : /* @__PURE__ */ S("div", {
|
|
419
556
|
className: "x9f619 x78zum5 x12h1iku x14ut1dr x1qjc9v5 xnyqvp6 x2lah0s xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xeuugli",
|
|
420
557
|
children: [
|
|
421
|
-
|
|
558
|
+
l ? /* @__PURE__ */ x("div", {
|
|
422
559
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
423
560
|
children: a
|
|
424
|
-
}) : r && /* @__PURE__ */
|
|
425
|
-
o && /* @__PURE__ */
|
|
561
|
+
}) : r && /* @__PURE__ */ x(z, {}),
|
|
562
|
+
o && /* @__PURE__ */ x(n ? "nav" : "h1", {
|
|
426
563
|
tabIndex: n ? void 0 : -1,
|
|
427
564
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
428
565
|
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xeuugli xs83m0k x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
|
|
429
|
-
children: /* @__PURE__ */
|
|
566
|
+
children: /* @__PURE__ */ x("span", {
|
|
430
567
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
431
568
|
children: e
|
|
432
569
|
})
|
|
433
570
|
}),
|
|
434
|
-
c && /* @__PURE__ */
|
|
571
|
+
c && /* @__PURE__ */ x("div", {
|
|
435
572
|
className: "x78zum5 x6s0dn4 xeuugli x2lah0s",
|
|
436
573
|
children: i
|
|
437
574
|
}),
|
|
438
|
-
s && /* @__PURE__ */
|
|
575
|
+
s && /* @__PURE__ */ x("div", {
|
|
439
576
|
className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli x2lah0s x8x9d4c",
|
|
440
577
|
children: t
|
|
441
578
|
})
|
|
442
579
|
]
|
|
443
580
|
});
|
|
444
581
|
}
|
|
445
|
-
function
|
|
582
|
+
function ie({ icon: e, children: t, ...r }) {
|
|
446
583
|
let i = e != null;
|
|
447
|
-
return /* @__PURE__ */
|
|
584
|
+
return /* @__PURE__ */ x("div", {
|
|
448
585
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
449
|
-
children: /* @__PURE__ */
|
|
586
|
+
children: /* @__PURE__ */ S(n, {
|
|
450
587
|
...r,
|
|
451
588
|
variant: "ghost",
|
|
452
|
-
"aria-label": r["aria-label"] ?? (typeof
|
|
453
|
-
xstyle:
|
|
454
|
-
children: [i && /* @__PURE__ */
|
|
589
|
+
"aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
590
|
+
xstyle: re.action,
|
|
591
|
+
children: [i && /* @__PURE__ */ x("span", {
|
|
455
592
|
"aria-hidden": !0,
|
|
456
593
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
457
594
|
children: e
|
|
458
|
-
}), i || typeof
|
|
595
|
+
}), i || typeof t == "string" ? /* @__PURE__ */ x("span", {
|
|
459
596
|
...{
|
|
460
597
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
461
598
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
462
599
|
}[!!i | 0],
|
|
463
|
-
children:
|
|
464
|
-
}) :
|
|
600
|
+
children: t
|
|
601
|
+
}) : t]
|
|
465
602
|
})
|
|
466
603
|
});
|
|
467
604
|
}
|
|
468
605
|
// packages/layout/src/page-content.tsx
|
|
469
|
-
function
|
|
470
|
-
return /* @__PURE__ */
|
|
606
|
+
function ae({ children: e }) {
|
|
607
|
+
return /* @__PURE__ */ x("div", {
|
|
471
608
|
className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
|
|
472
609
|
children: e
|
|
473
610
|
});
|
|
474
611
|
}
|
|
475
612
|
// packages/layout/src/record-page.tsx
|
|
476
|
-
function
|
|
477
|
-
return /* @__PURE__ */
|
|
613
|
+
function oe({ children: e }) {
|
|
614
|
+
return /* @__PURE__ */ x("div", {
|
|
478
615
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
479
616
|
children: e
|
|
480
617
|
});
|
|
481
618
|
}
|
|
482
|
-
function
|
|
483
|
-
return /* @__PURE__ */
|
|
619
|
+
function se({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
|
|
620
|
+
return /* @__PURE__ */ x(Q, {
|
|
484
621
|
showBreadcrumb: !0,
|
|
485
622
|
showNavigation: i,
|
|
486
623
|
actions: r,
|
|
487
|
-
title: /* @__PURE__ */
|
|
624
|
+
title: /* @__PURE__ */ S("a", {
|
|
488
625
|
href: t,
|
|
489
626
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
490
627
|
onClick: (e) => {
|
|
@@ -492,65 +629,65 @@ function Q({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i
|
|
|
492
629
|
let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
493
630
|
t || r || (e.preventDefault(), n());
|
|
494
631
|
},
|
|
495
|
-
children: [/* @__PURE__ */
|
|
632
|
+
children: [/* @__PURE__ */ x(C, {
|
|
496
633
|
size: 16,
|
|
497
634
|
"aria-hidden": !0,
|
|
498
635
|
className: "x2lah0s"
|
|
499
|
-
}), /* @__PURE__ */
|
|
636
|
+
}), /* @__PURE__ */ x("span", {
|
|
500
637
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
501
638
|
children: e
|
|
502
639
|
})]
|
|
503
640
|
})
|
|
504
641
|
});
|
|
505
642
|
}
|
|
506
|
-
function
|
|
507
|
-
return /* @__PURE__ */
|
|
643
|
+
function ce({ children: e }) {
|
|
644
|
+
return /* @__PURE__ */ x(G, { children: /* @__PURE__ */ x("div", {
|
|
508
645
|
className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
|
|
509
646
|
children: e
|
|
510
647
|
}) });
|
|
511
648
|
}
|
|
512
|
-
function
|
|
513
|
-
return /* @__PURE__ */
|
|
649
|
+
function le({ children: e }) {
|
|
650
|
+
return /* @__PURE__ */ x("div", {
|
|
514
651
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
515
652
|
children: e
|
|
516
653
|
});
|
|
517
654
|
}
|
|
518
|
-
function
|
|
519
|
-
return /* @__PURE__ */
|
|
655
|
+
function $({ title: e, description: t, icon: n, titleRef: r }) {
|
|
656
|
+
return /* @__PURE__ */ S("header", {
|
|
520
657
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
521
|
-
children: [/* @__PURE__ */
|
|
658
|
+
children: [/* @__PURE__ */ S("div", {
|
|
522
659
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
523
|
-
children: [
|
|
660
|
+
children: [n != null && /* @__PURE__ */ x("span", {
|
|
524
661
|
"aria-hidden": !0,
|
|
525
662
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
526
|
-
children:
|
|
527
|
-
}), /* @__PURE__ */
|
|
528
|
-
ref:
|
|
663
|
+
children: n
|
|
664
|
+
}), /* @__PURE__ */ x(o, {
|
|
665
|
+
ref: r,
|
|
529
666
|
tabIndex: -1,
|
|
530
667
|
className: "xeuugli x1t137rt",
|
|
531
668
|
children: e
|
|
532
669
|
})]
|
|
533
|
-
}), t != null && /* @__PURE__ */
|
|
670
|
+
}), t != null && /* @__PURE__ */ x(a, { children: t })]
|
|
534
671
|
});
|
|
535
672
|
}
|
|
536
|
-
function
|
|
537
|
-
return /* @__PURE__ */
|
|
673
|
+
function ue({ children: e, label: t = "Properties" }) {
|
|
674
|
+
return /* @__PURE__ */ x("aside", {
|
|
538
675
|
"aria-label": t,
|
|
539
676
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
540
677
|
children: e
|
|
541
678
|
});
|
|
542
679
|
}
|
|
543
|
-
var
|
|
544
|
-
Root:
|
|
545
|
-
Toolbar:
|
|
546
|
-
Body:
|
|
547
|
-
Content:
|
|
548
|
-
Header:
|
|
549
|
-
Aside:
|
|
680
|
+
var de = {
|
|
681
|
+
Root: oe,
|
|
682
|
+
Toolbar: se,
|
|
683
|
+
Body: ce,
|
|
684
|
+
Content: le,
|
|
685
|
+
Header: $,
|
|
686
|
+
Aside: ue
|
|
550
687
|
};
|
|
551
688
|
// packages/layout/src/resizable.tsx
|
|
552
|
-
function
|
|
553
|
-
return /* @__PURE__ */
|
|
689
|
+
function fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
|
|
690
|
+
return /* @__PURE__ */ x(E, {
|
|
554
691
|
orientation: e,
|
|
555
692
|
defaultLayout: t,
|
|
556
693
|
onLayoutChanged: (e, t) => {
|
|
@@ -562,29 +699,29 @@ function ae({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
562
699
|
coarse: 44,
|
|
563
700
|
fine: 12
|
|
564
701
|
},
|
|
565
|
-
...
|
|
702
|
+
...d({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
566
703
|
});
|
|
567
704
|
}
|
|
568
|
-
function
|
|
569
|
-
return /* @__PURE__ */
|
|
705
|
+
function pe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
706
|
+
return /* @__PURE__ */ x(D, {
|
|
570
707
|
id: e,
|
|
571
708
|
defaultSize: t === void 0 ? void 0 : `${t}%`,
|
|
572
709
|
minSize: `${n}%`,
|
|
573
710
|
maxSize: `${r}%`,
|
|
574
711
|
collapsible: i,
|
|
575
712
|
elementRef: a,
|
|
576
|
-
...
|
|
713
|
+
...d({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
577
714
|
});
|
|
578
715
|
}
|
|
579
|
-
function
|
|
580
|
-
return /* @__PURE__ */
|
|
716
|
+
function me({ ref: e, ...t }) {
|
|
717
|
+
return /* @__PURE__ */ x(ee, {
|
|
581
718
|
elementRef: e,
|
|
582
|
-
...
|
|
719
|
+
...d({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
583
720
|
});
|
|
584
721
|
}
|
|
585
|
-
var
|
|
586
|
-
Root:
|
|
587
|
-
Pane:
|
|
588
|
-
Handle:
|
|
722
|
+
var he = {
|
|
723
|
+
Root: fe,
|
|
724
|
+
Pane: pe,
|
|
725
|
+
Handle: me
|
|
589
726
|
};
|
|
590
|
-
export {
|
|
727
|
+
export { W as AppShell, G as DetailPage, K as FocusPage, N as Navigation, F as NavigationItem, I as NavigationLink, H as NavigationRail, P as NavigationSection, ae as PageContent, Q as PageToolbar, de as RecordPage, he as Resizable, R as SidebarFooter, L as SidebarLabel, ie as ToolbarAction, Z as ViewStack, q as Workbench, J as WorkbenchFooter, ne as WorkbenchScroll };
|