@lobehub/ui 3.3.1 → 3.3.3

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.
Files changed (237) hide show
  1. package/es/A/index.d.ts +3 -3
  2. package/es/A/index.js +2 -2
  3. package/es/Accordion/AccordionItem.js +1 -1
  4. package/es/ActionIcon/ActionIcon.js +1 -1
  5. package/es/ActionIcon/type.d.ts +1 -1
  6. package/es/ActionIconGroup/ActionIconGroup.d.ts +2 -2
  7. package/es/ActionIconGroup/ActionIconGroup.js +4 -4
  8. package/es/ActionIconGroup/type.d.ts +1 -1
  9. package/es/Alert/Alert.js +1 -1
  10. package/es/Avatar/Avatar.js +3 -4
  11. package/es/Avatar/AvatarGroup/index.js +1 -1
  12. package/es/Avatar/type.d.ts +1 -1
  13. package/es/Block/Block.d.ts +2 -2
  14. package/es/Block/Block.js +4 -4
  15. package/es/Block/type.d.ts +1 -1
  16. package/es/Burger/Burger.js +1 -1
  17. package/es/Button/Button.d.ts +2 -2
  18. package/es/Button/Button.js +3 -3
  19. package/es/CodeEditor/CodeEditor.js +1 -1
  20. package/es/CodeEditor/type.d.ts +1 -1
  21. package/es/Collapse/Collapse.js +1 -1
  22. package/es/ColorSwatches/ColorSwatches.d.ts +2 -2
  23. package/es/ColorSwatches/ColorSwatches.js +4 -4
  24. package/es/ColorSwatches/type.d.ts +1 -1
  25. package/es/DraggablePanel/DraggablePanel.js +1 -1
  26. package/es/DraggablePanel/components/DraggablePanelBody.js +1 -1
  27. package/es/DraggablePanel/components/DraggablePanelContainer.js +1 -1
  28. package/es/DraggablePanel/components/DraggablePanelFooter.js +1 -1
  29. package/es/DraggablePanel/components/DraggablePanelHeader.js +1 -1
  30. package/es/DraggableSideNav/DraggableSideNav.js +1 -1
  31. package/es/Drawer/Drawer.js +1 -1
  32. package/es/EditableText/ControlInput.js +1 -1
  33. package/es/EditableText/EditableText.js +1 -1
  34. package/es/EditableText/type.d.ts +1 -1
  35. package/es/EmojiPicker/AvatarUploader.js +1 -1
  36. package/es/EmojiPicker/EmojiPicker.js +1 -1
  37. package/es/Empty/Empty.d.ts +2 -2
  38. package/es/Empty/Empty.js +3 -4
  39. package/es/Empty/type.d.ts +1 -1
  40. package/es/FileTypeIcon/FileTypeIcon.d.ts +2 -2
  41. package/es/FileTypeIcon/FileTypeIcon.js +4 -4
  42. package/es/FileTypeIcon/components/FileIcon.d.ts +2 -2
  43. package/es/FileTypeIcon/components/FileIcon.js +2 -3
  44. package/es/FileTypeIcon/components/FolderIcon.d.ts +2 -2
  45. package/es/FileTypeIcon/components/FolderIcon.js +2 -3
  46. package/es/Flex/style.css +29 -13
  47. package/es/FluentEmoji/FluentEmoji.d.ts +2 -2
  48. package/es/FluentEmoji/FluentEmoji.js +4 -4
  49. package/es/Footer/Footer.js +1 -1
  50. package/es/Footer/type.d.ts +1 -1
  51. package/es/Form/components/FormDivider.d.ts +2 -2
  52. package/es/Form/components/FormDivider.js +2 -3
  53. package/es/Form/components/FormFlatGroup.js +1 -1
  54. package/es/Form/components/FormFooter.d.ts +3 -2
  55. package/es/Form/components/FormFooter.js +3 -4
  56. package/es/Form/components/FormGroup.js +1 -1
  57. package/es/Form/components/FormSubmitFooter.js +1 -1
  58. package/es/Form/components/FormTitle.d.ts +2 -2
  59. package/es/Form/components/FormTitle.js +3 -4
  60. package/es/Form/type.d.ts +1 -1
  61. package/es/FormModal/FormModal.js +1 -1
  62. package/es/Grid/Grid.d.ts +2 -2
  63. package/es/Grid/Grid.js +3 -4
  64. package/es/Grid/type.d.ts +1 -1
  65. package/es/GroupAvatar/GroupAvatar.d.ts +2 -2
  66. package/es/GroupAvatar/GroupAvatar.js +5 -5
  67. package/es/GuideCard/GuideCard.js +1 -1
  68. package/es/GuideCard/type.d.ts +1 -1
  69. package/es/Header/Header.js +1 -1
  70. package/es/Header/type.d.ts +1 -1
  71. package/es/Highlighter/FullFeatured.js +37 -27
  72. package/es/Highlighter/Highlighter.js +5 -2
  73. package/es/Highlighter/LangSelect.js +9 -5
  74. package/es/Highlighter/style.d.ts +0 -1
  75. package/es/Highlighter/style.js +8 -9
  76. package/es/Highlighter/type.d.ts +1 -1
  77. package/es/Hotkey/Hotkey.js +1 -1
  78. package/es/Hotkey/type.d.ts +1 -1
  79. package/es/Hotkey/utils.d.ts +1 -1
  80. package/es/HotkeyInput/HotkeyInput.js +1 -1
  81. package/es/Image/Image.js +1 -1
  82. package/es/Image/components/Toolbar.js +1 -7
  83. package/es/Image/components/usePreview.js +1 -3
  84. package/es/Image/style.js +5 -4
  85. package/es/ImageSelect/ImageSelect.js +1 -1
  86. package/es/ImageSelect/type.d.ts +1 -1
  87. package/es/Img/index.d.ts +2 -2
  88. package/es/Img/index.js +2 -2
  89. package/es/List/List.js +1 -1
  90. package/es/List/ListItem/index.js +1 -1
  91. package/es/List/type.d.ts +1 -1
  92. package/es/Markdown/components/Footnotes.js +1 -1
  93. package/es/Markdown/components/SearchResultCards/SearchResultCard.js +1 -1
  94. package/es/Markdown/components/SearchResultCards/index.d.ts +1 -1
  95. package/es/MaskShadow/MaskShadow.js +1 -1
  96. package/es/MaskShadow/type.d.ts +1 -1
  97. package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +2 -2
  98. package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +4 -4
  99. package/es/Mermaid/FullFeatured.js +21 -9
  100. package/es/Mermaid/Mermaid.js +5 -2
  101. package/es/Mermaid/SyntaxMermaid/index.js +0 -4
  102. package/es/ScrollShadow/ScrollShadow.d.ts +2 -2
  103. package/es/ScrollShadow/ScrollShadow.js +4 -4
  104. package/es/ScrollShadow/type.d.ts +1 -1
  105. package/es/SideNav/SideNav.js +1 -1
  106. package/es/SideNav/type.d.ts +1 -1
  107. package/es/Skeleton/Skeleton.d.ts +2 -2
  108. package/es/Skeleton/Skeleton.js +3 -4
  109. package/es/Skeleton/SkeletonAvatar.d.ts +2 -2
  110. package/es/Skeleton/SkeletonAvatar.js +2 -3
  111. package/es/Skeleton/SkeletonBlock.d.ts +2 -2
  112. package/es/Skeleton/SkeletonBlock.js +2 -3
  113. package/es/Skeleton/SkeletonButton.d.ts +2 -2
  114. package/es/Skeleton/SkeletonButton.js +2 -3
  115. package/es/Skeleton/SkeletonParagraph.d.ts +2 -2
  116. package/es/Skeleton/SkeletonParagraph.js +3 -4
  117. package/es/Skeleton/SkeletonTags.d.ts +2 -2
  118. package/es/Skeleton/SkeletonTags.js +3 -4
  119. package/es/Skeleton/SkeletonTitle.d.ts +2 -2
  120. package/es/Skeleton/SkeletonTitle.js +2 -3
  121. package/es/SliderWithInput/SliderWithInput.js +1 -1
  122. package/es/SliderWithInput/type.d.ts +1 -1
  123. package/es/Snippet/Snippet.d.ts +2 -2
  124. package/es/Snippet/Snippet.js +4 -4
  125. package/es/Snippet/type.d.ts +1 -1
  126. package/es/SortableList/SortableList.js +1 -1
  127. package/es/SortableList/components/SortableItem.d.ts +1 -1
  128. package/es/SortableList/components/SortableItem.js +1 -1
  129. package/es/SortableList/type.d.ts +1 -1
  130. package/es/Tabs/Tabs.d.ts +2 -2
  131. package/es/Tabs/Tabs.js +3 -3
  132. package/es/Tag/Tag.d.ts +2 -2
  133. package/es/Tag/Tag.js +3 -3
  134. package/es/Text/Text.d.ts +2 -2
  135. package/es/Text/Text.js +3 -3
  136. package/es/ThemeProvider/Meta.d.ts +2 -2
  137. package/es/ThemeProvider/Meta.js +3 -3
  138. package/es/ThemeSwitch/ThemeSwitch.d.ts +2 -2
  139. package/es/ThemeSwitch/ThemeSwitch.js +4 -4
  140. package/es/Tooltip/TooltipFloating.js +1 -1
  141. package/es/Video/index.d.ts +1 -1
  142. package/es/Video/index.js +1 -1
  143. package/es/awesome/AuroraBackground/AuroraBackground.js +1 -1
  144. package/es/awesome/AuroraBackground/type.d.ts +1 -1
  145. package/es/awesome/Features/FeatureItem.js +1 -1
  146. package/es/awesome/GridBackground/GridShowcase.js +1 -1
  147. package/es/awesome/GridBackground/type.d.ts +1 -1
  148. package/es/awesome/Hero/Hero.js +1 -1
  149. package/es/awesome/SpotlightCard/SpotlightCardItem.js +1 -1
  150. package/es/brand/LobeChat/index.js +1 -1
  151. package/es/brand/LobeHub/index.js +1 -1
  152. package/es/brand/Logo3d/index.d.ts +2 -2
  153. package/es/brand/Logo3d/index.js +2 -3
  154. package/es/brand/LogoThree/Loading.d.ts +3 -3
  155. package/es/brand/LogoThree/Loading.js +3 -4
  156. package/es/brand/LogoThree/index.js +1 -1
  157. package/es/brand/components/Divider.d.ts +3 -3
  158. package/es/brand/components/Divider.js +3 -4
  159. package/es/chat/Bubble/Bubble.js +1 -1
  160. package/es/chat/Bubble/type.d.ts +1 -1
  161. package/es/chat/ChatHeader/ChatHeader.js +1 -1
  162. package/es/chat/ChatHeader/ChatHeaderTitle.d.ts +2 -2
  163. package/es/chat/ChatHeader/ChatHeaderTitle.js +3 -4
  164. package/es/chat/ChatHeader/type.d.ts +1 -1
  165. package/es/chat/ChatInputArea/components/ChatInputActionBar.d.ts +2 -2
  166. package/es/chat/ChatInputArea/components/ChatInputActionBar.js +3 -4
  167. package/es/chat/ChatInputArea/components/ChatSendButton.d.ts +2 -2
  168. package/es/chat/ChatInputArea/components/ChatSendButton.js +3 -4
  169. package/es/chat/ChatInputArea/type.d.ts +1 -1
  170. package/es/chat/ChatItem/ChatItem.js +1 -1
  171. package/es/chat/ChatItem/components/Actions.d.ts +2 -2
  172. package/es/chat/ChatItem/components/Actions.js +3 -4
  173. package/es/chat/ChatItem/components/Avatar.d.ts +2 -2
  174. package/es/chat/ChatItem/components/Avatar.js +3 -4
  175. package/es/chat/ChatItem/components/BorderSpacing.d.ts +2 -2
  176. package/es/chat/ChatItem/components/BorderSpacing.js +2 -3
  177. package/es/chat/ChatItem/components/ErrorContent.d.ts +2 -2
  178. package/es/chat/ChatItem/components/ErrorContent.js +3 -4
  179. package/es/chat/ChatItem/components/Loading.d.ts +2 -2
  180. package/es/chat/ChatItem/components/Loading.js +3 -4
  181. package/es/chat/ChatItem/components/MessageContent.js +1 -1
  182. package/es/chat/ChatItem/components/Title.d.ts +2 -2
  183. package/es/chat/ChatItem/components/Title.js +3 -4
  184. package/es/chat/ChatItem/type.d.ts +1 -1
  185. package/es/chat/ChatList/components/ChatActionsBar.d.ts +2 -2
  186. package/es/chat/ChatList/components/ChatActionsBar.js +2 -3
  187. package/es/chat/ChatList/components/HistoryDivider.d.ts +2 -2
  188. package/es/chat/ChatList/components/HistoryDivider.js +2 -3
  189. package/es/chat/EditableMessageList/EditableMessageList.js +1 -1
  190. package/es/chat/LoadingDots/LoadingDots.d.ts +2 -2
  191. package/es/chat/LoadingDots/LoadingDots.js +2 -3
  192. package/es/chat/MessageInput/MessageInput.js +1 -1
  193. package/es/chat/MessageInput/type.d.ts +1 -1
  194. package/es/chat/MessageModal/MessageModal.js +1 -1
  195. package/es/chat/TokenTag/TokenTag.d.ts +2 -2
  196. package/es/chat/TokenTag/TokenTag.js +3 -3
  197. package/es/color/ColorScales/ScaleRow.js +1 -1
  198. package/es/color/ColorScales/index.js +1 -1
  199. package/es/icons/Auth0/components/Avatar.d.ts +2 -2
  200. package/es/icons/Auth0/components/Avatar.js +2 -3
  201. package/es/icons/Authelia/components/Avatar.d.ts +2 -2
  202. package/es/icons/Authelia/components/Avatar.js +2 -3
  203. package/es/icons/Authentik/components/Avatar.d.ts +2 -2
  204. package/es/icons/Authentik/components/Avatar.js +2 -3
  205. package/es/icons/Casdoor/components/Avatar.d.ts +2 -2
  206. package/es/icons/Casdoor/components/Avatar.js +2 -3
  207. package/es/icons/Clerk/components/Avatar.d.ts +2 -2
  208. package/es/icons/Clerk/components/Avatar.js +2 -3
  209. package/es/icons/Logto/components/Avatar.d.ts +2 -2
  210. package/es/icons/Logto/components/Avatar.js +2 -3
  211. package/es/icons/MicrosoftEntra/components/Avatar.d.ts +2 -2
  212. package/es/icons/MicrosoftEntra/components/Avatar.js +2 -3
  213. package/es/icons/NextAuth/components/Avatar.d.ts +2 -2
  214. package/es/icons/NextAuth/components/Avatar.js +2 -3
  215. package/es/icons/Zitadel/components/Avatar.d.ts +2 -2
  216. package/es/icons/Zitadel/components/Avatar.js +2 -3
  217. package/es/mdx/Callout/index.d.ts +1 -1
  218. package/es/mdx/Callout/index.js +1 -1
  219. package/es/mdx/Cards/Card.js +1 -1
  220. package/es/mdx/FileTree/File.d.ts +1 -1
  221. package/es/mdx/FileTree/File.js +1 -1
  222. package/es/mdx/FileTree/Folder.d.ts +1 -1
  223. package/es/mdx/FileTree/Folder.js +1 -1
  224. package/es/mdx/Tabs/index.d.ts +1 -1
  225. package/es/mdx/Tabs/index.js +1 -1
  226. package/es/mdx/mdxComponents/Citation/PopoverPanel.js +1 -1
  227. package/es/mobile/ChatHeader/ChatHeader.js +1 -1
  228. package/es/mobile/ChatHeader/ChatHeaderTitle.js +1 -1
  229. package/es/mobile/ChatHeader/type.d.ts +1 -1
  230. package/es/mobile/ChatInputArea/ChatInputArea.js +1 -1
  231. package/es/mobile/SafeArea/SafeArea.d.ts +2 -2
  232. package/es/mobile/SafeArea/SafeArea.js +2 -3
  233. package/es/mobile/TabBar/TabBar.js +1 -1
  234. package/es/mobile/TabBar/type.d.ts +1 -1
  235. package/es/storybook/StoryBook/index.d.ts +1 -1
  236. package/es/storybook/StoryBook/index.js +1 -1
  237. package/package.json +1 -2
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { IconAvatar } from '@lobehub/icons';
13
- import { memo } from 'react';
14
13
  import { COLOR_PRIMARY, TITLE } from "../style";
15
14
  import Mono from "./Mono";
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- var Avatar = /*#__PURE__*/memo(function (_ref) {
16
+ var Avatar = function Avatar(_ref) {
18
17
  var background = _ref.background,
19
18
  rest = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
23
22
  background: background || COLOR_PRIMARY,
24
23
  color: '#fff'
25
24
  }, rest));
26
- });
25
+ };
27
26
  export default Avatar;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type IconAvatarProps } from '@lobehub/icons';
2
+ import { type FC } from 'react';
3
3
  export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
- declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
+ declare const Avatar: FC<AvatarProps>;
5
5
  export default Avatar;
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { IconAvatar } from '@lobehub/icons';
13
- import { memo } from 'react';
14
13
  import { COLOR_PRIMARY, TITLE } from "../style";
15
14
  import Mono from "./Mono";
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- var Avatar = /*#__PURE__*/memo(function (_ref) {
16
+ var Avatar = function Avatar(_ref) {
18
17
  var background = _ref.background,
19
18
  rest = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
23
22
  background: background || COLOR_PRIMARY,
24
23
  color: '#fff'
25
24
  }, rest));
26
- });
25
+ };
27
26
  export default Avatar;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type IconAvatarProps } from '@lobehub/icons';
2
+ import { type FC } from 'react';
3
3
  export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
- declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
+ declare const Avatar: FC<AvatarProps>;
5
5
  export default Avatar;
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { IconAvatar } from '@lobehub/icons';
13
- import { memo } from 'react';
14
13
  import { COLOR_PRIMARY, TITLE } from "../style";
15
14
  import Mono from "./Mono";
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- var Avatar = /*#__PURE__*/memo(function (_ref) {
16
+ var Avatar = function Avatar(_ref) {
18
17
  var background = _ref.background,
19
18
  rest = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
23
22
  background: background || COLOR_PRIMARY,
24
23
  color: '#fff'
25
24
  }, rest));
26
- });
25
+ };
27
26
  export default Avatar;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type IconAvatarProps } from '@lobehub/icons';
2
+ import { type FC } from 'react';
3
3
  export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
- declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
+ declare const Avatar: FC<AvatarProps>;
5
5
  export default Avatar;
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { IconAvatar } from '@lobehub/icons';
13
- import { memo } from 'react';
14
13
  import { COLOR_PRIMARY, TITLE } from "../style";
15
14
  import Color from "./Color";
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- var Avatar = /*#__PURE__*/memo(function (_ref) {
16
+ var Avatar = function Avatar(_ref) {
18
17
  var background = _ref.background,
19
18
  rest = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
@@ -22,5 +21,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
22
21
  "aria-label": TITLE,
23
22
  background: background || COLOR_PRIMARY
24
23
  }, rest));
25
- });
24
+ };
26
25
  export default Avatar;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type IconAvatarProps } from '@lobehub/icons';
2
+ import { type FC } from 'react';
3
3
  export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
- declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
+ declare const Avatar: FC<AvatarProps>;
5
5
  export default Avatar;
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { IconAvatar } from '@lobehub/icons';
13
- import { memo } from 'react';
14
13
  import { COLOR_PRIMARY, TITLE } from "../style";
15
14
  import Color from "./Color";
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- var Avatar = /*#__PURE__*/memo(function (_ref) {
16
+ var Avatar = function Avatar(_ref) {
18
17
  var background = _ref.background,
19
18
  rest = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
23
22
  background: background || COLOR_PRIMARY,
24
23
  iconMultiple: 0.7
25
24
  }, rest));
26
- });
25
+ };
27
26
  export default Avatar;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type IconAvatarProps } from '@lobehub/icons';
2
+ import { type FC } from 'react';
3
3
  export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
- declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
+ declare const Avatar: FC<AvatarProps>;
5
5
  export default Avatar;
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { IconAvatar } from '@lobehub/icons';
13
- import { memo } from 'react';
14
13
  import { COLOR_PRIMARY, TITLE } from "../style";
15
14
  import Mono from "./Mono";
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- var Avatar = /*#__PURE__*/memo(function (_ref) {
16
+ var Avatar = function Avatar(_ref) {
18
17
  var background = _ref.background,
19
18
  rest = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
23
22
  background: background || COLOR_PRIMARY,
24
23
  color: '#fff'
25
24
  }, rest));
26
- });
25
+ };
27
26
  export default Avatar;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  export interface CalloutProps extends FlexboxProps {
4
4
  type?: 'tip' | 'error' | 'important' | 'info' | 'warning';
5
5
  }
@@ -11,7 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
12
  import { AlertOctagon, AlertTriangle, Info, Lightbulb, MessageSquareWarning } from 'lucide-react';
13
13
  import { useMemo } from 'react';
14
- import { Flexbox } from 'react-layout-kit';
14
+ import { Flexbox } from "../../Flex";
15
15
  import Icon from "../../Icon";
16
16
  import { useStyles } from "./style";
17
17
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,9 +12,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
12
12
  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; }
13
13
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
14
  import { createStyles } from 'antd-style';
15
- import { Flexbox } from 'react-layout-kit';
16
15
  import A from "../../A";
17
16
  import Block from "../../Block";
17
+ import { Flexbox } from "../../Flex";
18
18
  import Icon from "../../Icon";
19
19
  import Img from "../../Img";
20
20
  import Tag from "../../Tag";
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  import { type IconProps } from "../../Icon";
4
4
  export interface FileProps extends Omit<FlexboxProps, 'children'> {
5
5
  icon?: IconProps['icon'];
@@ -10,7 +10,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
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
12
  import { FileIcon } from 'lucide-react';
13
- import { Flexbox } from 'react-layout-kit';
13
+ import { Flexbox } from "../../Flex";
14
14
  import Icon from "../../Icon";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  import { type IconProps } from "../../Icon";
4
4
  export interface FolderProps extends FlexboxProps {
5
5
  defaultOpen?: boolean;
@@ -20,7 +20,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
20
20
  import { createStyles } from 'antd-style';
21
21
  import { FolderIcon, FolderOpen } from 'lucide-react';
22
22
  import { useState } from 'react';
23
- import { Flexbox } from 'react-layout-kit';
23
+ import { Flexbox } from "../../Flex";
24
24
  import Icon from "../../Icon";
25
25
  import { jsx as _jsx } from "react/jsx-runtime";
26
26
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  import { type TabsProps as LobeTabsProps } from "../../Tabs";
4
4
  export interface TabsProps extends Omit<FlexboxProps, 'children'> {
5
5
  children: ReactNode[];
@@ -17,7 +17,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  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; }
18
18
  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; }
19
19
  import { useState } from 'react';
20
- import { Flexbox } from 'react-layout-kit';
20
+ import { Flexbox } from "../../Flex";
21
21
  import { default as LobeTabs } from "../../Tabs";
22
22
  import { useStyles } from "./style";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +12,7 @@ import { Popover } from 'antd';
12
12
  import { createStyles } from 'antd-style';
13
13
  import { ArrowRightIcon } from 'lucide-react';
14
14
  import { useMemo } from 'react';
15
- import { Flexbox } from 'react-layout-kit';
15
+ import { Flexbox } from "../../../Flex";
16
16
  import Icon from "../../../Icon";
17
17
  import { jsx as _jsx } from "react/jsx-runtime";
18
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -11,8 +11,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
12
  import { ChevronLeft } from 'lucide-react';
13
13
  import { memo } from 'react';
14
- import { Flexbox } from 'react-layout-kit';
15
14
  import ActionIcon from "../../ActionIcon";
15
+ import { Flexbox } from "../../Flex";
16
16
  import MobileSafeArea from "../SafeArea";
17
17
  import { useStyles } from "./style";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { memo } from 'react';
4
- import { Flexbox } from 'react-layout-kit';
4
+ import { Flexbox } from "../../Flex";
5
5
  import { useTitleStyles as useStyles } from "./style";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode, Ref } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  export interface ChatHeaderProps extends FlexboxProps {
4
4
  center?: ReactNode;
5
5
  classNames?: {
@@ -12,8 +12,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
  import { useSize } from 'ahooks';
13
13
  import { ChevronDown, ChevronUp } from 'lucide-react';
14
14
  import { memo, useCallback, useEffect, useRef, useState } from 'react';
15
- import { Flexbox } from 'react-layout-kit';
16
15
  import ActionIcon from "../../ActionIcon";
16
+ import { Flexbox } from "../../Flex";
17
17
  import ChatInputAreaInner from "../../chat/ChatInputArea/components/ChatInputAreaInner";
18
18
  import SafeArea from "../SafeArea";
19
19
  import { useStyles } from "./style";
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type FC } from 'react';
2
2
  import { SafeAreaProps } from './type';
3
- declare const SafeArea: import("react").NamedExoticComponent<SafeAreaProps>;
3
+ declare const SafeArea: FC<SafeAreaProps>;
4
4
  export default SafeArea;
@@ -9,10 +9,9 @@ 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 { memo } from 'react';
13
12
  import { useStyles } from "./style";
14
13
  import { jsx as _jsx } from "react/jsx-runtime";
15
- var SafeArea = /*#__PURE__*/memo(function (_ref) {
14
+ var SafeArea = function SafeArea(_ref) {
16
15
  var position = _ref.position,
17
16
  className = _ref.className,
18
17
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -22,6 +21,6 @@ var SafeArea = /*#__PURE__*/memo(function (_ref) {
22
21
  return /*#__PURE__*/_jsx("div", _objectSpread({
23
22
  className: cx(styles.container, styles[position], className)
24
23
  }, rest));
25
- });
24
+ };
26
25
  SafeArea.displayName = 'SafeArea';
27
26
  export default SafeArea;
@@ -16,8 +16,8 @@ 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
18
  import { memo } from 'react';
19
- import { Flexbox } from 'react-layout-kit';
20
19
  import useMergeState from 'use-merge-value';
20
+ import { Flexbox } from "../../Flex";
21
21
  import SafeArea from "../SafeArea";
22
22
  import { useStyles } from "./style";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, Ref } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  export interface TabBarItemType {
4
4
  icon: ReactNode | ((active: boolean) => ReactNode);
5
5
  key: string;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'react';
2
- import { FlexboxProps } from 'react-layout-kit';
2
+ import { FlexboxProps } from "../../Flex";
3
3
  export interface StoryBookProps extends FlexboxProps {
4
4
  levaStore: any;
5
5
  noPadding?: boolean;
@@ -12,8 +12,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
12
12
  import { useResponsive } from 'antd-style';
13
13
  import { LevaPanel } from 'leva';
14
14
  import { memo } from 'react';
15
- import { Center, Flexbox } from 'react-layout-kit';
16
15
  import DraggablePanel from "../../DraggablePanel";
16
+ import { Center, Flexbox } from "../../Flex";
17
17
  import { useStyles } from "./style";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
19
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -89,7 +89,6 @@
89
89
  "react-avatar-editor": "^14.0.0",
90
90
  "react-error-boundary": "^6.0.0",
91
91
  "react-hotkeys-hook": "^5.2.1",
92
- "react-layout-kit": "^2.0.1",
93
92
  "react-markdown": "^10.1.0",
94
93
  "react-merge-refs": "^3.0.2",
95
94
  "react-rnd": "^10.5.2",