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
|
@@ -5,42 +5,42 @@ import { A as r, a as i } from "./reasons-Co5CzjKq.js";
|
|
|
5
5
|
import { n as a, t as o } from "./resolveStyle-XcgAuaKR.js";
|
|
6
6
|
import { createChangeEventDetails as s } from "./internals/createBaseUIEventDetails.js";
|
|
7
7
|
import { TransitionStatusDataAttributes as c } from "./internals/stateAttributesMapping.js";
|
|
8
|
-
import { composeEventHandlers as l } from "./internals/composeEventHandlers.js";
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import { r as
|
|
12
|
-
import { t as
|
|
13
|
-
import { a as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { a as ee, i as
|
|
17
|
-
import { createComponent as B, getNextElement as
|
|
18
|
-
import { Show as
|
|
8
|
+
import { composeEventHandlers as l, liveEventHandler as u } from "./internals/composeEventHandlers.js";
|
|
9
|
+
import { h as d, i as f, l as p, m, n as h, o as g, t as _, u as v } from "./dom-lDdayFF_.js";
|
|
10
|
+
import { n as y } from "./PopupStore-BjRwcvbG.js";
|
|
11
|
+
import { r as b, t as x } from "./popupStateMapping-nhukB8NK.js";
|
|
12
|
+
import { t as S } from "./FocusManager-q7z7PMV1.js";
|
|
13
|
+
import { a as C, c as w, d as T, f as E, h as D, i as O, l as k, m as A, o as j, r as M, s as N, t as P } from "./DialogHandle-DluOK_7u.js";
|
|
14
|
+
import { n as F, t as I } from "./scrollable-BVaDUXng.js";
|
|
15
|
+
import { t as L } from "./platform-Bk5Q32mf.js";
|
|
16
|
+
import { a as ee, i as R, o as te, r as ne, s as z, t as re } from "./constants-ByOMFJAe.js";
|
|
17
|
+
import { createComponent as B, getNextElement as ie, mergeProps as ae, runHydrationEvents as V, spread as H, template as U } from "@solidjs/web";
|
|
18
|
+
import { Show as oe, createContext as se, createEffect as W, createMemo as G, createSignal as K, createUniqueId as ce, flush as le, merge as q, omit as ue, onCleanup as de, onSettled as fe, untrack as J, useContext as pe } from "solid-js";
|
|
19
19
|
//#region src/drawer/popup/DrawerPopupCssVars.ts
|
|
20
|
-
var
|
|
20
|
+
var Y = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.nestedDrawers = "--nested-drawers", e.height = "--drawer-height", e.frontmostHeight = "--drawer-frontmost-height", e.swipeMovementX = "--drawer-swipe-movement-x", e.swipeMovementY = "--drawer-swipe-movement-y", e.snapPointOffset = "--drawer-snap-point-offset", e.swipeStrength = "--drawer-swipe-strength", e;
|
|
22
|
-
}({}),
|
|
22
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
23
23
|
return e.swipeProgress = "--drawer-swipe-progress", e;
|
|
24
|
-
}({}),
|
|
25
|
-
function
|
|
26
|
-
let r =
|
|
24
|
+
}({}), me = /* @__PURE__ */ U("<div>");
|
|
25
|
+
function Z(e) {
|
|
26
|
+
let r = D(), i = e, s = ue(e, "render", "class", "forceRender", "ref", "style"), c = G(() => ({
|
|
27
27
|
open: r.store.open(),
|
|
28
28
|
transitionStatus: r.presence.transitionStatus()
|
|
29
29
|
})), l = t(e, () => c(), (e) => (() => {
|
|
30
|
-
var t =
|
|
30
|
+
var t = ie(me);
|
|
31
31
|
return H(t, e, !1), V(), t;
|
|
32
|
-
})()), u = G(() => a(e.class, c())), d = G(() =>
|
|
32
|
+
})()), u = G(() => a(e.class, c())), d = G(() => E({
|
|
33
33
|
"pointer-events": r.store.open() ? void 0 : "none",
|
|
34
34
|
"user-select": "none",
|
|
35
35
|
"-webkit-user-select": "none",
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
}, o(e.style, c()))), f = G(() => n(c(),
|
|
36
|
+
[X.swipeProgress]: "0",
|
|
37
|
+
[Y.swipeStrength]: "1"
|
|
38
|
+
}, o(e.style, c()))), f = G(() => n(c(), T)), p = G(() => !!i.forceRender || !r.nested);
|
|
39
39
|
function m() {
|
|
40
40
|
let e = null;
|
|
41
|
-
return
|
|
41
|
+
return de(() => {
|
|
42
42
|
r.backdropElement() === e && r.setBackdropElement(null);
|
|
43
|
-
}), B(l,
|
|
43
|
+
}), B(l, ae({
|
|
44
44
|
ref: [((t) => {
|
|
45
45
|
e = t, r.setBackdropElement(t);
|
|
46
46
|
}), i.ref],
|
|
@@ -56,7 +56,7 @@ function pe(e) {
|
|
|
56
56
|
}
|
|
57
57
|
}, f, s));
|
|
58
58
|
}
|
|
59
|
-
return B(
|
|
59
|
+
return B(oe, {
|
|
60
60
|
get when() {
|
|
61
61
|
return p();
|
|
62
62
|
},
|
|
@@ -67,14 +67,14 @@ function pe(e) {
|
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/drawer/content/DrawerContentDataAttributes.ts
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
let n = e, r =
|
|
74
|
-
var t =
|
|
70
|
+
var he = "data-drawer-content", ge = /* @__PURE__ */ U("<div>");
|
|
71
|
+
function _e(e) {
|
|
72
|
+
D();
|
|
73
|
+
let n = e, r = ue(e, "render", "class", "ref", "style"), i = {}, s = t(e, () => i, (e) => (() => {
|
|
74
|
+
var t = ie(ge);
|
|
75
75
|
return H(t, e, !1), V(), t;
|
|
76
76
|
})()), c = G(() => a(e.class, i)), l = G(() => o(e.style, i));
|
|
77
|
-
return B(s,
|
|
77
|
+
return B(s, ae({ ref: [n.ref] }, { [he]: "" }, {
|
|
78
78
|
get class() {
|
|
79
79
|
return c();
|
|
80
80
|
},
|
|
@@ -85,12 +85,12 @@ function ge(e) {
|
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/drawer/provider/DrawerProviderContext.ts
|
|
88
|
-
var
|
|
89
|
-
function ve() {
|
|
90
|
-
let e = Y(Q);
|
|
91
|
-
return e === _e ? void 0 : e;
|
|
92
|
-
}
|
|
88
|
+
var ve = Symbol("DrawerProviderContext"), Q = se(ve);
|
|
93
89
|
function ye() {
|
|
90
|
+
let e = pe(Q);
|
|
91
|
+
return e === ve ? void 0 : e;
|
|
92
|
+
}
|
|
93
|
+
function be() {
|
|
94
94
|
let e = {
|
|
95
95
|
swipeProgress: 0,
|
|
96
96
|
frontmostHeight: 0
|
|
@@ -117,13 +117,13 @@ function ye() {
|
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/drawer/indent-background/DrawerIndentBackground.tsx
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
let r =
|
|
123
|
-
var t =
|
|
120
|
+
var xe = /* @__PURE__ */ U("<div>"), Se = { "data-active": "" }, Ce = { "data-inactive": "" }, we = { active: (e) => e ? Se : Ce };
|
|
121
|
+
function Te(e) {
|
|
122
|
+
let r = ye(), i = e, s = ue(e, "render", "class", "ref", "style"), c = () => ({ active: r?.active() ?? !1 }), l = () => a(e.class, c()), u = () => o(e.style, c()), d = () => n(c(), we), f = t(e, c, (e) => (() => {
|
|
123
|
+
var t = ie(xe);
|
|
124
124
|
return H(t, e, !1), V(), t;
|
|
125
125
|
})());
|
|
126
|
-
return B(f,
|
|
126
|
+
return B(f, ae({
|
|
127
127
|
ref: [i.ref],
|
|
128
128
|
get class() {
|
|
129
129
|
return l();
|
|
@@ -135,14 +135,14 @@ function we(e) {
|
|
|
135
135
|
}
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/drawer/indent/DrawerIndent.tsx
|
|
138
|
-
var
|
|
139
|
-
function
|
|
140
|
-
let r =
|
|
138
|
+
var Ee = /* @__PURE__ */ U("<div>");
|
|
139
|
+
function De(e) {
|
|
140
|
+
let r = ye(), i = e, s = ue(e, "render", "class", "ref", "style"), c = () => ({ active: r?.active() ?? !1 }), l = () => a(e.class, c()), u = () => E({ [X.swipeProgress]: "0" }, o(e.style, c())), d = () => n(c(), we), f = null, p = [((e) => {
|
|
141
141
|
f = e;
|
|
142
142
|
}), i.ref], m = t(e, c, (e) => (() => {
|
|
143
|
-
var t =
|
|
143
|
+
var t = ie(Ee);
|
|
144
144
|
return H(t, e, !1), V(), t;
|
|
145
|
-
})()), h = B(m,
|
|
145
|
+
})()), h = B(m, ae({
|
|
146
146
|
ref: p,
|
|
147
147
|
get class() {
|
|
148
148
|
return l();
|
|
@@ -156,21 +156,21 @@ function Ee(e) {
|
|
|
156
156
|
if (!t || !e) return;
|
|
157
157
|
function n() {
|
|
158
158
|
let { swipeProgress: n, frontmostHeight: r } = e.getSnapshot();
|
|
159
|
-
t.style.setProperty(
|
|
159
|
+
t.style.setProperty(X.swipeProgress, n <= 0 ? "0" : `${n}`), r <= 0 ? t.style.removeProperty(Y.height) : t.style.setProperty(Y.height, `${r}px`);
|
|
160
160
|
}
|
|
161
161
|
n();
|
|
162
162
|
let r = e.subscribe(n);
|
|
163
163
|
return () => {
|
|
164
|
-
r(), t.style.setProperty(
|
|
164
|
+
r(), t.style.setProperty(X.swipeProgress, "0"), t.style.removeProperty(Y.height);
|
|
165
165
|
};
|
|
166
166
|
}), h;
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
169
|
//#region src/drawer/root/DrawerRootContext.ts
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
let t =
|
|
173
|
-
if (t ===
|
|
170
|
+
var Oe = Symbol("DrawerRootContext"), ke = se(Oe);
|
|
171
|
+
function Ae(e = !1) {
|
|
172
|
+
let t = pe(ke);
|
|
173
|
+
if (t === Oe) {
|
|
174
174
|
if (e) return;
|
|
175
175
|
throw Error("Base UI: DrawerRootContext is missing. Drawer parts must be placed within <Drawer.Root>.");
|
|
176
176
|
}
|
|
@@ -178,11 +178,11 @@ function ke(e = !1) {
|
|
|
178
178
|
}
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region src/drawer/root/createDrawerSnapPoints.ts
|
|
181
|
-
function
|
|
181
|
+
function je(e, t) {
|
|
182
182
|
let n = e + t;
|
|
183
183
|
return n >= 0 ? t : -Math.sqrt(-n) - e;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Me(e, t, n) {
|
|
186
186
|
if (!Number.isFinite(t) || t <= 0) return null;
|
|
187
187
|
if (typeof e == "number") return Number.isFinite(e) ? e <= 1 ? z(e, 0, 1) * t : e : null;
|
|
188
188
|
let r = e.trim();
|
|
@@ -196,7 +196,7 @@ function je(e, t, n) {
|
|
|
196
196
|
}
|
|
197
197
|
return null;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Ne(e, t) {
|
|
200
200
|
let n = -1, r = Infinity;
|
|
201
201
|
for (let i = 0; i < e.length; i += 1) {
|
|
202
202
|
let a = Math.abs(e[i] - t);
|
|
@@ -204,13 +204,13 @@ function Me(e, t) {
|
|
|
204
204
|
}
|
|
205
205
|
return n;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
let e =
|
|
207
|
+
function Pe() {
|
|
208
|
+
let e = D(), t = Ae(), [n, r] = K(0, { ownedWrite: !0 }), [i, a] = K(16, { ownedWrite: !0 });
|
|
209
209
|
W(() => e.viewportElement(), (e) => {
|
|
210
210
|
function t() {
|
|
211
|
-
let t =
|
|
211
|
+
let t = m(e).documentElement;
|
|
212
212
|
r(e ? e.offsetHeight : t.clientHeight);
|
|
213
|
-
let n = Number.parseFloat(
|
|
213
|
+
let n = Number.parseFloat(d(t).getComputedStyle(t).fontSize);
|
|
214
214
|
Number.isFinite(n) && a(n);
|
|
215
215
|
}
|
|
216
216
|
if (t(), !e || typeof ResizeObserver != "function") return;
|
|
@@ -221,7 +221,7 @@ function Ne() {
|
|
|
221
221
|
let e = t.snapPoints(), r = n(), a = t.popupHeight();
|
|
222
222
|
if (!e || e.length === 0 || r <= 0 || a <= 0) return [];
|
|
223
223
|
let o = i(), s = Math.min(a, r), c = e.map((e) => {
|
|
224
|
-
let t =
|
|
224
|
+
let t = Me(e, r, o);
|
|
225
225
|
if (t === null) return null;
|
|
226
226
|
let n = z(t, 0, s);
|
|
227
227
|
return {
|
|
@@ -242,10 +242,10 @@ function Ne() {
|
|
|
242
242
|
if (e === null) return;
|
|
243
243
|
let r = o(), a = r.find((t) => Object.is(t.value, e));
|
|
244
244
|
if (a) return a;
|
|
245
|
-
let s = n(), c = Math.min(t.popupHeight(), s), l =
|
|
245
|
+
let s = n(), c = Math.min(t.popupHeight(), s), l = Me(e, s, i());
|
|
246
246
|
if (l === null) return;
|
|
247
247
|
let u = z(l, 0, c);
|
|
248
|
-
return r[
|
|
248
|
+
return r[Ne(r.map((e) => e.height), u)];
|
|
249
249
|
});
|
|
250
250
|
return {
|
|
251
251
|
snapPoints: t.snapPoints,
|
|
@@ -259,30 +259,30 @@ function Ne() {
|
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/drawer/viewport/DrawerViewportContext.ts
|
|
262
|
-
var
|
|
263
|
-
function
|
|
264
|
-
let e =
|
|
265
|
-
return e ===
|
|
262
|
+
var Fe = Symbol("DrawerViewportContext"), Ie = se(Fe);
|
|
263
|
+
function Le() {
|
|
264
|
+
let e = pe(Ie);
|
|
265
|
+
return e === Fe ? void 0 : e;
|
|
266
266
|
}
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/drawer/popup/DrawerPopupDataAttributes.ts
|
|
269
269
|
var $ = /* @__PURE__ */ function(e) {
|
|
270
|
-
return e[e.open =
|
|
271
|
-
}({}),
|
|
270
|
+
return e[e.open = x.open] = "open", e[e.closed = x.closed] = "closed", e[e.startingStyle = x.startingStyle] = "startingStyle", e[e.endingStyle = x.endingStyle] = "endingStyle", e.expanded = "data-expanded", e.nestedDrawerOpen = "data-nested-drawer-open", e.nestedDrawerSwiping = "data-nested-drawer-swiping", e.swipeDismiss = "data-swipe-dismiss", e.swipeDirection = "data-swipe-direction", e.swiping = "data-swiping", e;
|
|
271
|
+
}({}), Re = /* @__PURE__ */ U("<div>"), ze = /* @__PURE__ */ new Set([
|
|
272
272
|
"ArrowUp",
|
|
273
273
|
"ArrowDown",
|
|
274
274
|
"ArrowLeft",
|
|
275
275
|
"ArrowRight",
|
|
276
276
|
"Home",
|
|
277
277
|
"End"
|
|
278
|
-
]),
|
|
279
|
-
function
|
|
280
|
-
if (!
|
|
278
|
+
]), Be = !1;
|
|
279
|
+
function Ve() {
|
|
280
|
+
if (!Be) {
|
|
281
281
|
if (typeof CSS < "u" && "registerProperty" in CSS) {
|
|
282
282
|
for (let e of [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
Y.swipeMovementX,
|
|
284
|
+
Y.swipeMovementY,
|
|
285
|
+
Y.snapPointOffset
|
|
286
286
|
]) try {
|
|
287
287
|
CSS.registerProperty({
|
|
288
288
|
name: e,
|
|
@@ -292,10 +292,10 @@ function Be() {
|
|
|
292
292
|
});
|
|
293
293
|
} catch {}
|
|
294
294
|
for (let { name: e, initialValue: t } of [{
|
|
295
|
-
name:
|
|
295
|
+
name: X.swipeProgress,
|
|
296
296
|
initialValue: "0"
|
|
297
297
|
}, {
|
|
298
|
-
name:
|
|
298
|
+
name: Y.swipeStrength,
|
|
299
299
|
initialValue: "1"
|
|
300
300
|
}]) try {
|
|
301
301
|
CSS.registerProperty({
|
|
@@ -306,117 +306,118 @@ function Be() {
|
|
|
306
306
|
});
|
|
307
307
|
} catch {}
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
Be = !0;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
...
|
|
314
|
-
expanded: (e) => e ?
|
|
315
|
-
nestedDrawerOpen: (e) => e ?
|
|
316
|
-
nestedDrawerSwiping: (e) => e ?
|
|
312
|
+
var He = { [$.expanded]: "" }, Ue = { [$.nestedDrawerOpen]: "" }, We = { [$.nestedDrawerSwiping]: "" }, Ge = { [$.swiping]: "" }, Ke = {
|
|
313
|
+
...b,
|
|
314
|
+
expanded: (e) => e ? He : null,
|
|
315
|
+
nestedDrawerOpen: (e) => e ? Ue : null,
|
|
316
|
+
nestedDrawerSwiping: (e) => e ? We : null,
|
|
317
317
|
swipeDirection: (e) => ({ [$.swipeDirection]: e }),
|
|
318
|
-
swiping: (e) => e ?
|
|
318
|
+
swiping: (e) => e ? Ge : null
|
|
319
319
|
};
|
|
320
|
-
function
|
|
321
|
-
|
|
322
|
-
let r =
|
|
323
|
-
function
|
|
324
|
-
if (!
|
|
325
|
-
let e =
|
|
326
|
-
if (!(
|
|
327
|
-
if (
|
|
328
|
-
i.onPopupHeightChange(
|
|
320
|
+
function qe(e) {
|
|
321
|
+
N();
|
|
322
|
+
let r = D(), i = Ae(), s = Le(), c = Pe(), d = e, f = ue(e, "render", "class", "finalFocus", "id", "initialFocus", "onKeyDown", "ref", "style"), p = G(() => r.nestedOpenDrawerCount() > 0), m = G(() => s?.swiping() ?? !1), h = null, g = 0;
|
|
323
|
+
function _() {
|
|
324
|
+
if (!h) return;
|
|
325
|
+
let e = h.offsetHeight, t = J(i.frontmostHeight);
|
|
326
|
+
if (!(g > 0 && t > g && e > g)) {
|
|
327
|
+
if (g > 0 && J(i.hasNestedDrawer)) {
|
|
328
|
+
i.onPopupHeightChange(g);
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
|
-
e !==
|
|
331
|
+
e !== g && (g = e, i.onPopupHeightChange(e));
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
+
let v = G(() => r.store.track().popupElement), y = G(() => r.store.open());
|
|
334
335
|
W(() => ({
|
|
335
336
|
mounted: r.presence.mounted(),
|
|
336
|
-
nestedDrawerOpen:
|
|
337
|
-
element:
|
|
337
|
+
nestedDrawerOpen: p(),
|
|
338
|
+
element: v()
|
|
338
339
|
}), (e) => {
|
|
339
340
|
if (!e.mounted) {
|
|
340
|
-
|
|
341
|
+
g = 0, i.onPopupHeightChange(0);
|
|
341
342
|
return;
|
|
342
343
|
}
|
|
343
|
-
if (!e.element || (
|
|
344
|
-
let t = new ResizeObserver(
|
|
344
|
+
if (!e.element || (Ve(), _(), typeof ResizeObserver != "function")) return;
|
|
345
|
+
let t = new ResizeObserver(_);
|
|
345
346
|
return t.observe(e.element), () => t.disconnect();
|
|
346
|
-
}), W(
|
|
347
|
+
}), W(v, (e) => {
|
|
347
348
|
function t() {
|
|
348
349
|
if (!e) return;
|
|
349
350
|
let t = i.nestedSwipeProgressStore.getSnapshot();
|
|
350
|
-
e.style.setProperty(
|
|
351
|
+
e.style.setProperty(X.swipeProgress, t > 0 ? `${t}` : "0");
|
|
351
352
|
}
|
|
352
353
|
t();
|
|
353
354
|
let n = i.nestedSwipeProgressStore.subscribe(t);
|
|
354
355
|
return () => {
|
|
355
|
-
n(), e?.style.setProperty(
|
|
356
|
+
n(), e?.style.setProperty(X.swipeProgress, "0");
|
|
356
357
|
};
|
|
357
358
|
}), W(() => ({
|
|
358
|
-
open:
|
|
359
|
+
open: y(),
|
|
359
360
|
frontmostHeight: i.frontmostHeight()
|
|
360
361
|
}), (e) => {
|
|
361
362
|
if (e.open) return i.notifyParentFrontmostHeight?.(e.frontmostHeight), () => i.notifyParentFrontmostHeight?.(0);
|
|
362
363
|
}), W(() => ({
|
|
363
|
-
open:
|
|
364
|
+
open: y(),
|
|
364
365
|
transitionStatus: r.presence.transitionStatus()
|
|
365
366
|
}), (e) => {
|
|
366
367
|
if (i.notifyParentHasNestedDrawer) return i.notifyParentHasNestedDrawer(e.open || e.transitionStatus === "ending"), () => i.notifyParentHasNestedDrawer?.(!1);
|
|
367
368
|
});
|
|
368
|
-
let
|
|
369
|
+
let b = G(() => ({
|
|
369
370
|
open: r.store.open(),
|
|
370
371
|
transitionStatus: r.presence.transitionStatus(),
|
|
371
372
|
expanded: i.activeSnapPoint() === 1,
|
|
372
373
|
nested: r.nested,
|
|
373
|
-
nestedDrawerOpen:
|
|
374
|
+
nestedDrawerOpen: p(),
|
|
374
375
|
nestedDrawerSwiping: i.nestedSwiping(),
|
|
375
376
|
swipeDirection: i.swipeDirection(),
|
|
376
|
-
swiping:
|
|
377
|
-
})),
|
|
378
|
-
var t =
|
|
377
|
+
swiping: m()
|
|
378
|
+
})), x = t(e, () => b(), (e) => (() => {
|
|
379
|
+
var t = ie(Re);
|
|
379
380
|
return H(t, e, !1), V(), t;
|
|
380
|
-
})()),
|
|
381
|
+
})()), C = G(() => a(e.class, b())), w = G(() => n(b(), Ke)), T = G(() => {
|
|
381
382
|
let e = c.snapPoints(), t = i.swipeDirection(), n = e && e.length > 0 && (t === "down" || t === "up"), r = c.activeSnapPointOffset();
|
|
382
383
|
return !n || r === null ? null : t === "up" ? -r : r;
|
|
383
|
-
}),
|
|
384
|
+
}), O = G(() => {
|
|
384
385
|
let e = s ? s.getDragStyles() : {}, t = c.snapPoints(), n = i.swipeDirection();
|
|
385
386
|
if (!(t && t.length > 0 && (n === "down" || n === "up")) || n !== "down") return e;
|
|
386
|
-
let r = Number.parseFloat(String(e[
|
|
387
|
-
return
|
|
387
|
+
let r = Number.parseFloat(String(e[Y.swipeMovementY]));
|
|
388
|
+
return m() && Number.isFinite(r) ? {
|
|
388
389
|
...e,
|
|
389
390
|
transform: void 0,
|
|
390
|
-
[
|
|
391
|
+
[Y.swipeMovementY]: `${je(c.activeSnapPointOffset() ?? 0, r)}px`
|
|
391
392
|
} : {
|
|
392
393
|
...e,
|
|
393
394
|
transform: void 0
|
|
394
395
|
};
|
|
395
|
-
}),
|
|
396
|
-
let t = i.frontmostHeight(), n = !i.hasNestedDrawer() && r.presence.transitionStatus() !== "ending", a = i.popupHeight(), c = s?.swipeStrength() ?? null, l =
|
|
397
|
-
return
|
|
398
|
-
...
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
402
|
-
[
|
|
403
|
-
[
|
|
404
|
-
[
|
|
405
|
-
}, o(e.style,
|
|
406
|
-
}),
|
|
407
|
-
|
|
396
|
+
}), k = G(() => {
|
|
397
|
+
let t = i.frontmostHeight(), n = !i.hasNestedDrawer() && r.presence.transitionStatus() !== "ending", a = i.popupHeight(), c = s?.swipeStrength() ?? null, l = T();
|
|
398
|
+
return E({
|
|
399
|
+
...O(),
|
|
400
|
+
[X.swipeProgress]: "0",
|
|
401
|
+
[Y.nestedDrawers]: r.nestedOpenDrawerCount(),
|
|
402
|
+
[Y.height]: a && !n ? `${a}px` : void 0,
|
|
403
|
+
[Y.snapPointOffset]: typeof l == "number" ? `${l}px` : "0px",
|
|
404
|
+
[Y.frontmostHeight]: t ? `${t}px` : void 0,
|
|
405
|
+
[Y.swipeStrength]: typeof c == "number" && Number.isFinite(c) && c > 0 ? `${c}` : "1"
|
|
406
|
+
}, o(e.style, b()));
|
|
407
|
+
}), A = G(() => d.id ?? r.store.context.floatingId), j = G(() => d.initialFocus ?? (() => r.store.state.popupElement)), M = l(u(() => d.onKeyDown), (e) => {
|
|
408
|
+
ze.has(e.key) && e.stopPropagation();
|
|
408
409
|
});
|
|
409
|
-
W(() =>
|
|
410
|
+
W(() => A(), (e) => {
|
|
410
411
|
r.store.setPopupId(e);
|
|
411
|
-
}),
|
|
412
|
-
r.store.state.popupElement ===
|
|
412
|
+
}), de(() => {
|
|
413
|
+
r.store.state.popupElement === h && r.store.setPopupElement(null);
|
|
413
414
|
});
|
|
414
|
-
let
|
|
415
|
+
let P = B(x, ae({
|
|
415
416
|
ref: [((e) => {
|
|
416
|
-
|
|
417
|
-
}),
|
|
417
|
+
h = e, r.store.setPopupElement(e);
|
|
418
|
+
}), d.ref],
|
|
418
419
|
get id() {
|
|
419
|
-
return
|
|
420
|
+
return A();
|
|
420
421
|
},
|
|
421
422
|
get role() {
|
|
422
423
|
return r.role;
|
|
@@ -433,14 +434,14 @@ function Ke(e) {
|
|
|
433
434
|
return r.descriptionId();
|
|
434
435
|
},
|
|
435
436
|
get class() {
|
|
436
|
-
return
|
|
437
|
+
return C();
|
|
437
438
|
},
|
|
438
439
|
get style() {
|
|
439
|
-
return
|
|
440
|
+
return k();
|
|
440
441
|
},
|
|
441
|
-
onKeyDown:
|
|
442
|
-
},
|
|
443
|
-
return B(
|
|
442
|
+
onKeyDown: M
|
|
443
|
+
}, w, f));
|
|
444
|
+
return B(S, {
|
|
444
445
|
get context() {
|
|
445
446
|
return r.store.context.floatingRoot;
|
|
446
447
|
},
|
|
@@ -454,10 +455,10 @@ function Ke(e) {
|
|
|
454
455
|
return !r.disablePointerDismissal();
|
|
455
456
|
},
|
|
456
457
|
get initialFocus() {
|
|
457
|
-
return
|
|
458
|
+
return j();
|
|
458
459
|
},
|
|
459
460
|
get returnFocus() {
|
|
460
|
-
return
|
|
461
|
+
return d.finalFocus;
|
|
461
462
|
},
|
|
462
463
|
get modal() {
|
|
463
464
|
return r.modal() !== !1;
|
|
@@ -466,16 +467,16 @@ function Ke(e) {
|
|
|
466
467
|
get openInteractionType() {
|
|
467
468
|
return r.store.openMethod();
|
|
468
469
|
},
|
|
469
|
-
children:
|
|
470
|
+
children: P
|
|
470
471
|
});
|
|
471
472
|
}
|
|
472
473
|
//#endregion
|
|
473
474
|
//#region src/drawer/provider/DrawerProvider.tsx
|
|
474
|
-
function
|
|
475
|
+
function Je(e) {
|
|
475
476
|
let [t, n] = K(0, {
|
|
476
477
|
equals: !1,
|
|
477
478
|
ownedWrite: !0
|
|
478
|
-
}), r = /* @__PURE__ */ new Set(), i =
|
|
479
|
+
}), r = /* @__PURE__ */ new Set(), i = be(), a = () => (t(), r.size > 0);
|
|
479
480
|
function o(e, t) {
|
|
480
481
|
r.has(e) !== t && (t ? r.add(e) : r.delete(e), n((e) => e + 1));
|
|
481
482
|
}
|
|
@@ -493,7 +494,7 @@ function qe(e) {
|
|
|
493
494
|
}
|
|
494
495
|
//#endregion
|
|
495
496
|
//#region src/drawer/root/DrawerRoot.tsx
|
|
496
|
-
function
|
|
497
|
+
function Ye() {
|
|
497
498
|
let e = 0, t = /* @__PURE__ */ new Set();
|
|
498
499
|
return {
|
|
499
500
|
getSnapshot: () => e,
|
|
@@ -510,8 +511,8 @@ function Je() {
|
|
|
510
511
|
}
|
|
511
512
|
};
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
-
let t =
|
|
514
|
+
function Xe(e) {
|
|
515
|
+
let t = Ae(!0), [n, r] = K(0, { ownedWrite: !0 }), [i, a] = K(0, { ownedWrite: !0 }), [o, c] = K(!1, { ownedWrite: !0 }), [l, u] = K(!1, { ownedWrite: !0 }), d = Ye(), f = () => e.snapPoints, p = () => e.defaultSnapPoint === void 0 ? f()?.[0] ?? null : e.defaultSnapPoint, m = J(() => e.snapPoint !== void 0), [h, g] = K(J(p), { ownedWrite: !0 }), _ = () => m ? e.snapPoint ?? null : h(), v = !1;
|
|
515
516
|
function y(t, n) {
|
|
516
517
|
let r = n ?? s("none");
|
|
517
518
|
e.onSnapPointChange?.(t, r), !r.isCanceled && g(() => t);
|
|
@@ -568,17 +569,17 @@ function Ye(e) {
|
|
|
568
569
|
notifyParentHasNestedDrawer: t ? (e) => t.onNestedDrawerPresenceChange(e) : void 0
|
|
569
570
|
}, D = q(e, { onOpenChange: T });
|
|
570
571
|
function O() {
|
|
571
|
-
return
|
|
572
|
+
return A("drawer", D, { extraContent: () => B(Ze, {}) });
|
|
572
573
|
}
|
|
573
|
-
return B(
|
|
574
|
+
return B(ke, {
|
|
574
575
|
value: E,
|
|
575
576
|
get children() {
|
|
576
577
|
return B(O, {});
|
|
577
578
|
}
|
|
578
579
|
});
|
|
579
580
|
}
|
|
580
|
-
function
|
|
581
|
-
let e =
|
|
581
|
+
function Ze() {
|
|
582
|
+
let e = ye(), t = D(), n = t.store, r = {};
|
|
582
583
|
return W(() => n.open(), (t) => {
|
|
583
584
|
e?.setDrawerOpen(r, t);
|
|
584
585
|
}), W(() => e, (e) => () => e?.removeDrawer(r)), W(() => ({
|
|
@@ -586,8 +587,8 @@ function Xe() {
|
|
|
586
587
|
topmost: t.nestedOpenDialogCount() === 0,
|
|
587
588
|
popupElement: n.track().popupElement
|
|
588
589
|
}), (e) => {
|
|
589
|
-
if (!e.open || !e.topmost || !
|
|
590
|
-
let t =
|
|
590
|
+
if (!e.open || !e.topmost || !L()) return;
|
|
591
|
+
let t = d(e.popupElement).CloseWatcher;
|
|
591
592
|
if (!t) return;
|
|
592
593
|
function r(e) {
|
|
593
594
|
n.open() && n.setOpen(!1, s(i, e));
|
|
@@ -600,220 +601,220 @@ function Xe() {
|
|
|
600
601
|
}
|
|
601
602
|
//#endregion
|
|
602
603
|
//#region src/drawer/swipe-area/DrawerSwipeAreaDataAttributes.ts
|
|
603
|
-
var
|
|
604
|
-
return e[e.open =
|
|
605
|
-
}({}),
|
|
606
|
-
open: (e) => e ?
|
|
607
|
-
swiping: (e) => e ?
|
|
608
|
-
swipeDirection: (e) => ({ [
|
|
609
|
-
disabled: (e) => e ?
|
|
610
|
-
},
|
|
604
|
+
var Qe = /* @__PURE__ */ function(e) {
|
|
605
|
+
return e[e.open = x.open] = "open", e[e.closed = x.closed] = "closed", e.disabled = "data-disabled", e.swipeDirection = "data-swipe-direction", e.swiping = "data-swiping", e;
|
|
606
|
+
}({}), $e = /* @__PURE__ */ U("<div>"), et = .5, tt = 1, nt = .1, rt = 40, it = { [Qe.open]: "" }, at = { [Qe.closed]: "" }, ot = { [Qe.swiping]: "" }, st = { [Qe.disabled]: "" }, ct = {
|
|
607
|
+
open: (e) => e ? it : at,
|
|
608
|
+
swiping: (e) => e ? ot : null,
|
|
609
|
+
swipeDirection: (e) => ({ [Qe.swipeDirection]: e }),
|
|
610
|
+
disabled: (e) => e ? st : null
|
|
611
|
+
}, lt = {
|
|
611
612
|
up: "down",
|
|
612
613
|
down: "up",
|
|
613
614
|
left: "right",
|
|
614
615
|
right: "left"
|
|
615
616
|
};
|
|
616
|
-
function
|
|
617
|
+
function ut(e) {
|
|
617
618
|
return e === "left" || e === "right" ? "pan-y" : "pan-x";
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
+
function dt(e) {
|
|
620
621
|
return e.mozInputSource === 0 ? e.isTrusted : e.detail === 0 && !e.pointerType;
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
-
let i =
|
|
623
|
+
function ft(e) {
|
|
624
|
+
let i = D(), c = i.store, d = Ae(), f = ye(), p = e, h = ue(e, "render", "class", "disabled", "id", "onPointerCancel", "onPointerDown", "onPointerMove", "onPointerUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "ref", "style", "swipeDirection"), g = `base-ui-${ce()}`, _ = G(() => p.id || g), v = G(() => p.disabled ?? !1), [b, x] = K(null, { ownedWrite: !0 }), [S, C] = K(!1, { ownedWrite: !0 }), w = null, T = !1, O = {
|
|
624
625
|
x: 0,
|
|
625
626
|
y: 0
|
|
626
|
-
},
|
|
627
|
-
|
|
627
|
+
}, k = null, A = !1, j = null, M = null, N = null, P = null, F = G(() => p.swipeDirection ?? lt[d.swipeDirection()]), I = G(() => lt[F()]), L = G(() => !v() && (!c.open() || S())), [te, z] = K(!1, { ownedWrite: !0 });
|
|
628
|
+
fe(() => {
|
|
628
629
|
let e = !1;
|
|
629
630
|
return queueMicrotask(() => {
|
|
630
631
|
e || z(!0);
|
|
631
632
|
}), () => {
|
|
632
633
|
e = !0;
|
|
633
634
|
};
|
|
634
|
-
}),
|
|
635
|
-
function
|
|
636
|
-
|
|
635
|
+
}), y(() => c, _, () => te() ? b() : null);
|
|
636
|
+
function re() {
|
|
637
|
+
O.x = 0, O.y = 0;
|
|
637
638
|
}
|
|
638
639
|
function U() {
|
|
639
|
-
|
|
640
|
+
P?.(), i.outsidePressEnabled.current = !1;
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
-
|
|
643
|
-
let e =
|
|
642
|
+
function oe() {
|
|
643
|
+
P?.();
|
|
644
|
+
let e = m(b());
|
|
644
645
|
function t(n) {
|
|
645
|
-
n?.type === "click" && n.detail !== 0 && !
|
|
646
|
+
n?.type === "click" && n.detail !== 0 && !dt(n) || (P = null, e.removeEventListener("pointerdown", t, !0), e.removeEventListener("click", t, !0), i.outsidePressEnabled.current = !0);
|
|
646
647
|
}
|
|
647
|
-
|
|
648
|
+
P = t, e.addEventListener("pointerdown", t, !0), e.addEventListener("click", t, !0);
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
-
let t =
|
|
650
|
+
function se(e) {
|
|
651
|
+
let t = I(), n = t === "left" || t === "right" ? e.offsetWidth : e.offsetHeight;
|
|
651
652
|
return n <= 0 ? null : n;
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function le() {
|
|
654
655
|
let e = c.state.popupElement;
|
|
655
|
-
return e ?
|
|
656
|
+
return e ? se(e) : null;
|
|
656
657
|
}
|
|
657
658
|
function q(e) {
|
|
658
|
-
let t =
|
|
659
|
+
let t = se(e);
|
|
659
660
|
if (t == null) return null;
|
|
660
|
-
let n =
|
|
661
|
+
let n = I(), r = n === "left" || n === "right", i = ee(e), a = r ? i.x : i.y;
|
|
661
662
|
return Number.isFinite(a) && Math.abs(a) > .5 ? Math.min(t, Math.abs(a)) : t;
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
-
let e =
|
|
665
|
-
return e == null ?
|
|
664
|
+
function pe() {
|
|
665
|
+
let e = le();
|
|
666
|
+
return e == null ? rt : e * et;
|
|
666
667
|
}
|
|
667
|
-
function
|
|
668
|
+
function me() {
|
|
668
669
|
let e = c.state.popupElement;
|
|
669
|
-
if (!e || !c.open() || !i.presence.mounted() || (
|
|
670
|
-
let t =
|
|
671
|
-
e.style.setProperty(
|
|
670
|
+
if (!e || !c.open() || !i.presence.mounted() || (k ??= q(e), k === null)) return;
|
|
671
|
+
let t = F(), n = I(), r = Math.max(0, R(t, O.x, O.y)), a = r > k ? k + Math.sqrt(r - k) : r, o = (k - a) * (n === "left" || n === "up" ? -1 : 1), s = n === "left" || n === "right", l = s ? o : 0, u = s ? 0 : o, p = Math.max(0, Math.min(1, r / k)), m = Math.max(0, Math.min(1, 1 - p)), h = d.frontmostHeight();
|
|
672
|
+
e.style.setProperty(Y.swipeMovementX, `${l}px`), e.style.setProperty(Y.swipeMovementY, `${u}px`), e.setAttribute($.swiping, ""), j = e, N ??= e.style.transition, e.style.transition = "none";
|
|
672
673
|
let g = i.backdropElement();
|
|
673
|
-
g && (g.setAttribute($.swiping, ""),
|
|
674
|
+
g && (g.setAttribute($.swiping, ""), M = g, g.style.setProperty(X.swipeProgress, `${m}`), p > 0 && h > 0 ? g.style.setProperty(Y.height, `${h}px`) : g.style.removeProperty(Y.height)), f?.visualStateStore.set({
|
|
674
675
|
swipeProgress: p,
|
|
675
676
|
frontmostHeight: p > 0 ? h : 0
|
|
676
|
-
}),
|
|
677
|
+
}), A = !0, d.swipeAreaActive.current = !0;
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
-
|
|
679
|
+
function Z() {
|
|
680
|
+
j && (j.style.removeProperty(Y.swipeMovementX), j.style.removeProperty(Y.swipeMovementY), j.removeAttribute($.swiping), N !== null && (j.style.transition = N, N = null)), M && (M.removeAttribute($.swiping), M.style.setProperty(X.swipeProgress, "0"), M.style.removeProperty(Y.height)), f?.visualStateStore.set({
|
|
680
681
|
swipeProgress: 0,
|
|
681
682
|
frontmostHeight: 0
|
|
682
|
-
}),
|
|
683
|
-
}
|
|
684
|
-
function me(e) {
|
|
685
|
-
w = !0, c.setOpen(!0, s(r, e, y() ?? void 0));
|
|
683
|
+
}), A = !1, j = null, M = null, d.swipeAreaActive.current = !1;
|
|
686
684
|
}
|
|
687
685
|
function he(e) {
|
|
688
|
-
c.setOpen(!
|
|
686
|
+
T = !0, c.setOpen(!0, s(r, e, b() ?? void 0));
|
|
689
687
|
}
|
|
690
|
-
function ge() {
|
|
691
|
-
|
|
688
|
+
function ge(e) {
|
|
689
|
+
c.setOpen(!1, s(r, e, b() ?? void 0));
|
|
692
690
|
}
|
|
693
691
|
function _e() {
|
|
694
|
-
|
|
692
|
+
w = null, T = !1, k = null, C(!1);
|
|
693
|
+
}
|
|
694
|
+
function ve() {
|
|
695
|
+
_e(), oe(), re(), Z();
|
|
695
696
|
}
|
|
696
|
-
let Q =
|
|
697
|
-
enabled:
|
|
698
|
-
directions: () => [
|
|
699
|
-
element:
|
|
697
|
+
let Q = ne({
|
|
698
|
+
enabled: L,
|
|
699
|
+
directions: () => [F()],
|
|
700
|
+
element: b,
|
|
700
701
|
trackDrag: !1,
|
|
701
702
|
movementCssVars: {
|
|
702
|
-
x:
|
|
703
|
-
y:
|
|
703
|
+
x: Y.swipeMovementX,
|
|
704
|
+
y: Y.swipeMovementY
|
|
704
705
|
},
|
|
705
706
|
onSwipeStart(e) {
|
|
706
|
-
U(),
|
|
707
|
+
U(), w = e, T = !1, C(!0), re();
|
|
707
708
|
},
|
|
708
709
|
onProgress(e, t) {
|
|
709
|
-
if (!t || !
|
|
710
|
-
|
|
711
|
-
let n =
|
|
710
|
+
if (!t || !w) return;
|
|
711
|
+
O.x = t.deltaX, O.y = t.deltaY;
|
|
712
|
+
let n = F();
|
|
712
713
|
if (t.direction !== n) return;
|
|
713
|
-
let r =
|
|
714
|
-
!
|
|
714
|
+
let r = R(n, t.deltaX, t.deltaY);
|
|
715
|
+
!T && r < tt || (!T && !c.open() && he(w), me());
|
|
715
716
|
},
|
|
716
717
|
onRelease({ event: e, direction: t, deltaX: n, deltaY: r, releaseVelocityX: i, releaseVelocityY: a }) {
|
|
717
|
-
let o =
|
|
718
|
-
return t === o && (u || l >=
|
|
718
|
+
let o = F(), s = R(o, n, r), l = R(o, i, a), u = s >= pe();
|
|
719
|
+
return t === o && (u || l >= nt) && !v() ? c.open() || he(e) : T && c.open() && ge(e), ve(), !1;
|
|
719
720
|
},
|
|
720
|
-
onCancel:
|
|
721
|
+
onCancel: ve
|
|
721
722
|
});
|
|
722
723
|
W(() => ({
|
|
723
|
-
active:
|
|
724
|
+
active: S(),
|
|
724
725
|
open: c.open(),
|
|
725
726
|
mounted: i.presence.mounted(),
|
|
726
727
|
popupElement: c.track().popupElement,
|
|
727
|
-
frontmostHeight:
|
|
728
|
+
frontmostHeight: d.frontmostHeight()
|
|
728
729
|
}), (e) => {
|
|
729
|
-
e.active &&
|
|
730
|
-
}), W(() =>
|
|
730
|
+
e.active && A && J(me);
|
|
731
|
+
}), W(() => L(), (e) => {
|
|
731
732
|
e || J(() => {
|
|
732
|
-
|
|
733
|
+
S() && oe(), Q.reset(), re(), Z(), _e();
|
|
733
734
|
});
|
|
734
|
-
}),
|
|
735
|
-
|
|
735
|
+
}), de(() => {
|
|
736
|
+
P?.(), i.outsidePressEnabled.current = !0;
|
|
736
737
|
});
|
|
737
|
-
let
|
|
738
|
+
let be = G(() => ({
|
|
738
739
|
open: c.open(),
|
|
739
740
|
swiping: Q.swiping(),
|
|
740
|
-
swipeDirection:
|
|
741
|
-
disabled:
|
|
742
|
-
})),
|
|
743
|
-
var t =
|
|
741
|
+
swipeDirection: F(),
|
|
742
|
+
disabled: v()
|
|
743
|
+
})), xe = t(e, () => be(), (e) => (() => {
|
|
744
|
+
var t = ie($e);
|
|
744
745
|
return H(t, e, !1), V(), t;
|
|
745
|
-
})()),
|
|
746
|
-
"pointer-events":
|
|
747
|
-
"touch-action":
|
|
748
|
-
}, o(e.style,
|
|
746
|
+
})()), Se = G(() => a(e.class, be())), Ce = G(() => E({
|
|
747
|
+
"pointer-events": L() ? void 0 : "none",
|
|
748
|
+
"touch-action": ut(F())
|
|
749
|
+
}, o(e.style, be()))), we = G(() => n(be(), ct)), Te = l(u(() => p.onPointerDown), (e) => {
|
|
749
750
|
e.pointerType !== "touch" && (Q.pointerHandlers.onPointerDown(e), e.cancelable && e.preventDefault());
|
|
750
|
-
}),
|
|
751
|
+
}), Ee = l(u(() => p.onPointerMove), (e) => {
|
|
751
752
|
e.pointerType !== "touch" && Q.pointerHandlers.onPointerMove(e);
|
|
752
|
-
}),
|
|
753
|
+
}), De = l(u(() => p.onPointerUp), (e) => {
|
|
753
754
|
e.pointerType !== "touch" && Q.pointerHandlers.onPointerUp(e);
|
|
754
|
-
}),
|
|
755
|
+
}), Oe = l(u(() => p.onPointerCancel), (e) => {
|
|
755
756
|
e.pointerType !== "touch" && Q.pointerHandlers.onPointerCancel(e);
|
|
756
|
-
}),
|
|
757
|
-
return B(
|
|
758
|
-
ref: [((e) =>
|
|
757
|
+
}), ke = l(u(() => p.onTouchStart), (e) => Q.touchHandlers.onTouchStart(e)), je = l(u(() => p.onTouchMove), (e) => Q.touchHandlers.onTouchMove(e)), Me = l(u(() => p.onTouchEnd), (e) => Q.touchHandlers.onTouchEnd(e)), Ne = l(u(() => p.onTouchCancel), (e) => Q.touchHandlers.onTouchCancel(e));
|
|
758
|
+
return B(xe, ae({
|
|
759
|
+
ref: [((e) => x(e)), p.ref],
|
|
759
760
|
get id() {
|
|
760
|
-
return
|
|
761
|
+
return _();
|
|
761
762
|
},
|
|
762
763
|
role: "presentation",
|
|
763
764
|
"aria-hidden": "true",
|
|
764
765
|
get class() {
|
|
765
|
-
return
|
|
766
|
+
return Se();
|
|
766
767
|
},
|
|
767
768
|
get style() {
|
|
768
|
-
return
|
|
769
|
+
return Ce();
|
|
769
770
|
},
|
|
770
|
-
onPointerDown:
|
|
771
|
-
onPointerMove:
|
|
772
|
-
onPointerUp:
|
|
773
|
-
onPointerCancel:
|
|
774
|
-
onTouchStart:
|
|
775
|
-
onTouchMove:
|
|
776
|
-
onTouchEnd:
|
|
777
|
-
onTouchCancel:
|
|
778
|
-
},
|
|
771
|
+
onPointerDown: Te,
|
|
772
|
+
onPointerMove: Ee,
|
|
773
|
+
onPointerUp: De,
|
|
774
|
+
onPointerCancel: Oe,
|
|
775
|
+
onTouchStart: ke,
|
|
776
|
+
onTouchMove: je,
|
|
777
|
+
onTouchEnd: Me,
|
|
778
|
+
onTouchCancel: Ne
|
|
779
|
+
}, we, h));
|
|
779
780
|
}
|
|
780
781
|
//#endregion
|
|
781
782
|
//#region src/drawer/virtual-keyboard-provider/DrawerVirtualKeyboardContext.ts
|
|
782
|
-
var
|
|
783
|
-
function
|
|
784
|
-
let e =
|
|
785
|
-
return e ===
|
|
783
|
+
var pt = Symbol("DrawerVirtualKeyboardContext"), mt = se(pt);
|
|
784
|
+
function ht() {
|
|
785
|
+
let e = pe(mt);
|
|
786
|
+
return e === pt ? void 0 : e;
|
|
786
787
|
}
|
|
787
788
|
//#endregion
|
|
788
789
|
//#region src/drawer/viewport/DrawerViewport.tsx
|
|
789
|
-
var
|
|
790
|
-
function
|
|
791
|
-
let t =
|
|
792
|
-
let e = i.snapPoints(), t = o.resolvedSnapPoints(), n =
|
|
790
|
+
var gt = 10, _t = .5, vt = .5, yt = 300, bt = 4, xt = .2, St = 4, Ct = 80, wt = 360, Tt = .1, Et = 6, Dt = 2, Ot = `[${he}]`;
|
|
791
|
+
function kt(e) {
|
|
792
|
+
let t = D(), n = t.store, i = Ae(), a = ye(), o = Pe(), p = ht(), _ = e, v = ue(e, "children", "onPointerCancel", "onPointerDown", "onPointerMove", "onPointerUp", "onTouchCancel", "onTouchEnd", "onTouchStart"), y = () => n.open(), b = () => t.presence.mounted(), x = () => t.nestedOpenDrawerCount() > 0, S = () => i.swipeDirection(), C = () => S() === "left" || S() === "right" ? "horizontal" : "vertical", w = () => C() === "vertical" ? "horizontal" : "vertical", [T, E] = K(null, { ownedWrite: !0 }), O, k, A = !1, j = !1, N = "", P = !1, F = !1, L = null, ee = G(() => {
|
|
793
|
+
let e = i.snapPoints(), t = o.resolvedSnapPoints(), n = S();
|
|
793
794
|
if (!e || e.length < 2 || t.length < 2 || n !== "down" && n !== "up") return null;
|
|
794
795
|
let r = t.map((e) => e.offset).sort((e, t) => e - t);
|
|
795
796
|
return {
|
|
796
797
|
minOffset: r[0],
|
|
797
798
|
range: r[1] - r[0]
|
|
798
799
|
};
|
|
799
|
-
}),
|
|
800
|
+
}), re = G(() => {
|
|
800
801
|
let e = ee(), t = o.activeSnapPointOffset();
|
|
801
802
|
return !e || t === null ? null : z((t - e.minOffset) / e.range, 0, 1);
|
|
802
|
-
}),
|
|
803
|
-
let e = i.snapPoints(), t =
|
|
803
|
+
}), ie = G(() => {
|
|
804
|
+
let e = i.snapPoints(), t = S();
|
|
804
805
|
return e && e.length > 0 && (t === "down" || t === "up") ? t === "down" ? ["down", "up"] : ["up", "down"] : [t];
|
|
805
806
|
});
|
|
806
807
|
function V(e) {
|
|
807
808
|
n.state.popupElement?.toggleAttribute($.swipeDismiss, e), t.backdropElement()?.toggleAttribute($.swipeDismiss, e);
|
|
808
809
|
}
|
|
809
810
|
function H() {
|
|
810
|
-
V(!1), n.state.popupElement?.removeAttribute(c.endingStyle),
|
|
811
|
+
V(!1), n.state.popupElement?.removeAttribute(c.endingStyle), E(null);
|
|
811
812
|
}
|
|
812
813
|
function U() {
|
|
813
|
-
|
|
814
|
+
j && (j = !1, i.notifyParentSwipingChange?.(!1));
|
|
814
815
|
}
|
|
815
|
-
function
|
|
816
|
-
let o =
|
|
816
|
+
function oe(e, n, r) {
|
|
817
|
+
let o = y() && !t.nested && n, s = o ? e : 0, c = y() && n ? e : 0, l = i.frontmostHeight();
|
|
817
818
|
r && i.notifyParentSwipeProgressChange && (i.notifyParentSwipeProgressChange(c), c <= 0 && U()), a?.visualStateStore.set({
|
|
818
819
|
swipeProgress: s,
|
|
819
820
|
frontmostHeight: s > 0 ? l : 0
|
|
@@ -821,69 +822,69 @@ function Ot(e) {
|
|
|
821
822
|
let u = t.backdropElement();
|
|
822
823
|
if (!u) return;
|
|
823
824
|
let d = o && s > 0;
|
|
824
|
-
u.style.setProperty(
|
|
825
|
+
u.style.setProperty(X.swipeProgress, d ? `${s}` : "0"), d && l > 0 ? u.style.setProperty(Y.height, `${l}px`) : u.style.removeProperty(Y.height);
|
|
825
826
|
}
|
|
826
|
-
function
|
|
827
|
-
let u =
|
|
827
|
+
function se(e, t, n, r, a, s, c, l) {
|
|
828
|
+
let u = Nt(e, t);
|
|
828
829
|
if (u <= 0) return null;
|
|
829
|
-
let d = i.snapPoints(), f = ((t === "down" || t === "up") && d && d.length > 0 ? o.activeSnapPointOffset() ?? 0 : 0) +
|
|
830
|
+
let d = i.snapPoints(), f = ((t === "down" || t === "up") && d && d.length > 0 ? o.activeSnapPointOffset() ?? 0 : 0) + R(t, n, r), p = Math.max(0, u - f);
|
|
830
831
|
if (p <= 0) return null;
|
|
831
|
-
let m =
|
|
832
|
-
if (h <=
|
|
833
|
-
let g = z(h,
|
|
834
|
-
return
|
|
832
|
+
let m = R(t, c, l), h = Math.abs(m) > 0 ? m : R(t, a, s);
|
|
833
|
+
if (h <= xt) return null;
|
|
834
|
+
let g = z(h, xt, St);
|
|
835
|
+
return Tt + (z(p / g, Ct, wt) - Ct) / 280 * .9;
|
|
835
836
|
}
|
|
836
|
-
function
|
|
837
|
-
if (
|
|
838
|
-
let t = e.direction ??
|
|
839
|
-
Math.abs(
|
|
837
|
+
function ce(e) {
|
|
838
|
+
if (j || !e) return;
|
|
839
|
+
let t = e.direction ?? S();
|
|
840
|
+
Math.abs(R(t, e.deltaX, e.deltaY)) < gt || (j = !0, i.notifyParentSwipingChange?.(!0));
|
|
840
841
|
}
|
|
841
|
-
let q =
|
|
842
|
-
enabled: () =>
|
|
843
|
-
directions:
|
|
842
|
+
let q = ne({
|
|
843
|
+
enabled: () => b() && !x(),
|
|
844
|
+
directions: ie,
|
|
844
845
|
element: () => n.track().popupElement,
|
|
845
846
|
ignoreSelectorWhenTouch: !1,
|
|
846
847
|
ignoreScrollableAncestors: !0,
|
|
847
848
|
movementCssVars: {
|
|
848
|
-
x:
|
|
849
|
-
y:
|
|
849
|
+
x: Y.swipeMovementX,
|
|
850
|
+
y: Y.swipeMovementY
|
|
850
851
|
},
|
|
851
|
-
swipeThreshold: ({ element: e, direction: t }) =>
|
|
852
|
+
swipeThreshold: ({ element: e, direction: t }) => Pt(e, t),
|
|
852
853
|
onSwipeStart(e) {
|
|
853
854
|
if ("touches" in e || e.pointerType === "touch") return;
|
|
854
|
-
let t = n.state.popupElement, r =
|
|
855
|
+
let t = n.state.popupElement, r = m(t).getSelection?.();
|
|
855
856
|
if (!r || r.isCollapsed) return;
|
|
856
|
-
let i =
|
|
857
|
-
!
|
|
857
|
+
let i = g(r.anchorNode) ? r.anchorNode : r.anchorNode?.parentElement, a = g(r.focusNode) ? r.focusNode : r.focusNode?.parentElement;
|
|
858
|
+
!h(t, i) && !h(t, a) || r.removeAllRanges();
|
|
858
859
|
},
|
|
859
860
|
onSwipingChange(e) {
|
|
860
|
-
|
|
861
|
+
A = e, At(t.backdropElement(), e), !e && !i.notifyParentSwipeProgressChange && U();
|
|
861
862
|
},
|
|
862
863
|
canStart(e, t) {
|
|
863
864
|
let r = n.state.popupElement;
|
|
864
865
|
if (!r) return !1;
|
|
865
|
-
let i =
|
|
866
|
-
if (!i || !
|
|
866
|
+
let i = te(r.getRootNode(), e.x, e.y);
|
|
867
|
+
if (!i || !h(r, i)) return !1;
|
|
867
868
|
let a = t.nativeEvent;
|
|
868
|
-
return !(("touches" in a || a.pointerType === "touch") &&
|
|
869
|
+
return !(("touches" in a || a.pointerType === "touch") && Rt(r.ownerDocument, r));
|
|
869
870
|
},
|
|
870
871
|
onProgress(e, t) {
|
|
871
|
-
|
|
872
|
+
A && ce(t);
|
|
872
873
|
let r = i.snapPoints(), a = !!(r && r.length > 0);
|
|
873
|
-
if (
|
|
874
|
+
if (A && S() === "down" && a && t) {
|
|
874
875
|
let e = n.state.popupElement;
|
|
875
|
-
e && (e.style.removeProperty("transform"), e.style.setProperty(
|
|
876
|
+
e && (e.style.removeProperty("transform"), e.style.setProperty(Y.swipeMovementY, `${je(o.activeSnapPointOffset() ?? 0, t.deltaY)}px`));
|
|
876
877
|
}
|
|
877
878
|
let s = e, c = ee(), l = o.popupHeight();
|
|
878
879
|
if (c && l > 0) {
|
|
879
880
|
let e = o.activeSnapPointOffset() ?? c.minOffset, n = (e) => z((e - c.minOffset) / c.range, 0, 1);
|
|
880
|
-
if (
|
|
881
|
+
if (A && t && Number.isFinite(t.deltaY)) s = n(z(e + t.deltaY, 0, l));
|
|
881
882
|
else {
|
|
882
|
-
let e =
|
|
883
|
+
let e = re();
|
|
883
884
|
e !== null && (s = e);
|
|
884
885
|
}
|
|
885
886
|
}
|
|
886
|
-
|
|
887
|
+
A || (i.notifyParentSwipeProgressChange?.(0), U()), oe(s, !0, A);
|
|
887
888
|
},
|
|
888
889
|
onRelease({ event: e, deltaX: t, deltaY: a, direction: l, velocityX: u, velocityY: d, releaseVelocityX: f, releaseVelocityY: p }) {
|
|
889
890
|
let m = n.state.popupElement;
|
|
@@ -892,18 +893,18 @@ function Ot(e) {
|
|
|
892
893
|
return;
|
|
893
894
|
}
|
|
894
895
|
function h(e) {
|
|
895
|
-
U(), V(!0), m.style.removeProperty("transition"), m.setAttribute(c.endingStyle, ""),
|
|
896
|
+
U(), V(!0), m.style.removeProperty("transition"), m.setAttribute(c.endingStyle, ""), E(se(m, e, t, a, u, d, f, p)), le();
|
|
896
897
|
}
|
|
897
|
-
let g = i.snapPoints(), _ =
|
|
898
|
+
let g = i.snapPoints(), _ = S();
|
|
898
899
|
if (!g || g.length === 0) {
|
|
899
900
|
if (!l) {
|
|
900
901
|
H();
|
|
901
902
|
return;
|
|
902
903
|
}
|
|
903
|
-
let e =
|
|
904
|
+
let e = R(l, t, a);
|
|
904
905
|
if (e <= 0) return H(), !1;
|
|
905
|
-
if (
|
|
906
|
-
let n = e >
|
|
906
|
+
if (R(l, u, d) >= _t) return h(l), !0;
|
|
907
|
+
let n = e > Pt(m, l);
|
|
907
908
|
return n ? h(l) : H(), n;
|
|
908
909
|
}
|
|
909
910
|
if (_ !== "down" && _ !== "up") {
|
|
@@ -917,29 +918,29 @@ function Ot(e) {
|
|
|
917
918
|
H();
|
|
918
919
|
return;
|
|
919
920
|
}
|
|
920
|
-
let b = _ === "down" ? a : -a,
|
|
921
|
-
if (
|
|
922
|
-
let e = Math.sign(
|
|
923
|
-
e !== 0 && e !==
|
|
921
|
+
let b = _ === "down" ? a : -a, x = Math.sign(b), C = _ === "down" ? p : -p, w = _ === "down" ? d : -d, T = C;
|
|
922
|
+
if (x !== 0 && Math.abs(b) >= gt) {
|
|
923
|
+
let e = Math.sign(T);
|
|
924
|
+
e !== 0 && e !== x && (T = w);
|
|
924
925
|
}
|
|
925
|
-
let
|
|
926
|
+
let D = o.activeSnapPointOffset() ?? 0, k = z(D + b, 0, v), A = Math.abs(T) >= vt ? z(T, -4, bt) * yt : 0, j = i.snapToSequentialPoints() ? k : z(k + A, 0, v), M = s(r, e), N = () => (oe(0, !0, !0), H(), !1), P = (e) => (i.setActiveSnapPoint(e.value, M), N()), F = (e) => {
|
|
926
927
|
if (!l) return P(e);
|
|
927
928
|
let t = o.activeSnapPoint();
|
|
928
|
-
return i.setActiveSnapPoint(null, M), M.isCanceled ? N() : (
|
|
929
|
+
return i.setActiveSnapPoint(null, M), M.isCanceled ? N() : (O = t, h(_), !0);
|
|
929
930
|
};
|
|
930
931
|
if (i.snapToSequentialPoints()) {
|
|
931
|
-
let e = [...y].sort((e, t) => e.offset - t.offset), t = e.map((e) => e.offset), n =
|
|
932
|
+
let e = [...y].sort((e, t) => e.offset - t.offset), t = e.map((e) => e.offset), n = Ne(t, D), r = e[Ne(t, j)], i = Math.sign(T), a = x !== 0 && i !== 0 && i === x && Math.abs(T) >= vt, o = j;
|
|
932
933
|
if (a) {
|
|
933
|
-
let t = z(n +
|
|
934
|
+
let t = z(n + x, 0, e.length - 1);
|
|
934
935
|
if (t !== n) {
|
|
935
936
|
let n = e[t];
|
|
936
|
-
(
|
|
937
|
-
} else if (
|
|
937
|
+
(x > 0 ? j < n.offset : j > n.offset) && (r = n, o = n.offset);
|
|
938
|
+
} else if (x > 0) return F(r);
|
|
938
939
|
}
|
|
939
940
|
return Math.abs(o - v) < Math.abs(o - r.offset) ? F(r) : P(r);
|
|
940
941
|
}
|
|
941
|
-
let I = y[
|
|
942
|
-
return
|
|
942
|
+
let I = y[Ne(y.map((e) => e.offset), j)], L = Math.abs(j - v);
|
|
943
|
+
return T >= _t && b > 0 || L < Math.abs(j - I.offset) ? F(I) : P(I);
|
|
943
944
|
},
|
|
944
945
|
onDismiss(e) {
|
|
945
946
|
a?.visualStateStore.set({
|
|
@@ -947,55 +948,55 @@ function Ot(e) {
|
|
|
947
948
|
frontmostHeight: 0
|
|
948
949
|
});
|
|
949
950
|
let o = t.backdropElement();
|
|
950
|
-
o && (o.style.setProperty(
|
|
951
|
+
o && (o.style.setProperty(X.swipeProgress, "0"), o.style.removeProperty(Y.height));
|
|
951
952
|
let c = s(r, e);
|
|
952
953
|
if (n.setOpen(!1, c), c.isCanceled) {
|
|
953
|
-
|
|
954
|
+
O !== void 0 && i.setActiveSnapPoint(O, s(r, e)), O = void 0, q.reset(), H();
|
|
954
955
|
return;
|
|
955
956
|
}
|
|
956
957
|
if (n.open()) {
|
|
957
958
|
let t = e;
|
|
958
|
-
|
|
959
|
-
|
|
959
|
+
k = requestAnimationFrame(() => {
|
|
960
|
+
k = void 0, n.open() ? (O !== void 0 && i.setActiveSnapPoint(O, s(r, t)), O = void 0, H(), q.reset()) : O = void 0;
|
|
960
961
|
});
|
|
961
962
|
return;
|
|
962
963
|
}
|
|
963
|
-
|
|
964
|
+
O = void 0, V(!0);
|
|
964
965
|
}
|
|
965
|
-
});
|
|
966
|
+
}), fe = G(y), pe = G(() => t.viewportElement() ?? n.track().popupElement);
|
|
966
967
|
W(() => ({
|
|
967
|
-
mounted:
|
|
968
|
-
nestedDrawerOpen:
|
|
969
|
-
open:
|
|
970
|
-
rootElement:
|
|
971
|
-
axis:
|
|
972
|
-
direction:
|
|
968
|
+
mounted: b(),
|
|
969
|
+
nestedDrawerOpen: x(),
|
|
970
|
+
open: fe(),
|
|
971
|
+
rootElement: pe(),
|
|
972
|
+
axis: C(),
|
|
973
|
+
direction: S()
|
|
973
974
|
}), (e) => {
|
|
974
975
|
let t = e.rootElement;
|
|
975
976
|
if (!t) return;
|
|
976
|
-
let n = e.axis === "vertical", r =
|
|
977
|
+
let n = e.axis === "vertical", r = m(t);
|
|
977
978
|
function i(i, a, o) {
|
|
978
979
|
let s = n ? o.clientY - a.lastY : o.clientX - a.lastX;
|
|
979
|
-
if (i.touches.length === 2 ||
|
|
980
|
+
if (i.touches.length === 2 || Rt(r, t) || !e.open || !e.mounted || e.nestedDrawerOpen || Bt(a, i, o, n)) return;
|
|
980
981
|
let c = a.scrollTarget;
|
|
981
982
|
if (!c || c === r.documentElement || c === r.body) {
|
|
982
983
|
i.cancelable && i.preventDefault(), i.stopPropagation(), q.moveNative(i, t);
|
|
983
984
|
return;
|
|
984
985
|
}
|
|
985
|
-
if (!
|
|
986
|
+
if (!Vt(c, e.axis)) {
|
|
986
987
|
i.cancelable && i.preventDefault(), i.stopPropagation();
|
|
987
988
|
return;
|
|
988
989
|
}
|
|
989
990
|
if (s !== 0) {
|
|
990
|
-
let t =
|
|
991
|
+
let t = Wt(c, e.axis, e.direction, s);
|
|
991
992
|
a.allowSwipe ? i.cancelable && i.preventDefault() : i.cancelable && t ? (a.allowSwipe = !0, i.preventDefault()) : a.allowSwipe = !1;
|
|
992
993
|
}
|
|
993
994
|
a.allowSwipe === !0 && (i.stopPropagation(), q.moveNative(i, t));
|
|
994
995
|
}
|
|
995
996
|
function a(e) {
|
|
996
|
-
if (
|
|
997
|
+
if (p?.onTouchMove(e), F) return;
|
|
997
998
|
let t = e.touches[0];
|
|
998
|
-
!t || !
|
|
999
|
+
!t || !L || (i(e, L, t), L.lastX = t.clientX, L.lastY = t.clientY);
|
|
999
1000
|
}
|
|
1000
1001
|
return r.addEventListener("touchmove", a, {
|
|
1001
1002
|
passive: !1,
|
|
@@ -1004,77 +1005,77 @@ function Ot(e) {
|
|
|
1004
1005
|
}), W(() => ({
|
|
1005
1006
|
range: ee(),
|
|
1006
1007
|
swiping: q.swiping(),
|
|
1007
|
-
open:
|
|
1008
|
+
open: y(),
|
|
1008
1009
|
nested: t.nested,
|
|
1009
|
-
progress:
|
|
1010
|
+
progress: re(),
|
|
1010
1011
|
frontmostHeight: i.frontmostHeight()
|
|
1011
1012
|
}), (e) => {
|
|
1012
|
-
!e.range || e.swiping || J(() =>
|
|
1013
|
-
}), W(
|
|
1013
|
+
!e.range || e.swiping || J(() => oe(!e.open || e.nested ? 0 : e.progress ?? 0, !0, !1));
|
|
1014
|
+
}), W(fe, (e) => {
|
|
1014
1015
|
if (i.notifyParentSwipeProgressChange) return e || i.notifyParentSwipeProgressChange(0), () => i.notifyParentSwipeProgressChange?.(0);
|
|
1015
|
-
}), W(() =>
|
|
1016
|
-
e
|
|
1016
|
+
}), W(() => y(), (e, t) => {
|
|
1017
|
+
!e || e === t || J(() => {
|
|
1017
1018
|
i.swipeAreaActive.current || q.reset(), H();
|
|
1018
1019
|
});
|
|
1019
|
-
}),
|
|
1020
|
-
|
|
1020
|
+
}), de(() => {
|
|
1021
|
+
k !== void 0 && cancelAnimationFrame(k), a?.visualStateStore.set({
|
|
1021
1022
|
swipeProgress: 0,
|
|
1022
1023
|
frontmostHeight: 0
|
|
1023
|
-
}),
|
|
1024
|
+
}), At(t.backdropElement(), !1), U();
|
|
1024
1025
|
});
|
|
1025
|
-
let
|
|
1026
|
+
let me = {
|
|
1026
1027
|
swiping: q.swiping,
|
|
1027
1028
|
getDragStyles: q.getDragStyles,
|
|
1028
|
-
swipeStrength:
|
|
1029
|
+
swipeStrength: T,
|
|
1029
1030
|
setSwipeDismissed: V
|
|
1030
1031
|
};
|
|
1031
|
-
function
|
|
1032
|
-
|
|
1032
|
+
function Z(e) {
|
|
1033
|
+
F = e, L = null;
|
|
1033
1034
|
}
|
|
1034
|
-
function
|
|
1035
|
-
|
|
1035
|
+
function he() {
|
|
1036
|
+
Z(!1), N = "", P = !1;
|
|
1036
1037
|
}
|
|
1037
|
-
function
|
|
1038
|
-
return
|
|
1038
|
+
function ge(e) {
|
|
1039
|
+
return N = "", e.pointerType !== "touch";
|
|
1039
1040
|
}
|
|
1040
|
-
let
|
|
1041
|
-
if (
|
|
1042
|
-
let t = e.currentTarget, n =
|
|
1043
|
-
|
|
1044
|
-
}),
|
|
1041
|
+
let _e = l(u(() => _.onPointerDown), (e) => {
|
|
1042
|
+
if (N = e.pointerType, P = e.pointerType === "pen", !y() || !b() || x()) return;
|
|
1043
|
+
let t = e.currentTarget, n = te(t.getRootNode(), e.clientX, e.clientY);
|
|
1044
|
+
jt(n) || Mt(n) || e.pointerType !== "touch" && q.pointerHandlers.onPointerDown(e);
|
|
1045
|
+
}), ve = l(u(() => _.onPointerMove), (e) => {
|
|
1045
1046
|
e.pointerType !== "touch" && q.pointerHandlers.onPointerMove(e);
|
|
1046
|
-
}),
|
|
1047
|
-
|
|
1048
|
-
}),
|
|
1049
|
-
|
|
1050
|
-
}),
|
|
1051
|
-
if (
|
|
1052
|
-
|
|
1047
|
+
}), Q = l(u(() => _.onPointerUp), (e) => {
|
|
1048
|
+
ge(e) && q.pointerHandlers.onPointerUp(e);
|
|
1049
|
+
}), be = l(u(() => _.onPointerCancel), (e) => {
|
|
1050
|
+
ge(e) && q.pointerHandlers.onPointerCancel(e);
|
|
1051
|
+
}), xe = l(u(() => _.onTouchStart), (e) => {
|
|
1052
|
+
if (N === "pen" && P) {
|
|
1053
|
+
P = !1, Z(!1);
|
|
1053
1054
|
return;
|
|
1054
1055
|
}
|
|
1055
|
-
if (!
|
|
1056
|
-
|
|
1056
|
+
if (!y() || !b() || x()) {
|
|
1057
|
+
Z(!1);
|
|
1057
1058
|
return;
|
|
1058
1059
|
}
|
|
1059
1060
|
let t = e.touches[0];
|
|
1060
1061
|
if (!t) return;
|
|
1061
1062
|
let n = e.currentTarget;
|
|
1062
|
-
if (
|
|
1063
|
-
|
|
1063
|
+
if (zt(e, d(n))) {
|
|
1064
|
+
Z(!1);
|
|
1064
1065
|
return;
|
|
1065
1066
|
}
|
|
1066
|
-
let r =
|
|
1067
|
-
if (!
|
|
1068
|
-
|
|
1067
|
+
let r = te(n.getRootNode(), t.clientX, t.clientY), i = f(e), a = g(i) ? i : n;
|
|
1068
|
+
if (!h(n, a)) {
|
|
1069
|
+
Z(!0);
|
|
1069
1070
|
return;
|
|
1070
1071
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
|
|
1072
|
+
if (p?.onTouchStart(e), jt(r)) {
|
|
1073
|
+
Z(!0);
|
|
1073
1074
|
return;
|
|
1074
1075
|
}
|
|
1075
|
-
|
|
1076
|
-
let o =
|
|
1077
|
-
s && (l =
|
|
1076
|
+
F = !1;
|
|
1077
|
+
let o = C(), s = I(a, n, o), c = I(a, n, w()) != null, l = null;
|
|
1078
|
+
s && (l = Ut(s, o, S()) ? null : !1), L = {
|
|
1078
1079
|
startX: t.clientX,
|
|
1079
1080
|
startY: t.clientY,
|
|
1080
1081
|
lastX: t.clientX,
|
|
@@ -1085,23 +1086,23 @@ function Ot(e) {
|
|
|
1085
1086
|
preserveNativeCrossAxisScroll: !1,
|
|
1086
1087
|
drawerAxisAttributed: !1
|
|
1087
1088
|
}, q.touchHandlers.onTouchStart(e);
|
|
1088
|
-
}),
|
|
1089
|
-
|
|
1090
|
-
}),
|
|
1091
|
-
|
|
1089
|
+
}), Se = l(u(() => _.onTouchEnd), (e) => {
|
|
1090
|
+
p?.onTouchEnd(e), he(), q.touchHandlers.onTouchEnd(e);
|
|
1091
|
+
}), Ce = l(u(() => _.onTouchCancel), (e) => {
|
|
1092
|
+
p?.onTouchCancel(), he(), q.touchHandlers.onTouchCancel(e);
|
|
1092
1093
|
});
|
|
1093
|
-
return B(
|
|
1094
|
-
onPointerDown:
|
|
1095
|
-
onPointerMove:
|
|
1096
|
-
onPointerUp:
|
|
1097
|
-
onPointerCancel:
|
|
1098
|
-
onTouchStart:
|
|
1099
|
-
onTouchEnd:
|
|
1100
|
-
onTouchCancel:
|
|
1094
|
+
return B(M, ae(v, {
|
|
1095
|
+
onPointerDown: _e,
|
|
1096
|
+
onPointerMove: ve,
|
|
1097
|
+
onPointerUp: Q,
|
|
1098
|
+
onPointerCancel: be,
|
|
1099
|
+
onTouchStart: xe,
|
|
1100
|
+
onTouchEnd: Se,
|
|
1101
|
+
onTouchCancel: Ce,
|
|
1101
1102
|
"data-nested-dialog-open": void 0,
|
|
1102
1103
|
get children() {
|
|
1103
|
-
return B(
|
|
1104
|
-
value:
|
|
1104
|
+
return B(Ie, {
|
|
1105
|
+
value: me,
|
|
1105
1106
|
get children() {
|
|
1106
1107
|
return e.children;
|
|
1107
1108
|
}
|
|
@@ -1109,54 +1110,54 @@ function Ot(e) {
|
|
|
1109
1110
|
}
|
|
1110
1111
|
}));
|
|
1111
1112
|
}
|
|
1112
|
-
function
|
|
1113
|
+
function At(e, t) {
|
|
1113
1114
|
e?.toggleAttribute($.swiping, t);
|
|
1114
1115
|
}
|
|
1115
|
-
function At(e) {
|
|
1116
|
-
return !!e?.closest(ne);
|
|
1117
|
-
}
|
|
1118
1116
|
function jt(e) {
|
|
1119
|
-
return !!e?.closest(
|
|
1117
|
+
return !!e?.closest(re);
|
|
1120
1118
|
}
|
|
1121
|
-
function Mt(e
|
|
1122
|
-
return
|
|
1119
|
+
function Mt(e) {
|
|
1120
|
+
return !!e?.closest(Ot);
|
|
1123
1121
|
}
|
|
1124
1122
|
function Nt(e, t) {
|
|
1125
|
-
return
|
|
1123
|
+
return t === "left" || t === "right" ? e.offsetWidth : e.offsetHeight;
|
|
1126
1124
|
}
|
|
1127
1125
|
function Pt(e, t) {
|
|
1126
|
+
return Math.max(Nt(e, t) * .5, gt);
|
|
1127
|
+
}
|
|
1128
|
+
function Ft(e, t) {
|
|
1128
1129
|
return e instanceof t.HTMLInputElement && e.type === "range";
|
|
1129
1130
|
}
|
|
1130
|
-
function
|
|
1131
|
+
function It(e) {
|
|
1131
1132
|
return e.tagName === "INPUT" || e.tagName === "TEXTAREA";
|
|
1132
1133
|
}
|
|
1133
|
-
function It(e, t) {
|
|
1134
|
-
let n = u(e.anchorNode) ? e.anchorNode : e.anchorNode?.parentElement, r = u(e.focusNode) ? e.focusNode : e.focusNode?.parentElement;
|
|
1135
|
-
return e.containsNode(t, !0) || m(t, n) || m(t, r);
|
|
1136
|
-
}
|
|
1137
1134
|
function Lt(e, t) {
|
|
1135
|
+
let n = g(e.anchorNode) ? e.anchorNode : e.anchorNode?.parentElement, r = g(e.focusNode) ? e.focusNode : e.focusNode?.parentElement;
|
|
1136
|
+
return e.containsNode(t, !0) || h(t, n) || h(t, r);
|
|
1137
|
+
}
|
|
1138
|
+
function Rt(e, t) {
|
|
1138
1139
|
let n = _(e);
|
|
1139
|
-
if (n &&
|
|
1140
|
+
if (n && h(t, n) && It(n)) {
|
|
1140
1141
|
let { selectionStart: e, selectionEnd: t } = n;
|
|
1141
1142
|
if (e != null && t != null && e < t) return !0;
|
|
1142
1143
|
}
|
|
1143
1144
|
let r = e.getSelection?.();
|
|
1144
|
-
return !r || r.isCollapsed ? !1 :
|
|
1145
|
+
return !r || r.isCollapsed ? !1 : Lt(r, t);
|
|
1145
1146
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return e.composedPath().some((e) =>
|
|
1147
|
+
function zt(e, t) {
|
|
1148
|
+
return e.composedPath().some((e) => Ft(e, t));
|
|
1148
1149
|
}
|
|
1149
|
-
function
|
|
1150
|
+
function Bt(e, t, n, r) {
|
|
1150
1151
|
if (e.preserveNativeCrossAxisScroll) return !0;
|
|
1151
1152
|
if (e.drawerAxisAttributed || e.allowSwipe === !0 || !e.hasCrossAxisScrollableContent) return !1;
|
|
1152
1153
|
if (!t.cancelable) return e.preserveNativeCrossAxisScroll = !0, !0;
|
|
1153
1154
|
let i = r ? n.clientY - e.startY : n.clientX - e.startX, a = r ? n.clientX - e.startX : n.clientY - e.startY, o = Math.abs(i), s = Math.abs(a);
|
|
1154
|
-
return s >=
|
|
1155
|
-
}
|
|
1156
|
-
function Bt(e, t) {
|
|
1157
|
-
return Vt(e, t).max > 0;
|
|
1155
|
+
return s >= Et && s > o + Dt ? (e.preserveNativeCrossAxisScroll = !0, !0) : o >= Et ? (e.drawerAxisAttributed = !0, !1) : !0;
|
|
1158
1156
|
}
|
|
1159
1157
|
function Vt(e, t) {
|
|
1158
|
+
return Ht(e, t).max > 0;
|
|
1159
|
+
}
|
|
1160
|
+
function Ht(e, t) {
|
|
1160
1161
|
return t === "vertical" ? {
|
|
1161
1162
|
offset: e.scrollTop,
|
|
1162
1163
|
max: Math.max(0, e.scrollHeight - e.clientHeight)
|
|
@@ -1165,21 +1166,21 @@ function Vt(e, t) {
|
|
|
1165
1166
|
max: Math.max(0, e.scrollWidth - e.clientWidth)
|
|
1166
1167
|
};
|
|
1167
1168
|
}
|
|
1168
|
-
function
|
|
1169
|
-
let r =
|
|
1169
|
+
function Ut(e, t, n) {
|
|
1170
|
+
let r = Gt(n, t), { offset: i, max: a } = Ht(e, t);
|
|
1170
1171
|
return r ? i <= 0 : i >= a;
|
|
1171
1172
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return (
|
|
1173
|
+
function Wt(e, t, n, r) {
|
|
1174
|
+
return (Gt(n, t) ? r > 0 : r < 0) && Ut(e, t, n);
|
|
1174
1175
|
}
|
|
1175
|
-
function
|
|
1176
|
+
function Gt(e, t) {
|
|
1176
1177
|
return t === "vertical" ? e === "down" : e === "right";
|
|
1177
1178
|
}
|
|
1178
1179
|
//#endregion
|
|
1179
1180
|
//#region src/drawer/viewport/DrawerViewportCssVars.ts
|
|
1180
|
-
var
|
|
1181
|
+
var Kt = /* @__PURE__ */ function(e) {
|
|
1181
1182
|
return e.keyboardInset = "--drawer-keyboard-inset", e;
|
|
1182
|
-
}({}),
|
|
1183
|
+
}({}), qt = 60, Jt = 16, Yt = 48, Xt = 150, Zt = 4, Qt = 60, $t = 10, en = 16, tn = /* @__PURE__ */ new Set([
|
|
1183
1184
|
"email",
|
|
1184
1185
|
"number",
|
|
1185
1186
|
"password",
|
|
@@ -1187,27 +1188,27 @@ var Gt = /* @__PURE__ */ function(e) {
|
|
|
1187
1188
|
"tel",
|
|
1188
1189
|
"text",
|
|
1189
1190
|
"url"
|
|
1190
|
-
]),
|
|
1191
|
-
function
|
|
1192
|
-
let t =
|
|
1191
|
+
]), nn = Symbol("KeyboardTapBlocked");
|
|
1192
|
+
function rn(e) {
|
|
1193
|
+
let t = D(), n = t.store, r = !1, i = null, a = null, o = null, s = !1, c, l;
|
|
1193
1194
|
function u() {
|
|
1194
1195
|
c !== void 0 && (cancelAnimationFrame(c), c = void 0);
|
|
1195
1196
|
}
|
|
1196
|
-
function
|
|
1197
|
+
function p() {
|
|
1197
1198
|
l !== void 0 && (clearTimeout(l), l = void 0);
|
|
1198
1199
|
}
|
|
1199
|
-
function
|
|
1200
|
+
function g() {
|
|
1200
1201
|
let e = o;
|
|
1201
1202
|
e && (e.element.style.overflowAnchor = e.overflowAnchor, e.element.style.paddingBottom = e.paddingBottom, e.element.style.scrollPaddingBottom = e.scrollPaddingBottom, o = null);
|
|
1202
1203
|
}
|
|
1203
1204
|
function v(e, t) {
|
|
1204
1205
|
let n = Math.max(0, Math.ceil(t)), r = o;
|
|
1205
|
-
if (r && !r.element.isConnected && (
|
|
1206
|
-
|
|
1206
|
+
if (r && !r.element.isConnected && (g(), r = null), n === 0) {
|
|
1207
|
+
g();
|
|
1207
1208
|
return;
|
|
1208
1209
|
}
|
|
1209
|
-
if (r && r.element !== e && (
|
|
1210
|
-
let t =
|
|
1210
|
+
if (r && r.element !== e && (g(), r = null), !r) {
|
|
1211
|
+
let t = d(e).getComputedStyle(e);
|
|
1211
1212
|
r = {
|
|
1212
1213
|
element: e,
|
|
1213
1214
|
overflowAnchor: e.style.overflowAnchor,
|
|
@@ -1217,10 +1218,10 @@ function nn(e) {
|
|
|
1217
1218
|
computedScrollPaddingBottom: Number.parseFloat(t.scrollPaddingBottom) || 0
|
|
1218
1219
|
}, o = r;
|
|
1219
1220
|
}
|
|
1220
|
-
e.style.overflowAnchor = "none", e.style.paddingBottom = `${r.computedPaddingBottom + n}px`, e.style.scrollPaddingBottom = `${r.computedScrollPaddingBottom +
|
|
1221
|
+
e.style.overflowAnchor = "none", e.style.paddingBottom = `${r.computedPaddingBottom + n}px`, e.style.scrollPaddingBottom = `${r.computedScrollPaddingBottom + Jt}px`;
|
|
1221
1222
|
}
|
|
1222
1223
|
function y(e, t) {
|
|
1223
|
-
let n =
|
|
1224
|
+
let n = d(e).matchMedia?.("(prefers-reduced-motion: reduce)")?.matches ? "auto" : "smooth";
|
|
1224
1225
|
e.scrollTo({
|
|
1225
1226
|
top: t,
|
|
1226
1227
|
behavior: n
|
|
@@ -1237,24 +1238,24 @@ function nn(e) {
|
|
|
1237
1238
|
rootElement: t.viewportElement()
|
|
1238
1239
|
}), (e) => {
|
|
1239
1240
|
if (!e.mounted || !e.open) {
|
|
1240
|
-
a = null,
|
|
1241
|
+
a = null, g(), u();
|
|
1241
1242
|
return;
|
|
1242
1243
|
}
|
|
1243
1244
|
let t = e.rootElement;
|
|
1244
1245
|
if (!t) {
|
|
1245
|
-
|
|
1246
|
+
g();
|
|
1246
1247
|
return;
|
|
1247
1248
|
}
|
|
1248
|
-
let n =
|
|
1249
|
+
let n = m(t), r = d(t), i = r.visualViewport, o = e.nestedDrawerOpen, b = null, x = 0, S = 0, C = -1;
|
|
1249
1250
|
function w(e) {
|
|
1250
|
-
t.style.setProperty(
|
|
1251
|
+
t.style.setProperty(Kt.keyboardInset, `${Math.max(0, Math.ceil(e))}px`);
|
|
1251
1252
|
}
|
|
1252
1253
|
function T() {
|
|
1253
|
-
a = null, b = null, w(0),
|
|
1254
|
+
a = null, b = null, w(0), g(), u(), p();
|
|
1254
1255
|
}
|
|
1255
1256
|
let E = r.scrollX, D = r.scrollY;
|
|
1256
1257
|
function O() {
|
|
1257
|
-
return e.modal !== !0 || o || !a ||
|
|
1258
|
+
return e.modal !== !0 || o || !a || mn(r) == null ? !1 : r.scrollX !== E || r.scrollY !== D ? (r.scrollTo({
|
|
1258
1259
|
left: E,
|
|
1259
1260
|
top: D,
|
|
1260
1261
|
behavior: "instant"
|
|
@@ -1267,37 +1268,37 @@ function nn(e) {
|
|
|
1267
1268
|
function j(e, t) {
|
|
1268
1269
|
A();
|
|
1269
1270
|
let n = e.getBoundingClientRect();
|
|
1270
|
-
k =
|
|
1271
|
+
k = fn(e, (t.top + t.bottom - n.top - n.bottom) / 2);
|
|
1271
1272
|
}
|
|
1272
1273
|
function M() {
|
|
1273
|
-
|
|
1274
|
+
u(), A();
|
|
1274
1275
|
let e = a;
|
|
1275
|
-
if (o || !e || !
|
|
1276
|
-
w(0),
|
|
1276
|
+
if (o || !e || !h(t, e)) {
|
|
1277
|
+
w(0), g();
|
|
1277
1278
|
return;
|
|
1278
1279
|
}
|
|
1279
1280
|
O();
|
|
1280
|
-
let n =
|
|
1281
|
+
let n = mn(r);
|
|
1281
1282
|
if (!n) {
|
|
1282
|
-
w(0),
|
|
1283
|
+
w(0), g();
|
|
1283
1284
|
return;
|
|
1284
1285
|
}
|
|
1285
1286
|
w(Math.max(0, r.innerHeight - n.bottom));
|
|
1286
|
-
let i =
|
|
1287
|
+
let i = pn(e, t);
|
|
1287
1288
|
if (!i) {
|
|
1288
|
-
|
|
1289
|
+
g();
|
|
1289
1290
|
return;
|
|
1290
1291
|
}
|
|
1291
|
-
let s = i.getBoundingClientRect(),
|
|
1292
|
-
v(i,
|
|
1292
|
+
let s = i.getBoundingClientRect(), c = Math.min(s.bottom, n.bottom), l = Math.max(0, s.bottom - n.bottom);
|
|
1293
|
+
v(i, l > 0 ? l + Yt : 0);
|
|
1293
1294
|
let d = Math.max(0, i.scrollHeight - i.clientHeight);
|
|
1294
1295
|
if (d <= 0) return;
|
|
1295
|
-
let
|
|
1296
|
-
if (
|
|
1297
|
-
let
|
|
1296
|
+
let f = Math.max(s.top, n.top) + Jt, p = c - Jt;
|
|
1297
|
+
if (p <= f) return;
|
|
1298
|
+
let m = e.getBoundingClientRect(), _ = i.scrollTop + (m.top + m.bottom - f - p) / 2, T = Math.round(z(_, 0, d));
|
|
1298
1299
|
if (!(b === i && Math.abs(x - T) <= 1)) {
|
|
1299
1300
|
let e = b === i ? S + 1 : 1;
|
|
1300
|
-
if (b = i, x = T, S = e, C = -1, e <=
|
|
1301
|
+
if (b = i, x = T, S = e, C = -1, e <= Qt) {
|
|
1301
1302
|
N();
|
|
1302
1303
|
return;
|
|
1303
1304
|
}
|
|
@@ -1315,44 +1316,44 @@ function nn(e) {
|
|
|
1315
1316
|
u(), c = requestAnimationFrame(M);
|
|
1316
1317
|
}
|
|
1317
1318
|
function P() {
|
|
1318
|
-
let e =
|
|
1319
|
-
l = void 0, M(), --e, e > 0 && (l = setTimeout(t,
|
|
1319
|
+
let e = Zt, t = () => {
|
|
1320
|
+
l = void 0, M(), --e, e > 0 && (l = setTimeout(t, Xt));
|
|
1320
1321
|
};
|
|
1321
|
-
|
|
1322
|
+
p(), l = setTimeout(t, Xt);
|
|
1322
1323
|
}
|
|
1323
1324
|
function F(e) {
|
|
1324
1325
|
if (o) return !1;
|
|
1325
|
-
let n =
|
|
1326
|
-
return !n || !
|
|
1326
|
+
let n = on(e);
|
|
1327
|
+
return !n || !h(t, n) ? !1 : (a !== n && (b = null), a = n, !0);
|
|
1327
1328
|
}
|
|
1328
1329
|
function I(e) {
|
|
1329
|
-
if (s = !1, A(), !F(
|
|
1330
|
+
if (s = !1, A(), !F(f(e))) {
|
|
1330
1331
|
T();
|
|
1331
1332
|
return;
|
|
1332
1333
|
}
|
|
1333
|
-
|
|
1334
|
+
mn(r) != null && P(), N();
|
|
1334
1335
|
}
|
|
1335
|
-
function
|
|
1336
|
+
function L(e) {
|
|
1336
1337
|
if (!s) {
|
|
1337
1338
|
if (F(e.relatedTarget)) {
|
|
1338
|
-
let e = a, t =
|
|
1339
|
+
let e = a, t = mn(r);
|
|
1339
1340
|
e && t && j(e, t), N();
|
|
1340
1341
|
return;
|
|
1341
1342
|
}
|
|
1342
1343
|
T();
|
|
1343
1344
|
}
|
|
1344
1345
|
}
|
|
1345
|
-
function
|
|
1346
|
+
function ee() {
|
|
1346
1347
|
(a || F(_(n))) && N();
|
|
1347
1348
|
}
|
|
1348
1349
|
function R() {
|
|
1349
1350
|
O() && N();
|
|
1350
1351
|
}
|
|
1351
1352
|
function te() {
|
|
1352
|
-
u(),
|
|
1353
|
+
u(), p(), b = null;
|
|
1353
1354
|
}
|
|
1354
|
-
return i?.addEventListener("resize",
|
|
1355
|
-
i?.removeEventListener("resize",
|
|
1355
|
+
return i?.addEventListener("resize", ee), i?.addEventListener("scroll", ee), n.addEventListener("focusin", I, !0), n.addEventListener("focusout", L, !0), r.addEventListener("scroll", R), n.addEventListener("pointerdown", te, !0), F(_(n)) && N(), () => {
|
|
1356
|
+
i?.removeEventListener("resize", ee), i?.removeEventListener("scroll", ee), n.removeEventListener("focusin", I, !0), n.removeEventListener("focusout", L, !0), r.removeEventListener("scroll", R), n.removeEventListener("pointerdown", te, !0), A(), T(), t.style.removeProperty(Kt.keyboardInset);
|
|
1356
1357
|
};
|
|
1357
1358
|
});
|
|
1358
1359
|
function x(e) {
|
|
@@ -1364,7 +1365,7 @@ function nn(e) {
|
|
|
1364
1365
|
}
|
|
1365
1366
|
function S(e) {
|
|
1366
1367
|
let t = e.touches[0];
|
|
1367
|
-
!t || !i || r || (Math.abs(t.clientX - i.x) >
|
|
1368
|
+
!t || !i || r || (Math.abs(t.clientX - i.x) > $t || Math.abs(t.clientY - i.y) > $t) && (r = !0);
|
|
1368
1369
|
}
|
|
1369
1370
|
function C(e) {
|
|
1370
1371
|
let a = t.viewportElement();
|
|
@@ -1372,38 +1373,38 @@ function nn(e) {
|
|
|
1372
1373
|
b();
|
|
1373
1374
|
return;
|
|
1374
1375
|
}
|
|
1375
|
-
let o = e.changedTouches[0] ?? e.touches[0], c = a.getRootNode(), l = o ?
|
|
1376
|
-
if (l ===
|
|
1376
|
+
let o = e.changedTouches[0] ?? e.touches[0], c = a.getRootNode(), l = o ? ln(c, o.clientX, o.clientY) : null;
|
|
1377
|
+
if (l === nn) {
|
|
1377
1378
|
b();
|
|
1378
1379
|
return;
|
|
1379
1380
|
}
|
|
1380
|
-
let u = o && (l ??
|
|
1381
|
-
if (u && (!
|
|
1381
|
+
let u = o && (l ?? sn(f(e)));
|
|
1382
|
+
if (u && (!h(a, u.focusTarget) || !h(a, u.clickTarget))) {
|
|
1382
1383
|
b();
|
|
1383
1384
|
return;
|
|
1384
1385
|
}
|
|
1385
1386
|
if (u) {
|
|
1386
|
-
let { clickTarget: t, focusTarget: n } = u, r =
|
|
1387
|
+
let { clickTarget: t, focusTarget: n } = u, r = d(n);
|
|
1387
1388
|
if (r.visualViewport && r.visualViewport.scale !== 1) {
|
|
1388
1389
|
b();
|
|
1389
1390
|
return;
|
|
1390
1391
|
}
|
|
1391
|
-
if (_(
|
|
1392
|
+
if (_(m(n)) === n && (!r.visualViewport || mn(r) != null)) {
|
|
1392
1393
|
b();
|
|
1393
1394
|
return;
|
|
1394
1395
|
}
|
|
1395
1396
|
e.preventDefault(), s = !0;
|
|
1396
1397
|
try {
|
|
1397
|
-
|
|
1398
|
+
dn(n);
|
|
1398
1399
|
} finally {
|
|
1399
1400
|
s = !1;
|
|
1400
1401
|
}
|
|
1401
|
-
|
|
1402
|
+
un(t, o), b();
|
|
1402
1403
|
return;
|
|
1403
1404
|
}
|
|
1404
1405
|
b();
|
|
1405
1406
|
}
|
|
1406
|
-
return B(
|
|
1407
|
+
return B(mt, {
|
|
1407
1408
|
value: {
|
|
1408
1409
|
onTouchStart: x,
|
|
1409
1410
|
onTouchMove: S,
|
|
@@ -1415,47 +1416,47 @@ function nn(e) {
|
|
|
1415
1416
|
}
|
|
1416
1417
|
});
|
|
1417
1418
|
}
|
|
1418
|
-
function
|
|
1419
|
+
function an(e) {
|
|
1419
1420
|
if (e.isContentEditable) return !0;
|
|
1420
|
-
let t =
|
|
1421
|
-
return e instanceof t.HTMLTextAreaElement || e instanceof t.HTMLInputElement &&
|
|
1421
|
+
let t = d(e);
|
|
1422
|
+
return e instanceof t.HTMLTextAreaElement || e instanceof t.HTMLInputElement && tn.has(e.type) ? !e.matches(":disabled") : !1;
|
|
1422
1423
|
}
|
|
1423
|
-
function
|
|
1424
|
-
if (!
|
|
1425
|
-
if (
|
|
1424
|
+
function on(e) {
|
|
1425
|
+
if (!p(e)) return null;
|
|
1426
|
+
if (an(e)) return e.isContentEditable ? cn(e) : e;
|
|
1426
1427
|
let t = e.closest("label")?.control ?? null;
|
|
1427
|
-
return
|
|
1428
|
+
return p(t) && an(t) ? t : null;
|
|
1428
1429
|
}
|
|
1429
|
-
function
|
|
1430
|
-
if (!
|
|
1431
|
-
let t =
|
|
1430
|
+
function sn(e) {
|
|
1431
|
+
if (!p(e)) return null;
|
|
1432
|
+
let t = on(e);
|
|
1432
1433
|
return t ? {
|
|
1433
1434
|
focusTarget: t,
|
|
1434
1435
|
clickTarget: e
|
|
1435
1436
|
} : null;
|
|
1436
1437
|
}
|
|
1437
|
-
function
|
|
1438
|
+
function cn(e) {
|
|
1438
1439
|
let t = e;
|
|
1439
1440
|
for (; t.parentElement?.isContentEditable;) t = t.parentElement;
|
|
1440
1441
|
return t;
|
|
1441
1442
|
}
|
|
1442
|
-
function
|
|
1443
|
-
let r =
|
|
1444
|
-
if (
|
|
1445
|
-
let e =
|
|
1443
|
+
function ln(e, t, n) {
|
|
1444
|
+
let r = te(e, t, n);
|
|
1445
|
+
if (p(r)) {
|
|
1446
|
+
let e = on(r);
|
|
1446
1447
|
if (e) return {
|
|
1447
1448
|
focusTarget: e,
|
|
1448
1449
|
clickTarget: r
|
|
1449
1450
|
};
|
|
1450
1451
|
}
|
|
1451
|
-
if (
|
|
1452
|
+
if (v(r) || r?.closest("label") != null) return nn;
|
|
1452
1453
|
for (let [r, i] of [
|
|
1453
|
-
[0,
|
|
1454
|
+
[0, en],
|
|
1454
1455
|
[0, -16],
|
|
1455
|
-
[
|
|
1456
|
+
[en, 0],
|
|
1456
1457
|
[-16, 0]
|
|
1457
1458
|
]) {
|
|
1458
|
-
let a =
|
|
1459
|
+
let a = on(te(e, t + r, n + i));
|
|
1459
1460
|
if (a) return {
|
|
1460
1461
|
focusTarget: a,
|
|
1461
1462
|
clickTarget: a
|
|
@@ -1463,8 +1464,8 @@ function cn(e, t, n) {
|
|
|
1463
1464
|
}
|
|
1464
1465
|
return null;
|
|
1465
1466
|
}
|
|
1466
|
-
function
|
|
1467
|
-
let n =
|
|
1467
|
+
function un(e, t) {
|
|
1468
|
+
let n = d(e), r = n.PointerEvent ?? n.MouseEvent, i = {
|
|
1468
1469
|
bubbles: !0,
|
|
1469
1470
|
cancelable: !0,
|
|
1470
1471
|
clientX: t.clientX,
|
|
@@ -1481,27 +1482,27 @@ function ln(e, t) {
|
|
|
1481
1482
|
}
|
|
1482
1483
|
e.dispatchEvent(a);
|
|
1483
1484
|
}
|
|
1484
|
-
function
|
|
1485
|
-
let t = _(
|
|
1485
|
+
function dn(e) {
|
|
1486
|
+
let t = _(m(e)) === e, n = fn(e, -2e3);
|
|
1486
1487
|
try {
|
|
1487
1488
|
t && e.blur(), e.focus({ preventScroll: !0 });
|
|
1488
1489
|
} finally {
|
|
1489
1490
|
n();
|
|
1490
1491
|
}
|
|
1491
1492
|
}
|
|
1492
|
-
function
|
|
1493
|
+
function fn(e, t) {
|
|
1493
1494
|
let n = e.style.opacity, r = e.style.transform, i = e.style.transition;
|
|
1494
1495
|
return e.style.transition = "none", e.style.opacity = "0", e.style.transform = `translateY(${t}px)`, () => {
|
|
1495
1496
|
e.style.opacity = n, e.style.transform = r, e.style.transition = i;
|
|
1496
1497
|
};
|
|
1497
1498
|
}
|
|
1498
|
-
function
|
|
1499
|
-
let n =
|
|
1500
|
-
return
|
|
1499
|
+
function pn(e, t) {
|
|
1500
|
+
let n = F(e);
|
|
1501
|
+
return I(n, t, "vertical") ?? I(n, t, "vertical", !0);
|
|
1501
1502
|
}
|
|
1502
|
-
function
|
|
1503
|
+
function mn(e) {
|
|
1503
1504
|
let t = e.visualViewport;
|
|
1504
|
-
if (!t || t.scale !== 1 || e.innerHeight - t.height <=
|
|
1505
|
+
if (!t || t.scale !== 1 || e.innerHeight - t.height <= qt) return null;
|
|
1505
1506
|
let n = Math.max(0, t.offsetTop);
|
|
1506
1507
|
return {
|
|
1507
1508
|
top: n,
|
|
@@ -1510,30 +1511,30 @@ function pn(e) {
|
|
|
1510
1511
|
}
|
|
1511
1512
|
//#endregion
|
|
1512
1513
|
//#region src/drawer/handle.ts
|
|
1513
|
-
var
|
|
1514
|
-
function
|
|
1515
|
-
return new
|
|
1514
|
+
var hn = class extends P {};
|
|
1515
|
+
function gn() {
|
|
1516
|
+
return new hn();
|
|
1516
1517
|
}
|
|
1517
1518
|
//#endregion
|
|
1518
1519
|
//#region src/drawer/index.parts.ts
|
|
1519
|
-
var
|
|
1520
|
-
Backdrop: () =>
|
|
1521
|
-
Close: () =>
|
|
1522
|
-
Content: () =>
|
|
1523
|
-
Description: () =>
|
|
1524
|
-
Handle: () =>
|
|
1525
|
-
Indent: () =>
|
|
1526
|
-
IndentBackground: () =>
|
|
1527
|
-
Popup: () =>
|
|
1528
|
-
Portal: () =>
|
|
1529
|
-
Provider: () =>
|
|
1530
|
-
Root: () =>
|
|
1531
|
-
SwipeArea: () =>
|
|
1532
|
-
Title: () =>
|
|
1533
|
-
Trigger: () =>
|
|
1534
|
-
Viewport: () =>
|
|
1535
|
-
VirtualKeyboardProvider: () =>
|
|
1536
|
-
createHandle: () =>
|
|
1520
|
+
var _n = /* @__PURE__ */ e({
|
|
1521
|
+
Backdrop: () => Z,
|
|
1522
|
+
Close: () => k,
|
|
1523
|
+
Content: () => _e,
|
|
1524
|
+
Description: () => w,
|
|
1525
|
+
Handle: () => hn,
|
|
1526
|
+
Indent: () => De,
|
|
1527
|
+
IndentBackground: () => Te,
|
|
1528
|
+
Popup: () => qe,
|
|
1529
|
+
Portal: () => j,
|
|
1530
|
+
Provider: () => Je,
|
|
1531
|
+
Root: () => Xe,
|
|
1532
|
+
SwipeArea: () => ft,
|
|
1533
|
+
Title: () => C,
|
|
1534
|
+
Trigger: () => O,
|
|
1535
|
+
Viewport: () => kt,
|
|
1536
|
+
VirtualKeyboardProvider: () => rn,
|
|
1537
|
+
createHandle: () => gn
|
|
1537
1538
|
});
|
|
1538
1539
|
//#endregion
|
|
1539
|
-
export {
|
|
1540
|
+
export { _n as t };
|