moduix 0.5.2 → 0.5.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.
package/dist/index.js CHANGED
@@ -1909,23 +1909,45 @@ function Xr({ className: t, ...n }) {
1909
1909
  });
1910
1910
  }
1911
1911
  var V = {
1912
- indentBackground: "_indentBackground_nq3q0_1",
1913
- indent: "_indent_nq3q0_1",
1914
- trigger: "_trigger_nq3q0_30",
1915
- close: "_close_nq3q0_31",
1916
- swipeArea: "_swipeArea_nq3q0_65",
1917
- backdrop: "_backdrop_nq3q0_103",
1918
- viewport: "_viewport_nq3q0_127",
1919
- popup: "_popup_nq3q0_142",
1920
- handle: "_handle_nq3q0_419",
1921
- content: "_content_nq3q0_444",
1922
- header: "_header_nq3q0_448",
1923
- title: "_title_nq3q0_469",
1924
- description: "_description_nq3q0_477",
1925
- body: "_body_nq3q0_484",
1926
- footer: "_footer_nq3q0_490",
1927
- snapToggle: "_snapToggle_nq3q0_497"
1928
- }, Zr = m.Root, Qr = m.Provider, $r = m.createHandle;
1912
+ indentBackground: "_indentBackground_gt4lu_1",
1913
+ indent: "_indent_gt4lu_1",
1914
+ trigger: "_trigger_gt4lu_30",
1915
+ close: "_close_gt4lu_31",
1916
+ swipeArea: "_swipeArea_gt4lu_65",
1917
+ backdrop: "_backdrop_gt4lu_103",
1918
+ viewport: "_viewport_gt4lu_127",
1919
+ popup: "_popup_gt4lu_142",
1920
+ handle: "_handle_gt4lu_419",
1921
+ content: "_content_gt4lu_444",
1922
+ header: "_header_gt4lu_448",
1923
+ title: "_title_gt4lu_469",
1924
+ description: "_description_gt4lu_477",
1925
+ body: "_body_gt4lu_484",
1926
+ footer: "_footer_gt4lu_490",
1927
+ snapToggle: "_snapToggle_gt4lu_497"
1928
+ };
1929
+ //#endregion
1930
+ //#region src/components/Drawer/Drawer.tsx
1931
+ function Zr({ persistent: t = !1, onOpenChange: n, onSnapPointChange: r, ...i }) {
1932
+ return /* @__PURE__ */ e(m.Root, {
1933
+ onOpenChange: (e, r) => {
1934
+ if (t && !e) {
1935
+ r.cancel();
1936
+ return;
1937
+ }
1938
+ n?.(e, r);
1939
+ },
1940
+ onSnapPointChange: (e, n) => {
1941
+ if (t && e === null) {
1942
+ n.cancel();
1943
+ return;
1944
+ }
1945
+ r?.(e, n);
1946
+ },
1947
+ ...i
1948
+ });
1949
+ }
1950
+ var Qr = m.Provider, $r = m.createHandle;
1929
1951
  function ei({ className: t, ...n }) {
1930
1952
  return /* @__PURE__ */ e(m.Indent, {
1931
1953
  "data-slot": "drawer-indent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moduix",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Composable React UI components built on Base UI primitives.",
5
5
  "license": "MIT",
6
6
  "files": [