@slotted/react 0.1.0-beta.25 → 0.1.0-beta.27
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/dist/{action-bar-DckD0Sug.js → action-bar-CAtXzym2.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{cascader-47GYpojH.js → cascader-CwwtJs3W.js} +189 -189
- package/dist/cascader.js +1 -1
- package/dist/{color-picker-BbyW5ALf.js → color-picker-2i3A60vD.js} +1 -1
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-Bz0bb4mq.js → column-manager-D4HIwXPi.js} +1 -1
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-BA2nvbnA.js → combobox-BpZ8i-61.js} +86 -86
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-DEKWsUFR.js → command-palette-BxbhO044.js} +11 -11
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-CfEEqDKr.js → context-menu-BJyDD17g.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{dashboard-grid-WinSY-q3.js → dashboard-grid-De6al1Mj.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Dh-oaGY7.js → data-grid-CuHnCT01.js} +33 -33
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-iw9K_oiz.js → data-list-CuzWmmGp.js} +5 -5
- package/dist/data-list.js +1 -1
- package/dist/docs/app-shell.json +1 -1
- package/dist/docs/app-shell.md +1 -1
- package/dist/docs/chart.json +2 -0
- package/dist/docs/chart.md +1 -1
- package/dist/docs/combobox.json +1 -0
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/dialog.json +24 -5
- package/dist/docs/dialog.md +2 -60
- package/dist/docs/dialog.props.md +68 -0
- package/dist/docs/drawer.json +3 -1
- package/dist/docs/drawer.md +2 -2
- package/dist/docs/menu.json +1 -0
- package/dist/docs/menu.md +1 -1
- package/dist/docs/multi-select.json +1 -0
- package/dist/docs/multi-select.md +1 -1
- package/dist/docs/select.json +1 -0
- package/dist/docs/select.md +1 -1
- package/dist/docs/skills/theme-app/SKILL.md +4 -1
- package/dist/{entity-picker-BFoKN50H.js → entity-picker-BYAlDJL-.js} +25 -25
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-BaPllnNk.js → event-calendar-BuZg4ghj.js} +2 -2
- package/dist/event-calendar.js +1 -1
- package/dist/{filter-bar-CPBr_n2c.js → filter-bar-DeBYLpbg.js} +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/{import-export-center-CzyIlQB_.js → import-export-center-CTliNoT9.js} +1 -1
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +26 -26
- package/dist/{listbox-B9cBuitS.js → listbox-BSx90S2g.js} +10 -10
- package/dist/listbox.js +1 -1
- package/dist/{menu-parts-7F8syoFE.js → menu-parts-DNQDoJnd.js} +203 -204
- package/dist/menu.js +1 -1
- package/dist/{menubar-DzVGFn_I.js → menubar-CY8oxV0V.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-DnOAXeuF.js → multi-select-Dh2gOp42.js} +68 -68
- package/dist/multi-select.js +1 -1
- package/dist/{saved-views-CsVRZTwK.js → saved-views-BKhAqvhI.js} +1 -1
- package/dist/saved-views.js +1 -1
- package/dist/{select-BTncjDuM.js → select-BcTau8q3.js} +194 -192
- package/dist/select.js +1 -1
- package/dist/{split-button-DA1wcDJB.js → split-button-CgfY606Z.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/action-sheet.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/cascader.css +1 -1
- package/dist/styles/chart.css +1 -1
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/color-picker.css +3 -3
- package/dist/styles/column-manager.css +4 -4
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/command-palette.css +1 -1
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +1 -1
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +5 -5
- package/dist/styles/data-list.css +2 -2
- package/dist/styles/date-field.css +1 -1
- package/dist/styles/date-picker.css +1 -1
- package/dist/styles/date-range-picker.css +1 -1
- package/dist/styles/datetime-field.css +1 -1
- package/dist/styles/datetime-picker.css +1 -1
- package/dist/styles/datetime-range-picker.css +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/entity-picker.css +2 -2
- package/dist/styles/event-calendar.css +4 -4
- package/dist/styles/field-group.css +1 -1
- package/dist/styles/field.css +1 -1
- package/dist/styles/filter-bar.css +6 -6
- package/dist/styles/hover-card.css +1 -1
- package/dist/styles/import-export-center.css +3 -3
- package/dist/styles/index.css +10 -10
- package/dist/styles/listbox.css +1 -1
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +1 -1
- package/dist/styles/multi-select.css +2 -2
- package/dist/styles/notification-center.css +1 -1
- package/dist/styles/number-field.css +1 -1
- package/dist/styles/otp-input.css +1 -1
- package/dist/styles/popover.css +1 -1
- package/dist/styles/prompt-composer.css +1 -1
- package/dist/styles/radio-group.css +1 -1
- package/dist/styles/rating.css +1 -1
- package/dist/styles/saved-views.css +3 -3
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/select.css +2 -2
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/table.css +3 -3
- package/dist/styles/tags-input.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/time-field.css +1 -1
- package/dist/styles/time-picker.css +1 -1
- package/dist/styles/time-range-picker.css +1 -1
- package/dist/styles/toggle-group.css +1 -1
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/transfer.css +1 -1
- package/dist/styles/upload.css +2 -2
- package/dist/styles.css +1 -1
- package/dist/{table-Boy-0cjy.js → table-Dx-RQ64i.js} +208 -208
- package/dist/table.js +1 -1
- package/dist/{tags-input-DEhtpizX.js → tags-input-hZs5oaT1.js} +9 -9
- package/dist/tags-input.js +1 -1
- package/dist/{toolbar-CtSZ88HI.js → toolbar-CSiDqC8L.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{transfer-BMRyopEw.js → transfer-DHjPhRlH.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/{tree-DBirM2v9.js → tree-D-y-0TrL.js} +14 -14
- package/dist/tree.js +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/select/select.types.d.ts +5 -1
- package/dist/types/select/select.types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/cascader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./cascader-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./cascader-CwwtJs3W.js";
|
|
2
2
|
export { r as CASCADER_FALLBACK, i as Cascader, t as CascaderDefaultsProvider, n as CascaderPanel, e as useCascaderDefaults };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { _ as r, h as i, m as a, n as o, t as s } from "./menu-parts-
|
|
3
|
+
import { _ as r, h as i, m as a, n as o, t as s } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
import { b as c } from "./field-CSSHwGq_.js";
|
|
5
5
|
import { t as l } from "./text-field-RGXN7zNu.js";
|
|
6
6
|
import { a as u, d, f, l as p, r as m, t as h } from "./popover-BfEn2wdZ.js";
|
package/dist/color-picker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./color-picker-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./color-picker-2i3A60vD.js";
|
|
2
2
|
export { f as ColorField, s as ColorPicker, u as ColorPickerArea, i as ColorPickerChannel, e as ColorPickerContrast, l as ColorPickerDefaultsProvider, c as ColorPickerEyedropper, d as ColorPickerFormat, t as ColorPickerGamut, a as ColorPickerInput, p as ColorPickerPresets, n as ColorPickerRow, r as ColorPickerSwatch, o as useColorPickerDefaults };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { _ as r, c as i, n as a, t as o } from "./menu-parts-
|
|
3
|
+
import { _ as r, c as i, n as a, t as o } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
import { d as s, f as c, s as l } from "./drawer-Du1aC1px.js";
|
|
5
5
|
import { n as u } from "./icon-button-DERKFHX1.js";
|
|
6
6
|
import { t as d } from "./checkbox-Dw9R1CGR.js";
|
package/dist/column-manager.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./column-manager-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./column-manager-D4HIwXPi.js";
|
|
2
2
|
export { i as ColumnManager, t as ColumnManagerProvider, n as ColumnManagerRoot, r as ColumnManagerTrigger, e as useColumnManagerDefaults };
|
|
@@ -10,13 +10,13 @@ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
|
10
10
|
import { createPresence as ee } from "@slotted/core/presence";
|
|
11
11
|
import { comboboxMessages as w } from "@slotted/core/i18n";
|
|
12
12
|
import { createPortalRoot as te, setPortalContainer as T } from "@slotted/core/portal";
|
|
13
|
-
import {
|
|
13
|
+
import { createFilter as E, moveIndex as D, revealWithin as O } from "@slotted/core/collection";
|
|
14
|
+
import { createDismissableLayer as k, pressOrigin as ne } from "@slotted/core/dismissable-layer";
|
|
14
15
|
import { createPositioner as re } from "@slotted/core/positioner";
|
|
15
16
|
import { createPortal as ie } from "react-dom";
|
|
16
|
-
import {
|
|
17
|
-
import { matchRanges as k } from "@slotted/core/highlight";
|
|
17
|
+
import { matchRanges as A } from "@slotted/core/highlight";
|
|
18
18
|
//#region src/combobox/combobox-defaults.tsx
|
|
19
|
-
var
|
|
19
|
+
var j = {
|
|
20
20
|
align: "start",
|
|
21
21
|
alignOffset: 0,
|
|
22
22
|
allowsCustomValue: !1,
|
|
@@ -47,12 +47,12 @@ var A = {
|
|
|
47
47
|
strategy: "absolute",
|
|
48
48
|
variant: "outline",
|
|
49
49
|
width: "content"
|
|
50
|
-
},
|
|
51
|
-
function
|
|
52
|
-
return p(
|
|
50
|
+
}, M = d(j);
|
|
51
|
+
function N() {
|
|
52
|
+
return p(M);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
let r =
|
|
54
|
+
function P({ children: e, container: t, ...n }) {
|
|
55
|
+
let r = N();
|
|
56
56
|
m(() => {
|
|
57
57
|
if (t !== void 0) return T(t), () => T(null);
|
|
58
58
|
}, [t]);
|
|
@@ -88,44 +88,44 @@ function N({ children: e, container: t, ...n }) {
|
|
|
88
88
|
variant: n.variant ?? r.variant,
|
|
89
89
|
width: n.width ?? r.width
|
|
90
90
|
};
|
|
91
|
-
return /* @__PURE__ */ S(
|
|
91
|
+
return /* @__PURE__ */ S(M.Provider, {
|
|
92
92
|
value: i,
|
|
93
93
|
children: e
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/combobox/combobox.tsx
|
|
98
|
-
var
|
|
99
|
-
function
|
|
100
|
-
let e = p(
|
|
98
|
+
var ae = d(void 0);
|
|
99
|
+
function F() {
|
|
100
|
+
let e = p(ae);
|
|
101
101
|
if (e === void 0) throw Error("ComboboxInput, ComboboxContent and every option have to be inside a Combobox.");
|
|
102
102
|
return e;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var oe = (e) => "options" in e;
|
|
105
105
|
function se(e) {
|
|
106
|
-
return e === void 0 ? [] : e.flatMap((e) =>
|
|
106
|
+
return e === void 0 ? [] : e.flatMap((e) => oe(e) ? e.options : [e]);
|
|
107
107
|
}
|
|
108
|
-
function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, autoHighlight: s, children: c, clearable: l, closeOnEscape: d, closeOnOutsidePress: p, closeOnSelect: m, collisionPadding: _, onCreate: x, defaultHighlightedValue: C = null, defaultInputValue: ee = "", defaultOpen: te = !1, defaultValue: T = null, disabled:
|
|
109
|
-
let G =
|
|
108
|
+
function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, autoHighlight: s, children: c, clearable: l, closeOnEscape: d, closeOnOutsidePress: p, closeOnSelect: m, collisionPadding: _, onCreate: x, defaultHighlightedValue: C = null, defaultInputValue: ee = "", defaultOpen: te = !1, defaultValue: T = null, disabled: D, filter: k, flip: ne, form: re, fullWidth: ie, hideWhenDetached: A, highlightedValue: j, highlightMatch: M, inputValue: P, invalid: F, items: oe, loading: ce, locale: le, loop: I, messages: L, mount: R, name: z, onHighlightedValueChange: B, onInputValueChange: ue, onInputReset: V, onLoadMore: H, onOpenChange: de, onValueChange: U, open: W, openOn: fe, portal: pe, readOnly: me, ref: he, required: ge, shift: _e, side: ve, sideOffset: ye, size: be, strategy: xe, total: Se, value: Ce, variant: we, width: Te }) {
|
|
109
|
+
let G = N(), K = a(), Ee = t(w, L), De = e(), Oe = le ?? De, ke = h(), Ae = `${ke}listbox`, je = `${ke}input`, [Me, Ne] = b(te), [Pe, Fe] = b(T), [Ie, Le] = b(ee), [Re, ze] = b(C), [Be, Ve] = b(null), [q, He] = b(null), Ue = D ?? K?.disabled ?? G.disabled, We = me ?? K?.readOnly ?? G.readOnly, J = (W ?? Me) && !Ue, Y = Ce === void 0 ? Pe : Ce, X = P ?? Ie, Ge = j === void 0 ? Re : j, Ke = y(J);
|
|
110
110
|
J && (Ke.current = !0);
|
|
111
111
|
let qe = y("none"), [Je, Ye] = b(null), Xe = y(!1), Ze = y(/* @__PURE__ */ new Map()), [Qe, $e] = b(0), et = v(() => {
|
|
112
112
|
let e = /* @__PURE__ */ new Map();
|
|
113
|
-
for (let t of se(
|
|
113
|
+
for (let t of se(oe)) e.set(t.value, t.label);
|
|
114
114
|
return e;
|
|
115
|
-
}, [
|
|
115
|
+
}, [oe]), tt = f((e, t) => {
|
|
116
116
|
Ze.current.get(e) !== t && (Ze.current.set(e, t), $e((e) => e + 1));
|
|
117
|
-
}, []), nt = f((e) => et.get(e) ?? Ze.current.get(e), [et, Qe]), rt = f((e) => `${ke}option-${encodeURIComponent(e)}`, [ke]), Z = X === (Y === null ? void 0 : nt(Y)) ? "" : X, it = v(() =>
|
|
117
|
+
}, []), nt = f((e) => et.get(e) ?? Ze.current.get(e), [et, Qe]), rt = f((e) => `${ke}option-${encodeURIComponent(e)}`, [ke]), Z = X === (Y === null ? void 0 : nt(Y)) ? "" : X, it = v(() => E({ locale: Oe }), [Oe]), at = f((e) => Z === "" || k === null ? !0 : k === void 0 ? it.contains(e, Z) : k(e, Z), [
|
|
118
118
|
it,
|
|
119
|
-
|
|
119
|
+
k,
|
|
120
120
|
Z
|
|
121
121
|
]), Q = y({
|
|
122
122
|
currentHighlighted: Ge,
|
|
123
123
|
currentInput: X,
|
|
124
124
|
currentOpen: J,
|
|
125
125
|
currentValue: Y,
|
|
126
|
-
highlightedValue:
|
|
126
|
+
highlightedValue: j,
|
|
127
127
|
inputNode: Be,
|
|
128
|
-
inputValue:
|
|
128
|
+
inputValue: P,
|
|
129
129
|
onHighlightedValueChange: B,
|
|
130
130
|
onInputValueChange: ue,
|
|
131
131
|
onCreate: x,
|
|
@@ -139,9 +139,9 @@ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, a
|
|
|
139
139
|
currentInput: X,
|
|
140
140
|
currentOpen: J,
|
|
141
141
|
currentValue: Y,
|
|
142
|
-
highlightedValue:
|
|
142
|
+
highlightedValue: j,
|
|
143
143
|
inputNode: Be,
|
|
144
|
-
inputValue:
|
|
144
|
+
inputValue: P,
|
|
145
145
|
onHighlightedValueChange: B,
|
|
146
146
|
onInputValueChange: ue,
|
|
147
147
|
onCreate: x,
|
|
@@ -262,16 +262,16 @@ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, a
|
|
|
262
262
|
create: ft,
|
|
263
263
|
disabled: Ue,
|
|
264
264
|
entry: qe,
|
|
265
|
-
flip:
|
|
266
|
-
form:
|
|
267
|
-
fullWidth:
|
|
268
|
-
hideWhenDetached:
|
|
265
|
+
flip: ne ?? G.flip,
|
|
266
|
+
form: re,
|
|
267
|
+
fullWidth: ie ?? G.fullWidth,
|
|
268
|
+
hideWhenDetached: A ?? G.hideWhenDetached,
|
|
269
269
|
highlighted: Ge,
|
|
270
|
-
highlightMatch:
|
|
270
|
+
highlightMatch: M ?? G.highlightMatch,
|
|
271
271
|
inputId: je,
|
|
272
272
|
inputNode: Be,
|
|
273
273
|
inputValue: X,
|
|
274
|
-
invalid:
|
|
274
|
+
invalid: F ?? K?.invalid ?? G.invalid,
|
|
275
275
|
labelFor: nt,
|
|
276
276
|
loading: ce ?? G.loading,
|
|
277
277
|
locale: Oe,
|
|
@@ -309,7 +309,7 @@ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, a
|
|
|
309
309
|
wantsCompletion: Xe,
|
|
310
310
|
width: Te ?? G.width
|
|
311
311
|
};
|
|
312
|
-
return /* @__PURE__ */ S(
|
|
312
|
+
return /* @__PURE__ */ S(ae.Provider, {
|
|
313
313
|
value: mt,
|
|
314
314
|
children: c
|
|
315
315
|
});
|
|
@@ -365,7 +365,7 @@ function W(e, ...t) {
|
|
|
365
365
|
for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
|
|
366
366
|
}
|
|
367
367
|
function fe({ ref: e, render: t, ...o }) {
|
|
368
|
-
let s =
|
|
368
|
+
let s = F(), u = a(), [d, p] = b(null);
|
|
369
369
|
m(() => {
|
|
370
370
|
s.setInputNode(d);
|
|
371
371
|
}, [s, d]), _(() => {
|
|
@@ -444,15 +444,15 @@ function fe({ ref: e, render: t, ...o }) {
|
|
|
444
444
|
}, T = (e) => {
|
|
445
445
|
let t = e.relatedTarget;
|
|
446
446
|
if (t instanceof Node && s.contentNode?.contains(t) === !0) return;
|
|
447
|
-
let n =
|
|
447
|
+
let n = ne(d?.ownerDocument);
|
|
448
448
|
n instanceof Node && s.contentNode?.contains(n) === !0 || (s.settleInput(e), s.open && s.setOpen(!1, "blur"));
|
|
449
|
-
},
|
|
449
|
+
}, E = (e) => {
|
|
450
450
|
s.clear("clear", e.nativeEvent), d?.focus({ preventScroll: !0 });
|
|
451
|
-
},
|
|
451
|
+
}, D = (e) => {
|
|
452
452
|
s.disabled || s.readOnly || (s.entry.current = "selected", s.setOpen(!s.open, "pointer", e.nativeEvent), d?.focus({ preventScroll: !0 }));
|
|
453
|
-
},
|
|
453
|
+
}, O = f((t) => {
|
|
454
454
|
p(t), W(t, e);
|
|
455
|
-
}, [e]),
|
|
455
|
+
}, [e]), k = [o["aria-describedby"], u?.describedBy].filter(Boolean).join(" "), re = s.clearable && s.inputValue !== "" && !s.disabled && !s.readOnly, ie = {
|
|
456
456
|
"data-part": "root",
|
|
457
457
|
...c("part", "root"),
|
|
458
458
|
"data-size": s.size,
|
|
@@ -466,13 +466,13 @@ function fe({ ref: e, render: t, ...o }) {
|
|
|
466
466
|
...s.invalid ? { "data-invalid": "" } : {},
|
|
467
467
|
...s.required ? { "data-required": "" } : {},
|
|
468
468
|
...s.loading ? { "data-loading": "" } : {}
|
|
469
|
-
},
|
|
469
|
+
}, A = /* @__PURE__ */ C(x, { children: [
|
|
470
470
|
/* @__PURE__ */ S("input", {
|
|
471
471
|
...l(o, "part", "input"),
|
|
472
472
|
"aria-activedescendant": s.open && s.highlighted !== null ? s.optionId(s.highlighted) : void 0,
|
|
473
473
|
"aria-autocomplete": s.autocomplete,
|
|
474
474
|
"aria-controls": s.open ? s.contentId : void 0,
|
|
475
|
-
"aria-describedby":
|
|
475
|
+
"aria-describedby": k === "" ? void 0 : k,
|
|
476
476
|
"aria-expanded": s.open,
|
|
477
477
|
"aria-invalid": s.invalid ? !0 : void 0,
|
|
478
478
|
"aria-readonly": s.readOnly ? !0 : void 0,
|
|
@@ -484,17 +484,17 @@ function fe({ ref: e, render: t, ...o }) {
|
|
|
484
484
|
onFocus: U(o.onFocus, w),
|
|
485
485
|
onKeyDown: U(o.onKeyDown, y),
|
|
486
486
|
readOnly: s.readOnly,
|
|
487
|
-
ref:
|
|
487
|
+
ref: O,
|
|
488
488
|
required: s.required,
|
|
489
489
|
role: "combobox",
|
|
490
490
|
type: "text",
|
|
491
491
|
value: s.completion ?? s.inputValue
|
|
492
492
|
}),
|
|
493
|
-
|
|
493
|
+
re ? /* @__PURE__ */ S("button", {
|
|
494
494
|
"aria-label": s.t("clear"),
|
|
495
495
|
"data-part": "clear",
|
|
496
496
|
"data-part-clear": "",
|
|
497
|
-
onClick:
|
|
497
|
+
onClick: E,
|
|
498
498
|
type: "button",
|
|
499
499
|
children: /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S(n, { name: "x" }) })
|
|
500
500
|
}) : null,
|
|
@@ -503,7 +503,7 @@ function fe({ ref: e, render: t, ...o }) {
|
|
|
503
503
|
"data-part": "trigger",
|
|
504
504
|
"data-part-trigger": "",
|
|
505
505
|
disabled: s.disabled,
|
|
506
|
-
onClick:
|
|
506
|
+
onClick: D,
|
|
507
507
|
tabIndex: -1,
|
|
508
508
|
type: "button",
|
|
509
509
|
children: s.loading ? /* @__PURE__ */ S("span", {
|
|
@@ -542,28 +542,28 @@ function fe({ ref: e, render: t, ...o }) {
|
|
|
542
542
|
})
|
|
543
543
|
] });
|
|
544
544
|
return t === void 0 ? /* @__PURE__ */ S("div", {
|
|
545
|
-
...
|
|
546
|
-
children:
|
|
545
|
+
...ie,
|
|
546
|
+
children: A
|
|
547
547
|
}) : t({
|
|
548
|
-
...
|
|
549
|
-
children:
|
|
548
|
+
...ie,
|
|
549
|
+
children: A
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
function pe(e, t) {
|
|
553
553
|
return e !== null && e.querySelector(`[data-part='item'][data-value="${CSS.escape(t)}"]`)?.hasAttribute("data-create") === !0;
|
|
554
554
|
}
|
|
555
555
|
function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
556
|
-
let o =
|
|
557
|
-
|
|
556
|
+
let o = F(), [c, u] = b(null), [d, p] = b(null), [h, g] = b(null), [v, x] = b("unmounted"), [w, T] = b(!1), [E, D] = b(0), O = y(null), ne = y(null), A = y(o);
|
|
557
|
+
A.current = o, m(() => {
|
|
558
558
|
let e = ee({
|
|
559
|
-
present:
|
|
559
|
+
present: A.current.open,
|
|
560
560
|
onStatusChange: x
|
|
561
561
|
});
|
|
562
|
-
return
|
|
563
|
-
e.destroy(),
|
|
562
|
+
return O.current = e, x(e.status), () => {
|
|
563
|
+
e.destroy(), O.current = null;
|
|
564
564
|
};
|
|
565
|
-
}, []), m(() =>
|
|
566
|
-
let
|
|
565
|
+
}, []), m(() => O.current?.sync(o.open), [o.open]), m(() => O.current?.setNode(c), [c]), m(() => o.setContentNode(d), [o, d]);
|
|
566
|
+
let j = o.mount === "eager" || o.mount === "lazy" && o.seen || o.open || v !== "unmounted";
|
|
567
567
|
m(() => {
|
|
568
568
|
let e = o.inputNode;
|
|
569
569
|
if (e === null || w) return;
|
|
@@ -572,9 +572,9 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
572
572
|
e.removeEventListener("focusin", t), e.removeEventListener("pointerdown", t);
|
|
573
573
|
};
|
|
574
574
|
}, [o.inputNode, w]);
|
|
575
|
-
let
|
|
575
|
+
let M = j || w;
|
|
576
576
|
_(() => {
|
|
577
|
-
if (!
|
|
577
|
+
if (!M) {
|
|
578
578
|
g(null);
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
@@ -586,25 +586,25 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
586
586
|
}, [
|
|
587
587
|
o.inputNode,
|
|
588
588
|
o.portal,
|
|
589
|
-
|
|
589
|
+
M
|
|
590
590
|
]);
|
|
591
|
-
let { align:
|
|
591
|
+
let { align: N, alignOffset: P, collisionPadding: ae, flip: oe, hideWhenDetached: se, shift: ce, side: le, sideOffset: R, strategy: z, width: B } = o, V = y(null), H = y(0), U = f((e, t) => {
|
|
592
592
|
e.update().then(() => {
|
|
593
|
-
if (V.current !== e || !
|
|
593
|
+
if (V.current !== e || !A.current.open) return;
|
|
594
594
|
t.setAttribute("data-open", "");
|
|
595
595
|
let n = t.ownerDocument.defaultView;
|
|
596
596
|
n !== null && H.current === 0 && (H.current = n.requestAnimationFrame(() => {
|
|
597
|
-
H.current = 0, de(
|
|
597
|
+
H.current = 0, de(A.current.contentNode, A.current.highlighted);
|
|
598
598
|
}));
|
|
599
599
|
});
|
|
600
600
|
}, []);
|
|
601
601
|
if (_(() => {
|
|
602
602
|
if (c === null || o.inputNode === null) return;
|
|
603
603
|
let e = o.inputNode.closest("[data-part='root']") ?? o.inputNode, t = re(e, c, {
|
|
604
|
-
align:
|
|
605
|
-
alignOffset:
|
|
606
|
-
boundaryPadding:
|
|
607
|
-
flip:
|
|
604
|
+
align: N,
|
|
605
|
+
alignOffset: P,
|
|
606
|
+
boundaryPadding: ae,
|
|
607
|
+
flip: oe,
|
|
608
608
|
hideWhenDetached: se,
|
|
609
609
|
matchWidth: B === "anchor",
|
|
610
610
|
shift: ce,
|
|
@@ -612,15 +612,15 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
612
612
|
sideOffset: R,
|
|
613
613
|
strategy: z
|
|
614
614
|
});
|
|
615
|
-
return V.current = t,
|
|
615
|
+
return V.current = t, A.current.open && U(t, c), () => {
|
|
616
616
|
t.destroy(), V.current = null, c.removeAttribute("data-open");
|
|
617
617
|
};
|
|
618
618
|
}, [
|
|
619
|
-
M,
|
|
620
619
|
N,
|
|
621
|
-
|
|
620
|
+
P,
|
|
621
|
+
ae,
|
|
622
622
|
o.inputNode,
|
|
623
|
-
|
|
623
|
+
oe,
|
|
624
624
|
se,
|
|
625
625
|
c,
|
|
626
626
|
ce,
|
|
@@ -644,7 +644,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
644
644
|
o.open
|
|
645
645
|
]), m(() => {
|
|
646
646
|
if (c === null || !o.open) return;
|
|
647
|
-
let e = [o.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t =
|
|
647
|
+
let e = [o.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = k(c, {
|
|
648
648
|
branches: e,
|
|
649
649
|
escape: o.closeOnEscape,
|
|
650
650
|
focusOutside: !1,
|
|
@@ -652,7 +652,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
652
652
|
outsidePress: o.closeOnOutsidePress,
|
|
653
653
|
scrollLock: !1,
|
|
654
654
|
onDismiss: (e) => {
|
|
655
|
-
|
|
655
|
+
A.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
|
|
656
656
|
}
|
|
657
657
|
});
|
|
658
658
|
return () => t.destroy();
|
|
@@ -664,9 +664,9 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
664
664
|
c
|
|
665
665
|
]), _(() => {
|
|
666
666
|
let e = I(d).filter((e) => e.dataset.create === void 0).length;
|
|
667
|
-
|
|
667
|
+
D((t) => t === e ? t : e);
|
|
668
668
|
}), _(() => {
|
|
669
|
-
let e =
|
|
669
|
+
let e = A.current;
|
|
670
670
|
if (e.open && d !== null) {
|
|
671
671
|
if (e.entry.current !== "none") {
|
|
672
672
|
let t = ue(d, e.value, e.entry.current, e.loop) ?? (e.autoHighlight ? ue(d, null, "first", e.loop) : null);
|
|
@@ -687,7 +687,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
687
687
|
o.highlighted,
|
|
688
688
|
d
|
|
689
689
|
]), _(() => {
|
|
690
|
-
let e =
|
|
690
|
+
let e = A.current;
|
|
691
691
|
if (!e.wantsCompletion.current || d === null) return;
|
|
692
692
|
e.wantsCompletion.current = !1;
|
|
693
693
|
let t = he(d, e.inputValue);
|
|
@@ -697,7 +697,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
697
697
|
E,
|
|
698
698
|
d
|
|
699
699
|
]), m(() => {
|
|
700
|
-
let e =
|
|
700
|
+
let e = ne.current, t = d, n = o.onLoadMore;
|
|
701
701
|
if (e === null || t === null || n === void 0 || typeof IntersectionObserver != "function") return;
|
|
702
702
|
let r = new IntersectionObserver((e) => {
|
|
703
703
|
e.some((e) => e.isIntersecting) && n();
|
|
@@ -707,9 +707,9 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
707
707
|
o.onLoadMore,
|
|
708
708
|
E,
|
|
709
709
|
d
|
|
710
|
-
]), !
|
|
710
|
+
]), !j) return null;
|
|
711
711
|
let fe = s({
|
|
712
|
-
"data-align":
|
|
712
|
+
"data-align": N,
|
|
713
713
|
...o.open ? {} : { inert: !0 },
|
|
714
714
|
"data-part": "positioner",
|
|
715
715
|
"data-size": o.size,
|
|
@@ -730,7 +730,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
|
|
|
730
730
|
role: "listbox",
|
|
731
731
|
children: [
|
|
732
732
|
e,
|
|
733
|
-
/* @__PURE__ */ S("div", { ref:
|
|
733
|
+
/* @__PURE__ */ S("div", { ref: ne }),
|
|
734
734
|
!o.loading && E === 0 && o.canCreate && o.query !== "" ? /* @__PURE__ */ S("div", {
|
|
735
735
|
"data-create": "",
|
|
736
736
|
"data-part": "item",
|
|
@@ -798,7 +798,7 @@ function he(e, t) {
|
|
|
798
798
|
//#endregion
|
|
799
799
|
//#region src/combobox/combobox-items.tsx
|
|
800
800
|
function ge({ children: e, description: t, disabled: i = !1, icon: a, position: s, ref: c, textValue: u, value: d, ...f }) {
|
|
801
|
-
let p =
|
|
801
|
+
let p = F(), [h, g] = b(null), _ = y(null), x = u ?? (typeof e == "string" ? e : void 0);
|
|
802
802
|
m(() => {
|
|
803
803
|
if (h === null) return;
|
|
804
804
|
let e = x ?? h.querySelector("[data-part='label']")?.textContent?.trim() ?? "";
|
|
@@ -811,7 +811,7 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
|
|
|
811
811
|
]);
|
|
812
812
|
let ee = v(() => {
|
|
813
813
|
if (!p.highlightMatch || p.query === "" || x === void 0) return e;
|
|
814
|
-
let t =
|
|
814
|
+
let t = A(x, p.query, { locale: p.locale });
|
|
815
815
|
return t.length === 0 ? e : /* @__PURE__ */ S(o, {
|
|
816
816
|
ranges: t,
|
|
817
817
|
text: x
|
|
@@ -826,9 +826,9 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
|
|
|
826
826
|
if (x !== void 0 && !p.matches(x)) return null;
|
|
827
827
|
let w = p.value === d, te = p.highlighted === d, T = (e) => {
|
|
828
828
|
i || p.setHighlighted(d, "pointer", e.nativeEvent);
|
|
829
|
-
}, ne = (e) => {
|
|
830
|
-
f.onPointerDown?.(e), !e.defaultPrevented && e.preventDefault();
|
|
831
829
|
}, E = (e) => {
|
|
830
|
+
f.onPointerDown?.(e), !e.defaultPrevented && e.preventDefault();
|
|
831
|
+
}, D = (e) => {
|
|
832
832
|
i || (p.select(d, "pointer", e.nativeEvent), p.setInputValue(p.labelFor(d) ?? x ?? d, "select", e.nativeEvent), p.closeOnSelect && p.setOpen(!1, "select", e.nativeEvent), p.inputNode?.focus({ preventScroll: !0 }));
|
|
833
833
|
};
|
|
834
834
|
return /* @__PURE__ */ C("div", {
|
|
@@ -843,8 +843,8 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
|
|
|
843
843
|
...w ? { "data-selected": "" } : {},
|
|
844
844
|
...te ? { "data-current": "" } : {},
|
|
845
845
|
id: f.id ?? p.optionId(d),
|
|
846
|
-
onClick:
|
|
847
|
-
onPointerDown:
|
|
846
|
+
onClick: D,
|
|
847
|
+
onPointerDown: E,
|
|
848
848
|
onPointerEnter: T,
|
|
849
849
|
ref: (e) => {
|
|
850
850
|
g(e), typeof c == "function" ? c(e) : c != null && (c.current = e);
|
|
@@ -875,7 +875,7 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
|
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
877
|
function _e({ children: e, label: t, ...n }) {
|
|
878
|
-
let r = `${h()}group`, { query: i } =
|
|
878
|
+
let r = `${h()}group`, { query: i } = F(), [a, o] = b(null), [s, c] = b(!1);
|
|
879
879
|
return m(() => {
|
|
880
880
|
a !== null && c(a.querySelector("[data-part='item']") === null);
|
|
881
881
|
}, [a, i]), /* @__PURE__ */ C("div", {
|
|
@@ -901,4 +901,4 @@ function ve(e) {
|
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
903
|
//#endregion
|
|
904
|
-
export { fe as a,
|
|
904
|
+
export { fe as a, j as c, me as i, P as l, ge as n, ce as o, ve as r, F as s, _e as t, N as u };
|
package/dist/combobox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./combobox-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./combobox-BpZ8i-61.js";
|
|
2
2
|
export { t as COMBOBOX_FALLBACK, a as Combobox, n as ComboboxContent, r as ComboboxDefaultsProvider, c as ComboboxGroup, e as ComboboxInput, i as ComboboxItem, o as ComboboxSeparator, s as useCombobox, l as useComboboxDefaults };
|
|
@@ -13,9 +13,9 @@ import { createContext as f, useCallback as p, useContext as ne, useEffect as m,
|
|
|
13
13
|
import { Fragment as ae, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
14
|
import { commandPaletteMessages as oe } from "@slotted/core/i18n";
|
|
15
15
|
import { createPortalRoot as se } from "@slotted/core/portal";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { moveIndex as ce } from "@slotted/core/collection";
|
|
17
|
+
import { canonicalKey as le, isEditableTarget as ue, matchesShortcut as de, parseShortcut as fe } from "@slotted/core/keys";
|
|
18
|
+
import { getLiveAnnouncer as pe } from "@slotted/core/live-announcer";
|
|
19
19
|
import { createCommandRanker as me, pushRecent as he, resolveCommands as ge } from "@slotted/core/commands";
|
|
20
20
|
//#region src/command-palette/command-palette-defaults.tsx
|
|
21
21
|
var b = {
|
|
@@ -53,9 +53,9 @@ function ye(e, t) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function be(e, t) {
|
|
56
|
-
let n =
|
|
56
|
+
let n = fe(e);
|
|
57
57
|
if (n.length === 1) return n[0]?.map((e) => {
|
|
58
|
-
let n =
|
|
58
|
+
let n = le(e);
|
|
59
59
|
if (n === "mod") return t === "mac" ? "Meta" : "Control";
|
|
60
60
|
if (n === "ctrl") return "Control";
|
|
61
61
|
let r = n ?? e;
|
|
@@ -181,7 +181,7 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
|
|
|
181
181
|
if (!P) return;
|
|
182
182
|
let e = I === null ? -1 : K.indexOf(I);
|
|
183
183
|
if (e !== -1 && q[e] === !0) return;
|
|
184
|
-
let t = O.autoHighlight ?
|
|
184
|
+
let t = O.autoHighlight ? ce({
|
|
185
185
|
enabled: q,
|
|
186
186
|
from: -1,
|
|
187
187
|
intent: "first",
|
|
@@ -257,7 +257,7 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
|
|
|
257
257
|
}
|
|
258
258
|
c();
|
|
259
259
|
}, [vt]), St = p((e) => e === null ? void 0 : G.rows.find((t) => t.id === e), [G]), Z = (e, t) => {
|
|
260
|
-
let n = I === null ? -1 : K.indexOf(I), r = e === "pageDown" || e === "pageUp", i =
|
|
260
|
+
let n = I === null ? -1 : K.indexOf(I), r = e === "pageDown" || e === "pageUp", i = ce({
|
|
261
261
|
enabled: q,
|
|
262
262
|
from: n,
|
|
263
263
|
intent: e,
|
|
@@ -328,13 +328,13 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
|
|
|
328
328
|
m(() => {
|
|
329
329
|
let e = O.hotkey;
|
|
330
330
|
if (e === null || j || O.disabled) return;
|
|
331
|
-
let t =
|
|
331
|
+
let t = fe(e)[0]?.every((e) => ![
|
|
332
332
|
"mod",
|
|
333
333
|
"meta",
|
|
334
334
|
"ctrl",
|
|
335
335
|
"alt"
|
|
336
|
-
].includes(
|
|
337
|
-
if (
|
|
336
|
+
].includes(le(e) ?? "")), n = (n) => {
|
|
337
|
+
if (de(n, e, M) && !(t === !0 && ue(n))) {
|
|
338
338
|
if (n.preventDefault(), z.current.currentOpen) {
|
|
339
339
|
Q();
|
|
340
340
|
return;
|
|
@@ -353,7 +353,7 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
|
|
|
353
353
|
]);
|
|
354
354
|
let wt = O.loading ? k("loading") : bt === null ? k("count", { count: G.count }) : k("error", { message: bt });
|
|
355
355
|
m(() => {
|
|
356
|
-
P &&
|
|
356
|
+
P && pe(U.current?.ownerDocument).announce(wt);
|
|
357
357
|
}, [P, wt]), m(() => {
|
|
358
358
|
Y(null);
|
|
359
359
|
}, [F, L]), ie(Ze, () => ({
|
package/dist/command-palette.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./command-palette-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./command-palette-BxbhO044.js";
|
|
2
2
|
export { r as COMMAND_PALETTE_FALLBACK, i as CommandPalette, t as CommandPaletteDefaultsProvider, n as CommandPaletteTrigger, e as useCommandPaletteDefaults };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, b as t } from "./menu-parts-
|
|
1
|
+
import { _ as e, b as t } from "./menu-parts-DNQDoJnd.js";
|
|
2
2
|
import { keyedProps as n } from "@slotted/core/selector-key";
|
|
3
3
|
import { createContext as r, useCallback as i, useContext as a, useEffect as o, useImperativeHandle as s, useRef as c, useState as l } from "react";
|
|
4
4
|
import { jsx as u } from "react/jsx-runtime";
|
package/dist/context-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "./context-menu-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./context-menu-BJyDD17g.js";
|
|
2
2
|
export { t as CONTEXT_MENU_FALLBACK, a as ContextMenu, e as ContextMenuDefaultsProvider, n as ContextMenuTrigger, i as useContextMenu, r as useContextMenuDefaults };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-
|
|
3
|
+
import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { n as u, t as d } from "./icon-button-DERKFHX1.js";
|
|
6
6
|
import { a as f, c as p, i as m, o as ee, s as h } from "./card-DRmq8_5e.js";
|
package/dist/dashboard-grid.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-De6al1Mj.js";
|
|
2
2
|
export { t as DASHBOARD_GRID_FALLBACK, i as DashboardGrid, e as DashboardGridDefaultsProvider, n as DashboardWidget, r as useDashboardGridDefaults, a as usePersistedDashboardLayout };
|