@lettuceai/crisp 1.6.2 → 1.6.4

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.
@@ -17,7 +17,7 @@ export interface AppBarProps {
17
17
  * defaults to the window.
18
18
  */
19
19
  scrollRef?: React.RefObject<HTMLElement | null>;
20
- /** Desktop window chrome sits above; leave room for it. */
20
+ /** Leave room for the status bar above (the top safe area, zero on the desktop). Default on. */
21
21
  inset?: boolean;
22
22
  className?: string;
23
23
  }
package/dist/index.js CHANGED
@@ -627,7 +627,7 @@ var wt = a(function({ className: e, id: t, rows: n = 4, autoGrow: r, maxRows: i
627
627
  wt.displayName = "Textarea";
628
628
  //#endregion
629
629
  //#region src/components/AppBar.tsx
630
- function Tt({ title: e, meta: t, onBack: n, backLabel: r, searchValue: i, onSearchChange: a, searchPlaceholder: o, actions: s, filters: c, scrollRef: u, inset: d, className: f }) {
630
+ function Tt({ title: e, meta: t, onBack: n, backLabel: r, searchValue: i, onSearchChange: a, searchPlaceholder: o, actions: s, filters: c, scrollRef: u, inset: d = !0, className: f }) {
631
631
  let { strings: h } = G(), [g, _] = m(!1), [v, y] = m(!1), b = p(null);
632
632
  l(() => {
633
633
  let e = u?.current ?? window, t = () => u?.current ? u.current.scrollTop : window.scrollY, n = () => _(t() > 12);
@@ -3552,7 +3552,7 @@ function jr({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3552
3552
  })
3553
3553
  }),
3554
3554
  /* @__PURE__ */ H("div", {
3555
- className: U("flex items-center gap-2 px-4", I ? "pb-3 pt-1.5" : "py-4"),
3555
+ className: U("flex items-center gap-2 px-4", I ? "pb-3 pt-1.5" : "py-4 [@media(pointer:coarse)]:py-2"),
3556
3556
  children: [
3557
3557
  i && /* @__PURE__ */ V("div", {
3558
3558
  className: "shrink-0",
@@ -7430,6 +7430,12 @@ function uo({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7430
7430
  left: 16,
7431
7431
  right: 16
7432
7432
  },
7433
+ mobileOffset: {
7434
+ bottom: `calc(env(safe-area-inset-bottom) + ${16 + t}px)`,
7435
+ top: "calc(env(safe-area-inset-top) + 16px)",
7436
+ left: 16,
7437
+ right: 16
7438
+ },
7433
7439
  toastOptions: {
7434
7440
  unstyled: !0,
7435
7441
  classNames: { toast: "w-full" }