@lobehub/ui 1.142.2 → 1.142.4

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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type CSSProperties } from 'react';
2
2
  import { type FlexboxProps } from 'react-layout-kit';
3
3
  import { type IconProps, type IconSizeConfig, type IconSizeType, LucideIconProps } from "../Icon";
4
4
  import { type TooltipProps } from "../Tooltip";
@@ -30,6 +30,7 @@ export interface ActionIconProps extends LucideIconProps, FlexboxProps {
30
30
  * @description Set the loading status of ActionIcon
31
31
  */
32
32
  loading?: boolean;
33
+ overlayStyle?: CSSProperties;
33
34
  /**
34
35
  * @description The position of the tooltip relative to the target
35
36
  * @enum ["top","left","right","bottom","topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- var _excluded = ["color", "fill", "className", "active", "icon", "size", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "tooltipDelay", "fillOpacity", "fillRule", "focusable", "disable", "spin"];
5
+ var _excluded = ["color", "fill", "className", "active", "icon", "size", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "overlayStyle", "tooltipDelay", "fillOpacity", "fillRule", "focusable", "disable", "spin"];
6
6
  import { Loader2 } from 'lucide-react';
7
7
  import { forwardRef, useMemo } from 'react';
8
8
  import { Flexbox } from 'react-layout-kit';
@@ -31,6 +31,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
31
31
  onClick = _ref.onClick,
32
32
  children = _ref.children,
33
33
  loading = _ref.loading,
34
+ overlayStyle = _ref.overlayStyle,
34
35
  _ref$tooltipDelay = _ref.tooltipDelay,
35
36
  tooltipDelay = _ref$tooltipDelay === void 0 ? 0.5 : _ref$tooltipDelay,
36
37
  fillOpacity = _ref.fillOpacity,
@@ -88,9 +89,9 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
88
89
  return /*#__PURE__*/_jsx(Tooltip, {
89
90
  arrow: arrow,
90
91
  mouseEnterDelay: tooltipDelay,
91
- overlayStyle: {
92
+ overlayStyle: _objectSpread({
92
93
  pointerEvents: 'none'
93
- },
94
+ }, overlayStyle),
94
95
  placement: placement,
95
96
  title: title,
96
97
  children: actionIconBlock
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.142.2",
3
+ "version": "1.142.4",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",