@zenpatient-org/healthspan-marketing-ui 0.1.134 → 0.1.136
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/ImageGallery/ImageGallery.cjs.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.es.js +36 -19
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +2 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +138 -67
- package/dist/components/InfiniteScroll/infiniteScroll.module.css.cjs.js +1 -1
- package/dist/components/InfiniteScroll/infiniteScroll.module.css.es.js +8 -6
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/lib/useSwiper.d.ts +9 -2
- package/dist/modules/Curiosity/Curiosity.cjs.js +1 -1
- package/dist/modules/Curiosity/Curiosity.es.js +15 -12
- package/dist/modules/HSModal/components/MailchimpModal/MailchimpModal.cjs.js +1 -1
- package/dist/modules/HSModal/components/MailchimpModal/MailchimpModal.d.ts +1 -1
- package/dist/modules/HSModal/components/MailchimpModal/MailchimpModal.es.js +11 -9
- package/dist/modules/HSModal/components/MailchimpModal/components/Newsletter/Newsletter.cjs.js +1 -1
- package/dist/modules/HSModal/components/MailchimpModal/components/Newsletter/Newsletter.d.ts +2 -1
- package/dist/modules/HSModal/components/MailchimpModal/components/Newsletter/Newsletter.es.js +41 -38
- package/dist/modules/HSModal/types.d.ts +1 -0
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +2 -2
- package/dist/utils/useSwiper/useSwiper.cjs.js +1 -1
- package/dist/utils/useSwiper/useSwiper.es.js +66 -36
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../node_modules/swiper/modules/navigation.cjs.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../node_modules/swiper/modules/navigation.cjs.js"),c=require("../../node_modules/swiper/swiper-react.cjs.js"),g=require("react"),q=require("../../utils/useSwiper/useSwiper.cjs.js"),w=require("../../utils/cn/cn.cjs.js"),_=require("../Label/Label.cjs.js"),j=require("../GalleryPagination/GalleryPagination.cjs.js");;/* empty css */;/* empty css */;/* empty css */const i=require("./imageGallery.module.css.cjs.js"),y=[m.default],x=({images:n,label:l,className:o})=>{const{activeIndex:u,handleSlideTo:t,handleSlideChange:d,onSwiperInit:p,handleSwiperResize:S,handleUserInteraction:r}=q.useSwiperWithAutoPlay(3e3),h=g.useCallback(a=>{r(),t(a)},[r,t]);return e.jsxs("div",{className:w.cn(i.default.root,o),children:[l&&e.jsx("div",{className:i.default.labelWrap,children:e.jsx(_.Label,{color:"black",size:"sm",children:l})}),e.jsx(c.Swiper,{onSwiper:p,onResize:S,onSlideChange:d,onTouchStart:r,onTouchEnd:r,modules:y,spaceBetween:0,slidesPerView:1,className:i.default.swiper,children:n.map((a,s)=>e.jsx(c.SwiperSlide,{children:e.jsx("div",{className:i.default.imageWrapper,children:e.jsx("img",{src:a,alt:"product image",className:i.default.image,onClick:r},s)})},s))}),n.length>1&&e.jsx(j.GalleryPagination,{count:n.length,activeIndex:u,onSelect:h})]})};exports.ImageGallery=x;
|
|
@@ -1,35 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { Swiper as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { jsxs as S, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import g from "../../node_modules/swiper/modules/navigation.es.js";
|
|
4
|
+
import { Swiper as u, SwiperSlide as f } from "../../node_modules/swiper/swiper-react.es.js";
|
|
5
|
+
import { useCallback as w } from "react";
|
|
6
|
+
import { useSwiperWithAutoPlay as N } from "../../utils/useSwiper/useSwiper.es.js";
|
|
7
|
+
import { cn as v } from "../../utils/cn/cn.es.js";
|
|
8
|
+
import { Label as I } from "../Label/Label.es.js";
|
|
9
|
+
import { GalleryPagination as P } from "../GalleryPagination/GalleryPagination.es.js";
|
|
9
10
|
/* empty css */
|
|
10
11
|
/* empty css */
|
|
11
12
|
/* empty css */
|
|
12
13
|
import r from "./imageGallery.module.css.es.js";
|
|
13
|
-
const
|
|
14
|
-
const { activeIndex:
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const y = [g], U = ({ images: o, label: a, className: m }) => {
|
|
15
|
+
const { activeIndex: c, handleSlideTo: l, handleSlideChange: s, onSwiperInit: p, handleSwiperResize: d, handleUserInteraction: i } = N(3e3), h = w(
|
|
16
|
+
(n) => {
|
|
17
|
+
i(), l(n);
|
|
18
|
+
},
|
|
19
|
+
[i, l]
|
|
20
|
+
);
|
|
21
|
+
return /* @__PURE__ */ S("div", { className: v(r.root, m), children: [
|
|
22
|
+
a && /* @__PURE__ */ e("div", { className: r.labelWrap, children: /* @__PURE__ */ e(I, { color: "black", size: "sm", children: a }) }),
|
|
17
23
|
/* @__PURE__ */ e(
|
|
18
|
-
|
|
24
|
+
u,
|
|
19
25
|
{
|
|
20
|
-
onSwiper:
|
|
21
|
-
onResize:
|
|
22
|
-
onSlideChange:
|
|
23
|
-
|
|
26
|
+
onSwiper: p,
|
|
27
|
+
onResize: d,
|
|
28
|
+
onSlideChange: s,
|
|
29
|
+
onTouchStart: i,
|
|
30
|
+
onTouchEnd: i,
|
|
31
|
+
modules: y,
|
|
24
32
|
spaceBetween: 0,
|
|
25
33
|
slidesPerView: 1,
|
|
26
34
|
className: r.swiper,
|
|
27
|
-
children:
|
|
35
|
+
children: o.map((n, t) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e("div", { className: r.imageWrapper, children: /* @__PURE__ */ e(
|
|
36
|
+
"img",
|
|
37
|
+
{
|
|
38
|
+
src: n,
|
|
39
|
+
alt: "product image",
|
|
40
|
+
className: r.image,
|
|
41
|
+
onClick: i
|
|
42
|
+
},
|
|
43
|
+
t
|
|
44
|
+
) }) }, t))
|
|
28
45
|
}
|
|
29
46
|
),
|
|
30
|
-
|
|
47
|
+
o.length > 1 && /* @__PURE__ */ e(P, { count: o.length, activeIndex: c, onSelect: h })
|
|
31
48
|
] });
|
|
32
49
|
};
|
|
33
50
|
export {
|
|
34
|
-
|
|
51
|
+
U as ImageGallery
|
|
35
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react/jsx-runtime"),o=require("react"),k=require("../../utils/cn/cn.cjs.js"),V=require("../../utils/useIsMobile.cjs.js"),A=require("./infiniteScroll.module.css.cjs.js");function Y({items:p,speed:R=50,direction:F="left",contentClassName:N,itemClassName:$,rootClassName:H,slowOnTouch:x=!1,enableManualScroll:b=!1,renderItem:O},U){const C=o.useRef(null),q=o.useRef(null),g=o.useRef(null),W=o.useRef(!1),w=o.useRef(performance.now()),[f,h]=o.useState(0),[c,B]=o.useState(0),[m,G]=o.useState(4),[D,j]=o.useState(!1),_=V.useIsMobile(),E=o.useCallback(e=>{if(c===0)return e;const t=c;let n=e;for(;n<=-t;)n+=t;for(;n>0;)n-=t;return n},[c]),T=o.useCallback(()=>{if(!q.current||!C.current||p.length===0)return;const e=q.current,t=e.children.length;if(t===0)return;let n=0;for(let s=0;s<Math.min(p.length,t);s++){const d=e.children[s];n+=d.offsetWidth}if(n===0&&(n=e.scrollWidth/m),n<=0)return;const l=C.current.offsetWidth,i=Math.ceil(l*2.5/n),a=Math.max(4,Math.min(20,i%2===0?i:i+1)),u=c,v=m;if(G(a),B(n),u>0&&v>0){const s=Math.floor(v/2),d=Math.floor(a/2),S=(f+u*s)/u,r=-n*d+S*n;h(r)}else{const s=Math.floor(a/2);h(-n*s)}},[p.length,m,c,f]);o.useEffect(()=>{T();const e=new ResizeObserver(()=>{T()});return C.current&&e.observe(C.current),()=>e.disconnect()},[T]);const y=o.useCallback(e=>{if(W.current||c===0){g.current=requestAnimationFrame(y);return}const t=e??performance.now(),n=t-w.current||16.67;w.current=t,h(l=>{const i=D?R*.5:R,a=F==="right"?-i:i;let u=l-a*(n/1e3);return E(u)}),g.current=requestAnimationFrame(y)},[F,R,c,D,E]);o.useEffect(()=>(w.current=performance.now(),g.current=requestAnimationFrame(y),()=>{g.current&&cancelAnimationFrame(g.current)}),[y]);const X=o.useCallback((e,t)=>{!(t==="mouse")&&!(t==="touch"&&_)||(e?x?j(!0):W.current=!0:(W.current=!1,j(!1),w.current=performance.now()))},[_,x]),J=o.useCallback(e=>{X(!0,e.pointerType)},[X]),K=o.useCallback(e=>{X(!1,e.pointerType)},[X]),z=o.useCallback((e,t=300)=>{const n=f,l=e-n,i=performance.now(),a=u=>{const v=u-i,s=Math.min(v/t,1),d=1-Math.pow(1-s,3);h(n+l*d),s<1&&requestAnimationFrame(a)};requestAnimationFrame(a)},[f]);return o.useEffect(()=>{if(!b)return;const e=C.current;if(!e)return;let t=null,n=!1,l=null;const i=r=>{if(r.deltaX!==0){r.preventDefault();const M=r.deltaX*2;h(L=>E(L-M))}},a=r=>{n=!0,l=r.clientX,r.preventDefault()},u=r=>{if(!n||l===null)return;const M=r.clientX,L=M-l;l=M,h(P=>E(P+L))},v=()=>{n=!1,l=null},s=r=>{t=r.touches[0].clientX},d=r=>{if(t===null)return;r.preventDefault();const L=r.touches[0].clientX,P=L-t;t=L,h(Q=>E(Q+P))},S=()=>{t=null};return e.addEventListener("wheel",i,{passive:!1}),e.addEventListener("mousedown",a,{passive:!1}),e.addEventListener("mousemove",u,{passive:!1}),e.addEventListener("touchstart",s),e.addEventListener("touchmove",d,{passive:!1}),e.addEventListener("touchend",S),document.addEventListener("mouseup",v),document.addEventListener("mousemove",u),()=>{e.removeEventListener("wheel",i),e.removeEventListener("mousedown",a),e.removeEventListener("mousemove",u),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",d),e.removeEventListener("touchend",S),document.removeEventListener("mouseup",v),document.removeEventListener("mousemove",u)}},[b,E]),o.useImperativeHandle(U,()=>({scrollLeft:()=>{const e=c*m,t=-c*Math.floor(m/2);let n=f-200;n<-e+t&&(n+=c),z(n)},scrollRight:()=>{const e=-c*Math.floor(m/2);let t=f+200;t>e&&(t-=c),z(t)}})),I.jsx("div",{className:k.cn(A.default.root,H),ref:C,"data-manual-scroll":b,onPointerEnter:J,onPointerLeave:K,children:I.jsx("div",{className:k.cn(A.default.content,N),ref:q,style:{transform:`translate3d(${f}px, 0, 0)`},children:Array.from({length:p.length*m},(e,t)=>I.jsx("div",{className:k.cn(A.default.item,$),children:O(p[t%p.length],t)},t))})})}const Z=o.forwardRef(Y);exports.InfiniteScroll=Z;
|
|
@@ -11,6 +11,8 @@ type InfiniteScrollProps<T> = {
|
|
|
11
11
|
contentClassName?: string;
|
|
12
12
|
itemClassName?: string;
|
|
13
13
|
rootClassName?: string;
|
|
14
|
+
slowOnTouch?: boolean;
|
|
15
|
+
enableManualScroll?: boolean;
|
|
14
16
|
renderItem: (item: T, index: number) => ReactNode;
|
|
15
17
|
};
|
|
16
18
|
export declare const InfiniteScroll: <T>(props: InfiniteScrollProps<T> & {
|
|
@@ -1,95 +1,166 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { cn as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as ee, useRef as C, useState as P, useCallback as v, useEffect as b, useImperativeHandle as te } from "react";
|
|
4
|
+
import { cn as x } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { useIsMobile as ne } from "../../utils/useIsMobile.es.js";
|
|
6
|
+
import z from "./infiniteScroll.module.css.es.js";
|
|
7
|
+
function oe({
|
|
8
|
+
items: p,
|
|
9
|
+
speed: R = 50,
|
|
10
|
+
direction: N = "left",
|
|
11
|
+
contentClassName: $,
|
|
12
|
+
itemClassName: B,
|
|
13
|
+
rootClassName: G,
|
|
14
|
+
slowOnTouch: j = !1,
|
|
15
|
+
enableManualScroll: S = !1,
|
|
16
|
+
renderItem: J
|
|
17
|
+
}, K) {
|
|
18
|
+
const E = C(null), A = C(null), g = C(null), q = C(!1), y = C(performance.now()), [d, f] = P(0), [s, O] = P(0), [m, Q] = P(4), [k, H] = P(!1), U = ne(), M = v(
|
|
19
|
+
(e) => {
|
|
20
|
+
if (s === 0) return e;
|
|
21
|
+
const t = s;
|
|
22
|
+
let n = e;
|
|
23
|
+
for (; n <= -t; )
|
|
24
|
+
n += t;
|
|
25
|
+
for (; n > 0; )
|
|
26
|
+
n -= t;
|
|
27
|
+
return n;
|
|
28
|
+
},
|
|
29
|
+
[s]
|
|
30
|
+
), F = v(() => {
|
|
31
|
+
if (!A.current || !E.current || p.length === 0) return;
|
|
32
|
+
const e = A.current, t = e.children.length;
|
|
33
|
+
if (t === 0) return;
|
|
34
|
+
let n = 0;
|
|
35
|
+
for (let r = 0; r < Math.min(p.length, t); r++) {
|
|
36
|
+
const u = e.children[r];
|
|
37
|
+
n += u.offsetWidth;
|
|
38
|
+
}
|
|
39
|
+
if (n === 0 && (n = e.scrollWidth / m), n <= 0)
|
|
40
|
+
return;
|
|
41
|
+
const c = E.current.offsetWidth, i = Math.ceil(c * 2.5 / n), a = Math.max(4, Math.min(20, i % 2 === 0 ? i : i + 1)), l = s, h = m;
|
|
42
|
+
if (Q(a), O(n), l > 0 && h > 0) {
|
|
43
|
+
const r = Math.floor(h / 2), u = Math.floor(a / 2), T = (d + l * r) / l, o = -n * u + T * n;
|
|
44
|
+
f(o);
|
|
45
|
+
} else {
|
|
46
|
+
const r = Math.floor(a / 2);
|
|
47
|
+
f(-n * r);
|
|
48
|
+
}
|
|
49
|
+
}, [p.length, m, s, d]);
|
|
22
50
|
b(() => {
|
|
23
|
-
|
|
51
|
+
F();
|
|
24
52
|
const e = new ResizeObserver(() => {
|
|
25
|
-
|
|
53
|
+
F();
|
|
26
54
|
});
|
|
27
|
-
return
|
|
28
|
-
}, [
|
|
29
|
-
const
|
|
55
|
+
return E.current && e.observe(E.current), () => e.disconnect();
|
|
56
|
+
}, [F]);
|
|
57
|
+
const X = v(
|
|
30
58
|
(e) => {
|
|
31
|
-
if (
|
|
32
|
-
|
|
59
|
+
if (q.current || s === 0) {
|
|
60
|
+
g.current = requestAnimationFrame(X);
|
|
33
61
|
return;
|
|
34
62
|
}
|
|
35
|
-
const t = e ?? performance.now(),
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}), u.current = requestAnimationFrame(y);
|
|
63
|
+
const t = e ?? performance.now(), n = t - y.current || 16.67;
|
|
64
|
+
y.current = t, f((c) => {
|
|
65
|
+
const i = k ? R * 0.5 : R, a = N === "right" ? -i : i;
|
|
66
|
+
let l = c - a * (n / 1e3);
|
|
67
|
+
return M(l);
|
|
68
|
+
}), g.current = requestAnimationFrame(X);
|
|
42
69
|
},
|
|
43
|
-
[
|
|
70
|
+
[N, R, s, k, M]
|
|
44
71
|
);
|
|
45
|
-
b(() => (
|
|
46
|
-
|
|
47
|
-
}), [
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
72
|
+
b(() => (y.current = performance.now(), g.current = requestAnimationFrame(X), () => {
|
|
73
|
+
g.current && cancelAnimationFrame(g.current);
|
|
74
|
+
}), [X]);
|
|
75
|
+
const W = v(
|
|
76
|
+
(e, t) => {
|
|
77
|
+
!(t === "mouse") && !(t === "touch" && U) || (e ? j ? H(!0) : q.current = !0 : (q.current = !1, H(!1), y.current = performance.now()));
|
|
78
|
+
},
|
|
79
|
+
[U, j]
|
|
80
|
+
), V = v(
|
|
81
|
+
(e) => {
|
|
82
|
+
W(!0, e.pointerType);
|
|
83
|
+
},
|
|
84
|
+
[W]
|
|
85
|
+
), Y = v(
|
|
86
|
+
(e) => {
|
|
87
|
+
W(!1, e.pointerType);
|
|
88
|
+
},
|
|
89
|
+
[W]
|
|
90
|
+
), _ = v(
|
|
53
91
|
(e, t = 300) => {
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
|
|
92
|
+
const n = d, c = e - n, i = performance.now(), a = (l) => {
|
|
93
|
+
const h = l - i, r = Math.min(h / t, 1), u = 1 - Math.pow(1 - r, 3);
|
|
94
|
+
f(n + c * u), r < 1 && requestAnimationFrame(a);
|
|
57
95
|
};
|
|
58
|
-
requestAnimationFrame(
|
|
96
|
+
requestAnimationFrame(a);
|
|
59
97
|
},
|
|
60
|
-
[
|
|
98
|
+
[d]
|
|
61
99
|
);
|
|
62
|
-
return
|
|
100
|
+
return b(() => {
|
|
101
|
+
if (!S) return;
|
|
102
|
+
const e = E.current;
|
|
103
|
+
if (!e) return;
|
|
104
|
+
let t = null, n = !1, c = null;
|
|
105
|
+
const i = (o) => {
|
|
106
|
+
if (o.deltaX !== 0) {
|
|
107
|
+
o.preventDefault();
|
|
108
|
+
const L = o.deltaX * 2;
|
|
109
|
+
f((w) => M(w - L));
|
|
110
|
+
}
|
|
111
|
+
}, a = (o) => {
|
|
112
|
+
n = !0, c = o.clientX, o.preventDefault();
|
|
113
|
+
}, l = (o) => {
|
|
114
|
+
if (!n || c === null) return;
|
|
115
|
+
const L = o.clientX, w = L - c;
|
|
116
|
+
c = L, f((I) => M(I + w));
|
|
117
|
+
}, h = () => {
|
|
118
|
+
n = !1, c = null;
|
|
119
|
+
}, r = (o) => {
|
|
120
|
+
t = o.touches[0].clientX;
|
|
121
|
+
}, u = (o) => {
|
|
122
|
+
if (t === null) return;
|
|
123
|
+
o.preventDefault();
|
|
124
|
+
const w = o.touches[0].clientX, I = w - t;
|
|
125
|
+
t = w, f((Z) => M(Z + I));
|
|
126
|
+
}, T = () => {
|
|
127
|
+
t = null;
|
|
128
|
+
};
|
|
129
|
+
return e.addEventListener("wheel", i, { passive: !1 }), e.addEventListener("mousedown", a, { passive: !1 }), e.addEventListener("mousemove", l, { passive: !1 }), e.addEventListener("touchstart", r), e.addEventListener("touchmove", u, { passive: !1 }), e.addEventListener("touchend", T), document.addEventListener("mouseup", h), document.addEventListener("mousemove", l), () => {
|
|
130
|
+
e.removeEventListener("wheel", i), e.removeEventListener("mousedown", a), e.removeEventListener("mousemove", l), e.removeEventListener("touchstart", r), e.removeEventListener("touchmove", u), e.removeEventListener("touchend", T), document.removeEventListener("mouseup", h), document.removeEventListener("mousemove", l);
|
|
131
|
+
};
|
|
132
|
+
}, [S, M]), te(K, () => ({
|
|
63
133
|
scrollLeft: () => {
|
|
64
|
-
const e =
|
|
65
|
-
let
|
|
66
|
-
|
|
134
|
+
const e = s * m, t = -s * Math.floor(m / 2);
|
|
135
|
+
let n = d - 200;
|
|
136
|
+
n < -e + t && (n += s), _(n);
|
|
67
137
|
},
|
|
68
138
|
scrollRight: () => {
|
|
69
|
-
const e = -
|
|
70
|
-
let t =
|
|
71
|
-
t > e && (t -=
|
|
139
|
+
const e = -s * Math.floor(m / 2);
|
|
140
|
+
let t = d + 200;
|
|
141
|
+
t > e && (t -= s), _(t);
|
|
72
142
|
}
|
|
73
|
-
})), /* @__PURE__ */
|
|
143
|
+
})), /* @__PURE__ */ D(
|
|
74
144
|
"div",
|
|
75
145
|
{
|
|
76
|
-
className:
|
|
77
|
-
ref:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
146
|
+
className: x(z.root, G),
|
|
147
|
+
ref: E,
|
|
148
|
+
"data-manual-scroll": S,
|
|
149
|
+
onPointerEnter: V,
|
|
150
|
+
onPointerLeave: Y,
|
|
151
|
+
children: /* @__PURE__ */ D(
|
|
81
152
|
"div",
|
|
82
153
|
{
|
|
83
|
-
className:
|
|
84
|
-
ref:
|
|
85
|
-
style: { transform: `translate3d(${
|
|
86
|
-
children: Array.from({ length:
|
|
154
|
+
className: x(z.content, $),
|
|
155
|
+
ref: A,
|
|
156
|
+
style: { transform: `translate3d(${d}px, 0, 0)` },
|
|
157
|
+
children: Array.from({ length: p.length * m }, (e, t) => /* @__PURE__ */ D("div", { className: x(z.item, B), children: J(p[t % p.length], t) }, t))
|
|
87
158
|
}
|
|
88
159
|
)
|
|
89
160
|
}
|
|
90
161
|
);
|
|
91
162
|
}
|
|
92
|
-
const
|
|
163
|
+
const ae = ee(oe);
|
|
93
164
|
export {
|
|
94
|
-
|
|
165
|
+
ae as InfiniteScroll
|
|
95
166
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="infiniteScroll-module__root___UJY-j",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="infiniteScroll-module__root___UJY-j",e="infiniteScroll-module__content___hW-Qi",o="infiniteScroll-module__item___nzVXQ",n={root:t,content:e,item:o};exports.content=e;exports.default=n;exports.item=o;exports.root=t;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
content:
|
|
1
|
+
const t = "infiniteScroll-module__root___UJY-j", o = "infiniteScroll-module__content___hW-Qi", n = "infiniteScroll-module__item___nzVXQ", e = {
|
|
2
|
+
root: t,
|
|
3
|
+
content: o,
|
|
4
|
+
item: n
|
|
4
5
|
};
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
o as content,
|
|
8
|
+
e as default,
|
|
9
|
+
n as item,
|
|
10
|
+
t as root
|
|
9
11
|
};
|