solid-baseui 0.1.0-alpha.1 → 0.1.0-alpha.2
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 +42 -0
- package/README.md +51 -20
- 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 +1 -1
- 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
|
@@ -4,13 +4,13 @@ import { N as triggerPress, d as imperativeAction, i as closePress } from "./int
|
|
|
4
4
|
import { n as resolveClass, t as resolveStyle } from "./resolveStyle-XCSFDHAL.js";
|
|
5
5
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
6
6
|
import { transitionStatusMapping } from "./internals/stateAttributesMapping.js";
|
|
7
|
-
import { composeEventHandlers } from "./internals/composeEventHandlers.js";
|
|
8
|
-
import {
|
|
9
|
-
import { n as createScrollLock, t as InternalBackdrop } from "./InternalBackdrop-
|
|
7
|
+
import { composeEventHandlers, liveEventHandler } from "./internals/composeEventHandlers.js";
|
|
8
|
+
import { i as getEventTarget, n as contains, o as isElement } from "./dom-D8_aB1yy.js";
|
|
9
|
+
import { n as createScrollLock, t as InternalBackdrop } from "./InternalBackdrop-D_2zAWnl.js";
|
|
10
10
|
import { c as useFloatingTree, i as createFloatingNode, n as FloatingTreeContext, r as FloatingTreeStore, s as useFloatingParentNodeId, t as FloatingParentNodeContext } from "./FloatingTree-z1JPD1dR.js";
|
|
11
|
-
import { a as createPopupPresence, n as createTriggerRegistration, o as createDismiss, t as PopupStore } from "./PopupStore-
|
|
12
|
-
import { a as triggerOpenStateMapping, o as PopupPortal } from "./popupStateMapping-
|
|
13
|
-
import { i as createPopupHandleStore, n as DetachedPopupStore, r as attachPopupHandle, t as BasePopupHandle } from "./PopupHandle-
|
|
11
|
+
import { a as createPopupPresence, n as createTriggerRegistration, o as createDismiss, t as PopupStore } from "./PopupStore-evylvVnN.js";
|
|
12
|
+
import { a as triggerOpenStateMapping, o as PopupPortal } from "./popupStateMapping-VHqr6M4H.js";
|
|
13
|
+
import { i as createPopupHandleStore, n as DetachedPopupStore, r as attachPopupHandle, t as BasePopupHandle } from "./PopupHandle-QNj4mED2.js";
|
|
14
14
|
import { t as setRef } from "./setRef-Bt70sW7c.js";
|
|
15
15
|
import { a as stopButtonInteraction, i as preventDisabledButtonKeyDown, n as handleNonNativeButtonKeyUp, r as preventButtonInteraction, t as handleNonNativeButtonKeyDown } from "./buttonSemantics-BSwDxJhh.js";
|
|
16
16
|
import { escape, memo, mergeProps, ssrElement } from "@solidjs/web";
|
|
@@ -318,11 +318,11 @@ function DialogClose(props) {
|
|
|
318
318
|
function handleClick(event) {
|
|
319
319
|
if (context.store.open()) context.store.setOpen(false, createChangeEventDetails(closePress, event));
|
|
320
320
|
}
|
|
321
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick,
|
|
322
|
-
const onPointerDown = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onPointerDown);
|
|
323
|
-
const onMouseDown = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onMouseDown);
|
|
324
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledButtonKeyDown : void 0), () => internalProps.onKeyDown, () => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyDown));
|
|
325
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, () => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp));
|
|
321
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), handleClick);
|
|
322
|
+
const onPointerDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onPointerDown));
|
|
323
|
+
const onMouseDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onMouseDown));
|
|
324
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledButtonKeyDown : void 0)), liveEventHandler(() => internalProps.onKeyDown), liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyDown)));
|
|
325
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp)));
|
|
326
326
|
return Render(mergeProps({
|
|
327
327
|
ref: [internalProps.ref],
|
|
328
328
|
get type() {
|
|
@@ -551,11 +551,11 @@ function DialogTrigger(props) {
|
|
|
551
551
|
const currentTarget = event.currentTarget;
|
|
552
552
|
if (popup && currentTarget && popup.ownerDocument !== currentTarget.ownerDocument && typeof rootHandler === "function") rootHandler(event);
|
|
553
553
|
}
|
|
554
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0),
|
|
555
|
-
const onPointerDown = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onPointerDown,
|
|
556
|
-
const onMouseDown = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onMouseDown);
|
|
557
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledButtonKeyDown : void 0), () => internalProps.onKeyDown,
|
|
558
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, () => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp));
|
|
554
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), prepareClick, liveEventHandler(() => internalProps.onClick), handleClick);
|
|
555
|
+
const onPointerDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onPointerDown), handlePointerDown);
|
|
556
|
+
const onMouseDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onMouseDown));
|
|
557
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledButtonKeyDown : void 0)), liveEventHandler(() => internalProps.onKeyDown), handleKeyDown, liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyDown)));
|
|
558
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeButtonKeyUp)));
|
|
559
559
|
return Render(mergeProps({
|
|
560
560
|
ref: [((value) => setElement(value)), internalProps.ref],
|
|
561
561
|
get id() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as useRender } from "./useRender-CryVdCjs.js";
|
|
2
2
|
import { getStateAttributesProps } from "./internals/getStateAttributesProps.js";
|
|
3
3
|
import { n as resolveClass, t as resolveStyle } from "./resolveStyle-XCSFDHAL.js";
|
|
4
|
-
import { composeEventHandlers } from "./internals/composeEventHandlers.js";
|
|
5
|
-
import { t as FocusManager } from "./FocusManager-
|
|
6
|
-
import { d as dialogTransitionStateAttributesMapping, f as mergeDialogStyles, h as useDialogRootContext, s as useDialogPortalContext, u as dialogStateAttributesMapping } from "./DialogHandle-
|
|
4
|
+
import { composeEventHandlers, liveEventHandler } from "./internals/composeEventHandlers.js";
|
|
5
|
+
import { t as FocusManager } from "./FocusManager-D-xgblGs.js";
|
|
6
|
+
import { d as dialogTransitionStateAttributesMapping, f as mergeDialogStyles, h as useDialogRootContext, s as useDialogPortalContext, u as dialogStateAttributesMapping } from "./DialogHandle-BGIISmG7.js";
|
|
7
7
|
import { mergeProps, ssrElement } from "@solidjs/web";
|
|
8
8
|
import { Show, createEffect, createMemo, omit, onCleanup } from "solid-js";
|
|
9
9
|
//#region src/dialog/backdrop/DialogBackdrop.tsx
|
|
@@ -83,7 +83,7 @@ function DialogPopup(props) {
|
|
|
83
83
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), dialogStateAttributesMapping));
|
|
84
84
|
const id = createMemo(() => internalProps.id ?? context.store.context.floatingId);
|
|
85
85
|
const initialFocus = createMemo(() => internalProps.initialFocus ?? ((interactionType) => interactionType === "touch" ? context.store.state.popupElement : true));
|
|
86
|
-
const onKeyDown = composeEventHandlers(() => internalProps.onKeyDown, (
|
|
86
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => internalProps.onKeyDown), (event) => {
|
|
87
87
|
if (COMPOSITE_KEYS.has(event.key)) event.stopPropagation();
|
|
88
88
|
});
|
|
89
89
|
let popupElement = null;
|
|
@@ -3,9 +3,9 @@ import { getStateAttributesProps } from "./internals/getStateAttributesProps.js"
|
|
|
3
3
|
import { w as none } from "./internals/reasons.js";
|
|
4
4
|
import { n as resolveClass, t as resolveStyle } from "./resolveStyle-XCSFDHAL.js";
|
|
5
5
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
6
|
-
import { composeEventHandlers } from "./internals/composeEventHandlers.js";
|
|
6
|
+
import { composeEventHandlers, liveEventHandler } from "./internals/composeEventHandlers.js";
|
|
7
7
|
import { fieldStateAttributesMapping } from "./internals/field-constants.js";
|
|
8
|
-
import {
|
|
8
|
+
import { r as useFieldRootContext } from "./FieldRootContext-Bfpna6gA.js";
|
|
9
9
|
import { n as useFormContext } from "./FormContext-CYwo_ZnB.js";
|
|
10
10
|
import { r as useLabelableContext } from "./LabelableContext-BTeF0IWb.js";
|
|
11
11
|
import { t as createLabelableId } from "./createLabelableId-WMUKtY6s.js";
|
|
@@ -57,10 +57,10 @@ function FieldControl(props) {
|
|
|
57
57
|
getValue: getFormValue,
|
|
58
58
|
getControl: () => element() ?? null
|
|
59
59
|
};
|
|
60
|
-
const callExternalInput = composeEventHandlers(() => internalProps.onInput);
|
|
61
|
-
const callExternalFocus = composeEventHandlers(() => internalProps.onFocus);
|
|
62
|
-
const callExternalBlur = composeEventHandlers(() => internalProps.onBlur);
|
|
63
|
-
const callExternalKeyDown = composeEventHandlers(() => internalProps.onKeyDown);
|
|
60
|
+
const callExternalInput = composeEventHandlers(liveEventHandler(() => internalProps.onInput));
|
|
61
|
+
const callExternalFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus));
|
|
62
|
+
const callExternalBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur));
|
|
63
|
+
const callExternalKeyDown = composeEventHandlers(liveEventHandler(() => internalProps.onKeyDown));
|
|
64
64
|
function setControlElement(value) {
|
|
65
65
|
setElement(value);
|
|
66
66
|
if (initialized || !isNativeFieldControl(value)) return;
|
|
@@ -2,7 +2,7 @@ import { DEFAULT_FIELD_STATE, DEFAULT_VALIDITY_DATA } from "./internals/field-co
|
|
|
2
2
|
import { createContext, useContext } from "solid-js";
|
|
3
3
|
//#region src/internals/field-root-context/FieldRootContext.ts
|
|
4
4
|
var MISSING_CONTEXT = Symbol("FieldRootContext");
|
|
5
|
-
var
|
|
5
|
+
var DEFAULT_FIELD_ROOT_CONTEXT = {
|
|
6
6
|
state: () => DEFAULT_FIELD_STATE,
|
|
7
7
|
validityData: () => DEFAULT_VALIDITY_DATA,
|
|
8
8
|
name: () => void 0,
|
|
@@ -27,8 +27,8 @@ var FieldRootContext = createContext(MISSING_CONTEXT);
|
|
|
27
27
|
function useFieldRootContext(optional = false) {
|
|
28
28
|
const context = useContext(FieldRootContext);
|
|
29
29
|
if (context !== MISSING_CONTEXT) return context;
|
|
30
|
-
if (optional) return
|
|
30
|
+
if (optional) return DEFAULT_FIELD_ROOT_CONTEXT;
|
|
31
31
|
throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
export {
|
|
34
|
+
export { FieldRootContext as n, useFieldRootContext as r, DEFAULT_FIELD_ROOT_CONTEXT as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { u as focusOut } from "./internals/reasons.js";
|
|
2
2
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as getFloatingFocusElement, d as isShadowRoot, f as isTypeableCombobox, i as getEventTarget, l as isHTMLElement, m as ownerDocument, n as contains, p as isTypeableElement, r as containsWithPortals, s as isElementVisible, t as activeElement } from "./dom-D8_aB1yy.js";
|
|
4
4
|
import { a as getNodeAncestors, o as getNodeChildren } from "./FloatingTree-z1JPD1dR.js";
|
|
5
|
-
import { c as focusable, g as FocusGuard, h as tabbable, l as getNextTabbable, m as isTabbable, p as isOutsideFocusEvent, s as usePopupPortalContext, u as getPreviousTabbable } from "./popupStateMapping-
|
|
5
|
+
import { c as focusable, g as FocusGuard, h as tabbable, l as getNextTabbable, m as isTabbable, p as isOutsideFocusEvent, s as usePopupPortalContext, u as getPreviousTabbable } from "./popupStateMapping-VHqr6M4H.js";
|
|
6
6
|
import { applyRef, escape, memo } from "@solidjs/web";
|
|
7
7
|
import { Show, createEffect, createMemo, untrack } from "solid-js";
|
|
8
8
|
//#region src/internals/overlay/markOthers.ts
|
|
@@ -277,7 +277,7 @@ function FocusManager(props) {
|
|
|
277
277
|
resolveElement(props.nextFocusableElement)
|
|
278
278
|
].includes(relatedTarget));
|
|
279
279
|
const triggers = props.context.context.triggerElements;
|
|
280
|
-
const movedOutside = !(
|
|
280
|
+
const movedOutside = !(containsWithPortals(state.reference, relatedTarget) || containsWithPortals(state.floating, relatedTarget) || contains(relatedTarget, state.floating) || contains(portal?.portalNode(), relatedTarget) || insideElements().some((element) => element === relatedTarget || contains(element, relatedTarget)) || triggers.hasMatchingElement((trigger) => contains(trigger, relatedTarget)) || relatedIsGuard || state.tree && (getNodeChildren(state.tree.nodes, nodeId()).some((node) => containsWithPortals(node.context?.state.floatingElement, relatedTarget) || containsWithPortals(node.context?.state.domReferenceElement, relatedTarget)) || getNodeAncestors(state.tree.nodes, nodeId()).some((node) => node.context?.state.floatingElement === relatedTarget || node.context?.state.domReferenceElement === relatedTarget)));
|
|
281
281
|
if (event.currentTarget === state.reference && state.focusElement) handleTabIndex(state.focusElement);
|
|
282
282
|
if (state.restoreFocus && event.currentTarget !== state.reference && !isElementVisible(target) && activeElement(documentNode) === documentNode.body && state.focusElement) {
|
|
283
283
|
state.focusElement.focus();
|
|
@@ -295,6 +295,11 @@ function FocusManager(props) {
|
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
};
|
|
298
|
+
const handlePortalFocusOut = (event) => {
|
|
299
|
+
const target = getEventTarget(event);
|
|
300
|
+
if (!contains(state.floating, target) && !contains(state.reference, target) && (containsWithPortals(state.floating, target) || containsWithPortals(state.reference, target))) handleFocusOut(event);
|
|
301
|
+
};
|
|
302
|
+
documentNode.addEventListener("focusout", handlePortalFocusOut);
|
|
298
303
|
if (state.reference) {
|
|
299
304
|
state.reference.addEventListener("focusout", handleFocusOut);
|
|
300
305
|
state.reference.addEventListener("pointerdown", handlePointerDown);
|
|
@@ -302,6 +307,7 @@ function FocusManager(props) {
|
|
|
302
307
|
state.floating?.addEventListener("focusin", handleFocusIn);
|
|
303
308
|
state.floating?.addEventListener("focusout", handleFocusOut);
|
|
304
309
|
return () => {
|
|
310
|
+
documentNode.removeEventListener("focusout", handlePortalFocusOut);
|
|
305
311
|
if (state.reference) {
|
|
306
312
|
state.reference.removeEventListener("focusout", handleFocusOut);
|
|
307
313
|
state.reference.removeEventListener("pointerdown", handlePointerDown);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as ownerWindow, m as ownerDocument } from "./dom-D8_aB1yy.js";
|
|
2
2
|
import { mergeProps, ssrElement } from "@solidjs/web";
|
|
3
3
|
import { createEffect, createSignal, omit } from "solid-js";
|
|
4
4
|
//#region src/internals/overlay/scrollLock.ts
|
|
@@ -4,19 +4,19 @@ import { N as triggerPress, O as siblingOpen, S as listNavigation, d as imperati
|
|
|
4
4
|
import { n as resolveClass, t as resolveStyle } from "./resolveStyle-XCSFDHAL.js";
|
|
5
5
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
6
6
|
import { transitionStatusMapping } from "./internals/stateAttributesMapping.js";
|
|
7
|
-
import { composeEventHandlers } from "./internals/composeEventHandlers.js";
|
|
7
|
+
import { composeEventHandlers, liveEventHandler } from "./internals/composeEventHandlers.js";
|
|
8
8
|
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-CYq38H8J.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as createAnchorPositioning } from "./createAnchorPositioning-
|
|
11
|
-
import { t as InternalBackdrop } from "./InternalBackdrop-
|
|
12
|
-
import { t as createAnchoredPopupScrollLock } from "./createAnchoredPopupScrollLock-
|
|
9
|
+
import { s as isElementVisible } from "./dom-D8_aB1yy.js";
|
|
10
|
+
import { t as createAnchorPositioning } from "./createAnchorPositioning-DrQYe7RS.js";
|
|
11
|
+
import { t as InternalBackdrop } from "./InternalBackdrop-D_2zAWnl.js";
|
|
12
|
+
import { t as createAnchoredPopupScrollLock } from "./createAnchoredPopupScrollLock-q6gnOSmv.js";
|
|
13
13
|
import { c as useFloatingTree, i as createFloatingNode, n as FloatingTreeContext, r as FloatingTreeStore, s as useFloatingParentNodeId, t as FloatingParentNodeContext } from "./FloatingTree-z1JPD1dR.js";
|
|
14
|
-
import { a as createPopupPresence, n as createTriggerRegistration, o as createDismiss, t as PopupStore } from "./PopupStore-
|
|
15
|
-
import { n as createInitialPositioning, r as createHoverInteraction, t as safePolygon } from "./safePolygon-
|
|
14
|
+
import { a as createPopupPresence, n as createTriggerRegistration, o as createDismiss, t as PopupStore } from "./PopupStore-evylvVnN.js";
|
|
15
|
+
import { n as createInitialPositioning, r as createHoverInteraction, t as safePolygon } from "./safePolygon-B8QtiIZ3.js";
|
|
16
16
|
import { t as createTransitionStatus } from "./createTransitionStatus-184v7j3-.js";
|
|
17
|
-
import { a as triggerOpenStateMapping, h as tabbable, n as popupStateMapping, o as PopupPortal, r as popupTransitionStateMapping } from "./popupStateMapping-
|
|
18
|
-
import { t as FocusManager } from "./FocusManager-
|
|
19
|
-
import { r as attachPopupHandle } from "./PopupHandle-
|
|
17
|
+
import { a as triggerOpenStateMapping, h as tabbable, n as popupStateMapping, o as PopupPortal, r as popupTransitionStateMapping } from "./popupStateMapping-VHqr6M4H.js";
|
|
18
|
+
import { t as FocusManager } from "./FocusManager-D-xgblGs.js";
|
|
19
|
+
import { r as attachPopupHandle } from "./PopupHandle-QNj4mED2.js";
|
|
20
20
|
import { t as setRef } from "./setRef-Bt70sW7c.js";
|
|
21
21
|
import { a as stopButtonInteraction, r as preventButtonInteraction } from "./buttonSemantics-BSwDxJhh.js";
|
|
22
22
|
import { n as useDirection } from "./DirectionContext-YORWLF08.js";
|
|
@@ -1087,14 +1087,14 @@ function MenuPopup(props) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
if (!event.defaultPrevented && !event.cancelBubble) context.store.relayKeyboardEvent(event);
|
|
1089
1089
|
}
|
|
1090
|
-
const onKeyDown = composeEventHandlers(() => internalProps.onKeyDown,
|
|
1090
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => internalProps.onKeyDown), handleKeyDown, (event) => {
|
|
1091
1091
|
if (insideToolbar && COMPOSITE_KEYS.has(event.key)) event.stopPropagation();
|
|
1092
1092
|
});
|
|
1093
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove, () =>
|
|
1093
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), () => {
|
|
1094
1094
|
context.store.setAllowMouseEnter(true);
|
|
1095
1095
|
if (context.nested) context.store.setHoverEnabled(false);
|
|
1096
1096
|
});
|
|
1097
|
-
const onClick = composeEventHandlers(() => internalProps.onClick, () =>
|
|
1097
|
+
const onClick = composeEventHandlers(liveEventHandler(() => internalProps.onClick), () => context.store.setHoverEnabled(false));
|
|
1098
1098
|
const defaultReturnFocus = () => untrack(() => {
|
|
1099
1099
|
const reason = context.store.openChangeReason();
|
|
1100
1100
|
if (reason === "focus-out" || context.store.menubar() && (reason === "sibling-open" || reason === "list-navigation")) return false;
|
|
@@ -1438,15 +1438,15 @@ function MenuItem(props) {
|
|
|
1438
1438
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
1439
1439
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
1440
1440
|
const others = omit(allProps, "render", "class", "closeOnClick", "disabled", "id", "label", "nativeButton", "onClick", "onFocus", "onBlur", "onKeyDown", "onKeyUp", "onMouseMove", "onMouseUp", "ref", "style");
|
|
1441
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick, (
|
|
1441
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), (event) => {
|
|
1442
1442
|
if (closeOnClick()) item.close(event);
|
|
1443
1443
|
});
|
|
1444
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0), () => internalProps.onKeyDown, (
|
|
1445
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, (
|
|
1446
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove, () => item.onMouseMove);
|
|
1447
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp, () => item.onMouseUp);
|
|
1448
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus, () => item.onFocus);
|
|
1449
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur, () => item.onBlur);
|
|
1444
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0)), liveEventHandler(() => internalProps.onKeyDown), (event) => item.onKeyDown(event, nativeButton()));
|
|
1445
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), (event) => item.onKeyUp(event, nativeButton()));
|
|
1446
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), liveEventHandler(() => item.onMouseMove));
|
|
1447
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp), liveEventHandler(() => item.onMouseUp));
|
|
1448
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), liveEventHandler(() => item.onFocus));
|
|
1449
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), liveEventHandler(() => item.onBlur));
|
|
1450
1450
|
return useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true))(mergeProps({
|
|
1451
1451
|
ref: [((element) => item.setElement(element)), internalProps.ref],
|
|
1452
1452
|
get id() {
|
|
@@ -1518,15 +1518,15 @@ function MenuCheckboxItem(props) {
|
|
|
1518
1518
|
internalProps.onCheckedChange?.(nextChecked, details);
|
|
1519
1519
|
if (!details.isCanceled && !controlled) setUncontrolledChecked(nextChecked);
|
|
1520
1520
|
}
|
|
1521
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick,
|
|
1521
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), toggle, (event) => {
|
|
1522
1522
|
if (closeOnClick()) item.close(event);
|
|
1523
1523
|
});
|
|
1524
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0), () => internalProps.onKeyDown, (
|
|
1525
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, (
|
|
1526
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus, () => item.onFocus);
|
|
1527
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur, () => item.onBlur);
|
|
1528
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove, () => item.onMouseMove);
|
|
1529
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp, () => item.onMouseUp);
|
|
1524
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0)), liveEventHandler(() => internalProps.onKeyDown), (event) => item.onKeyDown(event, nativeButton()));
|
|
1525
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), (event) => item.onKeyUp(event, nativeButton()));
|
|
1526
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), liveEventHandler(() => item.onFocus));
|
|
1527
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), liveEventHandler(() => item.onBlur));
|
|
1528
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), liveEventHandler(() => item.onMouseMove));
|
|
1529
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp), liveEventHandler(() => item.onMouseUp));
|
|
1530
1530
|
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
1531
1531
|
return MenuCheckboxItemContext({
|
|
1532
1532
|
value: state,
|
|
@@ -1638,15 +1638,15 @@ function MenuLinkItem(props) {
|
|
|
1638
1638
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
1639
1639
|
const stateAttributes = createMemo(() => getStateAttributesProps(state()));
|
|
1640
1640
|
const others = omit(allProps, "render", "class", "closeOnClick", "id", "label", "onClick", "onFocus", "onBlur", "onKeyDown", "onKeyUp", "onMouseMove", "onMouseUp", "ref", "style");
|
|
1641
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick, (
|
|
1641
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), (event) => {
|
|
1642
1642
|
if (closeOnClick()) item.close(event);
|
|
1643
1643
|
});
|
|
1644
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0), () => internalProps.onKeyDown, (
|
|
1645
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, (
|
|
1646
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove, () => item.onMouseMove);
|
|
1647
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp, () => item.onMouseUp);
|
|
1648
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus, () => item.onFocus);
|
|
1649
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur, () => item.onBlur);
|
|
1644
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0)), liveEventHandler(() => internalProps.onKeyDown), (event) => item.onKeyDown(event, false));
|
|
1645
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), (event) => item.onKeyUp(event, false));
|
|
1646
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), liveEventHandler(() => item.onMouseMove));
|
|
1647
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp), liveEventHandler(() => item.onMouseUp));
|
|
1648
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), liveEventHandler(() => item.onFocus));
|
|
1649
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), liveEventHandler(() => item.onBlur));
|
|
1650
1650
|
return useRender(props, () => state(), (props) => ssrElement("a", props, void 0, true))(mergeProps({
|
|
1651
1651
|
ref: [((element) => item.setElement(element)), internalProps.ref],
|
|
1652
1652
|
get id() {
|
|
@@ -1774,15 +1774,15 @@ function MenuRadioItem(props) {
|
|
|
1774
1774
|
const details = createChangeEventDetails(itemPress, event, void 0, { preventUnmountOnClose() {} });
|
|
1775
1775
|
group.setValue(internalProps.value, details);
|
|
1776
1776
|
}
|
|
1777
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick,
|
|
1777
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), select, (event) => {
|
|
1778
1778
|
if (closeOnClick()) item.close(event);
|
|
1779
1779
|
});
|
|
1780
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0), () => internalProps.onKeyDown, (
|
|
1781
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, (
|
|
1782
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus, () => item.onFocus);
|
|
1783
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur, () => item.onBlur);
|
|
1784
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove, () => item.onMouseMove);
|
|
1785
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp, () => item.onMouseUp);
|
|
1780
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0)), liveEventHandler(() => internalProps.onKeyDown), (event) => item.onKeyDown(event, nativeButton()));
|
|
1781
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), (event) => item.onKeyUp(event, nativeButton()));
|
|
1782
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), liveEventHandler(() => item.onFocus));
|
|
1783
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), liveEventHandler(() => item.onBlur));
|
|
1784
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), liveEventHandler(() => item.onMouseMove));
|
|
1785
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp), liveEventHandler(() => item.onMouseUp));
|
|
1786
1786
|
const Render = useRender(props, () => state(), (props) => ssrElement("div", props, void 0, true));
|
|
1787
1787
|
return MenuRadioItemContext({
|
|
1788
1788
|
value: state,
|
|
@@ -1941,26 +1941,26 @@ function MenuSubmenuTrigger(props) {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
item.onKeyDown(event, nativeButton());
|
|
1943
1943
|
}
|
|
1944
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onClick, (
|
|
1944
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onClick), (event) => {
|
|
1945
1945
|
if (mouseDownHandled) {
|
|
1946
1946
|
mouseDownHandled = false;
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
1949
1949
|
if (!openOnHover() || event.detail === 0) setSubmenuOpen(openOnHover() ? true : !open(), event, triggerPress);
|
|
1950
1950
|
});
|
|
1951
|
-
const onMouseDown = composeEventHandlers(() => untrack(() => disabled() ? preventButtonInteraction : void 0), () => internalProps.onMouseDown, (
|
|
1951
|
+
const onMouseDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventButtonInteraction : void 0)), liveEventHandler(() => internalProps.onMouseDown), (event) => {
|
|
1952
1952
|
if (!openOnHover() && event.button === 0) {
|
|
1953
1953
|
mouseDownHandled = true;
|
|
1954
1954
|
setSubmenuOpen(!open(), event, triggerPress);
|
|
1955
1955
|
}
|
|
1956
1956
|
});
|
|
1957
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0), () => internalProps.onKeyDown,
|
|
1958
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopButtonInteraction : void 0), () => internalProps.onKeyUp, (
|
|
1959
|
-
const onMouseMove = composeEventHandlers(() => internalProps.onMouseMove, () => item.onMouseMove);
|
|
1960
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp, () => item.onMouseUp);
|
|
1961
|
-
const onFocus = composeEventHandlers(() => internalProps.onFocus, () => item.onFocus);
|
|
1962
|
-
const onBlur = composeEventHandlers(() => internalProps.onBlur, () => item.onBlur);
|
|
1963
|
-
const onMouseEnter = composeEventHandlers(() => internalProps.onMouseEnter, () =>
|
|
1957
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledMenuItemActivation : void 0)), liveEventHandler(() => internalProps.onKeyDown), handleDismissKeyDown, handleKeyDown);
|
|
1958
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopButtonInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), (event) => item.onKeyUp(event, nativeButton()));
|
|
1959
|
+
const onMouseMove = composeEventHandlers(liveEventHandler(() => internalProps.onMouseMove), liveEventHandler(() => item.onMouseMove));
|
|
1960
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp), liveEventHandler(() => item.onMouseUp));
|
|
1961
|
+
const onFocus = composeEventHandlers(liveEventHandler(() => internalProps.onFocus), liveEventHandler(() => item.onFocus));
|
|
1962
|
+
const onBlur = composeEventHandlers(liveEventHandler(() => internalProps.onBlur), liveEventHandler(() => item.onBlur));
|
|
1963
|
+
const onMouseEnter = composeEventHandlers(liveEventHandler(() => internalProps.onMouseEnter), () => {
|
|
1964
1964
|
if (parentStore.highlightItemOnHover()) parentStore.setActiveElement(item.element());
|
|
1965
1965
|
});
|
|
1966
1966
|
function handleDismissKeyDown(event) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as imperativeAction } from "./internals/reasons.js";
|
|
2
2
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import { i as PopupTriggerMap } from "./PopupStore-
|
|
3
|
+
import { i as PopupTriggerMap } from "./PopupStore-evylvVnN.js";
|
|
4
4
|
import { isServer } from "@solidjs/web";
|
|
5
|
-
import { createEffect, createSignal } from "solid-js";
|
|
5
|
+
import { createEffect, createSignal, sharedConfig } from "solid-js";
|
|
6
6
|
//#region src/internals/overlay/PopupHandle.ts
|
|
7
7
|
var DetachedPopupStore = class {
|
|
8
8
|
context = { triggerElements: new PopupTriggerMap() };
|
|
@@ -100,12 +100,21 @@ var BasePopupHandle = class {
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
function createPopupHandleStore(handle) {
|
|
103
|
-
const [revision, setRevision] = createSignal(0, {
|
|
104
|
-
|
|
103
|
+
const [revision, setRevision] = createSignal(0, {
|
|
104
|
+
equals: false,
|
|
105
|
+
ownedWrite: true
|
|
106
|
+
});
|
|
107
|
+
let hydrationSnapshot = !isServer && sharedConfig.hydrating;
|
|
108
|
+
createEffect(() => handle(), (current) => {
|
|
109
|
+
const unsubscribe = current?.subscribeStore(() => setRevision((value) => value + 1));
|
|
110
|
+
hydrationSnapshot = false;
|
|
111
|
+
setRevision((value) => value + 1);
|
|
112
|
+
return unsubscribe;
|
|
113
|
+
});
|
|
105
114
|
return () => {
|
|
106
115
|
revision();
|
|
107
116
|
const current = handle();
|
|
108
|
-
return current ? isServer ? current.serverStore : current.store : void 0;
|
|
117
|
+
return current ? isServer || hydrationSnapshot ? current.serverStore : current.store : void 0;
|
|
109
118
|
};
|
|
110
119
|
}
|
|
111
120
|
function attachPopupHandle(handle, store) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { N as triggerPress, T as outsidePress, l as escapeKey, w as none } from "./internals/reasons.js";
|
|
2
2
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
3
3
|
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-CYq38H8J.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as isEventTargetWithin$1, d as isShadowRoot, h as ownerWindow, i as getEventTarget, l as isHTMLElement, m as ownerDocument, n as contains, o as isElement, r as containsWithPortals } from "./dom-D8_aB1yy.js";
|
|
5
5
|
import { l as createEventEmitter, o as getNodeChildren } from "./FloatingTree-z1JPD1dR.js";
|
|
6
6
|
import { t as createTransitionStatus } from "./createTransitionStatus-184v7j3-.js";
|
|
7
|
-
import { _ as ReactiveStore } from "./popupStateMapping-
|
|
7
|
+
import { _ as ReactiveStore } from "./popupStateMapping-VHqr6M4H.js";
|
|
8
8
|
import { createEffect, onCleanup, untrack } from "solid-js";
|
|
9
9
|
//#region src/internals/overlay/createDismiss.ts
|
|
10
|
+
function isEventTargetWithin(event, node) {
|
|
11
|
+
return isEventTargetWithin$1(event, node) || containsWithPortals(node, getEventTarget(event));
|
|
12
|
+
}
|
|
10
13
|
function normalizeBubbles(value) {
|
|
11
14
|
return {
|
|
12
15
|
escapeKey: typeof value === "boolean" ? value : value?.escapeKey ?? false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as runOnceAnimationsFinish } from "./runOnceAnimationsFinish-CYq38H8J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as createPopupAutoResize, t as calculateActivationDirection } from "./createPopupAutoResize-
|
|
4
|
-
import { escape, ssr, ssrAttribute, ssrGroup, ssrHydrationKey, ssrStyleProperty } from "@solidjs/web";
|
|
2
|
+
import { h as ownerWindow, m as ownerDocument } from "./dom-D8_aB1yy.js";
|
|
3
|
+
import { n as createPopupAutoResize, t as calculateActivationDirection } from "./createPopupAutoResize-Cg0-lLf4.js";
|
|
4
|
+
import { escape, scope, ssr, ssrAttribute, ssrGroup, ssrHydrationKey, ssrStyleProperty } from "@solidjs/web";
|
|
5
5
|
import { Show, createEffect, createSignal, onCleanup, untrack } from "solid-js";
|
|
6
6
|
//#region src/internals/overlay/adaptiveOrigin.ts
|
|
7
7
|
var adaptiveOrigin = {
|
|
@@ -55,17 +55,17 @@ var _tmpl$ = [
|
|
|
55
55
|
];
|
|
56
56
|
var _tmpl$2 = [
|
|
57
57
|
"<div",
|
|
58
|
-
" data-current",
|
|
59
|
-
">",
|
|
58
|
+
" data-current>",
|
|
60
59
|
"</div>"
|
|
61
60
|
];
|
|
62
61
|
var _tmpl$3 = [
|
|
63
62
|
"<div",
|
|
64
|
-
" data-current
|
|
63
|
+
" data-current",
|
|
64
|
+
">",
|
|
65
65
|
"</div>"
|
|
66
66
|
];
|
|
67
67
|
function PopupViewport(props) {
|
|
68
|
-
var _v$, _g
|
|
68
|
+
var _v$, _g$;
|
|
69
69
|
const signalOptions = { ownedWrite: true };
|
|
70
70
|
const [currentContainer, setCurrentContainer] = createSignal(null, signalOptions);
|
|
71
71
|
const [previousContainer, setPreviousContainer] = createSignal(null, signalOptions);
|
|
@@ -131,16 +131,21 @@ function PopupViewport(props) {
|
|
|
131
131
|
setShowStartingStyle(true);
|
|
132
132
|
cancelAnimationFrame(cleanupFrame);
|
|
133
133
|
cleanupFrame = requestAnimationFrame(() => {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
cleanupFrame = requestAnimationFrame(() => {
|
|
135
|
+
setShowStartingStyle(false);
|
|
136
|
+
const controller = new AbortController();
|
|
137
|
+
cleanupController = controller;
|
|
138
|
+
runOnceAnimationsFinish(state.current, () => {
|
|
139
|
+
setPreviousContent(null);
|
|
140
|
+
setPreviousDimensions(null);
|
|
141
|
+
captured = null;
|
|
142
|
+
}, controller.signal, { waitForStartingStyleRemoved: true });
|
|
143
|
+
});
|
|
142
144
|
});
|
|
143
|
-
return () =>
|
|
145
|
+
return () => {
|
|
146
|
+
cancelAnimationFrame(cleanupFrame);
|
|
147
|
+
cleanupController?.abort();
|
|
148
|
+
};
|
|
144
149
|
});
|
|
145
150
|
createEffect(() => ({
|
|
146
151
|
container: currentContainer(),
|
|
@@ -188,31 +193,36 @@ function PopupViewport(props) {
|
|
|
188
193
|
return previousContent();
|
|
189
194
|
},
|
|
190
195
|
get fallback() {
|
|
191
|
-
|
|
196
|
+
return Show({
|
|
192
197
|
keyed: true,
|
|
193
198
|
get when() {
|
|
194
199
|
return `${props.store.activeTriggerId() ?? "current"}-${contentKey()}`;
|
|
195
200
|
},
|
|
196
|
-
|
|
197
|
-
|
|
201
|
+
children: (_key) => {
|
|
202
|
+
var _v$4, _v$5;
|
|
203
|
+
return _v$4 = ssrHydrationKey(), _v$5 = scope(() => {
|
|
204
|
+
return escape(props.children);
|
|
205
|
+
}), ssr(_tmpl$2, _v$4, _v$5);
|
|
198
206
|
}
|
|
199
|
-
})
|
|
200
|
-
return ssr(_tmpl$3, _v$7, _v$8);
|
|
207
|
+
});
|
|
201
208
|
},
|
|
202
209
|
get children() {
|
|
203
210
|
return [(_v$ = ssrHydrationKey(), _g$ = ssrGroup(() => {
|
|
204
211
|
return [ssrStyleProperty("position:", "absolute") + ssrStyleProperty(";--popup-width:", previousDimensions() ? `${escape(previousDimensions().width, true)}px` : escape(void 0, true)) + ssrStyleProperty(";--popup-height:", previousDimensions() ? `${escape(previousDimensions().height, true)}px` : escape(void 0, true)), ssrAttribute("data-ending-style", showStartingStyle() ? escape(void 0, true) : "")];
|
|
205
|
-
}, 2), ssr(_tmpl$, _v$, _g$, _g$)), (
|
|
206
|
-
return ssrAttribute("data-starting-style", showStartingStyle() ? "" : escape(void 0, true));
|
|
207
|
-
}, _v$6 = escape(Show({
|
|
212
|
+
}, 2), ssr(_tmpl$, _v$, _g$, _g$)), Show({
|
|
208
213
|
keyed: true,
|
|
209
214
|
get when() {
|
|
210
215
|
return `${props.store.activeTriggerId() ?? "current"}-${contentKey()}`;
|
|
211
216
|
},
|
|
212
|
-
|
|
213
|
-
|
|
217
|
+
children: (_key) => {
|
|
218
|
+
var _v$6, _v$7, _v$8;
|
|
219
|
+
return _v$6 = ssrHydrationKey(), _v$7 = () => {
|
|
220
|
+
return ssrAttribute("data-starting-style", showStartingStyle() ? "" : escape(void 0, true));
|
|
221
|
+
}, _v$8 = scope(() => {
|
|
222
|
+
return escape(props.children);
|
|
223
|
+
}), ssr(_tmpl$3, _v$6, _v$7, _v$8);
|
|
214
224
|
}
|
|
215
|
-
})
|
|
225
|
+
})];
|
|
216
226
|
}
|
|
217
227
|
});
|
|
218
228
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as focusOut } from "./internals/reasons.js";
|
|
2
2
|
import { createChangeEventDetails } from "./internals/createBaseUIEventDetails.js";
|
|
3
|
-
import { n as contains } from "./dom-
|
|
4
|
-
import { d as getTabbableAfterElement, f as getTabbableBeforeElement, g as FocusGuard, p as isOutsideFocusEvent } from "./popupStateMapping-
|
|
3
|
+
import { n as contains } from "./dom-D8_aB1yy.js";
|
|
4
|
+
import { d as getTabbableAfterElement, f as getTabbableBeforeElement, g as FocusGuard, p as isOutsideFocusEvent } from "./popupStateMapping-VHqr6M4H.js";
|
|
5
5
|
import { t as setRef } from "./setRef-Bt70sW7c.js";
|
|
6
6
|
import { escape, memo } from "@solidjs/web";
|
|
7
7
|
import { createEffect, flush } from "solid-js";
|
|
@@ -6,7 +6,7 @@ import { n as resolveClass, t as resolveStyle } from "../resolveStyle-XCSFDHAL.j
|
|
|
6
6
|
import { n as createCollapsibleTransitionStatus, t as createCollapsiblePanel } from "../createCollapsiblePanel-B45kTe6v.js";
|
|
7
7
|
import { createChangeEventDetails } from "../internals/createBaseUIEventDetails.js";
|
|
8
8
|
import { transitionStatusMapping } from "../internals/stateAttributesMapping.js";
|
|
9
|
-
import { composeEventHandlers } from "../internals/composeEventHandlers.js";
|
|
9
|
+
import { composeEventHandlers, liveEventHandler } from "../internals/composeEventHandlers.js";
|
|
10
10
|
import { memo, mergeProps, ssrElement } from "@solidjs/web";
|
|
11
11
|
import { Show, createContext, createEffect, createMemo, createSignal, createUniqueId, flush, omit, onCleanup, untrack, useContext } from "solid-js";
|
|
12
12
|
//#region src/accordion/root/AccordionRootContext.ts
|
|
@@ -318,14 +318,14 @@ function AccordionTrigger(props) {
|
|
|
318
318
|
const styleValue = createMemo(() => resolveStyle(props.style, state()));
|
|
319
319
|
const stateAttributes = createMemo(() => getStateAttributesProps(state(), triggerStateAttributesMapping));
|
|
320
320
|
const ariaDisabled = createMemo(() => nativeButton() ? disabled() ? "true" : "false" : disabled() ? "true" : void 0);
|
|
321
|
-
const onClick = composeEventHandlers(() => untrack(() => disabled() ? preventInteraction : void 0), () => internalProps.onClick, (
|
|
321
|
+
const onClick = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventInteraction : void 0)), liveEventHandler(() => internalProps.onClick), (event) => {
|
|
322
322
|
context.requestOpenChange(!context.open(), event, triggerPress);
|
|
323
323
|
});
|
|
324
|
-
const onMouseDown = composeEventHandlers(() => untrack(() => disabled() ? stopInteraction : void 0), () => internalProps.onMouseDown);
|
|
325
|
-
const onMouseUp = composeEventHandlers(() => internalProps.onMouseUp);
|
|
326
|
-
const onPointerDown = composeEventHandlers(() => untrack(() => disabled() ? preventInteraction : void 0), () => internalProps.onPointerDown);
|
|
327
|
-
const onKeyDown = composeEventHandlers(() => untrack(() => disabled() ? preventDisabledKeyDown : void 0), () => internalProps.onKeyDown, () => untrack(() => nativeButton() ? void 0 : handleNonNativeKeyDown));
|
|
328
|
-
const onKeyUp = composeEventHandlers(() => untrack(() => disabled() ? stopInteraction : void 0), () => internalProps.onKeyUp, () => untrack(() => nativeButton() ? void 0 : handleNonNativeKeyUp));
|
|
324
|
+
const onMouseDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopInteraction : void 0)), liveEventHandler(() => internalProps.onMouseDown));
|
|
325
|
+
const onMouseUp = composeEventHandlers(liveEventHandler(() => internalProps.onMouseUp));
|
|
326
|
+
const onPointerDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventInteraction : void 0)), liveEventHandler(() => internalProps.onPointerDown));
|
|
327
|
+
const onKeyDown = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? preventDisabledKeyDown : void 0)), liveEventHandler(() => internalProps.onKeyDown), liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeKeyDown)));
|
|
328
|
+
const onKeyUp = composeEventHandlers(liveEventHandler(() => untrack(() => disabled() ? stopInteraction : void 0)), liveEventHandler(() => internalProps.onKeyUp), liveEventHandler(() => untrack(() => nativeButton() ? void 0 : handleNonNativeKeyUp)));
|
|
329
329
|
createEffect(() => registeredId(), (currentId) => {
|
|
330
330
|
context.setTriggerIdState((existingId) => currentId ?? (existingId === null ? void 0 : existingId));
|
|
331
331
|
return () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { a as DialogTitle, c as DialogDescription, i as DialogTrigger, l as DialogClose, m as renderDialogRoot, o as DialogPortal, r as DialogViewport, t as DialogHandle } from "../DialogHandle-
|
|
3
|
-
import { n as DialogBackdrop, t as DialogPopup } from "../DialogPopup-
|
|
2
|
+
import { a as DialogTitle, c as DialogDescription, i as DialogTrigger, l as DialogClose, m as renderDialogRoot, o as DialogPortal, r as DialogViewport, t as DialogHandle } from "../DialogHandle-BGIISmG7.js";
|
|
3
|
+
import { n as DialogBackdrop, t as DialogPopup } from "../DialogPopup-C2ZDGf42.js";
|
|
4
4
|
//#region src/alert-dialog/root/AlertDialogRoot.tsx
|
|
5
5
|
/** Groups all parts of the alert dialog without rendering an element. */
|
|
6
6
|
function AlertDialogRoot(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import "../internals/reasons.js";
|
|
3
|
-
import { A as getFilter, D as ComboboxTrigger, F as stringifyAsLabel, O as AriaCombobox, _ as ComboboxClear, a as ComboboxItem, c as ComboboxGroup, d as ComboboxPositioner, f as ComboboxBackdrop, g as ComboboxCollection, h as ComboboxList, i as ComboboxRow, k as useComboboxRootContext, l as ComboboxArrow, m as ComboboxStatus, n as ComboboxSeparator, p as ComboboxPortal, r as ComboboxEmpty, s as ComboboxGroupLabel, t as useFilteredItems, u as ComboboxPopup, v as ComboboxIcon, x as ComboboxInput, y as ComboboxInputGroup } from "../useFilteredItems-
|
|
4
|
-
import {
|
|
3
|
+
import { A as getFilter, D as ComboboxTrigger, F as stringifyAsLabel, O as AriaCombobox, _ as ComboboxClear, a as ComboboxItem, c as ComboboxGroup, d as ComboboxPositioner, f as ComboboxBackdrop, g as ComboboxCollection, h as ComboboxList, i as ComboboxRow, k as useComboboxRootContext, l as ComboboxArrow, m as ComboboxStatus, n as ComboboxSeparator, p as ComboboxPortal, r as ComboboxEmpty, s as ComboboxGroupLabel, t as useFilteredItems, u as ComboboxPopup, v as ComboboxIcon, x as ComboboxInput, y as ComboboxInputGroup } from "../useFilteredItems-BmhL0nf1.js";
|
|
4
|
+
import { t as isSolidAccessor } from "../isSolidAccessor-CZpzAH5l.js";
|
|
5
5
|
import { memo, mergeProps } from "@solidjs/web";
|
|
6
6
|
import { createEffect, createMemo, createSignal, omit, untrack } from "solid-js";
|
|
7
7
|
//#region src/autocomplete/root/AutocompleteRoot.tsx
|