datastake-daf 0.6.717 → 0.6.719

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.
@@ -11643,7 +11643,6 @@ function Widget(_ref) {
11643
11643
  addedHeaderFirst = false,
11644
11644
  expandable = false,
11645
11645
  defaultExpanded,
11646
- isCollapsable = false,
11647
11646
  defaultCollapsed = false,
11648
11647
  onExpandChange,
11649
11648
  description
@@ -11673,11 +11672,8 @@ function Widget(_ref) {
11673
11672
  onExpandChange(isExpanded);
11674
11673
  }
11675
11674
  }, [isExpanded, expandable, onExpandChange]);
11676
- const handleCollapseToggle = () => {
11677
- setIsCollapsed(!isCollapsed);
11678
- };
11679
11675
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
11680
- className: formatClassname(["daf-widget", "flex-1", className, !!tabsConfig && "with-tabs", isCollapsable && isCollapsed && "collapsed-widget"]),
11676
+ className: formatClassname(["daf-widget", "flex-1", className, !!tabsConfig && "with-tabs", isCollapsed && "collapsed-widget"]),
11681
11677
  children: [loading && fullWidgetLoading && /*#__PURE__*/jsxRuntime.jsx(Loader, {
11682
11678
  background: "white"
11683
11679
  }), !noTitle && /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -11720,27 +11716,8 @@ function Widget(_ref) {
11720
11716
  },
11721
11717
  onClick: () => setShowFilters(p => !p)
11722
11718
  })
11723
- }), addedHeaderFirst && addedHeader, isCollapsable && /*#__PURE__*/jsxRuntime.jsx("div", {
11724
- className: "flex justify-content-end",
11725
- children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
11726
- className: "squareIconButton no-min-width",
11727
- style: {
11728
- height: '32px',
11729
- width: '32px'
11730
- },
11731
- onClick: handleCollapseToggle,
11732
- icon: isCollapsed ? /*#__PURE__*/jsxRuntime.jsx(Icons.RightOutlined, {
11733
- style: {
11734
- width: 16
11735
- }
11736
- }) : /*#__PURE__*/jsxRuntime.jsx(Icons.DownOutlined, {
11737
- style: {
11738
- width: 16
11739
- }
11740
- })
11741
- })
11742
- }), expandable ? /*#__PURE__*/jsxRuntime.jsx("div", {
11743
- className: formatClassname([!(filtersConfig || addedHeaderFirst || isCollapsable) && "flex-1", "flex justify-content-end"]),
11719
+ }), addedHeaderFirst && addedHeader, expandable ? /*#__PURE__*/jsxRuntime.jsx("div", {
11720
+ className: formatClassname([!(filtersConfig || addedHeaderFirst) && "flex-1", "flex justify-content-end"]),
11744
11721
  children: /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
11745
11722
  className: "flex flex-column"
11746
11723
  }, getToggleProps()), {}, {
@@ -11748,21 +11725,18 @@ function Widget(_ref) {
11748
11725
  className: "squareIconButton no-min-width",
11749
11726
  style: {
11750
11727
  height: '32px',
11751
- width: '32px'
11728
+ width: '32px',
11729
+ justifyContent: 'center',
11730
+ alignItems: 'center',
11731
+ display: 'flex'
11752
11732
  },
11753
11733
  icon: !isExpanded ? /*#__PURE__*/jsxRuntime.jsx(Icons.RightOutlined, {
11754
11734
  style: {
11755
- width: 16,
11756
- paddingTop: "4px"
11735
+ width: 16
11757
11736
  }
11758
- }) :
11759
- /*#__PURE__*/
11760
- //<PlusOutlined style={{width: 10}} />
11761
- //<MinusOutlined style={{ width: 10 }} />
11762
- jsxRuntime.jsx(Icons.DownOutlined, {
11737
+ }) : /*#__PURE__*/jsxRuntime.jsx(Icons.DownOutlined, {
11763
11738
  style: {
11764
- width: 16,
11765
- paddingTop: "4px"
11739
+ width: 16
11766
11740
  }
11767
11741
  })
11768
11742
  })
@@ -11807,7 +11781,6 @@ Widget.propTypes = {
11807
11781
  expandable: PropTypes__default["default"].any,
11808
11782
  defaultExpanded: PropTypes__default["default"].any,
11809
11783
  addedHeaderFirst: PropTypes__default["default"].bool,
11810
- isCollapsable: PropTypes__default["default"].bool,
11811
11784
  defaultCollapsed: PropTypes__default["default"].bool,
11812
11785
  onExpandChange: PropTypes__default["default"].func,
11813
11786
  description: PropTypes__default["default"].string