@lobehub/ui 4.20.1 → 4.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Accordion/Accordion.d.mts +2 -2
- package/es/Accordion/AccordionItem.d.mts +2 -2
- package/es/ActionIcon/ActionIcon.d.mts +2 -2
- package/es/Alert/Alert.d.mts +2 -2
- package/es/AutoComplete/Select.d.mts +2 -2
- package/es/Avatar/AvatarGroup/index.d.mts +2 -2
- package/es/Burger/Burger.d.mts +2 -2
- package/es/CodeDiff/CodeDiff.d.mts +2 -2
- package/es/CodeDiff/PatchDiff.d.mts +2 -2
- package/es/CodeEditor/CodeEditor.d.mts +2 -2
- package/es/Collapse/Collapse.d.mts +2 -2
- package/es/ConfigProvider/index.d.mts +2 -2
- package/es/ContextMenu/ContextMenuHost.d.mts +3 -3
- package/es/CopyButton/CopyButton.d.mts +2 -2
- package/es/DatePicker/DatePicker.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelBody.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelContainer.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelFooter.d.mts +2 -2
- package/es/DraggablePanel/components/DraggablePanelHeader.d.mts +2 -2
- package/es/DraggableSideNav/DraggableSideNav.d.mts +2 -2
- package/es/Drawer/Drawer.d.mts +2 -2
- package/es/Dropdown/Dropdown.d.mts +2 -2
- package/es/DropdownMenu/DropdownMenu.d.mts +2 -2
- package/es/DropdownMenu/DropdownMenu.mjs +7 -5
- package/es/DropdownMenu/DropdownMenu.mjs.map +1 -1
- package/es/DropdownMenu/atoms.d.mts +29 -20
- package/es/DropdownMenu/atoms.mjs +5 -5
- package/es/DropdownMenu/atoms.mjs.map +1 -1
- package/es/DropdownMenu/type.d.mts +7 -0
- package/es/EditableText/EditableText.d.mts +2 -2
- package/es/EmojiPicker/EmojiPicker.d.mts +2 -2
- package/es/EmojiPicker/EmojiPicker.mjs +5 -1
- package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
- package/es/EmojiPicker/style.mjs +4 -0
- package/es/EmojiPicker/style.mjs.map +1 -1
- package/es/Flex/FlexBasic.d.mts +2 -2
- package/es/FontLoader/index.d.mts +2 -2
- package/es/Footer/Footer.d.mts +2 -2
- package/es/Form/components/FormGroup.d.mts +2 -2
- package/es/Form/components/FormItem.d.mts +2 -2
- package/es/Form/components/FormSubmitFooter.d.mts +2 -2
- package/es/FormModal/FormModal.d.mts +2 -2
- package/es/GuideCard/GuideCard.d.mts +2 -2
- package/es/Header/Header.d.mts +2 -2
- package/es/Highlighter/Highlighter.d.mts +2 -2
- package/es/Highlighter/SyntaxHighlighter/index.d.mts +2 -2
- package/es/Hotkey/Hotkey.d.mts +2 -2
- package/es/HotkeyInput/HotkeyInput.d.mts +2 -2
- package/es/Icon/Icon.d.mts +2 -2
- package/es/Icon/components/IconProvider.d.mts +3 -3
- package/es/Image/PreviewGroup.d.mts +2 -2
- package/es/ImageSelect/ImageSelect.d.mts +2 -2
- package/es/Input/Input.d.mts +2 -2
- package/es/Input/InputNumber.d.mts +2 -2
- package/es/Input/InputOPT.d.mts +2 -2
- package/es/Input/InputPassword.d.mts +2 -2
- package/es/Input/TextArea.d.mts +2 -2
- package/es/Layout/components/LayoutFooter.d.mts +2 -2
- package/es/Layout/components/LayoutHeader.d.mts +2 -2
- package/es/Layout/components/LayoutMain.d.mts +2 -2
- package/es/Layout/components/LayoutSidebar.d.mts +2 -2
- package/es/Layout/components/LayoutSidebarInner.d.mts +2 -2
- package/es/Layout/components/LayoutToc.d.mts +2 -2
- package/es/List/ListItem/index.d.mts +2 -2
- package/es/LobeSelect/LobeSelect.d.mts +8 -0
- package/es/LobeSelect/LobeSelect.mjs +486 -0
- package/es/LobeSelect/LobeSelect.mjs.map +1 -0
- package/es/LobeSelect/atoms.d.mts +155 -0
- package/es/LobeSelect/atoms.mjs +172 -0
- package/es/LobeSelect/atoms.mjs.map +1 -0
- package/es/LobeSelect/constants.d.mts +5 -0
- package/es/LobeSelect/constants.mjs +6 -0
- package/es/LobeSelect/constants.mjs.map +1 -0
- package/es/LobeSelect/index.d.mts +5 -0
- package/es/LobeSelect/index.d.ts +1 -0
- package/es/LobeSelect/index.js +1 -0
- package/es/LobeSelect/index.mjs +5 -0
- package/es/LobeSelect/style.mjs +274 -0
- package/es/LobeSelect/style.mjs.map +1 -0
- package/es/LobeSelect/type.d.mts +83 -0
- package/es/Markdown/Markdown.d.mts +2 -2
- package/es/Markdown/Typography.d.mts +2 -2
- package/es/Markdown/components/SearchResultCards/index.d.mts +2 -2
- package/es/Markdown/markdown.style.mjs +40 -15
- package/es/Markdown/markdown.style.mjs.map +1 -1
- package/es/MaskShadow/MaskShadow.d.mts +2 -2
- package/es/Menu/Menu.d.mts +2 -2
- package/es/Menu/sharedStyle.mjs +2 -2
- package/es/Menu/sharedStyle.mjs.map +1 -1
- package/es/Mermaid/Mermaid.d.mts +2 -2
- package/es/Mermaid/SyntaxMermaid/index.d.mts +2 -2
- package/es/Modal/Modal.d.mts +2 -2
- package/es/Modal/ModalProvider.d.mts +2 -2
- package/es/Modal/imperative.d.mts +2 -2
- package/es/MotionProvider/index.d.mts +2 -2
- package/es/Popover/ArrowIcon.d.mts +2 -2
- package/es/Popover/Popover.d.mts +1 -1
- package/es/Popover/Popover.mjs +1 -1
- package/es/Popover/Popover.mjs.map +1 -1
- package/es/Popover/PopoverGroup.mjs +1 -1
- package/es/Popover/PopoverGroup.mjs.map +1 -1
- package/es/Popover/PopoverInGroup.mjs +1 -1
- package/es/Popover/PopoverInGroup.mjs.map +1 -1
- package/es/Popover/PopoverStandalone.mjs +1 -1
- package/es/Popover/PopoverStandalone.mjs.map +1 -1
- package/es/Popover/atoms.d.mts +15 -6
- package/es/Popover/atoms.mjs +5 -5
- package/es/Popover/atoms.mjs.map +1 -1
- package/es/Popover/context.d.mts +2 -2
- package/es/Popover/index.d.mts +1 -1
- package/es/Popover/index.mjs +1 -1
- package/es/Popover/style.mjs +2 -2
- package/es/Popover/style.mjs.map +1 -1
- package/es/Popover/type.d.mts +7 -5
- package/es/SearchBar/SearchBar.d.mts +2 -2
- package/es/Segmented/Segmented.d.mts +2 -2
- package/es/Select/Select.d.mts +2 -2
- package/es/SideNav/SideNav.d.mts +2 -2
- package/es/SliderWithInput/SliderWithInput.d.mts +2 -2
- package/es/SortableList/components/DragHandle.d.mts +2 -2
- package/es/SortableList/components/SortableItem.d.mts +2 -2
- package/es/ThemeProvider/ThemeProvider.d.mts +2 -2
- package/es/Toast/imperative.d.mts +3 -3
- package/es/Toast/style.mjs +6 -3
- package/es/Toast/style.mjs.map +1 -1
- package/es/Toc/Toc.d.mts +2 -2
- package/es/Tooltip/type.d.mts +3 -3
- package/es/Video/index.d.mts +2 -2
- package/es/awesome/AuroraBackground/AuroraBackground.d.mts +2 -2
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +2 -2
- package/es/awesome/Features/Features.d.mts +2 -2
- package/es/awesome/Giscus/Giscus.d.mts +2 -2
- package/es/awesome/GradientButton/GradientButton.d.mts +2 -2
- package/es/awesome/GridBackground/GridBackground.d.mts +2 -2
- package/es/awesome/GridBackground/GridShowcase.d.mts +2 -2
- package/es/awesome/Spline/Spine.d.mts +2 -2
- package/es/awesome/Spotlight/Spotlight.d.mts +2 -2
- package/es/awesome/SpotlightCard/SpotlightCard.d.mts +2 -2
- package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +2 -2
- package/es/brand/LobeChat/index.d.mts +2 -2
- package/es/brand/LobeHub/index.d.mts +2 -2
- package/es/brand/LogoThree/LogoSpline.d.mts +2 -2
- package/es/brand/LogoThree/index.d.mts +2 -2
- package/es/chat/BackBottom/BackBottom.d.mts +2 -2
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +2 -2
- package/es/chat/ChatItem/ChatItem.d.mts +2 -2
- package/es/chat/ChatList/ChatList.d.mts +2 -2
- package/es/chat/EditableMessage/EditableMessage.d.mts +2 -2
- package/es/chat/EditableMessageList/EditableMessageList.d.mts +2 -2
- package/es/chat/MessageInput/MessageInput.d.mts +2 -2
- package/es/chat/MessageModal/MessageModal.d.mts +2 -2
- package/es/color/ColorScales/index.d.mts +2 -2
- package/es/color/CssVar/index.d.mts +2 -2
- package/es/i18n/context.d.mts +2 -2
- package/es/icons/lucideExtra/BotPromptIcon.d.mts +2 -2
- package/es/icons/lucideExtra/DiscordIcon.d.mts +3 -3
- package/es/icons/lucideExtra/GlobeOffIcon.d.mts +3 -3
- package/es/icons/lucideExtra/GroupBotIcon.d.mts +3 -3
- package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +3 -3
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/McpIcon.d.mts +3 -3
- package/es/icons/lucideExtra/ProviderIcon.d.mts +3 -3
- package/es/icons/lucideExtra/RightClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +3 -3
- package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +3 -3
- package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +3 -3
- package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +3 -3
- package/es/index.d.mts +7 -1
- package/es/index.mjs +4 -1
- package/es/mdx/Mdx/index.d.mts +2 -2
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +2 -2
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +2 -2
- package/es/mobile/TabBar/TabBar.d.mts +2 -2
- package/es/storybook/StoryBook/index.d.mts +2 -2
- package/es/types/index.d.mts +2 -1
- package/es/types/trigger.d.mts +8 -0
- package/es/utils/parseTrigger.d.mts +14 -0
- package/es/{Popover → utils}/parseTrigger.mjs +1 -1
- package/es/utils/parseTrigger.mjs.map +1 -0
- package/package.json +3 -2
- package/es/Popover/parseTrigger.d.mts +0 -14
- package/es/Popover/parseTrigger.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlexboxProps } from "../../Flex/type.mjs";
|
|
2
2
|
import "../../Flex/index.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react28 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:
|
|
13
|
+
declare const StoryBook: react28.NamedExoticComponent<StoryBookProps>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { StoryBook, StoryBookProps, useControls, useCreateStore };
|
|
16
16
|
//# sourceMappingURL=index.d.mts.map
|
package/es/types/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LobeCustomStylish } from "./customStylish.mjs";
|
|
2
2
|
import { ColorPalettes, ColorPalettesAlpha, ColorToken, LobeCustomToken, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, SystemColorToken } from "./customToken.mjs";
|
|
3
|
+
import { Trigger } from "./trigger.mjs";
|
|
3
4
|
import { AnchorHTMLAttributes, HTMLAttributes } from "react";
|
|
4
5
|
|
|
5
6
|
//#region src/types/index.d.ts
|
|
@@ -12,5 +13,5 @@ type InputProps = HTMLAttributes<HTMLInputElement>;
|
|
|
12
13
|
type TextAreaProps = HTMLAttributes<HTMLTextAreaElement>;
|
|
13
14
|
type SpanProps = HTMLAttributes<HTMLSpanElement>;
|
|
14
15
|
//#endregion
|
|
15
|
-
export { AProps, ColorPalettes, ColorPalettesAlpha, ColorToken, DivProps, ImgProps, InputProps, LobeCustomStylish, LobeCustomToken, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, SpanProps, SvgProps, SystemColorToken, TextAreaProps, VideoProps };
|
|
16
|
+
export { AProps, ColorPalettes, ColorPalettesAlpha, ColorToken, DivProps, ImgProps, InputProps, LobeCustomStylish, LobeCustomToken, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, SpanProps, SvgProps, SystemColorToken, TextAreaProps, Trigger, VideoProps };
|
|
16
17
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/types/trigger.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Common trigger type for components that support hover/click interactions
|
|
4
|
+
*/
|
|
5
|
+
type Trigger = 'hover' | 'click' | 'both' | ('hover' | 'click')[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Trigger };
|
|
8
|
+
//# sourceMappingURL=trigger.d.mts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Trigger } from "../types/trigger.mjs";
|
|
2
|
+
import "../types/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/parseTrigger.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Parses trigger prop to determine hover and click behavior
|
|
7
|
+
*/
|
|
8
|
+
declare function parseTrigger(trigger: Trigger): {
|
|
9
|
+
openOnClick: boolean;
|
|
10
|
+
openOnHover: boolean;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { parseTrigger };
|
|
14
|
+
//# sourceMappingURL=parseTrigger.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseTrigger.mjs","names":[],"sources":["../../src/utils/parseTrigger.ts"],"sourcesContent":["'use client';\n\nimport type { Trigger } from '@/types';\n\n/**\n * Parses trigger prop to determine hover and click behavior\n */\nexport function parseTrigger(trigger: Trigger): {\n openOnClick: boolean;\n openOnHover: boolean;\n} {\n const triggers = Array.isArray(trigger) ? trigger : [trigger];\n const normalizedTriggers = new Set(\n triggers.flatMap((item) => (item === 'both' ? ['hover', 'click'] : [item])),\n );\n return {\n openOnClick: normalizedTriggers.has('click'),\n openOnHover: normalizedTriggers.has('hover'),\n };\n}\n"],"mappings":";;;;;;AAOA,SAAgB,aAAa,SAG3B;CACA,MAAM,WAAW,MAAM,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ;CAC7D,MAAM,qBAAqB,IAAI,IAC7B,SAAS,SAAS,SAAU,SAAS,SAAS,CAAC,SAAS,QAAQ,GAAG,CAAC,KAAK,CAAE,CAC5E;AACD,QAAO;EACL,aAAa,mBAAmB,IAAI,QAAQ;EAC5C,aAAa,mBAAmB,IAAI,QAAQ;EAC7C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.1",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -170,7 +170,8 @@
|
|
|
170
170
|
"unified": "^11.0.5",
|
|
171
171
|
"url-join": "^5.0.0",
|
|
172
172
|
"use-merge-value": "^1.2.0",
|
|
173
|
-
"uuid": "^13.0.0"
|
|
173
|
+
"uuid": "^13.0.0",
|
|
174
|
+
"virtua": "^0.48.3"
|
|
174
175
|
},
|
|
175
176
|
"peerDependencies": {
|
|
176
177
|
"@lobehub/fluent-emoji": "^4.0.0",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PopoverTrigger } from "./type.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/Popover/parseTrigger.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Parses trigger prop to determine hover and click behavior
|
|
7
|
-
*/
|
|
8
|
-
declare function parseTrigger(trigger: PopoverTrigger): {
|
|
9
|
-
openOnClick: boolean;
|
|
10
|
-
openOnHover: boolean;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { parseTrigger };
|
|
14
|
-
//# sourceMappingURL=parseTrigger.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseTrigger.mjs","names":[],"sources":["../../src/Popover/parseTrigger.ts"],"sourcesContent":["'use client';\n\nimport type { PopoverTrigger } from './type';\n\n/**\n * Parses trigger prop to determine hover and click behavior\n */\nexport function parseTrigger(trigger: PopoverTrigger): {\n openOnClick: boolean;\n openOnHover: boolean;\n} {\n const triggers = Array.isArray(trigger) ? trigger : [trigger];\n const normalizedTriggers = new Set(\n triggers.flatMap((item) => (item === 'both' ? ['hover', 'click'] : [item])),\n );\n return {\n openOnClick: normalizedTriggers.has('click'),\n openOnHover: normalizedTriggers.has('hover'),\n };\n}\n"],"mappings":";;;;;;AAOA,SAAgB,aAAa,SAG3B;CACA,MAAM,WAAW,MAAM,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ;CAC7D,MAAM,qBAAqB,IAAI,IAC7B,SAAS,SAAS,SAAU,SAAS,SAAS,CAAC,SAAS,QAAQ,GAAG,CAAC,KAAK,CAAE,CAC5E;AACD,QAAO;EACL,aAAa,mBAAmB,IAAI,QAAQ;EAC5C,aAAa,mBAAmB,IAAI,QAAQ;EAC7C"}
|