@lobehub/ui 1.170.8 → 1.171.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.
@@ -60,6 +60,10 @@ export interface ActionIconProps extends LucideIconProps, FlexboxProps {
60
60
  * @default 0.5
61
61
  */
62
62
  tooltipDelay?: number;
63
+ /**
64
+ * @description Hotkey to display in tooltip
65
+ */
66
+ tooltipHotkey?: string;
63
67
  variant?: 'default' | 'block' | 'ghost';
64
68
  }
65
69
  declare const ActionIcon: import("react").ForwardRefExoticComponent<ActionIconProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var _excluded = ["color", "fill", "className", "active", "icon", "size", "variant", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "tooltipDelay", "fillOpacity", "fillRule", "focusable", "disable", "spin", "styles"];
4
+ var _excluded = ["color", "fill", "className", "active", "icon", "size", "variant", "style", "glass", "title", "placement", "arrow", "spotlight", "onClick", "children", "loading", "tooltipDelay", "tooltipHotkey", "fillOpacity", "fillRule", "focusable", "disable", "spin", "styles"];
5
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -47,6 +47,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
47
  loading = _ref.loading,
48
48
  _ref$tooltipDelay = _ref.tooltipDelay,
49
49
  tooltipDelay = _ref$tooltipDelay === void 0 ? 0.5 : _ref$tooltipDelay,
50
+ tooltipHotkey = _ref.tooltipHotkey,
50
51
  fillOpacity = _ref.fillOpacity,
51
52
  fillRule = _ref.fillRule,
52
53
  focusable = _ref.focusable,
@@ -112,6 +113,7 @@ var ActionIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
112
113
  if (!title) return actionIconBlock;
113
114
  return /*#__PURE__*/_jsx(Tooltip, {
114
115
  arrow: arrow,
116
+ hotkey: tooltipHotkey,
115
117
  mouseEnterDelay: tooltipDelay,
116
118
  onOpenChange: setTooltipOpen,
117
119
  open: tooltipOpen,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.170.8",
3
+ "version": "1.171.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",