solid-baseui 0.1.0-alpha.1 → 0.1.0-alpha.3
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/CHANGELOG.md +56 -0
- package/README.md +30 -35
- package/dist/lib/client/DialogHandle-DluOK_7u.js +521 -0
- package/dist/lib/client/DialogPopup-CfEb3F54.js +138 -0
- package/dist/lib/client/FieldControl-eDe-Jnp9.js +142 -0
- package/dist/lib/client/{FieldRootContext-izCEh80D.js → FieldRootContext-D3fuVjs3.js} +1 -1
- package/dist/lib/client/{FocusManager-NP1uPXTi.js → FocusManager-q7z7PMV1.js} +92 -89
- package/dist/lib/client/{InternalBackdrop-cSK13gaM.js → InternalBackdrop-B8_lfUvf.js} +1 -1
- package/dist/lib/client/{MenuSubmenuTrigger-yfncqM-D.js → MenuSubmenuTrigger-DMb5CwTF.js} +386 -386
- package/dist/lib/client/{PopupHandle-CQI6Om1Z.js → PopupHandle-DyX5gY1e.js} +17 -11
- package/dist/lib/client/{PopupStore-Du0O57fL.js → PopupStore-BjRwcvbG.js} +91 -88
- package/dist/lib/client/PopupViewport-BanYHrD-.js +154 -0
- package/dist/lib/client/{TriggerFocusGuards-Cs8LVBj5.js → TriggerFocusGuards-Fzspp3Y1.js} +2 -2
- package/dist/lib/client/accordion/index.js +1 -1
- package/dist/lib/client/{accordion-BFeZFpJZ.js → accordion-CA2DfX67.js} +144 -144
- package/dist/lib/client/alert-dialog/index.js +1 -1
- package/dist/lib/client/{alert-dialog-BxGUF8_Q.js → alert-dialog-Bup88Dpx.js} +2 -2
- package/dist/lib/client/autocomplete/index.js +1 -1
- package/dist/lib/client/{autocomplete-C9QA98XD.js → autocomplete-oyy_uRpU.js} +2 -2
- package/dist/lib/client/avatar/index.js +1 -1
- package/dist/lib/client/avatar-DNZ4fnBd.js +191 -0
- package/dist/lib/client/button/index.js +1 -1
- package/dist/lib/client/button-BJZYmCVv.js +88 -0
- package/dist/lib/client/checkbox/index.js +1 -1
- package/dist/lib/client/checkbox-group/index.js +1 -1
- package/dist/lib/client/{checkbox-group-CwMDoSTK.js → checkbox-group-DGyrciZJ.js} +1 -1
- package/dist/lib/client/checkbox-sQHYTbpB.js +425 -0
- package/dist/lib/client/collapsible/index.js +1 -1
- package/dist/lib/client/collapsible-BENbFFCc.js +230 -0
- package/dist/lib/client/combobox/index.js +1 -1
- package/dist/lib/client/{combobox-6DhOdzit.js → combobox-BGH8QLXH.js} +143 -141
- package/dist/lib/client/compositeNavigation-DCt1sQon.js +82 -0
- package/dist/lib/client/{constants-cOVxAoxB.js → constants-ByOMFJAe.js} +100 -100
- package/dist/lib/client/context-menu/index.js +1 -1
- package/dist/lib/client/context-menu-xQ1sBCET.js +220 -0
- package/dist/lib/client/{createAnchorPositioning-D96gu-Dz.js → createAnchorPositioning-DCXIApS1.js} +1 -1
- package/dist/lib/client/{createAnchoredPopupScrollLock-Cx0cbh1_.js → createAnchoredPopupScrollLock-BxKpJbCE.js} +2 -2
- package/dist/lib/client/{createClickInteraction-CTaIFBiV.js → createClickInteraction-BeBsTqtY.js} +1 -1
- package/dist/lib/client/{createFocusInteraction--s9_qBf3.js → createFocusInteraction-DQPWkZe2.js} +7 -7
- package/dist/lib/client/{createPopupAutoResize-Dn-stj-8.js → createPopupAutoResize-CSNpMz5v.js} +3 -3
- package/dist/lib/client/dialog/index.js +1 -1
- package/dist/lib/client/{dialog-B9tR9X48.js → dialog-C0EF0a5u.js} +2 -2
- package/dist/lib/client/{dom-BEAeQ9Eb.js → dom-lDdayFF_.js} +25 -15
- package/dist/lib/client/drawer/index.js +1 -1
- package/dist/lib/client/{drawer-dyr3_sKQ.js → drawer-uKoNBwDU.js} +519 -518
- package/dist/lib/client/field/index.js +1 -1
- package/dist/lib/client/{field-CjUAjp1m.js → field-DIMrgpBW.js} +144 -144
- package/dist/lib/client/form/index.js +1 -1
- package/dist/lib/client/form-Bqq8wSLY.js +109 -0
- package/dist/lib/client/index.js +34 -34
- package/dist/lib/client/input/index.js +1 -1
- package/dist/lib/client/{input-_QHvSSqM.js → input-YthuKwIE.js} +1 -1
- package/dist/lib/client/internals/composeEventHandlers.js +14 -8
- package/dist/lib/client/internals/field-root-context/index.js +2 -2
- package/dist/lib/client/{mergeStyleValue-DhTA9Nwe.js → isSolidAccessor-BH_FevwH.js} +1 -12
- package/dist/lib/client/menu/index.js +1 -1
- package/dist/lib/client/{menu-DLqUBmMK.js → menu-4rNLN6aX.js} +79 -79
- package/dist/lib/client/menubar/index.js +1 -1
- package/dist/lib/client/menubar-nFQGtNmY.js +163 -0
- package/dist/lib/client/mergeStyleValue-Dcd36yxZ.js +12 -0
- package/dist/lib/client/navigation-menu/index.js +1 -1
- package/dist/lib/client/{navigation-menu-mVHV41Ky.js → navigation-menu-BbRyun3a.js} +284 -284
- package/dist/lib/client/number-field/index.js +1 -1
- package/dist/lib/client/{number-field-DusLw_0X.js → number-field-hT_H0hVu.js} +356 -356
- package/dist/lib/client/otp-field/index.js +1 -1
- package/dist/lib/client/otp-field-lsy2iGID.js +584 -0
- package/dist/lib/client/popover/index.js +1 -1
- package/dist/lib/client/{popover-Cv7xn0nW.js → popover-Cmvmuf1L.js} +250 -248
- package/dist/lib/client/{popupStateMapping-C6jQ_LKo.js → popupStateMapping-nhukB8NK.js} +51 -51
- package/dist/lib/client/preview-card/index.js +1 -1
- package/dist/lib/client/{preview-card-FTN_aafM.js → preview-card-Dtu8AnBN.js} +168 -168
- package/dist/lib/client/radio/index.js +1 -1
- package/dist/lib/client/{radio-DA_oZhQT.js → radio-CeCU-Qqi.js} +77 -77
- package/dist/lib/client/radio-group/index.js +1 -1
- package/dist/lib/client/radio-group-NbuJvjQe.js +195 -0
- package/dist/lib/client/{safePolygon-DJG0VIVo.js → safePolygon-DVAR5dQD.js} +70 -70
- package/dist/lib/client/scroll-area/index.js +1 -1
- package/dist/lib/client/scroll-area-DqbvoAd7.js +717 -0
- package/dist/lib/client/{scrollable-SRNYlhF7.js → scrollable-BVaDUXng.js} +12 -12
- package/dist/lib/client/select/index.js +1 -1
- package/dist/lib/client/{select-DSPJt7Rk.js → select-Dad51Xbn.js} +635 -634
- package/dist/lib/client/slider/index.js +1 -1
- package/dist/lib/client/slider-CLSKFq_M.js +927 -0
- package/dist/lib/client/switch/index.js +1 -1
- package/dist/lib/client/{switch-CPl7QHKI.js → switch-Bzuu5EIg.js} +61 -61
- package/dist/lib/client/tabs/index.js +1 -1
- package/dist/lib/client/{tabs-Bn4rZDyZ.js → tabs-DWiBDv8D.js} +252 -249
- package/dist/lib/client/toast/index.js +1 -1
- package/dist/lib/client/{toast-7LdqZWOs.js → toast-DmtPJW2k.js} +353 -353
- package/dist/lib/client/toggle/index.js +1 -1
- package/dist/lib/client/{toggle-CsC37e3e.js → toggle-CAe-Z8Xn.js} +33 -33
- package/dist/lib/client/toggle-group/index.js +1 -1
- package/dist/lib/client/{toggle-group-DSWb9HxN.js → toggle-group-BbQg5s-m.js} +44 -44
- package/dist/lib/client/toolbar/index.js +1 -1
- package/dist/lib/client/{toolbar-DcCi3HNp.js → toolbar-BXT_g-oX.js} +218 -218
- package/dist/lib/client/tooltip/index.js +1 -1
- package/dist/lib/client/{tooltip-D-PkGco9.js → tooltip-h2r2_Xuo.js} +250 -249
- package/dist/lib/client/{useFilteredItems-B7z2CGMV.js → useFilteredItems-BX0BEuSI.js} +850 -819
- package/dist/lib/server/{DialogHandle-nJSSy_jM.js → DialogHandle-BGIISmG7.js} +16 -16
- package/dist/lib/server/{DialogPopup-Da1aIxVA.js → DialogPopup-C2ZDGf42.js} +4 -4
- package/dist/lib/server/{FieldControl-BDeNR3ug.js → FieldControl-CDMMyvuj.js} +6 -6
- package/dist/lib/server/{FieldRootContext-IC-LWzVp.js → FieldRootContext-Bfpna6gA.js} +3 -3
- package/dist/lib/server/{FocusManager-1LfoCsya.js → FocusManager-D-xgblGs.js} +9 -3
- package/dist/lib/server/{InternalBackdrop-C_iDPVR-.js → InternalBackdrop-D_2zAWnl.js} +1 -1
- package/dist/lib/server/{MenuSubmenuTrigger-rR8ZN7YR.js → MenuSubmenuTrigger-BMQKlOvU.js} +50 -50
- package/dist/lib/server/{PopupHandle-Ct6wywmP.js → PopupHandle-QNj4mED2.js} +14 -5
- package/dist/lib/server/{PopupStore-kHjFPiQ5.js → PopupStore-evylvVnN.js} +5 -2
- package/dist/lib/server/{PopupViewport-DftN5VUp.js → PopupViewport-BDttjORN.js} +37 -27
- package/dist/lib/server/{TriggerFocusGuards-CvoGfft9.js → TriggerFocusGuards-B9GNbLrL.js} +2 -2
- package/dist/lib/server/accordion/index.js +7 -7
- package/dist/lib/server/alert-dialog/index.js +2 -2
- package/dist/lib/server/autocomplete/index.js +2 -2
- package/dist/lib/server/avatar/index.js +3 -3
- package/dist/lib/server/button/index.js +6 -6
- package/dist/lib/server/checkbox/index.js +7 -7
- package/dist/lib/server/checkbox-group/index.js +1 -1
- package/dist/lib/server/collapsible/index.js +6 -6
- package/dist/lib/server/combobox/index.js +18 -18
- package/dist/lib/server/{compositeNavigation-BRVT1C38.js → compositeNavigation-D5jKM4yk.js} +32 -1
- package/dist/lib/server/{constants-D7ciIzsV.js → constants-ByqXubhO.js} +2 -2
- package/dist/lib/server/context-menu/index.js +9 -9
- package/dist/lib/server/{createAnchorPositioning-B5Y0WEev.js → createAnchorPositioning-DrQYe7RS.js} +1 -1
- package/dist/lib/server/{createAnchoredPopupScrollLock-DFuUrykR.js → createAnchoredPopupScrollLock-q6gnOSmv.js} +2 -2
- package/dist/lib/server/{createClickInteraction-BYsMgvup.js → createClickInteraction-D7oc1Vco.js} +1 -1
- package/dist/lib/server/{createFocusInteraction-DMyKsniI.js → createFocusInteraction-DFKr4G7a.js} +1 -1
- package/dist/lib/server/{createPopupAutoResize-ImBjwdj_.js → createPopupAutoResize-Cg0-lLf4.js} +1 -1
- package/dist/lib/server/dialog/index.js +2 -2
- package/dist/lib/server/{dom-Crg_2R-j.js → dom-D8_aB1yy.js} +14 -1
- package/dist/lib/server/drawer/index.js +38 -34
- package/dist/lib/server/field/index.js +6 -6
- package/dist/lib/server/form/index.js +2 -2
- package/dist/lib/server/input/index.js +1 -1
- package/dist/lib/server/internals/composeEventHandlers.js +15 -9
- package/dist/lib/server/internals/field-root-context/index.js +1 -1
- package/dist/lib/server/{mergeStyleValue-BwJ10_X2.js → isSolidAccessor-CZpzAH5l.js} +1 -20
- package/dist/lib/server/menu/index.js +17 -17
- package/dist/lib/server/menubar/index.js +4 -4
- package/dist/lib/server/mergeStyleValue-DecVaoac.js +20 -0
- package/dist/lib/server/navigation-menu/index.js +21 -21
- package/dist/lib/server/number-field/index.js +21 -21
- package/dist/lib/server/otp-field/index.js +8 -8
- package/dist/lib/server/popover/index.js +27 -26
- package/dist/lib/server/{popupStateMapping-B2KsiiLb.js → popupStateMapping-VHqr6M4H.js} +1 -1
- package/dist/lib/server/preview-card/index.js +16 -16
- package/dist/lib/server/radio/index.js +6 -6
- package/dist/lib/server/radio-group/index.js +5 -5
- package/dist/lib/server/{safePolygon-C1GNJbKR.js → safePolygon-B8QtiIZ3.js} +1 -1
- package/dist/lib/server/scroll-area/index.js +18 -18
- package/dist/lib/server/{scrollable-CjsSxbGr.js → scrollable-C9Pgq8T5.js} +1 -1
- package/dist/lib/server/select/index.js +39 -38
- package/dist/lib/server/slider/index.js +14 -14
- package/dist/lib/server/switch/index.js +9 -9
- package/dist/lib/server/tabs/index.js +12 -8
- package/dist/lib/server/toast/index.js +32 -32
- package/dist/lib/server/toggle/index.js +7 -7
- package/dist/lib/server/toggle-group/index.js +2 -2
- package/dist/lib/server/toolbar/index.js +14 -14
- package/dist/lib/server/tooltip/index.js +32 -27
- package/dist/lib/server/{useFilteredItems-DCxq20Is.js → useFilteredItems-BmhL0nf1.js} +181 -137
- package/dist/lib/types/accordion/trigger/AccordionTrigger.d.ts +7 -7
- package/dist/lib/types/combobox/chip/ComboboxChip.d.ts +2 -0
- package/dist/lib/types/combobox/root/ComboboxRoot.d.ts +6 -1
- package/dist/lib/types/combobox/store/ComboboxStore.d.ts +1 -0
- package/dist/lib/types/combobox/utils/handleInputPress.d.ts +1 -1
- package/dist/lib/types/field/control/FieldControl.d.ts +5 -5
- package/dist/lib/types/internals/composeEventHandlers.d.ts +9 -2
- package/dist/lib/types/internals/field-root-context/FieldRootContext.d.ts +1 -0
- package/dist/lib/types/internals/overlay/dom.d.ts +2 -0
- package/dist/lib/types/number-field/input/NumberFieldInput.d.ts +5 -5
- package/dist/lib/types/slider/track/SliderTrack.d.ts +2 -2
- package/dist/lib/types/toolbar/link/ToolbarLink.d.ts +10 -3
- package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +10 -4
- package/package.json +2 -2
- package/dist/lib/client/DialogHandle-BGyIbcvg.js +0 -521
- package/dist/lib/client/DialogPopup-Df7MC358.js +0 -138
- package/dist/lib/client/FieldControl-C0PATyKV.js +0 -142
- package/dist/lib/client/PopupViewport-IS4XU03s.js +0 -152
- package/dist/lib/client/avatar-BQoEzzav.js +0 -191
- package/dist/lib/client/button-akYS6FyY.js +0 -88
- package/dist/lib/client/checkbox-DOXtzBhA.js +0 -425
- package/dist/lib/client/collapsible-t8YReaIp.js +0 -230
- package/dist/lib/client/compositeNavigation-sxniYTc7.js +0 -58
- package/dist/lib/client/context-menu-CplDpqmi.js +0 -220
- package/dist/lib/client/form-6Ne_bWQX.js +0 -109
- package/dist/lib/client/menubar-DhPRUQZ6.js +0 -163
- package/dist/lib/client/otp-field-D-B9tZzF.js +0 -584
- package/dist/lib/client/radio-group-CWtQxWDl.js +0 -195
- package/dist/lib/client/scroll-area-NCr49LkD.js +0 -717
- package/dist/lib/client/slider-CWq9hxFf.js +0 -927
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { t as e } from "./useRender-CxZ8PI-g.js";
|
|
2
|
+
import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
|
|
3
|
+
import { n, t as r } from "./resolveStyle-XcgAuaKR.js";
|
|
4
|
+
import { composeEventHandlers as i, liveEventHandler as a } from "./internals/composeEventHandlers.js";
|
|
5
|
+
import { r as o } from "./compositeNavigation-DCt1sQon.js";
|
|
6
|
+
import { i as s, r as c } from "./FloatingTree-23B7KKPD.js";
|
|
7
|
+
import { n as l } from "./DirectionContext-BwMabICS.js";
|
|
8
|
+
import { t as u } from "./MenubarContext-BYt3fkt-.js";
|
|
9
|
+
import { createComponent as d, getNextElement as f, mergeProps as ee, runHydrationEvents as p, spread as m, template as h } from "@solidjs/web";
|
|
10
|
+
import { createEffect as g, createMemo as _, createSignal as v, createUniqueId as y, omit as te, onCleanup as ne } from "solid-js";
|
|
11
|
+
//#region src/menubar/Menubar.tsx
|
|
12
|
+
var b = /* @__PURE__ */ h("<div>"), re = { hasSubmenuOpen: (e) => e ? { "data-has-submenu-open": "" } : null };
|
|
13
|
+
function x(h) {
|
|
14
|
+
let x = l(), w = h, ie = h, T = `base-ui-${y()}`, E = _(() => w.id || T), D = _(() => w.modal ?? !0), O = _(() => w.disabled ?? !1), k = _(() => w.orientation ?? "horizontal"), [A, ae] = v(null, { ownedWrite: !0 }), [j, M] = v(!1, { ownedWrite: !0 }), [N, P] = v(), [F, I] = v(0), L = new c(), R = y();
|
|
15
|
+
s({
|
|
16
|
+
tree: L,
|
|
17
|
+
id: R
|
|
18
|
+
});
|
|
19
|
+
let z = /* @__PURE__ */ new Map(), B = { value: !1 }, V = 0, H = 0, U = 0, W = !1, G = !1, K = _(() => ({
|
|
20
|
+
orientation: k(),
|
|
21
|
+
modal: D(),
|
|
22
|
+
hasSubmenuOpen: j()
|
|
23
|
+
})), oe = _(() => n(h.class, K())), q = _(() => r(h.style, K())), se = _(() => t(K(), re)), ce = te(ie, "render", "class", "disabled", "id", "loopFocus", "modal", "onFocusIn", "onKeyDown", "orientation", "ref", "style");
|
|
24
|
+
function J() {
|
|
25
|
+
G || (G = !0, queueMicrotask(() => {
|
|
26
|
+
G = !1, I((e) => e + 1);
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
function le(e) {
|
|
30
|
+
return e.order = V, V += 1, z.set(e.token, e), J(), () => {
|
|
31
|
+
z.delete(e.token), J();
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function Y() {
|
|
35
|
+
return Array.from(z.values()).sort(S);
|
|
36
|
+
}
|
|
37
|
+
function X() {
|
|
38
|
+
return Y().filter(C);
|
|
39
|
+
}
|
|
40
|
+
function ue(e) {
|
|
41
|
+
F();
|
|
42
|
+
let t = Y(), n = t.every((e) => !e.element()), r = n ? t.filter((e) => !e.disabled()) : X(), i = r.find((e) => e.token === N());
|
|
43
|
+
return (n || C(e)) && (i ?? r[0])?.token === e.token;
|
|
44
|
+
}
|
|
45
|
+
function Z(e) {
|
|
46
|
+
C(e) && P(e.token);
|
|
47
|
+
}
|
|
48
|
+
function Q(e) {
|
|
49
|
+
let t = e.composedPath(), n = t[0];
|
|
50
|
+
return Y().find((e) => {
|
|
51
|
+
let r = e.element();
|
|
52
|
+
return r && (t.includes(r) || n instanceof Node && r.contains(n));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function $(e) {
|
|
56
|
+
if (e.defaultPrevented || e.cancelBubble || e.shiftKey || e.ctrlKey || e.altKey || e.metaKey) return;
|
|
57
|
+
let t = X();
|
|
58
|
+
if (t.length === 0) return;
|
|
59
|
+
let n = Q(e)?.token ?? N(), r = t.findIndex((e) => e.token === n), i = o({
|
|
60
|
+
list: t.map((e) => e.element()),
|
|
61
|
+
currentIndex: r,
|
|
62
|
+
key: e.key,
|
|
63
|
+
orientation: k(),
|
|
64
|
+
rtl: x() === "rtl",
|
|
65
|
+
loop: w.loopFocus ?? !0
|
|
66
|
+
});
|
|
67
|
+
if (i === r || i < 0) return;
|
|
68
|
+
let a = t[i];
|
|
69
|
+
a && (e.preventDefault(), e.stopPropagation(), Z(a), a.element()?.focus({ preventScroll: !0 }));
|
|
70
|
+
}
|
|
71
|
+
let de = i(a(() => w.onFocusIn), (e) => {
|
|
72
|
+
let t = Q(e);
|
|
73
|
+
t && Z(t);
|
|
74
|
+
}), fe = i(a(() => w.onKeyDown), $), pe = {
|
|
75
|
+
modal: D,
|
|
76
|
+
disabled: O,
|
|
77
|
+
orientation: k,
|
|
78
|
+
hasSubmenuOpen: j,
|
|
79
|
+
rootElement: A,
|
|
80
|
+
rootId: E,
|
|
81
|
+
tree: L,
|
|
82
|
+
nodeId: R,
|
|
83
|
+
allowMouseUpTrigger: B,
|
|
84
|
+
createTriggerId() {
|
|
85
|
+
H += 1, H === 1 && typeof document < "u" && (U = (A() ?? document.getElementById(E()))?.querySelectorAll("[role=\"menuitem\"][aria-haspopup=\"menu\"]").length ?? 0, U > 0 && !W && (W = !0, queueMicrotask(() => {
|
|
86
|
+
U = 0;
|
|
87
|
+
})));
|
|
88
|
+
let e = U > 0 ? (H - 1) % U + 1 : H;
|
|
89
|
+
return `${E()}-trigger-${e}`;
|
|
90
|
+
},
|
|
91
|
+
isTabStop: ue,
|
|
92
|
+
notifyItemChange: J,
|
|
93
|
+
registerTrigger: le,
|
|
94
|
+
setActiveTrigger: Z,
|
|
95
|
+
relayKeyboardEvent: $
|
|
96
|
+
};
|
|
97
|
+
g(A, (e) => {
|
|
98
|
+
let t = e?.ownerDocument.defaultView?.MutationObserver;
|
|
99
|
+
if (!e || !t) return;
|
|
100
|
+
let n = new t(J);
|
|
101
|
+
return n.observe(e, {
|
|
102
|
+
attributes: !0,
|
|
103
|
+
childList: !0,
|
|
104
|
+
subtree: !0,
|
|
105
|
+
attributeFilter: [
|
|
106
|
+
"class",
|
|
107
|
+
"disabled",
|
|
108
|
+
"hidden",
|
|
109
|
+
"style"
|
|
110
|
+
]
|
|
111
|
+
}), () => n.disconnect();
|
|
112
|
+
});
|
|
113
|
+
let me = L.events.on("menuopenchange", (e) => {
|
|
114
|
+
!e.nodeId || e.parentNodeId !== R || (e.open ? M(!0) : e.reason !== "sibling-open" && e.reason !== "list-navigation" && M(!1));
|
|
115
|
+
});
|
|
116
|
+
ne(me);
|
|
117
|
+
let he = e(h, () => K(), (e) => (() => {
|
|
118
|
+
var t = f(b);
|
|
119
|
+
return m(t, e, !1), p(), t;
|
|
120
|
+
})());
|
|
121
|
+
return d(u, {
|
|
122
|
+
value: pe,
|
|
123
|
+
get children() {
|
|
124
|
+
return d(he, ee({
|
|
125
|
+
ref: [((e) => ae(e)), w.ref],
|
|
126
|
+
get id() {
|
|
127
|
+
return E();
|
|
128
|
+
},
|
|
129
|
+
role: "menubar",
|
|
130
|
+
get "aria-orientation"() {
|
|
131
|
+
return k();
|
|
132
|
+
},
|
|
133
|
+
get class() {
|
|
134
|
+
return oe();
|
|
135
|
+
},
|
|
136
|
+
get style() {
|
|
137
|
+
return q();
|
|
138
|
+
},
|
|
139
|
+
onFocusIn: de,
|
|
140
|
+
onKeyDown: fe
|
|
141
|
+
}, se, ce));
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function S(e, t) {
|
|
146
|
+
let n = e.element(), r = t.element();
|
|
147
|
+
if (n && r && n !== r) {
|
|
148
|
+
let e = n.compareDocumentPosition(r);
|
|
149
|
+
if ((e & Node.DOCUMENT_POSITION_DISCONNECTED) === 0) {
|
|
150
|
+
if (e & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
|
|
151
|
+
if (e & Node.DOCUMENT_POSITION_PRECEDING) return 1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return e.order - t.order;
|
|
155
|
+
}
|
|
156
|
+
function C(e) {
|
|
157
|
+
let t = e.element();
|
|
158
|
+
if (!t?.isConnected || e.disabled() || t.matches(":disabled")) return !1;
|
|
159
|
+
let n = t.ownerDocument.defaultView?.getComputedStyle(t);
|
|
160
|
+
return !n || n.display === "none" || n.display === "contents" || n.visibility === "hidden" || n.visibility === "collapse" ? !1 : typeof t.checkVisibility != "function" || t.checkVisibility();
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
export { x as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/internals/mergeStyleValue.ts
|
|
2
|
+
function e(e, n) {
|
|
3
|
+
return typeof n == "string" ? `${t(e)}${n}` : n ? {
|
|
4
|
+
...e,
|
|
5
|
+
...n
|
|
6
|
+
} : e;
|
|
7
|
+
}
|
|
8
|
+
function t(e) {
|
|
9
|
+
return Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${t};`).join("");
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../navigation-menu-
|
|
1
|
+
import { t as e } from "../navigation-menu-BbRyun3a.js";
|
|
2
2
|
export { e as NavigationMenu };
|