@levo-so/studio 0.3.5 → 0.3.6

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.
Files changed (3) hide show
  1. package/index.js +17 -11
  2. package/package.json +3 -3
  3. package/studio.css +1 -1
package/index.js CHANGED
@@ -10249,8 +10249,13 @@ var rd = {
10249
10249
  return R(() => {
10250
10250
  let e = typeof window > "u" ? null : window.visualViewport;
10251
10251
  if (!e) return;
10252
- let n = () => t(e.height);
10253
- return n(), e.addEventListener("resize", n), () => e.removeEventListener("resize", n);
10252
+ let n = () => t({
10253
+ height: e.height,
10254
+ offsetTop: e.offsetTop
10255
+ });
10256
+ return n(), e.addEventListener("resize", n), e.addEventListener("scroll", n), () => {
10257
+ e.removeEventListener("resize", n), e.removeEventListener("scroll", n);
10258
+ };
10254
10259
  }, []), e;
10255
10260
  }, lf = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),summary,[tabindex]:not([tabindex=\"-1\"])", uf = (e) => {
10256
10261
  R(() => {
@@ -10292,17 +10297,21 @@ var rd = {
10292
10297
  children: /* @__PURE__ */ W("div", {
10293
10298
  className: "flex min-h-full flex-col",
10294
10299
  children: [/* @__PURE__ */ U("div", {
10295
- className: "px-5 pt-4 pb-3",
10300
+ className: "flex flex-1 flex-col px-5 pt-4 pb-3",
10296
10301
  children: l
10297
10302
  }), s && /* @__PURE__ */ U("div", {
10298
- className: "mt-auto border-t bg-page px-5 pt-3 pb-[max(env(safe-area-inset-bottom),16px)] [border-color:var(--color-border)] sm:sticky sm:bottom-0 sm:z-10",
10303
+ className: "border-t bg-page px-5 pt-3 pb-[max(env(safe-area-inset-bottom),16px)] [border-color:var(--color-border)] sm:sticky sm:bottom-0 sm:z-10",
10299
10304
  children: s
10300
10305
  })]
10301
10306
  })
10302
10307
  });
10303
10308
  return /* @__PURE__ */ U(zn.Root, { children: /* @__PURE__ */ U("div", {
10304
- className: M("fixed inset-0 z-[2147483000] flex items-end justify-center bg-black/40 fill-mode-forwards sm:items-start", "sm:backdrop-blur-[3px]", i ? "fade-out-0 pointer-events-none animate-out ease-out" : "fade-in-0 animate-in ease-out"),
10305
- style: { animationDuration: `${i ? 160 : sf}ms` },
10309
+ className: M("fixed inset-x-0 z-[2147483000] flex h-[var(--viewport-height)] items-end justify-center bg-black/40 fill-mode-forwards sm:items-start", "sm:backdrop-blur-[3px]", i ? "fade-out-0 pointer-events-none animate-out ease-out" : "fade-in-0 animate-in ease-out"),
10310
+ style: {
10311
+ animationDuration: `${i ? 160 : sf}ms`,
10312
+ "--viewport-height": f ? `${f.height}px` : "100dvh",
10313
+ top: f ? `${f.offsetTop}px` : 0
10314
+ },
10306
10315
  onMouseDown: (e) => {
10307
10316
  e.target === e.currentTarget && a();
10308
10317
  },
@@ -10311,11 +10320,8 @@ var rd = {
10311
10320
  role: "dialog",
10312
10321
  "aria-modal": "true",
10313
10322
  "aria-labelledby": u,
10314
- className: M("relative flex h-[var(--sheet-height)] max-h-[var(--sheet-height)] w-full flex-col overflow-hidden bg-page will-change-transform", "sm:mt-[6vh] sm:h-auto sm:max-h-[88dvh] sm:rounded-2xl sm:border sm:shadow-2xl sm:[border-color:var(--color-border)]", "fill-mode-forwards ease-out", i ? "slide-out-to-bottom-4 fade-out-0 sm:slide-out-to-bottom-2 animate-out" : "slide-in-from-bottom-4 fade-in-0 sm:slide-in-from-bottom-2 animate-in", c ? "sm:max-w-[540px]" : "sm:max-w-[460px]"),
10315
- style: {
10316
- animationDuration: `${i ? 160 : sf}ms`,
10317
- "--sheet-height": f ? `${f}px` : "100dvh"
10318
- },
10323
+ className: M("relative flex h-full max-h-full w-full flex-col overflow-hidden bg-page will-change-transform", "sm:mt-[6vh] sm:h-auto sm:max-h-[88dvh] sm:rounded-2xl sm:border sm:shadow-2xl sm:[border-color:var(--color-border)]", "fill-mode-forwards ease-out", i ? "slide-out-to-bottom-4 fade-out-0 sm:slide-out-to-bottom-2 animate-out" : "slide-in-from-bottom-4 fade-in-0 sm:slide-in-from-bottom-2 animate-in", c ? "sm:max-w-[540px]" : "sm:max-w-[460px]"),
10324
+ style: { animationDuration: `${i ? 160 : sf}ms` },
10319
10325
  children: [/* @__PURE__ */ W("div", {
10320
10326
  className: M("sticky top-0 z-10 shrink-0 border-b bg-page px-5 pt-[max(env(safe-area-inset-top),16px)] pb-3.5 transition-colors", p ? "[border-color:var(--color-border)]" : "border-transparent"),
10321
10327
  children: [/* @__PURE__ */ W("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo Studio components and utilities for building block-based pages",
6
6
  "type": "module",
@@ -119,8 +119,8 @@
119
119
  "react": ">=19",
120
120
  "next": ">=14",
121
121
  "react-dom": ">=19",
122
- "@levo-so/core": "0.2.1",
122
+ "@levo-so/insights": "0.2.1",
123
123
  "@levo-so/react": "0.2.1",
124
- "@levo-so/insights": "0.2.1"
124
+ "@levo-so/core": "0.2.1"
125
125
  }
126
126
  }