@conboai/storybook.components 0.2.74 → 0.2.75
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
declare function ImageBox({ images,
|
|
3
|
+
declare function ImageBox({ images, setToFirstPage, isFirstPage }: {
|
|
4
4
|
images: string[];
|
|
5
|
-
|
|
5
|
+
setToFirstPage?: (value: boolean) => void;
|
|
6
|
+
isFirstPage: boolean;
|
|
6
7
|
}): React.JSX.Element;
|
|
7
8
|
export default ImageBox;
|
|
@@ -59932,13 +59932,11 @@ const oee = {
|
|
|
59932
59932
|
}
|
|
59933
59933
|
);
|
|
59934
59934
|
};
|
|
59935
|
-
function pre({ images: t,
|
|
59936
|
-
const [
|
|
59937
|
-
|
|
59938
|
-
},
|
|
59939
|
-
|
|
59940
|
-
(c) => c === 0 ? t.length - 1 : c - 1
|
|
59941
|
-
);
|
|
59935
|
+
function pre({ images: t, setToFirstPage: e, isFirstPage: n = !1 }) {
|
|
59936
|
+
const [r, i] = je(0), [o, s] = je(!1), l = () => {
|
|
59937
|
+
i((u) => n ? 0 : (u + 1) % t.length), e && e(!1);
|
|
59938
|
+
}, c = () => {
|
|
59939
|
+
i((u) => n ? 0 : u === 0 ? t.length - 1 : u - 1), e && e(!1);
|
|
59942
59940
|
};
|
|
59943
59941
|
return /* @__PURE__ */ te.jsxs(te.Fragment, { children: [
|
|
59944
59942
|
/* @__PURE__ */ te.jsx(
|
|
@@ -59960,7 +59958,7 @@ function pre({ images: t, imgIndex: e = 0 }) {
|
|
|
59960
59958
|
display: "flex",
|
|
59961
59959
|
height: "100%",
|
|
59962
59960
|
transition: "transform 0.2s ease-in-out",
|
|
59963
|
-
transform: `translateX(-${
|
|
59961
|
+
transform: `translateX(-${r * 100 / t.length}%)`,
|
|
59964
59962
|
width: `${t.length * 100}%`
|
|
59965
59963
|
},
|
|
59966
59964
|
children: [
|
|
@@ -59968,18 +59966,18 @@ function pre({ images: t, imgIndex: e = 0 }) {
|
|
|
59968
59966
|
vee,
|
|
59969
59967
|
{
|
|
59970
59968
|
onModalClose: () => {
|
|
59971
|
-
|
|
59969
|
+
s(!1);
|
|
59972
59970
|
},
|
|
59973
|
-
startIndex:
|
|
59974
|
-
isModalOpen:
|
|
59971
|
+
startIndex: r,
|
|
59972
|
+
isModalOpen: o,
|
|
59975
59973
|
images: t
|
|
59976
59974
|
}
|
|
59977
59975
|
),
|
|
59978
|
-
t.map((
|
|
59976
|
+
t.map((u, d) => /* @__PURE__ */ te.jsx(
|
|
59979
59977
|
It,
|
|
59980
59978
|
{
|
|
59981
59979
|
onClick: () => {
|
|
59982
|
-
|
|
59980
|
+
s(!0);
|
|
59983
59981
|
},
|
|
59984
59982
|
sx: {
|
|
59985
59983
|
width: `${100 / t.length}%`,
|
|
@@ -59992,7 +59990,7 @@ function pre({ images: t, imgIndex: e = 0 }) {
|
|
|
59992
59990
|
It,
|
|
59993
59991
|
{
|
|
59994
59992
|
component: "img",
|
|
59995
|
-
src:
|
|
59993
|
+
src: u,
|
|
59996
59994
|
sx: {
|
|
59997
59995
|
width: "100%",
|
|
59998
59996
|
height: "100%",
|
|
@@ -60002,7 +60000,7 @@ function pre({ images: t, imgIndex: e = 0 }) {
|
|
|
60002
60000
|
}
|
|
60003
60001
|
)
|
|
60004
60002
|
},
|
|
60005
|
-
|
|
60003
|
+
d
|
|
60006
60004
|
))
|
|
60007
60005
|
]
|
|
60008
60006
|
}
|
|
@@ -60019,9 +60017,9 @@ function pre({ images: t, imgIndex: e = 0 }) {
|
|
|
60019
60017
|
justifyContent: "center",
|
|
60020
60018
|
gap: 4,
|
|
60021
60019
|
children: [
|
|
60022
|
-
/* @__PURE__ */ te.jsx(Hn, { onClick:
|
|
60023
|
-
/* @__PURE__ */ te.jsx(dn, { children: `${
|
|
60024
|
-
/* @__PURE__ */ te.jsx(Hn, { onClick:
|
|
60020
|
+
/* @__PURE__ */ te.jsx(Hn, { onClick: c, children: /* @__PURE__ */ te.jsx(In, { icon: "arrowLeft", fill: Ng }) }),
|
|
60021
|
+
/* @__PURE__ */ te.jsx(dn, { children: `${r + 1} / ${t.length}` }),
|
|
60022
|
+
/* @__PURE__ */ te.jsx(Hn, { onClick: l, children: /* @__PURE__ */ te.jsx(In, { icon: "arrowRight", fill: Ng }) })
|
|
60025
60023
|
]
|
|
60026
60024
|
}
|
|
60027
60025
|
)
|