moduix 0.5.10 → 0.5.12

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_18t5t_2",
1913
- indent: "_indent_18t5t_2",
1914
- trigger: "_trigger_18t5t_31",
1915
- close: "_close_18t5t_32",
1916
- swipeArea: "_swipeArea_18t5t_66",
1917
- backdrop: "_backdrop_18t5t_104",
1918
- viewport: "_viewport_18t5t_128",
1919
- popup: "_popup_18t5t_143",
1920
- handle: "_handle_18t5t_494",
1921
- content: "_content_18t5t_519",
1922
- header: "_header_18t5t_558",
1923
- title: "_title_18t5t_579",
1924
- description: "_description_18t5t_587",
1925
- body: "_body_18t5t_594",
1926
- footer: "_footer_18t5t_608",
1927
- snapToggle: "_snapToggle_18t5t_615"
1912
+ indentBackground: "_indentBackground_15rad_2",
1913
+ indent: "_indent_15rad_2",
1914
+ trigger: "_trigger_15rad_31",
1915
+ close: "_close_15rad_32",
1916
+ swipeArea: "_swipeArea_15rad_66",
1917
+ backdrop: "_backdrop_15rad_104",
1918
+ viewport: "_viewport_15rad_128",
1919
+ popup: "_popup_15rad_143",
1920
+ handle: "_handle_15rad_485",
1921
+ content: "_content_15rad_510",
1922
+ header: "_header_15rad_525",
1923
+ title: "_title_15rad_546",
1924
+ description: "_description_15rad_554",
1925
+ body: "_body_15rad_561",
1926
+ footer: "_footer_15rad_570",
1927
+ snapToggle: "_snapToggle_15rad_577"
1928
1928
  };
1929
1929
  //#endregion
1930
1930
  //#region src/components/Drawer/Drawer.tsx
@@ -2077,44 +2077,43 @@ function gi({ className: t, ...n }) {
2077
2077
  ...n
2078
2078
  });
2079
2079
  }
2080
- 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 }) {
2081
- let [x, S] = r.useState(!c);
2080
+ 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 }) {
2081
+ let [b, x] = r.useState(!s);
2082
2082
  return r.useEffect(() => {
2083
- if (!c) {
2084
- S(!0);
2083
+ if (!s) {
2084
+ x(!0);
2085
2085
  return;
2086
2086
  }
2087
- S(!1);
2087
+ x(!1);
2088
2088
  let e = 0;
2089
2089
  return e = window.requestAnimationFrame(() => {
2090
- S(!0);
2090
+ x(!0);
2091
2091
  }), () => {
2092
2092
  window.cancelAnimationFrame(e);
2093
2093
  };
2094
- }, [c]), /* @__PURE__ */ t(ii, {
2095
- className: u,
2096
- ...h,
2094
+ }, [s]), /* @__PURE__ */ t(ii, {
2095
+ className: l,
2096
+ ...m,
2097
2097
  children: [n ? /* @__PURE__ */ e(ai, {
2098
- className: d,
2099
- ...g
2098
+ className: u,
2099
+ ...h
2100
2100
  }) : null, /* @__PURE__ */ e(oi, {
2101
- className: f,
2102
- ..._,
2101
+ className: d,
2102
+ ...g,
2103
2103
  children: /* @__PURE__ */ t(si, {
2104
2104
  "data-snap": a ? "" : void 0,
2105
- "data-scroll": o,
2106
- "data-variant": s,
2107
- "data-disable-initial-animation": c ? "true" : void 0,
2108
- "data-mount-ready": x ? "true" : "false",
2109
- className: l,
2110
- ...b,
2105
+ "data-variant": o,
2106
+ "data-disable-initial-animation": s ? "true" : void 0,
2107
+ "data-mount-ready": b ? "true" : "false",
2108
+ className: c,
2109
+ ...ee,
2111
2110
  children: [i ? /* @__PURE__ */ e(pi, {
2112
- className: m,
2113
- ...y
2114
- }) : null, /* @__PURE__ */ e(ci, {
2115
2111
  className: p,
2116
- ...v,
2117
- children: ee
2112
+ ...v
2113
+ }) : null, /* @__PURE__ */ e(ci, {
2114
+ className: f,
2115
+ ..._,
2116
+ children: y
2118
2117
  })]
2119
2118
  })
2120
2119
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moduix",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "description": "Composable React UI components built on Base UI primitives.",
5
5
  "license": "MIT",
6
6
  "files": [