@mechane-ai/elements 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +11 -19
- package/README.md +49 -25
- package/dist/accessibility-P89UG9-r.js +25 -0
- package/dist/agent.js +1 -0
- package/dist/ai.js +50 -44
- package/dist/{categorical-values-BECG-J6R.js → categorical-values-DnGR_pQx.js} +3 -3
- package/dist/{chart-frame-CJFnI39T.js → chart-frame-BsyI1Zc8.js} +58 -57
- package/dist/{chart-input-DwAobO8Y.js → chart-input-r4S3-QCT.js} +2 -2
- package/dist/chart-navigation-D7OkLdSx.js +119 -0
- package/dist/charts/cartesian.js +560 -583
- package/dist/charts/distribution.js +218 -218
- package/dist/charts/graph.js +86 -85
- package/dist/charts/hierarchy.js +4 -4
- package/dist/charts/matrix.js +148 -147
- package/dist/charts/timeline.js +77 -76
- package/dist/charts.js +2 -2
- package/dist/code-block-C4K1sM9O.js +255 -0
- package/dist/collections.js +828 -607
- package/dist/constants.stylex-BILvnwUk.js +84 -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 +2 -2
- package/dist/content/tree.js +184 -77
- package/dist/{content-link-B3ObdyZY.js → content-link-CBDqSvgP.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/control-styles-D3q_Qyxi.js +179 -0
- package/dist/csp.js +14 -1
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +359 -245
- package/dist/forms-I-WMHTkr.js +139 -0
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +271 -241
- package/dist/navigation/commands.js +87 -76
- package/dist/{navigation-D2_sGy3C.js → navigation-CveMIuXI.js} +1 -1
- package/dist/navigation.js +2 -2
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/message-action.d.ts +1 -1
- package/dist/packages/charts/src/chart-navigation.d.ts +18 -2
- package/dist/packages/charts/src/chart-surface.d.ts +23 -0
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -2
- package/dist/packages/collections/src/data-table.d.ts +7 -2
- package/dist/packages/collections/src/index.d.ts +4 -1
- package/dist/packages/collections/src/query-controls.d.ts +18 -0
- package/dist/packages/collections/src/table-query.d.ts +64 -0
- package/dist/packages/collections/src/use-collection-controls.d.ts +3 -8
- package/dist/packages/content/src/pierre-theme.d.ts +0 -1
- package/dist/packages/core/src/actions.d.ts +15 -13
- package/dist/packages/core/src/copy-value.d.ts +3 -2
- package/dist/packages/core/src/disclosure.d.ts +14 -11
- package/dist/packages/feedback/src/notifications.d.ts +15 -15
- package/dist/packages/feedback/src/toast.d.ts +9 -3
- package/dist/packages/forms/src/combobox.d.ts +31 -41
- package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
- package/dist/packages/forms/src/dates/index.d.ts +2 -0
- package/dist/packages/forms/src/field-styles.d.ts +0 -19
- package/dist/packages/forms/src/form-controls.d.ts +26 -24
- package/dist/packages/forms/src/forms.d.ts +17 -14
- package/dist/packages/forms/src/select-control.d.ts +6 -4
- package/dist/packages/forms/src/select.d.ts +14 -18
- package/dist/packages/forms/src/selection-state.d.ts +11 -0
- package/dist/packages/forms/src/selection-styles.d.ts +3 -0
- package/dist/packages/forms/src/selection.d.ts +21 -19
- package/dist/packages/foundations/src/agent/index.d.ts +2 -0
- package/dist/packages/foundations/src/control-state.d.ts +2 -3
- package/dist/packages/foundations/src/control-styles.d.ts +19 -0
- package/dist/packages/foundations/src/csp/index.d.ts +1 -1
- package/dist/packages/foundations/src/csp/provider.d.ts +3 -0
- package/dist/packages/foundations/src/style-composition.d.ts +4 -1
- package/dist/packages/layout/src/app-shell.d.ts +12 -1
- package/dist/packages/layout/src/index.d.ts +1 -1
- package/dist/packages/layout/src/navigation-rail.d.ts +15 -2
- package/dist/packages/layout/src/resizable.d.ts +2 -2
- package/dist/packages/layout/src/sidebar.d.ts +4 -3
- package/dist/packages/navigation/src/tab-styles.d.ts +1 -1
- package/dist/packages/navigation/src/tabs.d.ts +12 -10
- package/dist/packages/overlays/src/alert-dialog.d.ts +19 -13
- package/dist/packages/overlays/src/dialog.d.ts +39 -24
- package/dist/packages/overlays/src/drawer.d.ts +16 -26
- package/dist/packages/overlays/src/menu.d.ts +37 -44
- package/dist/packages/overlays/src/overlay-root.d.ts +10 -0
- package/dist/packages/overlays/src/popover.d.ts +11 -20
- package/dist/packages/overlays/src/preview.d.ts +6 -13
- package/dist/packages/overlays/src/tooltip.d.ts +12 -15
- package/dist/{pierre-diff-CaPsfQRo.js → pierre-diff-DJ3oOfPX.js} +5 -5
- package/dist/{src-DPRmO-JY.js → src-CNV1ewzb.js} +379 -407
- package/dist/{src-CSWIG_op.js → src-CQQvXi7a.js} +58 -81
- package/dist/{src-DWjAoOyd.js → src-D2OHco8V.js} +42 -41
- package/dist/src-DfOAlAd2.js +750 -0
- package/dist/src-na2DdkKI.js +561 -0
- package/dist/{src-C-Sx37kz.js → src-s3tWwnN4.js} +361 -518
- package/dist/styles.js +3 -0
- package/dist/{elements.css → styles2.css} +195 -97
- package/dist/tokens.js +3 -1
- package/dist/{tokens.stylex-CJbIDPB9.js → tokens.stylex-dF5CACEJ.js} +13 -93
- package/package.json +8 -9
- package/skills/elements-workspace/SKILL.md +12 -0
- package/dist/accessibility-C-aIZ1Yx.js +0 -15
- package/dist/chart-navigation-CBIeNtJq.js +0 -67
- package/dist/code-block-aC0Htt4N.js +0 -184
- package/dist/forms-BQQFas9g.js +0 -118
- package/dist/foundations.css +0 -7
- package/dist/packages/content/src/tree/pierre-tree.d.ts +0 -3
- package/dist/pierre-theme-BpNaWn1x.js +0 -126
- package/dist/pierre-tree-CYCRjdGG.js +0 -106
- package/dist/src-d7EAi61b.js +0 -617
- package/dist/src-nkgFDl-g.js +0 -1171
- package/dist/style-composition-uYlczSsB.js +0 -9
- package/styles.css +0 -2
package/dist/layout.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { E as e, T as t, i as n,
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { E as e, T as t, i as n, l as r, n as i, w as a } from "./src-s3tWwnN4.js";
|
|
2
|
+
import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
+
import { a as s, i as c } from "./src-CQQvXi7a.js";
|
|
4
|
+
import { t as l } from "./header-styles-COxCYFZx.js";
|
|
5
|
+
import { n as u } from "./accessibility-P89UG9-r.js";
|
|
6
|
+
import { a as d, i as f, t as p } from "./src-na2DdkKI.js";
|
|
7
|
+
import { r as m } from "./control-styles-D3q_Qyxi.js";
|
|
8
|
+
import * as h from "@stylexjs/stylex";
|
|
9
|
+
import { Button as g } from "@ui-sdk/react/button";
|
|
10
|
+
import { mergeProps as _ } from "@ui-sdk/react/primitive";
|
|
10
11
|
import { Children as v, createContext as y, useContext as b, useEffect as x, useId as S, useRef as C, useState as w } from "react";
|
|
11
12
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
12
|
-
import { ArrowLeft as O, PanelLeft as k, X as
|
|
13
|
-
import {
|
|
13
|
+
import { ArrowLeft as O, PanelLeft as k, X as ee } from "lucide-react";
|
|
14
|
+
import { Resizable as A, ResizableHandle as j, ResizablePanel as M } from "@ui-sdk/react/resizable";
|
|
14
15
|
// packages/layout/src/page-content.tsx
|
|
15
|
-
function
|
|
16
|
+
function N({ children: e }) {
|
|
16
17
|
return /* @__PURE__ */ E("div", {
|
|
17
18
|
className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
|
|
18
19
|
children: e
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
// packages/layout/src/frame.stylex.ts
|
|
22
|
-
var
|
|
23
|
+
var P = {
|
|
23
24
|
sidebarMobile: "@media (max-width:800px)",
|
|
24
25
|
sidebarDesktopQuery: "(min-width:801px)",
|
|
25
26
|
sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
|
|
26
27
|
detailMobile: "@media (max-width:720px)",
|
|
27
28
|
toolbarCompact: "@container toolbar (max-width:600px)",
|
|
28
29
|
workbenchCompact: "@container workbench (max-width:860px)"
|
|
29
|
-
},
|
|
30
|
+
}, F = y(null), I = {
|
|
30
31
|
header: {
|
|
31
32
|
kB7OPa: "x9f619",
|
|
32
33
|
kVAEAm: "x1n2onr6",
|
|
@@ -90,15 +91,15 @@ var F = {
|
|
|
90
91
|
k1xSpc: "x1s85apg x1rhi5y4",
|
|
91
92
|
$$css: !0
|
|
92
93
|
}
|
|
93
|
-
},
|
|
94
|
-
inline:
|
|
95
|
-
navigation:
|
|
94
|
+
}, L = {
|
|
95
|
+
inline: I.inlineFooter,
|
|
96
|
+
navigation: I.navigationFooter
|
|
96
97
|
};
|
|
97
|
-
function
|
|
98
|
-
let a = b(
|
|
98
|
+
function R({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
|
|
99
|
+
let a = b(F), o = a !== null && !a.isExpanded, s = e != null;
|
|
99
100
|
return /* @__PURE__ */ D(T, { children: [
|
|
100
101
|
/* @__PURE__ */ D("div", {
|
|
101
|
-
...
|
|
102
|
+
...h.props(I.header, l.blockEnd, !s && I.emptyHeader),
|
|
102
103
|
children: [/* @__PURE__ */ E("div", {
|
|
103
104
|
...{
|
|
104
105
|
0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
|
|
@@ -120,23 +121,23 @@ function z({ header: e, navigationHeader: t, footer: n, close: r, children: i })
|
|
|
120
121
|
})
|
|
121
122
|
] });
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function te() {
|
|
124
125
|
return /* @__PURE__ */ E("div", {
|
|
125
126
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
126
|
-
children: /* @__PURE__ */ E(
|
|
127
|
+
children: /* @__PURE__ */ E(d.Close, {
|
|
127
128
|
render: /* @__PURE__ */ E(t, {
|
|
128
129
|
variant: "ghost",
|
|
129
130
|
"aria-label": "Close navigation"
|
|
130
131
|
}),
|
|
131
|
-
children: /* @__PURE__ */ E(
|
|
132
|
+
children: /* @__PURE__ */ E(ee, {
|
|
132
133
|
size: 16,
|
|
133
134
|
"aria-hidden": !0
|
|
134
135
|
})
|
|
135
136
|
})
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
let n = b(
|
|
139
|
+
function ne({ children: e, label: t = "Main" }) {
|
|
140
|
+
let n = b(F), r = n !== null && !n.isExpanded;
|
|
140
141
|
return /* @__PURE__ */ E("nav", {
|
|
141
142
|
"aria-label": t,
|
|
142
143
|
...{
|
|
@@ -146,8 +147,8 @@ function te({ children: e, label: t = "Main" }) {
|
|
|
146
147
|
children: e
|
|
147
148
|
});
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
-
let n = b(
|
|
150
|
+
function re({ children: e, label: t }) {
|
|
151
|
+
let n = b(F), r = n !== null && !n.isExpanded, i = S();
|
|
151
152
|
return /* @__PURE__ */ D("section", {
|
|
152
153
|
"aria-labelledby": i,
|
|
153
154
|
className: "xeuugli",
|
|
@@ -161,28 +162,28 @@ function ne({ children: e, label: t }) {
|
|
|
161
162
|
}), e]
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
-
let c = b(
|
|
165
|
+
function ie({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
166
|
+
let c = b(F), l = S(), d = c !== null && !c.isExpanded;
|
|
166
167
|
return /* @__PURE__ */ E("div", {
|
|
167
168
|
...{
|
|
168
169
|
0: { className: "x78zum5 xeuugli x1ok0vyi" },
|
|
169
170
|
1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
|
|
170
171
|
}[!!n | 0],
|
|
171
|
-
children: /* @__PURE__ */ D(
|
|
172
|
+
children: /* @__PURE__ */ D(g, {
|
|
172
173
|
...s,
|
|
173
|
-
...
|
|
174
|
+
...u({
|
|
174
175
|
className: a,
|
|
175
176
|
style: o,
|
|
176
177
|
styles: {
|
|
177
178
|
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" },
|
|
178
179
|
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" }
|
|
179
|
-
}[!!
|
|
180
|
+
}[!!d | 0]
|
|
180
181
|
}),
|
|
181
182
|
"aria-current": n ? "page" : void 0,
|
|
182
183
|
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
|
|
183
184
|
title: s.title ?? (typeof e == "string" ? e : void 0),
|
|
184
|
-
onClick: (e) => {
|
|
185
|
-
i !== void 0 && i(e), !e.defaultPrevented && c !== null && r && c.onNavigate();
|
|
185
|
+
onClick: (e, t) => {
|
|
186
|
+
i !== void 0 && i(e, t), !e.defaultPrevented && c !== null && r && c.onNavigate();
|
|
186
187
|
},
|
|
187
188
|
children: [t != null && /* @__PURE__ */ E("span", {
|
|
188
189
|
"aria-hidden": !0,
|
|
@@ -193,14 +194,14 @@ function re({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
193
194
|
...{
|
|
194
195
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
195
196
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
|
|
196
|
-
}[!!
|
|
197
|
+
}[!!d | 0],
|
|
197
198
|
children: e
|
|
198
199
|
})]
|
|
199
200
|
})
|
|
200
201
|
});
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
-
let s = b(
|
|
203
|
+
function ae({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
|
|
204
|
+
let s = b(F), c = S(), l = s !== null && !s.isExpanded, u = {
|
|
204
205
|
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" },
|
|
205
206
|
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" },
|
|
206
207
|
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" },
|
|
@@ -235,8 +236,8 @@ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
235
236
|
})]
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
|
-
function
|
|
239
|
-
let n = b(
|
|
239
|
+
function oe({ children: e, shouldGrow: t = !1 }) {
|
|
240
|
+
let n = b(F), r = n !== null && !n.isExpanded;
|
|
240
241
|
return /* @__PURE__ */ E("span", {
|
|
241
242
|
...{
|
|
242
243
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
@@ -247,17 +248,17 @@ function V({ children: e, shouldGrow: t = !1 }) {
|
|
|
247
248
|
children: e
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
-
let n = b(
|
|
251
|
+
function se({ children: e, layout: t = "inline" }) {
|
|
252
|
+
let n = b(F), r = n !== null && !n.isExpanded;
|
|
252
253
|
return /* @__PURE__ */ E("div", {
|
|
253
|
-
...
|
|
254
|
+
...h.props(I.footer, l.blockStart, r && I.collapsedFooter, L[t]),
|
|
254
255
|
children: e
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
-
let e = b(
|
|
258
|
+
function z() {
|
|
259
|
+
let e = b(F);
|
|
259
260
|
return e === null ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", {
|
|
260
|
-
...
|
|
261
|
+
...h.props(I.toggleCell, l.inlineEnd, I.desktop),
|
|
261
262
|
children: /* @__PURE__ */ E(t, {
|
|
262
263
|
ref: e.navigationToggleRef,
|
|
263
264
|
variant: "ghost",
|
|
@@ -271,10 +272,10 @@ function U() {
|
|
|
271
272
|
})
|
|
272
273
|
})
|
|
273
274
|
}), /* @__PURE__ */ E("div", {
|
|
274
|
-
...
|
|
275
|
-
children: /* @__PURE__ */ E(
|
|
275
|
+
...h.props(I.toggleCell, l.inlineEnd, I.mobile),
|
|
276
|
+
children: /* @__PURE__ */ E(d.Trigger, {
|
|
276
277
|
ref: e.mobileNavigationToggleRef,
|
|
277
|
-
|
|
278
|
+
controller: e.drawerController,
|
|
278
279
|
render: /* @__PURE__ */ E(t, {
|
|
279
280
|
variant: "ghost",
|
|
280
281
|
"aria-label": "Open navigation"
|
|
@@ -287,7 +288,7 @@ function U() {
|
|
|
287
288
|
})] });
|
|
288
289
|
}
|
|
289
290
|
// packages/layout/src/page-toolbar.tsx
|
|
290
|
-
var
|
|
291
|
+
var B = {
|
|
291
292
|
toolbar: {
|
|
292
293
|
kB7OPa: "x9f619",
|
|
293
294
|
kVAEAm: "x7wzq59",
|
|
@@ -316,26 +317,26 @@ var W = {
|
|
|
316
317
|
$$css: !0
|
|
317
318
|
}
|
|
318
319
|
};
|
|
319
|
-
function
|
|
320
|
+
function V({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
|
|
320
321
|
let a = v.toArray(e).length > 0, o = v.toArray(t).length > 0, s = v.toArray(i).length > 0;
|
|
321
322
|
if (v.toArray([
|
|
322
323
|
e,
|
|
323
324
|
t,
|
|
324
325
|
i
|
|
325
326
|
]).length === 0) return null;
|
|
326
|
-
let c = n ? "nav" : "h1",
|
|
327
|
+
let c = n ? "nav" : "h1", u = n ? "div" : "span";
|
|
327
328
|
return /* @__PURE__ */ D("div", {
|
|
328
|
-
...
|
|
329
|
+
...h.props(B.toolbar, l.blockEnd),
|
|
329
330
|
children: [
|
|
330
331
|
s ? /* @__PURE__ */ E("div", {
|
|
331
332
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
332
333
|
children: i
|
|
333
|
-
}) : r && /* @__PURE__ */ E(
|
|
334
|
+
}) : r && /* @__PURE__ */ E(z, {}),
|
|
334
335
|
a && /* @__PURE__ */ E(c, {
|
|
335
336
|
tabIndex: n ? void 0 : -1,
|
|
336
337
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
337
338
|
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
|
|
338
|
-
children: /* @__PURE__ */ E(
|
|
339
|
+
children: /* @__PURE__ */ E(u, {
|
|
339
340
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
340
341
|
children: e
|
|
341
342
|
})
|
|
@@ -347,15 +348,15 @@ function G({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
|
|
|
347
348
|
]
|
|
348
349
|
});
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
+
function H({ icon: e, children: t, ...n }) {
|
|
351
352
|
let r = e != null;
|
|
352
353
|
return /* @__PURE__ */ E("div", {
|
|
353
354
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
354
|
-
children: /* @__PURE__ */ D(
|
|
355
|
+
children: /* @__PURE__ */ D(a, {
|
|
355
356
|
...n,
|
|
356
357
|
variant: "ghost",
|
|
357
358
|
"aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
358
|
-
xstyle:
|
|
359
|
+
xstyle: B.action,
|
|
359
360
|
children: [r && /* @__PURE__ */ E("span", {
|
|
360
361
|
"aria-hidden": !0,
|
|
361
362
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
@@ -371,14 +372,14 @@ function K({ icon: e, children: t, ...n }) {
|
|
|
371
372
|
});
|
|
372
373
|
}
|
|
373
374
|
// packages/layout/src/page-layout.tsx
|
|
374
|
-
function
|
|
375
|
-
let a =
|
|
375
|
+
function U({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
|
|
376
|
+
let a = o();
|
|
376
377
|
return /* @__PURE__ */ D("div", {
|
|
377
378
|
ref: e,
|
|
378
379
|
className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
|
|
379
380
|
children: [/* @__PURE__ */ D("div", {
|
|
380
381
|
className: "xeuugli",
|
|
381
|
-
children: [/* @__PURE__ */ E(
|
|
382
|
+
children: [/* @__PURE__ */ E(V, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ E(s, { ...t }) : /* @__PURE__ */ E(c, { ...t }))]
|
|
382
383
|
}), /* @__PURE__ */ E("div", {
|
|
383
384
|
ref: a.ref,
|
|
384
385
|
tabIndex: a.tabIndex,
|
|
@@ -388,21 +389,21 @@ function q({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
|
|
|
388
389
|
})]
|
|
389
390
|
});
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
-
let a = t != null && t !== !1, o = S(), s =
|
|
392
|
+
function W({ children: e, summary: t, breakdown: n, ...i }) {
|
|
393
|
+
let a = t != null && t !== !1, o = S(), s = i.id ?? o;
|
|
393
394
|
return /* @__PURE__ */ D("section", {
|
|
394
395
|
"aria-labelledby": s,
|
|
395
396
|
className: "xeuugli x2lah0s xc8icb0",
|
|
396
397
|
children: [/* @__PURE__ */ E("div", {
|
|
397
398
|
className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
|
|
398
|
-
children: /* @__PURE__ */ E(
|
|
399
|
-
...
|
|
399
|
+
children: /* @__PURE__ */ E(r, {
|
|
400
|
+
...i,
|
|
400
401
|
id: s
|
|
401
402
|
})
|
|
402
403
|
}), /* @__PURE__ */ D("div", {
|
|
403
404
|
className: "xc8icb0",
|
|
404
405
|
children: [
|
|
405
|
-
a && /* @__PURE__ */ E(
|
|
406
|
+
a && /* @__PURE__ */ E(N, { children: t }),
|
|
406
407
|
n,
|
|
407
408
|
e
|
|
408
409
|
]
|
|
@@ -410,11 +411,16 @@ function J({ children: e, summary: t, breakdown: n, ...r }) {
|
|
|
410
411
|
});
|
|
411
412
|
}
|
|
412
413
|
// packages/layout/src/navigation-rail.tsx
|
|
413
|
-
var
|
|
414
|
+
var G = y("rail"), K = {
|
|
414
415
|
action: {
|
|
415
416
|
kSGwAc: "xamitd3",
|
|
416
417
|
$$css: !0
|
|
417
418
|
},
|
|
419
|
+
drawerFooterLink: {
|
|
420
|
+
kXwgrk: "x1q0g3np",
|
|
421
|
+
kjj79g: "x1nhvcw1",
|
|
422
|
+
$$css: !0
|
|
423
|
+
},
|
|
418
424
|
selected: {
|
|
419
425
|
kHjaVl: "x1yk04ar",
|
|
420
426
|
$$css: !0
|
|
@@ -444,25 +450,31 @@ var Y = y("rail"), X = {
|
|
|
444
450
|
$$css: !0
|
|
445
451
|
}
|
|
446
452
|
};
|
|
447
|
-
function
|
|
448
|
-
|
|
453
|
+
function ce(e) {
|
|
454
|
+
return /* @__PURE__ */ E(q, { ...e });
|
|
455
|
+
}
|
|
456
|
+
function q({ label: n, links: r, action: i, isFooter: o = !1 }) {
|
|
457
|
+
let s = b(G) === "drawer", c = b(F);
|
|
449
458
|
function l(e, t) {
|
|
450
459
|
e?.(t);
|
|
451
460
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
452
461
|
t.button !== 0 || n || r || c?.onNavigate();
|
|
453
462
|
}
|
|
454
463
|
let u = (e) => {
|
|
455
|
-
|
|
464
|
+
i?.onClick(e), e.defaultPrevented || c?.onNavigate();
|
|
456
465
|
};
|
|
457
466
|
return s ? /* @__PURE__ */ D("div", {
|
|
458
467
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
459
468
|
children: [/* @__PURE__ */ E("nav", {
|
|
460
469
|
"aria-label": n,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
470
|
+
...{
|
|
471
|
+
0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
|
|
472
|
+
1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
|
|
473
|
+
}[!!o | 0],
|
|
474
|
+
children: r.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ D("a", {
|
|
475
|
+
..._(h.props(m.base, m.button, K.mobileLink, o && K.drawerFooterLink, K.rounded, K.selected), r),
|
|
464
476
|
"aria-current": n ? "location" : void 0,
|
|
465
|
-
onClick: (e) => l(
|
|
477
|
+
onClick: (e) => l(r.onClick, e),
|
|
466
478
|
children: [/* @__PURE__ */ E("span", {
|
|
467
479
|
"aria-hidden": !0,
|
|
468
480
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
@@ -471,52 +483,124 @@ function ie({ label: n, links: i, action: a }) {
|
|
|
471
483
|
className: "xeuugli x193iq5w xj0a0fe",
|
|
472
484
|
children: e
|
|
473
485
|
})]
|
|
474
|
-
},
|
|
475
|
-
}),
|
|
486
|
+
}, r.href))
|
|
487
|
+
}), i !== void 0 && /* @__PURE__ */ E("div", {
|
|
476
488
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
477
|
-
children: /* @__PURE__ */ D(
|
|
489
|
+
children: /* @__PURE__ */ D(a, {
|
|
478
490
|
variant: "ghost",
|
|
479
491
|
onClick: u,
|
|
480
492
|
children: [/* @__PURE__ */ E("span", {
|
|
481
493
|
"aria-hidden": !0,
|
|
482
494
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
483
|
-
children:
|
|
484
|
-
}),
|
|
495
|
+
children: i.icon
|
|
496
|
+
}), i.label]
|
|
485
497
|
})
|
|
486
498
|
})]
|
|
487
|
-
}) : /* @__PURE__ */
|
|
488
|
-
|
|
499
|
+
}) : /* @__PURE__ */ D("div", {
|
|
500
|
+
...{
|
|
501
|
+
0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
|
|
502
|
+
1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
|
|
503
|
+
}[!o | 0],
|
|
489
504
|
children: [/* @__PURE__ */ E("nav", {
|
|
490
505
|
"aria-label": n,
|
|
491
506
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
492
|
-
children:
|
|
507
|
+
children: r.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ D(p.Root, { children: [/* @__PURE__ */ E(p.Trigger, {
|
|
493
508
|
render: /* @__PURE__ */ E(e, {
|
|
494
|
-
...
|
|
509
|
+
..._({ className: "x1yk04ar" }, i),
|
|
495
510
|
"aria-label": t,
|
|
496
511
|
"aria-current": r ? "location" : void 0,
|
|
497
512
|
onClick: (e) => l(i.onClick, e)
|
|
498
513
|
}),
|
|
499
514
|
children: n
|
|
500
|
-
}), /* @__PURE__ */ E(
|
|
515
|
+
}), /* @__PURE__ */ E(p.Popup, {
|
|
501
516
|
side: "right",
|
|
502
|
-
children:
|
|
503
|
-
})
|
|
504
|
-
}),
|
|
517
|
+
children: t
|
|
518
|
+
})] }, i.href))
|
|
519
|
+
}), i !== void 0 && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ D(p.Root, { children: [/* @__PURE__ */ E(p.Trigger, {
|
|
505
520
|
render: /* @__PURE__ */ E(t, {
|
|
506
521
|
variant: "ghost",
|
|
507
|
-
"aria-label":
|
|
508
|
-
xstyle:
|
|
522
|
+
"aria-label": i.label,
|
|
523
|
+
xstyle: K.action
|
|
509
524
|
}),
|
|
510
525
|
onClick: u,
|
|
511
|
-
children:
|
|
512
|
-
}), /* @__PURE__ */ E(
|
|
526
|
+
children: i.icon
|
|
527
|
+
}), /* @__PURE__ */ E(p.Popup, {
|
|
513
528
|
side: "right",
|
|
514
|
-
children:
|
|
515
|
-
})
|
|
516
|
-
})
|
|
529
|
+
children: i.label
|
|
530
|
+
})] })] })]
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
function le({ children: e }) {
|
|
534
|
+
let t = b(G) === "drawer";
|
|
535
|
+
return /* @__PURE__ */ E("div", {
|
|
536
|
+
...{
|
|
537
|
+
0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
|
|
538
|
+
1: { className: "x78zum5 xdt5ytf xunmzkg x1yrrsrt x1c526fk x1cy8zhl x14w6jbu" }
|
|
539
|
+
}[!!t | 0],
|
|
540
|
+
children: e
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
function J({ children: e }) {
|
|
544
|
+
return /* @__PURE__ */ E("span", {
|
|
545
|
+
"aria-hidden": !0,
|
|
546
|
+
className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
|
|
547
|
+
children: e
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
function ue({ count: e, icon: t }) {
|
|
551
|
+
return /* @__PURE__ */ E("div", {
|
|
552
|
+
"aria-hidden": !0,
|
|
553
|
+
className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
554
|
+
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ E(J, { children: t }, n))
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
// packages/layout/src/navigation-rail-menu.tsx
|
|
558
|
+
var de = {
|
|
559
|
+
rail: {
|
|
560
|
+
side: "right",
|
|
561
|
+
align: "end"
|
|
562
|
+
},
|
|
563
|
+
drawer: {
|
|
564
|
+
side: "top",
|
|
565
|
+
align: "start"
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
function Y({ label: e, icon: n, children: r }) {
|
|
569
|
+
let i = b(G), [a, o] = w(!1);
|
|
570
|
+
return x(() => {
|
|
571
|
+
let e = globalThis.matchMedia(P.sidebarDesktopQuery);
|
|
572
|
+
function t() {
|
|
573
|
+
o(!1);
|
|
574
|
+
}
|
|
575
|
+
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
576
|
+
}, []), /* @__PURE__ */ D(f.Root, {
|
|
577
|
+
open: a,
|
|
578
|
+
onOpenChange: o,
|
|
579
|
+
modal: !1,
|
|
580
|
+
children: [/* @__PURE__ */ D(p.Root, {
|
|
581
|
+
disabled: a || i === "drawer",
|
|
582
|
+
children: [/* @__PURE__ */ E(p.Trigger, {
|
|
583
|
+
render: /* @__PURE__ */ E(f.Trigger, { render: /* @__PURE__ */ E(t, {
|
|
584
|
+
variant: "ghost",
|
|
585
|
+
"aria-label": e
|
|
586
|
+
}) }),
|
|
587
|
+
children: n
|
|
588
|
+
}), /* @__PURE__ */ E(p.Popup, {
|
|
589
|
+
side: "right",
|
|
590
|
+
children: e
|
|
591
|
+
})]
|
|
592
|
+
}), /* @__PURE__ */ E(f.Popup, {
|
|
593
|
+
...de[i],
|
|
594
|
+
sideOffset: 4,
|
|
595
|
+
collisionPadding: 8,
|
|
596
|
+
"aria-label": e,
|
|
597
|
+
className: "x1uncgzr",
|
|
598
|
+
children: r
|
|
599
|
+
})]
|
|
600
|
+
});
|
|
517
601
|
}
|
|
518
602
|
// packages/layout/src/app-shell.tsx
|
|
519
|
-
var
|
|
603
|
+
var X = {
|
|
520
604
|
sidebar: {
|
|
521
605
|
kB7OPa: "x9f619",
|
|
522
606
|
k1xSpc: "x78zum5 x1ykma7f",
|
|
@@ -553,24 +637,33 @@ var Z = {
|
|
|
553
637
|
$$css: !0
|
|
554
638
|
}
|
|
555
639
|
};
|
|
556
|
-
function
|
|
557
|
-
|
|
640
|
+
function Z({ footer: e }) {
|
|
641
|
+
return /* @__PURE__ */ E("div", {
|
|
642
|
+
className: "x2lah0s x1a148e8",
|
|
643
|
+
children: /* @__PURE__ */ E(le, { children: "placeholder" in e ? /* @__PURE__ */ D(T, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ E(J, { children: e.placeholder.linkIcon }), /* @__PURE__ */ E(J, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ D(T, { children: [e.navigation !== void 0 && /* @__PURE__ */ E(q, {
|
|
644
|
+
...e.navigation,
|
|
645
|
+
isFooter: !0
|
|
646
|
+
}), /* @__PURE__ */ E(Y, { ...e.menu })] }) })
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
function fe({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
|
|
650
|
+
let c = e != null, [u, f] = w(!0), [p, m] = w(!1), g = s || c && !u, [_] = w(() => d.createController()), v = S(), y = C(null), b = C(null), O = C(null), k = C(!1);
|
|
558
651
|
return x(() => {
|
|
559
|
-
let e = globalThis.matchMedia(
|
|
652
|
+
let e = globalThis.matchMedia(P.sidebarDesktopQuery);
|
|
560
653
|
function t() {
|
|
561
|
-
e.matches &&
|
|
654
|
+
e.matches && m(!1);
|
|
562
655
|
}
|
|
563
656
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
564
|
-
}, []), /* @__PURE__ */ D(
|
|
657
|
+
}, []), /* @__PURE__ */ D(F.Provider, {
|
|
565
658
|
value: {
|
|
566
|
-
isExpanded:
|
|
567
|
-
sidebarId:
|
|
568
|
-
|
|
569
|
-
navigationToggleRef:
|
|
570
|
-
mobileNavigationToggleRef:
|
|
571
|
-
onToggle: () =>
|
|
659
|
+
isExpanded: u,
|
|
660
|
+
sidebarId: v,
|
|
661
|
+
drawerController: _,
|
|
662
|
+
navigationToggleRef: y,
|
|
663
|
+
mobileNavigationToggleRef: b,
|
|
664
|
+
onToggle: () => f((e) => !e),
|
|
572
665
|
onNavigate: () => {
|
|
573
|
-
|
|
666
|
+
k.current = p, m(!1);
|
|
574
667
|
}
|
|
575
668
|
},
|
|
576
669
|
children: [/* @__PURE__ */ D("div", {
|
|
@@ -578,24 +671,18 @@ function ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
578
671
|
children: [
|
|
579
672
|
c && /* @__PURE__ */ D("div", {
|
|
580
673
|
hidden: s,
|
|
581
|
-
...
|
|
674
|
+
...h.props(X.sidebar, l.inlineEnd, X.rail, s && X.hidden),
|
|
582
675
|
children: [/* @__PURE__ */ E("div", {
|
|
583
676
|
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
584
677
|
children: e
|
|
585
|
-
}),
|
|
586
|
-
className: "x2lah0s x1a148e8",
|
|
587
|
-
children: /* @__PURE__ */ E("div", {
|
|
588
|
-
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
|
|
589
|
-
children: t
|
|
590
|
-
})
|
|
591
|
-
})]
|
|
678
|
+
}), t !== void 0 && /* @__PURE__ */ E(Z, { footer: t })]
|
|
592
679
|
}),
|
|
593
680
|
/* @__PURE__ */ E("aside", {
|
|
594
|
-
id:
|
|
681
|
+
id: v,
|
|
595
682
|
"aria-label": "Navigation",
|
|
596
683
|
hidden: g,
|
|
597
|
-
...
|
|
598
|
-
children: /* @__PURE__ */ E(
|
|
684
|
+
...h.props(X.sidebar, l.inlineEnd, c && X.secondary, !c && !u && X.collapsed, g && X.hidden),
|
|
685
|
+
children: /* @__PURE__ */ E(R, {
|
|
599
686
|
header: n,
|
|
600
687
|
footer: i,
|
|
601
688
|
children: r
|
|
@@ -608,98 +695,45 @@ function ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
608
695
|
children: a
|
|
609
696
|
})
|
|
610
697
|
]
|
|
611
|
-
}), /* @__PURE__ */
|
|
612
|
-
|
|
613
|
-
open:
|
|
614
|
-
onOpenChange:
|
|
615
|
-
children:
|
|
616
|
-
ref:
|
|
617
|
-
xstyle:
|
|
698
|
+
}), /* @__PURE__ */ D(d.Root, {
|
|
699
|
+
controller: _,
|
|
700
|
+
open: p && !s,
|
|
701
|
+
onOpenChange: m,
|
|
702
|
+
children: [/* @__PURE__ */ E(d.Backdrop, {}), /* @__PURE__ */ D(d.Popup, {
|
|
703
|
+
ref: O,
|
|
704
|
+
xstyle: X.drawer,
|
|
618
705
|
finalFocus: () => {
|
|
619
|
-
if (
|
|
620
|
-
|
|
706
|
+
if (k.current) {
|
|
707
|
+
k.current = !1;
|
|
621
708
|
let e = document.querySelector(`#${CSS.escape(o)}`), t = document.activeElement;
|
|
622
709
|
if (t instanceof HTMLElement) {
|
|
623
710
|
let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
|
|
624
|
-
if (e !== null && e !==
|
|
711
|
+
if (e !== null && e !== O.current) return t;
|
|
625
712
|
}
|
|
626
713
|
return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
|
|
627
714
|
}
|
|
628
|
-
return globalThis.matchMedia(
|
|
715
|
+
return globalThis.matchMedia(P.sidebarDesktopQuery).matches ? y.current : b.current;
|
|
629
716
|
},
|
|
630
|
-
children: [/* @__PURE__ */ E(
|
|
717
|
+
children: [/* @__PURE__ */ E(d.Title, {
|
|
631
718
|
isVisuallyHidden: !0,
|
|
632
719
|
children: "Navigation"
|
|
633
|
-
}), /* @__PURE__ */ E(
|
|
720
|
+
}), /* @__PURE__ */ E(R, {
|
|
634
721
|
header: n,
|
|
635
|
-
navigationHeader: c && /* @__PURE__ */ E(
|
|
722
|
+
navigationHeader: c && /* @__PURE__ */ E(G.Provider, {
|
|
636
723
|
value: "drawer",
|
|
637
724
|
children: e
|
|
638
725
|
}),
|
|
639
|
-
footer: /* @__PURE__ */ D(T, { children: [i, c &&
|
|
726
|
+
footer: /* @__PURE__ */ D(T, { children: [i, c && t !== void 0 && /* @__PURE__ */ E(G.Provider, {
|
|
640
727
|
value: "drawer",
|
|
641
|
-
children: /* @__PURE__ */ E(
|
|
642
|
-
className: "x2lah0s x1a148e8",
|
|
643
|
-
children: /* @__PURE__ */ E("div", {
|
|
644
|
-
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
|
|
645
|
-
children: t
|
|
646
|
-
})
|
|
647
|
-
})
|
|
728
|
+
children: /* @__PURE__ */ E(Z, { footer: t })
|
|
648
729
|
})] }),
|
|
649
|
-
close: /* @__PURE__ */ E(
|
|
730
|
+
close: /* @__PURE__ */ E(te, {}),
|
|
650
731
|
children: r
|
|
651
732
|
})]
|
|
652
|
-
})
|
|
733
|
+
})]
|
|
653
734
|
})]
|
|
654
735
|
});
|
|
655
736
|
}
|
|
656
|
-
// packages/layout/src/navigation-rail-menu.tsx
|
|
657
|
-
var oe = {
|
|
658
|
-
rail: {
|
|
659
|
-
side: "right",
|
|
660
|
-
align: "end"
|
|
661
|
-
},
|
|
662
|
-
drawer: {
|
|
663
|
-
side: "top",
|
|
664
|
-
align: "start"
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
function se({ label: e, icon: n, children: r }) {
|
|
668
|
-
let i = b(Y), [a, o] = w(!1);
|
|
669
|
-
return x(() => {
|
|
670
|
-
let e = globalThis.matchMedia(F.sidebarDesktopQuery);
|
|
671
|
-
function t() {
|
|
672
|
-
o(!1);
|
|
673
|
-
}
|
|
674
|
-
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
675
|
-
}, []), /* @__PURE__ */ D(p.Root, {
|
|
676
|
-
open: a,
|
|
677
|
-
onOpenChange: o,
|
|
678
|
-
modal: !1,
|
|
679
|
-
children: [/* @__PURE__ */ E(m.Provider, { children: /* @__PURE__ */ D(m.Root, {
|
|
680
|
-
disabled: a || i === "drawer",
|
|
681
|
-
children: [/* @__PURE__ */ E(m.Trigger, {
|
|
682
|
-
render: /* @__PURE__ */ E(p.Trigger, { render: /* @__PURE__ */ E(t, {
|
|
683
|
-
variant: "ghost",
|
|
684
|
-
"aria-label": e
|
|
685
|
-
}) }),
|
|
686
|
-
children: n
|
|
687
|
-
}), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
|
|
688
|
-
side: "right",
|
|
689
|
-
children: /* @__PURE__ */ E(m.Popup, { children: e })
|
|
690
|
-
}) })]
|
|
691
|
-
}) }), /* @__PURE__ */ E(p.Portal, { children: /* @__PURE__ */ E(p.Positioner, {
|
|
692
|
-
...oe[i],
|
|
693
|
-
sideOffset: 4,
|
|
694
|
-
collisionPadding: 8,
|
|
695
|
-
children: /* @__PURE__ */ E(p.Popup, {
|
|
696
|
-
"aria-label": e,
|
|
697
|
-
className: "x1uncgzr",
|
|
698
|
-
children: r
|
|
699
|
-
})
|
|
700
|
-
}) })]
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
737
|
// packages/layout/src/detail-page.tsx
|
|
704
738
|
function Q({ children: e, isWide: t = !1 }) {
|
|
705
739
|
return /* @__PURE__ */ E("div", {
|
|
@@ -711,7 +745,7 @@ function Q({ children: e, isWide: t = !1 }) {
|
|
|
711
745
|
});
|
|
712
746
|
}
|
|
713
747
|
// packages/layout/src/focus-page.tsx
|
|
714
|
-
function
|
|
748
|
+
function pe({ children: e }) {
|
|
715
749
|
return /* @__PURE__ */ E("main", {
|
|
716
750
|
id: "main",
|
|
717
751
|
tabIndex: -1,
|
|
@@ -723,7 +757,7 @@ function ce({ children: e }) {
|
|
|
723
757
|
});
|
|
724
758
|
}
|
|
725
759
|
// packages/layout/src/workbench.tsx
|
|
726
|
-
function
|
|
760
|
+
function me({ header: e, children: t, inspector: n }) {
|
|
727
761
|
return /* @__PURE__ */ D("div", {
|
|
728
762
|
className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
729
763
|
children: [e != null && /* @__PURE__ */ E("div", {
|
|
@@ -745,8 +779,8 @@ function le({ header: e, children: t, inspector: n }) {
|
|
|
745
779
|
})]
|
|
746
780
|
});
|
|
747
781
|
}
|
|
748
|
-
function
|
|
749
|
-
let i =
|
|
782
|
+
function he({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
783
|
+
let i = o();
|
|
750
784
|
return /* @__PURE__ */ E("div", {
|
|
751
785
|
ref: i.ref,
|
|
752
786
|
role: "region",
|
|
@@ -760,20 +794,20 @@ function ue({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
|
|
|
760
794
|
children: t
|
|
761
795
|
});
|
|
762
796
|
}
|
|
763
|
-
function
|
|
797
|
+
function ge({ children: e }) {
|
|
764
798
|
return /* @__PURE__ */ E("div", {
|
|
765
799
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
766
800
|
children: e
|
|
767
801
|
});
|
|
768
802
|
}
|
|
769
803
|
// packages/layout/src/view-stack.tsx
|
|
770
|
-
function
|
|
804
|
+
function _e({ children: e }) {
|
|
771
805
|
return /* @__PURE__ */ E("div", {
|
|
772
806
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
773
807
|
children: e
|
|
774
808
|
});
|
|
775
809
|
}
|
|
776
|
-
function
|
|
810
|
+
function ve({ isActive: e, children: t }) {
|
|
777
811
|
return /* @__PURE__ */ E("section", {
|
|
778
812
|
"aria-hidden": !e,
|
|
779
813
|
inert: !e,
|
|
@@ -784,12 +818,12 @@ function pe({ isActive: e, children: t }) {
|
|
|
784
818
|
children: t
|
|
785
819
|
});
|
|
786
820
|
}
|
|
787
|
-
var
|
|
788
|
-
Root:
|
|
789
|
-
Panel:
|
|
821
|
+
var ye = {
|
|
822
|
+
Root: _e,
|
|
823
|
+
Panel: ve
|
|
790
824
|
};
|
|
791
825
|
// packages/layout/src/collection-layout.tsx
|
|
792
|
-
function
|
|
826
|
+
function be({ header: e, children: t }) {
|
|
793
827
|
return /* @__PURE__ */ D("div", {
|
|
794
828
|
"data-page-layout": "collection",
|
|
795
829
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
|
|
@@ -803,7 +837,7 @@ function he({ header: e, children: t }) {
|
|
|
803
837
|
});
|
|
804
838
|
}
|
|
805
839
|
// packages/layout/src/record-page.tsx
|
|
806
|
-
function
|
|
840
|
+
function $({ backLabel: e, backHref: t, onBack: n }) {
|
|
807
841
|
return /* @__PURE__ */ D("a", {
|
|
808
842
|
href: t,
|
|
809
843
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
@@ -822,17 +856,17 @@ function ge({ backLabel: e, backHref: t, onBack: n }) {
|
|
|
822
856
|
})]
|
|
823
857
|
});
|
|
824
858
|
}
|
|
825
|
-
function
|
|
826
|
-
return /* @__PURE__ */ E(
|
|
859
|
+
function xe({ navigation: e, children: t, ...n }) {
|
|
860
|
+
return /* @__PURE__ */ E(U, {
|
|
827
861
|
showBreadcrumb: !0,
|
|
828
862
|
showNavigation: n.showNavigation ?? !0,
|
|
829
863
|
actions: n.actions,
|
|
830
|
-
title: /* @__PURE__ */ E(
|
|
864
|
+
title: /* @__PURE__ */ E($, { ...n }),
|
|
831
865
|
navigation: e,
|
|
832
866
|
children: t
|
|
833
867
|
});
|
|
834
868
|
}
|
|
835
|
-
function
|
|
869
|
+
function Se({ children: e, isWide: t = !1 }) {
|
|
836
870
|
return /* @__PURE__ */ E("div", {
|
|
837
871
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
838
872
|
children: /* @__PURE__ */ E(Q, {
|
|
@@ -844,13 +878,13 @@ function ve({ children: e, isWide: t = !1 }) {
|
|
|
844
878
|
})
|
|
845
879
|
});
|
|
846
880
|
}
|
|
847
|
-
function
|
|
881
|
+
function Ce({ children: e }) {
|
|
848
882
|
return /* @__PURE__ */ E("div", {
|
|
849
883
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
850
884
|
children: e
|
|
851
885
|
});
|
|
852
886
|
}
|
|
853
|
-
function
|
|
887
|
+
function we({ title: e, description: t, icon: r, titleRef: a }) {
|
|
854
888
|
return /* @__PURE__ */ D("header", {
|
|
855
889
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
856
890
|
children: [/* @__PURE__ */ D("div", {
|
|
@@ -859,8 +893,8 @@ function be({ title: e, description: t, icon: r, titleRef: i }) {
|
|
|
859
893
|
"aria-hidden": !0,
|
|
860
894
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
861
895
|
children: r
|
|
862
|
-
}), /* @__PURE__ */ E(
|
|
863
|
-
ref:
|
|
896
|
+
}), /* @__PURE__ */ E(i, {
|
|
897
|
+
ref: a,
|
|
864
898
|
tabIndex: -1,
|
|
865
899
|
className: "xeuugli x1t137rt",
|
|
866
900
|
children: e
|
|
@@ -868,57 +902,53 @@ function be({ title: e, description: t, icon: r, titleRef: i }) {
|
|
|
868
902
|
}), t != null && /* @__PURE__ */ E(n, { children: t })]
|
|
869
903
|
});
|
|
870
904
|
}
|
|
871
|
-
function
|
|
905
|
+
function Te({ children: e, label: t = "Properties" }) {
|
|
872
906
|
return /* @__PURE__ */ E("aside", {
|
|
873
907
|
"aria-label": t,
|
|
874
908
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
875
909
|
children: e
|
|
876
910
|
});
|
|
877
911
|
}
|
|
878
|
-
var
|
|
879
|
-
Layout:
|
|
880
|
-
Body:
|
|
881
|
-
Content:
|
|
882
|
-
Header:
|
|
883
|
-
Aside:
|
|
912
|
+
var Ee = {
|
|
913
|
+
Layout: xe,
|
|
914
|
+
Body: Se,
|
|
915
|
+
Content: Ce,
|
|
916
|
+
Header: we,
|
|
917
|
+
Aside: Te
|
|
884
918
|
};
|
|
885
919
|
// packages/layout/src/resizable.tsx
|
|
886
|
-
function
|
|
887
|
-
return /* @__PURE__ */ E(
|
|
920
|
+
function De({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
|
|
921
|
+
return /* @__PURE__ */ E(A, {
|
|
888
922
|
orientation: e,
|
|
889
|
-
defaultLayout: t,
|
|
890
|
-
|
|
891
|
-
t
|
|
923
|
+
...t !== void 0 && { defaultLayout: t },
|
|
924
|
+
onLayoutCommit: (e, { event: t }) => {
|
|
925
|
+
t !== void 0 && n?.(e);
|
|
892
926
|
},
|
|
893
927
|
disabled: r,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
coarse: 44,
|
|
897
|
-
fine: 12
|
|
898
|
-
},
|
|
899
|
-
...g({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
928
|
+
ref: i,
|
|
929
|
+
..._({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
|
|
900
930
|
});
|
|
901
931
|
}
|
|
902
|
-
function
|
|
932
|
+
function Oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
903
933
|
return /* @__PURE__ */ E(M, {
|
|
904
934
|
id: e,
|
|
905
|
-
|
|
906
|
-
minSize:
|
|
907
|
-
maxSize:
|
|
935
|
+
...t !== void 0 && { defaultSize: t },
|
|
936
|
+
minSize: n,
|
|
937
|
+
maxSize: r,
|
|
908
938
|
collapsible: i,
|
|
909
|
-
|
|
910
|
-
...
|
|
939
|
+
ref: a,
|
|
940
|
+
..._({ className: "xeuugli x2lwn1j xysyzu8" }, o)
|
|
911
941
|
});
|
|
912
942
|
}
|
|
913
|
-
function
|
|
914
|
-
return /* @__PURE__ */ E(
|
|
915
|
-
|
|
916
|
-
...
|
|
943
|
+
function ke({ ref: e, ...t }) {
|
|
944
|
+
return /* @__PURE__ */ E(j, {
|
|
945
|
+
ref: e,
|
|
946
|
+
..._({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
|
|
917
947
|
});
|
|
918
948
|
}
|
|
919
|
-
var
|
|
920
|
-
Root:
|
|
921
|
-
Pane:
|
|
922
|
-
Handle:
|
|
949
|
+
var Ae = {
|
|
950
|
+
Root: De,
|
|
951
|
+
Pane: Oe,
|
|
952
|
+
Handle: ke
|
|
923
953
|
};
|
|
924
|
-
export {
|
|
954
|
+
export { fe as AppShell, be as CollectionLayout, Q as DetailPage, pe as FocusPage, ne as Navigation, ie as NavigationItem, ae as NavigationLink, ce as NavigationRail, Y as NavigationRailMenu, ue as NavigationRailPlaceholder, re as NavigationSection, N as PageContent, U as PageLayout, W as PageSection, Ee as RecordPage, Ae as Resizable, se as SidebarFooter, oe as SidebarLabel, H as ToolbarAction, ye as ViewStack, me as Workbench, ge as WorkbenchFooter, he as WorkbenchScroll };
|