@mechane-ai/elements 0.44.0 → 0.46.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/README.md +48 -18
- package/bin/mechane-elements-catalog.mjs +42 -4
- package/dist/ai.js +268 -202
- package/dist/catalog.json +95 -31
- package/dist/categorical-values-BXi-rJuv.js +74 -0
- package/dist/chart-cursor-1mFd48Jc.js +23 -0
- package/dist/chart-data-CIJVWCYt.js +21 -0
- package/dist/chart-frame-BaxKn_MB.js +236 -0
- package/dist/{chart-input-B6_HXFDP.js → chart-input-Bm82_9Rd.js} +2 -2
- package/dist/chart-theme-4zprJ3rW.js +404 -0
- package/dist/charts/cartesian.js +1624 -1442
- package/dist/charts/distribution.js +486 -409
- package/dist/charts/graph.js +383 -358
- package/dist/charts/hierarchy.js +103 -94
- package/dist/charts/matrix.js +340 -333
- package/dist/charts/timeline.js +167 -134
- package/dist/charts.js +3 -3
- package/dist/{code-block-Cpfr7B6a.js → code-block-DioAM2bZ.js} +67 -52
- package/dist/collections.js +1648 -1188
- package/dist/{constants.stylex-CaVa9yGN.js → constants.stylex-CqhVl0uU.js} +9 -9
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +67 -66
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +3 -3
- package/dist/{content-link-CGeFFb9F.js → content-link-NWuHp5rC.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/csp.js +6 -11
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +274 -214
- package/dist/{forms-DeU0Tiv3.js → forms-CEbwzlRR.js} +50 -41
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +207 -207
- package/dist/navigation.js +4 -3
- package/dist/packages/ai/src/conversation.d.ts +2 -0
- package/dist/packages/ai/src/prompt-input.d.ts +7 -2
- package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +8 -2
- package/dist/packages/charts/src/cartesian/time-series.d.ts +11 -1
- package/dist/packages/charts/src/categorical-values.d.ts +14 -9
- package/dist/packages/charts/src/chart-frame.d.ts +7 -9
- package/dist/packages/charts/src/chart-inspection.d.ts +1 -2
- package/dist/packages/charts/src/chart-range.d.ts +33 -0
- package/dist/packages/charts/src/chart-rows.d.ts +20 -0
- package/dist/packages/charts/src/chart-theme.d.ts +25 -1
- package/dist/packages/charts/src/chart.d.ts +81 -0
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +6 -4
- package/dist/packages/charts/src/index.d.ts +2 -1
- package/dist/packages/charts/src/matrix/matrix-strip.d.ts +3 -3
- package/dist/packages/charts/src/plot-width.d.ts +0 -1
- package/dist/packages/charts/src/timeline/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +6 -2
- package/dist/packages/collections/src/collection-controls.d.ts +5 -1
- package/dist/packages/collections/src/collection-filters.d.ts +4 -1
- package/dist/packages/collections/src/control-toolbar.d.ts +13 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +78 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +54 -0
- package/dist/packages/collections/src/data-table-styles.d.ts +340 -0
- package/dist/packages/collections/src/data-table-text.d.ts +13 -0
- package/dist/packages/collections/src/data-table-trigger.d.ts +23 -0
- package/dist/packages/collections/src/data-table.d.ts +3 -85
- package/dist/packages/collections/src/index.d.ts +11 -6
- package/dist/packages/collections/src/query-controls.d.ts +6 -2
- package/dist/packages/collections/src/table-results.d.ts +47 -13
- package/dist/packages/collections/src/timeline.d.ts +1 -0
- package/dist/packages/collections/src/use-collection-controls.d.ts +2 -1
- package/dist/packages/collections/src/use-table-window.d.ts +25 -0
- package/dist/packages/content/src/viewer.d.ts +8 -0
- package/dist/packages/core/src/disclosure.d.ts +9 -1
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/core/src/route-link.d.ts +11 -0
- package/dist/packages/forms/src/dates/date-inputs.d.ts +3 -1
- package/dist/packages/forms/src/file-picker.d.ts +15 -0
- package/dist/packages/forms/src/form-controls.d.ts +1 -6
- package/dist/packages/forms/src/forms.d.ts +4 -1
- package/dist/packages/forms/src/index.d.ts +4 -2
- package/dist/packages/forms/src/selection.d.ts +14 -0
- package/dist/packages/foundations/src/chart-tones.d.ts +5 -0
- package/dist/packages/foundations/src/csp/index.d.ts +1 -1
- package/dist/packages/foundations/src/csp/provider.d.ts +7 -2
- package/dist/packages/navigation/src/index.d.ts +1 -1
- package/dist/{pierre-diff-B3tD3-6z.js → pierre-diff-DlvjyuJn.js} +1 -1
- package/dist/plot-width-v2c_rA20.js +63 -0
- package/dist/{src-gqEebHEa.js → src-1EHkSFS-.js} +395 -274
- package/dist/{src-DBNncL7_.js → src-BPTDJqt0.js} +48 -68
- package/dist/src-CGc_hjxJ.js +409 -0
- package/dist/{src-DcW_gMX8.js → src-CpdJlDhO.js} +480 -362
- package/dist/{src-CDp1JtwC.js → src-DVHlknB6.js} +135 -120
- package/dist/styles2.css +167 -132
- package/dist/tokens.js +1 -1
- package/package.json +1 -4
- package/packages/foundations/src/constants.stylex.ts +9 -9
- package/packages/foundations/src/tokens.stylex.ts +9 -9
- package/skills/extend-elements/SKILL.md +74 -0
- package/skills/review-elements/SKILL.md +76 -0
- package/skills/upgrade-elements/SKILL.md +34 -0
- package/skills/upgrade-elements/references/releases.md +58 -0
- package/skills/use-elements/SKILL.md +64 -13
- package/skills/use-elements/references/agent.md +57 -0
- package/skills/use-elements/references/charts.md +63 -0
- package/skills/use-elements/references/collections.md +89 -0
- package/skills/use-elements/references/conversations.md +47 -0
- package/skills/use-elements/references/forms.md +81 -0
- package/skills/use-elements/references/reports.md +6 -4
- package/skills/use-elements/references/styling.md +70 -0
- package/skills/use-elements/references/workspace.md +3 -3
- package/dist/categorical-values-ByvFLaNE.js +0 -59
- package/dist/chart-frame-Bcd9Tpt5.js +0 -251
- package/dist/chart-navigation-BAbb5PV9.js +0 -154
- package/dist/header-styles-COxCYFZx.js +0 -90
- package/dist/packages/charts/src/chart-navigation.d.ts +0 -39
- package/dist/packages/charts/src/chart-surface.d.ts +0 -27
- package/dist/packages/navigation/src/route-link.d.ts +0 -2
- package/dist/plot-width-8cXdAjoD.js +0 -96
- package/dist/src-Bk7M67zy.js +0 -396
package/dist/layout.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { D as e,
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as u } from "./header-styles-COxCYFZx.js";
|
|
1
|
+
import { D as e, O as t, T as n, i as r, j as i, l as a, n as o, u as s } from "./src-CpdJlDhO.js";
|
|
2
|
+
import { t as c } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
+
import { a as l, i as u } from "./src-BPTDJqt0.js";
|
|
5
4
|
import { n as d } from "./accessibility-P89UG9-r.js";
|
|
6
5
|
import { a as f, i as p, t as m } from "./src-na2DdkKI.js";
|
|
7
6
|
import { r as h } from "./control-styles-D3q_Qyxi.js";
|
|
@@ -9,22 +8,23 @@ import * as g from "@stylexjs/stylex";
|
|
|
9
8
|
import { Button as _ } from "@ui-sdk/react/button";
|
|
10
9
|
import { createParts as v, mergeProps as y } from "@ui-sdk/react/primitive";
|
|
11
10
|
import { Children as b, createContext as x, useContext as S, useEffect as C, useId as w, useRef as T, useState as E } from "react";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { definePrimitive as D } from "@ui-sdk/core";
|
|
12
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
13
|
+
import { ArrowLeft as ee, PanelLeft as j, X as te } from "lucide-react";
|
|
15
14
|
import { Resizable as ne, ResizableHandle as re, ResizablePanel as ie } from "@ui-sdk/react/resizable";
|
|
16
15
|
// packages/layout/src/page-content.tsx
|
|
17
16
|
function M({ children: e }) {
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ k("div", {
|
|
19
18
|
className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
|
|
20
19
|
children: e
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
// packages/layout/src/page-context.tsx
|
|
24
|
-
var ae =
|
|
23
|
+
var ae = D({
|
|
25
24
|
name: "page-title",
|
|
26
25
|
state: () => ({}),
|
|
27
26
|
api: () => ({}),
|
|
27
|
+
agent: { actions: [] },
|
|
28
28
|
slots: (e) => ({ root: e({}) })
|
|
29
29
|
}), N = v(ae, { root: "h1" }).Root;
|
|
30
30
|
function oe({ section: e }) {
|
|
@@ -32,7 +32,7 @@ function oe({ section: e }) {
|
|
|
32
32
|
let t = e.closest("[data-page-viewport]"), n = Math.max(0, t?.getBoundingClientRect().top ?? 0), r = e.getBoundingClientRect();
|
|
33
33
|
return r.top <= n && r.bottom > n;
|
|
34
34
|
}
|
|
35
|
-
var se =
|
|
35
|
+
var se = D({
|
|
36
36
|
name: "page-section",
|
|
37
37
|
state: () => ({ section: null }),
|
|
38
38
|
api: () => ({}),
|
|
@@ -119,11 +119,11 @@ var se = j({
|
|
|
119
119
|
navigation: I.navigationFooter
|
|
120
120
|
};
|
|
121
121
|
function L({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
|
|
122
|
-
let a = S(F), o = a !== null && !a.isExpanded,
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
...g.props(I.header,
|
|
126
|
-
children: [/* @__PURE__ */
|
|
122
|
+
let a = S(F), o = a !== null && !a.isExpanded, c = e != null;
|
|
123
|
+
return /* @__PURE__ */ A(O, { children: [
|
|
124
|
+
/* @__PURE__ */ A("div", {
|
|
125
|
+
...g.props(I.header, s.blockEnd, !c && I.emptyHeader),
|
|
126
|
+
children: [/* @__PURE__ */ k("div", {
|
|
127
127
|
...{
|
|
128
128
|
0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
|
|
129
129
|
1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
|
|
@@ -132,27 +132,27 @@ function L({ header: e, navigationHeader: t, footer: n, close: r, children: i })
|
|
|
132
132
|
}), r]
|
|
133
133
|
}),
|
|
134
134
|
t,
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ k("div", {
|
|
136
136
|
role: "region",
|
|
137
137
|
"aria-label": "Navigation links",
|
|
138
138
|
className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
139
139
|
children: i
|
|
140
140
|
}),
|
|
141
|
-
n != null && /* @__PURE__ */
|
|
141
|
+
n != null && /* @__PURE__ */ k("div", {
|
|
142
142
|
className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
|
|
143
143
|
children: n
|
|
144
144
|
})
|
|
145
145
|
] });
|
|
146
146
|
}
|
|
147
147
|
function ue() {
|
|
148
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ k("div", {
|
|
149
149
|
className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
-
render: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ k(f.Close, {
|
|
151
|
+
render: /* @__PURE__ */ k(e, {
|
|
152
152
|
variant: "ghost",
|
|
153
153
|
"aria-label": "Close navigation"
|
|
154
154
|
}),
|
|
155
|
-
children: /* @__PURE__ */
|
|
155
|
+
children: /* @__PURE__ */ k(te, {
|
|
156
156
|
size: 16,
|
|
157
157
|
"aria-hidden": !0
|
|
158
158
|
})
|
|
@@ -161,7 +161,7 @@ function ue() {
|
|
|
161
161
|
}
|
|
162
162
|
function de({ children: e, label: t = "Main" }) {
|
|
163
163
|
let n = S(F), r = n !== null && !n.isExpanded;
|
|
164
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ k("nav", {
|
|
165
165
|
"aria-label": t,
|
|
166
166
|
...{
|
|
167
167
|
0: { className: "x78zum5 xdt5ytf xksvo5r" },
|
|
@@ -172,10 +172,10 @@ function de({ children: e, label: t = "Main" }) {
|
|
|
172
172
|
}
|
|
173
173
|
function R({ children: e, label: t }) {
|
|
174
174
|
let n = S(F), r = n !== null && !n.isExpanded, i = w();
|
|
175
|
-
return /* @__PURE__ */
|
|
175
|
+
return /* @__PURE__ */ A("section", {
|
|
176
176
|
"aria-labelledby": i,
|
|
177
177
|
className: "xeuugli",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ k("div", {
|
|
179
179
|
id: i,
|
|
180
180
|
...{
|
|
181
181
|
0: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
|
|
@@ -187,12 +187,12 @@ function R({ children: e, label: t }) {
|
|
|
187
187
|
}
|
|
188
188
|
function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
|
|
189
189
|
let c = S(F), l = w(), u = c !== null && !c.isExpanded;
|
|
190
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ k("div", {
|
|
191
191
|
...{
|
|
192
192
|
0: { className: "x78zum5 xeuugli x1ok0vyi" },
|
|
193
193
|
1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
|
|
194
194
|
}[!!n | 0],
|
|
195
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ A(_, {
|
|
196
196
|
...s,
|
|
197
197
|
...d({
|
|
198
198
|
className: a,
|
|
@@ -208,11 +208,11 @@ function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
208
208
|
onClick: (e, t) => {
|
|
209
209
|
i !== void 0 && i(e, t), !e.defaultPrevented && c !== null && r && c.onNavigate();
|
|
210
210
|
},
|
|
211
|
-
children: [t != null && /* @__PURE__ */
|
|
211
|
+
children: [t != null && /* @__PURE__ */ k("span", {
|
|
212
212
|
"aria-hidden": !0,
|
|
213
213
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
214
214
|
children: t
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ k("span", {
|
|
216
216
|
id: l,
|
|
217
217
|
...{
|
|
218
218
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
@@ -223,34 +223,34 @@ function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
|
|
|
223
223
|
})
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className:
|
|
227
|
-
let
|
|
226
|
+
function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a, style: o, ...s }) {
|
|
227
|
+
let c = S(F), l = w(), u = c !== null && !c.isExpanded, d = {
|
|
228
228
|
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" },
|
|
229
229
|
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" },
|
|
230
230
|
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" },
|
|
231
231
|
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" }
|
|
232
232
|
}[!!u << 1 | !!n];
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
...
|
|
233
|
+
return /* @__PURE__ */ A(i, {
|
|
234
|
+
...s,
|
|
235
235
|
"aria-current": n ? "page" : void 0,
|
|
236
|
-
"aria-labelledby":
|
|
237
|
-
title:
|
|
236
|
+
"aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
|
|
237
|
+
title: s.title ?? (typeof e == "string" ? e : void 0),
|
|
238
238
|
onClick: (e) => {
|
|
239
|
-
if (r !== void 0 && r(e),
|
|
239
|
+
if (r !== void 0 && r(e), c === null || e.button !== 0) return;
|
|
240
240
|
let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
|
|
241
|
-
t || n ||
|
|
241
|
+
t || n || c.onNavigate();
|
|
242
242
|
},
|
|
243
|
-
className: [d.className,
|
|
243
|
+
className: [d.className, a].filter(Boolean).join(" "),
|
|
244
244
|
style: {
|
|
245
245
|
...d.style,
|
|
246
|
-
...
|
|
246
|
+
...o
|
|
247
247
|
},
|
|
248
|
-
children: [t != null && /* @__PURE__ */
|
|
248
|
+
children: [t != null && /* @__PURE__ */ k("span", {
|
|
249
249
|
"aria-hidden": !0,
|
|
250
250
|
className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
|
|
251
251
|
children: t
|
|
252
|
-
}), /* @__PURE__ */
|
|
253
|
-
id:
|
|
252
|
+
}), /* @__PURE__ */ k("span", {
|
|
253
|
+
id: l,
|
|
254
254
|
...{
|
|
255
255
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
256
256
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
|
|
@@ -261,7 +261,7 @@ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
|
|
|
261
261
|
}
|
|
262
262
|
function V({ children: e, shouldGrow: t = !1 }) {
|
|
263
263
|
let n = S(F), r = n !== null && !n.isExpanded;
|
|
264
|
-
return /* @__PURE__ */
|
|
264
|
+
return /* @__PURE__ */ k("span", {
|
|
265
265
|
...{
|
|
266
266
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
267
267
|
2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
|
|
@@ -273,37 +273,37 @@ function V({ children: e, shouldGrow: t = !1 }) {
|
|
|
273
273
|
}
|
|
274
274
|
function H({ children: e, layout: t = "inline" }) {
|
|
275
275
|
let n = S(F), r = n !== null && !n.isExpanded;
|
|
276
|
-
return /* @__PURE__ */
|
|
277
|
-
...g.props(I.footer,
|
|
276
|
+
return /* @__PURE__ */ k("div", {
|
|
277
|
+
...g.props(I.footer, s.blockStart, r && I.collapsedFooter, le[t]),
|
|
278
278
|
children: e
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
function fe() {
|
|
282
|
-
let
|
|
283
|
-
return
|
|
284
|
-
...g.props(I.toggleCell,
|
|
285
|
-
children: /* @__PURE__ */
|
|
286
|
-
ref:
|
|
282
|
+
let t = S(F);
|
|
283
|
+
return t === null ? null : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
|
|
284
|
+
...g.props(I.toggleCell, s.inlineEnd, I.desktop),
|
|
285
|
+
children: /* @__PURE__ */ k(e, {
|
|
286
|
+
ref: t.navigationToggleRef,
|
|
287
287
|
variant: "ghost",
|
|
288
|
-
"aria-label":
|
|
289
|
-
"aria-controls":
|
|
290
|
-
"aria-expanded":
|
|
291
|
-
onClick:
|
|
292
|
-
children: /* @__PURE__ */
|
|
288
|
+
"aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
|
|
289
|
+
"aria-controls": t.sidebarId,
|
|
290
|
+
"aria-expanded": t.isExpanded,
|
|
291
|
+
onClick: t.onToggle,
|
|
292
|
+
children: /* @__PURE__ */ k(j, {
|
|
293
293
|
size: 16,
|
|
294
294
|
"aria-hidden": !0
|
|
295
295
|
})
|
|
296
296
|
})
|
|
297
|
-
}), /* @__PURE__ */
|
|
298
|
-
...g.props(I.toggleCell,
|
|
299
|
-
children: /* @__PURE__ */
|
|
300
|
-
ref:
|
|
301
|
-
controller:
|
|
302
|
-
render: /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ k("div", {
|
|
298
|
+
...g.props(I.toggleCell, s.inlineEnd, I.mobile),
|
|
299
|
+
children: /* @__PURE__ */ k(f.Trigger, {
|
|
300
|
+
ref: t.mobileNavigationToggleRef,
|
|
301
|
+
controller: t.drawerController,
|
|
302
|
+
render: /* @__PURE__ */ k(e, {
|
|
303
303
|
variant: "ghost",
|
|
304
304
|
"aria-label": "Open navigation"
|
|
305
305
|
}),
|
|
306
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ k(j, {
|
|
307
307
|
size: 16,
|
|
308
308
|
"aria-hidden": !0
|
|
309
309
|
})
|
|
@@ -341,54 +341,54 @@ var U = {
|
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
|
|
344
|
-
let a = b.toArray(e).length > 0, o = b.toArray(t).length > 0,
|
|
344
|
+
let a = b.toArray(e).length > 0, o = b.toArray(t).length > 0, c = b.toArray(i).length > 0;
|
|
345
345
|
if (b.toArray([
|
|
346
346
|
e,
|
|
347
347
|
t,
|
|
348
348
|
i
|
|
349
349
|
]).length === 0) return null;
|
|
350
|
-
let
|
|
351
|
-
return /* @__PURE__ */
|
|
352
|
-
...g.props(U.toolbar,
|
|
350
|
+
let l = n ? "nav" : N, u = n ? "div" : "span";
|
|
351
|
+
return /* @__PURE__ */ A("div", {
|
|
352
|
+
...g.props(U.toolbar, s.blockEnd),
|
|
353
353
|
children: [
|
|
354
|
-
|
|
354
|
+
c ? /* @__PURE__ */ k("div", {
|
|
355
355
|
className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
|
|
356
356
|
children: i
|
|
357
|
-
}) : r && /* @__PURE__ */
|
|
358
|
-
a && /* @__PURE__ */
|
|
357
|
+
}) : r && /* @__PURE__ */ k(fe, {}),
|
|
358
|
+
a && /* @__PURE__ */ k(l, {
|
|
359
359
|
tabIndex: n ? void 0 : -1,
|
|
360
360
|
"aria-label": n ? "Breadcrumb" : void 0,
|
|
361
361
|
className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
|
|
362
|
-
children: /* @__PURE__ */
|
|
362
|
+
children: /* @__PURE__ */ k(u, {
|
|
363
363
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
364
364
|
children: e
|
|
365
365
|
})
|
|
366
366
|
}),
|
|
367
|
-
o && /* @__PURE__ */
|
|
367
|
+
o && /* @__PURE__ */ k("div", {
|
|
368
368
|
className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
|
|
369
369
|
children: t
|
|
370
370
|
})
|
|
371
371
|
]
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
function me({ icon: e, children: t, ...
|
|
375
|
-
let
|
|
376
|
-
return /* @__PURE__ */
|
|
374
|
+
function me({ icon: e, children: t, ...r }) {
|
|
375
|
+
let i = e != null;
|
|
376
|
+
return /* @__PURE__ */ k("div", {
|
|
377
377
|
className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
|
|
378
|
-
children: /* @__PURE__ */
|
|
379
|
-
...
|
|
378
|
+
children: /* @__PURE__ */ A(n, {
|
|
379
|
+
...r,
|
|
380
380
|
variant: "ghost",
|
|
381
|
-
"aria-label":
|
|
381
|
+
"aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
|
|
382
382
|
xstyle: U.action,
|
|
383
|
-
children: [
|
|
383
|
+
children: [i && /* @__PURE__ */ k("span", {
|
|
384
384
|
"aria-hidden": !0,
|
|
385
385
|
className: "x3nfvp2 x2lah0s x6s0dn4",
|
|
386
386
|
children: e
|
|
387
|
-
}),
|
|
387
|
+
}), i || typeof t == "string" ? /* @__PURE__ */ k("span", {
|
|
388
388
|
...{
|
|
389
389
|
0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
|
|
390
390
|
1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
|
|
391
|
-
}[!!
|
|
391
|
+
}[!!i | 0],
|
|
392
392
|
children: t
|
|
393
393
|
}) : t]
|
|
394
394
|
})
|
|
@@ -396,14 +396,14 @@ function me({ icon: e, children: t, ...n }) {
|
|
|
396
396
|
}
|
|
397
397
|
// packages/layout/src/page-layout.tsx
|
|
398
398
|
function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
|
|
399
|
-
let a =
|
|
400
|
-
return /* @__PURE__ */
|
|
399
|
+
let a = c();
|
|
400
|
+
return /* @__PURE__ */ A("div", {
|
|
401
401
|
ref: e,
|
|
402
402
|
className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ A("div", {
|
|
404
404
|
className: "xeuugli",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
406
|
-
}), /* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ k(pe, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ k(l, { ...t }) : /* @__PURE__ */ k(u, { ...t }))]
|
|
406
|
+
}), /* @__PURE__ */ k("div", {
|
|
407
407
|
ref: a.ref,
|
|
408
408
|
tabIndex: a.tabIndex,
|
|
409
409
|
"data-page-viewport": "",
|
|
@@ -413,21 +413,21 @@ function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
|
|
|
413
413
|
})]
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
|
-
function he({ children: e, summary: t, breakdown: n, ...
|
|
417
|
-
let
|
|
418
|
-
return /* @__PURE__ */
|
|
416
|
+
function he({ children: e, summary: t, breakdown: n, ...r }) {
|
|
417
|
+
let i = t != null && t !== !1, o = w(), s = r.id ?? o;
|
|
418
|
+
return /* @__PURE__ */ A(ce, {
|
|
419
419
|
"aria-labelledby": s,
|
|
420
420
|
className: "xeuugli x2lah0s xc8icb0",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ k("div", {
|
|
422
422
|
className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
|
|
423
|
-
children: /* @__PURE__ */
|
|
424
|
-
...
|
|
423
|
+
children: /* @__PURE__ */ k(a, {
|
|
424
|
+
...r,
|
|
425
425
|
id: s
|
|
426
426
|
})
|
|
427
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ A("div", {
|
|
428
428
|
className: "xc8icb0",
|
|
429
429
|
children: [
|
|
430
|
-
|
|
430
|
+
i && /* @__PURE__ */ k(M, { children: t }),
|
|
431
431
|
n,
|
|
432
432
|
e
|
|
433
433
|
]
|
|
@@ -475,89 +475,89 @@ var G = x("rail"), K = {
|
|
|
475
475
|
}
|
|
476
476
|
};
|
|
477
477
|
function ge(e) {
|
|
478
|
-
return /* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ k(q, { ...e });
|
|
479
479
|
}
|
|
480
|
-
function q({ label:
|
|
481
|
-
let
|
|
480
|
+
function q({ label: r, links: a, action: o, isFooter: s = !1 }) {
|
|
481
|
+
let c = S(G) === "drawer", l = S(F);
|
|
482
482
|
function u(e, t) {
|
|
483
483
|
e?.(t);
|
|
484
484
|
let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
|
|
485
|
-
t.button !== 0 || n || r ||
|
|
485
|
+
t.button !== 0 || n || r || l?.onNavigate();
|
|
486
486
|
}
|
|
487
487
|
let d = (e) => {
|
|
488
|
-
|
|
488
|
+
o?.onClick(e), e.defaultPrevented || l?.onNavigate();
|
|
489
489
|
};
|
|
490
|
-
return
|
|
490
|
+
return c ? /* @__PURE__ */ A("div", {
|
|
491
491
|
className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
|
|
492
|
-
children: [/* @__PURE__ */
|
|
493
|
-
"aria-label":
|
|
492
|
+
children: [/* @__PURE__ */ k("nav", {
|
|
493
|
+
"aria-label": r,
|
|
494
494
|
...{
|
|
495
495
|
0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
|
|
496
496
|
1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
|
|
497
|
-
}[!!
|
|
498
|
-
children:
|
|
499
|
-
...y(g.props(h.base, h.button, K.mobileLink,
|
|
497
|
+
}[!!s | 0],
|
|
498
|
+
children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ A(i, {
|
|
499
|
+
...y(g.props(h.base, h.button, K.mobileLink, s && K.drawerFooterLink, K.rounded, K.selected), r),
|
|
500
500
|
"aria-current": n ? "location" : void 0,
|
|
501
501
|
onClick: (e) => u(r.onClick, e),
|
|
502
|
-
children: [/* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ k("span", {
|
|
503
503
|
"aria-hidden": !0,
|
|
504
504
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
505
505
|
children: t
|
|
506
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ k("span", {
|
|
507
507
|
className: "xeuugli x193iq5w xj0a0fe",
|
|
508
508
|
children: e
|
|
509
509
|
})]
|
|
510
510
|
}, r.href))
|
|
511
|
-
}),
|
|
511
|
+
}), o !== void 0 && /* @__PURE__ */ k("div", {
|
|
512
512
|
className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
|
|
513
|
-
children: /* @__PURE__ */
|
|
513
|
+
children: /* @__PURE__ */ A(n, {
|
|
514
514
|
variant: "ghost",
|
|
515
515
|
onClick: d,
|
|
516
|
-
children: [/* @__PURE__ */
|
|
516
|
+
children: [/* @__PURE__ */ k("span", {
|
|
517
517
|
"aria-hidden": !0,
|
|
518
518
|
className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
|
|
519
|
-
children:
|
|
520
|
-
}),
|
|
519
|
+
children: o.icon
|
|
520
|
+
}), o.label]
|
|
521
521
|
})
|
|
522
522
|
})]
|
|
523
|
-
}) : /* @__PURE__ */
|
|
523
|
+
}) : /* @__PURE__ */ A("div", {
|
|
524
524
|
...{
|
|
525
525
|
0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
|
|
526
526
|
1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
|
|
527
|
-
}[!
|
|
528
|
-
children: [/* @__PURE__ */
|
|
529
|
-
"aria-label":
|
|
527
|
+
}[!s | 0],
|
|
528
|
+
children: [/* @__PURE__ */ k("nav", {
|
|
529
|
+
"aria-label": r,
|
|
530
530
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
531
|
-
children:
|
|
532
|
-
render: /* @__PURE__ */
|
|
533
|
-
render: /* @__PURE__ */
|
|
534
|
-
...y({ className: "x1yk04ar" },
|
|
531
|
+
children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...a }) => /* @__PURE__ */ A(m.Root, { children: [/* @__PURE__ */ k(m.Trigger, {
|
|
532
|
+
render: /* @__PURE__ */ k(t, {
|
|
533
|
+
render: /* @__PURE__ */ k(i, {}),
|
|
534
|
+
...y({ className: "x1yk04ar" }, a),
|
|
535
535
|
"aria-current": r ? "location" : void 0,
|
|
536
|
-
"aria-label":
|
|
537
|
-
onClick: (e) => u(
|
|
536
|
+
"aria-label": e,
|
|
537
|
+
onClick: (e) => u(a.onClick, e)
|
|
538
538
|
}),
|
|
539
539
|
children: n
|
|
540
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ k(m.Popup, {
|
|
541
541
|
side: "right",
|
|
542
|
-
children:
|
|
543
|
-
})] },
|
|
544
|
-
}),
|
|
545
|
-
render: /* @__PURE__ */
|
|
542
|
+
children: e
|
|
543
|
+
})] }, a.href))
|
|
544
|
+
}), o !== void 0 && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ A(m.Root, { children: [/* @__PURE__ */ k(m.Trigger, {
|
|
545
|
+
render: /* @__PURE__ */ k(e, {
|
|
546
546
|
variant: "ghost",
|
|
547
|
-
"aria-label":
|
|
547
|
+
"aria-label": o.label,
|
|
548
548
|
xstyle: K.action
|
|
549
549
|
}),
|
|
550
550
|
onClick: d,
|
|
551
|
-
children:
|
|
552
|
-
}), /* @__PURE__ */
|
|
551
|
+
children: o.icon
|
|
552
|
+
}), /* @__PURE__ */ k(m.Popup, {
|
|
553
553
|
side: "right",
|
|
554
|
-
children:
|
|
554
|
+
children: o.label
|
|
555
555
|
})] })] })]
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
function _e({ children: e }) {
|
|
559
559
|
let t = S(G) === "drawer";
|
|
560
|
-
return /* @__PURE__ */
|
|
560
|
+
return /* @__PURE__ */ k("div", {
|
|
561
561
|
...{
|
|
562
562
|
0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
|
|
563
563
|
1: { className: "x78zum5 xdt5ytf xunmzkg x1yrrsrt x1c526fk x1cy8zhl x14w6jbu" }
|
|
@@ -566,17 +566,17 @@ function _e({ children: e }) {
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
function J({ children: e }) {
|
|
569
|
-
return /* @__PURE__ */
|
|
569
|
+
return /* @__PURE__ */ k("span", {
|
|
570
570
|
"aria-hidden": !0,
|
|
571
571
|
className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
|
|
572
572
|
children: e
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
function ve({ count: e, icon: t }) {
|
|
576
|
-
return /* @__PURE__ */
|
|
576
|
+
return /* @__PURE__ */ k("div", {
|
|
577
577
|
"aria-hidden": !0,
|
|
578
578
|
className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
|
|
579
|
-
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */
|
|
579
|
+
children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ k(J, { children: t }, n))
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
// packages/layout/src/navigation-rail-menu.tsx
|
|
@@ -590,7 +590,7 @@ var ye = {
|
|
|
590
590
|
align: "start"
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
function Y({ label:
|
|
593
|
+
function Y({ label: t, icon: n, children: r }) {
|
|
594
594
|
let i = S(G), [a, o] = E(!1);
|
|
595
595
|
return C(() => {
|
|
596
596
|
let e = globalThis.matchMedia(P.sidebarDesktopQuery);
|
|
@@ -598,27 +598,27 @@ function Y({ label: e, icon: n, children: r }) {
|
|
|
598
598
|
o(!1);
|
|
599
599
|
}
|
|
600
600
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
601
|
-
}, []), /* @__PURE__ */
|
|
601
|
+
}, []), /* @__PURE__ */ A(p.Root, {
|
|
602
602
|
open: a,
|
|
603
603
|
onOpenChange: o,
|
|
604
604
|
modal: !1,
|
|
605
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ A(m.Root, {
|
|
606
606
|
disabled: a || i === "drawer",
|
|
607
|
-
children: [/* @__PURE__ */
|
|
608
|
-
render: /* @__PURE__ */
|
|
607
|
+
children: [/* @__PURE__ */ k(m.Trigger, {
|
|
608
|
+
render: /* @__PURE__ */ k(p.Trigger, { render: /* @__PURE__ */ k(e, {
|
|
609
609
|
variant: "ghost",
|
|
610
|
-
"aria-label":
|
|
610
|
+
"aria-label": t
|
|
611
611
|
}) }),
|
|
612
612
|
children: n
|
|
613
|
-
}), /* @__PURE__ */
|
|
613
|
+
}), /* @__PURE__ */ k(m.Popup, {
|
|
614
614
|
side: "right",
|
|
615
|
-
children:
|
|
615
|
+
children: t
|
|
616
616
|
})]
|
|
617
|
-
}), /* @__PURE__ */
|
|
617
|
+
}), /* @__PURE__ */ k(p.Popup, {
|
|
618
618
|
...ye[i],
|
|
619
619
|
sideOffset: 4,
|
|
620
620
|
collisionPadding: 8,
|
|
621
|
-
"aria-label":
|
|
621
|
+
"aria-label": t,
|
|
622
622
|
className: "x1uncgzr",
|
|
623
623
|
children: r
|
|
624
624
|
})]
|
|
@@ -663,25 +663,25 @@ var X = {
|
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
665
|
function Z({ footer: e }) {
|
|
666
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */ k("div", {
|
|
667
667
|
className: "x2lah0s x1a148e8",
|
|
668
|
-
children: /* @__PURE__ */
|
|
668
|
+
children: /* @__PURE__ */ k(_e, { children: "placeholder" in e ? /* @__PURE__ */ A(O, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ k(J, { children: e.placeholder.linkIcon }), /* @__PURE__ */ k(J, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ A(O, { children: [e.navigation !== void 0 && /* @__PURE__ */ k(q, {
|
|
669
669
|
...e.navigation,
|
|
670
670
|
isFooter: !0
|
|
671
|
-
}), /* @__PURE__ */
|
|
671
|
+
}), /* @__PURE__ */ k(Y, { ...e.menu })] }) })
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus:
|
|
675
|
-
let
|
|
674
|
+
function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: c = !1 }) {
|
|
675
|
+
let l = e != null, [u, d] = E(!0), [p, m] = E(!1), h = c || l && !u, [_] = E(() => f.createController()), v = w(), y = T(null), b = T(null), x = T(null), S = T(!1);
|
|
676
676
|
return C(() => {
|
|
677
677
|
let e = globalThis.matchMedia(P.sidebarDesktopQuery);
|
|
678
678
|
function t() {
|
|
679
679
|
e.matches && m(!1);
|
|
680
680
|
}
|
|
681
681
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
682
|
-
}, []), /* @__PURE__ */
|
|
682
|
+
}, []), /* @__PURE__ */ A(F.Provider, {
|
|
683
683
|
value: {
|
|
684
|
-
isExpanded:
|
|
684
|
+
isExpanded: u,
|
|
685
685
|
sidebarId: v,
|
|
686
686
|
drawerController: _,
|
|
687
687
|
navigationToggleRef: y,
|
|
@@ -691,40 +691,40 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
691
691
|
S.current = p, m(!1);
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
|
-
children: [/* @__PURE__ */
|
|
694
|
+
children: [/* @__PURE__ */ A("div", {
|
|
695
695
|
className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
696
696
|
children: [
|
|
697
|
-
|
|
698
|
-
hidden:
|
|
699
|
-
...g.props(X.sidebar,
|
|
700
|
-
children: [/* @__PURE__ */
|
|
697
|
+
l && /* @__PURE__ */ A("div", {
|
|
698
|
+
hidden: c,
|
|
699
|
+
...g.props(X.sidebar, s.inlineEnd, X.rail, c && X.hidden),
|
|
700
|
+
children: [/* @__PURE__ */ k("div", {
|
|
701
701
|
className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
|
|
702
702
|
children: e
|
|
703
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
703
|
+
}), t !== void 0 && /* @__PURE__ */ k(Z, { footer: t })]
|
|
704
704
|
}),
|
|
705
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ k("aside", {
|
|
706
706
|
id: v,
|
|
707
707
|
"aria-label": "Navigation",
|
|
708
708
|
hidden: h,
|
|
709
|
-
...g.props(X.sidebar,
|
|
710
|
-
children: /* @__PURE__ */
|
|
709
|
+
...g.props(X.sidebar, s.inlineEnd, l && X.secondary, !l && !u && X.collapsed, h && X.hidden),
|
|
710
|
+
children: /* @__PURE__ */ k(L, {
|
|
711
711
|
header: n,
|
|
712
712
|
footer: i,
|
|
713
713
|
children: r
|
|
714
714
|
})
|
|
715
715
|
}),
|
|
716
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ k("main", {
|
|
717
717
|
id: o,
|
|
718
718
|
tabIndex: -1,
|
|
719
719
|
className: "xeuugli x98rzlu",
|
|
720
720
|
children: a
|
|
721
721
|
})
|
|
722
722
|
]
|
|
723
|
-
}), /* @__PURE__ */
|
|
723
|
+
}), /* @__PURE__ */ A(f.Root, {
|
|
724
724
|
controller: _,
|
|
725
|
-
open: p && !
|
|
725
|
+
open: p && !c,
|
|
726
726
|
onOpenChange: m,
|
|
727
|
-
children: [/* @__PURE__ */
|
|
727
|
+
children: [/* @__PURE__ */ k(f.Backdrop, {}), /* @__PURE__ */ A(f.Popup, {
|
|
728
728
|
ref: x,
|
|
729
729
|
xstyle: X.drawer,
|
|
730
730
|
finalFocus: () => {
|
|
@@ -739,20 +739,20 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
739
739
|
}
|
|
740
740
|
return globalThis.matchMedia(P.sidebarDesktopQuery).matches ? y.current : b.current;
|
|
741
741
|
},
|
|
742
|
-
children: [/* @__PURE__ */
|
|
742
|
+
children: [/* @__PURE__ */ k(f.Title, {
|
|
743
743
|
isVisuallyHidden: !0,
|
|
744
744
|
children: "Navigation"
|
|
745
|
-
}), /* @__PURE__ */
|
|
745
|
+
}), /* @__PURE__ */ k(L, {
|
|
746
746
|
header: n,
|
|
747
|
-
navigationHeader:
|
|
747
|
+
navigationHeader: l && /* @__PURE__ */ k(G.Provider, {
|
|
748
748
|
value: "drawer",
|
|
749
749
|
children: e
|
|
750
750
|
}),
|
|
751
|
-
footer: /* @__PURE__ */
|
|
751
|
+
footer: /* @__PURE__ */ A(O, { children: [i, l && t !== void 0 && /* @__PURE__ */ k(G.Provider, {
|
|
752
752
|
value: "drawer",
|
|
753
|
-
children: /* @__PURE__ */
|
|
753
|
+
children: /* @__PURE__ */ k(Z, { footer: t })
|
|
754
754
|
})] }),
|
|
755
|
-
close: /* @__PURE__ */
|
|
755
|
+
close: /* @__PURE__ */ k(ue, {}),
|
|
756
756
|
children: r
|
|
757
757
|
})]
|
|
758
758
|
})]
|
|
@@ -761,7 +761,7 @@ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
|
|
|
761
761
|
}
|
|
762
762
|
// packages/layout/src/detail-page.tsx
|
|
763
763
|
function Q({ children: e, isWide: t = !1 }) {
|
|
764
|
-
return /* @__PURE__ */
|
|
764
|
+
return /* @__PURE__ */ k("div", {
|
|
765
765
|
...{
|
|
766
766
|
0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
|
|
767
767
|
1: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
|
|
@@ -771,11 +771,11 @@ function Q({ children: e, isWide: t = !1 }) {
|
|
|
771
771
|
}
|
|
772
772
|
// packages/layout/src/focus-page.tsx
|
|
773
773
|
function xe({ children: e }) {
|
|
774
|
-
return /* @__PURE__ */
|
|
774
|
+
return /* @__PURE__ */ k("main", {
|
|
775
775
|
id: "main",
|
|
776
776
|
tabIndex: -1,
|
|
777
777
|
className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
778
|
-
children: /* @__PURE__ */
|
|
778
|
+
children: /* @__PURE__ */ k("div", {
|
|
779
779
|
className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
|
|
780
780
|
children: e
|
|
781
781
|
})
|
|
@@ -783,20 +783,20 @@ function xe({ children: e }) {
|
|
|
783
783
|
}
|
|
784
784
|
// packages/layout/src/workbench.tsx
|
|
785
785
|
function Se({ header: e, children: t, inspector: n }) {
|
|
786
|
-
return /* @__PURE__ */
|
|
786
|
+
return /* @__PURE__ */ A("div", {
|
|
787
787
|
className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
|
|
788
|
-
children: [e != null && /* @__PURE__ */
|
|
788
|
+
children: [e != null && /* @__PURE__ */ k("div", {
|
|
789
789
|
className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
|
|
790
790
|
children: e
|
|
791
|
-
}), /* @__PURE__ */
|
|
791
|
+
}), /* @__PURE__ */ A("div", {
|
|
792
792
|
className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
|
|
793
|
-
children: [/* @__PURE__ */
|
|
793
|
+
children: [/* @__PURE__ */ k("div", {
|
|
794
794
|
...{
|
|
795
795
|
0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
|
|
796
796
|
1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
|
|
797
797
|
}[n !== void 0 | 0],
|
|
798
798
|
children: t
|
|
799
|
-
}), n !== void 0 && /* @__PURE__ */
|
|
799
|
+
}), n !== void 0 && /* @__PURE__ */ k("aside", {
|
|
800
800
|
"aria-label": n.label,
|
|
801
801
|
className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
|
|
802
802
|
children: n.content
|
|
@@ -805,8 +805,8 @@ function Se({ header: e, children: t, inspector: n }) {
|
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
function Ce({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
|
|
808
|
-
let i =
|
|
809
|
-
return /* @__PURE__ */
|
|
808
|
+
let i = c();
|
|
809
|
+
return /* @__PURE__ */ k("div", {
|
|
810
810
|
ref: i.ref,
|
|
811
811
|
role: "region",
|
|
812
812
|
"aria-label": e,
|
|
@@ -820,20 +820,20 @@ function Ce({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
|
|
|
820
820
|
});
|
|
821
821
|
}
|
|
822
822
|
function we({ children: e }) {
|
|
823
|
-
return /* @__PURE__ */
|
|
823
|
+
return /* @__PURE__ */ k("div", {
|
|
824
824
|
className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
|
|
825
825
|
children: e
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
// packages/layout/src/view-stack.tsx
|
|
829
829
|
function Te({ children: e }) {
|
|
830
|
-
return /* @__PURE__ */
|
|
830
|
+
return /* @__PURE__ */ k("div", {
|
|
831
831
|
className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
832
832
|
children: e
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
835
|
function Ee({ isActive: e, children: t }) {
|
|
836
|
-
return /* @__PURE__ */
|
|
836
|
+
return /* @__PURE__ */ k("section", {
|
|
837
837
|
"aria-hidden": !e,
|
|
838
838
|
inert: !e,
|
|
839
839
|
...{
|
|
@@ -849,13 +849,13 @@ var De = {
|
|
|
849
849
|
};
|
|
850
850
|
// packages/layout/src/collection-layout.tsx
|
|
851
851
|
function $({ header: e, children: t }) {
|
|
852
|
-
return /* @__PURE__ */
|
|
852
|
+
return /* @__PURE__ */ A("div", {
|
|
853
853
|
"data-page-layout": "collection",
|
|
854
854
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
|
|
855
|
-
children: [/* @__PURE__ */
|
|
855
|
+
children: [/* @__PURE__ */ k("div", {
|
|
856
856
|
className: "x2lah0s xeuugli",
|
|
857
857
|
children: e
|
|
858
|
-
}), /* @__PURE__ */
|
|
858
|
+
}), /* @__PURE__ */ k("div", {
|
|
859
859
|
className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
|
|
860
860
|
children: t
|
|
861
861
|
})]
|
|
@@ -863,7 +863,7 @@ function $({ header: e, children: t }) {
|
|
|
863
863
|
}
|
|
864
864
|
// packages/layout/src/record-page.tsx
|
|
865
865
|
function Oe({ backLabel: e, backHref: t, onBack: n }) {
|
|
866
|
-
return /* @__PURE__ */
|
|
866
|
+
return /* @__PURE__ */ A(i, {
|
|
867
867
|
href: t,
|
|
868
868
|
className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
869
869
|
onClick: (e) => {
|
|
@@ -871,32 +871,32 @@ function Oe({ backLabel: e, backHref: t, onBack: n }) {
|
|
|
871
871
|
let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
|
|
872
872
|
t || r || (e.preventDefault(), n());
|
|
873
873
|
},
|
|
874
|
-
children: [/* @__PURE__ */
|
|
874
|
+
children: [/* @__PURE__ */ k(ee, {
|
|
875
875
|
size: 16,
|
|
876
876
|
"aria-hidden": !0,
|
|
877
877
|
className: "x2lah0s"
|
|
878
|
-
}), /* @__PURE__ */
|
|
878
|
+
}), /* @__PURE__ */ k("span", {
|
|
879
879
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
880
880
|
children: e
|
|
881
881
|
})]
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
884
|
function ke({ navigation: e, children: t, ...n }) {
|
|
885
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ k(W, {
|
|
886
886
|
showBreadcrumb: !0,
|
|
887
887
|
showNavigation: n.showNavigation ?? !0,
|
|
888
888
|
actions: n.actions,
|
|
889
|
-
title: /* @__PURE__ */
|
|
889
|
+
title: /* @__PURE__ */ k(Oe, { ...n }),
|
|
890
890
|
navigation: e,
|
|
891
891
|
children: t
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
function Ae({ children: e, isWide: t = !1 }) {
|
|
895
|
-
return /* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ k("div", {
|
|
896
896
|
className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
|
|
897
|
-
children: /* @__PURE__ */
|
|
897
|
+
children: /* @__PURE__ */ k(Q, {
|
|
898
898
|
isWide: t,
|
|
899
|
-
children: /* @__PURE__ */
|
|
899
|
+
children: /* @__PURE__ */ k("div", {
|
|
900
900
|
className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
|
|
901
901
|
children: e
|
|
902
902
|
})
|
|
@@ -904,32 +904,32 @@ function Ae({ children: e, isWide: t = !1 }) {
|
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
906
|
function je({ children: e }) {
|
|
907
|
-
return /* @__PURE__ */
|
|
907
|
+
return /* @__PURE__ */ k("div", {
|
|
908
908
|
className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
|
|
909
909
|
children: e
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
|
-
function Me({ title: e, description: t, icon:
|
|
913
|
-
return /* @__PURE__ */
|
|
912
|
+
function Me({ title: e, description: t, icon: n, titleRef: i }) {
|
|
913
|
+
return /* @__PURE__ */ A("header", {
|
|
914
914
|
className: "xrvj5dj x1n8ia3y xeuugli",
|
|
915
|
-
children: [/* @__PURE__ */
|
|
915
|
+
children: [/* @__PURE__ */ A("div", {
|
|
916
916
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
|
|
917
|
-
children: [
|
|
917
|
+
children: [n != null && /* @__PURE__ */ k("span", {
|
|
918
918
|
"aria-hidden": !0,
|
|
919
919
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
920
|
-
children:
|
|
921
|
-
}), /* @__PURE__ */
|
|
922
|
-
render: /* @__PURE__ */
|
|
923
|
-
ref:
|
|
920
|
+
children: n
|
|
921
|
+
}), /* @__PURE__ */ k(N, {
|
|
922
|
+
render: /* @__PURE__ */ k(o, {}),
|
|
923
|
+
ref: i,
|
|
924
924
|
tabIndex: -1,
|
|
925
925
|
className: "xeuugli x1t137rt",
|
|
926
926
|
children: e
|
|
927
927
|
})]
|
|
928
|
-
}), t != null && /* @__PURE__ */
|
|
928
|
+
}), t != null && /* @__PURE__ */ k(r, { children: t })]
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
function Ne({ children: e, label: t = "Properties" }) {
|
|
932
|
-
return /* @__PURE__ */
|
|
932
|
+
return /* @__PURE__ */ k("aside", {
|
|
933
933
|
"aria-label": t,
|
|
934
934
|
className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
|
|
935
935
|
children: e
|
|
@@ -944,7 +944,7 @@ var Pe = {
|
|
|
944
944
|
};
|
|
945
945
|
// packages/layout/src/resizable.tsx
|
|
946
946
|
function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
|
|
947
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ k(ne, {
|
|
948
948
|
orientation: e,
|
|
949
949
|
...t !== void 0 && { defaultLayout: t },
|
|
950
950
|
onLayoutCommit: (e, { event: t }) => {
|
|
@@ -956,7 +956,7 @@ function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
|
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
|
|
959
|
-
return /* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ k(ie, {
|
|
960
960
|
id: e,
|
|
961
961
|
...t !== void 0 && { defaultSize: t },
|
|
962
962
|
minSize: n,
|
|
@@ -967,7 +967,7 @@ function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumS
|
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
969
|
function Le({ ref: e, ...t }) {
|
|
970
|
-
return /* @__PURE__ */
|
|
970
|
+
return /* @__PURE__ */ k(re, {
|
|
971
971
|
ref: e,
|
|
972
972
|
...y({ 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)
|
|
973
973
|
});
|