@lobehub/ui 1.38.3 → 1.38.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.
package/es/ActionIcon/index.d.ts
CHANGED
|
@@ -33,10 +33,6 @@ export interface ActionIconProps extends DivProps {
|
|
|
33
33
|
* @description Set the loading status of ActionIcon
|
|
34
34
|
*/
|
|
35
35
|
loading?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* @description Handle click action
|
|
38
|
-
*/
|
|
39
|
-
onClick?: () => void;
|
|
40
36
|
/**
|
|
41
37
|
* @description The position of the tooltip relative to the target
|
|
42
38
|
* @enum ["top","left","right","bottom","topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]
|
|
@@ -26,18 +26,10 @@ var ThemeProvider = /*#__PURE__*/memo(function (_ref) {
|
|
|
26
26
|
});
|
|
27
27
|
}, []);
|
|
28
28
|
var stylish = useCallback(function (theme) {
|
|
29
|
-
|
|
30
|
-
if (customStylish) {
|
|
31
|
-
stylish = customStylish(theme);
|
|
32
|
-
}
|
|
33
|
-
return _objectSpread(_objectSpread({}, lobeCustomStylish(theme)), stylish);
|
|
29
|
+
return _objectSpread(_objectSpread({}, lobeCustomStylish(theme)), customStylish === null || customStylish === void 0 ? void 0 : customStylish(theme));
|
|
34
30
|
}, [customStylish]);
|
|
35
31
|
var token = useCallback(function (theme) {
|
|
36
|
-
|
|
37
|
-
if (customToken) {
|
|
38
|
-
token = customToken(theme);
|
|
39
|
-
}
|
|
40
|
-
return _objectSpread(_objectSpread({}, lobeCustomToken(theme)), token);
|
|
32
|
+
return _objectSpread(_objectSpread({}, lobeCustomToken(theme)), customToken === null || customToken === void 0 ? void 0 : customToken(theme));
|
|
41
33
|
}, [customToken]);
|
|
42
34
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
43
35
|
children: [enableWebfonts && (webfonts === null || webfonts === void 0 ? void 0 : webfonts.length) > 0 && webfonts.map(function (webfont, index) {
|