@lobehub/ui 1.87.1 → 1.88.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.
@@ -2,10 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- import { useTheme } from 'antd-style';
6
- import { memo, useCallback, useMemo, useState } from 'react';
7
- import { Flexbox } from 'react-layout-kit';
8
- import Avatar from "../Avatar";
5
+ import { memo, useMemo, useState } from 'react';
6
+ import GroupNav from "./GroupNav";
9
7
  import Item from "./Item";
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  var Group = /*#__PURE__*/memo(function (_ref) {
@@ -15,57 +13,16 @@ var Group = /*#__PURE__*/memo(function (_ref) {
15
13
  _useState2 = _slicedToArray(_useState, 2),
16
14
  active = _useState2[0],
17
15
  setActive = _useState2[1];
18
- var theme = useTheme();
19
16
  var chatItem = useMemo(function () {
20
17
  return data.find(function (item) {
21
18
  return item.id === active;
22
19
  }) || data[0];
23
20
  }, [data, active]);
24
- var Nav = useCallback(function () {
25
- var count = 1;
26
- return data.map(function (item) {
27
- var _item$meta;
28
- var avatar;
29
- var isAvtive = active === item.id;
30
- var metaAvatar = item === null || item === void 0 ? void 0 : (_item$meta = item.meta) === null || _item$meta === void 0 ? void 0 : _item$meta.avatar;
31
- switch (item.role) {
32
- case 'assistant':
33
- {
34
- avatar = String(count);
35
- break;
36
- }
37
- case 'function':
38
- {
39
- avatar = metaAvatar || '🧩';
40
- break;
41
- }
42
- case 'system':
43
- {
44
- avatar = metaAvatar || '🚨';
45
- break;
46
- }
47
- default:
48
- {
49
- avatar = metaAvatar || String(count);
50
- break;
51
- }
52
- }
53
- count++;
54
- return /*#__PURE__*/_jsx(Avatar, {
55
- avatar: avatar,
56
- background: isAvtive ? theme.colorPrimary : theme.colorBgElevated,
57
- onClick: function onClick() {
58
- return setActive(item.id);
59
- },
60
- size: 20
61
- }, item.id);
62
- });
63
- }, [active, data]);
64
21
  return /*#__PURE__*/_jsx(Item, _objectSpread(_objectSpread({
65
- groupNav: /*#__PURE__*/_jsx(Flexbox, {
66
- align: 'center',
67
- gap: 4,
68
- children: /*#__PURE__*/_jsx(Nav, {})
22
+ groupNav: /*#__PURE__*/_jsx(GroupNav, {
23
+ active: active,
24
+ data: data,
25
+ setActive: setActive
69
26
  })
70
27
  }, chatItem), {}, {
71
28
  meta: meta
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ChatListItemProps } from "./Item";
3
+ interface GroupNavProps {
4
+ active: string;
5
+ data: ChatListItemProps[];
6
+ setActive: (id: string) => void;
7
+ }
8
+ declare const GroupNav: import("react").NamedExoticComponent<GroupNavProps>;
9
+ export default GroupNav;
@@ -0,0 +1,54 @@
1
+ import { useTheme } from 'antd-style';
2
+ import { memo } from 'react';
3
+ import { Flexbox } from 'react-layout-kit';
4
+ import Avatar from "../Avatar";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ var GroupNav = /*#__PURE__*/memo(function (_ref) {
7
+ var data = _ref.data,
8
+ active = _ref.active,
9
+ setActive = _ref.setActive;
10
+ var theme = useTheme();
11
+ var count = 1;
12
+ return /*#__PURE__*/_jsx(Flexbox, {
13
+ align: 'center',
14
+ gap: 4,
15
+ children: data.map(function (item) {
16
+ var _item$meta;
17
+ var avatar;
18
+ var isAvtive = active === item.id;
19
+ var metaAvatar = item === null || item === void 0 ? void 0 : (_item$meta = item.meta) === null || _item$meta === void 0 ? void 0 : _item$meta.avatar;
20
+ switch (item.role) {
21
+ case 'assistant':
22
+ {
23
+ avatar = String(count);
24
+ break;
25
+ }
26
+ case 'function':
27
+ {
28
+ avatar = metaAvatar || '🧩';
29
+ break;
30
+ }
31
+ case 'system':
32
+ {
33
+ avatar = metaAvatar || '🚨';
34
+ break;
35
+ }
36
+ default:
37
+ {
38
+ avatar = metaAvatar || String(count);
39
+ break;
40
+ }
41
+ }
42
+ count++;
43
+ return /*#__PURE__*/_jsx(Avatar, {
44
+ avatar: avatar,
45
+ background: isAvtive ? theme.colorPrimary : theme.colorBgElevated,
46
+ onClick: function onClick() {
47
+ return setActive(item.id);
48
+ },
49
+ size: 20
50
+ }, item.id);
51
+ })
52
+ });
53
+ });
54
+ export default GroupNav;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
2
  import { type ChatItemProps } from "../ChatItem";
3
3
  import { ChatMessage, ChatMessageError, MessageRoleType } from "../types/chatMessage";
4
4
  import { type ActionsBarProps } from './ActionsBar';
5
5
  export type OnMessageChange = (id: string, content: string) => void;
6
- export type MessageExtra = (props: ChatMessage) => ReactNode;
6
+ export type MessageExtra = FC<ChatMessage>;
7
7
  export type OnActionClick = (actionKey: string, messageId: string) => void;
8
8
  export type RenderMessage = (content: ReactNode, message: ChatMessage) => ReactNode;
9
9
  export type RenderErrorMessage = (error: ChatMessageError, message: ChatMessage) => ReactNode;
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6
6
  import { memo } from 'react';
7
7
  import { Center, Flexbox } from 'react-layout-kit';
8
8
  import Icon from "../Icon";
9
- import { useStyles } from "./Item.style";
9
+ import { useStyles } from "./style";
10
10
 
11
11
  // @ts-ignore
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,13 +1,11 @@
1
1
  import { CSSProperties } from 'react';
2
+ import { SpotlightCardProps } from "../SpotlightCard";
2
3
  import { DivProps } from "../types";
3
4
  import { type FeatureItem } from './Item';
4
5
  export type { FeatureItem } from './Item';
5
6
  export interface FeaturesProps extends DivProps {
6
- /**
7
- * @description The maximum width of the content
8
- * @default 960
9
- */
10
- contentMaxWidth?: number;
7
+ columns?: SpotlightCardProps['columns'];
8
+ gap?: SpotlightCardProps['gap'];
11
9
  /**
12
10
  * @description The class name of the item
13
11
  */
@@ -20,6 +18,7 @@ export interface FeaturesProps extends DivProps {
20
18
  * @description The array of feature items
21
19
  */
22
20
  items: FeatureItem[];
21
+ maxWidth?: number;
23
22
  }
24
23
  declare const Features: import("react").NamedExoticComponent<FeaturesProps>;
25
24
  export default Features;
@@ -1,33 +1,34 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["items", "contentMaxWidth", "className", "itemClassName", "itemStyle"];
3
+ var _excluded = ["items", "className", "itemClassName", "itemStyle", "maxWidth", "style"];
4
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
  import { memo } from 'react';
7
+ import SpotlightCard from "../SpotlightCard";
7
8
  import { default as Item } from "./Item";
8
- import { useStyles } from "./style";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  var Features = /*#__PURE__*/memo(function (_ref) {
11
11
  var items = _ref.items,
12
- _ref$contentMaxWidth = _ref.contentMaxWidth,
13
- contentMaxWidth = _ref$contentMaxWidth === void 0 ? 960 : _ref$contentMaxWidth,
14
12
  className = _ref.className,
15
13
  itemClassName = _ref.itemClassName,
16
14
  itemStyle = _ref.itemStyle,
17
- properties = _objectWithoutProperties(_ref, _excluded);
18
- var _useStyles = useStyles(contentMaxWidth),
19
- cx = _useStyles.cx,
20
- styles = _useStyles.styles;
15
+ _ref$maxWidth = _ref.maxWidth,
16
+ maxWidth = _ref$maxWidth === void 0 ? 960 : _ref$maxWidth,
17
+ style = _ref.style,
18
+ props = _objectWithoutProperties(_ref, _excluded);
21
19
  if (!(items !== null && items !== void 0 && items.length)) return;
22
- return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
23
- className: cx(styles.container, className)
24
- }, properties), {}, {
25
- children: items.map(function (item) {
20
+ return /*#__PURE__*/_jsx(SpotlightCard, _objectSpread({
21
+ className: className,
22
+ items: items,
23
+ renderItem: function renderItem(item) {
26
24
  return /*#__PURE__*/_jsx(Item, _objectSpread({
27
25
  className: itemClassName,
28
26
  style: itemStyle
29
27
  }, item), item.title);
30
- })
31
- }));
28
+ },
29
+ style: _objectSpread({
30
+ maxWidth: maxWidth
31
+ }, style)
32
+ }, props));
32
33
  });
33
34
  export default Features;
@@ -1,3 +1,12 @@
1
- export declare const useStyles: (props?: number | undefined) => import("antd-style").ReturnStyles<{
2
- container: string;
1
+ export declare const useStyles: (props?: {
2
+ hasLink?: boolean | undefined;
3
+ rowNum: number;
4
+ } | undefined) => import("antd-style").ReturnStyles<{
5
+ cell: import("antd-style").SerializedStyles;
6
+ container: import("antd-style").SerializedStyles;
7
+ desc: string;
8
+ img: string;
9
+ imgContainer: string;
10
+ link: import("antd-style").SerializedStyles;
11
+ title: string;
3
12
  }>;
@@ -1,18 +1,30 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
3
3
  import { createStyles } from 'antd-style';
4
- export var useStyles = createStyles(function (_ref, contentMaxWidth) {
5
- var prefixCls = _ref.prefixCls,
6
- responsive = _ref.responsive,
4
+ export var useStyles = createStyles(function (_ref, _ref2) {
5
+ var token = _ref.token,
6
+ prefixCls = _ref.prefixCls,
7
7
  css = _ref.css,
8
8
  cx = _ref.cx;
9
+ var rowNum = _ref2.rowNum,
10
+ hasLink = _ref2.hasLink;
9
11
  var prefix = "".concat(prefixCls, "-features");
12
+ var coverCls = "".concat(prefix, "-cover");
13
+ var descCls = "".concat(prefix, "-description");
14
+ var titleCls = "".concat(prefix, "-title");
15
+ var imgCls = "".concat(prefix, "-img");
16
+ var scaleUnit = 20;
17
+ var genSize = function genSize(size) {
18
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n font-size: ", "px;\n "])), size, size, size * (22 / 24));
19
+ };
20
+ var withTransition = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition: all ", " ", ";\n "])), token.motionDurationSlow, token.motionEaseInOutCirc);
10
21
  return {
11
- container: cx(prefix, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: grid;\n grid-auto-flow: row dense;\n grid-auto-rows: 18px;\n grid-template-columns: repeat(3, 1fr);\n gap: 16px;\n\n max-width: ", "px;\n\n ", "\n "])), contentMaxWidth, responsive({
12
- laptop: {
13
- gridTemplateColumns: 'repeat(2, 1fr)'
14
- },
15
- mobile: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n "])))
16
- })))
22
+ cell: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n "]))),
23
+ container: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n position: relative;\n z-index: 1;\n\n padding: 24px;\n height: 228px;\n max-height: 228px;\n\n overflow: hidden;\n\n p {\n font-size: 16px;\n line-height: 1.2;\n text-align: left;\n word-break: break-word;\n }\n\n &:hover {\n .", " {\n width: 100%;\n height: ", "px;\n padding: 0;\n background: ", ";\n }\n\n .", " {\n ", ";\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n opacity: 0;\n }\n\n .", " {\n font-size: ", "px;\n }\n }\n "])), withTransition, coverCls, scaleUnit * rowNum, token.colorFillContent, imgCls, genSize(100), descCls, titleCls, hasLink ? 14 : 20),
24
+ desc: cx(descCls, withTransition, css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n pointer-events: none;\n color: ", ";\n\n quotient {\n position: relative;\n\n display: block;\n\n margin: 12px 0;\n padding-left: 12px;\n\n color: ", ";\n }\n "])), token.colorTextSecondary, token.colorTextDescription)),
25
+ img: cx(imgCls, withTransition, css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n color: ", ";\n "])), genSize(20), token.colorText)),
26
+ imgContainer: cx(coverCls, withTransition, css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", ";\n padding: 4px;\n opacity: 0.8;\n border-radius: ", "px;\n "])), genSize(24), token.borderRadius)),
27
+ link: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", ";\n margin-top: 24px;\n "])), withTransition),
28
+ title: cx(titleCls, withTransition, css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n pointer-events: none;\n\n margin: 16px 0;\n\n font-size: 20px;\n line-height: ", ";\n color: ", ";\n "])), token.lineHeightHeading3, token.colorText))
17
29
  };
18
30
  });
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type ButtonProps } from 'antd';
3
- export type GradientButtonProps = ButtonProps;
4
- declare const GradientButton: import("react").NamedExoticComponent<ButtonProps>;
3
+ export interface GradientButtonProps extends ButtonProps {
4
+ glow?: boolean;
5
+ }
6
+ declare const GradientButton: import("react").NamedExoticComponent<GradientButtonProps>;
5
7
  export default GradientButton;
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["children", "className"];
3
+ var _excluded = ["glow", "children", "className", "size"];
4
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
  import { Button } from 'antd';
@@ -9,19 +9,22 @@ import { useStyles } from "./style";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
11
  var GradientButton = /*#__PURE__*/memo(function (_ref) {
12
- var children = _ref.children,
12
+ var _ref$glow = _ref.glow,
13
+ glow = _ref$glow === void 0 ? true : _ref$glow,
14
+ children = _ref.children,
13
15
  className = _ref.className,
16
+ _ref$size = _ref.size,
17
+ size = _ref$size === void 0 ? 'large' : _ref$size,
14
18
  props = _objectWithoutProperties(_ref, _excluded);
15
- var _useStyles = useStyles(),
19
+ var _useStyles = useStyles(size),
16
20
  styles = _useStyles.styles,
17
21
  cx = _useStyles.cx;
18
22
  return /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread({
19
- className: cx(styles.button, className)
23
+ className: cx(styles.button, className),
24
+ size: size
20
25
  }, props), {}, {
21
- children: [/*#__PURE__*/_jsx("div", {
26
+ children: [glow && /*#__PURE__*/_jsx("div", {
22
27
  className: styles.glow
23
- }), /*#__PURE__*/_jsx("div", {
24
- className: styles.bg
25
28
  }), children]
26
29
  }));
27
30
  });
@@ -1,5 +1,4 @@
1
- export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
- bg: import("antd-style").SerializedStyles;
1
+ export declare const useStyles: (props?: import("antd/es/button").ButtonSize) => import("antd-style").ReturnStyles<{
3
2
  button: import("antd-style").SerializedStyles;
4
3
  glow: import("antd-style").SerializedStyles;
5
4
  }>;
@@ -1,14 +1,37 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3;
2
+ var _templateObject, _templateObject2;
3
3
  import { createStyles } from 'antd-style';
4
- export var useStyles = createStyles(function (_ref) {
4
+ export var useStyles = createStyles(function (_ref, size) {
5
5
  var css = _ref.css,
6
6
  token = _ref.token,
7
7
  isDarkMode = _ref.isDarkMode,
8
8
  stylish = _ref.stylish;
9
+ var radius;
10
+ switch (size) {
11
+ case 'large':
12
+ {
13
+ radius = token.borderRadiusLG;
14
+ break;
15
+ }
16
+ case 'middle':
17
+ {
18
+ radius = token.borderRadius;
19
+ break;
20
+ }
21
+ case 'small':
22
+ {
23
+ radius = token.borderRadiusSM;
24
+ break;
25
+ }
26
+ default:
27
+ {
28
+ radius = token.borderRadius;
29
+ break;
30
+ }
31
+ }
32
+ console.log(token.borderRadius);
9
33
  return {
10
- bg: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n z-index: -1;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n background: ", ";\n border-radius: inherit;\n "])), token.colorBgLayout),
11
- button: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n z-index: 1;\n background: ", ";\n border: none;\n\n &::before {\n ", "\n content: '';\n\n position: absolute;\n z-index: 0;\n inset: 0;\n\n overflow: hidden;\n\n padding: 1px;\n\n mask:\n linear-gradient(#fff 0 0) content-box,\n linear-gradient(#fff 0 0);\n\n mask-composite: xor;\n }\n\n > span {\n position: relative;\n z-index: 10;\n }\n\n &:hover {\n &::before {\n mask: unset;\n }\n }\n "])), token.colorBgLayout, stylish.gradientAnimation),
12
- glow: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n position: absolute;\n z-index: -1;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ", ";\n filter: blur(", "em);\n border-radius: inherit;\n "])), stylish.gradientAnimation, isDarkMode ? 0.5 : 0.3, isDarkMode ? 1.5 : 1)
34
+ button: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n z-index: 1;\n ", "\n border: none;\n border-radius: ", "px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n top: 1px;\n left: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ", ";\n border-radius: ", "px;\n }\n "])), stylish.gradientAnimation, radius, token.colorBgLayout, radius - 1),
35
+ glow: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n position: absolute;\n z-index: -2;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ", ";\n filter: blur(", "em);\n border-radius: inherit;\n "])), stylish.gradientAnimation, isDarkMode ? 0.5 : 0.3, isDarkMode ? 1.5 : 1)
13
36
  };
14
37
  });
@@ -33,11 +33,12 @@ var GridBackground = /*#__PURE__*/memo(function (_ref) {
33
33
  reverse: reverse
34
34
  }),
35
35
  styles = _useStyles.styles,
36
- cx = _useStyles.cx;
36
+ cx = _useStyles.cx,
37
+ theme = _useStyles.theme;
37
38
  var gridProps = useMemo(function () {
38
39
  return {
39
40
  className: styles.highlight,
40
- color: colorFront,
41
+ color: colorFront || theme.colorText,
41
42
  strokeWidth: strokeWidth
42
43
  };
43
44
  }, [reverse, colorFront, strokeWidth]);
@@ -68,7 +69,7 @@ var GridBackground = /*#__PURE__*/memo(function (_ref) {
68
69
  }, style) : style
69
70
  }, props), {}, {
70
71
  children: [/*#__PURE__*/_jsx(Grid, {
71
- color: colorBack,
72
+ color: colorBack || theme.colorBorder,
72
73
  strokeWidth: strokeWidth,
73
74
  style: {
74
75
  zIndex: 2
package/es/Hero/index.js CHANGED
@@ -4,6 +4,7 @@ import { useResponsive } from 'antd-style';
4
4
  import * as LucideIcon from 'lucide-react';
5
5
  import { memo, useCallback } from 'react';
6
6
  import { Center, Flexbox } from 'react-layout-kit';
7
+ import GridBackground from "../GridBackground";
7
8
  import { useStyles } from "./style";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -57,23 +58,34 @@ var Hero = /*#__PURE__*/memo(function (_ref) {
57
58
  }
58
59
  },
59
60
  children: /*#__PURE__*/_jsxs(Flexbox, {
60
- className: styles.container,
61
- distribution: 'center',
62
- horizontal: true,
63
- children: [/*#__PURE__*/_jsx("div", {
64
- className: styles.canvas
65
- }), /*#__PURE__*/_jsxs(Center, {
66
- children: [title && /*#__PURE__*/_jsx("h1", {
67
- className: styles.title,
68
- dangerouslySetInnerHTML: {
69
- __html: title
70
- }
71
- }), description && /*#__PURE__*/_jsx("p", {
72
- className: styles.desc,
73
- dangerouslySetInnerHTML: {
74
- __html: description
75
- }
76
- }), /*#__PURE__*/_jsx(ButtonGroups, {})]
61
+ align: 'center',
62
+ children: [/*#__PURE__*/_jsxs(Flexbox, {
63
+ className: styles.container,
64
+ distribution: 'center',
65
+ horizontal: true,
66
+ children: [/*#__PURE__*/_jsx("div", {
67
+ className: styles.canvas
68
+ }), /*#__PURE__*/_jsxs(Center, {
69
+ children: [title && /*#__PURE__*/_jsx("h1", {
70
+ className: styles.title,
71
+ dangerouslySetInnerHTML: {
72
+ __html: title
73
+ }
74
+ }), description && /*#__PURE__*/_jsx("p", {
75
+ className: styles.desc,
76
+ dangerouslySetInnerHTML: {
77
+ __html: description
78
+ }
79
+ }), /*#__PURE__*/_jsx(ButtonGroups, {})]
80
+ })]
81
+ }), /*#__PURE__*/_jsx(GridBackground, {
82
+ animation: true,
83
+ random: true,
84
+ strokeWidth: 4,
85
+ style: {
86
+ maxWidth: 960,
87
+ width: '120%'
88
+ }
77
89
  })]
78
90
  })
79
91
  });
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  var _excluded = ["spotlight", "className", "value", "onChange", "placeholder", "enableShortKey", "shortKey"];
5
- var _navigator;
6
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
7
  import { Search } from 'lucide-react';
@@ -14,8 +13,6 @@ import Tag from "../Tag";
14
13
  import { useStyles } from "./style";
15
14
  import { jsx as _jsx } from "react/jsx-runtime";
16
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
- var isAppleDevice = /(mac|iphone|ipod|ipad)/i.test(typeof navigator === 'undefined' ? '' : (_navigator = navigator) === null || _navigator === void 0 ? void 0 : _navigator.platform);
18
- var symbol = isAppleDevice ? '⌘' : 'Ctrl';
19
16
  var SearchBar = /*#__PURE__*/memo(function (_ref) {
20
17
  var spotlight = _ref.spotlight,
21
18
  className = _ref.className,
@@ -26,20 +23,29 @@ var SearchBar = /*#__PURE__*/memo(function (_ref) {
26
23
  _ref$shortKey = _ref.shortKey,
27
24
  shortKey = _ref$shortKey === void 0 ? 'f' : _ref$shortKey,
28
25
  properties = _objectWithoutProperties(_ref, _excluded);
29
- var _useState = useState(true),
26
+ var _useState = useState('Ctrl'),
30
27
  _useState2 = _slicedToArray(_useState, 2),
31
- showTag = _useState2[0],
32
- setShowTag = _useState2[1];
33
- var _useState3 = useState(value),
28
+ symbol = _useState2[0],
29
+ setSymbol = _useState2[1];
30
+ var _useState3 = useState(true),
34
31
  _useState4 = _slicedToArray(_useState3, 2),
35
- inputValue = _useState4[0],
36
- setInputValue = _useState4[1];
32
+ showTag = _useState4[0],
33
+ setShowTag = _useState4[1];
34
+ var _useState5 = useState(value),
35
+ _useState6 = _slicedToArray(_useState5, 2),
36
+ inputValue = _useState6[0],
37
+ setInputValue = _useState6[1];
37
38
  var _useStyles = useStyles(),
38
39
  styles = _useStyles.styles,
39
40
  cx = _useStyles.cx;
40
41
  var inputReference = useRef();
41
42
  useEffect(function () {
43
+ var _navigator;
42
44
  if (!enableShortKey) return;
45
+ var isAppleDevice = /(mac|iphone|ipod|ipad)/i.test(typeof navigator === 'undefined' ? '' : (_navigator = navigator) === null || _navigator === void 0 ? void 0 : _navigator.platform);
46
+ if (isAppleDevice) {
47
+ setSymbol('⌘');
48
+ }
43
49
  var handler = function handler(event_) {
44
50
  if ((isAppleDevice ? event_.metaKey : event_.ctrlKey) && event_.key === shortKey) {
45
51
  var _inputReference$curre;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DivProps } from "../types";
3
+ declare const SpotlightCardItem: import("react").NamedExoticComponent<DivProps>;
4
+ export default SpotlightCardItem;
@@ -0,0 +1,26 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["children", "className"];
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ import { memo } from 'react';
7
+ import { Flexbox } from 'react-layout-kit';
8
+ import { useStyles } from "./style";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ var SpotlightCardItem = /*#__PURE__*/memo(function (_ref) {
11
+ var children = _ref.children,
12
+ className = _ref.className,
13
+ props = _objectWithoutProperties(_ref, _excluded);
14
+ var _useStyles = useStyles(),
15
+ styles = _useStyles.styles,
16
+ cx = _useStyles.cx;
17
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
18
+ className: cx(className, styles.itemContainer)
19
+ }, props), {}, {
20
+ children: /*#__PURE__*/_jsx(Flexbox, {
21
+ className: styles.content,
22
+ children: children
23
+ })
24
+ }));
25
+ });
26
+ export default SpotlightCardItem;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { DivProps } from "../types";
3
+ export interface SpotlightCardProps<T = any> extends DivProps {
4
+ columns?: string;
5
+ gap?: number;
6
+ items: T[];
7
+ renderItem: (item: T) => ReactNode;
8
+ }
9
+ declare const SpotlightCard: import("react").NamedExoticComponent<SpotlightCardProps<any>>;
10
+ export default SpotlightCard;
@@ -0,0 +1,70 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["items", "renderItem", "className", "columns", "gap", "style"];
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
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); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ import { memo, useEffect, useRef } from 'react';
10
+ import SpotlightCardItem from "./SpotlightCardItem";
11
+ import { CHILDREN_CLASSNAME, useStyles } from "./style";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ var SpotlightCard = /*#__PURE__*/memo(function (_ref) {
14
+ var items = _ref.items,
15
+ renderItem = _ref.renderItem,
16
+ className = _ref.className,
17
+ _ref$columns = _ref.columns,
18
+ columns = _ref$columns === void 0 ? '1fr 1fr 1fr' : _ref$columns,
19
+ _ref$gap = _ref.gap,
20
+ gap = _ref$gap === void 0 ? 12 : _ref$gap,
21
+ style = _ref.style,
22
+ props = _objectWithoutProperties(_ref, _excluded);
23
+ var _useStyles = useStyles(),
24
+ styles = _useStyles.styles,
25
+ cx = _useStyles.cx;
26
+ var ref = useRef(null);
27
+ useEffect(function () {
28
+ if (!ref.current) return;
29
+ var fn = function fn(e) {
30
+ var _iterator = _createForOfIteratorHelper(document.querySelectorAll(".".concat(CHILDREN_CLASSNAME))),
31
+ _step;
32
+ try {
33
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
34
+ var card = _step.value;
35
+ var rect = card.getBoundingClientRect(),
36
+ x = e.clientX - rect.left,
37
+ y = e.clientY - rect.top;
38
+ card.style.setProperty('--mouse-x', "".concat(x, "px"));
39
+ card.style.setProperty('--mouse-y', "".concat(y, "px"));
40
+ }
41
+ } catch (err) {
42
+ _iterator.e(err);
43
+ } finally {
44
+ _iterator.f();
45
+ }
46
+ };
47
+ ref.current.addEventListener('mousemove', fn);
48
+ return function () {
49
+ var _ref$current;
50
+ (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.removeEventListener('mousemove', fn);
51
+ };
52
+ }, []);
53
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
54
+ className: cx(styles.container, styles.grid, className),
55
+ ref: ref,
56
+ style: _objectSpread({
57
+ gap: gap,
58
+ gridTemplateColumns: columns
59
+ }, style)
60
+ }, props), {}, {
61
+ children: items.map(function (item, index) {
62
+ var children = renderItem(item);
63
+ return /*#__PURE__*/_jsx(SpotlightCardItem, {
64
+ className: CHILDREN_CLASSNAME,
65
+ children: children
66
+ }, index);
67
+ })
68
+ }));
69
+ });
70
+ export default SpotlightCard;
@@ -0,0 +1,7 @@
1
+ export declare const CHILDREN_CLASSNAME = "hover-card";
2
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
3
+ container: import("antd-style").SerializedStyles;
4
+ content: import("antd-style").SerializedStyles;
5
+ grid: import("antd-style").SerializedStyles;
6
+ itemContainer: import("antd-style").SerializedStyles;
7
+ }>;
@@ -0,0 +1,18 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
+ import { createStyles } from 'antd-style';
4
+ import { rgba } from 'polished';
5
+ var BORDER_RADIUS = 12;
6
+ export var CHILDREN_CLASSNAME = 'hover-card';
7
+ export var useStyles = createStyles(function (_ref) {
8
+ var css = _ref.css,
9
+ responsive = _ref.responsive,
10
+ token = _ref.token,
11
+ isDarkMode = _ref.isDarkMode;
12
+ return {
13
+ container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &:hover > .", "::after {\n opacity: 1;\n }\n "])), CHILDREN_CLASSNAME),
14
+ content: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n z-index: 2;\n\n flex-grow: 1;\n\n height: 100%;\n margin: 1px;\n\n background: ", ";\n border-radius: ", "px;\n "])), token.colorBgContainer, BORDER_RADIUS - 1),
15
+ grid: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: grid;\n\n ", " {\n display: flex;\n flex-direction: column;\n }\n "])), responsive.mobile),
16
+ itemContainer: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n position: relative;\n\n display: flex;\n flex-direction: column;\n\n width: 100%;\n\n background: ", ";\n border-radius: ", "px;\n\n &::before,\n &::after {\n content: '';\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: 0;\n border-radius: inherit;\n\n transition: opacity 500ms;\n }\n\n &::before {\n pointer-events: none;\n user-select: none;\n z-index: 3;\n background: radial-gradient(\n 800px circle at var(--mouse-x) var(--mouse-y),\n ", ",\n transparent 40%\n );\n }\n\n &::after {\n z-index: 1;\n background: radial-gradient(\n 600px circle at var(--mouse-x) var(--mouse-y),\n ", ",\n transparent 40%\n );\n }\n\n :hover::before {\n opacity: 1;\n }\n "])), rgba(token.colorBorder, 0.5), BORDER_RADIUS, rgba(token.colorTextBase, isDarkMode ? 0.06 : 0.02), rgba(token.colorTextBase, isDarkMode ? 0.4 : 0.2))
17
+ };
18
+ });
package/es/index.d.ts CHANGED
@@ -57,6 +57,7 @@ export { default as SideNav, type SideNavProps } from './SideNav';
57
57
  export { default as SliderWithInput, type SliderWithInputProps } from './SliderWithInput';
58
58
  export { default as Snippet, type SnippetProps } from './Snippet';
59
59
  export { default as Spotlight, type SpotlightProps } from './Spotlight';
60
+ export { default as SpotlightCard, type SpotlightCardProps } from './SpotlightCard';
60
61
  export { default as StroyBook, type StroyBookProps, useControls, useCreateStore, } from './StroyBook';
61
62
  export * from './styles';
62
63
  export { default as Swatches, type SwatchesProps } from './Swatches';
package/es/index.js CHANGED
@@ -56,6 +56,7 @@ export { default as SideNav } from "./SideNav";
56
56
  export { default as SliderWithInput } from "./SliderWithInput";
57
57
  export { default as Snippet } from "./Snippet";
58
58
  export { default as Spotlight } from "./Spotlight";
59
+ export { default as SpotlightCard } from "./SpotlightCard";
59
60
  export { default as StroyBook, useControls, useCreateStore } from "./StroyBook";
60
61
  export * from "./styles";
61
62
  export { default as Swatches } from "./Swatches";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.87.1",
3
+ "version": "1.88.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -132,7 +132,7 @@
132
132
  "dumi": "^2",
133
133
  "dumi-theme-lobehub": "latest",
134
134
  "eslint": "^8",
135
- "father": "^4",
135
+ "father": "4.3.1",
136
136
  "husky": "^8",
137
137
  "jsdom": "^22",
138
138
  "lint-staged": "^14",
@@ -1,12 +0,0 @@
1
- export declare const useStyles: (props?: {
2
- hasLink?: boolean | undefined;
3
- rowNum: number;
4
- } | undefined) => import("antd-style").ReturnStyles<{
5
- cell: import("antd-style").SerializedStyles;
6
- container: import("antd-style").SerializedStyles;
7
- desc: string;
8
- img: string;
9
- imgContainer: string;
10
- link: import("antd-style").SerializedStyles;
11
- title: string;
12
- }>;
@@ -1,30 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
3
- import { createStyles } from 'antd-style';
4
- export var useStyles = createStyles(function (_ref, _ref2) {
5
- var token = _ref.token,
6
- prefixCls = _ref.prefixCls,
7
- css = _ref.css,
8
- cx = _ref.cx;
9
- var rowNum = _ref2.rowNum,
10
- hasLink = _ref2.hasLink;
11
- var prefix = "".concat(prefixCls, "-features");
12
- var coverCls = "".concat(prefix, "-cover");
13
- var descCls = "".concat(prefix, "-description");
14
- var titleCls = "".concat(prefix, "-title");
15
- var imgCls = "".concat(prefix, "-img");
16
- var scaleUnit = 20;
17
- var genSize = function genSize(size) {
18
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n font-size: ", "px;\n "])), size, size, size * (22 / 24));
19
- };
20
- var withTransition = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition: all ", " ", ";\n "])), token.motionDurationSlow, token.motionEaseInOutCirc);
21
- return {
22
- cell: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n "]))),
23
- container: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n position: relative;\n z-index: 1;\n\n padding: 24px;\n\n background: ", ";\n border-radius: ", "px;\n\n p {\n font-size: 16px;\n line-height: 1.2;\n text-align: justify;\n word-wrap: break-word;\n }\n\n &:hover {\n .", " {\n width: 100%;\n height: ", "px;\n padding: 0;\n background: ", ";\n }\n\n .", " {\n ", ";\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n opacity: 0;\n }\n\n .", " {\n font-size: ", "px;\n }\n }\n "])), withTransition, token.colorBgContainer, token.borderRadiusLG, coverCls, scaleUnit * rowNum, token.colorFillContent, imgCls, genSize(100), descCls, titleCls, hasLink ? 14 : 20),
24
- desc: cx(descCls, withTransition, css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n pointer-events: none;\n color: ", ";\n\n quotient {\n position: relative;\n\n display: block;\n\n margin: 12px 0;\n padding-left: 12px;\n\n color: ", ";\n }\n "])), token.colorTextSecondary, token.colorTextDescription)),
25
- img: cx(imgCls, withTransition, css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n color: ", ";\n "])), genSize(20), token.colorText)),
26
- imgContainer: cx(coverCls, withTransition, css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", ";\n padding: 4px;\n opacity: 0.8;\n border-radius: ", "px;\n "])), genSize(24), token.borderRadius)),
27
- link: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", ";\n margin-top: 24px;\n "])), withTransition),
28
- title: cx(titleCls, withTransition, css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n pointer-events: none;\n\n margin: 16px 0;\n\n font-size: 20px;\n line-height: ", ";\n color: ", ";\n "])), token.lineHeightHeading3, token.colorText))
29
- };
30
- });