@floegence/floe-webapp-core 0.90.9 → 0.90.11

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.
@@ -6,8 +6,8 @@ import { X as de } from "../icons/index.js";
6
6
  import { useResolvedFloeConfig as se } from "../../context/FloeConfigContext.js";
7
7
  import { useOverlayMask as fe } from "../../hooks/useOverlayMask.js";
8
8
  import { resolveSurfacePortalHost as ce, DIALOG_SURFACE_BOUNDARY_ATTR as S, SURFACE_PORTAL_LAYER_ATTR as ue, DIALOG_SURFACE_HOST_ATTR as ge, isSurfacePortalMode as z, projectSurfacePortalRect as me, resolveSurfacePortalBoundaryRect as he, resolveSurfacePortalMount as ve } from "./dialogSurfaceScope.js";
9
- import { LOCAL_INTERACTION_SURFACE_ATTR as ye } from "./localInteractionSurface.js";
10
- import { createFloatingPresence as be } from "./floatingPresence.js";
9
+ import { LOCAL_INTERACTION_SURFACE_ATTR as be } from "./localInteractionSurface.js";
10
+ import { createFloatingPresence as ye } from "./floatingPresence.js";
11
11
  import { observeDialogHeight as we } from "./dialogHeightMotion.js";
12
12
  import { useDialogPlacement as pe } from "./DialogPlacementContext.js";
13
13
  import { observeViewport as xe, viewportStyle as $e } from "../../viewport.js";
@@ -41,7 +41,7 @@ function Ie(e) {
41
41
  le(() => B(xe(window, W)));
42
42
  const f = ie(), F = () => `dialog-${f}-title`, L = () => `dialog-${f}-description`;
43
43
  let A;
44
- const [O, Y] = T(null), [N, X] = T(0), [J, Q] = T(0), C = () => e.presentation === "side-drawer", h = () => e.presentation === "bottom-drawer", i = be({
44
+ const [O, Y] = T(null), [N, X] = T(0), [J, Q] = T(0), C = () => e.presentation === "side-drawer", h = () => e.presentation === "bottom-drawer", i = ye({
45
45
  open: () => e.open && !!O() && N() > 0,
46
46
  element: () => A
47
47
  }), v = () => i.mounted() && !!O() && N() > 0;
@@ -67,19 +67,19 @@ function Ie(e) {
67
67
  const t = R();
68
68
  if (!v() || !a() || typeof window > "u")
69
69
  return;
70
- let l = !1, y = null, d = Z(I(t));
71
- const b = () => {
70
+ let l = !1, b = null, d = Z(I(t));
71
+ const y = () => {
72
72
  if (l || !z(t))
73
73
  return;
74
74
  const o = Z(I(t));
75
75
  o !== d && (d = o, Q((w) => w + 1));
76
76
  }, k = () => {
77
- l || (y = Be(() => {
78
- b(), k();
77
+ l || (b = Be(() => {
78
+ y(), k();
79
79
  }));
80
80
  };
81
81
  k(), B(() => {
82
- l = !0, y !== null && Fe(y);
82
+ l = !0, b !== null && Fe(b);
83
83
  });
84
84
  }), fe({
85
85
  open: v,
@@ -108,7 +108,7 @@ function Ie(e) {
108
108
  return te();
109
109
  },
110
110
  get children() {
111
- var t = Re(), l = t.firstChild, y = l.nextSibling, d = y.firstChild, b = d.firstChild;
111
+ var t = Re(), l = t.firstChild, b = l.nextSibling, d = b.firstChild, y = d.firstChild;
112
112
  c(t, "data-floe-dialog-overlay-root", f), E(t, M({
113
113
  get "data-floe-dialog-mode"() {
114
114
  return a() ? "surface" : "global";
@@ -123,7 +123,7 @@ function Ie(e) {
123
123
  return i.exiting() ? "true" : void 0;
124
124
  }
125
125
  }, {
126
- [ye]: "true"
126
+ [be]: "true"
127
127
  }, () => ({
128
128
  [ue]: "true",
129
129
  [S]: _()
@@ -247,7 +247,7 @@ function Ie(e) {
247
247
  }
248
248
  });
249
249
  }
250
- }), b), s(b, r(u, {
250
+ }), y), s(y, r(u, {
251
251
  get when() {
252
252
  return e.bodyDescription;
253
253
  },
@@ -255,7 +255,7 @@ function Ie(e) {
255
255
  var o = Se();
256
256
  return s(o, () => e.bodyDescription), P(() => c(o, "id", L())), o;
257
257
  }
258
- }), null), s(b, () => e.children, null), s(d, r(u, {
258
+ }), null), s(y, () => e.children, null), s(d, r(u, {
259
259
  get when() {
260
260
  return e.footer;
261
261
  },
@@ -264,8 +264,8 @@ function Ie(e) {
264
264
  return s(o, () => e.footer), o;
265
265
  }
266
266
  }), null), P((o) => {
267
- var w = g("pointer-events-none relative z-[1] flex h-full w-full", C() ? e.drawerSide === "left" ? "items-stretch justify-start" : "items-stretch justify-end" : h() ? "items-end justify-center" : "items-center justify-center"), p = g("min-h-0 flex-1 overflow-auto overscroll-contain px-[var(--floe-pad-group)] py-[var(--floe-pad-group)]", e.contentClass);
268
- return w !== o.e && K(y, o.e = w), p !== o.t && K(b, o.t = p), o;
267
+ var w = g("pointer-events-none relative z-[1] flex h-full w-full", C() ? e.drawerSide === "left" ? "items-stretch justify-start" : "items-stretch justify-end" : h() ? "items-end justify-center" : "items-center justify-center"), p = g("min-h-0 flex-1 overflow-auto overscroll-contain px-[var(--floe-pad-group)] py-[var(--floe-pad-group)] [&.overflow-auto]:[scrollbar-gutter:stable]", e.contentClass);
268
+ return w !== o.e && K(b, o.e = w), p !== o.t && K(y, o.t = p), o;
269
269
  }, {
270
270
  e: void 0,
271
271
  t: void 0
@@ -280,7 +280,8 @@ function U(e) {
280
280
  },
281
281
  get style() {
282
282
  return {
283
- width: ue() + "px",
283
+ width: "max-content",
284
+ "min-width": ue() + "px",
284
285
  "max-width": "calc(100vw - 24px)"
285
286
  };
286
287
  },