@linktr.ee/messaging-react 4.3.1 → 4.3.2-rc-1787593676

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/dist/index.js CHANGED
@@ -1838,7 +1838,10 @@ var ir = ({ src: e, filename: t, fileSize: n, mimeType: r, title: i, items: a })
1838
1838
  }, vr = "--mes-single-width-cap", yr = "[--mes-single-width-cap:309px] sm:[--mes-single-width-cap:326px]", br = 436, xr = ({ tiles: e, onTileActivate: t, maxVisible: n = 4, singleAspectRatio: r, className: i }) => {
1839
1839
  let a = e.length;
1840
1840
  if (a === 0) return null;
1841
- let o = e.slice(0, Math.min(a, n)), s = a - o.length, c = (e, n, r) => {
1841
+ let o = e.slice(0, Math.min(a, n)), s = a - o.length, c = s > 0 ? /* @__PURE__ */ G("div", {
1842
+ className: "absolute inset-0 flex items-center justify-center bg-black/55 text-2xl font-semibold text-white",
1843
+ children: ["+", s]
1844
+ }) : null, l = (e, n, r) => {
1842
1845
  let i = J(gr, "h-full w-full", _r[o.length]?.[n]);
1843
1846
  return t ? /* @__PURE__ */ G("button", {
1844
1847
  type: "button",
@@ -1850,36 +1853,33 @@ var ir = ({ src: e, filename: t, fileSize: n, mimeType: r, title: i, items: a })
1850
1853
  className: i,
1851
1854
  children: [e.content, r]
1852
1855
  }, n);
1853
- }, l;
1854
- return r && (l = {
1856
+ }, u;
1857
+ return r && (u = {
1855
1858
  aspectRatio: r,
1856
1859
  width: `min(var(${vr}), ${Math.round(br * r * 100) / 100}px)`,
1857
1860
  maxWidth: "100%"
1858
1861
  }), o.length === 1 ? /* @__PURE__ */ W("div", {
1859
1862
  className: J(r ? yr : "aspect-square w-full", i),
1860
- style: l,
1861
- children: c(o[0], 0)
1863
+ style: u,
1864
+ children: l(o[0], 0, c)
1862
1865
  }) : o.length === 2 ? /* @__PURE__ */ W("div", {
1863
1866
  className: J("grid aspect-[16/9] w-full grid-cols-2 gap-0.5", i),
1864
- children: o.map((e, t) => c(e, t))
1867
+ children: o.map((e, t) => l(e, t, t === o.length - 1 ? c : null))
1865
1868
  }) : o.length === 3 ? /* @__PURE__ */ G("div", {
1866
1869
  className: J("grid aspect-[4/3] w-full grid-cols-2 grid-rows-2 gap-0.5", i),
1867
1870
  children: [
1868
1871
  /* @__PURE__ */ W("div", {
1869
1872
  className: "row-span-2",
1870
- children: c(o[0], 0)
1873
+ children: l(o[0], 0)
1871
1874
  }),
1872
- c(o[1], 1),
1873
- c(o[2], 2)
1875
+ l(o[1], 1),
1876
+ l(o[2], 2, c)
1874
1877
  ]
1875
1878
  }) : /* @__PURE__ */ W("div", {
1876
1879
  className: J("grid aspect-[379/286] w-full grid-cols-2 grid-rows-2 gap-0.5", i),
1877
1880
  children: o.map((e, t) => {
1878
1881
  let n = s > 0 && t === o.length - 1;
1879
- return c(e, t, n ? /* @__PURE__ */ G("div", {
1880
- className: "absolute inset-0 flex items-center justify-center bg-black/55 text-2xl font-semibold text-white",
1881
- children: ["+", s]
1882
- }) : null);
1882
+ return l(e, t, n ? c : null);
1883
1883
  })
1884
1884
  });
1885
1885
  }, Sr = (e) => {