@lobehub/ui 1.130.0 → 1.131.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.
package/es/Alert/index.js CHANGED
@@ -119,6 +119,10 @@ var Alert = /*#__PURE__*/memo(function (_ref) {
119
119
  fontSize: 18
120
120
  }
121
121
  }), /*#__PURE__*/_jsx("div", {
122
+ className: cx(styles.expandText),
123
+ onClick: function onClick() {
124
+ return setExpand(!expand);
125
+ },
122
126
  children: (text === null || text === void 0 ? void 0 : text.detail) || 'Show Details'
123
127
  })]
124
128
  }), expand && /*#__PURE__*/_jsx("div", {
@@ -6,6 +6,7 @@ export declare const useStyles: (props?: {
6
6
  banner: import("antd-style").SerializedStyles;
7
7
  colorfulText: import("antd-style").SerializedStyles;
8
8
  container: string;
9
+ expandText: import("antd-style").SerializedStyles;
9
10
  extra: import("antd-style").SerializedStyles;
10
11
  extraBody: import("antd-style").SerializedStyles;
11
12
  extraHeader: import("antd-style").SerializedStyles;
package/es/Alert/style.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
3
3
  import { createStyles } from 'antd-style';
4
4
  export var useStyles = createStyles(function (_ref, _ref2) {
5
5
  var cx = _ref.cx,
@@ -15,13 +15,14 @@ export var useStyles = createStyles(function (_ref, _ref2) {
15
15
  banner: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: none;\n border-radius: 0;\n "]))),
16
16
  colorfulText: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", "-alert-message,.", "-alert-description {\n color: inherit;\n }\n "])), prefixCls, prefixCls),
17
17
  container: cx(css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n\n display: flex;\n flex-direction: row;\n gap: ", "px;\n align-items: flex-start;\n\n max-width: 100%;\n padding-block: ", "px;\n padding-inline: ", "px\n ", "px;\n\n .", "-alert-message {\n font-weight: ", ";\n line-height: 24px;\n word-break: break-all;\n }\n .", "-alert-icon {\n display: flex;\n align-items: center;\n height: 24px;\n margin: 0;\n }\n .", "-alert-close-icon {\n display: flex;\n align-items: center;\n height: 24px;\n margin: 0;\n }\n "])), hasTitle ? 12 : 8, baseBlockPadding, showIcon ? baseInlinePadding : baseInlinePadding * 1.5, closable ? baseInlinePadding : baseInlinePadding * 1.5, prefixCls, hasTitle ? 600 : 400, prefixCls, prefixCls), hasTitle && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .", "-alert-description {\n line-height: 1.5;\n word-break: break-all;\n opacity: 0.75;\n }\n "])), prefixCls)),
18
- extra: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n\n overflow: hidden;\n\n max-width: 100%;\n\n border: 1px solid;\n border-block-start: none;\n border-end-start-radius: ", "px;\n border-end-end-radius: ", "px;\n "])), token.borderRadiusLG, token.borderRadiusLG),
19
- extraBody: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow-x: auto;\n width: 100%;\n padding-block: ", "px;\n padding-inline: ", "px;\n "])), baseBlockPadding, baseInlinePadding),
20
- extraHeader: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding-block: ", "px;\n padding-inline: ", "px;\n border-block-start: 1px dashed;\n "])), baseBlockPadding * 0.75, baseInlinePadding * 0.75),
21
- hasExtra: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-block-end: none;\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n "]))),
22
- variantBlock: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border: none;\n "]))),
23
- variantGhost: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background: transparent !important;\n "]))),
24
- variantPure: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding: 0 !important;\n background: transparent !important;\n border: none;\n "]))),
25
- variantPureExtraHeader: css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-block-start: ", "px;\n margin-inline-start: ", "px;\n padding-inline: 0;\n "])), baseBlockPadding, -baseInlinePadding * 0.25)
18
+ expandText: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n &:hover {\n cursor: pointer;\n }\n "]))),
19
+ extra: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: relative;\n\n overflow: hidden;\n\n max-width: 100%;\n\n border: 1px solid;\n border-block-start: none;\n border-end-start-radius: ", "px;\n border-end-end-radius: ", "px;\n "])), token.borderRadiusLG, token.borderRadiusLG),
20
+ extraBody: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n overflow-x: auto;\n width: 100%;\n padding-block: ", "px;\n padding-inline: ", "px;\n "])), baseBlockPadding, baseInlinePadding),
21
+ extraHeader: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding-block: ", "px;\n padding-inline: ", "px;\n border-block-start: 1px dashed;\n "])), baseBlockPadding * 0.75, baseInlinePadding * 0.75),
22
+ hasExtra: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border-block-end: none;\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n "]))),
23
+ variantBlock: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n border: none;\n "]))),
24
+ variantGhost: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background: transparent !important;\n "]))),
25
+ variantPure: css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding: 0 !important;\n background: transparent !important;\n border: none;\n "]))),
26
+ variantPureExtraHeader: css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-block-start: ", "px;\n margin-inline-start: ", "px;\n padding-inline: 0;\n "])), baseBlockPadding, -baseInlinePadding * 0.25)
26
27
  };
27
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.130.0",
3
+ "version": "1.131.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",