@lobehub/ui 4.4.4 → 4.5.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 (163) hide show
  1. package/es/Accordion/Accordion.d.mts +2 -2
  2. package/es/Accordion/AccordionItem.d.mts +2 -2
  3. package/es/Accordion/AccordionItem.mjs +2 -1
  4. package/es/Accordion/AccordionItem.mjs.map +1 -1
  5. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  6. package/es/Alert/Alert.d.mts +2 -2
  7. package/es/AutoComplete/Select.d.mts +2 -2
  8. package/es/Avatar/AvatarGroup/index.d.mts +2 -2
  9. package/es/Burger/Burger.d.mts +2 -2
  10. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  11. package/es/Collapse/Collapse.d.mts +2 -2
  12. package/es/ConfigProvider/index.d.mts +2 -2
  13. package/es/ContextMenu/ContextMenuHost.d.mts +8 -0
  14. package/es/ContextMenu/ContextMenuHost.mjs +66 -0
  15. package/es/ContextMenu/ContextMenuHost.mjs.map +1 -0
  16. package/es/ContextMenu/imperative.d.mts +2 -0
  17. package/es/ContextMenu/index.d.mts +4 -0
  18. package/es/ContextMenu/index.d.ts +1 -0
  19. package/es/ContextMenu/index.js +1 -0
  20. package/es/ContextMenu/index.mjs +4 -0
  21. package/es/ContextMenu/renderItems.mjs +141 -0
  22. package/es/ContextMenu/renderItems.mjs.map +1 -0
  23. package/es/ContextMenu/store.d.mts +10 -0
  24. package/es/ContextMenu/store.mjs +74 -0
  25. package/es/ContextMenu/store.mjs.map +1 -0
  26. package/es/ContextMenu/style.mjs +151 -0
  27. package/es/ContextMenu/style.mjs.map +1 -0
  28. package/es/CopyButton/CopyButton.d.mts +2 -2
  29. package/es/DatePicker/DatePicker.d.mts +2 -2
  30. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  31. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  32. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  33. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  34. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  35. package/es/Drawer/Drawer.d.mts +2 -2
  36. package/es/Dropdown/Dropdown.d.mts +2 -2
  37. package/es/EditableText/EditableText.d.mts +2 -2
  38. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  39. package/es/Flex/FlexBasic.d.mts +2 -2
  40. package/es/FontLoader/index.d.mts +2 -2
  41. package/es/Footer/Footer.d.mts +2 -2
  42. package/es/Form/components/FormGroup.d.mts +2 -2
  43. package/es/Form/components/FormItem.d.mts +2 -2
  44. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  45. package/es/FormModal/FormModal.d.mts +2 -2
  46. package/es/Header/Header.d.mts +2 -2
  47. package/es/Highlighter/FullFeatured.mjs +2 -1
  48. package/es/Highlighter/FullFeatured.mjs.map +1 -1
  49. package/es/Highlighter/Highlighter.d.mts +2 -2
  50. package/es/Highlighter/LangSelect.mjs +2 -1
  51. package/es/Highlighter/LangSelect.mjs.map +1 -1
  52. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  53. package/es/Hotkey/Hotkey.d.mts +2 -2
  54. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  55. package/es/Icon/Icon.d.mts +2 -2
  56. package/es/Icon/components/IconProvider.d.mts +3 -3
  57. package/es/Image/PreviewGroup.d.mts +2 -2
  58. package/es/ImageSelect/ImageSelect.d.mts +2 -2
  59. package/es/Input/Input.d.mts +2 -2
  60. package/es/Input/InputNumber.d.mts +2 -2
  61. package/es/Input/InputOPT.d.mts +2 -2
  62. package/es/Input/InputPassword.d.mts +2 -2
  63. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  64. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  65. package/es/Layout/components/LayoutMain.d.mts +2 -2
  66. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  67. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  68. package/es/Layout/components/LayoutToc.d.mts +2 -2
  69. package/es/List/ListItem/index.d.mts +2 -2
  70. package/es/List/ListItem/index.mjs +2 -4
  71. package/es/List/ListItem/index.mjs.map +1 -1
  72. package/es/Markdown/Markdown.d.mts +2 -2
  73. package/es/Markdown/Typography.d.mts +2 -2
  74. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  75. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  76. package/es/Menu/Menu.d.mts +2 -2
  77. package/es/Mermaid/FullFeatured.mjs +2 -1
  78. package/es/Mermaid/FullFeatured.mjs.map +1 -1
  79. package/es/Mermaid/Mermaid.d.mts +2 -2
  80. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  81. package/es/Modal/Modal.d.mts +2 -2
  82. package/es/Modal/ModalProvider.d.mts +13 -0
  83. package/es/Modal/ModalProvider.mjs +23 -0
  84. package/es/Modal/ModalProvider.mjs.map +1 -0
  85. package/es/Modal/ModalStackItem.mjs +44 -0
  86. package/es/Modal/ModalStackItem.mjs.map +1 -0
  87. package/es/Modal/RawModalStackItem.mjs +32 -0
  88. package/es/Modal/RawModalStackItem.mjs.map +1 -0
  89. package/es/Modal/imperative.d.mts +16 -0
  90. package/es/Modal/imperative.mjs +201 -0
  91. package/es/Modal/imperative.mjs.map +1 -0
  92. package/es/Modal/index.d.mts +4 -2
  93. package/es/Modal/index.mjs +3 -1
  94. package/es/Modal/type.d.mts +30 -1
  95. package/es/MotionProvider/index.d.mts +2 -2
  96. package/es/SearchBar/SearchBar.d.mts +2 -2
  97. package/es/Segmented/Segmented.d.mts +2 -2
  98. package/es/Select/Select.d.mts +2 -2
  99. package/es/SideNav/SideNav.d.mts +2 -2
  100. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  101. package/es/SortableList/components/DragHandle.d.mts +2 -2
  102. package/es/SortableList/components/SortableItem.d.mts +2 -2
  103. package/es/ThemeProvider/GlobalStyle/antdOverride.mjs +5 -3
  104. package/es/ThemeProvider/GlobalStyle/antdOverride.mjs.map +1 -1
  105. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  106. package/es/Toc/Toc.d.mts +2 -2
  107. package/es/Tooltip/TooltipPortal.mjs +1 -2
  108. package/es/Tooltip/TooltipPortal.mjs.map +1 -1
  109. package/es/Video/index.d.mts +2 -2
  110. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  111. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  112. package/es/awesome/Features/Features.d.mts +2 -2
  113. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  114. package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
  115. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  116. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  117. package/es/awesome/Hero/Hero.d.mts +2 -2
  118. package/es/awesome/Spline/Spine.d.mts +2 -2
  119. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  120. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  121. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  122. package/es/brand/LobeChat/index.d.mts +2 -2
  123. package/es/brand/LobeHub/index.d.mts +2 -2
  124. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  125. package/es/brand/LogoThree/index.d.mts +2 -2
  126. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  127. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  128. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  129. package/es/chat/ChatList/ChatList.d.mts +2 -2
  130. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  131. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  132. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  133. package/es/chat/MessageModal/MessageModal.d.mts +2 -2
  134. package/es/color/ColorScales/index.d.mts +2 -2
  135. package/es/color/CssVar/index.d.mts +2 -2
  136. package/es/hooks/useIsClient.mjs +15 -0
  137. package/es/hooks/useIsClient.mjs.map +1 -0
  138. package/es/i18n/context.d.mts +2 -2
  139. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  140. package/es/icons/lucideExtra/CreateBotIcon.d.mts +2 -2
  141. package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
  142. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +2 -2
  143. package/es/icons/lucideExtra/GroupBotIcon.d.mts +2 -2
  144. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +2 -2
  145. package/es/icons/lucideExtra/LeftClickIcon.d.mts +2 -2
  146. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  147. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  148. package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
  149. package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
  150. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +2 -2
  151. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
  152. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +2 -2
  153. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  154. package/es/index.d.mts +9 -3
  155. package/es/index.mjs +6 -1
  156. package/es/mdx/Mdx/index.d.mts +2 -2
  157. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  158. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  159. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  160. package/es/storybook/StoryBook/index.d.mts +2 -2
  161. package/es/utils/dom.mjs +12 -0
  162. package/es/utils/dom.mjs.map +1 -0
  163. package/package.json +2 -1
@@ -1,8 +1,8 @@
1
1
  import { TabBarProps } from "./type.mjs";
2
- import * as react107 from "react";
2
+ import * as react117 from "react";
3
3
 
4
4
  //#region src/mobile/TabBar/TabBar.d.ts
5
- declare const TabBar: react107.NamedExoticComponent<TabBarProps>;
5
+ declare const TabBar: react117.NamedExoticComponent<TabBarProps>;
6
6
  //#endregion
7
7
  export { TabBar };
8
8
  //# sourceMappingURL=TabBar.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../Flex/type.mjs";
2
2
  import "../../Flex/index.mjs";
3
- import * as react10 from "react";
3
+ import * as react12 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: react10.NamedExoticComponent<StoryBookProps>;
13
+ declare const StoryBook: react12.NamedExoticComponent<StoryBookProps>;
14
14
  //#endregion
15
15
  export { StoryBook, StoryBookProps, useControls, useCreateStore };
16
16
  //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,12 @@
1
+ //#region src/utils/dom.ts
2
+ const stopPropagation = (event) => {
3
+ event.stopPropagation();
4
+ };
5
+ const preventDefaultAndStopPropagation = (event) => {
6
+ event.preventDefault();
7
+ event.stopPropagation();
8
+ };
9
+
10
+ //#endregion
11
+ export { preventDefaultAndStopPropagation, stopPropagation };
12
+ //# sourceMappingURL=dom.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom.mjs","names":[],"sources":["../../src/utils/dom.ts"],"sourcesContent":["export const preventDefault = <\n T extends {\n preventDefault: () => void;\n },\n>(\n event: T,\n) => {\n event.preventDefault();\n};\n\nexport const stopPropagation = <\n T extends {\n stopPropagation: () => void;\n },\n>(\n event: T,\n) => {\n event.stopPropagation();\n};\n\nexport const preventDefaultAndStopPropagation = <\n T extends {\n preventDefault: () => void;\n stopPropagation: () => void;\n },\n>(\n event: T,\n) => {\n event.preventDefault();\n event.stopPropagation();\n};\n"],"mappings":";AAUA,MAAa,mBAKX,UACG;AACH,OAAM,iBAAiB;;AAGzB,MAAa,oCAMX,UACG;AACH,OAAM,gBAAgB;AACtB,OAAM,iBAAiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "4.4.4",
3
+ "version": "4.5.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -106,6 +106,7 @@
106
106
  },
107
107
  "dependencies": {
108
108
  "@ant-design/cssinjs": "^2.0.1",
109
+ "@base-ui/react": "^1.0.0",
109
110
  "@dnd-kit/core": "^6.3.1",
110
111
  "@dnd-kit/modifiers": "^9.0.0",
111
112
  "@dnd-kit/sortable": "^10.0.0",