datastake-daf 0.6.207 → 0.6.208
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/index.js
CHANGED
|
@@ -21315,7 +21315,7 @@ const StyledCarouselWrapper = dt.div`
|
|
|
21315
21315
|
}
|
|
21316
21316
|
`;
|
|
21317
21317
|
|
|
21318
|
-
const _excluded$d = ["title", "images", "height", "fallback", "activeDotColor", "inactiveDotColor", "arrowIconColor", "arrowHoverIconColor"];
|
|
21318
|
+
const _excluded$d = ["title", "images", "height", "fallback", "activeDotColor", "inactiveDotColor", "arrowIconColor", "arrowHoverIconColor", "customArrows"];
|
|
21319
21319
|
function ImageCarousel(_ref) {
|
|
21320
21320
|
let {
|
|
21321
21321
|
title,
|
|
@@ -21325,7 +21325,8 @@ function ImageCarousel(_ref) {
|
|
|
21325
21325
|
activeDotColor = "#1890ff",
|
|
21326
21326
|
inactiveDotColor = "rgba(255, 255, 255, 0.3)",
|
|
21327
21327
|
arrowIconColor = "#666",
|
|
21328
|
-
arrowHoverIconColor = "#1890ff"
|
|
21328
|
+
arrowHoverIconColor = "#1890ff",
|
|
21329
|
+
customArrows = false
|
|
21329
21330
|
} = _ref,
|
|
21330
21331
|
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
21331
21332
|
const [previewVisible, setPreviewVisible] = React.useState(false);
|
|
@@ -21393,7 +21394,7 @@ function ImageCarousel(_ref) {
|
|
|
21393
21394
|
}
|
|
21394
21395
|
})
|
|
21395
21396
|
})
|
|
21396
|
-
})), hasImages && images.length > 1 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21397
|
+
})), hasImages && customArrows && images.length > 1 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21397
21398
|
children: [/*#__PURE__*/jsxRuntime.jsx(CustomArrowButton, {
|
|
21398
21399
|
icon: /*#__PURE__*/jsxRuntime.jsx(Icons.LeftOutlined, {}),
|
|
21399
21400
|
onClick: goToPrevious,
|
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ function ImageCarousel({
|
|
|
72
72
|
inactiveDotColor = "rgba(255, 255, 255, 0.3)",
|
|
73
73
|
arrowIconColor = "#666",
|
|
74
74
|
arrowHoverIconColor = "#1890ff",
|
|
75
|
+
customArrows = false,
|
|
75
76
|
...rest
|
|
76
77
|
}) {
|
|
77
78
|
const [previewVisible, setPreviewVisible] = useState(false);
|
|
@@ -152,7 +153,7 @@ function ImageCarousel({
|
|
|
152
153
|
)}
|
|
153
154
|
</CarouselWidget>
|
|
154
155
|
|
|
155
|
-
{hasImages && images.length > 1 && (
|
|
156
|
+
{(hasImages && customArrows && images.length > 1) && (
|
|
156
157
|
<>
|
|
157
158
|
<CustomArrowButton
|
|
158
159
|
icon={<LeftOutlined />}
|