@lobehub/ui 1.141.2 → 1.142.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,6 +3,7 @@ import { type LucideIcon } from 'lucide-react';
3
3
  import { type ActionIconProps } from "../ActionIcon";
4
4
  import { DivProps } from "../types";
5
5
  export interface ActionIconGroupItems {
6
+ disable?: boolean;
6
7
  icon: LucideIcon;
7
8
  key: string;
8
9
  label: string;
@@ -38,6 +38,7 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
38
38
  }, rest), {}, {
39
39
  children: [spotlight && /*#__PURE__*/_jsx(Spotlight, {}), (items === null || items === void 0 ? void 0 : items.length) > 0 && items.map(function (item) {
40
40
  return /*#__PURE__*/_jsx(ActionIcon, {
41
+ disable: item.disable,
41
42
  icon: item.icon,
42
43
  onClick: onActionClick ? function () {
43
44
  return onActionClick === null || onActionClick === void 0 ? void 0 : onActionClick({
@@ -55,6 +56,7 @@ var ActionIconGroup = /*#__PURE__*/memo(function (_ref) {
55
56
  items: dropdownMenu.map(function (item) {
56
57
  if (item.type) return item;
57
58
  return _objectSpread(_objectSpread({}, item), {}, {
59
+ disabled: item.disable,
58
60
  icon: /*#__PURE__*/_jsx(Icon, {
59
61
  icon: item.icon,
60
62
  size: "small"
@@ -3,5 +3,5 @@ var _templateObject;
3
3
  import { css } from 'antd-style';
4
4
  import { readableColor, rgba } from 'polished';
5
5
  export default (function (token) {
6
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", "-checkbox-inner:after {\n border-color: ", " !important;\n }\n\n .", "-btn {\n box-shadow: none;\n }\n\n .", "-btn-primary:not(:disabled) {\n color: ", " !important;\n\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n }\n\n .", "-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n\n color: ", " !important;\n\n background-color: ", " !important;\n border-radius: ", "px !important;\n }\n\n .", "-tooltip-arrow {\n &::before,\n &::after {\n background: ", " !important;\n }\n }\n\n .", "-switch-handle::before {\n background: ", " !important;\n }\n\n .", "-image-preview-close,\n .", "-image-preview-switch-right,.", "-image-preview-switch-left {\n ", ";\n border-radius: ", "px;\n background: ", ";\n\n width: 32px;\n height: 32px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: 0;\n }\n\n .", "-popover-inner {\n border: 1px solid ", ";\n box-shadow: ", ";\n }\n\n ul.", "-dropdown-menu {\n border: 1px solid ", ";\n border-radius: ", "px !important;\n box-shadow: ", ";\n }\n\n @media (max-width: 575px) {\n .", "-tooltip {\n display: none !important;\n }\n }\n"])), token.prefixCls, readableColor(token.colorPrimary), token.prefixCls, token.prefixCls, readableColor(token.colorPrimary), readableColor(token.colorPrimary), readableColor(token.colorPrimaryActive), token.prefixCls, token.colorBgLayout, token.colorText, token.borderRadiusSM, token.prefixCls, token.colorText, token.prefixCls, token.colorBgContainer, token.prefixCls, token.prefixCls, token.prefixCls, token.stylish.blur, token.borderRadiusLG, rgba(token.colorBgMask, 0.1), token.prefixCls, token.colorBorderSecondary, token.boxShadowSecondary, token.prefixCls, token.colorBorderSecondary, token.borderRadius, token.boxShadowSecondary, token.prefixCls);
6
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", "-checkbox-inner:after {\n border-color: ", " !important;\n }\n\n .", "-btn {\n box-shadow: none;\n }\n\n .", "-btn-primary:not(:disabled) {\n color: ", " !important;\n\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n }\n\n .", "-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n\n color: ", " !important;\n\n background-color: ", " !important;\n border-radius: ", "px !important;\n }\n\n .", "-tooltip-arrow {\n &::before,\n &::after {\n background: ", " !important;\n }\n }\n\n .", "-switch-handle::before {\n background: ", " !important;\n }\n\n .", "-image-preview-close,\n .", "-image-preview-switch-right,.", "-image-preview-switch-left {\n ", ";\n border-radius: ", "px;\n background: ", ";\n\n width: 32px;\n height: 32px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: 0;\n }\n\n .", "-popover-inner {\n border: 1px solid ", ";\n box-shadow: ", ";\n }\n\n ul.", "-dropdown-menu {\n border: 1px solid ", ";\n border-radius: ", "px !important;\n box-shadow: ", ";\n }\n"])), token.prefixCls, readableColor(token.colorPrimary), token.prefixCls, token.prefixCls, readableColor(token.colorPrimary), readableColor(token.colorPrimary), readableColor(token.colorPrimaryActive), token.prefixCls, token.colorBgLayout, token.colorText, token.borderRadiusSM, token.prefixCls, token.colorText, token.prefixCls, token.colorBgContainer, token.prefixCls, token.prefixCls, token.prefixCls, token.stylish.blur, token.borderRadiusLG, rgba(token.colorBgMask, 0.1), token.prefixCls, token.colorBorderSecondary, token.boxShadowSecondary, token.prefixCls, token.colorBorderSecondary, token.borderRadius, token.boxShadowSecondary);
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.141.2",
3
+ "version": "1.142.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",