moduix 0.5.5 → 0.5.7
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/components/Drawer/Drawer.d.ts +3 -2
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +46 -41
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1909,22 +1909,22 @@ function Xr({ className: t, ...n }) {
|
|
|
1909
1909
|
});
|
|
1910
1910
|
}
|
|
1911
1911
|
var V = {
|
|
1912
|
-
indentBackground: "
|
|
1913
|
-
indent: "
|
|
1914
|
-
trigger: "
|
|
1915
|
-
close: "
|
|
1916
|
-
swipeArea: "
|
|
1917
|
-
backdrop: "
|
|
1918
|
-
viewport: "
|
|
1919
|
-
popup: "
|
|
1920
|
-
handle: "
|
|
1921
|
-
content: "
|
|
1922
|
-
header: "
|
|
1923
|
-
title: "
|
|
1924
|
-
description: "
|
|
1925
|
-
body: "
|
|
1926
|
-
footer: "
|
|
1927
|
-
snapToggle: "
|
|
1912
|
+
indentBackground: "_indentBackground_vp6x7_2",
|
|
1913
|
+
indent: "_indent_vp6x7_2",
|
|
1914
|
+
trigger: "_trigger_vp6x7_31",
|
|
1915
|
+
close: "_close_vp6x7_32",
|
|
1916
|
+
swipeArea: "_swipeArea_vp6x7_66",
|
|
1917
|
+
backdrop: "_backdrop_vp6x7_104",
|
|
1918
|
+
viewport: "_viewport_vp6x7_128",
|
|
1919
|
+
popup: "_popup_vp6x7_143",
|
|
1920
|
+
handle: "_handle_vp6x7_483",
|
|
1921
|
+
content: "_content_vp6x7_508",
|
|
1922
|
+
header: "_header_vp6x7_542",
|
|
1923
|
+
title: "_title_vp6x7_563",
|
|
1924
|
+
description: "_description_vp6x7_571",
|
|
1925
|
+
body: "_body_vp6x7_578",
|
|
1926
|
+
footer: "_footer_vp6x7_592",
|
|
1927
|
+
snapToggle: "_snapToggle_vp6x7_599"
|
|
1928
1928
|
};
|
|
1929
1929
|
//#endregion
|
|
1930
1930
|
//#region src/components/Drawer/Drawer.tsx
|
|
@@ -1999,11 +1999,15 @@ function oi({ className: t, ...n }) {
|
|
|
1999
1999
|
...n
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
|
-
function si({ className: t,
|
|
2002
|
+
function si({ className: t, style: n, ...r }) {
|
|
2003
2003
|
return /* @__PURE__ */ e(m.Popup, {
|
|
2004
2004
|
"data-slot": "drawer-popup",
|
|
2005
2005
|
className: P(t, V.popup),
|
|
2006
|
-
|
|
2006
|
+
style: {
|
|
2007
|
+
outline: "none",
|
|
2008
|
+
...n
|
|
2009
|
+
},
|
|
2010
|
+
...r
|
|
2007
2011
|
});
|
|
2008
2012
|
}
|
|
2009
2013
|
function ci({ className: t, ...n }) {
|
|
@@ -2073,43 +2077,44 @@ function gi({ className: t, ...n }) {
|
|
|
2073
2077
|
...n
|
|
2074
2078
|
});
|
|
2075
2079
|
}
|
|
2076
|
-
function _i({ withBackdrop: n = !0, withHandle: i = !0, snap: a = !1,
|
|
2077
|
-
let [
|
|
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);
|
|
2078
2082
|
return r.useEffect(() => {
|
|
2079
|
-
if (!
|
|
2080
|
-
|
|
2083
|
+
if (!c) {
|
|
2084
|
+
S(!0);
|
|
2081
2085
|
return;
|
|
2082
2086
|
}
|
|
2083
|
-
|
|
2087
|
+
S(!1);
|
|
2084
2088
|
let e = 0;
|
|
2085
2089
|
return e = window.requestAnimationFrame(() => {
|
|
2086
|
-
|
|
2090
|
+
S(!0);
|
|
2087
2091
|
}), () => {
|
|
2088
2092
|
window.cancelAnimationFrame(e);
|
|
2089
2093
|
};
|
|
2090
|
-
}, [
|
|
2091
|
-
className:
|
|
2092
|
-
...
|
|
2094
|
+
}, [c]), /* @__PURE__ */ t(ii, {
|
|
2095
|
+
className: u,
|
|
2096
|
+
...h,
|
|
2093
2097
|
children: [n ? /* @__PURE__ */ e(ai, {
|
|
2094
|
-
className: u,
|
|
2095
|
-
...h
|
|
2096
|
-
}) : null, /* @__PURE__ */ e(oi, {
|
|
2097
2098
|
className: d,
|
|
2098
|
-
...g
|
|
2099
|
+
...g
|
|
2100
|
+
}) : null, /* @__PURE__ */ e(oi, {
|
|
2101
|
+
className: f,
|
|
2102
|
+
..._,
|
|
2099
2103
|
children: /* @__PURE__ */ t(si, {
|
|
2100
2104
|
"data-snap": a ? "" : void 0,
|
|
2101
|
-
"data-
|
|
2102
|
-
"data-
|
|
2103
|
-
"data-
|
|
2104
|
-
|
|
2105
|
-
|
|
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,
|
|
2106
2111
|
children: [i ? /* @__PURE__ */ e(pi, {
|
|
2107
|
-
className:
|
|
2108
|
-
...
|
|
2112
|
+
className: m,
|
|
2113
|
+
...y
|
|
2109
2114
|
}) : null, /* @__PURE__ */ e(ci, {
|
|
2110
|
-
className:
|
|
2111
|
-
...
|
|
2112
|
-
children:
|
|
2115
|
+
className: p,
|
|
2116
|
+
...v,
|
|
2117
|
+
children: ee
|
|
2113
2118
|
})]
|
|
2114
2119
|
})
|
|
2115
2120
|
})]
|