ods-component-lib 1.18.197 → 1.18.198

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/index.js CHANGED
@@ -1655,7 +1655,7 @@ var useStyles = antdStyle.createStyles(function (_ref, props) {
1655
1655
  filterBodyWrapper: cx(grid, css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n transition: grid-template-rows 0.3s;\n grid-template-rows: ", ";\n "])), props.open ? "1fr" : "0fr")),
1656
1656
  filterBody: cx(css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n width: 100%;\n "])))),
1657
1657
  filterActionButtonsWrapper: cx(flex, css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n width: 100%;\n justify-content: flex-end;\n gap: ", "px;\n "])), token.sizeSM)),
1658
- filterTagsWrapper: cx(flex, css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n width: 85%;\n max-width: 85%;\n min-width: 85%;\n "])))),
1658
+ filterTagsWrapper: cx(flex, css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n width: 85%;\n max-width: 85%;\n min-width: 85%;\n transition: opacity 0.3s;\n opacity: ", ";\n "])), props.open ? 0 : 1)),
1659
1659
  toggleButton: cx(flex),
1660
1660
  clearButton: cx(flex)
1661
1661
  };
@@ -1674,7 +1674,7 @@ var useFilterTagsStyles = antdStyle.createStyles(function (_ref3) {
1674
1674
  var css = _ref3.css,
1675
1675
  token = _ref3.token;
1676
1676
  return {
1677
- menu: css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 0;\n gap: ", "px;\n position: relative;\n\n &::after,\n &::before {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal {\n & > .ant-menu-item {\n cursor: default;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n top: unset;\n }\n\n & > .ant-menu-submenu {\n &:hover {\n &::after {\n display: none;\n }\n }\n }\n }\n\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-item::after,\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover::after {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal\n > .ant-menu-submenu\n &.ant-menu-light.ant-menu-horizontal\n > .ant-menu-item::after {\n display: none;\n }\n "])), token.sizeXS)
1677
+ menu: css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 0;\n gap: ", "px;\n position: relative;\n\n &::after,\n &::before {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal {\n & > .ant-menu-item {\n cursor: default;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n top: unset;\n }\n\n & > .ant-menu-submenu {\n &:hover {\n &::after {\n display: none;\n }\n }\n }\n }\n\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-submenu-selected::after {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-item::after,\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover::after {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal\n > .ant-menu-submenu\n &.ant-menu-light.ant-menu-horizontal\n > .ant-menu-item::after {\n display: none;\n }\n "])), token.sizeXS)
1678
1678
  };
1679
1679
  });
1680
1680
 
@@ -1707,8 +1707,15 @@ var OdsFilterTagView = function OdsFilterTagView(_ref) {
1707
1707
  theme: {
1708
1708
  components: {
1709
1709
  Menu: {
1710
+ horizontalLineHeight: "22px",
1711
+ activeBarHeight: 0,
1710
1712
  itemPaddingInline: 0,
1711
- horizontalLineHeight: "22px"
1713
+ itemHeight: 30,
1714
+ itemMarginBlock: 0,
1715
+ itemActiveBg: "transparent",
1716
+ itemHoverBg: "transparent",
1717
+ itemSelectedBg: "transparent",
1718
+ subMenuItemBg: "transparent"
1712
1719
  },
1713
1720
  Tag: {
1714
1721
  marginXS: 0
@@ -1716,7 +1723,6 @@ var OdsFilterTagView = function OdsFilterTagView(_ref) {
1716
1723
  }
1717
1724
  }
1718
1725
  }, React__default.createElement(antd.Menu, {
1719
- expandIcon: React__default.createElement("div", null, React__default.createElement(outline.ChevronDownIcon, null)),
1720
1726
  defaultSelectedKeys: ["1"],
1721
1727
  mode: "horizontal",
1722
1728
  className: styles.menu
@@ -1761,14 +1767,8 @@ var OdsFilter = function OdsFilter(props) {
1761
1767
  }
1762
1768
  };
1763
1769
  var handleHideShowFilter = function handleHideShowFilter() {
1764
- if (hasAdvancedFilters) {
1765
- setShowAdvanceFilter(false);
1766
- setTimeout(function () {
1767
- setShowFilter(!showFilter);
1768
- }, 100);
1769
- } else {
1770
- setShowFilter(!showFilter);
1771
- }
1770
+ setShowAdvanceFilter(false);
1771
+ setShowFilter(!showFilter);
1772
1772
  };
1773
1773
  var onClearSearch = function onClearSearch() {
1774
1774
  if (props.onClickClear) {