@lobehub/ui 4.9.3 → 4.10.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 (165) hide show
  1. package/es/Accordion/Accordion.d.mts +2 -2
  2. package/es/Accordion/AccordionItem.d.mts +2 -2
  3. package/es/ActionIcon/ActionIcon.d.mts +2 -2
  4. package/es/Alert/Alert.d.mts +2 -2
  5. package/es/AutoComplete/Select.d.mts +2 -2
  6. package/es/Burger/Burger.d.mts +2 -2
  7. package/es/CodeEditor/CodeEditor.d.mts +2 -2
  8. package/es/Collapse/Collapse.d.mts +2 -2
  9. package/es/ContextMenu/ContextMenuHost.d.mts +2 -2
  10. package/es/CopyButton/CopyButton.d.mts +2 -2
  11. package/es/DatePicker/DatePicker.d.mts +2 -2
  12. package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
  13. package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
  14. package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
  15. package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
  16. package/es/DraggablePanel/style.mjs +1 -1
  17. package/es/DraggablePanel/style.mjs.map +1 -1
  18. package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
  19. package/es/Drawer/Drawer.d.mts +2 -2
  20. package/es/Dropdown/Dropdown.d.mts +9 -2
  21. package/es/Dropdown/Dropdown.mjs +6 -0
  22. package/es/Dropdown/Dropdown.mjs.map +1 -1
  23. package/es/DropdownMenu/DropdownMenu.d.mts +2 -2
  24. package/es/DropdownMenu/DropdownMenu.mjs +20 -36
  25. package/es/DropdownMenu/DropdownMenu.mjs.map +1 -1
  26. package/es/DropdownMenu/type.d.mts +2 -1
  27. package/es/EditableText/EditableText.d.mts +2 -2
  28. package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
  29. package/es/Flex/FlexBasic.d.mts +2 -2
  30. package/es/FontLoader/index.d.mts +2 -2
  31. package/es/Footer/Footer.d.mts +2 -2
  32. package/es/Form/components/FormGroup.d.mts +2 -2
  33. package/es/Form/components/FormItem.d.mts +2 -2
  34. package/es/Form/components/FormSubmitFooter.d.mts +2 -2
  35. package/es/FormModal/FormModal.d.mts +2 -2
  36. package/es/GuideCard/GuideCard.d.mts +2 -2
  37. package/es/Header/Header.d.mts +2 -2
  38. package/es/Highlighter/Highlighter.d.mts +2 -2
  39. package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
  40. package/es/Hotkey/Hotkey.d.mts +2 -2
  41. package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
  42. package/es/Icon/Icon.d.mts +2 -2
  43. package/es/Icon/components/IconProvider.d.mts +3 -3
  44. package/es/Image/PreviewGroup.d.mts +2 -2
  45. package/es/Input/Input.d.mts +2 -2
  46. package/es/Input/InputNumber.d.mts +2 -2
  47. package/es/Input/InputOPT.d.mts +2 -2
  48. package/es/Input/InputPassword.d.mts +2 -2
  49. package/es/Input/TextArea.d.mts +2 -2
  50. package/es/Layout/components/LayoutFooter.d.mts +2 -2
  51. package/es/Layout/components/LayoutHeader.d.mts +2 -2
  52. package/es/Layout/components/LayoutMain.d.mts +2 -2
  53. package/es/Layout/components/LayoutSidebar.d.mts +2 -2
  54. package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
  55. package/es/Layout/components/LayoutToc.d.mts +2 -2
  56. package/es/List/ListItem/index.d.mts +2 -2
  57. package/es/Markdown/Markdown.d.mts +2 -2
  58. package/es/Markdown/Typography.d.mts +2 -2
  59. package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
  60. package/es/MaskShadow/MaskShadow.d.mts +2 -2
  61. package/es/Menu/Menu.d.mts +2 -2
  62. package/es/Menu/sharedStyle.mjs +56 -10
  63. package/es/Menu/sharedStyle.mjs.map +1 -1
  64. package/es/Mermaid/Mermaid.d.mts +2 -2
  65. package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
  66. package/es/Modal/Modal.d.mts +2 -2
  67. package/es/Modal/ModalProvider.d.mts +2 -2
  68. package/es/MotionProvider/index.d.mts +2 -2
  69. package/es/Popover/ArrowIcon.mjs +22 -0
  70. package/es/Popover/ArrowIcon.mjs.map +1 -0
  71. package/es/Popover/Popover.d.mts +9 -0
  72. package/es/Popover/Popover.mjs +20 -0
  73. package/es/Popover/Popover.mjs.map +1 -0
  74. package/es/Popover/PopoverGroup.d.mts +11 -0
  75. package/es/Popover/PopoverGroup.mjs +96 -0
  76. package/es/Popover/PopoverGroup.mjs.map +1 -0
  77. package/es/Popover/PopoverInGroup.mjs +55 -0
  78. package/es/Popover/PopoverInGroup.mjs.map +1 -0
  79. package/es/Popover/PopoverPortal.mjs +45 -0
  80. package/es/Popover/PopoverPortal.mjs.map +1 -0
  81. package/es/Popover/PopoverStandalone.mjs +166 -0
  82. package/es/Popover/PopoverStandalone.mjs.map +1 -0
  83. package/es/Popover/groupContext.d.mts +14 -0
  84. package/es/Popover/groupContext.mjs +11 -0
  85. package/es/Popover/groupContext.mjs.map +1 -0
  86. package/es/Popover/index.d.mts +5 -0
  87. package/es/Popover/index.d.ts +1 -0
  88. package/es/Popover/index.js +1 -0
  89. package/es/Popover/index.mjs +5 -0
  90. package/es/Popover/parseTrigger.d.mts +14 -0
  91. package/es/Popover/parseTrigger.mjs +18 -0
  92. package/es/Popover/parseTrigger.mjs.map +1 -0
  93. package/es/Popover/style.mjs +218 -0
  94. package/es/Popover/style.mjs.map +1 -0
  95. package/es/Popover/type.d.mts +112 -0
  96. package/es/Popover/useMergedPopoverProps.mjs +88 -0
  97. package/es/Popover/useMergedPopoverProps.mjs.map +1 -0
  98. package/es/SearchBar/SearchBar.d.mts +2 -2
  99. package/es/Segmented/Segmented.d.mts +2 -2
  100. package/es/Select/Select.d.mts +2 -2
  101. package/es/SideNav/SideNav.d.mts +2 -2
  102. package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
  103. package/es/SortableList/components/DragHandle.d.mts +2 -2
  104. package/es/SortableList/components/SortableItem.d.mts +2 -2
  105. package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
  106. package/es/Toc/Toc.d.mts +2 -2
  107. package/es/Tooltip/TooltipGroup.mjs +2 -2
  108. package/es/Tooltip/TooltipGroup.mjs.map +1 -1
  109. package/es/Tooltip/type.d.mts +2 -2
  110. package/es/Tooltip/useTooltipFloating.mjs +2 -2
  111. package/es/Tooltip/useTooltipFloating.mjs.map +1 -1
  112. package/es/Video/index.d.mts +2 -2
  113. package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
  114. package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
  115. package/es/awesome/Features/Features.d.mts +2 -2
  116. package/es/awesome/Giscus/Giscus.d.mts +2 -2
  117. package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
  118. package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
  119. package/es/awesome/Hero/Hero.d.mts +2 -2
  120. package/es/awesome/Spline/Spine.d.mts +2 -2
  121. package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
  122. package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
  123. package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
  124. package/es/brand/LobeChat/index.d.mts +2 -2
  125. package/es/brand/LobeHub/index.d.mts +2 -2
  126. package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
  127. package/es/brand/LogoThree/index.d.mts +2 -2
  128. package/es/chat/BackBottom/BackBottom.d.mts +2 -2
  129. package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
  130. package/es/chat/ChatItem/ChatItem.d.mts +2 -2
  131. package/es/chat/ChatList/ChatList.d.mts +2 -2
  132. package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
  133. package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
  134. package/es/chat/MessageInput/MessageInput.d.mts +2 -2
  135. package/es/color/ColorScales/index.d.mts +2 -2
  136. package/es/color/CssVar/index.d.mts +2 -2
  137. package/es/i18n/context.d.mts +2 -2
  138. package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
  139. package/es/icons/lucideExtra/CreateBotIcon.d.mts +2 -2
  140. package/es/icons/lucideExtra/DiscordIcon.d.mts +2 -2
  141. package/es/icons/lucideExtra/GlobeOffIcon.d.mts +2 -2
  142. package/es/icons/lucideExtra/GroupBotIcon.d.mts +2 -2
  143. package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +2 -2
  144. package/es/icons/lucideExtra/LeftClickIcon.d.mts +2 -2
  145. package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
  146. package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
  147. package/es/icons/lucideExtra/ProviderIcon.d.mts +2 -2
  148. package/es/icons/lucideExtra/RightClickIcon.d.mts +2 -2
  149. package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
  150. package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +2 -2
  151. package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +2 -2
  152. package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
  153. package/es/index.d.mts +6 -1
  154. package/es/index.mjs +4 -1
  155. package/es/mdx/Mdx/index.d.mts +2 -2
  156. package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
  157. package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
  158. package/es/mobile/TabBar/TabBar.d.mts +2 -2
  159. package/es/storybook/StoryBook/index.d.mts +2 -2
  160. package/es/utils/placement.d.mts +31 -0
  161. package/es/utils/placement.mjs +100 -0
  162. package/es/utils/placement.mjs.map +1 -0
  163. package/package.json +1 -1
  164. package/es/Tooltip/antdPlacementToFloating.mjs +0 -27
  165. package/es/Tooltip/antdPlacementToFloating.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { FormModalProps } from "./type.mjs";
2
- import * as react51 from "react";
2
+ import * as react12 from "react";
3
3
 
4
4
  //#region src/FormModal/FormModal.d.ts
5
- declare const FormModal: react51.NamedExoticComponent<FormModalProps>;
5
+ declare const FormModal: react12.NamedExoticComponent<FormModalProps>;
6
6
  //#endregion
7
7
  export { FormModal };
8
8
  //# sourceMappingURL=FormModal.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { GuideCardProps } from "./type.mjs";
2
- import * as react110 from "react";
2
+ import * as react112 from "react";
3
3
 
4
4
  //#region src/GuideCard/GuideCard.d.ts
5
- declare const GuideCard: react110.NamedExoticComponent<GuideCardProps>;
5
+ declare const GuideCard: react112.NamedExoticComponent<GuideCardProps>;
6
6
  //#endregion
7
7
  export { GuideCard };
8
8
  //# sourceMappingURL=GuideCard.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HeaderProps } from "./type.mjs";
2
- import * as react53 from "react";
2
+ import * as react68 from "react";
3
3
 
4
4
  //#region src/Header/Header.d.ts
5
- declare const Header: react53.NamedExoticComponent<HeaderProps>;
5
+ declare const Header: react68.NamedExoticComponent<HeaderProps>;
6
6
  //#endregion
7
7
  export { Header };
8
8
  //# sourceMappingURL=Header.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HighlighterProps } from "./type.mjs";
2
- import * as react46 from "react";
2
+ import * as react64 from "react";
3
3
 
4
4
  //#region src/Highlighter/Highlighter.d.ts
5
- declare const Highlighter: react46.NamedExoticComponent<HighlighterProps>;
5
+ declare const Highlighter: react64.NamedExoticComponent<HighlighterProps>;
6
6
  //#endregion
7
7
  export { Highlighter };
8
8
  //# sourceMappingURL=Highlighter.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SyntaxHighlighterProps } from "../type.mjs";
2
- import * as react47 from "react";
2
+ import * as react65 from "react";
3
3
 
4
4
  //#region src/Highlighter/SyntaxHighlighter/index.d.ts
5
- declare const SyntaxHighlighter: react47.NamedExoticComponent<SyntaxHighlighterProps>;
5
+ declare const SyntaxHighlighter: react65.NamedExoticComponent<SyntaxHighlighterProps>;
6
6
  //#endregion
7
7
  export { SyntaxHighlighter };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HotkeyProps } from "./type.mjs";
2
- import * as react44 from "react";
2
+ import * as react66 from "react";
3
3
 
4
4
  //#region src/Hotkey/Hotkey.d.ts
5
- declare const Hotkey: react44.NamedExoticComponent<HotkeyProps>;
5
+ declare const Hotkey: react66.NamedExoticComponent<HotkeyProps>;
6
6
  //#endregion
7
7
  export { Hotkey };
8
8
  //# sourceMappingURL=Hotkey.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { HotkeyInputProps } from "./type.mjs";
2
- import * as react37 from "react";
2
+ import * as react63 from "react";
3
3
 
4
4
  //#region src/HotkeyInput/HotkeyInput.d.ts
5
- declare const HotkeyInput: react37.NamedExoticComponent<HotkeyInputProps>;
5
+ declare const HotkeyInput: react63.NamedExoticComponent<HotkeyInputProps>;
6
6
  //#endregion
7
7
  export { HotkeyInput };
8
8
  //# sourceMappingURL=HotkeyInput.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { IconProps } from "./type.mjs";
2
- import * as react33 from "react";
2
+ import * as react61 from "react";
3
3
 
4
4
  //#region src/Icon/Icon.d.ts
5
- declare const Icon: react33.NamedExoticComponent<IconProps>;
5
+ declare const Icon: react61.NamedExoticComponent<IconProps>;
6
6
  //#endregion
7
7
  export { Icon };
8
8
  //# sourceMappingURL=Icon.d.mts.map
@@ -1,11 +1,11 @@
1
1
  import { IconProps } from "../type.mjs";
2
- import * as react34 from "react";
2
+ import * as react59 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/Icon/components/IconProvider.d.ts
6
6
  type IconContentConfig = Omit<IconProps, 'icon' | 'ref'>;
7
- declare const IconContext: react34.Context<IconContentConfig>;
8
- declare const IconProvider: react34.NamedExoticComponent<{
7
+ declare const IconContext: react59.Context<IconContentConfig>;
8
+ declare const IconProvider: react59.NamedExoticComponent<{
9
9
  children: ReactNode;
10
10
  config?: IconContentConfig;
11
11
  }>;
@@ -1,8 +1,8 @@
1
1
  import { PreviewGroupProps } from "./type.mjs";
2
- import * as react36 from "react";
2
+ import * as react62 from "react";
3
3
 
4
4
  //#region src/Image/PreviewGroup.d.ts
5
- declare const PreviewGroup: react36.NamedExoticComponent<PreviewGroupProps>;
5
+ declare const PreviewGroup: react62.NamedExoticComponent<PreviewGroupProps>;
6
6
  //#endregion
7
7
  export { PreviewGroup };
8
8
  //# sourceMappingURL=PreviewGroup.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputProps } from "./type.mjs";
2
- import * as react111 from "react";
2
+ import * as react113 from "react";
3
3
 
4
4
  //#region src/Input/Input.d.ts
5
- declare const Input: react111.NamedExoticComponent<InputProps>;
5
+ declare const Input: react113.NamedExoticComponent<InputProps>;
6
6
  //#endregion
7
7
  export { Input };
8
8
  //# sourceMappingURL=Input.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputNumberProps } from "./type.mjs";
2
- import * as react112 from "react";
2
+ import * as react114 from "react";
3
3
 
4
4
  //#region src/Input/InputNumber.d.ts
5
- declare const InputNumber: react112.NamedExoticComponent<InputNumberProps>;
5
+ declare const InputNumber: react114.NamedExoticComponent<InputNumberProps>;
6
6
  //#endregion
7
7
  export { InputNumber };
8
8
  //# sourceMappingURL=InputNumber.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputOPTProps } from "./type.mjs";
2
- import * as react113 from "react";
2
+ import * as react115 from "react";
3
3
 
4
4
  //#region src/Input/InputOPT.d.ts
5
- declare const InputOPT: react113.NamedExoticComponent<InputOPTProps>;
5
+ declare const InputOPT: react115.NamedExoticComponent<InputOPTProps>;
6
6
  //#endregion
7
7
  export { InputOPT };
8
8
  //# sourceMappingURL=InputOPT.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { InputPasswordProps } from "./type.mjs";
2
- import * as react114 from "react";
2
+ import * as react116 from "react";
3
3
 
4
4
  //#region src/Input/InputPassword.d.ts
5
- declare const InputPassword: react114.NamedExoticComponent<InputPasswordProps>;
5
+ declare const InputPassword: react116.NamedExoticComponent<InputPasswordProps>;
6
6
  //#endregion
7
7
  export { InputPassword };
8
8
  //# sourceMappingURL=InputPassword.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { TextAreaProps } from "./type.mjs";
2
- import * as react115 from "react";
2
+ import * as react117 from "react";
3
3
 
4
4
  //#region src/Input/TextArea.d.ts
5
- declare const TextArea: react115.NamedExoticComponent<TextAreaProps>;
5
+ declare const TextArea: react117.NamedExoticComponent<TextAreaProps>;
6
6
  //#endregion
7
7
  export { TextArea };
8
8
  //# sourceMappingURL=TextArea.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
2
  import "../../index.mjs";
3
- import * as react39 from "react";
3
+ import * as react53 from "react";
4
4
 
5
5
  //#region src/Layout/components/LayoutFooter.d.ts
6
- declare const LayoutFooter: react39.NamedExoticComponent<DivProps>;
6
+ declare const LayoutFooter: react53.NamedExoticComponent<DivProps>;
7
7
  //#endregion
8
8
  export { LayoutFooter };
9
9
  //# sourceMappingURL=LayoutFooter.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutHeaderProps } from "../type.mjs";
2
- import * as react38 from "react";
2
+ import * as react54 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutHeader.d.ts
5
- declare const LayoutHeader: react38.NamedExoticComponent<LayoutHeaderProps>;
5
+ declare const LayoutHeader: react54.NamedExoticComponent<LayoutHeaderProps>;
6
6
  //#endregion
7
7
  export { LayoutHeader };
8
8
  //# sourceMappingURL=LayoutHeader.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { DivProps } from "../../types/index.mjs";
2
2
  import "../../index.mjs";
3
- import * as react41 from "react";
3
+ import * as react55 from "react";
4
4
 
5
5
  //#region src/Layout/components/LayoutMain.d.ts
6
- declare const LayoutMain: react41.NamedExoticComponent<DivProps>;
6
+ declare const LayoutMain: react55.NamedExoticComponent<DivProps>;
7
7
  //#endregion
8
8
  export { LayoutMain };
9
9
  //# sourceMappingURL=LayoutMain.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutSidebarProps } from "../type.mjs";
2
- import * as react40 from "react";
2
+ import * as react56 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutSidebar.d.ts
5
- declare const LayoutSidebar: react40.NamedExoticComponent<LayoutSidebarProps>;
5
+ declare const LayoutSidebar: react56.NamedExoticComponent<LayoutSidebarProps>;
6
6
  //#endregion
7
7
  export { LayoutSidebar };
8
8
  //# sourceMappingURL=LayoutSidebar.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutSidebarInnerProps } from "../type.mjs";
2
- import * as react42 from "react";
2
+ import * as react57 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutSidebarInner.d.ts
5
- declare const LayoutSidebarInner: react42.NamedExoticComponent<LayoutSidebarInnerProps>;
5
+ declare const LayoutSidebarInner: react57.NamedExoticComponent<LayoutSidebarInnerProps>;
6
6
  //#endregion
7
7
  export { LayoutSidebarInner };
8
8
  //# sourceMappingURL=LayoutSidebarInner.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { LayoutTocProps } from "../type.mjs";
2
- import * as react43 from "react";
2
+ import * as react58 from "react";
3
3
 
4
4
  //#region src/Layout/components/LayoutToc.d.ts
5
- declare const LayoutToc: react43.NamedExoticComponent<LayoutTocProps>;
5
+ declare const LayoutToc: react58.NamedExoticComponent<LayoutTocProps>;
6
6
  //#endregion
7
7
  export { LayoutToc };
8
8
  //# sourceMappingURL=LayoutToc.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ListItemProps } from "../type.mjs";
2
- import * as react30 from "react";
2
+ import * as react50 from "react";
3
3
 
4
4
  //#region src/List/ListItem/index.d.ts
5
- declare const ListItem: react30.NamedExoticComponent<ListItemProps>;
5
+ declare const ListItem: react50.NamedExoticComponent<ListItemProps>;
6
6
  //#endregion
7
7
  export { ListItem };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MarkdownProps } from "./type.mjs";
2
- import * as react29 from "react";
2
+ import * as react52 from "react";
3
3
 
4
4
  //#region src/Markdown/Markdown.d.ts
5
- declare const Markdown: react29.NamedExoticComponent<MarkdownProps>;
5
+ declare const Markdown: react52.NamedExoticComponent<MarkdownProps>;
6
6
  //#endregion
7
7
  export { Markdown };
8
8
  //# sourceMappingURL=Markdown.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { TypographyProps } from "./type.mjs";
2
- import * as react28 from "react";
2
+ import * as react51 from "react";
3
3
 
4
4
  //#region src/Markdown/Typography.d.ts
5
- declare const Typography: react28.NamedExoticComponent<TypographyProps>;
5
+ declare const Typography: react51.NamedExoticComponent<TypographyProps>;
6
6
  //#endregion
7
7
  export { Typography };
8
8
  //# sourceMappingURL=Typography.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { FlexboxProps } from "../../../Flex/type.mjs";
2
2
  import "../../../Flex/index.mjs";
3
- import * as react4 from "react";
3
+ import * as react3 from "react";
4
4
  import { Ref } from "react";
5
5
 
6
6
  //#region src/Markdown/components/SearchResultCards/index.d.ts
@@ -14,7 +14,7 @@ interface SearchResultCardsProps extends FlexboxProps {
14
14
  dataSource: string[] | SearchResultItem[];
15
15
  ref?: Ref<HTMLDivElement>;
16
16
  }
17
- declare const SearchResultCards: react4.NamedExoticComponent<SearchResultCardsProps>;
17
+ declare const SearchResultCards: react3.NamedExoticComponent<SearchResultCardsProps>;
18
18
  //#endregion
19
19
  export { SearchResultCards, SearchResultCardsProps };
20
20
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MaskShadowProps } from "./type.mjs";
2
- import * as react26 from "react";
2
+ import * as react46 from "react";
3
3
 
4
4
  //#region src/MaskShadow/MaskShadow.d.ts
5
- declare const MaskShadow: react26.NamedExoticComponent<MaskShadowProps>;
5
+ declare const MaskShadow: react46.NamedExoticComponent<MaskShadowProps>;
6
6
  //#endregion
7
7
  export { MaskShadow };
8
8
  //# sourceMappingURL=MaskShadow.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { MenuProps } from "./type.mjs";
2
- import * as react27 from "react";
2
+ import * as react41 from "react";
3
3
 
4
4
  //#region src/Menu/Menu.d.ts
5
- declare const Menu: react27.NamedExoticComponent<MenuProps<unknown>>;
5
+ declare const Menu: react41.NamedExoticComponent<MenuProps<unknown>>;
6
6
  //#endregion
7
7
  export { Menu };
8
8
  //# sourceMappingURL=Menu.d.mts.map
@@ -117,23 +117,69 @@ const styles = createStaticStyles(({ css: css$1, cssVar: cssVar$1 }) => ({
117
117
  0 0 15px 0 #00000008,
118
118
  0 2px 30px 0 #00000014,
119
119
  0 0 0 1px ${cssVar$1.colorBorder} inset;
120
+ `,
121
+ positioner: css$1`
122
+ z-index: 1100;
123
+
124
+ &[data-hover-trigger] {
125
+ --lobe-dropdown-animation-duration: 140ms;
126
+ --lobe-dropdown-animation-translate: 6px;
127
+ --lobe-dropdown-animation-scale: 0.98;
128
+ --lobe-dropdown-animation-ease-in: ease-in;
129
+ --lobe-dropdown-animation-ease-out: ${cssVar$1.motionEaseOut};
130
+ --lobe-dropdown-translate-x: 0;
131
+ --lobe-dropdown-translate-y: calc(var(--lobe-dropdown-animation-translate) * -1);
132
+
133
+ & > * {
134
+ will-change: opacity, transform;
135
+ animation: none;
136
+ }
120
137
 
121
- animation: context-menu-fade-in 150ms ${cssVar$1.motionEaseOut};
138
+ &[data-open] > * {
139
+ transform: translate3d(0, 0, 0) scale(1);
140
+ opacity: 1;
141
+ transition:
142
+ opacity var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-out),
143
+ transform var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-out);
144
+ }
122
145
 
123
- @keyframes context-menu-fade-in {
124
- from {
125
- transform: scale(0.96);
146
+ &[data-open] > *[data-starting-style] {
147
+ transform: translate3d(
148
+ var(--lobe-dropdown-translate-x),
149
+ var(--lobe-dropdown-translate-y),
150
+ 0
151
+ )
152
+ scale(var(--lobe-dropdown-animation-scale));
126
153
  opacity: 0;
127
154
  }
128
155
 
129
- to {
130
- transform: scale(1);
131
- opacity: 1;
156
+ &[data-closed] > * {
157
+ transform: translate3d(
158
+ var(--lobe-dropdown-translate-x),
159
+ var(--lobe-dropdown-translate-y),
160
+ 0
161
+ )
162
+ scale(var(--lobe-dropdown-animation-scale));
163
+ opacity: 0;
164
+ transition:
165
+ opacity var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-in),
166
+ transform var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-in);
167
+ }
168
+
169
+ &[data-placement='top'],
170
+ &[data-placement='topCenter'],
171
+ &[data-placement='topLeft'],
172
+ &[data-placement='topRight'] {
173
+ --lobe-dropdown-translate-y: var(--lobe-dropdown-animation-translate);
174
+ }
175
+
176
+ &[data-placement='bottom'],
177
+ &[data-placement='bottomCenter'],
178
+ &[data-placement='bottomLeft'],
179
+ &[data-placement='bottomRight'] {
180
+ --lobe-dropdown-translate-y: calc(var(--lobe-dropdown-animation-translate) * -1);
132
181
  }
133
182
  }
134
- `,
135
- positioner: css$1`
136
- z-index: 1100;
137
183
  `,
138
184
  separator: css$1`
139
185
  height: 1px;
@@ -1 +1 @@
1
- {"version":3,"file":"sharedStyle.mjs","names":["cssVar"],"sources":["../../src/Menu/sharedStyle.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n danger: css`\n color: ${cssVar.colorError} !important;\n\n &:hover {\n background: ${cssVar.colorErrorBg} !important;\n }\n `,\n\n empty: css`\n cursor: default;\n font-style: italic;\n color: ${cssVar.colorTextTertiary};\n `,\n\n extra: css`\n margin-inline-start: auto;\n padding-inline-start: 16px;\n font-size: 12px;\n color: ${cssVar.colorTextTertiary};\n `,\n\n groupLabel: css`\n user-select: none;\n\n padding-block: 8px 4px;\n padding-inline: 12px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n color: ${cssVar.colorTextTertiary};\n text-transform: uppercase;\n `,\n\n icon: css`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n width: 16px;\n height: 16px;\n margin-inline-end: 8px;\n `,\n\n item: css`\n cursor: pointer;\n user-select: none;\n\n position: relative;\n\n overflow: hidden;\n display: flex;\n align-items: center;\n\n width: 100%;\n min-height: 36px;\n padding-block: 8px;\n padding-inline: 12px;\n border-radius: ${cssVar.borderRadius};\n\n font-size: 14px;\n line-height: 20px;\n color: ${cssVar.colorText};\n\n outline: none;\n\n transition: all 150ms ${cssVar.motionEaseOut};\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n\n &:active {\n background: ${cssVar.colorFillSecondary};\n }\n\n &[data-disabled] {\n cursor: not-allowed;\n color: ${cssVar.colorTextDisabled};\n opacity: 0.5;\n\n &:hover {\n background: transparent;\n }\n }\n\n &[data-highlighted]:not([data-disabled]) {\n background: ${cssVar.colorFillTertiary};\n }\n\n &[data-state='open']:not([data-disabled]),\n &[data-open]:not([data-disabled]),\n &[aria-expanded='true']:not([data-disabled]) {\n background: ${cssVar.colorFillTertiary};\n }\n `,\n\n itemContent: css`\n display: flex;\n flex: 1;\n gap: 0;\n align-items: center;\n `,\n\n label: css`\n overflow: hidden;\n flex: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n\n popup: css`\n min-width: 120px;\n padding: 4px;\n border-radius: ${cssVar.borderRadius};\n\n background: ${cssVar.colorBgElevated};\n outline: none;\n box-shadow:\n 0 0 15px 0 #00000008,\n 0 2px 30px 0 #00000014,\n 0 0 0 1px ${cssVar.colorBorder} inset;\n\n animation: context-menu-fade-in 150ms ${cssVar.motionEaseOut};\n\n @keyframes context-menu-fade-in {\n from {\n transform: scale(0.96);\n opacity: 0;\n }\n\n to {\n transform: scale(1);\n opacity: 1;\n }\n }\n `,\n positioner: css`\n z-index: 1100;\n `,\n\n separator: css`\n height: 1px;\n margin-block: 4px;\n margin-inline: 0;\n background: ${cssVar.colorBorder};\n `,\n\n submenuArrow: css`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n width: 20px;\n height: 20px;\n margin-inline-start: auto;\n padding-inline-start: 8px;\n `,\n}));\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,wBAAc;CAC7D,QAAQ,KAAG;aACAA,SAAO,WAAW;;;oBAGXA,SAAO,aAAa;;;CAItC,OAAO,KAAG;;;aAGCA,SAAO,kBAAkB;;CAGpC,OAAO,KAAG;;;;aAICA,SAAO,kBAAkB;;CAGpC,YAAY,KAAG;;;;;;;;;aASJA,SAAO,kBAAkB;;;CAIpC,MAAM,KAAG;;;;;;;;;;CAWT,MAAM,KAAG;;;;;;;;;;;;;;qBAcUA,SAAO,aAAa;;;;aAI5BA,SAAO,UAAU;;;;4BAIFA,SAAO,cAAc;;;oBAG7BA,SAAO,kBAAkB;;;;oBAIzBA,SAAO,mBAAmB;;;;;eAK/BA,SAAO,kBAAkB;;;;;;;;;oBASpBA,SAAO,kBAAkB;;;;;;oBAMzBA,SAAO,kBAAkB;;;CAI3C,aAAa,KAAG;;;;;;CAOhB,OAAO,KAAG;;;;;;CAOV,OAAO,KAAG;;;qBAGSA,SAAO,aAAa;;kBAEvBA,SAAO,gBAAgB;;;;;kBAKvBA,SAAO,YAAY;;4CAEOA,SAAO,cAAc;;;;;;;;;;;;;;CAc/D,YAAY,KAAG;;;CAIf,WAAW,KAAG;;;;kBAIEA,SAAO,YAAY;;CAGnC,cAAc,KAAG;;;;;;;;;;;CAWlB,EAAE"}
1
+ {"version":3,"file":"sharedStyle.mjs","names":["cssVar"],"sources":["../../src/Menu/sharedStyle.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n danger: css`\n color: ${cssVar.colorError} !important;\n\n &:hover {\n background: ${cssVar.colorErrorBg} !important;\n }\n `,\n\n empty: css`\n cursor: default;\n font-style: italic;\n color: ${cssVar.colorTextTertiary};\n `,\n\n extra: css`\n margin-inline-start: auto;\n padding-inline-start: 16px;\n font-size: 12px;\n color: ${cssVar.colorTextTertiary};\n `,\n\n groupLabel: css`\n user-select: none;\n\n padding-block: 8px 4px;\n padding-inline: 12px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n color: ${cssVar.colorTextTertiary};\n text-transform: uppercase;\n `,\n\n icon: css`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n width: 16px;\n height: 16px;\n margin-inline-end: 8px;\n `,\n\n item: css`\n cursor: pointer;\n user-select: none;\n\n position: relative;\n\n overflow: hidden;\n display: flex;\n align-items: center;\n\n width: 100%;\n min-height: 36px;\n padding-block: 8px;\n padding-inline: 12px;\n border-radius: ${cssVar.borderRadius};\n\n font-size: 14px;\n line-height: 20px;\n color: ${cssVar.colorText};\n\n outline: none;\n\n transition: all 150ms ${cssVar.motionEaseOut};\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n\n &:active {\n background: ${cssVar.colorFillSecondary};\n }\n\n &[data-disabled] {\n cursor: not-allowed;\n color: ${cssVar.colorTextDisabled};\n opacity: 0.5;\n\n &:hover {\n background: transparent;\n }\n }\n\n &[data-highlighted]:not([data-disabled]) {\n background: ${cssVar.colorFillTertiary};\n }\n\n &[data-state='open']:not([data-disabled]),\n &[data-open]:not([data-disabled]),\n &[aria-expanded='true']:not([data-disabled]) {\n background: ${cssVar.colorFillTertiary};\n }\n `,\n\n itemContent: css`\n display: flex;\n flex: 1;\n gap: 0;\n align-items: center;\n `,\n\n label: css`\n overflow: hidden;\n flex: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n\n popup: css`\n min-width: 120px;\n padding: 4px;\n border-radius: ${cssVar.borderRadius};\n\n background: ${cssVar.colorBgElevated};\n outline: none;\n box-shadow:\n 0 0 15px 0 #00000008,\n 0 2px 30px 0 #00000014,\n 0 0 0 1px ${cssVar.colorBorder} inset;\n `,\n positioner: css`\n z-index: 1100;\n\n &[data-hover-trigger] {\n --lobe-dropdown-animation-duration: 140ms;\n --lobe-dropdown-animation-translate: 6px;\n --lobe-dropdown-animation-scale: 0.98;\n --lobe-dropdown-animation-ease-in: ease-in;\n --lobe-dropdown-animation-ease-out: ${cssVar.motionEaseOut};\n --lobe-dropdown-translate-x: 0;\n --lobe-dropdown-translate-y: calc(var(--lobe-dropdown-animation-translate) * -1);\n\n & > * {\n will-change: opacity, transform;\n animation: none;\n }\n\n &[data-open] > * {\n transform: translate3d(0, 0, 0) scale(1);\n opacity: 1;\n transition:\n opacity var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-out),\n transform var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-out);\n }\n\n &[data-open] > *[data-starting-style] {\n transform: translate3d(\n var(--lobe-dropdown-translate-x),\n var(--lobe-dropdown-translate-y),\n 0\n )\n scale(var(--lobe-dropdown-animation-scale));\n opacity: 0;\n }\n\n &[data-closed] > * {\n transform: translate3d(\n var(--lobe-dropdown-translate-x),\n var(--lobe-dropdown-translate-y),\n 0\n )\n scale(var(--lobe-dropdown-animation-scale));\n opacity: 0;\n transition:\n opacity var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-in),\n transform var(--lobe-dropdown-animation-duration) var(--lobe-dropdown-animation-ease-in);\n }\n\n &[data-placement='top'],\n &[data-placement='topCenter'],\n &[data-placement='topLeft'],\n &[data-placement='topRight'] {\n --lobe-dropdown-translate-y: var(--lobe-dropdown-animation-translate);\n }\n\n &[data-placement='bottom'],\n &[data-placement='bottomCenter'],\n &[data-placement='bottomLeft'],\n &[data-placement='bottomRight'] {\n --lobe-dropdown-translate-y: calc(var(--lobe-dropdown-animation-translate) * -1);\n }\n }\n `,\n\n separator: css`\n height: 1px;\n margin-block: 4px;\n margin-inline: 0;\n background: ${cssVar.colorBorder};\n `,\n\n submenuArrow: css`\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n width: 20px;\n height: 20px;\n margin-inline-start: auto;\n padding-inline-start: 8px;\n `,\n}));\n"],"mappings":";;;AAEA,MAAa,SAAS,oBAAoB,EAAE,YAAK,wBAAc;CAC7D,QAAQ,KAAG;aACAA,SAAO,WAAW;;;oBAGXA,SAAO,aAAa;;;CAItC,OAAO,KAAG;;;aAGCA,SAAO,kBAAkB;;CAGpC,OAAO,KAAG;;;;aAICA,SAAO,kBAAkB;;CAGpC,YAAY,KAAG;;;;;;;;;aASJA,SAAO,kBAAkB;;;CAIpC,MAAM,KAAG;;;;;;;;;;CAWT,MAAM,KAAG;;;;;;;;;;;;;;qBAcUA,SAAO,aAAa;;;;aAI5BA,SAAO,UAAU;;;;4BAIFA,SAAO,cAAc;;;oBAG7BA,SAAO,kBAAkB;;;;oBAIzBA,SAAO,mBAAmB;;;;;eAK/BA,SAAO,kBAAkB;;;;;;;;;oBASpBA,SAAO,kBAAkB;;;;;;oBAMzBA,SAAO,kBAAkB;;;CAI3C,aAAa,KAAG;;;;;;CAOhB,OAAO,KAAG;;;;;;CAOV,OAAO,KAAG;;;qBAGSA,SAAO,aAAa;;kBAEvBA,SAAO,gBAAgB;;;;;kBAKvBA,SAAO,YAAY;;CAEnC,YAAY,KAAG;;;;;;;;4CAQ2BA,SAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD/D,WAAW,KAAG;;;;kBAIEA,SAAO,YAAY;;CAGnC,cAAc,KAAG;;;;;;;;;;;CAWlB,EAAE"}
@@ -1,8 +1,8 @@
1
1
  import { MermaidProps } from "./type.mjs";
2
- import * as react32 from "react";
2
+ import * as react42 from "react";
3
3
 
4
4
  //#region src/Mermaid/Mermaid.d.ts
5
- declare const Mermaid: react32.NamedExoticComponent<MermaidProps>;
5
+ declare const Mermaid: react42.NamedExoticComponent<MermaidProps>;
6
6
  //#endregion
7
7
  export { Mermaid };
8
8
  //# sourceMappingURL=Mermaid.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { SyntaxMermaidProps } from "../type.mjs";
2
- import * as react31 from "react";
2
+ import * as react43 from "react";
3
3
 
4
4
  //#region src/Mermaid/SyntaxMermaid/index.d.ts
5
- declare const SyntaxMermaid: react31.NamedExoticComponent<SyntaxMermaidProps>;
5
+ declare const SyntaxMermaid: react43.NamedExoticComponent<SyntaxMermaidProps>;
6
6
  //#endregion
7
7
  export { SyntaxMermaid };
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { ModalProps } from "./type.mjs";
2
- import * as react18 from "react";
2
+ import * as react38 from "react";
3
3
 
4
4
  //#region src/Modal/Modal.d.ts
5
- declare const Modal: react18.NamedExoticComponent<ModalProps>;
5
+ declare const Modal: react38.NamedExoticComponent<ModalProps>;
6
6
  //#endregion
7
7
  export { Modal };
8
8
  //# sourceMappingURL=Modal.d.mts.map
@@ -1,9 +1,9 @@
1
1
  import { ModalContextValue } from "./type.mjs";
2
- import * as react16 from "react";
2
+ import * as react39 from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/Modal/ModalProvider.d.ts
6
- declare const ModalProvider: react16.NamedExoticComponent<{
6
+ declare const ModalProvider: react39.NamedExoticComponent<{
7
7
  children: ReactNode;
8
8
  value: ModalContextValue;
9
9
  }>;
@@ -1,4 +1,4 @@
1
- import * as react5 from "react";
1
+ import * as react4 from "react";
2
2
  import { Context, ReactNode } from "react";
3
3
  import * as motion_react0 from "motion/react";
4
4
  import * as m from "motion/react-m";
@@ -6,7 +6,7 @@ import * as m from "motion/react-m";
6
6
  //#region src/MotionProvider/index.d.ts
7
7
  type MotionComponentType = typeof motion_react0.motion | typeof m;
8
8
  declare const MotionComponent: Context<MotionComponentType>;
9
- declare const MotionProvider: react5.NamedExoticComponent<{
9
+ declare const MotionProvider: react4.NamedExoticComponent<{
10
10
  children: ReactNode;
11
11
  motion: MotionComponentType;
12
12
  }>;
@@ -0,0 +1,22 @@
1
+ 'use client';
2
+
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+
5
+ //#region src/Popover/ArrowIcon.tsx
6
+ const PopoverArrowIcon = () => /* @__PURE__ */ jsxs("svg", {
7
+ "aria-hidden": "true",
8
+ height: "6",
9
+ viewBox: "0 0 12 6",
10
+ width: "12",
11
+ children: [/* @__PURE__ */ jsx("path", {
12
+ d: "M0 6L6 0L12 6Z",
13
+ "data-role": "fill"
14
+ }), /* @__PURE__ */ jsx("path", {
15
+ d: "M0 6L6 0L12 6",
16
+ "data-role": "stroke"
17
+ })]
18
+ });
19
+
20
+ //#endregion
21
+ export { PopoverArrowIcon };
22
+ //# sourceMappingURL=ArrowIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowIcon.mjs","names":["PopoverArrowIcon: FC"],"sources":["../../src/Popover/ArrowIcon.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\n\nexport const PopoverArrowIcon: FC = () => (\n <svg aria-hidden=\"true\" height=\"6\" viewBox=\"0 0 12 6\" width=\"12\">\n <path d=\"M0 6L6 0L12 6Z\" data-role=\"fill\" />\n <path d=\"M0 6L6 0L12 6\" data-role=\"stroke\" />\n </svg>\n);\n"],"mappings":";;;;;AAIA,MAAaA,yBACX,qBAAC;CAAI,eAAY;CAAO,QAAO;CAAI,SAAQ;CAAW,OAAM;YAC1D,oBAAC;EAAK,GAAE;EAAiB,aAAU;GAAS,EAC5C,oBAAC;EAAK,GAAE;EAAgB,aAAU;GAAW;EACzC"}
@@ -0,0 +1,9 @@
1
+ import { PopoverProps } from "./type.mjs";
2
+ import { parseTrigger } from "./parseTrigger.mjs";
3
+ import { FC } from "react";
4
+
5
+ //#region src/Popover/Popover.d.ts
6
+ declare const Popover: FC<PopoverProps>;
7
+ //#endregion
8
+ export { Popover };
9
+ //# sourceMappingURL=Popover.d.mts.map
@@ -0,0 +1,20 @@
1
+ 'use client';
2
+
3
+ import { PopoverGroupHandleContext } from "./groupContext.mjs";
4
+ import { parseTrigger } from "./parseTrigger.mjs";
5
+ import { PopoverInGroup } from "./PopoverInGroup.mjs";
6
+ import { PopoverStandalone } from "./PopoverStandalone.mjs";
7
+ import { useContext } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+
10
+ //#region src/Popover/Popover.tsx
11
+ const Popover = (props) => {
12
+ const group = useContext(PopoverGroupHandleContext);
13
+ return Boolean(group) && props.open === void 0 && props.defaultOpen === void 0 ? /* @__PURE__ */ jsx(PopoverInGroup, { ...props }) : /* @__PURE__ */ jsx(PopoverStandalone, { ...props });
14
+ };
15
+ Popover.displayName = "Popover";
16
+ var Popover_default = Popover;
17
+
18
+ //#endregion
19
+ export { Popover_default as default };
20
+ //# sourceMappingURL=Popover.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.mjs","names":["Popover: FC<PopoverProps>"],"sources":["../../src/Popover/Popover.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, useContext } from 'react';\n\nimport { PopoverInGroup } from './PopoverInGroup';\nimport { PopoverStandalone } from './PopoverStandalone';\nimport { PopoverGroupHandleContext } from './groupContext';\nimport type { PopoverProps } from './type';\n\nexport { parseTrigger } from './parseTrigger';\n\nconst Popover: FC<PopoverProps> = (props) => {\n const group = useContext(PopoverGroupHandleContext);\n\n // Group mode is driven by trigger interactions; keep standalone behavior for controlled cases.\n const canUseGroup = Boolean(group) && props.open === undefined && props.defaultOpen === undefined;\n\n return canUseGroup ? <PopoverInGroup {...props} /> : <PopoverStandalone {...props} />;\n};\n\nPopover.displayName = 'Popover';\n\nexport default Popover;\n"],"mappings":";;;;;;;;;;AAWA,MAAMA,WAA6B,UAAU;CAC3C,MAAM,QAAQ,WAAW,0BAA0B;AAKnD,QAFoB,QAAQ,MAAM,IAAI,MAAM,SAAS,UAAa,MAAM,gBAAgB,SAEnE,oBAAC,kBAAe,GAAI,QAAS,GAAG,oBAAC,qBAAkB,GAAI,QAAS;;AAGvF,QAAQ,cAAc;AAEtB,sBAAe"}
@@ -0,0 +1,11 @@
1
+ import { PopoverGroupSharedProps } from "./groupContext.mjs";
2
+ import { FC, ReactNode } from "react";
3
+
4
+ //#region src/Popover/PopoverGroup.d.ts
5
+ type PopoverGroupProps = PopoverGroupSharedProps & {
6
+ children: ReactNode;
7
+ };
8
+ declare const PopoverGroup: FC<PopoverGroupProps>;
9
+ //#endregion
10
+ export { PopoverGroup };
11
+ //# sourceMappingURL=PopoverGroup.d.mts.map