moduix 0.5.11 → 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/components/Dialog/Dialog.d.ts +1 -2
- package/dist/components/Drawer/Drawer.d.ts +1 -2
- package/dist/data/insideScrollSections.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +58 -60
- package/package.json +1 -1
- package/dist/components/storyFixtures.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -1789,17 +1789,17 @@ function Nr(t) {
|
|
|
1789
1789
|
});
|
|
1790
1790
|
}
|
|
1791
1791
|
var Pr = xe, Fr = Ee, B = {
|
|
1792
|
-
trigger: "
|
|
1793
|
-
close: "
|
|
1794
|
-
backdrop: "
|
|
1795
|
-
viewport: "
|
|
1796
|
-
popup: "
|
|
1797
|
-
header: "
|
|
1798
|
-
title: "
|
|
1799
|
-
description: "
|
|
1800
|
-
footer: "
|
|
1801
|
-
closeIcon: "
|
|
1802
|
-
body: "
|
|
1792
|
+
trigger: "_trigger_1jq5s_2",
|
|
1793
|
+
close: "_close_1jq5s_3",
|
|
1794
|
+
backdrop: "_backdrop_1jq5s_43",
|
|
1795
|
+
viewport: "_viewport_1jq5s_61",
|
|
1796
|
+
popup: "_popup_1jq5s_77",
|
|
1797
|
+
header: "_header_1jq5s_121",
|
|
1798
|
+
title: "_title_1jq5s_143",
|
|
1799
|
+
description: "_description_1jq5s_151",
|
|
1800
|
+
footer: "_footer_1jq5s_161",
|
|
1801
|
+
closeIcon: "_closeIcon_1jq5s_168",
|
|
1802
|
+
body: "_body_1jq5s_195"
|
|
1803
1803
|
}, Ir = p.Root, Lr = p.createHandle;
|
|
1804
1804
|
function Rr({ className: t, render: n, ...r }) {
|
|
1805
1805
|
let i = n ? t : P(t, B.trigger);
|
|
@@ -1870,20 +1870,19 @@ function Kr({ className: t, children: n, ...r }) {
|
|
|
1870
1870
|
...r
|
|
1871
1871
|
});
|
|
1872
1872
|
}
|
|
1873
|
-
function qr({ className: n,
|
|
1873
|
+
function qr({ className: n, portalClassName: r, backdropClassName: i, viewportClassName: a, portalProps: o, backdropProps: s, viewportProps: c, ...l }) {
|
|
1874
1874
|
return /* @__PURE__ */ t(zr, {
|
|
1875
|
-
className:
|
|
1876
|
-
...
|
|
1875
|
+
className: r,
|
|
1876
|
+
...o,
|
|
1877
1877
|
children: [/* @__PURE__ */ e(Br, {
|
|
1878
|
-
className:
|
|
1879
|
-
...
|
|
1878
|
+
className: i,
|
|
1879
|
+
...s
|
|
1880
1880
|
}), /* @__PURE__ */ e(Vr, {
|
|
1881
|
-
className:
|
|
1882
|
-
...
|
|
1881
|
+
className: a,
|
|
1882
|
+
...c,
|
|
1883
1883
|
children: /* @__PURE__ */ e(Hr, {
|
|
1884
|
-
"data-scroll-mode": r,
|
|
1885
1884
|
className: n,
|
|
1886
|
-
...
|
|
1885
|
+
...l
|
|
1887
1886
|
})
|
|
1888
1887
|
})]
|
|
1889
1888
|
});
|
|
@@ -1910,22 +1909,22 @@ function Xr({ className: t, ...n }) {
|
|
|
1910
1909
|
});
|
|
1911
1910
|
}
|
|
1912
1911
|
var V = {
|
|
1913
|
-
indentBackground: "
|
|
1914
|
-
indent: "
|
|
1915
|
-
trigger: "
|
|
1916
|
-
close: "
|
|
1917
|
-
swipeArea: "
|
|
1918
|
-
backdrop: "
|
|
1919
|
-
viewport: "
|
|
1920
|
-
popup: "
|
|
1921
|
-
handle: "
|
|
1922
|
-
content: "
|
|
1923
|
-
header: "
|
|
1924
|
-
title: "
|
|
1925
|
-
description: "
|
|
1926
|
-
body: "
|
|
1927
|
-
footer: "
|
|
1928
|
-
snapToggle: "
|
|
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"
|
|
1929
1928
|
};
|
|
1930
1929
|
//#endregion
|
|
1931
1930
|
//#region src/components/Drawer/Drawer.tsx
|
|
@@ -2078,44 +2077,43 @@ function gi({ className: t, ...n }) {
|
|
|
2078
2077
|
...n
|
|
2079
2078
|
});
|
|
2080
2079
|
}
|
|
2081
|
-
function _i({ withBackdrop: n = !0, withHandle: i = !0, snap: a = !1,
|
|
2082
|
-
let [
|
|
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);
|
|
2083
2082
|
return r.useEffect(() => {
|
|
2084
|
-
if (!
|
|
2085
|
-
|
|
2083
|
+
if (!s) {
|
|
2084
|
+
x(!0);
|
|
2086
2085
|
return;
|
|
2087
2086
|
}
|
|
2088
|
-
|
|
2087
|
+
x(!1);
|
|
2089
2088
|
let e = 0;
|
|
2090
2089
|
return e = window.requestAnimationFrame(() => {
|
|
2091
|
-
|
|
2090
|
+
x(!0);
|
|
2092
2091
|
}), () => {
|
|
2093
2092
|
window.cancelAnimationFrame(e);
|
|
2094
2093
|
};
|
|
2095
|
-
}, [
|
|
2096
|
-
className:
|
|
2097
|
-
...
|
|
2094
|
+
}, [s]), /* @__PURE__ */ t(ii, {
|
|
2095
|
+
className: l,
|
|
2096
|
+
...m,
|
|
2098
2097
|
children: [n ? /* @__PURE__ */ e(ai, {
|
|
2099
|
-
className:
|
|
2100
|
-
...
|
|
2098
|
+
className: u,
|
|
2099
|
+
...h
|
|
2101
2100
|
}) : null, /* @__PURE__ */ e(oi, {
|
|
2102
|
-
className:
|
|
2103
|
-
...
|
|
2101
|
+
className: d,
|
|
2102
|
+
...g,
|
|
2104
2103
|
children: /* @__PURE__ */ t(si, {
|
|
2105
2104
|
"data-snap": a ? "" : void 0,
|
|
2106
|
-
"data-
|
|
2107
|
-
"data-
|
|
2108
|
-
"data-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
...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,
|
|
2112
2110
|
children: [i ? /* @__PURE__ */ e(pi, {
|
|
2113
|
-
className: m,
|
|
2114
|
-
...y
|
|
2115
|
-
}) : null, /* @__PURE__ */ e(ci, {
|
|
2116
2111
|
className: p,
|
|
2117
|
-
...v
|
|
2118
|
-
|
|
2112
|
+
...v
|
|
2113
|
+
}) : null, /* @__PURE__ */ e(ci, {
|
|
2114
|
+
className: f,
|
|
2115
|
+
..._,
|
|
2116
|
+
children: y
|
|
2119
2117
|
})]
|
|
2120
2118
|
})
|
|
2121
2119
|
})]
|
package/package.json
CHANGED