@lobehub/ui 1.142.2 → 1.142.3
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/es/ActionIcon/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React 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?: React.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"]
|
|
@@ -57,5 +58,5 @@ export interface ActionIconProps extends LucideIconProps, FlexboxProps {
|
|
|
57
58
|
*/
|
|
58
59
|
tooltipDelay?: number;
|
|
59
60
|
}
|
|
60
|
-
declare const ActionIcon:
|
|
61
|
+
declare const ActionIcon: React.ForwardRefExoticComponent<ActionIconProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
62
|
export default ActionIcon;
|
package/es/ActionIcon/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
6
7
|
import { Loader2 } from 'lucide-react';
|
|
7
|
-
import { forwardRef, useMemo } from 'react';
|
|
8
8
|
import { Flexbox } from 'react-layout-kit';
|
|
9
9
|
import Icon from "../Icon";
|
|
10
10
|
import Spotlight from "../Spotlight";
|
|
@@ -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
|