@lobehub/ui 3.4.6 → 4.0.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.
Files changed (217) hide show
  1. package/README.md +48 -0
  2. package/es/Accordion/Accordion.d.mts +2 -2
  3. package/es/Accordion/AccordionItem.d.mts +2 -2
  4. package/es/Accordion/AccordionItem.mjs +5 -5
  5. package/es/Accordion/AccordionItem.mjs.map +1 -1
  6. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  7. package/es/Alert/Alert.d.mts +2 -2
  8. package/es/AutoComplete/Select.d.mts +2 -2
  9. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  10. package/es/Burger/Burger.d.mts +2 -2
  11. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  12. package/es/Collapse/Collapse.d.mts +2 -2
  13. package/es/ConfigProvider/index.d.mts +10 -4
  14. package/es/ConfigProvider/index.mjs +28 -6
  15. package/es/ConfigProvider/index.mjs.map +1 -1
  16. package/es/CopyButton/CopyButton.d.mts +2 -2
  17. package/es/DatePicker/DatePicker.d.mts +2 -2
  18. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  19. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  20. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  21. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  22. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  23. package/es/Drawer/Drawer.d.mts +2 -2
  24. package/es/Dropdown/Dropdown.d.mts +2 -2
  25. package/es/EditableText/EditableText.d.mts +2 -2
  26. package/es/EmojiPicker/AvatarUploader.mjs +10 -4
  27. package/es/EmojiPicker/AvatarUploader.mjs.map +1 -1
  28. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  29. package/es/EmojiPicker/EmojiPicker.mjs +9 -3
  30. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  31. package/es/Flex/FlexBasic.d.mts +2 -2
  32. package/es/FontLoader/index.d.mts +2 -2
  33. package/es/Footer/Footer.d.mts +2 -2
  34. package/es/Form/components/FormGroup.d.mts +2 -2
  35. package/es/Form/components/FormItem.d.mts +2 -2
  36. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  37. package/es/Form/components/FormSubmitFooter.mjs +20 -8
  38. package/es/Form/components/FormSubmitFooter.mjs.map +1 -1
  39. package/es/FormModal/FormModal.d.mts +2 -2
  40. package/es/GuideCard/GuideCard.d.mts +2 -2
  41. package/es/Header/Header.d.mts +2 -2
  42. package/es/Highlighter/Highlighter.d.mts +2 -2
  43. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  44. package/es/Hotkey/Hotkey.d.mts +2 -2
  45. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  46. package/es/HotkeyInput/HotkeyInput.mjs +13 -6
  47. package/es/HotkeyInput/HotkeyInput.mjs.map +1 -1
  48. package/es/Icon/Icon.d.mts +2 -2
  49. package/es/Icon/components/IconProvider.d.mts +3 -3
  50. package/es/Image/PreviewGroup.d.mts +2 -2
  51. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  52. package/es/Input/Input.d.mts +2 -2
  53. package/es/Input/InputNumber.d.mts +2 -2
  54. package/es/Input/InputOPT.d.mts +2 -2
  55. package/es/Input/InputPassword.d.mts +2 -2
  56. package/es/Input/TextArea.d.mts +2 -2
  57. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  58. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  59. package/es/Layout/components/LayoutMain.d.mts +2 -2
  60. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  61. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  62. package/es/Layout/components/LayoutToc.d.mts +2 -2
  63. package/es/List/ListItem/index.d.mts +2 -2
  64. package/es/Markdown/Markdown.d.mts +2 -2
  65. package/es/Markdown/Typography.d.mts +2 -2
  66. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  67. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  68. package/es/Menu/Menu.d.mts +2 -2
  69. package/es/Mermaid/Mermaid.d.mts +2 -2
  70. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  71. package/es/Modal/Modal.d.mts +2 -2
  72. package/es/MotionProvider/index.d.mts +15 -0
  73. package/es/MotionProvider/index.d.ts +1 -0
  74. package/es/MotionProvider/index.js +1 -0
  75. package/es/MotionProvider/index.mjs +22 -0
  76. package/es/MotionProvider/index.mjs.map +1 -0
  77. package/es/Provider.d.mts +2 -0
  78. package/es/SearchBar/SearchBar.d.mts +2 -2
  79. package/es/Segmented/Segmented.d.mts +2 -2
  80. package/es/Select/Select.d.mts +2 -2
  81. package/es/SideNav/SideNav.d.mts +2 -2
  82. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  83. package/es/SortableList/components/DragHandle.d.mts +2 -2
  84. package/es/SortableList/components/SortableItem.d.mts +2 -2
  85. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  86. package/es/ThemeProvider/ThemeProvider.mjs +11 -4
  87. package/es/ThemeProvider/ThemeProvider.mjs.map +1 -1
  88. package/es/ThemeProvider/type.d.mts +4 -0
  89. package/es/Toc/Toc.d.mts +2 -2
  90. package/es/Video/index.d.mts +2 -2
  91. package/es/_virtual/rolldown_runtime.mjs +18 -0
  92. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  93. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  94. package/es/awesome/Features/Features.d.mts +2 -2
  95. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  96. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  97. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  98. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  99. package/es/awesome/Hero/Hero.d.mts +2 -2
  100. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  101. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  102. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  103. package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +5 -4
  104. package/es/awesome/TypewriterEffect/TypewriterEffect.mjs.map +1 -1
  105. package/es/brand/BrandLoading/{style-CB0aumHV.css → style-Cof4dJBw.css} +1 -1
  106. package/es/brand/BrandLoading/{style-CB0aumHV.css.map → style-Cof4dJBw.css.map} +1 -1
  107. package/es/brand/LobeChat/index.d.mts +2 -2
  108. package/es/brand/LobeHub/index.d.mts +2 -2
  109. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  110. package/es/brand/LogoThree/index.d.mts +2 -2
  111. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  112. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  113. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  114. package/es/chat/ChatItem/ChatItem.mjs +8 -3
  115. package/es/chat/ChatItem/ChatItem.mjs.map +1 -1
  116. package/es/chat/ChatList/ChatList.d.mts +2 -2
  117. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  118. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  119. package/es/chat/EditableMessageList/EditableMessageList.mjs +17 -7
  120. package/es/chat/EditableMessageList/EditableMessageList.mjs.map +1 -1
  121. package/es/chat/EditableMessageList/type.d.mts +9 -0
  122. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  123. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  124. package/es/chat/MessageModal/MessageModal.mjs +27 -22
  125. package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
  126. package/es/chat/TokenTag/TokenTag.mjs +7 -1
  127. package/es/chat/TokenTag/TokenTag.mjs.map +1 -1
  128. package/es/color/ColorScales/index.d.mts +2 -2
  129. package/es/i18n/context.d.mts +17 -0
  130. package/es/i18n/context.mjs +18 -0
  131. package/es/i18n/context.mjs.map +1 -0
  132. package/es/i18n/index.d.mts +6 -0
  133. package/es/i18n/index.d.ts +1 -0
  134. package/es/i18n/index.js +1 -0
  135. package/es/i18n/index.mjs +6 -0
  136. package/es/i18n/resources/en/chat.d.mts +11 -0
  137. package/es/i18n/resources/en/chat.mjs +12 -0
  138. package/es/i18n/resources/en/chat.mjs.map +1 -0
  139. package/es/i18n/resources/en/common.d.mts +10 -0
  140. package/es/i18n/resources/en/common.mjs +11 -0
  141. package/es/i18n/resources/en/common.mjs.map +1 -0
  142. package/es/i18n/resources/en/editableMessage.d.mts +13 -0
  143. package/es/i18n/resources/en/editableMessage.mjs +14 -0
  144. package/es/i18n/resources/en/editableMessage.mjs.map +1 -0
  145. package/es/i18n/resources/en/emojiPicker.d.mts +12 -0
  146. package/es/i18n/resources/en/emojiPicker.mjs +13 -0
  147. package/es/i18n/resources/en/emojiPicker.mjs.map +1 -0
  148. package/es/i18n/resources/en/form.d.mts +10 -0
  149. package/es/i18n/resources/en/form.mjs +11 -0
  150. package/es/i18n/resources/en/form.mjs.map +1 -0
  151. package/es/i18n/resources/en/hotkey.d.mts +10 -0
  152. package/es/i18n/resources/en/hotkey.mjs +11 -0
  153. package/es/i18n/resources/en/hotkey.mjs.map +1 -0
  154. package/es/i18n/resources/en/index.d.mts +16 -0
  155. package/es/i18n/resources/en/index.mjs +25 -0
  156. package/es/i18n/resources/en/index.mjs.map +1 -0
  157. package/es/i18n/resources/en/messageModal.d.mts +9 -0
  158. package/es/i18n/resources/en/messageModal.mjs +10 -0
  159. package/es/i18n/resources/en/messageModal.mjs.map +1 -0
  160. package/es/i18n/resources/en/sideNav.d.mts +21 -0
  161. package/es/i18n/resources/en/sideNav.mjs +22 -0
  162. package/es/i18n/resources/en/sideNav.mjs.map +1 -0
  163. package/es/i18n/resources/index.d.mts +3 -0
  164. package/es/i18n/resources/index.mjs +4 -0
  165. package/es/i18n/resources/zhCn/chat.d.mts +11 -0
  166. package/es/i18n/resources/zhCn/chat.mjs +12 -0
  167. package/es/i18n/resources/zhCn/chat.mjs.map +1 -0
  168. package/es/i18n/resources/zhCn/common.d.mts +10 -0
  169. package/es/i18n/resources/zhCn/common.mjs +11 -0
  170. package/es/i18n/resources/zhCn/common.mjs.map +1 -0
  171. package/es/i18n/resources/zhCn/editableMessage.d.mts +13 -0
  172. package/es/i18n/resources/zhCn/editableMessage.mjs +14 -0
  173. package/es/i18n/resources/zhCn/editableMessage.mjs.map +1 -0
  174. package/es/i18n/resources/zhCn/emojiPicker.d.mts +12 -0
  175. package/es/i18n/resources/zhCn/emojiPicker.mjs +13 -0
  176. package/es/i18n/resources/zhCn/emojiPicker.mjs.map +1 -0
  177. package/es/i18n/resources/zhCn/form.d.mts +10 -0
  178. package/es/i18n/resources/zhCn/form.mjs +11 -0
  179. package/es/i18n/resources/zhCn/form.mjs.map +1 -0
  180. package/es/i18n/resources/zhCn/hotkey.d.mts +10 -0
  181. package/es/i18n/resources/zhCn/hotkey.mjs +11 -0
  182. package/es/i18n/resources/zhCn/hotkey.mjs.map +1 -0
  183. package/es/i18n/resources/zhCn/index.d.mts +16 -0
  184. package/es/i18n/resources/zhCn/index.mjs +25 -0
  185. package/es/i18n/resources/zhCn/index.mjs.map +1 -0
  186. package/es/i18n/resources/zhCn/messageModal.d.mts +9 -0
  187. package/es/i18n/resources/zhCn/messageModal.mjs +10 -0
  188. package/es/i18n/resources/zhCn/messageModal.mjs.map +1 -0
  189. package/es/i18n/resources/zhCn/sideNav.d.mts +21 -0
  190. package/es/i18n/resources/zhCn/sideNav.mjs +22 -0
  191. package/es/i18n/resources/zhCn/sideNav.mjs.map +1 -0
  192. package/es/i18n/types.d.mts +28 -0
  193. package/es/i18n/useTranslation.d.mts +10 -0
  194. package/es/i18n/useTranslation.mjs +22 -0
  195. package/es/i18n/useTranslation.mjs.map +1 -0
  196. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  197. package/es/icons/lucideExtra/CreateBotIcon.d.mts +3 -3
  198. package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
  199. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +3 -3
  200. package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
  201. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
  202. package/es/icons/lucideExtra/LeftClickIcon.d.mts +3 -3
  203. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  204. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  205. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  206. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  207. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +2 -2
  208. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  209. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +2 -2
  210. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  211. package/es/index.d.mts +5 -1
  212. package/es/index.mjs +4 -1
  213. package/es/mdx/Mdx/index.d.mts +2 -2
  214. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  215. package/es/motion/LazyMotion.d.mts +2 -2
  216. package/es/storybook/StoryBook/index.d.mts +2 -2
  217. package/package.json +27 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.mjs","names":[],"sources":["../../../../src/i18n/resources/zhCn/form.ts"],"sourcesContent":["export default {\n 'form.reset': '重置',\n 'form.submit': '提交',\n 'form.unsavedChanges': '未保存的更改',\n 'form.unsavedWarning': '您有未保存的更改。确定要离开吗?',\n} as const;\n"],"mappings":";AAAA,mBAAe;CACb,cAAc;CACd,eAAe;CACf,uBAAuB;CACvB,uBAAuB;CACxB"}
@@ -0,0 +1,10 @@
1
+ //#region src/i18n/resources/zhCn/hotkey.d.ts
2
+ declare const _default: {
3
+ readonly 'hotkey.conflict': "此快捷键与现有快捷键冲突。";
4
+ readonly 'hotkey.invalidCombination': "快捷键必须包含修饰键(Ctrl、Alt、Shift)且只能有一个常规键。";
5
+ readonly 'hotkey.placeholder': "按键录制快捷键";
6
+ readonly 'hotkey.reset': "重置为默认";
7
+ };
8
+ //#endregion
9
+ export { _default };
10
+ //# sourceMappingURL=hotkey.d.mts.map
@@ -0,0 +1,11 @@
1
+ //#region src/i18n/resources/zhCn/hotkey.ts
2
+ var hotkey_default = {
3
+ "hotkey.conflict": "此快捷键与现有快捷键冲突。",
4
+ "hotkey.invalidCombination": "快捷键必须包含修饰键(Ctrl、Alt、Shift)且只能有一个常规键。",
5
+ "hotkey.placeholder": "按键录制快捷键",
6
+ "hotkey.reset": "重置为默认"
7
+ };
8
+
9
+ //#endregion
10
+ export { hotkey_default as default };
11
+ //# sourceMappingURL=hotkey.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hotkey.mjs","names":[],"sources":["../../../../src/i18n/resources/zhCn/hotkey.ts"],"sourcesContent":["export default {\n 'hotkey.conflict': '此快捷键与现有快捷键冲突。',\n 'hotkey.invalidCombination': '快捷键必须包含修饰键(Ctrl、Alt、Shift)且只能有一个常规键。',\n 'hotkey.placeholder': '按键录制快捷键',\n 'hotkey.reset': '重置为默认',\n} as const;\n"],"mappings":";AAAA,qBAAe;CACb,mBAAmB;CACnB,6BAA6B;CAC7B,sBAAsB;CACtB,gBAAgB;CACjB"}
@@ -0,0 +1,16 @@
1
+ import { _default } from "./chat.mjs";
2
+ import { _default as _default$1 } from "./common.mjs";
3
+ import { _default as _default$2 } from "./editableMessage.mjs";
4
+ import { _default as _default$3 } from "./emojiPicker.mjs";
5
+ import { _default as _default$4 } from "./form.mjs";
6
+ import { _default as _default$5 } from "./hotkey.mjs";
7
+ import { _default as _default$6 } from "./messageModal.mjs";
8
+ import { _default as _default$7 } from "./sideNav.mjs";
9
+
10
+ //#region src/i18n/resources/zhCn/index.d.ts
11
+ declare namespace index_d_exports {
12
+ export { _default as chat, _default$1 as common, _default$2 as editableMessage, _default$3 as emojiPicker, _default$4 as form, _default$5 as hotkey, _default$6 as messageModal, _default$7 as sideNav };
13
+ }
14
+ //#endregion
15
+ export { index_d_exports };
16
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,25 @@
1
+ import { __export } from "../../../_virtual/rolldown_runtime.mjs";
2
+ import chat_default from "./chat.mjs";
3
+ import common_default from "./common.mjs";
4
+ import editableMessage_default from "./editableMessage.mjs";
5
+ import emojiPicker_default from "./emojiPicker.mjs";
6
+ import form_default from "./form.mjs";
7
+ import hotkey_default from "./hotkey.mjs";
8
+ import messageModal_default from "./messageModal.mjs";
9
+ import sideNav_default from "./sideNav.mjs";
10
+
11
+ //#region src/i18n/resources/zhCn/index.ts
12
+ var zhCn_exports = /* @__PURE__ */ __export({
13
+ chat: () => chat_default,
14
+ common: () => common_default,
15
+ editableMessage: () => editableMessage_default,
16
+ emojiPicker: () => emojiPicker_default,
17
+ form: () => form_default,
18
+ hotkey: () => hotkey_default,
19
+ messageModal: () => messageModal_default,
20
+ sideNav: () => sideNav_default
21
+ });
22
+
23
+ //#endregion
24
+ export { zhCn_exports };
25
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/i18n/resources/zhCn/index.ts"],"sourcesContent":["export { default as chat } from './chat';\nexport { default as common } from './common';\nexport { default as editableMessage } from './editableMessage';\nexport { default as emojiPicker } from './emojiPicker';\nexport { default as form } from './form';\nexport { default as hotkey } from './hotkey';\nexport { default as messageModal } from './messageModal';\nexport { default as sideNav } from './sideNav';\n"],"mappings":""}
@@ -0,0 +1,9 @@
1
+ //#region src/i18n/resources/zhCn/messageModal.d.ts
2
+ declare const _default: {
3
+ readonly 'messageModal.cancel': "取消";
4
+ readonly 'messageModal.confirm': "确认";
5
+ readonly 'messageModal.edit': "编辑";
6
+ };
7
+ //#endregion
8
+ export { _default };
9
+ //# sourceMappingURL=messageModal.d.mts.map
@@ -0,0 +1,10 @@
1
+ //#region src/i18n/resources/zhCn/messageModal.ts
2
+ var messageModal_default = {
3
+ "messageModal.cancel": "取消",
4
+ "messageModal.confirm": "确认",
5
+ "messageModal.edit": "编辑"
6
+ };
7
+
8
+ //#endregion
9
+ export { messageModal_default as default };
10
+ //# sourceMappingURL=messageModal.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageModal.mjs","names":[],"sources":["../../../../src/i18n/resources/zhCn/messageModal.ts"],"sourcesContent":["export default {\n 'messageModal.cancel': '取消',\n 'messageModal.confirm': '确认',\n 'messageModal.edit': '编辑',\n} as const;\n"],"mappings":";AAAA,2BAAe;CACb,uBAAuB;CACvB,wBAAwB;CACxB,qBAAqB;CACtB"}
@@ -0,0 +1,21 @@
1
+ //#region src/i18n/resources/zhCn/sideNav.d.ts
2
+ declare const _default: {
3
+ readonly 'sideNav.collapse': "折叠侧边栏";
4
+ readonly 'sideNav.demoActiveLabel': "激活";
5
+ readonly 'sideNav.demoFeatureAutoCollapseDesc': "拖动到阈值以下智能折叠";
6
+ readonly 'sideNav.demoFeatureAutoCollapseTitle': "自动折叠";
7
+ readonly 'sideNav.demoFeaturePerformanceDesc': "无动画开销,性能更佳";
8
+ readonly 'sideNav.demoFeaturePerformanceTitle': "性能优化";
9
+ readonly 'sideNav.demoFeatureResizeDesc': "拖动调整面板宽度";
10
+ readonly 'sideNav.demoFeatureResizeTitle': "灵活调整";
11
+ readonly 'sideNav.demoFeatureSmartHandleDesc': "悬停显示切换按钮";
12
+ readonly 'sideNav.demoFeatureSmartHandleTitle': "智能手柄";
13
+ readonly 'sideNav.demoFeaturesTitle': "功能特性";
14
+ readonly 'sideNav.demoHint': "尝试拖动面板边缘并使用切换按钮 ->";
15
+ readonly 'sideNav.demoSubtitle': "可拖动调整的工作区风格侧边面板";
16
+ readonly 'sideNav.demoTitle': "DraggableSideNav 演示";
17
+ readonly 'sideNav.expand': "展开侧边栏";
18
+ };
19
+ //#endregion
20
+ export { _default };
21
+ //# sourceMappingURL=sideNav.d.mts.map
@@ -0,0 +1,22 @@
1
+ //#region src/i18n/resources/zhCn/sideNav.ts
2
+ var sideNav_default = {
3
+ "sideNav.collapse": "折叠侧边栏",
4
+ "sideNav.demoActiveLabel": "激活",
5
+ "sideNav.demoFeatureAutoCollapseDesc": "拖动到阈值以下智能折叠",
6
+ "sideNav.demoFeatureAutoCollapseTitle": "自动折叠",
7
+ "sideNav.demoFeaturePerformanceDesc": "无动画开销,性能更佳",
8
+ "sideNav.demoFeaturePerformanceTitle": "性能优化",
9
+ "sideNav.demoFeatureResizeDesc": "拖动调整面板宽度",
10
+ "sideNav.demoFeatureResizeTitle": "灵活调整",
11
+ "sideNav.demoFeatureSmartHandleDesc": "悬停显示切换按钮",
12
+ "sideNav.demoFeatureSmartHandleTitle": "智能手柄",
13
+ "sideNav.demoFeaturesTitle": "功能特性",
14
+ "sideNav.demoHint": "尝试拖动面板边缘并使用切换按钮 ->",
15
+ "sideNav.demoSubtitle": "可拖动调整的工作区风格侧边面板",
16
+ "sideNav.demoTitle": "DraggableSideNav 演示",
17
+ "sideNav.expand": "展开侧边栏"
18
+ };
19
+
20
+ //#endregion
21
+ export { sideNav_default as default };
22
+ //# sourceMappingURL=sideNav.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sideNav.mjs","names":[],"sources":["../../../../src/i18n/resources/zhCn/sideNav.ts"],"sourcesContent":["export default {\n 'sideNav.collapse': '折叠侧边栏',\n 'sideNav.demoActiveLabel': '激活',\n 'sideNav.demoFeatureAutoCollapseDesc': '拖动到阈值以下智能折叠',\n 'sideNav.demoFeatureAutoCollapseTitle': '自动折叠',\n 'sideNav.demoFeaturePerformanceDesc': '无动画开销,性能更佳',\n 'sideNav.demoFeaturePerformanceTitle': '性能优化',\n 'sideNav.demoFeatureResizeDesc': '拖动调整面板宽度',\n 'sideNav.demoFeatureResizeTitle': '灵活调整',\n 'sideNav.demoFeatureSmartHandleDesc': '悬停显示切换按钮',\n 'sideNav.demoFeatureSmartHandleTitle': '智能手柄',\n 'sideNav.demoFeaturesTitle': '功能特性',\n 'sideNav.demoHint': '尝试拖动面板边缘并使用切换按钮 ->',\n 'sideNav.demoSubtitle': '可拖动调整的工作区风格侧边面板',\n 'sideNav.demoTitle': 'DraggableSideNav 演示',\n 'sideNav.expand': '展开侧边栏',\n} as const;\n"],"mappings":";AAAA,sBAAe;CACb,oBAAoB;CACpB,2BAA2B;CAC3B,uCAAuC;CACvC,wCAAwC;CACxC,sCAAsC;CACtC,uCAAuC;CACvC,iCAAiC;CACjC,kCAAkC;CAClC,sCAAsC;CACtC,uCAAuC;CACvC,6BAA6B;CAC7B,oBAAoB;CACpB,wBAAwB;CACxB,qBAAqB;CACrB,kBAAkB;CACnB"}
@@ -0,0 +1,28 @@
1
+ import { _default } from "./resources/en/chat.mjs";
2
+ import { _default as _default$1 } from "./resources/en/common.mjs";
3
+ import { _default as _default$2 } from "./resources/en/editableMessage.mjs";
4
+ import { _default as _default$3 } from "./resources/en/emojiPicker.mjs";
5
+ import { _default as _default$4 } from "./resources/en/form.mjs";
6
+ import { _default as _default$5 } from "./resources/en/hotkey.mjs";
7
+ import { _default as _default$6 } from "./resources/en/messageModal.mjs";
8
+ import { _default as _default$7 } from "./resources/en/sideNav.mjs";
9
+
10
+ //#region src/i18n/types.d.ts
11
+ type Locale = string;
12
+ type BuiltinTranslationResources = typeof _default & typeof _default$1 & typeof _default$2 & typeof _default$3 & typeof _default$4 & typeof _default$5 & typeof _default$6 & typeof _default$7;
13
+ type TranslationKey = keyof BuiltinTranslationResources;
14
+ type TranslationValue = string;
15
+ /**
16
+ * A (partial) dictionary of translations.
17
+ *
18
+ * Note: it's intentionally Partial so feature-level modules can pass only their own keys as
19
+ * fallback resources (e.g. `useTranslation(editableMessageMessages)`).
20
+ */
21
+ type TranslationResources = Partial<Record<TranslationKey, TranslationValue>>;
22
+ type I18nContextValue = {
23
+ locale: Locale;
24
+ t: (key: TranslationKey) => string;
25
+ };
26
+ //#endregion
27
+ export { I18nContextValue, Locale, TranslationKey, TranslationResources, TranslationValue };
28
+ //# sourceMappingURL=types.d.mts.map
@@ -0,0 +1,10 @@
1
+ import { TranslationKey, TranslationResources } from "./types.mjs";
2
+
3
+ //#region src/i18n/useTranslation.d.ts
4
+ declare const useTranslation: (fallbackResources?: TranslationResources) => {
5
+ locale: string;
6
+ t: (key: TranslationKey) => string;
7
+ };
8
+ //#endregion
9
+ export { useTranslation };
10
+ //# sourceMappingURL=useTranslation.d.mts.map
@@ -0,0 +1,22 @@
1
+ import { useI18n } from "../ConfigProvider/index.mjs";
2
+ import { useMemo } from "react";
3
+
4
+ //#region src/i18n/useTranslation.ts
5
+ const useTranslation = (fallbackResources) => {
6
+ const { t, locale } = useI18n();
7
+ return {
8
+ locale,
9
+ t: useMemo(() => {
10
+ if (!fallbackResources) return t;
11
+ return (key) => {
12
+ const value = t(key);
13
+ const fallback = fallbackResources[key];
14
+ return value === key && fallback ? fallback : value;
15
+ };
16
+ }, [t, fallbackResources])
17
+ };
18
+ };
19
+
20
+ //#endregion
21
+ export { useTranslation };
22
+ //# sourceMappingURL=useTranslation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTranslation.mjs","names":[],"sources":["../../src/i18n/useTranslation.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { useI18n } from './context';\nimport type { TranslationKey, TranslationResources } from './types';\n\nexport const useTranslation = (fallbackResources?: TranslationResources) => {\n const { t, locale } = useI18n();\n\n const translate = useMemo((): ((key: TranslationKey) => string) => {\n if (!fallbackResources) return t;\n\n return (key: TranslationKey): string => {\n const value = t(key);\n const fallback = fallbackResources[key];\n return value === key && fallback ? fallback : value;\n };\n }, [t, fallbackResources]);\n\n return { locale, t: translate };\n};\n"],"mappings":";;;;AAKA,MAAa,kBAAkB,sBAA6C;CAC1E,MAAM,EAAE,GAAG,WAAW,SAAS;AAY/B,QAAO;EAAE;EAAQ,GAVC,cAAiD;AACjE,OAAI,CAAC,kBAAmB,QAAO;AAE/B,WAAQ,QAAgC;IACtC,MAAM,QAAQ,EAAE,IAAI;IACpB,MAAM,WAAW,kBAAkB;AACnC,WAAO,UAAU,OAAO,WAAW,WAAW;;KAE/C,CAAC,GAAG,kBAAkB,CAAC;EAEK"}
@@ -1,8 +1,8 @@
1
- import * as react71 from "react";
1
+ import * as react75 from "react";
2
2
  import * as lucide_react0 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/BotPromptIcon.d.ts
5
- declare const BotPromptIcon: react71.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react71.RefAttributes<SVGSVGElement>>;
5
+ declare const BotPromptIcon: react75.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react75.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { BotPromptIcon };
8
8
  //# sourceMappingURL=BotPromptIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react69 from "react";
2
- import * as lucide_react0 from "lucide-react";
1
+ import * as react81 from "react";
2
+ import * as lucide_react3 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/CreateBotIcon.d.ts
5
- declare const CreateBotIcon: react69.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react69.RefAttributes<SVGSVGElement>>;
5
+ declare const CreateBotIcon: react81.ForwardRefExoticComponent<Omit<lucide_react3.LucideProps, "ref"> & react81.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { CreateBotIcon };
8
8
  //# sourceMappingURL=CreateBotIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react79 from "react";
2
- import * as lucide_react4 from "lucide-react";
1
+ import * as react73 from "react";
2
+ import * as lucide_react0 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/DiscordIcon.d.ts
5
- declare const DiscordIcon: react79.ForwardRefExoticComponent<Omit<lucide_react4.LucideProps, "ref"> & react79.RefAttributes<SVGSVGElement>>;
5
+ declare const DiscordIcon: react73.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react73.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { DiscordIcon };
8
8
  //# sourceMappingURL=DiscordIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react77 from "react";
2
- import * as lucide_react3 from "lucide-react";
1
+ import * as react79 from "react";
2
+ import * as lucide_react2 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/GlobeOffIcon.d.ts
5
- declare const GlobeOffIcon: react77.ForwardRefExoticComponent<Omit<lucide_react3.LucideProps, "ref"> & react77.RefAttributes<SVGSVGElement>>;
5
+ declare const GlobeOffIcon: react79.ForwardRefExoticComponent<Omit<lucide_react2.LucideProps, "ref"> & react79.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { GlobeOffIcon };
8
8
  //# sourceMappingURL=GlobeOffIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react75 from "react";
2
- import * as lucide_react2 from "lucide-react";
1
+ import * as react83 from "react";
2
+ import * as lucide_react4 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/GroupBotIcon.d.ts
5
- declare const GroupBotIcon: react75.ForwardRefExoticComponent<Omit<lucide_react2.LucideProps, "ref"> & react75.RefAttributes<SVGSVGElement>>;
5
+ declare const GroupBotIcon: react83.ForwardRefExoticComponent<Omit<lucide_react4.LucideProps, "ref"> & react83.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { GroupBotIcon };
8
8
  //# sourceMappingURL=GroupBotIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react73 from "react";
2
- import * as lucide_react1 from "lucide-react";
1
+ import * as react89 from "react";
2
+ import * as lucide_react7 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/GroupBotSquareIcon.d.ts
5
- declare const GroupBotSquareIcon: react73.ForwardRefExoticComponent<Omit<lucide_react1.LucideProps, "ref"> & react73.RefAttributes<SVGSVGElement>>;
5
+ declare const GroupBotSquareIcon: react89.ForwardRefExoticComponent<Omit<lucide_react7.LucideProps, "ref"> & react89.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { GroupBotSquareIcon };
8
8
  //# sourceMappingURL=GroupBotSquareIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react83 from "react";
2
- import * as lucide_react6 from "lucide-react";
1
+ import * as react95 from "react";
2
+ import * as lucide_react10 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/LeftClickIcon.d.ts
5
- declare const LeftClickIcon: react83.ForwardRefExoticComponent<Omit<lucide_react6.LucideProps, "ref"> & react83.RefAttributes<SVGSVGElement>>;
5
+ declare const LeftClickIcon: react95.ForwardRefExoticComponent<Omit<lucide_react10.LucideProps, "ref"> & react95.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { LeftClickIcon };
8
8
  //# sourceMappingURL=LeftClickIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react85 from "react";
2
- import * as lucide_react7 from "lucide-react";
1
+ import * as react97 from "react";
2
+ import * as lucide_react11 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/LeftDoubleClickIcon.d.ts
5
- declare const LeftDoubleClickIcon: react85.ForwardRefExoticComponent<Omit<lucide_react7.LucideProps, "ref"> & react85.RefAttributes<SVGSVGElement>>;
5
+ declare const LeftDoubleClickIcon: react97.ForwardRefExoticComponent<Omit<lucide_react11.LucideProps, "ref"> & react97.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { LeftDoubleClickIcon };
8
8
  //# sourceMappingURL=LeftDoubleClickIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react81 from "react";
2
- import * as lucide_react5 from "lucide-react";
1
+ import * as react99 from "react";
2
+ import * as lucide_react12 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/McpIcon.d.ts
5
- declare const McpIcon: react81.ForwardRefExoticComponent<Omit<lucide_react5.LucideProps, "ref"> & react81.RefAttributes<SVGSVGElement>>;
5
+ declare const McpIcon: react99.ForwardRefExoticComponent<Omit<lucide_react12.LucideProps, "ref"> & react99.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { McpIcon };
8
8
  //# sourceMappingURL=McpIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react89 from "react";
2
- import * as lucide_react9 from "lucide-react";
1
+ import * as react85 from "react";
2
+ import * as lucide_react5 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/ProviderIcon.d.ts
5
- declare const ProviderIcon: react89.ForwardRefExoticComponent<Omit<lucide_react9.LucideProps, "ref"> & react89.RefAttributes<SVGSVGElement>>;
5
+ declare const ProviderIcon: react85.ForwardRefExoticComponent<Omit<lucide_react5.LucideProps, "ref"> & react85.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { ProviderIcon };
8
8
  //# sourceMappingURL=ProviderIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react95 from "react";
2
- import * as lucide_react12 from "lucide-react";
1
+ import * as react87 from "react";
2
+ import * as lucide_react6 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/RightClickIcon.d.ts
5
- declare const RightClickIcon: react95.ForwardRefExoticComponent<Omit<lucide_react12.LucideProps, "ref"> & react95.RefAttributes<SVGSVGElement>>;
5
+ declare const RightClickIcon: react87.ForwardRefExoticComponent<Omit<lucide_react6.LucideProps, "ref"> & react87.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { RightClickIcon };
8
8
  //# sourceMappingURL=RightClickIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react87 from "react";
1
+ import * as react91 from "react";
2
2
  import * as lucide_react8 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/RightDoubleClickIcon.d.ts
5
- declare const RightDoubleClickIcon: react87.ForwardRefExoticComponent<Omit<lucide_react8.LucideProps, "ref"> & react87.RefAttributes<SVGSVGElement>>;
5
+ declare const RightDoubleClickIcon: react91.ForwardRefExoticComponent<Omit<lucide_react8.LucideProps, "ref"> & react91.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { RightDoubleClickIcon };
8
8
  //# sourceMappingURL=RightDoubleClickIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react91 from "react";
2
- import * as lucide_react10 from "lucide-react";
1
+ import * as react93 from "react";
2
+ import * as lucide_react9 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/ShapesUploadIcon.d.ts
5
- declare const ShapesUploadIcon: react91.ForwardRefExoticComponent<Omit<lucide_react10.LucideProps, "ref"> & react91.RefAttributes<SVGSVGElement>>;
5
+ declare const ShapesUploadIcon: react93.ForwardRefExoticComponent<Omit<lucide_react9.LucideProps, "ref"> & react93.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { ShapesUploadIcon };
8
8
  //# sourceMappingURL=ShapesUploadIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react97 from "react";
1
+ import * as react101 from "react";
2
2
  import * as lucide_react13 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/TreeDownRightIcon.d.ts
5
- declare const TreeDownRightIcon: react97.ForwardRefExoticComponent<Omit<lucide_react13.LucideProps, "ref"> & react97.RefAttributes<SVGSVGElement>>;
5
+ declare const TreeDownRightIcon: react101.ForwardRefExoticComponent<Omit<lucide_react13.LucideProps, "ref"> & react101.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { TreeDownRightIcon };
8
8
  //# sourceMappingURL=TreeDownRightIcon.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react93 from "react";
2
- import * as lucide_react11 from "lucide-react";
1
+ import * as react77 from "react";
2
+ import * as lucide_react1 from "lucide-react";
3
3
 
4
4
  //#region src/icons/lucideExtra/TreeUpDownRightIcon.d.ts
5
- declare const TreeUpDownRightIcon: react93.ForwardRefExoticComponent<Omit<lucide_react11.LucideProps, "ref"> & react93.RefAttributes<SVGSVGElement>>;
5
+ declare const TreeUpDownRightIcon: react77.ForwardRefExoticComponent<Omit<lucide_react1.LucideProps, "ref"> & react77.RefAttributes<SVGSVGElement>>;
6
6
  //#endregion
7
7
  export { TreeUpDownRightIcon };
8
8
  //# sourceMappingURL=TreeUpDownRightIcon.d.mts.map
package/es/index.d.mts CHANGED
@@ -146,6 +146,7 @@ import { ImageProps, PreviewGroupProps } from "./Image/type.mjs";
146
146
  import { PreviewGroup } from "./Image/PreviewGroup.mjs";
147
147
  import Image from "./Image/index.mjs";
148
148
  import { A } from "./A/index.mjs";
149
+ import { MotionComponent, MotionComponentType, MotionProvider, useMotionComponent } from "./MotionProvider/index.mjs";
149
150
  import { CDN, genCdnUrl } from "./utils/genCdnUrl.mjs";
150
151
  import { Config, ConfigProvider, useCdnFn } from "./ConfigProvider/index.mjs";
151
152
  import { FontLoader, FontLoaderProps } from "./FontLoader/index.mjs";
@@ -190,6 +191,9 @@ import "./MaskShadow/index.mjs";
190
191
  import { MaterialFileTypeIconProps } from "./MaterialFileTypeIcon/type.mjs";
191
192
  import { MaterialFileTypeIcon } from "./MaterialFileTypeIcon/MaterialFileTypeIcon.mjs";
192
193
  import "./MaterialFileTypeIcon/index.mjs";
194
+ import { I18nProvider, I18nProviderProps } from "./i18n/context.mjs";
195
+ import { useTranslation } from "./i18n/useTranslation.mjs";
196
+ import "./Provider.mjs";
193
197
  import { ScrollShadowProps } from "./ScrollShadow/type.mjs";
194
198
  import { ScrollShadow } from "./ScrollShadow/ScrollShadow.mjs";
195
199
  import "./ScrollShadow/index.mjs";
@@ -244,4 +248,4 @@ import { LayoutSidebarInner } from "./Layout/components/LayoutSidebarInner.mjs";
244
248
  import { LayoutToc } from "./Layout/components/LayoutToc.mjs";
245
249
  import Layout from "./Layout/index.mjs";
246
250
  import { ErrorBoundary, ErrorBoundaryProps } from "react-error-boundary";
247
- export { A, AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, Center, type CenterProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, ColorPalettes, ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, ColorToken, type Config, ConfigProvider, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type MenuItemType as DropdownMenuItemType, type DropdownProps, EditableText, type EditableTextProps, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, FileTypeIcon, type FileTypeIconProps, _default as FlexBasic, type FlexBasicProps, _default as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, type FormInstance, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, ImgProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, LobeCustomStylish, LobeCustomToken, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, type ModalProps, NeutralColors, NeutralColorsObj, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Input$1 as Select, type SelectProps, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, SpanProps, SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, Typography, type TypographyProps, Video, type VideoProps, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn };
251
+ export { A, AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, Center, type CenterProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, ColorPalettes, ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, ColorToken, type Config, ConfigProvider, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type MenuItemType as DropdownMenuItemType, type DropdownProps, EditableText, type EditableTextProps, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, FileTypeIcon, type FileTypeIconProps, _default as FlexBasic, type FlexBasicProps, _default as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, type FormInstance, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, ImgProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, LobeCustomStylish, LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, type ModalProps, MotionComponent, type MotionComponentType, MotionProvider, NeutralColors, NeutralColorsObj, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Input$1 as Select, type SelectProps, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, SpanProps, SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, Typography, type TypographyProps, Video, type VideoProps, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn, useMotionComponent, useTranslation };
package/es/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { MotionComponent, MotionProvider, useMotionComponent } from "./MotionProvider/index.mjs";
1
2
  import { genCdnUrl } from "./utils/genCdnUrl.mjs";
2
3
  import ConfigProvider_default, { useCdnFn } from "./ConfigProvider/index.mjs";
3
4
  import A_default from "./A/index.mjs";
@@ -48,6 +49,8 @@ import InputPassword_default from "./Input/InputPassword.mjs";
48
49
  import TextArea_default from "./Input/TextArea.mjs";
49
50
  import EditableText_default from "./EditableText/EditableText.mjs";
50
51
  import Tabs_default from "./Tabs/Tabs.mjs";
52
+ import { I18nProvider } from "./i18n/context.mjs";
53
+ import { useTranslation } from "./i18n/useTranslation.mjs";
51
54
  import Tag_default from "./Tag/Tag.mjs";
52
55
  import EmojiPicker_default from "./EmojiPicker/EmojiPicker.mjs";
53
56
  import Empty_default from "./Empty/Empty.mjs";
@@ -122,4 +125,4 @@ import ThemeSwitch_default from "./ThemeSwitch/ThemeSwitch.mjs";
122
125
  import Toc_default from "./Toc/Toc.mjs";
123
126
  import { ErrorBoundary } from "react-error-boundary";
124
127
 
125
- export { A_default as A, Accordion_default as Accordion, AccordionItem_default as AccordionItem, ActionIcon_default as ActionIcon, ActionIconGroup_default as ActionIconGroup, Alert_default as Alert, Select_default as AutoComplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Block_default as Block, Burger_default as Burger, Button_default as Button, Center_default as Center, CodeEditor_default as CodeEditor, Collapse_default as Collapse, ColorSwatches_default as ColorSwatches, ConfigProvider_default as ConfigProvider, CopyButton_default as CopyButton, DatePicker_default as DatePicker, DownloadButton_default as DownloadButton, DraggablePanel_default as DraggablePanel, DraggablePanelBody_default as DraggablePanelBody, DraggablePanelContainer_default as DraggablePanelContainer, DraggablePanelFooter_default as DraggablePanelFooter, DraggablePanelHeader_default as DraggablePanelHeader, DraggableSideNav_default as DraggableSideNav, Drawer_default as Drawer, Dropdown_default as Dropdown, EditableText_default as EditableText, EmojiPicker_default as EmojiPicker, Empty_default as Empty, ErrorBoundary, FileTypeIcon_default as FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji_default as FluentEmoji, FontLoader_default as FontLoader, Footer_default as Footer, Form_default as Form, FormGroup_default as FormGroup, FormItem_default as FormItem, FormModal_default as FormModal, FormSubmitFooter_default as FormSubmitFooter, FormTitle_default as FormTitle, Grid_default as Grid, GroupAvatar_default as GroupAvatar, GuideCard_default as GuideCard, Header_default as Header, Highlighter_default as Highlighter, Hotkey_default as Hotkey, HotkeyInput_default as HotkeyInput, Icon_default as Icon, IconProvider, Image_default as Image, ImageSelect_default as ImageSelect, Input_default as Input, InputNumber_default as InputNumber, InputOPT_default as InputOPT, InputPassword_default as InputPassword, KeyMapEnum, Layout_default as Layout, LayoutFooter_default as LayoutFooter, LayoutHeader_default as LayoutHeader, LayoutMain_default as LayoutMain, LayoutSidebar_default as LayoutSidebar, LayoutSidebarInner_default as LayoutSidebarInner, LayoutToc_default as LayoutToc, List_default as List, ListItem_default as ListItem, Markdown_default as Markdown, MaskShadow_default as MaskShadow, MaterialFileTypeIcon_default as MaterialFileTypeIcon, Menu_default as Menu, Mermaid_default as Mermaid, Meta_default as Meta, Modal_default as Modal, PreviewGroup_default as PreviewGroup, ScrollShadow_default as ScrollShadow, SearchBar_default as SearchBar, SearchResultCards_default as SearchResultCards, Segmented_default as Segmented, Select_default$1 as Select, SideNav_default as SideNav, Skeleton_default as Skeleton, SkeletonAvatar_default as SkeletonAvatar, SkeletonBlock_default as SkeletonBlock, SkeletonButton_default as SkeletonButton, SkeletonParagraph_default as SkeletonParagraph, SkeletonTags_default as SkeletonTags, SkeletonTitle_default as SkeletonTitle, SliderWithInput_default as SliderWithInput, Snippet_default as Snippet, SortableList_default as SortableList, SyntaxHighlighter_default as SyntaxHighlighter, SyntaxMermaid_default as SyntaxMermaid, Tabs_default as Tabs, Tag_default as Tag, Text_default as Text, TextArea_default as TextArea, ThemeProvider_default as ThemeProvider, ThemeSwitch_default as ThemeSwitch, Toc_default as Toc, Tooltip_default as Tooltip, TooltipGroup_default as TooltipGroup, Typography_default as Typography, Video_default as Video, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn };
128
+ export { A_default as A, Accordion_default as Accordion, AccordionItem_default as AccordionItem, ActionIcon_default as ActionIcon, ActionIconGroup_default as ActionIconGroup, Alert_default as Alert, Select_default as AutoComplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Block_default as Block, Burger_default as Burger, Button_default as Button, Center_default as Center, CodeEditor_default as CodeEditor, Collapse_default as Collapse, ColorSwatches_default as ColorSwatches, ConfigProvider_default as ConfigProvider, CopyButton_default as CopyButton, DatePicker_default as DatePicker, DownloadButton_default as DownloadButton, DraggablePanel_default as DraggablePanel, DraggablePanelBody_default as DraggablePanelBody, DraggablePanelContainer_default as DraggablePanelContainer, DraggablePanelFooter_default as DraggablePanelFooter, DraggablePanelHeader_default as DraggablePanelHeader, DraggableSideNav_default as DraggableSideNav, Drawer_default as Drawer, Dropdown_default as Dropdown, EditableText_default as EditableText, EmojiPicker_default as EmojiPicker, Empty_default as Empty, ErrorBoundary, FileTypeIcon_default as FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji_default as FluentEmoji, FontLoader_default as FontLoader, Footer_default as Footer, Form_default as Form, FormGroup_default as FormGroup, FormItem_default as FormItem, FormModal_default as FormModal, FormSubmitFooter_default as FormSubmitFooter, FormTitle_default as FormTitle, Grid_default as Grid, GroupAvatar_default as GroupAvatar, GuideCard_default as GuideCard, Header_default as Header, Highlighter_default as Highlighter, Hotkey_default as Hotkey, HotkeyInput_default as HotkeyInput, I18nProvider, Icon_default as Icon, IconProvider, Image_default as Image, ImageSelect_default as ImageSelect, Input_default as Input, InputNumber_default as InputNumber, InputOPT_default as InputOPT, InputPassword_default as InputPassword, KeyMapEnum, Layout_default as Layout, LayoutFooter_default as LayoutFooter, LayoutHeader_default as LayoutHeader, LayoutMain_default as LayoutMain, LayoutSidebar_default as LayoutSidebar, LayoutSidebarInner_default as LayoutSidebarInner, LayoutToc_default as LayoutToc, List_default as List, ListItem_default as ListItem, I18nProvider as LobeUIProvider, Markdown_default as Markdown, MaskShadow_default as MaskShadow, MaterialFileTypeIcon_default as MaterialFileTypeIcon, Menu_default as Menu, Mermaid_default as Mermaid, Meta_default as Meta, Modal_default as Modal, MotionComponent, MotionProvider, PreviewGroup_default as PreviewGroup, ScrollShadow_default as ScrollShadow, SearchBar_default as SearchBar, SearchResultCards_default as SearchResultCards, Segmented_default as Segmented, Select_default$1 as Select, SideNav_default as SideNav, Skeleton_default as Skeleton, SkeletonAvatar_default as SkeletonAvatar, SkeletonBlock_default as SkeletonBlock, SkeletonButton_default as SkeletonButton, SkeletonParagraph_default as SkeletonParagraph, SkeletonTags_default as SkeletonTags, SkeletonTitle_default as SkeletonTitle, SliderWithInput_default as SliderWithInput, Snippet_default as Snippet, SortableList_default as SortableList, SyntaxHighlighter_default as SyntaxHighlighter, SyntaxMermaid_default as SyntaxMermaid, Tabs_default as Tabs, Tag_default as Tag, Text_default as Text, TextArea_default as TextArea, ThemeProvider_default as ThemeProvider, ThemeSwitch_default as ThemeSwitch, Toc_default as Toc, Tooltip_default as Tooltip, TooltipGroup_default as TooltipGroup, Typography_default as Typography, Video_default as Video, combineKeys, copyToClipboard, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, mermaidThemes, neutralColors, neutralColorsSwatches, preprocessMarkdownContent, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, useCdnFn, useMotionComponent, useTranslation };
@@ -1,6 +1,6 @@
1
1
  import { TypographyProps } from "../../Markdown/type.mjs";
2
2
  import "../../Markdown/index.mjs";
3
- import * as react22 from "react";
3
+ import * as react52 from "react";
4
4
  import { ReactNode } from "react";
5
5
  import { Pluggable } from "unified";
6
6
 
@@ -18,7 +18,7 @@ interface MdxProps extends Omit<TypographyProps, 'children'> {
18
18
  remarkPlugins?: Pluggable[];
19
19
  variant?: 'normal' | 'chat';
20
20
  }
21
- declare const Mdx: react22.NamedExoticComponent<MdxProps>;
21
+ declare const Mdx: react52.NamedExoticComponent<MdxProps>;
22
22
  //#endregion
23
23
  export { Mdx, MdxProps };
24
24
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { TabBarProps } from "./type.mjs";
2
- import * as react114 from "react";
2
+ import * as react115 from "react";
3
3
 
4
4
  //#region src/mobile/TabBar/TabBar.d.ts
5
- declare const TabBar: react114.NamedExoticComponent<TabBarProps>;
5
+ declare const TabBar: react115.NamedExoticComponent<TabBarProps>;
6
6
  //#endregion
7
7
  export { TabBar };
8
8
  //# sourceMappingURL=TabBar.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react0 from "react";
1
+ import * as react53 from "react";
2
2
  import { ComponentProps } from "react";
3
3
  import { LazyMotion } from "motion/react";
4
4
 
@@ -14,7 +14,7 @@ type LobeLazyMotionProps = Omit<MotionLazyMotionProps, 'features'> & {
14
14
  /**
15
15
  * A project-wide `LazyMotion` wrapper that provides a shared default `features` loader.
16
16
  */
17
- declare const LazyMotion$1: react0.NamedExoticComponent<LobeLazyMotionProps>;
17
+ declare const LazyMotion$1: react53.NamedExoticComponent<LobeLazyMotionProps>;
18
18
  //#endregion
19
19
  export { LazyMotion$1 as LazyMotion, LobeLazyMotionProps };
20
20
  //# sourceMappingURL=LazyMotion.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../Flex/type.mjs";
2
2
  import "../../Flex/index.mjs";
3
- import * as react5 from "react";
3
+ import * as react51 from "react";
4
4
  import { Ref } from "react";
5
5
  import { useControls, useCreateStore } from "leva";
6
6
 
@@ -10,7 +10,7 @@ interface StoryBookProps extends FlexboxProps {
10
10
  noPadding?: boolean;
11
11
  ref?: Ref<HTMLDivElement>;
12
12
  }
13
- declare const StoryBook: react5.NamedExoticComponent<StoryBookProps>;
13
+ declare const StoryBook: react51.NamedExoticComponent<StoryBookProps>;
14
14
  //#endregion
15
15
  export { StoryBook, StoryBookProps, useControls, useCreateStore };
16
16
  //# sourceMappingURL=index.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "3.4.6",
3
+ "version": "4.0.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -22,6 +22,32 @@
22
22
  "sideEffects": [
23
23
  "**/*.css"
24
24
  ],
25
+ "exports": {
26
+ ".": {
27
+ "types": "./es/index.d.mts",
28
+ "import": "./es/index.mjs"
29
+ },
30
+ "./i18n": {
31
+ "types": "./es/i18n/index.d.mts",
32
+ "import": "./es/i18n/index.mjs"
33
+ },
34
+ "./i18n/resources/*": {
35
+ "types": "./es/i18n/resources/*.d.mts",
36
+ "import": "./es/i18n/resources/*.mjs"
37
+ },
38
+ "./i18n/*": {
39
+ "types": "./es/i18n/*.d.mts",
40
+ "import": "./es/i18n/*.mjs"
41
+ },
42
+ "./es/*": {
43
+ "types": "./es/*.d.mts",
44
+ "import": "./es/*.mjs"
45
+ },
46
+ "./*": {
47
+ "types": "./*.d.ts",
48
+ "import": "./*.js"
49
+ }
50
+ },
25
51
  "main": "es/index.mjs",
26
52
  "module": "es/index.mjs",
27
53
  "types": "es/index.d.mts",