@lobehub/ui 1.15.0 → 1.16.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.
@@ -2,5 +2,5 @@ export declare const useStyles: (props?: {
2
2
  active: boolean;
3
3
  glass: boolean;
4
4
  } | undefined) => import("antd-style").ReturnStyles<{
5
- block: import("antd-style").SerializedStyles;
5
+ block: string;
6
6
  }>;
@@ -1,12 +1,14 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
2
+ var _templateObject;
3
3
  import { createStyles } from 'antd-style';
4
4
  export var useStyles = createStyles(function (_ref, _ref2) {
5
5
  var css = _ref.css,
6
- token = _ref.token;
6
+ token = _ref.token,
7
+ stylish = _ref.stylish,
8
+ cx = _ref.cx;
7
9
  var active = _ref2.active,
8
10
  glass = _ref2.glass;
9
11
  return {
10
- block: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n color: ", ";\n\n background: ", ";\n\n transition: color 600ms ", ",\n background-color 100ms ", ";\n\n ", "\n\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n }\n "])), active ? token.colorText : token.colorTextTertiary, active ? token.colorFillTertiary : 'transparent', token.motionEaseOut, token.motionEaseOut, glass && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))), token.colorText, token.colorFillSecondary, token.colorText, token.colorFill)
12
+ block: cx(glass && stylish.blur, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n color: ", ";\n\n background: ", ";\n\n transition: color 600ms ", ",\n background-color 100ms ", ";\n\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n }\n "])), active ? token.colorText : token.colorTextTertiary, active ? token.colorFillTertiary : 'transparent', token.motionEaseOut, token.motionEaseOut, token.colorText, token.colorFillSecondary, token.colorText, token.colorFill))
11
13
  };
12
14
  });
@@ -1,9 +1,26 @@
1
1
  import { FC } from 'react';
2
2
  export interface AvatarProps {
3
+ /**
4
+ * @description The URL or base64 data of the avatar image
5
+ */
3
6
  avatar?: string;
7
+ /**
8
+ * @description The title text to display if avatar is not provided
9
+ */
4
10
  title?: string;
11
+ /**
12
+ * @description The size of the avatar in pixels
13
+ * @default 40
14
+ */
5
15
  size?: number;
16
+ /**
17
+ * @description The shape of the avatar
18
+ * @default 'circle'
19
+ */
6
20
  shape?: 'circle' | 'square';
21
+ /**
22
+ * @description The background color of the avatar
23
+ */
7
24
  background?: string;
8
25
  }
9
26
  declare const Avatar: FC<AvatarProps>;
@@ -1,25 +1,15 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
1
  import { Avatar as A } from 'antd';
4
- import { createStyles } from 'antd-style';
5
2
  import { Center } from 'react-layout-kit';
3
+ import { useStyles } from "./style";
6
4
  import { jsx as _jsx } from "react/jsx-runtime";
7
- var useStyles = createStyles(function (_ref) {
8
- var css = _ref.css,
9
- token = _ref.token;
10
- return {
11
- container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n > * {\n cursor: pointer;\n }\n "]))),
12
- border: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), token.colorBorder)
13
- };
14
- });
15
- var Avatar = function Avatar(_ref2) {
16
- var avatar = _ref2.avatar,
17
- title = _ref2.title,
18
- _ref2$size = _ref2.size,
19
- size = _ref2$size === void 0 ? 40 : _ref2$size,
20
- _ref2$shape = _ref2.shape,
21
- shape = _ref2$shape === void 0 ? 'circle' : _ref2$shape,
22
- background = _ref2.background;
5
+ var Avatar = function Avatar(_ref) {
6
+ var avatar = _ref.avatar,
7
+ title = _ref.title,
8
+ _ref$size = _ref.size,
9
+ size = _ref$size === void 0 ? 40 : _ref$size,
10
+ _ref$shape = _ref.shape,
11
+ shape = _ref$shape === void 0 ? 'circle' : _ref$shape,
12
+ background = _ref.background;
23
13
  var _useStyles = useStyles(),
24
14
  styles = _useStyles.styles,
25
15
  theme = _useStyles.theme;
@@ -0,0 +1,4 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ container: import("antd-style").SerializedStyles;
3
+ border: import("antd-style").SerializedStyles;
4
+ }>;
@@ -0,0 +1,11 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2;
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
+ container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n\n > * {\n cursor: pointer;\n }\n "]))),
9
+ border: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), token.colorBorder)
10
+ };
11
+ });
@@ -1,8 +1,17 @@
1
1
  import { HTMLProps } from 'react';
2
2
  import { MenuItemType } from './types';
3
3
  export interface ContextMenuProps {
4
+ /**
5
+ * @description Label for the context menu
6
+ */
4
7
  label?: string;
8
+ /**
9
+ * @description Items to be displayed in the context menu
10
+ */
5
11
  items: MenuItemType[];
12
+ /**
13
+ * @description Container element for the context menu
14
+ */
6
15
  container?: HTMLElement;
7
16
  }
8
17
  declare const ContextMenu: import("react").ForwardRefExoticComponent<Omit<ContextMenuProps & HTMLProps<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,11 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export interface AppProps {
3
3
  /**
4
- * @title 是否只读
4
+ * @description Whether the component is in readonly mode.
5
+ * @default false
5
6
  */
6
7
  readonly?: boolean;
7
8
  /**
8
- * @title 是否包含系统消息
9
+ * @description Whether to include system messages in the chat.
10
+ * @default true
9
11
  */
10
12
  includeSystem?: boolean;
11
13
  }
@@ -16,9 +16,11 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
16
16
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
17
  var useStyles = createStyles(function (_ref) {
18
18
  var css = _ref.css,
19
- token = _ref.token;
19
+ token = _ref.token,
20
+ stylish = _ref.stylish,
21
+ cx = _ref.cx;
20
22
  return {
21
- container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n backdrop-filter: blur(6px);\n border-radius: 4px;\n "])), rgba(token.colorBgElevated, 0.2))
23
+ container: cx(stylish.blur, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 4px;\n "])), rgba(token.colorBgElevated, 0.2)))
22
24
  };
23
25
  });
24
26
  var Toolbar = /*#__PURE__*/memo(function (_ref2) {
@@ -2,6 +2,10 @@
2
2
  import { AppProps } from './App';
3
3
  import { StoreUpdaterProps } from './StoreUpdater';
4
4
  export interface ConversationProps extends StoreUpdaterProps, AppProps {
5
+ /**
6
+ * @description Whether to enable devtools or not
7
+ * @default false
8
+ */
5
9
  devtools?: boolean;
6
10
  }
7
11
  declare const Conversation: import("react").NamedExoticComponent<ConversationProps>;
@@ -183,7 +183,7 @@ var DraggablePanel = /*#__PURE__*/memo(function (_ref) {
183
183
  },
184
184
  children: children
185
185
  }));
186
- return /*#__PURE__*/_jsxs("div", {
186
+ return /*#__PURE__*/_jsxs("aside", {
187
187
  ref: ref,
188
188
  className: cx(styles.container,
189
189
  // @ts-ignore
@@ -1,41 +1,50 @@
1
1
  /// <reference types="react" />
2
2
  export interface EditableMessageProps {
3
3
  /**
4
- * @title 当前文本值
4
+ * @title The current text value
5
5
  */
6
6
  value: string;
7
7
  /**
8
- * @title 值改变时的回调函数
9
- * @param value - 改变后的值
8
+ * @title Callback function when the value changes
9
+ * @param value - The new value
10
10
  */
11
11
  onChange?: (value: string) => void;
12
12
  /**
13
- * @title 是否打开模态框
13
+ * @title Whether the modal is open or not
14
14
  * @default false
15
15
  */
16
16
  openModal?: boolean;
17
17
  /**
18
- * @title 模态框打开状态变化的回调函数
19
- * @param open - 模态框是否打开
18
+ * @title Callback function when the modal open state changes
19
+ * @param open - Whether the modal is open or not
20
20
  */
21
21
  onOpenChange?: (open: boolean) => void;
22
22
  /**
23
- * @title 是否处于编辑状态
23
+ * @title Whether the component is in edit mode or not
24
24
  * @default false
25
25
  */
26
26
  editing?: boolean;
27
27
  /**
28
- * @title 编辑状态变化的回调函数
29
- * @param editing - 是否处于编辑状态
28
+ * @title Callback function when the editing state changes
29
+ * @param editing - Whether the component is in edit mode or not
30
30
  */
31
31
  onEditingChange?: (editing: boolean) => void;
32
32
  /**
33
- * @title 当文本值为空时是否显示编辑按钮
33
+ * @title Whether to show the edit button when the text value is empty
34
34
  * @default false
35
35
  */
36
36
  showEditWhenEmpty?: boolean;
37
+ /**
38
+ * @title The class name for the Markdown and MessageInput component
39
+ */
37
40
  classNames?: {
41
+ /**
42
+ * @title The class name for the Markdown component
43
+ */
38
44
  markdown?: string;
45
+ /**
46
+ * @title The class name for the MessageInput component
47
+ */
39
48
  input?: string;
40
49
  };
41
50
  }
@@ -1,8 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import { ChatMessage } from "../Chat";
3
3
  export interface EditableMessageListProps {
4
+ /**
5
+ * @description The data sources to be rendered
6
+ */
4
7
  dataSources: ChatMessage[];
8
+ /**
9
+ * @description Callback function triggered when the data sources are changed
10
+ * @param chatMessages - the updated data sources
11
+ */
5
12
  onChange?: (chatMessages: ChatMessage[]) => void;
13
+ /**
14
+ * @description Whether the component is disabled or not
15
+ * @default false
16
+ */
6
17
  disabled?: boolean;
7
18
  }
8
19
  export declare const EditableMessageList: import("react").NamedExoticComponent<EditableMessageListProps>;
@@ -1,10 +1,10 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import { useHighlight } from "../../hooks/useHighlight";
3
3
  import { Loading3QuartersOutlined as Loading } from '@ant-design/icons';
4
+ import { useThemeMode } from 'antd-style';
4
5
  import { memo, useEffect } from 'react';
5
6
  import { Center } from 'react-layout-kit';
6
7
  import { shallow } from 'zustand/shallow';
7
- import { useThemeMode } from 'antd-style';
8
8
  import { useStyles } from "./style";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -28,7 +28,7 @@ var SyntaxHighlighter = /*#__PURE__*/memo(function (_ref) {
28
28
  }, []);
29
29
  return /*#__PURE__*/_jsxs(_Fragment, {
30
30
  children: [isLoading ? /*#__PURE__*/_jsx("div", {
31
- className: styles.prism,
31
+ className: styles.shiki,
32
32
  children: /*#__PURE__*/_jsx("pre", {
33
33
  children: /*#__PURE__*/_jsx("code", {
34
34
  children: children
@@ -48,7 +48,7 @@ var SyntaxHighlighter = /*#__PURE__*/memo(function (_ref) {
48
48
  style: {
49
49
  color: theme.colorTextTertiary
50
50
  }
51
- }), "shiki rendering..."]
51
+ }), "Highlighting..."]
52
52
  })]
53
53
  });
54
54
  });
@@ -1,5 +1,5 @@
1
1
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
2
  shiki: string;
3
3
  prism: import("antd-style").SerializedStyles;
4
- loading: import("antd-style").SerializedStyles;
4
+ loading: string;
5
5
  }>;
@@ -5,11 +5,12 @@ export var useStyles = createStyles(function (_ref) {
5
5
  var css = _ref.css,
6
6
  token = _ref.token,
7
7
  cx = _ref.cx,
8
- prefixCls = _ref.prefixCls;
8
+ prefixCls = _ref.prefixCls,
9
+ stylish = _ref.stylish;
9
10
  var prefix = "".concat(prefixCls, "-highlighter");
10
11
  return {
11
12
  shiki: cx("".concat(prefix, "-shiki"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .shiki {\n overflow-x: scroll;\n background: none !important;\n }\n "])))),
12
13
  prism: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n pre {\n overflow-x: scroll;\n font-family: ", " !important;\n }\n "])), token.fontFamilyCode),
13
- loading: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n\n padding: 4px 8px;\n\n color: ", ";\n\n backdrop-filter: saturate(180%) blur(10px);\n border-radius: ", ";\n "])), token.colorTextTertiary, token.borderRadiusSM)
14
+ loading: cx(stylish.blur, css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n\n padding: 4px 8px;\n\n color: ", ";\n\n border-radius: ", ";\n "])), token.colorTextTertiary, token.borderRadiusSM))
14
15
  };
15
16
  });
package/es/Icon/index.js CHANGED
@@ -5,8 +5,7 @@ import { memo } from 'react';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  var Icon = function Icon(_ref) {
7
7
  var icon = _ref.icon,
8
- _ref$size = _ref.size,
9
- size = _ref$size === void 0 ? 'normal' : _ref$size,
8
+ size = _ref.size,
10
9
  props = _objectWithoutProperties(_ref, _excluded);
11
10
  var fontSize;
12
11
  var strokeWidth;
@@ -25,8 +24,13 @@ var Icon = function Icon(_ref) {
25
24
  strokeWidth = 1.5;
26
25
  break;
27
26
  default:
28
- fontSize = (size === null || size === void 0 ? void 0 : size.fontSize) || 24;
29
- strokeWidth = (size === null || size === void 0 ? void 0 : size.strokeWidth) || 2;
27
+ if (size) {
28
+ fontSize = (size === null || size === void 0 ? void 0 : size.fontSize) || 24;
29
+ strokeWidth = (size === null || size === void 0 ? void 0 : size.strokeWidth) || 2;
30
+ } else {
31
+ fontSize = '1em';
32
+ strokeWidth = 2;
33
+ }
30
34
  break;
31
35
  }
32
36
  return /*#__PURE__*/_jsx(SvgIcon, _objectSpread({
@@ -1,10 +1,30 @@
1
1
  /// <reference types="react" />
2
2
  export interface MessageModalProps {
3
+ /**
4
+ * @description Whether the modal is open or not
5
+ * @default false
6
+ */
3
7
  open?: boolean;
8
+ /**
9
+ * @description Callback fired when open state is changed
10
+ */
4
11
  onOpenChange?: (open: boolean) => void;
12
+ /**
13
+ * @description Whether the message is being edited or not
14
+ * @default false
15
+ */
5
16
  editing?: boolean;
17
+ /**
18
+ * @description Callback fired when editing state is changed
19
+ */
6
20
  onEditingChange?: (editing: boolean) => void;
21
+ /**
22
+ * @description Callback fired when message content is changed
23
+ */
7
24
  onChange?: (text: string) => void;
25
+ /**
26
+ * @description The value of the message content
27
+ */
8
28
  value: string;
9
29
  }
10
30
  declare const MessageModal: import("react").NamedExoticComponent<MessageModalProps>;
@@ -1,31 +1,21 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
3
- var _templateObject, _templateObject2;
2
+ import Markdown from "../Markdown";
3
+ import MessageInput from "../MessageInput";
4
4
  import { AimOutlined } from '@ant-design/icons';
5
5
  import { Modal } from 'antd';
6
- import { createStyles } from 'antd-style';
7
6
  import { memo } from 'react';
8
7
  import { Flexbox } from 'react-layout-kit';
9
8
  import useControlledState from 'use-merge-value';
10
- import Markdown from "../Markdown";
11
- import MessageInput from "../MessageInput";
9
+ import { useStyles } from "./style";
12
10
  import { jsx as _jsx } from "react/jsx-runtime";
13
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
- var useStyles = createStyles(function (_ref) {
15
- var css = _ref.css,
16
- prefixCls = _ref.prefixCls;
17
- return {
18
- modal: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 70%;\n .", "-modal-header {\n margin-bottom: 24px;\n }\n "])), prefixCls),
19
- body: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n overflow-y: scroll;\n max-height: 70vh;\n "])))
20
- };
21
- });
22
- var MessageModal = /*#__PURE__*/memo(function (_ref2) {
23
- var editing = _ref2.editing,
24
- open = _ref2.open,
25
- onOpenChange = _ref2.onOpenChange,
26
- onEditingChange = _ref2.onEditingChange,
27
- value = _ref2.value,
28
- onChange = _ref2.onChange;
12
+ var MessageModal = /*#__PURE__*/memo(function (_ref) {
13
+ var editing = _ref.editing,
14
+ open = _ref.open,
15
+ onOpenChange = _ref.onOpenChange,
16
+ onEditingChange = _ref.onEditingChange,
17
+ value = _ref.value,
18
+ onChange = _ref.onChange;
29
19
  var _useStyles = useStyles(),
30
20
  styles = _useStyles.styles;
31
21
  var _useControlledState = useControlledState(false, {
@@ -0,0 +1,4 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ modal: import("antd-style").SerializedStyles;
3
+ body: import("antd-style").SerializedStyles;
4
+ }>;
@@ -0,0 +1,11 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2;
3
+ import { createStyles } from 'antd-style';
4
+ export var useStyles = createStyles(function (_ref) {
5
+ var css = _ref.css,
6
+ prefixCls = _ref.prefixCls;
7
+ return {
8
+ modal: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 70%;\n .", "-modal-header {\n margin-bottom: 24px;\n }\n "])), prefixCls),
9
+ body: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n overflow-y: scroll;\n max-height: 70vh;\n "])))
10
+ };
11
+ });
@@ -1,7 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { InputProps } from "../index";
3
3
  export interface SearchBarProps extends InputProps {
4
+ /**
5
+ * @description The shortcut key to focus on the input. Only works if `enableShortKey` is true
6
+ * @default 'f'
7
+ */
4
8
  shortKey?: string;
9
+ /**
10
+ * @description Whether to enable the shortcut key to focus on the input
11
+ * @default false
12
+ */
5
13
  enableShortKey?: boolean;
6
14
  }
7
15
  declare const SearchBar: import("react").NamedExoticComponent<SearchBarProps>;
@@ -1,7 +1,18 @@
1
1
  /// <reference types="react" />
2
2
  export interface SwatchesProps {
3
+ /**
4
+ * @description An array of colors to be displayed as swatches
5
+ */
3
6
  colors: string[];
7
+ /**
8
+ * @description The currently active color
9
+ * @default undefined
10
+ */
4
11
  activeColor?: string;
12
+ /**
13
+ * @description A function to be called when a swatch is selected
14
+ * @default undefined
15
+ */
5
16
  onSelect?: (c: string | null) => void;
6
17
  }
7
18
  declare const Swatches: import("react").NamedExoticComponent<SwatchesProps>;
@@ -1,7 +1,7 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import { createGlobalStyle } from 'antd-style';
4
- var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n html,body {\n --font-settings: \"cv01\", \"tnum\", \"kern\";\n --font-variations: \"opsz\" auto, tabular-nums;\n\n overflow-x: hidden;\n\n margin: 0;\n padding: 0;\n\n font-family: ", ";\n font-size: ", "px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n line-height: 1;\n color: ", ";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ", ";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-tap-highlight-color: transparent;\n }\n\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n #root {\n\t min-height: 100vh;\n }\n\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ", ";\n border-radius: 4px;\n }\n\n &-corner {\n display: none;\n }\n }\n\n p {\n text-align: justify;\n word-wrap: break-word;\n }\n\n code {\n\t font-family: ", " !important;\n\t * {\n\t\t font-family: inherit !important;\n\t }\n }\n"])), function (_ref) {
4
+ var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n html,body {\n --font-settings: \"cv01\", \"tnum\", \"kern\";\n --font-variations: \"opsz\" auto, tabular-nums;\n\n overflow-x: hidden;\n\n margin: 0;\n padding: 0;\n\n font-family: ", ";\n font-size: ", "px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n line-height: 1;\n color: ", ";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ", ";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-tap-highlight-color: transparent;\n }\n \n\n * {\n\t box-sizing: border-box;\n\t vertical-align: baseline;\n }\n\n ::-webkit-scrollbar {\n\t width: 0;\n\t height: 4px;\n\t background-color: transparent;\n\n\t &-thumb {\n\t\t background-color: transparent;\n\t\t border-radius: 4px;\n\t\t transition: background-color 500ms ", ";\n\t }\n\n\t &-corner {\n\t\t display: none;\n\t }\n }\n\n #root {\n\t min-height: 100vh;\n }\n\n p {\n text-align: justify;\n word-wrap: break-word;\n }\n \n code {\n\t font-family: ", " !important;\n\t * {\n\t\t font-family: inherit !important;\n\t }\n }\n\n *:hover, *:focus {\n\t ::-webkit-scrollbar {\n\t\t &-thumb {\n\t\t\t background-color: ", ";\n\t\t }\n\t }\n }\n"])), function (_ref) {
5
5
  var theme = _ref.theme;
6
6
  return theme.fontFamily;
7
7
  }, function (_ref2) {
@@ -15,9 +15,12 @@ var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _tagge
15
15
  return theme.colorBgLayout;
16
16
  }, function (_ref5) {
17
17
  var theme = _ref5.theme;
18
- return theme.colorFill;
18
+ return theme.motionEaseOut;
19
19
  }, function (_ref6) {
20
20
  var theme = _ref6.theme;
21
21
  return theme.fontFamilyCode;
22
+ }, function (_ref7) {
23
+ var theme = _ref7.theme;
24
+ return theme.colorFill;
22
25
  });
23
26
  export default GlobalStyle;
@@ -13,7 +13,7 @@ export var generateCustomStylish = function generateCustomStylish(_ref) {
13
13
  heroGradientFlow: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n animation: flow 5s ease infinite;\n\n @keyframes flow {\n 0% {\n background-position: 0 0;\n }\n\n 50% {\n background-position: 100% 100%;\n }\n\n 100% {\n background-position: 0 0;\n }\n }\n "]))),
14
14
  heroBlurBall: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n will-change: transform;\n\n background: linear-gradient(\n 135deg,\n ", " 0%,\n ", " 30%,\n ", " 70%,\n ", " 100%\n );\n background-size: 200% 200%;\n filter: blur(69px);\n\n animation: glow 10s ease infinite;\n\n @keyframes glow {\n 0% {\n background-position: 0 -100%;\n }\n\n 50% {\n background-position: 200% 50%;\n }\n\n 100% {\n background-position: 0 -100%;\n }\n }\n "])), token.gradientColor3, token.gradientColor1, token.red, token.cyan),
15
15
  iconGradientDefault: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-image: radial-gradient(\n 100% 100% at 50% 0,\n ", " 0,\n ", " 100%\n );\n "])), rgba(token.colorSolid, 0.2), rgba(token.colorSolid, 0.1)),
16
- blur: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n backdrop-filter: blur(7px);\n "]))),
16
+ blur: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),
17
17
  markdown: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: 600;\n }\n\n p {\n margin: 20px auto;\n\n font-size: 14px;\n line-height: 1.8;\n color: ", ";\n text-align: justify;\n word-wrap: break-word;\n }\n\n blockquote {\n margin: 16px 0;\n padding: 0 12px;\n p {\n font-style: italic;\n color: ", ";\n }\n }\n\n p:not(:last-child) {\n margin-bottom: 1em;\n }\n\n a {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n img {\n max-width: 100%;\n }\n\n pre {\n border-radius: ", "px;\n }\n\n > :not([data-code-type='highlighter']) code {\n padding: 2px 6px;\n\n font-size: ", "px;\n color: ", ";\n\n background: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n }\n\n table {\n border-spacing: 0;\n\n width: 100%;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding: 8px;\n\n border: 1px solid ", ";\n border-radius: ", "px;\n }\n\n th,\n td {\n padding-block-start: 10px;\n padding-block-end: 10px;\n padding-inline-start: 16px;\n padding-inline-end: 16px;\n }\n\n thead {\n tr {\n th {\n background: ", ";\n &:first-child {\n border-top-left-radius: ", "px;\n border-bottom-left-radius: ", "px;\n }\n &:last-child {\n border-top-right-radius: ", "px;\n border-bottom-right-radius: ", "px;\n }\n }\n }\n }\n\n ul li {\n line-height: 1.8;\n }\n "])), isDarkMode ? token.colorTextSecondary : token.colorText, token.colorText, token.colorTextDescription, token.colorLink, token.colorLinkHover, token.colorLinkActive, token.borderRadius, token.fontSizeSM, isDarkMode ? token.cyan9A : token.cyan10A, isDarkMode ? token.cyan1A : token.cyan3A, isDarkMode ? token.cyan1A : token.cyan4A, token.borderRadiusSM, token.colorBorderSecondary, token.borderRadius, token.colorFillTertiary, token.borderRadius, token.borderRadius, token.borderRadius, token.borderRadius)
18
18
  };
19
19
  };
@@ -75,7 +75,7 @@ export var colorScales = {
75
75
  light: ['#ffffff', '#f8f8f8', '#eeeeee', '#e3e3e3', '#dddddd', '#cccccc', '#bbbbbb', '#aaaaaa', '#999999', '#888888', '#666666', '#333333', '#080808'],
76
76
  lightA: ['rgba(0, 0, 0, 0.015)', 'rgba(0, 0, 0, 0.03)', 'rgba(0, 0, 0, 0.06)', 'rgba(0, 0, 0, 0.12)', 'rgba(0, 0, 0, 0.18)', 'rgba(0, 0, 0, 0.24)', 'rgba(0, 0, 0, 0.32)', 'rgba(0, 0, 0, 0.38)', 'rgba(0, 0, 0, 0.44)', 'rgba(0, 0, 0, 0.5)', 'rgba(0, 0, 0, 0.68)', 'rgba(0, 0, 0, 0.84)', 'rgba(0, 0, 0, 0.98)'],
77
77
  dark: ['#000000', '#111111', '#222222', '#2d2d2d', '#333333', '#444444', '#555555', '#666666', '#6f6f6f', '#777777', '#aaaaaa', '#dddddd', '#ffffff'],
78
- darkA: ['rgba(255, 255, 255, 0.02)', 'rgba(255, 255, 255, 0.04)', 'rgba(255, 255, 255, 0.08)', 'rgba(255, 255, 255, 0.16)', 'rgba(255, 255, 255, 0.24)', 'rgba(255, 255, 255, 0.28)', 'rgba(255, 255, 255, 0.32)', 'rgba(255, 255, 255, 0.38)', 'rgba(255, 255, 255, 0.44)', 'rgba(255, 255, 255, 0.5)', 'rgba(255, 255, 255, 0.66)', 'rgba(255, 255, 255, 0.84)', '#ffffff']
78
+ darkA: ['rgba(255, 255, 255, 0.02)', 'rgba(255, 255, 255, 0.06)', 'rgba(255, 255, 255, 0.10)', 'rgba(255, 255, 255, 0.16)', 'rgba(255, 255, 255, 0.24)', 'rgba(255, 255, 255, 0.28)', 'rgba(255, 255, 255, 0.32)', 'rgba(255, 255, 255, 0.38)', 'rgba(255, 255, 255, 0.44)', 'rgba(255, 255, 255, 0.5)', 'rgba(255, 255, 255, 0.66)', 'rgba(255, 255, 255, 0.84)', '#ffffff']
79
79
  },
80
80
  bnw: {
81
81
  light: ['#ffffff', '#f5f5f5', '#eeeeee', '#cccccc', '#aaaaaa', '#888888', '#666666', '#444444', '#333333', '#222222', '#111111', '#111111', '#111111'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.15.0",
3
+ "version": "1.16.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building chatbot web apps",
5
5
  "keywords": [
6
6
  "lobehub",