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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.207",
3
+ "version": "0.6.208",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -94,7 +94,7 @@ export const Primary = {
94
94
  args: {
95
95
  title: "Nature Gallery",
96
96
  height: 400,
97
- arrows: true
97
+ customArrows: true
98
98
  },
99
99
  };
100
100
 
@@ -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 />}