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/components/Drawer/Drawer.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +40 -39
- 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_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,
|
|
2077
|
-
let [
|
|
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 (!
|
|
2080
|
-
|
|
2079
|
+
if (!c) {
|
|
2080
|
+
S(!0);
|
|
2081
2081
|
return;
|
|
2082
2082
|
}
|
|
2083
|
-
|
|
2083
|
+
S(!1);
|
|
2084
2084
|
let e = 0;
|
|
2085
2085
|
return e = window.requestAnimationFrame(() => {
|
|
2086
|
-
|
|
2086
|
+
S(!0);
|
|
2087
2087
|
}), () => {
|
|
2088
2088
|
window.cancelAnimationFrame(e);
|
|
2089
2089
|
};
|
|
2090
|
-
}, [
|
|
2091
|
-
className:
|
|
2092
|
-
...
|
|
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-
|
|
2102
|
-
"data-
|
|
2103
|
-
"data-
|
|
2104
|
-
|
|
2105
|
-
|
|
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:
|
|
2108
|
-
...
|
|
2108
|
+
className: m,
|
|
2109
|
+
...y
|
|
2109
2110
|
}) : null, /* @__PURE__ */ e(ci, {
|
|
2110
|
-
className:
|
|
2111
|
-
...
|
|
2112
|
-
children:
|
|
2111
|
+
className: p,
|
|
2112
|
+
...v,
|
|
2113
|
+
children: ee
|
|
2113
2114
|
})]
|
|
2114
2115
|
})
|
|
2115
2116
|
})]
|