revdev-components 0.51.0 → 0.52.0

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.
@@ -3,7 +3,6 @@ import { TooltipPlacement } from "antd/es/tooltip";
3
3
  import { RegularIconName } from "src/icon/regular";
4
4
  export interface IconDivisionProps {
5
5
  icon?: RegularIconName;
6
- isButton?: boolean;
7
6
  rightIcon?: RegularIconName;
8
7
  className?: string;
9
8
  contentClassName?: string;
@@ -12,7 +11,6 @@ export interface IconDivisionProps {
12
11
  tooltip?: string;
13
12
  tooltipPlacement?: TooltipPlacement;
14
13
  hoverOpenDelay?: number;
15
- animation?: boolean;
16
14
  children?: React.ReactNode;
17
15
  direction?: "row" | "column";
18
16
  elementRev?: React.Ref<any>;
package/build/index.js CHANGED
@@ -5066,10 +5066,10 @@ var AppTooltip = function (_a) {
5066
5066
 
5067
5067
  var IconBoxContent = function (_a) {
5068
5068
  var _b;
5069
- var flexRoot = _a.flexRoot, isButton = _a.isButton, icon = _a.icon, rightIcon = _a.rightIcon, children = _a.children, className = _a.className, contentClassName = _a.contentClassName, onClick = _a.onClick, _c = _a.direction, direction = _c === void 0 ? "row" : _c, elementRev = _a.elementRev, style = _a.style;
5069
+ var flexRoot = _a.flexRoot, icon = _a.icon, rightIcon = _a.rightIcon, children = _a.children, className = _a.className, contentClassName = _a.contentClassName, onClick = _a.onClick, _c = _a.direction, direction = _c === void 0 ? "row" : _c, elementRev = _a.elementRev, style = _a.style;
5070
5070
  return (React.createElement("div", { ref: elementRev, style: style, className: classNames(s.root, (_b = {},
5071
5071
  _b[s.flex] = flexRoot,
5072
- _b[s.button] = isButton,
5072
+ _b[s.button] = !!onClick,
5073
5073
  _b[s.column] = direction === "column",
5074
5074
  _b), className), onClick: onClick },
5075
5075
  icon ? React.createElement(RegularIcon, { className: s.icon, name: icon }) : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {