@slotted/react 0.1.0-beta.4 → 0.1.0-beta.5
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 +16 -1
- package/dist/{action-bar-OACchRZw.js → action-bar-ti3e6FK1.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{app-shell-CmYvnu_7.js → app-shell-nnSP44OO.js} +271 -267
- package/dist/app-shell.js +1 -1
- package/dist/bin/slotted-agent-docs.mjs +297 -0
- package/dist/{cascader-D1AhTyBL.js → cascader-Cn2Acpcv.js} +227 -210
- package/dist/cascader.js +1 -1
- package/dist/chart-04i6NZQA.js +968 -0
- package/dist/chart.js +1 -1
- package/dist/{checkbox-DfxFHZaU.js → checkbox-B4Sb1eXj.js} +3 -3
- package/dist/{checkbox-group-9sDgrV5Z.js → checkbox-group-LpGMuq9w.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{code-block-CFHf8uTm.js → code-block-CTNiyt0U.js} +1 -1
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-CwbWzCKg.js → color-picker-BcRCeISx.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CTtizVhm.js → column-manager-BtkYLs5G.js} +4 -4
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-BVMI9lg8.js → combobox-C1D5doWM.js} +227 -198
- package/dist/combobox.js +1 -1
- package/dist/{context-menu-BuST6W94.js → context-menu-B00UIBVC.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-DD9A5U3D.js → currency-field-Dti9JFu0.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-CBMP_-JV.js → dashboard-grid-CoLKLvYL.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Eb-a4jg3.js → data-grid-DX95Y7mY.js} +18 -18
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-oICmxGkA.js → data-list-CWYTPNm-.js} +2 -2
- package/dist/data-list.js +1 -1
- package/dist/{date-field-Hr-OCU-H.js → date-field-BxEpqAPg.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/date-picker-DRk9SZp1.js +308 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-6Yz7avTS.js +483 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-B8TrmsDK.js → datetime-field-D2f9u6im.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-STqSWMkH.js +645 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-DQNQwr3K.js +1000 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{detail-panel-CW53lUjp.js → detail-panel-z6WGleP4.js} +1 -1
- package/dist/detail-panel.js +1 -1
- package/dist/docs/AGENTS.snippet.md +2 -0
- package/dist/docs/app-shell.examples.md +1 -1
- package/dist/docs/app-shell.json +4 -4
- package/dist/docs/app-shell.md +2 -2
- package/dist/docs/guidelines/README.md +2 -2
- package/dist/docs/guidelines/index.md +1 -1
- package/dist/docs/guidelines/own-elements.md +1 -1
- package/dist/docs/page-header.json +1 -0
- package/dist/docs/page-header.md +1 -1
- package/dist/docs/skills/build-own-element/SKILL.md +6 -6
- package/dist/docs/skills/compose-screen/SKILL.md +6 -6
- package/dist/docs/skills/review-screen/SKILL.md +6 -6
- package/dist/docs/skills/theme-app/SKILL.md +1 -1
- package/dist/docs/skills/waiting-states/SKILL.md +2 -2
- package/dist/docs/tabs.json +13 -3
- package/dist/docs/tabs.md +3 -2
- package/dist/{entity-picker-Dn1T7JCq.js → entity-picker-BdySwW8F.js} +274 -256
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CnF3iIZD.js → event-calendar-CiphPXdV.js} +4 -4
- package/dist/event-calendar.js +1 -1
- package/dist/{field-NJaCxl2h.js → field-BxQFpOXS.js} +1 -1
- package/dist/{field-group-hAzVa2O9.js → field-group-DcN_hiZN.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-CHyy1o--.js → filter-bar-C_dXljI_.js} +10 -10
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-BJE5dtaQ.js → hover-card-DpVzwvDJ.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{import-export-center-jF37b909.js → import-export-center-BQnMJz4g.js} +3 -3
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +63 -63
- package/dist/{listbox-Dv856z9I.js → listbox-D0MJcAMm.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-CeG8mUbI.js → markdown-IiVoh6yi.js} +2 -2
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-D6v_mz6O.js +809 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-b2CruimJ.js → menubar-DApIg1eR.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-DQ5ds0fX.js → multi-select-B8z6ApgW.js} +286 -257
- package/dist/multi-select.js +1 -1
- package/dist/{notification-center-C1iWWl5Y.js → notification-center-CGEEHcRA.js} +2 -2
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BFIAmv-z.js → number-field-DXk1TAXA.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-BNQhuKaT.js → otp-input-CI-kdNgx.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{popover-Be7JWbGJ.js → popover-DEp8Bf3e.js} +186 -166
- package/dist/popover.js +1 -1
- package/dist/{prompt-composer-BxpdkTpZ.js → prompt-composer-DdcU3S3L.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-BaVIP9UH.js → radio-group-D8csBZ8Z.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-DYBQBzwB.js → rating-rI3b5zII.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-DlE_--Z9.js → saved-views-B3brBTD9.js} +4 -4
- package/dist/saved-views.js +1 -1
- package/dist/scroll-area-DQ_ansLu.js +112 -0
- package/dist/scroll-area.js +1 -1
- package/dist/{segmented-control-DmuOGiu6.js → segmented-control-C-PzkTtg.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-M7Io4UL9.js → select-BUylPwpb.js} +241 -203
- package/dist/select.js +1 -1
- package/dist/{side-navigation-CBLtCzuJ.js → side-navigation-Bm-BZma1.js} +156 -140
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-DTes4HLF.js → slider-fp7kyg-6.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-CPgHiy9G.js → split-button-DKRm0j5c.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-DQzuIhPX.js → switch-aVoc4C2F.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-U9eJYCuB.js → table-BYEvFr4P.js} +276 -275
- package/dist/table.js +1 -1
- package/dist/{tabs-BtHmjlnM.js → tabs-HWmvOKM4.js} +109 -102
- package/dist/tabs.js +1 -1
- package/dist/{tags-input-CcOkm0AW.js → tags-input-pbv6x1Pi.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-DLfIZ0fk.js → text-field-CbQ6UCAP.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-CBJBJBi6.js → textarea-DJSfhrXH.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-DrhiCtUl.js → time-field-BI9n607q.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/time-picker-D6SlQWNF.js +402 -0
- package/dist/time-picker.js +1 -1
- package/dist/time-range-picker-CcV3_45h.js +751 -0
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-group-7iBR9Rn1.js → toggle-group-i7JPO8BM.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-DDZpEftQ.js → toolbar-B9knmgHA.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-CgjIROUy.js +410 -0
- package/dist/tooltip.js +1 -1
- package/dist/{top-navigation-e-tWMGNr.js → top-navigation-DiG2PF5W.js} +2 -2
- package/dist/top-navigation.js +1 -1
- package/dist/{transfer-CqZOTLMP.js → transfer--UOQVeKE.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +6 -4
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.types.d.ts +2 -2
- package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
- package/dist/types/table/table-content.d.ts.map +1 -1
- package/dist/types/tabs/tabs-parts.d.ts +2 -4
- package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
- package/dist/types/tabs/tabs.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/{upload-DjnlVR8y.js → upload-CLX5cURk.js} +1 -1
- package/dist/upload.js +1 -1
- package/package.json +10 -7
- package/dist/chart-O0ZhkzJe.js +0 -966
- package/dist/date-picker-D3-y2Jxw.js +0 -295
- package/dist/date-range-picker-y3b82Wmf.js +0 -471
- package/dist/datetime-picker-CIRHVLQp.js +0 -629
- package/dist/datetime-range-picker-DM-1m98z.js +0 -994
- package/dist/menu-parts-W58pVNUt.js +0 -786
- package/dist/scroll-area-BriwmvYY.js +0 -111
- package/dist/time-picker-CRQsMJbQ.js +0 -396
- package/dist/time-range-picker-DlZJsj1e.js +0 -745
- package/dist/tooltip-DbKTPe_i.js +0 -392
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as e, t } from "./icon-T9Yt4tnm.js";
|
|
2
2
|
import { r as n } from "./i18n-DpW8lqJ1.js";
|
|
3
|
-
import { i as r } from "./app-shell-
|
|
4
|
-
import { a as i, i as a, n as o, r as s } from "./tooltip-
|
|
3
|
+
import { i as r } from "./app-shell-nnSP44OO.js";
|
|
4
|
+
import { a as i, i as a, n as o, r as s } from "./tooltip-CgjIROUy.js";
|
|
5
5
|
import { i as c } from "./skeleton-2LSpg84Z.js";
|
|
6
6
|
import { nextOpenValues as l, sameOpenValues as u } from "@slotted/core/disclosure";
|
|
7
7
|
import { createControllable as d } from "@slotted/core/state";
|
|
8
|
-
import { createContext as f, useCallback as p, useContext as m, useEffect as h, useId as g, useImperativeHandle as _, useLayoutEffect as v, useMemo as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { createPresence as
|
|
11
|
-
import { createPortalRoot as
|
|
8
|
+
import { createContext as f, useCallback as p, useContext as m, useEffect as h, useId as g, useImperativeHandle as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
9
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { createPresence as T } from "@slotted/core/presence";
|
|
11
|
+
import { createPortalRoot as ee } from "@slotted/core/portal";
|
|
12
12
|
import { createDismissableLayer as E } from "@slotted/core/dismissable-layer";
|
|
13
13
|
import { createPositioner as te } from "@slotted/core/positioner";
|
|
14
14
|
import { createPortal as D } from "react-dom";
|
|
@@ -29,8 +29,8 @@ var A = {
|
|
|
29
29
|
function M() {
|
|
30
30
|
return m(j);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let n = M(), r =
|
|
32
|
+
function N({ children: e, ...t }) {
|
|
33
|
+
let n = M(), r = y(() => ({
|
|
34
34
|
autoExpand: t.autoExpand ?? n.autoExpand,
|
|
35
35
|
compactAt: t.compactAt ?? n.compactAt,
|
|
36
36
|
guides: t.guides ?? n.guides,
|
|
@@ -50,33 +50,33 @@ function re({ children: e, ...t }) {
|
|
|
50
50
|
t.truncate,
|
|
51
51
|
n
|
|
52
52
|
]);
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ C(j.Provider, {
|
|
54
54
|
value: r,
|
|
55
55
|
children: e
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/side-navigation/side-navigation.tsx
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
let e = m(
|
|
60
|
+
var P = "[data-part=\"link\"], [data-part=\"trigger\"]", F = f(void 0);
|
|
61
|
+
function I() {
|
|
62
|
+
let e = m(F);
|
|
63
63
|
if (e === void 0) throw Error("Every side-navigation part must be rendered inside SideNavigation.");
|
|
64
64
|
return e;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function re(e, t) {
|
|
67
67
|
for (let n = e.closest("[data-part=\"group\"]"); n !== null && t.contains(n); n = n.parentElement?.closest("[data-part=\"group\"]") ?? null) if (!n.parentElement?.hasAttribute("data-expanded")) return !1;
|
|
68
68
|
return !0;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let
|
|
70
|
+
function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpanded: o, defaultFlyout: s, defaultValue: c, expanded: f, flyout: m, guides: g, landmark: v, messages: S, mode: w, multiple: T, onExpandedChange: ee, onFlyoutChange: E, onKeyDown: te, onValueChange: D, ref: k, render: A, size: j, style: N, truncate: I, value: L, ...R }) {
|
|
71
|
+
let z = M(), ie = r(), B = e ?? z.autoExpand, ae = a ?? z.compactAt, oe = g ?? z.guides, se = v ?? (ie === void 0 && z.landmark), ce = n(ne, S), V = w ?? z.mode, H = T ?? z.multiple, U = j ?? z.size, W = I ?? z.truncate, [le, ue] = x(c ?? null), [de, fe] = x(o ?? []), [pe, me] = x(s ?? null), G = L === void 0 ? le : L, K = f === void 0 ? de : f, q = m === void 0 ? pe : m, [J, he] = x(null), [ge, _e] = x(!1), [ve, ye] = x(0), [Y, be] = x(null), X = V === "compact" || V === "auto" && ge, xe = b(/* @__PURE__ */ new Map()), Se = p((e, t) => (xe.current.set(e, t), () => {
|
|
72
72
|
xe.current.delete(e);
|
|
73
|
-
}), []), Z =
|
|
73
|
+
}), []), Z = b({
|
|
74
74
|
currentExpanded: K,
|
|
75
75
|
currentFlyout: q,
|
|
76
76
|
currentValue: G,
|
|
77
77
|
expanded: f,
|
|
78
78
|
flyout: m,
|
|
79
|
-
value:
|
|
79
|
+
value: L
|
|
80
80
|
});
|
|
81
81
|
Z.current = {
|
|
82
82
|
currentExpanded: K,
|
|
@@ -84,16 +84,16 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
84
84
|
currentValue: G,
|
|
85
85
|
expanded: f,
|
|
86
86
|
flyout: m,
|
|
87
|
-
value:
|
|
87
|
+
value: L
|
|
88
88
|
};
|
|
89
89
|
let Ce = p((e, t, n) => {
|
|
90
90
|
d({
|
|
91
91
|
controlled: Z.current.expanded,
|
|
92
92
|
equals: u,
|
|
93
93
|
initial: Z.current.currentExpanded,
|
|
94
|
-
onRequest: (e) =>
|
|
94
|
+
onRequest: (e) => ee?.(e.value, e)
|
|
95
95
|
}).request(e, t, n) && fe(e);
|
|
96
|
-
}, [
|
|
96
|
+
}, [ee]), Q = p((e, t, n, r) => {
|
|
97
97
|
let i = Z.current.currentExpanded;
|
|
98
98
|
i.includes(e) !== t && Ce(l(i, e, { multiple: H }), n, r);
|
|
99
99
|
}, [Ce, H]), $ = p((e, t, n) => {
|
|
@@ -112,12 +112,12 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
112
112
|
h(() => {
|
|
113
113
|
if (J === null || V !== "auto") return;
|
|
114
114
|
let e = O(J, {
|
|
115
|
-
at:
|
|
115
|
+
at: ae,
|
|
116
116
|
onChange: _e
|
|
117
117
|
});
|
|
118
118
|
return _e(e.narrow()), () => e.destroy();
|
|
119
119
|
}, [
|
|
120
|
-
|
|
120
|
+
ae,
|
|
121
121
|
V,
|
|
122
122
|
J
|
|
123
123
|
]), h(() => {
|
|
@@ -133,7 +133,7 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
133
133
|
}, [J]), h(() => {
|
|
134
134
|
!X && Z.current.currentFlyout !== null && $(null, "resize");
|
|
135
135
|
}, [X, $]), h(() => {
|
|
136
|
-
if (!
|
|
136
|
+
if (!B || G === null) return;
|
|
137
137
|
let e = [];
|
|
138
138
|
for (let t = xe.current.get(G) ?? null; t !== null; t = xe.current.get(t) ?? null) Z.current.currentExpanded.includes(t) || e.push(t);
|
|
139
139
|
if (e.length === 0) return;
|
|
@@ -142,14 +142,14 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
142
142
|
}, [
|
|
143
143
|
G,
|
|
144
144
|
Ce,
|
|
145
|
-
|
|
145
|
+
B,
|
|
146
146
|
H
|
|
147
147
|
]);
|
|
148
148
|
let Te = p(() => {
|
|
149
149
|
if (J === null) return [];
|
|
150
|
-
let e = [...J.querySelectorAll(
|
|
150
|
+
let e = [...J.querySelectorAll(P)].filter((e) => re(e, J));
|
|
151
151
|
if (Y === null || q === null) return e;
|
|
152
|
-
let t = [...Y.querySelectorAll(
|
|
152
|
+
let t = [...Y.querySelectorAll(P)], n = e.findIndex((e) => e.closest("[data-part=\"item\"]")?.getAttribute("data-value") === q);
|
|
153
153
|
return n === -1 ? [...e, ...t] : [
|
|
154
154
|
...e.slice(0, n + 1),
|
|
155
155
|
...t,
|
|
@@ -188,13 +188,13 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
188
188
|
Te,
|
|
189
189
|
Q
|
|
190
190
|
]);
|
|
191
|
-
let De =
|
|
192
|
-
autoExpand:
|
|
191
|
+
let De = y(() => ({
|
|
192
|
+
autoExpand: B,
|
|
193
193
|
compact: X,
|
|
194
194
|
expanded: K,
|
|
195
195
|
flyout: q,
|
|
196
196
|
flyoutNode: Y,
|
|
197
|
-
guides:
|
|
197
|
+
guides: oe,
|
|
198
198
|
isExpanded: (e) => K.includes(e),
|
|
199
199
|
measureTick: ve,
|
|
200
200
|
mode: V,
|
|
@@ -215,8 +215,8 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
215
215
|
Y,
|
|
216
216
|
ve,
|
|
217
217
|
Se,
|
|
218
|
-
z,
|
|
219
218
|
B,
|
|
219
|
+
oe,
|
|
220
220
|
V,
|
|
221
221
|
H,
|
|
222
222
|
U,
|
|
@@ -224,24 +224,24 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
224
224
|
we,
|
|
225
225
|
$,
|
|
226
226
|
Q
|
|
227
|
-
]), { "aria-label": Oe, ...ke } =
|
|
227
|
+
]), { "aria-label": Oe, ...ke } = R, Ae = {
|
|
228
228
|
...ke,
|
|
229
229
|
...se ? { "aria-label": Oe ?? ce("navigation") } : {},
|
|
230
230
|
children: t,
|
|
231
231
|
className: i,
|
|
232
232
|
...X ? { "data-compact": "" } : {},
|
|
233
|
-
...
|
|
233
|
+
...oe ? { "data-guides": "" } : {},
|
|
234
234
|
"data-mode": V,
|
|
235
235
|
"data-part": "root",
|
|
236
236
|
"data-size": U,
|
|
237
237
|
"data-truncate": W,
|
|
238
238
|
"data-ui": "side-navigation",
|
|
239
239
|
onKeyDown: Ee,
|
|
240
|
-
style:
|
|
240
|
+
style: N
|
|
241
241
|
}, je = se ? "nav" : "div";
|
|
242
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ C(F.Provider, {
|
|
243
243
|
value: De,
|
|
244
|
-
children: A === void 0 ? /* @__PURE__ */
|
|
244
|
+
children: A === void 0 ? /* @__PURE__ */ C(je, {
|
|
245
245
|
...Ae,
|
|
246
246
|
ref: he
|
|
247
247
|
}) : A(Ae)
|
|
@@ -249,28 +249,28 @@ function I({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
249
249
|
}
|
|
250
250
|
//#endregion
|
|
251
251
|
//#region src/side-navigation/side-navigation-parts.tsx
|
|
252
|
-
function
|
|
252
|
+
function R(e, ...t) {
|
|
253
253
|
for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function z(e) {
|
|
256
256
|
return e.detail === 0 ? "keyboard" : "pointer";
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
let e = m(
|
|
258
|
+
var ie = f(void 0);
|
|
259
|
+
function B() {
|
|
260
|
+
let e = m(ie);
|
|
261
261
|
if (e === void 0) throw Error("SideNavigationLink, SideNavigationTrigger, SideNavigationGroup and the parts of a row must be rendered inside SideNavigationItem.");
|
|
262
262
|
return e;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
return m(
|
|
264
|
+
function ae() {
|
|
265
|
+
return m(ie);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function oe({ children: e, ref: t, render: n, ...r }) {
|
|
268
268
|
let i = {
|
|
269
269
|
...r,
|
|
270
270
|
children: e,
|
|
271
271
|
"data-part": "section"
|
|
272
272
|
};
|
|
273
|
-
return n === void 0 ? /* @__PURE__ */
|
|
273
|
+
return n === void 0 ? /* @__PURE__ */ C("div", {
|
|
274
274
|
...i,
|
|
275
275
|
ref: t
|
|
276
276
|
}) : n(i);
|
|
@@ -281,7 +281,7 @@ function se({ children: e, ref: t, render: n, ...r }) {
|
|
|
281
281
|
children: e,
|
|
282
282
|
"data-part": "section-label"
|
|
283
283
|
};
|
|
284
|
-
return n === void 0 ? /* @__PURE__ */
|
|
284
|
+
return n === void 0 ? /* @__PURE__ */ C("div", {
|
|
285
285
|
...i,
|
|
286
286
|
ref: t
|
|
287
287
|
}) : n(i);
|
|
@@ -292,33 +292,33 @@ function ce({ children: e, ref: t, render: n, ...r }) {
|
|
|
292
292
|
children: e,
|
|
293
293
|
"data-part": "list"
|
|
294
294
|
};
|
|
295
|
-
return n === void 0 ? /* @__PURE__ */
|
|
295
|
+
return n === void 0 ? /* @__PURE__ */ C("ul", {
|
|
296
296
|
...i,
|
|
297
297
|
ref: t
|
|
298
298
|
}) : n(i);
|
|
299
299
|
}
|
|
300
300
|
function V({ children: e, className: t, disabled: n, ref: r, render: i, style: a, value: o, ...s }) {
|
|
301
|
-
let c =
|
|
302
|
-
h(() =>
|
|
301
|
+
let c = I(), l = ae(), u = g(), [d, f] = x(!1), [m, _] = x(!1), [v, b] = x(!1), [S, w] = x(""), [T, ee] = x(""), [E, te] = x(null), [D, ne] = x([]), O = c.isExpanded(o), k = c.compact && c.flyout === o, A = d && c.value === o, j = D.length > 0, M = n === !0 || l?.disabled === !0, { registerItem: N } = c;
|
|
302
|
+
h(() => N(o, l?.value ?? null), [
|
|
303
303
|
l?.value,
|
|
304
|
-
|
|
304
|
+
N,
|
|
305
305
|
o
|
|
306
306
|
]);
|
|
307
|
-
let
|
|
307
|
+
let P = p((e, t) => {
|
|
308
308
|
ne((n) => t === n.includes(e) ? n : t ? [...n, e] : n.filter((t) => t !== e));
|
|
309
|
-
}, []),
|
|
309
|
+
}, []), F = l?.reportCurrent;
|
|
310
310
|
h(() => {
|
|
311
|
-
if (
|
|
311
|
+
if (F !== void 0) return F(o, A || j), () => F(o, !1);
|
|
312
312
|
}, [
|
|
313
313
|
A,
|
|
314
314
|
j,
|
|
315
|
-
|
|
315
|
+
F,
|
|
316
316
|
o
|
|
317
317
|
]);
|
|
318
|
-
let
|
|
318
|
+
let re = y(() => ({
|
|
319
319
|
clipped: v,
|
|
320
320
|
current: A,
|
|
321
|
-
descriptionText:
|
|
321
|
+
descriptionText: T,
|
|
322
322
|
disabled: M,
|
|
323
323
|
expanded: O,
|
|
324
324
|
flyoutOpen: k,
|
|
@@ -330,13 +330,13 @@ function V({ children: e, className: t, disabled: n, ref: r, render: i, style: a
|
|
|
330
330
|
labelId: `${u}label`,
|
|
331
331
|
triggerId: `${u}trigger`
|
|
332
332
|
},
|
|
333
|
-
labelText:
|
|
334
|
-
reportCurrent:
|
|
335
|
-
setClipped:
|
|
336
|
-
setDescriptionText:
|
|
333
|
+
labelText: S,
|
|
334
|
+
reportCurrent: P,
|
|
335
|
+
setClipped: b,
|
|
336
|
+
setDescriptionText: ee,
|
|
337
337
|
setHasGroup: _,
|
|
338
338
|
setHasLink: f,
|
|
339
|
-
setLabelText:
|
|
339
|
+
setLabelText: w,
|
|
340
340
|
setTriggerNode: te,
|
|
341
341
|
triggerNode: E,
|
|
342
342
|
value: o
|
|
@@ -344,22 +344,22 @@ function V({ children: e, className: t, disabled: n, ref: r, render: i, style: a
|
|
|
344
344
|
u,
|
|
345
345
|
v,
|
|
346
346
|
A,
|
|
347
|
-
|
|
347
|
+
T,
|
|
348
348
|
O,
|
|
349
349
|
k,
|
|
350
350
|
m,
|
|
351
351
|
d,
|
|
352
352
|
j,
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
S,
|
|
354
|
+
P,
|
|
355
355
|
M,
|
|
356
356
|
E,
|
|
357
357
|
o
|
|
358
|
-
]),
|
|
358
|
+
]), L = A || j && (!O || c.compact), R = {
|
|
359
359
|
...s,
|
|
360
360
|
children: e,
|
|
361
361
|
className: t,
|
|
362
|
-
...
|
|
362
|
+
...L ? { "data-current": "" } : {},
|
|
363
363
|
...M ? { "data-disabled": "" } : {},
|
|
364
364
|
...O ? { "data-expanded": "" } : {},
|
|
365
365
|
...k ? { "data-open": "" } : {},
|
|
@@ -367,26 +367,26 @@ function V({ children: e, className: t, disabled: n, ref: r, render: i, style: a
|
|
|
367
367
|
"data-value": o,
|
|
368
368
|
style: a
|
|
369
369
|
};
|
|
370
|
-
return /* @__PURE__ */
|
|
371
|
-
value:
|
|
372
|
-
children: i === void 0 ? /* @__PURE__ */
|
|
373
|
-
...
|
|
370
|
+
return /* @__PURE__ */ C(ie.Provider, {
|
|
371
|
+
value: re,
|
|
372
|
+
children: i === void 0 ? /* @__PURE__ */ C("li", {
|
|
373
|
+
...R,
|
|
374
374
|
ref: r
|
|
375
|
-
}) : i(
|
|
375
|
+
}) : i(R)
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
function H({ children: e, enabled: t }) {
|
|
379
|
-
let n =
|
|
380
|
-
return /* @__PURE__ */
|
|
379
|
+
let n = B();
|
|
380
|
+
return /* @__PURE__ */ w(i, {
|
|
381
381
|
describes: "description",
|
|
382
382
|
disabled: !t,
|
|
383
383
|
openOn: "hover",
|
|
384
384
|
side: "inline-end",
|
|
385
|
-
children: [e, /* @__PURE__ */
|
|
385
|
+
children: [e, /* @__PURE__ */ C(s, { children: /* @__PURE__ */ w(o, { children: [n.labelText, n.descriptionText.length > 0 ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("br", {}), n.descriptionText] }) : null] }) })]
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
function U({ children: e, className: t, current: n, href: r, onClick: i, ref: o, render: s, style: c, ...l }) {
|
|
389
|
-
let u =
|
|
389
|
+
let u = I(), d = B();
|
|
390
390
|
h(() => (d.setHasLink(!0), () => d.setHasLink(!1)), [d.setHasLink]);
|
|
391
391
|
let f = r !== void 0 || s !== void 0, p = n ?? (f && u.value === d.value), m = u.truncate === "middle" && d.clipped && d.labelText.length > 0, g = (e) => {
|
|
392
392
|
if (i?.(e), d.disabled) {
|
|
@@ -394,7 +394,7 @@ function U({ children: e, className: t, current: n, href: r, onClick: i, ref: o,
|
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
396
|
if (e.defaultPrevented) return;
|
|
397
|
-
let t =
|
|
397
|
+
let t = z(e);
|
|
398
398
|
f && u.select(d.value, t, e.nativeEvent), u.flyout !== null && u.compact && u.setFlyout(null, "select", e.nativeEvent);
|
|
399
399
|
}, _ = {
|
|
400
400
|
...l,
|
|
@@ -409,29 +409,29 @@ function U({ children: e, className: t, current: n, href: r, onClick: i, ref: o,
|
|
|
409
409
|
onClick: g,
|
|
410
410
|
style: c
|
|
411
411
|
};
|
|
412
|
-
return /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ C(H, {
|
|
413
413
|
enabled: u.compact || d.clipped,
|
|
414
|
-
children: /* @__PURE__ */
|
|
414
|
+
children: /* @__PURE__ */ C(a, {
|
|
415
415
|
..._,
|
|
416
416
|
render: (e) => {
|
|
417
417
|
let t = (t) => {
|
|
418
|
-
e.ref?.(t),
|
|
418
|
+
e.ref?.(t), R(t, o);
|
|
419
419
|
}, n = {
|
|
420
420
|
...e,
|
|
421
421
|
ref: t
|
|
422
422
|
};
|
|
423
|
-
return s === void 0 ? r === void 0 ? /* @__PURE__ */
|
|
423
|
+
return s === void 0 ? r === void 0 ? /* @__PURE__ */ C("button", {
|
|
424
424
|
...n,
|
|
425
425
|
type: "button"
|
|
426
|
-
}) : /* @__PURE__ */
|
|
426
|
+
}) : /* @__PURE__ */ C("a", { ...n }) : s(n);
|
|
427
427
|
}
|
|
428
428
|
})
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
function W({ children: n, className: r, onClick: i, ref: o, render: s, style: c, ...l }) {
|
|
432
|
-
let u =
|
|
432
|
+
let u = I(), d = B(), f = d.hasLink, m = (e) => {
|
|
433
433
|
if (i?.(e), e.defaultPrevented) return;
|
|
434
|
-
let t =
|
|
434
|
+
let t = z(e);
|
|
435
435
|
if (u.compact && !f) {
|
|
436
436
|
u.setFlyout(d.flyoutOpen ? null : d.value, t, e.nativeEvent);
|
|
437
437
|
return;
|
|
@@ -442,12 +442,12 @@ function W({ children: n, className: r, onClick: i, ref: o, render: s, style: c,
|
|
|
442
442
|
"aria-controls": d.ids.groupId,
|
|
443
443
|
"aria-expanded": d.flyoutOpen || d.expanded,
|
|
444
444
|
...f ? { "aria-labelledby": d.ids.labelId } : {},
|
|
445
|
-
children: /* @__PURE__ */
|
|
445
|
+
children: /* @__PURE__ */ w(S, { children: [n, /* @__PURE__ */ C("span", {
|
|
446
446
|
"aria-hidden": "true",
|
|
447
447
|
"data-part": "indicator",
|
|
448
|
-
children: /* @__PURE__ */
|
|
448
|
+
children: /* @__PURE__ */ C(t, {
|
|
449
449
|
directional: !0,
|
|
450
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ C(e, { name: "chevron-right" })
|
|
451
451
|
})
|
|
452
452
|
})] }),
|
|
453
453
|
className: r,
|
|
@@ -458,11 +458,11 @@ function W({ children: n, className: r, onClick: i, ref: o, render: s, style: c,
|
|
|
458
458
|
style: c,
|
|
459
459
|
type: "button"
|
|
460
460
|
}, g = p((e) => {
|
|
461
|
-
d.setTriggerNode(e),
|
|
461
|
+
d.setTriggerNode(e), R(e, o);
|
|
462
462
|
}, [d.setTriggerNode, o]);
|
|
463
|
-
return /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ C(H, {
|
|
464
464
|
enabled: !f && (u.compact || d.clipped),
|
|
465
|
-
children: /* @__PURE__ */
|
|
465
|
+
children: /* @__PURE__ */ C(a, {
|
|
466
466
|
...h,
|
|
467
467
|
render: (e) => {
|
|
468
468
|
let t = (t) => {
|
|
@@ -471,7 +471,7 @@ function W({ children: n, className: r, onClick: i, ref: o, render: s, style: c,
|
|
|
471
471
|
...e,
|
|
472
472
|
ref: t
|
|
473
473
|
};
|
|
474
|
-
return s === void 0 ? /* @__PURE__ */
|
|
474
|
+
return s === void 0 ? /* @__PURE__ */ C("button", { ...n }) : s(n);
|
|
475
475
|
}
|
|
476
476
|
})
|
|
477
477
|
});
|
|
@@ -483,13 +483,13 @@ function le({ children: e, ref: t, render: n, ...r }) {
|
|
|
483
483
|
children: e,
|
|
484
484
|
"data-part": "icon"
|
|
485
485
|
};
|
|
486
|
-
return n === void 0 ? /* @__PURE__ */
|
|
486
|
+
return n === void 0 ? /* @__PURE__ */ C("span", {
|
|
487
487
|
...i,
|
|
488
488
|
ref: t
|
|
489
489
|
}) : n(i);
|
|
490
490
|
}
|
|
491
491
|
function ue({ children: e, ref: t, render: n, ...r }) {
|
|
492
|
-
let i =
|
|
492
|
+
let i = I(), a = B(), [o, s] = x(null), [c, l] = x(null), u = typeof e == "string" ? e : null;
|
|
493
493
|
v(() => {
|
|
494
494
|
if (o === null) return;
|
|
495
495
|
let e = u ?? o.textContent ?? "";
|
|
@@ -528,15 +528,15 @@ function ue({ children: e, ref: t, render: n, ...r }) {
|
|
|
528
528
|
"data-part": "label",
|
|
529
529
|
id: a.ids.labelId
|
|
530
530
|
};
|
|
531
|
-
return n === void 0 ? /* @__PURE__ */
|
|
531
|
+
return n === void 0 ? /* @__PURE__ */ C("span", {
|
|
532
532
|
...d,
|
|
533
533
|
ref: (e) => {
|
|
534
|
-
s(e),
|
|
534
|
+
s(e), R(e, t);
|
|
535
535
|
}
|
|
536
536
|
}) : n(d);
|
|
537
537
|
}
|
|
538
538
|
function de({ children: e, ref: t, render: n, ...r }) {
|
|
539
|
-
let i =
|
|
539
|
+
let i = B(), [a, o] = x(null);
|
|
540
540
|
v(() => {
|
|
541
541
|
a !== null && i.setDescriptionText(a.textContent ?? "");
|
|
542
542
|
}, [
|
|
@@ -549,10 +549,10 @@ function de({ children: e, ref: t, render: n, ...r }) {
|
|
|
549
549
|
children: e,
|
|
550
550
|
"data-part": "description"
|
|
551
551
|
};
|
|
552
|
-
return n === void 0 ? /* @__PURE__ */
|
|
552
|
+
return n === void 0 ? /* @__PURE__ */ C("span", {
|
|
553
553
|
...s,
|
|
554
554
|
ref: (e) => {
|
|
555
|
-
o(e),
|
|
555
|
+
o(e), R(e, t);
|
|
556
556
|
}
|
|
557
557
|
}) : n(s);
|
|
558
558
|
}
|
|
@@ -562,7 +562,7 @@ function fe({ children: e, ref: t, render: n, ...r }) {
|
|
|
562
562
|
children: e,
|
|
563
563
|
"data-part": "count"
|
|
564
564
|
};
|
|
565
|
-
return n === void 0 ? /* @__PURE__ */
|
|
565
|
+
return n === void 0 ? /* @__PURE__ */ C("span", {
|
|
566
566
|
...i,
|
|
567
567
|
ref: t
|
|
568
568
|
}) : n(i);
|
|
@@ -573,7 +573,7 @@ function pe({ children: e, ref: t, render: n, ...r }) {
|
|
|
573
573
|
children: e,
|
|
574
574
|
"data-part": "end"
|
|
575
575
|
};
|
|
576
|
-
return n === void 0 ? /* @__PURE__ */
|
|
576
|
+
return n === void 0 ? /* @__PURE__ */ C("span", {
|
|
577
577
|
...i,
|
|
578
578
|
ref: t
|
|
579
579
|
}) : n(i);
|
|
@@ -584,7 +584,7 @@ function me({ children: e, ref: t, render: n, ...r }) {
|
|
|
584
584
|
children: e,
|
|
585
585
|
"data-part": "actions"
|
|
586
586
|
};
|
|
587
|
-
return n === void 0 ? /* @__PURE__ */
|
|
587
|
+
return n === void 0 ? /* @__PURE__ */ C("div", {
|
|
588
588
|
...i,
|
|
589
589
|
ref: t
|
|
590
590
|
}) : n(i);
|
|
@@ -595,26 +595,26 @@ function G({ ref: e, render: t, ...n }) {
|
|
|
595
595
|
"data-part": "divider",
|
|
596
596
|
role: "separator"
|
|
597
597
|
};
|
|
598
|
-
return t === void 0 ? /* @__PURE__ */
|
|
598
|
+
return t === void 0 ? /* @__PURE__ */ C("li", {
|
|
599
599
|
...r,
|
|
600
600
|
ref: e
|
|
601
601
|
}) : t(r);
|
|
602
602
|
}
|
|
603
603
|
function K({ labelSize: e = "60%", ref: t, ...n }) {
|
|
604
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ w("li", {
|
|
605
605
|
...n,
|
|
606
606
|
"aria-hidden": "true",
|
|
607
607
|
"data-part": "skeleton",
|
|
608
608
|
ref: t,
|
|
609
|
-
children: [/* @__PURE__ */
|
|
609
|
+
children: [/* @__PURE__ */ C("span", {
|
|
610
610
|
"data-part": "icon",
|
|
611
|
-
children: /* @__PURE__ */
|
|
611
|
+
children: /* @__PURE__ */ C(c, {
|
|
612
612
|
shape: "square",
|
|
613
613
|
size: "xs"
|
|
614
614
|
})
|
|
615
|
-
}), /* @__PURE__ */
|
|
615
|
+
}), /* @__PURE__ */ C("span", {
|
|
616
616
|
"data-part": "label",
|
|
617
|
-
children: /* @__PURE__ */
|
|
617
|
+
children: /* @__PURE__ */ C(c, {
|
|
618
618
|
inlineSize: e,
|
|
619
619
|
shape: "text"
|
|
620
620
|
})
|
|
@@ -622,37 +622,45 @@ function K({ labelSize: e = "60%", ref: t, ...n }) {
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
function q({ children: e, onExited: t, open: n }) {
|
|
625
|
-
let r =
|
|
625
|
+
let r = I(), i = B(), [a, o] = x(null), [s, c] = x(null), [l, u] = x("unmounted"), d = b(null), f = b({
|
|
626
626
|
navigation: r,
|
|
627
|
-
onExited: t
|
|
627
|
+
onExited: t,
|
|
628
|
+
open: n
|
|
628
629
|
});
|
|
629
|
-
|
|
630
|
+
f.current = {
|
|
630
631
|
navigation: r,
|
|
631
|
-
onExited: t
|
|
632
|
+
onExited: t,
|
|
633
|
+
open: n
|
|
632
634
|
}, h(() => {
|
|
633
|
-
let e =
|
|
635
|
+
let e = T({
|
|
634
636
|
present: n,
|
|
635
637
|
onStatusChange: u
|
|
636
638
|
});
|
|
637
|
-
return
|
|
638
|
-
e.destroy(),
|
|
639
|
+
return d.current = e, u(e.status), () => {
|
|
640
|
+
e.destroy(), d.current = null;
|
|
639
641
|
};
|
|
640
642
|
}, []), h(() => {
|
|
641
|
-
|
|
643
|
+
d.current?.sync(n);
|
|
642
644
|
}, [n]), h(() => {
|
|
643
|
-
|
|
645
|
+
d.current?.setNode(a);
|
|
644
646
|
}, [a]);
|
|
645
|
-
let
|
|
647
|
+
let m = b(!1);
|
|
646
648
|
h(() => {
|
|
647
|
-
l === "unmounted" ?
|
|
649
|
+
l === "unmounted" ? m.current && f.current.onExited() : m.current = !0;
|
|
648
650
|
}, [l]);
|
|
649
|
-
let
|
|
650
|
-
|
|
651
|
-
let e =
|
|
651
|
+
let g = i.triggerNode;
|
|
652
|
+
v(() => {
|
|
653
|
+
let e = ee({ origin: g });
|
|
652
654
|
return c(e.container), () => e.release();
|
|
653
|
-
}, [
|
|
654
|
-
|
|
655
|
-
|
|
655
|
+
}, [g]);
|
|
656
|
+
let _ = b(null), y = p((e, t) => {
|
|
657
|
+
e.update().then(() => {
|
|
658
|
+
_.current === e && f.current.open && t.setAttribute("data-open", "");
|
|
659
|
+
});
|
|
660
|
+
}, []);
|
|
661
|
+
v(() => {
|
|
662
|
+
if (a === null || g === null) return;
|
|
663
|
+
let e = te(g, a, {
|
|
656
664
|
align: "start",
|
|
657
665
|
flip: !0,
|
|
658
666
|
shift: !0,
|
|
@@ -660,12 +668,21 @@ function q({ children: e, onExited: t, open: n }) {
|
|
|
660
668
|
sideOffset: 0,
|
|
661
669
|
strategy: "fixed"
|
|
662
670
|
});
|
|
663
|
-
return
|
|
664
|
-
e
|
|
665
|
-
}), () => {
|
|
666
|
-
e = !1, t.destroy(), f(!1);
|
|
671
|
+
return _.current = e, f.current.open && y(e, a), () => {
|
|
672
|
+
e.destroy(), _.current = null, a.removeAttribute("data-open");
|
|
667
673
|
};
|
|
668
|
-
}, [
|
|
674
|
+
}, [
|
|
675
|
+
g,
|
|
676
|
+
a,
|
|
677
|
+
y
|
|
678
|
+
]), v(() => {
|
|
679
|
+
let e = _.current;
|
|
680
|
+
e !== null && a !== null && (n ? y(e, a) : a.removeAttribute("data-open"));
|
|
681
|
+
}, [
|
|
682
|
+
a,
|
|
683
|
+
n,
|
|
684
|
+
y
|
|
685
|
+
]), h(() => {
|
|
669
686
|
if (a === null || !n) return;
|
|
670
687
|
let e = E(a, {
|
|
671
688
|
escape: !0,
|
|
@@ -673,36 +690,35 @@ function q({ children: e, onExited: t, open: n }) {
|
|
|
673
690
|
modal: !1,
|
|
674
691
|
outsidePress: !0,
|
|
675
692
|
scrollLock: !1,
|
|
676
|
-
...
|
|
693
|
+
...g ? { branches: [g] } : {},
|
|
677
694
|
onDismiss: (e) => {
|
|
678
695
|
let t = e.reason === "escape" ? "escape" : "outsidePress";
|
|
679
|
-
|
|
696
|
+
f.current.navigation.setFlyout(null, t, e.source), t === "escape" && g?.focus();
|
|
680
697
|
}
|
|
681
698
|
});
|
|
682
699
|
return () => e.destroy();
|
|
683
700
|
}, [
|
|
684
|
-
|
|
701
|
+
g,
|
|
685
702
|
a,
|
|
686
703
|
n
|
|
687
|
-
]), h(() => (
|
|
688
|
-
let
|
|
704
|
+
]), h(() => (f.current.navigation.setFlyoutNode(n ? a : null), () => f.current.navigation.setFlyoutNode(null)), [a, n]);
|
|
705
|
+
let S = (e) => {
|
|
689
706
|
let t = e.relatedTarget;
|
|
690
|
-
t !== null && a !== null && (a.contains(t) ||
|
|
707
|
+
t !== null && a !== null && (a.contains(t) || g?.contains(t) || r.setFlyout(null, "blur", e.nativeEvent));
|
|
691
708
|
};
|
|
692
|
-
return s === null ? null : D(/* @__PURE__ */
|
|
709
|
+
return s === null ? null : D(/* @__PURE__ */ C("div", {
|
|
693
710
|
...r.guides ? { "data-guides": "" } : {},
|
|
694
|
-
...n && d ? { "data-open": "" } : {},
|
|
695
711
|
"data-part": "flyout",
|
|
696
712
|
"data-size": r.size,
|
|
697
713
|
"data-truncate": r.truncate,
|
|
698
714
|
"data-ui": "side-navigation",
|
|
699
|
-
onBlur:
|
|
715
|
+
onBlur: S,
|
|
700
716
|
ref: o,
|
|
701
717
|
children: e
|
|
702
718
|
}), s);
|
|
703
719
|
}
|
|
704
720
|
function J({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
705
|
-
let o =
|
|
721
|
+
let o = B(), [s, c] = x(!1);
|
|
706
722
|
h(() => (o.setHasGroup(!0), () => o.setHasGroup(!1)), [o.setHasGroup]), h(() => {
|
|
707
723
|
o.flyoutOpen && c(!0);
|
|
708
724
|
}, [o.flyoutOpen]);
|
|
@@ -714,15 +730,15 @@ function J({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
714
730
|
"data-part": "group",
|
|
715
731
|
id: o.ids.groupId,
|
|
716
732
|
style: i
|
|
717
|
-
}, u = r === void 0 ? /* @__PURE__ */
|
|
733
|
+
}, u = r === void 0 ? /* @__PURE__ */ C("ul", {
|
|
718
734
|
...l,
|
|
719
735
|
ref: n
|
|
720
736
|
}) : r(l);
|
|
721
|
-
return s ? /* @__PURE__ */
|
|
737
|
+
return s ? /* @__PURE__ */ C(q, {
|
|
722
738
|
onExited: () => c(!1),
|
|
723
739
|
open: o.flyoutOpen,
|
|
724
740
|
children: u
|
|
725
741
|
}) : u;
|
|
726
742
|
}
|
|
727
743
|
//#endregion
|
|
728
|
-
export { M as S,
|
|
744
|
+
export { M as S, P as _, pe as a, A as b, V as c, ce as d, oe as f, B as g, W as h, G as i, ue as l, K as m, fe as n, J as o, se as p, de as r, le as s, me as t, U as u, L as v, N as x, I as y };
|