moduix 0.5.5 → 0.5.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.
package/dist/index.js CHANGED
@@ -1909,22 +1909,22 @@ function Xr({ className: t, ...n }) {
1909
1909
  });
1910
1910
  }
1911
1911
  var V = {
1912
- indentBackground: "_indentBackground_1hl5x_2",
1913
- indent: "_indent_1hl5x_2",
1914
- trigger: "_trigger_1hl5x_31",
1915
- close: "_close_1hl5x_32",
1916
- swipeArea: "_swipeArea_1hl5x_66",
1917
- backdrop: "_backdrop_1hl5x_104",
1918
- viewport: "_viewport_1hl5x_128",
1919
- popup: "_popup_1hl5x_143",
1920
- handle: "_handle_1hl5x_451",
1921
- content: "_content_1hl5x_476",
1922
- header: "_header_1hl5x_489",
1923
- title: "_title_1hl5x_510",
1924
- description: "_description_1hl5x_518",
1925
- body: "_body_1hl5x_525",
1926
- footer: "_footer_1hl5x_531",
1927
- snapToggle: "_snapToggle_1hl5x_538"
1912
+ indentBackground: "_indentBackground_1m29q_2",
1913
+ indent: "_indent_1m29q_2",
1914
+ trigger: "_trigger_1m29q_31",
1915
+ close: "_close_1m29q_32",
1916
+ swipeArea: "_swipeArea_1m29q_66",
1917
+ backdrop: "_backdrop_1m29q_104",
1918
+ viewport: "_viewport_1m29q_128",
1919
+ popup: "_popup_1m29q_143",
1920
+ handle: "_handle_1m29q_451",
1921
+ content: "_content_1m29q_476",
1922
+ header: "_header_1m29q_497",
1923
+ title: "_title_1m29q_518",
1924
+ description: "_description_1m29q_526",
1925
+ body: "_body_1m29q_533",
1926
+ footer: "_footer_1m29q_547",
1927
+ snapToggle: "_snapToggle_1m29q_554"
1928
1928
  };
1929
1929
  //#endregion
1930
1930
  //#region src/components/Drawer/Drawer.tsx
@@ -2073,43 +2073,44 @@ function gi({ className: t, ...n }) {
2073
2073
  ...n
2074
2074
  });
2075
2075
  }
2076
- function _i({ withBackdrop: n = !0, withHandle: i = !0, snap: a = !1, variant: o = "bleed", disableInitialAnimation: s = !1, className: c, portalClassName: l, backdropClassName: u, viewportClassName: d, contentClassName: f, handleClassName: p, portalProps: m, backdropProps: h, viewportProps: g, contentProps: _, handleProps: v, children: y, ...ee }) {
2077
- let [b, x] = r.useState(!s);
2076
+ function _i({ withBackdrop: n = !0, withHandle: i = !0, snap: a = !1, scroll: o = "content", variant: s = "bleed", disableInitialAnimation: c = !1, className: l, portalClassName: u, backdropClassName: d, viewportClassName: f, contentClassName: p, handleClassName: m, portalProps: h, backdropProps: g, viewportProps: _, contentProps: v, handleProps: y, children: ee, ...b }) {
2077
+ let [x, S] = r.useState(!c);
2078
2078
  return r.useEffect(() => {
2079
- if (!s) {
2080
- x(!0);
2079
+ if (!c) {
2080
+ S(!0);
2081
2081
  return;
2082
2082
  }
2083
- x(!1);
2083
+ S(!1);
2084
2084
  let e = 0;
2085
2085
  return e = window.requestAnimationFrame(() => {
2086
- x(!0);
2086
+ S(!0);
2087
2087
  }), () => {
2088
2088
  window.cancelAnimationFrame(e);
2089
2089
  };
2090
- }, [s]), /* @__PURE__ */ t(ii, {
2091
- className: l,
2092
- ...m,
2090
+ }, [c]), /* @__PURE__ */ t(ii, {
2091
+ className: u,
2092
+ ...h,
2093
2093
  children: [n ? /* @__PURE__ */ e(ai, {
2094
- className: u,
2095
- ...h
2096
- }) : null, /* @__PURE__ */ e(oi, {
2097
2094
  className: d,
2098
- ...g,
2095
+ ...g
2096
+ }) : null, /* @__PURE__ */ e(oi, {
2097
+ className: f,
2098
+ ..._,
2099
2099
  children: /* @__PURE__ */ t(si, {
2100
2100
  "data-snap": a ? "" : void 0,
2101
- "data-variant": o,
2102
- "data-disable-initial-animation": s ? "true" : void 0,
2103
- "data-mount-ready": b ? "true" : "false",
2104
- className: c,
2105
- ...ee,
2101
+ "data-scroll": o,
2102
+ "data-variant": s,
2103
+ "data-disable-initial-animation": c ? "true" : void 0,
2104
+ "data-mount-ready": x ? "true" : "false",
2105
+ className: l,
2106
+ ...b,
2106
2107
  children: [i ? /* @__PURE__ */ e(pi, {
2107
- className: p,
2108
- ...v
2108
+ className: m,
2109
+ ...y
2109
2110
  }) : null, /* @__PURE__ */ e(ci, {
2110
- className: f,
2111
- ..._,
2112
- children: y
2111
+ className: p,
2112
+ ...v,
2113
+ children: ee
2113
2114
  })]
2114
2115
  })
2115
2116
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moduix",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Composable React UI components built on Base UI primitives.",
5
5
  "license": "MIT",
6
6
  "files": [