@lobehub/ui 2.4.2 → 2.5.1

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.
@@ -9,18 +9,16 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
- import { Typography } from 'antd';
13
12
  import { Loader2, MessageSquare } from 'lucide-react';
14
13
  import { memo } from 'react';
15
14
  import { Flexbox } from 'react-layout-kit';
16
15
  import Icon from "../../Icon";
16
+ import Text from "../../Text";
17
17
  import { useStyles } from "./style";
18
18
  import { getChatItemTime } from "./time";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
21
21
  import { Fragment as _Fragment } from "react/jsx-runtime";
22
- var Title = Typography.Title,
23
- Paragraph = Typography.Paragraph;
24
22
  var ListItem = /*#__PURE__*/memo(function (_ref) {
25
23
  var ref = _ref.ref,
26
24
  active = _ref.active,
@@ -108,19 +106,15 @@ var ListItem = /*#__PURE__*/memo(function (_ref) {
108
106
  className: cx(styles.content, classNames === null || classNames === void 0 ? void 0 : classNames.content),
109
107
  gap: 4,
110
108
  style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.content,
111
- children: [/*#__PURE__*/_jsx(Title, {
109
+ children: [/*#__PURE__*/_jsx(Text, {
110
+ as: 'h3',
112
111
  className: cx(styles.title, classNames === null || classNames === void 0 ? void 0 : classNames.title),
113
- ellipsis: {
114
- rows: 1
115
- },
116
- level: 3,
112
+ ellipsis: true,
117
113
  style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.title,
118
114
  children: title
119
- }), description && /*#__PURE__*/_jsx(Paragraph, {
115
+ }), description && /*#__PURE__*/_jsx(Text, {
120
116
  className: cx(styles.desc, classNames === null || classNames === void 0 ? void 0 : classNames.desc),
121
- ellipsis: {
122
- rows: 1
123
- },
117
+ ellipsis: true,
124
118
  style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.desc,
125
119
  children: description
126
120
  }), addon]
@@ -5,17 +5,16 @@ export var useStyles = createStyles(function (_ref) {
5
5
  var cx = _ref.cx,
6
6
  css = _ref.css,
7
7
  token = _ref.token,
8
- prefixCls = _ref.prefixCls,
9
8
  stylish = _ref.stylish;
10
9
  return {
11
10
  actions: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 50%;\n inset-inline-end: 16px;\n transform: translateY(-50%);\n "]))),
12
11
  active: stylish.active,
13
12
  content: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n flex: 1;\n align-self: center;\n "]))),
14
13
  date: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n "])), token.colorTextPlaceholder),
15
- desc: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n &.", "-typography {\n width: 100%;\n margin: 0;\n\n font-size: 12px;\n line-height: 1.2;\n color: ", ";\n }\n "])), prefixCls, token.colorTextDescription),
14
+ desc: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 0;\n\n font-size: 12px;\n line-height: 1.2;\n color: ", ";\n "])), token.colorTextDescription),
16
15
  pin: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 6px;\n inset-inline-end: 6px;\n "]))),
17
- root: cx(stylish.variantBorderless, css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n cursor: pointer;\n position: relative;\n color: ", ";\n border-radius: ", "px;\n "])), token.colorTextTertiary, token.borderRadius)),
18
- title: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n &.", "-typography {\n width: 100%;\n margin: 0;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 1.2;\n color: ", ";\n }\n "])), prefixCls, token.colorText),
19
- triangle: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 10px;\n height: 10px;\n\n opacity: 0.5;\n background: ", ";\n clip-path: polygon(0% 0%, 100% 0%, 100% 100%);\n border-radius: 2px;\n "])), token.colorPrimaryBorder)
16
+ root: cx(stylish.variantBorderless, css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n cursor: pointer;\n position: relative;\n border-radius: ", "px;\n color: ", ";\n "])), token.borderRadius, token.colorTextTertiary)),
17
+ title: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 0;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 1.2;\n color: ", ";\n "])), token.colorText),
18
+ triangle: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 10px;\n height: 10px;\n border-radius: 2px;\n\n opacity: 0.5;\n background: ", ";\n clip-path: polygon(0% 0%, 100% 0%, 100% 100%);\n "])), token.colorPrimaryBorder)
20
19
  };
21
20
  });
@@ -15,9 +15,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
17
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
- import { Typography } from 'antd';
19
18
  import { memo, useMemo } from 'react';
20
19
  import { Flexbox } from 'react-layout-kit';
20
+ import Text from "../../../Text";
21
21
  import { useStyles } from "./style";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -69,8 +69,9 @@ var SearchResultCard = /*#__PURE__*/memo(function (_ref) {
69
69
  height: 14,
70
70
  src: "https://icons.duckduckgo.com/ip3/".concat(host, ".ico"),
71
71
  width: 14
72
- }), /*#__PURE__*/_jsx(Typography.Text, {
72
+ }), /*#__PURE__*/_jsx(Text, {
73
73
  className: styles.url,
74
+ ellipsis: true,
74
75
  type: 'secondary',
75
76
  children: domain
76
77
  })]
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { TextProps } from './type';
3
+ declare const Text: import("react").NamedExoticComponent<TextProps>;
4
+ export default Text;
@@ -0,0 +1,124 @@
1
+ 'use client';
2
+
3
+ var _excluded = ["as", "className", "children", "style", "type", "disabled", "strong", "italic", "underline", "delete", "fontSize", "mark", "code", "color", "weight", "ellipsis"];
4
+ 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); }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
+ import { Tooltip } from 'antd';
13
+ import { cva } from 'class-variance-authority';
14
+ import { memo, useMemo } from 'react';
15
+ import { useStyles } from "./styles";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ var Text = /*#__PURE__*/memo(function (_ref) {
18
+ var _ref$as = _ref.as,
19
+ Container = _ref$as === void 0 ? 'div' : _ref$as,
20
+ className = _ref.className,
21
+ children = _ref.children,
22
+ style = _ref.style,
23
+ type = _ref.type,
24
+ disabled = _ref.disabled,
25
+ strong = _ref.strong,
26
+ italic = _ref.italic,
27
+ underline = _ref.underline,
28
+ deleteStyle = _ref.delete,
29
+ fontSize = _ref.fontSize,
30
+ mark = _ref.mark,
31
+ code = _ref.code,
32
+ color = _ref.color,
33
+ weight = _ref.weight,
34
+ ellipsis = _ref.ellipsis,
35
+ rest = _objectWithoutProperties(_ref, _excluded);
36
+ var _useStyles = useStyles(),
37
+ styles = _useStyles.styles,
38
+ cx = _useStyles.cx;
39
+ var variants = useMemo(function () {
40
+ return cva(styles.text, {
41
+ defaultVariants: {},
42
+ variants: {
43
+ as: {
44
+ h1: styles.h1,
45
+ h2: styles.h2,
46
+ h3: styles.h3,
47
+ h4: styles.h4,
48
+ h5: styles.h5
49
+ },
50
+ code: {
51
+ true: styles.code
52
+ },
53
+ delete: {
54
+ true: styles.delete
55
+ },
56
+ disabled: {
57
+ true: styles.disabled
58
+ },
59
+ ellipsis: {
60
+ multi: styles.ellipsisMulti,
61
+ true: styles.ellipsis
62
+ },
63
+ italic: {
64
+ true: styles.italic
65
+ },
66
+ mark: {
67
+ true: styles.mark
68
+ },
69
+ strong: {
70
+ true: styles.strong
71
+ },
72
+ type: {
73
+ danger: styles.danger,
74
+ info: styles.info,
75
+ secondary: styles.secondary,
76
+ success: styles.success,
77
+ warning: styles.warning
78
+ },
79
+ underline: {
80
+ true: styles.underline
81
+ }
82
+ }
83
+ });
84
+ }, [styles]);
85
+ var textStyle = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, style), color && {
86
+ color: color
87
+ }), weight && {
88
+ fontWeight: weight
89
+ }), _typeof(ellipsis) === 'object' && ellipsis.rows && {
90
+ WebkitLineClamp: ellipsis.rows
91
+ }), {}, {
92
+ fontSize: fontSize
93
+ });
94
+ var content = /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread({
95
+ className: cx(variants({
96
+ as: ['h1', 'h2', 'h3', 'h4', 'h5'].includes(Container) ? Container : undefined,
97
+ code: code,
98
+ delete: deleteStyle,
99
+ disabled: disabled,
100
+ ellipsis: ellipsis ? _typeof(ellipsis) === 'object' && ellipsis.rows ? 'multi' : true : undefined,
101
+ italic: italic,
102
+ mark: mark,
103
+ strong: strong,
104
+ type: type,
105
+ underline: underline
106
+ }), className),
107
+ style: textStyle
108
+ }, rest), {}, {
109
+ children: children
110
+ }));
111
+
112
+ // 处理带有 tooltip 的省略
113
+ if (ellipsis && _typeof(ellipsis) === 'object' && ellipsis.tooltip) {
114
+ var tooltipProps = _typeof(ellipsis.tooltip) === 'object' ? ellipsis.tooltip : {
115
+ title: ellipsis.tooltip
116
+ };
117
+ return /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
118
+ children: content
119
+ }));
120
+ }
121
+ return content;
122
+ });
123
+ Text.displayName = 'Text';
124
+ export default Text;
@@ -0,0 +1,2 @@
1
+ export { default } from './Text';
2
+ export type * from './type';
@@ -0,0 +1 @@
1
+ export { default } from "./Text";
@@ -0,0 +1,22 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ code: import("antd-style").SerializedStyles;
3
+ danger: import("antd-style").SerializedStyles;
4
+ delete: import("antd-style").SerializedStyles;
5
+ disabled: import("antd-style").SerializedStyles;
6
+ ellipsis: import("antd-style").SerializedStyles;
7
+ ellipsisMulti: import("antd-style").SerializedStyles;
8
+ h1: import("antd-style").SerializedStyles;
9
+ h2: import("antd-style").SerializedStyles;
10
+ h3: import("antd-style").SerializedStyles;
11
+ h4: import("antd-style").SerializedStyles;
12
+ h5: import("antd-style").SerializedStyles;
13
+ info: import("antd-style").SerializedStyles;
14
+ italic: import("antd-style").SerializedStyles;
15
+ mark: import("antd-style").SerializedStyles;
16
+ secondary: import("antd-style").SerializedStyles;
17
+ strong: import("antd-style").SerializedStyles;
18
+ success: import("antd-style").SerializedStyles;
19
+ text: import("antd-style").SerializedStyles;
20
+ underline: import("antd-style").SerializedStyles;
21
+ warning: import("antd-style").SerializedStyles;
22
+ }>;
@@ -0,0 +1,30 @@
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
2
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
+ import { createStyles } from 'antd-style';
4
+ export var useStyles = createStyles(function (_ref) {
5
+ var css = _ref.css,
6
+ token = _ref.token;
7
+ return {
8
+ code: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: ", ";\n "])), token.fontFamilyCode),
9
+ danger: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n "])), token.colorError),
10
+ delete: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n text-decoration: line-through;\n "]))),
11
+ disabled: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: not-allowed;\n color: ", ";\n "])), token.colorTextDisabled),
12
+ ellipsis: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "]))),
13
+ ellipsisMulti: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n "]))),
14
+ // Heading styles
15
+ h1: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: calc(", "px * 2.5);\n font-weight: bold;\n line-height: 1.25;\n "])), token.fontSize),
16
+ h2: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: calc(", "px * 2);\n font-weight: bold;\n line-height: 1.25;\n "])), token.fontSize),
17
+ h3: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-size: calc(", "px * 1.5);\n font-weight: bold;\n line-height: 1.25;\n "])), token.fontSize),
18
+ h4: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: calc(", "px * 1.25);\n font-weight: bold;\n line-height: 1.25;\n "])), token.fontSize),
19
+ h5: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", "px;\n font-weight: bold;\n line-height: 1.25;\n "])), token.fontSize),
20
+ info: css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n color: ", ";\n "])), token.colorInfo),
21
+ italic: css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n font-style: italic;\n "]))),
22
+ mark: css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n color: #000;\n background-color: ", ";\n "])), token.yellow),
23
+ secondary: css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n color: ", ";\n "])), token.colorTextSecondary),
24
+ strong: css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n font-weight: bold;\n "]))),
25
+ success: css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n color: ", ";\n "])), token.colorSuccess),
26
+ text: css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: ", ";\n "])), token.fontSize, token.lineHeight),
27
+ underline: css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n text-decoration: underline;\n "]))),
28
+ warning: css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n color: ", ";\n "])), token.colorWarning)
29
+ };
30
+ });
@@ -0,0 +1,22 @@
1
+ import type { ElementType, ReactNode, Ref } from 'react';
2
+ import type { TooltipProps } from "../Tooltip";
3
+ import { DivProps } from "../types";
4
+ export interface TextProps extends DivProps {
5
+ as?: ElementType;
6
+ code?: boolean;
7
+ color?: string;
8
+ delete?: boolean;
9
+ disabled?: boolean;
10
+ ellipsis?: boolean | {
11
+ rows?: number;
12
+ tooltip?: ReactNode | TooltipProps;
13
+ };
14
+ fontSize?: number | string;
15
+ italic?: boolean;
16
+ mark?: boolean;
17
+ ref?: Ref<HTMLDivElement>;
18
+ strong?: boolean;
19
+ type?: 'secondary' | 'success' | 'warning' | 'danger' | 'info';
20
+ underline?: boolean;
21
+ weight?: 'bold' | 'bolder' | number;
22
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -9,12 +9,12 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
- import { Typography } from 'antd';
13
12
  import { memo } from 'react';
14
13
  import { Center, Flexbox } from 'react-layout-kit';
15
14
  import A from "../../A";
16
15
  import Icon from "../../Icon";
17
16
  import Img from "../../Img";
17
+ import Text from "../../Text";
18
18
  import { useStyles } from "./style";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -81,7 +81,7 @@ var Item = /*#__PURE__*/memo(function (_ref2) {
81
81
  gap: 8,
82
82
  horizontal: true,
83
83
  children: title
84
- }), description && /*#__PURE__*/_jsx(Typography.Paragraph, {
84
+ }), description && /*#__PURE__*/_jsx(Text, {
85
85
  className: styles.desc,
86
86
  ellipsis: {
87
87
  rows: 4
package/es/index.d.ts CHANGED
@@ -53,6 +53,7 @@ export { default as SortableList, type SortableListProps } from './SortableList'
53
53
  export * from './styles';
54
54
  export { default as Tabs, type TabsProps } from './Tabs';
55
55
  export { default as Tag, type TagProps } from './Tag';
56
+ export { default as Text, type TextProps } from './Text';
56
57
  export { Meta, type MetaProps, default as ThemeProvider, type ThemeProviderProps, } from './ThemeProvider';
57
58
  export { default as ThemeSwitch, type ThemeSwitchProps } from './ThemeSwitch';
58
59
  export { default as Toc, type TocProps } from './Toc';
package/es/index.js CHANGED
@@ -53,6 +53,7 @@ export { default as SortableList } from "./SortableList";
53
53
  export * from "./styles";
54
54
  export { default as Tabs } from "./Tabs";
55
55
  export { default as Tag } from "./Tag";
56
+ export { default as Text } from "./Text";
56
57
  export { Meta, default as ThemeProvider } from "./ThemeProvider";
57
58
  export { default as ThemeSwitch } from "./ThemeSwitch";
58
59
  export { default as Toc } from "./Toc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.4.2",
3
+ "version": "2.5.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",